@epilot/sdk 2.19.3 → 2.19.5

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 (231) hide show
  1. package/definitions/access-token-runtime.json +1 -0
  2. package/definitions/access-token.json +835 -0
  3. package/definitions/address-runtime.json +1 -0
  4. package/definitions/address-suggestions-runtime.json +1 -0
  5. package/definitions/address-suggestions.json +582 -0
  6. package/definitions/address.json +578 -0
  7. package/definitions/ai-agents-runtime.json +1 -0
  8. package/definitions/ai-agents.json +2863 -0
  9. package/definitions/app-runtime.json +1 -0
  10. package/definitions/app.json +5743 -0
  11. package/definitions/audit-logs-runtime.json +1 -0
  12. package/definitions/audit-logs.json +305 -0
  13. package/definitions/automation-runtime.json +1 -0
  14. package/definitions/automation.json +5557 -0
  15. package/definitions/billing-runtime.json +1 -0
  16. package/definitions/billing.json +2386 -0
  17. package/definitions/blueprint-manifest-runtime.json +1 -0
  18. package/definitions/blueprint-manifest.json +7718 -0
  19. package/definitions/calendar-runtime.json +1 -0
  20. package/definitions/calendar.json +2904 -0
  21. package/definitions/configuration-hub-runtime.json +1 -0
  22. package/definitions/configuration-hub.json +2250 -0
  23. package/definitions/consent-runtime.json +1 -0
  24. package/definitions/consent.json +344 -0
  25. package/definitions/customer-portal-runtime.json +1 -0
  26. package/definitions/customer-portal.json +19945 -0
  27. package/definitions/dashboard-runtime.json +1 -0
  28. package/definitions/dashboard.json +1355 -0
  29. package/definitions/data-governance-runtime.json +1 -0
  30. package/definitions/data-governance.json +1126 -0
  31. package/definitions/deduplication-runtime.json +1 -0
  32. package/definitions/deduplication.json +782 -0
  33. package/definitions/design-runtime.json +1 -0
  34. package/definitions/design.json +1827 -0
  35. package/definitions/document-runtime.json +1 -0
  36. package/definitions/document.json +758 -0
  37. package/definitions/email-settings-runtime.json +1 -0
  38. package/definitions/email-settings.json +3736 -0
  39. package/definitions/email-template-runtime.json +1 -0
  40. package/definitions/email-template.json +1441 -0
  41. package/definitions/entity-mapping-runtime.json +1 -0
  42. package/definitions/entity-mapping.json +1642 -0
  43. package/definitions/entity-runtime.json +1 -0
  44. package/definitions/entity.json +11517 -0
  45. package/definitions/environments-runtime.json +1 -0
  46. package/definitions/environments.json +539 -0
  47. package/definitions/event-catalog-runtime.json +1 -0
  48. package/definitions/event-catalog.json +1524 -0
  49. package/definitions/file-runtime.json +1 -0
  50. package/definitions/file.json +3905 -0
  51. package/definitions/iban-runtime.json +1 -0
  52. package/definitions/iban.json +132 -0
  53. package/definitions/integration-toolkit-runtime.json +1 -0
  54. package/definitions/integration-toolkit.json +12769 -0
  55. package/definitions/journey-runtime.json +1 -0
  56. package/definitions/journey.json +2640 -0
  57. package/definitions/kanban-runtime.json +1 -0
  58. package/definitions/kanban.json +1506 -0
  59. package/definitions/message-runtime.json +1 -0
  60. package/definitions/message.json +3667 -0
  61. package/definitions/metering-runtime.json +1 -0
  62. package/definitions/metering.json +3132 -0
  63. package/definitions/notes-runtime.json +1 -0
  64. package/definitions/notes.json +1698 -0
  65. package/definitions/notification-runtime.json +1 -0
  66. package/definitions/notification.json +1439 -0
  67. package/definitions/organization-runtime.json +1 -0
  68. package/definitions/organization.json +1192 -0
  69. package/definitions/partner-directory-runtime.json +1 -0
  70. package/definitions/partner-directory.json +2284 -0
  71. package/definitions/permissions-runtime.json +1 -0
  72. package/definitions/permissions.json +1598 -0
  73. package/definitions/pricing-runtime.json +1 -0
  74. package/definitions/pricing-tier-runtime.json +1 -0
  75. package/definitions/pricing-tier.json +105 -0
  76. package/definitions/pricing.json +11569 -0
  77. package/definitions/purpose-runtime.json +1 -0
  78. package/definitions/purpose.json +524 -0
  79. package/definitions/query-runtime.json +1 -0
  80. package/definitions/query.json +3178 -0
  81. package/definitions/sandbox-runtime.json +1 -0
  82. package/definitions/sandbox.json +453 -0
  83. package/definitions/sharing-runtime.json +1 -0
  84. package/definitions/sharing.json +956 -0
  85. package/definitions/snapshot-runtime.json +1 -0
  86. package/definitions/snapshot.json +1103 -0
  87. package/definitions/submission-runtime.json +1 -0
  88. package/definitions/submission.json +313 -0
  89. package/definitions/targeting-runtime.json +1 -0
  90. package/definitions/targeting.json +2222 -0
  91. package/definitions/template-variables-runtime.json +1 -0
  92. package/definitions/template-variables.json +1416 -0
  93. package/definitions/user-runtime.json +1 -0
  94. package/definitions/user.json +3051 -0
  95. package/definitions/validation-rules-runtime.json +1 -0
  96. package/definitions/validation-rules.json +2365 -0
  97. package/definitions/webhooks-runtime.json +1 -0
  98. package/definitions/webhooks.json +1875 -0
  99. package/definitions/workflow-definition-runtime.json +1 -0
  100. package/definitions/workflow-definition.json +3592 -0
  101. package/definitions/workflow-runtime.json +1 -0
  102. package/definitions/workflow.json +4669 -0
  103. package/dist/apis/access-token.cjs +6 -6
  104. package/dist/apis/access-token.js +1 -1
  105. package/dist/apis/address-suggestions.cjs +6 -6
  106. package/dist/apis/address-suggestions.js +1 -1
  107. package/dist/apis/address.cjs +6 -6
  108. package/dist/apis/address.js +1 -1
  109. package/dist/apis/ai-agents.cjs +6 -6
  110. package/dist/apis/ai-agents.js +1 -1
  111. package/dist/apis/app.cjs +6 -6
  112. package/dist/apis/app.js +1 -1
  113. package/dist/apis/audit-logs.cjs +6 -6
  114. package/dist/apis/audit-logs.js +1 -1
  115. package/dist/apis/automation.cjs +6 -6
  116. package/dist/apis/automation.js +1 -1
  117. package/dist/apis/billing.cjs +6 -6
  118. package/dist/apis/billing.js +1 -1
  119. package/dist/apis/blueprint-manifest.cjs +6 -6
  120. package/dist/apis/blueprint-manifest.js +1 -1
  121. package/dist/apis/calendar.cjs +6 -6
  122. package/dist/apis/calendar.js +1 -1
  123. package/dist/apis/configuration-hub.cjs +6 -6
  124. package/dist/apis/configuration-hub.js +1 -1
  125. package/dist/apis/consent.cjs +6 -6
  126. package/dist/apis/consent.js +1 -1
  127. package/dist/apis/customer-portal.cjs +6 -6
  128. package/dist/apis/customer-portal.d.cts +2 -2
  129. package/dist/apis/customer-portal.d.ts +2 -2
  130. package/dist/apis/customer-portal.js +1 -1
  131. package/dist/apis/dashboard.cjs +6 -6
  132. package/dist/apis/dashboard.js +1 -1
  133. package/dist/apis/data-governance.cjs +6 -6
  134. package/dist/apis/data-governance.js +1 -1
  135. package/dist/apis/deduplication.cjs +6 -6
  136. package/dist/apis/deduplication.js +1 -1
  137. package/dist/apis/design.cjs +6 -6
  138. package/dist/apis/design.js +1 -1
  139. package/dist/apis/document.cjs +6 -6
  140. package/dist/apis/document.js +1 -1
  141. package/dist/apis/email-settings.cjs +6 -6
  142. package/dist/apis/email-settings.js +1 -1
  143. package/dist/apis/email-template.cjs +6 -6
  144. package/dist/apis/email-template.js +1 -1
  145. package/dist/apis/entity-mapping.cjs +6 -6
  146. package/dist/apis/entity-mapping.js +1 -1
  147. package/dist/apis/entity.cjs +6 -6
  148. package/dist/apis/entity.js +1 -1
  149. package/dist/apis/environments.cjs +6 -6
  150. package/dist/apis/environments.js +1 -1
  151. package/dist/apis/event-catalog.cjs +6 -6
  152. package/dist/apis/event-catalog.js +1 -1
  153. package/dist/apis/file.cjs +6 -6
  154. package/dist/apis/file.js +1 -1
  155. package/dist/apis/iban.cjs +6 -6
  156. package/dist/apis/iban.js +1 -1
  157. package/dist/apis/integration-toolkit.cjs +6 -6
  158. package/dist/apis/integration-toolkit.js +1 -1
  159. package/dist/apis/journey.cjs +6 -6
  160. package/dist/apis/journey.js +1 -1
  161. package/dist/apis/kanban.cjs +6 -6
  162. package/dist/apis/kanban.js +1 -1
  163. package/dist/apis/message.cjs +6 -6
  164. package/dist/apis/message.js +1 -1
  165. package/dist/apis/metering.cjs +6 -6
  166. package/dist/apis/metering.js +1 -1
  167. package/dist/apis/notes.cjs +6 -6
  168. package/dist/apis/notes.js +1 -1
  169. package/dist/apis/notification.cjs +6 -6
  170. package/dist/apis/notification.js +1 -1
  171. package/dist/apis/organization.cjs +6 -6
  172. package/dist/apis/organization.js +1 -1
  173. package/dist/apis/partner-directory.cjs +6 -6
  174. package/dist/apis/partner-directory.js +1 -1
  175. package/dist/apis/permissions.cjs +6 -6
  176. package/dist/apis/permissions.js +1 -1
  177. package/dist/apis/pricing-tier.cjs +6 -6
  178. package/dist/apis/pricing-tier.js +1 -1
  179. package/dist/apis/pricing.cjs +6 -6
  180. package/dist/apis/pricing.js +1 -1
  181. package/dist/apis/purpose.cjs +6 -6
  182. package/dist/apis/purpose.js +1 -1
  183. package/dist/apis/query.cjs +6 -6
  184. package/dist/apis/query.js +1 -1
  185. package/dist/apis/sandbox.cjs +6 -6
  186. package/dist/apis/sandbox.js +1 -1
  187. package/dist/apis/sharing.cjs +6 -6
  188. package/dist/apis/sharing.js +1 -1
  189. package/dist/apis/snapshot.cjs +6 -6
  190. package/dist/apis/snapshot.js +1 -1
  191. package/dist/apis/submission.cjs +6 -6
  192. package/dist/apis/submission.js +1 -1
  193. package/dist/apis/target.cjs +6 -6
  194. package/dist/apis/target.js +1 -1
  195. package/dist/apis/targeting.cjs +6 -6
  196. package/dist/apis/targeting.d.cts +2 -2
  197. package/dist/apis/targeting.d.ts +2 -2
  198. package/dist/apis/targeting.js +1 -1
  199. package/dist/apis/template-variables.cjs +6 -6
  200. package/dist/apis/template-variables.js +1 -1
  201. package/dist/apis/user.cjs +6 -6
  202. package/dist/apis/user.js +1 -1
  203. package/dist/apis/validation-rules.cjs +6 -6
  204. package/dist/apis/validation-rules.js +1 -1
  205. package/dist/apis/webhooks.cjs +6 -6
  206. package/dist/apis/webhooks.js +1 -1
  207. package/dist/apis/workflow-definition.cjs +6 -6
  208. package/dist/apis/workflow-definition.js +1 -1
  209. package/dist/apis/workflow.cjs +6 -6
  210. package/dist/apis/workflow.js +1 -1
  211. package/dist/{chunk-UC3IKFHD.js → chunk-HWPPR3IM.js} +2 -2
  212. package/dist/{chunk-QWWGJOYR.cjs → chunk-VB6VABGZ.cjs} +2 -2
  213. package/dist/customer-portal-CDFQM72A.js +7 -0
  214. package/dist/customer-portal-MS6WNXAO.cjs +7 -0
  215. package/dist/{customer-portal.d-DTnk0yQf.d.cts → customer-portal.d-DJHJY-vb.d.cts} +51 -8
  216. package/dist/{customer-portal.d-DTnk0yQf.d.ts → customer-portal.d-DJHJY-vb.d.ts} +51 -8
  217. package/dist/index.cjs +8 -8
  218. package/dist/index.d.cts +2 -2
  219. package/dist/index.d.ts +2 -2
  220. package/dist/index.js +1 -1
  221. package/dist/targeting-5U4XGOXY.cjs +7 -0
  222. package/dist/targeting-R3G32HI4.js +7 -0
  223. package/dist/{targeting.d-16SvPyj4.d.cts → targeting.d-KcawmWBB.d.cts} +8 -0
  224. package/dist/{targeting.d-16SvPyj4.d.ts → targeting.d-KcawmWBB.d.ts} +8 -0
  225. package/docs/customer-portal.md +13 -4
  226. package/docs/targeting.md +9 -1
  227. package/package.json +1 -1
  228. package/dist/customer-portal-FCUPDA7V.cjs +0 -7
  229. package/dist/customer-portal-GRWXQYKT.js +0 -7
  230. package/dist/targeting-BTVCLYFW.cjs +0 -7
  231. package/dist/targeting-NWYDE3E7.js +0 -7
@@ -0,0 +1,835 @@
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
+ }