@workos/openapi-spec 0.163.0 → 0.165.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 +21 -19
- package/dist/types.d.ts +7 -8
- package/package.json +1 -1
package/dist/open-api-spec.yaml
CHANGED
|
@@ -2190,31 +2190,22 @@ paths:
|
|
|
2190
2190
|
/authkit/oauth2/complete:
|
|
2191
2191
|
post:
|
|
2192
2192
|
description: >-
|
|
2193
|
-
Completes
|
|
2194
|
-
AuthKit
|
|
2195
|
-
|
|
2196
|
-
authentication system with the Connect OAuth API infrastructure.
|
|
2193
|
+
Completes a [Standalone Connect](/authkit/connect/standalone) login by
|
|
2194
|
+
creating or updating the AuthKit user and returning a `redirect_uri`
|
|
2195
|
+
your application should redirect to so AuthKit can finish the flow.
|
|
2197
2196
|
|
|
2198
2197
|
|
|
2199
|
-
|
|
2200
|
-
|
|
2198
|
+
The user is matched by `id`, stored as its `external_id`, and updated if
|
|
2199
|
+
found. Otherwise:
|
|
2201
2200
|
|
|
2202
2201
|
|
|
2203
|
-
-
|
|
2204
|
-
`
|
|
2202
|
+
- If a user with the given `email` has no `external_id`, it is linked to
|
|
2203
|
+
`id`.
|
|
2205
2204
|
|
|
2206
|
-
-
|
|
2207
|
-
|
|
2205
|
+
- If a user with the given `email` has a different `external_id`, the
|
|
2206
|
+
request fails.
|
|
2208
2207
|
|
|
2209
|
-
|
|
2210
|
-
Users are automatically created or updated based on the `id` and `email`
|
|
2211
|
-
provided. If a user with the same `id` exists, their information is
|
|
2212
|
-
updated. Otherwise, a new user is created.
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
If you provide a new `id` with an `email` that already belongs to an
|
|
2216
|
-
existing user, the request will fail with an error as email addresses
|
|
2217
|
-
are unique to a user.
|
|
2208
|
+
- If no user has the given `email`, a new user is created.
|
|
2218
2209
|
operationId: ExternalAuthController_completeLogin
|
|
2219
2210
|
parameters: []
|
|
2220
2211
|
requestBody:
|
|
@@ -6728,6 +6719,17 @@ paths:
|
|
|
6728
6719
|
schema:
|
|
6729
6720
|
example: Foo Corp
|
|
6730
6721
|
type: string
|
|
6722
|
+
- name: state
|
|
6723
|
+
required: false
|
|
6724
|
+
in: query
|
|
6725
|
+
description: Filter Connections by their state.
|
|
6726
|
+
schema:
|
|
6727
|
+
example: active
|
|
6728
|
+
enum:
|
|
6729
|
+
- active
|
|
6730
|
+
- inactive
|
|
6731
|
+
- validating
|
|
6732
|
+
type: string
|
|
6731
6733
|
responses:
|
|
6732
6734
|
'200':
|
|
6733
6735
|
description: OK
|
package/dist/types.d.ts
CHANGED
|
@@ -543,16 +543,13 @@ export interface paths {
|
|
|
543
543
|
put?: never;
|
|
544
544
|
/**
|
|
545
545
|
* Complete external authentication
|
|
546
|
-
* @description Completes
|
|
546
|
+
* @description Completes a [Standalone Connect](/authkit/connect/standalone) login by creating or updating the AuthKit user and returning a `redirect_uri` your application should redirect to so AuthKit can finish the flow.
|
|
547
547
|
*
|
|
548
|
-
*
|
|
548
|
+
* The user is matched by `id`, stored as its `external_id`, and updated if found. Otherwise:
|
|
549
549
|
*
|
|
550
|
-
* -
|
|
551
|
-
* -
|
|
552
|
-
*
|
|
553
|
-
* Users are automatically created or updated based on the `id` and `email` provided. If a user with the same `id` exists, their information is updated. Otherwise, a new user is created.
|
|
554
|
-
*
|
|
555
|
-
* If you provide a new `id` with an `email` that already belongs to an existing user, the request will fail with an error as email addresses are unique to a user.
|
|
550
|
+
* - If a user with the given `email` has no `external_id`, it is linked to `id`.
|
|
551
|
+
* - If a user with the given `email` has a different `external_id`, the request fails.
|
|
552
|
+
* - If no user has the given `email`, a new user is created.
|
|
556
553
|
*/
|
|
557
554
|
post: operations["ExternalAuthController_completeLogin"];
|
|
558
555
|
delete?: never;
|
|
@@ -28929,6 +28926,8 @@ export interface operations {
|
|
|
28929
28926
|
organization_id?: string;
|
|
28930
28927
|
/** @description Searchable text to match against Connection names. */
|
|
28931
28928
|
search?: string;
|
|
28929
|
+
/** @description Filter Connections by their state. */
|
|
28930
|
+
state?: "active" | "inactive" | "validating";
|
|
28932
28931
|
};
|
|
28933
28932
|
header?: never;
|
|
28934
28933
|
path?: never;
|