@workos-inc/node 7.26.0 → 7.27.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.
@@ -3,6 +3,7 @@ export interface AuthorizationURLOptions {
3
3
  codeChallenge?: string;
4
4
  codeChallengeMethod?: 'S256';
5
5
  connectionId?: string;
6
+ context?: string;
6
7
  organizationId?: string;
7
8
  domainHint?: string;
8
9
  loginHint?: string;
@@ -102,7 +102,7 @@ export declare class UserManagement {
102
102
  sendInvitation(payload: SendInvitationOptions): Promise<Invitation>;
103
103
  revokeInvitation(invitationId: string): Promise<Invitation>;
104
104
  revokeSession(payload: RevokeSessionOptions): Promise<void>;
105
- getAuthorizationUrl({ connectionId, codeChallenge, codeChallengeMethod, clientId, domainHint, loginHint, organizationId, provider, redirectUri, state, screenHint, }: AuthorizationURLOptions): string;
105
+ getAuthorizationUrl({ connectionId, codeChallenge, codeChallengeMethod, context, clientId, domainHint, loginHint, organizationId, provider, redirectUri, state, screenHint, }: AuthorizationURLOptions): string;
106
106
  getLogoutUrl({ sessionId }: {
107
107
  sessionId: string;
108
108
  }): string;
@@ -498,7 +498,7 @@ class UserManagement {
498
498
  yield this.workos.post('/user_management/sessions/revoke', (0, revoke_session_options_interface_1.serializeRevokeSessionOptions)(payload));
499
499
  });
500
500
  }
501
- getAuthorizationUrl({ connectionId, codeChallenge, codeChallengeMethod, clientId, domainHint, loginHint, organizationId, provider, redirectUri, state, screenHint, }) {
501
+ getAuthorizationUrl({ connectionId, codeChallenge, codeChallengeMethod, context, clientId, domainHint, loginHint, organizationId, provider, redirectUri, state, screenHint, }) {
502
502
  if (!provider && !connectionId && !organizationId) {
503
503
  throw new TypeError(`Incomplete arguments. Need to specify either a 'connectionId', 'organizationId', or 'provider'.`);
504
504
  }
@@ -509,6 +509,7 @@ class UserManagement {
509
509
  connection_id: connectionId,
510
510
  code_challenge: codeChallenge,
511
511
  code_challenge_method: codeChallengeMethod,
512
+ context,
512
513
  organization_id: organizationId,
513
514
  domain_hint: domainHint,
514
515
  login_hint: loginHint,
package/lib/workos.js CHANGED
@@ -27,7 +27,7 @@ const bad_request_exception_1 = require("./common/exceptions/bad-request.excepti
27
27
  const http_client_1 = require("./common/net/http-client");
28
28
  const subtle_crypto_provider_1 = require("./common/crypto/subtle-crypto-provider");
29
29
  const fetch_client_1 = require("./common/net/fetch-client");
30
- const VERSION = '7.26.0';
30
+ const VERSION = '7.27.0';
31
31
  const DEFAULT_HOSTNAME = 'api.workos.com';
32
32
  const HEADER_AUTHORIZATION = 'Authorization';
33
33
  const HEADER_IDEMPOTENCY_KEY = 'Idempotency-Key';
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "7.26.0",
2
+ "version": "7.27.0",
3
3
  "name": "@workos-inc/node",
4
4
  "author": "WorkOS",
5
5
  "description": "A Node wrapper for the WorkOS API",