@epilot/sdk 2.8.1 → 2.8.2
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 +155 -1
- package/dist/access-token-GD6REL4U.js +7 -0
- package/dist/access-token-NQ5BLMOW.cjs +7 -0
- package/dist/{access-token-runtime-KCKGT4O7.js → access-token-runtime-2PSLN2U3.js} +1 -1
- package/dist/{access-token-runtime-NZWZJPWV.cjs → access-token-runtime-B6Z7JLUS.cjs} +2 -2
- package/dist/{access-token.d-CnmUTOlq.d.cts → access-token.d-CegaQmrK.d.cts} +165 -5
- package/dist/{access-token.d-CnmUTOlq.d.ts → access-token.d-CegaQmrK.d.ts} +165 -5
- 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 +6 -6
- package/dist/apis/integration-toolkit.js +1 -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/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-WPBRWQPL.cjs → chunk-3IOUJMDV.cjs} +2 -2
- package/dist/{chunk-ALMZO57K.js → chunk-MVY54TDV.js} +2 -2
- package/dist/{chunk-XSE4CFSM.js → chunk-OHHHS4HH.js} +1 -1
- package/dist/{chunk-OXJOO2YF.cjs → chunk-S5HBBTKM.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 +111 -3
- package/package.json +1 -1
- package/dist/access-token-6BJDZSFE.cjs +0 -7
- package/dist/access-token-GSQZLDXR.js +0 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"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"],["getPublicTokenOIDC","get","/v1/access-tokens/public/.well-known/openid-configuration"]],"v":"3.0.3"}
|
|
1
|
+
{"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"}
|
|
@@ -70,6 +70,14 @@
|
|
|
70
70
|
]
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
|
+
"portal_preview": {
|
|
74
|
+
"value": {
|
|
75
|
+
"name": "Portal Preview Token for previewing customer portal",
|
|
76
|
+
"token_type": "portal_preview",
|
|
77
|
+
"portal_id": "portal_abc123",
|
|
78
|
+
"portal_user_id": "user_xyz789"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
73
81
|
"app": {
|
|
74
82
|
"value": {
|
|
75
83
|
"name": "App Access Token",
|
|
@@ -361,6 +369,63 @@
|
|
|
361
369
|
}
|
|
362
370
|
}
|
|
363
371
|
},
|
|
372
|
+
"/v1/access-tokens/portal-preview/.well-known/jwks.json": {
|
|
373
|
+
"get": {
|
|
374
|
+
"operationId": "getPortalPreviewTokenJwks",
|
|
375
|
+
"summary": "getPortalPreviewTokenJwks",
|
|
376
|
+
"description": "Get jwks public key set to verify portal preview tokens generated by this API",
|
|
377
|
+
"tags": [
|
|
378
|
+
"Public"
|
|
379
|
+
],
|
|
380
|
+
"security": [],
|
|
381
|
+
"responses": {
|
|
382
|
+
"200": {
|
|
383
|
+
"description": "Set of jwks",
|
|
384
|
+
"content": {
|
|
385
|
+
"application/json": {
|
|
386
|
+
"schema": {
|
|
387
|
+
"type": "object",
|
|
388
|
+
"properties": {
|
|
389
|
+
"keys": {
|
|
390
|
+
"type": "array",
|
|
391
|
+
"items": {
|
|
392
|
+
"type": "object",
|
|
393
|
+
"properties": {
|
|
394
|
+
"alg": {
|
|
395
|
+
"type": "string",
|
|
396
|
+
"example": "RS256"
|
|
397
|
+
},
|
|
398
|
+
"e": {
|
|
399
|
+
"type": "string",
|
|
400
|
+
"example": "AQAB"
|
|
401
|
+
},
|
|
402
|
+
"kid": {
|
|
403
|
+
"type": "string",
|
|
404
|
+
"example": "tXWU5mPMbRPczpbQwi6vbhLF4GgF3wlMDSyqo7pfeiw="
|
|
405
|
+
},
|
|
406
|
+
"kty": {
|
|
407
|
+
"type": "string",
|
|
408
|
+
"example": "RSA"
|
|
409
|
+
},
|
|
410
|
+
"n": {
|
|
411
|
+
"type": "string",
|
|
412
|
+
"example": "h_QDoCjZ8W_trtYXaP7_S22wf5r5Wd9XBLED78oT44bJjQXn8ddcFV8Hik65_4IYXVX_hTTU4zpxe3H8vx2j7-Zz3O59mYMp5S0MzODNEdf5Y_2o19eis0brmAJniixsNlQ9LlYkdrVamrgaxHu3ZpP_99zkfFybYeuYoQNzb3PyrT8xVnz_USs_nlFMHpGUxvvz7gfKPqxcLvgLJr4cwI9yzaSY9CD4qW181QVcnL_WzpQ8xx6AuhhHZQ1l_3GG4InTk8ahE7U2ZHVu8RrX6d01pMgc3piEcet9RgFLnhbTg3YIiKGoAbN42wJn_x3lgIAC42T9mbmTsHyUdS6nUQ"
|
|
413
|
+
},
|
|
414
|
+
"use": {
|
|
415
|
+
"type": "string",
|
|
416
|
+
"example": "sig"
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
},
|
|
364
429
|
"/v1/access-tokens/public/.well-known/openid-configuration": {
|
|
365
430
|
"get": {
|
|
366
431
|
"operationId": "getPublicTokenOIDC",
|
|
@@ -395,6 +460,41 @@
|
|
|
395
460
|
}
|
|
396
461
|
}
|
|
397
462
|
}
|
|
463
|
+
},
|
|
464
|
+
"/v1/access-tokens/portal-preview/.well-known/openid-configuration": {
|
|
465
|
+
"get": {
|
|
466
|
+
"operationId": "getPortalPreviewTokenOIDC",
|
|
467
|
+
"summary": "getPortalPreviewTokenOIDC",
|
|
468
|
+
"description": "OpenID Connect configuration for Access Token API a a portal preview identity provider\n\nNote: This API is not a fully compliant OAuth2.0 / OIDC identity provider, but this endpoint is useful to\nautomate the process of verifying JWT tokens.\n",
|
|
469
|
+
"tags": [
|
|
470
|
+
"Public"
|
|
471
|
+
],
|
|
472
|
+
"security": [],
|
|
473
|
+
"responses": {
|
|
474
|
+
"200": {
|
|
475
|
+
"description": "OpenID Configuration",
|
|
476
|
+
"content": {
|
|
477
|
+
"application/json": {
|
|
478
|
+
"schema": {
|
|
479
|
+
"type": "object",
|
|
480
|
+
"properties": {
|
|
481
|
+
"issuer": {
|
|
482
|
+
"type": "string",
|
|
483
|
+
"format": "uri",
|
|
484
|
+
"example": "https://access-token.sls.epilot.io/v1/access-tokens/portal-preview"
|
|
485
|
+
},
|
|
486
|
+
"jwks_uri": {
|
|
487
|
+
"type": "string",
|
|
488
|
+
"format": "uri",
|
|
489
|
+
"example": "https://access-token.sls.epilot.io/v1/access-tokens/portal-preview/.well-known/jwks.json"
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
}
|
|
398
498
|
}
|
|
399
499
|
},
|
|
400
500
|
"components": {
|
|
@@ -434,7 +534,8 @@
|
|
|
434
534
|
"journey",
|
|
435
535
|
"portal",
|
|
436
536
|
"assume",
|
|
437
|
-
"app"
|
|
537
|
+
"app",
|
|
538
|
+
"portal_preview"
|
|
438
539
|
],
|
|
439
540
|
"description": "Access token type",
|
|
440
541
|
"example": "api"
|
|
@@ -447,6 +548,10 @@
|
|
|
447
548
|
"type": "string",
|
|
448
549
|
"description": "Portal ID for access token type \"portal\""
|
|
449
550
|
},
|
|
551
|
+
"PortalUserId": {
|
|
552
|
+
"type": "string",
|
|
553
|
+
"description": "Portal User ID for access token type \"portal_preview\""
|
|
554
|
+
},
|
|
450
555
|
"TokenParameters": {
|
|
451
556
|
"anyOf": [
|
|
452
557
|
{
|
|
@@ -463,6 +568,9 @@
|
|
|
463
568
|
},
|
|
464
569
|
{
|
|
465
570
|
"$ref": "#/components/schemas/AppTokenParameters"
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
"$ref": "#/components/schemas/PortalPreviewTokenParameters"
|
|
466
574
|
}
|
|
467
575
|
]
|
|
468
576
|
},
|
|
@@ -484,6 +592,11 @@
|
|
|
484
592
|
}
|
|
485
593
|
]
|
|
486
594
|
},
|
|
595
|
+
"ReadOnly": {
|
|
596
|
+
"type": "boolean",
|
|
597
|
+
"description": "When 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.",
|
|
598
|
+
"example": true
|
|
599
|
+
},
|
|
487
600
|
"AccessTokenParameters": {
|
|
488
601
|
"type": "object",
|
|
489
602
|
"additionalProperties": false,
|
|
@@ -502,6 +615,9 @@
|
|
|
502
615
|
},
|
|
503
616
|
"expires_in": {
|
|
504
617
|
"$ref": "#/components/schemas/ExpiresIn"
|
|
618
|
+
},
|
|
619
|
+
"read_only": {
|
|
620
|
+
"$ref": "#/components/schemas/ReadOnly"
|
|
505
621
|
}
|
|
506
622
|
},
|
|
507
623
|
"required": [
|
|
@@ -573,6 +689,9 @@
|
|
|
573
689
|
},
|
|
574
690
|
"assignments": {
|
|
575
691
|
"$ref": "#/components/schemas/Assignments"
|
|
692
|
+
},
|
|
693
|
+
"read_only": {
|
|
694
|
+
"$ref": "#/components/schemas/ReadOnly"
|
|
576
695
|
}
|
|
577
696
|
},
|
|
578
697
|
"required": [
|
|
@@ -597,12 +716,41 @@
|
|
|
597
716
|
},
|
|
598
717
|
"expires_in": {
|
|
599
718
|
"$ref": "#/components/schemas/ExpiresIn"
|
|
719
|
+
},
|
|
720
|
+
"read_only": {
|
|
721
|
+
"$ref": "#/components/schemas/ReadOnly"
|
|
600
722
|
}
|
|
601
723
|
},
|
|
602
724
|
"required": [
|
|
603
725
|
"name"
|
|
604
726
|
]
|
|
605
727
|
},
|
|
728
|
+
"PortalPreviewTokenParameters": {
|
|
729
|
+
"type": "object",
|
|
730
|
+
"additionalProperties": false,
|
|
731
|
+
"properties": {
|
|
732
|
+
"name": {
|
|
733
|
+
"$ref": "#/components/schemas/AccessTokenName"
|
|
734
|
+
},
|
|
735
|
+
"token_type": {
|
|
736
|
+
"type": "string",
|
|
737
|
+
"enum": [
|
|
738
|
+
"portal_preview"
|
|
739
|
+
]
|
|
740
|
+
},
|
|
741
|
+
"portal_id": {
|
|
742
|
+
"$ref": "#/components/schemas/PortalId"
|
|
743
|
+
},
|
|
744
|
+
"portal_user_id": {
|
|
745
|
+
"$ref": "#/components/schemas/PortalUserId"
|
|
746
|
+
}
|
|
747
|
+
},
|
|
748
|
+
"required": [
|
|
749
|
+
"name",
|
|
750
|
+
"portal_id",
|
|
751
|
+
"portal_user_id"
|
|
752
|
+
]
|
|
753
|
+
},
|
|
606
754
|
"AccessTokenItem": {
|
|
607
755
|
"type": "object",
|
|
608
756
|
"properties": {
|
|
@@ -625,9 +773,15 @@
|
|
|
625
773
|
"portal_id": {
|
|
626
774
|
"$ref": "#/components/schemas/PortalId"
|
|
627
775
|
},
|
|
776
|
+
"portal_user_id": {
|
|
777
|
+
"$ref": "#/components/schemas/PortalUserId"
|
|
778
|
+
},
|
|
628
779
|
"assignments": {
|
|
629
780
|
"$ref": "#/components/schemas/Assignments"
|
|
630
781
|
},
|
|
782
|
+
"read_only": {
|
|
783
|
+
"$ref": "#/components/schemas/ReadOnly"
|
|
784
|
+
},
|
|
631
785
|
"last_used": {
|
|
632
786
|
"type": "string",
|
|
633
787
|
"format": "date",
|
|
@@ -0,0 +1,7 @@
|
|
|
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- [`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 },\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 "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 "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 "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} | {\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} | {\n name: string\n token_type?: "app"\n assignments?: string[]\n expires_in?: number | string\n read_only?: 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### `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}\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}\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}\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 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
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
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- [`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 },\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 "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 "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 "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} | {\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} | {\n name: string\n token_type?: "app"\n assignments?: string[]\n expires_in?: number | string\n read_only?: 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### `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}\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}\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}\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 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,5 +1,5 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkS5HBBTKMcjs = require('./chunk-S5HBBTKM.cjs');
|
|
4
4
|
require('./chunk-NJK5F5TF.cjs');
|
|
5
|
-
exports. default =
|
|
5
|
+
exports. default = _chunkS5HBBTKMcjs.require_access_token_runtime.call(void 0, );
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { OpenAPIClient, Parameters, AxiosRequestConfig, OperationResponse, UnknownParamsObject } from 'openapi-client-axios';
|
|
2
2
|
|
|
3
3
|
/* Auto-copied from access-token-client */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
|
|
6
4
|
|
|
7
5
|
|
|
8
6
|
declare namespace Components {
|
|
@@ -39,7 +37,14 @@ declare namespace Components {
|
|
|
39
37
|
AccessTokenType;
|
|
40
38
|
journey_id?: /* Journey ID for access token type "journey" */ AccessTokenJourneyId;
|
|
41
39
|
portal_id?: /* Portal ID for access token type "portal" */ PortalId;
|
|
40
|
+
portal_user_id?: /* Portal User ID for access token type "portal_preview" */ PortalUserId;
|
|
42
41
|
assignments?: /* List of role ids attached to an user */ Assignments;
|
|
42
|
+
read_only?: /**
|
|
43
|
+
* When 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.
|
|
44
|
+
* example:
|
|
45
|
+
* true
|
|
46
|
+
*/
|
|
47
|
+
ReadOnly;
|
|
43
48
|
/**
|
|
44
49
|
* Last date the token was used (YYYY-MM-DD format, 1 day accuracy)
|
|
45
50
|
* example:
|
|
@@ -67,13 +72,19 @@ declare namespace Components {
|
|
|
67
72
|
token_type?: "api";
|
|
68
73
|
assignments?: /* List of role ids attached to an user */ Assignments;
|
|
69
74
|
expires_in?: ExpiresIn;
|
|
75
|
+
read_only?: /**
|
|
76
|
+
* When 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.
|
|
77
|
+
* example:
|
|
78
|
+
* true
|
|
79
|
+
*/
|
|
80
|
+
ReadOnly;
|
|
70
81
|
}
|
|
71
82
|
/**
|
|
72
83
|
* Access token type
|
|
73
84
|
* example:
|
|
74
85
|
* api
|
|
75
86
|
*/
|
|
76
|
-
export type AccessTokenType = "api" | "journey" | "portal" | "assume" | "app";
|
|
87
|
+
export type AccessTokenType = "api" | "journey" | "portal" | "assume" | "app" | "portal_preview";
|
|
77
88
|
export interface AppTokenParameters {
|
|
78
89
|
name: /**
|
|
79
90
|
* Human readable name for access token
|
|
@@ -84,6 +95,12 @@ declare namespace Components {
|
|
|
84
95
|
token_type?: "app";
|
|
85
96
|
assignments?: /* List of role ids attached to an user */ Assignments;
|
|
86
97
|
expires_in?: ExpiresIn;
|
|
98
|
+
read_only?: /**
|
|
99
|
+
* When 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.
|
|
100
|
+
* example:
|
|
101
|
+
* true
|
|
102
|
+
*/
|
|
103
|
+
ReadOnly;
|
|
87
104
|
}
|
|
88
105
|
/**
|
|
89
106
|
* List of role ids attached to an user
|
|
@@ -103,6 +120,12 @@ declare namespace Components {
|
|
|
103
120
|
AccessTokenName;
|
|
104
121
|
token_type?: "assume";
|
|
105
122
|
assignments?: /* List of role ids attached to an user */ Assignments;
|
|
123
|
+
read_only?: /**
|
|
124
|
+
* When 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.
|
|
125
|
+
* example:
|
|
126
|
+
* true
|
|
127
|
+
*/
|
|
128
|
+
ReadOnly;
|
|
106
129
|
}
|
|
107
130
|
export type ExpiresIn = number /* int32 */ | string /* ^[0-9]+ ?(ms|milliseconds?|s|seconds?|m|minutes?|h|hours?|d|days?|w|weeks?|y|years?)?$ */;
|
|
108
131
|
export interface JourneyTokenParameters {
|
|
@@ -120,6 +143,17 @@ declare namespace Components {
|
|
|
120
143
|
* Portal ID for access token type "portal"
|
|
121
144
|
*/
|
|
122
145
|
export type PortalId = string;
|
|
146
|
+
export interface PortalPreviewTokenParameters {
|
|
147
|
+
name: /**
|
|
148
|
+
* Human readable name for access token
|
|
149
|
+
* example:
|
|
150
|
+
* Postman Access Token
|
|
151
|
+
*/
|
|
152
|
+
AccessTokenName;
|
|
153
|
+
token_type?: "portal_preview";
|
|
154
|
+
portal_id: /* Portal ID for access token type "portal" */ PortalId;
|
|
155
|
+
portal_user_id: /* Portal User ID for access token type "portal_preview" */ PortalUserId;
|
|
156
|
+
}
|
|
123
157
|
export interface PortalTokenParameters {
|
|
124
158
|
name: /**
|
|
125
159
|
* Human readable name for access token
|
|
@@ -131,13 +165,23 @@ declare namespace Components {
|
|
|
131
165
|
portal_id: /* Portal ID for access token type "portal" */ PortalId;
|
|
132
166
|
expires_in?: ExpiresIn;
|
|
133
167
|
}
|
|
168
|
+
/**
|
|
169
|
+
* Portal User ID for access token type "portal_preview"
|
|
170
|
+
*/
|
|
171
|
+
export type PortalUserId = string;
|
|
172
|
+
/**
|
|
173
|
+
* When 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.
|
|
174
|
+
* example:
|
|
175
|
+
* true
|
|
176
|
+
*/
|
|
177
|
+
export type ReadOnly = boolean;
|
|
134
178
|
/**
|
|
135
179
|
* Format: <organization_id>:<slug>
|
|
136
180
|
* example:
|
|
137
181
|
* 123:owner
|
|
138
182
|
*/
|
|
139
183
|
export type RoleId = string;
|
|
140
|
-
export type TokenParameters = AccessTokenParameters | JourneyTokenParameters | PortalTokenParameters | AssumeTokenParameters | AppTokenParameters;
|
|
184
|
+
export type TokenParameters = AccessTokenParameters | JourneyTokenParameters | PortalTokenParameters | AssumeTokenParameters | AppTokenParameters | PortalPreviewTokenParameters;
|
|
141
185
|
}
|
|
142
186
|
}
|
|
143
187
|
declare namespace Paths {
|
|
@@ -171,7 +215,14 @@ declare namespace Paths {
|
|
|
171
215
|
Components.Schemas.AccessTokenType;
|
|
172
216
|
journey_id?: /* Journey ID for access token type "journey" */ Components.Schemas.AccessTokenJourneyId;
|
|
173
217
|
portal_id?: /* Portal ID for access token type "portal" */ Components.Schemas.PortalId;
|
|
218
|
+
portal_user_id?: /* Portal User ID for access token type "portal_preview" */ Components.Schemas.PortalUserId;
|
|
174
219
|
assignments?: /* List of role ids attached to an user */ Components.Schemas.Assignments;
|
|
220
|
+
read_only?: /**
|
|
221
|
+
* When 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.
|
|
222
|
+
* example:
|
|
223
|
+
* true
|
|
224
|
+
*/
|
|
225
|
+
Components.Schemas.ReadOnly;
|
|
175
226
|
/**
|
|
176
227
|
* Last date the token was used (YYYY-MM-DD format, 1 day accuracy)
|
|
177
228
|
* example:
|
|
@@ -243,6 +294,60 @@ declare namespace Paths {
|
|
|
243
294
|
}
|
|
244
295
|
}
|
|
245
296
|
}
|
|
297
|
+
namespace GetPortalPreviewTokenJwks {
|
|
298
|
+
namespace Responses {
|
|
299
|
+
export interface $200 {
|
|
300
|
+
keys?: {
|
|
301
|
+
/**
|
|
302
|
+
* example:
|
|
303
|
+
* RS256
|
|
304
|
+
*/
|
|
305
|
+
alg?: string;
|
|
306
|
+
/**
|
|
307
|
+
* example:
|
|
308
|
+
* AQAB
|
|
309
|
+
*/
|
|
310
|
+
e?: string;
|
|
311
|
+
/**
|
|
312
|
+
* example:
|
|
313
|
+
* tXWU5mPMbRPczpbQwi6vbhLF4GgF3wlMDSyqo7pfeiw=
|
|
314
|
+
*/
|
|
315
|
+
kid?: string;
|
|
316
|
+
/**
|
|
317
|
+
* example:
|
|
318
|
+
* RSA
|
|
319
|
+
*/
|
|
320
|
+
kty?: string;
|
|
321
|
+
/**
|
|
322
|
+
* example:
|
|
323
|
+
* h_QDoCjZ8W_trtYXaP7_S22wf5r5Wd9XBLED78oT44bJjQXn8ddcFV8Hik65_4IYXVX_hTTU4zpxe3H8vx2j7-Zz3O59mYMp5S0MzODNEdf5Y_2o19eis0brmAJniixsNlQ9LlYkdrVamrgaxHu3ZpP_99zkfFybYeuYoQNzb3PyrT8xVnz_USs_nlFMHpGUxvvz7gfKPqxcLvgLJr4cwI9yzaSY9CD4qW181QVcnL_WzpQ8xx6AuhhHZQ1l_3GG4InTk8ahE7U2ZHVu8RrX6d01pMgc3piEcet9RgFLnhbTg3YIiKGoAbN42wJn_x3lgIAC42T9mbmTsHyUdS6nUQ
|
|
324
|
+
*/
|
|
325
|
+
n?: string;
|
|
326
|
+
/**
|
|
327
|
+
* example:
|
|
328
|
+
* sig
|
|
329
|
+
*/
|
|
330
|
+
use?: string;
|
|
331
|
+
}[];
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
namespace GetPortalPreviewTokenOIDC {
|
|
336
|
+
namespace Responses {
|
|
337
|
+
export interface $200 {
|
|
338
|
+
/**
|
|
339
|
+
* example:
|
|
340
|
+
* https://access-token.sls.epilot.io/v1/access-tokens/portal-preview
|
|
341
|
+
*/
|
|
342
|
+
issuer?: string; // uri
|
|
343
|
+
/**
|
|
344
|
+
* example:
|
|
345
|
+
* https://access-token.sls.epilot.io/v1/access-tokens/portal-preview/.well-known/jwks.json
|
|
346
|
+
*/
|
|
347
|
+
jwks_uri?: string; // uri
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
}
|
|
246
351
|
namespace GetPublicTokenJwks {
|
|
247
352
|
namespace Responses {
|
|
248
353
|
export interface $200 {
|
|
@@ -408,6 +513,16 @@ interface OperationMethods {
|
|
|
408
513
|
data?: any,
|
|
409
514
|
config?: AxiosRequestConfig
|
|
410
515
|
): OperationResponse<Paths.GetPublicTokenJwks.Responses.$200>
|
|
516
|
+
/**
|
|
517
|
+
* getPortalPreviewTokenJwks - getPortalPreviewTokenJwks
|
|
518
|
+
*
|
|
519
|
+
* Get jwks public key set to verify portal preview tokens generated by this API
|
|
520
|
+
*/
|
|
521
|
+
'getPortalPreviewTokenJwks'(
|
|
522
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
523
|
+
data?: any,
|
|
524
|
+
config?: AxiosRequestConfig
|
|
525
|
+
): OperationResponse<Paths.GetPortalPreviewTokenJwks.Responses.$200>
|
|
411
526
|
/**
|
|
412
527
|
* getPublicTokenOIDC - getPublicTokenOIDC
|
|
413
528
|
*
|
|
@@ -422,6 +537,20 @@ interface OperationMethods {
|
|
|
422
537
|
data?: any,
|
|
423
538
|
config?: AxiosRequestConfig
|
|
424
539
|
): OperationResponse<Paths.GetPublicTokenOIDC.Responses.$200>
|
|
540
|
+
/**
|
|
541
|
+
* getPortalPreviewTokenOIDC - getPortalPreviewTokenOIDC
|
|
542
|
+
*
|
|
543
|
+
* OpenID Connect configuration for Access Token API a a portal preview identity provider
|
|
544
|
+
*
|
|
545
|
+
* Note: This API is not a fully compliant OAuth2.0 / OIDC identity provider, but this endpoint is useful to
|
|
546
|
+
* automate the process of verifying JWT tokens.
|
|
547
|
+
*
|
|
548
|
+
*/
|
|
549
|
+
'getPortalPreviewTokenOIDC'(
|
|
550
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
551
|
+
data?: any,
|
|
552
|
+
config?: AxiosRequestConfig
|
|
553
|
+
): OperationResponse<Paths.GetPortalPreviewTokenOIDC.Responses.$200>
|
|
425
554
|
}
|
|
426
555
|
|
|
427
556
|
interface PathsDictionary {
|
|
@@ -511,6 +640,18 @@ interface PathsDictionary {
|
|
|
511
640
|
config?: AxiosRequestConfig
|
|
512
641
|
): OperationResponse<Paths.GetPublicTokenJwks.Responses.$200>
|
|
513
642
|
}
|
|
643
|
+
['/v1/access-tokens/portal-preview/.well-known/jwks.json']: {
|
|
644
|
+
/**
|
|
645
|
+
* getPortalPreviewTokenJwks - getPortalPreviewTokenJwks
|
|
646
|
+
*
|
|
647
|
+
* Get jwks public key set to verify portal preview tokens generated by this API
|
|
648
|
+
*/
|
|
649
|
+
'get'(
|
|
650
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
651
|
+
data?: any,
|
|
652
|
+
config?: AxiosRequestConfig
|
|
653
|
+
): OperationResponse<Paths.GetPortalPreviewTokenJwks.Responses.$200>
|
|
654
|
+
}
|
|
514
655
|
['/v1/access-tokens/public/.well-known/openid-configuration']: {
|
|
515
656
|
/**
|
|
516
657
|
* getPublicTokenOIDC - getPublicTokenOIDC
|
|
@@ -527,6 +668,22 @@ interface PathsDictionary {
|
|
|
527
668
|
config?: AxiosRequestConfig
|
|
528
669
|
): OperationResponse<Paths.GetPublicTokenOIDC.Responses.$200>
|
|
529
670
|
}
|
|
671
|
+
['/v1/access-tokens/portal-preview/.well-known/openid-configuration']: {
|
|
672
|
+
/**
|
|
673
|
+
* getPortalPreviewTokenOIDC - getPortalPreviewTokenOIDC
|
|
674
|
+
*
|
|
675
|
+
* OpenID Connect configuration for Access Token API a a portal preview identity provider
|
|
676
|
+
*
|
|
677
|
+
* Note: This API is not a fully compliant OAuth2.0 / OIDC identity provider, but this endpoint is useful to
|
|
678
|
+
* automate the process of verifying JWT tokens.
|
|
679
|
+
*
|
|
680
|
+
*/
|
|
681
|
+
'get'(
|
|
682
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
683
|
+
data?: any,
|
|
684
|
+
config?: AxiosRequestConfig
|
|
685
|
+
): OperationResponse<Paths.GetPortalPreviewTokenOIDC.Responses.$200>
|
|
686
|
+
}
|
|
530
687
|
}
|
|
531
688
|
|
|
532
689
|
type Client = OpenAPIClient<OperationMethods, PathsDictionary>
|
|
@@ -545,8 +702,11 @@ type AssumeTokenParameters = Components.Schemas.AssumeTokenParameters;
|
|
|
545
702
|
type ExpiresIn = Components.Schemas.ExpiresIn;
|
|
546
703
|
type JourneyTokenParameters = Components.Schemas.JourneyTokenParameters;
|
|
547
704
|
type PortalId = Components.Schemas.PortalId;
|
|
705
|
+
type PortalPreviewTokenParameters = Components.Schemas.PortalPreviewTokenParameters;
|
|
548
706
|
type PortalTokenParameters = Components.Schemas.PortalTokenParameters;
|
|
707
|
+
type PortalUserId = Components.Schemas.PortalUserId;
|
|
708
|
+
type ReadOnly = Components.Schemas.ReadOnly;
|
|
549
709
|
type RoleId = Components.Schemas.RoleId;
|
|
550
710
|
type TokenParameters = Components.Schemas.TokenParameters;
|
|
551
711
|
|
|
552
|
-
export { type AccessToken as A, type Client as C, type ExpiresIn as E, type JourneyTokenParameters as J, type OperationMethods as O, Paths as P, type
|
|
712
|
+
export { type AccessToken as A, type Client as C, type ExpiresIn as E, type JourneyTokenParameters as J, type OperationMethods as O, Paths as P, type ReadOnly as R, type TokenParameters as T, Components as a, type PathsDictionary as b, type AccessTokenId as c, type AccessTokenItem as d, type AccessTokenJourneyId as e, type AccessTokenName as f, type AccessTokenParameters as g, type AccessTokenType as h, type AppTokenParameters as i, type Assignments as j, type AssumeTokenParameters as k, type PortalId as l, type PortalPreviewTokenParameters as m, type PortalTokenParameters as n, type PortalUserId as o, type RoleId as p };
|