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
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
LatencyCategory,
|
|
12
|
+
LatencyCategory$inboundSchema,
|
|
13
|
+
LatencyCategory$outboundSchema,
|
|
14
|
+
} from "./latencycategory.js";
|
|
15
|
+
import {
|
|
16
|
+
LatencyUnitType,
|
|
17
|
+
LatencyUnitType$inboundSchema,
|
|
18
|
+
LatencyUnitType$outboundSchema,
|
|
19
|
+
} from "./latencyunittype.js";
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Data model for latency entries.
|
|
23
|
+
*/
|
|
24
|
+
export type LatencyEntry = {
|
|
25
|
+
timestamp: Date;
|
|
26
|
+
measurementStart: Date;
|
|
27
|
+
category: LatencyCategory;
|
|
28
|
+
label: string;
|
|
29
|
+
metadata?: Array<string> | null | undefined;
|
|
30
|
+
unitType: LatencyUnitType;
|
|
31
|
+
value: number;
|
|
32
|
+
valueStr: string;
|
|
33
|
+
timeDelta: string;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const LatencyEntry$inboundSchema: z.ZodType<
|
|
38
|
+
LatencyEntry,
|
|
39
|
+
z.ZodTypeDef,
|
|
40
|
+
unknown
|
|
41
|
+
> = z.object({
|
|
42
|
+
timestamp: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
43
|
+
measurement_start: z.string().datetime({ offset: true }).transform(v =>
|
|
44
|
+
new Date(v)
|
|
45
|
+
),
|
|
46
|
+
category: LatencyCategory$inboundSchema,
|
|
47
|
+
label: z.string(),
|
|
48
|
+
metadata: z.nullable(z.array(z.string())).optional(),
|
|
49
|
+
unit_type: LatencyUnitType$inboundSchema,
|
|
50
|
+
value: z.number(),
|
|
51
|
+
value_str: z.string(),
|
|
52
|
+
time_delta: z.string(),
|
|
53
|
+
}).transform((v) => {
|
|
54
|
+
return remap$(v, {
|
|
55
|
+
"measurement_start": "measurementStart",
|
|
56
|
+
"unit_type": "unitType",
|
|
57
|
+
"value_str": "valueStr",
|
|
58
|
+
"time_delta": "timeDelta",
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
/** @internal */
|
|
63
|
+
export type LatencyEntry$Outbound = {
|
|
64
|
+
timestamp: string;
|
|
65
|
+
measurement_start: string;
|
|
66
|
+
category: string;
|
|
67
|
+
label: string;
|
|
68
|
+
metadata?: Array<string> | null | undefined;
|
|
69
|
+
unit_type: string;
|
|
70
|
+
value: number;
|
|
71
|
+
value_str: string;
|
|
72
|
+
time_delta: string;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
/** @internal */
|
|
76
|
+
export const LatencyEntry$outboundSchema: z.ZodType<
|
|
77
|
+
LatencyEntry$Outbound,
|
|
78
|
+
z.ZodTypeDef,
|
|
79
|
+
LatencyEntry
|
|
80
|
+
> = z.object({
|
|
81
|
+
timestamp: z.date().transform(v => v.toISOString()),
|
|
82
|
+
measurementStart: z.date().transform(v => v.toISOString()),
|
|
83
|
+
category: LatencyCategory$outboundSchema,
|
|
84
|
+
label: z.string(),
|
|
85
|
+
metadata: z.nullable(z.array(z.string())).optional(),
|
|
86
|
+
unitType: LatencyUnitType$outboundSchema,
|
|
87
|
+
value: z.number(),
|
|
88
|
+
valueStr: z.string(),
|
|
89
|
+
timeDelta: z.string(),
|
|
90
|
+
}).transform((v) => {
|
|
91
|
+
return remap$(v, {
|
|
92
|
+
measurementStart: "measurement_start",
|
|
93
|
+
unitType: "unit_type",
|
|
94
|
+
valueStr: "value_str",
|
|
95
|
+
timeDelta: "time_delta",
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* @internal
|
|
101
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
102
|
+
*/
|
|
103
|
+
export namespace LatencyEntry$ {
|
|
104
|
+
/** @deprecated use `LatencyEntry$inboundSchema` instead. */
|
|
105
|
+
export const inboundSchema = LatencyEntry$inboundSchema;
|
|
106
|
+
/** @deprecated use `LatencyEntry$outboundSchema` instead. */
|
|
107
|
+
export const outboundSchema = LatencyEntry$outboundSchema;
|
|
108
|
+
/** @deprecated use `LatencyEntry$Outbound` instead. */
|
|
109
|
+
export type Outbound = LatencyEntry$Outbound;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export function latencyEntryToJSON(latencyEntry: LatencyEntry): string {
|
|
113
|
+
return JSON.stringify(LatencyEntry$outboundSchema.parse(latencyEntry));
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export function latencyEntryFromJSON(
|
|
117
|
+
jsonString: string,
|
|
118
|
+
): SafeParseResult<LatencyEntry, SDKValidationError> {
|
|
119
|
+
return safeParse(
|
|
120
|
+
jsonString,
|
|
121
|
+
(x) => LatencyEntry$inboundSchema.parse(JSON.parse(x)),
|
|
122
|
+
`Failed to parse 'LatencyEntry' from JSON`,
|
|
123
|
+
);
|
|
124
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
export const LatencyUnitType = {
|
|
9
|
+
Minutes: "minutes",
|
|
10
|
+
Seconds: "seconds",
|
|
11
|
+
Milliseconds: "milliseconds",
|
|
12
|
+
Microseconds: "microseconds",
|
|
13
|
+
Nanoseconds: "nanoseconds",
|
|
14
|
+
} as const;
|
|
15
|
+
export type LatencyUnitType = ClosedEnum<typeof LatencyUnitType>;
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const LatencyUnitType$inboundSchema: z.ZodNativeEnum<
|
|
19
|
+
typeof LatencyUnitType
|
|
20
|
+
> = z.nativeEnum(LatencyUnitType);
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const LatencyUnitType$outboundSchema: z.ZodNativeEnum<
|
|
24
|
+
typeof LatencyUnitType
|
|
25
|
+
> = LatencyUnitType$inboundSchema;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* @internal
|
|
29
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
30
|
+
*/
|
|
31
|
+
export namespace LatencyUnitType$ {
|
|
32
|
+
/** @deprecated use `LatencyUnitType$inboundSchema` instead. */
|
|
33
|
+
export const inboundSchema = LatencyUnitType$inboundSchema;
|
|
34
|
+
/** @deprecated use `LatencyUnitType$outboundSchema` instead. */
|
|
35
|
+
export const outboundSchema = LatencyUnitType$outboundSchema;
|
|
36
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
CommunicationBatch,
|
|
12
|
+
CommunicationBatch$inboundSchema,
|
|
13
|
+
CommunicationBatch$Outbound,
|
|
14
|
+
CommunicationBatch$outboundSchema,
|
|
15
|
+
} from "./communicationbatch.js";
|
|
16
|
+
|
|
17
|
+
export type ListResponseCommunicationBatch = {
|
|
18
|
+
/**
|
|
19
|
+
* List of items returned from the query
|
|
20
|
+
*/
|
|
21
|
+
items: Array<CommunicationBatch>;
|
|
22
|
+
/**
|
|
23
|
+
* The page number of the results (0-based)
|
|
24
|
+
*/
|
|
25
|
+
page: number;
|
|
26
|
+
/**
|
|
27
|
+
* The number of items returned per page
|
|
28
|
+
*/
|
|
29
|
+
pageSize: number;
|
|
30
|
+
/**
|
|
31
|
+
* The total number of pages of results given the indicated page size
|
|
32
|
+
*/
|
|
33
|
+
totalPages?: number | null | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* The total number of items returned from the query
|
|
36
|
+
*/
|
|
37
|
+
totalCount?: number | null | undefined;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const ListResponseCommunicationBatch$inboundSchema: z.ZodType<
|
|
42
|
+
ListResponseCommunicationBatch,
|
|
43
|
+
z.ZodTypeDef,
|
|
44
|
+
unknown
|
|
45
|
+
> = z.object({
|
|
46
|
+
items: z.array(CommunicationBatch$inboundSchema),
|
|
47
|
+
page: z.number().int(),
|
|
48
|
+
page_size: z.number().int(),
|
|
49
|
+
total_pages: z.nullable(z.number().int()).optional(),
|
|
50
|
+
total_count: z.nullable(z.number().int()).optional(),
|
|
51
|
+
}).transform((v) => {
|
|
52
|
+
return remap$(v, {
|
|
53
|
+
"page_size": "pageSize",
|
|
54
|
+
"total_pages": "totalPages",
|
|
55
|
+
"total_count": "totalCount",
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
/** @internal */
|
|
60
|
+
export type ListResponseCommunicationBatch$Outbound = {
|
|
61
|
+
items: Array<CommunicationBatch$Outbound>;
|
|
62
|
+
page: number;
|
|
63
|
+
page_size: number;
|
|
64
|
+
total_pages?: number | null | undefined;
|
|
65
|
+
total_count?: number | null | undefined;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
/** @internal */
|
|
69
|
+
export const ListResponseCommunicationBatch$outboundSchema: z.ZodType<
|
|
70
|
+
ListResponseCommunicationBatch$Outbound,
|
|
71
|
+
z.ZodTypeDef,
|
|
72
|
+
ListResponseCommunicationBatch
|
|
73
|
+
> = z.object({
|
|
74
|
+
items: z.array(CommunicationBatch$outboundSchema),
|
|
75
|
+
page: z.number().int(),
|
|
76
|
+
pageSize: z.number().int(),
|
|
77
|
+
totalPages: z.nullable(z.number().int()).optional(),
|
|
78
|
+
totalCount: z.nullable(z.number().int()).optional(),
|
|
79
|
+
}).transform((v) => {
|
|
80
|
+
return remap$(v, {
|
|
81
|
+
pageSize: "page_size",
|
|
82
|
+
totalPages: "total_pages",
|
|
83
|
+
totalCount: "total_count",
|
|
84
|
+
});
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* @internal
|
|
89
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
90
|
+
*/
|
|
91
|
+
export namespace ListResponseCommunicationBatch$ {
|
|
92
|
+
/** @deprecated use `ListResponseCommunicationBatch$inboundSchema` instead. */
|
|
93
|
+
export const inboundSchema = ListResponseCommunicationBatch$inboundSchema;
|
|
94
|
+
/** @deprecated use `ListResponseCommunicationBatch$outboundSchema` instead. */
|
|
95
|
+
export const outboundSchema = ListResponseCommunicationBatch$outboundSchema;
|
|
96
|
+
/** @deprecated use `ListResponseCommunicationBatch$Outbound` instead. */
|
|
97
|
+
export type Outbound = ListResponseCommunicationBatch$Outbound;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function listResponseCommunicationBatchToJSON(
|
|
101
|
+
listResponseCommunicationBatch: ListResponseCommunicationBatch,
|
|
102
|
+
): string {
|
|
103
|
+
return JSON.stringify(
|
|
104
|
+
ListResponseCommunicationBatch$outboundSchema.parse(
|
|
105
|
+
listResponseCommunicationBatch,
|
|
106
|
+
),
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export function listResponseCommunicationBatchFromJSON(
|
|
111
|
+
jsonString: string,
|
|
112
|
+
): SafeParseResult<ListResponseCommunicationBatch, SDKValidationError> {
|
|
113
|
+
return safeParse(
|
|
114
|
+
jsonString,
|
|
115
|
+
(x) => ListResponseCommunicationBatch$inboundSchema.parse(JSON.parse(x)),
|
|
116
|
+
`Failed to parse 'ListResponseCommunicationBatch' from JSON`,
|
|
117
|
+
);
|
|
118
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
IncidentResponse,
|
|
12
|
+
IncidentResponse$inboundSchema,
|
|
13
|
+
IncidentResponse$Outbound,
|
|
14
|
+
IncidentResponse$outboundSchema,
|
|
15
|
+
} from "./incidentresponse.js";
|
|
16
|
+
|
|
17
|
+
export type ListResponseIncidentResponse = {
|
|
18
|
+
/**
|
|
19
|
+
* List of items returned from the query
|
|
20
|
+
*/
|
|
21
|
+
items: Array<IncidentResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* The page number of the results (0-based)
|
|
24
|
+
*/
|
|
25
|
+
page: number;
|
|
26
|
+
/**
|
|
27
|
+
* The number of items returned per page
|
|
28
|
+
*/
|
|
29
|
+
pageSize: number;
|
|
30
|
+
/**
|
|
31
|
+
* The total number of pages of results given the indicated page size
|
|
32
|
+
*/
|
|
33
|
+
totalPages?: number | null | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* The total number of items returned from the query
|
|
36
|
+
*/
|
|
37
|
+
totalCount?: number | null | undefined;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const ListResponseIncidentResponse$inboundSchema: z.ZodType<
|
|
42
|
+
ListResponseIncidentResponse,
|
|
43
|
+
z.ZodTypeDef,
|
|
44
|
+
unknown
|
|
45
|
+
> = z.object({
|
|
46
|
+
items: z.array(IncidentResponse$inboundSchema),
|
|
47
|
+
page: z.number().int(),
|
|
48
|
+
page_size: z.number().int(),
|
|
49
|
+
total_pages: z.nullable(z.number().int()).optional(),
|
|
50
|
+
total_count: z.nullable(z.number().int()).optional(),
|
|
51
|
+
}).transform((v) => {
|
|
52
|
+
return remap$(v, {
|
|
53
|
+
"page_size": "pageSize",
|
|
54
|
+
"total_pages": "totalPages",
|
|
55
|
+
"total_count": "totalCount",
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
/** @internal */
|
|
60
|
+
export type ListResponseIncidentResponse$Outbound = {
|
|
61
|
+
items: Array<IncidentResponse$Outbound>;
|
|
62
|
+
page: number;
|
|
63
|
+
page_size: number;
|
|
64
|
+
total_pages?: number | null | undefined;
|
|
65
|
+
total_count?: number | null | undefined;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
/** @internal */
|
|
69
|
+
export const ListResponseIncidentResponse$outboundSchema: z.ZodType<
|
|
70
|
+
ListResponseIncidentResponse$Outbound,
|
|
71
|
+
z.ZodTypeDef,
|
|
72
|
+
ListResponseIncidentResponse
|
|
73
|
+
> = z.object({
|
|
74
|
+
items: z.array(IncidentResponse$outboundSchema),
|
|
75
|
+
page: z.number().int(),
|
|
76
|
+
pageSize: z.number().int(),
|
|
77
|
+
totalPages: z.nullable(z.number().int()).optional(),
|
|
78
|
+
totalCount: z.nullable(z.number().int()).optional(),
|
|
79
|
+
}).transform((v) => {
|
|
80
|
+
return remap$(v, {
|
|
81
|
+
pageSize: "page_size",
|
|
82
|
+
totalPages: "total_pages",
|
|
83
|
+
totalCount: "total_count",
|
|
84
|
+
});
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* @internal
|
|
89
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
90
|
+
*/
|
|
91
|
+
export namespace ListResponseIncidentResponse$ {
|
|
92
|
+
/** @deprecated use `ListResponseIncidentResponse$inboundSchema` instead. */
|
|
93
|
+
export const inboundSchema = ListResponseIncidentResponse$inboundSchema;
|
|
94
|
+
/** @deprecated use `ListResponseIncidentResponse$outboundSchema` instead. */
|
|
95
|
+
export const outboundSchema = ListResponseIncidentResponse$outboundSchema;
|
|
96
|
+
/** @deprecated use `ListResponseIncidentResponse$Outbound` instead. */
|
|
97
|
+
export type Outbound = ListResponseIncidentResponse$Outbound;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function listResponseIncidentResponseToJSON(
|
|
101
|
+
listResponseIncidentResponse: ListResponseIncidentResponse,
|
|
102
|
+
): string {
|
|
103
|
+
return JSON.stringify(
|
|
104
|
+
ListResponseIncidentResponse$outboundSchema.parse(
|
|
105
|
+
listResponseIncidentResponse,
|
|
106
|
+
),
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export function listResponseIncidentResponseFromJSON(
|
|
111
|
+
jsonString: string,
|
|
112
|
+
): SafeParseResult<ListResponseIncidentResponse, SDKValidationError> {
|
|
113
|
+
return safeParse(
|
|
114
|
+
jsonString,
|
|
115
|
+
(x) => ListResponseIncidentResponse$inboundSchema.parse(JSON.parse(x)),
|
|
116
|
+
`Failed to parse 'ListResponseIncidentResponse' from JSON`,
|
|
117
|
+
);
|
|
118
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
OutboundCampaign,
|
|
12
|
+
OutboundCampaign$inboundSchema,
|
|
13
|
+
OutboundCampaign$Outbound,
|
|
14
|
+
OutboundCampaign$outboundSchema,
|
|
15
|
+
} from "./outboundcampaign.js";
|
|
16
|
+
|
|
17
|
+
export type ListResponseOutboundCampaign = {
|
|
18
|
+
/**
|
|
19
|
+
* List of items returned from the query
|
|
20
|
+
*/
|
|
21
|
+
items: Array<OutboundCampaign>;
|
|
22
|
+
/**
|
|
23
|
+
* The page number of the results (0-based)
|
|
24
|
+
*/
|
|
25
|
+
page: number;
|
|
26
|
+
/**
|
|
27
|
+
* The number of items returned per page
|
|
28
|
+
*/
|
|
29
|
+
pageSize: number;
|
|
30
|
+
/**
|
|
31
|
+
* The total number of pages of results given the indicated page size
|
|
32
|
+
*/
|
|
33
|
+
totalPages?: number | null | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* The total number of items returned from the query
|
|
36
|
+
*/
|
|
37
|
+
totalCount?: number | null | undefined;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const ListResponseOutboundCampaign$inboundSchema: z.ZodType<
|
|
42
|
+
ListResponseOutboundCampaign,
|
|
43
|
+
z.ZodTypeDef,
|
|
44
|
+
unknown
|
|
45
|
+
> = z.object({
|
|
46
|
+
items: z.array(OutboundCampaign$inboundSchema),
|
|
47
|
+
page: z.number().int(),
|
|
48
|
+
page_size: z.number().int(),
|
|
49
|
+
total_pages: z.nullable(z.number().int()).optional(),
|
|
50
|
+
total_count: z.nullable(z.number().int()).optional(),
|
|
51
|
+
}).transform((v) => {
|
|
52
|
+
return remap$(v, {
|
|
53
|
+
"page_size": "pageSize",
|
|
54
|
+
"total_pages": "totalPages",
|
|
55
|
+
"total_count": "totalCount",
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
/** @internal */
|
|
60
|
+
export type ListResponseOutboundCampaign$Outbound = {
|
|
61
|
+
items: Array<OutboundCampaign$Outbound>;
|
|
62
|
+
page: number;
|
|
63
|
+
page_size: number;
|
|
64
|
+
total_pages?: number | null | undefined;
|
|
65
|
+
total_count?: number | null | undefined;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
/** @internal */
|
|
69
|
+
export const ListResponseOutboundCampaign$outboundSchema: z.ZodType<
|
|
70
|
+
ListResponseOutboundCampaign$Outbound,
|
|
71
|
+
z.ZodTypeDef,
|
|
72
|
+
ListResponseOutboundCampaign
|
|
73
|
+
> = z.object({
|
|
74
|
+
items: z.array(OutboundCampaign$outboundSchema),
|
|
75
|
+
page: z.number().int(),
|
|
76
|
+
pageSize: z.number().int(),
|
|
77
|
+
totalPages: z.nullable(z.number().int()).optional(),
|
|
78
|
+
totalCount: z.nullable(z.number().int()).optional(),
|
|
79
|
+
}).transform((v) => {
|
|
80
|
+
return remap$(v, {
|
|
81
|
+
pageSize: "page_size",
|
|
82
|
+
totalPages: "total_pages",
|
|
83
|
+
totalCount: "total_count",
|
|
84
|
+
});
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* @internal
|
|
89
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
90
|
+
*/
|
|
91
|
+
export namespace ListResponseOutboundCampaign$ {
|
|
92
|
+
/** @deprecated use `ListResponseOutboundCampaign$inboundSchema` instead. */
|
|
93
|
+
export const inboundSchema = ListResponseOutboundCampaign$inboundSchema;
|
|
94
|
+
/** @deprecated use `ListResponseOutboundCampaign$outboundSchema` instead. */
|
|
95
|
+
export const outboundSchema = ListResponseOutboundCampaign$outboundSchema;
|
|
96
|
+
/** @deprecated use `ListResponseOutboundCampaign$Outbound` instead. */
|
|
97
|
+
export type Outbound = ListResponseOutboundCampaign$Outbound;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function listResponseOutboundCampaignToJSON(
|
|
101
|
+
listResponseOutboundCampaign: ListResponseOutboundCampaign,
|
|
102
|
+
): string {
|
|
103
|
+
return JSON.stringify(
|
|
104
|
+
ListResponseOutboundCampaign$outboundSchema.parse(
|
|
105
|
+
listResponseOutboundCampaign,
|
|
106
|
+
),
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export function listResponseOutboundCampaignFromJSON(
|
|
111
|
+
jsonString: string,
|
|
112
|
+
): SafeParseResult<ListResponseOutboundCampaign, SDKValidationError> {
|
|
113
|
+
return safeParse(
|
|
114
|
+
jsonString,
|
|
115
|
+
(x) => ListResponseOutboundCampaign$inboundSchema.parse(JSON.parse(x)),
|
|
116
|
+
`Failed to parse 'ListResponseOutboundCampaign' from JSON`,
|
|
117
|
+
);
|
|
118
|
+
}
|
|
@@ -7,6 +7,11 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
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
|
+
import {
|
|
11
|
+
DaysOfWeek,
|
|
12
|
+
DaysOfWeek$inboundSchema,
|
|
13
|
+
DaysOfWeek$outboundSchema,
|
|
14
|
+
} from "./daysofweek.js";
|
|
10
15
|
|
|
11
16
|
/**
|
|
12
17
|
* Variables for campaign
|
|
@@ -18,6 +23,14 @@ export type OutboundCampaign = {
|
|
|
18
23
|
* Human readable name of campaign
|
|
19
24
|
*/
|
|
20
25
|
campaignName: string;
|
|
26
|
+
/**
|
|
27
|
+
* Description of campaign
|
|
28
|
+
*/
|
|
29
|
+
description?: string | null | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Label for campaign
|
|
32
|
+
*/
|
|
33
|
+
label?: string | null | undefined;
|
|
21
34
|
/**
|
|
22
35
|
* Variables for campaign
|
|
23
36
|
*/
|
|
@@ -43,9 +56,9 @@ export type OutboundCampaign = {
|
|
|
43
56
|
*/
|
|
44
57
|
callerId: string | null;
|
|
45
58
|
/**
|
|
46
|
-
* Target number of outreach calls per
|
|
59
|
+
* Target number of outreach calls per hour
|
|
47
60
|
*/
|
|
48
|
-
|
|
61
|
+
hourlyRate?: number | undefined;
|
|
49
62
|
/**
|
|
50
63
|
* Number of retries per target
|
|
51
64
|
*/
|
|
@@ -55,9 +68,9 @@ export type OutboundCampaign = {
|
|
|
55
68
|
*/
|
|
56
69
|
retryInterval?: string | null | undefined;
|
|
57
70
|
/**
|
|
58
|
-
*
|
|
71
|
+
* Days of the week when campaign is active
|
|
59
72
|
*/
|
|
60
|
-
|
|
73
|
+
activeDays: Array<DaysOfWeek>;
|
|
61
74
|
/**
|
|
62
75
|
* Unique ID for campaign
|
|
63
76
|
*/
|
|
@@ -131,16 +144,18 @@ export const OutboundCampaign$inboundSchema: z.ZodType<
|
|
|
131
144
|
unknown
|
|
132
145
|
> = z.object({
|
|
133
146
|
campaign_name: z.string(),
|
|
147
|
+
description: z.nullable(z.string()).optional(),
|
|
148
|
+
label: z.nullable(z.string()).optional(),
|
|
134
149
|
campaign_variables: z.lazy(() => CampaignVariables$inboundSchema),
|
|
135
150
|
daily_start_time: z.string(),
|
|
136
151
|
daily_end_time: z.string(),
|
|
137
152
|
timezone: z.string(),
|
|
138
153
|
source: z.nullable(z.string()).optional(),
|
|
139
154
|
caller_id: z.nullable(z.string()),
|
|
140
|
-
|
|
155
|
+
hourly_rate: z.number().int().default(1),
|
|
141
156
|
retry_count: z.number().int().default(0),
|
|
142
157
|
retry_interval: z.nullable(z.string()).optional(),
|
|
143
|
-
|
|
158
|
+
active_days: z.array(DaysOfWeek$inboundSchema),
|
|
144
159
|
id: z.number().int(),
|
|
145
160
|
created_at: z.string().optional(),
|
|
146
161
|
updated_at: z.string().optional(),
|
|
@@ -152,9 +167,10 @@ export const OutboundCampaign$inboundSchema: z.ZodType<
|
|
|
152
167
|
"daily_start_time": "dailyStartTime",
|
|
153
168
|
"daily_end_time": "dailyEndTime",
|
|
154
169
|
"caller_id": "callerId",
|
|
170
|
+
"hourly_rate": "hourlyRate",
|
|
155
171
|
"retry_count": "retryCount",
|
|
156
172
|
"retry_interval": "retryInterval",
|
|
157
|
-
"
|
|
173
|
+
"active_days": "activeDays",
|
|
158
174
|
"created_at": "createdAt",
|
|
159
175
|
"updated_at": "updatedAt",
|
|
160
176
|
"last_updated_by": "lastUpdatedBy",
|
|
@@ -164,16 +180,18 @@ export const OutboundCampaign$inboundSchema: z.ZodType<
|
|
|
164
180
|
/** @internal */
|
|
165
181
|
export type OutboundCampaign$Outbound = {
|
|
166
182
|
campaign_name: string;
|
|
183
|
+
description?: string | null | undefined;
|
|
184
|
+
label?: string | null | undefined;
|
|
167
185
|
campaign_variables: CampaignVariables$Outbound;
|
|
168
186
|
daily_start_time: string;
|
|
169
187
|
daily_end_time: string;
|
|
170
188
|
timezone: string;
|
|
171
189
|
source?: string | null | undefined;
|
|
172
190
|
caller_id: string | null;
|
|
173
|
-
|
|
191
|
+
hourly_rate: number;
|
|
174
192
|
retry_count: number;
|
|
175
193
|
retry_interval?: string | null | undefined;
|
|
176
|
-
|
|
194
|
+
active_days: Array<string>;
|
|
177
195
|
id: number;
|
|
178
196
|
created_at?: string | undefined;
|
|
179
197
|
updated_at?: string | undefined;
|
|
@@ -187,16 +205,18 @@ export const OutboundCampaign$outboundSchema: z.ZodType<
|
|
|
187
205
|
OutboundCampaign
|
|
188
206
|
> = z.object({
|
|
189
207
|
campaignName: z.string(),
|
|
208
|
+
description: z.nullable(z.string()).optional(),
|
|
209
|
+
label: z.nullable(z.string()).optional(),
|
|
190
210
|
campaignVariables: z.lazy(() => CampaignVariables$outboundSchema),
|
|
191
211
|
dailyStartTime: z.string(),
|
|
192
212
|
dailyEndTime: z.string(),
|
|
193
213
|
timezone: z.string(),
|
|
194
214
|
source: z.nullable(z.string()).optional(),
|
|
195
215
|
callerId: z.nullable(z.string()),
|
|
196
|
-
|
|
216
|
+
hourlyRate: z.number().int().default(1),
|
|
197
217
|
retryCount: z.number().int().default(0),
|
|
198
218
|
retryInterval: z.nullable(z.string()).optional(),
|
|
199
|
-
|
|
219
|
+
activeDays: z.array(DaysOfWeek$outboundSchema),
|
|
200
220
|
id: z.number().int(),
|
|
201
221
|
createdAt: z.string().optional(),
|
|
202
222
|
updatedAt: z.string().optional(),
|
|
@@ -208,9 +228,10 @@ export const OutboundCampaign$outboundSchema: z.ZodType<
|
|
|
208
228
|
dailyStartTime: "daily_start_time",
|
|
209
229
|
dailyEndTime: "daily_end_time",
|
|
210
230
|
callerId: "caller_id",
|
|
231
|
+
hourlyRate: "hourly_rate",
|
|
211
232
|
retryCount: "retry_count",
|
|
212
233
|
retryInterval: "retry_interval",
|
|
213
|
-
|
|
234
|
+
activeDays: "active_days",
|
|
214
235
|
createdAt: "created_at",
|
|
215
236
|
updatedAt: "updated_at",
|
|
216
237
|
lastUpdatedBy: "last_updated_by",
|