@workos-inc/node 10.5.0 → 10.7.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.
@@ -4823,7 +4823,7 @@ var UserManagement = class {
4823
4823
  * Or use getAuthorizationUrlWithPKCE() which handles PKCE automatically.
4824
4824
  */
4825
4825
  getAuthorizationUrl(options) {
4826
- const { claimNonce, connectionId, codeChallenge, codeChallengeMethod, clientId, domainHint, invitationToken, loginHint, organizationId, provider, providerQueryParams, providerScopes, prompt, redirectUri, state, screenHint } = options;
4826
+ const { claimNonce, connectionId, codeChallenge, codeChallengeMethod, clientId, domainHint, invitationToken, loginHint, maxAge, organizationId, provider, providerQueryParams, providerScopes, prompt, redirectUri, state, screenHint } = options;
4827
4827
  const resolvedClientId = this.resolveClientId(clientId);
4828
4828
  if (!provider && !connectionId && !organizationId) throw new TypeError(`Incomplete arguments. Need to specify either a 'connectionId', 'organizationId', or 'provider'.`);
4829
4829
  if (provider !== "authkit" && screenHint) throw new TypeError(`'screenHint' is only supported for 'authkit' provider`);
@@ -4836,6 +4836,7 @@ var UserManagement = class {
4836
4836
  domain_hint: domainHint,
4837
4837
  invitation_token: invitationToken,
4838
4838
  login_hint: loginHint,
4839
+ max_age: maxAge?.toString(),
4839
4840
  provider,
4840
4841
  provider_query_params: providerQueryParams,
4841
4842
  provider_scopes: providerScopes,
@@ -4875,7 +4876,7 @@ var UserManagement = class {
4875
4876
  * ```
4876
4877
  */
4877
4878
  async getAuthorizationUrlWithPKCE(options) {
4878
- const { clientId, connectionId, domainHint, loginHint, organizationId, provider, providerQueryParams, providerScopes, prompt, redirectUri, screenHint } = options;
4879
+ const { clientId, connectionId, domainHint, loginHint, maxAge, organizationId, provider, providerQueryParams, providerScopes, prompt, redirectUri, screenHint } = options;
4879
4880
  const resolvedClientId = this.resolveClientId(clientId);
4880
4881
  if (!provider && !connectionId && !organizationId) throw new TypeError(`Incomplete arguments. Need to specify either a 'connectionId', 'organizationId', or 'provider'.`);
4881
4882
  if (provider !== "authkit" && screenHint) throw new TypeError(`'screenHint' is only supported for 'authkit' provider`);
@@ -4888,6 +4889,7 @@ var UserManagement = class {
4888
4889
  organization_id: organizationId,
4889
4890
  domain_hint: domainHint,
4890
4891
  login_hint: loginHint,
4892
+ max_age: maxAge?.toString(),
4891
4893
  provider,
4892
4894
  provider_query_params: providerQueryParams,
4893
4895
  provider_scopes: providerScopes,
@@ -5707,6 +5709,10 @@ const deserializeRoleAssignment = (response) => ({
5707
5709
  externalId: response.resource.external_id,
5708
5710
  resourceTypeSlug: response.resource.resource_type_slug
5709
5711
  },
5712
+ source: {
5713
+ type: response.source.type,
5714
+ groupRoleAssignmentId: response.source.group_role_assignment_id
5715
+ },
5710
5716
  createdAt: response.created_at,
5711
5717
  updatedAt: response.updated_at
5712
5718
  });
@@ -7148,7 +7154,7 @@ var Vault = class {
7148
7154
  };
7149
7155
  //#endregion
7150
7156
  //#region package.json
7151
- var version = "10.5.0";
7157
+ var version = "10.7.0";
7152
7158
  //#endregion
7153
7159
  //#region src/workos.ts
7154
7160
  const DEFAULT_HOSTNAME = "api.workos.com";
@@ -7679,4 +7685,4 @@ Object.defineProperty(exports, "serializeRevokeSessionOptions", {
7679
7685
  }
7680
7686
  });
7681
7687
 
7682
- //# sourceMappingURL=factory-CJmENOk9.cjs.map
7688
+ //# sourceMappingURL=factory-DwW2quUn.cjs.map