@unified-api/typescript-sdk 2.9.2 → 2.9.4

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 (170) hide show
  1. package/README.md +12 -0
  2. package/funcs/commerceCreateCommerceMetadata.d.ts +13 -0
  3. package/funcs/commerceCreateCommerceMetadata.d.ts.map +1 -0
  4. package/funcs/commerceCreateCommerceMetadata.js +102 -0
  5. package/funcs/commerceCreateCommerceMetadata.js.map +1 -0
  6. package/funcs/commerceGetCommerceMetadata.d.ts +13 -0
  7. package/funcs/commerceGetCommerceMetadata.d.ts.map +1 -0
  8. package/funcs/commerceGetCommerceMetadata.js +105 -0
  9. package/funcs/commerceGetCommerceMetadata.js.map +1 -0
  10. package/funcs/commerceListCommerceMetadatas.d.ts +13 -0
  11. package/funcs/commerceListCommerceMetadatas.d.ts.map +1 -0
  12. package/funcs/commerceListCommerceMetadatas.js +108 -0
  13. package/funcs/commerceListCommerceMetadatas.js.map +1 -0
  14. package/funcs/commercePatchCommerceMetadata.d.ts +13 -0
  15. package/funcs/commercePatchCommerceMetadata.d.ts.map +1 -0
  16. package/funcs/commercePatchCommerceMetadata.js +106 -0
  17. package/funcs/commercePatchCommerceMetadata.js.map +1 -0
  18. package/funcs/commerceRemoveCommerceMetadata.d.ts +12 -0
  19. package/funcs/commerceRemoveCommerceMetadata.d.ts.map +1 -0
  20. package/funcs/commerceRemoveCommerceMetadata.js +103 -0
  21. package/funcs/commerceRemoveCommerceMetadata.js.map +1 -0
  22. package/funcs/commerceUpdateCommerceMetadata.d.ts +13 -0
  23. package/funcs/commerceUpdateCommerceMetadata.d.ts.map +1 -0
  24. package/funcs/commerceUpdateCommerceMetadata.js +106 -0
  25. package/funcs/commerceUpdateCommerceMetadata.js.map +1 -0
  26. package/funcs/metadataCreateCommerceMetadata.d.ts +13 -0
  27. package/funcs/metadataCreateCommerceMetadata.d.ts.map +1 -0
  28. package/funcs/metadataCreateCommerceMetadata.js +102 -0
  29. package/funcs/metadataCreateCommerceMetadata.js.map +1 -0
  30. package/funcs/metadataGetCommerceMetadata.d.ts +13 -0
  31. package/funcs/metadataGetCommerceMetadata.d.ts.map +1 -0
  32. package/funcs/metadataGetCommerceMetadata.js +105 -0
  33. package/funcs/metadataGetCommerceMetadata.js.map +1 -0
  34. package/funcs/metadataListCommerceMetadatas.d.ts +13 -0
  35. package/funcs/metadataListCommerceMetadatas.d.ts.map +1 -0
  36. package/funcs/metadataListCommerceMetadatas.js +108 -0
  37. package/funcs/metadataListCommerceMetadatas.js.map +1 -0
  38. package/funcs/metadataPatchCommerceMetadata.d.ts +13 -0
  39. package/funcs/metadataPatchCommerceMetadata.d.ts.map +1 -0
  40. package/funcs/metadataPatchCommerceMetadata.js +106 -0
  41. package/funcs/metadataPatchCommerceMetadata.js.map +1 -0
  42. package/funcs/metadataRemoveCommerceMetadata.d.ts +12 -0
  43. package/funcs/metadataRemoveCommerceMetadata.d.ts.map +1 -0
  44. package/funcs/metadataRemoveCommerceMetadata.js +103 -0
  45. package/funcs/metadataRemoveCommerceMetadata.js.map +1 -0
  46. package/funcs/metadataUpdateCommerceMetadata.d.ts +13 -0
  47. package/funcs/metadataUpdateCommerceMetadata.d.ts.map +1 -0
  48. package/funcs/metadataUpdateCommerceMetadata.js +106 -0
  49. package/funcs/metadataUpdateCommerceMetadata.js.map +1 -0
  50. package/lib/config.d.ts +3 -3
  51. package/lib/config.js +3 -3
  52. package/package.json +1 -1
  53. package/sdk/commerce.d.ts +24 -0
  54. package/sdk/commerce.d.ts.map +1 -1
  55. package/sdk/commerce.js +42 -0
  56. package/sdk/commerce.js.map +1 -1
  57. package/sdk/metadata.d.ts +30 -0
  58. package/sdk/metadata.d.ts.map +1 -0
  59. package/sdk/metadata.js +54 -0
  60. package/sdk/metadata.js.map +1 -0
  61. package/sdk/models/operations/createcommercemetadata.d.ts +40 -0
  62. package/sdk/models/operations/createcommercemetadata.d.ts.map +1 -0
  63. package/sdk/models/operations/createcommercemetadata.js +75 -0
  64. package/sdk/models/operations/createcommercemetadata.js.map +1 -0
  65. package/sdk/models/operations/getcommercemetadata.d.ts +42 -0
  66. package/sdk/models/operations/getcommercemetadata.d.ts.map +1 -0
  67. package/sdk/models/operations/getcommercemetadata.js +72 -0
  68. package/sdk/models/operations/getcommercemetadata.js.map +1 -0
  69. package/sdk/models/operations/getunifiedintegrationauth.d.ts +6 -0
  70. package/sdk/models/operations/getunifiedintegrationauth.d.ts.map +1 -1
  71. package/sdk/models/operations/getunifiedintegrationauth.js +2 -0
  72. package/sdk/models/operations/getunifiedintegrationauth.js.map +1 -1
  73. package/sdk/models/operations/index.d.ts +6 -0
  74. package/sdk/models/operations/index.d.ts.map +1 -1
  75. package/sdk/models/operations/index.js +6 -0
  76. package/sdk/models/operations/index.js.map +1 -1
  77. package/sdk/models/operations/listcommercemetadatas.d.ts +55 -0
  78. package/sdk/models/operations/listcommercemetadatas.d.ts.map +1 -0
  79. package/sdk/models/operations/listcommercemetadatas.js +85 -0
  80. package/sdk/models/operations/listcommercemetadatas.js.map +1 -0
  81. package/sdk/models/operations/patchcommercemetadata.d.ts +45 -0
  82. package/sdk/models/operations/patchcommercemetadata.d.ts.map +1 -0
  83. package/sdk/models/operations/patchcommercemetadata.js +77 -0
  84. package/sdk/models/operations/patchcommercemetadata.js.map +1 -0
  85. package/sdk/models/operations/removecommercemetadata.d.ts +66 -0
  86. package/sdk/models/operations/removecommercemetadata.d.ts.map +1 -0
  87. package/sdk/models/operations/removecommercemetadata.js +105 -0
  88. package/sdk/models/operations/removecommercemetadata.js.map +1 -0
  89. package/sdk/models/operations/updatecommercemetadata.d.ts +45 -0
  90. package/sdk/models/operations/updatecommercemetadata.d.ts.map +1 -0
  91. package/sdk/models/operations/updatecommercemetadata.js +77 -0
  92. package/sdk/models/operations/updatecommercemetadata.js.map +1 -0
  93. package/sdk/models/shared/commercecollection.d.ts +3 -3
  94. package/sdk/models/shared/commercecollection.d.ts.map +1 -1
  95. package/sdk/models/shared/commercecollection.js +3 -3
  96. package/sdk/models/shared/commercecollection.js.map +1 -1
  97. package/sdk/models/shared/commerceitem.d.ts +3 -3
  98. package/sdk/models/shared/commerceitem.d.ts.map +1 -1
  99. package/sdk/models/shared/commerceitem.js +3 -3
  100. package/sdk/models/shared/commerceitem.js.map +1 -1
  101. package/sdk/models/shared/commerceitemmedia.d.ts +3 -3
  102. package/sdk/models/shared/commerceitemmedia.d.ts.map +1 -1
  103. package/sdk/models/shared/commerceitemmedia.js +3 -3
  104. package/sdk/models/shared/commerceitemmedia.js.map +1 -1
  105. package/sdk/models/shared/commerceitemmetadata.d.ts +47 -0
  106. package/sdk/models/shared/commerceitemmetadata.d.ts.map +1 -0
  107. package/sdk/models/shared/commerceitemmetadata.js +78 -0
  108. package/sdk/models/shared/commerceitemmetadata.js.map +1 -0
  109. package/sdk/models/shared/commerceitemvariant.d.ts +3 -3
  110. package/sdk/models/shared/commerceitemvariant.d.ts.map +1 -1
  111. package/sdk/models/shared/commerceitemvariant.js +3 -3
  112. package/sdk/models/shared/commerceitemvariant.js.map +1 -1
  113. package/sdk/models/shared/commercemetadata.d.ts +2 -24
  114. package/sdk/models/shared/commercemetadata.d.ts.map +1 -1
  115. package/sdk/models/shared/commercemetadata.js +2 -25
  116. package/sdk/models/shared/commercemetadata.js.map +1 -1
  117. package/sdk/models/shared/index.d.ts +1 -0
  118. package/sdk/models/shared/index.d.ts.map +1 -1
  119. package/sdk/models/shared/index.js +1 -0
  120. package/sdk/models/shared/index.js.map +1 -1
  121. package/sdk/models/shared/integrationsupport.d.ts +360 -0
  122. package/sdk/models/shared/integrationsupport.d.ts.map +1 -1
  123. package/sdk/models/shared/integrationsupport.js +294 -4
  124. package/sdk/models/shared/integrationsupport.js.map +1 -1
  125. package/sdk/models/shared/propertyconnectionpermissions.d.ts +6 -0
  126. package/sdk/models/shared/propertyconnectionpermissions.d.ts.map +1 -1
  127. package/sdk/models/shared/propertyconnectionpermissions.js +2 -0
  128. package/sdk/models/shared/propertyconnectionpermissions.js.map +1 -1
  129. package/sdk/models/shared/webhook.d.ts +3 -0
  130. package/sdk/models/shared/webhook.d.ts.map +1 -1
  131. package/sdk/models/shared/webhook.js +1 -0
  132. package/sdk/models/shared/webhook.js.map +1 -1
  133. package/sdk/sdk.d.ts +3 -0
  134. package/sdk/sdk.d.ts.map +1 -1
  135. package/sdk/sdk.js +5 -0
  136. package/sdk/sdk.js.map +1 -1
  137. package/src/funcs/commerceCreateCommerceMetadata.ts +133 -0
  138. package/src/funcs/commerceGetCommerceMetadata.ts +138 -0
  139. package/src/funcs/commerceListCommerceMetadatas.ts +139 -0
  140. package/src/funcs/commercePatchCommerceMetadata.ts +139 -0
  141. package/src/funcs/commerceRemoveCommerceMetadata.ts +144 -0
  142. package/src/funcs/commerceUpdateCommerceMetadata.ts +139 -0
  143. package/src/funcs/metadataCreateCommerceMetadata.ts +133 -0
  144. package/src/funcs/metadataGetCommerceMetadata.ts +138 -0
  145. package/src/funcs/metadataListCommerceMetadatas.ts +139 -0
  146. package/src/funcs/metadataPatchCommerceMetadata.ts +139 -0
  147. package/src/funcs/metadataRemoveCommerceMetadata.ts +144 -0
  148. package/src/funcs/metadataUpdateCommerceMetadata.ts +139 -0
  149. package/src/lib/config.ts +3 -3
  150. package/src/sdk/commerce.ts +90 -0
  151. package/src/sdk/metadata.ts +100 -0
  152. package/src/sdk/models/operations/createcommercemetadata.ts +94 -0
  153. package/src/sdk/models/operations/getcommercemetadata.ts +92 -0
  154. package/src/sdk/models/operations/getunifiedintegrationauth.ts +2 -0
  155. package/src/sdk/models/operations/index.ts +6 -0
  156. package/src/sdk/models/operations/listcommercemetadatas.ts +120 -0
  157. package/src/sdk/models/operations/patchcommercemetadata.ts +101 -0
  158. package/src/sdk/models/operations/removecommercemetadata.ts +155 -0
  159. package/src/sdk/models/operations/updatecommercemetadata.ts +101 -0
  160. package/src/sdk/models/shared/commercecollection.ts +9 -9
  161. package/src/sdk/models/shared/commerceitem.ts +10 -10
  162. package/src/sdk/models/shared/commerceitemmedia.ts +9 -9
  163. package/src/sdk/models/shared/commerceitemmetadata.ts +95 -0
  164. package/src/sdk/models/shared/commerceitemvariant.ts +10 -10
  165. package/src/sdk/models/shared/commercemetadata.ts +4 -41
  166. package/src/sdk/models/shared/index.ts +1 -0
  167. package/src/sdk/models/shared/integrationsupport.ts +417 -0
  168. package/src/sdk/models/shared/propertyconnectionpermissions.ts +2 -0
  169. package/src/sdk/models/shared/webhook.ts +1 -0
  170. package/src/sdk/sdk.ts +6 -0
@@ -3,65 +3,28 @@
3
3
  */
4
4
 
5
5
  import * as z from "zod";
6
- import { remap as remap$ } from "../../../lib/primitives.js";
7
6
  import { safeParse } from "../../../lib/schemas.js";
8
7
  import { Result as SafeParseResult } from "../../types/fp.js";
9
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
9
 
11
- export type CommerceMetadata = {
12
- extraData?: { [k: string]: any } | undefined;
13
- id?: string | undefined;
14
- key: string;
15
- namespace?: string | undefined;
16
- type?: string | undefined;
17
- value?: { [k: string]: any } | undefined;
18
- };
10
+ export type CommerceMetadata = {};
19
11
 
20
12
  /** @internal */
21
13
  export const CommerceMetadata$inboundSchema: z.ZodType<
22
14
  CommerceMetadata,
23
15
  z.ZodTypeDef,
24
16
  unknown
25
- > = z.object({
26
- extra_data: z.record(z.any()).optional(),
27
- id: z.string().optional(),
28
- key: z.string(),
29
- namespace: z.string().optional(),
30
- type: z.string().optional(),
31
- value: z.record(z.any()).optional(),
32
- }).transform((v) => {
33
- return remap$(v, {
34
- "extra_data": "extraData",
35
- });
36
- });
17
+ > = z.object({});
37
18
 
38
19
  /** @internal */
39
- export type CommerceMetadata$Outbound = {
40
- extra_data?: { [k: string]: any } | undefined;
41
- id?: string | undefined;
42
- key: string;
43
- namespace?: string | undefined;
44
- type?: string | undefined;
45
- value?: { [k: string]: any } | undefined;
46
- };
20
+ export type CommerceMetadata$Outbound = {};
47
21
 
48
22
  /** @internal */
49
23
  export const CommerceMetadata$outboundSchema: z.ZodType<
50
24
  CommerceMetadata$Outbound,
51
25
  z.ZodTypeDef,
52
26
  CommerceMetadata
53
- > = z.object({
54
- extraData: z.record(z.any()).optional(),
55
- id: z.string().optional(),
56
- key: z.string(),
57
- namespace: z.string().optional(),
58
- type: z.string().optional(),
59
- value: z.record(z.any()).optional(),
60
- }).transform((v) => {
61
- return remap$(v, {
62
- extraData: "extra_data",
63
- });
64
- });
27
+ > = z.object({});
65
28
 
66
29
  /**
67
30
  * @internal
@@ -39,6 +39,7 @@ export * from "./commercecollection.js";
39
39
  export * from "./commerceinventory.js";
40
40
  export * from "./commerceitem.js";
41
41
  export * from "./commerceitemmedia.js";
42
+ export * from "./commerceitemmetadata.js";
42
43
  export * from "./commerceitemoption.js";
43
44
  export * from "./commerceitemprice.js";
44
45
  export * from "./commerceitemvariant.js";
@@ -274,6 +274,20 @@ export const ListUserId = {
274
274
  } as const;
275
275
  export type ListUserId = ClosedEnum<typeof ListUserId>;
276
276
 
277
+ export const NativeWebhookParentId = {
278
+ SupportedRequired: "supported-required",
279
+ Supported: "supported",
280
+ NotSupported: "not-supported",
281
+ } as const;
282
+ export type NativeWebhookParentId = ClosedEnum<typeof NativeWebhookParentId>;
283
+
284
+ export const NativeWebhookProjectId = {
285
+ SupportedRequired: "supported-required",
286
+ Supported: "supported",
287
+ NotSupported: "not-supported",
288
+ } as const;
289
+ export type NativeWebhookProjectId = ClosedEnum<typeof NativeWebhookProjectId>;
290
+
277
291
  export const SearchDomain = {
278
292
  SupportedRequired: "supported-required",
279
293
  Supported: "supported",
@@ -309,6 +323,84 @@ export const SearchTwitter = {
309
323
  } as const;
310
324
  export type SearchTwitter = ClosedEnum<typeof SearchTwitter>;
311
325
 
326
+ export const VirtualWebhookChannelId = {
327
+ SupportedRequired: "supported-required",
328
+ Supported: "supported",
329
+ NotSupported: "not-supported",
330
+ } as const;
331
+ export type VirtualWebhookChannelId = ClosedEnum<
332
+ typeof VirtualWebhookChannelId
333
+ >;
334
+
335
+ export const VirtualWebhookCompanyId = {
336
+ SupportedRequired: "supported-required",
337
+ Supported: "supported",
338
+ NotSupported: "not-supported",
339
+ } as const;
340
+ export type VirtualWebhookCompanyId = ClosedEnum<
341
+ typeof VirtualWebhookCompanyId
342
+ >;
343
+
344
+ export const VirtualWebhookContactId = {
345
+ SupportedRequired: "supported-required",
346
+ Supported: "supported",
347
+ NotSupported: "not-supported",
348
+ } as const;
349
+ export type VirtualWebhookContactId = ClosedEnum<
350
+ typeof VirtualWebhookContactId
351
+ >;
352
+
353
+ export const VirtualWebhookDealId = {
354
+ SupportedRequired: "supported-required",
355
+ Supported: "supported",
356
+ NotSupported: "not-supported",
357
+ } as const;
358
+ export type VirtualWebhookDealId = ClosedEnum<typeof VirtualWebhookDealId>;
359
+
360
+ export const VirtualWebhookLimit = {
361
+ SupportedRequired: "supported-required",
362
+ Supported: "supported",
363
+ NotSupported: "not-supported",
364
+ } as const;
365
+ export type VirtualWebhookLimit = ClosedEnum<typeof VirtualWebhookLimit>;
366
+
367
+ export const VirtualWebhookParentId = {
368
+ SupportedRequired: "supported-required",
369
+ Supported: "supported",
370
+ NotSupported: "not-supported",
371
+ } as const;
372
+ export type VirtualWebhookParentId = ClosedEnum<typeof VirtualWebhookParentId>;
373
+
374
+ export const VirtualWebhookTicketId = {
375
+ SupportedRequired: "supported-required",
376
+ Supported: "supported",
377
+ NotSupported: "not-supported",
378
+ } as const;
379
+ export type VirtualWebhookTicketId = ClosedEnum<typeof VirtualWebhookTicketId>;
380
+
381
+ export const VirtualWebhookType = {
382
+ SupportedRequired: "supported-required",
383
+ Supported: "supported",
384
+ NotSupported: "not-supported",
385
+ } as const;
386
+ export type VirtualWebhookType = ClosedEnum<typeof VirtualWebhookType>;
387
+
388
+ export const VirtualWebhookUpdatedGte = {
389
+ SupportedRequired: "supported-required",
390
+ Supported: "supported",
391
+ NotSupported: "not-supported",
392
+ } as const;
393
+ export type VirtualWebhookUpdatedGte = ClosedEnum<
394
+ typeof VirtualWebhookUpdatedGte
395
+ >;
396
+
397
+ export const VirtualWebhookUserId = {
398
+ SupportedRequired: "supported-required",
399
+ Supported: "supported",
400
+ NotSupported: "not-supported",
401
+ } as const;
402
+ export type VirtualWebhookUserId = ClosedEnum<typeof VirtualWebhookUserId>;
403
+
312
404
  export type IntegrationSupport = {
313
405
  fromWebhook?: FromWebhook | undefined;
314
406
  inboundFields?: { [k: string]: any } | undefined;
@@ -349,6 +441,8 @@ export type IntegrationSupport = {
349
441
  listUpdatedGte?: ListUpdatedGte | undefined;
350
442
  listUserId?: ListUserId | undefined;
351
443
  methods?: { [k: string]: boolean } | undefined;
444
+ nativeWebhookParentId?: NativeWebhookParentId | undefined;
445
+ nativeWebhookProjectId?: NativeWebhookProjectId | undefined;
352
446
  outboundFields?: { [k: string]: any } | undefined;
353
447
  /**
354
448
  * objects that we map from in the integration
@@ -359,6 +453,16 @@ export type IntegrationSupport = {
359
453
  searchLinkedinurl?: SearchLinkedinurl | undefined;
360
454
  searchName?: SearchName | undefined;
361
455
  searchTwitter?: SearchTwitter | undefined;
456
+ virtualWebhookChannelId?: VirtualWebhookChannelId | undefined;
457
+ virtualWebhookCompanyId?: VirtualWebhookCompanyId | undefined;
458
+ virtualWebhookContactId?: VirtualWebhookContactId | undefined;
459
+ virtualWebhookDealId?: VirtualWebhookDealId | undefined;
460
+ virtualWebhookLimit?: VirtualWebhookLimit | undefined;
461
+ virtualWebhookParentId?: VirtualWebhookParentId | undefined;
462
+ virtualWebhookTicketId?: VirtualWebhookTicketId | undefined;
463
+ virtualWebhookType?: VirtualWebhookType | undefined;
464
+ virtualWebhookUpdatedGte?: VirtualWebhookUpdatedGte | undefined;
465
+ virtualWebhookUserId?: VirtualWebhookUserId | undefined;
362
466
  webhookEvents?: PropertyIntegrationSupportWebhookEvents | undefined;
363
467
  };
364
468
 
@@ -1105,6 +1209,48 @@ export namespace ListUserId$ {
1105
1209
  export const outboundSchema = ListUserId$outboundSchema;
1106
1210
  }
1107
1211
 
1212
+ /** @internal */
1213
+ export const NativeWebhookParentId$inboundSchema: z.ZodNativeEnum<
1214
+ typeof NativeWebhookParentId
1215
+ > = z.nativeEnum(NativeWebhookParentId);
1216
+
1217
+ /** @internal */
1218
+ export const NativeWebhookParentId$outboundSchema: z.ZodNativeEnum<
1219
+ typeof NativeWebhookParentId
1220
+ > = NativeWebhookParentId$inboundSchema;
1221
+
1222
+ /**
1223
+ * @internal
1224
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1225
+ */
1226
+ export namespace NativeWebhookParentId$ {
1227
+ /** @deprecated use `NativeWebhookParentId$inboundSchema` instead. */
1228
+ export const inboundSchema = NativeWebhookParentId$inboundSchema;
1229
+ /** @deprecated use `NativeWebhookParentId$outboundSchema` instead. */
1230
+ export const outboundSchema = NativeWebhookParentId$outboundSchema;
1231
+ }
1232
+
1233
+ /** @internal */
1234
+ export const NativeWebhookProjectId$inboundSchema: z.ZodNativeEnum<
1235
+ typeof NativeWebhookProjectId
1236
+ > = z.nativeEnum(NativeWebhookProjectId);
1237
+
1238
+ /** @internal */
1239
+ export const NativeWebhookProjectId$outboundSchema: z.ZodNativeEnum<
1240
+ typeof NativeWebhookProjectId
1241
+ > = NativeWebhookProjectId$inboundSchema;
1242
+
1243
+ /**
1244
+ * @internal
1245
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1246
+ */
1247
+ export namespace NativeWebhookProjectId$ {
1248
+ /** @deprecated use `NativeWebhookProjectId$inboundSchema` instead. */
1249
+ export const inboundSchema = NativeWebhookProjectId$inboundSchema;
1250
+ /** @deprecated use `NativeWebhookProjectId$outboundSchema` instead. */
1251
+ export const outboundSchema = NativeWebhookProjectId$outboundSchema;
1252
+ }
1253
+
1108
1254
  /** @internal */
1109
1255
  export const SearchDomain$inboundSchema: z.ZodNativeEnum<typeof SearchDomain> =
1110
1256
  z.nativeEnum(SearchDomain);
@@ -1204,6 +1350,216 @@ export namespace SearchTwitter$ {
1204
1350
  export const outboundSchema = SearchTwitter$outboundSchema;
1205
1351
  }
1206
1352
 
1353
+ /** @internal */
1354
+ export const VirtualWebhookChannelId$inboundSchema: z.ZodNativeEnum<
1355
+ typeof VirtualWebhookChannelId
1356
+ > = z.nativeEnum(VirtualWebhookChannelId);
1357
+
1358
+ /** @internal */
1359
+ export const VirtualWebhookChannelId$outboundSchema: z.ZodNativeEnum<
1360
+ typeof VirtualWebhookChannelId
1361
+ > = VirtualWebhookChannelId$inboundSchema;
1362
+
1363
+ /**
1364
+ * @internal
1365
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1366
+ */
1367
+ export namespace VirtualWebhookChannelId$ {
1368
+ /** @deprecated use `VirtualWebhookChannelId$inboundSchema` instead. */
1369
+ export const inboundSchema = VirtualWebhookChannelId$inboundSchema;
1370
+ /** @deprecated use `VirtualWebhookChannelId$outboundSchema` instead. */
1371
+ export const outboundSchema = VirtualWebhookChannelId$outboundSchema;
1372
+ }
1373
+
1374
+ /** @internal */
1375
+ export const VirtualWebhookCompanyId$inboundSchema: z.ZodNativeEnum<
1376
+ typeof VirtualWebhookCompanyId
1377
+ > = z.nativeEnum(VirtualWebhookCompanyId);
1378
+
1379
+ /** @internal */
1380
+ export const VirtualWebhookCompanyId$outboundSchema: z.ZodNativeEnum<
1381
+ typeof VirtualWebhookCompanyId
1382
+ > = VirtualWebhookCompanyId$inboundSchema;
1383
+
1384
+ /**
1385
+ * @internal
1386
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1387
+ */
1388
+ export namespace VirtualWebhookCompanyId$ {
1389
+ /** @deprecated use `VirtualWebhookCompanyId$inboundSchema` instead. */
1390
+ export const inboundSchema = VirtualWebhookCompanyId$inboundSchema;
1391
+ /** @deprecated use `VirtualWebhookCompanyId$outboundSchema` instead. */
1392
+ export const outboundSchema = VirtualWebhookCompanyId$outboundSchema;
1393
+ }
1394
+
1395
+ /** @internal */
1396
+ export const VirtualWebhookContactId$inboundSchema: z.ZodNativeEnum<
1397
+ typeof VirtualWebhookContactId
1398
+ > = z.nativeEnum(VirtualWebhookContactId);
1399
+
1400
+ /** @internal */
1401
+ export const VirtualWebhookContactId$outboundSchema: z.ZodNativeEnum<
1402
+ typeof VirtualWebhookContactId
1403
+ > = VirtualWebhookContactId$inboundSchema;
1404
+
1405
+ /**
1406
+ * @internal
1407
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1408
+ */
1409
+ export namespace VirtualWebhookContactId$ {
1410
+ /** @deprecated use `VirtualWebhookContactId$inboundSchema` instead. */
1411
+ export const inboundSchema = VirtualWebhookContactId$inboundSchema;
1412
+ /** @deprecated use `VirtualWebhookContactId$outboundSchema` instead. */
1413
+ export const outboundSchema = VirtualWebhookContactId$outboundSchema;
1414
+ }
1415
+
1416
+ /** @internal */
1417
+ export const VirtualWebhookDealId$inboundSchema: z.ZodNativeEnum<
1418
+ typeof VirtualWebhookDealId
1419
+ > = z.nativeEnum(VirtualWebhookDealId);
1420
+
1421
+ /** @internal */
1422
+ export const VirtualWebhookDealId$outboundSchema: z.ZodNativeEnum<
1423
+ typeof VirtualWebhookDealId
1424
+ > = VirtualWebhookDealId$inboundSchema;
1425
+
1426
+ /**
1427
+ * @internal
1428
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1429
+ */
1430
+ export namespace VirtualWebhookDealId$ {
1431
+ /** @deprecated use `VirtualWebhookDealId$inboundSchema` instead. */
1432
+ export const inboundSchema = VirtualWebhookDealId$inboundSchema;
1433
+ /** @deprecated use `VirtualWebhookDealId$outboundSchema` instead. */
1434
+ export const outboundSchema = VirtualWebhookDealId$outboundSchema;
1435
+ }
1436
+
1437
+ /** @internal */
1438
+ export const VirtualWebhookLimit$inboundSchema: z.ZodNativeEnum<
1439
+ typeof VirtualWebhookLimit
1440
+ > = z.nativeEnum(VirtualWebhookLimit);
1441
+
1442
+ /** @internal */
1443
+ export const VirtualWebhookLimit$outboundSchema: z.ZodNativeEnum<
1444
+ typeof VirtualWebhookLimit
1445
+ > = VirtualWebhookLimit$inboundSchema;
1446
+
1447
+ /**
1448
+ * @internal
1449
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1450
+ */
1451
+ export namespace VirtualWebhookLimit$ {
1452
+ /** @deprecated use `VirtualWebhookLimit$inboundSchema` instead. */
1453
+ export const inboundSchema = VirtualWebhookLimit$inboundSchema;
1454
+ /** @deprecated use `VirtualWebhookLimit$outboundSchema` instead. */
1455
+ export const outboundSchema = VirtualWebhookLimit$outboundSchema;
1456
+ }
1457
+
1458
+ /** @internal */
1459
+ export const VirtualWebhookParentId$inboundSchema: z.ZodNativeEnum<
1460
+ typeof VirtualWebhookParentId
1461
+ > = z.nativeEnum(VirtualWebhookParentId);
1462
+
1463
+ /** @internal */
1464
+ export const VirtualWebhookParentId$outboundSchema: z.ZodNativeEnum<
1465
+ typeof VirtualWebhookParentId
1466
+ > = VirtualWebhookParentId$inboundSchema;
1467
+
1468
+ /**
1469
+ * @internal
1470
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1471
+ */
1472
+ export namespace VirtualWebhookParentId$ {
1473
+ /** @deprecated use `VirtualWebhookParentId$inboundSchema` instead. */
1474
+ export const inboundSchema = VirtualWebhookParentId$inboundSchema;
1475
+ /** @deprecated use `VirtualWebhookParentId$outboundSchema` instead. */
1476
+ export const outboundSchema = VirtualWebhookParentId$outboundSchema;
1477
+ }
1478
+
1479
+ /** @internal */
1480
+ export const VirtualWebhookTicketId$inboundSchema: z.ZodNativeEnum<
1481
+ typeof VirtualWebhookTicketId
1482
+ > = z.nativeEnum(VirtualWebhookTicketId);
1483
+
1484
+ /** @internal */
1485
+ export const VirtualWebhookTicketId$outboundSchema: z.ZodNativeEnum<
1486
+ typeof VirtualWebhookTicketId
1487
+ > = VirtualWebhookTicketId$inboundSchema;
1488
+
1489
+ /**
1490
+ * @internal
1491
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1492
+ */
1493
+ export namespace VirtualWebhookTicketId$ {
1494
+ /** @deprecated use `VirtualWebhookTicketId$inboundSchema` instead. */
1495
+ export const inboundSchema = VirtualWebhookTicketId$inboundSchema;
1496
+ /** @deprecated use `VirtualWebhookTicketId$outboundSchema` instead. */
1497
+ export const outboundSchema = VirtualWebhookTicketId$outboundSchema;
1498
+ }
1499
+
1500
+ /** @internal */
1501
+ export const VirtualWebhookType$inboundSchema: z.ZodNativeEnum<
1502
+ typeof VirtualWebhookType
1503
+ > = z.nativeEnum(VirtualWebhookType);
1504
+
1505
+ /** @internal */
1506
+ export const VirtualWebhookType$outboundSchema: z.ZodNativeEnum<
1507
+ typeof VirtualWebhookType
1508
+ > = VirtualWebhookType$inboundSchema;
1509
+
1510
+ /**
1511
+ * @internal
1512
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1513
+ */
1514
+ export namespace VirtualWebhookType$ {
1515
+ /** @deprecated use `VirtualWebhookType$inboundSchema` instead. */
1516
+ export const inboundSchema = VirtualWebhookType$inboundSchema;
1517
+ /** @deprecated use `VirtualWebhookType$outboundSchema` instead. */
1518
+ export const outboundSchema = VirtualWebhookType$outboundSchema;
1519
+ }
1520
+
1521
+ /** @internal */
1522
+ export const VirtualWebhookUpdatedGte$inboundSchema: z.ZodNativeEnum<
1523
+ typeof VirtualWebhookUpdatedGte
1524
+ > = z.nativeEnum(VirtualWebhookUpdatedGte);
1525
+
1526
+ /** @internal */
1527
+ export const VirtualWebhookUpdatedGte$outboundSchema: z.ZodNativeEnum<
1528
+ typeof VirtualWebhookUpdatedGte
1529
+ > = VirtualWebhookUpdatedGte$inboundSchema;
1530
+
1531
+ /**
1532
+ * @internal
1533
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1534
+ */
1535
+ export namespace VirtualWebhookUpdatedGte$ {
1536
+ /** @deprecated use `VirtualWebhookUpdatedGte$inboundSchema` instead. */
1537
+ export const inboundSchema = VirtualWebhookUpdatedGte$inboundSchema;
1538
+ /** @deprecated use `VirtualWebhookUpdatedGte$outboundSchema` instead. */
1539
+ export const outboundSchema = VirtualWebhookUpdatedGte$outboundSchema;
1540
+ }
1541
+
1542
+ /** @internal */
1543
+ export const VirtualWebhookUserId$inboundSchema: z.ZodNativeEnum<
1544
+ typeof VirtualWebhookUserId
1545
+ > = z.nativeEnum(VirtualWebhookUserId);
1546
+
1547
+ /** @internal */
1548
+ export const VirtualWebhookUserId$outboundSchema: z.ZodNativeEnum<
1549
+ typeof VirtualWebhookUserId
1550
+ > = VirtualWebhookUserId$inboundSchema;
1551
+
1552
+ /**
1553
+ * @internal
1554
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1555
+ */
1556
+ export namespace VirtualWebhookUserId$ {
1557
+ /** @deprecated use `VirtualWebhookUserId$inboundSchema` instead. */
1558
+ export const inboundSchema = VirtualWebhookUserId$inboundSchema;
1559
+ /** @deprecated use `VirtualWebhookUserId$outboundSchema` instead. */
1560
+ export const outboundSchema = VirtualWebhookUserId$outboundSchema;
1561
+ }
1562
+
1207
1563
  /** @internal */
1208
1564
  export const IntegrationSupport$inboundSchema: z.ZodType<
1209
1565
  IntegrationSupport,
@@ -1249,6 +1605,8 @@ export const IntegrationSupport$inboundSchema: z.ZodType<
1249
1605
  list_updated_gte: ListUpdatedGte$inboundSchema.optional(),
1250
1606
  list_user_id: ListUserId$inboundSchema.optional(),
1251
1607
  methods: z.record(z.boolean()).optional(),
1608
+ native_webhook_parent_id: NativeWebhookParentId$inboundSchema.optional(),
1609
+ native_webhook_project_id: NativeWebhookProjectId$inboundSchema.optional(),
1252
1610
  outbound_fields: z.record(z.any()).optional(),
1253
1611
  raw_objects: z.array(z.string()).optional(),
1254
1612
  search_domain: SearchDomain$inboundSchema.optional(),
@@ -1256,6 +1614,17 @@ export const IntegrationSupport$inboundSchema: z.ZodType<
1256
1614
  search_linkedinurl: SearchLinkedinurl$inboundSchema.optional(),
1257
1615
  search_name: SearchName$inboundSchema.optional(),
1258
1616
  search_twitter: SearchTwitter$inboundSchema.optional(),
1617
+ virtual_webhook_channel_id: VirtualWebhookChannelId$inboundSchema.optional(),
1618
+ virtual_webhook_company_id: VirtualWebhookCompanyId$inboundSchema.optional(),
1619
+ virtual_webhook_contact_id: VirtualWebhookContactId$inboundSchema.optional(),
1620
+ virtual_webhook_deal_id: VirtualWebhookDealId$inboundSchema.optional(),
1621
+ virtual_webhook_limit: VirtualWebhookLimit$inboundSchema.optional(),
1622
+ virtual_webhook_parent_id: VirtualWebhookParentId$inboundSchema.optional(),
1623
+ virtual_webhook_ticket_id: VirtualWebhookTicketId$inboundSchema.optional(),
1624
+ virtual_webhook_type: VirtualWebhookType$inboundSchema.optional(),
1625
+ virtual_webhook_updated_gte: VirtualWebhookUpdatedGte$inboundSchema
1626
+ .optional(),
1627
+ virtual_webhook_user_id: VirtualWebhookUserId$inboundSchema.optional(),
1259
1628
  webhook_events: PropertyIntegrationSupportWebhookEvents$inboundSchema
1260
1629
  .optional(),
1261
1630
  }).transform((v) => {
@@ -1298,6 +1667,8 @@ export const IntegrationSupport$inboundSchema: z.ZodType<
1298
1667
  "list_type": "listType",
1299
1668
  "list_updated_gte": "listUpdatedGte",
1300
1669
  "list_user_id": "listUserId",
1670
+ "native_webhook_parent_id": "nativeWebhookParentId",
1671
+ "native_webhook_project_id": "nativeWebhookProjectId",
1301
1672
  "outbound_fields": "outboundFields",
1302
1673
  "raw_objects": "rawObjects",
1303
1674
  "search_domain": "searchDomain",
@@ -1305,6 +1676,16 @@ export const IntegrationSupport$inboundSchema: z.ZodType<
1305
1676
  "search_linkedinurl": "searchLinkedinurl",
1306
1677
  "search_name": "searchName",
1307
1678
  "search_twitter": "searchTwitter",
1679
+ "virtual_webhook_channel_id": "virtualWebhookChannelId",
1680
+ "virtual_webhook_company_id": "virtualWebhookCompanyId",
1681
+ "virtual_webhook_contact_id": "virtualWebhookContactId",
1682
+ "virtual_webhook_deal_id": "virtualWebhookDealId",
1683
+ "virtual_webhook_limit": "virtualWebhookLimit",
1684
+ "virtual_webhook_parent_id": "virtualWebhookParentId",
1685
+ "virtual_webhook_ticket_id": "virtualWebhookTicketId",
1686
+ "virtual_webhook_type": "virtualWebhookType",
1687
+ "virtual_webhook_updated_gte": "virtualWebhookUpdatedGte",
1688
+ "virtual_webhook_user_id": "virtualWebhookUserId",
1308
1689
  "webhook_events": "webhookEvents",
1309
1690
  });
1310
1691
  });
@@ -1350,6 +1731,8 @@ export type IntegrationSupport$Outbound = {
1350
1731
  list_updated_gte?: string | undefined;
1351
1732
  list_user_id?: string | undefined;
1352
1733
  methods?: { [k: string]: boolean } | undefined;
1734
+ native_webhook_parent_id?: string | undefined;
1735
+ native_webhook_project_id?: string | undefined;
1353
1736
  outbound_fields?: { [k: string]: any } | undefined;
1354
1737
  raw_objects?: Array<string> | undefined;
1355
1738
  search_domain?: string | undefined;
@@ -1357,6 +1740,16 @@ export type IntegrationSupport$Outbound = {
1357
1740
  search_linkedinurl?: string | undefined;
1358
1741
  search_name?: string | undefined;
1359
1742
  search_twitter?: string | undefined;
1743
+ virtual_webhook_channel_id?: string | undefined;
1744
+ virtual_webhook_company_id?: string | undefined;
1745
+ virtual_webhook_contact_id?: string | undefined;
1746
+ virtual_webhook_deal_id?: string | undefined;
1747
+ virtual_webhook_limit?: string | undefined;
1748
+ virtual_webhook_parent_id?: string | undefined;
1749
+ virtual_webhook_ticket_id?: string | undefined;
1750
+ virtual_webhook_type?: string | undefined;
1751
+ virtual_webhook_updated_gte?: string | undefined;
1752
+ virtual_webhook_user_id?: string | undefined;
1360
1753
  webhook_events?: PropertyIntegrationSupportWebhookEvents$Outbound | undefined;
1361
1754
  };
1362
1755
 
@@ -1405,6 +1798,8 @@ export const IntegrationSupport$outboundSchema: z.ZodType<
1405
1798
  listUpdatedGte: ListUpdatedGte$outboundSchema.optional(),
1406
1799
  listUserId: ListUserId$outboundSchema.optional(),
1407
1800
  methods: z.record(z.boolean()).optional(),
1801
+ nativeWebhookParentId: NativeWebhookParentId$outboundSchema.optional(),
1802
+ nativeWebhookProjectId: NativeWebhookProjectId$outboundSchema.optional(),
1408
1803
  outboundFields: z.record(z.any()).optional(),
1409
1804
  rawObjects: z.array(z.string()).optional(),
1410
1805
  searchDomain: SearchDomain$outboundSchema.optional(),
@@ -1412,6 +1807,16 @@ export const IntegrationSupport$outboundSchema: z.ZodType<
1412
1807
  searchLinkedinurl: SearchLinkedinurl$outboundSchema.optional(),
1413
1808
  searchName: SearchName$outboundSchema.optional(),
1414
1809
  searchTwitter: SearchTwitter$outboundSchema.optional(),
1810
+ virtualWebhookChannelId: VirtualWebhookChannelId$outboundSchema.optional(),
1811
+ virtualWebhookCompanyId: VirtualWebhookCompanyId$outboundSchema.optional(),
1812
+ virtualWebhookContactId: VirtualWebhookContactId$outboundSchema.optional(),
1813
+ virtualWebhookDealId: VirtualWebhookDealId$outboundSchema.optional(),
1814
+ virtualWebhookLimit: VirtualWebhookLimit$outboundSchema.optional(),
1815
+ virtualWebhookParentId: VirtualWebhookParentId$outboundSchema.optional(),
1816
+ virtualWebhookTicketId: VirtualWebhookTicketId$outboundSchema.optional(),
1817
+ virtualWebhookType: VirtualWebhookType$outboundSchema.optional(),
1818
+ virtualWebhookUpdatedGte: VirtualWebhookUpdatedGte$outboundSchema.optional(),
1819
+ virtualWebhookUserId: VirtualWebhookUserId$outboundSchema.optional(),
1415
1820
  webhookEvents: PropertyIntegrationSupportWebhookEvents$outboundSchema
1416
1821
  .optional(),
1417
1822
  }).transform((v) => {
@@ -1454,6 +1859,8 @@ export const IntegrationSupport$outboundSchema: z.ZodType<
1454
1859
  listType: "list_type",
1455
1860
  listUpdatedGte: "list_updated_gte",
1456
1861
  listUserId: "list_user_id",
1862
+ nativeWebhookParentId: "native_webhook_parent_id",
1863
+ nativeWebhookProjectId: "native_webhook_project_id",
1457
1864
  outboundFields: "outbound_fields",
1458
1865
  rawObjects: "raw_objects",
1459
1866
  searchDomain: "search_domain",
@@ -1461,6 +1868,16 @@ export const IntegrationSupport$outboundSchema: z.ZodType<
1461
1868
  searchLinkedinurl: "search_linkedinurl",
1462
1869
  searchName: "search_name",
1463
1870
  searchTwitter: "search_twitter",
1871
+ virtualWebhookChannelId: "virtual_webhook_channel_id",
1872
+ virtualWebhookCompanyId: "virtual_webhook_company_id",
1873
+ virtualWebhookContactId: "virtual_webhook_contact_id",
1874
+ virtualWebhookDealId: "virtual_webhook_deal_id",
1875
+ virtualWebhookLimit: "virtual_webhook_limit",
1876
+ virtualWebhookParentId: "virtual_webhook_parent_id",
1877
+ virtualWebhookTicketId: "virtual_webhook_ticket_id",
1878
+ virtualWebhookType: "virtual_webhook_type",
1879
+ virtualWebhookUpdatedGte: "virtual_webhook_updated_gte",
1880
+ virtualWebhookUserId: "virtual_webhook_user_id",
1464
1881
  webhookEvents: "webhook_events",
1465
1882
  });
1466
1883
  });
@@ -36,6 +36,8 @@ export const PropertyConnectionPermissions = {
36
36
  CommerceInventoryWrite: "commerce_inventory_write",
37
37
  CommerceLocationRead: "commerce_location_read",
38
38
  CommerceLocationWrite: "commerce_location_write",
39
+ CommerceMetadataRead: "commerce_metadata_read",
40
+ CommerceMetadataWrite: "commerce_metadata_write",
39
41
  AtsActivityRead: "ats_activity_read",
40
42
  AtsActivityWrite: "ats_activity_write",
41
43
  AtsApplicationRead: "ats_application_read",
@@ -33,6 +33,7 @@ export const ObjectType = {
33
33
  CommerceCollection: "commerce_collection",
34
34
  CommerceInventory: "commerce_inventory",
35
35
  CommerceLocation: "commerce_location",
36
+ CommerceMetadata: "commerce_metadata",
36
37
  AtsActivity: "ats_activity",
37
38
  AtsApplication: "ats_application",
38
39
  AtsApplicationstatus: "ats_applicationstatus",
package/src/sdk/sdk.ts CHANGED
@@ -54,6 +54,7 @@ import { Martech } from "./martech.js";
54
54
  import { Member } from "./member.js";
55
55
  import { Message } from "./message.js";
56
56
  import { Messaging } from "./messaging.js";
57
+ import { Metadata } from "./metadata.js";
57
58
  import { Model } from "./model.js";
58
59
  import { Note } from "./note.js";
59
60
  import { Order } from "./order.js";
@@ -208,6 +209,11 @@ export class UnifiedTo extends ClientSDK {
208
209
  return (this._location ??= new Location(this._options));
209
210
  }
210
211
 
212
+ private _metadata?: Metadata;
213
+ get metadata(): Metadata {
214
+ return (this._metadata ??= new Metadata(this._options));
215
+ }
216
+
211
217
  private _crm?: Crm;
212
218
  get crm(): Crm {
213
219
  return (this._crm ??= new Crm(this._options));