syllable-sdk 1.0.1 → 1.0.2-rc.10

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 (157) hide show
  1. package/README.md +8 -0
  2. package/bin/mcp-server.js +628 -111
  3. package/bin/mcp-server.js.map +32 -18
  4. package/docs/sdks/batches/README.md +4 -4
  5. package/docs/sdks/campaigns/README.md +24 -0
  6. package/docs/sdks/incidents/README.md +0 -8
  7. package/docs/sdks/prompts/README.md +4 -2
  8. package/docs/sdks/pronunciations/README.md +277 -1
  9. package/docs/sdks/workflows/README.md +8 -8
  10. package/examples/package-lock.json +1 -1
  11. package/funcs/pronunciationsPronunciationsDeleteCsv.d.ts +13 -0
  12. package/funcs/pronunciationsPronunciationsDeleteCsv.d.ts.map +1 -0
  13. package/funcs/pronunciationsPronunciationsDeleteCsv.js +101 -0
  14. package/funcs/pronunciationsPronunciationsDeleteCsv.js.map +1 -0
  15. package/funcs/pronunciationsPronunciationsDownloadCsv.d.ts +14 -0
  16. package/funcs/pronunciationsPronunciationsDownloadCsv.d.ts.map +1 -0
  17. package/funcs/pronunciationsPronunciationsDownloadCsv.js +108 -0
  18. package/funcs/pronunciationsPronunciationsDownloadCsv.js.map +1 -0
  19. package/funcs/pronunciationsPronunciationsGet.d.ts +14 -0
  20. package/funcs/pronunciationsPronunciationsGet.d.ts.map +1 -0
  21. package/funcs/pronunciationsPronunciationsGet.js +101 -0
  22. package/funcs/pronunciationsPronunciationsGet.js.map +1 -0
  23. package/funcs/pronunciationsPronunciationsGetMetadata.d.ts +14 -0
  24. package/funcs/pronunciationsPronunciationsGetMetadata.d.ts.map +1 -0
  25. package/funcs/pronunciationsPronunciationsGetMetadata.js +101 -0
  26. package/funcs/pronunciationsPronunciationsGetMetadata.js.map +1 -0
  27. package/jsr.json +1 -1
  28. package/lib/config.d.ts +3 -3
  29. package/lib/config.js +3 -3
  30. package/lib/config.js.map +1 -1
  31. package/mcp-server/mcp-server.js +1 -1
  32. package/mcp-server/mcp-server.js.map +1 -1
  33. package/mcp-server/server.d.ts.map +1 -1
  34. package/mcp-server/server.js +9 -1
  35. package/mcp-server/server.js.map +1 -1
  36. package/mcp-server/tools/pronunciationsPronunciationsDeleteCsv.d.ts +3 -0
  37. package/mcp-server/tools/pronunciationsPronunciationsDeleteCsv.d.ts.map +1 -0
  38. package/mcp-server/tools/pronunciationsPronunciationsDeleteCsv.js +23 -0
  39. package/mcp-server/tools/pronunciationsPronunciationsDeleteCsv.js.map +1 -0
  40. package/mcp-server/tools/pronunciationsPronunciationsDownloadCsv.d.ts +3 -0
  41. package/mcp-server/tools/pronunciationsPronunciationsDownloadCsv.d.ts.map +1 -0
  42. package/mcp-server/tools/pronunciationsPronunciationsDownloadCsv.js +24 -0
  43. package/mcp-server/tools/pronunciationsPronunciationsDownloadCsv.js.map +1 -0
  44. package/mcp-server/tools/pronunciationsPronunciationsGet.d.ts +3 -0
  45. package/mcp-server/tools/pronunciationsPronunciationsGet.d.ts.map +1 -0
  46. package/mcp-server/tools/pronunciationsPronunciationsGet.js +24 -0
  47. package/mcp-server/tools/pronunciationsPronunciationsGet.js.map +1 -0
  48. package/mcp-server/tools/pronunciationsPronunciationsGetMetadata.d.ts +3 -0
  49. package/mcp-server/tools/pronunciationsPronunciationsGetMetadata.d.ts.map +1 -0
  50. package/mcp-server/tools/pronunciationsPronunciationsGetMetadata.js +24 -0
  51. package/mcp-server/tools/pronunciationsPronunciationsGetMetadata.js.map +1 -0
  52. package/models/components/campaignproperties.d.ts +3 -0
  53. package/models/components/campaignproperties.d.ts.map +1 -1
  54. package/models/components/campaignproperties.js +1 -0
  55. package/models/components/campaignproperties.js.map +1 -1
  56. package/models/components/dictionarymetadata.d.ts +36 -0
  57. package/models/components/dictionarymetadata.d.ts.map +1 -0
  58. package/models/components/dictionarymetadata.js +73 -0
  59. package/models/components/dictionarymetadata.js.map +1 -0
  60. package/models/components/incidentcreaterequest.d.ts +3 -1
  61. package/models/components/incidentcreaterequest.d.ts.map +1 -1
  62. package/models/components/incidentcreaterequest.js.map +1 -1
  63. package/models/components/incidentresponse.d.ts +3 -1
  64. package/models/components/incidentresponse.d.ts.map +1 -1
  65. package/models/components/incidentresponse.js.map +1 -1
  66. package/models/components/incidentupdaterequest.d.ts +3 -11
  67. package/models/components/incidentupdaterequest.d.ts.map +1 -1
  68. package/models/components/incidentupdaterequest.js +0 -8
  69. package/models/components/incidentupdaterequest.js.map +1 -1
  70. package/models/components/index.d.ts +5 -0
  71. package/models/components/index.d.ts.map +1 -1
  72. package/models/components/index.js +5 -0
  73. package/models/components/index.js.map +1 -1
  74. package/models/components/matchtype.d.ts +34 -0
  75. package/models/components/matchtype.d.ts.map +1 -0
  76. package/models/components/matchtype.js +64 -0
  77. package/models/components/matchtype.js.map +1 -0
  78. package/models/components/outboundcampaign.d.ts +9 -0
  79. package/models/components/outboundcampaign.d.ts.map +1 -1
  80. package/models/components/outboundcampaign.js +4 -0
  81. package/models/components/outboundcampaign.js.map +1 -1
  82. package/models/components/outboundcampaigninput.d.ts +9 -0
  83. package/models/components/outboundcampaigninput.d.ts.map +1 -1
  84. package/models/components/outboundcampaigninput.js +4 -0
  85. package/models/components/outboundcampaigninput.js.map +1 -1
  86. package/models/components/promptcreaterequest.d.ts +5 -0
  87. package/models/components/promptcreaterequest.d.ts.map +1 -1
  88. package/models/components/promptcreaterequest.js +4 -0
  89. package/models/components/promptcreaterequest.js.map +1 -1
  90. package/models/components/promptresponse.d.ts +5 -5
  91. package/models/components/promptresponse.d.ts.map +1 -1
  92. package/models/components/promptresponse.js +2 -2
  93. package/models/components/promptresponse.js.map +1 -1
  94. package/models/components/promptupdaterequest.d.ts +5 -5
  95. package/models/components/promptupdaterequest.d.ts.map +1 -1
  96. package/models/components/promptupdaterequest.js +2 -2
  97. package/models/components/promptupdaterequest.js.map +1 -1
  98. package/models/components/pronunciationoverride.d.ts +52 -0
  99. package/models/components/pronunciationoverride.d.ts.map +1 -0
  100. package/models/components/pronunciationoverride.js +97 -0
  101. package/models/components/pronunciationoverride.js.map +1 -0
  102. package/models/components/pronunciationoverridesdictionary.d.ts +68 -0
  103. package/models/components/pronunciationoverridesdictionary.d.ts.map +1 -0
  104. package/models/components/pronunciationoverridesdictionary.js +78 -0
  105. package/models/components/pronunciationoverridesdictionary.js.map +1 -0
  106. package/models/components/pronunciationscsvuploadresponse.d.ts +6 -6
  107. package/models/components/pronunciationscsvuploadresponse.d.ts.map +1 -1
  108. package/models/components/pronunciationscsvuploadresponse.js +6 -6
  109. package/models/components/pronunciationscsvuploadresponse.js.map +1 -1
  110. package/models/components/voicedisplayinfo.d.ts +34 -0
  111. package/models/components/voicedisplayinfo.d.ts.map +1 -0
  112. package/models/components/voicedisplayinfo.js +80 -0
  113. package/models/components/voicedisplayinfo.js.map +1 -0
  114. package/models/operations/index.d.ts +1 -0
  115. package/models/operations/index.d.ts.map +1 -1
  116. package/models/operations/index.js +1 -0
  117. package/models/operations/index.js.map +1 -1
  118. package/models/operations/pronunciationsdownloadcsv.d.ts +35 -0
  119. package/models/operations/pronunciationsdownloadcsv.d.ts.map +1 -0
  120. package/models/operations/pronunciationsdownloadcsv.js +82 -0
  121. package/models/operations/pronunciationsdownloadcsv.js.map +1 -0
  122. package/openapi.json +387 -110
  123. package/package.json +1 -1
  124. package/sdk/pronunciations.d.ts +17 -0
  125. package/sdk/pronunciations.d.ts.map +1 -1
  126. package/sdk/pronunciations.js +28 -0
  127. package/sdk/pronunciations.js.map +1 -1
  128. package/src/funcs/pronunciationsPronunciationsDeleteCsv.ts +139 -0
  129. package/src/funcs/pronunciationsPronunciationsDownloadCsv.ts +147 -0
  130. package/src/funcs/pronunciationsPronunciationsGet.ts +139 -0
  131. package/src/funcs/pronunciationsPronunciationsGetMetadata.ts +139 -0
  132. package/src/lib/config.ts +3 -3
  133. package/src/mcp-server/mcp-server.ts +1 -1
  134. package/src/mcp-server/server.ts +9 -1
  135. package/src/mcp-server/tools/pronunciationsPronunciationsDeleteCsv.ts +26 -0
  136. package/src/mcp-server/tools/pronunciationsPronunciationsDownloadCsv.ts +28 -0
  137. package/src/mcp-server/tools/pronunciationsPronunciationsGet.ts +28 -0
  138. package/src/mcp-server/tools/pronunciationsPronunciationsGetMetadata.ts +28 -0
  139. package/src/models/components/campaignproperties.ts +1 -0
  140. package/src/models/components/dictionarymetadata.ts +77 -0
  141. package/src/models/components/incidentcreaterequest.ts +3 -1
  142. package/src/models/components/incidentresponse.ts +3 -1
  143. package/src/models/components/incidentupdaterequest.ts +3 -23
  144. package/src/models/components/index.ts +5 -0
  145. package/src/models/components/matchtype.ts +37 -0
  146. package/src/models/components/outboundcampaign.ts +9 -0
  147. package/src/models/components/outboundcampaigninput.ts +9 -0
  148. package/src/models/components/promptcreaterequest.ts +9 -0
  149. package/src/models/components/promptresponse.ts +7 -7
  150. package/src/models/components/promptupdaterequest.ts +7 -7
  151. package/src/models/components/pronunciationoverride.ts +120 -0
  152. package/src/models/components/pronunciationoverridesdictionary.ts +124 -0
  153. package/src/models/components/pronunciationscsvuploadresponse.ts +12 -12
  154. package/src/models/components/voicedisplayinfo.ts +82 -0
  155. package/src/models/operations/index.ts +1 -0
  156. package/src/models/operations/pronunciationsdownloadcsv.ts +84 -0
  157. package/src/sdk/pronunciations.ts +53 -0
@@ -115,6 +115,10 @@ import { tool$promptsList } from "./tools/promptsList.js";
115
115
  import { tool$promptsPromptGetSupportedLlms } from "./tools/promptsPromptGetSupportedLlms.js";
116
116
  import { tool$promptsPromptsHistory } from "./tools/promptsPromptsHistory.js";
117
117
  import { tool$promptsUpdate } from "./tools/promptsUpdate.js";
118
+ import { tool$pronunciationsPronunciationsDeleteCsv } from "./tools/pronunciationsPronunciationsDeleteCsv.js";
119
+ import { tool$pronunciationsPronunciationsDownloadCsv } from "./tools/pronunciationsPronunciationsDownloadCsv.js";
120
+ import { tool$pronunciationsPronunciationsGet } from "./tools/pronunciationsPronunciationsGet.js";
121
+ import { tool$pronunciationsPronunciationsGetMetadata } from "./tools/pronunciationsPronunciationsGetMetadata.js";
118
122
  import { tool$pronunciationsPronunciationsUploadCsv } from "./tools/pronunciationsPronunciationsUploadCsv.js";
119
123
  import { tool$rolesCreate } from "./tools/rolesCreate.js";
120
124
  import { tool$rolesDelete } from "./tools/rolesDelete.js";
@@ -165,7 +169,7 @@ export function createMCPServer(deps: {
165
169
  }) {
166
170
  const server = new McpServer({
167
171
  name: "SyllableSDK",
168
- version: "1.0.1",
172
+ version: "1.0.2-rc.10",
169
173
  });
170
174
 
171
175
  const client = new SyllableSDKCore({
@@ -232,7 +236,11 @@ export function createMCPServer(deps: {
232
236
  tool(tool$promptsDelete);
233
237
  tool(tool$promptsPromptsHistory);
234
238
  tool(tool$promptsPromptGetSupportedLlms);
239
+ tool(tool$pronunciationsPronunciationsGet);
240
+ tool(tool$pronunciationsPronunciationsGetMetadata);
241
+ tool(tool$pronunciationsPronunciationsDownloadCsv);
235
242
  tool(tool$pronunciationsPronunciationsUploadCsv);
243
+ tool(tool$pronunciationsPronunciationsDeleteCsv);
236
244
  tool(tool$rolesList);
237
245
  tool(tool$rolesCreate);
238
246
  tool(tool$rolesUpdate);
@@ -0,0 +1,26 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { pronunciationsPronunciationsDeleteCsv } from "../../funcs/pronunciationsPronunciationsDeleteCsv.js";
6
+ import { formatResult, ToolDefinition } from "../tools.js";
7
+
8
+ export const tool$pronunciationsPronunciationsDeleteCsv: ToolDefinition = {
9
+ name: "pronunciations-pronunciations-delete-csv",
10
+ description: `Delete Pronunciations Dictionary`,
11
+ tool: async (client, ctx) => {
12
+ const [result, apiCall] = await pronunciationsPronunciationsDeleteCsv(
13
+ client,
14
+ { fetchOptions: { signal: ctx.signal } },
15
+ ).$inspect();
16
+
17
+ if (!result.ok) {
18
+ return {
19
+ content: [{ type: "text", text: result.error.message }],
20
+ isError: true,
21
+ };
22
+ }
23
+
24
+ return formatResult(void 0, apiCall);
25
+ },
26
+ };
@@ -0,0 +1,28 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { pronunciationsPronunciationsDownloadCsv } from "../../funcs/pronunciationsPronunciationsDownloadCsv.js";
6
+ import { formatResult, ToolDefinition } from "../tools.js";
7
+
8
+ export const tool$pronunciationsPronunciationsDownloadCsv: ToolDefinition = {
9
+ name: "pronunciations-pronunciations-download-csv",
10
+ description: `Download Pronunciations Csv`,
11
+ tool: async (client, ctx) => {
12
+ const [result, apiCall] = await pronunciationsPronunciationsDownloadCsv(
13
+ client,
14
+ { fetchOptions: { signal: ctx.signal } },
15
+ ).$inspect();
16
+
17
+ if (!result.ok) {
18
+ return {
19
+ content: [{ type: "text", text: result.error.message }],
20
+ isError: true,
21
+ };
22
+ }
23
+
24
+ const value = result.value.result;
25
+
26
+ return formatResult(value, apiCall);
27
+ },
28
+ };
@@ -0,0 +1,28 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { pronunciationsPronunciationsGet } from "../../funcs/pronunciationsPronunciationsGet.js";
6
+ import { formatResult, ToolDefinition } from "../tools.js";
7
+
8
+ export const tool$pronunciationsPronunciationsGet: ToolDefinition = {
9
+ name: "pronunciations-pronunciations-get",
10
+ description: `Get Pronunciations Dictionary`,
11
+ tool: async (client, ctx) => {
12
+ const [result, apiCall] = await pronunciationsPronunciationsGet(
13
+ client,
14
+ { fetchOptions: { signal: ctx.signal } },
15
+ ).$inspect();
16
+
17
+ if (!result.ok) {
18
+ return {
19
+ content: [{ type: "text", text: result.error.message }],
20
+ isError: true,
21
+ };
22
+ }
23
+
24
+ const value = result.value;
25
+
26
+ return formatResult(value, apiCall);
27
+ },
28
+ };
@@ -0,0 +1,28 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { pronunciationsPronunciationsGetMetadata } from "../../funcs/pronunciationsPronunciationsGetMetadata.js";
6
+ import { formatResult, ToolDefinition } from "../tools.js";
7
+
8
+ export const tool$pronunciationsPronunciationsGetMetadata: ToolDefinition = {
9
+ name: "pronunciations-pronunciations-get-metadata",
10
+ description: `Get Pronunciations Metadata`,
11
+ tool: async (client, ctx) => {
12
+ const [result, apiCall] = await pronunciationsPronunciationsGetMetadata(
13
+ client,
14
+ { fetchOptions: { signal: ctx.signal } },
15
+ ).$inspect();
16
+
17
+ if (!result.ok) {
18
+ return {
19
+ content: [{ type: "text", text: result.error.message }],
20
+ isError: true,
21
+ };
22
+ }
23
+
24
+ const value = result.value;
25
+
26
+ return formatResult(value, apiCall);
27
+ },
28
+ };
@@ -17,6 +17,7 @@ export const CampaignProperties = {
17
17
  UpdatedAt: "updated_at",
18
18
  Label: "label",
19
19
  Labels: "labels",
20
+ VoicemailDetection: "voicemail_detection",
20
21
  } as const;
21
22
  export type CampaignProperties = ClosedEnum<typeof CampaignProperties>;
22
23
 
@@ -0,0 +1,77 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+
10
+ /**
11
+ * Audit metadata associated with a dictionary.
12
+ */
13
+ export type DictionaryMetadata = {
14
+ entries: number;
15
+ hash: string;
16
+ source?: string | undefined;
17
+ };
18
+
19
+ /** @internal */
20
+ export const DictionaryMetadata$inboundSchema: z.ZodType<
21
+ DictionaryMetadata,
22
+ z.ZodTypeDef,
23
+ unknown
24
+ > = z.object({
25
+ entries: z.number().int(),
26
+ hash: z.string(),
27
+ source: z.string().default(""),
28
+ });
29
+
30
+ /** @internal */
31
+ export type DictionaryMetadata$Outbound = {
32
+ entries: number;
33
+ hash: string;
34
+ source: string;
35
+ };
36
+
37
+ /** @internal */
38
+ export const DictionaryMetadata$outboundSchema: z.ZodType<
39
+ DictionaryMetadata$Outbound,
40
+ z.ZodTypeDef,
41
+ DictionaryMetadata
42
+ > = z.object({
43
+ entries: z.number().int(),
44
+ hash: z.string(),
45
+ source: z.string().default(""),
46
+ });
47
+
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
+ export namespace DictionaryMetadata$ {
53
+ /** @deprecated use `DictionaryMetadata$inboundSchema` instead. */
54
+ export const inboundSchema = DictionaryMetadata$inboundSchema;
55
+ /** @deprecated use `DictionaryMetadata$outboundSchema` instead. */
56
+ export const outboundSchema = DictionaryMetadata$outboundSchema;
57
+ /** @deprecated use `DictionaryMetadata$Outbound` instead. */
58
+ export type Outbound = DictionaryMetadata$Outbound;
59
+ }
60
+
61
+ export function dictionaryMetadataToJSON(
62
+ dictionaryMetadata: DictionaryMetadata,
63
+ ): string {
64
+ return JSON.stringify(
65
+ DictionaryMetadata$outboundSchema.parse(dictionaryMetadata),
66
+ );
67
+ }
68
+
69
+ export function dictionaryMetadataFromJSON(
70
+ jsonString: string,
71
+ ): SafeParseResult<DictionaryMetadata, SDKValidationError> {
72
+ return safeParse(
73
+ jsonString,
74
+ (x) => DictionaryMetadata$inboundSchema.parse(JSON.parse(x)),
75
+ `Failed to parse 'DictionaryMetadata' from JSON`,
76
+ );
77
+ }
@@ -45,7 +45,9 @@ export type IncidentCreateRequest = {
45
45
  */
46
46
  subOrganizationId?: number | null | undefined;
47
47
  /**
48
- * The name of the sub-organization
48
+ * The name of the sub-organization (DEPRECATED)
49
+ *
50
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
49
51
  */
50
52
  subOrganization?: string | null | undefined;
51
53
  };
@@ -45,7 +45,9 @@ export type IncidentResponse = {
45
45
  */
46
46
  subOrganizationId?: number | null | undefined;
47
47
  /**
48
- * The name of the sub-organization
48
+ * The name of the sub-organization (DEPRECATED)
49
+ *
50
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
49
51
  */
50
52
  subOrganization?: string | null | undefined;
51
53
  /**
@@ -45,21 +45,15 @@ export type IncidentUpdateRequest = {
45
45
  */
46
46
  subOrganizationId?: number | null | undefined;
47
47
  /**
48
- * The name of the sub-organization
48
+ * The name of the sub-organization (DEPRECATED)
49
+ *
50
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
49
51
  */
50
52
  subOrganization?: string | null | undefined;
51
53
  /**
52
54
  * The ID of the incident to update
53
55
  */
54
56
  id: number;
55
- /**
56
- * Creation time of the incident
57
- */
58
- createdAt?: Date | null | undefined;
59
- /**
60
- * Last update time of the incident
61
- */
62
- updatedAt?: Date | null | undefined;
63
57
  };
64
58
 
65
59
  /** @internal */
@@ -82,12 +76,6 @@ export const IncidentUpdateRequest$inboundSchema: z.ZodType<
82
76
  sub_organization_id: z.nullable(z.number().int()).optional(),
83
77
  sub_organization: z.nullable(z.string()).optional(),
84
78
  id: z.number().int(),
85
- created_at: z.nullable(
86
- z.string().datetime({ offset: true }).transform(v => new Date(v)),
87
- ).optional(),
88
- updated_at: z.nullable(
89
- z.string().datetime({ offset: true }).transform(v => new Date(v)),
90
- ).optional(),
91
79
  }).transform((v) => {
92
80
  return remap$(v, {
93
81
  "start_datetime": "startDatetime",
@@ -97,8 +85,6 @@ export const IncidentUpdateRequest$inboundSchema: z.ZodType<
97
85
  "organization_id": "organizationId",
98
86
  "sub_organization_id": "subOrganizationId",
99
87
  "sub_organization": "subOrganization",
100
- "created_at": "createdAt",
101
- "updated_at": "updatedAt",
102
88
  });
103
89
  });
104
90
 
@@ -114,8 +100,6 @@ export type IncidentUpdateRequest$Outbound = {
114
100
  sub_organization_id?: number | null | undefined;
115
101
  sub_organization?: string | null | undefined;
116
102
  id: number;
117
- created_at?: string | null | undefined;
118
- updated_at?: string | null | undefined;
119
103
  };
120
104
 
121
105
  /** @internal */
@@ -134,8 +118,6 @@ export const IncidentUpdateRequest$outboundSchema: z.ZodType<
134
118
  subOrganizationId: z.nullable(z.number().int()).optional(),
135
119
  subOrganization: z.nullable(z.string()).optional(),
136
120
  id: z.number().int(),
137
- createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
138
- updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
139
121
  }).transform((v) => {
140
122
  return remap$(v, {
141
123
  startDatetime: "start_datetime",
@@ -145,8 +127,6 @@ export const IncidentUpdateRequest$outboundSchema: z.ZodType<
145
127
  organizationId: "organization_id",
146
128
  subOrganizationId: "sub_organization_id",
147
129
  subOrganization: "sub_organization",
148
- createdAt: "created_at",
149
- updatedAt: "updated_at",
150
130
  });
151
131
  });
152
132
 
@@ -64,6 +64,7 @@ export * from "./daysofweek.js";
64
64
  export * from "./dialogmessage.js";
65
65
  export * from "./dialogrole.js";
66
66
  export * from "./dialogtoolcall.js";
67
+ export * from "./dictionarymetadata.js";
67
68
  export * from "./event.js";
68
69
  export * from "./eventproperties.js";
69
70
  export * from "./folderdetails.js";
@@ -130,6 +131,7 @@ export * from "./listresponsesessionlabel.js";
130
131
  export * from "./listresponsetoolresponse.js";
131
132
  export * from "./listresponseuserresponse.js";
132
133
  export * from "./logintype.js";
134
+ export * from "./matchtype.js";
133
135
  export * from "./orderbydirection.js";
134
136
  export * from "./organizationchannelconfig.js";
135
137
  export * from "./organizationchannelcreaterequest.js";
@@ -147,6 +149,8 @@ export * from "./promptllmprovider.js";
147
149
  export * from "./promptproperties.js";
148
150
  export * from "./promptresponse.js";
149
151
  export * from "./promptupdaterequest.js";
152
+ export * from "./pronunciationoverride.js";
153
+ export * from "./pronunciationoverridesdictionary.js";
150
154
  export * from "./pronunciationscsvuploadresponse.js";
151
155
  export * from "./requeststatus.js";
152
156
  export * from "./rolecreaterequest.js";
@@ -216,4 +220,5 @@ export * from "./userproperties.js";
216
220
  export * from "./userresponse.js";
217
221
  export * from "./userupdaterequest.js";
218
222
  export * from "./validationerror.js";
223
+ export * from "./voicedisplayinfo.js";
219
224
  export * from "./voicesamplecreaterequest.js";
@@ -0,0 +1,37 @@
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
+ * Matching strategy for override text.
10
+ */
11
+ export const MatchType = {
12
+ Exact: "exact",
13
+ Substring: "substring",
14
+ } as const;
15
+ /**
16
+ * Matching strategy for override text.
17
+ */
18
+ export type MatchType = ClosedEnum<typeof MatchType>;
19
+
20
+ /** @internal */
21
+ export const MatchType$inboundSchema: z.ZodNativeEnum<typeof MatchType> = z
22
+ .nativeEnum(MatchType);
23
+
24
+ /** @internal */
25
+ export const MatchType$outboundSchema: z.ZodNativeEnum<typeof MatchType> =
26
+ MatchType$inboundSchema;
27
+
28
+ /**
29
+ * @internal
30
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
31
+ */
32
+ export namespace MatchType$ {
33
+ /** @deprecated use `MatchType$inboundSchema` instead. */
34
+ export const inboundSchema = MatchType$inboundSchema;
35
+ /** @deprecated use `MatchType$outboundSchema` instead. */
36
+ export const outboundSchema = MatchType$outboundSchema;
37
+ }
@@ -76,6 +76,10 @@ export type OutboundCampaign = {
76
76
  * Days of the week when campaign is active
77
77
  */
78
78
  activeDays: Array<DaysOfWeek>;
79
+ /**
80
+ * Config for voicemail detection for voice campaigns
81
+ */
82
+ voicemailDetection?: { [k: string]: number } | null | undefined;
79
83
  /**
80
84
  * Unique ID for campaign
81
85
  */
@@ -119,6 +123,7 @@ export const OutboundCampaign$inboundSchema: z.ZodType<
119
123
  retry_count: z.number().int().default(0),
120
124
  retry_interval: z.nullable(z.string()).optional(),
121
125
  active_days: z.array(DaysOfWeek$inboundSchema),
126
+ voicemail_detection: z.nullable(z.record(z.number())).optional(),
122
127
  id: z.number().int(),
123
128
  agent_id: z.nullable(z.number().int()).optional(),
124
129
  created_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
@@ -138,6 +143,7 @@ export const OutboundCampaign$inboundSchema: z.ZodType<
138
143
  "retry_count": "retryCount",
139
144
  "retry_interval": "retryInterval",
140
145
  "active_days": "activeDays",
146
+ "voicemail_detection": "voicemailDetection",
141
147
  "agent_id": "agentId",
142
148
  "created_at": "createdAt",
143
149
  "updated_at": "updatedAt",
@@ -162,6 +168,7 @@ export type OutboundCampaign$Outbound = {
162
168
  retry_count: number;
163
169
  retry_interval?: string | null | undefined;
164
170
  active_days: Array<string>;
171
+ voicemail_detection?: { [k: string]: number } | null | undefined;
165
172
  id: number;
166
173
  agent_id?: number | null | undefined;
167
174
  created_at?: string | undefined;
@@ -190,6 +197,7 @@ export const OutboundCampaign$outboundSchema: z.ZodType<
190
197
  retryCount: z.number().int().default(0),
191
198
  retryInterval: z.nullable(z.string()).optional(),
192
199
  activeDays: z.array(DaysOfWeek$outboundSchema),
200
+ voicemailDetection: z.nullable(z.record(z.number())).optional(),
193
201
  id: z.number().int(),
194
202
  agentId: z.nullable(z.number().int()).optional(),
195
203
  createdAt: z.date().transform(v => v.toISOString()).optional(),
@@ -207,6 +215,7 @@ export const OutboundCampaign$outboundSchema: z.ZodType<
207
215
  retryCount: "retry_count",
208
216
  retryInterval: "retry_interval",
209
217
  activeDays: "active_days",
218
+ voicemailDetection: "voicemail_detection",
210
219
  agentId: "agent_id",
211
220
  createdAt: "created_at",
212
221
  updatedAt: "updated_at",
@@ -76,6 +76,10 @@ export type OutboundCampaignInput = {
76
76
  * Days of the week when campaign is active
77
77
  */
78
78
  activeDays: Array<DaysOfWeek>;
79
+ /**
80
+ * Config for voicemail detection for voice campaigns
81
+ */
82
+ voicemailDetection?: { [k: string]: number } | null | undefined;
79
83
  };
80
84
 
81
85
  /** @internal */
@@ -99,6 +103,7 @@ export const OutboundCampaignInput$inboundSchema: z.ZodType<
99
103
  retry_count: z.number().int().default(0),
100
104
  retry_interval: z.nullable(z.string()).optional(),
101
105
  active_days: z.array(DaysOfWeek$inboundSchema),
106
+ voicemail_detection: z.nullable(z.record(z.number())).optional(),
102
107
  }).transform((v) => {
103
108
  return remap$(v, {
104
109
  "campaign_name": "campaignName",
@@ -111,6 +116,7 @@ export const OutboundCampaignInput$inboundSchema: z.ZodType<
111
116
  "retry_count": "retryCount",
112
117
  "retry_interval": "retryInterval",
113
118
  "active_days": "activeDays",
119
+ "voicemail_detection": "voicemailDetection",
114
120
  });
115
121
  });
116
122
 
@@ -131,6 +137,7 @@ export type OutboundCampaignInput$Outbound = {
131
137
  retry_count: number;
132
138
  retry_interval?: string | null | undefined;
133
139
  active_days: Array<string>;
140
+ voicemail_detection?: { [k: string]: number } | null | undefined;
134
141
  };
135
142
 
136
143
  /** @internal */
@@ -154,6 +161,7 @@ export const OutboundCampaignInput$outboundSchema: z.ZodType<
154
161
  retryCount: z.number().int().default(0),
155
162
  retryInterval: z.nullable(z.string()).optional(),
156
163
  activeDays: z.array(DaysOfWeek$outboundSchema),
164
+ voicemailDetection: z.nullable(z.record(z.number())).optional(),
157
165
  }).transform((v) => {
158
166
  return remap$(v, {
159
167
  campaignName: "campaign_name",
@@ -166,6 +174,7 @@ export const OutboundCampaignInput$outboundSchema: z.ZodType<
166
174
  retryCount: "retry_count",
167
175
  retryInterval: "retry_interval",
168
176
  activeDays: "active_days",
177
+ voicemailDetection: "voicemail_detection",
169
178
  });
170
179
  });
171
180
 
@@ -46,6 +46,10 @@ export type PromptCreateRequest = {
46
46
  * Whether session end functionality is enabled for this prompt
47
47
  */
48
48
  sessionEndEnabled?: boolean | undefined;
49
+ /**
50
+ * The comments for the most recent edit to the prompt
51
+ */
52
+ editComments?: string | null | undefined;
49
53
  /**
50
54
  * Whether to include the default tools (`hangup`) in the list of tools for the prompt. If you disable this during creation, you might want to disable it during updates as well, otherwise the default tools will be added when updating the prompt.
51
55
  */
@@ -65,11 +69,13 @@ export const PromptCreateRequest$inboundSchema: z.ZodType<
65
69
  tools: z.array(z.string()).optional(),
66
70
  llm_config: PromptLlmConfig$inboundSchema,
67
71
  session_end_enabled: z.boolean().default(false),
72
+ edit_comments: z.nullable(z.string()).optional(),
68
73
  include_default_tools: z.boolean().default(true),
69
74
  }).transform((v) => {
70
75
  return remap$(v, {
71
76
  "llm_config": "llmConfig",
72
77
  "session_end_enabled": "sessionEndEnabled",
78
+ "edit_comments": "editComments",
73
79
  "include_default_tools": "includeDefaultTools",
74
80
  });
75
81
  });
@@ -83,6 +89,7 @@ export type PromptCreateRequest$Outbound = {
83
89
  tools?: Array<string> | undefined;
84
90
  llm_config: PromptLlmConfig$Outbound;
85
91
  session_end_enabled: boolean;
92
+ edit_comments?: string | null | undefined;
86
93
  include_default_tools: boolean;
87
94
  };
88
95
 
@@ -99,11 +106,13 @@ export const PromptCreateRequest$outboundSchema: z.ZodType<
99
106
  tools: z.array(z.string()).optional(),
100
107
  llmConfig: PromptLlmConfig$outboundSchema,
101
108
  sessionEndEnabled: z.boolean().default(false),
109
+ editComments: z.nullable(z.string()).optional(),
102
110
  includeDefaultTools: z.boolean().default(true),
103
111
  }).transform((v) => {
104
112
  return remap$(v, {
105
113
  llmConfig: "llm_config",
106
114
  sessionEndEnabled: "session_end_enabled",
115
+ editComments: "edit_comments",
107
116
  includeDefaultTools: "include_default_tools",
108
117
  });
109
118
  });
@@ -60,14 +60,14 @@ export type PromptResponse = {
60
60
  * Whether session end functionality is enabled for this prompt
61
61
  */
62
62
  sessionEndEnabled?: boolean | undefined;
63
- /**
64
- * The internal ID of the prompt
65
- */
66
- id: number;
67
63
  /**
68
64
  * The comments for the most recent edit to the prompt
69
65
  */
70
66
  editComments?: string | null | undefined;
67
+ /**
68
+ * The internal ID of the prompt
69
+ */
70
+ id: number;
71
71
  /**
72
72
  * The last updated date of the prompt
73
73
  */
@@ -103,8 +103,8 @@ export const PromptResponse$inboundSchema: z.ZodType<
103
103
  tools: z.array(z.string()).optional(),
104
104
  llm_config: PromptLlmConfig$inboundSchema,
105
105
  session_end_enabled: z.boolean().default(false),
106
- id: z.number().int(),
107
106
  edit_comments: z.nullable(z.string()).optional(),
107
+ id: z.number().int(),
108
108
  last_updated: z.nullable(z.string()),
109
109
  last_updated_by: z.nullable(z.string()).optional(),
110
110
  agent_count: z.nullable(z.number().int()).optional(),
@@ -132,8 +132,8 @@ export type PromptResponse$Outbound = {
132
132
  tools?: Array<string> | undefined;
133
133
  llm_config: PromptLlmConfig$Outbound;
134
134
  session_end_enabled: boolean;
135
- id: number;
136
135
  edit_comments?: string | null | undefined;
136
+ id: number;
137
137
  last_updated: string | null;
138
138
  last_updated_by?: string | null | undefined;
139
139
  agent_count?: number | null | undefined;
@@ -154,8 +154,8 @@ export const PromptResponse$outboundSchema: z.ZodType<
154
154
  tools: z.array(z.string()).optional(),
155
155
  llmConfig: PromptLlmConfig$outboundSchema,
156
156
  sessionEndEnabled: z.boolean().default(false),
157
- id: z.number().int(),
158
157
  editComments: z.nullable(z.string()).optional(),
158
+ id: z.number().int(),
159
159
  lastUpdated: z.nullable(z.string()),
160
160
  lastUpdatedBy: z.nullable(z.string()).optional(),
161
161
  agentCount: z.nullable(z.number().int()).optional(),
@@ -46,14 +46,14 @@ export type PromptUpdateRequest = {
46
46
  * Whether session end functionality is enabled for this prompt
47
47
  */
48
48
  sessionEndEnabled?: boolean | undefined;
49
- /**
50
- * The internal ID of the prompt
51
- */
52
- id: number;
53
49
  /**
54
50
  * The comments for the most recent edit to the prompt
55
51
  */
56
52
  editComments?: string | null | undefined;
53
+ /**
54
+ * The internal ID of the prompt
55
+ */
56
+ id: number;
57
57
  /**
58
58
  * Whether to include the default tools (`hangup`) in the list of tools for the prompt. If you remove one of the default tools from your prompt, you might want to disable this option so that the tool is not added again when updated.
59
59
  */
@@ -73,8 +73,8 @@ export const PromptUpdateRequest$inboundSchema: z.ZodType<
73
73
  tools: z.array(z.string()).optional(),
74
74
  llm_config: PromptLlmConfig$inboundSchema,
75
75
  session_end_enabled: z.boolean().default(false),
76
- id: z.number().int(),
77
76
  edit_comments: z.nullable(z.string()).optional(),
77
+ id: z.number().int(),
78
78
  include_default_tools: z.boolean().default(true),
79
79
  }).transform((v) => {
80
80
  return remap$(v, {
@@ -94,8 +94,8 @@ export type PromptUpdateRequest$Outbound = {
94
94
  tools?: Array<string> | undefined;
95
95
  llm_config: PromptLlmConfig$Outbound;
96
96
  session_end_enabled: boolean;
97
- id: number;
98
97
  edit_comments?: string | null | undefined;
98
+ id: number;
99
99
  include_default_tools: boolean;
100
100
  };
101
101
 
@@ -112,8 +112,8 @@ export const PromptUpdateRequest$outboundSchema: z.ZodType<
112
112
  tools: z.array(z.string()).optional(),
113
113
  llmConfig: PromptLlmConfig$outboundSchema,
114
114
  sessionEndEnabled: z.boolean().default(false),
115
- id: z.number().int(),
116
115
  editComments: z.nullable(z.string()).optional(),
116
+ id: z.number().int(),
117
117
  includeDefaultTools: z.boolean().default(true),
118
118
  }).transform((v) => {
119
119
  return remap$(v, {