@wix/auto_sdk_identity_oauth 1.0.10 → 1.0.12

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 (121) hide show
  1. package/build/cjs/{src/identity-oauth-v1-refresh-token-oauth.types.d.ts → identity-oauth-v1-refresh-token-oauth.universal-DIzKUWYi.d.ts} +53 -35
  2. package/build/cjs/index.d.ts +37 -1
  3. package/build/cjs/index.js +256 -15
  4. package/build/cjs/index.js.map +1 -1
  5. package/build/cjs/meta.d.ts +81 -1
  6. package/build/cjs/meta.js +179 -15
  7. package/build/cjs/meta.js.map +1 -1
  8. package/build/{internal/cjs/src/identity-oauth-v1-refresh-token-oauth.types.d.ts → es/identity-oauth-v1-refresh-token-oauth.universal-DIzKUWYi.d.mts} +53 -35
  9. package/build/es/index.d.mts +37 -0
  10. package/build/es/index.mjs +233 -0
  11. package/build/es/index.mjs.map +1 -0
  12. package/build/es/meta.d.mts +81 -0
  13. package/build/es/meta.mjs +154 -0
  14. package/build/es/meta.mjs.map +1 -0
  15. package/build/internal/{es/src/identity-oauth-v1-refresh-token-oauth.types.d.ts → cjs/identity-oauth-v1-refresh-token-oauth.universal-DIzKUWYi.d.ts} +53 -35
  16. package/build/internal/cjs/index.d.ts +37 -1
  17. package/build/internal/cjs/index.js +256 -15
  18. package/build/internal/cjs/index.js.map +1 -1
  19. package/build/internal/cjs/meta.d.ts +81 -1
  20. package/build/internal/cjs/meta.js +179 -15
  21. package/build/internal/cjs/meta.js.map +1 -1
  22. package/build/{es/src/identity-oauth-v1-refresh-token-oauth.types.d.ts → internal/es/identity-oauth-v1-refresh-token-oauth.universal-DIzKUWYi.d.mts} +53 -35
  23. package/build/internal/es/index.d.mts +37 -0
  24. package/build/internal/es/index.mjs +233 -0
  25. package/build/internal/es/index.mjs.map +1 -0
  26. package/build/internal/es/meta.d.mts +81 -0
  27. package/build/internal/es/meta.mjs +154 -0
  28. package/build/internal/es/meta.mjs.map +1 -0
  29. package/package.json +10 -9
  30. package/build/cjs/index.typings.d.ts +0 -1
  31. package/build/cjs/index.typings.js +0 -18
  32. package/build/cjs/index.typings.js.map +0 -1
  33. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.context.d.ts +0 -6
  34. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.context.js +0 -10
  35. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.context.js.map +0 -1
  36. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.http.d.ts +0 -21
  37. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.http.js +0 -134
  38. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.http.js.map +0 -1
  39. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.meta.d.ts +0 -14
  40. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.meta.js +0 -66
  41. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.meta.js.map +0 -1
  42. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.public.d.ts +0 -34
  43. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.public.js +0 -20
  44. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.public.js.map +0 -1
  45. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.types.js +0 -17
  46. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.types.js.map +0 -1
  47. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.universal.d.ts +0 -294
  48. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.universal.js +0 -143
  49. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.universal.js.map +0 -1
  50. package/build/es/index.d.ts +0 -1
  51. package/build/es/index.js +0 -2
  52. package/build/es/index.js.map +0 -1
  53. package/build/es/index.typings.d.ts +0 -1
  54. package/build/es/index.typings.js +0 -2
  55. package/build/es/index.typings.js.map +0 -1
  56. package/build/es/meta.d.ts +0 -1
  57. package/build/es/meta.js +0 -2
  58. package/build/es/meta.js.map +0 -1
  59. package/build/es/src/identity-oauth-v1-refresh-token-oauth.context.d.ts +0 -6
  60. package/build/es/src/identity-oauth-v1-refresh-token-oauth.context.js +0 -6
  61. package/build/es/src/identity-oauth-v1-refresh-token-oauth.context.js.map +0 -1
  62. package/build/es/src/identity-oauth-v1-refresh-token-oauth.http.d.ts +0 -21
  63. package/build/es/src/identity-oauth-v1-refresh-token-oauth.http.js +0 -129
  64. package/build/es/src/identity-oauth-v1-refresh-token-oauth.http.js.map +0 -1
  65. package/build/es/src/identity-oauth-v1-refresh-token-oauth.meta.d.ts +0 -14
  66. package/build/es/src/identity-oauth-v1-refresh-token-oauth.meta.js +0 -38
  67. package/build/es/src/identity-oauth-v1-refresh-token-oauth.meta.js.map +0 -1
  68. package/build/es/src/identity-oauth-v1-refresh-token-oauth.public.d.ts +0 -34
  69. package/build/es/src/identity-oauth-v1-refresh-token-oauth.public.js +0 -14
  70. package/build/es/src/identity-oauth-v1-refresh-token-oauth.public.js.map +0 -1
  71. package/build/es/src/identity-oauth-v1-refresh-token-oauth.types.js +0 -14
  72. package/build/es/src/identity-oauth-v1-refresh-token-oauth.types.js.map +0 -1
  73. package/build/es/src/identity-oauth-v1-refresh-token-oauth.universal.d.ts +0 -294
  74. package/build/es/src/identity-oauth-v1-refresh-token-oauth.universal.js +0 -115
  75. package/build/es/src/identity-oauth-v1-refresh-token-oauth.universal.js.map +0 -1
  76. package/build/internal/cjs/index.typings.d.ts +0 -1
  77. package/build/internal/cjs/index.typings.js +0 -18
  78. package/build/internal/cjs/index.typings.js.map +0 -1
  79. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.context.d.ts +0 -6
  80. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.context.js +0 -10
  81. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.context.js.map +0 -1
  82. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.http.d.ts +0 -21
  83. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.http.js +0 -134
  84. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.http.js.map +0 -1
  85. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.meta.d.ts +0 -14
  86. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.meta.js +0 -66
  87. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.meta.js.map +0 -1
  88. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.public.d.ts +0 -34
  89. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.public.js +0 -20
  90. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.public.js.map +0 -1
  91. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.types.js +0 -17
  92. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.types.js.map +0 -1
  93. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.universal.d.ts +0 -294
  94. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.universal.js +0 -143
  95. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.universal.js.map +0 -1
  96. package/build/internal/es/index.d.ts +0 -1
  97. package/build/internal/es/index.js +0 -2
  98. package/build/internal/es/index.js.map +0 -1
  99. package/build/internal/es/index.typings.d.ts +0 -1
  100. package/build/internal/es/index.typings.js +0 -2
  101. package/build/internal/es/index.typings.js.map +0 -1
  102. package/build/internal/es/meta.d.ts +0 -1
  103. package/build/internal/es/meta.js +0 -2
  104. package/build/internal/es/meta.js.map +0 -1
  105. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.context.d.ts +0 -6
  106. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.context.js +0 -6
  107. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.context.js.map +0 -1
  108. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.http.d.ts +0 -21
  109. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.http.js +0 -129
  110. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.http.js.map +0 -1
  111. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.meta.d.ts +0 -14
  112. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.meta.js +0 -38
  113. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.meta.js.map +0 -1
  114. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.public.d.ts +0 -34
  115. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.public.js +0 -14
  116. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.public.js.map +0 -1
  117. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.types.js +0 -14
  118. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.types.js.map +0 -1
  119. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.universal.d.ts +0 -294
  120. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.universal.js +0 -115
  121. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.universal.js.map +0 -1
@@ -0,0 +1,233 @@
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 { transformSDKBytesToRESTBytes } from "@wix/sdk-runtime/transformations/bytes";
10
+ import { transformRESTBytesToSDKBytes } from "@wix/sdk-runtime/transformations/bytes";
11
+ import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
12
+ import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
13
+ function resolveWixIdentityOauth2V1Oauth2NgUrl(opts) {
14
+ const domainToMappings = {
15
+ "manage._base_domain_": [
16
+ {
17
+ srcPath: "/oauth2",
18
+ destPath: "/v1/oauth"
19
+ }
20
+ ],
21
+ "www.wixapis.com": [
22
+ {
23
+ srcPath: "/oauth2",
24
+ destPath: "/v1/oauth"
25
+ },
26
+ {
27
+ srcPath: "/oauth2/token_info",
28
+ destPath: "/v1/token_info"
29
+ }
30
+ ],
31
+ "users._base_domain_": [
32
+ {
33
+ srcPath: "/v1/oauth/device/verify",
34
+ destPath: "/v1/oauth/device/verify"
35
+ },
36
+ {
37
+ srcPath: "/v1/oauth/manage/user-code",
38
+ destPath: "/v1/oauth/manage/user-code"
39
+ },
40
+ {
41
+ srcPath: "/v2/oauth/device/verify",
42
+ destPath: "/v2/oauth/device/verify"
43
+ },
44
+ {
45
+ srcPath: "/v1/oauth/authorize",
46
+ destPath: "/v1/oauth/authorize"
47
+ }
48
+ ],
49
+ _: [
50
+ {
51
+ srcPath: "/_api/oauth2",
52
+ destPath: "/v1/oauth"
53
+ }
54
+ ],
55
+ "platform.rise.ai": [
56
+ {
57
+ srcPath: "/oauth2",
58
+ destPath: "/v1/oauth"
59
+ }
60
+ ],
61
+ "api._api_base_domain_": [
62
+ {
63
+ srcPath: "/oauth2-ng",
64
+ destPath: ""
65
+ }
66
+ ]
67
+ };
68
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
69
+ }
70
+ var PACKAGE_NAME = "@wix/auto_sdk_identity_oauth";
71
+ function token(payload) {
72
+ function __token({ host }) {
73
+ const serializedData = transformPaths(payload, [
74
+ { transformFn: transformSDKBytesToRESTBytes, paths: [{ path: "body" }] }
75
+ ]);
76
+ const metadata = {
77
+ entityFqdn: "wix.identity.oauth.v1.refresh_token",
78
+ method: "POST",
79
+ methodFqn: "wix.identity.oauth2.v1.Oauth2Ng.Token",
80
+ packageName: PACKAGE_NAME,
81
+ url: resolveWixIdentityOauth2V1Oauth2NgUrl({
82
+ protoPath: "/v1/oauth/token",
83
+ data: serializedData,
84
+ host
85
+ }),
86
+ data: serializedData,
87
+ transformResponse: (payload2) => transformPaths(payload2, [
88
+ {
89
+ transformFn: transformRESTBytesToSDKBytes,
90
+ paths: [{ path: "body" }]
91
+ }
92
+ ])
93
+ };
94
+ return metadata;
95
+ }
96
+ return __token;
97
+ }
98
+ function tokenInfo(payload) {
99
+ function __tokenInfo({ host }) {
100
+ const serializedData = transformPaths(payload, [
101
+ { transformFn: transformSDKBytesToRESTBytes, paths: [{ path: "body" }] }
102
+ ]);
103
+ const metadata = {
104
+ entityFqdn: "wix.identity.oauth.v1.refresh_token",
105
+ method: "POST",
106
+ methodFqn: "wix.identity.oauth2.v1.Oauth2Ng.TokenInfo",
107
+ packageName: PACKAGE_NAME,
108
+ url: resolveWixIdentityOauth2V1Oauth2NgUrl({
109
+ protoPath: "/v1/oauth/token-info",
110
+ data: serializedData,
111
+ host
112
+ }),
113
+ data: serializedData
114
+ };
115
+ return metadata;
116
+ }
117
+ return __tokenInfo;
118
+ }
119
+
120
+ // src/identity-oauth-v1-refresh-token-oauth.universal.ts
121
+ var SubjectType = /* @__PURE__ */ ((SubjectType2) => {
122
+ SubjectType2["UNKNOWN"] = "UNKNOWN";
123
+ SubjectType2["USER"] = "USER";
124
+ SubjectType2["VISITOR"] = "VISITOR";
125
+ SubjectType2["MEMBER"] = "MEMBER";
126
+ SubjectType2["APP"] = "APP";
127
+ return SubjectType2;
128
+ })(SubjectType || {});
129
+ async function token2(options) {
130
+ const { httpClient, sideEffects } = arguments[1];
131
+ const payload = renameKeysFromSDKRequestToRESTRequest({
132
+ body: options?.body,
133
+ pathParams: options?.pathParams,
134
+ queryParams: options?.queryParams,
135
+ headers: options?.headers,
136
+ method: options?.method,
137
+ rawPath: options?.rawPath,
138
+ rawQuery: options?.rawQuery
139
+ });
140
+ const reqOpts = token(payload);
141
+ sideEffects?.onSiteCall?.();
142
+ try {
143
+ const result = await httpClient.request(reqOpts);
144
+ sideEffects?.onSuccess?.(result);
145
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
146
+ } catch (err) {
147
+ const transformedError = sdkTransformError(
148
+ err,
149
+ {
150
+ spreadPathsToArguments: {},
151
+ explicitPathsToArguments: {
152
+ body: "$[0].body",
153
+ pathParams: "$[0].pathParams",
154
+ queryParams: "$[0].queryParams",
155
+ headers: "$[0].headers",
156
+ method: "$[0].method",
157
+ rawPath: "$[0].rawPath",
158
+ rawQuery: "$[0].rawQuery"
159
+ },
160
+ singleArgumentUnchanged: false
161
+ },
162
+ ["options"]
163
+ );
164
+ sideEffects?.onError?.(err);
165
+ throw transformedError;
166
+ }
167
+ }
168
+ async function tokenInfo2(options) {
169
+ const { httpClient, sideEffects } = arguments[1];
170
+ const payload = renameKeysFromSDKRequestToRESTRequest({
171
+ body: options?.body,
172
+ pathParams: options?.pathParams,
173
+ queryParams: options?.queryParams,
174
+ headers: options?.headers,
175
+ method: options?.method,
176
+ rawPath: options?.rawPath,
177
+ rawQuery: options?.rawQuery
178
+ });
179
+ const reqOpts = tokenInfo(payload);
180
+ sideEffects?.onSiteCall?.();
181
+ try {
182
+ const result = await httpClient.request(reqOpts);
183
+ sideEffects?.onSuccess?.(result);
184
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
185
+ } catch (err) {
186
+ const transformedError = sdkTransformError(
187
+ err,
188
+ {
189
+ spreadPathsToArguments: {},
190
+ explicitPathsToArguments: {
191
+ body: "$[0].body",
192
+ pathParams: "$[0].pathParams",
193
+ queryParams: "$[0].queryParams",
194
+ headers: "$[0].headers",
195
+ method: "$[0].method",
196
+ rawPath: "$[0].rawPath",
197
+ rawQuery: "$[0].rawQuery"
198
+ },
199
+ singleArgumentUnchanged: false
200
+ },
201
+ ["options"]
202
+ );
203
+ sideEffects?.onError?.(err);
204
+ throw transformedError;
205
+ }
206
+ }
207
+
208
+ // src/identity-oauth-v1-refresh-token-oauth.public.ts
209
+ function token3(httpClient) {
210
+ return (options) => token2(
211
+ options,
212
+ // @ts-ignore
213
+ { httpClient }
214
+ );
215
+ }
216
+ function tokenInfo3(httpClient) {
217
+ return (options) => tokenInfo2(
218
+ options,
219
+ // @ts-ignore
220
+ { httpClient }
221
+ );
222
+ }
223
+
224
+ // src/identity-oauth-v1-refresh-token-oauth.context.ts
225
+ import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
226
+ var token4 = /* @__PURE__ */ createRESTModule(token3);
227
+ var tokenInfo4 = /* @__PURE__ */ createRESTModule(tokenInfo3);
228
+ export {
229
+ SubjectType,
230
+ token4 as token,
231
+ tokenInfo4 as tokenInfo
232
+ };
233
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/identity-oauth-v1-refresh-token-oauth.universal.ts","../../../src/identity-oauth-v1-refresh-token-oauth.http.ts","../../../src/identity-oauth-v1-refresh-token-oauth.public.ts","../../../src/identity-oauth-v1-refresh-token-oauth.context.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 /** Session token of the site visitor to authorize. */\n sessionToken?: string | null;\n /**\n * URL to redirect user to sign in\n * @format SECURE_WEB_URL\n */\n signInUrl?: 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\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 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 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}\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\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 >\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 * 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 >\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","import { 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 _: [\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 };\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 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/** 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 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","import { HttpClient } from '@wix/sdk-types';\nimport {\n RawHttpResponse,\n TokenInfoOptions,\n TokenInfoResponse,\n TokenOptions,\n token as universalToken,\n tokenInfo as universalTokenInfo,\n} from './identity-oauth-v1-refresh-token-oauth.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/identity' };\n\nexport function token(httpClient: HttpClient): TokenSignature {\n return (options?: TokenOptions) =>\n universalToken(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface TokenSignature {\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 */\n (options?: TokenOptions | undefined): Promise<RawHttpResponse>;\n}\n\nexport function tokenInfo(httpClient: HttpClient): TokenInfoSignature {\n return (options?: TokenInfoOptions) =>\n universalTokenInfo(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface TokenInfoSignature {\n /**\n * Token Introspection Endpoint.\n */\n (options?: TokenInfoOptions | undefined): Promise<TokenInfoResponse>;\n}\n\nexport {\n ActionEvent,\n AuthorizeRequest,\n DeviceCodeRequest,\n DeviceCodeResponse,\n DeviceVerifyRequest,\n DeviceVerifyResponse,\n DeviceVerifyV2Request,\n DeviceVerifyV2Response,\n DomainEvent,\n DomainEventBodyOneOf,\n Empty,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n HeadersEntry,\n InvalidateUserCodeRequest,\n InvalidateUserCodeResponse,\n PathParametersEntry,\n QueryParametersEntry,\n RawHttpRequest,\n RawHttpResponse,\n RefreshToken,\n RestoreInfo,\n RevokeRefreshTokenRequest,\n RevokeRefreshTokenResponse,\n SubjectType,\n TokenInfoOptions,\n TokenInfoResponse,\n TokenOptions,\n} from './identity-oauth-v1-refresh-token-oauth.universal.js';\n","import {\n token as publicToken,\n tokenInfo as publicTokenInfo,\n} from './identity-oauth-v1-refresh-token-oauth.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const token: MaybeContext<\n BuildRESTFunction<typeof publicToken> & typeof publicToken\n> = /*#__PURE__*/ createRESTModule(publicToken);\nexport const tokenInfo: MaybeContext<\n BuildRESTFunction<typeof publicTokenInfo> & typeof publicTokenInfo\n> = /*#__PURE__*/ createRESTModule(publicTokenInfo);\n\nexport { SubjectType } from './identity-oauth-v1-refresh-token-oauth.universal.js';\nexport {\n RefreshToken,\n AuthorizeRequest,\n RawHttpResponse,\n HeadersEntry,\n RawHttpRequest,\n PathParametersEntry,\n QueryParametersEntry,\n DeviceCodeRequest,\n DeviceCodeResponse,\n DeviceVerifyRequest,\n DeviceVerifyResponse,\n DeviceVerifyV2Request,\n DeviceVerifyV2Response,\n InvalidateUserCodeRequest,\n InvalidateUserCodeResponse,\n RevokeRefreshTokenRequest,\n RevokeRefreshTokenResponse,\n TokenInfoResponse,\n Empty,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n TokenOptions,\n TokenInfoOptions,\n} from './identity-oauth-v1-refresh-token-oauth.universal.js';\n"],"mappings":";AAAA,SAAS,kBAAkB,yBAAyB;AACpD;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACJP,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,QAC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AAU,YAA4C;AACpE,SAAO,CAAC,YACNA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;AC7CA,SAAS,wBAAwB;AAG1B,IAAMC,SAEK,iCAAiBA,MAAW;AACvC,IAAMC,aAEK,iCAAiBA,UAAe;","names":["payload","SubjectType","token","tokenInfo","token","tokenInfo","token","tokenInfo"]}
@@ -0,0 +1,81 @@
1
+ import { d as RawHttpRequest$1, R as RawHttpResponse$1, b as TokenInfoResponse$1 } from './identity-oauth-v1-refresh-token-oauth.universal-DIzKUWYi.mjs';
2
+
3
+ interface RawHttpResponse {
4
+ body?: Uint8Array;
5
+ statusCode?: number | null;
6
+ headers?: HeadersEntry[];
7
+ }
8
+ interface HeadersEntry {
9
+ key?: string;
10
+ value?: string;
11
+ }
12
+ interface RawHttpRequest {
13
+ body?: Uint8Array;
14
+ pathParams?: PathParametersEntry[];
15
+ queryParams?: QueryParametersEntry[];
16
+ headers?: HeadersEntry[];
17
+ method?: string;
18
+ rawPath?: string;
19
+ rawQuery?: string;
20
+ }
21
+ interface PathParametersEntry {
22
+ key?: string;
23
+ value?: string;
24
+ }
25
+ interface QueryParametersEntry {
26
+ key?: string;
27
+ value?: string;
28
+ }
29
+ interface TokenInfoResponse {
30
+ active?: boolean;
31
+ /** subject type. */
32
+ subjectType?: SubjectTypeWithLiterals;
33
+ /** subject id */
34
+ subjectId?: string;
35
+ /** Expiration time of the token */
36
+ exp?: string | null;
37
+ /** Issued time of the token */
38
+ iat?: string | null;
39
+ /** Client id */
40
+ clientId?: string;
41
+ /** Account id */
42
+ accountId?: string | null;
43
+ /** Site id */
44
+ siteId?: string | null;
45
+ /** Instance Id */
46
+ instanceId?: string | null;
47
+ /**
48
+ * Vendor Product Id
49
+ * @maxLength 100
50
+ */
51
+ vendorProductId?: string | null;
52
+ }
53
+ declare enum SubjectType {
54
+ /** unknown subject type */
55
+ UNKNOWN = "UNKNOWN",
56
+ /** user subject type */
57
+ USER = "USER",
58
+ /** visitor subject type */
59
+ VISITOR = "VISITOR",
60
+ /** member subject type */
61
+ MEMBER = "MEMBER",
62
+ /** app subject type */
63
+ APP = "APP"
64
+ }
65
+ /** @enumType */
66
+ type SubjectTypeWithLiterals = SubjectType | 'UNKNOWN' | 'USER' | 'VISITOR' | 'MEMBER' | 'APP';
67
+
68
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
69
+ getUrl: (context: any) => string;
70
+ httpMethod: K;
71
+ path: string;
72
+ pathParams: M;
73
+ __requestType: T;
74
+ __originalRequestType: S;
75
+ __responseType: Q;
76
+ __originalResponseType: R;
77
+ };
78
+ declare function token(): __PublicMethodMetaInfo<'POST', {}, RawHttpRequest$1, RawHttpRequest, RawHttpResponse$1, RawHttpResponse>;
79
+ declare function tokenInfo(): __PublicMethodMetaInfo<'POST', {}, RawHttpRequest$1, RawHttpRequest, TokenInfoResponse$1, TokenInfoResponse>;
80
+
81
+ export { type __PublicMethodMetaInfo, token, tokenInfo };
@@ -0,0 +1,154 @@
1
+ // src/identity-oauth-v1-refresh-token-oauth.http.ts
2
+ import { transformSDKBytesToRESTBytes } from "@wix/sdk-runtime/transformations/bytes";
3
+ import { transformRESTBytesToSDKBytes } from "@wix/sdk-runtime/transformations/bytes";
4
+ import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
5
+ import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
6
+ function resolveWixIdentityOauth2V1Oauth2NgUrl(opts) {
7
+ const domainToMappings = {
8
+ "manage._base_domain_": [
9
+ {
10
+ srcPath: "/oauth2",
11
+ destPath: "/v1/oauth"
12
+ }
13
+ ],
14
+ "www.wixapis.com": [
15
+ {
16
+ srcPath: "/oauth2",
17
+ destPath: "/v1/oauth"
18
+ },
19
+ {
20
+ srcPath: "/oauth2/token_info",
21
+ destPath: "/v1/token_info"
22
+ }
23
+ ],
24
+ "users._base_domain_": [
25
+ {
26
+ srcPath: "/v1/oauth/device/verify",
27
+ destPath: "/v1/oauth/device/verify"
28
+ },
29
+ {
30
+ srcPath: "/v1/oauth/manage/user-code",
31
+ destPath: "/v1/oauth/manage/user-code"
32
+ },
33
+ {
34
+ srcPath: "/v2/oauth/device/verify",
35
+ destPath: "/v2/oauth/device/verify"
36
+ },
37
+ {
38
+ srcPath: "/v1/oauth/authorize",
39
+ destPath: "/v1/oauth/authorize"
40
+ }
41
+ ],
42
+ _: [
43
+ {
44
+ srcPath: "/_api/oauth2",
45
+ destPath: "/v1/oauth"
46
+ }
47
+ ],
48
+ "platform.rise.ai": [
49
+ {
50
+ srcPath: "/oauth2",
51
+ destPath: "/v1/oauth"
52
+ }
53
+ ],
54
+ "api._api_base_domain_": [
55
+ {
56
+ srcPath: "/oauth2-ng",
57
+ destPath: ""
58
+ }
59
+ ]
60
+ };
61
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
62
+ }
63
+ var PACKAGE_NAME = "@wix/auto_sdk_identity_oauth";
64
+ function token(payload) {
65
+ function __token({ host }) {
66
+ const serializedData = transformPaths(payload, [
67
+ { transformFn: transformSDKBytesToRESTBytes, paths: [{ path: "body" }] }
68
+ ]);
69
+ const metadata = {
70
+ entityFqdn: "wix.identity.oauth.v1.refresh_token",
71
+ method: "POST",
72
+ methodFqn: "wix.identity.oauth2.v1.Oauth2Ng.Token",
73
+ packageName: PACKAGE_NAME,
74
+ url: resolveWixIdentityOauth2V1Oauth2NgUrl({
75
+ protoPath: "/v1/oauth/token",
76
+ data: serializedData,
77
+ host
78
+ }),
79
+ data: serializedData,
80
+ transformResponse: (payload2) => transformPaths(payload2, [
81
+ {
82
+ transformFn: transformRESTBytesToSDKBytes,
83
+ paths: [{ path: "body" }]
84
+ }
85
+ ])
86
+ };
87
+ return metadata;
88
+ }
89
+ return __token;
90
+ }
91
+ function tokenInfo(payload) {
92
+ function __tokenInfo({ host }) {
93
+ const serializedData = transformPaths(payload, [
94
+ { transformFn: transformSDKBytesToRESTBytes, paths: [{ path: "body" }] }
95
+ ]);
96
+ const metadata = {
97
+ entityFqdn: "wix.identity.oauth.v1.refresh_token",
98
+ method: "POST",
99
+ methodFqn: "wix.identity.oauth2.v1.Oauth2Ng.TokenInfo",
100
+ packageName: PACKAGE_NAME,
101
+ url: resolveWixIdentityOauth2V1Oauth2NgUrl({
102
+ protoPath: "/v1/oauth/token-info",
103
+ data: serializedData,
104
+ host
105
+ }),
106
+ data: serializedData
107
+ };
108
+ return metadata;
109
+ }
110
+ return __tokenInfo;
111
+ }
112
+
113
+ // src/identity-oauth-v1-refresh-token-oauth.meta.ts
114
+ function token2() {
115
+ const payload = {};
116
+ const getRequestOptions = token(payload);
117
+ const getUrl = (context) => {
118
+ const { url } = getRequestOptions(context);
119
+ return url;
120
+ };
121
+ return {
122
+ getUrl,
123
+ httpMethod: "POST",
124
+ path: "/v1/oauth/token",
125
+ pathParams: {},
126
+ __requestType: null,
127
+ __originalRequestType: null,
128
+ __responseType: null,
129
+ __originalResponseType: null
130
+ };
131
+ }
132
+ function tokenInfo2() {
133
+ const payload = {};
134
+ const getRequestOptions = tokenInfo(payload);
135
+ const getUrl = (context) => {
136
+ const { url } = getRequestOptions(context);
137
+ return url;
138
+ };
139
+ return {
140
+ getUrl,
141
+ httpMethod: "POST",
142
+ path: "/v1/oauth/token-info",
143
+ pathParams: {},
144
+ __requestType: null,
145
+ __originalRequestType: null,
146
+ __responseType: null,
147
+ __originalResponseType: null
148
+ };
149
+ }
150
+ export {
151
+ token2 as token,
152
+ tokenInfo2 as tokenInfo
153
+ };
154
+ //# sourceMappingURL=meta.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/identity-oauth-v1-refresh-token-oauth.http.ts","../../../src/identity-oauth-v1-refresh-token-oauth.meta.ts"],"sourcesContent":["import { 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 _: [\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 };\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 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/** 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 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","import * as ambassadorWixIdentityOauthV1RefreshToken from './identity-oauth-v1-refresh-token-oauth.http.js';\nimport * as ambassadorWixIdentityOauthV1RefreshTokenTypes from './identity-oauth-v1-refresh-token-oauth.types.js';\nimport * as ambassadorWixIdentityOauthV1RefreshTokenUniversalTypes from './identity-oauth-v1-refresh-token-oauth.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function token(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixIdentityOauthV1RefreshTokenUniversalTypes.RawHttpRequest,\n ambassadorWixIdentityOauthV1RefreshTokenTypes.RawHttpRequest,\n ambassadorWixIdentityOauthV1RefreshTokenUniversalTypes.RawHttpResponse,\n ambassadorWixIdentityOauthV1RefreshTokenTypes.RawHttpResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixIdentityOauthV1RefreshToken.token(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/oauth/token',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function tokenInfo(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixIdentityOauthV1RefreshTokenUniversalTypes.RawHttpRequest,\n ambassadorWixIdentityOauthV1RefreshTokenTypes.RawHttpRequest,\n ambassadorWixIdentityOauthV1RefreshTokenUniversalTypes.TokenInfoResponse,\n ambassadorWixIdentityOauthV1RefreshTokenTypes.TokenInfoResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixIdentityOauthV1RefreshToken.tokenInfo(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/oauth/token-info',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";AAAA,SAAS,oCAAoC;AAC7C,SAAS,oCAAoC;AAC7C,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI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AAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","token","tokenInfo"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_identity_oauth",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -8,18 +8,18 @@
8
8
  "keywords": [],
9
9
  "sideEffects": false,
10
10
  "main": "./build/cjs/index.js",
11
- "types": "./build/es/index.d.ts",
11
+ "types": "./build/cjs/index.d.ts",
12
12
  "exports": {
13
13
  ".": {
14
- "import": "./build/es/index.js",
14
+ "import": "./build/es/index.mjs",
15
15
  "require": "./build/cjs/index.js",
16
- "types": "./build/es/index.d.ts"
16
+ "types": "./build/es/index.d.mts"
17
17
  },
18
18
  "./package.json": "./package.json",
19
19
  "./meta": {
20
- "import": "./build/es/meta.js",
20
+ "import": "./build/es/meta.mjs",
21
21
  "require": "./build/cjs/meta.js",
22
- "types": "./build/es/meta.d.ts"
22
+ "types": "./build/es/meta.d.mts"
23
23
  }
24
24
  },
25
25
  "files": [
@@ -28,14 +28,15 @@
28
28
  "service-plugins"
29
29
  ],
30
30
  "dependencies": {
31
- "@wix/sdk-runtime": "^0.3.49",
31
+ "@wix/sdk-runtime": "^0.3.55",
32
32
  "@wix/sdk-types": "^1.13.28"
33
33
  },
34
34
  "devDependencies": {
35
+ "tsup": "^8.4.0",
35
36
  "typescript": "^5.3.2"
36
37
  },
37
38
  "scripts": {
38
- "build": "tsc -b tsconfig.json tsconfig.esm.json tsconfig.internal.json tsconfig.internal.esm.json",
39
+ "build": "tsup",
39
40
  "test": ":"
40
41
  },
41
42
  "wix": {
@@ -48,5 +49,5 @@
48
49
  "fqdn": "wix.identity.oauth.v1.refresh_token"
49
50
  }
50
51
  },
51
- "falconPackageHash": "714aeb41a04911cc79d43c3480834f58edd77b199fcb73ca303e9fa8"
52
+ "falconPackageHash": "9cd23d3c8174d6e1b6eaf91f13c9a0bbcf333366d4dffc91ac35e92e"
52
53
  }
@@ -1 +0,0 @@
1
- export * from './src/identity-oauth-v1-refresh-token-oauth.universal.js';
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./src/identity-oauth-v1-refresh-token-oauth.universal.js"), exports);
18
- //# sourceMappingURL=index.typings.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../index.typings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2FAAyE"}
@@ -1,6 +0,0 @@
1
- import { token as publicToken, tokenInfo as publicTokenInfo } from './identity-oauth-v1-refresh-token-oauth.public.js';
2
- import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
3
- export declare const token: MaybeContext<BuildRESTFunction<typeof publicToken> & typeof publicToken>;
4
- export declare const tokenInfo: MaybeContext<BuildRESTFunction<typeof publicTokenInfo> & typeof publicTokenInfo>;
5
- export { SubjectType } from './identity-oauth-v1-refresh-token-oauth.universal.js';
6
- export { RefreshToken, AuthorizeRequest, RawHttpResponse, HeadersEntry, RawHttpRequest, PathParametersEntry, QueryParametersEntry, DeviceCodeRequest, DeviceCodeResponse, DeviceVerifyRequest, DeviceVerifyResponse, DeviceVerifyV2Request, DeviceVerifyV2Response, InvalidateUserCodeRequest, InvalidateUserCodeResponse, RevokeRefreshTokenRequest, RevokeRefreshTokenResponse, TokenInfoResponse, Empty, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, TokenOptions, TokenInfoOptions, } from './identity-oauth-v1-refresh-token-oauth.universal.js';
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SubjectType = exports.tokenInfo = exports.token = void 0;
4
- const identity_oauth_v1_refresh_token_oauth_public_js_1 = require("./identity-oauth-v1-refresh-token-oauth.public.js");
5
- const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
6
- exports.token = (0, rest_modules_1.createRESTModule)(identity_oauth_v1_refresh_token_oauth_public_js_1.token);
7
- exports.tokenInfo = (0, rest_modules_1.createRESTModule)(identity_oauth_v1_refresh_token_oauth_public_js_1.tokenInfo);
8
- var identity_oauth_v1_refresh_token_oauth_universal_js_1 = require("./identity-oauth-v1-refresh-token-oauth.universal.js");
9
- Object.defineProperty(exports, "SubjectType", { enumerable: true, get: function () { return identity_oauth_v1_refresh_token_oauth_universal_js_1.SubjectType; } });
10
- //# sourceMappingURL=identity-oauth-v1-refresh-token-oauth.context.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"identity-oauth-v1-refresh-token-oauth.context.js","sourceRoot":"","sources":["../../../src/identity-oauth-v1-refresh-token-oauth.context.ts"],"names":[],"mappings":";;;AAAA,uHAG2D;AAC3D,gEAAiE;AAGpD,QAAA,KAAK,GAEA,IAAA,+BAAgB,EAAC,uDAAW,CAAC,CAAC;AACnC,QAAA,SAAS,GAEJ,IAAA,+BAAgB,EAAC,2DAAe,CAAC,CAAC;AAEpD,2HAAmF;AAA1E,iJAAA,WAAW,OAAA"}