@wix/auto_sdk_identity_oauth 1.0.59 → 1.0.61

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.
@@ -4,6 +4,171 @@ import '@wix/sdk-types';
4
4
  interface RefreshToken {
5
5
  token?: string;
6
6
  }
7
+ /**
8
+ * TokenRequest is sent by the client to the authorization server to request an
9
+ * access token.
10
+ */
11
+ interface TokenRequest extends TokenRequestTenantOneOf {
12
+ /** supported tenant - specific site */
13
+ siteId?: string | null;
14
+ /** supported tenant - specific account */
15
+ accountId?: string | null;
16
+ /** The application id that want to obtain an access token. */
17
+ clientId?: string | null;
18
+ /**
19
+ * grant_type specifies the grant type being used. supported grant types are:
20
+ * `authorization_code`, `client_credentials`, `refresh_token`, `urn:ietf:params:oauth:grant-type:device_code`, `anonymous`,
21
+ * `urn:ietf:params:oauth:grant-type:token-exchange`
22
+ */
23
+ grantType?: string;
24
+ /** Required for `refresh_token` grant type. */
25
+ refreshToken?: string | null;
26
+ /** Required for `client_credentials` grant type. */
27
+ clientSecret?: string | null;
28
+ /**
29
+ * Required for `urn:ietf:params:oauth:grant-type:device_code` grant type. The device verification code, "device_code" from the
30
+ * device authorization response
31
+ */
32
+ deviceCode?: string | null;
33
+ /** Required for the `authorization_code` grant type. */
34
+ redirectUri?: string | null;
35
+ /** Required for `authorization_code` grant type. */
36
+ code?: string | null;
37
+ /** Optional, used if code challenge and code method were used in `authorization_code` grant type. */
38
+ codeVerifier?: string | null;
39
+ /** Required for `authorized_client` grant type - create tokens for a specific user. */
40
+ userId?: string | null;
41
+ /** Required for `authorized_client` grant type - create tokens for a specific member using api-key. */
42
+ memberId?: string | null;
43
+ /**
44
+ * Required for `client_credentials` grant type with clientId that represents an external app.
45
+ * An access token will be created based on the app installed version of an instance.
46
+ */
47
+ instanceId?: string | null;
48
+ /** Required for `authorized_client` grant type for externalApp and must be bounded with client id, create access token to an app with a specific version. */
49
+ appVersion?: string | null;
50
+ /** Required for `strip_bound_session` grant type - create token without bound session. */
51
+ accessToken?: string | null;
52
+ /**
53
+ * Optional for `authorized_client` grant type - create tokens for a specific user.
54
+ * @format GUID
55
+ */
56
+ userAccountId?: string | null;
57
+ /**
58
+ * Optional for `authorized_client` grant type - bind the issued tokens to a specific session (session-bound wixAT/wixRT).
59
+ * Internal-only: used by the server-to-server switchAccount flow via Oauth2NgInternal.
60
+ * @internal
61
+ * @format GUID
62
+ */
63
+ sessionId?: string | null;
64
+ /**
65
+ * Optional for `authorized_client` grant type (member tokens) - a member session token that is opened server-side to
66
+ * extract the bound session id, producing session-bound wixAT/wixRT. Public: used by the member flow from public traffic.
67
+ */
68
+ sessionToken?: string | null;
69
+ /**
70
+ * Optional for `authorized_client` grant type - attach an impersonating user id to the minted token.
71
+ * Internal-only: used by server-to-server flows where a service mints a token carrying impersonation context.
72
+ * @internal
73
+ * @format GUID
74
+ */
75
+ impersonatingUserId?: string | null;
76
+ /**
77
+ * Required for the `urn:ietf:params:oauth:grant-type:token-exchange` grant - the account-level access token being
78
+ * exchanged for one scoped to the target named by the `tenant` oneof.
79
+ */
80
+ subjectToken?: string | null;
81
+ /**
82
+ * Required for the `urn:ietf:params:oauth:grant-type:token-exchange` grant - identifies the type of `subject_token`.
83
+ * Only `urn:ietf:params:oauth:token-type:access_token` is supported.
84
+ * @maxLength 100
85
+ */
86
+ subjectTokenType?: string | null;
87
+ }
88
+ /** @oneof */
89
+ interface TokenRequestTenantOneOf {
90
+ /** supported tenant - specific site */
91
+ siteId?: string | null;
92
+ /** supported tenant - specific account */
93
+ accountId?: string | null;
94
+ }
95
+ interface InternalTokenResponse extends InternalTokenResponseResultOneOf {
96
+ success?: TokenResponse;
97
+ failure?: TokenErrorResponse;
98
+ }
99
+ /** @oneof */
100
+ interface InternalTokenResponseResultOneOf {
101
+ success?: TokenResponse;
102
+ failure?: TokenErrorResponse;
103
+ }
104
+ interface TokenResponse {
105
+ /** The access token issued by the authorization server. */
106
+ accessToken?: string;
107
+ /** The type of the token issued as described in Section 7.1. of the oauth2 rfc. */
108
+ tokenType?: string;
109
+ /**
110
+ * The lifetime in seconds of the access token. For example, the value "3600" denotes that the access token will
111
+ * expire in one hour from the time the response was generated.
112
+ */
113
+ expiresIn?: number;
114
+ /** The refresh token, which can be used to obtain new access tokens. */
115
+ refreshToken?: string | null;
116
+ /** OPTIONAL, if identical to the scope requested by the client; otherwise, will be sent. */
117
+ scope?: string | null;
118
+ idToken?: string | null;
119
+ /**
120
+ * Set only for the `urn:ietf:params:oauth:grant-type:token-exchange` grant, where it is always
121
+ * `urn:ietf:params:oauth:token-type:access_token`. Empty for every other grant.
122
+ * @maxLength 100
123
+ */
124
+ issuedTokenType?: string | null;
125
+ }
126
+ interface TokenErrorResponse {
127
+ error?: string;
128
+ errorDescription?: string | null;
129
+ }
130
+ interface TokenInfoRequest {
131
+ /** The access token to introspect. */
132
+ token?: string;
133
+ }
134
+ interface TokenInfoResponse {
135
+ active?: boolean;
136
+ /** subject type. */
137
+ subjectType?: SubjectTypeWithLiterals;
138
+ /** subject id */
139
+ subjectId?: string;
140
+ /** Expiration time of the token */
141
+ exp?: string | null;
142
+ /** Issued time of the token */
143
+ iat?: string | null;
144
+ /** Client id */
145
+ clientId?: string;
146
+ /** Account id */
147
+ accountId?: string | null;
148
+ /** Site id */
149
+ siteId?: string | null;
150
+ /** Instance Id */
151
+ instanceId?: string | null;
152
+ /**
153
+ * Vendor Product Id
154
+ * @maxLength 100
155
+ */
156
+ vendorProductId?: string | null;
157
+ }
158
+ declare enum SubjectType {
159
+ /** unknown subject type */
160
+ UNKNOWN = "UNKNOWN",
161
+ /** user subject type */
162
+ USER = "USER",
163
+ /** visitor subject type */
164
+ VISITOR = "VISITOR",
165
+ /** member subject type */
166
+ MEMBER = "MEMBER",
167
+ /** app subject type */
168
+ APP = "APP"
169
+ }
170
+ /** @enumType */
171
+ type SubjectTypeWithLiterals = SubjectType | 'UNKNOWN' | 'USER' | 'VISITOR' | 'MEMBER' | 'APP';
7
172
  /**
8
173
  * AuthorizeRequest is sent by the client to the authorization server to initiate
9
174
  * the authorization process.
@@ -266,44 +431,6 @@ interface RevokeRefreshTokenRequest {
266
431
  }
267
432
  interface RevokeRefreshTokenResponse {
268
433
  }
269
- interface TokenInfoResponse {
270
- active?: boolean;
271
- /** subject type. */
272
- subjectType?: SubjectTypeWithLiterals;
273
- /** subject id */
274
- subjectId?: string;
275
- /** Expiration time of the token */
276
- exp?: string | null;
277
- /** Issued time of the token */
278
- iat?: string | null;
279
- /** Client id */
280
- clientId?: string;
281
- /** Account id */
282
- accountId?: string | null;
283
- /** Site id */
284
- siteId?: string | null;
285
- /** Instance Id */
286
- instanceId?: string | null;
287
- /**
288
- * Vendor Product Id
289
- * @maxLength 100
290
- */
291
- vendorProductId?: string | null;
292
- }
293
- declare enum SubjectType {
294
- /** unknown subject type */
295
- UNKNOWN = "UNKNOWN",
296
- /** user subject type */
297
- USER = "USER",
298
- /** visitor subject type */
299
- VISITOR = "VISITOR",
300
- /** member subject type */
301
- MEMBER = "MEMBER",
302
- /** app subject type */
303
- APP = "APP"
304
- }
305
- /** @enumType */
306
- type SubjectTypeWithLiterals = SubjectType | 'UNKNOWN' | 'USER' | 'VISITOR' | 'MEMBER' | 'APP';
307
434
  interface Empty {
308
435
  }
309
436
  interface DomainEvent extends DomainEventBodyOneOf {
@@ -481,4 +608,4 @@ declare function jwks(): __PublicMethodMetaInfo<'GET', {}, JwksRequest$1, JwksRe
481
608
  declare function tokenInfo(): __PublicMethodMetaInfo<'POST', {}, RawHttpRequest$1, RawHttpRequest, TokenInfoResponse$1, TokenInfoResponse>;
482
609
  declare function userInfo(): __PublicMethodMetaInfo<'GET', {}, UserInfoRequest$1, UserInfoRequest, UserInfoResponse$1, UserInfoResponse>;
483
610
 
484
- export { type ActionEvent as ActionEventOriginal, type AuthorizeRequest as AuthorizeRequestOriginal, type DeviceAuthorizationInfoRequest as DeviceAuthorizationInfoRequestOriginal, type DeviceAuthorizationInfoResponse as DeviceAuthorizationInfoResponseOriginal, type DeviceAuthorizeRequest as DeviceAuthorizeRequestOriginal, type DeviceAuthorizeResponse as DeviceAuthorizeResponseOriginal, type DeviceCodeRequest as DeviceCodeRequestOriginal, type DeviceCodeResponse as DeviceCodeResponseOriginal, type DeviceVerifyRequest as DeviceVerifyRequestOriginal, type DeviceVerifyResponse as DeviceVerifyResponseOriginal, type DeviceVerifyV2Request as DeviceVerifyV2RequestOriginal, type DeviceVerifyV2Response as DeviceVerifyV2ResponseOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type HeadersEntry as HeadersEntryOriginal, type InvalidateUserCodeRequest as InvalidateUserCodeRequestOriginal, type InvalidateUserCodeResponse as InvalidateUserCodeResponseOriginal, type JwksRequest as JwksRequestOriginal, type PathParametersEntry as PathParametersEntryOriginal, type QueryParametersEntry as QueryParametersEntryOriginal, type RawHttpRequest as RawHttpRequestOriginal, type RawHttpResponse as RawHttpResponseOriginal, type RefreshToken as RefreshTokenOriginal, type RestoreInfo as RestoreInfoOriginal, type RevokeRefreshTokenRequest as RevokeRefreshTokenRequestOriginal, type RevokeRefreshTokenResponse as RevokeRefreshTokenResponseOriginal, SubjectType as SubjectTypeOriginal, type SubjectTypeWithLiterals as SubjectTypeWithLiteralsOriginal, type TokenInfoResponse as TokenInfoResponseOriginal, type UserBlockedEvent as UserBlockedEventOriginal, type UserDeletedEvent as UserDeletedEventOriginal, type UserInfoRequest as UserInfoRequestOriginal, type UserInfoResponse as UserInfoResponseOriginal, type __PublicMethodMetaInfo, jwks, token, tokenInfo, userInfo };
611
+ export { type ActionEvent as ActionEventOriginal, type AuthorizeRequest as AuthorizeRequestOriginal, type DeviceAuthorizationInfoRequest as DeviceAuthorizationInfoRequestOriginal, type DeviceAuthorizationInfoResponse as DeviceAuthorizationInfoResponseOriginal, type DeviceAuthorizeRequest as DeviceAuthorizeRequestOriginal, type DeviceAuthorizeResponse as DeviceAuthorizeResponseOriginal, type DeviceCodeRequest as DeviceCodeRequestOriginal, type DeviceCodeResponse as DeviceCodeResponseOriginal, type DeviceVerifyRequest as DeviceVerifyRequestOriginal, type DeviceVerifyResponse as DeviceVerifyResponseOriginal, type DeviceVerifyV2Request as DeviceVerifyV2RequestOriginal, type DeviceVerifyV2Response as DeviceVerifyV2ResponseOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type HeadersEntry as HeadersEntryOriginal, type InternalTokenResponse as InternalTokenResponseOriginal, type InternalTokenResponseResultOneOf as InternalTokenResponseResultOneOfOriginal, type InvalidateUserCodeRequest as InvalidateUserCodeRequestOriginal, type InvalidateUserCodeResponse as InvalidateUserCodeResponseOriginal, type JwksRequest as JwksRequestOriginal, type PathParametersEntry as PathParametersEntryOriginal, type QueryParametersEntry as QueryParametersEntryOriginal, type RawHttpRequest as RawHttpRequestOriginal, type RawHttpResponse as RawHttpResponseOriginal, type RefreshToken as RefreshTokenOriginal, type RestoreInfo as RestoreInfoOriginal, type RevokeRefreshTokenRequest as RevokeRefreshTokenRequestOriginal, type RevokeRefreshTokenResponse as RevokeRefreshTokenResponseOriginal, SubjectType as SubjectTypeOriginal, type SubjectTypeWithLiterals as SubjectTypeWithLiteralsOriginal, type TokenErrorResponse as TokenErrorResponseOriginal, type TokenInfoRequest as TokenInfoRequestOriginal, type TokenInfoResponse as TokenInfoResponseOriginal, type TokenRequest as TokenRequestOriginal, type TokenRequestTenantOneOf as TokenRequestTenantOneOfOriginal, type TokenResponse as TokenResponseOriginal, type UserBlockedEvent as UserBlockedEventOriginal, type UserDeletedEvent as UserDeletedEventOriginal, type UserInfoRequest as UserInfoRequestOriginal, type UserInfoResponse as UserInfoResponseOriginal, type __PublicMethodMetaInfo, jwks, token, tokenInfo, userInfo };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_identity_oauth",
3
- "version": "1.0.59",
3
+ "version": "1.0.61",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -29,8 +29,8 @@
29
29
  "service-plugins"
30
30
  ],
31
31
  "dependencies": {
32
- "@wix/sdk-runtime": "^1.0.28",
33
- "@wix/sdk-types": "^1.17.11"
32
+ "@wix/sdk-runtime": "^1.0.30",
33
+ "@wix/sdk-types": "^1.17.12"
34
34
  },
35
35
  "devDependencies": {
36
36
  "tsup": "^8.4.0",
@@ -50,5 +50,5 @@
50
50
  "fqdn": "wix.identity.oauth.v1.refresh_token"
51
51
  }
52
52
  },
53
- "falconPackageHash": "5dcfb356ebf33f02e41a2b809f07a944d01428b483063ce7ef3d7373"
53
+ "falconPackageHash": "cfe07115fa89d9b4c1401f42b6e1d0c189f4f76eb59e60acb9f7ae7a"
54
54
  }