@epilot/sdk 2.16.1 → 2.16.2

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 (138) 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/dist/apis/access-token.cjs +6 -6
  5. package/dist/apis/access-token.js +1 -1
  6. package/dist/apis/address-suggestions.cjs +6 -6
  7. package/dist/apis/address-suggestions.js +1 -1
  8. package/dist/apis/address.cjs +6 -6
  9. package/dist/apis/address.js +1 -1
  10. package/dist/apis/ai-agents.cjs +6 -6
  11. package/dist/apis/ai-agents.js +1 -1
  12. package/dist/apis/app.cjs +6 -6
  13. package/dist/apis/app.js +1 -1
  14. package/dist/apis/audit-logs.cjs +6 -6
  15. package/dist/apis/audit-logs.js +1 -1
  16. package/dist/apis/automation.cjs +6 -6
  17. package/dist/apis/automation.js +1 -1
  18. package/dist/apis/billing.cjs +6 -6
  19. package/dist/apis/billing.js +1 -1
  20. package/dist/apis/blueprint-manifest.cjs +6 -6
  21. package/dist/apis/blueprint-manifest.js +1 -1
  22. package/dist/apis/calendar.cjs +8 -8
  23. package/dist/apis/calendar.d.cts +2 -2
  24. package/dist/apis/calendar.d.ts +2 -2
  25. package/dist/apis/calendar.js +2 -2
  26. package/dist/apis/configuration-hub.cjs +6 -6
  27. package/dist/apis/configuration-hub.js +1 -1
  28. package/dist/apis/consent.cjs +6 -6
  29. package/dist/apis/consent.js +1 -1
  30. package/dist/apis/customer-portal.cjs +6 -6
  31. package/dist/apis/customer-portal.js +1 -1
  32. package/dist/apis/dashboard.cjs +6 -6
  33. package/dist/apis/dashboard.js +1 -1
  34. package/dist/apis/data-governance.cjs +6 -6
  35. package/dist/apis/data-governance.js +1 -1
  36. package/dist/apis/deduplication.cjs +6 -6
  37. package/dist/apis/deduplication.js +1 -1
  38. package/dist/apis/design.cjs +6 -6
  39. package/dist/apis/design.js +1 -1
  40. package/dist/apis/document.cjs +6 -6
  41. package/dist/apis/document.js +1 -1
  42. package/dist/apis/email-settings.cjs +6 -6
  43. package/dist/apis/email-settings.js +1 -1
  44. package/dist/apis/email-template.cjs +6 -6
  45. package/dist/apis/email-template.js +1 -1
  46. package/dist/apis/entity-mapping.cjs +6 -6
  47. package/dist/apis/entity-mapping.js +1 -1
  48. package/dist/apis/entity.cjs +6 -6
  49. package/dist/apis/entity.d.cts +2 -2
  50. package/dist/apis/entity.d.ts +2 -2
  51. package/dist/apis/entity.js +1 -1
  52. package/dist/apis/environments.cjs +6 -6
  53. package/dist/apis/environments.js +1 -1
  54. package/dist/apis/event-catalog.cjs +6 -6
  55. package/dist/apis/event-catalog.js +1 -1
  56. package/dist/apis/file.cjs +6 -6
  57. package/dist/apis/file.js +1 -1
  58. package/dist/apis/iban.cjs +6 -6
  59. package/dist/apis/iban.js +1 -1
  60. package/dist/apis/integration-toolkit.cjs +6 -6
  61. package/dist/apis/integration-toolkit.js +1 -1
  62. package/dist/apis/journey.cjs +6 -6
  63. package/dist/apis/journey.js +1 -1
  64. package/dist/apis/kanban.cjs +6 -6
  65. package/dist/apis/kanban.js +1 -1
  66. package/dist/apis/message.cjs +6 -6
  67. package/dist/apis/message.js +1 -1
  68. package/dist/apis/metering.cjs +6 -6
  69. package/dist/apis/metering.js +1 -1
  70. package/dist/apis/notes.cjs +6 -6
  71. package/dist/apis/notes.js +1 -1
  72. package/dist/apis/notification.cjs +6 -6
  73. package/dist/apis/notification.js +1 -1
  74. package/dist/apis/organization.cjs +6 -6
  75. package/dist/apis/organization.js +1 -1
  76. package/dist/apis/partner-directory.cjs +6 -6
  77. package/dist/apis/partner-directory.js +1 -1
  78. package/dist/apis/permissions.cjs +6 -6
  79. package/dist/apis/permissions.js +1 -1
  80. package/dist/apis/pricing-tier.cjs +6 -6
  81. package/dist/apis/pricing-tier.js +1 -1
  82. package/dist/apis/pricing.cjs +6 -6
  83. package/dist/apis/pricing.js +1 -1
  84. package/dist/apis/purpose.cjs +6 -6
  85. package/dist/apis/purpose.js +1 -1
  86. package/dist/apis/query.cjs +6 -6
  87. package/dist/apis/query.js +1 -1
  88. package/dist/apis/sandbox.cjs +6 -6
  89. package/dist/apis/sandbox.js +1 -1
  90. package/dist/apis/sharing.cjs +6 -6
  91. package/dist/apis/sharing.js +1 -1
  92. package/dist/apis/snapshot.cjs +6 -6
  93. package/dist/apis/snapshot.js +1 -1
  94. package/dist/apis/submission.cjs +6 -6
  95. package/dist/apis/submission.js +1 -1
  96. package/dist/apis/target.cjs +6 -6
  97. package/dist/apis/target.js +1 -1
  98. package/dist/apis/targeting.cjs +6 -6
  99. package/dist/apis/targeting.js +1 -1
  100. package/dist/apis/template-variables.cjs +6 -6
  101. package/dist/apis/template-variables.js +1 -1
  102. package/dist/apis/user.cjs +6 -6
  103. package/dist/apis/user.js +1 -1
  104. package/dist/apis/validation-rules.cjs +6 -6
  105. package/dist/apis/validation-rules.js +1 -1
  106. package/dist/apis/webhooks.cjs +6 -6
  107. package/dist/apis/webhooks.js +1 -1
  108. package/dist/apis/workflow-definition.cjs +6 -6
  109. package/dist/apis/workflow-definition.js +1 -1
  110. package/dist/apis/workflow.cjs +6 -6
  111. package/dist/apis/workflow.js +1 -1
  112. package/dist/calendar-GJ7UX6PX.cjs +7 -0
  113. package/dist/calendar-W42TSLFV.js +7 -0
  114. package/dist/{calendar-runtime-25OCRSQL.js → calendar-runtime-KZPDEYT7.js} +1 -1
  115. package/dist/{calendar-runtime-IOURSAQT.cjs → calendar-runtime-WMR6GL6I.cjs} +2 -2
  116. package/dist/{calendar.d-DQaUSVGa.d.cts → calendar.d-Cinz1Vzo.d.cts} +315 -5
  117. package/dist/{calendar.d-DQaUSVGa.d.ts → calendar.d-Cinz1Vzo.d.ts} +315 -5
  118. package/dist/chunk-HBJJOW2M.cjs +14 -0
  119. package/dist/{chunk-KFR23DXN.js → chunk-MK6ZFMSY.js} +3 -3
  120. package/dist/{chunk-K7MOYBJB.cjs → chunk-NBEPUBSZ.cjs} +3 -3
  121. package/dist/chunk-QEAIJQTE.js +14 -0
  122. package/dist/entity-IZHQB3JX.js +7 -0
  123. package/dist/entity-MYDUQBEE.cjs +7 -0
  124. package/dist/{entity.d-CmQvgvyi.d.cts → entity.d-CaFNmDfj.d.cts} +33 -3
  125. package/dist/{entity.d-CmQvgvyi.d.ts → entity.d-CaFNmDfj.d.ts} +33 -3
  126. package/dist/index.cjs +10 -10
  127. package/dist/index.d.cts +2 -2
  128. package/dist/index.d.ts +2 -2
  129. package/dist/index.js +2 -2
  130. package/docs/calendar.md +322 -14
  131. package/docs/entity.md +35 -0
  132. package/package.json +1 -1
  133. package/dist/calendar-QAOHESA6.cjs +0 -7
  134. package/dist/calendar-ZKM3KI45.js +0 -7
  135. package/dist/chunk-EWGYF4WD.js +0 -14
  136. package/dist/chunk-IFELBEXN.cjs +0 -14
  137. package/dist/entity-K5HYURU7.js +0 -7
  138. package/dist/entity-V5375UNT.cjs +0 -7
@@ -59,11 +59,11 @@ declare namespace Components {
59
59
  absence_adjustment_id?: string;
60
60
  reason?: string | null;
61
61
  }
62
- export type AbsenceIntervalSource = "calendar_event" | "absence_adjustment";
62
+ export type AbsenceIntervalSource = "calendar_event" | "absence_adjustment" | "working_hours";
63
63
  /**
64
64
  * Calendar status targeted by the absence adjustment.
65
65
  */
66
- export type AbsenceStatus = "busy" | "oof";
66
+ export type AbsenceStatus = "oof" | "busy";
67
67
  /**
68
68
  * Optional producer-defined reference stored with an absence adjustment.
69
69
  */
@@ -670,6 +670,10 @@ declare namespace Components {
670
670
  * Include busy inputs in addition to out-of-office absence. Defaults to false.
671
671
  */
672
672
  include_busy?: boolean;
673
+ /**
674
+ * At what granularity working hours contribute to absence. "time" (default): all time outside a user's working windows counts as absent. "day": only full days with no working windows count as absent (whole-day granularity, used by thread assignment). Users without a working-hours record never produce working-hours intervals.
675
+ */
676
+ working_hours_granularity?: "time" | "day";
673
677
  }
674
678
  export interface SearchNowAbsenceBody {
675
679
  /**
@@ -981,6 +985,10 @@ declare namespace Components {
981
985
  * Include busy inputs in addition to out-of-office absence. Defaults to false.
982
986
  */
983
987
  include_busy?: boolean;
988
+ /**
989
+ * At what granularity working hours contribute to absence. "time" (default): all time outside a user's working windows counts as absent. "day": only full days with no working windows count as absent (whole-day granularity, used by thread assignment). Users without a working-hours record never produce working-hours intervals.
990
+ */
991
+ working_hours_granularity?: "time" | "day";
984
992
  }
985
993
  export type Sensitivity = "normal" | "personal" | "private" | "confidential";
986
994
  export interface ShareEventBody {
@@ -989,6 +997,195 @@ declare namespace Components {
989
997
  */
990
998
  user_id: string;
991
999
  }
1000
+ /**
1001
+ * A wall-clock working window within a single day.
1002
+ */
1003
+ export interface TimeWindow {
1004
+ /**
1005
+ * 24h wall-clock time ("HH:mm") in the timezone of the working-hours record.
1006
+ */
1007
+ start: string; // ^([01]\d|2[0-3]):[0-5]\d$
1008
+ /**
1009
+ * 24h wall-clock time ("HH:mm") in the timezone of the working-hours record.
1010
+ */
1011
+ end: string; // ^([01]\d|2[0-3]):[0-5]\d$
1012
+ }
1013
+ /**
1014
+ * 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.
1015
+ */
1016
+ export interface UpsertWorkingHoursBody {
1017
+ /**
1018
+ * Working windows for a day, sorted and non-overlapping. An empty array means a day off.
1019
+ */
1020
+ monday: [
1021
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1022
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1023
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1024
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1025
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1026
+ /* A wall-clock working window within a single day. */ TimeWindow?
1027
+ ];
1028
+ /**
1029
+ * Working windows for a day, sorted and non-overlapping. An empty array means a day off.
1030
+ */
1031
+ tuesday: [
1032
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1033
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1034
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1035
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1036
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1037
+ /* A wall-clock working window within a single day. */ TimeWindow?
1038
+ ];
1039
+ /**
1040
+ * Working windows for a day, sorted and non-overlapping. An empty array means a day off.
1041
+ */
1042
+ wednesday: [
1043
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1044
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1045
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1046
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1047
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1048
+ /* A wall-clock working window within a single day. */ TimeWindow?
1049
+ ];
1050
+ /**
1051
+ * Working windows for a day, sorted and non-overlapping. An empty array means a day off.
1052
+ */
1053
+ thursday: [
1054
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1055
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1056
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1057
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1058
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1059
+ /* A wall-clock working window within a single day. */ TimeWindow?
1060
+ ];
1061
+ /**
1062
+ * Working windows for a day, sorted and non-overlapping. An empty array means a day off.
1063
+ */
1064
+ friday: [
1065
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1066
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1067
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1068
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1069
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1070
+ /* A wall-clock working window within a single day. */ TimeWindow?
1071
+ ];
1072
+ /**
1073
+ * Working windows for a day, sorted and non-overlapping. An empty array means a day off.
1074
+ */
1075
+ saturday: [
1076
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1077
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1078
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1079
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1080
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1081
+ /* A wall-clock working window within a single day. */ TimeWindow?
1082
+ ];
1083
+ /**
1084
+ * Working windows for a day, sorted and non-overlapping. An empty array means a day off.
1085
+ */
1086
+ sunday: [
1087
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1088
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1089
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1090
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1091
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1092
+ /* A wall-clock working window within a single day. */ TimeWindow?
1093
+ ];
1094
+ /**
1095
+ * IANA timezone the working windows are expressed in. Defaults to Europe/Berlin.
1096
+ */
1097
+ timezone?: string;
1098
+ }
1099
+ /**
1100
+ * Recurring weekly working hours of a user. The absence of a record means the user is treated as always available.
1101
+ */
1102
+ export interface WorkingHours {
1103
+ /**
1104
+ * Working windows for a day, sorted and non-overlapping. An empty array means a day off.
1105
+ */
1106
+ monday: [
1107
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1108
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1109
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1110
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1111
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1112
+ /* A wall-clock working window within a single day. */ TimeWindow?
1113
+ ];
1114
+ /**
1115
+ * Working windows for a day, sorted and non-overlapping. An empty array means a day off.
1116
+ */
1117
+ tuesday: [
1118
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1119
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1120
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1121
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1122
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1123
+ /* A wall-clock working window within a single day. */ TimeWindow?
1124
+ ];
1125
+ /**
1126
+ * Working windows for a day, sorted and non-overlapping. An empty array means a day off.
1127
+ */
1128
+ wednesday: [
1129
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1130
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1131
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1132
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1133
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1134
+ /* A wall-clock working window within a single day. */ TimeWindow?
1135
+ ];
1136
+ /**
1137
+ * Working windows for a day, sorted and non-overlapping. An empty array means a day off.
1138
+ */
1139
+ thursday: [
1140
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1141
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1142
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1143
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1144
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1145
+ /* A wall-clock working window within a single day. */ TimeWindow?
1146
+ ];
1147
+ /**
1148
+ * Working windows for a day, sorted and non-overlapping. An empty array means a day off.
1149
+ */
1150
+ friday: [
1151
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1152
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1153
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1154
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1155
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1156
+ /* A wall-clock working window within a single day. */ TimeWindow?
1157
+ ];
1158
+ /**
1159
+ * Working windows for a day, sorted and non-overlapping. An empty array means a day off.
1160
+ */
1161
+ saturday: [
1162
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1163
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1164
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1165
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1166
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1167
+ /* A wall-clock working window within a single day. */ TimeWindow?
1168
+ ];
1169
+ /**
1170
+ * Working windows for a day, sorted and non-overlapping. An empty array means a day off.
1171
+ */
1172
+ sunday: [
1173
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1174
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1175
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1176
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1177
+ /* A wall-clock working window within a single day. */ TimeWindow?,
1178
+ /* A wall-clock working window within a single day. */ TimeWindow?
1179
+ ];
1180
+ /**
1181
+ * IANA timezone the working windows are expressed in.
1182
+ */
1183
+ timezone: string;
1184
+ user_id: string;
1185
+ updated_by: string;
1186
+ created_at: string; // date-time
1187
+ updated_at: string; // date-time
1188
+ }
992
1189
  }
993
1190
  }
994
1191
  declare namespace Paths {
@@ -1086,6 +1283,19 @@ declare namespace Paths {
1086
1283
  export type $502 = Components.Schemas.Error;
1087
1284
  }
1088
1285
  }
1286
+ namespace DeleteWorkingHours {
1287
+ namespace Parameters {
1288
+ export type UserId = string;
1289
+ }
1290
+ export interface PathParameters {
1291
+ user_id: Parameters.UserId;
1292
+ }
1293
+ namespace Responses {
1294
+ export interface $204 {
1295
+ }
1296
+ export type $404 = Components.Schemas.Error;
1297
+ }
1298
+ }
1089
1299
  namespace GetAbsenceAdjustment {
1090
1300
  namespace Parameters {
1091
1301
  export type AdjustmentId = string;
@@ -1139,6 +1349,10 @@ declare namespace Paths {
1139
1349
  */
1140
1350
  export type To = string; // date-time
1141
1351
  export type UserId = string;
1352
+ /**
1353
+ * At what granularity working hours contribute to absence. "time" (default): all time outside a user's working windows counts as absent. "day": only full days with no working windows count as absent (whole-day granularity, used by thread assignment). Users without a working-hours record never produce working-hours intervals.
1354
+ */
1355
+ export type WorkingHoursGranularity = "time" | "day";
1142
1356
  }
1143
1357
  export interface PathParameters {
1144
1358
  user_id: Parameters.UserId;
@@ -1147,6 +1361,7 @@ declare namespace Paths {
1147
1361
  from: /* Start of the time window (inclusive). Maximum window: 31 days. */ Parameters.From /* date-time */;
1148
1362
  to: /* End of the time window (exclusive). Must be after from. */ Parameters.To /* date-time */;
1149
1363
  include_busy?: /* Include busy inputs in addition to out-of-office absence. Defaults to false. */ Parameters.IncludeBusy;
1364
+ working_hours_granularity?: /* At what granularity working hours contribute to absence. "time" (default): all time outside a user's working windows counts as absent. "day": only full days with no working windows count as absent (whole-day granularity, used by thread assignment). Users without a working-hours record never produce working-hours intervals. */ Parameters.WorkingHoursGranularity;
1150
1365
  }
1151
1366
  namespace Responses {
1152
1367
  export interface $200 {
@@ -1163,6 +1378,18 @@ declare namespace Paths {
1163
1378
  export type $400 = Components.Schemas.Error;
1164
1379
  }
1165
1380
  }
1381
+ namespace GetWorkingHours {
1382
+ namespace Parameters {
1383
+ export type UserId = string;
1384
+ }
1385
+ export interface PathParameters {
1386
+ user_id: Parameters.UserId;
1387
+ }
1388
+ namespace Responses {
1389
+ export type $200 = /* Recurring weekly working hours of a user. The absence of a record means the user is treated as always available. */ Components.Schemas.WorkingHours;
1390
+ export type $404 = Components.Schemas.Error;
1391
+ }
1392
+ }
1166
1393
  namespace ListAbsenceAdjustments {
1167
1394
  namespace Parameters {
1168
1395
  /**
@@ -1276,11 +1503,16 @@ declare namespace Paths {
1276
1503
  * End of the time window (exclusive). Must be after from.
1277
1504
  */
1278
1505
  export type To = string; // date-time
1506
+ /**
1507
+ * At what granularity working hours contribute to absence. "time" (default): all time outside a user's working windows counts as absent. "day": only full days with no working windows count as absent (whole-day granularity, used by thread assignment). Users without a working-hours record never produce working-hours intervals.
1508
+ */
1509
+ export type WorkingHoursGranularity = "time" | "day";
1279
1510
  }
1280
1511
  export interface QueryParameters {
1281
1512
  from: /* Start of the time window (inclusive). Maximum window: 31 days. */ Parameters.From /* date-time */;
1282
1513
  to: /* End of the time window (exclusive). Must be after from. */ Parameters.To /* date-time */;
1283
1514
  include_busy?: /* Include busy inputs in addition to out-of-office absence. Defaults to false. */ Parameters.IncludeBusy;
1515
+ working_hours_granularity?: /* At what granularity working hours contribute to absence. "time" (default): all time outside a user's working windows counts as absent. "day": only full days with no working windows count as absent (whole-day granularity, used by thread assignment). Users without a working-hours record never produce working-hours intervals. */ Parameters.WorkingHoursGranularity;
1284
1516
  query?: /* Optional user directory search query. */ Parameters.Query;
1285
1517
  limit?: /* Maximum users to return. */ Parameters.Limit;
1286
1518
  offset?: /* User directory offset. */ Parameters.Offset;
@@ -1334,6 +1566,19 @@ declare namespace Paths {
1334
1566
  export type $404 = Components.Schemas.Error;
1335
1567
  }
1336
1568
  }
1569
+ namespace PutWorkingHours {
1570
+ namespace Parameters {
1571
+ export type UserId = string;
1572
+ }
1573
+ export interface PathParameters {
1574
+ user_id: Parameters.UserId;
1575
+ }
1576
+ export type RequestBody = /* 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. */ Components.Schemas.UpsertWorkingHoursBody;
1577
+ namespace Responses {
1578
+ export type $200 = /* Recurring weekly working hours of a user. The absence of a record means the user is treated as always available. */ Components.Schemas.WorkingHours;
1579
+ export type $400 = Components.Schemas.Error;
1580
+ }
1581
+ }
1337
1582
  namespace SearchAbsence {
1338
1583
  export type RequestBody = Components.Schemas.SearchAbsenceBody;
1339
1584
  namespace Responses {
@@ -1526,6 +1771,36 @@ interface OperationMethods {
1526
1771
  data?: any,
1527
1772
  config?: AxiosRequestConfig
1528
1773
  ): OperationResponse<Paths.GetUserAbsence.Responses.$200>
1774
+ /**
1775
+ * getWorkingHours - getWorkingHours
1776
+ *
1777
+ * Get the recurring weekly working hours of a user. 404 means no record exists and the user is treated as always available.
1778
+ */
1779
+ 'getWorkingHours'(
1780
+ parameters?: Parameters<Paths.GetWorkingHours.PathParameters> | null,
1781
+ data?: any,
1782
+ config?: AxiosRequestConfig
1783
+ ): OperationResponse<Paths.GetWorkingHours.Responses.$200>
1784
+ /**
1785
+ * putWorkingHours - putWorkingHours
1786
+ *
1787
+ * Create or fully replace the working hours of a user in the caller organization. This is a full replace, not a merge.
1788
+ */
1789
+ 'putWorkingHours'(
1790
+ parameters?: Parameters<Paths.PutWorkingHours.PathParameters> | null,
1791
+ data?: Paths.PutWorkingHours.RequestBody,
1792
+ config?: AxiosRequestConfig
1793
+ ): OperationResponse<Paths.PutWorkingHours.Responses.$200>
1794
+ /**
1795
+ * deleteWorkingHours - deleteWorkingHours
1796
+ *
1797
+ * Delete the working hours of a user. The user is then treated as always available again.
1798
+ */
1799
+ 'deleteWorkingHours'(
1800
+ parameters?: Parameters<Paths.DeleteWorkingHours.PathParameters> | null,
1801
+ data?: any,
1802
+ config?: AxiosRequestConfig
1803
+ ): OperationResponse<Paths.DeleteWorkingHours.Responses.$204>
1529
1804
  /**
1530
1805
  * listCalendars - listCalendars
1531
1806
  *
@@ -1597,7 +1872,7 @@ interface OperationMethods {
1597
1872
  * Handles both the subscription-validation handshake (echoes the
1598
1873
  * `validationToken` query param as `text/plain`) and change notifications.
1599
1874
  * Each notification is trusted only after its HMAC-signed `clientState` is
1600
- * verified and matched against the stored subscription identity is never
1875
+ * verified and matched against the stored subscription identity is never
1601
1876
  * read from the request body.
1602
1877
  */
1603
1878
  'outlookWebhook'(
@@ -1810,6 +2085,38 @@ interface PathsDictionary {
1810
2085
  config?: AxiosRequestConfig
1811
2086
  ): OperationResponse<Paths.GetUserAbsence.Responses.$200>
1812
2087
  }
2088
+ ['/v1/calendar/working-hours/users/{user_id}']: {
2089
+ /**
2090
+ * getWorkingHours - getWorkingHours
2091
+ *
2092
+ * Get the recurring weekly working hours of a user. 404 means no record exists and the user is treated as always available.
2093
+ */
2094
+ 'get'(
2095
+ parameters?: Parameters<Paths.GetWorkingHours.PathParameters> | null,
2096
+ data?: any,
2097
+ config?: AxiosRequestConfig
2098
+ ): OperationResponse<Paths.GetWorkingHours.Responses.$200>
2099
+ /**
2100
+ * putWorkingHours - putWorkingHours
2101
+ *
2102
+ * Create or fully replace the working hours of a user in the caller organization. This is a full replace, not a merge.
2103
+ */
2104
+ 'put'(
2105
+ parameters?: Parameters<Paths.PutWorkingHours.PathParameters> | null,
2106
+ data?: Paths.PutWorkingHours.RequestBody,
2107
+ config?: AxiosRequestConfig
2108
+ ): OperationResponse<Paths.PutWorkingHours.Responses.$200>
2109
+ /**
2110
+ * deleteWorkingHours - deleteWorkingHours
2111
+ *
2112
+ * Delete the working hours of a user. The user is then treated as always available again.
2113
+ */
2114
+ 'delete'(
2115
+ parameters?: Parameters<Paths.DeleteWorkingHours.PathParameters> | null,
2116
+ data?: any,
2117
+ config?: AxiosRequestConfig
2118
+ ): OperationResponse<Paths.DeleteWorkingHours.Responses.$204>
2119
+ }
1813
2120
  ['/v1/calendar']: {
1814
2121
  /**
1815
2122
  * listCalendars - listCalendars
@@ -1890,7 +2197,7 @@ interface PathsDictionary {
1890
2197
  * Handles both the subscription-validation handshake (echoes the
1891
2198
  * `validationToken` query param as `text/plain`) and change notifications.
1892
2199
  * Each notification is trusted only after its HMAC-signed `clientState` is
1893
- * verified and matched against the stored subscription identity is never
2200
+ * verified and matched against the stored subscription identity is never
1894
2201
  * read from the request body.
1895
2202
  */
1896
2203
  'post'(
@@ -2043,5 +2350,8 @@ type SearchAbsenceBody = Components.Schemas.SearchAbsenceBody;
2043
2350
  type SearchNowAbsenceBody = Components.Schemas.SearchNowAbsenceBody;
2044
2351
  type Sensitivity = Components.Schemas.Sensitivity;
2045
2352
  type ShareEventBody = Components.Schemas.ShareEventBody;
2353
+ type TimeWindow = Components.Schemas.TimeWindow;
2354
+ type UpsertWorkingHoursBody = Components.Schemas.UpsertWorkingHoursBody;
2355
+ type WorkingHours = Components.Schemas.WorkingHours;
2046
2356
 
2047
- export { type AbsenceAdjustment as A, type Client as C, type Error as E, type Importance as I, type OperationMethods as O, Paths as P, type ResponseStatus as R, type SearchAbsenceBody as S, Components as a, type PathsDictionary as b, type AbsenceInterval as c, type AbsenceIntervalSource as d, type AbsenceStatus as e, type AbsenceType as f, type AddOutlookCalendarRequest as g, type Attendee as h, type AvailableOutlookCalendar as i, type Calendar as j, type CalendarCreateBody as k, type CalendarEvent as l, type CalendarEventCreateBody as m, type CalendarEventPatchBody as n, type CalendarPatchBody as o, type CalendarSource as p, type CreateAbsenceAdjustmentBody as q, type EventSource as r, type EventStatus as s, type EventType as t, type ExternalCalendar as u, type PatchAbsenceAdjustmentBody as v, type Provider as w, type SearchNowAbsenceBody as x, type Sensitivity as y, type ShareEventBody as z };
2357
+ export { type AbsenceAdjustment as A, type Client as C, type Error as E, type Importance as I, type OperationMethods as O, Paths as P, type ResponseStatus as R, type SearchAbsenceBody as S, type TimeWindow as T, type UpsertWorkingHoursBody as U, type WorkingHours as W, Components as a, type PathsDictionary as b, type AbsenceInterval as c, type AbsenceIntervalSource as d, type AbsenceStatus as e, type AbsenceType as f, type AddOutlookCalendarRequest as g, type Attendee as h, type AvailableOutlookCalendar as i, type Calendar as j, type CalendarCreateBody as k, type CalendarEvent as l, type CalendarEventCreateBody as m, type CalendarEventPatchBody as n, type CalendarPatchBody as o, type CalendarSource as p, type CreateAbsenceAdjustmentBody as q, type EventSource as r, type EventStatus as s, type EventType as t, type ExternalCalendar as u, type PatchAbsenceAdjustmentBody as v, type Provider as w, type SearchNowAbsenceBody as x, type Sensitivity as y, type ShareEventBody as z };