@workos/openapi-spec 0.175.0 → 0.177.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.
@@ -15043,6 +15043,42 @@ paths:
15043
15043
  summary: List CORS origins
15044
15044
  tags:
15045
15045
  - user-management.cors-origins
15046
+ /user_management/cors_origins/{id}:
15047
+ delete:
15048
+ description: Deletes a CORS origin from the API key's application.
15049
+ operationId: CorsOriginsController_delete
15050
+ parameters:
15051
+ - name: id
15052
+ required: true
15053
+ in: path
15054
+ description: The ID of the CORS origin to delete.
15055
+ schema:
15056
+ type: string
15057
+ example: cors_origin_01HXYZ123456789ABCDEFGHIJ
15058
+ responses:
15059
+ '204':
15060
+ description: CORS origin deleted successfully.
15061
+ '401':
15062
+ description: Unauthorized
15063
+ content:
15064
+ application/json:
15065
+ schema:
15066
+ $ref: '#/components/schemas/ErrorBody'
15067
+ example:
15068
+ message: Unauthorized
15069
+ '404':
15070
+ description: CORS origin not found.
15071
+ content:
15072
+ application/json:
15073
+ schema:
15074
+ $ref: '#/components/schemas/ErrorBody'
15075
+ example:
15076
+ message: >-
15077
+ CORS origin not found:
15078
+ 'cors_origin_01HXYZ123456789ABCDEFGHIJ'.
15079
+ summary: Delete a CORS origin
15080
+ tags:
15081
+ - user-management.cors-origins
15046
15082
  /user_management/email_verification/{id}:
15047
15083
  get:
15048
15084
  description: >-
@@ -19716,6 +19752,33 @@ paths:
19716
19752
  tags:
19717
19753
  - webhooks
19718
19754
  /webhook_endpoints/{id}:
19755
+ get:
19756
+ description: Get the details of an existing webhook endpoint.
19757
+ operationId: WebhookEndpointsController_get
19758
+ parameters:
19759
+ - name: id
19760
+ required: true
19761
+ in: path
19762
+ description: Unique identifier of the Webhook Endpoint.
19763
+ schema:
19764
+ type: string
19765
+ example: we_0123456789
19766
+ responses:
19767
+ '200':
19768
+ description: Webhook endpoint retrieved successfully.
19769
+ content:
19770
+ application/json:
19771
+ schema:
19772
+ $ref: '#/components/schemas/WebhookEndpointJson'
19773
+ '404':
19774
+ description: Webhook endpoint not found.
19775
+ content:
19776
+ application/json:
19777
+ schema:
19778
+ $ref: '#/components/schemas/ErrorBodyWithCode'
19779
+ summary: Get a Webhook Endpoint
19780
+ tags:
19781
+ - webhooks
19719
19782
  patch:
19720
19783
  description: Update the properties of an existing webhook endpoint.
19721
19784
  operationId: WebhookEndpointsController_update
package/dist/services.mjs CHANGED
@@ -1119,6 +1119,11 @@ const serviceEndpoints = {
1119
1119
  "path": "/user_management/cors_origins",
1120
1120
  "name": "create_cors_origin"
1121
1121
  },
1122
+ {
1123
+ "method": "DELETE",
1124
+ "path": "/user_management/cors_origins/{id}",
1125
+ "name": "delete_cors_origin"
1126
+ },
1122
1127
  {
1123
1128
  "method": "GET",
1124
1129
  "path": "/user_management/email_verification/{id}",
@@ -1418,6 +1423,11 @@ const serviceEndpoints = {
1418
1423
  "path": "/webhook_endpoints/{id}",
1419
1424
  "name": "delete_webhook_endpoint"
1420
1425
  },
1426
+ {
1427
+ "method": "GET",
1428
+ "path": "/webhook_endpoints/{id}",
1429
+ "name": "get_webhook_endpoint"
1430
+ },
1421
1431
  {
1422
1432
  "method": "PATCH",
1423
1433
  "path": "/webhook_endpoints/{id}",
package/dist/types.d.ts CHANGED
@@ -2906,6 +2906,26 @@ export interface paths {
2906
2906
  patch?: never;
2907
2907
  trace?: never;
2908
2908
  };
2909
+ "/user_management/cors_origins/{id}": {
2910
+ parameters: {
2911
+ query?: never;
2912
+ header?: never;
2913
+ path?: never;
2914
+ cookie?: never;
2915
+ };
2916
+ get?: never;
2917
+ put?: never;
2918
+ post?: never;
2919
+ /**
2920
+ * Delete a CORS origin
2921
+ * @description Deletes a CORS origin from the API key's application.
2922
+ */
2923
+ delete: operations["CorsOriginsController_delete"];
2924
+ options?: never;
2925
+ head?: never;
2926
+ patch?: never;
2927
+ trace?: never;
2928
+ };
2909
2929
  "/user_management/email_verification/{id}": {
2910
2930
  parameters: {
2911
2931
  query?: never;
@@ -4105,7 +4125,11 @@ export interface paths {
4105
4125
  path?: never;
4106
4126
  cookie?: never;
4107
4127
  };
4108
- get?: never;
4128
+ /**
4129
+ * Get a Webhook Endpoint
4130
+ * @description Get the details of an existing webhook endpoint.
4131
+ */
4132
+ get: operations["WebhookEndpointsController_get"];
4109
4133
  put?: never;
4110
4134
  post?: never;
4111
4135
  /**
@@ -36705,6 +36729,55 @@ export interface operations {
36705
36729
  };
36706
36730
  };
36707
36731
  };
36732
+ CorsOriginsController_delete: {
36733
+ parameters: {
36734
+ query?: never;
36735
+ header?: never;
36736
+ path: {
36737
+ /** @description The ID of the CORS origin to delete. */
36738
+ id: string;
36739
+ };
36740
+ cookie?: never;
36741
+ };
36742
+ requestBody?: never;
36743
+ responses: {
36744
+ /** @description CORS origin deleted successfully. */
36745
+ 204: {
36746
+ headers: {
36747
+ [name: string]: unknown;
36748
+ };
36749
+ content?: never;
36750
+ };
36751
+ /** @description Unauthorized */
36752
+ 401: {
36753
+ headers: {
36754
+ [name: string]: unknown;
36755
+ };
36756
+ content: {
36757
+ /**
36758
+ * @example {
36759
+ * "message": "Unauthorized"
36760
+ * }
36761
+ */
36762
+ "application/json": components["schemas"]["ErrorBody"];
36763
+ };
36764
+ };
36765
+ /** @description CORS origin not found. */
36766
+ 404: {
36767
+ headers: {
36768
+ [name: string]: unknown;
36769
+ };
36770
+ content: {
36771
+ /**
36772
+ * @example {
36773
+ * "message": "CORS origin not found: 'cors_origin_01HXYZ123456789ABCDEFGHIJ'."
36774
+ * }
36775
+ */
36776
+ "application/json": components["schemas"]["ErrorBody"];
36777
+ };
36778
+ };
36779
+ };
36780
+ };
36708
36781
  UserlandUsersController_getEmailVerification: {
36709
36782
  parameters: {
36710
36783
  query?: never;
@@ -40735,6 +40808,38 @@ export interface operations {
40735
40808
  };
40736
40809
  };
40737
40810
  };
40811
+ WebhookEndpointsController_get: {
40812
+ parameters: {
40813
+ query?: never;
40814
+ header?: never;
40815
+ path: {
40816
+ /** @description Unique identifier of the Webhook Endpoint. */
40817
+ id: string;
40818
+ };
40819
+ cookie?: never;
40820
+ };
40821
+ requestBody?: never;
40822
+ responses: {
40823
+ /** @description Webhook endpoint retrieved successfully. */
40824
+ 200: {
40825
+ headers: {
40826
+ [name: string]: unknown;
40827
+ };
40828
+ content: {
40829
+ "application/json": components["schemas"]["WebhookEndpointJson"];
40830
+ };
40831
+ };
40832
+ /** @description Webhook endpoint not found. */
40833
+ 404: {
40834
+ headers: {
40835
+ [name: string]: unknown;
40836
+ };
40837
+ content: {
40838
+ "application/json": components["schemas"]["ErrorBodyWithCode"];
40839
+ };
40840
+ };
40841
+ };
40842
+ };
40738
40843
  WebhookEndpointsController_delete: {
40739
40844
  parameters: {
40740
40845
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workos/openapi-spec",
3
- "version": "0.175.0",
3
+ "version": "0.177.0",
4
4
  "type": "module",
5
5
  "description": "WorkOS OpenAPI specification, TypeScript types, and SDK resolution policy",
6
6
  "license": "MIT",