@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.
Files changed (134) hide show
  1. 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
  2. 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
  3. package/build/index.d.mts +37 -0
  4. package/build/index.d.ts +37 -0
  5. package/build/index.js +259 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +233 -0
  8. package/build/index.mjs.map +1 -0
  9. 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
  10. 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
  11. package/build/internal/index.d.mts +37 -0
  12. package/build/internal/index.d.ts +37 -0
  13. package/build/internal/index.js +259 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +233 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/meta.d.mts +79 -0
  18. package/build/internal/meta.d.ts +79 -0
  19. package/build/internal/meta.js +182 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +154 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/meta.d.mts +79 -0
  24. package/build/meta.d.ts +79 -0
  25. package/build/meta.js +182 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +154 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +13 -12
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.context.d.ts +0 -6
  40. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.context.js +0 -10
  41. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.context.js.map +0 -1
  42. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.http.d.ts +0 -21
  43. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.http.js +0 -134
  44. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.http.js.map +0 -1
  45. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.meta.d.ts +0 -14
  46. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.meta.js +0 -66
  47. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.meta.js.map +0 -1
  48. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.public.d.ts +0 -34
  49. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.public.js +0 -20
  50. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.public.js.map +0 -1
  51. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.types.js +0 -17
  52. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.types.js.map +0 -1
  53. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.universal.d.ts +0 -314
  54. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.universal.js +0 -143
  55. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.universal.js.map +0 -1
  56. package/build/es/index.d.ts +0 -1
  57. package/build/es/index.js +0 -2
  58. package/build/es/index.js.map +0 -1
  59. package/build/es/index.typings.d.ts +0 -1
  60. package/build/es/index.typings.js +0 -2
  61. package/build/es/index.typings.js.map +0 -1
  62. package/build/es/meta.d.ts +0 -1
  63. package/build/es/meta.js +0 -2
  64. package/build/es/meta.js.map +0 -1
  65. package/build/es/package.json +0 -3
  66. package/build/es/src/identity-oauth-v1-refresh-token-oauth.context.d.ts +0 -6
  67. package/build/es/src/identity-oauth-v1-refresh-token-oauth.context.js +0 -6
  68. package/build/es/src/identity-oauth-v1-refresh-token-oauth.context.js.map +0 -1
  69. package/build/es/src/identity-oauth-v1-refresh-token-oauth.http.d.ts +0 -21
  70. package/build/es/src/identity-oauth-v1-refresh-token-oauth.http.js +0 -129
  71. package/build/es/src/identity-oauth-v1-refresh-token-oauth.http.js.map +0 -1
  72. package/build/es/src/identity-oauth-v1-refresh-token-oauth.meta.d.ts +0 -14
  73. package/build/es/src/identity-oauth-v1-refresh-token-oauth.meta.js +0 -38
  74. package/build/es/src/identity-oauth-v1-refresh-token-oauth.meta.js.map +0 -1
  75. package/build/es/src/identity-oauth-v1-refresh-token-oauth.public.d.ts +0 -34
  76. package/build/es/src/identity-oauth-v1-refresh-token-oauth.public.js +0 -14
  77. package/build/es/src/identity-oauth-v1-refresh-token-oauth.public.js.map +0 -1
  78. package/build/es/src/identity-oauth-v1-refresh-token-oauth.types.js +0 -14
  79. package/build/es/src/identity-oauth-v1-refresh-token-oauth.types.js.map +0 -1
  80. package/build/es/src/identity-oauth-v1-refresh-token-oauth.universal.d.ts +0 -314
  81. package/build/es/src/identity-oauth-v1-refresh-token-oauth.universal.js +0 -115
  82. package/build/es/src/identity-oauth-v1-refresh-token-oauth.universal.js.map +0 -1
  83. package/build/internal/cjs/index.d.ts +0 -1
  84. package/build/internal/cjs/index.js +0 -18
  85. package/build/internal/cjs/index.js.map +0 -1
  86. package/build/internal/cjs/index.typings.d.ts +0 -1
  87. package/build/internal/cjs/index.typings.js +0 -18
  88. package/build/internal/cjs/index.typings.js.map +0 -1
  89. package/build/internal/cjs/meta.d.ts +0 -1
  90. package/build/internal/cjs/meta.js +0 -18
  91. package/build/internal/cjs/meta.js.map +0 -1
  92. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.context.d.ts +0 -6
  93. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.context.js +0 -10
  94. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.context.js.map +0 -1
  95. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.http.d.ts +0 -21
  96. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.http.js +0 -134
  97. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.http.js.map +0 -1
  98. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.meta.d.ts +0 -14
  99. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.meta.js +0 -66
  100. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.meta.js.map +0 -1
  101. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.public.d.ts +0 -34
  102. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.public.js +0 -20
  103. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.public.js.map +0 -1
  104. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.types.js +0 -17
  105. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.types.js.map +0 -1
  106. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.universal.d.ts +0 -314
  107. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.universal.js +0 -143
  108. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.universal.js.map +0 -1
  109. package/build/internal/es/index.d.ts +0 -1
  110. package/build/internal/es/index.js +0 -2
  111. package/build/internal/es/index.js.map +0 -1
  112. package/build/internal/es/index.typings.d.ts +0 -1
  113. package/build/internal/es/index.typings.js +0 -2
  114. package/build/internal/es/index.typings.js.map +0 -1
  115. package/build/internal/es/meta.d.ts +0 -1
  116. package/build/internal/es/meta.js +0 -2
  117. package/build/internal/es/meta.js.map +0 -1
  118. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.context.d.ts +0 -6
  119. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.context.js +0 -6
  120. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.context.js.map +0 -1
  121. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.http.d.ts +0 -21
  122. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.http.js +0 -129
  123. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.http.js.map +0 -1
  124. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.meta.d.ts +0 -14
  125. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.meta.js +0 -38
  126. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.meta.js.map +0 -1
  127. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.public.d.ts +0 -34
  128. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.public.js +0 -14
  129. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.public.js.map +0 -1
  130. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.types.js +0 -14
  131. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.types.js.map +0 -1
  132. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.universal.d.ts +0 -314
  133. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.universal.js +0 -115
  134. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.universal.js.map +0 -1
@@ -1,11 +1,11 @@
1
- export interface RefreshToken {
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
- export interface AuthorizeRequest {
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
- export interface RawHttpResponse {
73
+ interface RawHttpResponse {
74
74
  body?: Uint8Array;
75
75
  statusCode?: number | null;
76
76
  headers?: HeadersEntry[];
77
77
  }
78
- export interface HeadersEntry {
78
+ interface HeadersEntry {
79
79
  key?: string;
80
80
  value?: string;
81
81
  }
82
- export interface RawHttpRequest {
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
- export interface PathParametersEntry {
91
+ interface PathParametersEntry {
92
92
  key?: string;
93
93
  value?: string;
94
94
  }
95
- export interface QueryParametersEntry {
95
+ interface QueryParametersEntry {
96
96
  key?: string;
97
97
  value?: string;
98
98
  }
99
- export interface DeviceCodeRequest {
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
- export interface DeviceCodeResponse {
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
- export interface DeviceVerifyRequest {
120
+ interface DeviceVerifyRequest {
121
121
  /** User code representing a currently authorizing device. */
122
122
  userCode?: string;
123
123
  }
124
- export interface DeviceVerifyResponse {
124
+ interface DeviceVerifyResponse {
125
125
  }
126
- export interface DeviceVerifyV2Request {
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
- export interface DeviceVerifyV2Response {
134
+ interface DeviceVerifyV2Response {
135
135
  }
136
- export interface InvalidateUserCodeRequest {
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
- export interface InvalidateUserCodeResponse {
140
+ interface InvalidateUserCodeResponse {
141
141
  }
142
- export interface RevokeRefreshTokenRequest {
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
- export interface RevokeRefreshTokenResponse {
146
+ interface RevokeRefreshTokenResponse {
147
147
  }
148
- export interface TokenInfoResponse {
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
- export declare enum SubjectType {
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
- export interface Empty {
184
+ interface Empty {
185
185
  }
186
- export interface DomainEvent extends DomainEventBodyOneOf {
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
- id?: string;
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
- export interface DomainEventBodyOneOf {
229
+ interface DomainEventBodyOneOf {
230
230
  createdEvent?: EntityCreatedEvent;
231
231
  updatedEvent?: EntityUpdatedEvent;
232
232
  deletedEvent?: EntityDeletedEvent;
233
233
  actionEvent?: ActionEvent;
234
234
  }
235
- export interface EntityCreatedEvent {
236
- entityAsJson?: string;
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
- export interface RestoreInfo {
238
+ interface RestoreInfo {
241
239
  deletedDate?: Date | null;
242
240
  }
243
- export interface EntityUpdatedEvent {
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
- currentEntityAsJson?: string;
247
+ currentEntity?: string;
250
248
  }
251
- export interface EntityDeletedEvent {
249
+ interface EntityDeletedEvent {
252
250
  /** Entity that was deleted */
253
- deletedEntityAsJson?: string | null;
251
+ deletedEntity?: string | null;
254
252
  }
255
- export interface ActionEvent {
256
- bodyAsJson?: string;
253
+ interface ActionEvent {
254
+ body?: string;
257
255
  }
258
- interface HeadersEntryNonNullableFields {
259
- key: string;
260
- value: string;
261
- }
262
- export interface RawHttpResponseNonNullableFields {
263
- body: Uint8Array;
264
- headers: HeadersEntryNonNullableFields[];
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
- export interface TokenInfoResponseNonNullableFields {
267
- active: boolean;
268
- subjectType: SubjectType;
269
- subjectId: string;
270
- clientId: string;
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
- export {};
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
- export interface RefreshToken {
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
- export interface AuthorizeRequest {
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
- export interface RawHttpResponse {
73
+ interface RawHttpResponse {
74
74
  body?: Uint8Array;
75
75
  statusCode?: number | null;
76
76
  headers?: HeadersEntry[];
77
77
  }
78
- export interface HeadersEntry {
78
+ interface HeadersEntry {
79
79
  key?: string;
80
80
  value?: string;
81
81
  }
82
- export interface RawHttpRequest {
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
- export interface PathParametersEntry {
91
+ interface PathParametersEntry {
92
92
  key?: string;
93
93
  value?: string;
94
94
  }
95
- export interface QueryParametersEntry {
95
+ interface QueryParametersEntry {
96
96
  key?: string;
97
97
  value?: string;
98
98
  }
99
- export interface DeviceCodeRequest {
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
- export interface DeviceCodeResponse {
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
- export interface DeviceVerifyRequest {
120
+ interface DeviceVerifyRequest {
121
121
  /** User code representing a currently authorizing device. */
122
122
  userCode?: string;
123
123
  }
124
- export interface DeviceVerifyResponse {
124
+ interface DeviceVerifyResponse {
125
125
  }
126
- export interface DeviceVerifyV2Request {
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
- export interface DeviceVerifyV2Response {
134
+ interface DeviceVerifyV2Response {
135
135
  }
136
- export interface InvalidateUserCodeRequest {
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
- export interface InvalidateUserCodeResponse {
140
+ interface InvalidateUserCodeResponse {
141
141
  }
142
- export interface RevokeRefreshTokenRequest {
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
- export interface RevokeRefreshTokenResponse {
146
+ interface RevokeRefreshTokenResponse {
147
147
  }
148
- export interface TokenInfoResponse {
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
- export declare enum SubjectType {
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
- export interface Empty {
184
+ interface Empty {
185
185
  }
186
- export interface DomainEvent extends DomainEventBodyOneOf {
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
- id?: string;
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
- export interface DomainEventBodyOneOf {
229
+ interface DomainEventBodyOneOf {
230
230
  createdEvent?: EntityCreatedEvent;
231
231
  updatedEvent?: EntityUpdatedEvent;
232
232
  deletedEvent?: EntityDeletedEvent;
233
233
  actionEvent?: ActionEvent;
234
234
  }
235
- export interface EntityCreatedEvent {
236
- entityAsJson?: string;
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
- export interface RestoreInfo {
238
+ interface RestoreInfo {
241
239
  deletedDate?: Date | null;
242
240
  }
243
- export interface EntityUpdatedEvent {
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
- currentEntityAsJson?: string;
247
+ currentEntity?: string;
250
248
  }
251
- export interface EntityDeletedEvent {
249
+ interface EntityDeletedEvent {
252
250
  /** Entity that was deleted */
253
- deletedEntityAsJson?: string | null;
251
+ deletedEntity?: string | null;
254
252
  }
255
- export interface ActionEvent {
256
- bodyAsJson?: string;
253
+ interface ActionEvent {
254
+ body?: string;
257
255
  }
258
- interface HeadersEntryNonNullableFields {
259
- key: string;
260
- value: string;
261
- }
262
- export interface RawHttpResponseNonNullableFields {
263
- body: Uint8Array;
264
- headers: HeadersEntryNonNullableFields[];
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
- export interface TokenInfoResponseNonNullableFields {
267
- active: boolean;
268
- subjectType: SubjectType;
269
- subjectId: string;
270
- clientId: string;
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
- export {};
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 };