@wix/auto_sdk_identity_oauth 1.0.2 → 1.0.4
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.
- package/build/{cjs/src/identity-oauth-v1-refresh-token-oauth.types.d.ts → identity-oauth-v1-refresh-token-oauth.universal-BzqSyI-5.d.mts} +50 -47
- package/build/{internal/cjs/src/identity-oauth-v1-refresh-token-oauth.types.d.ts → identity-oauth-v1-refresh-token-oauth.universal-BzqSyI-5.d.ts} +50 -47
- package/build/index.d.mts +37 -0
- package/build/index.d.ts +37 -0
- package/build/index.js +259 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +233 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/{es/src/identity-oauth-v1-refresh-token-oauth.types.d.ts → identity-oauth-v1-refresh-token-oauth.universal-BzqSyI-5.d.mts} +50 -47
- package/build/{es/src/identity-oauth-v1-refresh-token-oauth.types.d.ts → internal/identity-oauth-v1-refresh-token-oauth.universal-BzqSyI-5.d.ts} +50 -47
- package/build/internal/index.d.mts +37 -0
- package/build/internal/index.d.ts +37 -0
- package/build/internal/index.js +259 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +233 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +79 -0
- package/build/internal/meta.d.ts +79 -0
- package/build/internal/meta.js +182 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +154 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/meta.d.mts +79 -0
- package/build/meta.d.ts +79 -0
- package/build/meta.js +182 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +154 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +13 -12
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.context.d.ts +0 -6
- package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.context.js +0 -10
- package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.context.js.map +0 -1
- package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.http.d.ts +0 -21
- package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.http.js +0 -134
- package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.http.js.map +0 -1
- package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.meta.d.ts +0 -14
- package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.meta.js +0 -66
- package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.meta.js.map +0 -1
- package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.public.d.ts +0 -34
- package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.public.js +0 -20
- package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.public.js.map +0 -1
- package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.types.js +0 -17
- package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.types.js.map +0 -1
- package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.universal.d.ts +0 -314
- package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.universal.js +0 -143
- package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/identity-oauth-v1-refresh-token-oauth.context.d.ts +0 -6
- package/build/es/src/identity-oauth-v1-refresh-token-oauth.context.js +0 -6
- package/build/es/src/identity-oauth-v1-refresh-token-oauth.context.js.map +0 -1
- package/build/es/src/identity-oauth-v1-refresh-token-oauth.http.d.ts +0 -21
- package/build/es/src/identity-oauth-v1-refresh-token-oauth.http.js +0 -129
- package/build/es/src/identity-oauth-v1-refresh-token-oauth.http.js.map +0 -1
- package/build/es/src/identity-oauth-v1-refresh-token-oauth.meta.d.ts +0 -14
- package/build/es/src/identity-oauth-v1-refresh-token-oauth.meta.js +0 -38
- package/build/es/src/identity-oauth-v1-refresh-token-oauth.meta.js.map +0 -1
- package/build/es/src/identity-oauth-v1-refresh-token-oauth.public.d.ts +0 -34
- package/build/es/src/identity-oauth-v1-refresh-token-oauth.public.js +0 -14
- package/build/es/src/identity-oauth-v1-refresh-token-oauth.public.js.map +0 -1
- package/build/es/src/identity-oauth-v1-refresh-token-oauth.types.js +0 -14
- package/build/es/src/identity-oauth-v1-refresh-token-oauth.types.js.map +0 -1
- package/build/es/src/identity-oauth-v1-refresh-token-oauth.universal.d.ts +0 -314
- package/build/es/src/identity-oauth-v1-refresh-token-oauth.universal.js +0 -115
- package/build/es/src/identity-oauth-v1-refresh-token-oauth.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.context.d.ts +0 -6
- package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.context.js +0 -10
- package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.context.js.map +0 -1
- package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.http.d.ts +0 -21
- package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.http.js +0 -134
- package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.http.js.map +0 -1
- package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.meta.d.ts +0 -14
- package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.meta.js +0 -66
- package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.meta.js.map +0 -1
- package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.public.d.ts +0 -34
- package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.public.js +0 -20
- package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.public.js.map +0 -1
- package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.types.js +0 -17
- package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.types.js.map +0 -1
- package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.universal.d.ts +0 -314
- package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.universal.js +0 -143
- package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.context.d.ts +0 -6
- package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.context.js +0 -6
- package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.context.js.map +0 -1
- package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.http.d.ts +0 -21
- package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.http.js +0 -129
- package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.http.js.map +0 -1
- package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.meta.d.ts +0 -14
- package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.meta.js +0 -38
- package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.meta.js.map +0 -1
- package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.public.d.ts +0 -34
- package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.public.js +0 -14
- package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.public.js.map +0 -1
- package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.types.js +0 -14
- package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.types.js.map +0 -1
- package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.universal.d.ts +0 -314
- package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.universal.js +0 -115
- package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.universal.js.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
interface RefreshToken {
|
|
2
2
|
token?: string;
|
|
3
3
|
}
|
|
4
4
|
/**
|
|
5
5
|
* AuthorizeRequest is sent by the client to the authorization server to initiate
|
|
6
6
|
* the authorization process.
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
interface AuthorizeRequest {
|
|
9
9
|
/**
|
|
10
10
|
* ID of the Wix OAuth app requesting authorization.
|
|
11
11
|
* @format GUID
|
|
@@ -70,16 +70,16 @@ export interface AuthorizeRequest {
|
|
|
70
70
|
*/
|
|
71
71
|
signInUrl?: string | null;
|
|
72
72
|
}
|
|
73
|
-
|
|
73
|
+
interface RawHttpResponse {
|
|
74
74
|
body?: Uint8Array;
|
|
75
75
|
statusCode?: number | null;
|
|
76
76
|
headers?: HeadersEntry[];
|
|
77
77
|
}
|
|
78
|
-
|
|
78
|
+
interface HeadersEntry {
|
|
79
79
|
key?: string;
|
|
80
80
|
value?: string;
|
|
81
81
|
}
|
|
82
|
-
|
|
82
|
+
interface RawHttpRequest {
|
|
83
83
|
body?: Uint8Array;
|
|
84
84
|
pathParams?: PathParametersEntry[];
|
|
85
85
|
queryParams?: QueryParametersEntry[];
|
|
@@ -88,15 +88,15 @@ export interface RawHttpRequest {
|
|
|
88
88
|
rawPath?: string;
|
|
89
89
|
rawQuery?: string;
|
|
90
90
|
}
|
|
91
|
-
|
|
91
|
+
interface PathParametersEntry {
|
|
92
92
|
key?: string;
|
|
93
93
|
value?: string;
|
|
94
94
|
}
|
|
95
|
-
|
|
95
|
+
interface QueryParametersEntry {
|
|
96
96
|
key?: string;
|
|
97
97
|
value?: string;
|
|
98
98
|
}
|
|
99
|
-
|
|
99
|
+
interface DeviceCodeRequest {
|
|
100
100
|
/** The ID of the application that asks for authorization. */
|
|
101
101
|
clientId?: string;
|
|
102
102
|
/**
|
|
@@ -105,7 +105,7 @@ export interface DeviceCodeRequest {
|
|
|
105
105
|
*/
|
|
106
106
|
scope?: string | null;
|
|
107
107
|
}
|
|
108
|
-
|
|
108
|
+
interface DeviceCodeResponse {
|
|
109
109
|
/** 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. */
|
|
110
110
|
deviceCode?: string;
|
|
111
111
|
/** contains the code that should be input at the verification_uri to authorize the device. */
|
|
@@ -117,13 +117,13 @@ export interface DeviceCodeResponse {
|
|
|
117
117
|
/** 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 */
|
|
118
118
|
interval?: number | null;
|
|
119
119
|
}
|
|
120
|
-
|
|
120
|
+
interface DeviceVerifyRequest {
|
|
121
121
|
/** User code representing a currently authorizing device. */
|
|
122
122
|
userCode?: string;
|
|
123
123
|
}
|
|
124
|
-
|
|
124
|
+
interface DeviceVerifyResponse {
|
|
125
125
|
}
|
|
126
|
-
|
|
126
|
+
interface DeviceVerifyV2Request {
|
|
127
127
|
/**
|
|
128
128
|
* User code representing a currently authorizing device.
|
|
129
129
|
* @minLength 8
|
|
@@ -131,21 +131,21 @@ export interface DeviceVerifyV2Request {
|
|
|
131
131
|
*/
|
|
132
132
|
userCode?: string;
|
|
133
133
|
}
|
|
134
|
-
|
|
134
|
+
interface DeviceVerifyV2Response {
|
|
135
135
|
}
|
|
136
|
-
|
|
136
|
+
interface InvalidateUserCodeRequest {
|
|
137
137
|
/** user code to invalidate. Only the authorizing identity is able to invalidate it. */
|
|
138
138
|
userCode?: string;
|
|
139
139
|
}
|
|
140
|
-
|
|
140
|
+
interface InvalidateUserCodeResponse {
|
|
141
141
|
}
|
|
142
|
-
|
|
142
|
+
interface RevokeRefreshTokenRequest {
|
|
143
143
|
/** The refresh token itself. Anyone with the token itself is able to revoke it. */
|
|
144
144
|
token?: string;
|
|
145
145
|
}
|
|
146
|
-
|
|
146
|
+
interface RevokeRefreshTokenResponse {
|
|
147
147
|
}
|
|
148
|
-
|
|
148
|
+
interface TokenInfoResponse {
|
|
149
149
|
active?: boolean;
|
|
150
150
|
/** subject type. */
|
|
151
151
|
subjectType?: SubjectType;
|
|
@@ -169,7 +169,7 @@ export interface TokenInfoResponse {
|
|
|
169
169
|
*/
|
|
170
170
|
vendorProductId?: string | null;
|
|
171
171
|
}
|
|
172
|
-
|
|
172
|
+
declare enum SubjectType {
|
|
173
173
|
/** unknown subject type */
|
|
174
174
|
UNKNOWN = "UNKNOWN",
|
|
175
175
|
/** user subject type */
|
|
@@ -181,9 +181,9 @@ export declare enum SubjectType {
|
|
|
181
181
|
/** app subject type */
|
|
182
182
|
APP = "APP"
|
|
183
183
|
}
|
|
184
|
-
|
|
184
|
+
interface Empty {
|
|
185
185
|
}
|
|
186
|
-
|
|
186
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
187
187
|
createdEvent?: EntityCreatedEvent;
|
|
188
188
|
updatedEvent?: EntityUpdatedEvent;
|
|
189
189
|
deletedEvent?: EntityDeletedEvent;
|
|
@@ -192,7 +192,7 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
192
192
|
* Unique event ID.
|
|
193
193
|
* Allows clients to ignore duplicate webhooks.
|
|
194
194
|
*/
|
|
195
|
-
|
|
195
|
+
_id?: string;
|
|
196
196
|
/**
|
|
197
197
|
* Assumes actions are also always typed to an entity_type
|
|
198
198
|
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
@@ -226,47 +226,50 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
226
226
|
entityEventSequence?: string | null;
|
|
227
227
|
}
|
|
228
228
|
/** @oneof */
|
|
229
|
-
|
|
229
|
+
interface DomainEventBodyOneOf {
|
|
230
230
|
createdEvent?: EntityCreatedEvent;
|
|
231
231
|
updatedEvent?: EntityUpdatedEvent;
|
|
232
232
|
deletedEvent?: EntityDeletedEvent;
|
|
233
233
|
actionEvent?: ActionEvent;
|
|
234
234
|
}
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
238
|
-
restoreInfo?: RestoreInfo;
|
|
235
|
+
interface EntityCreatedEvent {
|
|
236
|
+
entity?: string;
|
|
239
237
|
}
|
|
240
|
-
|
|
238
|
+
interface RestoreInfo {
|
|
241
239
|
deletedDate?: Date | null;
|
|
242
240
|
}
|
|
243
|
-
|
|
241
|
+
interface EntityUpdatedEvent {
|
|
244
242
|
/**
|
|
245
243
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
246
244
|
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
247
245
|
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
248
246
|
*/
|
|
249
|
-
|
|
247
|
+
currentEntity?: string;
|
|
250
248
|
}
|
|
251
|
-
|
|
249
|
+
interface EntityDeletedEvent {
|
|
252
250
|
/** Entity that was deleted */
|
|
253
|
-
|
|
251
|
+
deletedEntity?: string | null;
|
|
254
252
|
}
|
|
255
|
-
|
|
256
|
-
|
|
253
|
+
interface ActionEvent {
|
|
254
|
+
body?: string;
|
|
257
255
|
}
|
|
258
|
-
interface
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
256
|
+
interface TokenOptions {
|
|
257
|
+
body?: Uint8Array;
|
|
258
|
+
pathParams?: PathParametersEntry[];
|
|
259
|
+
queryParams?: QueryParametersEntry[];
|
|
260
|
+
headers?: HeadersEntry[];
|
|
261
|
+
method?: string;
|
|
262
|
+
rawPath?: string;
|
|
263
|
+
rawQuery?: string;
|
|
265
264
|
}
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
265
|
+
interface TokenInfoOptions {
|
|
266
|
+
body?: Uint8Array;
|
|
267
|
+
pathParams?: PathParametersEntry[];
|
|
268
|
+
queryParams?: QueryParametersEntry[];
|
|
269
|
+
headers?: HeadersEntry[];
|
|
270
|
+
method?: string;
|
|
271
|
+
rawPath?: string;
|
|
272
|
+
rawQuery?: string;
|
|
271
273
|
}
|
|
272
|
-
|
|
274
|
+
|
|
275
|
+
export { type AuthorizeRequest as A, type DeviceCodeRequest as D, type Empty as E, type HeadersEntry as H, type InvalidateUserCodeRequest as I, type PathParametersEntry as P, type QueryParametersEntry as Q, type RawHttpResponse as R, SubjectType as S, type TokenOptions as T, type TokenInfoOptions as a, type TokenInfoResponse as b, type RefreshToken as c, type RawHttpRequest as d, type DeviceCodeResponse as e, type DeviceVerifyRequest as f, type DeviceVerifyResponse as g, type DeviceVerifyV2Request as h, type DeviceVerifyV2Response as i, type InvalidateUserCodeResponse as j, type RevokeRefreshTokenRequest as k, type RevokeRefreshTokenResponse as l, type DomainEvent as m, type DomainEventBodyOneOf as n, type EntityCreatedEvent as o, type RestoreInfo as p, type EntityUpdatedEvent as q, type EntityDeletedEvent as r, type ActionEvent as s };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
interface RefreshToken {
|
|
2
2
|
token?: string;
|
|
3
3
|
}
|
|
4
4
|
/**
|
|
5
5
|
* AuthorizeRequest is sent by the client to the authorization server to initiate
|
|
6
6
|
* the authorization process.
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
interface AuthorizeRequest {
|
|
9
9
|
/**
|
|
10
10
|
* ID of the Wix OAuth app requesting authorization.
|
|
11
11
|
* @format GUID
|
|
@@ -70,16 +70,16 @@ export interface AuthorizeRequest {
|
|
|
70
70
|
*/
|
|
71
71
|
signInUrl?: string | null;
|
|
72
72
|
}
|
|
73
|
-
|
|
73
|
+
interface RawHttpResponse {
|
|
74
74
|
body?: Uint8Array;
|
|
75
75
|
statusCode?: number | null;
|
|
76
76
|
headers?: HeadersEntry[];
|
|
77
77
|
}
|
|
78
|
-
|
|
78
|
+
interface HeadersEntry {
|
|
79
79
|
key?: string;
|
|
80
80
|
value?: string;
|
|
81
81
|
}
|
|
82
|
-
|
|
82
|
+
interface RawHttpRequest {
|
|
83
83
|
body?: Uint8Array;
|
|
84
84
|
pathParams?: PathParametersEntry[];
|
|
85
85
|
queryParams?: QueryParametersEntry[];
|
|
@@ -88,15 +88,15 @@ export interface RawHttpRequest {
|
|
|
88
88
|
rawPath?: string;
|
|
89
89
|
rawQuery?: string;
|
|
90
90
|
}
|
|
91
|
-
|
|
91
|
+
interface PathParametersEntry {
|
|
92
92
|
key?: string;
|
|
93
93
|
value?: string;
|
|
94
94
|
}
|
|
95
|
-
|
|
95
|
+
interface QueryParametersEntry {
|
|
96
96
|
key?: string;
|
|
97
97
|
value?: string;
|
|
98
98
|
}
|
|
99
|
-
|
|
99
|
+
interface DeviceCodeRequest {
|
|
100
100
|
/** The ID of the application that asks for authorization. */
|
|
101
101
|
clientId?: string;
|
|
102
102
|
/**
|
|
@@ -105,7 +105,7 @@ export interface DeviceCodeRequest {
|
|
|
105
105
|
*/
|
|
106
106
|
scope?: string | null;
|
|
107
107
|
}
|
|
108
|
-
|
|
108
|
+
interface DeviceCodeResponse {
|
|
109
109
|
/** 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. */
|
|
110
110
|
deviceCode?: string;
|
|
111
111
|
/** contains the code that should be input at the verification_uri to authorize the device. */
|
|
@@ -117,13 +117,13 @@ export interface DeviceCodeResponse {
|
|
|
117
117
|
/** 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 */
|
|
118
118
|
interval?: number | null;
|
|
119
119
|
}
|
|
120
|
-
|
|
120
|
+
interface DeviceVerifyRequest {
|
|
121
121
|
/** User code representing a currently authorizing device. */
|
|
122
122
|
userCode?: string;
|
|
123
123
|
}
|
|
124
|
-
|
|
124
|
+
interface DeviceVerifyResponse {
|
|
125
125
|
}
|
|
126
|
-
|
|
126
|
+
interface DeviceVerifyV2Request {
|
|
127
127
|
/**
|
|
128
128
|
* User code representing a currently authorizing device.
|
|
129
129
|
* @minLength 8
|
|
@@ -131,21 +131,21 @@ export interface DeviceVerifyV2Request {
|
|
|
131
131
|
*/
|
|
132
132
|
userCode?: string;
|
|
133
133
|
}
|
|
134
|
-
|
|
134
|
+
interface DeviceVerifyV2Response {
|
|
135
135
|
}
|
|
136
|
-
|
|
136
|
+
interface InvalidateUserCodeRequest {
|
|
137
137
|
/** user code to invalidate. Only the authorizing identity is able to invalidate it. */
|
|
138
138
|
userCode?: string;
|
|
139
139
|
}
|
|
140
|
-
|
|
140
|
+
interface InvalidateUserCodeResponse {
|
|
141
141
|
}
|
|
142
|
-
|
|
142
|
+
interface RevokeRefreshTokenRequest {
|
|
143
143
|
/** The refresh token itself. Anyone with the token itself is able to revoke it. */
|
|
144
144
|
token?: string;
|
|
145
145
|
}
|
|
146
|
-
|
|
146
|
+
interface RevokeRefreshTokenResponse {
|
|
147
147
|
}
|
|
148
|
-
|
|
148
|
+
interface TokenInfoResponse {
|
|
149
149
|
active?: boolean;
|
|
150
150
|
/** subject type. */
|
|
151
151
|
subjectType?: SubjectType;
|
|
@@ -169,7 +169,7 @@ export interface TokenInfoResponse {
|
|
|
169
169
|
*/
|
|
170
170
|
vendorProductId?: string | null;
|
|
171
171
|
}
|
|
172
|
-
|
|
172
|
+
declare enum SubjectType {
|
|
173
173
|
/** unknown subject type */
|
|
174
174
|
UNKNOWN = "UNKNOWN",
|
|
175
175
|
/** user subject type */
|
|
@@ -181,9 +181,9 @@ export declare enum SubjectType {
|
|
|
181
181
|
/** app subject type */
|
|
182
182
|
APP = "APP"
|
|
183
183
|
}
|
|
184
|
-
|
|
184
|
+
interface Empty {
|
|
185
185
|
}
|
|
186
|
-
|
|
186
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
187
187
|
createdEvent?: EntityCreatedEvent;
|
|
188
188
|
updatedEvent?: EntityUpdatedEvent;
|
|
189
189
|
deletedEvent?: EntityDeletedEvent;
|
|
@@ -192,7 +192,7 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
192
192
|
* Unique event ID.
|
|
193
193
|
* Allows clients to ignore duplicate webhooks.
|
|
194
194
|
*/
|
|
195
|
-
|
|
195
|
+
_id?: string;
|
|
196
196
|
/**
|
|
197
197
|
* Assumes actions are also always typed to an entity_type
|
|
198
198
|
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
@@ -226,47 +226,50 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
226
226
|
entityEventSequence?: string | null;
|
|
227
227
|
}
|
|
228
228
|
/** @oneof */
|
|
229
|
-
|
|
229
|
+
interface DomainEventBodyOneOf {
|
|
230
230
|
createdEvent?: EntityCreatedEvent;
|
|
231
231
|
updatedEvent?: EntityUpdatedEvent;
|
|
232
232
|
deletedEvent?: EntityDeletedEvent;
|
|
233
233
|
actionEvent?: ActionEvent;
|
|
234
234
|
}
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
238
|
-
restoreInfo?: RestoreInfo;
|
|
235
|
+
interface EntityCreatedEvent {
|
|
236
|
+
entity?: string;
|
|
239
237
|
}
|
|
240
|
-
|
|
238
|
+
interface RestoreInfo {
|
|
241
239
|
deletedDate?: Date | null;
|
|
242
240
|
}
|
|
243
|
-
|
|
241
|
+
interface EntityUpdatedEvent {
|
|
244
242
|
/**
|
|
245
243
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
246
244
|
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
247
245
|
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
248
246
|
*/
|
|
249
|
-
|
|
247
|
+
currentEntity?: string;
|
|
250
248
|
}
|
|
251
|
-
|
|
249
|
+
interface EntityDeletedEvent {
|
|
252
250
|
/** Entity that was deleted */
|
|
253
|
-
|
|
251
|
+
deletedEntity?: string | null;
|
|
254
252
|
}
|
|
255
|
-
|
|
256
|
-
|
|
253
|
+
interface ActionEvent {
|
|
254
|
+
body?: string;
|
|
257
255
|
}
|
|
258
|
-
interface
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
256
|
+
interface TokenOptions {
|
|
257
|
+
body?: Uint8Array;
|
|
258
|
+
pathParams?: PathParametersEntry[];
|
|
259
|
+
queryParams?: QueryParametersEntry[];
|
|
260
|
+
headers?: HeadersEntry[];
|
|
261
|
+
method?: string;
|
|
262
|
+
rawPath?: string;
|
|
263
|
+
rawQuery?: string;
|
|
265
264
|
}
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
265
|
+
interface TokenInfoOptions {
|
|
266
|
+
body?: Uint8Array;
|
|
267
|
+
pathParams?: PathParametersEntry[];
|
|
268
|
+
queryParams?: QueryParametersEntry[];
|
|
269
|
+
headers?: HeadersEntry[];
|
|
270
|
+
method?: string;
|
|
271
|
+
rawPath?: string;
|
|
272
|
+
rawQuery?: string;
|
|
271
273
|
}
|
|
272
|
-
|
|
274
|
+
|
|
275
|
+
export { type AuthorizeRequest as A, type DeviceCodeRequest as D, type Empty as E, type HeadersEntry as H, type InvalidateUserCodeRequest as I, type PathParametersEntry as P, type QueryParametersEntry as Q, type RawHttpResponse as R, SubjectType as S, type TokenOptions as T, type TokenInfoOptions as a, type TokenInfoResponse as b, type RefreshToken as c, type RawHttpRequest as d, type DeviceCodeResponse as e, type DeviceVerifyRequest as f, type DeviceVerifyResponse as g, type DeviceVerifyV2Request as h, type DeviceVerifyV2Response as i, type InvalidateUserCodeResponse as j, type RevokeRefreshTokenRequest as k, type RevokeRefreshTokenResponse as l, type DomainEvent as m, type DomainEventBodyOneOf as n, type EntityCreatedEvent as o, type RestoreInfo as p, type EntityUpdatedEvent as q, type EntityDeletedEvent as r, type ActionEvent as s };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
+
import { T as TokenOptions, R as RawHttpResponse, a as TokenInfoOptions, b as TokenInfoResponse } from './identity-oauth-v1-refresh-token-oauth.universal-BzqSyI-5.mjs';
|
|
3
|
+
export { s as ActionEvent, A as AuthorizeRequest, D as DeviceCodeRequest, e as DeviceCodeResponse, f as DeviceVerifyRequest, g as DeviceVerifyResponse, h as DeviceVerifyV2Request, i as DeviceVerifyV2Response, m as DomainEvent, n as DomainEventBodyOneOf, E as Empty, o as EntityCreatedEvent, r as EntityDeletedEvent, q as EntityUpdatedEvent, H as HeadersEntry, I as InvalidateUserCodeRequest, j as InvalidateUserCodeResponse, P as PathParametersEntry, Q as QueryParametersEntry, d as RawHttpRequest, c as RefreshToken, p as RestoreInfo, k as RevokeRefreshTokenRequest, l as RevokeRefreshTokenResponse, S as SubjectType } from './identity-oauth-v1-refresh-token-oauth.universal-BzqSyI-5.mjs';
|
|
4
|
+
|
|
5
|
+
declare function token$1(httpClient: HttpClient): TokenSignature;
|
|
6
|
+
interface TokenSignature {
|
|
7
|
+
/**
|
|
8
|
+
* Creates an access token.
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* The endpoint accepts raw HTTP requests. You must pass the request's body
|
|
12
|
+
* parameters formatted as bytes in the raw HTTP request's `body` field,
|
|
13
|
+
* following this template:
|
|
14
|
+
* `{"grantType": "client_credentials", "client_id": "<APP_ID>", "client_secret": "<APP_SECRET_KEY>", "instance_id": "<INSTANCE_ID>"}`.
|
|
15
|
+
*
|
|
16
|
+
* When the call succeeds, Wix returns `{"statusCode": 200}` and the created access
|
|
17
|
+
* token in the `body` field of the raw HTTP response.
|
|
18
|
+
*
|
|
19
|
+
* In case the call fails, Wix returns the relevant `4XX` error code in the raw
|
|
20
|
+
* HTTP response's `statusCode` field and details
|
|
21
|
+
* about the error in `body`. Error details follow the
|
|
22
|
+
* [conventions of the Internet Engineering Task Force (IETF)](https://datatracker.ietf.org/doc/html/rfc6749#appendix-A.7).
|
|
23
|
+
*/
|
|
24
|
+
(options?: TokenOptions | undefined): Promise<RawHttpResponse>;
|
|
25
|
+
}
|
|
26
|
+
declare function tokenInfo$1(httpClient: HttpClient): TokenInfoSignature;
|
|
27
|
+
interface TokenInfoSignature {
|
|
28
|
+
/**
|
|
29
|
+
* Token Introspection Endpoint.
|
|
30
|
+
*/
|
|
31
|
+
(options?: TokenInfoOptions | undefined): Promise<TokenInfoResponse>;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
declare const token: MaybeContext<BuildRESTFunction<typeof token$1> & typeof token$1>;
|
|
35
|
+
declare const tokenInfo: MaybeContext<BuildRESTFunction<typeof tokenInfo$1> & typeof tokenInfo$1>;
|
|
36
|
+
|
|
37
|
+
export { RawHttpResponse, TokenInfoOptions, TokenInfoResponse, TokenOptions, token, tokenInfo };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
+
import { T as TokenOptions, R as RawHttpResponse, a as TokenInfoOptions, b as TokenInfoResponse } from './identity-oauth-v1-refresh-token-oauth.universal-BzqSyI-5.js';
|
|
3
|
+
export { s as ActionEvent, A as AuthorizeRequest, D as DeviceCodeRequest, e as DeviceCodeResponse, f as DeviceVerifyRequest, g as DeviceVerifyResponse, h as DeviceVerifyV2Request, i as DeviceVerifyV2Response, m as DomainEvent, n as DomainEventBodyOneOf, E as Empty, o as EntityCreatedEvent, r as EntityDeletedEvent, q as EntityUpdatedEvent, H as HeadersEntry, I as InvalidateUserCodeRequest, j as InvalidateUserCodeResponse, P as PathParametersEntry, Q as QueryParametersEntry, d as RawHttpRequest, c as RefreshToken, p as RestoreInfo, k as RevokeRefreshTokenRequest, l as RevokeRefreshTokenResponse, S as SubjectType } from './identity-oauth-v1-refresh-token-oauth.universal-BzqSyI-5.js';
|
|
4
|
+
|
|
5
|
+
declare function token$1(httpClient: HttpClient): TokenSignature;
|
|
6
|
+
interface TokenSignature {
|
|
7
|
+
/**
|
|
8
|
+
* Creates an access token.
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* The endpoint accepts raw HTTP requests. You must pass the request's body
|
|
12
|
+
* parameters formatted as bytes in the raw HTTP request's `body` field,
|
|
13
|
+
* following this template:
|
|
14
|
+
* `{"grantType": "client_credentials", "client_id": "<APP_ID>", "client_secret": "<APP_SECRET_KEY>", "instance_id": "<INSTANCE_ID>"}`.
|
|
15
|
+
*
|
|
16
|
+
* When the call succeeds, Wix returns `{"statusCode": 200}` and the created access
|
|
17
|
+
* token in the `body` field of the raw HTTP response.
|
|
18
|
+
*
|
|
19
|
+
* In case the call fails, Wix returns the relevant `4XX` error code in the raw
|
|
20
|
+
* HTTP response's `statusCode` field and details
|
|
21
|
+
* about the error in `body`. Error details follow the
|
|
22
|
+
* [conventions of the Internet Engineering Task Force (IETF)](https://datatracker.ietf.org/doc/html/rfc6749#appendix-A.7).
|
|
23
|
+
*/
|
|
24
|
+
(options?: TokenOptions | undefined): Promise<RawHttpResponse>;
|
|
25
|
+
}
|
|
26
|
+
declare function tokenInfo$1(httpClient: HttpClient): TokenInfoSignature;
|
|
27
|
+
interface TokenInfoSignature {
|
|
28
|
+
/**
|
|
29
|
+
* Token Introspection Endpoint.
|
|
30
|
+
*/
|
|
31
|
+
(options?: TokenInfoOptions | undefined): Promise<TokenInfoResponse>;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
declare const token: MaybeContext<BuildRESTFunction<typeof token$1> & typeof token$1>;
|
|
35
|
+
declare const tokenInfo: MaybeContext<BuildRESTFunction<typeof tokenInfo$1> & typeof tokenInfo$1>;
|
|
36
|
+
|
|
37
|
+
export { RawHttpResponse, TokenInfoOptions, TokenInfoResponse, TokenOptions, token, tokenInfo };
|