@epilot/sdk 2.8.1 → 2.8.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 (160) hide show
  1. package/README.md +1 -0
  2. package/definitions/access-token-runtime.json +1 -1
  3. package/definitions/access-token.json +155 -1
  4. package/definitions/snapshot-runtime.json +1 -0
  5. package/definitions/snapshot.json +734 -0
  6. package/definitions/user-runtime.json +1 -1
  7. package/definitions/user.json +441 -0
  8. package/dist/{_index-DB2VV4PQ.cjs → _index-D5TTZP5F.cjs} +4 -1
  9. package/dist/{_index-5FB6F5YY.js → _index-UY46ZN47.js} +3 -0
  10. package/dist/access-token-GD6REL4U.js +7 -0
  11. package/dist/access-token-NQ5BLMOW.cjs +7 -0
  12. package/dist/{access-token-runtime-KCKGT4O7.js → access-token-runtime-2PSLN2U3.js} +1 -1
  13. package/dist/{access-token-runtime-NZWZJPWV.cjs → access-token-runtime-B6Z7JLUS.cjs} +2 -2
  14. package/dist/{access-token.d-CnmUTOlq.d.cts → access-token.d-CegaQmrK.d.cts} +165 -5
  15. package/dist/{access-token.d-CnmUTOlq.d.ts → access-token.d-CegaQmrK.d.ts} +165 -5
  16. package/dist/apis/access-token.cjs +8 -8
  17. package/dist/apis/access-token.d.cts +2 -2
  18. package/dist/apis/access-token.d.ts +2 -2
  19. package/dist/apis/access-token.js +2 -2
  20. package/dist/apis/address-suggestions.cjs +6 -6
  21. package/dist/apis/address-suggestions.js +1 -1
  22. package/dist/apis/address.cjs +6 -6
  23. package/dist/apis/address.js +1 -1
  24. package/dist/apis/ai-agents.cjs +6 -6
  25. package/dist/apis/ai-agents.js +1 -1
  26. package/dist/apis/app.cjs +6 -6
  27. package/dist/apis/app.js +1 -1
  28. package/dist/apis/audit-logs.cjs +6 -6
  29. package/dist/apis/audit-logs.js +1 -1
  30. package/dist/apis/automation.cjs +6 -6
  31. package/dist/apis/automation.js +1 -1
  32. package/dist/apis/billing.cjs +6 -6
  33. package/dist/apis/billing.js +1 -1
  34. package/dist/apis/blueprint-manifest.cjs +6 -6
  35. package/dist/apis/blueprint-manifest.js +1 -1
  36. package/dist/apis/calendar.cjs +6 -6
  37. package/dist/apis/calendar.js +1 -1
  38. package/dist/apis/configuration-hub.cjs +6 -6
  39. package/dist/apis/configuration-hub.js +1 -1
  40. package/dist/apis/consent.cjs +6 -6
  41. package/dist/apis/consent.js +1 -1
  42. package/dist/apis/customer-portal.cjs +6 -6
  43. package/dist/apis/customer-portal.js +1 -1
  44. package/dist/apis/dashboard.cjs +6 -6
  45. package/dist/apis/dashboard.js +1 -1
  46. package/dist/apis/data-governance.cjs +6 -6
  47. package/dist/apis/data-governance.js +1 -1
  48. package/dist/apis/deduplication.cjs +6 -6
  49. package/dist/apis/deduplication.js +1 -1
  50. package/dist/apis/design.cjs +6 -6
  51. package/dist/apis/design.js +1 -1
  52. package/dist/apis/document.cjs +6 -6
  53. package/dist/apis/document.js +1 -1
  54. package/dist/apis/email-settings.cjs +6 -6
  55. package/dist/apis/email-settings.js +1 -1
  56. package/dist/apis/email-template.cjs +6 -6
  57. package/dist/apis/email-template.js +1 -1
  58. package/dist/apis/entity-mapping.cjs +6 -6
  59. package/dist/apis/entity-mapping.js +1 -1
  60. package/dist/apis/entity.cjs +6 -6
  61. package/dist/apis/entity.js +1 -1
  62. package/dist/apis/environments.cjs +6 -6
  63. package/dist/apis/environments.js +1 -1
  64. package/dist/apis/event-catalog.cjs +6 -6
  65. package/dist/apis/event-catalog.js +1 -1
  66. package/dist/apis/file.cjs +6 -6
  67. package/dist/apis/file.js +1 -1
  68. package/dist/apis/iban.cjs +6 -6
  69. package/dist/apis/iban.js +1 -1
  70. package/dist/apis/integration-toolkit.cjs +6 -6
  71. package/dist/apis/integration-toolkit.js +1 -1
  72. package/dist/apis/journey.cjs +6 -6
  73. package/dist/apis/journey.js +1 -1
  74. package/dist/apis/kanban.cjs +6 -6
  75. package/dist/apis/kanban.js +1 -1
  76. package/dist/apis/message.cjs +6 -6
  77. package/dist/apis/message.js +1 -1
  78. package/dist/apis/metering.cjs +6 -6
  79. package/dist/apis/metering.js +1 -1
  80. package/dist/apis/notes.cjs +6 -6
  81. package/dist/apis/notes.js +1 -1
  82. package/dist/apis/notification.cjs +6 -6
  83. package/dist/apis/notification.js +1 -1
  84. package/dist/apis/organization.cjs +6 -6
  85. package/dist/apis/organization.js +1 -1
  86. package/dist/apis/partner-directory.cjs +6 -6
  87. package/dist/apis/partner-directory.js +1 -1
  88. package/dist/apis/permissions.cjs +6 -6
  89. package/dist/apis/permissions.js +1 -1
  90. package/dist/apis/pricing-tier.cjs +6 -6
  91. package/dist/apis/pricing-tier.js +1 -1
  92. package/dist/apis/pricing.cjs +6 -6
  93. package/dist/apis/pricing.js +1 -1
  94. package/dist/apis/purpose.cjs +6 -6
  95. package/dist/apis/purpose.js +1 -1
  96. package/dist/apis/query.cjs +6 -6
  97. package/dist/apis/query.js +1 -1
  98. package/dist/apis/sandbox.cjs +6 -6
  99. package/dist/apis/sandbox.js +1 -1
  100. package/dist/apis/sharing.cjs +6 -6
  101. package/dist/apis/sharing.js +1 -1
  102. package/dist/apis/snapshot.cjs +38 -0
  103. package/dist/apis/snapshot.d.cts +18 -0
  104. package/dist/apis/snapshot.d.ts +18 -0
  105. package/dist/apis/snapshot.js +38 -0
  106. package/dist/apis/submission.cjs +6 -6
  107. package/dist/apis/submission.js +1 -1
  108. package/dist/apis/target.cjs +6 -6
  109. package/dist/apis/target.js +1 -1
  110. package/dist/apis/targeting.cjs +6 -6
  111. package/dist/apis/targeting.js +1 -1
  112. package/dist/apis/template-variables.cjs +6 -6
  113. package/dist/apis/template-variables.js +1 -1
  114. package/dist/apis/user.cjs +8 -8
  115. package/dist/apis/user.d.cts +2 -2
  116. package/dist/apis/user.d.ts +2 -2
  117. package/dist/apis/user.js +2 -2
  118. package/dist/apis/validation-rules.cjs +6 -6
  119. package/dist/apis/validation-rules.js +1 -1
  120. package/dist/apis/webhooks.cjs +6 -6
  121. package/dist/apis/webhooks.js +1 -1
  122. package/dist/apis/workflow-definition.cjs +6 -6
  123. package/dist/apis/workflow-definition.js +1 -1
  124. package/dist/apis/workflow.cjs +6 -6
  125. package/dist/apis/workflow.js +1 -1
  126. package/dist/{chunk-ALMZO57K.js → chunk-76M3RIDP.js} +7 -5
  127. package/dist/chunk-BJGLY4Z2.js +14 -0
  128. package/dist/{chunk-WPBRWQPL.cjs → chunk-FBQ4WDTG.cjs} +7 -5
  129. package/dist/chunk-K2QVMO5M.cjs +14 -0
  130. package/dist/chunk-NFIYEMMM.js +14 -0
  131. package/dist/{chunk-XSE4CFSM.js → chunk-OHHHS4HH.js} +1 -1
  132. package/dist/chunk-OWXEZ56F.cjs +14 -0
  133. package/dist/{chunk-OXJOO2YF.cjs → chunk-S5HBBTKM.cjs} +1 -1
  134. package/dist/index.cjs +22 -14
  135. package/dist/index.d.cts +19 -17
  136. package/dist/index.d.ts +19 -17
  137. package/dist/index.js +13 -5
  138. package/dist/snapshot-427N6KCO.js +7 -0
  139. package/dist/snapshot-NEMUND3M.cjs +7 -0
  140. package/dist/snapshot-runtime-ALPJLXVW.js +5 -0
  141. package/dist/snapshot-runtime-NWQYU5UK.cjs +5 -0
  142. package/dist/snapshot.d-DvoJ2n-v.d.cts +591 -0
  143. package/dist/snapshot.d-DvoJ2n-v.d.ts +591 -0
  144. package/dist/user-3SLAEEVD.cjs +7 -0
  145. package/dist/user-PRUYBXQV.js +7 -0
  146. package/dist/{user-runtime-U4HYUWJU.js → user-runtime-6ICV2Y73.js} +1 -1
  147. package/dist/user-runtime-Y3227ETX.cjs +5 -0
  148. package/dist/{user.d-D18fe97W.d.cts → user.d-L-C7_K84.d.cts} +421 -1
  149. package/dist/{user.d-D18fe97W.d.ts → user.d-L-C7_K84.d.ts} +421 -1
  150. package/docs/access-token.md +111 -3
  151. package/docs/snapshot.md +501 -0
  152. package/docs/user.md +321 -8
  153. package/package.json +10 -1
  154. package/dist/access-token-6BJDZSFE.cjs +0 -7
  155. package/dist/access-token-GSQZLDXR.js +0 -7
  156. package/dist/chunk-3XKBB5AE.js +0 -14
  157. package/dist/chunk-Z5TVWG3I.cjs +0 -14
  158. package/dist/user-7ZN2XO7G.cjs +0 -7
  159. package/dist/user-ZK7BK6VY.js +0 -7
  160. package/dist/user-runtime-7O2HLFVQ.cjs +0 -5
@@ -1 +1 @@
1
- {"s":"https://user.sls.epilot.io","o":[["signUpUser","post","/v2/users/public/signup",[["token","q"]],1],["getMeV2","get","/v2/users/me"],["listUsersV2","get","/v2/users",[["query","q"],["limit","q"],["offset","q"]]],["getUserV2","get","/v2/users/{id}",[["id","p",true]]],["updateUserV2","patch","/v2/users/{id}",[["id","p",true]],1],["deleteUserV2","delete","/v2/users/{id}",[["id","p",true]]],["inviteUser","post","/v2/users/invite",null,1],["resendUserInvitation","post","/v2/users/invite:resendEmail",null,1],["getGroupsForUser","get","/v2/users/{id}/groups",[["id","p",true]]],["getGroups","get","/v1/groups",[["query","q"],["limit","q"],["offset","q"],["hydrate","q"]]],["createGroup","post","/v1/groups",null,1],["getGroup","get","/v1/groups/{id}",[["id","p",true],["hydrate","q"]]],["updateGroup","patch","/v1/groups/{id}",[["id","p",true]],1],["deleteGroup","delete","/v1/groups/{id}",[["id","p",true]]],["advanceUserAssignment","post","/v1/groups/{id}/user:next",[["id","p",true]]],["createNavigation","post","/v2/user/navigations",null,1],["getNavigation","get","/v2/user/navigations/{id}",[["id","p",true]]],["verifyEmailWithToken","post","/v2/users/public/verifyEmail",[["token","q",true]],1],["checkInviteToken","get","/v2/users/public/checkToken",[["token","q",true]]],["activateUser","post","/v2/users/public/activate",[["token","q",true]],1],["rejectInvite","delete","/v2/users/public/reject",[["token","q",true]]],["getUserLoginParametersV2","get","/v2/users/public/username/{username}:getLoginParameters",[["username","p",true]]],["beginPasskeyAuthentication","post","/v2/users/public/passkeys:authenticateBegin",null,1],["beginDiscoverablePasskeyAuthentication","post","/v2/users/public/passkeys:authenticateBeginDiscoverable"],["resolveDiscoverableCredential","post","/v2/users/public/passkeys:resolveCredential",null,1],["beginPasskeyRegistration","post","/v2/users/me/passkeys:registerBegin",null,1],["completePasskeyRegistration","post","/v2/users/me/passkeys:registerComplete",null,1],["listPasskeys","get","/v2/users/me/passkeys"],["deletePasskey","delete","/v2/users/me/passkeys/{credentialId}",[["credentialId","p",true]]],["switchOrganization","post","/v2/users/switchOrganization",null,1],["getMe","get","/v1/users/me"],["listUsers","get","/v1/users",[["org_ids","q",false,"form",false],["query","q"],["limit","q"],["offset","q"]]],["getUser","get","/v1/users/{id}",[["id","p",true]]],["getUserLoginParameters","get","/v1/users/username/{username}:getLoginParameters",[["username","p",true]]]]}
1
+ {"s":"https://user.sls.epilot.io","o":[["signUpUser","post","/v2/users/public/signup",[["token","q"]],1],["getMeV2","get","/v2/users/me"],["listUserSettings","get","/v2/users/me/settings"],["getUserSettingsScope","get","/v2/users/me/settings/{scope}",[["scope","p",true]]],["getUserSetting","get","/v2/users/me/settings/{scope}/{key}",[["scope","p",true],["key","p",true]]],["putUserSetting","put","/v2/users/me/settings/{scope}/{key}",[["scope","p",true],["key","p",true]],1],["deleteUserSetting","delete","/v2/users/me/settings/{scope}/{key}",[["scope","p",true],["key","p",true]]],["listUsersV2","get","/v2/users",[["query","q"],["limit","q"],["offset","q"]]],["getUserV2","get","/v2/users/{id}",[["id","p",true]]],["updateUserV2","patch","/v2/users/{id}",[["id","p",true]],1],["deleteUserV2","delete","/v2/users/{id}",[["id","p",true]]],["inviteUser","post","/v2/users/invite",null,1],["resendUserInvitation","post","/v2/users/invite:resendEmail",null,1],["sendUserPasswordReset","post","/v2/users:sendPasswordReset",null,1],["getGroupsForUser","get","/v2/users/{id}/groups",[["id","p",true]]],["getGroups","get","/v1/groups",[["query","q"],["limit","q"],["offset","q"],["hydrate","q"]]],["createGroup","post","/v1/groups",null,1],["getGroup","get","/v1/groups/{id}",[["id","p",true],["hydrate","q"]]],["updateGroup","patch","/v1/groups/{id}",[["id","p",true]],1],["deleteGroup","delete","/v1/groups/{id}",[["id","p",true]]],["advanceUserAssignment","post","/v1/groups/{id}/user:next",[["id","p",true]]],["createNavigation","post","/v2/user/navigations",null,1],["getNavigation","get","/v2/user/navigations/{id}",[["id","p",true]]],["verifyEmailWithToken","post","/v2/users/public/verifyEmail",[["token","q",true]],1],["requestPasswordReset","post","/v2/users/public/requestPasswordReset",null,1],["checkInviteToken","get","/v2/users/public/checkToken",[["token","q",true]]],["activateUser","post","/v2/users/public/activate",[["token","q",true]],1],["rejectInvite","delete","/v2/users/public/reject",[["token","q",true]]],["getUserLoginParametersV2","get","/v2/users/public/username/{username}:getLoginParameters",[["username","p",true]]],["beginPasskeyAuthentication","post","/v2/users/public/passkeys:authenticateBegin",null,1],["beginDiscoverablePasskeyAuthentication","post","/v2/users/public/passkeys:authenticateBeginDiscoverable"],["resolveDiscoverableCredential","post","/v2/users/public/passkeys:resolveCredential",null,1],["beginPasskeyRegistration","post","/v2/users/me/passkeys:registerBegin",null,1],["completePasskeyRegistration","post","/v2/users/me/passkeys:registerComplete",null,1],["listPasskeys","get","/v2/users/me/passkeys"],["deletePasskey","delete","/v2/users/me/passkeys/{credentialId}",[["credentialId","p",true]]],["switchOrganization","post","/v2/users/switchOrganization",null,1],["getMe","get","/v1/users/me"],["listUsers","get","/v1/users",[["org_ids","q",false,"form",false],["query","q"],["limit","q"],["offset","q"]]],["getUser","get","/v1/users/{id}",[["id","p",true]]],["getUserLoginParameters","get","/v1/users/username/{username}:getLoginParameters",[["username","p",true]]]]}
@@ -101,6 +101,189 @@
101
101
  }
102
102
  }
103
103
  },
104
+ "/v2/users/me/settings": {
105
+ "get": {
106
+ "operationId": "listUserSettings",
107
+ "summary": "listUserSettings",
108
+ "description": "List all setting scopes and keys available for the currently logged in user. Does not return setting values.",
109
+ "tags": [
110
+ "User V2"
111
+ ],
112
+ "responses": {
113
+ "200": {
114
+ "description": "List of user setting scopes and keys",
115
+ "content": {
116
+ "application/json": {
117
+ "schema": {
118
+ "$ref": "#/components/schemas/UserSettingsListResponse"
119
+ }
120
+ }
121
+ }
122
+ }
123
+ }
124
+ }
125
+ },
126
+ "/v2/users/me/settings/{scope}": {
127
+ "get": {
128
+ "operationId": "getUserSettingsScope",
129
+ "summary": "getUserSettingsScope",
130
+ "description": "Get all setting values for one scope for the currently logged in user.",
131
+ "tags": [
132
+ "User V2"
133
+ ],
134
+ "parameters": [
135
+ {
136
+ "name": "scope",
137
+ "in": "path",
138
+ "required": true,
139
+ "schema": {
140
+ "$ref": "#/components/schemas/UserSettingScope"
141
+ },
142
+ "description": "User setting scope, for example calendar, navigation, or search"
143
+ }
144
+ ],
145
+ "responses": {
146
+ "200": {
147
+ "description": "User settings for the requested scope",
148
+ "content": {
149
+ "application/json": {
150
+ "schema": {
151
+ "$ref": "#/components/schemas/UserSettingsScopeResponse"
152
+ }
153
+ }
154
+ }
155
+ }
156
+ }
157
+ }
158
+ },
159
+ "/v2/users/me/settings/{scope}/{key}": {
160
+ "get": {
161
+ "operationId": "getUserSetting",
162
+ "summary": "getUserSetting",
163
+ "description": "Get one setting value by scope and key for the currently logged in user.",
164
+ "tags": [
165
+ "User V2"
166
+ ],
167
+ "parameters": [
168
+ {
169
+ "name": "scope",
170
+ "in": "path",
171
+ "required": true,
172
+ "schema": {
173
+ "$ref": "#/components/schemas/UserSettingScope"
174
+ },
175
+ "description": "User setting scope"
176
+ },
177
+ {
178
+ "name": "key",
179
+ "in": "path",
180
+ "required": true,
181
+ "schema": {
182
+ "$ref": "#/components/schemas/UserSettingKey"
183
+ },
184
+ "description": "User setting key"
185
+ }
186
+ ],
187
+ "responses": {
188
+ "200": {
189
+ "description": "User setting",
190
+ "content": {
191
+ "application/json": {
192
+ "schema": {
193
+ "$ref": "#/components/schemas/UserSetting"
194
+ }
195
+ }
196
+ }
197
+ },
198
+ "404": {
199
+ "description": "User setting not found"
200
+ }
201
+ }
202
+ },
203
+ "put": {
204
+ "operationId": "putUserSetting",
205
+ "summary": "putUserSetting",
206
+ "description": "Create or replace one setting value for the currently logged in user.",
207
+ "tags": [
208
+ "User V2"
209
+ ],
210
+ "parameters": [
211
+ {
212
+ "name": "scope",
213
+ "in": "path",
214
+ "required": true,
215
+ "schema": {
216
+ "$ref": "#/components/schemas/UserSettingScope"
217
+ },
218
+ "description": "User setting scope"
219
+ },
220
+ {
221
+ "name": "key",
222
+ "in": "path",
223
+ "required": true,
224
+ "schema": {
225
+ "$ref": "#/components/schemas/UserSettingKey"
226
+ },
227
+ "description": "User setting key"
228
+ }
229
+ ],
230
+ "requestBody": {
231
+ "required": true,
232
+ "content": {
233
+ "application/json": {
234
+ "schema": {
235
+ "$ref": "#/components/schemas/UserSettingValue"
236
+ }
237
+ }
238
+ }
239
+ },
240
+ "responses": {
241
+ "200": {
242
+ "description": "User setting saved successfully",
243
+ "content": {
244
+ "application/json": {
245
+ "schema": {
246
+ "$ref": "#/components/schemas/UserSetting"
247
+ }
248
+ }
249
+ }
250
+ }
251
+ }
252
+ },
253
+ "delete": {
254
+ "operationId": "deleteUserSetting",
255
+ "summary": "deleteUserSetting",
256
+ "description": "Delete one setting value for the currently logged in user.",
257
+ "tags": [
258
+ "User V2"
259
+ ],
260
+ "parameters": [
261
+ {
262
+ "name": "scope",
263
+ "in": "path",
264
+ "required": true,
265
+ "schema": {
266
+ "$ref": "#/components/schemas/UserSettingScope"
267
+ },
268
+ "description": "User setting scope"
269
+ },
270
+ {
271
+ "name": "key",
272
+ "in": "path",
273
+ "required": true,
274
+ "schema": {
275
+ "$ref": "#/components/schemas/UserSettingKey"
276
+ },
277
+ "description": "User setting key"
278
+ }
279
+ ],
280
+ "responses": {
281
+ "204": {
282
+ "description": "User setting deleted successfully"
283
+ }
284
+ }
285
+ }
286
+ },
104
287
  "/v2/users": {
105
288
  "get": {
106
289
  "operationId": "listUsersV2",
@@ -348,6 +531,63 @@
348
531
  }
349
532
  }
350
533
  },
534
+ "/v2/users:sendPasswordReset": {
535
+ "post": {
536
+ "operationId": "sendUserPasswordReset",
537
+ "summary": "sendUserPasswordReset",
538
+ "description": "Send a password reset email to a user in your organization.\nRequires `user:edit` on the target user.\n",
539
+ "tags": [
540
+ "User V2"
541
+ ],
542
+ "requestBody": {
543
+ "required": true,
544
+ "content": {
545
+ "application/json": {
546
+ "schema": {
547
+ "type": "object",
548
+ "required": [
549
+ "email"
550
+ ],
551
+ "properties": {
552
+ "email": {
553
+ "type": "string",
554
+ "description": "Email address of the user to reset",
555
+ "example": "test@example.com"
556
+ }
557
+ }
558
+ }
559
+ }
560
+ }
561
+ },
562
+ "responses": {
563
+ "200": {
564
+ "description": "Password reset triggered",
565
+ "content": {
566
+ "application/json": {
567
+ "schema": {
568
+ "type": "object",
569
+ "required": [
570
+ "success"
571
+ ],
572
+ "properties": {
573
+ "success": {
574
+ "type": "boolean",
575
+ "example": true
576
+ }
577
+ }
578
+ }
579
+ }
580
+ }
581
+ },
582
+ "400": {
583
+ "description": "Invalid email or user not found"
584
+ },
585
+ "403": {
586
+ "description": "Not permitted to reset this user's password"
587
+ }
588
+ }
589
+ }
590
+ },
351
591
  "/v2/users/{id}/groups": {
352
592
  "get": {
353
593
  "operationId": "getGroupsForUser",
@@ -709,6 +949,9 @@
709
949
  "summary": "verifyEmailWithToken",
710
950
  "description": "Update new email using an verification token",
711
951
  "security": [],
952
+ "x-rate-limit": {
953
+ "limit": 10
954
+ },
712
955
  "tags": [
713
956
  "User V2"
714
957
  ],
@@ -736,8 +979,69 @@
736
979
  "200": {
737
980
  "description": "Verified successfully"
738
981
  },
982
+ "400": {
983
+ "description": "No pending email change for this token"
984
+ },
739
985
  "404": {
740
986
  "description": "Token not found"
987
+ },
988
+ "409": {
989
+ "description": "Email address already in use"
990
+ }
991
+ }
992
+ }
993
+ },
994
+ "/v2/users/public/requestPasswordReset": {
995
+ "post": {
996
+ "operationId": "requestPasswordReset",
997
+ "summary": "requestPasswordReset",
998
+ "description": "Request a password reset email for the given email address. Always\nreturns a success response whether or not an account exists with that\nemail.\n",
999
+ "security": [],
1000
+ "x-rate-limit": {
1001
+ "limit": 10
1002
+ },
1003
+ "tags": [
1004
+ "User V2"
1005
+ ],
1006
+ "requestBody": {
1007
+ "required": true,
1008
+ "content": {
1009
+ "application/json": {
1010
+ "schema": {
1011
+ "type": "object",
1012
+ "required": [
1013
+ "email"
1014
+ ],
1015
+ "properties": {
1016
+ "email": {
1017
+ "type": "string",
1018
+ "description": "Email address of the account to reset",
1019
+ "example": "test@example.com"
1020
+ }
1021
+ }
1022
+ }
1023
+ }
1024
+ }
1025
+ },
1026
+ "responses": {
1027
+ "200": {
1028
+ "description": "Request accepted",
1029
+ "content": {
1030
+ "application/json": {
1031
+ "schema": {
1032
+ "type": "object",
1033
+ "required": [
1034
+ "message"
1035
+ ],
1036
+ "properties": {
1037
+ "message": {
1038
+ "type": "string",
1039
+ "example": "If an account exists, a password reset email has been sent."
1040
+ }
1041
+ }
1042
+ }
1043
+ }
1044
+ }
741
1045
  }
742
1046
  }
743
1047
  }
@@ -1687,6 +1991,13 @@
1687
1991
  "nullable": true,
1688
1992
  "format": "email"
1689
1993
  },
1994
+ "draft_email_expires_at": {
1995
+ "description": "Server-set expiry for the pending email change verification link (ISO 8601). Read-only.",
1996
+ "type": "string",
1997
+ "nullable": true,
1998
+ "format": "date-time",
1999
+ "readOnly": true
2000
+ },
1690
2001
  "department": {
1691
2002
  "type": "string",
1692
2003
  "description": "User's department",
@@ -1710,6 +2021,11 @@
1710
2021
  "type": "boolean",
1711
2022
  "example": false
1712
2023
  },
2024
+ "has_passkeys": {
2025
+ "description": "Whether the user has any registered passkeys",
2026
+ "type": "boolean",
2027
+ "example": false
2028
+ },
1713
2029
  "phone_verified": {
1714
2030
  "description": "User's phone number verification status",
1715
2031
  "type": "boolean",
@@ -2048,6 +2364,13 @@
2048
2364
  },
2049
2365
  "image_uri": {
2050
2366
  "$ref": "#/components/schemas/GroupImageUri"
2367
+ },
2368
+ "abbreviation": {
2369
+ "description": "A short abbreviation for the group, up to 2 characters.",
2370
+ "type": "string",
2371
+ "maxLength": 2,
2372
+ "nullable": true,
2373
+ "example": "FN"
2051
2374
  }
2052
2375
  },
2053
2376
  "required": [
@@ -2075,6 +2398,13 @@
2075
2398
  },
2076
2399
  "image_uri": {
2077
2400
  "$ref": "#/components/schemas/GroupImageUri"
2401
+ },
2402
+ "abbreviation": {
2403
+ "description": "A short abbreviation for the group, up to 2 characters.",
2404
+ "type": "string",
2405
+ "maxLength": 2,
2406
+ "nullable": true,
2407
+ "example": "FN"
2078
2408
  }
2079
2409
  }
2080
2410
  },
@@ -2132,6 +2462,13 @@
2132
2462
  },
2133
2463
  "image_uri": {
2134
2464
  "$ref": "#/components/schemas/GroupImageUri"
2465
+ },
2466
+ "abbreviation": {
2467
+ "description": "A short abbreviation for the group, up to 2 characters.",
2468
+ "type": "string",
2469
+ "maxLength": 2,
2470
+ "nullable": true,
2471
+ "example": "FN"
2135
2472
  }
2136
2473
  },
2137
2474
  "required": [
@@ -2377,6 +2714,110 @@
2377
2714
  }
2378
2715
  }
2379
2716
  },
2717
+ "UserSettingScope": {
2718
+ "type": "string",
2719
+ "description": "User setting scope. Values are limited to 64 characters.",
2720
+ "minLength": 1,
2721
+ "maxLength": 64,
2722
+ "example": "calendar"
2723
+ },
2724
+ "UserSettingKey": {
2725
+ "type": "string",
2726
+ "description": "User setting key. Values are limited to 128 characters.",
2727
+ "minLength": 1,
2728
+ "maxLength": 128,
2729
+ "example": "visible_calendars"
2730
+ },
2731
+ "UserSettingValue": {
2732
+ "description": "The JSON value of a user setting. Objects are recommended for extensibility, but any JSON value is accepted up to 64 KiB when serialized as JSON.",
2733
+ "x-maxSerializedBytes": 65536
2734
+ },
2735
+ "UserSetting": {
2736
+ "type": "object",
2737
+ "properties": {
2738
+ "scope": {
2739
+ "$ref": "#/components/schemas/UserSettingScope"
2740
+ },
2741
+ "key": {
2742
+ "$ref": "#/components/schemas/UserSettingKey"
2743
+ },
2744
+ "value": {
2745
+ "$ref": "#/components/schemas/UserSettingValue"
2746
+ },
2747
+ "created_at": {
2748
+ "type": "string",
2749
+ "format": "date-time"
2750
+ },
2751
+ "updated_at": {
2752
+ "type": "string",
2753
+ "format": "date-time"
2754
+ }
2755
+ },
2756
+ "required": [
2757
+ "scope",
2758
+ "key",
2759
+ "value",
2760
+ "created_at",
2761
+ "updated_at"
2762
+ ]
2763
+ },
2764
+ "UserSettingsListResponse": {
2765
+ "type": "object",
2766
+ "properties": {
2767
+ "results": {
2768
+ "type": "array",
2769
+ "items": {
2770
+ "type": "object",
2771
+ "properties": {
2772
+ "scope": {
2773
+ "$ref": "#/components/schemas/UserSettingScope"
2774
+ },
2775
+ "keys": {
2776
+ "type": "array",
2777
+ "items": {
2778
+ "$ref": "#/components/schemas/UserSettingKey"
2779
+ },
2780
+ "example": [
2781
+ "visible_calendars"
2782
+ ]
2783
+ }
2784
+ },
2785
+ "required": [
2786
+ "scope",
2787
+ "keys"
2788
+ ]
2789
+ }
2790
+ }
2791
+ },
2792
+ "required": [
2793
+ "results"
2794
+ ]
2795
+ },
2796
+ "UserSettingsScopeResponse": {
2797
+ "type": "object",
2798
+ "properties": {
2799
+ "scope": {
2800
+ "$ref": "#/components/schemas/UserSettingScope"
2801
+ },
2802
+ "settings": {
2803
+ "type": "object",
2804
+ "additionalProperties": {
2805
+ "$ref": "#/components/schemas/UserSettingValue"
2806
+ },
2807
+ "example": {
2808
+ "visible_calendars": {
2809
+ "calendar_ids": [
2810
+ "holidays"
2811
+ ]
2812
+ }
2813
+ }
2814
+ }
2815
+ },
2816
+ "required": [
2817
+ "scope",
2818
+ "settings"
2819
+ ]
2820
+ },
2380
2821
  "Passkey": {
2381
2822
  "type": "object",
2382
2823
  "properties": {
@@ -43,6 +43,7 @@ var purpose = "purpose";
43
43
  var query = "query";
44
44
  var sandbox = "sandbox";
45
45
  var sharing = "sharing";
46
+ var snapshot = "snapshot";
46
47
  var submission = "submission";
47
48
  var targeting = "targeting";
48
49
  var templateVariables = "template-variables";
@@ -94,6 +95,7 @@ var index_default = {
94
95
  query,
95
96
  sandbox,
96
97
  sharing,
98
+ snapshot,
97
99
  submission,
98
100
  targeting,
99
101
  templateVariables,
@@ -155,4 +157,5 @@ var index_default = {
155
157
 
156
158
 
157
159
 
158
- exports.accessToken = accessToken; exports.address = address; exports.addressSuggestions = addressSuggestions; exports.aiAgents = aiAgents; exports.app = app; exports.auditLogs = auditLogs; exports.automation = automation; exports.billing = billing; exports.blueprintManifest = blueprintManifest; exports.calendar = calendar; exports.configurationHub = configurationHub; exports.consent = consent; exports.customerPortal = customerPortal; exports.dashboard = dashboard; exports.dataGovernance = dataGovernance; exports.deduplication = deduplication; exports.default = index_default; exports.design = design; exports.document = document; exports.emailSettings = emailSettings; exports.emailTemplate = emailTemplate; exports.entity = entity; exports.entityMapping = entityMapping; exports.environments = environments; exports.eventCatalog = eventCatalog; exports.file = file; exports.iban = iban; exports.integrationToolkit = integrationToolkit; exports.journey = journey; exports.kanban = kanban; exports.message = message; exports.metering = metering; exports.notes = notes; exports.notification = notification; exports.organization = organization; exports.partnerDirectory = partnerDirectory; exports.permissions = permissions; exports.pricing = pricing; exports.pricingTier = pricingTier; exports.purpose = purpose; exports.query = query; exports.sandbox = sandbox; exports.sharing = sharing; exports.submission = submission; exports.targeting = targeting; exports.templateVariables = templateVariables; exports.user = user; exports.validationRules = validationRules; exports.webhooks = webhooks; exports.workflow = workflow; exports.workflowDefinition = workflowDefinition;
160
+
161
+ exports.accessToken = accessToken; exports.address = address; exports.addressSuggestions = addressSuggestions; exports.aiAgents = aiAgents; exports.app = app; exports.auditLogs = auditLogs; exports.automation = automation; exports.billing = billing; exports.blueprintManifest = blueprintManifest; exports.calendar = calendar; exports.configurationHub = configurationHub; exports.consent = consent; exports.customerPortal = customerPortal; exports.dashboard = dashboard; exports.dataGovernance = dataGovernance; exports.deduplication = deduplication; exports.default = index_default; exports.design = design; exports.document = document; exports.emailSettings = emailSettings; exports.emailTemplate = emailTemplate; exports.entity = entity; exports.entityMapping = entityMapping; exports.environments = environments; exports.eventCatalog = eventCatalog; exports.file = file; exports.iban = iban; exports.integrationToolkit = integrationToolkit; exports.journey = journey; exports.kanban = kanban; exports.message = message; exports.metering = metering; exports.notes = notes; exports.notification = notification; exports.organization = organization; exports.partnerDirectory = partnerDirectory; exports.permissions = permissions; exports.pricing = pricing; exports.pricingTier = pricingTier; exports.purpose = purpose; exports.query = query; exports.sandbox = sandbox; exports.sharing = sharing; exports.snapshot = snapshot; exports.submission = submission; exports.targeting = targeting; exports.templateVariables = templateVariables; exports.user = user; exports.validationRules = validationRules; exports.webhooks = webhooks; exports.workflow = workflow; exports.workflowDefinition = workflowDefinition;
@@ -43,6 +43,7 @@ var purpose = "purpose";
43
43
  var query = "query";
44
44
  var sandbox = "sandbox";
45
45
  var sharing = "sharing";
46
+ var snapshot = "snapshot";
46
47
  var submission = "submission";
47
48
  var targeting = "targeting";
48
49
  var templateVariables = "template-variables";
@@ -94,6 +95,7 @@ var index_default = {
94
95
  query,
95
96
  sandbox,
96
97
  sharing,
98
+ snapshot,
97
99
  submission,
98
100
  targeting,
99
101
  templateVariables,
@@ -147,6 +149,7 @@ export {
147
149
  query,
148
150
  sandbox,
149
151
  sharing,
152
+ snapshot,
150
153
  submission,
151
154
  targeting,
152
155
  templateVariables,
@@ -0,0 +1,7 @@
1
+ import "./chunk-YPSWSI3M.js";
2
+
3
+ // src/docs/access-token.json
4
+ var access_token_default = '# Access Token API\n\n- **Base URL:** `https://access-token.sls.epilot.io`\n- **Full API Docs:** [https://docs.epilot.io/api/access-token](https://docs.epilot.io/api/access-token)\n\n## Usage\n\n```ts\nimport { epilot } from \'@epilot/sdk\'\n\nepilot.authorize(() => \'<token>\')\nconst { data } = await epilot.accessToken.createAccessToken(...)\n```\n\n### Tree-shakeable import\n\n```ts\nimport { getClient, authorize } from \'@epilot/sdk/access-token\'\n\nconst accessTokenClient = getClient()\nauthorize(accessTokenClient, () => \'<token>\')\nconst { data } = await accessTokenClient.createAccessToken(...)\n```\n\n## Operations\n\n**Access Tokens**\n- [`createAccessToken`](#createaccesstoken)\n- [`listAccessTokens`](#listaccesstokens)\n- [`revokeAccessToken`](#revokeaccesstoken)\n\n**Public**\n- [`getAccessTokenJwks`](#getaccesstokenjwks)\n- [`getAccessTokenOIDC`](#getaccesstokenoidc)\n- [`getPublicTokenJwks`](#getpublictokenjwks)\n- [`getPortalPreviewTokenJwks`](#getportalpreviewtokenjwks)\n- [`getPublicTokenOIDC`](#getpublictokenoidc)\n- [`getPortalPreviewTokenOIDC`](#getportalpreviewtokenoidc)\n\n**Schemas**\n- [`AccessToken`](#accesstoken)\n- [`AccessTokenId`](#accesstokenid)\n- [`AccessTokenName`](#accesstokenname)\n- [`AccessTokenType`](#accesstokentype)\n- [`AccessTokenJourneyId`](#accesstokenjourneyid)\n- [`PortalId`](#portalid)\n- [`PortalUserId`](#portaluserid)\n- [`TokenParameters`](#tokenparameters)\n- [`ExpiresIn`](#expiresin)\n- [`ReadOnly`](#readonly)\n- [`AccessTokenParameters`](#accesstokenparameters)\n- [`JourneyTokenParameters`](#journeytokenparameters)\n- [`PortalTokenParameters`](#portaltokenparameters)\n- [`AssumeTokenParameters`](#assumetokenparameters)\n- [`AppTokenParameters`](#apptokenparameters)\n- [`PortalPreviewTokenParameters`](#portalpreviewtokenparameters)\n- [`AccessTokenItem`](#accesstokenitem)\n- [`RoleId`](#roleid)\n- [`Assignments`](#assignments)\n\n### `createAccessToken`\n\n**Access Token type: `API`** (default if not specified):\n\n`POST /v1/access-tokens`\n\n```ts\nconst { data } = await client.createAccessToken(\n null,\n {\n name: \'Postman Access Token\',\n token_type: \'api\',\n assignments: [\'123:owner\'],\n expires_in: 3600,\n read_only: true\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6Ikp...",\n "id": "api_5ZugdRXasLfWBypHi93Fk",\n "created_at": "1970-01-01T00:00:00.000Z",\n "name": "Postman Access Token",\n "token_type": "api",\n "journey_id": "string",\n "portal_id": "string",\n "portal_user_id": "string",\n "assignments": ["123:owner"],\n "read_only": true,\n "last_used": "2026-02-24"\n}\n```\n\n</details>\n\n---\n\n### `listAccessTokens`\n\nLists all Access Tokens for current user (by default excludes system generated tokens)\n\n`GET /v1/access-tokens`\n\n```ts\nconst { data } = await client.listAccessTokens({\n token_type: [\'...\'],\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n[\n {\n "id": "api_5ZugdRXasLfWBypHi93Fk",\n "created_at": "1970-01-01T00:00:00.000Z",\n "name": "Postman Access Token",\n "token_type": "api",\n "journey_id": "string",\n "portal_id": "string",\n "portal_user_id": "string",\n "assignments": ["123:owner"],\n "read_only": true,\n "last_used": "2026-02-24"\n }\n]\n```\n\n</details>\n\n---\n\n### `revokeAccessToken`\n\nRevokes an Access Token so it can\'t be used anymore.\n\n`DELETE /v1/access-tokens/{id}`\n\n```ts\nconst { data } = await client.revokeAccessToken({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "api_5ZugdRXasLfWBypHi93Fk",\n "created_at": "1970-01-01T00:00:00.000Z",\n "name": "Postman Access Token",\n "token_type": "api",\n "journey_id": "string",\n "portal_id": "string",\n "portal_user_id": "string",\n "assignments": ["123:owner"],\n "read_only": true,\n "last_used": "2026-02-24"\n}\n```\n\n</details>\n\n---\n\n### `getAccessTokenJwks`\n\nGet jwks public key set to verify access tokens generated by this API\n\n`GET /v1/access-tokens/.well-known/jwks.json`\n\n```ts\nconst { data } = await client.getAccessTokenJwks()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "keys": [\n {\n "alg": "RS256",\n "e": "AQAB",\n "kid": "tXWU5mPMbRPczpbQwi6vbhLF4GgF3wlMDSyqo7pfeiw=",\n "kty": "RSA",\n "n": "h_QDoCjZ8W_trtYXaP7_S22wf5r5Wd9XBLED78oT44bJjQXn8ddcFV8Hik65_4IYXVX_hTTU4zpxe3H8vx2j7-Zz3O59mYMp5S0MzODNEdf5Y_2o19eis0brmAJniixsNlQ9LlYkdrVamrgaxHu3ZpP_99zkfFybYeuYoQNzb3PyrT8xVnz_USs_nlFMHpGUxvvz7gfKPqxcLvgLJr4cwI9yzaSY9CD4qW181QVcnL_WzpQ8xx6AuhhHZQ1l_3GG4InTk8ahE7U2ZHVu8RrX6d01pMgc3piEcet9RgFLnhbTg3YIiKGoAbN42wJn_x3lgIAC42T9mbmTsHyUdS6nUQ",\n "use": "sig"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `getAccessTokenOIDC`\n\nOpenID Connect configuration for Access Token API as identity provider\n\n`GET /v1/access-tokens/.well-known/openid-configuration`\n\n```ts\nconst { data } = await client.getAccessTokenOIDC()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "issuer": "https://access-token.sls.epilot.io/v1/access-tokens",\n "jwks_uri": "https://access-token.sls.epilot.io/v1/access-tokens/.well-known/jwks.json"\n}\n```\n\n</details>\n\n---\n\n### `getPublicTokenJwks`\n\nGet jwks public key set to verify public tokens generated by this API\n\n`GET /v1/access-tokens/public/.well-known/jwks.json`\n\n```ts\nconst { data } = await client.getPublicTokenJwks()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "keys": [\n {\n "alg": "RS256",\n "e": "AQAB",\n "kid": "tXWU5mPMbRPczpbQwi6vbhLF4GgF3wlMDSyqo7pfeiw=",\n "kty": "RSA",\n "n": "h_QDoCjZ8W_trtYXaP7_S22wf5r5Wd9XBLED78oT44bJjQXn8ddcFV8Hik65_4IYXVX_hTTU4zpxe3H8vx2j7-Zz3O59mYMp5S0MzODNEdf5Y_2o19eis0brmAJniixsNlQ9LlYkdrVamrgaxHu3ZpP_99zkfFybYeuYoQNzb3PyrT8xVnz_USs_nlFMHpGUxvvz7gfKPqxcLvgLJr4cwI9yzaSY9CD4qW181QVcnL_WzpQ8xx6AuhhHZQ1l_3GG4InTk8ahE7U2ZHVu8RrX6d01pMgc3piEcet9RgFLnhbTg3YIiKGoAbN42wJn_x3lgIAC42T9mbmTsHyUdS6nUQ",\n "use": "sig"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `getPortalPreviewTokenJwks`\n\nGet jwks public key set to verify portal preview tokens generated by this API\n\n`GET /v1/access-tokens/portal-preview/.well-known/jwks.json`\n\n```ts\nconst { data } = await client.getPortalPreviewTokenJwks()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "keys": [\n {\n "alg": "RS256",\n "e": "AQAB",\n "kid": "tXWU5mPMbRPczpbQwi6vbhLF4GgF3wlMDSyqo7pfeiw=",\n "kty": "RSA",\n "n": "h_QDoCjZ8W_trtYXaP7_S22wf5r5Wd9XBLED78oT44bJjQXn8ddcFV8Hik65_4IYXVX_hTTU4zpxe3H8vx2j7-Zz3O59mYMp5S0MzODNEdf5Y_2o19eis0brmAJniixsNlQ9LlYkdrVamrgaxHu3ZpP_99zkfFybYeuYoQNzb3PyrT8xVnz_USs_nlFMHpGUxvvz7gfKPqxcLvgLJr4cwI9yzaSY9CD4qW181QVcnL_WzpQ8xx6AuhhHZQ1l_3GG4InTk8ahE7U2ZHVu8RrX6d01pMgc3piEcet9RgFLnhbTg3YIiKGoAbN42wJn_x3lgIAC42T9mbmTsHyUdS6nUQ",\n "use": "sig"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `getPublicTokenOIDC`\n\nOpenID Connect configuration for Access Token API a a public identity provider\n\n`GET /v1/access-tokens/public/.well-known/openid-configuration`\n\n```ts\nconst { data } = await client.getPublicTokenOIDC()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "issuer": "https://access-token.sls.epilot.io/v1/access-tokens",\n "jwks_uri": "https://access-token.sls.epilot.io/v1/access-tokens/.well-known/jwks.json"\n}\n```\n\n</details>\n\n---\n\n### `getPortalPreviewTokenOIDC`\n\nOpenID Connect configuration for Access Token API a a portal preview identity provider\n\n`GET /v1/access-tokens/portal-preview/.well-known/openid-configuration`\n\n```ts\nconst { data } = await client.getPortalPreviewTokenOIDC()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "issuer": "https://access-token.sls.epilot.io/v1/access-tokens/portal-preview",\n "jwks_uri": "https://access-token.sls.epilot.io/v1/access-tokens/portal-preview/.well-known/jwks.json"\n}\n```\n\n</details>\n\n---\n\n## Schemas\n\n### `AccessToken`\n\nA JWT Access Token\n\n```ts\ntype AccessToken = string\n```\n\n### `AccessTokenId`\n\n```ts\ntype AccessTokenId = string\n```\n\n### `AccessTokenName`\n\nHuman readable name for access token\n\n```ts\ntype AccessTokenName = string\n```\n\n### `AccessTokenType`\n\nAccess token type\n\n```ts\ntype AccessTokenType = "api" | "journey" | "portal" | "assume" | "app" | "portal_preview"\n```\n\n### `AccessTokenJourneyId`\n\nJourney ID for access token type "journey"\n\n```ts\ntype AccessTokenJourneyId = string\n```\n\n### `PortalId`\n\nPortal ID for access token type "portal"\n\n```ts\ntype PortalId = string\n```\n\n### `PortalUserId`\n\nPortal User ID for access token type "portal_preview"\n\n```ts\ntype PortalUserId = string\n```\n\n### `TokenParameters`\n\n```ts\ntype TokenParameters = {\n name: string\n token_type?: "api"\n assignments?: string[]\n expires_in?: number | string\n read_only?: boolean\n} | {\n name: string\n token_type?: "journey"\n journey_id: string\n expires_in?: number | string\n} | {\n name: string\n token_type?: "portal"\n portal_id: string\n expires_in?: number | string\n} | {\n name: string\n token_type?: "assume"\n assignments?: string[]\n read_only?: boolean\n} | {\n name: string\n token_type?: "app"\n assignments?: string[]\n expires_in?: number | string\n read_only?: boolean\n} | {\n name: string\n token_type?: "portal_preview"\n portal_id: string\n portal_user_id: string\n}\n```\n\n### `ExpiresIn`\n\n```ts\ntype ExpiresIn = number | string\n```\n\n### `ReadOnly`\n\nWhen true, the issued token may only perform read-only actions. Any action guarded by permissions that is not read-only (i.e. not a view/export/download action) is denied, regardless of the roles the token carries.\n\n```ts\ntype ReadOnly = boolean\n```\n\n### `AccessTokenParameters`\n\n```ts\ntype AccessTokenParameters = {\n name: string\n token_type?: "api"\n assignments?: string[]\n expires_in?: number | string\n read_only?: boolean\n}\n```\n\n### `JourneyTokenParameters`\n\n```ts\ntype JourneyTokenParameters = {\n name: string\n token_type?: "journey"\n journey_id: string\n expires_in?: number | string\n}\n```\n\n### `PortalTokenParameters`\n\n```ts\ntype PortalTokenParameters = {\n name: string\n token_type?: "portal"\n portal_id: string\n expires_in?: number | string\n}\n```\n\n### `AssumeTokenParameters`\n\n```ts\ntype AssumeTokenParameters = {\n name: string\n token_type?: "assume"\n assignments?: string[]\n read_only?: boolean\n}\n```\n\n### `AppTokenParameters`\n\n```ts\ntype AppTokenParameters = {\n name: string\n token_type?: "app"\n assignments?: string[]\n expires_in?: number | string\n read_only?: boolean\n}\n```\n\n### `PortalPreviewTokenParameters`\n\n```ts\ntype PortalPreviewTokenParameters = {\n name: string\n token_type?: "portal_preview"\n portal_id: string\n portal_user_id: string\n}\n```\n\n### `AccessTokenItem`\n\n```ts\ntype AccessTokenItem = {\n id: string\n created_at: string // date-time\n name: string\n token_type?: "api" | "journey" | "portal" | "assume" | "app" | "portal_preview"\n journey_id?: string\n portal_id?: string\n portal_user_id?: string\n assignments?: string[]\n read_only?: boolean\n last_used?: string // date\n}\n```\n\n### `RoleId`\n\nFormat: `<organization_id>`:`<slug>`\n\n```ts\ntype RoleId = string\n```\n\n### `Assignments`\n\nList of role ids attached to an user\n\n```ts\ntype Assignments = string[]\n```\n';
5
+ export {
6
+ access_token_default as default
7
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-NJK5F5TF.cjs');
2
+
3
+ // src/docs/access-token.json
4
+ var access_token_default = '# Access Token API\n\n- **Base URL:** `https://access-token.sls.epilot.io`\n- **Full API Docs:** [https://docs.epilot.io/api/access-token](https://docs.epilot.io/api/access-token)\n\n## Usage\n\n```ts\nimport { epilot } from \'@epilot/sdk\'\n\nepilot.authorize(() => \'<token>\')\nconst { data } = await epilot.accessToken.createAccessToken(...)\n```\n\n### Tree-shakeable import\n\n```ts\nimport { getClient, authorize } from \'@epilot/sdk/access-token\'\n\nconst accessTokenClient = getClient()\nauthorize(accessTokenClient, () => \'<token>\')\nconst { data } = await accessTokenClient.createAccessToken(...)\n```\n\n## Operations\n\n**Access Tokens**\n- [`createAccessToken`](#createaccesstoken)\n- [`listAccessTokens`](#listaccesstokens)\n- [`revokeAccessToken`](#revokeaccesstoken)\n\n**Public**\n- [`getAccessTokenJwks`](#getaccesstokenjwks)\n- [`getAccessTokenOIDC`](#getaccesstokenoidc)\n- [`getPublicTokenJwks`](#getpublictokenjwks)\n- [`getPortalPreviewTokenJwks`](#getportalpreviewtokenjwks)\n- [`getPublicTokenOIDC`](#getpublictokenoidc)\n- [`getPortalPreviewTokenOIDC`](#getportalpreviewtokenoidc)\n\n**Schemas**\n- [`AccessToken`](#accesstoken)\n- [`AccessTokenId`](#accesstokenid)\n- [`AccessTokenName`](#accesstokenname)\n- [`AccessTokenType`](#accesstokentype)\n- [`AccessTokenJourneyId`](#accesstokenjourneyid)\n- [`PortalId`](#portalid)\n- [`PortalUserId`](#portaluserid)\n- [`TokenParameters`](#tokenparameters)\n- [`ExpiresIn`](#expiresin)\n- [`ReadOnly`](#readonly)\n- [`AccessTokenParameters`](#accesstokenparameters)\n- [`JourneyTokenParameters`](#journeytokenparameters)\n- [`PortalTokenParameters`](#portaltokenparameters)\n- [`AssumeTokenParameters`](#assumetokenparameters)\n- [`AppTokenParameters`](#apptokenparameters)\n- [`PortalPreviewTokenParameters`](#portalpreviewtokenparameters)\n- [`AccessTokenItem`](#accesstokenitem)\n- [`RoleId`](#roleid)\n- [`Assignments`](#assignments)\n\n### `createAccessToken`\n\n**Access Token type: `API`** (default if not specified):\n\n`POST /v1/access-tokens`\n\n```ts\nconst { data } = await client.createAccessToken(\n null,\n {\n name: \'Postman Access Token\',\n token_type: \'api\',\n assignments: [\'123:owner\'],\n expires_in: 3600,\n read_only: true\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6Ikp...",\n "id": "api_5ZugdRXasLfWBypHi93Fk",\n "created_at": "1970-01-01T00:00:00.000Z",\n "name": "Postman Access Token",\n "token_type": "api",\n "journey_id": "string",\n "portal_id": "string",\n "portal_user_id": "string",\n "assignments": ["123:owner"],\n "read_only": true,\n "last_used": "2026-02-24"\n}\n```\n\n</details>\n\n---\n\n### `listAccessTokens`\n\nLists all Access Tokens for current user (by default excludes system generated tokens)\n\n`GET /v1/access-tokens`\n\n```ts\nconst { data } = await client.listAccessTokens({\n token_type: [\'...\'],\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n[\n {\n "id": "api_5ZugdRXasLfWBypHi93Fk",\n "created_at": "1970-01-01T00:00:00.000Z",\n "name": "Postman Access Token",\n "token_type": "api",\n "journey_id": "string",\n "portal_id": "string",\n "portal_user_id": "string",\n "assignments": ["123:owner"],\n "read_only": true,\n "last_used": "2026-02-24"\n }\n]\n```\n\n</details>\n\n---\n\n### `revokeAccessToken`\n\nRevokes an Access Token so it can\'t be used anymore.\n\n`DELETE /v1/access-tokens/{id}`\n\n```ts\nconst { data } = await client.revokeAccessToken({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "api_5ZugdRXasLfWBypHi93Fk",\n "created_at": "1970-01-01T00:00:00.000Z",\n "name": "Postman Access Token",\n "token_type": "api",\n "journey_id": "string",\n "portal_id": "string",\n "portal_user_id": "string",\n "assignments": ["123:owner"],\n "read_only": true,\n "last_used": "2026-02-24"\n}\n```\n\n</details>\n\n---\n\n### `getAccessTokenJwks`\n\nGet jwks public key set to verify access tokens generated by this API\n\n`GET /v1/access-tokens/.well-known/jwks.json`\n\n```ts\nconst { data } = await client.getAccessTokenJwks()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "keys": [\n {\n "alg": "RS256",\n "e": "AQAB",\n "kid": "tXWU5mPMbRPczpbQwi6vbhLF4GgF3wlMDSyqo7pfeiw=",\n "kty": "RSA",\n "n": "h_QDoCjZ8W_trtYXaP7_S22wf5r5Wd9XBLED78oT44bJjQXn8ddcFV8Hik65_4IYXVX_hTTU4zpxe3H8vx2j7-Zz3O59mYMp5S0MzODNEdf5Y_2o19eis0brmAJniixsNlQ9LlYkdrVamrgaxHu3ZpP_99zkfFybYeuYoQNzb3PyrT8xVnz_USs_nlFMHpGUxvvz7gfKPqxcLvgLJr4cwI9yzaSY9CD4qW181QVcnL_WzpQ8xx6AuhhHZQ1l_3GG4InTk8ahE7U2ZHVu8RrX6d01pMgc3piEcet9RgFLnhbTg3YIiKGoAbN42wJn_x3lgIAC42T9mbmTsHyUdS6nUQ",\n "use": "sig"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `getAccessTokenOIDC`\n\nOpenID Connect configuration for Access Token API as identity provider\n\n`GET /v1/access-tokens/.well-known/openid-configuration`\n\n```ts\nconst { data } = await client.getAccessTokenOIDC()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "issuer": "https://access-token.sls.epilot.io/v1/access-tokens",\n "jwks_uri": "https://access-token.sls.epilot.io/v1/access-tokens/.well-known/jwks.json"\n}\n```\n\n</details>\n\n---\n\n### `getPublicTokenJwks`\n\nGet jwks public key set to verify public tokens generated by this API\n\n`GET /v1/access-tokens/public/.well-known/jwks.json`\n\n```ts\nconst { data } = await client.getPublicTokenJwks()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "keys": [\n {\n "alg": "RS256",\n "e": "AQAB",\n "kid": "tXWU5mPMbRPczpbQwi6vbhLF4GgF3wlMDSyqo7pfeiw=",\n "kty": "RSA",\n "n": "h_QDoCjZ8W_trtYXaP7_S22wf5r5Wd9XBLED78oT44bJjQXn8ddcFV8Hik65_4IYXVX_hTTU4zpxe3H8vx2j7-Zz3O59mYMp5S0MzODNEdf5Y_2o19eis0brmAJniixsNlQ9LlYkdrVamrgaxHu3ZpP_99zkfFybYeuYoQNzb3PyrT8xVnz_USs_nlFMHpGUxvvz7gfKPqxcLvgLJr4cwI9yzaSY9CD4qW181QVcnL_WzpQ8xx6AuhhHZQ1l_3GG4InTk8ahE7U2ZHVu8RrX6d01pMgc3piEcet9RgFLnhbTg3YIiKGoAbN42wJn_x3lgIAC42T9mbmTsHyUdS6nUQ",\n "use": "sig"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `getPortalPreviewTokenJwks`\n\nGet jwks public key set to verify portal preview tokens generated by this API\n\n`GET /v1/access-tokens/portal-preview/.well-known/jwks.json`\n\n```ts\nconst { data } = await client.getPortalPreviewTokenJwks()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "keys": [\n {\n "alg": "RS256",\n "e": "AQAB",\n "kid": "tXWU5mPMbRPczpbQwi6vbhLF4GgF3wlMDSyqo7pfeiw=",\n "kty": "RSA",\n "n": "h_QDoCjZ8W_trtYXaP7_S22wf5r5Wd9XBLED78oT44bJjQXn8ddcFV8Hik65_4IYXVX_hTTU4zpxe3H8vx2j7-Zz3O59mYMp5S0MzODNEdf5Y_2o19eis0brmAJniixsNlQ9LlYkdrVamrgaxHu3ZpP_99zkfFybYeuYoQNzb3PyrT8xVnz_USs_nlFMHpGUxvvz7gfKPqxcLvgLJr4cwI9yzaSY9CD4qW181QVcnL_WzpQ8xx6AuhhHZQ1l_3GG4InTk8ahE7U2ZHVu8RrX6d01pMgc3piEcet9RgFLnhbTg3YIiKGoAbN42wJn_x3lgIAC42T9mbmTsHyUdS6nUQ",\n "use": "sig"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `getPublicTokenOIDC`\n\nOpenID Connect configuration for Access Token API a a public identity provider\n\n`GET /v1/access-tokens/public/.well-known/openid-configuration`\n\n```ts\nconst { data } = await client.getPublicTokenOIDC()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "issuer": "https://access-token.sls.epilot.io/v1/access-tokens",\n "jwks_uri": "https://access-token.sls.epilot.io/v1/access-tokens/.well-known/jwks.json"\n}\n```\n\n</details>\n\n---\n\n### `getPortalPreviewTokenOIDC`\n\nOpenID Connect configuration for Access Token API a a portal preview identity provider\n\n`GET /v1/access-tokens/portal-preview/.well-known/openid-configuration`\n\n```ts\nconst { data } = await client.getPortalPreviewTokenOIDC()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "issuer": "https://access-token.sls.epilot.io/v1/access-tokens/portal-preview",\n "jwks_uri": "https://access-token.sls.epilot.io/v1/access-tokens/portal-preview/.well-known/jwks.json"\n}\n```\n\n</details>\n\n---\n\n## Schemas\n\n### `AccessToken`\n\nA JWT Access Token\n\n```ts\ntype AccessToken = string\n```\n\n### `AccessTokenId`\n\n```ts\ntype AccessTokenId = string\n```\n\n### `AccessTokenName`\n\nHuman readable name for access token\n\n```ts\ntype AccessTokenName = string\n```\n\n### `AccessTokenType`\n\nAccess token type\n\n```ts\ntype AccessTokenType = "api" | "journey" | "portal" | "assume" | "app" | "portal_preview"\n```\n\n### `AccessTokenJourneyId`\n\nJourney ID for access token type "journey"\n\n```ts\ntype AccessTokenJourneyId = string\n```\n\n### `PortalId`\n\nPortal ID for access token type "portal"\n\n```ts\ntype PortalId = string\n```\n\n### `PortalUserId`\n\nPortal User ID for access token type "portal_preview"\n\n```ts\ntype PortalUserId = string\n```\n\n### `TokenParameters`\n\n```ts\ntype TokenParameters = {\n name: string\n token_type?: "api"\n assignments?: string[]\n expires_in?: number | string\n read_only?: boolean\n} | {\n name: string\n token_type?: "journey"\n journey_id: string\n expires_in?: number | string\n} | {\n name: string\n token_type?: "portal"\n portal_id: string\n expires_in?: number | string\n} | {\n name: string\n token_type?: "assume"\n assignments?: string[]\n read_only?: boolean\n} | {\n name: string\n token_type?: "app"\n assignments?: string[]\n expires_in?: number | string\n read_only?: boolean\n} | {\n name: string\n token_type?: "portal_preview"\n portal_id: string\n portal_user_id: string\n}\n```\n\n### `ExpiresIn`\n\n```ts\ntype ExpiresIn = number | string\n```\n\n### `ReadOnly`\n\nWhen true, the issued token may only perform read-only actions. Any action guarded by permissions that is not read-only (i.e. not a view/export/download action) is denied, regardless of the roles the token carries.\n\n```ts\ntype ReadOnly = boolean\n```\n\n### `AccessTokenParameters`\n\n```ts\ntype AccessTokenParameters = {\n name: string\n token_type?: "api"\n assignments?: string[]\n expires_in?: number | string\n read_only?: boolean\n}\n```\n\n### `JourneyTokenParameters`\n\n```ts\ntype JourneyTokenParameters = {\n name: string\n token_type?: "journey"\n journey_id: string\n expires_in?: number | string\n}\n```\n\n### `PortalTokenParameters`\n\n```ts\ntype PortalTokenParameters = {\n name: string\n token_type?: "portal"\n portal_id: string\n expires_in?: number | string\n}\n```\n\n### `AssumeTokenParameters`\n\n```ts\ntype AssumeTokenParameters = {\n name: string\n token_type?: "assume"\n assignments?: string[]\n read_only?: boolean\n}\n```\n\n### `AppTokenParameters`\n\n```ts\ntype AppTokenParameters = {\n name: string\n token_type?: "app"\n assignments?: string[]\n expires_in?: number | string\n read_only?: boolean\n}\n```\n\n### `PortalPreviewTokenParameters`\n\n```ts\ntype PortalPreviewTokenParameters = {\n name: string\n token_type?: "portal_preview"\n portal_id: string\n portal_user_id: string\n}\n```\n\n### `AccessTokenItem`\n\n```ts\ntype AccessTokenItem = {\n id: string\n created_at: string // date-time\n name: string\n token_type?: "api" | "journey" | "portal" | "assume" | "app" | "portal_preview"\n journey_id?: string\n portal_id?: string\n portal_user_id?: string\n assignments?: string[]\n read_only?: boolean\n last_used?: string // date\n}\n```\n\n### `RoleId`\n\nFormat: `<organization_id>`:`<slug>`\n\n```ts\ntype RoleId = string\n```\n\n### `Assignments`\n\nList of role ids attached to an user\n\n```ts\ntype Assignments = string[]\n```\n';
5
+
6
+
7
+ exports.default = access_token_default;
@@ -1,5 +1,5 @@
1
1
  import {
2
2
  require_access_token_runtime
3
- } from "./chunk-XSE4CFSM.js";
3
+ } from "./chunk-OHHHS4HH.js";
4
4
  import "./chunk-YPSWSI3M.js";
5
5
  export default require_access_token_runtime();