@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,169 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { UnifiedToCore } from "../core.js";
|
|
6
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
10
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import {
|
|
14
|
+
ConnectionError,
|
|
15
|
+
InvalidRequestError,
|
|
16
|
+
RequestAbortedError,
|
|
17
|
+
RequestTimeoutError,
|
|
18
|
+
UnexpectedClientError,
|
|
19
|
+
} from "../sdk/models/errors/httpclienterrors.js";
|
|
20
|
+
import { SDKError } from "../sdk/models/errors/sdkerror.js";
|
|
21
|
+
import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
|
|
22
|
+
import * as operations from "../sdk/models/operations/index.js";
|
|
23
|
+
import { APICall, APIPromise } from "../sdk/types/async.js";
|
|
24
|
+
import { Result } from "../sdk/types/fp.js";
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Remove a recording
|
|
28
|
+
*/
|
|
29
|
+
export function ucRemoveUcRecording(
|
|
30
|
+
client: UnifiedToCore,
|
|
31
|
+
request: operations.RemoveUcRecordingRequest,
|
|
32
|
+
options?: RequestOptions,
|
|
33
|
+
): APIPromise<
|
|
34
|
+
Result<
|
|
35
|
+
operations.RemoveUcRecordingResponse | undefined,
|
|
36
|
+
| SDKError
|
|
37
|
+
| SDKValidationError
|
|
38
|
+
| UnexpectedClientError
|
|
39
|
+
| InvalidRequestError
|
|
40
|
+
| RequestAbortedError
|
|
41
|
+
| RequestTimeoutError
|
|
42
|
+
| ConnectionError
|
|
43
|
+
>
|
|
44
|
+
> {
|
|
45
|
+
return new APIPromise($do(
|
|
46
|
+
client,
|
|
47
|
+
request,
|
|
48
|
+
options,
|
|
49
|
+
));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
async function $do(
|
|
53
|
+
client: UnifiedToCore,
|
|
54
|
+
request: operations.RemoveUcRecordingRequest,
|
|
55
|
+
options?: RequestOptions,
|
|
56
|
+
): Promise<
|
|
57
|
+
[
|
|
58
|
+
Result<
|
|
59
|
+
operations.RemoveUcRecordingResponse | undefined,
|
|
60
|
+
| SDKError
|
|
61
|
+
| SDKValidationError
|
|
62
|
+
| UnexpectedClientError
|
|
63
|
+
| InvalidRequestError
|
|
64
|
+
| RequestAbortedError
|
|
65
|
+
| RequestTimeoutError
|
|
66
|
+
| ConnectionError
|
|
67
|
+
>,
|
|
68
|
+
APICall,
|
|
69
|
+
]
|
|
70
|
+
> {
|
|
71
|
+
const parsed = safeParse(
|
|
72
|
+
request,
|
|
73
|
+
(value) => operations.RemoveUcRecordingRequest$outboundSchema.parse(value),
|
|
74
|
+
"Input validation failed",
|
|
75
|
+
);
|
|
76
|
+
if (!parsed.ok) {
|
|
77
|
+
return [parsed, { status: "invalid" }];
|
|
78
|
+
}
|
|
79
|
+
const payload = parsed.value;
|
|
80
|
+
const body = null;
|
|
81
|
+
|
|
82
|
+
const pathParams = {
|
|
83
|
+
connection_id: encodeSimple("connection_id", payload.connection_id, {
|
|
84
|
+
explode: false,
|
|
85
|
+
charEncoding: "percent",
|
|
86
|
+
}),
|
|
87
|
+
id: encodeSimple("id", payload.id, {
|
|
88
|
+
explode: false,
|
|
89
|
+
charEncoding: "percent",
|
|
90
|
+
}),
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
const path = pathToFunc("/uc/{connection_id}/recording/{id}")(pathParams);
|
|
94
|
+
|
|
95
|
+
const headers = new Headers(compactMap({
|
|
96
|
+
Accept: "*/*",
|
|
97
|
+
}));
|
|
98
|
+
|
|
99
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
100
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
101
|
+
|
|
102
|
+
const context = {
|
|
103
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
104
|
+
operationID: "removeUcRecording",
|
|
105
|
+
oAuth2Scopes: [],
|
|
106
|
+
|
|
107
|
+
resolvedSecurity: requestSecurity,
|
|
108
|
+
|
|
109
|
+
securitySource: client._options.security,
|
|
110
|
+
retryConfig: options?.retries
|
|
111
|
+
|| client._options.retryConfig
|
|
112
|
+
|| { strategy: "none" },
|
|
113
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
const requestRes = client._createRequest(context, {
|
|
117
|
+
security: requestSecurity,
|
|
118
|
+
method: "DELETE",
|
|
119
|
+
baseURL: options?.serverURL,
|
|
120
|
+
path: path,
|
|
121
|
+
headers: headers,
|
|
122
|
+
body: body,
|
|
123
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
124
|
+
}, options);
|
|
125
|
+
if (!requestRes.ok) {
|
|
126
|
+
return [requestRes, { status: "invalid" }];
|
|
127
|
+
}
|
|
128
|
+
const req = requestRes.value;
|
|
129
|
+
|
|
130
|
+
const doResult = await client._do(req, {
|
|
131
|
+
context,
|
|
132
|
+
errorCodes: ["4XX", "5XX"],
|
|
133
|
+
retryConfig: context.retryConfig,
|
|
134
|
+
retryCodes: context.retryCodes,
|
|
135
|
+
});
|
|
136
|
+
if (!doResult.ok) {
|
|
137
|
+
return [doResult, { status: "request-error", request: req }];
|
|
138
|
+
}
|
|
139
|
+
const response = doResult.value;
|
|
140
|
+
|
|
141
|
+
const responseFields = {
|
|
142
|
+
HttpMeta: { Response: response, Request: req },
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
const [result] = await M.match<
|
|
146
|
+
operations.RemoveUcRecordingResponse | undefined,
|
|
147
|
+
| SDKError
|
|
148
|
+
| SDKValidationError
|
|
149
|
+
| UnexpectedClientError
|
|
150
|
+
| InvalidRequestError
|
|
151
|
+
| RequestAbortedError
|
|
152
|
+
| RequestTimeoutError
|
|
153
|
+
| ConnectionError
|
|
154
|
+
>(
|
|
155
|
+
M.nil(200, operations.RemoveUcRecordingResponse$inboundSchema.optional()),
|
|
156
|
+
M.fail("4XX"),
|
|
157
|
+
M.fail("5XX"),
|
|
158
|
+
M.nil(
|
|
159
|
+
"default",
|
|
160
|
+
operations.RemoveUcRecordingResponse$inboundSchema.optional(),
|
|
161
|
+
{ hdrs: true },
|
|
162
|
+
),
|
|
163
|
+
)(response, { extraFields: responseFields });
|
|
164
|
+
if (!result.ok) {
|
|
165
|
+
return [result, { status: "complete", request: req, response }];
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
return [result, { status: "complete", request: req, response }];
|
|
169
|
+
}
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { UnifiedToCore } from "../core.js";
|
|
6
|
+
import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
10
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import {
|
|
14
|
+
ConnectionError,
|
|
15
|
+
InvalidRequestError,
|
|
16
|
+
RequestAbortedError,
|
|
17
|
+
RequestTimeoutError,
|
|
18
|
+
UnexpectedClientError,
|
|
19
|
+
} from "../sdk/models/errors/httpclienterrors.js";
|
|
20
|
+
import { SDKError } from "../sdk/models/errors/sdkerror.js";
|
|
21
|
+
import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
|
|
22
|
+
import * as operations from "../sdk/models/operations/index.js";
|
|
23
|
+
import * as shared from "../sdk/models/shared/index.js";
|
|
24
|
+
import { APICall, APIPromise } from "../sdk/types/async.js";
|
|
25
|
+
import { Result } from "../sdk/types/fp.js";
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Update a comment
|
|
29
|
+
*/
|
|
30
|
+
export function ucUpdateUcComment(
|
|
31
|
+
client: UnifiedToCore,
|
|
32
|
+
request: operations.UpdateUcCommentRequest,
|
|
33
|
+
options?: RequestOptions,
|
|
34
|
+
): APIPromise<
|
|
35
|
+
Result<
|
|
36
|
+
shared.UcComment,
|
|
37
|
+
| SDKError
|
|
38
|
+
| SDKValidationError
|
|
39
|
+
| UnexpectedClientError
|
|
40
|
+
| InvalidRequestError
|
|
41
|
+
| RequestAbortedError
|
|
42
|
+
| RequestTimeoutError
|
|
43
|
+
| ConnectionError
|
|
44
|
+
>
|
|
45
|
+
> {
|
|
46
|
+
return new APIPromise($do(
|
|
47
|
+
client,
|
|
48
|
+
request,
|
|
49
|
+
options,
|
|
50
|
+
));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
async function $do(
|
|
54
|
+
client: UnifiedToCore,
|
|
55
|
+
request: operations.UpdateUcCommentRequest,
|
|
56
|
+
options?: RequestOptions,
|
|
57
|
+
): Promise<
|
|
58
|
+
[
|
|
59
|
+
Result<
|
|
60
|
+
shared.UcComment,
|
|
61
|
+
| SDKError
|
|
62
|
+
| SDKValidationError
|
|
63
|
+
| UnexpectedClientError
|
|
64
|
+
| InvalidRequestError
|
|
65
|
+
| RequestAbortedError
|
|
66
|
+
| RequestTimeoutError
|
|
67
|
+
| ConnectionError
|
|
68
|
+
>,
|
|
69
|
+
APICall,
|
|
70
|
+
]
|
|
71
|
+
> {
|
|
72
|
+
const parsed = safeParse(
|
|
73
|
+
request,
|
|
74
|
+
(value) => operations.UpdateUcCommentRequest$outboundSchema.parse(value),
|
|
75
|
+
"Input validation failed",
|
|
76
|
+
);
|
|
77
|
+
if (!parsed.ok) {
|
|
78
|
+
return [parsed, { status: "invalid" }];
|
|
79
|
+
}
|
|
80
|
+
const payload = parsed.value;
|
|
81
|
+
const body = encodeJSON("body", payload.UcComment, { explode: true });
|
|
82
|
+
|
|
83
|
+
const pathParams = {
|
|
84
|
+
connection_id: encodeSimple("connection_id", payload.connection_id, {
|
|
85
|
+
explode: false,
|
|
86
|
+
charEncoding: "percent",
|
|
87
|
+
}),
|
|
88
|
+
id: encodeSimple("id", payload.id, {
|
|
89
|
+
explode: false,
|
|
90
|
+
charEncoding: "percent",
|
|
91
|
+
}),
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
const path = pathToFunc("/uc/{connection_id}/comment/{id}")(pathParams);
|
|
95
|
+
|
|
96
|
+
const query = encodeFormQuery({
|
|
97
|
+
"fields": payload.fields,
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
const headers = new Headers(compactMap({
|
|
101
|
+
"Content-Type": "application/json",
|
|
102
|
+
Accept: "application/json",
|
|
103
|
+
}));
|
|
104
|
+
|
|
105
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
106
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
107
|
+
|
|
108
|
+
const context = {
|
|
109
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
110
|
+
operationID: "updateUcComment",
|
|
111
|
+
oAuth2Scopes: [],
|
|
112
|
+
|
|
113
|
+
resolvedSecurity: requestSecurity,
|
|
114
|
+
|
|
115
|
+
securitySource: client._options.security,
|
|
116
|
+
retryConfig: options?.retries
|
|
117
|
+
|| client._options.retryConfig
|
|
118
|
+
|| { strategy: "none" },
|
|
119
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
const requestRes = client._createRequest(context, {
|
|
123
|
+
security: requestSecurity,
|
|
124
|
+
method: "PUT",
|
|
125
|
+
baseURL: options?.serverURL,
|
|
126
|
+
path: path,
|
|
127
|
+
headers: headers,
|
|
128
|
+
query: query,
|
|
129
|
+
body: body,
|
|
130
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
131
|
+
}, options);
|
|
132
|
+
if (!requestRes.ok) {
|
|
133
|
+
return [requestRes, { status: "invalid" }];
|
|
134
|
+
}
|
|
135
|
+
const req = requestRes.value;
|
|
136
|
+
|
|
137
|
+
const doResult = await client._do(req, {
|
|
138
|
+
context,
|
|
139
|
+
errorCodes: ["4XX", "5XX"],
|
|
140
|
+
retryConfig: context.retryConfig,
|
|
141
|
+
retryCodes: context.retryCodes,
|
|
142
|
+
});
|
|
143
|
+
if (!doResult.ok) {
|
|
144
|
+
return [doResult, { status: "request-error", request: req }];
|
|
145
|
+
}
|
|
146
|
+
const response = doResult.value;
|
|
147
|
+
|
|
148
|
+
const [result] = await M.match<
|
|
149
|
+
shared.UcComment,
|
|
150
|
+
| SDKError
|
|
151
|
+
| SDKValidationError
|
|
152
|
+
| UnexpectedClientError
|
|
153
|
+
| InvalidRequestError
|
|
154
|
+
| RequestAbortedError
|
|
155
|
+
| RequestTimeoutError
|
|
156
|
+
| ConnectionError
|
|
157
|
+
>(
|
|
158
|
+
M.json(200, shared.UcComment$inboundSchema),
|
|
159
|
+
M.fail("4XX"),
|
|
160
|
+
M.fail("5XX"),
|
|
161
|
+
)(response);
|
|
162
|
+
if (!result.ok) {
|
|
163
|
+
return [result, { status: "complete", request: req, response }];
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
return [result, { status: "complete", request: req, response }];
|
|
167
|
+
}
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { UnifiedToCore } from "../core.js";
|
|
6
|
+
import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
10
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import {
|
|
14
|
+
ConnectionError,
|
|
15
|
+
InvalidRequestError,
|
|
16
|
+
RequestAbortedError,
|
|
17
|
+
RequestTimeoutError,
|
|
18
|
+
UnexpectedClientError,
|
|
19
|
+
} from "../sdk/models/errors/httpclienterrors.js";
|
|
20
|
+
import { SDKError } from "../sdk/models/errors/sdkerror.js";
|
|
21
|
+
import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
|
|
22
|
+
import * as operations from "../sdk/models/operations/index.js";
|
|
23
|
+
import * as shared from "../sdk/models/shared/index.js";
|
|
24
|
+
import { APICall, APIPromise } from "../sdk/types/async.js";
|
|
25
|
+
import { Result } from "../sdk/types/fp.js";
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Update a recording
|
|
29
|
+
*/
|
|
30
|
+
export function ucUpdateUcRecording(
|
|
31
|
+
client: UnifiedToCore,
|
|
32
|
+
request: operations.UpdateUcRecordingRequest,
|
|
33
|
+
options?: RequestOptions,
|
|
34
|
+
): APIPromise<
|
|
35
|
+
Result<
|
|
36
|
+
shared.UcRecording,
|
|
37
|
+
| SDKError
|
|
38
|
+
| SDKValidationError
|
|
39
|
+
| UnexpectedClientError
|
|
40
|
+
| InvalidRequestError
|
|
41
|
+
| RequestAbortedError
|
|
42
|
+
| RequestTimeoutError
|
|
43
|
+
| ConnectionError
|
|
44
|
+
>
|
|
45
|
+
> {
|
|
46
|
+
return new APIPromise($do(
|
|
47
|
+
client,
|
|
48
|
+
request,
|
|
49
|
+
options,
|
|
50
|
+
));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
async function $do(
|
|
54
|
+
client: UnifiedToCore,
|
|
55
|
+
request: operations.UpdateUcRecordingRequest,
|
|
56
|
+
options?: RequestOptions,
|
|
57
|
+
): Promise<
|
|
58
|
+
[
|
|
59
|
+
Result<
|
|
60
|
+
shared.UcRecording,
|
|
61
|
+
| SDKError
|
|
62
|
+
| SDKValidationError
|
|
63
|
+
| UnexpectedClientError
|
|
64
|
+
| InvalidRequestError
|
|
65
|
+
| RequestAbortedError
|
|
66
|
+
| RequestTimeoutError
|
|
67
|
+
| ConnectionError
|
|
68
|
+
>,
|
|
69
|
+
APICall,
|
|
70
|
+
]
|
|
71
|
+
> {
|
|
72
|
+
const parsed = safeParse(
|
|
73
|
+
request,
|
|
74
|
+
(value) => operations.UpdateUcRecordingRequest$outboundSchema.parse(value),
|
|
75
|
+
"Input validation failed",
|
|
76
|
+
);
|
|
77
|
+
if (!parsed.ok) {
|
|
78
|
+
return [parsed, { status: "invalid" }];
|
|
79
|
+
}
|
|
80
|
+
const payload = parsed.value;
|
|
81
|
+
const body = encodeJSON("body", payload.UcRecording, { explode: true });
|
|
82
|
+
|
|
83
|
+
const pathParams = {
|
|
84
|
+
connection_id: encodeSimple("connection_id", payload.connection_id, {
|
|
85
|
+
explode: false,
|
|
86
|
+
charEncoding: "percent",
|
|
87
|
+
}),
|
|
88
|
+
id: encodeSimple("id", payload.id, {
|
|
89
|
+
explode: false,
|
|
90
|
+
charEncoding: "percent",
|
|
91
|
+
}),
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
const path = pathToFunc("/uc/{connection_id}/recording/{id}")(pathParams);
|
|
95
|
+
|
|
96
|
+
const query = encodeFormQuery({
|
|
97
|
+
"fields": payload.fields,
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
const headers = new Headers(compactMap({
|
|
101
|
+
"Content-Type": "application/json",
|
|
102
|
+
Accept: "application/json",
|
|
103
|
+
}));
|
|
104
|
+
|
|
105
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
106
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
107
|
+
|
|
108
|
+
const context = {
|
|
109
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
110
|
+
operationID: "updateUcRecording",
|
|
111
|
+
oAuth2Scopes: [],
|
|
112
|
+
|
|
113
|
+
resolvedSecurity: requestSecurity,
|
|
114
|
+
|
|
115
|
+
securitySource: client._options.security,
|
|
116
|
+
retryConfig: options?.retries
|
|
117
|
+
|| client._options.retryConfig
|
|
118
|
+
|| { strategy: "none" },
|
|
119
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
const requestRes = client._createRequest(context, {
|
|
123
|
+
security: requestSecurity,
|
|
124
|
+
method: "PUT",
|
|
125
|
+
baseURL: options?.serverURL,
|
|
126
|
+
path: path,
|
|
127
|
+
headers: headers,
|
|
128
|
+
query: query,
|
|
129
|
+
body: body,
|
|
130
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
131
|
+
}, options);
|
|
132
|
+
if (!requestRes.ok) {
|
|
133
|
+
return [requestRes, { status: "invalid" }];
|
|
134
|
+
}
|
|
135
|
+
const req = requestRes.value;
|
|
136
|
+
|
|
137
|
+
const doResult = await client._do(req, {
|
|
138
|
+
context,
|
|
139
|
+
errorCodes: ["4XX", "5XX"],
|
|
140
|
+
retryConfig: context.retryConfig,
|
|
141
|
+
retryCodes: context.retryCodes,
|
|
142
|
+
});
|
|
143
|
+
if (!doResult.ok) {
|
|
144
|
+
return [doResult, { status: "request-error", request: req }];
|
|
145
|
+
}
|
|
146
|
+
const response = doResult.value;
|
|
147
|
+
|
|
148
|
+
const [result] = await M.match<
|
|
149
|
+
shared.UcRecording,
|
|
150
|
+
| SDKError
|
|
151
|
+
| SDKValidationError
|
|
152
|
+
| UnexpectedClientError
|
|
153
|
+
| InvalidRequestError
|
|
154
|
+
| RequestAbortedError
|
|
155
|
+
| RequestTimeoutError
|
|
156
|
+
| ConnectionError
|
|
157
|
+
>(
|
|
158
|
+
M.json(200, shared.UcRecording$inboundSchema),
|
|
159
|
+
M.fail("4XX"),
|
|
160
|
+
M.fail("5XX"),
|
|
161
|
+
)(response);
|
|
162
|
+
if (!result.ok) {
|
|
163
|
+
return [result, { status: "complete", request: req, response }];
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
return [result, { status: "complete", request: req, response }];
|
|
167
|
+
}
|
package/src/lib/config.ts
CHANGED
|
@@ -69,8 +69,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
69
69
|
export const SDK_METADATA = {
|
|
70
70
|
language: "typescript",
|
|
71
71
|
openapiDocVersion: "1.0",
|
|
72
|
-
sdkVersion: "2.
|
|
72
|
+
sdkVersion: "2.58.0",
|
|
73
73
|
genVersion: "2.522.1",
|
|
74
74
|
userAgent:
|
|
75
|
-
"speakeasy-sdk/typescript 2.
|
|
75
|
+
"speakeasy-sdk/typescript 2.58.0 2.522.1 1.0 @unified-api/typescript-sdk",
|
|
76
76
|
} as const;
|
package/src/sdk/comment.ts
CHANGED
|
@@ -4,16 +4,22 @@
|
|
|
4
4
|
|
|
5
5
|
import { commentCreateKmsComment } from "../funcs/commentCreateKmsComment.js";
|
|
6
6
|
import { commentCreateTaskComment } from "../funcs/commentCreateTaskComment.js";
|
|
7
|
+
import { commentCreateUcComment } from "../funcs/commentCreateUcComment.js";
|
|
7
8
|
import { commentGetKmsComment } from "../funcs/commentGetKmsComment.js";
|
|
8
9
|
import { commentGetTaskComment } from "../funcs/commentGetTaskComment.js";
|
|
10
|
+
import { commentGetUcComment } from "../funcs/commentGetUcComment.js";
|
|
9
11
|
import { commentListKmsComments } from "../funcs/commentListKmsComments.js";
|
|
10
12
|
import { commentListTaskComments } from "../funcs/commentListTaskComments.js";
|
|
13
|
+
import { commentListUcComments } from "../funcs/commentListUcComments.js";
|
|
11
14
|
import { commentPatchKmsComment } from "../funcs/commentPatchKmsComment.js";
|
|
12
15
|
import { commentPatchTaskComment } from "../funcs/commentPatchTaskComment.js";
|
|
16
|
+
import { commentPatchUcComment } from "../funcs/commentPatchUcComment.js";
|
|
13
17
|
import { commentRemoveKmsComment } from "../funcs/commentRemoveKmsComment.js";
|
|
14
18
|
import { commentRemoveTaskComment } from "../funcs/commentRemoveTaskComment.js";
|
|
19
|
+
import { commentRemoveUcComment } from "../funcs/commentRemoveUcComment.js";
|
|
15
20
|
import { commentUpdateKmsComment } from "../funcs/commentUpdateKmsComment.js";
|
|
16
21
|
import { commentUpdateTaskComment } from "../funcs/commentUpdateTaskComment.js";
|
|
22
|
+
import { commentUpdateUcComment } from "../funcs/commentUpdateUcComment.js";
|
|
17
23
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
18
24
|
import * as operations from "./models/operations/index.js";
|
|
19
25
|
import * as shared from "./models/shared/index.js";
|
|
@@ -48,6 +54,20 @@ export class Comment extends ClientSDK {
|
|
|
48
54
|
));
|
|
49
55
|
}
|
|
50
56
|
|
|
57
|
+
/**
|
|
58
|
+
* Create a comment
|
|
59
|
+
*/
|
|
60
|
+
async createUcComment(
|
|
61
|
+
request: operations.CreateUcCommentRequest,
|
|
62
|
+
options?: RequestOptions,
|
|
63
|
+
): Promise<shared.UcComment> {
|
|
64
|
+
return unwrapAsync(commentCreateUcComment(
|
|
65
|
+
this,
|
|
66
|
+
request,
|
|
67
|
+
options,
|
|
68
|
+
));
|
|
69
|
+
}
|
|
70
|
+
|
|
51
71
|
/**
|
|
52
72
|
* Retrieve a comment
|
|
53
73
|
*/
|
|
@@ -76,6 +96,20 @@ export class Comment extends ClientSDK {
|
|
|
76
96
|
));
|
|
77
97
|
}
|
|
78
98
|
|
|
99
|
+
/**
|
|
100
|
+
* Retrieve a comment
|
|
101
|
+
*/
|
|
102
|
+
async getUcComment(
|
|
103
|
+
request: operations.GetUcCommentRequest,
|
|
104
|
+
options?: RequestOptions,
|
|
105
|
+
): Promise<shared.UcComment> {
|
|
106
|
+
return unwrapAsync(commentGetUcComment(
|
|
107
|
+
this,
|
|
108
|
+
request,
|
|
109
|
+
options,
|
|
110
|
+
));
|
|
111
|
+
}
|
|
112
|
+
|
|
79
113
|
/**
|
|
80
114
|
* List all comments
|
|
81
115
|
*/
|
|
@@ -104,6 +138,20 @@ export class Comment extends ClientSDK {
|
|
|
104
138
|
));
|
|
105
139
|
}
|
|
106
140
|
|
|
141
|
+
/**
|
|
142
|
+
* List all comments
|
|
143
|
+
*/
|
|
144
|
+
async listUcComments(
|
|
145
|
+
request: operations.ListUcCommentsRequest,
|
|
146
|
+
options?: RequestOptions,
|
|
147
|
+
): Promise<Array<shared.UcComment>> {
|
|
148
|
+
return unwrapAsync(commentListUcComments(
|
|
149
|
+
this,
|
|
150
|
+
request,
|
|
151
|
+
options,
|
|
152
|
+
));
|
|
153
|
+
}
|
|
154
|
+
|
|
107
155
|
/**
|
|
108
156
|
* Update a comment
|
|
109
157
|
*/
|
|
@@ -132,6 +180,20 @@ export class Comment extends ClientSDK {
|
|
|
132
180
|
));
|
|
133
181
|
}
|
|
134
182
|
|
|
183
|
+
/**
|
|
184
|
+
* Update a comment
|
|
185
|
+
*/
|
|
186
|
+
async patchUcComment(
|
|
187
|
+
request: operations.PatchUcCommentRequest,
|
|
188
|
+
options?: RequestOptions,
|
|
189
|
+
): Promise<shared.UcComment> {
|
|
190
|
+
return unwrapAsync(commentPatchUcComment(
|
|
191
|
+
this,
|
|
192
|
+
request,
|
|
193
|
+
options,
|
|
194
|
+
));
|
|
195
|
+
}
|
|
196
|
+
|
|
135
197
|
/**
|
|
136
198
|
* Remove a comment
|
|
137
199
|
*/
|
|
@@ -160,6 +222,20 @@ export class Comment extends ClientSDK {
|
|
|
160
222
|
));
|
|
161
223
|
}
|
|
162
224
|
|
|
225
|
+
/**
|
|
226
|
+
* Remove a comment
|
|
227
|
+
*/
|
|
228
|
+
async removeUcComment(
|
|
229
|
+
request: operations.RemoveUcCommentRequest,
|
|
230
|
+
options?: RequestOptions,
|
|
231
|
+
): Promise<operations.RemoveUcCommentResponse | undefined> {
|
|
232
|
+
return unwrapAsync(commentRemoveUcComment(
|
|
233
|
+
this,
|
|
234
|
+
request,
|
|
235
|
+
options,
|
|
236
|
+
));
|
|
237
|
+
}
|
|
238
|
+
|
|
163
239
|
/**
|
|
164
240
|
* Update a comment
|
|
165
241
|
*/
|
|
@@ -187,4 +263,18 @@ export class Comment extends ClientSDK {
|
|
|
187
263
|
options,
|
|
188
264
|
));
|
|
189
265
|
}
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* Update a comment
|
|
269
|
+
*/
|
|
270
|
+
async updateUcComment(
|
|
271
|
+
request: operations.UpdateUcCommentRequest,
|
|
272
|
+
options?: RequestOptions,
|
|
273
|
+
): Promise<shared.UcComment> {
|
|
274
|
+
return unwrapAsync(commentUpdateUcComment(
|
|
275
|
+
this,
|
|
276
|
+
request,
|
|
277
|
+
options,
|
|
278
|
+
));
|
|
279
|
+
}
|
|
190
280
|
}
|
|
@@ -18,6 +18,7 @@ export type CreatePassthroughJsonRequest = {
|
|
|
18
18
|
*/
|
|
19
19
|
connectionId: string;
|
|
20
20
|
path: string;
|
|
21
|
+
query?: { [k: string]: any } | undefined;
|
|
21
22
|
};
|
|
22
23
|
|
|
23
24
|
export type CreatePassthroughJsonResponseResult =
|
|
@@ -47,6 +48,7 @@ export const CreatePassthroughJsonRequest$inboundSchema: z.ZodType<
|
|
|
47
48
|
RequestBody: z.any().optional(),
|
|
48
49
|
connection_id: z.string(),
|
|
49
50
|
path: z.string(),
|
|
51
|
+
query: z.record(z.any()).optional(),
|
|
50
52
|
}).transform((v) => {
|
|
51
53
|
return remap$(v, {
|
|
52
54
|
"RequestBody": "requestBody",
|
|
@@ -59,6 +61,7 @@ export type CreatePassthroughJsonRequest$Outbound = {
|
|
|
59
61
|
RequestBody?: any | undefined;
|
|
60
62
|
connection_id: string;
|
|
61
63
|
path: string;
|
|
64
|
+
query?: { [k: string]: any } | undefined;
|
|
62
65
|
};
|
|
63
66
|
|
|
64
67
|
/** @internal */
|
|
@@ -70,6 +73,7 @@ export const CreatePassthroughJsonRequest$outboundSchema: z.ZodType<
|
|
|
70
73
|
requestBody: z.any().optional(),
|
|
71
74
|
connectionId: z.string(),
|
|
72
75
|
path: z.string(),
|
|
76
|
+
query: z.record(z.any()).optional(),
|
|
73
77
|
}).transform((v) => {
|
|
74
78
|
return remap$(v, {
|
|
75
79
|
requestBody: "RequestBody",
|