@workos/openapi-spec 0.11.0 → 0.13.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.
- package/dist/open-api-spec.yaml +27 -0
- package/dist/policy.mjs +15 -0
- package/dist/types.d.ts +22 -0
- package/package.json +1 -1
package/dist/open-api-spec.yaml
CHANGED
|
@@ -6978,6 +6978,14 @@ paths:
|
|
|
6978
6978
|
example: 'Organization not found: ''org_01EHQMYV6MBK39QC5PZXHY59C3''.'
|
|
6979
6979
|
required:
|
|
6980
6980
|
- message
|
|
6981
|
+
'422':
|
|
6982
|
+
description: >-
|
|
6983
|
+
The matched installation uses a different auth method than this
|
|
6984
|
+
endpoint expects.
|
|
6985
|
+
content:
|
|
6986
|
+
application/json:
|
|
6987
|
+
schema:
|
|
6988
|
+
$ref: '#/components/schemas/AuthMethodMismatchError'
|
|
6981
6989
|
summary: Get an access token for a connected account
|
|
6982
6990
|
tags:
|
|
6983
6991
|
- pipes
|
|
@@ -32528,6 +32536,25 @@ components:
|
|
|
32528
32536
|
required:
|
|
32529
32537
|
- active
|
|
32530
32538
|
- error
|
|
32539
|
+
AuthMethodMismatchError:
|
|
32540
|
+
type: object
|
|
32541
|
+
properties:
|
|
32542
|
+
code:
|
|
32543
|
+
type: string
|
|
32544
|
+
description: >-
|
|
32545
|
+
Error code indicating the endpoint does not match the installation
|
|
32546
|
+
auth method.
|
|
32547
|
+
example: auth_method_mismatch
|
|
32548
|
+
const: auth_method_mismatch
|
|
32549
|
+
message:
|
|
32550
|
+
type: string
|
|
32551
|
+
description: A human-readable explanation of the mismatch.
|
|
32552
|
+
example: >-
|
|
32553
|
+
This installation uses oauth authentication. Use the POST
|
|
32554
|
+
/:slug/token endpoint instead.
|
|
32555
|
+
required:
|
|
32556
|
+
- code
|
|
32557
|
+
- message
|
|
32531
32558
|
ConnectedAccount:
|
|
32532
32559
|
type: object
|
|
32533
32560
|
properties:
|
package/dist/policy.mjs
CHANGED
|
@@ -414,6 +414,21 @@ function transformSpec(spec) {
|
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
|
+
if (schemas["OrganizationDomainStandAlone"] && !schemas["OrganizationDomain"]) {
|
|
418
|
+
schemas["OrganizationDomain"] = schemas["OrganizationDomainStandAlone"];
|
|
419
|
+
delete schemas["OrganizationDomainStandAlone"];
|
|
420
|
+
const oldRef = "#/components/schemas/OrganizationDomainStandAlone";
|
|
421
|
+
const newRef = "#/components/schemas/OrganizationDomain";
|
|
422
|
+
for (const pathItem of Object.values(paths)) for (const op of Object.values(pathItem)) {
|
|
423
|
+
const responses = op.responses;
|
|
424
|
+
for (const response of Object.values(responses ?? {})) {
|
|
425
|
+
const schema = response.content?.["application/json"]?.schema;
|
|
426
|
+
if (schema?.$ref === oldRef) schema.$ref = newRef;
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
const createJson = paths["/organization_domains"]?.post?.responses?.["201"]?.content?.["application/json"];
|
|
430
|
+
if (createJson && !createJson.schema?.$ref) createJson.schema = { $ref: newRef };
|
|
431
|
+
}
|
|
417
432
|
if (schemas["ListMetadata"]) {
|
|
418
433
|
const groupRoleList = schemas["GroupRoleAssignmentList"];
|
|
419
434
|
const listMetadata = groupRoleList?.properties?.list_metadata;
|
package/dist/types.d.ts
CHANGED
|
@@ -13984,6 +13984,19 @@ export interface components {
|
|
|
13984
13984
|
*/
|
|
13985
13985
|
error: "needs_reauthorization" | "not_installed";
|
|
13986
13986
|
};
|
|
13987
|
+
AuthMethodMismatchError: {
|
|
13988
|
+
/**
|
|
13989
|
+
* @description Error code indicating the endpoint does not match the installation auth method.
|
|
13990
|
+
* @example auth_method_mismatch
|
|
13991
|
+
* @constant
|
|
13992
|
+
*/
|
|
13993
|
+
code: "auth_method_mismatch";
|
|
13994
|
+
/**
|
|
13995
|
+
* @description A human-readable explanation of the mismatch.
|
|
13996
|
+
* @example This installation uses oauth authentication. Use the POST /:slug/token endpoint instead.
|
|
13997
|
+
*/
|
|
13998
|
+
message: string;
|
|
13999
|
+
};
|
|
13987
14000
|
ConnectedAccount: {
|
|
13988
14001
|
/**
|
|
13989
14002
|
* @description Distinguishes the connected account object.
|
|
@@ -21499,6 +21512,15 @@ export interface operations {
|
|
|
21499
21512
|
};
|
|
21500
21513
|
};
|
|
21501
21514
|
};
|
|
21515
|
+
/** @description The matched installation uses a different auth method than this endpoint expects. */
|
|
21516
|
+
422: {
|
|
21517
|
+
headers: {
|
|
21518
|
+
[name: string]: unknown;
|
|
21519
|
+
};
|
|
21520
|
+
content: {
|
|
21521
|
+
"application/json": components["schemas"]["AuthMethodMismatchError"];
|
|
21522
|
+
};
|
|
21523
|
+
};
|
|
21502
21524
|
};
|
|
21503
21525
|
};
|
|
21504
21526
|
DirectoriesController_list: {
|