@workos/openapi-spec 0.27.0 → 0.29.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 +11 -5
- package/dist/types.d.ts +3 -3
- package/package.json +1 -1
package/dist/open-api-spec.yaml
CHANGED
|
@@ -18851,8 +18851,10 @@ paths:
|
|
|
18851
18851
|
/widgets/token:
|
|
18852
18852
|
post:
|
|
18853
18853
|
description: >-
|
|
18854
|
-
Generate a widget token
|
|
18855
|
-
specified
|
|
18854
|
+
Generate a widget token for a user, optionally scoped to an
|
|
18855
|
+
organization. When an organization is specified, org-scoped widgets are
|
|
18856
|
+
enabled; omitting it issues a user-only token for widgets like
|
|
18857
|
+
`UserProfile` and `UserSecurity`.
|
|
18856
18858
|
operationId: WidgetsPublicController_issueWidgetSessionToken
|
|
18857
18859
|
parameters: []
|
|
18858
18860
|
requestBody:
|
|
@@ -19659,10 +19661,12 @@ components:
|
|
|
19659
19661
|
type: string
|
|
19660
19662
|
description: The external ID of the resource.
|
|
19661
19663
|
example: proj-456
|
|
19664
|
+
x-feature-flag: user-groups-role-assignment-enabled
|
|
19662
19665
|
resource_type_slug:
|
|
19663
19666
|
type: string
|
|
19664
19667
|
description: The resource type slug.
|
|
19665
19668
|
example: project
|
|
19669
|
+
x-feature-flag: user-groups-role-assignment-enabled
|
|
19666
19670
|
required:
|
|
19667
19671
|
- role_slug
|
|
19668
19672
|
ReplaceGroupRoleAssignmentEntryDto:
|
|
@@ -21712,7 +21716,11 @@ components:
|
|
|
21712
21716
|
properties:
|
|
21713
21717
|
organization_id:
|
|
21714
21718
|
type: string
|
|
21715
|
-
description:
|
|
21719
|
+
description: >-
|
|
21720
|
+
The ID of the organization to scope the widget session to. Required
|
|
21721
|
+
when scopes are provided. Optional when issuing a token for
|
|
21722
|
+
user-only widgets (e.g. `UserProfile`, `UserSecurity`) that do not
|
|
21723
|
+
require organization context.
|
|
21716
21724
|
example: org_01EHZNVPK3SFK441A1RGBFSHRT
|
|
21717
21725
|
user_id:
|
|
21718
21726
|
type: string
|
|
@@ -21733,8 +21741,6 @@ components:
|
|
|
21733
21741
|
- widgets:pipes:manage
|
|
21734
21742
|
example:
|
|
21735
21743
|
- widgets:users-table:manage
|
|
21736
|
-
required:
|
|
21737
|
-
- organization_id
|
|
21738
21744
|
ClientApiTokenDto:
|
|
21739
21745
|
type: object
|
|
21740
21746
|
properties:
|
package/dist/types.d.ts
CHANGED
|
@@ -3162,7 +3162,7 @@ export interface paths {
|
|
|
3162
3162
|
put?: never;
|
|
3163
3163
|
/**
|
|
3164
3164
|
* Generate a widget token
|
|
3165
|
-
* @description Generate a widget token scoped to an organization
|
|
3165
|
+
* @description Generate a widget token for a user, optionally scoped to an organization. When an organization is specified, org-scoped widgets are enabled; omitting it issues a user-only token for widgets like `UserProfile` and `UserSecurity`.
|
|
3166
3166
|
*/
|
|
3167
3167
|
post: operations["WidgetsPublicController_issueWidgetSessionToken"];
|
|
3168
3168
|
delete?: never;
|
|
@@ -4832,10 +4832,10 @@ export interface components {
|
|
|
4832
4832
|
};
|
|
4833
4833
|
WidgetSessionTokenDto: {
|
|
4834
4834
|
/**
|
|
4835
|
-
* @description The ID of the organization to scope the widget session to.
|
|
4835
|
+
* @description The ID of the organization to scope the widget session to. Required when scopes are provided. Optional when issuing a token for user-only widgets (e.g. `UserProfile`, `UserSecurity`) that do not require organization context.
|
|
4836
4836
|
* @example org_01EHZNVPK3SFK441A1RGBFSHRT
|
|
4837
4837
|
*/
|
|
4838
|
-
organization_id
|
|
4838
|
+
organization_id?: string;
|
|
4839
4839
|
/**
|
|
4840
4840
|
* @description The ID of the user to issue the widget session token for.
|
|
4841
4841
|
* @example user_01E4ZCR3C56J083X43JQXF3JK5
|