From 1fc664906930abc627e5ab7d031b8b31e7e5cae6 Mon Sep 17 00:00:00 2001 From: rajashidattapy Date: Sat, 1 Aug 2026 08:22:17 +0530 Subject: [PATCH] chore: add initialism support for OAuth and SCIM, deprecate o_auth alias --- .speakeasy/gen.yaml | 4 +++ .speakeasy/out.openapi.yaml | 5 +++ .../deprecated-o-auth-alias.overlay.yaml | 32 +++++++++++++++++++ .speakeasy/workflow.yaml | 1 + 4 files changed, 42 insertions(+) create mode 100644 .speakeasy/overlays/deprecated-o-auth-alias.overlay.yaml diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index e207a1dd..c37c800c 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -56,6 +56,10 @@ python: customCasings: byok: initialism: true + oauth: + initialism: true + scim: + initialism: true stt: initialism: true tts: diff --git a/.speakeasy/out.openapi.yaml b/.speakeasy/out.openapi.yaml index 339949af..343eae90 100644 --- a/.speakeasy/out.openapi.yaml +++ b/.speakeasy/out.openapi.yaml @@ -26274,6 +26274,7 @@ paths: summary: 'Exchange authorization code for API key' tags: - 'OAuth' + - o_auth parameters: - $ref: "#/components/parameters/AppIdentifier" - $ref: "#/components/parameters/AppDisplayName" @@ -26457,6 +26458,7 @@ paths: summary: 'Create authorization code' tags: - 'OAuth' + - o_auth x-speakeasy-name-override: 'createAuthCode' parameters: - $ref: "#/components/parameters/AppIdentifier" @@ -37848,6 +37850,9 @@ tags: - name: beta.responses deprecated: true description: Deprecated alias for responses endpoints. Use responses instead. Scheduled for removal (sunset date TBD). + - name: o_auth + deprecated: true + description: Deprecated alias for oauth endpoints. Use oauth instead. Scheduled for removal (sunset date TBD). x-retry-strategy: initialDelay: 500 maxAttempts: 3 diff --git a/.speakeasy/overlays/deprecated-o-auth-alias.overlay.yaml b/.speakeasy/overlays/deprecated-o-auth-alias.overlay.yaml new file mode 100644 index 00000000..92b58d64 --- /dev/null +++ b/.speakeasy/overlays/deprecated-o-auth-alias.overlay.yaml @@ -0,0 +1,32 @@ +overlay: 1.0.0 +x-speakeasy-jsonpath: rfc9535 +info: + title: Keep o_auth as a deprecated SDK alias for oauth + version: 0.0.0 +actions: + # Registering `oauth` as an initialism in gen.yaml renames the namespace from + # client.o_auth to client.oauth. That attribute has been the only public name + # for these operations since v1.0, so the old one stays as a deprecated alias + # rather than breaking callers on a regen — same treatment beta.responses got. + # + # `update` appends to the existing tags list, so only the alias is listed here; + # re-listing `OAuth` would duplicate the canonical tag. + - target: $.paths["/auth/keys"].post + description: Add o_auth as a second (deprecated) SDK namespace for the token exchange operation + update: + tags: + - o_auth + - target: $.paths["/auth/keys/code"].post + description: Add o_auth as a second (deprecated) SDK namespace for the auth code operation + update: + tags: + - o_auth + # Defined here rather than edited into the input spec: the monorepo sdk-bot + # overwrites in.openapi.yaml and carries no o_auth tag, so a filter-based edit + # would silently match nothing and drop the deprecation notice. + - target: $.tags + description: Define the deprecated o_auth tag + update: + - name: o_auth + deprecated: true + description: Deprecated alias for oauth endpoints. Use oauth instead. Scheduled for removal (sunset date TBD). diff --git a/.speakeasy/workflow.yaml b/.speakeasy/workflow.yaml index 8e51a85a..6e1e1c59 100644 --- a/.speakeasy/workflow.yaml +++ b/.speakeasy/workflow.yaml @@ -12,6 +12,7 @@ sources: - location: .speakeasy/overlays/boolean-query-params.overlay.yaml - location: .speakeasy/overlays/fix-nullable-pagination.overlay.yaml - location: .speakeasy/overlays/deprecated-beta-responses-alias.overlay.yaml + - location: .speakeasy/overlays/deprecated-o-auth-alias.overlay.yaml output: .speakeasy/out.openapi.yaml registry: location: registry.speakeasyapi.dev/openrouter/sdk/open-router-chat-completions-api