@epilot/sdk 2.20.13 → 2.20.15
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/definitions/access-token-runtime.json +1 -1
- package/definitions/access-token.json +208 -3
- package/dist/access-token-E2XEMQMG.cjs +7 -0
- package/dist/access-token-IBKEXWNA.js +7 -0
- package/dist/{access-token-runtime-B6Z7JLUS.cjs → access-token-runtime-3HQN34OF.cjs} +2 -2
- package/dist/{access-token-runtime-2PSLN2U3.js → access-token-runtime-MEKGPOGL.js} +1 -1
- package/dist/{access-token.d-BhRUc8I-.d.cts → access-token.d-OiCg1gnT.d.cts} +221 -3
- package/dist/{access-token.d-BhRUc8I-.d.ts → access-token.d-OiCg1gnT.d.ts} +221 -3
- package/dist/apis/access-token.cjs +8 -8
- package/dist/apis/access-token.d.cts +2 -2
- package/dist/apis/access-token.d.ts +2 -2
- package/dist/apis/access-token.js +2 -2
- package/dist/apis/address-suggestions.cjs +6 -6
- package/dist/apis/address-suggestions.js +1 -1
- package/dist/apis/address.cjs +6 -6
- package/dist/apis/address.js +1 -1
- package/dist/apis/ai-agents.cjs +6 -6
- package/dist/apis/ai-agents.js +1 -1
- package/dist/apis/app.cjs +6 -6
- package/dist/apis/app.js +1 -1
- package/dist/apis/audit-logs.cjs +6 -6
- package/dist/apis/audit-logs.js +1 -1
- package/dist/apis/automation.cjs +6 -6
- package/dist/apis/automation.js +1 -1
- package/dist/apis/billing.cjs +6 -6
- package/dist/apis/billing.js +1 -1
- package/dist/apis/blueprint-manifest.cjs +6 -6
- package/dist/apis/blueprint-manifest.js +1 -1
- package/dist/apis/calendar.cjs +6 -6
- package/dist/apis/calendar.js +1 -1
- package/dist/apis/configuration-hub.cjs +6 -6
- package/dist/apis/configuration-hub.js +1 -1
- package/dist/apis/consent.cjs +6 -6
- package/dist/apis/consent.js +1 -1
- package/dist/apis/customer-portal.cjs +6 -6
- package/dist/apis/customer-portal.js +1 -1
- package/dist/apis/dashboard.cjs +6 -6
- package/dist/apis/dashboard.js +1 -1
- package/dist/apis/data-governance.cjs +6 -6
- package/dist/apis/data-governance.js +1 -1
- package/dist/apis/deduplication.cjs +6 -6
- package/dist/apis/deduplication.js +1 -1
- package/dist/apis/design.cjs +6 -6
- package/dist/apis/design.js +1 -1
- package/dist/apis/document.cjs +6 -6
- package/dist/apis/document.js +1 -1
- package/dist/apis/email-settings.cjs +6 -6
- package/dist/apis/email-settings.js +1 -1
- package/dist/apis/email-template.cjs +6 -6
- package/dist/apis/email-template.js +1 -1
- package/dist/apis/entity-mapping.cjs +6 -6
- package/dist/apis/entity-mapping.js +1 -1
- package/dist/apis/entity.cjs +6 -6
- package/dist/apis/entity.js +1 -1
- package/dist/apis/environments.cjs +6 -6
- package/dist/apis/environments.js +1 -1
- package/dist/apis/event-catalog.cjs +6 -6
- package/dist/apis/event-catalog.js +1 -1
- package/dist/apis/file.cjs +6 -6
- package/dist/apis/file.js +1 -1
- package/dist/apis/iban.cjs +6 -6
- package/dist/apis/iban.js +1 -1
- package/dist/apis/integration-toolkit.cjs +221 -6
- package/dist/apis/integration-toolkit.d.cts +41 -3
- package/dist/apis/integration-toolkit.d.ts +41 -3
- package/dist/apis/integration-toolkit.js +216 -1
- package/dist/apis/journey.cjs +6 -6
- package/dist/apis/journey.js +1 -1
- package/dist/apis/kanban.cjs +6 -6
- package/dist/apis/kanban.js +1 -1
- package/dist/apis/message.cjs +6 -6
- package/dist/apis/message.js +1 -1
- package/dist/apis/metering.cjs +6 -6
- package/dist/apis/metering.js +1 -1
- package/dist/apis/notes.cjs +6 -6
- package/dist/apis/notes.js +1 -1
- package/dist/apis/notification.cjs +6 -6
- package/dist/apis/notification.js +1 -1
- package/dist/apis/organization.cjs +6 -6
- package/dist/apis/organization.js +1 -1
- package/dist/apis/partner-directory.cjs +6 -6
- package/dist/apis/partner-directory.js +1 -1
- package/dist/apis/permissions.cjs +6 -6
- package/dist/apis/permissions.js +1 -1
- package/dist/apis/pricing-tier.cjs +6 -6
- package/dist/apis/pricing-tier.js +1 -1
- package/dist/apis/pricing.cjs +6 -6
- package/dist/apis/pricing.js +1 -1
- package/dist/apis/purpose.cjs +6 -6
- package/dist/apis/purpose.js +1 -1
- package/dist/apis/query.cjs +6 -6
- package/dist/apis/query.js +1 -1
- package/dist/apis/sandbox.cjs +6 -6
- package/dist/apis/sandbox.js +1 -1
- package/dist/apis/sharing.cjs +6 -6
- package/dist/apis/sharing.js +1 -1
- package/dist/apis/snapshot.cjs +6 -6
- package/dist/apis/snapshot.js +1 -1
- package/dist/apis/submission.cjs +6 -6
- package/dist/apis/submission.js +1 -1
- package/dist/apis/target.cjs +6 -6
- package/dist/apis/target.js +1 -1
- package/dist/apis/targeting.cjs +6 -6
- package/dist/apis/targeting.js +1 -1
- package/dist/apis/template-variables.cjs +6 -6
- package/dist/apis/template-variables.js +1 -1
- package/dist/apis/user.cjs +6 -6
- package/dist/apis/user.js +1 -1
- package/dist/apis/validation-rules.cjs +6 -6
- package/dist/apis/validation-rules.js +1 -1
- package/dist/apis/webhooks.cjs +6 -6
- package/dist/apis/webhooks.js +1 -1
- package/dist/apis/workflow-definition.cjs +6 -6
- package/dist/apis/workflow-definition.js +1 -1
- package/dist/apis/workflow.cjs +6 -6
- package/dist/apis/workflow.js +1 -1
- package/dist/{chunk-ELW4V3ID.cjs → chunk-FXIH3QBV.cjs} +2 -2
- package/dist/{chunk-OHHHS4HH.js → chunk-TW4SUGOF.js} +1 -1
- package/dist/{chunk-FONJD6VA.js → chunk-YFFICVOA.js} +2 -2
- package/dist/{chunk-S5HBBTKM.cjs → chunk-ZMBA3WV4.cjs} +1 -1
- package/dist/index.cjs +10 -10
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/docs/access-token.md +135 -5
- package/package.json +1 -1
- package/dist/access-token-7Y2MDFZH.cjs +0 -7
- package/dist/access-token-NWN7UBUP.js +0 -7
package/dist/apis/webhooks.cjs
CHANGED
|
@@ -6,25 +6,25 @@ var _chunkNGGI52NVcjs = require('../chunk-NGGI52NV.cjs');
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkFXIH3QBVcjs = require('../chunk-FXIH3QBV.cjs');
|
|
10
10
|
require('../chunk-NJK5F5TF.cjs');
|
|
11
11
|
|
|
12
12
|
// src/apis/webhooks.ts
|
|
13
13
|
var loadDefinition = () => {
|
|
14
14
|
const mod = _chunkNGGI52NVcjs.require_webhooks_runtime.call(void 0, );
|
|
15
|
-
return
|
|
15
|
+
return _chunkFXIH3QBVcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
|
|
16
16
|
};
|
|
17
17
|
var _instance = null;
|
|
18
18
|
var resolve = () => {
|
|
19
19
|
if (!_instance) {
|
|
20
20
|
const def = loadDefinition();
|
|
21
|
-
_instance =
|
|
21
|
+
_instance = _chunkFXIH3QBVcjs.createApiClient.call(void 0, { definition: def, apiName: "webhooks" });
|
|
22
22
|
}
|
|
23
23
|
return _instance;
|
|
24
24
|
};
|
|
25
|
-
var _handle =
|
|
25
|
+
var _handle = _chunkFXIH3QBVcjs.createApiHandle.call(void 0, {
|
|
26
26
|
resolveClient: resolve,
|
|
27
|
-
createClient: () =>
|
|
27
|
+
createClient: () => _chunkFXIH3QBVcjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "webhooks" }),
|
|
28
28
|
apiName: "webhooks"
|
|
29
29
|
});
|
|
30
30
|
var getClient = _handle.getClient;
|
|
@@ -35,4 +35,4 @@ var webhooks = _handle;
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
exports.authorize =
|
|
38
|
+
exports.authorize = _chunkFXIH3QBVcjs.authorize; exports.createClient = createClient; exports.getClient = getClient; exports.webhooks = webhooks;
|
package/dist/apis/webhooks.js
CHANGED
|
@@ -6,25 +6,25 @@ var _chunkADX7IYB3cjs = require('../chunk-ADX7IYB3.cjs');
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkFXIH3QBVcjs = require('../chunk-FXIH3QBV.cjs');
|
|
10
10
|
require('../chunk-NJK5F5TF.cjs');
|
|
11
11
|
|
|
12
12
|
// src/apis/workflow-definition.ts
|
|
13
13
|
var loadDefinition = () => {
|
|
14
14
|
const mod = _chunkADX7IYB3cjs.require_workflow_definition_runtime.call(void 0, );
|
|
15
|
-
return
|
|
15
|
+
return _chunkFXIH3QBVcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
|
|
16
16
|
};
|
|
17
17
|
var _instance = null;
|
|
18
18
|
var resolve = () => {
|
|
19
19
|
if (!_instance) {
|
|
20
20
|
const def = loadDefinition();
|
|
21
|
-
_instance =
|
|
21
|
+
_instance = _chunkFXIH3QBVcjs.createApiClient.call(void 0, { definition: def, apiName: "workflowDefinition" });
|
|
22
22
|
}
|
|
23
23
|
return _instance;
|
|
24
24
|
};
|
|
25
|
-
var _handle =
|
|
25
|
+
var _handle = _chunkFXIH3QBVcjs.createApiHandle.call(void 0, {
|
|
26
26
|
resolveClient: resolve,
|
|
27
|
-
createClient: () =>
|
|
27
|
+
createClient: () => _chunkFXIH3QBVcjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "workflowDefinition" }),
|
|
28
28
|
apiName: "workflowDefinition"
|
|
29
29
|
});
|
|
30
30
|
var getClient = _handle.getClient;
|
|
@@ -35,4 +35,4 @@ var workflowDefinition = _handle;
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
exports.authorize =
|
|
38
|
+
exports.authorize = _chunkFXIH3QBVcjs.authorize; exports.createClient = createClient; exports.getClient = getClient; exports.workflowDefinition = workflowDefinition;
|
package/dist/apis/workflow.cjs
CHANGED
|
@@ -6,25 +6,25 @@ var _chunkPM25LLETcjs = require('../chunk-PM25LLET.cjs');
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkFXIH3QBVcjs = require('../chunk-FXIH3QBV.cjs');
|
|
10
10
|
require('../chunk-NJK5F5TF.cjs');
|
|
11
11
|
|
|
12
12
|
// src/apis/workflow.ts
|
|
13
13
|
var loadDefinition = () => {
|
|
14
14
|
const mod = _chunkPM25LLETcjs.require_workflow_runtime.call(void 0, );
|
|
15
|
-
return
|
|
15
|
+
return _chunkFXIH3QBVcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
|
|
16
16
|
};
|
|
17
17
|
var _instance = null;
|
|
18
18
|
var resolve = () => {
|
|
19
19
|
if (!_instance) {
|
|
20
20
|
const def = loadDefinition();
|
|
21
|
-
_instance =
|
|
21
|
+
_instance = _chunkFXIH3QBVcjs.createApiClient.call(void 0, { definition: def, apiName: "workflow" });
|
|
22
22
|
}
|
|
23
23
|
return _instance;
|
|
24
24
|
};
|
|
25
|
-
var _handle =
|
|
25
|
+
var _handle = _chunkFXIH3QBVcjs.createApiHandle.call(void 0, {
|
|
26
26
|
resolveClient: resolve,
|
|
27
|
-
createClient: () =>
|
|
27
|
+
createClient: () => _chunkFXIH3QBVcjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "workflow" }),
|
|
28
28
|
apiName: "workflow"
|
|
29
29
|
});
|
|
30
30
|
var getClient = _handle.getClient;
|
|
@@ -35,4 +35,4 @@ var workflow = _handle;
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
exports.authorize =
|
|
38
|
+
exports.authorize = _chunkFXIH3QBVcjs.authorize; exports.createClient = createClient; exports.getClient = getClient; exports.workflow = workflow;
|
package/dist/apis/workflow.js
CHANGED
|
@@ -29,7 +29,7 @@ var authorize = (client, token) => {
|
|
|
29
29
|
var globImport_docs = _chunkNJK5F5TFcjs.__glob.call(void 0, {
|
|
30
30
|
"./docs/README.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./README-XCIDDEAE.cjs"))),
|
|
31
31
|
"./docs/_index.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./_index-D5TTZP5F.cjs"))),
|
|
32
|
-
"./docs/access-token.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./access-token-
|
|
32
|
+
"./docs/access-token.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./access-token-E2XEMQMG.cjs"))),
|
|
33
33
|
"./docs/address-suggestions.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./address-suggestions-IUQMYF27.cjs"))),
|
|
34
34
|
"./docs/address.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./address-HA4RMRNQ.cjs"))),
|
|
35
35
|
"./docs/ai-agents.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./ai-agents-ME5VRKMY.cjs"))),
|
|
@@ -100,7 +100,7 @@ var help = async (apiName) => {
|
|
|
100
100
|
|
|
101
101
|
// import("./definitions/**/*.json") in src/openapi.ts
|
|
102
102
|
var globImport_definitions_json = _chunkNJK5F5TFcjs.__glob.call(void 0, {
|
|
103
|
-
"./definitions/access-token-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./access-token-runtime-
|
|
103
|
+
"./definitions/access-token-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./access-token-runtime-3HQN34OF.cjs"))),
|
|
104
104
|
"./definitions/access-token.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./access-token-RKP2A2F7.cjs"))),
|
|
105
105
|
"./definitions/address-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./address-runtime-2MNO2YRD.cjs"))),
|
|
106
106
|
"./definitions/address-suggestions-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./address-suggestions-runtime-ZNGLDADE.cjs"))),
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
// src/definitions/access-token-runtime.json
|
|
6
6
|
var require_access_token_runtime = __commonJS({
|
|
7
7
|
"src/definitions/access-token-runtime.json"(exports, module) {
|
|
8
|
-
module.exports = { s: "https://access-token.sls.epilot.io", o: [["createAccessToken", "post", "/v1/access-tokens", null, 1], ["listAccessTokens", "get", "/v1/access-tokens", [["token_type", "q"]]], ["revokeAccessToken", "delete", "/v1/access-tokens/{id}", [["id", "p", true]]], ["getAccessTokenJwks", "get", "/v1/access-tokens/.well-known/jwks.json"], ["getAccessTokenOIDC", "get", "/v1/access-tokens/.well-known/openid-configuration"], ["getPublicTokenJwks", "get", "/v1/access-tokens/public/.well-known/jwks.json"], ["getPortalPreviewTokenJwks", "get", "/v1/access-tokens/portal-preview/.well-known/jwks.json"], ["getPublicTokenOIDC", "get", "/v1/access-tokens/public/.well-known/openid-configuration"], ["getPortalPreviewTokenOIDC", "get", "/v1/access-tokens/portal-preview/.well-known/openid-configuration"]], v: "3.0.3" };
|
|
8
|
+
module.exports = { s: "https://access-token.sls.epilot.io", o: [["createAccessToken", "post", "/v1/access-tokens", null, 1], ["listAccessTokens", "get", "/v1/access-tokens", [["token_type", "q"]]], ["revokeAccessToken", "delete", "/v1/access-tokens/{id}", [["id", "p", true]]], ["getAccessTokenJwks", "get", "/v1/access-tokens/.well-known/jwks.json"], ["getAccessTokenOIDC", "get", "/v1/access-tokens/.well-known/openid-configuration"], ["getPublicTokenJwks", "get", "/v1/access-tokens/public/.well-known/jwks.json"], ["getPortalPreviewTokenJwks", "get", "/v1/access-tokens/portal-preview/.well-known/jwks.json"], ["getPublicTokenOIDC", "get", "/v1/access-tokens/public/.well-known/openid-configuration"], ["getPortalPreviewTokenOIDC", "get", "/v1/access-tokens/portal-preview/.well-known/openid-configuration"], ["getContactIdentificationTokenJwks", "get", "/v1/access-tokens/contact-identification/.well-known/jwks.json"], ["getContactIdentificationTokenOIDC", "get", "/v1/access-tokens/contact-identification/.well-known/openid-configuration"]], v: "3.0.3" };
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
11
|
|
|
@@ -29,7 +29,7 @@ var authorize = (client, token) => {
|
|
|
29
29
|
var globImport_docs = __glob({
|
|
30
30
|
"./docs/README.json": () => import("./README-NBWAQWQS.js"),
|
|
31
31
|
"./docs/_index.json": () => import("./_index-UY46ZN47.js"),
|
|
32
|
-
"./docs/access-token.json": () => import("./access-token-
|
|
32
|
+
"./docs/access-token.json": () => import("./access-token-IBKEXWNA.js"),
|
|
33
33
|
"./docs/address-suggestions.json": () => import("./address-suggestions-74244BAJ.js"),
|
|
34
34
|
"./docs/address.json": () => import("./address-QVJUGMOG.js"),
|
|
35
35
|
"./docs/ai-agents.json": () => import("./ai-agents-MY4QE4CP.js"),
|
|
@@ -100,7 +100,7 @@ var help = async (apiName) => {
|
|
|
100
100
|
|
|
101
101
|
// import("./definitions/**/*.json") in src/openapi.ts
|
|
102
102
|
var globImport_definitions_json = __glob({
|
|
103
|
-
"./definitions/access-token-runtime.json": () => import("./access-token-runtime-
|
|
103
|
+
"./definitions/access-token-runtime.json": () => import("./access-token-runtime-MEKGPOGL.js"),
|
|
104
104
|
"./definitions/access-token.json": () => import("./access-token-2O6ULCCN.js"),
|
|
105
105
|
"./definitions/address-runtime.json": () => import("./address-runtime-YFCNBJBW.js"),
|
|
106
106
|
"./definitions/address-suggestions-runtime.json": () => import("./address-suggestions-runtime-NIMC2J32.js"),
|
|
@@ -5,7 +5,7 @@ var _chunkNJK5F5TFcjs = require('./chunk-NJK5F5TF.cjs');
|
|
|
5
5
|
// src/definitions/access-token-runtime.json
|
|
6
6
|
var require_access_token_runtime = _chunkNJK5F5TFcjs.__commonJS.call(void 0, {
|
|
7
7
|
"src/definitions/access-token-runtime.json"(exports, module) {
|
|
8
|
-
module.exports = { s: "https://access-token.sls.epilot.io", o: [["createAccessToken", "post", "/v1/access-tokens", null, 1], ["listAccessTokens", "get", "/v1/access-tokens", [["token_type", "q"]]], ["revokeAccessToken", "delete", "/v1/access-tokens/{id}", [["id", "p", true]]], ["getAccessTokenJwks", "get", "/v1/access-tokens/.well-known/jwks.json"], ["getAccessTokenOIDC", "get", "/v1/access-tokens/.well-known/openid-configuration"], ["getPublicTokenJwks", "get", "/v1/access-tokens/public/.well-known/jwks.json"], ["getPortalPreviewTokenJwks", "get", "/v1/access-tokens/portal-preview/.well-known/jwks.json"], ["getPublicTokenOIDC", "get", "/v1/access-tokens/public/.well-known/openid-configuration"], ["getPortalPreviewTokenOIDC", "get", "/v1/access-tokens/portal-preview/.well-known/openid-configuration"]], v: "3.0.3" };
|
|
8
|
+
module.exports = { s: "https://access-token.sls.epilot.io", o: [["createAccessToken", "post", "/v1/access-tokens", null, 1], ["listAccessTokens", "get", "/v1/access-tokens", [["token_type", "q"]]], ["revokeAccessToken", "delete", "/v1/access-tokens/{id}", [["id", "p", true]]], ["getAccessTokenJwks", "get", "/v1/access-tokens/.well-known/jwks.json"], ["getAccessTokenOIDC", "get", "/v1/access-tokens/.well-known/openid-configuration"], ["getPublicTokenJwks", "get", "/v1/access-tokens/public/.well-known/jwks.json"], ["getPortalPreviewTokenJwks", "get", "/v1/access-tokens/portal-preview/.well-known/jwks.json"], ["getPublicTokenOIDC", "get", "/v1/access-tokens/public/.well-known/openid-configuration"], ["getPortalPreviewTokenOIDC", "get", "/v1/access-tokens/portal-preview/.well-known/openid-configuration"], ["getContactIdentificationTokenJwks", "get", "/v1/access-tokens/contact-identification/.well-known/jwks.json"], ["getContactIdentificationTokenOIDC", "get", "/v1/access-tokens/contact-identification/.well-known/openid-configuration"]], v: "3.0.3" };
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
11
|
|
package/dist/index.cjs
CHANGED
|
@@ -132,7 +132,7 @@ var _chunkVMCF5R6Rcjs = require('./chunk-VMCF5R6R.cjs');
|
|
|
132
132
|
var _chunkZL6KDJFTcjs = require('./chunk-ZL6KDJFT.cjs');
|
|
133
133
|
|
|
134
134
|
|
|
135
|
-
var
|
|
135
|
+
var _chunkZMBA3WV4cjs = require('./chunk-ZMBA3WV4.cjs');
|
|
136
136
|
|
|
137
137
|
|
|
138
138
|
var _chunkLKRBFBFNcjs = require('./chunk-LKRBFBFN.cjs');
|
|
@@ -158,7 +158,7 @@ var _chunkWOUASZJWcjs = require('./chunk-WOUASZJW.cjs');
|
|
|
158
158
|
|
|
159
159
|
|
|
160
160
|
|
|
161
|
-
var
|
|
161
|
+
var _chunkFXIH3QBVcjs = require('./chunk-FXIH3QBV.cjs');
|
|
162
162
|
|
|
163
163
|
|
|
164
164
|
var _chunkNJK5F5TFcjs = require('./chunk-NJK5F5TF.cjs');
|
|
@@ -225,7 +225,7 @@ var resolveClient = (params) => {
|
|
|
225
225
|
}
|
|
226
226
|
if (!entry.instance) {
|
|
227
227
|
const definition = entry.loader();
|
|
228
|
-
entry.instance =
|
|
228
|
+
entry.instance = _chunkFXIH3QBVcjs.createApiClient.call(void 0, {
|
|
229
229
|
definition,
|
|
230
230
|
token: state.token,
|
|
231
231
|
headers: state.globalHeaders,
|
|
@@ -258,12 +258,12 @@ var resetAllClients = (registry) => {
|
|
|
258
258
|
};
|
|
259
259
|
|
|
260
260
|
// src/apis/_registry.ts
|
|
261
|
-
var expandDef = (mod) =>
|
|
261
|
+
var expandDef = (mod) => _chunkFXIH3QBVcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
|
|
262
262
|
var registerBuiltinApis = (registry) => {
|
|
263
263
|
registerApi({
|
|
264
264
|
registry,
|
|
265
265
|
name: "accessToken",
|
|
266
|
-
loader: () => expandDef(
|
|
266
|
+
loader: () => expandDef(_chunkZMBA3WV4cjs.require_access_token_runtime.call(void 0, ))
|
|
267
267
|
});
|
|
268
268
|
registerApi({
|
|
269
269
|
registry,
|
|
@@ -601,9 +601,9 @@ var createSDK = () => {
|
|
|
601
601
|
const available = [...registry.keys()].join(", ");
|
|
602
602
|
throw new Error(`Unknown API: "${name}". Available: ${available}`);
|
|
603
603
|
}
|
|
604
|
-
return
|
|
604
|
+
return _chunkFXIH3QBVcjs.createApiHandle.call(void 0, {
|
|
605
605
|
resolveClient: () => resolveClient({ registry, name, state }),
|
|
606
|
-
createClient: () =>
|
|
606
|
+
createClient: () => _chunkFXIH3QBVcjs.createApiClient.call(void 0, { definition: entry.loader(), apiName: name }),
|
|
607
607
|
apiName: name
|
|
608
608
|
});
|
|
609
609
|
};
|
|
@@ -651,9 +651,9 @@ var createSDK = () => {
|
|
|
651
651
|
return interceptorUse;
|
|
652
652
|
}
|
|
653
653
|
case "help":
|
|
654
|
-
return (apiName) =>
|
|
654
|
+
return (apiName) => _chunkFXIH3QBVcjs.help.call(void 0, apiName);
|
|
655
655
|
case "openapi":
|
|
656
|
-
return (apiName) =>
|
|
656
|
+
return (apiName) => _chunkFXIH3QBVcjs.openapi.call(void 0, apiName);
|
|
657
657
|
case "then":
|
|
658
658
|
case "catch":
|
|
659
659
|
case "finally":
|
|
@@ -683,4 +683,4 @@ var epilot = createSDK();
|
|
|
683
683
|
|
|
684
684
|
|
|
685
685
|
|
|
686
|
-
exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize =
|
|
686
|
+
exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize = _chunkFXIH3QBVcjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot; exports.help = _chunkFXIH3QBVcjs.help; exports.openapi = _chunkFXIH3QBVcjs.openapi;
|
package/dist/index.d.cts
CHANGED
|
@@ -3,7 +3,7 @@ import { Document } from 'openapi-client-axios';
|
|
|
3
3
|
import { AxiosInstance, InternalAxiosRequestConfig, AxiosResponse } from 'axios';
|
|
4
4
|
import { T as TokenArg, H as HeadersConfig, A as ApiHandle } from './types-ChU9Acbv.cjs';
|
|
5
5
|
export { I as Interceptor, O as OverridesConfig, a as authorize } from './types-ChU9Acbv.cjs';
|
|
6
|
-
import { C as Client } from './access-token.d-
|
|
6
|
+
import { C as Client } from './access-token.d-OiCg1gnT.cjs';
|
|
7
7
|
import { C as Client$1 } from './address.d-CwAPOVxa.cjs';
|
|
8
8
|
import { C as Client$2 } from './address-suggestions.d-_YwTOR-9.cjs';
|
|
9
9
|
import { C as Client$3 } from './ai-agents.d-B3TkP4mo.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { Document } from 'openapi-client-axios';
|
|
|
3
3
|
import { AxiosInstance, InternalAxiosRequestConfig, AxiosResponse } from 'axios';
|
|
4
4
|
import { T as TokenArg, H as HeadersConfig, A as ApiHandle } from './types-ChU9Acbv.js';
|
|
5
5
|
export { I as Interceptor, O as OverridesConfig, a as authorize } from './types-ChU9Acbv.js';
|
|
6
|
-
import { C as Client } from './access-token.d-
|
|
6
|
+
import { C as Client } from './access-token.d-OiCg1gnT.js';
|
|
7
7
|
import { C as Client$1 } from './address.d-CwAPOVxa.js';
|
|
8
8
|
import { C as Client$2 } from './address-suggestions.d-_YwTOR-9.js';
|
|
9
9
|
import { C as Client$3 } from './ai-agents.d-B3TkP4mo.js';
|
package/dist/index.js
CHANGED
|
@@ -132,7 +132,7 @@ import {
|
|
|
132
132
|
} from "./chunk-5ED7FB3Q.js";
|
|
133
133
|
import {
|
|
134
134
|
require_access_token_runtime
|
|
135
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-TW4SUGOF.js";
|
|
136
136
|
import {
|
|
137
137
|
require_address_suggestions_runtime
|
|
138
138
|
} from "./chunk-4ZGZDE6D.js";
|
|
@@ -158,7 +158,7 @@ import {
|
|
|
158
158
|
expand,
|
|
159
159
|
help,
|
|
160
160
|
openapi
|
|
161
|
-
} from "./chunk-
|
|
161
|
+
} from "./chunk-YFFICVOA.js";
|
|
162
162
|
import {
|
|
163
163
|
__require
|
|
164
164
|
} from "./chunk-YPSWSI3M.js";
|
package/docs/access-token.md
CHANGED
|
@@ -36,6 +36,8 @@ const { data } = await accessTokenClient.createAccessToken(...)
|
|
|
36
36
|
- [`getPortalPreviewTokenJwks`](#getportalpreviewtokenjwks)
|
|
37
37
|
- [`getPublicTokenOIDC`](#getpublictokenoidc)
|
|
38
38
|
- [`getPortalPreviewTokenOIDC`](#getportalpreviewtokenoidc)
|
|
39
|
+
- [`getContactIdentificationTokenJwks`](#getcontactidentificationtokenjwks)
|
|
40
|
+
- [`getContactIdentificationTokenOIDC`](#getcontactidentificationtokenoidc)
|
|
39
41
|
|
|
40
42
|
**Schemas**
|
|
41
43
|
- [`AccessToken`](#accesstoken)
|
|
@@ -45,6 +47,9 @@ const { data } = await accessTokenClient.createAccessToken(...)
|
|
|
45
47
|
- [`AccessTokenJourneyId`](#accesstokenjourneyid)
|
|
46
48
|
- [`PortalId`](#portalid)
|
|
47
49
|
- [`PortalUserId`](#portaluserid)
|
|
50
|
+
- [`ContactId`](#contactid)
|
|
51
|
+
- [`PortalOrigin`](#portalorigin)
|
|
52
|
+
- [`AllowedOperations`](#allowedoperations)
|
|
48
53
|
- [`TokenParameters`](#tokenparameters)
|
|
49
54
|
- [`ExpiresIn`](#expiresin)
|
|
50
55
|
- [`ReadOnly`](#readonly)
|
|
@@ -55,6 +60,7 @@ const { data } = await accessTokenClient.createAccessToken(...)
|
|
|
55
60
|
- [`AssumeTokenParameters`](#assumetokenparameters)
|
|
56
61
|
- [`AppTokenParameters`](#apptokenparameters)
|
|
57
62
|
- [`PortalPreviewTokenParameters`](#portalpreviewtokenparameters)
|
|
63
|
+
- [`ContactIdentificationTokenParameters`](#contactidentificationtokenparameters)
|
|
58
64
|
- [`AccessTokenItem`](#accesstokenitem)
|
|
59
65
|
- [`RoleId`](#roleid)
|
|
60
66
|
- [`Assignments`](#assignments)
|
|
@@ -92,10 +98,14 @@ const { data } = await client.createAccessToken(
|
|
|
92
98
|
"journey_id": "string",
|
|
93
99
|
"portal_id": "string",
|
|
94
100
|
"portal_user_id": "string",
|
|
101
|
+
"contact_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
|
|
102
|
+
"origin": "END_CUSTOMER_PORTAL",
|
|
103
|
+
"allowed_operations": ["getContact", "getContracts"],
|
|
95
104
|
"assignments": ["123:owner"],
|
|
96
105
|
"read_only": true,
|
|
97
106
|
"anonymize": true,
|
|
98
|
-
"last_used": "2026-02-24"
|
|
107
|
+
"last_used": "2026-02-24",
|
|
108
|
+
"expires_at": "2026-03-01T12:00:00.000Z"
|
|
99
109
|
}
|
|
100
110
|
```
|
|
101
111
|
|
|
@@ -128,10 +138,14 @@ const { data } = await client.listAccessTokens({
|
|
|
128
138
|
"journey_id": "string",
|
|
129
139
|
"portal_id": "string",
|
|
130
140
|
"portal_user_id": "string",
|
|
141
|
+
"contact_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
|
|
142
|
+
"origin": "END_CUSTOMER_PORTAL",
|
|
143
|
+
"allowed_operations": ["getContact", "getContracts"],
|
|
131
144
|
"assignments": ["123:owner"],
|
|
132
145
|
"read_only": true,
|
|
133
146
|
"anonymize": true,
|
|
134
|
-
"last_used": "2026-02-24"
|
|
147
|
+
"last_used": "2026-02-24",
|
|
148
|
+
"expires_at": "2026-03-01T12:00:00.000Z"
|
|
135
149
|
}
|
|
136
150
|
]
|
|
137
151
|
```
|
|
@@ -164,10 +178,14 @@ const { data } = await client.revokeAccessToken({
|
|
|
164
178
|
"journey_id": "string",
|
|
165
179
|
"portal_id": "string",
|
|
166
180
|
"portal_user_id": "string",
|
|
181
|
+
"contact_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
|
|
182
|
+
"origin": "END_CUSTOMER_PORTAL",
|
|
183
|
+
"allowed_operations": ["getContact", "getContracts"],
|
|
167
184
|
"assignments": ["123:owner"],
|
|
168
185
|
"read_only": true,
|
|
169
186
|
"anonymize": true,
|
|
170
|
-
"last_used": "2026-02-24"
|
|
187
|
+
"last_used": "2026-02-24",
|
|
188
|
+
"expires_at": "2026-03-01T12:00:00.000Z"
|
|
171
189
|
}
|
|
172
190
|
```
|
|
173
191
|
|
|
@@ -343,6 +361,62 @@ const { data } = await client.getPortalPreviewTokenOIDC()
|
|
|
343
361
|
|
|
344
362
|
---
|
|
345
363
|
|
|
364
|
+
### `getContactIdentificationTokenJwks`
|
|
365
|
+
|
|
366
|
+
Get jwks public key set to verify contact identification tokens generated by this API
|
|
367
|
+
|
|
368
|
+
`GET /v1/access-tokens/contact-identification/.well-known/jwks.json`
|
|
369
|
+
|
|
370
|
+
```ts
|
|
371
|
+
const { data } = await client.getContactIdentificationTokenJwks()
|
|
372
|
+
```
|
|
373
|
+
|
|
374
|
+
<details>
|
|
375
|
+
<summary>Response</summary>
|
|
376
|
+
|
|
377
|
+
```json
|
|
378
|
+
{
|
|
379
|
+
"keys": [
|
|
380
|
+
{
|
|
381
|
+
"alg": "RS256",
|
|
382
|
+
"e": "AQAB",
|
|
383
|
+
"kid": "tXWU5mPMbRPczpbQwi6vbhLF4GgF3wlMDSyqo7pfeiw=",
|
|
384
|
+
"kty": "RSA",
|
|
385
|
+
"n": "h_QDoCjZ8W_trtYXaP7_S22wf5r5Wd9XBLED78oT44bJjQXn8ddcFV8Hik65_4IYXVX_hTTU4zpxe3H8vx2j7-Zz3O59mYMp5S0MzODNEdf5Y_2o19eis0brmAJniixsNlQ9LlYkdrVamrgaxHu3ZpP_99zkfFybYeuYoQNzb3PyrT8xVnz_USs_nlFMHpGUxvvz7gfKPqxcLvgLJr4cwI9yzaSY9CD4qW181QVcnL_WzpQ8xx6AuhhHZQ1l_3GG4InTk8ahE7U2ZHVu8RrX6d01pMgc3piEcet9RgFLnhbTg3YIiKGoAbN42wJn_x3lgIAC42T9mbmTsHyUdS6nUQ",
|
|
386
|
+
"use": "sig"
|
|
387
|
+
}
|
|
388
|
+
]
|
|
389
|
+
}
|
|
390
|
+
```
|
|
391
|
+
|
|
392
|
+
</details>
|
|
393
|
+
|
|
394
|
+
---
|
|
395
|
+
|
|
396
|
+
### `getContactIdentificationTokenOIDC`
|
|
397
|
+
|
|
398
|
+
OpenID Connect configuration for Access Token API as a contact identification identity provider
|
|
399
|
+
|
|
400
|
+
`GET /v1/access-tokens/contact-identification/.well-known/openid-configuration`
|
|
401
|
+
|
|
402
|
+
```ts
|
|
403
|
+
const { data } = await client.getContactIdentificationTokenOIDC()
|
|
404
|
+
```
|
|
405
|
+
|
|
406
|
+
<details>
|
|
407
|
+
<summary>Response</summary>
|
|
408
|
+
|
|
409
|
+
```json
|
|
410
|
+
{
|
|
411
|
+
"issuer": "https://access-token.sls.epilot.io/v1/access-tokens/contact-identification",
|
|
412
|
+
"jwks_uri": "https://access-token.sls.epilot.io/v1/access-tokens/contact-identification/.well-known/jwks.json"
|
|
413
|
+
}
|
|
414
|
+
```
|
|
415
|
+
|
|
416
|
+
</details>
|
|
417
|
+
|
|
418
|
+
---
|
|
419
|
+
|
|
346
420
|
## Schemas
|
|
347
421
|
|
|
348
422
|
### `AccessToken`
|
|
@@ -372,7 +446,7 @@ type AccessTokenName = string
|
|
|
372
446
|
Access token type
|
|
373
447
|
|
|
374
448
|
```ts
|
|
375
|
-
type AccessTokenType = "api" | "journey" | "portal" | "assume" | "app" | "portal_preview"
|
|
449
|
+
type AccessTokenType = "api" | "journey" | "portal" | "assume" | "app" | "portal_preview" | "contact_identification"
|
|
376
450
|
```
|
|
377
451
|
|
|
378
452
|
### `AccessTokenJourneyId`
|
|
@@ -399,6 +473,30 @@ Portal User ID for access token type "portal_preview"
|
|
|
399
473
|
type PortalUserId = string
|
|
400
474
|
```
|
|
401
475
|
|
|
476
|
+
### `ContactId`
|
|
477
|
+
|
|
478
|
+
Contact entity ID for access token type "contact_identification"
|
|
479
|
+
|
|
480
|
+
```ts
|
|
481
|
+
type ContactId = string
|
|
482
|
+
```
|
|
483
|
+
|
|
484
|
+
### `PortalOrigin`
|
|
485
|
+
|
|
486
|
+
Portal origin the token assumes, so the bearer is permission-masked the same way the corresponding portal role is.
|
|
487
|
+
|
|
488
|
+
```ts
|
|
489
|
+
type PortalOrigin = "END_CUSTOMER_PORTAL" | "INSTALLER_PORTAL"
|
|
490
|
+
```
|
|
491
|
+
|
|
492
|
+
### `AllowedOperations`
|
|
493
|
+
|
|
494
|
+
openapi operationIds the token may call. Enforced by the API that consumes the token, which must additionally deny any operation not on this list. Baked into the token at issue time so widening the consumer's own allowlist later cannot retroactively widen a token that is already in circulation.
|
|
495
|
+
|
|
496
|
+
```ts
|
|
497
|
+
type AllowedOperations = string[]
|
|
498
|
+
```
|
|
499
|
+
|
|
402
500
|
### `TokenParameters`
|
|
403
501
|
|
|
404
502
|
```ts
|
|
@@ -437,6 +535,16 @@ type TokenParameters = {
|
|
|
437
535
|
token_type?: "portal_preview"
|
|
438
536
|
portal_id: string
|
|
439
537
|
portal_user_id: string
|
|
538
|
+
} | {
|
|
539
|
+
name: string
|
|
540
|
+
token_type?: "contact_identification"
|
|
541
|
+
portal_id: string
|
|
542
|
+
contact_id: string
|
|
543
|
+
surface_id: string
|
|
544
|
+
origin?: "END_CUSTOMER_PORTAL" | "INSTALLER_PORTAL"
|
|
545
|
+
allowed_operations: string[]
|
|
546
|
+
expires_in: number
|
|
547
|
+
email?: string
|
|
440
548
|
}
|
|
441
549
|
```
|
|
442
550
|
|
|
@@ -533,6 +641,24 @@ type PortalPreviewTokenParameters = {
|
|
|
533
641
|
}
|
|
534
642
|
```
|
|
535
643
|
|
|
644
|
+
### `ContactIdentificationTokenParameters`
|
|
645
|
+
|
|
646
|
+
A token that acts as one contact, issued after that contact was identified by a portal's registration identifiers rather than by logging in. Distinct from portal_preview, which impersonates an existing portal user for a 360 operator: this kind belongs to no user, is minted for an unauthenticated cal
|
|
647
|
+
|
|
648
|
+
```ts
|
|
649
|
+
type ContactIdentificationTokenParameters = {
|
|
650
|
+
name: string
|
|
651
|
+
token_type?: "contact_identification"
|
|
652
|
+
portal_id: string
|
|
653
|
+
contact_id: string
|
|
654
|
+
surface_id: string
|
|
655
|
+
origin?: "END_CUSTOMER_PORTAL" | "INSTALLER_PORTAL"
|
|
656
|
+
allowed_operations: string[]
|
|
657
|
+
expires_in: number
|
|
658
|
+
email?: string
|
|
659
|
+
}
|
|
660
|
+
```
|
|
661
|
+
|
|
536
662
|
### `AccessTokenItem`
|
|
537
663
|
|
|
538
664
|
```ts
|
|
@@ -540,14 +666,18 @@ type AccessTokenItem = {
|
|
|
540
666
|
id: string
|
|
541
667
|
created_at: string // date-time
|
|
542
668
|
name: string
|
|
543
|
-
token_type?: "api" | "journey" | "portal" | "assume" | "app" | "portal_preview"
|
|
669
|
+
token_type?: "api" | "journey" | "portal" | "assume" | "app" | "portal_preview" | "contact_identification"
|
|
544
670
|
journey_id?: string
|
|
545
671
|
portal_id?: string
|
|
546
672
|
portal_user_id?: string
|
|
673
|
+
contact_id?: string
|
|
674
|
+
origin?: "END_CUSTOMER_PORTAL" | "INSTALLER_PORTAL"
|
|
675
|
+
allowed_operations?: string[]
|
|
547
676
|
assignments?: string[]
|
|
548
677
|
read_only?: boolean
|
|
549
678
|
anonymize?: boolean
|
|
550
679
|
last_used?: string // date
|
|
680
|
+
expires_at?: string // date-time
|
|
551
681
|
}
|
|
552
682
|
```
|
|
553
683
|
|
package/package.json
CHANGED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-NJK5F5TF.cjs');
|
|
2
|
-
|
|
3
|
-
// src/docs/access-token.json
|
|
4
|
-
var access_token_default = '# Access Token API\n\n- **Base URL:** `https://access-token.sls.epilot.io`\n- **Full API Docs:** [https://docs.epilot.io/api/access-token](https://docs.epilot.io/api/access-token)\n\n## Usage\n\n```ts\nimport { epilot } from \'@epilot/sdk\'\n\nepilot.authorize(() => \'<token>\')\nconst { data } = await epilot.accessToken.createAccessToken(...)\n```\n\n### Tree-shakeable import\n\n```ts\nimport { getClient, authorize } from \'@epilot/sdk/access-token\'\n\nconst accessTokenClient = getClient()\nauthorize(accessTokenClient, () => \'<token>\')\nconst { data } = await accessTokenClient.createAccessToken(...)\n```\n\n## Operations\n\n**Access Tokens**\n- [`createAccessToken`](#createaccesstoken)\n- [`listAccessTokens`](#listaccesstokens)\n- [`revokeAccessToken`](#revokeaccesstoken)\n\n**Public**\n- [`getAccessTokenJwks`](#getaccesstokenjwks)\n- [`getAccessTokenOIDC`](#getaccesstokenoidc)\n- [`getPublicTokenJwks`](#getpublictokenjwks)\n- [`getPortalPreviewTokenJwks`](#getportalpreviewtokenjwks)\n- [`getPublicTokenOIDC`](#getpublictokenoidc)\n- [`getPortalPreviewTokenOIDC`](#getportalpreviewtokenoidc)\n\n**Schemas**\n- [`AccessToken`](#accesstoken)\n- [`AccessTokenId`](#accesstokenid)\n- [`AccessTokenName`](#accesstokenname)\n- [`AccessTokenType`](#accesstokentype)\n- [`AccessTokenJourneyId`](#accesstokenjourneyid)\n- [`PortalId`](#portalid)\n- [`PortalUserId`](#portaluserid)\n- [`TokenParameters`](#tokenparameters)\n- [`ExpiresIn`](#expiresin)\n- [`ReadOnly`](#readonly)\n- [`Anonymize`](#anonymize)\n- [`AccessTokenParameters`](#accesstokenparameters)\n- [`JourneyTokenParameters`](#journeytokenparameters)\n- [`PortalTokenParameters`](#portaltokenparameters)\n- [`AssumeTokenParameters`](#assumetokenparameters)\n- [`AppTokenParameters`](#apptokenparameters)\n- [`PortalPreviewTokenParameters`](#portalpreviewtokenparameters)\n- [`AccessTokenItem`](#accesstokenitem)\n- [`RoleId`](#roleid)\n- [`Assignments`](#assignments)\n\n### `createAccessToken`\n\n**Access Token type: `API`** (default if not specified):\n\n`POST /v1/access-tokens`\n\n```ts\nconst { data } = await client.createAccessToken(\n null,\n {\n name: \'Postman Access Token\',\n token_type: \'api\',\n assignments: [\'123:owner\'],\n expires_in: 3600,\n read_only: true,\n anonymize: true\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6Ikp...",\n "id": "api_5ZugdRXasLfWBypHi93Fk",\n "created_at": "1970-01-01T00:00:00.000Z",\n "name": "Postman Access Token",\n "token_type": "api",\n "journey_id": "string",\n "portal_id": "string",\n "portal_user_id": "string",\n "assignments": ["123:owner"],\n "read_only": true,\n "anonymize": true,\n "last_used": "2026-02-24"\n}\n```\n\n</details>\n\n---\n\n### `listAccessTokens`\n\nLists all Access Tokens for current user (by default excludes system generated tokens)\n\n`GET /v1/access-tokens`\n\n```ts\nconst { data } = await client.listAccessTokens({\n token_type: [\'...\'],\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n[\n {\n "id": "api_5ZugdRXasLfWBypHi93Fk",\n "created_at": "1970-01-01T00:00:00.000Z",\n "name": "Postman Access Token",\n "token_type": "api",\n "journey_id": "string",\n "portal_id": "string",\n "portal_user_id": "string",\n "assignments": ["123:owner"],\n "read_only": true,\n "anonymize": true,\n "last_used": "2026-02-24"\n }\n]\n```\n\n</details>\n\n---\n\n### `revokeAccessToken`\n\nRevokes an Access Token so it can\'t be used anymore.\n\n`DELETE /v1/access-tokens/{id}`\n\n```ts\nconst { data } = await client.revokeAccessToken({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "api_5ZugdRXasLfWBypHi93Fk",\n "created_at": "1970-01-01T00:00:00.000Z",\n "name": "Postman Access Token",\n "token_type": "api",\n "journey_id": "string",\n "portal_id": "string",\n "portal_user_id": "string",\n "assignments": ["123:owner"],\n "read_only": true,\n "anonymize": true,\n "last_used": "2026-02-24"\n}\n```\n\n</details>\n\n---\n\n### `getAccessTokenJwks`\n\nGet jwks public key set to verify access tokens generated by this API\n\n`GET /v1/access-tokens/.well-known/jwks.json`\n\n```ts\nconst { data } = await client.getAccessTokenJwks()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "keys": [\n {\n "alg": "RS256",\n "e": "AQAB",\n "kid": "tXWU5mPMbRPczpbQwi6vbhLF4GgF3wlMDSyqo7pfeiw=",\n "kty": "RSA",\n "n": "h_QDoCjZ8W_trtYXaP7_S22wf5r5Wd9XBLED78oT44bJjQXn8ddcFV8Hik65_4IYXVX_hTTU4zpxe3H8vx2j7-Zz3O59mYMp5S0MzODNEdf5Y_2o19eis0brmAJniixsNlQ9LlYkdrVamrgaxHu3ZpP_99zkfFybYeuYoQNzb3PyrT8xVnz_USs_nlFMHpGUxvvz7gfKPqxcLvgLJr4cwI9yzaSY9CD4qW181QVcnL_WzpQ8xx6AuhhHZQ1l_3GG4InTk8ahE7U2ZHVu8RrX6d01pMgc3piEcet9RgFLnhbTg3YIiKGoAbN42wJn_x3lgIAC42T9mbmTsHyUdS6nUQ",\n "use": "sig"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `getAccessTokenOIDC`\n\nOpenID Connect configuration for Access Token API as identity provider\n\n`GET /v1/access-tokens/.well-known/openid-configuration`\n\n```ts\nconst { data } = await client.getAccessTokenOIDC()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "issuer": "https://access-token.sls.epilot.io/v1/access-tokens",\n "jwks_uri": "https://access-token.sls.epilot.io/v1/access-tokens/.well-known/jwks.json"\n}\n```\n\n</details>\n\n---\n\n### `getPublicTokenJwks`\n\nGet jwks public key set to verify public tokens generated by this API\n\n`GET /v1/access-tokens/public/.well-known/jwks.json`\n\n```ts\nconst { data } = await client.getPublicTokenJwks()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "keys": [\n {\n "alg": "RS256",\n "e": "AQAB",\n "kid": "tXWU5mPMbRPczpbQwi6vbhLF4GgF3wlMDSyqo7pfeiw=",\n "kty": "RSA",\n "n": "h_QDoCjZ8W_trtYXaP7_S22wf5r5Wd9XBLED78oT44bJjQXn8ddcFV8Hik65_4IYXVX_hTTU4zpxe3H8vx2j7-Zz3O59mYMp5S0MzODNEdf5Y_2o19eis0brmAJniixsNlQ9LlYkdrVamrgaxHu3ZpP_99zkfFybYeuYoQNzb3PyrT8xVnz_USs_nlFMHpGUxvvz7gfKPqxcLvgLJr4cwI9yzaSY9CD4qW181QVcnL_WzpQ8xx6AuhhHZQ1l_3GG4InTk8ahE7U2ZHVu8RrX6d01pMgc3piEcet9RgFLnhbTg3YIiKGoAbN42wJn_x3lgIAC42T9mbmTsHyUdS6nUQ",\n "use": "sig"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `getPortalPreviewTokenJwks`\n\nGet jwks public key set to verify portal preview tokens generated by this API\n\n`GET /v1/access-tokens/portal-preview/.well-known/jwks.json`\n\n```ts\nconst { data } = await client.getPortalPreviewTokenJwks()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "keys": [\n {\n "alg": "RS256",\n "e": "AQAB",\n "kid": "tXWU5mPMbRPczpbQwi6vbhLF4GgF3wlMDSyqo7pfeiw=",\n "kty": "RSA",\n "n": "h_QDoCjZ8W_trtYXaP7_S22wf5r5Wd9XBLED78oT44bJjQXn8ddcFV8Hik65_4IYXVX_hTTU4zpxe3H8vx2j7-Zz3O59mYMp5S0MzODNEdf5Y_2o19eis0brmAJniixsNlQ9LlYkdrVamrgaxHu3ZpP_99zkfFybYeuYoQNzb3PyrT8xVnz_USs_nlFMHpGUxvvz7gfKPqxcLvgLJr4cwI9yzaSY9CD4qW181QVcnL_WzpQ8xx6AuhhHZQ1l_3GG4InTk8ahE7U2ZHVu8RrX6d01pMgc3piEcet9RgFLnhbTg3YIiKGoAbN42wJn_x3lgIAC42T9mbmTsHyUdS6nUQ",\n "use": "sig"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `getPublicTokenOIDC`\n\nOpenID Connect configuration for Access Token API a a public identity provider\n\n`GET /v1/access-tokens/public/.well-known/openid-configuration`\n\n```ts\nconst { data } = await client.getPublicTokenOIDC()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "issuer": "https://access-token.sls.epilot.io/v1/access-tokens",\n "jwks_uri": "https://access-token.sls.epilot.io/v1/access-tokens/.well-known/jwks.json"\n}\n```\n\n</details>\n\n---\n\n### `getPortalPreviewTokenOIDC`\n\nOpenID Connect configuration for Access Token API a a portal preview identity provider\n\n`GET /v1/access-tokens/portal-preview/.well-known/openid-configuration`\n\n```ts\nconst { data } = await client.getPortalPreviewTokenOIDC()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "issuer": "https://access-token.sls.epilot.io/v1/access-tokens/portal-preview",\n "jwks_uri": "https://access-token.sls.epilot.io/v1/access-tokens/portal-preview/.well-known/jwks.json"\n}\n```\n\n</details>\n\n---\n\n## Schemas\n\n### `AccessToken`\n\nA JWT Access Token\n\n```ts\ntype AccessToken = string\n```\n\n### `AccessTokenId`\n\n```ts\ntype AccessTokenId = string\n```\n\n### `AccessTokenName`\n\nHuman readable name for access token\n\n```ts\ntype AccessTokenName = string\n```\n\n### `AccessTokenType`\n\nAccess token type\n\n```ts\ntype AccessTokenType = "api" | "journey" | "portal" | "assume" | "app" | "portal_preview"\n```\n\n### `AccessTokenJourneyId`\n\nJourney ID for access token type "journey"\n\n```ts\ntype AccessTokenJourneyId = string\n```\n\n### `PortalId`\n\nPortal ID for access token type "portal"\n\n```ts\ntype PortalId = string\n```\n\n### `PortalUserId`\n\nPortal User ID for access token type "portal_preview"\n\n```ts\ntype PortalUserId = string\n```\n\n### `TokenParameters`\n\n```ts\ntype TokenParameters = {\n name: string\n token_type?: "api"\n assignments?: string[]\n expires_in?: number | string\n read_only?: boolean\n anonymize?: boolean\n} | {\n name: string\n token_type?: "journey"\n journey_id: string\n expires_in?: number | string\n} | {\n name: string\n token_type?: "portal"\n portal_id: string\n expires_in?: number | string\n} | {\n name: string\n token_type?: "assume"\n assignments?: string[]\n read_only?: boolean\n anonymize?: boolean\n} | {\n name: string\n token_type?: "app"\n assignments?: string[]\n expires_in?: number | string\n read_only?: boolean\n anonymize?: boolean\n} | {\n name: string\n token_type?: "portal_preview"\n portal_id: string\n portal_user_id: string\n}\n```\n\n### `ExpiresIn`\n\n```ts\ntype ExpiresIn = number | string\n```\n\n### `ReadOnly`\n\nWhen true, the issued token may only perform read-only actions. Any action guarded by permissions that is not read-only (i.e. not a view/export/download action) is denied, regardless of the roles the token carries.\n\n```ts\ntype ReadOnly = boolean\n```\n\n### `Anonymize`\n\nForces PII anonymization on all entity data returned to this token. Cannot be disabled by the token bearer. See entity-api anonymized responses.\n\n```ts\ntype Anonymize = boolean\n```\n\n### `AccessTokenParameters`\n\n```ts\ntype AccessTokenParameters = {\n name: string\n token_type?: "api"\n assignments?: string[]\n expires_in?: number | string\n read_only?: boolean\n anonymize?: boolean\n}\n```\n\n### `JourneyTokenParameters`\n\n```ts\ntype JourneyTokenParameters = {\n name: string\n token_type?: "journey"\n journey_id: string\n expires_in?: number | string\n}\n```\n\n### `PortalTokenParameters`\n\n```ts\ntype PortalTokenParameters = {\n name: string\n token_type?: "portal"\n portal_id: string\n expires_in?: number | string\n}\n```\n\n### `AssumeTokenParameters`\n\n```ts\ntype AssumeTokenParameters = {\n name: string\n token_type?: "assume"\n assignments?: string[]\n read_only?: boolean\n anonymize?: boolean\n}\n```\n\n### `AppTokenParameters`\n\n```ts\ntype AppTokenParameters = {\n name: string\n token_type?: "app"\n assignments?: string[]\n expires_in?: number | string\n read_only?: boolean\n anonymize?: boolean\n}\n```\n\n### `PortalPreviewTokenParameters`\n\n```ts\ntype PortalPreviewTokenParameters = {\n name: string\n token_type?: "portal_preview"\n portal_id: string\n portal_user_id: string\n}\n```\n\n### `AccessTokenItem`\n\n```ts\ntype AccessTokenItem = {\n id: string\n created_at: string // date-time\n name: string\n token_type?: "api" | "journey" | "portal" | "assume" | "app" | "portal_preview"\n journey_id?: string\n portal_id?: string\n portal_user_id?: string\n assignments?: string[]\n read_only?: boolean\n anonymize?: boolean\n last_used?: string // date\n}\n```\n\n### `RoleId`\n\nFormat: `<organization_id>`:`<slug>`\n\n```ts\ntype RoleId = string\n```\n\n### `Assignments`\n\nList of role ids attached to an user\n\n```ts\ntype Assignments = string[]\n```\n';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
exports.default = access_token_default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import "./chunk-YPSWSI3M.js";
|
|
2
|
-
|
|
3
|
-
// src/docs/access-token.json
|
|
4
|
-
var access_token_default = '# Access Token API\n\n- **Base URL:** `https://access-token.sls.epilot.io`\n- **Full API Docs:** [https://docs.epilot.io/api/access-token](https://docs.epilot.io/api/access-token)\n\n## Usage\n\n```ts\nimport { epilot } from \'@epilot/sdk\'\n\nepilot.authorize(() => \'<token>\')\nconst { data } = await epilot.accessToken.createAccessToken(...)\n```\n\n### Tree-shakeable import\n\n```ts\nimport { getClient, authorize } from \'@epilot/sdk/access-token\'\n\nconst accessTokenClient = getClient()\nauthorize(accessTokenClient, () => \'<token>\')\nconst { data } = await accessTokenClient.createAccessToken(...)\n```\n\n## Operations\n\n**Access Tokens**\n- [`createAccessToken`](#createaccesstoken)\n- [`listAccessTokens`](#listaccesstokens)\n- [`revokeAccessToken`](#revokeaccesstoken)\n\n**Public**\n- [`getAccessTokenJwks`](#getaccesstokenjwks)\n- [`getAccessTokenOIDC`](#getaccesstokenoidc)\n- [`getPublicTokenJwks`](#getpublictokenjwks)\n- [`getPortalPreviewTokenJwks`](#getportalpreviewtokenjwks)\n- [`getPublicTokenOIDC`](#getpublictokenoidc)\n- [`getPortalPreviewTokenOIDC`](#getportalpreviewtokenoidc)\n\n**Schemas**\n- [`AccessToken`](#accesstoken)\n- [`AccessTokenId`](#accesstokenid)\n- [`AccessTokenName`](#accesstokenname)\n- [`AccessTokenType`](#accesstokentype)\n- [`AccessTokenJourneyId`](#accesstokenjourneyid)\n- [`PortalId`](#portalid)\n- [`PortalUserId`](#portaluserid)\n- [`TokenParameters`](#tokenparameters)\n- [`ExpiresIn`](#expiresin)\n- [`ReadOnly`](#readonly)\n- [`Anonymize`](#anonymize)\n- [`AccessTokenParameters`](#accesstokenparameters)\n- [`JourneyTokenParameters`](#journeytokenparameters)\n- [`PortalTokenParameters`](#portaltokenparameters)\n- [`AssumeTokenParameters`](#assumetokenparameters)\n- [`AppTokenParameters`](#apptokenparameters)\n- [`PortalPreviewTokenParameters`](#portalpreviewtokenparameters)\n- [`AccessTokenItem`](#accesstokenitem)\n- [`RoleId`](#roleid)\n- [`Assignments`](#assignments)\n\n### `createAccessToken`\n\n**Access Token type: `API`** (default if not specified):\n\n`POST /v1/access-tokens`\n\n```ts\nconst { data } = await client.createAccessToken(\n null,\n {\n name: \'Postman Access Token\',\n token_type: \'api\',\n assignments: [\'123:owner\'],\n expires_in: 3600,\n read_only: true,\n anonymize: true\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6Ikp...",\n "id": "api_5ZugdRXasLfWBypHi93Fk",\n "created_at": "1970-01-01T00:00:00.000Z",\n "name": "Postman Access Token",\n "token_type": "api",\n "journey_id": "string",\n "portal_id": "string",\n "portal_user_id": "string",\n "assignments": ["123:owner"],\n "read_only": true,\n "anonymize": true,\n "last_used": "2026-02-24"\n}\n```\n\n</details>\n\n---\n\n### `listAccessTokens`\n\nLists all Access Tokens for current user (by default excludes system generated tokens)\n\n`GET /v1/access-tokens`\n\n```ts\nconst { data } = await client.listAccessTokens({\n token_type: [\'...\'],\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n[\n {\n "id": "api_5ZugdRXasLfWBypHi93Fk",\n "created_at": "1970-01-01T00:00:00.000Z",\n "name": "Postman Access Token",\n "token_type": "api",\n "journey_id": "string",\n "portal_id": "string",\n "portal_user_id": "string",\n "assignments": ["123:owner"],\n "read_only": true,\n "anonymize": true,\n "last_used": "2026-02-24"\n }\n]\n```\n\n</details>\n\n---\n\n### `revokeAccessToken`\n\nRevokes an Access Token so it can\'t be used anymore.\n\n`DELETE /v1/access-tokens/{id}`\n\n```ts\nconst { data } = await client.revokeAccessToken({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "api_5ZugdRXasLfWBypHi93Fk",\n "created_at": "1970-01-01T00:00:00.000Z",\n "name": "Postman Access Token",\n "token_type": "api",\n "journey_id": "string",\n "portal_id": "string",\n "portal_user_id": "string",\n "assignments": ["123:owner"],\n "read_only": true,\n "anonymize": true,\n "last_used": "2026-02-24"\n}\n```\n\n</details>\n\n---\n\n### `getAccessTokenJwks`\n\nGet jwks public key set to verify access tokens generated by this API\n\n`GET /v1/access-tokens/.well-known/jwks.json`\n\n```ts\nconst { data } = await client.getAccessTokenJwks()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "keys": [\n {\n "alg": "RS256",\n "e": "AQAB",\n "kid": "tXWU5mPMbRPczpbQwi6vbhLF4GgF3wlMDSyqo7pfeiw=",\n "kty": "RSA",\n "n": "h_QDoCjZ8W_trtYXaP7_S22wf5r5Wd9XBLED78oT44bJjQXn8ddcFV8Hik65_4IYXVX_hTTU4zpxe3H8vx2j7-Zz3O59mYMp5S0MzODNEdf5Y_2o19eis0brmAJniixsNlQ9LlYkdrVamrgaxHu3ZpP_99zkfFybYeuYoQNzb3PyrT8xVnz_USs_nlFMHpGUxvvz7gfKPqxcLvgLJr4cwI9yzaSY9CD4qW181QVcnL_WzpQ8xx6AuhhHZQ1l_3GG4InTk8ahE7U2ZHVu8RrX6d01pMgc3piEcet9RgFLnhbTg3YIiKGoAbN42wJn_x3lgIAC42T9mbmTsHyUdS6nUQ",\n "use": "sig"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `getAccessTokenOIDC`\n\nOpenID Connect configuration for Access Token API as identity provider\n\n`GET /v1/access-tokens/.well-known/openid-configuration`\n\n```ts\nconst { data } = await client.getAccessTokenOIDC()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "issuer": "https://access-token.sls.epilot.io/v1/access-tokens",\n "jwks_uri": "https://access-token.sls.epilot.io/v1/access-tokens/.well-known/jwks.json"\n}\n```\n\n</details>\n\n---\n\n### `getPublicTokenJwks`\n\nGet jwks public key set to verify public tokens generated by this API\n\n`GET /v1/access-tokens/public/.well-known/jwks.json`\n\n```ts\nconst { data } = await client.getPublicTokenJwks()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "keys": [\n {\n "alg": "RS256",\n "e": "AQAB",\n "kid": "tXWU5mPMbRPczpbQwi6vbhLF4GgF3wlMDSyqo7pfeiw=",\n "kty": "RSA",\n "n": "h_QDoCjZ8W_trtYXaP7_S22wf5r5Wd9XBLED78oT44bJjQXn8ddcFV8Hik65_4IYXVX_hTTU4zpxe3H8vx2j7-Zz3O59mYMp5S0MzODNEdf5Y_2o19eis0brmAJniixsNlQ9LlYkdrVamrgaxHu3ZpP_99zkfFybYeuYoQNzb3PyrT8xVnz_USs_nlFMHpGUxvvz7gfKPqxcLvgLJr4cwI9yzaSY9CD4qW181QVcnL_WzpQ8xx6AuhhHZQ1l_3GG4InTk8ahE7U2ZHVu8RrX6d01pMgc3piEcet9RgFLnhbTg3YIiKGoAbN42wJn_x3lgIAC42T9mbmTsHyUdS6nUQ",\n "use": "sig"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `getPortalPreviewTokenJwks`\n\nGet jwks public key set to verify portal preview tokens generated by this API\n\n`GET /v1/access-tokens/portal-preview/.well-known/jwks.json`\n\n```ts\nconst { data } = await client.getPortalPreviewTokenJwks()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "keys": [\n {\n "alg": "RS256",\n "e": "AQAB",\n "kid": "tXWU5mPMbRPczpbQwi6vbhLF4GgF3wlMDSyqo7pfeiw=",\n "kty": "RSA",\n "n": "h_QDoCjZ8W_trtYXaP7_S22wf5r5Wd9XBLED78oT44bJjQXn8ddcFV8Hik65_4IYXVX_hTTU4zpxe3H8vx2j7-Zz3O59mYMp5S0MzODNEdf5Y_2o19eis0brmAJniixsNlQ9LlYkdrVamrgaxHu3ZpP_99zkfFybYeuYoQNzb3PyrT8xVnz_USs_nlFMHpGUxvvz7gfKPqxcLvgLJr4cwI9yzaSY9CD4qW181QVcnL_WzpQ8xx6AuhhHZQ1l_3GG4InTk8ahE7U2ZHVu8RrX6d01pMgc3piEcet9RgFLnhbTg3YIiKGoAbN42wJn_x3lgIAC42T9mbmTsHyUdS6nUQ",\n "use": "sig"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `getPublicTokenOIDC`\n\nOpenID Connect configuration for Access Token API a a public identity provider\n\n`GET /v1/access-tokens/public/.well-known/openid-configuration`\n\n```ts\nconst { data } = await client.getPublicTokenOIDC()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "issuer": "https://access-token.sls.epilot.io/v1/access-tokens",\n "jwks_uri": "https://access-token.sls.epilot.io/v1/access-tokens/.well-known/jwks.json"\n}\n```\n\n</details>\n\n---\n\n### `getPortalPreviewTokenOIDC`\n\nOpenID Connect configuration for Access Token API a a portal preview identity provider\n\n`GET /v1/access-tokens/portal-preview/.well-known/openid-configuration`\n\n```ts\nconst { data } = await client.getPortalPreviewTokenOIDC()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "issuer": "https://access-token.sls.epilot.io/v1/access-tokens/portal-preview",\n "jwks_uri": "https://access-token.sls.epilot.io/v1/access-tokens/portal-preview/.well-known/jwks.json"\n}\n```\n\n</details>\n\n---\n\n## Schemas\n\n### `AccessToken`\n\nA JWT Access Token\n\n```ts\ntype AccessToken = string\n```\n\n### `AccessTokenId`\n\n```ts\ntype AccessTokenId = string\n```\n\n### `AccessTokenName`\n\nHuman readable name for access token\n\n```ts\ntype AccessTokenName = string\n```\n\n### `AccessTokenType`\n\nAccess token type\n\n```ts\ntype AccessTokenType = "api" | "journey" | "portal" | "assume" | "app" | "portal_preview"\n```\n\n### `AccessTokenJourneyId`\n\nJourney ID for access token type "journey"\n\n```ts\ntype AccessTokenJourneyId = string\n```\n\n### `PortalId`\n\nPortal ID for access token type "portal"\n\n```ts\ntype PortalId = string\n```\n\n### `PortalUserId`\n\nPortal User ID for access token type "portal_preview"\n\n```ts\ntype PortalUserId = string\n```\n\n### `TokenParameters`\n\n```ts\ntype TokenParameters = {\n name: string\n token_type?: "api"\n assignments?: string[]\n expires_in?: number | string\n read_only?: boolean\n anonymize?: boolean\n} | {\n name: string\n token_type?: "journey"\n journey_id: string\n expires_in?: number | string\n} | {\n name: string\n token_type?: "portal"\n portal_id: string\n expires_in?: number | string\n} | {\n name: string\n token_type?: "assume"\n assignments?: string[]\n read_only?: boolean\n anonymize?: boolean\n} | {\n name: string\n token_type?: "app"\n assignments?: string[]\n expires_in?: number | string\n read_only?: boolean\n anonymize?: boolean\n} | {\n name: string\n token_type?: "portal_preview"\n portal_id: string\n portal_user_id: string\n}\n```\n\n### `ExpiresIn`\n\n```ts\ntype ExpiresIn = number | string\n```\n\n### `ReadOnly`\n\nWhen true, the issued token may only perform read-only actions. Any action guarded by permissions that is not read-only (i.e. not a view/export/download action) is denied, regardless of the roles the token carries.\n\n```ts\ntype ReadOnly = boolean\n```\n\n### `Anonymize`\n\nForces PII anonymization on all entity data returned to this token. Cannot be disabled by the token bearer. See entity-api anonymized responses.\n\n```ts\ntype Anonymize = boolean\n```\n\n### `AccessTokenParameters`\n\n```ts\ntype AccessTokenParameters = {\n name: string\n token_type?: "api"\n assignments?: string[]\n expires_in?: number | string\n read_only?: boolean\n anonymize?: boolean\n}\n```\n\n### `JourneyTokenParameters`\n\n```ts\ntype JourneyTokenParameters = {\n name: string\n token_type?: "journey"\n journey_id: string\n expires_in?: number | string\n}\n```\n\n### `PortalTokenParameters`\n\n```ts\ntype PortalTokenParameters = {\n name: string\n token_type?: "portal"\n portal_id: string\n expires_in?: number | string\n}\n```\n\n### `AssumeTokenParameters`\n\n```ts\ntype AssumeTokenParameters = {\n name: string\n token_type?: "assume"\n assignments?: string[]\n read_only?: boolean\n anonymize?: boolean\n}\n```\n\n### `AppTokenParameters`\n\n```ts\ntype AppTokenParameters = {\n name: string\n token_type?: "app"\n assignments?: string[]\n expires_in?: number | string\n read_only?: boolean\n anonymize?: boolean\n}\n```\n\n### `PortalPreviewTokenParameters`\n\n```ts\ntype PortalPreviewTokenParameters = {\n name: string\n token_type?: "portal_preview"\n portal_id: string\n portal_user_id: string\n}\n```\n\n### `AccessTokenItem`\n\n```ts\ntype AccessTokenItem = {\n id: string\n created_at: string // date-time\n name: string\n token_type?: "api" | "journey" | "portal" | "assume" | "app" | "portal_preview"\n journey_id?: string\n portal_id?: string\n portal_user_id?: string\n assignments?: string[]\n read_only?: boolean\n anonymize?: boolean\n last_used?: string // date\n}\n```\n\n### `RoleId`\n\nFormat: `<organization_id>`:`<slug>`\n\n```ts\ntype RoleId = string\n```\n\n### `Assignments`\n\nList of role ids attached to an user\n\n```ts\ntype Assignments = string[]\n```\n';
|
|
5
|
-
export {
|
|
6
|
-
access_token_default as default
|
|
7
|
-
};
|