@opexa/portal-sdk 0.0.128 → 0.0.129

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.
@@ -10,9 +10,7 @@ export declare class AuthService {
10
10
  private platform;
11
11
  constructor(config: AuthServiceConfig);
12
12
  private get headers();
13
- createSession(input: CreateSessionInput & {
14
- reCAPTCHAResponse?: string;
15
- }): Promise<OperationResult<CreateSessionError, CreateSessionMutation>>;
13
+ createSession(input: CreateSessionInput): Promise<OperationResult<CreateSessionError, CreateSessionMutation>>;
16
14
  authenticate(input: AuthenticateInput): Promise<OperationResult<AuthenticateError, AuthenticateMutation>>;
17
15
  refreshSession(refreshToken: string): Promise<OperationResult<RefreshSessionError, RefreshSessionMutation>>;
18
16
  destroySession(accessToken: string): Promise<OperationResult>;
@@ -968,6 +968,7 @@ export type CreateSessionInput = {
968
968
  verificationCode?: never;
969
969
  sessionId?: never;
970
970
  token?: never;
971
+ reCAPTCHAResponse?: string;
971
972
  } | {
972
973
  name?: never;
973
974
  password?: never;
@@ -975,6 +976,7 @@ export type CreateSessionInput = {
975
976
  verificationCode: string;
976
977
  sessionId?: never;
977
978
  token?: never;
979
+ reCAPTCHAResponse?: string;
978
980
  } | {
979
981
  name?: never;
980
982
  password?: never;
@@ -982,6 +984,7 @@ export type CreateSessionInput = {
982
984
  verificationCode?: never;
983
985
  sessionId: string;
984
986
  token?: never;
987
+ reCAPTCHAResponse?: string;
985
988
  } | {
986
989
  name?: never;
987
990
  password?: never;
@@ -989,6 +992,7 @@ export type CreateSessionInput = {
989
992
  verificationCode?: never;
990
993
  sessionId?: never;
991
994
  token: string;
995
+ reCAPTCHAResponse?: string;
992
996
  };
993
997
  export type Authenticator = {
994
998
  type: 'SECURITY_QUESTION';
@@ -1006,7 +1010,7 @@ export type CreateSessionMutation = {
1006
1010
  refreshToken?: never;
1007
1011
  authenticator: Authenticator;
1008
1012
  };
1009
- export type CreateSessionError = 'AccountNotFoundError' | 'AccountBlacklistedError';
1013
+ export type CreateSessionError = 'AccountNotFoundError' | 'AccountBlacklistedError' | 'InvalidReCAPTCHAResponseError';
1010
1014
  export type RefreshSessionError = 'InvalidTokenError' | 'AccountBlacklistedError' | 'SessionExpiredError';
1011
1015
  export interface RefreshSessionMutation {
1012
1016
  accessToken: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@opexa/portal-sdk",
3
3
  "type": "module",
4
- "version": "0.0.128",
4
+ "version": "0.0.129",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "typings": "dist/index.d.ts",