diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 53a179e..d624454 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,12 +1,12 @@ -speakeasyVersion: 1.465.0 +speakeasyVersion: 1.468.2 sources: merge-code-samples-into-spec: sourceNamespace: merge-code-samples-into-spec - sourceRevisionDigest: sha256:5d5d09a930b27799458c52f143706985bfc24016f3111e7472720f3de151f01b - sourceBlobDigest: sha256:c9e0232fae05b384ccc49daf6acbacc9f3c0b88924eff171f26ed801c50c13c5 + sourceRevisionDigest: sha256:fb8e5c277a4a312253aaa0c20d3b1ec6e96b08c46896c5cf4c95d23a29b342dc + sourceBlobDigest: sha256:adbffc47589c4ee8f1b32aa3db9a5005979384f704c5e95a82b6614703c095eb tags: - latest - - speakeasy-sdk-regen-1736295715 + - speakeasy-sdk-regen-1736382114 - 0.0.1 targets: {} workflow: diff --git a/openapi-with-code-samples.yaml b/openapi-with-code-samples.yaml index 5907cc0..749af77 100644 --- a/openapi-with-code-samples.yaml +++ b/openapi-with-code-samples.yaml @@ -274,17 +274,41 @@ paths: default: "false" description: "DEPRECATED. Filter for links that have at least one tag assigned to them." deprecated: true + - in: "query" + name: "sortBy" + description: "The field to sort the links by. The default is `createdAt`." + schema: + type: "string" + enum: + - "createdAt" + - "clicks" + - "saleAmount" + - "lastClicked" + default: "createdAt" + description: "The field to sort the links by. The default is `createdAt`." + - in: "query" + name: "sortOrder" + description: "The sort order. The default is `desc`." + schema: + type: "string" + enum: + - "asc" + - "desc" + default: "desc" + description: "The sort order. The default is `desc`." - in: "query" name: "sort" - description: "The field to sort the links by. The default is `createdAt`, and sort order is always descending." + description: "DEPRECATED. Use `sortBy` instead." schema: type: "string" enum: - "createdAt" - "clicks" + - "saleAmount" - "lastClicked" default: "createdAt" - description: "The field to sort the links by. The default is `createdAt`, and sort order is always descending." + description: "DEPRECATED. Use `sortBy` instead." + deprecated: true - in: "query" name: "page" description: "The page number for pagination." @@ -891,7 +915,10 @@ paths: "application/json": schema: type: "array" - items: {"$ref": "#/components/schemas/LinkSchema"} + items: + oneOf: + - {"$ref": "#/components/schemas/LinkSchema"} + - {"$ref": "#/components/schemas/LinkErrorSchema"} "400": {"$ref": "#/components/responses/400"} "401": {"$ref": "#/components/responses/401"} "403": {"$ref": "#/components/responses/403"} @@ -1759,20 +1786,35 @@ paths: type: "number" default: 100 - in: "query" - name: "order" + name: "sortOrder" + description: "The sort order. The default is `desc`." schema: type: "string" enum: - "asc" - "desc" default: "desc" + description: "The sort order. The default is `desc`." - in: "query" name: "sortBy" + description: "The field to sort the events by. The default is `timestamp`." schema: type: "string" enum: - "timestamp" default: "timestamp" + description: "The field to sort the events by. The default is `timestamp`." + - in: "query" + name: "order" + description: "DEPRECATED. Use `sortOrder` instead." + schema: + type: "string" + enum: + - "asc" + - "desc" + default: "desc" + description: "DEPRECATED. Use `sortOrder` instead." + deprecated: true responses: "200": description: "A list of events" @@ -3455,7 +3497,7 @@ components: "trackConversion": type: "boolean" default: false - description: "[BETA] Whether to track conversions for the short link." + description: "Whether to track conversions for the short link." "externalId": type: "string" nullable: true @@ -4342,15 +4384,15 @@ components: "leads": type: "number" default: 0 - description: "[BETA]: The number of leads the short links has generated." + description: "The number of leads the short links has generated." "sales": type: "number" default: 0 - description: "[BETA]: The number of sales the short links has generated." + description: "The number of sales the short links has generated." "saleAmount": type: "number" default: 0 - description: "[BETA]: The total dollar amount of sales the short links has generated (in cents)." + description: "The total dollar amount of sales the short links has generated (in cents)." "createdAt": type: "string" description: "The date and time when the short link was created." @@ -4457,7 +4499,7 @@ components: "stripeConnectId": type: "string" nullable: true - description: "[BETA – Dub Conversions]: The Stripe Connect ID of the workspace." + description: "The Stripe Connect ID of the workspace." "payoutMethodId": type: "string" nullable: true @@ -4689,6 +4731,33 @@ components: - {"$ref": "#/components/schemas/SaleCreatedEvent"} description: "Webhook event schema" x-speakeasy-include: true + "LinkErrorSchema": + type: "object" + properties: + "link": + description: "The link that caused the error." + "error": + type: "string" + description: "The error message." + "code": + type: "string" + enum: + - "bad_request" + - "not_found" + - "internal_server_error" + - "unauthorized" + - "forbidden" + - "rate_limit_exceeded" + - "invite_expired" + - "invite_pending" + - "exceeded_limit" + - "conflict" + - "unprocessable_entity" + description: "The error code." + required: + - "error" + - "code" + title: "LinkError" "linkGeoTargeting": type: "object" nullable: true @@ -7308,15 +7377,15 @@ components: "leads": type: "number" default: 0 - description: "[BETA]: The number of leads the short links has generated." + description: "The number of leads the short links has generated." "sales": type: "number" default: 0 - description: "[BETA]: The number of sales the short links has generated." + description: "The number of sales the short links has generated." "saleAmount": type: "number" default: 0 - description: "[BETA]: The total dollar amount of sales the short links has generated (in cents)." + description: "The total dollar amount of sales the short links has generated (in cents)." "createdAt": type: "string" "updatedAt": @@ -8377,15 +8446,15 @@ components: "leads": type: "number" default: 0 - description: "[BETA]: The number of leads the short links has generated." + description: "The number of leads the short links has generated." "sales": type: "number" default: 0 - description: "[BETA]: The number of sales the short links has generated." + description: "The number of sales the short links has generated." "saleAmount": type: "number" default: 0 - description: "[BETA]: The total dollar amount of sales the short links has generated (in cents)." + description: "The total dollar amount of sales the short links has generated (in cents)." "createdAt": type: "string" "updatedAt": @@ -9520,15 +9589,15 @@ components: "leads": type: "number" default: 0 - description: "[BETA]: The number of leads the short links has generated." + description: "The number of leads the short links has generated." "sales": type: "number" default: 0 - description: "[BETA]: The number of sales the short links has generated." + description: "The number of sales the short links has generated." "saleAmount": type: "number" default: 0 - description: "[BETA]: The total dollar amount of sales the short links has generated (in cents)." + description: "The total dollar amount of sales the short links has generated (in cents)." "createdAt": type: "string" "updatedAt": @@ -10748,15 +10817,15 @@ components: "leads": type: "number" default: 0 - description: "[BETA]: The number of leads the short links has generated." + description: "The number of leads the short links has generated." "sales": type: "number" default: 0 - description: "[BETA]: The number of sales the short links has generated." + description: "The number of sales the short links has generated." "saleAmount": type: "number" default: 0 - description: "[BETA]: The total dollar amount of sales the short links has generated (in cents)." + description: "The total dollar amount of sales the short links has generated (in cents)." "createdAt": type: "string" "updatedAt": @@ -11755,15 +11824,15 @@ components: "leads": type: "number" default: 0 - description: "[BETA]: The number of leads the short links has generated." + description: "The number of leads the short links has generated." "sales": type: "number" default: 0 - description: "[BETA]: The number of sales the short links has generated." + description: "The number of sales the short links has generated." "saleAmount": type: "number" default: 0 - description: "[BETA]: The total dollar amount of sales the short links has generated (in cents)." + description: "The total dollar amount of sales the short links has generated (in cents)." "createdAt": type: "string" "updatedAt": @@ -12880,15 +12949,15 @@ components: "leads": type: "number" default: 0 - description: "[BETA]: The number of leads the short links has generated." + description: "The number of leads the short links has generated." "sales": type: "number" default: 0 - description: "[BETA]: The number of sales the short links has generated." + description: "The number of sales the short links has generated." "saleAmount": type: "number" default: 0 - description: "[BETA]: The total dollar amount of sales the short links has generated (in cents)." + description: "The total dollar amount of sales the short links has generated (in cents)." "createdAt": type: "string" "updatedAt": @@ -14007,15 +14076,15 @@ components: "leads": type: "number" default: 0 - description: "[BETA]: The number of leads the short links has generated." + description: "The number of leads the short links has generated." "sales": type: "number" default: 0 - description: "[BETA]: The number of sales the short links has generated." + description: "The number of sales the short links has generated." "saleAmount": type: "number" default: 0 - description: "[BETA]: The total dollar amount of sales the short links has generated (in cents)." + description: "The total dollar amount of sales the short links has generated (in cents)." "createdAt": type: "string" "updatedAt":