@wix/identity 1.0.4 → 1.0.6

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.
Files changed (45) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +2 -1
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/src/iam-authentication-v1-authentication.http.d.ts +5 -0
  5. package/build/cjs/src/iam-authentication-v1-authentication.http.js +152 -0
  6. package/build/cjs/src/iam-authentication-v1-authentication.http.js.map +1 -0
  7. package/build/cjs/src/iam-authentication-v1-authentication.public.d.ts +7 -0
  8. package/build/cjs/src/iam-authentication-v1-authentication.public.js +28 -0
  9. package/build/cjs/src/iam-authentication-v1-authentication.public.js.map +1 -0
  10. package/build/cjs/src/iam-authentication-v1-authentication.types.d.ts +191 -0
  11. package/build/cjs/src/iam-authentication-v1-authentication.types.js +32 -0
  12. package/build/cjs/src/iam-authentication-v1-authentication.types.js.map +1 -0
  13. package/build/cjs/src/iam-authentication-v1-authentication.universal.d.ts +226 -0
  14. package/build/cjs/src/iam-authentication-v1-authentication.universal.js +273 -0
  15. package/build/cjs/src/iam-authentication-v1-authentication.universal.js.map +1 -0
  16. package/build/cjs/src/identity-oauth-v1-refresh-token.http.js +6 -0
  17. package/build/cjs/src/identity-oauth-v1-refresh-token.http.js.map +1 -1
  18. package/build/cjs/src/identity-oauth-v1-refresh-token.public.d.ts +1 -1
  19. package/build/cjs/src/identity-oauth-v1-refresh-token.types.d.ts +88 -65
  20. package/build/cjs/src/identity-oauth-v1-refresh-token.universal.d.ts +143 -89
  21. package/build/cjs/src/identity-oauth-v1-refresh-token.universal.js +10 -8
  22. package/build/cjs/src/identity-oauth-v1-refresh-token.universal.js.map +1 -1
  23. package/build/es/index.d.ts +1 -0
  24. package/build/es/index.js +1 -0
  25. package/build/es/index.js.map +1 -1
  26. package/build/es/src/iam-authentication-v1-authentication.http.d.ts +5 -0
  27. package/build/es/src/iam-authentication-v1-authentication.http.js +146 -0
  28. package/build/es/src/iam-authentication-v1-authentication.http.js.map +1 -0
  29. package/build/es/src/iam-authentication-v1-authentication.public.d.ts +7 -0
  30. package/build/es/src/iam-authentication-v1-authentication.public.js +18 -0
  31. package/build/es/src/iam-authentication-v1-authentication.public.js.map +1 -0
  32. package/build/es/src/iam-authentication-v1-authentication.types.d.ts +191 -0
  33. package/build/es/src/iam-authentication-v1-authentication.types.js +29 -0
  34. package/build/es/src/iam-authentication-v1-authentication.types.js.map +1 -0
  35. package/build/es/src/iam-authentication-v1-authentication.universal.d.ts +226 -0
  36. package/build/es/src/iam-authentication-v1-authentication.universal.js +248 -0
  37. package/build/es/src/iam-authentication-v1-authentication.universal.js.map +1 -0
  38. package/build/es/src/identity-oauth-v1-refresh-token.http.js +6 -0
  39. package/build/es/src/identity-oauth-v1-refresh-token.http.js.map +1 -1
  40. package/build/es/src/identity-oauth-v1-refresh-token.public.d.ts +1 -1
  41. package/build/es/src/identity-oauth-v1-refresh-token.types.d.ts +88 -65
  42. package/build/es/src/identity-oauth-v1-refresh-token.universal.d.ts +143 -89
  43. package/build/es/src/identity-oauth-v1-refresh-token.universal.js +10 -8
  44. package/build/es/src/identity-oauth-v1-refresh-token.universal.js.map +1 -1
  45. package/package.json +2 -2
@@ -7,30 +7,48 @@ export declare const __debug: {
7
7
  export interface RefreshToken {
8
8
  token?: string;
9
9
  }
10
+ /**
11
+ * AuthorizeRequest is sent by the client to the authorization server to initiate
12
+ * the authorization process.
13
+ */
10
14
  export interface AuthorizeRequest {
11
- /** Tells the authorization server which grant to execute. */
12
- responseType?: string;
13
- /** The ID of the application that asks for authorization. */
15
+ /** client_id is the unique identifier of the client application. */
14
16
  clientId?: string;
15
- /** Holds a URL. A successful response from this endpoint results in a redirect to this URL. */
16
- redirectUri?: string | null;
17
- /** A list of scopes that the application requires. */
18
- scope?: Scope;
19
- /** An opaque value, used for security purposes. If this request parameter is set in the request, then it is returned to the application as part of the redirect_uri. */
17
+ /**
18
+ * response_type specifies the desired authorization grant type.
19
+ * This can be "code" for the authorization code.
20
+ */
21
+ responseType?: string;
22
+ /**
23
+ * redirect_uri is the URI to which the authorization server will redirect the
24
+ * user-agent after the user grants/denies permission.
25
+ */
26
+ redirectUri?: string;
27
+ /**
28
+ * scope is a space-delimited string that specifies the requested scope of the
29
+ * access request.
30
+ */
31
+ scope?: string | null;
32
+ /**
33
+ * An opaque value, used for security purposes. If this request parameter is set
34
+ * in the request, then it is returned to the application as part of the redirect_uri.
35
+ */
20
36
  state?: string;
21
37
  /** (Optional) How the result of the authorization request is formatted */
22
38
  responseMode?: string | null;
23
- /** PKCE hashed code */
39
+ /**
40
+ * code_challenge is the code challenge sent by the client as part of the PKCE
41
+ * process. This field is only used if response_type is "code".
42
+ */
24
43
  codeChallenge?: string | null;
25
- /** PKCE hashing method */
44
+ /**
45
+ * code_challenge_method is the code challenge method sent by the client as part
46
+ * of the PKCE process. This field is only used if response_type is "code".
47
+ */
26
48
  codeChallengeMethod?: string | null;
27
49
  /** Current client session */
28
50
  sessionToken?: string | null;
29
51
  }
30
- export interface Scope {
31
- /** A list of permissions that the application requires. Empty list means the default list of scopes. */
32
- ids?: string[];
33
- }
34
52
  export interface RawHttpResponse {
35
53
  body?: Uint8Array;
36
54
  statusCode?: number | null;
@@ -40,64 +58,57 @@ export interface HeadersEntry {
40
58
  key?: string;
41
59
  value?: string;
42
60
  }
43
- export interface TokenRequest extends TokenRequestGrantTypeOneOf {
44
- /** Authorization code given at the authorize endpoint. */
45
- authorizationCode?: AuthorizationCode;
46
- /** Authorization code given at the authorize endpoint with the PKCE extention. */
47
- pkce?: PKCE;
48
- /** Device code given at the device code endpoint. */
49
- deviceCode?: DeviceCode;
50
- /** Refresh Token that was issued by this service beforehand. */
51
- refreshToken?: RefreshToken;
52
- /** Client credentials for authenticating a client */
53
- clientCredentials?: ClientCredentials;
54
- /** Granting a pre authenticated token for basic access. */
55
- preAuthenticated?: PreAuthenticated;
56
- }
57
- /** @oneof */
58
- export interface TokenRequestGrantTypeOneOf {
59
- /** Authorization code given at the authorize endpoint. */
60
- authorizationCode?: AuthorizationCode;
61
- /** Authorization code given at the authorize endpoint with the PKCE extention. */
62
- pkce?: PKCE;
63
- /** Device code given at the device code endpoint. */
64
- deviceCode?: DeviceCode;
65
- /** Refresh Token that was issued by this service beforehand. */
66
- refreshToken?: RefreshToken;
67
- /** Client credentials for authenticating a client */
68
- clientCredentials?: ClientCredentials;
69
- /** Granting a pre authenticated token for basic access. */
70
- preAuthenticated?: PreAuthenticated;
71
- }
72
- export interface AuthorizationCode {
73
- code?: string;
74
- }
75
- export interface PKCE {
76
- authorizationCode?: AuthorizationCode;
77
- /** PKCE code */
61
+ /**
62
+ * TokenRequest is sent by the client to the authorization server to request an
63
+ * access token.
64
+ */
65
+ export interface TokenRequest {
66
+ /** The application id that want to obtain an access token. */
67
+ clientId?: string | null;
68
+ /**
69
+ * grant_type specifies the grant type being used. supported grant types are:
70
+ * `authorization_code`, `client_credentials`, `refresh_token`, `urn:ietf:params:oauth:grant-type:device_code`, `anonymous`
71
+ */
72
+ grantType?: string;
73
+ /** Required for `refresh_token` grant type. */
74
+ refreshToken?: string | null;
75
+ /** Required for `client_credentials` grant type. */
76
+ clientSecret?: string | null;
77
+ /**
78
+ * Required for `urn:ietf:params:oauth:grant-type:device_code` grant type. The device verification code, "device_code" from the
79
+ * device authorization response
80
+ */
81
+ deviceCode?: string | null;
82
+ /** Required for the `authorization_code` grant type. */
83
+ redirectUri?: string | null;
84
+ /** Required for `authorization_code` grant type. */
78
85
  code?: string | null;
79
- }
80
- export interface DeviceCode {
81
- deviceCode?: string;
82
- }
83
- export interface ClientCredentials {
84
- }
85
- export interface PreAuthenticated {
86
- clientId?: string;
86
+ /** Optional, used if code challenge and code method were used in `authorization_code` grant type. */
87
+ codeVerifier?: string | null;
87
88
  }
88
89
  export interface TokenResponse {
89
- accessToken?: AccessToken;
90
- refreshToken?: RefreshToken;
91
- }
92
- export interface AccessToken {
93
- /** The access token string as issued by the authorization server. */
94
- token?: string;
90
+ /** The access token issued by the authorization server. */
91
+ accessToken?: string;
92
+ /** The type of the token issued as described in Section 7.1. of the oauth2 rfc. */
93
+ tokenType?: string;
94
+ /**
95
+ * The lifetime in seconds of the access token. For example, the value "3600" denotes that the access token will
96
+ * expire in one hour from the time the response was generated.
97
+ */
98
+ expiresIn?: number;
99
+ /** The refresh token, which can be used to obtain new access tokens. */
100
+ refreshToken?: string | null;
101
+ /** OPTIONAL, if identical to the scope requested by the client; otherwise, will be sent. */
102
+ scope?: string | null;
95
103
  }
96
104
  export interface DeviceCodeRequest {
97
105
  /** The ID of the application that asks for authorization. */
98
106
  clientId?: string;
99
- /** A list of permissions that the application requires. Empty list means the default list of scopes. */
100
- scope?: Scope;
107
+ /**
108
+ * scope is a space-delimited string that specifies the requested scope of the
109
+ * access request.
110
+ */
111
+ scope?: string | null;
101
112
  }
102
113
  export interface DeviceCodeResponse {
103
114
  /** is the unique code for the device. When the user goes to the verification_uri in their browser-based device, this code will be bound to their session. */
@@ -117,26 +128,56 @@ export interface DeviceVerifyRequest {
117
128
  }
118
129
  export interface DeviceVerifyResponse {
119
130
  }
131
+ export interface InvalidateUserCodeRequest {
132
+ /** user code to invalidate. Only the authorizing identity is able to invalidate it. */
133
+ userCode?: string;
134
+ }
135
+ export interface InvalidateUserCodeResponse {
136
+ }
137
+ export interface RevokeRefreshTokenRequest {
138
+ /** The refresh token itself. Anyone with the token itself is able to revoke it. */
139
+ refreshToken?: string;
140
+ }
141
+ export interface RevokeRefreshTokenResponse {
142
+ }
120
143
  /** @public
121
144
  * @documentationMaturity preview
122
145
  */
123
146
  export declare function authorize(options?: AuthorizeOptions): Promise<RawHttpResponse>;
124
147
  export interface AuthorizeOptions {
125
- /** Tells the authorization server which grant to execute. */
126
- responseType?: string;
127
- /** The ID of the application that asks for authorization. */
148
+ /** client_id is the unique identifier of the client application. */
128
149
  clientId?: string;
129
- /** Holds a URL. A successful response from this endpoint results in a redirect to this URL. */
130
- redirectUri?: string | null;
131
- /** A list of scopes that the application requires. */
132
- scope?: Scope;
133
- /** An opaque value, used for security purposes. If this request parameter is set in the request, then it is returned to the application as part of the redirect_uri. */
150
+ /**
151
+ * response_type specifies the desired authorization grant type.
152
+ * This can be "code" for the authorization code.
153
+ */
154
+ responseType?: string;
155
+ /**
156
+ * redirect_uri is the URI to which the authorization server will redirect the
157
+ * user-agent after the user grants/denies permission.
158
+ */
159
+ redirectUri?: string;
160
+ /**
161
+ * scope is a space-delimited string that specifies the requested scope of the
162
+ * access request.
163
+ */
164
+ scope?: string | null;
165
+ /**
166
+ * An opaque value, used for security purposes. If this request parameter is set
167
+ * in the request, then it is returned to the application as part of the redirect_uri.
168
+ */
134
169
  state?: string;
135
170
  /** (Optional) How the result of the authorization request is formatted */
136
171
  responseMode?: string | null;
137
- /** PKCE hashed code */
172
+ /**
173
+ * code_challenge is the code challenge sent by the client as part of the PKCE
174
+ * process. This field is only used if response_type is "code".
175
+ */
138
176
  codeChallenge?: string | null;
139
- /** PKCE hashing method */
177
+ /**
178
+ * code_challenge_method is the code challenge method sent by the client as part
179
+ * of the PKCE process. This field is only used if response_type is "code".
180
+ */
140
181
  codeChallengeMethod?: string | null;
141
182
  /** Current client session */
142
183
  sessionToken?: string | null;
@@ -146,18 +187,28 @@ export interface AuthorizeOptions {
146
187
  */
147
188
  export declare function token(options?: TokenOptions): Promise<TokenResponse>;
148
189
  export interface TokenOptions {
149
- /** Authorization code given at the authorize endpoint. */
150
- authorizationCode?: AuthorizationCode;
151
- /** Authorization code given at the authorize endpoint with the PKCE extention. */
152
- pkce?: PKCE;
153
- /** Device code given at the device code endpoint. */
154
- deviceCode?: DeviceCode;
155
- /** Refresh Token that was issued by this service beforehand. */
156
- refreshToken?: RefreshToken;
157
- /** Client credentials for authenticating a client */
158
- clientCredentials?: ClientCredentials;
159
- /** Granting a pre authenticated token for basic access. */
160
- preAuthenticated?: PreAuthenticated;
190
+ /** The application id that want to obtain an access token. */
191
+ clientId?: string | null;
192
+ /**
193
+ * grant_type specifies the grant type being used. supported grant types are:
194
+ * `authorization_code`, `client_credentials`, `refresh_token`, `urn:ietf:params:oauth:grant-type:device_code`, `anonymous`
195
+ */
196
+ grantType?: string;
197
+ /** Required for `refresh_token` grant type. */
198
+ refreshToken?: string | null;
199
+ /** Required for `client_credentials` grant type. */
200
+ clientSecret?: string | null;
201
+ /**
202
+ * Required for `urn:ietf:params:oauth:grant-type:device_code` grant type. The device verification code, "device_code" from the
203
+ * device authorization response
204
+ */
205
+ deviceCode?: string | null;
206
+ /** Required for the `authorization_code` grant type. */
207
+ redirectUri?: string | null;
208
+ /** Required for `authorization_code` grant type. */
209
+ code?: string | null;
210
+ /** Optional, used if code challenge and code method were used in `authorization_code` grant type. */
211
+ codeVerifier?: string | null;
161
212
  }
162
213
  /**
163
214
  * this endpoint serves the Device Authorization Flow as described in https://www.rfc-editor.org/rfc/pdfrfc/rfc8628.txt.pdf
@@ -168,8 +219,11 @@ export declare function deviceCode(options?: DeviceCodeOptions): Promise<DeviceC
168
219
  export interface DeviceCodeOptions {
169
220
  /** The ID of the application that asks for authorization. */
170
221
  clientId?: string;
171
- /** A list of permissions that the application requires. Empty list means the default list of scopes. */
172
- scope?: Scope;
222
+ /**
223
+ * scope is a space-delimited string that specifies the requested scope of the
224
+ * access request.
225
+ */
226
+ scope?: string | null;
173
227
  }
174
228
  /**
175
229
  * this endpoint serves the Device Authorization Flow as described in https://www.rfc-editor.org/rfc/pdfrfc/rfc8628.txt.pdf
@@ -61,8 +61,8 @@ function authorize(options) {
61
61
  var _a, _b, _c;
62
62
  return __awaiter(this, arguments, void 0, function* () {
63
63
  const requestTransformation = {
64
- responseType: '$[0].responseType',
65
64
  clientId: '$[0].clientId',
65
+ responseType: '$[0].responseType',
66
66
  redirectUri: '$[0].redirectUri',
67
67
  scope: '$[0].scope',
68
68
  state: '$[0].state',
@@ -118,12 +118,14 @@ function token(options) {
118
118
  var _a, _b, _c;
119
119
  return __awaiter(this, arguments, void 0, function* () {
120
120
  const requestTransformation = {
121
- authorizationCode: '$[0].authorizationCode',
122
- pkce: '$[0].pkce',
123
- deviceCode: '$[0].deviceCode',
121
+ clientId: '$[0].clientId',
122
+ grantType: '$[0].grantType',
124
123
  refreshToken: '$[0].refreshToken',
125
- clientCredentials: '$[0].clientCredentials',
126
- preAuthenticated: '$[0].preAuthenticated',
124
+ clientSecret: '$[0].clientSecret',
125
+ deviceCode: '$[0].deviceCode',
126
+ redirectUri: '$[0].redirectUri',
127
+ code: '$[0].code',
128
+ codeVerifier: '$[0].codeVerifier',
127
129
  };
128
130
  const responseTransformation = '$';
129
131
  // @ts-ignore
@@ -132,7 +134,7 @@ function token(options) {
132
134
  rootSchema: _tokenRequest,
133
135
  depSchemas: {},
134
136
  fqdnTransformation: {
135
- paths: [...['refreshToken']],
137
+ paths: [],
136
138
  transformation: _fromVeloEntity,
137
139
  },
138
140
  customTransformation: requestTransformation,
@@ -141,7 +143,7 @@ function token(options) {
141
143
  rootSchema: _tokenResponse,
142
144
  depSchemas: {},
143
145
  fqdnTransformation: {
144
- paths: [...['refreshToken']],
146
+ paths: [],
145
147
  transformation: _toVeloEntity,
146
148
  },
147
149
  customTransformation: responseTransformation,
@@ -1 +1 @@
1
- {"version":3,"file":"identity-oauth-v1-refresh-token.universal.js","sourceRoot":"","sources":["../../../src/identity-oauth-v1-refresh-token.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAqE;AAErE,iHAAmG;AAEnG,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAEY,QAAA,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,SA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O,CAAC,CAAC,CAAC;QAE/C,MAAM,OAAO,GACX,wCAAwC,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAEjE,KAAK,CAAC,wCAAwC,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QAEpE,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,UAAU,+CAAvB,WAAW,CAAgB,CAAC;QAC5B,IAAI;YACF,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YACjD,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,SAAS,+CAAtB,WAAW,EAAc,MAAM,CAAC,CAAC;YAEjC,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAQ,CAAC;SACrC;QAAC,OAAO,GAAQ,EAAE;YACjB,MAAM,gBAAgB,GAAG,qBAAc,CAAC,GAAG,EAAE,qBAAqB,EAAE;gBAClE,SAAS;aACV,CAAC,CAAC;YACH,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;SACxB;;CACF;AArDD,oCAqDC"}
1
+ {"version":3,"file":"identity-oauth-v1-refresh-token.universal.js","sourceRoot":"","sources":["../../../src/identity-oauth-v1-refresh-token.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAqE;AAErE,iHAAmG;AAEnG,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAEY,QAAA,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,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E/C,MAAM,OAAO,GACX,wCAAwC,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAEjE,KAAK,CAAC,wCAAwC,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QAEpE,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,UAAU,+CAAvB,WAAW,CAAgB,CAAC;QAC5B,IAAI;YACF,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YACjD,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,SAAS,+CAAtB,WAAW,EAAc,MAAM,CAAC,CAAC;YAEjC,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAQ,CAAC;SACrC;QAAC,OAAO,GAAQ,EAAE;YACjB,MAAM,gBAAgB,GAAG,qBAAc,CAAC,GAAG,EAAE,qBAAqB,EAAE;gBAClE,SAAS;aACV,CAAC,CAAC;YACH,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;SACxB;;CACF;AArDD,oCAqDC"}
@@ -1 +1,2 @@
1
+ export * as authentication from './src/iam-authentication-v1-authentication.public';
1
2
  export * as oauth from './src/identity-oauth-v1-refresh-token.public';
package/build/es/index.js CHANGED
@@ -1,2 +1,3 @@
1
+ export * as authentication from './src/iam-authentication-v1-authentication.public';
1
2
  export * as oauth from './src/identity-oauth-v1-refresh-token.public';
2
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,8CAA8C,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc,MAAM,mDAAmD,CAAC;AACpF,OAAO,KAAK,KAAK,MAAM,8CAA8C,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { RequestOptionsFactory } from '@wix/sdk-types';
2
+ import { LoginRequest, LoginResponse, ProceedToNextStateRequest, RegisterRequest } from './iam-authentication-v1-authentication.types';
3
+ export declare function register(payload: RegisterRequest): RequestOptionsFactory<LoginResponse>;
4
+ export declare function login(payload: LoginRequest): RequestOptionsFactory<LoginResponse>;
5
+ export declare function proceedToNextState(payload: ProceedToNextStateRequest): RequestOptionsFactory<LoginResponse>;
@@ -0,0 +1,146 @@
1
+ import { serializer } from '@wix/metro-runtime/ambassador';
2
+ import { resolveUrl } from '@wix/metro-runtime';
3
+ const _customField = { value: '_customValue' };
4
+ const _customValue = {
5
+ numValue: 'DOUBLE',
6
+ dateValue: 'google.protobuf.Timestamp',
7
+ listValue: '_listValue',
8
+ mapValue: '_mapValue',
9
+ };
10
+ const _identity = {
11
+ createdDate: 'google.protobuf.Timestamp',
12
+ updatedDate: 'google.protobuf.Timestamp',
13
+ identityProfile: '_identityProfile',
14
+ };
15
+ const _identityProfile = { customFields: '_customField' };
16
+ const _listValue = { value: '_customValue' };
17
+ const _loginRequest = {};
18
+ const _loginResponse = {
19
+ identity: '_identity',
20
+ additionalData: 'Map#_customValue',
21
+ };
22
+ const _mapValue = { value: 'Map#_customValue' };
23
+ const _proceedToNextStateRequest = {};
24
+ const _registerRequest = { identity: '_identity' };
25
+ function resolveWixIamAuthenticationV1AuthenticationServiceUrl(opts) {
26
+ const domainToMappings = {
27
+ _: [
28
+ {
29
+ srcPath: '/_api/iam/authentication',
30
+ destPath: '',
31
+ },
32
+ ],
33
+ 'manage._base_domain_': [
34
+ {
35
+ srcPath: '/_api/authentication',
36
+ destPath: '',
37
+ },
38
+ ],
39
+ 'users._base_domain_': [
40
+ {
41
+ srcPath: '/authentication',
42
+ destPath: '',
43
+ },
44
+ {
45
+ srcPath: '/iam/wix/google',
46
+ destPath: '/v1/sso/callback/root/0e6a50f5-b523-4e29-990d-f37fa2ffdd69',
47
+ },
48
+ ],
49
+ 'dev._base_domain_': [
50
+ {
51
+ srcPath: '/_api/iam/authentication',
52
+ destPath: '',
53
+ },
54
+ ],
55
+ };
56
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
57
+ }
58
+ export function register(payload) {
59
+ const { toJSON: toReq, fromJSON: fromReq } = serializer(_registerRequest, {
60
+ _customField,
61
+ _customValue,
62
+ _identity,
63
+ _identityProfile,
64
+ _listValue,
65
+ _mapValue,
66
+ });
67
+ const { fromJSON: fromRes } = serializer(_loginResponse, {
68
+ _customField,
69
+ _customValue,
70
+ _identity,
71
+ _identityProfile,
72
+ _listValue,
73
+ _mapValue,
74
+ });
75
+ function __register({ host }) {
76
+ const serializedData = toReq(payload);
77
+ const metadata = {
78
+ method: 'POST',
79
+ url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({
80
+ protoPath: '/v1/register',
81
+ data: serializedData,
82
+ host,
83
+ }),
84
+ data: serializedData,
85
+ transformResponse: fromRes,
86
+ };
87
+ return metadata;
88
+ }
89
+ __register.fromReq = fromReq;
90
+ return __register;
91
+ }
92
+ export function login(payload) {
93
+ const { toJSON: toReq, fromJSON: fromReq } = serializer(_loginRequest, {});
94
+ const { fromJSON: fromRes } = serializer(_loginResponse, {
95
+ _customField,
96
+ _customValue,
97
+ _identity,
98
+ _identityProfile,
99
+ _listValue,
100
+ _mapValue,
101
+ });
102
+ function __login({ host }) {
103
+ const serializedData = toReq(payload);
104
+ const metadata = {
105
+ method: 'POST',
106
+ url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({
107
+ protoPath: '/v1/login',
108
+ data: serializedData,
109
+ host,
110
+ }),
111
+ data: serializedData,
112
+ transformResponse: fromRes,
113
+ };
114
+ return metadata;
115
+ }
116
+ __login.fromReq = fromReq;
117
+ return __login;
118
+ }
119
+ export function proceedToNextState(payload) {
120
+ const { toJSON: toReq, fromJSON: fromReq } = serializer(_proceedToNextStateRequest, {});
121
+ const { fromJSON: fromRes } = serializer(_loginResponse, {
122
+ _customField,
123
+ _customValue,
124
+ _identity,
125
+ _identityProfile,
126
+ _listValue,
127
+ _mapValue,
128
+ });
129
+ function __proceedToNextState({ host }) {
130
+ const serializedData = toReq(payload);
131
+ const metadata = {
132
+ method: 'POST',
133
+ url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({
134
+ protoPath: '/v1/state/proceed',
135
+ data: serializedData,
136
+ host,
137
+ }),
138
+ data: serializedData,
139
+ transformResponse: fromRes,
140
+ };
141
+ return metadata;
142
+ }
143
+ __proceedToNextState.fromReq = fromReq;
144
+ return __proceedToNextState;
145
+ }
146
+ //# sourceMappingURL=iam-authentication-v1-authentication.http.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"iam-authentication-v1-authentication.http.js","sourceRoot":"","sources":["../../../src/iam-authentication-v1-authentication.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAUhD,MAAM,YAAY,GAAG,EAAE,KAAK,EAAE,cAAc,EAAE,CAAC;AAC/C,MAAM,YAAY,GAAG;IACnB,QAAQ,EAAE,QAAQ;IAClB,SAAS,EAAE,2BAA2B;IACtC,SAAS,EAAE,YAAY;IACvB,QAAQ,EAAE,WAAW;CACtB,CAAC;AACF,MAAM,SAAS,GAAG;IAChB,WAAW,EAAE,2BAA2B;IACxC,WAAW,EAAE,2BAA2B;IACxC,eAAe,EAAE,kBAAkB;CACpC,CAAC;AACF,MAAM,gBAAgB,GAAG,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC;AAC1D,MAAM,UAAU,GAAG,EAAE,KAAK,EAAE,cAAc,EAAE,CAAC;AAC7C,MAAM,aAAa,GAAG,EAAE,CAAC;AACzB,MAAM,cAAc,GAAG;IACrB,QAAQ,EAAE,WAAW;IACrB,cAAc,EAAE,kBAAkB;CACnC,CAAC;AACF,MAAM,SAAS,GAAG,EAAE,KAAK,EAAE,kBAAkB,EAAE,CAA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O,EAAE,GAAG,UAAU,CAAC,cAAc,EAAE;QACvD,YAAY;QACZ,YAAY;QACZ,SAAS;QACT,gBAAgB;QAChB,UAAU;QACV,SAAS;KACV,CAAC,CAAC;IAEH,SAAS,oBAAoB,CAAC,EAAE,IAAI,EAAO;QACzC,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,MAAM,QAAQ,GAAG;YACf,MAAM,EAAE,MAAa;YACrB,GAAG,EAAE,qDAAqD,CAAC;gBACzD,SAAS,EAAE,mBAAmB;gBAC9B,IAAI,EAAE,cAAc;gBACpB,IAAI;aACL,CAAC;YACF,IAAI,EAAE,cAAc;YACpB,iBAAiB,EAAE,OAAO;SAC3B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,oBAAoB,CAAC,OAAO,GAAG,OAAO,CAAC;IAEvC,OAAO,oBAAoB,CAAC;AAC9B,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { HttpClient } from '@wix/sdk-types';
2
+ import { Identity, Identifier, LoginOptions, ProceedToNextStateOptions, RegisterOptions } from './iam-authentication-v1-authentication.universal';
3
+ export declare function register(httpClient: HttpClient): (identity: Identity, options?: RegisterOptions | undefined) => Promise<import("./iam-authentication-v1-authentication.universal").LoginResponse>;
4
+ export declare function login(httpClient: HttpClient): (identifier: Identifier, options?: LoginOptions | undefined) => Promise<import("./iam-authentication-v1-authentication.universal").LoginResponse>;
5
+ export declare function proceedToNextState(httpClient: HttpClient): (options?: ProceedToNextStateOptions | undefined) => Promise<import("./iam-authentication-v1-authentication.universal").LoginResponse>;
6
+ export { Status, PrivacyStatus, StateStatus, TenantType, } from './iam-authentication-v1-authentication.universal';
7
+ export { Authentication, RegisterRequest, Identity, Identifier, IdentifierValueOneOf, Connection, ConnectionTypeOneOf, IdpConnection, AuthenticatorConnection, IdentityProfile, CustomField, CustomValue, CustomValueValueOneOf, ListValue, MapValue, Metadata, CaptchaToken, CaptchaTokenTokenOneOf, LoginResponse, State, LoginRequest, SuccessfulLoginEvent, LoginWithIdpConnectionRequest, RawHttpResponse, HeadersEntry, RawHttpRequest, PathParametersEntry, QueryParametersEntry, ProceedToNextStateRequest, RegisterOptions, LoginOptions, ProceedToNextStateOptions, } from './iam-authentication-v1-authentication.universal';
@@ -0,0 +1,18 @@
1
+ import { register as universalRegister, login as universalLogin, proceedToNextState as universalProceedToNextState, } from './iam-authentication-v1-authentication.universal';
2
+ export function register(httpClient) {
3
+ return (identity, options) => universalRegister(identity, options,
4
+ // @ts-ignore
5
+ { httpClient });
6
+ }
7
+ export function login(httpClient) {
8
+ return (identifier, options) => universalLogin(identifier, options,
9
+ // @ts-ignore
10
+ { httpClient });
11
+ }
12
+ export function proceedToNextState(httpClient) {
13
+ return (options) => universalProceedToNextState(options,
14
+ // @ts-ignore
15
+ { httpClient });
16
+ }
17
+ export { Status, PrivacyStatus, StateStatus, TenantType, } from './iam-authentication-v1-authentication.universal';
18
+ //# sourceMappingURL=iam-authentication-v1-authentication.public.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"iam-authentication-v1-authentication.public.js","sourceRoot":"","sources":["../../../src/iam-authentication-v1-authentication.public.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,IAAI,iBAAiB,EAC7B,KAAK,IAAI,cAAc,EACvB,kBAAkB,IAAI,2BAA2B,GAMlD,MAAM,kDAAkD,CAAC;AAE1D,MAAM,UAAU,QAAQ,CAAC,UAAsB;IAC7C,OAAO,CAAC,QAAkB,EAAE,OAAyB,EAAE,EAAE,CACvD,iBAAiB,CACf,QAAQ,EACR,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,KAAK,CAAC,UAAsB;IAC1C,OAAO,CAAC,UAAsB,EAAE,OAAsB,EAAE,EAAE,CACxD,cAAc,CACZ,UAAU,EACV,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,UAAsB;IACvD,OAAO,CAAC,OAAmC,EAAE,EAAE,CAC7C,2BAA2B,CACzB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,OAAO,EACL,MAAM,EACN,aAAa,EACb,WAAW,EACX,UAAU,GACX,MAAM,kDAAkD,CAAC"}