From 927aad29b4360c200114f24f47dbc5d89daf523d Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 13 Nov 2024 00:21:50 +0000 Subject: [PATCH] ci: regenerated with Speakeasy CLI v1.438.1 --- .speakeasy/workflow.lock | 4 ++-- openapi-with-code-samples.yaml | 44 +++++++++++++++++++++++++--------- 2 files changed, 35 insertions(+), 13 deletions(-) diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 60ed678..b209513 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,8 +2,8 @@ speakeasyVersion: 1.438.1 sources: merge-code-samples-into-spec: sourceNamespace: merge-code-samples-into-spec - sourceRevisionDigest: sha256:fe733571850dcae42de7091b5bd2785c403ad3f99622f32c7e405944eb1944b5 - sourceBlobDigest: sha256:bce2f535d15ee080704e6d69c357c4575fdeada4a1eb374fd59767dd399085c3 + sourceRevisionDigest: sha256:a3d1fc5cc3086b7f1e162b9e96538ffb27441d9c31b2f023f9bc18758d547771 + sourceBlobDigest: sha256:4137fa21213f85e5dd08e4149283453b490a50011174afdf1df5950d11fbbc9d tags: - latest - main diff --git a/openapi-with-code-samples.yaml b/openapi-with-code-samples.yaml index ae3d124..2a0adae 100644 --- a/openapi-with-code-samples.yaml +++ b/openapi-with-code-samples.yaml @@ -211,10 +211,10 @@ paths: description: "The domain to filter the links by. E.g. `ac.me`. If not provided, all links for the workspace will be returned." - in: "query" name: "tagId" - description: "The tag ID to filter the links by. This field is deprecated – use `tagIds` instead." + description: "Deprecated. Use `tagIds` instead. The tag ID to filter the links by." schema: type: "string" - description: "The tag ID to filter the links by. This field is deprecated – use `tagIds` instead." + description: "Deprecated. Use `tagIds` instead. The tag ID to filter the links by." deprecated: true - in: "query" name: "tagIds" @@ -332,10 +332,10 @@ paths: description: "The domain to filter the links by. E.g. `ac.me`. If not provided, all links for the workspace will be returned." - in: "query" name: "tagId" - description: "The tag ID to filter the links by. This field is deprecated – use `tagIds` instead." + description: "Deprecated. Use `tagIds` instead. The tag ID to filter the links by." schema: type: "string" - description: "The tag ID to filter the links by. This field is deprecated – use `tagIds` instead." + description: "Deprecated. Use `tagIds` instead. The tag ID to filter the links by." deprecated: true - in: "query" name: "tagIds" @@ -1526,10 +1526,21 @@ paths: description: "The URL to retrieve analytics for." - in: "query" name: "tagId" - description: "The tag ID to retrieve analytics for." + description: "Deprecated. Use `tagIds` instead. The tag ID to retrieve analytics for." schema: type: "string" - description: "The tag ID to retrieve analytics for." + description: "Deprecated. Use `tagIds` instead. The tag ID to retrieve analytics for." + deprecated: true + - in: "query" + name: "tagIds" + description: "The tag IDs to retrieve analytics for." + schema: + anyOf: + - type: "string" + - type: "array" + items: + type: "string" + description: "The tag IDs to retrieve analytics for." - in: "query" name: "qr" description: "Deprecated. Use the `trigger` field instead. Filter for QR code scans. If true, filter for QR codes only. If false, filter for links only. If undefined, return both." @@ -1745,10 +1756,21 @@ paths: description: "The URL to retrieve analytics for." - in: "query" name: "tagId" - description: "The tag ID to retrieve analytics for." + description: "Deprecated. Use `tagIds` instead. The tag ID to retrieve analytics for." schema: type: "string" - description: "The tag ID to retrieve analytics for." + description: "Deprecated. Use `tagIds` instead. The tag ID to retrieve analytics for." + deprecated: true + - in: "query" + name: "tagIds" + description: "The tag IDs to retrieve analytics for." + schema: + anyOf: + - type: "string" + - type: "array" + items: + type: "string" + description: "The tag IDs to retrieve analytics for." - in: "query" name: "qr" description: "Deprecated. Use the `trigger` field instead. Filter for QR code scans. If true, filter for QR codes only. If false, filter for links only. If undefined, return both." @@ -2318,7 +2340,7 @@ paths: operationId: "trackLead" x-speakeasy-name-override: "lead" summary: "Track a lead" - x-codeSamples: [{"lang": "typescript", "label": "trackLead", "source": "import { Dub } from \"dub\";\n\nconst dub = new Dub({\n token: \"DUB_API_KEY\",\n});\n\nasync function run() {\n const result = await dub.track.lead();\n\n // Handle the result\n console.log(result);\n}\n\nrun();"}, {"lang": "go", "label": "trackLead", "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"context\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n\n ctx := context.Background()\n res, err := s.Track.Lead(ctx, &operations.TrackLeadRequestBody{\n ClickID: \"\",\n EventName: \"Sign up\",\n CustomerID: \"\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}"}, {"lang": "ruby", "label": "trackLead", "source": "require 'dub'\n\n\ns = ::OpenApiSDK::Dub.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n token: \"DUB_API_KEY\",\n )\n)\n\n\nreq = ::OpenApiSDK::Operations::TrackLeadRequestBody.new(\n click_id: \"\",\n event_name: \"Sign up\",\n customer_id: \"\",\n)\n \nres = s.track.lead(req)\n\nif ! res.object.nil?\n # handle response\nend"}, {"lang": "php", "label": "trackLead", "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Operations;\n\n$security = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\n$request = new Operations\\TrackLeadRequestBody(\n clickId: '',\n eventName: 'Sign up',\n customerId: '',\n);\n\n$response = $sdk->track->lead(\n request: $request\n);\n\nif ($response->object !== null) {\n // handle response\n}"}, {lang: python, label: trackLead, source: "from dub import Dub\n\ns = Dub(\n token=\"DUB_API_KEY\",\n)\n\nres = s.track.lead(request={\n \"click_id\": \"\",\n \"event_name\": \"Sign up\",\n \"customer_id\": \"\",\n})\n\nif res is not None:\n # handle response\n pass"}, {"lang": "java", "source": "OkHttpClient client = new OkHttpClient();\n\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"clickId\\\":\\\"string\\\",\\\"eventName\\\":\\\"Sign up\\\",\\\"customerId\\\":\\\"string\\\",\\\"customerName\\\":\\\"string\\\",\\\"customerEmail\\\":\\\"user@example.com\\\",\\\"customerAvatar\\\":\\\"string\\\"}\");\nRequest request = new Request.Builder()\n .url(\"https://api.dub.co/track/lead\")\n .post(body)\n .addHeader(\"accept\", \"application/json\")\n .addHeader(\"content-type\", \"application/json\")\n .addHeader(\"authorization\", \"Bearer MY_TOKEN\")\n .build();\n\nResponse response = client.newCall(request).execute();"}] + x-codeSamples: [{"lang": "typescript", "label": "trackLead", "source": "import { Dub } from \"dub\";\n\nconst dub = new Dub({\n token: \"DUB_API_KEY\",\n});\n\nasync function run() {\n const result = await dub.track.lead();\n\n // Handle the result\n console.log(result);\n}\n\nrun();"}, {"lang": "go", "label": "trackLead", "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"context\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n\n ctx := context.Background()\n res, err := s.Track.Lead(ctx, &operations.TrackLeadRequestBody{\n ClickID: \"\",\n EventName: \"Sign up\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}"}, {"lang": "ruby", "label": "trackLead", "source": "require 'dub'\n\n\ns = ::OpenApiSDK::Dub.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n token: \"DUB_API_KEY\",\n )\n)\n\n\nreq = ::OpenApiSDK::Operations::TrackLeadRequestBody.new(\n click_id: \"\",\n event_name: \"Sign up\",\n customer_id: \"\",\n)\n \nres = s.track.lead(req)\n\nif ! res.object.nil?\n # handle response\nend"}, {"lang": "php", "label": "trackLead", "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Operations;\n\n$security = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\n$request = new Operations\\TrackLeadRequestBody(\n clickId: '',\n eventName: 'Sign up',\n);\n\n$response = $sdk->track->lead(\n request: $request\n);\n\nif ($response->object !== null) {\n // handle response\n}"}, {lang: python, label: trackLead, source: "from dub import Dub\n\ns = Dub(\n token=\"DUB_API_KEY\",\n)\n\nres = s.track.lead(request={\n \"click_id\": \"\",\n \"event_name\": \"Sign up\",\n \"customer_id\": \"\",\n})\n\nif res is not None:\n # handle response\n pass"}, {"lang": "java", "source": "OkHttpClient client = new OkHttpClient();\n\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"clickId\\\":\\\"string\\\",\\\"eventName\\\":\\\"Sign up\\\",\\\"customerId\\\":\\\"string\\\",\\\"customerName\\\":\\\"string\\\",\\\"customerEmail\\\":\\\"user@example.com\\\",\\\"customerAvatar\\\":\\\"string\\\"}\");\nRequest request = new Request.Builder()\n .url(\"https://api.dub.co/track/lead\")\n .post(body)\n .addHeader(\"accept\", \"application/json\")\n .addHeader(\"content-type\", \"application/json\")\n .addHeader(\"authorization\", \"Bearer MY_TOKEN\")\n .build();\n\nResponse response = client.newCall(request).execute();"}] description: "Track a lead for a short link." tags: - "Track" @@ -2425,7 +2447,7 @@ paths: operationId: "trackSale" x-speakeasy-name-override: "sale" summary: "Track a sale" - x-codeSamples: [{"lang": "typescript", "label": "trackSale", "source": "import { Dub } from \"dub\";\n\nconst dub = new Dub({\n token: \"DUB_API_KEY\",\n});\n\nasync function run() {\n const result = await dub.track.sale();\n\n // Handle the result\n console.log(result);\n}\n\nrun();"}, {"lang": "go", "label": "trackSale", "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"context\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n\n ctx := context.Background()\n res, err := s.Track.Sale(ctx, &operations.TrackSaleRequestBody{\n CustomerID: \"\",\n Amount: 996500,\n PaymentProcessor: operations.PaymentProcessorPaddle,\n EventName: dubgo.String(\"Purchase\"),\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}"}, {"lang": "ruby", "label": "trackSale", "source": "require 'dub'\n\n\ns = ::OpenApiSDK::Dub.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n token: \"DUB_API_KEY\",\n )\n)\n\n\nreq = ::OpenApiSDK::Operations::TrackSaleRequestBody.new(\n customer_id: \"\",\n amount: 996500,\n payment_processor: ::OpenApiSDK::Operations::PaymentProcessor::PADDLE,\n event_name: \"Purchase\",\n)\n \nres = s.track.sale(req)\n\nif ! res.object.nil?\n # handle response\nend"}, {"lang": "php", "label": "trackSale", "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Operations;\n\n$security = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\n$request = new Operations\\TrackSaleRequestBody(\n customerId: '',\n amount: 996500,\n paymentProcessor: Operations\\PaymentProcessor::Paddle,\n eventName: 'Purchase',\n);\n\n$response = $sdk->track->sale(\n request: $request\n);\n\nif ($response->object !== null) {\n // handle response\n}"}, {lang: python, label: trackSale, source: "from dub import Dub\nfrom dub.models import operations\n\ns = Dub(\n token=\"DUB_API_KEY\",\n)\n\nres = s.track.sale(request={\n \"customer_id\": \"\",\n \"amount\": 996500,\n \"payment_processor\": operations.PaymentProcessor.PADDLE,\n \"event_name\": \"Purchase\",\n})\n\nif res is not None:\n # handle response\n pass"}, {"lang": "java", "source": "OkHttpClient client = new OkHttpClient();\n\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"customerId\\\":\\\"string\\\",\\\"amount\\\":0,\\\"paymentProcessor\\\":\\\"stripe\\\",\\\"eventName\\\":\\\"Purchase\\\",\\\"invoiceId\\\":\\\"string\\\",\\\"currency\\\":\\\"usd\\\"}\");\nRequest request = new Request.Builder()\n .url(\"https://api.dub.co/track/sale\")\n .post(body)\n .addHeader(\"accept\", \"application/json\")\n .addHeader(\"content-type\", \"application/json\")\n .addHeader(\"authorization\", \"Bearer MY_TOKEN\")\n .build();\n\nResponse response = client.newCall(request).execute();"}] + x-codeSamples: [{"lang": "typescript", "label": "trackSale", "source": "import { Dub } from \"dub\";\n\nconst dub = new Dub({\n token: \"DUB_API_KEY\",\n});\n\nasync function run() {\n const result = await dub.track.sale();\n\n // Handle the result\n console.log(result);\n}\n\nrun();"}, {"lang": "go", "label": "trackSale", "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"context\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n\n ctx := context.Background()\n res, err := s.Track.Sale(ctx, &operations.TrackSaleRequestBody{\n Amount: 996500,\n PaymentProcessor: operations.PaymentProcessorPaddle,\n EventName: dubgo.String(\"Purchase\"),\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}"}, {"lang": "ruby", "label": "trackSale", "source": "require 'dub'\n\n\ns = ::OpenApiSDK::Dub.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n token: \"DUB_API_KEY\",\n )\n)\n\n\nreq = ::OpenApiSDK::Operations::TrackSaleRequestBody.new(\n customer_id: \"\",\n amount: 996500,\n payment_processor: ::OpenApiSDK::Operations::PaymentProcessor::PADDLE,\n event_name: \"Purchase\",\n)\n \nres = s.track.sale(req)\n\nif ! res.object.nil?\n # handle response\nend"}, {"lang": "php", "label": "trackSale", "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Operations;\n\n$security = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\n$request = new Operations\\TrackSaleRequestBody(\n amount: 996500,\n paymentProcessor: Operations\\PaymentProcessor::Paddle,\n eventName: 'Purchase',\n);\n\n$response = $sdk->track->sale(\n request: $request\n);\n\nif ($response->object !== null) {\n // handle response\n}"}, {lang: python, label: trackSale, source: "from dub import Dub\nfrom dub.models import operations\n\ns = Dub(\n token=\"DUB_API_KEY\",\n)\n\nres = s.track.sale(request={\n \"customer_id\": \"\",\n \"amount\": 996500,\n \"payment_processor\": operations.PaymentProcessor.PADDLE,\n \"event_name\": \"Purchase\",\n})\n\nif res is not None:\n # handle response\n pass"}, {"lang": "java", "source": "OkHttpClient client = new OkHttpClient();\n\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"customerId\\\":\\\"string\\\",\\\"amount\\\":0,\\\"paymentProcessor\\\":\\\"stripe\\\",\\\"eventName\\\":\\\"Purchase\\\",\\\"invoiceId\\\":\\\"string\\\",\\\"currency\\\":\\\"usd\\\"}\");\nRequest request = new Request.Builder()\n .url(\"https://api.dub.co/track/sale\")\n .post(body)\n .addHeader(\"accept\", \"application/json\")\n .addHeader(\"content-type\", \"application/json\")\n .addHeader(\"authorization\", \"Bearer MY_TOKEN\")\n .build();\n\nResponse response = client.newCall(request).execute();"}] description: "Track a sale for a short link." tags: - "Track" @@ -2547,7 +2569,7 @@ paths: operationId: "trackCustomer" x-speakeasy-name-override: "customer" summary: "Track a customer" - x-codeSamples: [{"lang": "typescript", "label": "trackCustomer", "source": "import { Dub } from \"dub\";\n\nconst dub = new Dub({\n token: \"DUB_API_KEY\",\n});\n\nasync function run() {\n const result = await dub.track.customer();\n\n // Handle the result\n console.log(result);\n}\n\nrun();"}, {"lang": "go", "label": "trackCustomer", "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n\n ctx := context.Background()\n res, err := s.Track.Customer(ctx, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}"}, {"lang": "ruby", "label": "trackCustomer", "source": "require 'dub'\n\n\ns = ::OpenApiSDK::Dub.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n token: \"DUB_API_KEY\",\n )\n)\n\n\nreq = ::OpenApiSDK::Operations::TrackCustomerRequestBody.new(\n customer_id: \"\",\n)\n \nres = s.track.customer(req)\n\nif ! res.object.nil?\n # handle response\nend"}, {"lang": "php", "label": "trackCustomer", "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Operations;\n\n$security = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\n$request = new Operations\\TrackCustomerRequestBody(\n customerId: '',\n);\n\n$response = $sdk->track->customer(\n request: $request\n);\n\nif ($response->object !== null) {\n // handle response\n}"}, {lang: python, label: trackCustomer, source: "from dub import Dub\n\ns = Dub(\n token=\"DUB_API_KEY\",\n)\n\nres = s.track.customer()\n\nif res is not None:\n # handle response\n pass"}, {"lang": "java", "source": "OkHttpClient client = new OkHttpClient();\n\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"customerId\\\":\\\"string\\\",\\\"customerName\\\":\\\"string\\\",\\\"customerEmail\\\":\\\"user@example.com\\\",\\\"customerAvatar\\\":\\\"string\\\"}\");\nRequest request = new Request.Builder()\n .url(\"https://api.dub.co/track/customer\")\n .post(body)\n .addHeader(\"accept\", \"application/json\")\n .addHeader(\"content-type\", \"application/json\")\n .addHeader(\"authorization\", \"Bearer MY_TOKEN\")\n .build();\n\nResponse response = client.newCall(request).execute();"}] + x-codeSamples: [{"lang": "typescript", "label": "trackCustomer", "source": "import { Dub } from \"dub\";\n\nconst dub = new Dub({\n token: \"DUB_API_KEY\",\n});\n\nasync function run() {\n const result = await dub.track.customer();\n\n // Handle the result\n console.log(result);\n}\n\nrun();"}, {"lang": "ruby", "label": "trackCustomer", "source": "require 'dub'\n\n\ns = ::OpenApiSDK::Dub.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n token: \"DUB_API_KEY\",\n )\n)\n\n\nreq = ::OpenApiSDK::Operations::TrackCustomerRequestBody.new(\n customer_id: \"\",\n)\n \nres = s.track.customer(req)\n\nif ! res.object.nil?\n # handle response\nend"}, {lang: python, label: trackCustomer, source: "from dub import Dub\n\ns = Dub(\n token=\"DUB_API_KEY\",\n)\n\nres = s.track.customer()\n\nif res is not None:\n # handle response\n pass"}, {"lang": "java", "source": "OkHttpClient client = new OkHttpClient();\n\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"customerId\\\":\\\"string\\\",\\\"customerName\\\":\\\"string\\\",\\\"customerEmail\\\":\\\"user@example.com\\\",\\\"customerAvatar\\\":\\\"string\\\"}\");\nRequest request = new Request.Builder()\n .url(\"https://api.dub.co/track/customer\")\n .post(body)\n .addHeader(\"accept\", \"application/json\")\n .addHeader(\"content-type\", \"application/json\")\n .addHeader(\"authorization\", \"Bearer MY_TOKEN\")\n .build();\n\nResponse response = client.newCall(request).execute();"}] description: "Track a customer for an authenticated workspace." tags: - "Track"