@apideck/unify 0.21.1 → 0.23.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/docs/sdks/connections/README.md +2 -6
- package/docs/sdks/connectionsettings/README.md +2 -6
- package/docs/sdks/employees/README.md +4 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.js +4 -4
- package/lib/matchers.d.ts +3 -1
- package/lib/matchers.d.ts.map +1 -1
- package/lib/matchers.js +12 -0
- package/lib/matchers.js.map +1 -1
- package/lib/sdks.js +7 -2
- package/lib/sdks.js.map +1 -1
- package/models/components/{accountingdepartmentinput.d.ts → accountingdepartment.d.ts} +61 -51
- package/models/components/accountingdepartment.d.ts.map +1 -0
- package/models/components/{accountingdepartmentinput.js → accountingdepartment.js} +55 -51
- package/models/components/accountingdepartment.js.map +1 -0
- package/models/components/{accountinglocationinput.d.ts → accountinglocation.d.ts} +58 -58
- package/models/components/accountinglocation.d.ts.map +1 -0
- package/models/components/{accountinglocationinput.js → accountinglocation.js} +56 -56
- package/models/components/accountinglocation.js.map +1 -0
- package/models/components/activity.d.ts +1 -1
- package/models/components/activity.d.ts.map +1 -1
- package/models/components/activity.js +5 -5
- package/models/components/activity.js.map +1 -1
- package/models/components/{activityattendeeinput.d.ts → activityattendee.d.ts} +51 -51
- package/models/components/activityattendee.d.ts.map +1 -0
- package/models/components/{activityattendeeinput.js → activityattendee.js} +48 -48
- package/models/components/activityattendee.js.map +1 -0
- package/models/components/{allocationinput.d.ts → allocation.d.ts} +29 -29
- package/models/components/allocation.d.ts.map +1 -0
- package/models/components/{allocationinput.js → allocation.js} +32 -32
- package/models/components/allocation.js.map +1 -0
- package/models/components/{applicationinput.d.ts → application.d.ts} +37 -37
- package/models/components/application.d.ts.map +1 -0
- package/models/components/{applicationinput.js → application.js} +49 -49
- package/models/components/application.js.map +1 -0
- package/models/components/{billpaymentinput.d.ts → billpayment.d.ts} +102 -102
- package/models/components/billpayment.d.ts.map +1 -0
- package/models/components/{billpaymentinput.js → billpayment.js} +100 -100
- package/models/components/billpayment.js.map +1 -0
- package/models/components/companyinfo.d.ts +1 -1
- package/models/components/companyinfo.d.ts.map +1 -1
- package/models/components/companyinfo.js +3 -3
- package/models/components/companyinfo.js.map +1 -1
- package/models/components/{connectioninput.d.ts → connection.d.ts} +139 -139
- package/models/components/connection.d.ts.map +1 -0
- package/models/components/{connectioninput.js → connection.js} +150 -150
- package/models/components/connection.js.map +1 -0
- package/models/components/createconnectionresponse.d.ts +1 -1
- package/models/components/createconnectionresponse.d.ts.map +1 -1
- package/models/components/createconnectionresponse.js +3 -3
- package/models/components/createconnectionresponse.js.map +1 -1
- package/models/components/creditnote.d.ts +2 -2
- package/models/components/creditnote.d.ts.map +1 -1
- package/models/components/creditnote.js +10 -10
- package/models/components/creditnote.js.map +1 -1
- package/models/components/{employeeinput.d.ts → employee.d.ts} +70 -70
- package/models/components/employee.d.ts.map +1 -0
- package/models/components/{employeeinput.js → employee.js} +67 -67
- package/models/components/employee.js.map +1 -0
- package/models/components/{employeejobinput.d.ts → employeejob.d.ts} +37 -37
- package/models/components/employeejob.d.ts.map +1 -0
- package/models/components/{employeejobinput.js → employeejob.js} +36 -36
- package/models/components/employeejob.js.map +1 -0
- package/models/components/employeeschedules.d.ts +1 -1
- package/models/components/employeeschedules.d.ts.map +1 -1
- package/models/components/employeeschedules.js +3 -3
- package/models/components/employeeschedules.js.map +1 -1
- package/models/components/employeesfilter.d.ts +5 -0
- package/models/components/employeesfilter.d.ts.map +1 -1
- package/models/components/employeesfilter.js +2 -0
- package/models/components/employeesfilter.js.map +1 -1
- package/models/components/{expenseinput.d.ts → expense.d.ts} +55 -55
- package/models/components/expense.d.ts.map +1 -0
- package/models/components/{expenseinput.js → expense.js} +52 -52
- package/models/components/expense.js.map +1 -0
- package/models/components/getaccountingdepartmentresponse.d.ts +1 -1
- package/models/components/getaccountingdepartmentresponse.d.ts.map +1 -1
- package/models/components/getaccountingdepartmentresponse.js +3 -3
- package/models/components/getaccountingdepartmentresponse.js.map +1 -1
- package/models/components/getaccountingdepartmentsresponse.d.ts +1 -1
- package/models/components/getaccountingdepartmentsresponse.d.ts.map +1 -1
- package/models/components/getaccountingdepartmentsresponse.js +3 -3
- package/models/components/getaccountingdepartmentsresponse.js.map +1 -1
- package/models/components/getaccountinglocationresponse.d.ts +1 -1
- package/models/components/getaccountinglocationresponse.d.ts.map +1 -1
- package/models/components/getaccountinglocationresponse.js +3 -3
- package/models/components/getaccountinglocationresponse.js.map +1 -1
- package/models/components/getaccountinglocationsresponse.d.ts +1 -1
- package/models/components/getaccountinglocationsresponse.d.ts.map +1 -1
- package/models/components/getaccountinglocationsresponse.js +3 -3
- package/models/components/getaccountinglocationsresponse.js.map +1 -1
- package/models/components/getapplicationresponse.d.ts +1 -1
- package/models/components/getapplicationresponse.d.ts.map +1 -1
- package/models/components/getapplicationresponse.js +3 -3
- package/models/components/getapplicationresponse.js.map +1 -1
- package/models/components/getapplicationsresponse.d.ts +1 -1
- package/models/components/getapplicationsresponse.d.ts.map +1 -1
- package/models/components/getapplicationsresponse.js +3 -3
- package/models/components/getapplicationsresponse.js.map +1 -1
- package/models/components/getbillpaymentresponse.d.ts +1 -1
- package/models/components/getbillpaymentresponse.d.ts.map +1 -1
- package/models/components/getbillpaymentresponse.js +3 -3
- package/models/components/getbillpaymentresponse.js.map +1 -1
- package/models/components/getbillpaymentsresponse.d.ts +1 -1
- package/models/components/getbillpaymentsresponse.d.ts.map +1 -1
- package/models/components/getbillpaymentsresponse.js +3 -3
- package/models/components/getbillpaymentsresponse.js.map +1 -1
- package/models/components/getconnectionresponse.d.ts +1 -1
- package/models/components/getconnectionresponse.d.ts.map +1 -1
- package/models/components/getconnectionresponse.js +3 -3
- package/models/components/getconnectionresponse.js.map +1 -1
- package/models/components/getconnectionsresponse.d.ts +1 -1
- package/models/components/getconnectionsresponse.d.ts.map +1 -1
- package/models/components/getconnectionsresponse.js +3 -3
- package/models/components/getconnectionsresponse.js.map +1 -1
- package/models/components/getemployeeresponse.d.ts +1 -1
- package/models/components/getemployeeresponse.d.ts.map +1 -1
- package/models/components/getemployeeresponse.js +3 -3
- package/models/components/getemployeeresponse.js.map +1 -1
- package/models/components/getemployeesresponse.d.ts +1 -1
- package/models/components/getemployeesresponse.d.ts.map +1 -1
- package/models/components/getemployeesresponse.js +3 -3
- package/models/components/getemployeesresponse.js.map +1 -1
- package/models/components/getexpenseresponse.d.ts +1 -1
- package/models/components/getexpenseresponse.d.ts.map +1 -1
- package/models/components/getexpenseresponse.js +3 -3
- package/models/components/getexpenseresponse.js.map +1 -1
- package/models/components/getexpensesresponse.d.ts +1 -1
- package/models/components/getexpensesresponse.d.ts.map +1 -1
- package/models/components/getexpensesresponse.js +3 -3
- package/models/components/getexpensesresponse.js.map +1 -1
- package/models/components/gethriscompaniesresponse.d.ts +1 -1
- package/models/components/gethriscompaniesresponse.d.ts.map +1 -1
- package/models/components/gethriscompaniesresponse.js +3 -3
- package/models/components/gethriscompaniesresponse.js.map +1 -1
- package/models/components/gethriscompanyresponse.d.ts +1 -1
- package/models/components/gethriscompanyresponse.d.ts.map +1 -1
- package/models/components/gethriscompanyresponse.js +3 -3
- package/models/components/gethriscompanyresponse.js.map +1 -1
- package/models/components/getinvoiceresponse.d.ts +1 -1
- package/models/components/getinvoiceresponse.d.ts.map +1 -1
- package/models/components/getinvoiceresponse.js +3 -3
- package/models/components/getinvoiceresponse.js.map +1 -1
- package/models/components/getinvoicesresponse.d.ts +1 -1
- package/models/components/getinvoicesresponse.d.ts.map +1 -1
- package/models/components/getinvoicesresponse.js +3 -3
- package/models/components/getinvoicesresponse.js.map +1 -1
- package/models/components/getledgeraccountresponse.d.ts +1 -1
- package/models/components/getledgeraccountresponse.d.ts.map +1 -1
- package/models/components/getledgeraccountresponse.js +3 -3
- package/models/components/getledgeraccountresponse.js.map +1 -1
- package/models/components/getledgeraccountsresponse.d.ts +1 -1
- package/models/components/getledgeraccountsresponse.d.ts.map +1 -1
- package/models/components/getledgeraccountsresponse.js +3 -3
- package/models/components/getledgeraccountsresponse.js.map +1 -1
- package/models/components/getmessageresponse.d.ts +1 -1
- package/models/components/getmessageresponse.d.ts.map +1 -1
- package/models/components/getmessageresponse.js +3 -3
- package/models/components/getmessageresponse.js.map +1 -1
- package/models/components/getmessagesresponse.d.ts +1 -1
- package/models/components/getmessagesresponse.d.ts.map +1 -1
- package/models/components/getmessagesresponse.js +3 -3
- package/models/components/getmessagesresponse.js.map +1 -1
- package/models/components/getsharedlinkresponse.d.ts +1 -1
- package/models/components/getsharedlinkresponse.d.ts.map +1 -1
- package/models/components/getsharedlinkresponse.js +3 -3
- package/models/components/getsharedlinkresponse.js.map +1 -1
- package/models/components/getsharedlinksresponse.d.ts +1 -1
- package/models/components/getsharedlinksresponse.d.ts.map +1 -1
- package/models/components/getsharedlinksresponse.js +3 -3
- package/models/components/getsharedlinksresponse.js.map +1 -1
- package/models/components/gettaxrateresponse.d.ts +1 -1
- package/models/components/gettaxrateresponse.d.ts.map +1 -1
- package/models/components/gettaxrateresponse.js +3 -3
- package/models/components/gettaxrateresponse.js.map +1 -1
- package/models/components/gettaxratesresponse.d.ts +1 -1
- package/models/components/gettaxratesresponse.d.ts.map +1 -1
- package/models/components/gettaxratesresponse.js +3 -3
- package/models/components/gettaxratesresponse.js.map +1 -1
- package/models/components/gettimeoffrequestresponse.d.ts +1 -1
- package/models/components/gettimeoffrequestresponse.d.ts.map +1 -1
- package/models/components/gettimeoffrequestresponse.js +3 -3
- package/models/components/gettimeoffrequestresponse.js.map +1 -1
- package/models/components/gettimeoffrequestsresponse.d.ts +1 -1
- package/models/components/gettimeoffrequestsresponse.d.ts.map +1 -1
- package/models/components/gettimeoffrequestsresponse.js +3 -3
- package/models/components/gettimeoffrequestsresponse.js.map +1 -1
- package/models/components/gettrackingcategoriesresponse.d.ts +1 -1
- package/models/components/gettrackingcategoriesresponse.d.ts.map +1 -1
- package/models/components/gettrackingcategoriesresponse.js +3 -3
- package/models/components/gettrackingcategoriesresponse.js.map +1 -1
- package/models/components/gettrackingcategoryresponse.d.ts +1 -1
- package/models/components/gettrackingcategoryresponse.d.ts.map +1 -1
- package/models/components/gettrackingcategoryresponse.js +3 -3
- package/models/components/gettrackingcategoryresponse.js.map +1 -1
- package/models/components/{hriscompanyinput.d.ts → hriscompany.d.ts} +55 -55
- package/models/components/hriscompany.d.ts.map +1 -0
- package/models/components/{hriscompanyinput.js → hriscompany.js} +54 -54
- package/models/components/hriscompany.js.map +1 -0
- package/models/components/index.d.ts +20 -20
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +20 -20
- package/models/components/index.js.map +1 -1
- package/models/components/{invoiceinput.d.ts → invoice.d.ts} +122 -74
- package/models/components/invoice.d.ts.map +1 -0
- package/models/components/{invoiceinput.js → invoice.js} +119 -72
- package/models/components/invoice.js.map +1 -0
- package/models/components/{invoicelineiteminput.d.ts → invoicelineitem.d.ts} +58 -55
- package/models/components/invoicelineitem.d.ts.map +1 -0
- package/models/components/{invoicelineiteminput.js → invoicelineitem.js} +55 -54
- package/models/components/invoicelineitem.js.map +1 -0
- package/models/components/journalentry.d.ts +1 -1
- package/models/components/journalentry.d.ts.map +1 -1
- package/models/components/journalentry.js +3 -3
- package/models/components/journalentry.js.map +1 -1
- package/models/components/journalentryinput.d.ts +1 -1
- package/models/components/journalentryinput.d.ts.map +1 -1
- package/models/components/journalentryinput.js +3 -3
- package/models/components/journalentryinput.js.map +1 -1
- package/models/components/{journalentrylineiteminput.d.ts → journalentrylineitem.d.ts} +48 -48
- package/models/components/journalentrylineitem.d.ts.map +1 -0
- package/models/components/{journalentrylineiteminput.js → journalentrylineitem.js} +48 -48
- package/models/components/journalentrylineitem.js.map +1 -0
- package/models/components/{ledgeraccountinput.d.ts → ledgeraccount.d.ts} +129 -129
- package/models/components/ledgeraccount.d.ts.map +1 -0
- package/models/components/{ledgeraccountinput.js → ledgeraccount.js} +128 -128
- package/models/components/ledgeraccount.js.map +1 -0
- package/models/components/{messageinput.d.ts → message.d.ts} +71 -71
- package/models/components/message.d.ts.map +1 -0
- package/models/components/{messageinput.js → message.js} +61 -61
- package/models/components/message.js.map +1 -0
- package/models/components/payment.d.ts +1 -1
- package/models/components/payment.d.ts.map +1 -1
- package/models/components/payment.js +3 -3
- package/models/components/payment.js.map +1 -1
- package/models/components/paymentinput.d.ts +1 -1
- package/models/components/paymentinput.d.ts.map +1 -1
- package/models/components/paymentinput.js +3 -3
- package/models/components/paymentinput.js.map +1 -1
- package/models/components/purchaseorder.d.ts +1 -1
- package/models/components/purchaseorder.d.ts.map +1 -1
- package/models/components/purchaseorder.js +5 -5
- package/models/components/purchaseorder.js.map +1 -1
- package/models/components/{sharedlinkinput.d.ts → sharedlink.d.ts} +49 -49
- package/models/components/sharedlink.d.ts.map +1 -0
- package/models/components/{sharedlinkinput.js → sharedlink.js} +49 -49
- package/models/components/sharedlink.js.map +1 -0
- package/models/components/{taxrateinput.d.ts → taxrate.d.ts} +52 -52
- package/models/components/taxrate.d.ts.map +1 -0
- package/models/components/{taxrateinput.js → taxrate.js} +50 -50
- package/models/components/taxrate.js.map +1 -0
- package/models/components/{timeoffrequestinput.d.ts → timeoffrequest.d.ts} +57 -57
- package/models/components/timeoffrequest.d.ts.map +1 -0
- package/models/components/{timeoffrequestinput.js → timeoffrequest.js} +52 -52
- package/models/components/timeoffrequest.js.map +1 -0
- package/models/components/{trackingcategoryinput.d.ts → trackingcategory.d.ts} +55 -55
- package/models/components/trackingcategory.d.ts.map +1 -0
- package/models/components/{trackingcategoryinput.js → trackingcategory.js} +52 -52
- package/models/components/trackingcategory.js.map +1 -0
- package/models/components/updateconnectionresponse.d.ts +1 -1
- package/models/components/updateconnectionresponse.d.ts.map +1 -1
- package/models/components/updateconnectionresponse.js +3 -3
- package/models/components/updateconnectionresponse.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +4 -4
- package/src/lib/matchers.ts +20 -0
- package/src/lib/sdks.ts +8 -2
- package/src/models/components/{accountingdepartmentinput.ts → accountingdepartment.ts} +116 -102
- package/src/models/components/activity.ts +1 -1
- package/src/models/components/companyinfo.ts +1 -1
- package/src/models/components/createconnectionresponse.ts +1 -1
- package/src/models/components/creditnote.ts +2 -2
- package/src/models/components/{employeeinput.ts → employee.ts} +123 -123
- package/src/models/components/employeeschedules.ts +1 -1
- package/src/models/components/employeesfilter.ts +7 -0
- package/src/models/components/getaccountingdepartmentresponse.ts +1 -1
- package/src/models/components/getaccountingdepartmentsresponse.ts +1 -1
- package/src/models/components/getaccountinglocationresponse.ts +1 -1
- package/src/models/components/getaccountinglocationsresponse.ts +1 -1
- package/src/models/components/getapplicationresponse.ts +1 -1
- package/src/models/components/getapplicationsresponse.ts +1 -1
- package/src/models/components/getbillpaymentresponse.ts +1 -1
- package/src/models/components/getbillpaymentsresponse.ts +1 -1
- package/src/models/components/getconnectionresponse.ts +1 -1
- package/src/models/components/getconnectionsresponse.ts +1 -1
- package/src/models/components/getemployeeresponse.ts +1 -1
- package/src/models/components/getemployeesresponse.ts +1 -1
- package/src/models/components/getexpenseresponse.ts +1 -1
- package/src/models/components/getexpensesresponse.ts +1 -1
- package/src/models/components/gethriscompaniesresponse.ts +1 -1
- package/src/models/components/gethriscompanyresponse.ts +1 -1
- package/src/models/components/getinvoiceresponse.ts +1 -1
- package/src/models/components/getinvoicesresponse.ts +1 -1
- package/src/models/components/getledgeraccountresponse.ts +1 -1
- package/src/models/components/getledgeraccountsresponse.ts +1 -1
- package/src/models/components/getmessageresponse.ts +1 -1
- package/src/models/components/getmessagesresponse.ts +1 -1
- package/src/models/components/getsharedlinkresponse.ts +1 -1
- package/src/models/components/getsharedlinksresponse.ts +1 -1
- package/src/models/components/gettaxrateresponse.ts +1 -1
- package/src/models/components/gettaxratesresponse.ts +1 -1
- package/src/models/components/gettimeoffrequestresponse.ts +1 -1
- package/src/models/components/gettimeoffrequestsresponse.ts +1 -1
- package/src/models/components/gettrackingcategoriesresponse.ts +1 -1
- package/src/models/components/gettrackingcategoryresponse.ts +1 -1
- package/src/models/components/index.ts +20 -20
- package/src/models/components/{invoiceinput.ts → invoice.ts} +352 -241
- package/src/models/components/{invoicelineiteminput.ts → invoicelineitem.ts} +101 -100
- package/src/models/components/journalentry.ts +1 -1
- package/src/models/components/journalentryinput.ts +1 -1
- package/src/models/components/payment.ts +1 -1
- package/src/models/components/paymentinput.ts +1 -1
- package/src/models/components/purchaseorder.ts +1 -1
- package/src/models/components/updateconnectionresponse.ts +1 -1
- package/models/components/accountingdepartmentinput.d.ts.map +0 -1
- package/models/components/accountingdepartmentinput.js.map +0 -1
- package/models/components/accountinglocationinput.d.ts.map +0 -1
- package/models/components/accountinglocationinput.js.map +0 -1
- package/models/components/activityattendeeinput.d.ts.map +0 -1
- package/models/components/activityattendeeinput.js.map +0 -1
- package/models/components/allocationinput.d.ts.map +0 -1
- package/models/components/allocationinput.js.map +0 -1
- package/models/components/applicationinput.d.ts.map +0 -1
- package/models/components/applicationinput.js.map +0 -1
- package/models/components/billpaymentinput.d.ts.map +0 -1
- package/models/components/billpaymentinput.js.map +0 -1
- package/models/components/connectioninput.d.ts.map +0 -1
- package/models/components/connectioninput.js.map +0 -1
- package/models/components/employeeinput.d.ts.map +0 -1
- package/models/components/employeeinput.js.map +0 -1
- package/models/components/employeejobinput.d.ts.map +0 -1
- package/models/components/employeejobinput.js.map +0 -1
- package/models/components/expenseinput.d.ts.map +0 -1
- package/models/components/expenseinput.js.map +0 -1
- package/models/components/hriscompanyinput.d.ts.map +0 -1
- package/models/components/hriscompanyinput.js.map +0 -1
- package/models/components/invoiceinput.d.ts.map +0 -1
- package/models/components/invoiceinput.js.map +0 -1
- package/models/components/invoicelineiteminput.d.ts.map +0 -1
- package/models/components/invoicelineiteminput.js.map +0 -1
- package/models/components/journalentrylineiteminput.d.ts.map +0 -1
- package/models/components/journalentrylineiteminput.js.map +0 -1
- package/models/components/ledgeraccountinput.d.ts.map +0 -1
- package/models/components/ledgeraccountinput.js.map +0 -1
- package/models/components/messageinput.d.ts.map +0 -1
- package/models/components/messageinput.js.map +0 -1
- package/models/components/sharedlinkinput.d.ts.map +0 -1
- package/models/components/sharedlinkinput.js.map +0 -1
- package/models/components/taxrateinput.d.ts.map +0 -1
- package/models/components/taxrateinput.js.map +0 -1
- package/models/components/timeoffrequestinput.d.ts.map +0 -1
- package/models/components/timeoffrequestinput.js.map +0 -1
- package/models/components/trackingcategoryinput.d.ts.map +0 -1
- package/models/components/trackingcategoryinput.js.map +0 -1
- package/src/models/components/{accountinglocationinput.ts → accountinglocation.ts} +106 -106
- package/src/models/components/{activityattendeeinput.ts → activityattendee.ts} +89 -89
- package/src/models/components/{allocationinput.ts → allocation.ts} +46 -46
- package/src/models/components/{applicationinput.ts → application.ts} +85 -85
- package/src/models/components/{billpaymentinput.ts → billpayment.ts} +183 -183
- package/src/models/components/{connectioninput.ts → connection.ts} +355 -355
- package/src/models/components/{employeejobinput.ts → employeejob.ts} +60 -60
- package/src/models/components/{expenseinput.ts → expense.ts} +159 -159
- package/src/models/components/{hriscompanyinput.ts → hriscompany.ts} +101 -101
- package/src/models/components/{journalentrylineiteminput.ts → journalentrylineitem.ts} +81 -81
- package/src/models/components/{ledgeraccountinput.ts → ledgeraccount.ts} +253 -253
- package/src/models/components/{messageinput.ts → message.ts} +133 -133
- package/src/models/components/{sharedlinkinput.ts → sharedlink.ts} +99 -99
- package/src/models/components/{taxrateinput.ts → taxrate.ts} +146 -146
- package/src/models/components/{timeoffrequestinput.ts → timeoffrequest.ts} +100 -100
- package/src/models/components/{trackingcategoryinput.ts → trackingcategory.ts} +98 -98
|
@@ -59,52 +59,6 @@ import {
|
|
|
59
59
|
WebhookSubscription$outboundSchema,
|
|
60
60
|
} from "./webhooksubscription.js";
|
|
61
61
|
|
|
62
|
-
export type Value5 = string | number | number;
|
|
63
|
-
|
|
64
|
-
export type ConnectionValue =
|
|
65
|
-
| string
|
|
66
|
-
| number
|
|
67
|
-
| number
|
|
68
|
-
| boolean
|
|
69
|
-
| Array<string | number | number>;
|
|
70
|
-
|
|
71
|
-
export type ConnectionDefaults = {
|
|
72
|
-
id?: string | undefined;
|
|
73
|
-
options?: Array<FormFieldOption> | undefined;
|
|
74
|
-
value?:
|
|
75
|
-
| string
|
|
76
|
-
| number
|
|
77
|
-
| number
|
|
78
|
-
| boolean
|
|
79
|
-
| Array<string | number | number>
|
|
80
|
-
| undefined;
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
export type ConnectionConfiguration = {
|
|
84
|
-
resource?: string | undefined;
|
|
85
|
-
defaults?: Array<ConnectionDefaults> | undefined;
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
export type ConnectionInput = {
|
|
89
|
-
/**
|
|
90
|
-
* Whether the connection is enabled or not. You can enable or disable a connection using the Update Connection API.
|
|
91
|
-
*/
|
|
92
|
-
enabled?: boolean | undefined;
|
|
93
|
-
/**
|
|
94
|
-
* Connection settings. Values will persist to `form_fields` with corresponding id
|
|
95
|
-
*/
|
|
96
|
-
settings?: { [k: string]: any } | null | undefined;
|
|
97
|
-
/**
|
|
98
|
-
* Attach your own consumer specific metadata
|
|
99
|
-
*/
|
|
100
|
-
metadata?: { [k: string]: any } | null | undefined;
|
|
101
|
-
configuration?: Array<ConnectionConfiguration> | undefined;
|
|
102
|
-
/**
|
|
103
|
-
* List of custom mappings configured for this connection
|
|
104
|
-
*/
|
|
105
|
-
customMappings?: Array<CustomMappingInput> | undefined;
|
|
106
|
-
};
|
|
107
|
-
|
|
108
62
|
/**
|
|
109
63
|
* Status of the connection.
|
|
110
64
|
*/
|
|
@@ -124,6 +78,15 @@ export const Target = {
|
|
|
124
78
|
} as const;
|
|
125
79
|
export type Target = ClosedEnum<typeof Target>;
|
|
126
80
|
|
|
81
|
+
export type Value5 = string | number | number;
|
|
82
|
+
|
|
83
|
+
export type ConnectionValue =
|
|
84
|
+
| string
|
|
85
|
+
| number
|
|
86
|
+
| number
|
|
87
|
+
| boolean
|
|
88
|
+
| Array<string | number | number>;
|
|
89
|
+
|
|
127
90
|
export type Defaults = {
|
|
128
91
|
target?: Target | undefined;
|
|
129
92
|
id?: string | undefined;
|
|
@@ -239,6 +202,83 @@ export type Connection = {
|
|
|
239
202
|
updatedAt?: number | null | undefined;
|
|
240
203
|
};
|
|
241
204
|
|
|
205
|
+
export type ConnectionDefaults = {
|
|
206
|
+
id?: string | undefined;
|
|
207
|
+
options?: Array<FormFieldOption> | undefined;
|
|
208
|
+
value?:
|
|
209
|
+
| string
|
|
210
|
+
| number
|
|
211
|
+
| number
|
|
212
|
+
| boolean
|
|
213
|
+
| Array<string | number | number>
|
|
214
|
+
| undefined;
|
|
215
|
+
};
|
|
216
|
+
|
|
217
|
+
export type ConnectionConfiguration = {
|
|
218
|
+
resource?: string | undefined;
|
|
219
|
+
defaults?: Array<ConnectionDefaults> | undefined;
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
export type ConnectionInput = {
|
|
223
|
+
/**
|
|
224
|
+
* Whether the connection is enabled or not. You can enable or disable a connection using the Update Connection API.
|
|
225
|
+
*/
|
|
226
|
+
enabled?: boolean | undefined;
|
|
227
|
+
/**
|
|
228
|
+
* Connection settings. Values will persist to `form_fields` with corresponding id
|
|
229
|
+
*/
|
|
230
|
+
settings?: { [k: string]: any } | null | undefined;
|
|
231
|
+
/**
|
|
232
|
+
* Attach your own consumer specific metadata
|
|
233
|
+
*/
|
|
234
|
+
metadata?: { [k: string]: any } | null | undefined;
|
|
235
|
+
configuration?: Array<ConnectionConfiguration> | undefined;
|
|
236
|
+
/**
|
|
237
|
+
* List of custom mappings configured for this connection
|
|
238
|
+
*/
|
|
239
|
+
customMappings?: Array<CustomMappingInput> | undefined;
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
/** @internal */
|
|
243
|
+
export const ConnectionStatus$inboundSchema: z.ZodNativeEnum<
|
|
244
|
+
typeof ConnectionStatus
|
|
245
|
+
> = z.nativeEnum(ConnectionStatus);
|
|
246
|
+
|
|
247
|
+
/** @internal */
|
|
248
|
+
export const ConnectionStatus$outboundSchema: z.ZodNativeEnum<
|
|
249
|
+
typeof ConnectionStatus
|
|
250
|
+
> = ConnectionStatus$inboundSchema;
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* @internal
|
|
254
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
255
|
+
*/
|
|
256
|
+
export namespace ConnectionStatus$ {
|
|
257
|
+
/** @deprecated use `ConnectionStatus$inboundSchema` instead. */
|
|
258
|
+
export const inboundSchema = ConnectionStatus$inboundSchema;
|
|
259
|
+
/** @deprecated use `ConnectionStatus$outboundSchema` instead. */
|
|
260
|
+
export const outboundSchema = ConnectionStatus$outboundSchema;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
/** @internal */
|
|
264
|
+
export const Target$inboundSchema: z.ZodNativeEnum<typeof Target> = z
|
|
265
|
+
.nativeEnum(Target);
|
|
266
|
+
|
|
267
|
+
/** @internal */
|
|
268
|
+
export const Target$outboundSchema: z.ZodNativeEnum<typeof Target> =
|
|
269
|
+
Target$inboundSchema;
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* @internal
|
|
273
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
274
|
+
*/
|
|
275
|
+
export namespace Target$ {
|
|
276
|
+
/** @deprecated use `Target$inboundSchema` instead. */
|
|
277
|
+
export const inboundSchema = Target$inboundSchema;
|
|
278
|
+
/** @deprecated use `Target$outboundSchema` instead. */
|
|
279
|
+
export const outboundSchema = Target$outboundSchema;
|
|
280
|
+
}
|
|
281
|
+
|
|
242
282
|
/** @internal */
|
|
243
283
|
export const Value5$inboundSchema: z.ZodType<Value5, z.ZodTypeDef, unknown> = z
|
|
244
284
|
.union([z.string(), z.number().int(), z.number()]);
|
|
@@ -344,11 +384,12 @@ export function connectionValueFromJSON(
|
|
|
344
384
|
}
|
|
345
385
|
|
|
346
386
|
/** @internal */
|
|
347
|
-
export const
|
|
348
|
-
|
|
387
|
+
export const Defaults$inboundSchema: z.ZodType<
|
|
388
|
+
Defaults,
|
|
349
389
|
z.ZodTypeDef,
|
|
350
390
|
unknown
|
|
351
391
|
> = z.object({
|
|
392
|
+
target: Target$inboundSchema.optional(),
|
|
352
393
|
id: z.string().optional(),
|
|
353
394
|
options: z.array(FormFieldOption$inboundSchema).optional(),
|
|
354
395
|
value: z.union([
|
|
@@ -361,7 +402,8 @@ export const ConnectionDefaults$inboundSchema: z.ZodType<
|
|
|
361
402
|
});
|
|
362
403
|
|
|
363
404
|
/** @internal */
|
|
364
|
-
export type
|
|
405
|
+
export type Defaults$Outbound = {
|
|
406
|
+
target?: string | undefined;
|
|
365
407
|
id?: string | undefined;
|
|
366
408
|
options?: Array<FormFieldOption$Outbound> | undefined;
|
|
367
409
|
value?:
|
|
@@ -374,11 +416,12 @@ export type ConnectionDefaults$Outbound = {
|
|
|
374
416
|
};
|
|
375
417
|
|
|
376
418
|
/** @internal */
|
|
377
|
-
export const
|
|
378
|
-
|
|
419
|
+
export const Defaults$outboundSchema: z.ZodType<
|
|
420
|
+
Defaults$Outbound,
|
|
379
421
|
z.ZodTypeDef,
|
|
380
|
-
|
|
422
|
+
Defaults
|
|
381
423
|
> = z.object({
|
|
424
|
+
target: Target$outboundSchema.optional(),
|
|
382
425
|
id: z.string().optional(),
|
|
383
426
|
options: z.array(FormFieldOption$outboundSchema).optional(),
|
|
384
427
|
value: z.union([
|
|
@@ -394,132 +437,236 @@ export const ConnectionDefaults$outboundSchema: z.ZodType<
|
|
|
394
437
|
* @internal
|
|
395
438
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
396
439
|
*/
|
|
397
|
-
export namespace
|
|
398
|
-
/** @deprecated use `
|
|
399
|
-
export const inboundSchema =
|
|
400
|
-
/** @deprecated use `
|
|
401
|
-
export const outboundSchema =
|
|
402
|
-
/** @deprecated use `
|
|
403
|
-
export type Outbound =
|
|
440
|
+
export namespace Defaults$ {
|
|
441
|
+
/** @deprecated use `Defaults$inboundSchema` instead. */
|
|
442
|
+
export const inboundSchema = Defaults$inboundSchema;
|
|
443
|
+
/** @deprecated use `Defaults$outboundSchema` instead. */
|
|
444
|
+
export const outboundSchema = Defaults$outboundSchema;
|
|
445
|
+
/** @deprecated use `Defaults$Outbound` instead. */
|
|
446
|
+
export type Outbound = Defaults$Outbound;
|
|
404
447
|
}
|
|
405
448
|
|
|
406
|
-
export function
|
|
407
|
-
|
|
408
|
-
): string {
|
|
409
|
-
return JSON.stringify(
|
|
410
|
-
ConnectionDefaults$outboundSchema.parse(connectionDefaults),
|
|
411
|
-
);
|
|
449
|
+
export function defaultsToJSON(defaults: Defaults): string {
|
|
450
|
+
return JSON.stringify(Defaults$outboundSchema.parse(defaults));
|
|
412
451
|
}
|
|
413
452
|
|
|
414
|
-
export function
|
|
453
|
+
export function defaultsFromJSON(
|
|
415
454
|
jsonString: string,
|
|
416
|
-
): SafeParseResult<
|
|
455
|
+
): SafeParseResult<Defaults, SDKValidationError> {
|
|
417
456
|
return safeParse(
|
|
418
457
|
jsonString,
|
|
419
|
-
(x) =>
|
|
420
|
-
`Failed to parse '
|
|
458
|
+
(x) => Defaults$inboundSchema.parse(JSON.parse(x)),
|
|
459
|
+
`Failed to parse 'Defaults' from JSON`,
|
|
421
460
|
);
|
|
422
461
|
}
|
|
423
462
|
|
|
424
463
|
/** @internal */
|
|
425
|
-
export const
|
|
426
|
-
|
|
464
|
+
export const Configuration$inboundSchema: z.ZodType<
|
|
465
|
+
Configuration,
|
|
427
466
|
z.ZodTypeDef,
|
|
428
467
|
unknown
|
|
429
468
|
> = z.object({
|
|
430
469
|
resource: z.string().optional(),
|
|
431
|
-
defaults: z.array(z.lazy(() =>
|
|
470
|
+
defaults: z.array(z.lazy(() => Defaults$inboundSchema)).optional(),
|
|
432
471
|
});
|
|
433
472
|
|
|
434
473
|
/** @internal */
|
|
435
|
-
export type
|
|
474
|
+
export type Configuration$Outbound = {
|
|
436
475
|
resource?: string | undefined;
|
|
437
|
-
defaults?: Array<
|
|
476
|
+
defaults?: Array<Defaults$Outbound> | undefined;
|
|
438
477
|
};
|
|
439
478
|
|
|
440
479
|
/** @internal */
|
|
441
|
-
export const
|
|
442
|
-
|
|
480
|
+
export const Configuration$outboundSchema: z.ZodType<
|
|
481
|
+
Configuration$Outbound,
|
|
443
482
|
z.ZodTypeDef,
|
|
444
|
-
|
|
483
|
+
Configuration
|
|
445
484
|
> = z.object({
|
|
446
485
|
resource: z.string().optional(),
|
|
447
|
-
defaults: z.array(z.lazy(() =>
|
|
486
|
+
defaults: z.array(z.lazy(() => Defaults$outboundSchema)).optional(),
|
|
448
487
|
});
|
|
449
488
|
|
|
450
489
|
/**
|
|
451
490
|
* @internal
|
|
452
491
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
453
492
|
*/
|
|
454
|
-
export namespace
|
|
455
|
-
/** @deprecated use `
|
|
456
|
-
export const inboundSchema =
|
|
457
|
-
/** @deprecated use `
|
|
458
|
-
export const outboundSchema =
|
|
459
|
-
/** @deprecated use `
|
|
460
|
-
export type Outbound =
|
|
493
|
+
export namespace Configuration$ {
|
|
494
|
+
/** @deprecated use `Configuration$inboundSchema` instead. */
|
|
495
|
+
export const inboundSchema = Configuration$inboundSchema;
|
|
496
|
+
/** @deprecated use `Configuration$outboundSchema` instead. */
|
|
497
|
+
export const outboundSchema = Configuration$outboundSchema;
|
|
498
|
+
/** @deprecated use `Configuration$Outbound` instead. */
|
|
499
|
+
export type Outbound = Configuration$Outbound;
|
|
461
500
|
}
|
|
462
501
|
|
|
463
|
-
export function
|
|
464
|
-
|
|
465
|
-
): string {
|
|
466
|
-
return JSON.stringify(
|
|
467
|
-
ConnectionConfiguration$outboundSchema.parse(connectionConfiguration),
|
|
468
|
-
);
|
|
502
|
+
export function configurationToJSON(configuration: Configuration): string {
|
|
503
|
+
return JSON.stringify(Configuration$outboundSchema.parse(configuration));
|
|
469
504
|
}
|
|
470
505
|
|
|
471
|
-
export function
|
|
506
|
+
export function configurationFromJSON(
|
|
472
507
|
jsonString: string,
|
|
473
|
-
): SafeParseResult<
|
|
508
|
+
): SafeParseResult<Configuration, SDKValidationError> {
|
|
474
509
|
return safeParse(
|
|
475
510
|
jsonString,
|
|
476
|
-
(x) =>
|
|
477
|
-
`Failed to parse '
|
|
511
|
+
(x) => Configuration$inboundSchema.parse(JSON.parse(x)),
|
|
512
|
+
`Failed to parse 'Configuration' from JSON`,
|
|
478
513
|
);
|
|
479
514
|
}
|
|
480
515
|
|
|
481
516
|
/** @internal */
|
|
482
|
-
export const
|
|
483
|
-
|
|
517
|
+
export const Connection$inboundSchema: z.ZodType<
|
|
518
|
+
Connection,
|
|
484
519
|
z.ZodTypeDef,
|
|
485
520
|
unknown
|
|
486
521
|
> = z.object({
|
|
522
|
+
id: z.string().optional(),
|
|
523
|
+
service_id: z.string().optional(),
|
|
524
|
+
name: z.string().optional(),
|
|
525
|
+
tag_line: z.string().optional(),
|
|
526
|
+
unified_api: z.string().optional(),
|
|
527
|
+
state: ConnectionState$inboundSchema.optional(),
|
|
528
|
+
integration_state: IntegrationState$inboundSchema.optional(),
|
|
529
|
+
auth_type: AuthType$inboundSchema.optional(),
|
|
530
|
+
oauth_grant_type: OAuthGrantType$inboundSchema.optional(),
|
|
531
|
+
status: ConnectionStatus$inboundSchema.optional(),
|
|
487
532
|
enabled: z.boolean().optional(),
|
|
533
|
+
website: z.string().optional(),
|
|
534
|
+
icon: z.string().optional(),
|
|
535
|
+
logo: z.string().optional(),
|
|
536
|
+
authorize_url: z.nullable(z.string()).optional(),
|
|
537
|
+
revoke_url: z.nullable(z.string()).optional(),
|
|
488
538
|
settings: z.nullable(z.record(z.any())).optional(),
|
|
489
539
|
metadata: z.nullable(z.record(z.any())).optional(),
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
540
|
+
form_fields: z.array(FormField$inboundSchema).optional(),
|
|
541
|
+
configuration: z.array(z.lazy(() => Configuration$inboundSchema)).optional(),
|
|
542
|
+
configurable_resources: z.array(z.string()).optional(),
|
|
543
|
+
resource_schema_support: z.array(z.string()).optional(),
|
|
544
|
+
resource_settings_support: z.array(z.string()).optional(),
|
|
545
|
+
validation_support: z.boolean().optional(),
|
|
546
|
+
schema_support: z.boolean().optional(),
|
|
547
|
+
settings_required_for_authorization: z.array(z.string()).optional(),
|
|
548
|
+
subscriptions: z.array(WebhookSubscription$inboundSchema).optional(),
|
|
549
|
+
has_guide: z.boolean().optional(),
|
|
550
|
+
created_at: z.number().optional(),
|
|
551
|
+
custom_mappings: z.array(CustomMapping$inboundSchema).optional(),
|
|
552
|
+
updated_at: z.nullable(z.number()).optional(),
|
|
553
|
+
}).transform((v) => {
|
|
554
|
+
return remap$(v, {
|
|
555
|
+
"service_id": "serviceId",
|
|
556
|
+
"tag_line": "tagLine",
|
|
557
|
+
"unified_api": "unifiedApi",
|
|
558
|
+
"integration_state": "integrationState",
|
|
559
|
+
"auth_type": "authType",
|
|
560
|
+
"oauth_grant_type": "oauthGrantType",
|
|
561
|
+
"authorize_url": "authorizeUrl",
|
|
562
|
+
"revoke_url": "revokeUrl",
|
|
563
|
+
"form_fields": "formFields",
|
|
564
|
+
"configurable_resources": "configurableResources",
|
|
565
|
+
"resource_schema_support": "resourceSchemaSupport",
|
|
566
|
+
"resource_settings_support": "resourceSettingsSupport",
|
|
567
|
+
"validation_support": "validationSupport",
|
|
568
|
+
"schema_support": "schemaSupport",
|
|
569
|
+
"settings_required_for_authorization": "settingsRequiredForAuthorization",
|
|
570
|
+
"has_guide": "hasGuide",
|
|
571
|
+
"created_at": "createdAt",
|
|
572
|
+
"custom_mappings": "customMappings",
|
|
573
|
+
"updated_at": "updatedAt",
|
|
574
|
+
});
|
|
575
|
+
});
|
|
576
|
+
|
|
577
|
+
/** @internal */
|
|
578
|
+
export type Connection$Outbound = {
|
|
579
|
+
id?: string | undefined;
|
|
580
|
+
service_id?: string | undefined;
|
|
581
|
+
name?: string | undefined;
|
|
582
|
+
tag_line?: string | undefined;
|
|
583
|
+
unified_api?: string | undefined;
|
|
584
|
+
state?: string | undefined;
|
|
585
|
+
integration_state?: string | undefined;
|
|
586
|
+
auth_type?: string | undefined;
|
|
587
|
+
oauth_grant_type?: string | undefined;
|
|
588
|
+
status?: string | undefined;
|
|
589
|
+
enabled?: boolean | undefined;
|
|
590
|
+
website?: string | undefined;
|
|
591
|
+
icon?: string | undefined;
|
|
592
|
+
logo?: string | undefined;
|
|
593
|
+
authorize_url?: string | null | undefined;
|
|
594
|
+
revoke_url?: string | null | undefined;
|
|
502
595
|
settings?: { [k: string]: any } | null | undefined;
|
|
503
596
|
metadata?: { [k: string]: any } | null | undefined;
|
|
504
|
-
|
|
505
|
-
|
|
597
|
+
form_fields?: Array<FormField$Outbound> | undefined;
|
|
598
|
+
configuration?: Array<Configuration$Outbound> | undefined;
|
|
599
|
+
configurable_resources?: Array<string> | undefined;
|
|
600
|
+
resource_schema_support?: Array<string> | undefined;
|
|
601
|
+
resource_settings_support?: Array<string> | undefined;
|
|
602
|
+
validation_support?: boolean | undefined;
|
|
603
|
+
schema_support?: boolean | undefined;
|
|
604
|
+
settings_required_for_authorization?: Array<string> | undefined;
|
|
605
|
+
subscriptions?: Array<WebhookSubscription$Outbound> | undefined;
|
|
606
|
+
has_guide?: boolean | undefined;
|
|
607
|
+
created_at?: number | undefined;
|
|
608
|
+
custom_mappings?: Array<CustomMapping$Outbound> | undefined;
|
|
609
|
+
updated_at?: number | null | undefined;
|
|
506
610
|
};
|
|
507
611
|
|
|
508
612
|
/** @internal */
|
|
509
|
-
export const
|
|
510
|
-
|
|
613
|
+
export const Connection$outboundSchema: z.ZodType<
|
|
614
|
+
Connection$Outbound,
|
|
511
615
|
z.ZodTypeDef,
|
|
512
|
-
|
|
616
|
+
Connection
|
|
513
617
|
> = z.object({
|
|
618
|
+
id: z.string().optional(),
|
|
619
|
+
serviceId: z.string().optional(),
|
|
620
|
+
name: z.string().optional(),
|
|
621
|
+
tagLine: z.string().optional(),
|
|
622
|
+
unifiedApi: z.string().optional(),
|
|
623
|
+
state: ConnectionState$outboundSchema.optional(),
|
|
624
|
+
integrationState: IntegrationState$outboundSchema.optional(),
|
|
625
|
+
authType: AuthType$outboundSchema.optional(),
|
|
626
|
+
oauthGrantType: OAuthGrantType$outboundSchema.optional(),
|
|
627
|
+
status: ConnectionStatus$outboundSchema.optional(),
|
|
514
628
|
enabled: z.boolean().optional(),
|
|
629
|
+
website: z.string().optional(),
|
|
630
|
+
icon: z.string().optional(),
|
|
631
|
+
logo: z.string().optional(),
|
|
632
|
+
authorizeUrl: z.nullable(z.string()).optional(),
|
|
633
|
+
revokeUrl: z.nullable(z.string()).optional(),
|
|
515
634
|
settings: z.nullable(z.record(z.any())).optional(),
|
|
516
635
|
metadata: z.nullable(z.record(z.any())).optional(),
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
636
|
+
formFields: z.array(FormField$outboundSchema).optional(),
|
|
637
|
+
configuration: z.array(z.lazy(() => Configuration$outboundSchema)).optional(),
|
|
638
|
+
configurableResources: z.array(z.string()).optional(),
|
|
639
|
+
resourceSchemaSupport: z.array(z.string()).optional(),
|
|
640
|
+
resourceSettingsSupport: z.array(z.string()).optional(),
|
|
641
|
+
validationSupport: z.boolean().optional(),
|
|
642
|
+
schemaSupport: z.boolean().optional(),
|
|
643
|
+
settingsRequiredForAuthorization: z.array(z.string()).optional(),
|
|
644
|
+
subscriptions: z.array(WebhookSubscription$outboundSchema).optional(),
|
|
645
|
+
hasGuide: z.boolean().optional(),
|
|
646
|
+
createdAt: z.number().optional(),
|
|
647
|
+
customMappings: z.array(CustomMapping$outboundSchema).optional(),
|
|
648
|
+
updatedAt: z.nullable(z.number()).optional(),
|
|
520
649
|
}).transform((v) => {
|
|
521
650
|
return remap$(v, {
|
|
651
|
+
serviceId: "service_id",
|
|
652
|
+
tagLine: "tag_line",
|
|
653
|
+
unifiedApi: "unified_api",
|
|
654
|
+
integrationState: "integration_state",
|
|
655
|
+
authType: "auth_type",
|
|
656
|
+
oauthGrantType: "oauth_grant_type",
|
|
657
|
+
authorizeUrl: "authorize_url",
|
|
658
|
+
revokeUrl: "revoke_url",
|
|
659
|
+
formFields: "form_fields",
|
|
660
|
+
configurableResources: "configurable_resources",
|
|
661
|
+
resourceSchemaSupport: "resource_schema_support",
|
|
662
|
+
resourceSettingsSupport: "resource_settings_support",
|
|
663
|
+
validationSupport: "validation_support",
|
|
664
|
+
schemaSupport: "schema_support",
|
|
665
|
+
settingsRequiredForAuthorization: "settings_required_for_authorization",
|
|
666
|
+
hasGuide: "has_guide",
|
|
667
|
+
createdAt: "created_at",
|
|
522
668
|
customMappings: "custom_mappings",
|
|
669
|
+
updatedAt: "updated_at",
|
|
523
670
|
});
|
|
524
671
|
});
|
|
525
672
|
|
|
@@ -527,78 +674,35 @@ export const ConnectionInput$outboundSchema: z.ZodType<
|
|
|
527
674
|
* @internal
|
|
528
675
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
529
676
|
*/
|
|
530
|
-
export namespace
|
|
531
|
-
/** @deprecated use `
|
|
532
|
-
export const inboundSchema =
|
|
533
|
-
/** @deprecated use `
|
|
534
|
-
export const outboundSchema =
|
|
535
|
-
/** @deprecated use `
|
|
536
|
-
export type Outbound =
|
|
677
|
+
export namespace Connection$ {
|
|
678
|
+
/** @deprecated use `Connection$inboundSchema` instead. */
|
|
679
|
+
export const inboundSchema = Connection$inboundSchema;
|
|
680
|
+
/** @deprecated use `Connection$outboundSchema` instead. */
|
|
681
|
+
export const outboundSchema = Connection$outboundSchema;
|
|
682
|
+
/** @deprecated use `Connection$Outbound` instead. */
|
|
683
|
+
export type Outbound = Connection$Outbound;
|
|
537
684
|
}
|
|
538
685
|
|
|
539
|
-
export function
|
|
540
|
-
|
|
541
|
-
): string {
|
|
542
|
-
return JSON.stringify(ConnectionInput$outboundSchema.parse(connectionInput));
|
|
686
|
+
export function connectionToJSON(connection: Connection): string {
|
|
687
|
+
return JSON.stringify(Connection$outboundSchema.parse(connection));
|
|
543
688
|
}
|
|
544
689
|
|
|
545
|
-
export function
|
|
690
|
+
export function connectionFromJSON(
|
|
546
691
|
jsonString: string,
|
|
547
|
-
): SafeParseResult<
|
|
692
|
+
): SafeParseResult<Connection, SDKValidationError> {
|
|
548
693
|
return safeParse(
|
|
549
694
|
jsonString,
|
|
550
|
-
(x) =>
|
|
551
|
-
`Failed to parse '
|
|
695
|
+
(x) => Connection$inboundSchema.parse(JSON.parse(x)),
|
|
696
|
+
`Failed to parse 'Connection' from JSON`,
|
|
552
697
|
);
|
|
553
698
|
}
|
|
554
699
|
|
|
555
700
|
/** @internal */
|
|
556
|
-
export const
|
|
557
|
-
|
|
558
|
-
> = z.nativeEnum(ConnectionStatus);
|
|
559
|
-
|
|
560
|
-
/** @internal */
|
|
561
|
-
export const ConnectionStatus$outboundSchema: z.ZodNativeEnum<
|
|
562
|
-
typeof ConnectionStatus
|
|
563
|
-
> = ConnectionStatus$inboundSchema;
|
|
564
|
-
|
|
565
|
-
/**
|
|
566
|
-
* @internal
|
|
567
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
568
|
-
*/
|
|
569
|
-
export namespace ConnectionStatus$ {
|
|
570
|
-
/** @deprecated use `ConnectionStatus$inboundSchema` instead. */
|
|
571
|
-
export const inboundSchema = ConnectionStatus$inboundSchema;
|
|
572
|
-
/** @deprecated use `ConnectionStatus$outboundSchema` instead. */
|
|
573
|
-
export const outboundSchema = ConnectionStatus$outboundSchema;
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
/** @internal */
|
|
577
|
-
export const Target$inboundSchema: z.ZodNativeEnum<typeof Target> = z
|
|
578
|
-
.nativeEnum(Target);
|
|
579
|
-
|
|
580
|
-
/** @internal */
|
|
581
|
-
export const Target$outboundSchema: z.ZodNativeEnum<typeof Target> =
|
|
582
|
-
Target$inboundSchema;
|
|
583
|
-
|
|
584
|
-
/**
|
|
585
|
-
* @internal
|
|
586
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
587
|
-
*/
|
|
588
|
-
export namespace Target$ {
|
|
589
|
-
/** @deprecated use `Target$inboundSchema` instead. */
|
|
590
|
-
export const inboundSchema = Target$inboundSchema;
|
|
591
|
-
/** @deprecated use `Target$outboundSchema` instead. */
|
|
592
|
-
export const outboundSchema = Target$outboundSchema;
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
/** @internal */
|
|
596
|
-
export const Defaults$inboundSchema: z.ZodType<
|
|
597
|
-
Defaults,
|
|
701
|
+
export const ConnectionDefaults$inboundSchema: z.ZodType<
|
|
702
|
+
ConnectionDefaults,
|
|
598
703
|
z.ZodTypeDef,
|
|
599
704
|
unknown
|
|
600
705
|
> = z.object({
|
|
601
|
-
target: Target$inboundSchema.optional(),
|
|
602
706
|
id: z.string().optional(),
|
|
603
707
|
options: z.array(FormFieldOption$inboundSchema).optional(),
|
|
604
708
|
value: z.union([
|
|
@@ -611,8 +715,7 @@ export const Defaults$inboundSchema: z.ZodType<
|
|
|
611
715
|
});
|
|
612
716
|
|
|
613
717
|
/** @internal */
|
|
614
|
-
export type
|
|
615
|
-
target?: string | undefined;
|
|
718
|
+
export type ConnectionDefaults$Outbound = {
|
|
616
719
|
id?: string | undefined;
|
|
617
720
|
options?: Array<FormFieldOption$Outbound> | undefined;
|
|
618
721
|
value?:
|
|
@@ -625,12 +728,11 @@ export type Defaults$Outbound = {
|
|
|
625
728
|
};
|
|
626
729
|
|
|
627
730
|
/** @internal */
|
|
628
|
-
export const
|
|
629
|
-
|
|
731
|
+
export const ConnectionDefaults$outboundSchema: z.ZodType<
|
|
732
|
+
ConnectionDefaults$Outbound,
|
|
630
733
|
z.ZodTypeDef,
|
|
631
|
-
|
|
734
|
+
ConnectionDefaults
|
|
632
735
|
> = z.object({
|
|
633
|
-
target: Target$outboundSchema.optional(),
|
|
634
736
|
id: z.string().optional(),
|
|
635
737
|
options: z.array(FormFieldOption$outboundSchema).optional(),
|
|
636
738
|
value: z.union([
|
|
@@ -646,236 +748,132 @@ export const Defaults$outboundSchema: z.ZodType<
|
|
|
646
748
|
* @internal
|
|
647
749
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
648
750
|
*/
|
|
649
|
-
export namespace
|
|
650
|
-
/** @deprecated use `
|
|
651
|
-
export const inboundSchema =
|
|
652
|
-
/** @deprecated use `
|
|
653
|
-
export const outboundSchema =
|
|
654
|
-
/** @deprecated use `
|
|
655
|
-
export type Outbound =
|
|
751
|
+
export namespace ConnectionDefaults$ {
|
|
752
|
+
/** @deprecated use `ConnectionDefaults$inboundSchema` instead. */
|
|
753
|
+
export const inboundSchema = ConnectionDefaults$inboundSchema;
|
|
754
|
+
/** @deprecated use `ConnectionDefaults$outboundSchema` instead. */
|
|
755
|
+
export const outboundSchema = ConnectionDefaults$outboundSchema;
|
|
756
|
+
/** @deprecated use `ConnectionDefaults$Outbound` instead. */
|
|
757
|
+
export type Outbound = ConnectionDefaults$Outbound;
|
|
656
758
|
}
|
|
657
759
|
|
|
658
|
-
export function
|
|
659
|
-
|
|
760
|
+
export function connectionDefaultsToJSON(
|
|
761
|
+
connectionDefaults: ConnectionDefaults,
|
|
762
|
+
): string {
|
|
763
|
+
return JSON.stringify(
|
|
764
|
+
ConnectionDefaults$outboundSchema.parse(connectionDefaults),
|
|
765
|
+
);
|
|
660
766
|
}
|
|
661
767
|
|
|
662
|
-
export function
|
|
768
|
+
export function connectionDefaultsFromJSON(
|
|
663
769
|
jsonString: string,
|
|
664
|
-
): SafeParseResult<
|
|
770
|
+
): SafeParseResult<ConnectionDefaults, SDKValidationError> {
|
|
665
771
|
return safeParse(
|
|
666
772
|
jsonString,
|
|
667
|
-
(x) =>
|
|
668
|
-
`Failed to parse '
|
|
773
|
+
(x) => ConnectionDefaults$inboundSchema.parse(JSON.parse(x)),
|
|
774
|
+
`Failed to parse 'ConnectionDefaults' from JSON`,
|
|
669
775
|
);
|
|
670
776
|
}
|
|
671
777
|
|
|
672
778
|
/** @internal */
|
|
673
|
-
export const
|
|
674
|
-
|
|
779
|
+
export const ConnectionConfiguration$inboundSchema: z.ZodType<
|
|
780
|
+
ConnectionConfiguration,
|
|
675
781
|
z.ZodTypeDef,
|
|
676
782
|
unknown
|
|
677
783
|
> = z.object({
|
|
678
784
|
resource: z.string().optional(),
|
|
679
|
-
defaults: z.array(z.lazy(() =>
|
|
785
|
+
defaults: z.array(z.lazy(() => ConnectionDefaults$inboundSchema)).optional(),
|
|
680
786
|
});
|
|
681
787
|
|
|
682
788
|
/** @internal */
|
|
683
|
-
export type
|
|
789
|
+
export type ConnectionConfiguration$Outbound = {
|
|
684
790
|
resource?: string | undefined;
|
|
685
|
-
defaults?: Array<
|
|
791
|
+
defaults?: Array<ConnectionDefaults$Outbound> | undefined;
|
|
686
792
|
};
|
|
687
793
|
|
|
688
794
|
/** @internal */
|
|
689
|
-
export const
|
|
690
|
-
|
|
795
|
+
export const ConnectionConfiguration$outboundSchema: z.ZodType<
|
|
796
|
+
ConnectionConfiguration$Outbound,
|
|
691
797
|
z.ZodTypeDef,
|
|
692
|
-
|
|
798
|
+
ConnectionConfiguration
|
|
693
799
|
> = z.object({
|
|
694
800
|
resource: z.string().optional(),
|
|
695
|
-
defaults: z.array(z.lazy(() =>
|
|
801
|
+
defaults: z.array(z.lazy(() => ConnectionDefaults$outboundSchema)).optional(),
|
|
696
802
|
});
|
|
697
803
|
|
|
698
804
|
/**
|
|
699
805
|
* @internal
|
|
700
806
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
701
807
|
*/
|
|
702
|
-
export namespace
|
|
703
|
-
/** @deprecated use `
|
|
704
|
-
export const inboundSchema =
|
|
705
|
-
/** @deprecated use `
|
|
706
|
-
export const outboundSchema =
|
|
707
|
-
/** @deprecated use `
|
|
708
|
-
export type Outbound =
|
|
808
|
+
export namespace ConnectionConfiguration$ {
|
|
809
|
+
/** @deprecated use `ConnectionConfiguration$inboundSchema` instead. */
|
|
810
|
+
export const inboundSchema = ConnectionConfiguration$inboundSchema;
|
|
811
|
+
/** @deprecated use `ConnectionConfiguration$outboundSchema` instead. */
|
|
812
|
+
export const outboundSchema = ConnectionConfiguration$outboundSchema;
|
|
813
|
+
/** @deprecated use `ConnectionConfiguration$Outbound` instead. */
|
|
814
|
+
export type Outbound = ConnectionConfiguration$Outbound;
|
|
709
815
|
}
|
|
710
816
|
|
|
711
|
-
export function
|
|
712
|
-
|
|
817
|
+
export function connectionConfigurationToJSON(
|
|
818
|
+
connectionConfiguration: ConnectionConfiguration,
|
|
819
|
+
): string {
|
|
820
|
+
return JSON.stringify(
|
|
821
|
+
ConnectionConfiguration$outboundSchema.parse(connectionConfiguration),
|
|
822
|
+
);
|
|
713
823
|
}
|
|
714
824
|
|
|
715
|
-
export function
|
|
825
|
+
export function connectionConfigurationFromJSON(
|
|
716
826
|
jsonString: string,
|
|
717
|
-
): SafeParseResult<
|
|
827
|
+
): SafeParseResult<ConnectionConfiguration, SDKValidationError> {
|
|
718
828
|
return safeParse(
|
|
719
829
|
jsonString,
|
|
720
|
-
(x) =>
|
|
721
|
-
`Failed to parse '
|
|
830
|
+
(x) => ConnectionConfiguration$inboundSchema.parse(JSON.parse(x)),
|
|
831
|
+
`Failed to parse 'ConnectionConfiguration' from JSON`,
|
|
722
832
|
);
|
|
723
833
|
}
|
|
724
834
|
|
|
725
835
|
/** @internal */
|
|
726
|
-
export const
|
|
727
|
-
|
|
836
|
+
export const ConnectionInput$inboundSchema: z.ZodType<
|
|
837
|
+
ConnectionInput,
|
|
728
838
|
z.ZodTypeDef,
|
|
729
839
|
unknown
|
|
730
840
|
> = z.object({
|
|
731
|
-
id: z.string().optional(),
|
|
732
|
-
service_id: z.string().optional(),
|
|
733
|
-
name: z.string().optional(),
|
|
734
|
-
tag_line: z.string().optional(),
|
|
735
|
-
unified_api: z.string().optional(),
|
|
736
|
-
state: ConnectionState$inboundSchema.optional(),
|
|
737
|
-
integration_state: IntegrationState$inboundSchema.optional(),
|
|
738
|
-
auth_type: AuthType$inboundSchema.optional(),
|
|
739
|
-
oauth_grant_type: OAuthGrantType$inboundSchema.optional(),
|
|
740
|
-
status: ConnectionStatus$inboundSchema.optional(),
|
|
741
841
|
enabled: z.boolean().optional(),
|
|
742
|
-
website: z.string().optional(),
|
|
743
|
-
icon: z.string().optional(),
|
|
744
|
-
logo: z.string().optional(),
|
|
745
|
-
authorize_url: z.nullable(z.string()).optional(),
|
|
746
|
-
revoke_url: z.nullable(z.string()).optional(),
|
|
747
842
|
settings: z.nullable(z.record(z.any())).optional(),
|
|
748
843
|
metadata: z.nullable(z.record(z.any())).optional(),
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
resource_schema_support: z.array(z.string()).optional(),
|
|
753
|
-
resource_settings_support: z.array(z.string()).optional(),
|
|
754
|
-
validation_support: z.boolean().optional(),
|
|
755
|
-
schema_support: z.boolean().optional(),
|
|
756
|
-
settings_required_for_authorization: z.array(z.string()).optional(),
|
|
757
|
-
subscriptions: z.array(WebhookSubscription$inboundSchema).optional(),
|
|
758
|
-
has_guide: z.boolean().optional(),
|
|
759
|
-
created_at: z.number().optional(),
|
|
760
|
-
custom_mappings: z.array(CustomMapping$inboundSchema).optional(),
|
|
761
|
-
updated_at: z.nullable(z.number()).optional(),
|
|
844
|
+
configuration: z.array(z.lazy(() => ConnectionConfiguration$inboundSchema))
|
|
845
|
+
.optional(),
|
|
846
|
+
custom_mappings: z.array(CustomMappingInput$inboundSchema).optional(),
|
|
762
847
|
}).transform((v) => {
|
|
763
848
|
return remap$(v, {
|
|
764
|
-
"service_id": "serviceId",
|
|
765
|
-
"tag_line": "tagLine",
|
|
766
|
-
"unified_api": "unifiedApi",
|
|
767
|
-
"integration_state": "integrationState",
|
|
768
|
-
"auth_type": "authType",
|
|
769
|
-
"oauth_grant_type": "oauthGrantType",
|
|
770
|
-
"authorize_url": "authorizeUrl",
|
|
771
|
-
"revoke_url": "revokeUrl",
|
|
772
|
-
"form_fields": "formFields",
|
|
773
|
-
"configurable_resources": "configurableResources",
|
|
774
|
-
"resource_schema_support": "resourceSchemaSupport",
|
|
775
|
-
"resource_settings_support": "resourceSettingsSupport",
|
|
776
|
-
"validation_support": "validationSupport",
|
|
777
|
-
"schema_support": "schemaSupport",
|
|
778
|
-
"settings_required_for_authorization": "settingsRequiredForAuthorization",
|
|
779
|
-
"has_guide": "hasGuide",
|
|
780
|
-
"created_at": "createdAt",
|
|
781
849
|
"custom_mappings": "customMappings",
|
|
782
|
-
"updated_at": "updatedAt",
|
|
783
850
|
});
|
|
784
851
|
});
|
|
785
852
|
|
|
786
853
|
/** @internal */
|
|
787
|
-
export type
|
|
788
|
-
id?: string | undefined;
|
|
789
|
-
service_id?: string | undefined;
|
|
790
|
-
name?: string | undefined;
|
|
791
|
-
tag_line?: string | undefined;
|
|
792
|
-
unified_api?: string | undefined;
|
|
793
|
-
state?: string | undefined;
|
|
794
|
-
integration_state?: string | undefined;
|
|
795
|
-
auth_type?: string | undefined;
|
|
796
|
-
oauth_grant_type?: string | undefined;
|
|
797
|
-
status?: string | undefined;
|
|
854
|
+
export type ConnectionInput$Outbound = {
|
|
798
855
|
enabled?: boolean | undefined;
|
|
799
|
-
website?: string | undefined;
|
|
800
|
-
icon?: string | undefined;
|
|
801
|
-
logo?: string | undefined;
|
|
802
|
-
authorize_url?: string | null | undefined;
|
|
803
|
-
revoke_url?: string | null | undefined;
|
|
804
856
|
settings?: { [k: string]: any } | null | undefined;
|
|
805
857
|
metadata?: { [k: string]: any } | null | undefined;
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
configurable_resources?: Array<string> | undefined;
|
|
809
|
-
resource_schema_support?: Array<string> | undefined;
|
|
810
|
-
resource_settings_support?: Array<string> | undefined;
|
|
811
|
-
validation_support?: boolean | undefined;
|
|
812
|
-
schema_support?: boolean | undefined;
|
|
813
|
-
settings_required_for_authorization?: Array<string> | undefined;
|
|
814
|
-
subscriptions?: Array<WebhookSubscription$Outbound> | undefined;
|
|
815
|
-
has_guide?: boolean | undefined;
|
|
816
|
-
created_at?: number | undefined;
|
|
817
|
-
custom_mappings?: Array<CustomMapping$Outbound> | undefined;
|
|
818
|
-
updated_at?: number | null | undefined;
|
|
858
|
+
configuration?: Array<ConnectionConfiguration$Outbound> | undefined;
|
|
859
|
+
custom_mappings?: Array<CustomMappingInput$Outbound> | undefined;
|
|
819
860
|
};
|
|
820
861
|
|
|
821
862
|
/** @internal */
|
|
822
|
-
export const
|
|
823
|
-
|
|
863
|
+
export const ConnectionInput$outboundSchema: z.ZodType<
|
|
864
|
+
ConnectionInput$Outbound,
|
|
824
865
|
z.ZodTypeDef,
|
|
825
|
-
|
|
866
|
+
ConnectionInput
|
|
826
867
|
> = z.object({
|
|
827
|
-
id: z.string().optional(),
|
|
828
|
-
serviceId: z.string().optional(),
|
|
829
|
-
name: z.string().optional(),
|
|
830
|
-
tagLine: z.string().optional(),
|
|
831
|
-
unifiedApi: z.string().optional(),
|
|
832
|
-
state: ConnectionState$outboundSchema.optional(),
|
|
833
|
-
integrationState: IntegrationState$outboundSchema.optional(),
|
|
834
|
-
authType: AuthType$outboundSchema.optional(),
|
|
835
|
-
oauthGrantType: OAuthGrantType$outboundSchema.optional(),
|
|
836
|
-
status: ConnectionStatus$outboundSchema.optional(),
|
|
837
868
|
enabled: z.boolean().optional(),
|
|
838
|
-
website: z.string().optional(),
|
|
839
|
-
icon: z.string().optional(),
|
|
840
|
-
logo: z.string().optional(),
|
|
841
|
-
authorizeUrl: z.nullable(z.string()).optional(),
|
|
842
|
-
revokeUrl: z.nullable(z.string()).optional(),
|
|
843
869
|
settings: z.nullable(z.record(z.any())).optional(),
|
|
844
870
|
metadata: z.nullable(z.record(z.any())).optional(),
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
resourceSchemaSupport: z.array(z.string()).optional(),
|
|
849
|
-
resourceSettingsSupport: z.array(z.string()).optional(),
|
|
850
|
-
validationSupport: z.boolean().optional(),
|
|
851
|
-
schemaSupport: z.boolean().optional(),
|
|
852
|
-
settingsRequiredForAuthorization: z.array(z.string()).optional(),
|
|
853
|
-
subscriptions: z.array(WebhookSubscription$outboundSchema).optional(),
|
|
854
|
-
hasGuide: z.boolean().optional(),
|
|
855
|
-
createdAt: z.number().optional(),
|
|
856
|
-
customMappings: z.array(CustomMapping$outboundSchema).optional(),
|
|
857
|
-
updatedAt: z.nullable(z.number()).optional(),
|
|
871
|
+
configuration: z.array(z.lazy(() => ConnectionConfiguration$outboundSchema))
|
|
872
|
+
.optional(),
|
|
873
|
+
customMappings: z.array(CustomMappingInput$outboundSchema).optional(),
|
|
858
874
|
}).transform((v) => {
|
|
859
875
|
return remap$(v, {
|
|
860
|
-
serviceId: "service_id",
|
|
861
|
-
tagLine: "tag_line",
|
|
862
|
-
unifiedApi: "unified_api",
|
|
863
|
-
integrationState: "integration_state",
|
|
864
|
-
authType: "auth_type",
|
|
865
|
-
oauthGrantType: "oauth_grant_type",
|
|
866
|
-
authorizeUrl: "authorize_url",
|
|
867
|
-
revokeUrl: "revoke_url",
|
|
868
|
-
formFields: "form_fields",
|
|
869
|
-
configurableResources: "configurable_resources",
|
|
870
|
-
resourceSchemaSupport: "resource_schema_support",
|
|
871
|
-
resourceSettingsSupport: "resource_settings_support",
|
|
872
|
-
validationSupport: "validation_support",
|
|
873
|
-
schemaSupport: "schema_support",
|
|
874
|
-
settingsRequiredForAuthorization: "settings_required_for_authorization",
|
|
875
|
-
hasGuide: "has_guide",
|
|
876
|
-
createdAt: "created_at",
|
|
877
876
|
customMappings: "custom_mappings",
|
|
878
|
-
updatedAt: "updated_at",
|
|
879
877
|
});
|
|
880
878
|
});
|
|
881
879
|
|
|
@@ -883,25 +881,27 @@ export const Connection$outboundSchema: z.ZodType<
|
|
|
883
881
|
* @internal
|
|
884
882
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
885
883
|
*/
|
|
886
|
-
export namespace
|
|
887
|
-
/** @deprecated use `
|
|
888
|
-
export const inboundSchema =
|
|
889
|
-
/** @deprecated use `
|
|
890
|
-
export const outboundSchema =
|
|
891
|
-
/** @deprecated use `
|
|
892
|
-
export type Outbound =
|
|
884
|
+
export namespace ConnectionInput$ {
|
|
885
|
+
/** @deprecated use `ConnectionInput$inboundSchema` instead. */
|
|
886
|
+
export const inboundSchema = ConnectionInput$inboundSchema;
|
|
887
|
+
/** @deprecated use `ConnectionInput$outboundSchema` instead. */
|
|
888
|
+
export const outboundSchema = ConnectionInput$outboundSchema;
|
|
889
|
+
/** @deprecated use `ConnectionInput$Outbound` instead. */
|
|
890
|
+
export type Outbound = ConnectionInput$Outbound;
|
|
893
891
|
}
|
|
894
892
|
|
|
895
|
-
export function
|
|
896
|
-
|
|
893
|
+
export function connectionInputToJSON(
|
|
894
|
+
connectionInput: ConnectionInput,
|
|
895
|
+
): string {
|
|
896
|
+
return JSON.stringify(ConnectionInput$outboundSchema.parse(connectionInput));
|
|
897
897
|
}
|
|
898
898
|
|
|
899
|
-
export function
|
|
899
|
+
export function connectionInputFromJSON(
|
|
900
900
|
jsonString: string,
|
|
901
|
-
): SafeParseResult<
|
|
901
|
+
): SafeParseResult<ConnectionInput, SDKValidationError> {
|
|
902
902
|
return safeParse(
|
|
903
903
|
jsonString,
|
|
904
|
-
(x) =>
|
|
905
|
-
`Failed to parse '
|
|
904
|
+
(x) => ConnectionInput$inboundSchema.parse(JSON.parse(x)),
|
|
905
|
+
`Failed to parse 'ConnectionInput' from JSON`,
|
|
906
906
|
);
|
|
907
907
|
}
|