syllable-sdk 0.1.0-alpha.73 → 0.1.0-alpha.75
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.
- package/README.md +22 -28
- package/docs/sdks/batches/README.md +26 -42
- package/docs/sdks/campaigns/README.md +25 -9
- package/docs/sdks/incidents/README.md +178 -84
- package/docs/sdks/insights/README.md +1 -1
- package/docs/sdks/latency/README.md +85 -0
- package/docs/sdks/syllablesdktools/README.md +82 -2
- package/docs/sdks/takeouts/README.md +11 -11
- package/docs/sdks/workflows/README.md +1 -1
- package/funcs/incidentsCreate.d.ts +1 -1
- package/funcs/incidentsCreate.d.ts.map +1 -1
- package/funcs/incidentsCreate.js +2 -2
- package/funcs/incidentsCreate.js.map +1 -1
- package/funcs/incidentsDelete.d.ts.map +1 -1
- package/funcs/incidentsDelete.js +4 -0
- package/funcs/incidentsDelete.js.map +1 -1
- package/funcs/incidentsGetById.d.ts +1 -1
- package/funcs/incidentsGetById.d.ts.map +1 -1
- package/funcs/incidentsGetById.js +1 -1
- package/funcs/incidentsGetById.js.map +1 -1
- package/funcs/incidentsIncidentGetOrganizations.d.ts +15 -0
- package/funcs/incidentsIncidentGetOrganizations.d.ts.map +1 -0
- package/funcs/{v1PostSessionsDashboard.js → incidentsIncidentGetOrganizations.js} +10 -15
- package/funcs/incidentsIncidentGetOrganizations.js.map +1 -0
- package/funcs/incidentsList.d.ts +2 -2
- package/funcs/incidentsList.d.ts.map +1 -1
- package/funcs/incidentsList.js +10 -4
- package/funcs/incidentsList.js.map +1 -1
- package/funcs/incidentsUpdate.d.ts +1 -2
- package/funcs/incidentsUpdate.d.ts.map +1 -1
- package/funcs/incidentsUpdate.js +4 -13
- package/funcs/incidentsUpdate.js.map +1 -1
- package/funcs/insightsList.d.ts +1 -1
- package/funcs/insightsList.js +1 -1
- package/funcs/insightsToolsCreate.d.ts +1 -1
- package/funcs/insightsToolsCreate.js +3 -3
- package/funcs/insightsToolsCreate.js.map +1 -1
- package/funcs/insightsToolsInsightsToolTest.d.ts +16 -0
- package/funcs/insightsToolsInsightsToolTest.d.ts.map +1 -0
- package/funcs/insightsToolsInsightsToolTest.js +103 -0
- package/funcs/insightsToolsInsightsToolTest.js.map +1 -0
- package/funcs/insightsToolsUpdate.d.ts +1 -1
- package/funcs/insightsToolsUpdate.js +1 -1
- package/funcs/insightsWorkflowsQueueSessionsWorkflow.d.ts +1 -1
- package/funcs/insightsWorkflowsQueueSessionsWorkflow.js +1 -1
- package/funcs/{outboundBatchesOutboundBatchAdd.d.ts → outboundBatchesAdd.d.ts} +2 -2
- package/funcs/outboundBatchesAdd.d.ts.map +1 -0
- package/funcs/{outboundBatchesOutboundBatchAdd.js → outboundBatchesAdd.js} +3 -3
- package/funcs/outboundBatchesAdd.js.map +1 -0
- package/funcs/outboundBatchesList.d.ts +1 -1
- package/funcs/outboundBatchesList.d.ts.map +1 -1
- package/funcs/outboundBatchesList.js +1 -2
- package/funcs/outboundBatchesList.js.map +1 -1
- package/funcs/{outboundBatchesOutboundBatchRemove.d.ts → outboundBatchesRemove.d.ts} +2 -2
- package/funcs/outboundBatchesRemove.d.ts.map +1 -0
- package/funcs/{outboundBatchesOutboundBatchRemove.js → outboundBatchesRemove.js} +3 -3
- package/funcs/outboundBatchesRemove.js.map +1 -0
- package/funcs/{outboundBatchesOutboundBatchResults.d.ts → outboundBatchesResults.d.ts} +2 -2
- package/funcs/outboundBatchesResults.d.ts.map +1 -0
- package/funcs/{outboundBatchesOutboundBatchResults.js → outboundBatchesResults.js} +8 -3
- package/funcs/outboundBatchesResults.js.map +1 -0
- package/funcs/outboundBatchesUpdate.js +1 -1
- package/funcs/outboundBatchesUpdate.js.map +1 -1
- package/funcs/outboundBatchesUpload.d.ts.map +1 -1
- package/funcs/outboundBatchesUpload.js +16 -12
- package/funcs/outboundBatchesUpload.js.map +1 -1
- package/funcs/outboundCampaignsList.d.ts +1 -1
- package/funcs/outboundCampaignsList.d.ts.map +1 -1
- package/funcs/outboundCampaignsList.js +1 -2
- package/funcs/outboundCampaignsList.js.map +1 -1
- package/funcs/{v1PostListDashboard.d.ts → sessionsLatencyGetById.d.ts} +3 -9
- package/funcs/sessionsLatencyGetById.d.ts.map +1 -0
- package/funcs/{v1PostGetDashboard.js → sessionsLatencyGetById.js} +15 -19
- package/funcs/sessionsLatencyGetById.js.map +1 -0
- package/funcs/{takeoutsCreateTakeoutApiV1TakeoutsCreatePost.d.ts → takeoutsCreate.d.ts} +2 -2
- package/funcs/takeoutsCreate.d.ts.map +1 -0
- package/funcs/{takeoutsCreateTakeoutApiV1TakeoutsCreatePost.js → takeoutsCreate.js} +4 -4
- package/funcs/takeoutsCreate.js.map +1 -0
- package/funcs/{takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet.d.ts → takeoutsTakeoutsGetByJobId.d.ts} +2 -2
- package/funcs/takeoutsTakeoutsGetByJobId.d.ts.map +1 -0
- package/funcs/{takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet.js → takeoutsTakeoutsGetByJobId.js} +5 -5
- package/funcs/takeoutsTakeoutsGetByJobId.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/batchdetails.d.ts +8 -3
- package/models/components/batchdetails.d.ts.map +1 -1
- package/models/components/batchdetails.js +8 -2
- package/models/components/batchdetails.js.map +1 -1
- package/models/components/batchstatus.d.ts +3 -3
- package/models/components/batchstatus.js +1 -1
- package/models/components/batchstatus.js.map +1 -1
- package/models/components/bodyoutboundbatchdelete.d.ts +1 -1
- package/models/components/bodyoutboundbatchdelete.d.ts.map +1 -1
- package/models/components/bodyoutboundbatchdelete.js +10 -1
- package/models/components/bodyoutboundbatchdelete.js.map +1 -1
- package/models/components/bodyoutboundbatchupload.d.ts +2 -2
- package/models/components/bodyoutboundbatchupload.d.ts.map +1 -1
- package/models/components/bodyoutboundbatchupload.js +2 -2
- package/models/components/bodyoutboundbatchupload.js.map +1 -1
- package/models/components/communicationbatch.d.ts +8 -3
- package/models/components/communicationbatch.d.ts.map +1 -1
- package/models/components/communicationbatch.js +8 -2
- package/models/components/communicationbatch.js.map +1 -1
- package/models/components/communicationbatchupdate.d.ts +37 -0
- package/models/components/communicationbatchupdate.d.ts.map +1 -0
- package/models/components/communicationbatchupdate.js +70 -0
- package/models/components/communicationbatchupdate.js.map +1 -0
- package/models/components/communicationrequest.d.ts +0 -11
- package/models/components/communicationrequest.d.ts.map +1 -1
- package/models/components/communicationrequest.js +0 -9
- package/models/components/communicationrequest.js.map +1 -1
- package/models/components/communicationrequestresult.d.ts +44 -13
- package/models/components/communicationrequestresult.d.ts.map +1 -1
- package/models/components/communicationrequestresult.js +42 -13
- package/models/components/communicationrequestresult.js.map +1 -1
- package/models/components/conversation.d.ts +10 -0
- package/models/components/conversation.d.ts.map +1 -1
- package/models/components/conversation.js +8 -0
- package/models/components/conversation.js.map +1 -1
- package/models/components/daysofweek.d.ts +49 -0
- package/models/components/daysofweek.d.ts.map +1 -0
- package/models/components/daysofweek.js +59 -0
- package/models/components/daysofweek.js.map +1 -0
- package/models/components/incidentcreaterequest.d.ts +75 -0
- package/models/components/incidentcreaterequest.d.ts.map +1 -0
- package/models/components/{serviceincidentrequest.js → incidentcreaterequest.js} +29 -29
- package/models/components/incidentcreaterequest.js.map +1 -0
- package/models/components/incidentorganizationresponse.d.ts +33 -0
- package/models/components/incidentorganizationresponse.d.ts.map +1 -0
- package/models/components/incidentorganizationresponse.js +72 -0
- package/models/components/incidentorganizationresponse.js.map +1 -0
- package/models/components/incidentproperties.d.ts +64 -0
- package/models/components/incidentproperties.d.ts.map +1 -0
- package/models/components/incidentproperties.js +63 -0
- package/models/components/incidentproperties.js.map +1 -0
- package/models/components/incidentresponse.d.ts +90 -0
- package/models/components/incidentresponse.d.ts.map +1 -0
- package/models/components/{serviceincidentresponse.js → incidentresponse.js} +33 -33
- package/models/components/incidentresponse.js.map +1 -0
- package/models/components/incidentupdaterequest.d.ts +90 -0
- package/models/components/incidentupdaterequest.d.ts.map +1 -0
- package/models/{operations/incidentupdate.js → components/incidentupdaterequest.js} +43 -10
- package/models/components/incidentupdaterequest.js.map +1 -0
- package/models/components/index.d.ts +16 -2
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +16 -2
- package/models/components/index.js.map +1 -1
- package/models/components/insighttooltestinput.d.ts +40 -0
- package/models/components/insighttooltestinput.d.ts.map +1 -0
- package/models/components/insighttooltestinput.js +72 -0
- package/models/components/insighttooltestinput.js.map +1 -0
- package/models/components/inspectlatencyresponse.d.ts +42 -0
- package/models/components/inspectlatencyresponse.d.ts.map +1 -0
- package/models/components/inspectlatencyresponse.js +74 -0
- package/models/components/inspectlatencyresponse.js.map +1 -0
- package/models/components/latencycategory.d.ts +37 -0
- package/models/components/latencycategory.d.ts.map +1 -0
- package/models/components/latencycategory.js +53 -0
- package/models/components/latencycategory.js.map +1 -0
- package/models/components/latencyentry.d.ts +50 -0
- package/models/components/latencyentry.d.ts.map +1 -0
- package/models/components/latencyentry.js +92 -0
- package/models/components/latencyentry.js.map +1 -0
- package/models/components/latencyunittype.d.ts +37 -0
- package/models/components/latencyunittype.d.ts.map +1 -0
- package/models/components/latencyunittype.js +53 -0
- package/models/components/latencyunittype.js.map +1 -0
- package/models/components/listresponsecommunicationbatch.d.ts +53 -0
- package/models/components/listresponsecommunicationbatch.d.ts.map +1 -0
- package/models/components/listresponsecommunicationbatch.js +81 -0
- package/models/components/listresponsecommunicationbatch.js.map +1 -0
- package/models/components/listresponseincidentresponse.d.ts +53 -0
- package/models/components/listresponseincidentresponse.d.ts.map +1 -0
- package/models/components/listresponseincidentresponse.js +81 -0
- package/models/components/listresponseincidentresponse.js.map +1 -0
- package/models/components/listresponseoutboundcampaign.d.ts +53 -0
- package/models/components/listresponseoutboundcampaign.d.ts.map +1 -0
- package/models/components/listresponseoutboundcampaign.js +81 -0
- package/models/components/listresponseoutboundcampaign.js.map +1 -0
- package/models/components/outboundcampaign.d.ts +17 -6
- package/models/components/outboundcampaign.d.ts.map +1 -1
- package/models/components/outboundcampaign.js +13 -6
- package/models/components/outboundcampaign.js.map +1 -1
- package/models/components/outboundcampaigninput.d.ts +17 -6
- package/models/components/outboundcampaigninput.d.ts.map +1 -1
- package/models/components/outboundcampaigninput.js +13 -6
- package/models/components/outboundcampaigninput.js.map +1 -1
- package/models/components/summaryentry.d.ts +46 -0
- package/models/components/summaryentry.d.ts.map +1 -0
- package/models/components/summaryentry.js +87 -0
- package/models/components/summaryentry.js.map +1 -0
- package/models/operations/incidentdelete.d.ts +2 -0
- package/models/operations/incidentdelete.d.ts.map +1 -1
- package/models/operations/incidentdelete.js +2 -0
- package/models/operations/incidentdelete.js.map +1 -1
- package/models/operations/incidentlist.d.ts +44 -2
- package/models/operations/incidentlist.d.ts.map +1 -1
- package/models/operations/incidentlist.js +44 -4
- package/models/operations/incidentlist.js.map +1 -1
- package/models/operations/index.d.ts +2 -2
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +2 -2
- package/models/operations/index.js.map +1 -1
- package/models/operations/outboundbatchresults.d.ts +4 -0
- package/models/operations/outboundbatchresults.d.ts.map +1 -1
- package/models/operations/outboundbatchresults.js +6 -0
- package/models/operations/outboundbatchresults.js.map +1 -1
- package/models/operations/outboundbatchupdate.d.ts +2 -2
- package/models/operations/outboundbatchupdate.d.ts.map +1 -1
- package/models/operations/outboundbatchupdate.js +4 -4
- package/models/operations/outboundbatchupdate.js.map +1 -1
- package/models/operations/outboundbatchupload.d.ts +2 -2
- package/models/operations/outboundbatchupload.d.ts.map +1 -1
- package/models/operations/outboundbatchupload.js +4 -2
- package/models/operations/outboundbatchupload.js.map +1 -1
- package/models/operations/outboundcampaigngetbyid.d.ts +2 -2
- package/models/operations/outboundcampaigngetbyid.js +2 -2
- package/models/operations/outboundcampaigngetbyid.js.map +1 -1
- package/models/operations/sessionlatencygetbyid.d.ts +29 -0
- package/models/operations/sessionlatencygetbyid.d.ts.map +1 -0
- package/models/operations/sessionlatencygetbyid.js +68 -0
- package/models/operations/sessionlatencygetbyid.js.map +1 -0
- package/models/operations/takeoutsgetbyjobid.d.ts +29 -0
- package/models/operations/takeoutsgetbyjobid.d.ts.map +1 -0
- package/models/operations/{gettakeoutapiv1takeoutsgetjobidget.js → takeoutsgetbyjobid.js} +17 -17
- package/models/operations/takeoutsgetbyjobid.js.map +1 -0
- package/openapi.json +1707 -727
- package/package.json +1 -1
- package/sdk/batches.d.ts +4 -4
- package/sdk/batches.d.ts.map +1 -1
- package/sdk/batches.js +9 -9
- package/sdk/batches.js.map +1 -1
- package/sdk/campaigns.d.ts +1 -1
- package/sdk/campaigns.d.ts.map +1 -1
- package/sdk/incidents.d.ts +20 -13
- package/sdk/incidents.d.ts.map +1 -1
- package/sdk/incidents.js +26 -16
- package/sdk/incidents.js.map +1 -1
- package/sdk/insights.d.ts +1 -1
- package/sdk/insights.js +1 -1
- package/sdk/latency.d.ts +10 -0
- package/sdk/latency.d.ts.map +1 -0
- package/sdk/latency.js +19 -0
- package/sdk/latency.js.map +1 -0
- package/sdk/sdk.d.ts +0 -3
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +0 -4
- package/sdk/sdk.js.map +1 -1
- package/sdk/sessions.d.ts +3 -0
- package/sdk/sessions.d.ts.map +1 -1
- package/sdk/sessions.js +4 -0
- package/sdk/sessions.js.map +1 -1
- package/sdk/syllablesdktools.d.ts +9 -2
- package/sdk/syllablesdktools.d.ts.map +1 -1
- package/sdk/syllablesdktools.js +12 -2
- package/sdk/syllablesdktools.js.map +1 -1
- package/sdk/takeouts.d.ts +2 -2
- package/sdk/takeouts.d.ts.map +1 -1
- package/sdk/takeouts.js +6 -6
- package/sdk/takeouts.js.map +1 -1
- package/sdk/workflows.d.ts +1 -1
- package/sdk/workflows.js +1 -1
- package/src/funcs/incidentsCreate.ts +5 -5
- package/src/funcs/incidentsDelete.ts +6 -1
- package/src/funcs/incidentsGetById.ts +3 -3
- package/src/funcs/{v1PostSessionsDashboard.ts → incidentsIncidentGetOrganizations.ts} +10 -15
- package/src/funcs/incidentsList.ts +12 -6
- package/src/funcs/incidentsUpdate.ts +8 -18
- package/src/funcs/insightsList.ts +1 -1
- package/src/funcs/insightsToolsCreate.ts +4 -4
- package/src/funcs/{v1PostGetDashboard.ts → insightsToolsInsightsToolTest.ts} +17 -24
- package/src/funcs/insightsToolsUpdate.ts +1 -1
- package/src/funcs/insightsWorkflowsQueueSessionsWorkflow.ts +1 -1
- package/src/funcs/{outboundBatchesOutboundBatchAdd.ts → outboundBatchesAdd.ts} +1 -1
- package/src/funcs/outboundBatchesList.ts +3 -4
- package/src/funcs/{outboundBatchesOutboundBatchRemove.ts → outboundBatchesRemove.ts} +1 -1
- package/src/funcs/{outboundBatchesOutboundBatchResults.ts → outboundBatchesResults.ts} +8 -2
- package/src/funcs/outboundBatchesUpdate.ts +1 -1
- package/src/funcs/outboundBatchesUpload.ts +23 -20
- package/src/funcs/outboundCampaignsList.ts +3 -4
- package/src/funcs/sessionsLatencyGetById.ts +140 -0
- package/src/funcs/{takeoutsCreateTakeoutApiV1TakeoutsCreatePost.ts → takeoutsCreate.ts} +2 -2
- package/src/funcs/{takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet.ts → takeoutsTakeoutsGetByJobId.ts} +4 -7
- package/src/lib/config.ts +2 -2
- package/src/models/components/batchdetails.ts +16 -5
- package/src/models/components/batchstatus.ts +1 -1
- package/src/models/components/bodyoutboundbatchdelete.ts +11 -2
- package/src/models/components/bodyoutboundbatchupload.ts +4 -4
- package/src/models/components/communicationbatch.ts +16 -5
- package/src/models/components/communicationbatchupdate.ts +85 -0
- package/src/models/components/communicationrequest.ts +0 -23
- package/src/models/components/communicationrequestresult.ts +87 -25
- package/src/models/components/conversation.ts +18 -0
- package/src/models/components/daysofweek.ts +42 -0
- package/src/models/components/{serviceincidentrequest.ts → incidentcreaterequest.ts} +69 -39
- package/src/models/components/incidentorganizationresponse.ts +85 -0
- package/src/models/components/incidentproperties.ts +49 -0
- package/src/models/components/incidentresponse.ts +182 -0
- package/src/models/components/incidentupdaterequest.ts +182 -0
- package/src/models/components/index.ts +16 -2
- package/src/models/components/insighttooltestinput.ts +90 -0
- package/src/models/components/inspectlatencyresponse.ts +102 -0
- package/src/models/components/latencycategory.ts +36 -0
- package/src/models/components/latencyentry.ts +124 -0
- package/src/models/components/latencyunittype.ts +36 -0
- package/src/models/components/listresponsecommunicationbatch.ts +118 -0
- package/src/models/components/listresponseincidentresponse.ts +118 -0
- package/src/models/components/listresponseoutboundcampaign.ts +118 -0
- package/src/models/components/outboundcampaign.ts +33 -12
- package/src/models/components/outboundcampaigninput.ts +33 -12
- package/src/models/components/summaryentry.ts +110 -0
- package/src/models/operations/incidentdelete.ts +4 -0
- package/src/models/operations/incidentlist.ts +87 -6
- package/src/models/operations/index.ts +2 -2
- package/src/models/operations/outboundbatchresults.ts +10 -0
- package/src/models/operations/outboundbatchupdate.ts +6 -6
- package/src/models/operations/outboundbatchupload.ts +8 -4
- package/src/models/operations/outboundcampaigngetbyid.ts +4 -4
- package/src/models/operations/sessionlatencygetbyid.ts +77 -0
- package/src/models/operations/takeoutsgetbyjobid.ts +75 -0
- package/src/sdk/batches.ts +10 -10
- package/src/sdk/campaigns.ts +1 -1
- package/src/sdk/incidents.ts +43 -27
- package/src/sdk/insights.ts +1 -1
- package/src/sdk/latency.ts +25 -0
- package/src/sdk/sdk.ts +0 -6
- package/src/sdk/sessions.ts +6 -0
- package/src/sdk/syllablesdktools.ts +20 -2
- package/src/sdk/takeouts.ts +7 -7
- package/src/sdk/workflows.ts +1 -1
- package/docs/sdks/v1/README.md +0 -497
- package/funcs/outboundBatchesOutboundBatchAdd.d.ts.map +0 -1
- package/funcs/outboundBatchesOutboundBatchAdd.js.map +0 -1
- package/funcs/outboundBatchesOutboundBatchRemove.d.ts.map +0 -1
- package/funcs/outboundBatchesOutboundBatchRemove.js.map +0 -1
- package/funcs/outboundBatchesOutboundBatchResults.d.ts.map +0 -1
- package/funcs/outboundBatchesOutboundBatchResults.js.map +0 -1
- package/funcs/takeoutsCreateTakeoutApiV1TakeoutsCreatePost.d.ts.map +0 -1
- package/funcs/takeoutsCreateTakeoutApiV1TakeoutsCreatePost.js.map +0 -1
- package/funcs/takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet.d.ts.map +0 -1
- package/funcs/takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet.js.map +0 -1
- package/funcs/v1PostGetDashboard.d.ts +0 -20
- package/funcs/v1PostGetDashboard.d.ts.map +0 -1
- package/funcs/v1PostGetDashboard.js.map +0 -1
- package/funcs/v1PostListDashboard.d.ts.map +0 -1
- package/funcs/v1PostListDashboard.js +0 -117
- package/funcs/v1PostListDashboard.js.map +0 -1
- package/funcs/v1PostSessionEventsDashboard.d.ts +0 -21
- package/funcs/v1PostSessionEventsDashboard.d.ts.map +0 -1
- package/funcs/v1PostSessionEventsDashboard.js +0 -94
- package/funcs/v1PostSessionEventsDashboard.js.map +0 -1
- package/funcs/v1PostSessionSummaryDashboard.d.ts +0 -21
- package/funcs/v1PostSessionSummaryDashboard.d.ts.map +0 -1
- package/funcs/v1PostSessionSummaryDashboard.js +0 -94
- package/funcs/v1PostSessionSummaryDashboard.js.map +0 -1
- package/funcs/v1PostSessionTransfersDashboard.d.ts +0 -21
- package/funcs/v1PostSessionTransfersDashboard.d.ts.map +0 -1
- package/funcs/v1PostSessionTransfersDashboard.js +0 -94
- package/funcs/v1PostSessionTransfersDashboard.js.map +0 -1
- package/funcs/v1PostSessionsDashboard.d.ts +0 -21
- package/funcs/v1PostSessionsDashboard.d.ts.map +0 -1
- package/funcs/v1PostSessionsDashboard.js.map +0 -1
- package/models/components/serviceincidentrequest.d.ts +0 -45
- package/models/components/serviceincidentrequest.d.ts.map +0 -1
- package/models/components/serviceincidentrequest.js.map +0 -1
- package/models/components/serviceincidentresponse.d.ts +0 -51
- package/models/components/serviceincidentresponse.d.ts.map +0 -1
- package/models/components/serviceincidentresponse.js.map +0 -1
- package/models/operations/gettakeoutapiv1takeoutsgetjobidget.d.ts +0 -29
- package/models/operations/gettakeoutapiv1takeoutsgetjobidget.d.ts.map +0 -1
- package/models/operations/gettakeoutapiv1takeoutsgetjobidget.js.map +0 -1
- package/models/operations/incidentupdate.d.ts +0 -32
- package/models/operations/incidentupdate.d.ts.map +0 -1
- package/models/operations/incidentupdate.js.map +0 -1
- package/sdk/v1.d.ts +0 -78
- package/sdk/v1.d.ts.map +0 -1
- package/sdk/v1.js +0 -102
- package/sdk/v1.js.map +0 -1
- package/src/funcs/v1PostListDashboard.ts +0 -151
- package/src/funcs/v1PostSessionEventsDashboard.ts +0 -117
- package/src/funcs/v1PostSessionSummaryDashboard.ts +0 -117
- package/src/funcs/v1PostSessionTransfersDashboard.ts +0 -117
- package/src/models/components/serviceincidentresponse.ts +0 -139
- package/src/models/operations/gettakeoutapiv1takeoutsgetjobidget.ts +0 -87
- package/src/models/operations/incidentupdate.ts +0 -82
- package/src/sdk/v1.ts +0 -140
|
@@ -18,11 +18,9 @@ import {
|
|
|
18
18
|
*/
|
|
19
19
|
export type RequestVariables = {};
|
|
20
20
|
|
|
21
|
+
export type Insights = {};
|
|
22
|
+
|
|
21
23
|
export type CommunicationRequestResult = {
|
|
22
|
-
/**
|
|
23
|
-
* Unique ID for conversation batch
|
|
24
|
-
*/
|
|
25
|
-
batchId: string;
|
|
26
24
|
/**
|
|
27
25
|
* ID for target outreach (unique within batch)
|
|
28
26
|
*/
|
|
@@ -31,18 +29,14 @@ export type CommunicationRequestResult = {
|
|
|
31
29
|
* Target phone number or email address
|
|
32
30
|
*/
|
|
33
31
|
target: string;
|
|
34
|
-
/**
|
|
35
|
-
* Status of a communication request.
|
|
36
|
-
*/
|
|
37
|
-
requestStatus?: RequestStatus | undefined;
|
|
38
32
|
/**
|
|
39
33
|
* Variables for request
|
|
40
34
|
*/
|
|
41
35
|
requestVariables: RequestVariables;
|
|
42
36
|
/**
|
|
43
|
-
*
|
|
37
|
+
* Channel manager SID
|
|
44
38
|
*/
|
|
45
|
-
|
|
39
|
+
channelManagerSid?: string | null | undefined;
|
|
46
40
|
/**
|
|
47
41
|
* Timestamp of request creation
|
|
48
42
|
*/
|
|
@@ -63,6 +57,22 @@ export type CommunicationRequestResult = {
|
|
|
63
57
|
* Unique ID for conversation
|
|
64
58
|
*/
|
|
65
59
|
conversationId?: number | null | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* Status of a communication request.
|
|
62
|
+
*/
|
|
63
|
+
requestStatus?: RequestStatus | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* Status of request in channel manager
|
|
66
|
+
*/
|
|
67
|
+
channelManagerStatus?: string | null | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* Status of session in insight workflow
|
|
70
|
+
*/
|
|
71
|
+
insightsStatus?: string | null | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* Insights from call
|
|
74
|
+
*/
|
|
75
|
+
insights?: Insights | null | undefined;
|
|
66
76
|
};
|
|
67
77
|
|
|
68
78
|
/** @internal */
|
|
@@ -113,51 +123,100 @@ export function requestVariablesFromJSON(
|
|
|
113
123
|
);
|
|
114
124
|
}
|
|
115
125
|
|
|
126
|
+
/** @internal */
|
|
127
|
+
export const Insights$inboundSchema: z.ZodType<
|
|
128
|
+
Insights,
|
|
129
|
+
z.ZodTypeDef,
|
|
130
|
+
unknown
|
|
131
|
+
> = z.object({});
|
|
132
|
+
|
|
133
|
+
/** @internal */
|
|
134
|
+
export type Insights$Outbound = {};
|
|
135
|
+
|
|
136
|
+
/** @internal */
|
|
137
|
+
export const Insights$outboundSchema: z.ZodType<
|
|
138
|
+
Insights$Outbound,
|
|
139
|
+
z.ZodTypeDef,
|
|
140
|
+
Insights
|
|
141
|
+
> = z.object({});
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* @internal
|
|
145
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
146
|
+
*/
|
|
147
|
+
export namespace Insights$ {
|
|
148
|
+
/** @deprecated use `Insights$inboundSchema` instead. */
|
|
149
|
+
export const inboundSchema = Insights$inboundSchema;
|
|
150
|
+
/** @deprecated use `Insights$outboundSchema` instead. */
|
|
151
|
+
export const outboundSchema = Insights$outboundSchema;
|
|
152
|
+
/** @deprecated use `Insights$Outbound` instead. */
|
|
153
|
+
export type Outbound = Insights$Outbound;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export function insightsToJSON(insights: Insights): string {
|
|
157
|
+
return JSON.stringify(Insights$outboundSchema.parse(insights));
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export function insightsFromJSON(
|
|
161
|
+
jsonString: string,
|
|
162
|
+
): SafeParseResult<Insights, SDKValidationError> {
|
|
163
|
+
return safeParse(
|
|
164
|
+
jsonString,
|
|
165
|
+
(x) => Insights$inboundSchema.parse(JSON.parse(x)),
|
|
166
|
+
`Failed to parse 'Insights' from JSON`,
|
|
167
|
+
);
|
|
168
|
+
}
|
|
169
|
+
|
|
116
170
|
/** @internal */
|
|
117
171
|
export const CommunicationRequestResult$inboundSchema: z.ZodType<
|
|
118
172
|
CommunicationRequestResult,
|
|
119
173
|
z.ZodTypeDef,
|
|
120
174
|
unknown
|
|
121
175
|
> = z.object({
|
|
122
|
-
batch_id: z.string(),
|
|
123
176
|
reference_id: z.string(),
|
|
124
177
|
target: z.string(),
|
|
125
|
-
request_status: RequestStatus$inboundSchema.optional(),
|
|
126
178
|
request_variables: z.lazy(() => RequestVariables$inboundSchema),
|
|
127
|
-
|
|
179
|
+
channel_manager_sid: z.nullable(z.string()).optional(),
|
|
128
180
|
created_at: z.string().optional(),
|
|
129
181
|
sent_at: z.nullable(z.string()).optional(),
|
|
130
182
|
attempt_count: z.number().int().default(0),
|
|
131
183
|
session_id: z.nullable(z.number().int()).optional(),
|
|
132
184
|
conversation_id: z.nullable(z.number().int()).optional(),
|
|
185
|
+
request_status: RequestStatus$inboundSchema.optional(),
|
|
186
|
+
channel_manager_status: z.nullable(z.string()).optional(),
|
|
187
|
+
insights_status: z.nullable(z.string()).optional(),
|
|
188
|
+
insights: z.nullable(z.lazy(() => Insights$inboundSchema)).optional(),
|
|
133
189
|
}).transform((v) => {
|
|
134
190
|
return remap$(v, {
|
|
135
|
-
"batch_id": "batchId",
|
|
136
191
|
"reference_id": "referenceId",
|
|
137
|
-
"request_status": "requestStatus",
|
|
138
192
|
"request_variables": "requestVariables",
|
|
139
|
-
"
|
|
193
|
+
"channel_manager_sid": "channelManagerSid",
|
|
140
194
|
"created_at": "createdAt",
|
|
141
195
|
"sent_at": "sentAt",
|
|
142
196
|
"attempt_count": "attemptCount",
|
|
143
197
|
"session_id": "sessionId",
|
|
144
198
|
"conversation_id": "conversationId",
|
|
199
|
+
"request_status": "requestStatus",
|
|
200
|
+
"channel_manager_status": "channelManagerStatus",
|
|
201
|
+
"insights_status": "insightsStatus",
|
|
145
202
|
});
|
|
146
203
|
});
|
|
147
204
|
|
|
148
205
|
/** @internal */
|
|
149
206
|
export type CommunicationRequestResult$Outbound = {
|
|
150
|
-
batch_id: string;
|
|
151
207
|
reference_id: string;
|
|
152
208
|
target: string;
|
|
153
|
-
request_status?: string | undefined;
|
|
154
209
|
request_variables: RequestVariables$Outbound;
|
|
155
|
-
|
|
210
|
+
channel_manager_sid?: string | null | undefined;
|
|
156
211
|
created_at?: string | undefined;
|
|
157
212
|
sent_at?: string | null | undefined;
|
|
158
213
|
attempt_count: number;
|
|
159
214
|
session_id?: number | null | undefined;
|
|
160
215
|
conversation_id?: number | null | undefined;
|
|
216
|
+
request_status?: string | undefined;
|
|
217
|
+
channel_manager_status?: string | null | undefined;
|
|
218
|
+
insights_status?: string | null | undefined;
|
|
219
|
+
insights?: Insights$Outbound | null | undefined;
|
|
161
220
|
};
|
|
162
221
|
|
|
163
222
|
/** @internal */
|
|
@@ -166,29 +225,32 @@ export const CommunicationRequestResult$outboundSchema: z.ZodType<
|
|
|
166
225
|
z.ZodTypeDef,
|
|
167
226
|
CommunicationRequestResult
|
|
168
227
|
> = z.object({
|
|
169
|
-
batchId: z.string(),
|
|
170
228
|
referenceId: z.string(),
|
|
171
229
|
target: z.string(),
|
|
172
|
-
requestStatus: RequestStatus$outboundSchema.optional(),
|
|
173
230
|
requestVariables: z.lazy(() => RequestVariables$outboundSchema),
|
|
174
|
-
|
|
231
|
+
channelManagerSid: z.nullable(z.string()).optional(),
|
|
175
232
|
createdAt: z.string().optional(),
|
|
176
233
|
sentAt: z.nullable(z.string()).optional(),
|
|
177
234
|
attemptCount: z.number().int().default(0),
|
|
178
235
|
sessionId: z.nullable(z.number().int()).optional(),
|
|
179
236
|
conversationId: z.nullable(z.number().int()).optional(),
|
|
237
|
+
requestStatus: RequestStatus$outboundSchema.optional(),
|
|
238
|
+
channelManagerStatus: z.nullable(z.string()).optional(),
|
|
239
|
+
insightsStatus: z.nullable(z.string()).optional(),
|
|
240
|
+
insights: z.nullable(z.lazy(() => Insights$outboundSchema)).optional(),
|
|
180
241
|
}).transform((v) => {
|
|
181
242
|
return remap$(v, {
|
|
182
|
-
batchId: "batch_id",
|
|
183
243
|
referenceId: "reference_id",
|
|
184
|
-
requestStatus: "request_status",
|
|
185
244
|
requestVariables: "request_variables",
|
|
186
|
-
|
|
245
|
+
channelManagerSid: "channel_manager_sid",
|
|
187
246
|
createdAt: "created_at",
|
|
188
247
|
sentAt: "sent_at",
|
|
189
248
|
attemptCount: "attempt_count",
|
|
190
249
|
sessionId: "session_id",
|
|
191
250
|
conversationId: "conversation_id",
|
|
251
|
+
requestStatus: "request_status",
|
|
252
|
+
channelManagerStatus: "channel_manager_status",
|
|
253
|
+
insightsStatus: "insights_status",
|
|
192
254
|
});
|
|
193
255
|
});
|
|
194
256
|
|
|
@@ -59,6 +59,14 @@ export type Conversation = {
|
|
|
59
59
|
* Version for the LLM used in the conversation (see PromptResponse.llm_config.version)
|
|
60
60
|
*/
|
|
61
61
|
llmVersion?: string | null | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* Temperature for the LLM used in the conversation (see PromptResponse.llm_config.temperature)
|
|
64
|
+
*/
|
|
65
|
+
llmTemperature?: number | null | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* Seed for the LLM used in the conversation (see PromptResponse.llm_config.seed).
|
|
68
|
+
*/
|
|
69
|
+
llmSeed?: number | null | undefined;
|
|
62
70
|
/**
|
|
63
71
|
* Whether the conversation occurred on the legacy Syllable system
|
|
64
72
|
*/
|
|
@@ -82,6 +90,8 @@ export const Conversation$inboundSchema: z.ZodType<
|
|
|
82
90
|
llm_provider: z.nullable(z.string()).optional(),
|
|
83
91
|
llm_model: z.nullable(z.string()).optional(),
|
|
84
92
|
llm_version: z.nullable(z.string()).optional(),
|
|
93
|
+
llm_temperature: z.nullable(z.number()).optional(),
|
|
94
|
+
llm_seed: z.nullable(z.number().int()).optional(),
|
|
85
95
|
is_legacy: z.nullable(z.boolean()).optional(),
|
|
86
96
|
}).transform((v) => {
|
|
87
97
|
return remap$(v, {
|
|
@@ -95,6 +105,8 @@ export const Conversation$inboundSchema: z.ZodType<
|
|
|
95
105
|
"llm_provider": "llmProvider",
|
|
96
106
|
"llm_model": "llmModel",
|
|
97
107
|
"llm_version": "llmVersion",
|
|
108
|
+
"llm_temperature": "llmTemperature",
|
|
109
|
+
"llm_seed": "llmSeed",
|
|
98
110
|
"is_legacy": "isLegacy",
|
|
99
111
|
});
|
|
100
112
|
});
|
|
@@ -112,6 +124,8 @@ export type Conversation$Outbound = {
|
|
|
112
124
|
llm_provider?: string | null | undefined;
|
|
113
125
|
llm_model?: string | null | undefined;
|
|
114
126
|
llm_version?: string | null | undefined;
|
|
127
|
+
llm_temperature?: number | null | undefined;
|
|
128
|
+
llm_seed?: number | null | undefined;
|
|
115
129
|
is_legacy?: boolean | null | undefined;
|
|
116
130
|
};
|
|
117
131
|
|
|
@@ -132,6 +146,8 @@ export const Conversation$outboundSchema: z.ZodType<
|
|
|
132
146
|
llmProvider: z.nullable(z.string()).optional(),
|
|
133
147
|
llmModel: z.nullable(z.string()).optional(),
|
|
134
148
|
llmVersion: z.nullable(z.string()).optional(),
|
|
149
|
+
llmTemperature: z.nullable(z.number()).optional(),
|
|
150
|
+
llmSeed: z.nullable(z.number().int()).optional(),
|
|
135
151
|
isLegacy: z.nullable(z.boolean()).optional(),
|
|
136
152
|
}).transform((v) => {
|
|
137
153
|
return remap$(v, {
|
|
@@ -145,6 +161,8 @@ export const Conversation$outboundSchema: z.ZodType<
|
|
|
145
161
|
llmProvider: "llm_provider",
|
|
146
162
|
llmModel: "llm_model",
|
|
147
163
|
llmVersion: "llm_version",
|
|
164
|
+
llmTemperature: "llm_temperature",
|
|
165
|
+
llmSeed: "llm_seed",
|
|
148
166
|
isLegacy: "is_legacy",
|
|
149
167
|
});
|
|
150
168
|
});
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Enum representing days of the week.
|
|
10
|
+
*/
|
|
11
|
+
export const DaysOfWeek = {
|
|
12
|
+
Mon: "mon",
|
|
13
|
+
Tue: "tue",
|
|
14
|
+
Wed: "wed",
|
|
15
|
+
Thu: "thu",
|
|
16
|
+
Fri: "fri",
|
|
17
|
+
Sat: "sat",
|
|
18
|
+
Sun: "sun",
|
|
19
|
+
} as const;
|
|
20
|
+
/**
|
|
21
|
+
* Enum representing days of the week.
|
|
22
|
+
*/
|
|
23
|
+
export type DaysOfWeek = ClosedEnum<typeof DaysOfWeek>;
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const DaysOfWeek$inboundSchema: z.ZodNativeEnum<typeof DaysOfWeek> = z
|
|
27
|
+
.nativeEnum(DaysOfWeek);
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const DaysOfWeek$outboundSchema: z.ZodNativeEnum<typeof DaysOfWeek> =
|
|
31
|
+
DaysOfWeek$inboundSchema;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @internal
|
|
35
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
36
|
+
*/
|
|
37
|
+
export namespace DaysOfWeek$ {
|
|
38
|
+
/** @deprecated use `DaysOfWeek$inboundSchema` instead. */
|
|
39
|
+
export const inboundSchema = DaysOfWeek$inboundSchema;
|
|
40
|
+
/** @deprecated use `DaysOfWeek$outboundSchema` instead. */
|
|
41
|
+
export const outboundSchema = DaysOfWeek$outboundSchema;
|
|
42
|
+
}
|
|
@@ -8,27 +8,54 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Request model to create a service incident.
|
|
13
|
+
*/
|
|
14
|
+
export type IncidentCreateRequest = {
|
|
15
|
+
/**
|
|
16
|
+
* Description of the service incident
|
|
17
|
+
*/
|
|
15
18
|
description: string;
|
|
19
|
+
/**
|
|
20
|
+
* Start time of the incident
|
|
21
|
+
*/
|
|
16
22
|
startDatetime: Date;
|
|
23
|
+
/**
|
|
24
|
+
* Resolution time of the incident
|
|
25
|
+
*/
|
|
17
26
|
resolutionDatetime: Date;
|
|
27
|
+
/**
|
|
28
|
+
* Category of the impact
|
|
29
|
+
*/
|
|
18
30
|
impactCategory: string;
|
|
31
|
+
/**
|
|
32
|
+
* Number of sessions impacted
|
|
33
|
+
*/
|
|
19
34
|
sessionsImpacted: number;
|
|
35
|
+
/**
|
|
36
|
+
* Detailed markdown description of the incident
|
|
37
|
+
*/
|
|
20
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;
|
|
21
51
|
};
|
|
22
52
|
|
|
23
53
|
/** @internal */
|
|
24
|
-
export const
|
|
25
|
-
|
|
54
|
+
export const IncidentCreateRequest$inboundSchema: z.ZodType<
|
|
55
|
+
IncidentCreateRequest,
|
|
26
56
|
z.ZodTypeDef,
|
|
27
57
|
unknown
|
|
28
58
|
> = z.object({
|
|
29
|
-
organization_id: z.nullable(z.number().int()),
|
|
30
|
-
sub_organization_id: z.nullable(z.number().int()),
|
|
31
|
-
sub_organization: z.nullable(z.string()),
|
|
32
59
|
description: z.string(),
|
|
33
60
|
start_datetime: z.string().datetime({ offset: true }).transform(v =>
|
|
34
61
|
new Date(v)
|
|
@@ -39,55 +66,58 @@ export const ServiceIncidentRequest$inboundSchema: z.ZodType<
|
|
|
39
66
|
impact_category: z.string(),
|
|
40
67
|
sessions_impacted: z.number().int(),
|
|
41
68
|
markdown: z.string(),
|
|
69
|
+
organization_id: z.nullable(z.number().int()).optional(),
|
|
70
|
+
sub_organization_id: z.nullable(z.number().int()).optional(),
|
|
71
|
+
sub_organization: z.nullable(z.string()).optional(),
|
|
42
72
|
}).transform((v) => {
|
|
43
73
|
return remap$(v, {
|
|
44
|
-
"organization_id": "organizationId",
|
|
45
|
-
"sub_organization_id": "subOrganizationId",
|
|
46
|
-
"sub_organization": "subOrganization",
|
|
47
74
|
"start_datetime": "startDatetime",
|
|
48
75
|
"resolution_datetime": "resolutionDatetime",
|
|
49
76
|
"impact_category": "impactCategory",
|
|
50
77
|
"sessions_impacted": "sessionsImpacted",
|
|
78
|
+
"organization_id": "organizationId",
|
|
79
|
+
"sub_organization_id": "subOrganizationId",
|
|
80
|
+
"sub_organization": "subOrganization",
|
|
51
81
|
});
|
|
52
82
|
});
|
|
53
83
|
|
|
54
84
|
/** @internal */
|
|
55
|
-
export type
|
|
56
|
-
organization_id: number | null;
|
|
57
|
-
sub_organization_id: number | null;
|
|
58
|
-
sub_organization: string | null;
|
|
85
|
+
export type IncidentCreateRequest$Outbound = {
|
|
59
86
|
description: string;
|
|
60
87
|
start_datetime: string;
|
|
61
88
|
resolution_datetime: string;
|
|
62
89
|
impact_category: string;
|
|
63
90
|
sessions_impacted: number;
|
|
64
91
|
markdown: string;
|
|
92
|
+
organization_id?: number | null | undefined;
|
|
93
|
+
sub_organization_id?: number | null | undefined;
|
|
94
|
+
sub_organization?: string | null | undefined;
|
|
65
95
|
};
|
|
66
96
|
|
|
67
97
|
/** @internal */
|
|
68
|
-
export const
|
|
69
|
-
|
|
98
|
+
export const IncidentCreateRequest$outboundSchema: z.ZodType<
|
|
99
|
+
IncidentCreateRequest$Outbound,
|
|
70
100
|
z.ZodTypeDef,
|
|
71
|
-
|
|
101
|
+
IncidentCreateRequest
|
|
72
102
|
> = z.object({
|
|
73
|
-
organizationId: z.nullable(z.number().int()),
|
|
74
|
-
subOrganizationId: z.nullable(z.number().int()),
|
|
75
|
-
subOrganization: z.nullable(z.string()),
|
|
76
103
|
description: z.string(),
|
|
77
104
|
startDatetime: z.date().transform(v => v.toISOString()),
|
|
78
105
|
resolutionDatetime: z.date().transform(v => v.toISOString()),
|
|
79
106
|
impactCategory: z.string(),
|
|
80
107
|
sessionsImpacted: z.number().int(),
|
|
81
108
|
markdown: z.string(),
|
|
109
|
+
organizationId: z.nullable(z.number().int()).optional(),
|
|
110
|
+
subOrganizationId: z.nullable(z.number().int()).optional(),
|
|
111
|
+
subOrganization: z.nullable(z.string()).optional(),
|
|
82
112
|
}).transform((v) => {
|
|
83
113
|
return remap$(v, {
|
|
84
|
-
organizationId: "organization_id",
|
|
85
|
-
subOrganizationId: "sub_organization_id",
|
|
86
|
-
subOrganization: "sub_organization",
|
|
87
114
|
startDatetime: "start_datetime",
|
|
88
115
|
resolutionDatetime: "resolution_datetime",
|
|
89
116
|
impactCategory: "impact_category",
|
|
90
117
|
sessionsImpacted: "sessions_impacted",
|
|
118
|
+
organizationId: "organization_id",
|
|
119
|
+
subOrganizationId: "sub_organization_id",
|
|
120
|
+
subOrganization: "sub_organization",
|
|
91
121
|
});
|
|
92
122
|
});
|
|
93
123
|
|
|
@@ -95,29 +125,29 @@ export const ServiceIncidentRequest$outboundSchema: z.ZodType<
|
|
|
95
125
|
* @internal
|
|
96
126
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
97
127
|
*/
|
|
98
|
-
export namespace
|
|
99
|
-
/** @deprecated use `
|
|
100
|
-
export const inboundSchema =
|
|
101
|
-
/** @deprecated use `
|
|
102
|
-
export const outboundSchema =
|
|
103
|
-
/** @deprecated use `
|
|
104
|
-
export type Outbound =
|
|
128
|
+
export namespace IncidentCreateRequest$ {
|
|
129
|
+
/** @deprecated use `IncidentCreateRequest$inboundSchema` instead. */
|
|
130
|
+
export const inboundSchema = IncidentCreateRequest$inboundSchema;
|
|
131
|
+
/** @deprecated use `IncidentCreateRequest$outboundSchema` instead. */
|
|
132
|
+
export const outboundSchema = IncidentCreateRequest$outboundSchema;
|
|
133
|
+
/** @deprecated use `IncidentCreateRequest$Outbound` instead. */
|
|
134
|
+
export type Outbound = IncidentCreateRequest$Outbound;
|
|
105
135
|
}
|
|
106
136
|
|
|
107
|
-
export function
|
|
108
|
-
|
|
137
|
+
export function incidentCreateRequestToJSON(
|
|
138
|
+
incidentCreateRequest: IncidentCreateRequest,
|
|
109
139
|
): string {
|
|
110
140
|
return JSON.stringify(
|
|
111
|
-
|
|
141
|
+
IncidentCreateRequest$outboundSchema.parse(incidentCreateRequest),
|
|
112
142
|
);
|
|
113
143
|
}
|
|
114
144
|
|
|
115
|
-
export function
|
|
145
|
+
export function incidentCreateRequestFromJSON(
|
|
116
146
|
jsonString: string,
|
|
117
|
-
): SafeParseResult<
|
|
147
|
+
): SafeParseResult<IncidentCreateRequest, SDKValidationError> {
|
|
118
148
|
return safeParse(
|
|
119
149
|
jsonString,
|
|
120
|
-
(x) =>
|
|
121
|
-
`Failed to parse '
|
|
150
|
+
(x) => IncidentCreateRequest$inboundSchema.parse(JSON.parse(x)),
|
|
151
|
+
`Failed to parse 'IncidentCreateRequest' from JSON`,
|
|
122
152
|
);
|
|
123
153
|
}
|
|
@@ -0,0 +1,85 @@
|
|
|
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 IncidentOrganizationResponse = {
|
|
12
|
+
id: number;
|
|
13
|
+
name: string;
|
|
14
|
+
displayName: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const IncidentOrganizationResponse$inboundSchema: z.ZodType<
|
|
19
|
+
IncidentOrganizationResponse,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
unknown
|
|
22
|
+
> = z.object({
|
|
23
|
+
id: z.number().int(),
|
|
24
|
+
name: z.string(),
|
|
25
|
+
display_name: z.string(),
|
|
26
|
+
}).transform((v) => {
|
|
27
|
+
return remap$(v, {
|
|
28
|
+
"display_name": "displayName",
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export type IncidentOrganizationResponse$Outbound = {
|
|
34
|
+
id: number;
|
|
35
|
+
name: string;
|
|
36
|
+
display_name: string;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const IncidentOrganizationResponse$outboundSchema: z.ZodType<
|
|
41
|
+
IncidentOrganizationResponse$Outbound,
|
|
42
|
+
z.ZodTypeDef,
|
|
43
|
+
IncidentOrganizationResponse
|
|
44
|
+
> = z.object({
|
|
45
|
+
id: z.number().int(),
|
|
46
|
+
name: z.string(),
|
|
47
|
+
displayName: z.string(),
|
|
48
|
+
}).transform((v) => {
|
|
49
|
+
return remap$(v, {
|
|
50
|
+
displayName: "display_name",
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* @internal
|
|
56
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
57
|
+
*/
|
|
58
|
+
export namespace IncidentOrganizationResponse$ {
|
|
59
|
+
/** @deprecated use `IncidentOrganizationResponse$inboundSchema` instead. */
|
|
60
|
+
export const inboundSchema = IncidentOrganizationResponse$inboundSchema;
|
|
61
|
+
/** @deprecated use `IncidentOrganizationResponse$outboundSchema` instead. */
|
|
62
|
+
export const outboundSchema = IncidentOrganizationResponse$outboundSchema;
|
|
63
|
+
/** @deprecated use `IncidentOrganizationResponse$Outbound` instead. */
|
|
64
|
+
export type Outbound = IncidentOrganizationResponse$Outbound;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function incidentOrganizationResponseToJSON(
|
|
68
|
+
incidentOrganizationResponse: IncidentOrganizationResponse,
|
|
69
|
+
): string {
|
|
70
|
+
return JSON.stringify(
|
|
71
|
+
IncidentOrganizationResponse$outboundSchema.parse(
|
|
72
|
+
incidentOrganizationResponse,
|
|
73
|
+
),
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function incidentOrganizationResponseFromJSON(
|
|
78
|
+
jsonString: string,
|
|
79
|
+
): SafeParseResult<IncidentOrganizationResponse, SDKValidationError> {
|
|
80
|
+
return safeParse(
|
|
81
|
+
jsonString,
|
|
82
|
+
(x) => IncidentOrganizationResponse$inboundSchema.parse(JSON.parse(x)),
|
|
83
|
+
`Failed to parse 'IncidentOrganizationResponse' from JSON`,
|
|
84
|
+
);
|
|
85
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Names of agent fields supported for filtering/sorting on list endpoint.
|
|
10
|
+
*/
|
|
11
|
+
export const IncidentProperties = {
|
|
12
|
+
Id: "id",
|
|
13
|
+
Description: "description",
|
|
14
|
+
ImpactCategory: "impact_category",
|
|
15
|
+
SessionsImpacted: "sessions_impacted",
|
|
16
|
+
Markdown: "markdown",
|
|
17
|
+
CreatedAt: "created_at",
|
|
18
|
+
UpdatedAt: "updated_at",
|
|
19
|
+
OrganizationId: "organization_id",
|
|
20
|
+
SubOrganizationId: "sub_organization_id",
|
|
21
|
+
StartDatetime: "start_datetime",
|
|
22
|
+
EndDatetime: "end_datetime",
|
|
23
|
+
ResolutionDatetime: "resolution_datetime",
|
|
24
|
+
} as const;
|
|
25
|
+
/**
|
|
26
|
+
* Names of agent fields supported for filtering/sorting on list endpoint.
|
|
27
|
+
*/
|
|
28
|
+
export type IncidentProperties = ClosedEnum<typeof IncidentProperties>;
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const IncidentProperties$inboundSchema: z.ZodNativeEnum<
|
|
32
|
+
typeof IncidentProperties
|
|
33
|
+
> = z.nativeEnum(IncidentProperties);
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export const IncidentProperties$outboundSchema: z.ZodNativeEnum<
|
|
37
|
+
typeof IncidentProperties
|
|
38
|
+
> = IncidentProperties$inboundSchema;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @internal
|
|
42
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
43
|
+
*/
|
|
44
|
+
export namespace IncidentProperties$ {
|
|
45
|
+
/** @deprecated use `IncidentProperties$inboundSchema` instead. */
|
|
46
|
+
export const inboundSchema = IncidentProperties$inboundSchema;
|
|
47
|
+
/** @deprecated use `IncidentProperties$outboundSchema` instead. */
|
|
48
|
+
export const outboundSchema = IncidentProperties$outboundSchema;
|
|
49
|
+
}
|