@unified-api/typescript-sdk 2.80.5 → 2.80.7

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 (240) hide show
  1. package/README.md +26 -0
  2. package/examples/package-lock.json +1 -1
  3. package/funcs/hrisCreateHrisBenefit.d.ts +15 -0
  4. package/funcs/hrisCreateHrisBenefit.d.ts.map +1 -0
  5. package/funcs/hrisCreateHrisBenefit.js +122 -0
  6. package/funcs/hrisCreateHrisBenefit.js.map +1 -0
  7. package/funcs/hrisCreateHrisDeduction.d.ts +15 -0
  8. package/funcs/hrisCreateHrisDeduction.d.ts.map +1 -0
  9. package/funcs/hrisCreateHrisDeduction.js +122 -0
  10. package/funcs/hrisCreateHrisDeduction.js.map +1 -0
  11. package/funcs/hrisGetHrisBenefit.d.ts +15 -0
  12. package/funcs/hrisGetHrisBenefit.d.ts.map +1 -0
  13. package/funcs/hrisGetHrisBenefit.js +125 -0
  14. package/funcs/hrisGetHrisBenefit.js.map +1 -0
  15. package/funcs/hrisGetHrisDeduction.d.ts +15 -0
  16. package/funcs/hrisGetHrisDeduction.d.ts.map +1 -0
  17. package/funcs/hrisGetHrisDeduction.js +125 -0
  18. package/funcs/hrisGetHrisDeduction.js.map +1 -0
  19. package/funcs/hrisListHrisBenefits.d.ts +15 -0
  20. package/funcs/hrisListHrisBenefits.d.ts.map +1 -0
  21. package/funcs/hrisListHrisBenefits.js +129 -0
  22. package/funcs/hrisListHrisBenefits.js.map +1 -0
  23. package/funcs/hrisListHrisDeductions.d.ts +15 -0
  24. package/funcs/hrisListHrisDeductions.d.ts.map +1 -0
  25. package/funcs/hrisListHrisDeductions.js +132 -0
  26. package/funcs/hrisListHrisDeductions.js.map +1 -0
  27. package/funcs/hrisPatchHrisBenefit.d.ts +15 -0
  28. package/funcs/hrisPatchHrisBenefit.d.ts.map +1 -0
  29. package/funcs/hrisPatchHrisBenefit.js +126 -0
  30. package/funcs/hrisPatchHrisBenefit.js.map +1 -0
  31. package/funcs/hrisPatchHrisDeduction.d.ts +15 -0
  32. package/funcs/hrisPatchHrisDeduction.d.ts.map +1 -0
  33. package/funcs/hrisPatchHrisDeduction.js +126 -0
  34. package/funcs/hrisPatchHrisDeduction.js.map +1 -0
  35. package/funcs/hrisRemoveHrisBenefit.d.ts +14 -0
  36. package/funcs/hrisRemoveHrisBenefit.d.ts.map +1 -0
  37. package/funcs/hrisRemoveHrisBenefit.js +122 -0
  38. package/funcs/hrisRemoveHrisBenefit.js.map +1 -0
  39. package/funcs/hrisRemoveHrisDeduction.d.ts +14 -0
  40. package/funcs/hrisRemoveHrisDeduction.d.ts.map +1 -0
  41. package/funcs/hrisRemoveHrisDeduction.js +122 -0
  42. package/funcs/hrisRemoveHrisDeduction.js.map +1 -0
  43. package/funcs/hrisUpdateHrisBenefit.d.ts +15 -0
  44. package/funcs/hrisUpdateHrisBenefit.d.ts.map +1 -0
  45. package/funcs/hrisUpdateHrisBenefit.js +126 -0
  46. package/funcs/hrisUpdateHrisBenefit.js.map +1 -0
  47. package/funcs/hrisUpdateHrisDeduction.d.ts +15 -0
  48. package/funcs/hrisUpdateHrisDeduction.d.ts.map +1 -0
  49. package/funcs/hrisUpdateHrisDeduction.js +126 -0
  50. package/funcs/hrisUpdateHrisDeduction.js.map +1 -0
  51. package/funcs/messagingListMessagingMessages.js +1 -0
  52. package/funcs/messagingListMessagingMessages.js.map +1 -1
  53. package/funcs/ucGetUcCall.d.ts +15 -0
  54. package/funcs/ucGetUcCall.d.ts.map +1 -0
  55. package/funcs/ucGetUcCall.js +125 -0
  56. package/funcs/ucGetUcCall.js.map +1 -0
  57. package/jsr.json +1 -1
  58. package/lib/config.d.ts +2 -2
  59. package/lib/config.js +2 -2
  60. package/package.json +1 -1
  61. package/sdk/benefit.d.ts +30 -0
  62. package/sdk/benefit.d.ts.map +1 -0
  63. package/sdk/benefit.js +54 -0
  64. package/sdk/benefit.js.map +1 -0
  65. package/sdk/call.d.ts +4 -0
  66. package/sdk/call.d.ts.map +1 -1
  67. package/sdk/call.js +7 -0
  68. package/sdk/call.js.map +1 -1
  69. package/sdk/deduction.d.ts +30 -0
  70. package/sdk/deduction.d.ts.map +1 -0
  71. package/sdk/deduction.js +54 -0
  72. package/sdk/deduction.js.map +1 -0
  73. package/sdk/hris.d.ts +48 -0
  74. package/sdk/hris.d.ts.map +1 -1
  75. package/sdk/hris.js +84 -0
  76. package/sdk/hris.js.map +1 -1
  77. package/sdk/models/operations/createhrisbenefit.d.ts +31 -0
  78. package/sdk/models/operations/createhrisbenefit.d.ts.map +1 -0
  79. package/sdk/models/operations/createhrisbenefit.js +59 -0
  80. package/sdk/models/operations/createhrisbenefit.js.map +1 -0
  81. package/sdk/models/operations/createhrisdeduction.d.ts +31 -0
  82. package/sdk/models/operations/createhrisdeduction.d.ts.map +1 -0
  83. package/sdk/models/operations/createhrisdeduction.js +59 -0
  84. package/sdk/models/operations/createhrisdeduction.js.map +1 -0
  85. package/sdk/models/operations/gethrisbenefit.d.ts +30 -0
  86. package/sdk/models/operations/gethrisbenefit.d.ts.map +1 -0
  87. package/sdk/models/operations/gethrisbenefit.js +57 -0
  88. package/sdk/models/operations/gethrisbenefit.js.map +1 -0
  89. package/sdk/models/operations/gethrisdeduction.d.ts +30 -0
  90. package/sdk/models/operations/gethrisdeduction.d.ts.map +1 -0
  91. package/sdk/models/operations/gethrisdeduction.js +57 -0
  92. package/sdk/models/operations/gethrisdeduction.js.map +1 -0
  93. package/sdk/models/operations/getuccall.d.ts +30 -0
  94. package/sdk/models/operations/getuccall.d.ts.map +1 -0
  95. package/sdk/models/operations/getuccall.js +57 -0
  96. package/sdk/models/operations/getuccall.js.map +1 -0
  97. package/sdk/models/operations/index.d.ts +13 -0
  98. package/sdk/models/operations/index.d.ts.map +1 -1
  99. package/sdk/models/operations/index.js +13 -0
  100. package/sdk/models/operations/index.js.map +1 -1
  101. package/sdk/models/operations/listhrisbenefits.d.ts +48 -0
  102. package/sdk/models/operations/listhrisbenefits.d.ts.map +1 -0
  103. package/sdk/models/operations/listhrisbenefits.js +65 -0
  104. package/sdk/models/operations/listhrisbenefits.js.map +1 -0
  105. package/sdk/models/operations/listhrisdeductions.d.ts +63 -0
  106. package/sdk/models/operations/listhrisdeductions.d.ts.map +1 -0
  107. package/sdk/models/operations/listhrisdeductions.js +71 -0
  108. package/sdk/models/operations/listhrisdeductions.js.map +1 -0
  109. package/sdk/models/operations/listmessagingmessages.d.ts +6 -1
  110. package/sdk/models/operations/listmessagingmessages.d.ts.map +1 -1
  111. package/sdk/models/operations/listmessagingmessages.js +2 -0
  112. package/sdk/models/operations/listmessagingmessages.js.map +1 -1
  113. package/sdk/models/operations/patchhrisbenefit.d.ts +36 -0
  114. package/sdk/models/operations/patchhrisbenefit.d.ts.map +1 -0
  115. package/sdk/models/operations/patchhrisbenefit.js +60 -0
  116. package/sdk/models/operations/patchhrisbenefit.js.map +1 -0
  117. package/sdk/models/operations/patchhrisdeduction.d.ts +36 -0
  118. package/sdk/models/operations/patchhrisdeduction.d.ts.map +1 -0
  119. package/sdk/models/operations/patchhrisdeduction.js +60 -0
  120. package/sdk/models/operations/patchhrisdeduction.js.map +1 -0
  121. package/sdk/models/operations/removehrisbenefit.d.ts +30 -0
  122. package/sdk/models/operations/removehrisbenefit.d.ts.map +1 -0
  123. package/sdk/models/operations/removehrisbenefit.js +68 -0
  124. package/sdk/models/operations/removehrisbenefit.js.map +1 -0
  125. package/sdk/models/operations/removehrisdeduction.d.ts +30 -0
  126. package/sdk/models/operations/removehrisdeduction.d.ts.map +1 -0
  127. package/sdk/models/operations/removehrisdeduction.js +68 -0
  128. package/sdk/models/operations/removehrisdeduction.js.map +1 -0
  129. package/sdk/models/operations/updatehrisbenefit.d.ts +36 -0
  130. package/sdk/models/operations/updatehrisbenefit.d.ts.map +1 -0
  131. package/sdk/models/operations/updatehrisbenefit.js +60 -0
  132. package/sdk/models/operations/updatehrisbenefit.js.map +1 -0
  133. package/sdk/models/operations/updatehrisdeduction.d.ts +36 -0
  134. package/sdk/models/operations/updatehrisdeduction.d.ts.map +1 -0
  135. package/sdk/models/operations/updatehrisdeduction.js +60 -0
  136. package/sdk/models/operations/updatehrisdeduction.js.map +1 -0
  137. package/sdk/models/shared/accountinglineitem.d.ts +3 -0
  138. package/sdk/models/shared/accountinglineitem.d.ts.map +1 -1
  139. package/sdk/models/shared/accountinglineitem.js +3 -0
  140. package/sdk/models/shared/accountinglineitem.js.map +1 -1
  141. package/sdk/models/shared/accountingreference.d.ts +19 -0
  142. package/sdk/models/shared/accountingreference.d.ts.map +1 -0
  143. package/sdk/models/shared/accountingreference.js +60 -0
  144. package/sdk/models/shared/accountingreference.js.map +1 -0
  145. package/sdk/models/shared/hrisbenefit.d.ts +127 -0
  146. package/sdk/models/shared/hrisbenefit.d.ts.map +1 -0
  147. package/sdk/models/shared/hrisbenefit.js +181 -0
  148. package/sdk/models/shared/hrisbenefit.js.map +1 -0
  149. package/sdk/models/shared/hrisdeduction.d.ts +88 -0
  150. package/sdk/models/shared/hrisdeduction.d.ts.map +1 -0
  151. package/sdk/models/shared/hrisdeduction.js +148 -0
  152. package/sdk/models/shared/hrisdeduction.js.map +1 -0
  153. package/sdk/models/shared/hrispayslip.d.ts +5 -0
  154. package/sdk/models/shared/hrispayslip.d.ts.map +1 -1
  155. package/sdk/models/shared/hrispayslip.js +2 -0
  156. package/sdk/models/shared/hrispayslip.js.map +1 -1
  157. package/sdk/models/shared/index.d.ts +4 -0
  158. package/sdk/models/shared/index.d.ts.map +1 -1
  159. package/sdk/models/shared/index.js +4 -0
  160. package/sdk/models/shared/index.js.map +1 -1
  161. package/sdk/models/shared/integrationsupport.d.ts +27 -0
  162. package/sdk/models/shared/integrationsupport.d.ts.map +1 -1
  163. package/sdk/models/shared/integrationsupport.js +33 -5
  164. package/sdk/models/shared/integrationsupport.js.map +1 -1
  165. package/sdk/models/shared/messagingmessage.d.ts +2 -0
  166. package/sdk/models/shared/messagingmessage.d.ts.map +1 -1
  167. package/sdk/models/shared/messagingmessage.js +4 -0
  168. package/sdk/models/shared/messagingmessage.js.map +1 -1
  169. package/sdk/models/shared/propertyconnectionpermissions.d.ts +4 -0
  170. package/sdk/models/shared/propertyconnectionpermissions.d.ts.map +1 -1
  171. package/sdk/models/shared/propertyconnectionpermissions.js +4 -0
  172. package/sdk/models/shared/propertyconnectionpermissions.js.map +1 -1
  173. package/sdk/models/shared/propertyhrispayslipdeduction.d.ts +60 -0
  174. package/sdk/models/shared/propertyhrispayslipdeduction.d.ts.map +1 -0
  175. package/sdk/models/shared/propertyhrispayslipdeduction.js +110 -0
  176. package/sdk/models/shared/propertyhrispayslipdeduction.js.map +1 -0
  177. package/sdk/models/shared/uccall.d.ts +3 -0
  178. package/sdk/models/shared/uccall.d.ts.map +1 -1
  179. package/sdk/models/shared/uccall.js +4 -0
  180. package/sdk/models/shared/uccall.js.map +1 -1
  181. package/sdk/models/shared/webhook.d.ts +2 -0
  182. package/sdk/models/shared/webhook.d.ts.map +1 -1
  183. package/sdk/models/shared/webhook.js +2 -0
  184. package/sdk/models/shared/webhook.js.map +1 -1
  185. package/sdk/sdk.d.ts +6 -0
  186. package/sdk/sdk.d.ts.map +1 -1
  187. package/sdk/sdk.js +8 -0
  188. package/sdk/sdk.js.map +1 -1
  189. package/sdk/uc.d.ts +4 -0
  190. package/sdk/uc.d.ts.map +1 -1
  191. package/sdk/uc.js +7 -0
  192. package/sdk/uc.js.map +1 -1
  193. package/src/funcs/hrisCreateHrisBenefit.ts +170 -0
  194. package/src/funcs/hrisCreateHrisDeduction.ts +171 -0
  195. package/src/funcs/hrisGetHrisBenefit.ts +173 -0
  196. package/src/funcs/hrisGetHrisDeduction.ts +173 -0
  197. package/src/funcs/hrisListHrisBenefits.ts +177 -0
  198. package/src/funcs/hrisListHrisDeductions.ts +180 -0
  199. package/src/funcs/hrisPatchHrisBenefit.ts +174 -0
  200. package/src/funcs/hrisPatchHrisDeduction.ts +174 -0
  201. package/src/funcs/hrisRemoveHrisBenefit.ts +175 -0
  202. package/src/funcs/hrisRemoveHrisDeduction.ts +176 -0
  203. package/src/funcs/hrisUpdateHrisBenefit.ts +174 -0
  204. package/src/funcs/hrisUpdateHrisDeduction.ts +175 -0
  205. package/src/funcs/messagingListMessagingMessages.ts +1 -0
  206. package/src/funcs/ucGetUcCall.ts +173 -0
  207. package/src/lib/config.ts +2 -2
  208. package/src/sdk/benefit.ts +100 -0
  209. package/src/sdk/call.ts +15 -0
  210. package/src/sdk/deduction.ts +100 -0
  211. package/src/sdk/hris.ts +180 -0
  212. package/src/sdk/models/operations/createhrisbenefit.ts +59 -0
  213. package/src/sdk/models/operations/createhrisdeduction.ts +59 -0
  214. package/src/sdk/models/operations/gethrisbenefit.ts +57 -0
  215. package/src/sdk/models/operations/gethrisdeduction.ts +57 -0
  216. package/src/sdk/models/operations/getuccall.ts +57 -0
  217. package/src/sdk/models/operations/index.ts +13 -0
  218. package/src/sdk/models/operations/listhrisbenefits.ts +83 -0
  219. package/src/sdk/models/operations/listhrisdeductions.ts +104 -0
  220. package/src/sdk/models/operations/listmessagingmessages.ts +8 -1
  221. package/src/sdk/models/operations/patchhrisbenefit.ts +65 -0
  222. package/src/sdk/models/operations/patchhrisdeduction.ts +65 -0
  223. package/src/sdk/models/operations/removehrisbenefit.ts +75 -0
  224. package/src/sdk/models/operations/removehrisdeduction.ts +75 -0
  225. package/src/sdk/models/operations/updatehrisbenefit.ts +65 -0
  226. package/src/sdk/models/operations/updatehrisdeduction.ts +65 -0
  227. package/src/sdk/models/shared/accountinglineitem.ts +10 -0
  228. package/src/sdk/models/shared/accountingreference.ts +55 -0
  229. package/src/sdk/models/shared/hrisbenefit.ts +255 -0
  230. package/src/sdk/models/shared/hrisdeduction.ts +202 -0
  231. package/src/sdk/models/shared/hrispayslip.ts +9 -0
  232. package/src/sdk/models/shared/index.ts +4 -0
  233. package/src/sdk/models/shared/integrationsupport.ts +54 -0
  234. package/src/sdk/models/shared/messagingmessage.ts +6 -0
  235. package/src/sdk/models/shared/propertyconnectionpermissions.ts +4 -0
  236. package/src/sdk/models/shared/propertyhrispayslipdeduction.ts +135 -0
  237. package/src/sdk/models/shared/uccall.ts +6 -0
  238. package/src/sdk/models/shared/webhook.ts +2 -0
  239. package/src/sdk/sdk.ts +12 -0
  240. package/src/sdk/uc.ts +15 -0
@@ -0,0 +1,202 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../../lib/primitives.js";
7
+ import { safeParse } from "../../../lib/schemas.js";
8
+ import * as openEnums from "../../types/enums.js";
9
+ import { OpenEnum } from "../../types/enums.js";
10
+ import { Result as SafeParseResult } from "../../types/fp.js";
11
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
+
13
+ export const HrisDeductionCoverageLevel = {
14
+ EmployeeOnly: "EMPLOYEE_ONLY",
15
+ EmployeeSpouse: "EMPLOYEE_SPOUSE",
16
+ EmployeeChild: "EMPLOYEE_CHILD",
17
+ EmployeeChildren: "EMPLOYEE_CHILDREN",
18
+ EmployeeFamily: "EMPLOYEE_FAMILY",
19
+ Family: "FAMILY",
20
+ Other: "OTHER",
21
+ } as const;
22
+ export type HrisDeductionCoverageLevel = OpenEnum<
23
+ typeof HrisDeductionCoverageLevel
24
+ >;
25
+
26
+ export const HrisDeductionFrequency = {
27
+ OneTime: "ONE_TIME",
28
+ Day: "DAY",
29
+ Quarter: "QUARTER",
30
+ Year: "YEAR",
31
+ Hour: "HOUR",
32
+ Month: "MONTH",
33
+ Week: "WEEK",
34
+ } as const;
35
+ export type HrisDeductionFrequency = OpenEnum<typeof HrisDeductionFrequency>;
36
+
37
+ export const HrisDeductionType = {
38
+ Fixed: "FIXED",
39
+ Percentage: "PERCENTAGE",
40
+ } as const;
41
+ export type HrisDeductionType = OpenEnum<typeof HrisDeductionType>;
42
+
43
+ /**
44
+ * Employee-specific deduction/benefit enrolment.
45
+ */
46
+ export type HrisDeduction = {
47
+ amount?: number | undefined;
48
+ benefitId?: string | undefined;
49
+ companyId?: string | undefined;
50
+ coverageLevel?: HrisDeductionCoverageLevel | undefined;
51
+ createdAt?: Date | undefined;
52
+ endAt?: Date | undefined;
53
+ frequency?: HrisDeductionFrequency | undefined;
54
+ id?: string | undefined;
55
+ isActive?: boolean | undefined;
56
+ raw?: { [k: string]: any } | undefined;
57
+ startAt?: Date | undefined;
58
+ type?: HrisDeductionType | undefined;
59
+ updatedAt?: Date | undefined;
60
+ userId?: string | undefined;
61
+ };
62
+
63
+ /** @internal */
64
+ export const HrisDeductionCoverageLevel$inboundSchema: z.ZodType<
65
+ HrisDeductionCoverageLevel,
66
+ z.ZodTypeDef,
67
+ unknown
68
+ > = openEnums.inboundSchema(HrisDeductionCoverageLevel);
69
+ /** @internal */
70
+ export const HrisDeductionCoverageLevel$outboundSchema: z.ZodType<
71
+ string,
72
+ z.ZodTypeDef,
73
+ HrisDeductionCoverageLevel
74
+ > = openEnums.outboundSchema(HrisDeductionCoverageLevel);
75
+
76
+ /** @internal */
77
+ export const HrisDeductionFrequency$inboundSchema: z.ZodType<
78
+ HrisDeductionFrequency,
79
+ z.ZodTypeDef,
80
+ unknown
81
+ > = openEnums.inboundSchema(HrisDeductionFrequency);
82
+ /** @internal */
83
+ export const HrisDeductionFrequency$outboundSchema: z.ZodType<
84
+ string,
85
+ z.ZodTypeDef,
86
+ HrisDeductionFrequency
87
+ > = openEnums.outboundSchema(HrisDeductionFrequency);
88
+
89
+ /** @internal */
90
+ export const HrisDeductionType$inboundSchema: z.ZodType<
91
+ HrisDeductionType,
92
+ z.ZodTypeDef,
93
+ unknown
94
+ > = openEnums.inboundSchema(HrisDeductionType);
95
+ /** @internal */
96
+ export const HrisDeductionType$outboundSchema: z.ZodType<
97
+ string,
98
+ z.ZodTypeDef,
99
+ HrisDeductionType
100
+ > = openEnums.outboundSchema(HrisDeductionType);
101
+
102
+ /** @internal */
103
+ export const HrisDeduction$inboundSchema: z.ZodType<
104
+ HrisDeduction,
105
+ z.ZodTypeDef,
106
+ unknown
107
+ > = z.object({
108
+ amount: z.number().optional(),
109
+ benefit_id: z.string().optional(),
110
+ company_id: z.string().optional(),
111
+ coverage_level: HrisDeductionCoverageLevel$inboundSchema.optional(),
112
+ created_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
113
+ .optional(),
114
+ end_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
115
+ .optional(),
116
+ frequency: HrisDeductionFrequency$inboundSchema.optional(),
117
+ id: z.string().optional(),
118
+ is_active: z.boolean().optional(),
119
+ raw: z.record(z.any()).optional(),
120
+ start_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
121
+ .optional(),
122
+ type: HrisDeductionType$inboundSchema.optional(),
123
+ updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
124
+ .optional(),
125
+ user_id: z.string().optional(),
126
+ }).transform((v) => {
127
+ return remap$(v, {
128
+ "benefit_id": "benefitId",
129
+ "company_id": "companyId",
130
+ "coverage_level": "coverageLevel",
131
+ "created_at": "createdAt",
132
+ "end_at": "endAt",
133
+ "is_active": "isActive",
134
+ "start_at": "startAt",
135
+ "updated_at": "updatedAt",
136
+ "user_id": "userId",
137
+ });
138
+ });
139
+ /** @internal */
140
+ export type HrisDeduction$Outbound = {
141
+ amount?: number | undefined;
142
+ benefit_id?: string | undefined;
143
+ company_id?: string | undefined;
144
+ coverage_level?: string | undefined;
145
+ created_at?: string | undefined;
146
+ end_at?: string | undefined;
147
+ frequency?: string | undefined;
148
+ id?: string | undefined;
149
+ is_active?: boolean | undefined;
150
+ raw?: { [k: string]: any } | undefined;
151
+ start_at?: string | undefined;
152
+ type?: string | undefined;
153
+ updated_at?: string | undefined;
154
+ user_id?: string | undefined;
155
+ };
156
+
157
+ /** @internal */
158
+ export const HrisDeduction$outboundSchema: z.ZodType<
159
+ HrisDeduction$Outbound,
160
+ z.ZodTypeDef,
161
+ HrisDeduction
162
+ > = z.object({
163
+ amount: z.number().optional(),
164
+ benefitId: z.string().optional(),
165
+ companyId: z.string().optional(),
166
+ coverageLevel: HrisDeductionCoverageLevel$outboundSchema.optional(),
167
+ createdAt: z.date().transform(v => v.toISOString()).optional(),
168
+ endAt: z.date().transform(v => v.toISOString()).optional(),
169
+ frequency: HrisDeductionFrequency$outboundSchema.optional(),
170
+ id: z.string().optional(),
171
+ isActive: z.boolean().optional(),
172
+ raw: z.record(z.any()).optional(),
173
+ startAt: z.date().transform(v => v.toISOString()).optional(),
174
+ type: HrisDeductionType$outboundSchema.optional(),
175
+ updatedAt: z.date().transform(v => v.toISOString()).optional(),
176
+ userId: z.string().optional(),
177
+ }).transform((v) => {
178
+ return remap$(v, {
179
+ benefitId: "benefit_id",
180
+ companyId: "company_id",
181
+ coverageLevel: "coverage_level",
182
+ createdAt: "created_at",
183
+ endAt: "end_at",
184
+ isActive: "is_active",
185
+ startAt: "start_at",
186
+ updatedAt: "updated_at",
187
+ userId: "user_id",
188
+ });
189
+ });
190
+
191
+ export function hrisDeductionToJSON(hrisDeduction: HrisDeduction): string {
192
+ return JSON.stringify(HrisDeduction$outboundSchema.parse(hrisDeduction));
193
+ }
194
+ export function hrisDeductionFromJSON(
195
+ jsonString: string,
196
+ ): SafeParseResult<HrisDeduction, SDKValidationError> {
197
+ return safeParse(
198
+ jsonString,
199
+ (x) => HrisDeduction$inboundSchema.parse(JSON.parse(x)),
200
+ `Failed to parse 'HrisDeduction' from JSON`,
201
+ );
202
+ }
@@ -13,6 +13,10 @@ import {
13
13
  HrisPayslipDetail,
14
14
  HrisPayslipDetail$inboundSchema,
15
15
  } from "./hrispayslipdetail.js";
16
+ import {
17
+ PropertyHrisPayslipDeduction,
18
+ PropertyHrisPayslipDeduction$inboundSchema,
19
+ } from "./propertyhrispayslipdeduction.js";
16
20
 
17
21
  export const PaymentType = {
18
22
  Direct: "DIRECT",
@@ -25,6 +29,10 @@ export type HrisPayslip = {
25
29
  companyId?: string | undefined;
26
30
  createdAt?: Date | undefined;
27
31
  currency?: string | undefined;
32
+ /**
33
+ * // The ID (and optionally name) of the employee deduction (if this detail represents a deduction)
34
+ */
35
+ deduction?: PropertyHrisPayslipDeduction | undefined;
28
36
  details?: Array<HrisPayslipDetail> | undefined;
29
37
  endAt?: Date | undefined;
30
38
  grossAmount?: number | undefined;
@@ -55,6 +63,7 @@ export const HrisPayslip$inboundSchema: z.ZodType<
55
63
  created_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
56
64
  .optional(),
57
65
  currency: z.string().optional(),
66
+ deduction: PropertyHrisPayslipDeduction$inboundSchema.optional(),
58
67
  details: z.array(HrisPayslipDetail$inboundSchema).optional(),
59
68
  end_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
60
69
  .optional(),
@@ -29,6 +29,7 @@ export * from "./accountingprofitlosscategory.js";
29
29
  export * from "./accountingprofitlosssection.js";
30
30
  export * from "./accountingprofitlosssubcategory.js";
31
31
  export * from "./accountingpurchaseorder.js";
32
+ export * from "./accountingreference.js";
32
33
  export * from "./accountingreport.js";
33
34
  export * from "./accountingsalesorder.js";
34
35
  export * from "./accountingtaxrate.js";
@@ -107,8 +108,10 @@ export * from "./genaiembedding.js";
107
108
  export * from "./genaiembeddingcontent.js";
108
109
  export * from "./genaimodel.js";
109
110
  export * from "./genaiprompt.js";
111
+ export * from "./hrisbenefit.js";
110
112
  export * from "./hriscompany.js";
111
113
  export * from "./hriscompensation.js";
114
+ export * from "./hrisdeduction.js";
112
115
  export * from "./hrisdevice.js";
113
116
  export * from "./hrisemail.js";
114
117
  export * from "./hrisemployee.js";
@@ -192,6 +195,7 @@ export * from "./propertyhriscompanyaddress.js";
192
195
  export * from "./propertyhrisemployeeaddress.js";
193
196
  export * from "./propertyhrisemployeeemployeeroles.js";
194
197
  export * from "./propertyhrislocationaddress.js";
198
+ export * from "./propertyhrispayslipdeduction.js";
195
199
  export * from "./propertyintegrationcategories.js";
196
200
  export * from "./propertyintegrationsupportwebhookevents.js";
197
201
  export * from "./propertyintegrationsupportwebhookeventscreated.js";
@@ -296,6 +296,13 @@ export const ListPaymentId = {
296
296
  } as const;
297
297
  export type ListPaymentId = OpenEnum<typeof ListPaymentId>;
298
298
 
299
+ export const ListPayslipId = {
300
+ SupportedRequired: "supported-required",
301
+ Supported: "supported",
302
+ NotSupported: "not-supported",
303
+ } as const;
304
+ export type ListPayslipId = OpenEnum<typeof ListPayslipId>;
305
+
299
306
  export const ListPipelineId = {
300
307
  SupportedRequired: "supported-required",
301
308
  Supported: "supported",
@@ -429,6 +436,13 @@ export const ListUserId = {
429
436
  } as const;
430
437
  export type ListUserId = OpenEnum<typeof ListUserId>;
431
438
 
439
+ export const ListUserMentionedId = {
440
+ SupportedRequired: "supported-required",
441
+ Supported: "supported",
442
+ NotSupported: "not-supported",
443
+ } as const;
444
+ export type ListUserMentionedId = OpenEnum<typeof ListUserMentionedId>;
445
+
432
446
  export const NativeWebhookCalendarId = {
433
447
  SupportedRequired: "supported-required",
434
448
  Supported: "supported",
@@ -790,6 +804,15 @@ export const VirtualWebhookUserId = {
790
804
  } as const;
791
805
  export type VirtualWebhookUserId = OpenEnum<typeof VirtualWebhookUserId>;
792
806
 
807
+ export const VirtualWebhookUserMentionedId = {
808
+ SupportedRequired: "supported-required",
809
+ Supported: "supported",
810
+ NotSupported: "not-supported",
811
+ } as const;
812
+ export type VirtualWebhookUserMentionedId = OpenEnum<
813
+ typeof VirtualWebhookUserMentionedId
814
+ >;
815
+
793
816
  export type IntegrationSupport = {
794
817
  fromWebhook?: FromWebhook | undefined;
795
818
  inboundFields?: { [k: string]: string } | undefined;
@@ -832,6 +855,7 @@ export type IntegrationSupport = {
832
855
  listPageId?: ListPageId | undefined;
833
856
  listParentId?: ListParentId | undefined;
834
857
  listPaymentId?: ListPaymentId | undefined;
858
+ listPayslipId?: ListPayslipId | undefined;
835
859
  listPipelineId?: ListPipelineId | undefined;
836
860
  listProjectId?: ListProjectId | undefined;
837
861
  listQuery?: ListQuery | undefined;
@@ -851,6 +875,7 @@ export type IntegrationSupport = {
851
875
  listType?: ListType | undefined;
852
876
  listUpdatedGte?: ListUpdatedGte | undefined;
853
877
  listUserId?: ListUserId | undefined;
878
+ listUserMentionedId?: ListUserMentionedId | undefined;
854
879
  methods?: { [k: string]: boolean } | undefined;
855
880
  nativeWebhookCalendarId?: NativeWebhookCalendarId | undefined;
856
881
  nativeWebhookChannelId?: NativeWebhookChannelId | undefined;
@@ -907,6 +932,7 @@ export type IntegrationSupport = {
907
932
  virtualWebhookType?: VirtualWebhookType | undefined;
908
933
  virtualWebhookUpdatedGte?: VirtualWebhookUpdatedGte | undefined;
909
934
  virtualWebhookUserId?: VirtualWebhookUserId | undefined;
935
+ virtualWebhookUserMentionedId?: VirtualWebhookUserMentionedId | undefined;
910
936
  webhookEvents?: PropertyIntegrationSupportWebhookEvents | undefined;
911
937
  };
912
938
 
@@ -1190,6 +1216,13 @@ export const ListPaymentId$inboundSchema: z.ZodType<
1190
1216
  unknown
1191
1217
  > = openEnums.inboundSchema(ListPaymentId);
1192
1218
 
1219
+ /** @internal */
1220
+ export const ListPayslipId$inboundSchema: z.ZodType<
1221
+ ListPayslipId,
1222
+ z.ZodTypeDef,
1223
+ unknown
1224
+ > = openEnums.inboundSchema(ListPayslipId);
1225
+
1193
1226
  /** @internal */
1194
1227
  export const ListPipelineId$inboundSchema: z.ZodType<
1195
1228
  ListPipelineId,
@@ -1323,6 +1356,13 @@ export const ListUserId$inboundSchema: z.ZodType<
1323
1356
  unknown
1324
1357
  > = openEnums.inboundSchema(ListUserId);
1325
1358
 
1359
+ /** @internal */
1360
+ export const ListUserMentionedId$inboundSchema: z.ZodType<
1361
+ ListUserMentionedId,
1362
+ z.ZodTypeDef,
1363
+ unknown
1364
+ > = openEnums.inboundSchema(ListUserMentionedId);
1365
+
1326
1366
  /** @internal */
1327
1367
  export const NativeWebhookCalendarId$inboundSchema: z.ZodType<
1328
1368
  NativeWebhookCalendarId,
@@ -1666,6 +1706,13 @@ export const VirtualWebhookUserId$inboundSchema: z.ZodType<
1666
1706
  unknown
1667
1707
  > = openEnums.inboundSchema(VirtualWebhookUserId);
1668
1708
 
1709
+ /** @internal */
1710
+ export const VirtualWebhookUserMentionedId$inboundSchema: z.ZodType<
1711
+ VirtualWebhookUserMentionedId,
1712
+ z.ZodTypeDef,
1713
+ unknown
1714
+ > = openEnums.inboundSchema(VirtualWebhookUserMentionedId);
1715
+
1669
1716
  /** @internal */
1670
1717
  export const IntegrationSupport$inboundSchema: z.ZodType<
1671
1718
  IntegrationSupport,
@@ -1714,6 +1761,7 @@ export const IntegrationSupport$inboundSchema: z.ZodType<
1714
1761
  list_page_id: ListPageId$inboundSchema.optional(),
1715
1762
  list_parent_id: ListParentId$inboundSchema.optional(),
1716
1763
  list_payment_id: ListPaymentId$inboundSchema.optional(),
1764
+ list_payslip_id: ListPayslipId$inboundSchema.optional(),
1717
1765
  list_pipeline_id: ListPipelineId$inboundSchema.optional(),
1718
1766
  list_project_id: ListProjectId$inboundSchema.optional(),
1719
1767
  list_query: ListQuery$inboundSchema.optional(),
@@ -1733,6 +1781,7 @@ export const IntegrationSupport$inboundSchema: z.ZodType<
1733
1781
  list_type: ListType$inboundSchema.optional(),
1734
1782
  list_updated_gte: ListUpdatedGte$inboundSchema.optional(),
1735
1783
  list_user_id: ListUserId$inboundSchema.optional(),
1784
+ list_user_mentioned_id: ListUserMentionedId$inboundSchema.optional(),
1736
1785
  methods: z.record(z.boolean()).optional(),
1737
1786
  native_webhook_calendar_id: NativeWebhookCalendarId$inboundSchema.optional(),
1738
1787
  native_webhook_channel_id: NativeWebhookChannelId$inboundSchema.optional(),
@@ -1795,6 +1844,8 @@ export const IntegrationSupport$inboundSchema: z.ZodType<
1795
1844
  virtual_webhook_updated_gte: VirtualWebhookUpdatedGte$inboundSchema
1796
1845
  .optional(),
1797
1846
  virtual_webhook_user_id: VirtualWebhookUserId$inboundSchema.optional(),
1847
+ virtual_webhook_user_mentioned_id: VirtualWebhookUserMentionedId$inboundSchema
1848
+ .optional(),
1798
1849
  webhook_events: PropertyIntegrationSupportWebhookEvents$inboundSchema
1799
1850
  .optional(),
1800
1851
  }).transform((v) => {
@@ -1840,6 +1891,7 @@ export const IntegrationSupport$inboundSchema: z.ZodType<
1840
1891
  "list_page_id": "listPageId",
1841
1892
  "list_parent_id": "listParentId",
1842
1893
  "list_payment_id": "listPaymentId",
1894
+ "list_payslip_id": "listPayslipId",
1843
1895
  "list_pipeline_id": "listPipelineId",
1844
1896
  "list_project_id": "listProjectId",
1845
1897
  "list_query": "listQuery",
@@ -1859,6 +1911,7 @@ export const IntegrationSupport$inboundSchema: z.ZodType<
1859
1911
  "list_type": "listType",
1860
1912
  "list_updated_gte": "listUpdatedGte",
1861
1913
  "list_user_id": "listUserId",
1914
+ "list_user_mentioned_id": "listUserMentionedId",
1862
1915
  "native_webhook_calendar_id": "nativeWebhookCalendarId",
1863
1916
  "native_webhook_channel_id": "nativeWebhookChannelId",
1864
1917
  "native_webhook_company_id": "nativeWebhookCompanyId",
@@ -1911,6 +1964,7 @@ export const IntegrationSupport$inboundSchema: z.ZodType<
1911
1964
  "virtual_webhook_type": "virtualWebhookType",
1912
1965
  "virtual_webhook_updated_gte": "virtualWebhookUpdatedGte",
1913
1966
  "virtual_webhook_user_id": "virtualWebhookUserId",
1967
+ "virtual_webhook_user_mentioned_id": "virtualWebhookUserMentionedId",
1914
1968
  "webhook_events": "webhookEvents",
1915
1969
  });
1916
1970
  });
@@ -60,6 +60,7 @@ export type MessagingMessage = {
60
60
  message?: string | undefined;
61
61
  messageHtml?: string | undefined;
62
62
  messageMarkdown?: string | undefined;
63
+ messageThreadIdentifier?: string | undefined;
63
64
  parentId?: string | undefined;
64
65
  parentMessageId?: string | undefined;
65
66
  raw?: { [k: string]: any } | undefined;
@@ -93,6 +94,7 @@ export const MessagingMessage$inboundSchema: z.ZodType<
93
94
  message: z.string().optional(),
94
95
  message_html: z.string().optional(),
95
96
  message_markdown: z.string().optional(),
97
+ message_thread_identifier: z.string().optional(),
96
98
  parent_id: z.string().optional(),
97
99
  parent_message_id: z.string().optional(),
98
100
  raw: z.record(z.any()).optional(),
@@ -116,6 +118,7 @@ export const MessagingMessage$inboundSchema: z.ZodType<
116
118
  "mentioned_members": "mentionedMembers",
117
119
  "message_html": "messageHtml",
118
120
  "message_markdown": "messageMarkdown",
121
+ "message_thread_identifier": "messageThreadIdentifier",
119
122
  "parent_id": "parentId",
120
123
  "parent_message_id": "parentMessageId",
121
124
  "root_message_id": "rootMessageId",
@@ -140,6 +143,7 @@ export type MessagingMessage$Outbound = {
140
143
  message?: string | undefined;
141
144
  message_html?: string | undefined;
142
145
  message_markdown?: string | undefined;
146
+ message_thread_identifier?: string | undefined;
143
147
  parent_id?: string | undefined;
144
148
  parent_message_id?: string | undefined;
145
149
  raw?: { [k: string]: any } | undefined;
@@ -172,6 +176,7 @@ export const MessagingMessage$outboundSchema: z.ZodType<
172
176
  message: z.string().optional(),
173
177
  messageHtml: z.string().optional(),
174
178
  messageMarkdown: z.string().optional(),
179
+ messageThreadIdentifier: z.string().optional(),
175
180
  parentId: z.string().optional(),
176
181
  parentMessageId: z.string().optional(),
177
182
  raw: z.record(z.any()).optional(),
@@ -194,6 +199,7 @@ export const MessagingMessage$outboundSchema: z.ZodType<
194
199
  mentionedMembers: "mentioned_members",
195
200
  messageHtml: "message_html",
196
201
  messageMarkdown: "message_markdown",
202
+ messageThreadIdentifier: "message_thread_identifier",
197
203
  parentId: "parent_id",
198
204
  parentMessageId: "parent_message_id",
199
205
  rootMessageId: "root_message_id",
@@ -122,6 +122,10 @@ export const PropertyConnectionPermissions = {
122
122
  HrisLocationWrite: "hris_location_write",
123
123
  HrisDeviceRead: "hris_device_read",
124
124
  HrisDeviceWrite: "hris_device_write",
125
+ HrisDeductionRead: "hris_deduction_read",
126
+ HrisDeductionWrite: "hris_deduction_write",
127
+ HrisBenefitRead: "hris_benefit_read",
128
+ HrisBenefitWrite: "hris_benefit_write",
125
129
  UcCallRead: "uc_call_read",
126
130
  UcContactRead: "uc_contact_read",
127
131
  UcContactWrite: "uc_contact_write",
@@ -0,0 +1,135 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../../lib/primitives.js";
7
+ import { safeParse } from "../../../lib/schemas.js";
8
+ import * as openEnums from "../../types/enums.js";
9
+ import { OpenEnum } from "../../types/enums.js";
10
+ import { Result as SafeParseResult } from "../../types/fp.js";
11
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
+
13
+ export const PropertyHrisPayslipDeductionCoverageLevel = {
14
+ EmployeeOnly: "EMPLOYEE_ONLY",
15
+ EmployeeSpouse: "EMPLOYEE_SPOUSE",
16
+ EmployeeChild: "EMPLOYEE_CHILD",
17
+ EmployeeChildren: "EMPLOYEE_CHILDREN",
18
+ EmployeeFamily: "EMPLOYEE_FAMILY",
19
+ Family: "FAMILY",
20
+ Other: "OTHER",
21
+ } as const;
22
+ export type PropertyHrisPayslipDeductionCoverageLevel = OpenEnum<
23
+ typeof PropertyHrisPayslipDeductionCoverageLevel
24
+ >;
25
+
26
+ export const PropertyHrisPayslipDeductionFrequency = {
27
+ OneTime: "ONE_TIME",
28
+ Day: "DAY",
29
+ Quarter: "QUARTER",
30
+ Year: "YEAR",
31
+ Hour: "HOUR",
32
+ Month: "MONTH",
33
+ Week: "WEEK",
34
+ } as const;
35
+ export type PropertyHrisPayslipDeductionFrequency = OpenEnum<
36
+ typeof PropertyHrisPayslipDeductionFrequency
37
+ >;
38
+
39
+ export const PropertyHrisPayslipDeductionType = {
40
+ Fixed: "FIXED",
41
+ Percentage: "PERCENTAGE",
42
+ } as const;
43
+ export type PropertyHrisPayslipDeductionType = OpenEnum<
44
+ typeof PropertyHrisPayslipDeductionType
45
+ >;
46
+
47
+ /**
48
+ * // The ID (and optionally name) of the employee deduction (if this detail represents a deduction)
49
+ */
50
+ export type PropertyHrisPayslipDeduction = {
51
+ amount?: number | undefined;
52
+ benefitId?: string | undefined;
53
+ companyId?: string | undefined;
54
+ coverageLevel?: PropertyHrisPayslipDeductionCoverageLevel | undefined;
55
+ createdAt?: Date | undefined;
56
+ endAt?: Date | undefined;
57
+ frequency?: PropertyHrisPayslipDeductionFrequency | undefined;
58
+ id?: string | undefined;
59
+ isActive?: boolean | undefined;
60
+ raw?: { [k: string]: any } | undefined;
61
+ startAt?: Date | undefined;
62
+ type?: PropertyHrisPayslipDeductionType | undefined;
63
+ updatedAt?: Date | undefined;
64
+ userId?: string | undefined;
65
+ };
66
+
67
+ /** @internal */
68
+ export const PropertyHrisPayslipDeductionCoverageLevel$inboundSchema: z.ZodType<
69
+ PropertyHrisPayslipDeductionCoverageLevel,
70
+ z.ZodTypeDef,
71
+ unknown
72
+ > = openEnums.inboundSchema(PropertyHrisPayslipDeductionCoverageLevel);
73
+
74
+ /** @internal */
75
+ export const PropertyHrisPayslipDeductionFrequency$inboundSchema: z.ZodType<
76
+ PropertyHrisPayslipDeductionFrequency,
77
+ z.ZodTypeDef,
78
+ unknown
79
+ > = openEnums.inboundSchema(PropertyHrisPayslipDeductionFrequency);
80
+
81
+ /** @internal */
82
+ export const PropertyHrisPayslipDeductionType$inboundSchema: z.ZodType<
83
+ PropertyHrisPayslipDeductionType,
84
+ z.ZodTypeDef,
85
+ unknown
86
+ > = openEnums.inboundSchema(PropertyHrisPayslipDeductionType);
87
+
88
+ /** @internal */
89
+ export const PropertyHrisPayslipDeduction$inboundSchema: z.ZodType<
90
+ PropertyHrisPayslipDeduction,
91
+ z.ZodTypeDef,
92
+ unknown
93
+ > = z.object({
94
+ amount: z.number().optional(),
95
+ benefit_id: z.string().optional(),
96
+ company_id: z.string().optional(),
97
+ coverage_level: PropertyHrisPayslipDeductionCoverageLevel$inboundSchema
98
+ .optional(),
99
+ created_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
100
+ .optional(),
101
+ end_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
102
+ .optional(),
103
+ frequency: PropertyHrisPayslipDeductionFrequency$inboundSchema.optional(),
104
+ id: z.string().optional(),
105
+ is_active: z.boolean().optional(),
106
+ raw: z.record(z.any()).optional(),
107
+ start_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
108
+ .optional(),
109
+ type: PropertyHrisPayslipDeductionType$inboundSchema.optional(),
110
+ updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
111
+ .optional(),
112
+ user_id: z.string().optional(),
113
+ }).transform((v) => {
114
+ return remap$(v, {
115
+ "benefit_id": "benefitId",
116
+ "company_id": "companyId",
117
+ "coverage_level": "coverageLevel",
118
+ "created_at": "createdAt",
119
+ "end_at": "endAt",
120
+ "is_active": "isActive",
121
+ "start_at": "startAt",
122
+ "updated_at": "updatedAt",
123
+ "user_id": "userId",
124
+ });
125
+ });
126
+
127
+ export function propertyHrisPayslipDeductionFromJSON(
128
+ jsonString: string,
129
+ ): SafeParseResult<PropertyHrisPayslipDeduction, SDKValidationError> {
130
+ return safeParse(
131
+ jsonString,
132
+ (x) => PropertyHrisPayslipDeduction$inboundSchema.parse(JSON.parse(x)),
133
+ `Failed to parse 'PropertyHrisPayslipDeduction' from JSON`,
134
+ );
135
+ }
@@ -11,12 +11,15 @@ import {
11
11
  PropertyUcCallTelephone,
12
12
  PropertyUcCallTelephone$inboundSchema,
13
13
  } from "./propertyuccalltelephone.js";
14
+ import { UcContact, UcContact$inboundSchema } from "./uccontact.js";
14
15
 
15
16
  export type UcCall = {
16
17
  contactId?: string | undefined;
18
+ contacts?: Array<UcContact> | undefined;
17
19
  createdAt?: Date | undefined;
18
20
  endAt?: Date | undefined;
19
21
  id?: string | undefined;
22
+ isPrivate?: boolean | undefined;
20
23
  raw?: { [k: string]: any } | undefined;
21
24
  startAt?: Date | undefined;
22
25
  /**
@@ -31,12 +34,14 @@ export type UcCall = {
31
34
  export const UcCall$inboundSchema: z.ZodType<UcCall, z.ZodTypeDef, unknown> = z
32
35
  .object({
33
36
  contact_id: z.string().optional(),
37
+ contacts: z.array(UcContact$inboundSchema).optional(),
34
38
  created_at: z.string().datetime({ offset: true }).transform(v =>
35
39
  new Date(v)
36
40
  ).optional(),
37
41
  end_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
38
42
  .optional(),
39
43
  id: z.string().optional(),
44
+ is_private: z.boolean().optional(),
40
45
  raw: z.record(z.any()).optional(),
41
46
  start_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
42
47
  .optional(),
@@ -50,6 +55,7 @@ export const UcCall$inboundSchema: z.ZodType<UcCall, z.ZodTypeDef, unknown> = z
50
55
  "contact_id": "contactId",
51
56
  "created_at": "createdAt",
52
57
  "end_at": "endAt",
58
+ "is_private": "isPrivate",
53
59
  "start_at": "startAt",
54
60
  "updated_at": "updatedAt",
55
61
  "user_id": "userId",
@@ -81,6 +81,8 @@ export const ObjectType = {
81
81
  HrisLocation: "hris_location",
82
82
  HrisDevice: "hris_device",
83
83
  HrisTimeshift: "hris_timeshift",
84
+ HrisDeduction: "hris_deduction",
85
+ HrisBenefit: "hris_benefit",
84
86
  MartechList: "martech_list",
85
87
  MartechMember: "martech_member",
86
88
  Passthrough: "passthrough",
package/src/sdk/sdk.ts CHANGED
@@ -12,6 +12,7 @@ import { Applicationstatus } from "./applicationstatus.js";
12
12
  import { Ats } from "./ats.js";
13
13
  import { Auth } from "./auth.js";
14
14
  import { Balancesheet } from "./balancesheet.js";
15
+ import { Benefit } from "./benefit.js";
15
16
  import { Bill } from "./bill.js";
16
17
  import { Branch } from "./branch.js";
17
18
  import { Busy } from "./busy.js";
@@ -35,6 +36,7 @@ import { Creditmemo } from "./creditmemo.js";
35
36
  import { Crm } from "./crm.js";
36
37
  import { Customer } from "./customer.js";
37
38
  import { Deal } from "./deal.js";
39
+ import { Deduction } from "./deduction.js";
38
40
  import { Device } from "./device.js";
39
41
  import { Document } from "./document.js";
40
42
  import { Embedding } from "./embedding.js";
@@ -373,6 +375,16 @@ export class UnifiedTo extends ClientSDK {
373
375
  return (this._hris ??= new Hris(this._options));
374
376
  }
375
377
 
378
+ private _benefit?: Benefit;
379
+ get benefit(): Benefit {
380
+ return (this._benefit ??= new Benefit(this._options));
381
+ }
382
+
383
+ private _deduction?: Deduction;
384
+ get deduction(): Deduction {
385
+ return (this._deduction ??= new Deduction(this._options));
386
+ }
387
+
376
388
  private _device?: Device;
377
389
  get device(): Device {
378
390
  return (this._device ??= new Device(this._options));