@workos/openapi-spec 0.46.0 → 0.47.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13122,20 +13122,35 @@ paths:
13122
13122
  content:
13123
13123
  application/json:
13124
13124
  schema:
13125
- type: object
13126
- properties:
13127
- code:
13128
- type: string
13129
- description: The error code identifying the type of error.
13130
- example: daily_quota_exceeded
13131
- const: daily_quota_exceeded
13132
- message:
13133
- type: string
13134
- description: A human-readable description of the error.
13135
- example: Request could not be processed.
13136
- required:
13137
- - code
13138
- - message
13125
+ oneOf:
13126
+ - type: object
13127
+ properties:
13128
+ code:
13129
+ type: string
13130
+ description: The error code identifying the type of error.
13131
+ example: daily_quota_exceeded
13132
+ const: daily_quota_exceeded
13133
+ message:
13134
+ type: string
13135
+ description: A human-readable description of the error.
13136
+ example: Request could not be processed.
13137
+ required:
13138
+ - code
13139
+ - message
13140
+ - type: object
13141
+ properties:
13142
+ error:
13143
+ type: string
13144
+ description: The OAuth error code.
13145
+ example: too_many_requests
13146
+ const: too_many_requests
13147
+ error_description:
13148
+ type: string
13149
+ description: A human-readable description of the error.
13150
+ example: 'The request failed due to: too_many_requests.'
13151
+ required:
13152
+ - error
13153
+ - error_description
13139
13154
  summary: Authenticate
13140
13155
  tags:
13141
13156
  - user-management.authentication
package/dist/types.d.ts CHANGED
@@ -28632,6 +28632,18 @@ export interface operations {
28632
28632
  * @example Request could not be processed.
28633
28633
  */
28634
28634
  message: string;
28635
+ } | {
28636
+ /**
28637
+ * @description The OAuth error code.
28638
+ * @example too_many_requests
28639
+ * @constant
28640
+ */
28641
+ error: "too_many_requests";
28642
+ /**
28643
+ * @description A human-readable description of the error.
28644
+ * @example The request failed due to: too_many_requests.
28645
+ */
28646
+ error_description: string;
28635
28647
  };
28636
28648
  };
28637
28649
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workos/openapi-spec",
3
- "version": "0.46.0",
3
+ "version": "0.47.0",
4
4
  "type": "module",
5
5
  "description": "WorkOS OpenAPI specification, TypeScript types, and SDK resolution policy",
6
6
  "license": "MIT",