@wix/auto_sdk_identity_oauth 1.0.52 → 1.0.54

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 (39) hide show
  1. package/build/cjs/index.js.map +1 -1
  2. package/build/cjs/index.typings.d.ts +2 -0
  3. package/build/cjs/index.typings.js.map +1 -1
  4. package/build/cjs/meta.d.ts +2 -0
  5. package/build/cjs/meta.js.map +1 -1
  6. package/build/cjs/schemas.d.ts +1 -0
  7. package/build/cjs/schemas.js +80 -55
  8. package/build/cjs/schemas.js.map +1 -1
  9. package/build/es/index.mjs.map +1 -1
  10. package/build/es/index.typings.d.mts +2 -0
  11. package/build/es/index.typings.mjs.map +1 -1
  12. package/build/es/meta.d.mts +2 -0
  13. package/build/es/meta.mjs.map +1 -1
  14. package/build/es/schemas.d.mts +1 -0
  15. package/build/es/schemas.mjs +80 -55
  16. package/build/es/schemas.mjs.map +1 -1
  17. package/build/internal/cjs/index.typings.d.ts +2 -0
  18. package/build/internal/cjs/meta.d.ts +2 -0
  19. package/build/internal/cjs/schemas.d.ts +1 -0
  20. package/build/internal/es/index.typings.d.mts +2 -0
  21. package/build/internal/es/meta.d.mts +2 -0
  22. package/build/internal/es/schemas.d.mts +1 -0
  23. package/package.json +3 -3
  24. package/build/internal/cjs/index.js +0 -442
  25. package/build/internal/cjs/index.js.map +0 -1
  26. package/build/internal/cjs/index.typings.js +0 -407
  27. package/build/internal/cjs/index.typings.js.map +0 -1
  28. package/build/internal/cjs/meta.js +0 -353
  29. package/build/internal/cjs/meta.js.map +0 -1
  30. package/build/internal/cjs/schemas.js +0 -133
  31. package/build/internal/cjs/schemas.js.map +0 -1
  32. package/build/internal/es/index.mjs +0 -414
  33. package/build/internal/es/index.mjs.map +0 -1
  34. package/build/internal/es/index.typings.mjs +0 -379
  35. package/build/internal/es/index.typings.mjs.map +0 -1
  36. package/build/internal/es/meta.mjs +0 -322
  37. package/build/internal/es/meta.mjs.map +0 -1
  38. package/build/internal/es/schemas.mjs +0 -89
  39. package/build/internal/es/schemas.mjs.map +0 -1
@@ -1,379 +0,0 @@
1
- // src/identity-oauth-v1-refresh-token-oauth.universal.ts
2
- import { transformError as sdkTransformError } from "@wix/sdk-runtime/transform-error";
3
- import {
4
- renameKeysFromSDKRequestToRESTRequest,
5
- renameKeysFromRESTResponseToSDKResponse
6
- } from "@wix/sdk-runtime/rename-all-nested-keys";
7
-
8
- // src/identity-oauth-v1-refresh-token-oauth.http.ts
9
- import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
10
- import { transformSDKBytesToRESTBytes } from "@wix/sdk-runtime/transformations/bytes";
11
- import { transformRESTBytesToSDKBytes } from "@wix/sdk-runtime/transformations/bytes";
12
- import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
13
- import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
14
- function resolveWixIdentityOauth2V1Oauth2NgUrl(opts) {
15
- const domainToMappings = {
16
- "manage._base_domain_": [
17
- {
18
- srcPath: "/oauth2",
19
- destPath: "/v1/oauth"
20
- }
21
- ],
22
- "www.wixapis.com": [
23
- {
24
- srcPath: "/oauth2",
25
- destPath: "/v1/oauth"
26
- },
27
- {
28
- srcPath: "/oauth2/token_info",
29
- destPath: "/v1/token_info"
30
- }
31
- ],
32
- "users._base_domain_": [
33
- {
34
- srcPath: "/v1/oauth/device/verify",
35
- destPath: "/v1/oauth/device/verify"
36
- },
37
- {
38
- srcPath: "/v1/oauth/manage/user-code",
39
- destPath: "/v1/oauth/manage/user-code"
40
- },
41
- {
42
- srcPath: "/v2/oauth/device/verify",
43
- destPath: "/v2/oauth/device/verify"
44
- },
45
- {
46
- srcPath: "/v1/oauth/authorize",
47
- destPath: "/v1/oauth/authorize"
48
- },
49
- {
50
- srcPath: "/oauth/device/authorize",
51
- destPath: "/v1/oauth/device/authorize"
52
- },
53
- {
54
- srcPath: "/oauth/device/authorization",
55
- destPath: "/v1/oauth/device/authorization"
56
- },
57
- {
58
- srcPath: "/oauth/token",
59
- destPath: "/v1/oauth/token"
60
- },
61
- {
62
- srcPath: "/oauth/jwks",
63
- destPath: "/v1/oauth/jwks"
64
- },
65
- {
66
- srcPath: "/oauth/user-info",
67
- destPath: "/v1/oauth/user-info"
68
- }
69
- ],
70
- _: [
71
- {
72
- srcPath: "/_api/oauth2",
73
- destPath: "/v1/oauth"
74
- }
75
- ],
76
- "platform.rise.ai": [
77
- {
78
- srcPath: "/oauth2",
79
- destPath: "/v1/oauth"
80
- }
81
- ],
82
- "api._api_base_domain_": [
83
- {
84
- srcPath: "/oauth2-ng",
85
- destPath: ""
86
- }
87
- ],
88
- "apps._base_domain_": [
89
- {
90
- srcPath: "/oauth2/callback",
91
- destPath: "/oauth2/callback"
92
- },
93
- {
94
- srcPath: "/oauth2",
95
- destPath: "/v1/oauth"
96
- },
97
- {
98
- srcPath: "/oauth2/user-authorized",
99
- destPath: "/oauth2/user-authorized"
100
- }
101
- ],
102
- "editor._base_domain_": [
103
- {
104
- srcPath: "/oauth2/callback",
105
- destPath: "/oauth2/callback"
106
- },
107
- {
108
- srcPath: "/oauth2/user-authorized",
109
- destPath: "/oauth2/user-authorized"
110
- }
111
- ],
112
- "blocks._base_domain_": [
113
- {
114
- srcPath: "/oauth2/callback",
115
- destPath: "/oauth2/callback"
116
- },
117
- {
118
- srcPath: "/oauth2/user-authorized",
119
- destPath: "/oauth2/user-authorized"
120
- }
121
- ],
122
- "create.editorx": [
123
- {
124
- srcPath: "/oauth2/callback",
125
- destPath: "/oauth2/callback"
126
- },
127
- {
128
- srcPath: "/oauth2/user-authorized",
129
- destPath: "/oauth2/user-authorized"
130
- }
131
- ]
132
- };
133
- return resolveUrl(Object.assign(opts, { domainToMappings }));
134
- }
135
- var PACKAGE_NAME = "@wix/auto_sdk_identity_oauth";
136
- function token(payload) {
137
- function __token({ host }) {
138
- const serializedData = transformPaths(payload, [
139
- { transformFn: transformSDKBytesToRESTBytes, paths: [{ path: "body" }] }
140
- ]);
141
- const metadata = {
142
- entityFqdn: "wix.identity.oauth.v1.refresh_token",
143
- method: "POST",
144
- methodFqn: "wix.identity.oauth2.v1.Oauth2Ng.Token",
145
- packageName: PACKAGE_NAME,
146
- migrationOptions: {
147
- optInTransformResponse: true
148
- },
149
- url: resolveWixIdentityOauth2V1Oauth2NgUrl({
150
- protoPath: "/v1/oauth/token",
151
- data: serializedData,
152
- host
153
- }),
154
- data: serializedData,
155
- transformResponse: (payload2) => transformPaths(payload2, [
156
- {
157
- transformFn: transformRESTBytesToSDKBytes,
158
- paths: [{ path: "body" }]
159
- }
160
- ])
161
- };
162
- return metadata;
163
- }
164
- return __token;
165
- }
166
- function jwks(payload) {
167
- function __jwks({ host }) {
168
- const metadata = {
169
- entityFqdn: "wix.identity.oauth.v1.refresh_token",
170
- method: "GET",
171
- methodFqn: "wix.identity.oauth2.v1.Oauth2Ng.Jwks",
172
- packageName: PACKAGE_NAME,
173
- migrationOptions: {
174
- optInTransformResponse: true
175
- },
176
- url: resolveWixIdentityOauth2V1Oauth2NgUrl({
177
- protoPath: "/v1/oauth/jwks",
178
- data: payload,
179
- host
180
- }),
181
- params: toURLSearchParams(payload),
182
- transformResponse: (payload2) => transformPaths(payload2, [
183
- {
184
- transformFn: transformRESTBytesToSDKBytes,
185
- paths: [{ path: "body" }]
186
- }
187
- ])
188
- };
189
- return metadata;
190
- }
191
- return __jwks;
192
- }
193
- function tokenInfo(payload) {
194
- function __tokenInfo({ host }) {
195
- const serializedData = transformPaths(payload, [
196
- { transformFn: transformSDKBytesToRESTBytes, paths: [{ path: "body" }] }
197
- ]);
198
- const metadata = {
199
- entityFqdn: "wix.identity.oauth.v1.refresh_token",
200
- method: "POST",
201
- methodFqn: "wix.identity.oauth2.v1.Oauth2Ng.TokenInfo",
202
- packageName: PACKAGE_NAME,
203
- migrationOptions: {
204
- optInTransformResponse: true
205
- },
206
- url: resolveWixIdentityOauth2V1Oauth2NgUrl({
207
- protoPath: "/v1/oauth/token-info",
208
- data: serializedData,
209
- host
210
- }),
211
- data: serializedData
212
- };
213
- return metadata;
214
- }
215
- return __tokenInfo;
216
- }
217
- function userInfo(payload) {
218
- function __userInfo({ host }) {
219
- const metadata = {
220
- entityFqdn: "wix.identity.oauth.v1.refresh_token",
221
- method: "GET",
222
- methodFqn: "wix.identity.oauth2.v1.Oauth2Ng.UserInfo",
223
- packageName: PACKAGE_NAME,
224
- migrationOptions: {
225
- optInTransformResponse: true
226
- },
227
- url: resolveWixIdentityOauth2V1Oauth2NgUrl({
228
- protoPath: "/v1/oauth/user-info",
229
- data: payload,
230
- host
231
- }),
232
- params: toURLSearchParams(payload)
233
- };
234
- return metadata;
235
- }
236
- return __userInfo;
237
- }
238
-
239
- // src/identity-oauth-v1-refresh-token-oauth.universal.ts
240
- var SubjectType = /* @__PURE__ */ ((SubjectType2) => {
241
- SubjectType2["UNKNOWN"] = "UNKNOWN";
242
- SubjectType2["USER"] = "USER";
243
- SubjectType2["VISITOR"] = "VISITOR";
244
- SubjectType2["MEMBER"] = "MEMBER";
245
- SubjectType2["APP"] = "APP";
246
- return SubjectType2;
247
- })(SubjectType || {});
248
- async function token2(options) {
249
- const { httpClient, sideEffects } = arguments[1];
250
- const payload = renameKeysFromSDKRequestToRESTRequest({
251
- body: options?.body,
252
- pathParams: options?.pathParams,
253
- queryParams: options?.queryParams,
254
- headers: options?.headers,
255
- method: options?.method,
256
- rawPath: options?.rawPath,
257
- rawQuery: options?.rawQuery
258
- });
259
- const reqOpts = token(payload);
260
- sideEffects?.onSiteCall?.();
261
- try {
262
- const result = await httpClient.request(reqOpts);
263
- sideEffects?.onSuccess?.(result);
264
- return renameKeysFromRESTResponseToSDKResponse(result.data);
265
- } catch (err) {
266
- const transformedError = sdkTransformError(
267
- err,
268
- {
269
- spreadPathsToArguments: {},
270
- explicitPathsToArguments: {
271
- body: "$[0].body",
272
- pathParams: "$[0].pathParams",
273
- queryParams: "$[0].queryParams",
274
- headers: "$[0].headers",
275
- method: "$[0].method",
276
- rawPath: "$[0].rawPath",
277
- rawQuery: "$[0].rawQuery"
278
- },
279
- singleArgumentUnchanged: false
280
- },
281
- ["options"]
282
- );
283
- sideEffects?.onError?.(err);
284
- throw transformedError;
285
- }
286
- }
287
- async function jwks2() {
288
- const { httpClient, sideEffects } = arguments[0];
289
- const payload = renameKeysFromSDKRequestToRESTRequest({});
290
- const reqOpts = jwks(payload);
291
- sideEffects?.onSiteCall?.();
292
- try {
293
- const result = await httpClient.request(reqOpts);
294
- sideEffects?.onSuccess?.(result);
295
- return renameKeysFromRESTResponseToSDKResponse(result.data);
296
- } catch (err) {
297
- const transformedError = sdkTransformError(
298
- err,
299
- {
300
- spreadPathsToArguments: {},
301
- explicitPathsToArguments: {},
302
- singleArgumentUnchanged: false
303
- },
304
- []
305
- );
306
- sideEffects?.onError?.(err);
307
- throw transformedError;
308
- }
309
- }
310
- async function tokenInfo2(options) {
311
- const { httpClient, sideEffects } = arguments[1];
312
- const payload = renameKeysFromSDKRequestToRESTRequest({
313
- body: options?.body,
314
- pathParams: options?.pathParams,
315
- queryParams: options?.queryParams,
316
- headers: options?.headers,
317
- method: options?.method,
318
- rawPath: options?.rawPath,
319
- rawQuery: options?.rawQuery
320
- });
321
- const reqOpts = tokenInfo(payload);
322
- sideEffects?.onSiteCall?.();
323
- try {
324
- const result = await httpClient.request(reqOpts);
325
- sideEffects?.onSuccess?.(result);
326
- return renameKeysFromRESTResponseToSDKResponse(result.data);
327
- } catch (err) {
328
- const transformedError = sdkTransformError(
329
- err,
330
- {
331
- spreadPathsToArguments: {},
332
- explicitPathsToArguments: {
333
- body: "$[0].body",
334
- pathParams: "$[0].pathParams",
335
- queryParams: "$[0].queryParams",
336
- headers: "$[0].headers",
337
- method: "$[0].method",
338
- rawPath: "$[0].rawPath",
339
- rawQuery: "$[0].rawQuery"
340
- },
341
- singleArgumentUnchanged: false
342
- },
343
- ["options"]
344
- );
345
- sideEffects?.onError?.(err);
346
- throw transformedError;
347
- }
348
- }
349
- async function userInfo2() {
350
- const { httpClient, sideEffects } = arguments[0];
351
- const payload = renameKeysFromSDKRequestToRESTRequest({});
352
- const reqOpts = userInfo(payload);
353
- sideEffects?.onSiteCall?.();
354
- try {
355
- const result = await httpClient.request(reqOpts);
356
- sideEffects?.onSuccess?.(result);
357
- return renameKeysFromRESTResponseToSDKResponse(result.data);
358
- } catch (err) {
359
- const transformedError = sdkTransformError(
360
- err,
361
- {
362
- spreadPathsToArguments: {},
363
- explicitPathsToArguments: {},
364
- singleArgumentUnchanged: false
365
- },
366
- []
367
- );
368
- sideEffects?.onError?.(err);
369
- throw transformedError;
370
- }
371
- }
372
- export {
373
- SubjectType,
374
- jwks2 as jwks,
375
- token2 as token,
376
- tokenInfo2 as tokenInfo,
377
- userInfo2 as userInfo
378
- };
379
- //# sourceMappingURL=index.typings.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/identity-oauth-v1-refresh-token-oauth.universal.ts","../../../src/identity-oauth-v1-refresh-token-oauth.http.ts"],"sourcesContent":["import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixIdentityOauthV1RefreshToken from './identity-oauth-v1-refresh-token-oauth.http.js';\n\nexport interface RefreshToken {\n token?: string;\n}\n\n/**\n * AuthorizeRequest is sent by the client to the authorization server to initiate\n * the authorization process.\n */\nexport interface AuthorizeRequest {\n /**\n * ID of the Wix OAuth app requesting authorization.\n * @format GUID\n */\n clientId?: string;\n /**\n * Desired authorization [grant type](https://auth0.com/docs/authenticate/protocols/oauth#grant-types).\n *\n * Supported values:\n * + `code`: The endpoint returns an authorization code that can be used to obtain an access token.\n * @minLength 1\n */\n responseType?: string;\n /**\n * URI to redirect the browser to after authentication and authorization. The browser is redirected to this URI whether the authentication and authorization process is successful or not.\n * @minLength 1\n */\n redirectUri?: string | null;\n /**\n * Desired scope of access. If this field is left empty, only an access token is granted.\n * To received a refresh token, pass `offline_access` as the value of this field.\n */\n scope?: string | null;\n /**\n * A value used to confirm the state of an application before and after it makes an authorization\n * request. If a value for this field is set in the request, it's added to the `redirectUri` when the browser\n * is redirected there.\n * Learn more about [using the state parameter](https://auth0.com/docs/secure/attack-protection/state-parameters).\n * @minLength 1\n */\n state?: string;\n /**\n * esired response format.\n *\n * Supported values:\n * + `query`: The response parameters are encoded as query string parameters and added to the `redirectUri` when redirecting.\n * + `fragment`: The response parameters are encoded as URI fragment parameters and added to the `redirectUri` when redirecting.\n * + `web_message`: The response parameters are encoded as a JSON object and added to the body of a [web message response](https://datatracker.ietf.org/doc/html/draft-sakimura-oauth-wmrm-00).\n *\n * Default value: `query`\n */\n responseMode?: string | null;\n /**\n * Code challenge to use for PKCE verification.\n * This field is only used if `responseType` is set to `code`.\n */\n codeChallenge?: string | null;\n /**\n * Code challenge method to use for PKCE verification.\n * This field is only used if `responseType` is set to `code`.\n *\n * Supported values:\n * + `S256`: The code challenge is transformed using SHA-256 encyption.\n * + `S512`: The code challenge is transformed using SHA-512 encyption.\n */\n codeChallengeMethod?: string | null;\n /**\n * Token returned by a successful [login](https://dev.wix.com/docs/api-reference/business-management/headless/authentication/login-v-2) or [register](https://dev.wix.com/docs/api-reference/business-management/headless/authentication/register-v-2) call that identifies the authenticated member.\n *\n * In the default SDK flow, session context is passed through a hidden iframe automatically. When using a [full-page redirect](https://dev.wix.com/docs/go-headless/develop-your-project/self-managed-headless/authentication/members/custom-login-page/custom-login/custom-login-using-the-js-sdk#use-a-full-page-redirect-desktop-and-mobile-browsers) instead, you must pass this field explicitly because there is no iframe to carry the session context.\n */\n sessionToken?: string | null;\n /**\n * Optional fields for errors\n * A short error code that describes the type of error that occurred (e.g. \"invalid_request\")\n * @internal\n */\n error?: string | null;\n /**\n * A human-readable description of the error that occurred\n * @internal\n */\n errorDescription?: string | null;\n /**\n * DEPRECATED: no longer read. The sign-in URL is resolved from the client's OAuthClientConfiguration\n * component (sign_in_url), falling back to the default Wix sign-in page.\n * @format SECURE_WEB_URL\n * @deprecated\n */\n signInUrl?: string | null;\n /** Indicates whether the user has consented to the requested scopes */\n userConsented?: boolean | null;\n /** Indicates whether login is optional. If true, will not redirect to the sign_in_url if user is not logged in. */\n optionalLogin?: boolean | null;\n /**\n * The site id the authorization is requested for.\n * @format GUID\n */\n metaSiteId?: string | null;\n /**\n * ID of the IAM IdP connection to authenticate with when no member session exists.\n * When set, the sign-in redirect initiates an OIDC login against this IdP connection\n * (IAM's `/sso/login` endpoint) instead of the default Wix login page.\n * @format GUID\n */\n idp?: string | null;\n /**\n * OIDC nonce, bound to the authorization request and echoed back in the id_token.\n * @maxLength 512\n */\n nonce?: string | null;\n /** RFC 9470 / OIDC acr_values: space-separated required ACRs (OR, in preference order) for step-up. */\n acrValues?: string | null;\n /** RFC 9470 / OIDC max_age: max seconds since last auth (0 forces re-auth). */\n maxAge?: string | null;\n}\n\nexport interface RawHttpResponse {\n body?: Uint8Array;\n statusCode?: number | null;\n headers?: HeadersEntry[];\n}\n\nexport interface HeadersEntry {\n key?: string;\n value?: string;\n}\n\nexport interface RawHttpRequest {\n body?: Uint8Array;\n pathParams?: PathParametersEntry[];\n queryParams?: QueryParametersEntry[];\n headers?: HeadersEntry[];\n method?: string;\n rawPath?: string;\n rawQuery?: string;\n}\n\nexport interface PathParametersEntry {\n key?: string;\n value?: string;\n}\n\nexport interface QueryParametersEntry {\n key?: string;\n value?: string;\n}\n\n/** Request for the Jwks endpoint. Takes no parameters. */\nexport interface JwksRequest {}\n\nexport interface DeviceCodeRequest {\n /** The ID of the application that asks for authorization. */\n clientId?: string;\n /**\n * scope is a space-delimited string that specifies the requested scope of the\n * access request.\n */\n scope?: string | null;\n}\n\nexport interface DeviceCodeResponse {\n /** 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. */\n deviceCode?: string;\n /** contains the code that should be input at the verification_uri to authorize the device. */\n userCode?: string;\n /** contains the URL the user should visit to authorize the device. */\n verificationUri?: string;\n /** indicates the lifetime (in seconds) of the device_code and user_code. */\n expiresIn?: number;\n /** indicates the interval (in seconds) at which the app should poll the token URL to request a token. clients MUST use 5 as the default */\n interval?: number | null;\n}\n\nexport interface DeviceAuthorizeRequest {\n /** The ID of the application that asks for authorization. */\n clientId?: string;\n /** scope is a space-delimited string that specifies the requested scope of the access request. */\n scope?: string | null;\n /**\n * OIDC nonce, bound to the device authorization and echoed back in the id_token at /token.\n * @maxLength 512\n */\n nonce?: string | null;\n}\n\nexport interface DeviceAuthorizeResponse {\n /** the unique code for the device, used to poll the token endpoint. */\n deviceCode?: string;\n /** the code the user enters at the verification_uri to authorize the device. */\n userCode?: string;\n /** the URL the user should visit to authorize the device. */\n verificationUri?: string;\n /** the verification_uri with the user_code embedded as a query param, ready to encode into a QR code. */\n verificationUriComplete?: string;\n /** lifetime (in seconds) of the device_code and user_code. */\n expiresIn?: number;\n /** interval (in seconds) at which the client should poll the token endpoint. clients MUST use 5 as the default. */\n interval?: number | null;\n}\n\nexport interface DeviceVerifyRequest {\n /** User code representing a currently authorizing device. */\n userCode?: string;\n}\n\nexport interface DeviceVerifyResponse {}\n\nexport interface DeviceVerifyV2Request {\n /**\n * User code representing a currently authorizing device.\n * @minLength 8\n * @maxLength 8\n */\n userCode?: string;\n}\n\nexport interface DeviceVerifyV2Response {}\n\nexport interface DeviceAuthorizationInfoRequest {\n /**\n * User code representing a currently authorizing device.\n * @minLength 8\n * @maxLength 8\n */\n userCode?: string;\n}\n\nexport interface DeviceAuthorizationInfoResponse {\n /** The ID of the application the device is authorizing into. */\n clientId?: string;\n /** Canonical browser name of the initiating browser (e.g. \"chrome\"). */\n browser?: string | null;\n /** Canonical OS of the initiating browser (e.g. \"windows\"). */\n os?: string | null;\n /** Canonical device class of the initiating browser (e.g. \"desktop\"). */\n deviceClass?: string | null;\n /** IP address of the initiating browser. */\n browserIp?: string | null;\n /** Coarse geo-location (country, optional region) derived from the browser IP, e.g. \"IL\" or \"US-NY\". */\n geo?: string | null;\n}\n\nexport interface InvalidateUserCodeRequest {\n /** user code to invalidate. Only the authorizing identity is able to invalidate it. */\n userCode?: string;\n}\n\nexport interface InvalidateUserCodeResponse {}\n\nexport interface RevokeRefreshTokenRequest {\n /** The refresh token itself. Anyone with the token itself is able to revoke it. */\n token?: string;\n /** The client id that issued the refresh token. */\n clientId?: string | null;\n}\n\nexport interface RevokeRefreshTokenResponse {}\n\nexport interface TokenInfoResponse {\n active?: boolean;\n /** subject type. */\n subjectType?: SubjectTypeWithLiterals;\n /** subject id */\n subjectId?: string;\n /** Expiration time of the token */\n exp?: string | null;\n /** Issued time of the token */\n iat?: string | null;\n /** Client id */\n clientId?: string;\n /** Account id */\n accountId?: string | null;\n /** Site id */\n siteId?: string | null;\n /** Instance Id */\n instanceId?: string | null;\n /**\n * Vendor Product Id\n * @maxLength 100\n */\n vendorProductId?: string | null;\n}\n\nexport enum SubjectType {\n /** unknown subject type */\n UNKNOWN = 'UNKNOWN',\n /** user subject type */\n USER = 'USER',\n /** visitor subject type */\n VISITOR = 'VISITOR',\n /** member subject type */\n MEMBER = 'MEMBER',\n /** app subject type */\n APP = 'APP',\n}\n\n/** @enumType */\nexport type SubjectTypeWithLiterals =\n | SubjectType\n | 'UNKNOWN'\n | 'USER'\n | 'VISITOR'\n | 'MEMBER'\n | 'APP';\n\nexport interface Empty {}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface UserDeletedEvent {\n /**\n * User ID from the deletion event.\n * @format GUID\n */\n userId?: string;\n}\n\nexport interface UserBlockedEvent {\n /**\n * User ID from the deletion event.\n * @format GUID\n */\n userId?: string;\n}\n\nexport interface UserInfoRequest {}\n\n/** UserInfo endpoint response for OpenID Connect */\nexport interface UserInfoResponse {\n /**\n * Subject identifier — unique identifier for the user (OIDC standard claim).\n * @format GUID\n */\n sub?: string;\n /**\n * The user's given name.\n * @maxLength 20\n */\n givenName?: string | null;\n /**\n * The user's family name.\n * @maxLength 20\n */\n familyName?: string | null;\n /**\n * The user's email address.\n * @format EMAIL\n */\n email?: string | null;\n /** Indicates whether the user's email address has been verified. */\n emailVerified?: boolean | null;\n /**\n * The URL of the user's profile picture.\n * @format WEB_URL\n */\n picture?: string | null;\n /**\n * The user's preferred language, if available.\n * @format LANGUAGE\n */\n language?: string | null;\n}\n\n/**\n * Creates an access token.\n *\n *\n * The endpoint accepts raw HTTP requests. You must pass the request's body\n * parameters formatted as bytes in the raw HTTP request's `body` field,\n * following this template:\n * `{\"grantType\": \"client_credentials\", \"client_id\": \"<APP_ID>\", \"client_secret\": \"<APP_SECRET_KEY>\", \"instance_id\": \"<INSTANCE_ID>\"}`.\n *\n * When the call succeeds, Wix returns `{\"statusCode\": 200}` and the created access\n * token in the `body` field of the raw HTTP response.\n *\n * In case the call fails, Wix returns the relevant `4XX` error code in the raw\n * HTTP response's `statusCode` field and details\n * about the error in `body`. Error details follow the\n * [conventions of the Internet Engineering Task Force (IETF)](https://datatracker.ietf.org/doc/html/rfc6749#appendix-A.7).\n * @public\n * @fqn wix.identity.oauth2.v1.Oauth2Ng.Token\n */\nexport async function token(\n options?: TokenOptions\n): Promise<\n NonNullablePaths<\n RawHttpResponse,\n `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n body: options?.body,\n pathParams: options?.pathParams,\n queryParams: options?.queryParams,\n headers: options?.headers,\n method: options?.method,\n rawPath: options?.rawPath,\n rawQuery: options?.rawQuery,\n });\n\n const reqOpts = ambassadorWixIdentityOauthV1RefreshToken.token(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n body: '$[0].body',\n pathParams: '$[0].pathParams',\n queryParams: '$[0].queryParams',\n headers: '$[0].headers',\n method: '$[0].method',\n rawPath: '$[0].rawPath',\n rawQuery: '$[0].rawQuery',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface TokenOptions {\n body?: Uint8Array;\n pathParams?: PathParametersEntry[];\n queryParams?: QueryParametersEntry[];\n headers?: HeadersEntry[];\n method?: string;\n rawPath?: string;\n rawQuery?: string;\n}\n\n/**\n * Returns the JWKS (JSON Web Key Set) with the RSA public key used to verify asymmetrically-signed\n * tokens (e.g. OIDC id_token). Required by external OIDC relying parties.\n * Serves a non-secret public key.\n * @public\n * @documentationMaturity preview\n * @fqn wix.identity.oauth2.v1.Oauth2Ng.Jwks\n */\nexport async function jwks(): Promise<\n NonNullablePaths<\n RawHttpResponse,\n `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({});\n\n const reqOpts = ambassadorWixIdentityOauthV1RefreshToken.jwks(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {},\n singleArgumentUnchanged: false,\n },\n []\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Token Introspection Endpoint.\n * @public\n * @fqn wix.identity.oauth2.v1.Oauth2Ng.TokenInfo\n */\nexport async function tokenInfo(\n options?: TokenInfoOptions\n): Promise<\n NonNullablePaths<\n TokenInfoResponse,\n `active` | `subjectType` | `subjectId` | `clientId`,\n 2\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n body: options?.body,\n pathParams: options?.pathParams,\n queryParams: options?.queryParams,\n headers: options?.headers,\n method: options?.method,\n rawPath: options?.rawPath,\n rawQuery: options?.rawQuery,\n });\n\n const reqOpts = ambassadorWixIdentityOauthV1RefreshToken.tokenInfo(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n body: '$[0].body',\n pathParams: '$[0].pathParams',\n queryParams: '$[0].queryParams',\n headers: '$[0].headers',\n method: '$[0].method',\n rawPath: '$[0].rawPath',\n rawQuery: '$[0].rawQuery',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface TokenInfoOptions {\n body?: Uint8Array;\n pathParams?: PathParametersEntry[];\n queryParams?: QueryParametersEntry[];\n headers?: HeadersEntry[];\n method?: string;\n rawPath?: string;\n rawQuery?: string;\n}\n\n/**\n * OpenID Connect UserInfo endpoint\n * Should be called with user access token obtained in OIDC flow as Authorization header\n * @public\n * @documentationMaturity preview\n * @returns UserInfo endpoint response for OpenID Connect\n * @fqn wix.identity.oauth2.v1.Oauth2Ng.UserInfo\n */\nexport async function userInfo(): Promise<\n NonNullablePaths<UserInfoResponse, `sub`, 2>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({});\n\n const reqOpts = ambassadorWixIdentityOauthV1RefreshToken.userInfo(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {},\n singleArgumentUnchanged: false,\n },\n []\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKBytesToRESTBytes } from '@wix/sdk-runtime/transformations/bytes';\nimport { transformRESTBytesToSDKBytes } from '@wix/sdk-runtime/transformations/bytes';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixIdentityOauth2V1Oauth2NgUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/oauth2',\n destPath: '/v1/oauth',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/oauth2',\n destPath: '/v1/oauth',\n },\n {\n srcPath: '/oauth2/token_info',\n destPath: '/v1/token_info',\n },\n ],\n 'users._base_domain_': [\n {\n srcPath: '/v1/oauth/device/verify',\n destPath: '/v1/oauth/device/verify',\n },\n {\n srcPath: '/v1/oauth/manage/user-code',\n destPath: '/v1/oauth/manage/user-code',\n },\n {\n srcPath: '/v2/oauth/device/verify',\n destPath: '/v2/oauth/device/verify',\n },\n {\n srcPath: '/v1/oauth/authorize',\n destPath: '/v1/oauth/authorize',\n },\n {\n srcPath: '/oauth/device/authorize',\n destPath: '/v1/oauth/device/authorize',\n },\n {\n srcPath: '/oauth/device/authorization',\n destPath: '/v1/oauth/device/authorization',\n },\n {\n srcPath: '/oauth/token',\n destPath: '/v1/oauth/token',\n },\n {\n srcPath: '/oauth/jwks',\n destPath: '/v1/oauth/jwks',\n },\n {\n srcPath: '/oauth/user-info',\n destPath: '/v1/oauth/user-info',\n },\n ],\n _: [\n {\n srcPath: '/_api/oauth2',\n destPath: '/v1/oauth',\n },\n ],\n 'platform.rise.ai': [\n {\n srcPath: '/oauth2',\n destPath: '/v1/oauth',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/oauth2-ng',\n destPath: '',\n },\n ],\n 'apps._base_domain_': [\n {\n srcPath: '/oauth2/callback',\n destPath: '/oauth2/callback',\n },\n {\n srcPath: '/oauth2',\n destPath: '/v1/oauth',\n },\n {\n srcPath: '/oauth2/user-authorized',\n destPath: '/oauth2/user-authorized',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/oauth2/callback',\n destPath: '/oauth2/callback',\n },\n {\n srcPath: '/oauth2/user-authorized',\n destPath: '/oauth2/user-authorized',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/oauth2/callback',\n destPath: '/oauth2/callback',\n },\n {\n srcPath: '/oauth2/user-authorized',\n destPath: '/oauth2/user-authorized',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/oauth2/callback',\n destPath: '/oauth2/callback',\n },\n {\n srcPath: '/oauth2/user-authorized',\n destPath: '/oauth2/user-authorized',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_identity_oauth';\n\n/**\n * Creates an access token.\n *\n *\n * The endpoint accepts raw HTTP requests. You must pass the request's body\n * parameters formatted as bytes in the raw HTTP request's `body` field,\n * following this template:\n * `{\"grantType\": \"client_credentials\", \"client_id\": \"<APP_ID>\", \"client_secret\": \"<APP_SECRET_KEY>\", \"instance_id\": \"<INSTANCE_ID>\"}`.\n *\n * When the call succeeds, Wix returns `{\"statusCode\": 200}` and the created access\n * token in the `body` field of the raw HTTP response.\n *\n * In case the call fails, Wix returns the relevant `4XX` error code in the raw\n * HTTP response's `statusCode` field and details\n * about the error in `body`. Error details follow the\n * [conventions of the Internet Engineering Task Force (IETF)](https://datatracker.ietf.org/doc/html/rfc6749#appendix-A.7).\n */\nexport function token(payload: object): RequestOptionsFactory<any> {\n function __token({ host }: any) {\n const serializedData = transformPaths(payload, [\n { transformFn: transformSDKBytesToRESTBytes, paths: [{ path: 'body' }] },\n ]);\n const metadata = {\n entityFqdn: 'wix.identity.oauth.v1.refresh_token',\n method: 'POST' as any,\n methodFqn: 'wix.identity.oauth2.v1.Oauth2Ng.Token',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixIdentityOauth2V1Oauth2NgUrl({\n protoPath: '/v1/oauth/token',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTBytesToSDKBytes,\n paths: [{ path: 'body' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __token;\n}\n\n/**\n * Returns the JWKS (JSON Web Key Set) with the RSA public key used to verify asymmetrically-signed\n * tokens (e.g. OIDC id_token). Required by external OIDC relying parties.\n * Serves a non-secret public key.\n */\nexport function jwks(payload: object): RequestOptionsFactory<any> {\n function __jwks({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.identity.oauth.v1.refresh_token',\n method: 'GET' as any,\n methodFqn: 'wix.identity.oauth2.v1.Oauth2Ng.Jwks',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixIdentityOauth2V1Oauth2NgUrl({\n protoPath: '/v1/oauth/jwks',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTBytesToSDKBytes,\n paths: [{ path: 'body' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __jwks;\n}\n\n/** Token Introspection Endpoint. */\nexport function tokenInfo(payload: object): RequestOptionsFactory<any> {\n function __tokenInfo({ host }: any) {\n const serializedData = transformPaths(payload, [\n { transformFn: transformSDKBytesToRESTBytes, paths: [{ path: 'body' }] },\n ]);\n const metadata = {\n entityFqdn: 'wix.identity.oauth.v1.refresh_token',\n method: 'POST' as any,\n methodFqn: 'wix.identity.oauth2.v1.Oauth2Ng.TokenInfo',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixIdentityOauth2V1Oauth2NgUrl({\n protoPath: '/v1/oauth/token-info',\n data: serializedData,\n host,\n }),\n data: serializedData,\n };\n\n return metadata;\n }\n\n return __tokenInfo;\n}\n\n/**\n * OpenID Connect UserInfo endpoint\n * Should be called with user access token obtained in OIDC flow as Authorization header\n */\nexport function userInfo(payload: object): RequestOptionsFactory<any> {\n function __userInfo({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.identity.oauth.v1.refresh_token',\n method: 'GET' as any,\n methodFqn: 'wix.identity.oauth2.v1.Oauth2Ng.UserInfo',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixIdentityOauth2V1Oauth2NgUrl({\n protoPath: '/v1/oauth/user-info',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __userInfo;\n}\n"],"mappings":";AAAA,SAAS,kBAAkB,yBAAyB;AACpD;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACJP,SAAS,yBAAyB;AAClC,SAAS,oCAAoC;AAC7C,SAAS,oCAAoC;AAC7C,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,sCACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE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