@unified-api/typescript-sdk 2.80.6 → 2.80.8

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 (235) hide show
  1. package/README.md +24 -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/jsr.json +1 -1
  54. package/lib/config.d.ts +3 -3
  55. package/lib/config.js +3 -3
  56. package/package.json +1 -1
  57. package/sdk/benefit.d.ts +30 -0
  58. package/sdk/benefit.d.ts.map +1 -0
  59. package/sdk/benefit.js +54 -0
  60. package/sdk/benefit.js.map +1 -0
  61. package/sdk/deduction.d.ts +30 -0
  62. package/sdk/deduction.d.ts.map +1 -0
  63. package/sdk/deduction.js +54 -0
  64. package/sdk/deduction.js.map +1 -0
  65. package/sdk/hris.d.ts +48 -0
  66. package/sdk/hris.d.ts.map +1 -1
  67. package/sdk/hris.js +84 -0
  68. package/sdk/hris.js.map +1 -1
  69. package/sdk/models/operations/createhrisbenefit.d.ts +31 -0
  70. package/sdk/models/operations/createhrisbenefit.d.ts.map +1 -0
  71. package/sdk/models/operations/createhrisbenefit.js +59 -0
  72. package/sdk/models/operations/createhrisbenefit.js.map +1 -0
  73. package/sdk/models/operations/createhrisdeduction.d.ts +31 -0
  74. package/sdk/models/operations/createhrisdeduction.d.ts.map +1 -0
  75. package/sdk/models/operations/createhrisdeduction.js +59 -0
  76. package/sdk/models/operations/createhrisdeduction.js.map +1 -0
  77. package/sdk/models/operations/gethrisbenefit.d.ts +30 -0
  78. package/sdk/models/operations/gethrisbenefit.d.ts.map +1 -0
  79. package/sdk/models/operations/gethrisbenefit.js +57 -0
  80. package/sdk/models/operations/gethrisbenefit.js.map +1 -0
  81. package/sdk/models/operations/gethrisdeduction.d.ts +30 -0
  82. package/sdk/models/operations/gethrisdeduction.d.ts.map +1 -0
  83. package/sdk/models/operations/gethrisdeduction.js +57 -0
  84. package/sdk/models/operations/gethrisdeduction.js.map +1 -0
  85. package/sdk/models/operations/index.d.ts +12 -0
  86. package/sdk/models/operations/index.d.ts.map +1 -1
  87. package/sdk/models/operations/index.js +12 -0
  88. package/sdk/models/operations/index.js.map +1 -1
  89. package/sdk/models/operations/listhrisbenefits.d.ts +48 -0
  90. package/sdk/models/operations/listhrisbenefits.d.ts.map +1 -0
  91. package/sdk/models/operations/listhrisbenefits.js +65 -0
  92. package/sdk/models/operations/listhrisbenefits.js.map +1 -0
  93. package/sdk/models/operations/listhrisdeductions.d.ts +63 -0
  94. package/sdk/models/operations/listhrisdeductions.d.ts.map +1 -0
  95. package/sdk/models/operations/listhrisdeductions.js +71 -0
  96. package/sdk/models/operations/listhrisdeductions.js.map +1 -0
  97. package/sdk/models/operations/listmessagingmessages.d.ts +6 -1
  98. package/sdk/models/operations/listmessagingmessages.d.ts.map +1 -1
  99. package/sdk/models/operations/listmessagingmessages.js +2 -0
  100. package/sdk/models/operations/listmessagingmessages.js.map +1 -1
  101. package/sdk/models/operations/patchhrisbenefit.d.ts +36 -0
  102. package/sdk/models/operations/patchhrisbenefit.d.ts.map +1 -0
  103. package/sdk/models/operations/patchhrisbenefit.js +60 -0
  104. package/sdk/models/operations/patchhrisbenefit.js.map +1 -0
  105. package/sdk/models/operations/patchhrisdeduction.d.ts +36 -0
  106. package/sdk/models/operations/patchhrisdeduction.d.ts.map +1 -0
  107. package/sdk/models/operations/patchhrisdeduction.js +60 -0
  108. package/sdk/models/operations/patchhrisdeduction.js.map +1 -0
  109. package/sdk/models/operations/removehrisbenefit.d.ts +30 -0
  110. package/sdk/models/operations/removehrisbenefit.d.ts.map +1 -0
  111. package/sdk/models/operations/removehrisbenefit.js +68 -0
  112. package/sdk/models/operations/removehrisbenefit.js.map +1 -0
  113. package/sdk/models/operations/removehrisdeduction.d.ts +30 -0
  114. package/sdk/models/operations/removehrisdeduction.d.ts.map +1 -0
  115. package/sdk/models/operations/removehrisdeduction.js +68 -0
  116. package/sdk/models/operations/removehrisdeduction.js.map +1 -0
  117. package/sdk/models/operations/updatehrisbenefit.d.ts +36 -0
  118. package/sdk/models/operations/updatehrisbenefit.d.ts.map +1 -0
  119. package/sdk/models/operations/updatehrisbenefit.js +60 -0
  120. package/sdk/models/operations/updatehrisbenefit.js.map +1 -0
  121. package/sdk/models/operations/updatehrisdeduction.d.ts +36 -0
  122. package/sdk/models/operations/updatehrisdeduction.d.ts.map +1 -0
  123. package/sdk/models/operations/updatehrisdeduction.js +60 -0
  124. package/sdk/models/operations/updatehrisdeduction.js.map +1 -0
  125. package/sdk/models/shared/accountinglineitem.d.ts +5 -0
  126. package/sdk/models/shared/accountinglineitem.d.ts.map +1 -1
  127. package/sdk/models/shared/accountinglineitem.js +7 -0
  128. package/sdk/models/shared/accountinglineitem.js.map +1 -1
  129. package/sdk/models/shared/accountingreference.d.ts +19 -0
  130. package/sdk/models/shared/accountingreference.d.ts.map +1 -0
  131. package/sdk/models/shared/accountingreference.js +60 -0
  132. package/sdk/models/shared/accountingreference.js.map +1 -0
  133. package/sdk/models/shared/hrisbenefit.d.ts +127 -0
  134. package/sdk/models/shared/hrisbenefit.d.ts.map +1 -0
  135. package/sdk/models/shared/hrisbenefit.js +181 -0
  136. package/sdk/models/shared/hrisbenefit.js.map +1 -0
  137. package/sdk/models/shared/hrisdeduction.d.ts +88 -0
  138. package/sdk/models/shared/hrisdeduction.d.ts.map +1 -0
  139. package/sdk/models/shared/hrisdeduction.js +148 -0
  140. package/sdk/models/shared/hrisdeduction.js.map +1 -0
  141. package/sdk/models/shared/hrispayslip.d.ts +5 -0
  142. package/sdk/models/shared/hrispayslip.d.ts.map +1 -1
  143. package/sdk/models/shared/hrispayslip.js +2 -0
  144. package/sdk/models/shared/hrispayslip.js.map +1 -1
  145. package/sdk/models/shared/index.d.ts +4 -0
  146. package/sdk/models/shared/index.d.ts.map +1 -1
  147. package/sdk/models/shared/index.js +4 -0
  148. package/sdk/models/shared/index.js.map +1 -1
  149. package/sdk/models/shared/integrationsupport.d.ts +27 -0
  150. package/sdk/models/shared/integrationsupport.d.ts.map +1 -1
  151. package/sdk/models/shared/integrationsupport.js +33 -5
  152. package/sdk/models/shared/integrationsupport.js.map +1 -1
  153. package/sdk/models/shared/messagingmessage.d.ts +2 -0
  154. package/sdk/models/shared/messagingmessage.d.ts.map +1 -1
  155. package/sdk/models/shared/messagingmessage.js +4 -0
  156. package/sdk/models/shared/messagingmessage.js.map +1 -1
  157. package/sdk/models/shared/propertyconnectionpermissions.d.ts +4 -0
  158. package/sdk/models/shared/propertyconnectionpermissions.d.ts.map +1 -1
  159. package/sdk/models/shared/propertyconnectionpermissions.js +4 -0
  160. package/sdk/models/shared/propertyconnectionpermissions.js.map +1 -1
  161. package/sdk/models/shared/propertyhrispayslipdeduction.d.ts +60 -0
  162. package/sdk/models/shared/propertyhrispayslipdeduction.d.ts.map +1 -0
  163. package/sdk/models/shared/propertyhrispayslipdeduction.js +110 -0
  164. package/sdk/models/shared/propertyhrispayslipdeduction.js.map +1 -0
  165. package/sdk/models/shared/uccall.d.ts +3 -0
  166. package/sdk/models/shared/uccall.d.ts.map +1 -1
  167. package/sdk/models/shared/uccall.js +4 -0
  168. package/sdk/models/shared/uccall.js.map +1 -1
  169. package/sdk/models/shared/webhook.d.ts +2 -0
  170. package/sdk/models/shared/webhook.d.ts.map +1 -1
  171. package/sdk/models/shared/webhook.js +2 -0
  172. package/sdk/models/shared/webhook.js.map +1 -1
  173. package/sdk/sdk.d.ts +6 -0
  174. package/sdk/sdk.d.ts.map +1 -1
  175. package/sdk/sdk.js +8 -0
  176. package/sdk/sdk.js.map +1 -1
  177. package/sdk/types/enums.d.ts +1 -8
  178. package/sdk/types/enums.d.ts.map +1 -1
  179. package/sdk/types/enums.js +3 -21
  180. package/sdk/types/enums.js.map +1 -1
  181. package/sdk/types/index.d.ts +2 -1
  182. package/sdk/types/index.d.ts.map +1 -1
  183. package/sdk/types/index.js +15 -0
  184. package/sdk/types/index.js.map +1 -1
  185. package/sdk/types/unrecognized.d.ts +10 -0
  186. package/sdk/types/unrecognized.d.ts.map +1 -0
  187. package/sdk/types/unrecognized.js +26 -0
  188. package/sdk/types/unrecognized.js.map +1 -0
  189. package/src/funcs/hrisCreateHrisBenefit.ts +170 -0
  190. package/src/funcs/hrisCreateHrisDeduction.ts +171 -0
  191. package/src/funcs/hrisGetHrisBenefit.ts +173 -0
  192. package/src/funcs/hrisGetHrisDeduction.ts +173 -0
  193. package/src/funcs/hrisListHrisBenefits.ts +177 -0
  194. package/src/funcs/hrisListHrisDeductions.ts +180 -0
  195. package/src/funcs/hrisPatchHrisBenefit.ts +174 -0
  196. package/src/funcs/hrisPatchHrisDeduction.ts +174 -0
  197. package/src/funcs/hrisRemoveHrisBenefit.ts +175 -0
  198. package/src/funcs/hrisRemoveHrisDeduction.ts +176 -0
  199. package/src/funcs/hrisUpdateHrisBenefit.ts +174 -0
  200. package/src/funcs/hrisUpdateHrisDeduction.ts +175 -0
  201. package/src/funcs/messagingListMessagingMessages.ts +1 -0
  202. package/src/lib/config.ts +3 -3
  203. package/src/sdk/benefit.ts +100 -0
  204. package/src/sdk/deduction.ts +100 -0
  205. package/src/sdk/hris.ts +180 -0
  206. package/src/sdk/models/operations/createhrisbenefit.ts +59 -0
  207. package/src/sdk/models/operations/createhrisdeduction.ts +59 -0
  208. package/src/sdk/models/operations/gethrisbenefit.ts +57 -0
  209. package/src/sdk/models/operations/gethrisdeduction.ts +57 -0
  210. package/src/sdk/models/operations/index.ts +12 -0
  211. package/src/sdk/models/operations/listhrisbenefits.ts +83 -0
  212. package/src/sdk/models/operations/listhrisdeductions.ts +104 -0
  213. package/src/sdk/models/operations/listmessagingmessages.ts +8 -1
  214. package/src/sdk/models/operations/patchhrisbenefit.ts +65 -0
  215. package/src/sdk/models/operations/patchhrisdeduction.ts +65 -0
  216. package/src/sdk/models/operations/removehrisbenefit.ts +75 -0
  217. package/src/sdk/models/operations/removehrisdeduction.ts +75 -0
  218. package/src/sdk/models/operations/updatehrisbenefit.ts +65 -0
  219. package/src/sdk/models/operations/updatehrisdeduction.ts +65 -0
  220. package/src/sdk/models/shared/accountinglineitem.ts +16 -0
  221. package/src/sdk/models/shared/accountingreference.ts +55 -0
  222. package/src/sdk/models/shared/hrisbenefit.ts +255 -0
  223. package/src/sdk/models/shared/hrisdeduction.ts +202 -0
  224. package/src/sdk/models/shared/hrispayslip.ts +9 -0
  225. package/src/sdk/models/shared/index.ts +4 -0
  226. package/src/sdk/models/shared/integrationsupport.ts +54 -0
  227. package/src/sdk/models/shared/messagingmessage.ts +6 -0
  228. package/src/sdk/models/shared/propertyconnectionpermissions.ts +4 -0
  229. package/src/sdk/models/shared/propertyhrispayslipdeduction.ts +135 -0
  230. package/src/sdk/models/shared/uccall.ts +6 -0
  231. package/src/sdk/models/shared/webhook.ts +2 -0
  232. package/src/sdk/sdk.ts +12 -0
  233. package/src/sdk/types/enums.ts +1 -21
  234. package/src/sdk/types/index.ts +2 -1
  235. package/src/sdk/types/unrecognized.ts +27 -0
@@ -0,0 +1,57 @@
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
+
8
+ export type GetHrisDeductionRequest = {
9
+ /**
10
+ * ID of the connection
11
+ */
12
+ connectionId: string;
13
+ /**
14
+ * Comma-delimited fields to return
15
+ */
16
+ fields?: Array<string> | undefined;
17
+ /**
18
+ * ID of the Deduction
19
+ */
20
+ id: string;
21
+ /**
22
+ * Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
23
+ */
24
+ raw?: string | undefined;
25
+ };
26
+
27
+ /** @internal */
28
+ export type GetHrisDeductionRequest$Outbound = {
29
+ connection_id: string;
30
+ fields?: Array<string> | undefined;
31
+ id: string;
32
+ raw?: string | undefined;
33
+ };
34
+
35
+ /** @internal */
36
+ export const GetHrisDeductionRequest$outboundSchema: z.ZodType<
37
+ GetHrisDeductionRequest$Outbound,
38
+ z.ZodTypeDef,
39
+ GetHrisDeductionRequest
40
+ > = z.object({
41
+ connectionId: z.string(),
42
+ fields: z.array(z.string()).optional(),
43
+ id: z.string(),
44
+ raw: z.string().optional(),
45
+ }).transform((v) => {
46
+ return remap$(v, {
47
+ connectionId: "connection_id",
48
+ });
49
+ });
50
+
51
+ export function getHrisDeductionRequestToJSON(
52
+ getHrisDeductionRequest: GetHrisDeductionRequest,
53
+ ): string {
54
+ return JSON.stringify(
55
+ GetHrisDeductionRequest$outboundSchema.parse(getHrisDeductionRequest),
56
+ );
57
+ }
@@ -39,7 +39,9 @@ export * from "./createcrmlead.js";
39
39
  export * from "./createcrmpipeline.js";
40
40
  export * from "./creategenaiembedding.js";
41
41
  export * from "./creategenaiprompt.js";
42
+ export * from "./createhrisbenefit.js";
42
43
  export * from "./createhriscompany.js";
44
+ export * from "./createhrisdeduction.js";
43
45
  export * from "./createhrisdevice.js";
44
46
  export * from "./createhrisemployee.js";
45
47
  export * from "./createhrisgroup.js";
@@ -124,7 +126,9 @@ export * from "./getcrmevent.js";
124
126
  export * from "./getcrmlead.js";
125
127
  export * from "./getcrmpipeline.js";
126
128
  export * from "./getgenaimodel.js";
129
+ export * from "./gethrisbenefit.js";
127
130
  export * from "./gethriscompany.js";
131
+ export * from "./gethrisdeduction.js";
128
132
  export * from "./gethrisdevice.js";
129
133
  export * from "./gethrisemployee.js";
130
134
  export * from "./gethrisgroup.js";
@@ -224,7 +228,9 @@ export * from "./listcrmpipelines.js";
224
228
  export * from "./listenrichcompanies.js";
225
229
  export * from "./listenrichpeople.js";
226
230
  export * from "./listgenaimodels.js";
231
+ export * from "./listhrisbenefits.js";
227
232
  export * from "./listhriscompanies.js";
233
+ export * from "./listhrisdeductions.js";
228
234
  export * from "./listhrisdevices.js";
229
235
  export * from "./listhrisemployees.js";
230
236
  export * from "./listhrisgroups.js";
@@ -313,7 +319,9 @@ export * from "./patchcrmdeal.js";
313
319
  export * from "./patchcrmevent.js";
314
320
  export * from "./patchcrmlead.js";
315
321
  export * from "./patchcrmpipeline.js";
322
+ export * from "./patchhrisbenefit.js";
316
323
  export * from "./patchhriscompany.js";
324
+ export * from "./patchhrisdeduction.js";
317
325
  export * from "./patchhrisdevice.js";
318
326
  export * from "./patchhrisemployee.js";
319
327
  export * from "./patchhrisgroup.js";
@@ -392,7 +400,9 @@ export * from "./removecrmdeal.js";
392
400
  export * from "./removecrmevent.js";
393
401
  export * from "./removecrmlead.js";
394
402
  export * from "./removecrmpipeline.js";
403
+ export * from "./removehrisbenefit.js";
395
404
  export * from "./removehriscompany.js";
405
+ export * from "./removehrisdeduction.js";
396
406
  export * from "./removehrisdevice.js";
397
407
  export * from "./removehrisemployee.js";
398
408
  export * from "./removehrisgroup.js";
@@ -469,7 +479,9 @@ export * from "./updatecrmdeal.js";
469
479
  export * from "./updatecrmevent.js";
470
480
  export * from "./updatecrmlead.js";
471
481
  export * from "./updatecrmpipeline.js";
482
+ export * from "./updatehrisbenefit.js";
472
483
  export * from "./updatehriscompany.js";
484
+ export * from "./updatehrisdeduction.js";
473
485
  export * from "./updatehrisdevice.js";
474
486
  export * from "./updatehrisemployee.js";
475
487
  export * from "./updatehrisgroup.js";
@@ -0,0 +1,83 @@
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
+
8
+ export type ListHrisBenefitsRequest = {
9
+ /**
10
+ * The company ID to filter by
11
+ */
12
+ companyId?: string | undefined;
13
+ /**
14
+ * ID of the connection
15
+ */
16
+ connectionId: string;
17
+ /**
18
+ * Comma-delimited fields to return
19
+ */
20
+ fields?: Array<string> | undefined;
21
+ limit?: number | undefined;
22
+ offset?: number | undefined;
23
+ order?: string | undefined;
24
+ /**
25
+ * Query string to search. eg. email address or name
26
+ */
27
+ query?: string | undefined;
28
+ /**
29
+ * Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
30
+ */
31
+ raw?: string | undefined;
32
+ sort?: string | undefined;
33
+ /**
34
+ * Return only results whose updated date is equal or greater to this value
35
+ */
36
+ updatedGte?: string | undefined;
37
+ };
38
+
39
+ /** @internal */
40
+ export type ListHrisBenefitsRequest$Outbound = {
41
+ company_id?: string | undefined;
42
+ connection_id: string;
43
+ fields?: Array<string> | undefined;
44
+ limit?: number | undefined;
45
+ offset?: number | undefined;
46
+ order?: string | undefined;
47
+ query?: string | undefined;
48
+ raw?: string | undefined;
49
+ sort?: string | undefined;
50
+ updated_gte?: string | undefined;
51
+ };
52
+
53
+ /** @internal */
54
+ export const ListHrisBenefitsRequest$outboundSchema: z.ZodType<
55
+ ListHrisBenefitsRequest$Outbound,
56
+ z.ZodTypeDef,
57
+ ListHrisBenefitsRequest
58
+ > = z.object({
59
+ companyId: z.string().optional(),
60
+ connectionId: z.string(),
61
+ fields: z.array(z.string()).optional(),
62
+ limit: z.number().optional(),
63
+ offset: z.number().optional(),
64
+ order: z.string().optional(),
65
+ query: z.string().optional(),
66
+ raw: z.string().optional(),
67
+ sort: z.string().optional(),
68
+ updatedGte: z.string().optional(),
69
+ }).transform((v) => {
70
+ return remap$(v, {
71
+ companyId: "company_id",
72
+ connectionId: "connection_id",
73
+ updatedGte: "updated_gte",
74
+ });
75
+ });
76
+
77
+ export function listHrisBenefitsRequestToJSON(
78
+ listHrisBenefitsRequest: ListHrisBenefitsRequest,
79
+ ): string {
80
+ return JSON.stringify(
81
+ ListHrisBenefitsRequest$outboundSchema.parse(listHrisBenefitsRequest),
82
+ );
83
+ }
@@ -0,0 +1,104 @@
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
+
8
+ export type ListHrisDeductionsRequest = {
9
+ /**
10
+ * The benefit ID to filter by
11
+ */
12
+ benefitId?: string | undefined;
13
+ /**
14
+ * The company ID to filter by
15
+ */
16
+ companyId?: string | undefined;
17
+ /**
18
+ * ID of the connection
19
+ */
20
+ connectionId: string;
21
+ /**
22
+ * Comma-delimited fields to return
23
+ */
24
+ fields?: Array<string> | undefined;
25
+ limit?: number | undefined;
26
+ offset?: number | undefined;
27
+ order?: string | undefined;
28
+ /**
29
+ * The payslip ID to filter by
30
+ */
31
+ payslipId?: string | undefined;
32
+ /**
33
+ * Query string to search. eg. email address or name
34
+ */
35
+ query?: string | undefined;
36
+ /**
37
+ * Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
38
+ */
39
+ raw?: string | undefined;
40
+ sort?: string | undefined;
41
+ /**
42
+ * Return only results whose updated date is equal or greater to this value
43
+ */
44
+ updatedGte?: string | undefined;
45
+ /**
46
+ * The user/employee ID to filter by
47
+ */
48
+ userId?: string | undefined;
49
+ };
50
+
51
+ /** @internal */
52
+ export type ListHrisDeductionsRequest$Outbound = {
53
+ benefit_id?: string | undefined;
54
+ company_id?: string | undefined;
55
+ connection_id: string;
56
+ fields?: Array<string> | undefined;
57
+ limit?: number | undefined;
58
+ offset?: number | undefined;
59
+ order?: string | undefined;
60
+ payslip_id?: string | undefined;
61
+ query?: string | undefined;
62
+ raw?: string | undefined;
63
+ sort?: string | undefined;
64
+ updated_gte?: string | undefined;
65
+ user_id?: string | undefined;
66
+ };
67
+
68
+ /** @internal */
69
+ export const ListHrisDeductionsRequest$outboundSchema: z.ZodType<
70
+ ListHrisDeductionsRequest$Outbound,
71
+ z.ZodTypeDef,
72
+ ListHrisDeductionsRequest
73
+ > = z.object({
74
+ benefitId: z.string().optional(),
75
+ companyId: z.string().optional(),
76
+ connectionId: z.string(),
77
+ fields: z.array(z.string()).optional(),
78
+ limit: z.number().optional(),
79
+ offset: z.number().optional(),
80
+ order: z.string().optional(),
81
+ payslipId: z.string().optional(),
82
+ query: z.string().optional(),
83
+ raw: z.string().optional(),
84
+ sort: z.string().optional(),
85
+ updatedGte: z.string().optional(),
86
+ userId: z.string().optional(),
87
+ }).transform((v) => {
88
+ return remap$(v, {
89
+ benefitId: "benefit_id",
90
+ companyId: "company_id",
91
+ connectionId: "connection_id",
92
+ payslipId: "payslip_id",
93
+ updatedGte: "updated_gte",
94
+ userId: "user_id",
95
+ });
96
+ });
97
+
98
+ export function listHrisDeductionsRequestToJSON(
99
+ listHrisDeductionsRequest: ListHrisDeductionsRequest,
100
+ ): string {
101
+ return JSON.stringify(
102
+ ListHrisDeductionsRequest$outboundSchema.parse(listHrisDeductionsRequest),
103
+ );
104
+ }
@@ -7,7 +7,7 @@ import { remap as remap$ } from "../../../lib/primitives.js";
7
7
 
8
8
  export type ListMessagingMessagesRequest = {
9
9
  /**
10
- * The channel ID to filter by
10
+ * The channel ID to filter by. You can also use these aliases; INBOX, SENT or DRAFT
11
11
  */
12
12
  channelId?: string | undefined;
13
13
  /**
@@ -58,6 +58,10 @@ export type ListMessagingMessagesRequest = {
58
58
  * The user/employee ID to filter by
59
59
  */
60
60
  userId?: string | undefined;
61
+ /**
62
+ * The user/employee ID to filter by
63
+ */
64
+ userMentionedId?: string | undefined;
61
65
  };
62
66
 
63
67
  /** @internal */
@@ -78,6 +82,7 @@ export type ListMessagingMessagesRequest$Outbound = {
78
82
  start_gte?: string | undefined;
79
83
  updated_gte?: string | undefined;
80
84
  user_id?: string | undefined;
85
+ user_mentioned_id?: string | undefined;
81
86
  };
82
87
 
83
88
  /** @internal */
@@ -102,6 +107,7 @@ export const ListMessagingMessagesRequest$outboundSchema: z.ZodType<
102
107
  startGte: z.string().optional(),
103
108
  updatedGte: z.string().optional(),
104
109
  userId: z.string().optional(),
110
+ userMentionedId: z.string().optional(),
105
111
  }).transform((v) => {
106
112
  return remap$(v, {
107
113
  channelId: "channel_id",
@@ -112,6 +118,7 @@ export const ListMessagingMessagesRequest$outboundSchema: z.ZodType<
112
118
  startGte: "start_gte",
113
119
  updatedGte: "updated_gte",
114
120
  userId: "user_id",
121
+ userMentionedId: "user_mentioned_id",
115
122
  });
116
123
  });
117
124
 
@@ -0,0 +1,65 @@
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 * as shared from "../shared/index.js";
8
+
9
+ export type PatchHrisBenefitRequest = {
10
+ /**
11
+ * Company-wide benefit plans available to employees.
12
+ */
13
+ hrisBenefit: shared.HrisBenefit;
14
+ /**
15
+ * ID of the connection
16
+ */
17
+ connectionId: string;
18
+ /**
19
+ * Comma-delimited fields to return
20
+ */
21
+ fields?: Array<string> | undefined;
22
+ /**
23
+ * ID of the Benefit
24
+ */
25
+ id: string;
26
+ /**
27
+ * Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
28
+ */
29
+ raw?: string | undefined;
30
+ };
31
+
32
+ /** @internal */
33
+ export type PatchHrisBenefitRequest$Outbound = {
34
+ HrisBenefit: shared.HrisBenefit$Outbound;
35
+ connection_id: string;
36
+ fields?: Array<string> | undefined;
37
+ id: string;
38
+ raw?: string | undefined;
39
+ };
40
+
41
+ /** @internal */
42
+ export const PatchHrisBenefitRequest$outboundSchema: z.ZodType<
43
+ PatchHrisBenefitRequest$Outbound,
44
+ z.ZodTypeDef,
45
+ PatchHrisBenefitRequest
46
+ > = z.object({
47
+ hrisBenefit: shared.HrisBenefit$outboundSchema,
48
+ connectionId: z.string(),
49
+ fields: z.array(z.string()).optional(),
50
+ id: z.string(),
51
+ raw: z.string().optional(),
52
+ }).transform((v) => {
53
+ return remap$(v, {
54
+ hrisBenefit: "HrisBenefit",
55
+ connectionId: "connection_id",
56
+ });
57
+ });
58
+
59
+ export function patchHrisBenefitRequestToJSON(
60
+ patchHrisBenefitRequest: PatchHrisBenefitRequest,
61
+ ): string {
62
+ return JSON.stringify(
63
+ PatchHrisBenefitRequest$outboundSchema.parse(patchHrisBenefitRequest),
64
+ );
65
+ }
@@ -0,0 +1,65 @@
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 * as shared from "../shared/index.js";
8
+
9
+ export type PatchHrisDeductionRequest = {
10
+ /**
11
+ * Employee-specific deduction/benefit enrolment.
12
+ */
13
+ hrisDeduction: shared.HrisDeduction;
14
+ /**
15
+ * ID of the connection
16
+ */
17
+ connectionId: string;
18
+ /**
19
+ * Comma-delimited fields to return
20
+ */
21
+ fields?: Array<string> | undefined;
22
+ /**
23
+ * ID of the Deduction
24
+ */
25
+ id: string;
26
+ /**
27
+ * Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
28
+ */
29
+ raw?: string | undefined;
30
+ };
31
+
32
+ /** @internal */
33
+ export type PatchHrisDeductionRequest$Outbound = {
34
+ HrisDeduction: shared.HrisDeduction$Outbound;
35
+ connection_id: string;
36
+ fields?: Array<string> | undefined;
37
+ id: string;
38
+ raw?: string | undefined;
39
+ };
40
+
41
+ /** @internal */
42
+ export const PatchHrisDeductionRequest$outboundSchema: z.ZodType<
43
+ PatchHrisDeductionRequest$Outbound,
44
+ z.ZodTypeDef,
45
+ PatchHrisDeductionRequest
46
+ > = z.object({
47
+ hrisDeduction: shared.HrisDeduction$outboundSchema,
48
+ connectionId: z.string(),
49
+ fields: z.array(z.string()).optional(),
50
+ id: z.string(),
51
+ raw: z.string().optional(),
52
+ }).transform((v) => {
53
+ return remap$(v, {
54
+ hrisDeduction: "HrisDeduction",
55
+ connectionId: "connection_id",
56
+ });
57
+ });
58
+
59
+ export function patchHrisDeductionRequestToJSON(
60
+ patchHrisDeductionRequest: PatchHrisDeductionRequest,
61
+ ): string {
62
+ return JSON.stringify(
63
+ PatchHrisDeductionRequest$outboundSchema.parse(patchHrisDeductionRequest),
64
+ );
65
+ }
@@ -0,0 +1,75 @@
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 { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ export type RemoveHrisBenefitRequest = {
12
+ /**
13
+ * ID of the connection
14
+ */
15
+ connectionId: string;
16
+ /**
17
+ * ID of the Benefit
18
+ */
19
+ id: string;
20
+ };
21
+
22
+ export type RemoveHrisBenefitResponse = {
23
+ headers: { [k: string]: Array<string> };
24
+ };
25
+
26
+ /** @internal */
27
+ export type RemoveHrisBenefitRequest$Outbound = {
28
+ connection_id: string;
29
+ id: string;
30
+ };
31
+
32
+ /** @internal */
33
+ export const RemoveHrisBenefitRequest$outboundSchema: z.ZodType<
34
+ RemoveHrisBenefitRequest$Outbound,
35
+ z.ZodTypeDef,
36
+ RemoveHrisBenefitRequest
37
+ > = z.object({
38
+ connectionId: z.string(),
39
+ id: z.string(),
40
+ }).transform((v) => {
41
+ return remap$(v, {
42
+ connectionId: "connection_id",
43
+ });
44
+ });
45
+
46
+ export function removeHrisBenefitRequestToJSON(
47
+ removeHrisBenefitRequest: RemoveHrisBenefitRequest,
48
+ ): string {
49
+ return JSON.stringify(
50
+ RemoveHrisBenefitRequest$outboundSchema.parse(removeHrisBenefitRequest),
51
+ );
52
+ }
53
+
54
+ /** @internal */
55
+ export const RemoveHrisBenefitResponse$inboundSchema: z.ZodType<
56
+ RemoveHrisBenefitResponse,
57
+ z.ZodTypeDef,
58
+ unknown
59
+ > = z.object({
60
+ Headers: z.record(z.array(z.string())).default({}),
61
+ }).transform((v) => {
62
+ return remap$(v, {
63
+ "Headers": "headers",
64
+ });
65
+ });
66
+
67
+ export function removeHrisBenefitResponseFromJSON(
68
+ jsonString: string,
69
+ ): SafeParseResult<RemoveHrisBenefitResponse, SDKValidationError> {
70
+ return safeParse(
71
+ jsonString,
72
+ (x) => RemoveHrisBenefitResponse$inboundSchema.parse(JSON.parse(x)),
73
+ `Failed to parse 'RemoveHrisBenefitResponse' from JSON`,
74
+ );
75
+ }
@@ -0,0 +1,75 @@
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 { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ export type RemoveHrisDeductionRequest = {
12
+ /**
13
+ * ID of the connection
14
+ */
15
+ connectionId: string;
16
+ /**
17
+ * ID of the Deduction
18
+ */
19
+ id: string;
20
+ };
21
+
22
+ export type RemoveHrisDeductionResponse = {
23
+ headers: { [k: string]: Array<string> };
24
+ };
25
+
26
+ /** @internal */
27
+ export type RemoveHrisDeductionRequest$Outbound = {
28
+ connection_id: string;
29
+ id: string;
30
+ };
31
+
32
+ /** @internal */
33
+ export const RemoveHrisDeductionRequest$outboundSchema: z.ZodType<
34
+ RemoveHrisDeductionRequest$Outbound,
35
+ z.ZodTypeDef,
36
+ RemoveHrisDeductionRequest
37
+ > = z.object({
38
+ connectionId: z.string(),
39
+ id: z.string(),
40
+ }).transform((v) => {
41
+ return remap$(v, {
42
+ connectionId: "connection_id",
43
+ });
44
+ });
45
+
46
+ export function removeHrisDeductionRequestToJSON(
47
+ removeHrisDeductionRequest: RemoveHrisDeductionRequest,
48
+ ): string {
49
+ return JSON.stringify(
50
+ RemoveHrisDeductionRequest$outboundSchema.parse(removeHrisDeductionRequest),
51
+ );
52
+ }
53
+
54
+ /** @internal */
55
+ export const RemoveHrisDeductionResponse$inboundSchema: z.ZodType<
56
+ RemoveHrisDeductionResponse,
57
+ z.ZodTypeDef,
58
+ unknown
59
+ > = z.object({
60
+ Headers: z.record(z.array(z.string())).default({}),
61
+ }).transform((v) => {
62
+ return remap$(v, {
63
+ "Headers": "headers",
64
+ });
65
+ });
66
+
67
+ export function removeHrisDeductionResponseFromJSON(
68
+ jsonString: string,
69
+ ): SafeParseResult<RemoveHrisDeductionResponse, SDKValidationError> {
70
+ return safeParse(
71
+ jsonString,
72
+ (x) => RemoveHrisDeductionResponse$inboundSchema.parse(JSON.parse(x)),
73
+ `Failed to parse 'RemoveHrisDeductionResponse' from JSON`,
74
+ );
75
+ }
@@ -0,0 +1,65 @@
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 * as shared from "../shared/index.js";
8
+
9
+ export type UpdateHrisBenefitRequest = {
10
+ /**
11
+ * Company-wide benefit plans available to employees.
12
+ */
13
+ hrisBenefit: shared.HrisBenefit;
14
+ /**
15
+ * ID of the connection
16
+ */
17
+ connectionId: string;
18
+ /**
19
+ * Comma-delimited fields to return
20
+ */
21
+ fields?: Array<string> | undefined;
22
+ /**
23
+ * ID of the Benefit
24
+ */
25
+ id: string;
26
+ /**
27
+ * Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
28
+ */
29
+ raw?: string | undefined;
30
+ };
31
+
32
+ /** @internal */
33
+ export type UpdateHrisBenefitRequest$Outbound = {
34
+ HrisBenefit: shared.HrisBenefit$Outbound;
35
+ connection_id: string;
36
+ fields?: Array<string> | undefined;
37
+ id: string;
38
+ raw?: string | undefined;
39
+ };
40
+
41
+ /** @internal */
42
+ export const UpdateHrisBenefitRequest$outboundSchema: z.ZodType<
43
+ UpdateHrisBenefitRequest$Outbound,
44
+ z.ZodTypeDef,
45
+ UpdateHrisBenefitRequest
46
+ > = z.object({
47
+ hrisBenefit: shared.HrisBenefit$outboundSchema,
48
+ connectionId: z.string(),
49
+ fields: z.array(z.string()).optional(),
50
+ id: z.string(),
51
+ raw: z.string().optional(),
52
+ }).transform((v) => {
53
+ return remap$(v, {
54
+ hrisBenefit: "HrisBenefit",
55
+ connectionId: "connection_id",
56
+ });
57
+ });
58
+
59
+ export function updateHrisBenefitRequestToJSON(
60
+ updateHrisBenefitRequest: UpdateHrisBenefitRequest,
61
+ ): string {
62
+ return JSON.stringify(
63
+ UpdateHrisBenefitRequest$outboundSchema.parse(updateHrisBenefitRequest),
64
+ );
65
+ }