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