@unified-api/typescript-sdk 2.54.0 → 2.58.0
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 +24 -0
- package/docs/sdks/comment/README.md +512 -0
- package/docs/sdks/connection/README.md +4 -4
- package/docs/sdks/recording/README.md +500 -0
- package/docs/sdks/uc/README.md +1054 -42
- package/docs/sdks/unified/README.md +10 -10
- package/docs/sdks/webhook/README.md +6 -6
- package/funcs/accountingListAccountingReports.js +2 -0
- package/funcs/accountingListAccountingReports.js.map +1 -1
- package/funcs/commentCreateUcComment.d.ts +14 -0
- package/funcs/commentCreateUcComment.d.ts.map +1 -0
- package/funcs/commentCreateUcComment.js +109 -0
- package/funcs/commentCreateUcComment.js.map +1 -0
- package/funcs/commentGetUcComment.d.ts +14 -0
- package/funcs/commentGetUcComment.d.ts.map +1 -0
- package/funcs/commentGetUcComment.js +112 -0
- package/funcs/commentGetUcComment.js.map +1 -0
- package/funcs/commentListUcComments.d.ts +14 -0
- package/funcs/commentListUcComments.d.ts.map +1 -0
- package/funcs/commentListUcComments.js +117 -0
- package/funcs/commentListUcComments.js.map +1 -0
- package/funcs/commentPatchUcComment.d.ts +14 -0
- package/funcs/commentPatchUcComment.d.ts.map +1 -0
- package/funcs/commentPatchUcComment.js +113 -0
- package/funcs/commentPatchUcComment.js.map +1 -0
- package/funcs/commentRemoveUcComment.d.ts +13 -0
- package/funcs/commentRemoveUcComment.d.ts.map +1 -0
- package/funcs/commentRemoveUcComment.js +110 -0
- package/funcs/commentRemoveUcComment.js.map +1 -0
- package/funcs/commentUpdateUcComment.d.ts +14 -0
- package/funcs/commentUpdateUcComment.d.ts.map +1 -0
- package/funcs/commentUpdateUcComment.js +113 -0
- package/funcs/commentUpdateUcComment.js.map +1 -0
- package/funcs/passthroughCreatePassthroughJson.js +4 -0
- package/funcs/passthroughCreatePassthroughJson.js.map +1 -1
- package/funcs/passthroughCreatePassthroughRaw.js +4 -0
- package/funcs/passthroughCreatePassthroughRaw.js.map +1 -1
- package/funcs/passthroughListPassthroughs.js +4 -0
- package/funcs/passthroughListPassthroughs.js.map +1 -1
- package/funcs/passthroughPatchPassthroughJson.js +4 -0
- package/funcs/passthroughPatchPassthroughJson.js.map +1 -1
- package/funcs/passthroughPatchPassthroughRaw.js +4 -0
- package/funcs/passthroughPatchPassthroughRaw.js.map +1 -1
- package/funcs/passthroughRemovePassthrough.js +4 -0
- package/funcs/passthroughRemovePassthrough.js.map +1 -1
- package/funcs/passthroughUpdatePassthroughJson.js +4 -0
- package/funcs/passthroughUpdatePassthroughJson.js.map +1 -1
- package/funcs/passthroughUpdatePassthroughRaw.js +4 -0
- package/funcs/passthroughUpdatePassthroughRaw.js.map +1 -1
- package/funcs/recordingCreateUcRecording.d.ts +14 -0
- package/funcs/recordingCreateUcRecording.d.ts.map +1 -0
- package/funcs/recordingCreateUcRecording.js +109 -0
- package/funcs/recordingCreateUcRecording.js.map +1 -0
- package/funcs/recordingGetUcRecording.d.ts +14 -0
- package/funcs/recordingGetUcRecording.d.ts.map +1 -0
- package/funcs/recordingGetUcRecording.js +112 -0
- package/funcs/recordingGetUcRecording.js.map +1 -0
- package/funcs/recordingListUcRecordings.d.ts +14 -0
- package/funcs/recordingListUcRecordings.d.ts.map +1 -0
- package/funcs/recordingListUcRecordings.js +119 -0
- package/funcs/recordingListUcRecordings.js.map +1 -0
- package/funcs/recordingPatchUcRecording.d.ts +14 -0
- package/funcs/recordingPatchUcRecording.d.ts.map +1 -0
- package/funcs/recordingPatchUcRecording.js +113 -0
- package/funcs/recordingPatchUcRecording.js.map +1 -0
- package/funcs/recordingRemoveUcRecording.d.ts +13 -0
- package/funcs/recordingRemoveUcRecording.d.ts.map +1 -0
- package/funcs/recordingRemoveUcRecording.js +110 -0
- package/funcs/recordingRemoveUcRecording.js.map +1 -0
- package/funcs/recordingUpdateUcRecording.d.ts +14 -0
- package/funcs/recordingUpdateUcRecording.d.ts.map +1 -0
- package/funcs/recordingUpdateUcRecording.js +113 -0
- package/funcs/recordingUpdateUcRecording.js.map +1 -0
- package/funcs/reportListAccountingReports.js +2 -0
- package/funcs/reportListAccountingReports.js.map +1 -1
- package/funcs/ucCreateUcComment.d.ts +14 -0
- package/funcs/ucCreateUcComment.d.ts.map +1 -0
- package/funcs/ucCreateUcComment.js +109 -0
- package/funcs/ucCreateUcComment.js.map +1 -0
- package/funcs/ucCreateUcRecording.d.ts +14 -0
- package/funcs/ucCreateUcRecording.d.ts.map +1 -0
- package/funcs/ucCreateUcRecording.js +109 -0
- package/funcs/ucCreateUcRecording.js.map +1 -0
- package/funcs/ucGetUcComment.d.ts +14 -0
- package/funcs/ucGetUcComment.d.ts.map +1 -0
- package/funcs/ucGetUcComment.js +112 -0
- package/funcs/ucGetUcComment.js.map +1 -0
- package/funcs/ucGetUcRecording.d.ts +14 -0
- package/funcs/ucGetUcRecording.d.ts.map +1 -0
- package/funcs/ucGetUcRecording.js +112 -0
- package/funcs/ucGetUcRecording.js.map +1 -0
- package/funcs/ucListUcComments.d.ts +14 -0
- package/funcs/ucListUcComments.d.ts.map +1 -0
- package/funcs/ucListUcComments.js +117 -0
- package/funcs/ucListUcComments.js.map +1 -0
- package/funcs/ucListUcRecordings.d.ts +14 -0
- package/funcs/ucListUcRecordings.d.ts.map +1 -0
- package/funcs/ucListUcRecordings.js +119 -0
- package/funcs/ucListUcRecordings.js.map +1 -0
- package/funcs/ucPatchUcComment.d.ts +14 -0
- package/funcs/ucPatchUcComment.d.ts.map +1 -0
- package/funcs/ucPatchUcComment.js +113 -0
- package/funcs/ucPatchUcComment.js.map +1 -0
- package/funcs/ucPatchUcRecording.d.ts +14 -0
- package/funcs/ucPatchUcRecording.d.ts.map +1 -0
- package/funcs/ucPatchUcRecording.js +113 -0
- package/funcs/ucPatchUcRecording.js.map +1 -0
- package/funcs/ucRemoveUcComment.d.ts +13 -0
- package/funcs/ucRemoveUcComment.d.ts.map +1 -0
- package/funcs/ucRemoveUcComment.js +110 -0
- package/funcs/ucRemoveUcComment.js.map +1 -0
- package/funcs/ucRemoveUcRecording.d.ts +13 -0
- package/funcs/ucRemoveUcRecording.d.ts.map +1 -0
- package/funcs/ucRemoveUcRecording.js +110 -0
- package/funcs/ucRemoveUcRecording.js.map +1 -0
- package/funcs/ucUpdateUcComment.d.ts +14 -0
- package/funcs/ucUpdateUcComment.d.ts.map +1 -0
- package/funcs/ucUpdateUcComment.js +113 -0
- package/funcs/ucUpdateUcComment.js.map +1 -0
- package/funcs/ucUpdateUcRecording.d.ts +14 -0
- package/funcs/ucUpdateUcRecording.d.ts.map +1 -0
- package/funcs/ucUpdateUcRecording.js +113 -0
- package/funcs/ucUpdateUcRecording.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/package.json +1 -1
- package/sdk/comment.d.ts +24 -0
- package/sdk/comment.d.ts.map +1 -1
- package/sdk/comment.js +42 -0
- package/sdk/comment.js.map +1 -1
- package/sdk/models/operations/createpassthroughjson.d.ts +6 -0
- package/sdk/models/operations/createpassthroughjson.d.ts.map +1 -1
- package/sdk/models/operations/createpassthroughjson.js +2 -0
- package/sdk/models/operations/createpassthroughjson.js.map +1 -1
- package/sdk/models/operations/createpassthroughraw.d.ts +6 -0
- package/sdk/models/operations/createpassthroughraw.d.ts.map +1 -1
- package/sdk/models/operations/createpassthroughraw.js +2 -0
- package/sdk/models/operations/createpassthroughraw.js.map +1 -1
- package/sdk/models/operations/createuccomment.d.ts +40 -0
- package/sdk/models/operations/createuccomment.d.ts.map +1 -0
- package/sdk/models/operations/createuccomment.js +75 -0
- package/sdk/models/operations/createuccomment.js.map +1 -0
- package/sdk/models/operations/createucrecording.d.ts +40 -0
- package/sdk/models/operations/createucrecording.d.ts.map +1 -0
- package/sdk/models/operations/createucrecording.js +75 -0
- package/sdk/models/operations/createucrecording.js.map +1 -0
- package/sdk/models/operations/getuccomment.d.ts +42 -0
- package/sdk/models/operations/getuccomment.d.ts.map +1 -0
- package/sdk/models/operations/getuccomment.js +72 -0
- package/sdk/models/operations/getuccomment.js.map +1 -0
- package/sdk/models/operations/getucrecording.d.ts +42 -0
- package/sdk/models/operations/getucrecording.d.ts.map +1 -0
- package/sdk/models/operations/getucrecording.js +72 -0
- package/sdk/models/operations/getucrecording.js.map +1 -0
- package/sdk/models/operations/index.d.ts +12 -0
- package/sdk/models/operations/index.d.ts.map +1 -1
- package/sdk/models/operations/index.js +12 -0
- package/sdk/models/operations/index.js.map +1 -1
- package/sdk/models/operations/listaccountingreports.d.ts +4 -0
- package/sdk/models/operations/listaccountingreports.d.ts.map +1 -1
- package/sdk/models/operations/listaccountingreports.js +8 -0
- package/sdk/models/operations/listaccountingreports.js.map +1 -1
- package/sdk/models/operations/listpassthroughs.d.ts +6 -0
- package/sdk/models/operations/listpassthroughs.d.ts.map +1 -1
- package/sdk/models/operations/listpassthroughs.js +2 -0
- package/sdk/models/operations/listpassthroughs.js.map +1 -1
- package/sdk/models/operations/listuccomments.d.ts +59 -0
- package/sdk/models/operations/listuccomments.d.ts.map +1 -0
- package/sdk/models/operations/listuccomments.js +93 -0
- package/sdk/models/operations/listuccomments.js.map +1 -0
- package/sdk/models/operations/listucrecordings.d.ts +63 -0
- package/sdk/models/operations/listucrecordings.d.ts.map +1 -0
- package/sdk/models/operations/listucrecordings.js +101 -0
- package/sdk/models/operations/listucrecordings.js.map +1 -0
- package/sdk/models/operations/patchpassthroughjson.d.ts +6 -0
- package/sdk/models/operations/patchpassthroughjson.d.ts.map +1 -1
- package/sdk/models/operations/patchpassthroughjson.js +2 -0
- package/sdk/models/operations/patchpassthroughjson.js.map +1 -1
- package/sdk/models/operations/patchpassthroughraw.d.ts +6 -0
- package/sdk/models/operations/patchpassthroughraw.d.ts.map +1 -1
- package/sdk/models/operations/patchpassthroughraw.js +2 -0
- package/sdk/models/operations/patchpassthroughraw.js.map +1 -1
- package/sdk/models/operations/patchuccomment.d.ts +45 -0
- package/sdk/models/operations/patchuccomment.d.ts.map +1 -0
- package/sdk/models/operations/patchuccomment.js +77 -0
- package/sdk/models/operations/patchuccomment.js.map +1 -0
- package/sdk/models/operations/patchucrecording.d.ts +45 -0
- package/sdk/models/operations/patchucrecording.d.ts.map +1 -0
- package/sdk/models/operations/patchucrecording.js +77 -0
- package/sdk/models/operations/patchucrecording.js.map +1 -0
- package/sdk/models/operations/removepassthrough.d.ts +6 -0
- package/sdk/models/operations/removepassthrough.d.ts.map +1 -1
- package/sdk/models/operations/removepassthrough.js +2 -0
- package/sdk/models/operations/removepassthrough.js.map +1 -1
- package/sdk/models/operations/removeuccomment.d.ts +66 -0
- package/sdk/models/operations/removeuccomment.d.ts.map +1 -0
- package/sdk/models/operations/removeuccomment.js +105 -0
- package/sdk/models/operations/removeuccomment.js.map +1 -0
- package/sdk/models/operations/removeucrecording.d.ts +66 -0
- package/sdk/models/operations/removeucrecording.d.ts.map +1 -0
- package/sdk/models/operations/removeucrecording.js +105 -0
- package/sdk/models/operations/removeucrecording.js.map +1 -0
- package/sdk/models/operations/updatepassthroughjson.d.ts +6 -0
- package/sdk/models/operations/updatepassthroughjson.d.ts.map +1 -1
- package/sdk/models/operations/updatepassthroughjson.js +2 -0
- package/sdk/models/operations/updatepassthroughjson.js.map +1 -1
- package/sdk/models/operations/updatepassthroughraw.d.ts +6 -0
- package/sdk/models/operations/updatepassthroughraw.d.ts.map +1 -1
- package/sdk/models/operations/updatepassthroughraw.js +2 -0
- package/sdk/models/operations/updatepassthroughraw.js.map +1 -1
- package/sdk/models/operations/updateuccomment.d.ts +45 -0
- package/sdk/models/operations/updateuccomment.d.ts.map +1 -0
- package/sdk/models/operations/updateuccomment.js +77 -0
- package/sdk/models/operations/updateuccomment.js.map +1 -0
- package/sdk/models/operations/updateucrecording.d.ts +45 -0
- package/sdk/models/operations/updateucrecording.d.ts.map +1 -0
- package/sdk/models/operations/updateucrecording.js +77 -0
- package/sdk/models/operations/updateucrecording.js.map +1 -0
- package/sdk/models/shared/accountingattachment.d.ts +6 -6
- package/sdk/models/shared/accountingattachment.d.ts.map +1 -1
- package/sdk/models/shared/accountingattachment.js +6 -6
- package/sdk/models/shared/accountingattachment.js.map +1 -1
- package/sdk/models/shared/accountingbalancesheetitem.d.ts +36 -0
- package/sdk/models/shared/accountingbalancesheetitem.d.ts.map +1 -0
- package/sdk/models/shared/accountingbalancesheetitem.js +79 -0
- package/sdk/models/shared/accountingbalancesheetitem.js.map +1 -0
- package/sdk/models/shared/accountingprofitandlosscategory.d.ts +34 -0
- package/sdk/models/shared/accountingprofitandlosscategory.d.ts.map +1 -0
- package/sdk/models/shared/accountingprofitandlosscategory.js +75 -0
- package/sdk/models/shared/accountingprofitandlosscategory.js.map +1 -0
- package/sdk/models/shared/accountingprofitandlosssubcategory.d.ts +33 -0
- package/sdk/models/shared/accountingprofitandlosssubcategory.d.ts.map +1 -0
- package/sdk/models/shared/accountingprofitandlosssubcategory.js +72 -0
- package/sdk/models/shared/accountingprofitandlosssubcategory.js.map +1 -0
- package/sdk/models/shared/accountingreport.d.ts +17 -10
- package/sdk/models/shared/accountingreport.d.ts.map +1 -1
- package/sdk/models/shared/accountingreport.js +31 -14
- package/sdk/models/shared/accountingreport.js.map +1 -1
- package/sdk/models/shared/accountingtrialbalancesubitem.d.ts +33 -0
- package/sdk/models/shared/accountingtrialbalancesubitem.d.ts.map +1 -0
- package/sdk/models/shared/accountingtrialbalancesubitem.js +74 -0
- package/sdk/models/shared/accountingtrialbalancesubitem.js.map +1 -0
- package/sdk/models/shared/index.d.ts +12 -0
- package/sdk/models/shared/index.d.ts.map +1 -1
- package/sdk/models/shared/index.js +12 -0
- package/sdk/models/shared/index.js.map +1 -1
- package/sdk/models/shared/integrationsupport.d.ts +30 -0
- package/sdk/models/shared/integrationsupport.d.ts.map +1 -1
- package/sdk/models/shared/integrationsupport.js +31 -6
- package/sdk/models/shared/integrationsupport.js.map +1 -1
- package/sdk/models/shared/propertyaccountingbalancesheetitemsubitems.d.ts +25 -0
- package/sdk/models/shared/propertyaccountingbalancesheetitemsubitems.d.ts.map +1 -0
- package/sdk/models/shared/propertyaccountingbalancesheetitemsubitems.js +55 -0
- package/sdk/models/shared/propertyaccountingbalancesheetitemsubitems.js.map +1 -0
- package/sdk/models/shared/propertyaccountingreportbalancesheet.d.ts +36 -0
- package/sdk/models/shared/propertyaccountingreportbalancesheet.d.ts.map +1 -0
- package/sdk/models/shared/propertyaccountingreportbalancesheet.js +75 -0
- package/sdk/models/shared/propertyaccountingreportbalancesheet.js.map +1 -0
- package/sdk/models/shared/propertyaccountingreportprofitandloss.d.ts +38 -0
- package/sdk/models/shared/propertyaccountingreportprofitandloss.d.ts.map +1 -0
- package/sdk/models/shared/propertyaccountingreportprofitandloss.js +83 -0
- package/sdk/models/shared/propertyaccountingreportprofitandloss.js.map +1 -0
- package/sdk/models/shared/propertyaccountingreporttrialbalance.d.ts +34 -0
- package/sdk/models/shared/propertyaccountingreporttrialbalance.d.ts.map +1 -0
- package/sdk/models/shared/propertyaccountingreporttrialbalance.js +77 -0
- package/sdk/models/shared/propertyaccountingreporttrialbalance.js.map +1 -0
- package/sdk/models/shared/propertyconnectionpermissions.d.ts +9 -0
- package/sdk/models/shared/propertyconnectionpermissions.d.ts.map +1 -1
- package/sdk/models/shared/propertyconnectionpermissions.js +3 -0
- package/sdk/models/shared/propertyconnectionpermissions.js.map +1 -1
- package/sdk/models/shared/uccall.d.ts +0 -3
- package/sdk/models/shared/uccall.d.ts.map +1 -1
- package/sdk/models/shared/uccall.js.map +1 -1
- package/sdk/models/shared/uccomment.d.ts +43 -0
- package/sdk/models/shared/uccomment.d.ts.map +1 -0
- package/sdk/models/shared/uccomment.js +82 -0
- package/sdk/models/shared/uccomment.js.map +1 -0
- package/sdk/models/shared/uccontact.d.ts +0 -3
- package/sdk/models/shared/uccontact.d.ts.map +1 -1
- package/sdk/models/shared/uccontact.js.map +1 -1
- package/sdk/models/shared/ucrecording.d.ts +60 -0
- package/sdk/models/shared/ucrecording.d.ts.map +1 -0
- package/sdk/models/shared/ucrecording.js +120 -0
- package/sdk/models/shared/ucrecording.js.map +1 -0
- package/sdk/models/shared/ucrecordingmedia.d.ts +40 -0
- package/sdk/models/shared/ucrecordingmedia.d.ts.map +1 -0
- package/sdk/models/shared/ucrecordingmedia.js +87 -0
- package/sdk/models/shared/ucrecordingmedia.js.map +1 -0
- package/sdk/models/shared/ucrecordingtranscript.d.ts +37 -0
- package/sdk/models/shared/ucrecordingtranscript.d.ts.map +1 -0
- package/sdk/models/shared/ucrecordingtranscript.js +84 -0
- package/sdk/models/shared/ucrecordingtranscript.js.map +1 -0
- package/sdk/models/shared/webhook.d.ts +6 -0
- package/sdk/models/shared/webhook.d.ts.map +1 -1
- package/sdk/models/shared/webhook.js +2 -0
- package/sdk/models/shared/webhook.js.map +1 -1
- package/sdk/recording.d.ts +24 -0
- package/sdk/recording.d.ts.map +1 -1
- package/sdk/recording.js +42 -0
- package/sdk/recording.js.map +1 -1
- package/sdk/uc.d.ts +48 -0
- package/sdk/uc.d.ts.map +1 -1
- package/sdk/uc.js +84 -0
- package/sdk/uc.js.map +1 -1
- package/src/funcs/accountingListAccountingReports.ts +2 -0
- package/src/funcs/commentCreateUcComment.ts +163 -0
- package/src/funcs/commentGetUcComment.ts +166 -0
- package/src/funcs/commentListUcComments.ts +171 -0
- package/src/funcs/commentPatchUcComment.ts +167 -0
- package/src/funcs/commentRemoveUcComment.ts +169 -0
- package/src/funcs/commentUpdateUcComment.ts +167 -0
- package/src/funcs/passthroughCreatePassthroughJson.ts +6 -1
- package/src/funcs/passthroughCreatePassthroughRaw.ts +6 -1
- package/src/funcs/passthroughListPassthroughs.ts +6 -1
- package/src/funcs/passthroughPatchPassthroughJson.ts +6 -1
- package/src/funcs/passthroughPatchPassthroughRaw.ts +6 -1
- package/src/funcs/passthroughRemovePassthrough.ts +6 -1
- package/src/funcs/passthroughUpdatePassthroughJson.ts +6 -1
- package/src/funcs/passthroughUpdatePassthroughRaw.ts +6 -1
- package/src/funcs/recordingCreateUcRecording.ts +163 -0
- package/src/funcs/recordingGetUcRecording.ts +166 -0
- package/src/funcs/recordingListUcRecordings.ts +173 -0
- package/src/funcs/recordingPatchUcRecording.ts +167 -0
- package/src/funcs/recordingRemoveUcRecording.ts +169 -0
- package/src/funcs/recordingUpdateUcRecording.ts +167 -0
- package/src/funcs/reportListAccountingReports.ts +2 -0
- package/src/funcs/ucCreateUcComment.ts +163 -0
- package/src/funcs/ucCreateUcRecording.ts +163 -0
- package/src/funcs/ucGetUcComment.ts +166 -0
- package/src/funcs/ucGetUcRecording.ts +166 -0
- package/src/funcs/ucListUcComments.ts +171 -0
- package/src/funcs/ucListUcRecordings.ts +173 -0
- package/src/funcs/ucPatchUcComment.ts +167 -0
- package/src/funcs/ucPatchUcRecording.ts +167 -0
- package/src/funcs/ucRemoveUcComment.ts +169 -0
- package/src/funcs/ucRemoveUcRecording.ts +169 -0
- package/src/funcs/ucUpdateUcComment.ts +167 -0
- package/src/funcs/ucUpdateUcRecording.ts +167 -0
- package/src/lib/config.ts +2 -2
- package/src/sdk/comment.ts +90 -0
- package/src/sdk/models/operations/createpassthroughjson.ts +4 -0
- package/src/sdk/models/operations/createpassthroughraw.ts +4 -0
- package/src/sdk/models/operations/createuccomment.ts +92 -0
- package/src/sdk/models/operations/createucrecording.ts +92 -0
- package/src/sdk/models/operations/getuccomment.ts +92 -0
- package/src/sdk/models/operations/getucrecording.ts +92 -0
- package/src/sdk/models/operations/index.ts +12 -0
- package/src/sdk/models/operations/listaccountingreports.ts +12 -0
- package/src/sdk/models/operations/listpassthroughs.ts +4 -0
- package/src/sdk/models/operations/listuccomments.ts +130 -0
- package/src/sdk/models/operations/listucrecordings.ts +142 -0
- package/src/sdk/models/operations/patchpassthroughjson.ts +4 -0
- package/src/sdk/models/operations/patchpassthroughraw.ts +4 -0
- package/src/sdk/models/operations/patchuccomment.ts +99 -0
- package/src/sdk/models/operations/patchucrecording.ts +99 -0
- package/src/sdk/models/operations/removepassthrough.ts +4 -0
- package/src/sdk/models/operations/removeuccomment.ts +151 -0
- package/src/sdk/models/operations/removeucrecording.ts +151 -0
- package/src/sdk/models/operations/updatepassthroughjson.ts +4 -0
- package/src/sdk/models/operations/updatepassthroughraw.ts +4 -0
- package/src/sdk/models/operations/updateuccomment.ts +99 -0
- package/src/sdk/models/operations/updateucrecording.ts +99 -0
- package/src/sdk/models/shared/accountingattachment.ts +12 -12
- package/src/sdk/models/shared/accountingbalancesheetitem.ts +99 -0
- package/src/sdk/models/shared/accountingprofitandlosscategory.ts +93 -0
- package/src/sdk/models/shared/accountingprofitandlosssubcategory.ts +87 -0
- package/src/sdk/models/shared/accountingreport.ts +60 -24
- package/src/sdk/models/shared/accountingtrialbalancesubitem.ts +87 -0
- package/src/sdk/models/shared/index.ts +12 -0
- package/src/sdk/models/shared/integrationsupport.ts +32 -0
- package/src/sdk/models/shared/propertyaccountingbalancesheetitemsubitems.ts +68 -0
- package/src/sdk/models/shared/propertyaccountingreportbalancesheet.ts +98 -0
- package/src/sdk/models/shared/propertyaccountingreportprofitandloss.ts +110 -0
- package/src/sdk/models/shared/propertyaccountingreporttrialbalance.ts +98 -0
- package/src/sdk/models/shared/propertyconnectionpermissions.ts +3 -0
- package/src/sdk/models/shared/uccall.ts +0 -3
- package/src/sdk/models/shared/uccomment.ts +95 -0
- package/src/sdk/models/shared/uccontact.ts +0 -3
- package/src/sdk/models/shared/ucrecording.ts +154 -0
- package/src/sdk/models/shared/ucrecordingmedia.ts +109 -0
- package/src/sdk/models/shared/ucrecordingtranscript.ts +99 -0
- package/src/sdk/models/shared/webhook.ts +2 -0
- package/src/sdk/recording.ts +90 -0
- package/src/sdk/uc.ts +180 -0
|
@@ -0,0 +1,110 @@
|
|
|
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
|
+
AccountingProfitAndLossCategory,
|
|
12
|
+
AccountingProfitAndLossCategory$inboundSchema,
|
|
13
|
+
AccountingProfitAndLossCategory$Outbound,
|
|
14
|
+
AccountingProfitAndLossCategory$outboundSchema,
|
|
15
|
+
} from "./accountingprofitandlosscategory.js";
|
|
16
|
+
|
|
17
|
+
export type PropertyAccountingReportProfitAndLoss = {
|
|
18
|
+
costOfGoodsSold?: Array<AccountingProfitAndLossCategory> | undefined;
|
|
19
|
+
expenses?: Array<AccountingProfitAndLossCategory> | undefined;
|
|
20
|
+
grossProfitAmount?: number | undefined;
|
|
21
|
+
income?: Array<AccountingProfitAndLossCategory> | undefined;
|
|
22
|
+
netProfitAmount?: number | undefined;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const PropertyAccountingReportProfitAndLoss$inboundSchema: z.ZodType<
|
|
27
|
+
PropertyAccountingReportProfitAndLoss,
|
|
28
|
+
z.ZodTypeDef,
|
|
29
|
+
unknown
|
|
30
|
+
> = z.object({
|
|
31
|
+
cost_of_goods_sold: z.array(AccountingProfitAndLossCategory$inboundSchema)
|
|
32
|
+
.optional(),
|
|
33
|
+
expenses: z.array(AccountingProfitAndLossCategory$inboundSchema).optional(),
|
|
34
|
+
gross_profit_amount: z.number().optional(),
|
|
35
|
+
income: z.array(AccountingProfitAndLossCategory$inboundSchema).optional(),
|
|
36
|
+
net_profit_amount: z.number().optional(),
|
|
37
|
+
}).transform((v) => {
|
|
38
|
+
return remap$(v, {
|
|
39
|
+
"cost_of_goods_sold": "costOfGoodsSold",
|
|
40
|
+
"gross_profit_amount": "grossProfitAmount",
|
|
41
|
+
"net_profit_amount": "netProfitAmount",
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export type PropertyAccountingReportProfitAndLoss$Outbound = {
|
|
47
|
+
cost_of_goods_sold?:
|
|
48
|
+
| Array<AccountingProfitAndLossCategory$Outbound>
|
|
49
|
+
| undefined;
|
|
50
|
+
expenses?: Array<AccountingProfitAndLossCategory$Outbound> | undefined;
|
|
51
|
+
gross_profit_amount?: number | undefined;
|
|
52
|
+
income?: Array<AccountingProfitAndLossCategory$Outbound> | undefined;
|
|
53
|
+
net_profit_amount?: number | undefined;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
/** @internal */
|
|
57
|
+
export const PropertyAccountingReportProfitAndLoss$outboundSchema: z.ZodType<
|
|
58
|
+
PropertyAccountingReportProfitAndLoss$Outbound,
|
|
59
|
+
z.ZodTypeDef,
|
|
60
|
+
PropertyAccountingReportProfitAndLoss
|
|
61
|
+
> = z.object({
|
|
62
|
+
costOfGoodsSold: z.array(AccountingProfitAndLossCategory$outboundSchema)
|
|
63
|
+
.optional(),
|
|
64
|
+
expenses: z.array(AccountingProfitAndLossCategory$outboundSchema).optional(),
|
|
65
|
+
grossProfitAmount: z.number().optional(),
|
|
66
|
+
income: z.array(AccountingProfitAndLossCategory$outboundSchema).optional(),
|
|
67
|
+
netProfitAmount: z.number().optional(),
|
|
68
|
+
}).transform((v) => {
|
|
69
|
+
return remap$(v, {
|
|
70
|
+
costOfGoodsSold: "cost_of_goods_sold",
|
|
71
|
+
grossProfitAmount: "gross_profit_amount",
|
|
72
|
+
netProfitAmount: "net_profit_amount",
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* @internal
|
|
78
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
79
|
+
*/
|
|
80
|
+
export namespace PropertyAccountingReportProfitAndLoss$ {
|
|
81
|
+
/** @deprecated use `PropertyAccountingReportProfitAndLoss$inboundSchema` instead. */
|
|
82
|
+
export const inboundSchema =
|
|
83
|
+
PropertyAccountingReportProfitAndLoss$inboundSchema;
|
|
84
|
+
/** @deprecated use `PropertyAccountingReportProfitAndLoss$outboundSchema` instead. */
|
|
85
|
+
export const outboundSchema =
|
|
86
|
+
PropertyAccountingReportProfitAndLoss$outboundSchema;
|
|
87
|
+
/** @deprecated use `PropertyAccountingReportProfitAndLoss$Outbound` instead. */
|
|
88
|
+
export type Outbound = PropertyAccountingReportProfitAndLoss$Outbound;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function propertyAccountingReportProfitAndLossToJSON(
|
|
92
|
+
propertyAccountingReportProfitAndLoss: PropertyAccountingReportProfitAndLoss,
|
|
93
|
+
): string {
|
|
94
|
+
return JSON.stringify(
|
|
95
|
+
PropertyAccountingReportProfitAndLoss$outboundSchema.parse(
|
|
96
|
+
propertyAccountingReportProfitAndLoss,
|
|
97
|
+
),
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function propertyAccountingReportProfitAndLossFromJSON(
|
|
102
|
+
jsonString: string,
|
|
103
|
+
): SafeParseResult<PropertyAccountingReportProfitAndLoss, SDKValidationError> {
|
|
104
|
+
return safeParse(
|
|
105
|
+
jsonString,
|
|
106
|
+
(x) =>
|
|
107
|
+
PropertyAccountingReportProfitAndLoss$inboundSchema.parse(JSON.parse(x)),
|
|
108
|
+
`Failed to parse 'PropertyAccountingReportProfitAndLoss' from JSON`,
|
|
109
|
+
);
|
|
110
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
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
|
+
AccountingTrialBalanceSubItem,
|
|
12
|
+
AccountingTrialBalanceSubItem$inboundSchema,
|
|
13
|
+
AccountingTrialBalanceSubItem$Outbound,
|
|
14
|
+
AccountingTrialBalanceSubItem$outboundSchema,
|
|
15
|
+
} from "./accountingtrialbalancesubitem.js";
|
|
16
|
+
|
|
17
|
+
export type PropertyAccountingReportTrialBalance = {
|
|
18
|
+
subItems?: Array<AccountingTrialBalanceSubItem> | undefined;
|
|
19
|
+
totalCreditAmount?: number | undefined;
|
|
20
|
+
totalDebitAmount?: number | undefined;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const PropertyAccountingReportTrialBalance$inboundSchema: z.ZodType<
|
|
25
|
+
PropertyAccountingReportTrialBalance,
|
|
26
|
+
z.ZodTypeDef,
|
|
27
|
+
unknown
|
|
28
|
+
> = z.object({
|
|
29
|
+
sub_items: z.array(AccountingTrialBalanceSubItem$inboundSchema).optional(),
|
|
30
|
+
total_credit_amount: z.number().optional(),
|
|
31
|
+
total_debit_amount: z.number().optional(),
|
|
32
|
+
}).transform((v) => {
|
|
33
|
+
return remap$(v, {
|
|
34
|
+
"sub_items": "subItems",
|
|
35
|
+
"total_credit_amount": "totalCreditAmount",
|
|
36
|
+
"total_debit_amount": "totalDebitAmount",
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export type PropertyAccountingReportTrialBalance$Outbound = {
|
|
42
|
+
sub_items?: Array<AccountingTrialBalanceSubItem$Outbound> | undefined;
|
|
43
|
+
total_credit_amount?: number | undefined;
|
|
44
|
+
total_debit_amount?: number | undefined;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
/** @internal */
|
|
48
|
+
export const PropertyAccountingReportTrialBalance$outboundSchema: z.ZodType<
|
|
49
|
+
PropertyAccountingReportTrialBalance$Outbound,
|
|
50
|
+
z.ZodTypeDef,
|
|
51
|
+
PropertyAccountingReportTrialBalance
|
|
52
|
+
> = z.object({
|
|
53
|
+
subItems: z.array(AccountingTrialBalanceSubItem$outboundSchema).optional(),
|
|
54
|
+
totalCreditAmount: z.number().optional(),
|
|
55
|
+
totalDebitAmount: z.number().optional(),
|
|
56
|
+
}).transform((v) => {
|
|
57
|
+
return remap$(v, {
|
|
58
|
+
subItems: "sub_items",
|
|
59
|
+
totalCreditAmount: "total_credit_amount",
|
|
60
|
+
totalDebitAmount: "total_debit_amount",
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* @internal
|
|
66
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
67
|
+
*/
|
|
68
|
+
export namespace PropertyAccountingReportTrialBalance$ {
|
|
69
|
+
/** @deprecated use `PropertyAccountingReportTrialBalance$inboundSchema` instead. */
|
|
70
|
+
export const inboundSchema =
|
|
71
|
+
PropertyAccountingReportTrialBalance$inboundSchema;
|
|
72
|
+
/** @deprecated use `PropertyAccountingReportTrialBalance$outboundSchema` instead. */
|
|
73
|
+
export const outboundSchema =
|
|
74
|
+
PropertyAccountingReportTrialBalance$outboundSchema;
|
|
75
|
+
/** @deprecated use `PropertyAccountingReportTrialBalance$Outbound` instead. */
|
|
76
|
+
export type Outbound = PropertyAccountingReportTrialBalance$Outbound;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function propertyAccountingReportTrialBalanceToJSON(
|
|
80
|
+
propertyAccountingReportTrialBalance: PropertyAccountingReportTrialBalance,
|
|
81
|
+
): string {
|
|
82
|
+
return JSON.stringify(
|
|
83
|
+
PropertyAccountingReportTrialBalance$outboundSchema.parse(
|
|
84
|
+
propertyAccountingReportTrialBalance,
|
|
85
|
+
),
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function propertyAccountingReportTrialBalanceFromJSON(
|
|
90
|
+
jsonString: string,
|
|
91
|
+
): SafeParseResult<PropertyAccountingReportTrialBalance, SDKValidationError> {
|
|
92
|
+
return safeParse(
|
|
93
|
+
jsonString,
|
|
94
|
+
(x) =>
|
|
95
|
+
PropertyAccountingReportTrialBalance$inboundSchema.parse(JSON.parse(x)),
|
|
96
|
+
`Failed to parse 'PropertyAccountingReportTrialBalance' from JSON`,
|
|
97
|
+
);
|
|
98
|
+
}
|
|
@@ -95,6 +95,9 @@ export const PropertyConnectionPermissions = {
|
|
|
95
95
|
UcCallRead: "uc_call_read",
|
|
96
96
|
UcContactRead: "uc_contact_read",
|
|
97
97
|
UcContactWrite: "uc_contact_write",
|
|
98
|
+
UcCommentRead: "uc_comment_read",
|
|
99
|
+
UcCommentWrite: "uc_comment_write",
|
|
100
|
+
UcRecordingRead: "uc_recording_read",
|
|
98
101
|
StorageFileRead: "storage_file_read",
|
|
99
102
|
StorageFileWrite: "storage_file_write",
|
|
100
103
|
Webhook: "webhook",
|
|
@@ -19,9 +19,6 @@ export type UcCall = {
|
|
|
19
19
|
createdAt?: Date | undefined;
|
|
20
20
|
endAt?: Date | undefined;
|
|
21
21
|
id?: string | undefined;
|
|
22
|
-
/**
|
|
23
|
-
* The raw data returned by the integration for this call
|
|
24
|
-
*/
|
|
25
22
|
raw?: { [k: string]: any } | undefined;
|
|
26
23
|
startAt?: Date | undefined;
|
|
27
24
|
/**
|
|
@@ -0,0 +1,95 @@
|
|
|
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 UcComment = {
|
|
12
|
+
content: string;
|
|
13
|
+
createdAt?: string | undefined;
|
|
14
|
+
id?: string | undefined;
|
|
15
|
+
raw?: { [k: string]: any } | undefined;
|
|
16
|
+
updatedAt?: string | undefined;
|
|
17
|
+
userId?: string | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const UcComment$inboundSchema: z.ZodType<
|
|
22
|
+
UcComment,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
content: z.string(),
|
|
27
|
+
created_at: z.string().optional(),
|
|
28
|
+
id: z.string().optional(),
|
|
29
|
+
raw: z.record(z.any()).optional(),
|
|
30
|
+
updated_at: z.string().optional(),
|
|
31
|
+
user_id: z.string().optional(),
|
|
32
|
+
}).transform((v) => {
|
|
33
|
+
return remap$(v, {
|
|
34
|
+
"created_at": "createdAt",
|
|
35
|
+
"updated_at": "updatedAt",
|
|
36
|
+
"user_id": "userId",
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export type UcComment$Outbound = {
|
|
42
|
+
content: string;
|
|
43
|
+
created_at?: string | undefined;
|
|
44
|
+
id?: string | undefined;
|
|
45
|
+
raw?: { [k: string]: any } | undefined;
|
|
46
|
+
updated_at?: string | undefined;
|
|
47
|
+
user_id?: string | undefined;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
/** @internal */
|
|
51
|
+
export const UcComment$outboundSchema: z.ZodType<
|
|
52
|
+
UcComment$Outbound,
|
|
53
|
+
z.ZodTypeDef,
|
|
54
|
+
UcComment
|
|
55
|
+
> = z.object({
|
|
56
|
+
content: z.string(),
|
|
57
|
+
createdAt: z.string().optional(),
|
|
58
|
+
id: z.string().optional(),
|
|
59
|
+
raw: z.record(z.any()).optional(),
|
|
60
|
+
updatedAt: z.string().optional(),
|
|
61
|
+
userId: z.string().optional(),
|
|
62
|
+
}).transform((v) => {
|
|
63
|
+
return remap$(v, {
|
|
64
|
+
createdAt: "created_at",
|
|
65
|
+
updatedAt: "updated_at",
|
|
66
|
+
userId: "user_id",
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @internal
|
|
72
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
73
|
+
*/
|
|
74
|
+
export namespace UcComment$ {
|
|
75
|
+
/** @deprecated use `UcComment$inboundSchema` instead. */
|
|
76
|
+
export const inboundSchema = UcComment$inboundSchema;
|
|
77
|
+
/** @deprecated use `UcComment$outboundSchema` instead. */
|
|
78
|
+
export const outboundSchema = UcComment$outboundSchema;
|
|
79
|
+
/** @deprecated use `UcComment$Outbound` instead. */
|
|
80
|
+
export type Outbound = UcComment$Outbound;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function ucCommentToJSON(ucComment: UcComment): string {
|
|
84
|
+
return JSON.stringify(UcComment$outboundSchema.parse(ucComment));
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function ucCommentFromJSON(
|
|
88
|
+
jsonString: string,
|
|
89
|
+
): SafeParseResult<UcComment, SDKValidationError> {
|
|
90
|
+
return safeParse(
|
|
91
|
+
jsonString,
|
|
92
|
+
(x) => UcComment$inboundSchema.parse(JSON.parse(x)),
|
|
93
|
+
`Failed to parse 'UcComment' from JSON`,
|
|
94
|
+
);
|
|
95
|
+
}
|
|
@@ -32,9 +32,6 @@ export type UcContact = {
|
|
|
32
32
|
emails?: Array<UcEmail> | undefined;
|
|
33
33
|
id?: string | undefined;
|
|
34
34
|
name?: string | undefined;
|
|
35
|
-
/**
|
|
36
|
-
* The raw data returned by the integration for this contact
|
|
37
|
-
*/
|
|
38
35
|
raw?: { [k: string]: any } | undefined;
|
|
39
36
|
/**
|
|
40
37
|
* An array of telephones for this contact
|
|
@@ -0,0 +1,154 @@
|
|
|
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
|
+
UcRecordingMedia,
|
|
12
|
+
UcRecordingMedia$inboundSchema,
|
|
13
|
+
UcRecordingMedia$Outbound,
|
|
14
|
+
UcRecordingMedia$outboundSchema,
|
|
15
|
+
} from "./ucrecordingmedia.js";
|
|
16
|
+
|
|
17
|
+
export type UcRecording = {
|
|
18
|
+
callId?: string | undefined;
|
|
19
|
+
contactId?: string | undefined;
|
|
20
|
+
contactName?: string | undefined;
|
|
21
|
+
contactPhone?: string | undefined;
|
|
22
|
+
createdAt?: Date | undefined;
|
|
23
|
+
endAt?: Date | undefined;
|
|
24
|
+
expiresAt?: Date | undefined;
|
|
25
|
+
id?: string | undefined;
|
|
26
|
+
media?: Array<UcRecordingMedia> | undefined;
|
|
27
|
+
raw?: { [k: string]: any } | undefined;
|
|
28
|
+
startAt?: Date | undefined;
|
|
29
|
+
updatedAt?: Date | undefined;
|
|
30
|
+
userId?: string | undefined;
|
|
31
|
+
webUrl?: string | undefined;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const UcRecording$inboundSchema: z.ZodType<
|
|
36
|
+
UcRecording,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
unknown
|
|
39
|
+
> = z.object({
|
|
40
|
+
call_id: z.string().optional(),
|
|
41
|
+
contact_id: z.string().optional(),
|
|
42
|
+
contact_name: z.string().optional(),
|
|
43
|
+
contact_phone: z.string().optional(),
|
|
44
|
+
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
45
|
+
.optional(),
|
|
46
|
+
end_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
47
|
+
.optional(),
|
|
48
|
+
expires_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
49
|
+
.optional(),
|
|
50
|
+
id: z.string().optional(),
|
|
51
|
+
media: z.array(UcRecordingMedia$inboundSchema).optional(),
|
|
52
|
+
raw: z.record(z.any()).optional(),
|
|
53
|
+
start_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
54
|
+
.optional(),
|
|
55
|
+
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
56
|
+
.optional(),
|
|
57
|
+
user_id: z.string().optional(),
|
|
58
|
+
web_url: z.string().optional(),
|
|
59
|
+
}).transform((v) => {
|
|
60
|
+
return remap$(v, {
|
|
61
|
+
"call_id": "callId",
|
|
62
|
+
"contact_id": "contactId",
|
|
63
|
+
"contact_name": "contactName",
|
|
64
|
+
"contact_phone": "contactPhone",
|
|
65
|
+
"created_at": "createdAt",
|
|
66
|
+
"end_at": "endAt",
|
|
67
|
+
"expires_at": "expiresAt",
|
|
68
|
+
"start_at": "startAt",
|
|
69
|
+
"updated_at": "updatedAt",
|
|
70
|
+
"user_id": "userId",
|
|
71
|
+
"web_url": "webUrl",
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
/** @internal */
|
|
76
|
+
export type UcRecording$Outbound = {
|
|
77
|
+
call_id?: string | undefined;
|
|
78
|
+
contact_id?: string | undefined;
|
|
79
|
+
contact_name?: string | undefined;
|
|
80
|
+
contact_phone?: string | undefined;
|
|
81
|
+
created_at?: string | undefined;
|
|
82
|
+
end_at?: string | undefined;
|
|
83
|
+
expires_at?: string | undefined;
|
|
84
|
+
id?: string | undefined;
|
|
85
|
+
media?: Array<UcRecordingMedia$Outbound> | undefined;
|
|
86
|
+
raw?: { [k: string]: any } | undefined;
|
|
87
|
+
start_at?: string | undefined;
|
|
88
|
+
updated_at?: string | undefined;
|
|
89
|
+
user_id?: string | undefined;
|
|
90
|
+
web_url?: string | undefined;
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
/** @internal */
|
|
94
|
+
export const UcRecording$outboundSchema: z.ZodType<
|
|
95
|
+
UcRecording$Outbound,
|
|
96
|
+
z.ZodTypeDef,
|
|
97
|
+
UcRecording
|
|
98
|
+
> = z.object({
|
|
99
|
+
callId: z.string().optional(),
|
|
100
|
+
contactId: z.string().optional(),
|
|
101
|
+
contactName: z.string().optional(),
|
|
102
|
+
contactPhone: z.string().optional(),
|
|
103
|
+
createdAt: z.date().transform(v => v.toISOString()).optional(),
|
|
104
|
+
endAt: z.date().transform(v => v.toISOString()).optional(),
|
|
105
|
+
expiresAt: z.date().transform(v => v.toISOString()).optional(),
|
|
106
|
+
id: z.string().optional(),
|
|
107
|
+
media: z.array(UcRecordingMedia$outboundSchema).optional(),
|
|
108
|
+
raw: z.record(z.any()).optional(),
|
|
109
|
+
startAt: z.date().transform(v => v.toISOString()).optional(),
|
|
110
|
+
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
111
|
+
userId: z.string().optional(),
|
|
112
|
+
webUrl: z.string().optional(),
|
|
113
|
+
}).transform((v) => {
|
|
114
|
+
return remap$(v, {
|
|
115
|
+
callId: "call_id",
|
|
116
|
+
contactId: "contact_id",
|
|
117
|
+
contactName: "contact_name",
|
|
118
|
+
contactPhone: "contact_phone",
|
|
119
|
+
createdAt: "created_at",
|
|
120
|
+
endAt: "end_at",
|
|
121
|
+
expiresAt: "expires_at",
|
|
122
|
+
startAt: "start_at",
|
|
123
|
+
updatedAt: "updated_at",
|
|
124
|
+
userId: "user_id",
|
|
125
|
+
webUrl: "web_url",
|
|
126
|
+
});
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* @internal
|
|
131
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
132
|
+
*/
|
|
133
|
+
export namespace UcRecording$ {
|
|
134
|
+
/** @deprecated use `UcRecording$inboundSchema` instead. */
|
|
135
|
+
export const inboundSchema = UcRecording$inboundSchema;
|
|
136
|
+
/** @deprecated use `UcRecording$outboundSchema` instead. */
|
|
137
|
+
export const outboundSchema = UcRecording$outboundSchema;
|
|
138
|
+
/** @deprecated use `UcRecording$Outbound` instead. */
|
|
139
|
+
export type Outbound = UcRecording$Outbound;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export function ucRecordingToJSON(ucRecording: UcRecording): string {
|
|
143
|
+
return JSON.stringify(UcRecording$outboundSchema.parse(ucRecording));
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export function ucRecordingFromJSON(
|
|
147
|
+
jsonString: string,
|
|
148
|
+
): SafeParseResult<UcRecording, SDKValidationError> {
|
|
149
|
+
return safeParse(
|
|
150
|
+
jsonString,
|
|
151
|
+
(x) => UcRecording$inboundSchema.parse(JSON.parse(x)),
|
|
152
|
+
`Failed to parse 'UcRecording' from JSON`,
|
|
153
|
+
);
|
|
154
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
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
|
+
UcRecordingTranscript,
|
|
12
|
+
UcRecordingTranscript$inboundSchema,
|
|
13
|
+
UcRecordingTranscript$Outbound,
|
|
14
|
+
UcRecordingTranscript$outboundSchema,
|
|
15
|
+
} from "./ucrecordingtranscript.js";
|
|
16
|
+
|
|
17
|
+
export type UcRecordingMedia = {
|
|
18
|
+
endAt?: Date | undefined;
|
|
19
|
+
language?: string | undefined;
|
|
20
|
+
recordingDownloadUrl?: string | undefined;
|
|
21
|
+
startAt?: Date | undefined;
|
|
22
|
+
transcriptDownloadUrl?: string | undefined;
|
|
23
|
+
transcripts?: Array<UcRecordingTranscript> | undefined;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const UcRecordingMedia$inboundSchema: z.ZodType<
|
|
28
|
+
UcRecordingMedia,
|
|
29
|
+
z.ZodTypeDef,
|
|
30
|
+
unknown
|
|
31
|
+
> = z.object({
|
|
32
|
+
end_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
33
|
+
.optional(),
|
|
34
|
+
language: z.string().optional(),
|
|
35
|
+
recording_download_url: z.string().optional(),
|
|
36
|
+
start_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
37
|
+
.optional(),
|
|
38
|
+
transcript_download_url: z.string().optional(),
|
|
39
|
+
transcripts: z.array(UcRecordingTranscript$inboundSchema).optional(),
|
|
40
|
+
}).transform((v) => {
|
|
41
|
+
return remap$(v, {
|
|
42
|
+
"end_at": "endAt",
|
|
43
|
+
"recording_download_url": "recordingDownloadUrl",
|
|
44
|
+
"start_at": "startAt",
|
|
45
|
+
"transcript_download_url": "transcriptDownloadUrl",
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export type UcRecordingMedia$Outbound = {
|
|
51
|
+
end_at?: string | undefined;
|
|
52
|
+
language?: string | undefined;
|
|
53
|
+
recording_download_url?: string | undefined;
|
|
54
|
+
start_at?: string | undefined;
|
|
55
|
+
transcript_download_url?: string | undefined;
|
|
56
|
+
transcripts?: Array<UcRecordingTranscript$Outbound> | undefined;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
/** @internal */
|
|
60
|
+
export const UcRecordingMedia$outboundSchema: z.ZodType<
|
|
61
|
+
UcRecordingMedia$Outbound,
|
|
62
|
+
z.ZodTypeDef,
|
|
63
|
+
UcRecordingMedia
|
|
64
|
+
> = z.object({
|
|
65
|
+
endAt: z.date().transform(v => v.toISOString()).optional(),
|
|
66
|
+
language: z.string().optional(),
|
|
67
|
+
recordingDownloadUrl: z.string().optional(),
|
|
68
|
+
startAt: z.date().transform(v => v.toISOString()).optional(),
|
|
69
|
+
transcriptDownloadUrl: z.string().optional(),
|
|
70
|
+
transcripts: z.array(UcRecordingTranscript$outboundSchema).optional(),
|
|
71
|
+
}).transform((v) => {
|
|
72
|
+
return remap$(v, {
|
|
73
|
+
endAt: "end_at",
|
|
74
|
+
recordingDownloadUrl: "recording_download_url",
|
|
75
|
+
startAt: "start_at",
|
|
76
|
+
transcriptDownloadUrl: "transcript_download_url",
|
|
77
|
+
});
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* @internal
|
|
82
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
83
|
+
*/
|
|
84
|
+
export namespace UcRecordingMedia$ {
|
|
85
|
+
/** @deprecated use `UcRecordingMedia$inboundSchema` instead. */
|
|
86
|
+
export const inboundSchema = UcRecordingMedia$inboundSchema;
|
|
87
|
+
/** @deprecated use `UcRecordingMedia$outboundSchema` instead. */
|
|
88
|
+
export const outboundSchema = UcRecordingMedia$outboundSchema;
|
|
89
|
+
/** @deprecated use `UcRecordingMedia$Outbound` instead. */
|
|
90
|
+
export type Outbound = UcRecordingMedia$Outbound;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function ucRecordingMediaToJSON(
|
|
94
|
+
ucRecordingMedia: UcRecordingMedia,
|
|
95
|
+
): string {
|
|
96
|
+
return JSON.stringify(
|
|
97
|
+
UcRecordingMedia$outboundSchema.parse(ucRecordingMedia),
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function ucRecordingMediaFromJSON(
|
|
102
|
+
jsonString: string,
|
|
103
|
+
): SafeParseResult<UcRecordingMedia, SDKValidationError> {
|
|
104
|
+
return safeParse(
|
|
105
|
+
jsonString,
|
|
106
|
+
(x) => UcRecordingMedia$inboundSchema.parse(JSON.parse(x)),
|
|
107
|
+
`Failed to parse 'UcRecordingMedia' from JSON`,
|
|
108
|
+
);
|
|
109
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
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 UcRecordingTranscript = {
|
|
12
|
+
contactId?: string | undefined;
|
|
13
|
+
endAt?: Date | undefined;
|
|
14
|
+
startAt?: Date | undefined;
|
|
15
|
+
text: string;
|
|
16
|
+
userId?: string | undefined;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const UcRecordingTranscript$inboundSchema: z.ZodType<
|
|
21
|
+
UcRecordingTranscript,
|
|
22
|
+
z.ZodTypeDef,
|
|
23
|
+
unknown
|
|
24
|
+
> = z.object({
|
|
25
|
+
contact_id: z.string().optional(),
|
|
26
|
+
end_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
27
|
+
.optional(),
|
|
28
|
+
start_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
29
|
+
.optional(),
|
|
30
|
+
text: z.string(),
|
|
31
|
+
user_id: z.string().optional(),
|
|
32
|
+
}).transform((v) => {
|
|
33
|
+
return remap$(v, {
|
|
34
|
+
"contact_id": "contactId",
|
|
35
|
+
"end_at": "endAt",
|
|
36
|
+
"start_at": "startAt",
|
|
37
|
+
"user_id": "userId",
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export type UcRecordingTranscript$Outbound = {
|
|
43
|
+
contact_id?: string | undefined;
|
|
44
|
+
end_at?: string | undefined;
|
|
45
|
+
start_at?: string | undefined;
|
|
46
|
+
text: string;
|
|
47
|
+
user_id?: string | undefined;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
/** @internal */
|
|
51
|
+
export const UcRecordingTranscript$outboundSchema: z.ZodType<
|
|
52
|
+
UcRecordingTranscript$Outbound,
|
|
53
|
+
z.ZodTypeDef,
|
|
54
|
+
UcRecordingTranscript
|
|
55
|
+
> = z.object({
|
|
56
|
+
contactId: z.string().optional(),
|
|
57
|
+
endAt: z.date().transform(v => v.toISOString()).optional(),
|
|
58
|
+
startAt: z.date().transform(v => v.toISOString()).optional(),
|
|
59
|
+
text: z.string(),
|
|
60
|
+
userId: z.string().optional(),
|
|
61
|
+
}).transform((v) => {
|
|
62
|
+
return remap$(v, {
|
|
63
|
+
contactId: "contact_id",
|
|
64
|
+
endAt: "end_at",
|
|
65
|
+
startAt: "start_at",
|
|
66
|
+
userId: "user_id",
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @internal
|
|
72
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
73
|
+
*/
|
|
74
|
+
export namespace UcRecordingTranscript$ {
|
|
75
|
+
/** @deprecated use `UcRecordingTranscript$inboundSchema` instead. */
|
|
76
|
+
export const inboundSchema = UcRecordingTranscript$inboundSchema;
|
|
77
|
+
/** @deprecated use `UcRecordingTranscript$outboundSchema` instead. */
|
|
78
|
+
export const outboundSchema = UcRecordingTranscript$outboundSchema;
|
|
79
|
+
/** @deprecated use `UcRecordingTranscript$Outbound` instead. */
|
|
80
|
+
export type Outbound = UcRecordingTranscript$Outbound;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function ucRecordingTranscriptToJSON(
|
|
84
|
+
ucRecordingTranscript: UcRecordingTranscript,
|
|
85
|
+
): string {
|
|
86
|
+
return JSON.stringify(
|
|
87
|
+
UcRecordingTranscript$outboundSchema.parse(ucRecordingTranscript),
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function ucRecordingTranscriptFromJSON(
|
|
92
|
+
jsonString: string,
|
|
93
|
+
): SafeParseResult<UcRecordingTranscript, SDKValidationError> {
|
|
94
|
+
return safeParse(
|
|
95
|
+
jsonString,
|
|
96
|
+
(x) => UcRecordingTranscript$inboundSchema.parse(JSON.parse(x)),
|
|
97
|
+
`Failed to parse 'UcRecordingTranscript' from JSON`,
|
|
98
|
+
);
|
|
99
|
+
}
|