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
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { SyllableSDKCore } from "../core.js";
|
|
6
|
-
import * as M from "../lib/matchers.js";
|
|
7
|
-
import { compactMap } from "../lib/primitives.js";
|
|
8
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
9
|
-
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
10
|
-
import { pathToFunc } from "../lib/url.js";
|
|
11
|
-
import * as components from "../models/components/index.js";
|
|
12
|
-
import {
|
|
13
|
-
ConnectionError,
|
|
14
|
-
InvalidRequestError,
|
|
15
|
-
RequestAbortedError,
|
|
16
|
-
RequestTimeoutError,
|
|
17
|
-
UnexpectedClientError,
|
|
18
|
-
} from "../models/errors/httpclienterrors.js";
|
|
19
|
-
import { SDKError } from "../models/errors/sdkerror.js";
|
|
20
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
21
|
-
import { Result } from "../types/fp.js";
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Post Session Summary
|
|
25
|
-
*
|
|
26
|
-
* @remarks
|
|
27
|
-
* METHOD: POST
|
|
28
|
-
* URL: /dashboard/session_summary
|
|
29
|
-
* ARGUMENTS: None
|
|
30
|
-
* RETURNS: Dashboard info for embedding
|
|
31
|
-
* DEPRECATED: This endpoint is deprecated. Please use /dashboard/list instead
|
|
32
|
-
*
|
|
33
|
-
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
34
|
-
*/
|
|
35
|
-
export async function v1PostSessionSummaryDashboard(
|
|
36
|
-
client: SyllableSDKCore,
|
|
37
|
-
options?: RequestOptions,
|
|
38
|
-
): Promise<
|
|
39
|
-
Result<
|
|
40
|
-
components.Dashboard,
|
|
41
|
-
| SDKError
|
|
42
|
-
| SDKValidationError
|
|
43
|
-
| UnexpectedClientError
|
|
44
|
-
| InvalidRequestError
|
|
45
|
-
| RequestAbortedError
|
|
46
|
-
| RequestTimeoutError
|
|
47
|
-
| ConnectionError
|
|
48
|
-
>
|
|
49
|
-
> {
|
|
50
|
-
const path = pathToFunc("/api/v1/dashboards/session_summary")();
|
|
51
|
-
|
|
52
|
-
const headers = new Headers(compactMap({
|
|
53
|
-
Accept: "application/json",
|
|
54
|
-
}));
|
|
55
|
-
|
|
56
|
-
const secConfig = await extractSecurity(client._options.apiKeyHeader);
|
|
57
|
-
const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
|
|
58
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
59
|
-
|
|
60
|
-
const context = {
|
|
61
|
-
baseURL: options?.serverURL ?? "",
|
|
62
|
-
operationID: "post_session_summary_dashboard",
|
|
63
|
-
oAuth2Scopes: [],
|
|
64
|
-
|
|
65
|
-
resolvedSecurity: requestSecurity,
|
|
66
|
-
|
|
67
|
-
securitySource: client._options.apiKeyHeader,
|
|
68
|
-
retryConfig: options?.retries
|
|
69
|
-
|| client._options.retryConfig
|
|
70
|
-
|| { strategy: "none" },
|
|
71
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
const requestRes = client._createRequest(context, {
|
|
75
|
-
security: requestSecurity,
|
|
76
|
-
method: "POST",
|
|
77
|
-
baseURL: options?.serverURL,
|
|
78
|
-
path: path,
|
|
79
|
-
headers: headers,
|
|
80
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
81
|
-
}, options);
|
|
82
|
-
if (!requestRes.ok) {
|
|
83
|
-
return requestRes;
|
|
84
|
-
}
|
|
85
|
-
const req = requestRes.value;
|
|
86
|
-
|
|
87
|
-
const doResult = await client._do(req, {
|
|
88
|
-
context,
|
|
89
|
-
errorCodes: ["4XX", "5XX"],
|
|
90
|
-
retryConfig: context.retryConfig,
|
|
91
|
-
retryCodes: context.retryCodes,
|
|
92
|
-
});
|
|
93
|
-
if (!doResult.ok) {
|
|
94
|
-
return doResult;
|
|
95
|
-
}
|
|
96
|
-
const response = doResult.value;
|
|
97
|
-
|
|
98
|
-
const [result] = await M.match<
|
|
99
|
-
components.Dashboard,
|
|
100
|
-
| SDKError
|
|
101
|
-
| SDKValidationError
|
|
102
|
-
| UnexpectedClientError
|
|
103
|
-
| InvalidRequestError
|
|
104
|
-
| RequestAbortedError
|
|
105
|
-
| RequestTimeoutError
|
|
106
|
-
| ConnectionError
|
|
107
|
-
>(
|
|
108
|
-
M.json(200, components.Dashboard$inboundSchema),
|
|
109
|
-
M.fail("4XX"),
|
|
110
|
-
M.fail("5XX"),
|
|
111
|
-
)(response);
|
|
112
|
-
if (!result.ok) {
|
|
113
|
-
return result;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
return result;
|
|
117
|
-
}
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { SyllableSDKCore } from "../core.js";
|
|
6
|
-
import * as M from "../lib/matchers.js";
|
|
7
|
-
import { compactMap } from "../lib/primitives.js";
|
|
8
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
9
|
-
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
10
|
-
import { pathToFunc } from "../lib/url.js";
|
|
11
|
-
import * as components from "../models/components/index.js";
|
|
12
|
-
import {
|
|
13
|
-
ConnectionError,
|
|
14
|
-
InvalidRequestError,
|
|
15
|
-
RequestAbortedError,
|
|
16
|
-
RequestTimeoutError,
|
|
17
|
-
UnexpectedClientError,
|
|
18
|
-
} from "../models/errors/httpclienterrors.js";
|
|
19
|
-
import { SDKError } from "../models/errors/sdkerror.js";
|
|
20
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
21
|
-
import { Result } from "../types/fp.js";
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Post Session Transfers
|
|
25
|
-
*
|
|
26
|
-
* @remarks
|
|
27
|
-
* METHOD: POST
|
|
28
|
-
* URL: /dashboard/session_transfers
|
|
29
|
-
* ARGUMENTS: None
|
|
30
|
-
* RETURNS: Dashboard info for embedding
|
|
31
|
-
* DEPRECATED: This endpoint is deprecated. Please use /dashboard/list instead
|
|
32
|
-
*
|
|
33
|
-
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
34
|
-
*/
|
|
35
|
-
export async function v1PostSessionTransfersDashboard(
|
|
36
|
-
client: SyllableSDKCore,
|
|
37
|
-
options?: RequestOptions,
|
|
38
|
-
): Promise<
|
|
39
|
-
Result<
|
|
40
|
-
components.Dashboard,
|
|
41
|
-
| SDKError
|
|
42
|
-
| SDKValidationError
|
|
43
|
-
| UnexpectedClientError
|
|
44
|
-
| InvalidRequestError
|
|
45
|
-
| RequestAbortedError
|
|
46
|
-
| RequestTimeoutError
|
|
47
|
-
| ConnectionError
|
|
48
|
-
>
|
|
49
|
-
> {
|
|
50
|
-
const path = pathToFunc("/api/v1/dashboards/session_transfers")();
|
|
51
|
-
|
|
52
|
-
const headers = new Headers(compactMap({
|
|
53
|
-
Accept: "application/json",
|
|
54
|
-
}));
|
|
55
|
-
|
|
56
|
-
const secConfig = await extractSecurity(client._options.apiKeyHeader);
|
|
57
|
-
const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
|
|
58
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
59
|
-
|
|
60
|
-
const context = {
|
|
61
|
-
baseURL: options?.serverURL ?? "",
|
|
62
|
-
operationID: "post_session_transfers_dashboard",
|
|
63
|
-
oAuth2Scopes: [],
|
|
64
|
-
|
|
65
|
-
resolvedSecurity: requestSecurity,
|
|
66
|
-
|
|
67
|
-
securitySource: client._options.apiKeyHeader,
|
|
68
|
-
retryConfig: options?.retries
|
|
69
|
-
|| client._options.retryConfig
|
|
70
|
-
|| { strategy: "none" },
|
|
71
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
const requestRes = client._createRequest(context, {
|
|
75
|
-
security: requestSecurity,
|
|
76
|
-
method: "POST",
|
|
77
|
-
baseURL: options?.serverURL,
|
|
78
|
-
path: path,
|
|
79
|
-
headers: headers,
|
|
80
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
81
|
-
}, options);
|
|
82
|
-
if (!requestRes.ok) {
|
|
83
|
-
return requestRes;
|
|
84
|
-
}
|
|
85
|
-
const req = requestRes.value;
|
|
86
|
-
|
|
87
|
-
const doResult = await client._do(req, {
|
|
88
|
-
context,
|
|
89
|
-
errorCodes: ["4XX", "5XX"],
|
|
90
|
-
retryConfig: context.retryConfig,
|
|
91
|
-
retryCodes: context.retryCodes,
|
|
92
|
-
});
|
|
93
|
-
if (!doResult.ok) {
|
|
94
|
-
return doResult;
|
|
95
|
-
}
|
|
96
|
-
const response = doResult.value;
|
|
97
|
-
|
|
98
|
-
const [result] = await M.match<
|
|
99
|
-
components.Dashboard,
|
|
100
|
-
| SDKError
|
|
101
|
-
| SDKValidationError
|
|
102
|
-
| UnexpectedClientError
|
|
103
|
-
| InvalidRequestError
|
|
104
|
-
| RequestAbortedError
|
|
105
|
-
| RequestTimeoutError
|
|
106
|
-
| ConnectionError
|
|
107
|
-
>(
|
|
108
|
-
M.json(200, components.Dashboard$inboundSchema),
|
|
109
|
-
M.fail("4XX"),
|
|
110
|
-
M.fail("5XX"),
|
|
111
|
-
)(response);
|
|
112
|
-
if (!result.ok) {
|
|
113
|
-
return result;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
return result;
|
|
117
|
-
}
|
|
@@ -1,139 +0,0 @@
|
|
|
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 ServiceIncidentResponse = {
|
|
12
|
-
organizationId: number | null;
|
|
13
|
-
subOrganizationId: number | null;
|
|
14
|
-
subOrganization: string | null;
|
|
15
|
-
description: string;
|
|
16
|
-
startDatetime: Date;
|
|
17
|
-
resolutionDatetime: Date;
|
|
18
|
-
impactCategory: string;
|
|
19
|
-
sessionsImpacted: number;
|
|
20
|
-
markdown: string;
|
|
21
|
-
createdAt: Date;
|
|
22
|
-
updatedAt: Date;
|
|
23
|
-
id: number;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
/** @internal */
|
|
27
|
-
export const ServiceIncidentResponse$inboundSchema: z.ZodType<
|
|
28
|
-
ServiceIncidentResponse,
|
|
29
|
-
z.ZodTypeDef,
|
|
30
|
-
unknown
|
|
31
|
-
> = z.object({
|
|
32
|
-
organization_id: z.nullable(z.number().int()),
|
|
33
|
-
sub_organization_id: z.nullable(z.number().int()),
|
|
34
|
-
sub_organization: z.nullable(z.string()),
|
|
35
|
-
description: z.string(),
|
|
36
|
-
start_datetime: z.string().datetime({ offset: true }).transform(v =>
|
|
37
|
-
new Date(v)
|
|
38
|
-
),
|
|
39
|
-
resolution_datetime: z.string().datetime({ offset: true }).transform(v =>
|
|
40
|
-
new Date(v)
|
|
41
|
-
),
|
|
42
|
-
impact_category: z.string(),
|
|
43
|
-
sessions_impacted: z.number().int(),
|
|
44
|
-
markdown: z.string(),
|
|
45
|
-
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
46
|
-
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
47
|
-
id: z.number().int(),
|
|
48
|
-
}).transform((v) => {
|
|
49
|
-
return remap$(v, {
|
|
50
|
-
"organization_id": "organizationId",
|
|
51
|
-
"sub_organization_id": "subOrganizationId",
|
|
52
|
-
"sub_organization": "subOrganization",
|
|
53
|
-
"start_datetime": "startDatetime",
|
|
54
|
-
"resolution_datetime": "resolutionDatetime",
|
|
55
|
-
"impact_category": "impactCategory",
|
|
56
|
-
"sessions_impacted": "sessionsImpacted",
|
|
57
|
-
"created_at": "createdAt",
|
|
58
|
-
"updated_at": "updatedAt",
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
/** @internal */
|
|
63
|
-
export type ServiceIncidentResponse$Outbound = {
|
|
64
|
-
organization_id: number | null;
|
|
65
|
-
sub_organization_id: number | null;
|
|
66
|
-
sub_organization: string | null;
|
|
67
|
-
description: string;
|
|
68
|
-
start_datetime: string;
|
|
69
|
-
resolution_datetime: string;
|
|
70
|
-
impact_category: string;
|
|
71
|
-
sessions_impacted: number;
|
|
72
|
-
markdown: string;
|
|
73
|
-
created_at: string;
|
|
74
|
-
updated_at: string;
|
|
75
|
-
id: number;
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
/** @internal */
|
|
79
|
-
export const ServiceIncidentResponse$outboundSchema: z.ZodType<
|
|
80
|
-
ServiceIncidentResponse$Outbound,
|
|
81
|
-
z.ZodTypeDef,
|
|
82
|
-
ServiceIncidentResponse
|
|
83
|
-
> = z.object({
|
|
84
|
-
organizationId: z.nullable(z.number().int()),
|
|
85
|
-
subOrganizationId: z.nullable(z.number().int()),
|
|
86
|
-
subOrganization: z.nullable(z.string()),
|
|
87
|
-
description: z.string(),
|
|
88
|
-
startDatetime: z.date().transform(v => v.toISOString()),
|
|
89
|
-
resolutionDatetime: z.date().transform(v => v.toISOString()),
|
|
90
|
-
impactCategory: z.string(),
|
|
91
|
-
sessionsImpacted: z.number().int(),
|
|
92
|
-
markdown: z.string(),
|
|
93
|
-
createdAt: z.date().transform(v => v.toISOString()),
|
|
94
|
-
updatedAt: z.date().transform(v => v.toISOString()),
|
|
95
|
-
id: z.number().int(),
|
|
96
|
-
}).transform((v) => {
|
|
97
|
-
return remap$(v, {
|
|
98
|
-
organizationId: "organization_id",
|
|
99
|
-
subOrganizationId: "sub_organization_id",
|
|
100
|
-
subOrganization: "sub_organization",
|
|
101
|
-
startDatetime: "start_datetime",
|
|
102
|
-
resolutionDatetime: "resolution_datetime",
|
|
103
|
-
impactCategory: "impact_category",
|
|
104
|
-
sessionsImpacted: "sessions_impacted",
|
|
105
|
-
createdAt: "created_at",
|
|
106
|
-
updatedAt: "updated_at",
|
|
107
|
-
});
|
|
108
|
-
});
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* @internal
|
|
112
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
113
|
-
*/
|
|
114
|
-
export namespace ServiceIncidentResponse$ {
|
|
115
|
-
/** @deprecated use `ServiceIncidentResponse$inboundSchema` instead. */
|
|
116
|
-
export const inboundSchema = ServiceIncidentResponse$inboundSchema;
|
|
117
|
-
/** @deprecated use `ServiceIncidentResponse$outboundSchema` instead. */
|
|
118
|
-
export const outboundSchema = ServiceIncidentResponse$outboundSchema;
|
|
119
|
-
/** @deprecated use `ServiceIncidentResponse$Outbound` instead. */
|
|
120
|
-
export type Outbound = ServiceIncidentResponse$Outbound;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
export function serviceIncidentResponseToJSON(
|
|
124
|
-
serviceIncidentResponse: ServiceIncidentResponse,
|
|
125
|
-
): string {
|
|
126
|
-
return JSON.stringify(
|
|
127
|
-
ServiceIncidentResponse$outboundSchema.parse(serviceIncidentResponse),
|
|
128
|
-
);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
export function serviceIncidentResponseFromJSON(
|
|
132
|
-
jsonString: string,
|
|
133
|
-
): SafeParseResult<ServiceIncidentResponse, SDKValidationError> {
|
|
134
|
-
return safeParse(
|
|
135
|
-
jsonString,
|
|
136
|
-
(x) => ServiceIncidentResponse$inboundSchema.parse(JSON.parse(x)),
|
|
137
|
-
`Failed to parse 'ServiceIncidentResponse' from JSON`,
|
|
138
|
-
);
|
|
139
|
-
}
|
|
@@ -1,87 +0,0 @@
|
|
|
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 GetTakeoutApiV1TakeoutsGetJobIdGetRequest = {
|
|
12
|
-
jobId: string;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
/** @internal */
|
|
16
|
-
export const GetTakeoutApiV1TakeoutsGetJobIdGetRequest$inboundSchema: z.ZodType<
|
|
17
|
-
GetTakeoutApiV1TakeoutsGetJobIdGetRequest,
|
|
18
|
-
z.ZodTypeDef,
|
|
19
|
-
unknown
|
|
20
|
-
> = z.object({
|
|
21
|
-
job_id: z.string(),
|
|
22
|
-
}).transform((v) => {
|
|
23
|
-
return remap$(v, {
|
|
24
|
-
"job_id": "jobId",
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
/** @internal */
|
|
29
|
-
export type GetTakeoutApiV1TakeoutsGetJobIdGetRequest$Outbound = {
|
|
30
|
-
job_id: string;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
/** @internal */
|
|
34
|
-
export const GetTakeoutApiV1TakeoutsGetJobIdGetRequest$outboundSchema:
|
|
35
|
-
z.ZodType<
|
|
36
|
-
GetTakeoutApiV1TakeoutsGetJobIdGetRequest$Outbound,
|
|
37
|
-
z.ZodTypeDef,
|
|
38
|
-
GetTakeoutApiV1TakeoutsGetJobIdGetRequest
|
|
39
|
-
> = z.object({
|
|
40
|
-
jobId: z.string(),
|
|
41
|
-
}).transform((v) => {
|
|
42
|
-
return remap$(v, {
|
|
43
|
-
jobId: "job_id",
|
|
44
|
-
});
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* @internal
|
|
49
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
50
|
-
*/
|
|
51
|
-
export namespace GetTakeoutApiV1TakeoutsGetJobIdGetRequest$ {
|
|
52
|
-
/** @deprecated use `GetTakeoutApiV1TakeoutsGetJobIdGetRequest$inboundSchema` instead. */
|
|
53
|
-
export const inboundSchema =
|
|
54
|
-
GetTakeoutApiV1TakeoutsGetJobIdGetRequest$inboundSchema;
|
|
55
|
-
/** @deprecated use `GetTakeoutApiV1TakeoutsGetJobIdGetRequest$outboundSchema` instead. */
|
|
56
|
-
export const outboundSchema =
|
|
57
|
-
GetTakeoutApiV1TakeoutsGetJobIdGetRequest$outboundSchema;
|
|
58
|
-
/** @deprecated use `GetTakeoutApiV1TakeoutsGetJobIdGetRequest$Outbound` instead. */
|
|
59
|
-
export type Outbound = GetTakeoutApiV1TakeoutsGetJobIdGetRequest$Outbound;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export function getTakeoutApiV1TakeoutsGetJobIdGetRequestToJSON(
|
|
63
|
-
getTakeoutApiV1TakeoutsGetJobIdGetRequest:
|
|
64
|
-
GetTakeoutApiV1TakeoutsGetJobIdGetRequest,
|
|
65
|
-
): string {
|
|
66
|
-
return JSON.stringify(
|
|
67
|
-
GetTakeoutApiV1TakeoutsGetJobIdGetRequest$outboundSchema.parse(
|
|
68
|
-
getTakeoutApiV1TakeoutsGetJobIdGetRequest,
|
|
69
|
-
),
|
|
70
|
-
);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export function getTakeoutApiV1TakeoutsGetJobIdGetRequestFromJSON(
|
|
74
|
-
jsonString: string,
|
|
75
|
-
): SafeParseResult<
|
|
76
|
-
GetTakeoutApiV1TakeoutsGetJobIdGetRequest,
|
|
77
|
-
SDKValidationError
|
|
78
|
-
> {
|
|
79
|
-
return safeParse(
|
|
80
|
-
jsonString,
|
|
81
|
-
(x) =>
|
|
82
|
-
GetTakeoutApiV1TakeoutsGetJobIdGetRequest$inboundSchema.parse(
|
|
83
|
-
JSON.parse(x),
|
|
84
|
-
),
|
|
85
|
-
`Failed to parse 'GetTakeoutApiV1TakeoutsGetJobIdGetRequest' from JSON`,
|
|
86
|
-
);
|
|
87
|
-
}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import * as components from "../components/index.js";
|
|
10
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
|
|
12
|
-
export type IncidentUpdateRequest = {
|
|
13
|
-
incidentId: number;
|
|
14
|
-
serviceIncidentRequest: components.ServiceIncidentRequest;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
/** @internal */
|
|
18
|
-
export const IncidentUpdateRequest$inboundSchema: z.ZodType<
|
|
19
|
-
IncidentUpdateRequest,
|
|
20
|
-
z.ZodTypeDef,
|
|
21
|
-
unknown
|
|
22
|
-
> = z.object({
|
|
23
|
-
incident_id: z.number().int(),
|
|
24
|
-
ServiceIncidentRequest: components.ServiceIncidentRequest$inboundSchema,
|
|
25
|
-
}).transform((v) => {
|
|
26
|
-
return remap$(v, {
|
|
27
|
-
"incident_id": "incidentId",
|
|
28
|
-
"ServiceIncidentRequest": "serviceIncidentRequest",
|
|
29
|
-
});
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
/** @internal */
|
|
33
|
-
export type IncidentUpdateRequest$Outbound = {
|
|
34
|
-
incident_id: number;
|
|
35
|
-
ServiceIncidentRequest: components.ServiceIncidentRequest$Outbound;
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
/** @internal */
|
|
39
|
-
export const IncidentUpdateRequest$outboundSchema: z.ZodType<
|
|
40
|
-
IncidentUpdateRequest$Outbound,
|
|
41
|
-
z.ZodTypeDef,
|
|
42
|
-
IncidentUpdateRequest
|
|
43
|
-
> = z.object({
|
|
44
|
-
incidentId: z.number().int(),
|
|
45
|
-
serviceIncidentRequest: components.ServiceIncidentRequest$outboundSchema,
|
|
46
|
-
}).transform((v) => {
|
|
47
|
-
return remap$(v, {
|
|
48
|
-
incidentId: "incident_id",
|
|
49
|
-
serviceIncidentRequest: "ServiceIncidentRequest",
|
|
50
|
-
});
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* @internal
|
|
55
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
56
|
-
*/
|
|
57
|
-
export namespace IncidentUpdateRequest$ {
|
|
58
|
-
/** @deprecated use `IncidentUpdateRequest$inboundSchema` instead. */
|
|
59
|
-
export const inboundSchema = IncidentUpdateRequest$inboundSchema;
|
|
60
|
-
/** @deprecated use `IncidentUpdateRequest$outboundSchema` instead. */
|
|
61
|
-
export const outboundSchema = IncidentUpdateRequest$outboundSchema;
|
|
62
|
-
/** @deprecated use `IncidentUpdateRequest$Outbound` instead. */
|
|
63
|
-
export type Outbound = IncidentUpdateRequest$Outbound;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export function incidentUpdateRequestToJSON(
|
|
67
|
-
incidentUpdateRequest: IncidentUpdateRequest,
|
|
68
|
-
): string {
|
|
69
|
-
return JSON.stringify(
|
|
70
|
-
IncidentUpdateRequest$outboundSchema.parse(incidentUpdateRequest),
|
|
71
|
-
);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export function incidentUpdateRequestFromJSON(
|
|
75
|
-
jsonString: string,
|
|
76
|
-
): SafeParseResult<IncidentUpdateRequest, SDKValidationError> {
|
|
77
|
-
return safeParse(
|
|
78
|
-
jsonString,
|
|
79
|
-
(x) => IncidentUpdateRequest$inboundSchema.parse(JSON.parse(x)),
|
|
80
|
-
`Failed to parse 'IncidentUpdateRequest' from JSON`,
|
|
81
|
-
);
|
|
82
|
-
}
|
package/src/sdk/v1.ts
DELETED
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { v1PostGetDashboard } from "../funcs/v1PostGetDashboard.js";
|
|
6
|
-
import { v1PostListDashboard } from "../funcs/v1PostListDashboard.js";
|
|
7
|
-
import { v1PostSessionEventsDashboard } from "../funcs/v1PostSessionEventsDashboard.js";
|
|
8
|
-
import { v1PostSessionsDashboard } from "../funcs/v1PostSessionsDashboard.js";
|
|
9
|
-
import { v1PostSessionSummaryDashboard } from "../funcs/v1PostSessionSummaryDashboard.js";
|
|
10
|
-
import { v1PostSessionTransfersDashboard } from "../funcs/v1PostSessionTransfersDashboard.js";
|
|
11
|
-
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
12
|
-
import * as components from "../models/components/index.js";
|
|
13
|
-
import * as operations from "../models/operations/index.js";
|
|
14
|
-
import { unwrapAsync } from "../types/fp.js";
|
|
15
|
-
|
|
16
|
-
export class V1 extends ClientSDK {
|
|
17
|
-
/**
|
|
18
|
-
* Post List Dashboards
|
|
19
|
-
*
|
|
20
|
-
* @remarks
|
|
21
|
-
* METHOD: POST
|
|
22
|
-
* URL: /dashboard/list
|
|
23
|
-
* ARGUMENTS: None
|
|
24
|
-
* RETURNS: List of dashboards
|
|
25
|
-
*/
|
|
26
|
-
async postListDashboard(
|
|
27
|
-
request: operations.PostListDashboardRequest,
|
|
28
|
-
options?: RequestOptions,
|
|
29
|
-
): Promise<components.ListResponseDashboardResponse> {
|
|
30
|
-
return unwrapAsync(v1PostListDashboard(
|
|
31
|
-
this,
|
|
32
|
-
request,
|
|
33
|
-
options,
|
|
34
|
-
));
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Post Fetch Info
|
|
39
|
-
*
|
|
40
|
-
* @remarks
|
|
41
|
-
* METHOD: POST
|
|
42
|
-
* URL: /dashboard/fetch_info
|
|
43
|
-
* ARGUMENTS: None
|
|
44
|
-
* RETURNS: Dashboard info for embedding
|
|
45
|
-
*/
|
|
46
|
-
async postGetDashboard(
|
|
47
|
-
request: operations.PostGetDashboardRequest,
|
|
48
|
-
options?: RequestOptions,
|
|
49
|
-
): Promise<components.DashboardTokenResponse> {
|
|
50
|
-
return unwrapAsync(v1PostGetDashboard(
|
|
51
|
-
this,
|
|
52
|
-
request,
|
|
53
|
-
options,
|
|
54
|
-
));
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Post Session Events
|
|
59
|
-
*
|
|
60
|
-
* @remarks
|
|
61
|
-
* METHOD: POST
|
|
62
|
-
* URL: /dashboard/session_events
|
|
63
|
-
* ARGUMENTS: None
|
|
64
|
-
* RETURNS: Dashboard info for embedding
|
|
65
|
-
* DEPRECATED: This endpoint is deprecated. Please use /dashboard/list instead
|
|
66
|
-
*
|
|
67
|
-
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
68
|
-
*/
|
|
69
|
-
async postSessionEventsDashboard(
|
|
70
|
-
options?: RequestOptions,
|
|
71
|
-
): Promise<components.Dashboard> {
|
|
72
|
-
return unwrapAsync(v1PostSessionEventsDashboard(
|
|
73
|
-
this,
|
|
74
|
-
options,
|
|
75
|
-
));
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Post Session Summary
|
|
80
|
-
*
|
|
81
|
-
* @remarks
|
|
82
|
-
* METHOD: POST
|
|
83
|
-
* URL: /dashboard/session_summary
|
|
84
|
-
* ARGUMENTS: None
|
|
85
|
-
* RETURNS: Dashboard info for embedding
|
|
86
|
-
* DEPRECATED: This endpoint is deprecated. Please use /dashboard/list instead
|
|
87
|
-
*
|
|
88
|
-
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
89
|
-
*/
|
|
90
|
-
async postSessionSummaryDashboard(
|
|
91
|
-
options?: RequestOptions,
|
|
92
|
-
): Promise<components.Dashboard> {
|
|
93
|
-
return unwrapAsync(v1PostSessionSummaryDashboard(
|
|
94
|
-
this,
|
|
95
|
-
options,
|
|
96
|
-
));
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* Post Session Transfers
|
|
101
|
-
*
|
|
102
|
-
* @remarks
|
|
103
|
-
* METHOD: POST
|
|
104
|
-
* URL: /dashboard/session_transfers
|
|
105
|
-
* ARGUMENTS: None
|
|
106
|
-
* RETURNS: Dashboard info for embedding
|
|
107
|
-
* DEPRECATED: This endpoint is deprecated. Please use /dashboard/list instead
|
|
108
|
-
*
|
|
109
|
-
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
110
|
-
*/
|
|
111
|
-
async postSessionTransfersDashboard(
|
|
112
|
-
options?: RequestOptions,
|
|
113
|
-
): Promise<components.Dashboard> {
|
|
114
|
-
return unwrapAsync(v1PostSessionTransfersDashboard(
|
|
115
|
-
this,
|
|
116
|
-
options,
|
|
117
|
-
));
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* Post Sessions
|
|
122
|
-
*
|
|
123
|
-
* @remarks
|
|
124
|
-
* METHOD: POST
|
|
125
|
-
* URL: /dashboard/sessions
|
|
126
|
-
* ARGUMENTS: None
|
|
127
|
-
* RETURNS: Dashboard info for embedding
|
|
128
|
-
* DEPRECATED: This endpoint is deprecated. Please use /dashboard/list instead
|
|
129
|
-
*
|
|
130
|
-
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
131
|
-
*/
|
|
132
|
-
async postSessionsDashboard(
|
|
133
|
-
options?: RequestOptions,
|
|
134
|
-
): Promise<components.Dashboard> {
|
|
135
|
-
return unwrapAsync(v1PostSessionsDashboard(
|
|
136
|
-
this,
|
|
137
|
-
options,
|
|
138
|
-
));
|
|
139
|
-
}
|
|
140
|
-
}
|