@workos-inc/widgets 1.9.0 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/dist/cjs/admin-portal-audit-log-streaming.client.cjs +167 -0
- package/dist/cjs/admin-portal-audit-log-streaming.client.cjs.map +1 -0
- package/dist/cjs/admin-portal-audit-log-streaming.client.d.cts +26 -0
- package/dist/cjs/admin-portal-domain-verification.client.cjs.map +1 -1
- package/dist/cjs/admin-portal-sso-connection.client.cjs +4 -7
- package/dist/cjs/admin-portal-sso-connection.client.cjs.map +1 -1
- package/dist/cjs/api/api-provider.cjs.map +1 -1
- package/dist/cjs/api/api-provider.d.cts +1 -1
- package/dist/cjs/api/endpoint.cjs +176 -285
- package/dist/cjs/api/endpoint.cjs.map +1 -1
- package/dist/cjs/api/endpoint.d.cts +345 -379
- package/dist/cjs/directory-sync.client.cjs +16 -3
- package/dist/cjs/directory-sync.client.cjs.map +1 -1
- package/dist/cjs/experimental/api/fetch.cjs +42 -183
- package/dist/cjs/experimental/api/fetch.cjs.map +1 -1
- package/dist/cjs/experimental/api/fetch.d.cts +325 -369
- package/dist/cjs/experimental/api/react-query.cjs +151 -263
- package/dist/cjs/experimental/api/react-query.cjs.map +1 -1
- package/dist/cjs/experimental/api/react-query.d.cts +380 -370
- package/dist/cjs/experimental/api/swr.cjs +84 -183
- package/dist/cjs/experimental/api/swr.cjs.map +1 -1
- package/dist/cjs/experimental/api/swr.d.cts +356 -408
- package/dist/cjs/index.cjs +11 -0
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +2 -0
- package/dist/cjs/lib/add-mfa-dialog.cjs +18 -16
- package/dist/cjs/lib/add-mfa-dialog.cjs.map +1 -1
- package/dist/cjs/lib/admin-portal-audit-log-streaming.cjs +321 -0
- package/dist/cjs/lib/admin-portal-audit-log-streaming.cjs.map +1 -0
- package/dist/cjs/lib/admin-portal-audit-log-streaming.d.cts +54 -0
- package/dist/cjs/lib/admin-portal-sso-connection.cjs +0 -8
- package/dist/cjs/lib/admin-portal-sso-connection.cjs.map +1 -1
- package/dist/cjs/lib/admin-portal-sso-connection.d.cts +1 -2
- package/dist/cjs/lib/audit-log-stream-icons.cjs +63 -0
- package/dist/cjs/lib/audit-log-stream-icons.cjs.map +1 -0
- package/dist/cjs/lib/audit-log-stream-icons.d.cts +5 -0
- package/dist/cjs/lib/identity-providers.d.cts +2 -2
- package/dist/cjs/lib/provider-icon.cjs.map +1 -1
- package/dist/cjs/lib/provider-icon.d.cts +2 -2
- package/dist/cjs/workos-widgets.client.cjs +13 -1
- package/dist/cjs/workos-widgets.client.cjs.map +1 -1
- package/dist/esm/admin-portal-audit-log-streaming.client.d.ts +26 -0
- package/dist/esm/admin-portal-audit-log-streaming.client.js +153 -0
- package/dist/esm/admin-portal-audit-log-streaming.client.js.map +1 -0
- package/dist/esm/admin-portal-domain-verification.client.js +2 -2
- package/dist/esm/admin-portal-domain-verification.client.js.map +1 -1
- package/dist/esm/admin-portal-sso-connection.client.js +6 -9
- package/dist/esm/admin-portal-sso-connection.client.js.map +1 -1
- package/dist/esm/api/api-provider.d.ts +1 -1
- package/dist/esm/api/api-provider.js.map +1 -1
- package/dist/esm/api/endpoint.d.ts +345 -379
- package/dist/esm/api/endpoint.js +168 -265
- package/dist/esm/api/endpoint.js.map +1 -1
- package/dist/esm/directory-sync.client.js +16 -3
- package/dist/esm/directory-sync.client.js.map +1 -1
- package/dist/esm/experimental/api/fetch.d.ts +325 -369
- package/dist/esm/experimental/api/fetch.js +38 -163
- package/dist/esm/experimental/api/fetch.js.map +1 -1
- package/dist/esm/experimental/api/react-query.d.ts +380 -370
- package/dist/esm/experimental/api/react-query.js +141 -243
- package/dist/esm/experimental/api/react-query.js.map +1 -1
- package/dist/esm/experimental/api/swr.d.ts +356 -408
- package/dist/esm/experimental/api/swr.js +76 -163
- package/dist/esm/experimental/api/swr.js.map +1 -1
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +12 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lib/add-mfa-dialog.js +18 -16
- package/dist/esm/lib/add-mfa-dialog.js.map +1 -1
- package/dist/esm/lib/admin-portal-audit-log-streaming.d.ts +54 -0
- package/dist/esm/lib/admin-portal-audit-log-streaming.js +290 -0
- package/dist/esm/lib/admin-portal-audit-log-streaming.js.map +1 -0
- package/dist/esm/lib/admin-portal-sso-connection.d.ts +1 -2
- package/dist/esm/lib/admin-portal-sso-connection.js +0 -8
- package/dist/esm/lib/admin-portal-sso-connection.js.map +1 -1
- package/dist/esm/lib/audit-log-stream-icons.d.ts +5 -0
- package/dist/esm/lib/audit-log-stream-icons.js +39 -0
- package/dist/esm/lib/audit-log-stream-icons.js.map +1 -0
- package/dist/esm/lib/identity-providers.d.ts +2 -2
- package/dist/esm/lib/provider-icon.d.ts +2 -2
- package/dist/esm/lib/provider-icon.js.map +1 -1
- package/dist/esm/workos-widgets.client.js +13 -1
- package/dist/esm/workos-widgets.client.js.map +1 -1
- package/package.json +2 -2
|
@@ -11,33 +11,6 @@ const MemberActionsItem = {
|
|
|
11
11
|
"revoke-invite": "revoke-invite",
|
|
12
12
|
"revoke-membership": "revoke-membership"
|
|
13
13
|
};
|
|
14
|
-
const CreateTotpFactorResponseAuthenticationFactorAllOfObject = {
|
|
15
|
-
authentication_factor: "authentication_factor"
|
|
16
|
-
};
|
|
17
|
-
const CreateTotpFactorResponseAuthenticationFactorAllOfType = {
|
|
18
|
-
generic_otp: "generic_otp",
|
|
19
|
-
sms: "sms",
|
|
20
|
-
totp: "totp",
|
|
21
|
-
webauthn: "webauthn"
|
|
22
|
-
};
|
|
23
|
-
const CreateTotpFactorResponseAuthenticationChallengeAllOfObject = {
|
|
24
|
-
authentication_challenge: "authentication_challenge"
|
|
25
|
-
};
|
|
26
|
-
const AuthenticationInformationResponseDataVerificationMethodsMfaOneOfProvider = {
|
|
27
|
-
MFA: "MFA"
|
|
28
|
-
};
|
|
29
|
-
const AuthenticationInformationResponseDataVerificationMethodsPasswordOneOfProvider = {
|
|
30
|
-
Password: "Password"
|
|
31
|
-
};
|
|
32
|
-
const AuthenticationInformationResponseDataVerificationMethodsPasskeyOneOfProvider = {
|
|
33
|
-
Passkey: "Passkey"
|
|
34
|
-
};
|
|
35
|
-
const SendVerificationResponseType = {
|
|
36
|
-
EmailVerification: "EmailVerification"
|
|
37
|
-
};
|
|
38
|
-
const SettingsResponseObject = {
|
|
39
|
-
settings: "settings"
|
|
40
|
-
};
|
|
41
14
|
const OrganizationDomainState = {
|
|
42
15
|
Failed: "Failed",
|
|
43
16
|
LegacyVerified: "LegacyVerified",
|
|
@@ -70,121 +43,6 @@ const SsoConnectionSessionJSONState = {
|
|
|
70
43
|
...SamlSessionState,
|
|
71
44
|
...OidcSessionState
|
|
72
45
|
};
|
|
73
|
-
const SsoConnectionAnyOfType = {
|
|
74
|
-
AdfsSaml: "AdfsSaml",
|
|
75
|
-
Auth0Saml: "Auth0Saml",
|
|
76
|
-
AzureSaml: "AzureSaml",
|
|
77
|
-
CasSaml: "CasSaml",
|
|
78
|
-
ClassLinkSaml: "ClassLinkSaml",
|
|
79
|
-
CloudflareSaml: "CloudflareSaml",
|
|
80
|
-
CyberArkSaml: "CyberArkSaml",
|
|
81
|
-
DuoSaml: "DuoSaml",
|
|
82
|
-
GenericSaml: "GenericSaml",
|
|
83
|
-
GoogleSaml: "GoogleSaml",
|
|
84
|
-
JumpCloudSaml: "JumpCloudSaml",
|
|
85
|
-
KeycloakSaml: "KeycloakSaml",
|
|
86
|
-
LastPassSaml: "LastPassSaml",
|
|
87
|
-
MiniOrangeSaml: "MiniOrangeSaml",
|
|
88
|
-
NetIqSaml: "NetIqSaml",
|
|
89
|
-
OktaSaml: "OktaSaml",
|
|
90
|
-
OneLoginSaml: "OneLoginSaml",
|
|
91
|
-
OracleSaml: "OracleSaml",
|
|
92
|
-
PingFederateSaml: "PingFederateSaml",
|
|
93
|
-
PingOneSaml: "PingOneSaml",
|
|
94
|
-
RipplingSaml: "RipplingSaml",
|
|
95
|
-
SalesforceSaml: "SalesforceSaml",
|
|
96
|
-
ShibbolethGenericSaml: "ShibbolethGenericSaml",
|
|
97
|
-
ShibbolethSaml: "ShibbolethSaml",
|
|
98
|
-
SimpleSamlPhpSaml: "SimpleSamlPhpSaml",
|
|
99
|
-
TestIdp: "TestIdp",
|
|
100
|
-
VmWareSaml: "VmWareSaml"
|
|
101
|
-
};
|
|
102
|
-
const SsoConnectionAnyOfState = {
|
|
103
|
-
Inactive: "Inactive",
|
|
104
|
-
Validating: "Validating",
|
|
105
|
-
Active: "Active",
|
|
106
|
-
Deleting: "Deleting"
|
|
107
|
-
};
|
|
108
|
-
const SsoConnectionAnyOfProviderTag = {
|
|
109
|
-
Saml: "Saml"
|
|
110
|
-
};
|
|
111
|
-
const SsoConnectionAnyOfEightAllOfState = {
|
|
112
|
-
Inactive: "Inactive",
|
|
113
|
-
Validating: "Validating",
|
|
114
|
-
Active: "Active",
|
|
115
|
-
Deleting: "Deleting"
|
|
116
|
-
};
|
|
117
|
-
const SsoConnectionAnyOfEightAllOfType = {
|
|
118
|
-
AdpOidc: "AdpOidc",
|
|
119
|
-
Auth0Migration: "Auth0Migration",
|
|
120
|
-
CleverOidc: "CleverOidc",
|
|
121
|
-
EntraIdOidc: "EntraIdOidc",
|
|
122
|
-
GenericOidc: "GenericOidc",
|
|
123
|
-
GoogleOidc: "GoogleOidc",
|
|
124
|
-
OktaOidc: "OktaOidc",
|
|
125
|
-
LoginGovOidc: "LoginGovOidc"
|
|
126
|
-
};
|
|
127
|
-
const SsoConnectionAnyOfEightAllOfProviderTag = {
|
|
128
|
-
OpenIdConnect: "OpenIdConnect"
|
|
129
|
-
};
|
|
130
|
-
const DataInstallationAllOfObject = {
|
|
131
|
-
data_installation: "data_installation",
|
|
132
|
-
connected_account: "connected_account"
|
|
133
|
-
};
|
|
134
|
-
const DataInstallationAllOfState = {
|
|
135
|
-
connected: "connected",
|
|
136
|
-
needs_reauthorization: "needs_reauthorization"
|
|
137
|
-
};
|
|
138
|
-
const DataIntegrationObject = {
|
|
139
|
-
data_integration: "data_integration"
|
|
140
|
-
};
|
|
141
|
-
const DataIntegrationIntegrationType = {
|
|
142
|
-
asana: "asana",
|
|
143
|
-
box: "box",
|
|
144
|
-
"cal-dot-com": "cal-dot-com",
|
|
145
|
-
calendly: "calendly",
|
|
146
|
-
confluence: "confluence",
|
|
147
|
-
dropbox: "dropbox",
|
|
148
|
-
"frame-io": "frame-io",
|
|
149
|
-
front: "front",
|
|
150
|
-
github: "github",
|
|
151
|
-
gitlab: "gitlab",
|
|
152
|
-
gmail: "gmail",
|
|
153
|
-
google: "google",
|
|
154
|
-
"google-calendar": "google-calendar",
|
|
155
|
-
"google-drive": "google-drive",
|
|
156
|
-
helpscout: "helpscout",
|
|
157
|
-
hubspot: "hubspot",
|
|
158
|
-
intercom: "intercom",
|
|
159
|
-
jira: "jira",
|
|
160
|
-
linear: "linear",
|
|
161
|
-
microsoft: "microsoft",
|
|
162
|
-
"microsoft-onedrive": "microsoft-onedrive",
|
|
163
|
-
"microsoft-onenote": "microsoft-onenote",
|
|
164
|
-
"microsoft-outlook": "microsoft-outlook",
|
|
165
|
-
"microsoft-outlook-calendar": "microsoft-outlook-calendar",
|
|
166
|
-
"microsoft-sharepoint": "microsoft-sharepoint",
|
|
167
|
-
"microsoft-teams": "microsoft-teams",
|
|
168
|
-
"microsoft-todo": "microsoft-todo",
|
|
169
|
-
notion: "notion",
|
|
170
|
-
prefect: "prefect",
|
|
171
|
-
"pydantic-logfire": "pydantic-logfire",
|
|
172
|
-
salesforce: "salesforce",
|
|
173
|
-
sentry: "sentry",
|
|
174
|
-
slack: "slack",
|
|
175
|
-
snowflake: "snowflake",
|
|
176
|
-
stripe: "stripe",
|
|
177
|
-
xero: "xero",
|
|
178
|
-
zendesk: "zendesk"
|
|
179
|
-
};
|
|
180
|
-
const DataIntegrationOwnership = {
|
|
181
|
-
userland_user: "userland_user",
|
|
182
|
-
organization: "organization"
|
|
183
|
-
};
|
|
184
|
-
const DataIntegrationCredentialsType = {
|
|
185
|
-
shared: "shared",
|
|
186
|
-
custom: "custom"
|
|
187
|
-
};
|
|
188
46
|
const DirectoryType = {
|
|
189
47
|
azure_scim_v20: "azure scim v2.0",
|
|
190
48
|
bamboohr: "bamboohr",
|
|
@@ -220,7 +78,8 @@ const DirectoryState = {
|
|
|
220
78
|
};
|
|
221
79
|
const GenerateAdminPortalLinkIntent = {
|
|
222
80
|
domain_verification: "domain_verification",
|
|
223
|
-
sso: "sso"
|
|
81
|
+
sso: "sso",
|
|
82
|
+
log_streams: "log_streams"
|
|
224
83
|
};
|
|
225
84
|
const getCreateOrganizationApiKeyUrl = () => {
|
|
226
85
|
return `https://api.workos.com/_widgets/ApiKeys/organization-api-keys`;
|
|
@@ -777,6 +636,22 @@ const verifyTotpFactor = async (verifyTotpFactorRequest, options) => {
|
|
|
777
636
|
headers: res.headers
|
|
778
637
|
};
|
|
779
638
|
};
|
|
639
|
+
const getGetAuditLogStreamUrl = () => {
|
|
640
|
+
return `https://api.workos.com/_widgets/admin-portal/audit-log-stream`;
|
|
641
|
+
};
|
|
642
|
+
const getAuditLogStream = async (options) => {
|
|
643
|
+
const res = await fetch(getGetAuditLogStreamUrl(), {
|
|
644
|
+
...options,
|
|
645
|
+
method: "GET"
|
|
646
|
+
});
|
|
647
|
+
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
648
|
+
const data = body ? JSON.parse(body) : {};
|
|
649
|
+
return {
|
|
650
|
+
data,
|
|
651
|
+
status: res.status,
|
|
652
|
+
headers: res.headers
|
|
653
|
+
};
|
|
654
|
+
};
|
|
780
655
|
const getGenerateAdminPortalLinkUrl = (params) => {
|
|
781
656
|
const normalizedParams = new URLSearchParams();
|
|
782
657
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -880,6 +755,22 @@ const listDirectories = async (options) => {
|
|
|
880
755
|
headers: res.headers
|
|
881
756
|
};
|
|
882
757
|
};
|
|
758
|
+
const getGetDirectoryUrl = (directoryId) => {
|
|
759
|
+
return `https://api.workos.com/_widgets/directory-sync/directories/${directoryId}`;
|
|
760
|
+
};
|
|
761
|
+
const getDirectory = async (directoryId, options) => {
|
|
762
|
+
const res = await fetch(getGetDirectoryUrl(directoryId), {
|
|
763
|
+
...options,
|
|
764
|
+
method: "GET"
|
|
765
|
+
});
|
|
766
|
+
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
767
|
+
const data = body ? JSON.parse(body) : {};
|
|
768
|
+
return {
|
|
769
|
+
data,
|
|
770
|
+
status: res.status,
|
|
771
|
+
headers: res.headers
|
|
772
|
+
};
|
|
773
|
+
};
|
|
883
774
|
const getSettingsUrl = () => {
|
|
884
775
|
return `https://api.workos.com/_widgets/settings`;
|
|
885
776
|
};
|
|
@@ -893,18 +784,6 @@ const settings = async (options) => {
|
|
|
893
784
|
return { data, status: res.status, headers: res.headers };
|
|
894
785
|
};
|
|
895
786
|
export {
|
|
896
|
-
AuthenticationInformationResponseDataVerificationMethodsMfaOneOfProvider,
|
|
897
|
-
AuthenticationInformationResponseDataVerificationMethodsPasskeyOneOfProvider,
|
|
898
|
-
AuthenticationInformationResponseDataVerificationMethodsPasswordOneOfProvider,
|
|
899
|
-
CreateTotpFactorResponseAuthenticationChallengeAllOfObject,
|
|
900
|
-
CreateTotpFactorResponseAuthenticationFactorAllOfObject,
|
|
901
|
-
CreateTotpFactorResponseAuthenticationFactorAllOfType,
|
|
902
|
-
DataInstallationAllOfObject,
|
|
903
|
-
DataInstallationAllOfState,
|
|
904
|
-
DataIntegrationCredentialsType,
|
|
905
|
-
DataIntegrationIntegrationType,
|
|
906
|
-
DataIntegrationObject,
|
|
907
|
-
DataIntegrationOwnership,
|
|
908
787
|
DirectoryState,
|
|
909
788
|
DirectoryType,
|
|
910
789
|
DomainVerificationNameServer,
|
|
@@ -914,14 +793,6 @@ export {
|
|
|
914
793
|
OidcSessionState,
|
|
915
794
|
OrganizationDomainState,
|
|
916
795
|
SamlSessionState,
|
|
917
|
-
SendVerificationResponseType,
|
|
918
|
-
SettingsResponseObject,
|
|
919
|
-
SsoConnectionAnyOfEightAllOfProviderTag,
|
|
920
|
-
SsoConnectionAnyOfEightAllOfState,
|
|
921
|
-
SsoConnectionAnyOfEightAllOfType,
|
|
922
|
-
SsoConnectionAnyOfProviderTag,
|
|
923
|
-
SsoConnectionAnyOfState,
|
|
924
|
-
SsoConnectionAnyOfType,
|
|
925
796
|
SsoConnectionSessionJSONState,
|
|
926
797
|
authenticationInformation,
|
|
927
798
|
createOrganizationApiKey,
|
|
@@ -933,6 +804,7 @@ export {
|
|
|
933
804
|
deletePasskey,
|
|
934
805
|
deleteTotpFactors,
|
|
935
806
|
generateAdminPortalLink,
|
|
807
|
+
getAuditLogStream,
|
|
936
808
|
getAuthenticationInformationUrl,
|
|
937
809
|
getCreateOrganizationApiKeyUrl,
|
|
938
810
|
getCreatePasswordUrl,
|
|
@@ -944,9 +816,12 @@ export {
|
|
|
944
816
|
getDeleteOrganizationDomainUrl,
|
|
945
817
|
getDeletePasskeyUrl,
|
|
946
818
|
getDeleteTotpFactorsUrl,
|
|
819
|
+
getDirectory,
|
|
947
820
|
getGenerateAdminPortalLinkUrl,
|
|
821
|
+
getGetAuditLogStreamUrl,
|
|
948
822
|
getGetDataInstallationAuthorizationStatusUrl,
|
|
949
823
|
getGetDataIntegrationAuthorizeUrlUrl,
|
|
824
|
+
getGetDirectoryUrl,
|
|
950
825
|
getInviteMemberUrl,
|
|
951
826
|
getListDirectoriesUrl,
|
|
952
827
|
getListOrganizationApiKeyPermissionsUrl,
|