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
@@ -11,6 +11,7 @@ Operations related to insights tools. An insight is a tool that processes
11
11
  * [create](#create) - Create Insight Tool
12
12
  * [getById](#getbyid) - Get Insight Tool By Id
13
13
  * [update](#update) - Update Insights Tool
14
+ * [insightsToolTest](#insightstooltest) - Test Insights Tool
14
15
  * [insightToolGetDefinitions](#insighttoolgetdefinitions) - Get Insight Tool Definitions
15
16
 
16
17
  ## list
@@ -108,7 +109,7 @@ run();
108
109
 
109
110
  ## create
110
111
 
111
- Create a new tool in the insights
112
+ Create a new insight tool.
112
113
 
113
114
  ### Example Usage
114
115
 
@@ -270,7 +271,7 @@ run();
270
271
 
271
272
  ## update
272
273
 
273
- Update a InsightTool.
274
+ Update an Insights tool.
274
275
 
275
276
  ### Example Usage
276
277
 
@@ -359,6 +360,85 @@ run();
359
360
  | errors.HTTPValidationError | 422 | application/json |
360
361
  | errors.SDKError | 4XX, 5XX | \*/\* |
361
362
 
363
+ ## insightsToolTest
364
+
365
+ Manually run the given insight tool against a session and return the response.
366
+
367
+ ### Example Usage
368
+
369
+ ```typescript
370
+ import { SyllableSDK } from "syllable-sdk";
371
+
372
+ const syllableSDK = new SyllableSDK({
373
+ apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
374
+ });
375
+
376
+ async function run() {
377
+ const result = await syllableSDK.insights.tools.insightsToolTest({
378
+ toolName: "summary-tool",
379
+ sessionId: 283467,
380
+ });
381
+
382
+ // Handle the result
383
+ console.log(result);
384
+ }
385
+
386
+ run();
387
+ ```
388
+
389
+ ### Standalone function
390
+
391
+ The standalone function version of this method:
392
+
393
+ ```typescript
394
+ import { SyllableSDKCore } from "syllable-sdk/core.js";
395
+ import { insightsToolsInsightsToolTest } from "syllable-sdk/funcs/insightsToolsInsightsToolTest.js";
396
+
397
+ // Use `SyllableSDKCore` for best tree-shaking performance.
398
+ // You can create one instance of it to use across an application.
399
+ const syllableSDK = new SyllableSDKCore({
400
+ apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
401
+ });
402
+
403
+ async function run() {
404
+ const res = await insightsToolsInsightsToolTest(syllableSDK, {
405
+ toolName: "summary-tool",
406
+ sessionId: 283467,
407
+ });
408
+
409
+ if (!res.ok) {
410
+ throw res.error;
411
+ }
412
+
413
+ const { value: result } = res;
414
+
415
+ // Handle the result
416
+ console.log(result);
417
+ }
418
+
419
+ run();
420
+ ```
421
+
422
+ ### Parameters
423
+
424
+ | Parameter | Type | Required | Description |
425
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
426
+ | `request` | [components.InsightToolTestInput](../../models/components/insighttooltestinput.md) | :heavy_check_mark: | The request object to use for the request. |
427
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
428
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
429
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
430
+
431
+ ### Response
432
+
433
+ **Promise\<[any](../../models/.md)\>**
434
+
435
+ ### Errors
436
+
437
+ | Error Type | Status Code | Content Type |
438
+ | -------------------------- | -------------------------- | -------------------------- |
439
+ | errors.HTTPValidationError | 422 | application/json |
440
+ | errors.SDKError | 4XX, 5XX | \*/\* |
441
+
362
442
  ## insightToolGetDefinitions
363
443
 
364
444
  Get a InsightTool by Name.
@@ -5,10 +5,10 @@
5
5
 
6
6
  ### Available Operations
7
7
 
8
- * [createTakeoutApiV1TakeoutsCreatePost](#createtakeoutapiv1takeoutscreatepost) - Create Takeout
9
- * [getTakeoutApiV1TakeoutsGetJobIdGet](#gettakeoutapiv1takeoutsgetjobidget) - Get Takeout
8
+ * [create](#create) - Create Takeout
9
+ * [takeoutsGetByJobId](#takeoutsgetbyjobid) - Get Takeout
10
10
 
11
- ## createTakeoutApiV1TakeoutsCreatePost
11
+ ## create
12
12
 
13
13
  Create Takeout
14
14
 
@@ -22,7 +22,7 @@ const syllableSDK = new SyllableSDK({
22
22
  });
23
23
 
24
24
  async function run() {
25
- const result = await syllableSDK.takeouts.createTakeoutApiV1TakeoutsCreatePost();
25
+ const result = await syllableSDK.takeouts.create();
26
26
 
27
27
  // Handle the result
28
28
  console.log(result);
@@ -37,7 +37,7 @@ The standalone function version of this method:
37
37
 
38
38
  ```typescript
39
39
  import { SyllableSDKCore } from "syllable-sdk/core.js";
40
- import { takeoutsCreateTakeoutApiV1TakeoutsCreatePost } from "syllable-sdk/funcs/takeoutsCreateTakeoutApiV1TakeoutsCreatePost.js";
40
+ import { takeoutsCreate } from "syllable-sdk/funcs/takeoutsCreate.js";
41
41
 
42
42
  // Use `SyllableSDKCore` for best tree-shaking performance.
43
43
  // You can create one instance of it to use across an application.
@@ -46,7 +46,7 @@ const syllableSDK = new SyllableSDKCore({
46
46
  });
47
47
 
48
48
  async function run() {
49
- const res = await takeoutsCreateTakeoutApiV1TakeoutsCreatePost(syllableSDK);
49
+ const res = await takeoutsCreate(syllableSDK);
50
50
 
51
51
  if (!res.ok) {
52
52
  throw res.error;
@@ -79,7 +79,7 @@ run();
79
79
  | --------------- | --------------- | --------------- |
80
80
  | errors.SDKError | 4XX, 5XX | \*/\* |
81
81
 
82
- ## getTakeoutApiV1TakeoutsGetJobIdGet
82
+ ## takeoutsGetByJobId
83
83
 
84
84
  Get Takeout
85
85
 
@@ -93,7 +93,7 @@ const syllableSDK = new SyllableSDK({
93
93
  });
94
94
 
95
95
  async function run() {
96
- const result = await syllableSDK.takeouts.getTakeoutApiV1TakeoutsGetJobIdGet({
96
+ const result = await syllableSDK.takeouts.takeoutsGetByJobId({
97
97
  jobId: "<id>",
98
98
  });
99
99
 
@@ -110,7 +110,7 @@ The standalone function version of this method:
110
110
 
111
111
  ```typescript
112
112
  import { SyllableSDKCore } from "syllable-sdk/core.js";
113
- import { takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet } from "syllable-sdk/funcs/takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet.js";
113
+ import { takeoutsTakeoutsGetByJobId } from "syllable-sdk/funcs/takeoutsTakeoutsGetByJobId.js";
114
114
 
115
115
  // Use `SyllableSDKCore` for best tree-shaking performance.
116
116
  // You can create one instance of it to use across an application.
@@ -119,7 +119,7 @@ const syllableSDK = new SyllableSDKCore({
119
119
  });
120
120
 
121
121
  async function run() {
122
- const res = await takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet(syllableSDK, {
122
+ const res = await takeoutsTakeoutsGetByJobId(syllableSDK, {
123
123
  jobId: "<id>",
124
124
  });
125
125
 
@@ -140,7 +140,7 @@ run();
140
140
 
141
141
  | Parameter | Type | Required | Description |
142
142
  | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
143
- | `request` | [operations.GetTakeoutApiV1TakeoutsGetJobIdGetRequest](../../models/operations/gettakeoutapiv1takeoutsgetjobidgetrequest.md) | :heavy_check_mark: | The request object to use for the request. |
143
+ | `request` | [operations.TakeoutsGetByJobIdRequest](../../models/operations/takeoutsgetbyjobidrequest.md) | :heavy_check_mark: | The request object to use for the request. |
144
144
  | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
145
145
  | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
146
146
  | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
@@ -447,7 +447,7 @@ run();
447
447
 
448
448
  ## queueSessionsWorkflow
449
449
 
450
- Delete a Insights workflow.
450
+ Manually queue sessions for insights workflow evaluation.
451
451
 
452
452
  ### Example Usage
453
453
 
@@ -1,13 +1,16 @@
1
1
  import { SyllableSDKCore } from "../core.js";
2
2
  import { RequestOptions } from "../lib/sdks.js";
3
+ import * as components from "../models/components/index.js";
3
4
  import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
4
5
  import * as errors from "../models/errors/index.js";
5
6
  import { SDKError } from "../models/errors/sdkerror.js";
6
7
  import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
7
- import * as operations from "../models/operations/index.js";
8
8
  import { Result } from "../types/fp.js";
9
9
  /**
10
- * Delete Requests By List Of Reference Ids
10
+ * Create Incident
11
+ *
12
+ * @remarks
13
+ * Create a new incident
11
14
  */
12
- export declare function outboundBatchesOutboundBatchRemove(client: SyllableSDKCore, request: operations.OutboundBatchRemoveRequest, options?: RequestOptions): Promise<Result<any, errors.HTTPValidationError | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
13
- //# sourceMappingURL=outboundBatchesOutboundBatchRemove.d.ts.map
15
+ export declare function incidentsCreate(client: SyllableSDKCore, request: components.IncidentCreateRequest, options?: RequestOptions): Promise<Result<components.IncidentResponse, errors.HTTPValidationError | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
16
+ //# sourceMappingURL=incidentsCreate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"incidentsCreate.d.ts","sourceRoot":"","sources":["../src/funcs/incidentsCreate.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAK7C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAsB,eAAe,CACnC,MAAM,EAAE,eAAe,EACvB,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,gBAAgB,EACzB,MAAM,CAAC,mBAAmB,GAC1B,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAuFA"}
@@ -0,0 +1,102 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.incidentsCreate = incidentsCreate;
30
+ const encodings_js_1 = require("../lib/encodings.js");
31
+ const M = __importStar(require("../lib/matchers.js"));
32
+ const primitives_js_1 = require("../lib/primitives.js");
33
+ const schemas_js_1 = require("../lib/schemas.js");
34
+ const security_js_1 = require("../lib/security.js");
35
+ const url_js_1 = require("../lib/url.js");
36
+ const components = __importStar(require("../models/components/index.js"));
37
+ const errors = __importStar(require("../models/errors/index.js"));
38
+ /**
39
+ * Create Incident
40
+ *
41
+ * @remarks
42
+ * Create a new incident
43
+ */
44
+ async function incidentsCreate(client, request, options) {
45
+ const parsed = (0, schemas_js_1.safeParse)(request, (value) => components.IncidentCreateRequest$outboundSchema.parse(value), "Input validation failed");
46
+ if (!parsed.ok) {
47
+ return parsed;
48
+ }
49
+ const payload = parsed.value;
50
+ const body = (0, encodings_js_1.encodeJSON)("body", payload, { explode: true });
51
+ const path = (0, url_js_1.pathToFunc)("/api/v1/incidents/")();
52
+ const headers = new Headers((0, primitives_js_1.compactMap)({
53
+ "Content-Type": "application/json",
54
+ Accept: "application/json",
55
+ }));
56
+ const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKeyHeader);
57
+ const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
58
+ const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
59
+ const context = {
60
+ baseURL: options?.serverURL ?? "",
61
+ operationID: "incident_create",
62
+ oAuth2Scopes: [],
63
+ resolvedSecurity: requestSecurity,
64
+ securitySource: client._options.apiKeyHeader,
65
+ retryConfig: options?.retries
66
+ || client._options.retryConfig
67
+ || { strategy: "none" },
68
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
69
+ };
70
+ const requestRes = client._createRequest(context, {
71
+ security: requestSecurity,
72
+ method: "POST",
73
+ baseURL: options?.serverURL,
74
+ path: path,
75
+ headers: headers,
76
+ body: body,
77
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
78
+ }, options);
79
+ if (!requestRes.ok) {
80
+ return requestRes;
81
+ }
82
+ const req = requestRes.value;
83
+ const doResult = await client._do(req, {
84
+ context,
85
+ errorCodes: ["422", "4XX", "5XX"],
86
+ retryConfig: context.retryConfig,
87
+ retryCodes: context.retryCodes,
88
+ });
89
+ if (!doResult.ok) {
90
+ return doResult;
91
+ }
92
+ const response = doResult.value;
93
+ const responseFields = {
94
+ HttpMeta: { Response: response, Request: req },
95
+ };
96
+ const [result] = await M.match(M.json(200, components.IncidentResponse$inboundSchema), M.jsonErr(422, errors.HTTPValidationError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, { extraFields: responseFields });
97
+ if (!result.ok) {
98
+ return result;
99
+ }
100
+ return result;
101
+ }
102
+ //# sourceMappingURL=incidentsCreate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"incidentsCreate.js","sourceRoot":"","sources":["../src/funcs/incidentsCreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;AA6BH,0CAuGC;AAjID,sDAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAC3C,0EAA4D;AAQ5D,kEAAoD;AAKpD;;;;;GAKG;AACI,KAAK,UAAU,eAAe,CACnC,MAAuB,EACvB,OAA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,MAAM,CAAC,iCAAiC,CAAC,EACxD,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAC7C,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { SyllableSDKCore } from "../core.js";
2
+ import { RequestOptions } from "../lib/sdks.js";
3
+ import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
4
+ import * as errors from "../models/errors/index.js";
5
+ import { SDKError } from "../models/errors/sdkerror.js";
6
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
7
+ import * as operations from "../models/operations/index.js";
8
+ import { Result } from "../types/fp.js";
9
+ /**
10
+ * Delete Incident
11
+ *
12
+ * @remarks
13
+ * Delete an incident by ID
14
+ */
15
+ export declare function incidentsDelete(client: SyllableSDKCore, request: operations.IncidentDeleteRequest, options?: RequestOptions): Promise<Result<any, errors.HTTPValidationError | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
16
+ //# sourceMappingURL=incidentsDelete.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"incidentsDelete.d.ts","sourceRoot":"","sources":["../src/funcs/incidentsDelete.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAK7C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAsB,eAAe,CACnC,MAAM,EAAE,eAAe,EACvB,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,GAAG,EACD,MAAM,CAAC,mBAAmB,GAC1B,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAkGA"}
@@ -0,0 +1,112 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.incidentsDelete = incidentsDelete;
30
+ const z = __importStar(require("zod"));
31
+ const encodings_js_1 = require("../lib/encodings.js");
32
+ const M = __importStar(require("../lib/matchers.js"));
33
+ const primitives_js_1 = require("../lib/primitives.js");
34
+ const schemas_js_1 = require("../lib/schemas.js");
35
+ const security_js_1 = require("../lib/security.js");
36
+ const url_js_1 = require("../lib/url.js");
37
+ const errors = __importStar(require("../models/errors/index.js"));
38
+ const operations = __importStar(require("../models/operations/index.js"));
39
+ /**
40
+ * Delete Incident
41
+ *
42
+ * @remarks
43
+ * Delete an incident by ID
44
+ */
45
+ async function incidentsDelete(client, request, options) {
46
+ const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.IncidentDeleteRequest$outboundSchema.parse(value), "Input validation failed");
47
+ if (!parsed.ok) {
48
+ return parsed;
49
+ }
50
+ const payload = parsed.value;
51
+ const body = null;
52
+ const pathParams = {
53
+ incident_id: (0, encodings_js_1.encodeSimple)("incident_id", payload.incident_id, {
54
+ explode: false,
55
+ charEncoding: "percent",
56
+ }),
57
+ };
58
+ const path = (0, url_js_1.pathToFunc)("/api/v1/incidents/{incident_id}")(pathParams);
59
+ const query = (0, encodings_js_1.encodeFormQuery)({
60
+ "reason": payload.reason,
61
+ });
62
+ const headers = new Headers((0, primitives_js_1.compactMap)({
63
+ Accept: "application/json",
64
+ }));
65
+ const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKeyHeader);
66
+ const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
67
+ const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
68
+ const context = {
69
+ baseURL: options?.serverURL ?? "",
70
+ operationID: "incident_delete",
71
+ oAuth2Scopes: [],
72
+ resolvedSecurity: requestSecurity,
73
+ securitySource: client._options.apiKeyHeader,
74
+ retryConfig: options?.retries
75
+ || client._options.retryConfig
76
+ || { strategy: "none" },
77
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
78
+ };
79
+ const requestRes = client._createRequest(context, {
80
+ security: requestSecurity,
81
+ method: "DELETE",
82
+ baseURL: options?.serverURL,
83
+ path: path,
84
+ headers: headers,
85
+ query: query,
86
+ body: body,
87
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
88
+ }, options);
89
+ if (!requestRes.ok) {
90
+ return requestRes;
91
+ }
92
+ const req = requestRes.value;
93
+ const doResult = await client._do(req, {
94
+ context,
95
+ errorCodes: ["422", "4XX", "5XX"],
96
+ retryConfig: context.retryConfig,
97
+ retryCodes: context.retryCodes,
98
+ });
99
+ if (!doResult.ok) {
100
+ return doResult;
101
+ }
102
+ const response = doResult.value;
103
+ const responseFields = {
104
+ HttpMeta: { Response: response, Request: req },
105
+ };
106
+ const [result] = await M.match(M.json(200, z.any()), M.jsonErr(422, errors.HTTPValidationError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, { extraFields: responseFields });
107
+ if (!result.ok) {
108
+ return result;
109
+ }
110
+ return result;
111
+ }
112
+ //# sourceMappingURL=incidentsDelete.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"incidentsDelete.js","sourceRoot":"","sources":["../src/funcs/incidentsDelete.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;AA8BH,0CAkHC;AA9ID,uCAAyB;AAEzB,sDAAoE;AACpE,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAQ3C,kEAAoD;AAGpD,0EAA4D;AAG5D;;;;;GAKG;AACI,KAAK,UAAU,eAAe,CACnC,MAAuB,EACvB,OAAyC,EACzC,OAAwB;IAcxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,oCAAoC,CAAC,KAAK,CAAC,KAAK,CAAC,EACvE,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MA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AAG,EAAE,MAAM,CAAC,iCAAiC,CAAC,EACxD,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAC7C,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { SyllableSDKCore } from "../core.js";
2
+ import { RequestOptions } from "../lib/sdks.js";
3
+ import * as components from "../models/components/index.js";
4
+ import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
5
+ import * as errors from "../models/errors/index.js";
6
+ import { SDKError } from "../models/errors/sdkerror.js";
7
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
8
+ import * as operations from "../models/operations/index.js";
9
+ import { Result } from "../types/fp.js";
10
+ /**
11
+ * Get Incident By Id
12
+ *
13
+ * @remarks
14
+ * Get incident by ID
15
+ */
16
+ export declare function incidentsGetById(client: SyllableSDKCore, request: operations.IncidentGetByIdRequest, options?: RequestOptions): Promise<Result<components.IncidentResponse, errors.HTTPValidationError | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
17
+ //# sourceMappingURL=incidentsGetById.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"incidentsGetById.d.ts","sourceRoot":"","sources":["../src/funcs/incidentsGetById.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAK7C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,eAAe,EACvB,OAAO,EAAE,UAAU,CAAC,sBAAsB,EAC1C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,gBAAgB,EACzB,MAAM,CAAC,mBAAmB,GAC1B,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CA6FA"}
@@ -0,0 +1,108 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.incidentsGetById = incidentsGetById;
30
+ const encodings_js_1 = require("../lib/encodings.js");
31
+ const M = __importStar(require("../lib/matchers.js"));
32
+ const primitives_js_1 = require("../lib/primitives.js");
33
+ const schemas_js_1 = require("../lib/schemas.js");
34
+ const security_js_1 = require("../lib/security.js");
35
+ const url_js_1 = require("../lib/url.js");
36
+ const components = __importStar(require("../models/components/index.js"));
37
+ const errors = __importStar(require("../models/errors/index.js"));
38
+ const operations = __importStar(require("../models/operations/index.js"));
39
+ /**
40
+ * Get Incident By Id
41
+ *
42
+ * @remarks
43
+ * Get incident by ID
44
+ */
45
+ async function incidentsGetById(client, request, options) {
46
+ const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.IncidentGetByIdRequest$outboundSchema.parse(value), "Input validation failed");
47
+ if (!parsed.ok) {
48
+ return parsed;
49
+ }
50
+ const payload = parsed.value;
51
+ const body = null;
52
+ const pathParams = {
53
+ incident_id: (0, encodings_js_1.encodeSimple)("incident_id", payload.incident_id, {
54
+ explode: false,
55
+ charEncoding: "percent",
56
+ }),
57
+ };
58
+ const path = (0, url_js_1.pathToFunc)("/api/v1/incidents/{incident_id}")(pathParams);
59
+ const headers = new Headers((0, primitives_js_1.compactMap)({
60
+ Accept: "application/json",
61
+ }));
62
+ const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKeyHeader);
63
+ const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
64
+ const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
65
+ const context = {
66
+ baseURL: options?.serverURL ?? "",
67
+ operationID: "incident_get_by_id",
68
+ oAuth2Scopes: [],
69
+ resolvedSecurity: requestSecurity,
70
+ securitySource: client._options.apiKeyHeader,
71
+ retryConfig: options?.retries
72
+ || client._options.retryConfig
73
+ || { strategy: "none" },
74
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
75
+ };
76
+ const requestRes = client._createRequest(context, {
77
+ security: requestSecurity,
78
+ method: "GET",
79
+ baseURL: options?.serverURL,
80
+ path: path,
81
+ headers: headers,
82
+ body: body,
83
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
84
+ }, options);
85
+ if (!requestRes.ok) {
86
+ return requestRes;
87
+ }
88
+ const req = requestRes.value;
89
+ const doResult = await client._do(req, {
90
+ context,
91
+ errorCodes: ["422", "4XX", "5XX"],
92
+ retryConfig: context.retryConfig,
93
+ retryCodes: context.retryCodes,
94
+ });
95
+ if (!doResult.ok) {
96
+ return doResult;
97
+ }
98
+ const response = doResult.value;
99
+ const responseFields = {
100
+ HttpMeta: { Response: response, Request: req },
101
+ };
102
+ const [result] = await M.match(M.json(200, components.IncidentResponse$inboundSchema), M.jsonErr(422, errors.HTTPValidationError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, { extraFields: responseFields });
103
+ if (!result.ok) {
104
+ return result;
105
+ }
106
+ return result;
107
+ }
108
+ //# sourceMappingURL=incidentsGetById.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"incidentsGetById.js","sourceRoot":"","sources":["../src/funcs/incidentsGetById.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;AA8BH,4CA6GC;AAxID,sDAAmD;AACnD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAC3C,0EAA4D;AAQ5D,kEAAoD;AAGpD,0EAA4D;AAG5D;;;;;GAKG;AACI,KAAK,UAAU,gBAAgB,CACpC,MAAuB,EACvB,OAA0C,EAC1C,OAAwB;IAcxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,qCAAqC,CAAC,KAAK,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,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAC7C,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { SyllableSDKCore } from "../core.js";
2
+ import { RequestOptions } from "../lib/sdks.js";
3
+ import * as components from "../models/components/index.js";
4
+ import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
5
+ import { SDKError } from "../models/errors/sdkerror.js";
6
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
7
+ import { Result } from "../types/fp.js";
8
+ /**
9
+ * Get Organizations
10
+ *
11
+ * @remarks
12
+ * Get all organizations
13
+ */
14
+ export declare function incidentsIncidentGetOrganizations(client: SyllableSDKCore, options?: RequestOptions): Promise<Result<Array<components.IncidentOrganizationResponse>, SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
15
+ //# sourceMappingURL=incidentsIncidentGetOrganizations.d.ts.map