@apideck/unify 0.18.0 → 0.19.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 (180) hide show
  1. package/funcs/accountingAttachmentsList.js +1 -1
  2. package/funcs/accountingAttachmentsList.js.map +1 -1
  3. package/funcs/accountingBillPaymentsList.js +1 -1
  4. package/funcs/accountingBillPaymentsList.js.map +1 -1
  5. package/funcs/accountingBillsList.js +1 -1
  6. package/funcs/accountingBillsList.js.map +1 -1
  7. package/funcs/accountingCreditNotesList.js +1 -1
  8. package/funcs/accountingCreditNotesList.js.map +1 -1
  9. package/funcs/accountingCustomersList.js +1 -1
  10. package/funcs/accountingCustomersList.js.map +1 -1
  11. package/funcs/accountingDepartmentsList.js +1 -1
  12. package/funcs/accountingDepartmentsList.js.map +1 -1
  13. package/funcs/accountingExpensesList.js +1 -1
  14. package/funcs/accountingExpensesList.js.map +1 -1
  15. package/funcs/accountingInvoiceItemsList.js +1 -1
  16. package/funcs/accountingInvoiceItemsList.js.map +1 -1
  17. package/funcs/accountingInvoicesList.js +1 -1
  18. package/funcs/accountingInvoicesList.js.map +1 -1
  19. package/funcs/accountingJournalEntriesList.js +1 -1
  20. package/funcs/accountingJournalEntriesList.js.map +1 -1
  21. package/funcs/accountingLedgerAccountsList.js +1 -1
  22. package/funcs/accountingLedgerAccountsList.js.map +1 -1
  23. package/funcs/accountingLocationsList.js +1 -1
  24. package/funcs/accountingLocationsList.js.map +1 -1
  25. package/funcs/accountingPaymentsList.js +1 -1
  26. package/funcs/accountingPaymentsList.js.map +1 -1
  27. package/funcs/accountingPurchaseOrdersList.js +1 -1
  28. package/funcs/accountingPurchaseOrdersList.js.map +1 -1
  29. package/funcs/accountingSubsidiariesList.js +1 -1
  30. package/funcs/accountingSubsidiariesList.js.map +1 -1
  31. package/funcs/accountingSuppliersList.js +1 -1
  32. package/funcs/accountingSuppliersList.js.map +1 -1
  33. package/funcs/accountingTaxRatesList.js +1 -1
  34. package/funcs/accountingTaxRatesList.js.map +1 -1
  35. package/funcs/accountingTrackingCategoriesList.js +1 -1
  36. package/funcs/accountingTrackingCategoriesList.js.map +1 -1
  37. package/funcs/atsApplicantsList.js +1 -1
  38. package/funcs/atsApplicantsList.js.map +1 -1
  39. package/funcs/atsApplicationsList.js +1 -1
  40. package/funcs/atsApplicationsList.js.map +1 -1
  41. package/funcs/atsJobsList.js +1 -1
  42. package/funcs/atsJobsList.js.map +1 -1
  43. package/funcs/connectorApisList.js +1 -1
  44. package/funcs/connectorApisList.js.map +1 -1
  45. package/funcs/connectorConnectorsList.js +1 -1
  46. package/funcs/connectorConnectorsList.js.map +1 -1
  47. package/funcs/crmActivitiesList.js +1 -1
  48. package/funcs/crmActivitiesList.js.map +1 -1
  49. package/funcs/crmCompaniesList.js +1 -1
  50. package/funcs/crmCompaniesList.js.map +1 -1
  51. package/funcs/crmContactsList.js +1 -1
  52. package/funcs/crmContactsList.js.map +1 -1
  53. package/funcs/crmLeadsList.js +1 -1
  54. package/funcs/crmLeadsList.js.map +1 -1
  55. package/funcs/crmNotesList.js +1 -1
  56. package/funcs/crmNotesList.js.map +1 -1
  57. package/funcs/crmOpportunitiesList.js +1 -1
  58. package/funcs/crmOpportunitiesList.js.map +1 -1
  59. package/funcs/crmPipelinesList.js +1 -1
  60. package/funcs/crmPipelinesList.js.map +1 -1
  61. package/funcs/crmUsersList.js +1 -1
  62. package/funcs/crmUsersList.js.map +1 -1
  63. package/funcs/ecommerceCustomersList.js +1 -1
  64. package/funcs/ecommerceCustomersList.js.map +1 -1
  65. package/funcs/ecommerceOrdersList.js +1 -1
  66. package/funcs/ecommerceOrdersList.js.map +1 -1
  67. package/funcs/ecommerceProductsList.js +1 -1
  68. package/funcs/ecommerceProductsList.js.map +1 -1
  69. package/funcs/fileStorageDriveGroupsList.js +1 -1
  70. package/funcs/fileStorageDriveGroupsList.js.map +1 -1
  71. package/funcs/fileStorageDrivesList.js +1 -1
  72. package/funcs/fileStorageDrivesList.js.map +1 -1
  73. package/funcs/fileStorageFilesList.js +1 -1
  74. package/funcs/fileStorageFilesList.js.map +1 -1
  75. package/funcs/fileStorageSharedLinksList.js +1 -1
  76. package/funcs/fileStorageSharedLinksList.js.map +1 -1
  77. package/funcs/hrisCompaniesList.js +1 -1
  78. package/funcs/hrisCompaniesList.js.map +1 -1
  79. package/funcs/hrisDepartmentsList.js +1 -1
  80. package/funcs/hrisDepartmentsList.js.map +1 -1
  81. package/funcs/hrisEmployeesList.js +1 -1
  82. package/funcs/hrisEmployeesList.js.map +1 -1
  83. package/funcs/hrisTimeOffRequestsList.js +1 -1
  84. package/funcs/hrisTimeOffRequestsList.js.map +1 -1
  85. package/funcs/issueTrackingCollectionTagsList.js +1 -1
  86. package/funcs/issueTrackingCollectionTagsList.js.map +1 -1
  87. package/funcs/issueTrackingCollectionTicketCommentsGet.js +1 -1
  88. package/funcs/issueTrackingCollectionTicketCommentsGet.js.map +1 -1
  89. package/funcs/issueTrackingCollectionTicketCommentsList.js +1 -1
  90. package/funcs/issueTrackingCollectionTicketCommentsList.js.map +1 -1
  91. package/funcs/issueTrackingCollectionTicketsList.js +1 -1
  92. package/funcs/issueTrackingCollectionTicketsList.js.map +1 -1
  93. package/funcs/issueTrackingCollectionUsersList.js +1 -1
  94. package/funcs/issueTrackingCollectionUsersList.js.map +1 -1
  95. package/funcs/issueTrackingCollectionsList.js +1 -1
  96. package/funcs/issueTrackingCollectionsList.js.map +1 -1
  97. package/funcs/smsMessagesList.js +1 -1
  98. package/funcs/smsMessagesList.js.map +1 -1
  99. package/funcs/vaultConsumersList.js +1 -1
  100. package/funcs/vaultConsumersList.js.map +1 -1
  101. package/funcs/vaultLogsList.js +1 -1
  102. package/funcs/vaultLogsList.js.map +1 -1
  103. package/funcs/webhookEventLogsList.js +1 -1
  104. package/funcs/webhookEventLogsList.js.map +1 -1
  105. package/funcs/webhookWebhooksList.js +1 -1
  106. package/funcs/webhookWebhooksList.js.map +1 -1
  107. package/jsr.json +1 -1
  108. package/lib/config.d.ts +4 -4
  109. package/lib/config.d.ts.map +1 -1
  110. package/lib/config.js +3 -3
  111. package/lib/primitives.d.ts +3 -0
  112. package/lib/primitives.d.ts.map +1 -1
  113. package/lib/primitives.js +7 -0
  114. package/lib/primitives.js.map +1 -1
  115. package/models/components/address.d.ts +8 -8
  116. package/models/components/address.d.ts.map +1 -1
  117. package/models/components/address.js +14 -13
  118. package/models/components/address.js.map +1 -1
  119. package/models/components/contact.d.ts +9 -9
  120. package/models/components/contact.d.ts.map +1 -1
  121. package/models/components/contact.js +15 -16
  122. package/models/components/contact.js.map +1 -1
  123. package/package.json +1 -1
  124. package/src/funcs/accountingAttachmentsList.ts +1 -1
  125. package/src/funcs/accountingBillPaymentsList.ts +1 -1
  126. package/src/funcs/accountingBillsList.ts +1 -1
  127. package/src/funcs/accountingCreditNotesList.ts +1 -1
  128. package/src/funcs/accountingCustomersList.ts +1 -1
  129. package/src/funcs/accountingDepartmentsList.ts +1 -1
  130. package/src/funcs/accountingExpensesList.ts +1 -1
  131. package/src/funcs/accountingInvoiceItemsList.ts +1 -1
  132. package/src/funcs/accountingInvoicesList.ts +1 -1
  133. package/src/funcs/accountingJournalEntriesList.ts +1 -1
  134. package/src/funcs/accountingLedgerAccountsList.ts +1 -1
  135. package/src/funcs/accountingLocationsList.ts +1 -1
  136. package/src/funcs/accountingPaymentsList.ts +1 -1
  137. package/src/funcs/accountingPurchaseOrdersList.ts +1 -1
  138. package/src/funcs/accountingSubsidiariesList.ts +1 -1
  139. package/src/funcs/accountingSuppliersList.ts +1 -1
  140. package/src/funcs/accountingTaxRatesList.ts +1 -1
  141. package/src/funcs/accountingTrackingCategoriesList.ts +1 -1
  142. package/src/funcs/atsApplicantsList.ts +1 -1
  143. package/src/funcs/atsApplicationsList.ts +1 -1
  144. package/src/funcs/atsJobsList.ts +1 -1
  145. package/src/funcs/connectorApisList.ts +1 -1
  146. package/src/funcs/connectorConnectorsList.ts +1 -1
  147. package/src/funcs/crmActivitiesList.ts +1 -1
  148. package/src/funcs/crmCompaniesList.ts +1 -1
  149. package/src/funcs/crmContactsList.ts +1 -1
  150. package/src/funcs/crmLeadsList.ts +1 -1
  151. package/src/funcs/crmNotesList.ts +1 -1
  152. package/src/funcs/crmOpportunitiesList.ts +1 -1
  153. package/src/funcs/crmPipelinesList.ts +1 -1
  154. package/src/funcs/crmUsersList.ts +1 -1
  155. package/src/funcs/ecommerceCustomersList.ts +1 -1
  156. package/src/funcs/ecommerceOrdersList.ts +1 -1
  157. package/src/funcs/ecommerceProductsList.ts +1 -1
  158. package/src/funcs/fileStorageDriveGroupsList.ts +1 -1
  159. package/src/funcs/fileStorageDrivesList.ts +1 -1
  160. package/src/funcs/fileStorageFilesList.ts +1 -1
  161. package/src/funcs/fileStorageSharedLinksList.ts +1 -1
  162. package/src/funcs/hrisCompaniesList.ts +1 -1
  163. package/src/funcs/hrisDepartmentsList.ts +1 -1
  164. package/src/funcs/hrisEmployeesList.ts +1 -1
  165. package/src/funcs/hrisTimeOffRequestsList.ts +1 -1
  166. package/src/funcs/issueTrackingCollectionTagsList.ts +1 -1
  167. package/src/funcs/issueTrackingCollectionTicketCommentsGet.ts +1 -1
  168. package/src/funcs/issueTrackingCollectionTicketCommentsList.ts +1 -1
  169. package/src/funcs/issueTrackingCollectionTicketsList.ts +1 -1
  170. package/src/funcs/issueTrackingCollectionUsersList.ts +1 -1
  171. package/src/funcs/issueTrackingCollectionsList.ts +1 -1
  172. package/src/funcs/smsMessagesList.ts +1 -1
  173. package/src/funcs/vaultConsumersList.ts +1 -1
  174. package/src/funcs/vaultLogsList.ts +1 -1
  175. package/src/funcs/webhookEventLogsList.ts +1 -1
  176. package/src/funcs/webhookWebhooksList.ts +1 -1
  177. package/src/lib/config.ts +4 -4
  178. package/src/lib/primitives.ts +14 -0
  179. package/src/models/components/address.ts +14 -15
  180. package/src/models/components/contact.ts +18 -17
@@ -262,7 +262,7 @@ async function $do(
262
262
  "~next"?: { cursor: string };
263
263
  } => {
264
264
  const nextCursor = dlv(responseData, "meta.cursors.next");
265
- if (nextCursor == null) {
265
+ if (typeof nextCursor !== "string") {
266
266
  return { next: () => null };
267
267
  }
268
268
 
@@ -264,7 +264,7 @@ async function $do(
264
264
  "~next"?: { cursor: string };
265
265
  } => {
266
266
  const nextCursor = dlv(responseData, "meta.cursors.next");
267
- if (nextCursor == null) {
267
+ if (typeof nextCursor !== "string") {
268
268
  return { next: () => null };
269
269
  }
270
270
 
@@ -264,7 +264,7 @@ async function $do(
264
264
  "~next"?: { cursor: string };
265
265
  } => {
266
266
  const nextCursor = dlv(responseData, "meta.cursors.next");
267
- if (nextCursor == null) {
267
+ if (typeof nextCursor !== "string") {
268
268
  return { next: () => null };
269
269
  }
270
270
 
@@ -278,7 +278,7 @@ async function $do(
278
278
  "~next"?: { cursor: string };
279
279
  } => {
280
280
  const nextCursor = dlv(responseData, "meta.cursors.next");
281
- if (nextCursor == null) {
281
+ if (typeof nextCursor !== "string") {
282
282
  return { next: () => null };
283
283
  }
284
284
 
@@ -275,7 +275,7 @@ async function $do(
275
275
  "~next"?: { cursor: string };
276
276
  } => {
277
277
  const nextCursor = dlv(responseData, "meta.cursors.next");
278
- if (nextCursor == null) {
278
+ if (typeof nextCursor !== "string") {
279
279
  return { next: () => null };
280
280
  }
281
281
 
@@ -282,7 +282,7 @@ async function $do(
282
282
  "~next"?: { cursor: string };
283
283
  } => {
284
284
  const nextCursor = dlv(responseData, "meta.cursors.next");
285
- if (nextCursor == null) {
285
+ if (typeof nextCursor !== "string") {
286
286
  return { next: () => null };
287
287
  }
288
288
 
@@ -280,7 +280,7 @@ async function $do(
280
280
  "~next"?: { cursor: string };
281
281
  } => {
282
282
  const nextCursor = dlv(responseData, "meta.cursors.next");
283
- if (nextCursor == null) {
283
+ if (typeof nextCursor !== "string") {
284
284
  return { next: () => null };
285
285
  }
286
286
 
@@ -278,7 +278,7 @@ async function $do(
278
278
  "~next"?: { cursor: string };
279
279
  } => {
280
280
  const nextCursor = dlv(responseData, "meta.cursors.next");
281
- if (nextCursor == null) {
281
+ if (typeof nextCursor !== "string") {
282
282
  return { next: () => null };
283
283
  }
284
284
 
@@ -266,7 +266,7 @@ async function $do(
266
266
  "~next"?: { cursor: string };
267
267
  } => {
268
268
  const nextCursor = dlv(responseData, "meta.cursors.next");
269
- if (nextCursor == null) {
269
+ if (typeof nextCursor !== "string") {
270
270
  return { next: () => null };
271
271
  }
272
272
 
@@ -252,7 +252,7 @@ async function $do(
252
252
  "~next"?: { cursor: string };
253
253
  } => {
254
254
  const nextCursor = dlv(responseData, "meta.cursors.next");
255
- if (nextCursor == null) {
255
+ if (typeof nextCursor !== "string") {
256
256
  return { next: () => null };
257
257
  }
258
258
 
@@ -240,7 +240,7 @@ async function $do(
240
240
  "~next"?: { cursor: string };
241
241
  } => {
242
242
  const nextCursor = dlv(responseData, "meta.cursors.next");
243
- if (nextCursor == null) {
243
+ if (typeof nextCursor !== "string") {
244
244
  return { next: () => null };
245
245
  }
246
246
 
@@ -255,7 +255,7 @@ async function $do(
255
255
  "~next"?: { cursor: string };
256
256
  } => {
257
257
  const nextCursor = dlv(responseData, "meta.cursors.next");
258
- if (nextCursor == null) {
258
+ if (typeof nextCursor !== "string") {
259
259
  return { next: () => null };
260
260
  }
261
261
 
@@ -251,7 +251,7 @@ async function $do(
251
251
  "~next"?: { cursor: string };
252
252
  } => {
253
253
  const nextCursor = dlv(responseData, "meta.cursors.next");
254
- if (nextCursor == null) {
254
+ if (typeof nextCursor !== "string") {
255
255
  return { next: () => null };
256
256
  }
257
257
 
@@ -240,7 +240,7 @@ async function $do(
240
240
  "~next"?: { cursor: string };
241
241
  } => {
242
242
  const nextCursor = dlv(responseData, "meta.cursors.next");
243
- if (nextCursor == null) {
243
+ if (typeof nextCursor !== "string") {
244
244
  return { next: () => null };
245
245
  }
246
246
 
package/src/lib/config.ts CHANGED
@@ -15,7 +15,7 @@ export const ServerList = [
15
15
  ] as const;
16
16
 
17
17
  export type SDKOptions = {
18
- apiKey?: string | (() => Promise<string>);
18
+ apiKey?: string | (() => Promise<string>) | undefined;
19
19
 
20
20
  /**
21
21
  * Allows setting the consumerId parameter for all supported operations
@@ -64,7 +64,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
64
64
  export const SDK_METADATA = {
65
65
  language: "typescript",
66
66
  openapiDocVersion: "10.11.5",
67
- sdkVersion: "0.18.0",
68
- genVersion: "2.522.5",
69
- userAgent: "speakeasy-sdk/typescript 0.18.0 2.522.5 10.11.5 @apideck/unify",
67
+ sdkVersion: "0.19.0",
68
+ genVersion: "2.539.1",
69
+ userAgent: "speakeasy-sdk/typescript 0.19.0 2.539.1 10.11.5 @apideck/unify",
70
70
  } as const;
@@ -134,3 +134,17 @@ export function compactMap<T>(
134
134
 
135
135
  return out;
136
136
  }
137
+
138
+ export function allRequired<V extends Record<string, unknown>>(
139
+ v: V,
140
+ ):
141
+ | {
142
+ [K in keyof V]: NonNullable<V[K]>;
143
+ }
144
+ | undefined {
145
+ if (Object.values(v).every((x) => x == null)) {
146
+ return void 0;
147
+ }
148
+
149
+ return v as ReturnType<typeof allRequired<V>>;
150
+ }
@@ -12,7 +12,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
12
  /**
13
13
  * The type of address.
14
14
  */
15
- export const Type = {
15
+ export const AddressType = {
16
16
  Primary: "primary",
17
17
  Secondary: "secondary",
18
18
  Home: "home",
@@ -24,7 +24,7 @@ export const Type = {
24
24
  /**
25
25
  * The type of address.
26
26
  */
27
- export type Type = ClosedEnum<typeof Type>;
27
+ export type AddressType = ClosedEnum<typeof AddressType>;
28
28
 
29
29
  export type Address = {
30
30
  /**
@@ -34,7 +34,7 @@ export type Address = {
34
34
  /**
35
35
  * The type of address.
36
36
  */
37
- type?: Type | null | undefined;
37
+ type?: AddressType | null | undefined;
38
38
  /**
39
39
  * The address string. Some APIs don't provide structured address data.
40
40
  */
@@ -126,30 +126,29 @@ export type Address = {
126
126
  };
127
127
 
128
128
  /** @internal */
129
- export const Type$inboundSchema: z.ZodNativeEnum<typeof Type> = z.nativeEnum(
130
- Type,
131
- );
129
+ export const AddressType$inboundSchema: z.ZodNativeEnum<typeof AddressType> = z
130
+ .nativeEnum(AddressType);
132
131
 
133
132
  /** @internal */
134
- export const Type$outboundSchema: z.ZodNativeEnum<typeof Type> =
135
- Type$inboundSchema;
133
+ export const AddressType$outboundSchema: z.ZodNativeEnum<typeof AddressType> =
134
+ AddressType$inboundSchema;
136
135
 
137
136
  /**
138
137
  * @internal
139
138
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
140
139
  */
141
- export namespace Type$ {
142
- /** @deprecated use `Type$inboundSchema` instead. */
143
- export const inboundSchema = Type$inboundSchema;
144
- /** @deprecated use `Type$outboundSchema` instead. */
145
- export const outboundSchema = Type$outboundSchema;
140
+ export namespace AddressType$ {
141
+ /** @deprecated use `AddressType$inboundSchema` instead. */
142
+ export const inboundSchema = AddressType$inboundSchema;
143
+ /** @deprecated use `AddressType$outboundSchema` instead. */
144
+ export const outboundSchema = AddressType$outboundSchema;
146
145
  }
147
146
 
148
147
  /** @internal */
149
148
  export const Address$inboundSchema: z.ZodType<Address, z.ZodTypeDef, unknown> =
150
149
  z.object({
151
150
  id: z.nullable(z.string()).optional(),
152
- type: z.nullable(Type$inboundSchema).optional(),
151
+ type: z.nullable(AddressType$inboundSchema).optional(),
153
152
  string: z.nullable(z.string()).optional(),
154
153
  name: z.nullable(z.string()).optional(),
155
154
  line1: z.nullable(z.string()).optional(),
@@ -217,7 +216,7 @@ export const Address$outboundSchema: z.ZodType<
217
216
  Address
218
217
  > = z.object({
219
218
  id: z.nullable(z.string()).optional(),
220
- type: z.nullable(Type$outboundSchema).optional(),
219
+ type: z.nullable(AddressType$outboundSchema).optional(),
221
220
  string: z.nullable(z.string()).optional(),
222
221
  name: z.nullable(z.string()).optional(),
223
222
  line1: z.nullable(z.string()).optional(),
@@ -60,7 +60,7 @@ import {
60
60
  /**
61
61
  * The type of the contact.
62
62
  */
63
- export const ContactType = {
63
+ export const Type = {
64
64
  Customer: "customer",
65
65
  Supplier: "supplier",
66
66
  Employee: "employee",
@@ -69,7 +69,7 @@ export const ContactType = {
69
69
  /**
70
70
  * The type of the contact.
71
71
  */
72
- export type ContactType = ClosedEnum<typeof ContactType>;
72
+ export type Type = ClosedEnum<typeof Type>;
73
73
 
74
74
  /**
75
75
  * The gender of the contact.
@@ -100,7 +100,7 @@ export type Contact = {
100
100
  /**
101
101
  * The type of the contact.
102
102
  */
103
- type?: ContactType | null | undefined;
103
+ type?: Type | null | undefined;
104
104
  /**
105
105
  * The company the contact is associated with.
106
106
  */
@@ -239,7 +239,7 @@ export type ContactInput = {
239
239
  /**
240
240
  * The type of the contact.
241
241
  */
242
- type?: ContactType | null | undefined;
242
+ type?: Type | null | undefined;
243
243
  /**
244
244
  * The company the contact is associated with.
245
245
  */
@@ -343,22 +343,23 @@ export type ContactInput = {
343
343
  };
344
344
 
345
345
  /** @internal */
346
- export const ContactType$inboundSchema: z.ZodNativeEnum<typeof ContactType> = z
347
- .nativeEnum(ContactType);
346
+ export const Type$inboundSchema: z.ZodNativeEnum<typeof Type> = z.nativeEnum(
347
+ Type,
348
+ );
348
349
 
349
350
  /** @internal */
350
- export const ContactType$outboundSchema: z.ZodNativeEnum<typeof ContactType> =
351
- ContactType$inboundSchema;
351
+ export const Type$outboundSchema: z.ZodNativeEnum<typeof Type> =
352
+ Type$inboundSchema;
352
353
 
353
354
  /**
354
355
  * @internal
355
356
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
356
357
  */
357
- export namespace ContactType$ {
358
- /** @deprecated use `ContactType$inboundSchema` instead. */
359
- export const inboundSchema = ContactType$inboundSchema;
360
- /** @deprecated use `ContactType$outboundSchema` instead. */
361
- export const outboundSchema = ContactType$outboundSchema;
358
+ export namespace Type$ {
359
+ /** @deprecated use `Type$inboundSchema` instead. */
360
+ export const inboundSchema = Type$inboundSchema;
361
+ /** @deprecated use `Type$outboundSchema` instead. */
362
+ export const outboundSchema = Type$outboundSchema;
362
363
  }
363
364
 
364
365
  /** @internal */
@@ -388,7 +389,7 @@ export const Contact$inboundSchema: z.ZodType<Contact, z.ZodTypeDef, unknown> =
388
389
  id: z.string().optional(),
389
390
  name: z.nullable(z.string()),
390
391
  owner_id: z.nullable(z.string()).optional(),
391
- type: z.nullable(ContactType$inboundSchema).optional(),
392
+ type: z.nullable(Type$inboundSchema).optional(),
392
393
  company_id: z.nullable(z.string()).optional(),
393
394
  company_name: z.nullable(z.string()).optional(),
394
395
  lead_id: z.nullable(z.string()).optional(),
@@ -517,7 +518,7 @@ export const Contact$outboundSchema: z.ZodType<
517
518
  id: z.string().optional(),
518
519
  name: z.nullable(z.string()),
519
520
  ownerId: z.nullable(z.string()).optional(),
520
- type: z.nullable(ContactType$outboundSchema).optional(),
521
+ type: z.nullable(Type$outboundSchema).optional(),
521
522
  companyId: z.nullable(z.string()).optional(),
522
523
  companyName: z.nullable(z.string()).optional(),
523
524
  leadId: z.nullable(z.string()).optional(),
@@ -618,7 +619,7 @@ export const ContactInput$inboundSchema: z.ZodType<
618
619
  > = z.object({
619
620
  name: z.nullable(z.string()),
620
621
  owner_id: z.nullable(z.string()).optional(),
621
- type: z.nullable(ContactType$inboundSchema).optional(),
622
+ type: z.nullable(Type$inboundSchema).optional(),
622
623
  company_id: z.nullable(z.string()).optional(),
623
624
  company_name: z.nullable(z.string()).optional(),
624
625
  lead_id: z.nullable(z.string()).optional(),
@@ -717,7 +718,7 @@ export const ContactInput$outboundSchema: z.ZodType<
717
718
  > = z.object({
718
719
  name: z.nullable(z.string()),
719
720
  ownerId: z.nullable(z.string()).optional(),
720
- type: z.nullable(ContactType$outboundSchema).optional(),
721
+ type: z.nullable(Type$outboundSchema).optional(),
721
722
  companyId: z.nullable(z.string()).optional(),
722
723
  companyName: z.nullable(z.string()).optional(),
723
724
  leadId: z.nullable(z.string()).optional(),