From 1f3797cc330fd1f21ff7033d978a40f287065fd8 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 16 Jan 2025 02:29:40 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.468.8 --- .speakeasy/gen.lock | 63 ++++++++++++++-- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 13 ++-- FUNCTIONS.md | 8 +- REACT_QUERY.md | 32 +++++++- README.md | 73 ++++++++++++++++--- RELEASES.md | 12 ++- USAGE.md | 8 +- .../operations/getcodesamplesrequest.md | 13 ++-- docs/sdks/codesamples/README.md | 21 +++++- docs/sdks/speakeasycodesamples/README.md | 3 +- jsr.json | 2 +- package-lock.json | 4 +- package.json | 2 +- src/funcs/codeSamplesGet.ts | 4 +- src/lib/config.ts | 6 +- src/models/operations/getcodesamples.ts | 8 +- src/react-query/codeSamplesGet.ts | 8 +- src/sdk/codesamples.ts | 4 +- 19 files changed, 229 insertions(+), 57 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 38169f3..7af37a9 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,19 +1,19 @@ lockVersion: 2.0.0 id: 521af75f-d011-41f9-a5ff-9f8033773118 management: - docChecksum: a0841885f1d2df6bf65c33550d1be776 + docChecksum: ef41927baaf8adac37d125d0ae44097c docVersion: 0.4.0 - speakeasyVersion: 1.468.5 - generationVersion: 2.493.11 - releaseVersion: 2.0.13 - configChecksum: bb0274b648f58e16f339f488f406677b + speakeasyVersion: 1.468.8 + generationVersion: 2.493.19 + releaseVersion: 2.0.14 + configChecksum: d413f3ea951f34adef2528339fa6640a repoURL: https://github.com/speakeasy-api/speakeasy-code-samples-ts.git installationURL: https://github.com/speakeasy-api/speakeasy-code-samples-ts published: true features: typescript: additionalDependencies: 0.1.0 - core: 3.18.14 + core: 3.18.15 defaultEnabledRetries: 0.1.0 devContainers: 2.90.0 envVarSecurityUsage: 0.1.2 @@ -110,4 +110,55 @@ examples: application/json: {"snippets": [{"operationId": "", "language": "", "code": ""}, {"operationId": "", "language": "", "code": ""}]} 4XX: application/json: {"message": "", "status_code": 558834} + "": + parameters: + query: + registry_url: "https://spec.speakeasy.com/my-org/my-workspace/my-source" + operation_ids: ["getPetById"] + responses: + 2XX: + application/json: {"snippets": [{"operationId": "", "language": "", "code": ""}, {"operationId": "", "language": "", "code": ""}]} + 4XX: + application/json: {"message": "", "status_code": 558834} + python: + parameters: + query: + registry_url: "https://spec.speakeasy.com/org/ws/my-source" + operation_ids: ["getPetById"] + languages: ["python"] + responses: + 2XX: + application/json: {"snippets": [{"operationId": "", "language": "", "code": ""}, {"operationId": "", "language": "", "code": ""}]} + 4XX: + application/json: {"message": "", "status_code": 521235} + typescript: + parameters: + query: + registry_url: "https://spec.speakeasy.com/org/ws/my-source" + operation_ids: ["getPetById"] + languages: ["typescript"] + responses: + 2XX: + application/json: {"snippets": [{"operationId": "", "language": "", "code": ""}, {"operationId": "", "language": "", "code": ""}, {"operationId": "", "language": "", "code": ""}]} + 4XX: + application/json: {"message": "", "status_code": 458049} + java: + parameters: + query: + registry_url: "https://spec.speakeasy.com/org/ws/my-source" + operation_ids: ["getPetById"] + languages: ["java"] + responses: + 2XX: + application/json: {"snippets": [{"operationId": "", "language": "", "code": ""}]} + 4XX: + application/json: {"message": "", "status_code": 262795} + default: + parameters: + query: + registry_url: "https://spec.speakeasy.com/org/ws/my-source" + operation_ids: ["getPetById"] + responses: + 2XX: + application/json: {"snippets": [{"operationId": "getPetById", "language": "typescript", "code": "import { Petstore } from \"petstore-sdk\";\n\nconst petstore = new Petstore({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await petstore.pet.getById({\n id: 137396,\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();"}]} generatedTests: {} diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 0c88b0b..55f45d3 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -16,7 +16,7 @@ generation: oAuth2ClientCredentialsEnabled: false oAuth2PasswordEnabled: false typescript: - version: 2.0.13 + version: 2.0.14 additionalDependencies: dependencies: {} devDependencies: {} diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index a5af0a9..9646898 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,18 +1,21 @@ -speakeasyVersion: 1.468.5 +speakeasyVersion: 1.468.8 sources: speakeasy-OAS: sourceNamespace: speakeasy-oas - sourceRevisionDigest: sha256:eccb5c0b494c102a3985fedd96b152ad956b8be90681e6f5f21b5756463f66ab - sourceBlobDigest: sha256:6d9de4a70686f4366747b9dbf16917300a43dea8857ad6583f35ef3531bffbdb + sourceRevisionDigest: sha256:3f07a3b9272ae4fbeb71c9533bafeba3dc62eca59431c354f4890bf6dfe9514d + sourceBlobDigest: sha256:8d43792e5ba3b16a95d37ec0eb7a9a1e4e2cd81d1c9585e91edfea10f3dc24f3 tags: - latest + - speakeasy-sdk-regen-1736994552 - 0.4.0 targets: code_samples_typescript_sdk: source: speakeasy-OAS sourceNamespace: speakeasy-oas - sourceRevisionDigest: sha256:eccb5c0b494c102a3985fedd96b152ad956b8be90681e6f5f21b5756463f66ab - sourceBlobDigest: sha256:6d9de4a70686f4366747b9dbf16917300a43dea8857ad6583f35ef3531bffbdb + sourceRevisionDigest: sha256:3f07a3b9272ae4fbeb71c9533bafeba3dc62eca59431c354f4890bf6dfe9514d + sourceBlobDigest: sha256:8d43792e5ba3b16a95d37ec0eb7a9a1e4e2cd81d1c9585e91edfea10f3dc24f3 + codeSamplesNamespace: speakeasy-oas-typescript-code-samples + codeSamplesRevisionDigest: sha256:c74c236d2c1a72c1120f1056d2d78219eed15bf1d981b6946a691fb93c53d084 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/FUNCTIONS.md b/FUNCTIONS.md index 74dc2a1..e730888 100644 --- a/FUNCTIONS.md +++ b/FUNCTIONS.md @@ -32,7 +32,13 @@ const speakeasyCodeSamples = new SpeakeasyCodeSamplesCore({ async function run() { const res = await codeSamplesGet(speakeasyCodeSamples, { - registryUrl: "https://spec.speakeasy.com/org/ws/my-source", + registryUrl: "https://spec.speakeasy.com/my-org/my-workspace/my-source", + operationIds: [ + "getPetById", + ], + languages: [ + "python", + ], }); switch (true) { diff --git a/REACT_QUERY.md b/REACT_QUERY.md index 1e57181..31b70ee 100644 --- a/REACT_QUERY.md +++ b/REACT_QUERY.md @@ -55,7 +55,13 @@ import { useCodeSamplesGet } from "@speakeasyapi/code-samples/react-query/codeSa export function Example() { const { data, error, status } = useCodeSamplesGet({ - registryUrl: "https://spec.speakeasy.com/org/ws/my-source", + registryUrl: "https://spec.speakeasy.com/my-org/my-workspace/my-source", + operationIds: [ + "getPetById", + ], + languages: [ + "python", + ], }); // Render the UI here... @@ -75,7 +81,13 @@ export function ExampleWithOptions() { const [enabled, setEnabled] = useState(true); const { data, error, status } = useCodeSamplesGet( { - registryUrl: "https://spec.speakeasy.com/org/ws/my-source", + registryUrl: "https://spec.speakeasy.com/my-org/my-workspace/my-source", + operationIds: [ + "getPetById", + ], + languages: [ + "python", + ], }, { // TanStack Query options: @@ -196,7 +208,13 @@ export function App() { function Example() { const { data } = useCodeSamplesGetSuspense({ - registryUrl: "https://spec.speakeasy.com/org/ws/my-source", + registryUrl: "https://spec.speakeasy.com/my-org/my-workspace/my-source", + operationIds: [ + "getPetById", + ], + languages: [ + "python", + ], }); // Render the UI here... @@ -227,7 +245,13 @@ export default async function Page() { }); await prefetchCodeSamplesGet(queryClient, speakeasyCodeSamples, { - registryUrl: "https://spec.speakeasy.com/org/ws/my-source", + registryUrl: "https://spec.speakeasy.com/my-org/my-workspace/my-source", + operationIds: [ + "getPetById", + ], + languages: [ + "python", + ], }); return ( diff --git a/README.md b/README.md index 5414335..2b30e6b 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,8 @@ Developer-friendly & type-safe Typescript SDK specifically catered to leverage _ ## Summary -Speakeasy API: The Subscriptions API manages subscriptions for CLI and registry events +Speakeasy Code Samples API: REST APIs for retrieving SDK usage snippets from the Speakeasy Code Samples API. + For more information about the API: [The Speakeasy Platform Documentation](/docs) @@ -111,7 +112,13 @@ const speakeasyCodeSamples = new SpeakeasyCodeSamples({ async function run() { const result = await speakeasyCodeSamples.codeSamples.get({ - registryUrl: "https://spec.speakeasy.com/org/ws/my-source", + registryUrl: "https://spec.speakeasy.com/my-org/my-workspace/my-source", + operationIds: [ + "getPetById", + ], + languages: [ + "python", + ], }); // Handle the result @@ -188,7 +195,13 @@ const speakeasyCodeSamples = new SpeakeasyCodeSamples({ async function run() { const result = await speakeasyCodeSamples.codeSamples.get({ - registryUrl: "https://spec.speakeasy.com/org/ws/my-source", + registryUrl: "https://spec.speakeasy.com/my-org/my-workspace/my-source", + operationIds: [ + "getPetById", + ], + languages: [ + "python", + ], }); // Handle the result @@ -208,7 +221,7 @@ run(); ### [codeSamples](docs/sdks/codesamples/README.md) -* [get](docs/sdks/codesamples/README.md#get) - Retrieve usage snippets from document stored in the registry +* [get](docs/sdks/codesamples/README.md#get) - Retrieve usage snippets @@ -229,7 +242,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md). Available standalone functions -- [`codeSamplesGet`](docs/sdks/codesamples/README.md#get) - Retrieve usage snippets from document stored in the registry +- [`codeSamplesGet`](docs/sdks/codesamples/README.md#get) - Retrieve usage snippets @@ -256,7 +269,7 @@ To learn about this feature and how to get started, check Available React hooks -- [`useCodeSamplesGet`](docs/sdks/codesamples/README.md#get) - Retrieve usage snippets from document stored in the registry +- [`useCodeSamplesGet`](docs/sdks/codesamples/README.md#get) - Retrieve usage snippets @@ -289,7 +302,13 @@ const speakeasyCodeSamples = new SpeakeasyCodeSamples({ async function run() { const result = await speakeasyCodeSamples.codeSamples.get({ - registryUrl: "https://spec.speakeasy.com/org/ws/my-source", + registryUrl: "https://spec.speakeasy.com/my-org/my-workspace/my-source", + operationIds: [ + "getPetById", + ], + languages: [ + "python", + ], }); // Handle the result @@ -317,7 +336,13 @@ const speakeasyCodeSamples = new SpeakeasyCodeSamples({ async function run() { const result = await speakeasyCodeSamples.codeSamples.get({ - registryUrl: "https://spec.speakeasy.com/org/ws/my-source", + registryUrl: "https://spec.speakeasy.com/my-org/my-workspace/my-source", + operationIds: [ + "getPetById", + ], + languages: [ + "python", + ], }, { retries: { strategy: "backoff", @@ -360,7 +385,13 @@ const speakeasyCodeSamples = new SpeakeasyCodeSamples({ async function run() { const result = await speakeasyCodeSamples.codeSamples.get({ - registryUrl: "https://spec.speakeasy.com/org/ws/my-source", + registryUrl: "https://spec.speakeasy.com/my-org/my-workspace/my-source", + operationIds: [ + "getPetById", + ], + languages: [ + "python", + ], }); // Handle the result @@ -400,7 +431,13 @@ async function run() { let result; try { result = await speakeasyCodeSamples.codeSamples.get({ - registryUrl: "https://spec.speakeasy.com/org/ws/my-source", + registryUrl: "https://spec.speakeasy.com/my-org/my-workspace/my-source", + operationIds: [ + "getPetById", + ], + languages: [ + "python", + ], }); // Handle the result @@ -469,7 +506,13 @@ const speakeasyCodeSamples = new SpeakeasyCodeSamples({ async function run() { const result = await speakeasyCodeSamples.codeSamples.get({ - registryUrl: "https://spec.speakeasy.com/org/ws/my-source", + registryUrl: "https://spec.speakeasy.com/my-org/my-workspace/my-source", + operationIds: [ + "getPetById", + ], + languages: [ + "python", + ], }); // Handle the result @@ -494,7 +537,13 @@ const speakeasyCodeSamples = new SpeakeasyCodeSamples({ async function run() { const result = await speakeasyCodeSamples.codeSamples.get({ - registryUrl: "https://spec.speakeasy.com/org/ws/my-source", + registryUrl: "https://spec.speakeasy.com/my-org/my-workspace/my-source", + operationIds: [ + "getPetById", + ], + languages: [ + "python", + ], }); // Handle the result diff --git a/RELEASES.md b/RELEASES.md index fd0ddd3..6fab171 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -52,4 +52,14 @@ Based on: ### Generated - [typescript v2.0.9] . ### Releases -- [NPM v2.0.9] https://www.npmjs.com/package/@speakeasyapi/code-samples/v/2.0.9 - . \ No newline at end of file +- [NPM v2.0.9] https://www.npmjs.com/package/@speakeasyapi/code-samples/v/2.0.9 - . + +## 2025-01-16 02:28:57 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.468.8 (2.493.19) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v2.0.14] . +### Releases +- [NPM v2.0.14] https://www.npmjs.com/package/@speakeasyapi/code-samples/v/2.0.14 - . \ No newline at end of file diff --git a/USAGE.md b/USAGE.md index 44a4c28..ea034c9 100644 --- a/USAGE.md +++ b/USAGE.md @@ -9,7 +9,13 @@ const speakeasyCodeSamples = new SpeakeasyCodeSamples({ async function run() { const result = await speakeasyCodeSamples.codeSamples.get({ - registryUrl: "https://spec.speakeasy.com/org/ws/my-source", + registryUrl: "https://spec.speakeasy.com/my-org/my-workspace/my-source", + operationIds: [ + "getPetById", + ], + languages: [ + "python", + ], }); // Handle the result diff --git a/docs/models/operations/getcodesamplesrequest.md b/docs/models/operations/getcodesamplesrequest.md index eb85f54..2e907d2 100644 --- a/docs/models/operations/getcodesamplesrequest.md +++ b/docs/models/operations/getcodesamplesrequest.md @@ -7,13 +7,16 @@ import { GetCodeSamplesRequest } from "@speakeasyapi/code-samples/models/operati let value: GetCodeSamplesRequest = { registryUrl: "https://spec.speakeasy.com/org/ws/my-source", + operationIds: [ + "getPetById", + ], }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | -| `registryUrl` | *string* | :heavy_minus_sign: | The registry URL from which to retrieve the snippets. E.g. https://spec.speakeasy.com/org/ws/my-source | https://spec.speakeasy.com/org/ws/my-source | -| `operationIds` | *string*[] | :heavy_minus_sign: | N/A | | -| `languages` | *string*[] | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `registryUrl` | *string* | :heavy_minus_sign: | The registry URL from which to retrieve the snippets. | https://spec.speakeasy.com/org/ws/my-source | +| `operationIds` | *string*[] | :heavy_minus_sign: | The operation IDs to retrieve snippets for. | getPetById | +| `languages` | *string*[] | :heavy_minus_sign: | The languages to retrieve snippets for. | | \ No newline at end of file diff --git a/docs/sdks/codesamples/README.md b/docs/sdks/codesamples/README.md index 43dd212..082a053 100644 --- a/docs/sdks/codesamples/README.md +++ b/docs/sdks/codesamples/README.md @@ -5,11 +5,12 @@ ### Available Operations -* [get](#get) - Retrieve usage snippets from document stored in the registry +* [get](#get) - Retrieve usage snippets ## get -Retrieve usage snippets from document stored in the registry. Supports filtering by language and operation ID. +Retrieve usage snippets from an OpenAPI document stored in the registry. Supports filtering by language and operation ID. + ### Example Usage @@ -23,7 +24,13 @@ const speakeasyCodeSamples = new SpeakeasyCodeSamples({ async function run() { const result = await speakeasyCodeSamples.codeSamples.get({ - registryUrl: "https://spec.speakeasy.com/org/ws/my-source", + registryUrl: "https://spec.speakeasy.com/my-org/my-workspace/my-source", + operationIds: [ + "getPetById", + ], + languages: [ + "python", + ], }); // Handle the result @@ -50,7 +57,13 @@ const speakeasyCodeSamples = new SpeakeasyCodeSamplesCore({ async function run() { const res = await codeSamplesGet(speakeasyCodeSamples, { - registryUrl: "https://spec.speakeasy.com/org/ws/my-source", + registryUrl: "https://spec.speakeasy.com/my-org/my-workspace/my-source", + operationIds: [ + "getPetById", + ], + languages: [ + "python", + ], }); if (!res.ok) { diff --git a/docs/sdks/speakeasycodesamples/README.md b/docs/sdks/speakeasycodesamples/README.md index 97c0bc9..b1d2c6a 100644 --- a/docs/sdks/speakeasycodesamples/README.md +++ b/docs/sdks/speakeasycodesamples/README.md @@ -2,7 +2,8 @@ ## Overview -Speakeasy API: The Subscriptions API manages subscriptions for CLI and registry events +Speakeasy Code Samples API: REST APIs for retrieving SDK usage snippets from the Speakeasy Code Samples API. + The Speakeasy Platform Documentation diff --git a/jsr.json b/jsr.json index fb53bc2..96261d8 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "@speakeasyapi/code-samples", - "version": "2.0.13", + "version": "2.0.14", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index 82a63cb..666a05a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@speakeasyapi/code-samples", - "version": "2.0.13", + "version": "2.0.14", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@speakeasyapi/code-samples", - "version": "2.0.13", + "version": "2.0.14", "devDependencies": { "@tanstack/react-query": "^5.61.4", "@types/react": "^18.3.12", diff --git a/package.json b/package.json index c372108..0bdf166 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@speakeasyapi/code-samples", - "version": "2.0.13", + "version": "2.0.14", "author": "Speakeasy", "type": "module", "main": "./esm/index.js", diff --git a/src/funcs/codeSamplesGet.ts b/src/funcs/codeSamplesGet.ts index 8ffccd3..6a28667 100644 --- a/src/funcs/codeSamplesGet.ts +++ b/src/funcs/codeSamplesGet.ts @@ -25,10 +25,10 @@ import * as operations from "../models/operations/index.js"; import { Result } from "../types/fp.js"; /** - * Retrieve usage snippets from document stored in the registry + * Retrieve usage snippets * * @remarks - * Retrieve usage snippets from document stored in the registry. Supports filtering by language and operation ID. + * Retrieve usage snippets from an OpenAPI document stored in the registry. Supports filtering by language and operation ID. */ export async function codeSamplesGet( client: SpeakeasyCodeSamplesCore, diff --git a/src/lib/config.ts b/src/lib/config.ts index b4784e5..0b65e58 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -57,8 +57,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "0.4.0", - sdkVersion: "2.0.13", - genVersion: "2.493.11", + sdkVersion: "2.0.14", + genVersion: "2.493.19", userAgent: - "speakeasy-sdk/typescript 2.0.13 2.493.11 0.4.0 @speakeasyapi/code-samples", + "speakeasy-sdk/typescript 2.0.14 2.493.19 0.4.0 @speakeasyapi/code-samples", } as const; diff --git a/src/models/operations/getcodesamples.ts b/src/models/operations/getcodesamples.ts index ff0dd86..48d647b 100644 --- a/src/models/operations/getcodesamples.ts +++ b/src/models/operations/getcodesamples.ts @@ -17,10 +17,16 @@ export type GetCodeSamplesGlobals = { export type GetCodeSamplesRequest = { /** - * The registry URL from which to retrieve the snippets. E.g. https://spec.speakeasy.com/org/ws/my-source + * The registry URL from which to retrieve the snippets. */ registryUrl?: string | undefined; + /** + * The operation IDs to retrieve snippets for. + */ operationIds?: Array | undefined; + /** + * The languages to retrieve snippets for. + */ languages?: Array | undefined; }; diff --git a/src/react-query/codeSamplesGet.ts b/src/react-query/codeSamplesGet.ts index b766abf..2e24d0f 100644 --- a/src/react-query/codeSamplesGet.ts +++ b/src/react-query/codeSamplesGet.ts @@ -29,10 +29,10 @@ import { export type CodeSamplesGetQueryData = components.UsageSnippets; /** - * Retrieve usage snippets from document stored in the registry + * Retrieve usage snippets * * @remarks - * Retrieve usage snippets from document stored in the registry. Supports filtering by language and operation ID. + * Retrieve usage snippets from an OpenAPI document stored in the registry. Supports filtering by language and operation ID. */ export function useCodeSamplesGet( request: operations.GetCodeSamplesRequest, @@ -50,10 +50,10 @@ export function useCodeSamplesGet( } /** - * Retrieve usage snippets from document stored in the registry + * Retrieve usage snippets * * @remarks - * Retrieve usage snippets from document stored in the registry. Supports filtering by language and operation ID. + * Retrieve usage snippets from an OpenAPI document stored in the registry. Supports filtering by language and operation ID. */ export function useCodeSamplesGetSuspense( request: operations.GetCodeSamplesRequest, diff --git a/src/sdk/codesamples.ts b/src/sdk/codesamples.ts index b6b043a..8e97209 100644 --- a/src/sdk/codesamples.ts +++ b/src/sdk/codesamples.ts @@ -10,10 +10,10 @@ import { unwrapAsync } from "../types/fp.js"; export class CodeSamples extends ClientSDK { /** - * Retrieve usage snippets from document stored in the registry + * Retrieve usage snippets * * @remarks - * Retrieve usage snippets from document stored in the registry. Supports filtering by language and operation ID. + * Retrieve usage snippets from an OpenAPI document stored in the registry. Supports filtering by language and operation ID. */ async get( request: operations.GetCodeSamplesRequest,