syllable-sdk 0.1.0-alpha.72 → 0.1.0-alpha.74

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 (278) hide show
  1. package/README.md +28 -11
  2. package/docs/sdks/batches/README.md +30 -32
  3. package/docs/sdks/campaigns/README.md +11 -3
  4. package/docs/sdks/incidents/README.md +527 -0
  5. package/docs/sdks/insights/README.md +1 -1
  6. package/docs/sdks/syllablesdk/README.md +1 -1
  7. package/docs/sdks/syllablesdktools/README.md +82 -2
  8. package/docs/sdks/takeouts/README.md +11 -11
  9. package/docs/sdks/workflows/README.md +1 -1
  10. package/funcs/{outboundBatchesOutboundBatchRemove.d.ts → incidentsCreate.d.ts} +7 -4
  11. package/funcs/incidentsCreate.d.ts.map +1 -0
  12. package/funcs/incidentsCreate.js +102 -0
  13. package/funcs/incidentsCreate.js.map +1 -0
  14. package/funcs/incidentsDelete.d.ts +16 -0
  15. package/funcs/incidentsDelete.d.ts.map +1 -0
  16. package/funcs/incidentsDelete.js +112 -0
  17. package/funcs/incidentsDelete.js.map +1 -0
  18. package/funcs/incidentsGetById.d.ts +17 -0
  19. package/funcs/incidentsGetById.d.ts.map +1 -0
  20. package/funcs/incidentsGetById.js +108 -0
  21. package/funcs/incidentsGetById.js.map +1 -0
  22. package/funcs/incidentsIncidentGetOrganizations.d.ts +15 -0
  23. package/funcs/incidentsIncidentGetOrganizations.d.ts.map +1 -0
  24. package/funcs/incidentsIncidentGetOrganizations.js +89 -0
  25. package/funcs/incidentsIncidentGetOrganizations.js.map +1 -0
  26. package/funcs/incidentsList.d.ts +17 -0
  27. package/funcs/incidentsList.d.ts.map +1 -0
  28. package/funcs/incidentsList.js +114 -0
  29. package/funcs/incidentsList.js.map +1 -0
  30. package/funcs/incidentsUpdate.d.ts +16 -0
  31. package/funcs/incidentsUpdate.d.ts.map +1 -0
  32. package/funcs/incidentsUpdate.js +102 -0
  33. package/funcs/incidentsUpdate.js.map +1 -0
  34. package/funcs/insightsList.d.ts +1 -1
  35. package/funcs/insightsList.js +1 -1
  36. package/funcs/insightsToolsCreate.d.ts +1 -1
  37. package/funcs/insightsToolsCreate.js +3 -3
  38. package/funcs/insightsToolsCreate.js.map +1 -1
  39. package/funcs/insightsToolsInsightsToolTest.d.ts +16 -0
  40. package/funcs/insightsToolsInsightsToolTest.d.ts.map +1 -0
  41. package/funcs/insightsToolsInsightsToolTest.js +103 -0
  42. package/funcs/insightsToolsInsightsToolTest.js.map +1 -0
  43. package/funcs/insightsToolsUpdate.d.ts +1 -1
  44. package/funcs/insightsToolsUpdate.js +1 -1
  45. package/funcs/insightsWorkflowsQueueSessionsWorkflow.d.ts +1 -1
  46. package/funcs/insightsWorkflowsQueueSessionsWorkflow.js +1 -1
  47. package/funcs/{outboundBatchesOutboundBatchAdd.d.ts → outboundBatchesAdd.d.ts} +2 -2
  48. package/funcs/outboundBatchesAdd.d.ts.map +1 -0
  49. package/funcs/{outboundBatchesOutboundBatchAdd.js → outboundBatchesAdd.js} +3 -3
  50. package/funcs/outboundBatchesAdd.js.map +1 -0
  51. package/funcs/outboundBatchesList.d.ts +1 -1
  52. package/funcs/outboundBatchesList.d.ts.map +1 -1
  53. package/funcs/outboundBatchesList.js +1 -2
  54. package/funcs/outboundBatchesList.js.map +1 -1
  55. package/funcs/outboundBatchesRemove.d.ts +13 -0
  56. package/funcs/outboundBatchesRemove.d.ts.map +1 -0
  57. package/funcs/{outboundBatchesOutboundBatchRemove.js → outboundBatchesRemove.js} +3 -3
  58. package/funcs/outboundBatchesRemove.js.map +1 -0
  59. package/funcs/{outboundBatchesOutboundBatchResults.d.ts → outboundBatchesResults.d.ts} +2 -2
  60. package/funcs/outboundBatchesResults.d.ts.map +1 -0
  61. package/funcs/{outboundBatchesOutboundBatchResults.js → outboundBatchesResults.js} +8 -3
  62. package/funcs/outboundBatchesResults.js.map +1 -0
  63. package/funcs/outboundBatchesUpload.d.ts.map +1 -1
  64. package/funcs/outboundBatchesUpload.js +16 -12
  65. package/funcs/outboundBatchesUpload.js.map +1 -1
  66. package/funcs/outboundCampaignsList.d.ts +1 -1
  67. package/funcs/outboundCampaignsList.d.ts.map +1 -1
  68. package/funcs/outboundCampaignsList.js +1 -2
  69. package/funcs/outboundCampaignsList.js.map +1 -1
  70. package/funcs/{takeoutsCreateTakeoutApiV1TakeoutsCreatePost.d.ts → takeoutsCreate.d.ts} +2 -2
  71. package/funcs/takeoutsCreate.d.ts.map +1 -0
  72. package/funcs/{takeoutsCreateTakeoutApiV1TakeoutsCreatePost.js → takeoutsCreate.js} +4 -4
  73. package/funcs/takeoutsCreate.js.map +1 -0
  74. package/funcs/{takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet.d.ts → takeoutsTakeoutsGetByJobId.d.ts} +2 -2
  75. package/funcs/takeoutsTakeoutsGetByJobId.d.ts.map +1 -0
  76. package/funcs/{takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet.js → takeoutsTakeoutsGetByJobId.js} +5 -5
  77. package/funcs/takeoutsTakeoutsGetByJobId.js.map +1 -0
  78. package/jsr.json +1 -1
  79. package/lib/config.d.ts +2 -2
  80. package/lib/config.js +2 -2
  81. package/models/components/bodyoutboundbatchdelete.d.ts +1 -1
  82. package/models/components/bodyoutboundbatchdelete.d.ts.map +1 -1
  83. package/models/components/bodyoutboundbatchdelete.js +10 -1
  84. package/models/components/bodyoutboundbatchdelete.js.map +1 -1
  85. package/models/components/bodyoutboundbatchupload.d.ts +2 -2
  86. package/models/components/bodyoutboundbatchupload.d.ts.map +1 -1
  87. package/models/components/bodyoutboundbatchupload.js +2 -2
  88. package/models/components/bodyoutboundbatchupload.js.map +1 -1
  89. package/models/components/communicationrequest.d.ts +0 -11
  90. package/models/components/communicationrequest.d.ts.map +1 -1
  91. package/models/components/communicationrequest.js +0 -9
  92. package/models/components/communicationrequest.js.map +1 -1
  93. package/models/components/communicationrequestresult.d.ts +39 -14
  94. package/models/components/communicationrequestresult.d.ts.map +1 -1
  95. package/models/components/communicationrequestresult.js +38 -14
  96. package/models/components/communicationrequestresult.js.map +1 -1
  97. package/models/components/conversation.d.ts +10 -0
  98. package/models/components/conversation.d.ts.map +1 -1
  99. package/models/components/conversation.js +8 -0
  100. package/models/components/conversation.js.map +1 -1
  101. package/models/components/incidentcreaterequest.d.ts +75 -0
  102. package/models/components/incidentcreaterequest.d.ts.map +1 -0
  103. package/models/components/incidentcreaterequest.js +96 -0
  104. package/models/components/incidentcreaterequest.js.map +1 -0
  105. package/models/components/incidentorganizationresponse.d.ts +33 -0
  106. package/models/components/incidentorganizationresponse.d.ts.map +1 -0
  107. package/models/components/incidentorganizationresponse.js +72 -0
  108. package/models/components/incidentorganizationresponse.js.map +1 -0
  109. package/models/components/incidentproperties.d.ts +64 -0
  110. package/models/components/incidentproperties.d.ts.map +1 -0
  111. package/models/components/{requeststatus.js → incidentproperties.js} +25 -19
  112. package/models/components/incidentproperties.js.map +1 -0
  113. package/models/components/incidentresponse.d.ts +90 -0
  114. package/models/components/incidentresponse.d.ts.map +1 -0
  115. package/models/components/incidentresponse.js +106 -0
  116. package/models/components/incidentresponse.js.map +1 -0
  117. package/models/components/incidentupdaterequest.d.ts +90 -0
  118. package/models/components/incidentupdaterequest.d.ts.map +1 -0
  119. package/models/components/incidentupdaterequest.js +106 -0
  120. package/models/components/incidentupdaterequest.js.map +1 -0
  121. package/models/components/index.d.ts +9 -1
  122. package/models/components/index.d.ts.map +1 -1
  123. package/models/components/index.js +9 -1
  124. package/models/components/index.js.map +1 -1
  125. package/models/components/insighttooltestinput.d.ts +40 -0
  126. package/models/components/insighttooltestinput.d.ts.map +1 -0
  127. package/models/components/insighttooltestinput.js +72 -0
  128. package/models/components/insighttooltestinput.js.map +1 -0
  129. package/models/components/listresponsecommunicationbatch.d.ts +53 -0
  130. package/models/components/listresponsecommunicationbatch.d.ts.map +1 -0
  131. package/models/components/listresponsecommunicationbatch.js +81 -0
  132. package/models/components/listresponsecommunicationbatch.js.map +1 -0
  133. package/models/components/listresponseincidentresponse.d.ts +53 -0
  134. package/models/components/listresponseincidentresponse.d.ts.map +1 -0
  135. package/models/components/listresponseincidentresponse.js +81 -0
  136. package/models/components/listresponseincidentresponse.js.map +1 -0
  137. package/models/components/listresponseoutboundcampaign.d.ts +53 -0
  138. package/models/components/listresponseoutboundcampaign.d.ts.map +1 -0
  139. package/models/components/listresponseoutboundcampaign.js +81 -0
  140. package/models/components/listresponseoutboundcampaign.js.map +1 -0
  141. package/models/components/outboundcampaign.d.ts +10 -0
  142. package/models/components/outboundcampaign.d.ts.map +1 -1
  143. package/models/components/outboundcampaign.js +4 -0
  144. package/models/components/outboundcampaign.js.map +1 -1
  145. package/models/components/outboundcampaigninput.d.ts +10 -0
  146. package/models/components/outboundcampaigninput.d.ts.map +1 -1
  147. package/models/components/outboundcampaigninput.js +4 -0
  148. package/models/components/outboundcampaigninput.js.map +1 -1
  149. package/models/components/promptcreaterequest.d.ts +1 -1
  150. package/models/components/promptupdaterequest.d.ts +1 -1
  151. package/models/operations/incidentdelete.d.ts +31 -0
  152. package/models/operations/incidentdelete.d.ts.map +1 -0
  153. package/models/operations/incidentdelete.js +70 -0
  154. package/models/operations/incidentdelete.js.map +1 -0
  155. package/models/operations/incidentgetbyid.d.ts +29 -0
  156. package/models/operations/incidentgetbyid.d.ts.map +1 -0
  157. package/models/operations/incidentgetbyid.js +68 -0
  158. package/models/operations/incidentgetbyid.js.map +1 -0
  159. package/models/operations/incidentlist.d.ts +73 -0
  160. package/models/operations/incidentlist.d.ts.map +1 -0
  161. package/models/operations/incidentlist.js +101 -0
  162. package/models/operations/incidentlist.js.map +1 -0
  163. package/models/operations/index.d.ts +4 -1
  164. package/models/operations/index.d.ts.map +1 -1
  165. package/models/operations/index.js +4 -1
  166. package/models/operations/index.js.map +1 -1
  167. package/models/operations/outboundbatchresults.d.ts +4 -0
  168. package/models/operations/outboundbatchresults.d.ts.map +1 -1
  169. package/models/operations/outboundbatchresults.js +6 -0
  170. package/models/operations/outboundbatchresults.js.map +1 -1
  171. package/models/operations/outboundbatchupload.d.ts +2 -2
  172. package/models/operations/outboundbatchupload.d.ts.map +1 -1
  173. package/models/operations/outboundbatchupload.js +4 -2
  174. package/models/operations/outboundbatchupload.js.map +1 -1
  175. package/models/operations/takeoutsgetbyjobid.d.ts +29 -0
  176. package/models/operations/takeoutsgetbyjobid.d.ts.map +1 -0
  177. package/models/operations/{gettakeoutapiv1takeoutsgetjobidget.js → takeoutsgetbyjobid.js} +17 -17
  178. package/models/operations/takeoutsgetbyjobid.js.map +1 -0
  179. package/openapi.json +1449 -224
  180. package/package.json +1 -1
  181. package/sdk/batches.d.ts +4 -4
  182. package/sdk/batches.d.ts.map +1 -1
  183. package/sdk/batches.js +9 -9
  184. package/sdk/batches.js.map +1 -1
  185. package/sdk/campaigns.d.ts +1 -1
  186. package/sdk/campaigns.d.ts.map +1 -1
  187. package/sdk/incidents.d.ts +48 -0
  188. package/sdk/incidents.d.ts.map +1 -0
  189. package/sdk/incidents.js +72 -0
  190. package/sdk/incidents.js.map +1 -0
  191. package/sdk/insights.d.ts +1 -1
  192. package/sdk/insights.js +1 -1
  193. package/sdk/sdk.d.ts +3 -0
  194. package/sdk/sdk.d.ts.map +1 -1
  195. package/sdk/sdk.js +4 -0
  196. package/sdk/sdk.js.map +1 -1
  197. package/sdk/syllablesdktools.d.ts +9 -2
  198. package/sdk/syllablesdktools.d.ts.map +1 -1
  199. package/sdk/syllablesdktools.js +12 -2
  200. package/sdk/syllablesdktools.js.map +1 -1
  201. package/sdk/takeouts.d.ts +2 -2
  202. package/sdk/takeouts.d.ts.map +1 -1
  203. package/sdk/takeouts.js +6 -6
  204. package/sdk/takeouts.js.map +1 -1
  205. package/sdk/workflows.d.ts +1 -1
  206. package/sdk/workflows.js +1 -1
  207. package/src/funcs/incidentsCreate.ts +135 -0
  208. package/src/funcs/incidentsDelete.ts +147 -0
  209. package/src/funcs/incidentsGetById.ts +142 -0
  210. package/src/funcs/incidentsIncidentGetOrganizations.ts +112 -0
  211. package/src/funcs/incidentsList.ts +148 -0
  212. package/src/funcs/incidentsUpdate.ts +135 -0
  213. package/src/funcs/insightsList.ts +1 -1
  214. package/src/funcs/insightsToolsCreate.ts +4 -4
  215. package/src/funcs/insightsToolsInsightsToolTest.ts +136 -0
  216. package/src/funcs/insightsToolsUpdate.ts +1 -1
  217. package/src/funcs/insightsWorkflowsQueueSessionsWorkflow.ts +1 -1
  218. package/src/funcs/{outboundBatchesOutboundBatchAdd.ts → outboundBatchesAdd.ts} +1 -1
  219. package/src/funcs/outboundBatchesList.ts +3 -4
  220. package/src/funcs/{outboundBatchesOutboundBatchRemove.ts → outboundBatchesRemove.ts} +1 -1
  221. package/src/funcs/{outboundBatchesOutboundBatchResults.ts → outboundBatchesResults.ts} +8 -2
  222. package/src/funcs/outboundBatchesUpload.ts +23 -20
  223. package/src/funcs/outboundCampaignsList.ts +3 -4
  224. package/src/funcs/{takeoutsCreateTakeoutApiV1TakeoutsCreatePost.ts → takeoutsCreate.ts} +2 -2
  225. package/src/funcs/{takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet.ts → takeoutsTakeoutsGetByJobId.ts} +4 -7
  226. package/src/lib/config.ts +2 -2
  227. package/src/models/components/bodyoutboundbatchdelete.ts +11 -2
  228. package/src/models/components/bodyoutboundbatchupload.ts +4 -4
  229. package/src/models/components/communicationrequest.ts +0 -23
  230. package/src/models/components/communicationrequestresult.ts +78 -30
  231. package/src/models/components/conversation.ts +18 -0
  232. package/src/models/components/incidentcreaterequest.ts +153 -0
  233. package/src/models/components/incidentorganizationresponse.ts +85 -0
  234. package/src/models/components/incidentproperties.ts +49 -0
  235. package/src/models/components/incidentresponse.ts +182 -0
  236. package/src/models/components/incidentupdaterequest.ts +182 -0
  237. package/src/models/components/index.ts +9 -1
  238. package/src/models/components/insighttooltestinput.ts +90 -0
  239. package/src/models/components/listresponsecommunicationbatch.ts +118 -0
  240. package/src/models/components/listresponseincidentresponse.ts +118 -0
  241. package/src/models/components/listresponseoutboundcampaign.ts +118 -0
  242. package/src/models/components/outboundcampaign.ts +14 -0
  243. package/src/models/components/outboundcampaigninput.ts +14 -0
  244. package/src/models/components/promptcreaterequest.ts +1 -1
  245. package/src/models/components/promptupdaterequest.ts +1 -1
  246. package/src/models/operations/incidentdelete.ts +79 -0
  247. package/src/models/operations/incidentgetbyid.ts +75 -0
  248. package/src/models/operations/incidentlist.ts +151 -0
  249. package/src/models/operations/index.ts +4 -1
  250. package/src/models/operations/outboundbatchresults.ts +10 -0
  251. package/src/models/operations/outboundbatchupload.ts +8 -4
  252. package/src/models/operations/takeoutsgetbyjobid.ts +75 -0
  253. package/src/sdk/batches.ts +10 -10
  254. package/src/sdk/campaigns.ts +1 -1
  255. package/src/sdk/incidents.ts +116 -0
  256. package/src/sdk/insights.ts +1 -1
  257. package/src/sdk/sdk.ts +6 -0
  258. package/src/sdk/syllablesdktools.ts +20 -2
  259. package/src/sdk/takeouts.ts +7 -7
  260. package/src/sdk/workflows.ts +1 -1
  261. package/funcs/outboundBatchesOutboundBatchAdd.d.ts.map +0 -1
  262. package/funcs/outboundBatchesOutboundBatchAdd.js.map +0 -1
  263. package/funcs/outboundBatchesOutboundBatchRemove.d.ts.map +0 -1
  264. package/funcs/outboundBatchesOutboundBatchRemove.js.map +0 -1
  265. package/funcs/outboundBatchesOutboundBatchResults.d.ts.map +0 -1
  266. package/funcs/outboundBatchesOutboundBatchResults.js.map +0 -1
  267. package/funcs/takeoutsCreateTakeoutApiV1TakeoutsCreatePost.d.ts.map +0 -1
  268. package/funcs/takeoutsCreateTakeoutApiV1TakeoutsCreatePost.js.map +0 -1
  269. package/funcs/takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet.d.ts.map +0 -1
  270. package/funcs/takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet.js.map +0 -1
  271. package/models/components/requeststatus.d.ts +0 -46
  272. package/models/components/requeststatus.d.ts.map +0 -1
  273. package/models/components/requeststatus.js.map +0 -1
  274. package/models/operations/gettakeoutapiv1takeoutsgetjobidget.d.ts +0 -29
  275. package/models/operations/gettakeoutapiv1takeoutsgetjobidget.d.ts.map +0 -1
  276. package/models/operations/gettakeoutapiv1takeoutsgetjobidget.js.map +0 -1
  277. package/src/models/components/requeststatus.ts +0 -43
  278. package/src/models/operations/gettakeoutapiv1takeoutsgetjobidget.ts +0 -87
@@ -0,0 +1,118 @@
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
+ import {
11
+ IncidentResponse,
12
+ IncidentResponse$inboundSchema,
13
+ IncidentResponse$Outbound,
14
+ IncidentResponse$outboundSchema,
15
+ } from "./incidentresponse.js";
16
+
17
+ export type ListResponseIncidentResponse = {
18
+ /**
19
+ * List of items returned from the query
20
+ */
21
+ items: Array<IncidentResponse>;
22
+ /**
23
+ * The page number of the results (0-based)
24
+ */
25
+ page: number;
26
+ /**
27
+ * The number of items returned per page
28
+ */
29
+ pageSize: number;
30
+ /**
31
+ * The total number of pages of results given the indicated page size
32
+ */
33
+ totalPages?: number | null | undefined;
34
+ /**
35
+ * The total number of items returned from the query
36
+ */
37
+ totalCount?: number | null | undefined;
38
+ };
39
+
40
+ /** @internal */
41
+ export const ListResponseIncidentResponse$inboundSchema: z.ZodType<
42
+ ListResponseIncidentResponse,
43
+ z.ZodTypeDef,
44
+ unknown
45
+ > = z.object({
46
+ items: z.array(IncidentResponse$inboundSchema),
47
+ page: z.number().int(),
48
+ page_size: z.number().int(),
49
+ total_pages: z.nullable(z.number().int()).optional(),
50
+ total_count: z.nullable(z.number().int()).optional(),
51
+ }).transform((v) => {
52
+ return remap$(v, {
53
+ "page_size": "pageSize",
54
+ "total_pages": "totalPages",
55
+ "total_count": "totalCount",
56
+ });
57
+ });
58
+
59
+ /** @internal */
60
+ export type ListResponseIncidentResponse$Outbound = {
61
+ items: Array<IncidentResponse$Outbound>;
62
+ page: number;
63
+ page_size: number;
64
+ total_pages?: number | null | undefined;
65
+ total_count?: number | null | undefined;
66
+ };
67
+
68
+ /** @internal */
69
+ export const ListResponseIncidentResponse$outboundSchema: z.ZodType<
70
+ ListResponseIncidentResponse$Outbound,
71
+ z.ZodTypeDef,
72
+ ListResponseIncidentResponse
73
+ > = z.object({
74
+ items: z.array(IncidentResponse$outboundSchema),
75
+ page: z.number().int(),
76
+ pageSize: z.number().int(),
77
+ totalPages: z.nullable(z.number().int()).optional(),
78
+ totalCount: z.nullable(z.number().int()).optional(),
79
+ }).transform((v) => {
80
+ return remap$(v, {
81
+ pageSize: "page_size",
82
+ totalPages: "total_pages",
83
+ totalCount: "total_count",
84
+ });
85
+ });
86
+
87
+ /**
88
+ * @internal
89
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
90
+ */
91
+ export namespace ListResponseIncidentResponse$ {
92
+ /** @deprecated use `ListResponseIncidentResponse$inboundSchema` instead. */
93
+ export const inboundSchema = ListResponseIncidentResponse$inboundSchema;
94
+ /** @deprecated use `ListResponseIncidentResponse$outboundSchema` instead. */
95
+ export const outboundSchema = ListResponseIncidentResponse$outboundSchema;
96
+ /** @deprecated use `ListResponseIncidentResponse$Outbound` instead. */
97
+ export type Outbound = ListResponseIncidentResponse$Outbound;
98
+ }
99
+
100
+ export function listResponseIncidentResponseToJSON(
101
+ listResponseIncidentResponse: ListResponseIncidentResponse,
102
+ ): string {
103
+ return JSON.stringify(
104
+ ListResponseIncidentResponse$outboundSchema.parse(
105
+ listResponseIncidentResponse,
106
+ ),
107
+ );
108
+ }
109
+
110
+ export function listResponseIncidentResponseFromJSON(
111
+ jsonString: string,
112
+ ): SafeParseResult<ListResponseIncidentResponse, SDKValidationError> {
113
+ return safeParse(
114
+ jsonString,
115
+ (x) => ListResponseIncidentResponse$inboundSchema.parse(JSON.parse(x)),
116
+ `Failed to parse 'ListResponseIncidentResponse' from JSON`,
117
+ );
118
+ }
@@ -0,0 +1,118 @@
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
+ import {
11
+ OutboundCampaign,
12
+ OutboundCampaign$inboundSchema,
13
+ OutboundCampaign$Outbound,
14
+ OutboundCampaign$outboundSchema,
15
+ } from "./outboundcampaign.js";
16
+
17
+ export type ListResponseOutboundCampaign = {
18
+ /**
19
+ * List of items returned from the query
20
+ */
21
+ items: Array<OutboundCampaign>;
22
+ /**
23
+ * The page number of the results (0-based)
24
+ */
25
+ page: number;
26
+ /**
27
+ * The number of items returned per page
28
+ */
29
+ pageSize: number;
30
+ /**
31
+ * The total number of pages of results given the indicated page size
32
+ */
33
+ totalPages?: number | null | undefined;
34
+ /**
35
+ * The total number of items returned from the query
36
+ */
37
+ totalCount?: number | null | undefined;
38
+ };
39
+
40
+ /** @internal */
41
+ export const ListResponseOutboundCampaign$inboundSchema: z.ZodType<
42
+ ListResponseOutboundCampaign,
43
+ z.ZodTypeDef,
44
+ unknown
45
+ > = z.object({
46
+ items: z.array(OutboundCampaign$inboundSchema),
47
+ page: z.number().int(),
48
+ page_size: z.number().int(),
49
+ total_pages: z.nullable(z.number().int()).optional(),
50
+ total_count: z.nullable(z.number().int()).optional(),
51
+ }).transform((v) => {
52
+ return remap$(v, {
53
+ "page_size": "pageSize",
54
+ "total_pages": "totalPages",
55
+ "total_count": "totalCount",
56
+ });
57
+ });
58
+
59
+ /** @internal */
60
+ export type ListResponseOutboundCampaign$Outbound = {
61
+ items: Array<OutboundCampaign$Outbound>;
62
+ page: number;
63
+ page_size: number;
64
+ total_pages?: number | null | undefined;
65
+ total_count?: number | null | undefined;
66
+ };
67
+
68
+ /** @internal */
69
+ export const ListResponseOutboundCampaign$outboundSchema: z.ZodType<
70
+ ListResponseOutboundCampaign$Outbound,
71
+ z.ZodTypeDef,
72
+ ListResponseOutboundCampaign
73
+ > = z.object({
74
+ items: z.array(OutboundCampaign$outboundSchema),
75
+ page: z.number().int(),
76
+ pageSize: z.number().int(),
77
+ totalPages: z.nullable(z.number().int()).optional(),
78
+ totalCount: z.nullable(z.number().int()).optional(),
79
+ }).transform((v) => {
80
+ return remap$(v, {
81
+ pageSize: "page_size",
82
+ totalPages: "total_pages",
83
+ totalCount: "total_count",
84
+ });
85
+ });
86
+
87
+ /**
88
+ * @internal
89
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
90
+ */
91
+ export namespace ListResponseOutboundCampaign$ {
92
+ /** @deprecated use `ListResponseOutboundCampaign$inboundSchema` instead. */
93
+ export const inboundSchema = ListResponseOutboundCampaign$inboundSchema;
94
+ /** @deprecated use `ListResponseOutboundCampaign$outboundSchema` instead. */
95
+ export const outboundSchema = ListResponseOutboundCampaign$outboundSchema;
96
+ /** @deprecated use `ListResponseOutboundCampaign$Outbound` instead. */
97
+ export type Outbound = ListResponseOutboundCampaign$Outbound;
98
+ }
99
+
100
+ export function listResponseOutboundCampaignToJSON(
101
+ listResponseOutboundCampaign: ListResponseOutboundCampaign,
102
+ ): string {
103
+ return JSON.stringify(
104
+ ListResponseOutboundCampaign$outboundSchema.parse(
105
+ listResponseOutboundCampaign,
106
+ ),
107
+ );
108
+ }
109
+
110
+ export function listResponseOutboundCampaignFromJSON(
111
+ jsonString: string,
112
+ ): SafeParseResult<ListResponseOutboundCampaign, SDKValidationError> {
113
+ return safeParse(
114
+ jsonString,
115
+ (x) => ListResponseOutboundCampaign$inboundSchema.parse(JSON.parse(x)),
116
+ `Failed to parse 'ListResponseOutboundCampaign' from JSON`,
117
+ );
118
+ }
@@ -18,6 +18,14 @@ export type OutboundCampaign = {
18
18
  * Human readable name of campaign
19
19
  */
20
20
  campaignName: string;
21
+ /**
22
+ * Description of campaign
23
+ */
24
+ description?: string | null | undefined;
25
+ /**
26
+ * Label for campaign
27
+ */
28
+ label?: string | null | undefined;
21
29
  /**
22
30
  * Variables for campaign
23
31
  */
@@ -131,6 +139,8 @@ export const OutboundCampaign$inboundSchema: z.ZodType<
131
139
  unknown
132
140
  > = z.object({
133
141
  campaign_name: z.string(),
142
+ description: z.nullable(z.string()).optional(),
143
+ label: z.nullable(z.string()).optional(),
134
144
  campaign_variables: z.lazy(() => CampaignVariables$inboundSchema),
135
145
  daily_start_time: z.string(),
136
146
  daily_end_time: z.string(),
@@ -164,6 +174,8 @@ export const OutboundCampaign$inboundSchema: z.ZodType<
164
174
  /** @internal */
165
175
  export type OutboundCampaign$Outbound = {
166
176
  campaign_name: string;
177
+ description?: string | null | undefined;
178
+ label?: string | null | undefined;
167
179
  campaign_variables: CampaignVariables$Outbound;
168
180
  daily_start_time: string;
169
181
  daily_end_time: string;
@@ -187,6 +199,8 @@ export const OutboundCampaign$outboundSchema: z.ZodType<
187
199
  OutboundCampaign
188
200
  > = z.object({
189
201
  campaignName: z.string(),
202
+ description: z.nullable(z.string()).optional(),
203
+ label: z.nullable(z.string()).optional(),
190
204
  campaignVariables: z.lazy(() => CampaignVariables$outboundSchema),
191
205
  dailyStartTime: z.string(),
192
206
  dailyEndTime: z.string(),
@@ -18,6 +18,14 @@ export type OutboundCampaignInput = {
18
18
  * Human readable name of campaign
19
19
  */
20
20
  campaignName: string;
21
+ /**
22
+ * Description of campaign
23
+ */
24
+ description?: string | null | undefined;
25
+ /**
26
+ * Label for campaign
27
+ */
28
+ label?: string | null | undefined;
21
29
  /**
22
30
  * Variables for campaign
23
31
  */
@@ -121,6 +129,8 @@ export const OutboundCampaignInput$inboundSchema: z.ZodType<
121
129
  unknown
122
130
  > = z.object({
123
131
  campaign_name: z.string(),
132
+ description: z.nullable(z.string()).optional(),
133
+ label: z.nullable(z.string()).optional(),
124
134
  campaign_variables: z.lazy(() =>
125
135
  OutboundCampaignInputCampaignVariables$inboundSchema
126
136
  ),
@@ -149,6 +159,8 @@ export const OutboundCampaignInput$inboundSchema: z.ZodType<
149
159
  /** @internal */
150
160
  export type OutboundCampaignInput$Outbound = {
151
161
  campaign_name: string;
162
+ description?: string | null | undefined;
163
+ label?: string | null | undefined;
152
164
  campaign_variables: OutboundCampaignInputCampaignVariables$Outbound;
153
165
  daily_start_time: string;
154
166
  daily_end_time: string;
@@ -168,6 +180,8 @@ export const OutboundCampaignInput$outboundSchema: z.ZodType<
168
180
  OutboundCampaignInput
169
181
  > = z.object({
170
182
  campaignName: z.string(),
183
+ description: z.nullable(z.string()).optional(),
184
+ label: z.nullable(z.string()).optional(),
171
185
  campaignVariables: z.lazy(() =>
172
186
  OutboundCampaignInputCampaignVariables$outboundSchema
173
187
  ),
@@ -43,7 +43,7 @@ export type PromptCreateRequest = {
43
43
  */
44
44
  llmConfig: PromptLlmConfig;
45
45
  /**
46
- * Whether to include the default tools (`hangup`, `summary`) 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.
46
+ * Whether to include the default tools (`summary`, `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.
47
47
  */
48
48
  includeDefaultTools?: boolean | undefined;
49
49
  };
@@ -51,7 +51,7 @@ export type PromptUpdateRequest = {
51
51
  */
52
52
  editComments?: string | null | undefined;
53
53
  /**
54
- * Whether to include the default tools (`hangup`, `summary`) 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.
54
+ * Whether to include the default tools (`summary`, `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.
55
55
  */
56
56
  includeDefaultTools?: boolean | undefined;
57
57
  };
@@ -0,0 +1,79 @@
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 IncidentDeleteRequest = {
12
+ incidentId: number;
13
+ reason: string;
14
+ };
15
+
16
+ /** @internal */
17
+ export const IncidentDeleteRequest$inboundSchema: z.ZodType<
18
+ IncidentDeleteRequest,
19
+ z.ZodTypeDef,
20
+ unknown
21
+ > = z.object({
22
+ incident_id: z.number().int(),
23
+ reason: z.string(),
24
+ }).transform((v) => {
25
+ return remap$(v, {
26
+ "incident_id": "incidentId",
27
+ });
28
+ });
29
+
30
+ /** @internal */
31
+ export type IncidentDeleteRequest$Outbound = {
32
+ incident_id: number;
33
+ reason: string;
34
+ };
35
+
36
+ /** @internal */
37
+ export const IncidentDeleteRequest$outboundSchema: z.ZodType<
38
+ IncidentDeleteRequest$Outbound,
39
+ z.ZodTypeDef,
40
+ IncidentDeleteRequest
41
+ > = z.object({
42
+ incidentId: z.number().int(),
43
+ reason: z.string(),
44
+ }).transform((v) => {
45
+ return remap$(v, {
46
+ incidentId: "incident_id",
47
+ });
48
+ });
49
+
50
+ /**
51
+ * @internal
52
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
53
+ */
54
+ export namespace IncidentDeleteRequest$ {
55
+ /** @deprecated use `IncidentDeleteRequest$inboundSchema` instead. */
56
+ export const inboundSchema = IncidentDeleteRequest$inboundSchema;
57
+ /** @deprecated use `IncidentDeleteRequest$outboundSchema` instead. */
58
+ export const outboundSchema = IncidentDeleteRequest$outboundSchema;
59
+ /** @deprecated use `IncidentDeleteRequest$Outbound` instead. */
60
+ export type Outbound = IncidentDeleteRequest$Outbound;
61
+ }
62
+
63
+ export function incidentDeleteRequestToJSON(
64
+ incidentDeleteRequest: IncidentDeleteRequest,
65
+ ): string {
66
+ return JSON.stringify(
67
+ IncidentDeleteRequest$outboundSchema.parse(incidentDeleteRequest),
68
+ );
69
+ }
70
+
71
+ export function incidentDeleteRequestFromJSON(
72
+ jsonString: string,
73
+ ): SafeParseResult<IncidentDeleteRequest, SDKValidationError> {
74
+ return safeParse(
75
+ jsonString,
76
+ (x) => IncidentDeleteRequest$inboundSchema.parse(JSON.parse(x)),
77
+ `Failed to parse 'IncidentDeleteRequest' from JSON`,
78
+ );
79
+ }
@@ -0,0 +1,75 @@
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 IncidentGetByIdRequest = {
12
+ incidentId: number;
13
+ };
14
+
15
+ /** @internal */
16
+ export const IncidentGetByIdRequest$inboundSchema: z.ZodType<
17
+ IncidentGetByIdRequest,
18
+ z.ZodTypeDef,
19
+ unknown
20
+ > = z.object({
21
+ incident_id: z.number().int(),
22
+ }).transform((v) => {
23
+ return remap$(v, {
24
+ "incident_id": "incidentId",
25
+ });
26
+ });
27
+
28
+ /** @internal */
29
+ export type IncidentGetByIdRequest$Outbound = {
30
+ incident_id: number;
31
+ };
32
+
33
+ /** @internal */
34
+ export const IncidentGetByIdRequest$outboundSchema: z.ZodType<
35
+ IncidentGetByIdRequest$Outbound,
36
+ z.ZodTypeDef,
37
+ IncidentGetByIdRequest
38
+ > = z.object({
39
+ incidentId: z.number().int(),
40
+ }).transform((v) => {
41
+ return remap$(v, {
42
+ incidentId: "incident_id",
43
+ });
44
+ });
45
+
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
+ export namespace IncidentGetByIdRequest$ {
51
+ /** @deprecated use `IncidentGetByIdRequest$inboundSchema` instead. */
52
+ export const inboundSchema = IncidentGetByIdRequest$inboundSchema;
53
+ /** @deprecated use `IncidentGetByIdRequest$outboundSchema` instead. */
54
+ export const outboundSchema = IncidentGetByIdRequest$outboundSchema;
55
+ /** @deprecated use `IncidentGetByIdRequest$Outbound` instead. */
56
+ export type Outbound = IncidentGetByIdRequest$Outbound;
57
+ }
58
+
59
+ export function incidentGetByIdRequestToJSON(
60
+ incidentGetByIdRequest: IncidentGetByIdRequest,
61
+ ): string {
62
+ return JSON.stringify(
63
+ IncidentGetByIdRequest$outboundSchema.parse(incidentGetByIdRequest),
64
+ );
65
+ }
66
+
67
+ export function incidentGetByIdRequestFromJSON(
68
+ jsonString: string,
69
+ ): SafeParseResult<IncidentGetByIdRequest, SDKValidationError> {
70
+ return safeParse(
71
+ jsonString,
72
+ (x) => IncidentGetByIdRequest$inboundSchema.parse(JSON.parse(x)),
73
+ `Failed to parse 'IncidentGetByIdRequest' from JSON`,
74
+ );
75
+ }
@@ -0,0 +1,151 @@
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 * as components from "../components/index.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type IncidentListRequest = {
13
+ /**
14
+ * The page number from which to start (0-based)
15
+ */
16
+ page?: number | null | undefined;
17
+ /**
18
+ * The maximum number of items to return
19
+ */
20
+ limit?: number | undefined;
21
+ /**
22
+ * String names of fields to search. Correspond by index to search field values
23
+ */
24
+ searchFields?: Array<components.IncidentProperties> | undefined;
25
+ /**
26
+ * Values of fields to search. Correspond by index to search fields. Unless field name contains "list", an individual search field value cannot be a list
27
+ */
28
+ searchFieldValues?: Array<string> | undefined;
29
+ /**
30
+ * The field whose value should be used to order the results
31
+ */
32
+ orderBy?: components.IncidentProperties | null | undefined;
33
+ /**
34
+ * The direction in which to order the results
35
+ */
36
+ orderByDirection?: components.OrderByDirection | null | undefined;
37
+ /**
38
+ * The fields to include in the response
39
+ */
40
+ fields?: Array<components.IncidentProperties> | null | undefined;
41
+ /**
42
+ * The start datetime for filtering results
43
+ */
44
+ startDatetime?: string | null | undefined;
45
+ /**
46
+ * The end datetime for filtering results
47
+ */
48
+ endDatetime?: string | null | undefined;
49
+ };
50
+
51
+ /** @internal */
52
+ export const IncidentListRequest$inboundSchema: z.ZodType<
53
+ IncidentListRequest,
54
+ z.ZodTypeDef,
55
+ unknown
56
+ > = z.object({
57
+ page: z.nullable(z.number().int()).optional(),
58
+ limit: z.number().int().default(25),
59
+ search_fields: z.array(components.IncidentProperties$inboundSchema)
60
+ .optional(),
61
+ search_field_values: z.array(z.string()).optional(),
62
+ order_by: z.nullable(components.IncidentProperties$inboundSchema).optional(),
63
+ order_by_direction: z.nullable(components.OrderByDirection$inboundSchema)
64
+ .optional(),
65
+ fields: z.nullable(z.array(components.IncidentProperties$inboundSchema))
66
+ .optional(),
67
+ start_datetime: z.nullable(z.string()).optional(),
68
+ end_datetime: z.nullable(z.string()).optional(),
69
+ }).transform((v) => {
70
+ return remap$(v, {
71
+ "search_fields": "searchFields",
72
+ "search_field_values": "searchFieldValues",
73
+ "order_by": "orderBy",
74
+ "order_by_direction": "orderByDirection",
75
+ "start_datetime": "startDatetime",
76
+ "end_datetime": "endDatetime",
77
+ });
78
+ });
79
+
80
+ /** @internal */
81
+ export type IncidentListRequest$Outbound = {
82
+ page?: number | null | undefined;
83
+ limit: number;
84
+ search_fields?: Array<string> | undefined;
85
+ search_field_values?: Array<string> | undefined;
86
+ order_by?: string | null | undefined;
87
+ order_by_direction?: string | null | undefined;
88
+ fields?: Array<string> | null | undefined;
89
+ start_datetime?: string | null | undefined;
90
+ end_datetime?: string | null | undefined;
91
+ };
92
+
93
+ /** @internal */
94
+ export const IncidentListRequest$outboundSchema: z.ZodType<
95
+ IncidentListRequest$Outbound,
96
+ z.ZodTypeDef,
97
+ IncidentListRequest
98
+ > = z.object({
99
+ page: z.nullable(z.number().int()).optional(),
100
+ limit: z.number().int().default(25),
101
+ searchFields: z.array(components.IncidentProperties$outboundSchema)
102
+ .optional(),
103
+ searchFieldValues: z.array(z.string()).optional(),
104
+ orderBy: z.nullable(components.IncidentProperties$outboundSchema).optional(),
105
+ orderByDirection: z.nullable(components.OrderByDirection$outboundSchema)
106
+ .optional(),
107
+ fields: z.nullable(z.array(components.IncidentProperties$outboundSchema))
108
+ .optional(),
109
+ startDatetime: z.nullable(z.string()).optional(),
110
+ endDatetime: z.nullable(z.string()).optional(),
111
+ }).transform((v) => {
112
+ return remap$(v, {
113
+ searchFields: "search_fields",
114
+ searchFieldValues: "search_field_values",
115
+ orderBy: "order_by",
116
+ orderByDirection: "order_by_direction",
117
+ startDatetime: "start_datetime",
118
+ endDatetime: "end_datetime",
119
+ });
120
+ });
121
+
122
+ /**
123
+ * @internal
124
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
125
+ */
126
+ export namespace IncidentListRequest$ {
127
+ /** @deprecated use `IncidentListRequest$inboundSchema` instead. */
128
+ export const inboundSchema = IncidentListRequest$inboundSchema;
129
+ /** @deprecated use `IncidentListRequest$outboundSchema` instead. */
130
+ export const outboundSchema = IncidentListRequest$outboundSchema;
131
+ /** @deprecated use `IncidentListRequest$Outbound` instead. */
132
+ export type Outbound = IncidentListRequest$Outbound;
133
+ }
134
+
135
+ export function incidentListRequestToJSON(
136
+ incidentListRequest: IncidentListRequest,
137
+ ): string {
138
+ return JSON.stringify(
139
+ IncidentListRequest$outboundSchema.parse(incidentListRequest),
140
+ );
141
+ }
142
+
143
+ export function incidentListRequestFromJSON(
144
+ jsonString: string,
145
+ ): SafeParseResult<IncidentListRequest, SDKValidationError> {
146
+ return safeParse(
147
+ jsonString,
148
+ (x) => IncidentListRequest$inboundSchema.parse(JSON.parse(x)),
149
+ `Failed to parse 'IncidentListRequest' from JSON`,
150
+ );
151
+ }
@@ -24,7 +24,9 @@ export * from "./generatesessionrecordingurls.js";
24
24
  export * from "./getsessiondatabysessionid.js";
25
25
  export * from "./getsessiondatabysid.js";
26
26
  export * from "./getsessiontoolcallresultbyid.js";
27
- export * from "./gettakeoutapiv1takeoutsgetjobidget.js";
27
+ export * from "./incidentdelete.js";
28
+ export * from "./incidentgetbyid.js";
29
+ export * from "./incidentlist.js";
28
30
  export * from "./insightslist.js";
29
31
  export * from "./insightstoolupdate.js";
30
32
  export * from "./insightsworkflowdelete.js";
@@ -63,6 +65,7 @@ export * from "./sessionlabelslist.js";
63
65
  export * from "./sessionrecordingstream.js";
64
66
  export * from "./sessionslist.js";
65
67
  export * from "./sessiontranscriptgetbyid.js";
68
+ export * from "./takeoutsgetbyjobid.js";
66
69
  export * from "./tooldelete.js";
67
70
  export * from "./toolgetbyname.js";
68
71
  export * from "./toollist.js";