@workos-inc/node 8.0.0-beta.3 → 8.0.0-beta.4
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/lib/cjs/audit-logs/audit-logs.d.cts +3 -2
- package/lib/cjs/client/index.cjs +42 -0
- package/lib/cjs/client/index.cjs.map +1 -0
- package/lib/cjs/client/index.d.cts +3 -0
- package/lib/cjs/client/sso.cjs +65 -0
- package/lib/cjs/client/sso.cjs.map +1 -0
- package/lib/cjs/client/sso.d.cts +2 -0
- package/lib/cjs/client/user-management.cjs +110 -0
- package/lib/cjs/client/user-management.cjs.map +1 -0
- package/lib/cjs/client/user-management.d.cts +1 -0
- package/lib/cjs/client/utils.cjs +49 -0
- package/lib/cjs/client/utils.cjs.map +1 -0
- package/lib/cjs/client/utils.d.cts +7 -0
- package/lib/cjs/common/decorators/public-method.cjs +48 -0
- package/lib/cjs/common/decorators/public-method.cjs.map +1 -0
- package/lib/cjs/common/decorators/public-method.d.cts +12 -0
- package/lib/cjs/common/interfaces/event.interface.cjs.map +1 -1
- package/lib/cjs/common/interfaces/event.interface.d.cts +19 -3
- package/lib/cjs/common/interfaces/index.d.cts +1 -1
- package/lib/cjs/common/interfaces/workos-options.interface.cjs.map +1 -1
- package/lib/cjs/common/interfaces/workos-options.interface.d.cts +1 -0
- package/lib/cjs/common/net/fetch-client.cjs +67 -36
- package/lib/cjs/common/net/fetch-client.cjs.map +1 -1
- package/lib/cjs/common/net/fetch-client.d.cts +5 -2
- package/lib/cjs/common/serializers/event.serializer.cjs +2 -0
- package/lib/cjs/common/serializers/event.serializer.cjs.map +1 -1
- package/lib/cjs/common/utils/fetch-and-deserialize.d.cts +3 -2
- package/lib/cjs/common/utils/pagination.cjs +2 -4
- package/lib/cjs/common/utils/pagination.cjs.map +1 -1
- package/lib/cjs/common/utils/runtime-info.cjs +73 -0
- package/lib/cjs/common/utils/runtime-info.cjs.map +1 -0
- package/lib/cjs/common/utils/runtime-info.d.cts +22 -0
- package/lib/cjs/directory-sync/directory-sync.d.cts +4 -3
- package/lib/cjs/events/events.d.cts +3 -2
- package/lib/cjs/fga/fga.d.cts +4 -3
- package/lib/cjs/fga/utils/fetch-and-deserialize-list.d.cts +3 -2
- package/lib/cjs/index.cjs +2 -0
- package/lib/cjs/index.cjs.map +1 -1
- package/lib/cjs/index.client.cjs +42 -0
- package/lib/cjs/index.client.cjs.map +1 -0
- package/lib/cjs/index.client.d.cts +3 -0
- package/lib/cjs/index.d.cts +3 -2
- package/lib/cjs/index.public.cjs +52 -0
- package/lib/cjs/index.public.cjs.map +1 -0
- package/lib/cjs/index.public.d.cts +36 -0
- package/lib/cjs/index.worker.d.cts +3 -2
- package/lib/cjs/mfa/mfa.d.cts +3 -2
- package/lib/cjs/organization-domains/organization-domains.d.cts +3 -2
- package/lib/cjs/organizations/interfaces/list-organization-feature-flags-options.interface.cjs.map +1 -1
- package/lib/cjs/organizations/interfaces/list-organization-feature-flags-options.interface.d.cts +3 -1
- package/lib/cjs/organizations/organizations.cjs +15 -5
- package/lib/cjs/organizations/organizations.cjs.map +1 -1
- package/lib/cjs/organizations/organizations.d.cts +4 -3
- package/lib/cjs/passwordless/passwordless.d.cts +3 -2
- package/lib/cjs/portal/portal.d.cts +3 -2
- package/lib/cjs/public/index.cjs +42 -0
- package/lib/cjs/public/index.cjs.map +1 -0
- package/lib/cjs/public/index.d.cts +2 -0
- package/lib/cjs/public/sso.cjs +65 -0
- package/lib/cjs/public/sso.cjs.map +1 -0
- package/lib/cjs/public/sso.d.cts +1 -0
- package/lib/cjs/public/user-management.cjs +110 -0
- package/lib/cjs/public/user-management.cjs.map +1 -0
- package/lib/cjs/public/user-management.d.cts +1 -0
- package/lib/cjs/public/utils.cjs +49 -0
- package/lib/cjs/public/utils.cjs.map +1 -0
- package/lib/cjs/public/utils.d.cts +7 -0
- package/lib/cjs/sso/interfaces/authorization-url-options.interface.cjs.map +1 -1
- package/lib/cjs/sso/interfaces/authorization-url-options.interface.d.cts +19 -4
- package/lib/cjs/sso/interfaces/connection-type.enum.cjs +1 -0
- package/lib/cjs/sso/interfaces/connection-type.enum.cjs.map +1 -1
- package/lib/cjs/sso/interfaces/connection-type.enum.d.cts +1 -0
- package/lib/cjs/sso/interfaces/index.d.cts +1 -0
- package/lib/cjs/sso/interfaces/profile-and-token.interface.cjs.map +1 -1
- package/lib/cjs/sso/interfaces/profile-and-token.interface.d.cts +3 -0
- package/lib/cjs/sso/serializers/index.d.cts +1 -0
- package/lib/cjs/sso/serializers/profile-and-token.serializer.cjs +3 -1
- package/lib/cjs/sso/serializers/profile-and-token.serializer.cjs.map +1 -1
- package/lib/cjs/sso/serializers/profile-and-token.serializer.d.cts +1 -0
- package/lib/cjs/sso/sso.cjs +15 -37
- package/lib/cjs/sso/sso.cjs.map +1 -1
- package/lib/cjs/sso/sso.d.cts +2 -1
- package/lib/cjs/sso-BkBnkcTC.d.cts +22 -0
- package/lib/cjs/sso-Cdnhezcz.d.cts +31 -0
- package/lib/cjs/sso-DwRz-nPM.d.cts +31 -0
- package/lib/cjs/user-management/interfaces/authenticate-with-session-cookie.interface.cjs.map +1 -1
- package/lib/cjs/user-management/interfaces/authenticate-with-session-cookie.interface.d.cts +2 -0
- package/lib/cjs/user-management/interfaces/authentication-response.interface.cjs.map +1 -1
- package/lib/cjs/user-management/interfaces/authentication-response.interface.d.cts +1 -1
- package/lib/cjs/user-management/interfaces/create-organization-membership-options.interface.cjs.map +1 -1
- package/lib/cjs/user-management/interfaces/create-organization-membership-options.interface.d.cts +2 -0
- package/lib/cjs/user-management/interfaces/identity.interface.cjs.map +1 -1
- package/lib/cjs/user-management/interfaces/identity.interface.d.cts +2 -2
- package/lib/cjs/user-management/interfaces/list-sessions-options.interface.cjs.map +1 -1
- package/lib/cjs/user-management/interfaces/organization-membership.interface.cjs.map +1 -1
- package/lib/cjs/user-management/interfaces/organization-membership.interface.d.cts +2 -0
- package/lib/cjs/user-management/interfaces/update-organization-membership-options.interface.cjs.map +1 -1
- package/lib/cjs/user-management/interfaces/update-organization-membership-options.interface.d.cts +2 -0
- package/lib/cjs/user-management/serializers/create-organization-membership-options.serializer.cjs +2 -1
- package/lib/cjs/user-management/serializers/create-organization-membership-options.serializer.cjs.map +1 -1
- package/lib/cjs/user-management/serializers/organization-membership.serializer.cjs +2 -1
- package/lib/cjs/user-management/serializers/organization-membership.serializer.cjs.map +1 -1
- package/lib/cjs/user-management/serializers/update-organization-membership-options.serializer.cjs +2 -1
- package/lib/cjs/user-management/serializers/update-organization-membership-options.serializer.cjs.map +1 -1
- package/lib/cjs/user-management/session.cjs +4 -0
- package/lib/cjs/user-management/session.cjs.map +1 -1
- package/lib/cjs/user-management/session.d.cts +2 -1
- package/lib/cjs/user-management/user-management.cjs +13 -81
- package/lib/cjs/user-management/user-management.cjs.map +1 -1
- package/lib/cjs/user-management/user-management.d.cts +3 -2
- package/lib/cjs/user-management-B-71OTAR.d.cts +401 -0
- package/lib/cjs/user-management-B38wNrIN.d.cts +68 -0
- package/lib/cjs/user-management-Dh73wyCr.d.cts +68 -0
- package/lib/cjs/vault/vault.d.cts +3 -2
- package/lib/cjs/widgets/interfaces/get-token.cjs.map +1 -1
- package/lib/cjs/widgets/interfaces/get-token.d.cts +5 -5
- package/lib/cjs/widgets/widgets.d.cts +3 -2
- package/lib/cjs/workos-BEHZtxw8.d.cts +401 -0
- package/lib/cjs/workos-Bt8QqzZV.d.cts +395 -0
- package/lib/cjs/workos-C6IZ2mAH.d.cts +402 -0
- package/lib/cjs/workos-C7eLbzyK.d.cts +398 -0
- package/lib/cjs/workos-C9Z7mAdD.d.cts +399 -0
- package/lib/cjs/workos-CUh2oD_o.d.cts +396 -0
- package/lib/cjs/workos-Cuegztvg.d.cts +397 -0
- package/lib/cjs/workos-DiEirbod.d.cts +397 -0
- package/lib/cjs/workos-jsQjZHfV.d.cts +395 -0
- package/lib/cjs/workos.cjs +2 -1
- package/lib/cjs/workos.cjs.map +1 -1
- package/lib/cjs/workos.d.cts +3 -2
- package/lib/common/interfaces/event.interface.d.ts +18 -2
- package/lib/common/interfaces/workos-options.interface.d.ts +1 -0
- package/lib/common/net/fetch-client.d.ts +6 -2
- package/lib/common/net/fetch-client.js +67 -31
- package/lib/common/net/fetch-client.spec.js +71 -0
- package/lib/common/serializers/event.serializer.js +2 -0
- package/lib/common/utils/pagination.js +1 -1
- package/lib/esm/audit-logs/audit-logs.d.ts +3 -2
- package/lib/esm/client/index.d.ts +3 -0
- package/lib/esm/client/index.js +7 -0
- package/lib/esm/client/index.js.map +1 -0
- package/lib/esm/client/sso.d.ts +2 -0
- package/lib/esm/client/sso.js +42 -0
- package/lib/esm/client/sso.js.map +1 -0
- package/lib/esm/client/user-management.d.ts +1 -0
- package/lib/esm/client/user-management.js +85 -0
- package/lib/esm/client/user-management.js.map +1 -0
- package/lib/esm/client/utils.d.ts +7 -0
- package/lib/esm/client/utils.js +16 -0
- package/lib/esm/client/utils.js.map +1 -0
- package/lib/esm/common/interfaces/event.interface.d.ts +19 -3
- package/lib/esm/common/interfaces/index.d.ts +1 -1
- package/lib/esm/common/interfaces/workos-options.interface.d.ts +1 -0
- package/lib/esm/common/net/fetch-client.d.ts +5 -2
- package/lib/esm/common/net/fetch-client.js +67 -36
- package/lib/esm/common/net/fetch-client.js.map +1 -1
- package/lib/esm/common/serializers/event.serializer.js +2 -0
- package/lib/esm/common/serializers/event.serializer.js.map +1 -1
- package/lib/esm/common/utils/fetch-and-deserialize.d.ts +3 -2
- package/lib/esm/common/utils/pagination.js +2 -4
- package/lib/esm/common/utils/pagination.js.map +1 -1
- package/lib/esm/directory-sync/directory-sync.d.ts +4 -3
- package/lib/esm/events/events.d.ts +3 -2
- package/lib/esm/fga/fga.d.ts +4 -3
- package/lib/esm/fga/utils/fetch-and-deserialize-list.d.ts +3 -2
- package/lib/esm/index.client.d.ts +3 -0
- package/lib/esm/index.client.js +7 -0
- package/lib/esm/index.client.js.map +1 -0
- package/lib/esm/index.d.ts +3 -2
- package/lib/esm/index.js +2 -0
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/index.worker.d.ts +3 -2
- package/lib/esm/mfa/mfa.d.ts +3 -2
- package/lib/esm/organization-domains/organization-domains.d.ts +3 -2
- package/lib/esm/organizations/interfaces/list-organization-feature-flags-options.interface.d.ts +3 -1
- package/lib/esm/organizations/organizations.d.ts +4 -3
- package/lib/esm/organizations/organizations.js +15 -5
- package/lib/esm/organizations/organizations.js.map +1 -1
- package/lib/esm/passwordless/passwordless.d.ts +3 -2
- package/lib/esm/portal/portal.d.ts +3 -2
- package/lib/esm/sso/interfaces/authorization-url-options.interface.d.ts +19 -4
- package/lib/esm/sso/interfaces/connection-type.enum.d.ts +1 -0
- package/lib/esm/sso/interfaces/connection-type.enum.js +1 -0
- package/lib/esm/sso/interfaces/connection-type.enum.js.map +1 -1
- package/lib/esm/sso/interfaces/index.d.ts +1 -0
- package/lib/esm/sso/interfaces/profile-and-token.interface.d.ts +3 -0
- package/lib/esm/sso/serializers/index.d.ts +1 -0
- package/lib/esm/sso/serializers/profile-and-token.serializer.d.ts +1 -0
- package/lib/esm/sso/serializers/profile-and-token.serializer.js +3 -1
- package/lib/esm/sso/serializers/profile-and-token.serializer.js.map +1 -1
- package/lib/esm/sso/sso.d.ts +2 -1
- package/lib/esm/sso/sso.js +5 -37
- package/lib/esm/sso/sso.js.map +1 -1
- package/lib/esm/sso-nFEQz_Js.d.ts +22 -0
- package/lib/esm/user-management/interfaces/authenticate-with-session-cookie.interface.d.ts +2 -0
- package/lib/esm/user-management/interfaces/authenticate-with-session-cookie.interface.js.map +1 -1
- package/lib/esm/user-management/interfaces/authentication-response.interface.d.ts +1 -1
- package/lib/esm/user-management/interfaces/create-organization-membership-options.interface.d.ts +2 -0
- package/lib/esm/user-management/interfaces/identity.interface.d.ts +2 -2
- package/lib/esm/user-management/interfaces/organization-membership.interface.d.ts +2 -0
- package/lib/esm/user-management/interfaces/update-organization-membership-options.interface.d.ts +2 -0
- package/lib/esm/user-management/serializers/create-organization-membership-options.serializer.js +2 -1
- package/lib/esm/user-management/serializers/create-organization-membership-options.serializer.js.map +1 -1
- package/lib/esm/user-management/serializers/organization-membership.serializer.js +2 -1
- package/lib/esm/user-management/serializers/organization-membership.serializer.js.map +1 -1
- package/lib/esm/user-management/serializers/update-organization-membership-options.serializer.js +2 -1
- package/lib/esm/user-management/serializers/update-organization-membership-options.serializer.js.map +1 -1
- package/lib/esm/user-management/session.d.ts +2 -1
- package/lib/esm/user-management/session.js +4 -0
- package/lib/esm/user-management/session.js.map +1 -1
- package/lib/esm/user-management/user-management.d.ts +3 -2
- package/lib/esm/user-management/user-management.js +13 -81
- package/lib/esm/user-management/user-management.js.map +1 -1
- package/lib/esm/user-management-B38wNrIN.d.ts +68 -0
- package/lib/esm/vault/vault.d.ts +3 -2
- package/lib/esm/widgets/interfaces/get-token.d.ts +5 -5
- package/lib/esm/widgets/interfaces/get-token.js.map +1 -1
- package/lib/esm/widgets/widgets.d.ts +3 -2
- package/lib/esm/{workos-DGRMJ65Z.d.ts → workos-EX3jNkYH.d.ts} +5 -7
- package/lib/esm/workos.d.ts +3 -2
- package/lib/esm/workos.js +2 -1
- package/lib/esm/workos.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/organizations/interfaces/list-organization-feature-flags-options.interface.d.ts +2 -1
- package/lib/organizations/organizations.d.ts +1 -2
- package/lib/organizations/organizations.js +2 -4
- package/lib/organizations/organizations.spec.js +46 -1
- package/lib/sso/interfaces/authorization-url-options.interface.d.ts +2 -0
- package/lib/sso/interfaces/profile-and-token.interface.d.ts +3 -0
- package/lib/sso/serializers/profile-and-token.serializer.js +2 -0
- package/lib/sso/sso.d.ts +1 -1
- package/lib/sso/sso.js +14 -10
- package/lib/sso/sso.spec.js +131 -0
- package/lib/user-management/interfaces/authenticate-with-session-cookie.interface.d.ts +2 -0
- package/lib/user-management/interfaces/create-organization-membership-options.interface.d.ts +2 -0
- package/lib/user-management/interfaces/organization-membership.interface.d.ts +2 -0
- package/lib/user-management/interfaces/update-organization-membership-options.interface.d.ts +2 -0
- package/lib/user-management/serializers/create-organization-membership-options.serializer.js +1 -0
- package/lib/user-management/serializers/organization-membership.serializer.js +1 -11
- package/lib/user-management/serializers/update-organization-membership-options.serializer.js +1 -0
- package/lib/user-management/session.js +4 -2
- package/lib/user-management/session.spec.js +4 -2
- package/lib/user-management/user-management.js +2 -1
- package/lib/user-management/user-management.spec.js +33 -0
- package/lib/widgets/interfaces/get-token.d.ts +5 -5
- package/lib/workos.js +2 -2
- package/package.json +10 -5
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var index_client_exports = {};
|
|
30
|
+
__export(index_client_exports, {
|
|
31
|
+
sso: () => sso,
|
|
32
|
+
userManagement: () => userManagement
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(index_client_exports);
|
|
35
|
+
var userManagement = __toESM(require('./client/user-management.cjs'), 1);
|
|
36
|
+
var sso = __toESM(require('./client/sso.cjs'), 1);
|
|
37
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
+
0 && (module.exports = {
|
|
39
|
+
sso,
|
|
40
|
+
userManagement
|
|
41
|
+
});
|
|
42
|
+
//# sourceMappingURL=index.client.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/index.client.ts"],"sourcesContent":["/**\n * Client methods that can be used without a WorkOS API key.\n * These are OAuth client operations and URL builders suitable for PKCE flows.\n */\n\n// Export client methods directly - this is the recommended approach\nexport * as userManagement from './client/user-management';\nexport * as sso from './client/sso';\n\n// Re-export types for convenience\nexport type {\n AuthorizationURLOptions as UserManagementAuthorizationURLOptions,\n LogoutURLOptions,\n} from './client/user-management';\n\nexport type { SSOAuthorizationURLOptions } from './client/sso';\n\n// Note: If you need authenticateWithCodeAndVerifier, use the full WorkOS SDK\n// as it requires server-side API key authentication\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAMA,qBAAgC;AAChC,UAAqB;","names":[]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { L as LogoutURLOptions, A as UserManagementAuthorizationURLOptions, u as userManagement } from './user-management-B38wNrIN.cjs';
|
|
2
|
+
export { S as SSOAuthorizationURLOptions, s as sso } from './sso-BkBnkcTC.cjs';
|
|
3
|
+
import './sso/interfaces/authorization-url-options.interface.cjs';
|
package/lib/cjs/index.d.cts
CHANGED
|
@@ -2,8 +2,8 @@ import { CryptoProvider } from './common/crypto/crypto-provider.cjs';
|
|
|
2
2
|
import { HttpClient } from './common/net/http-client.cjs';
|
|
3
3
|
import { Actions } from './actions/actions.cjs';
|
|
4
4
|
import { Webhooks } from './webhooks/webhooks.cjs';
|
|
5
|
-
import { W as WorkOS } from './workos-
|
|
6
|
-
export { AuthenticationEmailVerificationSucceededEvent, AuthenticationEmailVerificationSucceededEventResponse, AuthenticationMagicAuthFailedEvent, AuthenticationMagicAuthFailedEventResponse, AuthenticationMagicAuthSucceededEvent, AuthenticationMagicAuthSucceededEventResponse, AuthenticationMfaSucceededEvent, AuthenticationMfaSucceededEventResponse, AuthenticationOAuthFailedEvent, AuthenticationOAuthFailedEventResponse, AuthenticationOAuthSucceededEvent, AuthenticationOAuthSucceededEventResponse, AuthenticationPasswordFailedEvent, AuthenticationPasswordFailedEventResponse, AuthenticationPasswordSucceededEvent, AuthenticationPasswordSucceededEventResponse, AuthenticationRadarRiskDetectedEvent, AuthenticationRadarRiskDetectedEventResponse, AuthenticationSSOFailedEvent, AuthenticationSSOFailedEventResponse, AuthenticationSSOSucceededEvent, AuthenticationSSOSucceededEventResponse, ConnectionActivatedEvent, ConnectionActivatedEventResponse, ConnectionDeactivatedEvent, ConnectionDeactivatedEventResponse, ConnectionDeletedEvent, ConnectionDeletedEventResponse, DsyncActivatedEvent, DsyncActivatedEventResponse, DsyncDeletedEvent, DsyncDeletedEventResponse, DsyncGroupCreatedEvent, DsyncGroupCreatedEventResponse, DsyncGroupDeletedEvent, DsyncGroupDeletedEventResponse, DsyncGroupUpdatedEvent, DsyncGroupUpdatedEventResponse, DsyncGroupUserAddedEvent, DsyncGroupUserAddedEventResponse, DsyncGroupUserRemovedEvent, DsyncGroupUserRemovedEventResponse, DsyncUserCreatedEvent, DsyncUserCreatedEventResponse, DsyncUserDeletedEvent, DsyncUserDeletedEventResponse, DsyncUserUpdatedEvent, DsyncUserUpdatedEventResponse, EmailVerificationCreatedEvent, EmailVerificationCreatedEventResponse, Event, EventBase, EventName, EventResponse, InvitationCreatedEvent, InvitationCreatedEventResponse, MagicAuthCreatedEvent, MagicAuthCreatedEventResponse, OrganizationCreatedEvent, OrganizationCreatedResponse, OrganizationDeletedEvent, OrganizationDeletedResponse, OrganizationDomainCreatedEvent, OrganizationDomainCreatedEventResponse, OrganizationDomainDeletedEvent, OrganizationDomainDeletedEventResponse, OrganizationDomainUpdatedEvent, OrganizationDomainUpdatedEventResponse, OrganizationDomainVerificationFailedEvent, OrganizationDomainVerificationFailedEventResponse, OrganizationDomainVerifiedEvent, OrganizationDomainVerifiedEventResponse, OrganizationMembershipCreated, OrganizationMembershipCreatedResponse, OrganizationMembershipDeleted, OrganizationMembershipDeletedResponse, OrganizationMembershipUpdated, OrganizationMembershipUpdatedResponse, OrganizationUpdatedEvent, OrganizationUpdatedResponse, PasswordResetCreatedEvent, PasswordResetCreatedEventResponse, PasswordResetSucceededEvent, PasswordResetSucceededEventResponse, RoleCreatedEvent, RoleCreatedEventResponse, RoleDeletedEvent, RoleDeletedEventResponse, RoleUpdatedEvent, RoleUpdatedEventResponse, SessionCreatedEvent, SessionCreatedEventResponse, SessionRevokedEvent, SessionRevokedEventResponse, UserCreatedEvent, UserCreatedEventResponse, UserDeletedEvent, UserDeletedEventResponse, UserUpdatedEvent, UserUpdatedEventResponse } from './common/interfaces/event.interface.cjs';
|
|
5
|
+
import { W as WorkOS } from './workos-Bt8QqzZV.cjs';
|
|
6
|
+
export { AuthenticationEmailVerificationSucceededEvent, AuthenticationEmailVerificationSucceededEventResponse, AuthenticationMagicAuthFailedEvent, AuthenticationMagicAuthFailedEventResponse, AuthenticationMagicAuthSucceededEvent, AuthenticationMagicAuthSucceededEventResponse, AuthenticationMfaSucceededEvent, AuthenticationMfaSucceededEventResponse, AuthenticationOAuthFailedEvent, AuthenticationOAuthFailedEventResponse, AuthenticationOAuthSucceededEvent, AuthenticationOAuthSucceededEventResponse, AuthenticationPasswordFailedEvent, AuthenticationPasswordFailedEventResponse, AuthenticationPasswordSucceededEvent, AuthenticationPasswordSucceededEventResponse, AuthenticationRadarRiskDetectedEvent, AuthenticationRadarRiskDetectedEventResponse, AuthenticationSSOFailedEvent, AuthenticationSSOFailedEventResponse, AuthenticationSSOSucceededEvent, AuthenticationSSOSucceededEventResponse, ConnectionActivatedEvent, ConnectionActivatedEventResponse, ConnectionDeactivatedEvent, ConnectionDeactivatedEventResponse, ConnectionDeletedEvent, ConnectionDeletedEventResponse, DsyncActivatedEvent, DsyncActivatedEventResponse, DsyncDeletedEvent, DsyncDeletedEventResponse, DsyncGroupCreatedEvent, DsyncGroupCreatedEventResponse, DsyncGroupDeletedEvent, DsyncGroupDeletedEventResponse, DsyncGroupUpdatedEvent, DsyncGroupUpdatedEventResponse, DsyncGroupUserAddedEvent, DsyncGroupUserAddedEventResponse, DsyncGroupUserRemovedEvent, DsyncGroupUserRemovedEventResponse, DsyncUserCreatedEvent, DsyncUserCreatedEventResponse, DsyncUserDeletedEvent, DsyncUserDeletedEventResponse, DsyncUserUpdatedEvent, DsyncUserUpdatedEventResponse, EmailVerificationCreatedEvent, EmailVerificationCreatedEventResponse, Event, EventBase, EventName, EventResponse, InvitationAcceptedEvent, InvitationAcceptedEventResponse, InvitationCreatedEvent, InvitationCreatedEventResponse, InvitationRevokedEvent, InvitationRevokedEventResponse, MagicAuthCreatedEvent, MagicAuthCreatedEventResponse, OrganizationCreatedEvent, OrganizationCreatedResponse, OrganizationDeletedEvent, OrganizationDeletedResponse, OrganizationDomainCreatedEvent, OrganizationDomainCreatedEventResponse, OrganizationDomainDeletedEvent, OrganizationDomainDeletedEventResponse, OrganizationDomainUpdatedEvent, OrganizationDomainUpdatedEventResponse, OrganizationDomainVerificationFailedEvent, OrganizationDomainVerificationFailedEventResponse, OrganizationDomainVerifiedEvent, OrganizationDomainVerifiedEventResponse, OrganizationMembershipCreated, OrganizationMembershipCreatedResponse, OrganizationMembershipDeleted, OrganizationMembershipDeletedResponse, OrganizationMembershipUpdated, OrganizationMembershipUpdatedResponse, OrganizationUpdatedEvent, OrganizationUpdatedResponse, PasswordResetCreatedEvent, PasswordResetCreatedEventResponse, PasswordResetSucceededEvent, PasswordResetSucceededEventResponse, RoleCreatedEvent, RoleCreatedEventResponse, RoleDeletedEvent, RoleDeletedEventResponse, RoleUpdatedEvent, RoleUpdatedEventResponse, SessionCreatedEvent, SessionCreatedEventResponse, SessionRevokedEvent, SessionRevokedEventResponse, UserCreatedEvent, UserCreatedEventResponse, UserDeletedEvent, UserDeletedEventResponse, UserUpdatedEvent, UserUpdatedEventResponse } from './common/interfaces/event.interface.cjs';
|
|
7
7
|
export { GetOptions } from './common/interfaces/get-options.interface.cjs';
|
|
8
8
|
export { List, ListResponse } from './common/interfaces/list.interface.cjs';
|
|
9
9
|
export { PostOptions } from './common/interfaces/post-options.interface.cjs';
|
|
@@ -122,6 +122,7 @@ import './mfa/interfaces/totp.interface.cjs';
|
|
|
122
122
|
import './mfa/interfaces/verify-challenge-options.cjs';
|
|
123
123
|
import './mfa/interfaces/verify-challenge-response.cjs';
|
|
124
124
|
import 'jose';
|
|
125
|
+
import './user-management-B38wNrIN.cjs';
|
|
125
126
|
import './user-management/interfaces/session-handler-options.interface.cjs';
|
|
126
127
|
import './fga/utils/fga-paginatable.cjs';
|
|
127
128
|
import './fga/interfaces/list.interface.cjs';
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var index_public_exports = {};
|
|
30
|
+
__export(index_public_exports, {
|
|
31
|
+
actions: () => actions,
|
|
32
|
+
sso: () => sso,
|
|
33
|
+
userManagement: () => userManagement,
|
|
34
|
+
webhooks: () => webhooks
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(index_public_exports);
|
|
37
|
+
var userManagement = __toESM(require('./public/user-management.cjs'), 1);
|
|
38
|
+
var sso = __toESM(require('./public/sso.cjs'), 1);
|
|
39
|
+
var import_webhooks = require('./webhooks/webhooks.cjs');
|
|
40
|
+
var import_actions = require('./actions/actions.cjs');
|
|
41
|
+
var import_subtle_crypto_provider = require('./common/crypto/subtle-crypto-provider.cjs');
|
|
42
|
+
const cryptoProvider = new import_subtle_crypto_provider.SubtleCryptoProvider();
|
|
43
|
+
const webhooks = new import_webhooks.Webhooks(cryptoProvider);
|
|
44
|
+
const actions = new import_actions.Actions(cryptoProvider);
|
|
45
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
46
|
+
0 && (module.exports = {
|
|
47
|
+
actions,
|
|
48
|
+
sso,
|
|
49
|
+
userManagement,
|
|
50
|
+
webhooks
|
|
51
|
+
});
|
|
52
|
+
//# sourceMappingURL=index.public.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/index.public.ts"],"sourcesContent":["/**\n * Public methods that can be safely used without an API key.\n * These are primarily URL builders and cryptographic utilities.\n */\n\n// Export public methods directly - this is the recommended approach\nexport * as userManagement from './public/user-management';\nexport * as sso from './public/sso';\n\n// Export webhooks and actions (these don't need API keys)\nimport { Webhooks } from './webhooks/webhooks';\nimport { Actions } from './actions/actions';\nimport { SubtleCryptoProvider } from './common/crypto/subtle-crypto-provider';\n\nconst cryptoProvider = new SubtleCryptoProvider();\nexport const webhooks = new Webhooks(cryptoProvider);\nexport const actions = new Actions(cryptoProvider);\n\n// Re-export types for convenience\nexport type {\n AuthorizationURLOptions as UserManagementAuthorizationURLOptions,\n LogoutURLOptions,\n} from './public/user-management';\n\nexport type { SSOAuthorizationURLOptions } from './public/sso';\n\n// Note: If you need authenticateWithCodeAndVerifier, use the full WorkOS SDK\n// as it requires server-side API key authentication\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAMA,qBAAgC;AAChC,UAAqB;AAGrB,sBAAyB;AACzB,qBAAwB;AACxB,oCAAqC;AAErC,MAAM,iBAAiB,IAAI,mDAAqB;AACzC,MAAM,WAAW,IAAI,yBAAS,cAAc;AAC5C,MAAM,UAAU,IAAI,uBAAQ,cAAc;","names":[]}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export { L as LogoutURLOptions, A as UserManagementAuthorizationURLOptions, u as userManagement } from './user-management-Dh73wyCr.cjs';
|
|
2
|
+
export { S as SSOAuthorizationURLOptions, s as sso } from './sso-Cdnhezcz.cjs';
|
|
3
|
+
import { Webhooks } from './webhooks/webhooks.cjs';
|
|
4
|
+
import { Actions } from './actions/actions.cjs';
|
|
5
|
+
import './common/interfaces/event.interface.cjs';
|
|
6
|
+
import './directory-sync/interfaces/directory.interface.cjs';
|
|
7
|
+
import './directory-sync/interfaces/directory-group.interface.cjs';
|
|
8
|
+
import './directory-sync/interfaces/directory-user.interface.cjs';
|
|
9
|
+
import './roles/interfaces/role.interface.cjs';
|
|
10
|
+
import './organizations/interfaces/organization.interface.cjs';
|
|
11
|
+
import './organization-domains/interfaces/organization-domain.interface.cjs';
|
|
12
|
+
import './sso/interfaces/connection.interface.cjs';
|
|
13
|
+
import './sso/interfaces/connection-type.enum.cjs';
|
|
14
|
+
import './user-management/interfaces/user.interface.cjs';
|
|
15
|
+
import './user-management/interfaces/authentication-event.interface.cjs';
|
|
16
|
+
import './user-management/interfaces/authentication-radar-risk-detected-event.interface.cjs';
|
|
17
|
+
import './user-management/interfaces/email-verification.interface.cjs';
|
|
18
|
+
import './user-management/interfaces/invitation.interface.cjs';
|
|
19
|
+
import './user-management/interfaces/organization-membership.interface.cjs';
|
|
20
|
+
import './user-management/interfaces/magic-auth.interface.cjs';
|
|
21
|
+
import './user-management/interfaces/password-reset.interface.cjs';
|
|
22
|
+
import './user-management/interfaces/session.interface.cjs';
|
|
23
|
+
import './user-management/interfaces/impersonator.interface.cjs';
|
|
24
|
+
import './common/crypto/crypto-provider.cjs';
|
|
25
|
+
import './actions/interfaces/action.interface.cjs';
|
|
26
|
+
import './actions/interfaces/response-payload.interface.cjs';
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Public methods that can be safely used without an API key.
|
|
30
|
+
* These are primarily URL builders and cryptographic utilities.
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
declare const webhooks: Webhooks;
|
|
34
|
+
declare const actions: Actions;
|
|
35
|
+
|
|
36
|
+
export { actions, webhooks };
|
|
@@ -2,7 +2,7 @@ import { Actions } from './actions/actions.cjs';
|
|
|
2
2
|
import { CryptoProvider } from './common/crypto/crypto-provider.cjs';
|
|
3
3
|
import { HttpClient } from './common/net/http-client.cjs';
|
|
4
4
|
import { Webhooks } from './webhooks/webhooks.cjs';
|
|
5
|
-
import { W as WorkOS } from './workos-
|
|
5
|
+
import { W as WorkOS } from './workos-Bt8QqzZV.cjs';
|
|
6
6
|
export { ActionContext, ActionPayload, UserData, UserDataPayload, UserRegistrationActionPayload } from './actions/interfaces/action.interface.cjs';
|
|
7
7
|
export { AuthenticationActionResponseData, ResponsePayload, UserRegistrationActionResponseData } from './actions/interfaces/response-payload.interface.cjs';
|
|
8
8
|
export { AuditLogExportOptions, SerializedAuditLogExportOptions } from './audit-logs/interfaces/audit-log-export-options.interface.cjs';
|
|
@@ -18,7 +18,7 @@ export { RateLimitExceededException } from './common/exceptions/rate-limit-excee
|
|
|
18
18
|
export { SignatureVerificationException } from './common/exceptions/signature-verification.exception.cjs';
|
|
19
19
|
export { UnauthorizedException } from './common/exceptions/unauthorized.exception.cjs';
|
|
20
20
|
export { UnprocessableEntityException } from './common/exceptions/unprocessable-entity.exception.cjs';
|
|
21
|
-
export { AuthenticationEmailVerificationSucceededEvent, AuthenticationEmailVerificationSucceededEventResponse, AuthenticationMagicAuthFailedEvent, AuthenticationMagicAuthFailedEventResponse, AuthenticationMagicAuthSucceededEvent, AuthenticationMagicAuthSucceededEventResponse, AuthenticationMfaSucceededEvent, AuthenticationMfaSucceededEventResponse, AuthenticationOAuthFailedEvent, AuthenticationOAuthFailedEventResponse, AuthenticationOAuthSucceededEvent, AuthenticationOAuthSucceededEventResponse, AuthenticationPasswordFailedEvent, AuthenticationPasswordFailedEventResponse, AuthenticationPasswordSucceededEvent, AuthenticationPasswordSucceededEventResponse, AuthenticationRadarRiskDetectedEvent, AuthenticationRadarRiskDetectedEventResponse, AuthenticationSSOFailedEvent, AuthenticationSSOFailedEventResponse, AuthenticationSSOSucceededEvent, AuthenticationSSOSucceededEventResponse, ConnectionActivatedEvent, ConnectionActivatedEventResponse, ConnectionDeactivatedEvent, ConnectionDeactivatedEventResponse, ConnectionDeletedEvent, ConnectionDeletedEventResponse, DsyncActivatedEvent, DsyncActivatedEventResponse, DsyncDeletedEvent, DsyncDeletedEventResponse, DsyncGroupCreatedEvent, DsyncGroupCreatedEventResponse, DsyncGroupDeletedEvent, DsyncGroupDeletedEventResponse, DsyncGroupUpdatedEvent, DsyncGroupUpdatedEventResponse, DsyncGroupUserAddedEvent, DsyncGroupUserAddedEventResponse, DsyncGroupUserRemovedEvent, DsyncGroupUserRemovedEventResponse, DsyncUserCreatedEvent, DsyncUserCreatedEventResponse, DsyncUserDeletedEvent, DsyncUserDeletedEventResponse, DsyncUserUpdatedEvent, DsyncUserUpdatedEventResponse, EmailVerificationCreatedEvent, EmailVerificationCreatedEventResponse, Event, EventBase, EventName, EventResponse, InvitationCreatedEvent, InvitationCreatedEventResponse, MagicAuthCreatedEvent, MagicAuthCreatedEventResponse, OrganizationCreatedEvent, OrganizationCreatedResponse, OrganizationDeletedEvent, OrganizationDeletedResponse, OrganizationDomainCreatedEvent, OrganizationDomainCreatedEventResponse, OrganizationDomainDeletedEvent, OrganizationDomainDeletedEventResponse, OrganizationDomainUpdatedEvent, OrganizationDomainUpdatedEventResponse, OrganizationDomainVerificationFailedEvent, OrganizationDomainVerificationFailedEventResponse, OrganizationDomainVerifiedEvent, OrganizationDomainVerifiedEventResponse, OrganizationMembershipCreated, OrganizationMembershipCreatedResponse, OrganizationMembershipDeleted, OrganizationMembershipDeletedResponse, OrganizationMembershipUpdated, OrganizationMembershipUpdatedResponse, OrganizationUpdatedEvent, OrganizationUpdatedResponse, PasswordResetCreatedEvent, PasswordResetCreatedEventResponse, PasswordResetSucceededEvent, PasswordResetSucceededEventResponse, RoleCreatedEvent, RoleCreatedEventResponse, RoleDeletedEvent, RoleDeletedEventResponse, RoleUpdatedEvent, RoleUpdatedEventResponse, SessionCreatedEvent, SessionCreatedEventResponse, SessionRevokedEvent, SessionRevokedEventResponse, UserCreatedEvent, UserCreatedEventResponse, UserDeletedEvent, UserDeletedEventResponse, UserUpdatedEvent, UserUpdatedEventResponse } from './common/interfaces/event.interface.cjs';
|
|
21
|
+
export { AuthenticationEmailVerificationSucceededEvent, AuthenticationEmailVerificationSucceededEventResponse, AuthenticationMagicAuthFailedEvent, AuthenticationMagicAuthFailedEventResponse, AuthenticationMagicAuthSucceededEvent, AuthenticationMagicAuthSucceededEventResponse, AuthenticationMfaSucceededEvent, AuthenticationMfaSucceededEventResponse, AuthenticationOAuthFailedEvent, AuthenticationOAuthFailedEventResponse, AuthenticationOAuthSucceededEvent, AuthenticationOAuthSucceededEventResponse, AuthenticationPasswordFailedEvent, AuthenticationPasswordFailedEventResponse, AuthenticationPasswordSucceededEvent, AuthenticationPasswordSucceededEventResponse, AuthenticationRadarRiskDetectedEvent, AuthenticationRadarRiskDetectedEventResponse, AuthenticationSSOFailedEvent, AuthenticationSSOFailedEventResponse, AuthenticationSSOSucceededEvent, AuthenticationSSOSucceededEventResponse, ConnectionActivatedEvent, ConnectionActivatedEventResponse, ConnectionDeactivatedEvent, ConnectionDeactivatedEventResponse, ConnectionDeletedEvent, ConnectionDeletedEventResponse, DsyncActivatedEvent, DsyncActivatedEventResponse, DsyncDeletedEvent, DsyncDeletedEventResponse, DsyncGroupCreatedEvent, DsyncGroupCreatedEventResponse, DsyncGroupDeletedEvent, DsyncGroupDeletedEventResponse, DsyncGroupUpdatedEvent, DsyncGroupUpdatedEventResponse, DsyncGroupUserAddedEvent, DsyncGroupUserAddedEventResponse, DsyncGroupUserRemovedEvent, DsyncGroupUserRemovedEventResponse, DsyncUserCreatedEvent, DsyncUserCreatedEventResponse, DsyncUserDeletedEvent, DsyncUserDeletedEventResponse, DsyncUserUpdatedEvent, DsyncUserUpdatedEventResponse, EmailVerificationCreatedEvent, EmailVerificationCreatedEventResponse, Event, EventBase, EventName, EventResponse, InvitationAcceptedEvent, InvitationAcceptedEventResponse, InvitationCreatedEvent, InvitationCreatedEventResponse, InvitationRevokedEvent, InvitationRevokedEventResponse, MagicAuthCreatedEvent, MagicAuthCreatedEventResponse, OrganizationCreatedEvent, OrganizationCreatedResponse, OrganizationDeletedEvent, OrganizationDeletedResponse, OrganizationDomainCreatedEvent, OrganizationDomainCreatedEventResponse, OrganizationDomainDeletedEvent, OrganizationDomainDeletedEventResponse, OrganizationDomainUpdatedEvent, OrganizationDomainUpdatedEventResponse, OrganizationDomainVerificationFailedEvent, OrganizationDomainVerificationFailedEventResponse, OrganizationDomainVerifiedEvent, OrganizationDomainVerifiedEventResponse, OrganizationMembershipCreated, OrganizationMembershipCreatedResponse, OrganizationMembershipDeleted, OrganizationMembershipDeletedResponse, OrganizationMembershipUpdated, OrganizationMembershipUpdatedResponse, OrganizationUpdatedEvent, OrganizationUpdatedResponse, PasswordResetCreatedEvent, PasswordResetCreatedEventResponse, PasswordResetSucceededEvent, PasswordResetSucceededEventResponse, RoleCreatedEvent, RoleCreatedEventResponse, RoleDeletedEvent, RoleDeletedEventResponse, RoleUpdatedEvent, RoleUpdatedEventResponse, SessionCreatedEvent, SessionCreatedEventResponse, SessionRevokedEvent, SessionRevokedEventResponse, UserCreatedEvent, UserCreatedEventResponse, UserDeletedEvent, UserDeletedEventResponse, UserUpdatedEvent, UserUpdatedEventResponse } from './common/interfaces/event.interface.cjs';
|
|
22
22
|
export { GetOptions } from './common/interfaces/get-options.interface.cjs';
|
|
23
23
|
export { List, ListResponse } from './common/interfaces/list.interface.cjs';
|
|
24
24
|
export { PostOptions } from './common/interfaces/post-options.interface.cjs';
|
|
@@ -122,6 +122,7 @@ import './mfa/interfaces/totp.interface.cjs';
|
|
|
122
122
|
import './mfa/interfaces/verify-challenge-options.cjs';
|
|
123
123
|
import './mfa/interfaces/verify-challenge-response.cjs';
|
|
124
124
|
import 'jose';
|
|
125
|
+
import './user-management-B38wNrIN.cjs';
|
|
125
126
|
import './user-management/interfaces/session-handler-options.interface.cjs';
|
|
126
127
|
import './fga/utils/fga-paginatable.cjs';
|
|
127
128
|
import './fga/interfaces/list.interface.cjs';
|
package/lib/cjs/mfa/mfa.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { M as Mfa } from '../workos-
|
|
1
|
+
export { M as Mfa } from '../workos-Bt8QqzZV.cjs';
|
|
2
2
|
import './interfaces/challenge-factor-options.cjs';
|
|
3
3
|
import './interfaces/challenge.interface.cjs';
|
|
4
4
|
import './interfaces/enroll-factor-options.cjs';
|
|
@@ -51,6 +51,7 @@ import '../sso/interfaces/get-profile-options.interface.cjs';
|
|
|
51
51
|
import '../sso/interfaces/get-profile-and-token-options.interface.cjs';
|
|
52
52
|
import '../sso/interfaces/list-connections-options.interface.cjs';
|
|
53
53
|
import '../sso/interfaces/profile-and-token.interface.cjs';
|
|
54
|
+
import '../user-management/interfaces/oauth-tokens.interface.cjs';
|
|
54
55
|
import '../sso/interfaces/profile.interface.cjs';
|
|
55
56
|
import '../webhooks/webhooks.cjs';
|
|
56
57
|
import '../common/crypto/crypto-provider.cjs';
|
|
@@ -59,6 +60,7 @@ import '../audit-logs/interfaces/audit-log-export.interface.cjs';
|
|
|
59
60
|
import '../audit-logs/interfaces/create-audit-log-event-options.interface.cjs';
|
|
60
61
|
import '../audit-logs/interfaces/create-audit-log-schema-options.interface.cjs';
|
|
61
62
|
import 'jose';
|
|
63
|
+
import '../user-management-B38wNrIN.cjs';
|
|
62
64
|
import '../user-management/interfaces/authenticate-with-code-options.interface.cjs';
|
|
63
65
|
import '../user-management/interfaces/authenticate-with-options-base.interface.cjs';
|
|
64
66
|
import '../user-management/interfaces/authenticate-with-code-and-verifier-options.interface.cjs';
|
|
@@ -69,7 +71,6 @@ import '../user-management/interfaces/authenticate-with-password-options.interfa
|
|
|
69
71
|
import '../user-management/interfaces/authenticate-with-refresh-token-options.interface.cjs';
|
|
70
72
|
import '../user-management/interfaces/authenticate-with-session-cookie.interface.cjs';
|
|
71
73
|
import '../user-management/interfaces/authentication-response.interface.cjs';
|
|
72
|
-
import '../user-management/interfaces/oauth-tokens.interface.cjs';
|
|
73
74
|
import '../user-management/interfaces/authenticate-with-totp-options.interface.cjs';
|
|
74
75
|
import '../user-management/interfaces/authorization-url-options.interface.cjs';
|
|
75
76
|
import '../user-management/interfaces/create-magic-auth-options.interface.cjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a as OrganizationDomains } from '../workos-
|
|
1
|
+
export { a as OrganizationDomains } from '../workos-Bt8QqzZV.cjs';
|
|
2
2
|
import './interfaces/create-organization-domain-options.interface.cjs';
|
|
3
3
|
import './interfaces/organization-domain.interface.cjs';
|
|
4
4
|
import '../common/interfaces/get-options.interface.cjs';
|
|
@@ -45,6 +45,7 @@ import '../sso/interfaces/get-profile-options.interface.cjs';
|
|
|
45
45
|
import '../sso/interfaces/get-profile-and-token-options.interface.cjs';
|
|
46
46
|
import '../sso/interfaces/list-connections-options.interface.cjs';
|
|
47
47
|
import '../sso/interfaces/profile-and-token.interface.cjs';
|
|
48
|
+
import '../user-management/interfaces/oauth-tokens.interface.cjs';
|
|
48
49
|
import '../sso/interfaces/profile.interface.cjs';
|
|
49
50
|
import '../webhooks/webhooks.cjs';
|
|
50
51
|
import '../common/crypto/crypto-provider.cjs';
|
|
@@ -61,6 +62,7 @@ import '../audit-logs/interfaces/audit-log-export.interface.cjs';
|
|
|
61
62
|
import '../audit-logs/interfaces/create-audit-log-event-options.interface.cjs';
|
|
62
63
|
import '../audit-logs/interfaces/create-audit-log-schema-options.interface.cjs';
|
|
63
64
|
import 'jose';
|
|
65
|
+
import '../user-management-B38wNrIN.cjs';
|
|
64
66
|
import '../user-management/interfaces/authenticate-with-code-options.interface.cjs';
|
|
65
67
|
import '../user-management/interfaces/authenticate-with-options-base.interface.cjs';
|
|
66
68
|
import '../user-management/interfaces/authenticate-with-code-and-verifier-options.interface.cjs';
|
|
@@ -71,7 +73,6 @@ import '../user-management/interfaces/authenticate-with-password-options.interfa
|
|
|
71
73
|
import '../user-management/interfaces/authenticate-with-refresh-token-options.interface.cjs';
|
|
72
74
|
import '../user-management/interfaces/authenticate-with-session-cookie.interface.cjs';
|
|
73
75
|
import '../user-management/interfaces/authentication-response.interface.cjs';
|
|
74
|
-
import '../user-management/interfaces/oauth-tokens.interface.cjs';
|
|
75
76
|
import '../user-management/interfaces/authenticate-with-totp-options.interface.cjs';
|
|
76
77
|
import '../user-management/interfaces/authorization-url-options.interface.cjs';
|
|
77
78
|
import '../user-management/interfaces/create-magic-auth-options.interface.cjs';
|
package/lib/cjs/organizations/interfaces/list-organization-feature-flags-options.interface.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/organizations/interfaces/list-organization-feature-flags-options.interface.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../../../../src/organizations/interfaces/list-organization-feature-flags-options.interface.ts"],"sourcesContent":["import { PaginationOptions } from '../../common/interfaces/pagination-options.interface';\n\nexport interface ListOrganizationFeatureFlagsOptions extends PaginationOptions {\n organizationId: string;\n}\n"],"mappings":";;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -25,7 +25,6 @@ module.exports = __toCommonJS(organizations_exports);
|
|
|
25
25
|
var import_pagination = require('../common/utils/pagination.cjs');
|
|
26
26
|
var import_serializers = require('./serializers/index.cjs');
|
|
27
27
|
var import_fetch_and_deserialize = require('../common/utils/fetch-and-deserialize.cjs');
|
|
28
|
-
var import_serializers2 = require('../common/serializers/index.cjs');
|
|
29
28
|
var import_role = require('../roles/serializers/role.serializer.cjs');
|
|
30
29
|
var import_feature_flag2 = require('./serializers/feature-flag.serializer.cjs');
|
|
31
30
|
class Organizations {
|
|
@@ -94,11 +93,22 @@ class Organizations {
|
|
|
94
93
|
};
|
|
95
94
|
}
|
|
96
95
|
async listOrganizationFeatureFlags(options) {
|
|
97
|
-
const { organizationId } = options;
|
|
98
|
-
|
|
99
|
-
|
|
96
|
+
const { organizationId, ...paginationOptions } = options;
|
|
97
|
+
return new import_pagination.AutoPaginatable(
|
|
98
|
+
await (0, import_fetch_and_deserialize.fetchAndDeserialize)(
|
|
99
|
+
this.workos,
|
|
100
|
+
`/organizations/${organizationId}/feature-flags`,
|
|
101
|
+
import_feature_flag2.deserializeFeatureFlag,
|
|
102
|
+
paginationOptions
|
|
103
|
+
),
|
|
104
|
+
(params) => (0, import_fetch_and_deserialize.fetchAndDeserialize)(
|
|
105
|
+
this.workos,
|
|
106
|
+
`/organizations/${organizationId}/feature-flags`,
|
|
107
|
+
import_feature_flag2.deserializeFeatureFlag,
|
|
108
|
+
params
|
|
109
|
+
),
|
|
110
|
+
options
|
|
100
111
|
);
|
|
101
|
-
return (0, import_serializers2.deserializeList)(data, import_feature_flag2.deserializeFeatureFlag);
|
|
102
112
|
}
|
|
103
113
|
}
|
|
104
114
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/organizations/organizations.ts"],"sourcesContent":["import { AutoPaginatable } from '../common/utils/pagination';\nimport { WorkOS } from '../workos';\nimport {\n CreateOrganizationOptions,\n CreateOrganizationRequestOptions,\n ListOrganizationsOptions,\n Organization,\n OrganizationResponse,\n UpdateOrganizationOptions,\n} from './interfaces';\nimport {\n FeatureFlag,\n FeatureFlagResponse,\n} from './interfaces/feature-flag.interface';\nimport {\n deserializeOrganization,\n serializeCreateOrganizationOptions,\n serializeUpdateOrganizationOptions,\n} from './serializers';\n\nimport { fetchAndDeserialize } from '../common/utils/fetch-and-deserialize';\nimport {
|
|
1
|
+
{"version":3,"sources":["../../../src/organizations/organizations.ts"],"sourcesContent":["import { AutoPaginatable } from '../common/utils/pagination';\nimport { WorkOS } from '../workos';\nimport {\n CreateOrganizationOptions,\n CreateOrganizationRequestOptions,\n ListOrganizationsOptions,\n Organization,\n OrganizationResponse,\n UpdateOrganizationOptions,\n} from './interfaces';\nimport {\n FeatureFlag,\n FeatureFlagResponse,\n} from './interfaces/feature-flag.interface';\nimport {\n deserializeOrganization,\n serializeCreateOrganizationOptions,\n serializeUpdateOrganizationOptions,\n} from './serializers';\n\nimport { fetchAndDeserialize } from '../common/utils/fetch-and-deserialize';\nimport { ListOrganizationRolesResponse, RoleList } from '../roles/interfaces';\nimport { deserializeRole } from '../roles/serializers/role.serializer';\nimport { ListOrganizationRolesOptions } from './interfaces/list-organization-roles-options.interface';\nimport { ListOrganizationFeatureFlagsOptions } from './interfaces/list-organization-feature-flags-options.interface';\nimport { deserializeFeatureFlag } from './serializers/feature-flag.serializer';\n\nexport class Organizations {\n constructor(private readonly workos: WorkOS) {}\n\n async listOrganizations(\n options?: ListOrganizationsOptions,\n ): Promise<AutoPaginatable<Organization, ListOrganizationsOptions>> {\n return new AutoPaginatable(\n await fetchAndDeserialize<OrganizationResponse, Organization>(\n this.workos,\n '/organizations',\n deserializeOrganization,\n options,\n ),\n (params) =>\n fetchAndDeserialize<OrganizationResponse, Organization>(\n this.workos,\n '/organizations',\n deserializeOrganization,\n params,\n ),\n options,\n );\n }\n\n async createOrganization(\n payload: CreateOrganizationOptions,\n requestOptions: CreateOrganizationRequestOptions = {},\n ): Promise<Organization> {\n const { data } = await this.workos.post<OrganizationResponse>(\n '/organizations',\n serializeCreateOrganizationOptions(payload),\n requestOptions,\n );\n\n return deserializeOrganization(data);\n }\n\n async deleteOrganization(id: string) {\n await this.workos.delete(`/organizations/${id}`);\n }\n\n async getOrganization(id: string): Promise<Organization> {\n const { data } = await this.workos.get<OrganizationResponse>(\n `/organizations/${id}`,\n );\n\n return deserializeOrganization(data);\n }\n\n async getOrganizationByExternalId(externalId: string): Promise<Organization> {\n const { data } = await this.workos.get<OrganizationResponse>(\n `/organizations/external_id/${externalId}`,\n );\n\n return deserializeOrganization(data);\n }\n\n async updateOrganization(\n options: UpdateOrganizationOptions,\n ): Promise<Organization> {\n const { organization: organizationId, ...payload } = options;\n\n const { data } = await this.workos.put<OrganizationResponse>(\n `/organizations/${organizationId}`,\n serializeUpdateOrganizationOptions(payload),\n );\n\n return deserializeOrganization(data);\n }\n\n async listOrganizationRoles(\n options: ListOrganizationRolesOptions,\n ): Promise<RoleList> {\n const { organizationId } = options;\n\n const { data: response } =\n await this.workos.get<ListOrganizationRolesResponse>(\n `/organizations/${organizationId}/roles`,\n );\n\n return {\n object: 'list',\n data: response.data.map((role) => deserializeRole(role)),\n };\n }\n\n async listOrganizationFeatureFlags(\n options: ListOrganizationFeatureFlagsOptions,\n ): Promise<\n AutoPaginatable<FeatureFlag, ListOrganizationFeatureFlagsOptions>\n > {\n const { organizationId, ...paginationOptions } = options;\n\n return new AutoPaginatable(\n await fetchAndDeserialize<FeatureFlagResponse, FeatureFlag>(\n this.workos,\n `/organizations/${organizationId}/feature-flags`,\n deserializeFeatureFlag,\n paginationOptions,\n ),\n (params) =>\n fetchAndDeserialize<FeatureFlagResponse, FeatureFlag>(\n this.workos,\n `/organizations/${organizationId}/feature-flags`,\n deserializeFeatureFlag,\n params,\n ),\n options,\n );\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAAgC;AAchC,yBAIO;AAEP,mCAAoC;AAEpC,kBAAgC;AAGhC,IAAAA,uBAAuC;AAEhC,MAAM,cAAc;AAAA,EACzB,YAA6B,QAAgB;AAAhB;AAAA,EAAiB;AAAA,EA5BhD,OA2B2B;AAAA;AAAA;AAAA,EAGzB,MAAM,kBACJ,SACkE;AAClE,WAAO,IAAI;AAAA,MACT,UAAM;AAAA,QACJ,KAAK;AAAA,QACL;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,MACA,CAAC,eACC;AAAA,QACE,KAAK;AAAA,QACL;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAAA,EAEA,MAAM,mBACJ,SACA,iBAAmD,CAAC,GAC7B;AACvB,UAAM,EAAE,KAAK,IAAI,MAAM,KAAK,OAAO;AAAA,MACjC;AAAA,UACA,uDAAmC,OAAO;AAAA,MAC1C;AAAA,IACF;AAEA,eAAO,4CAAwB,IAAI;AAAA,EACrC;AAAA,EAEA,MAAM,mBAAmB,IAAY;AACnC,UAAM,KAAK,OAAO,OAAO,kBAAkB,EAAE,EAAE;AAAA,EACjD;AAAA,EAEA,MAAM,gBAAgB,IAAmC;AACvD,UAAM,EAAE,KAAK,IAAI,MAAM,KAAK,OAAO;AAAA,MACjC,kBAAkB,EAAE;AAAA,IACtB;AAEA,eAAO,4CAAwB,IAAI;AAAA,EACrC;AAAA,EAEA,MAAM,4BAA4B,YAA2C;AAC3E,UAAM,EAAE,KAAK,IAAI,MAAM,KAAK,OAAO;AAAA,MACjC,8BAA8B,UAAU;AAAA,IAC1C;AAEA,eAAO,4CAAwB,IAAI;AAAA,EACrC;AAAA,EAEA,MAAM,mBACJ,SACuB;AACvB,UAAM,EAAE,cAAc,gBAAgB,GAAG,QAAQ,IAAI;AAErD,UAAM,EAAE,KAAK,IAAI,MAAM,KAAK,OAAO;AAAA,MACjC,kBAAkB,cAAc;AAAA,UAChC,uDAAmC,OAAO;AAAA,IAC5C;AAEA,eAAO,4CAAwB,IAAI;AAAA,EACrC;AAAA,EAEA,MAAM,sBACJ,SACmB;AACnB,UAAM,EAAE,eAAe,IAAI;AAE3B,UAAM,EAAE,MAAM,SAAS,IACrB,MAAM,KAAK,OAAO;AAAA,MAChB,kBAAkB,cAAc;AAAA,IAClC;AAEF,WAAO;AAAA,MACL,QAAQ;AAAA,MACR,MAAM,SAAS,KAAK,IAAI,CAAC,aAAS,6BAAgB,IAAI,CAAC;AAAA,IACzD;AAAA,EACF;AAAA,EAEA,MAAM,6BACJ,SAGA;AACA,UAAM,EAAE,gBAAgB,GAAG,kBAAkB,IAAI;AAEjD,WAAO,IAAI;AAAA,MACT,UAAM;AAAA,QACJ,KAAK;AAAA,QACL,kBAAkB,cAAc;AAAA,QAChC;AAAA,QACA;AAAA,MACF;AAAA,MACA,CAAC,eACC;AAAA,QACE,KAAK;AAAA,QACL,kBAAkB,cAAc;AAAA,QAChC;AAAA,QACA;AAAA,MACF;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;","names":["import_feature_flag"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../common/utils/pagination.cjs';
|
|
2
|
-
export { O as Organizations } from '../workos-
|
|
2
|
+
export { O as Organizations } from '../workos-Bt8QqzZV.cjs';
|
|
3
3
|
import './interfaces/create-organization-options.interface.cjs';
|
|
4
4
|
import './interfaces/feature-flag.interface.cjs';
|
|
5
5
|
import './interfaces/list-organization-feature-flags-options.interface.cjs';
|
|
@@ -7,9 +7,9 @@ import './interfaces/list-organizations-options.interface.cjs';
|
|
|
7
7
|
import './interfaces/organization.interface.cjs';
|
|
8
8
|
import './interfaces/update-organization-options.interface.cjs';
|
|
9
9
|
import '../roles/interfaces/role.interface.cjs';
|
|
10
|
-
import '../common/interfaces/list.interface.cjs';
|
|
11
10
|
import './interfaces/list-organization-roles-options.interface.cjs';
|
|
12
11
|
import '../common/interfaces/pagination-options.interface.cjs';
|
|
12
|
+
import '../common/interfaces/list.interface.cjs';
|
|
13
13
|
import '../common/interfaces/get-options.interface.cjs';
|
|
14
14
|
import '../common/interfaces/post-options.interface.cjs';
|
|
15
15
|
import '../common/interfaces/put-options.interface.cjs';
|
|
@@ -44,6 +44,7 @@ import '../sso/interfaces/get-profile-options.interface.cjs';
|
|
|
44
44
|
import '../sso/interfaces/get-profile-and-token-options.interface.cjs';
|
|
45
45
|
import '../sso/interfaces/list-connections-options.interface.cjs';
|
|
46
46
|
import '../sso/interfaces/profile-and-token.interface.cjs';
|
|
47
|
+
import '../user-management/interfaces/oauth-tokens.interface.cjs';
|
|
47
48
|
import '../sso/interfaces/profile.interface.cjs';
|
|
48
49
|
import '../webhooks/webhooks.cjs';
|
|
49
50
|
import '../common/crypto/crypto-provider.cjs';
|
|
@@ -60,6 +61,7 @@ import '../audit-logs/interfaces/audit-log-export.interface.cjs';
|
|
|
60
61
|
import '../audit-logs/interfaces/create-audit-log-event-options.interface.cjs';
|
|
61
62
|
import '../audit-logs/interfaces/create-audit-log-schema-options.interface.cjs';
|
|
62
63
|
import 'jose';
|
|
64
|
+
import '../user-management-B38wNrIN.cjs';
|
|
63
65
|
import '../user-management/interfaces/authenticate-with-code-options.interface.cjs';
|
|
64
66
|
import '../user-management/interfaces/authenticate-with-options-base.interface.cjs';
|
|
65
67
|
import '../user-management/interfaces/authenticate-with-code-and-verifier-options.interface.cjs';
|
|
@@ -70,7 +72,6 @@ import '../user-management/interfaces/authenticate-with-password-options.interfa
|
|
|
70
72
|
import '../user-management/interfaces/authenticate-with-refresh-token-options.interface.cjs';
|
|
71
73
|
import '../user-management/interfaces/authenticate-with-session-cookie.interface.cjs';
|
|
72
74
|
import '../user-management/interfaces/authentication-response.interface.cjs';
|
|
73
|
-
import '../user-management/interfaces/oauth-tokens.interface.cjs';
|
|
74
75
|
import '../user-management/interfaces/authenticate-with-totp-options.interface.cjs';
|
|
75
76
|
import '../user-management/interfaces/authorization-url-options.interface.cjs';
|
|
76
77
|
import '../user-management/interfaces/create-magic-auth-options.interface.cjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { P as Passwordless } from '../workos-
|
|
1
|
+
export { P as Passwordless } from '../workos-Bt8QqzZV.cjs';
|
|
2
2
|
import './interfaces/passwordless-session.interface.cjs';
|
|
3
3
|
import './interfaces/create-passwordless-session-options.interface.cjs';
|
|
4
4
|
import './interfaces/send-session-response.interface.cjs';
|
|
@@ -45,6 +45,7 @@ import '../sso/interfaces/get-profile-options.interface.cjs';
|
|
|
45
45
|
import '../sso/interfaces/get-profile-and-token-options.interface.cjs';
|
|
46
46
|
import '../sso/interfaces/list-connections-options.interface.cjs';
|
|
47
47
|
import '../sso/interfaces/profile-and-token.interface.cjs';
|
|
48
|
+
import '../user-management/interfaces/oauth-tokens.interface.cjs';
|
|
48
49
|
import '../sso/interfaces/profile.interface.cjs';
|
|
49
50
|
import '../webhooks/webhooks.cjs';
|
|
50
51
|
import '../common/crypto/crypto-provider.cjs';
|
|
@@ -61,6 +62,7 @@ import '../audit-logs/interfaces/audit-log-export.interface.cjs';
|
|
|
61
62
|
import '../audit-logs/interfaces/create-audit-log-event-options.interface.cjs';
|
|
62
63
|
import '../audit-logs/interfaces/create-audit-log-schema-options.interface.cjs';
|
|
63
64
|
import 'jose';
|
|
65
|
+
import '../user-management-B38wNrIN.cjs';
|
|
64
66
|
import '../user-management/interfaces/authenticate-with-code-options.interface.cjs';
|
|
65
67
|
import '../user-management/interfaces/authenticate-with-options-base.interface.cjs';
|
|
66
68
|
import '../user-management/interfaces/authenticate-with-code-and-verifier-options.interface.cjs';
|
|
@@ -71,7 +73,6 @@ import '../user-management/interfaces/authenticate-with-password-options.interfa
|
|
|
71
73
|
import '../user-management/interfaces/authenticate-with-refresh-token-options.interface.cjs';
|
|
72
74
|
import '../user-management/interfaces/authenticate-with-session-cookie.interface.cjs';
|
|
73
75
|
import '../user-management/interfaces/authentication-response.interface.cjs';
|
|
74
|
-
import '../user-management/interfaces/oauth-tokens.interface.cjs';
|
|
75
76
|
import '../user-management/interfaces/authenticate-with-totp-options.interface.cjs';
|
|
76
77
|
import '../user-management/interfaces/authorization-url-options.interface.cjs';
|
|
77
78
|
import '../user-management/interfaces/create-magic-auth-options.interface.cjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { b as Portal } from '../workos-
|
|
1
|
+
export { b as Portal } from '../workos-Bt8QqzZV.cjs';
|
|
2
2
|
import './interfaces/generate-portal-link-intent.interface.cjs';
|
|
3
3
|
import '../common/interfaces/get-options.interface.cjs';
|
|
4
4
|
import '../common/interfaces/post-options.interface.cjs';
|
|
@@ -45,6 +45,7 @@ import '../sso/interfaces/get-profile-options.interface.cjs';
|
|
|
45
45
|
import '../sso/interfaces/get-profile-and-token-options.interface.cjs';
|
|
46
46
|
import '../sso/interfaces/list-connections-options.interface.cjs';
|
|
47
47
|
import '../sso/interfaces/profile-and-token.interface.cjs';
|
|
48
|
+
import '../user-management/interfaces/oauth-tokens.interface.cjs';
|
|
48
49
|
import '../sso/interfaces/profile.interface.cjs';
|
|
49
50
|
import '../webhooks/webhooks.cjs';
|
|
50
51
|
import '../common/crypto/crypto-provider.cjs';
|
|
@@ -61,6 +62,7 @@ import '../audit-logs/interfaces/audit-log-export.interface.cjs';
|
|
|
61
62
|
import '../audit-logs/interfaces/create-audit-log-event-options.interface.cjs';
|
|
62
63
|
import '../audit-logs/interfaces/create-audit-log-schema-options.interface.cjs';
|
|
63
64
|
import 'jose';
|
|
65
|
+
import '../user-management-B38wNrIN.cjs';
|
|
64
66
|
import '../user-management/interfaces/authenticate-with-code-options.interface.cjs';
|
|
65
67
|
import '../user-management/interfaces/authenticate-with-options-base.interface.cjs';
|
|
66
68
|
import '../user-management/interfaces/authenticate-with-code-and-verifier-options.interface.cjs';
|
|
@@ -71,7 +73,6 @@ import '../user-management/interfaces/authenticate-with-password-options.interfa
|
|
|
71
73
|
import '../user-management/interfaces/authenticate-with-refresh-token-options.interface.cjs';
|
|
72
74
|
import '../user-management/interfaces/authenticate-with-session-cookie.interface.cjs';
|
|
73
75
|
import '../user-management/interfaces/authentication-response.interface.cjs';
|
|
74
|
-
import '../user-management/interfaces/oauth-tokens.interface.cjs';
|
|
75
76
|
import '../user-management/interfaces/authenticate-with-totp-options.interface.cjs';
|
|
76
77
|
import '../user-management/interfaces/authorization-url-options.interface.cjs';
|
|
77
78
|
import '../user-management/interfaces/create-magic-auth-options.interface.cjs';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var public_exports = {};
|
|
30
|
+
__export(public_exports, {
|
|
31
|
+
sso: () => sso,
|
|
32
|
+
userManagement: () => userManagement
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(public_exports);
|
|
35
|
+
var userManagement = __toESM(require('./user-management.cjs'), 1);
|
|
36
|
+
var sso = __toESM(require('./sso.cjs'), 1);
|
|
37
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
+
0 && (module.exports = {
|
|
39
|
+
sso,
|
|
40
|
+
userManagement
|
|
41
|
+
});
|
|
42
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/public/index.ts"],"sourcesContent":["/**\n * Public methods that can be safely used in without an API key.\n */\n\n// User Management public methods and types\nexport * as userManagement from './user-management';\n\n// SSO public methods and types\nexport * as sso from './sso';\n\n// Re-export specific types for convenience\nexport type {\n AuthorizationURLOptions as UserManagementAuthorizationURLOptions,\n LogoutURLOptions,\n} from './user-management';\n\nexport type { SSOAuthorizationURLOptions } from './sso';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA,qBAAgC;AAGhC,UAAqB;","names":[]}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
var sso_exports = {};
|
|
21
|
+
__export(sso_exports, {
|
|
22
|
+
getAuthorizationUrl: () => getAuthorizationUrl
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(sso_exports);
|
|
25
|
+
var import_utils = require('./utils.cjs');
|
|
26
|
+
function getAuthorizationUrl(options) {
|
|
27
|
+
const {
|
|
28
|
+
connection,
|
|
29
|
+
clientId,
|
|
30
|
+
domainHint,
|
|
31
|
+
loginHint,
|
|
32
|
+
organization,
|
|
33
|
+
provider,
|
|
34
|
+
providerQueryParams,
|
|
35
|
+
providerScopes,
|
|
36
|
+
redirectUri,
|
|
37
|
+
state,
|
|
38
|
+
baseURL = "https://api.workos.com"
|
|
39
|
+
} = options;
|
|
40
|
+
if (!provider && !connection && !organization) {
|
|
41
|
+
throw new Error(
|
|
42
|
+
`Incomplete arguments. Need to specify either a 'connection', 'organization', or 'provider'.`
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
const query = (0, import_utils.toQueryString)({
|
|
46
|
+
connection,
|
|
47
|
+
organization,
|
|
48
|
+
domain_hint: domainHint,
|
|
49
|
+
login_hint: loginHint,
|
|
50
|
+
provider,
|
|
51
|
+
provider_query_params: providerQueryParams,
|
|
52
|
+
provider_scopes: providerScopes,
|
|
53
|
+
client_id: clientId,
|
|
54
|
+
redirect_uri: redirectUri,
|
|
55
|
+
response_type: "code",
|
|
56
|
+
state
|
|
57
|
+
});
|
|
58
|
+
return `${baseURL}/sso/authorize?${query}`;
|
|
59
|
+
}
|
|
60
|
+
__name(getAuthorizationUrl, "getAuthorizationUrl");
|
|
61
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
62
|
+
0 && (module.exports = {
|
|
63
|
+
getAuthorizationUrl
|
|
64
|
+
});
|
|
65
|
+
//# sourceMappingURL=sso.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/public/sso.ts"],"sourcesContent":["import { toQueryString } from './utils';\n\nexport interface SSOAuthorizationURLOptions {\n clientId: string;\n connection?: string;\n organization?: string;\n domainHint?: string;\n loginHint?: string;\n provider?: string;\n providerQueryParams?: Record<string, string | boolean | number>;\n providerScopes?: string[];\n redirectUri: string;\n state?: string;\n}\n\n/**\n * Generates the authorization URL for SSO authentication.\n * This method is safe to use in browser environments as it doesn't require an API key.\n *\n * @param options - SSO authorization URL options\n * @returns The authorization URL as a string\n * @throws Error if required arguments are missing\n */\nexport function getAuthorizationUrl(\n options: SSOAuthorizationURLOptions & { baseURL?: string },\n): string {\n const {\n connection,\n clientId,\n domainHint,\n loginHint,\n organization,\n provider,\n providerQueryParams,\n providerScopes,\n redirectUri,\n state,\n baseURL = 'https://api.workos.com',\n } = options;\n\n if (!provider && !connection && !organization) {\n throw new Error(\n `Incomplete arguments. Need to specify either a 'connection', 'organization', or 'provider'.`,\n );\n }\n\n const query = toQueryString({\n connection,\n organization,\n domain_hint: domainHint,\n login_hint: loginHint,\n provider,\n provider_query_params: providerQueryParams,\n provider_scopes: providerScopes,\n client_id: clientId,\n redirect_uri: redirectUri,\n response_type: 'code',\n state,\n });\n\n return `${baseURL}/sso/authorize?${query}`;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA8B;AAuBvB,SAAS,oBACd,SACQ;AACR,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,UAAU;AAAA,EACZ,IAAI;AAEJ,MAAI,CAAC,YAAY,CAAC,cAAc,CAAC,cAAc;AAC7C,UAAM,IAAI;AAAA,MACR;AAAA,IACF;AAAA,EACF;AAEA,QAAM,YAAQ,4BAAc;AAAA,IAC1B;AAAA,IACA;AAAA,IACA,aAAa;AAAA,IACb,YAAY;AAAA,IACZ;AAAA,IACA,uBAAuB;AAAA,IACvB,iBAAiB;AAAA,IACjB,WAAW;AAAA,IACX,cAAc;AAAA,IACd,eAAe;AAAA,IACf;AAAA,EACF,CAAC;AAED,SAAO,GAAG,OAAO,kBAAkB,KAAK;AAC1C;AAtCgB;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { S as SSOAuthorizationURLOptions, g as getAuthorizationUrl } from '../sso-Cdnhezcz.cjs';
|