@epilot/cli 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +354 -0
  3. package/definitions/access-token.json +663 -0
  4. package/definitions/address-suggestions.json +582 -0
  5. package/definitions/address.json +578 -0
  6. package/definitions/ai-agents.json +1711 -0
  7. package/definitions/app.json +4443 -0
  8. package/definitions/audit-logs.json +305 -0
  9. package/definitions/automation.json +4815 -0
  10. package/definitions/billing.json +837 -0
  11. package/definitions/blueprint-manifest.json +3376 -0
  12. package/definitions/consent.json +344 -0
  13. package/definitions/customer-portal.json +15000 -0
  14. package/definitions/dashboard.json +484 -0
  15. package/definitions/data-management.json +962 -0
  16. package/definitions/deduplication.json +183 -0
  17. package/definitions/design.json +1423 -0
  18. package/definitions/document.json +758 -0
  19. package/definitions/email-settings.json +2627 -0
  20. package/definitions/email-template.json +1419 -0
  21. package/definitions/entity-mapping.json +1642 -0
  22. package/definitions/entity.json +10074 -0
  23. package/definitions/environments.json +363 -0
  24. package/definitions/erp-integration.json +5845 -0
  25. package/definitions/event-catalog.json +1051 -0
  26. package/definitions/file.json +2842 -0
  27. package/definitions/iban.json +132 -0
  28. package/definitions/journey.json +2341 -0
  29. package/definitions/kanban.json +929 -0
  30. package/definitions/message.json +2660 -0
  31. package/definitions/metering.json +2321 -0
  32. package/definitions/notes.json +1531 -0
  33. package/definitions/notification.json +1425 -0
  34. package/definitions/organization.json +629 -0
  35. package/definitions/partner-directory.json +1718 -0
  36. package/definitions/permissions.json +1480 -0
  37. package/definitions/pricing-tier.json +105 -0
  38. package/definitions/pricing.json +9884 -0
  39. package/definitions/purpose.json +524 -0
  40. package/definitions/sandbox.json +453 -0
  41. package/definitions/submission.json +313 -0
  42. package/definitions/targeting.json +1474 -0
  43. package/definitions/template-variables.json +1408 -0
  44. package/definitions/user.json +2408 -0
  45. package/definitions/validation-rules.json +1491 -0
  46. package/definitions/webhooks.json +1525 -0
  47. package/definitions/workflow-definition.json +3417 -0
  48. package/definitions/workflow.json +4106 -0
  49. package/dist/access-token-OG5AR7UB.js +51 -0
  50. package/dist/address-QUSMK5GV.js +51 -0
  51. package/dist/address-suggestions-E5SQNUS5.js +51 -0
  52. package/dist/ai-agents-PM42SJY3.js +51 -0
  53. package/dist/app-YTM3XAJL.js +51 -0
  54. package/dist/audit-logs-NXP7GFKX.js +51 -0
  55. package/dist/auth-CCBTXH5U.js +113 -0
  56. package/dist/auth-login-2ZIXM47J.js +137 -0
  57. package/dist/auth-token-OS4BEEVZ.js +43 -0
  58. package/dist/automation-TDJASTEV.js +51 -0
  59. package/dist/billing-M4MRBLEK.js +51 -0
  60. package/dist/bin/epilot.js +104 -0
  61. package/dist/blueprint-manifest-NQL7NRMV.js +51 -0
  62. package/dist/chunk-57PPARIW.js +715 -0
  63. package/dist/chunk-5WUPDZ5D.js +76 -0
  64. package/dist/chunk-IST42ZNL.js +78 -0
  65. package/dist/chunk-RC3GCXCI.js +76 -0
  66. package/dist/chunk-TKZLQD2B.js +72 -0
  67. package/dist/chunk-UJ6TU34M.js +56 -0
  68. package/dist/completion-GRQM2FJQ.js +168 -0
  69. package/dist/consent-KQ7MJAS6.js +51 -0
  70. package/dist/customer-portal-VUVSKWAQ.js +51 -0
  71. package/dist/dashboard-GVR4XNGR.js +51 -0
  72. package/dist/data-management-2RD3DLOS.js +51 -0
  73. package/dist/deduplication-PY77EINR.js +51 -0
  74. package/dist/design-M4FP2K5R.js +51 -0
  75. package/dist/document-P4QA7LEZ.js +51 -0
  76. package/dist/email-settings-7HGGRCCM.js +51 -0
  77. package/dist/email-template-3HXQI4CH.js +51 -0
  78. package/dist/entity-XUESZBPJ.js +51 -0
  79. package/dist/entity-mapping-JBKWWBH2.js +51 -0
  80. package/dist/environments-KKOS7ONY.js +51 -0
  81. package/dist/erp-integration-YTOWHCAW.js +51 -0
  82. package/dist/event-catalog-UKLZUGC4.js +51 -0
  83. package/dist/file-IFZNZ547.js +51 -0
  84. package/dist/iban-X2IW2NWU.js +51 -0
  85. package/dist/interactive-46ICLQKL.js +16 -0
  86. package/dist/journey-JU6X2KMX.js +51 -0
  87. package/dist/kanban-VHUU44PM.js +51 -0
  88. package/dist/message-AOUWJ4YX.js +51 -0
  89. package/dist/metering-RDS3XBD5.js +51 -0
  90. package/dist/notes-WE2UC75B.js +51 -0
  91. package/dist/notification-FKFNBHYZ.js +51 -0
  92. package/dist/organization-LMNFF6BX.js +51 -0
  93. package/dist/partner-directory-IIZVQDXJ.js +51 -0
  94. package/dist/permissions-AYCMVM7Y.js +51 -0
  95. package/dist/pricing-PS26FWBS.js +51 -0
  96. package/dist/pricing-tier-FBXWQ6T3.js +51 -0
  97. package/dist/profile-5Q5YARG7.js +135 -0
  98. package/dist/purpose-HE4E4SVU.js +51 -0
  99. package/dist/sandbox-Z7BU4UAD.js +51 -0
  100. package/dist/submission-MWVDF2ZB.js +51 -0
  101. package/dist/targeting-7NM5GDJ6.js +51 -0
  102. package/dist/template-variables-AJAR7PAV.js +51 -0
  103. package/dist/user-A26XQXG3.js +51 -0
  104. package/dist/validation-rules-VZTISEG2.js +51 -0
  105. package/dist/webhooks-RXH67WZ3.js +51 -0
  106. package/dist/workflow-G4FUUGZQ.js +51 -0
  107. package/dist/workflow-definition-LJYLMMGD.js +51 -0
  108. package/package.json +62 -0
@@ -0,0 +1,663 @@
1
+ {
2
+ "openapi": "3.0.3",
3
+ "info": {
4
+ "title": "Access Token API",
5
+ "version": "0.4.0",
6
+ "description": "Generate Access Tokens for 3rd party applications that need access to epilot APIs.\n"
7
+ },
8
+ "tags": [
9
+ {
10
+ "name": "Access Tokens",
11
+ "description": "Create Access Tokens for epilot APIs"
12
+ },
13
+ {
14
+ "name": "Public",
15
+ "description": "Well known endpoints to verify tokens generated by this API"
16
+ }
17
+ ],
18
+ "security": [
19
+ {
20
+ "EpilotAuth": []
21
+ },
22
+ {
23
+ "EpilotOrg": []
24
+ }
25
+ ],
26
+ "paths": {
27
+ "/v1/access-tokens": {
28
+ "post": {
29
+ "operationId": "createAccessToken",
30
+ "summary": "createAccessToken",
31
+ "description": "**Access Token type: `API`** (default if not specified):\n\nGenerates a new Access Token to use for calling epilot APIs.\n\nTakes optionally a list of Roles assigned to the Access Token. Defaults to current user's assignments\n\nSee [Permissions API docs](https://docs.epilot.io/api/permissions)\n\n**Access Token type: `JOURNEY`**:\n\nGenerates a Public Access Token related to a journey.\nThe journey id should be specfied.\n",
32
+ "tags": [
33
+ "Access Tokens"
34
+ ],
35
+ "requestBody": {
36
+ "description": "Metadata for the Access Token",
37
+ "content": {
38
+ "application/json": {
39
+ "schema": {
40
+ "$ref": "#/components/schemas/TokenParameters"
41
+ },
42
+ "examples": {
43
+ "api": {
44
+ "value": {
45
+ "name": "API Access Token",
46
+ "token_type": "api",
47
+ "assignments": []
48
+ }
49
+ },
50
+ "journey": {
51
+ "value": {
52
+ "name": "Journey Access Token",
53
+ "token_type": "journey",
54
+ "journey_id": "u29g7-97gajsaog-028t02jag-a9a72tk"
55
+ }
56
+ },
57
+ "portal": {
58
+ "value": {
59
+ "name": "Installer /End Customer Portal Access Token",
60
+ "token_type": "portal",
61
+ "portal_id": "END_CUSTOMER_PORTAL"
62
+ }
63
+ },
64
+ "assume": {
65
+ "value": {
66
+ "name": "Assume Token intended for assuming a different role as a user",
67
+ "token_type": "assume",
68
+ "assignments": [
69
+ "739224:employee"
70
+ ]
71
+ }
72
+ },
73
+ "app": {
74
+ "value": {
75
+ "name": "App Access Token",
76
+ "token_type": "app",
77
+ "assignments": [
78
+ "739224:e5c1f9b1-e41d-421d-83c4-c5626e464430"
79
+ ]
80
+ }
81
+ }
82
+ }
83
+ }
84
+ }
85
+ },
86
+ "responses": {
87
+ "201": {
88
+ "description": "The new generated Access Token",
89
+ "content": {
90
+ "application/json": {
91
+ "schema": {
92
+ "allOf": [
93
+ {
94
+ "properties": {
95
+ "token": {
96
+ "$ref": "#/components/schemas/AccessToken"
97
+ }
98
+ }
99
+ },
100
+ {
101
+ "$ref": "#/components/schemas/AccessTokenItem"
102
+ }
103
+ ]
104
+ }
105
+ }
106
+ }
107
+ },
108
+ "400": {
109
+ "description": "Bad Request",
110
+ "content": {
111
+ "application/json": {
112
+ "schema": {
113
+ "type": "object",
114
+ "properties": {
115
+ "status": {
116
+ "type": "integer"
117
+ },
118
+ "error": {
119
+ "type": "string"
120
+ }
121
+ }
122
+ }
123
+ }
124
+ }
125
+ },
126
+ "500": {
127
+ "description": "Internal Server Error",
128
+ "content": {
129
+ "application/json": {
130
+ "schema": {
131
+ "type": "object",
132
+ "properties": {
133
+ "status": {
134
+ "type": "integer"
135
+ },
136
+ "error": {
137
+ "type": "string"
138
+ }
139
+ }
140
+ }
141
+ }
142
+ }
143
+ }
144
+ }
145
+ },
146
+ "get": {
147
+ "operationId": "listAccessTokens",
148
+ "summary": "listAccessTokens",
149
+ "description": "Lists all Access Tokens for current user (by default excludes system generated tokens)",
150
+ "parameters": [
151
+ {
152
+ "in": "query",
153
+ "name": "token_type",
154
+ "description": "Filter by token types",
155
+ "schema": {
156
+ "type": "array",
157
+ "items": {
158
+ "$ref": "#/components/schemas/AccessTokenType"
159
+ }
160
+ }
161
+ }
162
+ ],
163
+ "tags": [
164
+ "Access Tokens"
165
+ ],
166
+ "responses": {
167
+ "200": {
168
+ "description": "List of Access Tokens",
169
+ "content": {
170
+ "application/json": {
171
+ "schema": {
172
+ "type": "array",
173
+ "items": {
174
+ "$ref": "#/components/schemas/AccessTokenItem"
175
+ }
176
+ }
177
+ }
178
+ }
179
+ }
180
+ }
181
+ }
182
+ },
183
+ "/v1/access-tokens/{id}": {
184
+ "delete": {
185
+ "operationId": "revokeAccessToken",
186
+ "summary": "revokeAccessToken",
187
+ "description": "Revokes an Access Token so it can't be used anymore.",
188
+ "parameters": [
189
+ {
190
+ "name": "id",
191
+ "in": "path",
192
+ "schema": {
193
+ "$ref": "#/components/schemas/AccessTokenId"
194
+ },
195
+ "required": true
196
+ }
197
+ ],
198
+ "tags": [
199
+ "Access Tokens"
200
+ ],
201
+ "responses": {
202
+ "200": {
203
+ "description": "The revoked generated Access Token",
204
+ "content": {
205
+ "application/json": {
206
+ "schema": {
207
+ "$ref": "#/components/schemas/AccessTokenItem"
208
+ }
209
+ }
210
+ }
211
+ }
212
+ }
213
+ }
214
+ },
215
+ "/v1/access-tokens/.well-known/jwks.json": {
216
+ "get": {
217
+ "operationId": "getAccessTokenJwks",
218
+ "summary": "getAccessTokenJwks",
219
+ "description": "Get jwks public key set to verify access tokens generated by this API",
220
+ "tags": [
221
+ "Public"
222
+ ],
223
+ "security": [],
224
+ "responses": {
225
+ "200": {
226
+ "description": "Set of jwks",
227
+ "content": {
228
+ "application/json": {
229
+ "schema": {
230
+ "type": "object",
231
+ "properties": {
232
+ "keys": {
233
+ "type": "array",
234
+ "items": {
235
+ "type": "object",
236
+ "properties": {
237
+ "alg": {
238
+ "type": "string",
239
+ "example": "RS256"
240
+ },
241
+ "e": {
242
+ "type": "string",
243
+ "example": "AQAB"
244
+ },
245
+ "kid": {
246
+ "type": "string",
247
+ "example": "tXWU5mPMbRPczpbQwi6vbhLF4GgF3wlMDSyqo7pfeiw="
248
+ },
249
+ "kty": {
250
+ "type": "string",
251
+ "example": "RSA"
252
+ },
253
+ "n": {
254
+ "type": "string",
255
+ "example": "h_QDoCjZ8W_trtYXaP7_S22wf5r5Wd9XBLED78oT44bJjQXn8ddcFV8Hik65_4IYXVX_hTTU4zpxe3H8vx2j7-Zz3O59mYMp5S0MzODNEdf5Y_2o19eis0brmAJniixsNlQ9LlYkdrVamrgaxHu3ZpP_99zkfFybYeuYoQNzb3PyrT8xVnz_USs_nlFMHpGUxvvz7gfKPqxcLvgLJr4cwI9yzaSY9CD4qW181QVcnL_WzpQ8xx6AuhhHZQ1l_3GG4InTk8ahE7U2ZHVu8RrX6d01pMgc3piEcet9RgFLnhbTg3YIiKGoAbN42wJn_x3lgIAC42T9mbmTsHyUdS6nUQ"
256
+ },
257
+ "use": {
258
+ "type": "string",
259
+ "example": "sig"
260
+ }
261
+ }
262
+ }
263
+ }
264
+ }
265
+ }
266
+ }
267
+ }
268
+ }
269
+ }
270
+ }
271
+ },
272
+ "/v1/access-tokens/.well-known/openid-configuration": {
273
+ "get": {
274
+ "operationId": "getAccessTokenOIDC",
275
+ "summary": "getAccessTokenOIDC",
276
+ "description": "OpenID Connect configuration for Access Token API as 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",
277
+ "tags": [
278
+ "Public"
279
+ ],
280
+ "security": [],
281
+ "responses": {
282
+ "200": {
283
+ "description": "OpenID Configuration",
284
+ "content": {
285
+ "application/json": {
286
+ "schema": {
287
+ "type": "object",
288
+ "properties": {
289
+ "issuer": {
290
+ "type": "string",
291
+ "format": "uri",
292
+ "example": "https://access-token.sls.epilot.io/v1/access-tokens"
293
+ },
294
+ "jwks_uri": {
295
+ "type": "string",
296
+ "format": "uri",
297
+ "example": "https://access-token.sls.epilot.io/v1/access-tokens/.well-known/jwks.json"
298
+ }
299
+ }
300
+ }
301
+ }
302
+ }
303
+ }
304
+ }
305
+ }
306
+ },
307
+ "/v1/access-tokens/public/.well-known/jwks.json": {
308
+ "get": {
309
+ "operationId": "getPublicTokenJwks",
310
+ "summary": "getPublicTokenJwks",
311
+ "description": "Get jwks public key set to verify public tokens generated by this API",
312
+ "tags": [
313
+ "Public"
314
+ ],
315
+ "security": [],
316
+ "responses": {
317
+ "200": {
318
+ "description": "Set of jwks",
319
+ "content": {
320
+ "application/json": {
321
+ "schema": {
322
+ "type": "object",
323
+ "properties": {
324
+ "keys": {
325
+ "type": "array",
326
+ "items": {
327
+ "type": "object",
328
+ "properties": {
329
+ "alg": {
330
+ "type": "string",
331
+ "example": "RS256"
332
+ },
333
+ "e": {
334
+ "type": "string",
335
+ "example": "AQAB"
336
+ },
337
+ "kid": {
338
+ "type": "string",
339
+ "example": "tXWU5mPMbRPczpbQwi6vbhLF4GgF3wlMDSyqo7pfeiw="
340
+ },
341
+ "kty": {
342
+ "type": "string",
343
+ "example": "RSA"
344
+ },
345
+ "n": {
346
+ "type": "string",
347
+ "example": "h_QDoCjZ8W_trtYXaP7_S22wf5r5Wd9XBLED78oT44bJjQXn8ddcFV8Hik65_4IYXVX_hTTU4zpxe3H8vx2j7-Zz3O59mYMp5S0MzODNEdf5Y_2o19eis0brmAJniixsNlQ9LlYkdrVamrgaxHu3ZpP_99zkfFybYeuYoQNzb3PyrT8xVnz_USs_nlFMHpGUxvvz7gfKPqxcLvgLJr4cwI9yzaSY9CD4qW181QVcnL_WzpQ8xx6AuhhHZQ1l_3GG4InTk8ahE7U2ZHVu8RrX6d01pMgc3piEcet9RgFLnhbTg3YIiKGoAbN42wJn_x3lgIAC42T9mbmTsHyUdS6nUQ"
348
+ },
349
+ "use": {
350
+ "type": "string",
351
+ "example": "sig"
352
+ }
353
+ }
354
+ }
355
+ }
356
+ }
357
+ }
358
+ }
359
+ }
360
+ }
361
+ }
362
+ }
363
+ },
364
+ "/v1/access-tokens/public/.well-known/openid-configuration": {
365
+ "get": {
366
+ "operationId": "getPublicTokenOIDC",
367
+ "summary": "getPublicTokenOIDC",
368
+ "description": "OpenID Connect configuration for Access Token API a a public 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",
369
+ "tags": [
370
+ "Public"
371
+ ],
372
+ "security": [],
373
+ "responses": {
374
+ "200": {
375
+ "description": "OpenID Configuration",
376
+ "content": {
377
+ "application/json": {
378
+ "schema": {
379
+ "type": "object",
380
+ "properties": {
381
+ "issuer": {
382
+ "type": "string",
383
+ "format": "uri",
384
+ "example": "https://access-token.sls.epilot.io/v1/access-tokens"
385
+ },
386
+ "jwks_uri": {
387
+ "type": "string",
388
+ "format": "uri",
389
+ "example": "https://access-token.sls.epilot.io/v1/access-tokens/.well-known/jwks.json"
390
+ }
391
+ }
392
+ }
393
+ }
394
+ }
395
+ }
396
+ }
397
+ }
398
+ }
399
+ },
400
+ "components": {
401
+ "securitySchemes": {
402
+ "EpilotAuth": {
403
+ "type": "http",
404
+ "scheme": "bearer",
405
+ "description": "Authorization header with epilot OAuth2 bearer token",
406
+ "bearerFormat": "JWT"
407
+ },
408
+ "EpilotOrg": {
409
+ "description": "Overrides the target organization to allow shared tenantaccess",
410
+ "name": "x-epilot-org-id",
411
+ "in": "header",
412
+ "type": "apiKey"
413
+ }
414
+ },
415
+ "schemas": {
416
+ "AccessToken": {
417
+ "type": "string",
418
+ "description": "A JWT Access Token",
419
+ "example": "eyJhbGciOiJIUzI1NiIsInR5cCI6Ikp..."
420
+ },
421
+ "AccessTokenId": {
422
+ "type": "string",
423
+ "example": "api_5ZugdRXasLfWBypHi93Fk"
424
+ },
425
+ "AccessTokenName": {
426
+ "type": "string",
427
+ "description": "Human readable name for access token",
428
+ "example": "Postman Access Token"
429
+ },
430
+ "AccessTokenType": {
431
+ "type": "string",
432
+ "enum": [
433
+ "api",
434
+ "journey",
435
+ "portal",
436
+ "assume",
437
+ "app"
438
+ ],
439
+ "description": "Access token type",
440
+ "example": "api"
441
+ },
442
+ "AccessTokenJourneyId": {
443
+ "type": "string",
444
+ "description": "Journey ID for access token type \"journey\""
445
+ },
446
+ "PortalId": {
447
+ "type": "string",
448
+ "description": "Portal ID for access token type \"portal\""
449
+ },
450
+ "TokenParameters": {
451
+ "anyOf": [
452
+ {
453
+ "$ref": "#/components/schemas/AccessTokenParameters"
454
+ },
455
+ {
456
+ "$ref": "#/components/schemas/JourneyTokenParameters"
457
+ },
458
+ {
459
+ "$ref": "#/components/schemas/PortalTokenParameters"
460
+ },
461
+ {
462
+ "$ref": "#/components/schemas/AssumeTokenParameters"
463
+ },
464
+ {
465
+ "$ref": "#/components/schemas/AppTokenParameters"
466
+ }
467
+ ]
468
+ },
469
+ "ExpiresIn": {
470
+ "oneOf": [
471
+ {
472
+ "type": "integer",
473
+ "format": "int32",
474
+ "description": "Expiration time in seconds",
475
+ "example": 3600,
476
+ "minimum": 30,
477
+ "maximum": 604800
478
+ },
479
+ {
480
+ "type": "string",
481
+ "description": "Expiration time as a string with time units (e.g., '10h', '7d', '2 days')",
482
+ "example": "1h",
483
+ "pattern": "^[0-9]+ ?(ms|milliseconds?|s|seconds?|m|minutes?|h|hours?|d|days?|w|weeks?|y|years?)?$"
484
+ }
485
+ ]
486
+ },
487
+ "AccessTokenParameters": {
488
+ "type": "object",
489
+ "additionalProperties": false,
490
+ "properties": {
491
+ "name": {
492
+ "$ref": "#/components/schemas/AccessTokenName"
493
+ },
494
+ "token_type": {
495
+ "type": "string",
496
+ "enum": [
497
+ "api"
498
+ ]
499
+ },
500
+ "assignments": {
501
+ "$ref": "#/components/schemas/Assignments"
502
+ },
503
+ "expires_in": {
504
+ "$ref": "#/components/schemas/ExpiresIn"
505
+ }
506
+ },
507
+ "required": [
508
+ "name"
509
+ ]
510
+ },
511
+ "JourneyTokenParameters": {
512
+ "type": "object",
513
+ "additionalProperties": false,
514
+ "properties": {
515
+ "name": {
516
+ "$ref": "#/components/schemas/AccessTokenName"
517
+ },
518
+ "token_type": {
519
+ "type": "string",
520
+ "enum": [
521
+ "journey"
522
+ ]
523
+ },
524
+ "journey_id": {
525
+ "$ref": "#/components/schemas/AccessTokenJourneyId"
526
+ },
527
+ "expires_in": {
528
+ "$ref": "#/components/schemas/ExpiresIn"
529
+ }
530
+ },
531
+ "required": [
532
+ "name",
533
+ "journey_id"
534
+ ]
535
+ },
536
+ "PortalTokenParameters": {
537
+ "type": "object",
538
+ "additionalProperties": false,
539
+ "properties": {
540
+ "name": {
541
+ "$ref": "#/components/schemas/AccessTokenName"
542
+ },
543
+ "token_type": {
544
+ "type": "string",
545
+ "enum": [
546
+ "portal"
547
+ ]
548
+ },
549
+ "portal_id": {
550
+ "$ref": "#/components/schemas/PortalId"
551
+ },
552
+ "expires_in": {
553
+ "$ref": "#/components/schemas/ExpiresIn"
554
+ }
555
+ },
556
+ "required": [
557
+ "name",
558
+ "portal_id"
559
+ ]
560
+ },
561
+ "AssumeTokenParameters": {
562
+ "type": "object",
563
+ "additionalProperties": false,
564
+ "properties": {
565
+ "name": {
566
+ "$ref": "#/components/schemas/AccessTokenName"
567
+ },
568
+ "token_type": {
569
+ "type": "string",
570
+ "enum": [
571
+ "assume"
572
+ ]
573
+ },
574
+ "assignments": {
575
+ "$ref": "#/components/schemas/Assignments"
576
+ }
577
+ },
578
+ "required": [
579
+ "name"
580
+ ]
581
+ },
582
+ "AppTokenParameters": {
583
+ "type": "object",
584
+ "additionalProperties": false,
585
+ "properties": {
586
+ "name": {
587
+ "$ref": "#/components/schemas/AccessTokenName"
588
+ },
589
+ "token_type": {
590
+ "type": "string",
591
+ "enum": [
592
+ "app"
593
+ ]
594
+ },
595
+ "assignments": {
596
+ "$ref": "#/components/schemas/Assignments"
597
+ },
598
+ "expires_in": {
599
+ "$ref": "#/components/schemas/ExpiresIn"
600
+ }
601
+ },
602
+ "required": [
603
+ "name"
604
+ ]
605
+ },
606
+ "AccessTokenItem": {
607
+ "type": "object",
608
+ "properties": {
609
+ "id": {
610
+ "$ref": "#/components/schemas/AccessTokenId"
611
+ },
612
+ "created_at": {
613
+ "type": "string",
614
+ "format": "date-time"
615
+ },
616
+ "name": {
617
+ "$ref": "#/components/schemas/AccessTokenName"
618
+ },
619
+ "token_type": {
620
+ "$ref": "#/components/schemas/AccessTokenType"
621
+ },
622
+ "journey_id": {
623
+ "$ref": "#/components/schemas/AccessTokenJourneyId"
624
+ },
625
+ "portal_id": {
626
+ "$ref": "#/components/schemas/PortalId"
627
+ },
628
+ "assignments": {
629
+ "$ref": "#/components/schemas/Assignments"
630
+ },
631
+ "last_used": {
632
+ "type": "string",
633
+ "format": "date",
634
+ "description": "Last date the token was used (YYYY-MM-DD format, 1 day accuracy)",
635
+ "example": "2026-02-24"
636
+ }
637
+ },
638
+ "required": [
639
+ "id",
640
+ "created_at",
641
+ "name"
642
+ ]
643
+ },
644
+ "RoleId": {
645
+ "type": "string",
646
+ "example": "123:owner",
647
+ "description": "Format: <organization_id>:<slug>"
648
+ },
649
+ "Assignments": {
650
+ "type": "array",
651
+ "description": "List of role ids attached to an user",
652
+ "items": {
653
+ "$ref": "#/components/schemas/RoleId"
654
+ }
655
+ }
656
+ }
657
+ },
658
+ "servers": [
659
+ {
660
+ "url": "https://access-token.sls.epilot.io"
661
+ }
662
+ ]
663
+ }