@unified-api/typescript-sdk 2.52.0 → 2.54.0

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 (174) hide show
  1. package/README.md +12 -0
  2. package/docs/sdks/device/README.md +519 -0
  3. package/docs/sdks/hris/README.md +512 -0
  4. package/funcs/deviceCreateHrisDevice.d.ts +14 -0
  5. package/funcs/deviceCreateHrisDevice.d.ts.map +1 -0
  6. package/funcs/deviceCreateHrisDevice.js +109 -0
  7. package/funcs/deviceCreateHrisDevice.js.map +1 -0
  8. package/funcs/deviceGetHrisDevice.d.ts +14 -0
  9. package/funcs/deviceGetHrisDevice.d.ts.map +1 -0
  10. package/funcs/deviceGetHrisDevice.js +112 -0
  11. package/funcs/deviceGetHrisDevice.js.map +1 -0
  12. package/funcs/deviceListHrisDevices.d.ts +14 -0
  13. package/funcs/deviceListHrisDevices.d.ts.map +1 -0
  14. package/funcs/deviceListHrisDevices.js +116 -0
  15. package/funcs/deviceListHrisDevices.js.map +1 -0
  16. package/funcs/devicePatchHrisDevice.d.ts +14 -0
  17. package/funcs/devicePatchHrisDevice.d.ts.map +1 -0
  18. package/funcs/devicePatchHrisDevice.js +113 -0
  19. package/funcs/devicePatchHrisDevice.js.map +1 -0
  20. package/funcs/deviceRemoveHrisDevice.d.ts +13 -0
  21. package/funcs/deviceRemoveHrisDevice.d.ts.map +1 -0
  22. package/funcs/deviceRemoveHrisDevice.js +110 -0
  23. package/funcs/deviceRemoveHrisDevice.js.map +1 -0
  24. package/funcs/deviceUpdateHrisDevice.d.ts +14 -0
  25. package/funcs/deviceUpdateHrisDevice.d.ts.map +1 -0
  26. package/funcs/deviceUpdateHrisDevice.js +113 -0
  27. package/funcs/deviceUpdateHrisDevice.js.map +1 -0
  28. package/funcs/fileListStorageFiles.js +1 -0
  29. package/funcs/fileListStorageFiles.js.map +1 -1
  30. package/funcs/hrisCreateHrisDevice.d.ts +14 -0
  31. package/funcs/hrisCreateHrisDevice.d.ts.map +1 -0
  32. package/funcs/hrisCreateHrisDevice.js +109 -0
  33. package/funcs/hrisCreateHrisDevice.js.map +1 -0
  34. package/funcs/hrisGetHrisDevice.d.ts +14 -0
  35. package/funcs/hrisGetHrisDevice.d.ts.map +1 -0
  36. package/funcs/hrisGetHrisDevice.js +112 -0
  37. package/funcs/hrisGetHrisDevice.js.map +1 -0
  38. package/funcs/hrisListHrisDevices.d.ts +14 -0
  39. package/funcs/hrisListHrisDevices.d.ts.map +1 -0
  40. package/funcs/hrisListHrisDevices.js +116 -0
  41. package/funcs/hrisListHrisDevices.js.map +1 -0
  42. package/funcs/hrisPatchHrisDevice.d.ts +14 -0
  43. package/funcs/hrisPatchHrisDevice.d.ts.map +1 -0
  44. package/funcs/hrisPatchHrisDevice.js +113 -0
  45. package/funcs/hrisPatchHrisDevice.js.map +1 -0
  46. package/funcs/hrisRemoveHrisDevice.d.ts +13 -0
  47. package/funcs/hrisRemoveHrisDevice.d.ts.map +1 -0
  48. package/funcs/hrisRemoveHrisDevice.js +110 -0
  49. package/funcs/hrisRemoveHrisDevice.js.map +1 -0
  50. package/funcs/hrisUpdateHrisDevice.d.ts +14 -0
  51. package/funcs/hrisUpdateHrisDevice.d.ts.map +1 -0
  52. package/funcs/hrisUpdateHrisDevice.js +113 -0
  53. package/funcs/hrisUpdateHrisDevice.js.map +1 -0
  54. package/funcs/storageListStorageFiles.js +1 -0
  55. package/funcs/storageListStorageFiles.js.map +1 -1
  56. package/jsr.json +1 -1
  57. package/lib/config.d.ts +2 -2
  58. package/lib/config.js +2 -2
  59. package/package.json +1 -1
  60. package/sdk/device.d.ts +30 -0
  61. package/sdk/device.d.ts.map +1 -0
  62. package/sdk/device.js +54 -0
  63. package/sdk/device.js.map +1 -0
  64. package/sdk/hris.d.ts +24 -0
  65. package/sdk/hris.d.ts.map +1 -1
  66. package/sdk/hris.js +42 -0
  67. package/sdk/hris.js.map +1 -1
  68. package/sdk/models/operations/createhrisdevice.d.ts +40 -0
  69. package/sdk/models/operations/createhrisdevice.d.ts.map +1 -0
  70. package/sdk/models/operations/createhrisdevice.js +75 -0
  71. package/sdk/models/operations/createhrisdevice.js.map +1 -0
  72. package/sdk/models/operations/gethrisdevice.d.ts +42 -0
  73. package/sdk/models/operations/gethrisdevice.d.ts.map +1 -0
  74. package/sdk/models/operations/gethrisdevice.js +72 -0
  75. package/sdk/models/operations/gethrisdevice.js.map +1 -0
  76. package/sdk/models/operations/index.d.ts +6 -0
  77. package/sdk/models/operations/index.d.ts.map +1 -1
  78. package/sdk/models/operations/index.js +6 -0
  79. package/sdk/models/operations/index.js.map +1 -1
  80. package/sdk/models/operations/listhrisdevices.d.ts +57 -0
  81. package/sdk/models/operations/listhrisdevices.d.ts.map +1 -0
  82. package/sdk/models/operations/listhrisdevices.js +89 -0
  83. package/sdk/models/operations/listhrisdevices.js.map +1 -0
  84. package/sdk/models/operations/liststoragefiles.d.ts +2 -0
  85. package/sdk/models/operations/liststoragefiles.d.ts.map +1 -1
  86. package/sdk/models/operations/liststoragefiles.js +2 -0
  87. package/sdk/models/operations/liststoragefiles.js.map +1 -1
  88. package/sdk/models/operations/patchhrisdevice.d.ts +45 -0
  89. package/sdk/models/operations/patchhrisdevice.d.ts.map +1 -0
  90. package/sdk/models/operations/patchhrisdevice.js +77 -0
  91. package/sdk/models/operations/patchhrisdevice.js.map +1 -0
  92. package/sdk/models/operations/removehrisdevice.d.ts +66 -0
  93. package/sdk/models/operations/removehrisdevice.d.ts.map +1 -0
  94. package/sdk/models/operations/removehrisdevice.js +105 -0
  95. package/sdk/models/operations/removehrisdevice.js.map +1 -0
  96. package/sdk/models/operations/updatehrisdevice.d.ts +45 -0
  97. package/sdk/models/operations/updatehrisdevice.d.ts.map +1 -0
  98. package/sdk/models/operations/updatehrisdevice.js +77 -0
  99. package/sdk/models/operations/updatehrisdevice.js.map +1 -0
  100. package/sdk/models/shared/accountingassociatedcontact.d.ts +34 -0
  101. package/sdk/models/shared/accountingassociatedcontact.d.ts.map +1 -0
  102. package/sdk/models/shared/accountingassociatedcontact.js +64 -0
  103. package/sdk/models/shared/accountingassociatedcontact.js.map +1 -0
  104. package/sdk/models/shared/accountingcontact.d.ts +3 -0
  105. package/sdk/models/shared/accountingcontact.d.ts.map +1 -1
  106. package/sdk/models/shared/accountingcontact.js +7 -0
  107. package/sdk/models/shared/accountingcontact.js.map +1 -1
  108. package/sdk/models/shared/accountinginvoice.d.ts +2 -0
  109. package/sdk/models/shared/accountinginvoice.d.ts.map +1 -1
  110. package/sdk/models/shared/accountinginvoice.js +2 -0
  111. package/sdk/models/shared/accountinginvoice.js.map +1 -1
  112. package/sdk/models/shared/atsjob.d.ts +3 -0
  113. package/sdk/models/shared/atsjob.d.ts.map +1 -1
  114. package/sdk/models/shared/atsjob.js +3 -0
  115. package/sdk/models/shared/atsjob.js.map +1 -1
  116. package/sdk/models/shared/atsjobopening.d.ts +63 -0
  117. package/sdk/models/shared/atsjobopening.d.ts.map +1 -0
  118. package/sdk/models/shared/atsjobopening.js +103 -0
  119. package/sdk/models/shared/atsjobopening.js.map +1 -0
  120. package/sdk/models/shared/hrisdevice.d.ts +74 -0
  121. package/sdk/models/shared/hrisdevice.d.ts.map +1 -0
  122. package/sdk/models/shared/hrisdevice.js +132 -0
  123. package/sdk/models/shared/hrisdevice.js.map +1 -0
  124. package/sdk/models/shared/index.d.ts +3 -0
  125. package/sdk/models/shared/index.d.ts.map +1 -1
  126. package/sdk/models/shared/index.js +3 -0
  127. package/sdk/models/shared/index.js.map +1 -1
  128. package/sdk/models/shared/propertyconnectionpermissions.d.ts +6 -0
  129. package/sdk/models/shared/propertyconnectionpermissions.d.ts.map +1 -1
  130. package/sdk/models/shared/propertyconnectionpermissions.js +2 -0
  131. package/sdk/models/shared/propertyconnectionpermissions.js.map +1 -1
  132. package/sdk/models/shared/webhook.d.ts +3 -0
  133. package/sdk/models/shared/webhook.d.ts.map +1 -1
  134. package/sdk/models/shared/webhook.js +1 -0
  135. package/sdk/models/shared/webhook.js.map +1 -1
  136. package/sdk/sdk.d.ts +3 -0
  137. package/sdk/sdk.d.ts.map +1 -1
  138. package/sdk/sdk.js +4 -0
  139. package/sdk/sdk.js.map +1 -1
  140. package/src/funcs/deviceCreateHrisDevice.ts +163 -0
  141. package/src/funcs/deviceGetHrisDevice.ts +166 -0
  142. package/src/funcs/deviceListHrisDevices.ts +170 -0
  143. package/src/funcs/devicePatchHrisDevice.ts +167 -0
  144. package/src/funcs/deviceRemoveHrisDevice.ts +169 -0
  145. package/src/funcs/deviceUpdateHrisDevice.ts +167 -0
  146. package/src/funcs/fileListStorageFiles.ts +1 -0
  147. package/src/funcs/hrisCreateHrisDevice.ts +163 -0
  148. package/src/funcs/hrisGetHrisDevice.ts +166 -0
  149. package/src/funcs/hrisListHrisDevices.ts +170 -0
  150. package/src/funcs/hrisPatchHrisDevice.ts +167 -0
  151. package/src/funcs/hrisRemoveHrisDevice.ts +169 -0
  152. package/src/funcs/hrisUpdateHrisDevice.ts +167 -0
  153. package/src/funcs/storageListStorageFiles.ts +1 -0
  154. package/src/lib/config.ts +2 -2
  155. package/src/sdk/device.ts +100 -0
  156. package/src/sdk/hris.ts +90 -0
  157. package/src/sdk/models/operations/createhrisdevice.ts +92 -0
  158. package/src/sdk/models/operations/gethrisdevice.ts +92 -0
  159. package/src/sdk/models/operations/index.ts +6 -0
  160. package/src/sdk/models/operations/listhrisdevices.ts +124 -0
  161. package/src/sdk/models/operations/liststoragefiles.ts +4 -0
  162. package/src/sdk/models/operations/patchhrisdevice.ts +99 -0
  163. package/src/sdk/models/operations/removehrisdevice.ts +151 -0
  164. package/src/sdk/models/operations/updatehrisdevice.ts +99 -0
  165. package/src/sdk/models/shared/accountingassociatedcontact.ts +82 -0
  166. package/src/sdk/models/shared/accountingcontact.ts +14 -0
  167. package/src/sdk/models/shared/accountinginvoice.ts +4 -0
  168. package/src/sdk/models/shared/atsjob.ts +10 -0
  169. package/src/sdk/models/shared/atsjobopening.ts +123 -0
  170. package/src/sdk/models/shared/hrisdevice.ts +176 -0
  171. package/src/sdk/models/shared/index.ts +3 -0
  172. package/src/sdk/models/shared/propertyconnectionpermissions.ts +2 -0
  173. package/src/sdk/models/shared/webhook.ts +1 -0
  174. package/src/sdk/sdk.ts +6 -0
@@ -0,0 +1,82 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { safeParse } from "../../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import {
10
+ AccountingEmail,
11
+ AccountingEmail$inboundSchema,
12
+ AccountingEmail$Outbound,
13
+ AccountingEmail$outboundSchema,
14
+ } from "./accountingemail.js";
15
+
16
+ export type AccountingAssociatedContact = {
17
+ emails?: Array<AccountingEmail> | undefined;
18
+ id?: string | undefined;
19
+ name?: string | undefined;
20
+ };
21
+
22
+ /** @internal */
23
+ export const AccountingAssociatedContact$inboundSchema: z.ZodType<
24
+ AccountingAssociatedContact,
25
+ z.ZodTypeDef,
26
+ unknown
27
+ > = z.object({
28
+ emails: z.array(AccountingEmail$inboundSchema).optional(),
29
+ id: z.string().optional(),
30
+ name: z.string().optional(),
31
+ });
32
+
33
+ /** @internal */
34
+ export type AccountingAssociatedContact$Outbound = {
35
+ emails?: Array<AccountingEmail$Outbound> | undefined;
36
+ id?: string | undefined;
37
+ name?: string | undefined;
38
+ };
39
+
40
+ /** @internal */
41
+ export const AccountingAssociatedContact$outboundSchema: z.ZodType<
42
+ AccountingAssociatedContact$Outbound,
43
+ z.ZodTypeDef,
44
+ AccountingAssociatedContact
45
+ > = z.object({
46
+ emails: z.array(AccountingEmail$outboundSchema).optional(),
47
+ id: z.string().optional(),
48
+ name: z.string().optional(),
49
+ });
50
+
51
+ /**
52
+ * @internal
53
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
54
+ */
55
+ export namespace AccountingAssociatedContact$ {
56
+ /** @deprecated use `AccountingAssociatedContact$inboundSchema` instead. */
57
+ export const inboundSchema = AccountingAssociatedContact$inboundSchema;
58
+ /** @deprecated use `AccountingAssociatedContact$outboundSchema` instead. */
59
+ export const outboundSchema = AccountingAssociatedContact$outboundSchema;
60
+ /** @deprecated use `AccountingAssociatedContact$Outbound` instead. */
61
+ export type Outbound = AccountingAssociatedContact$Outbound;
62
+ }
63
+
64
+ export function accountingAssociatedContactToJSON(
65
+ accountingAssociatedContact: AccountingAssociatedContact,
66
+ ): string {
67
+ return JSON.stringify(
68
+ AccountingAssociatedContact$outboundSchema.parse(
69
+ accountingAssociatedContact,
70
+ ),
71
+ );
72
+ }
73
+
74
+ export function accountingAssociatedContactFromJSON(
75
+ jsonString: string,
76
+ ): SafeParseResult<AccountingAssociatedContact, SDKValidationError> {
77
+ return safeParse(
78
+ jsonString,
79
+ (x) => AccountingAssociatedContact$inboundSchema.parse(JSON.parse(x)),
80
+ `Failed to parse 'AccountingAssociatedContact' from JSON`,
81
+ );
82
+ }
@@ -8,6 +8,12 @@ import { safeParse } from "../../../lib/schemas.js";
8
8
  import { ClosedEnum } from "../../types/enums.js";
9
9
  import { Result as SafeParseResult } from "../../types/fp.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+ import {
12
+ AccountingAssociatedContact,
13
+ AccountingAssociatedContact$inboundSchema,
14
+ AccountingAssociatedContact$Outbound,
15
+ AccountingAssociatedContact$outboundSchema,
16
+ } from "./accountingassociatedcontact.js";
11
17
  import {
12
18
  AccountingContactPaymentMethod,
13
19
  AccountingContactPaymentMethod$inboundSchema,
@@ -55,6 +61,7 @@ export const TaxExemption = {
55
61
  export type TaxExemption = ClosedEnum<typeof TaxExemption>;
56
62
 
57
63
  export type AccountingContact = {
64
+ associatedContacts?: Array<AccountingAssociatedContact> | undefined;
58
65
  billingAddress?: PropertyAccountingContactBillingAddress | undefined;
59
66
  companyName?: string | undefined;
60
67
  createdAt?: Date | undefined;
@@ -101,6 +108,8 @@ export const AccountingContact$inboundSchema: z.ZodType<
101
108
  z.ZodTypeDef,
102
109
  unknown
103
110
  > = z.object({
111
+ associated_contacts: z.array(AccountingAssociatedContact$inboundSchema)
112
+ .optional(),
104
113
  billing_address: PropertyAccountingContactBillingAddress$inboundSchema
105
114
  .optional(),
106
115
  company_name: z.string().optional(),
@@ -127,6 +136,7 @@ export const AccountingContact$inboundSchema: z.ZodType<
127
136
  .optional(),
128
137
  }).transform((v) => {
129
138
  return remap$(v, {
139
+ "associated_contacts": "associatedContacts",
130
140
  "billing_address": "billingAddress",
131
141
  "company_name": "companyName",
132
142
  "created_at": "createdAt",
@@ -144,6 +154,7 @@ export const AccountingContact$inboundSchema: z.ZodType<
144
154
 
145
155
  /** @internal */
146
156
  export type AccountingContact$Outbound = {
157
+ associated_contacts?: Array<AccountingAssociatedContact$Outbound> | undefined;
147
158
  billing_address?:
148
159
  | PropertyAccountingContactBillingAddress$Outbound
149
160
  | undefined;
@@ -175,6 +186,8 @@ export const AccountingContact$outboundSchema: z.ZodType<
175
186
  z.ZodTypeDef,
176
187
  AccountingContact
177
188
  > = z.object({
189
+ associatedContacts: z.array(AccountingAssociatedContact$outboundSchema)
190
+ .optional(),
178
191
  billingAddress: PropertyAccountingContactBillingAddress$outboundSchema
179
192
  .optional(),
180
193
  companyName: z.string().optional(),
@@ -199,6 +212,7 @@ export const AccountingContact$outboundSchema: z.ZodType<
199
212
  updatedAt: z.date().transform(v => v.toISOString()).optional(),
200
213
  }).transform((v) => {
201
214
  return remap$(v, {
215
+ associatedContacts: "associated_contacts",
202
216
  billingAddress: "billing_address",
203
217
  companyName: "company_name",
204
218
  createdAt: "created_at",
@@ -71,6 +71,7 @@ export type AccountingInvoice = {
71
71
  refundAmount?: number | undefined;
72
72
  refundReason?: string | undefined;
73
73
  refundedAt?: Date | undefined;
74
+ send?: boolean | undefined;
74
75
  status?: AccountingInvoiceStatus | undefined;
75
76
  taxAmount?: number | undefined;
76
77
  totalAmount?: number | undefined;
@@ -177,6 +178,7 @@ export const AccountingInvoice$inboundSchema: z.ZodType<
177
178
  refund_reason: z.string().optional(),
178
179
  refunded_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
179
180
  .optional(),
181
+ send: z.boolean().optional(),
180
182
  status: AccountingInvoiceStatus$inboundSchema.optional(),
181
183
  tax_amount: z.number().optional(),
182
184
  total_amount: z.number().optional(),
@@ -230,6 +232,7 @@ export type AccountingInvoice$Outbound = {
230
232
  refund_amount?: number | undefined;
231
233
  refund_reason?: string | undefined;
232
234
  refunded_at?: string | undefined;
235
+ send?: boolean | undefined;
233
236
  status?: string | undefined;
234
237
  tax_amount?: number | undefined;
235
238
  total_amount?: number | undefined;
@@ -265,6 +268,7 @@ export const AccountingInvoice$outboundSchema: z.ZodType<
265
268
  refundAmount: z.number().optional(),
266
269
  refundReason: z.string().optional(),
267
270
  refundedAt: z.date().transform(v => v.toISOString()).optional(),
271
+ send: z.boolean().optional(),
268
272
  status: AccountingInvoiceStatus$outboundSchema.optional(),
269
273
  taxAmount: z.number().optional(),
270
274
  totalAmount: z.number().optional(),
@@ -26,6 +26,12 @@ import {
26
26
  AtsGroup$Outbound,
27
27
  AtsGroup$outboundSchema,
28
28
  } from "./atsgroup.js";
29
+ import {
30
+ AtsJobOpening,
31
+ AtsJobOpening$inboundSchema,
32
+ AtsJobOpening$Outbound,
33
+ AtsJobOpening$outboundSchema,
34
+ } from "./atsjobopening.js";
29
35
  import {
30
36
  AtsJobPosting,
31
37
  AtsJobPosting$inboundSchema,
@@ -90,6 +96,7 @@ export type AtsJob = {
90
96
  metadata?: Array<AtsMetadata> | undefined;
91
97
  name?: string | undefined;
92
98
  numberOfOpenings?: number | undefined;
99
+ openings?: Array<AtsJobOpening> | undefined;
93
100
  /**
94
101
  * Public job postings
95
102
  */
@@ -167,6 +174,7 @@ export const AtsJob$inboundSchema: z.ZodType<AtsJob, z.ZodTypeDef, unknown> = z
167
174
  metadata: z.array(AtsMetadata$inboundSchema).optional(),
168
175
  name: z.string().optional(),
169
176
  number_of_openings: z.number().optional(),
177
+ openings: z.array(AtsJobOpening$inboundSchema).optional(),
170
178
  postings: z.array(AtsJobPosting$inboundSchema).optional(),
171
179
  public_job_urls: z.array(z.string()).optional(),
172
180
  questions: z.array(AtsJobQuestion$inboundSchema).optional(),
@@ -209,6 +217,7 @@ export type AtsJob$Outbound = {
209
217
  metadata?: Array<AtsMetadata$Outbound> | undefined;
210
218
  name?: string | undefined;
211
219
  number_of_openings?: number | undefined;
220
+ openings?: Array<AtsJobOpening$Outbound> | undefined;
212
221
  postings?: Array<AtsJobPosting$Outbound> | undefined;
213
222
  public_job_urls?: Array<string> | undefined;
214
223
  questions?: Array<AtsJobQuestion$Outbound> | undefined;
@@ -240,6 +249,7 @@ export const AtsJob$outboundSchema: z.ZodType<
240
249
  metadata: z.array(AtsMetadata$outboundSchema).optional(),
241
250
  name: z.string().optional(),
242
251
  numberOfOpenings: z.number().optional(),
252
+ openings: z.array(AtsJobOpening$outboundSchema).optional(),
243
253
  postings: z.array(AtsJobPosting$outboundSchema).optional(),
244
254
  publicJobUrls: z.array(z.string()).optional(),
245
255
  questions: z.array(AtsJobQuestion$outboundSchema).optional(),
@@ -0,0 +1,123 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../../lib/primitives.js";
7
+ import { safeParse } from "../../../lib/schemas.js";
8
+ import { ClosedEnum } from "../../types/enums.js";
9
+ import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export const AtsJobOpeningStatus = {
13
+ Open: "OPEN",
14
+ Closed: "CLOSED",
15
+ } as const;
16
+ export type AtsJobOpeningStatus = ClosedEnum<typeof AtsJobOpeningStatus>;
17
+
18
+ export type AtsJobOpening = {
19
+ applicationId?: string | undefined;
20
+ closeReason?: string | undefined;
21
+ closedAt?: Date | undefined;
22
+ openedAt?: Date | undefined;
23
+ status?: AtsJobOpeningStatus | undefined;
24
+ };
25
+
26
+ /** @internal */
27
+ export const AtsJobOpeningStatus$inboundSchema: z.ZodNativeEnum<
28
+ typeof AtsJobOpeningStatus
29
+ > = z.nativeEnum(AtsJobOpeningStatus);
30
+
31
+ /** @internal */
32
+ export const AtsJobOpeningStatus$outboundSchema: z.ZodNativeEnum<
33
+ typeof AtsJobOpeningStatus
34
+ > = AtsJobOpeningStatus$inboundSchema;
35
+
36
+ /**
37
+ * @internal
38
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
39
+ */
40
+ export namespace AtsJobOpeningStatus$ {
41
+ /** @deprecated use `AtsJobOpeningStatus$inboundSchema` instead. */
42
+ export const inboundSchema = AtsJobOpeningStatus$inboundSchema;
43
+ /** @deprecated use `AtsJobOpeningStatus$outboundSchema` instead. */
44
+ export const outboundSchema = AtsJobOpeningStatus$outboundSchema;
45
+ }
46
+
47
+ /** @internal */
48
+ export const AtsJobOpening$inboundSchema: z.ZodType<
49
+ AtsJobOpening,
50
+ z.ZodTypeDef,
51
+ unknown
52
+ > = z.object({
53
+ application_id: z.string().optional(),
54
+ close_reason: z.string().optional(),
55
+ closed_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
56
+ .optional(),
57
+ opened_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
58
+ .optional(),
59
+ status: AtsJobOpeningStatus$inboundSchema.optional(),
60
+ }).transform((v) => {
61
+ return remap$(v, {
62
+ "application_id": "applicationId",
63
+ "close_reason": "closeReason",
64
+ "closed_at": "closedAt",
65
+ "opened_at": "openedAt",
66
+ });
67
+ });
68
+
69
+ /** @internal */
70
+ export type AtsJobOpening$Outbound = {
71
+ application_id?: string | undefined;
72
+ close_reason?: string | undefined;
73
+ closed_at?: string | undefined;
74
+ opened_at?: string | undefined;
75
+ status?: string | undefined;
76
+ };
77
+
78
+ /** @internal */
79
+ export const AtsJobOpening$outboundSchema: z.ZodType<
80
+ AtsJobOpening$Outbound,
81
+ z.ZodTypeDef,
82
+ AtsJobOpening
83
+ > = z.object({
84
+ applicationId: z.string().optional(),
85
+ closeReason: z.string().optional(),
86
+ closedAt: z.date().transform(v => v.toISOString()).optional(),
87
+ openedAt: z.date().transform(v => v.toISOString()).optional(),
88
+ status: AtsJobOpeningStatus$outboundSchema.optional(),
89
+ }).transform((v) => {
90
+ return remap$(v, {
91
+ applicationId: "application_id",
92
+ closeReason: "close_reason",
93
+ closedAt: "closed_at",
94
+ openedAt: "opened_at",
95
+ });
96
+ });
97
+
98
+ /**
99
+ * @internal
100
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
101
+ */
102
+ export namespace AtsJobOpening$ {
103
+ /** @deprecated use `AtsJobOpening$inboundSchema` instead. */
104
+ export const inboundSchema = AtsJobOpening$inboundSchema;
105
+ /** @deprecated use `AtsJobOpening$outboundSchema` instead. */
106
+ export const outboundSchema = AtsJobOpening$outboundSchema;
107
+ /** @deprecated use `AtsJobOpening$Outbound` instead. */
108
+ export type Outbound = AtsJobOpening$Outbound;
109
+ }
110
+
111
+ export function atsJobOpeningToJSON(atsJobOpening: AtsJobOpening): string {
112
+ return JSON.stringify(AtsJobOpening$outboundSchema.parse(atsJobOpening));
113
+ }
114
+
115
+ export function atsJobOpeningFromJSON(
116
+ jsonString: string,
117
+ ): SafeParseResult<AtsJobOpening, SDKValidationError> {
118
+ return safeParse(
119
+ jsonString,
120
+ (x) => AtsJobOpening$inboundSchema.parse(JSON.parse(x)),
121
+ `Failed to parse 'AtsJobOpening' from JSON`,
122
+ );
123
+ }
@@ -0,0 +1,176 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
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 HrisDevice = {
12
+ adminUserIds?: Array<string> | undefined;
13
+ assetTag?: string | undefined;
14
+ createdAt?: Date | undefined;
15
+ hasAntivirus?: boolean | undefined;
16
+ hasFirewall?: boolean | undefined;
17
+ hasHdEncrypted?: boolean | undefined;
18
+ hasPasswordManager?: boolean | undefined;
19
+ hasScreenlock?: boolean | undefined;
20
+ id?: string | undefined;
21
+ isMissing?: boolean | undefined;
22
+ locationId?: string | undefined;
23
+ manufacturer?: string | undefined;
24
+ model?: string | undefined;
25
+ name: string;
26
+ os?: string | undefined;
27
+ osVersion?: string | undefined;
28
+ raw?: { [k: string]: any } | undefined;
29
+ updatedAt?: Date | undefined;
30
+ /**
31
+ * users who have this device
32
+ */
33
+ userIds?: Array<string> | undefined;
34
+ version?: string | undefined;
35
+ };
36
+
37
+ /** @internal */
38
+ export const HrisDevice$inboundSchema: z.ZodType<
39
+ HrisDevice,
40
+ z.ZodTypeDef,
41
+ unknown
42
+ > = z.object({
43
+ admin_user_ids: z.array(z.string()).optional(),
44
+ asset_tag: z.string().optional(),
45
+ created_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
46
+ .optional(),
47
+ has_antivirus: z.boolean().optional(),
48
+ has_firewall: z.boolean().optional(),
49
+ has_hd_encrypted: z.boolean().optional(),
50
+ has_password_manager: z.boolean().optional(),
51
+ has_screenlock: z.boolean().optional(),
52
+ id: z.string().optional(),
53
+ is_missing: z.boolean().optional(),
54
+ location_id: z.string().optional(),
55
+ manufacturer: z.string().optional(),
56
+ model: z.string().optional(),
57
+ name: z.string(),
58
+ os: z.string().optional(),
59
+ os_version: z.string().optional(),
60
+ raw: z.record(z.any()).optional(),
61
+ updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
62
+ .optional(),
63
+ user_ids: z.array(z.string()).optional(),
64
+ version: z.string().optional(),
65
+ }).transform((v) => {
66
+ return remap$(v, {
67
+ "admin_user_ids": "adminUserIds",
68
+ "asset_tag": "assetTag",
69
+ "created_at": "createdAt",
70
+ "has_antivirus": "hasAntivirus",
71
+ "has_firewall": "hasFirewall",
72
+ "has_hd_encrypted": "hasHdEncrypted",
73
+ "has_password_manager": "hasPasswordManager",
74
+ "has_screenlock": "hasScreenlock",
75
+ "is_missing": "isMissing",
76
+ "location_id": "locationId",
77
+ "os_version": "osVersion",
78
+ "updated_at": "updatedAt",
79
+ "user_ids": "userIds",
80
+ });
81
+ });
82
+
83
+ /** @internal */
84
+ export type HrisDevice$Outbound = {
85
+ admin_user_ids?: Array<string> | undefined;
86
+ asset_tag?: string | undefined;
87
+ created_at?: string | undefined;
88
+ has_antivirus?: boolean | undefined;
89
+ has_firewall?: boolean | undefined;
90
+ has_hd_encrypted?: boolean | undefined;
91
+ has_password_manager?: boolean | undefined;
92
+ has_screenlock?: boolean | undefined;
93
+ id?: string | undefined;
94
+ is_missing?: boolean | undefined;
95
+ location_id?: string | undefined;
96
+ manufacturer?: string | undefined;
97
+ model?: string | undefined;
98
+ name: string;
99
+ os?: string | undefined;
100
+ os_version?: string | undefined;
101
+ raw?: { [k: string]: any } | undefined;
102
+ updated_at?: string | undefined;
103
+ user_ids?: Array<string> | undefined;
104
+ version?: string | undefined;
105
+ };
106
+
107
+ /** @internal */
108
+ export const HrisDevice$outboundSchema: z.ZodType<
109
+ HrisDevice$Outbound,
110
+ z.ZodTypeDef,
111
+ HrisDevice
112
+ > = z.object({
113
+ adminUserIds: z.array(z.string()).optional(),
114
+ assetTag: z.string().optional(),
115
+ createdAt: z.date().transform(v => v.toISOString()).optional(),
116
+ hasAntivirus: z.boolean().optional(),
117
+ hasFirewall: z.boolean().optional(),
118
+ hasHdEncrypted: z.boolean().optional(),
119
+ hasPasswordManager: z.boolean().optional(),
120
+ hasScreenlock: z.boolean().optional(),
121
+ id: z.string().optional(),
122
+ isMissing: z.boolean().optional(),
123
+ locationId: z.string().optional(),
124
+ manufacturer: z.string().optional(),
125
+ model: z.string().optional(),
126
+ name: z.string(),
127
+ os: z.string().optional(),
128
+ osVersion: z.string().optional(),
129
+ raw: z.record(z.any()).optional(),
130
+ updatedAt: z.date().transform(v => v.toISOString()).optional(),
131
+ userIds: z.array(z.string()).optional(),
132
+ version: z.string().optional(),
133
+ }).transform((v) => {
134
+ return remap$(v, {
135
+ adminUserIds: "admin_user_ids",
136
+ assetTag: "asset_tag",
137
+ createdAt: "created_at",
138
+ hasAntivirus: "has_antivirus",
139
+ hasFirewall: "has_firewall",
140
+ hasHdEncrypted: "has_hd_encrypted",
141
+ hasPasswordManager: "has_password_manager",
142
+ hasScreenlock: "has_screenlock",
143
+ isMissing: "is_missing",
144
+ locationId: "location_id",
145
+ osVersion: "os_version",
146
+ updatedAt: "updated_at",
147
+ userIds: "user_ids",
148
+ });
149
+ });
150
+
151
+ /**
152
+ * @internal
153
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
154
+ */
155
+ export namespace HrisDevice$ {
156
+ /** @deprecated use `HrisDevice$inboundSchema` instead. */
157
+ export const inboundSchema = HrisDevice$inboundSchema;
158
+ /** @deprecated use `HrisDevice$outboundSchema` instead. */
159
+ export const outboundSchema = HrisDevice$outboundSchema;
160
+ /** @deprecated use `HrisDevice$Outbound` instead. */
161
+ export type Outbound = HrisDevice$Outbound;
162
+ }
163
+
164
+ export function hrisDeviceToJSON(hrisDevice: HrisDevice): string {
165
+ return JSON.stringify(HrisDevice$outboundSchema.parse(hrisDevice));
166
+ }
167
+
168
+ export function hrisDeviceFromJSON(
169
+ jsonString: string,
170
+ ): SafeParseResult<HrisDevice, SDKValidationError> {
171
+ return safeParse(
172
+ jsonString,
173
+ (x) => HrisDevice$inboundSchema.parse(JSON.parse(x)),
174
+ `Failed to parse 'HrisDevice' from JSON`,
175
+ );
176
+ }
@@ -3,6 +3,7 @@
3
3
  */
4
4
 
5
5
  export * from "./accountingaccount.js";
6
+ export * from "./accountingassociatedcontact.js";
6
7
  export * from "./accountingattachment.js";
7
8
  export * from "./accountingcontact.js";
8
9
  export * from "./accountingcontactpaymentmethod.js";
@@ -34,6 +35,7 @@ export * from "./atsemail.js";
34
35
  export * from "./atsgroup.js";
35
36
  export * from "./atsinterview.js";
36
37
  export * from "./atsjob.js";
38
+ export * from "./atsjobopening.js";
37
39
  export * from "./atsjobposting.js";
38
40
  export * from "./atsjobquestion.js";
39
41
  export * from "./atsmetadata.js";
@@ -82,6 +84,7 @@ export * from "./genaimodel.js";
82
84
  export * from "./genaiprompt.js";
83
85
  export * from "./hriscompany.js";
84
86
  export * from "./hriscompensation.js";
87
+ export * from "./hrisdevice.js";
85
88
  export * from "./hrisemail.js";
86
89
  export * from "./hrisemployee.js";
87
90
  export * from "./hrisgroup.js";
@@ -90,6 +90,8 @@ export const PropertyConnectionPermissions = {
90
90
  HrisCompanyWrite: "hris_company_write",
91
91
  HrisLocationRead: "hris_location_read",
92
92
  HrisLocationWrite: "hris_location_write",
93
+ HrisDeviceRead: "hris_device_read",
94
+ HrisDeviceWrite: "hris_device_write",
93
95
  UcCallRead: "uc_call_read",
94
96
  UcContactRead: "uc_contact_read",
95
97
  UcContactWrite: "uc_contact_write",
@@ -65,6 +65,7 @@ export const ObjectType = {
65
65
  HrisTimeoff: "hris_timeoff",
66
66
  HrisCompany: "hris_company",
67
67
  HrisLocation: "hris_location",
68
+ HrisDevice: "hris_device",
68
69
  MartechList: "martech_list",
69
70
  MartechMember: "martech_member",
70
71
  Passthrough: "passthrough",
package/src/sdk/sdk.ts CHANGED
@@ -29,6 +29,7 @@ import { Course } from "./course.js";
29
29
  import { Crm } from "./crm.js";
30
30
  import { Customer } from "./customer.js";
31
31
  import { Deal } from "./deal.js";
32
+ import { Device } from "./device.js";
32
33
  import { Document } from "./document.js";
33
34
  import { Employee } from "./employee.js";
34
35
  import { Enrich } from "./enrich.js";
@@ -295,6 +296,11 @@ export class UnifiedTo extends ClientSDK {
295
296
  return (this._hris ??= new Hris(this._options));
296
297
  }
297
298
 
299
+ private _device?: Device;
300
+ get device(): Device {
301
+ return (this._device ??= new Device(this._options));
302
+ }
303
+
298
304
  private _employee?: Employee;
299
305
  get employee(): Employee {
300
306
  return (this._employee ??= new Employee(this._options));