diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index bab23c4..0e49047 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,19 +1,19 @@ lockVersion: 2.0.0 id: 43187d3e-7c3c-4c11-b5d4-4b2334fb6d96 management: - docChecksum: f10061c7787170c0db643f22823c9aa9 + docChecksum: 3bb9be4afb2fadce5fd5e67aabc0a27e docVersion: 0.0.1 - speakeasyVersion: 1.376.0 - generationVersion: 2.402.5 - releaseVersion: 0.3.0 - configChecksum: b9212d5fc23da407ab89aa6110b52f4d + speakeasyVersion: 1.377.3 + generationVersion: 2.404.2 + releaseVersion: 0.3.1 + configChecksum: bbc988fc5f10957865f300fe4b336e3d repoURL: https://github.com/dubinc/dub-php.git installationURL: https://github.com/dubinc/dub-php features: php: core: 3.3.11 deprecations: 2.81.1 - errors: 0.1.0 + errors: 0.1.1 examples: 2.81.3 flattening: 2.81.1 globalSecurity: 2.81.7 @@ -21,7 +21,7 @@ features: globalServerURLs: 2.82.1 nameOverrides: 2.81.2 responseFormat: 0.1.0 - unions: 0.1.0 + unions: 0.1.1 generatedFiles: - src/SDKConfiguration.php - src/Links.php diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 0ee5d21..59adc9c 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -12,7 +12,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: true php: - version: 0.3.0 + version: 0.3.1 clientServerStatusCodesAsErrors: true flattenGlobalSecurity: true imports: diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index df62985..086751c 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.376.0 +speakeasyVersion: 1.377.3 sources: dub: sourceNamespace: dub - sourceRevisionDigest: sha256:835997901bef9668c2684528b3de24ca696ff433795ca9591ca8bb9a65f0d14f - sourceBlobDigest: sha256:95a8dafd6f02195984538c42d60d9df2182a04eb50f3954f50aa24872b1814c2 + sourceRevisionDigest: sha256:2d0ae537e990ad997ccab7f629907d5f5e2f551d913a27cb78e4711565ca7e97 + sourceBlobDigest: sha256:b56ec854820ec7a0ee23fe596f5fee03535d9b142038244744e8197ef8a542c7 tags: - latest - main @@ -11,10 +11,10 @@ targets: my-first-target: source: dub sourceNamespace: dub - sourceRevisionDigest: sha256:835997901bef9668c2684528b3de24ca696ff433795ca9591ca8bb9a65f0d14f - sourceBlobDigest: sha256:95a8dafd6f02195984538c42d60d9df2182a04eb50f3954f50aa24872b1814c2 + sourceRevisionDigest: sha256:2d0ae537e990ad997ccab7f629907d5f5e2f551d913a27cb78e4711565ca7e97 + sourceBlobDigest: sha256:b56ec854820ec7a0ee23fe596f5fee03535d9b142038244744e8197ef8a542c7 codeSamplesNamespace: code-samples-php-my-first-target - codeSamplesRevisionDigest: sha256:b204d48af776bff64452197c0e21afdde7038d7946878cf73e973d3ca45a5a7f + codeSamplesRevisionDigest: sha256:4687d415316af8702f3e5edf938acec7fa71071de69e9dd54172000eedcc965c outLocation: /github/workspace/repo workflow: workflowVersion: 1.0.0 diff --git a/RELEASES.md b/RELEASES.md index 578eda8..d8be726 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -118,4 +118,12 @@ Based on: - OpenAPI Doc - Speakeasy CLI 1.376.0 (2.402.5) https://github.com/speakeasy-api/speakeasy ### Generated -- [php v0.3.0] . \ No newline at end of file +- [php v0.3.0] . + +## 2024-08-23 01:09:31 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.377.3 (2.404.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [php v0.3.1] . \ No newline at end of file diff --git a/codeSamples.yaml b/codeSamples.yaml index cd5b9b4..1254817 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -3,153 +3,153 @@ info: title: CodeSamples overlay for php target version: 0.0.0 actions: - - target: $["paths"]["/links"]["post"] + - target: $["paths"]["/analytics"]["get"] update: "x-codeSamples": - "lang": "php" - "label": "createLink" - "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Components;\nuse Dub\\Models\\Operations;\n\n$security = new Components\\Security();\n$security->token = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\ntry {\n $request = new Operations\\CreateLinkRequestBody(\n url: 'https://google.com',\n domain: 'lighthearted-kilogram.name',\n key: '',\n externalId: '123456',\n prefix: '',\n trackConversion: false,\n archived: false,\n publicStats: false,\n tagId: '',\n tagIds: [\n '',\n ],\n tagNames: '',\n comments: '',\n expiresAt: '',\n expiredUrl: '',\n password: 'klDuL1dlrnUXohO',\n proxy: false,\n title: '',\n description: 'User-friendly multi-state frame',\n image: 'https://loremflickr.com/640/480',\n video: '',\n rewrite: false,\n ios: '',\n android: '',\n geo: new Components\\LinkGeoTargeting(\n af: '',\n al: '',\n dz: '',\n as: '',\n ad: '',\n ao: '',\n ai: '',\n aq: '',\n ag: '',\n ar: '',\n am: '',\n aw: '',\n au: '',\n at: '',\n az: '',\n bs: '',\n bh: '',\n bd: '',\n bb: '',\n by: '',\n be: '',\n bz: '',\n bj: '',\n bm: '',\n bt: '',\n bo: '',\n ba: '',\n bw: '',\n bv: '',\n br: '',\n io: '',\n bn: '',\n bg: '',\n bf: '',\n bi: '',\n kh: '',\n cm: '',\n ca: '',\n cv: '',\n ky: '',\n cf: '',\n td: '',\n cl: '',\n cn: '',\n cx: '',\n cc: '',\n co: '',\n km: '',\n cg: '',\n cd: '',\n ck: '',\n cr: '',\n ci: '',\n hr: '',\n cu: '',\n cy: '',\n cz: '',\n dk: '',\n dj: '',\n dm: '',\n do: '',\n ec: '',\n eg: '',\n sv: '',\n gq: '',\n er: '',\n ee: '',\n et: '',\n fk: '',\n fo: '',\n fj: '',\n fi: '',\n fr: '',\n gf: '',\n pf: '',\n tf: '',\n ga: '',\n gm: '',\n ge: '',\n de: '',\n gh: '',\n gi: '',\n gr: '',\n gl: '',\n gd: '',\n gp: '',\n gu: '',\n gt: '',\n gn: '',\n gw: '',\n gy: '',\n ht: '',\n hm: '',\n va: '',\n hn: '',\n hk: '',\n hu: '',\n is: '',\n in: '',\n id: '',\n ir: '',\n iq: '',\n ie: '',\n il: '',\n it: '',\n jm: '',\n jp: '',\n jo: '',\n kz: '',\n ke: '',\n ki: '',\n kp: '',\n kr: '',\n kw: '',\n kg: '',\n la: '',\n lv: '',\n lb: '',\n ls: '',\n lr: '',\n ly: '',\n li: '',\n lt: '',\n lu: '',\n mo: '',\n mg: '',\n mw: '',\n my: '',\n mv: '',\n ml: '',\n mt: '',\n mh: '',\n mq: '',\n mr: '',\n mu: '',\n yt: '',\n mx: '',\n fm: '',\n md: '',\n mc: '',\n mn: '',\n ms: '',\n ma: '',\n mz: '',\n mm: '',\n na: '',\n nr: '',\n np: '',\n nl: '',\n nc: '',\n nz: '',\n ni: '',\n ne: '',\n ng: '',\n nu: '',\n nf: '',\n mk: '',\n mp: '',\n no: '',\n om: '',\n pk: '',\n pw: '',\n ps: '',\n pa: '',\n pg: '',\n py: '',\n pe: '',\n ph: '',\n pn: '',\n pl: '',\n pt: '',\n pr: '',\n qa: '',\n re: '',\n ro: '',\n ru: '',\n rw: '',\n sh: '',\n kn: '',\n lc: '',\n pm: '',\n vc: '',\n ws: '',\n sm: '',\n st: '',\n sa: '',\n sn: '',\n sc: '',\n sl: '',\n sg: '',\n sk: '',\n si: '',\n sb: '',\n so: '',\n za: '',\n gs: '',\n es: '',\n lk: '',\n sd: '',\n sr: '',\n sj: '',\n sz: '',\n se: '',\n ch: '',\n sy: '',\n tw: '',\n tj: '',\n tz: '',\n th: '',\n tl: '',\n tg: '',\n tk: '',\n to: '',\n tt: '',\n tn: '',\n tr: '',\n tm: '',\n tc: '',\n tv: '',\n ug: '',\n ua: '',\n ae: '',\n gb: '',\n us: '',\n um: '',\n uy: '',\n uz: '',\n vu: '',\n ve: '',\n vn: '',\n vg: '',\n vi: '',\n wf: '',\n eh: '',\n ye: '',\n zm: '',\n zw: '',\n ax: '',\n bq: '',\n cw: '',\n gg: '',\n im: '',\n je: '',\n me: '',\n bl: '',\n mf: '',\n rs: '',\n sx: '',\n ss: '',\n xk: '',\n ),\n doIndex: false,\n utmSource: '',\n utmMedium: '',\n utmCampaign: '',\n utmTerm: '',\n utmContent: '',\n );\n $response = $sdk->links->create($request);\n\n if ($response->linkSchema !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/events"]["get"] + "label": "retrieveAnalytics" + "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Components;\nuse Dub\\Models\\Operations;\n\n$security = new Components\\Security();\n$security->token = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\ntry {\n $request = new Operations\\RetrieveAnalyticsRequest(\n event: Operations\\Event::Leads,\n groupBy: Operations\\QueryParamGroupBy::Trigger,\n domain: 'vacant-platter.biz',\n key: '',\n linkId: '',\n externalId: '',\n interval: Operations\\Interval::Ninetyd,\n start: '',\n end: '',\n timezone: 'America/New_York',\n continent: Components\\ContinentCode::As,\n country: Components\\CountryCode::Nz,\n city: 'New York',\n device: 'Desktop',\n browser: 'Chrome',\n os: 'Windows',\n referer: 'google.com',\n url: 'http://ajar-mall.com',\n tagId: '',\n qr: false,\n root: false,\n );\n $response = $sdk->analytics->retrieve($request);\n\n if ($response->oneOf !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" + - target: $["paths"]["/workspaces/{idOrSlug}"]["patch"] update: "x-codeSamples": - "lang": "php" - "label": "listEvents" - "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Components;\nuse Dub\\Models\\Operations;\n\n$security = new Components\\Security();\n$security->token = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\ntry {\n $request = new Operations\\ListEventsRequest(\n event: Operations\\QueryParamEvent::Composite,\n domain: 'burly-math.biz',\n key: '',\n linkId: '',\n externalId: '',\n interval: Operations\\QueryParamInterval::Oney,\n start: '',\n end: '',\n timezone: 'America/New_York',\n continent: Components\\ContinentCode::As,\n country: Components\\CountryCode::Cx,\n city: 'New York',\n device: 'Desktop',\n browser: 'Chrome',\n os: 'Windows',\n referer: 'google.com',\n url: 'https://elliptical-auditorium.com',\n tagId: '',\n qr: false,\n root: false,\n page: 9174.16,\n limit: 6355.32,\n order: Operations\\Order::Desc,\n sortBy: Operations\\SortBy::Amount,\n );\n $response = $sdk->events->list($request);\n\n if ($response->clickEvents !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/links/{linkId}"]["patch"] + "label": "updateWorkspace" + "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Components;\nuse Dub\\Models\\Operations;\n\n$security = new Components\\Security();\n$security->token = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\ntry {\n $requestBody = new Operations\\UpdateWorkspaceRequestBody(\n name: '',\n slug: '',\n );\n $response = $sdk->workspaces->update('', $requestBody);\n\n if ($response->workspaceSchema !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" + - target: $["paths"]["/tags"]["get"] update: "x-codeSamples": - "lang": "php" - "label": "updateLink" - "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Components;\nuse Dub\\Models\\Operations;\n\n$security = new Components\\Security();\n$security->token = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\ntry {\n $requestBody = new Operations\\UpdateLinkRequestBody(\n url: 'https://google.com',\n domain: 'tidy-amazon.name',\n key: '',\n externalId: '123456',\n prefix: '',\n trackConversion: false,\n archived: false,\n publicStats: false,\n tagId: '',\n tagIds: '[\"clux0rgak00011...\"]',\n tagNames: '',\n comments: '',\n expiresAt: '',\n expiredUrl: '',\n password: 'daOKvPKDk8CkuAM',\n proxy: false,\n title: '',\n description: 'Mandatory real-time migration',\n image: 'https://loremflickr.com/640/480',\n video: '',\n rewrite: false,\n ios: '',\n android: '',\n geo: new Components\\LinkGeoTargeting(\n af: '',\n al: '',\n dz: '',\n as: '',\n ad: '',\n ao: '',\n ai: '',\n aq: '',\n ag: '',\n ar: '',\n am: '',\n aw: '',\n au: '',\n at: '',\n az: '',\n bs: '',\n bh: '',\n bd: '',\n bb: '',\n by: '',\n be: '',\n bz: '',\n bj: '',\n bm: '',\n bt: '',\n bo: '',\n ba: '',\n bw: '',\n bv: '',\n br: '',\n io: '',\n bn: '',\n bg: '',\n bf: '',\n bi: '',\n kh: '',\n cm: '',\n ca: '',\n cv: '',\n ky: '',\n cf: '',\n td: '',\n cl: '',\n cn: '',\n cx: '',\n cc: '',\n co: '',\n km: '',\n cg: '',\n cd: '',\n ck: '',\n cr: '',\n ci: '',\n hr: '',\n cu: '',\n cy: '',\n cz: '',\n dk: '',\n dj: '',\n dm: '',\n do: '',\n ec: '',\n eg: '',\n sv: '',\n gq: '',\n er: '',\n ee: '',\n et: '',\n fk: '',\n fo: '',\n fj: '',\n fi: '',\n fr: '',\n gf: '',\n pf: '',\n tf: '',\n ga: '',\n gm: '',\n ge: '',\n de: '',\n gh: '',\n gi: '',\n gr: '',\n gl: '',\n gd: '',\n gp: '',\n gu: '',\n gt: '',\n gn: '',\n gw: '',\n gy: '',\n ht: '',\n hm: '',\n va: '',\n hn: '',\n hk: '',\n hu: '',\n is: '',\n in: '',\n id: '',\n ir: '',\n iq: '',\n ie: '',\n il: '',\n it: '',\n jm: '',\n jp: '',\n jo: '',\n kz: '',\n ke: '',\n ki: '',\n kp: '',\n kr: '',\n kw: '',\n kg: '',\n la: '',\n lv: '',\n lb: '',\n ls: '',\n lr: '',\n ly: '',\n li: '',\n lt: '',\n lu: '',\n mo: '',\n mg: '',\n mw: '',\n my: '',\n mv: '',\n ml: '',\n mt: '',\n mh: '',\n mq: '',\n mr: '',\n mu: '',\n yt: '',\n mx: '',\n fm: '',\n md: '',\n mc: '',\n mn: '',\n ms: '',\n ma: '',\n mz: '',\n mm: '',\n na: '',\n nr: '',\n np: '',\n nl: '',\n nc: '',\n nz: '',\n ni: '',\n ne: '',\n ng: '',\n nu: '',\n nf: '',\n mk: '',\n mp: '',\n no: '',\n om: '',\n pk: '',\n pw: '',\n ps: '',\n pa: '',\n pg: '',\n py: '',\n pe: '',\n ph: '',\n pn: '',\n pl: '',\n pt: '',\n pr: '',\n qa: '',\n re: '',\n ro: '',\n ru: '',\n rw: '',\n sh: '',\n kn: '',\n lc: '',\n pm: '',\n vc: '',\n ws: '',\n sm: '',\n st: '',\n sa: '',\n sn: '',\n sc: '',\n sl: '',\n sg: '',\n sk: '',\n si: '',\n sb: '',\n so: '',\n za: '',\n gs: '',\n es: '',\n lk: '',\n sd: '',\n sr: '',\n sj: '',\n sz: '',\n se: '',\n ch: '',\n sy: '',\n tw: '',\n tj: '',\n tz: '',\n th: '',\n tl: '',\n tg: '',\n tk: '',\n to: '',\n tt: '',\n tn: '',\n tr: '',\n tm: '',\n tc: '',\n tv: '',\n ug: '',\n ua: '',\n ae: '',\n gb: '',\n us: '',\n um: '',\n uy: '',\n uz: '',\n vu: '',\n ve: '',\n vn: '',\n vg: '',\n vi: '',\n wf: '',\n eh: '',\n ye: '',\n zm: '',\n zw: '',\n ax: '',\n bq: '',\n cw: '',\n gg: '',\n im: '',\n je: '',\n me: '',\n bl: '',\n mf: '',\n rs: '',\n sx: '',\n ss: '',\n xk: '',\n ),\n doIndex: false,\n utmSource: '',\n utmMedium: '',\n utmCampaign: '',\n utmTerm: '',\n utmContent: '',\n );\n $response = $sdk->links->update('', $requestBody);\n\n if ($response->linkSchema !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" + "label": "getTags" + "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Components;\n\n$security = new Components\\Security();\n$security->token = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\ntry {\n $response = $sdk->tags->list();\n\n if ($response->tagSchemas !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - target: $["paths"]["/links/bulk"]["patch"] update: "x-codeSamples": - "lang": "php" "label": "bulkUpdateLinks" "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Components;\nuse Dub\\Models\\Operations;\n\n$security = new Components\\Security();\n$security->token = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\ntry {\n $request = new Operations\\BulkUpdateLinksRequestBody(\n linkIds: [\n '',\n ],\n data: new Operations\\Data(\n url: 'https://google.com',\n trackConversion: false,\n archived: false,\n publicStats: false,\n tagId: '',\n tagIds: '[\"clux0rgak00011...\"]',\n tagNames: '',\n comments: '',\n expiresAt: '',\n expiredUrl: '',\n password: 'WDSvXDvs2q1hzWy',\n proxy: false,\n title: '',\n description: 'Diverse holistic internet solution',\n image: 'https://loremflickr.com/640/480',\n video: '',\n rewrite: false,\n ios: '',\n android: '',\n geo: new Components\\LinkGeoTargeting(\n af: '',\n al: '',\n dz: '',\n as: '',\n ad: '',\n ao: '',\n ai: '',\n aq: '',\n ag: '',\n ar: '',\n am: '',\n aw: '',\n au: '',\n at: '',\n az: '',\n bs: '',\n bh: '',\n bd: '',\n bb: '',\n by: '',\n be: '',\n bz: '',\n bj: '',\n bm: '',\n bt: '',\n bo: '',\n ba: '',\n bw: '',\n bv: '',\n br: '',\n io: '',\n bn: '',\n bg: '',\n bf: '',\n bi: '',\n kh: '',\n cm: '',\n ca: '',\n cv: '',\n ky: '',\n cf: '',\n td: '',\n cl: '',\n cn: '',\n cx: '',\n cc: '',\n co: '',\n km: '',\n cg: '',\n cd: '',\n ck: '',\n cr: '',\n ci: '',\n hr: '',\n cu: '',\n cy: '',\n cz: '',\n dk: '',\n dj: '',\n dm: '',\n do: '',\n ec: '',\n eg: '',\n sv: '',\n gq: '',\n er: '',\n ee: '',\n et: '',\n fk: '',\n fo: '',\n fj: '',\n fi: '',\n fr: '',\n gf: '',\n pf: '',\n tf: '',\n ga: '',\n gm: '',\n ge: '',\n de: '',\n gh: '',\n gi: '',\n gr: '',\n gl: '',\n gd: '',\n gp: '',\n gu: '',\n gt: '',\n gn: '',\n gw: '',\n gy: '',\n ht: '',\n hm: '',\n va: '',\n hn: '',\n hk: '',\n hu: '',\n is: '',\n in: '',\n id: '',\n ir: '',\n iq: '',\n ie: '',\n il: '',\n it: '',\n jm: '',\n jp: '',\n jo: '',\n kz: '',\n ke: '',\n ki: '',\n kp: '',\n kr: '',\n kw: '',\n kg: '',\n la: '',\n lv: '',\n lb: '',\n ls: '',\n lr: '',\n ly: '',\n li: '',\n lt: '',\n lu: '',\n mo: '',\n mg: '',\n mw: '',\n my: '',\n mv: '',\n ml: '',\n mt: '',\n mh: '',\n mq: '',\n mr: '',\n mu: '',\n yt: '',\n mx: '',\n fm: '',\n md: '',\n mc: '',\n mn: '',\n ms: '',\n ma: '',\n mz: '',\n mm: '',\n na: '',\n nr: '',\n np: '',\n nl: '',\n nc: '',\n nz: '',\n ni: '',\n ne: '',\n ng: '',\n nu: '',\n nf: '',\n mk: '',\n mp: '',\n no: '',\n om: '',\n pk: '',\n pw: '',\n ps: '',\n pa: '',\n pg: '',\n py: '',\n pe: '',\n ph: '',\n pn: '',\n pl: '',\n pt: '',\n pr: '',\n qa: '',\n re: '',\n ro: '',\n ru: '',\n rw: '',\n sh: '',\n kn: '',\n lc: '',\n pm: '',\n vc: '',\n ws: '',\n sm: '',\n st: '',\n sa: '',\n sn: '',\n sc: '',\n sl: '',\n sg: '',\n sk: '',\n si: '',\n sb: '',\n so: '',\n za: '',\n gs: '',\n es: '',\n lk: '',\n sd: '',\n sr: '',\n sj: '',\n sz: '',\n se: '',\n ch: '',\n sy: '',\n tw: '',\n tj: '',\n tz: '',\n th: '',\n tl: '',\n tg: '',\n tk: '',\n to: '',\n tt: '',\n tn: '',\n tr: '',\n tm: '',\n tc: '',\n tv: '',\n ug: '',\n ua: '',\n ae: '',\n gb: '',\n us: '',\n um: '',\n uy: '',\n uz: '',\n vu: '',\n ve: '',\n vn: '',\n vg: '',\n vi: '',\n wf: '',\n eh: '',\n ye: '',\n zm: '',\n zw: '',\n ax: '',\n bq: '',\n cw: '',\n gg: '',\n im: '',\n je: '',\n me: '',\n bl: '',\n mf: '',\n rs: '',\n sx: '',\n ss: '',\n xk: '',\n ),\n doIndex: false,\n utmSource: '',\n utmMedium: '',\n utmCampaign: '',\n utmTerm: '',\n utmContent: '',\n ),\n );\n $response = $sdk->links->updateMany($request);\n\n if ($response->linkSchemas !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/analytics"]["get"] + - target: $["paths"]["/links/bulk"]["post"] update: "x-codeSamples": - "lang": "php" - "label": "retrieveAnalytics" - "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Components;\nuse Dub\\Models\\Operations;\n\n$security = new Components\\Security();\n$security->token = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\ntry {\n $request = new Operations\\RetrieveAnalyticsRequest(\n event: Operations\\Event::Leads,\n groupBy: Operations\\QueryParamGroupBy::Trigger,\n domain: 'vacant-platter.biz',\n key: '',\n linkId: '',\n externalId: '',\n interval: Operations\\Interval::Ninetyd,\n start: '',\n end: '',\n timezone: 'America/New_York',\n continent: Components\\ContinentCode::As,\n country: Components\\CountryCode::Nz,\n city: 'New York',\n device: 'Desktop',\n browser: 'Chrome',\n os: 'Windows',\n referer: 'google.com',\n url: 'http://ajar-mall.com',\n tagId: '',\n qr: false,\n root: false,\n );\n $response = $sdk->analytics->retrieve($request);\n\n if ($response->oneOf !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/tags"]["post"] + "label": "bulkCreateLinks" + "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Components;\nuse Dub\\Models\\Operations;\n\n$security = new Components\\Security();\n$security->token = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\ntry {\n $request = [\n new Operations\\RequestBody,\n ];\n $response = $sdk->links->createMany($request);\n\n if ($response->linkSchemas !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" + - target: $["paths"]["/events"]["get"] update: "x-codeSamples": - "lang": "php" - "label": "createTag" - "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Components;\nuse Dub\\Models\\Operations;\n\n$security = new Components\\Security();\n$security->token = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\ntry {\n $request = new Operations\\CreateTagRequestBody(\n name: '',\n color: Operations\\Color::Blue,\n tag: '',\n );\n $response = $sdk->tags->create($request);\n\n if ($response->tagSchema !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/tags/{id}"]["patch"] + "label": "listEvents" + "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Components;\nuse Dub\\Models\\Operations;\n\n$security = new Components\\Security();\n$security->token = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\ntry {\n $request = new Operations\\ListEventsRequest(\n event: Operations\\QueryParamEvent::Composite,\n domain: 'burly-math.biz',\n key: '',\n linkId: '',\n externalId: '',\n interval: Operations\\QueryParamInterval::Oney,\n start: '',\n end: '',\n timezone: 'America/New_York',\n continent: Components\\ContinentCode::As,\n country: Components\\CountryCode::Cx,\n city: 'New York',\n device: 'Desktop',\n browser: 'Chrome',\n os: 'Windows',\n referer: 'google.com',\n url: 'https://elliptical-auditorium.com',\n tagId: '',\n qr: false,\n root: false,\n page: 9174.16,\n limit: 6355.32,\n order: Operations\\Order::Desc,\n sortBy: Operations\\SortBy::Amount,\n );\n $response = $sdk->events->list($request);\n\n if ($response->clickEvents !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" + - target: $["paths"]["/workspaces/{idOrSlug}"]["get"] update: "x-codeSamples": - "lang": "php" - "label": "updateTag" - "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Components;\nuse Dub\\Models\\Operations;\n\n$security = new Components\\Security();\n$security->token = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\ntry {\n $requestBody = new Operations\\UpdateTagRequestBody(\n name: '',\n color: Operations\\UpdateTagColor::Brown,\n tag: '',\n );\n $response = $sdk->tags->update('', $requestBody);\n\n if ($response->tagSchema !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/links/upsert"]["put"] + "label": "getWorkspace" + "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Components;\n\n$security = new Components\\Security();\n$security->token = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\ntry {\n\n $response = $sdk->workspaces->get('');\n\n if ($response->workspaceSchema !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" + - target: $["paths"]["/domains"]["get"] update: "x-codeSamples": - "lang": "php" - "label": "upsertLink" - "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Components;\nuse Dub\\Models\\Operations;\n\n$security = new Components\\Security();\n$security->token = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\ntry {\n $request = new Operations\\UpsertLinkRequestBody(\n url: 'https://google.com',\n domain: 'monthly-hometown.info',\n key: '',\n externalId: '123456',\n prefix: '',\n trackConversion: false,\n archived: false,\n publicStats: false,\n tagId: '',\n tagIds: [\n '',\n ],\n tagNames: '',\n comments: '',\n expiresAt: '',\n expiredUrl: '',\n password: 'Ng7iwZDcrQrPcHB',\n proxy: false,\n title: '',\n description: 'Organic asynchronous firmware',\n image: 'https://loremflickr.com/640/480',\n video: '',\n rewrite: false,\n ios: '',\n android: '',\n geo: new Components\\LinkGeoTargeting(\n af: '',\n al: '',\n dz: '',\n as: '',\n ad: '',\n ao: '',\n ai: '',\n aq: '',\n ag: '',\n ar: '',\n am: '',\n aw: '',\n au: '',\n at: '',\n az: '',\n bs: '',\n bh: '',\n bd: '',\n bb: '',\n by: '',\n be: '',\n bz: '',\n bj: '',\n bm: '',\n bt: '',\n bo: '',\n ba: '',\n bw: '',\n bv: '',\n br: '',\n io: '',\n bn: '',\n bg: '',\n bf: '',\n bi: '',\n kh: '',\n cm: '',\n ca: '',\n cv: '',\n ky: '',\n cf: '',\n td: '',\n cl: '',\n cn: '',\n cx: '',\n cc: '',\n co: '',\n km: '',\n cg: '',\n cd: '',\n ck: '',\n cr: '',\n ci: '',\n hr: '',\n cu: '',\n cy: '',\n cz: '',\n dk: '',\n dj: '',\n dm: '',\n do: '',\n ec: '',\n eg: '',\n sv: '',\n gq: '',\n er: '',\n ee: '',\n et: '',\n fk: '',\n fo: '',\n fj: '',\n fi: '',\n fr: '',\n gf: '',\n pf: '',\n tf: '',\n ga: '',\n gm: '',\n ge: '',\n de: '',\n gh: '',\n gi: '',\n gr: '',\n gl: '',\n gd: '',\n gp: '',\n gu: '',\n gt: '',\n gn: '',\n gw: '',\n gy: '',\n ht: '',\n hm: '',\n va: '',\n hn: '',\n hk: '',\n hu: '',\n is: '',\n in: '',\n id: '',\n ir: '',\n iq: '',\n ie: '',\n il: '',\n it: '',\n jm: '',\n jp: '',\n jo: '',\n kz: '',\n ke: '',\n ki: '',\n kp: '',\n kr: '',\n kw: '',\n kg: '',\n la: '',\n lv: '',\n lb: '',\n ls: '',\n lr: '',\n ly: '',\n li: '',\n lt: '',\n lu: '',\n mo: '',\n mg: '',\n mw: '',\n my: '',\n mv: '',\n ml: '',\n mt: '',\n mh: '',\n mq: '',\n mr: '',\n mu: '',\n yt: '',\n mx: '',\n fm: '',\n md: '',\n mc: '',\n mn: '',\n ms: '',\n ma: '',\n mz: '',\n mm: '',\n na: '',\n nr: '',\n np: '',\n nl: '',\n nc: '',\n nz: '',\n ni: '',\n ne: '',\n ng: '',\n nu: '',\n nf: '',\n mk: '',\n mp: '',\n no: '',\n om: '',\n pk: '',\n pw: '',\n ps: '',\n pa: '',\n pg: '',\n py: '',\n pe: '',\n ph: '',\n pn: '',\n pl: '',\n pt: '',\n pr: '',\n qa: '',\n re: '',\n ro: '',\n ru: '',\n rw: '',\n sh: '',\n kn: '',\n lc: '',\n pm: '',\n vc: '',\n ws: '',\n sm: '',\n st: '',\n sa: '',\n sn: '',\n sc: '',\n sl: '',\n sg: '',\n sk: '',\n si: '',\n sb: '',\n so: '',\n za: '',\n gs: '',\n es: '',\n lk: '',\n sd: '',\n sr: '',\n sj: '',\n sz: '',\n se: '',\n ch: '',\n sy: '',\n tw: '',\n tj: '',\n tz: '',\n th: '',\n tl: '',\n tg: '',\n tk: '',\n to: '',\n tt: '',\n tn: '',\n tr: '',\n tm: '',\n tc: '',\n tv: '',\n ug: '',\n ua: '',\n ae: '',\n gb: '',\n us: '',\n um: '',\n uy: '',\n uz: '',\n vu: '',\n ve: '',\n vn: '',\n vg: '',\n vi: '',\n wf: '',\n eh: '',\n ye: '',\n zm: '',\n zw: '',\n ax: '',\n bq: '',\n cw: '',\n gg: '',\n im: '',\n je: '',\n me: '',\n bl: '',\n mf: '',\n rs: '',\n sx: '',\n ss: '',\n xk: '',\n ),\n doIndex: false,\n utmSource: '',\n utmMedium: '',\n utmCampaign: '',\n utmTerm: '',\n utmContent: '',\n );\n $response = $sdk->links->upsert($request);\n\n if ($response->linkSchema !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/links"]["get"] + "label": "listDomains" + "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Components;\n\n$security = new Components\\Security();\n$security->token = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\ntry {\n\n $response = $sdk->domains->list(false, '', 1, 50);\n\n if ($response->domainSchemas !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" + - target: $["paths"]["/domains"]["post"] update: "x-codeSamples": - "lang": "php" - "label": "getLinks" - "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Components;\nuse Dub\\Models\\Operations;\n\n$security = new Components\\Security();\n$security->token = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\ntry {\n $request = new Operations\\GetLinksRequest(\n domain: 'smug-bow.name',\n tagId: '',\n tagIds: '',\n tagNames: [\n '',\n ],\n search: '',\n userId: '',\n showArchived: false,\n withTags: false,\n sort: Operations\\Sort::CreatedAt,\n page: 1,\n pageSize: 50,\n );\n $response = $sdk->links->list($request);\n\n if ($response->linkSchemas !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" + "label": "createDomain" + "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Components;\nuse Dub\\Models\\Operations;\n\n$security = new Components\\Security();\n$security->token = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\ntry {\n $request = new Operations\\CreateDomainRequestBody(\n slug: 'acme.com',\n expiredUrl: 'https://acme.com/expired',\n archived: false,\n placeholder: 'https://dub.co/help/article/what-is-dub',\n );\n $response = $sdk->domains->create($request);\n\n if ($response->domainSchema !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" + - target: $["paths"]["/track/sale"]["post"] + update: + "x-codeSamples": + - "lang": "php" + "label": "trackSale" + "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Components;\nuse Dub\\Models\\Operations;\n\n$security = new Components\\Security();\n$security->token = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\ntry {\n $request = new Operations\\TrackSaleRequestBody(\n customerId: '',\n amount: 996500,\n paymentProcessor: Operations\\PaymentProcessor::Shopify,\n eventName: 'Purchase',\n invoiceId: '',\n currency: 'European Unit of Account 17(E.U.A.-17)',\n metadata: [\n 'Stage' => '',\n ],\n );\n $response = $sdk->track->sale($request);\n\n if ($response->object !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - target: $["paths"]["/links/info"]["get"] update: "x-codeSamples": - "lang": "php" "label": "getLinkInfo" "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Components;\n\n$security = new Components\\Security();\n$security->token = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\ntry {\n\n $response = $sdk->links->get('', '', 'clux0rgak00011...', 'ext_123456');\n\n if ($response->linkSchema !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/metatags"]["get"] + - target: $["paths"]["/links"]["get"] update: "x-codeSamples": - "lang": "php" - "label": "getMetatags" - "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Components;\n\n$security = new Components\\Security();\n$security->token = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\ntry {\n\n $response = $sdk->metatags->get('https://dub.co');\n\n if ($response->object !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/domains"]["get"] + "label": "getLinks" + "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Components;\nuse Dub\\Models\\Operations;\n\n$security = new Components\\Security();\n$security->token = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\ntry {\n $request = new Operations\\GetLinksRequest(\n domain: 'smug-bow.name',\n tagId: '',\n tagIds: '',\n tagNames: [\n '',\n ],\n search: '',\n userId: '',\n showArchived: false,\n withTags: false,\n sort: Operations\\Sort::CreatedAt,\n page: 1,\n pageSize: 50,\n );\n $response = $sdk->links->list($request);\n\n if ($response->linkSchemas !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" + - target: $["paths"]["/links/{linkId}"]["delete"] update: "x-codeSamples": - "lang": "php" - "label": "listDomains" - "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Components;\n\n$security = new Components\\Security();\n$security->token = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\ntry {\n\n $response = $sdk->domains->list(false, '', 1, 50);\n\n if ($response->domainSchemas !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/domains/{slug}"]["patch"] + "label": "deleteLink" + "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Components;\n\n$security = new Components\\Security();\n$security->token = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\ntry {\n\n $response = $sdk->links->delete('');\n\n if ($response->object !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" + - target: $["paths"]["/links/{linkId}"]["patch"] update: "x-codeSamples": - "lang": "php" - "label": "updateDomain" - "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Components;\nuse Dub\\Models\\Operations;\n\n$security = new Components\\Security();\n$security->token = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\ntry {\n $requestBody = new Operations\\UpdateDomainRequestBody(\n slug: 'acme.com',\n expiredUrl: 'https://acme.com/expired',\n archived: false,\n placeholder: 'https://dub.co/help/article/what-is-dub',\n );\n $response = $sdk->domains->update('acme.com', $requestBody);\n\n if ($response->domainSchema !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/track/sale"]["post"] + "label": "updateLink" + "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Components;\nuse Dub\\Models\\Operations;\n\n$security = new Components\\Security();\n$security->token = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\ntry {\n $requestBody = new Operations\\UpdateLinkRequestBody(\n url: 'https://google.com',\n domain: 'tidy-amazon.name',\n key: '',\n externalId: '123456',\n prefix: '',\n trackConversion: false,\n archived: false,\n publicStats: false,\n tagId: '',\n tagIds: '[\"clux0rgak00011...\"]',\n tagNames: '',\n comments: '',\n expiresAt: '',\n expiredUrl: '',\n password: 'daOKvPKDk8CkuAM',\n proxy: false,\n title: '',\n description: 'Mandatory real-time migration',\n image: 'https://loremflickr.com/640/480',\n video: '',\n rewrite: false,\n ios: '',\n android: '',\n geo: new Components\\LinkGeoTargeting(\n af: '',\n al: '',\n dz: '',\n as: '',\n ad: '',\n ao: '',\n ai: '',\n aq: '',\n ag: '',\n ar: '',\n am: '',\n aw: '',\n au: '',\n at: '',\n az: '',\n bs: '',\n bh: '',\n bd: '',\n bb: '',\n by: '',\n be: '',\n bz: '',\n bj: '',\n bm: '',\n bt: '',\n bo: '',\n ba: '',\n bw: '',\n bv: '',\n br: '',\n io: '',\n bn: '',\n bg: '',\n bf: '',\n bi: '',\n kh: '',\n cm: '',\n ca: '',\n cv: '',\n ky: '',\n cf: '',\n td: '',\n cl: '',\n cn: '',\n cx: '',\n cc: '',\n co: '',\n km: '',\n cg: '',\n cd: '',\n ck: '',\n cr: '',\n ci: '',\n hr: '',\n cu: '',\n cy: '',\n cz: '',\n dk: '',\n dj: '',\n dm: '',\n do: '',\n ec: '',\n eg: '',\n sv: '',\n gq: '',\n er: '',\n ee: '',\n et: '',\n fk: '',\n fo: '',\n fj: '',\n fi: '',\n fr: '',\n gf: '',\n pf: '',\n tf: '',\n ga: '',\n gm: '',\n ge: '',\n de: '',\n gh: '',\n gi: '',\n gr: '',\n gl: '',\n gd: '',\n gp: '',\n gu: '',\n gt: '',\n gn: '',\n gw: '',\n gy: '',\n ht: '',\n hm: '',\n va: '',\n hn: '',\n hk: '',\n hu: '',\n is: '',\n in: '',\n id: '',\n ir: '',\n iq: '',\n ie: '',\n il: '',\n it: '',\n jm: '',\n jp: '',\n jo: '',\n kz: '',\n ke: '',\n ki: '',\n kp: '',\n kr: '',\n kw: '',\n kg: '',\n la: '',\n lv: '',\n lb: '',\n ls: '',\n lr: '',\n ly: '',\n li: '',\n lt: '',\n lu: '',\n mo: '',\n mg: '',\n mw: '',\n my: '',\n mv: '',\n ml: '',\n mt: '',\n mh: '',\n mq: '',\n mr: '',\n mu: '',\n yt: '',\n mx: '',\n fm: '',\n md: '',\n mc: '',\n mn: '',\n ms: '',\n ma: '',\n mz: '',\n mm: '',\n na: '',\n nr: '',\n np: '',\n nl: '',\n nc: '',\n nz: '',\n ni: '',\n ne: '',\n ng: '',\n nu: '',\n nf: '',\n mk: '',\n mp: '',\n no: '',\n om: '',\n pk: '',\n pw: '',\n ps: '',\n pa: '',\n pg: '',\n py: '',\n pe: '',\n ph: '',\n pn: '',\n pl: '',\n pt: '',\n pr: '',\n qa: '',\n re: '',\n ro: '',\n ru: '',\n rw: '',\n sh: '',\n kn: '',\n lc: '',\n pm: '',\n vc: '',\n ws: '',\n sm: '',\n st: '',\n sa: '',\n sn: '',\n sc: '',\n sl: '',\n sg: '',\n sk: '',\n si: '',\n sb: '',\n so: '',\n za: '',\n gs: '',\n es: '',\n lk: '',\n sd: '',\n sr: '',\n sj: '',\n sz: '',\n se: '',\n ch: '',\n sy: '',\n tw: '',\n tj: '',\n tz: '',\n th: '',\n tl: '',\n tg: '',\n tk: '',\n to: '',\n tt: '',\n tn: '',\n tr: '',\n tm: '',\n tc: '',\n tv: '',\n ug: '',\n ua: '',\n ae: '',\n gb: '',\n us: '',\n um: '',\n uy: '',\n uz: '',\n vu: '',\n ve: '',\n vn: '',\n vg: '',\n vi: '',\n wf: '',\n eh: '',\n ye: '',\n zm: '',\n zw: '',\n ax: '',\n bq: '',\n cw: '',\n gg: '',\n im: '',\n je: '',\n me: '',\n bl: '',\n mf: '',\n rs: '',\n sx: '',\n ss: '',\n xk: '',\n ),\n doIndex: false,\n utmSource: '',\n utmMedium: '',\n utmCampaign: '',\n utmTerm: '',\n utmContent: '',\n );\n $response = $sdk->links->update('', $requestBody);\n\n if ($response->linkSchema !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" + - target: $["paths"]["/track/customer"]["post"] update: "x-codeSamples": - "lang": "php" - "label": "trackSale" - "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Components;\nuse Dub\\Models\\Operations;\n\n$security = new Components\\Security();\n$security->token = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\ntry {\n $request = new Operations\\TrackSaleRequestBody(\n customerId: '',\n amount: 996500,\n paymentProcessor: Operations\\PaymentProcessor::Shopify,\n eventName: 'Purchase',\n invoiceId: '',\n currency: 'European Unit of Account 17(E.U.A.-17)',\n metadata: [\n 'Stage' => '',\n ],\n );\n $response = $sdk->track->sale($request);\n\n if ($response->object !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/domains/{slug}"]["delete"] + "label": "trackCustomer" + "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Components;\nuse Dub\\Models\\Operations;\n\n$security = new Components\\Security();\n$security->token = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\ntry {\n $request = new Operations\\TrackCustomerRequestBody(\n customerId: '',\n customerName: '',\n customerEmail: 'Wilson.Smith@gmail.com',\n customerAvatar: '',\n );\n $response = $sdk->track->customer($request);\n\n if ($response->object !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" + - target: $["paths"]["/metatags"]["get"] update: "x-codeSamples": - "lang": "php" - "label": "deleteDomain" - "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Components;\n\n$security = new Components\\Security();\n$security->token = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\ntry {\n\n $response = $sdk->domains->delete('acme.com');\n\n if ($response->object !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/track/lead"]["post"] + "label": "getMetatags" + "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Components;\n\n$security = new Components\\Security();\n$security->token = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\ntry {\n\n $response = $sdk->metatags->get('https://dub.co');\n\n if ($response->object !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" + - target: $["paths"]["/links"]["post"] update: "x-codeSamples": - "lang": "php" - "label": "trackLead" - "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Components;\nuse Dub\\Models\\Operations;\n\n$security = new Components\\Security();\n$security->token = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\ntry {\n $request = new Operations\\TrackLeadRequestBody(\n clickId: '',\n eventName: 'Sign up',\n customerId: '',\n customerName: '',\n customerEmail: 'Katelin24@hotmail.com',\n customerAvatar: '',\n metadata: [\n 'Assistant' => '',\n ],\n );\n $response = $sdk->track->lead($request);\n\n if ($response->object !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/track/customer"]["post"] + "label": "createLink" + "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Components;\nuse Dub\\Models\\Operations;\n\n$security = new Components\\Security();\n$security->token = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\ntry {\n $request = new Operations\\CreateLinkRequestBody(\n url: 'https://google.com',\n domain: 'lighthearted-kilogram.name',\n key: '',\n externalId: '123456',\n prefix: '',\n trackConversion: false,\n archived: false,\n publicStats: false,\n tagId: '',\n tagIds: [\n '',\n ],\n tagNames: '',\n comments: '',\n expiresAt: '',\n expiredUrl: '',\n password: 'klDuL1dlrnUXohO',\n proxy: false,\n title: '',\n description: 'User-friendly multi-state frame',\n image: 'https://loremflickr.com/640/480',\n video: '',\n rewrite: false,\n ios: '',\n android: '',\n geo: new Components\\LinkGeoTargeting(\n af: '',\n al: '',\n dz: '',\n as: '',\n ad: '',\n ao: '',\n ai: '',\n aq: '',\n ag: '',\n ar: '',\n am: '',\n aw: '',\n au: '',\n at: '',\n az: '',\n bs: '',\n bh: '',\n bd: '',\n bb: '',\n by: '',\n be: '',\n bz: '',\n bj: '',\n bm: '',\n bt: '',\n bo: '',\n ba: '',\n bw: '',\n bv: '',\n br: '',\n io: '',\n bn: '',\n bg: '',\n bf: '',\n bi: '',\n kh: '',\n cm: '',\n ca: '',\n cv: '',\n ky: '',\n cf: '',\n td: '',\n cl: '',\n cn: '',\n cx: '',\n cc: '',\n co: '',\n km: '',\n cg: '',\n cd: '',\n ck: '',\n cr: '',\n ci: '',\n hr: '',\n cu: '',\n cy: '',\n cz: '',\n dk: '',\n dj: '',\n dm: '',\n do: '',\n ec: '',\n eg: '',\n sv: '',\n gq: '',\n er: '',\n ee: '',\n et: '',\n fk: '',\n fo: '',\n fj: '',\n fi: '',\n fr: '',\n gf: '',\n pf: '',\n tf: '',\n ga: '',\n gm: '',\n ge: '',\n de: '',\n gh: '',\n gi: '',\n gr: '',\n gl: '',\n gd: '',\n gp: '',\n gu: '',\n gt: '',\n gn: '',\n gw: '',\n gy: '',\n ht: '',\n hm: '',\n va: '',\n hn: '',\n hk: '',\n hu: '',\n is: '',\n in: '',\n id: '',\n ir: '',\n iq: '',\n ie: '',\n il: '',\n it: '',\n jm: '',\n jp: '',\n jo: '',\n kz: '',\n ke: '',\n ki: '',\n kp: '',\n kr: '',\n kw: '',\n kg: '',\n la: '',\n lv: '',\n lb: '',\n ls: '',\n lr: '',\n ly: '',\n li: '',\n lt: '',\n lu: '',\n mo: '',\n mg: '',\n mw: '',\n my: '',\n mv: '',\n ml: '',\n mt: '',\n mh: '',\n mq: '',\n mr: '',\n mu: '',\n yt: '',\n mx: '',\n fm: '',\n md: '',\n mc: '',\n mn: '',\n ms: '',\n ma: '',\n mz: '',\n mm: '',\n na: '',\n nr: '',\n np: '',\n nl: '',\n nc: '',\n nz: '',\n ni: '',\n ne: '',\n ng: '',\n nu: '',\n nf: '',\n mk: '',\n mp: '',\n no: '',\n om: '',\n pk: '',\n pw: '',\n ps: '',\n pa: '',\n pg: '',\n py: '',\n pe: '',\n ph: '',\n pn: '',\n pl: '',\n pt: '',\n pr: '',\n qa: '',\n re: '',\n ro: '',\n ru: '',\n rw: '',\n sh: '',\n kn: '',\n lc: '',\n pm: '',\n vc: '',\n ws: '',\n sm: '',\n st: '',\n sa: '',\n sn: '',\n sc: '',\n sl: '',\n sg: '',\n sk: '',\n si: '',\n sb: '',\n so: '',\n za: '',\n gs: '',\n es: '',\n lk: '',\n sd: '',\n sr: '',\n sj: '',\n sz: '',\n se: '',\n ch: '',\n sy: '',\n tw: '',\n tj: '',\n tz: '',\n th: '',\n tl: '',\n tg: '',\n tk: '',\n to: '',\n tt: '',\n tn: '',\n tr: '',\n tm: '',\n tc: '',\n tv: '',\n ug: '',\n ua: '',\n ae: '',\n gb: '',\n us: '',\n um: '',\n uy: '',\n uz: '',\n vu: '',\n ve: '',\n vn: '',\n vg: '',\n vi: '',\n wf: '',\n eh: '',\n ye: '',\n zm: '',\n zw: '',\n ax: '',\n bq: '',\n cw: '',\n gg: '',\n im: '',\n je: '',\n me: '',\n bl: '',\n mf: '',\n rs: '',\n sx: '',\n ss: '',\n xk: '',\n ),\n doIndex: false,\n utmSource: '',\n utmMedium: '',\n utmCampaign: '',\n utmTerm: '',\n utmContent: '',\n );\n $response = $sdk->links->create($request);\n\n if ($response->linkSchema !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" + - target: $["paths"]["/links/count"]["get"] update: "x-codeSamples": - "lang": "php" - "label": "trackCustomer" - "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Components;\nuse Dub\\Models\\Operations;\n\n$security = new Components\\Security();\n$security->token = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\ntry {\n $request = new Operations\\TrackCustomerRequestBody(\n customerId: '',\n customerName: '',\n customerEmail: 'Wilson.Smith@gmail.com',\n customerAvatar: '',\n );\n $response = $sdk->track->customer($request);\n\n if ($response->object !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" + "label": "getLinksCount" + "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Components;\nuse Dub\\Models\\Operations;\n\n$security = new Components\\Security();\n$security->token = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\ntry {\n $request = new Operations\\GetLinksCountRequest(\n domain: 'false-epauliere.info',\n tagId: '',\n tagIds: [\n '',\n ],\n tagNames: [\n '',\n ],\n search: '',\n userId: '',\n showArchived: false,\n withTags: false,\n groupBy: Operations\\Two::TagId,\n );\n $response = $sdk->links->count($request);\n\n if ($response->number !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - target: $["paths"]["/qr"]["get"] update: "x-codeSamples": - "lang": "php" "label": "getQRCode" "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Components;\nuse Dub\\Models\\Operations;\n\n$security = new Components\\Security();\n$security->token = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\ntry {\n $request = new Operations\\GetQRCodeRequest(\n url: 'https://brief-micronutrient.org',\n size: 5442.21,\n level: Operations\\Level::H,\n fgColor: '',\n bgColor: '',\n includeMargin: false,\n );\n $response = $sdk->qrCodes->get($request);\n\n if ($response->res !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/workspaces/{idOrSlug}"]["get"] - update: - "x-codeSamples": - - "lang": "php" - "label": "getWorkspace" - "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Components;\n\n$security = new Components\\Security();\n$security->token = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\ntry {\n\n $response = $sdk->workspaces->get('');\n\n if ($response->workspaceSchema !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/domains"]["post"] + - target: $["paths"]["/tags"]["post"] update: "x-codeSamples": - "lang": "php" - "label": "createDomain" - "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Components;\nuse Dub\\Models\\Operations;\n\n$security = new Components\\Security();\n$security->token = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\ntry {\n $request = new Operations\\CreateDomainRequestBody(\n slug: 'acme.com',\n expiredUrl: 'https://acme.com/expired',\n archived: false,\n placeholder: 'https://dub.co/help/article/what-is-dub',\n );\n $response = $sdk->domains->create($request);\n\n if ($response->domainSchema !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/workspaces/{idOrSlug}"]["patch"] + "label": "createTag" + "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Components;\nuse Dub\\Models\\Operations;\n\n$security = new Components\\Security();\n$security->token = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\ntry {\n $request = new Operations\\CreateTagRequestBody(\n name: '',\n color: Operations\\Color::Blue,\n tag: '',\n );\n $response = $sdk->tags->create($request);\n\n if ($response->tagSchema !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" + - target: $["paths"]["/tags/{id}"]["patch"] update: "x-codeSamples": - "lang": "php" - "label": "updateWorkspace" - "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Components;\nuse Dub\\Models\\Operations;\n\n$security = new Components\\Security();\n$security->token = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\ntry {\n $requestBody = new Operations\\UpdateWorkspaceRequestBody(\n name: '',\n slug: '',\n );\n $response = $sdk->workspaces->update('', $requestBody);\n\n if ($response->workspaceSchema !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/tags"]["get"] + "label": "updateTag" + "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Components;\nuse Dub\\Models\\Operations;\n\n$security = new Components\\Security();\n$security->token = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\ntry {\n $requestBody = new Operations\\UpdateTagRequestBody(\n name: '',\n color: Operations\\UpdateTagColor::Brown,\n tag: '',\n );\n $response = $sdk->tags->update('', $requestBody);\n\n if ($response->tagSchema !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" + - target: $["paths"]["/domains/{slug}"]["delete"] update: "x-codeSamples": - "lang": "php" - "label": "getTags" - "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Components;\n\n$security = new Components\\Security();\n$security->token = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\ntry {\n $response = $sdk->tags->list();\n\n if ($response->tagSchemas !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/links/count"]["get"] + "label": "deleteDomain" + "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Components;\n\n$security = new Components\\Security();\n$security->token = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\ntry {\n\n $response = $sdk->domains->delete('acme.com');\n\n if ($response->object !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" + - target: $["paths"]["/domains/{slug}"]["patch"] update: "x-codeSamples": - "lang": "php" - "label": "getLinksCount" - "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Components;\nuse Dub\\Models\\Operations;\n\n$security = new Components\\Security();\n$security->token = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\ntry {\n $request = new Operations\\GetLinksCountRequest(\n domain: 'false-epauliere.info',\n tagId: '',\n tagIds: [\n '',\n ],\n tagNames: [\n '',\n ],\n search: '',\n userId: '',\n showArchived: false,\n withTags: false,\n groupBy: Operations\\Two::TagId,\n );\n $response = $sdk->links->count($request);\n\n if ($response->number !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/links/{linkId}"]["delete"] + "label": "updateDomain" + "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Components;\nuse Dub\\Models\\Operations;\n\n$security = new Components\\Security();\n$security->token = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\ntry {\n $requestBody = new Operations\\UpdateDomainRequestBody(\n slug: 'acme.com',\n expiredUrl: 'https://acme.com/expired',\n archived: false,\n placeholder: 'https://dub.co/help/article/what-is-dub',\n );\n $response = $sdk->domains->update('acme.com', $requestBody);\n\n if ($response->domainSchema !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" + - target: $["paths"]["/track/lead"]["post"] update: "x-codeSamples": - "lang": "php" - "label": "deleteLink" - "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Components;\n\n$security = new Components\\Security();\n$security->token = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\ntry {\n\n $response = $sdk->links->delete('');\n\n if ($response->object !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/links/bulk"]["post"] + "label": "trackLead" + "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Components;\nuse Dub\\Models\\Operations;\n\n$security = new Components\\Security();\n$security->token = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\ntry {\n $request = new Operations\\TrackLeadRequestBody(\n clickId: '',\n eventName: 'Sign up',\n customerId: '',\n customerName: '',\n customerEmail: 'Katelin24@hotmail.com',\n customerAvatar: '',\n metadata: [\n 'Assistant' => '',\n ],\n );\n $response = $sdk->track->lead($request);\n\n if ($response->object !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" + - target: $["paths"]["/links/upsert"]["put"] update: "x-codeSamples": - "lang": "php" - "label": "bulkCreateLinks" - "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Components;\nuse Dub\\Models\\Operations;\n\n$security = new Components\\Security();\n$security->token = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\ntry {\n $request = [\n new Operations\\RequestBody,\n ];\n $response = $sdk->links->createMany($request);\n\n if ($response->linkSchemas !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" + "label": "upsertLink" + "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Components;\nuse Dub\\Models\\Operations;\n\n$security = new Components\\Security();\n$security->token = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\ntry {\n $request = new Operations\\UpsertLinkRequestBody(\n url: 'https://google.com',\n domain: 'monthly-hometown.info',\n key: '',\n externalId: '123456',\n prefix: '',\n trackConversion: false,\n archived: false,\n publicStats: false,\n tagId: '',\n tagIds: [\n '',\n ],\n tagNames: '',\n comments: '',\n expiresAt: '',\n expiredUrl: '',\n password: 'Ng7iwZDcrQrPcHB',\n proxy: false,\n title: '',\n description: 'Organic asynchronous firmware',\n image: 'https://loremflickr.com/640/480',\n video: '',\n rewrite: false,\n ios: '',\n android: '',\n geo: new Components\\LinkGeoTargeting(\n af: '',\n al: '',\n dz: '',\n as: '',\n ad: '',\n ao: '',\n ai: '',\n aq: '',\n ag: '',\n ar: '',\n am: '',\n aw: '',\n au: '',\n at: '',\n az: '',\n bs: '',\n bh: '',\n bd: '',\n bb: '',\n by: '',\n be: '',\n bz: '',\n bj: '',\n bm: '',\n bt: '',\n bo: '',\n ba: '',\n bw: '',\n bv: '',\n br: '',\n io: '',\n bn: '',\n bg: '',\n bf: '',\n bi: '',\n kh: '',\n cm: '',\n ca: '',\n cv: '',\n ky: '',\n cf: '',\n td: '',\n cl: '',\n cn: '',\n cx: '',\n cc: '',\n co: '',\n km: '',\n cg: '',\n cd: '',\n ck: '',\n cr: '',\n ci: '',\n hr: '',\n cu: '',\n cy: '',\n cz: '',\n dk: '',\n dj: '',\n dm: '',\n do: '',\n ec: '',\n eg: '',\n sv: '',\n gq: '',\n er: '',\n ee: '',\n et: '',\n fk: '',\n fo: '',\n fj: '',\n fi: '',\n fr: '',\n gf: '',\n pf: '',\n tf: '',\n ga: '',\n gm: '',\n ge: '',\n de: '',\n gh: '',\n gi: '',\n gr: '',\n gl: '',\n gd: '',\n gp: '',\n gu: '',\n gt: '',\n gn: '',\n gw: '',\n gy: '',\n ht: '',\n hm: '',\n va: '',\n hn: '',\n hk: '',\n hu: '',\n is: '',\n in: '',\n id: '',\n ir: '',\n iq: '',\n ie: '',\n il: '',\n it: '',\n jm: '',\n jp: '',\n jo: '',\n kz: '',\n ke: '',\n ki: '',\n kp: '',\n kr: '',\n kw: '',\n kg: '',\n la: '',\n lv: '',\n lb: '',\n ls: '',\n lr: '',\n ly: '',\n li: '',\n lt: '',\n lu: '',\n mo: '',\n mg: '',\n mw: '',\n my: '',\n mv: '',\n ml: '',\n mt: '',\n mh: '',\n mq: '',\n mr: '',\n mu: '',\n yt: '',\n mx: '',\n fm: '',\n md: '',\n mc: '',\n mn: '',\n ms: '',\n ma: '',\n mz: '',\n mm: '',\n na: '',\n nr: '',\n np: '',\n nl: '',\n nc: '',\n nz: '',\n ni: '',\n ne: '',\n ng: '',\n nu: '',\n nf: '',\n mk: '',\n mp: '',\n no: '',\n om: '',\n pk: '',\n pw: '',\n ps: '',\n pa: '',\n pg: '',\n py: '',\n pe: '',\n ph: '',\n pn: '',\n pl: '',\n pt: '',\n pr: '',\n qa: '',\n re: '',\n ro: '',\n ru: '',\n rw: '',\n sh: '',\n kn: '',\n lc: '',\n pm: '',\n vc: '',\n ws: '',\n sm: '',\n st: '',\n sa: '',\n sn: '',\n sc: '',\n sl: '',\n sg: '',\n sk: '',\n si: '',\n sb: '',\n so: '',\n za: '',\n gs: '',\n es: '',\n lk: '',\n sd: '',\n sr: '',\n sj: '',\n sz: '',\n se: '',\n ch: '',\n sy: '',\n tw: '',\n tj: '',\n tz: '',\n th: '',\n tl: '',\n tg: '',\n tk: '',\n to: '',\n tt: '',\n tn: '',\n tr: '',\n tm: '',\n tc: '',\n tv: '',\n ug: '',\n ua: '',\n ae: '',\n gb: '',\n us: '',\n um: '',\n uy: '',\n uz: '',\n vu: '',\n ve: '',\n vn: '',\n vg: '',\n vi: '',\n wf: '',\n eh: '',\n ye: '',\n zm: '',\n zw: '',\n ax: '',\n bq: '',\n cw: '',\n gg: '',\n im: '',\n je: '',\n me: '',\n bl: '',\n mf: '',\n rs: '',\n sx: '',\n ss: '',\n xk: '',\n ),\n doIndex: false,\n utmSource: '',\n utmMedium: '',\n utmCampaign: '',\n utmTerm: '',\n utmContent: '',\n );\n $response = $sdk->links->upsert($request);\n\n if ($response->linkSchema !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" diff --git a/docs/Models/Components/LinkSchema.md b/docs/Models/Components/LinkSchema.md index a2a60ec..9e0bcc5 100644 --- a/docs/Models/Components/LinkSchema.md +++ b/docs/Models/Components/LinkSchema.md @@ -42,6 +42,7 @@ | `lastClicked` | *string* | :heavy_check_mark: | The date and time when the short link was last clicked. | | `leads` | *float* | :heavy_check_mark: | [BETA]: The number of leads the short links has generated. | | `sales` | *float* | :heavy_check_mark: | [BETA]: The number of sales the short links has generated. | +| `saleAmount` | *float* | :heavy_check_mark: | [BETA]: The total dollar amount of sales the short links has generated (in cents). | | `createdAt` | *string* | :heavy_check_mark: | The date and time when the short link was created. | | `updatedAt` | *string* | :heavy_check_mark: | The date and time when the short link was last updated. | | ~~`projectId`~~ | *string* | :heavy_check_mark: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

The project ID of the short link. This field is deprecated – use `workspaceId` instead. | \ No newline at end of file diff --git a/docs/Models/Components/WorkspaceSchema.md b/docs/Models/Components/WorkspaceSchema.md index f63be0f..e92428f 100644 --- a/docs/Models/Components/WorkspaceSchema.md +++ b/docs/Models/Components/WorkspaceSchema.md @@ -3,25 +3,28 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `id` | *string* | :heavy_check_mark: | The unique ID of the workspace. | -| `name` | *string* | :heavy_check_mark: | The name of the workspace. | -| `slug` | *string* | :heavy_check_mark: | The slug of the workspace. | -| `logo` | *string* | :heavy_check_mark: | The logo of the workspace. | -| `usage` | *float* | :heavy_check_mark: | The usage of the workspace. | -| `usageLimit` | *float* | :heavy_check_mark: | The usage limit of the workspace. | -| `linksUsage` | *float* | :heavy_check_mark: | The links usage of the workspace. | -| `linksLimit` | *float* | :heavy_check_mark: | The links limit of the workspace. | -| `domainsLimit` | *float* | :heavy_check_mark: | The domains limit of the workspace. | -| `tagsLimit` | *float* | :heavy_check_mark: | The tags limit of the workspace. | -| `usersLimit` | *float* | :heavy_check_mark: | The users limit of the workspace. | -| `plan` | [Components\Plan](../../Models/Components/Plan.md) | :heavy_check_mark: | The plan of the workspace. | -| `stripeId` | *string* | :heavy_check_mark: | The Stripe ID of the workspace. | -| `billingCycleStart` | *float* | :heavy_check_mark: | The date and time when the billing cycle starts for the workspace. | -| `stripeConnectId` | *string* | :heavy_check_mark: | [BETA]: The Stripe Connect ID of the workspace. | -| `createdAt` | *string* | :heavy_check_mark: | The date and time when the workspace was created. | -| `users` | array<[Components\Users](../../Models/Components/Users.md)> | :heavy_check_mark: | The role of the authenticated user in the workspace. | -| `domains` | array<[Components\Domains](../../Models/Components/Domains.md)> | :heavy_check_mark: | The domains of the workspace. | -| `inviteCode` | *string* | :heavy_check_mark: | The invite code of the workspace. | -| `flags` | array | :heavy_minus_sign: | The feature flags of the workspace, indicating which features are enabled. | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | +| `id` | *string* | :heavy_check_mark: | The unique ID of the workspace. | +| `name` | *string* | :heavy_check_mark: | The name of the workspace. | +| `slug` | *string* | :heavy_check_mark: | The slug of the workspace. | +| `logo` | *string* | :heavy_check_mark: | The logo of the workspace. | +| `usage` | *float* | :heavy_check_mark: | The usage of the workspace. | +| `usageLimit` | *float* | :heavy_check_mark: | The usage limit of the workspace. | +| `linksUsage` | *float* | :heavy_check_mark: | The links usage of the workspace. | +| `linksLimit` | *float* | :heavy_check_mark: | The links limit of the workspace. | +| `salesUsage` | *float* | :heavy_check_mark: | The dollar amount of tracked revenue in the current billing cycle (in cents). | +| `salesLimit` | *float* | :heavy_check_mark: | The limit of tracked revenue in the current billing cycle (in cents). | +| `domainsLimit` | *float* | :heavy_check_mark: | The domains limit of the workspace. | +| `tagsLimit` | *float* | :heavy_check_mark: | The tags limit of the workspace. | +| `usersLimit` | *float* | :heavy_check_mark: | The users limit of the workspace. | +| `plan` | [Components\Plan](../../Models/Components/Plan.md) | :heavy_check_mark: | The plan of the workspace. | +| `stripeId` | *string* | :heavy_check_mark: | The Stripe ID of the workspace. | +| `billingCycleStart` | *float* | :heavy_check_mark: | The date and time when the billing cycle starts for the workspace. | +| `stripeConnectId` | *string* | :heavy_check_mark: | [BETA]: The Stripe Connect ID of the workspace. | +| `createdAt` | *string* | :heavy_check_mark: | The date and time when the workspace was created. | +| `users` | array<[Components\Users](../../Models/Components/Users.md)> | :heavy_check_mark: | The role of the authenticated user in the workspace. | +| `domains` | array<[Components\Domains](../../Models/Components/Domains.md)> | :heavy_check_mark: | The domains of the workspace. | +| `inviteCode` | *string* | :heavy_check_mark: | The invite code of the workspace. | +| `conversionEnabled` | *bool* | :heavy_check_mark: | Whether the workspace has conversion tracking enabled (d.to/conversions). | +| `flags` | array | :heavy_minus_sign: | The feature flags of the workspace, indicating which features are enabled. | \ No newline at end of file diff --git a/docs/sdks/analytics/README.md b/docs/sdks/analytics/README.md index 9955f15..cb32f82 100644 --- a/docs/sdks/analytics/README.md +++ b/docs/sdks/analytics/README.md @@ -1,5 +1,6 @@ # Analytics +## Overview ### Available Operations @@ -59,18 +60,16 @@ try { } ``` - - ### Parameters | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | | `$request` | [Operations\RetrieveAnalyticsRequest](../../Models/Operations/RetrieveAnalyticsRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[?Operations\RetrieveAnalyticsResponse](../../Models/Operations/RetrieveAnalyticsResponse.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/domains/README.md b/docs/sdks/domains/README.md index 27dcf69..464c3ba 100644 --- a/docs/sdks/domains/README.md +++ b/docs/sdks/domains/README.md @@ -1,5 +1,6 @@ # Domains +## Overview ### Available Operations @@ -39,8 +40,6 @@ try { } ``` - - ### Parameters | Parameter | Type | Required | Description | Example | @@ -50,10 +49,10 @@ try { | `page` | *float* | :heavy_minus_sign: | The page number for pagination. | 1 | | `pageSize` | *float* | :heavy_minus_sign: | The number of items per page. | 50 | - ### Response **[?Operations\ListDomainsResponse](../../Models/Operations/ListDomainsResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -69,6 +68,7 @@ try { | Errors\InternalServerError | 500 | application/json | | Dub\Models\Errors.SDKException | 4xx-5xx | */* | + ## create Create a domain for the authenticated workspace. @@ -106,18 +106,16 @@ try { } ``` - - ### Parameters | Parameter | Type | Required | Description | | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | | `$request` | [Operations\CreateDomainRequestBody](../../Models/Operations/CreateDomainRequestBody.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[?Operations\CreateDomainResponse](../../Models/Operations/CreateDomainResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -133,6 +131,7 @@ try { | Errors\InternalServerError | 500 | application/json | | Dub\Models\Errors.SDKException | 4xx-5xx | */* | + ## delete Delete a domain from a workspace. It cannot be undone. This will also delete all the links associated with the domain. @@ -164,18 +163,16 @@ try { } ``` - - ### Parameters | Parameter | Type | Required | Description | Example | | ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | | `slug` | *string* | :heavy_check_mark: | The domain name. | acme.com | - ### Response **[?Operations\DeleteDomainResponse](../../Models/Operations/DeleteDomainResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -191,6 +188,7 @@ try { | Errors\InternalServerError | 500 | application/json | | Dub\Models\Errors.SDKException | 4xx-5xx | */* | + ## update Update a domain for the authenticated workspace. @@ -228,8 +226,6 @@ try { } ``` - - ### Parameters | Parameter | Type | Required | Description | Example | @@ -237,10 +233,10 @@ try { | `slug` | *string* | :heavy_check_mark: | The domain name. | acme.com | | `requestBody` | [Operations\UpdateDomainRequestBody](../../Models/Operations/UpdateDomainRequestBody.md) | :heavy_minus_sign: | N/A | | - ### Response **[?Operations\UpdateDomainResponse](../../Models/Operations/UpdateDomainResponse.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/dub/README.md b/docs/sdks/dub/README.md index 15c3115..c64dd74 100644 --- a/docs/sdks/dub/README.md +++ b/docs/sdks/dub/README.md @@ -1,9 +1,5 @@ # Dub SDK - ## Overview -Dub.co API: Dub is link management infrastructure for companies to create marketing campaigns, link sharing features, and referral programs. - -### Available Operations - +Dub.co API: Dub is link management infrastructure for companies to create marketing campaigns, link sharing features, and referral programs. \ No newline at end of file diff --git a/docs/sdks/events/README.md b/docs/sdks/events/README.md index 068e1d1..a7f952a 100644 --- a/docs/sdks/events/README.md +++ b/docs/sdks/events/README.md @@ -1,5 +1,6 @@ # Events +## Overview ### Available Operations @@ -62,18 +63,16 @@ try { } ``` - - ### Parameters | Parameter | Type | Required | Description | | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | | `$request` | [Operations\ListEventsRequest](../../Models/Operations/ListEventsRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[?Operations\ListEventsResponse](../../Models/Operations/ListEventsResponse.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/links/README.md b/docs/sdks/links/README.md index 2f124c0..5d133cd 100644 --- a/docs/sdks/links/README.md +++ b/docs/sdks/links/README.md @@ -1,5 +1,6 @@ # Links +## Overview ### Available Operations @@ -59,18 +60,16 @@ try { } ``` - - ### Parameters | Parameter | Type | Required | Description | | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | | `$request` | [Operations\GetLinksRequest](../../Models/Operations/GetLinksRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[?Operations\GetLinksResponse](../../Models/Operations/GetLinksResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -86,6 +85,7 @@ try { | Errors\InternalServerError | 500 | application/json | | Dub\Models\Errors.SDKException | 4xx-5xx | */* | + ## create Create a new link for the authenticated workspace. @@ -402,18 +402,16 @@ try { } ``` - - ### Parameters | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | | `$request` | [Operations\CreateLinkRequestBody](../../Models/Operations/CreateLinkRequestBody.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[?Operations\CreateLinkResponse](../../Models/Operations/CreateLinkResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -429,6 +427,7 @@ try { | Errors\InternalServerError | 500 | application/json | | Dub\Models\Errors.SDKException | 4xx-5xx | */* | + ## count Retrieve the number of links for the authenticated workspace. @@ -475,18 +474,16 @@ try { } ``` - - ### Parameters | Parameter | Type | Required | Description | | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | | `$request` | [Operations\GetLinksCountRequest](../../Models/Operations/GetLinksCountRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[?Operations\GetLinksCountResponse](../../Models/Operations/GetLinksCountResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -502,6 +499,7 @@ try { | Errors\InternalServerError | 500 | application/json | | Dub\Models\Errors.SDKException | 4xx-5xx | */* | + ## get Retrieve the info for a link. @@ -533,8 +531,6 @@ try { } ``` - - ### Parameters | Parameter | Type | Required | Description | Example | @@ -544,10 +540,10 @@ try { | `linkId` | *string* | :heavy_minus_sign: | The unique ID of the short link. | clux0rgak00011... | | `externalId` | *string* | :heavy_minus_sign: | This is the ID of the link in the your database. Must be prefixed with `ext_` when passed as a query parameter. | ext_123456 | - ### Response **[?Operations\GetLinkInfoResponse](../../Models/Operations/GetLinkInfoResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -563,6 +559,7 @@ try { | Errors\InternalServerError | 500 | application/json | | Dub\Models\Errors.SDKException | 4xx-5xx | */* | + ## delete Delete a link for the authenticated workspace. @@ -594,18 +591,16 @@ try { } ``` - - ### Parameters | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | | `linkId` | *string* | :heavy_check_mark: | The id of the link to delete. You may use either `linkId` (obtained via `/links/info` endpoint) or `externalId` prefixed with `ext_`. | - ### Response **[?Operations\DeleteLinkResponse](../../Models/Operations/DeleteLinkResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -621,6 +616,7 @@ try { | Errors\InternalServerError | 500 | application/json | | Dub\Models\Errors.SDKException | 4xx-5xx | */* | + ## update Update a link for the authenticated workspace. If there's no change, returns it as it is. @@ -935,8 +931,6 @@ try { } ``` - - ### Parameters | Parameter | Type | Required | Description | @@ -944,10 +938,10 @@ try { | `linkId` | *string* | :heavy_check_mark: | The id of the link to update. You may use either `linkId` (obtained via `/links/info` endpoint) or `externalId` prefixed with `ext_`. | | `requestBody` | [Operations\UpdateLinkRequestBody](../../Models/Operations/UpdateLinkRequestBody.md) | :heavy_minus_sign: | N/A | - ### Response **[?Operations\UpdateLinkResponse](../../Models/Operations/UpdateLinkResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -963,6 +957,7 @@ try { | Errors\InternalServerError | 500 | application/json | | Dub\Models\Errors.SDKException | 4xx-5xx | */* | + ## createMany Bulk create up to 100 links for the authenticated workspace. @@ -997,18 +992,16 @@ try { } ``` - - ### Parameters | Parameter | Type | Required | Description | | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | | `$request` | [array](../../.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[?Operations\BulkCreateLinksResponse](../../Models/Operations/BulkCreateLinksResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -1024,6 +1017,7 @@ try { | Errors\InternalServerError | 500 | application/json | | Dub\Models\Errors.SDKException | 4xx-5xx | */* | + ## updateMany Bulk update up to 100 links with the same data for the authenticated workspace. @@ -1339,18 +1333,16 @@ try { } ``` - - ### Parameters | Parameter | Type | Required | Description | | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | | `$request` | [Operations\BulkUpdateLinksRequestBody](../../Models/Operations/BulkUpdateLinksRequestBody.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[?Operations\BulkUpdateLinksResponse](../../Models/Operations/BulkUpdateLinksResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -1366,6 +1358,7 @@ try { | Errors\InternalServerError | 500 | application/json | | Dub\Models\Errors.SDKException | 4xx-5xx | */* | + ## upsert Upsert a link for the authenticated workspace by its URL. If a link with the same URL already exists, return it (or update it if there are any changes). Otherwise, a new link will be created. @@ -1682,18 +1675,16 @@ try { } ``` - - ### Parameters | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | | `$request` | [Operations\UpsertLinkRequestBody](../../Models/Operations/UpsertLinkRequestBody.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[?Operations\UpsertLinkResponse](../../Models/Operations/UpsertLinkResponse.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/metatags/README.md b/docs/sdks/metatags/README.md index a1745d1..c739fc4 100644 --- a/docs/sdks/metatags/README.md +++ b/docs/sdks/metatags/README.md @@ -1,5 +1,6 @@ # Metatags +## Overview ### Available Operations @@ -36,18 +37,16 @@ try { } ``` - - ### Parameters | Parameter | Type | Required | Description | Example | | --------------------------------- | --------------------------------- | --------------------------------- | --------------------------------- | --------------------------------- | | `url` | *string* | :heavy_check_mark: | The URL to retrieve metatags for. | https://dub.co | - ### Response **[?Operations\GetMetatagsResponse](../../Models/Operations/GetMetatagsResponse.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/qrcodes/README.md b/docs/sdks/qrcodes/README.md index 77fb229..3d59ad0 100644 --- a/docs/sdks/qrcodes/README.md +++ b/docs/sdks/qrcodes/README.md @@ -1,5 +1,6 @@ # QRCodes +## Overview ### Available Operations @@ -44,18 +45,16 @@ try { } ``` - - ### Parameters | Parameter | Type | Required | Description | | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | | `$request` | [Operations\GetQRCodeRequest](../../Models/Operations/GetQRCodeRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[?Operations\GetQRCodeResponse](../../Models/Operations/GetQRCodeResponse.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/tags/README.md b/docs/sdks/tags/README.md index 872bdd6..8c6c6d2 100644 --- a/docs/sdks/tags/README.md +++ b/docs/sdks/tags/README.md @@ -1,5 +1,6 @@ # Tags +## Overview ### Available Operations @@ -37,12 +38,10 @@ try { } ``` - - - ### Response **[?Operations\GetTagsResponse](../../Models/Operations/GetTagsResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -58,6 +57,7 @@ try { | Errors\InternalServerError | 500 | application/json | | Dub\Models\Errors.SDKException | 4xx-5xx | */* | + ## create Create a new tag for the authenticated workspace. @@ -94,18 +94,16 @@ try { } ``` - - ### Parameters | Parameter | Type | Required | Description | | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | | `$request` | [Operations\CreateTagRequestBody](../../Models/Operations/CreateTagRequestBody.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[?Operations\CreateTagResponse](../../Models/Operations/CreateTagResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -121,6 +119,7 @@ try { | Errors\InternalServerError | 500 | application/json | | Dub\Models\Errors.SDKException | 4xx-5xx | */* | + ## update Update a tag in the workspace. @@ -157,8 +156,6 @@ try { } ``` - - ### Parameters | Parameter | Type | Required | Description | @@ -166,10 +163,10 @@ try { | `id` | *string* | :heavy_check_mark: | The ID of the tag to update. | | `requestBody` | [Operations\UpdateTagRequestBody](../../Models/Operations/UpdateTagRequestBody.md) | :heavy_minus_sign: | N/A | - ### Response **[?Operations\UpdateTagResponse](../../Models/Operations/UpdateTagResponse.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/track/README.md b/docs/sdks/track/README.md index 2bde610..fa622c3 100644 --- a/docs/sdks/track/README.md +++ b/docs/sdks/track/README.md @@ -1,5 +1,6 @@ # Track +## Overview ### Available Operations @@ -49,18 +50,16 @@ try { } ``` - - ### Parameters | Parameter | Type | Required | Description | | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | | `$request` | [Operations\TrackLeadRequestBody](../../Models/Operations/TrackLeadRequestBody.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[?Operations\TrackLeadResponse](../../Models/Operations/TrackLeadResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -76,6 +75,7 @@ try { | Errors\InternalServerError | 500 | application/json | | Dub\Models\Errors.SDKException | 4xx-5xx | */* | + ## sale Track a sale for a short link. @@ -118,18 +118,16 @@ try { } ``` - - ### Parameters | Parameter | Type | Required | Description | | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | | `$request` | [Operations\TrackSaleRequestBody](../../Models/Operations/TrackSaleRequestBody.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[?Operations\TrackSaleResponse](../../Models/Operations/TrackSaleResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -145,6 +143,7 @@ try { | Errors\InternalServerError | 500 | application/json | | Dub\Models\Errors.SDKException | 4xx-5xx | */* | + ## customer Track a customer for an authenticated workspace. @@ -182,18 +181,16 @@ try { } ``` - - ### Parameters | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | | `$request` | [Operations\TrackCustomerRequestBody](../../Models/Operations/TrackCustomerRequestBody.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[?Operations\TrackCustomerResponse](../../Models/Operations/TrackCustomerResponse.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/workspaces/README.md b/docs/sdks/workspaces/README.md index 0b3b021..79308b9 100644 --- a/docs/sdks/workspaces/README.md +++ b/docs/sdks/workspaces/README.md @@ -1,5 +1,6 @@ # Workspaces +## Overview ### Available Operations @@ -37,18 +38,16 @@ try { } ``` - - ### Parameters | Parameter | Type | Required | Description | | -------------------------------- | -------------------------------- | -------------------------------- | -------------------------------- | | `idOrSlug` | *string* | :heavy_check_mark: | The ID or slug of the workspace. | - ### Response **[?Operations\GetWorkspaceResponse](../../Models/Operations/GetWorkspaceResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -64,6 +63,7 @@ try { | Errors\InternalServerError | 500 | application/json | | Dub\Models\Errors.SDKException | 4xx-5xx | */* | + ## update Update a workspace by ID or slug. @@ -99,8 +99,6 @@ try { } ``` - - ### Parameters | Parameter | Type | Required | Description | @@ -108,10 +106,10 @@ try { | `idOrSlug` | *string* | :heavy_check_mark: | The ID or slug of the workspace to update. | | `requestBody` | [Operations\UpdateWorkspaceRequestBody](../../Models/Operations/UpdateWorkspaceRequestBody.md) | :heavy_minus_sign: | N/A | - ### Response **[?Operations\UpdateWorkspaceResponse](../../Models/Operations/UpdateWorkspaceResponse.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/src/Analytics.php b/src/Analytics.php index ca52adb..fab8025 100644 --- a/src/Analytics.php +++ b/src/Analytics.php @@ -38,7 +38,7 @@ public function retrieve( $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/analytics'); $options = ['http_errors' => false]; - $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\RetrieveAnalyticsRequest::class, $request, null)); + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\RetrieveAnalyticsRequest::class, $request)); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); diff --git a/src/Domains.php b/src/Domains.php index 4e39568..7d46390 100644 --- a/src/Domains.php +++ b/src/Domains.php @@ -50,7 +50,7 @@ public function list( $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/domains'); $options = ['http_errors' => false]; - $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\ListDomainsRequest::class, $request, null)); + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\ListDomainsRequest::class, $request)); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); diff --git a/src/Events.php b/src/Events.php index 276186c..a4115b1 100644 --- a/src/Events.php +++ b/src/Events.php @@ -38,7 +38,7 @@ public function list( $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/events'); $options = ['http_errors' => false]; - $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\ListEventsRequest::class, $request, null)); + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\ListEventsRequest::class, $request)); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); diff --git a/src/Links.php b/src/Links.php index b6a2aee..fea30c3 100644 --- a/src/Links.php +++ b/src/Links.php @@ -38,7 +38,7 @@ public function list( $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/links'); $options = ['http_errors' => false]; - $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\GetLinksRequest::class, $request, null)); + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\GetLinksRequest::class, $request)); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); @@ -277,7 +277,7 @@ public function count( $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/links/count'); $options = ['http_errors' => false]; - $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\GetLinksCountRequest::class, $request, null)); + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\GetLinksCountRequest::class, $request)); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); @@ -407,7 +407,7 @@ public function get( $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/links/info'); $options = ['http_errors' => false]; - $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\GetLinkInfoRequest::class, $request, null)); + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\GetLinkInfoRequest::class, $request)); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); diff --git a/src/Metatags.php b/src/Metatags.php index f72af96..9f6ad56 100644 --- a/src/Metatags.php +++ b/src/Metatags.php @@ -41,7 +41,7 @@ public function get( $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/metatags'); $options = ['http_errors' => false]; - $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\GetMetatagsRequest::class, $request, null)); + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\GetMetatagsRequest::class, $request)); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); diff --git a/src/Models/Components/LinkSchema.php b/src/Models/Components/LinkSchema.php index 2d9d29b..2648e44 100644 --- a/src/Models/Components/LinkSchema.php +++ b/src/Models/Components/LinkSchema.php @@ -310,6 +310,14 @@ class LinkSchema #[\JMS\Serializer\Annotation\SerializedName('sales')] public float $sales; + /** + * [BETA]: The total dollar amount of sales the short links has generated (in cents). + * + * @var float $saleAmount + */ + #[\JMS\Serializer\Annotation\SerializedName('saleAmount')] + public float $saleAmount; + /** * The date and time when the short link was created. * @@ -373,11 +381,12 @@ class LinkSchema * @param ?string $lastClicked * @param ?float $leads * @param ?float $sales + * @param ?float $saleAmount * @param ?string $createdAt * @param ?string $updatedAt * @param ?string $projectId */ - public function __construct(?string $id = null, ?string $domain = null, ?string $key = null, ?string $externalId = null, ?string $url = null, ?bool $trackConversion = null, ?bool $archived = null, ?string $expiresAt = null, ?string $expiredUrl = null, ?string $password = null, ?bool $proxy = null, ?string $title = null, ?string $description = null, ?string $image = null, ?string $video = null, ?bool $rewrite = null, ?bool $doIndex = null, ?string $ios = null, ?string $android = null, ?Geo $geo = null, ?bool $publicStats = null, ?string $tagId = null, ?array $tags = null, ?string $comments = null, ?string $shortLink = null, ?string $qrCode = null, ?string $utmSource = null, ?string $utmMedium = null, ?string $utmCampaign = null, ?string $utmTerm = null, ?string $utmContent = null, ?string $userId = null, ?string $workspaceId = null, ?float $clicks = null, ?string $lastClicked = null, ?float $leads = null, ?float $sales = null, ?string $createdAt = null, ?string $updatedAt = null, ?string $projectId = null) + public function __construct(?string $id = null, ?string $domain = null, ?string $key = null, ?string $externalId = null, ?string $url = null, ?bool $trackConversion = null, ?bool $archived = null, ?string $expiresAt = null, ?string $expiredUrl = null, ?string $password = null, ?bool $proxy = null, ?string $title = null, ?string $description = null, ?string $image = null, ?string $video = null, ?bool $rewrite = null, ?bool $doIndex = null, ?string $ios = null, ?string $android = null, ?Geo $geo = null, ?bool $publicStats = null, ?string $tagId = null, ?array $tags = null, ?string $comments = null, ?string $shortLink = null, ?string $qrCode = null, ?string $utmSource = null, ?string $utmMedium = null, ?string $utmCampaign = null, ?string $utmTerm = null, ?string $utmContent = null, ?string $userId = null, ?string $workspaceId = null, ?float $clicks = null, ?string $lastClicked = null, ?float $leads = null, ?float $sales = null, ?float $saleAmount = null, ?string $createdAt = null, ?string $updatedAt = null, ?string $projectId = null) { $this->id = $id; $this->domain = $domain; @@ -416,6 +425,7 @@ public function __construct(?string $id = null, ?string $domain = null, ?string $this->lastClicked = $lastClicked; $this->leads = $leads; $this->sales = $sales; + $this->saleAmount = $saleAmount; $this->createdAt = $createdAt; $this->updatedAt = $updatedAt; $this->projectId = $projectId; diff --git a/src/Models/Components/WorkspaceSchema.php b/src/Models/Components/WorkspaceSchema.php index 56b880b..4fc3158 100644 --- a/src/Models/Components/WorkspaceSchema.php +++ b/src/Models/Components/WorkspaceSchema.php @@ -75,6 +75,22 @@ class WorkspaceSchema #[\JMS\Serializer\Annotation\SerializedName('linksLimit')] public float $linksLimit; + /** + * The dollar amount of tracked revenue in the current billing cycle (in cents). + * + * @var float $salesUsage + */ + #[\JMS\Serializer\Annotation\SerializedName('salesUsage')] + public float $salesUsage; + + /** + * The limit of tracked revenue in the current billing cycle (in cents). + * + * @var float $salesLimit + */ + #[\JMS\Serializer\Annotation\SerializedName('salesLimit')] + public float $salesLimit; + /** * The domains limit of the workspace. * @@ -166,6 +182,14 @@ class WorkspaceSchema #[\JMS\Serializer\Annotation\SerializedName('inviteCode')] public string $inviteCode; + /** + * Whether the workspace has conversion tracking enabled (d.to/conversions). + * + * @var bool $conversionEnabled + */ + #[\JMS\Serializer\Annotation\SerializedName('conversionEnabled')] + public bool $conversionEnabled; + /** * The feature flags of the workspace, indicating which features are enabled. * @@ -185,6 +209,8 @@ class WorkspaceSchema * @param ?float $usageLimit * @param ?float $linksUsage * @param ?float $linksLimit + * @param ?float $salesUsage + * @param ?float $salesLimit * @param ?float $domainsLimit * @param ?float $tagsLimit * @param ?float $usersLimit @@ -196,9 +222,10 @@ class WorkspaceSchema * @param ?array $users * @param ?array $domains * @param ?string $inviteCode + * @param ?bool $conversionEnabled * @param ?array $flags */ - public function __construct(?string $id = null, ?string $name = null, ?string $slug = null, ?string $logo = null, ?float $usage = null, ?float $usageLimit = null, ?float $linksUsage = null, ?float $linksLimit = null, ?float $domainsLimit = null, ?float $tagsLimit = null, ?float $usersLimit = null, ?Plan $plan = null, ?string $stripeId = null, ?float $billingCycleStart = null, ?string $stripeConnectId = null, ?string $createdAt = null, ?array $users = null, ?array $domains = null, ?string $inviteCode = null, ?array $flags = null) + public function __construct(?string $id = null, ?string $name = null, ?string $slug = null, ?string $logo = null, ?float $usage = null, ?float $usageLimit = null, ?float $linksUsage = null, ?float $linksLimit = null, ?float $salesUsage = null, ?float $salesLimit = null, ?float $domainsLimit = null, ?float $tagsLimit = null, ?float $usersLimit = null, ?Plan $plan = null, ?string $stripeId = null, ?float $billingCycleStart = null, ?string $stripeConnectId = null, ?string $createdAt = null, ?array $users = null, ?array $domains = null, ?string $inviteCode = null, ?bool $conversionEnabled = null, ?array $flags = null) { $this->id = $id; $this->name = $name; @@ -208,6 +235,8 @@ public function __construct(?string $id = null, ?string $name = null, ?string $s $this->usageLimit = $usageLimit; $this->linksUsage = $linksUsage; $this->linksLimit = $linksLimit; + $this->salesUsage = $salesUsage; + $this->salesLimit = $salesLimit; $this->domainsLimit = $domainsLimit; $this->tagsLimit = $tagsLimit; $this->usersLimit = $usersLimit; @@ -219,6 +248,7 @@ public function __construct(?string $id = null, ?string $name = null, ?string $s $this->users = $users; $this->domains = $domains; $this->inviteCode = $inviteCode; + $this->conversionEnabled = $conversionEnabled; $this->flags = $flags; } } \ No newline at end of file diff --git a/src/QRCodes.php b/src/QRCodes.php index e793fa8..956f30a 100644 --- a/src/QRCodes.php +++ b/src/QRCodes.php @@ -38,7 +38,7 @@ public function get( $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/qr'); $options = ['http_errors' => false]; - $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\GetQRCodeRequest::class, $request, null)); + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\GetQRCodeRequest::class, $request)); $options['headers']['Accept'] = 'image/png'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); diff --git a/src/SDKConfiguration.php b/src/SDKConfiguration.php index 03ae1ac..01e9cc9 100644 --- a/src/SDKConfiguration.php +++ b/src/SDKConfiguration.php @@ -27,11 +27,11 @@ class SDKConfiguration public string $openapiDocVersion = '0.0.1'; - public string $sdkVersion = '0.3.0'; + public string $sdkVersion = '0.3.1'; - public string $genVersion = '2.402.5'; + public string $genVersion = '2.404.2'; - public string $userAgent = 'speakeasy-sdk/php 0.3.0 2.402.5 0.0.1 dub/dub-php'; + public string $userAgent = 'speakeasy-sdk/php 0.3.1 2.404.2 0.0.1 dub/dub-php'; public function getServerUrl(): string { diff --git a/src/Utils/Headers.php b/src/Utils/Headers.php index def5763..34fc767 100644 --- a/src/Utils/Headers.php +++ b/src/Utils/Headers.php @@ -14,10 +14,10 @@ class Headers { /** * @param mixed $headers - * @param array>> $globals + * @param array>>|null $globals * @return array */ - public function parseHeaders(mixed $headers, array $globals): array + public function parseHeaders(mixed $headers, ?array $globals = null): array { $out = []; @@ -26,7 +26,10 @@ public function parseHeaders(mixed $headers, array $globals): array } foreach ($headers as $field => $value) { - $value = populateGlobal($value, 'header', $field, $globals); + if ($globals !== null) { + $value = populateGlobal($value, 'header', $field, $globals); + } + if ($value === null) { continue; } diff --git a/src/Utils/PathParameters.php b/src/Utils/PathParameters.php index 0c48fdd..0262773 100644 --- a/src/Utils/PathParameters.php +++ b/src/Utils/PathParameters.php @@ -26,7 +26,10 @@ public function parsePathParams(string $type, mixed $pathParams, array $globals) foreach ($fields as $field) { $value = $pathParams !== null ? $pathParams->{$field} : null; - $value = populateGlobal($value, 'pathParam', $field, $globals); + + if ($globals !== null) { + $value = populateGlobal($value, 'pathParam', $field, $globals); + } if ($value === null) { continue; diff --git a/src/Utils/QueryParameters.php b/src/Utils/QueryParameters.php index 6d4c53c..aa8361a 100644 --- a/src/Utils/QueryParameters.php +++ b/src/Utils/QueryParameters.php @@ -15,10 +15,10 @@ class QueryParameters /** * @param string $type * @param mixed $queryParams - * @param array>> $globals + * @param array>>|null $globals * @return ?string */ - public function parseQueryParams(string $type, mixed $queryParams, array $globals): ?string + public function parseQueryParams(string $type, mixed $queryParams, ?array $globals = null): ?string { $parts = []; @@ -26,7 +26,10 @@ public function parseQueryParams(string $type, mixed $queryParams, array $global foreach ($fields as $field) { $value = $queryParams !== null ? $queryParams->{$field} : null; - $value = populateGlobal($value, 'queryParam', $field, $globals); + + if ($globals !== null) { + $value = populateGlobal($value, 'queryParam', $field, $globals); + } if ($value === null) { continue; diff --git a/src/Utils/Utils.php b/src/Utils/Utils.php index 74abfda..59caaf2 100644 --- a/src/Utils/Utils.php +++ b/src/Utils/Utils.php @@ -235,11 +235,8 @@ function valToString(mixed $val, string $dateTimeFormat = ''): string */ function populateGlobal(mixed $value, string $type, string $field, array $globals): mixed { - if ($globals !== null && $value === null && isset($globals['parameters'][$type]) && isset($globals['parameters'][$type][$field])) { - $globalVal = $globals['parameters'][$type][$field]; - if ($globalVal !== null) { - $value = $globalVal; - } + if ($value === null && ! empty($globals['parameters'][$type][$field])) { + $value = $globals['parameters'][$type][$field]; } return $value;