@unified-api/typescript-sdk 2.78.1 → 2.80.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 (57) hide show
  1. package/README.md +1 -1
  2. package/examples/package-lock.json +1 -1
  3. package/jsr.json +1 -1
  4. package/lib/config.d.ts +3 -3
  5. package/lib/config.js +3 -3
  6. package/package.json +1 -1
  7. package/sdk/models/shared/calendareventrecurrence.d.ts +7 -2
  8. package/sdk/models/shared/calendareventrecurrence.d.ts.map +1 -1
  9. package/sdk/models/shared/calendareventrecurrence.js +6 -2
  10. package/sdk/models/shared/calendareventrecurrence.js.map +1 -1
  11. package/sdk/models/shared/index.d.ts +5 -0
  12. package/sdk/models/shared/index.d.ts.map +1 -1
  13. package/sdk/models/shared/index.js +5 -0
  14. package/sdk/models/shared/index.js.map +1 -1
  15. package/sdk/models/shared/integration.d.ts +3 -2
  16. package/sdk/models/shared/integration.d.ts.map +1 -1
  17. package/sdk/models/shared/integration.js +3 -2
  18. package/sdk/models/shared/integration.js.map +1 -1
  19. package/sdk/models/shared/integrationsupport.d.ts +2410 -0
  20. package/sdk/models/shared/integrationsupport.d.ts.map +1 -0
  21. package/sdk/models/shared/integrationsupport.js +3440 -0
  22. package/sdk/models/shared/integrationsupport.js.map +1 -0
  23. package/sdk/models/shared/kmspagemetadata.d.ts +5 -0
  24. package/sdk/models/shared/kmspagemetadata.d.ts.map +1 -1
  25. package/sdk/models/shared/kmspagemetadata.js +5 -0
  26. package/sdk/models/shared/kmspagemetadata.js.map +1 -1
  27. package/sdk/models/shared/propertyintegrationsupportwebhookevents.d.ts +36 -0
  28. package/sdk/models/shared/propertyintegrationsupportwebhookevents.d.ts.map +1 -0
  29. package/sdk/models/shared/propertyintegrationsupportwebhookevents.js +79 -0
  30. package/sdk/models/shared/propertyintegrationsupportwebhookevents.js.map +1 -0
  31. package/sdk/models/shared/propertyintegrationsupportwebhookeventscreated.d.ts +22 -0
  32. package/sdk/models/shared/propertyintegrationsupportwebhookeventscreated.d.ts.map +1 -0
  33. package/sdk/models/shared/propertyintegrationsupportwebhookeventscreated.js +68 -0
  34. package/sdk/models/shared/propertyintegrationsupportwebhookeventscreated.js.map +1 -0
  35. package/sdk/models/shared/propertyintegrationsupportwebhookeventsdeleted.d.ts +22 -0
  36. package/sdk/models/shared/propertyintegrationsupportwebhookeventsdeleted.d.ts.map +1 -0
  37. package/sdk/models/shared/propertyintegrationsupportwebhookeventsdeleted.js +68 -0
  38. package/sdk/models/shared/propertyintegrationsupportwebhookeventsdeleted.js.map +1 -0
  39. package/sdk/models/shared/propertyintegrationsupportwebhookeventsupdated.d.ts +22 -0
  40. package/sdk/models/shared/propertyintegrationsupportwebhookeventsupdated.d.ts.map +1 -0
  41. package/sdk/models/shared/propertyintegrationsupportwebhookeventsupdated.js +68 -0
  42. package/sdk/models/shared/propertyintegrationsupportwebhookeventsupdated.js.map +1 -0
  43. package/sdk/models/shared/webhook.d.ts +2 -2
  44. package/sdk/models/shared/webhook.d.ts.map +1 -1
  45. package/sdk/models/shared/webhook.js +2 -2
  46. package/sdk/models/shared/webhook.js.map +1 -1
  47. package/src/lib/config.ts +3 -3
  48. package/src/sdk/models/shared/calendareventrecurrence.ts +13 -4
  49. package/src/sdk/models/shared/index.ts +5 -0
  50. package/src/sdk/models/shared/integration.ts +10 -4
  51. package/src/sdk/models/shared/integrationsupport.ts +4969 -0
  52. package/src/sdk/models/shared/kmspagemetadata.ts +5 -0
  53. package/src/sdk/models/shared/propertyintegrationsupportwebhookevents.ts +109 -0
  54. package/src/sdk/models/shared/propertyintegrationsupportwebhookeventscreated.ts +54 -0
  55. package/src/sdk/models/shared/propertyintegrationsupportwebhookeventsdeleted.ts +54 -0
  56. package/src/sdk/models/shared/propertyintegrationsupportwebhookeventsupdated.ts +54 -0
  57. package/src/sdk/models/shared/webhook.ts +4 -4
@@ -38,6 +38,11 @@ export const KmsPageMetadataFormat = {
38
38
  YesNo: "YES_NO",
39
39
  Currency: "CURRENCY",
40
40
  Url: "URL",
41
+ Percent: "PERCENT",
42
+ Email: "EMAIL",
43
+ Phone: "PHONE",
44
+ Reference: "REFERENCE",
45
+ Time: "TIME",
41
46
  } as const;
42
47
  export type KmsPageMetadataFormat = OpenEnum<typeof KmsPageMetadataFormat>;
43
48
 
@@ -0,0 +1,109 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
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
+ PropertyIntegrationSupportWebhookEventsCreated,
11
+ PropertyIntegrationSupportWebhookEventsCreated$inboundSchema,
12
+ PropertyIntegrationSupportWebhookEventsCreated$outboundSchema,
13
+ } from "./propertyintegrationsupportwebhookeventscreated.js";
14
+ import {
15
+ PropertyIntegrationSupportWebhookEventsDeleted,
16
+ PropertyIntegrationSupportWebhookEventsDeleted$inboundSchema,
17
+ PropertyIntegrationSupportWebhookEventsDeleted$outboundSchema,
18
+ } from "./propertyintegrationsupportwebhookeventsdeleted.js";
19
+ import {
20
+ PropertyIntegrationSupportWebhookEventsUpdated,
21
+ PropertyIntegrationSupportWebhookEventsUpdated$inboundSchema,
22
+ PropertyIntegrationSupportWebhookEventsUpdated$outboundSchema,
23
+ } from "./propertyintegrationsupportwebhookeventsupdated.js";
24
+
25
+ export type PropertyIntegrationSupportWebhookEvents = {
26
+ created?: Array<PropertyIntegrationSupportWebhookEventsCreated> | undefined;
27
+ deleted?: Array<PropertyIntegrationSupportWebhookEventsDeleted> | undefined;
28
+ updated?: Array<PropertyIntegrationSupportWebhookEventsUpdated> | undefined;
29
+ };
30
+
31
+ /** @internal */
32
+ export const PropertyIntegrationSupportWebhookEvents$inboundSchema: z.ZodType<
33
+ PropertyIntegrationSupportWebhookEvents,
34
+ z.ZodTypeDef,
35
+ unknown
36
+ > = z.object({
37
+ created: z.array(PropertyIntegrationSupportWebhookEventsCreated$inboundSchema)
38
+ .optional(),
39
+ deleted: z.array(PropertyIntegrationSupportWebhookEventsDeleted$inboundSchema)
40
+ .optional(),
41
+ updated: z.array(PropertyIntegrationSupportWebhookEventsUpdated$inboundSchema)
42
+ .optional(),
43
+ });
44
+
45
+ /** @internal */
46
+ export type PropertyIntegrationSupportWebhookEvents$Outbound = {
47
+ created?: Array<string> | undefined;
48
+ deleted?: Array<string> | undefined;
49
+ updated?: Array<string> | undefined;
50
+ };
51
+
52
+ /** @internal */
53
+ export const PropertyIntegrationSupportWebhookEvents$outboundSchema: z.ZodType<
54
+ PropertyIntegrationSupportWebhookEvents$Outbound,
55
+ z.ZodTypeDef,
56
+ PropertyIntegrationSupportWebhookEvents
57
+ > = z.object({
58
+ created: z.array(
59
+ PropertyIntegrationSupportWebhookEventsCreated$outboundSchema,
60
+ ).optional(),
61
+ deleted: z.array(
62
+ PropertyIntegrationSupportWebhookEventsDeleted$outboundSchema,
63
+ ).optional(),
64
+ updated: z.array(
65
+ PropertyIntegrationSupportWebhookEventsUpdated$outboundSchema,
66
+ ).optional(),
67
+ });
68
+
69
+ /**
70
+ * @internal
71
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
72
+ */
73
+ export namespace PropertyIntegrationSupportWebhookEvents$ {
74
+ /** @deprecated use `PropertyIntegrationSupportWebhookEvents$inboundSchema` instead. */
75
+ export const inboundSchema =
76
+ PropertyIntegrationSupportWebhookEvents$inboundSchema;
77
+ /** @deprecated use `PropertyIntegrationSupportWebhookEvents$outboundSchema` instead. */
78
+ export const outboundSchema =
79
+ PropertyIntegrationSupportWebhookEvents$outboundSchema;
80
+ /** @deprecated use `PropertyIntegrationSupportWebhookEvents$Outbound` instead. */
81
+ export type Outbound = PropertyIntegrationSupportWebhookEvents$Outbound;
82
+ }
83
+
84
+ export function propertyIntegrationSupportWebhookEventsToJSON(
85
+ propertyIntegrationSupportWebhookEvents:
86
+ PropertyIntegrationSupportWebhookEvents,
87
+ ): string {
88
+ return JSON.stringify(
89
+ PropertyIntegrationSupportWebhookEvents$outboundSchema.parse(
90
+ propertyIntegrationSupportWebhookEvents,
91
+ ),
92
+ );
93
+ }
94
+
95
+ export function propertyIntegrationSupportWebhookEventsFromJSON(
96
+ jsonString: string,
97
+ ): SafeParseResult<
98
+ PropertyIntegrationSupportWebhookEvents,
99
+ SDKValidationError
100
+ > {
101
+ return safeParse(
102
+ jsonString,
103
+ (x) =>
104
+ PropertyIntegrationSupportWebhookEvents$inboundSchema.parse(
105
+ JSON.parse(x),
106
+ ),
107
+ `Failed to parse 'PropertyIntegrationSupportWebhookEvents' from JSON`,
108
+ );
109
+ }
@@ -0,0 +1,54 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import {
7
+ catchUnrecognizedEnum,
8
+ OpenEnum,
9
+ Unrecognized,
10
+ } from "../../types/enums.js";
11
+
12
+ export const PropertyIntegrationSupportWebhookEventsCreated = {
13
+ Virtual: "virtual",
14
+ Native: "native",
15
+ } as const;
16
+ export type PropertyIntegrationSupportWebhookEventsCreated = OpenEnum<
17
+ typeof PropertyIntegrationSupportWebhookEventsCreated
18
+ >;
19
+
20
+ /** @internal */
21
+ export const PropertyIntegrationSupportWebhookEventsCreated$inboundSchema:
22
+ z.ZodType<
23
+ PropertyIntegrationSupportWebhookEventsCreated,
24
+ z.ZodTypeDef,
25
+ unknown
26
+ > = z
27
+ .union([
28
+ z.nativeEnum(PropertyIntegrationSupportWebhookEventsCreated),
29
+ z.string().transform(catchUnrecognizedEnum),
30
+ ]);
31
+
32
+ /** @internal */
33
+ export const PropertyIntegrationSupportWebhookEventsCreated$outboundSchema:
34
+ z.ZodType<
35
+ PropertyIntegrationSupportWebhookEventsCreated,
36
+ z.ZodTypeDef,
37
+ PropertyIntegrationSupportWebhookEventsCreated
38
+ > = z.union([
39
+ z.nativeEnum(PropertyIntegrationSupportWebhookEventsCreated),
40
+ z.string().and(z.custom<Unrecognized<string>>()),
41
+ ]);
42
+
43
+ /**
44
+ * @internal
45
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
46
+ */
47
+ export namespace PropertyIntegrationSupportWebhookEventsCreated$ {
48
+ /** @deprecated use `PropertyIntegrationSupportWebhookEventsCreated$inboundSchema` instead. */
49
+ export const inboundSchema =
50
+ PropertyIntegrationSupportWebhookEventsCreated$inboundSchema;
51
+ /** @deprecated use `PropertyIntegrationSupportWebhookEventsCreated$outboundSchema` instead. */
52
+ export const outboundSchema =
53
+ PropertyIntegrationSupportWebhookEventsCreated$outboundSchema;
54
+ }
@@ -0,0 +1,54 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import {
7
+ catchUnrecognizedEnum,
8
+ OpenEnum,
9
+ Unrecognized,
10
+ } from "../../types/enums.js";
11
+
12
+ export const PropertyIntegrationSupportWebhookEventsDeleted = {
13
+ Virtual: "virtual",
14
+ Native: "native",
15
+ } as const;
16
+ export type PropertyIntegrationSupportWebhookEventsDeleted = OpenEnum<
17
+ typeof PropertyIntegrationSupportWebhookEventsDeleted
18
+ >;
19
+
20
+ /** @internal */
21
+ export const PropertyIntegrationSupportWebhookEventsDeleted$inboundSchema:
22
+ z.ZodType<
23
+ PropertyIntegrationSupportWebhookEventsDeleted,
24
+ z.ZodTypeDef,
25
+ unknown
26
+ > = z
27
+ .union([
28
+ z.nativeEnum(PropertyIntegrationSupportWebhookEventsDeleted),
29
+ z.string().transform(catchUnrecognizedEnum),
30
+ ]);
31
+
32
+ /** @internal */
33
+ export const PropertyIntegrationSupportWebhookEventsDeleted$outboundSchema:
34
+ z.ZodType<
35
+ PropertyIntegrationSupportWebhookEventsDeleted,
36
+ z.ZodTypeDef,
37
+ PropertyIntegrationSupportWebhookEventsDeleted
38
+ > = z.union([
39
+ z.nativeEnum(PropertyIntegrationSupportWebhookEventsDeleted),
40
+ z.string().and(z.custom<Unrecognized<string>>()),
41
+ ]);
42
+
43
+ /**
44
+ * @internal
45
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
46
+ */
47
+ export namespace PropertyIntegrationSupportWebhookEventsDeleted$ {
48
+ /** @deprecated use `PropertyIntegrationSupportWebhookEventsDeleted$inboundSchema` instead. */
49
+ export const inboundSchema =
50
+ PropertyIntegrationSupportWebhookEventsDeleted$inboundSchema;
51
+ /** @deprecated use `PropertyIntegrationSupportWebhookEventsDeleted$outboundSchema` instead. */
52
+ export const outboundSchema =
53
+ PropertyIntegrationSupportWebhookEventsDeleted$outboundSchema;
54
+ }
@@ -0,0 +1,54 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import {
7
+ catchUnrecognizedEnum,
8
+ OpenEnum,
9
+ Unrecognized,
10
+ } from "../../types/enums.js";
11
+
12
+ export const PropertyIntegrationSupportWebhookEventsUpdated = {
13
+ Virtual: "virtual",
14
+ Native: "native",
15
+ } as const;
16
+ export type PropertyIntegrationSupportWebhookEventsUpdated = OpenEnum<
17
+ typeof PropertyIntegrationSupportWebhookEventsUpdated
18
+ >;
19
+
20
+ /** @internal */
21
+ export const PropertyIntegrationSupportWebhookEventsUpdated$inboundSchema:
22
+ z.ZodType<
23
+ PropertyIntegrationSupportWebhookEventsUpdated,
24
+ z.ZodTypeDef,
25
+ unknown
26
+ > = z
27
+ .union([
28
+ z.nativeEnum(PropertyIntegrationSupportWebhookEventsUpdated),
29
+ z.string().transform(catchUnrecognizedEnum),
30
+ ]);
31
+
32
+ /** @internal */
33
+ export const PropertyIntegrationSupportWebhookEventsUpdated$outboundSchema:
34
+ z.ZodType<
35
+ PropertyIntegrationSupportWebhookEventsUpdated,
36
+ z.ZodTypeDef,
37
+ PropertyIntegrationSupportWebhookEventsUpdated
38
+ > = z.union([
39
+ z.nativeEnum(PropertyIntegrationSupportWebhookEventsUpdated),
40
+ z.string().and(z.custom<Unrecognized<string>>()),
41
+ ]);
42
+
43
+ /**
44
+ * @internal
45
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
46
+ */
47
+ export namespace PropertyIntegrationSupportWebhookEventsUpdated$ {
48
+ /** @deprecated use `PropertyIntegrationSupportWebhookEventsUpdated$inboundSchema` instead. */
49
+ export const inboundSchema =
50
+ PropertyIntegrationSupportWebhookEventsUpdated$inboundSchema;
51
+ /** @deprecated use `PropertyIntegrationSupportWebhookEventsUpdated$outboundSchema` instead. */
52
+ export const outboundSchema =
53
+ PropertyIntegrationSupportWebhookEventsUpdated$outboundSchema;
54
+ }
@@ -150,7 +150,7 @@ export type Webhook = {
150
150
  environment?: string | undefined;
151
151
  event: Event;
152
152
  fields?: string | undefined;
153
- filters?: { [k: string]: any } | undefined;
153
+ filters?: { [k: string]: string } | undefined;
154
154
  hookUrl?: string | undefined;
155
155
  id?: string | undefined;
156
156
  integrationType?: string | undefined;
@@ -299,7 +299,7 @@ export const Webhook$inboundSchema: z.ZodType<Webhook, z.ZodTypeDef, unknown> =
299
299
  environment: z.string().default("Production"),
300
300
  event: Event$inboundSchema,
301
301
  fields: z.string().optional(),
302
- filters: z.record(z.any()).optional(),
302
+ filters: z.record(z.string()).optional(),
303
303
  hook_url: z.string().optional(),
304
304
  id: z.string().optional(),
305
305
  integration_type: z.string().optional(),
@@ -347,7 +347,7 @@ export type Webhook$Outbound = {
347
347
  environment: string;
348
348
  event: string;
349
349
  fields?: string | undefined;
350
- filters?: { [k: string]: any } | undefined;
350
+ filters?: { [k: string]: string } | undefined;
351
351
  hook_url?: string | undefined;
352
352
  id?: string | undefined;
353
353
  integration_type?: string | undefined;
@@ -378,7 +378,7 @@ export const Webhook$outboundSchema: z.ZodType<
378
378
  environment: z.string().default("Production"),
379
379
  event: Event$outboundSchema,
380
380
  fields: z.string().optional(),
381
- filters: z.record(z.any()).optional(),
381
+ filters: z.record(z.string()).optional(),
382
382
  hookUrl: z.string().optional(),
383
383
  id: z.string().optional(),
384
384
  integrationType: z.string().optional(),