syllable-sdk 0.1.0-alpha.75 → 0.1.0-alpha.76

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 (69) hide show
  1. package/docs/sdks/batches/README.md +20 -6
  2. package/docs/sdks/campaigns/README.md +6 -14
  3. package/funcs/outboundBatchesUpdate.js +1 -1
  4. package/funcs/outboundBatchesUpdate.js.map +1 -1
  5. package/jsr.json +1 -1
  6. package/lib/config.d.ts +2 -2
  7. package/lib/config.js +2 -2
  8. package/models/components/batchdetails.d.ts +3 -8
  9. package/models/components/batchdetails.d.ts.map +1 -1
  10. package/models/components/batchdetails.js +2 -8
  11. package/models/components/batchdetails.js.map +1 -1
  12. package/models/components/batchstatus.d.ts +3 -3
  13. package/models/components/batchstatus.js +1 -1
  14. package/models/components/batchstatus.js.map +1 -1
  15. package/models/components/communicationbatch.d.ts +3 -8
  16. package/models/components/communicationbatch.d.ts.map +1 -1
  17. package/models/components/communicationbatch.js +2 -8
  18. package/models/components/communicationbatch.js.map +1 -1
  19. package/models/components/communicationrequestresult.d.ts +0 -6
  20. package/models/components/communicationrequestresult.d.ts.map +1 -1
  21. package/models/components/communicationrequestresult.js +0 -5
  22. package/models/components/communicationrequestresult.js.map +1 -1
  23. package/models/components/index.d.ts +0 -3
  24. package/models/components/index.d.ts.map +1 -1
  25. package/models/components/index.js +0 -3
  26. package/models/components/index.js.map +1 -1
  27. package/models/components/outboundcampaign.d.ts +6 -7
  28. package/models/components/outboundcampaign.d.ts.map +1 -1
  29. package/models/components/outboundcampaign.js +6 -9
  30. package/models/components/outboundcampaign.js.map +1 -1
  31. package/models/components/outboundcampaigninput.d.ts +6 -7
  32. package/models/components/outboundcampaigninput.d.ts.map +1 -1
  33. package/models/components/outboundcampaigninput.js +6 -9
  34. package/models/components/outboundcampaigninput.js.map +1 -1
  35. package/models/operations/outboundbatchupdate.d.ts +2 -2
  36. package/models/operations/outboundbatchupdate.d.ts.map +1 -1
  37. package/models/operations/outboundbatchupdate.js +4 -4
  38. package/models/operations/outboundbatchupdate.js.map +1 -1
  39. package/models/operations/outboundcampaigngetbyid.d.ts +2 -2
  40. package/models/operations/outboundcampaigngetbyid.js +2 -2
  41. package/models/operations/outboundcampaigngetbyid.js.map +1 -1
  42. package/openapi.json +18744 -18847
  43. package/package.json +1 -1
  44. package/src/funcs/outboundBatchesUpdate.ts +1 -1
  45. package/src/lib/config.ts +2 -2
  46. package/src/models/components/batchdetails.ts +5 -16
  47. package/src/models/components/batchstatus.ts +1 -1
  48. package/src/models/components/communicationbatch.ts +5 -16
  49. package/src/models/components/communicationrequestresult.ts +0 -14
  50. package/src/models/components/index.ts +0 -3
  51. package/src/models/components/outboundcampaign.ts +12 -19
  52. package/src/models/components/outboundcampaigninput.ts +12 -19
  53. package/src/models/operations/outboundbatchupdate.ts +6 -6
  54. package/src/models/operations/outboundcampaigngetbyid.ts +4 -4
  55. package/models/components/communicationbatchupdate.d.ts +0 -37
  56. package/models/components/communicationbatchupdate.d.ts.map +0 -1
  57. package/models/components/communicationbatchupdate.js +0 -70
  58. package/models/components/communicationbatchupdate.js.map +0 -1
  59. package/models/components/daysofweek.d.ts +0 -49
  60. package/models/components/daysofweek.d.ts.map +0 -1
  61. package/models/components/daysofweek.js +0 -59
  62. package/models/components/daysofweek.js.map +0 -1
  63. package/models/components/requeststatus.d.ts +0 -46
  64. package/models/components/requeststatus.d.ts.map +0 -1
  65. package/models/components/requeststatus.js +0 -57
  66. package/models/components/requeststatus.js.map +0 -1
  67. package/src/models/components/communicationbatchupdate.ts +0 -85
  68. package/src/models/components/daysofweek.ts +0 -42
  69. package/src/models/components/requeststatus.ts +0 -43
@@ -1,70 +0,0 @@
1
- "use strict";
2
- /*
3
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.CommunicationBatchUpdate$ = exports.CommunicationBatchUpdate$outboundSchema = exports.CommunicationBatchUpdate$inboundSchema = void 0;
30
- exports.communicationBatchUpdateToJSON = communicationBatchUpdateToJSON;
31
- exports.communicationBatchUpdateFromJSON = communicationBatchUpdateFromJSON;
32
- const z = __importStar(require("zod"));
33
- const primitives_js_1 = require("../../lib/primitives.js");
34
- const schemas_js_1 = require("../../lib/schemas.js");
35
- /** @internal */
36
- exports.CommunicationBatchUpdate$inboundSchema = z.object({
37
- paused: z.nullable(z.boolean()).optional(),
38
- expires_on: z.nullable(z.string()).optional(),
39
- }).transform((v) => {
40
- return (0, primitives_js_1.remap)(v, {
41
- "expires_on": "expiresOn",
42
- });
43
- });
44
- /** @internal */
45
- exports.CommunicationBatchUpdate$outboundSchema = z.object({
46
- paused: z.nullable(z.boolean()).optional(),
47
- expiresOn: z.nullable(z.string()).optional(),
48
- }).transform((v) => {
49
- return (0, primitives_js_1.remap)(v, {
50
- expiresOn: "expires_on",
51
- });
52
- });
53
- /**
54
- * @internal
55
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
56
- */
57
- var CommunicationBatchUpdate$;
58
- (function (CommunicationBatchUpdate$) {
59
- /** @deprecated use `CommunicationBatchUpdate$inboundSchema` instead. */
60
- CommunicationBatchUpdate$.inboundSchema = exports.CommunicationBatchUpdate$inboundSchema;
61
- /** @deprecated use `CommunicationBatchUpdate$outboundSchema` instead. */
62
- CommunicationBatchUpdate$.outboundSchema = exports.CommunicationBatchUpdate$outboundSchema;
63
- })(CommunicationBatchUpdate$ || (exports.CommunicationBatchUpdate$ = CommunicationBatchUpdate$ = {}));
64
- function communicationBatchUpdateToJSON(communicationBatchUpdate) {
65
- return JSON.stringify(exports.CommunicationBatchUpdate$outboundSchema.parse(communicationBatchUpdate));
66
- }
67
- function communicationBatchUpdateFromJSON(jsonString) {
68
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CommunicationBatchUpdate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CommunicationBatchUpdate' from JSON`);
69
- }
70
- //# sourceMappingURL=communicationbatchupdate.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"communicationbatchupdate.js","sourceRoot":"","sources":["../../src/models/components/communicationbatchupdate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAkEH,wEAMC;AAED,4EAQC;AAhFD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAejD,gBAAgB;AACH,QAAA,sCAAsC,GAI/C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC1C,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC9C,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,YAAY,EAAE,WAAW;KAC1B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,uCAAuC,GAIhD,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC1C,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC7C,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,SAAS,EAAE,YAAY;KACxB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,yBAAyB,CAOzC;AAPD,WAAiB,yBAAyB;IACxC,wEAAwE;IAC3D,uCAAa,GAAG,8CAAsC,CAAC;IACpE,yEAAyE;IAC5D,wCAAc,GAAG,+CAAuC,CAAC;AAGxE,CAAC,EAPgB,yBAAyB,yCAAzB,yBAAyB,QAOzC;AAED,SAAgB,8BAA8B,CAC5C,wBAAkD;IAElD,OAAO,IAAI,CAAC,SAAS,CACnB,+CAAuC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CACxE,CAAC;AACJ,CAAC;AAED,SAAgB,gCAAgC,CAC9C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,8CAAsC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAClE,sDAAsD,CACvD,CAAC;AACJ,CAAC"}
@@ -1,49 +0,0 @@
1
- import * as z from "zod";
2
- import { ClosedEnum } from "../../types/enums.js";
3
- /**
4
- * Enum representing days of the week.
5
- */
6
- export declare const DaysOfWeek: {
7
- readonly Mon: "mon";
8
- readonly Tue: "tue";
9
- readonly Wed: "wed";
10
- readonly Thu: "thu";
11
- readonly Fri: "fri";
12
- readonly Sat: "sat";
13
- readonly Sun: "sun";
14
- };
15
- /**
16
- * Enum representing days of the week.
17
- */
18
- export type DaysOfWeek = ClosedEnum<typeof DaysOfWeek>;
19
- /** @internal */
20
- export declare const DaysOfWeek$inboundSchema: z.ZodNativeEnum<typeof DaysOfWeek>;
21
- /** @internal */
22
- export declare const DaysOfWeek$outboundSchema: z.ZodNativeEnum<typeof DaysOfWeek>;
23
- /**
24
- * @internal
25
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
26
- */
27
- export declare namespace DaysOfWeek$ {
28
- /** @deprecated use `DaysOfWeek$inboundSchema` instead. */
29
- const inboundSchema: z.ZodNativeEnum<{
30
- readonly Mon: "mon";
31
- readonly Tue: "tue";
32
- readonly Wed: "wed";
33
- readonly Thu: "thu";
34
- readonly Fri: "fri";
35
- readonly Sat: "sat";
36
- readonly Sun: "sun";
37
- }>;
38
- /** @deprecated use `DaysOfWeek$outboundSchema` instead. */
39
- const outboundSchema: z.ZodNativeEnum<{
40
- readonly Mon: "mon";
41
- readonly Tue: "tue";
42
- readonly Wed: "wed";
43
- readonly Thu: "thu";
44
- readonly Fri: "fri";
45
- readonly Sat: "sat";
46
- readonly Sun: "sun";
47
- }>;
48
- }
49
- //# sourceMappingURL=daysofweek.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"daysofweek.d.ts","sourceRoot":"","sources":["../../src/models/components/daysofweek.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;CAQb,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;AAEvD,gBAAgB;AAChB,eAAO,MAAM,wBAAwB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,UAAU,CAC/C,CAAC;AAE1B,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,UAAU,CAC/C,CAAC;AAE3B;;;GAGG;AACH,yBAAiB,WAAW,CAAC;IAC3B,0DAA0D;IACnD,MAAM,aAAa;;;;;;;;MAA2B,CAAC;IACtD,2DAA2D;IACpD,MAAM,cAAc;;;;;;;;MAA4B,CAAC;CACzD"}
@@ -1,59 +0,0 @@
1
- "use strict";
2
- /*
3
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.DaysOfWeek$ = exports.DaysOfWeek$outboundSchema = exports.DaysOfWeek$inboundSchema = exports.DaysOfWeek = void 0;
30
- const z = __importStar(require("zod"));
31
- /**
32
- * Enum representing days of the week.
33
- */
34
- exports.DaysOfWeek = {
35
- Mon: "mon",
36
- Tue: "tue",
37
- Wed: "wed",
38
- Thu: "thu",
39
- Fri: "fri",
40
- Sat: "sat",
41
- Sun: "sun",
42
- };
43
- /** @internal */
44
- exports.DaysOfWeek$inboundSchema = z
45
- .nativeEnum(exports.DaysOfWeek);
46
- /** @internal */
47
- exports.DaysOfWeek$outboundSchema = exports.DaysOfWeek$inboundSchema;
48
- /**
49
- * @internal
50
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
51
- */
52
- var DaysOfWeek$;
53
- (function (DaysOfWeek$) {
54
- /** @deprecated use `DaysOfWeek$inboundSchema` instead. */
55
- DaysOfWeek$.inboundSchema = exports.DaysOfWeek$inboundSchema;
56
- /** @deprecated use `DaysOfWeek$outboundSchema` instead. */
57
- DaysOfWeek$.outboundSchema = exports.DaysOfWeek$outboundSchema;
58
- })(DaysOfWeek$ || (exports.DaysOfWeek$ = DaysOfWeek$ = {}));
59
- //# sourceMappingURL=daysofweek.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"daysofweek.js","sourceRoot":"","sources":["../../src/models/components/daysofweek.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGzB;;GAEG;AACU,QAAA,UAAU,GAAG;IACxB,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;CACF,CAAC;AAMX,gBAAgB;AACH,QAAA,wBAAwB,GAAuC,CAAC;KAC1E,UAAU,CAAC,kBAAU,CAAC,CAAC;AAE1B,gBAAgB;AACH,QAAA,yBAAyB,GACpC,gCAAwB,CAAC;AAE3B;;;GAGG;AACH,IAAiB,WAAW,CAK3B;AALD,WAAiB,WAAW;IAC1B,0DAA0D;IAC7C,yBAAa,GAAG,gCAAwB,CAAC;IACtD,2DAA2D;IAC9C,0BAAc,GAAG,iCAAyB,CAAC;AAC1D,CAAC,EALgB,WAAW,2BAAX,WAAW,QAK3B"}
@@ -1,46 +0,0 @@
1
- import * as z from "zod";
2
- import { ClosedEnum } from "../../types/enums.js";
3
- /**
4
- * Status of a communication request.
5
- */
6
- export declare const RequestStatus: {
7
- readonly Pending: "PENDING";
8
- readonly Duplicate: "DUPLICATE";
9
- readonly Initiated: "INITIATED";
10
- readonly Connected: "CONNECTED";
11
- readonly Failed: "FAILED";
12
- readonly Canceled: "CANCELED";
13
- };
14
- /**
15
- * Status of a communication request.
16
- */
17
- export type RequestStatus = ClosedEnum<typeof RequestStatus>;
18
- /** @internal */
19
- export declare const RequestStatus$inboundSchema: z.ZodNativeEnum<typeof RequestStatus>;
20
- /** @internal */
21
- export declare const RequestStatus$outboundSchema: z.ZodNativeEnum<typeof RequestStatus>;
22
- /**
23
- * @internal
24
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
25
- */
26
- export declare namespace RequestStatus$ {
27
- /** @deprecated use `RequestStatus$inboundSchema` instead. */
28
- const inboundSchema: z.ZodNativeEnum<{
29
- readonly Pending: "PENDING";
30
- readonly Duplicate: "DUPLICATE";
31
- readonly Initiated: "INITIATED";
32
- readonly Connected: "CONNECTED";
33
- readonly Failed: "FAILED";
34
- readonly Canceled: "CANCELED";
35
- }>;
36
- /** @deprecated use `RequestStatus$outboundSchema` instead. */
37
- const outboundSchema: z.ZodNativeEnum<{
38
- readonly Pending: "PENDING";
39
- readonly Duplicate: "DUPLICATE";
40
- readonly Initiated: "INITIATED";
41
- readonly Connected: "CONNECTED";
42
- readonly Failed: "FAILED";
43
- readonly Canceled: "CANCELED";
44
- }>;
45
- }
46
- //# sourceMappingURL=requeststatus.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"requeststatus.d.ts","sourceRoot":"","sources":["../../src/models/components/requeststatus.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;CAOhB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;AAE7D,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,aAAa,CACvD,OAAO,aAAa,CACS,CAAC;AAEhC,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,aAAa,CACxD,OAAO,aAAa,CACS,CAAC;AAEhC;;;GAGG;AACH,yBAAiB,cAAc,CAAC;IAC9B,6DAA6D;IACtD,MAAM,aAAa;;;;;;;MAA8B,CAAC;IACzD,8DAA8D;IACvD,MAAM,cAAc;;;;;;;MAA+B,CAAC;CAC5D"}
@@ -1,57 +0,0 @@
1
- "use strict";
2
- /*
3
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.RequestStatus$ = exports.RequestStatus$outboundSchema = exports.RequestStatus$inboundSchema = exports.RequestStatus = void 0;
30
- const z = __importStar(require("zod"));
31
- /**
32
- * Status of a communication request.
33
- */
34
- exports.RequestStatus = {
35
- Pending: "PENDING",
36
- Duplicate: "DUPLICATE",
37
- Initiated: "INITIATED",
38
- Connected: "CONNECTED",
39
- Failed: "FAILED",
40
- Canceled: "CANCELED",
41
- };
42
- /** @internal */
43
- exports.RequestStatus$inboundSchema = z.nativeEnum(exports.RequestStatus);
44
- /** @internal */
45
- exports.RequestStatus$outboundSchema = exports.RequestStatus$inboundSchema;
46
- /**
47
- * @internal
48
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
49
- */
50
- var RequestStatus$;
51
- (function (RequestStatus$) {
52
- /** @deprecated use `RequestStatus$inboundSchema` instead. */
53
- RequestStatus$.inboundSchema = exports.RequestStatus$inboundSchema;
54
- /** @deprecated use `RequestStatus$outboundSchema` instead. */
55
- RequestStatus$.outboundSchema = exports.RequestStatus$outboundSchema;
56
- })(RequestStatus$ || (exports.RequestStatus$ = RequestStatus$ = {}));
57
- //# sourceMappingURL=requeststatus.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"requeststatus.js","sourceRoot":"","sources":["../../src/models/components/requeststatus.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGzB;;GAEG;AACU,QAAA,aAAa,GAAG;IAC3B,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;CACZ,CAAC;AAMX,gBAAgB;AACH,QAAA,2BAA2B,GAEpC,CAAC,CAAC,UAAU,CAAC,qBAAa,CAAC,CAAC;AAEhC,gBAAgB;AACH,QAAA,4BAA4B,GAErC,mCAA2B,CAAC;AAEhC;;;GAGG;AACH,IAAiB,cAAc,CAK9B;AALD,WAAiB,cAAc;IAC7B,6DAA6D;IAChD,4BAAa,GAAG,mCAA2B,CAAC;IACzD,8DAA8D;IACjD,6BAAc,GAAG,oCAA4B,CAAC;AAC7D,CAAC,EALgB,cAAc,8BAAd,cAAc,QAK9B"}
@@ -1,85 +0,0 @@
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 CommunicationBatchUpdate = {
12
- /**
13
- * Whether the batch is on HOLD. When on HOLD, no outreach will be made.
14
- */
15
- paused?: boolean | null | undefined;
16
- /**
17
- * Timestamp of batch expiration
18
- */
19
- expiresOn?: string | null | undefined;
20
- };
21
-
22
- /** @internal */
23
- export const CommunicationBatchUpdate$inboundSchema: z.ZodType<
24
- CommunicationBatchUpdate,
25
- z.ZodTypeDef,
26
- unknown
27
- > = z.object({
28
- paused: z.nullable(z.boolean()).optional(),
29
- expires_on: z.nullable(z.string()).optional(),
30
- }).transform((v) => {
31
- return remap$(v, {
32
- "expires_on": "expiresOn",
33
- });
34
- });
35
-
36
- /** @internal */
37
- export type CommunicationBatchUpdate$Outbound = {
38
- paused?: boolean | null | undefined;
39
- expires_on?: string | null | undefined;
40
- };
41
-
42
- /** @internal */
43
- export const CommunicationBatchUpdate$outboundSchema: z.ZodType<
44
- CommunicationBatchUpdate$Outbound,
45
- z.ZodTypeDef,
46
- CommunicationBatchUpdate
47
- > = z.object({
48
- paused: z.nullable(z.boolean()).optional(),
49
- expiresOn: z.nullable(z.string()).optional(),
50
- }).transform((v) => {
51
- return remap$(v, {
52
- expiresOn: "expires_on",
53
- });
54
- });
55
-
56
- /**
57
- * @internal
58
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
59
- */
60
- export namespace CommunicationBatchUpdate$ {
61
- /** @deprecated use `CommunicationBatchUpdate$inboundSchema` instead. */
62
- export const inboundSchema = CommunicationBatchUpdate$inboundSchema;
63
- /** @deprecated use `CommunicationBatchUpdate$outboundSchema` instead. */
64
- export const outboundSchema = CommunicationBatchUpdate$outboundSchema;
65
- /** @deprecated use `CommunicationBatchUpdate$Outbound` instead. */
66
- export type Outbound = CommunicationBatchUpdate$Outbound;
67
- }
68
-
69
- export function communicationBatchUpdateToJSON(
70
- communicationBatchUpdate: CommunicationBatchUpdate,
71
- ): string {
72
- return JSON.stringify(
73
- CommunicationBatchUpdate$outboundSchema.parse(communicationBatchUpdate),
74
- );
75
- }
76
-
77
- export function communicationBatchUpdateFromJSON(
78
- jsonString: string,
79
- ): SafeParseResult<CommunicationBatchUpdate, SDKValidationError> {
80
- return safeParse(
81
- jsonString,
82
- (x) => CommunicationBatchUpdate$inboundSchema.parse(JSON.parse(x)),
83
- `Failed to parse 'CommunicationBatchUpdate' from JSON`,
84
- );
85
- }
@@ -1,42 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod";
6
- import { ClosedEnum } from "../../types/enums.js";
7
-
8
- /**
9
- * Enum representing days of the week.
10
- */
11
- export const DaysOfWeek = {
12
- Mon: "mon",
13
- Tue: "tue",
14
- Wed: "wed",
15
- Thu: "thu",
16
- Fri: "fri",
17
- Sat: "sat",
18
- Sun: "sun",
19
- } as const;
20
- /**
21
- * Enum representing days of the week.
22
- */
23
- export type DaysOfWeek = ClosedEnum<typeof DaysOfWeek>;
24
-
25
- /** @internal */
26
- export const DaysOfWeek$inboundSchema: z.ZodNativeEnum<typeof DaysOfWeek> = z
27
- .nativeEnum(DaysOfWeek);
28
-
29
- /** @internal */
30
- export const DaysOfWeek$outboundSchema: z.ZodNativeEnum<typeof DaysOfWeek> =
31
- DaysOfWeek$inboundSchema;
32
-
33
- /**
34
- * @internal
35
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
36
- */
37
- export namespace DaysOfWeek$ {
38
- /** @deprecated use `DaysOfWeek$inboundSchema` instead. */
39
- export const inboundSchema = DaysOfWeek$inboundSchema;
40
- /** @deprecated use `DaysOfWeek$outboundSchema` instead. */
41
- export const outboundSchema = DaysOfWeek$outboundSchema;
42
- }
@@ -1,43 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod";
6
- import { ClosedEnum } from "../../types/enums.js";
7
-
8
- /**
9
- * Status of a communication request.
10
- */
11
- export const RequestStatus = {
12
- Pending: "PENDING",
13
- Duplicate: "DUPLICATE",
14
- Initiated: "INITIATED",
15
- Connected: "CONNECTED",
16
- Failed: "FAILED",
17
- Canceled: "CANCELED",
18
- } as const;
19
- /**
20
- * Status of a communication request.
21
- */
22
- export type RequestStatus = ClosedEnum<typeof RequestStatus>;
23
-
24
- /** @internal */
25
- export const RequestStatus$inboundSchema: z.ZodNativeEnum<
26
- typeof RequestStatus
27
- > = z.nativeEnum(RequestStatus);
28
-
29
- /** @internal */
30
- export const RequestStatus$outboundSchema: z.ZodNativeEnum<
31
- typeof RequestStatus
32
- > = RequestStatus$inboundSchema;
33
-
34
- /**
35
- * @internal
36
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
37
- */
38
- export namespace RequestStatus$ {
39
- /** @deprecated use `RequestStatus$inboundSchema` instead. */
40
- export const inboundSchema = RequestStatus$inboundSchema;
41
- /** @deprecated use `RequestStatus$outboundSchema` instead. */
42
- export const outboundSchema = RequestStatus$outboundSchema;
43
- }