@workos-inc/widgets 1.17.2-next.1788288181219 → 1.17.2

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 (38) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/dist/cjs/api/client-graphql/generated.cjs.map +1 -1
  3. package/dist/cjs/api/client-graphql/generated.d.cts +97 -1
  4. package/dist/cjs/api/endpoint.cjs +113 -0
  5. package/dist/cjs/api/endpoint.cjs.map +1 -1
  6. package/dist/cjs/api/endpoint.d.cts +161 -11
  7. package/dist/cjs/experimental/api/fetch.cjs +68 -0
  8. package/dist/cjs/experimental/api/fetch.cjs.map +1 -1
  9. package/dist/cjs/experimental/api/fetch.d.cts +169 -11
  10. package/dist/cjs/experimental/api/react-query.cjs +132 -0
  11. package/dist/cjs/experimental/api/react-query.cjs.map +1 -1
  12. package/dist/cjs/experimental/api/react-query.d.cts +237 -11
  13. package/dist/cjs/experimental/api/swr.cjs +144 -0
  14. package/dist/cjs/experimental/api/swr.cjs.map +1 -1
  15. package/dist/cjs/experimental/api/swr.d.cts +221 -11
  16. package/dist/cjs/lib/change-email-dialog.cjs +3 -3
  17. package/dist/cjs/lib/change-email-dialog.cjs.map +1 -1
  18. package/dist/cjs/lib/save-button.cjs +6 -2
  19. package/dist/cjs/lib/save-button.cjs.map +1 -1
  20. package/dist/esm/api/client-graphql/generated.d.ts +97 -1
  21. package/dist/esm/api/client-graphql/generated.js.map +1 -1
  22. package/dist/esm/api/endpoint.d.ts +161 -11
  23. package/dist/esm/api/endpoint.js +103 -0
  24. package/dist/esm/api/endpoint.js.map +1 -1
  25. package/dist/esm/experimental/api/fetch.d.ts +169 -11
  26. package/dist/esm/experimental/api/fetch.js +62 -0
  27. package/dist/esm/experimental/api/fetch.js.map +1 -1
  28. package/dist/esm/experimental/api/react-query.d.ts +237 -11
  29. package/dist/esm/experimental/api/react-query.js +119 -0
  30. package/dist/esm/experimental/api/react-query.js.map +1 -1
  31. package/dist/esm/experimental/api/swr.d.ts +221 -11
  32. package/dist/esm/experimental/api/swr.js +130 -0
  33. package/dist/esm/experimental/api/swr.js.map +1 -1
  34. package/dist/esm/lib/change-email-dialog.js +3 -3
  35. package/dist/esm/lib/change-email-dialog.js.map +1 -1
  36. package/dist/esm/lib/save-button.js +6 -2
  37. package/dist/esm/lib/save-button.js.map +1 -1
  38. package/package.json +1 -1
@@ -136,6 +136,12 @@ type AuditLogStream = {
136
136
  type AuditLogStreamState = "Active" | "Error" | "Inactive" | "Invalid";
137
137
  /** The destination provider audit log events are streamed to. */
138
138
  type AuditLogStreamType = "AzureSentinel" | "Datadog" | "GenericHttps" | "GoogleCloudStorage" | "S3" | "Snowflake" | "Splunk";
139
+ /** AuthKit settings for the token's environment. */
140
+ type AuthKitSettings = {
141
+ __typename?: "AuthKitSettings";
142
+ /** The HTTPS origin of the preferred AuthKit domain. */
143
+ origin: Scalars["String"]["output"];
144
+ };
139
145
  /** The authentication methods the environment allows, and the password policy it enforces. Distinct from what the authenticated user has set up, which lives on `me`. */
140
146
  type AuthenticationSettings = {
141
147
  __typename?: "AuthenticationSettings";
@@ -149,6 +155,20 @@ type AuthenticationSettings = {
149
155
  passwordAuthEnabled: Scalars["Boolean"]["output"];
150
156
  passwordPolicy: PasswordPolicy;
151
157
  };
158
+ /** The branding configured for the token's environment. */
159
+ type Branding = {
160
+ __typename?: "Branding";
161
+ /** The product name shown to users. */
162
+ displayName: Scalars["String"]["output"];
163
+ /** The fully resolved dark-mode icon URL, or null when it is not configured. */
164
+ logoDarkIconPath?: Maybe<Scalars["String"]["output"]>;
165
+ /** The fully resolved dark-mode logo URL, or null when it is not configured. */
166
+ logoDarkPath?: Maybe<Scalars["String"]["output"]>;
167
+ /** The fully resolved light-mode icon URL, or null when it is not configured. */
168
+ logoLightIconPath?: Maybe<Scalars["String"]["output"]>;
169
+ /** The fully resolved light-mode logo URL, or null when it is not configured. */
170
+ logoLightPath?: Maybe<Scalars["String"]["output"]>;
171
+ };
152
172
  /** Input for confirming an email change with the verification code. */
153
173
  type ConfirmEmailChangeInput = {
154
174
  /** The verification code sent to the new email address. */
@@ -402,6 +422,14 @@ type DataProviderList = {
402
422
  data: Array<DataProvider>;
403
423
  listMetadata: ListMetadata;
404
424
  };
425
+ /** Input for deleting a passkey. */
426
+ type DeletePasskeyInput = {
427
+ /** An elevated access token obtained by verifying the current email address. Required to prove recent re-authentication. */
428
+ elevatedAccessToken: Scalars["String"]["input"];
429
+ /** The ID of the passkey to delete. */
430
+ passkeyId: Scalars["ID"]["input"];
431
+ };
432
+ type DeletePasskeyResult = ElevatedAccessTokenExpired | ElevatedAccessTokenInvalid | PasskeyDeleted | PasskeyNotFound;
405
433
  type DeleteRoleInput = {
406
434
  /** The ID of the role to delete. */
407
435
  id: Scalars["ID"]["input"];
@@ -711,6 +739,8 @@ type Mutation = {
711
739
  deleteDataProviderConnection: Scalars["ID"]["output"];
712
740
  /** Delete a domain belonging to the token's organization and return it. */
713
741
  deleteOrganizationDomain: OrganizationDomain;
742
+ /** Remove the specified passkey from the authenticated user's account. */
743
+ deletePasskey: DeletePasskeyResult;
714
744
  /** Delete a role belonging to the organization the token was issued for. */
715
745
  deleteRole: RoleDeleted;
716
746
  /** Delete an SSO connection belonging to the token’s organization. */
@@ -719,6 +749,8 @@ type Mutation = {
719
749
  enrollTotp: EnrollTotpResult;
720
750
  /** Invite a user to the organization the token was issued for, assigning a role and sending the invitation email. */
721
751
  inviteUser: InviteUserResult;
752
+ /** Begin passkey (WebAuthn) registration for the authenticated user by returning the credential creation options. This is step 1 of the registration ceremony; complete it with `verifyPasskey`. */
753
+ registerPasskey: RegisterPasskeyResult;
722
754
  /** Remove a member from the organization the token was issued for. */
723
755
  removeMember: RemoveMemberResult;
724
756
  /** Delete all TOTP factors for the authenticated user, effectively resetting MFA. */
@@ -753,6 +785,8 @@ type Mutation = {
753
785
  updateSsoConnection: Connection;
754
786
  /** Verifies the code sent to the current email address. Returns an elevated access token required for `sendEmailChange` and `confirmEmailChange`. */
755
787
  verifyCurrentEmail: VerifyCurrentEmailResult;
788
+ /** Complete passkey (WebAuthn) registration by verifying the credential created by the authenticator. This is step 2 of the registration ceremony started by `registerPasskey`. */
789
+ verifyPasskey: VerifyPasskeyResult;
756
790
  /** Confirm TOTP enrollment by verifying a code from the authenticator app. Marks the factor as verified. */
757
791
  verifyTotp: VerifyTotpResult;
758
792
  };
@@ -798,6 +832,9 @@ type MutationDeleteDataProviderConnectionArgs = {
798
832
  type MutationDeleteOrganizationDomainArgs = {
799
833
  id: Scalars["ID"]["input"];
800
834
  };
835
+ type MutationDeletePasskeyArgs = {
836
+ input: DeletePasskeyInput;
837
+ };
801
838
  type MutationDeleteRoleArgs = {
802
839
  input: DeleteRoleInput;
803
840
  };
@@ -810,6 +847,9 @@ type MutationEnrollTotpArgs = {
810
847
  type MutationInviteUserArgs = {
811
848
  input: InviteUserInput;
812
849
  };
850
+ type MutationRegisterPasskeyArgs = {
851
+ input: RegisterPasskeyInput;
852
+ };
813
853
  type MutationRemoveMemberArgs = {
814
854
  input: RemoveMemberInput;
815
855
  };
@@ -855,6 +895,9 @@ type MutationUpdateSsoConnectionArgs = {
855
895
  type MutationVerifyCurrentEmailArgs = {
856
896
  input: VerifyCurrentEmailInput;
857
897
  };
898
+ type MutationVerifyPasskeyArgs = {
899
+ input: VerifyPasskeyInput;
900
+ };
858
901
  type MutationVerifyTotpArgs = {
859
902
  input: VerifyTotpInput;
860
903
  };
@@ -994,6 +1037,39 @@ type Passkey = {
994
1037
  lastVerifiedAt?: Maybe<Scalars["DateTime"]["output"]>;
995
1038
  updatedAt: Scalars["DateTime"]["output"];
996
1039
  };
1040
+ /** The registration challenge was not found. Challenges are single-use and expire after a few minutes; restart registration. */
1041
+ type PasskeyChallengeNotFound = {
1042
+ __typename?: "PasskeyChallengeNotFound";
1043
+ _placeholder: Scalars["Boolean"]["output"];
1044
+ };
1045
+ /** The passkey was deleted successfully. */
1046
+ type PasskeyDeleted = {
1047
+ __typename?: "PasskeyDeleted";
1048
+ success: Scalars["Boolean"]["output"];
1049
+ };
1050
+ /** No passkey with the given ID belongs to the authenticated user. */
1051
+ type PasskeyNotFound = {
1052
+ __typename?: "PasskeyNotFound";
1053
+ _placeholder: Scalars["Boolean"]["output"];
1054
+ };
1055
+ /** The WebAuthn credential creation options to pass to the browser, plus the challenge ID to send back with the attestation in `verifyPasskey`. */
1056
+ type PasskeyRegistrationOptions = {
1057
+ __typename?: "PasskeyRegistrationOptions";
1058
+ /** The server-side challenge ID. Pass it to `verifyPasskey` together with the attestation response. */
1059
+ challengeId: Scalars["String"]["output"];
1060
+ /** The WebAuthn PublicKeyCredentialCreationOptionsJSON to pass to navigator.credentials.create(). */
1061
+ options: Scalars["JSON"]["output"];
1062
+ };
1063
+ /** The WebAuthn attestation response failed verification. */
1064
+ type PasskeyVerificationFailed = {
1065
+ __typename?: "PasskeyVerificationFailed";
1066
+ _placeholder: Scalars["Boolean"]["output"];
1067
+ };
1068
+ /** The passkey was verified and registered successfully. */
1069
+ type PasskeyVerified = {
1070
+ __typename?: "PasskeyVerified";
1071
+ success: Scalars["Boolean"]["output"];
1072
+ };
997
1073
  /** The types of characters in a password. */
998
1074
  type PasswordCharacterType = "Lowercase" | "Number" | "Symbol" | "Uppercase";
999
1075
  /** The password was created successfully. */
@@ -1087,6 +1163,10 @@ type Query = {
1087
1163
  auditLogStream?: Maybe<AuditLogStream>;
1088
1164
  /** The authentication methods the environment allows and the password policy it enforces. Requires a session token. */
1089
1165
  authenticationSettings: AuthenticationSettings;
1166
+ /** The AuthKit settings for the token's environment. */
1167
+ authkitSettings: AuthKitSettings;
1168
+ /** The branding configured for the token's environment. */
1169
+ branding: Branding;
1090
1170
  /** Placeholder query for the Client GraphQL API scaffold. Returns a static value and is replaced by real resolvers. */
1091
1171
  clientApiStatus: Scalars["String"]["output"];
1092
1172
  /** Return a data provider by ID within the token's environment. */
@@ -1273,6 +1353,12 @@ type QuerySsoConnectionArgs = {
1273
1353
  type QueryUserArgs = {
1274
1354
  id: Scalars["ID"]["input"];
1275
1355
  };
1356
+ /** Input for beginning passkey (WebAuthn) registration. */
1357
+ type RegisterPasskeyInput = {
1358
+ /** An elevated access token obtained by verifying the current email address. Required to prove recent re-authentication. */
1359
+ elevatedAccessToken: Scalars["String"]["input"];
1360
+ };
1361
+ type RegisterPasskeyResult = ElevatedAccessTokenExpired | ElevatedAccessTokenInvalid | PasskeyRegistrationOptions;
1276
1362
  type RemoveMemberInput = {
1277
1363
  /** The user ID of the member to remove. */
1278
1364
  userId: Scalars["ID"]["input"];
@@ -1549,6 +1635,16 @@ type VerifyCurrentEmailInput = {
1549
1635
  code: Scalars["String"]["input"];
1550
1636
  };
1551
1637
  type VerifyCurrentEmailResult = CurrentEmailVerified | VerificationCodeExpired | VerificationCodeIncorrect | VerificationCodePreviouslyUsed | VerificationTooManyAttempts;
1638
+ /** Input for completing passkey (WebAuthn) registration by verifying the attestation created by the authenticator. */
1639
+ type VerifyPasskeyInput = {
1640
+ /** The challenge ID returned by `registerPasskey`. */
1641
+ challengeId: Scalars["String"]["input"];
1642
+ /** An elevated access token obtained by verifying the current email address. Required to prove recent re-authentication. */
1643
+ elevatedAccessToken: Scalars["String"]["input"];
1644
+ /** The WebAuthn RegistrationResponseJSON returned by navigator.credentials.create(). */
1645
+ response: Scalars["JSON"]["input"];
1646
+ };
1647
+ type VerifyPasskeyResult = ElevatedAccessTokenExpired | ElevatedAccessTokenInvalid | PasskeyChallengeNotFound | PasskeyVerificationFailed | PasskeyVerified;
1552
1648
  /** Input for verifying a TOTP enrollment. */
1553
1649
  type VerifyTotpInput = {
1554
1650
  /** The authentication challenge ID from enrollTotp. */
@@ -1573,4 +1669,4 @@ declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper)
1573
1669
  };
1574
1670
  type Sdk = ReturnType<typeof getSdk>;
1575
1671
 
1576
- export { type AdminPortalLink, type AdminPortalLinkIntent, type AllSessionsRevoked, type AssignPermissionToRoleInput, type AuditEvent, type AuditEventActor, type AuditEventFilterInput, type AuditEventList, type AuditLogExport, type AuditLogExportState, type AuditLogStream, type AuditLogStreamState, type AuditLogStreamType, type AuthenticationSettings, ClientApiStatusDocument, type ClientApiStatusQuery, type ClientApiStatusQueryVariables, type ConfirmEmailChangeInput, type ConfirmEmailChangeResult, type ConnectDataProviderResult, type ConnectDataProviderWithClientCredentialsInput, type ConnectedAccount, type Connection, type ConnectionState, type ConnectionType, type CreateAuditLogExportInput, type CreateAuditLogExportResult, type CreateDataProviderAuthorizationInput, type CreateDataProviderAuthorizationResult, type CreateDataProviderConnectionInput, type CreateOrganizationDataProviderAuthorizationInput, type CreatePasswordInput, type CreatePasswordResult, type CreateRoleInput, type CreateSsoConnectionInput, type CurrentEmailVerified, type DailyEmailQuotaExceeded, type DataProvider, type DataProviderAuthMethodUnsupported, type DataProviderAuthorization, type DataProviderAuthorizationStatus, type DataProviderAuthorizationUnavailable, type DataProviderConfigEntry, type DataProviderConfigEntryInput, type DataProviderConfigInvalid, type DataProviderConfiguration, type DataProviderConnected, type DataProviderConnection, type DataProviderConnectionAuthMethodConflict, type DataProviderConnectionList, type DataProviderList, type DeleteRoleInput, type Directory, type DirectoryGroup, type DirectoryGroupList, type DirectoryList, type DirectoryUser, type DirectoryUserList, type DomainVerificationNameServer, type ElevatedAccessTokenExpired, type ElevatedAccessTokenInvalid, type EmailChangeCodeExpired, type EmailChangeCodeIncorrect, type EmailChangeCodePreviouslyUsed, type EmailChangeConfirmed, type EmailChangeNotAvailable, type EmailChangeSent, type EmailChangeTooManyAttempts, type EmailManagedByProvider, type EmailNotAvailable, type EnrollTotpInput, type EnrollTotpResult, type Exact, type Flag, type FlagList, type IdentityVerificationExpired, type IdentityVerificationInvalid, type IncorrectPassword, type Incremental, type InputMaybe, type InvalidAuditLogExportDateRange, type InvalidEmail, type InvalidInvitationExpiry, type InvalidInviteeEmail, type InvalidInviteeRole, type InvalidLocale, type InvitationNotFound, type InvitationNotPending, type InvitationResent, type InvitationRevoked, type InviteUserInput, type InviteUserResult, type InviteeAlreadyAccepted, type InviteeAlreadyInvited, type InviteeAlreadyMember, type InviteeEmailNotDeliverable, type ListMetadata, type MakeEmpty, type MakeMaybe, type MakeOptional, type Maybe, type MemberIsManagedByDirectory, type MemberNotFound, type MemberRemoved, type MemberRoleUpdated, type MfaFactorRemoved, type Mutation, type MutationAssignPermissionToRoleArgs, type MutationConfirmEmailChangeArgs, type MutationConnectDataProviderWithClientCredentialsArgs, type MutationCreateAdminPortalLinkArgs, type MutationCreateAuditLogExportArgs, type MutationCreateDataProviderAuthorizationArgs, type MutationCreateDataProviderConnectionArgs, type MutationCreateOrganizationDataProviderAuthorizationArgs, type MutationCreateOrganizationDomainArgs, type MutationCreatePasswordArgs, type MutationCreateRoleArgs, type MutationCreateSsoConnectionArgs, type MutationDeleteDataProviderConnectionArgs, type MutationDeleteOrganizationDomainArgs, type MutationDeleteRoleArgs, type MutationDeleteSsoConnectionArgs, type MutationEnrollTotpArgs, type MutationInviteUserArgs, type MutationRemoveMemberArgs, type MutationRemoveMfaFactorArgs, type MutationResendInvitationArgs, type MutationReverifyOrganizationDomainArgs, type MutationRevokeInvitationArgs, type MutationRevokeSessionArgs, type MutationSendEmailChangeArgs, type MutationSetDataProviderConfigurationArgs, type MutationSetDataProviderEnabledArgs, type MutationUpdateMemberRoleArgs, type MutationUpdatePasswordArgs, type MutationUpdateProfileArgs, type MutationUpdateRoleArgs, type MutationUpdateSsoConnectionArgs, type MutationVerifyCurrentEmailArgs, type MutationVerifyTotpArgs, type NoAuditEventsFound, type NoMfaFactorsEnrolled, type NoPendingEmailChange, type OAuthProvider, type Organization, type OrganizationBlockedFromSendingInvites, type OrganizationDataProvider, type OrganizationDataProviderList, type OrganizationDomain, type OrganizationDomainList, type OrganizationDomainState, type OrganizationInvitation, type OrganizationInvitationStatus, type OrganizationMember, type OrganizationMemberList, type OrganizationMemberRole, type OrganizationMemberStatus, type PaginationOrder, type Passkey, type PasswordCharacterType, type PasswordCreated, type PasswordPolicy, type PasswordPolicyViolation, type PasswordUpdated, type PasswordViolation, type Permission, type PermissionList, type ProfileUpdated, type Query, type QueryAuditEventArgs, type QueryAuditEventsArgs, type QueryAuditLogExportArgs, type QueryDataProviderArgs, type QueryDataProviderAuthorizationStatusArgs, type QueryDataProviderConnectionArgs, type QueryDataProviderConnectionsArgs, type QueryDataProvidersArgs, type QueryDirectoryConnectionArgs, type QueryDirectoryConnectionsArgs, type QueryDirectoryGroupsArgs, type QueryDirectoryUsersArgs, type QueryEffectivePermissionsArgs, type QueryEvaluatedFlagsArgs, type QueryFlagArgs, type QueryFlagBySlugArgs, type QueryFlagsArgs, type QueryOrganizationArgs, type QueryOrganizationDataProvidersArgs, type QueryOrganizationDomainArgs, type QueryOrganizationDomainsArgs, type QueryOrganizationMembershipsArgs, type QueryPermissionsArgs, type QueryRoleArgs, type QuerySsoConnectionArgs, type QueryUserArgs, type RemoveMemberInput, type RemoveMemberResult, type RemoveMfaFactorInput, type RemoveMfaFactorResult, type ResendInvitationInput, type ResendInvitationNotFound, type ResendInvitationResult, type RevokeAllSessionsResult, type RevokeInvitationInput, type RevokeInvitationResult, type RevokeSessionInput, type RevokeSessionResult, type Role, type RoleDeleted, type RoleNotFound, type RolesResult, type Scalars, type Sdk, type SdkFunctionWrapper, type SendEmailChangeInput, type SendEmailChangeResult, type SendVerificationCodeResult, type Session, type SessionLocation, type SessionNotFound, type SessionRevoked, type SessionState, type SetDataProviderConfigurationInput, type SetDataProviderConfigurationResult, type SetDataProviderEnabledInput, type TotpAlreadyEnrolled, type TotpFactor, type TotpVerificationFailed, type TotpVerified, type UpdateMemberRoleInput, type UpdateMemberRoleResult, type UpdatePasswordInput, type UpdatePasswordResult, type UpdateProfileInput, type UpdateProfileResult, type UpdateRoleInput, type UpdateSsoConnectionInput, type User, type UserAlreadyHasPassword, type UserInvited, type UserOrganization, type VerificationCodeExpired, type VerificationCodeIncorrect, type VerificationCodePreviouslyUsed, type VerificationCodeSent, type VerificationTooManyAttempts, type VerifyCurrentEmailInput, type VerifyCurrentEmailResult, type VerifyTotpInput, type VerifyTotpResult, getSdk };
1672
+ export { type AdminPortalLink, type AdminPortalLinkIntent, type AllSessionsRevoked, type AssignPermissionToRoleInput, type AuditEvent, type AuditEventActor, type AuditEventFilterInput, type AuditEventList, type AuditLogExport, type AuditLogExportState, type AuditLogStream, type AuditLogStreamState, type AuditLogStreamType, type AuthKitSettings, type AuthenticationSettings, type Branding, ClientApiStatusDocument, type ClientApiStatusQuery, type ClientApiStatusQueryVariables, type ConfirmEmailChangeInput, type ConfirmEmailChangeResult, type ConnectDataProviderResult, type ConnectDataProviderWithClientCredentialsInput, type ConnectedAccount, type Connection, type ConnectionState, type ConnectionType, type CreateAuditLogExportInput, type CreateAuditLogExportResult, type CreateDataProviderAuthorizationInput, type CreateDataProviderAuthorizationResult, type CreateDataProviderConnectionInput, type CreateOrganizationDataProviderAuthorizationInput, type CreatePasswordInput, type CreatePasswordResult, type CreateRoleInput, type CreateSsoConnectionInput, type CurrentEmailVerified, type DailyEmailQuotaExceeded, type DataProvider, type DataProviderAuthMethodUnsupported, type DataProviderAuthorization, type DataProviderAuthorizationStatus, type DataProviderAuthorizationUnavailable, type DataProviderConfigEntry, type DataProviderConfigEntryInput, type DataProviderConfigInvalid, type DataProviderConfiguration, type DataProviderConnected, type DataProviderConnection, type DataProviderConnectionAuthMethodConflict, type DataProviderConnectionList, type DataProviderList, type DeletePasskeyInput, type DeletePasskeyResult, type DeleteRoleInput, type Directory, type DirectoryGroup, type DirectoryGroupList, type DirectoryList, type DirectoryUser, type DirectoryUserList, type DomainVerificationNameServer, type ElevatedAccessTokenExpired, type ElevatedAccessTokenInvalid, type EmailChangeCodeExpired, type EmailChangeCodeIncorrect, type EmailChangeCodePreviouslyUsed, type EmailChangeConfirmed, type EmailChangeNotAvailable, type EmailChangeSent, type EmailChangeTooManyAttempts, type EmailManagedByProvider, type EmailNotAvailable, type EnrollTotpInput, type EnrollTotpResult, type Exact, type Flag, type FlagList, type IdentityVerificationExpired, type IdentityVerificationInvalid, type IncorrectPassword, type Incremental, type InputMaybe, type InvalidAuditLogExportDateRange, type InvalidEmail, type InvalidInvitationExpiry, type InvalidInviteeEmail, type InvalidInviteeRole, type InvalidLocale, type InvitationNotFound, type InvitationNotPending, type InvitationResent, type InvitationRevoked, type InviteUserInput, type InviteUserResult, type InviteeAlreadyAccepted, type InviteeAlreadyInvited, type InviteeAlreadyMember, type InviteeEmailNotDeliverable, type ListMetadata, type MakeEmpty, type MakeMaybe, type MakeOptional, type Maybe, type MemberIsManagedByDirectory, type MemberNotFound, type MemberRemoved, type MemberRoleUpdated, type MfaFactorRemoved, type Mutation, type MutationAssignPermissionToRoleArgs, type MutationConfirmEmailChangeArgs, type MutationConnectDataProviderWithClientCredentialsArgs, type MutationCreateAdminPortalLinkArgs, type MutationCreateAuditLogExportArgs, type MutationCreateDataProviderAuthorizationArgs, type MutationCreateDataProviderConnectionArgs, type MutationCreateOrganizationDataProviderAuthorizationArgs, type MutationCreateOrganizationDomainArgs, type MutationCreatePasswordArgs, type MutationCreateRoleArgs, type MutationCreateSsoConnectionArgs, type MutationDeleteDataProviderConnectionArgs, type MutationDeleteOrganizationDomainArgs, type MutationDeletePasskeyArgs, type MutationDeleteRoleArgs, type MutationDeleteSsoConnectionArgs, type MutationEnrollTotpArgs, type MutationInviteUserArgs, type MutationRegisterPasskeyArgs, type MutationRemoveMemberArgs, type MutationRemoveMfaFactorArgs, type MutationResendInvitationArgs, type MutationReverifyOrganizationDomainArgs, type MutationRevokeInvitationArgs, type MutationRevokeSessionArgs, type MutationSendEmailChangeArgs, type MutationSetDataProviderConfigurationArgs, type MutationSetDataProviderEnabledArgs, type MutationUpdateMemberRoleArgs, type MutationUpdatePasswordArgs, type MutationUpdateProfileArgs, type MutationUpdateRoleArgs, type MutationUpdateSsoConnectionArgs, type MutationVerifyCurrentEmailArgs, type MutationVerifyPasskeyArgs, type MutationVerifyTotpArgs, type NoAuditEventsFound, type NoMfaFactorsEnrolled, type NoPendingEmailChange, type OAuthProvider, type Organization, type OrganizationBlockedFromSendingInvites, type OrganizationDataProvider, type OrganizationDataProviderList, type OrganizationDomain, type OrganizationDomainList, type OrganizationDomainState, type OrganizationInvitation, type OrganizationInvitationStatus, type OrganizationMember, type OrganizationMemberList, type OrganizationMemberRole, type OrganizationMemberStatus, type PaginationOrder, type Passkey, type PasskeyChallengeNotFound, type PasskeyDeleted, type PasskeyNotFound, type PasskeyRegistrationOptions, type PasskeyVerificationFailed, type PasskeyVerified, type PasswordCharacterType, type PasswordCreated, type PasswordPolicy, type PasswordPolicyViolation, type PasswordUpdated, type PasswordViolation, type Permission, type PermissionList, type ProfileUpdated, type Query, type QueryAuditEventArgs, type QueryAuditEventsArgs, type QueryAuditLogExportArgs, type QueryDataProviderArgs, type QueryDataProviderAuthorizationStatusArgs, type QueryDataProviderConnectionArgs, type QueryDataProviderConnectionsArgs, type QueryDataProvidersArgs, type QueryDirectoryConnectionArgs, type QueryDirectoryConnectionsArgs, type QueryDirectoryGroupsArgs, type QueryDirectoryUsersArgs, type QueryEffectivePermissionsArgs, type QueryEvaluatedFlagsArgs, type QueryFlagArgs, type QueryFlagBySlugArgs, type QueryFlagsArgs, type QueryOrganizationArgs, type QueryOrganizationDataProvidersArgs, type QueryOrganizationDomainArgs, type QueryOrganizationDomainsArgs, type QueryOrganizationMembershipsArgs, type QueryPermissionsArgs, type QueryRoleArgs, type QuerySsoConnectionArgs, type QueryUserArgs, type RegisterPasskeyInput, type RegisterPasskeyResult, type RemoveMemberInput, type RemoveMemberResult, type RemoveMfaFactorInput, type RemoveMfaFactorResult, type ResendInvitationInput, type ResendInvitationNotFound, type ResendInvitationResult, type RevokeAllSessionsResult, type RevokeInvitationInput, type RevokeInvitationResult, type RevokeSessionInput, type RevokeSessionResult, type Role, type RoleDeleted, type RoleNotFound, type RolesResult, type Scalars, type Sdk, type SdkFunctionWrapper, type SendEmailChangeInput, type SendEmailChangeResult, type SendVerificationCodeResult, type Session, type SessionLocation, type SessionNotFound, type SessionRevoked, type SessionState, type SetDataProviderConfigurationInput, type SetDataProviderConfigurationResult, type SetDataProviderEnabledInput, type TotpAlreadyEnrolled, type TotpFactor, type TotpVerificationFailed, type TotpVerified, type UpdateMemberRoleInput, type UpdateMemberRoleResult, type UpdatePasswordInput, type UpdatePasswordResult, type UpdateProfileInput, type UpdateProfileResult, type UpdateRoleInput, type UpdateSsoConnectionInput, type User, type UserAlreadyHasPassword, type UserInvited, type UserOrganization, type VerificationCodeExpired, type VerificationCodeIncorrect, type VerificationCodePreviouslyUsed, type VerificationCodeSent, type VerificationTooManyAttempts, type VerifyCurrentEmailInput, type VerifyCurrentEmailResult, type VerifyPasskeyInput, type VerifyPasskeyResult, type VerifyTotpInput, type VerifyTotpResult, getSdk };
@@ -50,6 +50,7 @@ __export(endpoint_exports, {
50
50
  getRolesQueryKey: () => getRolesQueryKey,
51
51
  getSessionsQueryKey: () => getSessionsQueryKey,
52
52
  getSettingsQueryKey: () => getSettingsQueryKey,
53
+ getSharedDataConnectionsQueryKey: () => getSharedDataConnectionsQueryKey,
53
54
  useAuthenticationInformation: () => useAuthenticationInformation,
54
55
  useAuthenticationInformationHook: () => useAuthenticationInformationHook,
55
56
  useAuthenticationInformationQueryOptions: () => useAuthenticationInformationQueryOptions,
@@ -77,6 +78,9 @@ __export(endpoint_exports, {
77
78
  useDeleteOrganizationApiKey: () => useDeleteOrganizationApiKey,
78
79
  useDeleteOrganizationApiKeyHook: () => useDeleteOrganizationApiKeyHook,
79
80
  useDeleteOrganizationApiKeyMutationOptions: () => useDeleteOrganizationApiKeyMutationOptions,
81
+ useDeleteOrganizationDataInstallation: () => useDeleteOrganizationDataInstallation,
82
+ useDeleteOrganizationDataInstallationHook: () => useDeleteOrganizationDataInstallationHook,
83
+ useDeleteOrganizationDataInstallationMutationOptions: () => useDeleteOrganizationDataInstallationMutationOptions,
80
84
  useDeleteOrganizationDomain: () => useDeleteOrganizationDomain,
81
85
  useDeleteOrganizationDomainHook: () => useDeleteOrganizationDomainHook,
82
86
  useDeleteOrganizationDomainMutationOptions: () => useDeleteOrganizationDomainMutationOptions,
@@ -191,6 +195,9 @@ __export(endpoint_exports, {
191
195
  useSettings: () => useSettings,
192
196
  useSettingsHook: () => useSettingsHook,
193
197
  useSettingsQueryOptions: () => useSettingsQueryOptions,
198
+ useSharedDataConnections: () => useSharedDataConnections,
199
+ useSharedDataConnectionsHook: () => useSharedDataConnectionsHook,
200
+ useSharedDataConnectionsQueryOptions: () => useSharedDataConnectionsQueryOptions,
194
201
  useUpdateMe: () => useUpdateMe,
195
202
  useUpdateMeHook: () => useUpdateMeHook,
196
203
  useUpdateMeMutationOptions: () => useUpdateMeMutationOptions,
@@ -209,6 +216,9 @@ __export(endpoint_exports, {
209
216
  useUpsertDataIntegrationConfiguration: () => useUpsertDataIntegrationConfiguration,
210
217
  useUpsertDataIntegrationConfigurationHook: () => useUpsertDataIntegrationConfigurationHook,
211
218
  useUpsertDataIntegrationConfigurationMutationOptions: () => useUpsertDataIntegrationConfigurationMutationOptions,
219
+ useUpsertOrganizationDataIntegrationConfiguration: () => useUpsertOrganizationDataIntegrationConfiguration,
220
+ useUpsertOrganizationDataIntegrationConfigurationHook: () => useUpsertOrganizationDataIntegrationConfigurationHook,
221
+ useUpsertOrganizationDataIntegrationConfigurationMutationOptions: () => useUpsertOrganizationDataIntegrationConfigurationMutationOptions,
212
222
  useVerify: () => useVerify,
213
223
  useVerifyEmailChange: () => useVerifyEmailChange,
214
224
  useVerifyEmailChangeHook: () => useVerifyEmailChangeHook,
@@ -618,6 +628,68 @@ function useOrganizationDataIntegrations(options, queryClient) {
618
628
  const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
619
629
  return withQueryKey(query, queryOptions.queryKey);
620
630
  }
631
+ const useDeleteOrganizationDataInstallationHook = () => {
632
+ const deleteOrganizationDataInstallation = (0, import_widgets_api_client.useWidgetsApiClient)();
633
+ return (0, import_react.useCallback)(
634
+ (installationId, signal) => {
635
+ return deleteOrganizationDataInstallation({
636
+ url: `/_widgets/DataIntegrations/organization/installations/${installationId}`,
637
+ method: "DELETE",
638
+ signal
639
+ });
640
+ },
641
+ [deleteOrganizationDataInstallation]
642
+ );
643
+ };
644
+ const useDeleteOrganizationDataInstallationMutationOptions = (options) => {
645
+ const mutationKey = ["deleteOrganizationDataInstallation"];
646
+ const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
647
+ const deleteOrganizationDataInstallation = useDeleteOrganizationDataInstallationHook();
648
+ const mutationFn = (props) => {
649
+ const { installationId } = props ?? {};
650
+ return deleteOrganizationDataInstallation(installationId);
651
+ };
652
+ return { mutationFn, ...mutationOptions };
653
+ };
654
+ const useDeleteOrganizationDataInstallation = (options, queryClient) => {
655
+ return (0, import_react_query.useMutation)(
656
+ useDeleteOrganizationDataInstallationMutationOptions(options),
657
+ queryClient
658
+ );
659
+ };
660
+ const useSharedDataConnectionsHook = () => {
661
+ const sharedDataConnections = (0, import_widgets_api_client.useWidgetsApiClient)();
662
+ return (0, import_react.useCallback)(
663
+ (signal) => {
664
+ return sharedDataConnections({
665
+ url: `/_widgets/DataIntegrations/shared-connections`,
666
+ method: "GET",
667
+ signal
668
+ });
669
+ },
670
+ [sharedDataConnections]
671
+ );
672
+ };
673
+ const getSharedDataConnectionsQueryKey = () => {
674
+ return [`/_widgets/DataIntegrations/shared-connections`];
675
+ };
676
+ const useSharedDataConnectionsQueryOptions = (options) => {
677
+ const { query: queryOptions } = options ?? {};
678
+ const queryKey = queryOptions?.queryKey ?? getSharedDataConnectionsQueryKey();
679
+ const sharedDataConnections = useSharedDataConnectionsHook();
680
+ const queryFn = ({ signal }) => sharedDataConnections(signal);
681
+ const customOptions = (0, import_widgets_api_client2.useWidgetsApiQueryOptions)({
682
+ queryKey,
683
+ queryFn,
684
+ ...queryOptions
685
+ });
686
+ return customOptions;
687
+ };
688
+ function useSharedDataConnections(options, queryClient) {
689
+ const queryOptions = useSharedDataConnectionsQueryOptions(options);
690
+ const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
691
+ return withQueryKey(query, queryOptions.queryKey);
692
+ }
621
693
  const useGetDataInstallationAuthorizationStatusHook = () => {
622
694
  const getDataInstallationAuthorizationStatus = (0, import_widgets_api_client.useWidgetsApiClient)();
623
695
  return (0, import_react.useCallback)(
@@ -855,6 +927,37 @@ const useAuthorizeOrganizationDataIntegration = (options, queryClient) => {
855
927
  queryClient
856
928
  );
857
929
  };
930
+ const useUpsertOrganizationDataIntegrationConfigurationHook = () => {
931
+ const upsertOrganizationDataIntegrationConfiguration = (0, import_widgets_api_client.useWidgetsApiClient)();
932
+ return (0, import_react.useCallback)(
933
+ (slug, upsertOrganizationDataIntegrationConfigurationInput, signal) => {
934
+ return upsertOrganizationDataIntegrationConfiguration({
935
+ url: `/_widgets/DataIntegrations/${slug}/organization/configuration`,
936
+ method: "PUT",
937
+ headers: { "Content-Type": "application/json" },
938
+ data: upsertOrganizationDataIntegrationConfigurationInput,
939
+ signal
940
+ });
941
+ },
942
+ [upsertOrganizationDataIntegrationConfiguration]
943
+ );
944
+ };
945
+ const useUpsertOrganizationDataIntegrationConfigurationMutationOptions = (options) => {
946
+ const mutationKey = ["upsertOrganizationDataIntegrationConfiguration"];
947
+ const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
948
+ const upsertOrganizationDataIntegrationConfiguration = useUpsertOrganizationDataIntegrationConfigurationHook();
949
+ const mutationFn = (props) => {
950
+ const { slug, data } = props ?? {};
951
+ return upsertOrganizationDataIntegrationConfiguration(slug, data);
952
+ };
953
+ return { mutationFn, ...mutationOptions };
954
+ };
955
+ const useUpsertOrganizationDataIntegrationConfiguration = (options, queryClient) => {
956
+ return (0, import_react_query.useMutation)(
957
+ useUpsertOrganizationDataIntegrationConfigurationMutationOptions(options),
958
+ queryClient
959
+ );
960
+ };
858
961
  const useCreateUserApiKeyHook = () => {
859
962
  const createUserApiKey = (0, import_widgets_api_client.useWidgetsApiClient)();
860
963
  return (0, import_react.useCallback)(
@@ -2100,6 +2203,7 @@ function useSettings(options, queryClient) {
2100
2203
  getRolesQueryKey,
2101
2204
  getSessionsQueryKey,
2102
2205
  getSettingsQueryKey,
2206
+ getSharedDataConnectionsQueryKey,
2103
2207
  useAuthenticationInformation,
2104
2208
  useAuthenticationInformationHook,
2105
2209
  useAuthenticationInformationQueryOptions,
@@ -2127,6 +2231,9 @@ function useSettings(options, queryClient) {
2127
2231
  useDeleteOrganizationApiKey,
2128
2232
  useDeleteOrganizationApiKeyHook,
2129
2233
  useDeleteOrganizationApiKeyMutationOptions,
2234
+ useDeleteOrganizationDataInstallation,
2235
+ useDeleteOrganizationDataInstallationHook,
2236
+ useDeleteOrganizationDataInstallationMutationOptions,
2130
2237
  useDeleteOrganizationDomain,
2131
2238
  useDeleteOrganizationDomainHook,
2132
2239
  useDeleteOrganizationDomainMutationOptions,
@@ -2241,6 +2348,9 @@ function useSettings(options, queryClient) {
2241
2348
  useSettings,
2242
2349
  useSettingsHook,
2243
2350
  useSettingsQueryOptions,
2351
+ useSharedDataConnections,
2352
+ useSharedDataConnectionsHook,
2353
+ useSharedDataConnectionsQueryOptions,
2244
2354
  useUpdateMe,
2245
2355
  useUpdateMeHook,
2246
2356
  useUpdateMeMutationOptions,
@@ -2259,6 +2369,9 @@ function useSettings(options, queryClient) {
2259
2369
  useUpsertDataIntegrationConfiguration,
2260
2370
  useUpsertDataIntegrationConfigurationHook,
2261
2371
  useUpsertDataIntegrationConfigurationMutationOptions,
2372
+ useUpsertOrganizationDataIntegrationConfiguration,
2373
+ useUpsertOrganizationDataIntegrationConfigurationHook,
2374
+ useUpsertOrganizationDataIntegrationConfigurationMutationOptions,
2262
2375
  useVerify,
2263
2376
  useVerifyEmailChange,
2264
2377
  useVerifyEmailChangeHook,