@wix/auto_sdk_identity_oauth 1.0.5 → 1.0.7

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 (133) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.context.d.ts +6 -0
  11. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.context.js +10 -0
  12. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.context.js.map +1 -0
  13. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.http.d.ts +21 -0
  14. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.http.js +134 -0
  15. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.http.js.map +1 -0
  16. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.meta.d.ts +14 -0
  17. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.meta.js +66 -0
  18. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.meta.js.map +1 -0
  19. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.public.d.ts +34 -0
  20. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.public.js +20 -0
  21. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.public.js.map +1 -0
  22. package/build/{identity-oauth-v1-refresh-token-oauth.universal-BzqSyI-5.d.mts → cjs/src/identity-oauth-v1-refresh-token-oauth.types.d.ts} +34 -52
  23. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.types.js +17 -0
  24. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.types.js.map +1 -0
  25. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.universal.d.ts +300 -0
  26. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.universal.js +143 -0
  27. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/src/identity-oauth-v1-refresh-token-oauth.context.d.ts +6 -0
  38. package/build/es/src/identity-oauth-v1-refresh-token-oauth.context.js +6 -0
  39. package/build/es/src/identity-oauth-v1-refresh-token-oauth.context.js.map +1 -0
  40. package/build/es/src/identity-oauth-v1-refresh-token-oauth.http.d.ts +21 -0
  41. package/build/es/src/identity-oauth-v1-refresh-token-oauth.http.js +129 -0
  42. package/build/es/src/identity-oauth-v1-refresh-token-oauth.http.js.map +1 -0
  43. package/build/es/src/identity-oauth-v1-refresh-token-oauth.meta.d.ts +14 -0
  44. package/build/es/src/identity-oauth-v1-refresh-token-oauth.meta.js +38 -0
  45. package/build/es/src/identity-oauth-v1-refresh-token-oauth.meta.js.map +1 -0
  46. package/build/es/src/identity-oauth-v1-refresh-token-oauth.public.d.ts +34 -0
  47. package/build/es/src/identity-oauth-v1-refresh-token-oauth.public.js +14 -0
  48. package/build/es/src/identity-oauth-v1-refresh-token-oauth.public.js.map +1 -0
  49. package/build/{identity-oauth-v1-refresh-token-oauth.universal-BzqSyI-5.d.ts → es/src/identity-oauth-v1-refresh-token-oauth.types.d.ts} +34 -52
  50. package/build/es/src/identity-oauth-v1-refresh-token-oauth.types.js +14 -0
  51. package/build/es/src/identity-oauth-v1-refresh-token-oauth.types.js.map +1 -0
  52. package/build/es/src/identity-oauth-v1-refresh-token-oauth.universal.d.ts +300 -0
  53. package/build/es/src/identity-oauth-v1-refresh-token-oauth.universal.js +115 -0
  54. package/build/es/src/identity-oauth-v1-refresh-token-oauth.universal.js.map +1 -0
  55. package/build/internal/cjs/index.d.ts +1 -0
  56. package/build/internal/cjs/index.js +18 -0
  57. package/build/internal/cjs/index.js.map +1 -0
  58. package/build/internal/cjs/index.typings.d.ts +1 -0
  59. package/build/internal/cjs/index.typings.js +18 -0
  60. package/build/internal/cjs/index.typings.js.map +1 -0
  61. package/build/internal/cjs/meta.d.ts +1 -0
  62. package/build/internal/cjs/meta.js +18 -0
  63. package/build/internal/cjs/meta.js.map +1 -0
  64. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.context.d.ts +6 -0
  65. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.context.js +10 -0
  66. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.context.js.map +1 -0
  67. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.http.d.ts +21 -0
  68. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.http.js +134 -0
  69. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.http.js.map +1 -0
  70. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.meta.d.ts +14 -0
  71. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.meta.js +66 -0
  72. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.meta.js.map +1 -0
  73. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.public.d.ts +34 -0
  74. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.public.js +20 -0
  75. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.public.js.map +1 -0
  76. package/build/internal/{identity-oauth-v1-refresh-token-oauth.universal-BzqSyI-5.d.mts → cjs/src/identity-oauth-v1-refresh-token-oauth.types.d.ts} +34 -52
  77. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.types.js +17 -0
  78. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.types.js.map +1 -0
  79. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.universal.d.ts +300 -0
  80. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.universal.js +143 -0
  81. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.universal.js.map +1 -0
  82. package/build/internal/es/index.d.ts +1 -0
  83. package/build/internal/es/index.js +2 -0
  84. package/build/internal/es/index.js.map +1 -0
  85. package/build/internal/es/index.typings.d.ts +1 -0
  86. package/build/internal/es/index.typings.js +2 -0
  87. package/build/internal/es/index.typings.js.map +1 -0
  88. package/build/internal/es/meta.d.ts +1 -0
  89. package/build/internal/es/meta.js +2 -0
  90. package/build/internal/es/meta.js.map +1 -0
  91. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.context.d.ts +6 -0
  92. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.context.js +6 -0
  93. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.context.js.map +1 -0
  94. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.http.d.ts +21 -0
  95. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.http.js +129 -0
  96. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.http.js.map +1 -0
  97. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.meta.d.ts +14 -0
  98. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.meta.js +38 -0
  99. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.meta.js.map +1 -0
  100. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.public.d.ts +34 -0
  101. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.public.js +14 -0
  102. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.public.js.map +1 -0
  103. package/build/internal/{identity-oauth-v1-refresh-token-oauth.universal-BzqSyI-5.d.ts → es/src/identity-oauth-v1-refresh-token-oauth.types.d.ts} +34 -52
  104. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.types.js +14 -0
  105. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.types.js.map +1 -0
  106. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.universal.d.ts +300 -0
  107. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.universal.js +115 -0
  108. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.universal.js.map +1 -0
  109. package/package.json +11 -12
  110. package/build/index.d.mts +0 -37
  111. package/build/index.d.ts +0 -37
  112. package/build/index.js +0 -259
  113. package/build/index.js.map +0 -1
  114. package/build/index.mjs +0 -233
  115. package/build/index.mjs.map +0 -1
  116. package/build/internal/index.d.mts +0 -37
  117. package/build/internal/index.d.ts +0 -37
  118. package/build/internal/index.js +0 -259
  119. package/build/internal/index.js.map +0 -1
  120. package/build/internal/index.mjs +0 -233
  121. package/build/internal/index.mjs.map +0 -1
  122. package/build/internal/meta.d.mts +0 -79
  123. package/build/internal/meta.d.ts +0 -79
  124. package/build/internal/meta.js +0 -182
  125. package/build/internal/meta.js.map +0 -1
  126. package/build/internal/meta.mjs +0 -154
  127. package/build/internal/meta.mjs.map +0 -1
  128. package/build/meta.d.mts +0 -79
  129. package/build/meta.d.ts +0 -79
  130. package/build/meta.js +0 -182
  131. package/build/meta.js.map +0 -1
  132. package/build/meta.mjs +0 -154
  133. package/build/meta.mjs.map +0 -1
@@ -0,0 +1,300 @@
1
+ import { NonNullablePaths } from '@wix/sdk-types';
2
+ export interface RefreshToken {
3
+ token?: string;
4
+ }
5
+ /**
6
+ * AuthorizeRequest is sent by the client to the authorization server to initiate
7
+ * the authorization process.
8
+ */
9
+ export interface AuthorizeRequest {
10
+ /**
11
+ * ID of the Wix OAuth app requesting authorization.
12
+ * @format GUID
13
+ */
14
+ clientId?: string;
15
+ /**
16
+ * Desired authorization [grant type](https://auth0.com/docs/authenticate/protocols/oauth#grant-types).
17
+ *
18
+ * Supported values:
19
+ * + `code`: The endpoint returns an authorization code that can be used to obtain an access token.
20
+ * @minLength 1
21
+ */
22
+ responseType?: string;
23
+ /**
24
+ * 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.
25
+ * @minLength 1
26
+ */
27
+ redirectUri?: string | null;
28
+ /**
29
+ * Desired scope of access. If this field is left empty, only an access token is granted.
30
+ * To received a refresh token, pass `offline_access` as the value of this field.
31
+ */
32
+ scope?: string | null;
33
+ /**
34
+ * A value used to confirm the state of an application before and after it makes an authorization
35
+ * request. If a value for this field is set in the request, it's added to the `redirectUri` when the browser
36
+ * is redirected there.
37
+ * Learn more about [using the state parameter](https://auth0.com/docs/secure/attack-protection/state-parameters).
38
+ * @minLength 1
39
+ */
40
+ state?: string;
41
+ /**
42
+ * esired response format.
43
+ *
44
+ * Supported values:
45
+ * + `query`: The response parameters are encoded as query string parameters and added to the `redirectUri` when redirecting.
46
+ * + `fragment`: The response parameters are encoded as URI fragment parameters and added to the `redirectUri` when redirecting.
47
+ * + `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).
48
+ *
49
+ * Default value: `query`
50
+ */
51
+ responseMode?: string | null;
52
+ /**
53
+ * Code challenge to use for PKCE verification.
54
+ * This field is only used if `responseType` is set to `code`.
55
+ */
56
+ codeChallenge?: string | null;
57
+ /**
58
+ * Code challenge method to use for PKCE verification.
59
+ * This field is only used if `responseType` is set to `code`.
60
+ *
61
+ * Supported values:
62
+ * + `S256`: The code challenge is transformed using SHA-256 encyption.
63
+ * + `S512`: The code challenge is transformed using SHA-512 encyption.
64
+ */
65
+ codeChallengeMethod?: string | null;
66
+ /** Session token of the site visitor to authorize. */
67
+ sessionToken?: string | null;
68
+ /**
69
+ * URL to redirect user to sign in
70
+ * @format SECURE_WEB_URL
71
+ */
72
+ signInUrl?: string | null;
73
+ }
74
+ export interface RawHttpResponse {
75
+ body?: Uint8Array;
76
+ statusCode?: number | null;
77
+ headers?: HeadersEntry[];
78
+ }
79
+ export interface HeadersEntry {
80
+ key?: string;
81
+ value?: string;
82
+ }
83
+ export interface RawHttpRequest {
84
+ body?: Uint8Array;
85
+ pathParams?: PathParametersEntry[];
86
+ queryParams?: QueryParametersEntry[];
87
+ headers?: HeadersEntry[];
88
+ method?: string;
89
+ rawPath?: string;
90
+ rawQuery?: string;
91
+ }
92
+ export interface PathParametersEntry {
93
+ key?: string;
94
+ value?: string;
95
+ }
96
+ export interface QueryParametersEntry {
97
+ key?: string;
98
+ value?: string;
99
+ }
100
+ export interface DeviceCodeRequest {
101
+ /** The ID of the application that asks for authorization. */
102
+ clientId?: string;
103
+ /**
104
+ * scope is a space-delimited string that specifies the requested scope of the
105
+ * access request.
106
+ */
107
+ scope?: string | null;
108
+ }
109
+ export interface DeviceCodeResponse {
110
+ /** 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. */
111
+ deviceCode?: string;
112
+ /** contains the code that should be input at the verification_uri to authorize the device. */
113
+ userCode?: string;
114
+ /** contains the URL the user should visit to authorize the device. */
115
+ verificationUri?: string;
116
+ /** indicates the lifetime (in seconds) of the device_code and user_code. */
117
+ expiresIn?: number;
118
+ /** 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 */
119
+ interval?: number | null;
120
+ }
121
+ export interface DeviceVerifyRequest {
122
+ /** User code representing a currently authorizing device. */
123
+ userCode?: string;
124
+ }
125
+ export interface DeviceVerifyResponse {
126
+ }
127
+ export interface DeviceVerifyV2Request {
128
+ /**
129
+ * User code representing a currently authorizing device.
130
+ * @minLength 8
131
+ * @maxLength 8
132
+ */
133
+ userCode?: string;
134
+ }
135
+ export interface DeviceVerifyV2Response {
136
+ }
137
+ export interface InvalidateUserCodeRequest {
138
+ /** user code to invalidate. Only the authorizing identity is able to invalidate it. */
139
+ userCode?: string;
140
+ }
141
+ export interface InvalidateUserCodeResponse {
142
+ }
143
+ export interface RevokeRefreshTokenRequest {
144
+ /** The refresh token itself. Anyone with the token itself is able to revoke it. */
145
+ token?: string;
146
+ }
147
+ export interface RevokeRefreshTokenResponse {
148
+ }
149
+ export interface TokenInfoResponse {
150
+ active?: boolean;
151
+ /** subject type. */
152
+ subjectType?: SubjectType;
153
+ /** subject id */
154
+ subjectId?: string;
155
+ /** Expiration time of the token */
156
+ exp?: string | null;
157
+ /** Issued time of the token */
158
+ iat?: string | null;
159
+ /** Client id */
160
+ clientId?: string;
161
+ /** Account id */
162
+ accountId?: string | null;
163
+ /** Site id */
164
+ siteId?: string | null;
165
+ /** Instance Id */
166
+ instanceId?: string | null;
167
+ /**
168
+ * Vendor Product Id
169
+ * @maxLength 100
170
+ */
171
+ vendorProductId?: string | null;
172
+ }
173
+ export declare enum SubjectType {
174
+ /** unknown subject type */
175
+ UNKNOWN = "UNKNOWN",
176
+ /** user subject type */
177
+ USER = "USER",
178
+ /** visitor subject type */
179
+ VISITOR = "VISITOR",
180
+ /** member subject type */
181
+ MEMBER = "MEMBER",
182
+ /** app subject type */
183
+ APP = "APP"
184
+ }
185
+ export interface Empty {
186
+ }
187
+ export interface DomainEvent extends DomainEventBodyOneOf {
188
+ createdEvent?: EntityCreatedEvent;
189
+ updatedEvent?: EntityUpdatedEvent;
190
+ deletedEvent?: EntityDeletedEvent;
191
+ actionEvent?: ActionEvent;
192
+ /**
193
+ * Unique event ID.
194
+ * Allows clients to ignore duplicate webhooks.
195
+ */
196
+ _id?: string;
197
+ /**
198
+ * Assumes actions are also always typed to an entity_type
199
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
200
+ */
201
+ entityFqdn?: string;
202
+ /**
203
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
204
+ * This is although the created/updated/deleted notion is duplication of the oneof types
205
+ * Example: created/updated/deleted/started/completed/email_opened
206
+ */
207
+ slug?: string;
208
+ /** ID of the entity associated with the event. */
209
+ entityId?: string;
210
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
211
+ eventTime?: Date | null;
212
+ /**
213
+ * Whether the event was triggered as a result of a privacy regulation application
214
+ * (for example, GDPR).
215
+ */
216
+ triggeredByAnonymizeRequest?: boolean | null;
217
+ /** If present, indicates the action that triggered the event. */
218
+ originatedFrom?: string | null;
219
+ /**
220
+ * A sequence number defining the order of updates to the underlying entity.
221
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
222
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
223
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
224
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
225
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
226
+ */
227
+ entityEventSequence?: string | null;
228
+ }
229
+ /** @oneof */
230
+ export interface DomainEventBodyOneOf {
231
+ createdEvent?: EntityCreatedEvent;
232
+ updatedEvent?: EntityUpdatedEvent;
233
+ deletedEvent?: EntityDeletedEvent;
234
+ actionEvent?: ActionEvent;
235
+ }
236
+ export interface EntityCreatedEvent {
237
+ entity?: string;
238
+ }
239
+ export interface RestoreInfo {
240
+ deletedDate?: Date | null;
241
+ }
242
+ export interface EntityUpdatedEvent {
243
+ /**
244
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
245
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
246
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
247
+ */
248
+ currentEntity?: string;
249
+ }
250
+ export interface EntityDeletedEvent {
251
+ /** Entity that was deleted */
252
+ deletedEntity?: string | null;
253
+ }
254
+ export interface ActionEvent {
255
+ body?: string;
256
+ }
257
+ /**
258
+ * Creates an access token.
259
+ *
260
+ *
261
+ * The endpoint accepts raw HTTP requests. You must pass the request's body
262
+ * parameters formatted as bytes in the raw HTTP request's `body` field,
263
+ * following this template:
264
+ * `{"grantType": "client_credentials", "client_id": "<APP_ID>", "client_secret": "<APP_SECRET_KEY>", "instance_id": "<INSTANCE_ID>"}`.
265
+ *
266
+ * When the call succeeds, Wix returns `{"statusCode": 200}` and the created access
267
+ * token in the `body` field of the raw HTTP response.
268
+ *
269
+ * In case the call fails, Wix returns the relevant `4XX` error code in the raw
270
+ * HTTP response's `statusCode` field and details
271
+ * about the error in `body`. Error details follow the
272
+ * [conventions of the Internet Engineering Task Force (IETF)](https://datatracker.ietf.org/doc/html/rfc6749#appendix-A.7).
273
+ * @public
274
+ * @fqn wix.identity.oauth2.v1.Oauth2Ng.Token
275
+ */
276
+ export declare function token(options?: TokenOptions): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`>>;
277
+ export interface TokenOptions {
278
+ body?: Uint8Array;
279
+ pathParams?: PathParametersEntry[];
280
+ queryParams?: QueryParametersEntry[];
281
+ headers?: HeadersEntry[];
282
+ method?: string;
283
+ rawPath?: string;
284
+ rawQuery?: string;
285
+ }
286
+ /**
287
+ * Token Introspection Endpoint.
288
+ * @public
289
+ * @fqn wix.identity.oauth2.v1.Oauth2Ng.TokenInfo
290
+ */
291
+ export declare function tokenInfo(options?: TokenInfoOptions): Promise<NonNullablePaths<TokenInfoResponse, `active` | `subjectType` | `subjectId` | `clientId`>>;
292
+ export interface TokenInfoOptions {
293
+ body?: Uint8Array;
294
+ pathParams?: PathParametersEntry[];
295
+ queryParams?: QueryParametersEntry[];
296
+ headers?: HeadersEntry[];
297
+ method?: string;
298
+ rawPath?: string;
299
+ rawQuery?: string;
300
+ }
@@ -0,0 +1,143 @@
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.tokenInfo = exports.token = exports.SubjectType = void 0;
27
+ const transform_error_1 = require("@wix/sdk-runtime/transform-error");
28
+ const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");
29
+ const ambassadorWixIdentityOauthV1RefreshToken = __importStar(require("./identity-oauth-v1-refresh-token-oauth.http.js"));
30
+ var SubjectType;
31
+ (function (SubjectType) {
32
+ /** unknown subject type */
33
+ SubjectType["UNKNOWN"] = "UNKNOWN";
34
+ /** user subject type */
35
+ SubjectType["USER"] = "USER";
36
+ /** visitor subject type */
37
+ SubjectType["VISITOR"] = "VISITOR";
38
+ /** member subject type */
39
+ SubjectType["MEMBER"] = "MEMBER";
40
+ /** app subject type */
41
+ SubjectType["APP"] = "APP";
42
+ })(SubjectType || (exports.SubjectType = SubjectType = {}));
43
+ /**
44
+ * Creates an access token.
45
+ *
46
+ *
47
+ * The endpoint accepts raw HTTP requests. You must pass the request's body
48
+ * parameters formatted as bytes in the raw HTTP request's `body` field,
49
+ * following this template:
50
+ * `{"grantType": "client_credentials", "client_id": "<APP_ID>", "client_secret": "<APP_SECRET_KEY>", "instance_id": "<INSTANCE_ID>"}`.
51
+ *
52
+ * When the call succeeds, Wix returns `{"statusCode": 200}` and the created access
53
+ * token in the `body` field of the raw HTTP response.
54
+ *
55
+ * In case the call fails, Wix returns the relevant `4XX` error code in the raw
56
+ * HTTP response's `statusCode` field and details
57
+ * about the error in `body`. Error details follow the
58
+ * [conventions of the Internet Engineering Task Force (IETF)](https://datatracker.ietf.org/doc/html/rfc6749#appendix-A.7).
59
+ * @public
60
+ * @fqn wix.identity.oauth2.v1.Oauth2Ng.Token
61
+ */
62
+ async function token(options) {
63
+ // @ts-ignore
64
+ const { httpClient, sideEffects } = arguments[1];
65
+ const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
66
+ body: options?.body,
67
+ pathParams: options?.pathParams,
68
+ queryParams: options?.queryParams,
69
+ headers: options?.headers,
70
+ method: options?.method,
71
+ rawPath: options?.rawPath,
72
+ rawQuery: options?.rawQuery,
73
+ });
74
+ const reqOpts = ambassadorWixIdentityOauthV1RefreshToken.token(payload);
75
+ sideEffects?.onSiteCall?.();
76
+ try {
77
+ const result = await httpClient.request(reqOpts);
78
+ sideEffects?.onSuccess?.(result);
79
+ return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
80
+ }
81
+ catch (err) {
82
+ const transformedError = (0, transform_error_1.transformError)(err, {
83
+ spreadPathsToArguments: {},
84
+ explicitPathsToArguments: {
85
+ body: '$[0].body',
86
+ pathParams: '$[0].pathParams',
87
+ queryParams: '$[0].queryParams',
88
+ headers: '$[0].headers',
89
+ method: '$[0].method',
90
+ rawPath: '$[0].rawPath',
91
+ rawQuery: '$[0].rawQuery',
92
+ },
93
+ singleArgumentUnchanged: false,
94
+ }, ['options']);
95
+ sideEffects?.onError?.(err);
96
+ throw transformedError;
97
+ }
98
+ }
99
+ exports.token = token;
100
+ /**
101
+ * Token Introspection Endpoint.
102
+ * @public
103
+ * @fqn wix.identity.oauth2.v1.Oauth2Ng.TokenInfo
104
+ */
105
+ async function tokenInfo(options) {
106
+ // @ts-ignore
107
+ const { httpClient, sideEffects } = arguments[1];
108
+ const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
109
+ body: options?.body,
110
+ pathParams: options?.pathParams,
111
+ queryParams: options?.queryParams,
112
+ headers: options?.headers,
113
+ method: options?.method,
114
+ rawPath: options?.rawPath,
115
+ rawQuery: options?.rawQuery,
116
+ });
117
+ const reqOpts = ambassadorWixIdentityOauthV1RefreshToken.tokenInfo(payload);
118
+ sideEffects?.onSiteCall?.();
119
+ try {
120
+ const result = await httpClient.request(reqOpts);
121
+ sideEffects?.onSuccess?.(result);
122
+ return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
123
+ }
124
+ catch (err) {
125
+ const transformedError = (0, transform_error_1.transformError)(err, {
126
+ spreadPathsToArguments: {},
127
+ explicitPathsToArguments: {
128
+ body: '$[0].body',
129
+ pathParams: '$[0].pathParams',
130
+ queryParams: '$[0].queryParams',
131
+ headers: '$[0].headers',
132
+ method: '$[0].method',
133
+ rawPath: '$[0].rawPath',
134
+ rawQuery: '$[0].rawQuery',
135
+ },
136
+ singleArgumentUnchanged: false,
137
+ }, ['options']);
138
+ sideEffects?.onError?.(err);
139
+ throw transformedError;
140
+ }
141
+ }
142
+ exports.tokenInfo = tokenInfo;
143
+ //# sourceMappingURL=identity-oauth-v1-refresh-token-oauth.universal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"identity-oauth-v1-refresh-token-oauth.universal.js","sourceRoot":"","sources":["../../../src/identity-oauth-v1-refresh-token-oauth.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAGiD;AAEjD,0HAA4G;AA2L5G,IAAY,WAWX;AAXD,WAAY,WAAW;IACrB,2BAA2B;IAC3B,kCAAmB,CAAA;IACnB,wBAAwB;IACxB,4BAAa,CAAA;IACb,2BAA2B;IAC3B,kCAAmB,CAAA;IACnB,0BAA0B;IAC1B,gCAAiB,CAAA;IACjB,uBAAuB;IACvB,0BAAW,CAAA;AACb,CAAC,EAXW,WAAW,2BAAX,WAAW,QAWtB;AAiFD;;;;;;;;;;;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C/B,EACD,CAAC,SAAS,CAAC,CACZ,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AAtDD,8BAsDC"}
@@ -0,0 +1 @@
1
+ export * from './src/identity-oauth-v1-refresh-token-oauth.context.js';
@@ -0,0 +1,2 @@
1
+ export * from './src/identity-oauth-v1-refresh-token-oauth.context.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,cAAc,wDAAwD,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './src/identity-oauth-v1-refresh-token-oauth.universal.js';
@@ -0,0 +1,2 @@
1
+ export * from './src/identity-oauth-v1-refresh-token-oauth.universal.js';
2
+ //# sourceMappingURL=index.typings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../index.typings.ts"],"names":[],"mappings":"AAAA,cAAc,0DAA0D,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './src/identity-oauth-v1-refresh-token-oauth.meta.js';
@@ -0,0 +1,2 @@
1
+ export * from './src/identity-oauth-v1-refresh-token-oauth.meta.js';
2
+ //# sourceMappingURL=meta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":"AAAA,cAAc,qDAAqD,CAAC"}
@@ -0,0 +1,6 @@
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';
@@ -0,0 +1,6 @@
1
+ import { token as publicToken, tokenInfo as publicTokenInfo, } from './identity-oauth-v1-refresh-token-oauth.public.js';
2
+ import { createRESTModule } from '@wix/sdk-runtime/rest-modules';
3
+ export const token = /*#__PURE__*/ createRESTModule(publicToken);
4
+ export const tokenInfo = /*#__PURE__*/ createRESTModule(publicTokenInfo);
5
+ export { SubjectType } from './identity-oauth-v1-refresh-token-oauth.universal.js';
6
+ //# sourceMappingURL=identity-oauth-v1-refresh-token-oauth.context.js.map
@@ -0,0 +1 @@
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,OAAO,EACL,KAAK,IAAI,WAAW,EACpB,SAAS,IAAI,eAAe,GAC7B,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAGjE,MAAM,CAAC,MAAM,KAAK,GAEd,aAAa,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC;AAChD,MAAM,CAAC,MAAM,SAAS,GAElB,aAAa,CAAC,gBAAgB,CAAC,eAAe,CAAC,CAAC;AAEpD,OAAO,EAAE,WAAW,EAAE,MAAM,sDAAsD,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { RequestOptionsFactory } from '@wix/sdk-types';
2
+ /**
3
+ * Creates an access token.
4
+ *
5
+ *
6
+ * The endpoint accepts raw HTTP requests. You must pass the request's body
7
+ * parameters formatted as bytes in the raw HTTP request's `body` field,
8
+ * following this template:
9
+ * `{"grantType": "client_credentials", "client_id": "<APP_ID>", "client_secret": "<APP_SECRET_KEY>", "instance_id": "<INSTANCE_ID>"}`.
10
+ *
11
+ * When the call succeeds, Wix returns `{"statusCode": 200}` and the created access
12
+ * token in the `body` field of the raw HTTP response.
13
+ *
14
+ * In case the call fails, Wix returns the relevant `4XX` error code in the raw
15
+ * HTTP response's `statusCode` field and details
16
+ * about the error in `body`. Error details follow the
17
+ * [conventions of the Internet Engineering Task Force (IETF)](https://datatracker.ietf.org/doc/html/rfc6749#appendix-A.7).
18
+ */
19
+ export declare function token(payload: object): RequestOptionsFactory<any>;
20
+ /** Token Introspection Endpoint. */
21
+ export declare function tokenInfo(payload: object): RequestOptionsFactory<any>;
@@ -0,0 +1,129 @@
1
+ import { transformSDKBytesToRESTBytes } from '@wix/sdk-runtime/transformations/bytes';
2
+ import { transformRESTBytesToSDKBytes } from '@wix/sdk-runtime/transformations/bytes';
3
+ import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
4
+ import { resolveUrl } from '@wix/sdk-runtime/rest-modules';
5
+ function resolveWixIdentityOauth2V1Oauth2NgUrl(opts) {
6
+ const domainToMappings = {
7
+ 'manage._base_domain_': [
8
+ {
9
+ srcPath: '/oauth2',
10
+ destPath: '/v1/oauth',
11
+ },
12
+ ],
13
+ 'www.wixapis.com': [
14
+ {
15
+ srcPath: '/oauth2',
16
+ destPath: '/v1/oauth',
17
+ },
18
+ {
19
+ srcPath: '/oauth2/token_info',
20
+ destPath: '/v1/token_info',
21
+ },
22
+ ],
23
+ 'users._base_domain_': [
24
+ {
25
+ srcPath: '/v1/oauth/device/verify',
26
+ destPath: '/v1/oauth/device/verify',
27
+ },
28
+ {
29
+ srcPath: '/v1/oauth/manage/user-code',
30
+ destPath: '/v1/oauth/manage/user-code',
31
+ },
32
+ {
33
+ srcPath: '/v2/oauth/device/verify',
34
+ destPath: '/v2/oauth/device/verify',
35
+ },
36
+ {
37
+ srcPath: '/v1/oauth/authorize',
38
+ destPath: '/v1/oauth/authorize',
39
+ },
40
+ ],
41
+ _: [
42
+ {
43
+ srcPath: '/_api/oauth2',
44
+ destPath: '/v1/oauth',
45
+ },
46
+ ],
47
+ 'platform.rise.ai': [
48
+ {
49
+ srcPath: '/oauth2',
50
+ destPath: '/v1/oauth',
51
+ },
52
+ ],
53
+ 'api._api_base_domain_': [
54
+ {
55
+ srcPath: '/oauth2-ng',
56
+ destPath: '',
57
+ },
58
+ ],
59
+ };
60
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
61
+ }
62
+ const PACKAGE_NAME = '@wix/auto_sdk_identity_oauth';
63
+ /**
64
+ * Creates an access token.
65
+ *
66
+ *
67
+ * The endpoint accepts raw HTTP requests. You must pass the request's body
68
+ * parameters formatted as bytes in the raw HTTP request's `body` field,
69
+ * following this template:
70
+ * `{"grantType": "client_credentials", "client_id": "<APP_ID>", "client_secret": "<APP_SECRET_KEY>", "instance_id": "<INSTANCE_ID>"}`.
71
+ *
72
+ * When the call succeeds, Wix returns `{"statusCode": 200}` and the created access
73
+ * token in the `body` field of the raw HTTP response.
74
+ *
75
+ * In case the call fails, Wix returns the relevant `4XX` error code in the raw
76
+ * HTTP response's `statusCode` field and details
77
+ * about the error in `body`. Error details follow the
78
+ * [conventions of the Internet Engineering Task Force (IETF)](https://datatracker.ietf.org/doc/html/rfc6749#appendix-A.7).
79
+ */
80
+ export function token(payload) {
81
+ function __token({ host }) {
82
+ const serializedData = transformPaths(payload, [
83
+ { transformFn: transformSDKBytesToRESTBytes, paths: [{ path: 'body' }] },
84
+ ]);
85
+ const metadata = {
86
+ entityFqdn: 'wix.identity.oauth.v1.refresh_token',
87
+ method: 'POST',
88
+ methodFqn: 'wix.identity.oauth2.v1.Oauth2Ng.Token',
89
+ packageName: PACKAGE_NAME,
90
+ url: resolveWixIdentityOauth2V1Oauth2NgUrl({
91
+ protoPath: '/v1/oauth/token',
92
+ data: serializedData,
93
+ host,
94
+ }),
95
+ data: serializedData,
96
+ transformResponse: (payload) => transformPaths(payload, [
97
+ {
98
+ transformFn: transformRESTBytesToSDKBytes,
99
+ paths: [{ path: 'body' }],
100
+ },
101
+ ]),
102
+ };
103
+ return metadata;
104
+ }
105
+ return __token;
106
+ }
107
+ /** Token Introspection Endpoint. */
108
+ export function tokenInfo(payload) {
109
+ function __tokenInfo({ host }) {
110
+ const serializedData = transformPaths(payload, [
111
+ { transformFn: transformSDKBytesToRESTBytes, paths: [{ path: 'body' }] },
112
+ ]);
113
+ const metadata = {
114
+ entityFqdn: 'wix.identity.oauth.v1.refresh_token',
115
+ method: 'POST',
116
+ methodFqn: 'wix.identity.oauth2.v1.Oauth2Ng.TokenInfo',
117
+ packageName: PACKAGE_NAME,
118
+ url: resolveWixIdentityOauth2V1Oauth2NgUrl({
119
+ protoPath: '/v1/oauth/token-info',
120
+ data: serializedData,
121
+ host,
122
+ }),
123
+ data: serializedData,
124
+ };
125
+ return metadata;
126
+ }
127
+ return __tokenInfo;
128
+ }
129
+ //# sourceMappingURL=identity-oauth-v1-refresh-token-oauth.http.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"identity-oauth-v1-refresh-token-oauth.http.js","sourceRoot":"","sources":["../../../src/identity-oauth-v1-refresh-token-oauth.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAClF,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAI3D,SAAS,qCAAqC,CAC5C,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,sBAAsB,EAAE;YACtB;gBACE,OAA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