@epilot/sdk 2.19.2 → 2.19.3

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 (109) hide show
  1. package/dist/apis/pricing.d.cts +67 -3
  2. package/dist/apis/pricing.d.ts +67 -3
  3. package/dist/index.d.cts +1 -1
  4. package/dist/index.d.ts +1 -1
  5. package/dist/{pricing.d-Det6zqGv.d.cts → pricing.d-CSVO1WCD.d.cts} +1 -1
  6. package/dist/{pricing.d-Det6zqGv.d.ts → pricing.d-CSVO1WCD.d.ts} +1 -1
  7. package/package.json +1 -1
  8. package/definitions/access-token-runtime.json +0 -1
  9. package/definitions/access-token.json +0 -835
  10. package/definitions/address-runtime.json +0 -1
  11. package/definitions/address-suggestions-runtime.json +0 -1
  12. package/definitions/address-suggestions.json +0 -582
  13. package/definitions/address.json +0 -578
  14. package/definitions/ai-agents-runtime.json +0 -1
  15. package/definitions/ai-agents.json +0 -2863
  16. package/definitions/app-runtime.json +0 -1
  17. package/definitions/app.json +0 -5743
  18. package/definitions/audit-logs-runtime.json +0 -1
  19. package/definitions/audit-logs.json +0 -305
  20. package/definitions/automation-runtime.json +0 -1
  21. package/definitions/automation.json +0 -5557
  22. package/definitions/billing-runtime.json +0 -1
  23. package/definitions/billing.json +0 -2386
  24. package/definitions/blueprint-manifest-runtime.json +0 -1
  25. package/definitions/blueprint-manifest.json +0 -7718
  26. package/definitions/calendar-runtime.json +0 -1
  27. package/definitions/calendar.json +0 -2904
  28. package/definitions/configuration-hub-runtime.json +0 -1
  29. package/definitions/configuration-hub.json +0 -2250
  30. package/definitions/consent-runtime.json +0 -1
  31. package/definitions/consent.json +0 -344
  32. package/definitions/customer-portal-runtime.json +0 -1
  33. package/definitions/customer-portal.json +0 -19919
  34. package/definitions/dashboard-runtime.json +0 -1
  35. package/definitions/dashboard.json +0 -1355
  36. package/definitions/data-governance-runtime.json +0 -1
  37. package/definitions/data-governance.json +0 -1126
  38. package/definitions/deduplication-runtime.json +0 -1
  39. package/definitions/deduplication.json +0 -782
  40. package/definitions/design-runtime.json +0 -1
  41. package/definitions/design.json +0 -1827
  42. package/definitions/document-runtime.json +0 -1
  43. package/definitions/document.json +0 -758
  44. package/definitions/email-settings-runtime.json +0 -1
  45. package/definitions/email-settings.json +0 -3736
  46. package/definitions/email-template-runtime.json +0 -1
  47. package/definitions/email-template.json +0 -1441
  48. package/definitions/entity-mapping-runtime.json +0 -1
  49. package/definitions/entity-mapping.json +0 -1642
  50. package/definitions/entity-runtime.json +0 -1
  51. package/definitions/entity.json +0 -11517
  52. package/definitions/environments-runtime.json +0 -1
  53. package/definitions/environments.json +0 -539
  54. package/definitions/event-catalog-runtime.json +0 -1
  55. package/definitions/event-catalog.json +0 -1524
  56. package/definitions/file-runtime.json +0 -1
  57. package/definitions/file.json +0 -3905
  58. package/definitions/iban-runtime.json +0 -1
  59. package/definitions/iban.json +0 -132
  60. package/definitions/integration-toolkit-runtime.json +0 -1
  61. package/definitions/integration-toolkit.json +0 -12769
  62. package/definitions/journey-runtime.json +0 -1
  63. package/definitions/journey.json +0 -2640
  64. package/definitions/kanban-runtime.json +0 -1
  65. package/definitions/kanban.json +0 -1506
  66. package/definitions/message-runtime.json +0 -1
  67. package/definitions/message.json +0 -3667
  68. package/definitions/metering-runtime.json +0 -1
  69. package/definitions/metering.json +0 -3132
  70. package/definitions/notes-runtime.json +0 -1
  71. package/definitions/notes.json +0 -1698
  72. package/definitions/notification-runtime.json +0 -1
  73. package/definitions/notification.json +0 -1439
  74. package/definitions/organization-runtime.json +0 -1
  75. package/definitions/organization.json +0 -1192
  76. package/definitions/partner-directory-runtime.json +0 -1
  77. package/definitions/partner-directory.json +0 -2284
  78. package/definitions/permissions-runtime.json +0 -1
  79. package/definitions/permissions.json +0 -1598
  80. package/definitions/pricing-runtime.json +0 -1
  81. package/definitions/pricing-tier-runtime.json +0 -1
  82. package/definitions/pricing-tier.json +0 -105
  83. package/definitions/pricing.json +0 -11569
  84. package/definitions/purpose-runtime.json +0 -1
  85. package/definitions/purpose.json +0 -524
  86. package/definitions/query-runtime.json +0 -1
  87. package/definitions/query.json +0 -3178
  88. package/definitions/sandbox-runtime.json +0 -1
  89. package/definitions/sandbox.json +0 -453
  90. package/definitions/sharing-runtime.json +0 -1
  91. package/definitions/sharing.json +0 -956
  92. package/definitions/snapshot-runtime.json +0 -1
  93. package/definitions/snapshot.json +0 -1103
  94. package/definitions/submission-runtime.json +0 -1
  95. package/definitions/submission.json +0 -313
  96. package/definitions/targeting-runtime.json +0 -1
  97. package/definitions/targeting.json +0 -2212
  98. package/definitions/template-variables-runtime.json +0 -1
  99. package/definitions/template-variables.json +0 -1416
  100. package/definitions/user-runtime.json +0 -1
  101. package/definitions/user.json +0 -3051
  102. package/definitions/validation-rules-runtime.json +0 -1
  103. package/definitions/validation-rules.json +0 -2365
  104. package/definitions/webhooks-runtime.json +0 -1
  105. package/definitions/webhooks.json +0 -1875
  106. package/definitions/workflow-definition-runtime.json +0 -1
  107. package/definitions/workflow-definition.json +0 -3592
  108. package/definitions/workflow-runtime.json +0 -1
  109. package/definitions/workflow.json +0 -4669
@@ -1,835 +0,0 @@
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
- "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
- },
81
- "app": {
82
- "value": {
83
- "name": "App Access Token",
84
- "token_type": "app",
85
- "assignments": [
86
- "739224:e5c1f9b1-e41d-421d-83c4-c5626e464430"
87
- ]
88
- }
89
- }
90
- }
91
- }
92
- }
93
- },
94
- "responses": {
95
- "201": {
96
- "description": "The new generated Access Token",
97
- "content": {
98
- "application/json": {
99
- "schema": {
100
- "allOf": [
101
- {
102
- "properties": {
103
- "token": {
104
- "$ref": "#/components/schemas/AccessToken"
105
- }
106
- }
107
- },
108
- {
109
- "$ref": "#/components/schemas/AccessTokenItem"
110
- }
111
- ]
112
- }
113
- }
114
- }
115
- },
116
- "400": {
117
- "description": "Bad Request",
118
- "content": {
119
- "application/json": {
120
- "schema": {
121
- "type": "object",
122
- "properties": {
123
- "status": {
124
- "type": "integer"
125
- },
126
- "error": {
127
- "type": "string"
128
- }
129
- }
130
- }
131
- }
132
- }
133
- },
134
- "500": {
135
- "description": "Internal Server Error",
136
- "content": {
137
- "application/json": {
138
- "schema": {
139
- "type": "object",
140
- "properties": {
141
- "status": {
142
- "type": "integer"
143
- },
144
- "error": {
145
- "type": "string"
146
- }
147
- }
148
- }
149
- }
150
- }
151
- }
152
- }
153
- },
154
- "get": {
155
- "operationId": "listAccessTokens",
156
- "summary": "listAccessTokens",
157
- "description": "Lists all Access Tokens for current user (by default excludes system generated tokens)",
158
- "parameters": [
159
- {
160
- "in": "query",
161
- "name": "token_type",
162
- "description": "Filter by token types",
163
- "schema": {
164
- "type": "array",
165
- "items": {
166
- "$ref": "#/components/schemas/AccessTokenType"
167
- }
168
- }
169
- }
170
- ],
171
- "tags": [
172
- "Access Tokens"
173
- ],
174
- "responses": {
175
- "200": {
176
- "description": "List of Access Tokens",
177
- "content": {
178
- "application/json": {
179
- "schema": {
180
- "type": "array",
181
- "items": {
182
- "$ref": "#/components/schemas/AccessTokenItem"
183
- }
184
- }
185
- }
186
- }
187
- }
188
- }
189
- }
190
- },
191
- "/v1/access-tokens/{id}": {
192
- "delete": {
193
- "operationId": "revokeAccessToken",
194
- "summary": "revokeAccessToken",
195
- "description": "Revokes an Access Token so it can't be used anymore.",
196
- "parameters": [
197
- {
198
- "name": "id",
199
- "in": "path",
200
- "schema": {
201
- "$ref": "#/components/schemas/AccessTokenId"
202
- },
203
- "required": true
204
- }
205
- ],
206
- "tags": [
207
- "Access Tokens"
208
- ],
209
- "responses": {
210
- "200": {
211
- "description": "The revoked generated Access Token",
212
- "content": {
213
- "application/json": {
214
- "schema": {
215
- "$ref": "#/components/schemas/AccessTokenItem"
216
- }
217
- }
218
- }
219
- }
220
- }
221
- }
222
- },
223
- "/v1/access-tokens/.well-known/jwks.json": {
224
- "get": {
225
- "operationId": "getAccessTokenJwks",
226
- "summary": "getAccessTokenJwks",
227
- "description": "Get jwks public key set to verify access tokens generated by this API",
228
- "tags": [
229
- "Public"
230
- ],
231
- "security": [],
232
- "responses": {
233
- "200": {
234
- "description": "Set of jwks",
235
- "content": {
236
- "application/json": {
237
- "schema": {
238
- "type": "object",
239
- "properties": {
240
- "keys": {
241
- "type": "array",
242
- "items": {
243
- "type": "object",
244
- "properties": {
245
- "alg": {
246
- "type": "string",
247
- "example": "RS256"
248
- },
249
- "e": {
250
- "type": "string",
251
- "example": "AQAB"
252
- },
253
- "kid": {
254
- "type": "string",
255
- "example": "tXWU5mPMbRPczpbQwi6vbhLF4GgF3wlMDSyqo7pfeiw="
256
- },
257
- "kty": {
258
- "type": "string",
259
- "example": "RSA"
260
- },
261
- "n": {
262
- "type": "string",
263
- "example": "h_QDoCjZ8W_trtYXaP7_S22wf5r5Wd9XBLED78oT44bJjQXn8ddcFV8Hik65_4IYXVX_hTTU4zpxe3H8vx2j7-Zz3O59mYMp5S0MzODNEdf5Y_2o19eis0brmAJniixsNlQ9LlYkdrVamrgaxHu3ZpP_99zkfFybYeuYoQNzb3PyrT8xVnz_USs_nlFMHpGUxvvz7gfKPqxcLvgLJr4cwI9yzaSY9CD4qW181QVcnL_WzpQ8xx6AuhhHZQ1l_3GG4InTk8ahE7U2ZHVu8RrX6d01pMgc3piEcet9RgFLnhbTg3YIiKGoAbN42wJn_x3lgIAC42T9mbmTsHyUdS6nUQ"
264
- },
265
- "use": {
266
- "type": "string",
267
- "example": "sig"
268
- }
269
- }
270
- }
271
- }
272
- }
273
- }
274
- }
275
- }
276
- }
277
- }
278
- }
279
- },
280
- "/v1/access-tokens/.well-known/openid-configuration": {
281
- "get": {
282
- "operationId": "getAccessTokenOIDC",
283
- "summary": "getAccessTokenOIDC",
284
- "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",
285
- "tags": [
286
- "Public"
287
- ],
288
- "security": [],
289
- "responses": {
290
- "200": {
291
- "description": "OpenID Configuration",
292
- "content": {
293
- "application/json": {
294
- "schema": {
295
- "type": "object",
296
- "properties": {
297
- "issuer": {
298
- "type": "string",
299
- "format": "uri",
300
- "example": "https://access-token.sls.epilot.io/v1/access-tokens"
301
- },
302
- "jwks_uri": {
303
- "type": "string",
304
- "format": "uri",
305
- "example": "https://access-token.sls.epilot.io/v1/access-tokens/.well-known/jwks.json"
306
- }
307
- }
308
- }
309
- }
310
- }
311
- }
312
- }
313
- }
314
- },
315
- "/v1/access-tokens/public/.well-known/jwks.json": {
316
- "get": {
317
- "operationId": "getPublicTokenJwks",
318
- "summary": "getPublicTokenJwks",
319
- "description": "Get jwks public key set to verify public tokens generated by this API",
320
- "tags": [
321
- "Public"
322
- ],
323
- "security": [],
324
- "responses": {
325
- "200": {
326
- "description": "Set of jwks",
327
- "content": {
328
- "application/json": {
329
- "schema": {
330
- "type": "object",
331
- "properties": {
332
- "keys": {
333
- "type": "array",
334
- "items": {
335
- "type": "object",
336
- "properties": {
337
- "alg": {
338
- "type": "string",
339
- "example": "RS256"
340
- },
341
- "e": {
342
- "type": "string",
343
- "example": "AQAB"
344
- },
345
- "kid": {
346
- "type": "string",
347
- "example": "tXWU5mPMbRPczpbQwi6vbhLF4GgF3wlMDSyqo7pfeiw="
348
- },
349
- "kty": {
350
- "type": "string",
351
- "example": "RSA"
352
- },
353
- "n": {
354
- "type": "string",
355
- "example": "h_QDoCjZ8W_trtYXaP7_S22wf5r5Wd9XBLED78oT44bJjQXn8ddcFV8Hik65_4IYXVX_hTTU4zpxe3H8vx2j7-Zz3O59mYMp5S0MzODNEdf5Y_2o19eis0brmAJniixsNlQ9LlYkdrVamrgaxHu3ZpP_99zkfFybYeuYoQNzb3PyrT8xVnz_USs_nlFMHpGUxvvz7gfKPqxcLvgLJr4cwI9yzaSY9CD4qW181QVcnL_WzpQ8xx6AuhhHZQ1l_3GG4InTk8ahE7U2ZHVu8RrX6d01pMgc3piEcet9RgFLnhbTg3YIiKGoAbN42wJn_x3lgIAC42T9mbmTsHyUdS6nUQ"
356
- },
357
- "use": {
358
- "type": "string",
359
- "example": "sig"
360
- }
361
- }
362
- }
363
- }
364
- }
365
- }
366
- }
367
- }
368
- }
369
- }
370
- }
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
- },
429
- "/v1/access-tokens/public/.well-known/openid-configuration": {
430
- "get": {
431
- "operationId": "getPublicTokenOIDC",
432
- "summary": "getPublicTokenOIDC",
433
- "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",
434
- "tags": [
435
- "Public"
436
- ],
437
- "security": [],
438
- "responses": {
439
- "200": {
440
- "description": "OpenID Configuration",
441
- "content": {
442
- "application/json": {
443
- "schema": {
444
- "type": "object",
445
- "properties": {
446
- "issuer": {
447
- "type": "string",
448
- "format": "uri",
449
- "example": "https://access-token.sls.epilot.io/v1/access-tokens"
450
- },
451
- "jwks_uri": {
452
- "type": "string",
453
- "format": "uri",
454
- "example": "https://access-token.sls.epilot.io/v1/access-tokens/.well-known/jwks.json"
455
- }
456
- }
457
- }
458
- }
459
- }
460
- }
461
- }
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
- }
498
- }
499
- },
500
- "components": {
501
- "securitySchemes": {
502
- "EpilotAuth": {
503
- "type": "http",
504
- "scheme": "bearer",
505
- "description": "Authorization header with epilot OAuth2 bearer token",
506
- "bearerFormat": "JWT"
507
- },
508
- "EpilotOrg": {
509
- "description": "Overrides the target organization to allow shared tenantaccess",
510
- "name": "x-epilot-org-id",
511
- "in": "header",
512
- "type": "apiKey"
513
- }
514
- },
515
- "schemas": {
516
- "AccessToken": {
517
- "type": "string",
518
- "description": "A JWT Access Token",
519
- "example": "eyJhbGciOiJIUzI1NiIsInR5cCI6Ikp..."
520
- },
521
- "AccessTokenId": {
522
- "type": "string",
523
- "example": "api_5ZugdRXasLfWBypHi93Fk"
524
- },
525
- "AccessTokenName": {
526
- "type": "string",
527
- "description": "Human readable name for access token",
528
- "example": "Postman Access Token"
529
- },
530
- "AccessTokenType": {
531
- "type": "string",
532
- "enum": [
533
- "api",
534
- "journey",
535
- "portal",
536
- "assume",
537
- "app",
538
- "portal_preview"
539
- ],
540
- "description": "Access token type",
541
- "example": "api"
542
- },
543
- "AccessTokenJourneyId": {
544
- "type": "string",
545
- "description": "Journey ID for access token type \"journey\""
546
- },
547
- "PortalId": {
548
- "type": "string",
549
- "description": "Portal ID for access token type \"portal\""
550
- },
551
- "PortalUserId": {
552
- "type": "string",
553
- "description": "Portal User ID for access token type \"portal_preview\""
554
- },
555
- "TokenParameters": {
556
- "anyOf": [
557
- {
558
- "$ref": "#/components/schemas/AccessTokenParameters"
559
- },
560
- {
561
- "$ref": "#/components/schemas/JourneyTokenParameters"
562
- },
563
- {
564
- "$ref": "#/components/schemas/PortalTokenParameters"
565
- },
566
- {
567
- "$ref": "#/components/schemas/AssumeTokenParameters"
568
- },
569
- {
570
- "$ref": "#/components/schemas/AppTokenParameters"
571
- },
572
- {
573
- "$ref": "#/components/schemas/PortalPreviewTokenParameters"
574
- }
575
- ]
576
- },
577
- "ExpiresIn": {
578
- "oneOf": [
579
- {
580
- "type": "integer",
581
- "format": "int32",
582
- "description": "Expiration time in seconds",
583
- "example": 3600,
584
- "minimum": 30,
585
- "maximum": 604800
586
- },
587
- {
588
- "type": "string",
589
- "description": "Expiration time as a string with time units (e.g., '10h', '7d', '2 days')",
590
- "example": "1h",
591
- "pattern": "^[0-9]+ ?(ms|milliseconds?|s|seconds?|m|minutes?|h|hours?|d|days?|w|weeks?|y|years?)?$"
592
- }
593
- ]
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
- },
600
- "Anonymize": {
601
- "type": "boolean",
602
- "default": false,
603
- "description": "Forces PII anonymization on all entity data returned to this token. Cannot be disabled by the token bearer. See entity-api anonymized responses.",
604
- "example": true
605
- },
606
- "AccessTokenParameters": {
607
- "type": "object",
608
- "additionalProperties": false,
609
- "properties": {
610
- "name": {
611
- "$ref": "#/components/schemas/AccessTokenName"
612
- },
613
- "token_type": {
614
- "type": "string",
615
- "enum": [
616
- "api"
617
- ]
618
- },
619
- "assignments": {
620
- "$ref": "#/components/schemas/Assignments"
621
- },
622
- "expires_in": {
623
- "$ref": "#/components/schemas/ExpiresIn"
624
- },
625
- "read_only": {
626
- "$ref": "#/components/schemas/ReadOnly"
627
- },
628
- "anonymize": {
629
- "$ref": "#/components/schemas/Anonymize"
630
- }
631
- },
632
- "required": [
633
- "name"
634
- ]
635
- },
636
- "JourneyTokenParameters": {
637
- "type": "object",
638
- "additionalProperties": false,
639
- "properties": {
640
- "name": {
641
- "$ref": "#/components/schemas/AccessTokenName"
642
- },
643
- "token_type": {
644
- "type": "string",
645
- "enum": [
646
- "journey"
647
- ]
648
- },
649
- "journey_id": {
650
- "$ref": "#/components/schemas/AccessTokenJourneyId"
651
- },
652
- "expires_in": {
653
- "$ref": "#/components/schemas/ExpiresIn"
654
- }
655
- },
656
- "required": [
657
- "name",
658
- "journey_id"
659
- ]
660
- },
661
- "PortalTokenParameters": {
662
- "type": "object",
663
- "additionalProperties": false,
664
- "properties": {
665
- "name": {
666
- "$ref": "#/components/schemas/AccessTokenName"
667
- },
668
- "token_type": {
669
- "type": "string",
670
- "enum": [
671
- "portal"
672
- ]
673
- },
674
- "portal_id": {
675
- "$ref": "#/components/schemas/PortalId"
676
- },
677
- "expires_in": {
678
- "$ref": "#/components/schemas/ExpiresIn"
679
- }
680
- },
681
- "required": [
682
- "name",
683
- "portal_id"
684
- ]
685
- },
686
- "AssumeTokenParameters": {
687
- "type": "object",
688
- "additionalProperties": false,
689
- "properties": {
690
- "name": {
691
- "$ref": "#/components/schemas/AccessTokenName"
692
- },
693
- "token_type": {
694
- "type": "string",
695
- "enum": [
696
- "assume"
697
- ]
698
- },
699
- "assignments": {
700
- "$ref": "#/components/schemas/Assignments"
701
- },
702
- "read_only": {
703
- "$ref": "#/components/schemas/ReadOnly"
704
- },
705
- "anonymize": {
706
- "$ref": "#/components/schemas/Anonymize"
707
- }
708
- },
709
- "required": [
710
- "name"
711
- ]
712
- },
713
- "AppTokenParameters": {
714
- "type": "object",
715
- "additionalProperties": false,
716
- "properties": {
717
- "name": {
718
- "$ref": "#/components/schemas/AccessTokenName"
719
- },
720
- "token_type": {
721
- "type": "string",
722
- "enum": [
723
- "app"
724
- ]
725
- },
726
- "assignments": {
727
- "$ref": "#/components/schemas/Assignments"
728
- },
729
- "expires_in": {
730
- "$ref": "#/components/schemas/ExpiresIn"
731
- },
732
- "read_only": {
733
- "$ref": "#/components/schemas/ReadOnly"
734
- },
735
- "anonymize": {
736
- "$ref": "#/components/schemas/Anonymize"
737
- }
738
- },
739
- "required": [
740
- "name"
741
- ]
742
- },
743
- "PortalPreviewTokenParameters": {
744
- "type": "object",
745
- "additionalProperties": false,
746
- "properties": {
747
- "name": {
748
- "$ref": "#/components/schemas/AccessTokenName"
749
- },
750
- "token_type": {
751
- "type": "string",
752
- "enum": [
753
- "portal_preview"
754
- ]
755
- },
756
- "portal_id": {
757
- "$ref": "#/components/schemas/PortalId"
758
- },
759
- "portal_user_id": {
760
- "$ref": "#/components/schemas/PortalUserId"
761
- }
762
- },
763
- "required": [
764
- "name",
765
- "portal_id",
766
- "portal_user_id"
767
- ]
768
- },
769
- "AccessTokenItem": {
770
- "type": "object",
771
- "properties": {
772
- "id": {
773
- "$ref": "#/components/schemas/AccessTokenId"
774
- },
775
- "created_at": {
776
- "type": "string",
777
- "format": "date-time"
778
- },
779
- "name": {
780
- "$ref": "#/components/schemas/AccessTokenName"
781
- },
782
- "token_type": {
783
- "$ref": "#/components/schemas/AccessTokenType"
784
- },
785
- "journey_id": {
786
- "$ref": "#/components/schemas/AccessTokenJourneyId"
787
- },
788
- "portal_id": {
789
- "$ref": "#/components/schemas/PortalId"
790
- },
791
- "portal_user_id": {
792
- "$ref": "#/components/schemas/PortalUserId"
793
- },
794
- "assignments": {
795
- "$ref": "#/components/schemas/Assignments"
796
- },
797
- "read_only": {
798
- "$ref": "#/components/schemas/ReadOnly"
799
- },
800
- "anonymize": {
801
- "$ref": "#/components/schemas/Anonymize"
802
- },
803
- "last_used": {
804
- "type": "string",
805
- "format": "date",
806
- "description": "Last date the token was used (YYYY-MM-DD format, 1 day accuracy)",
807
- "example": "2026-02-24"
808
- }
809
- },
810
- "required": [
811
- "id",
812
- "created_at",
813
- "name"
814
- ]
815
- },
816
- "RoleId": {
817
- "type": "string",
818
- "example": "123:owner",
819
- "description": "Format: <organization_id>:<slug>"
820
- },
821
- "Assignments": {
822
- "type": "array",
823
- "description": "List of role ids attached to an user",
824
- "items": {
825
- "$ref": "#/components/schemas/RoleId"
826
- }
827
- }
828
- }
829
- },
830
- "servers": [
831
- {
832
- "url": "https://access-token.sls.epilot.io"
833
- }
834
- ]
835
- }