@epilot/sdk 2.16.1 → 2.16.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 (164) hide show
  1. package/definitions/calendar-runtime.json +1 -1
  2. package/definitions/calendar.json +373 -4
  3. package/definitions/entity.json +22 -1
  4. package/definitions/file-runtime.json +1 -1
  5. package/definitions/file.json +18 -1
  6. package/definitions/user.json +4 -0
  7. package/dist/apis/access-token.cjs +6 -6
  8. package/dist/apis/access-token.js +1 -1
  9. package/dist/apis/address-suggestions.cjs +6 -6
  10. package/dist/apis/address-suggestions.js +1 -1
  11. package/dist/apis/address.cjs +6 -6
  12. package/dist/apis/address.js +1 -1
  13. package/dist/apis/ai-agents.cjs +6 -6
  14. package/dist/apis/ai-agents.js +1 -1
  15. package/dist/apis/app.cjs +6 -6
  16. package/dist/apis/app.js +1 -1
  17. package/dist/apis/audit-logs.cjs +6 -6
  18. package/dist/apis/audit-logs.js +1 -1
  19. package/dist/apis/automation.cjs +6 -6
  20. package/dist/apis/automation.js +1 -1
  21. package/dist/apis/billing.cjs +6 -6
  22. package/dist/apis/billing.js +1 -1
  23. package/dist/apis/blueprint-manifest.cjs +6 -6
  24. package/dist/apis/blueprint-manifest.js +1 -1
  25. package/dist/apis/calendar.cjs +8 -8
  26. package/dist/apis/calendar.d.cts +2 -2
  27. package/dist/apis/calendar.d.ts +2 -2
  28. package/dist/apis/calendar.js +2 -2
  29. package/dist/apis/configuration-hub.cjs +6 -6
  30. package/dist/apis/configuration-hub.js +1 -1
  31. package/dist/apis/consent.cjs +6 -6
  32. package/dist/apis/consent.js +1 -1
  33. package/dist/apis/customer-portal.cjs +6 -6
  34. package/dist/apis/customer-portal.js +1 -1
  35. package/dist/apis/dashboard.cjs +6 -6
  36. package/dist/apis/dashboard.js +1 -1
  37. package/dist/apis/data-governance.cjs +6 -6
  38. package/dist/apis/data-governance.js +1 -1
  39. package/dist/apis/deduplication.cjs +6 -6
  40. package/dist/apis/deduplication.js +1 -1
  41. package/dist/apis/design.cjs +6 -6
  42. package/dist/apis/design.js +1 -1
  43. package/dist/apis/document.cjs +6 -6
  44. package/dist/apis/document.js +1 -1
  45. package/dist/apis/email-settings.cjs +6 -6
  46. package/dist/apis/email-settings.js +1 -1
  47. package/dist/apis/email-template.cjs +6 -6
  48. package/dist/apis/email-template.js +1 -1
  49. package/dist/apis/entity-mapping.cjs +6 -6
  50. package/dist/apis/entity-mapping.js +1 -1
  51. package/dist/apis/entity.cjs +6 -6
  52. package/dist/apis/entity.d.cts +2 -2
  53. package/dist/apis/entity.d.ts +2 -2
  54. package/dist/apis/entity.js +1 -1
  55. package/dist/apis/environments.cjs +6 -6
  56. package/dist/apis/environments.js +1 -1
  57. package/dist/apis/event-catalog.cjs +6 -6
  58. package/dist/apis/event-catalog.js +1 -1
  59. package/dist/apis/file.cjs +8 -8
  60. package/dist/apis/file.d.cts +2 -2
  61. package/dist/apis/file.d.ts +2 -2
  62. package/dist/apis/file.js +2 -2
  63. package/dist/apis/iban.cjs +6 -6
  64. package/dist/apis/iban.js +1 -1
  65. package/dist/apis/integration-toolkit.cjs +6 -6
  66. package/dist/apis/integration-toolkit.js +1 -1
  67. package/dist/apis/journey.cjs +6 -6
  68. package/dist/apis/journey.js +1 -1
  69. package/dist/apis/kanban.cjs +6 -6
  70. package/dist/apis/kanban.js +1 -1
  71. package/dist/apis/message.cjs +6 -6
  72. package/dist/apis/message.js +1 -1
  73. package/dist/apis/metering.cjs +6 -6
  74. package/dist/apis/metering.js +1 -1
  75. package/dist/apis/notes.cjs +6 -6
  76. package/dist/apis/notes.js +1 -1
  77. package/dist/apis/notification.cjs +6 -6
  78. package/dist/apis/notification.js +1 -1
  79. package/dist/apis/organization.cjs +6 -6
  80. package/dist/apis/organization.js +1 -1
  81. package/dist/apis/partner-directory.cjs +6 -6
  82. package/dist/apis/partner-directory.js +1 -1
  83. package/dist/apis/permissions.cjs +6 -6
  84. package/dist/apis/permissions.js +1 -1
  85. package/dist/apis/pricing-tier.cjs +6 -6
  86. package/dist/apis/pricing-tier.js +1 -1
  87. package/dist/apis/pricing.cjs +6 -6
  88. package/dist/apis/pricing.js +1 -1
  89. package/dist/apis/purpose.cjs +6 -6
  90. package/dist/apis/purpose.js +1 -1
  91. package/dist/apis/query.cjs +6 -6
  92. package/dist/apis/query.js +1 -1
  93. package/dist/apis/sandbox.cjs +6 -6
  94. package/dist/apis/sandbox.js +1 -1
  95. package/dist/apis/sharing.cjs +6 -6
  96. package/dist/apis/sharing.js +1 -1
  97. package/dist/apis/snapshot.cjs +6 -6
  98. package/dist/apis/snapshot.js +1 -1
  99. package/dist/apis/submission.cjs +6 -6
  100. package/dist/apis/submission.js +1 -1
  101. package/dist/apis/target.cjs +6 -6
  102. package/dist/apis/target.js +1 -1
  103. package/dist/apis/targeting.cjs +6 -6
  104. package/dist/apis/targeting.js +1 -1
  105. package/dist/apis/template-variables.cjs +6 -6
  106. package/dist/apis/template-variables.js +1 -1
  107. package/dist/apis/user.cjs +6 -6
  108. package/dist/apis/user.d.cts +2 -2
  109. package/dist/apis/user.d.ts +2 -2
  110. package/dist/apis/user.js +1 -1
  111. package/dist/apis/validation-rules.cjs +6 -6
  112. package/dist/apis/validation-rules.js +1 -1
  113. package/dist/apis/webhooks.cjs +6 -6
  114. package/dist/apis/webhooks.js +1 -1
  115. package/dist/apis/workflow-definition.cjs +6 -6
  116. package/dist/apis/workflow-definition.js +1 -1
  117. package/dist/apis/workflow.cjs +6 -6
  118. package/dist/apis/workflow.js +1 -1
  119. package/dist/calendar-GJ7UX6PX.cjs +7 -0
  120. package/dist/calendar-W42TSLFV.js +7 -0
  121. package/dist/{calendar-runtime-25OCRSQL.js → calendar-runtime-KZPDEYT7.js} +1 -1
  122. package/dist/{calendar-runtime-IOURSAQT.cjs → calendar-runtime-WMR6GL6I.cjs} +2 -2
  123. package/dist/{calendar.d-DQaUSVGa.d.cts → calendar.d-Cinz1Vzo.d.cts} +315 -5
  124. package/dist/{calendar.d-DQaUSVGa.d.ts → calendar.d-Cinz1Vzo.d.ts} +315 -5
  125. package/dist/{chunk-K7MOYBJB.cjs → chunk-C7BX7FZI.cjs} +6 -6
  126. package/dist/chunk-CIPXCDZ6.js +14 -0
  127. package/dist/chunk-CO7WGRHF.cjs +14 -0
  128. package/dist/chunk-HBJJOW2M.cjs +14 -0
  129. package/dist/{chunk-KFR23DXN.js → chunk-P2WTHEWN.js} +6 -6
  130. package/dist/chunk-QEAIJQTE.js +14 -0
  131. package/dist/entity-IZHQB3JX.js +7 -0
  132. package/dist/entity-MYDUQBEE.cjs +7 -0
  133. package/dist/{entity.d-CmQvgvyi.d.cts → entity.d-CaFNmDfj.d.cts} +33 -3
  134. package/dist/{entity.d-CmQvgvyi.d.ts → entity.d-CaFNmDfj.d.ts} +33 -3
  135. package/dist/file-A6OZJKIS.cjs +7 -0
  136. package/dist/file-CRT7VUGQ.js +7 -0
  137. package/dist/{file-runtime-M4X5OHAJ.js → file-runtime-ASJ6YBDM.js} +1 -1
  138. package/dist/file-runtime-VQIZUOUB.cjs +5 -0
  139. package/dist/{file.d-zFneCEyY.d.cts → file.d-FYKxJ29C.d.cts} +31 -0
  140. package/dist/{file.d-zFneCEyY.d.ts → file.d-FYKxJ29C.d.ts} +31 -0
  141. package/dist/index.cjs +12 -12
  142. package/dist/index.d.cts +4 -4
  143. package/dist/index.d.ts +4 -4
  144. package/dist/index.js +3 -3
  145. package/dist/{user-5KLWGPQ2.js → user-7W5JUUKB.js} +1 -1
  146. package/dist/{user-GZLPNGIW.cjs → user-DR7IAWFI.cjs} +1 -1
  147. package/dist/{user.d-6bp0zEwE.d.cts → user.d-rqYtwsCz.d.cts} +8 -0
  148. package/dist/{user.d-6bp0zEwE.d.ts → user.d-rqYtwsCz.d.ts} +8 -0
  149. package/docs/calendar.md +322 -14
  150. package/docs/entity.md +35 -0
  151. package/docs/file.md +1 -0
  152. package/docs/user.md +7 -3
  153. package/package.json +1 -1
  154. package/dist/calendar-QAOHESA6.cjs +0 -7
  155. package/dist/calendar-ZKM3KI45.js +0 -7
  156. package/dist/chunk-3SZOSNO2.cjs +0 -14
  157. package/dist/chunk-EWGYF4WD.js +0 -14
  158. package/dist/chunk-G7IFFKKJ.js +0 -14
  159. package/dist/chunk-IFELBEXN.cjs +0 -14
  160. package/dist/entity-K5HYURU7.js +0 -7
  161. package/dist/entity-V5375UNT.cjs +0 -7
  162. package/dist/file-M7VPFJWG.js +0 -7
  163. package/dist/file-RNYEYEOK.cjs +0 -7
  164. package/dist/file-runtime-NW5B7T4M.cjs +0 -5
package/docs/calendar.md CHANGED
@@ -35,6 +35,11 @@ const { data } = await calendarClient.listUsersAbsence(...)
35
35
  - [`deleteAbsenceAdjustment`](#deleteabsenceadjustment)
36
36
  - [`getUserAbsence`](#getuserabsence)
37
37
 
38
+ **Working Hours**
39
+ - [`getWorkingHours`](#getworkinghours)
40
+ - [`putWorkingHours`](#putworkinghours)
41
+ - [`deleteWorkingHours`](#deleteworkinghours)
42
+
38
43
  **Calendars**
39
44
  - [`listCalendars`](#listcalendars)
40
45
  - [`createCalendar`](#createcalendar)
@@ -67,6 +72,9 @@ const { data } = await calendarClient.listUsersAbsence(...)
67
72
  - [`CreateAbsenceAdjustmentBody`](#createabsenceadjustmentbody)
68
73
  - [`PatchAbsenceAdjustmentBody`](#patchabsenceadjustmentbody)
69
74
  - [`ExternalCalendar`](#externalcalendar)
75
+ - [`WorkingHours`](#workinghours)
76
+ - [`UpsertWorkingHoursBody`](#upsertworkinghoursbody)
77
+ - [`TimeWindow`](#timewindow)
70
78
  - [`Calendar`](#calendar)
71
79
  - [`CalendarSource`](#calendarsource)
72
80
  - [`Provider`](#provider)
@@ -97,6 +105,7 @@ const { data } = await client.listUsersAbsence({
97
105
  from: 'example',
98
106
  to: 'example',
99
107
  include_busy: true,
108
+ working_hours_granularity: 'example',
100
109
  query: 'example',
101
110
  limit: 1,
102
111
  offset: 1,
@@ -153,7 +162,8 @@ const { data } = await client.searchAbsence(
153
162
  from: '1970-01-01T00:00:00.000Z',
154
163
  to: '1970-01-01T00:00:00.000Z',
155
164
  user_ids: ['string'],
156
- include_busy: false
165
+ include_busy: false,
166
+ working_hours_granularity: 'time'
157
167
  },
158
168
  )
159
169
  ```
@@ -184,7 +194,8 @@ const { data } = await client.searchNowAbsence(
184
194
  null,
185
195
  {
186
196
  user_ids: ['string'],
187
- include_busy: false
197
+ include_busy: false,
198
+ working_hours_granularity: 'time'
188
199
  },
189
200
  )
190
201
  ```
@@ -230,7 +241,7 @@ const { data } = await client.listAbsenceAdjustments({
230
241
  "from": "1970-01-01T00:00:00.000Z",
231
242
  "to": "1970-01-01T00:00:00.000Z",
232
243
  "absent": true,
233
- "status": "busy",
244
+ "status": "oof",
234
245
  "type": "string",
235
246
  "reason": "string",
236
247
  "adjustment_id": "string",
@@ -262,7 +273,7 @@ const { data } = await client.createAbsenceAdjustment(
262
273
  from: '1970-01-01T00:00:00.000Z',
263
274
  to: '1970-01-01T00:00:00.000Z',
264
275
  absent: true,
265
- status: 'busy',
276
+ status: 'oof',
266
277
  type: 'string',
267
278
  reason: 'string'
268
279
  },
@@ -277,7 +288,7 @@ const { data } = await client.createAbsenceAdjustment(
277
288
  "from": "1970-01-01T00:00:00.000Z",
278
289
  "to": "1970-01-01T00:00:00.000Z",
279
290
  "absent": true,
280
- "status": "busy",
291
+ "status": "oof",
281
292
  "type": "string",
282
293
  "reason": "string",
283
294
  "adjustment_id": "string",
@@ -313,7 +324,7 @@ const { data } = await client.getAbsenceAdjustment({
313
324
  "from": "1970-01-01T00:00:00.000Z",
314
325
  "to": "1970-01-01T00:00:00.000Z",
315
326
  "absent": true,
316
- "status": "busy",
327
+ "status": "oof",
317
328
  "type": "string",
318
329
  "reason": "string",
319
330
  "adjustment_id": "string",
@@ -344,7 +355,7 @@ const { data } = await client.patchAbsenceAdjustment(
344
355
  from: '1970-01-01T00:00:00.000Z',
345
356
  to: '1970-01-01T00:00:00.000Z',
346
357
  absent: true,
347
- status: 'busy',
358
+ status: 'oof',
348
359
  type: 'string',
349
360
  reason: 'string'
350
361
  },
@@ -359,7 +370,7 @@ const { data } = await client.patchAbsenceAdjustment(
359
370
  "from": "1970-01-01T00:00:00.000Z",
360
371
  "to": "1970-01-01T00:00:00.000Z",
361
372
  "absent": true,
362
- "status": "busy",
373
+ "status": "oof",
363
374
  "type": "string",
364
375
  "reason": "string",
365
376
  "adjustment_id": "string",
@@ -401,6 +412,7 @@ const { data } = await client.getUserAbsence({
401
412
  from: 'example',
402
413
  to: 'example',
403
414
  include_busy: true,
415
+ working_hours_granularity: 'example',
404
416
  })
405
417
  ```
406
418
 
@@ -439,6 +451,209 @@ const { data } = await client.getUserAbsence({
439
451
 
440
452
  ---
441
453
 
454
+ ### `getWorkingHours`
455
+
456
+ Get the recurring weekly working hours of a user. 404 means no record exists and the user is treated as always available.
457
+
458
+ `GET /v1/calendar/working-hours/users/{user_id}`
459
+
460
+ ```ts
461
+ const { data } = await client.getWorkingHours({
462
+ user_id: 'example',
463
+ })
464
+ ```
465
+
466
+ <details>
467
+ <summary>Response</summary>
468
+
469
+ ```json
470
+ {
471
+ "monday": [
472
+ {
473
+ "start": "string",
474
+ "end": "string"
475
+ }
476
+ ],
477
+ "tuesday": [
478
+ {
479
+ "start": "string",
480
+ "end": "string"
481
+ }
482
+ ],
483
+ "wednesday": [
484
+ {
485
+ "start": "string",
486
+ "end": "string"
487
+ }
488
+ ],
489
+ "thursday": [
490
+ {
491
+ "start": "string",
492
+ "end": "string"
493
+ }
494
+ ],
495
+ "friday": [
496
+ {
497
+ "start": "string",
498
+ "end": "string"
499
+ }
500
+ ],
501
+ "saturday": [
502
+ {
503
+ "start": "string",
504
+ "end": "string"
505
+ }
506
+ ],
507
+ "sunday": [
508
+ {
509
+ "start": "string",
510
+ "end": "string"
511
+ }
512
+ ],
513
+ "timezone": "string",
514
+ "user_id": "string",
515
+ "updated_by": "string",
516
+ "created_at": "1970-01-01T00:00:00.000Z",
517
+ "updated_at": "1970-01-01T00:00:00.000Z"
518
+ }
519
+ ```
520
+
521
+ </details>
522
+
523
+ ---
524
+
525
+ ### `putWorkingHours`
526
+
527
+ Create or fully replace the working hours of a user in the caller organization. This is a full replace, not a merge.
528
+
529
+ `PUT /v1/calendar/working-hours/users/{user_id}`
530
+
531
+ ```ts
532
+ const { data } = await client.putWorkingHours(
533
+ {
534
+ user_id: 'example',
535
+ },
536
+ {
537
+ monday: [
538
+ {
539
+ start: 'string',
540
+ end: 'string'
541
+ }
542
+ ],
543
+ tuesday: [
544
+ {
545
+ start: 'string',
546
+ end: 'string'
547
+ }
548
+ ],
549
+ wednesday: [
550
+ {
551
+ start: 'string',
552
+ end: 'string'
553
+ }
554
+ ],
555
+ thursday: [
556
+ {
557
+ start: 'string',
558
+ end: 'string'
559
+ }
560
+ ],
561
+ friday: [
562
+ {
563
+ start: 'string',
564
+ end: 'string'
565
+ }
566
+ ],
567
+ saturday: [
568
+ {
569
+ start: 'string',
570
+ end: 'string'
571
+ }
572
+ ],
573
+ sunday: [
574
+ {
575
+ start: 'string',
576
+ end: 'string'
577
+ }
578
+ ],
579
+ timezone: 'Europe/Berlin'
580
+ },
581
+ )
582
+ ```
583
+
584
+ <details>
585
+ <summary>Response</summary>
586
+
587
+ ```json
588
+ {
589
+ "monday": [
590
+ {
591
+ "start": "string",
592
+ "end": "string"
593
+ }
594
+ ],
595
+ "tuesday": [
596
+ {
597
+ "start": "string",
598
+ "end": "string"
599
+ }
600
+ ],
601
+ "wednesday": [
602
+ {
603
+ "start": "string",
604
+ "end": "string"
605
+ }
606
+ ],
607
+ "thursday": [
608
+ {
609
+ "start": "string",
610
+ "end": "string"
611
+ }
612
+ ],
613
+ "friday": [
614
+ {
615
+ "start": "string",
616
+ "end": "string"
617
+ }
618
+ ],
619
+ "saturday": [
620
+ {
621
+ "start": "string",
622
+ "end": "string"
623
+ }
624
+ ],
625
+ "sunday": [
626
+ {
627
+ "start": "string",
628
+ "end": "string"
629
+ }
630
+ ],
631
+ "timezone": "string",
632
+ "user_id": "string",
633
+ "updated_by": "string",
634
+ "created_at": "1970-01-01T00:00:00.000Z",
635
+ "updated_at": "1970-01-01T00:00:00.000Z"
636
+ }
637
+ ```
638
+
639
+ </details>
640
+
641
+ ---
642
+
643
+ ### `deleteWorkingHours`
644
+
645
+ Delete the working hours of a user. The user is then treated as always available again.
646
+
647
+ `DELETE /v1/calendar/working-hours/users/{user_id}`
648
+
649
+ ```ts
650
+ const { data } = await client.deleteWorkingHours({
651
+ user_id: 'example',
652
+ })
653
+ ```
654
+
655
+ ---
656
+
442
657
  ### `listCalendars`
443
658
 
444
659
  List calendars visible to the caller.
@@ -1108,7 +1323,7 @@ type AbsenceInterval = {
1108
1323
  original_from: string // date-time
1109
1324
  original_to: string // date-time
1110
1325
  absent: boolean
1111
- source: "calendar_event" | "absence_adjustment"
1326
+ source: "calendar_event" | "absence_adjustment" | "working_hours"
1112
1327
  calendar_event_id?: string
1113
1328
  absence_adjustment_id?: string
1114
1329
  reason?: string
@@ -1118,7 +1333,7 @@ type AbsenceInterval = {
1118
1333
  ### `AbsenceIntervalSource`
1119
1334
 
1120
1335
  ```ts
1121
- type AbsenceIntervalSource = "calendar_event" | "absence_adjustment"
1336
+ type AbsenceIntervalSource = "calendar_event" | "absence_adjustment" | "working_hours"
1122
1337
  ```
1123
1338
 
1124
1339
  ### `Error`
@@ -1138,6 +1353,7 @@ type SearchAbsenceBody = {
1138
1353
  to: string // date-time
1139
1354
  user_ids: string[]
1140
1355
  include_busy?: boolean
1356
+ working_hours_granularity?: "time" | "day"
1141
1357
  }
1142
1358
  ```
1143
1359
 
@@ -1147,6 +1363,7 @@ type SearchAbsenceBody = {
1147
1363
  type SearchNowAbsenceBody = {
1148
1364
  user_ids: string[]
1149
1365
  include_busy?: boolean
1366
+ working_hours_granularity?: "time" | "day"
1150
1367
  }
1151
1368
  ```
1152
1369
 
@@ -1157,7 +1374,7 @@ type AbsenceAdjustment = {
1157
1374
  from: string // date-time
1158
1375
  to: string // date-time
1159
1376
  absent: boolean
1160
- status: "busy" | "oof"
1377
+ status: "oof" | "busy"
1161
1378
  type?: string
1162
1379
  reason?: string
1163
1380
  adjustment_id: string
@@ -1173,7 +1390,7 @@ type AbsenceAdjustment = {
1173
1390
  Calendar status targeted by the absence adjustment.
1174
1391
 
1175
1392
  ```ts
1176
- type AbsenceStatus = "busy" | "oof"
1393
+ type AbsenceStatus = "oof" | "busy"
1177
1394
  ```
1178
1395
 
1179
1396
  ### `AbsenceType`
@@ -1191,7 +1408,7 @@ type CreateAbsenceAdjustmentBody = {
1191
1408
  from: string // date-time
1192
1409
  to: string // date-time
1193
1410
  absent: boolean
1194
- status: "busy" | "oof"
1411
+ status: "oof" | "busy"
1195
1412
  type?: string
1196
1413
  reason?: string
1197
1414
  }
@@ -1204,7 +1421,7 @@ type PatchAbsenceAdjustmentBody = {
1204
1421
  from?: string // date-time
1205
1422
  to?: string // date-time
1206
1423
  absent?: boolean
1207
- status?: "busy" | "oof"
1424
+ status?: "oof" | "busy"
1208
1425
  type?: string
1209
1426
  reason?: string
1210
1427
  }
@@ -1219,6 +1436,97 @@ type ExternalCalendar = {
1219
1436
  }
1220
1437
  ```
1221
1438
 
1439
+ ### `WorkingHours`
1440
+
1441
+ Recurring weekly working hours of a user. The absence of a record means the user is treated as always available.
1442
+
1443
+ ```ts
1444
+ type WorkingHours = {
1445
+ monday: Array<{
1446
+ start: string
1447
+ end: string
1448
+ }>
1449
+ tuesday: Array<{
1450
+ start: string
1451
+ end: string
1452
+ }>
1453
+ wednesday: Array<{
1454
+ start: string
1455
+ end: string
1456
+ }>
1457
+ thursday: Array<{
1458
+ start: string
1459
+ end: string
1460
+ }>
1461
+ friday: Array<{
1462
+ start: string
1463
+ end: string
1464
+ }>
1465
+ saturday: Array<{
1466
+ start: string
1467
+ end: string
1468
+ }>
1469
+ sunday: Array<{
1470
+ start: string
1471
+ end: string
1472
+ }>
1473
+ timezone: string
1474
+ user_id: string
1475
+ updated_by: string
1476
+ created_at: string // date-time
1477
+ updated_at: string // date-time
1478
+ }
1479
+ ```
1480
+
1481
+ ### `UpsertWorkingHoursBody`
1482
+
1483
+ Full replacement of the working-hours record. All weekdays are required; an empty array means a day off. Users without a working-hours record are treated as always available.
1484
+
1485
+ ```ts
1486
+ type UpsertWorkingHoursBody = {
1487
+ monday: Array<{
1488
+ start: string
1489
+ end: string
1490
+ }>
1491
+ tuesday: Array<{
1492
+ start: string
1493
+ end: string
1494
+ }>
1495
+ wednesday: Array<{
1496
+ start: string
1497
+ end: string
1498
+ }>
1499
+ thursday: Array<{
1500
+ start: string
1501
+ end: string
1502
+ }>
1503
+ friday: Array<{
1504
+ start: string
1505
+ end: string
1506
+ }>
1507
+ saturday: Array<{
1508
+ start: string
1509
+ end: string
1510
+ }>
1511
+ sunday: Array<{
1512
+ start: string
1513
+ end: string
1514
+ }>
1515
+ timezone?: string
1516
+ }
1517
+ ```
1518
+
1519
+ ### `TimeWindow`
1520
+
1521
+ A wall-clock working window within a single day.
1522
+
1523
+ ```ts
1524
+ type TimeWindow = {
1525
+ start: string
1526
+ end: string
1527
+ }
1528
+ ```
1529
+
1222
1530
  ### `Calendar`
1223
1531
 
1224
1532
  ```ts
package/docs/entity.md CHANGED
@@ -190,6 +190,7 @@ const { data } = await entityClient.listSchemas(...)
190
190
  - [`LocationConditionDefinition`](#locationconditiondefinition)
191
191
  - [`ConditionDefinition`](#conditiondefinition)
192
192
  - [`EntitySlug`](#entityslug)
193
+ - [`AdjustInstallmentCapabilityConfig`](#adjustinstallmentcapabilityconfig)
193
194
  - [`EntityCapability`](#entitycapability)
194
195
  - [`EntityCapabilityWithCompositeID`](#entitycapabilitywithcompositeid)
195
196
  - [`EntityViewDisabled`](#entityviewdisabled)
@@ -497,6 +498,7 @@ const { data } = await client.getSchema({
497
498
  "_purpose": ["taxonomy-slug:classification-slug"],
498
499
  "_manifest": ["123e4567-e89b-12d3-a456-426614174000"],
499
500
  "app_id": "123e4567-e89b-12d3-a456-426614174000",
501
+ "adjust_installment": {},
500
502
  "ui_config": {},
501
503
  "ui_hooks": [],
502
504
  "feature_flag": "FF_MY_FEATURE_FLAG",
@@ -649,6 +651,7 @@ const { data } = await client.putSchema(
649
651
  _purpose: ['taxonomy-slug:classification-slug'],
650
652
  _manifest: ['123e4567-e89b-12d3-a456-426614174000'],
651
653
  app_id: '123e4567-e89b-12d3-a456-426614174000',
654
+ adjust_installment: { /* ... */ },
652
655
  ui_config: { /* ... */ },
653
656
  ui_hooks: [ /* ... */ ],
654
657
  feature_flag: 'FF_MY_FEATURE_FLAG',
@@ -801,6 +804,7 @@ const { data } = await client.putSchema(
801
804
  "_purpose": ["taxonomy-slug:classification-slug"],
802
805
  "_manifest": ["123e4567-e89b-12d3-a456-426614174000"],
803
806
  "app_id": "123e4567-e89b-12d3-a456-426614174000",
807
+ "adjust_installment": {},
804
808
  "ui_config": {},
805
809
  "ui_hooks": [],
806
810
  "feature_flag": "FF_MY_FEATURE_FLAG",
@@ -1245,6 +1249,7 @@ const { data } = await client.freezeSchema(
1245
1249
  "_purpose": ["taxonomy-slug:classification-slug"],
1246
1250
  "_manifest": ["123e4567-e89b-12d3-a456-426614174000"],
1247
1251
  "app_id": "123e4567-e89b-12d3-a456-426614174000",
1252
+ "adjust_installment": {},
1248
1253
  "ui_config": {},
1249
1254
  "ui_hooks": [],
1250
1255
  "feature_flag": "FF_MY_FEATURE_FLAG",
@@ -1411,6 +1416,7 @@ const { data } = await client.unfreezeSchema({
1411
1416
  "_purpose": ["taxonomy-slug:classification-slug"],
1412
1417
  "_manifest": ["123e4567-e89b-12d3-a456-426614174000"],
1413
1418
  "app_id": "123e4567-e89b-12d3-a456-426614174000",
1419
+ "adjust_installment": {},
1414
1420
  "ui_config": {},
1415
1421
  "ui_hooks": [],
1416
1422
  "feature_flag": "FF_MY_FEATURE_FLAG",
@@ -1515,6 +1521,7 @@ const { data } = await client.listAvailableCapabilities({
1515
1521
  "_purpose": ["taxonomy-slug:classification-slug"],
1516
1522
  "_manifest": ["123e4567-e89b-12d3-a456-426614174000"],
1517
1523
  "app_id": "123e4567-e89b-12d3-a456-426614174000",
1524
+ "adjust_installment": {},
1518
1525
  "ui_config": {},
1519
1526
  "ui_hooks": [],
1520
1527
  "feature_flag": "FF_MY_FEATURE_FLAG",
@@ -5160,6 +5167,9 @@ const { data } = await client.createSchemaCapability(
5160
5167
  _purpose: ['taxonomy-slug:classification-slug'],
5161
5168
  _manifest: ['123e4567-e89b-12d3-a456-426614174000'],
5162
5169
  app_id: '123e4567-e89b-12d3-a456-426614174000',
5170
+ adjust_installment: {
5171
+ journey_id: 'adjust-installment-flow'
5172
+ },
5163
5173
  ui_config: {
5164
5174
  is_filterable: true
5165
5175
  },
@@ -5289,6 +5299,9 @@ const { data } = await client.createSchemaCapability(
5289
5299
  "_purpose": ["taxonomy-slug:classification-slug"],
5290
5300
  "_manifest": ["123e4567-e89b-12d3-a456-426614174000"],
5291
5301
  "app_id": "123e4567-e89b-12d3-a456-426614174000",
5302
+ "adjust_installment": {
5303
+ "journey_id": "adjust-installment-flow"
5304
+ },
5292
5305
  "ui_config": {
5293
5306
  "is_filterable": true
5294
5307
  },
@@ -5433,6 +5446,9 @@ const { data } = await client.getSchemaCapability({
5433
5446
  "_purpose": ["taxonomy-slug:classification-slug"],
5434
5447
  "_manifest": ["123e4567-e89b-12d3-a456-426614174000"],
5435
5448
  "app_id": "123e4567-e89b-12d3-a456-426614174000",
5449
+ "adjust_installment": {
5450
+ "journey_id": "adjust-installment-flow"
5451
+ },
5436
5452
  "ui_config": {
5437
5453
  "is_filterable": true
5438
5454
  },
@@ -5573,6 +5589,9 @@ const { data } = await client.putSchemaCapability(
5573
5589
  _purpose: ['taxonomy-slug:classification-slug'],
5574
5590
  _manifest: ['123e4567-e89b-12d3-a456-426614174000'],
5575
5591
  app_id: '123e4567-e89b-12d3-a456-426614174000',
5592
+ adjust_installment: {
5593
+ journey_id: 'adjust-installment-flow'
5594
+ },
5576
5595
  ui_config: {
5577
5596
  is_filterable: true
5578
5597
  },
@@ -5702,6 +5721,9 @@ const { data } = await client.putSchemaCapability(
5702
5721
  "_purpose": ["taxonomy-slug:classification-slug"],
5703
5722
  "_manifest": ["123e4567-e89b-12d3-a456-426614174000"],
5704
5723
  "app_id": "123e4567-e89b-12d3-a456-426614174000",
5724
+ "adjust_installment": {
5725
+ "journey_id": "adjust-installment-flow"
5726
+ },
5705
5727
  "ui_config": {
5706
5728
  "is_filterable": true
5707
5729
  },
@@ -5846,6 +5868,9 @@ const { data } = await client.deleteSchemaCapability({
5846
5868
  "_purpose": ["taxonomy-slug:classification-slug"],
5847
5869
  "_manifest": ["123e4567-e89b-12d3-a456-426614174000"],
5848
5870
  "app_id": "123e4567-e89b-12d3-a456-426614174000",
5871
+ "adjust_installment": {
5872
+ "journey_id": "adjust-installment-flow"
5873
+ },
5849
5874
  "ui_config": {
5850
5875
  "is_filterable": true
5851
5876
  },
@@ -9511,6 +9536,16 @@ URL-friendly identifier for the entity schema
9511
9536
  type EntitySlug = string
9512
9537
  ```
9513
9538
 
9539
+ ### `AdjustInstallmentCapabilityConfig`
9540
+
9541
+ Configuration for adjusting a contract installment through a Journey.
9542
+
9543
+ ```ts
9544
+ type AdjustInstallmentCapabilityConfig = {
9545
+ journey_id: string
9546
+ }
9547
+ ```
9548
+
9514
9549
  ### `EntityCapability`
9515
9550
 
9516
9551
  Capabilities the Entity has. Turn features on/off for entities.
package/docs/file.md CHANGED
@@ -417,6 +417,7 @@ const { data } = await client.downloadFile({
417
417
  id: '123e4567-e89b-12d3-a456-426614174000',
418
418
  version: 1,
419
419
  attachment: true,
420
+ x-track: 'example',
420
421
  })
421
422
  ```
422
423
 
package/docs/user.md CHANGED
@@ -2025,7 +2025,8 @@ const { data } = await client.getUserLoginParametersV2({
2025
2025
  "cognito_oauth_domain": "epilot-org-123",
2026
2026
  "cognito_oauth_scopes": ["openid"],
2027
2027
  "oauth_response_type": "code",
2028
- "passkey_enabled": true
2028
+ "passkey_enabled": true,
2029
+ "passkeys_registered": true
2029
2030
  }
2030
2031
  ]
2031
2032
  }
@@ -2124,7 +2125,8 @@ const { data } = await client.resolveDiscoverableCredential(
2124
2125
  "cognito_oauth_domain": "epilot-org-123",
2125
2126
  "cognito_oauth_scopes": ["openid"],
2126
2127
  "oauth_response_type": "code",
2127
- "passkey_enabled": true
2128
+ "passkey_enabled": true,
2129
+ "passkeys_registered": true
2128
2130
  }
2129
2131
  ]
2130
2132
  }
@@ -2433,7 +2435,8 @@ const { data } = await client.getUserLoginParameters({
2433
2435
  "cognito_oauth_domain": "epilot-org-123",
2434
2436
  "cognito_oauth_scopes": ["openid"],
2435
2437
  "oauth_response_type": "code",
2436
- "passkey_enabled": true
2438
+ "passkey_enabled": true,
2439
+ "passkeys_registered": true
2437
2440
  }
2438
2441
  ]
2439
2442
  }
@@ -2728,6 +2731,7 @@ type LoginParameters = {
2728
2731
  cognito_oauth_scopes?: string[]
2729
2732
  oauth_response_type?: "code" | "token"
2730
2733
  passkey_enabled?: boolean
2734
+ passkeys_registered?: boolean
2731
2735
  }
2732
2736
  ```
2733
2737
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/sdk",
3
- "version": "2.16.1",
3
+ "version": "2.16.3",
4
4
  "description": "JavaScript/TypeScript SDK for epilot APIs",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",