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,182 @@
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
+ /**
12
+ * Response model for service incident operations.
13
+ */
14
+ export type IncidentResponse = {
15
+ /**
16
+ * Description of the service incident
17
+ */
18
+ description: string;
19
+ /**
20
+ * Start time of the incident
21
+ */
22
+ startDatetime: Date;
23
+ /**
24
+ * Resolution time of the incident
25
+ */
26
+ resolutionDatetime: Date;
27
+ /**
28
+ * Category of the impact
29
+ */
30
+ impactCategory: string;
31
+ /**
32
+ * Number of sessions impacted
33
+ */
34
+ sessionsImpacted: number;
35
+ /**
36
+ * Detailed markdown description of the incident
37
+ */
38
+ markdown: string;
39
+ /**
40
+ * The ID of the organization
41
+ */
42
+ organizationId?: number | null | undefined;
43
+ /**
44
+ * The ID of the sub-organization
45
+ */
46
+ subOrganizationId?: number | null | undefined;
47
+ /**
48
+ * The name of the sub-organization
49
+ */
50
+ subOrganization?: string | null | undefined;
51
+ /**
52
+ * The ID of the incident to update
53
+ */
54
+ 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
+ };
64
+
65
+ /** @internal */
66
+ export const IncidentResponse$inboundSchema: z.ZodType<
67
+ IncidentResponse,
68
+ z.ZodTypeDef,
69
+ unknown
70
+ > = z.object({
71
+ description: z.string(),
72
+ start_datetime: z.string().datetime({ offset: true }).transform(v =>
73
+ new Date(v)
74
+ ),
75
+ resolution_datetime: z.string().datetime({ offset: true }).transform(v =>
76
+ new Date(v)
77
+ ),
78
+ impact_category: z.string(),
79
+ sessions_impacted: z.number().int(),
80
+ markdown: z.string(),
81
+ organization_id: z.nullable(z.number().int()).optional(),
82
+ sub_organization_id: z.nullable(z.number().int()).optional(),
83
+ sub_organization: z.nullable(z.string()).optional(),
84
+ 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
+ }).transform((v) => {
92
+ return remap$(v, {
93
+ "start_datetime": "startDatetime",
94
+ "resolution_datetime": "resolutionDatetime",
95
+ "impact_category": "impactCategory",
96
+ "sessions_impacted": "sessionsImpacted",
97
+ "organization_id": "organizationId",
98
+ "sub_organization_id": "subOrganizationId",
99
+ "sub_organization": "subOrganization",
100
+ "created_at": "createdAt",
101
+ "updated_at": "updatedAt",
102
+ });
103
+ });
104
+
105
+ /** @internal */
106
+ export type IncidentResponse$Outbound = {
107
+ description: string;
108
+ start_datetime: string;
109
+ resolution_datetime: string;
110
+ impact_category: string;
111
+ sessions_impacted: number;
112
+ markdown: string;
113
+ organization_id?: number | null | undefined;
114
+ sub_organization_id?: number | null | undefined;
115
+ sub_organization?: string | null | undefined;
116
+ id: number;
117
+ created_at?: string | null | undefined;
118
+ updated_at?: string | null | undefined;
119
+ };
120
+
121
+ /** @internal */
122
+ export const IncidentResponse$outboundSchema: z.ZodType<
123
+ IncidentResponse$Outbound,
124
+ z.ZodTypeDef,
125
+ IncidentResponse
126
+ > = z.object({
127
+ description: z.string(),
128
+ startDatetime: z.date().transform(v => v.toISOString()),
129
+ resolutionDatetime: z.date().transform(v => v.toISOString()),
130
+ impactCategory: z.string(),
131
+ sessionsImpacted: z.number().int(),
132
+ markdown: z.string(),
133
+ organizationId: z.nullable(z.number().int()).optional(),
134
+ subOrganizationId: z.nullable(z.number().int()).optional(),
135
+ subOrganization: z.nullable(z.string()).optional(),
136
+ 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
+ }).transform((v) => {
140
+ return remap$(v, {
141
+ startDatetime: "start_datetime",
142
+ resolutionDatetime: "resolution_datetime",
143
+ impactCategory: "impact_category",
144
+ sessionsImpacted: "sessions_impacted",
145
+ organizationId: "organization_id",
146
+ subOrganizationId: "sub_organization_id",
147
+ subOrganization: "sub_organization",
148
+ createdAt: "created_at",
149
+ updatedAt: "updated_at",
150
+ });
151
+ });
152
+
153
+ /**
154
+ * @internal
155
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
156
+ */
157
+ export namespace IncidentResponse$ {
158
+ /** @deprecated use `IncidentResponse$inboundSchema` instead. */
159
+ export const inboundSchema = IncidentResponse$inboundSchema;
160
+ /** @deprecated use `IncidentResponse$outboundSchema` instead. */
161
+ export const outboundSchema = IncidentResponse$outboundSchema;
162
+ /** @deprecated use `IncidentResponse$Outbound` instead. */
163
+ export type Outbound = IncidentResponse$Outbound;
164
+ }
165
+
166
+ export function incidentResponseToJSON(
167
+ incidentResponse: IncidentResponse,
168
+ ): string {
169
+ return JSON.stringify(
170
+ IncidentResponse$outboundSchema.parse(incidentResponse),
171
+ );
172
+ }
173
+
174
+ export function incidentResponseFromJSON(
175
+ jsonString: string,
176
+ ): SafeParseResult<IncidentResponse, SDKValidationError> {
177
+ return safeParse(
178
+ jsonString,
179
+ (x) => IncidentResponse$inboundSchema.parse(JSON.parse(x)),
180
+ `Failed to parse 'IncidentResponse' from JSON`,
181
+ );
182
+ }
@@ -0,0 +1,182 @@
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
+ /**
12
+ * Request model to update an existing service incident.
13
+ */
14
+ export type IncidentUpdateRequest = {
15
+ /**
16
+ * Description of the service incident
17
+ */
18
+ description: string;
19
+ /**
20
+ * Start time of the incident
21
+ */
22
+ startDatetime: Date;
23
+ /**
24
+ * Resolution time of the incident
25
+ */
26
+ resolutionDatetime: Date;
27
+ /**
28
+ * Category of the impact
29
+ */
30
+ impactCategory: string;
31
+ /**
32
+ * Number of sessions impacted
33
+ */
34
+ sessionsImpacted: number;
35
+ /**
36
+ * Detailed markdown description of the incident
37
+ */
38
+ markdown: string;
39
+ /**
40
+ * The ID of the organization
41
+ */
42
+ organizationId?: number | null | undefined;
43
+ /**
44
+ * The ID of the sub-organization
45
+ */
46
+ subOrganizationId?: number | null | undefined;
47
+ /**
48
+ * The name of the sub-organization
49
+ */
50
+ subOrganization?: string | null | undefined;
51
+ /**
52
+ * The ID of the incident to update
53
+ */
54
+ 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
+ };
64
+
65
+ /** @internal */
66
+ export const IncidentUpdateRequest$inboundSchema: z.ZodType<
67
+ IncidentUpdateRequest,
68
+ z.ZodTypeDef,
69
+ unknown
70
+ > = z.object({
71
+ description: z.string(),
72
+ start_datetime: z.string().datetime({ offset: true }).transform(v =>
73
+ new Date(v)
74
+ ),
75
+ resolution_datetime: z.string().datetime({ offset: true }).transform(v =>
76
+ new Date(v)
77
+ ),
78
+ impact_category: z.string(),
79
+ sessions_impacted: z.number().int(),
80
+ markdown: z.string(),
81
+ organization_id: z.nullable(z.number().int()).optional(),
82
+ sub_organization_id: z.nullable(z.number().int()).optional(),
83
+ sub_organization: z.nullable(z.string()).optional(),
84
+ 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
+ }).transform((v) => {
92
+ return remap$(v, {
93
+ "start_datetime": "startDatetime",
94
+ "resolution_datetime": "resolutionDatetime",
95
+ "impact_category": "impactCategory",
96
+ "sessions_impacted": "sessionsImpacted",
97
+ "organization_id": "organizationId",
98
+ "sub_organization_id": "subOrganizationId",
99
+ "sub_organization": "subOrganization",
100
+ "created_at": "createdAt",
101
+ "updated_at": "updatedAt",
102
+ });
103
+ });
104
+
105
+ /** @internal */
106
+ export type IncidentUpdateRequest$Outbound = {
107
+ description: string;
108
+ start_datetime: string;
109
+ resolution_datetime: string;
110
+ impact_category: string;
111
+ sessions_impacted: number;
112
+ markdown: string;
113
+ organization_id?: number | null | undefined;
114
+ sub_organization_id?: number | null | undefined;
115
+ sub_organization?: string | null | undefined;
116
+ id: number;
117
+ created_at?: string | null | undefined;
118
+ updated_at?: string | null | undefined;
119
+ };
120
+
121
+ /** @internal */
122
+ export const IncidentUpdateRequest$outboundSchema: z.ZodType<
123
+ IncidentUpdateRequest$Outbound,
124
+ z.ZodTypeDef,
125
+ IncidentUpdateRequest
126
+ > = z.object({
127
+ description: z.string(),
128
+ startDatetime: z.date().transform(v => v.toISOString()),
129
+ resolutionDatetime: z.date().transform(v => v.toISOString()),
130
+ impactCategory: z.string(),
131
+ sessionsImpacted: z.number().int(),
132
+ markdown: z.string(),
133
+ organizationId: z.nullable(z.number().int()).optional(),
134
+ subOrganizationId: z.nullable(z.number().int()).optional(),
135
+ subOrganization: z.nullable(z.string()).optional(),
136
+ 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
+ }).transform((v) => {
140
+ return remap$(v, {
141
+ startDatetime: "start_datetime",
142
+ resolutionDatetime: "resolution_datetime",
143
+ impactCategory: "impact_category",
144
+ sessionsImpacted: "sessions_impacted",
145
+ organizationId: "organization_id",
146
+ subOrganizationId: "sub_organization_id",
147
+ subOrganization: "sub_organization",
148
+ createdAt: "created_at",
149
+ updatedAt: "updated_at",
150
+ });
151
+ });
152
+
153
+ /**
154
+ * @internal
155
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
156
+ */
157
+ export namespace IncidentUpdateRequest$ {
158
+ /** @deprecated use `IncidentUpdateRequest$inboundSchema` instead. */
159
+ export const inboundSchema = IncidentUpdateRequest$inboundSchema;
160
+ /** @deprecated use `IncidentUpdateRequest$outboundSchema` instead. */
161
+ export const outboundSchema = IncidentUpdateRequest$outboundSchema;
162
+ /** @deprecated use `IncidentUpdateRequest$Outbound` instead. */
163
+ export type Outbound = IncidentUpdateRequest$Outbound;
164
+ }
165
+
166
+ export function incidentUpdateRequestToJSON(
167
+ incidentUpdateRequest: IncidentUpdateRequest,
168
+ ): string {
169
+ return JSON.stringify(
170
+ IncidentUpdateRequest$outboundSchema.parse(incidentUpdateRequest),
171
+ );
172
+ }
173
+
174
+ export function incidentUpdateRequestFromJSON(
175
+ jsonString: string,
176
+ ): SafeParseResult<IncidentUpdateRequest, SDKValidationError> {
177
+ return safeParse(
178
+ jsonString,
179
+ (x) => IncidentUpdateRequest$inboundSchema.parse(JSON.parse(x)),
180
+ `Failed to parse 'IncidentUpdateRequest' from JSON`,
181
+ );
182
+ }
@@ -58,6 +58,11 @@ export * from "./dialogrole.js";
58
58
  export * from "./dialogtoolcall.js";
59
59
  export * from "./event.js";
60
60
  export * from "./eventproperties.js";
61
+ export * from "./incidentcreaterequest.js";
62
+ export * from "./incidentorganizationresponse.js";
63
+ export * from "./incidentproperties.js";
64
+ export * from "./incidentresponse.js";
65
+ export * from "./incidentupdaterequest.js";
61
66
  export * from "./insightsoutput.js";
62
67
  export * from "./insightsproperties.js";
63
68
  export * from "./insightsworkflowqueuesession.js";
@@ -65,6 +70,7 @@ export * from "./insighttooldefinition.js";
65
70
  export * from "./insighttoolinput.js";
66
71
  export * from "./insighttooloutput.js";
67
72
  export * from "./insighttoolproperties.js";
73
+ export * from "./insighttooltestinput.js";
68
74
  export * from "./insightworkflowinput.js";
69
75
  export * from "./insightworkflowoutput.js";
70
76
  export * from "./insightworkflowproperties.js";
@@ -80,15 +86,18 @@ export * from "./listresponseagentresponse.js";
80
86
  export * from "./listresponseavailabletarget.js";
81
87
  export * from "./listresponsechannel.js";
82
88
  export * from "./listresponsechanneltargetresponse.js";
89
+ export * from "./listresponsecommunicationbatch.js";
83
90
  export * from "./listresponseconversation.js";
84
91
  export * from "./listresponsecustommessageresponse.js";
85
92
  export * from "./listresponsedashboardresponse.js";
86
93
  export * from "./listresponsedatasourcemetadataresponse.js";
87
94
  export * from "./listresponseevent.js";
95
+ export * from "./listresponseincidentresponse.js";
88
96
  export * from "./listresponseinsightsoutput.js";
89
97
  export * from "./listresponseinsighttooloutput.js";
90
98
  export * from "./listresponseinsightworkflowoutput.js";
91
99
  export * from "./listresponselanguagegroupresponse.js";
100
+ export * from "./listresponseoutboundcampaign.js";
92
101
  export * from "./listresponsepromptresponse.js";
93
102
  export * from "./listresponseserviceresponse.js";
94
103
  export * from "./listresponsesession.js";
@@ -104,7 +113,6 @@ export * from "./promptllmprovider.js";
104
113
  export * from "./promptproperties.js";
105
114
  export * from "./promptresponse.js";
106
115
  export * from "./promptupdaterequest.js";
107
- export * from "./requeststatus.js";
108
116
  export * from "./security.js";
109
117
  export * from "./servicecreaterequest.js";
110
118
  export * from "./serviceproperties.js";
@@ -0,0 +1,90 @@
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
+ /**
12
+ * Request model to test an insight tool.
13
+ */
14
+ export type InsightToolTestInput = {
15
+ /**
16
+ * Human readable name of insight tool
17
+ */
18
+ toolName: string;
19
+ /**
20
+ * The session ID of the session to run the tool against
21
+ */
22
+ sessionId: number;
23
+ };
24
+
25
+ /** @internal */
26
+ export const InsightToolTestInput$inboundSchema: z.ZodType<
27
+ InsightToolTestInput,
28
+ z.ZodTypeDef,
29
+ unknown
30
+ > = z.object({
31
+ tool_name: z.string(),
32
+ session_id: z.number().int(),
33
+ }).transform((v) => {
34
+ return remap$(v, {
35
+ "tool_name": "toolName",
36
+ "session_id": "sessionId",
37
+ });
38
+ });
39
+
40
+ /** @internal */
41
+ export type InsightToolTestInput$Outbound = {
42
+ tool_name: string;
43
+ session_id: number;
44
+ };
45
+
46
+ /** @internal */
47
+ export const InsightToolTestInput$outboundSchema: z.ZodType<
48
+ InsightToolTestInput$Outbound,
49
+ z.ZodTypeDef,
50
+ InsightToolTestInput
51
+ > = z.object({
52
+ toolName: z.string(),
53
+ sessionId: z.number().int(),
54
+ }).transform((v) => {
55
+ return remap$(v, {
56
+ toolName: "tool_name",
57
+ sessionId: "session_id",
58
+ });
59
+ });
60
+
61
+ /**
62
+ * @internal
63
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
64
+ */
65
+ export namespace InsightToolTestInput$ {
66
+ /** @deprecated use `InsightToolTestInput$inboundSchema` instead. */
67
+ export const inboundSchema = InsightToolTestInput$inboundSchema;
68
+ /** @deprecated use `InsightToolTestInput$outboundSchema` instead. */
69
+ export const outboundSchema = InsightToolTestInput$outboundSchema;
70
+ /** @deprecated use `InsightToolTestInput$Outbound` instead. */
71
+ export type Outbound = InsightToolTestInput$Outbound;
72
+ }
73
+
74
+ export function insightToolTestInputToJSON(
75
+ insightToolTestInput: InsightToolTestInput,
76
+ ): string {
77
+ return JSON.stringify(
78
+ InsightToolTestInput$outboundSchema.parse(insightToolTestInput),
79
+ );
80
+ }
81
+
82
+ export function insightToolTestInputFromJSON(
83
+ jsonString: string,
84
+ ): SafeParseResult<InsightToolTestInput, SDKValidationError> {
85
+ return safeParse(
86
+ jsonString,
87
+ (x) => InsightToolTestInput$inboundSchema.parse(JSON.parse(x)),
88
+ `Failed to parse 'InsightToolTestInput' from JSON`,
89
+ );
90
+ }
@@ -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
+ CommunicationBatch,
12
+ CommunicationBatch$inboundSchema,
13
+ CommunicationBatch$Outbound,
14
+ CommunicationBatch$outboundSchema,
15
+ } from "./communicationbatch.js";
16
+
17
+ export type ListResponseCommunicationBatch = {
18
+ /**
19
+ * List of items returned from the query
20
+ */
21
+ items: Array<CommunicationBatch>;
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 ListResponseCommunicationBatch$inboundSchema: z.ZodType<
42
+ ListResponseCommunicationBatch,
43
+ z.ZodTypeDef,
44
+ unknown
45
+ > = z.object({
46
+ items: z.array(CommunicationBatch$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 ListResponseCommunicationBatch$Outbound = {
61
+ items: Array<CommunicationBatch$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 ListResponseCommunicationBatch$outboundSchema: z.ZodType<
70
+ ListResponseCommunicationBatch$Outbound,
71
+ z.ZodTypeDef,
72
+ ListResponseCommunicationBatch
73
+ > = z.object({
74
+ items: z.array(CommunicationBatch$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 ListResponseCommunicationBatch$ {
92
+ /** @deprecated use `ListResponseCommunicationBatch$inboundSchema` instead. */
93
+ export const inboundSchema = ListResponseCommunicationBatch$inboundSchema;
94
+ /** @deprecated use `ListResponseCommunicationBatch$outboundSchema` instead. */
95
+ export const outboundSchema = ListResponseCommunicationBatch$outboundSchema;
96
+ /** @deprecated use `ListResponseCommunicationBatch$Outbound` instead. */
97
+ export type Outbound = ListResponseCommunicationBatch$Outbound;
98
+ }
99
+
100
+ export function listResponseCommunicationBatchToJSON(
101
+ listResponseCommunicationBatch: ListResponseCommunicationBatch,
102
+ ): string {
103
+ return JSON.stringify(
104
+ ListResponseCommunicationBatch$outboundSchema.parse(
105
+ listResponseCommunicationBatch,
106
+ ),
107
+ );
108
+ }
109
+
110
+ export function listResponseCommunicationBatchFromJSON(
111
+ jsonString: string,
112
+ ): SafeParseResult<ListResponseCommunicationBatch, SDKValidationError> {
113
+ return safeParse(
114
+ jsonString,
115
+ (x) => ListResponseCommunicationBatch$inboundSchema.parse(JSON.parse(x)),
116
+ `Failed to parse 'ListResponseCommunicationBatch' from JSON`,
117
+ );
118
+ }