@wix/auto_sdk_identity_oauth 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +1 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.context.d.ts +6 -0
- package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.context.js +10 -0
- package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.context.js.map +1 -0
- package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.http.d.ts +21 -0
- package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.http.js +134 -0
- package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.http.js.map +1 -0
- package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.meta.d.ts +14 -0
- package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.meta.js +66 -0
- package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.meta.js.map +1 -0
- package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.public.d.ts +34 -0
- package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.public.js +20 -0
- package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.public.js.map +1 -0
- package/build/{identity-oauth-v1-refresh-token-oauth.universal-BzqSyI-5.d.mts → cjs/src/identity-oauth-v1-refresh-token-oauth.types.d.ts} +34 -52
- package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.types.js +17 -0
- package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.types.js.map +1 -0
- package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.universal.d.ts +300 -0
- package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.universal.js +143 -0
- package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/src/identity-oauth-v1-refresh-token-oauth.context.d.ts +6 -0
- package/build/es/src/identity-oauth-v1-refresh-token-oauth.context.js +6 -0
- package/build/es/src/identity-oauth-v1-refresh-token-oauth.context.js.map +1 -0
- package/build/es/src/identity-oauth-v1-refresh-token-oauth.http.d.ts +21 -0
- package/build/es/src/identity-oauth-v1-refresh-token-oauth.http.js +129 -0
- package/build/es/src/identity-oauth-v1-refresh-token-oauth.http.js.map +1 -0
- package/build/es/src/identity-oauth-v1-refresh-token-oauth.meta.d.ts +14 -0
- package/build/es/src/identity-oauth-v1-refresh-token-oauth.meta.js +38 -0
- package/build/es/src/identity-oauth-v1-refresh-token-oauth.meta.js.map +1 -0
- package/build/es/src/identity-oauth-v1-refresh-token-oauth.public.d.ts +34 -0
- package/build/es/src/identity-oauth-v1-refresh-token-oauth.public.js +14 -0
- package/build/es/src/identity-oauth-v1-refresh-token-oauth.public.js.map +1 -0
- package/build/{identity-oauth-v1-refresh-token-oauth.universal-BzqSyI-5.d.ts → es/src/identity-oauth-v1-refresh-token-oauth.types.d.ts} +34 -52
- package/build/es/src/identity-oauth-v1-refresh-token-oauth.types.js +14 -0
- package/build/es/src/identity-oauth-v1-refresh-token-oauth.types.js.map +1 -0
- package/build/es/src/identity-oauth-v1-refresh-token-oauth.universal.d.ts +300 -0
- package/build/es/src/identity-oauth-v1-refresh-token-oauth.universal.js +115 -0
- package/build/es/src/identity-oauth-v1-refresh-token-oauth.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.context.d.ts +6 -0
- package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.context.js +10 -0
- package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.context.js.map +1 -0
- package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.http.d.ts +21 -0
- package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.http.js +134 -0
- package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.http.js.map +1 -0
- package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.meta.d.ts +14 -0
- package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.meta.js +66 -0
- package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.meta.js.map +1 -0
- package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.public.d.ts +34 -0
- package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.public.js +20 -0
- package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.public.js.map +1 -0
- package/build/internal/{identity-oauth-v1-refresh-token-oauth.universal-BzqSyI-5.d.mts → cjs/src/identity-oauth-v1-refresh-token-oauth.types.d.ts} +34 -52
- package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.types.js +17 -0
- package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.types.js.map +1 -0
- package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.universal.d.ts +300 -0
- package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.universal.js +143 -0
- package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.context.d.ts +6 -0
- package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.context.js +6 -0
- package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.context.js.map +1 -0
- package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.http.d.ts +21 -0
- package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.http.js +129 -0
- package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.http.js.map +1 -0
- package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.meta.d.ts +14 -0
- package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.meta.js +38 -0
- package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.meta.js.map +1 -0
- package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.public.d.ts +34 -0
- package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.public.js +14 -0
- package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.public.js.map +1 -0
- package/build/internal/{identity-oauth-v1-refresh-token-oauth.universal-BzqSyI-5.d.ts → es/src/identity-oauth-v1-refresh-token-oauth.types.d.ts} +34 -52
- package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.types.js +14 -0
- package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.types.js.map +1 -0
- package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.universal.d.ts +300 -0
- package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.universal.js +115 -0
- package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.universal.js.map +1 -0
- package/package.json +11 -12
- package/build/index.d.mts +0 -37
- package/build/index.d.ts +0 -37
- package/build/index.js +0 -259
- package/build/index.js.map +0 -1
- package/build/index.mjs +0 -233
- package/build/index.mjs.map +0 -1
- package/build/internal/index.d.mts +0 -37
- package/build/internal/index.d.ts +0 -37
- package/build/internal/index.js +0 -259
- package/build/internal/index.js.map +0 -1
- package/build/internal/index.mjs +0 -233
- package/build/internal/index.mjs.map +0 -1
- package/build/internal/meta.d.mts +0 -79
- package/build/internal/meta.d.ts +0 -79
- package/build/internal/meta.js +0 -182
- package/build/internal/meta.js.map +0 -1
- package/build/internal/meta.mjs +0 -154
- package/build/internal/meta.mjs.map +0 -1
- package/build/meta.d.mts +0 -79
- package/build/meta.d.ts +0 -79
- package/build/meta.js +0 -182
- package/build/meta.js.map +0 -1
- package/build/meta.mjs +0 -154
- package/build/meta.mjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/identity-oauth-v1-refresh-token-oauth.context.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./src/identity-oauth-v1-refresh-token-oauth.context.js"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yFAAuE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/identity-oauth-v1-refresh-token-oauth.universal.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./src/identity-oauth-v1-refresh-token-oauth.universal.js"), exports);
|
|
18
|
+
//# sourceMappingURL=index.typings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../index.typings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2FAAyE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/identity-oauth-v1-refresh-token-oauth.meta.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./src/identity-oauth-v1-refresh-token-oauth.meta.js"), exports);
|
|
18
|
+
//# sourceMappingURL=meta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sFAAoE"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { token as publicToken, tokenInfo as publicTokenInfo } from './identity-oauth-v1-refresh-token-oauth.public.js';
|
|
2
|
+
import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
|
|
3
|
+
export declare const token: MaybeContext<BuildRESTFunction<typeof publicToken> & typeof publicToken>;
|
|
4
|
+
export declare const tokenInfo: MaybeContext<BuildRESTFunction<typeof publicTokenInfo> & typeof publicTokenInfo>;
|
|
5
|
+
export { SubjectType } from './identity-oauth-v1-refresh-token-oauth.universal.js';
|
|
6
|
+
export { RefreshToken, AuthorizeRequest, RawHttpResponse, HeadersEntry, RawHttpRequest, PathParametersEntry, QueryParametersEntry, DeviceCodeRequest, DeviceCodeResponse, DeviceVerifyRequest, DeviceVerifyResponse, DeviceVerifyV2Request, DeviceVerifyV2Response, InvalidateUserCodeRequest, InvalidateUserCodeResponse, RevokeRefreshTokenRequest, RevokeRefreshTokenResponse, TokenInfoResponse, Empty, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, TokenOptions, TokenInfoOptions, } from './identity-oauth-v1-refresh-token-oauth.universal.js';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SubjectType = exports.tokenInfo = exports.token = void 0;
|
|
4
|
+
const identity_oauth_v1_refresh_token_oauth_public_js_1 = require("./identity-oauth-v1-refresh-token-oauth.public.js");
|
|
5
|
+
const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
|
|
6
|
+
exports.token = (0, rest_modules_1.createRESTModule)(identity_oauth_v1_refresh_token_oauth_public_js_1.token);
|
|
7
|
+
exports.tokenInfo = (0, rest_modules_1.createRESTModule)(identity_oauth_v1_refresh_token_oauth_public_js_1.tokenInfo);
|
|
8
|
+
var identity_oauth_v1_refresh_token_oauth_universal_js_1 = require("./identity-oauth-v1-refresh-token-oauth.universal.js");
|
|
9
|
+
Object.defineProperty(exports, "SubjectType", { enumerable: true, get: function () { return identity_oauth_v1_refresh_token_oauth_universal_js_1.SubjectType; } });
|
|
10
|
+
//# sourceMappingURL=identity-oauth-v1-refresh-token-oauth.context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identity-oauth-v1-refresh-token-oauth.context.js","sourceRoot":"","sources":["../../../src/identity-oauth-v1-refresh-token-oauth.context.ts"],"names":[],"mappings":";;;AAAA,uHAG2D;AAC3D,gEAAiE;AAGpD,QAAA,KAAK,GAEA,IAAA,+BAAgB,EAAC,uDAAW,CAAC,CAAC;AACnC,QAAA,SAAS,GAEJ,IAAA,+BAAgB,EAAC,2DAAe,CAAC,CAAC;AAEpD,2HAAmF;AAA1E,iJAAA,WAAW,OAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
+
/**
|
|
3
|
+
* Creates an access token.
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
* The endpoint accepts raw HTTP requests. You must pass the request's body
|
|
7
|
+
* parameters formatted as bytes in the raw HTTP request's `body` field,
|
|
8
|
+
* following this template:
|
|
9
|
+
* `{"grantType": "client_credentials", "client_id": "<APP_ID>", "client_secret": "<APP_SECRET_KEY>", "instance_id": "<INSTANCE_ID>"}`.
|
|
10
|
+
*
|
|
11
|
+
* When the call succeeds, Wix returns `{"statusCode": 200}` and the created access
|
|
12
|
+
* token in the `body` field of the raw HTTP response.
|
|
13
|
+
*
|
|
14
|
+
* In case the call fails, Wix returns the relevant `4XX` error code in the raw
|
|
15
|
+
* HTTP response's `statusCode` field and details
|
|
16
|
+
* about the error in `body`. Error details follow the
|
|
17
|
+
* [conventions of the Internet Engineering Task Force (IETF)](https://datatracker.ietf.org/doc/html/rfc6749#appendix-A.7).
|
|
18
|
+
*/
|
|
19
|
+
export declare function token(payload: object): RequestOptionsFactory<any>;
|
|
20
|
+
/** Token Introspection Endpoint. */
|
|
21
|
+
export declare function tokenInfo(payload: object): RequestOptionsFactory<any>;
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.tokenInfo = exports.token = void 0;
|
|
4
|
+
const bytes_1 = require("@wix/sdk-runtime/transformations/bytes");
|
|
5
|
+
const bytes_2 = require("@wix/sdk-runtime/transformations/bytes");
|
|
6
|
+
const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
7
|
+
const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
|
|
8
|
+
function resolveWixIdentityOauth2V1Oauth2NgUrl(opts) {
|
|
9
|
+
const domainToMappings = {
|
|
10
|
+
'manage._base_domain_': [
|
|
11
|
+
{
|
|
12
|
+
srcPath: '/oauth2',
|
|
13
|
+
destPath: '/v1/oauth',
|
|
14
|
+
},
|
|
15
|
+
],
|
|
16
|
+
'www.wixapis.com': [
|
|
17
|
+
{
|
|
18
|
+
srcPath: '/oauth2',
|
|
19
|
+
destPath: '/v1/oauth',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
srcPath: '/oauth2/token_info',
|
|
23
|
+
destPath: '/v1/token_info',
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
'users._base_domain_': [
|
|
27
|
+
{
|
|
28
|
+
srcPath: '/v1/oauth/device/verify',
|
|
29
|
+
destPath: '/v1/oauth/device/verify',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
srcPath: '/v1/oauth/manage/user-code',
|
|
33
|
+
destPath: '/v1/oauth/manage/user-code',
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
srcPath: '/v2/oauth/device/verify',
|
|
37
|
+
destPath: '/v2/oauth/device/verify',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
srcPath: '/v1/oauth/authorize',
|
|
41
|
+
destPath: '/v1/oauth/authorize',
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
_: [
|
|
45
|
+
{
|
|
46
|
+
srcPath: '/_api/oauth2',
|
|
47
|
+
destPath: '/v1/oauth',
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
'platform.rise.ai': [
|
|
51
|
+
{
|
|
52
|
+
srcPath: '/oauth2',
|
|
53
|
+
destPath: '/v1/oauth',
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
'api._api_base_domain_': [
|
|
57
|
+
{
|
|
58
|
+
srcPath: '/oauth2-ng',
|
|
59
|
+
destPath: '',
|
|
60
|
+
},
|
|
61
|
+
],
|
|
62
|
+
};
|
|
63
|
+
return (0, rest_modules_1.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
64
|
+
}
|
|
65
|
+
const PACKAGE_NAME = '@wix/auto_sdk_identity_oauth';
|
|
66
|
+
/**
|
|
67
|
+
* Creates an access token.
|
|
68
|
+
*
|
|
69
|
+
*
|
|
70
|
+
* The endpoint accepts raw HTTP requests. You must pass the request's body
|
|
71
|
+
* parameters formatted as bytes in the raw HTTP request's `body` field,
|
|
72
|
+
* following this template:
|
|
73
|
+
* `{"grantType": "client_credentials", "client_id": "<APP_ID>", "client_secret": "<APP_SECRET_KEY>", "instance_id": "<INSTANCE_ID>"}`.
|
|
74
|
+
*
|
|
75
|
+
* When the call succeeds, Wix returns `{"statusCode": 200}` and the created access
|
|
76
|
+
* token in the `body` field of the raw HTTP response.
|
|
77
|
+
*
|
|
78
|
+
* In case the call fails, Wix returns the relevant `4XX` error code in the raw
|
|
79
|
+
* HTTP response's `statusCode` field and details
|
|
80
|
+
* about the error in `body`. Error details follow the
|
|
81
|
+
* [conventions of the Internet Engineering Task Force (IETF)](https://datatracker.ietf.org/doc/html/rfc6749#appendix-A.7).
|
|
82
|
+
*/
|
|
83
|
+
function token(payload) {
|
|
84
|
+
function __token({ host }) {
|
|
85
|
+
const serializedData = (0, transform_paths_1.transformPaths)(payload, [
|
|
86
|
+
{ transformFn: bytes_1.transformSDKBytesToRESTBytes, paths: [{ path: 'body' }] },
|
|
87
|
+
]);
|
|
88
|
+
const metadata = {
|
|
89
|
+
entityFqdn: 'wix.identity.oauth.v1.refresh_token',
|
|
90
|
+
method: 'POST',
|
|
91
|
+
methodFqn: 'wix.identity.oauth2.v1.Oauth2Ng.Token',
|
|
92
|
+
packageName: PACKAGE_NAME,
|
|
93
|
+
url: resolveWixIdentityOauth2V1Oauth2NgUrl({
|
|
94
|
+
protoPath: '/v1/oauth/token',
|
|
95
|
+
data: serializedData,
|
|
96
|
+
host,
|
|
97
|
+
}),
|
|
98
|
+
data: serializedData,
|
|
99
|
+
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
100
|
+
{
|
|
101
|
+
transformFn: bytes_2.transformRESTBytesToSDKBytes,
|
|
102
|
+
paths: [{ path: 'body' }],
|
|
103
|
+
},
|
|
104
|
+
]),
|
|
105
|
+
};
|
|
106
|
+
return metadata;
|
|
107
|
+
}
|
|
108
|
+
return __token;
|
|
109
|
+
}
|
|
110
|
+
exports.token = token;
|
|
111
|
+
/** Token Introspection Endpoint. */
|
|
112
|
+
function tokenInfo(payload) {
|
|
113
|
+
function __tokenInfo({ host }) {
|
|
114
|
+
const serializedData = (0, transform_paths_1.transformPaths)(payload, [
|
|
115
|
+
{ transformFn: bytes_1.transformSDKBytesToRESTBytes, paths: [{ path: 'body' }] },
|
|
116
|
+
]);
|
|
117
|
+
const metadata = {
|
|
118
|
+
entityFqdn: 'wix.identity.oauth.v1.refresh_token',
|
|
119
|
+
method: 'POST',
|
|
120
|
+
methodFqn: 'wix.identity.oauth2.v1.Oauth2Ng.TokenInfo',
|
|
121
|
+
packageName: PACKAGE_NAME,
|
|
122
|
+
url: resolveWixIdentityOauth2V1Oauth2NgUrl({
|
|
123
|
+
protoPath: '/v1/oauth/token-info',
|
|
124
|
+
data: serializedData,
|
|
125
|
+
host,
|
|
126
|
+
}),
|
|
127
|
+
data: serializedData,
|
|
128
|
+
};
|
|
129
|
+
return metadata;
|
|
130
|
+
}
|
|
131
|
+
return __tokenInfo;
|
|
132
|
+
}
|
|
133
|
+
exports.tokenInfo = tokenInfo;
|
|
134
|
+
//# sourceMappingURL=identity-oauth-v1-refresh-token-oauth.http.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identity-oauth-v1-refresh-token-oauth.http.js","sourceRoot":"","sources":["../../../src/identity-oauth-v1-refresh-token-oauth.http.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as ambassadorWixIdentityOauthV1RefreshTokenTypes from './identity-oauth-v1-refresh-token-oauth.types.js';
|
|
2
|
+
import * as ambassadorWixIdentityOauthV1RefreshTokenUniversalTypes from './identity-oauth-v1-refresh-token-oauth.universal.js';
|
|
3
|
+
export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
4
|
+
getUrl: (context: any) => string;
|
|
5
|
+
httpMethod: K;
|
|
6
|
+
path: string;
|
|
7
|
+
pathParams: M;
|
|
8
|
+
__requestType: T;
|
|
9
|
+
__originalRequestType: S;
|
|
10
|
+
__responseType: Q;
|
|
11
|
+
__originalResponseType: R;
|
|
12
|
+
};
|
|
13
|
+
export declare function token(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixIdentityOauthV1RefreshTokenUniversalTypes.RawHttpRequest, ambassadorWixIdentityOauthV1RefreshTokenTypes.RawHttpRequest, ambassadorWixIdentityOauthV1RefreshTokenUniversalTypes.RawHttpResponse, ambassadorWixIdentityOauthV1RefreshTokenTypes.RawHttpResponse>;
|
|
14
|
+
export declare function tokenInfo(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixIdentityOauthV1RefreshTokenUniversalTypes.RawHttpRequest, ambassadorWixIdentityOauthV1RefreshTokenTypes.RawHttpRequest, ambassadorWixIdentityOauthV1RefreshTokenUniversalTypes.TokenInfoResponse, ambassadorWixIdentityOauthV1RefreshTokenTypes.TokenInfoResponse>;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.tokenInfo = exports.token = void 0;
|
|
27
|
+
const ambassadorWixIdentityOauthV1RefreshToken = __importStar(require("./identity-oauth-v1-refresh-token-oauth.http.js"));
|
|
28
|
+
function token() {
|
|
29
|
+
const payload = {};
|
|
30
|
+
const getRequestOptions = ambassadorWixIdentityOauthV1RefreshToken.token(payload);
|
|
31
|
+
const getUrl = (context) => {
|
|
32
|
+
const { url } = getRequestOptions(context);
|
|
33
|
+
return url;
|
|
34
|
+
};
|
|
35
|
+
return {
|
|
36
|
+
getUrl,
|
|
37
|
+
httpMethod: 'POST',
|
|
38
|
+
path: '/v1/oauth/token',
|
|
39
|
+
pathParams: {},
|
|
40
|
+
__requestType: null,
|
|
41
|
+
__originalRequestType: null,
|
|
42
|
+
__responseType: null,
|
|
43
|
+
__originalResponseType: null,
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
exports.token = token;
|
|
47
|
+
function tokenInfo() {
|
|
48
|
+
const payload = {};
|
|
49
|
+
const getRequestOptions = ambassadorWixIdentityOauthV1RefreshToken.tokenInfo(payload);
|
|
50
|
+
const getUrl = (context) => {
|
|
51
|
+
const { url } = getRequestOptions(context);
|
|
52
|
+
return url;
|
|
53
|
+
};
|
|
54
|
+
return {
|
|
55
|
+
getUrl,
|
|
56
|
+
httpMethod: 'POST',
|
|
57
|
+
path: '/v1/oauth/token-info',
|
|
58
|
+
pathParams: {},
|
|
59
|
+
__requestType: null,
|
|
60
|
+
__originalRequestType: null,
|
|
61
|
+
__responseType: null,
|
|
62
|
+
__originalResponseType: null,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
exports.tokenInfo = tokenInfo;
|
|
66
|
+
//# sourceMappingURL=identity-oauth-v1-refresh-token-oauth.meta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identity-oauth-v1-refresh-token-oauth.meta.js","sourceRoot":"","sources":["../../../src/identity-oauth-v1-refresh-token-oauth.meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0HAA4G;AAsB5G,SAAgB,KAAK;IAQnB,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,wCAAwC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAE1D,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,iBAAiB;QACvB,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA5BD,sBA4BC;AAED,SAAgB,SAAS;IAQvB,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,wCAAwC,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;IAE9D,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,sBAAsB;QAC5B,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA5BD,8BA4BC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
+
import { RawHttpResponse, TokenInfoOptions, TokenInfoResponse, TokenOptions } from './identity-oauth-v1-refresh-token-oauth.universal.js';
|
|
3
|
+
export declare const __metadata: {
|
|
4
|
+
PACKAGE_NAME: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function token(httpClient: HttpClient): TokenSignature;
|
|
7
|
+
interface TokenSignature {
|
|
8
|
+
/**
|
|
9
|
+
* Creates an access token.
|
|
10
|
+
*
|
|
11
|
+
*
|
|
12
|
+
* The endpoint accepts raw HTTP requests. You must pass the request's body
|
|
13
|
+
* parameters formatted as bytes in the raw HTTP request's `body` field,
|
|
14
|
+
* following this template:
|
|
15
|
+
* `{"grantType": "client_credentials", "client_id": "<APP_ID>", "client_secret": "<APP_SECRET_KEY>", "instance_id": "<INSTANCE_ID>"}`.
|
|
16
|
+
*
|
|
17
|
+
* When the call succeeds, Wix returns `{"statusCode": 200}` and the created access
|
|
18
|
+
* token in the `body` field of the raw HTTP response.
|
|
19
|
+
*
|
|
20
|
+
* In case the call fails, Wix returns the relevant `4XX` error code in the raw
|
|
21
|
+
* HTTP response's `statusCode` field and details
|
|
22
|
+
* about the error in `body`. Error details follow the
|
|
23
|
+
* [conventions of the Internet Engineering Task Force (IETF)](https://datatracker.ietf.org/doc/html/rfc6749#appendix-A.7).
|
|
24
|
+
*/
|
|
25
|
+
(options?: TokenOptions | undefined): Promise<RawHttpResponse>;
|
|
26
|
+
}
|
|
27
|
+
export declare function tokenInfo(httpClient: HttpClient): TokenInfoSignature;
|
|
28
|
+
interface TokenInfoSignature {
|
|
29
|
+
/**
|
|
30
|
+
* Token Introspection Endpoint.
|
|
31
|
+
*/
|
|
32
|
+
(options?: TokenInfoOptions | undefined): Promise<TokenInfoResponse>;
|
|
33
|
+
}
|
|
34
|
+
export { ActionEvent, AuthorizeRequest, DeviceCodeRequest, DeviceCodeResponse, DeviceVerifyRequest, DeviceVerifyResponse, DeviceVerifyV2Request, DeviceVerifyV2Response, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, HeadersEntry, InvalidateUserCodeRequest, InvalidateUserCodeResponse, PathParametersEntry, QueryParametersEntry, RawHttpRequest, RawHttpResponse, RefreshToken, RestoreInfo, RevokeRefreshTokenRequest, RevokeRefreshTokenResponse, SubjectType, TokenInfoOptions, TokenInfoResponse, TokenOptions, } from './identity-oauth-v1-refresh-token-oauth.universal.js';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SubjectType = exports.tokenInfo = exports.token = exports.__metadata = void 0;
|
|
4
|
+
const identity_oauth_v1_refresh_token_oauth_universal_js_1 = require("./identity-oauth-v1-refresh-token-oauth.universal.js");
|
|
5
|
+
exports.__metadata = { PACKAGE_NAME: '@wix/identity' };
|
|
6
|
+
function token(httpClient) {
|
|
7
|
+
return (options) => (0, identity_oauth_v1_refresh_token_oauth_universal_js_1.token)(options,
|
|
8
|
+
// @ts-ignore
|
|
9
|
+
{ httpClient });
|
|
10
|
+
}
|
|
11
|
+
exports.token = token;
|
|
12
|
+
function tokenInfo(httpClient) {
|
|
13
|
+
return (options) => (0, identity_oauth_v1_refresh_token_oauth_universal_js_1.tokenInfo)(options,
|
|
14
|
+
// @ts-ignore
|
|
15
|
+
{ httpClient });
|
|
16
|
+
}
|
|
17
|
+
exports.tokenInfo = tokenInfo;
|
|
18
|
+
var identity_oauth_v1_refresh_token_oauth_universal_js_2 = require("./identity-oauth-v1-refresh-token-oauth.universal.js");
|
|
19
|
+
Object.defineProperty(exports, "SubjectType", { enumerable: true, get: function () { return identity_oauth_v1_refresh_token_oauth_universal_js_2.SubjectType; } });
|
|
20
|
+
//# sourceMappingURL=identity-oauth-v1-refresh-token-oauth.public.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identity-oauth-v1-refresh-token-oauth.public.js","sourceRoot":"","sources":["../../../src/identity-oauth-v1-refresh-token-oauth.public.ts"],"names":[],"mappings":";;;AACA,6HAO8D;AAEjD,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AAE5D,SAAgB,KAAK,CAAC,UAAsB;IAC1C,OAAO,CAAC,OAAsB,EAAE,EAAE,CAChC,IAAA,0DAAc,EACZ,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,sBAOC;AAuBD,SAAgB,SAAS,CAAC,UAAsB;IAC9C,OAAO,CAAC,OAA0B,EAAE,EAAE,CACpC,IAAA,8DAAkB,EAChB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,8BAOC;AASD,2HA8B8D;AAJ5D,iJAAA,WAAW,OAAA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
interface RefreshToken {
|
|
1
|
+
export 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
|
-
interface AuthorizeRequest {
|
|
8
|
+
export interface AuthorizeRequest {
|
|
9
9
|
/**
|
|
10
10
|
* ID of the Wix OAuth app requesting authorization.
|
|
11
11
|
* @format GUID
|
|
@@ -70,16 +70,16 @@ interface AuthorizeRequest {
|
|
|
70
70
|
*/
|
|
71
71
|
signInUrl?: string | null;
|
|
72
72
|
}
|
|
73
|
-
interface RawHttpResponse {
|
|
73
|
+
export interface RawHttpResponse {
|
|
74
74
|
body?: Uint8Array;
|
|
75
75
|
statusCode?: number | null;
|
|
76
76
|
headers?: HeadersEntry[];
|
|
77
77
|
}
|
|
78
|
-
interface HeadersEntry {
|
|
78
|
+
export interface HeadersEntry {
|
|
79
79
|
key?: string;
|
|
80
80
|
value?: string;
|
|
81
81
|
}
|
|
82
|
-
interface RawHttpRequest {
|
|
82
|
+
export interface RawHttpRequest {
|
|
83
83
|
body?: Uint8Array;
|
|
84
84
|
pathParams?: PathParametersEntry[];
|
|
85
85
|
queryParams?: QueryParametersEntry[];
|
|
@@ -88,15 +88,15 @@ interface RawHttpRequest {
|
|
|
88
88
|
rawPath?: string;
|
|
89
89
|
rawQuery?: string;
|
|
90
90
|
}
|
|
91
|
-
interface PathParametersEntry {
|
|
91
|
+
export interface PathParametersEntry {
|
|
92
92
|
key?: string;
|
|
93
93
|
value?: string;
|
|
94
94
|
}
|
|
95
|
-
interface QueryParametersEntry {
|
|
95
|
+
export interface QueryParametersEntry {
|
|
96
96
|
key?: string;
|
|
97
97
|
value?: string;
|
|
98
98
|
}
|
|
99
|
-
interface DeviceCodeRequest {
|
|
99
|
+
export interface DeviceCodeRequest {
|
|
100
100
|
/** The ID of the application that asks for authorization. */
|
|
101
101
|
clientId?: string;
|
|
102
102
|
/**
|
|
@@ -105,7 +105,7 @@ interface DeviceCodeRequest {
|
|
|
105
105
|
*/
|
|
106
106
|
scope?: string | null;
|
|
107
107
|
}
|
|
108
|
-
interface DeviceCodeResponse {
|
|
108
|
+
export 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 @@ 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
|
-
interface DeviceVerifyRequest {
|
|
120
|
+
export interface DeviceVerifyRequest {
|
|
121
121
|
/** User code representing a currently authorizing device. */
|
|
122
122
|
userCode?: string;
|
|
123
123
|
}
|
|
124
|
-
interface DeviceVerifyResponse {
|
|
124
|
+
export interface DeviceVerifyResponse {
|
|
125
125
|
}
|
|
126
|
-
interface DeviceVerifyV2Request {
|
|
126
|
+
export interface DeviceVerifyV2Request {
|
|
127
127
|
/**
|
|
128
128
|
* User code representing a currently authorizing device.
|
|
129
129
|
* @minLength 8
|
|
@@ -131,21 +131,21 @@ interface DeviceVerifyV2Request {
|
|
|
131
131
|
*/
|
|
132
132
|
userCode?: string;
|
|
133
133
|
}
|
|
134
|
-
interface DeviceVerifyV2Response {
|
|
134
|
+
export interface DeviceVerifyV2Response {
|
|
135
135
|
}
|
|
136
|
-
interface InvalidateUserCodeRequest {
|
|
136
|
+
export interface InvalidateUserCodeRequest {
|
|
137
137
|
/** user code to invalidate. Only the authorizing identity is able to invalidate it. */
|
|
138
138
|
userCode?: string;
|
|
139
139
|
}
|
|
140
|
-
interface InvalidateUserCodeResponse {
|
|
140
|
+
export interface InvalidateUserCodeResponse {
|
|
141
141
|
}
|
|
142
|
-
interface RevokeRefreshTokenRequest {
|
|
142
|
+
export 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
|
-
interface RevokeRefreshTokenResponse {
|
|
146
|
+
export interface RevokeRefreshTokenResponse {
|
|
147
147
|
}
|
|
148
|
-
interface TokenInfoResponse {
|
|
148
|
+
export interface TokenInfoResponse {
|
|
149
149
|
active?: boolean;
|
|
150
150
|
/** subject type. */
|
|
151
151
|
subjectType?: SubjectType;
|
|
@@ -169,7 +169,7 @@ interface TokenInfoResponse {
|
|
|
169
169
|
*/
|
|
170
170
|
vendorProductId?: string | null;
|
|
171
171
|
}
|
|
172
|
-
declare enum SubjectType {
|
|
172
|
+
export declare enum SubjectType {
|
|
173
173
|
/** unknown subject type */
|
|
174
174
|
UNKNOWN = "UNKNOWN",
|
|
175
175
|
/** user subject type */
|
|
@@ -181,9 +181,9 @@ declare enum SubjectType {
|
|
|
181
181
|
/** app subject type */
|
|
182
182
|
APP = "APP"
|
|
183
183
|
}
|
|
184
|
-
interface Empty {
|
|
184
|
+
export interface Empty {
|
|
185
185
|
}
|
|
186
|
-
interface DomainEvent extends DomainEventBodyOneOf {
|
|
186
|
+
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
187
187
|
createdEvent?: EntityCreatedEvent;
|
|
188
188
|
updatedEvent?: EntityUpdatedEvent;
|
|
189
189
|
deletedEvent?: EntityDeletedEvent;
|
|
@@ -192,7 +192,7 @@ 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,50 +226,32 @@ interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
226
226
|
entityEventSequence?: string | null;
|
|
227
227
|
}
|
|
228
228
|
/** @oneof */
|
|
229
|
-
interface DomainEventBodyOneOf {
|
|
229
|
+
export interface DomainEventBodyOneOf {
|
|
230
230
|
createdEvent?: EntityCreatedEvent;
|
|
231
231
|
updatedEvent?: EntityUpdatedEvent;
|
|
232
232
|
deletedEvent?: EntityDeletedEvent;
|
|
233
233
|
actionEvent?: ActionEvent;
|
|
234
234
|
}
|
|
235
|
-
interface EntityCreatedEvent {
|
|
236
|
-
|
|
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;
|
|
237
239
|
}
|
|
238
|
-
interface RestoreInfo {
|
|
240
|
+
export interface RestoreInfo {
|
|
239
241
|
deletedDate?: Date | null;
|
|
240
242
|
}
|
|
241
|
-
interface EntityUpdatedEvent {
|
|
243
|
+
export interface EntityUpdatedEvent {
|
|
242
244
|
/**
|
|
243
245
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
244
246
|
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
245
247
|
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
246
248
|
*/
|
|
247
|
-
|
|
249
|
+
currentEntityAsJson?: string;
|
|
248
250
|
}
|
|
249
|
-
interface EntityDeletedEvent {
|
|
251
|
+
export interface EntityDeletedEvent {
|
|
250
252
|
/** Entity that was deleted */
|
|
251
|
-
|
|
253
|
+
deletedEntityAsJson?: string | null;
|
|
252
254
|
}
|
|
253
|
-
interface ActionEvent {
|
|
254
|
-
|
|
255
|
+
export interface ActionEvent {
|
|
256
|
+
bodyAsJson?: string;
|
|
255
257
|
}
|
|
256
|
-
interface TokenOptions {
|
|
257
|
-
body?: Uint8Array;
|
|
258
|
-
pathParams?: PathParametersEntry[];
|
|
259
|
-
queryParams?: QueryParametersEntry[];
|
|
260
|
-
headers?: HeadersEntry[];
|
|
261
|
-
method?: string;
|
|
262
|
-
rawPath?: string;
|
|
263
|
-
rawQuery?: string;
|
|
264
|
-
}
|
|
265
|
-
interface TokenInfoOptions {
|
|
266
|
-
body?: Uint8Array;
|
|
267
|
-
pathParams?: PathParametersEntry[];
|
|
268
|
-
queryParams?: QueryParametersEntry[];
|
|
269
|
-
headers?: HeadersEntry[];
|
|
270
|
-
method?: string;
|
|
271
|
-
rawPath?: string;
|
|
272
|
-
rawQuery?: string;
|
|
273
|
-
}
|
|
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,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SubjectType = void 0;
|
|
4
|
+
var SubjectType;
|
|
5
|
+
(function (SubjectType) {
|
|
6
|
+
/** unknown subject type */
|
|
7
|
+
SubjectType["UNKNOWN"] = "UNKNOWN";
|
|
8
|
+
/** user subject type */
|
|
9
|
+
SubjectType["USER"] = "USER";
|
|
10
|
+
/** visitor subject type */
|
|
11
|
+
SubjectType["VISITOR"] = "VISITOR";
|
|
12
|
+
/** member subject type */
|
|
13
|
+
SubjectType["MEMBER"] = "MEMBER";
|
|
14
|
+
/** app subject type */
|
|
15
|
+
SubjectType["APP"] = "APP";
|
|
16
|
+
})(SubjectType || (exports.SubjectType = SubjectType = {}));
|
|
17
|
+
//# sourceMappingURL=identity-oauth-v1-refresh-token-oauth.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identity-oauth-v1-refresh-token-oauth.types.js","sourceRoot":"","sources":["../../../src/identity-oauth-v1-refresh-token-oauth.types.ts"],"names":[],"mappings":";;;AAyLA,IAAY,WAWX;AAXD,WAAY,WAAW;IACrB,2BAA2B;IAC3B,kCAAmB,CAAA;IACnB,wBAAwB;IACxB,4BAAa,CAAA;IACb,2BAA2B;IAC3B,kCAAmB,CAAA;IACnB,0BAA0B;IAC1B,gCAAiB,CAAA;IACjB,uBAAuB;IACvB,0BAAW,CAAA;AACb,CAAC,EAXW,WAAW,2BAAX,WAAW,QAWtB"}
|