@workos-inc/widgets 1.8.2 → 1.9.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.
Files changed (88) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/dist/cjs/api/api-provider.cjs.map +1 -1
  3. package/dist/cjs/api/api-provider.d.cts +1 -1
  4. package/dist/cjs/api/endpoint.cjs +702 -623
  5. package/dist/cjs/api/endpoint.cjs.map +1 -1
  6. package/dist/cjs/api/endpoint.d.cts +810 -729
  7. package/dist/cjs/directory-sync.client.cjs +143 -0
  8. package/dist/cjs/directory-sync.client.cjs.map +1 -0
  9. package/dist/cjs/directory-sync.client.d.cts +26 -0
  10. package/dist/cjs/experimental/api/fetch.cjs +309 -252
  11. package/dist/cjs/experimental/api/fetch.cjs.map +1 -1
  12. package/dist/cjs/experimental/api/fetch.d.cts +809 -731
  13. package/dist/cjs/experimental/api/react-query.cjs +695 -613
  14. package/dist/cjs/experimental/api/react-query.cjs.map +1 -1
  15. package/dist/cjs/experimental/api/react-query.d.cts +1355 -1250
  16. package/dist/cjs/experimental/api/swr.cjs +660 -583
  17. package/dist/cjs/experimental/api/swr.cjs.map +1 -1
  18. package/dist/cjs/experimental/api/swr.d.cts +1307 -1212
  19. package/dist/cjs/index.cjs +5 -0
  20. package/dist/cjs/index.cjs.map +1 -1
  21. package/dist/cjs/index.d.cts +2 -0
  22. package/dist/cjs/lib/api-keys/api-keys-context.cjs +1 -1
  23. package/dist/cjs/lib/api-keys/api-keys-context.cjs.map +1 -1
  24. package/dist/cjs/lib/api-keys/api-keys-table.cjs +7 -5
  25. package/dist/cjs/lib/api-keys/api-keys-table.cjs.map +1 -1
  26. package/dist/cjs/lib/directory-sync.cjs +288 -0
  27. package/dist/cjs/lib/directory-sync.cjs.map +1 -0
  28. package/dist/cjs/lib/directory-sync.d.cts +72 -0
  29. package/dist/cjs/lib/identity-providers.cjs +57 -1
  30. package/dist/cjs/lib/identity-providers.cjs.map +1 -1
  31. package/dist/cjs/lib/identity-providers.d.cts +5 -3
  32. package/dist/cjs/lib/pipes.cjs +9 -9
  33. package/dist/cjs/lib/pipes.cjs.map +1 -1
  34. package/dist/cjs/lib/reset-mfa-dialog.cjs +2 -1
  35. package/dist/cjs/lib/reset-mfa-dialog.cjs.map +1 -1
  36. package/dist/cjs/lib/use-permissions.cjs.map +1 -1
  37. package/dist/cjs/lib/use-permissions.d.cts +1 -1
  38. package/dist/cjs/lib/users-management-context.cjs +1 -1
  39. package/dist/cjs/lib/users-management-context.cjs.map +1 -1
  40. package/dist/cjs/lib/users-management.cjs +3 -3
  41. package/dist/cjs/lib/users-management.cjs.map +1 -1
  42. package/dist/cjs/lib/utils.cjs +9 -0
  43. package/dist/cjs/lib/utils.cjs.map +1 -1
  44. package/dist/cjs/lib/utils.d.cts +16 -2
  45. package/dist/esm/api/api-provider.d.ts +1 -1
  46. package/dist/esm/api/api-provider.js.map +1 -1
  47. package/dist/esm/api/endpoint.d.ts +810 -729
  48. package/dist/esm/api/endpoint.js +691 -618
  49. package/dist/esm/api/endpoint.js.map +1 -1
  50. package/dist/esm/directory-sync.client.d.ts +26 -0
  51. package/dist/esm/directory-sync.client.js +121 -0
  52. package/dist/esm/directory-sync.client.js.map +1 -0
  53. package/dist/esm/experimental/api/fetch.d.ts +809 -731
  54. package/dist/esm/experimental/api/fetch.js +300 -247
  55. package/dist/esm/experimental/api/fetch.js.map +1 -1
  56. package/dist/esm/experimental/api/react-query.d.ts +1355 -1250
  57. package/dist/esm/experimental/api/react-query.js +683 -608
  58. package/dist/esm/experimental/api/react-query.js.map +1 -1
  59. package/dist/esm/experimental/api/swr.d.ts +1307 -1212
  60. package/dist/esm/experimental/api/swr.js +649 -578
  61. package/dist/esm/experimental/api/swr.js.map +1 -1
  62. package/dist/esm/index.d.ts +2 -0
  63. package/dist/esm/index.js +6 -0
  64. package/dist/esm/index.js.map +1 -1
  65. package/dist/esm/lib/api-keys/api-keys-context.js +1 -1
  66. package/dist/esm/lib/api-keys/api-keys-context.js.map +1 -1
  67. package/dist/esm/lib/api-keys/api-keys-table.js +7 -5
  68. package/dist/esm/lib/api-keys/api-keys-table.js.map +1 -1
  69. package/dist/esm/lib/directory-sync.d.ts +72 -0
  70. package/dist/esm/lib/directory-sync.js +259 -0
  71. package/dist/esm/lib/directory-sync.js.map +1 -0
  72. package/dist/esm/lib/identity-providers.d.ts +5 -3
  73. package/dist/esm/lib/identity-providers.js +55 -1
  74. package/dist/esm/lib/identity-providers.js.map +1 -1
  75. package/dist/esm/lib/pipes.js +9 -10
  76. package/dist/esm/lib/pipes.js.map +1 -1
  77. package/dist/esm/lib/reset-mfa-dialog.js +2 -1
  78. package/dist/esm/lib/reset-mfa-dialog.js.map +1 -1
  79. package/dist/esm/lib/use-permissions.d.ts +1 -1
  80. package/dist/esm/lib/use-permissions.js.map +1 -1
  81. package/dist/esm/lib/users-management-context.js +1 -1
  82. package/dist/esm/lib/users-management-context.js.map +1 -1
  83. package/dist/esm/lib/users-management.js +5 -4
  84. package/dist/esm/lib/users-management.js.map +1 -1
  85. package/dist/esm/lib/utils.d.ts +16 -2
  86. package/dist/esm/lib/utils.js +8 -0
  87. package/dist/esm/lib/utils.js.map +1 -1
  88. package/package.json +3 -3
@@ -1,5 +1,6 @@
1
- import { UseQueryOptions, DataTag, QueryKey, DefinedInitialDataOptions, QueryClient, DefinedUseQueryResult, UndefinedInitialDataOptions, UseQueryResult, UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
1
+ import { UseMutationOptions, QueryClient, UseMutationResult, UseQueryOptions, DataTag, QueryKey, DefinedInitialDataOptions, DefinedUseQueryResult, UndefinedInitialDataOptions, UseQueryResult } from '@tanstack/react-query';
2
2
 
3
+ type MemberStatus = (typeof MemberStatus)[keyof typeof MemberStatus];
3
4
  declare const MemberStatus: {
4
5
  readonly Active: "Active";
5
6
  readonly Invited: "Invited";
@@ -7,101 +8,107 @@ declare const MemberStatus: {
7
8
  readonly InviteRevoked: "InviteRevoked";
8
9
  readonly NoInvite: "NoInvite";
9
10
  };
10
- type MemberStatus = (typeof MemberStatus)[keyof typeof MemberStatus];
11
+ type MemberActionsItem = (typeof MemberActionsItem)[keyof typeof MemberActionsItem];
11
12
  declare const MemberActionsItem: {
12
13
  readonly "edit-role": "edit-role";
13
14
  readonly "resend-invite": "resend-invite";
14
15
  readonly "revoke-invite": "revoke-invite";
15
16
  readonly "revoke-membership": "revoke-membership";
16
17
  };
17
- type MemberActions = (typeof MemberActionsItem)[keyof typeof MemberActionsItem][];
18
- type MemberRolesItem = {
18
+ type MemberActions = MemberActionsItem[];
19
+ type MemberProfilePictureUrl = string | null;
20
+ type MemberFirstName = string | null;
21
+ type MemberLastName = string | null;
22
+ type MemberLastActivityAt = string | null;
23
+ type MemberIsLoggedInUser = true | null;
24
+ type MemberRolesOneOfItemDescription = string | null;
25
+ type MemberRolesOneOfItem = {
19
26
  name: string;
20
27
  slug: string;
21
- /** @nullable */
22
- description?: string | null;
28
+ description?: MemberRolesOneOfItemDescription;
23
29
  };
30
+ type MemberRoles = MemberRolesOneOfItem[] | null;
24
31
  interface Member {
25
32
  id: string;
26
33
  email: string;
27
34
  emailVerified: boolean;
28
- /** @nullable */
29
- profilePictureUrl?: string | null;
30
- /** @nullable */
31
- firstName?: string | null;
32
- /** @nullable */
33
- lastName?: string | null;
35
+ profilePictureUrl?: MemberProfilePictureUrl;
36
+ firstName?: MemberFirstName;
37
+ lastName?: MemberLastName;
38
+ /** An ISO 8601 timestamp. */
34
39
  createdAt: string;
35
- /** @nullable */
36
- lastActivityAt?: string | null;
40
+ lastActivityAt?: MemberLastActivityAt;
37
41
  status: MemberStatus;
38
42
  actions: MemberActions;
39
- /** @nullable */
40
- isLoggedInUser?: boolean | null;
41
- /** @nullable */
42
- roles?: MemberRolesItem[] | null;
43
+ isLoggedInUser?: MemberIsLoggedInUser;
44
+ roles?: MemberRoles;
43
45
  }
46
+ /**
47
+ * An object ID that defines your place in the list. When the ID is not present, you are at the start of the list.
48
+ */
49
+ type ListMetadataBefore = string | null;
50
+ /**
51
+ * An object ID that defines your place in the list. When the ID is not present, you are at the end of the list.
52
+ */
53
+ type ListMetadataAfter = string | null;
44
54
  interface ListMetadata {
45
- /** @nullable */
46
- before?: string | null;
47
- /** @nullable */
48
- after?: string | null;
55
+ /** An object ID that defines your place in the list. When the ID is not present, you are at the start of the list. */
56
+ before: ListMetadataBefore;
57
+ /** An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. */
58
+ after: ListMetadataAfter;
49
59
  }
60
+ type MemberRoleDescription = string | null;
50
61
  interface MemberRole {
51
62
  name: string;
52
63
  slug: string;
53
64
  default: boolean;
54
- /** @nullable */
55
- description?: string | null;
65
+ description?: MemberRoleDescription;
56
66
  }
57
67
  interface RolesAndConfigResponse {
58
68
  roles: MemberRole[];
59
69
  multipleRolesEnabled: boolean;
60
70
  }
71
+ type OrganizationInfoFavicon = string | null;
61
72
  interface OrganizationInfo {
62
73
  id: string;
63
74
  name: string;
64
75
  current: boolean;
65
- /** @nullable */
66
- favicon?: string | null;
76
+ favicon?: OrganizationInfoFavicon;
67
77
  }
68
78
  interface OrganizationsResponse {
69
79
  data: OrganizationInfo[];
70
80
  }
81
+ type OAuthProfileEmail = string | null;
82
+ type OAuthProfileFirstName = string | null;
83
+ type OAuthProfileLastName = string | null;
84
+ type OAuthProfileProfilePictureUrl = string | null;
85
+ type OAuthProfileLastLoginAt = string | null;
71
86
  interface OAuthProfile {
72
87
  id: string;
73
- /** @nullable */
74
- email?: string | null;
75
- /** @nullable */
76
- firstName?: string | null;
77
- /** @nullable */
78
- lastName?: string | null;
79
- /** @nullable */
80
- profilePictureUrl?: string | null;
81
- /** @nullable */
82
- lastLoginAt?: string | null;
88
+ email?: OAuthProfileEmail;
89
+ firstName?: OAuthProfileFirstName;
90
+ lastName?: OAuthProfileLastName;
91
+ profilePictureUrl?: OAuthProfileProfilePictureUrl;
92
+ lastLoginAt?: OAuthProfileLastLoginAt;
83
93
  }
84
- /**
85
- * @nullable
86
- */
87
- type MeOauthProfiles = {
94
+ type MeFirstName = string | null;
95
+ type MeLastName = string | null;
96
+ type MeLocale = string | null;
97
+ type MeProfilePictureUrl = string | null;
98
+ type MeOauthProfilesOneOf = {
88
99
  AppleOAuth?: OAuthProfile;
89
100
  GithubOAuth?: OAuthProfile;
90
101
  GoogleOAuth?: OAuthProfile;
91
102
  MicrosoftOAuth?: OAuthProfile;
92
- } | null;
103
+ };
104
+ type MeOauthProfiles = MeOauthProfilesOneOf | null;
93
105
  interface Me {
94
106
  id: string;
95
107
  email: string;
96
- /** @nullable */
97
- firstName?: string | null;
98
- /** @nullable */
99
- lastName?: string | null;
100
- /** @nullable */
101
- locale?: string | null;
102
- /** @nullable */
103
- profilePictureUrl?: string | null;
104
- /** @nullable */
108
+ firstName?: MeFirstName;
109
+ lastName?: MeLastName;
110
+ locale?: MeLocale;
111
+ profilePictureUrl?: MeProfilePictureUrl;
105
112
  oauthProfiles?: MeOauthProfiles;
106
113
  }
107
114
  type CreateTotpFactorResponseAuthenticationFactorAllOfObject = (typeof CreateTotpFactorResponseAuthenticationFactorAllOfObject)[keyof typeof CreateTotpFactorResponseAuthenticationFactorAllOfObject];
@@ -115,63 +122,54 @@ declare const CreateTotpFactorResponseAuthenticationFactorAllOfType: {
115
122
  readonly totp: "totp";
116
123
  readonly webauthn: "webauthn";
117
124
  };
118
- /**
119
- * @nullable
120
- */
121
- type CreateTotpFactorResponseAuthenticationFactorAllOfSms = {
125
+ type CreateTotpFactorResponseAuthenticationFactorAllOfUserId = string | null;
126
+ type CreateTotpFactorResponseAuthenticationFactorAllOfSmsOneOf = {
122
127
  phone_number: string;
123
- } | null;
124
- /**
125
- * @nullable
126
- */
128
+ };
129
+ type CreateTotpFactorResponseAuthenticationFactorAllOfSms = CreateTotpFactorResponseAuthenticationFactorAllOfSmsOneOf | null;
127
130
  type CreateTotpFactorResponseAuthenticationFactorAllOfTotpAnyOf = {
128
131
  issuer: string;
129
132
  user: string;
130
133
  secret: string;
131
134
  qr_code: string;
132
135
  uri: string;
133
- } | null;
134
- /**
135
- * @nullable
136
- */
136
+ };
137
137
  type CreateTotpFactorResponseAuthenticationFactorAllOfTotpAnyOfTwo = {
138
138
  issuer: string;
139
139
  user: string;
140
- } | null;
141
- type CreateTotpFactorResponseAuthenticationFactorAllOfTotp = CreateTotpFactorResponseAuthenticationFactorAllOfTotpAnyOf | CreateTotpFactorResponseAuthenticationFactorAllOfTotpAnyOfTwo;
140
+ };
141
+ type CreateTotpFactorResponseAuthenticationFactorAllOfTotp = CreateTotpFactorResponseAuthenticationFactorAllOfTotpAnyOf | CreateTotpFactorResponseAuthenticationFactorAllOfTotpAnyOfTwo | null;
142
142
  type CreateTotpFactorResponseAuthenticationFactorAllOf = {
143
143
  object: CreateTotpFactorResponseAuthenticationFactorAllOfObject;
144
144
  id: string;
145
145
  type: CreateTotpFactorResponseAuthenticationFactorAllOfType;
146
- /** @nullable */
147
- user_id?: string | null;
148
- /** @nullable */
146
+ user_id?: CreateTotpFactorResponseAuthenticationFactorAllOfUserId;
149
147
  sms?: CreateTotpFactorResponseAuthenticationFactorAllOfSms;
150
148
  totp?: CreateTotpFactorResponseAuthenticationFactorAllOfTotp;
151
149
  };
152
- type CreateTotpFactorResponseAuthenticationFactorAllOfEight = {
150
+ type CreateTotpFactorResponseAuthenticationFactorAllOfOnezero = {
153
151
  created_at: string;
154
152
  updated_at: string;
155
153
  };
156
- type CreateTotpFactorResponseAuthenticationFactor = CreateTotpFactorResponseAuthenticationFactorAllOf & CreateTotpFactorResponseAuthenticationFactorAllOfEight;
154
+ type CreateTotpFactorResponseAuthenticationFactor = CreateTotpFactorResponseAuthenticationFactorAllOf & CreateTotpFactorResponseAuthenticationFactorAllOfOnezero;
157
155
  type CreateTotpFactorResponseAuthenticationChallengeAllOfObject = (typeof CreateTotpFactorResponseAuthenticationChallengeAllOfObject)[keyof typeof CreateTotpFactorResponseAuthenticationChallengeAllOfObject];
158
156
  declare const CreateTotpFactorResponseAuthenticationChallengeAllOfObject: {
159
157
  readonly authentication_challenge: "authentication_challenge";
160
158
  };
159
+ type CreateTotpFactorResponseAuthenticationChallengeAllOfExpiresAt = string | null;
160
+ type CreateTotpFactorResponseAuthenticationChallengeAllOfCode = string | null;
161
161
  type CreateTotpFactorResponseAuthenticationChallengeAllOf = {
162
162
  object: CreateTotpFactorResponseAuthenticationChallengeAllOfObject;
163
163
  id: string;
164
- /** @nullable */
165
- expires_at?: string | null;
166
- /** @nullable */
167
- code?: string | null;
164
+ expires_at?: CreateTotpFactorResponseAuthenticationChallengeAllOfExpiresAt;
165
+ code?: CreateTotpFactorResponseAuthenticationChallengeAllOfCode;
168
166
  authentication_factor_id: string;
169
167
  };
170
- type CreateTotpFactorResponseAuthenticationChallengeAllOfThree = {
168
+ type CreateTotpFactorResponseAuthenticationChallengeAllOfFive = {
171
169
  created_at: string;
172
170
  updated_at: string;
173
171
  };
174
- type CreateTotpFactorResponseAuthenticationChallenge = CreateTotpFactorResponseAuthenticationChallengeAllOf & CreateTotpFactorResponseAuthenticationChallengeAllOfThree;
172
+ type CreateTotpFactorResponseAuthenticationChallenge = CreateTotpFactorResponseAuthenticationChallengeAllOf & CreateTotpFactorResponseAuthenticationChallengeAllOfFive;
175
173
  interface CreateTotpFactorResponse {
176
174
  authenticationFactor: CreateTotpFactorResponseAuthenticationFactor;
177
175
  authenticationChallenge: CreateTotpFactorResponseAuthenticationChallenge;
@@ -180,57 +178,48 @@ interface VerifyTotpFactorRequest {
180
178
  code: string;
181
179
  authenticationChallengeId: string;
182
180
  }
183
- type AuthenticationInformationResponseDataVerificationMethodsMfaProvider = (typeof AuthenticationInformationResponseDataVerificationMethodsMfaProvider)[keyof typeof AuthenticationInformationResponseDataVerificationMethodsMfaProvider];
184
- declare const AuthenticationInformationResponseDataVerificationMethodsMfaProvider: {
181
+ type AuthenticationInformationResponseDataVerificationMethodsMfaOneOfProvider = (typeof AuthenticationInformationResponseDataVerificationMethodsMfaOneOfProvider)[keyof typeof AuthenticationInformationResponseDataVerificationMethodsMfaOneOfProvider];
182
+ declare const AuthenticationInformationResponseDataVerificationMethodsMfaOneOfProvider: {
185
183
  readonly MFA: "MFA";
186
184
  };
187
- /**
188
- * @nullable
189
- */
190
- type AuthenticationInformationResponseDataVerificationMethodsMfa = {
191
- provider: AuthenticationInformationResponseDataVerificationMethodsMfaProvider;
185
+ type AuthenticationInformationResponseDataVerificationMethodsMfaOneOfLastUsed = string | null;
186
+ type AuthenticationInformationResponseDataVerificationMethodsMfaOneOf = {
187
+ provider: AuthenticationInformationResponseDataVerificationMethodsMfaOneOfProvider;
192
188
  isSetUp: boolean;
193
- /** @nullable */
194
- lastUsed?: string | null;
195
- } | null;
196
- type AuthenticationInformationResponseDataVerificationMethodsPasswordProvider = (typeof AuthenticationInformationResponseDataVerificationMethodsPasswordProvider)[keyof typeof AuthenticationInformationResponseDataVerificationMethodsPasswordProvider];
197
- declare const AuthenticationInformationResponseDataVerificationMethodsPasswordProvider: {
189
+ lastUsed?: AuthenticationInformationResponseDataVerificationMethodsMfaOneOfLastUsed;
190
+ };
191
+ type AuthenticationInformationResponseDataVerificationMethodsMfa = AuthenticationInformationResponseDataVerificationMethodsMfaOneOf | null;
192
+ type AuthenticationInformationResponseDataVerificationMethodsPasswordOneOfProvider = (typeof AuthenticationInformationResponseDataVerificationMethodsPasswordOneOfProvider)[keyof typeof AuthenticationInformationResponseDataVerificationMethodsPasswordOneOfProvider];
193
+ declare const AuthenticationInformationResponseDataVerificationMethodsPasswordOneOfProvider: {
198
194
  readonly Password: "Password";
199
195
  };
200
- /**
201
- * @nullable
202
- */
203
- type AuthenticationInformationResponseDataVerificationMethodsPassword = {
204
- provider: AuthenticationInformationResponseDataVerificationMethodsPasswordProvider;
196
+ type AuthenticationInformationResponseDataVerificationMethodsPasswordOneOfLastUsed = string | null;
197
+ type AuthenticationInformationResponseDataVerificationMethodsPasswordOneOf = {
198
+ provider: AuthenticationInformationResponseDataVerificationMethodsPasswordOneOfProvider;
205
199
  isSetUp: boolean;
206
- /** @nullable */
207
- lastUsed?: string | null;
200
+ lastUsed?: AuthenticationInformationResponseDataVerificationMethodsPasswordOneOfLastUsed;
208
201
  isCurrentSession: boolean;
209
- } | null;
210
- type AuthenticationInformationResponseDataVerificationMethodsPasskeyProvider = (typeof AuthenticationInformationResponseDataVerificationMethodsPasskeyProvider)[keyof typeof AuthenticationInformationResponseDataVerificationMethodsPasskeyProvider];
211
- declare const AuthenticationInformationResponseDataVerificationMethodsPasskeyProvider: {
202
+ };
203
+ type AuthenticationInformationResponseDataVerificationMethodsPassword = AuthenticationInformationResponseDataVerificationMethodsPasswordOneOf | null;
204
+ type AuthenticationInformationResponseDataVerificationMethodsPasskeyOneOfProvider = (typeof AuthenticationInformationResponseDataVerificationMethodsPasskeyOneOfProvider)[keyof typeof AuthenticationInformationResponseDataVerificationMethodsPasskeyOneOfProvider];
205
+ declare const AuthenticationInformationResponseDataVerificationMethodsPasskeyOneOfProvider: {
212
206
  readonly Passkey: "Passkey";
213
207
  };
214
- type AuthenticationInformationResponseDataVerificationMethodsPasskeyPassKeysItem = {
208
+ type AuthenticationInformationResponseDataVerificationMethodsPasskeyOneOfLastUsed = string | null;
209
+ type AuthenticationInformationResponseDataVerificationMethodsPasskeyOneOfPassKeysItem = {
215
210
  id: string;
216
211
  };
217
- /**
218
- * @nullable
219
- */
220
- type AuthenticationInformationResponseDataVerificationMethodsPasskey = {
221
- provider: AuthenticationInformationResponseDataVerificationMethodsPasskeyProvider;
212
+ type AuthenticationInformationResponseDataVerificationMethodsPasskeyOneOf = {
213
+ provider: AuthenticationInformationResponseDataVerificationMethodsPasskeyOneOfProvider;
222
214
  isSetUp: boolean;
223
- /** @nullable */
224
- lastUsed?: string | null;
225
- passKeys: AuthenticationInformationResponseDataVerificationMethodsPasskeyPassKeysItem[];
215
+ lastUsed?: AuthenticationInformationResponseDataVerificationMethodsPasskeyOneOfLastUsed;
216
+ passKeys: AuthenticationInformationResponseDataVerificationMethodsPasskeyOneOfPassKeysItem[];
226
217
  isCurrentSession: boolean;
227
- } | null;
218
+ };
219
+ type AuthenticationInformationResponseDataVerificationMethodsPasskey = AuthenticationInformationResponseDataVerificationMethodsPasskeyOneOf | null;
228
220
  type AuthenticationInformationResponseDataVerificationMethods = {
229
- /** @nullable */
230
221
  Mfa?: AuthenticationInformationResponseDataVerificationMethodsMfa;
231
- /** @nullable */
232
222
  Password?: AuthenticationInformationResponseDataVerificationMethodsPassword;
233
- /** @nullable */
234
223
  Passkey?: AuthenticationInformationResponseDataVerificationMethodsPasskey;
235
224
  };
236
225
  type AuthenticationInformationResponseDataPasswordSettings = {
@@ -258,29 +247,30 @@ interface UpdatePasswordRequest {
258
247
  interface RevokeAllSessionsRequest {
259
248
  currentSessionId: string;
260
249
  }
250
+ type ActiveSessionIpAddress = string | null;
251
+ type ActiveSessionUserAgent = string | null;
252
+ type ActiveSessionOrganizationId = string | null;
253
+ type ActiveSessionStateExpiresAt = string | null;
261
254
  type ActiveSessionState = {
262
255
  tag: string;
263
- /** @nullable */
264
- expiresAt?: string | null;
256
+ expiresAt?: ActiveSessionStateExpiresAt;
265
257
  };
266
- /**
267
- * @nullable
268
- */
269
- type ActiveSessionCurrentLocation = {
258
+ type ActiveSessionCurrentLocationOneOf = {
270
259
  cityName: string;
271
260
  countryISOCode: string;
272
- } | null;
261
+ };
262
+ type ActiveSessionCurrentLocation = ActiveSessionCurrentLocationOneOf | null;
263
+ type ActiveSessionImpersonatorUserId = string | null;
264
+ type ActiveSessionImpersonatorEmail = string | null;
265
+ type ActiveSessionImpersonationReason = string | null;
266
+ type ActiveSessionLastActivityAt = string | null;
273
267
  interface ActiveSession {
274
268
  id: string;
275
269
  userlandUserId: string;
276
- /** @nullable */
277
- ipAddress?: string | null;
278
- /** @nullable */
279
- userAgent?: string | null;
280
- /** @nullable */
281
- organizationId?: string | null;
270
+ ipAddress?: ActiveSessionIpAddress;
271
+ userAgent?: ActiveSessionUserAgent;
272
+ organizationId?: ActiveSessionOrganizationId;
282
273
  state: ActiveSessionState;
283
- /** @nullable */
284
274
  currentLocation?: ActiveSessionCurrentLocation;
285
275
  usedSsoAuth: boolean;
286
276
  usedPasswordAuth: boolean;
@@ -296,14 +286,10 @@ interface ActiveSession {
296
286
  usedSlackOauth: boolean;
297
287
  usedXeroOauth: boolean;
298
288
  usedMagicAuth: boolean;
299
- /** @nullable */
300
- impersonatorUserId?: string | null;
301
- /** @nullable */
302
- impersonatorEmail?: string | null;
303
- /** @nullable */
304
- impersonationReason?: string | null;
305
- /** @nullable */
306
- lastActivityAt?: string | null;
289
+ impersonatorUserId?: ActiveSessionImpersonatorUserId;
290
+ impersonatorEmail?: ActiveSessionImpersonatorEmail;
291
+ impersonationReason?: ActiveSessionImpersonationReason;
292
+ lastActivityAt?: ActiveSessionLastActivityAt;
307
293
  createdAt: string;
308
294
  updatedAt: string;
309
295
  }
@@ -344,17 +330,17 @@ type SettingsResponseObject = (typeof SettingsResponseObject)[keyof typeof Setti
344
330
  declare const SettingsResponseObject: {
345
331
  readonly settings: "settings";
346
332
  };
333
+ type SettingsResponseLogoDarkIconPath = string | null;
334
+ type SettingsResponseLogoDarkPath = string | null;
335
+ type SettingsResponseLogoLightIconPath = string | null;
336
+ type SettingsResponseLogoLightPath = string | null;
347
337
  interface SettingsResponse {
348
338
  object: SettingsResponseObject;
349
339
  authkitOrigin: string;
350
- /** @nullable */
351
- logoDarkIconPath?: string | null;
352
- /** @nullable */
353
- logoDarkPath?: string | null;
354
- /** @nullable */
355
- logoLightIconPath?: string | null;
356
- /** @nullable */
357
- logoLightPath?: string | null;
340
+ logoDarkIconPath?: SettingsResponseLogoDarkIconPath;
341
+ logoDarkPath?: SettingsResponseLogoDarkPath;
342
+ logoLightIconPath?: SettingsResponseLogoLightIconPath;
343
+ logoLightPath?: SettingsResponseLogoLightPath;
358
344
  teamName: string;
359
345
  }
360
346
  type OrganizationDomainState = (typeof OrganizationDomainState)[keyof typeof OrganizationDomainState];
@@ -372,28 +358,28 @@ declare const DomainVerificationNameServer: {
372
358
  readonly GoDaddy: "GoDaddy";
373
359
  readonly Other: "Other";
374
360
  };
361
+ type OrganizationDomainVerificationPrefix = string | null;
362
+ type OrganizationDomainVerificationToken = string | null;
363
+ type OrganizationDomainSubdomain = string | null;
375
364
  interface OrganizationDomain {
376
365
  id: string;
377
366
  domain: string;
378
367
  state: OrganizationDomainState;
379
368
  nameServer: DomainVerificationNameServer;
380
- /** @nullable */
381
- verificationPrefix?: string | null;
382
- /** @nullable */
383
- verificationToken?: string | null;
384
- /** @nullable */
385
- subdomain?: string | null;
369
+ verificationPrefix?: OrganizationDomainVerificationPrefix;
370
+ verificationToken?: OrganizationDomainVerificationToken;
371
+ subdomain?: OrganizationDomainSubdomain;
386
372
  createdAt: string;
387
373
  }
374
+ type X509CertificateJSONNotBefore = string | null;
375
+ type X509CertificateJSONNotAfter = string | null;
376
+ type X509CertificateJSONLastExpiryEventSentAt = string | null;
388
377
  interface X509CertificateJSON {
389
378
  id: string;
390
379
  value: string;
391
- /** @nullable */
392
- notBefore?: string | null;
393
- /** @nullable */
394
- notAfter?: string | null;
395
- /** @nullable */
396
- lastExpiryEventSentAt?: string | null;
380
+ notBefore?: X509CertificateJSONNotBefore;
381
+ notAfter?: X509CertificateJSONNotAfter;
382
+ lastExpiryEventSentAt?: X509CertificateJSONLastExpiryEventSentAt;
397
383
  }
398
384
  type SamlSessionState = (typeof SamlSessionState)[keyof typeof SamlSessionState];
399
385
  declare const SamlSessionState: {
@@ -520,13 +506,13 @@ type SsoConnectionAnyOfEightAllOfSix = {
520
506
  };
521
507
  type SsoConnectionAnyOfEight = SsoConnectionAnyOfEightAllOf & SsoConnectionAnyOfEightAllOfSix;
522
508
  type SsoConnection = SsoConnectionAnyOf | SsoConnectionAnyOfEight;
509
+ type ListOrganizationApiKeysResponseDataLastUsedAt = string | null;
523
510
  interface ListOrganizationApiKeysResponseData {
524
511
  id: string;
525
512
  name: string;
526
513
  obfuscatedValue: string;
527
514
  createdAt: string;
528
- /** @nullable */
529
- lastUsedAt?: string | null;
515
+ lastUsedAt?: ListOrganizationApiKeysResponseDataLastUsedAt;
530
516
  permissions: string[];
531
517
  }
532
518
  type ListOrganizationApiKeysResponseListMetadata = {
@@ -535,7 +521,7 @@ type ListOrganizationApiKeysResponseListMetadata = {
535
521
  };
536
522
  interface ListOrganizationApiKeysResponse {
537
523
  data: ListOrganizationApiKeysResponseData[];
538
- listMetadata: ListOrganizationApiKeysResponseListMetadata;
524
+ list_metadata: ListOrganizationApiKeysResponseListMetadata;
539
525
  }
540
526
  interface CreateOrganizationApiKeyRequest {
541
527
  name: string;
@@ -549,12 +535,12 @@ interface CreateOrganizationApiKeyResponse {
549
535
  name: string;
550
536
  permissions: string[];
551
537
  }
538
+ type ListOrganizationApiKeyPermissionDescription = string | null;
552
539
  interface ListOrganizationApiKeyPermission {
553
540
  id: string;
554
541
  slug: string;
555
542
  name: string;
556
- /** @nullable */
557
- description?: string | null;
543
+ description?: ListOrganizationApiKeyPermissionDescription;
558
544
  }
559
545
  type ListOrganizationApiKeyPermissionsResponseListMetadata = {
560
546
  before?: string;
@@ -562,32 +548,42 @@ type ListOrganizationApiKeyPermissionsResponseListMetadata = {
562
548
  };
563
549
  interface ListOrganizationApiKeyPermissionsResponse {
564
550
  data: ListOrganizationApiKeyPermission[];
565
- listMetadata: ListOrganizationApiKeyPermissionsResponseListMetadata;
551
+ list_metadata: ListOrganizationApiKeyPermissionsResponseListMetadata;
566
552
  }
567
- declare const DataInstallationObject: {
553
+ declare const DataInstallationAllOfObject: {
568
554
  readonly data_installation: "data_installation";
569
555
  readonly connected_account: "connected_account";
570
556
  };
571
- declare const DataInstallationState: {
557
+ type DataInstallationAllOfUserId = string | null;
558
+ type DataInstallationAllOfOrganizationId = string | null;
559
+ declare const DataInstallationAllOfState: {
572
560
  readonly connected: "connected";
573
561
  readonly needs_reauthorization: "needs_reauthorization";
574
562
  };
575
- interface DataInstallation {
576
- object: (typeof DataInstallationObject)[keyof typeof DataInstallationObject];
563
+ type DataInstallationAllOf = {
564
+ object: (typeof DataInstallationAllOfObject)[keyof typeof DataInstallationAllOfObject];
577
565
  id: string;
578
- /** @nullable */
579
- userlandUserId?: string | null;
580
- /** @nullable */
581
- organizationId?: string | null;
566
+ user_id?: DataInstallationAllOfUserId;
567
+ organization_id?: DataInstallationAllOfOrganizationId;
582
568
  scopes: string[];
583
- state: (typeof DataInstallationState)[keyof typeof DataInstallationState];
584
- createdAt: string;
585
- updatedAt: string;
586
- }
569
+ state: (typeof DataInstallationAllOfState)[keyof typeof DataInstallationAllOfState];
570
+ created_at: string;
571
+ updated_at: string;
572
+ };
573
+ type DataInstallationAllOfSixUserlandUserId = string | null;
574
+ type DataInstallationAllOfSixOrganizationId = string | null;
575
+ type DataInstallationAllOfSix = {
576
+ userlandUserId?: DataInstallationAllOfSixUserlandUserId;
577
+ organizationId?: DataInstallationAllOfSixOrganizationId;
578
+ createdAt?: string;
579
+ updatedAt?: string;
580
+ };
581
+ type DataInstallation = DataInstallationAllOf & DataInstallationAllOfSix;
587
582
  type DataIntegrationObject = (typeof DataIntegrationObject)[keyof typeof DataIntegrationObject];
588
583
  declare const DataIntegrationObject: {
589
584
  readonly data_integration: "data_integration";
590
585
  };
586
+ type DataIntegrationDescription = string | null;
591
587
  declare const DataIntegrationIntegrationType: {
592
588
  readonly asana: "asana";
593
589
  readonly box: "box";
@@ -635,19 +631,18 @@ declare const DataIntegrationCredentialsType: {
635
631
  readonly shared: "shared";
636
632
  readonly custom: "custom";
637
633
  };
634
+ type DataIntegrationScopes = string[] | null;
638
635
  type DataIntegrationInstallation = DataInstallation | null;
639
636
  interface DataIntegration {
640
637
  object: DataIntegrationObject;
641
638
  id: string;
642
639
  name: string;
643
- /** @nullable */
644
- description?: string | null;
640
+ description?: DataIntegrationDescription;
645
641
  slug: string;
646
642
  integrationType: (typeof DataIntegrationIntegrationType)[keyof typeof DataIntegrationIntegrationType];
647
643
  ownership: (typeof DataIntegrationOwnership)[keyof typeof DataIntegrationOwnership];
648
644
  credentialsType: (typeof DataIntegrationCredentialsType)[keyof typeof DataIntegrationCredentialsType];
649
- /** @nullable */
650
- scopes?: string[] | null;
645
+ scopes?: DataIntegrationScopes;
651
646
  createdAt: string;
652
647
  updatedAt: string;
653
648
  installation?: DataIntegrationInstallation;
@@ -666,41 +661,151 @@ type GetDataIntegrationAuthorizeUrlResponse = GetDataIntegrationAuthorizeUrlResp
666
661
  interface GetAuthorizationStatusResponse {
667
662
  isConnecting: boolean;
668
663
  }
669
- type MembersParams = {
664
+ type DirectoryType = (typeof DirectoryType)[keyof typeof DirectoryType];
665
+ declare const DirectoryType: {
666
+ readonly azure_scim_v20: "azure scim v2.0";
667
+ readonly bamboohr: "bamboohr";
668
+ readonly breathe_hr: "breathe hr";
669
+ readonly cezanne_hr: "cezanne hr";
670
+ readonly cyberark_scim_v20: "cyberark scim v2.0";
671
+ readonly fourth_hr: "fourth hr";
672
+ readonly generic_scim_v20: "generic scim v2.0";
673
+ readonly gsuite_directory: "gsuite directory";
674
+ readonly gusto: "gusto";
675
+ readonly hibob: "hibob";
676
+ readonly jump_cloud_scim_v20: "jump cloud scim v2.0";
677
+ readonly okta_scim_v20: "okta scim v2.0";
678
+ readonly onelogin_scim_v20: "onelogin scim v2.0";
679
+ readonly people_hr: "people hr";
680
+ readonly personio: "personio";
681
+ readonly pingfederate_scim_v20: "pingfederate scim v2.0";
682
+ readonly rippling: "rippling";
683
+ readonly rippling_scim_v20: "rippling scim v2.0";
684
+ readonly s3: "s3";
685
+ readonly sailpoint_scim_v20: "sailpoint scim v2.0";
686
+ readonly sftp: "sftp";
687
+ readonly sftp_workday: "sftp workday";
688
+ readonly workday: "workday";
689
+ };
690
+ type DirectoryState = (typeof DirectoryState)[keyof typeof DirectoryState];
691
+ declare const DirectoryState: {
692
+ readonly requires_type: "requires_type";
693
+ readonly linked: "linked";
694
+ readonly validating: "validating";
695
+ readonly invalid_credentials: "invalid_credentials";
696
+ readonly unlinked: "unlinked";
697
+ readonly deleting: "deleting";
698
+ };
699
+ interface DirectoryUsersMetadata {
700
+ active: number;
701
+ inactive: number;
702
+ }
703
+ interface DirectoryMetadata {
704
+ users: DirectoryUsersMetadata;
705
+ groups: number;
706
+ }
707
+ interface Directory {
708
+ id: string;
709
+ name: string;
710
+ type: DirectoryType;
711
+ state: DirectoryState;
712
+ createdAt: string;
713
+ updatedAt: string;
714
+ metadata: DirectoryMetadata;
715
+ }
716
+ interface DirectoriesResponse {
717
+ data: Directory[];
718
+ link: string;
719
+ }
720
+ type CreateOrganizationApiKey400 = {
721
+ message: string;
722
+ };
723
+ type CreateOrganizationApiKey403 = {
724
+ message: string;
725
+ };
726
+ type CreateOrganizationApiKey404 = {
727
+ message: string;
728
+ };
729
+ type CreateOrganizationApiKey422ErrorsItem = {
730
+ code: string;
731
+ field: string;
732
+ };
733
+ type CreateOrganizationApiKey422 = {
734
+ message: string;
735
+ errors: CreateOrganizationApiKey422ErrorsItem[];
736
+ };
737
+ type ListOrganizationApiKeysParams = {
738
+ limit?: number;
739
+ before?: string;
740
+ after?: string;
670
741
  search?: string;
671
- limit?: string;
742
+ };
743
+ type ListOrganizationApiKeys400 = {
744
+ message: string;
745
+ };
746
+ type ListOrganizationApiKeys403 = {
747
+ message: string;
748
+ };
749
+ type ListOrganizationApiKeyPermissionsParams = {
750
+ search?: string;
751
+ limit?: number;
672
752
  before?: string;
673
753
  after?: string;
674
- role?: string;
675
754
  };
676
- type Members200 = {
677
- data: Member[];
678
- listMetadata: ListMetadata;
755
+ type ListOrganizationApiKeyPermissions400 = {
756
+ message: string;
679
757
  };
680
- type Members403 = {
758
+ type ListOrganizationApiKeyPermissions403 = {
681
759
  message: string;
682
760
  };
683
- type Members404 = {
761
+ type DeleteOrganizationApiKey200 = {
762
+ success: boolean;
763
+ };
764
+ type DeleteOrganizationApiKey403 = {
684
765
  message: string;
685
766
  };
686
- type Roles403 = {
767
+ type DeleteOrganizationApiKey404 = {
687
768
  message: string;
688
769
  };
689
- type Roles404 = {
770
+ type DeleteDataInstallation200 = {
771
+ success: boolean;
772
+ };
773
+ type DeleteDataInstallation403 = {
690
774
  message: string;
691
775
  };
692
- type RolesAndConfig403 = {
776
+ type DeleteDataInstallation404 = {
693
777
  message: string;
694
778
  };
695
- type RolesAndConfig404 = {
779
+ type MyDataIntegrations403 = {
780
+ message: string;
781
+ };
782
+ type GetDataInstallationAuthorizationStatus400 = {
783
+ message: string;
784
+ };
785
+ type GetDataInstallationAuthorizationStatus403 = {
786
+ message: string;
787
+ };
788
+ type GetDataInstallationAuthorizationStatus404 = {
789
+ message: string;
790
+ };
791
+ type GetDataIntegrationAuthorizeUrlParams = {
792
+ requireHandoff?: boolean;
793
+ };
794
+ type GetDataIntegrationAuthorizeUrl400 = {
795
+ message: string;
796
+ };
797
+ type GetDataIntegrationAuthorizeUrl403 = {
696
798
  message: string;
697
799
  };
800
+ type GetDataIntegrationAuthorizeUrl404 = {
801
+ message: string;
802
+ };
803
+ type InviteMemberBodyFirstName = string | null;
804
+ type InviteMemberBodyLastName = string | null;
698
805
  type InviteMemberBody = {
699
806
  email: string;
700
- /** @nullable */
701
- firstName?: string | null;
702
- /** @nullable */
703
- lastName?: string | null;
807
+ firstName?: InviteMemberBodyFirstName;
808
+ lastName?: InviteMemberBodyLastName;
704
809
  roles: string[];
705
810
  };
706
811
  type InviteMember201 = {
@@ -715,9 +820,22 @@ type InviteMember403 = {
715
820
  type InviteMember404 = {
716
821
  message: string;
717
822
  };
823
+ type RevokeInvite200 = {
824
+ id: string;
825
+ success: boolean;
826
+ };
827
+ type RevokeInvite400 = {
828
+ message: string;
829
+ };
830
+ type RevokeInvite403 = {
831
+ message: string;
832
+ };
833
+ type RevokeInvite404 = {
834
+ message: string;
835
+ };
836
+ type ResendInvite201Id = string | null;
718
837
  type ResendInvite201 = {
719
- /** @nullable */
720
- id?: string | null;
838
+ id?: ResendInvite201Id;
721
839
  success: boolean;
722
840
  };
723
841
  type ResendInvite400 = {
@@ -732,17 +850,21 @@ type ResendInvite404 = {
732
850
  type ResendInvite422 = {
733
851
  message: string;
734
852
  };
735
- type RevokeInvite200 = {
736
- id: string;
737
- success: boolean;
853
+ type MembersParams = {
854
+ search?: string;
855
+ limit?: string;
856
+ before?: string;
857
+ after?: string;
858
+ role?: string;
738
859
  };
739
- type RevokeInvite400 = {
740
- message: string;
860
+ type Members200 = {
861
+ data: Member[];
862
+ list_metadata: ListMetadata;
741
863
  };
742
- type RevokeInvite403 = {
864
+ type Members403 = {
743
865
  message: string;
744
866
  };
745
- type RevokeInvite404 = {
867
+ type Members404 = {
746
868
  message: string;
747
869
  };
748
870
  type RemoveMember200 = {
@@ -783,84 +905,72 @@ type Organizations403 = {
783
905
  type Organizations404 = {
784
906
  message: string;
785
907
  };
786
- type Me403 = {
908
+ type Roles403 = {
787
909
  message: string;
788
910
  };
789
- type UpdateMeBody = {
790
- firstName?: string;
791
- lastName?: string;
792
- locale?: string;
793
- };
794
- type UpdateMe400 = {
911
+ type Roles404 = {
795
912
  message: string;
796
913
  };
797
- type UpdateMe403 = {
914
+ type RolesAndConfig403 = {
798
915
  message: string;
799
916
  };
800
- type CreateTotpFactor400 = {
917
+ type RolesAndConfig404 = {
801
918
  message: string;
802
919
  };
803
- type CreateTotpFactor403 = {
920
+ type AuthenticationInformation403 = {
804
921
  message: string;
805
922
  };
806
- type VerifyTotpFactor200 = {
923
+ type CreatePassword201 = {
807
924
  success: boolean;
808
925
  };
809
- type VerifyTotpFactor400 = {
926
+ type CreatePassword400 = {
810
927
  message: string;
811
928
  };
812
- type VerifyTotpFactor403 = {
929
+ type CreatePassword403 = {
813
930
  message: string;
814
931
  };
815
- type DeleteTotpFactors200 = {
816
- success: boolean;
817
- };
818
- type DeleteTotpFactors400 = {
932
+ type CreateTotpFactor400 = {
819
933
  message: string;
820
934
  };
821
- type DeleteTotpFactors403 = {
935
+ type CreateTotpFactor403 = {
822
936
  message: string;
823
937
  };
824
- type AuthenticationInformation403 = {
938
+ type Me403 = {
825
939
  message: string;
826
940
  };
827
- type CreatePassword201 = {
828
- success: boolean;
941
+ type UpdateMeBody = {
942
+ firstName?: string;
943
+ lastName?: string;
944
+ locale?: string;
829
945
  };
830
- type CreatePassword400 = {
946
+ type UpdateMe400 = {
831
947
  message: string;
832
948
  };
833
- type CreatePassword403 = {
949
+ type UpdateMe403 = {
834
950
  message: string;
835
951
  };
836
- type UpdatePassword201 = {
837
- success: boolean;
838
- };
839
- type UpdatePassword400 = {
952
+ type RegisterPasskey400 = {
840
953
  message: string;
841
954
  };
842
- type UpdatePassword403 = {
955
+ type RegisterPasskey403 = {
843
956
  message: string;
844
957
  };
845
- type RevokeAllSessions200 = {
958
+ type VerifyPasskey200 = {
846
959
  success: boolean;
847
960
  };
848
- type RevokeAllSessions400 = {
961
+ type VerifyPasskey400 = {
849
962
  message: string;
850
963
  };
851
- type RevokeAllSessions403 = {
964
+ type VerifyPasskey403 = {
852
965
  message: string;
853
966
  };
854
- type RevokeSession200 = {
967
+ type DeletePasskey200 = {
855
968
  success: boolean;
856
969
  };
857
- type RevokeSession400 = {
858
- message: string;
859
- };
860
- type RevokeSession403 = {
970
+ type DeletePasskey400 = {
861
971
  message: string;
862
972
  };
863
- type Sessions403 = {
973
+ type DeletePasskey403 = {
864
974
  message: string;
865
975
  };
866
976
  type SendVerification400 = {
@@ -869,53 +979,65 @@ type SendVerification400 = {
869
979
  type SendVerification403 = {
870
980
  message: string;
871
981
  };
872
- type Verify400 = {
982
+ type Sessions403 = {
873
983
  message: string;
874
984
  };
875
- type Verify403 = {
876
- message: string;
985
+ type RevokeAllSessions200 = {
986
+ success: boolean;
877
987
  };
878
- type RegisterPasskey400 = {
988
+ type RevokeAllSessions400 = {
879
989
  message: string;
880
990
  };
881
- type RegisterPasskey403 = {
991
+ type RevokeAllSessions403 = {
882
992
  message: string;
883
993
  };
884
- type VerifyPasskey200 = {
994
+ type RevokeSession200 = {
885
995
  success: boolean;
886
996
  };
887
- type VerifyPasskey400 = {
997
+ type RevokeSession400 = {
888
998
  message: string;
889
999
  };
890
- type VerifyPasskey403 = {
1000
+ type RevokeSession403 = {
891
1001
  message: string;
892
1002
  };
893
- type DeletePasskey200 = {
1003
+ type DeleteTotpFactors200 = {
894
1004
  success: boolean;
895
1005
  };
896
- type DeletePasskey400 = {
1006
+ type DeleteTotpFactors400 = {
897
1007
  message: string;
898
1008
  };
899
- type DeletePasskey403 = {
1009
+ type DeleteTotpFactors403 = {
900
1010
  message: string;
901
1011
  };
902
- type Settings403 = {
1012
+ type UpdatePassword201 = {
1013
+ success: boolean;
1014
+ };
1015
+ type UpdatePassword400 = {
903
1016
  message: string;
904
1017
  };
905
- type ListOrganizationDomains200 = {
906
- data: OrganizationDomain[];
1018
+ type UpdatePassword403 = {
1019
+ message: string;
907
1020
  };
908
- type ListOrganizationDomains403 = {
1021
+ type Verify400 = {
909
1022
  message: string;
910
1023
  };
911
- type ListOrganizationDomains404 = {
1024
+ type Verify403 = {
912
1025
  message: string;
913
1026
  };
914
- type GenerateAdminPortalLinkParams = {
915
- intent: GenerateAdminPortalLinkIntent;
1027
+ type VerifyTotpFactor200 = {
1028
+ success: boolean;
916
1029
  };
917
- type GenerateAdminPortalLinkIntent = (typeof GenerateAdminPortalLinkIntent)[keyof typeof GenerateAdminPortalLinkIntent];
918
- declare const GenerateAdminPortalLinkIntent: {
1030
+ type VerifyTotpFactor400 = {
1031
+ message: string;
1032
+ };
1033
+ type VerifyTotpFactor403 = {
1034
+ message: string;
1035
+ };
1036
+ type GenerateAdminPortalLinkParams = {
1037
+ intent: GenerateAdminPortalLinkIntent;
1038
+ };
1039
+ type GenerateAdminPortalLinkIntent = (typeof GenerateAdminPortalLinkIntent)[keyof typeof GenerateAdminPortalLinkIntent];
1040
+ declare const GenerateAdminPortalLinkIntent: {
919
1041
  readonly domain_verification: "domain_verification";
920
1042
  readonly sso: "sso";
921
1043
  };
@@ -931,241 +1053,402 @@ type GenerateAdminPortalLink404 = {
931
1053
  type GenerateAdminPortalLink500 = {
932
1054
  message: string;
933
1055
  };
934
- type DeleteOrganizationDomain403 = {
935
- message: string;
936
- };
937
- type DeleteOrganizationDomain404 = {
938
- message: string;
939
- };
940
- type ReverifyOrganizationDomain403 = {
941
- message: string;
942
- };
943
- type ReverifyOrganizationDomain404 = {
944
- message: string;
945
- };
946
- type CreateOrganizationApiKey400 = {
947
- message: string;
948
- };
949
- type CreateOrganizationApiKey403 = {
950
- message: string;
951
- };
952
- type CreateOrganizationApiKey404 = {
953
- message: string;
954
- };
955
- type CreateOrganizationApiKey422ErrorsItem = {
956
- code: string;
957
- field: string;
958
- };
959
- type CreateOrganizationApiKey422 = {
960
- message: string;
961
- errors: CreateOrganizationApiKey422ErrorsItem[];
962
- };
963
- type ListOrganizationApiKeysParams = {
964
- limit?: number;
965
- before?: string;
966
- after?: string;
967
- search?: string;
1056
+ type ListOrganizationDomains200 = {
1057
+ data: OrganizationDomain[];
968
1058
  };
969
- type ListOrganizationApiKeys400 = {
1059
+ type ListOrganizationDomains403 = {
970
1060
  message: string;
971
1061
  };
972
- type ListOrganizationApiKeys403 = {
1062
+ type ListOrganizationDomains404 = {
973
1063
  message: string;
974
1064
  };
975
- type ListOrganizationApiKeyPermissionsParams = {
976
- search?: string;
977
- limit?: number;
978
- before?: string;
979
- after?: string;
980
- };
981
- type ListOrganizationApiKeyPermissions400 = {
1065
+ type DeleteOrganizationDomain403 = {
982
1066
  message: string;
983
1067
  };
984
- type ListOrganizationApiKeyPermissions403 = {
1068
+ type DeleteOrganizationDomain404 = {
985
1069
  message: string;
986
1070
  };
987
- type DeleteOrganizationApiKey200 = {
988
- success: boolean;
989
- };
990
- type DeleteOrganizationApiKey403 = {
1071
+ type ReverifyOrganizationDomain403 = {
991
1072
  message: string;
992
1073
  };
993
- type DeleteOrganizationApiKey404 = {
1074
+ type ReverifyOrganizationDomain404 = {
994
1075
  message: string;
995
1076
  };
996
- type MyDataIntegrations403 = {
1077
+ type ListDirectories403 = {
997
1078
  message: string;
998
1079
  };
999
- type GetDataIntegrationAuthorizeUrlParams = {
1000
- requireHandoff?: boolean;
1001
- };
1002
- type GetDataIntegrationAuthorizeUrl400 = {
1080
+ type ListDirectories404 = {
1003
1081
  message: string;
1004
1082
  };
1005
- type GetDataIntegrationAuthorizeUrl403 = {
1083
+ type Settings403 = {
1006
1084
  message: string;
1007
1085
  };
1008
- type GetDataIntegrationAuthorizeUrl404 = {
1009
- message: string;
1086
+ type createOrganizationApiKeyResponse201 = {
1087
+ data: CreateOrganizationApiKeyResponse;
1088
+ status: 201;
1010
1089
  };
1011
- type GetDataInstallationAuthorizationStatus400 = {
1012
- message: string;
1090
+ type createOrganizationApiKeyResponse400 = {
1091
+ data: CreateOrganizationApiKey400;
1092
+ status: 400;
1013
1093
  };
1014
- type GetDataInstallationAuthorizationStatus403 = {
1015
- message: string;
1094
+ type createOrganizationApiKeyResponse403 = {
1095
+ data: CreateOrganizationApiKey403;
1096
+ status: 403;
1016
1097
  };
1017
- type GetDataInstallationAuthorizationStatus404 = {
1018
- message: string;
1098
+ type createOrganizationApiKeyResponse404 = {
1099
+ data: CreateOrganizationApiKey404;
1100
+ status: 404;
1019
1101
  };
1020
- type DeleteDataInstallation200 = {
1021
- success: boolean;
1102
+ type createOrganizationApiKeyResponse422 = {
1103
+ data: CreateOrganizationApiKey422;
1104
+ status: 422;
1022
1105
  };
1023
- type DeleteDataInstallation403 = {
1024
- message: string;
1106
+ type createOrganizationApiKeyResponseSuccess = createOrganizationApiKeyResponse201 & {
1107
+ headers: Headers;
1025
1108
  };
1026
- type DeleteDataInstallation404 = {
1027
- message: string;
1109
+ type createOrganizationApiKeyResponseError = (createOrganizationApiKeyResponse400 | createOrganizationApiKeyResponse403 | createOrganizationApiKeyResponse404 | createOrganizationApiKeyResponse422) & {
1110
+ headers: Headers;
1028
1111
  };
1029
- type membersResponse200 = {
1030
- data: Members200;
1112
+ type createOrganizationApiKeyResponse = createOrganizationApiKeyResponseSuccess | createOrganizationApiKeyResponseError;
1113
+ declare const getCreateOrganizationApiKeyUrl: () => string;
1114
+ declare const createOrganizationApiKey: (createOrganizationApiKeyRequest: CreateOrganizationApiKeyRequest, options?: RequestInit) => Promise<createOrganizationApiKeyResponse>;
1115
+ declare const getCreateOrganizationApiKeyMutationOptions: <TError = CreateOrganizationApiKey400 | CreateOrganizationApiKey403 | CreateOrganizationApiKey404 | CreateOrganizationApiKey422, TContext = unknown>(options?: {
1116
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof createOrganizationApiKey>>, TError, {
1117
+ data: CreateOrganizationApiKeyRequest;
1118
+ }, TContext>;
1119
+ fetch?: RequestInit;
1120
+ }) => UseMutationOptions<Awaited<ReturnType<typeof createOrganizationApiKey>>, TError, {
1121
+ data: CreateOrganizationApiKeyRequest;
1122
+ }, TContext>;
1123
+ type CreateOrganizationApiKeyMutationResult = NonNullable<Awaited<ReturnType<typeof createOrganizationApiKey>>>;
1124
+ type CreateOrganizationApiKeyMutationBody = CreateOrganizationApiKeyRequest;
1125
+ type CreateOrganizationApiKeyMutationError = CreateOrganizationApiKey400 | CreateOrganizationApiKey403 | CreateOrganizationApiKey404 | CreateOrganizationApiKey422;
1126
+ declare const useCreateOrganizationApiKey: <TError = CreateOrganizationApiKey400 | CreateOrganizationApiKey403 | CreateOrganizationApiKey404 | CreateOrganizationApiKey422, TContext = unknown>(options?: {
1127
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof createOrganizationApiKey>>, TError, {
1128
+ data: CreateOrganizationApiKeyRequest;
1129
+ }, TContext>;
1130
+ fetch?: RequestInit;
1131
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof createOrganizationApiKey>>, TError, {
1132
+ data: CreateOrganizationApiKeyRequest;
1133
+ }, TContext>;
1134
+ type listOrganizationApiKeysResponse200 = {
1135
+ data: ListOrganizationApiKeysResponse;
1031
1136
  status: 200;
1032
1137
  };
1033
- type membersResponse403 = {
1034
- data: Members403;
1035
- status: 403;
1138
+ type listOrganizationApiKeysResponse400 = {
1139
+ data: ListOrganizationApiKeys400;
1140
+ status: 400;
1036
1141
  };
1037
- type membersResponse404 = {
1038
- data: Members404;
1039
- status: 404;
1142
+ type listOrganizationApiKeysResponse403 = {
1143
+ data: ListOrganizationApiKeys403;
1144
+ status: 403;
1040
1145
  };
1041
- type membersResponseSuccess = membersResponse200 & {
1146
+ type listOrganizationApiKeysResponseSuccess = listOrganizationApiKeysResponse200 & {
1042
1147
  headers: Headers;
1043
1148
  };
1044
- type membersResponseError = (membersResponse403 | membersResponse404) & {
1149
+ type listOrganizationApiKeysResponseError = (listOrganizationApiKeysResponse400 | listOrganizationApiKeysResponse403) & {
1045
1150
  headers: Headers;
1046
1151
  };
1047
- type membersResponse = membersResponseSuccess | membersResponseError;
1048
- declare const getMembersUrl: (params?: MembersParams) => string;
1049
- declare const members: (params?: MembersParams, options?: RequestInit) => Promise<membersResponse>;
1050
- declare const getMembersQueryKey: (params?: MembersParams) => readonly ["https://api.workos.com/_widgets/UserManagement/members", ...MembersParams[]];
1051
- declare const getMembersQueryOptions: <TData = Awaited<ReturnType<typeof members>>, TError = Members403 | Members404>(params?: MembersParams, options?: {
1052
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof members>>, TError, TData>>;
1152
+ type listOrganizationApiKeysResponse = listOrganizationApiKeysResponseSuccess | listOrganizationApiKeysResponseError;
1153
+ declare const getListOrganizationApiKeysUrl: (params?: ListOrganizationApiKeysParams) => string;
1154
+ declare const listOrganizationApiKeys: (params?: ListOrganizationApiKeysParams, options?: RequestInit) => Promise<listOrganizationApiKeysResponse>;
1155
+ declare const getListOrganizationApiKeysQueryKey: (params?: ListOrganizationApiKeysParams) => readonly ["https://api.workos.com/_widgets/ApiKeys/organization-api-keys", ...ListOrganizationApiKeysParams[]];
1156
+ declare const getListOrganizationApiKeysQueryOptions: <TData = Awaited<ReturnType<typeof listOrganizationApiKeys>>, TError = ListOrganizationApiKeys400 | ListOrganizationApiKeys403>(params?: ListOrganizationApiKeysParams, options?: {
1157
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listOrganizationApiKeys>>, TError, TData>>;
1053
1158
  fetch?: RequestInit;
1054
- }) => UseQueryOptions<Awaited<ReturnType<typeof members>>, TError, TData> & {
1159
+ }) => UseQueryOptions<Awaited<ReturnType<typeof listOrganizationApiKeys>>, TError, TData> & {
1055
1160
  queryKey: DataTag<QueryKey, TData, TError>;
1056
1161
  };
1057
- type MembersQueryResult = NonNullable<Awaited<ReturnType<typeof members>>>;
1058
- type MembersQueryError = Members403 | Members404;
1059
- declare function useMembers<TData = Awaited<ReturnType<typeof members>>, TError = Members403 | Members404>(params: undefined | MembersParams, options: {
1060
- query: Partial<UseQueryOptions<Awaited<ReturnType<typeof members>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof members>>, TError, Awaited<ReturnType<typeof members>>>, "initialData">;
1162
+ type ListOrganizationApiKeysQueryResult = NonNullable<Awaited<ReturnType<typeof listOrganizationApiKeys>>>;
1163
+ type ListOrganizationApiKeysQueryError = ListOrganizationApiKeys400 | ListOrganizationApiKeys403;
1164
+ declare function useListOrganizationApiKeys<TData = Awaited<ReturnType<typeof listOrganizationApiKeys>>, TError = ListOrganizationApiKeys400 | ListOrganizationApiKeys403>(params: undefined | ListOrganizationApiKeysParams, options: {
1165
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof listOrganizationApiKeys>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof listOrganizationApiKeys>>, TError, Awaited<ReturnType<typeof listOrganizationApiKeys>>>, "initialData">;
1061
1166
  fetch?: RequestInit;
1062
1167
  }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
1063
1168
  queryKey: DataTag<QueryKey, TData, TError>;
1064
1169
  };
1065
- declare function useMembers<TData = Awaited<ReturnType<typeof members>>, TError = Members403 | Members404>(params?: MembersParams, options?: {
1066
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof members>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof members>>, TError, Awaited<ReturnType<typeof members>>>, "initialData">;
1170
+ declare function useListOrganizationApiKeys<TData = Awaited<ReturnType<typeof listOrganizationApiKeys>>, TError = ListOrganizationApiKeys400 | ListOrganizationApiKeys403>(params?: ListOrganizationApiKeysParams, options?: {
1171
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listOrganizationApiKeys>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof listOrganizationApiKeys>>, TError, Awaited<ReturnType<typeof listOrganizationApiKeys>>>, "initialData">;
1067
1172
  fetch?: RequestInit;
1068
1173
  }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
1069
1174
  queryKey: DataTag<QueryKey, TData, TError>;
1070
1175
  };
1071
- declare function useMembers<TData = Awaited<ReturnType<typeof members>>, TError = Members403 | Members404>(params?: MembersParams, options?: {
1072
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof members>>, TError, TData>>;
1176
+ declare function useListOrganizationApiKeys<TData = Awaited<ReturnType<typeof listOrganizationApiKeys>>, TError = ListOrganizationApiKeys400 | ListOrganizationApiKeys403>(params?: ListOrganizationApiKeysParams, options?: {
1177
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listOrganizationApiKeys>>, TError, TData>>;
1073
1178
  fetch?: RequestInit;
1074
1179
  }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
1075
1180
  queryKey: DataTag<QueryKey, TData, TError>;
1076
1181
  };
1077
- type rolesResponse200 = {
1078
- data: MemberRole[];
1182
+ type listOrganizationApiKeyPermissionsResponse200 = {
1183
+ data: ListOrganizationApiKeyPermissionsResponse;
1079
1184
  status: 200;
1080
1185
  };
1081
- type rolesResponse403 = {
1082
- data: Roles403;
1083
- status: 403;
1186
+ type listOrganizationApiKeyPermissionsResponse400 = {
1187
+ data: ListOrganizationApiKeyPermissions400;
1188
+ status: 400;
1084
1189
  };
1085
- type rolesResponse404 = {
1086
- data: Roles404;
1087
- status: 404;
1190
+ type listOrganizationApiKeyPermissionsResponse403 = {
1191
+ data: ListOrganizationApiKeyPermissions403;
1192
+ status: 403;
1088
1193
  };
1089
- type rolesResponseSuccess = rolesResponse200 & {
1194
+ type listOrganizationApiKeyPermissionsResponseSuccess = listOrganizationApiKeyPermissionsResponse200 & {
1090
1195
  headers: Headers;
1091
1196
  };
1092
- type rolesResponseError = (rolesResponse403 | rolesResponse404) & {
1197
+ type listOrganizationApiKeyPermissionsResponseError = (listOrganizationApiKeyPermissionsResponse400 | listOrganizationApiKeyPermissionsResponse403) & {
1093
1198
  headers: Headers;
1094
1199
  };
1095
- type rolesResponse = rolesResponseSuccess | rolesResponseError;
1096
- declare const getRolesUrl: () => string;
1097
- declare const roles: (options?: RequestInit) => Promise<rolesResponse>;
1098
- declare const getRolesQueryKey: () => readonly ["https://api.workos.com/_widgets/UserManagement/roles"];
1099
- declare const getRolesQueryOptions: <TData = Awaited<ReturnType<typeof roles>>, TError = Roles403 | Roles404>(options?: {
1100
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof roles>>, TError, TData>>;
1200
+ type listOrganizationApiKeyPermissionsResponse = listOrganizationApiKeyPermissionsResponseSuccess | listOrganizationApiKeyPermissionsResponseError;
1201
+ declare const getListOrganizationApiKeyPermissionsUrl: (params?: ListOrganizationApiKeyPermissionsParams) => string;
1202
+ declare const listOrganizationApiKeyPermissions: (params?: ListOrganizationApiKeyPermissionsParams, options?: RequestInit) => Promise<listOrganizationApiKeyPermissionsResponse>;
1203
+ declare const getListOrganizationApiKeyPermissionsQueryKey: (params?: ListOrganizationApiKeyPermissionsParams) => readonly ["https://api.workos.com/_widgets/ApiKeys/permissions", ...ListOrganizationApiKeyPermissionsParams[]];
1204
+ declare const getListOrganizationApiKeyPermissionsQueryOptions: <TData = Awaited<ReturnType<typeof listOrganizationApiKeyPermissions>>, TError = ListOrganizationApiKeyPermissions400 | ListOrganizationApiKeyPermissions403>(params?: ListOrganizationApiKeyPermissionsParams, options?: {
1205
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listOrganizationApiKeyPermissions>>, TError, TData>>;
1101
1206
  fetch?: RequestInit;
1102
- }) => UseQueryOptions<Awaited<ReturnType<typeof roles>>, TError, TData> & {
1207
+ }) => UseQueryOptions<Awaited<ReturnType<typeof listOrganizationApiKeyPermissions>>, TError, TData> & {
1103
1208
  queryKey: DataTag<QueryKey, TData, TError>;
1104
1209
  };
1105
- type RolesQueryResult = NonNullable<Awaited<ReturnType<typeof roles>>>;
1106
- type RolesQueryError = Roles403 | Roles404;
1107
- declare function useRoles<TData = Awaited<ReturnType<typeof roles>>, TError = Roles403 | Roles404>(options: {
1108
- query: Partial<UseQueryOptions<Awaited<ReturnType<typeof roles>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof roles>>, TError, Awaited<ReturnType<typeof roles>>>, "initialData">;
1210
+ type ListOrganizationApiKeyPermissionsQueryResult = NonNullable<Awaited<ReturnType<typeof listOrganizationApiKeyPermissions>>>;
1211
+ type ListOrganizationApiKeyPermissionsQueryError = ListOrganizationApiKeyPermissions400 | ListOrganizationApiKeyPermissions403;
1212
+ declare function useListOrganizationApiKeyPermissions<TData = Awaited<ReturnType<typeof listOrganizationApiKeyPermissions>>, TError = ListOrganizationApiKeyPermissions400 | ListOrganizationApiKeyPermissions403>(params: undefined | ListOrganizationApiKeyPermissionsParams, options: {
1213
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof listOrganizationApiKeyPermissions>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof listOrganizationApiKeyPermissions>>, TError, Awaited<ReturnType<typeof listOrganizationApiKeyPermissions>>>, "initialData">;
1109
1214
  fetch?: RequestInit;
1110
1215
  }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
1111
1216
  queryKey: DataTag<QueryKey, TData, TError>;
1112
1217
  };
1113
- declare function useRoles<TData = Awaited<ReturnType<typeof roles>>, TError = Roles403 | Roles404>(options?: {
1114
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof roles>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof roles>>, TError, Awaited<ReturnType<typeof roles>>>, "initialData">;
1218
+ declare function useListOrganizationApiKeyPermissions<TData = Awaited<ReturnType<typeof listOrganizationApiKeyPermissions>>, TError = ListOrganizationApiKeyPermissions400 | ListOrganizationApiKeyPermissions403>(params?: ListOrganizationApiKeyPermissionsParams, options?: {
1219
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listOrganizationApiKeyPermissions>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof listOrganizationApiKeyPermissions>>, TError, Awaited<ReturnType<typeof listOrganizationApiKeyPermissions>>>, "initialData">;
1115
1220
  fetch?: RequestInit;
1116
1221
  }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
1117
1222
  queryKey: DataTag<QueryKey, TData, TError>;
1118
1223
  };
1119
- declare function useRoles<TData = Awaited<ReturnType<typeof roles>>, TError = Roles403 | Roles404>(options?: {
1120
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof roles>>, TError, TData>>;
1224
+ declare function useListOrganizationApiKeyPermissions<TData = Awaited<ReturnType<typeof listOrganizationApiKeyPermissions>>, TError = ListOrganizationApiKeyPermissions400 | ListOrganizationApiKeyPermissions403>(params?: ListOrganizationApiKeyPermissionsParams, options?: {
1225
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listOrganizationApiKeyPermissions>>, TError, TData>>;
1121
1226
  fetch?: RequestInit;
1122
1227
  }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
1123
1228
  queryKey: DataTag<QueryKey, TData, TError>;
1124
1229
  };
1125
- type rolesAndConfigResponse200 = {
1126
- data: RolesAndConfigResponse;
1230
+ type deleteOrganizationApiKeyResponse200 = {
1231
+ data: DeleteOrganizationApiKey200;
1127
1232
  status: 200;
1128
1233
  };
1129
- type rolesAndConfigResponse403 = {
1130
- data: RolesAndConfig403;
1234
+ type deleteOrganizationApiKeyResponse403 = {
1235
+ data: DeleteOrganizationApiKey403;
1131
1236
  status: 403;
1132
1237
  };
1133
- type rolesAndConfigResponse404 = {
1134
- data: RolesAndConfig404;
1238
+ type deleteOrganizationApiKeyResponse404 = {
1239
+ data: DeleteOrganizationApiKey404;
1135
1240
  status: 404;
1136
1241
  };
1137
- type rolesAndConfigResponseSuccess = rolesAndConfigResponse200 & {
1242
+ type deleteOrganizationApiKeyResponseSuccess = deleteOrganizationApiKeyResponse200 & {
1138
1243
  headers: Headers;
1139
1244
  };
1140
- type rolesAndConfigResponseError = (rolesAndConfigResponse403 | rolesAndConfigResponse404) & {
1245
+ type deleteOrganizationApiKeyResponseError = (deleteOrganizationApiKeyResponse403 | deleteOrganizationApiKeyResponse404) & {
1141
1246
  headers: Headers;
1142
1247
  };
1143
- type rolesAndConfigResponse = rolesAndConfigResponseSuccess | rolesAndConfigResponseError;
1144
- declare const getRolesAndConfigUrl: () => string;
1145
- declare const rolesAndConfig: (options?: RequestInit) => Promise<rolesAndConfigResponse>;
1146
- declare const getRolesAndConfigQueryKey: () => readonly ["https://api.workos.com/_widgets/UserManagement/roles-and-config"];
1147
- declare const getRolesAndConfigQueryOptions: <TData = Awaited<ReturnType<typeof rolesAndConfig>>, TError = RolesAndConfig403 | RolesAndConfig404>(options?: {
1148
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof rolesAndConfig>>, TError, TData>>;
1149
- fetch?: RequestInit;
1150
- }) => UseQueryOptions<Awaited<ReturnType<typeof rolesAndConfig>>, TError, TData> & {
1151
- queryKey: DataTag<QueryKey, TData, TError>;
1152
- };
1153
- type RolesAndConfigQueryResult = NonNullable<Awaited<ReturnType<typeof rolesAndConfig>>>;
1154
- type RolesAndConfigQueryError = RolesAndConfig403 | RolesAndConfig404;
1155
- declare function useRolesAndConfig<TData = Awaited<ReturnType<typeof rolesAndConfig>>, TError = RolesAndConfig403 | RolesAndConfig404>(options: {
1156
- query: Partial<UseQueryOptions<Awaited<ReturnType<typeof rolesAndConfig>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof rolesAndConfig>>, TError, Awaited<ReturnType<typeof rolesAndConfig>>>, "initialData">;
1248
+ type deleteOrganizationApiKeyResponse = deleteOrganizationApiKeyResponseSuccess | deleteOrganizationApiKeyResponseError;
1249
+ declare const getDeleteOrganizationApiKeyUrl: (apiKeyId: string) => string;
1250
+ declare const deleteOrganizationApiKey: (apiKeyId: string, options?: RequestInit) => Promise<deleteOrganizationApiKeyResponse>;
1251
+ declare const getDeleteOrganizationApiKeyMutationOptions: <TError = DeleteOrganizationApiKey403 | DeleteOrganizationApiKey404, TContext = unknown>(options?: {
1252
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteOrganizationApiKey>>, TError, {
1253
+ apiKeyId: string;
1254
+ }, TContext>;
1255
+ fetch?: RequestInit;
1256
+ }) => UseMutationOptions<Awaited<ReturnType<typeof deleteOrganizationApiKey>>, TError, {
1257
+ apiKeyId: string;
1258
+ }, TContext>;
1259
+ type DeleteOrganizationApiKeyMutationResult = NonNullable<Awaited<ReturnType<typeof deleteOrganizationApiKey>>>;
1260
+ type DeleteOrganizationApiKeyMutationError = DeleteOrganizationApiKey403 | DeleteOrganizationApiKey404;
1261
+ declare const useDeleteOrganizationApiKey: <TError = DeleteOrganizationApiKey403 | DeleteOrganizationApiKey404, TContext = unknown>(options?: {
1262
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteOrganizationApiKey>>, TError, {
1263
+ apiKeyId: string;
1264
+ }, TContext>;
1265
+ fetch?: RequestInit;
1266
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof deleteOrganizationApiKey>>, TError, {
1267
+ apiKeyId: string;
1268
+ }, TContext>;
1269
+ type deleteDataInstallationResponse200 = {
1270
+ data: DeleteDataInstallation200;
1271
+ status: 200;
1272
+ };
1273
+ type deleteDataInstallationResponse403 = {
1274
+ data: DeleteDataInstallation403;
1275
+ status: 403;
1276
+ };
1277
+ type deleteDataInstallationResponse404 = {
1278
+ data: DeleteDataInstallation404;
1279
+ status: 404;
1280
+ };
1281
+ type deleteDataInstallationResponseSuccess = deleteDataInstallationResponse200 & {
1282
+ headers: Headers;
1283
+ };
1284
+ type deleteDataInstallationResponseError = (deleteDataInstallationResponse403 | deleteDataInstallationResponse404) & {
1285
+ headers: Headers;
1286
+ };
1287
+ type deleteDataInstallationResponse = deleteDataInstallationResponseSuccess | deleteDataInstallationResponseError;
1288
+ declare const getDeleteDataInstallationUrl: (installationId: string) => string;
1289
+ declare const deleteDataInstallation: (installationId: string, options?: RequestInit) => Promise<deleteDataInstallationResponse>;
1290
+ declare const getDeleteDataInstallationMutationOptions: <TError = DeleteDataInstallation403 | DeleteDataInstallation404, TContext = unknown>(options?: {
1291
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteDataInstallation>>, TError, {
1292
+ installationId: string;
1293
+ }, TContext>;
1294
+ fetch?: RequestInit;
1295
+ }) => UseMutationOptions<Awaited<ReturnType<typeof deleteDataInstallation>>, TError, {
1296
+ installationId: string;
1297
+ }, TContext>;
1298
+ type DeleteDataInstallationMutationResult = NonNullable<Awaited<ReturnType<typeof deleteDataInstallation>>>;
1299
+ type DeleteDataInstallationMutationError = DeleteDataInstallation403 | DeleteDataInstallation404;
1300
+ declare const useDeleteDataInstallation: <TError = DeleteDataInstallation403 | DeleteDataInstallation404, TContext = unknown>(options?: {
1301
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteDataInstallation>>, TError, {
1302
+ installationId: string;
1303
+ }, TContext>;
1304
+ fetch?: RequestInit;
1305
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof deleteDataInstallation>>, TError, {
1306
+ installationId: string;
1307
+ }, TContext>;
1308
+ type myDataIntegrationsResponse200 = {
1309
+ data: DataIntegrationsResponse;
1310
+ status: 200;
1311
+ };
1312
+ type myDataIntegrationsResponse403 = {
1313
+ data: MyDataIntegrations403;
1314
+ status: 403;
1315
+ };
1316
+ type myDataIntegrationsResponseSuccess = myDataIntegrationsResponse200 & {
1317
+ headers: Headers;
1318
+ };
1319
+ type myDataIntegrationsResponseError = myDataIntegrationsResponse403 & {
1320
+ headers: Headers;
1321
+ };
1322
+ type myDataIntegrationsResponse = myDataIntegrationsResponseSuccess | myDataIntegrationsResponseError;
1323
+ declare const getMyDataIntegrationsUrl: () => string;
1324
+ declare const myDataIntegrations: (options?: RequestInit) => Promise<myDataIntegrationsResponse>;
1325
+ declare const getMyDataIntegrationsQueryKey: () => readonly ["https://api.workos.com/_widgets/DataIntegrations/mine"];
1326
+ declare const getMyDataIntegrationsQueryOptions: <TData = Awaited<ReturnType<typeof myDataIntegrations>>, TError = MyDataIntegrations403>(options?: {
1327
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof myDataIntegrations>>, TError, TData>>;
1328
+ fetch?: RequestInit;
1329
+ }) => UseQueryOptions<Awaited<ReturnType<typeof myDataIntegrations>>, TError, TData> & {
1330
+ queryKey: DataTag<QueryKey, TData, TError>;
1331
+ };
1332
+ type MyDataIntegrationsQueryResult = NonNullable<Awaited<ReturnType<typeof myDataIntegrations>>>;
1333
+ type MyDataIntegrationsQueryError = MyDataIntegrations403;
1334
+ declare function useMyDataIntegrations<TData = Awaited<ReturnType<typeof myDataIntegrations>>, TError = MyDataIntegrations403>(options: {
1335
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof myDataIntegrations>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof myDataIntegrations>>, TError, Awaited<ReturnType<typeof myDataIntegrations>>>, "initialData">;
1157
1336
  fetch?: RequestInit;
1158
1337
  }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
1159
1338
  queryKey: DataTag<QueryKey, TData, TError>;
1160
1339
  };
1161
- declare function useRolesAndConfig<TData = Awaited<ReturnType<typeof rolesAndConfig>>, TError = RolesAndConfig403 | RolesAndConfig404>(options?: {
1162
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof rolesAndConfig>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof rolesAndConfig>>, TError, Awaited<ReturnType<typeof rolesAndConfig>>>, "initialData">;
1340
+ declare function useMyDataIntegrations<TData = Awaited<ReturnType<typeof myDataIntegrations>>, TError = MyDataIntegrations403>(options?: {
1341
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof myDataIntegrations>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof myDataIntegrations>>, TError, Awaited<ReturnType<typeof myDataIntegrations>>>, "initialData">;
1163
1342
  fetch?: RequestInit;
1164
1343
  }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
1165
1344
  queryKey: DataTag<QueryKey, TData, TError>;
1166
1345
  };
1167
- declare function useRolesAndConfig<TData = Awaited<ReturnType<typeof rolesAndConfig>>, TError = RolesAndConfig403 | RolesAndConfig404>(options?: {
1168
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof rolesAndConfig>>, TError, TData>>;
1346
+ declare function useMyDataIntegrations<TData = Awaited<ReturnType<typeof myDataIntegrations>>, TError = MyDataIntegrations403>(options?: {
1347
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof myDataIntegrations>>, TError, TData>>;
1348
+ fetch?: RequestInit;
1349
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
1350
+ queryKey: DataTag<QueryKey, TData, TError>;
1351
+ };
1352
+ type getDataInstallationAuthorizationStatusResponse200 = {
1353
+ data: GetAuthorizationStatusResponse;
1354
+ status: 200;
1355
+ };
1356
+ type getDataInstallationAuthorizationStatusResponse400 = {
1357
+ data: GetDataInstallationAuthorizationStatus400;
1358
+ status: 400;
1359
+ };
1360
+ type getDataInstallationAuthorizationStatusResponse403 = {
1361
+ data: GetDataInstallationAuthorizationStatus403;
1362
+ status: 403;
1363
+ };
1364
+ type getDataInstallationAuthorizationStatusResponse404 = {
1365
+ data: GetDataInstallationAuthorizationStatus404;
1366
+ status: 404;
1367
+ };
1368
+ type getDataInstallationAuthorizationStatusResponseSuccess = getDataInstallationAuthorizationStatusResponse200 & {
1369
+ headers: Headers;
1370
+ };
1371
+ type getDataInstallationAuthorizationStatusResponseError = (getDataInstallationAuthorizationStatusResponse400 | getDataInstallationAuthorizationStatusResponse403 | getDataInstallationAuthorizationStatusResponse404) & {
1372
+ headers: Headers;
1373
+ };
1374
+ type getDataInstallationAuthorizationStatusResponse = getDataInstallationAuthorizationStatusResponseSuccess | getDataInstallationAuthorizationStatusResponseError;
1375
+ declare const getGetDataInstallationAuthorizationStatusUrl: (dataIntegrationId: string, state: string) => string;
1376
+ declare const getDataInstallationAuthorizationStatus: (dataIntegrationId: string, state: string, options?: RequestInit) => Promise<getDataInstallationAuthorizationStatusResponse>;
1377
+ declare const getGetDataInstallationAuthorizationStatusQueryKey: (dataIntegrationId?: string, state?: string) => readonly [`https://api.workos.com/_widgets/DataIntegrations/undefined/authorization-status/${string}` | `https://api.workos.com/_widgets/DataIntegrations/${string}/authorization-status/undefined` | `https://api.workos.com/_widgets/DataIntegrations/${string}/authorization-status/${string}`];
1378
+ declare const getGetDataInstallationAuthorizationStatusQueryOptions: <TData = Awaited<ReturnType<typeof getDataInstallationAuthorizationStatus>>, TError = GetDataInstallationAuthorizationStatus400 | GetDataInstallationAuthorizationStatus403 | GetDataInstallationAuthorizationStatus404>(dataIntegrationId: string, state: string, options?: {
1379
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getDataInstallationAuthorizationStatus>>, TError, TData>>;
1380
+ fetch?: RequestInit;
1381
+ }) => UseQueryOptions<Awaited<ReturnType<typeof getDataInstallationAuthorizationStatus>>, TError, TData> & {
1382
+ queryKey: DataTag<QueryKey, TData, TError>;
1383
+ };
1384
+ type GetDataInstallationAuthorizationStatusQueryResult = NonNullable<Awaited<ReturnType<typeof getDataInstallationAuthorizationStatus>>>;
1385
+ type GetDataInstallationAuthorizationStatusQueryError = GetDataInstallationAuthorizationStatus400 | GetDataInstallationAuthorizationStatus403 | GetDataInstallationAuthorizationStatus404;
1386
+ declare function useGetDataInstallationAuthorizationStatus<TData = Awaited<ReturnType<typeof getDataInstallationAuthorizationStatus>>, TError = GetDataInstallationAuthorizationStatus400 | GetDataInstallationAuthorizationStatus403 | GetDataInstallationAuthorizationStatus404>(dataIntegrationId: string, state: string, options: {
1387
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getDataInstallationAuthorizationStatus>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getDataInstallationAuthorizationStatus>>, TError, Awaited<ReturnType<typeof getDataInstallationAuthorizationStatus>>>, "initialData">;
1388
+ fetch?: RequestInit;
1389
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
1390
+ queryKey: DataTag<QueryKey, TData, TError>;
1391
+ };
1392
+ declare function useGetDataInstallationAuthorizationStatus<TData = Awaited<ReturnType<typeof getDataInstallationAuthorizationStatus>>, TError = GetDataInstallationAuthorizationStatus400 | GetDataInstallationAuthorizationStatus403 | GetDataInstallationAuthorizationStatus404>(dataIntegrationId: string, state: string, options?: {
1393
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getDataInstallationAuthorizationStatus>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getDataInstallationAuthorizationStatus>>, TError, Awaited<ReturnType<typeof getDataInstallationAuthorizationStatus>>>, "initialData">;
1394
+ fetch?: RequestInit;
1395
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
1396
+ queryKey: DataTag<QueryKey, TData, TError>;
1397
+ };
1398
+ declare function useGetDataInstallationAuthorizationStatus<TData = Awaited<ReturnType<typeof getDataInstallationAuthorizationStatus>>, TError = GetDataInstallationAuthorizationStatus400 | GetDataInstallationAuthorizationStatus403 | GetDataInstallationAuthorizationStatus404>(dataIntegrationId: string, state: string, options?: {
1399
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getDataInstallationAuthorizationStatus>>, TError, TData>>;
1400
+ fetch?: RequestInit;
1401
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
1402
+ queryKey: DataTag<QueryKey, TData, TError>;
1403
+ };
1404
+ type getDataIntegrationAuthorizeUrlResponse200 = {
1405
+ data: GetDataIntegrationAuthorizeUrlResponse;
1406
+ status: 200;
1407
+ };
1408
+ type getDataIntegrationAuthorizeUrlResponse400 = {
1409
+ data: GetDataIntegrationAuthorizeUrl400;
1410
+ status: 400;
1411
+ };
1412
+ type getDataIntegrationAuthorizeUrlResponse403 = {
1413
+ data: GetDataIntegrationAuthorizeUrl403;
1414
+ status: 403;
1415
+ };
1416
+ type getDataIntegrationAuthorizeUrlResponse404 = {
1417
+ data: GetDataIntegrationAuthorizeUrl404;
1418
+ status: 404;
1419
+ };
1420
+ type getDataIntegrationAuthorizeUrlResponseSuccess = getDataIntegrationAuthorizeUrlResponse200 & {
1421
+ headers: Headers;
1422
+ };
1423
+ type getDataIntegrationAuthorizeUrlResponseError = (getDataIntegrationAuthorizeUrlResponse400 | getDataIntegrationAuthorizeUrlResponse403 | getDataIntegrationAuthorizeUrlResponse404) & {
1424
+ headers: Headers;
1425
+ };
1426
+ type getDataIntegrationAuthorizeUrlResponse = getDataIntegrationAuthorizeUrlResponseSuccess | getDataIntegrationAuthorizeUrlResponseError;
1427
+ declare const getGetDataIntegrationAuthorizeUrlUrl: (slug: string, params?: GetDataIntegrationAuthorizeUrlParams) => string;
1428
+ declare const getDataIntegrationAuthorizeUrl: (slug: string, params?: GetDataIntegrationAuthorizeUrlParams, options?: RequestInit) => Promise<getDataIntegrationAuthorizeUrlResponse>;
1429
+ declare const getGetDataIntegrationAuthorizeUrlQueryKey: (slug?: string, params?: GetDataIntegrationAuthorizeUrlParams) => readonly [`https://api.workos.com/_widgets/DataIntegrations/${string}/authorize`, ...GetDataIntegrationAuthorizeUrlParams[]];
1430
+ declare const getGetDataIntegrationAuthorizeUrlQueryOptions: <TData = Awaited<ReturnType<typeof getDataIntegrationAuthorizeUrl>>, TError = GetDataIntegrationAuthorizeUrl400 | GetDataIntegrationAuthorizeUrl403 | GetDataIntegrationAuthorizeUrl404>(slug: string, params?: GetDataIntegrationAuthorizeUrlParams, options?: {
1431
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getDataIntegrationAuthorizeUrl>>, TError, TData>>;
1432
+ fetch?: RequestInit;
1433
+ }) => UseQueryOptions<Awaited<ReturnType<typeof getDataIntegrationAuthorizeUrl>>, TError, TData> & {
1434
+ queryKey: DataTag<QueryKey, TData, TError>;
1435
+ };
1436
+ type GetDataIntegrationAuthorizeUrlQueryResult = NonNullable<Awaited<ReturnType<typeof getDataIntegrationAuthorizeUrl>>>;
1437
+ type GetDataIntegrationAuthorizeUrlQueryError = GetDataIntegrationAuthorizeUrl400 | GetDataIntegrationAuthorizeUrl403 | GetDataIntegrationAuthorizeUrl404;
1438
+ declare function useGetDataIntegrationAuthorizeUrl<TData = Awaited<ReturnType<typeof getDataIntegrationAuthorizeUrl>>, TError = GetDataIntegrationAuthorizeUrl400 | GetDataIntegrationAuthorizeUrl403 | GetDataIntegrationAuthorizeUrl404>(slug: string, params: undefined | GetDataIntegrationAuthorizeUrlParams, options: {
1439
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getDataIntegrationAuthorizeUrl>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getDataIntegrationAuthorizeUrl>>, TError, Awaited<ReturnType<typeof getDataIntegrationAuthorizeUrl>>>, "initialData">;
1440
+ fetch?: RequestInit;
1441
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
1442
+ queryKey: DataTag<QueryKey, TData, TError>;
1443
+ };
1444
+ declare function useGetDataIntegrationAuthorizeUrl<TData = Awaited<ReturnType<typeof getDataIntegrationAuthorizeUrl>>, TError = GetDataIntegrationAuthorizeUrl400 | GetDataIntegrationAuthorizeUrl403 | GetDataIntegrationAuthorizeUrl404>(slug: string, params?: GetDataIntegrationAuthorizeUrlParams, options?: {
1445
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getDataIntegrationAuthorizeUrl>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getDataIntegrationAuthorizeUrl>>, TError, Awaited<ReturnType<typeof getDataIntegrationAuthorizeUrl>>>, "initialData">;
1446
+ fetch?: RequestInit;
1447
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
1448
+ queryKey: DataTag<QueryKey, TData, TError>;
1449
+ };
1450
+ declare function useGetDataIntegrationAuthorizeUrl<TData = Awaited<ReturnType<typeof getDataIntegrationAuthorizeUrl>>, TError = GetDataIntegrationAuthorizeUrl400 | GetDataIntegrationAuthorizeUrl403 | GetDataIntegrationAuthorizeUrl404>(slug: string, params?: GetDataIntegrationAuthorizeUrlParams, options?: {
1451
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getDataIntegrationAuthorizeUrl>>, TError, TData>>;
1169
1452
  fetch?: RequestInit;
1170
1453
  }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
1171
1454
  queryKey: DataTag<QueryKey, TData, TError>;
@@ -1214,6 +1497,49 @@ declare const useInviteMember: <TError = InviteMember400 | InviteMember403 | Inv
1214
1497
  }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof inviteMember>>, TError, {
1215
1498
  data: InviteMemberBody;
1216
1499
  }, TContext>;
1500
+ type revokeInviteResponse200 = {
1501
+ data: RevokeInvite200;
1502
+ status: 200;
1503
+ };
1504
+ type revokeInviteResponse400 = {
1505
+ data: RevokeInvite400;
1506
+ status: 400;
1507
+ };
1508
+ type revokeInviteResponse403 = {
1509
+ data: RevokeInvite403;
1510
+ status: 403;
1511
+ };
1512
+ type revokeInviteResponse404 = {
1513
+ data: RevokeInvite404;
1514
+ status: 404;
1515
+ };
1516
+ type revokeInviteResponseSuccess = revokeInviteResponse200 & {
1517
+ headers: Headers;
1518
+ };
1519
+ type revokeInviteResponseError = (revokeInviteResponse400 | revokeInviteResponse403 | revokeInviteResponse404) & {
1520
+ headers: Headers;
1521
+ };
1522
+ type revokeInviteResponse = revokeInviteResponseSuccess | revokeInviteResponseError;
1523
+ declare const getRevokeInviteUrl: (userId: string) => string;
1524
+ declare const revokeInvite: (userId: string, options?: RequestInit) => Promise<revokeInviteResponse>;
1525
+ declare const getRevokeInviteMutationOptions: <TError = RevokeInvite400 | RevokeInvite403 | RevokeInvite404, TContext = unknown>(options?: {
1526
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof revokeInvite>>, TError, {
1527
+ userId: string;
1528
+ }, TContext>;
1529
+ fetch?: RequestInit;
1530
+ }) => UseMutationOptions<Awaited<ReturnType<typeof revokeInvite>>, TError, {
1531
+ userId: string;
1532
+ }, TContext>;
1533
+ type RevokeInviteMutationResult = NonNullable<Awaited<ReturnType<typeof revokeInvite>>>;
1534
+ type RevokeInviteMutationError = RevokeInvite400 | RevokeInvite403 | RevokeInvite404;
1535
+ declare const useRevokeInvite: <TError = RevokeInvite400 | RevokeInvite403 | RevokeInvite404, TContext = unknown>(options?: {
1536
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof revokeInvite>>, TError, {
1537
+ userId: string;
1538
+ }, TContext>;
1539
+ fetch?: RequestInit;
1540
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof revokeInvite>>, TError, {
1541
+ userId: string;
1542
+ }, TContext>;
1217
1543
  type resendInviteResponse201 = {
1218
1544
  data: ResendInvite201;
1219
1545
  status: 201;
@@ -1261,49 +1587,54 @@ declare const useResendInvite: <TError = ResendInvite400 | ResendInvite403 | Res
1261
1587
  }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof resendInvite>>, TError, {
1262
1588
  userId: string;
1263
1589
  }, TContext>;
1264
- type revokeInviteResponse200 = {
1265
- data: RevokeInvite200;
1590
+ type membersResponse200 = {
1591
+ data: Members200;
1266
1592
  status: 200;
1267
1593
  };
1268
- type revokeInviteResponse400 = {
1269
- data: RevokeInvite400;
1270
- status: 400;
1271
- };
1272
- type revokeInviteResponse403 = {
1273
- data: RevokeInvite403;
1594
+ type membersResponse403 = {
1595
+ data: Members403;
1274
1596
  status: 403;
1275
1597
  };
1276
- type revokeInviteResponse404 = {
1277
- data: RevokeInvite404;
1598
+ type membersResponse404 = {
1599
+ data: Members404;
1278
1600
  status: 404;
1279
1601
  };
1280
- type revokeInviteResponseSuccess = revokeInviteResponse200 & {
1602
+ type membersResponseSuccess = membersResponse200 & {
1281
1603
  headers: Headers;
1282
1604
  };
1283
- type revokeInviteResponseError = (revokeInviteResponse400 | revokeInviteResponse403 | revokeInviteResponse404) & {
1605
+ type membersResponseError = (membersResponse403 | membersResponse404) & {
1284
1606
  headers: Headers;
1285
1607
  };
1286
- type revokeInviteResponse = revokeInviteResponseSuccess | revokeInviteResponseError;
1287
- declare const getRevokeInviteUrl: (userId: string) => string;
1288
- declare const revokeInvite: (userId: string, options?: RequestInit) => Promise<revokeInviteResponse>;
1289
- declare const getRevokeInviteMutationOptions: <TError = RevokeInvite400 | RevokeInvite403 | RevokeInvite404, TContext = unknown>(options?: {
1290
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof revokeInvite>>, TError, {
1291
- userId: string;
1292
- }, TContext>;
1608
+ type membersResponse = membersResponseSuccess | membersResponseError;
1609
+ declare const getMembersUrl: (params?: MembersParams) => string;
1610
+ declare const members: (params?: MembersParams, options?: RequestInit) => Promise<membersResponse>;
1611
+ declare const getMembersQueryKey: (params?: MembersParams) => readonly ["https://api.workos.com/_widgets/UserManagement/members", ...MembersParams[]];
1612
+ declare const getMembersQueryOptions: <TData = Awaited<ReturnType<typeof members>>, TError = Members403 | Members404>(params?: MembersParams, options?: {
1613
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof members>>, TError, TData>>;
1293
1614
  fetch?: RequestInit;
1294
- }) => UseMutationOptions<Awaited<ReturnType<typeof revokeInvite>>, TError, {
1295
- userId: string;
1296
- }, TContext>;
1297
- type RevokeInviteMutationResult = NonNullable<Awaited<ReturnType<typeof revokeInvite>>>;
1298
- type RevokeInviteMutationError = RevokeInvite400 | RevokeInvite403 | RevokeInvite404;
1299
- declare const useRevokeInvite: <TError = RevokeInvite400 | RevokeInvite403 | RevokeInvite404, TContext = unknown>(options?: {
1300
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof revokeInvite>>, TError, {
1301
- userId: string;
1302
- }, TContext>;
1615
+ }) => UseQueryOptions<Awaited<ReturnType<typeof members>>, TError, TData> & {
1616
+ queryKey: DataTag<QueryKey, TData, TError>;
1617
+ };
1618
+ type MembersQueryResult = NonNullable<Awaited<ReturnType<typeof members>>>;
1619
+ type MembersQueryError = Members403 | Members404;
1620
+ declare function useMembers<TData = Awaited<ReturnType<typeof members>>, TError = Members403 | Members404>(params: undefined | MembersParams, options: {
1621
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof members>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof members>>, TError, Awaited<ReturnType<typeof members>>>, "initialData">;
1303
1622
  fetch?: RequestInit;
1304
- }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof revokeInvite>>, TError, {
1305
- userId: string;
1306
- }, TContext>;
1623
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
1624
+ queryKey: DataTag<QueryKey, TData, TError>;
1625
+ };
1626
+ declare function useMembers<TData = Awaited<ReturnType<typeof members>>, TError = Members403 | Members404>(params?: MembersParams, options?: {
1627
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof members>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof members>>, TError, Awaited<ReturnType<typeof members>>>, "initialData">;
1628
+ fetch?: RequestInit;
1629
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
1630
+ queryKey: DataTag<QueryKey, TData, TError>;
1631
+ };
1632
+ declare function useMembers<TData = Awaited<ReturnType<typeof members>>, TError = Members403 | Members404>(params?: MembersParams, options?: {
1633
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof members>>, TError, TData>>;
1634
+ fetch?: RequestInit;
1635
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
1636
+ queryKey: DataTag<QueryKey, TData, TError>;
1637
+ };
1307
1638
  type removeMemberResponse200 = {
1308
1639
  data: RemoveMember200;
1309
1640
  status: 200;
@@ -1447,89 +1778,185 @@ declare function useOrganizations<TData = Awaited<ReturnType<typeof organization
1447
1778
  }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
1448
1779
  queryKey: DataTag<QueryKey, TData, TError>;
1449
1780
  };
1450
- type meResponse200 = {
1451
- data: Me;
1781
+ type rolesResponse200 = {
1782
+ data: MemberRole[];
1452
1783
  status: 200;
1453
1784
  };
1454
- type meResponse403 = {
1455
- data: Me403;
1785
+ type rolesResponse403 = {
1786
+ data: Roles403;
1456
1787
  status: 403;
1457
1788
  };
1458
- type meResponseSuccess = meResponse200 & {
1789
+ type rolesResponse404 = {
1790
+ data: Roles404;
1791
+ status: 404;
1792
+ };
1793
+ type rolesResponseSuccess = rolesResponse200 & {
1459
1794
  headers: Headers;
1460
1795
  };
1461
- type meResponseError = meResponse403 & {
1796
+ type rolesResponseError = (rolesResponse403 | rolesResponse404) & {
1462
1797
  headers: Headers;
1463
1798
  };
1464
- type meResponse = meResponseSuccess | meResponseError;
1465
- declare const getMeUrl: () => string;
1466
- declare const me: (options?: RequestInit) => Promise<meResponse>;
1467
- declare const getMeQueryKey: () => readonly ["https://api.workos.com/_widgets/UserProfile/me"];
1468
- declare const getMeQueryOptions: <TData = Awaited<ReturnType<typeof me>>, TError = Me403>(options?: {
1469
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof me>>, TError, TData>>;
1799
+ type rolesResponse = rolesResponseSuccess | rolesResponseError;
1800
+ declare const getRolesUrl: () => string;
1801
+ declare const roles: (options?: RequestInit) => Promise<rolesResponse>;
1802
+ declare const getRolesQueryKey: () => readonly ["https://api.workos.com/_widgets/UserManagement/roles"];
1803
+ declare const getRolesQueryOptions: <TData = Awaited<ReturnType<typeof roles>>, TError = Roles403 | Roles404>(options?: {
1804
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof roles>>, TError, TData>>;
1470
1805
  fetch?: RequestInit;
1471
- }) => UseQueryOptions<Awaited<ReturnType<typeof me>>, TError, TData> & {
1806
+ }) => UseQueryOptions<Awaited<ReturnType<typeof roles>>, TError, TData> & {
1472
1807
  queryKey: DataTag<QueryKey, TData, TError>;
1473
1808
  };
1474
- type MeQueryResult = NonNullable<Awaited<ReturnType<typeof me>>>;
1475
- type MeQueryError = Me403;
1476
- declare function useMe<TData = Awaited<ReturnType<typeof me>>, TError = Me403>(options: {
1477
- query: Partial<UseQueryOptions<Awaited<ReturnType<typeof me>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof me>>, TError, Awaited<ReturnType<typeof me>>>, "initialData">;
1809
+ type RolesQueryResult = NonNullable<Awaited<ReturnType<typeof roles>>>;
1810
+ type RolesQueryError = Roles403 | Roles404;
1811
+ declare function useRoles<TData = Awaited<ReturnType<typeof roles>>, TError = Roles403 | Roles404>(options: {
1812
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof roles>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof roles>>, TError, Awaited<ReturnType<typeof roles>>>, "initialData">;
1478
1813
  fetch?: RequestInit;
1479
1814
  }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
1480
1815
  queryKey: DataTag<QueryKey, TData, TError>;
1481
1816
  };
1482
- declare function useMe<TData = Awaited<ReturnType<typeof me>>, TError = Me403>(options?: {
1483
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof me>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof me>>, TError, Awaited<ReturnType<typeof me>>>, "initialData">;
1817
+ declare function useRoles<TData = Awaited<ReturnType<typeof roles>>, TError = Roles403 | Roles404>(options?: {
1818
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof roles>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof roles>>, TError, Awaited<ReturnType<typeof roles>>>, "initialData">;
1484
1819
  fetch?: RequestInit;
1485
1820
  }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
1486
1821
  queryKey: DataTag<QueryKey, TData, TError>;
1487
1822
  };
1488
- declare function useMe<TData = Awaited<ReturnType<typeof me>>, TError = Me403>(options?: {
1489
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof me>>, TError, TData>>;
1823
+ declare function useRoles<TData = Awaited<ReturnType<typeof roles>>, TError = Roles403 | Roles404>(options?: {
1824
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof roles>>, TError, TData>>;
1490
1825
  fetch?: RequestInit;
1491
1826
  }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
1492
1827
  queryKey: DataTag<QueryKey, TData, TError>;
1493
1828
  };
1494
- type updateMeResponse200 = {
1495
- data: Me;
1829
+ type rolesAndConfigResponse200 = {
1830
+ data: RolesAndConfigResponse;
1496
1831
  status: 200;
1497
1832
  };
1498
- type updateMeResponse400 = {
1499
- data: UpdateMe400;
1833
+ type rolesAndConfigResponse403 = {
1834
+ data: RolesAndConfig403;
1835
+ status: 403;
1836
+ };
1837
+ type rolesAndConfigResponse404 = {
1838
+ data: RolesAndConfig404;
1839
+ status: 404;
1840
+ };
1841
+ type rolesAndConfigResponseSuccess = rolesAndConfigResponse200 & {
1842
+ headers: Headers;
1843
+ };
1844
+ type rolesAndConfigResponseError = (rolesAndConfigResponse403 | rolesAndConfigResponse404) & {
1845
+ headers: Headers;
1846
+ };
1847
+ type rolesAndConfigResponse = rolesAndConfigResponseSuccess | rolesAndConfigResponseError;
1848
+ declare const getRolesAndConfigUrl: () => string;
1849
+ declare const rolesAndConfig: (options?: RequestInit) => Promise<rolesAndConfigResponse>;
1850
+ declare const getRolesAndConfigQueryKey: () => readonly ["https://api.workos.com/_widgets/UserManagement/roles-and-config"];
1851
+ declare const getRolesAndConfigQueryOptions: <TData = Awaited<ReturnType<typeof rolesAndConfig>>, TError = RolesAndConfig403 | RolesAndConfig404>(options?: {
1852
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof rolesAndConfig>>, TError, TData>>;
1853
+ fetch?: RequestInit;
1854
+ }) => UseQueryOptions<Awaited<ReturnType<typeof rolesAndConfig>>, TError, TData> & {
1855
+ queryKey: DataTag<QueryKey, TData, TError>;
1856
+ };
1857
+ type RolesAndConfigQueryResult = NonNullable<Awaited<ReturnType<typeof rolesAndConfig>>>;
1858
+ type RolesAndConfigQueryError = RolesAndConfig403 | RolesAndConfig404;
1859
+ declare function useRolesAndConfig<TData = Awaited<ReturnType<typeof rolesAndConfig>>, TError = RolesAndConfig403 | RolesAndConfig404>(options: {
1860
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof rolesAndConfig>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof rolesAndConfig>>, TError, Awaited<ReturnType<typeof rolesAndConfig>>>, "initialData">;
1861
+ fetch?: RequestInit;
1862
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
1863
+ queryKey: DataTag<QueryKey, TData, TError>;
1864
+ };
1865
+ declare function useRolesAndConfig<TData = Awaited<ReturnType<typeof rolesAndConfig>>, TError = RolesAndConfig403 | RolesAndConfig404>(options?: {
1866
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof rolesAndConfig>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof rolesAndConfig>>, TError, Awaited<ReturnType<typeof rolesAndConfig>>>, "initialData">;
1867
+ fetch?: RequestInit;
1868
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
1869
+ queryKey: DataTag<QueryKey, TData, TError>;
1870
+ };
1871
+ declare function useRolesAndConfig<TData = Awaited<ReturnType<typeof rolesAndConfig>>, TError = RolesAndConfig403 | RolesAndConfig404>(options?: {
1872
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof rolesAndConfig>>, TError, TData>>;
1873
+ fetch?: RequestInit;
1874
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
1875
+ queryKey: DataTag<QueryKey, TData, TError>;
1876
+ };
1877
+ type authenticationInformationResponse200 = {
1878
+ data: AuthenticationInformationResponse;
1879
+ status: 200;
1880
+ };
1881
+ type authenticationInformationResponse403 = {
1882
+ data: AuthenticationInformation403;
1883
+ status: 403;
1884
+ };
1885
+ type authenticationInformationResponseSuccess = authenticationInformationResponse200 & {
1886
+ headers: Headers;
1887
+ };
1888
+ type authenticationInformationResponseError = authenticationInformationResponse403 & {
1889
+ headers: Headers;
1890
+ };
1891
+ type authenticationInformationResponse = authenticationInformationResponseSuccess | authenticationInformationResponseError;
1892
+ declare const getAuthenticationInformationUrl: () => string;
1893
+ declare const authenticationInformation: (options?: RequestInit) => Promise<authenticationInformationResponse>;
1894
+ declare const getAuthenticationInformationQueryKey: () => readonly ["https://api.workos.com/_widgets/UserProfile/authentication-information"];
1895
+ declare const getAuthenticationInformationQueryOptions: <TData = Awaited<ReturnType<typeof authenticationInformation>>, TError = AuthenticationInformation403>(options?: {
1896
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof authenticationInformation>>, TError, TData>>;
1897
+ fetch?: RequestInit;
1898
+ }) => UseQueryOptions<Awaited<ReturnType<typeof authenticationInformation>>, TError, TData> & {
1899
+ queryKey: DataTag<QueryKey, TData, TError>;
1900
+ };
1901
+ type AuthenticationInformationQueryResult = NonNullable<Awaited<ReturnType<typeof authenticationInformation>>>;
1902
+ type AuthenticationInformationQueryError = AuthenticationInformation403;
1903
+ declare function useAuthenticationInformation<TData = Awaited<ReturnType<typeof authenticationInformation>>, TError = AuthenticationInformation403>(options: {
1904
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof authenticationInformation>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof authenticationInformation>>, TError, Awaited<ReturnType<typeof authenticationInformation>>>, "initialData">;
1905
+ fetch?: RequestInit;
1906
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
1907
+ queryKey: DataTag<QueryKey, TData, TError>;
1908
+ };
1909
+ declare function useAuthenticationInformation<TData = Awaited<ReturnType<typeof authenticationInformation>>, TError = AuthenticationInformation403>(options?: {
1910
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof authenticationInformation>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof authenticationInformation>>, TError, Awaited<ReturnType<typeof authenticationInformation>>>, "initialData">;
1911
+ fetch?: RequestInit;
1912
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
1913
+ queryKey: DataTag<QueryKey, TData, TError>;
1914
+ };
1915
+ declare function useAuthenticationInformation<TData = Awaited<ReturnType<typeof authenticationInformation>>, TError = AuthenticationInformation403>(options?: {
1916
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof authenticationInformation>>, TError, TData>>;
1917
+ fetch?: RequestInit;
1918
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
1919
+ queryKey: DataTag<QueryKey, TData, TError>;
1920
+ };
1921
+ type createPasswordResponse201 = {
1922
+ data: CreatePassword201;
1923
+ status: 201;
1924
+ };
1925
+ type createPasswordResponse400 = {
1926
+ data: CreatePassword400;
1500
1927
  status: 400;
1501
1928
  };
1502
- type updateMeResponse403 = {
1503
- data: UpdateMe403;
1929
+ type createPasswordResponse403 = {
1930
+ data: CreatePassword403;
1504
1931
  status: 403;
1505
1932
  };
1506
- type updateMeResponseSuccess = updateMeResponse200 & {
1933
+ type createPasswordResponseSuccess = createPasswordResponse201 & {
1507
1934
  headers: Headers;
1508
1935
  };
1509
- type updateMeResponseError = (updateMeResponse400 | updateMeResponse403) & {
1936
+ type createPasswordResponseError = (createPasswordResponse400 | createPasswordResponse403) & {
1510
1937
  headers: Headers;
1511
1938
  };
1512
- type updateMeResponse = updateMeResponseSuccess | updateMeResponseError;
1513
- declare const getUpdateMeUrl: () => string;
1514
- declare const updateMe: (updateMeBody: UpdateMeBody, options?: RequestInit) => Promise<updateMeResponse>;
1515
- declare const getUpdateMeMutationOptions: <TError = UpdateMe400 | UpdateMe403, TContext = unknown>(options?: {
1516
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof updateMe>>, TError, {
1517
- data: UpdateMeBody;
1939
+ type createPasswordResponse = createPasswordResponseSuccess | createPasswordResponseError;
1940
+ declare const getCreatePasswordUrl: () => string;
1941
+ declare const createPassword: (createPasswordRequest: CreatePasswordRequest, options?: RequestInit) => Promise<createPasswordResponse>;
1942
+ declare const getCreatePasswordMutationOptions: <TError = CreatePassword400 | CreatePassword403, TContext = unknown>(options?: {
1943
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof createPassword>>, TError, {
1944
+ data: CreatePasswordRequest;
1518
1945
  }, TContext>;
1519
1946
  fetch?: RequestInit;
1520
- }) => UseMutationOptions<Awaited<ReturnType<typeof updateMe>>, TError, {
1521
- data: UpdateMeBody;
1947
+ }) => UseMutationOptions<Awaited<ReturnType<typeof createPassword>>, TError, {
1948
+ data: CreatePasswordRequest;
1522
1949
  }, TContext>;
1523
- type UpdateMeMutationResult = NonNullable<Awaited<ReturnType<typeof updateMe>>>;
1524
- type UpdateMeMutationBody = UpdateMeBody;
1525
- type UpdateMeMutationError = UpdateMe400 | UpdateMe403;
1526
- declare const useUpdateMe: <TError = UpdateMe400 | UpdateMe403, TContext = unknown>(options?: {
1527
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof updateMe>>, TError, {
1528
- data: UpdateMeBody;
1950
+ type CreatePasswordMutationResult = NonNullable<Awaited<ReturnType<typeof createPassword>>>;
1951
+ type CreatePasswordMutationBody = CreatePasswordRequest;
1952
+ type CreatePasswordMutationError = CreatePassword400 | CreatePassword403;
1953
+ declare const useCreatePassword: <TError = CreatePassword400 | CreatePassword403, TContext = unknown>(options?: {
1954
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof createPassword>>, TError, {
1955
+ data: CreatePasswordRequest;
1529
1956
  }, TContext>;
1530
1957
  fetch?: RequestInit;
1531
- }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof updateMe>>, TError, {
1532
- data: UpdateMeBody;
1958
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof createPassword>>, TError, {
1959
+ data: CreatePasswordRequest;
1533
1960
  }, TContext>;
1534
1961
  type createTotpFactorResponse201 = {
1535
1962
  data: CreateTotpFactorResponse;
@@ -1562,280 +1989,231 @@ declare const useCreateTotpFactor: <TError = CreateTotpFactor400 | CreateTotpFac
1562
1989
  mutation?: UseMutationOptions<Awaited<ReturnType<typeof createTotpFactor>>, TError, void, TContext>;
1563
1990
  fetch?: RequestInit;
1564
1991
  }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof createTotpFactor>>, TError, void, TContext>;
1565
- type verifyTotpFactorResponse200 = {
1566
- data: VerifyTotpFactor200;
1992
+ type meResponse200 = {
1993
+ data: Me;
1567
1994
  status: 200;
1568
1995
  };
1569
- type verifyTotpFactorResponse400 = {
1570
- data: VerifyTotpFactor400;
1571
- status: 400;
1572
- };
1573
- type verifyTotpFactorResponse403 = {
1574
- data: VerifyTotpFactor403;
1996
+ type meResponse403 = {
1997
+ data: Me403;
1575
1998
  status: 403;
1576
1999
  };
1577
- type verifyTotpFactorResponseSuccess = verifyTotpFactorResponse200 & {
1578
- headers: Headers;
1579
- };
1580
- type verifyTotpFactorResponseError = (verifyTotpFactorResponse400 | verifyTotpFactorResponse403) & {
1581
- headers: Headers;
1582
- };
1583
- type verifyTotpFactorResponse = verifyTotpFactorResponseSuccess | verifyTotpFactorResponseError;
1584
- declare const getVerifyTotpFactorUrl: () => string;
1585
- declare const verifyTotpFactor: (verifyTotpFactorRequest: VerifyTotpFactorRequest, options?: RequestInit) => Promise<verifyTotpFactorResponse>;
1586
- declare const getVerifyTotpFactorMutationOptions: <TError = VerifyTotpFactor400 | VerifyTotpFactor403, TContext = unknown>(options?: {
1587
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof verifyTotpFactor>>, TError, {
1588
- data: VerifyTotpFactorRequest;
1589
- }, TContext>;
1590
- fetch?: RequestInit;
1591
- }) => UseMutationOptions<Awaited<ReturnType<typeof verifyTotpFactor>>, TError, {
1592
- data: VerifyTotpFactorRequest;
1593
- }, TContext>;
1594
- type VerifyTotpFactorMutationResult = NonNullable<Awaited<ReturnType<typeof verifyTotpFactor>>>;
1595
- type VerifyTotpFactorMutationBody = VerifyTotpFactorRequest;
1596
- type VerifyTotpFactorMutationError = VerifyTotpFactor400 | VerifyTotpFactor403;
1597
- declare const useVerifyTotpFactor: <TError = VerifyTotpFactor400 | VerifyTotpFactor403, TContext = unknown>(options?: {
1598
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof verifyTotpFactor>>, TError, {
1599
- data: VerifyTotpFactorRequest;
1600
- }, TContext>;
1601
- fetch?: RequestInit;
1602
- }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof verifyTotpFactor>>, TError, {
1603
- data: VerifyTotpFactorRequest;
1604
- }, TContext>;
1605
- type deleteTotpFactorsResponse200 = {
1606
- data: DeleteTotpFactors200;
1607
- status: 200;
1608
- };
1609
- type deleteTotpFactorsResponse400 = {
1610
- data: DeleteTotpFactors400;
1611
- status: 400;
1612
- };
1613
- type deleteTotpFactorsResponse403 = {
1614
- data: DeleteTotpFactors403;
1615
- status: 403;
1616
- };
1617
- type deleteTotpFactorsResponseSuccess = deleteTotpFactorsResponse200 & {
1618
- headers: Headers;
1619
- };
1620
- type deleteTotpFactorsResponseError = (deleteTotpFactorsResponse400 | deleteTotpFactorsResponse403) & {
1621
- headers: Headers;
1622
- };
1623
- type deleteTotpFactorsResponse = deleteTotpFactorsResponseSuccess | deleteTotpFactorsResponseError;
1624
- declare const getDeleteTotpFactorsUrl: () => string;
1625
- declare const deleteTotpFactors: (options?: RequestInit) => Promise<deleteTotpFactorsResponse>;
1626
- declare const getDeleteTotpFactorsMutationOptions: <TError = DeleteTotpFactors400 | DeleteTotpFactors403, TContext = unknown>(options?: {
1627
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteTotpFactors>>, TError, void, TContext>;
1628
- fetch?: RequestInit;
1629
- }) => UseMutationOptions<Awaited<ReturnType<typeof deleteTotpFactors>>, TError, void, TContext>;
1630
- type DeleteTotpFactorsMutationResult = NonNullable<Awaited<ReturnType<typeof deleteTotpFactors>>>;
1631
- type DeleteTotpFactorsMutationError = DeleteTotpFactors400 | DeleteTotpFactors403;
1632
- declare const useDeleteTotpFactors: <TError = DeleteTotpFactors400 | DeleteTotpFactors403, TContext = unknown>(options?: {
1633
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteTotpFactors>>, TError, void, TContext>;
1634
- fetch?: RequestInit;
1635
- }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof deleteTotpFactors>>, TError, void, TContext>;
1636
- type authenticationInformationResponse200 = {
1637
- data: AuthenticationInformationResponse;
1638
- status: 200;
1639
- };
1640
- type authenticationInformationResponse403 = {
1641
- data: AuthenticationInformation403;
1642
- status: 403;
1643
- };
1644
- type authenticationInformationResponseSuccess = authenticationInformationResponse200 & {
2000
+ type meResponseSuccess = meResponse200 & {
1645
2001
  headers: Headers;
1646
2002
  };
1647
- type authenticationInformationResponseError = authenticationInformationResponse403 & {
2003
+ type meResponseError = meResponse403 & {
1648
2004
  headers: Headers;
1649
2005
  };
1650
- type authenticationInformationResponse = authenticationInformationResponseSuccess | authenticationInformationResponseError;
1651
- declare const getAuthenticationInformationUrl: () => string;
1652
- declare const authenticationInformation: (options?: RequestInit) => Promise<authenticationInformationResponse>;
1653
- declare const getAuthenticationInformationQueryKey: () => readonly ["https://api.workos.com/_widgets/UserProfile/authentication-information"];
1654
- declare const getAuthenticationInformationQueryOptions: <TData = Awaited<ReturnType<typeof authenticationInformation>>, TError = AuthenticationInformation403>(options?: {
1655
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof authenticationInformation>>, TError, TData>>;
2006
+ type meResponse = meResponseSuccess | meResponseError;
2007
+ declare const getMeUrl: () => string;
2008
+ declare const me: (options?: RequestInit) => Promise<meResponse>;
2009
+ declare const getMeQueryKey: () => readonly ["https://api.workos.com/_widgets/UserProfile/me"];
2010
+ declare const getMeQueryOptions: <TData = Awaited<ReturnType<typeof me>>, TError = Me403>(options?: {
2011
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof me>>, TError, TData>>;
1656
2012
  fetch?: RequestInit;
1657
- }) => UseQueryOptions<Awaited<ReturnType<typeof authenticationInformation>>, TError, TData> & {
2013
+ }) => UseQueryOptions<Awaited<ReturnType<typeof me>>, TError, TData> & {
1658
2014
  queryKey: DataTag<QueryKey, TData, TError>;
1659
2015
  };
1660
- type AuthenticationInformationQueryResult = NonNullable<Awaited<ReturnType<typeof authenticationInformation>>>;
1661
- type AuthenticationInformationQueryError = AuthenticationInformation403;
1662
- declare function useAuthenticationInformation<TData = Awaited<ReturnType<typeof authenticationInformation>>, TError = AuthenticationInformation403>(options: {
1663
- query: Partial<UseQueryOptions<Awaited<ReturnType<typeof authenticationInformation>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof authenticationInformation>>, TError, Awaited<ReturnType<typeof authenticationInformation>>>, "initialData">;
2016
+ type MeQueryResult = NonNullable<Awaited<ReturnType<typeof me>>>;
2017
+ type MeQueryError = Me403;
2018
+ declare function useMe<TData = Awaited<ReturnType<typeof me>>, TError = Me403>(options: {
2019
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof me>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof me>>, TError, Awaited<ReturnType<typeof me>>>, "initialData">;
1664
2020
  fetch?: RequestInit;
1665
2021
  }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
1666
2022
  queryKey: DataTag<QueryKey, TData, TError>;
1667
2023
  };
1668
- declare function useAuthenticationInformation<TData = Awaited<ReturnType<typeof authenticationInformation>>, TError = AuthenticationInformation403>(options?: {
1669
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof authenticationInformation>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof authenticationInformation>>, TError, Awaited<ReturnType<typeof authenticationInformation>>>, "initialData">;
2024
+ declare function useMe<TData = Awaited<ReturnType<typeof me>>, TError = Me403>(options?: {
2025
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof me>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof me>>, TError, Awaited<ReturnType<typeof me>>>, "initialData">;
1670
2026
  fetch?: RequestInit;
1671
2027
  }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
1672
2028
  queryKey: DataTag<QueryKey, TData, TError>;
1673
2029
  };
1674
- declare function useAuthenticationInformation<TData = Awaited<ReturnType<typeof authenticationInformation>>, TError = AuthenticationInformation403>(options?: {
1675
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof authenticationInformation>>, TError, TData>>;
2030
+ declare function useMe<TData = Awaited<ReturnType<typeof me>>, TError = Me403>(options?: {
2031
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof me>>, TError, TData>>;
1676
2032
  fetch?: RequestInit;
1677
2033
  }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
1678
2034
  queryKey: DataTag<QueryKey, TData, TError>;
1679
2035
  };
1680
- type createPasswordResponse201 = {
1681
- data: CreatePassword201;
1682
- status: 201;
2036
+ type updateMeResponse200 = {
2037
+ data: Me;
2038
+ status: 200;
1683
2039
  };
1684
- type createPasswordResponse400 = {
1685
- data: CreatePassword400;
2040
+ type updateMeResponse400 = {
2041
+ data: UpdateMe400;
1686
2042
  status: 400;
1687
2043
  };
1688
- type createPasswordResponse403 = {
1689
- data: CreatePassword403;
2044
+ type updateMeResponse403 = {
2045
+ data: UpdateMe403;
1690
2046
  status: 403;
1691
2047
  };
1692
- type createPasswordResponseSuccess = createPasswordResponse201 & {
2048
+ type updateMeResponseSuccess = updateMeResponse200 & {
1693
2049
  headers: Headers;
1694
2050
  };
1695
- type createPasswordResponseError = (createPasswordResponse400 | createPasswordResponse403) & {
2051
+ type updateMeResponseError = (updateMeResponse400 | updateMeResponse403) & {
1696
2052
  headers: Headers;
1697
2053
  };
1698
- type createPasswordResponse = createPasswordResponseSuccess | createPasswordResponseError;
1699
- declare const getCreatePasswordUrl: () => string;
1700
- declare const createPassword: (createPasswordRequest: CreatePasswordRequest, options?: RequestInit) => Promise<createPasswordResponse>;
1701
- declare const getCreatePasswordMutationOptions: <TError = CreatePassword400 | CreatePassword403, TContext = unknown>(options?: {
1702
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof createPassword>>, TError, {
1703
- data: CreatePasswordRequest;
2054
+ type updateMeResponse = updateMeResponseSuccess | updateMeResponseError;
2055
+ declare const getUpdateMeUrl: () => string;
2056
+ declare const updateMe: (updateMeBody: UpdateMeBody, options?: RequestInit) => Promise<updateMeResponse>;
2057
+ declare const getUpdateMeMutationOptions: <TError = UpdateMe400 | UpdateMe403, TContext = unknown>(options?: {
2058
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof updateMe>>, TError, {
2059
+ data: UpdateMeBody;
1704
2060
  }, TContext>;
1705
2061
  fetch?: RequestInit;
1706
- }) => UseMutationOptions<Awaited<ReturnType<typeof createPassword>>, TError, {
1707
- data: CreatePasswordRequest;
2062
+ }) => UseMutationOptions<Awaited<ReturnType<typeof updateMe>>, TError, {
2063
+ data: UpdateMeBody;
1708
2064
  }, TContext>;
1709
- type CreatePasswordMutationResult = NonNullable<Awaited<ReturnType<typeof createPassword>>>;
1710
- type CreatePasswordMutationBody = CreatePasswordRequest;
1711
- type CreatePasswordMutationError = CreatePassword400 | CreatePassword403;
1712
- declare const useCreatePassword: <TError = CreatePassword400 | CreatePassword403, TContext = unknown>(options?: {
1713
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof createPassword>>, TError, {
1714
- data: CreatePasswordRequest;
2065
+ type UpdateMeMutationResult = NonNullable<Awaited<ReturnType<typeof updateMe>>>;
2066
+ type UpdateMeMutationBody = UpdateMeBody;
2067
+ type UpdateMeMutationError = UpdateMe400 | UpdateMe403;
2068
+ declare const useUpdateMe: <TError = UpdateMe400 | UpdateMe403, TContext = unknown>(options?: {
2069
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof updateMe>>, TError, {
2070
+ data: UpdateMeBody;
1715
2071
  }, TContext>;
1716
2072
  fetch?: RequestInit;
1717
- }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof createPassword>>, TError, {
1718
- data: CreatePasswordRequest;
2073
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof updateMe>>, TError, {
2074
+ data: UpdateMeBody;
1719
2075
  }, TContext>;
1720
- type updatePasswordResponse201 = {
1721
- data: UpdatePassword201;
2076
+ type registerPasskeyResponse201 = {
2077
+ data: RegisterPasskeyResponse;
1722
2078
  status: 201;
1723
2079
  };
1724
- type updatePasswordResponse400 = {
1725
- data: UpdatePassword400;
2080
+ type registerPasskeyResponse400 = {
2081
+ data: RegisterPasskey400;
1726
2082
  status: 400;
1727
2083
  };
1728
- type updatePasswordResponse403 = {
1729
- data: UpdatePassword403;
2084
+ type registerPasskeyResponse403 = {
2085
+ data: RegisterPasskey403;
1730
2086
  status: 403;
1731
2087
  };
1732
- type updatePasswordResponseSuccess = updatePasswordResponse201 & {
2088
+ type registerPasskeyResponseSuccess = registerPasskeyResponse201 & {
1733
2089
  headers: Headers;
1734
2090
  };
1735
- type updatePasswordResponseError = (updatePasswordResponse400 | updatePasswordResponse403) & {
2091
+ type registerPasskeyResponseError = (registerPasskeyResponse400 | registerPasskeyResponse403) & {
1736
2092
  headers: Headers;
1737
2093
  };
1738
- type updatePasswordResponse = updatePasswordResponseSuccess | updatePasswordResponseError;
1739
- declare const getUpdatePasswordUrl: () => string;
1740
- declare const updatePassword: (updatePasswordRequest: UpdatePasswordRequest, options?: RequestInit) => Promise<updatePasswordResponse>;
1741
- declare const getUpdatePasswordMutationOptions: <TError = UpdatePassword400 | UpdatePassword403, TContext = unknown>(options?: {
1742
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof updatePassword>>, TError, {
1743
- data: UpdatePasswordRequest;
1744
- }, TContext>;
2094
+ type registerPasskeyResponse = registerPasskeyResponseSuccess | registerPasskeyResponseError;
2095
+ declare const getRegisterPasskeyUrl: () => string;
2096
+ declare const registerPasskey: (options?: RequestInit) => Promise<registerPasskeyResponse>;
2097
+ declare const getRegisterPasskeyMutationOptions: <TError = RegisterPasskey400 | RegisterPasskey403, TContext = unknown>(options?: {
2098
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof registerPasskey>>, TError, void, TContext>;
1745
2099
  fetch?: RequestInit;
1746
- }) => UseMutationOptions<Awaited<ReturnType<typeof updatePassword>>, TError, {
1747
- data: UpdatePasswordRequest;
1748
- }, TContext>;
1749
- type UpdatePasswordMutationResult = NonNullable<Awaited<ReturnType<typeof updatePassword>>>;
1750
- type UpdatePasswordMutationBody = UpdatePasswordRequest;
1751
- type UpdatePasswordMutationError = UpdatePassword400 | UpdatePassword403;
1752
- declare const useUpdatePassword: <TError = UpdatePassword400 | UpdatePassword403, TContext = unknown>(options?: {
1753
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof updatePassword>>, TError, {
1754
- data: UpdatePasswordRequest;
1755
- }, TContext>;
2100
+ }) => UseMutationOptions<Awaited<ReturnType<typeof registerPasskey>>, TError, void, TContext>;
2101
+ type RegisterPasskeyMutationResult = NonNullable<Awaited<ReturnType<typeof registerPasskey>>>;
2102
+ type RegisterPasskeyMutationError = RegisterPasskey400 | RegisterPasskey403;
2103
+ declare const useRegisterPasskey: <TError = RegisterPasskey400 | RegisterPasskey403, TContext = unknown>(options?: {
2104
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof registerPasskey>>, TError, void, TContext>;
1756
2105
  fetch?: RequestInit;
1757
- }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof updatePassword>>, TError, {
1758
- data: UpdatePasswordRequest;
1759
- }, TContext>;
1760
- type revokeAllSessionsResponse200 = {
1761
- data: RevokeAllSessions200;
2106
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof registerPasskey>>, TError, void, TContext>;
2107
+ type verifyPasskeyResponse200 = {
2108
+ data: VerifyPasskey200;
1762
2109
  status: 200;
1763
2110
  };
1764
- type revokeAllSessionsResponse400 = {
1765
- data: RevokeAllSessions400;
2111
+ type verifyPasskeyResponse400 = {
2112
+ data: VerifyPasskey400;
1766
2113
  status: 400;
1767
2114
  };
1768
- type revokeAllSessionsResponse403 = {
1769
- data: RevokeAllSessions403;
2115
+ type verifyPasskeyResponse403 = {
2116
+ data: VerifyPasskey403;
1770
2117
  status: 403;
1771
2118
  };
1772
- type revokeAllSessionsResponseSuccess = revokeAllSessionsResponse200 & {
2119
+ type verifyPasskeyResponseSuccess = verifyPasskeyResponse200 & {
1773
2120
  headers: Headers;
1774
2121
  };
1775
- type revokeAllSessionsResponseError = (revokeAllSessionsResponse400 | revokeAllSessionsResponse403) & {
2122
+ type verifyPasskeyResponseError = (verifyPasskeyResponse400 | verifyPasskeyResponse403) & {
1776
2123
  headers: Headers;
1777
2124
  };
1778
- type revokeAllSessionsResponse = revokeAllSessionsResponseSuccess | revokeAllSessionsResponseError;
1779
- declare const getRevokeAllSessionsUrl: () => string;
1780
- declare const revokeAllSessions: (revokeAllSessionsRequest: RevokeAllSessionsRequest, options?: RequestInit) => Promise<revokeAllSessionsResponse>;
1781
- declare const getRevokeAllSessionsMutationOptions: <TError = RevokeAllSessions400 | RevokeAllSessions403, TContext = unknown>(options?: {
1782
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof revokeAllSessions>>, TError, {
1783
- data: RevokeAllSessionsRequest;
2125
+ type verifyPasskeyResponse = verifyPasskeyResponseSuccess | verifyPasskeyResponseError;
2126
+ declare const getVerifyPasskeyUrl: () => string;
2127
+ declare const verifyPasskey: (verifyPasskeyRequest: VerifyPasskeyRequest, options?: RequestInit) => Promise<verifyPasskeyResponse>;
2128
+ declare const getVerifyPasskeyMutationOptions: <TError = VerifyPasskey400 | VerifyPasskey403, TContext = unknown>(options?: {
2129
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof verifyPasskey>>, TError, {
2130
+ data: VerifyPasskeyRequest;
1784
2131
  }, TContext>;
1785
2132
  fetch?: RequestInit;
1786
- }) => UseMutationOptions<Awaited<ReturnType<typeof revokeAllSessions>>, TError, {
1787
- data: RevokeAllSessionsRequest;
2133
+ }) => UseMutationOptions<Awaited<ReturnType<typeof verifyPasskey>>, TError, {
2134
+ data: VerifyPasskeyRequest;
1788
2135
  }, TContext>;
1789
- type RevokeAllSessionsMutationResult = NonNullable<Awaited<ReturnType<typeof revokeAllSessions>>>;
1790
- type RevokeAllSessionsMutationBody = RevokeAllSessionsRequest;
1791
- type RevokeAllSessionsMutationError = RevokeAllSessions400 | RevokeAllSessions403;
1792
- declare const useRevokeAllSessions: <TError = RevokeAllSessions400 | RevokeAllSessions403, TContext = unknown>(options?: {
1793
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof revokeAllSessions>>, TError, {
1794
- data: RevokeAllSessionsRequest;
2136
+ type VerifyPasskeyMutationResult = NonNullable<Awaited<ReturnType<typeof verifyPasskey>>>;
2137
+ type VerifyPasskeyMutationBody = VerifyPasskeyRequest;
2138
+ type VerifyPasskeyMutationError = VerifyPasskey400 | VerifyPasskey403;
2139
+ declare const useVerifyPasskey: <TError = VerifyPasskey400 | VerifyPasskey403, TContext = unknown>(options?: {
2140
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof verifyPasskey>>, TError, {
2141
+ data: VerifyPasskeyRequest;
1795
2142
  }, TContext>;
1796
2143
  fetch?: RequestInit;
1797
- }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof revokeAllSessions>>, TError, {
1798
- data: RevokeAllSessionsRequest;
2144
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof verifyPasskey>>, TError, {
2145
+ data: VerifyPasskeyRequest;
1799
2146
  }, TContext>;
1800
- type revokeSessionResponse200 = {
1801
- data: RevokeSession200;
2147
+ type deletePasskeyResponse200 = {
2148
+ data: DeletePasskey200;
1802
2149
  status: 200;
1803
2150
  };
1804
- type revokeSessionResponse400 = {
1805
- data: RevokeSession400;
2151
+ type deletePasskeyResponse400 = {
2152
+ data: DeletePasskey400;
1806
2153
  status: 400;
1807
2154
  };
1808
- type revokeSessionResponse403 = {
1809
- data: RevokeSession403;
2155
+ type deletePasskeyResponse403 = {
2156
+ data: DeletePasskey403;
1810
2157
  status: 403;
1811
2158
  };
1812
- type revokeSessionResponseSuccess = revokeSessionResponse200 & {
2159
+ type deletePasskeyResponseSuccess = deletePasskeyResponse200 & {
1813
2160
  headers: Headers;
1814
2161
  };
1815
- type revokeSessionResponseError = (revokeSessionResponse400 | revokeSessionResponse403) & {
2162
+ type deletePasskeyResponseError = (deletePasskeyResponse400 | deletePasskeyResponse403) & {
1816
2163
  headers: Headers;
1817
2164
  };
1818
- type revokeSessionResponse = revokeSessionResponseSuccess | revokeSessionResponseError;
1819
- declare const getRevokeSessionUrl: (sessionId: string) => string;
1820
- declare const revokeSession: (sessionId: string, options?: RequestInit) => Promise<revokeSessionResponse>;
1821
- declare const getRevokeSessionMutationOptions: <TError = RevokeSession400 | RevokeSession403, TContext = unknown>(options?: {
1822
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof revokeSession>>, TError, {
1823
- sessionId: string;
2165
+ type deletePasskeyResponse = deletePasskeyResponseSuccess | deletePasskeyResponseError;
2166
+ declare const getDeletePasskeyUrl: (passkeyId: string) => string;
2167
+ declare const deletePasskey: (passkeyId: string, options?: RequestInit) => Promise<deletePasskeyResponse>;
2168
+ declare const getDeletePasskeyMutationOptions: <TError = DeletePasskey400 | DeletePasskey403, TContext = unknown>(options?: {
2169
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof deletePasskey>>, TError, {
2170
+ passkeyId: string;
1824
2171
  }, TContext>;
1825
2172
  fetch?: RequestInit;
1826
- }) => UseMutationOptions<Awaited<ReturnType<typeof revokeSession>>, TError, {
1827
- sessionId: string;
2173
+ }) => UseMutationOptions<Awaited<ReturnType<typeof deletePasskey>>, TError, {
2174
+ passkeyId: string;
1828
2175
  }, TContext>;
1829
- type RevokeSessionMutationResult = NonNullable<Awaited<ReturnType<typeof revokeSession>>>;
1830
- type RevokeSessionMutationError = RevokeSession400 | RevokeSession403;
1831
- declare const useRevokeSession: <TError = RevokeSession400 | RevokeSession403, TContext = unknown>(options?: {
1832
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof revokeSession>>, TError, {
1833
- sessionId: string;
2176
+ type DeletePasskeyMutationResult = NonNullable<Awaited<ReturnType<typeof deletePasskey>>>;
2177
+ type DeletePasskeyMutationError = DeletePasskey400 | DeletePasskey403;
2178
+ declare const useDeletePasskey: <TError = DeletePasskey400 | DeletePasskey403, TContext = unknown>(options?: {
2179
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof deletePasskey>>, TError, {
2180
+ passkeyId: string;
1834
2181
  }, TContext>;
1835
2182
  fetch?: RequestInit;
1836
- }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof revokeSession>>, TError, {
1837
- sessionId: string;
2183
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof deletePasskey>>, TError, {
2184
+ passkeyId: string;
1838
2185
  }, TContext>;
2186
+ type sendVerificationResponse200 = {
2187
+ data: SendVerificationResponse;
2188
+ status: 200;
2189
+ };
2190
+ type sendVerificationResponse400 = {
2191
+ data: SendVerification400;
2192
+ status: 400;
2193
+ };
2194
+ type sendVerificationResponse403 = {
2195
+ data: SendVerification403;
2196
+ status: 403;
2197
+ };
2198
+ type sendVerificationResponseSuccess = sendVerificationResponse200 & {
2199
+ headers: Headers;
2200
+ };
2201
+ type sendVerificationResponseError = (sendVerificationResponse400 | sendVerificationResponse403) & {
2202
+ headers: Headers;
2203
+ };
2204
+ type sendVerificationResponse = sendVerificationResponseSuccess | sendVerificationResponseError;
2205
+ declare const getSendVerificationUrl: () => string;
2206
+ declare const sendVerification: (options?: RequestInit) => Promise<sendVerificationResponse>;
2207
+ declare const getSendVerificationMutationOptions: <TError = SendVerification400 | SendVerification403, TContext = unknown>(options?: {
2208
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof sendVerification>>, TError, void, TContext>;
2209
+ fetch?: RequestInit;
2210
+ }) => UseMutationOptions<Awaited<ReturnType<typeof sendVerification>>, TError, void, TContext>;
2211
+ type SendVerificationMutationResult = NonNullable<Awaited<ReturnType<typeof sendVerification>>>;
2212
+ type SendVerificationMutationError = SendVerification400 | SendVerification403;
2213
+ declare const useSendVerification: <TError = SendVerification400 | SendVerification403, TContext = unknown>(options?: {
2214
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof sendVerification>>, TError, void, TContext>;
2215
+ fetch?: RequestInit;
2216
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof sendVerification>>, TError, void, TContext>;
1839
2217
  type sessionsResponse200 = {
1840
2218
  data: ActiveSessionsResponse;
1841
2219
  status: 200;
@@ -1880,37 +2258,156 @@ declare function useSessions<TData = Awaited<ReturnType<typeof sessions>>, TErro
1880
2258
  }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
1881
2259
  queryKey: DataTag<QueryKey, TData, TError>;
1882
2260
  };
1883
- type sendVerificationResponse200 = {
1884
- data: SendVerificationResponse;
2261
+ type revokeAllSessionsResponse200 = {
2262
+ data: RevokeAllSessions200;
1885
2263
  status: 200;
1886
2264
  };
1887
- type sendVerificationResponse400 = {
1888
- data: SendVerification400;
2265
+ type revokeAllSessionsResponse400 = {
2266
+ data: RevokeAllSessions400;
1889
2267
  status: 400;
1890
2268
  };
1891
- type sendVerificationResponse403 = {
1892
- data: SendVerification403;
2269
+ type revokeAllSessionsResponse403 = {
2270
+ data: RevokeAllSessions403;
1893
2271
  status: 403;
1894
2272
  };
1895
- type sendVerificationResponseSuccess = sendVerificationResponse200 & {
2273
+ type revokeAllSessionsResponseSuccess = revokeAllSessionsResponse200 & {
1896
2274
  headers: Headers;
1897
2275
  };
1898
- type sendVerificationResponseError = (sendVerificationResponse400 | sendVerificationResponse403) & {
2276
+ type revokeAllSessionsResponseError = (revokeAllSessionsResponse400 | revokeAllSessionsResponse403) & {
1899
2277
  headers: Headers;
1900
2278
  };
1901
- type sendVerificationResponse = sendVerificationResponseSuccess | sendVerificationResponseError;
1902
- declare const getSendVerificationUrl: () => string;
1903
- declare const sendVerification: (options?: RequestInit) => Promise<sendVerificationResponse>;
1904
- declare const getSendVerificationMutationOptions: <TError = SendVerification400 | SendVerification403, TContext = unknown>(options?: {
1905
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof sendVerification>>, TError, void, TContext>;
2279
+ type revokeAllSessionsResponse = revokeAllSessionsResponseSuccess | revokeAllSessionsResponseError;
2280
+ declare const getRevokeAllSessionsUrl: () => string;
2281
+ declare const revokeAllSessions: (revokeAllSessionsRequest: RevokeAllSessionsRequest, options?: RequestInit) => Promise<revokeAllSessionsResponse>;
2282
+ declare const getRevokeAllSessionsMutationOptions: <TError = RevokeAllSessions400 | RevokeAllSessions403, TContext = unknown>(options?: {
2283
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof revokeAllSessions>>, TError, {
2284
+ data: RevokeAllSessionsRequest;
2285
+ }, TContext>;
1906
2286
  fetch?: RequestInit;
1907
- }) => UseMutationOptions<Awaited<ReturnType<typeof sendVerification>>, TError, void, TContext>;
1908
- type SendVerificationMutationResult = NonNullable<Awaited<ReturnType<typeof sendVerification>>>;
1909
- type SendVerificationMutationError = SendVerification400 | SendVerification403;
1910
- declare const useSendVerification: <TError = SendVerification400 | SendVerification403, TContext = unknown>(options?: {
1911
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof sendVerification>>, TError, void, TContext>;
2287
+ }) => UseMutationOptions<Awaited<ReturnType<typeof revokeAllSessions>>, TError, {
2288
+ data: RevokeAllSessionsRequest;
2289
+ }, TContext>;
2290
+ type RevokeAllSessionsMutationResult = NonNullable<Awaited<ReturnType<typeof revokeAllSessions>>>;
2291
+ type RevokeAllSessionsMutationBody = RevokeAllSessionsRequest;
2292
+ type RevokeAllSessionsMutationError = RevokeAllSessions400 | RevokeAllSessions403;
2293
+ declare const useRevokeAllSessions: <TError = RevokeAllSessions400 | RevokeAllSessions403, TContext = unknown>(options?: {
2294
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof revokeAllSessions>>, TError, {
2295
+ data: RevokeAllSessionsRequest;
2296
+ }, TContext>;
1912
2297
  fetch?: RequestInit;
1913
- }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof sendVerification>>, TError, void, TContext>;
2298
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof revokeAllSessions>>, TError, {
2299
+ data: RevokeAllSessionsRequest;
2300
+ }, TContext>;
2301
+ type revokeSessionResponse200 = {
2302
+ data: RevokeSession200;
2303
+ status: 200;
2304
+ };
2305
+ type revokeSessionResponse400 = {
2306
+ data: RevokeSession400;
2307
+ status: 400;
2308
+ };
2309
+ type revokeSessionResponse403 = {
2310
+ data: RevokeSession403;
2311
+ status: 403;
2312
+ };
2313
+ type revokeSessionResponseSuccess = revokeSessionResponse200 & {
2314
+ headers: Headers;
2315
+ };
2316
+ type revokeSessionResponseError = (revokeSessionResponse400 | revokeSessionResponse403) & {
2317
+ headers: Headers;
2318
+ };
2319
+ type revokeSessionResponse = revokeSessionResponseSuccess | revokeSessionResponseError;
2320
+ declare const getRevokeSessionUrl: (sessionId: string) => string;
2321
+ declare const revokeSession: (sessionId: string, options?: RequestInit) => Promise<revokeSessionResponse>;
2322
+ declare const getRevokeSessionMutationOptions: <TError = RevokeSession400 | RevokeSession403, TContext = unknown>(options?: {
2323
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof revokeSession>>, TError, {
2324
+ sessionId: string;
2325
+ }, TContext>;
2326
+ fetch?: RequestInit;
2327
+ }) => UseMutationOptions<Awaited<ReturnType<typeof revokeSession>>, TError, {
2328
+ sessionId: string;
2329
+ }, TContext>;
2330
+ type RevokeSessionMutationResult = NonNullable<Awaited<ReturnType<typeof revokeSession>>>;
2331
+ type RevokeSessionMutationError = RevokeSession400 | RevokeSession403;
2332
+ declare const useRevokeSession: <TError = RevokeSession400 | RevokeSession403, TContext = unknown>(options?: {
2333
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof revokeSession>>, TError, {
2334
+ sessionId: string;
2335
+ }, TContext>;
2336
+ fetch?: RequestInit;
2337
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof revokeSession>>, TError, {
2338
+ sessionId: string;
2339
+ }, TContext>;
2340
+ type deleteTotpFactorsResponse200 = {
2341
+ data: DeleteTotpFactors200;
2342
+ status: 200;
2343
+ };
2344
+ type deleteTotpFactorsResponse400 = {
2345
+ data: DeleteTotpFactors400;
2346
+ status: 400;
2347
+ };
2348
+ type deleteTotpFactorsResponse403 = {
2349
+ data: DeleteTotpFactors403;
2350
+ status: 403;
2351
+ };
2352
+ type deleteTotpFactorsResponseSuccess = deleteTotpFactorsResponse200 & {
2353
+ headers: Headers;
2354
+ };
2355
+ type deleteTotpFactorsResponseError = (deleteTotpFactorsResponse400 | deleteTotpFactorsResponse403) & {
2356
+ headers: Headers;
2357
+ };
2358
+ type deleteTotpFactorsResponse = deleteTotpFactorsResponseSuccess | deleteTotpFactorsResponseError;
2359
+ declare const getDeleteTotpFactorsUrl: () => string;
2360
+ declare const deleteTotpFactors: (options?: RequestInit) => Promise<deleteTotpFactorsResponse>;
2361
+ declare const getDeleteTotpFactorsMutationOptions: <TError = DeleteTotpFactors400 | DeleteTotpFactors403, TContext = unknown>(options?: {
2362
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteTotpFactors>>, TError, void, TContext>;
2363
+ fetch?: RequestInit;
2364
+ }) => UseMutationOptions<Awaited<ReturnType<typeof deleteTotpFactors>>, TError, void, TContext>;
2365
+ type DeleteTotpFactorsMutationResult = NonNullable<Awaited<ReturnType<typeof deleteTotpFactors>>>;
2366
+ type DeleteTotpFactorsMutationError = DeleteTotpFactors400 | DeleteTotpFactors403;
2367
+ declare const useDeleteTotpFactors: <TError = DeleteTotpFactors400 | DeleteTotpFactors403, TContext = unknown>(options?: {
2368
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteTotpFactors>>, TError, void, TContext>;
2369
+ fetch?: RequestInit;
2370
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof deleteTotpFactors>>, TError, void, TContext>;
2371
+ type updatePasswordResponse201 = {
2372
+ data: UpdatePassword201;
2373
+ status: 201;
2374
+ };
2375
+ type updatePasswordResponse400 = {
2376
+ data: UpdatePassword400;
2377
+ status: 400;
2378
+ };
2379
+ type updatePasswordResponse403 = {
2380
+ data: UpdatePassword403;
2381
+ status: 403;
2382
+ };
2383
+ type updatePasswordResponseSuccess = updatePasswordResponse201 & {
2384
+ headers: Headers;
2385
+ };
2386
+ type updatePasswordResponseError = (updatePasswordResponse400 | updatePasswordResponse403) & {
2387
+ headers: Headers;
2388
+ };
2389
+ type updatePasswordResponse = updatePasswordResponseSuccess | updatePasswordResponseError;
2390
+ declare const getUpdatePasswordUrl: () => string;
2391
+ declare const updatePassword: (updatePasswordRequest: UpdatePasswordRequest, options?: RequestInit) => Promise<updatePasswordResponse>;
2392
+ declare const getUpdatePasswordMutationOptions: <TError = UpdatePassword400 | UpdatePassword403, TContext = unknown>(options?: {
2393
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof updatePassword>>, TError, {
2394
+ data: UpdatePasswordRequest;
2395
+ }, TContext>;
2396
+ fetch?: RequestInit;
2397
+ }) => UseMutationOptions<Awaited<ReturnType<typeof updatePassword>>, TError, {
2398
+ data: UpdatePasswordRequest;
2399
+ }, TContext>;
2400
+ type UpdatePasswordMutationResult = NonNullable<Awaited<ReturnType<typeof updatePassword>>>;
2401
+ type UpdatePasswordMutationBody = UpdatePasswordRequest;
2402
+ type UpdatePasswordMutationError = UpdatePassword400 | UpdatePassword403;
2403
+ declare const useUpdatePassword: <TError = UpdatePassword400 | UpdatePassword403, TContext = unknown>(options?: {
2404
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof updatePassword>>, TError, {
2405
+ data: UpdatePasswordRequest;
2406
+ }, TContext>;
2407
+ fetch?: RequestInit;
2408
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof updatePassword>>, TError, {
2409
+ data: UpdatePasswordRequest;
2410
+ }, TContext>;
1914
2411
  type verifyResponse200 = {
1915
2412
  data: VerifyResponse;
1916
2413
  status: 200;
@@ -1951,208 +2448,46 @@ declare const useVerify: <TError = Verify400 | Verify403, TContext = unknown>(op
1951
2448
  }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof verify>>, TError, {
1952
2449
  data: VerifyRequest;
1953
2450
  }, TContext>;
1954
- type registerPasskeyResponse201 = {
1955
- data: RegisterPasskeyResponse;
1956
- status: 201;
2451
+ type verifyTotpFactorResponse200 = {
2452
+ data: VerifyTotpFactor200;
2453
+ status: 200;
1957
2454
  };
1958
- type registerPasskeyResponse400 = {
1959
- data: RegisterPasskey400;
2455
+ type verifyTotpFactorResponse400 = {
2456
+ data: VerifyTotpFactor400;
1960
2457
  status: 400;
1961
2458
  };
1962
- type registerPasskeyResponse403 = {
1963
- data: RegisterPasskey403;
2459
+ type verifyTotpFactorResponse403 = {
2460
+ data: VerifyTotpFactor403;
1964
2461
  status: 403;
1965
2462
  };
1966
- type registerPasskeyResponseSuccess = registerPasskeyResponse201 & {
2463
+ type verifyTotpFactorResponseSuccess = verifyTotpFactorResponse200 & {
1967
2464
  headers: Headers;
1968
2465
  };
1969
- type registerPasskeyResponseError = (registerPasskeyResponse400 | registerPasskeyResponse403) & {
2466
+ type verifyTotpFactorResponseError = (verifyTotpFactorResponse400 | verifyTotpFactorResponse403) & {
1970
2467
  headers: Headers;
1971
2468
  };
1972
- type registerPasskeyResponse = registerPasskeyResponseSuccess | registerPasskeyResponseError;
1973
- declare const getRegisterPasskeyUrl: () => string;
1974
- declare const registerPasskey: (options?: RequestInit) => Promise<registerPasskeyResponse>;
1975
- declare const getRegisterPasskeyMutationOptions: <TError = RegisterPasskey400 | RegisterPasskey403, TContext = unknown>(options?: {
1976
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof registerPasskey>>, TError, void, TContext>;
2469
+ type verifyTotpFactorResponse = verifyTotpFactorResponseSuccess | verifyTotpFactorResponseError;
2470
+ declare const getVerifyTotpFactorUrl: () => string;
2471
+ declare const verifyTotpFactor: (verifyTotpFactorRequest: VerifyTotpFactorRequest, options?: RequestInit) => Promise<verifyTotpFactorResponse>;
2472
+ declare const getVerifyTotpFactorMutationOptions: <TError = VerifyTotpFactor400 | VerifyTotpFactor403, TContext = unknown>(options?: {
2473
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof verifyTotpFactor>>, TError, {
2474
+ data: VerifyTotpFactorRequest;
2475
+ }, TContext>;
1977
2476
  fetch?: RequestInit;
1978
- }) => UseMutationOptions<Awaited<ReturnType<typeof registerPasskey>>, TError, void, TContext>;
1979
- type RegisterPasskeyMutationResult = NonNullable<Awaited<ReturnType<typeof registerPasskey>>>;
1980
- type RegisterPasskeyMutationError = RegisterPasskey400 | RegisterPasskey403;
1981
- declare const useRegisterPasskey: <TError = RegisterPasskey400 | RegisterPasskey403, TContext = unknown>(options?: {
1982
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof registerPasskey>>, TError, void, TContext>;
1983
- fetch?: RequestInit;
1984
- }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof registerPasskey>>, TError, void, TContext>;
1985
- type verifyPasskeyResponse200 = {
1986
- data: VerifyPasskey200;
1987
- status: 200;
1988
- };
1989
- type verifyPasskeyResponse400 = {
1990
- data: VerifyPasskey400;
1991
- status: 400;
1992
- };
1993
- type verifyPasskeyResponse403 = {
1994
- data: VerifyPasskey403;
1995
- status: 403;
1996
- };
1997
- type verifyPasskeyResponseSuccess = verifyPasskeyResponse200 & {
1998
- headers: Headers;
1999
- };
2000
- type verifyPasskeyResponseError = (verifyPasskeyResponse400 | verifyPasskeyResponse403) & {
2001
- headers: Headers;
2002
- };
2003
- type verifyPasskeyResponse = verifyPasskeyResponseSuccess | verifyPasskeyResponseError;
2004
- declare const getVerifyPasskeyUrl: () => string;
2005
- declare const verifyPasskey: (verifyPasskeyRequest: VerifyPasskeyRequest, options?: RequestInit) => Promise<verifyPasskeyResponse>;
2006
- declare const getVerifyPasskeyMutationOptions: <TError = VerifyPasskey400 | VerifyPasskey403, TContext = unknown>(options?: {
2007
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof verifyPasskey>>, TError, {
2008
- data: VerifyPasskeyRequest;
2009
- }, TContext>;
2010
- fetch?: RequestInit;
2011
- }) => UseMutationOptions<Awaited<ReturnType<typeof verifyPasskey>>, TError, {
2012
- data: VerifyPasskeyRequest;
2013
- }, TContext>;
2014
- type VerifyPasskeyMutationResult = NonNullable<Awaited<ReturnType<typeof verifyPasskey>>>;
2015
- type VerifyPasskeyMutationBody = VerifyPasskeyRequest;
2016
- type VerifyPasskeyMutationError = VerifyPasskey400 | VerifyPasskey403;
2017
- declare const useVerifyPasskey: <TError = VerifyPasskey400 | VerifyPasskey403, TContext = unknown>(options?: {
2018
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof verifyPasskey>>, TError, {
2019
- data: VerifyPasskeyRequest;
2020
- }, TContext>;
2021
- fetch?: RequestInit;
2022
- }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof verifyPasskey>>, TError, {
2023
- data: VerifyPasskeyRequest;
2024
- }, TContext>;
2025
- type deletePasskeyResponse200 = {
2026
- data: DeletePasskey200;
2027
- status: 200;
2028
- };
2029
- type deletePasskeyResponse400 = {
2030
- data: DeletePasskey400;
2031
- status: 400;
2032
- };
2033
- type deletePasskeyResponse403 = {
2034
- data: DeletePasskey403;
2035
- status: 403;
2036
- };
2037
- type deletePasskeyResponseSuccess = deletePasskeyResponse200 & {
2038
- headers: Headers;
2039
- };
2040
- type deletePasskeyResponseError = (deletePasskeyResponse400 | deletePasskeyResponse403) & {
2041
- headers: Headers;
2042
- };
2043
- type deletePasskeyResponse = deletePasskeyResponseSuccess | deletePasskeyResponseError;
2044
- declare const getDeletePasskeyUrl: (passkeyId: string) => string;
2045
- declare const deletePasskey: (passkeyId: string, options?: RequestInit) => Promise<deletePasskeyResponse>;
2046
- declare const getDeletePasskeyMutationOptions: <TError = DeletePasskey400 | DeletePasskey403, TContext = unknown>(options?: {
2047
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof deletePasskey>>, TError, {
2048
- passkeyId: string;
2049
- }, TContext>;
2050
- fetch?: RequestInit;
2051
- }) => UseMutationOptions<Awaited<ReturnType<typeof deletePasskey>>, TError, {
2052
- passkeyId: string;
2477
+ }) => UseMutationOptions<Awaited<ReturnType<typeof verifyTotpFactor>>, TError, {
2478
+ data: VerifyTotpFactorRequest;
2053
2479
  }, TContext>;
2054
- type DeletePasskeyMutationResult = NonNullable<Awaited<ReturnType<typeof deletePasskey>>>;
2055
- type DeletePasskeyMutationError = DeletePasskey400 | DeletePasskey403;
2056
- declare const useDeletePasskey: <TError = DeletePasskey400 | DeletePasskey403, TContext = unknown>(options?: {
2057
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof deletePasskey>>, TError, {
2058
- passkeyId: string;
2480
+ type VerifyTotpFactorMutationResult = NonNullable<Awaited<ReturnType<typeof verifyTotpFactor>>>;
2481
+ type VerifyTotpFactorMutationBody = VerifyTotpFactorRequest;
2482
+ type VerifyTotpFactorMutationError = VerifyTotpFactor400 | VerifyTotpFactor403;
2483
+ declare const useVerifyTotpFactor: <TError = VerifyTotpFactor400 | VerifyTotpFactor403, TContext = unknown>(options?: {
2484
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof verifyTotpFactor>>, TError, {
2485
+ data: VerifyTotpFactorRequest;
2059
2486
  }, TContext>;
2060
2487
  fetch?: RequestInit;
2061
- }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof deletePasskey>>, TError, {
2062
- passkeyId: string;
2488
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof verifyTotpFactor>>, TError, {
2489
+ data: VerifyTotpFactorRequest;
2063
2490
  }, TContext>;
2064
- type settingsResponse200 = {
2065
- data: SettingsResponse;
2066
- status: 200;
2067
- };
2068
- type settingsResponse403 = {
2069
- data: Settings403;
2070
- status: 403;
2071
- };
2072
- type settingsResponseSuccess = settingsResponse200 & {
2073
- headers: Headers;
2074
- };
2075
- type settingsResponseError = settingsResponse403 & {
2076
- headers: Headers;
2077
- };
2078
- type settingsResponse = settingsResponseSuccess | settingsResponseError;
2079
- declare const getSettingsUrl: () => string;
2080
- declare const settings: (options?: RequestInit) => Promise<settingsResponse>;
2081
- declare const getSettingsQueryKey: () => readonly ["https://api.workos.com/_widgets/settings"];
2082
- declare const getSettingsQueryOptions: <TData = Awaited<ReturnType<typeof settings>>, TError = Settings403>(options?: {
2083
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof settings>>, TError, TData>>;
2084
- fetch?: RequestInit;
2085
- }) => UseQueryOptions<Awaited<ReturnType<typeof settings>>, TError, TData> & {
2086
- queryKey: DataTag<QueryKey, TData, TError>;
2087
- };
2088
- type SettingsQueryResult = NonNullable<Awaited<ReturnType<typeof settings>>>;
2089
- type SettingsQueryError = Settings403;
2090
- declare function useSettings<TData = Awaited<ReturnType<typeof settings>>, TError = Settings403>(options: {
2091
- query: Partial<UseQueryOptions<Awaited<ReturnType<typeof settings>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof settings>>, TError, Awaited<ReturnType<typeof settings>>>, "initialData">;
2092
- fetch?: RequestInit;
2093
- }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
2094
- queryKey: DataTag<QueryKey, TData, TError>;
2095
- };
2096
- declare function useSettings<TData = Awaited<ReturnType<typeof settings>>, TError = Settings403>(options?: {
2097
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof settings>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof settings>>, TError, Awaited<ReturnType<typeof settings>>>, "initialData">;
2098
- fetch?: RequestInit;
2099
- }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
2100
- queryKey: DataTag<QueryKey, TData, TError>;
2101
- };
2102
- declare function useSettings<TData = Awaited<ReturnType<typeof settings>>, TError = Settings403>(options?: {
2103
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof settings>>, TError, TData>>;
2104
- fetch?: RequestInit;
2105
- }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
2106
- queryKey: DataTag<QueryKey, TData, TError>;
2107
- };
2108
- type listOrganizationDomainsResponse200 = {
2109
- data: ListOrganizationDomains200;
2110
- status: 200;
2111
- };
2112
- type listOrganizationDomainsResponse403 = {
2113
- data: ListOrganizationDomains403;
2114
- status: 403;
2115
- };
2116
- type listOrganizationDomainsResponse404 = {
2117
- data: ListOrganizationDomains404;
2118
- status: 404;
2119
- };
2120
- type listOrganizationDomainsResponseSuccess = listOrganizationDomainsResponse200 & {
2121
- headers: Headers;
2122
- };
2123
- type listOrganizationDomainsResponseError = (listOrganizationDomainsResponse403 | listOrganizationDomainsResponse404) & {
2124
- headers: Headers;
2125
- };
2126
- type listOrganizationDomainsResponse = listOrganizationDomainsResponseSuccess | listOrganizationDomainsResponseError;
2127
- declare const getListOrganizationDomainsUrl: () => string;
2128
- declare const listOrganizationDomains: (options?: RequestInit) => Promise<listOrganizationDomainsResponse>;
2129
- declare const getListOrganizationDomainsQueryKey: () => readonly ["https://api.workos.com/_widgets/admin-portal/organization-domains"];
2130
- declare const getListOrganizationDomainsQueryOptions: <TData = Awaited<ReturnType<typeof listOrganizationDomains>>, TError = ListOrganizationDomains403 | ListOrganizationDomains404>(options?: {
2131
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listOrganizationDomains>>, TError, TData>>;
2132
- fetch?: RequestInit;
2133
- }) => UseQueryOptions<Awaited<ReturnType<typeof listOrganizationDomains>>, TError, TData> & {
2134
- queryKey: DataTag<QueryKey, TData, TError>;
2135
- };
2136
- type ListOrganizationDomainsQueryResult = NonNullable<Awaited<ReturnType<typeof listOrganizationDomains>>>;
2137
- type ListOrganizationDomainsQueryError = ListOrganizationDomains403 | ListOrganizationDomains404;
2138
- declare function useListOrganizationDomains<TData = Awaited<ReturnType<typeof listOrganizationDomains>>, TError = ListOrganizationDomains403 | ListOrganizationDomains404>(options: {
2139
- query: Partial<UseQueryOptions<Awaited<ReturnType<typeof listOrganizationDomains>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof listOrganizationDomains>>, TError, Awaited<ReturnType<typeof listOrganizationDomains>>>, "initialData">;
2140
- fetch?: RequestInit;
2141
- }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
2142
- queryKey: DataTag<QueryKey, TData, TError>;
2143
- };
2144
- declare function useListOrganizationDomains<TData = Awaited<ReturnType<typeof listOrganizationDomains>>, TError = ListOrganizationDomains403 | ListOrganizationDomains404>(options?: {
2145
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listOrganizationDomains>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof listOrganizationDomains>>, TError, Awaited<ReturnType<typeof listOrganizationDomains>>>, "initialData">;
2146
- fetch?: RequestInit;
2147
- }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
2148
- queryKey: DataTag<QueryKey, TData, TError>;
2149
- };
2150
- declare function useListOrganizationDomains<TData = Awaited<ReturnType<typeof listOrganizationDomains>>, TError = ListOrganizationDomains403 | ListOrganizationDomains404>(options?: {
2151
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listOrganizationDomains>>, TError, TData>>;
2152
- fetch?: RequestInit;
2153
- }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
2154
- queryKey: DataTag<QueryKey, TData, TError>;
2155
- };
2156
2491
  type generateAdminPortalLinkResponse201 = {
2157
2492
  data: GenerateAdminPortalLink201;
2158
2493
  status: 201;
@@ -2196,490 +2531,260 @@ declare const useGenerateAdminPortalLink: <TError = GenerateAdminPortalLink403 |
2196
2531
  }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof generateAdminPortalLink>>, TError, {
2197
2532
  params: GenerateAdminPortalLinkParams;
2198
2533
  }, TContext>;
2199
- type deleteOrganizationDomainResponse200 = {
2200
- data: OrganizationDomain;
2201
- status: 200;
2202
- };
2203
- type deleteOrganizationDomainResponse403 = {
2204
- data: DeleteOrganizationDomain403;
2205
- status: 403;
2206
- };
2207
- type deleteOrganizationDomainResponse404 = {
2208
- data: DeleteOrganizationDomain404;
2209
- status: 404;
2210
- };
2211
- type deleteOrganizationDomainResponseSuccess = deleteOrganizationDomainResponse200 & {
2212
- headers: Headers;
2213
- };
2214
- type deleteOrganizationDomainResponseError = (deleteOrganizationDomainResponse403 | deleteOrganizationDomainResponse404) & {
2215
- headers: Headers;
2216
- };
2217
- type deleteOrganizationDomainResponse = deleteOrganizationDomainResponseSuccess | deleteOrganizationDomainResponseError;
2218
- declare const getDeleteOrganizationDomainUrl: (domainId: string) => string;
2219
- declare const deleteOrganizationDomain: (domainId: string, options?: RequestInit) => Promise<deleteOrganizationDomainResponse>;
2220
- declare const getDeleteOrganizationDomainMutationOptions: <TError = DeleteOrganizationDomain403 | DeleteOrganizationDomain404, TContext = unknown>(options?: {
2221
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteOrganizationDomain>>, TError, {
2222
- domainId: string;
2223
- }, TContext>;
2224
- fetch?: RequestInit;
2225
- }) => UseMutationOptions<Awaited<ReturnType<typeof deleteOrganizationDomain>>, TError, {
2226
- domainId: string;
2227
- }, TContext>;
2228
- type DeleteOrganizationDomainMutationResult = NonNullable<Awaited<ReturnType<typeof deleteOrganizationDomain>>>;
2229
- type DeleteOrganizationDomainMutationError = DeleteOrganizationDomain403 | DeleteOrganizationDomain404;
2230
- declare const useDeleteOrganizationDomain: <TError = DeleteOrganizationDomain403 | DeleteOrganizationDomain404, TContext = unknown>(options?: {
2231
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteOrganizationDomain>>, TError, {
2232
- domainId: string;
2233
- }, TContext>;
2234
- fetch?: RequestInit;
2235
- }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof deleteOrganizationDomain>>, TError, {
2236
- domainId: string;
2237
- }, TContext>;
2238
- type reverifyOrganizationDomainResponse200 = {
2239
- data: OrganizationDomain;
2240
- status: 200;
2241
- };
2242
- type reverifyOrganizationDomainResponse403 = {
2243
- data: ReverifyOrganizationDomain403;
2244
- status: 403;
2245
- };
2246
- type reverifyOrganizationDomainResponse404 = {
2247
- data: ReverifyOrganizationDomain404;
2248
- status: 404;
2249
- };
2250
- type reverifyOrganizationDomainResponseSuccess = reverifyOrganizationDomainResponse200 & {
2251
- headers: Headers;
2252
- };
2253
- type reverifyOrganizationDomainResponseError = (reverifyOrganizationDomainResponse403 | reverifyOrganizationDomainResponse404) & {
2254
- headers: Headers;
2255
- };
2256
- type reverifyOrganizationDomainResponse = reverifyOrganizationDomainResponseSuccess | reverifyOrganizationDomainResponseError;
2257
- declare const getReverifyOrganizationDomainUrl: (domainId: string) => string;
2258
- declare const reverifyOrganizationDomain: (domainId: string, options?: RequestInit) => Promise<reverifyOrganizationDomainResponse>;
2259
- declare const getReverifyOrganizationDomainMutationOptions: <TError = ReverifyOrganizationDomain403 | ReverifyOrganizationDomain404, TContext = unknown>(options?: {
2260
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof reverifyOrganizationDomain>>, TError, {
2261
- domainId: string;
2262
- }, TContext>;
2263
- fetch?: RequestInit;
2264
- }) => UseMutationOptions<Awaited<ReturnType<typeof reverifyOrganizationDomain>>, TError, {
2265
- domainId: string;
2266
- }, TContext>;
2267
- type ReverifyOrganizationDomainMutationResult = NonNullable<Awaited<ReturnType<typeof reverifyOrganizationDomain>>>;
2268
- type ReverifyOrganizationDomainMutationError = ReverifyOrganizationDomain403 | ReverifyOrganizationDomain404;
2269
- declare const useReverifyOrganizationDomain: <TError = ReverifyOrganizationDomain403 | ReverifyOrganizationDomain404, TContext = unknown>(options?: {
2270
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof reverifyOrganizationDomain>>, TError, {
2271
- domainId: string;
2272
- }, TContext>;
2273
- fetch?: RequestInit;
2274
- }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof reverifyOrganizationDomain>>, TError, {
2275
- domainId: string;
2276
- }, TContext>;
2277
- type listSsoConnectionsResponse200 = {
2278
- data: SsoConnection[];
2534
+ type listOrganizationDomainsResponse200 = {
2535
+ data: ListOrganizationDomains200;
2279
2536
  status: 200;
2280
2537
  };
2281
- type listSsoConnectionsResponseSuccess = listSsoConnectionsResponse200 & {
2282
- headers: Headers;
2283
- };
2284
- type listSsoConnectionsResponse = listSsoConnectionsResponseSuccess;
2285
- declare const getListSsoConnectionsUrl: () => string;
2286
- declare const listSsoConnections: (options?: RequestInit) => Promise<listSsoConnectionsResponse>;
2287
- declare const getListSsoConnectionsQueryKey: () => readonly ["https://api.workos.com/_widgets/admin-portal/sso-connections"];
2288
- declare const getListSsoConnectionsQueryOptions: <TData = Awaited<ReturnType<typeof listSsoConnections>>, TError = unknown>(options?: {
2289
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listSsoConnections>>, TError, TData>>;
2290
- fetch?: RequestInit;
2291
- }) => UseQueryOptions<Awaited<ReturnType<typeof listSsoConnections>>, TError, TData> & {
2292
- queryKey: DataTag<QueryKey, TData, TError>;
2293
- };
2294
- type ListSsoConnectionsQueryResult = NonNullable<Awaited<ReturnType<typeof listSsoConnections>>>;
2295
- type ListSsoConnectionsQueryError = unknown;
2296
- declare function useListSsoConnections<TData = Awaited<ReturnType<typeof listSsoConnections>>, TError = unknown>(options: {
2297
- query: Partial<UseQueryOptions<Awaited<ReturnType<typeof listSsoConnections>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof listSsoConnections>>, TError, Awaited<ReturnType<typeof listSsoConnections>>>, "initialData">;
2298
- fetch?: RequestInit;
2299
- }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
2300
- queryKey: DataTag<QueryKey, TData, TError>;
2301
- };
2302
- declare function useListSsoConnections<TData = Awaited<ReturnType<typeof listSsoConnections>>, TError = unknown>(options?: {
2303
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listSsoConnections>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof listSsoConnections>>, TError, Awaited<ReturnType<typeof listSsoConnections>>>, "initialData">;
2304
- fetch?: RequestInit;
2305
- }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
2306
- queryKey: DataTag<QueryKey, TData, TError>;
2307
- };
2308
- declare function useListSsoConnections<TData = Awaited<ReturnType<typeof listSsoConnections>>, TError = unknown>(options?: {
2309
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listSsoConnections>>, TError, TData>>;
2310
- fetch?: RequestInit;
2311
- }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
2312
- queryKey: DataTag<QueryKey, TData, TError>;
2313
- };
2314
- type createOrganizationApiKeyResponse201 = {
2315
- data: CreateOrganizationApiKeyResponse;
2316
- status: 201;
2317
- };
2318
- type createOrganizationApiKeyResponse400 = {
2319
- data: CreateOrganizationApiKey400;
2320
- status: 400;
2321
- };
2322
- type createOrganizationApiKeyResponse403 = {
2323
- data: CreateOrganizationApiKey403;
2538
+ type listOrganizationDomainsResponse403 = {
2539
+ data: ListOrganizationDomains403;
2324
2540
  status: 403;
2325
2541
  };
2326
- type createOrganizationApiKeyResponse404 = {
2327
- data: CreateOrganizationApiKey404;
2542
+ type listOrganizationDomainsResponse404 = {
2543
+ data: ListOrganizationDomains404;
2328
2544
  status: 404;
2329
2545
  };
2330
- type createOrganizationApiKeyResponse422 = {
2331
- data: CreateOrganizationApiKey422;
2332
- status: 422;
2333
- };
2334
- type createOrganizationApiKeyResponseSuccess = createOrganizationApiKeyResponse201 & {
2335
- headers: Headers;
2336
- };
2337
- type createOrganizationApiKeyResponseError = (createOrganizationApiKeyResponse400 | createOrganizationApiKeyResponse403 | createOrganizationApiKeyResponse404 | createOrganizationApiKeyResponse422) & {
2338
- headers: Headers;
2339
- };
2340
- type createOrganizationApiKeyResponse = createOrganizationApiKeyResponseSuccess | createOrganizationApiKeyResponseError;
2341
- declare const getCreateOrganizationApiKeyUrl: () => string;
2342
- declare const createOrganizationApiKey: (createOrganizationApiKeyRequest: CreateOrganizationApiKeyRequest, options?: RequestInit) => Promise<createOrganizationApiKeyResponse>;
2343
- declare const getCreateOrganizationApiKeyMutationOptions: <TError = CreateOrganizationApiKey400 | CreateOrganizationApiKey403 | CreateOrganizationApiKey404 | CreateOrganizationApiKey422, TContext = unknown>(options?: {
2344
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof createOrganizationApiKey>>, TError, {
2345
- data: CreateOrganizationApiKeyRequest;
2346
- }, TContext>;
2347
- fetch?: RequestInit;
2348
- }) => UseMutationOptions<Awaited<ReturnType<typeof createOrganizationApiKey>>, TError, {
2349
- data: CreateOrganizationApiKeyRequest;
2350
- }, TContext>;
2351
- type CreateOrganizationApiKeyMutationResult = NonNullable<Awaited<ReturnType<typeof createOrganizationApiKey>>>;
2352
- type CreateOrganizationApiKeyMutationBody = CreateOrganizationApiKeyRequest;
2353
- type CreateOrganizationApiKeyMutationError = CreateOrganizationApiKey400 | CreateOrganizationApiKey403 | CreateOrganizationApiKey404 | CreateOrganizationApiKey422;
2354
- declare const useCreateOrganizationApiKey: <TError = CreateOrganizationApiKey400 | CreateOrganizationApiKey403 | CreateOrganizationApiKey404 | CreateOrganizationApiKey422, TContext = unknown>(options?: {
2355
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof createOrganizationApiKey>>, TError, {
2356
- data: CreateOrganizationApiKeyRequest;
2357
- }, TContext>;
2358
- fetch?: RequestInit;
2359
- }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof createOrganizationApiKey>>, TError, {
2360
- data: CreateOrganizationApiKeyRequest;
2361
- }, TContext>;
2362
- type listOrganizationApiKeysResponse200 = {
2363
- data: ListOrganizationApiKeysResponse;
2364
- status: 200;
2365
- };
2366
- type listOrganizationApiKeysResponse400 = {
2367
- data: ListOrganizationApiKeys400;
2368
- status: 400;
2369
- };
2370
- type listOrganizationApiKeysResponse403 = {
2371
- data: ListOrganizationApiKeys403;
2372
- status: 403;
2373
- };
2374
- type listOrganizationApiKeysResponseSuccess = listOrganizationApiKeysResponse200 & {
2375
- headers: Headers;
2376
- };
2377
- type listOrganizationApiKeysResponseError = (listOrganizationApiKeysResponse400 | listOrganizationApiKeysResponse403) & {
2378
- headers: Headers;
2379
- };
2380
- type listOrganizationApiKeysResponse = listOrganizationApiKeysResponseSuccess | listOrganizationApiKeysResponseError;
2381
- declare const getListOrganizationApiKeysUrl: (params?: ListOrganizationApiKeysParams) => string;
2382
- declare const listOrganizationApiKeys: (params?: ListOrganizationApiKeysParams, options?: RequestInit) => Promise<listOrganizationApiKeysResponse>;
2383
- declare const getListOrganizationApiKeysQueryKey: (params?: ListOrganizationApiKeysParams) => readonly ["https://api.workos.com/_widgets/ApiKeys/organization-api-keys", ...ListOrganizationApiKeysParams[]];
2384
- declare const getListOrganizationApiKeysQueryOptions: <TData = Awaited<ReturnType<typeof listOrganizationApiKeys>>, TError = ListOrganizationApiKeys400 | ListOrganizationApiKeys403>(params?: ListOrganizationApiKeysParams, options?: {
2385
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listOrganizationApiKeys>>, TError, TData>>;
2386
- fetch?: RequestInit;
2387
- }) => UseQueryOptions<Awaited<ReturnType<typeof listOrganizationApiKeys>>, TError, TData> & {
2388
- queryKey: DataTag<QueryKey, TData, TError>;
2389
- };
2390
- type ListOrganizationApiKeysQueryResult = NonNullable<Awaited<ReturnType<typeof listOrganizationApiKeys>>>;
2391
- type ListOrganizationApiKeysQueryError = ListOrganizationApiKeys400 | ListOrganizationApiKeys403;
2392
- declare function useListOrganizationApiKeys<TData = Awaited<ReturnType<typeof listOrganizationApiKeys>>, TError = ListOrganizationApiKeys400 | ListOrganizationApiKeys403>(params: undefined | ListOrganizationApiKeysParams, options: {
2393
- query: Partial<UseQueryOptions<Awaited<ReturnType<typeof listOrganizationApiKeys>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof listOrganizationApiKeys>>, TError, Awaited<ReturnType<typeof listOrganizationApiKeys>>>, "initialData">;
2394
- fetch?: RequestInit;
2395
- }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
2396
- queryKey: DataTag<QueryKey, TData, TError>;
2397
- };
2398
- declare function useListOrganizationApiKeys<TData = Awaited<ReturnType<typeof listOrganizationApiKeys>>, TError = ListOrganizationApiKeys400 | ListOrganizationApiKeys403>(params?: ListOrganizationApiKeysParams, options?: {
2399
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listOrganizationApiKeys>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof listOrganizationApiKeys>>, TError, Awaited<ReturnType<typeof listOrganizationApiKeys>>>, "initialData">;
2400
- fetch?: RequestInit;
2401
- }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
2402
- queryKey: DataTag<QueryKey, TData, TError>;
2403
- };
2404
- declare function useListOrganizationApiKeys<TData = Awaited<ReturnType<typeof listOrganizationApiKeys>>, TError = ListOrganizationApiKeys400 | ListOrganizationApiKeys403>(params?: ListOrganizationApiKeysParams, options?: {
2405
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listOrganizationApiKeys>>, TError, TData>>;
2406
- fetch?: RequestInit;
2407
- }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
2408
- queryKey: DataTag<QueryKey, TData, TError>;
2409
- };
2410
- type listOrganizationApiKeyPermissionsResponse200 = {
2411
- data: ListOrganizationApiKeyPermissionsResponse;
2412
- status: 200;
2413
- };
2414
- type listOrganizationApiKeyPermissionsResponse400 = {
2415
- data: ListOrganizationApiKeyPermissions400;
2416
- status: 400;
2417
- };
2418
- type listOrganizationApiKeyPermissionsResponse403 = {
2419
- data: ListOrganizationApiKeyPermissions403;
2420
- status: 403;
2421
- };
2422
- type listOrganizationApiKeyPermissionsResponseSuccess = listOrganizationApiKeyPermissionsResponse200 & {
2546
+ type listOrganizationDomainsResponseSuccess = listOrganizationDomainsResponse200 & {
2423
2547
  headers: Headers;
2424
2548
  };
2425
- type listOrganizationApiKeyPermissionsResponseError = (listOrganizationApiKeyPermissionsResponse400 | listOrganizationApiKeyPermissionsResponse403) & {
2549
+ type listOrganizationDomainsResponseError = (listOrganizationDomainsResponse403 | listOrganizationDomainsResponse404) & {
2426
2550
  headers: Headers;
2427
2551
  };
2428
- type listOrganizationApiKeyPermissionsResponse = listOrganizationApiKeyPermissionsResponseSuccess | listOrganizationApiKeyPermissionsResponseError;
2429
- declare const getListOrganizationApiKeyPermissionsUrl: (params?: ListOrganizationApiKeyPermissionsParams) => string;
2430
- declare const listOrganizationApiKeyPermissions: (params?: ListOrganizationApiKeyPermissionsParams, options?: RequestInit) => Promise<listOrganizationApiKeyPermissionsResponse>;
2431
- declare const getListOrganizationApiKeyPermissionsQueryKey: (params?: ListOrganizationApiKeyPermissionsParams) => readonly ["https://api.workos.com/_widgets/ApiKeys/permissions", ...ListOrganizationApiKeyPermissionsParams[]];
2432
- declare const getListOrganizationApiKeyPermissionsQueryOptions: <TData = Awaited<ReturnType<typeof listOrganizationApiKeyPermissions>>, TError = ListOrganizationApiKeyPermissions400 | ListOrganizationApiKeyPermissions403>(params?: ListOrganizationApiKeyPermissionsParams, options?: {
2433
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listOrganizationApiKeyPermissions>>, TError, TData>>;
2552
+ type listOrganizationDomainsResponse = listOrganizationDomainsResponseSuccess | listOrganizationDomainsResponseError;
2553
+ declare const getListOrganizationDomainsUrl: () => string;
2554
+ declare const listOrganizationDomains: (options?: RequestInit) => Promise<listOrganizationDomainsResponse>;
2555
+ declare const getListOrganizationDomainsQueryKey: () => readonly ["https://api.workos.com/_widgets/admin-portal/organization-domains"];
2556
+ declare const getListOrganizationDomainsQueryOptions: <TData = Awaited<ReturnType<typeof listOrganizationDomains>>, TError = ListOrganizationDomains403 | ListOrganizationDomains404>(options?: {
2557
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listOrganizationDomains>>, TError, TData>>;
2434
2558
  fetch?: RequestInit;
2435
- }) => UseQueryOptions<Awaited<ReturnType<typeof listOrganizationApiKeyPermissions>>, TError, TData> & {
2559
+ }) => UseQueryOptions<Awaited<ReturnType<typeof listOrganizationDomains>>, TError, TData> & {
2436
2560
  queryKey: DataTag<QueryKey, TData, TError>;
2437
2561
  };
2438
- type ListOrganizationApiKeyPermissionsQueryResult = NonNullable<Awaited<ReturnType<typeof listOrganizationApiKeyPermissions>>>;
2439
- type ListOrganizationApiKeyPermissionsQueryError = ListOrganizationApiKeyPermissions400 | ListOrganizationApiKeyPermissions403;
2440
- declare function useListOrganizationApiKeyPermissions<TData = Awaited<ReturnType<typeof listOrganizationApiKeyPermissions>>, TError = ListOrganizationApiKeyPermissions400 | ListOrganizationApiKeyPermissions403>(params: undefined | ListOrganizationApiKeyPermissionsParams, options: {
2441
- query: Partial<UseQueryOptions<Awaited<ReturnType<typeof listOrganizationApiKeyPermissions>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof listOrganizationApiKeyPermissions>>, TError, Awaited<ReturnType<typeof listOrganizationApiKeyPermissions>>>, "initialData">;
2562
+ type ListOrganizationDomainsQueryResult = NonNullable<Awaited<ReturnType<typeof listOrganizationDomains>>>;
2563
+ type ListOrganizationDomainsQueryError = ListOrganizationDomains403 | ListOrganizationDomains404;
2564
+ declare function useListOrganizationDomains<TData = Awaited<ReturnType<typeof listOrganizationDomains>>, TError = ListOrganizationDomains403 | ListOrganizationDomains404>(options: {
2565
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof listOrganizationDomains>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof listOrganizationDomains>>, TError, Awaited<ReturnType<typeof listOrganizationDomains>>>, "initialData">;
2442
2566
  fetch?: RequestInit;
2443
2567
  }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
2444
2568
  queryKey: DataTag<QueryKey, TData, TError>;
2445
2569
  };
2446
- declare function useListOrganizationApiKeyPermissions<TData = Awaited<ReturnType<typeof listOrganizationApiKeyPermissions>>, TError = ListOrganizationApiKeyPermissions400 | ListOrganizationApiKeyPermissions403>(params?: ListOrganizationApiKeyPermissionsParams, options?: {
2447
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listOrganizationApiKeyPermissions>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof listOrganizationApiKeyPermissions>>, TError, Awaited<ReturnType<typeof listOrganizationApiKeyPermissions>>>, "initialData">;
2570
+ declare function useListOrganizationDomains<TData = Awaited<ReturnType<typeof listOrganizationDomains>>, TError = ListOrganizationDomains403 | ListOrganizationDomains404>(options?: {
2571
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listOrganizationDomains>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof listOrganizationDomains>>, TError, Awaited<ReturnType<typeof listOrganizationDomains>>>, "initialData">;
2448
2572
  fetch?: RequestInit;
2449
2573
  }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
2450
2574
  queryKey: DataTag<QueryKey, TData, TError>;
2451
2575
  };
2452
- declare function useListOrganizationApiKeyPermissions<TData = Awaited<ReturnType<typeof listOrganizationApiKeyPermissions>>, TError = ListOrganizationApiKeyPermissions400 | ListOrganizationApiKeyPermissions403>(params?: ListOrganizationApiKeyPermissionsParams, options?: {
2453
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listOrganizationApiKeyPermissions>>, TError, TData>>;
2576
+ declare function useListOrganizationDomains<TData = Awaited<ReturnType<typeof listOrganizationDomains>>, TError = ListOrganizationDomains403 | ListOrganizationDomains404>(options?: {
2577
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listOrganizationDomains>>, TError, TData>>;
2454
2578
  fetch?: RequestInit;
2455
2579
  }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
2456
2580
  queryKey: DataTag<QueryKey, TData, TError>;
2457
2581
  };
2458
- type deleteOrganizationApiKeyResponse200 = {
2459
- data: DeleteOrganizationApiKey200;
2582
+ type deleteOrganizationDomainResponse200 = {
2583
+ data: OrganizationDomain;
2460
2584
  status: 200;
2461
2585
  };
2462
- type deleteOrganizationApiKeyResponse403 = {
2463
- data: DeleteOrganizationApiKey403;
2586
+ type deleteOrganizationDomainResponse403 = {
2587
+ data: DeleteOrganizationDomain403;
2464
2588
  status: 403;
2465
2589
  };
2466
- type deleteOrganizationApiKeyResponse404 = {
2467
- data: DeleteOrganizationApiKey404;
2590
+ type deleteOrganizationDomainResponse404 = {
2591
+ data: DeleteOrganizationDomain404;
2468
2592
  status: 404;
2469
2593
  };
2470
- type deleteOrganizationApiKeyResponseSuccess = deleteOrganizationApiKeyResponse200 & {
2594
+ type deleteOrganizationDomainResponseSuccess = deleteOrganizationDomainResponse200 & {
2471
2595
  headers: Headers;
2472
2596
  };
2473
- type deleteOrganizationApiKeyResponseError = (deleteOrganizationApiKeyResponse403 | deleteOrganizationApiKeyResponse404) & {
2597
+ type deleteOrganizationDomainResponseError = (deleteOrganizationDomainResponse403 | deleteOrganizationDomainResponse404) & {
2474
2598
  headers: Headers;
2475
2599
  };
2476
- type deleteOrganizationApiKeyResponse = deleteOrganizationApiKeyResponseSuccess | deleteOrganizationApiKeyResponseError;
2477
- declare const getDeleteOrganizationApiKeyUrl: (apiKeyId: string) => string;
2478
- declare const deleteOrganizationApiKey: (apiKeyId: string, options?: RequestInit) => Promise<deleteOrganizationApiKeyResponse>;
2479
- declare const getDeleteOrganizationApiKeyMutationOptions: <TError = DeleteOrganizationApiKey403 | DeleteOrganizationApiKey404, TContext = unknown>(options?: {
2480
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteOrganizationApiKey>>, TError, {
2481
- apiKeyId: string;
2600
+ type deleteOrganizationDomainResponse = deleteOrganizationDomainResponseSuccess | deleteOrganizationDomainResponseError;
2601
+ declare const getDeleteOrganizationDomainUrl: (domainId: string) => string;
2602
+ declare const deleteOrganizationDomain: (domainId: string, options?: RequestInit) => Promise<deleteOrganizationDomainResponse>;
2603
+ declare const getDeleteOrganizationDomainMutationOptions: <TError = DeleteOrganizationDomain403 | DeleteOrganizationDomain404, TContext = unknown>(options?: {
2604
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteOrganizationDomain>>, TError, {
2605
+ domainId: string;
2482
2606
  }, TContext>;
2483
2607
  fetch?: RequestInit;
2484
- }) => UseMutationOptions<Awaited<ReturnType<typeof deleteOrganizationApiKey>>, TError, {
2485
- apiKeyId: string;
2608
+ }) => UseMutationOptions<Awaited<ReturnType<typeof deleteOrganizationDomain>>, TError, {
2609
+ domainId: string;
2486
2610
  }, TContext>;
2487
- type DeleteOrganizationApiKeyMutationResult = NonNullable<Awaited<ReturnType<typeof deleteOrganizationApiKey>>>;
2488
- type DeleteOrganizationApiKeyMutationError = DeleteOrganizationApiKey403 | DeleteOrganizationApiKey404;
2489
- declare const useDeleteOrganizationApiKey: <TError = DeleteOrganizationApiKey403 | DeleteOrganizationApiKey404, TContext = unknown>(options?: {
2490
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteOrganizationApiKey>>, TError, {
2491
- apiKeyId: string;
2611
+ type DeleteOrganizationDomainMutationResult = NonNullable<Awaited<ReturnType<typeof deleteOrganizationDomain>>>;
2612
+ type DeleteOrganizationDomainMutationError = DeleteOrganizationDomain403 | DeleteOrganizationDomain404;
2613
+ declare const useDeleteOrganizationDomain: <TError = DeleteOrganizationDomain403 | DeleteOrganizationDomain404, TContext = unknown>(options?: {
2614
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteOrganizationDomain>>, TError, {
2615
+ domainId: string;
2492
2616
  }, TContext>;
2493
2617
  fetch?: RequestInit;
2494
- }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof deleteOrganizationApiKey>>, TError, {
2495
- apiKeyId: string;
2618
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof deleteOrganizationDomain>>, TError, {
2619
+ domainId: string;
2496
2620
  }, TContext>;
2497
- type myDataIntegrationsResponse200 = {
2498
- data: DataIntegrationsResponse;
2621
+ type reverifyOrganizationDomainResponse200 = {
2622
+ data: OrganizationDomain;
2499
2623
  status: 200;
2500
2624
  };
2501
- type myDataIntegrationsResponse403 = {
2502
- data: MyDataIntegrations403;
2625
+ type reverifyOrganizationDomainResponse403 = {
2626
+ data: ReverifyOrganizationDomain403;
2503
2627
  status: 403;
2504
2628
  };
2505
- type myDataIntegrationsResponseSuccess = myDataIntegrationsResponse200 & {
2629
+ type reverifyOrganizationDomainResponse404 = {
2630
+ data: ReverifyOrganizationDomain404;
2631
+ status: 404;
2632
+ };
2633
+ type reverifyOrganizationDomainResponseSuccess = reverifyOrganizationDomainResponse200 & {
2506
2634
  headers: Headers;
2507
2635
  };
2508
- type myDataIntegrationsResponseError = myDataIntegrationsResponse403 & {
2636
+ type reverifyOrganizationDomainResponseError = (reverifyOrganizationDomainResponse403 | reverifyOrganizationDomainResponse404) & {
2509
2637
  headers: Headers;
2510
2638
  };
2511
- type myDataIntegrationsResponse = myDataIntegrationsResponseSuccess | myDataIntegrationsResponseError;
2512
- declare const getMyDataIntegrationsUrl: () => string;
2513
- declare const myDataIntegrations: (options?: RequestInit) => Promise<myDataIntegrationsResponse>;
2514
- declare const getMyDataIntegrationsQueryKey: () => readonly ["https://api.workos.com/_widgets/DataIntegrations/mine"];
2515
- declare const getMyDataIntegrationsQueryOptions: <TData = Awaited<ReturnType<typeof myDataIntegrations>>, TError = MyDataIntegrations403>(options?: {
2516
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof myDataIntegrations>>, TError, TData>>;
2639
+ type reverifyOrganizationDomainResponse = reverifyOrganizationDomainResponseSuccess | reverifyOrganizationDomainResponseError;
2640
+ declare const getReverifyOrganizationDomainUrl: (domainId: string) => string;
2641
+ declare const reverifyOrganizationDomain: (domainId: string, options?: RequestInit) => Promise<reverifyOrganizationDomainResponse>;
2642
+ declare const getReverifyOrganizationDomainMutationOptions: <TError = ReverifyOrganizationDomain403 | ReverifyOrganizationDomain404, TContext = unknown>(options?: {
2643
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof reverifyOrganizationDomain>>, TError, {
2644
+ domainId: string;
2645
+ }, TContext>;
2517
2646
  fetch?: RequestInit;
2518
- }) => UseQueryOptions<Awaited<ReturnType<typeof myDataIntegrations>>, TError, TData> & {
2647
+ }) => UseMutationOptions<Awaited<ReturnType<typeof reverifyOrganizationDomain>>, TError, {
2648
+ domainId: string;
2649
+ }, TContext>;
2650
+ type ReverifyOrganizationDomainMutationResult = NonNullable<Awaited<ReturnType<typeof reverifyOrganizationDomain>>>;
2651
+ type ReverifyOrganizationDomainMutationError = ReverifyOrganizationDomain403 | ReverifyOrganizationDomain404;
2652
+ declare const useReverifyOrganizationDomain: <TError = ReverifyOrganizationDomain403 | ReverifyOrganizationDomain404, TContext = unknown>(options?: {
2653
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof reverifyOrganizationDomain>>, TError, {
2654
+ domainId: string;
2655
+ }, TContext>;
2656
+ fetch?: RequestInit;
2657
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof reverifyOrganizationDomain>>, TError, {
2658
+ domainId: string;
2659
+ }, TContext>;
2660
+ type listSsoConnectionsResponse200 = {
2661
+ data: SsoConnection[];
2662
+ status: 200;
2663
+ };
2664
+ type listSsoConnectionsResponseSuccess = listSsoConnectionsResponse200 & {
2665
+ headers: Headers;
2666
+ };
2667
+ type listSsoConnectionsResponse = listSsoConnectionsResponseSuccess;
2668
+ declare const getListSsoConnectionsUrl: () => string;
2669
+ declare const listSsoConnections: (options?: RequestInit) => Promise<listSsoConnectionsResponse>;
2670
+ declare const getListSsoConnectionsQueryKey: () => readonly ["https://api.workos.com/_widgets/admin-portal/sso-connections"];
2671
+ declare const getListSsoConnectionsQueryOptions: <TData = Awaited<ReturnType<typeof listSsoConnections>>, TError = unknown>(options?: {
2672
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listSsoConnections>>, TError, TData>>;
2673
+ fetch?: RequestInit;
2674
+ }) => UseQueryOptions<Awaited<ReturnType<typeof listSsoConnections>>, TError, TData> & {
2519
2675
  queryKey: DataTag<QueryKey, TData, TError>;
2520
2676
  };
2521
- type MyDataIntegrationsQueryResult = NonNullable<Awaited<ReturnType<typeof myDataIntegrations>>>;
2522
- type MyDataIntegrationsQueryError = MyDataIntegrations403;
2523
- declare function useMyDataIntegrations<TData = Awaited<ReturnType<typeof myDataIntegrations>>, TError = MyDataIntegrations403>(options: {
2524
- query: Partial<UseQueryOptions<Awaited<ReturnType<typeof myDataIntegrations>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof myDataIntegrations>>, TError, Awaited<ReturnType<typeof myDataIntegrations>>>, "initialData">;
2677
+ type ListSsoConnectionsQueryResult = NonNullable<Awaited<ReturnType<typeof listSsoConnections>>>;
2678
+ type ListSsoConnectionsQueryError = unknown;
2679
+ declare function useListSsoConnections<TData = Awaited<ReturnType<typeof listSsoConnections>>, TError = unknown>(options: {
2680
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof listSsoConnections>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof listSsoConnections>>, TError, Awaited<ReturnType<typeof listSsoConnections>>>, "initialData">;
2525
2681
  fetch?: RequestInit;
2526
2682
  }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
2527
2683
  queryKey: DataTag<QueryKey, TData, TError>;
2528
2684
  };
2529
- declare function useMyDataIntegrations<TData = Awaited<ReturnType<typeof myDataIntegrations>>, TError = MyDataIntegrations403>(options?: {
2530
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof myDataIntegrations>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof myDataIntegrations>>, TError, Awaited<ReturnType<typeof myDataIntegrations>>>, "initialData">;
2685
+ declare function useListSsoConnections<TData = Awaited<ReturnType<typeof listSsoConnections>>, TError = unknown>(options?: {
2686
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listSsoConnections>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof listSsoConnections>>, TError, Awaited<ReturnType<typeof listSsoConnections>>>, "initialData">;
2531
2687
  fetch?: RequestInit;
2532
2688
  }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
2533
2689
  queryKey: DataTag<QueryKey, TData, TError>;
2534
2690
  };
2535
- declare function useMyDataIntegrations<TData = Awaited<ReturnType<typeof myDataIntegrations>>, TError = MyDataIntegrations403>(options?: {
2536
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof myDataIntegrations>>, TError, TData>>;
2691
+ declare function useListSsoConnections<TData = Awaited<ReturnType<typeof listSsoConnections>>, TError = unknown>(options?: {
2692
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listSsoConnections>>, TError, TData>>;
2537
2693
  fetch?: RequestInit;
2538
2694
  }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
2539
2695
  queryKey: DataTag<QueryKey, TData, TError>;
2540
2696
  };
2541
- type getDataIntegrationAuthorizeUrlResponse200 = {
2542
- data: GetDataIntegrationAuthorizeUrlResponse;
2697
+ type listDirectoriesResponse200 = {
2698
+ data: DirectoriesResponse;
2543
2699
  status: 200;
2544
2700
  };
2545
- type getDataIntegrationAuthorizeUrlResponse400 = {
2546
- data: GetDataIntegrationAuthorizeUrl400;
2547
- status: 400;
2548
- };
2549
- type getDataIntegrationAuthorizeUrlResponse403 = {
2550
- data: GetDataIntegrationAuthorizeUrl403;
2701
+ type listDirectoriesResponse403 = {
2702
+ data: ListDirectories403;
2551
2703
  status: 403;
2552
2704
  };
2553
- type getDataIntegrationAuthorizeUrlResponse404 = {
2554
- data: GetDataIntegrationAuthorizeUrl404;
2705
+ type listDirectoriesResponse404 = {
2706
+ data: ListDirectories404;
2555
2707
  status: 404;
2556
2708
  };
2557
- type getDataIntegrationAuthorizeUrlResponseSuccess = getDataIntegrationAuthorizeUrlResponse200 & {
2709
+ type listDirectoriesResponseSuccess = listDirectoriesResponse200 & {
2558
2710
  headers: Headers;
2559
2711
  };
2560
- type getDataIntegrationAuthorizeUrlResponseError = (getDataIntegrationAuthorizeUrlResponse400 | getDataIntegrationAuthorizeUrlResponse403 | getDataIntegrationAuthorizeUrlResponse404) & {
2712
+ type listDirectoriesResponseError = (listDirectoriesResponse403 | listDirectoriesResponse404) & {
2561
2713
  headers: Headers;
2562
2714
  };
2563
- type getDataIntegrationAuthorizeUrlResponse = getDataIntegrationAuthorizeUrlResponseSuccess | getDataIntegrationAuthorizeUrlResponseError;
2564
- declare const getGetDataIntegrationAuthorizeUrlUrl: (slug: string, params?: GetDataIntegrationAuthorizeUrlParams) => string;
2565
- declare const getDataIntegrationAuthorizeUrl: (slug: string, params?: GetDataIntegrationAuthorizeUrlParams, options?: RequestInit) => Promise<getDataIntegrationAuthorizeUrlResponse>;
2566
- declare const getGetDataIntegrationAuthorizeUrlQueryKey: (slug?: string, params?: GetDataIntegrationAuthorizeUrlParams) => readonly [`https://api.workos.com/_widgets/DataIntegrations/${string}/authorize`, ...GetDataIntegrationAuthorizeUrlParams[]];
2567
- declare const getGetDataIntegrationAuthorizeUrlQueryOptions: <TData = Awaited<ReturnType<typeof getDataIntegrationAuthorizeUrl>>, TError = GetDataIntegrationAuthorizeUrl400 | GetDataIntegrationAuthorizeUrl403 | GetDataIntegrationAuthorizeUrl404>(slug: string, params?: GetDataIntegrationAuthorizeUrlParams, options?: {
2568
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getDataIntegrationAuthorizeUrl>>, TError, TData>>;
2715
+ type listDirectoriesResponse = listDirectoriesResponseSuccess | listDirectoriesResponseError;
2716
+ declare const getListDirectoriesUrl: () => string;
2717
+ declare const listDirectories: (options?: RequestInit) => Promise<listDirectoriesResponse>;
2718
+ declare const getListDirectoriesQueryKey: () => readonly ["https://api.workos.com/_widgets/directory-sync/directories"];
2719
+ declare const getListDirectoriesQueryOptions: <TData = Awaited<ReturnType<typeof listDirectories>>, TError = ListDirectories403 | ListDirectories404>(options?: {
2720
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listDirectories>>, TError, TData>>;
2569
2721
  fetch?: RequestInit;
2570
- }) => UseQueryOptions<Awaited<ReturnType<typeof getDataIntegrationAuthorizeUrl>>, TError, TData> & {
2722
+ }) => UseQueryOptions<Awaited<ReturnType<typeof listDirectories>>, TError, TData> & {
2571
2723
  queryKey: DataTag<QueryKey, TData, TError>;
2572
2724
  };
2573
- type GetDataIntegrationAuthorizeUrlQueryResult = NonNullable<Awaited<ReturnType<typeof getDataIntegrationAuthorizeUrl>>>;
2574
- type GetDataIntegrationAuthorizeUrlQueryError = GetDataIntegrationAuthorizeUrl400 | GetDataIntegrationAuthorizeUrl403 | GetDataIntegrationAuthorizeUrl404;
2575
- declare function useGetDataIntegrationAuthorizeUrl<TData = Awaited<ReturnType<typeof getDataIntegrationAuthorizeUrl>>, TError = GetDataIntegrationAuthorizeUrl400 | GetDataIntegrationAuthorizeUrl403 | GetDataIntegrationAuthorizeUrl404>(slug: string, params: undefined | GetDataIntegrationAuthorizeUrlParams, options: {
2576
- query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getDataIntegrationAuthorizeUrl>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getDataIntegrationAuthorizeUrl>>, TError, Awaited<ReturnType<typeof getDataIntegrationAuthorizeUrl>>>, "initialData">;
2725
+ type ListDirectoriesQueryResult = NonNullable<Awaited<ReturnType<typeof listDirectories>>>;
2726
+ type ListDirectoriesQueryError = ListDirectories403 | ListDirectories404;
2727
+ declare function useListDirectories<TData = Awaited<ReturnType<typeof listDirectories>>, TError = ListDirectories403 | ListDirectories404>(options: {
2728
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof listDirectories>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof listDirectories>>, TError, Awaited<ReturnType<typeof listDirectories>>>, "initialData">;
2577
2729
  fetch?: RequestInit;
2578
2730
  }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
2579
2731
  queryKey: DataTag<QueryKey, TData, TError>;
2580
2732
  };
2581
- declare function useGetDataIntegrationAuthorizeUrl<TData = Awaited<ReturnType<typeof getDataIntegrationAuthorizeUrl>>, TError = GetDataIntegrationAuthorizeUrl400 | GetDataIntegrationAuthorizeUrl403 | GetDataIntegrationAuthorizeUrl404>(slug: string, params?: GetDataIntegrationAuthorizeUrlParams, options?: {
2582
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getDataIntegrationAuthorizeUrl>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getDataIntegrationAuthorizeUrl>>, TError, Awaited<ReturnType<typeof getDataIntegrationAuthorizeUrl>>>, "initialData">;
2733
+ declare function useListDirectories<TData = Awaited<ReturnType<typeof listDirectories>>, TError = ListDirectories403 | ListDirectories404>(options?: {
2734
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listDirectories>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof listDirectories>>, TError, Awaited<ReturnType<typeof listDirectories>>>, "initialData">;
2583
2735
  fetch?: RequestInit;
2584
2736
  }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
2585
2737
  queryKey: DataTag<QueryKey, TData, TError>;
2586
2738
  };
2587
- declare function useGetDataIntegrationAuthorizeUrl<TData = Awaited<ReturnType<typeof getDataIntegrationAuthorizeUrl>>, TError = GetDataIntegrationAuthorizeUrl400 | GetDataIntegrationAuthorizeUrl403 | GetDataIntegrationAuthorizeUrl404>(slug: string, params?: GetDataIntegrationAuthorizeUrlParams, options?: {
2588
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getDataIntegrationAuthorizeUrl>>, TError, TData>>;
2739
+ declare function useListDirectories<TData = Awaited<ReturnType<typeof listDirectories>>, TError = ListDirectories403 | ListDirectories404>(options?: {
2740
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listDirectories>>, TError, TData>>;
2589
2741
  fetch?: RequestInit;
2590
2742
  }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
2591
2743
  queryKey: DataTag<QueryKey, TData, TError>;
2592
2744
  };
2593
- type getDataInstallationAuthorizationStatusResponse200 = {
2594
- data: GetAuthorizationStatusResponse;
2745
+ type settingsResponse200 = {
2746
+ data: SettingsResponse;
2595
2747
  status: 200;
2596
2748
  };
2597
- type getDataInstallationAuthorizationStatusResponse400 = {
2598
- data: GetDataInstallationAuthorizationStatus400;
2599
- status: 400;
2600
- };
2601
- type getDataInstallationAuthorizationStatusResponse403 = {
2602
- data: GetDataInstallationAuthorizationStatus403;
2749
+ type settingsResponse403 = {
2750
+ data: Settings403;
2603
2751
  status: 403;
2604
2752
  };
2605
- type getDataInstallationAuthorizationStatusResponse404 = {
2606
- data: GetDataInstallationAuthorizationStatus404;
2607
- status: 404;
2608
- };
2609
- type getDataInstallationAuthorizationStatusResponseSuccess = getDataInstallationAuthorizationStatusResponse200 & {
2753
+ type settingsResponseSuccess = settingsResponse200 & {
2610
2754
  headers: Headers;
2611
2755
  };
2612
- type getDataInstallationAuthorizationStatusResponseError = (getDataInstallationAuthorizationStatusResponse400 | getDataInstallationAuthorizationStatusResponse403 | getDataInstallationAuthorizationStatusResponse404) & {
2756
+ type settingsResponseError = settingsResponse403 & {
2613
2757
  headers: Headers;
2614
2758
  };
2615
- type getDataInstallationAuthorizationStatusResponse = getDataInstallationAuthorizationStatusResponseSuccess | getDataInstallationAuthorizationStatusResponseError;
2616
- declare const getGetDataInstallationAuthorizationStatusUrl: (dataIntegrationId: string, state: string) => string;
2617
- declare const getDataInstallationAuthorizationStatus: (dataIntegrationId: string, state: string, options?: RequestInit) => Promise<getDataInstallationAuthorizationStatusResponse>;
2618
- declare const getGetDataInstallationAuthorizationStatusQueryKey: (dataIntegrationId?: string, state?: string) => readonly [`https://api.workos.com/_widgets/DataIntegrations/undefined/authorization-status/${string}` | `https://api.workos.com/_widgets/DataIntegrations/${string}/authorization-status/undefined` | `https://api.workos.com/_widgets/DataIntegrations/${string}/authorization-status/${string}`];
2619
- declare const getGetDataInstallationAuthorizationStatusQueryOptions: <TData = Awaited<ReturnType<typeof getDataInstallationAuthorizationStatus>>, TError = GetDataInstallationAuthorizationStatus400 | GetDataInstallationAuthorizationStatus403 | GetDataInstallationAuthorizationStatus404>(dataIntegrationId: string, state: string, options?: {
2620
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getDataInstallationAuthorizationStatus>>, TError, TData>>;
2759
+ type settingsResponse = settingsResponseSuccess | settingsResponseError;
2760
+ declare const getSettingsUrl: () => string;
2761
+ declare const settings: (options?: RequestInit) => Promise<settingsResponse>;
2762
+ declare const getSettingsQueryKey: () => readonly ["https://api.workos.com/_widgets/settings"];
2763
+ declare const getSettingsQueryOptions: <TData = Awaited<ReturnType<typeof settings>>, TError = Settings403>(options?: {
2764
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof settings>>, TError, TData>>;
2621
2765
  fetch?: RequestInit;
2622
- }) => UseQueryOptions<Awaited<ReturnType<typeof getDataInstallationAuthorizationStatus>>, TError, TData> & {
2766
+ }) => UseQueryOptions<Awaited<ReturnType<typeof settings>>, TError, TData> & {
2623
2767
  queryKey: DataTag<QueryKey, TData, TError>;
2624
2768
  };
2625
- type GetDataInstallationAuthorizationStatusQueryResult = NonNullable<Awaited<ReturnType<typeof getDataInstallationAuthorizationStatus>>>;
2626
- type GetDataInstallationAuthorizationStatusQueryError = GetDataInstallationAuthorizationStatus400 | GetDataInstallationAuthorizationStatus403 | GetDataInstallationAuthorizationStatus404;
2627
- declare function useGetDataInstallationAuthorizationStatus<TData = Awaited<ReturnType<typeof getDataInstallationAuthorizationStatus>>, TError = GetDataInstallationAuthorizationStatus400 | GetDataInstallationAuthorizationStatus403 | GetDataInstallationAuthorizationStatus404>(dataIntegrationId: string, state: string, options: {
2628
- query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getDataInstallationAuthorizationStatus>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getDataInstallationAuthorizationStatus>>, TError, Awaited<ReturnType<typeof getDataInstallationAuthorizationStatus>>>, "initialData">;
2769
+ type SettingsQueryResult = NonNullable<Awaited<ReturnType<typeof settings>>>;
2770
+ type SettingsQueryError = Settings403;
2771
+ declare function useSettings<TData = Awaited<ReturnType<typeof settings>>, TError = Settings403>(options: {
2772
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof settings>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof settings>>, TError, Awaited<ReturnType<typeof settings>>>, "initialData">;
2629
2773
  fetch?: RequestInit;
2630
2774
  }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
2631
2775
  queryKey: DataTag<QueryKey, TData, TError>;
2632
2776
  };
2633
- declare function useGetDataInstallationAuthorizationStatus<TData = Awaited<ReturnType<typeof getDataInstallationAuthorizationStatus>>, TError = GetDataInstallationAuthorizationStatus400 | GetDataInstallationAuthorizationStatus403 | GetDataInstallationAuthorizationStatus404>(dataIntegrationId: string, state: string, options?: {
2634
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getDataInstallationAuthorizationStatus>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getDataInstallationAuthorizationStatus>>, TError, Awaited<ReturnType<typeof getDataInstallationAuthorizationStatus>>>, "initialData">;
2777
+ declare function useSettings<TData = Awaited<ReturnType<typeof settings>>, TError = Settings403>(options?: {
2778
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof settings>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof settings>>, TError, Awaited<ReturnType<typeof settings>>>, "initialData">;
2635
2779
  fetch?: RequestInit;
2636
2780
  }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
2637
2781
  queryKey: DataTag<QueryKey, TData, TError>;
2638
2782
  };
2639
- declare function useGetDataInstallationAuthorizationStatus<TData = Awaited<ReturnType<typeof getDataInstallationAuthorizationStatus>>, TError = GetDataInstallationAuthorizationStatus400 | GetDataInstallationAuthorizationStatus403 | GetDataInstallationAuthorizationStatus404>(dataIntegrationId: string, state: string, options?: {
2640
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getDataInstallationAuthorizationStatus>>, TError, TData>>;
2783
+ declare function useSettings<TData = Awaited<ReturnType<typeof settings>>, TError = Settings403>(options?: {
2784
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof settings>>, TError, TData>>;
2641
2785
  fetch?: RequestInit;
2642
2786
  }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
2643
2787
  queryKey: DataTag<QueryKey, TData, TError>;
2644
2788
  };
2645
- type deleteDataInstallationResponse200 = {
2646
- data: DeleteDataInstallation200;
2647
- status: 200;
2648
- };
2649
- type deleteDataInstallationResponse403 = {
2650
- data: DeleteDataInstallation403;
2651
- status: 403;
2652
- };
2653
- type deleteDataInstallationResponse404 = {
2654
- data: DeleteDataInstallation404;
2655
- status: 404;
2656
- };
2657
- type deleteDataInstallationResponseSuccess = deleteDataInstallationResponse200 & {
2658
- headers: Headers;
2659
- };
2660
- type deleteDataInstallationResponseError = (deleteDataInstallationResponse403 | deleteDataInstallationResponse404) & {
2661
- headers: Headers;
2662
- };
2663
- type deleteDataInstallationResponse = deleteDataInstallationResponseSuccess | deleteDataInstallationResponseError;
2664
- declare const getDeleteDataInstallationUrl: (installationId: string) => string;
2665
- declare const deleteDataInstallation: (installationId: string, options?: RequestInit) => Promise<deleteDataInstallationResponse>;
2666
- declare const getDeleteDataInstallationMutationOptions: <TError = DeleteDataInstallation403 | DeleteDataInstallation404, TContext = unknown>(options?: {
2667
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteDataInstallation>>, TError, {
2668
- installationId: string;
2669
- }, TContext>;
2670
- fetch?: RequestInit;
2671
- }) => UseMutationOptions<Awaited<ReturnType<typeof deleteDataInstallation>>, TError, {
2672
- installationId: string;
2673
- }, TContext>;
2674
- type DeleteDataInstallationMutationResult = NonNullable<Awaited<ReturnType<typeof deleteDataInstallation>>>;
2675
- type DeleteDataInstallationMutationError = DeleteDataInstallation403 | DeleteDataInstallation404;
2676
- declare const useDeleteDataInstallation: <TError = DeleteDataInstallation403 | DeleteDataInstallation404, TContext = unknown>(options?: {
2677
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteDataInstallation>>, TError, {
2678
- installationId: string;
2679
- }, TContext>;
2680
- fetch?: RequestInit;
2681
- }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof deleteDataInstallation>>, TError, {
2682
- installationId: string;
2683
- }, TContext>;
2684
2789
 
2685
- export { type ActiveSession, type ActiveSessionCurrentLocation, type ActiveSessionState, type ActiveSessionsResponse, type AuthenticationInformation403, type AuthenticationInformationQueryError, type AuthenticationInformationQueryResult, type AuthenticationInformationResponse, type AuthenticationInformationResponseData, type AuthenticationInformationResponseDataPasswordSettings, type AuthenticationInformationResponseDataVerificationMethods, type AuthenticationInformationResponseDataVerificationMethodsMfa, AuthenticationInformationResponseDataVerificationMethodsMfaProvider, type AuthenticationInformationResponseDataVerificationMethodsPasskey, type AuthenticationInformationResponseDataVerificationMethodsPasskeyPassKeysItem, AuthenticationInformationResponseDataVerificationMethodsPasskeyProvider, type AuthenticationInformationResponseDataVerificationMethodsPassword, AuthenticationInformationResponseDataVerificationMethodsPasswordProvider, type CreateOrganizationApiKey400, type CreateOrganizationApiKey403, type CreateOrganizationApiKey404, type CreateOrganizationApiKey422, type CreateOrganizationApiKey422ErrorsItem, type CreateOrganizationApiKeyMutationBody, type CreateOrganizationApiKeyMutationError, type CreateOrganizationApiKeyMutationResult, type CreateOrganizationApiKeyRequest, type CreateOrganizationApiKeyResponse, type CreatePassword201, type CreatePassword400, type CreatePassword403, type CreatePasswordMutationBody, type CreatePasswordMutationError, type CreatePasswordMutationResult, type CreatePasswordRequest, type CreateTotpFactor400, type CreateTotpFactor403, type CreateTotpFactorMutationError, type CreateTotpFactorMutationResult, type CreateTotpFactorResponse, type CreateTotpFactorResponseAuthenticationChallenge, type CreateTotpFactorResponseAuthenticationChallengeAllOf, CreateTotpFactorResponseAuthenticationChallengeAllOfObject, type CreateTotpFactorResponseAuthenticationChallengeAllOfThree, type CreateTotpFactorResponseAuthenticationFactor, type CreateTotpFactorResponseAuthenticationFactorAllOf, type CreateTotpFactorResponseAuthenticationFactorAllOfEight, CreateTotpFactorResponseAuthenticationFactorAllOfObject, type CreateTotpFactorResponseAuthenticationFactorAllOfSms, type CreateTotpFactorResponseAuthenticationFactorAllOfTotp, type CreateTotpFactorResponseAuthenticationFactorAllOfTotpAnyOf, type CreateTotpFactorResponseAuthenticationFactorAllOfTotpAnyOfTwo, CreateTotpFactorResponseAuthenticationFactorAllOfType, type DataInstallation, DataInstallationObject, DataInstallationState, type DataIntegration, DataIntegrationCredentialsType, type DataIntegrationInstallation, DataIntegrationIntegrationType, DataIntegrationObject, DataIntegrationOwnership, type DataIntegrationsResponse, type DeleteDataInstallation200, type DeleteDataInstallation403, type DeleteDataInstallation404, type DeleteDataInstallationMutationError, type DeleteDataInstallationMutationResult, type DeleteOrganizationApiKey200, type DeleteOrganizationApiKey403, type DeleteOrganizationApiKey404, type DeleteOrganizationApiKeyMutationError, type DeleteOrganizationApiKeyMutationResult, type DeleteOrganizationDomain403, type DeleteOrganizationDomain404, type DeleteOrganizationDomainMutationError, type DeleteOrganizationDomainMutationResult, type DeletePasskey200, type DeletePasskey400, type DeletePasskey403, type DeletePasskeyMutationError, type DeletePasskeyMutationResult, type DeleteTotpFactors200, type DeleteTotpFactors400, type DeleteTotpFactors403, type DeleteTotpFactorsMutationError, type DeleteTotpFactorsMutationResult, DomainVerificationNameServer, type GenerateAdminPortalLink201, type GenerateAdminPortalLink403, type GenerateAdminPortalLink404, type GenerateAdminPortalLink500, GenerateAdminPortalLinkIntent, type GenerateAdminPortalLinkMutationError, type GenerateAdminPortalLinkMutationResult, type GenerateAdminPortalLinkParams, type GetAuthorizationStatusResponse, type GetDataInstallationAuthorizationStatus400, type GetDataInstallationAuthorizationStatus403, type GetDataInstallationAuthorizationStatus404, type GetDataInstallationAuthorizationStatusQueryError, type GetDataInstallationAuthorizationStatusQueryResult, type GetDataIntegrationAuthorizeUrl400, type GetDataIntegrationAuthorizeUrl403, type GetDataIntegrationAuthorizeUrl404, type GetDataIntegrationAuthorizeUrlParams, type GetDataIntegrationAuthorizeUrlQueryError, type GetDataIntegrationAuthorizeUrlQueryResult, type GetDataIntegrationAuthorizeUrlResponse, type GetDataIntegrationAuthorizeUrlResponseAllOf, type GetDataIntegrationAuthorizeUrlResponseAllOfTwo, type InviteMember201, type InviteMember400, type InviteMember403, type InviteMember404, type InviteMemberBody, type InviteMemberMutationBody, type InviteMemberMutationError, type InviteMemberMutationResult, type ListMetadata, type ListOrganizationApiKeyPermission, type ListOrganizationApiKeyPermissions400, type ListOrganizationApiKeyPermissions403, type ListOrganizationApiKeyPermissionsParams, type ListOrganizationApiKeyPermissionsQueryError, type ListOrganizationApiKeyPermissionsQueryResult, type ListOrganizationApiKeyPermissionsResponse, type ListOrganizationApiKeyPermissionsResponseListMetadata, type ListOrganizationApiKeys400, type ListOrganizationApiKeys403, type ListOrganizationApiKeysParams, type ListOrganizationApiKeysQueryError, type ListOrganizationApiKeysQueryResult, type ListOrganizationApiKeysResponse, type ListOrganizationApiKeysResponseData, type ListOrganizationApiKeysResponseListMetadata, type ListOrganizationDomains200, type ListOrganizationDomains403, type ListOrganizationDomains404, type ListOrganizationDomainsQueryError, type ListOrganizationDomainsQueryResult, type ListSsoConnectionsQueryError, type ListSsoConnectionsQueryResult, type Me, type Me403, type MeOauthProfiles, type MeQueryError, type MeQueryResult, type Member, type MemberActions, MemberActionsItem, type MemberRole, type MemberRolesItem, MemberStatus, type Members200, type Members403, type Members404, type MembersParams, type MembersQueryError, type MembersQueryResult, type MyDataIntegrations403, type MyDataIntegrationsQueryError, type MyDataIntegrationsQueryResult, type OAuthProfile, OidcSessionState, type OrganizationDomain, OrganizationDomainState, type OrganizationInfo, type Organizations403, type Organizations404, type OrganizationsQueryError, type OrganizationsQueryResult, type OrganizationsResponse, type RegisterPasskey400, type RegisterPasskey403, type RegisterPasskeyMutationError, type RegisterPasskeyMutationResult, type RegisterPasskeyResponse, type RegisterPasskeyResponseOptions, type RemoveMember200, type RemoveMember400, type RemoveMember403, type RemoveMember404, type RemoveMemberMutationError, type RemoveMemberMutationResult, type ResendInvite201, type ResendInvite400, type ResendInvite403, type ResendInvite404, type ResendInvite422, type ResendInviteMutationError, type ResendInviteMutationResult, type ReverifyOrganizationDomain403, type ReverifyOrganizationDomain404, type ReverifyOrganizationDomainMutationError, type ReverifyOrganizationDomainMutationResult, type RevokeAllSessions200, type RevokeAllSessions400, type RevokeAllSessions403, type RevokeAllSessionsMutationBody, type RevokeAllSessionsMutationError, type RevokeAllSessionsMutationResult, type RevokeAllSessionsRequest, type RevokeInvite200, type RevokeInvite400, type RevokeInvite403, type RevokeInvite404, type RevokeInviteMutationError, type RevokeInviteMutationResult, type RevokeSession200, type RevokeSession400, type RevokeSession403, type RevokeSessionMutationError, type RevokeSessionMutationResult, type Roles403, type Roles404, type RolesAndConfig403, type RolesAndConfig404, type RolesAndConfigQueryError, type RolesAndConfigQueryResult, type RolesAndConfigResponse, type RolesQueryError, type RolesQueryResult, SamlSessionState, type SendVerification400, type SendVerification403, type SendVerificationMutationError, type SendVerificationMutationResult, type SendVerificationResponse, SendVerificationResponseType, type Sessions403, type SessionsQueryError, type SessionsQueryResult, type Settings403, type SettingsQueryError, type SettingsQueryResult, type SettingsResponse, SettingsResponseObject, type SsoConnection, type SsoConnectionAnyOf, type SsoConnectionAnyOfEight, type SsoConnectionAnyOfEightAllOf, type SsoConnectionAnyOfEightAllOfLastSession, SsoConnectionAnyOfEightAllOfProviderTag, type SsoConnectionAnyOfEightAllOfSix, SsoConnectionAnyOfEightAllOfState, SsoConnectionAnyOfEightAllOfType, type SsoConnectionAnyOfLastSession, type SsoConnectionAnyOfLatestExpiredCertificate, type SsoConnectionAnyOfLatestExpiringCertificate, SsoConnectionAnyOfProviderTag, SsoConnectionAnyOfState, SsoConnectionAnyOfType, type SsoConnectionSessionJSON, SsoConnectionSessionJSONState, type UpdateMe400, type UpdateMe403, type UpdateMeBody, type UpdateMeMutationBody, type UpdateMeMutationError, type UpdateMeMutationResult, type UpdateMember200, type UpdateMember400, type UpdateMember403, type UpdateMember404, type UpdateMember422, type UpdateMemberBody, type UpdateMemberMutationBody, type UpdateMemberMutationError, type UpdateMemberMutationResult, type UpdatePassword201, type UpdatePassword400, type UpdatePassword403, type UpdatePasswordMutationBody, type UpdatePasswordMutationError, type UpdatePasswordMutationResult, type UpdatePasswordRequest, type Verify400, type Verify403, type VerifyMutationBody, type VerifyMutationError, type VerifyMutationResult, type VerifyPasskey200, type VerifyPasskey400, type VerifyPasskey403, type VerifyPasskeyMutationBody, type VerifyPasskeyMutationError, type VerifyPasskeyMutationResult, type VerifyPasskeyRequest, type VerifyPasskeyRequestResponse, type VerifyRequest, type VerifyResponse, type VerifyTotpFactor200, type VerifyTotpFactor400, type VerifyTotpFactor403, type VerifyTotpFactorMutationBody, type VerifyTotpFactorMutationError, type VerifyTotpFactorMutationResult, type VerifyTotpFactorRequest, type X509CertificateJSON, authenticationInformation, type authenticationInformationResponse, type authenticationInformationResponse200, type authenticationInformationResponse403, type authenticationInformationResponseError, type authenticationInformationResponseSuccess, createOrganizationApiKey, type createOrganizationApiKeyResponse, type createOrganizationApiKeyResponse201, type createOrganizationApiKeyResponse400, type createOrganizationApiKeyResponse403, type createOrganizationApiKeyResponse404, type createOrganizationApiKeyResponse422, type createOrganizationApiKeyResponseError, type createOrganizationApiKeyResponseSuccess, createPassword, type createPasswordResponse, type createPasswordResponse201, type createPasswordResponse400, type createPasswordResponse403, type createPasswordResponseError, type createPasswordResponseSuccess, createTotpFactor, type createTotpFactorResponse, type createTotpFactorResponse201, type createTotpFactorResponse400, type createTotpFactorResponse403, type createTotpFactorResponseError, type createTotpFactorResponseSuccess, deleteDataInstallation, type deleteDataInstallationResponse, type deleteDataInstallationResponse200, type deleteDataInstallationResponse403, type deleteDataInstallationResponse404, type deleteDataInstallationResponseError, type deleteDataInstallationResponseSuccess, deleteOrganizationApiKey, type deleteOrganizationApiKeyResponse, type deleteOrganizationApiKeyResponse200, type deleteOrganizationApiKeyResponse403, type deleteOrganizationApiKeyResponse404, type deleteOrganizationApiKeyResponseError, type deleteOrganizationApiKeyResponseSuccess, deleteOrganizationDomain, type deleteOrganizationDomainResponse, type deleteOrganizationDomainResponse200, type deleteOrganizationDomainResponse403, type deleteOrganizationDomainResponse404, type deleteOrganizationDomainResponseError, type deleteOrganizationDomainResponseSuccess, deletePasskey, type deletePasskeyResponse, type deletePasskeyResponse200, type deletePasskeyResponse400, type deletePasskeyResponse403, type deletePasskeyResponseError, type deletePasskeyResponseSuccess, deleteTotpFactors, type deleteTotpFactorsResponse, type deleteTotpFactorsResponse200, type deleteTotpFactorsResponse400, type deleteTotpFactorsResponse403, type deleteTotpFactorsResponseError, type deleteTotpFactorsResponseSuccess, generateAdminPortalLink, type generateAdminPortalLinkResponse, type generateAdminPortalLinkResponse201, type generateAdminPortalLinkResponse403, type generateAdminPortalLinkResponse404, type generateAdminPortalLinkResponse500, type generateAdminPortalLinkResponseError, type generateAdminPortalLinkResponseSuccess, getAuthenticationInformationQueryKey, getAuthenticationInformationQueryOptions, getAuthenticationInformationUrl, getCreateOrganizationApiKeyMutationOptions, getCreateOrganizationApiKeyUrl, getCreatePasswordMutationOptions, getCreatePasswordUrl, getCreateTotpFactorMutationOptions, getCreateTotpFactorUrl, getDataInstallationAuthorizationStatus, type getDataInstallationAuthorizationStatusResponse, type getDataInstallationAuthorizationStatusResponse200, type getDataInstallationAuthorizationStatusResponse400, type getDataInstallationAuthorizationStatusResponse403, type getDataInstallationAuthorizationStatusResponse404, type getDataInstallationAuthorizationStatusResponseError, type getDataInstallationAuthorizationStatusResponseSuccess, getDataIntegrationAuthorizeUrl, type getDataIntegrationAuthorizeUrlResponse, type getDataIntegrationAuthorizeUrlResponse200, type getDataIntegrationAuthorizeUrlResponse400, type getDataIntegrationAuthorizeUrlResponse403, type getDataIntegrationAuthorizeUrlResponse404, type getDataIntegrationAuthorizeUrlResponseError, type getDataIntegrationAuthorizeUrlResponseSuccess, getDeleteDataInstallationMutationOptions, getDeleteDataInstallationUrl, getDeleteOrganizationApiKeyMutationOptions, getDeleteOrganizationApiKeyUrl, getDeleteOrganizationDomainMutationOptions, getDeleteOrganizationDomainUrl, getDeletePasskeyMutationOptions, getDeletePasskeyUrl, getDeleteTotpFactorsMutationOptions, getDeleteTotpFactorsUrl, getGenerateAdminPortalLinkMutationOptions, getGenerateAdminPortalLinkUrl, getGetDataInstallationAuthorizationStatusQueryKey, getGetDataInstallationAuthorizationStatusQueryOptions, getGetDataInstallationAuthorizationStatusUrl, getGetDataIntegrationAuthorizeUrlQueryKey, getGetDataIntegrationAuthorizeUrlQueryOptions, getGetDataIntegrationAuthorizeUrlUrl, getInviteMemberMutationOptions, getInviteMemberUrl, getListOrganizationApiKeyPermissionsQueryKey, getListOrganizationApiKeyPermissionsQueryOptions, getListOrganizationApiKeyPermissionsUrl, getListOrganizationApiKeysQueryKey, getListOrganizationApiKeysQueryOptions, getListOrganizationApiKeysUrl, getListOrganizationDomainsQueryKey, getListOrganizationDomainsQueryOptions, getListOrganizationDomainsUrl, getListSsoConnectionsQueryKey, getListSsoConnectionsQueryOptions, getListSsoConnectionsUrl, getMeQueryKey, getMeQueryOptions, getMeUrl, getMembersQueryKey, getMembersQueryOptions, getMembersUrl, getMyDataIntegrationsQueryKey, getMyDataIntegrationsQueryOptions, getMyDataIntegrationsUrl, getOrganizationsQueryKey, getOrganizationsQueryOptions, getOrganizationsUrl, getRegisterPasskeyMutationOptions, getRegisterPasskeyUrl, getRemoveMemberMutationOptions, getRemoveMemberUrl, getResendInviteMutationOptions, getResendInviteUrl, getReverifyOrganizationDomainMutationOptions, getReverifyOrganizationDomainUrl, getRevokeAllSessionsMutationOptions, getRevokeAllSessionsUrl, getRevokeInviteMutationOptions, getRevokeInviteUrl, getRevokeSessionMutationOptions, getRevokeSessionUrl, getRolesAndConfigQueryKey, getRolesAndConfigQueryOptions, getRolesAndConfigUrl, getRolesQueryKey, getRolesQueryOptions, getRolesUrl, getSendVerificationMutationOptions, getSendVerificationUrl, getSessionsQueryKey, getSessionsQueryOptions, getSessionsUrl, getSettingsQueryKey, getSettingsQueryOptions, getSettingsUrl, getUpdateMeMutationOptions, getUpdateMeUrl, getUpdateMemberMutationOptions, getUpdateMemberUrl, getUpdatePasswordMutationOptions, getUpdatePasswordUrl, getVerifyMutationOptions, getVerifyPasskeyMutationOptions, getVerifyPasskeyUrl, getVerifyTotpFactorMutationOptions, getVerifyTotpFactorUrl, getVerifyUrl, inviteMember, type inviteMemberResponse, type inviteMemberResponse201, type inviteMemberResponse400, type inviteMemberResponse403, type inviteMemberResponse404, type inviteMemberResponseError, type inviteMemberResponseSuccess, listOrganizationApiKeyPermissions, type listOrganizationApiKeyPermissionsResponse, type listOrganizationApiKeyPermissionsResponse200, type listOrganizationApiKeyPermissionsResponse400, type listOrganizationApiKeyPermissionsResponse403, type listOrganizationApiKeyPermissionsResponseError, type listOrganizationApiKeyPermissionsResponseSuccess, listOrganizationApiKeys, type listOrganizationApiKeysResponse, type listOrganizationApiKeysResponse200, type listOrganizationApiKeysResponse400, type listOrganizationApiKeysResponse403, type listOrganizationApiKeysResponseError, type listOrganizationApiKeysResponseSuccess, listOrganizationDomains, type listOrganizationDomainsResponse, type listOrganizationDomainsResponse200, type listOrganizationDomainsResponse403, type listOrganizationDomainsResponse404, type listOrganizationDomainsResponseError, type listOrganizationDomainsResponseSuccess, listSsoConnections, type listSsoConnectionsResponse, type listSsoConnectionsResponse200, type listSsoConnectionsResponseSuccess, me, type meResponse, type meResponse200, type meResponse403, type meResponseError, type meResponseSuccess, members, type membersResponse, type membersResponse200, type membersResponse403, type membersResponse404, type membersResponseError, type membersResponseSuccess, myDataIntegrations, type myDataIntegrationsResponse, type myDataIntegrationsResponse200, type myDataIntegrationsResponse403, type myDataIntegrationsResponseError, type myDataIntegrationsResponseSuccess, organizations, type organizationsResponse, type organizationsResponse200, type organizationsResponse403, type organizationsResponse404, type organizationsResponseError, type organizationsResponseSuccess, registerPasskey, type registerPasskeyResponse, type registerPasskeyResponse201, type registerPasskeyResponse400, type registerPasskeyResponse403, type registerPasskeyResponseError, type registerPasskeyResponseSuccess, removeMember, type removeMemberResponse, type removeMemberResponse200, type removeMemberResponse400, type removeMemberResponse403, type removeMemberResponse404, type removeMemberResponseError, type removeMemberResponseSuccess, resendInvite, type resendInviteResponse, type resendInviteResponse201, type resendInviteResponse400, type resendInviteResponse403, type resendInviteResponse404, type resendInviteResponse422, type resendInviteResponseError, type resendInviteResponseSuccess, reverifyOrganizationDomain, type reverifyOrganizationDomainResponse, type reverifyOrganizationDomainResponse200, type reverifyOrganizationDomainResponse403, type reverifyOrganizationDomainResponse404, type reverifyOrganizationDomainResponseError, type reverifyOrganizationDomainResponseSuccess, revokeAllSessions, type revokeAllSessionsResponse, type revokeAllSessionsResponse200, type revokeAllSessionsResponse400, type revokeAllSessionsResponse403, type revokeAllSessionsResponseError, type revokeAllSessionsResponseSuccess, revokeInvite, type revokeInviteResponse, type revokeInviteResponse200, type revokeInviteResponse400, type revokeInviteResponse403, type revokeInviteResponse404, type revokeInviteResponseError, type revokeInviteResponseSuccess, revokeSession, type revokeSessionResponse, type revokeSessionResponse200, type revokeSessionResponse400, type revokeSessionResponse403, type revokeSessionResponseError, type revokeSessionResponseSuccess, roles, rolesAndConfig, type rolesAndConfigResponse, type rolesAndConfigResponse200, type rolesAndConfigResponse403, type rolesAndConfigResponse404, type rolesAndConfigResponseError, type rolesAndConfigResponseSuccess, type rolesResponse, type rolesResponse200, type rolesResponse403, type rolesResponse404, type rolesResponseError, type rolesResponseSuccess, sendVerification, type sendVerificationResponse, type sendVerificationResponse200, type sendVerificationResponse400, type sendVerificationResponse403, type sendVerificationResponseError, type sendVerificationResponseSuccess, sessions, type sessionsResponse, type sessionsResponse200, type sessionsResponse403, type sessionsResponseError, type sessionsResponseSuccess, settings, type settingsResponse, type settingsResponse200, type settingsResponse403, type settingsResponseError, type settingsResponseSuccess, updateMe, type updateMeResponse, type updateMeResponse200, type updateMeResponse400, type updateMeResponse403, type updateMeResponseError, type updateMeResponseSuccess, updateMember, type updateMemberResponse, type updateMemberResponse200, type updateMemberResponse400, type updateMemberResponse403, type updateMemberResponse404, type updateMemberResponse422, type updateMemberResponseError, type updateMemberResponseSuccess, updatePassword, type updatePasswordResponse, type updatePasswordResponse201, type updatePasswordResponse400, type updatePasswordResponse403, type updatePasswordResponseError, type updatePasswordResponseSuccess, useAuthenticationInformation, useCreateOrganizationApiKey, useCreatePassword, useCreateTotpFactor, useDeleteDataInstallation, useDeleteOrganizationApiKey, useDeleteOrganizationDomain, useDeletePasskey, useDeleteTotpFactors, useGenerateAdminPortalLink, useGetDataInstallationAuthorizationStatus, useGetDataIntegrationAuthorizeUrl, useInviteMember, useListOrganizationApiKeyPermissions, useListOrganizationApiKeys, useListOrganizationDomains, useListSsoConnections, useMe, useMembers, useMyDataIntegrations, useOrganizations, useRegisterPasskey, useRemoveMember, useResendInvite, useReverifyOrganizationDomain, useRevokeAllSessions, useRevokeInvite, useRevokeSession, useRoles, useRolesAndConfig, useSendVerification, useSessions, useSettings, useUpdateMe, useUpdateMember, useUpdatePassword, useVerify, useVerifyPasskey, useVerifyTotpFactor, verify, verifyPasskey, type verifyPasskeyResponse, type verifyPasskeyResponse200, type verifyPasskeyResponse400, type verifyPasskeyResponse403, type verifyPasskeyResponseError, type verifyPasskeyResponseSuccess, type verifyResponse, type verifyResponse200, type verifyResponse400, type verifyResponse403, type verifyResponseError, type verifyResponseSuccess, verifyTotpFactor, type verifyTotpFactorResponse, type verifyTotpFactorResponse200, type verifyTotpFactorResponse400, type verifyTotpFactorResponse403, type verifyTotpFactorResponseError, type verifyTotpFactorResponseSuccess };
2790
+ export { type ActiveSession, type ActiveSessionCurrentLocation, type ActiveSessionCurrentLocationOneOf, type ActiveSessionImpersonationReason, type ActiveSessionImpersonatorEmail, type ActiveSessionImpersonatorUserId, type ActiveSessionIpAddress, type ActiveSessionLastActivityAt, type ActiveSessionOrganizationId, type ActiveSessionState, type ActiveSessionStateExpiresAt, type ActiveSessionUserAgent, type ActiveSessionsResponse, type AuthenticationInformation403, type AuthenticationInformationQueryError, type AuthenticationInformationQueryResult, type AuthenticationInformationResponse, type AuthenticationInformationResponseData, type AuthenticationInformationResponseDataPasswordSettings, type AuthenticationInformationResponseDataVerificationMethods, type AuthenticationInformationResponseDataVerificationMethodsMfa, type AuthenticationInformationResponseDataVerificationMethodsMfaOneOf, type AuthenticationInformationResponseDataVerificationMethodsMfaOneOfLastUsed, AuthenticationInformationResponseDataVerificationMethodsMfaOneOfProvider, type AuthenticationInformationResponseDataVerificationMethodsPasskey, type AuthenticationInformationResponseDataVerificationMethodsPasskeyOneOf, type AuthenticationInformationResponseDataVerificationMethodsPasskeyOneOfLastUsed, type AuthenticationInformationResponseDataVerificationMethodsPasskeyOneOfPassKeysItem, AuthenticationInformationResponseDataVerificationMethodsPasskeyOneOfProvider, type AuthenticationInformationResponseDataVerificationMethodsPassword, type AuthenticationInformationResponseDataVerificationMethodsPasswordOneOf, type AuthenticationInformationResponseDataVerificationMethodsPasswordOneOfLastUsed, AuthenticationInformationResponseDataVerificationMethodsPasswordOneOfProvider, type CreateOrganizationApiKey400, type CreateOrganizationApiKey403, type CreateOrganizationApiKey404, type CreateOrganizationApiKey422, type CreateOrganizationApiKey422ErrorsItem, type CreateOrganizationApiKeyMutationBody, type CreateOrganizationApiKeyMutationError, type CreateOrganizationApiKeyMutationResult, type CreateOrganizationApiKeyRequest, type CreateOrganizationApiKeyResponse, type CreatePassword201, type CreatePassword400, type CreatePassword403, type CreatePasswordMutationBody, type CreatePasswordMutationError, type CreatePasswordMutationResult, type CreatePasswordRequest, type CreateTotpFactor400, type CreateTotpFactor403, type CreateTotpFactorMutationError, type CreateTotpFactorMutationResult, type CreateTotpFactorResponse, type CreateTotpFactorResponseAuthenticationChallenge, type CreateTotpFactorResponseAuthenticationChallengeAllOf, type CreateTotpFactorResponseAuthenticationChallengeAllOfCode, type CreateTotpFactorResponseAuthenticationChallengeAllOfExpiresAt, type CreateTotpFactorResponseAuthenticationChallengeAllOfFive, CreateTotpFactorResponseAuthenticationChallengeAllOfObject, type CreateTotpFactorResponseAuthenticationFactor, type CreateTotpFactorResponseAuthenticationFactorAllOf, CreateTotpFactorResponseAuthenticationFactorAllOfObject, type CreateTotpFactorResponseAuthenticationFactorAllOfOnezero, type CreateTotpFactorResponseAuthenticationFactorAllOfSms, type CreateTotpFactorResponseAuthenticationFactorAllOfSmsOneOf, type CreateTotpFactorResponseAuthenticationFactorAllOfTotp, type CreateTotpFactorResponseAuthenticationFactorAllOfTotpAnyOf, type CreateTotpFactorResponseAuthenticationFactorAllOfTotpAnyOfTwo, CreateTotpFactorResponseAuthenticationFactorAllOfType, type CreateTotpFactorResponseAuthenticationFactorAllOfUserId, type DataInstallation, type DataInstallationAllOf, DataInstallationAllOfObject, type DataInstallationAllOfOrganizationId, type DataInstallationAllOfSix, type DataInstallationAllOfSixOrganizationId, type DataInstallationAllOfSixUserlandUserId, DataInstallationAllOfState, type DataInstallationAllOfUserId, type DataIntegration, DataIntegrationCredentialsType, type DataIntegrationDescription, type DataIntegrationInstallation, DataIntegrationIntegrationType, DataIntegrationObject, DataIntegrationOwnership, type DataIntegrationScopes, type DataIntegrationsResponse, type DeleteDataInstallation200, type DeleteDataInstallation403, type DeleteDataInstallation404, type DeleteDataInstallationMutationError, type DeleteDataInstallationMutationResult, type DeleteOrganizationApiKey200, type DeleteOrganizationApiKey403, type DeleteOrganizationApiKey404, type DeleteOrganizationApiKeyMutationError, type DeleteOrganizationApiKeyMutationResult, type DeleteOrganizationDomain403, type DeleteOrganizationDomain404, type DeleteOrganizationDomainMutationError, type DeleteOrganizationDomainMutationResult, type DeletePasskey200, type DeletePasskey400, type DeletePasskey403, type DeletePasskeyMutationError, type DeletePasskeyMutationResult, type DeleteTotpFactors200, type DeleteTotpFactors400, type DeleteTotpFactors403, type DeleteTotpFactorsMutationError, type DeleteTotpFactorsMutationResult, type DirectoriesResponse, type Directory, type DirectoryMetadata, DirectoryState, DirectoryType, type DirectoryUsersMetadata, DomainVerificationNameServer, type GenerateAdminPortalLink201, type GenerateAdminPortalLink403, type GenerateAdminPortalLink404, type GenerateAdminPortalLink500, GenerateAdminPortalLinkIntent, type GenerateAdminPortalLinkMutationError, type GenerateAdminPortalLinkMutationResult, type GenerateAdminPortalLinkParams, type GetAuthorizationStatusResponse, type GetDataInstallationAuthorizationStatus400, type GetDataInstallationAuthorizationStatus403, type GetDataInstallationAuthorizationStatus404, type GetDataInstallationAuthorizationStatusQueryError, type GetDataInstallationAuthorizationStatusQueryResult, type GetDataIntegrationAuthorizeUrl400, type GetDataIntegrationAuthorizeUrl403, type GetDataIntegrationAuthorizeUrl404, type GetDataIntegrationAuthorizeUrlParams, type GetDataIntegrationAuthorizeUrlQueryError, type GetDataIntegrationAuthorizeUrlQueryResult, type GetDataIntegrationAuthorizeUrlResponse, type GetDataIntegrationAuthorizeUrlResponseAllOf, type GetDataIntegrationAuthorizeUrlResponseAllOfTwo, type InviteMember201, type InviteMember400, type InviteMember403, type InviteMember404, type InviteMemberBody, type InviteMemberBodyFirstName, type InviteMemberBodyLastName, type InviteMemberMutationBody, type InviteMemberMutationError, type InviteMemberMutationResult, type ListDirectories403, type ListDirectories404, type ListDirectoriesQueryError, type ListDirectoriesQueryResult, type ListMetadata, type ListMetadataAfter, type ListMetadataBefore, type ListOrganizationApiKeyPermission, type ListOrganizationApiKeyPermissionDescription, type ListOrganizationApiKeyPermissions400, type ListOrganizationApiKeyPermissions403, type ListOrganizationApiKeyPermissionsParams, type ListOrganizationApiKeyPermissionsQueryError, type ListOrganizationApiKeyPermissionsQueryResult, type ListOrganizationApiKeyPermissionsResponse, type ListOrganizationApiKeyPermissionsResponseListMetadata, type ListOrganizationApiKeys400, type ListOrganizationApiKeys403, type ListOrganizationApiKeysParams, type ListOrganizationApiKeysQueryError, type ListOrganizationApiKeysQueryResult, type ListOrganizationApiKeysResponse, type ListOrganizationApiKeysResponseData, type ListOrganizationApiKeysResponseDataLastUsedAt, type ListOrganizationApiKeysResponseListMetadata, type ListOrganizationDomains200, type ListOrganizationDomains403, type ListOrganizationDomains404, type ListOrganizationDomainsQueryError, type ListOrganizationDomainsQueryResult, type ListSsoConnectionsQueryError, type ListSsoConnectionsQueryResult, type Me, type Me403, type MeFirstName, type MeLastName, type MeLocale, type MeOauthProfiles, type MeOauthProfilesOneOf, type MeProfilePictureUrl, type MeQueryError, type MeQueryResult, type Member, type MemberActions, MemberActionsItem, type MemberFirstName, type MemberIsLoggedInUser, type MemberLastActivityAt, type MemberLastName, type MemberProfilePictureUrl, type MemberRole, type MemberRoleDescription, type MemberRoles, type MemberRolesOneOfItem, type MemberRolesOneOfItemDescription, MemberStatus, type Members200, type Members403, type Members404, type MembersParams, type MembersQueryError, type MembersQueryResult, type MyDataIntegrations403, type MyDataIntegrationsQueryError, type MyDataIntegrationsQueryResult, type OAuthProfile, type OAuthProfileEmail, type OAuthProfileFirstName, type OAuthProfileLastLoginAt, type OAuthProfileLastName, type OAuthProfileProfilePictureUrl, OidcSessionState, type OrganizationDomain, OrganizationDomainState, type OrganizationDomainSubdomain, type OrganizationDomainVerificationPrefix, type OrganizationDomainVerificationToken, type OrganizationInfo, type OrganizationInfoFavicon, type Organizations403, type Organizations404, type OrganizationsQueryError, type OrganizationsQueryResult, type OrganizationsResponse, type RegisterPasskey400, type RegisterPasskey403, type RegisterPasskeyMutationError, type RegisterPasskeyMutationResult, type RegisterPasskeyResponse, type RegisterPasskeyResponseOptions, type RemoveMember200, type RemoveMember400, type RemoveMember403, type RemoveMember404, type RemoveMemberMutationError, type RemoveMemberMutationResult, type ResendInvite201, type ResendInvite201Id, type ResendInvite400, type ResendInvite403, type ResendInvite404, type ResendInvite422, type ResendInviteMutationError, type ResendInviteMutationResult, type ReverifyOrganizationDomain403, type ReverifyOrganizationDomain404, type ReverifyOrganizationDomainMutationError, type ReverifyOrganizationDomainMutationResult, type RevokeAllSessions200, type RevokeAllSessions400, type RevokeAllSessions403, type RevokeAllSessionsMutationBody, type RevokeAllSessionsMutationError, type RevokeAllSessionsMutationResult, type RevokeAllSessionsRequest, type RevokeInvite200, type RevokeInvite400, type RevokeInvite403, type RevokeInvite404, type RevokeInviteMutationError, type RevokeInviteMutationResult, type RevokeSession200, type RevokeSession400, type RevokeSession403, type RevokeSessionMutationError, type RevokeSessionMutationResult, type Roles403, type Roles404, type RolesAndConfig403, type RolesAndConfig404, type RolesAndConfigQueryError, type RolesAndConfigQueryResult, type RolesAndConfigResponse, type RolesQueryError, type RolesQueryResult, SamlSessionState, type SendVerification400, type SendVerification403, type SendVerificationMutationError, type SendVerificationMutationResult, type SendVerificationResponse, SendVerificationResponseType, type Sessions403, type SessionsQueryError, type SessionsQueryResult, type Settings403, type SettingsQueryError, type SettingsQueryResult, type SettingsResponse, type SettingsResponseLogoDarkIconPath, type SettingsResponseLogoDarkPath, type SettingsResponseLogoLightIconPath, type SettingsResponseLogoLightPath, SettingsResponseObject, type SsoConnection, type SsoConnectionAnyOf, type SsoConnectionAnyOfEight, type SsoConnectionAnyOfEightAllOf, type SsoConnectionAnyOfEightAllOfLastSession, SsoConnectionAnyOfEightAllOfProviderTag, type SsoConnectionAnyOfEightAllOfSix, SsoConnectionAnyOfEightAllOfState, SsoConnectionAnyOfEightAllOfType, type SsoConnectionAnyOfLastSession, type SsoConnectionAnyOfLatestExpiredCertificate, type SsoConnectionAnyOfLatestExpiringCertificate, SsoConnectionAnyOfProviderTag, SsoConnectionAnyOfState, SsoConnectionAnyOfType, type SsoConnectionSessionJSON, SsoConnectionSessionJSONState, type UpdateMe400, type UpdateMe403, type UpdateMeBody, type UpdateMeMutationBody, type UpdateMeMutationError, type UpdateMeMutationResult, type UpdateMember200, type UpdateMember400, type UpdateMember403, type UpdateMember404, type UpdateMember422, type UpdateMemberBody, type UpdateMemberMutationBody, type UpdateMemberMutationError, type UpdateMemberMutationResult, type UpdatePassword201, type UpdatePassword400, type UpdatePassword403, type UpdatePasswordMutationBody, type UpdatePasswordMutationError, type UpdatePasswordMutationResult, type UpdatePasswordRequest, type Verify400, type Verify403, type VerifyMutationBody, type VerifyMutationError, type VerifyMutationResult, type VerifyPasskey200, type VerifyPasskey400, type VerifyPasskey403, type VerifyPasskeyMutationBody, type VerifyPasskeyMutationError, type VerifyPasskeyMutationResult, type VerifyPasskeyRequest, type VerifyPasskeyRequestResponse, type VerifyRequest, type VerifyResponse, type VerifyTotpFactor200, type VerifyTotpFactor400, type VerifyTotpFactor403, type VerifyTotpFactorMutationBody, type VerifyTotpFactorMutationError, type VerifyTotpFactorMutationResult, type VerifyTotpFactorRequest, type X509CertificateJSON, type X509CertificateJSONLastExpiryEventSentAt, type X509CertificateJSONNotAfter, type X509CertificateJSONNotBefore, authenticationInformation, type authenticationInformationResponse, type authenticationInformationResponse200, type authenticationInformationResponse403, type authenticationInformationResponseError, type authenticationInformationResponseSuccess, createOrganizationApiKey, type createOrganizationApiKeyResponse, type createOrganizationApiKeyResponse201, type createOrganizationApiKeyResponse400, type createOrganizationApiKeyResponse403, type createOrganizationApiKeyResponse404, type createOrganizationApiKeyResponse422, type createOrganizationApiKeyResponseError, type createOrganizationApiKeyResponseSuccess, createPassword, type createPasswordResponse, type createPasswordResponse201, type createPasswordResponse400, type createPasswordResponse403, type createPasswordResponseError, type createPasswordResponseSuccess, createTotpFactor, type createTotpFactorResponse, type createTotpFactorResponse201, type createTotpFactorResponse400, type createTotpFactorResponse403, type createTotpFactorResponseError, type createTotpFactorResponseSuccess, deleteDataInstallation, type deleteDataInstallationResponse, type deleteDataInstallationResponse200, type deleteDataInstallationResponse403, type deleteDataInstallationResponse404, type deleteDataInstallationResponseError, type deleteDataInstallationResponseSuccess, deleteOrganizationApiKey, type deleteOrganizationApiKeyResponse, type deleteOrganizationApiKeyResponse200, type deleteOrganizationApiKeyResponse403, type deleteOrganizationApiKeyResponse404, type deleteOrganizationApiKeyResponseError, type deleteOrganizationApiKeyResponseSuccess, deleteOrganizationDomain, type deleteOrganizationDomainResponse, type deleteOrganizationDomainResponse200, type deleteOrganizationDomainResponse403, type deleteOrganizationDomainResponse404, type deleteOrganizationDomainResponseError, type deleteOrganizationDomainResponseSuccess, deletePasskey, type deletePasskeyResponse, type deletePasskeyResponse200, type deletePasskeyResponse400, type deletePasskeyResponse403, type deletePasskeyResponseError, type deletePasskeyResponseSuccess, deleteTotpFactors, type deleteTotpFactorsResponse, type deleteTotpFactorsResponse200, type deleteTotpFactorsResponse400, type deleteTotpFactorsResponse403, type deleteTotpFactorsResponseError, type deleteTotpFactorsResponseSuccess, generateAdminPortalLink, type generateAdminPortalLinkResponse, type generateAdminPortalLinkResponse201, type generateAdminPortalLinkResponse403, type generateAdminPortalLinkResponse404, type generateAdminPortalLinkResponse500, type generateAdminPortalLinkResponseError, type generateAdminPortalLinkResponseSuccess, getAuthenticationInformationQueryKey, getAuthenticationInformationQueryOptions, getAuthenticationInformationUrl, getCreateOrganizationApiKeyMutationOptions, getCreateOrganizationApiKeyUrl, getCreatePasswordMutationOptions, getCreatePasswordUrl, getCreateTotpFactorMutationOptions, getCreateTotpFactorUrl, getDataInstallationAuthorizationStatus, type getDataInstallationAuthorizationStatusResponse, type getDataInstallationAuthorizationStatusResponse200, type getDataInstallationAuthorizationStatusResponse400, type getDataInstallationAuthorizationStatusResponse403, type getDataInstallationAuthorizationStatusResponse404, type getDataInstallationAuthorizationStatusResponseError, type getDataInstallationAuthorizationStatusResponseSuccess, getDataIntegrationAuthorizeUrl, type getDataIntegrationAuthorizeUrlResponse, type getDataIntegrationAuthorizeUrlResponse200, type getDataIntegrationAuthorizeUrlResponse400, type getDataIntegrationAuthorizeUrlResponse403, type getDataIntegrationAuthorizeUrlResponse404, type getDataIntegrationAuthorizeUrlResponseError, type getDataIntegrationAuthorizeUrlResponseSuccess, getDeleteDataInstallationMutationOptions, getDeleteDataInstallationUrl, getDeleteOrganizationApiKeyMutationOptions, getDeleteOrganizationApiKeyUrl, getDeleteOrganizationDomainMutationOptions, getDeleteOrganizationDomainUrl, getDeletePasskeyMutationOptions, getDeletePasskeyUrl, getDeleteTotpFactorsMutationOptions, getDeleteTotpFactorsUrl, getGenerateAdminPortalLinkMutationOptions, getGenerateAdminPortalLinkUrl, getGetDataInstallationAuthorizationStatusQueryKey, getGetDataInstallationAuthorizationStatusQueryOptions, getGetDataInstallationAuthorizationStatusUrl, getGetDataIntegrationAuthorizeUrlQueryKey, getGetDataIntegrationAuthorizeUrlQueryOptions, getGetDataIntegrationAuthorizeUrlUrl, getInviteMemberMutationOptions, getInviteMemberUrl, getListDirectoriesQueryKey, getListDirectoriesQueryOptions, getListDirectoriesUrl, getListOrganizationApiKeyPermissionsQueryKey, getListOrganizationApiKeyPermissionsQueryOptions, getListOrganizationApiKeyPermissionsUrl, getListOrganizationApiKeysQueryKey, getListOrganizationApiKeysQueryOptions, getListOrganizationApiKeysUrl, getListOrganizationDomainsQueryKey, getListOrganizationDomainsQueryOptions, getListOrganizationDomainsUrl, getListSsoConnectionsQueryKey, getListSsoConnectionsQueryOptions, getListSsoConnectionsUrl, getMeQueryKey, getMeQueryOptions, getMeUrl, getMembersQueryKey, getMembersQueryOptions, getMembersUrl, getMyDataIntegrationsQueryKey, getMyDataIntegrationsQueryOptions, getMyDataIntegrationsUrl, getOrganizationsQueryKey, getOrganizationsQueryOptions, getOrganizationsUrl, getRegisterPasskeyMutationOptions, getRegisterPasskeyUrl, getRemoveMemberMutationOptions, getRemoveMemberUrl, getResendInviteMutationOptions, getResendInviteUrl, getReverifyOrganizationDomainMutationOptions, getReverifyOrganizationDomainUrl, getRevokeAllSessionsMutationOptions, getRevokeAllSessionsUrl, getRevokeInviteMutationOptions, getRevokeInviteUrl, getRevokeSessionMutationOptions, getRevokeSessionUrl, getRolesAndConfigQueryKey, getRolesAndConfigQueryOptions, getRolesAndConfigUrl, getRolesQueryKey, getRolesQueryOptions, getRolesUrl, getSendVerificationMutationOptions, getSendVerificationUrl, getSessionsQueryKey, getSessionsQueryOptions, getSessionsUrl, getSettingsQueryKey, getSettingsQueryOptions, getSettingsUrl, getUpdateMeMutationOptions, getUpdateMeUrl, getUpdateMemberMutationOptions, getUpdateMemberUrl, getUpdatePasswordMutationOptions, getUpdatePasswordUrl, getVerifyMutationOptions, getVerifyPasskeyMutationOptions, getVerifyPasskeyUrl, getVerifyTotpFactorMutationOptions, getVerifyTotpFactorUrl, getVerifyUrl, inviteMember, type inviteMemberResponse, type inviteMemberResponse201, type inviteMemberResponse400, type inviteMemberResponse403, type inviteMemberResponse404, type inviteMemberResponseError, type inviteMemberResponseSuccess, listDirectories, type listDirectoriesResponse, type listDirectoriesResponse200, type listDirectoriesResponse403, type listDirectoriesResponse404, type listDirectoriesResponseError, type listDirectoriesResponseSuccess, listOrganizationApiKeyPermissions, type listOrganizationApiKeyPermissionsResponse, type listOrganizationApiKeyPermissionsResponse200, type listOrganizationApiKeyPermissionsResponse400, type listOrganizationApiKeyPermissionsResponse403, type listOrganizationApiKeyPermissionsResponseError, type listOrganizationApiKeyPermissionsResponseSuccess, listOrganizationApiKeys, type listOrganizationApiKeysResponse, type listOrganizationApiKeysResponse200, type listOrganizationApiKeysResponse400, type listOrganizationApiKeysResponse403, type listOrganizationApiKeysResponseError, type listOrganizationApiKeysResponseSuccess, listOrganizationDomains, type listOrganizationDomainsResponse, type listOrganizationDomainsResponse200, type listOrganizationDomainsResponse403, type listOrganizationDomainsResponse404, type listOrganizationDomainsResponseError, type listOrganizationDomainsResponseSuccess, listSsoConnections, type listSsoConnectionsResponse, type listSsoConnectionsResponse200, type listSsoConnectionsResponseSuccess, me, type meResponse, type meResponse200, type meResponse403, type meResponseError, type meResponseSuccess, members, type membersResponse, type membersResponse200, type membersResponse403, type membersResponse404, type membersResponseError, type membersResponseSuccess, myDataIntegrations, type myDataIntegrationsResponse, type myDataIntegrationsResponse200, type myDataIntegrationsResponse403, type myDataIntegrationsResponseError, type myDataIntegrationsResponseSuccess, organizations, type organizationsResponse, type organizationsResponse200, type organizationsResponse403, type organizationsResponse404, type organizationsResponseError, type organizationsResponseSuccess, registerPasskey, type registerPasskeyResponse, type registerPasskeyResponse201, type registerPasskeyResponse400, type registerPasskeyResponse403, type registerPasskeyResponseError, type registerPasskeyResponseSuccess, removeMember, type removeMemberResponse, type removeMemberResponse200, type removeMemberResponse400, type removeMemberResponse403, type removeMemberResponse404, type removeMemberResponseError, type removeMemberResponseSuccess, resendInvite, type resendInviteResponse, type resendInviteResponse201, type resendInviteResponse400, type resendInviteResponse403, type resendInviteResponse404, type resendInviteResponse422, type resendInviteResponseError, type resendInviteResponseSuccess, reverifyOrganizationDomain, type reverifyOrganizationDomainResponse, type reverifyOrganizationDomainResponse200, type reverifyOrganizationDomainResponse403, type reverifyOrganizationDomainResponse404, type reverifyOrganizationDomainResponseError, type reverifyOrganizationDomainResponseSuccess, revokeAllSessions, type revokeAllSessionsResponse, type revokeAllSessionsResponse200, type revokeAllSessionsResponse400, type revokeAllSessionsResponse403, type revokeAllSessionsResponseError, type revokeAllSessionsResponseSuccess, revokeInvite, type revokeInviteResponse, type revokeInviteResponse200, type revokeInviteResponse400, type revokeInviteResponse403, type revokeInviteResponse404, type revokeInviteResponseError, type revokeInviteResponseSuccess, revokeSession, type revokeSessionResponse, type revokeSessionResponse200, type revokeSessionResponse400, type revokeSessionResponse403, type revokeSessionResponseError, type revokeSessionResponseSuccess, roles, rolesAndConfig, type rolesAndConfigResponse, type rolesAndConfigResponse200, type rolesAndConfigResponse403, type rolesAndConfigResponse404, type rolesAndConfigResponseError, type rolesAndConfigResponseSuccess, type rolesResponse, type rolesResponse200, type rolesResponse403, type rolesResponse404, type rolesResponseError, type rolesResponseSuccess, sendVerification, type sendVerificationResponse, type sendVerificationResponse200, type sendVerificationResponse400, type sendVerificationResponse403, type sendVerificationResponseError, type sendVerificationResponseSuccess, sessions, type sessionsResponse, type sessionsResponse200, type sessionsResponse403, type sessionsResponseError, type sessionsResponseSuccess, settings, type settingsResponse, type settingsResponse200, type settingsResponse403, type settingsResponseError, type settingsResponseSuccess, updateMe, type updateMeResponse, type updateMeResponse200, type updateMeResponse400, type updateMeResponse403, type updateMeResponseError, type updateMeResponseSuccess, updateMember, type updateMemberResponse, type updateMemberResponse200, type updateMemberResponse400, type updateMemberResponse403, type updateMemberResponse404, type updateMemberResponse422, type updateMemberResponseError, type updateMemberResponseSuccess, updatePassword, type updatePasswordResponse, type updatePasswordResponse201, type updatePasswordResponse400, type updatePasswordResponse403, type updatePasswordResponseError, type updatePasswordResponseSuccess, useAuthenticationInformation, useCreateOrganizationApiKey, useCreatePassword, useCreateTotpFactor, useDeleteDataInstallation, useDeleteOrganizationApiKey, useDeleteOrganizationDomain, useDeletePasskey, useDeleteTotpFactors, useGenerateAdminPortalLink, useGetDataInstallationAuthorizationStatus, useGetDataIntegrationAuthorizeUrl, useInviteMember, useListDirectories, useListOrganizationApiKeyPermissions, useListOrganizationApiKeys, useListOrganizationDomains, useListSsoConnections, useMe, useMembers, useMyDataIntegrations, useOrganizations, useRegisterPasskey, useRemoveMember, useResendInvite, useReverifyOrganizationDomain, useRevokeAllSessions, useRevokeInvite, useRevokeSession, useRoles, useRolesAndConfig, useSendVerification, useSessions, useSettings, useUpdateMe, useUpdateMember, useUpdatePassword, useVerify, useVerifyPasskey, useVerifyTotpFactor, verify, verifyPasskey, type verifyPasskeyResponse, type verifyPasskeyResponse200, type verifyPasskeyResponse400, type verifyPasskeyResponse403, type verifyPasskeyResponseError, type verifyPasskeyResponseSuccess, type verifyResponse, type verifyResponse200, type verifyResponse400, type verifyResponse403, type verifyResponseError, type verifyResponseSuccess, verifyTotpFactor, type verifyTotpFactorResponse, type verifyTotpFactorResponse200, type verifyTotpFactorResponse400, type verifyTotpFactorResponse403, type verifyTotpFactorResponseError, type verifyTotpFactorResponseSuccess };