@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
package/docs/user.md CHANGED
@@ -27,14 +27,21 @@ const { data } = await userClient.signUpUser(...)
27
27
  **User V2**
28
28
  - [`signUpUser`](#signupuser)
29
29
  - [`getMeV2`](#getmev2)
30
+ - [`listUserSettings`](#listusersettings)
31
+ - [`getUserSettingsScope`](#getusersettingsscope)
32
+ - [`getUserSetting`](#getusersetting)
33
+ - [`putUserSetting`](#putusersetting)
34
+ - [`deleteUserSetting`](#deleteusersetting)
30
35
  - [`listUsersV2`](#listusersv2)
31
36
  - [`getUserV2`](#getuserv2)
32
37
  - [`updateUserV2`](#updateuserv2)
33
38
  - [`deleteUserV2`](#deleteuserv2)
34
39
  - [`inviteUser`](#inviteuser)
35
40
  - [`resendUserInvitation`](#resenduserinvitation)
41
+ - [`sendUserPasswordReset`](#senduserpasswordreset)
36
42
  - [`getGroupsForUser`](#getgroupsforuser)
37
43
  - [`verifyEmailWithToken`](#verifyemailwithtoken)
44
+ - [`requestPasswordReset`](#requestpasswordreset)
38
45
  - [`checkInviteToken`](#checkinvitetoken)
39
46
  - [`activateUser`](#activateuser)
40
47
  - [`rejectInvite`](#rejectinvite)
@@ -102,6 +109,12 @@ const { data } = await userClient.signUpUser(...)
102
109
  - [`Organization`](#organization)
103
110
  - [`DataPointsResponse`](#datapointsresponse)
104
111
  - [`DataPoint`](#datapoint)
112
+ - [`UserSettingScope`](#usersettingscope)
113
+ - [`UserSettingKey`](#usersettingkey)
114
+ - [`UserSettingValue`](#usersettingvalue)
115
+ - [`UserSetting`](#usersetting)
116
+ - [`UserSettingsListResponse`](#usersettingslistresponse)
117
+ - [`UserSettingsScopeResponse`](#usersettingsscoperesponse)
105
118
  - [`Passkey`](#passkey)
106
119
  - [`PasskeyAuthenticationOptions`](#passkeyauthenticationoptions)
107
120
  - [`PasskeyRegistrationOptions`](#passkeyregistrationoptions)
@@ -220,10 +233,12 @@ const { data } = await client.getMeV2()
220
233
  "status": "Active",
221
234
  "email": "user@example.com",
222
235
  "draft_email": "user@example.com",
236
+ "draft_email_expires_at": "1970-01-01T00:00:00.000Z",
223
237
  "department": "Sales",
224
238
  "phone": 1234567890,
225
239
  "secondary_phone": 1234567890,
226
240
  "mfa_enabled": false,
241
+ "has_passkeys": false,
227
242
  "phone_verified": true,
228
243
  "token": "string",
229
244
  "signature": "<p>Thanks</p>",
@@ -273,6 +288,142 @@ const { data } = await client.getMeV2()
273
288
 
274
289
  ---
275
290
 
291
+ ### `listUserSettings`
292
+
293
+ List all setting scopes and keys available for the currently logged in user. Does not return setting values.
294
+
295
+ `GET /v2/users/me/settings`
296
+
297
+ ```ts
298
+ const { data } = await client.listUserSettings()
299
+ ```
300
+
301
+ <details>
302
+ <summary>Response</summary>
303
+
304
+ ```json
305
+ {
306
+ "results": [
307
+ {
308
+ "scope": "calendar",
309
+ "keys": ["visible_calendars"]
310
+ }
311
+ ]
312
+ }
313
+ ```
314
+
315
+ </details>
316
+
317
+ ---
318
+
319
+ ### `getUserSettingsScope`
320
+
321
+ Get all setting values for one scope for the currently logged in user.
322
+
323
+ `GET /v2/users/me/settings/{scope}`
324
+
325
+ ```ts
326
+ const { data } = await client.getUserSettingsScope({
327
+ scope: 'example',
328
+ })
329
+ ```
330
+
331
+ <details>
332
+ <summary>Response</summary>
333
+
334
+ ```json
335
+ {
336
+ "scope": "calendar",
337
+ "settings": {
338
+ "visible_calendars": {
339
+ "calendar_ids": ["holidays"]
340
+ }
341
+ }
342
+ }
343
+ ```
344
+
345
+ </details>
346
+
347
+ ---
348
+
349
+ ### `getUserSetting`
350
+
351
+ Get one setting value by scope and key for the currently logged in user.
352
+
353
+ `GET /v2/users/me/settings/{scope}/{key}`
354
+
355
+ ```ts
356
+ const { data } = await client.getUserSetting({
357
+ scope: 'example',
358
+ key: 'example',
359
+ })
360
+ ```
361
+
362
+ <details>
363
+ <summary>Response</summary>
364
+
365
+ ```json
366
+ {
367
+ "scope": "calendar",
368
+ "key": "visible_calendars",
369
+ "value": {},
370
+ "created_at": "1970-01-01T00:00:00.000Z",
371
+ "updated_at": "1970-01-01T00:00:00.000Z"
372
+ }
373
+ ```
374
+
375
+ </details>
376
+
377
+ ---
378
+
379
+ ### `putUserSetting`
380
+
381
+ Create or replace one setting value for the currently logged in user.
382
+
383
+ `PUT /v2/users/me/settings/{scope}/{key}`
384
+
385
+ ```ts
386
+ const { data } = await client.putUserSetting(
387
+ {
388
+ scope: 'example',
389
+ key: 'example',
390
+ },
391
+ {},
392
+ )
393
+ ```
394
+
395
+ <details>
396
+ <summary>Response</summary>
397
+
398
+ ```json
399
+ {
400
+ "scope": "calendar",
401
+ "key": "visible_calendars",
402
+ "value": {},
403
+ "created_at": "1970-01-01T00:00:00.000Z",
404
+ "updated_at": "1970-01-01T00:00:00.000Z"
405
+ }
406
+ ```
407
+
408
+ </details>
409
+
410
+ ---
411
+
412
+ ### `deleteUserSetting`
413
+
414
+ Delete one setting value for the currently logged in user.
415
+
416
+ `DELETE /v2/users/me/settings/{scope}/{key}`
417
+
418
+ ```ts
419
+ const { data } = await client.deleteUserSetting({
420
+ scope: 'example',
421
+ key: 'example',
422
+ })
423
+ ```
424
+
425
+ ---
426
+
276
427
  ### `listUsersV2`
277
428
 
278
429
  Get the list of organization users
@@ -302,10 +453,12 @@ const { data } = await client.listUsersV2({
302
453
  "status": "Active",
303
454
  "email": "user@example.com",
304
455
  "draft_email": "user@example.com",
456
+ "draft_email_expires_at": "1970-01-01T00:00:00.000Z",
305
457
  "department": "Sales",
306
458
  "phone": 1234567890,
307
459
  "secondary_phone": 1234567890,
308
460
  "mfa_enabled": false,
461
+ "has_passkeys": false,
309
462
  "phone_verified": true,
310
463
  "token": "string",
311
464
  "signature": "<p>Thanks</p>",
@@ -382,10 +535,12 @@ const { data } = await client.getUserV2({
382
535
  "status": "Active",
383
536
  "email": "user@example.com",
384
537
  "draft_email": "user@example.com",
538
+ "draft_email_expires_at": "1970-01-01T00:00:00.000Z",
385
539
  "department": "Sales",
386
540
  "phone": 1234567890,
387
541
  "secondary_phone": 1234567890,
388
542
  "mfa_enabled": false,
543
+ "has_passkeys": false,
389
544
  "phone_verified": true,
390
545
  "token": "string",
391
546
  "signature": "<p>Thanks</p>",
@@ -455,10 +610,12 @@ const { data } = await client.updateUserV2(
455
610
  status: 'Active',
456
611
  email: 'user@example.com',
457
612
  draft_email: 'user@example.com',
613
+ draft_email_expires_at: '1970-01-01T00:00:00.000Z',
458
614
  department: 'Sales',
459
615
  phone: 1234567890,
460
616
  secondary_phone: 1234567890,
461
617
  mfa_enabled: false,
618
+ has_passkeys: false,
462
619
  phone_verified: true,
463
620
  token: 'string',
464
621
  signature: '<p>Thanks</p>',
@@ -518,10 +675,12 @@ const { data } = await client.updateUserV2(
518
675
  "status": "Active",
519
676
  "email": "user@example.com",
520
677
  "draft_email": "user@example.com",
678
+ "draft_email_expires_at": "1970-01-01T00:00:00.000Z",
521
679
  "department": "Sales",
522
680
  "phone": 1234567890,
523
681
  "secondary_phone": 1234567890,
524
682
  "mfa_enabled": false,
683
+ "has_passkeys": false,
525
684
  "phone_verified": true,
526
685
  "token": "string",
527
686
  "signature": "<p>Thanks</p>",
@@ -644,10 +803,12 @@ const { data } = await client.inviteUser(
644
803
  "status": "Active",
645
804
  "email": "user@example.com",
646
805
  "draft_email": "user@example.com",
806
+ "draft_email_expires_at": "1970-01-01T00:00:00.000Z",
647
807
  "department": "Sales",
648
808
  "phone": 1234567890,
649
809
  "secondary_phone": 1234567890,
650
810
  "mfa_enabled": false,
811
+ "has_passkeys": false,
651
812
  "phone_verified": true,
652
813
  "token": "string",
653
814
  "signature": "<p>Thanks</p>",
@@ -726,10 +887,12 @@ const { data } = await client.resendUserInvitation(
726
887
  "status": "Active",
727
888
  "email": "user@example.com",
728
889
  "draft_email": "user@example.com",
890
+ "draft_email_expires_at": "1970-01-01T00:00:00.000Z",
729
891
  "department": "Sales",
730
892
  "phone": 1234567890,
731
893
  "secondary_phone": 1234567890,
732
894
  "mfa_enabled": false,
895
+ "has_passkeys": false,
733
896
  "phone_verified": true,
734
897
  "token": "string",
735
898
  "signature": "<p>Thanks</p>",
@@ -779,6 +942,35 @@ const { data } = await client.resendUserInvitation(
779
942
 
780
943
  ---
781
944
 
945
+ ### `sendUserPasswordReset`
946
+
947
+ Send a password reset email to a user in your organization.
948
+ Requires `user:edit` on the target user.
949
+
950
+ `POST /v2/users:sendPasswordReset`
951
+
952
+ ```ts
953
+ const { data } = await client.sendUserPasswordReset(
954
+ null,
955
+ {
956
+ email: 'test@example.com'
957
+ },
958
+ )
959
+ ```
960
+
961
+ <details>
962
+ <summary>Response</summary>
963
+
964
+ ```json
965
+ {
966
+ "success": true
967
+ }
968
+ ```
969
+
970
+ </details>
971
+
972
+ ---
973
+
782
974
  ### `getGroupsForUser`
783
975
 
784
976
  Get groups of a user
@@ -812,10 +1004,12 @@ const { data } = await client.getGroupsForUser({
812
1004
  "status": "Active",
813
1005
  "email": "user@example.com",
814
1006
  "draft_email": "user@example.com",
1007
+ "draft_email_expires_at": "1970-01-01T00:00:00.000Z",
815
1008
  "department": "Sales",
816
1009
  "phone": 1234567890,
817
1010
  "secondary_phone": 1234567890,
818
1011
  "mfa_enabled": false,
1012
+ "has_passkeys": false,
819
1013
  "phone_verified": true,
820
1014
  "token": "string",
821
1015
  "signature": "<p>Thanks</p>",
@@ -836,7 +1030,8 @@ const { data } = await client.getGroupsForUser({
836
1030
  ],
837
1031
  "image_uri": {
838
1032
  "gradient_colors": ["#0588f0", "#3358d4"]
839
- }
1033
+ },
1034
+ "abbreviation": "FN"
840
1035
  }
841
1036
  ]
842
1037
  ```
@@ -876,7 +1071,8 @@ const { data } = await client.getGroups({
876
1071
  "created_by": "123",
877
1072
  "crt_assignee": {},
878
1073
  "users": [],
879
- "image_uri": {}
1074
+ "image_uri": {},
1075
+ "abbreviation": "FN"
880
1076
  }
881
1077
  ]
882
1078
  }
@@ -900,7 +1096,8 @@ const { data } = await client.createGroup(
900
1096
  user_ids: ['123', '456'],
901
1097
  image_uri: {
902
1098
  gradient_colors: ['#0588f0', '#3358d4']
903
- }
1099
+ },
1100
+ abbreviation: 'FN'
904
1101
  },
905
1102
  )
906
1103
  ```
@@ -925,10 +1122,12 @@ const { data } = await client.createGroup(
925
1122
  "status": "Active",
926
1123
  "email": "user@example.com",
927
1124
  "draft_email": "user@example.com",
1125
+ "draft_email_expires_at": "1970-01-01T00:00:00.000Z",
928
1126
  "department": "Sales",
929
1127
  "phone": 1234567890,
930
1128
  "secondary_phone": 1234567890,
931
1129
  "mfa_enabled": false,
1130
+ "has_passkeys": false,
932
1131
  "phone_verified": true,
933
1132
  "token": "string",
934
1133
  "signature": "<p>Thanks</p>",
@@ -977,10 +1176,12 @@ const { data } = await client.createGroup(
977
1176
  "status": "Active",
978
1177
  "email": "user@example.com",
979
1178
  "draft_email": "user@example.com",
1179
+ "draft_email_expires_at": "1970-01-01T00:00:00.000Z",
980
1180
  "department": "Sales",
981
1181
  "phone": 1234567890,
982
1182
  "secondary_phone": 1234567890,
983
1183
  "mfa_enabled": false,
1184
+ "has_passkeys": false,
984
1185
  "phone_verified": true,
985
1186
  "token": "string",
986
1187
  "signature": "<p>Thanks</p>",
@@ -998,7 +1199,8 @@ const { data } = await client.createGroup(
998
1199
  ],
999
1200
  "image_uri": {
1000
1201
  "gradient_colors": ["#0588f0", "#3358d4"]
1001
- }
1202
+ },
1203
+ "abbreviation": "FN"
1002
1204
  }
1003
1205
  ```
1004
1206
 
@@ -1039,10 +1241,12 @@ const { data } = await client.getGroup({
1039
1241
  "status": "Active",
1040
1242
  "email": "user@example.com",
1041
1243
  "draft_email": "user@example.com",
1244
+ "draft_email_expires_at": "1970-01-01T00:00:00.000Z",
1042
1245
  "department": "Sales",
1043
1246
  "phone": 1234567890,
1044
1247
  "secondary_phone": 1234567890,
1045
1248
  "mfa_enabled": false,
1249
+ "has_passkeys": false,
1046
1250
  "phone_verified": true,
1047
1251
  "token": "string",
1048
1252
  "signature": "<p>Thanks</p>",
@@ -1091,10 +1295,12 @@ const { data } = await client.getGroup({
1091
1295
  "status": "Active",
1092
1296
  "email": "user@example.com",
1093
1297
  "draft_email": "user@example.com",
1298
+ "draft_email_expires_at": "1970-01-01T00:00:00.000Z",
1094
1299
  "department": "Sales",
1095
1300
  "phone": 1234567890,
1096
1301
  "secondary_phone": 1234567890,
1097
1302
  "mfa_enabled": false,
1303
+ "has_passkeys": false,
1098
1304
  "phone_verified": true,
1099
1305
  "token": "string",
1100
1306
  "signature": "<p>Thanks</p>",
@@ -1112,7 +1318,8 @@ const { data } = await client.getGroup({
1112
1318
  ],
1113
1319
  "image_uri": {
1114
1320
  "gradient_colors": ["#0588f0", "#3358d4"]
1115
- }
1321
+ },
1322
+ "abbreviation": "FN"
1116
1323
  }
1117
1324
  ```
1118
1325
 
@@ -1136,7 +1343,8 @@ const { data } = await client.updateGroup(
1136
1343
  user_ids: ['123', '456'],
1137
1344
  image_uri: {
1138
1345
  gradient_colors: ['#0588f0', '#3358d4']
1139
- }
1346
+ },
1347
+ abbreviation: 'FN'
1140
1348
  },
1141
1349
  )
1142
1350
  ```
@@ -1161,10 +1369,12 @@ const { data } = await client.updateGroup(
1161
1369
  "status": "Active",
1162
1370
  "email": "user@example.com",
1163
1371
  "draft_email": "user@example.com",
1372
+ "draft_email_expires_at": "1970-01-01T00:00:00.000Z",
1164
1373
  "department": "Sales",
1165
1374
  "phone": 1234567890,
1166
1375
  "secondary_phone": 1234567890,
1167
1376
  "mfa_enabled": false,
1377
+ "has_passkeys": false,
1168
1378
  "phone_verified": true,
1169
1379
  "token": "string",
1170
1380
  "signature": "<p>Thanks</p>",
@@ -1213,10 +1423,12 @@ const { data } = await client.updateGroup(
1213
1423
  "status": "Active",
1214
1424
  "email": "user@example.com",
1215
1425
  "draft_email": "user@example.com",
1426
+ "draft_email_expires_at": "1970-01-01T00:00:00.000Z",
1216
1427
  "department": "Sales",
1217
1428
  "phone": 1234567890,
1218
1429
  "secondary_phone": 1234567890,
1219
1430
  "mfa_enabled": false,
1431
+ "has_passkeys": false,
1220
1432
  "phone_verified": true,
1221
1433
  "token": "string",
1222
1434
  "signature": "<p>Thanks</p>",
@@ -1234,7 +1446,8 @@ const { data } = await client.updateGroup(
1234
1446
  ],
1235
1447
  "image_uri": {
1236
1448
  "gradient_colors": ["#0588f0", "#3358d4"]
1237
- }
1449
+ },
1450
+ "abbreviation": "FN"
1238
1451
  }
1239
1452
  ```
1240
1453
 
@@ -1288,10 +1501,12 @@ const { data } = await client.advanceUserAssignment({
1288
1501
  "status": "Active",
1289
1502
  "email": "user@example.com",
1290
1503
  "draft_email": "user@example.com",
1504
+ "draft_email_expires_at": "1970-01-01T00:00:00.000Z",
1291
1505
  "department": "Sales",
1292
1506
  "phone": 1234567890,
1293
1507
  "secondary_phone": 1234567890,
1294
1508
  "mfa_enabled": false,
1509
+ "has_passkeys": false,
1295
1510
  "phone_verified": true,
1296
1511
  "token": "string",
1297
1512
  "signature": "<p>Thanks</p>",
@@ -1340,10 +1555,12 @@ const { data } = await client.advanceUserAssignment({
1340
1555
  "status": "Active",
1341
1556
  "email": "user@example.com",
1342
1557
  "draft_email": "user@example.com",
1558
+ "draft_email_expires_at": "1970-01-01T00:00:00.000Z",
1343
1559
  "department": "Sales",
1344
1560
  "phone": 1234567890,
1345
1561
  "secondary_phone": 1234567890,
1346
1562
  "mfa_enabled": false,
1563
+ "has_passkeys": false,
1347
1564
  "phone_verified": true,
1348
1565
  "token": "string",
1349
1566
  "signature": "<p>Thanks</p>",
@@ -1361,7 +1578,8 @@ const { data } = await client.advanceUserAssignment({
1361
1578
  ],
1362
1579
  "image_uri": {
1363
1580
  "gradient_colors": ["#0588f0", "#3358d4"]
1364
- }
1581
+ },
1582
+ "abbreviation": "FN"
1365
1583
  }
1366
1584
  ```
1367
1585
 
@@ -1522,6 +1740,36 @@ const { data } = await client.verifyEmailWithToken(
1522
1740
 
1523
1741
  ---
1524
1742
 
1743
+ ### `requestPasswordReset`
1744
+
1745
+ Request a password reset email for the given email address. Always
1746
+ returns a success response whether or not an account exists with that
1747
+ email.
1748
+
1749
+ `POST /v2/users/public/requestPasswordReset`
1750
+
1751
+ ```ts
1752
+ const { data } = await client.requestPasswordReset(
1753
+ null,
1754
+ {
1755
+ email: 'test@example.com'
1756
+ },
1757
+ )
1758
+ ```
1759
+
1760
+ <details>
1761
+ <summary>Response</summary>
1762
+
1763
+ ```json
1764
+ {
1765
+ "message": "If an account exists, a password reset email has been sent."
1766
+ }
1767
+ ```
1768
+
1769
+ </details>
1770
+
1771
+ ---
1772
+
1525
1773
  ### `checkInviteToken`
1526
1774
 
1527
1775
  Check an invite token
@@ -2258,10 +2506,12 @@ type UserV2 = {
2258
2506
  status?: "Active" | "Pending" | "Deactivated" | "Deleted"
2259
2507
  email?: string // email
2260
2508
  draft_email?: string // email
2509
+ draft_email_expires_at?: string // date-time
2261
2510
  department?: string
2262
2511
  phone?: string
2263
2512
  secondary_phone?: string
2264
2513
  mfa_enabled?: boolean
2514
+ has_passkeys?: boolean
2265
2515
  phone_verified?: boolean
2266
2516
  token?: string
2267
2517
  signature?: string
@@ -2351,6 +2601,7 @@ type CreateGroupReq = {
2351
2601
  thumbnail_64?: string // uri
2352
2602
  gradient_colors?: string[]
2353
2603
  }
2604
+ abbreviation?: string
2354
2605
  }
2355
2606
  ```
2356
2607
 
@@ -2366,6 +2617,7 @@ type UpdateGroupReq = {
2366
2617
  thumbnail_64?: string // uri
2367
2618
  gradient_colors?: string[]
2368
2619
  }
2620
+ abbreviation?: string
2369
2621
  }
2370
2622
  ```
2371
2623
 
@@ -2388,10 +2640,12 @@ type Group = {
2388
2640
  status?: "Active" | "Pending" | "Deactivated" | "Deleted"
2389
2641
  email?: string // email
2390
2642
  draft_email?: string // email
2643
+ draft_email_expires_at?: string // date-time
2391
2644
  department?: string
2392
2645
  phone?: string
2393
2646
  secondary_phone?: string
2394
2647
  mfa_enabled?: boolean
2648
+ has_passkeys?: boolean
2395
2649
  phone_verified?: boolean
2396
2650
  token?: string
2397
2651
  signature?: string
@@ -2422,10 +2676,12 @@ type Group = {
2422
2676
  status?: "Active" | "Pending" | "Deactivated" | "Deleted"
2423
2677
  email?: string // email
2424
2678
  draft_email?: string // email
2679
+ draft_email_expires_at?: string // date-time
2425
2680
  department?: string
2426
2681
  phone?: string
2427
2682
  secondary_phone?: string
2428
2683
  mfa_enabled?: boolean
2684
+ has_passkeys?: boolean
2429
2685
  phone_verified?: boolean
2430
2686
  token?: string
2431
2687
  signature?: string
@@ -2452,6 +2708,7 @@ type Group = {
2452
2708
  thumbnail_64?: string // uri
2453
2709
  gradient_colors?: string[]
2454
2710
  }
2711
+ abbreviation?: string
2455
2712
  }
2456
2713
  ```
2457
2714
 
@@ -2568,6 +2825,62 @@ type DataPoint = {
2568
2825
  }
2569
2826
  ```
2570
2827
 
2828
+ ### `UserSettingScope`
2829
+
2830
+ User setting scope. Values are limited to 64 characters.
2831
+
2832
+ ```ts
2833
+ type UserSettingScope = string
2834
+ ```
2835
+
2836
+ ### `UserSettingKey`
2837
+
2838
+ User setting key. Values are limited to 128 characters.
2839
+
2840
+ ```ts
2841
+ type UserSettingKey = string
2842
+ ```
2843
+
2844
+ ### `UserSettingValue`
2845
+
2846
+ 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.
2847
+
2848
+ ```ts
2849
+ type UserSettingValue = unknown
2850
+ ```
2851
+
2852
+ ### `UserSetting`
2853
+
2854
+ ```ts
2855
+ type UserSetting = {
2856
+ scope: string
2857
+ key: string
2858
+ value: unknown
2859
+ created_at: string // date-time
2860
+ updated_at: string // date-time
2861
+ }
2862
+ ```
2863
+
2864
+ ### `UserSettingsListResponse`
2865
+
2866
+ ```ts
2867
+ type UserSettingsListResponse = {
2868
+ results: Array<{
2869
+ scope: string
2870
+ keys: string[]
2871
+ }>
2872
+ }
2873
+ ```
2874
+
2875
+ ### `UserSettingsScopeResponse`
2876
+
2877
+ ```ts
2878
+ type UserSettingsScopeResponse = {
2879
+ scope: string
2880
+ settings: Record<string, unknown>
2881
+ }
2882
+ ```
2883
+
2571
2884
  ### `Passkey`
2572
2885
 
2573
2886
  ```ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/sdk",
3
- "version": "2.8.1",
3
+ "version": "2.8.3",
4
4
  "description": "JavaScript/TypeScript SDK for epilot APIs",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -267,6 +267,12 @@
267
267
  "require": "./dist/apis/sharing.cjs"
268
268
  },
269
269
  "./sharing/openapi.json": "./definitions/sharing.json",
270
+ "./snapshot": {
271
+ "types": "./dist/apis/snapshot.d.ts",
272
+ "import": "./dist/apis/snapshot.js",
273
+ "require": "./dist/apis/snapshot.cjs"
274
+ },
275
+ "./snapshot/openapi.json": "./definitions/snapshot.json",
270
276
  "./submission": {
271
277
  "types": "./dist/apis/submission.d.ts",
272
278
  "import": "./dist/apis/submission.js",
@@ -481,6 +487,9 @@
481
487
  "sharing": [
482
488
  "./dist/apis/sharing.d.ts"
483
489
  ],
490
+ "snapshot": [
491
+ "./dist/apis/snapshot.d.ts"
492
+ ],
484
493
  "submission": [
485
494
  "./dist/apis/submission.d.ts"
486
495
  ],