@wix/identity 1.0.74 → 1.0.75

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 (145) hide show
  1. package/build/cjs/context.d.ts +4 -0
  2. package/build/cjs/{index.typings.js → context.js} +5 -5
  3. package/build/cjs/context.js.map +1 -0
  4. package/build/cjs/index.d.ts +4 -4
  5. package/build/cjs/index.js +4 -4
  6. package/build/cjs/index.js.map +1 -1
  7. package/build/cjs/meta.d.ts +4 -4
  8. package/build/cjs/meta.js +4 -4
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/context.d.ts +4 -0
  11. package/build/es/context.js +5 -0
  12. package/build/es/context.js.map +1 -0
  13. package/build/es/index.d.ts +4 -4
  14. package/build/es/index.js +4 -4
  15. package/build/es/index.js.map +1 -1
  16. package/build/es/meta.d.ts +4 -4
  17. package/build/es/meta.js +4 -4
  18. package/build/es/meta.js.map +1 -1
  19. package/context/package.json +6 -0
  20. package/package.json +15 -8
  21. package/build/cjs/index.typings.d.ts +0 -4
  22. package/build/cjs/index.typings.js.map +0 -1
  23. package/build/cjs/src/iam-authentication-v1-authentication.http.d.ts +0 -28
  24. package/build/cjs/src/iam-authentication-v1-authentication.http.js +0 -408
  25. package/build/cjs/src/iam-authentication-v1-authentication.http.js.map +0 -1
  26. package/build/cjs/src/iam-authentication-v1-authentication.meta.d.ts +0 -21
  27. package/build/cjs/src/iam-authentication-v1-authentication.meta.js +0 -199
  28. package/build/cjs/src/iam-authentication-v1-authentication.meta.js.map +0 -1
  29. package/build/cjs/src/iam-authentication-v1-authentication.public.d.ts +0 -16
  30. package/build/cjs/src/iam-authentication-v1-authentication.public.js +0 -70
  31. package/build/cjs/src/iam-authentication-v1-authentication.public.js.map +0 -1
  32. package/build/cjs/src/iam-authentication-v1-authentication.types.d.ts +0 -669
  33. package/build/cjs/src/iam-authentication-v1-authentication.types.js +0 -78
  34. package/build/cjs/src/iam-authentication-v1-authentication.types.js.map +0 -1
  35. package/build/cjs/src/iam-authentication-v1-authentication.universal.d.ts +0 -790
  36. package/build/cjs/src/iam-authentication-v1-authentication.universal.js +0 -780
  37. package/build/cjs/src/iam-authentication-v1-authentication.universal.js.map +0 -1
  38. package/build/cjs/src/iam-recovery-v1-recovery.http.d.ts +0 -13
  39. package/build/cjs/src/iam-recovery-v1-recovery.http.js +0 -109
  40. package/build/cjs/src/iam-recovery-v1-recovery.http.js.map +0 -1
  41. package/build/cjs/src/iam-recovery-v1-recovery.meta.d.ts +0 -15
  42. package/build/cjs/src/iam-recovery-v1-recovery.meta.js +0 -85
  43. package/build/cjs/src/iam-recovery-v1-recovery.meta.js.map +0 -1
  44. package/build/cjs/src/iam-recovery-v1-recovery.public.d.ts +0 -10
  45. package/build/cjs/src/iam-recovery-v1-recovery.public.js +0 -33
  46. package/build/cjs/src/iam-recovery-v1-recovery.public.js.map +0 -1
  47. package/build/cjs/src/iam-recovery-v1-recovery.types.d.ts +0 -431
  48. package/build/cjs/src/iam-recovery-v1-recovery.types.js +0 -72
  49. package/build/cjs/src/iam-recovery-v1-recovery.types.js.map +0 -1
  50. package/build/cjs/src/iam-recovery-v1-recovery.universal.d.ts +0 -475
  51. package/build/cjs/src/iam-recovery-v1-recovery.universal.js +0 -335
  52. package/build/cjs/src/iam-recovery-v1-recovery.universal.js.map +0 -1
  53. package/build/cjs/src/iam-verification-v1-start-response.http.d.ts +0 -22
  54. package/build/cjs/src/iam-verification-v1-start-response.http.js +0 -132
  55. package/build/cjs/src/iam-verification-v1-start-response.http.js.map +0 -1
  56. package/build/cjs/src/iam-verification-v1-start-response.meta.d.ts +0 -15
  57. package/build/cjs/src/iam-verification-v1-start-response.meta.js +0 -85
  58. package/build/cjs/src/iam-verification-v1-start-response.meta.js.map +0 -1
  59. package/build/cjs/src/iam-verification-v1-start-response.public.d.ts +0 -10
  60. package/build/cjs/src/iam-verification-v1-start-response.public.js +0 -33
  61. package/build/cjs/src/iam-verification-v1-start-response.public.js.map +0 -1
  62. package/build/cjs/src/iam-verification-v1-start-response.types.d.ts +0 -398
  63. package/build/cjs/src/iam-verification-v1-start-response.types.js +0 -70
  64. package/build/cjs/src/iam-verification-v1-start-response.types.js.map +0 -1
  65. package/build/cjs/src/iam-verification-v1-start-response.universal.d.ts +0 -448
  66. package/build/cjs/src/iam-verification-v1-start-response.universal.js +0 -341
  67. package/build/cjs/src/iam-verification-v1-start-response.universal.js.map +0 -1
  68. package/build/cjs/src/identity-oauth-v1-refresh-token.http.d.ts +0 -14
  69. package/build/cjs/src/identity-oauth-v1-refresh-token.http.js +0 -154
  70. package/build/cjs/src/identity-oauth-v1-refresh-token.http.js.map +0 -1
  71. package/build/cjs/src/identity-oauth-v1-refresh-token.meta.d.ts +0 -17
  72. package/build/cjs/src/identity-oauth-v1-refresh-token.meta.js +0 -123
  73. package/build/cjs/src/identity-oauth-v1-refresh-token.meta.js.map +0 -1
  74. package/build/cjs/src/identity-oauth-v1-refresh-token.public.d.ts +0 -11
  75. package/build/cjs/src/identity-oauth-v1-refresh-token.public.js +0 -36
  76. package/build/cjs/src/identity-oauth-v1-refresh-token.public.js.map +0 -1
  77. package/build/cjs/src/identity-oauth-v1-refresh-token.types.d.ts +0 -206
  78. package/build/cjs/src/identity-oauth-v1-refresh-token.types.js +0 -3
  79. package/build/cjs/src/identity-oauth-v1-refresh-token.types.js.map +0 -1
  80. package/build/cjs/src/identity-oauth-v1-refresh-token.universal.d.ts +0 -319
  81. package/build/cjs/src/identity-oauth-v1-refresh-token.universal.js +0 -357
  82. package/build/cjs/src/identity-oauth-v1-refresh-token.universal.js.map +0 -1
  83. package/build/es/index.typings.d.ts +0 -4
  84. package/build/es/index.typings.js +0 -5
  85. package/build/es/index.typings.js.map +0 -1
  86. package/build/es/src/iam-authentication-v1-authentication.http.d.ts +0 -28
  87. package/build/es/src/iam-authentication-v1-authentication.http.js +0 -396
  88. package/build/es/src/iam-authentication-v1-authentication.http.js.map +0 -1
  89. package/build/es/src/iam-authentication-v1-authentication.meta.d.ts +0 -21
  90. package/build/es/src/iam-authentication-v1-authentication.meta.js +0 -164
  91. package/build/es/src/iam-authentication-v1-authentication.meta.js.map +0 -1
  92. package/build/es/src/iam-authentication-v1-authentication.public.d.ts +0 -16
  93. package/build/es/src/iam-authentication-v1-authentication.public.js +0 -49
  94. package/build/es/src/iam-authentication-v1-authentication.public.js.map +0 -1
  95. package/build/es/src/iam-authentication-v1-authentication.types.d.ts +0 -669
  96. package/build/es/src/iam-authentication-v1-authentication.types.js +0 -75
  97. package/build/es/src/iam-authentication-v1-authentication.types.js.map +0 -1
  98. package/build/es/src/iam-authentication-v1-authentication.universal.d.ts +0 -790
  99. package/build/es/src/iam-authentication-v1-authentication.universal.js +0 -745
  100. package/build/es/src/iam-authentication-v1-authentication.universal.js.map +0 -1
  101. package/build/es/src/iam-recovery-v1-recovery.http.d.ts +0 -13
  102. package/build/es/src/iam-recovery-v1-recovery.http.js +0 -103
  103. package/build/es/src/iam-recovery-v1-recovery.http.js.map +0 -1
  104. package/build/es/src/iam-recovery-v1-recovery.meta.d.ts +0 -15
  105. package/build/es/src/iam-recovery-v1-recovery.meta.js +0 -56
  106. package/build/es/src/iam-recovery-v1-recovery.meta.js.map +0 -1
  107. package/build/es/src/iam-recovery-v1-recovery.public.d.ts +0 -10
  108. package/build/es/src/iam-recovery-v1-recovery.public.js +0 -19
  109. package/build/es/src/iam-recovery-v1-recovery.public.js.map +0 -1
  110. package/build/es/src/iam-recovery-v1-recovery.types.d.ts +0 -431
  111. package/build/es/src/iam-recovery-v1-recovery.types.js +0 -69
  112. package/build/es/src/iam-recovery-v1-recovery.types.js.map +0 -1
  113. package/build/es/src/iam-recovery-v1-recovery.universal.d.ts +0 -475
  114. package/build/es/src/iam-recovery-v1-recovery.universal.js +0 -306
  115. package/build/es/src/iam-recovery-v1-recovery.universal.js.map +0 -1
  116. package/build/es/src/iam-verification-v1-start-response.http.d.ts +0 -22
  117. package/build/es/src/iam-verification-v1-start-response.http.js +0 -126
  118. package/build/es/src/iam-verification-v1-start-response.http.js.map +0 -1
  119. package/build/es/src/iam-verification-v1-start-response.meta.d.ts +0 -15
  120. package/build/es/src/iam-verification-v1-start-response.meta.js +0 -56
  121. package/build/es/src/iam-verification-v1-start-response.meta.js.map +0 -1
  122. package/build/es/src/iam-verification-v1-start-response.public.d.ts +0 -10
  123. package/build/es/src/iam-verification-v1-start-response.public.js +0 -19
  124. package/build/es/src/iam-verification-v1-start-response.public.js.map +0 -1
  125. package/build/es/src/iam-verification-v1-start-response.types.d.ts +0 -398
  126. package/build/es/src/iam-verification-v1-start-response.types.js +0 -67
  127. package/build/es/src/iam-verification-v1-start-response.types.js.map +0 -1
  128. package/build/es/src/iam-verification-v1-start-response.universal.d.ts +0 -448
  129. package/build/es/src/iam-verification-v1-start-response.universal.js +0 -312
  130. package/build/es/src/iam-verification-v1-start-response.universal.js.map +0 -1
  131. package/build/es/src/identity-oauth-v1-refresh-token.http.d.ts +0 -14
  132. package/build/es/src/identity-oauth-v1-refresh-token.http.js +0 -146
  133. package/build/es/src/identity-oauth-v1-refresh-token.http.js.map +0 -1
  134. package/build/es/src/identity-oauth-v1-refresh-token.meta.d.ts +0 -17
  135. package/build/es/src/identity-oauth-v1-refresh-token.meta.js +0 -92
  136. package/build/es/src/identity-oauth-v1-refresh-token.meta.js.map +0 -1
  137. package/build/es/src/identity-oauth-v1-refresh-token.public.d.ts +0 -11
  138. package/build/es/src/identity-oauth-v1-refresh-token.public.js +0 -28
  139. package/build/es/src/identity-oauth-v1-refresh-token.public.js.map +0 -1
  140. package/build/es/src/identity-oauth-v1-refresh-token.types.d.ts +0 -206
  141. package/build/es/src/identity-oauth-v1-refresh-token.types.js +0 -2
  142. package/build/es/src/identity-oauth-v1-refresh-token.types.js.map +0 -1
  143. package/build/es/src/identity-oauth-v1-refresh-token.universal.d.ts +0 -319
  144. package/build/es/src/identity-oauth-v1-refresh-token.universal.js +0 -326
  145. package/build/es/src/identity-oauth-v1-refresh-token.universal.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"identity-oauth-v1-refresh-token.public.js","sourceRoot":"","sources":["../../../src/identity-oauth-v1-refresh-token.public.ts"],"names":[],"mappings":"AACA,OAAO,EACL,SAAS,IAAI,kBAAkB,EAC/B,KAAK,IAAI,cAAc,EACvB,UAAU,IAAI,mBAAmB,EACjC,YAAY,IAAI,qBAAqB,EACrC,kBAAkB,IAAI,2BAA2B,GAMlD,MAAM,6CAA6C,CAAC;AAErD,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AAE5D,MAAM,UAAU,SAAS,CAAC,UAAsB;IAC9C,OAAO,CAAC,OAA0B,EAAE,EAAE,CACpC,kBAAkB,CAChB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,KAAK,CAAC,UAAsB;IAC1C,OAAO,CAAC,OAAsB,EAAE,EAAE,CAChC,cAAc,CACZ,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,UAAsB;IAC/C,OAAO,CAAC,OAA2B,EAAE,EAAE,CACrC,mBAAmB,CACjB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,UAAsB;IACjD,OAAO,CAAC,OAA6B,EAAE,EAAE,CACvC,qBAAqB,CACnB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,UAAsB;IACvD,OAAO,CAAC,OAAmC,EAAE,EAAE,CAC7C,2BAA2B,CACzB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC"}
@@ -1,206 +0,0 @@
1
- export interface RefreshToken {
2
- token?: string;
3
- }
4
- /**
5
- * AuthorizeRequest is sent by the client to the authorization server to initiate
6
- * the authorization process.
7
- */
8
- export interface AuthorizeRequest {
9
- /** ID of the Wix OAuth app requesting authorization. */
10
- clientId?: string;
11
- /**
12
- * Desired authorization [grant type](https://auth0.com/docs/authenticate/protocols/oauth#grant-types).
13
- *
14
- * Supported values:
15
- * + `code`: The endpoint returns an authorization code that can be used to obtain an access token.
16
- */
17
- responseType?: string;
18
- /** 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. */
19
- redirectUri?: string | null;
20
- /**
21
- * Desired scope of access. If this field is left empty, only an access token is granted.
22
- * To received a refresh token, pass `offline_access` as the value of this field.
23
- */
24
- scope?: string | null;
25
- /**
26
- * A value used to confirm the state of an application before and after it makes an authorization
27
- * request. If a value for this field is set in the request, it's added to the `redirectUri` when the browser
28
- * is redirected there.
29
- * Learn more about [using the state parameter](https://auth0.com/docs/secure/attack-protection/state-parameters).
30
- */
31
- state?: string;
32
- /**
33
- * esired response format.
34
- *
35
- * Supported values:
36
- * + `query`: The response parameters are encoded as query string parameters and added to the `redirectUri` when redirecting.
37
- * + `fragment`: The response parameters are encoded as URI fragment parameters and added to the `redirectUri` when redirecting.
38
- * + `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).
39
- *
40
- * Default value: `query`
41
- */
42
- responseMode?: string | null;
43
- /**
44
- * Code challenge to use for PKCE verification.
45
- * This field is only used if `responseType` is set to `code`.
46
- */
47
- codeChallenge?: string | null;
48
- /**
49
- * Code challenge method to use for PKCE verification.
50
- * This field is only used if `responseType` is set to `code`.
51
- *
52
- * Supported values:
53
- * + `S256`: The code challenge is transformed using SHA-256 encyption.
54
- * + `S512`: The code challenge is transformed using SHA-512 encyption.
55
- */
56
- codeChallengeMethod?: string | null;
57
- /** Session token of the site visitor to authorize. */
58
- sessionToken?: string | null;
59
- }
60
- export interface RawHttpResponse {
61
- body?: Uint8Array;
62
- statusCode?: number | null;
63
- headers?: HeadersEntry[];
64
- }
65
- export interface HeadersEntry {
66
- key?: string;
67
- value?: string;
68
- }
69
- export interface RawHttpRequest {
70
- body?: Uint8Array;
71
- pathParams?: PathParametersEntry[];
72
- queryParams?: QueryParametersEntry[];
73
- headers?: HeadersEntry[];
74
- method?: string;
75
- rawPath?: string;
76
- rawQuery?: string;
77
- }
78
- export interface PathParametersEntry {
79
- key?: string;
80
- value?: string;
81
- }
82
- export interface QueryParametersEntry {
83
- key?: string;
84
- value?: string;
85
- }
86
- export interface DeviceCodeRequest {
87
- /** The ID of the application that asks for authorization. */
88
- clientId?: string;
89
- /**
90
- * scope is a space-delimited string that specifies the requested scope of the
91
- * access request.
92
- */
93
- scope?: string | null;
94
- }
95
- export interface DeviceCodeResponse {
96
- /** 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. */
97
- deviceCode?: string;
98
- /** contains the code that should be input at the verification_uri to authorize the device. */
99
- userCode?: string;
100
- /** contains the URL the user should visit to authorize the device. */
101
- verificationUri?: string;
102
- /** indicates the lifetime (in seconds) of the device_code and user_code. */
103
- expiresIn?: number;
104
- /** 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 */
105
- interval?: number | null;
106
- }
107
- export interface DeviceVerifyRequest {
108
- /** User code representing a currently authorizing device. */
109
- userCode?: string;
110
- }
111
- export interface DeviceVerifyResponse {
112
- }
113
- export interface InvalidateUserCodeRequest {
114
- /** user code to invalidate. Only the authorizing identity is able to invalidate it. */
115
- userCode?: string;
116
- }
117
- export interface InvalidateUserCodeResponse {
118
- }
119
- export interface RevokeRefreshTokenRequest {
120
- /** The refresh token itself. Anyone with the token itself is able to revoke it. */
121
- token?: string;
122
- }
123
- export interface RevokeRefreshTokenResponse {
124
- }
125
- export interface Empty {
126
- }
127
- export interface DomainEvent extends DomainEventBodyOneOf {
128
- createdEvent?: EntityCreatedEvent;
129
- updatedEvent?: EntityUpdatedEvent;
130
- deletedEvent?: EntityDeletedEvent;
131
- actionEvent?: ActionEvent;
132
- /**
133
- * Unique event ID.
134
- * Allows clients to ignore duplicate webhooks.
135
- */
136
- id?: string;
137
- /**
138
- * Assumes actions are also always typed to an entity_type
139
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
140
- */
141
- entityFqdn?: string;
142
- /**
143
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
144
- * This is although the created/updated/deleted notion is duplication of the oneof types
145
- * Example: created/updated/deleted/started/completed/email_opened
146
- */
147
- slug?: string;
148
- /** ID of the entity associated with the event. */
149
- entityId?: string;
150
- /** Event timestamp. */
151
- eventTime?: Date;
152
- /**
153
- * Whether the event was triggered as a result of a privacy regulation application
154
- * (for example, GDPR).
155
- */
156
- triggeredByAnonymizeRequest?: boolean | null;
157
- /** If present, indicates the action that triggered the event. */
158
- originatedFrom?: string | null;
159
- /**
160
- * A sequence number defining the order of updates to the underlying entity.
161
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
162
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
163
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
164
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
165
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
166
- */
167
- entityEventSequence?: string | null;
168
- }
169
- /** @oneof */
170
- export interface DomainEventBodyOneOf {
171
- createdEvent?: EntityCreatedEvent;
172
- updatedEvent?: EntityUpdatedEvent;
173
- deletedEvent?: EntityDeletedEvent;
174
- actionEvent?: ActionEvent;
175
- }
176
- export interface EntityCreatedEvent {
177
- entityAsJson?: string;
178
- }
179
- export interface EntityUpdatedEvent {
180
- /**
181
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
182
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
183
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
184
- */
185
- currentEntityAsJson?: string;
186
- }
187
- export interface EntityDeletedEvent {
188
- /** Entity that was deleted */
189
- deletedEntityAsJson?: string | null;
190
- }
191
- export interface ActionEvent {
192
- bodyAsJson?: string;
193
- }
194
- export interface RawHttpResponseNonNullableFields {
195
- body: Uint8Array;
196
- headers: {
197
- key: string;
198
- value: string;
199
- }[];
200
- }
201
- export interface DeviceCodeResponseNonNullableFields {
202
- deviceCode: string;
203
- userCode: string;
204
- verificationUri: string;
205
- expiresIn: number;
206
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=identity-oauth-v1-refresh-token.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"identity-oauth-v1-refresh-token.types.js","sourceRoot":"","sources":["../../../src/identity-oauth-v1-refresh-token.types.ts"],"names":[],"mappings":""}
@@ -1,319 +0,0 @@
1
- export declare const __debug: {
2
- verboseLogging: {
3
- on: () => boolean;
4
- off: () => boolean;
5
- };
6
- };
7
- export interface RefreshToken {
8
- token?: string;
9
- }
10
- /**
11
- * AuthorizeRequest is sent by the client to the authorization server to initiate
12
- * the authorization process.
13
- */
14
- export interface AuthorizeRequest {
15
- /** ID of the Wix OAuth app requesting authorization. */
16
- clientId?: string;
17
- /**
18
- * Desired authorization [grant type](https://auth0.com/docs/authenticate/protocols/oauth#grant-types).
19
- *
20
- * Supported values:
21
- * + `code`: The endpoint returns an authorization code that can be used to obtain an access token.
22
- */
23
- responseType?: string;
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
- redirectUri?: string | null;
26
- /**
27
- * Desired scope of access. If this field is left empty, only an access token is granted.
28
- * To received a refresh token, pass `offline_access` as the value of this field.
29
- */
30
- scope?: string | null;
31
- /**
32
- * A value used to confirm the state of an application before and after it makes an authorization
33
- * request. If a value for this field is set in the request, it's added to the `redirectUri` when the browser
34
- * is redirected there.
35
- * Learn more about [using the state parameter](https://auth0.com/docs/secure/attack-protection/state-parameters).
36
- */
37
- state?: string;
38
- /**
39
- * esired response format.
40
- *
41
- * Supported values:
42
- * + `query`: The response parameters are encoded as query string parameters and added to the `redirectUri` when redirecting.
43
- * + `fragment`: The response parameters are encoded as URI fragment parameters and added to the `redirectUri` when redirecting.
44
- * + `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).
45
- *
46
- * Default value: `query`
47
- */
48
- responseMode?: string | null;
49
- /**
50
- * Code challenge to use for PKCE verification.
51
- * This field is only used if `responseType` is set to `code`.
52
- */
53
- codeChallenge?: string | null;
54
- /**
55
- * Code challenge method to use for PKCE verification.
56
- * This field is only used if `responseType` is set to `code`.
57
- *
58
- * Supported values:
59
- * + `S256`: The code challenge is transformed using SHA-256 encyption.
60
- * + `S512`: The code challenge is transformed using SHA-512 encyption.
61
- */
62
- codeChallengeMethod?: string | null;
63
- /** Session token of the site visitor to authorize. */
64
- sessionToken?: string | null;
65
- }
66
- export interface RawHttpResponse {
67
- body?: Uint8Array;
68
- statusCode?: number | null;
69
- headers?: HeadersEntry[];
70
- }
71
- export interface HeadersEntry {
72
- key?: string;
73
- value?: string;
74
- }
75
- export interface RawHttpRequest {
76
- body?: Uint8Array;
77
- pathParams?: PathParametersEntry[];
78
- queryParams?: QueryParametersEntry[];
79
- headers?: HeadersEntry[];
80
- method?: string;
81
- rawPath?: string;
82
- rawQuery?: string;
83
- }
84
- export interface PathParametersEntry {
85
- key?: string;
86
- value?: string;
87
- }
88
- export interface QueryParametersEntry {
89
- key?: string;
90
- value?: string;
91
- }
92
- export interface DeviceCodeRequest {
93
- /** The ID of the application that asks for authorization. */
94
- clientId?: string;
95
- /**
96
- * scope is a space-delimited string that specifies the requested scope of the
97
- * access request.
98
- */
99
- scope?: string | null;
100
- }
101
- export interface DeviceCodeResponse {
102
- /** 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. */
103
- deviceCode?: string;
104
- /** contains the code that should be input at the verification_uri to authorize the device. */
105
- userCode?: string;
106
- /** contains the URL the user should visit to authorize the device. */
107
- verificationUri?: string;
108
- /** indicates the lifetime (in seconds) of the device_code and user_code. */
109
- expiresIn?: number;
110
- /** 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 */
111
- interval?: number | null;
112
- }
113
- export interface DeviceVerifyRequest {
114
- /** User code representing a currently authorizing device. */
115
- userCode?: string;
116
- }
117
- export interface DeviceVerifyResponse {
118
- }
119
- export interface InvalidateUserCodeRequest {
120
- /** user code to invalidate. Only the authorizing identity is able to invalidate it. */
121
- userCode?: string;
122
- }
123
- export interface InvalidateUserCodeResponse {
124
- }
125
- export interface RevokeRefreshTokenRequest {
126
- /** The refresh token itself. Anyone with the token itself is able to revoke it. */
127
- token?: string;
128
- }
129
- export interface RevokeRefreshTokenResponse {
130
- }
131
- export interface Empty {
132
- }
133
- export interface DomainEvent extends DomainEventBodyOneOf {
134
- createdEvent?: EntityCreatedEvent;
135
- updatedEvent?: EntityUpdatedEvent;
136
- deletedEvent?: EntityDeletedEvent;
137
- actionEvent?: ActionEvent;
138
- /**
139
- * Unique event ID.
140
- * Allows clients to ignore duplicate webhooks.
141
- */
142
- _id?: string;
143
- /**
144
- * Assumes actions are also always typed to an entity_type
145
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
146
- */
147
- entityFqdn?: string;
148
- /**
149
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
150
- * This is although the created/updated/deleted notion is duplication of the oneof types
151
- * Example: created/updated/deleted/started/completed/email_opened
152
- */
153
- slug?: string;
154
- /** ID of the entity associated with the event. */
155
- entityId?: string;
156
- /** Event timestamp. */
157
- eventTime?: Date;
158
- /**
159
- * Whether the event was triggered as a result of a privacy regulation application
160
- * (for example, GDPR).
161
- */
162
- triggeredByAnonymizeRequest?: boolean | null;
163
- /** If present, indicates the action that triggered the event. */
164
- originatedFrom?: string | null;
165
- /**
166
- * A sequence number defining the order of updates to the underlying entity.
167
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
168
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
169
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
170
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
171
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
172
- */
173
- entityEventSequence?: string | null;
174
- }
175
- /** @oneof */
176
- export interface DomainEventBodyOneOf {
177
- createdEvent?: EntityCreatedEvent;
178
- updatedEvent?: EntityUpdatedEvent;
179
- deletedEvent?: EntityDeletedEvent;
180
- actionEvent?: ActionEvent;
181
- }
182
- export interface EntityCreatedEvent {
183
- entityAsJson?: string;
184
- }
185
- export interface EntityUpdatedEvent {
186
- /**
187
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
188
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
189
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
190
- */
191
- currentEntityAsJson?: string;
192
- }
193
- export interface EntityDeletedEvent {
194
- /** Entity that was deleted */
195
- deletedEntityAsJson?: string | null;
196
- }
197
- export interface ActionEvent {
198
- bodyAsJson?: string;
199
- }
200
- export interface RawHttpResponseNonNullableFields {
201
- body: Uint8Array;
202
- headers: {
203
- key: string;
204
- value: string;
205
- }[];
206
- }
207
- export interface DeviceCodeResponseNonNullableFields {
208
- deviceCode: string;
209
- userCode: string;
210
- verificationUri: string;
211
- expiresIn: number;
212
- }
213
- /** @public
214
- * @documentationMaturity preview
215
- */
216
- export declare function authorize(options?: AuthorizeOptions): Promise<RawHttpResponse & RawHttpResponseNonNullableFields>;
217
- export interface AuthorizeOptions {
218
- /** ID of the Wix OAuth app requesting authorization. */
219
- clientId?: string;
220
- /**
221
- * Desired authorization [grant type](https://auth0.com/docs/authenticate/protocols/oauth#grant-types).
222
- *
223
- * Supported values:
224
- * + `code`: The endpoint returns an authorization code that can be used to obtain an access token.
225
- */
226
- responseType?: string;
227
- /** 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. */
228
- redirectUri?: string | null;
229
- /**
230
- * Desired scope of access. If this field is left empty, only an access token is granted.
231
- * To received a refresh token, pass `offline_access` as the value of this field.
232
- */
233
- scope?: string | null;
234
- /**
235
- * A value used to confirm the state of an application before and after it makes an authorization
236
- * request. If a value for this field is set in the request, it's added to the `redirectUri` when the browser
237
- * is redirected there.
238
- * Learn more about [using the state parameter](https://auth0.com/docs/secure/attack-protection/state-parameters).
239
- */
240
- state?: string;
241
- /**
242
- * esired response format.
243
- *
244
- * Supported values:
245
- * + `query`: The response parameters are encoded as query string parameters and added to the `redirectUri` when redirecting.
246
- * + `fragment`: The response parameters are encoded as URI fragment parameters and added to the `redirectUri` when redirecting.
247
- * + `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).
248
- *
249
- * Default value: `query`
250
- */
251
- responseMode?: string | null;
252
- /**
253
- * Code challenge to use for PKCE verification.
254
- * This field is only used if `responseType` is set to `code`.
255
- */
256
- codeChallenge?: string | null;
257
- /**
258
- * Code challenge method to use for PKCE verification.
259
- * This field is only used if `responseType` is set to `code`.
260
- *
261
- * Supported values:
262
- * + `S256`: The code challenge is transformed using SHA-256 encyption.
263
- * + `S512`: The code challenge is transformed using SHA-512 encyption.
264
- */
265
- codeChallengeMethod?: string | null;
266
- /** Session token of the site visitor to authorize. */
267
- sessionToken?: string | null;
268
- }
269
- /**
270
- * Token endpoint accepts the TokenRequest message encoded in the raw http request body, and returns either
271
- * TokenResponse(status code = 200) or TokenErrorResponse (status code = 4XX) encoded in the raw http response body.
272
- * @public
273
- * @documentationMaturity preview
274
- */
275
- export declare function token(options?: TokenOptions): Promise<RawHttpResponse & RawHttpResponseNonNullableFields>;
276
- export interface TokenOptions {
277
- body?: Uint8Array;
278
- pathParams?: PathParametersEntry[];
279
- queryParams?: QueryParametersEntry[];
280
- headers?: HeadersEntry[];
281
- method?: string;
282
- rawPath?: string;
283
- rawQuery?: string;
284
- }
285
- /**
286
- * this endpoint serves the Device Authorization Flow as described in https://www.rfc-editor.org/rfc/pdfrfc/rfc8628.txt.pdf
287
- * @public
288
- * @documentationMaturity preview
289
- */
290
- export declare function deviceCode(options?: DeviceCodeOptions): Promise<DeviceCodeResponse & DeviceCodeResponseNonNullableFields>;
291
- export interface DeviceCodeOptions {
292
- /** The ID of the application that asks for authorization. */
293
- clientId?: string;
294
- /**
295
- * scope is a space-delimited string that specifies the requested scope of the
296
- * access request.
297
- */
298
- scope?: string | null;
299
- }
300
- /**
301
- * this endpoint serves the Device Authorization Flow as described in https://www.rfc-editor.org/rfc/pdfrfc/rfc8628.txt.pdf
302
- * @public
303
- * @documentationMaturity preview
304
- */
305
- export declare function deviceVerify(options?: DeviceVerifyOptions): Promise<void>;
306
- export interface DeviceVerifyOptions {
307
- /** User code representing a currently authorizing device. */
308
- userCode?: string;
309
- }
310
- /**
311
- * Revoke a refresh token created by this service.
312
- * @public
313
- * @documentationMaturity preview
314
- */
315
- export declare function revokeRefreshToken(options?: RevokeRefreshTokenOptions): Promise<void>;
316
- export interface RevokeRefreshTokenOptions {
317
- /** The refresh token itself. Anyone with the token itself is able to revoke it. */
318
- token?: string;
319
- }