diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 628df6a..6f3511b 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,711 +1,3342 @@ lockVersion: 2.0.0 id: 091cf3d7-4210-4977-a93c-0cefd2ff8475 management: - docChecksum: 49d8fbad1903be3af29a4e7718e2888e + docChecksum: 0f0201bc2d77104ed1ef181786367be0 docVersion: 0.0.1 - speakeasyVersion: 1.622.1 - generationVersion: 2.709.0 - releaseVersion: 0.5.0 - configChecksum: cde065a6a4c8ec44eca0c747dba18d4a + speakeasyVersion: 1.682.0 + generationVersion: 2.791.1 + releaseVersion: 0.6.0 + configChecksum: 9bff289ee2e99ee1eda3860c8d33049e repoURL: https://github.com/midday-ai/midday-ts.git installationURL: https://github.com/midday-ai/midday-ts published: true +persistentEdits: + generation_id: da642ca8-ec54-403e-8750-84e520db8755 + pristine_commit_hash: 98e728967a3adcdb8175e425bff7aad1f74016f5 + pristine_tree_hash: 8c1741458c66ab2005a82cc5a386010888fcb1ad features: typescript: additionalDependencies: 0.1.0 constsAndDefaults: 0.1.12 - core: 3.21.23 + core: 3.26.17 defaultEnabledRetries: 0.1.0 devContainers: 2.90.1 + downloadStreams: 0.1.1 enumUnions: 0.1.0 enums: 2.83.0 envVarSecurityUsage: 0.1.2 - examples: 2.82.3 + examples: 2.82.4 globalSecurity: 2.82.14 globalSecurityCallbacks: 0.1.0 - globalServerURLs: 2.82.5 - mcpServer: 0.9.3 + globalServerURLs: 2.83.0 + mcpServer: 0.9.4 nameOverrides: 2.81.2 nullables: 0.1.1 responseFormat: 0.2.3 retries: 2.83.0 - sdkHooks: 0.3.0 - unions: 2.85.11 -generatedFiles: - - .devcontainer/README.md - - .devcontainer/devcontainer.json - - .devcontainer/setup.sh - - .gitattributes - - .npmignore - - FUNCTIONS.md - - RUNTIMES.md - - USAGE.md - - docs/lib/utils/retryconfig.md - - docs/models/account.md - - docs/models/attachment.md - - docs/models/category.md - - docs/models/connection.md - - docs/models/createtag.md - - docs/models/customer.md - - docs/models/errors/conflicterror.md - - docs/models/errors/createinvoicebadrequesterror.md - - docs/models/errors/createinvoiceinternalservererror.md - - docs/models/errors/createinvoicenotfounderror.md - - docs/models/errors/getdocumentpresignedurlbadrequesterror.md - - docs/models/errors/getdocumentpresignedurlinternalservererror.md - - docs/models/errors/getdocumentpresignedurlnotfounderror.md - - docs/models/errors/getinboxpresignedurlbadrequesterror.md - - docs/models/errors/getinboxpresignedurlinternalservererror.md - - docs/models/errors/getinboxpresignedurlnotfounderror.md - - docs/models/errors/getoauthauthorizationbadrequesterror.md - - docs/models/errors/gettransactionattachmentpresignedurlbadrequesterror.md - - docs/models/errors/gettransactionattachmentpresignedurlinternalservererror.md - - docs/models/errors/gettransactionattachmentpresignedurlnotfounderror.md - - docs/models/errors/postoauthauthorizationbadrequesterror.md - - docs/models/errors/postoauthtokenbadrequesterror.md - - docs/models/errors/unauthorizederror.md - - docs/models/expensesresultarray.md - - docs/models/getburnrateresponseschema.md - - docs/models/getexpensesresponseschema.md - - docs/models/getexpensesresponseschemameta.md - - docs/models/getprofitresponseschema.md - - docs/models/getrevenueresponseschema.md - - docs/models/notificationresponseschema.md - - docs/models/notificationschema.md - - docs/models/notificationschemastatus.md - - docs/models/notificationsresponseschema.md - - docs/models/notificationsresponseschemameta.md - - docs/models/operations/attachments.md - - docs/models/operations/authorizationcode.md - - docs/models/operations/bottomblock.md - - docs/models/operations/createbankaccountrequest.md - - docs/models/operations/createbankaccountresponse.md - - docs/models/operations/createcustomerrequest.md - - docs/models/operations/createcustomerresponse.md - - docs/models/operations/createcustomertagrequest.md - - docs/models/operations/createcustomertagresponse.md - - docs/models/operations/createinvoicerequest.md - - docs/models/operations/createinvoiceresponse.md - - docs/models/operations/createinvoicestatus.md - - docs/models/operations/createtrackerentriesbulkcustomer.md - - docs/models/operations/createtrackerentriesbulkdata.md - - docs/models/operations/createtrackerentriesbulkproject.md - - docs/models/operations/createtrackerentriesbulkrequest.md - - docs/models/operations/createtrackerentriesbulkresponse.md - - docs/models/operations/createtrackerentriesbulkuser.md - - docs/models/operations/createtrackerentrycustomer.md - - docs/models/operations/createtrackerentrydata.md - - docs/models/operations/createtrackerentryproject.md - - docs/models/operations/createtrackerentryrequest.md - - docs/models/operations/createtrackerentryresponse.md - - docs/models/operations/createtrackerentryuser.md - - docs/models/operations/createtrackerprojectrequest.md - - docs/models/operations/createtrackerprojectstatus.md - - docs/models/operations/createtrackerprojecttag.md - - docs/models/operations/createtransactionattachment.md - - docs/models/operations/createtransactionrequest.md - - docs/models/operations/createtransactionsattachment.md - - docs/models/operations/currententry.md - - docs/models/operations/dateformatrequest.md - - docs/models/operations/decision.md - - docs/models/operations/deletebankaccountrequest.md - - docs/models/operations/deletebankaccountresponse.md - - docs/models/operations/deletecustomerrequest.md - - docs/models/operations/deletecustomerresponse.md - - docs/models/operations/deletecustomertag.md - - docs/models/operations/deletedocumentrequest.md - - docs/models/operations/deletedocumentresponse.md - - docs/models/operations/deleteinboxitemrequest.md - - docs/models/operations/deleteinboxitemresponse.md - - docs/models/operations/deleteinvoicerequest.md - - docs/models/operations/deleteinvoiceresponse.md - - docs/models/operations/deletetagrequest.md - - docs/models/operations/deletetrackerentryrequest.md - - docs/models/operations/deletetrackerentryresponse.md - - docs/models/operations/deletetrackerprojectrequest.md - - docs/models/operations/deletetrackerprojectresponse.md - - docs/models/operations/deletetransactionrequest.md - - docs/models/operations/deletetransactionresponse.md - - docs/models/operations/deletetransactionsresponse.md - - docs/models/operations/deliverytype.md - - docs/models/operations/entry.md - - docs/models/operations/fromdetails.md - - docs/models/operations/getbankaccountbyidrequest.md - - docs/models/operations/getbankaccountbyidresponse.md - - docs/models/operations/getburnratereportsrequest.md - - docs/models/operations/getcurrenttimercustomer.md - - docs/models/operations/getcurrenttimerdata.md - - docs/models/operations/getcurrenttimerproject.md - - docs/models/operations/getcurrenttimerrequest.md - - docs/models/operations/getcurrenttimerresponse.md - - docs/models/operations/getcurrenttimeruser.md - - docs/models/operations/getcurrentuserdateformat.md - - docs/models/operations/getcurrentuserresponse.md - - docs/models/operations/getcurrentuserteam.md - - docs/models/operations/getcustomerbyidrequest.md - - docs/models/operations/getcustomerbyidresponse.md - - docs/models/operations/getcustomerbyidtag.md - - docs/models/operations/getdocumentbyidmetadata.md - - docs/models/operations/getdocumentbyidrequest.md - - docs/models/operations/getdocumentbyidresponse.md - - docs/models/operations/getdocumentpresignedurlrequest.md - - docs/models/operations/getdocumentpresignedurlresponse.md - - docs/models/operations/getexpensesreportsrequest.md - - docs/models/operations/getinboxitembyidrequest.md - - docs/models/operations/getinboxitembyidresponse.md - - docs/models/operations/getinboxitembyidtransaction.md - - docs/models/operations/getinboxpresignedurlrequest.md - - docs/models/operations/getinboxpresignedurlresponse.md - - docs/models/operations/getinvoicebyidcustomer.md - - docs/models/operations/getinvoicebyidrequest.md - - docs/models/operations/getinvoicebyidresponse.md - - docs/models/operations/getinvoicebyidstatus.md - - docs/models/operations/getinvoicespaymentstatusresponse.md - - docs/models/operations/getinvoicesummaryrequest.md - - docs/models/operations/getinvoicesummaryresponse.md - - docs/models/operations/getinvoicesummarystatus.md - - docs/models/operations/getoauthauthorizationrequest.md - - docs/models/operations/getoauthauthorizationresponse.md - - docs/models/operations/getoauthauthorizationstatus.md - - docs/models/operations/getprofitreportsrequest.md - - docs/models/operations/getrevenuereportsrequest.md - - docs/models/operations/getrunwayreportsrequest.md - - docs/models/operations/getspendingreportsrequest.md - - docs/models/operations/gettagbyidrequest.md - - docs/models/operations/getteambyidplan.md - - docs/models/operations/getteambyidrequest.md - - docs/models/operations/getteambyidresponse.md - - docs/models/operations/gettimerstatusdata.md - - docs/models/operations/gettimerstatusrequest.md - - docs/models/operations/gettimerstatusresponse.md - - docs/models/operations/gettrackerprojectbyidrequest.md - - docs/models/operations/gettransactionattachmentpresignedurlrequest.md - - docs/models/operations/gettransactionattachmentpresignedurlresponse.md - - docs/models/operations/gettransactionbyidrequest.md - - docs/models/operations/granttypeauthorizationcode.md - - docs/models/operations/granttyperefreshtoken.md - - docs/models/operations/lineitem.md - - docs/models/operations/listbankaccountsdata.md - - docs/models/operations/listbankaccountsrequest.md - - docs/models/operations/listbankaccountsresponse.md - - docs/models/operations/listcustomersdata.md - - docs/models/operations/listcustomersmeta.md - - docs/models/operations/listcustomersrequest.md - - docs/models/operations/listcustomersresponse.md - - docs/models/operations/listcustomerstag.md - - docs/models/operations/listdocumentsdata.md - - docs/models/operations/listdocumentsmeta.md - - docs/models/operations/listdocumentsmetadata.md - - docs/models/operations/listdocumentsrequest.md - - docs/models/operations/listdocumentsresponse.md - - docs/models/operations/listinboxitemsdata.md - - docs/models/operations/listinboxitemsmeta.md - - docs/models/operations/listinboxitemsrequest.md - - docs/models/operations/listinboxitemsresponse.md - - docs/models/operations/listinboxitemsstatus.md - - docs/models/operations/listinboxitemstransaction.md - - docs/models/operations/listinvoicescustomer.md - - docs/models/operations/listinvoicesdata.md - - docs/models/operations/listinvoicesmeta.md - - docs/models/operations/listinvoicesrequest.md - - docs/models/operations/listinvoicesresponse.md - - docs/models/operations/listinvoicesstatus.md - - docs/models/operations/listnotificationsrequest.md - - docs/models/operations/listnotificationsstatusenum1.md - - docs/models/operations/listnotificationsstatusenum2.md - - docs/models/operations/listteammembersdata.md - - docs/models/operations/listteammembersrequest.md - - docs/models/operations/listteammembersresponse.md - - docs/models/operations/listteamsdata.md - - docs/models/operations/listteamsplan.md - - docs/models/operations/listteamsresponse.md - - docs/models/operations/listtrackerentriescustomer.md - - docs/models/operations/listtrackerentriesmeta.md - - docs/models/operations/listtrackerentriesproject.md - - docs/models/operations/listtrackerentriesrequest.md - - docs/models/operations/listtrackerentriesresponse.md - - docs/models/operations/listtrackerentriesuser.md - - docs/models/operations/listtrackerprojectsrequest.md - - docs/models/operations/listtrackerprojectsstatus.md - - docs/models/operations/listtransactionsmeta.md - - docs/models/operations/listtransactionsrequest.md - - docs/models/operations/listtransactionsresponse.md - - docs/models/operations/listtransactionstype.md - - docs/models/operations/name.md - - docs/models/operations/notedetails.md - - docs/models/operations/paymentdetails.md - - docs/models/operations/postoauthauthorizationrequest.md - - docs/models/operations/postoauthauthorizationresponse.md - - docs/models/operations/postoauthrevokerequest.md - - docs/models/operations/postoauthrevokeresponse.md - - docs/models/operations/postoauthtokenrequest.md - - docs/models/operations/postoauthtokenresponse.md - - docs/models/operations/refreshtoken.md - - docs/models/operations/requestbody.md - - docs/models/operations/responsetype.md - - docs/models/operations/result.md - - docs/models/operations/role.md - - docs/models/operations/scope.md - - docs/models/operations/searchrequest.md - - docs/models/operations/searchresponse.md - - docs/models/operations/size.md - - docs/models/operations/starttimercustomer.md - - docs/models/operations/starttimerdata.md - - docs/models/operations/starttimerproject.md - - docs/models/operations/starttimerrequest.md - - docs/models/operations/starttimerresponse.md - - docs/models/operations/starttimeruser.md - - docs/models/operations/status.md - - docs/models/operations/stoptimercustomer.md - - docs/models/operations/stoptimerdata.md - - docs/models/operations/stoptimerproject.md - - docs/models/operations/stoptimerrequest.md - - docs/models/operations/stoptimerresponse.md - - docs/models/operations/stoptimeruser.md - - docs/models/operations/template.md - - docs/models/operations/templatedeliverytype.md - - docs/models/operations/templatefromdetails.md - - docs/models/operations/templatepaymentdetails.md - - docs/models/operations/tokentype.md - - docs/models/operations/tokentypehint.md - - docs/models/operations/topblock.md - - docs/models/operations/trackerproject.md - - docs/models/operations/updatebankaccountrequest.md - - docs/models/operations/updatebankaccountrequestbody.md - - docs/models/operations/updatebankaccountresponse.md - - docs/models/operations/updatebankaccounttype.md - - docs/models/operations/updatecurrentuserdateformatresponse.md - - docs/models/operations/updatecurrentuserrequest.md - - docs/models/operations/updatecurrentuserresponse.md - - docs/models/operations/updatecurrentuserteam.md - - docs/models/operations/updatecustomerrequest.md - - docs/models/operations/updatecustomerrequestbody.md - - docs/models/operations/updatecustomerresponse.md - - docs/models/operations/updatecustomertagrequest.md - - docs/models/operations/updatecustomertagresponse.md - - docs/models/operations/updateinboxitemrequest.md - - docs/models/operations/updateinboxitemrequestbody.md - - docs/models/operations/updateinboxitemresponse.md - - docs/models/operations/updateinboxitemstatus.md - - docs/models/operations/updateinboxitemtransaction.md - - docs/models/operations/updateinvoicecustomer.md - - docs/models/operations/updateinvoicerequest.md - - docs/models/operations/updateinvoicerequestbody.md - - docs/models/operations/updateinvoiceresponse.md - - docs/models/operations/updateinvoicestatusrequest.md - - docs/models/operations/updateinvoicestatusresponse.md - - docs/models/operations/updatenotificationstatusrequest.md - - docs/models/operations/updatenotificationstatusrequestbody.md - - docs/models/operations/updatenotificationstatusstatus.md - - docs/models/operations/updatetagrequest.md - - docs/models/operations/updatetagrequestbody.md - - docs/models/operations/updateteambyidplan.md - - docs/models/operations/updateteambyidrequest.md - - docs/models/operations/updateteambyidrequestbody.md - - docs/models/operations/updateteambyidresponse.md - - docs/models/operations/updatetrackerentrycustomer.md - - docs/models/operations/updatetrackerentrydata.md - - docs/models/operations/updatetrackerentryproject.md - - docs/models/operations/updatetrackerentryrequest.md - - docs/models/operations/updatetrackerentryrequestbody.md - - docs/models/operations/updatetrackerentryresponse.md - - docs/models/operations/updatetrackerentryuser.md - - docs/models/operations/updatetrackerprojectrequest.md - - docs/models/operations/updatetrackerprojectrequestbody.md - - docs/models/operations/updatetrackerprojectstatus.md - - docs/models/operations/updatetrackerprojecttag.md - - docs/models/operations/updatetransactionfrequency.md - - docs/models/operations/updatetransactionrequest.md - - docs/models/operations/updatetransactionrequestbody.md - - docs/models/operations/updatetransactionsfrequency.md - - docs/models/operations/updatetransactionsmeta.md - - docs/models/operations/updatetransactionsrequest.md - - docs/models/operations/updatetransactionsresponse.md - - docs/models/operations/updatetransactionsstatus.md - - docs/models/operations/updatetransactionstatus.md - - docs/models/profitcurrent.md - - docs/models/profitmeta.md - - docs/models/profitmetatype.md - - docs/models/profitpercentage.md - - docs/models/profitpercentagestatus.md - - docs/models/profitprevious.md - - docs/models/profitresultitem.md - - docs/models/profitsummary.md - - docs/models/revenuecurrent.md - - docs/models/revenuemeta.md - - docs/models/revenuemetatype.md - - docs/models/revenuepercentage.md - - docs/models/revenuepercentagestatus.md - - docs/models/revenueprevious.md - - docs/models/revenueresultitem.md - - docs/models/revenuesummary.md - - docs/models/security.md - - docs/models/source.md - - docs/models/spendingresultarray.md - - docs/models/summary.md - - docs/models/tagresponse.md - - docs/models/tagsresponse.md - - docs/models/trackerprojectresponse.md - - docs/models/trackerprojectresponsestatus.md - - docs/models/trackerprojectresponsetag.md - - docs/models/trackerprojectsresponse.md - - docs/models/trackerprojectsresponsemeta.md - - docs/models/transactionresponse.md - - docs/models/transactionresponsetag.md - - docs/models/updateallnotificationsstatusresponseschema.md - - docs/models/updateallnotificationsstatusschema.md - - docs/models/updateallnotificationsstatusschemastatus.md - - docs/models/user.md - - docs/sdks/bankaccounts/README.md - - docs/sdks/customers/README.md - - docs/sdks/documents/README.md - - docs/sdks/inbox/README.md - - docs/sdks/invoices/README.md - - docs/sdks/midday/README.md - - docs/sdks/notifications/README.md - - docs/sdks/oauth/README.md - - docs/sdks/reports/README.md - - docs/sdks/search/README.md - - docs/sdks/tags/README.md - - docs/sdks/teams/README.md - - docs/sdks/trackerentries/README.md - - docs/sdks/trackerprojects/README.md - - docs/sdks/trackertimer/README.md - - docs/sdks/transactions/README.md - - docs/sdks/users/README.md - - eslint.config.mjs - - examples/.env.template - - examples/README.md - - examples/oAuthGetOAuthAuthorization.example.ts - - examples/package.json - - jsr.json - - package.json - - src/core.ts - - src/funcs/bankAccountsCreate.ts - - src/funcs/bankAccountsDelete.ts - - src/funcs/bankAccountsGet.ts - - src/funcs/bankAccountsList.ts - - src/funcs/bankAccountsUpdate.ts - - src/funcs/customersCreate.ts - - src/funcs/customersDelete.ts - - src/funcs/customersGet.ts - - src/funcs/customersList.ts - - src/funcs/customersUpdate.ts - - src/funcs/documentsDelete.ts - - src/funcs/documentsGet.ts - - src/funcs/documentsGetPreSignedUrl.ts - - src/funcs/documentsList.ts - - src/funcs/inboxDelete.ts - - src/funcs/inboxGet.ts - - src/funcs/inboxGetPreSignedUrl.ts - - src/funcs/inboxList.ts - - src/funcs/inboxUpdate.ts - - src/funcs/invoicesCreate.ts - - src/funcs/invoicesDelete.ts - - src/funcs/invoicesGet.ts - - src/funcs/invoicesGetInvoicesPaymentStatus.ts - - src/funcs/invoicesList.ts - - src/funcs/invoicesSummary.ts - - src/funcs/invoicesUpdate.ts - - src/funcs/notificationsList.ts - - src/funcs/notificationsUpdateAllStatus.ts - - src/funcs/notificationsUpdateStatus.ts - - src/funcs/oAuthGetOAuthAuthorization.ts - - src/funcs/oAuthPostOAuthAuthorization.ts - - src/funcs/oAuthPostOAuthRevoke.ts - - src/funcs/oAuthPostOAuthToken.ts - - src/funcs/reportsBurnRate.ts - - src/funcs/reportsExpenses.ts - - src/funcs/reportsProfit.ts - - src/funcs/reportsRevenue.ts - - src/funcs/reportsRunway.ts - - src/funcs/reportsSpending.ts - - src/funcs/searchSearch.ts - - src/funcs/tagsCreate.ts - - src/funcs/tagsDelete.ts - - src/funcs/tagsGet.ts - - src/funcs/tagsList.ts - - src/funcs/tagsUpdate.ts - - src/funcs/teamsGet.ts - - src/funcs/teamsList.ts - - src/funcs/teamsMembers.ts - - src/funcs/teamsUpdate.ts - - src/funcs/trackerEntriesCreate.ts - - src/funcs/trackerEntriesCreateBulk.ts - - src/funcs/trackerEntriesDelete.ts - - src/funcs/trackerEntriesList.ts - - src/funcs/trackerEntriesUpdate.ts - - src/funcs/trackerProjectsCreate.ts - - src/funcs/trackerProjectsDelete.ts - - src/funcs/trackerProjectsGet.ts - - src/funcs/trackerProjectsList.ts - - src/funcs/trackerProjectsUpdate.ts - - src/funcs/trackerTimerGetCurrentTimer.ts - - src/funcs/trackerTimerGetTimerStatus.ts - - src/funcs/trackerTimerStartTimer.ts - - src/funcs/trackerTimerStopTimer.ts - - src/funcs/transactionsCreate.ts - - src/funcs/transactionsCreateMany.ts - - src/funcs/transactionsDelete.ts - - src/funcs/transactionsDeleteMany.ts - - src/funcs/transactionsGet.ts - - src/funcs/transactionsGetAttachmentPreSignedUrl.ts - - src/funcs/transactionsList.ts - - src/funcs/transactionsUpdate.ts - - src/funcs/transactionsUpdateMany.ts - - src/funcs/usersGet.ts - - src/funcs/usersUpdate.ts - - src/hooks/hooks.ts - - src/hooks/index.ts - - src/hooks/types.ts - - src/index.ts - - src/lib/base64.ts - - src/lib/config.ts - - src/lib/dlv.ts - - src/lib/encodings.ts - - src/lib/env.ts - - src/lib/files.ts - - src/lib/http.ts - - src/lib/is-plain-object.ts - - src/lib/logger.ts - - src/lib/matchers.ts - - src/lib/primitives.ts - - src/lib/retries.ts - - src/lib/schemas.ts - - src/lib/sdks.ts - - src/lib/security.ts - - src/lib/url.ts - - src/mcp-server/build.mts - - src/mcp-server/cli.ts - - src/mcp-server/cli/start/command.ts - - src/mcp-server/cli/start/impl.ts - - src/mcp-server/console-logger.ts - - src/mcp-server/extensions.ts - - src/mcp-server/mcp-server.ts - - src/mcp-server/prompts.ts - - src/mcp-server/resources.ts - - src/mcp-server/scopes.ts - - src/mcp-server/server.ts - - src/mcp-server/shared.ts - - src/mcp-server/tools.ts - - src/mcp-server/tools/bankAccountsCreate.ts - - src/mcp-server/tools/bankAccountsDelete.ts - - src/mcp-server/tools/bankAccountsGet.ts - - src/mcp-server/tools/bankAccountsList.ts - - src/mcp-server/tools/bankAccountsUpdate.ts - - src/mcp-server/tools/customersCreate.ts - - src/mcp-server/tools/customersDelete.ts - - src/mcp-server/tools/customersGet.ts - - src/mcp-server/tools/customersList.ts - - src/mcp-server/tools/customersUpdate.ts - - src/mcp-server/tools/documentsDelete.ts - - src/mcp-server/tools/documentsGet.ts - - src/mcp-server/tools/documentsGetPreSignedUrl.ts - - src/mcp-server/tools/documentsList.ts - - src/mcp-server/tools/inboxDelete.ts - - src/mcp-server/tools/inboxGet.ts - - src/mcp-server/tools/inboxGetPreSignedUrl.ts - - src/mcp-server/tools/inboxList.ts - - src/mcp-server/tools/inboxUpdate.ts - - src/mcp-server/tools/invoicesCreate.ts - - src/mcp-server/tools/invoicesDelete.ts - - src/mcp-server/tools/invoicesGet.ts - - src/mcp-server/tools/invoicesGetInvoicesPaymentStatus.ts - - src/mcp-server/tools/invoicesList.ts - - src/mcp-server/tools/invoicesSummary.ts - - src/mcp-server/tools/invoicesUpdate.ts - - src/mcp-server/tools/notificationsList.ts - - src/mcp-server/tools/notificationsUpdateAllStatus.ts - - src/mcp-server/tools/notificationsUpdateStatus.ts - - src/mcp-server/tools/oAuthGetOAuthAuthorization.ts - - src/mcp-server/tools/oAuthPostOAuthAuthorization.ts - - src/mcp-server/tools/oAuthPostOAuthRevoke.ts - - src/mcp-server/tools/oAuthPostOAuthToken.ts - - src/mcp-server/tools/reportsBurnRate.ts - - src/mcp-server/tools/reportsExpenses.ts - - src/mcp-server/tools/reportsProfit.ts - - src/mcp-server/tools/reportsRevenue.ts - - src/mcp-server/tools/reportsRunway.ts - - src/mcp-server/tools/reportsSpending.ts - - src/mcp-server/tools/searchSearch.ts - - src/mcp-server/tools/tagsCreate.ts - - src/mcp-server/tools/tagsDelete.ts - - src/mcp-server/tools/tagsGet.ts - - src/mcp-server/tools/tagsList.ts - - src/mcp-server/tools/tagsUpdate.ts - - src/mcp-server/tools/teamsGet.ts - - src/mcp-server/tools/teamsList.ts - - src/mcp-server/tools/teamsMembers.ts - - src/mcp-server/tools/teamsUpdate.ts - - src/mcp-server/tools/trackerEntriesCreate.ts - - src/mcp-server/tools/trackerEntriesCreateBulk.ts - - src/mcp-server/tools/trackerEntriesDelete.ts - - src/mcp-server/tools/trackerEntriesList.ts - - src/mcp-server/tools/trackerEntriesUpdate.ts - - src/mcp-server/tools/trackerProjectsCreate.ts - - src/mcp-server/tools/trackerProjectsDelete.ts - - src/mcp-server/tools/trackerProjectsGet.ts - - src/mcp-server/tools/trackerProjectsList.ts - - src/mcp-server/tools/trackerProjectsUpdate.ts - - src/mcp-server/tools/trackerTimerGetCurrentTimer.ts - - src/mcp-server/tools/trackerTimerGetTimerStatus.ts - - src/mcp-server/tools/trackerTimerStartTimer.ts - - src/mcp-server/tools/trackerTimerStopTimer.ts - - src/mcp-server/tools/transactionsCreate.ts - - src/mcp-server/tools/transactionsCreateMany.ts - - src/mcp-server/tools/transactionsDelete.ts - - src/mcp-server/tools/transactionsDeleteMany.ts - - src/mcp-server/tools/transactionsGet.ts - - src/mcp-server/tools/transactionsGetAttachmentPreSignedUrl.ts - - src/mcp-server/tools/transactionsList.ts - - src/mcp-server/tools/transactionsUpdate.ts - - src/mcp-server/tools/transactionsUpdateMany.ts - - src/mcp-server/tools/usersGet.ts - - src/mcp-server/tools/usersUpdate.ts - - src/models/createtag.ts - - src/models/errors/apierror.ts - - src/models/errors/createinvoice.ts - - src/models/errors/getdocumentpresignedurl.ts - - src/models/errors/getinboxpresignedurl.ts - - src/models/errors/getoauthauthorization.ts - - src/models/errors/gettransactionattachmentpresignedurl.ts - - src/models/errors/httpclienterrors.ts - - src/models/errors/index.ts - - src/models/errors/middayerror.ts - - src/models/errors/postoauthauthorization.ts - - src/models/errors/postoauthtoken.ts - - src/models/errors/responsevalidationerror.ts - - src/models/errors/sdkvalidationerror.ts - - src/models/expensesresultarray.ts - - src/models/getburnrateresponseschema.ts - - src/models/getexpensesresponseschema.ts - - src/models/getprofitresponseschema.ts - - src/models/getrevenueresponseschema.ts - - src/models/index.ts - - src/models/notificationresponseschema.ts - - src/models/notificationschema.ts - - src/models/notificationsresponseschema.ts - - src/models/operations/createbankaccount.ts - - src/models/operations/createcustomer.ts - - src/models/operations/createinvoice.ts - - src/models/operations/createtrackerentriesbulk.ts - - src/models/operations/createtrackerentry.ts - - src/models/operations/createtrackerproject.ts - - src/models/operations/createtransaction.ts - - src/models/operations/createtransactions.ts - - src/models/operations/deletebankaccount.ts - - src/models/operations/deletecustomer.ts - - src/models/operations/deletedocument.ts - - src/models/operations/deleteinboxitem.ts - - src/models/operations/deleteinvoice.ts - - src/models/operations/deletetag.ts - - src/models/operations/deletetrackerentry.ts - - src/models/operations/deletetrackerproject.ts - - src/models/operations/deletetransaction.ts - - src/models/operations/deletetransactions.ts - - src/models/operations/getbankaccountbyid.ts - - src/models/operations/getburnratereports.ts - - src/models/operations/getcurrenttimer.ts - - src/models/operations/getcurrentuser.ts - - src/models/operations/getcustomerbyid.ts - - src/models/operations/getdocumentbyid.ts - - src/models/operations/getdocumentpresignedurl.ts - - src/models/operations/getexpensesreports.ts - - src/models/operations/getinboxitembyid.ts - - src/models/operations/getinboxpresignedurl.ts - - src/models/operations/getinvoicebyid.ts - - src/models/operations/getinvoicespaymentstatus.ts - - src/models/operations/getinvoicesummary.ts - - src/models/operations/getoauthauthorization.ts - - src/models/operations/getprofitreports.ts - - src/models/operations/getrevenuereports.ts - - src/models/operations/getrunwayreports.ts - - src/models/operations/getspendingreports.ts - - src/models/operations/gettagbyid.ts - - src/models/operations/getteambyid.ts - - src/models/operations/gettimerstatus.ts - - src/models/operations/gettrackerprojectbyid.ts - - src/models/operations/gettransactionattachmentpresignedurl.ts - - src/models/operations/gettransactionbyid.ts - - src/models/operations/index.ts - - src/models/operations/listbankaccounts.ts - - src/models/operations/listcustomers.ts - - src/models/operations/listdocuments.ts - - src/models/operations/listinboxitems.ts - - src/models/operations/listinvoices.ts - - src/models/operations/listnotifications.ts - - src/models/operations/listteammembers.ts - - src/models/operations/listteams.ts - - src/models/operations/listtrackerentries.ts - - src/models/operations/listtrackerprojects.ts - - src/models/operations/listtransactions.ts - - src/models/operations/postoauthauthorization.ts - - src/models/operations/postoauthrevoke.ts - - src/models/operations/postoauthtoken.ts - - src/models/operations/search.ts - - src/models/operations/starttimer.ts - - src/models/operations/stoptimer.ts - - src/models/operations/updatebankaccount.ts - - src/models/operations/updatecurrentuser.ts - - src/models/operations/updatecustomer.ts - - src/models/operations/updateinboxitem.ts - - src/models/operations/updateinvoice.ts - - src/models/operations/updatenotificationstatus.ts - - src/models/operations/updatetag.ts - - src/models/operations/updateteambyid.ts - - src/models/operations/updatetrackerentry.ts - - src/models/operations/updatetrackerproject.ts - - src/models/operations/updatetransaction.ts - - src/models/operations/updatetransactions.ts - - src/models/profitcurrent.ts - - src/models/profitmeta.ts - - src/models/profitpercentage.ts - - src/models/profitprevious.ts - - src/models/profitresultitem.ts - - src/models/profitsummary.ts - - src/models/revenuecurrent.ts - - src/models/revenuemeta.ts - - src/models/revenuepercentage.ts - - src/models/revenueprevious.ts - - src/models/revenueresultitem.ts - - src/models/revenuesummary.ts - - src/models/security.ts - - src/models/spendingresultarray.ts - - src/models/tagresponse.ts - - src/models/tagsresponse.ts - - src/models/trackerprojectresponse.ts - - src/models/trackerprojectsresponse.ts - - src/models/transactionresponse.ts - - src/models/updateallnotificationsstatusresponseschema.ts - - src/models/updateallnotificationsstatusschema.ts - - src/sdk/bankaccounts.ts - - src/sdk/customers.ts - - src/sdk/documents.ts - - src/sdk/inbox.ts - - src/sdk/index.ts - - src/sdk/invoices.ts - - src/sdk/notifications.ts - - src/sdk/oauth.ts - - src/sdk/reports.ts - - src/sdk/sdk.ts - - src/sdk/search.ts - - src/sdk/tags.ts - - src/sdk/teams.ts - - src/sdk/trackerentries.ts - - src/sdk/trackerprojects.ts - - src/sdk/trackertimer.ts - - src/sdk/transactions.ts - - src/sdk/users.ts - - src/types/async.ts - - src/types/blobs.ts - - src/types/constdatetime.ts - - src/types/enums.ts - - src/types/fp.ts - - src/types/index.ts - - src/types/operations.ts - - src/types/rfcdate.ts - - src/types/streams.ts - - tsconfig.json + sdkHooks: 0.4.0 + unions: 2.86.3 +trackedFiles: + .devcontainer/README.md: + id: b170c0f184ac + last_write_checksum: sha1:bbdc884afe876d99b551b3ea749202d0adaf4045 + pristine_git_object: 9e2d75301f02ad08c05a8f8d5d108d95667b2bbd + .devcontainer/devcontainer.json: + id: b34062a34eb1 + last_write_checksum: sha1:d0b15193202c961e7d1875864ddb15f9d17c84dd + pristine_git_object: 4d560dd5f40afaf10d96eb75b1f02cd48bbd640c + .devcontainer/setup.sh: + id: 5f1dfbfeb8eb + last_write_checksum: sha1:8f14cb8075fbfb87569815d6174e4c030ee81145 + pristine_git_object: 24f2d60f942637495abfbd6fa2d5947152d178bc + .gitattributes: + id: 24139dae6567 + last_write_checksum: sha1:26d16d8297b104945139da8c25bd38feeaad3e25 + pristine_git_object: 113eead5093c17d43a46159132885318f281a68a + .npmignore: + id: aa70c1f807c3 + last_write_checksum: sha1:3d5eb92f81539175db1ff0280e0aefbdd701f200 + pristine_git_object: cf98a6bf092538eb10ff0edc915102682ce9a6e6 + FUNCTIONS.md: + id: 21b9df02aaeb + last_write_checksum: sha1:3a1b3c5715b55376bccb930027532ebf31061004 + pristine_git_object: 6ee4681c94d62d5a1bf9f1720b900352c222afd7 + RUNTIMES.md: + id: 620c490847b6 + last_write_checksum: sha1:e45b854f02c357cbcfdb8c3663000e8339e16505 + pristine_git_object: 27731c3b5ace66bedc454ed5acbe15075aacd3dc + USAGE.md: + id: 3aed33ce6e6f + last_write_checksum: sha1:ce8061f69cb631a2309624586b6eac76971b940c + pristine_git_object: 55e6a5dea0a7b53f149d14abfb3b7ebd72b6dfa1 + docs/lib/utils/retryconfig.md: + id: 0ce9707cb848 + last_write_checksum: sha1:bc4454e196fcd219f5a78da690375a884f5ed07b + pristine_git_object: 08f95f4552349360b2c0b01802aa71ec3a55d2c2 + docs/models/account.md: + id: f7d1e7e7409d + last_write_checksum: sha1:2a9bf9e7dd298c677825aa9b94b54e10f7c5c067 + pristine_git_object: 8a9a80e8f9c2cb118317403c34957e29ca20f4fd + docs/models/attachment.md: + id: 4317140d6e57 + last_write_checksum: sha1:08ba2d01c451adff282b5bf4ec3ab00490fede4c + pristine_git_object: d598d3880900bb9899f3d4a9e942e8db8dc08eae + docs/models/category.md: + id: 61e7fe02a3f6 + last_write_checksum: sha1:ec09ecfeca9e6438aabf39dc0bb880eb699e07ab + pristine_git_object: 901b67d44cc273e34d3384f33b2b6567cbf0b46e + docs/models/connection.md: + id: dcc1d19ad928 + last_write_checksum: sha1:0c67be564b157efd903d9dbd432b5677353c935b + pristine_git_object: 153af2083069115f14c9d31ecd3c3e647fe3e116 + docs/models/createtag.md: + id: c3f91d52c427 + last_write_checksum: sha1:d33a9b0621ad3c3a9372cb7196bf843306aa32f6 + pristine_git_object: 3281fdd8a44722de113a7f17b2172b9b2d515be0 + docs/models/customer.md: + id: 42ac97d31359 + last_write_checksum: sha1:915c3c1ecd9a5f759be9bcd58c21e942980244c0 + pristine_git_object: e49accfaed2e83140c013ef59a9acbffdbdba7c2 + docs/models/errors/conflicterror.md: + id: 6603f6b5bf79 + last_write_checksum: sha1:84f53177ecf8f92e2f77217637e5e338a55e3d8d + pristine_git_object: 71d5fd1f6eef4aa58f0cc9c7df1d11951cbc7eb7 + docs/models/errors/createinvoicebadrequesterror.md: + id: 227bbf2fd1b7 + last_write_checksum: sha1:98db156979ad316c44855a2be24bc4ff0ca693dc + pristine_git_object: 47d28278bad62ab520e7458cfc630babcf557bf1 + docs/models/errors/createinvoiceinternalservererror.md: + id: 837e83e49d9a + last_write_checksum: sha1:aae5fc8a28e150470e17257aab59e6cf347acf5c + pristine_git_object: 97d70485e0a269d75827c448aaf34b27159a8ddc + docs/models/errors/createinvoicenotfounderror.md: + id: 5cab489ec533 + last_write_checksum: sha1:1883413c8f88fffc7cc90bbf5cc4e17fe4b866a0 + pristine_git_object: 63b6d1aac6f370ba8145aced4f9c84db81d0f058 + docs/models/errors/downloadfilebadrequesterror.md: + id: 178c018e4699 + last_write_checksum: sha1:3a708ba4420a179c44f43c16323a6b56633c4a78 + pristine_git_object: 0f2e8da3eaf8c89b697c056d8db1a62a3b4ee5db + docs/models/errors/downloadfileinternalservererror.md: + id: 45c0ecc9f70b + last_write_checksum: sha1:eab246afdd8ff07b1d85e2abd2843da37f18bdb5 + pristine_git_object: 4fd709047286d6c803c9032fb1f274ea4648d5af + docs/models/errors/downloadfilenotfounderror.md: + id: 12b38faeac98 + last_write_checksum: sha1:082c379fbb067847969e7a3504f62f5fa697ebeb + pristine_git_object: a8fb7356a645cf6d998cf330a32a04518b294d55 + docs/models/errors/downloadfileunauthorizederror.md: + id: 6aa2cf2434cf + last_write_checksum: sha1:a4d592bcca391146ffc92e37e81b28bb06e266fc + pristine_git_object: 46b2813b168ff4e481c6a28e28d8f6ce53f1aedc + docs/models/errors/downloadinvoicebadrequesterror.md: + id: 1f077bfa7866 + last_write_checksum: sha1:d1fe4f10a90b6bfe58fd596446df810a443cac0b + pristine_git_object: c60abe39ec40cdcaed0f1bda4c2db5b9f97d4c86 + docs/models/errors/downloadinvoiceinternalservererror.md: + id: 14250e09a783 + last_write_checksum: sha1:14ae08fab1ed2330036b5d78c7e5ce90511ac001 + pristine_git_object: 9256d3df90f678a75b7651e8dbdb7078ea7517b8 + docs/models/errors/downloadinvoicenotfounderror.md: + id: d0a538e93c31 + last_write_checksum: sha1:b8483208fd6b2fcb66127702dead5903e60de23a + pristine_git_object: 3d22d1d326e2d554bda095f6447d0e2208071e0b + docs/models/errors/downloadinvoiceunauthorizederror.md: + id: 03a79632618b + last_write_checksum: sha1:7d9e0612fd77a3cc15772812ab3bd10c08fe47c8 + pristine_git_object: adc5d49e7d3c011d01f93940d445d4fccf32abad + docs/models/errors/getdocumentpresignedurlbadrequesterror.md: + id: 65a1704e1e73 + last_write_checksum: sha1:c84b2f7277d0869d79b9d0d3da234d541136aa0e + pristine_git_object: 129ff5c9221849e15d5509532bf729ab5d989a86 + docs/models/errors/getdocumentpresignedurlinternalservererror.md: + id: 106ba602689e + last_write_checksum: sha1:97cf0f1c02b6a58b3ad35ab4b9b83888b4790461 + pristine_git_object: af35e3ff9cd577167dc7ff002239f9d89461939d + docs/models/errors/getdocumentpresignedurlnotfounderror.md: + id: 6417a444d03b + last_write_checksum: sha1:77f203ed8f90db78136f5b29772aa722c9416ea9 + pristine_git_object: f8906fbb2ceeb9383ccda829bbd687264271fda7 + docs/models/errors/getinboxpresignedurlbadrequesterror.md: + id: af57a21c8ef8 + last_write_checksum: sha1:8b34d9f27e7393ecec7355a867523b96656d5d1b + pristine_git_object: 35b39fb681dd86a003ec1f214f1cead59e87bc2d + docs/models/errors/getinboxpresignedurlinternalservererror.md: + id: cf473e25bea7 + last_write_checksum: sha1:5dddd3c66f4e8ae6388a3fe5472d540f369db80d + pristine_git_object: 3604fbec9a168000fd6a2b86861925a6c74d52d7 + docs/models/errors/getinboxpresignedurlnotfounderror.md: + id: 15da3fb7b414 + last_write_checksum: sha1:df5a2c7b28cb4190e55d4c64a693bdf7cbb09232 + pristine_git_object: 459d1455fe1a39bf8fcdc22fd9f2cba60de8fff0 + docs/models/errors/getoauthauthorizationbadrequesterror.md: + id: 5f8608f64dbc + last_write_checksum: sha1:7c402cb6132b2ed460214bec8afcb4a97c3d3625 + pristine_git_object: b555cefcbe53b9fcf8ab5ed106f7e7e2cbcd93a3 + docs/models/errors/gettransactionattachmentpresignedurlbadrequesterror.md: + id: 4afb90f8abfd + last_write_checksum: sha1:5613421d828db96e827f814b93cfa42ccbeae0c0 + pristine_git_object: a8f8994444c5599ba0842380875385644ed867ac + docs/models/errors/gettransactionattachmentpresignedurlinternalservererror.md: + id: 35dd171c52b5 + last_write_checksum: sha1:d809ff36f09bc4061958db3f38d1e98c6bacb7c3 + pristine_git_object: 6ca1ce7378f4cf3ac4b3e45e5f47076e78a148ea + docs/models/errors/gettransactionattachmentpresignedurlnotfounderror.md: + id: b091b913d62d + last_write_checksum: sha1:e014bc1d41f529533bf56793e2426aa4acc51976 + pristine_git_object: 888f93e1138fd8e5b74ef4dc9adaf9afee9751e7 + docs/models/errors/gmailoauthcallbackbadrequesterror.md: + id: fc074a8527f1 + last_write_checksum: sha1:40aee7f7bd3b5957bfc6d331a253f3edeb7ccfdf + pristine_git_object: 049a1a7f9fe33a49b11da4b7b4e0bab794445429 + docs/models/errors/gmailoauthcallbackinternalservererror.md: + id: 360c7c430dc9 + last_write_checksum: sha1:5ef3e3ea8f6762c3eb6696da83968457e78719ab + pristine_git_object: 0dc83b9180888093144e03c12e0cb9259eb4ec1d + docs/models/errors/inboxwebhookbadrequesterror.md: + id: 82240543108f + last_write_checksum: sha1:bf39d2115b68476ceab2b9046f1ef37f26dc20b1 + pristine_git_object: cd6ca780e7b001616d2a67550f15651dc56bcbf5 + docs/models/errors/inboxwebhookinternalservererror.md: + id: 41aa4640b817 + last_write_checksum: sha1:0ec664d8cbf11353130b277631899c32a474fa5c + pristine_git_object: 7818da12f8fd41a3c9a0bec3e5279030ceabba41 + docs/models/errors/outlookoauthcallbackbadrequesterror.md: + id: 01f02bd91562 + last_write_checksum: sha1:3f3120af6b91a7c1438b1aa488111a80d8feb206 + pristine_git_object: 2a3f5c15295f641fc7959a5546c007b96653c6f5 + docs/models/errors/outlookoauthcallbackinternalservererror.md: + id: 1e114ae30372 + last_write_checksum: sha1:d25b90f55db425e3cd652a6a8a01929a4077a873 + pristine_git_object: 9b87a790369568b35163238acb4dbe67d155edfa + docs/models/errors/postoauthauthorizationbadrequesterror.md: + id: 05bb7435ea77 + last_write_checksum: sha1:9cbee241e381ef4edbca8d2f91f620e18b8b9947 + pristine_git_object: 89c59e875cec579ddc01567042e31cca94c35c2a + docs/models/errors/postoauthauthorizationunauthorizederror.md: + id: a46953eea0bb + last_write_checksum: sha1:fcc0ad1546a4e51c34e6680fced17ac6bc1559e7 + pristine_git_object: cccdf6e5da1e85e8e0c16521f7562f652669210c + docs/models/errors/postoauthtokenbadrequesterror.md: + id: addd30b835c5 + last_write_checksum: sha1:3625392a27a6ea1d7ce06cf7a2c3ae472b954065 + pristine_git_object: d56ce3e97b754eb0672301238a2b2c1bf5c0ce6c + docs/models/errors/proxyfilebadrequesterror.md: + id: 3c9d27dc5c3d + last_write_checksum: sha1:4162530c91f535521ec8d8c7c03bb1e33f81ac93 + pristine_git_object: d6dd85c1722bfff40daaad4210da69bc96d1ac17 + docs/models/errors/proxyfileinternalservererror.md: + id: 1fe6504f4f34 + last_write_checksum: sha1:82f34fe0a3443a837047aea4d1d3250071799291 + pristine_git_object: 8421f8f1b559ab592fcfbf261cf6a50a0132fca8 + docs/models/errors/proxyfilenotfounderror.md: + id: 683a6680ad57 + last_write_checksum: sha1:e6403d114eb3bf98f05de684230d8cb0f0e90d1b + pristine_git_object: 0e6288e61dd561510189fc38498e723ad3b54134 + docs/models/errors/slackoauthcallbackbadrequesterror.md: + id: 3dad298f97de + last_write_checksum: sha1:97c7edf0908554a649fc81a22e15ae2ded895fcd + pristine_git_object: 307c341f035a1d5a6c5679dfd9197167093dbeda + docs/models/errors/slackoauthcallbackinternalservererror.md: + id: 6dce7ea92074 + last_write_checksum: sha1:f3a908c70109ce7f8e1403b407b7c68caf9073f1 + pristine_git_object: d85318fbf3a6acafb28bafeffe3baf40805a24c9 + docs/models/expensesresultarray.md: + id: 9427c5c80d12 + last_write_checksum: sha1:4ef33692488d6680216d0362383d6439f711f0f7 + pristine_git_object: 16a30088a7f25f7bc994155dfff1801e8d5ceb74 + docs/models/getburnrateresponseschema.md: + id: c19e09475b3d + last_write_checksum: sha1:6dfedf10d510a59111f54d1b5db2e15f6a8a182d + pristine_git_object: 08eeb6ddb39f3c0fdb4d71f567a99b74ab96605f + docs/models/getexpensesresponseschema.md: + id: 6290a7b8cad4 + last_write_checksum: sha1:e0bc334bba9838fac29728896456a31e6bcb3f38 + pristine_git_object: 72b3c4ace41007bcbdd8bf78dc89d3d7b646c114 + docs/models/getexpensesresponseschemameta.md: + id: b44dd6f4d6f0 + last_write_checksum: sha1:61e93ca6ff5920f0176d263d317369dedb8d335c + pristine_git_object: df7bbd7834172eae5ced8a5b7959d9ec7876e05e + docs/models/getprofitresponseschema.md: + id: aa7b6cf63cab + last_write_checksum: sha1:de26cef0bb494dd645a1bf42312c15814468f46e + pristine_git_object: 7a4e1227b6613e1f3d7c605d8249679964fd7ad2 + docs/models/getrevenueresponseschema.md: + id: c7bf41683ba5 + last_write_checksum: sha1:c918e63bd307e385269b261d338028357b05979e + pristine_git_object: d4d2ec67b88cf67445dab3980fb3fc895bf2bf12 + docs/models/notificationresponseschema.md: + id: 47c4865ee96d + last_write_checksum: sha1:ee28e105bd15ab646b6f0b2f25f45db10ddc3253 + pristine_git_object: faf76dfd0a9c59b1f4275dbfa2edde5217c04f66 + docs/models/notificationschema.md: + id: 70d5af4dec2e + last_write_checksum: sha1:1380c00e05e4e890dde006fdf83cb074e30175a3 + pristine_git_object: 74b3b7129bd7d0b4cfa8ae3e1ced662dcf006f25 + docs/models/notificationschemastatus.md: + id: a6aafcd1903c + last_write_checksum: sha1:b8d27d78ea2397224e1b7ba4a7d43b4587279aba + pristine_git_object: d3fe5f31ce3f00bf81177f29b37a4b542c82528e + docs/models/notificationsresponseschema.md: + id: c6a241aeeddd + last_write_checksum: sha1:274227a9064846c6c6268cd646a458f2b7a196a6 + pristine_git_object: e20e89320650a89cb4f3edc1de889513e32b6e23 + docs/models/notificationsresponseschemameta.md: + id: 5a520ad5d7c4 + last_write_checksum: sha1:039f2e77ab69cf3686492513603bd21b9fc6859e + pristine_git_object: 5dd496fcd7e1e9ba60879b06293b673d1005e076 + docs/models/operations/attachments.md: + id: 97a1e5ecf926 + last_write_checksum: sha1:b6f79d9bd2f34480be815c69d1099b1d2e07402d + pristine_git_object: b38fc496cb15cdd6f41097b3ca4836c7eacb2a38 + docs/models/operations/authorizationcode.md: + id: 3dd3e2d14a58 + last_write_checksum: sha1:cc2363a082a7c50a02918aa7803f98a70243837e + pristine_git_object: 6b9fb7a54c12c440a4b034d4fcf9cca590abb00c + docs/models/operations/bottomblock.md: + id: 6ada9ff25642 + last_write_checksum: sha1:e4dd0e85489dc9b48f68501cb15f5d810be98d5c + pristine_git_object: 2dd983605011b1a4a6b6c15a6a014d1854ed16d3 + docs/models/operations/breakdown.md: + id: be2c2d7b499b + last_write_checksum: sha1:e5efce94d116bb1f7546a51825053e4df9d990b2 + pristine_git_object: 468ead5bfbbd099487a9543f19e87af76fae1399 + docs/models/operations/createbankaccountrequest.md: + id: 02f431df4335 + last_write_checksum: sha1:0b33590e1085fafe23a10de84facb1592181f481 + pristine_git_object: 596b17f9a2441adb334e1b788637d6ab8d6bdce2 + docs/models/operations/createbankaccountresponse.md: + id: 7bc7a9f7b1ce + last_write_checksum: sha1:1dbdc8bf2ce343c0eb7f767abfa5749bf01349c5 + pristine_git_object: 5ca15c465a724e1e9cc63def715d9ff5c2c4cc1e + docs/models/operations/createcustomerrequest.md: + id: c3734eb8b76d + last_write_checksum: sha1:8667e89eea98eb195c57153f2e1f2d7696df6ad3 + pristine_git_object: a2c38cb278755696812fb78242458a1b0a98016f + docs/models/operations/createcustomerresponse.md: + id: 079a424448a8 + last_write_checksum: sha1:d6816161d04f04847d5a32ca57bd41e5eb62aea8 + pristine_git_object: 6ed28a64c0be467413012d0c9b663984d2d8552f + docs/models/operations/createcustomertagrequest.md: + id: 41dd3218ba20 + last_write_checksum: sha1:2efd958f9d4011ed9478c23883436477af6b35ae + pristine_git_object: 640f9e4ded1a64cf7bad490bf42ab2d5b6b61d54 + docs/models/operations/createcustomertagresponse.md: + id: eb2ea5777149 + last_write_checksum: sha1:45a3dcba365f05b2559e2d6aa83e81c11b9c5a42 + pristine_git_object: e151ddb881e8de0922518b61207800d1501158cf + docs/models/operations/createinvoicepaymentintentrequest.md: + id: 19c175fde25a + last_write_checksum: sha1:5c5bebcd3d1fa2228463b1dcf84cd0d8e6507902 + pristine_git_object: de7c42482fa6b2e7d6bd1842f47b76ab4b633c63 + docs/models/operations/createinvoicepaymentintentresponse.md: + id: e0d7d3951628 + last_write_checksum: sha1:9fa38a06b840ff4d5e5779ad7363955bc723a02b + pristine_git_object: 87c53cb36cef94ee127d9156249323ea4178c09f + docs/models/operations/createinvoicerequest.md: + id: 8ad8536e4fad + last_write_checksum: sha1:e698b7e4031b5028388a261a70ab9c59b3c86256 + pristine_git_object: a356bbd2ecb103bb02dae104707fda309733a50f + docs/models/operations/createinvoiceresponse.md: + id: 265014a56035 + last_write_checksum: sha1:9c227186b1db2e6f89532902f8bd54409f13da4f + pristine_git_object: b71d7ce2d12cc875bf06828abdf4febfce10dde7 + docs/models/operations/createinvoicestatus.md: + id: 178811e12b6a + last_write_checksum: sha1:939dc7f3ab8dc6a354623aad9ea5c30ae84d51f1 + pristine_git_object: d497be1e2db1dcec6814e168223648c415b6752e + docs/models/operations/createtrackerentriesbulkcustomer.md: + id: 3b555c012875 + last_write_checksum: sha1:82bf7895c247b298cd2b3053218149415853a7e8 + pristine_git_object: 18b0b4b4c25de95a17cd007742e792f5f2e60fbe + docs/models/operations/createtrackerentriesbulkdata.md: + id: 8b0166216a02 + last_write_checksum: sha1:d3131481b2f8c7ad1b5db5679465444dc9a7840b + pristine_git_object: 48e170b50e6a50b78aa636fe4c0e97132ad917f2 + docs/models/operations/createtrackerentriesbulkproject.md: + id: 63808f80eced + last_write_checksum: sha1:5139c2f8b99c0f50bfbfd48c8b1f3e90baa095ff + pristine_git_object: 04d9a6e8460b42698f80ab910e4c17d3086b1a61 + docs/models/operations/createtrackerentriesbulkrequest.md: + id: 5f5eddedf543 + last_write_checksum: sha1:76b7513027afe35283dd5f276c94659cf6ae89b2 + pristine_git_object: e34e0fd0a9083b8b5614b25ea41d3660a6648508 + docs/models/operations/createtrackerentriesbulkresponse.md: + id: 9e609f324998 + last_write_checksum: sha1:9e00c3988f51da57be3ad64640c1082b2b2d06ce + pristine_git_object: f4d3d23d8247e3f80d758148a53088b230cae642 + docs/models/operations/createtrackerentriesbulkuser.md: + id: a0b7a361c368 + last_write_checksum: sha1:f58289c51ea60e7761d5d27eaa86cb4728d80334 + pristine_git_object: a52fa899c1fc6f6524d63c34d28f723e17e74b79 + docs/models/operations/createtrackerentrycustomer.md: + id: 9b081428c76e + last_write_checksum: sha1:044cdfdf081b21d04acb6883ba76c68722df6f77 + pristine_git_object: b0f4b1ba755b63789ae2591b1578ec67fcff90d8 + docs/models/operations/createtrackerentrydata.md: + id: cbb4daad8705 + last_write_checksum: sha1:a7e9ec2ef41d47ce783f70486d1dc65795ada1bb + pristine_git_object: 120e1c0a1a0cbf0aa5d73102af139028e40b1cd3 + docs/models/operations/createtrackerentryproject.md: + id: 8685117c0ff6 + last_write_checksum: sha1:239495c28d27ef2a4912f87c7448e37ba228fe08 + pristine_git_object: f8a71f23e062edb9f5fbe4928ce996ddac809cbd + docs/models/operations/createtrackerentryrequest.md: + id: 75bad16e0e35 + last_write_checksum: sha1:dd317f922cc81a315d7f7d46e1772e79b1d68691 + pristine_git_object: ed8c5526237f75376640787e3fbb475e859f1562 + docs/models/operations/createtrackerentryresponse.md: + id: 589b9370b7d0 + last_write_checksum: sha1:21e96d3eabc5f94656d34bf469ed4464e191e9e9 + pristine_git_object: f3e6f92e7cdc2d9f03c7472b9cb98fe4fbccd900 + docs/models/operations/createtrackerentryuser.md: + id: e02a54fda634 + last_write_checksum: sha1:747ce3a239e4026521b82889679815bd1c5791f3 + pristine_git_object: e96088d17f8171caf73d58be9cc6e9dc5933e45c + docs/models/operations/createtrackerprojectrequest.md: + id: 5ed235d786de + last_write_checksum: sha1:3d6ee91659beb5a287fd4c05f259830cb1b41c73 + pristine_git_object: 091b91b6a70f7385500b6d8a91955ebcfffae20c + docs/models/operations/createtrackerprojectstatus.md: + id: 427117de666f + last_write_checksum: sha1:51f65adfef33ff3840baf2884ad9da795e7d1d89 + pristine_git_object: fa2191c1983e89bd8f09b26482cb20d60656fcab + docs/models/operations/createtrackerprojecttag.md: + id: 5b380f6addfa + last_write_checksum: sha1:64cbea66efb403543e20fdf09795f9c7582abdd4 + pristine_git_object: 815898ad95123d99f2f8845fd6f855c656bd2f98 + docs/models/operations/createtransactionattachment.md: + id: 952408d78861 + last_write_checksum: sha1:599ebab0cd1e31f64f1188abec78b9155034aecc + pristine_git_object: 7b9fa62da8f0d950ed5e8bcfbb12a8f41274295b + docs/models/operations/createtransactionrequest.md: + id: cbbd329e3cc5 + last_write_checksum: sha1:d76e7dc2d0521a9042017d0d41ba04c37e635fbf + pristine_git_object: 384a7e19efeaf58d8c3d3f1eaf7fedc51aaeb9cf + docs/models/operations/createtransactionsattachment.md: + id: 747eb6956358 + last_write_checksum: sha1:0e6c36efe8000880adbbad1648565b71fc3276a5 + pristine_git_object: a712f6a7c3c3763e3a6edd8acd2c8ba099e017f2 + docs/models/operations/currententry.md: + id: f236b3b56c72 + last_write_checksum: sha1:b9e7721079b8b7edb64dcfc99d57f3a3bc546b92 + pristine_git_object: 157bb778c6595105afc3f1ea1820a4d948afae40 + docs/models/operations/dateformatrequest.md: + id: 10a53a5ee0b7 + last_write_checksum: sha1:8d56cb2a6a49f62229700744e98c25cacdcea449 + pristine_git_object: bb4efb09c514bea4e5b1b57aad0ed6d12a486d22 + docs/models/operations/decision.md: + id: cd5de6cc00f3 + last_write_checksum: sha1:3a7c1f36addbd68fad80e5a3113d4e83ee39bf91 + pristine_git_object: 393074ba47f7fbc2655308fbf75a72c3710bb132 + docs/models/operations/deletebankaccountrequest.md: + id: e4562105421e + last_write_checksum: sha1:43be82bff924dc06fe3a35aec1e9766dbd2e7387 + pristine_git_object: 86312573658c05269ff5bfce1d6c51444ea4bfa6 + docs/models/operations/deletebankaccountresponse.md: + id: fb89edc642f4 + last_write_checksum: sha1:4b28fd40ffed9c133697a6f3934c3af24aa4a797 + pristine_git_object: 7dc928d6d24d1481b1c11ea789f3777ed1738169 + docs/models/operations/deletecustomerrequest.md: + id: 0220c6057a92 + last_write_checksum: sha1:29f4c1301dd1693168cb731841962b3257d4180f + pristine_git_object: f3a466df2a59e8661d0d3bf15634ab778157e28e + docs/models/operations/deletecustomerresponse.md: + id: 369d2c78b07a + last_write_checksum: sha1:5a5a021e2455745f393b2296eb97c7451f75db71 + pristine_git_object: 3e91b8450d0de71408bd73f65acf094fc25cc06e + docs/models/operations/deletecustomertag.md: + id: 07462f148ed3 + last_write_checksum: sha1:8d3d42245f372c8f8cf23c9914f3c49599dafbcf + pristine_git_object: f054767f1467be21cb8ac20d90e3a71a336960f2 + docs/models/operations/deletedocumentrequest.md: + id: 0dc9a251eba6 + last_write_checksum: sha1:ed85b853f19ffb1e352f785b6e5b5ec693406fc7 + pristine_git_object: 9b350444f7a3cb120a3ab2753862f0258a6fd831 + docs/models/operations/deletedocumentresponse.md: + id: af764f87d7b3 + last_write_checksum: sha1:93e83c4342a02878a930986358fd5c401a8f5728 + pristine_git_object: f76483f63df13265f261e5f6f742c3428b06f1ca + docs/models/operations/deleteinboxitemrequest.md: + id: afc438ec6950 + last_write_checksum: sha1:b865d5cbdbc19846402c311677797cb77204654b + pristine_git_object: a42956dd7c4f6356906cee77a0ea3e98e39c34bc + docs/models/operations/deleteinboxitemresponse.md: + id: 22777367c666 + last_write_checksum: sha1:57f91d2334d8dd0c2924348c9f2047e1db335ea4 + pristine_git_object: 9c65d398834830617dad1af657f32a9f53044d0a + docs/models/operations/deleteinvoicerequest.md: + id: 74fd52d98b00 + last_write_checksum: sha1:b0f7bd1805041ea16950b8f1951c200c014eef78 + pristine_git_object: 46c191e7491037d5ced499d45a807397a07e19ff + docs/models/operations/deleteinvoiceresponse.md: + id: 925ee0040717 + last_write_checksum: sha1:fcc87ce2df5cad2af9c98cfe56e8e09f01690fbc + pristine_git_object: 96e3d7a7285b8ae2736ab2f8b59717b916ca6e7e + docs/models/operations/deletetagrequest.md: + id: c5bd05a19de2 + last_write_checksum: sha1:20716df4704d6ad40a793110dd1f320dd28220b0 + pristine_git_object: 156d04323498ccde19a6db2af5404dc16bf6100a + docs/models/operations/deletetrackerentryrequest.md: + id: d175ce04e925 + last_write_checksum: sha1:06493de7f94f18309ef875463ee5d0f5120febf6 + pristine_git_object: d122122d2fbf73f3e114785f9b86882b09feab4e + docs/models/operations/deletetrackerentryresponse.md: + id: 964aa543707d + last_write_checksum: sha1:fca036f2c3aba2b8afcca681cd7ce77d4ebde15f + pristine_git_object: 778dd5f594b26739425fb1b60f0cb57dac6b3898 + docs/models/operations/deletetrackerprojectrequest.md: + id: e6af480e2ff2 + last_write_checksum: sha1:44f60ae2104b52a7cf3b5454bbd86fada2663676 + pristine_git_object: df4c9bd45220d798301c83ebf8c0deb39ea3978e + docs/models/operations/deletetrackerprojectresponse.md: + id: 7e164710313e + last_write_checksum: sha1:3a3cdd061f1118e61d7c533fc2ad05ec42cc75df + pristine_git_object: 904a414acf8c94d1e4fac92af6c3940d6c459e9d + docs/models/operations/deletetransactionrequest.md: + id: 322cb8a6a44d + last_write_checksum: sha1:7ddc58b733a0096f05efd6296c91c5eada10488d + pristine_git_object: 1373d44cf09184ebc811a54c32f4632782642a48 + docs/models/operations/deletetransactionresponse.md: + id: 2d312115c99c + last_write_checksum: sha1:2af2b0054176361df769dbf9fd91f737405fd6c9 + pristine_git_object: af7764519002d1a54a8415a516ee7dde0d8464a3 + docs/models/operations/deletetransactionsresponse.md: + id: 1f8b7fe06726 + last_write_checksum: sha1:bd209415eb79d4b31f9218f05497210a5f8e6cc5 + pristine_git_object: ca04033063809eb2bb643ad5bb31f66a86abb619 + docs/models/operations/deliverytype.md: + id: b13fb7f321e8 + last_write_checksum: sha1:d27d94d4293c0d9bcc60edcfb355eb3631419bfb + pristine_git_object: de6afc48e49c8ffae44175949326c8050dc82e70 + docs/models/operations/disconnectstriperesponse.md: + id: ad2ecaf9b6fc + last_write_checksum: sha1:a120343800ecba098e1ea7f74810ff3664573bf7 + pristine_git_object: 9df1bff9f0ddf2f8c3211c465e7e7adef5b4c162 + docs/models/operations/downloadfilerequest.md: + id: 43042d9c5cfe + last_write_checksum: sha1:f8259741dbedbec7b489eabf1c89cb042e85351a + pristine_git_object: 39e870328a335f9942ec67830d10f054f71a0293 + docs/models/operations/downloadinvoicerequest.md: + id: 668a9f8e048c + last_write_checksum: sha1:2ee5d749de9f7cf26e758dad6c6079243bdbbfa6 + pristine_git_object: 2612110e584ebdcd7d4983c1dc2c205e3176b706 + docs/models/operations/entry.md: + id: e3756dff957e + last_write_checksum: sha1:771b78248b92a466ca8731ad84a2b44c066230c1 + pristine_git_object: a08b50e5c86e00539249949be16a36a8978ffec1 + docs/models/operations/errort.md: + id: fd8a580e4da8 + last_write_checksum: sha1:c20f448b8b90c1493e9e714e5476ac37a19abd5c + pristine_git_object: 0f21c3b3d39e7ab3a87415164a3859735a4e71fb + docs/models/operations/exportsettings.md: + id: 4eaa2eec855c + last_write_checksum: sha1:989f2223a03151a6377b26e581dc6011a7362425 + pristine_git_object: d16a786e57a1894d6da4f9592bb38b8447a054f7 + docs/models/operations/fortnoxoauthcallbackrequest.md: + id: 719b9f004dd3 + last_write_checksum: sha1:1863d389bc9d6b652c2dde5731a699af2ff64938 + pristine_git_object: 2c63a0ba06cd38d665cc258bebd27a9c9fbeb953 + docs/models/operations/fortnoxoauthcallbackresponse.md: + id: 48192084d50d + last_write_checksum: sha1:71241e59cd343a5bfa695e86da59d7cd9225a709 + pristine_git_object: 0fa3493596c2b20d50dcfef02b926b7c5488a796 + docs/models/operations/fromdetails.md: + id: b78f45b55e5c + last_write_checksum: sha1:553bc9de855179cca095e6b2e9e806bea8650d1d + pristine_git_object: 054020a97170e5ff21dd890d3e33f7c3e79ed713 + docs/models/operations/getbankaccountbyidrequest.md: + id: 5c3f8d8c306f + last_write_checksum: sha1:6469bf2ac54d13056929f707cc9cc5a3bf7b6b11 + pristine_git_object: 2e43f84d95f2f630f5e033bdeb821dbfd62f3917 + docs/models/operations/getbankaccountbyidresponse.md: + id: 0186d04b0a61 + last_write_checksum: sha1:442c173febdf8041303f7603116a356d7297d267 + pristine_git_object: d07c7da109d8183bd5190b527f0db5e2ed701065 + docs/models/operations/getburnratereportsrequest.md: + id: 215b2f7d6121 + last_write_checksum: sha1:d3d6b2f7bb37bbdc37824540ae547a5bb58099de + pristine_git_object: 823d6d3641d09c5643f45cff4038711b41e604da + docs/models/operations/getcurrenttimercustomer.md: + id: 2705bb240930 + last_write_checksum: sha1:4bc07791429b0e8bf8b36cb36da94758be3bb39d + pristine_git_object: 7e56afaf01fc8512f585be6c0707a09c72ff635f + docs/models/operations/getcurrenttimerdata.md: + id: 9db632103750 + last_write_checksum: sha1:efd9340f98f58035ef8d49209a4c657b15d4030f + pristine_git_object: a40708bc227310024981657682f7c5abf834fa7d + docs/models/operations/getcurrenttimerproject.md: + id: a85fb501f487 + last_write_checksum: sha1:9acb8d204828491010b8f7813fc31217f1f0ace6 + pristine_git_object: b8b86668e818457f8e9c13d975189f7809373686 + docs/models/operations/getcurrenttimerrequest.md: + id: 5dc45a19b4cf + last_write_checksum: sha1:77964d8bce0e90760e711592c0dd196ccbc3f986 + pristine_git_object: aa5b3f071ec8cef022fb21cc9804ee1fdf073161 + docs/models/operations/getcurrenttimerresponse.md: + id: "871232585570" + last_write_checksum: sha1:5bbea9a9da67277cd5e1a36730083bbae36c3677 + pristine_git_object: 3deeb3df91cdd95d081ea7dd193dddedfda46bbc + docs/models/operations/getcurrenttimeruser.md: + id: 88159dfc7ec4 + last_write_checksum: sha1:39a72df428e7e94edf8f83ef34d1fae96873fcdb + pristine_git_object: 4ebe36d6c0eaa733e5d7b9a2055d8b95d83f1e87 + docs/models/operations/getcurrentuserdateformat.md: + id: ba6cc5d2f2ee + last_write_checksum: sha1:64ebcccac1286802aaf0bc3f1a647e819b07a259 + pristine_git_object: 6db961a001d186d57d39676de5a2a4a4206bf97f + docs/models/operations/getcurrentuserresponse.md: + id: 112ba3598cf0 + last_write_checksum: sha1:e19424a4e4d8d497531ed9f85393085a015aca49 + pristine_git_object: 7333f10c59ac9a48a0879105d52fac4dbeed26bd + docs/models/operations/getcurrentuserteam.md: + id: a314f039c08e + last_write_checksum: sha1:2ef6ba57b6d13abce2287e601df1a5c91be294b1 + pristine_git_object: 3a7d8d26c0b2d71d75136e2f5c6333834387468a + docs/models/operations/getcustomerbyidrequest.md: + id: 9bf7bab7c172 + last_write_checksum: sha1:839b610b037d7e2a8787eaefa078e5b28bb7a69e + pristine_git_object: 73e7004804b83af7afbf63eca0d7c5db41964d47 + docs/models/operations/getcustomerbyidresponse.md: + id: b8b9cf537a40 + last_write_checksum: sha1:2de2ad1df0c12e145f04f983c7e1815e6f60f280 + pristine_git_object: fb40ddce72e0bea6415c3f64c902be5d96c47ce9 + docs/models/operations/getcustomerbyidtag.md: + id: 504b7926d4bc + last_write_checksum: sha1:fc46315d1655ad6ef0475a7a360e2af239baaf18 + pristine_git_object: 13ca72a0616bae68e2562dc0e29e728d6a73c379 + docs/models/operations/getdocumentbyidmetadata.md: + id: f8237782481f + last_write_checksum: sha1:664091d75eb1658da53a006496d36e2c025f8c74 + pristine_git_object: 44e1df9423b6a1273f0820dbb854bb602a31cf84 + docs/models/operations/getdocumentbyidrequest.md: + id: b91de02d1301 + last_write_checksum: sha1:ada97a601b7dcf3a9a09f3e2472260896ec59739 + pristine_git_object: 42ce6475275c6c84640b6ddef9dd295d34ce6ae6 + docs/models/operations/getdocumentbyidresponse.md: + id: 86b53ff21a15 + last_write_checksum: sha1:a5a54fc4f7cb6b66419e3ac872afd7f2e876e502 + pristine_git_object: 5baae66bb3cd6aab3af4eccf897a013385d0c19f + docs/models/operations/getdocumentpresignedurlrequest.md: + id: 55d92d8635b5 + last_write_checksum: sha1:3fd0554fcdd9ca5f2c3b9d37461a3e4e56a0e4ba + pristine_git_object: 0daf17ed45a793b8039753e09dcc96730b780239 + docs/models/operations/getdocumentpresignedurlresponse.md: + id: f4f8c2419843 + last_write_checksum: sha1:2d6132b2e2b8e3b88df7efce5a936dbaee53d540 + pristine_git_object: c2f7949ef471eb4bbb767dd353b3866f4ed6449b + docs/models/operations/getexpensesreportsrequest.md: + id: 8716f9acfb94 + last_write_checksum: sha1:1ea4a2a5595c71a2ac11188e5bbf78e39a67bef1 + pristine_git_object: e56491a542979f5b3c375ba8115be59994146884 + docs/models/operations/getfortnoxinstallurlresponse.md: + id: 9be3404b1850 + last_write_checksum: sha1:539dab74d92a352b324d062cfac0e664801e04bb + pristine_git_object: 38d41afcfd6f22923c3146138a137e210cecec9c + docs/models/operations/getgmailinstallurlresponse.md: + id: f9798ed6eb87 + last_write_checksum: sha1:2fe12685398c305103684938dd68d772616bd73d + pristine_git_object: c71031e455d68d07b13f63c330850eba3f53ba7f + docs/models/operations/getinboxitembyidrequest.md: + id: 8880f17486f7 + last_write_checksum: sha1:2913551b33c7338420693dfe4acfd3b1eb5aa095 + pristine_git_object: 0bedaca9e095be3190467f931acbe09673eb1cc8 + docs/models/operations/getinboxitembyidresponse.md: + id: bfd7f506d5d4 + last_write_checksum: sha1:5ecf9c6842cb8e0491df8ab8afeac4d0faf52354 + pristine_git_object: 9772cf3fe62273478953ae85eb985e0263ce8d42 + docs/models/operations/getinboxitembyidtransaction.md: + id: 00c42c1d5309 + last_write_checksum: sha1:63e9eeb1e585015ad5bca30a7bb11094fb9a1fb0 + pristine_git_object: 36ff415ba7fd16290dfa54710fee504c4c2a1002 + docs/models/operations/getinboxpresignedurlrequest.md: + id: 558bbe6f9d50 + last_write_checksum: sha1:005176733b8ab30664e7fbb2b4b7c8a3a8206dda + pristine_git_object: b48bca886c57948bf18a6fdbf44ee29de31c053a + docs/models/operations/getinboxpresignedurlresponse.md: + id: cfeb1e4fe49a + last_write_checksum: sha1:a8fcecf8371062249ec59771764858b0e27788a5 + pristine_git_object: 06e2b9ec52c7ea629dd2bc0034c140baefa2c167 + docs/models/operations/getinvoicebyidcustomer.md: + id: ccd043b64074 + last_write_checksum: sha1:a4254a44b45dee6b17b68c9bdcbd2621a4750e8f + pristine_git_object: 50d1cc87e887bab6f4958480ffe9ce9435af8bd0 + docs/models/operations/getinvoicebyidrequest.md: + id: a684110bdcf0 + last_write_checksum: sha1:3dceefb4f06029e06d06ece17905a9a7c140ece3 + pristine_git_object: 891ea18fcd9ef78e97f22ecb54913ef45e56fc97 + docs/models/operations/getinvoicebyidresponse.md: + id: 4490643c912e + last_write_checksum: sha1:ea2e40f0740f34d97355b165b157a285d36419e1 + pristine_git_object: 2f0f92c6831ffc962912378102d26041421c4da2 + docs/models/operations/getinvoicebyidstatus.md: + id: 3925a512391f + last_write_checksum: sha1:4a60a8b29e3d218ed1cd59c8cfd1ce168150e8b4 + pristine_git_object: fba283b3cd37d783d8d5a5669c0d68d684481848 + docs/models/operations/getinvoicespaymentstatusresponse.md: + id: de17f5bb2eb5 + last_write_checksum: sha1:2d7f908bcd8212ba38c24a64ed1e506aafc45fc6 + pristine_git_object: bc594337a3c970d8884fb328c8d7da9c3772d518 + docs/models/operations/getinvoicesummaryrequest.md: + id: 3eea29e3d0dc + last_write_checksum: sha1:7eb558bccfccb20a20ccfd88d1af86124c56add3 + pristine_git_object: 2c39494f3ccefa071d3f67f24dfe6b1956b2097e + docs/models/operations/getinvoicesummaryresponse.md: + id: 33d42b39f287 + last_write_checksum: sha1:62da7759181d54cd4fc4d8dda3fe2c016823341a + pristine_git_object: 90a672aa22c19951ff1d2325abc14c69e554946b + docs/models/operations/getinvoicesummarystatus.md: + id: 9141af4ad02c + last_write_checksum: sha1:61d2594748e7ddba4109a46b70f589cf677adfc0 + pristine_git_object: 50e1ef2af74ab5fd30784c10f8defaa27d5050b5 + docs/models/operations/getoauthauthorizationrequest.md: + id: a04b36ccec2d + last_write_checksum: sha1:fb03d1d8ebd2263c6ea50b4bf5176f8eb5860359 + pristine_git_object: 35a4cd26409d7e780aa95956f646b4e857c6fb7e + docs/models/operations/getoauthauthorizationresponse.md: + id: a773049e3155 + last_write_checksum: sha1:ab917aeac0f55ad0aa2188f61e5eba2ea4e6c98e + pristine_git_object: a0ec9ecda068204426bd2a754142e321025afe17 + docs/models/operations/getoauthauthorizationstatus.md: + id: b349bc5fb235 + last_write_checksum: sha1:0227562f9c605c4da27f4e2ddc2f5061504c253f + pristine_git_object: 189240f45d269db114d0f20e8d330d1809846f2e + docs/models/operations/getoutlookinstallurlresponse.md: + id: 49b1f3d3216d + last_write_checksum: sha1:59d97da2ae5e52f71f8685962738df4c660c392e + pristine_git_object: 1973673783dc1a48cf40d55a6e1fc0b84f531285 + docs/models/operations/getprofitreportsrequest.md: + id: ea75405a90c4 + last_write_checksum: sha1:727487bdfc21d51f91674980616dd5892134b409 + pristine_git_object: 1e2d20dc0b23ca09c762d75e4c4c0430963cdb3e + docs/models/operations/getprofitreportsrevenuetype.md: + id: d8a3610288c3 + last_write_checksum: sha1:462807b9080b6391600a3c05e97f517855fb176c + pristine_git_object: c0e242ee38c0c89682cfcc1fed90fa6e4e761531 + docs/models/operations/getquickbooksinstallurlresponse.md: + id: 8f6e8cc5ba05 + last_write_checksum: sha1:104e4d5fdb6e76d70651d0db1da05f59e59bf8bf + pristine_git_object: ecd87721c3c4a7fee27c5480a6868c489ba2b6e1 + docs/models/operations/getrevenuereportsrequest.md: + id: e3a27047b420 + last_write_checksum: sha1:75ec2b98729685be12955959f4e19d091d1395bb + pristine_git_object: b38f074e0104e9f5aaafe9acf22273a17af78e22 + docs/models/operations/getrevenuereportsrevenuetype.md: + id: 291a35dc6a05 + last_write_checksum: sha1:2b7981f8cf544896352ae02205685c3856a2d2bf + pristine_git_object: dac79b7bfcca4e57915e381f47c00fab37d5ac73 + docs/models/operations/getrunwayreportsrequest.md: + id: "902409457354" + last_write_checksum: sha1:4885d6e27c6c67f2b7642cd8ebbf906a4e20f501 + pristine_git_object: 30a89d201cd7e04019f1efe275ea7adaf52dfbb0 + docs/models/operations/getslackinstallurlresponse.md: + id: 28a779b3f393 + last_write_checksum: sha1:a01d018931d1ddf0f0781b0f4744368164ab1131 + pristine_git_object: 3d4c9f23190e1a3edd030381c6c131c50af1b2ec + docs/models/operations/getspendingreportsrequest.md: + id: 20048eee208d + last_write_checksum: sha1:771bd49c5114807d4197bf032217a37f9bf647b0 + pristine_git_object: 4655bc2d841d1b3ccdfd1eef5fa270e92a46c6cd + docs/models/operations/getstripeconnectstatusresponse.md: + id: 3006950d8c65 + last_write_checksum: sha1:adcf3aaf16afc635da5968c0d430de47c1630aab + pristine_git_object: aa74b572afc0ec9b6035f477b7e1ebcee702f143 + docs/models/operations/getstripeconnecturlresponse.md: + id: e36ebf5f7051 + last_write_checksum: sha1:0e7dd4d31a39e203e24ba5626fe8d37060b6be66 + pristine_git_object: 0b897a006994b19e7bed240e6d9846cf6a976874 + docs/models/operations/gettagbyidrequest.md: + id: 82eb225d6dd9 + last_write_checksum: sha1:b94144d39a72c9c4d01a682aee9dab0791026d22 + pristine_git_object: 268328dbd7bb4a7b30110aaaf85b19293fe94fbb + docs/models/operations/getteambyidplan.md: + id: 779d4733de98 + last_write_checksum: sha1:498c6ae9c8b2e80faf3b3a45479f9bf19d7c80d9 + pristine_git_object: 5670045cae25044055bfb5ddf22d3d80705f6da2 + docs/models/operations/getteambyidrequest.md: + id: 71bc711443e4 + last_write_checksum: sha1:210d2a935a3419b3a638a9e0ba9bb977d281ffa0 + pristine_git_object: 4fa14c02e134a6183bc492b72445810e85a897b2 + docs/models/operations/getteambyidresponse.md: + id: 82003767af74 + last_write_checksum: sha1:56d4cc01ea2576588193bfb405f95a79c9112b1e + pristine_git_object: 531e090effcd33e07abf610978b82e245e03501c + docs/models/operations/gettimerstatusdata.md: + id: 8eb60d39d563 + last_write_checksum: sha1:fc92d307cc1ce013aae4ca6c65b48343b1ed622f + pristine_git_object: 7a922907eb035a7cc2924135e38796d80d2352fb + docs/models/operations/gettimerstatusrequest.md: + id: 77730674e02b + last_write_checksum: sha1:2abf4fdde02113fd2c4d30cc670ddd8931c968cd + pristine_git_object: 99cf3ee6e099170fc9382b2b92954156facac6e6 + docs/models/operations/gettimerstatusresponse.md: + id: 6cd323943f15 + last_write_checksum: sha1:4962c27db14fa55c2801e4a79161922d04dfdbae + pristine_git_object: f0d8fe6d04fa172b567a530806df0fe0e9774ec4 + docs/models/operations/gettrackerprojectbyidrequest.md: + id: 10cf8ffd7c34 + last_write_checksum: sha1:ef3fa647561d8bea2743b023ac82fbd32ba0afdf + pristine_git_object: 64cc444979471df10f68c7b6e2ba74eb4a76a7a5 + docs/models/operations/gettransactionattachmentpresignedurlrequest.md: + id: 058c1af75d88 + last_write_checksum: sha1:9f4be3271f7bbe7f5b17a83fbdfea46ea2456a6e + pristine_git_object: a5b259c5c518f77864e34471d46f77c93d861d0e + docs/models/operations/gettransactionattachmentpresignedurlresponse.md: + id: 5b0f16d4a154 + last_write_checksum: sha1:3dd2ea6045b381df47731e33823393571ae691a7 + pristine_git_object: 1443afa2204e0a2cec49fb0536e3baa1745e7dc9 + docs/models/operations/gettransactionbyidrequest.md: + id: 0e4013c65303 + last_write_checksum: sha1:988f37aebfe14524338cb670ccad2d540c1afe44 + pristine_git_object: b070565fb405c6c055012c31b15a33a2b0ca5e39 + docs/models/operations/getxeroinstallurlresponse.md: + id: e17a41fba475 + last_write_checksum: sha1:dff611745813bd50420b746748985d9fc016685f + pristine_git_object: 4fca24f9673ca22001a02665a72c4a17873b8cd8 + docs/models/operations/gmailoauthcallbackrequest.md: + id: 3f03267af05c + last_write_checksum: sha1:7fd5094f08fb7ad54b8ccf388838677225c8b408 + pristine_git_object: caf97394944c89f2726a847c2531c66c4e595cd4 + docs/models/operations/gmailoauthcallbackresponse.md: + id: 0cb8c45936b2 + last_write_checksum: sha1:3059f9b7292cf1e7b36c1fc791d40f441fa21369 + pristine_git_object: 4e62fe758aaa70aab300e9a38629903781e3c36d + docs/models/operations/inboxwebhookresponse.md: + id: 3c09cb48b70a + last_write_checksum: sha1:739866c8136bb41908485c25cbed4a54c451a3ed + pristine_git_object: 4081c5b3ffe3795fb97dfc2a54fd9f009c7d9a94 + docs/models/operations/lineitem.md: + id: b1d48dfdda08 + last_write_checksum: sha1:db19d52dddfa12bf58120f103cf373445137d68c + pristine_git_object: a036ce2362e6c34d3df84b98ac41f6863f1e02a7 + docs/models/operations/listbankaccountsdata.md: + id: 6ccdb468b1a7 + last_write_checksum: sha1:6d4ec6e2e00c8354b381bbdc78da541cb262a55b + pristine_git_object: 9ad4b48c1ced65bd5ebaffecac54d9c3794a6320 + docs/models/operations/listbankaccountsrequest.md: + id: c56875301857 + last_write_checksum: sha1:0e019b1e2a5f56b5ebe463e05a9584680b7015f9 + pristine_git_object: 7beccf0476a4d0bd9f57741554c1e0763eb8340c + docs/models/operations/listbankaccountsresponse.md: + id: 71686fbb66e9 + last_write_checksum: sha1:436242c2288b8f87ab81010c27800687d4c08d73 + pristine_git_object: c639fd1ecce592c1320a25d3742fdf6b1c476559 + docs/models/operations/listcustomersdata.md: + id: cb950f204540 + last_write_checksum: sha1:ab3f2783cd1afdd7f566429772fa27ae40e66824 + pristine_git_object: 3f0a5d6c4021b4b6e08d32ddb4a3ee93e206f092 + docs/models/operations/listcustomersmeta.md: + id: 2ddcfcf51030 + last_write_checksum: sha1:c89de77ca7ca4a6f7751c79cca7c6e41f2a26d12 + pristine_git_object: 7c8b6ae2a73de9ece890db7a7866bf8cc59b92a7 + docs/models/operations/listcustomersrequest.md: + id: 14ff269ba0f9 + last_write_checksum: sha1:c80f6f51f0b0e14f398401dbb785e525f41022ca + pristine_git_object: e405325833eb1d52937383bc2d6f52161e7569fc + docs/models/operations/listcustomersresponse.md: + id: d47486952596 + last_write_checksum: sha1:02f2125b7c23618d97096b40d85bc00eb0c259a1 + pristine_git_object: 64e4fc7dba145d1167ff39301e22cc2897f33f4b + docs/models/operations/listcustomerstag.md: + id: c57442ff36a0 + last_write_checksum: sha1:edf2ad26f402094a8a710aeba83741133334070e + pristine_git_object: 20b5d3d6b7ae8f6e7a69adc0f3f5880d48e5a417 + docs/models/operations/listdocumentsdata.md: + id: 8dbda4bcc990 + last_write_checksum: sha1:ba6b3cca9a926df50ec3dbae37d0c585b14a4171 + pristine_git_object: 9baf91b9268bd6ec0b586ef358f2680987a601ce + docs/models/operations/listdocumentsmeta.md: + id: b542e2111b73 + last_write_checksum: sha1:99c56937f3b9ac7ce0e383121d18464523ee4877 + pristine_git_object: caabad0e5f8b21f54ee2b0bdcde6dfb6756ae89b + docs/models/operations/listdocumentsmetadata.md: + id: 7b2b92406244 + last_write_checksum: sha1:ea61fe388a285a519e0929014577d3a41ada0c56 + pristine_git_object: 1a9f563b17c49b6e64341114e07719a5ea07b88f + docs/models/operations/listdocumentsrequest.md: + id: 2b4bc2b3a90a + last_write_checksum: sha1:91232335716d29fc28ea445971ad283886d648ff + pristine_git_object: 6b7dbce0fa6fa7b29b0d45112d9d9fc1caa96599 + docs/models/operations/listdocumentsresponse.md: + id: 99e553893d30 + last_write_checksum: sha1:c1e2661bacbcefbb99e77fa398d667cb6297d9be + pristine_git_object: 394a0d4c51436737c6765607791141524dc2e877 + docs/models/operations/listinboxitemsdata.md: + id: 80324482b8b1 + last_write_checksum: sha1:fe5bf93f2a31bc7922f0db805d47f6b3cd6c694f + pristine_git_object: d247dc9746bd4511dd50141617da0f619a974445 + docs/models/operations/listinboxitemsmeta.md: + id: f6d2687aeb7c + last_write_checksum: sha1:40f44fc8a8889df564827bf34f6035908de494e3 + pristine_git_object: 344a9672a2f2a24e971e4434dd129c2a546a06c9 + docs/models/operations/listinboxitemsrequest.md: + id: 222f14d3bcc9 + last_write_checksum: sha1:1ed0782ef0df5024106d533526196b1c62826975 + pristine_git_object: c7ef614962f51dc1ad41cf588185497208b6669c + docs/models/operations/listinboxitemsresponse.md: + id: 4acc8add1411 + last_write_checksum: sha1:182de6bc0244f021c473d00153e34aa6c4a4365b + pristine_git_object: a359c4af76fe36cbc3461bb790868923698b9db2 + docs/models/operations/listinboxitemsstatus.md: + id: 1a43888dfd92 + last_write_checksum: sha1:ad1549facbb8b34a89c44750097b240445b38d66 + pristine_git_object: ad1550ddd6d8e8fa280b5ecbb0259c4857494bdf + docs/models/operations/listinboxitemstransaction.md: + id: 89033aadc925 + last_write_checksum: sha1:57b995726852bdfe6cd0fc07714a84145a043a21 + pristine_git_object: ca9199aedadd515d9fa05b0c37416dc339213b82 + docs/models/operations/listinvoicescustomer.md: + id: eb0fc9815bd6 + last_write_checksum: sha1:82f1284f04118611843d099b189074ca0e8c02fa + pristine_git_object: f663a551b93120fc1106f499fc0025ac4f4e7599 + docs/models/operations/listinvoicesdata.md: + id: 0bcdc8a70d50 + last_write_checksum: sha1:7afc51a8db1d34ce146b421e3f1d6a65a69d381e + pristine_git_object: c924fc5499c4a40aee50a3f072a700bd25c7699c + docs/models/operations/listinvoicesmeta.md: + id: 775f6213a27a + last_write_checksum: sha1:102ed987a58e2a87611566903d06b872b56eb8fe + pristine_git_object: d1511f88c67f6b9b400aefa4434ec93acde3d3f1 + docs/models/operations/listinvoicesrequest.md: + id: 935df5699f7a + last_write_checksum: sha1:0890bcdcd8b6e59ded8fc794c463adeed1e434fb + pristine_git_object: 30cf5eb7a7889b18b71cbdc0cecdf6f16883ca58 + docs/models/operations/listinvoicesresponse.md: + id: 62f0f2480e03 + last_write_checksum: sha1:eb32c7360fdfe2baa5cf86bc7a6fc178bd020e1e + pristine_git_object: fd126e7f082dd8442db93c274e38fa155b3c655b + docs/models/operations/listinvoicesstatus.md: + id: 13ad60c28472 + last_write_checksum: sha1:0bf53c04b79f5b6d3a9e0a021709f0b85d157c73 + pristine_git_object: c5041a3240587f43aaaf2eaf49790a475f8f0463 + docs/models/operations/listnotificationsrequest.md: + id: 91b32bd07c94 + last_write_checksum: sha1:5c7be9b74b34c636bd4fee6f72dc7a321587f986 + pristine_git_object: 546203663ba27ba730e70a1261e5fffd889589f9 + docs/models/operations/listnotificationsstatusenum1.md: + id: 8fcf7cba7eb0 + last_write_checksum: sha1:be2a2a8415b811deed99af112217615cb98928d0 + pristine_git_object: bc9b2a2aaf31b932b40223f28cfdef8fd121c4a2 + docs/models/operations/listnotificationsstatusenum2.md: + id: 97a508e86ee4 + last_write_checksum: sha1:3d950b6a2bf0543c800a28a9370c4a225c56bd0c + pristine_git_object: d15bdf803d08329957bd2ba2c0de372ac42c2195 + docs/models/operations/listteammembersdata.md: + id: 2921b2c60754 + last_write_checksum: sha1:762ed82f3a1ee36e258d86e09a88cd915e08e043 + pristine_git_object: dbb302a50bb105a72854e25e5068db866154c701 + docs/models/operations/listteammembersrequest.md: + id: 821e4f88d5a6 + last_write_checksum: sha1:63a39fb4fa1dc5602a312e408c612cd26207e398 + pristine_git_object: 5d3e1c7257a642157905d6bff61bbd107b8b0a25 + docs/models/operations/listteammembersresponse.md: + id: 2c7d0bd65185 + last_write_checksum: sha1:0a0e59ffa3cc8ae3e8b8465eeeb5facb3df612cf + pristine_git_object: a4e9f7d4b7ea60baaa5f97e92fa590b6ed81a212 + docs/models/operations/listteamsdata.md: + id: 8588b52b430e + last_write_checksum: sha1:12c55830b0211b628624123a78064941081f706e + pristine_git_object: a8f7a44cc1654a905fb2778cefe4092d83c987d2 + docs/models/operations/listteamsplan.md: + id: 5530760c1981 + last_write_checksum: sha1:60bba69e9924f9f5efcf9e7bc95f364e6a98cf44 + pristine_git_object: 03c91f2e1341ab52f1e425dddf5a46f34c19ef61 + docs/models/operations/listteamsresponse.md: + id: a21ebf37cb1c + last_write_checksum: sha1:fcbe61904a668f30454baae25c86c567166516a0 + pristine_git_object: 1b2e2f809cdbf6969a4ffd3f546194f07fa4647b + docs/models/operations/listtrackerentriescustomer.md: + id: 01341e52e65b + last_write_checksum: sha1:f24bc0c89ab6fc766d1a3dba67ed86a6cb193a10 + pristine_git_object: 49f5d63055fa2fb152e4dedbf433378b810132f4 + docs/models/operations/listtrackerentriesmeta.md: + id: bfe18bc3d053 + last_write_checksum: sha1:308df9ff7fe4827017ab4dbef9ef917068bb00e1 + pristine_git_object: b255c11a5405fe2a91ca78a488603ae90b2f9501 + docs/models/operations/listtrackerentriesproject.md: + id: 4d020169e121 + last_write_checksum: sha1:bcabfd49611974e29e51adeef185dfc7dcf938e4 + pristine_git_object: 1f2209e48cee4ad000aabeed444fa0e378b95a19 + docs/models/operations/listtrackerentriesrequest.md: + id: e7a86e0c086a + last_write_checksum: sha1:1f003ba05e7c058348d52f099c6852b55e411546 + pristine_git_object: d9ec52c4d1630ac548d5f2dc6bfea32f0ad872ae + docs/models/operations/listtrackerentriesresponse.md: + id: 275c65f4c9fb + last_write_checksum: sha1:393b8f2fcd34a3138e834f84290c9418b7599015 + pristine_git_object: 1d2126333829fe89260a6eeabef81bfeb4f8f68f + docs/models/operations/listtrackerentriesuser.md: + id: 59c74bba19ce + last_write_checksum: sha1:5efb9f9dcbd5fff12cb4213c8b2e67baa5d7e6fb + pristine_git_object: 3f06bbb4372694a941050272abed48a37735e008 + docs/models/operations/listtrackerprojectsrequest.md: + id: be3dd39016bb + last_write_checksum: sha1:a4c37dbb266ac672d9cb3e9a8ad03a3741559f8c + pristine_git_object: a8d3a358cb55b0517f3e056fb002d90a6713d368 + docs/models/operations/listtrackerprojectsstatus.md: + id: 7e474c1aac99 + last_write_checksum: sha1:612c551834bee2c32135974ed7885b977e44f790 + pristine_git_object: 8eb84ed16b30e98b599e5e3e462d3b4e90fffe74 + docs/models/operations/listtransactionsmeta.md: + id: 3e82bbd57cfb + last_write_checksum: sha1:65f2458b97514a278e38956c4096b4f0ade08467 + pristine_git_object: 7666077adfc2073422a4a19a16eeb125e65a3bed + docs/models/operations/listtransactionsrequest.md: + id: fff2b83cdbd0 + last_write_checksum: sha1:6a6c7182faf86c7277fb6d05d72b10edfacf890d + pristine_git_object: a7cb75d277893f3260f226e840de9da4173393a8 + docs/models/operations/listtransactionsresponse.md: + id: 51bfe5620e37 + last_write_checksum: sha1:46bab5646a2f09d994d9b5bd17ee5602be1cd7aa + pristine_git_object: feb27f06a3b03a0f913263202c2b2760cb90b50f + docs/models/operations/listtransactionstype.md: + id: fb39e7c564ba + last_write_checksum: sha1:e1fbb50764ecb49a4db2b1de75b26892c2ed4212 + pristine_git_object: 12ebce04f1e5d7968d0e4d63afb5d9f2d0b1f1bb + docs/models/operations/manual.md: + id: da5e4e1fdf17 + last_write_checksum: sha1:cd40672eec463a4f45e6d023c58e901e8093ccec + pristine_git_object: e7e953f1a85deb7a7b9eb73f7b8d851de8bbbed0 + docs/models/operations/name.md: + id: ff7a63a87b74 + last_write_checksum: sha1:0be458246e1f56e2357d7d6eb14e20d3b6b3ee9a + pristine_git_object: 078d8c0df1470b00824df24b479d99c1c3b00622 + docs/models/operations/notedetails.md: + id: e5af2111f084 + last_write_checksum: sha1:9d3e87738c5a781ac6f8a7fea11825eae71cc075 + pristine_git_object: 0a4edfa702ce94279574ccd9adf1b1bc88304d4e + docs/models/operations/outlookoauthcallbackrequest.md: + id: e53635da46b0 + last_write_checksum: sha1:2a4ca461cb4b7955bcccc75d9ed9d76c92927ec9 + pristine_git_object: 5cddcfd150f4e644532488a5edbc879e62ec2f27 + docs/models/operations/outlookoauthcallbackresponse.md: + id: 5b380d57edba + last_write_checksum: sha1:63d16ad4427566b3c7963cde28a303af96f31fdd + pristine_git_object: 46d68acb5de561d6583a33cfe5c729efae24ba38 + docs/models/operations/paymentdetails.md: + id: 2089dd6b5edb + last_write_checksum: sha1:12e0eb9349892e13e8e5fed0a2c210863e17bcda + pristine_git_object: cc49c51e1f7ca2ab283bad4fca500cf29b4abcdb + docs/models/operations/postoauthauthorizationrequest.md: + id: 5933e8095dd0 + last_write_checksum: sha1:2063c531a620d4c381c1c480078334291b525079 + pristine_git_object: 067f2b0b97641bbf761e01accfa687610fa8b392 + docs/models/operations/postoauthauthorizationresponse.md: + id: 42305d7c2099 + last_write_checksum: sha1:ce8b745cf6e08894214c47f429f50af7daf3b9c4 + pristine_git_object: 082b635297baf4e68d72a485365247d25a3684e9 + docs/models/operations/postoauthrevokerequest.md: + id: 4f799ca83595 + last_write_checksum: sha1:4fe5a6475e830c0ce9df288c989df0e52f318f30 + pristine_git_object: 2d85447cd3bc9a7b583e91c968f79a80cd2852fd + docs/models/operations/postoauthrevokeresponse.md: + id: e61ae201337d + last_write_checksum: sha1:a08b66ebe13191e0602ff9807cb49992dc83ba4e + pristine_git_object: 5215148ecb5293e2fb7fae40ebcac936ba840973 + docs/models/operations/postoauthtokenrequest.md: + id: eb5c57fcde2b + last_write_checksum: sha1:d7d3f99f2826c31ed5af31139422adb8b1586145 + pristine_git_object: a4a4651277e57a8722d812651dc8711946d4d4a8 + docs/models/operations/postoauthtokenresponse.md: + id: 3d634052b501 + last_write_checksum: sha1:5925ad38f114d562434c82194fb12c296d64adc2 + pristine_git_object: be9247fd0c7e17999f7e27bf0454a1b6480446f9 + docs/models/operations/proxyfilerequest.md: + id: 66b492964973 + last_write_checksum: sha1:4f53510022720bcab84342da30ed35ac05367a57 + pristine_git_object: 999d87b92e5ce24b06e368833b29c7f9b224815c + docs/models/operations/quickbooksoauthcallbackrequest.md: + id: d62a4b941c2a + last_write_checksum: sha1:8d36058894f23bf5692971fb60549658caccb360 + pristine_git_object: dfc516c06ebe2e6d41235e28b013d1388d74a600 + docs/models/operations/quickbooksoauthcallbackresponse.md: + id: 6c9d1292b23e + last_write_checksum: sha1:06ebb8166c2885538856b79ab6fdb0e22403734b + pristine_git_object: fe92656d0475c14bcb6acb5ec8fb38aeb91d2b8b + docs/models/operations/refreshtoken.md: + id: a523975b8e03 + last_write_checksum: sha1:281889f115c34fb4b2540fc387ee8dc91be29232 + pristine_git_object: 7b5ddd348686dd861bef85de4b6a68d4d3b128fd + docs/models/operations/requestbody.md: + id: f78af0833126 + last_write_checksum: sha1:3ddd02d9055d7830ff26d4ab5d28b0c370dc864f + pristine_git_object: b102bb95bb629794dcdbf2162fc178b699e95eaf + docs/models/operations/responsetype.md: + id: e302c158fea0 + last_write_checksum: sha1:37b30faccc52957dd56c1a082e147b55127a0211 + pristine_git_object: 8cf3165426fd4616e71c099de0b82e5ef0c08ea9 + docs/models/operations/result.md: + id: 6953cabb9266 + last_write_checksum: sha1:bb05ad9f36a396edca29b6aedcd4bfa41d6e2a3c + pristine_git_object: 91df5b7e503e9915379043106363979387f2956d + docs/models/operations/role.md: + id: da2c36811787 + last_write_checksum: sha1:3d4caf19068ccb30637acdd45cfdcb950e5e4c36 + pristine_git_object: b0a4dabfbbacfd0d096a1c7d292f65178a109438 + docs/models/operations/scope.md: + id: 98c2fd6409a4 + last_write_checksum: sha1:ace76b5c48158d23b1b9727674c15756e6c3b48b + pristine_git_object: ca61cbcd1d2082026c5ce671ac3a85a9b080aa94 + docs/models/operations/searchrequest.md: + id: 4351dc03334a + last_write_checksum: sha1:da4aa06dca2326f3e01a5876680397c69399d0ba + pristine_git_object: e6cb1d6aaaa0e4c08b82fb57328ebbc9ff5aba86 + docs/models/operations/searchresponse.md: + id: 72bf5f8f3bf1 + last_write_checksum: sha1:c8dcaaf60ec026a9e1da2dc682f28e05271612d8 + pristine_git_object: e7d801bb4afca9f1dad8f16e0f80015c2c2298a1 + docs/models/operations/size.md: + id: 0237aef819eb + last_write_checksum: sha1:46cfbf72544eba0710cd9cac963f503b1190bfb3 + pristine_git_object: c6839e3dbb1f56e2f98fa57bdb21f979b1f9f12b + docs/models/operations/slackinteractionsresponse.md: + id: 14d10282e344 + last_write_checksum: sha1:dccffe4774d2015028f62b86675e221377b60fd2 + pristine_git_object: 041139a879e94956a904e452acd82ff9fb700ade + docs/models/operations/slackoauthcallbackrequest.md: + id: 1899e09362b3 + last_write_checksum: sha1:471cbbfa2fe18ed568e4a4401be486a0005ae6a0 + pristine_git_object: 39cacda0e918dea92c5f3be14384be1b3990f500 + docs/models/operations/slackoauthcallbackresponse.md: + id: f1cc049397b9 + last_write_checksum: sha1:20d40a8f06755ef5938646547202075f87aa8d88 + pristine_git_object: b0447617d2e2dedc2ebef7677c681607f2dc049b + docs/models/operations/slackwebhookresponse.md: + id: 66f1ce7ab960 + last_write_checksum: sha1:e2537eabac7245c18de92ae52480cf39a1f51ba2 + pristine_git_object: 64b0f523b094e241498c24af52d443c330f60a20 + docs/models/operations/starttimercustomer.md: + id: 6be00fef3ab9 + last_write_checksum: sha1:6b528c10cf23514d490e5731665e333311999863 + pristine_git_object: addd7570fb902d7446f315bf5c4097a2e92c28a4 + docs/models/operations/starttimerdata.md: + id: e1879cb0cb6c + last_write_checksum: sha1:cc1979241f2ca958635ab0a6ee4361a3818a5c51 + pristine_git_object: 3c2d4f05cb64de063d446521fd8f02fa1a461971 + docs/models/operations/starttimerproject.md: + id: a6b4f0c365a8 + last_write_checksum: sha1:6c0791f8a6f9d860a3b3ac070ba75d4267031d2b + pristine_git_object: 9d6358f9662914ca5e6a920705a19450ffbacefa + docs/models/operations/starttimerrequest.md: + id: 67e7d39cb55a + last_write_checksum: sha1:d75b602f4ee290981249c9e67a0f26469c2c1e03 + pristine_git_object: 2d400825e6f2560c09da7a58b0b34ccd7a899cd9 + docs/models/operations/starttimerresponse.md: + id: 06481e07caaa + last_write_checksum: sha1:51a40a97eff305d3552d92bd4b11af5c3cc3140d + pristine_git_object: 0dc35a47ce632016a7dbbe7d2c88ecddf6289d06 + docs/models/operations/starttimeruser.md: + id: 0157bc1b04cb + last_write_checksum: sha1:42739290573d480649116868c67ffaab017cb7c3 + pristine_git_object: e18939a39ae7c30487ff60f90ff617506b72c84f + docs/models/operations/status.md: + id: a42267b6f2cb + last_write_checksum: sha1:0de45b1700a69a406fcfdcd3431e2faa3e4771f3 + pristine_git_object: c17f0a7a035b3dc931a9bfe25c081f0975397e4b + docs/models/operations/stoptimercustomer.md: + id: c59a4823857e + last_write_checksum: sha1:6c2cf647098bfa2e55517efea572f4401ded0d60 + pristine_git_object: 9021b2a4df33462d7ea22e800dd6ca17669f1e47 + docs/models/operations/stoptimerdata.md: + id: 18c8621e11c6 + last_write_checksum: sha1:6e1c850fec0b5226a4f2a2f9c4351edba42738e9 + pristine_git_object: c4a21549d585c00066734fb075942033b8000ff3 + docs/models/operations/stoptimerproject.md: + id: 9e138ed2e31a + last_write_checksum: sha1:8b1ee77e33100a37ca38b5517fccbb05513d923f + pristine_git_object: 5073e5bcf843a8b23850a8475db5af134c93f69a + docs/models/operations/stoptimerrequest.md: + id: 322034e84a41 + last_write_checksum: sha1:d41506097682d83453a76b5a9e9f76279be039de + pristine_git_object: 720c4d3ca5aa6921a1b4e6bf8c0caf4e377e408c + docs/models/operations/stoptimerresponse.md: + id: b41ddba3f716 + last_write_checksum: sha1:74d5eca9b40a8c08dc3eeeafe70c0a81e77719fa + pristine_git_object: cf1bdc72fa279610f646fe8f1d19f99392059ca4 + docs/models/operations/stoptimeruser.md: + id: fe31e9a420eb + last_write_checksum: sha1:d0e57ccee655b7d2c279058a53eec9160b0c8ee0 + pristine_git_object: 874b6f3397024ff540b246bbf562fc5a72d8115f + docs/models/operations/stripeconnectcallbackrequest.md: + id: db893d53a50b + last_write_checksum: sha1:5be2d52ff46d5a3295dc8200899c27667b5da7eb + pristine_git_object: ceea2f467c86314f42111e6e6328b8970ba37938 + docs/models/operations/stripeconnectcallbackresponse.md: + id: 54a10c2cc60c + last_write_checksum: sha1:930e7540ae324f1b60c34cbbb5be8f8340c90b69 + pristine_git_object: b27c99aac05489f22812e74e39e71eb337be3d94 + docs/models/operations/stripewebhookresponse.md: + id: c663165f5ca9 + last_write_checksum: sha1:9b940ee0dda4ef14454d659c8a118fe072384f77 + pristine_git_object: 8ddf1ebcc7bfb2ac87d99d22174d7fa4135e62dd + docs/models/operations/template.md: + id: acafda6dbc96 + last_write_checksum: sha1:3a99e4d7af2538e99b45ecf64e8b04c9f46136ea + pristine_git_object: 8eb59be3c0e438767f3d2c5306c94df1bcc591da + docs/models/operations/templatedeliverytype.md: + id: 0b1bc30b7d5c + last_write_checksum: sha1:f079cc61192cf04a56d02da82a76b9e74747083c + pristine_git_object: e7b07c9390f704898a9ee1e82b998b9c717c48d7 + docs/models/operations/templatefromdetails.md: + id: 437cba5544ac + last_write_checksum: sha1:0f16a3803889eff39a3d1dba6e90347fe07eb5f5 + pristine_git_object: f34d8600d96fed31d1e1b26aa1eb2c9763d8e16e + docs/models/operations/templatenotedetails.md: + id: 123409ded32e + last_write_checksum: sha1:cfaf20158fb43af200c1c185652b1e3ef3ae1f2a + pristine_git_object: f892c61dbb4838929150b121d181e9aee116a9c1 + docs/models/operations/templatepaymentdetails.md: + id: d4ba0282fbe0 + last_write_checksum: sha1:ef30044b1b4998f3a63e42c58e3fea7ce0a406b8 + pristine_git_object: 40bcc0916b4b23ea965188dd77419bb3b000c861 + docs/models/operations/tokentype.md: + id: 3145082a2289 + last_write_checksum: sha1:48b53a25ff24dbfdeecbf57056f23f79042cedc8 + pristine_git_object: ec40adfecce7667c3adce51d268b3ad728778eac + docs/models/operations/tokentypehint.md: + id: 43ca5f396aed + last_write_checksum: sha1:1b61c2988416a11b3e8b755d89965cae1bc6bc7c + pristine_git_object: 9efff27297cf1cdbd870c3335cd5779ac4a2792a + docs/models/operations/topblock.md: + id: fc81261a888b + last_write_checksum: sha1:2dab0242b13395752d9b8cba70a3955bf49f6887 + pristine_git_object: 33f11c56d4e6d7d4c4b455d03c164fba682466fc + docs/models/operations/trackerproject.md: + id: 550a1f1136c6 + last_write_checksum: sha1:0cdf4e08da670c63a172ec8f2539f8ee5a37c210 + pristine_git_object: b33c17aca4347e60aa069a3b5eb124a1da8def0f + docs/models/operations/updatebankaccountrequest.md: + id: c929813ff3e6 + last_write_checksum: sha1:456f1ebc310c0d2e1955d5a4a74a07a673684782 + pristine_git_object: 99dc845c055c7e643f68386bf2fa78c5d941b34f + docs/models/operations/updatebankaccountrequestbody.md: + id: 482b1bdf88a6 + last_write_checksum: sha1:5233effcd8a54cce7b12c66ea8c41f6b6dbe5de4 + pristine_git_object: 6d38a813ee18a18cc83137aa806ab67c6c6899b1 + docs/models/operations/updatebankaccountresponse.md: + id: a35761b398a3 + last_write_checksum: sha1:bf0c79ee6f9530657dbc762416f1b0cb2d3e33a8 + pristine_git_object: 68e67e5f85450353574ce728d281f1aad51b1959 + docs/models/operations/updatebankaccounttype.md: + id: 162a76982539 + last_write_checksum: sha1:107c479a2ebb72befd80b0840cc509e1e47c01d8 + pristine_git_object: 7ae51ca27897b6179d79c76759d320f25a6066c4 + docs/models/operations/updatecurrentuserdateformatresponse.md: + id: f3d32520ce11 + last_write_checksum: sha1:81d2fda4db152c42a9bb1726661d202390007655 + pristine_git_object: a229d3c744b29ff8d9d7f3f5189f7396441be50a + docs/models/operations/updatecurrentuserrequest.md: + id: ccd9bc562d63 + last_write_checksum: sha1:552f8535ec0ff52fa0ae89159fba1f000e3348c5 + pristine_git_object: e2a01351787064ca0bebc6b166c7eca4487cd65b + docs/models/operations/updatecurrentuserresponse.md: + id: bb88c3b9bfff + last_write_checksum: sha1:c02f2b409b5eeed78dee892b0f52e6ddf0d954d8 + pristine_git_object: ade3cd405c4c051ff0aaa77bc445c3728acbcccf + docs/models/operations/updatecurrentuserteam.md: + id: f441f3b5f940 + last_write_checksum: sha1:01c9b66c4a1f078be77af6973aa6fb29dcd9dc30 + pristine_git_object: 328eed5ce1f4bb062423ae5291812dc6d55bd388 + docs/models/operations/updatecustomerrequest.md: + id: f101533d0565 + last_write_checksum: sha1:9a2ae9e5fa11030d95eff26c7940b313e0af2489 + pristine_git_object: 4c7603441765919be472426001810bb0fa589539 + docs/models/operations/updatecustomerrequestbody.md: + id: 1429cc32f823 + last_write_checksum: sha1:963824a026b7fc834f7057252c221b2d3de125ab + pristine_git_object: e16ca4bebf9fccb4745755a841f7998f04b67e68 + docs/models/operations/updatecustomerresponse.md: + id: e5562a8478af + last_write_checksum: sha1:299f6aa73187872dc0b0d02381fa005d134d9c48 + pristine_git_object: 0788ca8ecd4363bd9a4184ae4926af1e3a3b0321 + docs/models/operations/updatecustomertagrequest.md: + id: 455989d3fcb3 + last_write_checksum: sha1:d4d87ee2eca757dfe9511044a66161dfb85f6a74 + pristine_git_object: 19fd92ef0170be55fc9151544021186cb871a9ab + docs/models/operations/updatecustomertagresponse.md: + id: 3fe06a654567 + last_write_checksum: sha1:b2b6f81102b65d57a15d8c98194d33a132a90990 + pristine_git_object: e1ac93212d7efee23233233ff49df3bda97732ce + docs/models/operations/updateinboxitemrequest.md: + id: 807c4a75980c + last_write_checksum: sha1:2a8a0917537c2ae1d03fbede479476287f5c2cec + pristine_git_object: 09e4bec2774e46e6ec008f9a448ea94a94ecead2 + docs/models/operations/updateinboxitemrequestbody.md: + id: 0d5c00317682 + last_write_checksum: sha1:8fcde6873c5b5e2d8b3079df1b219bcfac761344 + pristine_git_object: ae5f0a4f9205b042acbd8879dbbef0ee9eaaa133 + docs/models/operations/updateinboxitemresponse.md: + id: 2303257c16e3 + last_write_checksum: sha1:1d516d292f98537412c0980e304dd99deac398e4 + pristine_git_object: 9470ce6865f3a0378bff954c548450a7078d9ae9 + docs/models/operations/updateinboxitemstatus.md: + id: 603bc0994a7f + last_write_checksum: sha1:0d25fcbd8f649b95b241ac81f72b3be7806ef1d6 + pristine_git_object: 975d2a6f2c8ace6a5e04f76f149d8cbbde504cbb + docs/models/operations/updateinboxitemtransaction.md: + id: 2dff2c3f00a1 + last_write_checksum: sha1:1429f75aeffcd050446aba6e1bc57b5964c7977a + pristine_git_object: bfaeebc4acd94420343440ea843458d54f10fc3c + docs/models/operations/updateinvoicecustomer.md: + id: a470fe79c3ec + last_write_checksum: sha1:0a8f34210935ace248cda3dae9f4195777876e8e + pristine_git_object: de57c24b3d826cda54f7e91fbb2ec0f116dfbfcb + docs/models/operations/updateinvoicerequest.md: + id: dab9e0094932 + last_write_checksum: sha1:d30defc5eec50e26eb7dba3ffbfcd9cc014f0409 + pristine_git_object: fb492fff74d694bf3eecd018c6728ecc0e5f3b9e + docs/models/operations/updateinvoicerequestbody.md: + id: 03258ff761ec + last_write_checksum: sha1:3486ccaa471c5e070f4ab7095bf0c5c7d16ca83c + pristine_git_object: 1f2608bab0be37f21fdfe13c8f48b154e5e02b68 + docs/models/operations/updateinvoiceresponse.md: + id: a118620a3fc0 + last_write_checksum: sha1:308bce1d396241781054e722f52be5b1d0d3659f + pristine_git_object: b60fad72702279a32201e458e557062840590341 + docs/models/operations/updateinvoicestatusrequest.md: + id: 6dd5871eb9ca + last_write_checksum: sha1:ef52d6a92f980748171da87a0fbba5521fe04f3f + pristine_git_object: 888e75ed91d6e570c574b8b538e51c6ee64302a3 + docs/models/operations/updateinvoicestatusresponse.md: + id: 7b66a70d3e9b + last_write_checksum: sha1:ca156344df992f21de0b515a0dc5f0222a947b99 + pristine_git_object: 46df3c51b90dacd74cfa6666f196b6eb0db1e14c + docs/models/operations/updatenotificationstatusrequest.md: + id: a848c48231ab + last_write_checksum: sha1:44613782d9243898550eb6dc448a70ff870f4df3 + pristine_git_object: 24b79629dc753da28c9914b418b2dc0c70566b98 + docs/models/operations/updatenotificationstatusrequestbody.md: + id: 3248af6dcefb + last_write_checksum: sha1:f23c9e2117a6d5704d5051878fdfac39fdd707ca + pristine_git_object: a36228559d30c0c6c8012c8de0580e119518e451 + docs/models/operations/updatenotificationstatusstatus.md: + id: 373cacd4b6d9 + last_write_checksum: sha1:d7a959bedfdbe2c65a352482e1a980222f975e54 + pristine_git_object: 0856b7cc0e010c0219e563ec3d2b4796495cafa2 + docs/models/operations/updatetagrequest.md: + id: 7ffe9706d0e6 + last_write_checksum: sha1:d0476940f9249169f89e6cdd4e86111fabb403a8 + pristine_git_object: e223f94bad797213c543c14fcc7a00bab6c4e822 + docs/models/operations/updatetagrequestbody.md: + id: ae00a5d46ceb + last_write_checksum: sha1:36c3b8f11a118e3380032ad8c3135b648a7b61cf + pristine_git_object: 1f332ebfafc29e7c457b4d07f08d0cdd5a19b89c + docs/models/operations/updateteambyidplan.md: + id: 9085549a76a5 + last_write_checksum: sha1:b365a7e11da1aa40454420f9829e7b4c59f62910 + pristine_git_object: 9381ea1c26ebd58d4c769a3882df6be48c727ae6 + docs/models/operations/updateteambyidrequest.md: + id: 08be54a42275 + last_write_checksum: sha1:2d0ab8f1e3846d9941d83e83bce4a4cfe341348b + pristine_git_object: 520e6c53ae0901fc7ffd92ad109a0755322d6e51 + docs/models/operations/updateteambyidrequestbody.md: + id: 1db88166c8fa + last_write_checksum: sha1:650f31f60180bb4679ea90736fe5d6308aa4594c + pristine_git_object: 16459e0ed858930671929cc75a73c2b5d3c63986 + docs/models/operations/updateteambyidresponse.md: + id: 20566eaa7c73 + last_write_checksum: sha1:e436c4e53f84683c371967713bee38613008731e + pristine_git_object: cfdd84475f37bab618b81d9a64dc5ca079cdc86b + docs/models/operations/updatetrackerentrycustomer.md: + id: e6a08eb8fbf6 + last_write_checksum: sha1:749f1d57601fb93a91bc3fcedbda55d27336202d + pristine_git_object: 9f200f7f29d9196364b04e2e9e3307898ebc2f38 + docs/models/operations/updatetrackerentrydata.md: + id: 437717a8928c + last_write_checksum: sha1:39a071d151f93a542972bff9c1a735f358b9d98d + pristine_git_object: 8659533fe6b7ee64dedd944a435635aca7076e93 + docs/models/operations/updatetrackerentryproject.md: + id: 23989f8c7d1b + last_write_checksum: sha1:c43117eb7b2ab350923252d478dd84116aacc842 + pristine_git_object: 51792d283bfaac2c2264fe6ea043112d5257ce31 + docs/models/operations/updatetrackerentryrequest.md: + id: 89174c5c3cbc + last_write_checksum: sha1:eae0adeafce7eaad9ddf61302b45eae196f49beb + pristine_git_object: 1a3a92e57e129c67b12880059fe821fbacaa4da8 + docs/models/operations/updatetrackerentryrequestbody.md: + id: a04bb021a1e5 + last_write_checksum: sha1:c814ac7dadf13a910ab7a15289d75c6c2841fb50 + pristine_git_object: b616bf7333f2ec9ee324ad40d00ce2aa9cb67d77 + docs/models/operations/updatetrackerentryresponse.md: + id: 5441eabe7813 + last_write_checksum: sha1:0b16b1d1acec8584ba85a8f6bb4c78fc00ed074f + pristine_git_object: cc71c072c854ce659ddb76c52120f3617de1f71c + docs/models/operations/updatetrackerentryuser.md: + id: 787bb3b355fe + last_write_checksum: sha1:4e60d29cd476dd4fac8fe1e7531c59d7548d7cc5 + pristine_git_object: 8863f1c77d1c34ba41e2e8fea00c1429c8af2778 + docs/models/operations/updatetrackerprojectrequest.md: + id: 4b223c99f6dd + last_write_checksum: sha1:495d7c1dad2f6777bb848bca446d826a362f3f30 + pristine_git_object: 9e3fab8139ffa7d7222790c2e939f8fcb4ba11a2 + docs/models/operations/updatetrackerprojectrequestbody.md: + id: 25c314f7e3d6 + last_write_checksum: sha1:a3bd19fcce55674eda0728380c5d4b1142da37d1 + pristine_git_object: 1b84bacddab6268aaa4b621f10a9429350ff7b6a + docs/models/operations/updatetrackerprojectstatus.md: + id: f68e8c228ee6 + last_write_checksum: sha1:f2b7d646aeb16e20b177fa1a3fde98aa810420b0 + pristine_git_object: ff4c2ccdc4df9c51ac3fd0941858abe30ec565b1 + docs/models/operations/updatetrackerprojecttag.md: + id: 2d242d21cb94 + last_write_checksum: sha1:cf5e3d0ecaa0897a6b97467df988e2f161e41d8a + pristine_git_object: b2e07c3dc6b9c0594136b12df666680c56e4a9ca + docs/models/operations/updatetransactionfrequency.md: + id: 925dfa8eb45a + last_write_checksum: sha1:8e2ea26c4c6ae48427e7711b6854b1b51f47d71a + pristine_git_object: ac4310837b9912467f9985e938bb936fd69e3049 + docs/models/operations/updatetransactionrequest.md: + id: 45e27d1578ae + last_write_checksum: sha1:a3c0845b89fd2cd6d6adcebd47883eb3b2a0af39 + pristine_git_object: d85f46d44504e765b26ad3695ecb959fea8cfd5f + docs/models/operations/updatetransactionrequestbody.md: + id: 1a83a3351f84 + last_write_checksum: sha1:b1a02bf1ec4d59353347e76509deb27a76ed8d88 + pristine_git_object: 896b94796643dde180452d8fa2512e786223eaf5 + docs/models/operations/updatetransactionsfrequency.md: + id: f36ff6aeed04 + last_write_checksum: sha1:1a48c8cc60495301b9fbe5e86e4ebdb83cf63461 + pristine_git_object: 69960f7e3ac94d93c5ddb9ffc5117db606ed6670 + docs/models/operations/updatetransactionsmeta.md: + id: 17f45af83619 + last_write_checksum: sha1:ac0b560e03212bba87a9175b732fd64355c0c214 + pristine_git_object: e8276569ee732193c876415e944762494a83b01c + docs/models/operations/updatetransactionsrequest.md: + id: bd4462da541b + last_write_checksum: sha1:145106ffb6ad06f0d9eb8ba3cd966817f95bfe46 + pristine_git_object: 5266840cd228f5a659cd5d800ca4cc6e7408b3db + docs/models/operations/updatetransactionsresponse.md: + id: 2dfd7282c3cb + last_write_checksum: sha1:2231805ebb83f046ec23d52c45b623a988b78b95 + pristine_git_object: cf31c63c15b6f2793248361cb0f2b76f0e65b695 + docs/models/operations/updatetransactionsstatus.md: + id: 2b6b4b605b17 + last_write_checksum: sha1:9b34ff4808374ab3d0237babad1e4ac3129df3dc + pristine_git_object: a29c067f6798c4e496b4cee22ca1cb3f8b60fd51 + docs/models/operations/updatetransactionstatus.md: + id: a8f959835d64 + last_write_checksum: sha1:3df1a6f20e904af292d861012d7e9ca13c04b60b + pristine_git_object: 9e7b023c03bf99badebfb8c89fe55c997a322a8e + docs/models/operations/whatsappwebhookresponse.md: + id: f29a61c61be8 + last_write_checksum: sha1:bb10f852aef1e5aaa2ba44737c7a413fc164ee06 + pristine_git_object: 0f21565508395c3a775d924e9648728c0b683fc4 + docs/models/operations/whatsappwebhookverifyrequest.md: + id: c4e05552db9b + last_write_checksum: sha1:f07522edd421d9588d75b39fda9ff61dedd19c3c + pristine_git_object: 68f13f7db5df33d0b1a1b585e3d456cfa1cb720c + docs/models/operations/xerooauthcallbackrequest.md: + id: f152fc69f27f + last_write_checksum: sha1:4c90f711aa210f9aec071d2e347ee55d86db715f + pristine_git_object: 4b37a438be98e52278b364f54bc8317ac142fe41 + docs/models/operations/xerooauthcallbackresponse.md: + id: 0a0bded509d9 + last_write_checksum: sha1:ac058ff324417066680d54e689cc13680a0a5161 + pristine_git_object: 56d86c3c86df8989366f9cfb2a506cdd9c2c79ad + docs/models/profitcurrent.md: + id: 232557daa90c + last_write_checksum: sha1:7e184952e5884336a533dda856e36af88a6f617b + pristine_git_object: c5fd7e6b42d29a64a0f64698337078550fd3a88f + docs/models/profitmeta.md: + id: c431a5c61d54 + last_write_checksum: sha1:ad3cd6731ccf4aae2123e98d40e804720e4de58b + pristine_git_object: a04e02098c96a02c06767572a599a5722759626e + docs/models/profitmetatype.md: + id: 34edf1e9a617 + last_write_checksum: sha1:7c5cef1ebc6219d582788d86df31e5e65e69533d + pristine_git_object: dc868b2265e1131a582892406e846ec368e39265 + docs/models/profitpercentage.md: + id: b90cbb62c68b + last_write_checksum: sha1:d7b7ef49cfd6deb0d74987ab02e1cf1a32203f04 + pristine_git_object: 8cbaab3af244e62ab71b1cf67b863efe1e10ecc2 + docs/models/profitpercentagestatus.md: + id: b601a0211166 + last_write_checksum: sha1:62668060805124311673980120d88a34fbb82fed + pristine_git_object: 517b6b9c2080bdfe49f36b383a37357e410015ba + docs/models/profitprevious.md: + id: 30ac59f57ffe + last_write_checksum: sha1:bba9cc990b6e3044a7ecf89191214ada08e06d65 + pristine_git_object: 7a95ba522f8e6007633968eaccb4d2e4dd23fc35 + docs/models/profitresultitem.md: + id: 80aec9e43b5b + last_write_checksum: sha1:015cc931724c3d62e266546e82ff097db7770a07 + pristine_git_object: bcbe2d0583122629a4658e130722c61b9fa26bdd + docs/models/profitsummary.md: + id: 9b72272d60ca + last_write_checksum: sha1:d3f70d75c14a4b2936fb5d5e8783e13b66dbafd0 + pristine_git_object: 00637033ca6c5299278271bc2513d86d9508a9ce + docs/models/revenuecurrent.md: + id: de561e014ba9 + last_write_checksum: sha1:aaae4ce01c676eef64774f2b10593c58a4eaf4f3 + pristine_git_object: 00df81153aa4fe6836bc714fe26621fe9bc5f915 + docs/models/revenuemeta.md: + id: 1538b38c3b45 + last_write_checksum: sha1:4804a753d903f0c9058304acf75e3b03281913cf + pristine_git_object: 07e01d1e6ef5d1102defcc24b9fd742dc4fe56cf + docs/models/revenuemetatype.md: + id: bdddd52f63db + last_write_checksum: sha1:9e42028963cf81a541d223723c1d3afc278a8a2b + pristine_git_object: fed7c9554ecaa5d2ea3330e58ffc2be2cfe401b0 + docs/models/revenuepercentage.md: + id: 05b450d062bf + last_write_checksum: sha1:5de0be155a289e62e75d35cc2841ae8174b1fa31 + pristine_git_object: 401d29fe8612c67fdb6354cb4714742190b552b4 + docs/models/revenuepercentagestatus.md: + id: a4601c372820 + last_write_checksum: sha1:e60c7745e964e109326b690398c68b3245fc08e9 + pristine_git_object: 98baa869f459dfd1381216476c1ae753de33175d + docs/models/revenueprevious.md: + id: e0f1d6a6dbd4 + last_write_checksum: sha1:d3652283398318697a8613413541afbc382848a6 + pristine_git_object: 441c3d4f24d2fbd7152109bf343c592ae41cad3e + docs/models/revenueresultitem.md: + id: 1f987fb7d8ff + last_write_checksum: sha1:ea9a1cdde69c021902e1052462c054811d5b293e + pristine_git_object: a25c9962a6b2042cf9a378d09e29ed2867654cc2 + docs/models/revenuesummary.md: + id: 073a1a73472d + last_write_checksum: sha1:69b1f19c2a134b6ba811fef7d6efae0465675d7b + pristine_git_object: e206f308123ff67edf851a82021d65eb416d7121 + docs/models/security.md: + id: 452e4d4eb67a + last_write_checksum: sha1:55f61372275a534480441350d55bacd314570b4a + pristine_git_object: b5627831417366e23f0de4392b0880d051eded6b + docs/models/source.md: + id: 6541ef7b41e7 + last_write_checksum: sha1:8b86a33a34f486f7b8edbae5fd260961125123c8 + pristine_git_object: fd8ab9979c72b3372b2491daac9ad33d08821cb0 + docs/models/spendingresultarray.md: + id: ec1165d9d38a + last_write_checksum: sha1:1efcddb64716f6f56467de24ccdfc3e5fd207332 + pristine_git_object: 9648fbecbf57eacf51dd933da5c9b9923ca229d5 + docs/models/summary.md: + id: 7683f2898f85 + last_write_checksum: sha1:a4c5ac4b13339de9dc6335828bbe001c123e5bf2 + pristine_git_object: b2972bd50934df68eca30659aefa8162037ff993 + docs/models/tagresponse.md: + id: 7cdcee93971b + last_write_checksum: sha1:664532cf3f5c5de2c047332e1d24afe6076ab284 + pristine_git_object: 161d688aed6944057ef1960423e227d33c3411aa + docs/models/tagsresponse.md: + id: 0961db240d94 + last_write_checksum: sha1:ed128b49488cc284d90262d4c3557316cd5ce6ff + pristine_git_object: b1b68a4bcd0ec0ed78acebf1ec877b29615c63a1 + docs/models/trackerprojectresponse.md: + id: 5bff26b66046 + last_write_checksum: sha1:42c15daf365e9e3fe116dec12388ad4a2e08e38f + pristine_git_object: 04c20c6d5477ec4992c8d63353c85402c5d2cb95 + docs/models/trackerprojectresponsestatus.md: + id: eb559024bea0 + last_write_checksum: sha1:688584ad081383245ac18d6a91e2432fdce89c07 + pristine_git_object: d68367d512919cb9665d19e94cec46c624d86956 + docs/models/trackerprojectresponsetag.md: + id: 55305923db61 + last_write_checksum: sha1:31e6d3a43c413d59c2d5f3f1e66ebf001bdc87f2 + pristine_git_object: d2f0a2979a76f174800be5684010e93d13e62bf3 + docs/models/trackerprojectsresponse.md: + id: 2baf4f68af7e + last_write_checksum: sha1:f03f17f938b1ac4e298ea3f6084196033908cd94 + pristine_git_object: b2215af07dab90cb3a0b1a062dd2b24c233be3a4 + docs/models/trackerprojectsresponsemeta.md: + id: 09dd5ffe895a + last_write_checksum: sha1:08c1d81b47918fb23873cc84787248b3646bdba6 + pristine_git_object: 6ede5da50eb326ff583dfa86ff9a6a6eacb76494 + docs/models/transactionresponse.md: + id: 3377719d1f52 + last_write_checksum: sha1:e05886ba1159934346120ac21304d268e1ac1a88 + pristine_git_object: c8a6c39b4f8a14684bb2b4100083436ce287896a + docs/models/transactionresponsetag.md: + id: ac5b5b4f3788 + last_write_checksum: sha1:f604f022df999e84d03a82e57ca4b7cdf9e4c5ae + pristine_git_object: a5dd29df5bfeff0146eae1452457a632a8dca4aa + docs/models/updateallnotificationsstatusresponseschema.md: + id: c3cf4d54dd5a + last_write_checksum: sha1:5f6b2a1fcd7f21505175f11705e97cc4788c63e7 + pristine_git_object: 8c6bfd26d285e16f914d683440ba15c08cee2904 + docs/models/updateallnotificationsstatusschema.md: + id: 66ed5eaa4e2e + last_write_checksum: sha1:0c47063f0e83d54e7b874e7ad5869c9663fae996 + pristine_git_object: c6e613efc4654e2b0a3e8529cc84ec93cfe56ad5 + docs/models/updateallnotificationsstatusschemastatus.md: + id: f196eb798caf + last_write_checksum: sha1:767dec3c19a42125e5940dd8291177285a44c113 + pristine_git_object: 890592e1e6f7c5952d69022c867df963d80d8068 + docs/models/user.md: + id: 8306f1e41187 + last_write_checksum: sha1:60e70af0cdf7d4bc168ce169db3e68846ee88762 + pristine_git_object: 10efd97d62345a32c393764a3685953a89c6e2ab + docs/sdks/bankaccounts/README.md: + id: 510ffee224ea + last_write_checksum: sha1:c7acfa2d505bb93fd1168778ba145923ece3e246 + pristine_git_object: b44bc4bee860ebf795503739e7030709fff572a1 + docs/sdks/customers/README.md: + id: 9332759cffc2 + last_write_checksum: sha1:de31cea75ff3270ba01bef6509aea42a749d76f0 + pristine_git_object: 4f29c9ceb825a2433ae7a22d2b660dcbb2a3427d + docs/sdks/documents/README.md: + id: 9758e88a0a9d + last_write_checksum: sha1:524a442f5bfa531d5ed2103023a3d6f4949cb30b + pristine_git_object: 00e67769f33a9d8f76b06846ecd25648ebf3c59a + docs/sdks/files/README.md: + id: e576d7a117f0 + last_write_checksum: sha1:dd0eae4723b97ecc4d561fa8324adbc2632c9fbc + pristine_git_object: 1c2a722a634ec654442760570427a19a57a25a0d + docs/sdks/inbox/README.md: + id: a2701db9e190 + last_write_checksum: sha1:33f3380e3c43606837ad5e4d9a451c9eaf7e527c + pristine_git_object: 4873ac011fc4347a29b43268dd2128168352b28f + docs/sdks/integrations/README.md: + id: 7b29664808c0 + last_write_checksum: sha1:9790d390cab0eaaa4ec1dc78ac7ea90b81235b4b + pristine_git_object: 5a3a5f5d6d4147b0fc32cb67be22c2e7bb2c3da4 + docs/sdks/invoicepayments/README.md: + id: 68d1386774ce + last_write_checksum: sha1:bd07634f130008200d0231194f4d5d450bb9e5fe + pristine_git_object: ff8c0b29450d3c7cb412c73c3e62024dac24beb7 + docs/sdks/invoices/README.md: + id: a3f76a06eded + last_write_checksum: sha1:e531aa5ba3c4c96cb975289f8d4834c6834bb896 + pristine_git_object: 440cef54ac812df4f14251f5f15b003d350048b7 + docs/sdks/notifications/README.md: + id: 271bac956045 + last_write_checksum: sha1:f34b84ecc4b718b58aa7076951cbbafd0be985d1 + pristine_git_object: 97c16b997b88a31bf7659a11f83148d110f3c33e + docs/sdks/oauth/README.md: + id: 80ad2c1a7b62 + last_write_checksum: sha1:666a534fe4d37a4673dff9e6b99b445fb5e47b65 + pristine_git_object: 7e9f9b4d9c3b9d989bfe85444a3a8d07dc6d67ee + docs/sdks/reports/README.md: + id: 66bfd66f1efc + last_write_checksum: sha1:5639a8ff73c9d006dc95d95a635ba7df65cfc756 + pristine_git_object: 38448976f75017771cf6e1d3783e34f0d64d9d34 + docs/sdks/search/README.md: + id: 5c534716244c + last_write_checksum: sha1:bd8a8149e6021285a3a2153563e9d46654ad2cb9 + pristine_git_object: 8a3955c48528e66a059e093aa654ee576d37ed6d + docs/sdks/tags/README.md: + id: 971f8a95d807 + last_write_checksum: sha1:93fd1426c47fabf318e3058fe473e902b8aaaf75 + pristine_git_object: b40917f2e931842d21ff562c5c3924012ab19dd7 + docs/sdks/teams/README.md: + id: aad657749b4d + last_write_checksum: sha1:9b6d684227236726d303bd24e92a7b8257054821 + pristine_git_object: 3d39dd97de7b3f8ef5d9bb34c9e2997462ec94a1 + docs/sdks/trackerentries/README.md: + id: 7aedc4d41da3 + last_write_checksum: sha1:bd4d3cac9ffd771499e46e0f36007b5c3741071b + pristine_git_object: acabb5bd560d6af3bed68da08c2385a61f40900f + docs/sdks/trackerprojects/README.md: + id: 1a7d9a810833 + last_write_checksum: sha1:4dd013f030e1603af340aec746f553ed9dd22137 + pristine_git_object: 7dc7f6de2e242eee63b3f13a8511adadd5842055 + docs/sdks/trackertimer/README.md: + id: 7d4ddcc5e3d8 + last_write_checksum: sha1:f3eadd28edf82ef9997af0e9eeae6a756f9c9aaa + pristine_git_object: 1029d65fc898028382fe9cf69bc19882117494f3 + docs/sdks/transactions/README.md: + id: 85592abe3c6b + last_write_checksum: sha1:fe3391ef3fe02e71a0e3717bab511ca913b07abb + pristine_git_object: 367144526639af588a47e8dc5150ddad4a1ef39e + docs/sdks/users/README.md: + id: 5d80027045fe + last_write_checksum: sha1:2222753b6e38ef88e8a50b05648823a264b3f98c + pristine_git_object: c64a96045ff342b4a4cdcbf48f7993fa7dc76f94 + docs/sdks/webhooks/README.md: + id: e21b32d786a4 + last_write_checksum: sha1:c20c4cc6b66caecd63a5ba2dd410e80fb1749439 + pristine_git_object: 44a8ad50b18a7f6f03971316df58ab4c9a4fc7b0 + eslint.config.mjs: + id: 461c8d07f6da + last_write_checksum: sha1:9398f326377fe47f67af2df6eb6370750c0790b4 + pristine_git_object: 67bccfec985be20a00970d90155752832dd47135 + examples/.env.template: + id: 52cbe5afed92 + last_write_checksum: sha1:c252d193a6af491cafe114f35334c89e764b04ef + pristine_git_object: 4edd259f25987ec5272127f0435f57ea00b93e05 + examples/README.md: + id: 9d0f69d6e677 + last_write_checksum: sha1:2ba1aa149f4bae98dc79f5284011399fcf2aa6fa + pristine_git_object: d844a01e4c51b7ee1aefe7b331da87c87202eefa + examples/oAuthGetOAuthAuthorization.example.ts: + id: a3d6fdb94d97 + last_write_checksum: sha1:844359bf578d261ca7730ff3b19897fc4335771a + pristine_git_object: 743c7703a45296d2910f66965cb3ab0ccf856448 + examples/package.json: + id: c1d7b0ec8e7e + last_write_checksum: sha1:6c148ec66578bc4e1783d256761efb3110fd1d28 + pristine_git_object: d6c1692a22e2310fa1ce0223638671ab1e3d97c0 + jsr.json: + id: 7f6ab7767282 + last_write_checksum: sha1:7a7a56a1e79b1b5e613e4e01436209c9412688fa + pristine_git_object: a74c1f4cbd2c4141043805dafe38873cb3d623de + package.json: + id: 7030d0b2f71b + last_write_checksum: sha1:dc8c379cf5d7753d8237b97841c207e53f29c819 + pristine_git_object: cfba91f429faad02f3551ed529d6ada1e49277ed + src/core.ts: + id: f431fdbcd144 + last_write_checksum: sha1:e78e8ba7ef19a5fae2fc8a62c23390d33815bab3 + pristine_git_object: 328effa71d320d6c4241751d2ecc03c68cbeed6e + src/funcs/bankAccountsCreate.ts: + id: c61c77ddef33 + last_write_checksum: sha1:16112b2e97a9e42d9e32896c917bcbd0a38faf9f + pristine_git_object: 925eca3ab5ad808d5f59fa8d7b35731cbe545698 + src/funcs/bankAccountsDelete.ts: + id: ea3776226175 + last_write_checksum: sha1:0db4a9742bef529af4daa00fc63a28ea591434b3 + pristine_git_object: 2e48efd24b1b818008d9284d5ff408f35df6700c + src/funcs/bankAccountsGet.ts: + id: 26ad39d93e2b + last_write_checksum: sha1:6ea7e92f2ae85e117cc27d475db52417744e49ca + pristine_git_object: 919c5c8727155e195ec940571b5fecd18ec6008e + src/funcs/bankAccountsList.ts: + id: e3c9aa9e1c6a + last_write_checksum: sha1:ff4f3367d65c86c0b3489857e1d9e8087fc58a89 + pristine_git_object: b8dcd700f5f451e55819f05a8430554541bac466 + src/funcs/bankAccountsUpdate.ts: + id: 6572ab914143 + last_write_checksum: sha1:e1eb6fb27f83414d6ff1c68352547c4107ef3f75 + pristine_git_object: b15f3429d21805aa340062e3f85d7d630bebae1d + src/funcs/customersCreate.ts: + id: c42b63f0745d + last_write_checksum: sha1:49c2e485de5fbf862b9e3842ad7c5b0cc7b150b8 + pristine_git_object: bb1a152f5c025224cf779572a89f80c3e0e0b356 + src/funcs/customersDelete.ts: + id: 3ee82214e209 + last_write_checksum: sha1:d9c76d32b27874530e8b06ddfc4e753e23d631cd + pristine_git_object: 402dd83e5a5fefad8926214210d699713167c918 + src/funcs/customersGet.ts: + id: 02794d47465d + last_write_checksum: sha1:33012f213ba9597f5a1d7aaafee81975582f5817 + pristine_git_object: 3479d897f72cccd92aa8aebe791952d63ce8071c + src/funcs/customersList.ts: + id: ec574597f882 + last_write_checksum: sha1:c8d55093aa6bb133f67bd2e1205782e8f1c429db + pristine_git_object: f71066c956ea6e873fc4a29bf1270afcc4083c99 + src/funcs/customersUpdate.ts: + id: ab88ef0f82f9 + last_write_checksum: sha1:e78872af75b7dc97d93d18b438dd11129959cfc8 + pristine_git_object: 5392804025e4d664ea31885a9e1416aae8341f0e + src/funcs/documentsDelete.ts: + id: ec7ded291bee + last_write_checksum: sha1:572c70fac1b207feb2f9c8fc7a41aaa3797fff49 + pristine_git_object: 0a802a8a04e0a3a9af87925fbe33883ba0e0054a + src/funcs/documentsGet.ts: + id: 29cd1ed648a1 + last_write_checksum: sha1:14edfaead4408fea4115be635d274ae484a6f5da + pristine_git_object: 9bdaa052c63b3a2486a67df2b507f1c7c77290f1 + src/funcs/documentsGetPreSignedUrl.ts: + id: 5ea997b153ff + last_write_checksum: sha1:e544acacf1dad1b23b786a7bffe873fa635963be + pristine_git_object: ba4373df42e3e96b368053e0fc99976f6ae109fd + src/funcs/documentsList.ts: + id: f2d6920c437a + last_write_checksum: sha1:78294d7c83c4c3952b9fd3360a5e6fe298c7af5d + pristine_git_object: b2adaac9afb0177cfd08a07d3e4a69ec71d57dc8 + src/funcs/filesDownloadFile.ts: + id: a0b7888e0b07 + last_write_checksum: sha1:e2797f3c6e0d6904caa134db9f5ba115cb0552d3 + pristine_git_object: 35e8fd79fad11be3fab433bff5ff951398041d28 + src/funcs/filesDownloadInvoice.ts: + id: 6e4a7f736db9 + last_write_checksum: sha1:2b1928120dfd61ba38fb8aeaa361c71f739ec7f5 + pristine_git_object: 52ab3748d90a007803efb189f42892ec93d1968c + src/funcs/filesProxy.ts: + id: a8da9099968b + last_write_checksum: sha1:dd06481ac741b3d00d66605c81b1d0c5ca9e77f0 + pristine_git_object: 05c3102a157096b67faaa840f86de0d79456c747 + src/funcs/inboxDelete.ts: + id: c35774fcac9d + last_write_checksum: sha1:0f141c93c34c1efc7eebe0f24800cb9ca9430549 + pristine_git_object: c995262ab5582868f3a5f7d9849f91a5a7684af6 + src/funcs/inboxGet.ts: + id: 8e1a77d35fac + last_write_checksum: sha1:8e01b78da72f17030b5c273dbfde03c54bca588a + pristine_git_object: 49652dd6af8471d0a63f1303e0233e6ee8ea8cf1 + src/funcs/inboxGetPreSignedUrl.ts: + id: edc54a89a4e2 + last_write_checksum: sha1:17e87b2ad9466a39191690f539028921bf2c41fe + pristine_git_object: 4ff85d16adf1cceae33fb117ea2c2541eadf03fd + src/funcs/inboxList.ts: + id: bcd16a8106f0 + last_write_checksum: sha1:08a613d21f92a051e1e49ca10e9b04805bf35eec + pristine_git_object: 0d94ebd0f56c63abc3950908a09712895a410db6 + src/funcs/inboxUpdate.ts: + id: 1bab72d979e4 + last_write_checksum: sha1:7ba8f700ec4f3b9dd505dc5aa96c6abc9aba35fc + pristine_git_object: 32dd7ddf66d10f5511242c0ada92a20c4f91095e + src/funcs/integrationsFortnoxOAuthCallback.ts: + id: 78c0b9a1d82f + last_write_checksum: sha1:a2a2e5f9c0e7e79e391b46c89df3ea57027d1672 + pristine_git_object: 47d4149a671db1250cbc672a203be28130be5b58 + src/funcs/integrationsGetFortnoxInstallUrl.ts: + id: c1ab2409d220 + last_write_checksum: sha1:b8ee29e6f01cd97ddc4ad9af75d449789a628383 + pristine_git_object: b54a34abf5d81ca658f7e7c70a95a6a97ef6bc97 + src/funcs/integrationsGetGmailInstallUrl.ts: + id: 5b03032a5062 + last_write_checksum: sha1:7595d638f0a484dc1762182d262d3157fbd3c6dc + pristine_git_object: 7d26cb93e6b0832ebdd531cc364331747825734e + src/funcs/integrationsGetOutlookInstallUrl.ts: + id: 43170bd0e8ff + last_write_checksum: sha1:cf1002a9afc4172c170561411b815d9aaaad8cac + pristine_git_object: 1fd288cf677b6aebc223e6ee2ae5229f987d8cba + src/funcs/integrationsGetQuickBooksInstallUrl.ts: + id: 00f8d6a2fa40 + last_write_checksum: sha1:1c74eb3efb23418235f5d2d8b692d6d8f20fab8c + pristine_git_object: 9c6b0dbf5a1ee58d5c4c5a55fecbc2ebb34ee760 + src/funcs/integrationsGetSlackInstallUrl.ts: + id: 7df94648e7d3 + last_write_checksum: sha1:eb7fc4b39397c1254b528bd4b1595a101771cbb9 + pristine_git_object: 4691bcb8a9d876d14f07743ad84df86045cf6f47 + src/funcs/integrationsGetXeroInstallUrl.ts: + id: 829f69c918bb + last_write_checksum: sha1:6cad7df9e02e50920d7b079d48b3b445f2fc7e54 + pristine_git_object: f29af9e5b02b6598598fc5cd2eae1a58b832d64a + src/funcs/integrationsGmailOAuthCallback.ts: + id: 363555db5b10 + last_write_checksum: sha1:92fdc86278624fd29951ef9c57382e7d0c67e14c + pristine_git_object: 156666eb97c092ee383620f9ca59b662f249fc8d + src/funcs/integrationsOutlookOAuthCallback.ts: + id: 3a2c7a8da30a + last_write_checksum: sha1:cde7701f74b63d41c713a13126342496f6d19438 + pristine_git_object: a0b76f5c1649ca5d22ad7acf55f14dfada2e0a44 + src/funcs/integrationsQuickBooksOAuthCallback.ts: + id: 4c364e26cdd5 + last_write_checksum: sha1:08790a562c83e8b1f74cc416bcdadb61c0a090c5 + pristine_git_object: 367354329925202893a73d20fa5687813e72c286 + src/funcs/integrationsSlackInteractions.ts: + id: 685b45bf8ee2 + last_write_checksum: sha1:116429993215263b479b57f5c7ba69799f62e2bb + pristine_git_object: a26ad482d7a99eab1ec6d9a4ed7d24954b2fd74a + src/funcs/integrationsSlackOAuthCallback.ts: + id: c1ff96ad5421 + last_write_checksum: sha1:47d503ea56265cabf023036cacbe3db263a56d36 + pristine_git_object: 9cc48ea7b6c6ecd6c269f180fa6104adbc71fe21 + src/funcs/integrationsSlackWebhook.ts: + id: 7fa4819a3560 + last_write_checksum: sha1:1c059009bc9a41e1d3fa3cf322a693d5027ef600 + pristine_git_object: 59ed5f3943cbac45b1b1152238895b4902d93023 + src/funcs/integrationsXeroOAuthCallback.ts: + id: 0c2939b6588a + last_write_checksum: sha1:29579c650b5e271297f8687c1949ab1cb1334b09 + pristine_git_object: a7595518fd692ff56475ecbf24706af8afec6a2f + src/funcs/invoicePaymentsCreateInvoicePaymentIntent.ts: + id: 1a7d7361eb02 + last_write_checksum: sha1:4ac9828f78395aa9510b96916d66da6ecbae35f9 + pristine_git_object: 76d6729b386ad08cfc616af1789ac6e63a337449 + src/funcs/invoicePaymentsDisconnectStripe.ts: + id: 0fe324412154 + last_write_checksum: sha1:bf7a7b89185244f8b558319e15dbaa0ba75d8317 + pristine_git_object: a1a6ed9b938fbf9fa5ccb057c39d2b1d4099c053 + src/funcs/invoicePaymentsGetStripeConnectStatus.ts: + id: ed71e683eda4 + last_write_checksum: sha1:3e95eb089da5bda5374aeab1842d850475673595 + pristine_git_object: f0a2e55653671c4f9924b4206fb3da58d3dc6330 + src/funcs/invoicePaymentsGetStripeConnectUrl.ts: + id: a222d0bb5b48 + last_write_checksum: sha1:923949c06b4470fb7d4ea9b93690c78818c7a95e + pristine_git_object: dee43b4cc4927789de894bbce92f6c24d8be1fb2 + src/funcs/invoicePaymentsStripeConnectCallback.ts: + id: 67140ff419b5 + last_write_checksum: sha1:206ed253e1a5a7ffa790955a5939a48c13efa937 + pristine_git_object: af37a7a8bcf4eeb3987d3ce59e5fdea067b80504 + src/funcs/invoicesCreate.ts: + id: c3a41fc280d5 + last_write_checksum: sha1:2e02decca5f0c60270abbf977f3a8711e4e5c6d0 + pristine_git_object: c4877809917a991e32cb416514093593b0010516 + src/funcs/invoicesDelete.ts: + id: 60d157ef067c + last_write_checksum: sha1:10a9134c5eb12d7ad90053b70284f474ddca10bf + pristine_git_object: 7a5c1a82b7cdbe9bd6614e78dd778002cfd899a1 + src/funcs/invoicesGet.ts: + id: 3376432a455d + last_write_checksum: sha1:20acf12d25d44e37b8fd75eb49a1f023b242cff1 + pristine_git_object: 98b3def5e94bce1a76041673f266500332d262b5 + src/funcs/invoicesGetInvoicesPaymentStatus.ts: + id: 90a7400eccbb + last_write_checksum: sha1:7538e9ce3f515cb1498ea40e6b348584bbae8bc5 + pristine_git_object: a50dd6e0b7fb7a194f98e4d185f10c8082eb948d + src/funcs/invoicesList.ts: + id: 191a0896cf70 + last_write_checksum: sha1:12223eff521dc748ef7f503f00f4a458d5ea5291 + pristine_git_object: aa0b8b6a02419aef1cc91bc8aad148883c242a8b + src/funcs/invoicesSummary.ts: + id: 94208f71f032 + last_write_checksum: sha1:306450aea429461b5fe70c5523fe0e8928cb93f6 + pristine_git_object: aec8af4b2dd4576bda8ffc707844277f772940bb + src/funcs/invoicesUpdate.ts: + id: c46cc37e2723 + last_write_checksum: sha1:d5faff720fa9346bcba847fa6c38fa83a37e65b6 + pristine_git_object: 5ac13955fbfb7cf42957d329ba68f8b119a54f75 + src/funcs/notificationsList.ts: + id: e862d318379e + last_write_checksum: sha1:0a6f0f098551a9b3e1b06cbd22dbc9c29f373344 + pristine_git_object: 2c7da44cb638283bac8d8339773589ceab957951 + src/funcs/notificationsUpdateAllStatus.ts: + id: 1a3339a083bb + last_write_checksum: sha1:1d1839c55bdb9e2631f68b24e95acd5283a23616 + pristine_git_object: f82afbb75c60cdc809f192d9c49e84acc3c5966b + src/funcs/notificationsUpdateStatus.ts: + id: f35be0428641 + last_write_checksum: sha1:264e1d921c0e95858e8a716bab0d1caea494daf0 + pristine_git_object: bef30b89b19cc68e4921f0d4c96eb81d983bb214 + src/funcs/oAuthGetOAuthAuthorization.ts: + id: 790f616ad4dc + last_write_checksum: sha1:ae49efda5b12fb11bd0425444b9abbbbb8835909 + pristine_git_object: 05504d6b982a74b9089fcb6ef6e07be62628457d + src/funcs/oAuthPostOAuthAuthorization.ts: + id: 42e96cefa0c8 + last_write_checksum: sha1:b38b3c3795af82311d75b366bb3f760caac2ce95 + pristine_git_object: 56016639c34834c69964721b44a2e20c7772ad3c + src/funcs/oAuthPostOAuthRevoke.ts: + id: 5cd0e5542254 + last_write_checksum: sha1:403278b8f6c6895ec0811e7e2a927734317b252f + pristine_git_object: 3ad457d1472fc8b5049e50ab9b6960308b8f5d1b + src/funcs/oAuthPostOAuthToken.ts: + id: f81b7e7a0853 + last_write_checksum: sha1:60d5a9c461ccdc1a58fc5327f513e971e218a7e3 + pristine_git_object: ba8317a02294ad768f2ceb4bde1c0e9589481dd3 + src/funcs/reportsBurnRate.ts: + id: efdc26fcdf45 + last_write_checksum: sha1:1f8d8c6ebec403aaa750cbdfc7cba1c6feef5efe + pristine_git_object: 894ba70fe4f4142e0213e86cae47ba066507495d + src/funcs/reportsExpenses.ts: + id: 43971d28f9e8 + last_write_checksum: sha1:fa2e60b1d87b24a6196786aa9ffbe0ed875ee011 + pristine_git_object: aef07a1b59cbe9e4ffb02521b410d33cd30ee910 + src/funcs/reportsProfit.ts: + id: 0504b024f69f + last_write_checksum: sha1:ebc598d7409b84b2cf55ae9dd1a96f964d281ec0 + pristine_git_object: c5bae7428ad922d9c8b678d948d18b6240e8b21d + src/funcs/reportsRevenue.ts: + id: 274d4a209770 + last_write_checksum: sha1:3622bace3ba887c521bb4b737601d39dcd4e60d4 + pristine_git_object: 59a5cc79e7eb0cf7d1d70c0fd1913adf7fa80c47 + src/funcs/reportsRunway.ts: + id: 09a9f159fc15 + last_write_checksum: sha1:6318c0fcbfe7b90db7d5f687f0818e0fe5389bc9 + pristine_git_object: 86ffcecadf015e3e87a8be3afce95249737b1c7d + src/funcs/reportsSpending.ts: + id: a8bd2aafbcae + last_write_checksum: sha1:ee166b230798a87f898bc7260ffee784e2b9b40d + pristine_git_object: 466ccb6d552a6c9652575e0aaaf556dfe6d208fb + src/funcs/searchSearch.ts: + id: 8945f6f8f41a + last_write_checksum: sha1:eaa1aabb9a2c46b7602fef6f5ba4efec8df0ac55 + pristine_git_object: 72a98473c7b3d390b92743e32dee8d3a406b293b + src/funcs/tagsCreate.ts: + id: 2aec1e4ee0db + last_write_checksum: sha1:b0fe0c6b846b89c01e47d9788844f4667eecf18c + pristine_git_object: 556a668bfdb46652494282c0efe8b745858d6875 + src/funcs/tagsDelete.ts: + id: eb01693312d8 + last_write_checksum: sha1:a783ead6ba798cef4c1b555ad09809b4ab05c961 + pristine_git_object: bee7057c419588ad4aeffb4733a17d1f1cc9e8ef + src/funcs/tagsGet.ts: + id: 462e2fcddbb2 + last_write_checksum: sha1:581b307ceeb3c98436625d9479fb42ac97d99bc3 + pristine_git_object: 1fcdbd39cab9877c87b0265f07941be2bf8be19b + src/funcs/tagsList.ts: + id: 3c705a55fa1e + last_write_checksum: sha1:f068e57c856766002e10d29f968738e7816d78b8 + pristine_git_object: 5592f92893f56432dffd63063e4858a44e8e47e6 + src/funcs/tagsUpdate.ts: + id: 27b20071b15e + last_write_checksum: sha1:5aec076258133455a213a3733e14dd16e258e38d + pristine_git_object: 7c10c73002b99fca5d6e3d6c192d5594c0773b0a + src/funcs/teamsGet.ts: + id: b7d4445b6f1a + last_write_checksum: sha1:0c8f31ca29a3faade11a29259784f7dd578dc2e1 + pristine_git_object: 91d72fc7779da74f60f1cba0f37b82313094326f + src/funcs/teamsList.ts: + id: 27aa45c93439 + last_write_checksum: sha1:2c2c394228c49a1eb742a0dfcaa40577fbb8b44f + pristine_git_object: e975f744e356e9204bf3140fab11803aab0a0850 + src/funcs/teamsMembers.ts: + id: c9b4af34f54e + last_write_checksum: sha1:1deb07c1857658638649b732b4beffbe536b06ce + pristine_git_object: a5de1406bb0476b18a5fc8f5bc6c43e0b35094ad + src/funcs/teamsUpdate.ts: + id: 5e894befea41 + last_write_checksum: sha1:de48ccf5c24045cc09aa8a19c28fdbaf3d9f64ba + pristine_git_object: 9e4f1091fe11f24e0ae9ac234d298f5b9ce350d1 + src/funcs/trackerEntriesCreate.ts: + id: 18397c8b0774 + last_write_checksum: sha1:bbef1a715f62a42e9d6b1c8d21b2a0cfcbe0551b + pristine_git_object: bc2876240066bdbb838404afda07748a32f59b4b + src/funcs/trackerEntriesCreateBulk.ts: + id: ce6196a0bb5d + last_write_checksum: sha1:bb0fa24dd7117b764f0e73d022e9d6abe609ca51 + pristine_git_object: 32869c33e81e5a01c95c5bda1f865ef64e9b81e2 + src/funcs/trackerEntriesDelete.ts: + id: 8e0fb41827bd + last_write_checksum: sha1:a1719dcd7cb8d3116f14c0447130d149c437342d + pristine_git_object: 4fa158e35483c055d52edd8126702b7e03ea0c51 + src/funcs/trackerEntriesList.ts: + id: bc39da1aca48 + last_write_checksum: sha1:0045cbce7668edc17d2a0810805a1cb8308c323a + pristine_git_object: d3a69d792b8afd7a09ac49063f802d957b8ba30d + src/funcs/trackerEntriesUpdate.ts: + id: 45f17b7f1fda + last_write_checksum: sha1:39a46dcb4c083ff04d0215ad335d47209c40fb62 + pristine_git_object: 3e52c7d07eca0081457e2f38a87ca0a5c2eea45c + src/funcs/trackerProjectsCreate.ts: + id: 874666a9af84 + last_write_checksum: sha1:76124d31ee354e0ac44d525255c650f99dc53484 + pristine_git_object: a9fa7dc35a86ceac2c16dacc6a47a2488fb89187 + src/funcs/trackerProjectsDelete.ts: + id: 201d34e9ece4 + last_write_checksum: sha1:e885c9f2a1ba192607631856acafca62128abc8e + pristine_git_object: b9ea10094fa4b0ccf7b8075d94517aa7e6682747 + src/funcs/trackerProjectsGet.ts: + id: 6f6cfe068319 + last_write_checksum: sha1:d4d188202daf9069b56090fdb1d886f1fb8c1069 + pristine_git_object: 5c2cb53eb6e54fcd67e141a33f7cc833f3f9c370 + src/funcs/trackerProjectsList.ts: + id: 0095679e014c + last_write_checksum: sha1:893e5d597ac6fa5df309b266c33ae567ce31d10e + pristine_git_object: 876c72ba60113816e3d1dde9cf8c4cb86f42a289 + src/funcs/trackerProjectsUpdate.ts: + id: a88678f635c9 + last_write_checksum: sha1:6d2065ff0a8eae8ab3702b296a9c874c7076ba33 + pristine_git_object: 05c8762567aff880fddf89fa61d466d9560c0a98 + src/funcs/trackerTimerGetCurrentTimer.ts: + id: db2d8e6564ea + last_write_checksum: sha1:9e056fd23f9ab32ec8036d56bb27b82579070e54 + pristine_git_object: bf9276c03d99861e7fa9ed761946de9622e44b79 + src/funcs/trackerTimerGetTimerStatus.ts: + id: 27748817bc32 + last_write_checksum: sha1:03080cabde7ebf61d07d55d9c42dcaa935b82c48 + pristine_git_object: 3751b85a8ef8b126cf8fb79e84ae84ae04480c74 + src/funcs/trackerTimerStartTimer.ts: + id: 512f4abf112e + last_write_checksum: sha1:dc47e4271a799d2226de855e37a14e301091c068 + pristine_git_object: 37101415d161663550f2365ad7a32466f432f4a9 + src/funcs/trackerTimerStopTimer.ts: + id: 48e5835a3dbf + last_write_checksum: sha1:3669da4749d4ba0287c7b31a3c3fb1a238cd226e + pristine_git_object: 6c6d3f56af140a55bcf7d08235dc2bfda33fa5d4 + src/funcs/transactionsCreate.ts: + id: f64f7fcda797 + last_write_checksum: sha1:5ceda604a57f8a07ae54c644fa65f688116d02b3 + pristine_git_object: 30079a34f41a1fb6a4072efe5fae15b3aec3c305 + src/funcs/transactionsCreateMany.ts: + id: 70890c18ec73 + last_write_checksum: sha1:bbe5eff088d11077ce90d86adeccc213612d0974 + pristine_git_object: e5fbbdcc49fdddbbebfb97237a7ae458ac73ba69 + src/funcs/transactionsDelete.ts: + id: e78a186ef45d + last_write_checksum: sha1:2f945774af398269b0c0f00e03f3cb4d92527d1c + pristine_git_object: 0ebb9fc5457158960626e8e25275f35430e1a07d + src/funcs/transactionsDeleteMany.ts: + id: d162d6715a05 + last_write_checksum: sha1:ac622b9795dddc270c56fe2528afaf0c438b3e88 + pristine_git_object: 6cbd06b6bdcf473c2c7cda4a7a2e3cc183179d4c + src/funcs/transactionsGet.ts: + id: 22628bbeff2c + last_write_checksum: sha1:f4cc96431a8fab67109a08e818414dfb96104a80 + pristine_git_object: edcfaa95c10bb918bda889a208d39795624bd5ea + src/funcs/transactionsGetAttachmentPreSignedUrl.ts: + id: 90e79117eaa6 + last_write_checksum: sha1:3ce5659c5bd9838c80fc9d2d7055950b81030f86 + pristine_git_object: 195f30ccc058e7e5fafe792475d0d166a3ce0d30 + src/funcs/transactionsList.ts: + id: 4876c16785b7 + last_write_checksum: sha1:51e898edbb991f72c3a38ff81801d3db9e79102c + pristine_git_object: 4dba940d1b516374f0a6fa547971604fb23b811f + src/funcs/transactionsUpdate.ts: + id: 9554b2ea288b + last_write_checksum: sha1:3491ca52af032e44f98ef080b778cfc2690747c5 + pristine_git_object: 2c6613f08c023425306af582333834feac66433a + src/funcs/transactionsUpdateMany.ts: + id: 3798889542f2 + last_write_checksum: sha1:68f8155fee5466f23b42da6009f348200f52ea94 + pristine_git_object: 775a63ff8a448ff2f5695ba19bb34275ff71928c + src/funcs/usersGet.ts: + id: c61a7de4c934 + last_write_checksum: sha1:3a7f87756fd75c9edebf8706d7dee8ce69663e37 + pristine_git_object: c427d94a89c30b20ee10a36873741a7f9a7837e9 + src/funcs/usersUpdate.ts: + id: 7ce9b12eaa7c + last_write_checksum: sha1:d530e288993252088f98f4e3a6026a62862dd773 + pristine_git_object: 3048378e4444fe6b8eceb01cac50878d1b6fa3dc + src/funcs/webhooksInboxWebhook.ts: + id: 8a700de6f7ea + last_write_checksum: sha1:8b19c3678f33e6d7779b8c0f2c089a01dce59bf1 + pristine_git_object: 43bcaf7d4f4fc514e468d7e94f39a7574807044b + src/funcs/webhooksStripeWebhook.ts: + id: 217a0f0ebf48 + last_write_checksum: sha1:17e55145e3bfbe389df05b316cd53b70c9669d36 + pristine_git_object: 2e9b58aec09bcbd6ff2b0ae4f4ad1f120594a6e5 + src/funcs/webhooksWhatsappWebhook.ts: + id: 20eee1b23f43 + last_write_checksum: sha1:d73613d01b8160b822f0ed98b6a428c224cd8c7b + pristine_git_object: 4496425b8b883069b7264bcb2dc76b0ee30bdb99 + src/funcs/webhooksWhatsappWebhookVerify.ts: + id: c44f7714f2f5 + last_write_checksum: sha1:74dd0cf849b1949e03755019cad7dffc6dfb970e + pristine_git_object: c16c5ed4f5651d5e05868330e7579caa9d58ee93 + src/hooks/hooks.ts: + id: a2463fc6f69b + last_write_checksum: sha1:7dd975bbcc46a32dd394f86a4652b74ecc70d874 + pristine_git_object: 7ed9e0445ac189e0f90687c6ef602212702bde90 + src/hooks/index.ts: + id: 5f2dab62b520 + last_write_checksum: sha1:1a11c073a6cd792932218e1d4ed36b8567bad8ef + pristine_git_object: f60ec7acd76141a71d78008c5a362eb0236d8335 + src/hooks/types.ts: + id: 2a02d86ec24f + last_write_checksum: sha1:27a3444c4839bec58ae89820fd8c2483edafc3f4 + pristine_git_object: 9c36bf01332084f735909a71036c3544cc4c7e3a + src/index.ts: + id: c5fb850250c7 + last_write_checksum: sha1:35c9cde3ae14b18b3f893a1afe8b6c44f8760f24 + pristine_git_object: dbcba164a0082e3bb8c43cf21fa7f8ffb9d35dfc + src/lib/base64.ts: + id: "598522066688" + last_write_checksum: sha1:b0b12ddbd8625efb47c0e955a18641aeb10c6532 + pristine_git_object: 0aebd8b0a4867e35cb3348fc52921c3c0b4725b7 + src/lib/config.ts: + id: 320761608fb3 + last_write_checksum: sha1:87904b4e1c0811bc480d69c42712d977e7b30f7a + pristine_git_object: 610c6e44dcad863941f4a64cdac264b76217778e + src/lib/dlv.ts: + id: b1988214835a + last_write_checksum: sha1:1dd3e3fbb4550c4bf31f5ef997faff355d6f3250 + pristine_git_object: e81091f5e536f82739f71379b1fddc2d147c49e2 + src/lib/encodings.ts: + id: 3bd8ead98afd + last_write_checksum: sha1:d20c131976ab8ac68b22bdde2b7ed84b5b873922 + pristine_git_object: 31cd3733907afbee3641b9ab680ed417247a7d33 + src/lib/env.ts: + id: c52972a3b198 + last_write_checksum: sha1:74067d676ab3a911ec0e151a0c4ea54116e069e6 + pristine_git_object: b88dbb1550f82366b7d07ed4e2b415be2e487c74 + src/lib/files.ts: + id: e5efa54fcb95 + last_write_checksum: sha1:d0f325f445b8d22e7d73baf052c585ec2dd24841 + pristine_git_object: 0344cd046d033f9e8a55de02f7935c5cec5dc30b + src/lib/http.ts: + id: 63a80782d37e + last_write_checksum: sha1:797cbf16d3c7c4d62d3ba0eedb08617524938457 + pristine_git_object: 13cf1fd7894a89f727b8d2db2ad24313a94f68c7 + src/lib/is-plain-object.ts: + id: b9862591096a + last_write_checksum: sha1:df687f25a9590b6fd95d39df41a652ae3fd4e517 + pristine_git_object: 61070d3d7c7e5e95b1ed7e7ea21869eb0767db77 + src/lib/logger.ts: + id: 7ee7741a02bf + last_write_checksum: sha1:0ec9d3a2a34c362746b767e4f9a746c055d57a7b + pristine_git_object: d181f2937d4128afbe9b0327e0f81d1fa9c877b7 + src/lib/matchers.ts: + id: d54b2253b719 + last_write_checksum: sha1:e7587f40d36710d499f8a7e6b610610e55a2cb40 + pristine_git_object: 77d41086d77e53263a3a9ba0ec73aea3df521096 + src/lib/primitives.ts: + id: 74859f750b28 + last_write_checksum: sha1:987869fc54790b9c22e9182099103d6aa7c67016 + pristine_git_object: d21f1dc49affa4e6d324bdd60811b470fdfa7eb6 + src/lib/retries.ts: + id: b24a69d15639 + last_write_checksum: sha1:f3da74dffcbe2756c69393f8600205aa1dc06e68 + pristine_git_object: e3ce9aba72150fc3c18f3105d39b21aba809377b + src/lib/schemas.ts: + id: deb4b531fae1 + last_write_checksum: sha1:209cfaabfa7fc1c1310f97453215cb0755619c6e + pristine_git_object: 47edb9725c2482c667e2ddc8a56b1fec4285c492 + src/lib/sdks.ts: + id: 8a6d91f1218d + last_write_checksum: sha1:e4b784cb5a9f00ef40635dcf2386dc780a332a87 + pristine_git_object: 4519333b865cea88b5e9cfd597ec3352b6278be9 + src/lib/security.ts: + id: 0502afa7922e + last_write_checksum: sha1:a0d4ce10372c22a863a1342f47bc24801792c3bc + pristine_git_object: b8dd7d7cd88c140887fe3d9d2939f89e9200f412 + src/lib/url.ts: + id: b0057e24ed76 + last_write_checksum: sha1:d124050c7e755c0cce233b9e029afb584ff65201 + pristine_git_object: f3a8de6c021de59c991707946cd294596cae954d + src/mcp-server/build.mts: + id: f7a2ed2de4d7 + last_write_checksum: sha1:1a7a5dc9ace5a5d707bd8d2339f76719e525e7eb + pristine_git_object: a04739f2ac2154c097ea821daf364ee4c037a820 + src/mcp-server/cli.ts: + id: 4ade0ef98b00 + last_write_checksum: sha1:7331efddde881832342fa8779d23be7445d4480c + pristine_git_object: b878d8de9f2a0275c3cdbfdcaed48a31092e558a + src/mcp-server/cli/start/command.ts: + id: b3e53408ccb4 + last_write_checksum: sha1:86235d01d45e8ecc1eff058c79ff9f0e8fdd124d + pristine_git_object: ab61d6789579f0cdf6e624ff66b5ff4daa5f7e7b + src/mcp-server/cli/start/impl.ts: + id: 37494f674015 + last_write_checksum: sha1:1e90e7e1e9a194c8d9bda3428648de2243473035 + pristine_git_object: bfda407fa36aafe14d121106e9b1a870c67841aa + src/mcp-server/console-logger.ts: + id: 57aff4ff2e15 + last_write_checksum: sha1:66e945860c8318f2a6bb9604a7720a979dacce4b + pristine_git_object: d65a295b9545bee0599e46f2a75f2ab5a03c4ae4 + src/mcp-server/extensions.ts: + id: 3d9d20ff158f + last_write_checksum: sha1:e36e4b49b77347db80debccc2e77706b0ac7f4a4 + pristine_git_object: 0955a573c2ce989d63c737410ab8cc28706d9f74 + src/mcp-server/mcp-server.ts: + id: aabbc4ab07c1 + last_write_checksum: sha1:14abc2979c582424ede0f99e2472bdf108dda818 + pristine_git_object: 9b19ebc6ff00562e476a3ff8026ce96010803368 + src/mcp-server/prompts.ts: + id: 26f3d73cbf31 + last_write_checksum: sha1:eda97dd2fa38661ae58ab04555d1381795c860be + pristine_git_object: 555fe7d744034c30deaa9993b77d1e823640a138 + src/mcp-server/resources.ts: + id: cb0c57ebeaea + last_write_checksum: sha1:b8ebc83a5cb4789dd8c021743e287061e39abe26 + pristine_git_object: 6ba478ad9bd49385e0ec34335b28ff45ff8085fb + src/mcp-server/scopes.ts: + id: 8966d24256b2 + last_write_checksum: sha1:77d0eb95785e84f9fd0b27c4612f8c6470489fe4 + pristine_git_object: c25696d4c4f70e081fa5d87ad6891874c509a577 + src/mcp-server/server.ts: + id: 2784dd48e82a + last_write_checksum: sha1:92e86567c5d83acef71d8605191dab8237ebab90 + pristine_git_object: 60f5648e8484ae360312b89e85cd58aea30ac07c + src/mcp-server/shared.ts: + id: 074e80d4be1e + last_write_checksum: sha1:56c73d4429691516e35541825e759a0285747a2b + pristine_git_object: 3e94144d13f0707bc300183ebb4325b367c297dd + src/mcp-server/tools.ts: + id: 654d5d1f2062 + last_write_checksum: sha1:fc12ba8f267abf40b6a281fefcce604118781a50 + pristine_git_object: 009965198a0841b5c9621d83be878256405faad0 + src/mcp-server/tools/bankAccountsCreate.ts: + id: 1e01d796a3d6 + last_write_checksum: sha1:10d6c1b8af7c9c1d65e49b7d5625ad17968caec6 + pristine_git_object: fa4ca5014c7511844a7c3ad893652fe9f862d0db + src/mcp-server/tools/bankAccountsDelete.ts: + id: ad255166f845 + last_write_checksum: sha1:162b1ce4e6360dc29c2ef5ece9ed7ed676a33a83 + pristine_git_object: dda42c484b1fd7e9532e37c703f7ebf93cf4e4fa + src/mcp-server/tools/bankAccountsGet.ts: + id: 656f475a05f7 + last_write_checksum: sha1:8772e971695bc8d1e3aebf25a0216d239a501d34 + pristine_git_object: 906b4c4b7cd64e4454021555ad9732b540c0b0b2 + src/mcp-server/tools/bankAccountsList.ts: + id: 9072412282a7 + last_write_checksum: sha1:0e8a3338c66c70174026be0abbafcabe33907f96 + pristine_git_object: 9f5b62db3615b49452443935f042b18cb8eb6698 + src/mcp-server/tools/bankAccountsUpdate.ts: + id: 1b020ddb21a5 + last_write_checksum: sha1:1a6a7efcb6609dfe49f752fb41f88df721d117cd + pristine_git_object: ea2bdd1dae11eca268e0dbe1fdfc20057173e104 + src/mcp-server/tools/customersCreate.ts: + id: 9665440f15fe + last_write_checksum: sha1:b04d5b6b35cb002795f8e0c36631aae63c5941fa + pristine_git_object: 1f07ca8fcb8cb0cb1cee83bfde7407f0d0e062bd + src/mcp-server/tools/customersDelete.ts: + id: 87b3b20fca48 + last_write_checksum: sha1:9dc0bc38ae483975dba2aff4480a5505d38e117a + pristine_git_object: 275e00aa0a28f400035821234d2100d08a8f0629 + src/mcp-server/tools/customersGet.ts: + id: 1fef81e63ffb + last_write_checksum: sha1:8d014fa0625d495239f08064c7701844fcea5cb1 + pristine_git_object: 226a0d4783660a119eb572a58d0829fe764434ef + src/mcp-server/tools/customersList.ts: + id: 5b334953771e + last_write_checksum: sha1:a518a1367f733c6e61d75ff785d2b03cf6ecf439 + pristine_git_object: 81946297c97216deaa41269fb74faf762ced52f9 + src/mcp-server/tools/customersUpdate.ts: + id: 4b033dbbb0da + last_write_checksum: sha1:966152e045d29d2354cbe6dc29d3df3000c19c54 + pristine_git_object: c53ae011960b6f35d9f6f681dd1c9f25e9ca7c8e + src/mcp-server/tools/documentsDelete.ts: + id: 2231d268ac14 + last_write_checksum: sha1:96e8ecd399f8d2ee3cf016ec722396ec8762ac11 + pristine_git_object: 8f2be9f1ec678bf5a83ebcd12b2bf48c825141a0 + src/mcp-server/tools/documentsGet.ts: + id: 4a7dafd949b2 + last_write_checksum: sha1:f0128ef73ae3f2b42a8e65bcd10fcaf4d010ae71 + pristine_git_object: d21aa6ce72575a51a5907fe27a33fdff3cc5fa84 + src/mcp-server/tools/documentsGetPreSignedUrl.ts: + id: 8fffbd3dcdab + last_write_checksum: sha1:f47d6167df59460aaaefe0702ebec51267cb65b1 + pristine_git_object: 5ceed36d45eb02d559a1f9c6f8b754bfb5733141 + src/mcp-server/tools/documentsList.ts: + id: 64ecf1a9e44a + last_write_checksum: sha1:7dcb0b48f12a190d9a9f5d86af7f46a33007edd8 + pristine_git_object: e1ae07ba968e50f8512554e3dc068181e5ee7bfb + src/mcp-server/tools/filesDownloadFile.ts: + id: c63b51579aad + last_write_checksum: sha1:673cbbd34acef8a9788d5ce58f38398e8ecc6e9a + pristine_git_object: 8c0e8b7bcf0aaf008d3175de9526b8c370947cd8 + src/mcp-server/tools/filesDownloadInvoice.ts: + id: 0b40abdcddbb + last_write_checksum: sha1:e70f3fd980fd7304c2468f66dde8e0b028fe45fc + pristine_git_object: ab0f4dd99beee1b1d53859099697b7dd2a777568 + src/mcp-server/tools/filesProxy.ts: + id: 9883334ff112 + last_write_checksum: sha1:0f10c5efa6cd77fbbb0b1f1d82c7e889b7466460 + pristine_git_object: ab958f0ed87d9274ecefdcc76aaeb3d8b79196d4 + src/mcp-server/tools/inboxDelete.ts: + id: d2a25de786a4 + last_write_checksum: sha1:f79df94ceaa56bc1e435202c98a1721de0012a31 + pristine_git_object: ceeb8bcd22979319200de5b5681bda82ba483539 + src/mcp-server/tools/inboxGet.ts: + id: a40e00f184c9 + last_write_checksum: sha1:fc273607ad178003fe4262ee50d37d2047ef6f9a + pristine_git_object: d58921085a4be52cba08d56a830f54eecc28cffd + src/mcp-server/tools/inboxGetPreSignedUrl.ts: + id: c39b6945e742 + last_write_checksum: sha1:77800499f3ed9dbb81b179e29dae3db82b34677e + pristine_git_object: 324bbbd4cc4ed228b4c9450999eb870d5501b560 + src/mcp-server/tools/inboxList.ts: + id: 275fd4b54187 + last_write_checksum: sha1:79f3e7ca5499d9bad1890d73afe1fcdf729893a7 + pristine_git_object: 76ba313633feada08e5a253b83909187d36771f1 + src/mcp-server/tools/inboxUpdate.ts: + id: 3bd776c05fd6 + last_write_checksum: sha1:056f9ac1f5f803af5ff32a533e608b098effe207 + pristine_git_object: d1c0abb7b96957802ae3af913bb1cf45408ef14b + src/mcp-server/tools/integrationsFortnoxOAuthCallback.ts: + id: 0e2750dd74a1 + last_write_checksum: sha1:885eb8d482e510374605f29b81ca4fa180567be8 + pristine_git_object: 72c5c7bc29e3acb23b329c799d8e76bd9be17ab5 + src/mcp-server/tools/integrationsGetFortnoxInstallUrl.ts: + id: 25ece01d1e3f + last_write_checksum: sha1:bdfbdad2422df1ca769b5f29a1d805c30d25400b + pristine_git_object: 787ff08dccdd8c64338b67a847d521d9f22c69e4 + src/mcp-server/tools/integrationsGetGmailInstallUrl.ts: + id: 2b48cb1c3f2e + last_write_checksum: sha1:687864e0367f6c3dc69a5a75de99ddb9549470c7 + pristine_git_object: 0543ee16026871d2546a69ad8c4eb14f136f311c + src/mcp-server/tools/integrationsGetOutlookInstallUrl.ts: + id: 55f25f1fbd63 + last_write_checksum: sha1:5fa4bbc379a6f848d16ab7661cafde0a9cea6411 + pristine_git_object: ce92b0d89ed05099d7a7ac50868038399ea188ee + src/mcp-server/tools/integrationsGetQuickBooksInstallUrl.ts: + id: 591450b2640b + last_write_checksum: sha1:c88630934e36455b7fd1651b66b884017b4cb5ee + pristine_git_object: b1c14eb7c1e00da6ee57d15693d272a7cb0a1827 + src/mcp-server/tools/integrationsGetSlackInstallUrl.ts: + id: 62966c298c86 + last_write_checksum: sha1:24c4287c8bdde6cca715a8e4f248c3312e21bdf3 + pristine_git_object: 9530701177039984da7cd57f43e440d4c3f799f3 + src/mcp-server/tools/integrationsGetXeroInstallUrl.ts: + id: 46e21911330e + last_write_checksum: sha1:42be0a6aef04e4cf8f76a9a5e787e48a4bce100f + pristine_git_object: f4f424069def03796a6cbe9898541fc0825f83b3 + src/mcp-server/tools/integrationsGmailOAuthCallback.ts: + id: 913d039bbc30 + last_write_checksum: sha1:96ad3ddc2bba7b2d1209c32244419ab14b41d8c4 + pristine_git_object: 568501b3269152084431964b3ff0e98a394eb209 + src/mcp-server/tools/integrationsOutlookOAuthCallback.ts: + id: 366c60ae74df + last_write_checksum: sha1:9601d1a0ae2e54fae21cec3b7b50b1c94fcdf77a + pristine_git_object: e622df3c684d41b6ea0edee827eddcff4b24e19a + src/mcp-server/tools/integrationsQuickBooksOAuthCallback.ts: + id: 4bf21e2771cc + last_write_checksum: sha1:b2f092cd30057c6fea516b82ce4d5e3172baf89b + pristine_git_object: 37eac79d7430ab622436d15715c3bf0bea8fbff6 + src/mcp-server/tools/integrationsSlackInteractions.ts: + id: d5a2844ff682 + last_write_checksum: sha1:dafe7857c7d1a8ab56907e6ce97bc47dac03bcba + pristine_git_object: f335cd2a5d9206de700b96e43b4862a23910c206 + src/mcp-server/tools/integrationsSlackOAuthCallback.ts: + id: 7a091945c01e + last_write_checksum: sha1:2364772454217bebc63a645d40bc5d3c0f1c9f4d + pristine_git_object: 8ec469425221aeb199825900c59c579517ae879c + src/mcp-server/tools/integrationsSlackWebhook.ts: + id: ffe1f22fef66 + last_write_checksum: sha1:bf2e1865214a863d4048f65cd35dab1ba9e3fc68 + pristine_git_object: d91897613e5f862804f3dc52398768a5445c67eb + src/mcp-server/tools/integrationsXeroOAuthCallback.ts: + id: 35dbc782b0a7 + last_write_checksum: sha1:433c57530fc2935498f0861053d5ac2cbb4b5c7d + pristine_git_object: d1485b5718df91d9c39117ebed481371da99d368 + src/mcp-server/tools/invoicePaymentsCreateInvoicePaymentIntent.ts: + id: b350cba771dd + last_write_checksum: sha1:6df80705e9a2c19ddfa5700708fa828e0b7693cf + pristine_git_object: 84ffa610728f81028a40e328e004f428bf533a3b + src/mcp-server/tools/invoicePaymentsDisconnectStripe.ts: + id: 973b88719279 + last_write_checksum: sha1:141e66001e9ef253775a49193651b4060fd8b6d5 + pristine_git_object: 3d5a0d19f5e6594d56cbaaf208a4832d5feb8a0f + src/mcp-server/tools/invoicePaymentsGetStripeConnectStatus.ts: + id: 9cb89dbbe7b5 + last_write_checksum: sha1:c03d23218a222e7a26f8b45ba7687029f340adf7 + pristine_git_object: bfce37e3fcd701df29372b1ca39556cec1fda991 + src/mcp-server/tools/invoicePaymentsGetStripeConnectUrl.ts: + id: 5bcdb34bc5a5 + last_write_checksum: sha1:ebff82c381d0d4afeb24d5d374e3577f71457d08 + pristine_git_object: 749d54a93d52b71ed4550d056ebc05dde0343f03 + src/mcp-server/tools/invoicePaymentsStripeConnectCallback.ts: + id: 86ce197d16a1 + last_write_checksum: sha1:0382ac15ab01050cc8b610e41ff57ebdcf4ade2d + pristine_git_object: 390559d78f71966b4c4035f46b2a69f451441881 + src/mcp-server/tools/invoicesCreate.ts: + id: 0d08ef263494 + last_write_checksum: sha1:ccd601e3dd04f84e018ae3e38fdc7fac98ccb520 + pristine_git_object: 5ee24695ca0c6105419ce90481d7ace8f2ee4a7d + src/mcp-server/tools/invoicesDelete.ts: + id: 445cb140272c + last_write_checksum: sha1:8b4df047a046fc18eb8a7f9259afa4d7b1a2d421 + pristine_git_object: 6d7f2b4022b6010ed7a5616758055dff75e3cc47 + src/mcp-server/tools/invoicesGet.ts: + id: 200b9a31f0fa + last_write_checksum: sha1:fdaf3d0eb06f4e0b22d29981e15a82fc2b701356 + pristine_git_object: d5e83dc10b37d4b2cb9cf7c7965e5b9d6dcd21ba + src/mcp-server/tools/invoicesGetInvoicesPaymentStatus.ts: + id: 323ad8f60c65 + last_write_checksum: sha1:ac950144990514ac07e2b1dd62ba08dd2cfaae4e + pristine_git_object: f60dd03cbf0c0f4ca9c2b218b3450d8069bdcf99 + src/mcp-server/tools/invoicesList.ts: + id: bd6ab9a48a89 + last_write_checksum: sha1:2d19f5d4212603e3997144d978eeefa93ecb98de + pristine_git_object: 673a9f5c606a18c0ec19013ee7c617730c534fa1 + src/mcp-server/tools/invoicesSummary.ts: + id: ff4262b48bb1 + last_write_checksum: sha1:ac3e387064967b68a884329e7cf21685f141fc08 + pristine_git_object: 421805a79e2ae117b28ab72f8336f0b386fae455 + src/mcp-server/tools/invoicesUpdate.ts: + id: cd06966a89ad + last_write_checksum: sha1:db9427ed5a084e0778b665572e8a6a1fc6158a08 + pristine_git_object: a11f9ad9ec04b43e2925a881c67a53f60b18d81b + src/mcp-server/tools/notificationsList.ts: + id: 5cfe3b8232d3 + last_write_checksum: sha1:fc511b806835e1c1b2ab20e3aba54fa3969dd502 + pristine_git_object: 59266d4ef96774b8c8f5923adea1ab5b3144a8bd + src/mcp-server/tools/notificationsUpdateAllStatus.ts: + id: 2781de039263 + last_write_checksum: sha1:0e0d888e28cc0bb02e3a24f6bc6f7bcb05114933 + pristine_git_object: fa93ff7baf16a3ec3dba47e2b0e4df68a1c9085e + src/mcp-server/tools/notificationsUpdateStatus.ts: + id: ff33b0bab879 + last_write_checksum: sha1:4f92882cef30d886545e2c1ecccef4ee723db2db + pristine_git_object: ac573df9dea11c313a809f676c032799290d7ad0 + src/mcp-server/tools/oAuthGetOAuthAuthorization.ts: + id: e4e267cfc832 + last_write_checksum: sha1:44007244439cc6cdb6c64c8d98034160e54a9a48 + pristine_git_object: 76b5caaeaecdd4aa63894dbb22644795600a3dca + src/mcp-server/tools/oAuthPostOAuthAuthorization.ts: + id: 0236de22051c + last_write_checksum: sha1:cc7fcc6543ca051433e7d24cdcd64f90bde1874e + pristine_git_object: 0dc5df19bbf09e0c947361e65b3c5f480b1187ea + src/mcp-server/tools/oAuthPostOAuthRevoke.ts: + id: 12bd4e5e5f57 + last_write_checksum: sha1:deb5c9457b4f6a9efa5fdfd6d5bd80a1a3824cda + pristine_git_object: 15783749d51fb5b79f8889fd3e5eb174f73c687f + src/mcp-server/tools/oAuthPostOAuthToken.ts: + id: 3c1152603d85 + last_write_checksum: sha1:24e737b1492c7948fd18ab0790df65b1efc6cdc4 + pristine_git_object: 20592f49ba87278aa81001ce5231a92292780923 + src/mcp-server/tools/reportsBurnRate.ts: + id: eb189356c545 + last_write_checksum: sha1:b0404432065aaf93b9a62faac40a190854f55f12 + pristine_git_object: 4322a6239740502b2b5dc5be27a720959fe33bb9 + src/mcp-server/tools/reportsExpenses.ts: + id: 1cc69c57bf05 + last_write_checksum: sha1:00741ece0a691067f036714cf0c6a74303ea0895 + pristine_git_object: 527e8c0aaace29b513d83d6ffd208d9171fe3755 + src/mcp-server/tools/reportsProfit.ts: + id: 7d6ec6afa8a8 + last_write_checksum: sha1:fc34e34eaeffec3ed963132b069bb87aaa44b532 + pristine_git_object: f2b3f43320f7d2cededfb5303d41a706b266d063 + src/mcp-server/tools/reportsRevenue.ts: + id: 93d3e70b700b + last_write_checksum: sha1:d43de0de686fc0e5127b8bfba622558c43353b13 + pristine_git_object: 87c1cced81e090ab68858a176d0c04d42ae93754 + src/mcp-server/tools/reportsRunway.ts: + id: abab97dd7f9c + last_write_checksum: sha1:7d95b742680e3f60d58d3a2e2006acd2413ff55b + pristine_git_object: 13d2ec56994ffcd76605bc5793ca85590213f093 + src/mcp-server/tools/reportsSpending.ts: + id: ec049d9a2e7d + last_write_checksum: sha1:68fbd571e279900c322c727adfbd12868d0d12c4 + pristine_git_object: 074a6b84a418e3fd870b80effeb27ac9ca17d177 + src/mcp-server/tools/searchSearch.ts: + id: 4ddc38c2e799 + last_write_checksum: sha1:61d4a47c880a337514cad9aebd0b45d63b85b9cf + pristine_git_object: b96aa3390f4a45cd97be59ea1a89a6ac14927135 + src/mcp-server/tools/tagsCreate.ts: + id: a058c5487d19 + last_write_checksum: sha1:42a61f4c8672950bea040c38869e2f6507dba3bb + pristine_git_object: 293fdd5a58c3f10903ed9402b23aa11b09487818 + src/mcp-server/tools/tagsDelete.ts: + id: a2688c60e290 + last_write_checksum: sha1:21d5a67295b4aef06245c4d7aada9d10c4d790a5 + pristine_git_object: 6284311417d909d2a15c1852d53d6807d36348a5 + src/mcp-server/tools/tagsGet.ts: + id: 503dc9258f03 + last_write_checksum: sha1:00cc99bb20dac191978aa2db5d3d155d5ae11e53 + pristine_git_object: 951ffa9af762ab48514a713ba132a954aa34b9f4 + src/mcp-server/tools/tagsList.ts: + id: 6ab039f4ea20 + last_write_checksum: sha1:384c32d7b0a19f02dc6de836c93b0786eb2a018d + pristine_git_object: 8953b4e3075079c5728b8f56019c305a46e05c19 + src/mcp-server/tools/tagsUpdate.ts: + id: ed6178ae165e + last_write_checksum: sha1:cef3a934f80f89f74fae6e5251699d7065d8c72a + pristine_git_object: da27eaa71c9ce9e339df659d17feebb9defeff2e + src/mcp-server/tools/teamsGet.ts: + id: ab50469c685e + last_write_checksum: sha1:8b4098f12786186085c037668faa92a71df43979 + pristine_git_object: 4929e8b49d191ca693a655d8b402c2ace67ab44d + src/mcp-server/tools/teamsList.ts: + id: 9fe82d4f54a9 + last_write_checksum: sha1:318cea36c37b1d5cf9d3a4ccb041ccaf444ccb10 + pristine_git_object: 65852f3181045d1930b5909868c0342729387e8d + src/mcp-server/tools/teamsMembers.ts: + id: d1ba48302550 + last_write_checksum: sha1:d87c3d011f9c150120dec94676f0d75d5e8929e4 + pristine_git_object: 229f7c4ec7998a96138135d20d6272b3bed60f4b + src/mcp-server/tools/teamsUpdate.ts: + id: c18d59db49ae + last_write_checksum: sha1:33a09b469e1a76726fbf3c0912ed219a2235c5fd + pristine_git_object: e56d4546f04798a02d4edd0dd67d5d74281fb90f + src/mcp-server/tools/trackerEntriesCreate.ts: + id: 6cbf1cfd1fdf + last_write_checksum: sha1:31d862e5ff4bff9c329af3c5133cec6e0334d642 + pristine_git_object: 0cfb2d655ba65676bbda46ab75546e81cfab1e7c + src/mcp-server/tools/trackerEntriesCreateBulk.ts: + id: 02e962477e10 + last_write_checksum: sha1:041975040a4ad37c6c8640dfb306ea8f6b3d0e78 + pristine_git_object: 73498f44baa67f8170e49342e5e11cf8293e6e48 + src/mcp-server/tools/trackerEntriesDelete.ts: + id: 40b7cb914eba + last_write_checksum: sha1:e353a8409295507178e70adde7e0de95951bf5c8 + pristine_git_object: 116815349af120178e6d54106f7d82ca052a48af + src/mcp-server/tools/trackerEntriesList.ts: + id: 06777f866d62 + last_write_checksum: sha1:7e3d8e71edcbd34041c9f4c30aade2694a6b92d3 + pristine_git_object: 546fc75499030e517927df1cbf7d3dfb422e2018 + src/mcp-server/tools/trackerEntriesUpdate.ts: + id: 212fbb086568 + last_write_checksum: sha1:a955a70794f59b35323965ebbc71b8ea4f55c0f9 + pristine_git_object: 0bcb423408d933e03a779de44d18036cb6daf89e + src/mcp-server/tools/trackerProjectsCreate.ts: + id: fcf7fdf562d9 + last_write_checksum: sha1:58ef8b0b2c49624234fd98d4f942070687c06a8e + pristine_git_object: cdb7e60470be323bb6f3e113cada0521e620dfa5 + src/mcp-server/tools/trackerProjectsDelete.ts: + id: 6b0da7ad90ab + last_write_checksum: sha1:8e9d30ea89dd4559208a2d8a7303d13b57d62a55 + pristine_git_object: 7f56f2350dd7212668f8a65c197183fa93ba1312 + src/mcp-server/tools/trackerProjectsGet.ts: + id: 25bca1a1ba18 + last_write_checksum: sha1:5bb7c7ad078ad8b0e5c851530f1f97b5e853fb3b + pristine_git_object: fec958dd94af33ec9631be4ddbc4aeec7e7ba181 + src/mcp-server/tools/trackerProjectsList.ts: + id: e3dcbbdfdeef + last_write_checksum: sha1:986370a0e61633216964f2e359e2cdee4015e6e5 + pristine_git_object: 32e7f5883cb4f444bf504b2f877f5838d6fbdce7 + src/mcp-server/tools/trackerProjectsUpdate.ts: + id: 44065a48aed7 + last_write_checksum: sha1:4a3a97962a5c0c878d750e42c1e54d799c24c475 + pristine_git_object: e3a12082b85cfd0b4c798d783faf780027217233 + src/mcp-server/tools/trackerTimerGetCurrentTimer.ts: + id: 2de6ee42c9ec + last_write_checksum: sha1:135717b817c8d755cad8667c9793c28d93cfdccc + pristine_git_object: ce08b358738c40cf33159282b8350866ebb7675d + src/mcp-server/tools/trackerTimerGetTimerStatus.ts: + id: 5c3a1a6c32d4 + last_write_checksum: sha1:5d3f12fc1027fba0d1dedbc8bd7acd93b9d2c7f0 + pristine_git_object: b481523339419413c03c0551060f2417bf68ffd5 + src/mcp-server/tools/trackerTimerStartTimer.ts: + id: 111bac6bd366 + last_write_checksum: sha1:e49fce991e15e47e2fdaafae236538deaf6060d5 + pristine_git_object: a9f4b0eeb174aaa5a51e601d31d46731964fa817 + src/mcp-server/tools/trackerTimerStopTimer.ts: + id: e650c7b8c8bd + last_write_checksum: sha1:69092a700e20d1d9e80dbd2a1a9351f00a5f9b96 + pristine_git_object: 587b4bde4f6e2e38c3fd51082e34e8cef227f3a5 + src/mcp-server/tools/transactionsCreate.ts: + id: 17ad13f04cb4 + last_write_checksum: sha1:98c6c58979e03ab6ac9565e6e2cdaecca3655ddd + pristine_git_object: c5850c78479f36961af57475633f589e7dd480d6 + src/mcp-server/tools/transactionsCreateMany.ts: + id: f3b4b0e9b5f8 + last_write_checksum: sha1:f4d36238996fa53912052d61b4d5da77437be835 + pristine_git_object: 115e7bdc5c46c786492858379beea74cbbefde74 + src/mcp-server/tools/transactionsDelete.ts: + id: bc7d2cee0273 + last_write_checksum: sha1:a96fd7f46877d78ba2ccc85f8768219ff48b454d + pristine_git_object: 9f136bf35cef390caa666379975d3f3037827fa1 + src/mcp-server/tools/transactionsDeleteMany.ts: + id: 05a2573da1c2 + last_write_checksum: sha1:dcbd82714b69321e8d1c60448e5551a59d9fcd1a + pristine_git_object: cf24aff449b31f3690d2f20648bdedca669fb2d8 + src/mcp-server/tools/transactionsGet.ts: + id: a107b3adc820 + last_write_checksum: sha1:6f3d59253a3378f6f04e59202c85e5d5f4aa1389 + pristine_git_object: 91faf73c13d1a06635be576371a6d2e7a1351e00 + src/mcp-server/tools/transactionsGetAttachmentPreSignedUrl.ts: + id: 98601acd0a88 + last_write_checksum: sha1:88627a58df5834e8668334cae91a6a90c5b53c6a + pristine_git_object: 3ef45012ba66fe5011861e8bd640e6add3800425 + src/mcp-server/tools/transactionsList.ts: + id: a64a60df4546 + last_write_checksum: sha1:4f6048d0d3e33ec150903c1282497f0ef2d22f8b + pristine_git_object: ebe620a18c7d905d1f62799261b5419f72f5cb9d + src/mcp-server/tools/transactionsUpdate.ts: + id: 46341cca7823 + last_write_checksum: sha1:a640f8ebdd1dcfc413bcc5cc270c7d8491bbfd0e + pristine_git_object: 3dd86f5e6d917f5f261ef0d216feef36382921b3 + src/mcp-server/tools/transactionsUpdateMany.ts: + id: 10b709ab667b + last_write_checksum: sha1:4eedbe86acd77900cba627cbf5ff680f4ef3c77b + pristine_git_object: a93e01c6fbd64e6049ba5e59ef94f258fcad50ee + src/mcp-server/tools/usersGet.ts: + id: 8050b39a1213 + last_write_checksum: sha1:b2db21276c0bb30e4f39cce1c96b047df3bff354 + pristine_git_object: 5f314d3658c08f9593289bf8a3ad87d6a860a713 + src/mcp-server/tools/usersUpdate.ts: + id: 10d2a785f98d + last_write_checksum: sha1:e721ac826661260dbd3b7d046bacb22a93969fbc + pristine_git_object: f76ac4edb7fe8e884374419a63adaac1ab775b14 + src/mcp-server/tools/webhooksInboxWebhook.ts: + id: 959a9d343d2f + last_write_checksum: sha1:c40890e443b7fdab5341c46c76fef5567ba1f8d9 + pristine_git_object: b6a69b38ed163196ecd134873f31c7ab439fafd9 + src/mcp-server/tools/webhooksStripeWebhook.ts: + id: 970f3b14e243 + last_write_checksum: sha1:ae1d87b6f95d1546ddc31f4b465171c987ad9f98 + pristine_git_object: c809f3736dba3c82ef413f65f85096fdb564cd05 + src/mcp-server/tools/webhooksWhatsappWebhook.ts: + id: 6a1bc004c325 + last_write_checksum: sha1:0e2a3db3826b22b1982698ebec656cb5222aac8f + pristine_git_object: 213af91bc155860e7ac6a943dd1de60a8b9afc39 + src/mcp-server/tools/webhooksWhatsappWebhookVerify.ts: + id: a078e1b9d0b5 + last_write_checksum: sha1:b7dfe73b9d5502fa0c1538c70370bca5ceeaddc4 + pristine_git_object: 7b76713305fca327813cf5a56d740ebd61b93364 + src/models/createtag.ts: + id: ceab3b2450d5 + last_write_checksum: sha1:74c0d466880481d98821c8f9929a50b34e504865 + pristine_git_object: 4c4179dda89b6b1f3a9d261c03496b7f73df5985 + src/models/errors/apierror.ts: + id: e2280e075454 + last_write_checksum: sha1:3d597961b35dbc60069475bfb3880630f76d19ef + pristine_git_object: f0a61ddc7d0b385c8228f4dc28006af9ebffbb15 + src/models/errors/createinvoice.ts: + id: df2c402f6345 + last_write_checksum: sha1:7328b49a68c663b86ed17f02f9e8bb1826096cea + pristine_git_object: a71f9b9645bfb6c717b4f916d33048c3069d5110 + src/models/errors/downloadfile.ts: + id: deb7e312bb06 + last_write_checksum: sha1:0d6d58809819ac1d7416a6491157b745de834fdb + pristine_git_object: 82ba42d2d90d4fa0ee72484157b255fd6354d1dc + src/models/errors/downloadinvoice.ts: + id: 7a08f8c61cf0 + last_write_checksum: sha1:8d9bb84249c2823f0f23f53bb222f5dfbd75e2d7 + pristine_git_object: 2bb10bc2ed5fb7cdd42feaf52a55e9868c7b8951 + src/models/errors/getdocumentpresignedurl.ts: + id: 47b424862aa6 + last_write_checksum: sha1:eff97760655041aa435af8e14b0dfa975eac225d + pristine_git_object: e4d33a6ea005c9a3754d05c827e80da745dd2f00 + src/models/errors/getinboxpresignedurl.ts: + id: 1f341fb7f9a8 + last_write_checksum: sha1:13711d04d2821b04b9ea21e69425981e745064c7 + pristine_git_object: 83c5d2202c1de9ecd55ad2e09c747e61fa0b339d + src/models/errors/getoauthauthorization.ts: + id: 699bf2afed6c + last_write_checksum: sha1:3bf2b37bc9fcec018c4bb4afca044d28a5f5d4e1 + pristine_git_object: a74cd1e2e392ef4ea069284865a5d63e756a5df8 + src/models/errors/gettransactionattachmentpresignedurl.ts: + id: 6b76c3874df3 + last_write_checksum: sha1:52c639ec6a29b8d70fb409af1905a3e0b95c7326 + pristine_git_object: 4c62d54675cf0cf1eeb47830d91e1197d79d2ec6 + src/models/errors/gmailoauthcallback.ts: + id: 98c4c4b7391a + last_write_checksum: sha1:fc008a658b9178945b903ce1fa322616428978f8 + pristine_git_object: 8b3705a0d8e4dfae3a90b132cacc62b938436b96 + src/models/errors/httpclienterrors.ts: + id: 6948de76af99 + last_write_checksum: sha1:994ced121c54fecd0af038ccfb7855fbfd3868ec + pristine_git_object: b34f612124c797c2a1106b9735708f679a90b74f + src/models/errors/inboxwebhook.ts: + id: 0cd652dfec08 + last_write_checksum: sha1:0b07ba24a82841a7473b9ed36655c3ae0eeb9f64 + pristine_git_object: 6af6803ae4bf42d46773ea4bf94875fb14004709 + src/models/errors/index.ts: + id: c4e22507cb83 + last_write_checksum: sha1:ebbb44541e2571438ff9162b8529533945dba269 + pristine_git_object: 695069ae9b1837c3bc14c9a814c34922268ff068 + src/models/errors/middayerror.ts: + id: ced8db53faea + last_write_checksum: sha1:7e30c392db3f5316dd43756cdc50d49f98e58b40 + pristine_git_object: 5abc2f0496d5f915bba26a5eb677f673a1620fd6 + src/models/errors/outlookoauthcallback.ts: + id: 494fd3f42d67 + last_write_checksum: sha1:8f9b4bdb15219e3c73f0c0556558ab5a57406fdb + pristine_git_object: 5b7d4afd6eefa088693a08109673180226652aa5 + src/models/errors/postoauthauthorization.ts: + id: 07c202ba4748 + last_write_checksum: sha1:e0dfbc3d23fc44d02336322ab26f203b7e779ca1 + pristine_git_object: 1b745fa535b99f7910d8523fe61b9cb142e3e381 + src/models/errors/postoauthtoken.ts: + id: 44eee662288a + last_write_checksum: sha1:ea557c2cd771211ed2c9b16a0156e454ac3a9ef1 + pristine_git_object: 036405c179df29bc245cc59ec733cab53c459551 + src/models/errors/proxyfile.ts: + id: 4da007573e30 + last_write_checksum: sha1:d3125f6a17adc80d28446024e7666d644111216b + pristine_git_object: 002af103aa265d2dbb13d8919855ce154fe333f9 + src/models/errors/responsevalidationerror.ts: + id: 88ff98a41be9 + last_write_checksum: sha1:ca7f135175f2b6d6a26e4f35296451040e38f141 + pristine_git_object: e2e4cfe89e71cee6ed892d14fff89605dc9a7a46 + src/models/errors/sdkvalidationerror.ts: + id: fb6b2b49c445 + last_write_checksum: sha1:a69da17627bcc32b820544608f3400423ea53f26 + pristine_git_object: 6826e1208a5d7b7d310535d18909646522bf0fbd + src/models/errors/slackoauthcallback.ts: + id: 9dfa43190a92 + last_write_checksum: sha1:de737013dc1601b00ce1ec7a1336a5e76a23702e + pristine_git_object: e5d8787e6009391ffbc99f61ba0ade8364301a19 + src/models/expensesresultarray.ts: + id: 4e857724877d + last_write_checksum: sha1:3f37c953a0e154c37bbb505ff08e61ae11447a17 + pristine_git_object: f643c27cfe882a731487b56d892127d3d58ba805 + src/models/getburnrateresponseschema.ts: + id: 12637acf9e1b + last_write_checksum: sha1:c85832ab84c8eecf7732ce1b5ddce86ea679a1ba + pristine_git_object: 64ccebafc79ef049aaf105a3d6998ee6fec32edd + src/models/getexpensesresponseschema.ts: + id: 47b352bd6c81 + last_write_checksum: sha1:263beb301a82d576ecdbc76400fff8321e06261f + pristine_git_object: 4f655c6a26a749954ddc4b24bbd2dc4939236e51 + src/models/getprofitresponseschema.ts: + id: 094d1a4a806c + last_write_checksum: sha1:02246b5f561dc02376e6bb37c603fc0c267f0c1c + pristine_git_object: 0e505a258147a739a765cc7675c93564a837e2e1 + src/models/getrevenueresponseschema.ts: + id: a7570f02ea37 + last_write_checksum: sha1:a65086a5da1f20bf6d07ddea166f62b6a280bdd0 + pristine_git_object: 07db989a7fba021c8009de525e35f7585846b422 + src/models/index.ts: + id: f93644b0f37e + last_write_checksum: sha1:077d91a528f4dbc1e5849d0750f12c86c530da33 + pristine_git_object: 275eef2a39b30bc6a9ffac018b79dc0e11e1728c + src/models/notificationresponseschema.ts: + id: c4ad709d6afe + last_write_checksum: sha1:4f822acfb6f475cef89ee5abdfbc234d515311b3 + pristine_git_object: 33b57d2ed1f637453d9ba73892b132ca6a2503f8 + src/models/notificationschema.ts: + id: 031a3edc3c90 + last_write_checksum: sha1:2483ab3dd6cebdf5b34dd2ba499eb1c46c331340 + pristine_git_object: 044a1f86d8300d50d703672c6744f7a8aa2ae2f3 + src/models/notificationsresponseschema.ts: + id: 46c05c3f3a57 + last_write_checksum: sha1:d5cf3f4defde1a99a8bd415063fcfd686d5434c2 + pristine_git_object: db7568f317da2d3e640784b4b2da57d1ddd949bb + src/models/operations/createbankaccount.ts: + id: 4418a2835c3f + last_write_checksum: sha1:504a4f258b19ba1baa7b9d90606edcbd94fd9062 + pristine_git_object: bbc2c848d00a9e71307c6cefbedf840272957088 + src/models/operations/createcustomer.ts: + id: 614cfb2079e0 + last_write_checksum: sha1:5b57e556378c213b4bd5d4374b97f3dbfd6083a3 + pristine_git_object: 194f4e1e4921fae82666c2aa33b8cb4bf461001a + src/models/operations/createinvoice.ts: + id: 6570c3cfdc88 + last_write_checksum: sha1:050892ff89ffdbfd33755a73ab23682004caddd7 + pristine_git_object: e188aee7d2e85fe4cb845b83b0e6c435823a2032 + src/models/operations/createinvoicepaymentintent.ts: + id: ac3594bff834 + last_write_checksum: sha1:eb93f14bf4e9298012b7ffffde111195ef078e86 + pristine_git_object: c501f7ef2d7e7e1e237e5951f6139af692e05c90 + src/models/operations/createtrackerentriesbulk.ts: + id: 8e4ddfbd2829 + last_write_checksum: sha1:53371d47f5b12891fd653cfb03e03e832b3358bf + pristine_git_object: 5e7ce70b3b296bc29af34e7814b5aa441be1a04e + src/models/operations/createtrackerentry.ts: + id: ecedf7afdc93 + last_write_checksum: sha1:f30f47a66cc0c0c90cced9d2f2b73b79ccd651fc + pristine_git_object: e7c400791f968ffea7c63f50e87500f0a195c1c0 + src/models/operations/createtrackerproject.ts: + id: 1ea91fcd1fa2 + last_write_checksum: sha1:9a5a97273bfcf5671b2f65d439e61ff951fbdd14 + pristine_git_object: 7392f7014d90ed6195aca7118d8a32d2accd8219 + src/models/operations/createtransaction.ts: + id: 16da9656c1db + last_write_checksum: sha1:d18e64ffc5bb1451afcf7aa75d344610fd476549 + pristine_git_object: 54ed8037b21baf14393b05b9dcf1748ce2bae706 + src/models/operations/createtransactions.ts: + id: cb33f3a61837 + last_write_checksum: sha1:fb7af1144a70594689c102bfd341197599c3a830 + pristine_git_object: 1df1448a2379bfc86ac9b19fdf924a0df40a33c6 + src/models/operations/deletebankaccount.ts: + id: fe3fc760306e + last_write_checksum: sha1:e4e40af65c456908b2292bbe8ee166519ca5dd51 + pristine_git_object: 69a4b021837770763820a75be5e11103d8c99238 + src/models/operations/deletecustomer.ts: + id: af7fa075e327 + last_write_checksum: sha1:a9a69fda1447e8cda43525f74f31fba27b891853 + pristine_git_object: 92e9a570a1235336e6d12278628078346f69efd2 + src/models/operations/deletedocument.ts: + id: eba2dec68b6f + last_write_checksum: sha1:9ac758870350a2380e17e33f9124ccf5ea8359f3 + pristine_git_object: 7c67eece3a36c2b3fb9e2a741cde7fd3270de13c + src/models/operations/deleteinboxitem.ts: + id: 8a3294f4720f + last_write_checksum: sha1:bdef6d042f26a3e338fe4c41ed0a7569131c977d + pristine_git_object: 7cd035754f68ecc0596e8a1de20de5359861641f + src/models/operations/deleteinvoice.ts: + id: dd011a36db6f + last_write_checksum: sha1:63a86b26c5359308e3d59ed2ac54bcabc7bd07ce + pristine_git_object: 53ba888b0cb63f48c78e514978ceb3f9a2d2b51b + src/models/operations/deletetag.ts: + id: ce95ee074b74 + last_write_checksum: sha1:ac5ad56ab64748ec1264e52bbc42a895e6ffbd38 + pristine_git_object: 49526e1c359661c1943b5123308fb74827ba5ae3 + src/models/operations/deletetrackerentry.ts: + id: 52933d18803d + last_write_checksum: sha1:35a6eec211c4354ec919849a9923322bfe37d16a + pristine_git_object: 7bb56199aa2a0971c67a6acc487998279e524fbb + src/models/operations/deletetrackerproject.ts: + id: ab145cdcfb31 + last_write_checksum: sha1:2bf1e8c7a05d545915c9a8cf037166c3aa5c5c9b + pristine_git_object: c57b8a1f1dce893f3e39289d737ac4d60c5ef109 + src/models/operations/deletetransaction.ts: + id: a610afac3644 + last_write_checksum: sha1:a609a729b7da55c7727eb7b37eb515de59305547 + pristine_git_object: 4f807c8d56f0cd219ad1af4ddbef75d6a034dea8 + src/models/operations/deletetransactions.ts: + id: 9abc05a13a23 + last_write_checksum: sha1:0af7077faf99fe237bf572b4e74e650f8ab95573 + pristine_git_object: d9a1e8bb5a9029aa140ef29fc81890303bc4135d + src/models/operations/disconnectstripe.ts: + id: 503988ec03f5 + last_write_checksum: sha1:19dba7c604408ac82ef59db880e5ca99ee63734b + pristine_git_object: 4b8ee7202f8cabfe6ac718257e01823fa459ecad + src/models/operations/downloadfile.ts: + id: 9b05a89305a0 + last_write_checksum: sha1:b6d5a4da503b4838b699ee68020e01c477a58778 + pristine_git_object: c25248286160235d7c3378283f1b76b2de279490 + src/models/operations/downloadinvoice.ts: + id: a33b418893e8 + last_write_checksum: sha1:190417d45f0d785ee2799c9c8d7857d885766146 + pristine_git_object: f688a753117ff13ff12a3d1dcfe315c55f73520e + src/models/operations/fortnoxoauthcallback.ts: + id: 2c483f9d63ca + last_write_checksum: sha1:410b1f30a3da7db0ac59f96cf48e7fe8aa25b5f8 + pristine_git_object: 9054ba687c125090964f6cd177937a9d3be4e4e2 + src/models/operations/getbankaccountbyid.ts: + id: 2d2e2af7af2f + last_write_checksum: sha1:9a266ab4c47bace3fc35e4df8fd5fdac30b4eb22 + pristine_git_object: 265895faa27b2e46ca6cd1505d82a981ad976860 + src/models/operations/getburnratereports.ts: + id: ece55a5a1c17 + last_write_checksum: sha1:9da34d2cd6f138d3f50b5ecbef79817e1db4f992 + pristine_git_object: c9a83c3b30add751526ca8d7bcf6a781a78dea94 + src/models/operations/getcurrenttimer.ts: + id: 628c330024cc + last_write_checksum: sha1:f93b614ad1f81f2aa5dbefb3b46418f8f63049f8 + pristine_git_object: 89ff907e50c54be1864d979f3c375e954a16d56c + src/models/operations/getcurrentuser.ts: + id: 2717bd354d1c + last_write_checksum: sha1:2e1f8de7014a402ce41d591be352c9672c5f000b + pristine_git_object: 5f7d662710163bacc52d2010f933ff5fc615d599 + src/models/operations/getcustomerbyid.ts: + id: 3171067e606b + last_write_checksum: sha1:5ba9685afe1b7b44f34550634d1c743bc9568397 + pristine_git_object: 54b868774dc88fefdc71ebb6b54d6f83b8e1b4d0 + src/models/operations/getdocumentbyid.ts: + id: 023c3fdb695d + last_write_checksum: sha1:8a0b72f4f8be8849e4c66f6b60ec08c1c30967a0 + pristine_git_object: a3831c443c7833982b3c4022f0cf9acd51b8bba5 + src/models/operations/getdocumentpresignedurl.ts: + id: 1f5f8225a8e7 + last_write_checksum: sha1:b588326b08ed555afd092931d91d545cd668889a + pristine_git_object: e6edb7a992fde3bc8d74c2a2faf81a5a24d88ed1 + src/models/operations/getexpensesreports.ts: + id: 441bb8b29320 + last_write_checksum: sha1:9a91c78a25e55887fa0dc859e4b8ce3a63021ad8 + pristine_git_object: ebd82d2a407c5b2862a5f425612475ef34bf35ab + src/models/operations/getfortnoxinstallurl.ts: + id: ba1b753a6385 + last_write_checksum: sha1:5e686fd30763d677a9dd5f0edb18bd6bd4260e0d + pristine_git_object: c601bf51db7abe8fe368a51ba9ec1fe3ef5178b4 + src/models/operations/getgmailinstallurl.ts: + id: 34baa4404cc5 + last_write_checksum: sha1:cc467eb75ba2b8d4aab68dee080210eea298dbf1 + pristine_git_object: c559a729f10dd6eecb7bf5ba0dd74783b279a5dd + src/models/operations/getinboxitembyid.ts: + id: 0d9630a436ed + last_write_checksum: sha1:95833e5432ca1d928aacdc5336f7467643a38482 + pristine_git_object: 943538ccb21f71de59b3df21addc3ddb081ecef0 + src/models/operations/getinboxpresignedurl.ts: + id: 017e40e2fc64 + last_write_checksum: sha1:3d74a3daf71eab67882ae9c4aec9e9bd3e8a850e + pristine_git_object: 2172d1f8bcb3c41226f0a418ecb0f1b4c84855db + src/models/operations/getinvoicebyid.ts: + id: 366b83912aa5 + last_write_checksum: sha1:809c7144f3feda57dddb8392d9e95d7f535f3894 + pristine_git_object: 4ae5378aa87e0d6394d412e1ae74f0ba245d6ca0 + src/models/operations/getinvoicespaymentstatus.ts: + id: 54fe96a84b5b + last_write_checksum: sha1:a2a9fe2a77db479b4541d4ac8cd2f27396f0ea05 + pristine_git_object: e51dc0ff7e8cedab00bd0b1f14662fd7ae9b77de + src/models/operations/getinvoicesummary.ts: + id: 2e1f036a1700 + last_write_checksum: sha1:cb39d4b3653629b02ff2178347b5512dff9cd8f8 + pristine_git_object: 55edb7bbd66dcc0241f2f502146daac451bb792f + src/models/operations/getoauthauthorization.ts: + id: 515f9cf5e240 + last_write_checksum: sha1:ca9af684fc4080670fc8a30eaa1009d070ecdb76 + pristine_git_object: a0f7fca633a692fbf29cacbf514d2199ac564582 + src/models/operations/getoutlookinstallurl.ts: + id: 0da6636c22d5 + last_write_checksum: sha1:7ab4a1e0bead02779ebf7dd884af80dad4ce36f9 + pristine_git_object: a0d9b2e9af25630c1af7b3c9267ba567b46d7905 + src/models/operations/getprofitreports.ts: + id: 6b367ca0a131 + last_write_checksum: sha1:03fdc029d9cabc8f5c04d0de009fb627d4324f43 + pristine_git_object: b59c05ab379f6c42b5c9f824f3b9734f8e480232 + src/models/operations/getquickbooksinstallurl.ts: + id: f1aa5079fe5b + last_write_checksum: sha1:e5d42521c92bdcfd4964980df548bbcf09d46bcf + pristine_git_object: ad81e406c9847d2632061dddff049ac5d1f45216 + src/models/operations/getrevenuereports.ts: + id: 075c2b5ad5c0 + last_write_checksum: sha1:f1bdf06270c9638ce14ed3f0627ea667554aec93 + pristine_git_object: 6b40539bca6ea63c77776a7257a20c56fd78339b + src/models/operations/getrunwayreports.ts: + id: 4c85bc4aab7e + last_write_checksum: sha1:1b0d2e41ac8657ba9ba28d9d1070ca1ece920bbd + pristine_git_object: 0e041d7b2c81a0624daedbd32d02503cd627ee2d + src/models/operations/getslackinstallurl.ts: + id: a51f6e3f17bd + last_write_checksum: sha1:e7e3f60fd6b9254996b6215d881ec1f053c85641 + pristine_git_object: 20dc12ee7d5e3be3cb5b0aca9fee04434407503b + src/models/operations/getspendingreports.ts: + id: 6804bae7f302 + last_write_checksum: sha1:caafa1c8c925dd2827179e5b83f5db2ec02187f0 + pristine_git_object: c59811c5fc2989d5856b4984deacc7b2bb2f183c + src/models/operations/getstripeconnectstatus.ts: + id: ac01bd551865 + last_write_checksum: sha1:72075779d5643f8d9f6bb4e4d1619fdf43d1f8b0 + pristine_git_object: 3a749c1d1ba7117c9547d6dd86baa7701a8bc5e0 + src/models/operations/getstripeconnecturl.ts: + id: 3b449a667d5b + last_write_checksum: sha1:ce57a99d46700ba51e3ca39b65c091ef11c5602f + pristine_git_object: a810b14eaec9ac1cad44fbe7b447e7f223d0f7e2 + src/models/operations/gettagbyid.ts: + id: 776459d72c62 + last_write_checksum: sha1:809ca8f92a8c1c0e176f3140c65ef0754f6bb58c + pristine_git_object: a9378f9ba2c7cf2e0b9e3ae9688d3ca6e6fd0a46 + src/models/operations/getteambyid.ts: + id: 5ecad27e84a1 + last_write_checksum: sha1:3c060fe7234cbca2e3c8019739614ab717e27a79 + pristine_git_object: e78521d5af94f8727e5b7102ae0084e87b05f3a5 + src/models/operations/gettimerstatus.ts: + id: 16ae17907a48 + last_write_checksum: sha1:47f3c60f4f74701bf056bb7a3fbeb0d6440f5c97 + pristine_git_object: 2eacd6f69aab02346cde042c93452d12602bfad7 + src/models/operations/gettrackerprojectbyid.ts: + id: 6446d07f5d78 + last_write_checksum: sha1:06267d474e2f27709e21d39b582b2ebce52b68fc + pristine_git_object: b980915f798249e37322f0edcafe92ba5b626e10 + src/models/operations/gettransactionattachmentpresignedurl.ts: + id: 58cf6bb96738 + last_write_checksum: sha1:7f71c46cb34ae116f0c81f8a67b8f39d6137e1d3 + pristine_git_object: 93ef725ee5b64c5f1cfef2f5193dea5dfe3829dd + src/models/operations/gettransactionbyid.ts: + id: 6948027a052a + last_write_checksum: sha1:0b3efb90e686528e7a15f202c40b0f0269ff1b08 + pristine_git_object: ef7f565b519889be51051baa9060035b4a446fe1 + src/models/operations/getxeroinstallurl.ts: + id: b5a9600e3f44 + last_write_checksum: sha1:53773e2f401caee244caf6470096532607b0dccd + pristine_git_object: 4170df6d678c87bc2ebf83115c7863ad5a9293f3 + src/models/operations/gmailoauthcallback.ts: + id: e64000985d05 + last_write_checksum: sha1:dc29223664b52e6885885c62fc5cb55c02329679 + pristine_git_object: 6a8bbf936c93265108dd5f38b623443187ef5477 + src/models/operations/inboxwebhook.ts: + id: 4fe72f7a8a43 + last_write_checksum: sha1:da4efd5ff9e65ec8a37e8142e25941c4c55b1a3e + pristine_git_object: 32918efb7ade54b0d9a773387ee34e7be2d7f27b + src/models/operations/index.ts: + id: 0d9ffaf774d2 + last_write_checksum: sha1:42882b09e44738958d0f0a839fd313e85e1fc227 + pristine_git_object: 2c6abf32be2ae72047b343d11199e96263e6fec0 + src/models/operations/listbankaccounts.ts: + id: f15b6049ca1a + last_write_checksum: sha1:f8b8d74f90021f57f5acb54e400f10dc429be2a9 + pristine_git_object: 37557d6a6c0b38616e3c4949639fb6c95ba311ea + src/models/operations/listcustomers.ts: + id: fa5992922803 + last_write_checksum: sha1:1a36266eb348d6b77556c32ece6741262909e821 + pristine_git_object: 6b3e62b9a9da347d6260da546e6b54b2bae92be7 + src/models/operations/listdocuments.ts: + id: d043af72bf36 + last_write_checksum: sha1:9b52faf34504f92107c860183038de9f51bd7e46 + pristine_git_object: 2b1a285cd95a48086490636711e2a9c941eb02f0 + src/models/operations/listinboxitems.ts: + id: a08c244f4ddc + last_write_checksum: sha1:1184e644f740184b0aa2d8f755aef3c887b69c0a + pristine_git_object: ece77e027eebf3e22108102d131d04f111c24006 + src/models/operations/listinvoices.ts: + id: b70c7995d94f + last_write_checksum: sha1:7e5314cc545d55f0cd7b25a6a729621e0b507d1a + pristine_git_object: 0e96875f8b5f56d36dfd0eb34f13dc1cc3d39cca + src/models/operations/listnotifications.ts: + id: b6d82e378f2a + last_write_checksum: sha1:db87a6a6f429c1866a0cd9dd93f901f5ee29bbfc + pristine_git_object: b6e18594d71fdfbc5f3d43cebc4d8e850f25dc10 + src/models/operations/listteammembers.ts: + id: 6eff85e1f331 + last_write_checksum: sha1:6881a02616c27a300680f745c019c8cc6534192c + pristine_git_object: 62a38e0c26a9edba5e5d5cb7c4ef17ed5a0647f4 + src/models/operations/listteams.ts: + id: deeec869d256 + last_write_checksum: sha1:f7dc5ae7377cc5021424aa24a05e893ad11b77b2 + pristine_git_object: cc3f0fa88bd551c4d3174e5adee73618c083e4ea + src/models/operations/listtrackerentries.ts: + id: 91e52dc149ff + last_write_checksum: sha1:8e929f082d55c35d9a0fa521bc0dff43b793dcb7 + pristine_git_object: 5a39c8ed71a957c9aa6a70b35bf367129ff0750b + src/models/operations/listtrackerprojects.ts: + id: 9e15d0d0bb7d + last_write_checksum: sha1:f6dff496736eebdbe9242dc2f553cdd73b18eca3 + pristine_git_object: 8fef9f2a1d4d12d0bfb1e8e62a9e4e019fa209c1 + src/models/operations/listtransactions.ts: + id: b08aad97cf23 + last_write_checksum: sha1:6bc85480ca5fc14c092d6d1ecf3bb994a52e2514 + pristine_git_object: f7d595e6d81703f2c15882d7002095dd8280c744 + src/models/operations/outlookoauthcallback.ts: + id: 540292b1c86c + last_write_checksum: sha1:40590d9604ab5fb6b335816efbc8ed0ad1784d67 + pristine_git_object: c838482c3abd3f88311ee25646cb95f460a3a542 + src/models/operations/postoauthauthorization.ts: + id: 25dbcd9a221f + last_write_checksum: sha1:928b6cff53b40748e793cb136bf585d7d5401b14 + pristine_git_object: 0f4997997e83b5ba78dd591f43fa6dd5574399f2 + src/models/operations/postoauthrevoke.ts: + id: a6bb5f2a3343 + last_write_checksum: sha1:ceee95327ba875a4e38c1f19dccd6ff521fb4ec0 + pristine_git_object: da771bf4d6f9be6034508d4b8ebf83305649e65d + src/models/operations/postoauthtoken.ts: + id: f9fa61344837 + last_write_checksum: sha1:ab79a27af571718e99c6cb5c335a0e60c19fb657 + pristine_git_object: 241ab6d897b49741c322f67d729a2e0f0bcc8666 + src/models/operations/proxyfile.ts: + id: 3729e7d9f522 + last_write_checksum: sha1:34f2b9faa39d1ba5567e7d85a57d85b5c85de2f4 + pristine_git_object: 2bd4237653724030d2f90c0e31614f47eae87be3 + src/models/operations/quickbooksoauthcallback.ts: + id: aef5aebebf45 + last_write_checksum: sha1:aa6afe6e146023392d41898e55a2464acc48b889 + pristine_git_object: fc8d0ff41b51e8d18a16d284c448a7b85a991de8 + src/models/operations/search.ts: + id: 02b424e0d71b + last_write_checksum: sha1:fd171df10b8b93e68dc8e8d2ff8795943489db2c + pristine_git_object: e983851fcdd900ef66e785a7ea72cd1a6d054901 + src/models/operations/slackinteractions.ts: + id: 469bc5e8b63c + last_write_checksum: sha1:b70284999fbd7e4adb9af180ebb6e57c002da5cf + pristine_git_object: c5263a3f0f42843ed0b9a634fd8e42c1e36ef1c1 + src/models/operations/slackoauthcallback.ts: + id: cc7bbca015ff + last_write_checksum: sha1:e13aee66b2affbbca0a4d6b66462b43cde286bf8 + pristine_git_object: 7ed31b5970a9adc3c419eb23190aa2e0342d392c + src/models/operations/slackwebhook.ts: + id: b90d720f6c50 + last_write_checksum: sha1:5124322839c9a5d921135efb4f848c9d701f76d6 + pristine_git_object: fbd94de6b9fe16fa1fcea9551cadf8a331d94e7f + src/models/operations/starttimer.ts: + id: 92964b889979 + last_write_checksum: sha1:4e573baf5498fdb15bc9d58272235a9fc6edaa98 + pristine_git_object: 1acb4b2b3d72c101df9d5549249c676211639758 + src/models/operations/stoptimer.ts: + id: 73cb9eba354a + last_write_checksum: sha1:fa6baf4f1556e21067e065c18253092196cdbdb6 + pristine_git_object: f1ea7fba2d78cbff91d3d6230d0a522b057a12b9 + src/models/operations/stripeconnectcallback.ts: + id: 0c8f5c201aa5 + last_write_checksum: sha1:b1d994f672c1f2028c897005d3a6d4d1ea22abe1 + pristine_git_object: ef91bcea0dc94a18463832d74d056ab8a60c1e9c + src/models/operations/stripewebhook.ts: + id: 758dc6f29cde + last_write_checksum: sha1:33c1bf0513e5810d0f7d7ef4de453ffe78091c1f + pristine_git_object: 3233da31c50fea9c64b068af8b306ab8c970471d + src/models/operations/updatebankaccount.ts: + id: 12c8ef95fdec + last_write_checksum: sha1:8eb34f861796254ef04323a2f626e019e00f761d + pristine_git_object: 051c038df36e19ec1af0914b28b1f4e0eefedef8 + src/models/operations/updatecurrentuser.ts: + id: 20d41a016fe8 + last_write_checksum: sha1:2eef582ef4d0d1b50ef7f158aa9bf137ca00d66e + pristine_git_object: 6d75be035bb012d3f83310e7d1c5659845f70562 + src/models/operations/updatecustomer.ts: + id: cabf2b7428c9 + last_write_checksum: sha1:6a16a9825eb168ff05da78a86da438b6e2f0c4df + pristine_git_object: 908b429ed11aaa27d1bc6f7ca881d82335f4b28e + src/models/operations/updateinboxitem.ts: + id: 80fbacc85492 + last_write_checksum: sha1:fc28b9c4928d0bf0bd26b33b236fa4f1b6c49a6f + pristine_git_object: f35204a1c2ea4116ba0bc9594277d8e1b8e22f3e + src/models/operations/updateinvoice.ts: + id: cf27a56125f7 + last_write_checksum: sha1:f4ef358c8e67ecc8b9cdd2b37cab6133ba8b23fe + pristine_git_object: 2f5ab95dad1c5b94a7fcfbeee2012bf5e761c176 + src/models/operations/updatenotificationstatus.ts: + id: a06eb2e029c7 + last_write_checksum: sha1:1e6c534337dbb9e3d39c2207ddf38945f80e1283 + pristine_git_object: befb0370febb47cc4c1faeae9964a14b84a87e00 + src/models/operations/updatetag.ts: + id: cb36a2a317e3 + last_write_checksum: sha1:40d968f199348cca2a9eb7967e5532529cc00ee3 + pristine_git_object: f8902b1806d152d9281aa5d9beec64cf732a8539 + src/models/operations/updateteambyid.ts: + id: 9a5a7139332e + last_write_checksum: sha1:37d8367fa20d89f4d4bb8bd9538ad253c488dcbe + pristine_git_object: 588a1b26e748bfaa4d8c43f849035bc832309094 + src/models/operations/updatetrackerentry.ts: + id: 144cfd52a2d1 + last_write_checksum: sha1:dc2016465659decbb8595ab7f7cd62ccbf432031 + pristine_git_object: 4443694906ab1974f8b48da450c58254abfd4bf4 + src/models/operations/updatetrackerproject.ts: + id: 53c56355a290 + last_write_checksum: sha1:c23841397f46bd3b67482b000a21afcd54d0c340 + pristine_git_object: 9b76c8525eafff64e4f30e19fb8204fc580e9ce4 + src/models/operations/updatetransaction.ts: + id: dc3697f32b4b + last_write_checksum: sha1:296e34b97fd32333bdb5d7a80acbc18253c98fde + pristine_git_object: 3e3b1c76265450abf8e25be1121c8e86d1e6e457 + src/models/operations/updatetransactions.ts: + id: 2e5cb08ca698 + last_write_checksum: sha1:e28e06a3b7143f6ce4e3bde49d0365f59ddba29f + pristine_git_object: 74230498e4f3e403913fbdcd301cc4d27c2dcc41 + src/models/operations/whatsappwebhook.ts: + id: e1292a4322fc + last_write_checksum: sha1:4ccd24f0a60894fcdb4b9738f4803d36b3e2b4c0 + pristine_git_object: 53e6d1fde6fee2dd265083d728139ce11fcb7b3e + src/models/operations/whatsappwebhookverify.ts: + id: edf88f9c4c98 + last_write_checksum: sha1:fa047bcbb3f472063d71edb27cf75eec0c8a30d8 + pristine_git_object: 33306477321d3b7a2f47d2cc882e7ff090d3fe9a + src/models/operations/xerooauthcallback.ts: + id: 6e00a93a4983 + last_write_checksum: sha1:2abd79a15cb13121898765d084d58255f3fb3778 + pristine_git_object: 603007836e495b1335faa886f87b116bdfe7c8e0 + src/models/profitcurrent.ts: + id: ec973720f2cd + last_write_checksum: sha1:15d276b59ffa4000893a9d1e386e9e4c14dcced9 + pristine_git_object: 80983762b83073a48e918e6103f8441b5aabfff4 + src/models/profitmeta.ts: + id: 7f80abd7f1cb + last_write_checksum: sha1:29548d7862dde409b8ad95f02c5b08cbb0ec34e8 + pristine_git_object: 3e143fdce1069620f19380f1c7ea694cb85b65d4 + src/models/profitpercentage.ts: + id: 07efdb8ba907 + last_write_checksum: sha1:d57502a9af4a7cbe65c48de90178317fee9bcdaf + pristine_git_object: 3f7400b1778094d009fb33a7860019bfafe67f3f + src/models/profitprevious.ts: + id: a964b8e3588a + last_write_checksum: sha1:cb45dda80fad8d82458ebcf094ecfd20bbb4c2a1 + pristine_git_object: f3ef6b28fab568431564ac7ed8c9abfdfa87d8a4 + src/models/profitresultitem.ts: + id: cd52720828c8 + last_write_checksum: sha1:f7e8668a0f7cab6c6212d63e3b0c35ceab2c6a2e + pristine_git_object: 8a2d65c2ac35247887b407b1f1547d38066e5e46 + src/models/profitsummary.ts: + id: cfa536f38f48 + last_write_checksum: sha1:964fcf75a989c3da445b8723bcef9ed0752aeca4 + pristine_git_object: 5c1a203f310950b68a8fd3ca613fc35eb165317f + src/models/revenuecurrent.ts: + id: f9aa5b49cdd1 + last_write_checksum: sha1:fd0a91e376ab43a5e23e4fc7cd0c995783b26c9d + pristine_git_object: c50fbdbf02fa73e823d21ed7e7f37815c8f2defc + src/models/revenuemeta.ts: + id: 2e0baff532a7 + last_write_checksum: sha1:92cbb60399f36869b8e1e7bb0669b70bba55eb7c + pristine_git_object: d3244ff2086ac4b41d8afa0c6ac697cf8d1f41a3 + src/models/revenuepercentage.ts: + id: 83125589304e + last_write_checksum: sha1:dbac02d87bc48398f72ac2414385eeca652344f7 + pristine_git_object: 1c94fd0a4dadfbc9beb08c96ef7ffb99a75e8883 + src/models/revenueprevious.ts: + id: b576ec1d836d + last_write_checksum: sha1:8c2fd41da42522910ab394e72343719470387e6f + pristine_git_object: e83a48e3617234d104fb3145d39c05d2d715475e + src/models/revenueresultitem.ts: + id: ad23ec122987 + last_write_checksum: sha1:fec9487072b343773de38332f582d1fcca478e26 + pristine_git_object: 9402885c15a581b9c68e084395e752f7f9ce96d6 + src/models/revenuesummary.ts: + id: d039ff25673e + last_write_checksum: sha1:71dffe003a2bb67d688186251e38609c008c51fb + pristine_git_object: 2a3e2a17269adb7d231a5c87eef59b3b839428d2 + src/models/security.ts: + id: d90c6c784ca5 + last_write_checksum: sha1:f16eb9257866df1815649b04883547dfdfc097cc + pristine_git_object: 606788e1d0df96d0c25dfa6d9902c3467d7c8c8b + src/models/spendingresultarray.ts: + id: ad4b8f5d858e + last_write_checksum: sha1:ae7379ba2cff2e2ca57b3bb74e3971216431328f + pristine_git_object: ca7b7b3b01393992996557b16ec18edece70144a + src/models/tagresponse.ts: + id: 362b50c4d0df + last_write_checksum: sha1:0f8af9434c32e55249b93db37fc8bbd969084395 + pristine_git_object: 8441371b7d84f69b8480a59efb2876a9da7f5c17 + src/models/tagsresponse.ts: + id: 57b8e432d59d + last_write_checksum: sha1:c681fde5cefe68a5b6b9800d49fb4151691fa527 + pristine_git_object: effc736cb6c2f54124cca16cb41051e124ff37d2 + src/models/trackerprojectresponse.ts: + id: d946e37a1951 + last_write_checksum: sha1:7e736efff356ee95f00b3123212526696792628d + pristine_git_object: 2a9e05f30121be4c19388d4449d7ca47a67257bc + src/models/trackerprojectsresponse.ts: + id: e4495a9ae4c1 + last_write_checksum: sha1:a1b1046f739cbf578299974945a43239fa20b2d7 + pristine_git_object: 71c757ca38d2b8d9fd6ff7188f0ce8ff9a73540a + src/models/transactionresponse.ts: + id: f293b6ef2c8f + last_write_checksum: sha1:5caa5b4a8ee56c0fab3437ab42db94c8786cc01a + pristine_git_object: f39cf29a78e689d7466e1ffe6580572e4cbba4bf + src/models/updateallnotificationsstatusresponseschema.ts: + id: b6becf279a09 + last_write_checksum: sha1:6fe09c8148db227a0f67b93f0b87d4d56b10848d + pristine_git_object: fefdde6eff20276f09e78ae128134829fc9bccd3 + src/models/updateallnotificationsstatusschema.ts: + id: 60b8d5d340d3 + last_write_checksum: sha1:7bcb94c674ec538399a89ab4b11a74038f371bb4 + pristine_git_object: 20c1218d3b8df6ff26f19cf5a7c9416264ee8f56 + src/sdk/bankaccounts.ts: + id: 0f1139473f13 + last_write_checksum: sha1:088db55cae5b2298eb89f18168638aab07e047fe + pristine_git_object: 98fcce85e098e69448b98c44e56aea3a4680dac5 + src/sdk/customers.ts: + id: d33e193e0c00 + last_write_checksum: sha1:7610168234b9abd60203b80b260dece637f77f6c + pristine_git_object: 2d58bff86681380dddce20fe0433f8413703a0ad + src/sdk/documents.ts: + id: 92260edceeea + last_write_checksum: sha1:1419201fa673c2c40362719d628366f198f1c2c3 + pristine_git_object: ea360e587e8008b764a6cf6ea1520a9d0bb2cda7 + src/sdk/files.ts: + id: bb9172f41ecb + last_write_checksum: sha1:0bac9b3e6b0802616a880887426f927ed8ea5eb1 + pristine_git_object: c519bab91bdbc408ce0207790d32143c7681c60e + src/sdk/inbox.ts: + id: 2b1b5c009c9e + last_write_checksum: sha1:fe1a2c39e876094da313115e315ee83ce32f01a6 + pristine_git_object: 0ffe964bc3f680ef21a04343a4b85fd31e699870 + src/sdk/index.ts: + id: a857902a703f + last_write_checksum: sha1:ed6d64f2a6135349aa8498b8d8cff9ba85c7fb8f + pristine_git_object: ecac2264817bb369ff2dbf0f0e9029807e67ff77 + src/sdk/integrations.ts: + id: eafed585af5a + last_write_checksum: sha1:c0846a18c9a86c6a4df4e9900eb03af2f378cb3b + pristine_git_object: cf101afa1d46f4d56a444d4da73f04e1e9b5cc32 + src/sdk/invoicepayments.ts: + id: 126f4999a1a7 + last_write_checksum: sha1:cd10dee4d3056ea8fd0f68499fbc760387c2db66 + pristine_git_object: 39432de125c63a7286b3ed2c2c561410c2f1d31e + src/sdk/invoices.ts: + id: b0baec52de2f + last_write_checksum: sha1:4e79876c6d77003d68cbefa512642b49a5dc4a11 + pristine_git_object: 8d2f193a29e4fe98109a431ae5f22397cfb0bcca + src/sdk/notifications.ts: + id: 3d0b195b882f + last_write_checksum: sha1:955d64b0ecb618063dcbc84dd9058de7c66a0756 + pristine_git_object: 7e4b8edb9e699304d33d4abb817bcd3cfcadcafe + src/sdk/oauth.ts: + id: 37b7f9b2970b + last_write_checksum: sha1:133c1572a1b7bda75203b799e5cccdc81f7a5139 + pristine_git_object: fae5d664de7f30d8833c829c2d823ac7d4189779 + src/sdk/reports.ts: + id: d7a2b074c686 + last_write_checksum: sha1:fd8718222b71d0d71f56eb872bc80ffd3e20439e + pristine_git_object: a87a0f34feb14de5a89ffaca4ad52fbfedf883d3 + src/sdk/sdk.ts: + id: 784571af2f69 + last_write_checksum: sha1:2584fef9ca4c6c082cb7aa17dd86ad08b2b16762 + pristine_git_object: 9763063c5894dea361d35d34616dab553fbd8648 + src/sdk/search.ts: + id: b88871d87236 + last_write_checksum: sha1:ad0834603dfb4bb68f5be982db902fc20f65b257 + pristine_git_object: bf6ece4dcb1ff0f29d36f41964c33ab1f524c1e4 + src/sdk/tags.ts: + id: b83eb1bf926f + last_write_checksum: sha1:1fc6f82caa7d28863d429d2e9a5d75cdbe47460c + pristine_git_object: 9497d7210265a9a726084b417f1368353e58576e + src/sdk/teams.ts: + id: 9ae565709e8f + last_write_checksum: sha1:f1000b618fcc4048f3a70aced14224e5975ff50f + pristine_git_object: 238239705cfeeee11ba080bf428c33cd7db42dd3 + src/sdk/trackerentries.ts: + id: e2a1e58e0d0c + last_write_checksum: sha1:2ec4c8d504177076390f4ede2e1fc452a6605986 + pristine_git_object: 864718fb93638c10502134e01fb70c0c1247fa72 + src/sdk/trackerprojects.ts: + id: b07bf8634264 + last_write_checksum: sha1:1a8f51e24d4513184d5bf38716aa069e85181597 + pristine_git_object: fe7ca0d2344fdc672055e5aa7803ca9bee0c3fac + src/sdk/trackertimer.ts: + id: 90e251b0e8b6 + last_write_checksum: sha1:b1493150223f6f5cd364faac47f74d22b7510e01 + pristine_git_object: 0c413bd5f048784fa0274cd90f77afb9902c236c + src/sdk/transactions.ts: + id: bcd7a9b32ed7 + last_write_checksum: sha1:3bcf112ab024b30adaad63cfd793c8bfa11a6d0d + pristine_git_object: 610f6439f8a06fc943d7f0351827ca1901355963 + src/sdk/users.ts: + id: 2df5828eed03 + last_write_checksum: sha1:27caa64fe60d3c8e6a40c850f37e342efb625736 + pristine_git_object: f011b305883c7e5dc81e0527dcb4fd7abb00b3e7 + src/sdk/webhooks.ts: + id: e879e17d0532 + last_write_checksum: sha1:3f01cc9e3bbd192d86e913eb3603b092ab443c5c + pristine_git_object: c0eff3f7a0b43feed440f37c367c54c0a1835988 + src/types/async.ts: + id: fac8da972f86 + last_write_checksum: sha1:3ff07b3feaf390ec1aeb18ff938e139c6c4a9585 + pristine_git_object: 689dba5de50e8769e5f3bb913e3f42a146d15bc1 + src/types/blobs.ts: + id: f8ab9b326c86 + last_write_checksum: sha1:cf45d78916671cb6345a11c97c633c64402bc27c + pristine_git_object: cce2892d4f573a120ef3907db90ab15f5979cfda + src/types/constdatetime.ts: + id: 0f7b6f513917 + last_write_checksum: sha1:dfaaf9adfaf49808bd4c9dea0039f21b7088d9c0 + pristine_git_object: fe62144eaf6a2054fc8ca9a98466e70f41b5434d + src/types/enums.ts: + id: 4d03ddfe5100 + last_write_checksum: sha1:ee590453d2c87e33e89c633d37ee46907eca0e58 + pristine_git_object: aba0ffd2a3308a31e516d83b52823d80aa65a8f9 + src/types/fp.ts: + id: ae9f0fb8aab6 + last_write_checksum: sha1:d24994d58f37a1ca106847fcc6d2e976c6f1c093 + pristine_git_object: ccbe51eac69dfb0da5131f14fd753c4b47c1d527 + src/types/index.ts: + id: cd7a0a5ed005 + last_write_checksum: sha1:bf43b3dccb960ca9ae9c5ab940da4786255881cd + pristine_git_object: abf0b7ab8f196829df8946da40d627a46da68e3c + src/types/operations.ts: + id: 314da01dca47 + last_write_checksum: sha1:c49e724cfb1259296381cb57bc0fcdd2eae45865 + pristine_git_object: beb81e10f0b9eee2ed398a853fe6f737b743f818 + src/types/rfcdate.ts: + id: 9eb64906dcd6 + last_write_checksum: sha1:8e5f382e02fe21c2f2e24deb1b7bbf8cddd3dd16 + pristine_git_object: c79b3f53a3dd922aa2ace5a4191c8652cf9a8e89 + src/types/streams.ts: + id: f99be9c4bf14 + last_write_checksum: sha1:cc9ced2dd34a76c3a1bd7784ccda1cc3b37ab9a9 + pristine_git_object: a0163e7a99cea88f21d0ad4ce3af1c720180ee20 + src/types/unrecognized.ts: + id: 476605c40716 + last_write_checksum: sha1:d33ac686528492f4cdc0dbf81ed343b4afe020fe + pristine_git_object: b7a2a13f3dff50663429df24ae2f55b647ff1084 + tsconfig.json: + id: 61ebb9fd6e8c + last_write_checksum: sha1:c3ec7996536cdb9a54319e7d1eb3b199b733d34c + pristine_git_object: 0ccdbe286a8780e06a469a9eb7e2fb95322fd507 examples: get_/v1/transactions: speakeasy-default-get-/v1-/transactions: @@ -1195,6 +3826,9 @@ examples: amountRange: [100, 1000] amount: ["150.75", "299.99"] type: "expense" + manual: "include" + exported: false + fulfilled: true responses: "200": application/json: {"meta": {"cursor": "eyJpZCI6IjQ1NiJ9", "hasPreviousPage": false, "hasNextPage": true}, "data": [{"id": "b3b7c8e2-1f2a-4c3d-9e4f-5a6b7c8d9e0f", "name": "Office Supplies Purchase", "amount": 150.75, "taxAmount": 15.07, "taxRate": 10, "taxType": "VAT", "currency": "USD", "counterpartyName": "Spotify AB", "date": "2024-05-01T12:00:00.000Z", "category": {"id": "office-supplies", "name": "Office Supplies", "color": "#FF5733", "taxRate": 10, "taxType": "VAT", "slug": "office-supplies"}, "status": "completed", "internal": false, "recurring": false, "manual": false, "frequency": "monthly", "isFulfilled": true, "note": "Paid with company credit card for office renovation", "account": {"id": "a43dc3a5-6925-4d91-ac9c-4c1a34bdb388", "name": "Company Credit Card", "currency": "USD", "connection": {"id": "a43dc3a5-6925-4d91-ac9c-4c1a34bdb388", "name": "Chase Bank", "logoUrl": "https://cdn.midday.ai/logos/chase-bank.png"}}, "tags": [{"id": "b7e2f8c1-3d4a-4e2b-9f1a-2c3d4e5f6a7b", "name": "invoice"}, {"id": "c8e2f8c1-3d4a-4e2b-9f1a-2c3d4e5f6a7c", "name": "travel"}], "attachments": [{"id": "b7e2f8c1-3d4a-4e2b-9f1a-2c3d4e5f6a7b", "path": ["e1f2d3c4-b5a6-7d8e-9f0a-1b2c3d4e5f6a", "transactions", "9a8b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d", "receipt.pdf"], "size": 1928716, "type": "application/pdf", "filename": "receipt.pdf"}]}, {"id": "b3b7c8e2-1f2a-4c3d-9e4f-5a6b7c8d9e0f", "name": "Office Supplies Purchase", "amount": 150.75, "taxAmount": 15.07, "taxRate": 10, "taxType": "VAT", "currency": "USD", "counterpartyName": "Spotify AB", "date": "2024-05-01T12:00:00.000Z", "category": {"id": "office-supplies", "name": "Office Supplies", "color": "#FF5733", "taxRate": 10, "taxType": "VAT", "slug": "office-supplies"}, "status": "completed", "internal": false, "recurring": false, "manual": false, "frequency": "monthly", "isFulfilled": true, "note": "Paid with company credit card for office renovation", "account": {"id": "a43dc3a5-6925-4d91-ac9c-4c1a34bdb388", "name": "Company Credit Card", "currency": "USD", "connection": {"id": "a43dc3a5-6925-4d91-ac9c-4c1a34bdb388", "name": "Chase Bank", "logoUrl": "https://cdn.midday.ai/logos/chase-bank.png"}}, "tags": [{"id": "b7e2f8c1-3d4a-4e2b-9f1a-2c3d4e5f6a7b", "name": "invoice"}, {"id": "c8e2f8c1-3d4a-4e2b-9f1a-2c3d4e5f6a7c", "name": "travel"}], "attachments": [{"id": "b7e2f8c1-3d4a-4e2b-9f1a-2c3d4e5f6a7b", "path": ["e1f2d3c4-b5a6-7d8e-9f0a-1b2c3d4e5f6a", "transactions", "9a8b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d", "receipt.pdf"], "size": 1928716, "type": "application/pdf", "filename": "receipt.pdf"}]}, {"id": "b3b7c8e2-1f2a-4c3d-9e4f-5a6b7c8d9e0f", "name": "Office Supplies Purchase", "amount": 150.75, "taxAmount": 15.07, "taxRate": 10, "taxType": "VAT", "currency": "USD", "counterpartyName": "Spotify AB", "date": "2024-05-01T12:00:00.000Z", "category": {"id": "office-supplies", "name": "Office Supplies", "color": "#FF5733", "taxRate": 10, "taxType": "VAT", "slug": "office-supplies"}, "status": "completed", "internal": false, "recurring": false, "manual": false, "frequency": "monthly", "isFulfilled": true, "note": "Paid with company credit card for office renovation", "account": {"id": "a43dc3a5-6925-4d91-ac9c-4c1a34bdb388", "name": "Company Credit Card", "currency": "USD", "connection": {"id": "a43dc3a5-6925-4d91-ac9c-4c1a34bdb388", "name": "Chase Bank", "logoUrl": "https://cdn.midday.ai/logos/chase-bank.png"}}, "tags": [{"id": "b7e2f8c1-3d4a-4e2b-9f1a-2c3d4e5f6a7b", "name": "invoice"}, {"id": "c8e2f8c1-3d4a-4e2b-9f1a-2c3d4e5f6a7c", "name": "travel"}], "attachments": [{"id": "b7e2f8c1-3d4a-4e2b-9f1a-2c3d4e5f6a7b", "path": ["e1f2d3c4-b5a6-7d8e-9f0a-1b2c3d4e5f6a", "transactions", "9a8b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d", "receipt.pdf"], "size": 1928716, "type": "application/pdf", "filename": "receipt.pdf"}]}]} @@ -1261,7 +3895,7 @@ examples: path: id: "123e4567-e89b-12d3-a456-426614174000" requestBody: - application/json: {"name": "Acme Corporation", "email": "team@acme.com", "logoUrl": "https://cdn.midday.ai/logos/acme-corp.png", "baseCurrency": "USD", "countryCode": "US"} + application/json: {"name": "Acme Corporation", "email": "team@acme.com", "logoUrl": "https://cdn.midday.ai/logos/acme-corp.png", "baseCurrency": "USD", "countryCode": "US", "fiscalYearStartMonth": 4} responses: "200": application/json: {"id": "123e4567-e89b-12d3-a456-426614174000", "name": "Acme Corporation", "logoUrl": "https://cdn.midday.ai/logos/acme-corp.png", "plan": "pro"} @@ -1277,14 +3911,14 @@ examples: speakeasy-default-get-current-user: responses: "200": - application/json: {"id": "123e4567-e89b-12d3-a456-426614174000", "fullName": "Jane Doe", "email": "jane.doe@acme.com", "avatarUrl": "https://cdn.midday.ai/avatars/jane-doe.jpg", "locale": "en-US", "weekStartsOnMonday": true, "timezone": "America/New_York", "timezoneAutoSync": true, "timeFormat": 24, "dateFormat": "yyyy-MM-dd", "team": {"id": "123e4567-e89b-12d3-a456-426614174000", "name": "Acme Corporation", "logoUrl": "https://cdn.midday.ai/logos/acme-corp.png", "plan": "pro"}} + application/json: {"id": "123e4567-e89b-12d3-a456-426614174000", "fullName": "Jane Doe", "email": "jane.doe@acme.com", "avatarUrl": "https://cdn.midday.ai/avatars/jane-doe.jpg", "locale": "en-US", "weekStartsOnMonday": true, "timezone": "America/New_York", "timezoneAutoSync": true, "timeFormat": 24, "dateFormat": "yyyy-MM-dd", "fileKey": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0ZWFtSWQiOiIxMjM0NTY3OC05YWJjLWRlZmctMTIzNC01Njc4OTBhYmNkZWYifQ.signature", "team": {"id": "123e4567-e89b-12d3-a456-426614174000", "name": "Acme Corporation", "logoUrl": "https://cdn.midday.ai/logos/acme-corp.png", "plan": "pro"}} updateCurrentUser: speakeasy-default-update-current-user: requestBody: application/json: {"fullName": "Jane Doe", "teamId": "team-abc123", "email": "jane.doe@acme.com", "avatarUrl": "https://cdn.midday.ai/avatars/jane-doe.jpg", "locale": "en-US", "weekStartsOnMonday": true, "timezone": "America/New_York", "timezoneAutoSync": true, "timeFormat": 24, "dateFormat": "yyyy-MM-dd"} responses: "200": - application/json: {"id": "123e4567-e89b-12d3-a456-426614174000", "fullName": "Jane Doe", "email": "jane.doe@acme.com", "avatarUrl": "https://cdn.midday.ai/avatars/jane-doe.jpg", "locale": "en-US", "weekStartsOnMonday": true, "timezone": "America/New_York", "timezoneAutoSync": true, "timeFormat": 24, "dateFormat": "yyyy-MM-dd", "team": {"id": "123e4567-e89b-12d3-a456-426614174000", "name": "Acme Corporation", "logoUrl": "https://cdn.midday.ai/logos/acme-corp.png", "plan": "pro"}} + application/json: {"id": "123e4567-e89b-12d3-a456-426614174000", "fullName": "Jane Doe", "email": "jane.doe@acme.com", "avatarUrl": "https://cdn.midday.ai/avatars/jane-doe.jpg", "locale": "en-US", "weekStartsOnMonday": true, "timezone": "America/New_York", "timezoneAutoSync": true, "timeFormat": 24, "dateFormat": "yyyy-MM-dd", "fileKey": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0ZWFtSWQiOiIxMjM0NTY3OC05YWJjLWRlZmctMTIzNC01Njc4OTBhYmNkZWYifQ.signature", "team": {"id": "123e4567-e89b-12d3-a456-426614174000", "name": "Acme Corporation", "logoUrl": "https://cdn.midday.ai/logos/acme-corp.png", "plan": "pro"}} listCustomers: speakeasy-default-list-customers: parameters: @@ -1378,7 +4012,7 @@ examples: application/json: {"name": "Important"} responses: "201": - application/json: {"data": [{"id": "b3b7c8e2-1f2a-4c3d-9e4f-5a6b7c8d9e0f", "name": "Important"}]} + application/json: {"id": "b3b7c8e2-1f2a-4c3d-9e4f-5a6b7c8d9e0f", "name": "Important"} getTagById: speakeasy-default-get-tag-by-id: parameters: @@ -1485,9 +4119,10 @@ examples: parameters: query: status: "paid" + statuses: ["draft", "unpaid"] responses: "200": - application/json: [{"currency": "SEK", "totalAmount": 224171.25, "invoiceCount": 15}] + application/json: {"currency": "USD", "totalAmount": 224171.25, "invoiceCount": 15, "breakdown": [{"currency": "EUR", "originalAmount": 15000.5, "convertedAmount": 16250.75, "count": 5}, {"currency": "GBP", "originalAmount": 8000.25, "convertedAmount": 9200.5, "count": 3}]} getInvoiceById: speakeasy-default-get-invoice-by-id: parameters: @@ -1784,6 +4419,7 @@ examples: from: "2023-01-01" to: "2023-12-31" currency: "USD" + revenueType: "net" responses: "200": application/json: {"summary": {"currentTotal": 10000, "prevTotal": 8000, "currency": "USD"}, "meta": {"type": "revenue", "currency": "USD"}, "result": []} @@ -1794,6 +4430,7 @@ examples: from: "2023-01-01" to: "2023-12-31" currency: "USD" + revenueType: "net" responses: "200": application/json: {"summary": {"currentTotal": 10000, "prevTotal": 8000, "currency": "USD"}, "meta": {"type": "profit", "currency": "USD"}, "result": [{"date": "2023-01-31", "percentage": {"value": 25, "status": "positive"}, "current": {"date": "2023-01-31", "value": 1000, "currency": "USD"}, "previous": {"date": "2022-01-31", "value": 800, "currency": "USD"}}]} @@ -1836,85 +4473,948 @@ examples: currency: "USD" responses: "200": - application/json: [{"name": "Taxes", "slug": "taxes", "amount": -1256445, "currency": "SEK", "color": "#8492A6", "percentage": 44}] - getTransactionAttachmentPreSignedUrl: - speakeasy-default-get-transaction-attachment-pre-signed-url: + application/json: [{"name": "Taxes", "slug": "taxes", "amount": -1256445, "currency": "SEK", "color": "#8492A6", "percentage": 44}] + getTransactionAttachmentPreSignedUrl: + speakeasy-default-get-transaction-attachment-pre-signed-url: + parameters: + path: + transactionId: "b3b7c1e2-4c2a-4e7a-9c1a-2b7c1e24c2a4" + attachmentId: "a43dc3a5-6925-4d91-ac9c-4c1a34bdb388" + query: + download: true + responses: + "200": + application/json: {"url": "https://service.midday.ai/storage/v1/object/sign/vault/transactions/receipt.pdf?token=abc123&expires=1640995200", "expiresAt": "2024-04-15T10:01:00.000Z", "fileName": "receipt.pdf"} + "400": + application/json: {"error": ""} + "404": + application/json: {"error": ""} + "500": + application/json: {"error": ""} + getDocumentPreSignedUrl: + speakeasy-default-get-document-pre-signed-url: + parameters: + path: + id: "b3b7c1e2-4c2a-4e7a-9c1a-2b7c1e24c2a4" + query: + download: true + responses: + "200": + application/json: {"url": "https://service.midday.ai/storage/v1/object/sign/vault/documents/2024/invoice.pdf?token=abc123&expires=1640995200", "expiresAt": "2024-04-15T10:01:00.000Z", "fileName": "invoice-april-2024.pdf"} + "400": + application/json: {"error": ""} + "404": + application/json: {"error": ""} + "500": + application/json: {"error": ""} + getInboxPreSignedUrl: + speakeasy-default-get-inbox-pre-signed-url: + parameters: + path: + id: "b3b7c1e2-4c2a-4e7a-9c1a-2b7c1e24c2a4" + query: + download: true + responses: + "200": + application/json: {"url": "https://service.midday.ai/storage/v1/object/sign/vault/inbox/document.pdf?token=abc123&expires=1640995200", "expiresAt": "2024-04-15T10:01:00.000Z", "fileName": "invoice.pdf"} + "400": + application/json: {"error": ""} + "404": + application/json: {"error": ""} + "500": + application/json: {"error": ""} + createInvoice: + speakeasy-default-create-invoice: + requestBody: + application/json: {"template": {"customerLabel": "Bill To", "title": "Invoice", "fromLabel": "From", "invoiceNoLabel": "Invoice #", "issueDateLabel": "Issue Date", "dueDateLabel": "Due Date", "descriptionLabel": "Description", "priceLabel": "Rate", "quantityLabel": "Qty", "totalLabel": "Amount", "totalSummaryLabel": "Total", "vatLabel": "VAT", "taxLabel": "Sales Tax", "discountLabel": "Discount", "timezone": "America/Los_Angeles", "paymentLabel": "Payment Information", "noteLabel": "Notes", "logoUrl": "https://example.com/logo.png", "currency": "USD", "dateFormat": "MM/dd/yyyy", "includeVat": false, "includeTax": true, "includeDiscount": false, "includeDecimals": true, "includePdf": true, "sendCopy": true, "includeUnits": true, "includeQr": false, "taxRate": 8.5, "vatRate": 0, "size": "letter", "deliveryType": "create", "locale": "en-US", "paymentDetails": {}, "fromDetails": {}}, "fromDetails": {}, "customerId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "paymentDetails": {}, "noteDetails": {}, "dueDate": "2024-07-15T23:59:59.000Z", "issueDate": "2024-06-15T00:00:00.000Z", "invoiceNumber": "INV-2024-001", "logoUrl": "https://example.com/logo.png", "tax": 85, "topBlock": {}, "bottomBlock": {}, "amount": 1085, "lineItems": [{"quantity": 40, "price": 75, "tax": 8.5, "name": {}}, {"quantity": 20, "price": 50, "tax": 8.5, "name": {}}], "deliveryType": "create", "scheduledAt": "2024-07-01T09:00:00.000Z"} + responses: + "201": + application/json: {"id": "b3b7e6e2-8c2a-4e2a-9b1a-2e4b5c6d7f8a", "status": "draft", "createdAt": "2024-06-01T07:00:00.000Z", "updatedAt": "2024-06-01T07:00:00.000Z", "pdfUrl": "https://app.midday.ai/api/download/invoice?token=eyJ...", "previewUrl": "https://app.midday.ai/i/eyJ..."} + "400": + application/json: {"message": "scheduledAt is required for scheduled delivery"} + "404": + application/json: {"message": "Customer not found"} + "409": + application/json: {"message": "Invoice number 'INV-2024-001' is already used. Please provide a different invoice number or omit it to auto-generate one."} + "500": + application/json: {"message": "Failed to create invoice"} + updateInvoice: + speakeasy-default-update-invoice: + parameters: + path: + id: "" + requestBody: + application/json: {"status": "paid", "paidAt": "2024-06-15T12:00:00.000Z", "internalNote": "Payment received via bank transfer"} + responses: + "200": + application/json: {"id": "b3b7e6e2-8c2a-4e2a-9b1a-2e4b5c6d7f8a", "status": "paid", "dueDate": "2024-06-30T23:59:59.000Z", "issueDate": "2024-06-01T00:00:00.000Z", "invoiceNumber": "INV-2024-001", "amount": 1500.75, "currency": "USD", "customer": {"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "name": "Acme Corporation", "website": "https://acme.com", "email": "info@acme.com"}, "paidAt": "2024-06-15T12:00:00.000Z", "reminderSentAt": "2024-06-10T09:00:00.000Z", "note": "Thank you for your business.", "vat": 120, "tax": 80, "discount": 50, "subtotal": 1400, "viewedAt": "2024-06-05T14:30:00.000Z", "customerName": "Acme Corporation", "sentTo": "billing@acme.com", "sentAt": "2024-06-02T08:00:00.000Z", "createdAt": "2024-06-01T07:00:00.000Z", "updatedAt": "2024-06-15T10:00:00.000Z", "pdfUrl": "https://app.midday.ai/api/download/invoice?token=eef58951-1682-4062-b010-425866032390", "previewUrl": "https://app.midday.ai/i/eef58951-1682-4062-b010-425866032390"} + inboxWebhook: + speakeasy-default-inbox-webhook: + responses: + "200": + application/json: {"success": true} + "400": + application/json: {"error": ""} + "500": + application/json: {"error": ""} + whatsappWebhookVerify: + speakeasy-default-whatsapp-webhook-verify: + parameters: + query: + hub.mode: "" + hub.verify_token: "" + hub.challenge: "" + responses: + "200": + text/plain: "" + whatsappWebhook: + speakeasy-default-whatsapp-webhook: + responses: + "200": + application/json: {"success": false} + stripeWebhook: + speakeasy-default-stripe-webhook: + responses: + "200": + application/json: {"received": true} + proxyFile: + speakeasy-default-proxy-file: parameters: - path: - transactionId: "b3b7c1e2-4c2a-4e7a-9c1a-2b7c1e24c2a4" - attachmentId: "a43dc3a5-6925-4d91-ac9c-4c1a34bdb388" query: - download: true + filePath: "vault/documents/2024/invoice.pdf" + fk: "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6" responses: "200": - application/json: {"url": "https://service.midday.ai/storage/v1/object/sign/vault/transactions/receipt.pdf?token=abc123&expires=1640995200", "expiresAt": "2024-04-15T10:01:00.000Z", "fileName": "receipt.pdf"} + application/octet-stream: "x-file: example.file" "400": application/json: {"error": ""} "404": application/json: {"error": ""} "500": application/json: {"error": ""} - getDocumentPreSignedUrl: - speakeasy-default-get-document-pre-signed-url: + downloadFile: + speakeasy-default-download-file: parameters: - path: - id: "b3b7c1e2-4c2a-4e7a-9c1a-2b7c1e24c2a4" query: - download: true + path: "vault/documents/2024/invoice.pdf" + filename: "invoice.pdf" + fk: "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6" responses: "200": - application/json: {"url": "https://service.midday.ai/storage/v1/object/sign/vault/documents/2024/invoice.pdf?token=abc123&expires=1640995200", "expiresAt": "2024-04-15T10:01:00.000Z", "fileName": "invoice-april-2024.pdf"} + application/octet-stream: "x-file: example.file" "400": application/json: {"error": ""} + "401": + application/json: {"error": ""} "404": application/json: {"error": ""} "500": application/json: {"error": ""} - getInboxPreSignedUrl: - speakeasy-default-get-inbox-pre-signed-url: + downloadInvoice: + speakeasy-default-download-invoice: parameters: - path: - id: "b3b7c1e2-4c2a-4e7a-9c1a-2b7c1e24c2a4" query: - download: true + id: "b3b7c1e2-4c2a-4e7a-9c1a-2b7c1e24c2a4" + fk: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." + token: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." + preview: false responses: "200": - application/json: {"url": "https://service.midday.ai/storage/v1/object/sign/vault/inbox/document.pdf?token=abc123&expires=1640995200", "expiresAt": "2024-04-15T10:01:00.000Z", "fileName": "invoice.pdf"} + application/pdf: "x-file: example.file" "400": application/json: {"error": ""} + "401": + application/json: {"error": ""} "404": application/json: {"error": ""} "500": application/json: {"error": ""} - createInvoice: - speakeasy-default-create-invoice: - requestBody: - application/json: {"template": {"customerLabel": "Bill To", "title": "Invoice", "fromLabel": "From", "invoiceNoLabel": "Invoice #", "issueDateLabel": "Issue Date", "dueDateLabel": "Due Date", "descriptionLabel": "Description", "priceLabel": "Rate", "quantityLabel": "Qty", "totalLabel": "Amount", "totalSummaryLabel": "Total", "vatLabel": "VAT", "taxLabel": "Sales Tax", "discountLabel": "Discount", "timezone": "America/Los_Angeles", "paymentLabel": "Payment Information", "noteLabel": "Notes", "logoUrl": "https://example.com/logo.png", "currency": "USD", "dateFormat": "MM/dd/yyyy", "includeVat": false, "includeTax": true, "includeDiscount": false, "includeDecimals": true, "includePdf": true, "sendCopy": true, "includeUnits": true, "includeQr": false, "taxRate": 8.5, "vatRate": 0, "size": "letter", "deliveryType": "create", "locale": "en-US", "paymentDetails": {}, "fromDetails": {}}, "fromDetails": {}, "customerId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "paymentDetails": {}, "noteDetails": {}, "dueDate": "2024-07-15T23:59:59.000Z", "issueDate": "2024-06-15T00:00:00.000Z", "invoiceNumber": "INV-2024-001", "logoUrl": "https://example.com/logo.png", "tax": 85, "topBlock": {}, "bottomBlock": {}, "amount": 1085, "lineItems": [{"quantity": 40, "price": 75, "tax": 8.5, "name": {}}, {"quantity": 20, "price": 50, "tax": 8.5, "name": {}}], "deliveryType": "create", "scheduledAt": "2024-07-01T09:00:00.000Z"} + slackOAuthCallback: + speakeasy-default-slack-O-auth-callback: + parameters: + query: + code: "" + state: "North Carolina" responses: - "201": - application/json: {"id": "b3b7e6e2-8c2a-4e2a-9b1a-2e4b5c6d7f8a", "status": "draft", "createdAt": "2024-06-01T07:00:00.000Z", "updatedAt": "2024-06-01T07:00:00.000Z", "pdfUrl": "https://app.midday.ai/api/download/invoice?token=eyJ...", "previewUrl": "https://app.midday.ai/i/eyJ..."} "400": - application/json: {"message": "scheduledAt is required for scheduled delivery"} - "404": - application/json: {"message": "Customer not found"} - "409": - application/json: {"message": "Invoice number 'INV-2024-001' is already used. Please provide a different invoice number or omit it to auto-generate one."} + application/json: {"error": ""} "500": - application/json: {"message": "Failed to create invoice"} - updateInvoice: - speakeasy-default-update-invoice: + application/json: {"error": ""} + getSlackInstallUrl: + speakeasy-default-get-slack-install-url: + responses: + "200": + application/json: {"url": "https://difficult-hawk.name/"} + slackWebhook: + speakeasy-default-slack-webhook: + responses: + "200": + application/json: {} + slackInteractions: + speakeasy-default-slack-interactions: + responses: + "200": + application/json: {"ok": false} + gmailOAuthCallback: + speakeasy-default-gmail-O-auth-callback: parameters: - path: - id: "" - requestBody: - application/json: {"status": "paid", "paidAt": "2024-06-15T12:00:00.000Z", "internalNote": "Payment received via bank transfer"} + query: + state: "Delaware" + responses: + "400": + application/json: {"error": ""} + "500": + application/json: {"error": ""} + getGmailInstallUrl: + speakeasy-default-get-gmail-install-url: responses: "200": - application/json: {"id": "b3b7e6e2-8c2a-4e2a-9b1a-2e4b5c6d7f8a", "status": "paid", "dueDate": "2024-06-30T23:59:59.000Z", "issueDate": "2024-06-01T00:00:00.000Z", "invoiceNumber": "INV-2024-001", "amount": 1500.75, "currency": "USD", "customer": {"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "name": "Acme Corporation", "website": "https://acme.com", "email": "info@acme.com"}, "paidAt": "2024-06-15T12:00:00.000Z", "reminderSentAt": "2024-06-10T09:00:00.000Z", "note": "Thank you for your business.", "vat": 120, "tax": 80, "discount": 50, "subtotal": 1400, "viewedAt": "2024-06-05T14:30:00.000Z", "customerName": "Acme Corporation", "sentTo": "billing@acme.com", "sentAt": "2024-06-02T08:00:00.000Z", "createdAt": "2024-06-01T07:00:00.000Z", "updatedAt": "2024-06-15T10:00:00.000Z", "pdfUrl": "https://app.midday.ai/api/download/invoice?token=eef58951-1682-4062-b010-425866032390", "previewUrl": "https://app.midday.ai/i/eef58951-1682-4062-b010-425866032390"} + application/json: {"url": "https://finished-laughter.info"} + outlookOAuthCallback: + speakeasy-default-outlook-O-auth-callback: + parameters: + query: + state: "New Hampshire" + responses: + "400": + application/json: {"error": ""} + "500": + application/json: {"error": ""} + getOutlookInstallUrl: + speakeasy-default-get-outlook-install-url: + responses: + "200": + application/json: {"url": "https://electric-soybean.net"} + xeroOAuthCallback: + speakeasy-default-xero-O-auth-callback: + parameters: + query: + state: "Maryland" + getXeroInstallUrl: + speakeasy-default-get-xero-install-url: + responses: + "200": + application/json: {"url": "https://insecure-iridescence.com"} + quickBooksOAuthCallback: + speakeasy-default-quick-books-O-auth-callback: + parameters: + query: + state: "Georgia" + getQuickBooksInstallUrl: + speakeasy-default-get-quick-books-install-url: + responses: + "200": + application/json: {"url": "https://wise-arcade.com/"} + fortnoxOAuthCallback: + speakeasy-default-fortnox-O-auth-callback: + parameters: + query: + state: "South Dakota" + getFortnoxInstallUrl: + speakeasy-default-get-fortnox-install-url: + responses: + "200": + application/json: {"url": "https://uncomfortable-puppet.com"} + getStripeConnectUrl: + speakeasy-default-get-stripe-connect-url: + responses: + "200": + application/json: {"url": "https://immaculate-pigpen.name"} + stripeConnectCallback: + speakeasy-default-stripe-connect-callback: + parameters: + query: + state: "California" + disconnectStripe: + speakeasy-default-disconnect-stripe: + responses: + "200": + application/json: {"success": false} + createInvoicePaymentIntent: + speakeasy-default-create-invoice-payment-intent: + responses: + "200": + application/json: {"clientSecret": "", "amount": 9036.31, "currency": "Balboa", "stripeAccountId": ""} + getStripeConnectStatus: + speakeasy-default-get-stripe-connect-status: + responses: + "200": + application/json: {"connected": true, "status": "", "stripeAccountId": ""} examplesVersion: 1.0.2 generatedTests: {} -releaseNotes: | - ## Typescript SDK Changes Detected: - * `midday.invoices.list()`: `response.data.[].customer` **Changed** **Breaking** :warning: - * `midday.invoices.get()`: `response.customer` **Changed** **Breaking** :warning: - * `midday.invoices.update()`: `response.customer` **Changed** **Breaking** :warning: +releaseNotes: "## Typescript SDK Changes:\n* `midday.tags.create()`: `response` **Changed** **Breaking** :warning:\n* `midday.trackerTimer.getCurrentTimer()`: `response.data.stop` **Changed** **Breaking** :warning:\n* `midday.trackerTimer.stopTimer()`: `response.data.stop` **Changed** **Breaking** :warning:\n* `midday.trackerTimer.startTimer()`: `response.data.stop` **Changed** **Breaking** :warning:\n* `midday.invoices.summary()`: \n * `request` **Changed** **Breaking** :warning:\n * `response` **Changed** **Breaking** :warning:\n* `midday.integrations.getFortnoxInstallUrl()`: **Added**\n* `midday.invoicePayments.stripeConnectCallback()`: **Added**\n* `midday.integrations.slackOAuthCallback()`: **Added**\n* `midday.integrations.getSlackInstallUrl()`: **Added**\n* `midday.integrations.slackWebhook()`: **Added**\n* `midday.integrations.slackInteractions()`: **Added**\n* `midday.integrations.gmailOAuthCallback()`: **Added**\n* `midday.integrations.getGmailInstallUrl()`: **Added**\n* `midday.integrations.outlookOAuthCallback()`: **Added**\n* `midday.integrations.getOutlookInstallUrl()`: **Added**\n* `midday.integrations.xeroOAuthCallback()`: **Added**\n* `midday.integrations.getXeroInstallUrl()`: **Added**\n* `midday.integrations.quickBooksOAuthCallback()`: **Added**\n* `midday.integrations.getQuickBooksInstallUrl()`: **Added**\n* `midday.integrations.fortnoxOAuthCallback()`: **Added**\n* `midday.webhooks.inboxWebhook()`: **Added**\n* `midday.invoicePayments.getStripeConnectUrl()`: **Added**\n* `midday.files.downloadInvoice()`: **Added**\n* `midday.invoicePayments.disconnectStripe()`: **Added**\n* `midday.invoicePayments.createInvoicePaymentIntent()`: **Added**\n* `midday.invoicePayments.getStripeConnectStatus()`: **Added**\n* `midday.transactions.list()`: `request` **Changed**\n* `midday.transactions.update()`: \n * `request.requestBody` **Changed**\n* `midday.teams.update()`: \n * `request.requestBody` **Changed**\n* `midday.users.get()`: `response.filekey` **Added**\n* `midday.users.update()`: `response.filekey` **Added**\n* `midday.files.downloadFile()`: **Added**\n* `midday.inbox.list()`: `request` **Changed**\n* `midday.invoices.create()`: `request` **Changed**\n* `midday.files.proxy()`: **Added**\n* `midday.reports.revenue()`: \n * `request.revenueType` **Added**\n* `midday.reports.profit()`: \n * `request.revenueType` **Added**\n* `midday.webhooks.stripeWebhook()`: **Added**\n* `midday.webhooks.whatsappWebhook()`: **Added**\n* `midday.webhooks.whatsappWebhookVerify()`: **Added**\n" +generatedFiles: + - .devcontainer/README.md + - .devcontainer/devcontainer.json + - .devcontainer/setup.sh + - .gitattributes + - .npmignore + - FUNCTIONS.md + - RUNTIMES.md + - USAGE.md + - docs/lib/utils/retryconfig.md + - docs/models/account.md + - docs/models/attachment.md + - docs/models/category.md + - docs/models/connection.md + - docs/models/createtag.md + - docs/models/customer.md + - docs/models/errors/conflicterror.md + - docs/models/errors/createinvoicebadrequesterror.md + - docs/models/errors/createinvoiceinternalservererror.md + - docs/models/errors/createinvoicenotfounderror.md + - docs/models/errors/getdocumentpresignedurlbadrequesterror.md + - docs/models/errors/getdocumentpresignedurlinternalservererror.md + - docs/models/errors/getdocumentpresignedurlnotfounderror.md + - docs/models/errors/getinboxpresignedurlbadrequesterror.md + - docs/models/errors/getinboxpresignedurlinternalservererror.md + - docs/models/errors/getinboxpresignedurlnotfounderror.md + - docs/models/errors/getoauthauthorizationbadrequesterror.md + - docs/models/errors/gettransactionattachmentpresignedurlbadrequesterror.md + - docs/models/errors/gettransactionattachmentpresignedurlinternalservererror.md + - docs/models/errors/gettransactionattachmentpresignedurlnotfounderror.md + - docs/models/errors/postoauthauthorizationbadrequesterror.md + - docs/models/errors/postoauthtokenbadrequesterror.md + - docs/models/errors/unauthorizederror.md + - docs/models/expensesresultarray.md + - docs/models/getburnrateresponseschema.md + - docs/models/getexpensesresponseschema.md + - docs/models/getexpensesresponseschemameta.md + - docs/models/getprofitresponseschema.md + - docs/models/getrevenueresponseschema.md + - docs/models/notificationresponseschema.md + - docs/models/notificationschema.md + - docs/models/notificationschemastatus.md + - docs/models/notificationsresponseschema.md + - docs/models/notificationsresponseschemameta.md + - docs/models/operations/attachments.md + - docs/models/operations/authorizationcode.md + - docs/models/operations/bottomblock.md + - docs/models/operations/createbankaccountrequest.md + - docs/models/operations/createbankaccountresponse.md + - docs/models/operations/createcustomerrequest.md + - docs/models/operations/createcustomerresponse.md + - docs/models/operations/createcustomertagrequest.md + - docs/models/operations/createcustomertagresponse.md + - docs/models/operations/createinvoicerequest.md + - docs/models/operations/createinvoiceresponse.md + - docs/models/operations/createinvoicestatus.md + - docs/models/operations/createtrackerentriesbulkcustomer.md + - docs/models/operations/createtrackerentriesbulkdata.md + - docs/models/operations/createtrackerentriesbulkproject.md + - docs/models/operations/createtrackerentriesbulkrequest.md + - docs/models/operations/createtrackerentriesbulkresponse.md + - docs/models/operations/createtrackerentriesbulkuser.md + - docs/models/operations/createtrackerentrycustomer.md + - docs/models/operations/createtrackerentrydata.md + - docs/models/operations/createtrackerentryproject.md + - docs/models/operations/createtrackerentryrequest.md + - docs/models/operations/createtrackerentryresponse.md + - docs/models/operations/createtrackerentryuser.md + - docs/models/operations/createtrackerprojectrequest.md + - docs/models/operations/createtrackerprojectstatus.md + - docs/models/operations/createtrackerprojecttag.md + - docs/models/operations/createtransactionattachment.md + - docs/models/operations/createtransactionrequest.md + - docs/models/operations/createtransactionsattachment.md + - docs/models/operations/currententry.md + - docs/models/operations/dateformatrequest.md + - docs/models/operations/decision.md + - docs/models/operations/deletebankaccountrequest.md + - docs/models/operations/deletebankaccountresponse.md + - docs/models/operations/deletecustomerrequest.md + - docs/models/operations/deletecustomerresponse.md + - docs/models/operations/deletecustomertag.md + - docs/models/operations/deletedocumentrequest.md + - docs/models/operations/deletedocumentresponse.md + - docs/models/operations/deleteinboxitemrequest.md + - docs/models/operations/deleteinboxitemresponse.md + - docs/models/operations/deleteinvoicerequest.md + - docs/models/operations/deleteinvoiceresponse.md + - docs/models/operations/deletetagrequest.md + - docs/models/operations/deletetrackerentryrequest.md + - docs/models/operations/deletetrackerentryresponse.md + - docs/models/operations/deletetrackerprojectrequest.md + - docs/models/operations/deletetrackerprojectresponse.md + - docs/models/operations/deletetransactionrequest.md + - docs/models/operations/deletetransactionresponse.md + - docs/models/operations/deletetransactionsresponse.md + - docs/models/operations/deliverytype.md + - docs/models/operations/entry.md + - docs/models/operations/fromdetails.md + - docs/models/operations/getbankaccountbyidrequest.md + - docs/models/operations/getbankaccountbyidresponse.md + - docs/models/operations/getburnratereportsrequest.md + - docs/models/operations/getcurrenttimercustomer.md + - docs/models/operations/getcurrenttimerdata.md + - docs/models/operations/getcurrenttimerproject.md + - docs/models/operations/getcurrenttimerrequest.md + - docs/models/operations/getcurrenttimerresponse.md + - docs/models/operations/getcurrenttimeruser.md + - docs/models/operations/getcurrentuserdateformat.md + - docs/models/operations/getcurrentuserresponse.md + - docs/models/operations/getcurrentuserteam.md + - docs/models/operations/getcustomerbyidrequest.md + - docs/models/operations/getcustomerbyidresponse.md + - docs/models/operations/getcustomerbyidtag.md + - docs/models/operations/getdocumentbyidmetadata.md + - docs/models/operations/getdocumentbyidrequest.md + - docs/models/operations/getdocumentbyidresponse.md + - docs/models/operations/getdocumentpresignedurlrequest.md + - docs/models/operations/getdocumentpresignedurlresponse.md + - docs/models/operations/getexpensesreportsrequest.md + - docs/models/operations/getinboxitembyidrequest.md + - docs/models/operations/getinboxitembyidresponse.md + - docs/models/operations/getinboxitembyidtransaction.md + - docs/models/operations/getinboxpresignedurlrequest.md + - docs/models/operations/getinboxpresignedurlresponse.md + - docs/models/operations/getinvoicebyidcustomer.md + - docs/models/operations/getinvoicebyidrequest.md + - docs/models/operations/getinvoicebyidresponse.md + - docs/models/operations/getinvoicebyidstatus.md + - docs/models/operations/getinvoicespaymentstatusresponse.md + - docs/models/operations/getinvoicesummaryrequest.md + - docs/models/operations/getinvoicesummaryresponse.md + - docs/models/operations/getinvoicesummarystatus.md + - docs/models/operations/getoauthauthorizationrequest.md + - docs/models/operations/getoauthauthorizationresponse.md + - docs/models/operations/getoauthauthorizationstatus.md + - docs/models/operations/getprofitreportsrequest.md + - docs/models/operations/getrevenuereportsrequest.md + - docs/models/operations/getrunwayreportsrequest.md + - docs/models/operations/getspendingreportsrequest.md + - docs/models/operations/gettagbyidrequest.md + - docs/models/operations/getteambyidplan.md + - docs/models/operations/getteambyidrequest.md + - docs/models/operations/getteambyidresponse.md + - docs/models/operations/gettimerstatusdata.md + - docs/models/operations/gettimerstatusrequest.md + - docs/models/operations/gettimerstatusresponse.md + - docs/models/operations/gettrackerprojectbyidrequest.md + - docs/models/operations/gettransactionattachmentpresignedurlrequest.md + - docs/models/operations/gettransactionattachmentpresignedurlresponse.md + - docs/models/operations/gettransactionbyidrequest.md + - docs/models/operations/granttypeauthorizationcode.md + - docs/models/operations/granttyperefreshtoken.md + - docs/models/operations/lineitem.md + - docs/models/operations/listbankaccountsdata.md + - docs/models/operations/listbankaccountsrequest.md + - docs/models/operations/listbankaccountsresponse.md + - docs/models/operations/listcustomersdata.md + - docs/models/operations/listcustomersmeta.md + - docs/models/operations/listcustomersrequest.md + - docs/models/operations/listcustomersresponse.md + - docs/models/operations/listcustomerstag.md + - docs/models/operations/listdocumentsdata.md + - docs/models/operations/listdocumentsmeta.md + - docs/models/operations/listdocumentsmetadata.md + - docs/models/operations/listdocumentsrequest.md + - docs/models/operations/listdocumentsresponse.md + - docs/models/operations/listinboxitemsdata.md + - docs/models/operations/listinboxitemsmeta.md + - docs/models/operations/listinboxitemsrequest.md + - docs/models/operations/listinboxitemsresponse.md + - docs/models/operations/listinboxitemsstatus.md + - docs/models/operations/listinboxitemstransaction.md + - docs/models/operations/listinvoicescustomer.md + - docs/models/operations/listinvoicesdata.md + - docs/models/operations/listinvoicesmeta.md + - docs/models/operations/listinvoicesrequest.md + - docs/models/operations/listinvoicesresponse.md + - docs/models/operations/listinvoicesstatus.md + - docs/models/operations/listnotificationsrequest.md + - docs/models/operations/listnotificationsstatusenum1.md + - docs/models/operations/listnotificationsstatusenum2.md + - docs/models/operations/listteammembersdata.md + - docs/models/operations/listteammembersrequest.md + - docs/models/operations/listteammembersresponse.md + - docs/models/operations/listteamsdata.md + - docs/models/operations/listteamsplan.md + - docs/models/operations/listteamsresponse.md + - docs/models/operations/listtrackerentriescustomer.md + - docs/models/operations/listtrackerentriesmeta.md + - docs/models/operations/listtrackerentriesproject.md + - docs/models/operations/listtrackerentriesrequest.md + - docs/models/operations/listtrackerentriesresponse.md + - docs/models/operations/listtrackerentriesuser.md + - docs/models/operations/listtrackerprojectsrequest.md + - docs/models/operations/listtrackerprojectsstatus.md + - docs/models/operations/listtransactionsmeta.md + - docs/models/operations/listtransactionsrequest.md + - docs/models/operations/listtransactionsresponse.md + - docs/models/operations/listtransactionstype.md + - docs/models/operations/name.md + - docs/models/operations/notedetails.md + - docs/models/operations/paymentdetails.md + - docs/models/operations/postoauthauthorizationrequest.md + - docs/models/operations/postoauthauthorizationresponse.md + - docs/models/operations/postoauthrevokerequest.md + - docs/models/operations/postoauthrevokeresponse.md + - docs/models/operations/postoauthtokenrequest.md + - docs/models/operations/postoauthtokenresponse.md + - docs/models/operations/refreshtoken.md + - docs/models/operations/requestbody.md + - docs/models/operations/responsetype.md + - docs/models/operations/result.md + - docs/models/operations/role.md + - docs/models/operations/scope.md + - docs/models/operations/searchrequest.md + - docs/models/operations/searchresponse.md + - docs/models/operations/size.md + - docs/models/operations/starttimercustomer.md + - docs/models/operations/starttimerdata.md + - docs/models/operations/starttimerproject.md + - docs/models/operations/starttimerrequest.md + - docs/models/operations/starttimerresponse.md + - docs/models/operations/starttimeruser.md + - docs/models/operations/status.md + - docs/models/operations/stoptimercustomer.md + - docs/models/operations/stoptimerdata.md + - docs/models/operations/stoptimerproject.md + - docs/models/operations/stoptimerrequest.md + - docs/models/operations/stoptimerresponse.md + - docs/models/operations/stoptimeruser.md + - docs/models/operations/template.md + - docs/models/operations/templatedeliverytype.md + - docs/models/operations/templatefromdetails.md + - docs/models/operations/templatepaymentdetails.md + - docs/models/operations/tokentype.md + - docs/models/operations/tokentypehint.md + - docs/models/operations/topblock.md + - docs/models/operations/trackerproject.md + - docs/models/operations/updatebankaccountrequest.md + - docs/models/operations/updatebankaccountrequestbody.md + - docs/models/operations/updatebankaccountresponse.md + - docs/models/operations/updatebankaccounttype.md + - docs/models/operations/updatecurrentuserdateformatresponse.md + - docs/models/operations/updatecurrentuserrequest.md + - docs/models/operations/updatecurrentuserresponse.md + - docs/models/operations/updatecurrentuserteam.md + - docs/models/operations/updatecustomerrequest.md + - docs/models/operations/updatecustomerrequestbody.md + - docs/models/operations/updatecustomerresponse.md + - docs/models/operations/updatecustomertagrequest.md + - docs/models/operations/updatecustomertagresponse.md + - docs/models/operations/updateinboxitemrequest.md + - docs/models/operations/updateinboxitemrequestbody.md + - docs/models/operations/updateinboxitemresponse.md + - docs/models/operations/updateinboxitemstatus.md + - docs/models/operations/updateinboxitemtransaction.md + - docs/models/operations/updateinvoicecustomer.md + - docs/models/operations/updateinvoicerequest.md + - docs/models/operations/updateinvoicerequestbody.md + - docs/models/operations/updateinvoiceresponse.md + - docs/models/operations/updateinvoicestatusrequest.md + - docs/models/operations/updateinvoicestatusresponse.md + - docs/models/operations/updatenotificationstatusrequest.md + - docs/models/operations/updatenotificationstatusrequestbody.md + - docs/models/operations/updatenotificationstatusstatus.md + - docs/models/operations/updatetagrequest.md + - docs/models/operations/updatetagrequestbody.md + - docs/models/operations/updateteambyidplan.md + - docs/models/operations/updateteambyidrequest.md + - docs/models/operations/updateteambyidrequestbody.md + - docs/models/operations/updateteambyidresponse.md + - docs/models/operations/updatetrackerentrycustomer.md + - docs/models/operations/updatetrackerentrydata.md + - docs/models/operations/updatetrackerentryproject.md + - docs/models/operations/updatetrackerentryrequest.md + - docs/models/operations/updatetrackerentryrequestbody.md + - docs/models/operations/updatetrackerentryresponse.md + - docs/models/operations/updatetrackerentryuser.md + - docs/models/operations/updatetrackerprojectrequest.md + - docs/models/operations/updatetrackerprojectrequestbody.md + - docs/models/operations/updatetrackerprojectstatus.md + - docs/models/operations/updatetrackerprojecttag.md + - docs/models/operations/updatetransactionfrequency.md + - docs/models/operations/updatetransactionrequest.md + - docs/models/operations/updatetransactionrequestbody.md + - docs/models/operations/updatetransactionsfrequency.md + - docs/models/operations/updatetransactionsmeta.md + - docs/models/operations/updatetransactionsrequest.md + - docs/models/operations/updatetransactionsresponse.md + - docs/models/operations/updatetransactionsstatus.md + - docs/models/operations/updatetransactionstatus.md + - docs/models/profitcurrent.md + - docs/models/profitmeta.md + - docs/models/profitmetatype.md + - docs/models/profitpercentage.md + - docs/models/profitpercentagestatus.md + - docs/models/profitprevious.md + - docs/models/profitresultitem.md + - docs/models/profitsummary.md + - docs/models/revenuecurrent.md + - docs/models/revenuemeta.md + - docs/models/revenuemetatype.md + - docs/models/revenuepercentage.md + - docs/models/revenuepercentagestatus.md + - docs/models/revenueprevious.md + - docs/models/revenueresultitem.md + - docs/models/revenuesummary.md + - docs/models/security.md + - docs/models/source.md + - docs/models/spendingresultarray.md + - docs/models/summary.md + - docs/models/tagresponse.md + - docs/models/tagsresponse.md + - docs/models/trackerprojectresponse.md + - docs/models/trackerprojectresponsestatus.md + - docs/models/trackerprojectresponsetag.md + - docs/models/trackerprojectsresponse.md + - docs/models/trackerprojectsresponsemeta.md + - docs/models/transactionresponse.md + - docs/models/transactionresponsetag.md + - docs/models/updateallnotificationsstatusresponseschema.md + - docs/models/updateallnotificationsstatusschema.md + - docs/models/updateallnotificationsstatusschemastatus.md + - docs/models/user.md + - docs/sdks/bankaccounts/README.md + - docs/sdks/customers/README.md + - docs/sdks/documents/README.md + - docs/sdks/inbox/README.md + - docs/sdks/invoices/README.md + - docs/sdks/midday/README.md + - docs/sdks/notifications/README.md + - docs/sdks/oauth/README.md + - docs/sdks/reports/README.md + - docs/sdks/search/README.md + - docs/sdks/tags/README.md + - docs/sdks/teams/README.md + - docs/sdks/trackerentries/README.md + - docs/sdks/trackerprojects/README.md + - docs/sdks/trackertimer/README.md + - docs/sdks/transactions/README.md + - docs/sdks/users/README.md + - eslint.config.mjs + - examples/.env.template + - examples/README.md + - examples/oAuthGetOAuthAuthorization.example.ts + - examples/package.json + - jsr.json + - package.json + - src/core.ts + - src/funcs/bankAccountsCreate.ts + - src/funcs/bankAccountsDelete.ts + - src/funcs/bankAccountsGet.ts + - src/funcs/bankAccountsList.ts + - src/funcs/bankAccountsUpdate.ts + - src/funcs/customersCreate.ts + - src/funcs/customersDelete.ts + - src/funcs/customersGet.ts + - src/funcs/customersList.ts + - src/funcs/customersUpdate.ts + - src/funcs/documentsDelete.ts + - src/funcs/documentsGet.ts + - src/funcs/documentsGetPreSignedUrl.ts + - src/funcs/documentsList.ts + - src/funcs/inboxDelete.ts + - src/funcs/inboxGet.ts + - src/funcs/inboxGetPreSignedUrl.ts + - src/funcs/inboxList.ts + - src/funcs/inboxUpdate.ts + - src/funcs/invoicesCreate.ts + - src/funcs/invoicesDelete.ts + - src/funcs/invoicesGet.ts + - src/funcs/invoicesGetInvoicesPaymentStatus.ts + - src/funcs/invoicesList.ts + - src/funcs/invoicesSummary.ts + - src/funcs/invoicesUpdate.ts + - src/funcs/notificationsList.ts + - src/funcs/notificationsUpdateAllStatus.ts + - src/funcs/notificationsUpdateStatus.ts + - src/funcs/oAuthGetOAuthAuthorization.ts + - src/funcs/oAuthPostOAuthAuthorization.ts + - src/funcs/oAuthPostOAuthRevoke.ts + - src/funcs/oAuthPostOAuthToken.ts + - src/funcs/reportsBurnRate.ts + - src/funcs/reportsExpenses.ts + - src/funcs/reportsProfit.ts + - src/funcs/reportsRevenue.ts + - src/funcs/reportsRunway.ts + - src/funcs/reportsSpending.ts + - src/funcs/searchSearch.ts + - src/funcs/tagsCreate.ts + - src/funcs/tagsDelete.ts + - src/funcs/tagsGet.ts + - src/funcs/tagsList.ts + - src/funcs/tagsUpdate.ts + - src/funcs/teamsGet.ts + - src/funcs/teamsList.ts + - src/funcs/teamsMembers.ts + - src/funcs/teamsUpdate.ts + - src/funcs/trackerEntriesCreate.ts + - src/funcs/trackerEntriesCreateBulk.ts + - src/funcs/trackerEntriesDelete.ts + - src/funcs/trackerEntriesList.ts + - src/funcs/trackerEntriesUpdate.ts + - src/funcs/trackerProjectsCreate.ts + - src/funcs/trackerProjectsDelete.ts + - src/funcs/trackerProjectsGet.ts + - src/funcs/trackerProjectsList.ts + - src/funcs/trackerProjectsUpdate.ts + - src/funcs/trackerTimerGetCurrentTimer.ts + - src/funcs/trackerTimerGetTimerStatus.ts + - src/funcs/trackerTimerStartTimer.ts + - src/funcs/trackerTimerStopTimer.ts + - src/funcs/transactionsCreate.ts + - src/funcs/transactionsCreateMany.ts + - src/funcs/transactionsDelete.ts + - src/funcs/transactionsDeleteMany.ts + - src/funcs/transactionsGet.ts + - src/funcs/transactionsGetAttachmentPreSignedUrl.ts + - src/funcs/transactionsList.ts + - src/funcs/transactionsUpdate.ts + - src/funcs/transactionsUpdateMany.ts + - src/funcs/usersGet.ts + - src/funcs/usersUpdate.ts + - src/hooks/hooks.ts + - src/hooks/index.ts + - src/hooks/types.ts + - src/index.ts + - src/lib/base64.ts + - src/lib/config.ts + - src/lib/dlv.ts + - src/lib/encodings.ts + - src/lib/env.ts + - src/lib/files.ts + - src/lib/http.ts + - src/lib/is-plain-object.ts + - src/lib/logger.ts + - src/lib/matchers.ts + - src/lib/primitives.ts + - src/lib/retries.ts + - src/lib/schemas.ts + - src/lib/sdks.ts + - src/lib/security.ts + - src/lib/url.ts + - src/mcp-server/build.mts + - src/mcp-server/cli.ts + - src/mcp-server/cli/start/command.ts + - src/mcp-server/cli/start/impl.ts + - src/mcp-server/console-logger.ts + - src/mcp-server/extensions.ts + - src/mcp-server/mcp-server.ts + - src/mcp-server/prompts.ts + - src/mcp-server/resources.ts + - src/mcp-server/scopes.ts + - src/mcp-server/server.ts + - src/mcp-server/shared.ts + - src/mcp-server/tools.ts + - src/mcp-server/tools/bankAccountsCreate.ts + - src/mcp-server/tools/bankAccountsDelete.ts + - src/mcp-server/tools/bankAccountsGet.ts + - src/mcp-server/tools/bankAccountsList.ts + - src/mcp-server/tools/bankAccountsUpdate.ts + - src/mcp-server/tools/customersCreate.ts + - src/mcp-server/tools/customersDelete.ts + - src/mcp-server/tools/customersGet.ts + - src/mcp-server/tools/customersList.ts + - src/mcp-server/tools/customersUpdate.ts + - src/mcp-server/tools/documentsDelete.ts + - src/mcp-server/tools/documentsGet.ts + - src/mcp-server/tools/documentsGetPreSignedUrl.ts + - src/mcp-server/tools/documentsList.ts + - src/mcp-server/tools/inboxDelete.ts + - src/mcp-server/tools/inboxGet.ts + - src/mcp-server/tools/inboxGetPreSignedUrl.ts + - src/mcp-server/tools/inboxList.ts + - src/mcp-server/tools/inboxUpdate.ts + - src/mcp-server/tools/invoicesCreate.ts + - src/mcp-server/tools/invoicesDelete.ts + - src/mcp-server/tools/invoicesGet.ts + - src/mcp-server/tools/invoicesGetInvoicesPaymentStatus.ts + - src/mcp-server/tools/invoicesList.ts + - src/mcp-server/tools/invoicesSummary.ts + - src/mcp-server/tools/invoicesUpdate.ts + - src/mcp-server/tools/notificationsList.ts + - src/mcp-server/tools/notificationsUpdateAllStatus.ts + - src/mcp-server/tools/notificationsUpdateStatus.ts + - src/mcp-server/tools/oAuthGetOAuthAuthorization.ts + - src/mcp-server/tools/oAuthPostOAuthAuthorization.ts + - src/mcp-server/tools/oAuthPostOAuthRevoke.ts + - src/mcp-server/tools/oAuthPostOAuthToken.ts + - src/mcp-server/tools/reportsBurnRate.ts + - src/mcp-server/tools/reportsExpenses.ts + - src/mcp-server/tools/reportsProfit.ts + - src/mcp-server/tools/reportsRevenue.ts + - src/mcp-server/tools/reportsRunway.ts + - src/mcp-server/tools/reportsSpending.ts + - src/mcp-server/tools/searchSearch.ts + - src/mcp-server/tools/tagsCreate.ts + - src/mcp-server/tools/tagsDelete.ts + - src/mcp-server/tools/tagsGet.ts + - src/mcp-server/tools/tagsList.ts + - src/mcp-server/tools/tagsUpdate.ts + - src/mcp-server/tools/teamsGet.ts + - src/mcp-server/tools/teamsList.ts + - src/mcp-server/tools/teamsMembers.ts + - src/mcp-server/tools/teamsUpdate.ts + - src/mcp-server/tools/trackerEntriesCreate.ts + - src/mcp-server/tools/trackerEntriesCreateBulk.ts + - src/mcp-server/tools/trackerEntriesDelete.ts + - src/mcp-server/tools/trackerEntriesList.ts + - src/mcp-server/tools/trackerEntriesUpdate.ts + - src/mcp-server/tools/trackerProjectsCreate.ts + - src/mcp-server/tools/trackerProjectsDelete.ts + - src/mcp-server/tools/trackerProjectsGet.ts + - src/mcp-server/tools/trackerProjectsList.ts + - src/mcp-server/tools/trackerProjectsUpdate.ts + - src/mcp-server/tools/trackerTimerGetCurrentTimer.ts + - src/mcp-server/tools/trackerTimerGetTimerStatus.ts + - src/mcp-server/tools/trackerTimerStartTimer.ts + - src/mcp-server/tools/trackerTimerStopTimer.ts + - src/mcp-server/tools/transactionsCreate.ts + - src/mcp-server/tools/transactionsCreateMany.ts + - src/mcp-server/tools/transactionsDelete.ts + - src/mcp-server/tools/transactionsDeleteMany.ts + - src/mcp-server/tools/transactionsGet.ts + - src/mcp-server/tools/transactionsGetAttachmentPreSignedUrl.ts + - src/mcp-server/tools/transactionsList.ts + - src/mcp-server/tools/transactionsUpdate.ts + - src/mcp-server/tools/transactionsUpdateMany.ts + - src/mcp-server/tools/usersGet.ts + - src/mcp-server/tools/usersUpdate.ts + - src/models/createtag.ts + - src/models/errors/apierror.ts + - src/models/errors/createinvoice.ts + - src/models/errors/getdocumentpresignedurl.ts + - src/models/errors/getinboxpresignedurl.ts + - src/models/errors/getoauthauthorization.ts + - src/models/errors/gettransactionattachmentpresignedurl.ts + - src/models/errors/httpclienterrors.ts + - src/models/errors/index.ts + - src/models/errors/middayerror.ts + - src/models/errors/postoauthauthorization.ts + - src/models/errors/postoauthtoken.ts + - src/models/errors/responsevalidationerror.ts + - src/models/errors/sdkvalidationerror.ts + - src/models/expensesresultarray.ts + - src/models/getburnrateresponseschema.ts + - src/models/getexpensesresponseschema.ts + - src/models/getprofitresponseschema.ts + - src/models/getrevenueresponseschema.ts + - src/models/index.ts + - src/models/notificationresponseschema.ts + - src/models/notificationschema.ts + - src/models/notificationsresponseschema.ts + - src/models/operations/createbankaccount.ts + - src/models/operations/createcustomer.ts + - src/models/operations/createinvoice.ts + - src/models/operations/createtrackerentriesbulk.ts + - src/models/operations/createtrackerentry.ts + - src/models/operations/createtrackerproject.ts + - src/models/operations/createtransaction.ts + - src/models/operations/createtransactions.ts + - src/models/operations/deletebankaccount.ts + - src/models/operations/deletecustomer.ts + - src/models/operations/deletedocument.ts + - src/models/operations/deleteinboxitem.ts + - src/models/operations/deleteinvoice.ts + - src/models/operations/deletetag.ts + - src/models/operations/deletetrackerentry.ts + - src/models/operations/deletetrackerproject.ts + - src/models/operations/deletetransaction.ts + - src/models/operations/deletetransactions.ts + - src/models/operations/getbankaccountbyid.ts + - src/models/operations/getburnratereports.ts + - src/models/operations/getcurrenttimer.ts + - src/models/operations/getcurrentuser.ts + - src/models/operations/getcustomerbyid.ts + - src/models/operations/getdocumentbyid.ts + - src/models/operations/getdocumentpresignedurl.ts + - src/models/operations/getexpensesreports.ts + - src/models/operations/getinboxitembyid.ts + - src/models/operations/getinboxpresignedurl.ts + - src/models/operations/getinvoicebyid.ts + - src/models/operations/getinvoicespaymentstatus.ts + - src/models/operations/getinvoicesummary.ts + - src/models/operations/getoauthauthorization.ts + - src/models/operations/getprofitreports.ts + - src/models/operations/getrevenuereports.ts + - src/models/operations/getrunwayreports.ts + - src/models/operations/getspendingreports.ts + - src/models/operations/gettagbyid.ts + - src/models/operations/getteambyid.ts + - src/models/operations/gettimerstatus.ts + - src/models/operations/gettrackerprojectbyid.ts + - src/models/operations/gettransactionattachmentpresignedurl.ts + - src/models/operations/gettransactionbyid.ts + - src/models/operations/index.ts + - src/models/operations/listbankaccounts.ts + - src/models/operations/listcustomers.ts + - src/models/operations/listdocuments.ts + - src/models/operations/listinboxitems.ts + - src/models/operations/listinvoices.ts + - src/models/operations/listnotifications.ts + - src/models/operations/listteammembers.ts + - src/models/operations/listteams.ts + - src/models/operations/listtrackerentries.ts + - src/models/operations/listtrackerprojects.ts + - src/models/operations/listtransactions.ts + - src/models/operations/postoauthauthorization.ts + - src/models/operations/postoauthrevoke.ts + - src/models/operations/postoauthtoken.ts + - src/models/operations/search.ts + - src/models/operations/starttimer.ts + - src/models/operations/stoptimer.ts + - src/models/operations/updatebankaccount.ts + - src/models/operations/updatecurrentuser.ts + - src/models/operations/updatecustomer.ts + - src/models/operations/updateinboxitem.ts + - src/models/operations/updateinvoice.ts + - src/models/operations/updatenotificationstatus.ts + - src/models/operations/updatetag.ts + - src/models/operations/updateteambyid.ts + - src/models/operations/updatetrackerentry.ts + - src/models/operations/updatetrackerproject.ts + - src/models/operations/updatetransaction.ts + - src/models/operations/updatetransactions.ts + - src/models/profitcurrent.ts + - src/models/profitmeta.ts + - src/models/profitpercentage.ts + - src/models/profitprevious.ts + - src/models/profitresultitem.ts + - src/models/profitsummary.ts + - src/models/revenuecurrent.ts + - src/models/revenuemeta.ts + - src/models/revenuepercentage.ts + - src/models/revenueprevious.ts + - src/models/revenueresultitem.ts + - src/models/revenuesummary.ts + - src/models/security.ts + - src/models/spendingresultarray.ts + - src/models/tagresponse.ts + - src/models/tagsresponse.ts + - src/models/trackerprojectresponse.ts + - src/models/trackerprojectsresponse.ts + - src/models/transactionresponse.ts + - src/models/updateallnotificationsstatusresponseschema.ts + - src/models/updateallnotificationsstatusschema.ts + - src/sdk/bankaccounts.ts + - src/sdk/customers.ts + - src/sdk/documents.ts + - src/sdk/inbox.ts + - src/sdk/index.ts + - src/sdk/invoices.ts + - src/sdk/notifications.ts + - src/sdk/oauth.ts + - src/sdk/reports.ts + - src/sdk/sdk.ts + - src/sdk/search.ts + - src/sdk/tags.ts + - src/sdk/teams.ts + - src/sdk/trackerentries.ts + - src/sdk/trackerprojects.ts + - src/sdk/trackertimer.ts + - src/sdk/transactions.ts + - src/sdk/users.ts + - src/types/async.ts + - src/types/blobs.ts + - src/types/constdatetime.ts + - src/types/enums.ts + - src/types/fp.ts + - src/types/index.ts + - src/types/operations.ts + - src/types/rfcdate.ts + - src/types/streams.ts + - tsconfig.json diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 5b9d9a0..ca36a47 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -21,29 +21,41 @@ generation: oAuth2PasswordEnabled: true hoistGlobalSecurity: true sdkHooksConfigAccess: true + schemas: + allOfMergeStrategy: shallowMerge + requestBodyFieldName: "" + persistentEdits: {} tests: generateTests: true generateNewTests: false skipResponseBodyAssertions: false typescript: - version: 0.5.0 + version: 0.6.0 + acceptHeaderEnum: true additionalDependencies: dependencies: {} devDependencies: {} peerDependencies: {} additionalPackageJSON: {} + additionalScripts: {} + alwaysIncludeInboundAndOutbound: false author: Speakeasy baseErrorName: MiddayError clientServerStatusCodesAsErrors: true - constFieldsAlwaysOptional: true + constFieldsAlwaysOptional: false defaultErrorName: APIError enableCustomCodeRegions: false enableMCPServer: true enableReactQuery: false enumFormat: union envVarPrefix: MIDDAY + exportZodModelNamespace: false + flatAdditionalProperties: false flattenGlobalSecurity: true flatteningOrder: parameters-first + formStringArrayEncodeMode: encoded-string + forwardCompatibleEnumsByDefault: false + forwardCompatibleUnionsByDefault: "false" generateExamples: true imports: option: openapi @@ -53,16 +65,22 @@ typescript: operations: models/operations shared: models webhooks: models/webhooks + inferUnionDiscriminators: true inputModelSuffix: input jsonpath: rfc9535 + laxMode: strict maxMethodParams: 0 methodArguments: require-security-and-request modelPropertyCasing: camel moduleFormat: dual + multipartArrayFormat: legacy outputModelSuffix: output packageName: '@midday-ai/sdk' + preApplyUnionDiscriminators: true responseFormat: flat sseFlatResponse: false templateVersion: v2 + unionStrategy: left-to-right usageSDKInitImports: [] useIndexModules: true + zodVersion: v3 diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 1a05b00..902d27f 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,21 +1,21 @@ -speakeasyVersion: 1.622.1 +speakeasyVersion: 1.682.0 sources: Midday API: sourceNamespace: midday-api - sourceRevisionDigest: sha256:ec0531072e6255230022481a20681d2e2807aa4790d88a9e6cc7955b40428800 - sourceBlobDigest: sha256:7d8c1d820eeeca2a44fc889957658e75e71f8a880eddc9492eec72df160c794f + sourceRevisionDigest: sha256:c5a4bef3c57d45d04849e042312314f50b7232331f3fcb714b0e3f12f6acbe40 + sourceBlobDigest: sha256:645c5b88d0d547998d658054045606ed68fdc80e76f79bd577fb591da1d9a2d6 tags: - latest - - speakeasy-sdk-regen-1757982544 + - speakeasy-sdk-regen-1765845253 - 0.0.1 targets: midday: source: Midday API sourceNamespace: midday-api - sourceRevisionDigest: sha256:ec0531072e6255230022481a20681d2e2807aa4790d88a9e6cc7955b40428800 - sourceBlobDigest: sha256:7d8c1d820eeeca2a44fc889957658e75e71f8a880eddc9492eec72df160c794f + sourceRevisionDigest: sha256:c5a4bef3c57d45d04849e042312314f50b7232331f3fcb714b0e3f12f6acbe40 + sourceBlobDigest: sha256:645c5b88d0d547998d658054045606ed68fdc80e76f79bd577fb591da1d9a2d6 codeSamplesNamespace: midday-api-typescript-code-samples - codeSamplesRevisionDigest: sha256:c80733ef4afffa08290ac7b523e6b572ac4a51af2303a4c41efb5d5b76a96bf0 + codeSamplesRevisionDigest: sha256:f01363f803f9804ca45f72e8eb21336d3e6fe5090367f6ba5e1dee0388010de2 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index a7b5d88..a10cb67 100644 --- a/README.md +++ b/README.md @@ -61,10 +61,7 @@ bun add @midday-ai/sdk ### Yarn ```bash -yarn add @midday-ai/sdk zod - -# Note that Yarn does not install peer dependencies automatically. You will need -# to install zod as shown above. +yarn add @midday-ai/sdk ``` > [!NOTE] @@ -241,7 +238,7 @@ run();
Available methods -### [bankAccounts](docs/sdks/bankaccounts/README.md) +### [BankAccounts](docs/sdks/bankaccounts/README.md) * [list](docs/sdks/bankaccounts/README.md#list) - List all bank accounts * [create](docs/sdks/bankaccounts/README.md#create) - Create a bank account @@ -249,7 +246,7 @@ run(); * [update](docs/sdks/bankaccounts/README.md#update) - Update a bank account * [delete](docs/sdks/bankaccounts/README.md#delete) - Delete a bank account -### [customers](docs/sdks/customers/README.md) +### [Customers](docs/sdks/customers/README.md) * [list](docs/sdks/customers/README.md#list) - List all customers * [create](docs/sdks/customers/README.md#create) - Create customer @@ -257,14 +254,20 @@ run(); * [update](docs/sdks/customers/README.md#update) - Update a customer * [delete](docs/sdks/customers/README.md#delete) - Delete a customer -### [documents](docs/sdks/documents/README.md) +### [Documents](docs/sdks/documents/README.md) * [list](docs/sdks/documents/README.md#list) - List all documents * [get](docs/sdks/documents/README.md#get) - Retrieve a document * [delete](docs/sdks/documents/README.md#delete) - Delete a document * [getPreSignedUrl](docs/sdks/documents/README.md#getpresignedurl) - Generate pre-signed URL for document -### [inbox](docs/sdks/inbox/README.md) +### [Files](docs/sdks/files/README.md) + +* [proxy](docs/sdks/files/README.md#proxy) - Proxy file from storage +* [downloadFile](docs/sdks/files/README.md#downloadfile) - Download file from vault +* [downloadInvoice](docs/sdks/files/README.md#downloadinvoice) - Download invoice PDF + +### [Inbox](docs/sdks/inbox/README.md) * [list](docs/sdks/inbox/README.md#list) - List all inbox items * [get](docs/sdks/inbox/README.md#get) - Retrieve a inbox item @@ -272,7 +275,32 @@ run(); * [update](docs/sdks/inbox/README.md#update) - Update a inbox item * [getPreSignedUrl](docs/sdks/inbox/README.md#getpresignedurl) - Generate pre-signed URL for inbox attachment -### [invoices](docs/sdks/invoices/README.md) +### [Integrations](docs/sdks/integrations/README.md) + +* [slackOAuthCallback](docs/sdks/integrations/README.md#slackoauthcallback) - Slack OAuth callback +* [getSlackInstallUrl](docs/sdks/integrations/README.md#getslackinstallurl) - Get Slack install URL +* [slackWebhook](docs/sdks/integrations/README.md#slackwebhook) - Slack webhook handler +* [slackInteractions](docs/sdks/integrations/README.md#slackinteractions) - Slack interactions handler +* [gmailOAuthCallback](docs/sdks/integrations/README.md#gmailoauthcallback) - Gmail OAuth callback +* [getGmailInstallUrl](docs/sdks/integrations/README.md#getgmailinstallurl) - Get Gmail install URL +* [outlookOAuthCallback](docs/sdks/integrations/README.md#outlookoauthcallback) - Outlook OAuth callback +* [getOutlookInstallUrl](docs/sdks/integrations/README.md#getoutlookinstallurl) - Get Outlook install URL +* [xeroOAuthCallback](docs/sdks/integrations/README.md#xerooauthcallback) - Xero OAuth callback +* [getXeroInstallUrl](docs/sdks/integrations/README.md#getxeroinstallurl) - Get Xero install URL +* [quickBooksOAuthCallback](docs/sdks/integrations/README.md#quickbooksoauthcallback) - QuickBooks OAuth callback +* [getQuickBooksInstallUrl](docs/sdks/integrations/README.md#getquickbooksinstallurl) - Get QuickBooks install URL +* [fortnoxOAuthCallback](docs/sdks/integrations/README.md#fortnoxoauthcallback) - Fortnox OAuth callback +* [getFortnoxInstallUrl](docs/sdks/integrations/README.md#getfortnoxinstallurl) - Get Fortnox install URL + +### [InvoicePayments](docs/sdks/invoicepayments/README.md) + +* [getStripeConnectUrl](docs/sdks/invoicepayments/README.md#getstripeconnecturl) - Get Stripe Connect URL +* [stripeConnectCallback](docs/sdks/invoicepayments/README.md#stripeconnectcallback) - Stripe Connect OAuth callback +* [disconnectStripe](docs/sdks/invoicepayments/README.md#disconnectstripe) - Disconnect Stripe account +* [createInvoicePaymentIntent](docs/sdks/invoicepayments/README.md#createinvoicepaymentintent) - Create payment intent for invoice +* [getStripeConnectStatus](docs/sdks/invoicepayments/README.md#getstripeconnectstatus) - Get Stripe Connect status + +### [Invoices](docs/sdks/invoices/README.md) * [list](docs/sdks/invoices/README.md#list) - List all invoices * [create](docs/sdks/invoices/README.md#create) - Create an invoice @@ -282,21 +310,20 @@ run(); * [update](docs/sdks/invoices/README.md#update) - Update an invoice * [delete](docs/sdks/invoices/README.md#delete) - Delete a invoice - -### [notifications](docs/sdks/notifications/README.md) +### [Notifications](docs/sdks/notifications/README.md) * [list](docs/sdks/notifications/README.md#list) - List all notifications * [updateStatus](docs/sdks/notifications/README.md#updatestatus) - Update notification status * [updateAllStatus](docs/sdks/notifications/README.md#updateallstatus) - Update status of all notifications -### [oAuth](docs/sdks/oauth/README.md) +### [OAuth](docs/sdks/oauth/README.md) * [getOAuthAuthorization](docs/sdks/oauth/README.md#getoauthauthorization) - OAuth Authorization Endpoint * [postOAuthAuthorization](docs/sdks/oauth/README.md#postoauthauthorization) - OAuth Authorization Decision * [postOAuthToken](docs/sdks/oauth/README.md#postoauthtoken) - OAuth Token Exchange * [postOAuthRevoke](docs/sdks/oauth/README.md#postoauthrevoke) - OAuth Token Revocation -### [reports](docs/sdks/reports/README.md) +### [Reports](docs/sdks/reports/README.md) * [revenue](docs/sdks/reports/README.md#revenue) - Revenue reports * [profit](docs/sdks/reports/README.md#profit) - Profit reports @@ -305,11 +332,11 @@ run(); * [expenses](docs/sdks/reports/README.md#expenses) - Expense reports * [spending](docs/sdks/reports/README.md#spending) - Spending reports -### [search](docs/sdks/search/README.md) +### [Search](docs/sdks/search/README.md) * [search](docs/sdks/search/README.md#search) - Search -### [tags](docs/sdks/tags/README.md) +### [Tags](docs/sdks/tags/README.md) * [list](docs/sdks/tags/README.md#list) - List all tags * [create](docs/sdks/tags/README.md#create) - Create a new tag @@ -317,14 +344,14 @@ run(); * [update](docs/sdks/tags/README.md#update) - Update a tag * [delete](docs/sdks/tags/README.md#delete) - Delete a tag -### [teams](docs/sdks/teams/README.md) +### [Teams](docs/sdks/teams/README.md) * [list](docs/sdks/teams/README.md#list) - List all teams * [get](docs/sdks/teams/README.md#get) - Retrieve a team * [update](docs/sdks/teams/README.md#update) - Update a team * [members](docs/sdks/teams/README.md#members) - List all team members -### [trackerEntries](docs/sdks/trackerentries/README.md) +### [TrackerEntries](docs/sdks/trackerentries/README.md) * [list](docs/sdks/trackerentries/README.md#list) - List all tracker entries * [create](docs/sdks/trackerentries/README.md#create) - Create a tracker entry @@ -332,7 +359,7 @@ run(); * [update](docs/sdks/trackerentries/README.md#update) - Update a tracker entry * [delete](docs/sdks/trackerentries/README.md#delete) - Delete a tracker entry -### [trackerProjects](docs/sdks/trackerprojects/README.md) +### [TrackerProjects](docs/sdks/trackerprojects/README.md) * [list](docs/sdks/trackerprojects/README.md#list) - List all tracker projects * [create](docs/sdks/trackerprojects/README.md#create) - Create a tracker project @@ -340,14 +367,14 @@ run(); * [get](docs/sdks/trackerprojects/README.md#get) - Retrieve a tracker project * [delete](docs/sdks/trackerprojects/README.md#delete) - Delete a tracker project -### [trackerTimer](docs/sdks/trackertimer/README.md) +### [TrackerTimer](docs/sdks/trackertimer/README.md) * [startTimer](docs/sdks/trackertimer/README.md#starttimer) - Start a timer * [stopTimer](docs/sdks/trackertimer/README.md#stoptimer) - Stop a timer * [getCurrentTimer](docs/sdks/trackertimer/README.md#getcurrenttimer) - Get current timer * [getTimerStatus](docs/sdks/trackertimer/README.md#gettimerstatus) - Get timer status -### [transactions](docs/sdks/transactions/README.md) +### [Transactions](docs/sdks/transactions/README.md) * [list](docs/sdks/transactions/README.md#list) - List all transactions * [create](docs/sdks/transactions/README.md#create) - Create a transaction @@ -359,11 +386,18 @@ run(); * [createMany](docs/sdks/transactions/README.md#createmany) - Bulk create transactions * [deleteMany](docs/sdks/transactions/README.md#deletemany) - Bulk delete transactions -### [users](docs/sdks/users/README.md) +### [Users](docs/sdks/users/README.md) * [get](docs/sdks/users/README.md#get) - Retrieve the current user * [update](docs/sdks/users/README.md#update) - Update the current user +### [Webhooks](docs/sdks/webhooks/README.md) + +* [inboxWebhook](docs/sdks/webhooks/README.md#inboxwebhook) - Inbox webhook +* [whatsappWebhookVerify](docs/sdks/webhooks/README.md#whatsappwebhookverify) - WhatsApp webhook verification +* [whatsappWebhook](docs/sdks/webhooks/README.md#whatsappwebhook) - WhatsApp webhook +* [stripeWebhook](docs/sdks/webhooks/README.md#stripewebhook) - Stripe webhook handler +
@@ -396,11 +430,33 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md). - [`documentsGet`](docs/sdks/documents/README.md#get) - Retrieve a document - [`documentsGetPreSignedUrl`](docs/sdks/documents/README.md#getpresignedurl) - Generate pre-signed URL for document - [`documentsList`](docs/sdks/documents/README.md#list) - List all documents +- [`filesDownloadFile`](docs/sdks/files/README.md#downloadfile) - Download file from vault +- [`filesDownloadInvoice`](docs/sdks/files/README.md#downloadinvoice) - Download invoice PDF +- [`filesProxy`](docs/sdks/files/README.md#proxy) - Proxy file from storage - [`inboxDelete`](docs/sdks/inbox/README.md#delete) - Delete a inbox item - [`inboxGet`](docs/sdks/inbox/README.md#get) - Retrieve a inbox item - [`inboxGetPreSignedUrl`](docs/sdks/inbox/README.md#getpresignedurl) - Generate pre-signed URL for inbox attachment - [`inboxList`](docs/sdks/inbox/README.md#list) - List all inbox items - [`inboxUpdate`](docs/sdks/inbox/README.md#update) - Update a inbox item +- [`integrationsFortnoxOAuthCallback`](docs/sdks/integrations/README.md#fortnoxoauthcallback) - Fortnox OAuth callback +- [`integrationsGetFortnoxInstallUrl`](docs/sdks/integrations/README.md#getfortnoxinstallurl) - Get Fortnox install URL +- [`integrationsGetGmailInstallUrl`](docs/sdks/integrations/README.md#getgmailinstallurl) - Get Gmail install URL +- [`integrationsGetOutlookInstallUrl`](docs/sdks/integrations/README.md#getoutlookinstallurl) - Get Outlook install URL +- [`integrationsGetQuickBooksInstallUrl`](docs/sdks/integrations/README.md#getquickbooksinstallurl) - Get QuickBooks install URL +- [`integrationsGetSlackInstallUrl`](docs/sdks/integrations/README.md#getslackinstallurl) - Get Slack install URL +- [`integrationsGetXeroInstallUrl`](docs/sdks/integrations/README.md#getxeroinstallurl) - Get Xero install URL +- [`integrationsGmailOAuthCallback`](docs/sdks/integrations/README.md#gmailoauthcallback) - Gmail OAuth callback +- [`integrationsOutlookOAuthCallback`](docs/sdks/integrations/README.md#outlookoauthcallback) - Outlook OAuth callback +- [`integrationsQuickBooksOAuthCallback`](docs/sdks/integrations/README.md#quickbooksoauthcallback) - QuickBooks OAuth callback +- [`integrationsSlackInteractions`](docs/sdks/integrations/README.md#slackinteractions) - Slack interactions handler +- [`integrationsSlackOAuthCallback`](docs/sdks/integrations/README.md#slackoauthcallback) - Slack OAuth callback +- [`integrationsSlackWebhook`](docs/sdks/integrations/README.md#slackwebhook) - Slack webhook handler +- [`integrationsXeroOAuthCallback`](docs/sdks/integrations/README.md#xerooauthcallback) - Xero OAuth callback +- [`invoicePaymentsCreateInvoicePaymentIntent`](docs/sdks/invoicepayments/README.md#createinvoicepaymentintent) - Create payment intent for invoice +- [`invoicePaymentsDisconnectStripe`](docs/sdks/invoicepayments/README.md#disconnectstripe) - Disconnect Stripe account +- [`invoicePaymentsGetStripeConnectStatus`](docs/sdks/invoicepayments/README.md#getstripeconnectstatus) - Get Stripe Connect status +- [`invoicePaymentsGetStripeConnectUrl`](docs/sdks/invoicepayments/README.md#getstripeconnecturl) - Get Stripe Connect URL +- [`invoicePaymentsStripeConnectCallback`](docs/sdks/invoicepayments/README.md#stripeconnectcallback) - Stripe Connect OAuth callback - [`invoicesCreate`](docs/sdks/invoices/README.md#create) - Create an invoice - [`invoicesDelete`](docs/sdks/invoices/README.md#delete) - Delete a invoice - [`invoicesGet`](docs/sdks/invoices/README.md#get) - Retrieve a invoice @@ -456,6 +512,10 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md). - [`transactionsUpdateMany`](docs/sdks/transactions/README.md#updatemany) - Bulk update transactions - [`usersGet`](docs/sdks/users/README.md#get) - Retrieve the current user - [`usersUpdate`](docs/sdks/users/README.md#update) - Update the current user +- [`webhooksInboxWebhook`](docs/sdks/webhooks/README.md#inboxwebhook) - Inbox webhook +- [`webhooksStripeWebhook`](docs/sdks/webhooks/README.md#stripewebhook) - Stripe webhook handler +- [`webhooksWhatsappWebhook`](docs/sdks/webhooks/README.md#whatsappwebhook) - WhatsApp webhook +- [`webhooksWhatsappWebhookVerify`](docs/sdks/webhooks/README.md#whatsappwebhookverify) - WhatsApp webhook verification @@ -605,7 +665,7 @@ run(); **Primary error:** * [`MiddayError`](./src/models/errors/middayerror.ts): The base class for HTTP error responses. -
Less common errors (23) +
Less common errors (42)
@@ -618,23 +678,42 @@ run(); **Inherit from [`MiddayError`](./src/models/errors/middayerror.ts)**: -* [`GetOAuthAuthorizationBadRequestError`](./src/models/errors/getoauthauthorizationbadrequesterror.ts): Invalid request. Status code `400`. Applicable to 1 of 74 methods.* -* [`PostOAuthAuthorizationBadRequestError`](./src/models/errors/postoauthauthorizationbadrequesterror.ts): Invalid request. Status code `400`. Applicable to 1 of 74 methods.* -* [`PostOAuthTokenBadRequestError`](./src/models/errors/postoauthtokenbadrequesterror.ts): Invalid request. Status code `400`. Applicable to 1 of 74 methods.* -* [`GetTransactionAttachmentPreSignedUrlBadRequestError`](./src/models/errors/gettransactionattachmentpresignedurlbadrequesterror.ts): Bad request - Attachment file path not available. Status code `400`. Applicable to 1 of 74 methods.* -* [`GetDocumentPreSignedUrlBadRequestError`](./src/models/errors/getdocumentpresignedurlbadrequesterror.ts): Bad request - Document file path not available. Status code `400`. Applicable to 1 of 74 methods.* -* [`GetInboxPreSignedUrlBadRequestError`](./src/models/errors/getinboxpresignedurlbadrequesterror.ts): Bad request - Attachment file path not available. Status code `400`. Applicable to 1 of 74 methods.* -* [`CreateInvoiceBadRequestError`](./src/models/errors/createinvoicebadrequesterror.ts): Bad request. Invalid input data or validation errors. Status code `400`. Applicable to 1 of 74 methods.* -* [`UnauthorizedError`](./src/models/errors/unauthorizederror.ts): Unauthorized. Status code `401`. Applicable to 1 of 74 methods.* -* [`GetTransactionAttachmentPreSignedUrlNotFoundError`](./src/models/errors/gettransactionattachmentpresignedurlnotfounderror.ts): Transaction or attachment not found. Status code `404`. Applicable to 1 of 74 methods.* -* [`GetDocumentPreSignedUrlNotFoundError`](./src/models/errors/getdocumentpresignedurlnotfounderror.ts): Document not found. Status code `404`. Applicable to 1 of 74 methods.* -* [`GetInboxPreSignedUrlNotFoundError`](./src/models/errors/getinboxpresignedurlnotfounderror.ts): Inbox item not found. Status code `404`. Applicable to 1 of 74 methods.* -* [`CreateInvoiceNotFoundError`](./src/models/errors/createinvoicenotfounderror.ts): Customer not found. Status code `404`. Applicable to 1 of 74 methods.* -* [`ConflictError`](./src/models/errors/conflicterror.ts): Conflict. Invoice number already exists. Status code `409`. Applicable to 1 of 74 methods.* -* [`GetTransactionAttachmentPreSignedUrlInternalServerError`](./src/models/errors/gettransactionattachmentpresignedurlinternalservererror.ts): Internal server error - Failed to generate pre-signed URL. Status code `500`. Applicable to 1 of 74 methods.* -* [`GetDocumentPreSignedUrlInternalServerError`](./src/models/errors/getdocumentpresignedurlinternalservererror.ts): Internal server error - Failed to generate pre-signed URL. Status code `500`. Applicable to 1 of 74 methods.* -* [`GetInboxPreSignedUrlInternalServerError`](./src/models/errors/getinboxpresignedurlinternalservererror.ts): Internal server error - Failed to generate pre-signed URL. Status code `500`. Applicable to 1 of 74 methods.* -* [`CreateInvoiceInternalServerError`](./src/models/errors/createinvoiceinternalservererror.ts): Internal server error. Status code `500`. Applicable to 1 of 74 methods.* +* [`GetOAuthAuthorizationBadRequestError`](./src/models/errors/getoauthauthorizationbadrequesterror.ts): Invalid request. Status code `400`. Applicable to 1 of 100 methods.* +* [`PostOAuthAuthorizationBadRequestError`](./src/models/errors/postoauthauthorizationbadrequesterror.ts): Invalid request. Status code `400`. Applicable to 1 of 100 methods.* +* [`PostOAuthTokenBadRequestError`](./src/models/errors/postoauthtokenbadrequesterror.ts): Invalid request. Status code `400`. Applicable to 1 of 100 methods.* +* [`InboxWebhookBadRequestError`](./src/models/errors/inboxwebhookbadrequesterror.ts): Invalid request. Status code `400`. Applicable to 1 of 100 methods.* +* [`ProxyFileBadRequestError`](./src/models/errors/proxyfilebadrequesterror.ts): Bad request. Status code `400`. Applicable to 1 of 100 methods.* +* [`DownloadFileBadRequestError`](./src/models/errors/downloadfilebadrequesterror.ts): Bad request. Status code `400`. Applicable to 1 of 100 methods.* +* [`DownloadInvoiceBadRequestError`](./src/models/errors/downloadinvoicebadrequesterror.ts): Bad request. Status code `400`. Applicable to 1 of 100 methods.* +* [`SlackOAuthCallbackBadRequestError`](./src/models/errors/slackoauthcallbackbadrequesterror.ts): Invalid request parameters. Status code `400`. Applicable to 1 of 100 methods.* +* [`GmailOAuthCallbackBadRequestError`](./src/models/errors/gmailoauthcallbackbadrequesterror.ts): Invalid request parameters. Status code `400`. Applicable to 1 of 100 methods.* +* [`OutlookOAuthCallbackBadRequestError`](./src/models/errors/outlookoauthcallbackbadrequesterror.ts): Invalid request parameters. Status code `400`. Applicable to 1 of 100 methods.* +* [`GetTransactionAttachmentPreSignedUrlBadRequestError`](./src/models/errors/gettransactionattachmentpresignedurlbadrequesterror.ts): Bad request - Attachment file path not available. Status code `400`. Applicable to 1 of 100 methods.* +* [`GetDocumentPreSignedUrlBadRequestError`](./src/models/errors/getdocumentpresignedurlbadrequesterror.ts): Bad request - Document file path not available. Status code `400`. Applicable to 1 of 100 methods.* +* [`GetInboxPreSignedUrlBadRequestError`](./src/models/errors/getinboxpresignedurlbadrequesterror.ts): Bad request - Attachment file path not available. Status code `400`. Applicable to 1 of 100 methods.* +* [`CreateInvoiceBadRequestError`](./src/models/errors/createinvoicebadrequesterror.ts): Bad request. Invalid input data or validation errors. Status code `400`. Applicable to 1 of 100 methods.* +* [`PostOAuthAuthorizationUnauthorizedError`](./src/models/errors/postoauthauthorizationunauthorizederror.ts): Unauthorized. Status code `401`. Applicable to 1 of 100 methods.* +* [`DownloadFileUnauthorizedError`](./src/models/errors/downloadfileunauthorizederror.ts): Unauthorized. Status code `401`. Applicable to 1 of 100 methods.* +* [`DownloadInvoiceUnauthorizedError`](./src/models/errors/downloadinvoiceunauthorizederror.ts): Unauthorized. Status code `401`. Applicable to 1 of 100 methods.* +* [`ProxyFileNotFoundError`](./src/models/errors/proxyfilenotfounderror.ts): Not found. Status code `404`. Applicable to 1 of 100 methods.* +* [`DownloadFileNotFoundError`](./src/models/errors/downloadfilenotfounderror.ts): Not found. Status code `404`. Applicable to 1 of 100 methods.* +* [`DownloadInvoiceNotFoundError`](./src/models/errors/downloadinvoicenotfounderror.ts): Not found. Status code `404`. Applicable to 1 of 100 methods.* +* [`GetTransactionAttachmentPreSignedUrlNotFoundError`](./src/models/errors/gettransactionattachmentpresignedurlnotfounderror.ts): Transaction or attachment not found. Status code `404`. Applicable to 1 of 100 methods.* +* [`GetDocumentPreSignedUrlNotFoundError`](./src/models/errors/getdocumentpresignedurlnotfounderror.ts): Document not found. Status code `404`. Applicable to 1 of 100 methods.* +* [`GetInboxPreSignedUrlNotFoundError`](./src/models/errors/getinboxpresignedurlnotfounderror.ts): Inbox item not found. Status code `404`. Applicable to 1 of 100 methods.* +* [`CreateInvoiceNotFoundError`](./src/models/errors/createinvoicenotfounderror.ts): Customer not found. Status code `404`. Applicable to 1 of 100 methods.* +* [`ConflictError`](./src/models/errors/conflicterror.ts): Conflict. Invoice number already exists. Status code `409`. Applicable to 1 of 100 methods.* +* [`InboxWebhookInternalServerError`](./src/models/errors/inboxwebhookinternalservererror.ts): Internal server error. Status code `500`. Applicable to 1 of 100 methods.* +* [`ProxyFileInternalServerError`](./src/models/errors/proxyfileinternalservererror.ts): Internal server error. Status code `500`. Applicable to 1 of 100 methods.* +* [`DownloadFileInternalServerError`](./src/models/errors/downloadfileinternalservererror.ts): Internal server error. Status code `500`. Applicable to 1 of 100 methods.* +* [`DownloadInvoiceInternalServerError`](./src/models/errors/downloadinvoiceinternalservererror.ts): Internal server error. Status code `500`. Applicable to 1 of 100 methods.* +* [`SlackOAuthCallbackInternalServerError`](./src/models/errors/slackoauthcallbackinternalservererror.ts): Failed to process OAuth callback. Status code `500`. Applicable to 1 of 100 methods.* +* [`GmailOAuthCallbackInternalServerError`](./src/models/errors/gmailoauthcallbackinternalservererror.ts): Failed to process OAuth callback. Status code `500`. Applicable to 1 of 100 methods.* +* [`OutlookOAuthCallbackInternalServerError`](./src/models/errors/outlookoauthcallbackinternalservererror.ts): Failed to process OAuth callback. Status code `500`. Applicable to 1 of 100 methods.* +* [`GetTransactionAttachmentPreSignedUrlInternalServerError`](./src/models/errors/gettransactionattachmentpresignedurlinternalservererror.ts): Internal server error - Failed to generate pre-signed URL. Status code `500`. Applicable to 1 of 100 methods.* +* [`GetDocumentPreSignedUrlInternalServerError`](./src/models/errors/getdocumentpresignedurlinternalservererror.ts): Internal server error - Failed to generate pre-signed URL. Status code `500`. Applicable to 1 of 100 methods.* +* [`GetInboxPreSignedUrlInternalServerError`](./src/models/errors/getinboxpresignedurlinternalservererror.ts): Internal server error - Failed to generate pre-signed URL. Status code `500`. Applicable to 1 of 100 methods.* +* [`CreateInvoiceInternalServerError`](./src/models/errors/createinvoiceinternalservererror.ts): Internal server error. Status code `500`. Applicable to 1 of 100 methods.* * [`ResponseValidationError`](./src/models/errors/responsevalidationerror.ts): Type mismatch between the data returned from the server and the structure expected by the SDK. See `error.rawValue` for the raw value and `error.pretty()` for a nicely formatted multi-line string.
diff --git a/RELEASES.md b/RELEASES.md index a643766..c6a496c 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -118,4 +118,14 @@ Based on: ### Generated - [typescript v0.5.0] . ### Releases -- [NPM v0.5.0] https://www.npmjs.com/package/@midday-ai/sdk/v/0.5.0 - . \ No newline at end of file +- [NPM v0.5.0] https://www.npmjs.com/package/@midday-ai/sdk/v/0.5.0 - . + +## 2026-01-07 00:34:28 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.682.0 (2.791.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v0.6.0] . +### Releases +- [NPM v0.6.0] https://www.npmjs.com/package/@midday-ai/sdk/v/0.6.0 - . \ No newline at end of file diff --git a/RUNTIMES.md b/RUNTIMES.md index db7ea94..27731c3 100644 --- a/RUNTIMES.md +++ b/RUNTIMES.md @@ -2,9 +2,9 @@ This SDK is intended to be used in JavaScript runtimes that support ECMAScript 2020 or newer. The SDK uses the following features: -* [Web Fetch API][web-fetch] -* [Web Streams API][web-streams] and in particular `ReadableStream` -* [Async iterables][async-iter] using `Symbol.asyncIterator` +- [Web Fetch API][web-fetch] +- [Web Streams API][web-streams] and in particular `ReadableStream` +- [Async iterables][async-iter] using `Symbol.asyncIterator` [web-fetch]: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API [web-streams]: https://developer.mozilla.org/en-US/docs/Web/API/Streams_API @@ -25,7 +25,7 @@ Runtime environments that are explicitly supported are: The following `tsconfig.json` options are recommended for projects using this SDK in order to get static type support for features like async iterables, -streams and `fetch`-related APIs ([`for await...of`][for-await-of], +streams and `fetch`-related APIs ([`for await...of`][for-await-of], [`AbortSignal`][abort-signal], [`Request`][request], [`Response`][response] and so on): @@ -38,11 +38,11 @@ so on): { "compilerOptions": { "target": "es2020", // or higher - "lib": ["es2020", "dom", "dom.iterable"], + "lib": ["es2020", "dom", "dom.iterable"] } } ``` While `target` can be set to older ECMAScript versions, it may result in extra, unnecessary compatibility code being generated if you are not targeting old -runtimes. \ No newline at end of file +runtimes. diff --git a/docs/models/errors/downloadfilebadrequesterror.md b/docs/models/errors/downloadfilebadrequesterror.md new file mode 100644 index 0000000..0f2e8da --- /dev/null +++ b/docs/models/errors/downloadfilebadrequesterror.md @@ -0,0 +1,17 @@ +# DownloadFileBadRequestError + +Bad request + +## Example Usage + +```typescript +import { DownloadFileBadRequestError } from "@midday-ai/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `error` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/errors/downloadfileinternalservererror.md b/docs/models/errors/downloadfileinternalservererror.md new file mode 100644 index 0000000..4fd7090 --- /dev/null +++ b/docs/models/errors/downloadfileinternalservererror.md @@ -0,0 +1,17 @@ +# DownloadFileInternalServerError + +Internal server error + +## Example Usage + +```typescript +import { DownloadFileInternalServerError } from "@midday-ai/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `error` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/errors/downloadfilenotfounderror.md b/docs/models/errors/downloadfilenotfounderror.md new file mode 100644 index 0000000..a8fb735 --- /dev/null +++ b/docs/models/errors/downloadfilenotfounderror.md @@ -0,0 +1,17 @@ +# DownloadFileNotFoundError + +Not found + +## Example Usage + +```typescript +import { DownloadFileNotFoundError } from "@midday-ai/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `error` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/errors/downloadfileunauthorizederror.md b/docs/models/errors/downloadfileunauthorizederror.md new file mode 100644 index 0000000..46b2813 --- /dev/null +++ b/docs/models/errors/downloadfileunauthorizederror.md @@ -0,0 +1,17 @@ +# DownloadFileUnauthorizedError + +Unauthorized + +## Example Usage + +```typescript +import { DownloadFileUnauthorizedError } from "@midday-ai/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `error` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/errors/downloadinvoicebadrequesterror.md b/docs/models/errors/downloadinvoicebadrequesterror.md new file mode 100644 index 0000000..c60abe3 --- /dev/null +++ b/docs/models/errors/downloadinvoicebadrequesterror.md @@ -0,0 +1,17 @@ +# DownloadInvoiceBadRequestError + +Bad request + +## Example Usage + +```typescript +import { DownloadInvoiceBadRequestError } from "@midday-ai/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `error` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/errors/downloadinvoiceinternalservererror.md b/docs/models/errors/downloadinvoiceinternalservererror.md new file mode 100644 index 0000000..9256d3d --- /dev/null +++ b/docs/models/errors/downloadinvoiceinternalservererror.md @@ -0,0 +1,17 @@ +# DownloadInvoiceInternalServerError + +Internal server error + +## Example Usage + +```typescript +import { DownloadInvoiceInternalServerError } from "@midday-ai/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `error` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/errors/downloadinvoicenotfounderror.md b/docs/models/errors/downloadinvoicenotfounderror.md new file mode 100644 index 0000000..3d22d1d --- /dev/null +++ b/docs/models/errors/downloadinvoicenotfounderror.md @@ -0,0 +1,17 @@ +# DownloadInvoiceNotFoundError + +Not found + +## Example Usage + +```typescript +import { DownloadInvoiceNotFoundError } from "@midday-ai/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `error` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/errors/downloadinvoiceunauthorizederror.md b/docs/models/errors/downloadinvoiceunauthorizederror.md new file mode 100644 index 0000000..adc5d49 --- /dev/null +++ b/docs/models/errors/downloadinvoiceunauthorizederror.md @@ -0,0 +1,17 @@ +# DownloadInvoiceUnauthorizedError + +Unauthorized + +## Example Usage + +```typescript +import { DownloadInvoiceUnauthorizedError } from "@midday-ai/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `error` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/errors/gmailoauthcallbackbadrequesterror.md b/docs/models/errors/gmailoauthcallbackbadrequesterror.md new file mode 100644 index 0000000..049a1a7 --- /dev/null +++ b/docs/models/errors/gmailoauthcallbackbadrequesterror.md @@ -0,0 +1,17 @@ +# GmailOAuthCallbackBadRequestError + +Invalid request parameters + +## Example Usage + +```typescript +import { GmailOAuthCallbackBadRequestError } from "@midday-ai/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `error` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/errors/gmailoauthcallbackinternalservererror.md b/docs/models/errors/gmailoauthcallbackinternalservererror.md new file mode 100644 index 0000000..0dc83b9 --- /dev/null +++ b/docs/models/errors/gmailoauthcallbackinternalservererror.md @@ -0,0 +1,17 @@ +# GmailOAuthCallbackInternalServerError + +Failed to process OAuth callback + +## Example Usage + +```typescript +import { GmailOAuthCallbackInternalServerError } from "@midday-ai/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `error` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/errors/inboxwebhookbadrequesterror.md b/docs/models/errors/inboxwebhookbadrequesterror.md new file mode 100644 index 0000000..cd6ca78 --- /dev/null +++ b/docs/models/errors/inboxwebhookbadrequesterror.md @@ -0,0 +1,18 @@ +# InboxWebhookBadRequestError + +Invalid request + +## Example Usage + +```typescript +import { InboxWebhookBadRequestError } from "@midday-ai/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | +| `error` | *string* | :heavy_check_mark: | N/A | +| `errors` | [operations.ErrorT](../../models/operations/errort.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/errors/inboxwebhookinternalservererror.md b/docs/models/errors/inboxwebhookinternalservererror.md new file mode 100644 index 0000000..7818da1 --- /dev/null +++ b/docs/models/errors/inboxwebhookinternalservererror.md @@ -0,0 +1,17 @@ +# InboxWebhookInternalServerError + +Internal server error + +## Example Usage + +```typescript +import { InboxWebhookInternalServerError } from "@midday-ai/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `error` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/errors/outlookoauthcallbackbadrequesterror.md b/docs/models/errors/outlookoauthcallbackbadrequesterror.md new file mode 100644 index 0000000..2a3f5c1 --- /dev/null +++ b/docs/models/errors/outlookoauthcallbackbadrequesterror.md @@ -0,0 +1,17 @@ +# OutlookOAuthCallbackBadRequestError + +Invalid request parameters + +## Example Usage + +```typescript +import { OutlookOAuthCallbackBadRequestError } from "@midday-ai/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `error` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/errors/outlookoauthcallbackinternalservererror.md b/docs/models/errors/outlookoauthcallbackinternalservererror.md new file mode 100644 index 0000000..9b87a79 --- /dev/null +++ b/docs/models/errors/outlookoauthcallbackinternalservererror.md @@ -0,0 +1,17 @@ +# OutlookOAuthCallbackInternalServerError + +Failed to process OAuth callback + +## Example Usage + +```typescript +import { OutlookOAuthCallbackInternalServerError } from "@midday-ai/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `error` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/errors/postoauthauthorizationunauthorizederror.md b/docs/models/errors/postoauthauthorizationunauthorizederror.md new file mode 100644 index 0000000..cccdf6e --- /dev/null +++ b/docs/models/errors/postoauthauthorizationunauthorizederror.md @@ -0,0 +1,17 @@ +# PostOAuthAuthorizationUnauthorizedError + +Unauthorized + +## Example Usage + +```typescript +import { PostOAuthAuthorizationUnauthorizedError } from "@midday-ai/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `redirectUrl` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/errors/proxyfilebadrequesterror.md b/docs/models/errors/proxyfilebadrequesterror.md new file mode 100644 index 0000000..d6dd85c --- /dev/null +++ b/docs/models/errors/proxyfilebadrequesterror.md @@ -0,0 +1,17 @@ +# ProxyFileBadRequestError + +Bad request + +## Example Usage + +```typescript +import { ProxyFileBadRequestError } from "@midday-ai/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `error` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/errors/proxyfileinternalservererror.md b/docs/models/errors/proxyfileinternalservererror.md new file mode 100644 index 0000000..8421f8f --- /dev/null +++ b/docs/models/errors/proxyfileinternalservererror.md @@ -0,0 +1,17 @@ +# ProxyFileInternalServerError + +Internal server error + +## Example Usage + +```typescript +import { ProxyFileInternalServerError } from "@midday-ai/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `error` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/errors/proxyfilenotfounderror.md b/docs/models/errors/proxyfilenotfounderror.md new file mode 100644 index 0000000..0e6288e --- /dev/null +++ b/docs/models/errors/proxyfilenotfounderror.md @@ -0,0 +1,17 @@ +# ProxyFileNotFoundError + +Not found + +## Example Usage + +```typescript +import { ProxyFileNotFoundError } from "@midday-ai/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `error` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/errors/slackoauthcallbackbadrequesterror.md b/docs/models/errors/slackoauthcallbackbadrequesterror.md new file mode 100644 index 0000000..307c341 --- /dev/null +++ b/docs/models/errors/slackoauthcallbackbadrequesterror.md @@ -0,0 +1,17 @@ +# SlackOAuthCallbackBadRequestError + +Invalid request parameters + +## Example Usage + +```typescript +import { SlackOAuthCallbackBadRequestError } from "@midday-ai/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `error` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/errors/slackoauthcallbackinternalservererror.md b/docs/models/errors/slackoauthcallbackinternalservererror.md new file mode 100644 index 0000000..d85318f --- /dev/null +++ b/docs/models/errors/slackoauthcallbackinternalservererror.md @@ -0,0 +1,17 @@ +# SlackOAuthCallbackInternalServerError + +Failed to process OAuth callback + +## Example Usage + +```typescript +import { SlackOAuthCallbackInternalServerError } from "@midday-ai/sdk/models/errors"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `error` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/authorizationcode.md b/docs/models/operations/authorizationcode.md index 2cbebee..6b9fb7a 100644 --- a/docs/models/operations/authorizationcode.md +++ b/docs/models/operations/authorizationcode.md @@ -17,11 +17,11 @@ let value: AuthorizationCode = { ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `grantType` | [operations.GrantTypeAuthorizationCode](../../models/operations/granttypeauthorizationcode.md) | :heavy_check_mark: | OAuth grant type, must be 'authorization_code' | authorization_code | -| `code` | *string* | :heavy_check_mark: | Authorization code received from authorization endpoint | mid_authorization_code_abcdef123456789 | -| `redirectUri` | *string* | :heavy_check_mark: | Redirect URI used in authorization request | https://myapp.com/callback | -| `clientId` | *string* | :heavy_check_mark: | Client ID of the OAuth application | mid_client_abcdef123456789 | -| `clientSecret` | *string* | :heavy_minus_sign: | Client secret of the OAuth application (required for confidential clients) | mid_secret_abcdef123456789 | -| `codeVerifier` | *string* | :heavy_minus_sign: | Code verifier for PKCE (required for public clients using PKCE) | dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | +| `grantType` | *"authorization_code"* | :heavy_check_mark: | OAuth grant type, must be 'authorization_code' | authorization_code | +| `code` | *string* | :heavy_check_mark: | Authorization code received from authorization endpoint | mid_authorization_code_abcdef123456789 | +| `redirectUri` | *string* | :heavy_check_mark: | Redirect URI used in authorization request | https://myapp.com/callback | +| `clientId` | *string* | :heavy_check_mark: | Client ID of the OAuth application | mid_client_abcdef123456789 | +| `clientSecret` | *string* | :heavy_minus_sign: | Client secret of the OAuth application (required for confidential clients) | mid_secret_abcdef123456789 | +| `codeVerifier` | *string* | :heavy_minus_sign: | Code verifier for PKCE (required for public clients using PKCE) | dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk | \ No newline at end of file diff --git a/docs/models/operations/breakdown.md b/docs/models/operations/breakdown.md new file mode 100644 index 0000000..468ead5 --- /dev/null +++ b/docs/models/operations/breakdown.md @@ -0,0 +1,23 @@ +# Breakdown + +## Example Usage + +```typescript +import { Breakdown } from "@midday-ai/sdk/models/operations"; + +let value: Breakdown = { + currency: "EUR", + originalAmount: 15000.5, + convertedAmount: 16250.75, + count: 5, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `currency` | *string* | :heavy_check_mark: | Original currency of the invoices | EUR | +| `originalAmount` | *number* | :heavy_check_mark: | Total amount in original currency | 15000.5 | +| `convertedAmount` | *number* | :heavy_check_mark: | Amount converted to base currency | 16250.75 | +| `count` | *number* | :heavy_check_mark: | Number of invoices in this currency | 5 | \ No newline at end of file diff --git a/docs/models/operations/createinvoicepaymentintentrequest.md b/docs/models/operations/createinvoicepaymentintentrequest.md new file mode 100644 index 0000000..de7c424 --- /dev/null +++ b/docs/models/operations/createinvoicepaymentintentrequest.md @@ -0,0 +1,17 @@ +# CreateInvoicePaymentIntentRequest + +## Example Usage + +```typescript +import { CreateInvoicePaymentIntentRequest } from "@midday-ai/sdk/models/operations"; + +let value: CreateInvoicePaymentIntentRequest = { + token: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------- | -------------------------------- | -------------------------------- | -------------------------------- | +| `token` | *string* | :heavy_check_mark: | Invoice token for authentication | \ No newline at end of file diff --git a/docs/models/operations/createinvoicepaymentintentresponse.md b/docs/models/operations/createinvoicepaymentintentresponse.md new file mode 100644 index 0000000..87c53cb --- /dev/null +++ b/docs/models/operations/createinvoicepaymentintentresponse.md @@ -0,0 +1,25 @@ +# CreateInvoicePaymentIntentResponse + +Payment intent created + +## Example Usage + +```typescript +import { CreateInvoicePaymentIntentResponse } from "@midday-ai/sdk/models/operations"; + +let value: CreateInvoicePaymentIntentResponse = { + clientSecret: "", + amount: 5862.8, + currency: "Surinam Dollar", + stripeAccountId: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `clientSecret` | *string* | :heavy_check_mark: | N/A | +| `amount` | *number* | :heavy_check_mark: | N/A | +| `currency` | *string* | :heavy_check_mark: | N/A | +| `stripeAccountId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/deletebankaccountrequest.md b/docs/models/operations/deletebankaccountrequest.md index cee704a..8631257 100644 --- a/docs/models/operations/deletebankaccountrequest.md +++ b/docs/models/operations/deletebankaccountrequest.md @@ -12,6 +12,6 @@ let value: DeleteBankAccountRequest = { ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | -| `id` | *string* | :heavy_check_mark: | N/A | b7e6c2a0-1f2d-4c3b-9a8e-123456789abc | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `id` | *string* | :heavy_check_mark: | The unique identifier of the bank account. | b7e6c2a0-1f2d-4c3b-9a8e-123456789abc | \ No newline at end of file diff --git a/docs/models/operations/deletecustomerrequest.md b/docs/models/operations/deletecustomerrequest.md index 7f0c647..f3a466d 100644 --- a/docs/models/operations/deletecustomerrequest.md +++ b/docs/models/operations/deletecustomerrequest.md @@ -12,6 +12,6 @@ let value: DeleteCustomerRequest = { ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | -| `id` | *string* | :heavy_check_mark: | N/A | b3b7c1e2-4c2a-4e7a-9c1a-2b7c1e24c2a4 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| `id` | *string* | :heavy_check_mark: | Unique identifier of the customer to retrieve | b3b7c1e2-4c2a-4e7a-9c1a-2b7c1e24c2a4 | \ No newline at end of file diff --git a/docs/models/operations/deleteinboxitemrequest.md b/docs/models/operations/deleteinboxitemrequest.md index ccbe65d..a42956d 100644 --- a/docs/models/operations/deleteinboxitemrequest.md +++ b/docs/models/operations/deleteinboxitemrequest.md @@ -12,6 +12,6 @@ let value: DeleteInboxItemRequest = { ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | -| `id` | *string* | :heavy_check_mark: | N/A | b3b7c1e2-4c2a-4e7a-9c1a-2b7c1e24c2a4 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | +| `id` | *string* | :heavy_check_mark: | The unique identifier of the inbox item to delete. | b3b7c1e2-4c2a-4e7a-9c1a-2b7c1e24c2a4 | \ No newline at end of file diff --git a/docs/models/operations/deletetagrequest.md b/docs/models/operations/deletetagrequest.md index 38c1f5d..156d043 100644 --- a/docs/models/operations/deletetagrequest.md +++ b/docs/models/operations/deletetagrequest.md @@ -14,4 +14,4 @@ let value: DeleteTagRequest = { | Field | Type | Required | Description | Example | | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | -| `id` | *string* | :heavy_check_mark: | N/A | b3b7c8e2-1f2a-4c3d-9e4f-5a6b7c8d9e0f | \ No newline at end of file +| `id` | *string* | :heavy_check_mark: | The UUID of the tag to delete. | b3b7c8e2-1f2a-4c3d-9e4f-5a6b7c8d9e0f | \ No newline at end of file diff --git a/docs/models/operations/deletetrackerentryrequest.md b/docs/models/operations/deletetrackerentryrequest.md index 25256c3..d122122 100644 --- a/docs/models/operations/deletetrackerentryrequest.md +++ b/docs/models/operations/deletetrackerentryrequest.md @@ -12,6 +12,6 @@ let value: DeleteTrackerEntryRequest = { ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | -| `id` | *string* | :heavy_check_mark: | N/A | b3b6e2c2-1f2a-4e3b-9c1d-2a4b6e2c21f2 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | +| `id` | *string* | :heavy_check_mark: | Unique identifier of the tracker entry to delete | b3b6e2c2-1f2a-4e3b-9c1d-2a4b6e2c21f2 | \ No newline at end of file diff --git a/docs/models/operations/deletetrackerprojectrequest.md b/docs/models/operations/deletetrackerprojectrequest.md index 62c5bfd..df4c9bd 100644 --- a/docs/models/operations/deletetrackerprojectrequest.md +++ b/docs/models/operations/deletetrackerprojectrequest.md @@ -12,6 +12,6 @@ let value: DeleteTrackerProjectRequest = { ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | -| `id` | *string* | :heavy_check_mark: | N/A | b7e6c8e2-1f2a-4c3b-9e2d-1a2b3c4d5e6f | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | +| `id` | *string* | :heavy_check_mark: | Unique identifier of the project to retrieve | b7e6c8e2-1f2a-4c3b-9e2d-1a2b3c4d5e6f | \ No newline at end of file diff --git a/docs/models/operations/deletetransactionrequest.md b/docs/models/operations/deletetransactionrequest.md index 9301d6a..1373d44 100644 --- a/docs/models/operations/deletetransactionrequest.md +++ b/docs/models/operations/deletetransactionrequest.md @@ -12,6 +12,6 @@ let value: DeleteTransactionRequest = { ## Fields -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `id` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `id` | *string* | :heavy_check_mark: | Transaction ID (UUID). | \ No newline at end of file diff --git a/docs/models/operations/disconnectstriperesponse.md b/docs/models/operations/disconnectstriperesponse.md new file mode 100644 index 0000000..9df1bff --- /dev/null +++ b/docs/models/operations/disconnectstriperesponse.md @@ -0,0 +1,19 @@ +# DisconnectStripeResponse + +Successfully disconnected + +## Example Usage + +```typescript +import { DisconnectStripeResponse } from "@midday-ai/sdk/models/operations"; + +let value: DisconnectStripeResponse = { + success: false, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `success` | *boolean* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/downloadfilerequest.md b/docs/models/operations/downloadfilerequest.md new file mode 100644 index 0000000..39e8703 --- /dev/null +++ b/docs/models/operations/downloadfilerequest.md @@ -0,0 +1,21 @@ +# DownloadFileRequest + +## Example Usage + +```typescript +import { DownloadFileRequest } from "@midday-ai/sdk/models/operations"; + +let value: DownloadFileRequest = { + path: "vault/documents/2024/invoice.pdf", + filename: "invoice.pdf", + fk: "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `path` | *string* | :heavy_check_mark: | Path to the file in storage. Can include or exclude 'vault/' prefix. | vault/documents/2024/invoice.pdf | +| `filename` | *string* | :heavy_minus_sign: | Optional filename for the Content-Disposition header. | invoice.pdf | +| `fk` | *string* | :heavy_check_mark: | Team file key for proxy/download access to team files. This key is returned in the user data response (GET /users/me) as the `fileKey` field. It is team-scoped and deterministic - all members of the same team share the same file key. Use this key to authenticate file access requests. | a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6 | \ No newline at end of file diff --git a/docs/models/operations/downloadinvoicerequest.md b/docs/models/operations/downloadinvoicerequest.md new file mode 100644 index 0000000..2612110 --- /dev/null +++ b/docs/models/operations/downloadinvoicerequest.md @@ -0,0 +1,22 @@ +# DownloadInvoiceRequest + +## Example Usage + +```typescript +import { DownloadInvoiceRequest } from "@midday-ai/sdk/models/operations"; + +let value: DownloadInvoiceRequest = { + id: "b3b7c1e2-4c2a-4e7a-9c1a-2b7c1e24c2a4", + fk: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", + token: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *string* | :heavy_minus_sign: | Invoice ID (UUID). Requires team file key (fk) query parameter for authentication. | b3b7c1e2-4c2a-4e7a-9c1a-2b7c1e24c2a4 | +| `fk` | *string* | :heavy_minus_sign: | Team file key for authenticated invoice access. Required when using invoice ID. This key is returned in the user data response (GET /users/me) as the `fileKey` field. | eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9... | +| `token` | *string* | :heavy_minus_sign: | Invoice access token for public access. When used alone (without id), allows public access to the invoice. | eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9... | +| `preview` | *boolean* | :heavy_minus_sign: | If true, the PDF will be displayed inline. If false, it will be downloaded. | false | \ No newline at end of file diff --git a/docs/models/operations/errort.md b/docs/models/operations/errort.md new file mode 100644 index 0000000..0f21c3b --- /dev/null +++ b/docs/models/operations/errort.md @@ -0,0 +1,19 @@ +# ErrorT + +## Example Usage + +```typescript +import { ErrorT } from "@midday-ai/sdk/models/operations"; + +let value: ErrorT = { + path: "/dev", + message: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `path` | *string* | :heavy_check_mark: | N/A | +| `message` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/exportsettings.md b/docs/models/operations/exportsettings.md new file mode 100644 index 0000000..d16a786 --- /dev/null +++ b/docs/models/operations/exportsettings.md @@ -0,0 +1,26 @@ +# ExportSettings + +Export settings for transactions + +## Example Usage + +```typescript +import { ExportSettings } from "@midday-ai/sdk/models/operations"; + +let value: ExportSettings = { + csvDelimiter: "", + includeCSV: true, + includeXLSX: true, + sendEmail: true, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `csvDelimiter` | *string* | :heavy_check_mark: | N/A | +| `includeCSV` | *boolean* | :heavy_check_mark: | N/A | +| `includeXLSX` | *boolean* | :heavy_check_mark: | N/A | +| `sendEmail` | *boolean* | :heavy_check_mark: | N/A | +| `accountantEmail` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/fortnoxoauthcallbackrequest.md b/docs/models/operations/fortnoxoauthcallbackrequest.md new file mode 100644 index 0000000..2c63a0b --- /dev/null +++ b/docs/models/operations/fortnoxoauthcallbackrequest.md @@ -0,0 +1,19 @@ +# FortnoxOAuthCallbackRequest + +## Example Usage + +```typescript +import { FortnoxOAuthCallbackRequest } from "@midday-ai/sdk/models/operations"; + +let value: FortnoxOAuthCallbackRequest = { + state: "Washington", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | +| `code` | *string* | :heavy_minus_sign: | OAuth authorization code from Fortnox | +| `state` | *string* | :heavy_check_mark: | OAuth state parameter for CSRF protection | +| `error` | *string* | :heavy_minus_sign: | OAuth error code if authorization failed | \ No newline at end of file diff --git a/docs/models/operations/fortnoxoauthcallbackresponse.md b/docs/models/operations/fortnoxoauthcallbackresponse.md new file mode 100644 index 0000000..0fa3493 --- /dev/null +++ b/docs/models/operations/fortnoxoauthcallbackresponse.md @@ -0,0 +1,22 @@ +# FortnoxOAuthCallbackResponse + +## Example Usage + +```typescript +import { FortnoxOAuthCallbackResponse } from "@midday-ai/sdk/models/operations"; + +let value: FortnoxOAuthCallbackResponse = { + headers: { + "key": [ + "", + "", + ], + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------- | -------------------------- | -------------------------- | -------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getbankaccountbyidrequest.md b/docs/models/operations/getbankaccountbyidrequest.md index b1b5ccf..2e43f84 100644 --- a/docs/models/operations/getbankaccountbyidrequest.md +++ b/docs/models/operations/getbankaccountbyidrequest.md @@ -12,6 +12,6 @@ let value: GetBankAccountByIdRequest = { ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | -| `id` | *string* | :heavy_check_mark: | N/A | b7e6c2a0-1f2d-4c3b-9a8e-123456789abc | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `id` | *string* | :heavy_check_mark: | The unique identifier of the bank account. | b7e6c2a0-1f2d-4c3b-9a8e-123456789abc | \ No newline at end of file diff --git a/docs/models/operations/getburnratereportsrequest.md b/docs/models/operations/getburnratereportsrequest.md index 895524c..823d6d3 100644 --- a/docs/models/operations/getburnratereportsrequest.md +++ b/docs/models/operations/getburnratereportsrequest.md @@ -14,8 +14,8 @@ let value: GetBurnRateReportsRequest = { ## Fields -| Field | Type | Required | Description | Example | -| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | -| `from` | *string* | :heavy_check_mark: | N/A | 2023-01-01 | -| `to` | *string* | :heavy_check_mark: | N/A | 2023-12-31 | -| `currency` | *string* | :heavy_minus_sign: | N/A | USD | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `from` | *string* | :heavy_check_mark: | Start date (ISO 8601 format) | 2023-01-01 | +| `to` | *string* | :heavy_check_mark: | End date (ISO 8601 format) | 2023-12-31 | +| `currency` | *string* | :heavy_minus_sign: | Currency code (ISO 4217) | USD | \ No newline at end of file diff --git a/docs/models/operations/getcurrenttimerdata.md b/docs/models/operations/getcurrenttimerdata.md index f3649dd..a40708b 100644 --- a/docs/models/operations/getcurrenttimerdata.md +++ b/docs/models/operations/getcurrenttimerdata.md @@ -48,7 +48,7 @@ let value: GetCurrentTimerData = { | `createdAt` | *string* | :heavy_check_mark: | Date and time when the tracker entry was created in ISO 8601 format | 2024-04-15T09:00:00.000Z | | `duration` | *number* | :heavy_check_mark: | Duration of the timer entry in seconds. -1 indicates running, null for paused, positive number for completed | -1 | | `start` | *string* | :heavy_check_mark: | Start time of the tracker entry in ISO 8601 format | 2024-04-15T09:00:00.000Z | -| `stop` | *string* | :heavy_check_mark: | Stop time of the tracker entry in ISO 8601 format | 2024-04-15T17:00:00.000Z | +| `stop` | *string* | :heavy_check_mark: | Stop time of the tracker entry in ISO 8601 format. Null for running timers. | 2024-04-15T17:00:00.000Z | | `teamId` | *string* | :heavy_check_mark: | Unique identifier of the team that owns this tracker entry | team-1234 | | `description` | *string* | :heavy_check_mark: | Description or notes for the tracker entry | Worked on implementing user authentication feature | | `rate` | *number* | :heavy_check_mark: | Hourly rate applied to this tracker entry | 75 | diff --git a/docs/models/operations/getcurrenttimerrequest.md b/docs/models/operations/getcurrenttimerrequest.md index ac90a1e..aa5b3f0 100644 --- a/docs/models/operations/getcurrenttimerrequest.md +++ b/docs/models/operations/getcurrenttimerrequest.md @@ -12,6 +12,6 @@ let value: GetCurrentTimerRequest = { ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | -| `assignedId` | *string* | :heavy_minus_sign: | N/A | a1b2c3d4-e5f6-7890-abcd-ef1234567890 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | +| `assignedId` | *string* | :heavy_minus_sign: | Unique identifier of the user whose current timer should be retrieved. If not provided, will use the authenticated user | a1b2c3d4-e5f6-7890-abcd-ef1234567890 | \ No newline at end of file diff --git a/docs/models/operations/getcurrentuserresponse.md b/docs/models/operations/getcurrentuserresponse.md index 379bd6b..7333f10 100644 --- a/docs/models/operations/getcurrentuserresponse.md +++ b/docs/models/operations/getcurrentuserresponse.md @@ -18,6 +18,8 @@ let value: GetCurrentUserResponse = { timezoneAutoSync: true, timeFormat: 24, dateFormat: "yyyy-MM-dd", + fileKey: + "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0ZWFtSWQiOiIxMjM0NTY3OC05YWJjLWRlZmctMTIzNC01Njc4OTBhYmNkZWYifQ.signature", team: { id: "123e4567-e89b-12d3-a456-426614174000", name: "Acme Corporation", @@ -29,16 +31,17 @@ let value: GetCurrentUserResponse = { ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | -| `id` | *string* | :heavy_check_mark: | Unique identifier of the user | 123e4567-e89b-12d3-a456-426614174000 | -| `fullName` | *string* | :heavy_check_mark: | Full name of the user | Jane Doe | -| `email` | *string* | :heavy_check_mark: | Email address of the user | jane.doe@acme.com | -| `avatarUrl` | *string* | :heavy_check_mark: | URL to the user's avatar image | https://cdn.midday.ai/avatars/jane-doe.jpg | -| `locale` | *string* | :heavy_check_mark: | User's preferred locale for internationalization (language and region) | en-US | -| `weekStartsOnMonday` | *boolean* | :heavy_check_mark: | Whether the user's calendar week starts on Monday (true) or Sunday (false) | true | -| `timezone` | *string* | :heavy_check_mark: | User's timezone identifier in IANA Time Zone Database format | America/New_York | -| `timezoneAutoSync` | *boolean* | :heavy_check_mark: | Whether to automatically sync timezone with browser timezone | true | -| `timeFormat` | *number* | :heavy_check_mark: | User's preferred time format: 12 for 12-hour format, 24 for 24-hour format | 24 | -| `dateFormat` | [operations.GetCurrentUserDateFormat](../../models/operations/getcurrentuserdateformat.md) | :heavy_check_mark: | User's preferred date format. Available options: 'dd/MM/yyyy', 'MM/dd/yyyy', 'yyyy-MM-dd', 'dd.MM.yyyy' | yyyy-MM-dd | -| `team` | [operations.GetCurrentUserTeam](../../models/operations/getcurrentuserteam.md) | :heavy_check_mark: | Team information that the user belongs to | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *string* | :heavy_check_mark: | Unique identifier of the user | 123e4567-e89b-12d3-a456-426614174000 | +| `fullName` | *string* | :heavy_check_mark: | Full name of the user | Jane Doe | +| `email` | *string* | :heavy_check_mark: | Email address of the user | jane.doe@acme.com | +| `avatarUrl` | *string* | :heavy_check_mark: | URL to the user's avatar image | https://cdn.midday.ai/avatars/jane-doe.jpg | +| `locale` | *string* | :heavy_check_mark: | User's preferred locale for internationalization (language and region) | en-US | +| `weekStartsOnMonday` | *boolean* | :heavy_check_mark: | Whether the user's calendar week starts on Monday (true) or Sunday (false) | true | +| `timezone` | *string* | :heavy_check_mark: | User's timezone identifier in IANA Time Zone Database format | America/New_York | +| `timezoneAutoSync` | *boolean* | :heavy_check_mark: | Whether to automatically sync timezone with browser timezone | true | +| `timeFormat` | *number* | :heavy_check_mark: | User's preferred time format: 12 for 12-hour format, 24 for 24-hour format | 24 | +| `dateFormat` | [operations.GetCurrentUserDateFormat](../../models/operations/getcurrentuserdateformat.md) | :heavy_check_mark: | User's preferred date format. Available options: 'dd/MM/yyyy', 'MM/dd/yyyy', 'yyyy-MM-dd', 'dd.MM.yyyy' | yyyy-MM-dd | +| `fileKey` | *string* | :heavy_check_mark: | Team file key (JWT token) for proxy/download access to team files. This compact JWT token contains the team ID and is shared by all team members. Use this token as the `fk` query parameter when accessing file endpoints (proxy, download). The token is team-scoped and provides access to files belonging to the user's team. Returns null if the user has no team. | eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0ZWFtSWQiOiIxMjM0NTY3OC05YWJjLWRlZmctMTIzNC01Njc4OTBhYmNkZWYifQ.signature | +| `team` | [operations.GetCurrentUserTeam](../../models/operations/getcurrentuserteam.md) | :heavy_check_mark: | Team information that the user belongs to | | \ No newline at end of file diff --git a/docs/models/operations/getcustomerbyidrequest.md b/docs/models/operations/getcustomerbyidrequest.md index afed484..73e7004 100644 --- a/docs/models/operations/getcustomerbyidrequest.md +++ b/docs/models/operations/getcustomerbyidrequest.md @@ -12,6 +12,6 @@ let value: GetCustomerByIdRequest = { ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | -| `id` | *string* | :heavy_check_mark: | N/A | b3b7c1e2-4c2a-4e7a-9c1a-2b7c1e24c2a4 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| `id` | *string* | :heavy_check_mark: | Unique identifier of the customer to retrieve | b3b7c1e2-4c2a-4e7a-9c1a-2b7c1e24c2a4 | \ No newline at end of file diff --git a/docs/models/operations/getdocumentpresignedurlrequest.md b/docs/models/operations/getdocumentpresignedurlrequest.md index 8c1add2..0daf17e 100644 --- a/docs/models/operations/getdocumentpresignedurlrequest.md +++ b/docs/models/operations/getdocumentpresignedurlrequest.md @@ -13,7 +13,7 @@ let value: GetDocumentPreSignedUrlRequest = { ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | -| `id` | *string* | :heavy_check_mark: | N/A | b3b7c1e2-4c2a-4e7a-9c1a-2b7c1e24c2a4 | -| `download` | *boolean* | :heavy_minus_sign: | N/A | true | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *string* | :heavy_check_mark: | Unique identifier of the document to generate a pre-signed URL for | b3b7c1e2-4c2a-4e7a-9c1a-2b7c1e24c2a4 | +| `download` | *boolean* | :heavy_minus_sign: | Whether to force download the file. If true, the file will be downloaded. If false or omitted, the file will be displayed in the browser if possible. | true | \ No newline at end of file diff --git a/docs/models/operations/getexpensesreportsrequest.md b/docs/models/operations/getexpensesreportsrequest.md index d4df020..e56491a 100644 --- a/docs/models/operations/getexpensesreportsrequest.md +++ b/docs/models/operations/getexpensesreportsrequest.md @@ -14,8 +14,8 @@ let value: GetExpensesReportsRequest = { ## Fields -| Field | Type | Required | Description | Example | -| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | -| `from` | *string* | :heavy_check_mark: | N/A | 2023-01-01 | -| `to` | *string* | :heavy_check_mark: | N/A | 2023-12-31 | -| `currency` | *string* | :heavy_minus_sign: | N/A | USD | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `from` | *string* | :heavy_check_mark: | Start date (ISO 8601 format) | 2023-01-01 | +| `to` | *string* | :heavy_check_mark: | End date (ISO 8601 format) | 2023-12-31 | +| `currency` | *string* | :heavy_minus_sign: | Currency code (ISO 4217) | USD | \ No newline at end of file diff --git a/docs/models/operations/getfortnoxinstallurlresponse.md b/docs/models/operations/getfortnoxinstallurlresponse.md new file mode 100644 index 0000000..38d41af --- /dev/null +++ b/docs/models/operations/getfortnoxinstallurlresponse.md @@ -0,0 +1,19 @@ +# GetFortnoxInstallUrlResponse + +Fortnox install URL + +## Example Usage + +```typescript +import { GetFortnoxInstallUrlResponse } from "@midday-ai/sdk/models/operations"; + +let value: GetFortnoxInstallUrlResponse = { + url: "https://warped-accompanist.com", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `url` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getgmailinstallurlresponse.md b/docs/models/operations/getgmailinstallurlresponse.md new file mode 100644 index 0000000..c71031e --- /dev/null +++ b/docs/models/operations/getgmailinstallurlresponse.md @@ -0,0 +1,19 @@ +# GetGmailInstallUrlResponse + +Gmail install URL + +## Example Usage + +```typescript +import { GetGmailInstallUrlResponse } from "@midday-ai/sdk/models/operations"; + +let value: GetGmailInstallUrlResponse = { + url: "https://well-groomed-hope.name", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `url` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getinboxitembyidrequest.md b/docs/models/operations/getinboxitembyidrequest.md index 77fa20f..0bedaca 100644 --- a/docs/models/operations/getinboxitembyidrequest.md +++ b/docs/models/operations/getinboxitembyidrequest.md @@ -12,6 +12,6 @@ let value: GetInboxItemByIdRequest = { ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | -| `id` | *string* | :heavy_check_mark: | N/A | b3b7c1e2-4c2a-4e7a-9c1a-2b7c1e24c2a4 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| `id` | *string* | :heavy_check_mark: | The unique identifier of the inbox item. | b3b7c1e2-4c2a-4e7a-9c1a-2b7c1e24c2a4 | \ No newline at end of file diff --git a/docs/models/operations/getinboxpresignedurlrequest.md b/docs/models/operations/getinboxpresignedurlrequest.md index c71c7ff..b48bca8 100644 --- a/docs/models/operations/getinboxpresignedurlrequest.md +++ b/docs/models/operations/getinboxpresignedurlrequest.md @@ -13,7 +13,7 @@ let value: GetInboxPreSignedUrlRequest = { ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | -| `id` | *string* | :heavy_check_mark: | N/A | b3b7c1e2-4c2a-4e7a-9c1a-2b7c1e24c2a4 | -| `download` | *boolean* | :heavy_minus_sign: | N/A | true | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *string* | :heavy_check_mark: | Unique identifier of the inbox item to generate a pre-signed URL for | b3b7c1e2-4c2a-4e7a-9c1a-2b7c1e24c2a4 | +| `download` | *boolean* | :heavy_minus_sign: | Whether to force download the file. If true, the file will be downloaded. If false or omitted, the file will be displayed in the browser if possible. | true | \ No newline at end of file diff --git a/docs/models/operations/getinvoicesummaryrequest.md b/docs/models/operations/getinvoicesummaryrequest.md index 8d86034..2c39494 100644 --- a/docs/models/operations/getinvoicesummaryrequest.md +++ b/docs/models/operations/getinvoicesummaryrequest.md @@ -6,12 +6,15 @@ import { GetInvoiceSummaryRequest } from "@midday-ai/sdk/models/operations"; let value: GetInvoiceSummaryRequest = { - status: "paid", + statuses: [ + "draft", + "unpaid", + ], }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `status` | [operations.GetInvoiceSummaryStatus](../../models/operations/getinvoicesummarystatus.md) | :heavy_minus_sign: | Filter summary by invoice status | paid | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `statuses` | [operations.GetInvoiceSummaryStatus](../../models/operations/getinvoicesummarystatus.md)[] | :heavy_minus_sign: | Filter summary by invoice statuses | [
"draft",
"unpaid"
] | \ No newline at end of file diff --git a/docs/models/operations/getinvoicesummaryresponse.md b/docs/models/operations/getinvoicesummaryresponse.md index 3557e9e..90a672a 100644 --- a/docs/models/operations/getinvoicesummaryresponse.md +++ b/docs/models/operations/getinvoicesummaryresponse.md @@ -1,21 +1,38 @@ # GetInvoiceSummaryResponse +Invoice summary object containing total amount converted to team's base currency and total invoice count. + ## Example Usage ```typescript import { GetInvoiceSummaryResponse } from "@midday-ai/sdk/models/operations"; let value: GetInvoiceSummaryResponse = { - currency: "SEK", + currency: "USD", totalAmount: 224171.25, invoiceCount: 15, + breakdown: [ + { + currency: "EUR", + originalAmount: 15000.5, + convertedAmount: 16250.75, + count: 5, + }, + { + currency: "GBP", + originalAmount: 8000.25, + convertedAmount: 9200.5, + count: 3, + }, + ], }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | -| `currency` | *string* | :heavy_check_mark: | Currency of the invoice | SEK | -| `totalAmount` | *number* | :heavy_check_mark: | Total amount of the invoice | 224171.25 | -| `invoiceCount` | *number* | :heavy_check_mark: | Number of invoices for this currency | 15 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `currency` | *string* | :heavy_check_mark: | Base currency of the team | USD | +| `totalAmount` | *number* | :heavy_check_mark: | Total amount of all invoices converted to base currency | 224171.25 | +| `invoiceCount` | *number* | :heavy_check_mark: | Total number of invoices | 15 | +| `breakdown` | [operations.Breakdown](../../models/operations/breakdown.md)[] | :heavy_minus_sign: | Currency breakdown when multiple currencies are involved | [
{
"currency": "EUR",
"originalAmount": 15000.5,
"convertedAmount": 16250.75,
"count": 5
},
{
"currency": "GBP",
"originalAmount": 8000.25,
"convertedAmount": 9200.5,
"count": 3
}
] | \ No newline at end of file diff --git a/docs/models/operations/getinvoicesummarystatus.md b/docs/models/operations/getinvoicesummarystatus.md index 118f893..50e1ef2 100644 --- a/docs/models/operations/getinvoicesummarystatus.md +++ b/docs/models/operations/getinvoicesummarystatus.md @@ -1,7 +1,5 @@ # GetInvoiceSummaryStatus -Filter summary by invoice status - ## Example Usage ```typescript @@ -13,5 +11,5 @@ let value: GetInvoiceSummaryStatus = "paid"; ## Values ```typescript -"draft" | "overdue" | "paid" | "unpaid" | "canceled" +"draft" | "overdue" | "paid" | "unpaid" | "canceled" | "scheduled" ``` \ No newline at end of file diff --git a/docs/models/operations/getoauthauthorizationrequest.md b/docs/models/operations/getoauthauthorizationrequest.md index 2d3362c..35a4cd2 100644 --- a/docs/models/operations/getoauthauthorizationrequest.md +++ b/docs/models/operations/getoauthauthorizationrequest.md @@ -17,11 +17,11 @@ let value: GetOAuthAuthorizationRequest = { ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `responseType` | [operations.ResponseType](../../models/operations/responsetype.md) | :heavy_check_mark: | OAuth response type, must be 'code' | code | -| `clientId` | *string* | :heavy_check_mark: | N/A | mid_client_abcdef123456789 | -| `redirectUri` | *string* | :heavy_check_mark: | N/A | https://myapp.com/callback | -| `scope` | *string* | :heavy_check_mark: | N/A | transactions.read invoices.read | -| `state` | *string* | :heavy_check_mark: | N/A | abc123xyz789_secure-random-state-value-with-sufficient-entropy | -| `codeChallenge` | *string* | :heavy_minus_sign: | N/A | E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | +| `responseType` | [operations.ResponseType](../../models/operations/responsetype.md) | :heavy_check_mark: | OAuth response type, must be 'code' | code | +| `clientId` | *string* | :heavy_check_mark: | Client ID of the OAuth application | mid_client_abcdef123456789 | +| `redirectUri` | *string* | :heavy_check_mark: | Redirect URI for OAuth callback | https://myapp.com/callback | +| `scope` | *string* | :heavy_check_mark: | Space-separated list of requested scopes | transactions.read invoices.read | +| `state` | *string* | :heavy_check_mark: | State parameter for CSRF protection (min 32 chars, alphanumeric + _.-) | abc123xyz789_secure-random-state-value-with-sufficient-entropy | +| `codeChallenge` | *string* | :heavy_minus_sign: | Code challenge for PKCE | E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM | \ No newline at end of file diff --git a/docs/models/operations/getoauthauthorizationresponse.md b/docs/models/operations/getoauthauthorizationresponse.md index d576efd..a0ec9ec 100644 --- a/docs/models/operations/getoauthauthorizationresponse.md +++ b/docs/models/operations/getoauthauthorizationresponse.md @@ -12,9 +12,7 @@ let value: GetOAuthAuthorizationResponse = { name: "My Raycast Extension", description: "A Raycast extension for managing transactions", overview: - "This application provides advanced transaction management features including:\n" - + "- Real-time sync\n" - + "- Advanced filtering", + "This application provides advanced transaction management features including:\n- Real-time sync\n- Advanced filtering", developerName: "Acme Corp", logoUrl: "https://example.com/logo.png", website: "https://myapp.com", diff --git a/docs/models/operations/getoutlookinstallurlresponse.md b/docs/models/operations/getoutlookinstallurlresponse.md new file mode 100644 index 0000000..1973673 --- /dev/null +++ b/docs/models/operations/getoutlookinstallurlresponse.md @@ -0,0 +1,19 @@ +# GetOutlookInstallUrlResponse + +Outlook install URL + +## Example Usage + +```typescript +import { GetOutlookInstallUrlResponse } from "@midday-ai/sdk/models/operations"; + +let value: GetOutlookInstallUrlResponse = { + url: "https://simplistic-vol.name", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `url` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getprofitreportsrequest.md b/docs/models/operations/getprofitreportsrequest.md index 5afeb2f..1e2d20d 100644 --- a/docs/models/operations/getprofitreportsrequest.md +++ b/docs/models/operations/getprofitreportsrequest.md @@ -14,8 +14,9 @@ let value: GetProfitReportsRequest = { ## Fields -| Field | Type | Required | Description | Example | -| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | -| `from` | *string* | :heavy_check_mark: | N/A | 2023-01-01 | -| `to` | *string* | :heavy_check_mark: | N/A | 2023-12-31 | -| `currency` | *string* | :heavy_minus_sign: | N/A | USD | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `from` | *string* | :heavy_check_mark: | Start date (ISO 8601 format) | 2023-01-01 | +| `to` | *string* | :heavy_check_mark: | End date (ISO 8601 format) | 2023-12-31 | +| `currency` | *string* | :heavy_minus_sign: | Currency code (ISO 4217) | USD | +| `revenueType` | [operations.GetProfitReportsRevenueType](../../models/operations/getprofitreportsrevenuetype.md) | :heavy_minus_sign: | Type of revenue calculation | net | \ No newline at end of file diff --git a/docs/models/operations/getprofitreportsrevenuetype.md b/docs/models/operations/getprofitreportsrevenuetype.md new file mode 100644 index 0000000..c0e242e --- /dev/null +++ b/docs/models/operations/getprofitreportsrevenuetype.md @@ -0,0 +1,17 @@ +# GetProfitReportsRevenueType + +Type of revenue calculation + +## Example Usage + +```typescript +import { GetProfitReportsRevenueType } from "@midday-ai/sdk/models/operations"; + +let value: GetProfitReportsRevenueType = "net"; +``` + +## Values + +```typescript +"gross" | "net" +``` \ No newline at end of file diff --git a/docs/models/operations/getquickbooksinstallurlresponse.md b/docs/models/operations/getquickbooksinstallurlresponse.md new file mode 100644 index 0000000..ecd8772 --- /dev/null +++ b/docs/models/operations/getquickbooksinstallurlresponse.md @@ -0,0 +1,19 @@ +# GetQuickBooksInstallUrlResponse + +QuickBooks install URL + +## Example Usage + +```typescript +import { GetQuickBooksInstallUrlResponse } from "@midday-ai/sdk/models/operations"; + +let value: GetQuickBooksInstallUrlResponse = { + url: "https://bustling-collaboration.info/", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `url` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getrevenuereportsrequest.md b/docs/models/operations/getrevenuereportsrequest.md index 403c660..b38f074 100644 --- a/docs/models/operations/getrevenuereportsrequest.md +++ b/docs/models/operations/getrevenuereportsrequest.md @@ -14,8 +14,9 @@ let value: GetRevenueReportsRequest = { ## Fields -| Field | Type | Required | Description | Example | -| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | -| `from` | *string* | :heavy_check_mark: | N/A | 2023-01-01 | -| `to` | *string* | :heavy_check_mark: | N/A | 2023-12-31 | -| `currency` | *string* | :heavy_minus_sign: | N/A | USD | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `from` | *string* | :heavy_check_mark: | Start date (ISO 8601 format) | 2023-01-01 | +| `to` | *string* | :heavy_check_mark: | End date (ISO 8601 format) | 2023-12-31 | +| `currency` | *string* | :heavy_minus_sign: | Currency code (ISO 4217) | USD | +| `revenueType` | [operations.GetRevenueReportsRevenueType](../../models/operations/getrevenuereportsrevenuetype.md) | :heavy_minus_sign: | Type of revenue calculation | net | \ No newline at end of file diff --git a/docs/models/operations/getrevenuereportsrevenuetype.md b/docs/models/operations/getrevenuereportsrevenuetype.md new file mode 100644 index 0000000..dac79b7 --- /dev/null +++ b/docs/models/operations/getrevenuereportsrevenuetype.md @@ -0,0 +1,17 @@ +# GetRevenueReportsRevenueType + +Type of revenue calculation + +## Example Usage + +```typescript +import { GetRevenueReportsRevenueType } from "@midday-ai/sdk/models/operations"; + +let value: GetRevenueReportsRevenueType = "net"; +``` + +## Values + +```typescript +"gross" | "net" +``` \ No newline at end of file diff --git a/docs/models/operations/getrunwayreportsrequest.md b/docs/models/operations/getrunwayreportsrequest.md index ebf8681..30a89d2 100644 --- a/docs/models/operations/getrunwayreportsrequest.md +++ b/docs/models/operations/getrunwayreportsrequest.md @@ -14,8 +14,8 @@ let value: GetRunwayReportsRequest = { ## Fields -| Field | Type | Required | Description | Example | -| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | -| `from` | *string* | :heavy_check_mark: | N/A | 2023-01-01 | -| `to` | *string* | :heavy_check_mark: | N/A | 2023-12-31 | -| `currency` | *string* | :heavy_minus_sign: | N/A | USD | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `from` | *string* | :heavy_check_mark: | Start date (ISO 8601 format) | 2023-01-01 | +| `to` | *string* | :heavy_check_mark: | End date (ISO 8601 format) | 2023-12-31 | +| `currency` | *string* | :heavy_minus_sign: | Currency code (ISO 4217) | USD | \ No newline at end of file diff --git a/docs/models/operations/getslackinstallurlresponse.md b/docs/models/operations/getslackinstallurlresponse.md new file mode 100644 index 0000000..3d4c9f2 --- /dev/null +++ b/docs/models/operations/getslackinstallurlresponse.md @@ -0,0 +1,19 @@ +# GetSlackInstallUrlResponse + +Slack install URL + +## Example Usage + +```typescript +import { GetSlackInstallUrlResponse } from "@midday-ai/sdk/models/operations"; + +let value: GetSlackInstallUrlResponse = { + url: "https://helpless-ecliptic.biz", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `url` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getspendingreportsrequest.md b/docs/models/operations/getspendingreportsrequest.md index 7e5a07b..4655bc2 100644 --- a/docs/models/operations/getspendingreportsrequest.md +++ b/docs/models/operations/getspendingreportsrequest.md @@ -14,8 +14,8 @@ let value: GetSpendingReportsRequest = { ## Fields -| Field | Type | Required | Description | Example | -| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | -| `from` | *string* | :heavy_check_mark: | N/A | 2023-01-01 | -| `to` | *string* | :heavy_check_mark: | N/A | 2023-12-31 | -| `currency` | *string* | :heavy_minus_sign: | N/A | USD | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `from` | *string* | :heavy_check_mark: | Start date (ISO 8601 format) | 2023-01-01 | +| `to` | *string* | :heavy_check_mark: | End date (ISO 8601 format) | 2023-12-31 | +| `currency` | *string* | :heavy_minus_sign: | Currency code (ISO 4217) | USD | \ No newline at end of file diff --git a/docs/models/operations/getstripeconnectstatusresponse.md b/docs/models/operations/getstripeconnectstatusresponse.md new file mode 100644 index 0000000..aa74b57 --- /dev/null +++ b/docs/models/operations/getstripeconnectstatusresponse.md @@ -0,0 +1,23 @@ +# GetStripeConnectStatusResponse + +Stripe Connect status + +## Example Usage + +```typescript +import { GetStripeConnectStatusResponse } from "@midday-ai/sdk/models/operations"; + +let value: GetStripeConnectStatusResponse = { + connected: false, + status: "", + stripeAccountId: null, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `connected` | *boolean* | :heavy_check_mark: | N/A | +| `status` | *string* | :heavy_check_mark: | N/A | +| `stripeAccountId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getstripeconnecturlresponse.md b/docs/models/operations/getstripeconnecturlresponse.md new file mode 100644 index 0000000..0b897a0 --- /dev/null +++ b/docs/models/operations/getstripeconnecturlresponse.md @@ -0,0 +1,19 @@ +# GetStripeConnectUrlResponse + +Stripe Connect OAuth URL + +## Example Usage + +```typescript +import { GetStripeConnectUrlResponse } from "@midday-ai/sdk/models/operations"; + +let value: GetStripeConnectUrlResponse = { + url: "https://grizzled-jogging.org", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `url` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/gettagbyidrequest.md b/docs/models/operations/gettagbyidrequest.md index fd9e13a..268328d 100644 --- a/docs/models/operations/gettagbyidrequest.md +++ b/docs/models/operations/gettagbyidrequest.md @@ -14,4 +14,4 @@ let value: GetTagByIdRequest = { | Field | Type | Required | Description | Example | | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | -| `id` | *string* | :heavy_check_mark: | N/A | b3b7c8e2-1f2a-4c3d-9e4f-5a6b7c8d9e0f | \ No newline at end of file +| `id` | *string* | :heavy_check_mark: | The UUID of the tag. | b3b7c8e2-1f2a-4c3d-9e4f-5a6b7c8d9e0f | \ No newline at end of file diff --git a/docs/models/operations/getteambyidrequest.md b/docs/models/operations/getteambyidrequest.md index 4d6b38b..4fa14c0 100644 --- a/docs/models/operations/getteambyidrequest.md +++ b/docs/models/operations/getteambyidrequest.md @@ -14,4 +14,4 @@ let value: GetTeamByIdRequest = { | Field | Type | Required | Description | Example | | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | -| `id` | *string* | :heavy_check_mark: | N/A | 123e4567-e89b-12d3-a456-426614174000 | \ No newline at end of file +| `id` | *string* | :heavy_check_mark: | Unique identifier of the team | 123e4567-e89b-12d3-a456-426614174000 | \ No newline at end of file diff --git a/docs/models/operations/gettimerstatusrequest.md b/docs/models/operations/gettimerstatusrequest.md index 07585d3..99cf3ee 100644 --- a/docs/models/operations/gettimerstatusrequest.md +++ b/docs/models/operations/gettimerstatusrequest.md @@ -12,6 +12,6 @@ let value: GetTimerStatusRequest = { ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | -| `assignedId` | *string* | :heavy_minus_sign: | N/A | a1b2c3d4-e5f6-7890-abcd-ef1234567890 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | +| `assignedId` | *string* | :heavy_minus_sign: | Unique identifier of the user whose current timer should be retrieved. If not provided, will use the authenticated user | a1b2c3d4-e5f6-7890-abcd-ef1234567890 | \ No newline at end of file diff --git a/docs/models/operations/gettrackerprojectbyidrequest.md b/docs/models/operations/gettrackerprojectbyidrequest.md index 2965c45..64cc444 100644 --- a/docs/models/operations/gettrackerprojectbyidrequest.md +++ b/docs/models/operations/gettrackerprojectbyidrequest.md @@ -12,6 +12,6 @@ let value: GetTrackerProjectByIdRequest = { ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | -| `id` | *string* | :heavy_check_mark: | N/A | b7e6c8e2-1f2a-4c3b-9e2d-1a2b3c4d5e6f | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | +| `id` | *string* | :heavy_check_mark: | Unique identifier of the project to retrieve | b7e6c8e2-1f2a-4c3b-9e2d-1a2b3c4d5e6f | \ No newline at end of file diff --git a/docs/models/operations/gettransactionattachmentpresignedurlrequest.md b/docs/models/operations/gettransactionattachmentpresignedurlrequest.md index 6cea2c0..a5b259c 100644 --- a/docs/models/operations/gettransactionattachmentpresignedurlrequest.md +++ b/docs/models/operations/gettransactionattachmentpresignedurlrequest.md @@ -14,8 +14,8 @@ let value: GetTransactionAttachmentPreSignedUrlRequest = { ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | -| `transactionId` | *string* | :heavy_check_mark: | N/A | b3b7c1e2-4c2a-4e7a-9c1a-2b7c1e24c2a4 | -| `attachmentId` | *string* | :heavy_check_mark: | N/A | a43dc3a5-6925-4d91-ac9c-4c1a34bdb388 | -| `download` | *boolean* | :heavy_minus_sign: | N/A | true | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | +| `transactionId` | *string* | :heavy_check_mark: | Unique identifier of the transaction | b3b7c1e2-4c2a-4e7a-9c1a-2b7c1e24c2a4 | +| `attachmentId` | *string* | :heavy_check_mark: | Unique identifier of the attachment to generate a pre-signed URL for | a43dc3a5-6925-4d91-ac9c-4c1a34bdb388 | +| `download` | *boolean* | :heavy_minus_sign: | Whether to force download the file. If true, the file will be downloaded. If false or omitted, the file will be displayed in the browser if possible. | true | \ No newline at end of file diff --git a/docs/models/operations/gettransactionbyidrequest.md b/docs/models/operations/gettransactionbyidrequest.md index 2e51f4b..b070565 100644 --- a/docs/models/operations/gettransactionbyidrequest.md +++ b/docs/models/operations/gettransactionbyidrequest.md @@ -12,6 +12,6 @@ let value: GetTransactionByIdRequest = { ## Fields -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `id` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `id` | *string* | :heavy_check_mark: | Transaction ID (UUID). | \ No newline at end of file diff --git a/docs/models/operations/getxeroinstallurlresponse.md b/docs/models/operations/getxeroinstallurlresponse.md new file mode 100644 index 0000000..4fca24f --- /dev/null +++ b/docs/models/operations/getxeroinstallurlresponse.md @@ -0,0 +1,19 @@ +# GetXeroInstallUrlResponse + +Xero install URL + +## Example Usage + +```typescript +import { GetXeroInstallUrlResponse } from "@midday-ai/sdk/models/operations"; + +let value: GetXeroInstallUrlResponse = { + url: "https://sleepy-sand.com", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `url` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/gmailoauthcallbackrequest.md b/docs/models/operations/gmailoauthcallbackrequest.md new file mode 100644 index 0000000..caf9739 --- /dev/null +++ b/docs/models/operations/gmailoauthcallbackrequest.md @@ -0,0 +1,19 @@ +# GmailOAuthCallbackRequest + +## Example Usage + +```typescript +import { GmailOAuthCallbackRequest } from "@midday-ai/sdk/models/operations"; + +let value: GmailOAuthCallbackRequest = { + state: "North Carolina", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| `code` | *string* | :heavy_minus_sign: | OAuth authorization code from Google | +| `state` | *string* | :heavy_check_mark: | Encrypted OAuth state parameter | +| `error` | *string* | :heavy_minus_sign: | OAuth error code if authorization failed | \ No newline at end of file diff --git a/docs/models/operations/gmailoauthcallbackresponse.md b/docs/models/operations/gmailoauthcallbackresponse.md new file mode 100644 index 0000000..4e62fe7 --- /dev/null +++ b/docs/models/operations/gmailoauthcallbackresponse.md @@ -0,0 +1,20 @@ +# GmailOAuthCallbackResponse + +## Example Usage + +```typescript +import { GmailOAuthCallbackResponse } from "@midday-ai/sdk/models/operations"; + +let value: GmailOAuthCallbackResponse = { + headers: { + "key": [], + "key1": [], + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------- | -------------------------- | -------------------------- | -------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/inboxwebhookresponse.md b/docs/models/operations/inboxwebhookresponse.md new file mode 100644 index 0000000..4081c5b --- /dev/null +++ b/docs/models/operations/inboxwebhookresponse.md @@ -0,0 +1,19 @@ +# InboxWebhookResponse + +Webhook processed successfully + +## Example Usage + +```typescript +import { InboxWebhookResponse } from "@midday-ai/sdk/models/operations"; + +let value: InboxWebhookResponse = { + success: true, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `success` | *boolean* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/lineitem.md b/docs/models/operations/lineitem.md index 018fd56..a036ce2 100644 --- a/docs/models/operations/lineitem.md +++ b/docs/models/operations/lineitem.md @@ -7,6 +7,7 @@ import { LineItem } from "@midday-ai/sdk/models/operations"; let value: LineItem = { name: {}, + productId: "a1b2c3d4-e5f6-7890-abcd-ef1234567890", }; ``` @@ -19,4 +20,6 @@ let value: LineItem = { | `price` | *number* | :heavy_minus_sign: | N/A | | | `vat` | *number* | :heavy_minus_sign: | N/A | | | `tax` | *number* | :heavy_minus_sign: | N/A | | -| `name` | [operations.Name](../../models/operations/name.md) | :heavy_minus_sign: | Line item description in TipTap JSONContent format | {
"type": "doc",
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "Web Development Services"
}
]
}
]
} | \ No newline at end of file +| `taxRate` | *number* | :heavy_minus_sign: | N/A | | +| `name` | [operations.Name](../../models/operations/name.md) | :heavy_minus_sign: | Line item description in TipTap JSONContent format | {
"type": "doc",
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "Web Development Services"
}
]
}
]
} | +| `productId` | *string* | :heavy_minus_sign: | Optional reference to a saved product | a1b2c3d4-e5f6-7890-abcd-ef1234567890 | \ No newline at end of file diff --git a/docs/models/operations/listbankaccountsrequest.md b/docs/models/operations/listbankaccountsrequest.md index a698971..7beccf0 100644 --- a/docs/models/operations/listbankaccountsrequest.md +++ b/docs/models/operations/listbankaccountsrequest.md @@ -10,7 +10,7 @@ let value: ListBankAccountsRequest = {}; ## Fields -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `enabled` | *boolean* | :heavy_minus_sign: | N/A | -| `manual` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| `enabled` | *boolean* | :heavy_minus_sign: | Whether the bank account is enabled. | +| `manual` | *boolean* | :heavy_minus_sign: | Whether the bank account is a manual account. | \ No newline at end of file diff --git a/docs/models/operations/listcustomersrequest.md b/docs/models/operations/listcustomersrequest.md index b02ac36..e405325 100644 --- a/docs/models/operations/listcustomersrequest.md +++ b/docs/models/operations/listcustomersrequest.md @@ -18,9 +18,9 @@ let value: ListCustomersRequest = { ## Fields -| Field | Type | Required | Description | Example | -| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | -| `q` | *string* | :heavy_minus_sign: | N/A | acme | -| `sort` | *string*[] | :heavy_minus_sign: | N/A | [
"name",
"asc"
] | -| `cursor` | *string* | :heavy_minus_sign: | N/A | eyJpZCI6IjEyMyJ9 | -| `pageSize` | *number* | :heavy_minus_sign: | N/A | 20 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | +| `q` | *string* | :heavy_minus_sign: | Search query string to filter customers by name, email, or other text fields | acme | +| `sort` | *string*[] | :heavy_minus_sign: | Sorting order as a tuple: [field, direction]. Example: ['name', 'asc'] or ['createdAt', 'desc'] | [
"name",
"asc"
] | +| `cursor` | *string* | :heavy_minus_sign: | Cursor for pagination, representing the last item from the previous page | eyJpZCI6IjEyMyJ9 | +| `pageSize` | *number* | :heavy_minus_sign: | Number of customers to return per page (1-100) | 20 | \ No newline at end of file diff --git a/docs/models/operations/listdocumentsrequest.md b/docs/models/operations/listdocumentsrequest.md index 5662bff..6b7dbce 100644 --- a/docs/models/operations/listdocumentsrequest.md +++ b/docs/models/operations/listdocumentsrequest.md @@ -18,10 +18,10 @@ let value: ListDocumentsRequest = { ## Fields -| Field | Type | Required | Description | Example | -| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | -| `cursor` | *string* | :heavy_minus_sign: | N/A | 20 | -| `sort` | *string*[] | :heavy_minus_sign: | N/A | | -| `pageSize` | *number* | :heavy_minus_sign: | N/A | 20 | -| `q` | *string* | :heavy_minus_sign: | N/A | invoice | -| `tags` | *string*[] | :heavy_minus_sign: | N/A | [
"tag1",
"tag2"
] | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `cursor` | *string* | :heavy_minus_sign: | A cursor for pagination. Pass the value returned from the previous response to get the next page. | 20 | +| `sort` | *string*[] | :heavy_minus_sign: | Sorting order as a tuple: [field, direction]. Example: ['name', 'asc']. | | +| `pageSize` | *number* | :heavy_minus_sign: | Number of documents to return per page. | 20 | +| `q` | *string* | :heavy_minus_sign: | Search query string to filter documents by text. | invoice | +| `tags` | *string*[] | :heavy_minus_sign: | Array of tag IDs to filter documents by tags. | [
"tag1",
"tag2"
] | \ No newline at end of file diff --git a/docs/models/operations/listinboxitemsrequest.md b/docs/models/operations/listinboxitemsrequest.md index 6a5d0ef..c7ef614 100644 --- a/docs/models/operations/listinboxitemsrequest.md +++ b/docs/models/operations/listinboxitemsrequest.md @@ -14,6 +14,7 @@ let value: ListInboxItemsRequest = {}; | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | | `cursor` | *string* | :heavy_minus_sign: | N/A | | `order` | *string* | :heavy_minus_sign: | N/A | +| `sort` | *string* | :heavy_minus_sign: | N/A | | `pageSize` | *number* | :heavy_minus_sign: | N/A | | `q` | *string* | :heavy_minus_sign: | N/A | | `status` | [operations.ListInboxItemsStatus](../../models/operations/listinboxitemsstatus.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listinboxitemsstatus.md b/docs/models/operations/listinboxitemsstatus.md index 687d991..ad1550d 100644 --- a/docs/models/operations/listinboxitemsstatus.md +++ b/docs/models/operations/listinboxitemsstatus.md @@ -5,11 +5,11 @@ ```typescript import { ListInboxItemsStatus } from "@midday-ai/sdk/models/operations"; -let value: ListInboxItemsStatus = "suggested_match"; +let value: ListInboxItemsStatus = "no_match"; ``` ## Values ```typescript -"done" | "pending" | "suggested_match" +"done" | "pending" | "suggested_match" | "no_match" ``` \ No newline at end of file diff --git a/docs/models/operations/listinvoicesrequest.md b/docs/models/operations/listinvoicesrequest.md index 9346d77..30cf5eb 100644 --- a/docs/models/operations/listinvoicesrequest.md +++ b/docs/models/operations/listinvoicesrequest.md @@ -28,13 +28,13 @@ let value: ListInvoicesRequest = { ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| `cursor` | *string* | :heavy_minus_sign: | N/A | 25 | -| `sort` | *string*[] | :heavy_minus_sign: | N/A | [
"createdAt",
"desc"
] | -| `pageSize` | *number* | :heavy_minus_sign: | N/A | 25 | -| `q` | *string* | :heavy_minus_sign: | N/A | Acme | -| `start` | *string* | :heavy_minus_sign: | N/A | 2024-01-01 | -| `end` | *string* | :heavy_minus_sign: | N/A | 2024-01-31 | -| `statuses` | *string*[] | :heavy_minus_sign: | N/A | [
"paid",
"unpaid"
] | -| `customers` | *string*[] | :heavy_minus_sign: | N/A | [
"customer-uuid-1",
"customer-uuid-2"
] | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | +| `cursor` | *string* | :heavy_minus_sign: | A cursor for pagination, representing the last item from the previous page. | 25 | +| `sort` | *string*[] | :heavy_minus_sign: | Sorting order as a tuple: [field, direction]. Example: ['createdAt', 'desc']. | [
"createdAt",
"desc"
] | +| `pageSize` | *number* | :heavy_minus_sign: | Number of invoices to return per page (1-100). | 25 | +| `q` | *string* | :heavy_minus_sign: | Search query string to filter invoices by text. | Acme | +| `start` | *string* | :heavy_minus_sign: | Start date (inclusive) for filtering invoices, in ISO 8601 format. | 2024-01-01 | +| `end` | *string* | :heavy_minus_sign: | End date (inclusive) for filtering invoices, in ISO 8601 format. | 2024-01-31 | +| `statuses` | *string*[] | :heavy_minus_sign: | List of invoice statuses to filter by (e.g., 'paid', 'unpaid', 'overdue'). | [
"paid",
"unpaid"
] | +| `customers` | *string*[] | :heavy_minus_sign: | List of customer IDs to filter invoices. | [
"customer-uuid-1",
"customer-uuid-2"
] | \ No newline at end of file diff --git a/docs/models/operations/listnotificationsrequest.md b/docs/models/operations/listnotificationsrequest.md index ef5dc60..5462036 100644 --- a/docs/models/operations/listnotificationsrequest.md +++ b/docs/models/operations/listnotificationsrequest.md @@ -22,9 +22,9 @@ let value: ListNotificationsRequest = { | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `cursor` | *string* | :heavy_minus_sign: | N/A | 20 | -| `pageSize` | *number* | :heavy_minus_sign: | N/A | 20 | +| `cursor` | *string* | :heavy_minus_sign: | Cursor for pagination, representing the last item from the previous page | 20 | +| `pageSize` | *number* | :heavy_minus_sign: | Number of notifications to return per page (1-100) | 20 | | `status` | *operations.Status* | :heavy_minus_sign: | Filter by notification status. Can be a single status or array of statuses. unread = new notifications, read = viewed but not dismissed, archived = dismissed from view | [
"unread",
"read"
] | -| `userId` | *string* | :heavy_minus_sign: | N/A | a1b2c3d4-e5f6-7890-abcd-ef1234567890 | -| `priority` | *number* | :heavy_minus_sign: | N/A | 5 | -| `maxPriority` | *number* | :heavy_minus_sign: | N/A | 3 | \ No newline at end of file +| `userId` | *string* | :heavy_minus_sign: | Filter notifications by specific user ID | a1b2c3d4-e5f6-7890-abcd-ef1234567890 | +| `priority` | *number* | :heavy_minus_sign: | Filter notifications by priority level (1-10) | 5 | +| `maxPriority` | *number* | :heavy_minus_sign: | Filter notifications by maximum priority level (priority <= maxPriority). Use 3 for user-facing notifications only. | 3 | \ No newline at end of file diff --git a/docs/models/operations/listteammembersrequest.md b/docs/models/operations/listteammembersrequest.md index 6159a10..5d3e1c7 100644 --- a/docs/models/operations/listteammembersrequest.md +++ b/docs/models/operations/listteammembersrequest.md @@ -14,4 +14,4 @@ let value: ListTeamMembersRequest = { | Field | Type | Required | Description | Example | | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | -| `id` | *string* | :heavy_check_mark: | N/A | 123e4567-e89b-12d3-a456-426614174000 | \ No newline at end of file +| `id` | *string* | :heavy_check_mark: | Unique identifier of the team | 123e4567-e89b-12d3-a456-426614174000 | \ No newline at end of file diff --git a/docs/models/operations/listtrackerentriesrequest.md b/docs/models/operations/listtrackerentriesrequest.md index 658f69e..d9ec52c 100644 --- a/docs/models/operations/listtrackerentriesrequest.md +++ b/docs/models/operations/listtrackerentriesrequest.md @@ -14,8 +14,8 @@ let value: ListTrackerEntriesRequest = { ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | -| `from` | *string* | :heavy_check_mark: | N/A | 2024-04-01 | -| `to` | *string* | :heavy_check_mark: | N/A | 2024-04-30 | -| `projectId` | *string* | :heavy_minus_sign: | N/A | b3b6e2c2-1f2a-4e3b-9c1d-2a4b6e2c21f2 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | +| `from` | *string* | :heavy_check_mark: | Start date of the range (inclusive) in YYYY-MM-DD format | 2024-04-01 | +| `to` | *string* | :heavy_check_mark: | End date of the range (inclusive) in YYYY-MM-DD format | 2024-04-30 | +| `projectId` | *string* | :heavy_minus_sign: | Optional project ID to filter tracker entries by specific project | b3b6e2c2-1f2a-4e3b-9c1d-2a4b6e2c21f2 | \ No newline at end of file diff --git a/docs/models/operations/listtrackerprojectsrequest.md b/docs/models/operations/listtrackerprojectsrequest.md index 2dd5068..a8d3a35 100644 --- a/docs/models/operations/listtrackerprojectsrequest.md +++ b/docs/models/operations/listtrackerprojectsrequest.md @@ -31,12 +31,12 @@ let value: ListTrackerProjectsRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `cursor` | *string* | :heavy_minus_sign: | N/A | eyJpZCI6IjEyMyJ9 | -| `pageSize` | *number* | :heavy_minus_sign: | N/A | 20 | -| `q` | *string* | :heavy_minus_sign: | N/A | website | -| `start` | *string* | :heavy_minus_sign: | N/A | 2024-04-01 | -| `end` | *string* | :heavy_minus_sign: | N/A | 2024-04-30 | +| `cursor` | *string* | :heavy_minus_sign: | Cursor for pagination, representing the last item from the previous page | eyJpZCI6IjEyMyJ9 | +| `pageSize` | *number* | :heavy_minus_sign: | Number of projects to return per page (1-100) | 20 | +| `q` | *string* | :heavy_minus_sign: | Search query string to filter projects by name or description | website | +| `start` | *string* | :heavy_minus_sign: | Start date for filtering projects by creation date in YYYY-MM-DD format | 2024-04-01 | +| `end` | *string* | :heavy_minus_sign: | End date for filtering projects by creation date in YYYY-MM-DD format | 2024-04-30 | | `status` | [operations.ListTrackerProjectsStatus](../../models/operations/listtrackerprojectsstatus.md) | :heavy_minus_sign: | Filter projects by status | in_progress | -| `customers` | *string*[] | :heavy_minus_sign: | N/A | [
"customer-1",
"customer-2"
] | -| `tags` | *string*[] | :heavy_minus_sign: | N/A | [
"tag-1",
"tag-2"
] | -| `sort` | *string*[] | :heavy_minus_sign: | N/A | [
"-createdAt",
"name"
] | \ No newline at end of file +| `customers` | *string*[] | :heavy_minus_sign: | Array of customer IDs to filter projects by specific customers | [
"customer-1",
"customer-2"
] | +| `tags` | *string*[] | :heavy_minus_sign: | Array of tag IDs to filter projects by specific tags | [
"tag-1",
"tag-2"
] | +| `sort` | *string*[] | :heavy_minus_sign: | Sorting order as an array of field names. Prefix with '-' for descending order | [
"-createdAt",
"name"
] | \ No newline at end of file diff --git a/docs/models/operations/listtransactionsrequest.md b/docs/models/operations/listtransactionsrequest.md index a82a1a4..a7cb75d 100644 --- a/docs/models/operations/listtransactionsrequest.md +++ b/docs/models/operations/listtransactionsrequest.md @@ -49,6 +49,9 @@ let value: ListTransactionsRequest = { "299.99", ], type: "expense", + manual: "include", + exported: false, + fulfilled: true, }; ``` @@ -56,19 +59,22 @@ let value: ListTransactionsRequest = { | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `cursor` | *string* | :heavy_minus_sign: | N/A | eyJpZCI6IjEyMyJ9 | -| `sort` | *string*[] | :heavy_minus_sign: | N/A | [
"date",
"desc"
] | -| `pageSize` | *number* | :heavy_minus_sign: | N/A | 50 | -| `q` | *string* | :heavy_minus_sign: | N/A | office supplies | -| `categories` | *string*[] | :heavy_minus_sign: | N/A | [
"office-supplies",
"travel"
] | -| `tags` | *string*[] | :heavy_minus_sign: | N/A | [
"tag-1",
"tag-2"
] | -| `start` | *string* | :heavy_minus_sign: | N/A | 2024-04-01T00:00:00.000Z | -| `end` | *string* | :heavy_minus_sign: | N/A | 2024-04-30T23:59:59.999Z | -| `accounts` | *string*[] | :heavy_minus_sign: | N/A | [
"account-1",
"account-2"
] | -| `assignees` | *string*[] | :heavy_minus_sign: | N/A | [
"user-1",
"user-2"
] | -| `statuses` | *string*[] | :heavy_minus_sign: | N/A | [
"pending",
"completed"
] | -| `recurring` | *string*[] | :heavy_minus_sign: | N/A | [
"monthly",
"annually"
] | +| `cursor` | *string* | :heavy_minus_sign: | Cursor for pagination, representing the last item from the previous page | eyJpZCI6IjEyMyJ9 | +| `sort` | *string*[] | :heavy_minus_sign: | Sorting order as a tuple: [field, direction]. Example: ['date', 'desc'] or ['amount', 'asc'] | [
"date",
"desc"
] | +| `pageSize` | *number* | :heavy_minus_sign: | Number of transactions to return per page (1-10000) | 50 | +| `q` | *string* | :heavy_minus_sign: | Search query string to filter transactions by name, description, or other text fields | office supplies | +| `categories` | *string*[] | :heavy_minus_sign: | Array of category slugs to filter transactions by specific categories | [
"office-supplies",
"travel"
] | +| `tags` | *string*[] | :heavy_minus_sign: | Array of tag IDs to filter transactions by specific tags | [
"tag-1",
"tag-2"
] | +| `start` | *string* | :heavy_minus_sign: | Start date (inclusive) for filtering transactions in ISO 8601 format | 2024-04-01T00:00:00.000Z | +| `end` | *string* | :heavy_minus_sign: | End date (inclusive) for filtering transactions in ISO 8601 format | 2024-04-30T23:59:59.999Z | +| `accounts` | *string*[] | :heavy_minus_sign: | Array of bank account IDs to filter transactions by specific accounts | [
"account-1",
"account-2"
] | +| `assignees` | *string*[] | :heavy_minus_sign: | Array of user IDs to filter transactions by assigned users | [
"user-1",
"user-2"
] | +| `statuses` | *string*[] | :heavy_minus_sign: | Array of transaction statuses to filter by. Available statuses: 'pending', 'completed', 'archived', 'posted', 'excluded' | [
"pending",
"completed"
] | +| `recurring` | *string*[] | :heavy_minus_sign: | Array of recurring frequency values to filter by. Available frequencies: 'weekly', 'monthly', 'annually', 'irregular' | [
"monthly",
"annually"
] | | `attachments` | [operations.Attachments](../../models/operations/attachments.md) | :heavy_minus_sign: | Filter transactions based on attachment presence. 'include' returns only transactions with attachments, 'exclude' returns only transactions without attachments | include | -| `amountRange` | *number*[] | :heavy_minus_sign: | N/A | [
100,
1000
] | -| `amount` | *string*[] | :heavy_minus_sign: | N/A | [
"150.75",
"299.99"
] | -| `type` | [operations.ListTransactionsType](../../models/operations/listtransactionstype.md) | :heavy_minus_sign: | Transaction type to filter by. 'income' for money received, 'expense' for money spent | expense | \ No newline at end of file +| `amountRange` | *number*[] | :heavy_minus_sign: | Amount range as [min, max] to filter transactions by monetary value | [
100,
1000
] | +| `amount` | *string*[] | :heavy_minus_sign: | Array of specific amounts (as strings) to filter transactions by exact values | [
"150.75",
"299.99"
] | +| `type` | [operations.ListTransactionsType](../../models/operations/listtransactionstype.md) | :heavy_minus_sign: | Transaction type to filter by. 'income' for money received, 'expense' for money spent | expense | +| `manual` | [operations.Manual](../../models/operations/manual.md) | :heavy_minus_sign: | Filter transactions based on whether they were manually imported. 'include' returns only manual transactions, 'exclude' returns only non-manual transactions | include | +| `exported` | *boolean* | :heavy_minus_sign: | Filter by export status. true = only exported transactions, false = only NOT exported transactions, undefined = no filter | false | +| `fulfilled` | *boolean* | :heavy_minus_sign: | Filter by fulfillment status. true = transactions ready for review (has attachments OR status=completed), false = not ready, undefined = no filter | true | \ No newline at end of file diff --git a/docs/models/operations/manual.md b/docs/models/operations/manual.md new file mode 100644 index 0000000..e7e953f --- /dev/null +++ b/docs/models/operations/manual.md @@ -0,0 +1,17 @@ +# Manual + +Filter transactions based on whether they were manually imported. 'include' returns only manual transactions, 'exclude' returns only non-manual transactions + +## Example Usage + +```typescript +import { Manual } from "@midday-ai/sdk/models/operations"; + +let value: Manual = "include"; +``` + +## Values + +```typescript +"include" | "exclude" +``` \ No newline at end of file diff --git a/docs/models/operations/outlookoauthcallbackrequest.md b/docs/models/operations/outlookoauthcallbackrequest.md new file mode 100644 index 0000000..5cddcfd --- /dev/null +++ b/docs/models/operations/outlookoauthcallbackrequest.md @@ -0,0 +1,19 @@ +# OutlookOAuthCallbackRequest + +## Example Usage + +```typescript +import { OutlookOAuthCallbackRequest } from "@midday-ai/sdk/models/operations"; + +let value: OutlookOAuthCallbackRequest = { + state: "North Carolina", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| `code` | *string* | :heavy_minus_sign: | OAuth authorization code from Microsoft | +| `state` | *string* | :heavy_check_mark: | Encrypted OAuth state parameter | +| `error` | *string* | :heavy_minus_sign: | OAuth error code if authorization failed | \ No newline at end of file diff --git a/docs/models/operations/outlookoauthcallbackresponse.md b/docs/models/operations/outlookoauthcallbackresponse.md new file mode 100644 index 0000000..46d68ac --- /dev/null +++ b/docs/models/operations/outlookoauthcallbackresponse.md @@ -0,0 +1,28 @@ +# OutlookOAuthCallbackResponse + +## Example Usage + +```typescript +import { OutlookOAuthCallbackResponse } from "@midday-ai/sdk/models/operations"; + +let value: OutlookOAuthCallbackResponse = { + headers: { + "key": [ + "", + "", + "", + ], + "key1": [ + "", + "", + "", + ], + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------- | -------------------------- | -------------------------- | -------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/proxyfilerequest.md b/docs/models/operations/proxyfilerequest.md new file mode 100644 index 0000000..999d87b --- /dev/null +++ b/docs/models/operations/proxyfilerequest.md @@ -0,0 +1,19 @@ +# ProxyFileRequest + +## Example Usage + +```typescript +import { ProxyFileRequest } from "@midday-ai/sdk/models/operations"; + +let value: ProxyFileRequest = { + filePath: "vault/documents/2024/invoice.pdf", + fk: "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `filePath` | *string* | :heavy_check_mark: | Path to the file in storage. Can include or exclude 'vault/' prefix. | vault/documents/2024/invoice.pdf | +| `fk` | *string* | :heavy_check_mark: | Team file key for proxy/download access to team files. This key is returned in the user data response (GET /users/me) as the `fileKey` field. It is team-scoped and deterministic - all members of the same team share the same file key. Use this key to authenticate file access requests. | a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6 | \ No newline at end of file diff --git a/docs/models/operations/quickbooksoauthcallbackrequest.md b/docs/models/operations/quickbooksoauthcallbackrequest.md new file mode 100644 index 0000000..dfc516c --- /dev/null +++ b/docs/models/operations/quickbooksoauthcallbackrequest.md @@ -0,0 +1,20 @@ +# QuickBooksOAuthCallbackRequest + +## Example Usage + +```typescript +import { QuickBooksOAuthCallbackRequest } from "@midday-ai/sdk/models/operations"; + +let value: QuickBooksOAuthCallbackRequest = { + state: "Florida", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | +| `code` | *string* | :heavy_minus_sign: | OAuth authorization code from QuickBooks | +| `state` | *string* | :heavy_check_mark: | OAuth state parameter for CSRF protection | +| `realmId` | *string* | :heavy_minus_sign: | QuickBooks company/realm ID | +| `error` | *string* | :heavy_minus_sign: | OAuth error code if authorization failed | \ No newline at end of file diff --git a/docs/models/operations/quickbooksoauthcallbackresponse.md b/docs/models/operations/quickbooksoauthcallbackresponse.md new file mode 100644 index 0000000..fe92656 --- /dev/null +++ b/docs/models/operations/quickbooksoauthcallbackresponse.md @@ -0,0 +1,23 @@ +# QuickBooksOAuthCallbackResponse + +## Example Usage + +```typescript +import { QuickBooksOAuthCallbackResponse } from "@midday-ai/sdk/models/operations"; + +let value: QuickBooksOAuthCallbackResponse = { + headers: { + "key": [ + "", + "", + "", + ], + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------- | -------------------------- | -------------------------- | -------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/refreshtoken.md b/docs/models/operations/refreshtoken.md index 740793c..7b5ddd3 100644 --- a/docs/models/operations/refreshtoken.md +++ b/docs/models/operations/refreshtoken.md @@ -16,10 +16,10 @@ let value: RefreshToken = { ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `grantType` | [operations.GrantTypeRefreshToken](../../models/operations/granttyperefreshtoken.md) | :heavy_check_mark: | OAuth grant type, must be 'refresh_token' | refresh_token | -| `refreshToken` | *string* | :heavy_check_mark: | Refresh token received from token endpoint | mid_rt_abcdef123456789 | -| `clientId` | *string* | :heavy_check_mark: | Client ID of the OAuth application | mid_client_abcdef123456789 | -| `clientSecret` | *string* | :heavy_minus_sign: | Client secret of the OAuth application (required for confidential clients) | mid_secret_abcdef123456789 | -| `scope` | *string* | :heavy_minus_sign: | Space-separated list of requested scopes (optional) | transactions.read invoices.read | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | +| `grantType` | *"refresh_token"* | :heavy_check_mark: | OAuth grant type, must be 'refresh_token' | refresh_token | +| `refreshToken` | *string* | :heavy_check_mark: | Refresh token received from token endpoint | mid_rt_abcdef123456789 | +| `clientId` | *string* | :heavy_check_mark: | Client ID of the OAuth application | mid_client_abcdef123456789 | +| `clientSecret` | *string* | :heavy_minus_sign: | Client secret of the OAuth application (required for confidential clients) | mid_secret_abcdef123456789 | +| `scope` | *string* | :heavy_minus_sign: | Space-separated list of requested scopes (optional) | transactions.read invoices.read | \ No newline at end of file diff --git a/docs/models/operations/scope.md b/docs/models/operations/scope.md index 3ffb12e..ca61cbc 100644 --- a/docs/models/operations/scope.md +++ b/docs/models/operations/scope.md @@ -5,11 +5,11 @@ ```typescript import { Scope } from "@midday-ai/sdk/models/operations"; -let value: Scope = "customers.write"; +let value: Scope = "customers.read"; ``` ## Values ```typescript -"bank-accounts.read" | "bank-accounts.write" | "customers.read" | "customers.write" | "documents.read" | "documents.write" | "inbox.read" | "inbox.write" | "invoices.read" | "invoices.write" | "reports.read" | "search.read" | "tags.read" | "tags.write" | "teams.read" | "teams.write" | "tracker-entries.read" | "tracker-entries.write" | "tracker-projects.read" | "tracker-projects.write" | "transactions.read" | "transactions.write" | "users.read" | "users.write" | "notifications.read" | "notifications.write" | "apis.all" | "apis.read" +"bank-accounts.read" | "bank-accounts.write" | "chat.read" | "chat.write" | "customers.read" | "customers.write" | "documents.read" | "documents.write" | "inbox.read" | "inbox.write" | "invoices.read" | "invoices.write" | "reports.read" | "search.read" | "tags.read" | "tags.write" | "teams.read" | "teams.write" | "tracker-entries.read" | "tracker-entries.write" | "tracker-projects.read" | "tracker-projects.write" | "transactions.read" | "transactions.write" | "users.read" | "users.write" | "notifications.read" | "notifications.write" | "apis.all" | "apis.read" ``` \ No newline at end of file diff --git a/docs/models/operations/searchrequest.md b/docs/models/operations/searchrequest.md index a39edcb..e6cb1d6 100644 --- a/docs/models/operations/searchrequest.md +++ b/docs/models/operations/searchrequest.md @@ -13,10 +13,10 @@ let value: SearchRequest = { ## Fields -| Field | Type | Required | Description | Example | -| -------------------- | -------------------- | -------------------- | -------------------- | -------------------- | -| `searchTerm` | *string* | :heavy_minus_sign: | N/A | Acme | -| `language` | *string* | :heavy_minus_sign: | N/A | en | -| `limit` | *number* | :heavy_minus_sign: | N/A | 30 | -| `itemsPerTableLimit` | *number* | :heavy_minus_sign: | N/A | 5 | -| `relevanceThreshold` | *number* | :heavy_minus_sign: | N/A | 0.01 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| `searchTerm` | *string* | :heavy_minus_sign: | The term to search for across all data sources. | Acme | +| `language` | *string* | :heavy_minus_sign: | Language code to use for search relevance and results. | en | +| `limit` | *number* | :heavy_minus_sign: | Maximum number of results to return. | 30 | +| `itemsPerTableLimit` | *number* | :heavy_minus_sign: | Maximum number of results to return per table/entity. | 5 | +| `relevanceThreshold` | *number* | :heavy_minus_sign: | Minimum relevance score threshold for including a result. | 0.01 | \ No newline at end of file diff --git a/docs/models/operations/slackinteractionsresponse.md b/docs/models/operations/slackinteractionsresponse.md new file mode 100644 index 0000000..041139a --- /dev/null +++ b/docs/models/operations/slackinteractionsresponse.md @@ -0,0 +1,19 @@ +# SlackInteractionsResponse + +Interaction handled successfully + +## Example Usage + +```typescript +import { SlackInteractionsResponse } from "@midday-ai/sdk/models/operations"; + +let value: SlackInteractionsResponse = { + ok: false, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `ok` | *boolean* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/slackoauthcallbackrequest.md b/docs/models/operations/slackoauthcallbackrequest.md new file mode 100644 index 0000000..39cacda --- /dev/null +++ b/docs/models/operations/slackoauthcallbackrequest.md @@ -0,0 +1,19 @@ +# SlackOAuthCallbackRequest + +## Example Usage + +```typescript +import { SlackOAuthCallbackRequest } from "@midday-ai/sdk/models/operations"; + +let value: SlackOAuthCallbackRequest = { + code: "", + state: "Kentucky", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | +| `code` | *string* | :heavy_check_mark: | OAuth authorization code from Slack | +| `state` | *string* | :heavy_check_mark: | OAuth state parameter for CSRF protection | \ No newline at end of file diff --git a/docs/models/operations/slackoauthcallbackresponse.md b/docs/models/operations/slackoauthcallbackresponse.md new file mode 100644 index 0000000..b044761 --- /dev/null +++ b/docs/models/operations/slackoauthcallbackresponse.md @@ -0,0 +1,17 @@ +# SlackOAuthCallbackResponse + +## Example Usage + +```typescript +import { SlackOAuthCallbackResponse } from "@midday-ai/sdk/models/operations"; + +let value: SlackOAuthCallbackResponse = { + headers: {}, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------- | -------------------------- | -------------------------- | -------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/slackwebhookresponse.md b/docs/models/operations/slackwebhookresponse.md new file mode 100644 index 0000000..64b0f52 --- /dev/null +++ b/docs/models/operations/slackwebhookresponse.md @@ -0,0 +1,18 @@ +# SlackWebhookResponse + +Webhook processed successfully + +## Example Usage + +```typescript +import { SlackWebhookResponse } from "@midday-ai/sdk/models/operations"; + +let value: SlackWebhookResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `challenge` | *string* | :heavy_minus_sign: | N/A | +| `ok` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/starttimerdata.md b/docs/models/operations/starttimerdata.md index 53dfd2e..3c2d4f0 100644 --- a/docs/models/operations/starttimerdata.md +++ b/docs/models/operations/starttimerdata.md @@ -48,7 +48,7 @@ let value: StartTimerData = { | `createdAt` | *string* | :heavy_check_mark: | Date and time when the tracker entry was created in ISO 8601 format | 2024-04-15T09:00:00.000Z | | `duration` | *number* | :heavy_check_mark: | Duration of the timer entry in seconds. -1 indicates running, null for paused, positive number for completed | -1 | | `start` | *string* | :heavy_check_mark: | Start time of the tracker entry in ISO 8601 format | 2024-04-15T09:00:00.000Z | -| `stop` | *string* | :heavy_check_mark: | Stop time of the tracker entry in ISO 8601 format | 2024-04-15T17:00:00.000Z | +| `stop` | *string* | :heavy_check_mark: | Stop time of the tracker entry in ISO 8601 format. Null for running timers. | 2024-04-15T17:00:00.000Z | | `teamId` | *string* | :heavy_check_mark: | Unique identifier of the team that owns this tracker entry | team-1234 | | `description` | *string* | :heavy_check_mark: | Description or notes for the tracker entry | Worked on implementing user authentication feature | | `rate` | *number* | :heavy_check_mark: | Hourly rate applied to this tracker entry | 75 | diff --git a/docs/models/operations/stoptimerdata.md b/docs/models/operations/stoptimerdata.md index e097217..c4a2154 100644 --- a/docs/models/operations/stoptimerdata.md +++ b/docs/models/operations/stoptimerdata.md @@ -48,7 +48,7 @@ let value: StopTimerData = { | `createdAt` | *string* | :heavy_check_mark: | Date and time when the tracker entry was created in ISO 8601 format | 2024-04-15T09:00:00.000Z | | `duration` | *number* | :heavy_check_mark: | Duration of the timer entry in seconds. -1 indicates running, null for paused, positive number for completed | -1 | | `start` | *string* | :heavy_check_mark: | Start time of the tracker entry in ISO 8601 format | 2024-04-15T09:00:00.000Z | -| `stop` | *string* | :heavy_check_mark: | Stop time of the tracker entry in ISO 8601 format | 2024-04-15T17:00:00.000Z | +| `stop` | *string* | :heavy_check_mark: | Stop time of the tracker entry in ISO 8601 format. Null for running timers. | 2024-04-15T17:00:00.000Z | | `teamId` | *string* | :heavy_check_mark: | Unique identifier of the team that owns this tracker entry | team-1234 | | `description` | *string* | :heavy_check_mark: | Description or notes for the tracker entry | Worked on implementing user authentication feature | | `rate` | *number* | :heavy_check_mark: | Hourly rate applied to this tracker entry | 75 | diff --git a/docs/models/operations/stripeconnectcallbackrequest.md b/docs/models/operations/stripeconnectcallbackrequest.md new file mode 100644 index 0000000..ceea2f4 --- /dev/null +++ b/docs/models/operations/stripeconnectcallbackrequest.md @@ -0,0 +1,20 @@ +# StripeConnectCallbackRequest + +## Example Usage + +```typescript +import { StripeConnectCallbackRequest } from "@midday-ai/sdk/models/operations"; + +let value: StripeConnectCallbackRequest = { + state: "Oklahoma", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | +| `code` | *string* | :heavy_minus_sign: | OAuth authorization code from Stripe | +| `state` | *string* | :heavy_check_mark: | OAuth state parameter for CSRF protection | +| `error` | *string* | :heavy_minus_sign: | OAuth error code if authorization failed | +| `errorDescription` | *string* | :heavy_minus_sign: | OAuth error description | \ No newline at end of file diff --git a/docs/models/operations/stripeconnectcallbackresponse.md b/docs/models/operations/stripeconnectcallbackresponse.md new file mode 100644 index 0000000..b27c99a --- /dev/null +++ b/docs/models/operations/stripeconnectcallbackresponse.md @@ -0,0 +1,22 @@ +# StripeConnectCallbackResponse + +## Example Usage + +```typescript +import { StripeConnectCallbackResponse } from "@midday-ai/sdk/models/operations"; + +let value: StripeConnectCallbackResponse = { + headers: { + "key": [ + "", + "", + ], + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------- | -------------------------- | -------------------------- | -------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/stripewebhookresponse.md b/docs/models/operations/stripewebhookresponse.md new file mode 100644 index 0000000..8ddf1eb --- /dev/null +++ b/docs/models/operations/stripewebhookresponse.md @@ -0,0 +1,19 @@ +# StripeWebhookResponse + +Webhook processed successfully + +## Example Usage + +```typescript +import { StripeWebhookResponse } from "@midday-ai/sdk/models/operations"; + +let value: StripeWebhookResponse = { + received: true, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `received` | *boolean* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/template.md b/docs/models/operations/template.md index 069ad8f..8eb59be 100644 --- a/docs/models/operations/template.md +++ b/docs/models/operations/template.md @@ -10,6 +10,7 @@ import { Template } from "@midday-ai/sdk/models/operations"; let value: Template = { paymentDetails: {}, fromDetails: {}, + noteDetails: {}, }; ``` @@ -46,10 +47,14 @@ let value: Template = { | `sendCopy` | *boolean* | :heavy_minus_sign: | N/A | | | `includeUnits` | *boolean* | :heavy_minus_sign: | N/A | | | `includeQr` | *boolean* | :heavy_minus_sign: | N/A | | +| `includeLineItemTax` | *boolean* | :heavy_minus_sign: | N/A | | +| `lineItemTaxLabel` | *string* | :heavy_minus_sign: | N/A | | | `taxRate` | *number* | :heavy_minus_sign: | N/A | | | `vatRate` | *number* | :heavy_minus_sign: | N/A | | | `size` | [operations.Size](../../models/operations/size.md) | :heavy_minus_sign: | N/A | | | `deliveryType` | [operations.TemplateDeliveryType](../../models/operations/templatedeliverytype.md) | :heavy_minus_sign: | N/A | | | `locale` | *string* | :heavy_minus_sign: | N/A | | +| `paymentEnabled` | *boolean* | :heavy_minus_sign: | N/A | | | `paymentDetails` | [operations.TemplatePaymentDetails](../../models/operations/templatepaymentdetails.md) | :heavy_minus_sign: | Payment details in TipTap JSONContent format | {
"type": "doc",
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "Acme Inc",
"marks": [
{
"type": "bold"
}
]
}
]
},
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "123 Main St, City, Country"
}
]
},
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "Visit our website: "
},
{
"type": "text",
"text": "https://acme.com",
"marks": [
{
"type": "link",
"attrs": {
"href": "https://acme.com"
}
}
]
}
]
}
]
} | -| `fromDetails` | [operations.TemplateFromDetails](../../models/operations/templatefromdetails.md) | :heavy_minus_sign: | Sender details in TipTap JSONContent format | {
"type": "doc",
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "Acme Inc",
"marks": [
{
"type": "bold"
}
]
}
]
},
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "123 Main St, City, Country"
}
]
},
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "Visit our website: "
},
{
"type": "text",
"text": "https://acme.com",
"marks": [
{
"type": "link",
"attrs": {
"href": "https://acme.com"
}
}
]
}
]
}
]
} | \ No newline at end of file +| `fromDetails` | [operations.TemplateFromDetails](../../models/operations/templatefromdetails.md) | :heavy_minus_sign: | Sender details in TipTap JSONContent format | {
"type": "doc",
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "Acme Inc",
"marks": [
{
"type": "bold"
}
]
}
]
},
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "123 Main St, City, Country"
}
]
},
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "Visit our website: "
},
{
"type": "text",
"text": "https://acme.com",
"marks": [
{
"type": "link",
"attrs": {
"href": "https://acme.com"
}
}
]
}
]
}
]
} | +| `noteDetails` | [operations.TemplateNoteDetails](../../models/operations/templatenotedetails.md) | :heavy_minus_sign: | Default footer notes in TipTap JSONContent format for new invoices | {
"type": "doc",
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "Acme Inc",
"marks": [
{
"type": "bold"
}
]
}
]
},
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "123 Main St, City, Country"
}
]
},
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "Visit our website: "
},
{
"type": "text",
"text": "https://acme.com",
"marks": [
{
"type": "link",
"attrs": {
"href": "https://acme.com"
}
}
]
}
]
}
]
} | \ No newline at end of file diff --git a/docs/models/operations/templatenotedetails.md b/docs/models/operations/templatenotedetails.md new file mode 100644 index 0000000..f892c61 --- /dev/null +++ b/docs/models/operations/templatenotedetails.md @@ -0,0 +1,16 @@ +# TemplateNoteDetails + +Default footer notes in TipTap JSONContent format for new invoices + +## Example Usage + +```typescript +import { TemplateNoteDetails } from "@midday-ai/sdk/models/operations"; + +let value: TemplateNoteDetails = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/operations/updatebankaccountrequest.md b/docs/models/operations/updatebankaccountrequest.md index cbef12b..99dc845 100644 --- a/docs/models/operations/updatebankaccountrequest.md +++ b/docs/models/operations/updatebankaccountrequest.md @@ -14,5 +14,5 @@ let value: UpdateBankAccountRequest = { | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *string* | :heavy_check_mark: | N/A | b7e6c2a0-1f2d-4c3b-9a8e-123456789abc | +| `id` | *string* | :heavy_check_mark: | The unique identifier of the bank account. | b7e6c2a0-1f2d-4c3b-9a8e-123456789abc | | `requestBody` | [operations.UpdateBankAccountRequestBody](../../models/operations/updatebankaccountrequestbody.md) | :heavy_minus_sign: | N/A | {
"id": "b7e6c2a0-1f2d-4c3b-9a8e-123456789abc",
"name": "Checking Account",
"enabled": true,
"balance": 1500.75,
"type": "depository"
} | \ No newline at end of file diff --git a/docs/models/operations/updatecurrentuserresponse.md b/docs/models/operations/updatecurrentuserresponse.md index 27271c1..ade3cd4 100644 --- a/docs/models/operations/updatecurrentuserresponse.md +++ b/docs/models/operations/updatecurrentuserresponse.md @@ -18,6 +18,8 @@ let value: UpdateCurrentUserResponse = { timezoneAutoSync: true, timeFormat: 24, dateFormat: "yyyy-MM-dd", + fileKey: + "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0ZWFtSWQiOiIxMjM0NTY3OC05YWJjLWRlZmctMTIzNC01Njc4OTBhYmNkZWYifQ.signature", team: { id: "123e4567-e89b-12d3-a456-426614174000", name: "Acme Corporation", @@ -29,16 +31,17 @@ let value: UpdateCurrentUserResponse = { ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | -| `id` | *string* | :heavy_check_mark: | Unique identifier of the user | 123e4567-e89b-12d3-a456-426614174000 | -| `fullName` | *string* | :heavy_check_mark: | Full name of the user | Jane Doe | -| `email` | *string* | :heavy_check_mark: | Email address of the user | jane.doe@acme.com | -| `avatarUrl` | *string* | :heavy_check_mark: | URL to the user's avatar image | https://cdn.midday.ai/avatars/jane-doe.jpg | -| `locale` | *string* | :heavy_check_mark: | User's preferred locale for internationalization (language and region) | en-US | -| `weekStartsOnMonday` | *boolean* | :heavy_check_mark: | Whether the user's calendar week starts on Monday (true) or Sunday (false) | true | -| `timezone` | *string* | :heavy_check_mark: | User's timezone identifier in IANA Time Zone Database format | America/New_York | -| `timezoneAutoSync` | *boolean* | :heavy_check_mark: | Whether to automatically sync timezone with browser timezone | true | -| `timeFormat` | *number* | :heavy_check_mark: | User's preferred time format: 12 for 12-hour format, 24 for 24-hour format | 24 | -| `dateFormat` | [operations.UpdateCurrentUserDateFormatResponse](../../models/operations/updatecurrentuserdateformatresponse.md) | :heavy_check_mark: | User's preferred date format. Available options: 'dd/MM/yyyy', 'MM/dd/yyyy', 'yyyy-MM-dd', 'dd.MM.yyyy' | yyyy-MM-dd | -| `team` | [operations.UpdateCurrentUserTeam](../../models/operations/updatecurrentuserteam.md) | :heavy_check_mark: | Team information that the user belongs to | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *string* | :heavy_check_mark: | Unique identifier of the user | 123e4567-e89b-12d3-a456-426614174000 | +| `fullName` | *string* | :heavy_check_mark: | Full name of the user | Jane Doe | +| `email` | *string* | :heavy_check_mark: | Email address of the user | jane.doe@acme.com | +| `avatarUrl` | *string* | :heavy_check_mark: | URL to the user's avatar image | https://cdn.midday.ai/avatars/jane-doe.jpg | +| `locale` | *string* | :heavy_check_mark: | User's preferred locale for internationalization (language and region) | en-US | +| `weekStartsOnMonday` | *boolean* | :heavy_check_mark: | Whether the user's calendar week starts on Monday (true) or Sunday (false) | true | +| `timezone` | *string* | :heavy_check_mark: | User's timezone identifier in IANA Time Zone Database format | America/New_York | +| `timezoneAutoSync` | *boolean* | :heavy_check_mark: | Whether to automatically sync timezone with browser timezone | true | +| `timeFormat` | *number* | :heavy_check_mark: | User's preferred time format: 12 for 12-hour format, 24 for 24-hour format | 24 | +| `dateFormat` | [operations.UpdateCurrentUserDateFormatResponse](../../models/operations/updatecurrentuserdateformatresponse.md) | :heavy_check_mark: | User's preferred date format. Available options: 'dd/MM/yyyy', 'MM/dd/yyyy', 'yyyy-MM-dd', 'dd.MM.yyyy' | yyyy-MM-dd | +| `fileKey` | *string* | :heavy_check_mark: | Team file key (JWT token) for proxy/download access to team files. This compact JWT token contains the team ID and is shared by all team members. Use this token as the `fk` query parameter when accessing file endpoints (proxy, download). The token is team-scoped and provides access to files belonging to the user's team. Returns null if the user has no team. | eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0ZWFtSWQiOiIxMjM0NTY3OC05YWJjLWRlZmctMTIzNC01Njc4OTBhYmNkZWYifQ.signature | +| `team` | [operations.UpdateCurrentUserTeam](../../models/operations/updatecurrentuserteam.md) | :heavy_check_mark: | Team information that the user belongs to | | \ No newline at end of file diff --git a/docs/models/operations/updatecustomerrequest.md b/docs/models/operations/updatecustomerrequest.md index 839ae5d..4c76034 100644 --- a/docs/models/operations/updatecustomerrequest.md +++ b/docs/models/operations/updatecustomerrequest.md @@ -14,5 +14,5 @@ let value: UpdateCustomerRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `id` | *string* | :heavy_check_mark: | N/A | b3b7c1e2-4c2a-4e7a-9c1a-2b7c1e24c2a4 | +| `id` | *string* | :heavy_check_mark: | Unique identifier of the customer to retrieve | b3b7c1e2-4c2a-4e7a-9c1a-2b7c1e24c2a4 | | `requestBody` | [operations.UpdateCustomerRequestBody](../../models/operations/updatecustomerrequestbody.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/updatenotificationstatusrequest.md b/docs/models/operations/updatenotificationstatusrequest.md index c86f222..24b7962 100644 --- a/docs/models/operations/updatenotificationstatusrequest.md +++ b/docs/models/operations/updatenotificationstatusrequest.md @@ -14,5 +14,5 @@ let value: UpdateNotificationStatusRequest = { | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | -| `notificationId` | *string* | :heavy_check_mark: | N/A | b3b6e2c2-1f2a-4e3b-9c1d-2a4b6e2c21f2 | +| `notificationId` | *string* | :heavy_check_mark: | The ID of the notification to update | b3b6e2c2-1f2a-4e3b-9c1d-2a4b6e2c21f2 | | `requestBody` | [operations.UpdateNotificationStatusRequestBody](../../models/operations/updatenotificationstatusrequestbody.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/updatetagrequest.md b/docs/models/operations/updatetagrequest.md index 433a289..e223f94 100644 --- a/docs/models/operations/updatetagrequest.md +++ b/docs/models/operations/updatetagrequest.md @@ -14,5 +14,5 @@ let value: UpdateTagRequest = { | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `id` | *string* | :heavy_check_mark: | N/A | b3b7c8e2-1f2a-4c3d-9e4f-5a6b7c8d9e0f | +| `id` | *string* | :heavy_check_mark: | The ID of the tag to update. | b3b7c8e2-1f2a-4c3d-9e4f-5a6b7c8d9e0f | | `requestBody` | [operations.UpdateTagRequestBody](../../models/operations/updatetagrequestbody.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/updateteambyidrequest.md b/docs/models/operations/updateteambyidrequest.md index 553c7bc..520e6c5 100644 --- a/docs/models/operations/updateteambyidrequest.md +++ b/docs/models/operations/updateteambyidrequest.md @@ -14,5 +14,5 @@ let value: UpdateTeamByIdRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `id` | *string* | :heavy_check_mark: | N/A | 123e4567-e89b-12d3-a456-426614174000 | +| `id` | *string* | :heavy_check_mark: | Unique identifier of the team | 123e4567-e89b-12d3-a456-426614174000 | | `requestBody` | [operations.UpdateTeamByIdRequestBody](../../models/operations/updateteambyidrequestbody.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/updateteambyidrequestbody.md b/docs/models/operations/updateteambyidrequestbody.md index f92c708..16459e0 100644 --- a/docs/models/operations/updateteambyidrequestbody.md +++ b/docs/models/operations/updateteambyidrequestbody.md @@ -11,15 +11,18 @@ let value: UpdateTeamByIdRequestBody = { logoUrl: "https://cdn.midday.ai/logos/acme-corp.png", baseCurrency: "USD", countryCode: "US", + fiscalYearStartMonth: 4, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | -| `name` | *string* | :heavy_minus_sign: | Name of the team or organization. Must be between 2 and 32 characters | Acme Corporation | -| `email` | *string* | :heavy_minus_sign: | Primary contact email address for the team | team@acme.com | -| `logoUrl` | *string* | :heavy_minus_sign: | URL to the team's logo image. Must be hosted on midday.ai domain | https://cdn.midday.ai/logos/acme-corp.png | -| `baseCurrency` | *string* | :heavy_minus_sign: | Base currency for the team in ISO 4217 format (3-letter currency code) | USD | -| `countryCode` | *string* | :heavy_minus_sign: | Country code for the team | US | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | +| `name` | *string* | :heavy_minus_sign: | Name of the team or organization. Must be between 2 and 32 characters | Acme Corporation | +| `email` | *string* | :heavy_minus_sign: | Primary contact email address for the team | team@acme.com | +| `logoUrl` | *string* | :heavy_minus_sign: | URL to the team's logo image. Must be hosted on midday.ai domain | https://cdn.midday.ai/logos/acme-corp.png | +| `baseCurrency` | *string* | :heavy_minus_sign: | Base currency for the team in ISO 4217 format (3-letter currency code) | USD | +| `countryCode` | *string* | :heavy_minus_sign: | Country code for the team | US | +| `fiscalYearStartMonth` | *number* | :heavy_minus_sign: | Month when the fiscal year starts (1-12). Null for trailing 12 months. Defaults based on country if not specified. | 4 | +| `exportSettings` | [operations.ExportSettings](../../models/operations/exportsettings.md) | :heavy_minus_sign: | Export settings for transactions | | \ No newline at end of file diff --git a/docs/models/operations/updatetrackerentryrequest.md b/docs/models/operations/updatetrackerentryrequest.md index f861de1..1a3a92e 100644 --- a/docs/models/operations/updatetrackerentryrequest.md +++ b/docs/models/operations/updatetrackerentryrequest.md @@ -14,5 +14,5 @@ let value: UpdateTrackerEntryRequest = { | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `id` | *string* | :heavy_check_mark: | N/A | b3b6e2c2-1f2a-4e3b-9c1d-2a4b6e2c21f2 | +| `id` | *string* | :heavy_check_mark: | Unique identifier of the tracker entry to delete | b3b6e2c2-1f2a-4e3b-9c1d-2a4b6e2c21f2 | | `requestBody` | [operations.UpdateTrackerEntryRequestBody](../../models/operations/updatetrackerentryrequestbody.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/updatetrackerprojectrequest.md b/docs/models/operations/updatetrackerprojectrequest.md index 93a1eea..9e3fab8 100644 --- a/docs/models/operations/updatetrackerprojectrequest.md +++ b/docs/models/operations/updatetrackerprojectrequest.md @@ -14,5 +14,5 @@ let value: UpdateTrackerProjectRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -| `id` | *string* | :heavy_check_mark: | N/A | b7e6c8e2-1f2a-4c3b-9e2d-1a2b3c4d5e6f | +| `id` | *string* | :heavy_check_mark: | Unique identifier of the project to retrieve | b7e6c8e2-1f2a-4c3b-9e2d-1a2b3c4d5e6f | | `requestBody` | [operations.UpdateTrackerProjectRequestBody](../../models/operations/updatetrackerprojectrequestbody.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/updatetransactionrequest.md b/docs/models/operations/updatetransactionrequest.md index aafd7fe..d85f46d 100644 --- a/docs/models/operations/updatetransactionrequest.md +++ b/docs/models/operations/updatetransactionrequest.md @@ -14,5 +14,5 @@ let value: UpdateTransactionRequest = { | Field | Type | Required | Description | | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `id` | *string* | :heavy_check_mark: | N/A | +| `id` | *string* | :heavy_check_mark: | Transaction ID (UUID). | | `requestBody` | [operations.UpdateTransactionRequestBody](../../models/operations/updatetransactionrequestbody.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/updatetransactionrequestbody.md b/docs/models/operations/updatetransactionrequestbody.md index cefa9ff..896b947 100644 --- a/docs/models/operations/updatetransactionrequestbody.md +++ b/docs/models/operations/updatetransactionrequestbody.md @@ -10,12 +10,19 @@ let value: UpdateTransactionRequestBody = {}; ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `categorySlug` | *string* | :heavy_minus_sign: | Category slug for the transaction. | -| `status` | [operations.UpdateTransactionStatus](../../models/operations/updatetransactionstatus.md) | :heavy_minus_sign: | Status of the transaction. | -| `internal` | *boolean* | :heavy_minus_sign: | Whether the transaction is internal. | -| `recurring` | *boolean* | :heavy_minus_sign: | Whether the transaction is recurring. | -| `frequency` | [operations.UpdateTransactionFrequency](../../models/operations/updatetransactionfrequency.md) | :heavy_minus_sign: | Recurring frequency of the transaction. | -| `note` | *string* | :heavy_minus_sign: | Note for the transaction. | -| `assignedId` | *string* | :heavy_minus_sign: | Assigned user ID for the transaction. | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | +| `name` | *string* | :heavy_minus_sign: | Name/description of the transaction. | +| `amount` | *number* | :heavy_minus_sign: | Amount of the transaction. | +| `currency` | *string* | :heavy_minus_sign: | Currency of the transaction. | +| `date` | *string* | :heavy_minus_sign: | Date of the transaction (ISO 8601). | +| `bankAccountId` | *string* | :heavy_minus_sign: | Bank account ID associated with the transaction. | +| `categorySlug` | *string* | :heavy_minus_sign: | Category slug for the transaction. | +| `status` | [operations.UpdateTransactionStatus](../../models/operations/updatetransactionstatus.md) | :heavy_minus_sign: | Status of the transaction. | +| `internal` | *boolean* | :heavy_minus_sign: | Whether the transaction is internal. | +| `recurring` | *boolean* | :heavy_minus_sign: | Whether the transaction is recurring. | +| `frequency` | [operations.UpdateTransactionFrequency](../../models/operations/updatetransactionfrequency.md) | :heavy_minus_sign: | Recurring frequency of the transaction. | +| `note` | *string* | :heavy_minus_sign: | Note for the transaction. | +| `assignedId` | *string* | :heavy_minus_sign: | Assigned user ID for the transaction. | +| `taxRate` | *number* | :heavy_minus_sign: | Tax rate as a percentage (e.g., 25 for 25% VAT). Only set when tax is calculated from a percentage. | +| `taxAmount` | *number* | :heavy_minus_sign: | Tax amount in the transaction currency. Always set when tax is present. | \ No newline at end of file diff --git a/docs/models/operations/updatetransactionsstatus.md b/docs/models/operations/updatetransactionsstatus.md index 844dbd7..a29c067 100644 --- a/docs/models/operations/updatetransactionsstatus.md +++ b/docs/models/operations/updatetransactionsstatus.md @@ -13,5 +13,5 @@ let value: UpdateTransactionsStatus = "pending"; ## Values ```typescript -"pending" | "archived" | "completed" | "posted" | "excluded" +"pending" | "archived" | "completed" | "posted" | "excluded" | "exported" ``` \ No newline at end of file diff --git a/docs/models/operations/updatetransactionstatus.md b/docs/models/operations/updatetransactionstatus.md index d8d2a39..9e7b023 100644 --- a/docs/models/operations/updatetransactionstatus.md +++ b/docs/models/operations/updatetransactionstatus.md @@ -13,5 +13,5 @@ let value: UpdateTransactionStatus = "archived"; ## Values ```typescript -"pending" | "archived" | "completed" | "posted" | "excluded" +"pending" | "archived" | "completed" | "posted" | "excluded" | "exported" ``` \ No newline at end of file diff --git a/docs/models/operations/whatsappwebhookresponse.md b/docs/models/operations/whatsappwebhookresponse.md new file mode 100644 index 0000000..0f21565 --- /dev/null +++ b/docs/models/operations/whatsappwebhookresponse.md @@ -0,0 +1,19 @@ +# WhatsappWebhookResponse + +Webhook processed successfully + +## Example Usage + +```typescript +import { WhatsappWebhookResponse } from "@midday-ai/sdk/models/operations"; + +let value: WhatsappWebhookResponse = { + success: false, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `success` | *boolean* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/whatsappwebhookverifyrequest.md b/docs/models/operations/whatsappwebhookverifyrequest.md new file mode 100644 index 0000000..68f13f7 --- /dev/null +++ b/docs/models/operations/whatsappwebhookverifyrequest.md @@ -0,0 +1,21 @@ +# WhatsappWebhookVerifyRequest + +## Example Usage + +```typescript +import { WhatsappWebhookVerifyRequest } from "@midday-ai/sdk/models/operations"; + +let value: WhatsappWebhookVerifyRequest = { + hubMode: "", + hubVerifyToken: "", + hubChallenge: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `hubMode` | *string* | :heavy_check_mark: | N/A | +| `hubVerifyToken` | *string* | :heavy_check_mark: | N/A | +| `hubChallenge` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/xerooauthcallbackrequest.md b/docs/models/operations/xerooauthcallbackrequest.md new file mode 100644 index 0000000..4b37a43 --- /dev/null +++ b/docs/models/operations/xerooauthcallbackrequest.md @@ -0,0 +1,19 @@ +# XeroOAuthCallbackRequest + +## Example Usage + +```typescript +import { XeroOAuthCallbackRequest } from "@midday-ai/sdk/models/operations"; + +let value: XeroOAuthCallbackRequest = { + state: "Montana", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | +| `code` | *string* | :heavy_minus_sign: | OAuth authorization code from Xero | +| `state` | *string* | :heavy_check_mark: | OAuth state parameter for CSRF protection | +| `error` | *string* | :heavy_minus_sign: | OAuth error code if authorization failed | \ No newline at end of file diff --git a/docs/models/operations/xerooauthcallbackresponse.md b/docs/models/operations/xerooauthcallbackresponse.md new file mode 100644 index 0000000..56d86c3 --- /dev/null +++ b/docs/models/operations/xerooauthcallbackresponse.md @@ -0,0 +1,22 @@ +# XeroOAuthCallbackResponse + +## Example Usage + +```typescript +import { XeroOAuthCallbackResponse } from "@midday-ai/sdk/models/operations"; + +let value: XeroOAuthCallbackResponse = { + headers: { + "key": [ + "", + ], + "key1": [], + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------- | -------------------------- | -------------------------- | -------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdks/bankaccounts/README.md b/docs/sdks/bankaccounts/README.md index cfcc0eb..b44bc4b 100644 --- a/docs/sdks/bankaccounts/README.md +++ b/docs/sdks/bankaccounts/README.md @@ -1,5 +1,4 @@ # BankAccounts -(*bankAccounts*) ## Overview diff --git a/docs/sdks/customers/README.md b/docs/sdks/customers/README.md index c4cc6de..4f29c9c 100644 --- a/docs/sdks/customers/README.md +++ b/docs/sdks/customers/README.md @@ -1,5 +1,4 @@ # Customers -(*customers*) ## Overview diff --git a/docs/sdks/documents/README.md b/docs/sdks/documents/README.md index be21ae4..00e6776 100644 --- a/docs/sdks/documents/README.md +++ b/docs/sdks/documents/README.md @@ -1,5 +1,4 @@ # Documents -(*documents*) ## Overview diff --git a/docs/sdks/files/README.md b/docs/sdks/files/README.md new file mode 100644 index 0000000..1c2a722 --- /dev/null +++ b/docs/sdks/files/README.md @@ -0,0 +1,261 @@ +# Files + +## Overview + +### Available Operations + +* [proxy](#proxy) - Proxy file from storage +* [downloadFile](#downloadfile) - Download file from vault +* [downloadInvoice](#downloadinvoice) - Download invoice PDF + +## proxy + +Proxies a file from storage. Requires team file key (fk) query parameter for access. + +### Example Usage + + +```typescript +import { Midday } from "@midday-ai/sdk"; + +const midday = new Midday({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const result = await midday.files.proxy({ + filePath: "vault/documents/2024/invoice.pdf", + fk: "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6", + }); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { MiddayCore } from "@midday-ai/sdk/core.js"; +import { filesProxy } from "@midday-ai/sdk/funcs/filesProxy.js"; + +// Use `MiddayCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const midday = new MiddayCore({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const res = await filesProxy(midday, { + filePath: "vault/documents/2024/invoice.pdf", + fk: "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6", + }); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("filesProxy failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.ProxyFileRequest](../../models/operations/proxyfilerequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[ReadableStream](../../models/.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| errors.ProxyFileBadRequestError | 400 | application/json | +| errors.ProxyFileNotFoundError | 404 | application/json | +| errors.ProxyFileInternalServerError | 500 | application/json | +| errors.APIError | 4XX, 5XX | \*/\* | + +## downloadFile + +Downloads a file from the vault storage bucket. Requires team file key (fk) query parameter for access. + +### Example Usage + + +```typescript +import { Midday } from "@midday-ai/sdk"; + +const midday = new Midday({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const result = await midday.files.downloadFile({ + path: "vault/documents/2024/invoice.pdf", + filename: "invoice.pdf", + fk: "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6", + }); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { MiddayCore } from "@midday-ai/sdk/core.js"; +import { filesDownloadFile } from "@midday-ai/sdk/funcs/filesDownloadFile.js"; + +// Use `MiddayCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const midday = new MiddayCore({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const res = await filesDownloadFile(midday, { + path: "vault/documents/2024/invoice.pdf", + filename: "invoice.pdf", + fk: "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6", + }); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("filesDownloadFile failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.DownloadFileRequest](../../models/operations/downloadfilerequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[ReadableStream](../../models/.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| -------------------------------------- | -------------------------------------- | -------------------------------------- | +| errors.DownloadFileBadRequestError | 400 | application/json | +| errors.DownloadFileUnauthorizedError | 401 | application/json | +| errors.DownloadFileNotFoundError | 404 | application/json | +| errors.DownloadFileInternalServerError | 500 | application/json | +| errors.APIError | 4XX, 5XX | \*/\* | + +## downloadInvoice + +Downloads an invoice as a PDF. Can be accessed with an invoice ID (requires team file key via fk query parameter) or invoice token (public access). + +### Example Usage + + +```typescript +import { Midday } from "@midday-ai/sdk"; + +const midday = new Midday({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const result = await midday.files.downloadInvoice({ + id: "b3b7c1e2-4c2a-4e7a-9c1a-2b7c1e24c2a4", + fk: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", + token: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", + }); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { MiddayCore } from "@midday-ai/sdk/core.js"; +import { filesDownloadInvoice } from "@midday-ai/sdk/funcs/filesDownloadInvoice.js"; + +// Use `MiddayCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const midday = new MiddayCore({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const res = await filesDownloadInvoice(midday, { + id: "b3b7c1e2-4c2a-4e7a-9c1a-2b7c1e24c2a4", + fk: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", + token: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", + }); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("filesDownloadInvoice failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.DownloadInvoiceRequest](../../models/operations/downloadinvoicerequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[ReadableStream](../../models/.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | +| errors.DownloadInvoiceBadRequestError | 400 | application/json | +| errors.DownloadInvoiceUnauthorizedError | 401 | application/json | +| errors.DownloadInvoiceNotFoundError | 404 | application/json | +| errors.DownloadInvoiceInternalServerError | 500 | application/json | +| errors.APIError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/inbox/README.md b/docs/sdks/inbox/README.md index 5cea036..4873ac0 100644 --- a/docs/sdks/inbox/README.md +++ b/docs/sdks/inbox/README.md @@ -1,5 +1,4 @@ # Inbox -(*inbox*) ## Overview diff --git a/docs/sdks/integrations/README.md b/docs/sdks/integrations/README.md new file mode 100644 index 0000000..5a3a5f5 --- /dev/null +++ b/docs/sdks/integrations/README.md @@ -0,0 +1,1066 @@ +# Integrations + +## Overview + +### Available Operations + +* [slackOAuthCallback](#slackoauthcallback) - Slack OAuth callback +* [getSlackInstallUrl](#getslackinstallurl) - Get Slack install URL +* [slackWebhook](#slackwebhook) - Slack webhook handler +* [slackInteractions](#slackinteractions) - Slack interactions handler +* [gmailOAuthCallback](#gmailoauthcallback) - Gmail OAuth callback +* [getGmailInstallUrl](#getgmailinstallurl) - Get Gmail install URL +* [outlookOAuthCallback](#outlookoauthcallback) - Outlook OAuth callback +* [getOutlookInstallUrl](#getoutlookinstallurl) - Get Outlook install URL +* [xeroOAuthCallback](#xerooauthcallback) - Xero OAuth callback +* [getXeroInstallUrl](#getxeroinstallurl) - Get Xero install URL +* [quickBooksOAuthCallback](#quickbooksoauthcallback) - QuickBooks OAuth callback +* [getQuickBooksInstallUrl](#getquickbooksinstallurl) - Get QuickBooks install URL +* [fortnoxOAuthCallback](#fortnoxoauthcallback) - Fortnox OAuth callback +* [getFortnoxInstallUrl](#getfortnoxinstallurl) - Get Fortnox install URL + +## slackOAuthCallback + +Handles OAuth callback from Slack after user authorization. Exchanges authorization code for access token and creates app integration. + +### Example Usage + + +```typescript +import { Midday } from "@midday-ai/sdk"; + +const midday = new Midday({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const result = await midday.integrations.slackOAuthCallback({ + code: "", + state: "North Carolina", + }); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { MiddayCore } from "@midday-ai/sdk/core.js"; +import { integrationsSlackOAuthCallback } from "@midday-ai/sdk/funcs/integrationsSlackOAuthCallback.js"; + +// Use `MiddayCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const midday = new MiddayCore({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const res = await integrationsSlackOAuthCallback(midday, { + code: "", + state: "North Carolina", + }); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("integrationsSlackOAuthCallback failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.SlackOAuthCallbackRequest](../../models/operations/slackoauthcallbackrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[operations.SlackOAuthCallbackResponse](../../models/operations/slackoauthcallbackresponse.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | +| errors.SlackOAuthCallbackBadRequestError | 400 | application/json | +| errors.SlackOAuthCallbackInternalServerError | 500 | application/json | +| errors.APIError | 4XX, 5XX | \*/\* | + +## getSlackInstallUrl + +Generates OAuth install URL for Slack integration. Requires authentication. + +### Example Usage + + +```typescript +import { Midday } from "@midday-ai/sdk"; + +const midday = new Midday({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const result = await midday.integrations.getSlackInstallUrl(); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { MiddayCore } from "@midday-ai/sdk/core.js"; +import { integrationsGetSlackInstallUrl } from "@midday-ai/sdk/funcs/integrationsGetSlackInstallUrl.js"; + +// Use `MiddayCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const midday = new MiddayCore({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const res = await integrationsGetSlackInstallUrl(midday); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("integrationsGetSlackInstallUrl failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[operations.GetSlackInstallUrlResponse](../../models/operations/getslackinstallurlresponse.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.APIError | 4XX, 5XX | \*/\* | + +## slackWebhook + +Handles incoming webhook events from Slack. Verifies request signature and processes events. + +### Example Usage + + +```typescript +import { Midday } from "@midday-ai/sdk"; + +const midday = new Midday({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const result = await midday.integrations.slackWebhook(); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { MiddayCore } from "@midday-ai/sdk/core.js"; +import { integrationsSlackWebhook } from "@midday-ai/sdk/funcs/integrationsSlackWebhook.js"; + +// Use `MiddayCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const midday = new MiddayCore({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const res = await integrationsSlackWebhook(midday); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("integrationsSlackWebhook failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[operations.SlackWebhookResponse](../../models/operations/slackwebhookresponse.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.APIError | 4XX, 5XX | \*/\* | + +## slackInteractions + +Handles interactive component actions from Slack (button clicks, etc.) + +### Example Usage + + +```typescript +import { Midday } from "@midday-ai/sdk"; + +const midday = new Midday({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const result = await midday.integrations.slackInteractions(); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { MiddayCore } from "@midday-ai/sdk/core.js"; +import { integrationsSlackInteractions } from "@midday-ai/sdk/funcs/integrationsSlackInteractions.js"; + +// Use `MiddayCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const midday = new MiddayCore({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const res = await integrationsSlackInteractions(midday); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("integrationsSlackInteractions failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[operations.SlackInteractionsResponse](../../models/operations/slackinteractionsresponse.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.APIError | 4XX, 5XX | \*/\* | + +## gmailOAuthCallback + +Handles OAuth callback from Google after user authorization. Exchanges authorization code for access token and creates inbox account. + +### Example Usage + + +```typescript +import { Midday } from "@midday-ai/sdk"; + +const midday = new Midday({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const result = await midday.integrations.gmailOAuthCallback({ + state: "Delaware", + }); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { MiddayCore } from "@midday-ai/sdk/core.js"; +import { integrationsGmailOAuthCallback } from "@midday-ai/sdk/funcs/integrationsGmailOAuthCallback.js"; + +// Use `MiddayCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const midday = new MiddayCore({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const res = await integrationsGmailOAuthCallback(midday, { + state: "Delaware", + }); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("integrationsGmailOAuthCallback failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.GmailOAuthCallbackRequest](../../models/operations/gmailoauthcallbackrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[operations.GmailOAuthCallbackResponse](../../models/operations/gmailoauthcallbackresponse.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | +| errors.GmailOAuthCallbackBadRequestError | 400 | application/json | +| errors.GmailOAuthCallbackInternalServerError | 500 | application/json | +| errors.APIError | 4XX, 5XX | \*/\* | + +## getGmailInstallUrl + +Generates OAuth install URL for Gmail integration. Requires authentication. + +### Example Usage + + +```typescript +import { Midday } from "@midday-ai/sdk"; + +const midday = new Midday({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const result = await midday.integrations.getGmailInstallUrl(); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { MiddayCore } from "@midday-ai/sdk/core.js"; +import { integrationsGetGmailInstallUrl } from "@midday-ai/sdk/funcs/integrationsGetGmailInstallUrl.js"; + +// Use `MiddayCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const midday = new MiddayCore({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const res = await integrationsGetGmailInstallUrl(midday); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("integrationsGetGmailInstallUrl failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[operations.GetGmailInstallUrlResponse](../../models/operations/getgmailinstallurlresponse.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.APIError | 4XX, 5XX | \*/\* | + +## outlookOAuthCallback + +Handles OAuth callback from Microsoft after user authorization. Exchanges authorization code for access token and creates inbox account. + +### Example Usage + + +```typescript +import { Midday } from "@midday-ai/sdk"; + +const midday = new Midday({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const result = await midday.integrations.outlookOAuthCallback({ + state: "New Hampshire", + }); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { MiddayCore } from "@midday-ai/sdk/core.js"; +import { integrationsOutlookOAuthCallback } from "@midday-ai/sdk/funcs/integrationsOutlookOAuthCallback.js"; + +// Use `MiddayCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const midday = new MiddayCore({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const res = await integrationsOutlookOAuthCallback(midday, { + state: "New Hampshire", + }); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("integrationsOutlookOAuthCallback failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.OutlookOAuthCallbackRequest](../../models/operations/outlookoauthcallbackrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[operations.OutlookOAuthCallbackResponse](../../models/operations/outlookoauthcallbackresponse.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | +| errors.OutlookOAuthCallbackBadRequestError | 400 | application/json | +| errors.OutlookOAuthCallbackInternalServerError | 500 | application/json | +| errors.APIError | 4XX, 5XX | \*/\* | + +## getOutlookInstallUrl + +Generates OAuth install URL for Outlook integration. Requires authentication. + +### Example Usage + + +```typescript +import { Midday } from "@midday-ai/sdk"; + +const midday = new Midday({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const result = await midday.integrations.getOutlookInstallUrl(); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { MiddayCore } from "@midday-ai/sdk/core.js"; +import { integrationsGetOutlookInstallUrl } from "@midday-ai/sdk/funcs/integrationsGetOutlookInstallUrl.js"; + +// Use `MiddayCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const midday = new MiddayCore({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const res = await integrationsGetOutlookInstallUrl(midday); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("integrationsGetOutlookInstallUrl failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[operations.GetOutlookInstallUrlResponse](../../models/operations/getoutlookinstallurlresponse.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.APIError | 4XX, 5XX | \*/\* | + +## xeroOAuthCallback + +Handles OAuth callback from Xero after user authorization. Exchanges authorization code for access token and creates app integration. + +### Example Usage + + +```typescript +import { Midday } from "@midday-ai/sdk"; + +const midday = new Midday({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const result = await midday.integrations.xeroOAuthCallback({ + state: "Maryland", + }); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { MiddayCore } from "@midday-ai/sdk/core.js"; +import { integrationsXeroOAuthCallback } from "@midday-ai/sdk/funcs/integrationsXeroOAuthCallback.js"; + +// Use `MiddayCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const midday = new MiddayCore({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const res = await integrationsXeroOAuthCallback(midday, { + state: "Maryland", + }); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("integrationsXeroOAuthCallback failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.XeroOAuthCallbackRequest](../../models/operations/xerooauthcallbackrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[operations.XeroOAuthCallbackResponse](../../models/operations/xerooauthcallbackresponse.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.APIError | 4XX, 5XX | \*/\* | + +## getXeroInstallUrl + +Generates OAuth install URL for Xero integration. Requires authentication. + +### Example Usage + + +```typescript +import { Midday } from "@midday-ai/sdk"; + +const midday = new Midday({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const result = await midday.integrations.getXeroInstallUrl(); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { MiddayCore } from "@midday-ai/sdk/core.js"; +import { integrationsGetXeroInstallUrl } from "@midday-ai/sdk/funcs/integrationsGetXeroInstallUrl.js"; + +// Use `MiddayCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const midday = new MiddayCore({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const res = await integrationsGetXeroInstallUrl(midday); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("integrationsGetXeroInstallUrl failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[operations.GetXeroInstallUrlResponse](../../models/operations/getxeroinstallurlresponse.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.APIError | 4XX, 5XX | \*/\* | + +## quickBooksOAuthCallback + +Handles OAuth callback from QuickBooks after user authorization. Exchanges authorization code for access token and creates app integration. + +### Example Usage + + +```typescript +import { Midday } from "@midday-ai/sdk"; + +const midday = new Midday({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const result = await midday.integrations.quickBooksOAuthCallback({ + state: "Georgia", + }); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { MiddayCore } from "@midday-ai/sdk/core.js"; +import { integrationsQuickBooksOAuthCallback } from "@midday-ai/sdk/funcs/integrationsQuickBooksOAuthCallback.js"; + +// Use `MiddayCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const midday = new MiddayCore({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const res = await integrationsQuickBooksOAuthCallback(midday, { + state: "Georgia", + }); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("integrationsQuickBooksOAuthCallback failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.QuickBooksOAuthCallbackRequest](../../models/operations/quickbooksoauthcallbackrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[operations.QuickBooksOAuthCallbackResponse](../../models/operations/quickbooksoauthcallbackresponse.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.APIError | 4XX, 5XX | \*/\* | + +## getQuickBooksInstallUrl + +Generates OAuth install URL for QuickBooks integration. Requires authentication. + +### Example Usage + + +```typescript +import { Midday } from "@midday-ai/sdk"; + +const midday = new Midday({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const result = await midday.integrations.getQuickBooksInstallUrl(); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { MiddayCore } from "@midday-ai/sdk/core.js"; +import { integrationsGetQuickBooksInstallUrl } from "@midday-ai/sdk/funcs/integrationsGetQuickBooksInstallUrl.js"; + +// Use `MiddayCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const midday = new MiddayCore({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const res = await integrationsGetQuickBooksInstallUrl(midday); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("integrationsGetQuickBooksInstallUrl failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[operations.GetQuickBooksInstallUrlResponse](../../models/operations/getquickbooksinstallurlresponse.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.APIError | 4XX, 5XX | \*/\* | + +## fortnoxOAuthCallback + +Handles OAuth callback from Fortnox after user authorization. Exchanges authorization code for access token and creates app integration. + +### Example Usage + + +```typescript +import { Midday } from "@midday-ai/sdk"; + +const midday = new Midday({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const result = await midday.integrations.fortnoxOAuthCallback({ + state: "South Dakota", + }); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { MiddayCore } from "@midday-ai/sdk/core.js"; +import { integrationsFortnoxOAuthCallback } from "@midday-ai/sdk/funcs/integrationsFortnoxOAuthCallback.js"; + +// Use `MiddayCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const midday = new MiddayCore({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const res = await integrationsFortnoxOAuthCallback(midday, { + state: "South Dakota", + }); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("integrationsFortnoxOAuthCallback failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.FortnoxOAuthCallbackRequest](../../models/operations/fortnoxoauthcallbackrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[operations.FortnoxOAuthCallbackResponse](../../models/operations/fortnoxoauthcallbackresponse.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.APIError | 4XX, 5XX | \*/\* | + +## getFortnoxInstallUrl + +Generates OAuth install URL for Fortnox integration. Requires authentication. + +### Example Usage + + +```typescript +import { Midday } from "@midday-ai/sdk"; + +const midday = new Midday({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const result = await midday.integrations.getFortnoxInstallUrl(); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { MiddayCore } from "@midday-ai/sdk/core.js"; +import { integrationsGetFortnoxInstallUrl } from "@midday-ai/sdk/funcs/integrationsGetFortnoxInstallUrl.js"; + +// Use `MiddayCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const midday = new MiddayCore({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const res = await integrationsGetFortnoxInstallUrl(midday); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("integrationsGetFortnoxInstallUrl failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[operations.GetFortnoxInstallUrlResponse](../../models/operations/getfortnoxinstallurlresponse.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.APIError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/invoicepayments/README.md b/docs/sdks/invoicepayments/README.md new file mode 100644 index 0000000..ff8c0b2 --- /dev/null +++ b/docs/sdks/invoicepayments/README.md @@ -0,0 +1,377 @@ +# InvoicePayments + +## Overview + +### Available Operations + +* [getStripeConnectUrl](#getstripeconnecturl) - Get Stripe Connect URL +* [stripeConnectCallback](#stripeconnectcallback) - Stripe Connect OAuth callback +* [disconnectStripe](#disconnectstripe) - Disconnect Stripe account +* [createInvoicePaymentIntent](#createinvoicepaymentintent) - Create payment intent for invoice +* [getStripeConnectStatus](#getstripeconnectstatus) - Get Stripe Connect status + +## getStripeConnectUrl + +Generates OAuth URL for Stripe Connect Standard integration. Allows teams to connect their Stripe account for accepting invoice payments. + +### Example Usage + + +```typescript +import { Midday } from "@midday-ai/sdk"; + +const midday = new Midday({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const result = await midday.invoicePayments.getStripeConnectUrl(); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { MiddayCore } from "@midday-ai/sdk/core.js"; +import { invoicePaymentsGetStripeConnectUrl } from "@midday-ai/sdk/funcs/invoicePaymentsGetStripeConnectUrl.js"; + +// Use `MiddayCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const midday = new MiddayCore({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const res = await invoicePaymentsGetStripeConnectUrl(midday); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("invoicePaymentsGetStripeConnectUrl failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[operations.GetStripeConnectUrlResponse](../../models/operations/getstripeconnecturlresponse.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.APIError | 4XX, 5XX | \*/\* | + +## stripeConnectCallback + +Handles OAuth callback from Stripe Connect after user authorization. Exchanges authorization code for connected account ID. + +### Example Usage + + +```typescript +import { Midday } from "@midday-ai/sdk"; + +const midday = new Midday({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const result = await midday.invoicePayments.stripeConnectCallback({ + state: "California", + }); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { MiddayCore } from "@midday-ai/sdk/core.js"; +import { invoicePaymentsStripeConnectCallback } from "@midday-ai/sdk/funcs/invoicePaymentsStripeConnectCallback.js"; + +// Use `MiddayCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const midday = new MiddayCore({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const res = await invoicePaymentsStripeConnectCallback(midday, { + state: "California", + }); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("invoicePaymentsStripeConnectCallback failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.StripeConnectCallbackRequest](../../models/operations/stripeconnectcallbackrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[operations.StripeConnectCallbackResponse](../../models/operations/stripeconnectcallbackresponse.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.APIError | 4XX, 5XX | \*/\* | + +## disconnectStripe + +Disconnects the team's Stripe Connect account. + +### Example Usage + + +```typescript +import { Midday } from "@midday-ai/sdk"; + +const midday = new Midday({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const result = await midday.invoicePayments.disconnectStripe(); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { MiddayCore } from "@midday-ai/sdk/core.js"; +import { invoicePaymentsDisconnectStripe } from "@midday-ai/sdk/funcs/invoicePaymentsDisconnectStripe.js"; + +// Use `MiddayCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const midday = new MiddayCore({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const res = await invoicePaymentsDisconnectStripe(midday); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("invoicePaymentsDisconnectStripe failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[operations.DisconnectStripeResponse](../../models/operations/disconnectstriperesponse.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.APIError | 4XX, 5XX | \*/\* | + +## createInvoicePaymentIntent + +Creates a Stripe PaymentIntent for paying an invoice. This is a public endpoint that uses the invoice token for authentication. + +### Example Usage + + +```typescript +import { Midday } from "@midday-ai/sdk"; + +const midday = new Midday({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const result = await midday.invoicePayments.createInvoicePaymentIntent(); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { MiddayCore } from "@midday-ai/sdk/core.js"; +import { invoicePaymentsCreateInvoicePaymentIntent } from "@midday-ai/sdk/funcs/invoicePaymentsCreateInvoicePaymentIntent.js"; + +// Use `MiddayCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const midday = new MiddayCore({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const res = await invoicePaymentsCreateInvoicePaymentIntent(midday); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("invoicePaymentsCreateInvoicePaymentIntent failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.CreateInvoicePaymentIntentRequest](../../models/operations/createinvoicepaymentintentrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[operations.CreateInvoicePaymentIntentResponse](../../models/operations/createinvoicepaymentintentresponse.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.APIError | 4XX, 5XX | \*/\* | + +## getStripeConnectStatus + +Gets the current Stripe Connect status for the team. + +### Example Usage + + +```typescript +import { Midday } from "@midday-ai/sdk"; + +const midday = new Midday({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const result = await midday.invoicePayments.getStripeConnectStatus(); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { MiddayCore } from "@midday-ai/sdk/core.js"; +import { invoicePaymentsGetStripeConnectStatus } from "@midday-ai/sdk/funcs/invoicePaymentsGetStripeConnectStatus.js"; + +// Use `MiddayCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const midday = new MiddayCore({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const res = await invoicePaymentsGetStripeConnectStatus(midday); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("invoicePaymentsGetStripeConnectStatus failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[operations.GetStripeConnectStatusResponse](../../models/operations/getstripeconnectstatusresponse.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.APIError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/invoices/README.md b/docs/sdks/invoices/README.md index e68645c..440cef5 100644 --- a/docs/sdks/invoices/README.md +++ b/docs/sdks/invoices/README.md @@ -1,5 +1,4 @@ # Invoices -(*invoices*) ## Overview @@ -421,7 +420,10 @@ const midday = new Midday({ async function run() { const result = await midday.invoices.summary({ - status: "paid", + statuses: [ + "draft", + "unpaid", + ], }); console.log(result); @@ -448,7 +450,10 @@ const midday = new MiddayCore({ async function run() { const res = await invoicesSummary(midday, { - status: "paid", + statuses: [ + "draft", + "unpaid", + ], }); if (res.ok) { const { value: result } = res; @@ -472,7 +477,7 @@ run(); ### Response -**Promise\<[operations.GetInvoiceSummaryResponse[]](../../models/.md)\>** +**Promise\<[operations.GetInvoiceSummaryResponse](../../models/operations/getinvoicesummaryresponse.md)\>** ### Errors diff --git a/docs/sdks/notifications/README.md b/docs/sdks/notifications/README.md index ad129cd..97c16b9 100644 --- a/docs/sdks/notifications/README.md +++ b/docs/sdks/notifications/README.md @@ -1,5 +1,4 @@ # Notifications -(*notifications*) ## Overview diff --git a/docs/sdks/oauth/README.md b/docs/sdks/oauth/README.md index 6c39892..7e9f9b4 100644 --- a/docs/sdks/oauth/README.md +++ b/docs/sdks/oauth/README.md @@ -1,5 +1,4 @@ # OAuth -(*oAuth*) ## Overview @@ -189,11 +188,11 @@ run(); ### Errors -| Error Type | Status Code | Content Type | -| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -| errors.PostOAuthAuthorizationBadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.APIError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | +| errors.PostOAuthAuthorizationBadRequestError | 400 | application/json | +| errors.PostOAuthAuthorizationUnauthorizedError | 401 | application/json | +| errors.APIError | 4XX, 5XX | \*/\* | ## postOAuthToken diff --git a/docs/sdks/reports/README.md b/docs/sdks/reports/README.md index f231acb..3844897 100644 --- a/docs/sdks/reports/README.md +++ b/docs/sdks/reports/README.md @@ -1,5 +1,4 @@ # Reports -(*reports*) ## Overview diff --git a/docs/sdks/search/README.md b/docs/sdks/search/README.md index 217ced0..8a3955c 100644 --- a/docs/sdks/search/README.md +++ b/docs/sdks/search/README.md @@ -1,5 +1,4 @@ # Search -(*search*) ## Overview diff --git a/docs/sdks/tags/README.md b/docs/sdks/tags/README.md index c37634f..b40917f 100644 --- a/docs/sdks/tags/README.md +++ b/docs/sdks/tags/README.md @@ -1,5 +1,4 @@ # Tags -(*tags*) ## Overview @@ -152,7 +151,7 @@ run(); ### Response -**Promise\<[models.TagsResponse](../../models/tagsresponse.md)\>** +**Promise\<[models.TagResponse](../../models/tagresponse.md)\>** ### Errors diff --git a/docs/sdks/teams/README.md b/docs/sdks/teams/README.md index 6e668d3..3d39dd9 100644 --- a/docs/sdks/teams/README.md +++ b/docs/sdks/teams/README.md @@ -1,5 +1,4 @@ # Teams -(*teams*) ## Overview @@ -184,6 +183,7 @@ async function run() { logoUrl: "https://cdn.midday.ai/logos/acme-corp.png", baseCurrency: "USD", countryCode: "US", + fiscalYearStartMonth: 4, }, }); @@ -218,6 +218,7 @@ async function run() { logoUrl: "https://cdn.midday.ai/logos/acme-corp.png", baseCurrency: "USD", countryCode: "US", + fiscalYearStartMonth: 4, }, }); if (res.ok) { diff --git a/docs/sdks/trackerentries/README.md b/docs/sdks/trackerentries/README.md index 2e1489f..acabb5b 100644 --- a/docs/sdks/trackerentries/README.md +++ b/docs/sdks/trackerentries/README.md @@ -1,5 +1,4 @@ # TrackerEntries -(*trackerEntries*) ## Overview diff --git a/docs/sdks/trackerprojects/README.md b/docs/sdks/trackerprojects/README.md index ff471cb..7dc7f6d 100644 --- a/docs/sdks/trackerprojects/README.md +++ b/docs/sdks/trackerprojects/README.md @@ -1,5 +1,4 @@ # TrackerProjects -(*trackerProjects*) ## Overview diff --git a/docs/sdks/trackertimer/README.md b/docs/sdks/trackertimer/README.md index b1a9561..1029d65 100644 --- a/docs/sdks/trackertimer/README.md +++ b/docs/sdks/trackertimer/README.md @@ -1,5 +1,4 @@ # TrackerTimer -(*trackerTimer*) ## Overview diff --git a/docs/sdks/transactions/README.md b/docs/sdks/transactions/README.md index e18b316..3671445 100644 --- a/docs/sdks/transactions/README.md +++ b/docs/sdks/transactions/README.md @@ -1,5 +1,4 @@ # Transactions -(*transactions*) ## Overview @@ -76,6 +75,9 @@ async function run() { "299.99", ], type: "expense", + manual: "include", + exported: false, + fulfilled: true, }); console.log(result); @@ -145,6 +147,9 @@ async function run() { "299.99", ], type: "expense", + manual: "include", + exported: false, + fulfilled: true, }); if (res.ok) { const { value: result } = res; diff --git a/docs/sdks/users/README.md b/docs/sdks/users/README.md index aaba7af..c64a960 100644 --- a/docs/sdks/users/README.md +++ b/docs/sdks/users/README.md @@ -1,5 +1,4 @@ # Users -(*users*) ## Overview diff --git a/docs/sdks/webhooks/README.md b/docs/sdks/webhooks/README.md new file mode 100644 index 0000000..44a8ad5 --- /dev/null +++ b/docs/sdks/webhooks/README.md @@ -0,0 +1,311 @@ +# Webhooks + +## Overview + +### Available Operations + +* [inboxWebhook](#inboxwebhook) - Inbox webhook +* [whatsappWebhookVerify](#whatsappwebhookverify) - WhatsApp webhook verification +* [whatsappWebhook](#whatsappwebhook) - WhatsApp webhook +* [stripeWebhook](#stripewebhook) - Stripe webhook handler + +## inboxWebhook + +Webhook endpoint for receiving inbox emails from Postmark + +### Example Usage + + +```typescript +import { Midday } from "@midday-ai/sdk"; + +const midday = new Midday({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const result = await midday.webhooks.inboxWebhook(); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { MiddayCore } from "@midday-ai/sdk/core.js"; +import { webhooksInboxWebhook } from "@midday-ai/sdk/funcs/webhooksInboxWebhook.js"; + +// Use `MiddayCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const midday = new MiddayCore({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const res = await webhooksInboxWebhook(midday); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("webhooksInboxWebhook failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [any](../../models/.md) | :heavy_check_mark: | The request object to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[operations.InboxWebhookResponse](../../models/operations/inboxwebhookresponse.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| -------------------------------------- | -------------------------------------- | -------------------------------------- | +| errors.InboxWebhookBadRequestError | 400 | application/json | +| errors.InboxWebhookInternalServerError | 500 | application/json | +| errors.APIError | 4XX, 5XX | \*/\* | + +## whatsappWebhookVerify + +Verify webhook URL for WhatsApp Business API + +### Example Usage + + +```typescript +import { Midday } from "@midday-ai/sdk"; + +const midday = new Midday({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const result = await midday.webhooks.whatsappWebhookVerify({ + hubMode: "", + hubVerifyToken: "", + hubChallenge: "", + }); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { MiddayCore } from "@midday-ai/sdk/core.js"; +import { webhooksWhatsappWebhookVerify } from "@midday-ai/sdk/funcs/webhooksWhatsappWebhookVerify.js"; + +// Use `MiddayCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const midday = new MiddayCore({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const res = await webhooksWhatsappWebhookVerify(midday, { + hubMode: "", + hubVerifyToken: "", + hubChallenge: "", + }); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("webhooksWhatsappWebhookVerify failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.WhatsappWebhookVerifyRequest](../../models/operations/whatsappwebhookverifyrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[string](../../models/.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.APIError | 4XX, 5XX | \*/\* | + +## whatsappWebhook + +Receive messages, media, and button replies from WhatsApp Business API + +### Example Usage + + +```typescript +import { Midday } from "@midday-ai/sdk"; + +const midday = new Midday({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const result = await midday.webhooks.whatsappWebhook(); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { MiddayCore } from "@midday-ai/sdk/core.js"; +import { webhooksWhatsappWebhook } from "@midday-ai/sdk/funcs/webhooksWhatsappWebhook.js"; + +// Use `MiddayCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const midday = new MiddayCore({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const res = await webhooksWhatsappWebhook(midday); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("webhooksWhatsappWebhook failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [any](../../models/.md) | :heavy_check_mark: | The request object to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[operations.WhatsappWebhookResponse](../../models/operations/whatsappwebhookresponse.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.APIError | 4XX, 5XX | \*/\* | + +## stripeWebhook + +Handles Stripe webhook events for invoice payments. Verifies webhook signature and processes payment events. + +### Example Usage + + +```typescript +import { Midday } from "@midday-ai/sdk"; + +const midday = new Midday({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const result = await midday.webhooks.stripeWebhook(); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { MiddayCore } from "@midday-ai/sdk/core.js"; +import { webhooksStripeWebhook } from "@midday-ai/sdk/funcs/webhooksStripeWebhook.js"; + +// Use `MiddayCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const midday = new MiddayCore({ + security: { + oauth2: process.env["MIDDAY_OAUTH2"] ?? "", + }, +}); + +async function run() { + const res = await webhooksStripeWebhook(midday); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("webhooksStripeWebhook failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[operations.StripeWebhookResponse](../../models/operations/stripewebhookresponse.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.APIError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/examples/.env.template b/examples/.env.template index 77d9a5b..4edd259 100644 --- a/examples/.env.template +++ b/examples/.env.template @@ -12,4 +12,4 @@ MIDDAY_TOKEN=your_token_here # Debug Configuration # Enable HTTP request/response logging for debugging -MIDDAY_DEBUG=false +MIDDAY_DEBUG=true diff --git a/examples/package-lock.json b/examples/package-lock.json index 2226a8d..5c1c4d8 100644 --- a/examples/package-lock.json +++ b/examples/package-lock.json @@ -18,16 +18,16 @@ }, "..": { "name": "@midday-ai/sdk", - "version": "0.5.0", + "version": "0.6.0", "dependencies": { - "zod": "^3.20.0" + "@modelcontextprotocol/sdk": "^1.24.0", + "zod": "^3.25.0 || ^4.0.0" }, "bin": { "mcp": "bin/mcp-server.js" }, "devDependencies": { "@eslint/js": "^9.19.0", - "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0", "@stricli/core": "^1.1.1", "@types/express": "^4.17.21", "bun": "1.2.17", @@ -38,14 +38,6 @@ "tshy": "^2.0.0", "typescript": "~5.8.3", "typescript-eslint": "^8.26.0" - }, - "peerDependencies": { - "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0" - }, - "peerDependenciesMeta": { - "@modelcontextprotocol/sdk": { - "optional": true - } } }, "node_modules/@esbuild/aix-ppc64": { diff --git a/jsr.json b/jsr.json index e04e09c..a74c1f4 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "@midday-ai/sdk", - "version": "0.5.0", + "version": "0.6.0", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index 7bc5359..5716570 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,21 +1,21 @@ { "name": "@midday-ai/sdk", - "version": "0.5.0", + "version": "0.6.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@midday-ai/sdk", - "version": "0.5.0", + "version": "0.6.0", "dependencies": { - "zod": "^3.20.0" + "@modelcontextprotocol/sdk": "^1.24.0", + "zod": "^3.25.0 || ^4.0.0" }, "bin": { "mcp": "bin/mcp-server.js" }, "devDependencies": { "@eslint/js": "^9.19.0", - "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0", "@stricli/core": "^1.1.1", "@types/express": "^4.17.21", "bun": "1.2.17", @@ -26,14 +26,6 @@ "tshy": "^2.0.0", "typescript": "~5.8.3", "typescript-eslint": "^8.26.0" - }, - "peerDependencies": { - "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0" - }, - "peerDependenciesMeta": { - "@modelcontextprotocol/sdk": { - "optional": true - } } }, "node_modules/@eslint-community/eslint-utils": { @@ -190,6 +182,18 @@ "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, + "node_modules/@hono/node-server": { + "version": "1.19.7", + "resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-1.19.7.tgz", + "integrity": "sha512-vUcD0uauS7EU2caukW8z5lJKtoGMokxNbJtBiwHgpqxEXokaHCBkQUmCHhjFB1VUTWdqj25QoMkMKzgjq+uhrw==", + "license": "MIT", + "engines": { + "node": ">=18.14.1" + }, + "peerDependencies": { + "hono": "^4" + } + }, "node_modules/@humanfs/core": { "version": "0.19.1", "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", @@ -275,32 +279,48 @@ } }, "node_modules/@modelcontextprotocol/sdk": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.9.0.tgz", - "integrity": "sha512-Jq2EUCQpe0iyO5FGpzVYDNFR6oR53AIrwph9yWl7uSc7IWUMsrmpmSaTGra5hQNunXpM+9oit85p924jWuHzUA==", - "dev": true, + "version": "1.25.1", + "resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.25.1.tgz", + "integrity": "sha512-yO28oVFFC7EBoiKdAn+VqRm+plcfv4v0xp6osG/VsCB0NlPZWi87ajbCZZ8f/RvOFLEu7//rSRmuZZ7lMoe3gQ==", "license": "MIT", "dependencies": { + "@hono/node-server": "^1.19.7", + "ajv": "^8.17.1", + "ajv-formats": "^3.0.1", "content-type": "^1.0.5", "cors": "^2.8.5", - "cross-spawn": "^7.0.3", + "cross-spawn": "^7.0.5", "eventsource": "^3.0.2", + "eventsource-parser": "^3.0.0", "express": "^5.0.1", "express-rate-limit": "^7.5.0", + "jose": "^6.1.1", + "json-schema-typed": "^8.0.2", "pkce-challenge": "^5.0.0", "raw-body": "^3.0.0", - "zod": "^3.23.8", - "zod-to-json-schema": "^3.24.1" + "zod": "^3.25 || ^4.0", + "zod-to-json-schema": "^3.25.0" }, "engines": { "node": ">=18" + }, + "peerDependencies": { + "@cfworker/json-schema": "^4.1.1", + "zod": "^3.25 || ^4.0" + }, + "peerDependenciesMeta": { + "@cfworker/json-schema": { + "optional": true + }, + "zod": { + "optional": false + } } }, "node_modules/@modelcontextprotocol/sdk/node_modules/accepts": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz", "integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==", - "dev": true, "license": "MIT", "dependencies": { "mime-types": "^3.0.0", @@ -310,11 +330,26 @@ "node": ">= 0.6" } }, + "node_modules/@modelcontextprotocol/sdk/node_modules/ajv": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", + "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, "node_modules/@modelcontextprotocol/sdk/node_modules/body-parser": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.2.0.tgz", "integrity": "sha512-02qvAaxv8tp7fBa/mw1ga98OGm+eCbqzJOKoRt70sLmfEEi+jyBYVTDGfCL/k06/4EMk/z01gCe7HoCH/f2LTg==", - "dev": true, "license": "MIT", "dependencies": { "bytes": "^3.1.2", @@ -335,7 +370,6 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-1.0.0.tgz", "integrity": "sha512-Au9nRL8VNUut/XSzbQA38+M78dzP4D+eqg3gfJHMIHHYa3bg067xj1KxMUWj+VULbiZMowKngFFbKczUrNJ1mg==", - "dev": true, "license": "MIT", "dependencies": { "safe-buffer": "5.2.1" @@ -348,7 +382,6 @@ "version": "1.2.2", "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.2.2.tgz", "integrity": "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==", - "dev": true, "license": "MIT", "engines": { "node": ">=6.6.0" @@ -358,7 +391,6 @@ "version": "5.1.0", "resolved": "https://registry.npmjs.org/express/-/express-5.1.0.tgz", "integrity": "sha512-DT9ck5YIRU+8GYzzU5kT3eHGA5iL+1Zd0EutOmTE9Dtk+Tvuzd23VBU+ec7HPNSTxXYO55gPV/hq4pSBJDjFpA==", - "dev": true, "license": "MIT", "dependencies": { "accepts": "^2.0.0", @@ -401,7 +433,6 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.1.0.tgz", "integrity": "sha512-/t88Ty3d5JWQbWYgaOGCCYfXRwV1+be02WqYYlL6h0lEiUAMPM8o8qKGO01YIkOHzka2up08wvgYD0mDiI+q3Q==", - "dev": true, "license": "MIT", "dependencies": { "debug": "^4.4.0", @@ -419,7 +450,6 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/fresh/-/fresh-2.0.0.tgz", "integrity": "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.8" @@ -429,7 +459,6 @@ "version": "0.6.3", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", - "dev": true, "license": "MIT", "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" @@ -438,11 +467,16 @@ "node": ">=0.10.0" } }, + "node_modules/@modelcontextprotocol/sdk/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "license": "MIT" + }, "node_modules/@modelcontextprotocol/sdk/node_modules/media-typer": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.0.tgz", "integrity": "sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.8" @@ -452,7 +486,6 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-2.0.0.tgz", "integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==", - "dev": true, "license": "MIT", "engines": { "node": ">=18" @@ -465,7 +498,6 @@ "version": "1.54.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz", "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.6" @@ -475,7 +507,6 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.1.tgz", "integrity": "sha512-xRc4oEhT6eaBpU1XF7AjpOFD+xQmXNB5OVKwp4tqCuBpHLS/ZbBDrc07mYTDqVMg6PfxUjjNp85O6Cd2Z/5HWA==", - "dev": true, "license": "MIT", "dependencies": { "mime-db": "^1.54.0" @@ -488,7 +519,6 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.0.0.tgz", "integrity": "sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.6" @@ -498,7 +528,6 @@ "version": "6.14.0", "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.0.tgz", "integrity": "sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w==", - "dev": true, "license": "BSD-3-Clause", "dependencies": { "side-channel": "^1.1.0" @@ -514,7 +543,6 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/send/-/send-1.2.0.tgz", "integrity": "sha512-uaW0WwXKpL9blXE2o0bRhoL2EGXIrZxQ2ZQ4mgcfoBxdFmQold+qWsD2jLrfZ0trjKL6vOw0j//eAwcALFjKSw==", - "dev": true, "license": "MIT", "dependencies": { "debug": "^4.3.5", @@ -537,7 +565,6 @@ "version": "2.2.0", "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-2.2.0.tgz", "integrity": "sha512-61g9pCh0Vnh7IutZjtLGGpTA355+OPn2TyDv/6ivP2h/AdAVX9azsoxmg2/M6nZeQZNYBEwIcsne1mJd9oQItQ==", - "dev": true, "license": "MIT", "dependencies": { "encodeurl": "^2.0.0", @@ -553,7 +580,6 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/type-is/-/type-is-2.0.1.tgz", "integrity": "sha512-OZs6gsjF4vMp32qrCbiVSkrFmXtG/AZhY3t0iAMrMBiAZyV9oALtXO8hsrHbMXF9x6L3grlFuwW2oAz7cav+Gw==", - "dev": true, "license": "MIT", "dependencies": { "content-type": "^1.0.5", @@ -1154,7 +1180,6 @@ "version": "1.3.8", "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", - "dev": true, "license": "MIT", "dependencies": { "mime-types": "~2.1.34", @@ -1204,6 +1229,45 @@ "url": "https://github.com/sponsors/epoberezkin" } }, + "node_modules/ajv-formats": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-3.0.1.tgz", + "integrity": "sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==", + "license": "MIT", + "dependencies": { + "ajv": "^8.0.0" + }, + "peerDependencies": { + "ajv": "^8.0.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } + } + }, + "node_modules/ajv-formats/node_modules/ajv": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", + "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ajv-formats/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "license": "MIT" + }, "node_modules/ansi-regex": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", @@ -1258,7 +1322,6 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==", - "dev": true, "license": "MIT" }, "node_modules/balanced-match": { @@ -1285,7 +1348,6 @@ "version": "1.20.3", "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.3.tgz", "integrity": "sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==", - "dev": true, "license": "MIT", "dependencies": { "bytes": "3.1.2", @@ -1310,7 +1372,6 @@ "version": "2.6.9", "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, "license": "MIT", "dependencies": { "ms": "2.0.0" @@ -1320,14 +1381,12 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true, "license": "MIT" }, "node_modules/body-parser/node_modules/raw-body": { "version": "2.5.2", "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz", "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==", - "dev": true, "license": "MIT", "dependencies": { "bytes": "3.1.2", @@ -1412,7 +1471,6 @@ "version": "3.1.2", "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.8" @@ -1422,7 +1480,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", - "dev": true, "license": "MIT", "dependencies": { "es-errors": "^1.3.0", @@ -1436,7 +1493,6 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", - "dev": true, "license": "MIT", "dependencies": { "call-bind-apply-helpers": "^1.0.2", @@ -1545,7 +1601,6 @@ "version": "0.5.4", "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", - "dev": true, "license": "MIT", "dependencies": { "safe-buffer": "5.2.1" @@ -1558,7 +1613,6 @@ "version": "1.0.5", "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.6" @@ -1568,7 +1622,6 @@ "version": "0.7.1", "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.1.tgz", "integrity": "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.6" @@ -1578,14 +1631,12 @@ "version": "1.0.6", "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==", - "dev": true, "license": "MIT" }, "node_modules/cors": { "version": "2.8.5", "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", - "dev": true, "license": "MIT", "dependencies": { "object-assign": "^4", @@ -1599,7 +1650,6 @@ "version": "7.0.6", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", - "dev": true, "license": "MIT", "dependencies": { "path-key": "^3.1.0", @@ -1614,7 +1664,6 @@ "version": "4.4.1", "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.1.tgz", "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==", - "dev": true, "license": "MIT", "dependencies": { "ms": "^2.1.3" @@ -1639,7 +1688,6 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.8" @@ -1649,7 +1697,6 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.8", @@ -1660,7 +1707,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", - "dev": true, "license": "MIT", "dependencies": { "call-bind-apply-helpers": "^1.0.1", @@ -1682,7 +1728,6 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", - "dev": true, "license": "MIT" }, "node_modules/emoji-regex": { @@ -1696,7 +1741,6 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.8" @@ -1706,7 +1750,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -1716,7 +1759,6 @@ "version": "1.3.0", "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -1726,7 +1768,6 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", - "dev": true, "license": "MIT", "dependencies": { "es-errors": "^1.3.0" @@ -1739,7 +1780,6 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", - "dev": true, "license": "MIT" }, "node_modules/escape-string-regexp": { @@ -1914,7 +1954,6 @@ "version": "1.8.1", "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.6" @@ -1924,7 +1963,6 @@ "version": "3.0.7", "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-3.0.7.tgz", "integrity": "sha512-CRT1WTyuQoD771GW56XEZFQ/ZoSfWid1alKGDYMmkt2yl8UXrVR4pspqWNEcqKvVIzg6PAltWjxcSSPrboA4iA==", - "dev": true, "license": "MIT", "dependencies": { "eventsource-parser": "^3.0.1" @@ -1937,7 +1975,6 @@ "version": "3.0.2", "resolved": "https://registry.npmjs.org/eventsource-parser/-/eventsource-parser-3.0.2.tgz", "integrity": "sha512-6RxOBZ/cYgd8usLwsEl+EC09Au/9BcmCKYF2/xbml6DNczf7nv0MQb+7BA2F+li6//I+28VNlQR37XfQtcAJuA==", - "dev": true, "license": "MIT", "engines": { "node": ">=18.0.0" @@ -1947,7 +1984,6 @@ "version": "4.21.2", "resolved": "https://registry.npmjs.org/express/-/express-4.21.2.tgz", "integrity": "sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA==", - "dev": true, "license": "MIT", "dependencies": { "accepts": "~1.3.8", @@ -1994,7 +2030,6 @@ "version": "7.5.0", "resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-7.5.0.tgz", "integrity": "sha512-eB5zbQh5h+VenMPM3fh+nw1YExi5nMr6HUCR62ELSP11huvxm/Uir1H1QEyTkk5QX6A58pX6NmaTMceKZ0Eodg==", - "dev": true, "license": "MIT", "engines": { "node": ">= 16" @@ -2010,7 +2045,6 @@ "version": "2.6.9", "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, "license": "MIT", "dependencies": { "ms": "2.0.0" @@ -2020,14 +2054,12 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true, "license": "MIT" }, "node_modules/fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true, "license": "MIT" }, "node_modules/fast-glob": { @@ -2074,6 +2106,22 @@ "dev": true, "license": "MIT" }, + "node_modules/fast-uri": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.0.tgz", + "integrity": "sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fastify" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fastify" + } + ], + "license": "BSD-3-Clause" + }, "node_modules/fastq": { "version": "1.19.1", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz", @@ -2114,7 +2162,6 @@ "version": "1.3.1", "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.1.tgz", "integrity": "sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ==", - "dev": true, "license": "MIT", "dependencies": { "debug": "2.6.9", @@ -2133,7 +2180,6 @@ "version": "2.6.9", "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, "license": "MIT", "dependencies": { "ms": "2.0.0" @@ -2143,7 +2189,6 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true, "license": "MIT" }, "node_modules/find-up": { @@ -2205,7 +2250,6 @@ "version": "0.2.0", "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.6" @@ -2215,7 +2259,6 @@ "version": "0.5.2", "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.6" @@ -2240,7 +2283,6 @@ "version": "1.1.2", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", - "dev": true, "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" @@ -2250,7 +2292,6 @@ "version": "1.3.0", "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", - "dev": true, "license": "MIT", "dependencies": { "call-bind-apply-helpers": "^1.0.2", @@ -2275,7 +2316,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", - "dev": true, "license": "MIT", "dependencies": { "dunder-proto": "^1.0.1", @@ -2362,7 +2402,6 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -2392,7 +2431,6 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -2405,7 +2443,6 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", - "dev": true, "license": "MIT", "dependencies": { "function-bind": "^1.1.2" @@ -2414,11 +2451,20 @@ "node": ">= 0.4" } }, + "node_modules/hono": { + "version": "4.11.3", + "resolved": "https://registry.npmjs.org/hono/-/hono-4.11.3.tgz", + "integrity": "sha512-PmQi306+M/ct/m5s66Hrg+adPnkD5jiO6IjA7WhWw0gSBSo1EcRegwuI1deZ+wd5pzCGynCcn2DprnE4/yEV4w==", + "license": "MIT", + "peer": true, + "engines": { + "node": ">=16.9.0" + } + }, "node_modules/http-errors": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", - "dev": true, "license": "MIT", "dependencies": { "depd": "2.0.0", @@ -2435,7 +2481,6 @@ "version": "0.4.24", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "dev": true, "license": "MIT", "dependencies": { "safer-buffer": ">= 2.1.2 < 3" @@ -2485,14 +2530,12 @@ "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true, "license": "ISC" }, "node_modules/ipaddr.js": { "version": "1.9.1", "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.10" @@ -2558,14 +2601,12 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz", "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==", - "dev": true, "license": "MIT" }, "node_modules/isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true, "license": "ISC" }, "node_modules/jackspeak": { @@ -2584,6 +2625,15 @@ "@pkgjs/parseargs": "^0.11.0" } }, + "node_modules/jose": { + "version": "6.1.3", + "resolved": "https://registry.npmjs.org/jose/-/jose-6.1.3.tgz", + "integrity": "sha512-0TpaTfihd4QMNwrz/ob2Bp7X04yuxJkjRGi4aKmOqwhov54i6u79oCv7T+C7lo70MKH6BesI3vscD1yb/yzKXQ==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/panva" + } + }, "node_modules/js-yaml": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", @@ -2611,6 +2661,12 @@ "dev": true, "license": "MIT" }, + "node_modules/json-schema-typed": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/json-schema-typed/-/json-schema-typed-8.0.2.tgz", + "integrity": "sha512-fQhoXdcvc3V28x7C7BMs4P5+kNlgUURe2jmUT1T//oBRMDrqy1QPelJimwZGo7Hg9VPV3EQV5Bnq4hbFy2vetA==", + "license": "BSD-2-Clause" + }, "node_modules/json-stable-stringify-without-jsonify": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", @@ -2676,7 +2732,6 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -2686,7 +2741,6 @@ "version": "0.3.0", "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.6" @@ -2696,7 +2750,6 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz", "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==", - "dev": true, "license": "MIT", "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -2716,7 +2769,6 @@ "version": "1.1.2", "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.6" @@ -2740,7 +2792,6 @@ "version": "1.6.0", "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", - "dev": true, "license": "MIT", "bin": { "mime": "cli.js" @@ -2753,7 +2804,6 @@ "version": "1.52.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.6" @@ -2763,7 +2813,6 @@ "version": "2.1.35", "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dev": true, "license": "MIT", "dependencies": { "mime-db": "1.52.0" @@ -2815,7 +2864,6 @@ "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true, "license": "MIT" }, "node_modules/natural-compare": { @@ -2829,7 +2877,6 @@ "version": "0.6.3", "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.6" @@ -2849,7 +2896,6 @@ "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", - "dev": true, "license": "MIT", "engines": { "node": ">=0.10.0" @@ -2859,7 +2905,6 @@ "version": "1.13.4", "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -2872,7 +2917,6 @@ "version": "2.4.1", "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", - "dev": true, "license": "MIT", "dependencies": { "ee-first": "1.1.1" @@ -2885,7 +2929,6 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "dev": true, "license": "ISC", "dependencies": { "wrappy": "1" @@ -2965,7 +3008,6 @@ "version": "1.3.3", "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.8" @@ -2985,7 +3027,6 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true, "license": "MIT", "engines": { "node": ">=8" @@ -3012,7 +3053,6 @@ "version": "0.1.12", "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz", "integrity": "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ==", - "dev": true, "license": "MIT" }, "node_modules/picomatch": { @@ -3032,7 +3072,6 @@ "version": "5.0.0", "resolved": "https://registry.npmjs.org/pkce-challenge/-/pkce-challenge-5.0.0.tgz", "integrity": "sha512-ueGLflrrnvwB3xuo/uGob5pd5FN7l0MsLf0Z87o/UQmRtwjvfylfc9MurIxRAWywCYTgrvpXBcqjV4OfCYGCIQ==", - "dev": true, "license": "MIT", "engines": { "node": ">=16.20.0" @@ -3065,7 +3104,6 @@ "version": "2.0.7", "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", - "dev": true, "license": "MIT", "dependencies": { "forwarded": "0.2.0", @@ -3089,7 +3127,6 @@ "version": "6.13.0", "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz", "integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==", - "dev": true, "license": "BSD-3-Clause", "dependencies": { "side-channel": "^1.0.6" @@ -3126,7 +3163,6 @@ "version": "1.2.1", "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.6" @@ -3136,7 +3172,6 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.0.tgz", "integrity": "sha512-RmkhL8CAyCRPXCE28MMH0z2PNWQBNk2Q09ZdxM9IOOXwxwZbN+qbWaatPkdkWIKL2ZVDImrN/pK5HTRz2PcS4g==", - "dev": true, "license": "MIT", "dependencies": { "bytes": "3.1.2", @@ -3152,7 +3187,6 @@ "version": "0.6.3", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", - "dev": true, "license": "MIT", "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" @@ -3174,6 +3208,15 @@ "node": ">=8.10.0" } }, + "node_modules/require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/resolve-from": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", @@ -3232,7 +3275,6 @@ "version": "2.2.0", "resolved": "https://registry.npmjs.org/router/-/router-2.2.0.tgz", "integrity": "sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==", - "dev": true, "license": "MIT", "dependencies": { "debug": "^4.4.0", @@ -3249,7 +3291,6 @@ "version": "8.2.0", "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.2.0.tgz", "integrity": "sha512-TdrF7fW9Rphjq4RjrW0Kp2AW0Ahwu9sRGTkS6bvDi0SCwZlEZYmcfDbEsTz8RVk0EHIS/Vd1bv3JhG+1xZuAyQ==", - "dev": true, "license": "MIT", "engines": { "node": ">=16" @@ -3283,7 +3324,6 @@ "version": "5.2.1", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true, "funding": [ { "type": "github", @@ -3304,7 +3344,6 @@ "version": "2.1.2", "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true, "license": "MIT" }, "node_modules/semver": { @@ -3324,7 +3363,6 @@ "version": "0.19.0", "resolved": "https://registry.npmjs.org/send/-/send-0.19.0.tgz", "integrity": "sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw==", - "dev": true, "license": "MIT", "dependencies": { "debug": "2.6.9", @@ -3349,7 +3387,6 @@ "version": "2.6.9", "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, "license": "MIT", "dependencies": { "ms": "2.0.0" @@ -3359,14 +3396,12 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true, "license": "MIT" }, "node_modules/send/node_modules/encodeurl": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.8" @@ -3376,7 +3411,6 @@ "version": "1.16.2", "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.2.tgz", "integrity": "sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw==", - "dev": true, "license": "MIT", "dependencies": { "encodeurl": "~2.0.0", @@ -3392,14 +3426,12 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", - "dev": true, "license": "ISC" }, "node_modules/shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, "license": "MIT", "dependencies": { "shebang-regex": "^3.0.0" @@ -3412,7 +3444,6 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, "license": "MIT", "engines": { "node": ">=8" @@ -3422,7 +3453,6 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", - "dev": true, "license": "MIT", "dependencies": { "es-errors": "^1.3.0", @@ -3442,7 +3472,6 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", - "dev": true, "license": "MIT", "dependencies": { "es-errors": "^1.3.0", @@ -3459,7 +3488,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", - "dev": true, "license": "MIT", "dependencies": { "call-bound": "^1.0.2", @@ -3478,7 +3506,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", - "dev": true, "license": "MIT", "dependencies": { "call-bound": "^1.0.2", @@ -3511,7 +3538,6 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.8" @@ -3686,7 +3712,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", - "dev": true, "license": "MIT", "engines": { "node": ">=0.6" @@ -3787,7 +3812,6 @@ "version": "1.6.18", "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", - "dev": true, "license": "MIT", "dependencies": { "media-typer": "0.3.0", @@ -3845,7 +3869,6 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.8" @@ -3865,7 +3888,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.4.0" @@ -3875,7 +3897,6 @@ "version": "1.1.2", "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.8" @@ -3892,7 +3913,6 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, "license": "ISC", "dependencies": { "isexe": "^2.0.0" @@ -4013,7 +4033,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "dev": true, "license": "ISC" }, "node_modules/yocto-queue": { @@ -4039,13 +4058,12 @@ } }, "node_modules/zod-to-json-schema": { - "version": "3.24.5", - "resolved": "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.24.5.tgz", - "integrity": "sha512-/AuWwMP+YqiPbsJx5D6TfgRTc4kTLjsh5SOcd4bLsfUg2RcEXrFMJl1DGgdHy2aCfsIA/cr/1JM0xcB2GZji8g==", - "dev": true, + "version": "3.25.1", + "resolved": "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.25.1.tgz", + "integrity": "sha512-pM/SU9d3YAggzi6MtR4h7ruuQlqKtad8e9S0fmxcMi+ueAK5Korys/aWcV9LIIHTVbj01NdzxcnXSN+O74ZIVA==", "license": "ISC", "peerDependencies": { - "zod": "^3.24.1" + "zod": "^3.25 || ^4" } } } diff --git a/package.json b/package.json index 32b48ba..cfba91f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@midday-ai/sdk", - "version": "0.5.0", + "version": "0.6.0", "author": "Speakeasy", "type": "module", "bin": { @@ -32,17 +32,9 @@ "build": "npm run build:mcp && tshy", "prepublishOnly": "npm run build" }, - "peerDependencies": { - "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0" - }, - "peerDependenciesMeta": { - "@modelcontextprotocol/sdk": { - "optional": true - } - }, + "peerDependencies": {}, "devDependencies": { "@eslint/js": "^9.19.0", - "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0", "@stricli/core": "^1.1.1", "@types/express": "^4.17.21", "bun": "1.2.17", @@ -55,7 +47,8 @@ "typescript-eslint": "^8.26.0" }, "dependencies": { - "zod": "^3.20.0" + "@modelcontextprotocol/sdk": "^1.24.0", + "zod": "^3.25.0 || ^4.0.0" }, "exports": { ".": { diff --git a/src/funcs/bankAccountsCreate.ts b/src/funcs/bankAccountsCreate.ts index 6064b2c..925eca3 100644 --- a/src/funcs/bankAccountsCreate.ts +++ b/src/funcs/bankAccountsCreate.ts @@ -104,7 +104,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "createBankAccount", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/bankAccountsDelete.ts b/src/funcs/bankAccountsDelete.ts index 552f72f..2e48efd 100644 --- a/src/funcs/bankAccountsDelete.ts +++ b/src/funcs/bankAccountsDelete.ts @@ -105,7 +105,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "deleteBankAccount", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/bankAccountsGet.ts b/src/funcs/bankAccountsGet.ts index 464d795..919c5c8 100644 --- a/src/funcs/bankAccountsGet.ts +++ b/src/funcs/bankAccountsGet.ts @@ -105,7 +105,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getBankAccountById", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/bankAccountsList.ts b/src/funcs/bankAccountsList.ts index 0e8fbb9..b8dcd70 100644 --- a/src/funcs/bankAccountsList.ts +++ b/src/funcs/bankAccountsList.ts @@ -103,7 +103,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "listBankAccounts", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/bankAccountsUpdate.ts b/src/funcs/bankAccountsUpdate.ts index 7f30729..b15f342 100644 --- a/src/funcs/bankAccountsUpdate.ts +++ b/src/funcs/bankAccountsUpdate.ts @@ -106,7 +106,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "updateBankAccount", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/customersCreate.ts b/src/funcs/customersCreate.ts index ee03c01..bb1a152 100644 --- a/src/funcs/customersCreate.ts +++ b/src/funcs/customersCreate.ts @@ -102,7 +102,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "createCustomer", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/customersDelete.ts b/src/funcs/customersDelete.ts index 8b77c6d..402dd83 100644 --- a/src/funcs/customersDelete.ts +++ b/src/funcs/customersDelete.ts @@ -105,7 +105,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "deleteCustomer", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/customersGet.ts b/src/funcs/customersGet.ts index 09a3e35..3479d89 100644 --- a/src/funcs/customersGet.ts +++ b/src/funcs/customersGet.ts @@ -105,7 +105,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getCustomerById", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/customersList.ts b/src/funcs/customersList.ts index 62ecae8..f71066c 100644 --- a/src/funcs/customersList.ts +++ b/src/funcs/customersList.ts @@ -105,7 +105,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "listCustomers", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/customersUpdate.ts b/src/funcs/customersUpdate.ts index 3a08fa6..5392804 100644 --- a/src/funcs/customersUpdate.ts +++ b/src/funcs/customersUpdate.ts @@ -106,7 +106,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "updateCustomer", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/documentsDelete.ts b/src/funcs/documentsDelete.ts index 09a7471..0a802a8 100644 --- a/src/funcs/documentsDelete.ts +++ b/src/funcs/documentsDelete.ts @@ -105,7 +105,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "deleteDocument", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/documentsGet.ts b/src/funcs/documentsGet.ts index 088dd22..9bdaa05 100644 --- a/src/funcs/documentsGet.ts +++ b/src/funcs/documentsGet.ts @@ -105,7 +105,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getDocumentById", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/documentsGetPreSignedUrl.ts b/src/funcs/documentsGetPreSignedUrl.ts index fb57135..ba4373d 100644 --- a/src/funcs/documentsGetPreSignedUrl.ts +++ b/src/funcs/documentsGetPreSignedUrl.ts @@ -117,7 +117,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getDocumentPreSignedUrl", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/documentsList.ts b/src/funcs/documentsList.ts index 776fc7d..b2adaac 100644 --- a/src/funcs/documentsList.ts +++ b/src/funcs/documentsList.ts @@ -106,7 +106,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "listDocuments", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/filesDownloadFile.ts b/src/funcs/filesDownloadFile.ts new file mode 100644 index 0000000..35e8fd7 --- /dev/null +++ b/src/funcs/filesDownloadFile.ts @@ -0,0 +1,187 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { MiddayCore } from "../core.js"; +import { encodeFormQuery } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import * as errors from "../models/errors/index.js"; +import { MiddayError } from "../models/errors/middayerror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Download file from vault + * + * @remarks + * Downloads a file from the vault storage bucket. Requires team file key (fk) query parameter for access. + */ +export function filesDownloadFile( + client: MiddayCore, + request: operations.DownloadFileRequest, + options?: RequestOptions, +): APIPromise< + Result< + ReadableStream, + | errors.DownloadFileBadRequestError + | errors.DownloadFileUnauthorizedError + | errors.DownloadFileNotFoundError + | errors.DownloadFileInternalServerError + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + request, + options, + )); +} + +async function $do( + client: MiddayCore, + request: operations.DownloadFileRequest, + options?: RequestOptions, +): Promise< + [ + Result< + ReadableStream, + | errors.DownloadFileBadRequestError + | errors.DownloadFileUnauthorizedError + | errors.DownloadFileNotFoundError + | errors.DownloadFileInternalServerError + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const parsed = safeParse( + request, + (value) => operations.DownloadFileRequest$outboundSchema.parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = null; + + const path = pathToFunc("/files/download/file")(); + + const query = encodeFormQuery({ + "filename": payload.filename, + "fk": payload.fk, + "path": payload.path, + }); + + const headers = new Headers(compactMap({ + Accept: "application/octet-stream", + })); + + const securityInput = await extractSecurity(client._options.security); + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "downloadFile", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.security, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "GET", + baseURL: options?.serverURL, + path: path, + headers: headers, + query: query, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["400", "401", "404", "4XX", "500", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const responseFields = { + HttpMeta: { Response: response, Request: req }, + }; + + const [result] = await M.match< + ReadableStream, + | errors.DownloadFileBadRequestError + | errors.DownloadFileUnauthorizedError + | errors.DownloadFileNotFoundError + | errors.DownloadFileInternalServerError + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.stream(200, z.instanceof(ReadableStream)), + M.jsonErr(400, errors.DownloadFileBadRequestError$inboundSchema), + M.jsonErr(401, errors.DownloadFileUnauthorizedError$inboundSchema), + M.jsonErr(404, errors.DownloadFileNotFoundError$inboundSchema), + M.jsonErr(500, errors.DownloadFileInternalServerError$inboundSchema), + M.fail("4XX"), + M.fail("5XX"), + )(response, req, { extraFields: responseFields }); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/filesDownloadInvoice.ts b/src/funcs/filesDownloadInvoice.ts new file mode 100644 index 0000000..52ab374 --- /dev/null +++ b/src/funcs/filesDownloadInvoice.ts @@ -0,0 +1,190 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { MiddayCore } from "../core.js"; +import { encodeFormQuery } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import * as errors from "../models/errors/index.js"; +import { MiddayError } from "../models/errors/middayerror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Download invoice PDF + * + * @remarks + * Downloads an invoice as a PDF. Can be accessed with an invoice ID (requires team file key via fk query parameter) or invoice token (public access). + */ +export function filesDownloadInvoice( + client: MiddayCore, + request: operations.DownloadInvoiceRequest, + options?: RequestOptions, +): APIPromise< + Result< + ReadableStream, + | errors.DownloadInvoiceBadRequestError + | errors.DownloadInvoiceUnauthorizedError + | errors.DownloadInvoiceNotFoundError + | errors.DownloadInvoiceInternalServerError + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + request, + options, + )); +} + +async function $do( + client: MiddayCore, + request: operations.DownloadInvoiceRequest, + options?: RequestOptions, +): Promise< + [ + Result< + ReadableStream, + | errors.DownloadInvoiceBadRequestError + | errors.DownloadInvoiceUnauthorizedError + | errors.DownloadInvoiceNotFoundError + | errors.DownloadInvoiceInternalServerError + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const parsed = safeParse( + request, + (value) => operations.DownloadInvoiceRequest$outboundSchema.parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = null; + + const path = pathToFunc("/files/download/invoice")(); + + const query = encodeFormQuery({ + "fk": payload.fk, + "id": payload.id, + "preview": payload.preview, + "token": payload.token, + }); + + const headers = new Headers(compactMap({ + Accept: "application/pdf", + })); + + const securityInput = await extractSecurity(client._options.security); + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "downloadInvoice", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.security, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "GET", + baseURL: options?.serverURL, + path: path, + headers: headers, + query: query, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["400", "401", "404", "4XX", "500", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const responseFields = { + HttpMeta: { Response: response, Request: req }, + }; + + const [result] = await M.match< + ReadableStream, + | errors.DownloadInvoiceBadRequestError + | errors.DownloadInvoiceUnauthorizedError + | errors.DownloadInvoiceNotFoundError + | errors.DownloadInvoiceInternalServerError + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.stream(200, z.instanceof(ReadableStream), { + ctype: "application/pdf", + }), + M.jsonErr(400, errors.DownloadInvoiceBadRequestError$inboundSchema), + M.jsonErr(401, errors.DownloadInvoiceUnauthorizedError$inboundSchema), + M.jsonErr(404, errors.DownloadInvoiceNotFoundError$inboundSchema), + M.jsonErr(500, errors.DownloadInvoiceInternalServerError$inboundSchema), + M.fail("4XX"), + M.fail("5XX"), + )(response, req, { extraFields: responseFields }); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/filesProxy.ts b/src/funcs/filesProxy.ts new file mode 100644 index 0000000..05c3102 --- /dev/null +++ b/src/funcs/filesProxy.ts @@ -0,0 +1,182 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { MiddayCore } from "../core.js"; +import { encodeFormQuery } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import * as errors from "../models/errors/index.js"; +import { MiddayError } from "../models/errors/middayerror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Proxy file from storage + * + * @remarks + * Proxies a file from storage. Requires team file key (fk) query parameter for access. + */ +export function filesProxy( + client: MiddayCore, + request: operations.ProxyFileRequest, + options?: RequestOptions, +): APIPromise< + Result< + ReadableStream, + | errors.ProxyFileBadRequestError + | errors.ProxyFileNotFoundError + | errors.ProxyFileInternalServerError + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + request, + options, + )); +} + +async function $do( + client: MiddayCore, + request: operations.ProxyFileRequest, + options?: RequestOptions, +): Promise< + [ + Result< + ReadableStream, + | errors.ProxyFileBadRequestError + | errors.ProxyFileNotFoundError + | errors.ProxyFileInternalServerError + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const parsed = safeParse( + request, + (value) => operations.ProxyFileRequest$outboundSchema.parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = null; + + const path = pathToFunc("/files/proxy")(); + + const query = encodeFormQuery({ + "filePath": payload.filePath, + "fk": payload.fk, + }); + + const headers = new Headers(compactMap({ + Accept: "application/octet-stream", + })); + + const securityInput = await extractSecurity(client._options.security); + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "proxyFile", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.security, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "GET", + baseURL: options?.serverURL, + path: path, + headers: headers, + query: query, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["400", "404", "4XX", "500", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const responseFields = { + HttpMeta: { Response: response, Request: req }, + }; + + const [result] = await M.match< + ReadableStream, + | errors.ProxyFileBadRequestError + | errors.ProxyFileNotFoundError + | errors.ProxyFileInternalServerError + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.stream(200, z.instanceof(ReadableStream)), + M.jsonErr(400, errors.ProxyFileBadRequestError$inboundSchema), + M.jsonErr(404, errors.ProxyFileNotFoundError$inboundSchema), + M.jsonErr(500, errors.ProxyFileInternalServerError$inboundSchema), + M.fail("4XX"), + M.fail("5XX"), + )(response, req, { extraFields: responseFields }); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/inboxDelete.ts b/src/funcs/inboxDelete.ts index b8f69be..c995262 100644 --- a/src/funcs/inboxDelete.ts +++ b/src/funcs/inboxDelete.ts @@ -105,7 +105,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "deleteInboxItem", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/inboxGet.ts b/src/funcs/inboxGet.ts index 624b893..49652dd 100644 --- a/src/funcs/inboxGet.ts +++ b/src/funcs/inboxGet.ts @@ -105,7 +105,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getInboxItemById", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/inboxGetPreSignedUrl.ts b/src/funcs/inboxGetPreSignedUrl.ts index 541cdf0..4ff85d1 100644 --- a/src/funcs/inboxGetPreSignedUrl.ts +++ b/src/funcs/inboxGetPreSignedUrl.ts @@ -117,7 +117,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getInboxPreSignedUrl", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/inboxList.ts b/src/funcs/inboxList.ts index bfd52c0..0d94ebd 100644 --- a/src/funcs/inboxList.ts +++ b/src/funcs/inboxList.ts @@ -92,6 +92,7 @@ async function $do( "order": payload.order, "pageSize": payload.pageSize, "q": payload.q, + "sort": payload.sort, "status": payload.status, }); @@ -106,7 +107,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "listInboxItems", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/inboxUpdate.ts b/src/funcs/inboxUpdate.ts index e0893f7..32dd7dd 100644 --- a/src/funcs/inboxUpdate.ts +++ b/src/funcs/inboxUpdate.ts @@ -106,7 +106,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "updateInboxItem", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/integrationsFortnoxOAuthCallback.ts b/src/funcs/integrationsFortnoxOAuthCallback.ts new file mode 100644 index 0000000..47d4149 --- /dev/null +++ b/src/funcs/integrationsFortnoxOAuthCallback.ts @@ -0,0 +1,174 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { MiddayCore } from "../core.js"; +import { encodeFormQuery } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import { MiddayError } from "../models/errors/middayerror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Fortnox OAuth callback + * + * @remarks + * Handles OAuth callback from Fortnox after user authorization. Exchanges authorization code for access token and creates app integration. + */ +export function integrationsFortnoxOAuthCallback( + client: MiddayCore, + request: operations.FortnoxOAuthCallbackRequest, + options?: RequestOptions, +): APIPromise< + Result< + operations.FortnoxOAuthCallbackResponse | undefined, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + request, + options, + )); +} + +async function $do( + client: MiddayCore, + request: operations.FortnoxOAuthCallbackRequest, + options?: RequestOptions, +): Promise< + [ + Result< + operations.FortnoxOAuthCallbackResponse | undefined, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const parsed = safeParse( + request, + (value) => + operations.FortnoxOAuthCallbackRequest$outboundSchema.parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = null; + + const path = pathToFunc("/apps/fortnox/oauth-callback")(); + + const query = encodeFormQuery({ + "code": payload.code, + "error": payload.error, + "state": payload.state, + }); + + const headers = new Headers(compactMap({ + Accept: "*/*", + })); + + const securityInput = await extractSecurity(client._options.security); + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "fortnoxOAuthCallback", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.security, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "GET", + baseURL: options?.serverURL, + path: path, + headers: headers, + query: query, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["400", "4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const responseFields = { + HttpMeta: { Response: response, Request: req }, + }; + + const [result] = await M.match< + operations.FortnoxOAuthCallbackResponse | undefined, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.nil( + 302, + operations.FortnoxOAuthCallbackResponse$inboundSchema.optional(), + { hdrs: true }, + ), + M.fail([400, "4XX"]), + M.fail("5XX"), + )(response, req, { extraFields: responseFields }); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/integrationsGetFortnoxInstallUrl.ts b/src/funcs/integrationsGetFortnoxInstallUrl.ts new file mode 100644 index 0000000..b54a34a --- /dev/null +++ b/src/funcs/integrationsGetFortnoxInstallUrl.ts @@ -0,0 +1,141 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { MiddayCore } from "../core.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import { MiddayError } from "../models/errors/middayerror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Get Fortnox install URL + * + * @remarks + * Generates OAuth install URL for Fortnox integration. Requires authentication. + */ +export function integrationsGetFortnoxInstallUrl( + client: MiddayCore, + options?: RequestOptions, +): APIPromise< + Result< + operations.GetFortnoxInstallUrlResponse, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + options, + )); +} + +async function $do( + client: MiddayCore, + options?: RequestOptions, +): Promise< + [ + Result< + operations.GetFortnoxInstallUrlResponse, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const path = pathToFunc("/apps/fortnox/install-url")(); + + const headers = new Headers(compactMap({ + Accept: "application/json", + })); + + const securityInput = await extractSecurity(client._options.security); + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "getFortnoxInstallUrl", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.security, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "GET", + baseURL: options?.serverURL, + path: path, + headers: headers, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["401", "4XX", "500", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const [result] = await M.match< + operations.GetFortnoxInstallUrlResponse, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json(200, operations.GetFortnoxInstallUrlResponse$inboundSchema), + M.fail([401, "4XX"]), + M.fail([500, "5XX"]), + )(response, req); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/integrationsGetGmailInstallUrl.ts b/src/funcs/integrationsGetGmailInstallUrl.ts new file mode 100644 index 0000000..7d26cb9 --- /dev/null +++ b/src/funcs/integrationsGetGmailInstallUrl.ts @@ -0,0 +1,141 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { MiddayCore } from "../core.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import { MiddayError } from "../models/errors/middayerror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Get Gmail install URL + * + * @remarks + * Generates OAuth install URL for Gmail integration. Requires authentication. + */ +export function integrationsGetGmailInstallUrl( + client: MiddayCore, + options?: RequestOptions, +): APIPromise< + Result< + operations.GetGmailInstallUrlResponse, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + options, + )); +} + +async function $do( + client: MiddayCore, + options?: RequestOptions, +): Promise< + [ + Result< + operations.GetGmailInstallUrlResponse, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const path = pathToFunc("/apps/gmail/install-url")(); + + const headers = new Headers(compactMap({ + Accept: "application/json", + })); + + const securityInput = await extractSecurity(client._options.security); + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "getGmailInstallUrl", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.security, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "GET", + baseURL: options?.serverURL, + path: path, + headers: headers, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["401", "4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const [result] = await M.match< + operations.GetGmailInstallUrlResponse, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json(200, operations.GetGmailInstallUrlResponse$inboundSchema), + M.fail([401, "4XX"]), + M.fail("5XX"), + )(response, req); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/integrationsGetOutlookInstallUrl.ts b/src/funcs/integrationsGetOutlookInstallUrl.ts new file mode 100644 index 0000000..1fd288c --- /dev/null +++ b/src/funcs/integrationsGetOutlookInstallUrl.ts @@ -0,0 +1,141 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { MiddayCore } from "../core.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import { MiddayError } from "../models/errors/middayerror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Get Outlook install URL + * + * @remarks + * Generates OAuth install URL for Outlook integration. Requires authentication. + */ +export function integrationsGetOutlookInstallUrl( + client: MiddayCore, + options?: RequestOptions, +): APIPromise< + Result< + operations.GetOutlookInstallUrlResponse, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + options, + )); +} + +async function $do( + client: MiddayCore, + options?: RequestOptions, +): Promise< + [ + Result< + operations.GetOutlookInstallUrlResponse, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const path = pathToFunc("/apps/outlook/install-url")(); + + const headers = new Headers(compactMap({ + Accept: "application/json", + })); + + const securityInput = await extractSecurity(client._options.security); + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "getOutlookInstallUrl", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.security, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "GET", + baseURL: options?.serverURL, + path: path, + headers: headers, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["401", "4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const [result] = await M.match< + operations.GetOutlookInstallUrlResponse, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json(200, operations.GetOutlookInstallUrlResponse$inboundSchema), + M.fail([401, "4XX"]), + M.fail("5XX"), + )(response, req); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/integrationsGetQuickBooksInstallUrl.ts b/src/funcs/integrationsGetQuickBooksInstallUrl.ts new file mode 100644 index 0000000..9c6b0db --- /dev/null +++ b/src/funcs/integrationsGetQuickBooksInstallUrl.ts @@ -0,0 +1,141 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { MiddayCore } from "../core.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import { MiddayError } from "../models/errors/middayerror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Get QuickBooks install URL + * + * @remarks + * Generates OAuth install URL for QuickBooks integration. Requires authentication. + */ +export function integrationsGetQuickBooksInstallUrl( + client: MiddayCore, + options?: RequestOptions, +): APIPromise< + Result< + operations.GetQuickBooksInstallUrlResponse, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + options, + )); +} + +async function $do( + client: MiddayCore, + options?: RequestOptions, +): Promise< + [ + Result< + operations.GetQuickBooksInstallUrlResponse, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const path = pathToFunc("/apps/quickbooks/install-url")(); + + const headers = new Headers(compactMap({ + Accept: "application/json", + })); + + const securityInput = await extractSecurity(client._options.security); + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "getQuickBooksInstallUrl", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.security, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "GET", + baseURL: options?.serverURL, + path: path, + headers: headers, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["401", "4XX", "500", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const [result] = await M.match< + operations.GetQuickBooksInstallUrlResponse, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json(200, operations.GetQuickBooksInstallUrlResponse$inboundSchema), + M.fail([401, "4XX"]), + M.fail([500, "5XX"]), + )(response, req); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/integrationsGetSlackInstallUrl.ts b/src/funcs/integrationsGetSlackInstallUrl.ts new file mode 100644 index 0000000..4691bcb --- /dev/null +++ b/src/funcs/integrationsGetSlackInstallUrl.ts @@ -0,0 +1,141 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { MiddayCore } from "../core.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import { MiddayError } from "../models/errors/middayerror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Get Slack install URL + * + * @remarks + * Generates OAuth install URL for Slack integration. Requires authentication. + */ +export function integrationsGetSlackInstallUrl( + client: MiddayCore, + options?: RequestOptions, +): APIPromise< + Result< + operations.GetSlackInstallUrlResponse, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + options, + )); +} + +async function $do( + client: MiddayCore, + options?: RequestOptions, +): Promise< + [ + Result< + operations.GetSlackInstallUrlResponse, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const path = pathToFunc("/apps/slack/install-url")(); + + const headers = new Headers(compactMap({ + Accept: "application/json", + })); + + const securityInput = await extractSecurity(client._options.security); + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "getSlackInstallUrl", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.security, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "GET", + baseURL: options?.serverURL, + path: path, + headers: headers, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["401", "4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const [result] = await M.match< + operations.GetSlackInstallUrlResponse, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json(200, operations.GetSlackInstallUrlResponse$inboundSchema), + M.fail([401, "4XX"]), + M.fail("5XX"), + )(response, req); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/integrationsGetXeroInstallUrl.ts b/src/funcs/integrationsGetXeroInstallUrl.ts new file mode 100644 index 0000000..f29af9e --- /dev/null +++ b/src/funcs/integrationsGetXeroInstallUrl.ts @@ -0,0 +1,141 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { MiddayCore } from "../core.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import { MiddayError } from "../models/errors/middayerror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Get Xero install URL + * + * @remarks + * Generates OAuth install URL for Xero integration. Requires authentication. + */ +export function integrationsGetXeroInstallUrl( + client: MiddayCore, + options?: RequestOptions, +): APIPromise< + Result< + operations.GetXeroInstallUrlResponse, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + options, + )); +} + +async function $do( + client: MiddayCore, + options?: RequestOptions, +): Promise< + [ + Result< + operations.GetXeroInstallUrlResponse, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const path = pathToFunc("/apps/xero/install-url")(); + + const headers = new Headers(compactMap({ + Accept: "application/json", + })); + + const securityInput = await extractSecurity(client._options.security); + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "getXeroInstallUrl", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.security, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "GET", + baseURL: options?.serverURL, + path: path, + headers: headers, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["401", "4XX", "500", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const [result] = await M.match< + operations.GetXeroInstallUrlResponse, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json(200, operations.GetXeroInstallUrlResponse$inboundSchema), + M.fail([401, "4XX"]), + M.fail([500, "5XX"]), + )(response, req); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/integrationsGmailOAuthCallback.ts b/src/funcs/integrationsGmailOAuthCallback.ts new file mode 100644 index 0000000..156666e --- /dev/null +++ b/src/funcs/integrationsGmailOAuthCallback.ts @@ -0,0 +1,180 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { MiddayCore } from "../core.js"; +import { encodeFormQuery } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import * as errors from "../models/errors/index.js"; +import { MiddayError } from "../models/errors/middayerror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Gmail OAuth callback + * + * @remarks + * Handles OAuth callback from Google after user authorization. Exchanges authorization code for access token and creates inbox account. + */ +export function integrationsGmailOAuthCallback( + client: MiddayCore, + request: operations.GmailOAuthCallbackRequest, + options?: RequestOptions, +): APIPromise< + Result< + operations.GmailOAuthCallbackResponse | undefined, + | errors.GmailOAuthCallbackBadRequestError + | errors.GmailOAuthCallbackInternalServerError + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + request, + options, + )); +} + +async function $do( + client: MiddayCore, + request: operations.GmailOAuthCallbackRequest, + options?: RequestOptions, +): Promise< + [ + Result< + operations.GmailOAuthCallbackResponse | undefined, + | errors.GmailOAuthCallbackBadRequestError + | errors.GmailOAuthCallbackInternalServerError + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const parsed = safeParse( + request, + (value) => operations.GmailOAuthCallbackRequest$outboundSchema.parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = null; + + const path = pathToFunc("/apps/gmail/oauth-callback")(); + + const query = encodeFormQuery({ + "code": payload.code, + "error": payload.error, + "state": payload.state, + }); + + const headers = new Headers(compactMap({ + Accept: "application/json", + })); + + const securityInput = await extractSecurity(client._options.security); + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "gmailOAuthCallback", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.security, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "GET", + baseURL: options?.serverURL, + path: path, + headers: headers, + query: query, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["400", "4XX", "500", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const responseFields = { + HttpMeta: { Response: response, Request: req }, + }; + + const [result] = await M.match< + operations.GmailOAuthCallbackResponse | undefined, + | errors.GmailOAuthCallbackBadRequestError + | errors.GmailOAuthCallbackInternalServerError + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.nil(302, operations.GmailOAuthCallbackResponse$inboundSchema.optional(), { + hdrs: true, + }), + M.jsonErr(400, errors.GmailOAuthCallbackBadRequestError$inboundSchema), + M.jsonErr(500, errors.GmailOAuthCallbackInternalServerError$inboundSchema), + M.fail("4XX"), + M.fail("5XX"), + )(response, req, { extraFields: responseFields }); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/integrationsOutlookOAuthCallback.ts b/src/funcs/integrationsOutlookOAuthCallback.ts new file mode 100644 index 0000000..a0b76f5 --- /dev/null +++ b/src/funcs/integrationsOutlookOAuthCallback.ts @@ -0,0 +1,186 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { MiddayCore } from "../core.js"; +import { encodeFormQuery } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import * as errors from "../models/errors/index.js"; +import { MiddayError } from "../models/errors/middayerror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Outlook OAuth callback + * + * @remarks + * Handles OAuth callback from Microsoft after user authorization. Exchanges authorization code for access token and creates inbox account. + */ +export function integrationsOutlookOAuthCallback( + client: MiddayCore, + request: operations.OutlookOAuthCallbackRequest, + options?: RequestOptions, +): APIPromise< + Result< + operations.OutlookOAuthCallbackResponse | undefined, + | errors.OutlookOAuthCallbackBadRequestError + | errors.OutlookOAuthCallbackInternalServerError + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + request, + options, + )); +} + +async function $do( + client: MiddayCore, + request: operations.OutlookOAuthCallbackRequest, + options?: RequestOptions, +): Promise< + [ + Result< + operations.OutlookOAuthCallbackResponse | undefined, + | errors.OutlookOAuthCallbackBadRequestError + | errors.OutlookOAuthCallbackInternalServerError + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const parsed = safeParse( + request, + (value) => + operations.OutlookOAuthCallbackRequest$outboundSchema.parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = null; + + const path = pathToFunc("/apps/outlook/oauth-callback")(); + + const query = encodeFormQuery({ + "code": payload.code, + "error": payload.error, + "state": payload.state, + }); + + const headers = new Headers(compactMap({ + Accept: "application/json", + })); + + const securityInput = await extractSecurity(client._options.security); + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "outlookOAuthCallback", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.security, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "GET", + baseURL: options?.serverURL, + path: path, + headers: headers, + query: query, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["400", "4XX", "500", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const responseFields = { + HttpMeta: { Response: response, Request: req }, + }; + + const [result] = await M.match< + operations.OutlookOAuthCallbackResponse | undefined, + | errors.OutlookOAuthCallbackBadRequestError + | errors.OutlookOAuthCallbackInternalServerError + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.nil( + 302, + operations.OutlookOAuthCallbackResponse$inboundSchema.optional(), + { hdrs: true }, + ), + M.jsonErr(400, errors.OutlookOAuthCallbackBadRequestError$inboundSchema), + M.jsonErr( + 500, + errors.OutlookOAuthCallbackInternalServerError$inboundSchema, + ), + M.fail("4XX"), + M.fail("5XX"), + )(response, req, { extraFields: responseFields }); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/integrationsQuickBooksOAuthCallback.ts b/src/funcs/integrationsQuickBooksOAuthCallback.ts new file mode 100644 index 0000000..3673543 --- /dev/null +++ b/src/funcs/integrationsQuickBooksOAuthCallback.ts @@ -0,0 +1,175 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { MiddayCore } from "../core.js"; +import { encodeFormQuery } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import { MiddayError } from "../models/errors/middayerror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * QuickBooks OAuth callback + * + * @remarks + * Handles OAuth callback from QuickBooks after user authorization. Exchanges authorization code for access token and creates app integration. + */ +export function integrationsQuickBooksOAuthCallback( + client: MiddayCore, + request: operations.QuickBooksOAuthCallbackRequest, + options?: RequestOptions, +): APIPromise< + Result< + operations.QuickBooksOAuthCallbackResponse | undefined, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + request, + options, + )); +} + +async function $do( + client: MiddayCore, + request: operations.QuickBooksOAuthCallbackRequest, + options?: RequestOptions, +): Promise< + [ + Result< + operations.QuickBooksOAuthCallbackResponse | undefined, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const parsed = safeParse( + request, + (value) => + operations.QuickBooksOAuthCallbackRequest$outboundSchema.parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = null; + + const path = pathToFunc("/apps/quickbooks/oauth-callback")(); + + const query = encodeFormQuery({ + "code": payload.code, + "error": payload.error, + "realmId": payload.realmId, + "state": payload.state, + }); + + const headers = new Headers(compactMap({ + Accept: "*/*", + })); + + const securityInput = await extractSecurity(client._options.security); + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "quickBooksOAuthCallback", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.security, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "GET", + baseURL: options?.serverURL, + path: path, + headers: headers, + query: query, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["400", "4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const responseFields = { + HttpMeta: { Response: response, Request: req }, + }; + + const [result] = await M.match< + operations.QuickBooksOAuthCallbackResponse | undefined, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.nil( + 302, + operations.QuickBooksOAuthCallbackResponse$inboundSchema.optional(), + { hdrs: true }, + ), + M.fail([400, "4XX"]), + M.fail("5XX"), + )(response, req, { extraFields: responseFields }); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/integrationsSlackInteractions.ts b/src/funcs/integrationsSlackInteractions.ts new file mode 100644 index 0000000..a26ad48 --- /dev/null +++ b/src/funcs/integrationsSlackInteractions.ts @@ -0,0 +1,141 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { MiddayCore } from "../core.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import { MiddayError } from "../models/errors/middayerror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Slack interactions handler + * + * @remarks + * Handles interactive component actions from Slack (button clicks, etc.) + */ +export function integrationsSlackInteractions( + client: MiddayCore, + options?: RequestOptions, +): APIPromise< + Result< + operations.SlackInteractionsResponse, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + options, + )); +} + +async function $do( + client: MiddayCore, + options?: RequestOptions, +): Promise< + [ + Result< + operations.SlackInteractionsResponse, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const path = pathToFunc("/apps/slack/interactions")(); + + const headers = new Headers(compactMap({ + Accept: "application/json", + })); + + const securityInput = await extractSecurity(client._options.security); + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "slackInteractions", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.security, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "POST", + baseURL: options?.serverURL, + path: path, + headers: headers, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const [result] = await M.match< + operations.SlackInteractionsResponse, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json(200, operations.SlackInteractionsResponse$inboundSchema), + M.fail("4XX"), + M.fail("5XX"), + )(response, req); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/integrationsSlackOAuthCallback.ts b/src/funcs/integrationsSlackOAuthCallback.ts new file mode 100644 index 0000000..9cc48ea --- /dev/null +++ b/src/funcs/integrationsSlackOAuthCallback.ts @@ -0,0 +1,179 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { MiddayCore } from "../core.js"; +import { encodeFormQuery } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import * as errors from "../models/errors/index.js"; +import { MiddayError } from "../models/errors/middayerror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Slack OAuth callback + * + * @remarks + * Handles OAuth callback from Slack after user authorization. Exchanges authorization code for access token and creates app integration. + */ +export function integrationsSlackOAuthCallback( + client: MiddayCore, + request: operations.SlackOAuthCallbackRequest, + options?: RequestOptions, +): APIPromise< + Result< + operations.SlackOAuthCallbackResponse | undefined, + | errors.SlackOAuthCallbackBadRequestError + | errors.SlackOAuthCallbackInternalServerError + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + request, + options, + )); +} + +async function $do( + client: MiddayCore, + request: operations.SlackOAuthCallbackRequest, + options?: RequestOptions, +): Promise< + [ + Result< + operations.SlackOAuthCallbackResponse | undefined, + | errors.SlackOAuthCallbackBadRequestError + | errors.SlackOAuthCallbackInternalServerError + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const parsed = safeParse( + request, + (value) => operations.SlackOAuthCallbackRequest$outboundSchema.parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = null; + + const path = pathToFunc("/apps/slack/oauth-callback")(); + + const query = encodeFormQuery({ + "code": payload.code, + "state": payload.state, + }); + + const headers = new Headers(compactMap({ + Accept: "application/json", + })); + + const securityInput = await extractSecurity(client._options.security); + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "slackOAuthCallback", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.security, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "GET", + baseURL: options?.serverURL, + path: path, + headers: headers, + query: query, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["400", "4XX", "500", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const responseFields = { + HttpMeta: { Response: response, Request: req }, + }; + + const [result] = await M.match< + operations.SlackOAuthCallbackResponse | undefined, + | errors.SlackOAuthCallbackBadRequestError + | errors.SlackOAuthCallbackInternalServerError + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.nil(302, operations.SlackOAuthCallbackResponse$inboundSchema.optional(), { + hdrs: true, + }), + M.jsonErr(400, errors.SlackOAuthCallbackBadRequestError$inboundSchema), + M.jsonErr(500, errors.SlackOAuthCallbackInternalServerError$inboundSchema), + M.fail("4XX"), + M.fail("5XX"), + )(response, req, { extraFields: responseFields }); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/integrationsSlackWebhook.ts b/src/funcs/integrationsSlackWebhook.ts new file mode 100644 index 0000000..59ed5f3 --- /dev/null +++ b/src/funcs/integrationsSlackWebhook.ts @@ -0,0 +1,141 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { MiddayCore } from "../core.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import { MiddayError } from "../models/errors/middayerror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Slack webhook handler + * + * @remarks + * Handles incoming webhook events from Slack. Verifies request signature and processes events. + */ +export function integrationsSlackWebhook( + client: MiddayCore, + options?: RequestOptions, +): APIPromise< + Result< + operations.SlackWebhookResponse, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + options, + )); +} + +async function $do( + client: MiddayCore, + options?: RequestOptions, +): Promise< + [ + Result< + operations.SlackWebhookResponse, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const path = pathToFunc("/apps/slack/webhook")(); + + const headers = new Headers(compactMap({ + Accept: "application/json", + })); + + const securityInput = await extractSecurity(client._options.security); + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "slackWebhook", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.security, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "POST", + baseURL: options?.serverURL, + path: path, + headers: headers, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const [result] = await M.match< + operations.SlackWebhookResponse, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json(200, operations.SlackWebhookResponse$inboundSchema), + M.fail("4XX"), + M.fail("5XX"), + )(response, req); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/integrationsXeroOAuthCallback.ts b/src/funcs/integrationsXeroOAuthCallback.ts new file mode 100644 index 0000000..a759551 --- /dev/null +++ b/src/funcs/integrationsXeroOAuthCallback.ts @@ -0,0 +1,171 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { MiddayCore } from "../core.js"; +import { encodeFormQuery } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import { MiddayError } from "../models/errors/middayerror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Xero OAuth callback + * + * @remarks + * Handles OAuth callback from Xero after user authorization. Exchanges authorization code for access token and creates app integration. + */ +export function integrationsXeroOAuthCallback( + client: MiddayCore, + request: operations.XeroOAuthCallbackRequest, + options?: RequestOptions, +): APIPromise< + Result< + operations.XeroOAuthCallbackResponse | undefined, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + request, + options, + )); +} + +async function $do( + client: MiddayCore, + request: operations.XeroOAuthCallbackRequest, + options?: RequestOptions, +): Promise< + [ + Result< + operations.XeroOAuthCallbackResponse | undefined, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const parsed = safeParse( + request, + (value) => operations.XeroOAuthCallbackRequest$outboundSchema.parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = null; + + const path = pathToFunc("/apps/xero/oauth-callback")(); + + const query = encodeFormQuery({ + "code": payload.code, + "error": payload.error, + "state": payload.state, + }); + + const headers = new Headers(compactMap({ + Accept: "*/*", + })); + + const securityInput = await extractSecurity(client._options.security); + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "xeroOAuthCallback", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.security, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "GET", + baseURL: options?.serverURL, + path: path, + headers: headers, + query: query, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["400", "4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const responseFields = { + HttpMeta: { Response: response, Request: req }, + }; + + const [result] = await M.match< + operations.XeroOAuthCallbackResponse | undefined, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.nil(302, operations.XeroOAuthCallbackResponse$inboundSchema.optional(), { + hdrs: true, + }), + M.fail([400, "4XX"]), + M.fail("5XX"), + )(response, req, { extraFields: responseFields }); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/invoicePaymentsCreateInvoicePaymentIntent.ts b/src/funcs/invoicePaymentsCreateInvoicePaymentIntent.ts new file mode 100644 index 0000000..76d6729 --- /dev/null +++ b/src/funcs/invoicePaymentsCreateInvoicePaymentIntent.ts @@ -0,0 +1,163 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { MiddayCore } from "../core.js"; +import { encodeJSON } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import { MiddayError } from "../models/errors/middayerror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Create payment intent for invoice + * + * @remarks + * Creates a Stripe PaymentIntent for paying an invoice. This is a public endpoint that uses the invoice token for authentication. + */ +export function invoicePaymentsCreateInvoicePaymentIntent( + client: MiddayCore, + request?: operations.CreateInvoicePaymentIntentRequest | undefined, + options?: RequestOptions, +): APIPromise< + Result< + operations.CreateInvoicePaymentIntentResponse, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + request, + options, + )); +} + +async function $do( + client: MiddayCore, + request?: operations.CreateInvoicePaymentIntentRequest | undefined, + options?: RequestOptions, +): Promise< + [ + Result< + operations.CreateInvoicePaymentIntentResponse, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const parsed = safeParse( + request, + (value) => + operations.CreateInvoicePaymentIntentRequest$outboundSchema.optional() + .parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = payload === undefined + ? null + : encodeJSON("body", payload, { explode: true }); + + const path = pathToFunc("/invoice-payments/payment-intent")(); + + const headers = new Headers(compactMap({ + "Content-Type": "application/json", + Accept: "application/json", + })); + + const securityInput = await extractSecurity(client._options.security); + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "createInvoicePaymentIntent", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.security, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "POST", + baseURL: options?.serverURL, + path: path, + headers: headers, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["400", "404", "4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const [result] = await M.match< + operations.CreateInvoicePaymentIntentResponse, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json(200, operations.CreateInvoicePaymentIntentResponse$inboundSchema), + M.fail([400, 404, "4XX"]), + M.fail("5XX"), + )(response, req); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/invoicePaymentsDisconnectStripe.ts b/src/funcs/invoicePaymentsDisconnectStripe.ts new file mode 100644 index 0000000..a1a6ed9 --- /dev/null +++ b/src/funcs/invoicePaymentsDisconnectStripe.ts @@ -0,0 +1,141 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { MiddayCore } from "../core.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import { MiddayError } from "../models/errors/middayerror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Disconnect Stripe account + * + * @remarks + * Disconnects the team's Stripe Connect account. + */ +export function invoicePaymentsDisconnectStripe( + client: MiddayCore, + options?: RequestOptions, +): APIPromise< + Result< + operations.DisconnectStripeResponse, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + options, + )); +} + +async function $do( + client: MiddayCore, + options?: RequestOptions, +): Promise< + [ + Result< + operations.DisconnectStripeResponse, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const path = pathToFunc("/invoice-payments/disconnect-stripe")(); + + const headers = new Headers(compactMap({ + Accept: "application/json", + })); + + const securityInput = await extractSecurity(client._options.security); + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "disconnectStripe", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.security, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "POST", + baseURL: options?.serverURL, + path: path, + headers: headers, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["401", "4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const [result] = await M.match< + operations.DisconnectStripeResponse, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json(200, operations.DisconnectStripeResponse$inboundSchema), + M.fail([401, "4XX"]), + M.fail("5XX"), + )(response, req); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/invoicePaymentsGetStripeConnectStatus.ts b/src/funcs/invoicePaymentsGetStripeConnectStatus.ts new file mode 100644 index 0000000..f0a2e55 --- /dev/null +++ b/src/funcs/invoicePaymentsGetStripeConnectStatus.ts @@ -0,0 +1,141 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { MiddayCore } from "../core.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import { MiddayError } from "../models/errors/middayerror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Get Stripe Connect status + * + * @remarks + * Gets the current Stripe Connect status for the team. + */ +export function invoicePaymentsGetStripeConnectStatus( + client: MiddayCore, + options?: RequestOptions, +): APIPromise< + Result< + operations.GetStripeConnectStatusResponse, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + options, + )); +} + +async function $do( + client: MiddayCore, + options?: RequestOptions, +): Promise< + [ + Result< + operations.GetStripeConnectStatusResponse, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const path = pathToFunc("/invoice-payments/stripe-status")(); + + const headers = new Headers(compactMap({ + Accept: "application/json", + })); + + const securityInput = await extractSecurity(client._options.security); + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "getStripeConnectStatus", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.security, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "GET", + baseURL: options?.serverURL, + path: path, + headers: headers, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["401", "4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const [result] = await M.match< + operations.GetStripeConnectStatusResponse, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json(200, operations.GetStripeConnectStatusResponse$inboundSchema), + M.fail([401, "4XX"]), + M.fail("5XX"), + )(response, req); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/invoicePaymentsGetStripeConnectUrl.ts b/src/funcs/invoicePaymentsGetStripeConnectUrl.ts new file mode 100644 index 0000000..dee43b4 --- /dev/null +++ b/src/funcs/invoicePaymentsGetStripeConnectUrl.ts @@ -0,0 +1,141 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { MiddayCore } from "../core.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import { MiddayError } from "../models/errors/middayerror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Get Stripe Connect URL + * + * @remarks + * Generates OAuth URL for Stripe Connect Standard integration. Allows teams to connect their Stripe account for accepting invoice payments. + */ +export function invoicePaymentsGetStripeConnectUrl( + client: MiddayCore, + options?: RequestOptions, +): APIPromise< + Result< + operations.GetStripeConnectUrlResponse, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + options, + )); +} + +async function $do( + client: MiddayCore, + options?: RequestOptions, +): Promise< + [ + Result< + operations.GetStripeConnectUrlResponse, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const path = pathToFunc("/invoice-payments/connect-stripe")(); + + const headers = new Headers(compactMap({ + Accept: "application/json", + })); + + const securityInput = await extractSecurity(client._options.security); + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "getStripeConnectUrl", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.security, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "GET", + baseURL: options?.serverURL, + path: path, + headers: headers, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["401", "4XX", "500", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const [result] = await M.match< + operations.GetStripeConnectUrlResponse, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json(200, operations.GetStripeConnectUrlResponse$inboundSchema), + M.fail([401, "4XX"]), + M.fail([500, "5XX"]), + )(response, req); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/invoicePaymentsStripeConnectCallback.ts b/src/funcs/invoicePaymentsStripeConnectCallback.ts new file mode 100644 index 0000000..af37a7a --- /dev/null +++ b/src/funcs/invoicePaymentsStripeConnectCallback.ts @@ -0,0 +1,175 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { MiddayCore } from "../core.js"; +import { encodeFormQuery } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import { MiddayError } from "../models/errors/middayerror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Stripe Connect OAuth callback + * + * @remarks + * Handles OAuth callback from Stripe Connect after user authorization. Exchanges authorization code for connected account ID. + */ +export function invoicePaymentsStripeConnectCallback( + client: MiddayCore, + request: operations.StripeConnectCallbackRequest, + options?: RequestOptions, +): APIPromise< + Result< + operations.StripeConnectCallbackResponse | undefined, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + request, + options, + )); +} + +async function $do( + client: MiddayCore, + request: operations.StripeConnectCallbackRequest, + options?: RequestOptions, +): Promise< + [ + Result< + operations.StripeConnectCallbackResponse | undefined, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const parsed = safeParse( + request, + (value) => + operations.StripeConnectCallbackRequest$outboundSchema.parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = null; + + const path = pathToFunc("/invoice-payments/connect-stripe/callback")(); + + const query = encodeFormQuery({ + "code": payload.code, + "error": payload.error, + "error_description": payload.error_description, + "state": payload.state, + }); + + const headers = new Headers(compactMap({ + Accept: "*/*", + })); + + const securityInput = await extractSecurity(client._options.security); + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "stripeConnectCallback", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.security, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "GET", + baseURL: options?.serverURL, + path: path, + headers: headers, + query: query, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["400", "4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const responseFields = { + HttpMeta: { Response: response, Request: req }, + }; + + const [result] = await M.match< + operations.StripeConnectCallbackResponse | undefined, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.nil( + 302, + operations.StripeConnectCallbackResponse$inboundSchema.optional(), + { hdrs: true }, + ), + M.fail([400, "4XX"]), + M.fail("5XX"), + )(response, req, { extraFields: responseFields }); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/invoicesCreate.ts b/src/funcs/invoicesCreate.ts index dd6419d..c487780 100644 --- a/src/funcs/invoicesCreate.ts +++ b/src/funcs/invoicesCreate.ts @@ -111,7 +111,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "createInvoice", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/invoicesDelete.ts b/src/funcs/invoicesDelete.ts index e920491..7a5c1a8 100644 --- a/src/funcs/invoicesDelete.ts +++ b/src/funcs/invoicesDelete.ts @@ -105,7 +105,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "deleteInvoice", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/invoicesGet.ts b/src/funcs/invoicesGet.ts index f301963..98b3def 100644 --- a/src/funcs/invoicesGet.ts +++ b/src/funcs/invoicesGet.ts @@ -105,7 +105,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getInvoiceById", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/invoicesGetInvoicesPaymentStatus.ts b/src/funcs/invoicesGetInvoicesPaymentStatus.ts index b4ec774..a50dd6e 100644 --- a/src/funcs/invoicesGetInvoicesPaymentStatus.ts +++ b/src/funcs/invoicesGetInvoicesPaymentStatus.ts @@ -82,7 +82,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get_/invoices/payment-status", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/invoicesList.ts b/src/funcs/invoicesList.ts index 53ce09f..aa0b8b6 100644 --- a/src/funcs/invoicesList.ts +++ b/src/funcs/invoicesList.ts @@ -109,7 +109,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "listInvoices", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/invoicesSummary.ts b/src/funcs/invoicesSummary.ts index 1a7a7ef..aec8af4 100644 --- a/src/funcs/invoicesSummary.ts +++ b/src/funcs/invoicesSummary.ts @@ -2,7 +2,6 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; import { MiddayCore } from "../core.js"; import { encodeFormQuery } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -37,7 +36,7 @@ export function invoicesSummary( options?: RequestOptions, ): APIPromise< Result< - Array, + operations.GetInvoiceSummaryResponse, | MiddayError | ResponseValidationError | ConnectionError @@ -62,7 +61,7 @@ async function $do( ): Promise< [ Result< - Array, + operations.GetInvoiceSummaryResponse, | MiddayError | ResponseValidationError | ConnectionError @@ -89,7 +88,7 @@ async function $do( const path = pathToFunc("/invoices/summary")(); const query = encodeFormQuery({ - "status": payload.status, + "statuses": payload.statuses, }); const headers = new Headers(compactMap({ @@ -103,7 +102,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getInvoiceSummary", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -142,7 +141,7 @@ async function $do( const response = doResult.value; const [result] = await M.match< - Array, + operations.GetInvoiceSummaryResponse, | MiddayError | ResponseValidationError | ConnectionError @@ -152,7 +151,7 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, z.array(operations.GetInvoiceSummaryResponse$inboundSchema)), + M.json(200, operations.GetInvoiceSummaryResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"), )(response, req); diff --git a/src/funcs/invoicesUpdate.ts b/src/funcs/invoicesUpdate.ts index 84d2857..5ac1395 100644 --- a/src/funcs/invoicesUpdate.ts +++ b/src/funcs/invoicesUpdate.ts @@ -106,7 +106,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "updateInvoice", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/notificationsList.ts b/src/funcs/notificationsList.ts index e028760..2c7da44 100644 --- a/src/funcs/notificationsList.ts +++ b/src/funcs/notificationsList.ts @@ -108,7 +108,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "listNotifications", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/notificationsUpdateAllStatus.ts b/src/funcs/notificationsUpdateAllStatus.ts index 4cd182a..f82afbb 100644 --- a/src/funcs/notificationsUpdateAllStatus.ts +++ b/src/funcs/notificationsUpdateAllStatus.ts @@ -104,7 +104,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "updateAllNotificationsStatus", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/notificationsUpdateStatus.ts b/src/funcs/notificationsUpdateStatus.ts index f76e7e6..bef30b8 100644 --- a/src/funcs/notificationsUpdateStatus.ts +++ b/src/funcs/notificationsUpdateStatus.ts @@ -108,7 +108,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "updateNotificationStatus", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/oAuthGetOAuthAuthorization.ts b/src/funcs/oAuthGetOAuthAuthorization.ts index 000171d..05504d6 100644 --- a/src/funcs/oAuthGetOAuthAuthorization.ts +++ b/src/funcs/oAuthGetOAuthAuthorization.ts @@ -111,7 +111,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getOAuthAuthorization", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/oAuthPostOAuthAuthorization.ts b/src/funcs/oAuthPostOAuthAuthorization.ts index 36d01ed..5601663 100644 --- a/src/funcs/oAuthPostOAuthAuthorization.ts +++ b/src/funcs/oAuthPostOAuthAuthorization.ts @@ -39,7 +39,7 @@ export function oAuthPostOAuthAuthorization( Result< operations.PostOAuthAuthorizationResponse, | errors.PostOAuthAuthorizationBadRequestError - | errors.UnauthorizedError + | errors.PostOAuthAuthorizationUnauthorizedError | MiddayError | ResponseValidationError | ConnectionError @@ -66,7 +66,7 @@ async function $do( Result< operations.PostOAuthAuthorizationResponse, | errors.PostOAuthAuthorizationBadRequestError - | errors.UnauthorizedError + | errors.PostOAuthAuthorizationUnauthorizedError | MiddayError | ResponseValidationError | ConnectionError @@ -109,7 +109,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "postOAuthAuthorization", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -153,7 +153,7 @@ async function $do( const [result] = await M.match< operations.PostOAuthAuthorizationResponse, | errors.PostOAuthAuthorizationBadRequestError - | errors.UnauthorizedError + | errors.PostOAuthAuthorizationUnauthorizedError | MiddayError | ResponseValidationError | ConnectionError @@ -165,7 +165,10 @@ async function $do( >( M.json(200, operations.PostOAuthAuthorizationResponse$inboundSchema), M.jsonErr(400, errors.PostOAuthAuthorizationBadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), + M.jsonErr( + 401, + errors.PostOAuthAuthorizationUnauthorizedError$inboundSchema, + ), M.fail("4XX"), M.fail("5XX"), )(response, req, { extraFields: responseFields }); diff --git a/src/funcs/oAuthPostOAuthRevoke.ts b/src/funcs/oAuthPostOAuthRevoke.ts index e252d89..3ad457d 100644 --- a/src/funcs/oAuthPostOAuthRevoke.ts +++ b/src/funcs/oAuthPostOAuthRevoke.ts @@ -102,7 +102,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "postOAuthRevoke", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/oAuthPostOAuthToken.ts b/src/funcs/oAuthPostOAuthToken.ts index 0187243..ba8317a 100644 --- a/src/funcs/oAuthPostOAuthToken.ts +++ b/src/funcs/oAuthPostOAuthToken.ts @@ -105,7 +105,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "postOAuthToken", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/reportsBurnRate.ts b/src/funcs/reportsBurnRate.ts index 4ef4e6d..894ba70 100644 --- a/src/funcs/reportsBurnRate.ts +++ b/src/funcs/reportsBurnRate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { MiddayCore } from "../core.js"; import { encodeFormQuery } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -106,7 +106,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getBurnRateReports", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/reportsExpenses.ts b/src/funcs/reportsExpenses.ts index a32de21..aef07a1 100644 --- a/src/funcs/reportsExpenses.ts +++ b/src/funcs/reportsExpenses.ts @@ -105,7 +105,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getExpensesReports", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/reportsProfit.ts b/src/funcs/reportsProfit.ts index 5f7a1fb..c5bae74 100644 --- a/src/funcs/reportsProfit.ts +++ b/src/funcs/reportsProfit.ts @@ -91,6 +91,7 @@ async function $do( const query = encodeFormQuery({ "currency": payload.currency, "from": payload.from, + "revenueType": payload.revenueType, "to": payload.to, }); @@ -105,7 +106,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getProfitReports", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/reportsRevenue.ts b/src/funcs/reportsRevenue.ts index 7589b20..59a5cc7 100644 --- a/src/funcs/reportsRevenue.ts +++ b/src/funcs/reportsRevenue.ts @@ -91,6 +91,7 @@ async function $do( const query = encodeFormQuery({ "currency": payload.currency, "from": payload.from, + "revenueType": payload.revenueType, "to": payload.to, }); @@ -105,7 +106,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getRevenueReports", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/reportsRunway.ts b/src/funcs/reportsRunway.ts index 138bc10..86ffcec 100644 --- a/src/funcs/reportsRunway.ts +++ b/src/funcs/reportsRunway.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { MiddayCore } from "../core.js"; import { encodeFormQuery } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -105,7 +105,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getRunwayReports", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/reportsSpending.ts b/src/funcs/reportsSpending.ts index 429bf94..466ccb6 100644 --- a/src/funcs/reportsSpending.ts +++ b/src/funcs/reportsSpending.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { MiddayCore } from "../core.js"; import { encodeFormQuery } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -106,7 +106,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getSpendingReports", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/searchSearch.ts b/src/funcs/searchSearch.ts index ba20f8f..72a9847 100644 --- a/src/funcs/searchSearch.ts +++ b/src/funcs/searchSearch.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { MiddayCore } from "../core.js"; import { encodeFormQuery } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -107,7 +107,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "search", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/tagsCreate.ts b/src/funcs/tagsCreate.ts index 41e083f..556a668 100644 --- a/src/funcs/tagsCreate.ts +++ b/src/funcs/tagsCreate.ts @@ -36,7 +36,7 @@ export function tagsCreate( options?: RequestOptions, ): APIPromise< Result< - models.TagsResponse, + models.TagResponse, | MiddayError | ResponseValidationError | ConnectionError @@ -61,7 +61,7 @@ async function $do( ): Promise< [ Result< - models.TagsResponse, + models.TagResponse, | MiddayError | ResponseValidationError | ConnectionError @@ -101,7 +101,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "createTag", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -139,7 +139,7 @@ async function $do( const response = doResult.value; const [result] = await M.match< - models.TagsResponse, + models.TagResponse, | MiddayError | ResponseValidationError | ConnectionError @@ -149,7 +149,7 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(201, models.TagsResponse$inboundSchema), + M.json(201, models.TagResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"), )(response, req); diff --git a/src/funcs/tagsDelete.ts b/src/funcs/tagsDelete.ts index 0245ccf..bee7057 100644 --- a/src/funcs/tagsDelete.ts +++ b/src/funcs/tagsDelete.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { MiddayCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -106,7 +106,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "deleteTag", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/tagsGet.ts b/src/funcs/tagsGet.ts index 2c42a1d..1fcdbd3 100644 --- a/src/funcs/tagsGet.ts +++ b/src/funcs/tagsGet.ts @@ -106,7 +106,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getTagById", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/tagsList.ts b/src/funcs/tagsList.ts index 56d2244..5592f92 100644 --- a/src/funcs/tagsList.ts +++ b/src/funcs/tagsList.ts @@ -82,7 +82,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "listTags", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/tagsUpdate.ts b/src/funcs/tagsUpdate.ts index dbcf6ca..7c10c73 100644 --- a/src/funcs/tagsUpdate.ts +++ b/src/funcs/tagsUpdate.ts @@ -107,7 +107,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "updateTag", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/teamsGet.ts b/src/funcs/teamsGet.ts index d5064c5..91d72fc 100644 --- a/src/funcs/teamsGet.ts +++ b/src/funcs/teamsGet.ts @@ -105,7 +105,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getTeamById", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/teamsList.ts b/src/funcs/teamsList.ts index c95292d..e975f74 100644 --- a/src/funcs/teamsList.ts +++ b/src/funcs/teamsList.ts @@ -82,7 +82,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "listTeams", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/teamsMembers.ts b/src/funcs/teamsMembers.ts index ad4dec7..a5de140 100644 --- a/src/funcs/teamsMembers.ts +++ b/src/funcs/teamsMembers.ts @@ -105,7 +105,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "listTeamMembers", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/teamsUpdate.ts b/src/funcs/teamsUpdate.ts index d9f58d7..9e4f109 100644 --- a/src/funcs/teamsUpdate.ts +++ b/src/funcs/teamsUpdate.ts @@ -106,7 +106,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "updateTeamById", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/trackerEntriesCreate.ts b/src/funcs/trackerEntriesCreate.ts index 20bbd3a..bc28762 100644 --- a/src/funcs/trackerEntriesCreate.ts +++ b/src/funcs/trackerEntriesCreate.ts @@ -104,7 +104,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "createTrackerEntry", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/trackerEntriesCreateBulk.ts b/src/funcs/trackerEntriesCreateBulk.ts index c66c06b..32869c3 100644 --- a/src/funcs/trackerEntriesCreateBulk.ts +++ b/src/funcs/trackerEntriesCreateBulk.ts @@ -103,7 +103,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "createTrackerEntriesBulk", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/trackerEntriesDelete.ts b/src/funcs/trackerEntriesDelete.ts index 6e8cc54..4fa158e 100644 --- a/src/funcs/trackerEntriesDelete.ts +++ b/src/funcs/trackerEntriesDelete.ts @@ -105,7 +105,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "deleteTrackerEntry", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/trackerEntriesList.ts b/src/funcs/trackerEntriesList.ts index d0bc9dc..d3a69d7 100644 --- a/src/funcs/trackerEntriesList.ts +++ b/src/funcs/trackerEntriesList.ts @@ -104,7 +104,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "listTrackerEntries", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/trackerEntriesUpdate.ts b/src/funcs/trackerEntriesUpdate.ts index e493585..3e52c7d 100644 --- a/src/funcs/trackerEntriesUpdate.ts +++ b/src/funcs/trackerEntriesUpdate.ts @@ -106,7 +106,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "updateTrackerEntry", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/trackerProjectsCreate.ts b/src/funcs/trackerProjectsCreate.ts index 6da31ee..a9fa7dc 100644 --- a/src/funcs/trackerProjectsCreate.ts +++ b/src/funcs/trackerProjectsCreate.ts @@ -105,7 +105,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "createTrackerProject", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/trackerProjectsDelete.ts b/src/funcs/trackerProjectsDelete.ts index cc14471..b9ea100 100644 --- a/src/funcs/trackerProjectsDelete.ts +++ b/src/funcs/trackerProjectsDelete.ts @@ -106,7 +106,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "deleteTrackerProject", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/trackerProjectsGet.ts b/src/funcs/trackerProjectsGet.ts index 9f3c3ec..5c2cb53 100644 --- a/src/funcs/trackerProjectsGet.ts +++ b/src/funcs/trackerProjectsGet.ts @@ -107,7 +107,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getTrackerProjectById", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/trackerProjectsList.ts b/src/funcs/trackerProjectsList.ts index 6e2876e..876c72b 100644 --- a/src/funcs/trackerProjectsList.ts +++ b/src/funcs/trackerProjectsList.ts @@ -112,7 +112,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "listTrackerProjects", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/trackerProjectsUpdate.ts b/src/funcs/trackerProjectsUpdate.ts index 6ea4282..05c8762 100644 --- a/src/funcs/trackerProjectsUpdate.ts +++ b/src/funcs/trackerProjectsUpdate.ts @@ -108,7 +108,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "updateTrackerProject", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/trackerTimerGetCurrentTimer.ts b/src/funcs/trackerTimerGetCurrentTimer.ts index 8e49b04..bf9276c 100644 --- a/src/funcs/trackerTimerGetCurrentTimer.ts +++ b/src/funcs/trackerTimerGetCurrentTimer.ts @@ -102,7 +102,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getCurrentTimer", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/trackerTimerGetTimerStatus.ts b/src/funcs/trackerTimerGetTimerStatus.ts index f43ed3a..3751b85 100644 --- a/src/funcs/trackerTimerGetTimerStatus.ts +++ b/src/funcs/trackerTimerGetTimerStatus.ts @@ -102,7 +102,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getTimerStatus", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/trackerTimerStartTimer.ts b/src/funcs/trackerTimerStartTimer.ts index a22b45d..3710141 100644 --- a/src/funcs/trackerTimerStartTimer.ts +++ b/src/funcs/trackerTimerStartTimer.ts @@ -102,7 +102,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "startTimer", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/trackerTimerStopTimer.ts b/src/funcs/trackerTimerStopTimer.ts index 07cf87a..6c6d3f5 100644 --- a/src/funcs/trackerTimerStopTimer.ts +++ b/src/funcs/trackerTimerStopTimer.ts @@ -102,7 +102,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "stopTimer", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/transactionsCreate.ts b/src/funcs/transactionsCreate.ts index 2fb665e..30079a3 100644 --- a/src/funcs/transactionsCreate.ts +++ b/src/funcs/transactionsCreate.ts @@ -105,7 +105,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "createTransaction", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/transactionsCreateMany.ts b/src/funcs/transactionsCreateMany.ts index 1ac9b2c..e5fbbdc 100644 --- a/src/funcs/transactionsCreateMany.ts +++ b/src/funcs/transactionsCreateMany.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { MiddayCore } from "../core.js"; import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -104,7 +104,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "createTransactions", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/transactionsDelete.ts b/src/funcs/transactionsDelete.ts index 9907413..0ebb9fc 100644 --- a/src/funcs/transactionsDelete.ts +++ b/src/funcs/transactionsDelete.ts @@ -105,7 +105,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "deleteTransaction", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/transactionsDeleteMany.ts b/src/funcs/transactionsDeleteMany.ts index 591cd06..6cbd06b 100644 --- a/src/funcs/transactionsDeleteMany.ts +++ b/src/funcs/transactionsDeleteMany.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { MiddayCore } from "../core.js"; import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -102,7 +102,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "deleteTransactions", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/transactionsGet.ts b/src/funcs/transactionsGet.ts index d40c8a7..edcfaa9 100644 --- a/src/funcs/transactionsGet.ts +++ b/src/funcs/transactionsGet.ts @@ -106,7 +106,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getTransactionById", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/transactionsGetAttachmentPreSignedUrl.ts b/src/funcs/transactionsGetAttachmentPreSignedUrl.ts index ee6e256..195f30c 100644 --- a/src/funcs/transactionsGetAttachmentPreSignedUrl.ts +++ b/src/funcs/transactionsGetAttachmentPreSignedUrl.ts @@ -124,7 +124,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getTransactionAttachmentPreSignedUrl", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/transactionsList.ts b/src/funcs/transactionsList.ts index c28b81d..4dba940 100644 --- a/src/funcs/transactionsList.ts +++ b/src/funcs/transactionsList.ts @@ -96,6 +96,9 @@ async function $do( "categories": payload.categories, "cursor": payload.cursor, "end": payload.end, + "exported": payload.exported, + "fulfilled": payload.fulfilled, + "manual": payload.manual, "pageSize": payload.pageSize, "q": payload.q, "recurring": payload.recurring, @@ -117,7 +120,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "listTransactions", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/transactionsUpdate.ts b/src/funcs/transactionsUpdate.ts index 3501928..2c6613f 100644 --- a/src/funcs/transactionsUpdate.ts +++ b/src/funcs/transactionsUpdate.ts @@ -107,7 +107,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "updateTransaction", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/transactionsUpdateMany.ts b/src/funcs/transactionsUpdateMany.ts index 5e0f272..775a63f 100644 --- a/src/funcs/transactionsUpdateMany.ts +++ b/src/funcs/transactionsUpdateMany.ts @@ -104,7 +104,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "updateTransactions", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/usersGet.ts b/src/funcs/usersGet.ts index 03f5cf0..c427d94 100644 --- a/src/funcs/usersGet.ts +++ b/src/funcs/usersGet.ts @@ -82,7 +82,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getCurrentUser", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/usersUpdate.ts b/src/funcs/usersUpdate.ts index 0efb3ac..3048378 100644 --- a/src/funcs/usersUpdate.ts +++ b/src/funcs/usersUpdate.ts @@ -104,7 +104,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "updateCurrentUser", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/webhooksInboxWebhook.ts b/src/funcs/webhooksInboxWebhook.ts new file mode 100644 index 0000000..43bcaf7 --- /dev/null +++ b/src/funcs/webhooksInboxWebhook.ts @@ -0,0 +1,175 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { MiddayCore } from "../core.js"; +import { encodeJSON } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import * as errors from "../models/errors/index.js"; +import { MiddayError } from "../models/errors/middayerror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Inbox webhook + * + * @remarks + * Webhook endpoint for receiving inbox emails from Postmark + */ +export function webhooksInboxWebhook( + client: MiddayCore, + request?: any | null | undefined, + options?: RequestOptions, +): APIPromise< + Result< + operations.InboxWebhookResponse, + | errors.InboxWebhookBadRequestError + | errors.InboxWebhookInternalServerError + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + request, + options, + )); +} + +async function $do( + client: MiddayCore, + request?: any | null | undefined, + options?: RequestOptions, +): Promise< + [ + Result< + operations.InboxWebhookResponse, + | errors.InboxWebhookBadRequestError + | errors.InboxWebhookInternalServerError + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const parsed = safeParse( + request, + (value) => z.nullable(z.any()).optional().parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = payload === undefined + ? null + : encodeJSON("body", payload, { explode: true }); + + const path = pathToFunc("/webhook/inbox")(); + + const headers = new Headers(compactMap({ + "Content-Type": "application/json", + Accept: "application/json", + })); + + const securityInput = await extractSecurity(client._options.security); + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "inboxWebhook", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.security, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "POST", + baseURL: options?.serverURL, + path: path, + headers: headers, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["400", "403", "4XX", "500", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const responseFields = { + HttpMeta: { Response: response, Request: req }, + }; + + const [result] = await M.match< + operations.InboxWebhookResponse, + | errors.InboxWebhookBadRequestError + | errors.InboxWebhookInternalServerError + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json(200, operations.InboxWebhookResponse$inboundSchema), + M.jsonErr(400, errors.InboxWebhookBadRequestError$inboundSchema), + M.jsonErr(500, errors.InboxWebhookInternalServerError$inboundSchema), + M.fail([403, "4XX"]), + M.fail("5XX"), + )(response, req, { extraFields: responseFields }); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/webhooksStripeWebhook.ts b/src/funcs/webhooksStripeWebhook.ts new file mode 100644 index 0000000..2e9b58a --- /dev/null +++ b/src/funcs/webhooksStripeWebhook.ts @@ -0,0 +1,141 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { MiddayCore } from "../core.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import { MiddayError } from "../models/errors/middayerror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Stripe webhook handler + * + * @remarks + * Handles Stripe webhook events for invoice payments. Verifies webhook signature and processes payment events. + */ +export function webhooksStripeWebhook( + client: MiddayCore, + options?: RequestOptions, +): APIPromise< + Result< + operations.StripeWebhookResponse, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + options, + )); +} + +async function $do( + client: MiddayCore, + options?: RequestOptions, +): Promise< + [ + Result< + operations.StripeWebhookResponse, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const path = pathToFunc("/webhook/stripe")(); + + const headers = new Headers(compactMap({ + Accept: "application/json", + })); + + const securityInput = await extractSecurity(client._options.security); + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "stripeWebhook", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.security, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "POST", + baseURL: options?.serverURL, + path: path, + headers: headers, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["400", "4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const [result] = await M.match< + operations.StripeWebhookResponse, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json(200, operations.StripeWebhookResponse$inboundSchema), + M.fail([400, "4XX"]), + M.fail("5XX"), + )(response, req); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/webhooksWhatsappWebhook.ts b/src/funcs/webhooksWhatsappWebhook.ts new file mode 100644 index 0000000..4496425 --- /dev/null +++ b/src/funcs/webhooksWhatsappWebhook.ts @@ -0,0 +1,162 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { MiddayCore } from "../core.js"; +import { encodeJSON } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import { MiddayError } from "../models/errors/middayerror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * WhatsApp webhook + * + * @remarks + * Receive messages, media, and button replies from WhatsApp Business API + */ +export function webhooksWhatsappWebhook( + client: MiddayCore, + request?: any | null | undefined, + options?: RequestOptions, +): APIPromise< + Result< + operations.WhatsappWebhookResponse, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + request, + options, + )); +} + +async function $do( + client: MiddayCore, + request?: any | null | undefined, + options?: RequestOptions, +): Promise< + [ + Result< + operations.WhatsappWebhookResponse, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const parsed = safeParse( + request, + (value) => z.nullable(z.any()).optional().parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = payload === undefined + ? null + : encodeJSON("body", payload, { explode: true }); + + const path = pathToFunc("/webhook/whatsapp")(); + + const headers = new Headers(compactMap({ + "Content-Type": "application/json", + Accept: "application/json", + })); + + const securityInput = await extractSecurity(client._options.security); + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "whatsappWebhook", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.security, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "POST", + baseURL: options?.serverURL, + path: path, + headers: headers, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["400", "403", "4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const [result] = await M.match< + operations.WhatsappWebhookResponse, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json(200, operations.WhatsappWebhookResponse$inboundSchema), + M.fail([400, 403, "4XX"]), + M.fail("5XX"), + )(response, req); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/webhooksWhatsappWebhookVerify.ts b/src/funcs/webhooksWhatsappWebhookVerify.ts new file mode 100644 index 0000000..c16c5ed --- /dev/null +++ b/src/funcs/webhooksWhatsappWebhookVerify.ts @@ -0,0 +1,167 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { MiddayCore } from "../core.js"; +import { encodeFormQuery } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import { MiddayError } from "../models/errors/middayerror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * WhatsApp webhook verification + * + * @remarks + * Verify webhook URL for WhatsApp Business API + */ +export function webhooksWhatsappWebhookVerify( + client: MiddayCore, + request: operations.WhatsappWebhookVerifyRequest, + options?: RequestOptions, +): APIPromise< + Result< + string, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + request, + options, + )); +} + +async function $do( + client: MiddayCore, + request: operations.WhatsappWebhookVerifyRequest, + options?: RequestOptions, +): Promise< + [ + Result< + string, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const parsed = safeParse( + request, + (value) => + operations.WhatsappWebhookVerifyRequest$outboundSchema.parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = null; + + const path = pathToFunc("/webhook/whatsapp")(); + + const query = encodeFormQuery({ + "hub.challenge": payload["hub.challenge"], + "hub.mode": payload["hub.mode"], + "hub.verify_token": payload["hub.verify_token"], + }); + + const headers = new Headers(compactMap({ + Accept: "text/plain", + })); + + const securityInput = await extractSecurity(client._options.security); + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "whatsappWebhookVerify", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.security, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "GET", + baseURL: options?.serverURL, + path: path, + headers: headers, + query: query, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["403", "4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const [result] = await M.match< + string, + | MiddayError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.text(200, z.string()), + M.fail([403, "4XX"]), + M.fail("5XX"), + )(response, req); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/lib/base64.ts b/src/lib/base64.ts index c2d5b38..0aebd8b 100644 --- a/src/lib/base64.ts +++ b/src/lib/base64.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; export function bytesToBase64(u8arr: Uint8Array): string { return btoa(String.fromCodePoint(...u8arr)); diff --git a/src/lib/config.ts b/src/lib/config.ts index 66bd8fe..610c6e4 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -65,7 +65,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "0.0.1", - sdkVersion: "0.5.0", - genVersion: "2.709.0", - userAgent: "speakeasy-sdk/typescript 0.5.0 2.709.0 0.0.1 @midday-ai/sdk", + sdkVersion: "0.6.0", + genVersion: "2.791.1", + userAgent: "speakeasy-sdk/typescript 0.6.0 2.791.1 0.0.1 @midday-ai/sdk", } as const; diff --git a/src/lib/encodings.ts b/src/lib/encodings.ts index 25c9dcb..31cd373 100644 --- a/src/lib/encodings.ts +++ b/src/lib/encodings.ts @@ -102,8 +102,9 @@ export function encodeLabel( }); encValue = mapped?.join("").slice(1); } else { - const k = - options?.explode && isPlainObject(value) ? `${encodeString(pk)}=` : ""; + const k = options?.explode && isPlainObject(value) + ? `${encodeString(pk)}=` + : ""; encValue = `${k}${encodeValue(pv)}`; } @@ -426,6 +427,7 @@ export function queryJoin(...args: (string | undefined)[]): string { type QueryEncoderOptions = { explode?: boolean; charEncoding?: "percent" | "none"; + allowEmptyValue?: string[]; }; type QueryEncoder = ( @@ -440,7 +442,7 @@ type BulkQueryEncoder = ( ) => string; export function queryEncoder(f: QueryEncoder): BulkQueryEncoder { - const bulkEncode = function ( + const bulkEncode = function( values: Record, options?: QueryEncoderOptions, ): string { @@ -450,7 +452,19 @@ export function queryEncoder(f: QueryEncoder): BulkQueryEncoder { charEncoding: options?.charEncoding ?? "percent", }; + const allowEmptySet = new Set(options?.allowEmptyValue ?? []); + const encoded = Object.entries(values).map(([key, value]) => { + if (allowEmptySet.has(key)) { + if ( + value === undefined + || value === null + || value === "" + || (Array.isArray(value) && value.length === 0) + ) { + return `${encodeURIComponent(key)}=`; + } + } return f(key, value, opts); }); return queryJoin(...encoded); diff --git a/src/lib/env.ts b/src/lib/env.ts index ea5c0c2..b88dbb1 100644 --- a/src/lib/env.ts +++ b/src/lib/env.ts @@ -2,10 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v3"; import { dlv } from "./dlv.js"; -import * as z from "zod"; - export interface Env { MIDDAY_OAUTH2?: string | undefined; MIDDAY_TOKEN?: string | undefined; @@ -20,6 +19,18 @@ export const envSchema: z.ZodType = z.object({ MIDDAY_DEBUG: z.coerce.boolean().optional(), }); +/** + * Checks for the existence of the Deno global object to determine the environment. + * @returns {boolean} True if the runtime is Deno, false otherwise. + */ +function isDeno() { + if ("Deno" in globalThis) { + return true; + } + + return false; +} + let envMemo: Env | undefined = undefined; /** * Reads and validates environment variables. @@ -29,9 +40,14 @@ export function env(): Env { return envMemo; } - envMemo = envSchema.parse( - dlv(globalThis, "process.env") ?? dlv(globalThis, "Deno.env") ?? {}, - ); + let envObject: Record = {}; + if (isDeno()) { + envObject = (globalThis as any).Deno?.env?.toObject?.() ?? {}; + } else { + envObject = dlv(globalThis, "process.env") ?? {}; + } + + envMemo = envSchema.parse(envObject); return envMemo; } diff --git a/src/lib/schemas.ts b/src/lib/schemas.ts index 0e340b7..47edb97 100644 --- a/src/lib/schemas.ts +++ b/src/lib/schemas.ts @@ -9,7 +9,7 @@ import { ZodObject, ZodRawShape, ZodTypeAny, -} from "zod"; +} from "zod/v3"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import { ERR, OK, Result } from "../types/fp.js"; diff --git a/src/lib/url.ts b/src/lib/url.ts index 6bc6356..f3a8de6 100644 --- a/src/lib/url.ts +++ b/src/lib/url.ts @@ -10,7 +10,7 @@ export function pathToFunc( pathPattern: string, options?: { charEncoding?: "percent" | "none" }, ): (params?: Params) => string { - const paramRE = /\{([a-zA-Z0-9_]+?)\}/g; + const paramRE = /\{([a-zA-Z0-9_][a-zA-Z0-9_-]*?)\}/g; return function buildURLPath(params: Record = {}): string { return pathPattern.replace(paramRE, function (_, placeholder) { diff --git a/src/mcp-server/cli/start/command.ts b/src/mcp-server/cli/start/command.ts index f8a804c..ab61d67 100644 --- a/src/mcp-server/cli/start/command.ts +++ b/src/mcp-server/cli/start/command.ts @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { buildCommand } from "@stricli/core"; -import { numberParser } from "@stricli/core"; -import * as z from "zod"; +import { buildCommand, numberParser } from "@stricli/core"; +import * as z from "zod/v3"; import { consoleLoggerLevels } from "../../console-logger.js"; export const startCommand = buildCommand({ diff --git a/src/mcp-server/extensions.ts b/src/mcp-server/extensions.ts index 7aab280..0955a57 100644 --- a/src/mcp-server/extensions.ts +++ b/src/mcp-server/extensions.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { ZodRawShape } from "zod"; +import { ZodRawShape } from "zod/v3"; import { PromptArgsRawShape, PromptDefinition } from "./prompts.js"; import { ResourceDefinition, ResourceTemplateDefinition } from "./resources.js"; import { ToolDefinition } from "./tools.js"; diff --git a/src/mcp-server/mcp-server.ts b/src/mcp-server/mcp-server.ts index d8eee5c..9b19ebc 100644 --- a/src/mcp-server/mcp-server.ts +++ b/src/mcp-server/mcp-server.ts @@ -19,7 +19,7 @@ const routes = buildRouteMap({ export const app = buildApplication(routes, { name: "mcp", versionInfo: { - currentVersion: "0.5.0", + currentVersion: "0.6.0", }, }); diff --git a/src/mcp-server/prompts.ts b/src/mcp-server/prompts.ts index d17f6bd..555fe7d 100644 --- a/src/mcp-server/prompts.ts +++ b/src/mcp-server/prompts.ts @@ -4,14 +4,18 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { RequestHandlerExtra } from "@modelcontextprotocol/sdk/shared/protocol.js"; -import { GetPromptResult } from "@modelcontextprotocol/sdk/types.js"; +import { + GetPromptResult, + ServerNotification, + ServerRequest, +} from "@modelcontextprotocol/sdk/types.js"; import { objectOutputType, ZodOptional, ZodType, ZodTypeAny, ZodTypeDef, -} from "zod"; +} from "zod/v3"; import { MiddayCore } from "../core.js"; import { ConsoleLogger } from "./console-logger.js"; import { MCPScope } from "./scopes.js"; @@ -33,7 +37,7 @@ export type PromptDefinition< prompt: ( client: MiddayCore, args: objectOutputType, - extra: RequestHandlerExtra, + extra: RequestHandlerExtra, ) => GetPromptResult | Promise; } : { @@ -43,7 +47,7 @@ export type PromptDefinition< args?: undefined; prompt: ( client: MiddayCore, - extra: RequestHandlerExtra, + extra: RequestHandlerExtra, ) => GetPromptResult | Promise; }; diff --git a/src/mcp-server/resources.ts b/src/mcp-server/resources.ts index d7af29b..6ba478a 100644 --- a/src/mcp-server/resources.ts +++ b/src/mcp-server/resources.ts @@ -9,7 +9,11 @@ import { } from "@modelcontextprotocol/sdk/server/mcp.js"; import { RequestHandlerExtra } from "@modelcontextprotocol/sdk/shared/protocol.js"; import { Variables } from "@modelcontextprotocol/sdk/shared/uriTemplate.js"; -import { ReadResourceResult } from "@modelcontextprotocol/sdk/types.js"; +import { + ReadResourceResult, + ServerNotification, + ServerRequest, +} from "@modelcontextprotocol/sdk/types.js"; import { MiddayCore } from "../core.js"; import { ConsoleLogger } from "./console-logger.js"; import { MCPScope } from "./scopes.js"; @@ -18,7 +22,7 @@ import { isAsyncIterable, isBinaryData, valueToBase64 } from "./shared.js"; export type ReadResourceCallback = ( client: MiddayCore, uri: URL, - extra: RequestHandlerExtra, + extra: RequestHandlerExtra, ) => ReadResourceResult | Promise; export type ResourceDefinition = { @@ -34,7 +38,7 @@ export type ReadResourceTemplateCallback = ( client: MiddayCore, uri: URL, vars: Variables, - extra: RequestHandlerExtra, + extra: RequestHandlerExtra, ) => ReadResourceResult | Promise; export type ResourceTemplateDefinition = { diff --git a/src/mcp-server/server.ts b/src/mcp-server/server.ts index 6d0e712..60f5648 100644 --- a/src/mcp-server/server.ts +++ b/src/mcp-server/server.ts @@ -27,11 +27,33 @@ import { tool$documentsDelete } from "./tools/documentsDelete.js"; import { tool$documentsGet } from "./tools/documentsGet.js"; import { tool$documentsGetPreSignedUrl } from "./tools/documentsGetPreSignedUrl.js"; import { tool$documentsList } from "./tools/documentsList.js"; +import { tool$filesDownloadFile } from "./tools/filesDownloadFile.js"; +import { tool$filesDownloadInvoice } from "./tools/filesDownloadInvoice.js"; +import { tool$filesProxy } from "./tools/filesProxy.js"; import { tool$inboxDelete } from "./tools/inboxDelete.js"; import { tool$inboxGet } from "./tools/inboxGet.js"; import { tool$inboxGetPreSignedUrl } from "./tools/inboxGetPreSignedUrl.js"; import { tool$inboxList } from "./tools/inboxList.js"; import { tool$inboxUpdate } from "./tools/inboxUpdate.js"; +import { tool$integrationsFortnoxOAuthCallback } from "./tools/integrationsFortnoxOAuthCallback.js"; +import { tool$integrationsGetFortnoxInstallUrl } from "./tools/integrationsGetFortnoxInstallUrl.js"; +import { tool$integrationsGetGmailInstallUrl } from "./tools/integrationsGetGmailInstallUrl.js"; +import { tool$integrationsGetOutlookInstallUrl } from "./tools/integrationsGetOutlookInstallUrl.js"; +import { tool$integrationsGetQuickBooksInstallUrl } from "./tools/integrationsGetQuickBooksInstallUrl.js"; +import { tool$integrationsGetSlackInstallUrl } from "./tools/integrationsGetSlackInstallUrl.js"; +import { tool$integrationsGetXeroInstallUrl } from "./tools/integrationsGetXeroInstallUrl.js"; +import { tool$integrationsGmailOAuthCallback } from "./tools/integrationsGmailOAuthCallback.js"; +import { tool$integrationsOutlookOAuthCallback } from "./tools/integrationsOutlookOAuthCallback.js"; +import { tool$integrationsQuickBooksOAuthCallback } from "./tools/integrationsQuickBooksOAuthCallback.js"; +import { tool$integrationsSlackInteractions } from "./tools/integrationsSlackInteractions.js"; +import { tool$integrationsSlackOAuthCallback } from "./tools/integrationsSlackOAuthCallback.js"; +import { tool$integrationsSlackWebhook } from "./tools/integrationsSlackWebhook.js"; +import { tool$integrationsXeroOAuthCallback } from "./tools/integrationsXeroOAuthCallback.js"; +import { tool$invoicePaymentsCreateInvoicePaymentIntent } from "./tools/invoicePaymentsCreateInvoicePaymentIntent.js"; +import { tool$invoicePaymentsDisconnectStripe } from "./tools/invoicePaymentsDisconnectStripe.js"; +import { tool$invoicePaymentsGetStripeConnectStatus } from "./tools/invoicePaymentsGetStripeConnectStatus.js"; +import { tool$invoicePaymentsGetStripeConnectUrl } from "./tools/invoicePaymentsGetStripeConnectUrl.js"; +import { tool$invoicePaymentsStripeConnectCallback } from "./tools/invoicePaymentsStripeConnectCallback.js"; import { tool$invoicesCreate } from "./tools/invoicesCreate.js"; import { tool$invoicesDelete } from "./tools/invoicesDelete.js"; import { tool$invoicesGet } from "./tools/invoicesGet.js"; @@ -87,6 +109,10 @@ import { tool$transactionsUpdate } from "./tools/transactionsUpdate.js"; import { tool$transactionsUpdateMany } from "./tools/transactionsUpdateMany.js"; import { tool$usersGet } from "./tools/usersGet.js"; import { tool$usersUpdate } from "./tools/usersUpdate.js"; +import { tool$webhooksInboxWebhook } from "./tools/webhooksInboxWebhook.js"; +import { tool$webhooksStripeWebhook } from "./tools/webhooksStripeWebhook.js"; +import { tool$webhooksWhatsappWebhook } from "./tools/webhooksWhatsappWebhook.js"; +import { tool$webhooksWhatsappWebhookVerify } from "./tools/webhooksWhatsappWebhookVerify.js"; export function createMCPServer(deps: { logger: ConsoleLogger; @@ -98,7 +124,7 @@ export function createMCPServer(deps: { }) { const server = new McpServer({ name: "Midday", - version: "0.5.0", + version: "0.6.0", }); const client = new MiddayCore({ @@ -132,6 +158,32 @@ export function createMCPServer(deps: { tool(tool$oAuthPostOAuthAuthorization); tool(tool$oAuthPostOAuthToken); tool(tool$oAuthPostOAuthRevoke); + tool(tool$webhooksInboxWebhook); + tool(tool$webhooksWhatsappWebhookVerify); + tool(tool$webhooksWhatsappWebhook); + tool(tool$webhooksStripeWebhook); + tool(tool$filesProxy); + tool(tool$filesDownloadFile); + tool(tool$filesDownloadInvoice); + tool(tool$integrationsSlackOAuthCallback); + tool(tool$integrationsGetSlackInstallUrl); + tool(tool$integrationsSlackWebhook); + tool(tool$integrationsSlackInteractions); + tool(tool$integrationsGmailOAuthCallback); + tool(tool$integrationsGetGmailInstallUrl); + tool(tool$integrationsOutlookOAuthCallback); + tool(tool$integrationsGetOutlookInstallUrl); + tool(tool$integrationsXeroOAuthCallback); + tool(tool$integrationsGetXeroInstallUrl); + tool(tool$integrationsQuickBooksOAuthCallback); + tool(tool$integrationsGetQuickBooksInstallUrl); + tool(tool$integrationsFortnoxOAuthCallback); + tool(tool$integrationsGetFortnoxInstallUrl); + tool(tool$invoicePaymentsGetStripeConnectUrl); + tool(tool$invoicePaymentsStripeConnectCallback); + tool(tool$invoicePaymentsDisconnectStripe); + tool(tool$invoicePaymentsCreateInvoicePaymentIntent); + tool(tool$invoicePaymentsGetStripeConnectStatus); tool(tool$notificationsList); tool(tool$notificationsUpdateStatus); tool(tool$notificationsUpdateAllStatus); diff --git a/src/mcp-server/shared.ts b/src/mcp-server/shared.ts index 9dc6d2f..3e94144 100644 --- a/src/mcp-server/shared.ts +++ b/src/mcp-server/shared.ts @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { bytesToBase64 } from "../lib/base64.js"; - type BinaryData = | Uint8Array | ArrayBuffer diff --git a/src/mcp-server/tools.ts b/src/mcp-server/tools.ts index 055d309..0099651 100644 --- a/src/mcp-server/tools.ts +++ b/src/mcp-server/tools.ts @@ -4,8 +4,12 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { RequestHandlerExtra } from "@modelcontextprotocol/sdk/shared/protocol.js"; -import { CallToolResult } from "@modelcontextprotocol/sdk/types.js"; -import { objectOutputType, ZodRawShape, ZodTypeAny } from "zod"; +import { + CallToolResult, + ServerNotification, + ServerRequest, +} from "@modelcontextprotocol/sdk/types.js"; +import { objectOutputType, ZodRawShape, ZodTypeAny } from "zod/v3"; import { MiddayCore } from "../core.js"; import { ConsoleLogger } from "./console-logger.js"; import { MCPScope } from "./scopes.js"; @@ -20,7 +24,7 @@ export type ToolDefinition = tool: ( client: MiddayCore, args: objectOutputType, - extra: RequestHandlerExtra, + extra: RequestHandlerExtra, ) => CallToolResult | Promise; } : { @@ -30,7 +34,7 @@ export type ToolDefinition = args?: undefined; tool: ( client: MiddayCore, - extra: RequestHandlerExtra, + extra: RequestHandlerExtra, ) => CallToolResult | Promise; }; diff --git a/src/mcp-server/tools/filesDownloadFile.ts b/src/mcp-server/tools/filesDownloadFile.ts new file mode 100644 index 0000000..8c0e8b7 --- /dev/null +++ b/src/mcp-server/tools/filesDownloadFile.ts @@ -0,0 +1,37 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { filesDownloadFile } from "../../funcs/filesDownloadFile.js"; +import * as operations from "../../models/operations/index.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +const args = { + request: operations.DownloadFileRequest$inboundSchema, +}; + +export const tool$filesDownloadFile: ToolDefinition = { + name: "files-download-file", + description: `Download file from vault + +Downloads a file from the vault storage bucket. Requires team file key (fk) query parameter for access.`, + args, + tool: async (client, args, ctx) => { + const [result, apiCall] = await filesDownloadFile( + client, + args.request, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + const value = result.value; + + return formatResult(value, apiCall); + }, +}; diff --git a/src/mcp-server/tools/filesDownloadInvoice.ts b/src/mcp-server/tools/filesDownloadInvoice.ts new file mode 100644 index 0000000..ab0f4dd --- /dev/null +++ b/src/mcp-server/tools/filesDownloadInvoice.ts @@ -0,0 +1,37 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { filesDownloadInvoice } from "../../funcs/filesDownloadInvoice.js"; +import * as operations from "../../models/operations/index.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +const args = { + request: operations.DownloadInvoiceRequest$inboundSchema, +}; + +export const tool$filesDownloadInvoice: ToolDefinition = { + name: "files-download-invoice", + description: `Download invoice PDF + +Downloads an invoice as a PDF. Can be accessed with an invoice ID (requires team file key via fk query parameter) or invoice token (public access).`, + args, + tool: async (client, args, ctx) => { + const [result, apiCall] = await filesDownloadInvoice( + client, + args.request, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + const value = result.value; + + return formatResult(value, apiCall); + }, +}; diff --git a/src/mcp-server/tools/filesProxy.ts b/src/mcp-server/tools/filesProxy.ts new file mode 100644 index 0000000..ab958f0 --- /dev/null +++ b/src/mcp-server/tools/filesProxy.ts @@ -0,0 +1,37 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { filesProxy } from "../../funcs/filesProxy.js"; +import * as operations from "../../models/operations/index.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +const args = { + request: operations.ProxyFileRequest$inboundSchema, +}; + +export const tool$filesProxy: ToolDefinition = { + name: "files-proxy", + description: `Proxy file from storage + +Proxies a file from storage. Requires team file key (fk) query parameter for access.`, + args, + tool: async (client, args, ctx) => { + const [result, apiCall] = await filesProxy( + client, + args.request, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + const value = result.value; + + return formatResult(value, apiCall); + }, +}; diff --git a/src/mcp-server/tools/integrationsFortnoxOAuthCallback.ts b/src/mcp-server/tools/integrationsFortnoxOAuthCallback.ts new file mode 100644 index 0000000..72c5c7b --- /dev/null +++ b/src/mcp-server/tools/integrationsFortnoxOAuthCallback.ts @@ -0,0 +1,37 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { integrationsFortnoxOAuthCallback } from "../../funcs/integrationsFortnoxOAuthCallback.js"; +import * as operations from "../../models/operations/index.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +const args = { + request: operations.FortnoxOAuthCallbackRequest$inboundSchema, +}; + +export const tool$integrationsFortnoxOAuthCallback: ToolDefinition< + typeof args +> = { + name: "integrations-fortnox-O-auth-callback", + description: `Fortnox OAuth callback + +Handles OAuth callback from Fortnox after user authorization. Exchanges authorization code for access token and creates app integration.`, + args, + tool: async (client, args, ctx) => { + const [result, apiCall] = await integrationsFortnoxOAuthCallback( + client, + args.request, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + return formatResult(void 0, apiCall); + }, +}; diff --git a/src/mcp-server/tools/integrationsGetFortnoxInstallUrl.ts b/src/mcp-server/tools/integrationsGetFortnoxInstallUrl.ts new file mode 100644 index 0000000..787ff08 --- /dev/null +++ b/src/mcp-server/tools/integrationsGetFortnoxInstallUrl.ts @@ -0,0 +1,30 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { integrationsGetFortnoxInstallUrl } from "../../funcs/integrationsGetFortnoxInstallUrl.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +export const tool$integrationsGetFortnoxInstallUrl: ToolDefinition = { + name: "integrations-get-fortnox-install-url", + description: `Get Fortnox install URL + +Generates OAuth install URL for Fortnox integration. Requires authentication.`, + tool: async (client, ctx) => { + const [result, apiCall] = await integrationsGetFortnoxInstallUrl( + client, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + const value = result.value; + + return formatResult(value, apiCall); + }, +}; diff --git a/src/mcp-server/tools/integrationsGetGmailInstallUrl.ts b/src/mcp-server/tools/integrationsGetGmailInstallUrl.ts new file mode 100644 index 0000000..0543ee1 --- /dev/null +++ b/src/mcp-server/tools/integrationsGetGmailInstallUrl.ts @@ -0,0 +1,30 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { integrationsGetGmailInstallUrl } from "../../funcs/integrationsGetGmailInstallUrl.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +export const tool$integrationsGetGmailInstallUrl: ToolDefinition = { + name: "integrations-get-gmail-install-url", + description: `Get Gmail install URL + +Generates OAuth install URL for Gmail integration. Requires authentication.`, + tool: async (client, ctx) => { + const [result, apiCall] = await integrationsGetGmailInstallUrl( + client, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + const value = result.value; + + return formatResult(value, apiCall); + }, +}; diff --git a/src/mcp-server/tools/integrationsGetOutlookInstallUrl.ts b/src/mcp-server/tools/integrationsGetOutlookInstallUrl.ts new file mode 100644 index 0000000..ce92b0d --- /dev/null +++ b/src/mcp-server/tools/integrationsGetOutlookInstallUrl.ts @@ -0,0 +1,30 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { integrationsGetOutlookInstallUrl } from "../../funcs/integrationsGetOutlookInstallUrl.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +export const tool$integrationsGetOutlookInstallUrl: ToolDefinition = { + name: "integrations-get-outlook-install-url", + description: `Get Outlook install URL + +Generates OAuth install URL for Outlook integration. Requires authentication.`, + tool: async (client, ctx) => { + const [result, apiCall] = await integrationsGetOutlookInstallUrl( + client, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + const value = result.value; + + return formatResult(value, apiCall); + }, +}; diff --git a/src/mcp-server/tools/integrationsGetQuickBooksInstallUrl.ts b/src/mcp-server/tools/integrationsGetQuickBooksInstallUrl.ts new file mode 100644 index 0000000..b1c14eb --- /dev/null +++ b/src/mcp-server/tools/integrationsGetQuickBooksInstallUrl.ts @@ -0,0 +1,30 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { integrationsGetQuickBooksInstallUrl } from "../../funcs/integrationsGetQuickBooksInstallUrl.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +export const tool$integrationsGetQuickBooksInstallUrl: ToolDefinition = { + name: "integrations-get-quick-books-install-url", + description: `Get QuickBooks install URL + +Generates OAuth install URL for QuickBooks integration. Requires authentication.`, + tool: async (client, ctx) => { + const [result, apiCall] = await integrationsGetQuickBooksInstallUrl( + client, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + const value = result.value; + + return formatResult(value, apiCall); + }, +}; diff --git a/src/mcp-server/tools/integrationsGetSlackInstallUrl.ts b/src/mcp-server/tools/integrationsGetSlackInstallUrl.ts new file mode 100644 index 0000000..9530701 --- /dev/null +++ b/src/mcp-server/tools/integrationsGetSlackInstallUrl.ts @@ -0,0 +1,30 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { integrationsGetSlackInstallUrl } from "../../funcs/integrationsGetSlackInstallUrl.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +export const tool$integrationsGetSlackInstallUrl: ToolDefinition = { + name: "integrations-get-slack-install-url", + description: `Get Slack install URL + +Generates OAuth install URL for Slack integration. Requires authentication.`, + tool: async (client, ctx) => { + const [result, apiCall] = await integrationsGetSlackInstallUrl( + client, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + const value = result.value; + + return formatResult(value, apiCall); + }, +}; diff --git a/src/mcp-server/tools/integrationsGetXeroInstallUrl.ts b/src/mcp-server/tools/integrationsGetXeroInstallUrl.ts new file mode 100644 index 0000000..f4f4240 --- /dev/null +++ b/src/mcp-server/tools/integrationsGetXeroInstallUrl.ts @@ -0,0 +1,30 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { integrationsGetXeroInstallUrl } from "../../funcs/integrationsGetXeroInstallUrl.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +export const tool$integrationsGetXeroInstallUrl: ToolDefinition = { + name: "integrations-get-xero-install-url", + description: `Get Xero install URL + +Generates OAuth install URL for Xero integration. Requires authentication.`, + tool: async (client, ctx) => { + const [result, apiCall] = await integrationsGetXeroInstallUrl( + client, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + const value = result.value; + + return formatResult(value, apiCall); + }, +}; diff --git a/src/mcp-server/tools/integrationsGmailOAuthCallback.ts b/src/mcp-server/tools/integrationsGmailOAuthCallback.ts new file mode 100644 index 0000000..568501b --- /dev/null +++ b/src/mcp-server/tools/integrationsGmailOAuthCallback.ts @@ -0,0 +1,36 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { integrationsGmailOAuthCallback } from "../../funcs/integrationsGmailOAuthCallback.js"; +import * as operations from "../../models/operations/index.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +const args = { + request: operations.GmailOAuthCallbackRequest$inboundSchema, +}; + +export const tool$integrationsGmailOAuthCallback: ToolDefinition = + { + name: "integrations-gmail-O-auth-callback", + description: `Gmail OAuth callback + +Handles OAuth callback from Google after user authorization. Exchanges authorization code for access token and creates inbox account.`, + args, + tool: async (client, args, ctx) => { + const [result, apiCall] = await integrationsGmailOAuthCallback( + client, + args.request, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + return formatResult(void 0, apiCall); + }, + }; diff --git a/src/mcp-server/tools/integrationsOutlookOAuthCallback.ts b/src/mcp-server/tools/integrationsOutlookOAuthCallback.ts new file mode 100644 index 0000000..e622df3 --- /dev/null +++ b/src/mcp-server/tools/integrationsOutlookOAuthCallback.ts @@ -0,0 +1,37 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { integrationsOutlookOAuthCallback } from "../../funcs/integrationsOutlookOAuthCallback.js"; +import * as operations from "../../models/operations/index.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +const args = { + request: operations.OutlookOAuthCallbackRequest$inboundSchema, +}; + +export const tool$integrationsOutlookOAuthCallback: ToolDefinition< + typeof args +> = { + name: "integrations-outlook-O-auth-callback", + description: `Outlook OAuth callback + +Handles OAuth callback from Microsoft after user authorization. Exchanges authorization code for access token and creates inbox account.`, + args, + tool: async (client, args, ctx) => { + const [result, apiCall] = await integrationsOutlookOAuthCallback( + client, + args.request, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + return formatResult(void 0, apiCall); + }, +}; diff --git a/src/mcp-server/tools/integrationsQuickBooksOAuthCallback.ts b/src/mcp-server/tools/integrationsQuickBooksOAuthCallback.ts new file mode 100644 index 0000000..37eac79 --- /dev/null +++ b/src/mcp-server/tools/integrationsQuickBooksOAuthCallback.ts @@ -0,0 +1,37 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { integrationsQuickBooksOAuthCallback } from "../../funcs/integrationsQuickBooksOAuthCallback.js"; +import * as operations from "../../models/operations/index.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +const args = { + request: operations.QuickBooksOAuthCallbackRequest$inboundSchema, +}; + +export const tool$integrationsQuickBooksOAuthCallback: ToolDefinition< + typeof args +> = { + name: "integrations-quick-books-O-auth-callback", + description: `QuickBooks OAuth callback + +Handles OAuth callback from QuickBooks after user authorization. Exchanges authorization code for access token and creates app integration.`, + args, + tool: async (client, args, ctx) => { + const [result, apiCall] = await integrationsQuickBooksOAuthCallback( + client, + args.request, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + return formatResult(void 0, apiCall); + }, +}; diff --git a/src/mcp-server/tools/integrationsSlackInteractions.ts b/src/mcp-server/tools/integrationsSlackInteractions.ts new file mode 100644 index 0000000..f335cd2 --- /dev/null +++ b/src/mcp-server/tools/integrationsSlackInteractions.ts @@ -0,0 +1,30 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { integrationsSlackInteractions } from "../../funcs/integrationsSlackInteractions.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +export const tool$integrationsSlackInteractions: ToolDefinition = { + name: "integrations-slack-interactions", + description: `Slack interactions handler + +Handles interactive component actions from Slack (button clicks, etc.)`, + tool: async (client, ctx) => { + const [result, apiCall] = await integrationsSlackInteractions( + client, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + const value = result.value; + + return formatResult(value, apiCall); + }, +}; diff --git a/src/mcp-server/tools/integrationsSlackOAuthCallback.ts b/src/mcp-server/tools/integrationsSlackOAuthCallback.ts new file mode 100644 index 0000000..8ec4694 --- /dev/null +++ b/src/mcp-server/tools/integrationsSlackOAuthCallback.ts @@ -0,0 +1,36 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { integrationsSlackOAuthCallback } from "../../funcs/integrationsSlackOAuthCallback.js"; +import * as operations from "../../models/operations/index.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +const args = { + request: operations.SlackOAuthCallbackRequest$inboundSchema, +}; + +export const tool$integrationsSlackOAuthCallback: ToolDefinition = + { + name: "integrations-slack-O-auth-callback", + description: `Slack OAuth callback + +Handles OAuth callback from Slack after user authorization. Exchanges authorization code for access token and creates app integration.`, + args, + tool: async (client, args, ctx) => { + const [result, apiCall] = await integrationsSlackOAuthCallback( + client, + args.request, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + return formatResult(void 0, apiCall); + }, + }; diff --git a/src/mcp-server/tools/integrationsSlackWebhook.ts b/src/mcp-server/tools/integrationsSlackWebhook.ts new file mode 100644 index 0000000..d918976 --- /dev/null +++ b/src/mcp-server/tools/integrationsSlackWebhook.ts @@ -0,0 +1,30 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { integrationsSlackWebhook } from "../../funcs/integrationsSlackWebhook.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +export const tool$integrationsSlackWebhook: ToolDefinition = { + name: "integrations-slack-webhook", + description: `Slack webhook handler + +Handles incoming webhook events from Slack. Verifies request signature and processes events.`, + tool: async (client, ctx) => { + const [result, apiCall] = await integrationsSlackWebhook( + client, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + const value = result.value; + + return formatResult(value, apiCall); + }, +}; diff --git a/src/mcp-server/tools/integrationsXeroOAuthCallback.ts b/src/mcp-server/tools/integrationsXeroOAuthCallback.ts new file mode 100644 index 0000000..d1485b5 --- /dev/null +++ b/src/mcp-server/tools/integrationsXeroOAuthCallback.ts @@ -0,0 +1,35 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { integrationsXeroOAuthCallback } from "../../funcs/integrationsXeroOAuthCallback.js"; +import * as operations from "../../models/operations/index.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +const args = { + request: operations.XeroOAuthCallbackRequest$inboundSchema, +}; + +export const tool$integrationsXeroOAuthCallback: ToolDefinition = { + name: "integrations-xero-O-auth-callback", + description: `Xero OAuth callback + +Handles OAuth callback from Xero after user authorization. Exchanges authorization code for access token and creates app integration.`, + args, + tool: async (client, args, ctx) => { + const [result, apiCall] = await integrationsXeroOAuthCallback( + client, + args.request, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + return formatResult(void 0, apiCall); + }, +}; diff --git a/src/mcp-server/tools/invoicePaymentsCreateInvoicePaymentIntent.ts b/src/mcp-server/tools/invoicePaymentsCreateInvoicePaymentIntent.ts new file mode 100644 index 0000000..84ffa61 --- /dev/null +++ b/src/mcp-server/tools/invoicePaymentsCreateInvoicePaymentIntent.ts @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { invoicePaymentsCreateInvoicePaymentIntent } from "../../funcs/invoicePaymentsCreateInvoicePaymentIntent.js"; +import * as operations from "../../models/operations/index.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +const args = { + request: operations.CreateInvoicePaymentIntentRequest$inboundSchema + .optional(), +}; + +export const tool$invoicePaymentsCreateInvoicePaymentIntent: ToolDefinition< + typeof args +> = { + name: "invoice-payments-create-invoice-payment-intent", + description: `Create payment intent for invoice + +Creates a Stripe PaymentIntent for paying an invoice. This is a public endpoint that uses the invoice token for authentication.`, + args, + tool: async (client, args, ctx) => { + const [result, apiCall] = await invoicePaymentsCreateInvoicePaymentIntent( + client, + args.request, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + const value = result.value; + + return formatResult(value, apiCall); + }, +}; diff --git a/src/mcp-server/tools/invoicePaymentsDisconnectStripe.ts b/src/mcp-server/tools/invoicePaymentsDisconnectStripe.ts new file mode 100644 index 0000000..3d5a0d1 --- /dev/null +++ b/src/mcp-server/tools/invoicePaymentsDisconnectStripe.ts @@ -0,0 +1,30 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { invoicePaymentsDisconnectStripe } from "../../funcs/invoicePaymentsDisconnectStripe.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +export const tool$invoicePaymentsDisconnectStripe: ToolDefinition = { + name: "invoice-payments-disconnect-stripe", + description: `Disconnect Stripe account + +Disconnects the team's Stripe Connect account.`, + tool: async (client, ctx) => { + const [result, apiCall] = await invoicePaymentsDisconnectStripe( + client, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + const value = result.value; + + return formatResult(value, apiCall); + }, +}; diff --git a/src/mcp-server/tools/invoicePaymentsGetStripeConnectStatus.ts b/src/mcp-server/tools/invoicePaymentsGetStripeConnectStatus.ts new file mode 100644 index 0000000..bfce37e --- /dev/null +++ b/src/mcp-server/tools/invoicePaymentsGetStripeConnectStatus.ts @@ -0,0 +1,30 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { invoicePaymentsGetStripeConnectStatus } from "../../funcs/invoicePaymentsGetStripeConnectStatus.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +export const tool$invoicePaymentsGetStripeConnectStatus: ToolDefinition = { + name: "invoice-payments-get-stripe-connect-status", + description: `Get Stripe Connect status + +Gets the current Stripe Connect status for the team.`, + tool: async (client, ctx) => { + const [result, apiCall] = await invoicePaymentsGetStripeConnectStatus( + client, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + const value = result.value; + + return formatResult(value, apiCall); + }, +}; diff --git a/src/mcp-server/tools/invoicePaymentsGetStripeConnectUrl.ts b/src/mcp-server/tools/invoicePaymentsGetStripeConnectUrl.ts new file mode 100644 index 0000000..749d54a --- /dev/null +++ b/src/mcp-server/tools/invoicePaymentsGetStripeConnectUrl.ts @@ -0,0 +1,30 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { invoicePaymentsGetStripeConnectUrl } from "../../funcs/invoicePaymentsGetStripeConnectUrl.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +export const tool$invoicePaymentsGetStripeConnectUrl: ToolDefinition = { + name: "invoice-payments-get-stripe-connect-url", + description: `Get Stripe Connect URL + +Generates OAuth URL for Stripe Connect Standard integration. Allows teams to connect their Stripe account for accepting invoice payments.`, + tool: async (client, ctx) => { + const [result, apiCall] = await invoicePaymentsGetStripeConnectUrl( + client, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + const value = result.value; + + return formatResult(value, apiCall); + }, +}; diff --git a/src/mcp-server/tools/invoicePaymentsStripeConnectCallback.ts b/src/mcp-server/tools/invoicePaymentsStripeConnectCallback.ts new file mode 100644 index 0000000..390559d --- /dev/null +++ b/src/mcp-server/tools/invoicePaymentsStripeConnectCallback.ts @@ -0,0 +1,37 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { invoicePaymentsStripeConnectCallback } from "../../funcs/invoicePaymentsStripeConnectCallback.js"; +import * as operations from "../../models/operations/index.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +const args = { + request: operations.StripeConnectCallbackRequest$inboundSchema, +}; + +export const tool$invoicePaymentsStripeConnectCallback: ToolDefinition< + typeof args +> = { + name: "invoice-payments-stripe-connect-callback", + description: `Stripe Connect OAuth callback + +Handles OAuth callback from Stripe Connect after user authorization. Exchanges authorization code for connected account ID.`, + args, + tool: async (client, args, ctx) => { + const [result, apiCall] = await invoicePaymentsStripeConnectCallback( + client, + args.request, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + return formatResult(void 0, apiCall); + }, +}; diff --git a/src/mcp-server/tools/transactionsCreateMany.ts b/src/mcp-server/tools/transactionsCreateMany.ts index 2038980..115e7bd 100644 --- a/src/mcp-server/tools/transactionsCreateMany.ts +++ b/src/mcp-server/tools/transactionsCreateMany.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { transactionsCreateMany } from "../../funcs/transactionsCreateMany.js"; import * as operations from "../../models/operations/index.js"; import { formatResult, ToolDefinition } from "../tools.js"; diff --git a/src/mcp-server/tools/transactionsDeleteMany.ts b/src/mcp-server/tools/transactionsDeleteMany.ts index 02b07a1..cf24aff 100644 --- a/src/mcp-server/tools/transactionsDeleteMany.ts +++ b/src/mcp-server/tools/transactionsDeleteMany.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { transactionsDeleteMany } from "../../funcs/transactionsDeleteMany.js"; import { formatResult, ToolDefinition } from "../tools.js"; diff --git a/src/mcp-server/tools/webhooksInboxWebhook.ts b/src/mcp-server/tools/webhooksInboxWebhook.ts new file mode 100644 index 0000000..b6a69b3 --- /dev/null +++ b/src/mcp-server/tools/webhooksInboxWebhook.ts @@ -0,0 +1,37 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { webhooksInboxWebhook } from "../../funcs/webhooksInboxWebhook.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +const args = { + request: z.nullable(z.any()).optional(), +}; + +export const tool$webhooksInboxWebhook: ToolDefinition = { + name: "webhooks-inbox-webhook", + description: `Inbox webhook + +Webhook endpoint for receiving inbox emails from Postmark`, + args, + tool: async (client, args, ctx) => { + const [result, apiCall] = await webhooksInboxWebhook( + client, + args.request, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + const value = result.value; + + return formatResult(value, apiCall); + }, +}; diff --git a/src/mcp-server/tools/webhooksStripeWebhook.ts b/src/mcp-server/tools/webhooksStripeWebhook.ts new file mode 100644 index 0000000..c809f37 --- /dev/null +++ b/src/mcp-server/tools/webhooksStripeWebhook.ts @@ -0,0 +1,30 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { webhooksStripeWebhook } from "../../funcs/webhooksStripeWebhook.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +export const tool$webhooksStripeWebhook: ToolDefinition = { + name: "webhooks-stripe-webhook", + description: `Stripe webhook handler + +Handles Stripe webhook events for invoice payments. Verifies webhook signature and processes payment events.`, + tool: async (client, ctx) => { + const [result, apiCall] = await webhooksStripeWebhook( + client, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + const value = result.value; + + return formatResult(value, apiCall); + }, +}; diff --git a/src/mcp-server/tools/webhooksWhatsappWebhook.ts b/src/mcp-server/tools/webhooksWhatsappWebhook.ts new file mode 100644 index 0000000..213af91 --- /dev/null +++ b/src/mcp-server/tools/webhooksWhatsappWebhook.ts @@ -0,0 +1,37 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { webhooksWhatsappWebhook } from "../../funcs/webhooksWhatsappWebhook.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +const args = { + request: z.nullable(z.any()).optional(), +}; + +export const tool$webhooksWhatsappWebhook: ToolDefinition = { + name: "webhooks-whatsapp-webhook", + description: `WhatsApp webhook + +Receive messages, media, and button replies from WhatsApp Business API`, + args, + tool: async (client, args, ctx) => { + const [result, apiCall] = await webhooksWhatsappWebhook( + client, + args.request, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + const value = result.value; + + return formatResult(value, apiCall); + }, +}; diff --git a/src/mcp-server/tools/webhooksWhatsappWebhookVerify.ts b/src/mcp-server/tools/webhooksWhatsappWebhookVerify.ts new file mode 100644 index 0000000..7b76713 --- /dev/null +++ b/src/mcp-server/tools/webhooksWhatsappWebhookVerify.ts @@ -0,0 +1,37 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { webhooksWhatsappWebhookVerify } from "../../funcs/webhooksWhatsappWebhookVerify.js"; +import * as operations from "../../models/operations/index.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +const args = { + request: operations.WhatsappWebhookVerifyRequest$inboundSchema, +}; + +export const tool$webhooksWhatsappWebhookVerify: ToolDefinition = { + name: "webhooks-whatsapp-webhook-verify", + description: `WhatsApp webhook verification + +Verify webhook URL for WhatsApp Business API`, + args, + tool: async (client, args, ctx) => { + const [result, apiCall] = await webhooksWhatsappWebhookVerify( + client, + args.request, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + const value = result.value; + + return formatResult(value, apiCall); + }, +}; diff --git a/src/models/createtag.ts b/src/models/createtag.ts index 6c0d12e..4c4179d 100644 --- a/src/models/createtag.ts +++ b/src/models/createtag.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../lib/schemas.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; @@ -22,7 +22,6 @@ export const CreateTag$inboundSchema: z.ZodType< > = z.object({ name: z.string(), }); - /** @internal */ export type CreateTag$Outbound = { name: string; @@ -37,23 +36,9 @@ export const CreateTag$outboundSchema: z.ZodType< name: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateTag$ { - /** @deprecated use `CreateTag$inboundSchema` instead. */ - export const inboundSchema = CreateTag$inboundSchema; - /** @deprecated use `CreateTag$outboundSchema` instead. */ - export const outboundSchema = CreateTag$outboundSchema; - /** @deprecated use `CreateTag$Outbound` instead. */ - export type Outbound = CreateTag$Outbound; -} - export function createTagToJSON(createTag: CreateTag): string { return JSON.stringify(CreateTag$outboundSchema.parse(createTag)); } - export function createTagFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/errors/createinvoice.ts b/src/models/errors/createinvoice.ts index 4dec43d..a71f9b9 100644 --- a/src/models/errors/createinvoice.ts +++ b/src/models/errors/createinvoice.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { MiddayError } from "./middayerror.js"; /** @@ -156,19 +156,6 @@ export const CreateInvoiceInternalServerError$outboundSchema: z.ZodType< message: z.string(), })); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateInvoiceInternalServerError$ { - /** @deprecated use `CreateInvoiceInternalServerError$inboundSchema` instead. */ - export const inboundSchema = CreateInvoiceInternalServerError$inboundSchema; - /** @deprecated use `CreateInvoiceInternalServerError$outboundSchema` instead. */ - export const outboundSchema = CreateInvoiceInternalServerError$outboundSchema; - /** @deprecated use `CreateInvoiceInternalServerError$Outbound` instead. */ - export type Outbound = CreateInvoiceInternalServerError$Outbound; -} - /** @internal */ export const ConflictError$inboundSchema: z.ZodType< ConflictError, @@ -204,19 +191,6 @@ export const ConflictError$outboundSchema: z.ZodType< message: z.string(), })); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConflictError$ { - /** @deprecated use `ConflictError$inboundSchema` instead. */ - export const inboundSchema = ConflictError$inboundSchema; - /** @deprecated use `ConflictError$outboundSchema` instead. */ - export const outboundSchema = ConflictError$outboundSchema; - /** @deprecated use `ConflictError$Outbound` instead. */ - export type Outbound = ConflictError$Outbound; -} - /** @internal */ export const CreateInvoiceNotFoundError$inboundSchema: z.ZodType< CreateInvoiceNotFoundError, @@ -252,19 +226,6 @@ export const CreateInvoiceNotFoundError$outboundSchema: z.ZodType< message: z.string(), })); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateInvoiceNotFoundError$ { - /** @deprecated use `CreateInvoiceNotFoundError$inboundSchema` instead. */ - export const inboundSchema = CreateInvoiceNotFoundError$inboundSchema; - /** @deprecated use `CreateInvoiceNotFoundError$outboundSchema` instead. */ - export const outboundSchema = CreateInvoiceNotFoundError$outboundSchema; - /** @deprecated use `CreateInvoiceNotFoundError$Outbound` instead. */ - export type Outbound = CreateInvoiceNotFoundError$Outbound; -} - /** @internal */ export const CreateInvoiceBadRequestError$inboundSchema: z.ZodType< CreateInvoiceBadRequestError, @@ -299,16 +260,3 @@ export const CreateInvoiceBadRequestError$outboundSchema: z.ZodType< .pipe(z.object({ message: z.string(), })); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateInvoiceBadRequestError$ { - /** @deprecated use `CreateInvoiceBadRequestError$inboundSchema` instead. */ - export const inboundSchema = CreateInvoiceBadRequestError$inboundSchema; - /** @deprecated use `CreateInvoiceBadRequestError$outboundSchema` instead. */ - export const outboundSchema = CreateInvoiceBadRequestError$outboundSchema; - /** @deprecated use `CreateInvoiceBadRequestError$Outbound` instead. */ - export type Outbound = CreateInvoiceBadRequestError$Outbound; -} diff --git a/src/models/errors/downloadfile.ts b/src/models/errors/downloadfile.ts new file mode 100644 index 0000000..82ba42d --- /dev/null +++ b/src/models/errors/downloadfile.ts @@ -0,0 +1,270 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { MiddayError } from "./middayerror.js"; + +/** + * Internal server error + */ +export type DownloadFileInternalServerErrorData = { + error: string; +}; + +/** + * Internal server error + */ +export class DownloadFileInternalServerError extends MiddayError { + error: string; + + /** The original data that was passed to this error instance. */ + data$: DownloadFileInternalServerErrorData; + + constructor( + err: DownloadFileInternalServerErrorData, + httpMeta: { response: Response; request: Request; body: string }, + ) { + const message = "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message, httpMeta); + this.data$ = err; + this.error = err.error; + + this.name = "DownloadFileInternalServerError"; + } +} + +/** + * Not found + */ +export type DownloadFileNotFoundErrorData = { + error: string; +}; + +/** + * Not found + */ +export class DownloadFileNotFoundError extends MiddayError { + error: string; + + /** The original data that was passed to this error instance. */ + data$: DownloadFileNotFoundErrorData; + + constructor( + err: DownloadFileNotFoundErrorData, + httpMeta: { response: Response; request: Request; body: string }, + ) { + const message = "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message, httpMeta); + this.data$ = err; + this.error = err.error; + + this.name = "DownloadFileNotFoundError"; + } +} + +/** + * Unauthorized + */ +export type DownloadFileUnauthorizedErrorData = { + error: string; +}; + +/** + * Unauthorized + */ +export class DownloadFileUnauthorizedError extends MiddayError { + error: string; + + /** The original data that was passed to this error instance. */ + data$: DownloadFileUnauthorizedErrorData; + + constructor( + err: DownloadFileUnauthorizedErrorData, + httpMeta: { response: Response; request: Request; body: string }, + ) { + const message = "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message, httpMeta); + this.data$ = err; + this.error = err.error; + + this.name = "DownloadFileUnauthorizedError"; + } +} + +/** + * Bad request + */ +export type DownloadFileBadRequestErrorData = { + error: string; +}; + +/** + * Bad request + */ +export class DownloadFileBadRequestError extends MiddayError { + error: string; + + /** The original data that was passed to this error instance. */ + data$: DownloadFileBadRequestErrorData; + + constructor( + err: DownloadFileBadRequestErrorData, + httpMeta: { response: Response; request: Request; body: string }, + ) { + const message = "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message, httpMeta); + this.data$ = err; + this.error = err.error; + + this.name = "DownloadFileBadRequestError"; + } +} + +/** @internal */ +export const DownloadFileInternalServerError$inboundSchema: z.ZodType< + DownloadFileInternalServerError, + z.ZodTypeDef, + unknown +> = z.object({ + error: z.string(), + request$: z.instanceof(Request), + response$: z.instanceof(Response), + body$: z.string(), +}) + .transform((v) => { + return new DownloadFileInternalServerError(v, { + request: v.request$, + response: v.response$, + body: v.body$, + }); + }); + +/** @internal */ +export type DownloadFileInternalServerError$Outbound = { + error: string; +}; + +/** @internal */ +export const DownloadFileInternalServerError$outboundSchema: z.ZodType< + DownloadFileInternalServerError$Outbound, + z.ZodTypeDef, + DownloadFileInternalServerError +> = z.instanceof(DownloadFileInternalServerError) + .transform(v => v.data$) + .pipe(z.object({ + error: z.string(), + })); + +/** @internal */ +export const DownloadFileNotFoundError$inboundSchema: z.ZodType< + DownloadFileNotFoundError, + z.ZodTypeDef, + unknown +> = z.object({ + error: z.string(), + request$: z.instanceof(Request), + response$: z.instanceof(Response), + body$: z.string(), +}) + .transform((v) => { + return new DownloadFileNotFoundError(v, { + request: v.request$, + response: v.response$, + body: v.body$, + }); + }); + +/** @internal */ +export type DownloadFileNotFoundError$Outbound = { + error: string; +}; + +/** @internal */ +export const DownloadFileNotFoundError$outboundSchema: z.ZodType< + DownloadFileNotFoundError$Outbound, + z.ZodTypeDef, + DownloadFileNotFoundError +> = z.instanceof(DownloadFileNotFoundError) + .transform(v => v.data$) + .pipe(z.object({ + error: z.string(), + })); + +/** @internal */ +export const DownloadFileUnauthorizedError$inboundSchema: z.ZodType< + DownloadFileUnauthorizedError, + z.ZodTypeDef, + unknown +> = z.object({ + error: z.string(), + request$: z.instanceof(Request), + response$: z.instanceof(Response), + body$: z.string(), +}) + .transform((v) => { + return new DownloadFileUnauthorizedError(v, { + request: v.request$, + response: v.response$, + body: v.body$, + }); + }); + +/** @internal */ +export type DownloadFileUnauthorizedError$Outbound = { + error: string; +}; + +/** @internal */ +export const DownloadFileUnauthorizedError$outboundSchema: z.ZodType< + DownloadFileUnauthorizedError$Outbound, + z.ZodTypeDef, + DownloadFileUnauthorizedError +> = z.instanceof(DownloadFileUnauthorizedError) + .transform(v => v.data$) + .pipe(z.object({ + error: z.string(), + })); + +/** @internal */ +export const DownloadFileBadRequestError$inboundSchema: z.ZodType< + DownloadFileBadRequestError, + z.ZodTypeDef, + unknown +> = z.object({ + error: z.string(), + request$: z.instanceof(Request), + response$: z.instanceof(Response), + body$: z.string(), +}) + .transform((v) => { + return new DownloadFileBadRequestError(v, { + request: v.request$, + response: v.response$, + body: v.body$, + }); + }); + +/** @internal */ +export type DownloadFileBadRequestError$Outbound = { + error: string; +}; + +/** @internal */ +export const DownloadFileBadRequestError$outboundSchema: z.ZodType< + DownloadFileBadRequestError$Outbound, + z.ZodTypeDef, + DownloadFileBadRequestError +> = z.instanceof(DownloadFileBadRequestError) + .transform(v => v.data$) + .pipe(z.object({ + error: z.string(), + })); diff --git a/src/models/errors/downloadinvoice.ts b/src/models/errors/downloadinvoice.ts new file mode 100644 index 0000000..2bb10bc --- /dev/null +++ b/src/models/errors/downloadinvoice.ts @@ -0,0 +1,270 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { MiddayError } from "./middayerror.js"; + +/** + * Internal server error + */ +export type DownloadInvoiceInternalServerErrorData = { + error: string; +}; + +/** + * Internal server error + */ +export class DownloadInvoiceInternalServerError extends MiddayError { + error: string; + + /** The original data that was passed to this error instance. */ + data$: DownloadInvoiceInternalServerErrorData; + + constructor( + err: DownloadInvoiceInternalServerErrorData, + httpMeta: { response: Response; request: Request; body: string }, + ) { + const message = "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message, httpMeta); + this.data$ = err; + this.error = err.error; + + this.name = "DownloadInvoiceInternalServerError"; + } +} + +/** + * Not found + */ +export type DownloadInvoiceNotFoundErrorData = { + error: string; +}; + +/** + * Not found + */ +export class DownloadInvoiceNotFoundError extends MiddayError { + error: string; + + /** The original data that was passed to this error instance. */ + data$: DownloadInvoiceNotFoundErrorData; + + constructor( + err: DownloadInvoiceNotFoundErrorData, + httpMeta: { response: Response; request: Request; body: string }, + ) { + const message = "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message, httpMeta); + this.data$ = err; + this.error = err.error; + + this.name = "DownloadInvoiceNotFoundError"; + } +} + +/** + * Unauthorized + */ +export type DownloadInvoiceUnauthorizedErrorData = { + error: string; +}; + +/** + * Unauthorized + */ +export class DownloadInvoiceUnauthorizedError extends MiddayError { + error: string; + + /** The original data that was passed to this error instance. */ + data$: DownloadInvoiceUnauthorizedErrorData; + + constructor( + err: DownloadInvoiceUnauthorizedErrorData, + httpMeta: { response: Response; request: Request; body: string }, + ) { + const message = "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message, httpMeta); + this.data$ = err; + this.error = err.error; + + this.name = "DownloadInvoiceUnauthorizedError"; + } +} + +/** + * Bad request + */ +export type DownloadInvoiceBadRequestErrorData = { + error: string; +}; + +/** + * Bad request + */ +export class DownloadInvoiceBadRequestError extends MiddayError { + error: string; + + /** The original data that was passed to this error instance. */ + data$: DownloadInvoiceBadRequestErrorData; + + constructor( + err: DownloadInvoiceBadRequestErrorData, + httpMeta: { response: Response; request: Request; body: string }, + ) { + const message = "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message, httpMeta); + this.data$ = err; + this.error = err.error; + + this.name = "DownloadInvoiceBadRequestError"; + } +} + +/** @internal */ +export const DownloadInvoiceInternalServerError$inboundSchema: z.ZodType< + DownloadInvoiceInternalServerError, + z.ZodTypeDef, + unknown +> = z.object({ + error: z.string(), + request$: z.instanceof(Request), + response$: z.instanceof(Response), + body$: z.string(), +}) + .transform((v) => { + return new DownloadInvoiceInternalServerError(v, { + request: v.request$, + response: v.response$, + body: v.body$, + }); + }); + +/** @internal */ +export type DownloadInvoiceInternalServerError$Outbound = { + error: string; +}; + +/** @internal */ +export const DownloadInvoiceInternalServerError$outboundSchema: z.ZodType< + DownloadInvoiceInternalServerError$Outbound, + z.ZodTypeDef, + DownloadInvoiceInternalServerError +> = z.instanceof(DownloadInvoiceInternalServerError) + .transform(v => v.data$) + .pipe(z.object({ + error: z.string(), + })); + +/** @internal */ +export const DownloadInvoiceNotFoundError$inboundSchema: z.ZodType< + DownloadInvoiceNotFoundError, + z.ZodTypeDef, + unknown +> = z.object({ + error: z.string(), + request$: z.instanceof(Request), + response$: z.instanceof(Response), + body$: z.string(), +}) + .transform((v) => { + return new DownloadInvoiceNotFoundError(v, { + request: v.request$, + response: v.response$, + body: v.body$, + }); + }); + +/** @internal */ +export type DownloadInvoiceNotFoundError$Outbound = { + error: string; +}; + +/** @internal */ +export const DownloadInvoiceNotFoundError$outboundSchema: z.ZodType< + DownloadInvoiceNotFoundError$Outbound, + z.ZodTypeDef, + DownloadInvoiceNotFoundError +> = z.instanceof(DownloadInvoiceNotFoundError) + .transform(v => v.data$) + .pipe(z.object({ + error: z.string(), + })); + +/** @internal */ +export const DownloadInvoiceUnauthorizedError$inboundSchema: z.ZodType< + DownloadInvoiceUnauthorizedError, + z.ZodTypeDef, + unknown +> = z.object({ + error: z.string(), + request$: z.instanceof(Request), + response$: z.instanceof(Response), + body$: z.string(), +}) + .transform((v) => { + return new DownloadInvoiceUnauthorizedError(v, { + request: v.request$, + response: v.response$, + body: v.body$, + }); + }); + +/** @internal */ +export type DownloadInvoiceUnauthorizedError$Outbound = { + error: string; +}; + +/** @internal */ +export const DownloadInvoiceUnauthorizedError$outboundSchema: z.ZodType< + DownloadInvoiceUnauthorizedError$Outbound, + z.ZodTypeDef, + DownloadInvoiceUnauthorizedError +> = z.instanceof(DownloadInvoiceUnauthorizedError) + .transform(v => v.data$) + .pipe(z.object({ + error: z.string(), + })); + +/** @internal */ +export const DownloadInvoiceBadRequestError$inboundSchema: z.ZodType< + DownloadInvoiceBadRequestError, + z.ZodTypeDef, + unknown +> = z.object({ + error: z.string(), + request$: z.instanceof(Request), + response$: z.instanceof(Response), + body$: z.string(), +}) + .transform((v) => { + return new DownloadInvoiceBadRequestError(v, { + request: v.request$, + response: v.response$, + body: v.body$, + }); + }); + +/** @internal */ +export type DownloadInvoiceBadRequestError$Outbound = { + error: string; +}; + +/** @internal */ +export const DownloadInvoiceBadRequestError$outboundSchema: z.ZodType< + DownloadInvoiceBadRequestError$Outbound, + z.ZodTypeDef, + DownloadInvoiceBadRequestError +> = z.instanceof(DownloadInvoiceBadRequestError) + .transform(v => v.data$) + .pipe(z.object({ + error: z.string(), + })); diff --git a/src/models/errors/getdocumentpresignedurl.ts b/src/models/errors/getdocumentpresignedurl.ts index c5b7366..e4d33a6 100644 --- a/src/models/errors/getdocumentpresignedurl.ts +++ b/src/models/errors/getdocumentpresignedurl.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { MiddayError } from "./middayerror.js"; /** @@ -132,21 +132,6 @@ export const GetDocumentPreSignedUrlInternalServerError$outboundSchema: error: z.string(), })); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetDocumentPreSignedUrlInternalServerError$ { - /** @deprecated use `GetDocumentPreSignedUrlInternalServerError$inboundSchema` instead. */ - export const inboundSchema = - GetDocumentPreSignedUrlInternalServerError$inboundSchema; - /** @deprecated use `GetDocumentPreSignedUrlInternalServerError$outboundSchema` instead. */ - export const outboundSchema = - GetDocumentPreSignedUrlInternalServerError$outboundSchema; - /** @deprecated use `GetDocumentPreSignedUrlInternalServerError$Outbound` instead. */ - export type Outbound = GetDocumentPreSignedUrlInternalServerError$Outbound; -} - /** @internal */ export const GetDocumentPreSignedUrlNotFoundError$inboundSchema: z.ZodType< GetDocumentPreSignedUrlNotFoundError, @@ -182,21 +167,6 @@ export const GetDocumentPreSignedUrlNotFoundError$outboundSchema: z.ZodType< error: z.string(), })); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetDocumentPreSignedUrlNotFoundError$ { - /** @deprecated use `GetDocumentPreSignedUrlNotFoundError$inboundSchema` instead. */ - export const inboundSchema = - GetDocumentPreSignedUrlNotFoundError$inboundSchema; - /** @deprecated use `GetDocumentPreSignedUrlNotFoundError$outboundSchema` instead. */ - export const outboundSchema = - GetDocumentPreSignedUrlNotFoundError$outboundSchema; - /** @deprecated use `GetDocumentPreSignedUrlNotFoundError$Outbound` instead. */ - export type Outbound = GetDocumentPreSignedUrlNotFoundError$Outbound; -} - /** @internal */ export const GetDocumentPreSignedUrlBadRequestError$inboundSchema: z.ZodType< GetDocumentPreSignedUrlBadRequestError, @@ -231,18 +201,3 @@ export const GetDocumentPreSignedUrlBadRequestError$outboundSchema: z.ZodType< .pipe(z.object({ error: z.string(), })); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetDocumentPreSignedUrlBadRequestError$ { - /** @deprecated use `GetDocumentPreSignedUrlBadRequestError$inboundSchema` instead. */ - export const inboundSchema = - GetDocumentPreSignedUrlBadRequestError$inboundSchema; - /** @deprecated use `GetDocumentPreSignedUrlBadRequestError$outboundSchema` instead. */ - export const outboundSchema = - GetDocumentPreSignedUrlBadRequestError$outboundSchema; - /** @deprecated use `GetDocumentPreSignedUrlBadRequestError$Outbound` instead. */ - export type Outbound = GetDocumentPreSignedUrlBadRequestError$Outbound; -} diff --git a/src/models/errors/getinboxpresignedurl.ts b/src/models/errors/getinboxpresignedurl.ts index 1fd0569..83c5d22 100644 --- a/src/models/errors/getinboxpresignedurl.ts +++ b/src/models/errors/getinboxpresignedurl.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { MiddayError } from "./middayerror.js"; /** @@ -133,21 +133,6 @@ export const GetInboxPreSignedUrlInternalServerError$outboundSchema: z.ZodType< error: z.string(), })); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetInboxPreSignedUrlInternalServerError$ { - /** @deprecated use `GetInboxPreSignedUrlInternalServerError$inboundSchema` instead. */ - export const inboundSchema = - GetInboxPreSignedUrlInternalServerError$inboundSchema; - /** @deprecated use `GetInboxPreSignedUrlInternalServerError$outboundSchema` instead. */ - export const outboundSchema = - GetInboxPreSignedUrlInternalServerError$outboundSchema; - /** @deprecated use `GetInboxPreSignedUrlInternalServerError$Outbound` instead. */ - export type Outbound = GetInboxPreSignedUrlInternalServerError$Outbound; -} - /** @internal */ export const GetInboxPreSignedUrlNotFoundError$inboundSchema: z.ZodType< GetInboxPreSignedUrlNotFoundError, @@ -183,20 +168,6 @@ export const GetInboxPreSignedUrlNotFoundError$outboundSchema: z.ZodType< error: z.string(), })); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetInboxPreSignedUrlNotFoundError$ { - /** @deprecated use `GetInboxPreSignedUrlNotFoundError$inboundSchema` instead. */ - export const inboundSchema = GetInboxPreSignedUrlNotFoundError$inboundSchema; - /** @deprecated use `GetInboxPreSignedUrlNotFoundError$outboundSchema` instead. */ - export const outboundSchema = - GetInboxPreSignedUrlNotFoundError$outboundSchema; - /** @deprecated use `GetInboxPreSignedUrlNotFoundError$Outbound` instead. */ - export type Outbound = GetInboxPreSignedUrlNotFoundError$Outbound; -} - /** @internal */ export const GetInboxPreSignedUrlBadRequestError$inboundSchema: z.ZodType< GetInboxPreSignedUrlBadRequestError, @@ -231,18 +202,3 @@ export const GetInboxPreSignedUrlBadRequestError$outboundSchema: z.ZodType< .pipe(z.object({ error: z.string(), })); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetInboxPreSignedUrlBadRequestError$ { - /** @deprecated use `GetInboxPreSignedUrlBadRequestError$inboundSchema` instead. */ - export const inboundSchema = - GetInboxPreSignedUrlBadRequestError$inboundSchema; - /** @deprecated use `GetInboxPreSignedUrlBadRequestError$outboundSchema` instead. */ - export const outboundSchema = - GetInboxPreSignedUrlBadRequestError$outboundSchema; - /** @deprecated use `GetInboxPreSignedUrlBadRequestError$Outbound` instead. */ - export type Outbound = GetInboxPreSignedUrlBadRequestError$Outbound; -} diff --git a/src/models/errors/getoauthauthorization.ts b/src/models/errors/getoauthauthorization.ts index 3abf6ae..a74cd1e 100644 --- a/src/models/errors/getoauthauthorization.ts +++ b/src/models/errors/getoauthauthorization.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { MiddayError } from "./middayerror.js"; @@ -127,18 +127,3 @@ export const GetOAuthAuthorizationBadRequestError$outboundSchema: z.ZodType< }); }), ); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetOAuthAuthorizationBadRequestError$ { - /** @deprecated use `GetOAuthAuthorizationBadRequestError$inboundSchema` instead. */ - export const inboundSchema = - GetOAuthAuthorizationBadRequestError$inboundSchema; - /** @deprecated use `GetOAuthAuthorizationBadRequestError$outboundSchema` instead. */ - export const outboundSchema = - GetOAuthAuthorizationBadRequestError$outboundSchema; - /** @deprecated use `GetOAuthAuthorizationBadRequestError$Outbound` instead. */ - export type Outbound = GetOAuthAuthorizationBadRequestError$Outbound; -} diff --git a/src/models/errors/gettransactionattachmentpresignedurl.ts b/src/models/errors/gettransactionattachmentpresignedurl.ts index 04bd6b5..4c62d54 100644 --- a/src/models/errors/gettransactionattachmentpresignedurl.ts +++ b/src/models/errors/gettransactionattachmentpresignedurl.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { MiddayError } from "./middayerror.js"; /** @@ -141,22 +141,6 @@ export const GetTransactionAttachmentPreSignedUrlInternalServerError$outboundSch error: z.string(), })); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTransactionAttachmentPreSignedUrlInternalServerError$ { - /** @deprecated use `GetTransactionAttachmentPreSignedUrlInternalServerError$inboundSchema` instead. */ - export const inboundSchema = - GetTransactionAttachmentPreSignedUrlInternalServerError$inboundSchema; - /** @deprecated use `GetTransactionAttachmentPreSignedUrlInternalServerError$outboundSchema` instead. */ - export const outboundSchema = - GetTransactionAttachmentPreSignedUrlInternalServerError$outboundSchema; - /** @deprecated use `GetTransactionAttachmentPreSignedUrlInternalServerError$Outbound` instead. */ - export type Outbound = - GetTransactionAttachmentPreSignedUrlInternalServerError$Outbound; -} - /** @internal */ export const GetTransactionAttachmentPreSignedUrlNotFoundError$inboundSchema: z.ZodType< @@ -194,22 +178,6 @@ export const GetTransactionAttachmentPreSignedUrlNotFoundError$outboundSchema: error: z.string(), })); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTransactionAttachmentPreSignedUrlNotFoundError$ { - /** @deprecated use `GetTransactionAttachmentPreSignedUrlNotFoundError$inboundSchema` instead. */ - export const inboundSchema = - GetTransactionAttachmentPreSignedUrlNotFoundError$inboundSchema; - /** @deprecated use `GetTransactionAttachmentPreSignedUrlNotFoundError$outboundSchema` instead. */ - export const outboundSchema = - GetTransactionAttachmentPreSignedUrlNotFoundError$outboundSchema; - /** @deprecated use `GetTransactionAttachmentPreSignedUrlNotFoundError$Outbound` instead. */ - export type Outbound = - GetTransactionAttachmentPreSignedUrlNotFoundError$Outbound; -} - /** @internal */ export const GetTransactionAttachmentPreSignedUrlBadRequestError$inboundSchema: z.ZodType< @@ -246,19 +214,3 @@ export const GetTransactionAttachmentPreSignedUrlBadRequestError$outboundSchema: .pipe(z.object({ error: z.string(), })); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTransactionAttachmentPreSignedUrlBadRequestError$ { - /** @deprecated use `GetTransactionAttachmentPreSignedUrlBadRequestError$inboundSchema` instead. */ - export const inboundSchema = - GetTransactionAttachmentPreSignedUrlBadRequestError$inboundSchema; - /** @deprecated use `GetTransactionAttachmentPreSignedUrlBadRequestError$outboundSchema` instead. */ - export const outboundSchema = - GetTransactionAttachmentPreSignedUrlBadRequestError$outboundSchema; - /** @deprecated use `GetTransactionAttachmentPreSignedUrlBadRequestError$Outbound` instead. */ - export type Outbound = - GetTransactionAttachmentPreSignedUrlBadRequestError$Outbound; -} diff --git a/src/models/errors/gmailoauthcallback.ts b/src/models/errors/gmailoauthcallback.ts new file mode 100644 index 0000000..8b3705a --- /dev/null +++ b/src/models/errors/gmailoauthcallback.ts @@ -0,0 +1,138 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { MiddayError } from "./middayerror.js"; + +/** + * Failed to process OAuth callback + */ +export type GmailOAuthCallbackInternalServerErrorData = { + error: string; +}; + +/** + * Failed to process OAuth callback + */ +export class GmailOAuthCallbackInternalServerError extends MiddayError { + error: string; + + /** The original data that was passed to this error instance. */ + data$: GmailOAuthCallbackInternalServerErrorData; + + constructor( + err: GmailOAuthCallbackInternalServerErrorData, + httpMeta: { response: Response; request: Request; body: string }, + ) { + const message = "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message, httpMeta); + this.data$ = err; + this.error = err.error; + + this.name = "GmailOAuthCallbackInternalServerError"; + } +} + +/** + * Invalid request parameters + */ +export type GmailOAuthCallbackBadRequestErrorData = { + error: string; +}; + +/** + * Invalid request parameters + */ +export class GmailOAuthCallbackBadRequestError extends MiddayError { + error: string; + + /** The original data that was passed to this error instance. */ + data$: GmailOAuthCallbackBadRequestErrorData; + + constructor( + err: GmailOAuthCallbackBadRequestErrorData, + httpMeta: { response: Response; request: Request; body: string }, + ) { + const message = "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message, httpMeta); + this.data$ = err; + this.error = err.error; + + this.name = "GmailOAuthCallbackBadRequestError"; + } +} + +/** @internal */ +export const GmailOAuthCallbackInternalServerError$inboundSchema: z.ZodType< + GmailOAuthCallbackInternalServerError, + z.ZodTypeDef, + unknown +> = z.object({ + error: z.string(), + request$: z.instanceof(Request), + response$: z.instanceof(Response), + body$: z.string(), +}) + .transform((v) => { + return new GmailOAuthCallbackInternalServerError(v, { + request: v.request$, + response: v.response$, + body: v.body$, + }); + }); + +/** @internal */ +export type GmailOAuthCallbackInternalServerError$Outbound = { + error: string; +}; + +/** @internal */ +export const GmailOAuthCallbackInternalServerError$outboundSchema: z.ZodType< + GmailOAuthCallbackInternalServerError$Outbound, + z.ZodTypeDef, + GmailOAuthCallbackInternalServerError +> = z.instanceof(GmailOAuthCallbackInternalServerError) + .transform(v => v.data$) + .pipe(z.object({ + error: z.string(), + })); + +/** @internal */ +export const GmailOAuthCallbackBadRequestError$inboundSchema: z.ZodType< + GmailOAuthCallbackBadRequestError, + z.ZodTypeDef, + unknown +> = z.object({ + error: z.string(), + request$: z.instanceof(Request), + response$: z.instanceof(Response), + body$: z.string(), +}) + .transform((v) => { + return new GmailOAuthCallbackBadRequestError(v, { + request: v.request$, + response: v.response$, + body: v.body$, + }); + }); + +/** @internal */ +export type GmailOAuthCallbackBadRequestError$Outbound = { + error: string; +}; + +/** @internal */ +export const GmailOAuthCallbackBadRequestError$outboundSchema: z.ZodType< + GmailOAuthCallbackBadRequestError$Outbound, + z.ZodTypeDef, + GmailOAuthCallbackBadRequestError +> = z.instanceof(GmailOAuthCallbackBadRequestError) + .transform(v => v.data$) + .pipe(z.object({ + error: z.string(), + })); diff --git a/src/models/errors/inboxwebhook.ts b/src/models/errors/inboxwebhook.ts new file mode 100644 index 0000000..6af6803 --- /dev/null +++ b/src/models/errors/inboxwebhook.ts @@ -0,0 +1,145 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import * as operations from "../operations/index.js"; +import { MiddayError } from "./middayerror.js"; + +/** + * Internal server error + */ +export type InboxWebhookInternalServerErrorData = { + error: string; +}; + +/** + * Internal server error + */ +export class InboxWebhookInternalServerError extends MiddayError { + error: string; + + /** The original data that was passed to this error instance. */ + data$: InboxWebhookInternalServerErrorData; + + constructor( + err: InboxWebhookInternalServerErrorData, + httpMeta: { response: Response; request: Request; body: string }, + ) { + const message = "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message, httpMeta); + this.data$ = err; + this.error = err.error; + + this.name = "InboxWebhookInternalServerError"; + } +} + +/** + * Invalid request + */ +export type InboxWebhookBadRequestErrorData = { + error: string; + errors?: Array | undefined; +}; + +/** + * Invalid request + */ +export class InboxWebhookBadRequestError extends MiddayError { + error: string; + errors?: Array | undefined; + + /** The original data that was passed to this error instance. */ + data$: InboxWebhookBadRequestErrorData; + + constructor( + err: InboxWebhookBadRequestErrorData, + httpMeta: { response: Response; request: Request; body: string }, + ) { + const message = "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message, httpMeta); + this.data$ = err; + this.error = err.error; + if (err.errors != null) this.errors = err.errors; + + this.name = "InboxWebhookBadRequestError"; + } +} + +/** @internal */ +export const InboxWebhookInternalServerError$inboundSchema: z.ZodType< + InboxWebhookInternalServerError, + z.ZodTypeDef, + unknown +> = z.object({ + error: z.string(), + request$: z.instanceof(Request), + response$: z.instanceof(Response), + body$: z.string(), +}) + .transform((v) => { + return new InboxWebhookInternalServerError(v, { + request: v.request$, + response: v.response$, + body: v.body$, + }); + }); + +/** @internal */ +export type InboxWebhookInternalServerError$Outbound = { + error: string; +}; + +/** @internal */ +export const InboxWebhookInternalServerError$outboundSchema: z.ZodType< + InboxWebhookInternalServerError$Outbound, + z.ZodTypeDef, + InboxWebhookInternalServerError +> = z.instanceof(InboxWebhookInternalServerError) + .transform(v => v.data$) + .pipe(z.object({ + error: z.string(), + })); + +/** @internal */ +export const InboxWebhookBadRequestError$inboundSchema: z.ZodType< + InboxWebhookBadRequestError, + z.ZodTypeDef, + unknown +> = z.object({ + error: z.string(), + errors: z.array(z.lazy(() => operations.ErrorT$inboundSchema)).optional(), + request$: z.instanceof(Request), + response$: z.instanceof(Response), + body$: z.string(), +}) + .transform((v) => { + return new InboxWebhookBadRequestError(v, { + request: v.request$, + response: v.response$, + body: v.body$, + }); + }); + +/** @internal */ +export type InboxWebhookBadRequestError$Outbound = { + error: string; + errors?: Array | undefined; +}; + +/** @internal */ +export const InboxWebhookBadRequestError$outboundSchema: z.ZodType< + InboxWebhookBadRequestError$Outbound, + z.ZodTypeDef, + InboxWebhookBadRequestError +> = z.instanceof(InboxWebhookBadRequestError) + .transform(v => v.data$) + .pipe(z.object({ + error: z.string(), + errors: z.array(z.lazy(() => operations.ErrorT$outboundSchema)).optional(), + })); diff --git a/src/models/errors/index.ts b/src/models/errors/index.ts index d83946e..695069a 100644 --- a/src/models/errors/index.ts +++ b/src/models/errors/index.ts @@ -4,13 +4,20 @@ export * from "./apierror.js"; export * from "./createinvoice.js"; +export * from "./downloadfile.js"; +export * from "./downloadinvoice.js"; export * from "./getdocumentpresignedurl.js"; export * from "./getinboxpresignedurl.js"; export * from "./getoauthauthorization.js"; export * from "./gettransactionattachmentpresignedurl.js"; +export * from "./gmailoauthcallback.js"; export * from "./httpclienterrors.js"; +export * from "./inboxwebhook.js"; export * from "./middayerror.js"; +export * from "./outlookoauthcallback.js"; export * from "./postoauthauthorization.js"; export * from "./postoauthtoken.js"; +export * from "./proxyfile.js"; export * from "./responsevalidationerror.js"; export * from "./sdkvalidationerror.js"; +export * from "./slackoauthcallback.js"; diff --git a/src/models/errors/outlookoauthcallback.ts b/src/models/errors/outlookoauthcallback.ts new file mode 100644 index 0000000..5b7d4af --- /dev/null +++ b/src/models/errors/outlookoauthcallback.ts @@ -0,0 +1,138 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { MiddayError } from "./middayerror.js"; + +/** + * Failed to process OAuth callback + */ +export type OutlookOAuthCallbackInternalServerErrorData = { + error: string; +}; + +/** + * Failed to process OAuth callback + */ +export class OutlookOAuthCallbackInternalServerError extends MiddayError { + error: string; + + /** The original data that was passed to this error instance. */ + data$: OutlookOAuthCallbackInternalServerErrorData; + + constructor( + err: OutlookOAuthCallbackInternalServerErrorData, + httpMeta: { response: Response; request: Request; body: string }, + ) { + const message = "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message, httpMeta); + this.data$ = err; + this.error = err.error; + + this.name = "OutlookOAuthCallbackInternalServerError"; + } +} + +/** + * Invalid request parameters + */ +export type OutlookOAuthCallbackBadRequestErrorData = { + error: string; +}; + +/** + * Invalid request parameters + */ +export class OutlookOAuthCallbackBadRequestError extends MiddayError { + error: string; + + /** The original data that was passed to this error instance. */ + data$: OutlookOAuthCallbackBadRequestErrorData; + + constructor( + err: OutlookOAuthCallbackBadRequestErrorData, + httpMeta: { response: Response; request: Request; body: string }, + ) { + const message = "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message, httpMeta); + this.data$ = err; + this.error = err.error; + + this.name = "OutlookOAuthCallbackBadRequestError"; + } +} + +/** @internal */ +export const OutlookOAuthCallbackInternalServerError$inboundSchema: z.ZodType< + OutlookOAuthCallbackInternalServerError, + z.ZodTypeDef, + unknown +> = z.object({ + error: z.string(), + request$: z.instanceof(Request), + response$: z.instanceof(Response), + body$: z.string(), +}) + .transform((v) => { + return new OutlookOAuthCallbackInternalServerError(v, { + request: v.request$, + response: v.response$, + body: v.body$, + }); + }); + +/** @internal */ +export type OutlookOAuthCallbackInternalServerError$Outbound = { + error: string; +}; + +/** @internal */ +export const OutlookOAuthCallbackInternalServerError$outboundSchema: z.ZodType< + OutlookOAuthCallbackInternalServerError$Outbound, + z.ZodTypeDef, + OutlookOAuthCallbackInternalServerError +> = z.instanceof(OutlookOAuthCallbackInternalServerError) + .transform(v => v.data$) + .pipe(z.object({ + error: z.string(), + })); + +/** @internal */ +export const OutlookOAuthCallbackBadRequestError$inboundSchema: z.ZodType< + OutlookOAuthCallbackBadRequestError, + z.ZodTypeDef, + unknown +> = z.object({ + error: z.string(), + request$: z.instanceof(Request), + response$: z.instanceof(Response), + body$: z.string(), +}) + .transform((v) => { + return new OutlookOAuthCallbackBadRequestError(v, { + request: v.request$, + response: v.response$, + body: v.body$, + }); + }); + +/** @internal */ +export type OutlookOAuthCallbackBadRequestError$Outbound = { + error: string; +}; + +/** @internal */ +export const OutlookOAuthCallbackBadRequestError$outboundSchema: z.ZodType< + OutlookOAuthCallbackBadRequestError$Outbound, + z.ZodTypeDef, + OutlookOAuthCallbackBadRequestError +> = z.instanceof(OutlookOAuthCallbackBadRequestError) + .transform(v => v.data$) + .pipe(z.object({ + error: z.string(), + })); diff --git a/src/models/errors/postoauthauthorization.ts b/src/models/errors/postoauthauthorization.ts index 1660081..1b745fa 100644 --- a/src/models/errors/postoauthauthorization.ts +++ b/src/models/errors/postoauthauthorization.ts @@ -2,28 +2,28 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { MiddayError } from "./middayerror.js"; /** * Unauthorized */ -export type UnauthorizedErrorData = { +export type PostOAuthAuthorizationUnauthorizedErrorData = { redirectUrl: string; }; /** * Unauthorized */ -export class UnauthorizedError extends MiddayError { +export class PostOAuthAuthorizationUnauthorizedError extends MiddayError { redirectUrl: string; /** The original data that was passed to this error instance. */ - data$: UnauthorizedErrorData; + data$: PostOAuthAuthorizationUnauthorizedErrorData; constructor( - err: UnauthorizedErrorData, + err: PostOAuthAuthorizationUnauthorizedErrorData, httpMeta: { response: Response; request: Request; body: string }, ) { const message = "message" in err && typeof err.message === "string" @@ -33,7 +33,7 @@ export class UnauthorizedError extends MiddayError { this.data$ = err; this.redirectUrl = err.redirectUrl; - this.name = "UnauthorizedError"; + this.name = "PostOAuthAuthorizationUnauthorizedError"; } } @@ -69,8 +69,8 @@ export class PostOAuthAuthorizationBadRequestError extends MiddayError { } /** @internal */ -export const UnauthorizedError$inboundSchema: z.ZodType< - UnauthorizedError, +export const PostOAuthAuthorizationUnauthorizedError$inboundSchema: z.ZodType< + PostOAuthAuthorizationUnauthorizedError, z.ZodTypeDef, unknown > = z.object({ @@ -84,7 +84,7 @@ export const UnauthorizedError$inboundSchema: z.ZodType< "redirect_url": "redirectUrl", }); - return new UnauthorizedError(remapped, { + return new PostOAuthAuthorizationUnauthorizedError(remapped, { request: v.request$, response: v.response$, body: v.body$, @@ -92,16 +92,16 @@ export const UnauthorizedError$inboundSchema: z.ZodType< }); /** @internal */ -export type UnauthorizedError$Outbound = { +export type PostOAuthAuthorizationUnauthorizedError$Outbound = { redirect_url: string; }; /** @internal */ -export const UnauthorizedError$outboundSchema: z.ZodType< - UnauthorizedError$Outbound, +export const PostOAuthAuthorizationUnauthorizedError$outboundSchema: z.ZodType< + PostOAuthAuthorizationUnauthorizedError$Outbound, z.ZodTypeDef, - UnauthorizedError -> = z.instanceof(UnauthorizedError) + PostOAuthAuthorizationUnauthorizedError +> = z.instanceof(PostOAuthAuthorizationUnauthorizedError) .transform(v => v.data$) .pipe( z.object({ @@ -113,19 +113,6 @@ export const UnauthorizedError$outboundSchema: z.ZodType< }), ); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UnauthorizedError$ { - /** @deprecated use `UnauthorizedError$inboundSchema` instead. */ - export const inboundSchema = UnauthorizedError$inboundSchema; - /** @deprecated use `UnauthorizedError$outboundSchema` instead. */ - export const outboundSchema = UnauthorizedError$outboundSchema; - /** @deprecated use `UnauthorizedError$Outbound` instead. */ - export type Outbound = UnauthorizedError$Outbound; -} - /** @internal */ export const PostOAuthAuthorizationBadRequestError$inboundSchema: z.ZodType< PostOAuthAuthorizationBadRequestError, @@ -170,18 +157,3 @@ export const PostOAuthAuthorizationBadRequestError$outboundSchema: z.ZodType< }); }), ); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostOAuthAuthorizationBadRequestError$ { - /** @deprecated use `PostOAuthAuthorizationBadRequestError$inboundSchema` instead. */ - export const inboundSchema = - PostOAuthAuthorizationBadRequestError$inboundSchema; - /** @deprecated use `PostOAuthAuthorizationBadRequestError$outboundSchema` instead. */ - export const outboundSchema = - PostOAuthAuthorizationBadRequestError$outboundSchema; - /** @deprecated use `PostOAuthAuthorizationBadRequestError$Outbound` instead. */ - export type Outbound = PostOAuthAuthorizationBadRequestError$Outbound; -} diff --git a/src/models/errors/postoauthtoken.ts b/src/models/errors/postoauthtoken.ts index 3d2ff72..036405c 100644 --- a/src/models/errors/postoauthtoken.ts +++ b/src/models/errors/postoauthtoken.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { MiddayError } from "./middayerror.js"; @@ -127,16 +127,3 @@ export const PostOAuthTokenBadRequestError$outboundSchema: z.ZodType< }); }), ); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostOAuthTokenBadRequestError$ { - /** @deprecated use `PostOAuthTokenBadRequestError$inboundSchema` instead. */ - export const inboundSchema = PostOAuthTokenBadRequestError$inboundSchema; - /** @deprecated use `PostOAuthTokenBadRequestError$outboundSchema` instead. */ - export const outboundSchema = PostOAuthTokenBadRequestError$outboundSchema; - /** @deprecated use `PostOAuthTokenBadRequestError$Outbound` instead. */ - export type Outbound = PostOAuthTokenBadRequestError$Outbound; -} diff --git a/src/models/errors/proxyfile.ts b/src/models/errors/proxyfile.ts new file mode 100644 index 0000000..002af10 --- /dev/null +++ b/src/models/errors/proxyfile.ts @@ -0,0 +1,204 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { MiddayError } from "./middayerror.js"; + +/** + * Internal server error + */ +export type ProxyFileInternalServerErrorData = { + error: string; +}; + +/** + * Internal server error + */ +export class ProxyFileInternalServerError extends MiddayError { + error: string; + + /** The original data that was passed to this error instance. */ + data$: ProxyFileInternalServerErrorData; + + constructor( + err: ProxyFileInternalServerErrorData, + httpMeta: { response: Response; request: Request; body: string }, + ) { + const message = "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message, httpMeta); + this.data$ = err; + this.error = err.error; + + this.name = "ProxyFileInternalServerError"; + } +} + +/** + * Not found + */ +export type ProxyFileNotFoundErrorData = { + error: string; +}; + +/** + * Not found + */ +export class ProxyFileNotFoundError extends MiddayError { + error: string; + + /** The original data that was passed to this error instance. */ + data$: ProxyFileNotFoundErrorData; + + constructor( + err: ProxyFileNotFoundErrorData, + httpMeta: { response: Response; request: Request; body: string }, + ) { + const message = "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message, httpMeta); + this.data$ = err; + this.error = err.error; + + this.name = "ProxyFileNotFoundError"; + } +} + +/** + * Bad request + */ +export type ProxyFileBadRequestErrorData = { + error: string; +}; + +/** + * Bad request + */ +export class ProxyFileBadRequestError extends MiddayError { + error: string; + + /** The original data that was passed to this error instance. */ + data$: ProxyFileBadRequestErrorData; + + constructor( + err: ProxyFileBadRequestErrorData, + httpMeta: { response: Response; request: Request; body: string }, + ) { + const message = "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message, httpMeta); + this.data$ = err; + this.error = err.error; + + this.name = "ProxyFileBadRequestError"; + } +} + +/** @internal */ +export const ProxyFileInternalServerError$inboundSchema: z.ZodType< + ProxyFileInternalServerError, + z.ZodTypeDef, + unknown +> = z.object({ + error: z.string(), + request$: z.instanceof(Request), + response$: z.instanceof(Response), + body$: z.string(), +}) + .transform((v) => { + return new ProxyFileInternalServerError(v, { + request: v.request$, + response: v.response$, + body: v.body$, + }); + }); + +/** @internal */ +export type ProxyFileInternalServerError$Outbound = { + error: string; +}; + +/** @internal */ +export const ProxyFileInternalServerError$outboundSchema: z.ZodType< + ProxyFileInternalServerError$Outbound, + z.ZodTypeDef, + ProxyFileInternalServerError +> = z.instanceof(ProxyFileInternalServerError) + .transform(v => v.data$) + .pipe(z.object({ + error: z.string(), + })); + +/** @internal */ +export const ProxyFileNotFoundError$inboundSchema: z.ZodType< + ProxyFileNotFoundError, + z.ZodTypeDef, + unknown +> = z.object({ + error: z.string(), + request$: z.instanceof(Request), + response$: z.instanceof(Response), + body$: z.string(), +}) + .transform((v) => { + return new ProxyFileNotFoundError(v, { + request: v.request$, + response: v.response$, + body: v.body$, + }); + }); + +/** @internal */ +export type ProxyFileNotFoundError$Outbound = { + error: string; +}; + +/** @internal */ +export const ProxyFileNotFoundError$outboundSchema: z.ZodType< + ProxyFileNotFoundError$Outbound, + z.ZodTypeDef, + ProxyFileNotFoundError +> = z.instanceof(ProxyFileNotFoundError) + .transform(v => v.data$) + .pipe(z.object({ + error: z.string(), + })); + +/** @internal */ +export const ProxyFileBadRequestError$inboundSchema: z.ZodType< + ProxyFileBadRequestError, + z.ZodTypeDef, + unknown +> = z.object({ + error: z.string(), + request$: z.instanceof(Request), + response$: z.instanceof(Response), + body$: z.string(), +}) + .transform((v) => { + return new ProxyFileBadRequestError(v, { + request: v.request$, + response: v.response$, + body: v.body$, + }); + }); + +/** @internal */ +export type ProxyFileBadRequestError$Outbound = { + error: string; +}; + +/** @internal */ +export const ProxyFileBadRequestError$outboundSchema: z.ZodType< + ProxyFileBadRequestError$Outbound, + z.ZodTypeDef, + ProxyFileBadRequestError +> = z.instanceof(ProxyFileBadRequestError) + .transform(v => v.data$) + .pipe(z.object({ + error: z.string(), + })); diff --git a/src/models/errors/responsevalidationerror.ts b/src/models/errors/responsevalidationerror.ts index e87ab7a..e2e4cfe 100644 --- a/src/models/errors/responsevalidationerror.ts +++ b/src/models/errors/responsevalidationerror.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { MiddayError } from "./middayerror.js"; import { formatZodError } from "./sdkvalidationerror.js"; diff --git a/src/models/errors/sdkvalidationerror.ts b/src/models/errors/sdkvalidationerror.ts index 37face8..6826e12 100644 --- a/src/models/errors/sdkvalidationerror.ts +++ b/src/models/errors/sdkvalidationerror.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; export class SDKValidationError extends Error { /** diff --git a/src/models/errors/slackoauthcallback.ts b/src/models/errors/slackoauthcallback.ts new file mode 100644 index 0000000..e5d8787 --- /dev/null +++ b/src/models/errors/slackoauthcallback.ts @@ -0,0 +1,138 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { MiddayError } from "./middayerror.js"; + +/** + * Failed to process OAuth callback + */ +export type SlackOAuthCallbackInternalServerErrorData = { + error: string; +}; + +/** + * Failed to process OAuth callback + */ +export class SlackOAuthCallbackInternalServerError extends MiddayError { + error: string; + + /** The original data that was passed to this error instance. */ + data$: SlackOAuthCallbackInternalServerErrorData; + + constructor( + err: SlackOAuthCallbackInternalServerErrorData, + httpMeta: { response: Response; request: Request; body: string }, + ) { + const message = "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message, httpMeta); + this.data$ = err; + this.error = err.error; + + this.name = "SlackOAuthCallbackInternalServerError"; + } +} + +/** + * Invalid request parameters + */ +export type SlackOAuthCallbackBadRequestErrorData = { + error: string; +}; + +/** + * Invalid request parameters + */ +export class SlackOAuthCallbackBadRequestError extends MiddayError { + error: string; + + /** The original data that was passed to this error instance. */ + data$: SlackOAuthCallbackBadRequestErrorData; + + constructor( + err: SlackOAuthCallbackBadRequestErrorData, + httpMeta: { response: Response; request: Request; body: string }, + ) { + const message = "message" in err && typeof err.message === "string" + ? err.message + : `API error occurred: ${JSON.stringify(err)}`; + super(message, httpMeta); + this.data$ = err; + this.error = err.error; + + this.name = "SlackOAuthCallbackBadRequestError"; + } +} + +/** @internal */ +export const SlackOAuthCallbackInternalServerError$inboundSchema: z.ZodType< + SlackOAuthCallbackInternalServerError, + z.ZodTypeDef, + unknown +> = z.object({ + error: z.string(), + request$: z.instanceof(Request), + response$: z.instanceof(Response), + body$: z.string(), +}) + .transform((v) => { + return new SlackOAuthCallbackInternalServerError(v, { + request: v.request$, + response: v.response$, + body: v.body$, + }); + }); + +/** @internal */ +export type SlackOAuthCallbackInternalServerError$Outbound = { + error: string; +}; + +/** @internal */ +export const SlackOAuthCallbackInternalServerError$outboundSchema: z.ZodType< + SlackOAuthCallbackInternalServerError$Outbound, + z.ZodTypeDef, + SlackOAuthCallbackInternalServerError +> = z.instanceof(SlackOAuthCallbackInternalServerError) + .transform(v => v.data$) + .pipe(z.object({ + error: z.string(), + })); + +/** @internal */ +export const SlackOAuthCallbackBadRequestError$inboundSchema: z.ZodType< + SlackOAuthCallbackBadRequestError, + z.ZodTypeDef, + unknown +> = z.object({ + error: z.string(), + request$: z.instanceof(Request), + response$: z.instanceof(Response), + body$: z.string(), +}) + .transform((v) => { + return new SlackOAuthCallbackBadRequestError(v, { + request: v.request$, + response: v.response$, + body: v.body$, + }); + }); + +/** @internal */ +export type SlackOAuthCallbackBadRequestError$Outbound = { + error: string; +}; + +/** @internal */ +export const SlackOAuthCallbackBadRequestError$outboundSchema: z.ZodType< + SlackOAuthCallbackBadRequestError$Outbound, + z.ZodTypeDef, + SlackOAuthCallbackBadRequestError +> = z.instanceof(SlackOAuthCallbackBadRequestError) + .transform(v => v.data$) + .pipe(z.object({ + error: z.string(), + })); diff --git a/src/models/expensesresultarray.ts b/src/models/expensesresultarray.ts index 7f2e40a..f643c27 100644 --- a/src/models/expensesresultarray.ts +++ b/src/models/expensesresultarray.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../lib/schemas.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; @@ -42,7 +42,6 @@ export const ExpensesResultArray$inboundSchema: z.ZodType< recurring: z.number(), total: z.number(), }); - /** @internal */ export type ExpensesResultArray$Outbound = { date: string; @@ -65,19 +64,6 @@ export const ExpensesResultArray$outboundSchema: z.ZodType< total: z.number(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ExpensesResultArray$ { - /** @deprecated use `ExpensesResultArray$inboundSchema` instead. */ - export const inboundSchema = ExpensesResultArray$inboundSchema; - /** @deprecated use `ExpensesResultArray$outboundSchema` instead. */ - export const outboundSchema = ExpensesResultArray$outboundSchema; - /** @deprecated use `ExpensesResultArray$Outbound` instead. */ - export type Outbound = ExpensesResultArray$Outbound; -} - export function expensesResultArrayToJSON( expensesResultArray: ExpensesResultArray, ): string { @@ -85,7 +71,6 @@ export function expensesResultArrayToJSON( ExpensesResultArray$outboundSchema.parse(expensesResultArray), ); } - export function expensesResultArrayFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/getburnrateresponseschema.ts b/src/models/getburnrateresponseschema.ts index 1d40795..64cceba 100644 --- a/src/models/getburnrateresponseschema.ts +++ b/src/models/getburnrateresponseschema.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../lib/schemas.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; @@ -32,7 +32,6 @@ export const GetBurnRateResponseSchema$inboundSchema: z.ZodType< value: z.number(), currency: z.string(), }); - /** @internal */ export type GetBurnRateResponseSchema$Outbound = { date: string; @@ -51,19 +50,6 @@ export const GetBurnRateResponseSchema$outboundSchema: z.ZodType< currency: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetBurnRateResponseSchema$ { - /** @deprecated use `GetBurnRateResponseSchema$inboundSchema` instead. */ - export const inboundSchema = GetBurnRateResponseSchema$inboundSchema; - /** @deprecated use `GetBurnRateResponseSchema$outboundSchema` instead. */ - export const outboundSchema = GetBurnRateResponseSchema$outboundSchema; - /** @deprecated use `GetBurnRateResponseSchema$Outbound` instead. */ - export type Outbound = GetBurnRateResponseSchema$Outbound; -} - export function getBurnRateResponseSchemaToJSON( getBurnRateResponseSchema: GetBurnRateResponseSchema, ): string { @@ -71,7 +57,6 @@ export function getBurnRateResponseSchemaToJSON( GetBurnRateResponseSchema$outboundSchema.parse(getBurnRateResponseSchema), ); } - export function getBurnRateResponseSchemaFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/getexpensesresponseschema.ts b/src/models/getexpensesresponseschema.ts index 347ecd4..4f655c6 100644 --- a/src/models/getexpensesresponseschema.ts +++ b/src/models/getexpensesresponseschema.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../lib/schemas.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; @@ -47,7 +47,6 @@ export const Summary$inboundSchema: z.ZodType = averageExpense: z.number(), currency: z.string(), }); - /** @internal */ export type Summary$Outbound = { averageExpense: number; @@ -64,23 +63,9 @@ export const Summary$outboundSchema: z.ZodType< currency: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Summary$ { - /** @deprecated use `Summary$inboundSchema` instead. */ - export const inboundSchema = Summary$inboundSchema; - /** @deprecated use `Summary$outboundSchema` instead. */ - export const outboundSchema = Summary$outboundSchema; - /** @deprecated use `Summary$Outbound` instead. */ - export type Outbound = Summary$Outbound; -} - export function summaryToJSON(summary: Summary): string { return JSON.stringify(Summary$outboundSchema.parse(summary)); } - export function summaryFromJSON( jsonString: string, ): SafeParseResult { @@ -100,7 +85,6 @@ export const GetExpensesResponseSchemaMeta$inboundSchema: z.ZodType< type: z.string(), currency: z.string(), }); - /** @internal */ export type GetExpensesResponseSchemaMeta$Outbound = { type: string; @@ -117,19 +101,6 @@ export const GetExpensesResponseSchemaMeta$outboundSchema: z.ZodType< currency: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetExpensesResponseSchemaMeta$ { - /** @deprecated use `GetExpensesResponseSchemaMeta$inboundSchema` instead. */ - export const inboundSchema = GetExpensesResponseSchemaMeta$inboundSchema; - /** @deprecated use `GetExpensesResponseSchemaMeta$outboundSchema` instead. */ - export const outboundSchema = GetExpensesResponseSchemaMeta$outboundSchema; - /** @deprecated use `GetExpensesResponseSchemaMeta$Outbound` instead. */ - export type Outbound = GetExpensesResponseSchemaMeta$Outbound; -} - export function getExpensesResponseSchemaMetaToJSON( getExpensesResponseSchemaMeta: GetExpensesResponseSchemaMeta, ): string { @@ -139,7 +110,6 @@ export function getExpensesResponseSchemaMetaToJSON( ), ); } - export function getExpensesResponseSchemaMetaFromJSON( jsonString: string, ): SafeParseResult { @@ -160,7 +130,6 @@ export const GetExpensesResponseSchema$inboundSchema: z.ZodType< meta: z.lazy(() => GetExpensesResponseSchemaMeta$inboundSchema), result: z.array(ExpensesResultArray$inboundSchema), }); - /** @internal */ export type GetExpensesResponseSchema$Outbound = { summary: Summary$Outbound; @@ -179,19 +148,6 @@ export const GetExpensesResponseSchema$outboundSchema: z.ZodType< result: z.array(ExpensesResultArray$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetExpensesResponseSchema$ { - /** @deprecated use `GetExpensesResponseSchema$inboundSchema` instead. */ - export const inboundSchema = GetExpensesResponseSchema$inboundSchema; - /** @deprecated use `GetExpensesResponseSchema$outboundSchema` instead. */ - export const outboundSchema = GetExpensesResponseSchema$outboundSchema; - /** @deprecated use `GetExpensesResponseSchema$Outbound` instead. */ - export type Outbound = GetExpensesResponseSchema$Outbound; -} - export function getExpensesResponseSchemaToJSON( getExpensesResponseSchema: GetExpensesResponseSchema, ): string { @@ -199,7 +155,6 @@ export function getExpensesResponseSchemaToJSON( GetExpensesResponseSchema$outboundSchema.parse(getExpensesResponseSchema), ); } - export function getExpensesResponseSchemaFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/getprofitresponseschema.ts b/src/models/getprofitresponseschema.ts index b63271b..0e505a2 100644 --- a/src/models/getprofitresponseschema.ts +++ b/src/models/getprofitresponseschema.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../lib/schemas.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; @@ -41,7 +41,6 @@ export const GetProfitResponseSchema$inboundSchema: z.ZodType< meta: ProfitMeta$inboundSchema, result: z.array(ProfitResultItem$inboundSchema), }); - /** @internal */ export type GetProfitResponseSchema$Outbound = { summary: ProfitSummary$Outbound; @@ -60,19 +59,6 @@ export const GetProfitResponseSchema$outboundSchema: z.ZodType< result: z.array(ProfitResultItem$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetProfitResponseSchema$ { - /** @deprecated use `GetProfitResponseSchema$inboundSchema` instead. */ - export const inboundSchema = GetProfitResponseSchema$inboundSchema; - /** @deprecated use `GetProfitResponseSchema$outboundSchema` instead. */ - export const outboundSchema = GetProfitResponseSchema$outboundSchema; - /** @deprecated use `GetProfitResponseSchema$Outbound` instead. */ - export type Outbound = GetProfitResponseSchema$Outbound; -} - export function getProfitResponseSchemaToJSON( getProfitResponseSchema: GetProfitResponseSchema, ): string { @@ -80,7 +66,6 @@ export function getProfitResponseSchemaToJSON( GetProfitResponseSchema$outboundSchema.parse(getProfitResponseSchema), ); } - export function getProfitResponseSchemaFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/getrevenueresponseschema.ts b/src/models/getrevenueresponseschema.ts index f8c2def..07db989 100644 --- a/src/models/getrevenueresponseschema.ts +++ b/src/models/getrevenueresponseschema.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../lib/schemas.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; @@ -41,7 +41,6 @@ export const GetRevenueResponseSchema$inboundSchema: z.ZodType< meta: RevenueMeta$inboundSchema, result: z.array(RevenueResultItem$inboundSchema), }); - /** @internal */ export type GetRevenueResponseSchema$Outbound = { summary: RevenueSummary$Outbound; @@ -60,19 +59,6 @@ export const GetRevenueResponseSchema$outboundSchema: z.ZodType< result: z.array(RevenueResultItem$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetRevenueResponseSchema$ { - /** @deprecated use `GetRevenueResponseSchema$inboundSchema` instead. */ - export const inboundSchema = GetRevenueResponseSchema$inboundSchema; - /** @deprecated use `GetRevenueResponseSchema$outboundSchema` instead. */ - export const outboundSchema = GetRevenueResponseSchema$outboundSchema; - /** @deprecated use `GetRevenueResponseSchema$Outbound` instead. */ - export type Outbound = GetRevenueResponseSchema$Outbound; -} - export function getRevenueResponseSchemaToJSON( getRevenueResponseSchema: GetRevenueResponseSchema, ): string { @@ -80,7 +66,6 @@ export function getRevenueResponseSchemaToJSON( GetRevenueResponseSchema$outboundSchema.parse(getRevenueResponseSchema), ); } - export function getRevenueResponseSchemaFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/notificationresponseschema.ts b/src/models/notificationresponseschema.ts index cd3a68b..33b57d2 100644 --- a/src/models/notificationresponseschema.ts +++ b/src/models/notificationresponseschema.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../lib/schemas.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; @@ -25,7 +25,6 @@ export const NotificationResponseSchema$inboundSchema: z.ZodType< > = z.object({ data: NotificationSchema$inboundSchema, }); - /** @internal */ export type NotificationResponseSchema$Outbound = { data: NotificationSchema$Outbound; @@ -40,19 +39,6 @@ export const NotificationResponseSchema$outboundSchema: z.ZodType< data: NotificationSchema$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NotificationResponseSchema$ { - /** @deprecated use `NotificationResponseSchema$inboundSchema` instead. */ - export const inboundSchema = NotificationResponseSchema$inboundSchema; - /** @deprecated use `NotificationResponseSchema$outboundSchema` instead. */ - export const outboundSchema = NotificationResponseSchema$outboundSchema; - /** @deprecated use `NotificationResponseSchema$Outbound` instead. */ - export type Outbound = NotificationResponseSchema$Outbound; -} - export function notificationResponseSchemaToJSON( notificationResponseSchema: NotificationResponseSchema, ): string { @@ -60,7 +46,6 @@ export function notificationResponseSchemaToJSON( NotificationResponseSchema$outboundSchema.parse(notificationResponseSchema), ); } - export function notificationResponseSchemaFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/notificationschema.ts b/src/models/notificationschema.ts index ffd809a..044a1f8 100644 --- a/src/models/notificationschema.ts +++ b/src/models/notificationschema.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../lib/schemas.js"; import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; @@ -81,43 +81,19 @@ export type NotificationSchema = { /** @internal */ export const Source$inboundSchema: z.ZodNativeEnum = z .nativeEnum(Source); - /** @internal */ export const Source$outboundSchema: z.ZodNativeEnum = Source$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Source$ { - /** @deprecated use `Source$inboundSchema` instead. */ - export const inboundSchema = Source$inboundSchema; - /** @deprecated use `Source$outboundSchema` instead. */ - export const outboundSchema = Source$outboundSchema; -} - /** @internal */ export const NotificationSchemaStatus$inboundSchema: z.ZodNativeEnum< typeof NotificationSchemaStatus > = z.nativeEnum(NotificationSchemaStatus); - /** @internal */ export const NotificationSchemaStatus$outboundSchema: z.ZodNativeEnum< typeof NotificationSchemaStatus > = NotificationSchemaStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NotificationSchemaStatus$ { - /** @deprecated use `NotificationSchemaStatus$inboundSchema` instead. */ - export const inboundSchema = NotificationSchemaStatus$inboundSchema; - /** @deprecated use `NotificationSchemaStatus$outboundSchema` instead. */ - export const outboundSchema = NotificationSchemaStatus$outboundSchema; -} - /** @internal */ export const NotificationSchema$inboundSchema: z.ZodType< NotificationSchema, @@ -135,7 +111,6 @@ export const NotificationSchema$inboundSchema: z.ZodType< metadata: z.record(z.nullable(z.any())), lastUsedAt: z.nullable(z.string()), }); - /** @internal */ export type NotificationSchema$Outbound = { id: string; @@ -168,19 +143,6 @@ export const NotificationSchema$outboundSchema: z.ZodType< lastUsedAt: z.nullable(z.string()), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NotificationSchema$ { - /** @deprecated use `NotificationSchema$inboundSchema` instead. */ - export const inboundSchema = NotificationSchema$inboundSchema; - /** @deprecated use `NotificationSchema$outboundSchema` instead. */ - export const outboundSchema = NotificationSchema$outboundSchema; - /** @deprecated use `NotificationSchema$Outbound` instead. */ - export type Outbound = NotificationSchema$Outbound; -} - export function notificationSchemaToJSON( notificationSchema: NotificationSchema, ): string { @@ -188,7 +150,6 @@ export function notificationSchemaToJSON( NotificationSchema$outboundSchema.parse(notificationSchema), ); } - export function notificationSchemaFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/notificationsresponseschema.ts b/src/models/notificationsresponseschema.ts index 559bef9..db7568f 100644 --- a/src/models/notificationsresponseschema.ts +++ b/src/models/notificationsresponseschema.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../lib/schemas.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; @@ -52,7 +52,6 @@ export const NotificationsResponseSchemaMeta$inboundSchema: z.ZodType< hasPreviousPage: z.boolean(), hasNextPage: z.boolean(), }); - /** @internal */ export type NotificationsResponseSchemaMeta$Outbound = { cursor: string | null; @@ -71,19 +70,6 @@ export const NotificationsResponseSchemaMeta$outboundSchema: z.ZodType< hasNextPage: z.boolean(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NotificationsResponseSchemaMeta$ { - /** @deprecated use `NotificationsResponseSchemaMeta$inboundSchema` instead. */ - export const inboundSchema = NotificationsResponseSchemaMeta$inboundSchema; - /** @deprecated use `NotificationsResponseSchemaMeta$outboundSchema` instead. */ - export const outboundSchema = NotificationsResponseSchemaMeta$outboundSchema; - /** @deprecated use `NotificationsResponseSchemaMeta$Outbound` instead. */ - export type Outbound = NotificationsResponseSchemaMeta$Outbound; -} - export function notificationsResponseSchemaMetaToJSON( notificationsResponseSchemaMeta: NotificationsResponseSchemaMeta, ): string { @@ -93,7 +79,6 @@ export function notificationsResponseSchemaMetaToJSON( ), ); } - export function notificationsResponseSchemaMetaFromJSON( jsonString: string, ): SafeParseResult { @@ -113,7 +98,6 @@ export const NotificationsResponseSchema$inboundSchema: z.ZodType< data: z.array(NotificationSchema$inboundSchema), meta: z.lazy(() => NotificationsResponseSchemaMeta$inboundSchema), }); - /** @internal */ export type NotificationsResponseSchema$Outbound = { data: Array; @@ -130,19 +114,6 @@ export const NotificationsResponseSchema$outboundSchema: z.ZodType< meta: z.lazy(() => NotificationsResponseSchemaMeta$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NotificationsResponseSchema$ { - /** @deprecated use `NotificationsResponseSchema$inboundSchema` instead. */ - export const inboundSchema = NotificationsResponseSchema$inboundSchema; - /** @deprecated use `NotificationsResponseSchema$outboundSchema` instead. */ - export const outboundSchema = NotificationsResponseSchema$outboundSchema; - /** @deprecated use `NotificationsResponseSchema$Outbound` instead. */ - export type Outbound = NotificationsResponseSchema$Outbound; -} - export function notificationsResponseSchemaToJSON( notificationsResponseSchema: NotificationsResponseSchema, ): string { @@ -152,7 +123,6 @@ export function notificationsResponseSchemaToJSON( ), ); } - export function notificationsResponseSchemaFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/createbankaccount.ts b/src/models/operations/createbankaccount.ts index 24a4fb2..bbc2c84 100644 --- a/src/models/operations/createbankaccount.ts +++ b/src/models/operations/createbankaccount.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -69,7 +69,6 @@ export const CreateBankAccountRequest$inboundSchema: z.ZodType< currency: z.string().optional(), manual: z.boolean().optional(), }); - /** @internal */ export type CreateBankAccountRequest$Outbound = { name: string; @@ -88,19 +87,6 @@ export const CreateBankAccountRequest$outboundSchema: z.ZodType< manual: z.boolean().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateBankAccountRequest$ { - /** @deprecated use `CreateBankAccountRequest$inboundSchema` instead. */ - export const inboundSchema = CreateBankAccountRequest$inboundSchema; - /** @deprecated use `CreateBankAccountRequest$outboundSchema` instead. */ - export const outboundSchema = CreateBankAccountRequest$outboundSchema; - /** @deprecated use `CreateBankAccountRequest$Outbound` instead. */ - export type Outbound = CreateBankAccountRequest$Outbound; -} - export function createBankAccountRequestToJSON( createBankAccountRequest: CreateBankAccountRequest, ): string { @@ -108,7 +94,6 @@ export function createBankAccountRequestToJSON( CreateBankAccountRequest$outboundSchema.parse(createBankAccountRequest), ); } - export function createBankAccountRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -133,7 +118,6 @@ export const CreateBankAccountResponse$inboundSchema: z.ZodType< balance: z.nullable(z.number()), manual: z.nullable(z.boolean()), }); - /** @internal */ export type CreateBankAccountResponse$Outbound = { id: string; @@ -160,19 +144,6 @@ export const CreateBankAccountResponse$outboundSchema: z.ZodType< manual: z.nullable(z.boolean()), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateBankAccountResponse$ { - /** @deprecated use `CreateBankAccountResponse$inboundSchema` instead. */ - export const inboundSchema = CreateBankAccountResponse$inboundSchema; - /** @deprecated use `CreateBankAccountResponse$outboundSchema` instead. */ - export const outboundSchema = CreateBankAccountResponse$outboundSchema; - /** @deprecated use `CreateBankAccountResponse$Outbound` instead. */ - export type Outbound = CreateBankAccountResponse$Outbound; -} - export function createBankAccountResponseToJSON( createBankAccountResponse: CreateBankAccountResponse, ): string { @@ -180,7 +151,6 @@ export function createBankAccountResponseToJSON( CreateBankAccountResponse$outboundSchema.parse(createBankAccountResponse), ); } - export function createBankAccountResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/createcustomer.ts b/src/models/operations/createcustomer.ts index a818147..194f4e1 100644 --- a/src/models/operations/createcustomer.ts +++ b/src/models/operations/createcustomer.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -199,7 +199,6 @@ export const CreateCustomerTagRequest$inboundSchema: z.ZodType< id: z.string(), name: z.string(), }); - /** @internal */ export type CreateCustomerTagRequest$Outbound = { id: string; @@ -216,19 +215,6 @@ export const CreateCustomerTagRequest$outboundSchema: z.ZodType< name: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateCustomerTagRequest$ { - /** @deprecated use `CreateCustomerTagRequest$inboundSchema` instead. */ - export const inboundSchema = CreateCustomerTagRequest$inboundSchema; - /** @deprecated use `CreateCustomerTagRequest$outboundSchema` instead. */ - export const outboundSchema = CreateCustomerTagRequest$outboundSchema; - /** @deprecated use `CreateCustomerTagRequest$Outbound` instead. */ - export type Outbound = CreateCustomerTagRequest$Outbound; -} - export function createCustomerTagRequestToJSON( createCustomerTagRequest: CreateCustomerTagRequest, ): string { @@ -236,7 +222,6 @@ export function createCustomerTagRequestToJSON( CreateCustomerTagRequest$outboundSchema.parse(createCustomerTagRequest), ); } - export function createCustomerTagRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -272,7 +257,6 @@ export const CreateCustomerRequest$inboundSchema: z.ZodType< tags: z.array(z.lazy(() => CreateCustomerTagRequest$inboundSchema)) .optional(), }); - /** @internal */ export type CreateCustomerRequest$Outbound = { id?: string | undefined; @@ -320,19 +304,6 @@ export const CreateCustomerRequest$outboundSchema: z.ZodType< .optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateCustomerRequest$ { - /** @deprecated use `CreateCustomerRequest$inboundSchema` instead. */ - export const inboundSchema = CreateCustomerRequest$inboundSchema; - /** @deprecated use `CreateCustomerRequest$outboundSchema` instead. */ - export const outboundSchema = CreateCustomerRequest$outboundSchema; - /** @deprecated use `CreateCustomerRequest$Outbound` instead. */ - export type Outbound = CreateCustomerRequest$Outbound; -} - export function createCustomerRequestToJSON( createCustomerRequest: CreateCustomerRequest, ): string { @@ -340,7 +311,6 @@ export function createCustomerRequestToJSON( CreateCustomerRequest$outboundSchema.parse(createCustomerRequest), ); } - export function createCustomerRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -360,7 +330,6 @@ export const CreateCustomerTagResponse$inboundSchema: z.ZodType< id: z.string(), name: z.string(), }); - /** @internal */ export type CreateCustomerTagResponse$Outbound = { id: string; @@ -377,19 +346,6 @@ export const CreateCustomerTagResponse$outboundSchema: z.ZodType< name: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateCustomerTagResponse$ { - /** @deprecated use `CreateCustomerTagResponse$inboundSchema` instead. */ - export const inboundSchema = CreateCustomerTagResponse$inboundSchema; - /** @deprecated use `CreateCustomerTagResponse$outboundSchema` instead. */ - export const outboundSchema = CreateCustomerTagResponse$outboundSchema; - /** @deprecated use `CreateCustomerTagResponse$Outbound` instead. */ - export type Outbound = CreateCustomerTagResponse$Outbound; -} - export function createCustomerTagResponseToJSON( createCustomerTagResponse: CreateCustomerTagResponse, ): string { @@ -397,7 +353,6 @@ export function createCustomerTagResponseToJSON( CreateCustomerTagResponse$outboundSchema.parse(createCustomerTagResponse), ); } - export function createCustomerTagResponseFromJSON( jsonString: string, ): SafeParseResult { @@ -436,7 +391,6 @@ export const CreateCustomerResponse$inboundSchema: z.ZodType< projectCount: z.number(), tags: z.array(z.lazy(() => CreateCustomerTagResponse$inboundSchema)), }); - /** @internal */ export type CreateCustomerResponse$Outbound = { id: string; @@ -491,19 +445,6 @@ export const CreateCustomerResponse$outboundSchema: z.ZodType< tags: z.array(z.lazy(() => CreateCustomerTagResponse$outboundSchema)), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateCustomerResponse$ { - /** @deprecated use `CreateCustomerResponse$inboundSchema` instead. */ - export const inboundSchema = CreateCustomerResponse$inboundSchema; - /** @deprecated use `CreateCustomerResponse$outboundSchema` instead. */ - export const outboundSchema = CreateCustomerResponse$outboundSchema; - /** @deprecated use `CreateCustomerResponse$Outbound` instead. */ - export type Outbound = CreateCustomerResponse$Outbound; -} - export function createCustomerResponseToJSON( createCustomerResponse: CreateCustomerResponse, ): string { @@ -511,7 +452,6 @@ export function createCustomerResponseToJSON( CreateCustomerResponse$outboundSchema.parse(createCustomerResponse), ); } - export function createCustomerResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/createinvoice.ts b/src/models/operations/createinvoice.ts index 9f101aa..e188aee 100644 --- a/src/models/operations/createinvoice.ts +++ b/src/models/operations/createinvoice.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -31,6 +31,11 @@ export type TemplatePaymentDetails = {}; */ export type TemplateFromDetails = {}; +/** + * Default footer notes in TipTap JSONContent format for new invoices + */ +export type TemplateNoteDetails = {}; + /** * Invoice template details */ @@ -64,11 +69,14 @@ export type Template = { sendCopy?: boolean | undefined; includeUnits?: boolean | undefined; includeQr?: boolean | undefined; - taxRate?: number | undefined; - vatRate?: number | undefined; + includeLineItemTax?: boolean | undefined; + lineItemTaxLabel?: string | undefined; + taxRate?: number | null | undefined; + vatRate?: number | null | undefined; size?: Size | undefined; deliveryType?: TemplateDeliveryType | undefined; locale?: string | undefined; + paymentEnabled?: boolean | undefined; /** * Payment details in TipTap JSONContent format */ @@ -77,6 +85,10 @@ export type Template = { * Sender details in TipTap JSONContent format */ fromDetails?: TemplateFromDetails | undefined; + /** + * Default footer notes in TipTap JSONContent format for new invoices + */ + noteDetails?: TemplateNoteDetails | undefined; }; /** @@ -115,10 +127,15 @@ export type LineItem = { price?: number | undefined; vat?: number | null | undefined; tax?: number | null | undefined; + taxRate?: number | null | undefined; /** * Line item description in TipTap JSONContent format */ name?: Name | undefined; + /** + * Optional reference to a saved product + */ + productId?: string | undefined; }; /** @@ -262,50 +279,25 @@ export type CreateInvoiceResponse = { export const Size$inboundSchema: z.ZodNativeEnum = z.nativeEnum( Size, ); - /** @internal */ export const Size$outboundSchema: z.ZodNativeEnum = Size$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Size$ { - /** @deprecated use `Size$inboundSchema` instead. */ - export const inboundSchema = Size$inboundSchema; - /** @deprecated use `Size$outboundSchema` instead. */ - export const outboundSchema = Size$outboundSchema; -} - /** @internal */ export const TemplateDeliveryType$inboundSchema: z.ZodNativeEnum< typeof TemplateDeliveryType > = z.nativeEnum(TemplateDeliveryType); - /** @internal */ export const TemplateDeliveryType$outboundSchema: z.ZodNativeEnum< typeof TemplateDeliveryType > = TemplateDeliveryType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TemplateDeliveryType$ { - /** @deprecated use `TemplateDeliveryType$inboundSchema` instead. */ - export const inboundSchema = TemplateDeliveryType$inboundSchema; - /** @deprecated use `TemplateDeliveryType$outboundSchema` instead. */ - export const outboundSchema = TemplateDeliveryType$outboundSchema; -} - /** @internal */ export const TemplatePaymentDetails$inboundSchema: z.ZodType< TemplatePaymentDetails, z.ZodTypeDef, unknown > = z.object({}); - /** @internal */ export type TemplatePaymentDetails$Outbound = {}; @@ -316,19 +308,6 @@ export const TemplatePaymentDetails$outboundSchema: z.ZodType< TemplatePaymentDetails > = z.object({}); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TemplatePaymentDetails$ { - /** @deprecated use `TemplatePaymentDetails$inboundSchema` instead. */ - export const inboundSchema = TemplatePaymentDetails$inboundSchema; - /** @deprecated use `TemplatePaymentDetails$outboundSchema` instead. */ - export const outboundSchema = TemplatePaymentDetails$outboundSchema; - /** @deprecated use `TemplatePaymentDetails$Outbound` instead. */ - export type Outbound = TemplatePaymentDetails$Outbound; -} - export function templatePaymentDetailsToJSON( templatePaymentDetails: TemplatePaymentDetails, ): string { @@ -336,7 +315,6 @@ export function templatePaymentDetailsToJSON( TemplatePaymentDetails$outboundSchema.parse(templatePaymentDetails), ); } - export function templatePaymentDetailsFromJSON( jsonString: string, ): SafeParseResult { @@ -353,7 +331,6 @@ export const TemplateFromDetails$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({}); - /** @internal */ export type TemplateFromDetails$Outbound = {}; @@ -364,19 +341,6 @@ export const TemplateFromDetails$outboundSchema: z.ZodType< TemplateFromDetails > = z.object({}); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TemplateFromDetails$ { - /** @deprecated use `TemplateFromDetails$inboundSchema` instead. */ - export const inboundSchema = TemplateFromDetails$inboundSchema; - /** @deprecated use `TemplateFromDetails$outboundSchema` instead. */ - export const outboundSchema = TemplateFromDetails$outboundSchema; - /** @deprecated use `TemplateFromDetails$Outbound` instead. */ - export type Outbound = TemplateFromDetails$Outbound; -} - export function templateFromDetailsToJSON( templateFromDetails: TemplateFromDetails, ): string { @@ -384,7 +348,6 @@ export function templateFromDetailsToJSON( TemplateFromDetails$outboundSchema.parse(templateFromDetails), ); } - export function templateFromDetailsFromJSON( jsonString: string, ): SafeParseResult { @@ -395,6 +358,39 @@ export function templateFromDetailsFromJSON( ); } +/** @internal */ +export const TemplateNoteDetails$inboundSchema: z.ZodType< + TemplateNoteDetails, + z.ZodTypeDef, + unknown +> = z.object({}); +/** @internal */ +export type TemplateNoteDetails$Outbound = {}; + +/** @internal */ +export const TemplateNoteDetails$outboundSchema: z.ZodType< + TemplateNoteDetails$Outbound, + z.ZodTypeDef, + TemplateNoteDetails +> = z.object({}); + +export function templateNoteDetailsToJSON( + templateNoteDetails: TemplateNoteDetails, +): string { + return JSON.stringify( + TemplateNoteDetails$outboundSchema.parse(templateNoteDetails), + ); +} +export function templateNoteDetailsFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => TemplateNoteDetails$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'TemplateNoteDetails' from JSON`, + ); +} + /** @internal */ export const Template$inboundSchema: z.ZodType< Template, @@ -430,15 +426,18 @@ export const Template$inboundSchema: z.ZodType< sendCopy: z.boolean().optional(), includeUnits: z.boolean().optional(), includeQr: z.boolean().optional(), - taxRate: z.number().optional(), - vatRate: z.number().optional(), + includeLineItemTax: z.boolean().optional(), + lineItemTaxLabel: z.string().optional(), + taxRate: z.nullable(z.number()).optional(), + vatRate: z.nullable(z.number()).optional(), size: Size$inboundSchema.optional(), deliveryType: TemplateDeliveryType$inboundSchema.optional(), locale: z.string().optional(), + paymentEnabled: z.boolean().optional(), paymentDetails: z.lazy(() => TemplatePaymentDetails$inboundSchema).optional(), fromDetails: z.lazy(() => TemplateFromDetails$inboundSchema).optional(), + noteDetails: z.lazy(() => TemplateNoteDetails$inboundSchema).optional(), }); - /** @internal */ export type Template$Outbound = { customerLabel?: string | undefined; @@ -470,13 +469,17 @@ export type Template$Outbound = { sendCopy?: boolean | undefined; includeUnits?: boolean | undefined; includeQr?: boolean | undefined; - taxRate?: number | undefined; - vatRate?: number | undefined; + includeLineItemTax?: boolean | undefined; + lineItemTaxLabel?: string | undefined; + taxRate?: number | null | undefined; + vatRate?: number | null | undefined; size?: string | undefined; deliveryType?: string | undefined; locale?: string | undefined; + paymentEnabled?: boolean | undefined; paymentDetails?: TemplatePaymentDetails$Outbound | undefined; fromDetails?: TemplateFromDetails$Outbound | undefined; + noteDetails?: TemplateNoteDetails$Outbound | undefined; }; /** @internal */ @@ -514,33 +517,23 @@ export const Template$outboundSchema: z.ZodType< sendCopy: z.boolean().optional(), includeUnits: z.boolean().optional(), includeQr: z.boolean().optional(), - taxRate: z.number().optional(), - vatRate: z.number().optional(), + includeLineItemTax: z.boolean().optional(), + lineItemTaxLabel: z.string().optional(), + taxRate: z.nullable(z.number()).optional(), + vatRate: z.nullable(z.number()).optional(), size: Size$outboundSchema.optional(), deliveryType: TemplateDeliveryType$outboundSchema.optional(), locale: z.string().optional(), + paymentEnabled: z.boolean().optional(), paymentDetails: z.lazy(() => TemplatePaymentDetails$outboundSchema) .optional(), fromDetails: z.lazy(() => TemplateFromDetails$outboundSchema).optional(), + noteDetails: z.lazy(() => TemplateNoteDetails$outboundSchema).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Template$ { - /** @deprecated use `Template$inboundSchema` instead. */ - export const inboundSchema = Template$inboundSchema; - /** @deprecated use `Template$outboundSchema` instead. */ - export const outboundSchema = Template$outboundSchema; - /** @deprecated use `Template$Outbound` instead. */ - export type Outbound = Template$Outbound; -} - export function templateToJSON(template: Template): string { return JSON.stringify(Template$outboundSchema.parse(template)); } - export function templateFromJSON( jsonString: string, ): SafeParseResult { @@ -557,7 +550,6 @@ export const FromDetails$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({}); - /** @internal */ export type FromDetails$Outbound = {}; @@ -568,23 +560,9 @@ export const FromDetails$outboundSchema: z.ZodType< FromDetails > = z.object({}); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FromDetails$ { - /** @deprecated use `FromDetails$inboundSchema` instead. */ - export const inboundSchema = FromDetails$inboundSchema; - /** @deprecated use `FromDetails$outboundSchema` instead. */ - export const outboundSchema = FromDetails$outboundSchema; - /** @deprecated use `FromDetails$Outbound` instead. */ - export type Outbound = FromDetails$Outbound; -} - export function fromDetailsToJSON(fromDetails: FromDetails): string { return JSON.stringify(FromDetails$outboundSchema.parse(fromDetails)); } - export function fromDetailsFromJSON( jsonString: string, ): SafeParseResult { @@ -601,7 +579,6 @@ export const PaymentDetails$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({}); - /** @internal */ export type PaymentDetails$Outbound = {}; @@ -612,23 +589,9 @@ export const PaymentDetails$outboundSchema: z.ZodType< PaymentDetails > = z.object({}); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PaymentDetails$ { - /** @deprecated use `PaymentDetails$inboundSchema` instead. */ - export const inboundSchema = PaymentDetails$inboundSchema; - /** @deprecated use `PaymentDetails$outboundSchema` instead. */ - export const outboundSchema = PaymentDetails$outboundSchema; - /** @deprecated use `PaymentDetails$Outbound` instead. */ - export type Outbound = PaymentDetails$Outbound; -} - export function paymentDetailsToJSON(paymentDetails: PaymentDetails): string { return JSON.stringify(PaymentDetails$outboundSchema.parse(paymentDetails)); } - export function paymentDetailsFromJSON( jsonString: string, ): SafeParseResult { @@ -645,7 +608,6 @@ export const NoteDetails$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({}); - /** @internal */ export type NoteDetails$Outbound = {}; @@ -656,23 +618,9 @@ export const NoteDetails$outboundSchema: z.ZodType< NoteDetails > = z.object({}); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NoteDetails$ { - /** @deprecated use `NoteDetails$inboundSchema` instead. */ - export const inboundSchema = NoteDetails$inboundSchema; - /** @deprecated use `NoteDetails$outboundSchema` instead. */ - export const outboundSchema = NoteDetails$outboundSchema; - /** @deprecated use `NoteDetails$Outbound` instead. */ - export type Outbound = NoteDetails$Outbound; -} - export function noteDetailsToJSON(noteDetails: NoteDetails): string { return JSON.stringify(NoteDetails$outboundSchema.parse(noteDetails)); } - export function noteDetailsFromJSON( jsonString: string, ): SafeParseResult { @@ -689,7 +637,6 @@ export const TopBlock$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({}); - /** @internal */ export type TopBlock$Outbound = {}; @@ -700,23 +647,9 @@ export const TopBlock$outboundSchema: z.ZodType< TopBlock > = z.object({}); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TopBlock$ { - /** @deprecated use `TopBlock$inboundSchema` instead. */ - export const inboundSchema = TopBlock$inboundSchema; - /** @deprecated use `TopBlock$outboundSchema` instead. */ - export const outboundSchema = TopBlock$outboundSchema; - /** @deprecated use `TopBlock$Outbound` instead. */ - export type Outbound = TopBlock$Outbound; -} - export function topBlockToJSON(topBlock: TopBlock): string { return JSON.stringify(TopBlock$outboundSchema.parse(topBlock)); } - export function topBlockFromJSON( jsonString: string, ): SafeParseResult { @@ -733,7 +666,6 @@ export const BottomBlock$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({}); - /** @internal */ export type BottomBlock$Outbound = {}; @@ -744,23 +676,9 @@ export const BottomBlock$outboundSchema: z.ZodType< BottomBlock > = z.object({}); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BottomBlock$ { - /** @deprecated use `BottomBlock$inboundSchema` instead. */ - export const inboundSchema = BottomBlock$inboundSchema; - /** @deprecated use `BottomBlock$outboundSchema` instead. */ - export const outboundSchema = BottomBlock$outboundSchema; - /** @deprecated use `BottomBlock$Outbound` instead. */ - export type Outbound = BottomBlock$Outbound; -} - export function bottomBlockToJSON(bottomBlock: BottomBlock): string { return JSON.stringify(BottomBlock$outboundSchema.parse(bottomBlock)); } - export function bottomBlockFromJSON( jsonString: string, ): SafeParseResult { @@ -774,7 +692,6 @@ export function bottomBlockFromJSON( /** @internal */ export const Name$inboundSchema: z.ZodType = z .object({}); - /** @internal */ export type Name$Outbound = {}; @@ -782,23 +699,9 @@ export type Name$Outbound = {}; export const Name$outboundSchema: z.ZodType = z.object({}); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Name$ { - /** @deprecated use `Name$inboundSchema` instead. */ - export const inboundSchema = Name$inboundSchema; - /** @deprecated use `Name$outboundSchema` instead. */ - export const outboundSchema = Name$outboundSchema; - /** @deprecated use `Name$Outbound` instead. */ - export type Outbound = Name$Outbound; -} - export function nameToJSON(name: Name): string { return JSON.stringify(Name$outboundSchema.parse(name)); } - export function nameFromJSON( jsonString: string, ): SafeParseResult { @@ -820,9 +723,10 @@ export const LineItem$inboundSchema: z.ZodType< price: z.number().optional(), vat: z.nullable(z.number()).optional(), tax: z.nullable(z.number()).optional(), + taxRate: z.nullable(z.number()).optional(), name: z.lazy(() => Name$inboundSchema).optional(), + productId: z.string().optional(), }); - /** @internal */ export type LineItem$Outbound = { quantity?: number | undefined; @@ -830,7 +734,9 @@ export type LineItem$Outbound = { price?: number | undefined; vat?: number | null | undefined; tax?: number | null | undefined; + taxRate?: number | null | undefined; name?: Name$Outbound | undefined; + productId?: string | undefined; }; /** @internal */ @@ -844,26 +750,14 @@ export const LineItem$outboundSchema: z.ZodType< price: z.number().optional(), vat: z.nullable(z.number()).optional(), tax: z.nullable(z.number()).optional(), + taxRate: z.nullable(z.number()).optional(), name: z.lazy(() => Name$outboundSchema).optional(), + productId: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LineItem$ { - /** @deprecated use `LineItem$inboundSchema` instead. */ - export const inboundSchema = LineItem$inboundSchema; - /** @deprecated use `LineItem$outboundSchema` instead. */ - export const outboundSchema = LineItem$outboundSchema; - /** @deprecated use `LineItem$Outbound` instead. */ - export type Outbound = LineItem$Outbound; -} - export function lineItemToJSON(lineItem: LineItem): string { return JSON.stringify(LineItem$outboundSchema.parse(lineItem)); } - export function lineItemFromJSON( jsonString: string, ): SafeParseResult { @@ -877,22 +771,10 @@ export function lineItemFromJSON( /** @internal */ export const DeliveryType$inboundSchema: z.ZodNativeEnum = z.nativeEnum(DeliveryType); - /** @internal */ export const DeliveryType$outboundSchema: z.ZodNativeEnum = DeliveryType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeliveryType$ { - /** @deprecated use `DeliveryType$inboundSchema` instead. */ - export const inboundSchema = DeliveryType$inboundSchema; - /** @deprecated use `DeliveryType$outboundSchema` instead. */ - export const outboundSchema = DeliveryType$outboundSchema; -} - /** @internal */ export const CreateInvoiceRequest$inboundSchema: z.ZodType< CreateInvoiceRequest, @@ -919,7 +801,6 @@ export const CreateInvoiceRequest$inboundSchema: z.ZodType< scheduledAt: z.string().datetime({ offset: true }).transform(v => new Date(v)) .optional(), }); - /** @internal */ export type CreateInvoiceRequest$Outbound = { template: Template$Outbound; @@ -968,19 +849,6 @@ export const CreateInvoiceRequest$outboundSchema: z.ZodType< scheduledAt: z.date().transform(v => v.toISOString()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateInvoiceRequest$ { - /** @deprecated use `CreateInvoiceRequest$inboundSchema` instead. */ - export const inboundSchema = CreateInvoiceRequest$inboundSchema; - /** @deprecated use `CreateInvoiceRequest$outboundSchema` instead. */ - export const outboundSchema = CreateInvoiceRequest$outboundSchema; - /** @deprecated use `CreateInvoiceRequest$Outbound` instead. */ - export type Outbound = CreateInvoiceRequest$Outbound; -} - export function createInvoiceRequestToJSON( createInvoiceRequest: CreateInvoiceRequest, ): string { @@ -988,7 +856,6 @@ export function createInvoiceRequestToJSON( CreateInvoiceRequest$outboundSchema.parse(createInvoiceRequest), ); } - export function createInvoiceRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -1003,23 +870,11 @@ export function createInvoiceRequestFromJSON( export const CreateInvoiceStatus$inboundSchema: z.ZodNativeEnum< typeof CreateInvoiceStatus > = z.nativeEnum(CreateInvoiceStatus); - /** @internal */ export const CreateInvoiceStatus$outboundSchema: z.ZodNativeEnum< typeof CreateInvoiceStatus > = CreateInvoiceStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateInvoiceStatus$ { - /** @deprecated use `CreateInvoiceStatus$inboundSchema` instead. */ - export const inboundSchema = CreateInvoiceStatus$inboundSchema; - /** @deprecated use `CreateInvoiceStatus$outboundSchema` instead. */ - export const outboundSchema = CreateInvoiceStatus$outboundSchema; -} - /** @internal */ export const CreateInvoiceResponse$inboundSchema: z.ZodType< CreateInvoiceResponse, @@ -1033,7 +888,6 @@ export const CreateInvoiceResponse$inboundSchema: z.ZodType< pdfUrl: z.nullable(z.string()), previewUrl: z.nullable(z.string()), }); - /** @internal */ export type CreateInvoiceResponse$Outbound = { id: string; @@ -1058,19 +912,6 @@ export const CreateInvoiceResponse$outboundSchema: z.ZodType< previewUrl: z.nullable(z.string()), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateInvoiceResponse$ { - /** @deprecated use `CreateInvoiceResponse$inboundSchema` instead. */ - export const inboundSchema = CreateInvoiceResponse$inboundSchema; - /** @deprecated use `CreateInvoiceResponse$outboundSchema` instead. */ - export const outboundSchema = CreateInvoiceResponse$outboundSchema; - /** @deprecated use `CreateInvoiceResponse$Outbound` instead. */ - export type Outbound = CreateInvoiceResponse$Outbound; -} - export function createInvoiceResponseToJSON( createInvoiceResponse: CreateInvoiceResponse, ): string { @@ -1078,7 +919,6 @@ export function createInvoiceResponseToJSON( CreateInvoiceResponse$outboundSchema.parse(createInvoiceResponse), ); } - export function createInvoiceResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/createinvoicepaymentintent.ts b/src/models/operations/createinvoicepaymentintent.ts new file mode 100644 index 0000000..c501f7e --- /dev/null +++ b/src/models/operations/createinvoicepaymentintent.ts @@ -0,0 +1,117 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +export type CreateInvoicePaymentIntentRequest = { + /** + * Invoice token for authentication + */ + token: string; +}; + +/** + * Payment intent created + */ +export type CreateInvoicePaymentIntentResponse = { + clientSecret: string; + amount: number; + currency: string; + stripeAccountId: string; +}; + +/** @internal */ +export const CreateInvoicePaymentIntentRequest$inboundSchema: z.ZodType< + CreateInvoicePaymentIntentRequest, + z.ZodTypeDef, + unknown +> = z.object({ + token: z.string(), +}); +/** @internal */ +export type CreateInvoicePaymentIntentRequest$Outbound = { + token: string; +}; + +/** @internal */ +export const CreateInvoicePaymentIntentRequest$outboundSchema: z.ZodType< + CreateInvoicePaymentIntentRequest$Outbound, + z.ZodTypeDef, + CreateInvoicePaymentIntentRequest +> = z.object({ + token: z.string(), +}); + +export function createInvoicePaymentIntentRequestToJSON( + createInvoicePaymentIntentRequest: CreateInvoicePaymentIntentRequest, +): string { + return JSON.stringify( + CreateInvoicePaymentIntentRequest$outboundSchema.parse( + createInvoicePaymentIntentRequest, + ), + ); +} +export function createInvoicePaymentIntentRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateInvoicePaymentIntentRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateInvoicePaymentIntentRequest' from JSON`, + ); +} + +/** @internal */ +export const CreateInvoicePaymentIntentResponse$inboundSchema: z.ZodType< + CreateInvoicePaymentIntentResponse, + z.ZodTypeDef, + unknown +> = z.object({ + clientSecret: z.string(), + amount: z.number(), + currency: z.string(), + stripeAccountId: z.string(), +}); +/** @internal */ +export type CreateInvoicePaymentIntentResponse$Outbound = { + clientSecret: string; + amount: number; + currency: string; + stripeAccountId: string; +}; + +/** @internal */ +export const CreateInvoicePaymentIntentResponse$outboundSchema: z.ZodType< + CreateInvoicePaymentIntentResponse$Outbound, + z.ZodTypeDef, + CreateInvoicePaymentIntentResponse +> = z.object({ + clientSecret: z.string(), + amount: z.number(), + currency: z.string(), + stripeAccountId: z.string(), +}); + +export function createInvoicePaymentIntentResponseToJSON( + createInvoicePaymentIntentResponse: CreateInvoicePaymentIntentResponse, +): string { + return JSON.stringify( + CreateInvoicePaymentIntentResponse$outboundSchema.parse( + createInvoicePaymentIntentResponse, + ), + ); +} +export function createInvoicePaymentIntentResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + CreateInvoicePaymentIntentResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateInvoicePaymentIntentResponse' from JSON`, + ); +} diff --git a/src/models/operations/createtrackerentriesbulk.ts b/src/models/operations/createtrackerentriesbulk.ts index 1727ecf..5e7ce70 100644 --- a/src/models/operations/createtrackerentriesbulk.ts +++ b/src/models/operations/createtrackerentriesbulk.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -199,7 +199,6 @@ export const Entry$inboundSchema: z.ZodType = z description: z.nullable(z.string()).optional(), duration: z.number(), }); - /** @internal */ export type Entry$Outbound = { start: string; @@ -226,23 +225,9 @@ export const Entry$outboundSchema: z.ZodType< duration: z.number(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Entry$ { - /** @deprecated use `Entry$inboundSchema` instead. */ - export const inboundSchema = Entry$inboundSchema; - /** @deprecated use `Entry$outboundSchema` instead. */ - export const outboundSchema = Entry$outboundSchema; - /** @deprecated use `Entry$Outbound` instead. */ - export type Outbound = Entry$Outbound; -} - export function entryToJSON(entry: Entry): string { return JSON.stringify(Entry$outboundSchema.parse(entry)); } - export function entryFromJSON( jsonString: string, ): SafeParseResult { @@ -261,7 +246,6 @@ export const CreateTrackerEntriesBulkRequest$inboundSchema: z.ZodType< > = z.object({ entries: z.array(z.lazy(() => Entry$inboundSchema)), }); - /** @internal */ export type CreateTrackerEntriesBulkRequest$Outbound = { entries: Array; @@ -276,19 +260,6 @@ export const CreateTrackerEntriesBulkRequest$outboundSchema: z.ZodType< entries: z.array(z.lazy(() => Entry$outboundSchema)), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateTrackerEntriesBulkRequest$ { - /** @deprecated use `CreateTrackerEntriesBulkRequest$inboundSchema` instead. */ - export const inboundSchema = CreateTrackerEntriesBulkRequest$inboundSchema; - /** @deprecated use `CreateTrackerEntriesBulkRequest$outboundSchema` instead. */ - export const outboundSchema = CreateTrackerEntriesBulkRequest$outboundSchema; - /** @deprecated use `CreateTrackerEntriesBulkRequest$Outbound` instead. */ - export type Outbound = CreateTrackerEntriesBulkRequest$Outbound; -} - export function createTrackerEntriesBulkRequestToJSON( createTrackerEntriesBulkRequest: CreateTrackerEntriesBulkRequest, ): string { @@ -298,7 +269,6 @@ export function createTrackerEntriesBulkRequestToJSON( ), ); } - export function createTrackerEntriesBulkRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -319,7 +289,6 @@ export const CreateTrackerEntriesBulkUser$inboundSchema: z.ZodType< fullName: z.string(), avatarUrl: z.string(), }); - /** @internal */ export type CreateTrackerEntriesBulkUser$Outbound = { id: string; @@ -338,19 +307,6 @@ export const CreateTrackerEntriesBulkUser$outboundSchema: z.ZodType< avatarUrl: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateTrackerEntriesBulkUser$ { - /** @deprecated use `CreateTrackerEntriesBulkUser$inboundSchema` instead. */ - export const inboundSchema = CreateTrackerEntriesBulkUser$inboundSchema; - /** @deprecated use `CreateTrackerEntriesBulkUser$outboundSchema` instead. */ - export const outboundSchema = CreateTrackerEntriesBulkUser$outboundSchema; - /** @deprecated use `CreateTrackerEntriesBulkUser$Outbound` instead. */ - export type Outbound = CreateTrackerEntriesBulkUser$Outbound; -} - export function createTrackerEntriesBulkUserToJSON( createTrackerEntriesBulkUser: CreateTrackerEntriesBulkUser, ): string { @@ -360,7 +316,6 @@ export function createTrackerEntriesBulkUserToJSON( ), ); } - export function createTrackerEntriesBulkUserFromJSON( jsonString: string, ): SafeParseResult { @@ -380,7 +335,6 @@ export const CreateTrackerEntriesBulkCustomer$inboundSchema: z.ZodType< id: z.string(), name: z.string(), }); - /** @internal */ export type CreateTrackerEntriesBulkCustomer$Outbound = { id: string; @@ -397,19 +351,6 @@ export const CreateTrackerEntriesBulkCustomer$outboundSchema: z.ZodType< name: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateTrackerEntriesBulkCustomer$ { - /** @deprecated use `CreateTrackerEntriesBulkCustomer$inboundSchema` instead. */ - export const inboundSchema = CreateTrackerEntriesBulkCustomer$inboundSchema; - /** @deprecated use `CreateTrackerEntriesBulkCustomer$outboundSchema` instead. */ - export const outboundSchema = CreateTrackerEntriesBulkCustomer$outboundSchema; - /** @deprecated use `CreateTrackerEntriesBulkCustomer$Outbound` instead. */ - export type Outbound = CreateTrackerEntriesBulkCustomer$Outbound; -} - export function createTrackerEntriesBulkCustomerToJSON( createTrackerEntriesBulkCustomer: CreateTrackerEntriesBulkCustomer, ): string { @@ -419,7 +360,6 @@ export function createTrackerEntriesBulkCustomerToJSON( ), ); } - export function createTrackerEntriesBulkCustomerFromJSON( jsonString: string, ): SafeParseResult { @@ -449,7 +389,6 @@ export const CreateTrackerEntriesBulkProject$inboundSchema: z.ZodType< z.lazy(() => CreateTrackerEntriesBulkCustomer$inboundSchema), ), }); - /** @internal */ export type CreateTrackerEntriesBulkProject$Outbound = { id: string; @@ -484,19 +423,6 @@ export const CreateTrackerEntriesBulkProject$outboundSchema: z.ZodType< ), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateTrackerEntriesBulkProject$ { - /** @deprecated use `CreateTrackerEntriesBulkProject$inboundSchema` instead. */ - export const inboundSchema = CreateTrackerEntriesBulkProject$inboundSchema; - /** @deprecated use `CreateTrackerEntriesBulkProject$outboundSchema` instead. */ - export const outboundSchema = CreateTrackerEntriesBulkProject$outboundSchema; - /** @deprecated use `CreateTrackerEntriesBulkProject$Outbound` instead. */ - export type Outbound = CreateTrackerEntriesBulkProject$Outbound; -} - export function createTrackerEntriesBulkProjectToJSON( createTrackerEntriesBulkProject: CreateTrackerEntriesBulkProject, ): string { @@ -506,7 +432,6 @@ export function createTrackerEntriesBulkProjectToJSON( ), ); } - export function createTrackerEntriesBulkProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -537,7 +462,6 @@ export const CreateTrackerEntriesBulkData$inboundSchema: z.ZodType< user: z.lazy(() => CreateTrackerEntriesBulkUser$inboundSchema), project: z.lazy(() => CreateTrackerEntriesBulkProject$inboundSchema), }); - /** @internal */ export type CreateTrackerEntriesBulkData$Outbound = { id: string; @@ -576,19 +500,6 @@ export const CreateTrackerEntriesBulkData$outboundSchema: z.ZodType< project: z.lazy(() => CreateTrackerEntriesBulkProject$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateTrackerEntriesBulkData$ { - /** @deprecated use `CreateTrackerEntriesBulkData$inboundSchema` instead. */ - export const inboundSchema = CreateTrackerEntriesBulkData$inboundSchema; - /** @deprecated use `CreateTrackerEntriesBulkData$outboundSchema` instead. */ - export const outboundSchema = CreateTrackerEntriesBulkData$outboundSchema; - /** @deprecated use `CreateTrackerEntriesBulkData$Outbound` instead. */ - export type Outbound = CreateTrackerEntriesBulkData$Outbound; -} - export function createTrackerEntriesBulkDataToJSON( createTrackerEntriesBulkData: CreateTrackerEntriesBulkData, ): string { @@ -598,7 +509,6 @@ export function createTrackerEntriesBulkDataToJSON( ), ); } - export function createTrackerEntriesBulkDataFromJSON( jsonString: string, ): SafeParseResult { @@ -617,7 +527,6 @@ export const CreateTrackerEntriesBulkResponse$inboundSchema: z.ZodType< > = z.object({ data: z.array(z.lazy(() => CreateTrackerEntriesBulkData$inboundSchema)), }); - /** @internal */ export type CreateTrackerEntriesBulkResponse$Outbound = { data: Array; @@ -632,19 +541,6 @@ export const CreateTrackerEntriesBulkResponse$outboundSchema: z.ZodType< data: z.array(z.lazy(() => CreateTrackerEntriesBulkData$outboundSchema)), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateTrackerEntriesBulkResponse$ { - /** @deprecated use `CreateTrackerEntriesBulkResponse$inboundSchema` instead. */ - export const inboundSchema = CreateTrackerEntriesBulkResponse$inboundSchema; - /** @deprecated use `CreateTrackerEntriesBulkResponse$outboundSchema` instead. */ - export const outboundSchema = CreateTrackerEntriesBulkResponse$outboundSchema; - /** @deprecated use `CreateTrackerEntriesBulkResponse$Outbound` instead. */ - export type Outbound = CreateTrackerEntriesBulkResponse$Outbound; -} - export function createTrackerEntriesBulkResponseToJSON( createTrackerEntriesBulkResponse: CreateTrackerEntriesBulkResponse, ): string { @@ -654,7 +550,6 @@ export function createTrackerEntriesBulkResponseToJSON( ), ); } - export function createTrackerEntriesBulkResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/createtrackerentry.ts b/src/models/operations/createtrackerentry.ts index ba97eac..e7c4007 100644 --- a/src/models/operations/createtrackerentry.ts +++ b/src/models/operations/createtrackerentry.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -195,7 +195,6 @@ export const CreateTrackerEntryRequest$inboundSchema: z.ZodType< description: z.nullable(z.string()).optional(), duration: z.number(), }); - /** @internal */ export type CreateTrackerEntryRequest$Outbound = { start: string; @@ -222,19 +221,6 @@ export const CreateTrackerEntryRequest$outboundSchema: z.ZodType< duration: z.number(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateTrackerEntryRequest$ { - /** @deprecated use `CreateTrackerEntryRequest$inboundSchema` instead. */ - export const inboundSchema = CreateTrackerEntryRequest$inboundSchema; - /** @deprecated use `CreateTrackerEntryRequest$outboundSchema` instead. */ - export const outboundSchema = CreateTrackerEntryRequest$outboundSchema; - /** @deprecated use `CreateTrackerEntryRequest$Outbound` instead. */ - export type Outbound = CreateTrackerEntryRequest$Outbound; -} - export function createTrackerEntryRequestToJSON( createTrackerEntryRequest: CreateTrackerEntryRequest, ): string { @@ -242,7 +228,6 @@ export function createTrackerEntryRequestToJSON( CreateTrackerEntryRequest$outboundSchema.parse(createTrackerEntryRequest), ); } - export function createTrackerEntryRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -263,7 +248,6 @@ export const CreateTrackerEntryUser$inboundSchema: z.ZodType< fullName: z.string(), avatarUrl: z.string(), }); - /** @internal */ export type CreateTrackerEntryUser$Outbound = { id: string; @@ -282,19 +266,6 @@ export const CreateTrackerEntryUser$outboundSchema: z.ZodType< avatarUrl: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateTrackerEntryUser$ { - /** @deprecated use `CreateTrackerEntryUser$inboundSchema` instead. */ - export const inboundSchema = CreateTrackerEntryUser$inboundSchema; - /** @deprecated use `CreateTrackerEntryUser$outboundSchema` instead. */ - export const outboundSchema = CreateTrackerEntryUser$outboundSchema; - /** @deprecated use `CreateTrackerEntryUser$Outbound` instead. */ - export type Outbound = CreateTrackerEntryUser$Outbound; -} - export function createTrackerEntryUserToJSON( createTrackerEntryUser: CreateTrackerEntryUser, ): string { @@ -302,7 +273,6 @@ export function createTrackerEntryUserToJSON( CreateTrackerEntryUser$outboundSchema.parse(createTrackerEntryUser), ); } - export function createTrackerEntryUserFromJSON( jsonString: string, ): SafeParseResult { @@ -322,7 +292,6 @@ export const CreateTrackerEntryCustomer$inboundSchema: z.ZodType< id: z.string(), name: z.string(), }); - /** @internal */ export type CreateTrackerEntryCustomer$Outbound = { id: string; @@ -339,19 +308,6 @@ export const CreateTrackerEntryCustomer$outboundSchema: z.ZodType< name: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateTrackerEntryCustomer$ { - /** @deprecated use `CreateTrackerEntryCustomer$inboundSchema` instead. */ - export const inboundSchema = CreateTrackerEntryCustomer$inboundSchema; - /** @deprecated use `CreateTrackerEntryCustomer$outboundSchema` instead. */ - export const outboundSchema = CreateTrackerEntryCustomer$outboundSchema; - /** @deprecated use `CreateTrackerEntryCustomer$Outbound` instead. */ - export type Outbound = CreateTrackerEntryCustomer$Outbound; -} - export function createTrackerEntryCustomerToJSON( createTrackerEntryCustomer: CreateTrackerEntryCustomer, ): string { @@ -359,7 +315,6 @@ export function createTrackerEntryCustomerToJSON( CreateTrackerEntryCustomer$outboundSchema.parse(createTrackerEntryCustomer), ); } - export function createTrackerEntryCustomerFromJSON( jsonString: string, ): SafeParseResult { @@ -387,7 +342,6 @@ export const CreateTrackerEntryProject$inboundSchema: z.ZodType< estimate: z.nullable(z.number()), customer: z.nullable(z.lazy(() => CreateTrackerEntryCustomer$inboundSchema)), }); - /** @internal */ export type CreateTrackerEntryProject$Outbound = { id: string; @@ -420,19 +374,6 @@ export const CreateTrackerEntryProject$outboundSchema: z.ZodType< customer: z.nullable(z.lazy(() => CreateTrackerEntryCustomer$outboundSchema)), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateTrackerEntryProject$ { - /** @deprecated use `CreateTrackerEntryProject$inboundSchema` instead. */ - export const inboundSchema = CreateTrackerEntryProject$inboundSchema; - /** @deprecated use `CreateTrackerEntryProject$outboundSchema` instead. */ - export const outboundSchema = CreateTrackerEntryProject$outboundSchema; - /** @deprecated use `CreateTrackerEntryProject$Outbound` instead. */ - export type Outbound = CreateTrackerEntryProject$Outbound; -} - export function createTrackerEntryProjectToJSON( createTrackerEntryProject: CreateTrackerEntryProject, ): string { @@ -440,7 +381,6 @@ export function createTrackerEntryProjectToJSON( CreateTrackerEntryProject$outboundSchema.parse(createTrackerEntryProject), ); } - export function createTrackerEntryProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -471,7 +411,6 @@ export const CreateTrackerEntryData$inboundSchema: z.ZodType< user: z.lazy(() => CreateTrackerEntryUser$inboundSchema), project: z.lazy(() => CreateTrackerEntryProject$inboundSchema), }); - /** @internal */ export type CreateTrackerEntryData$Outbound = { id: string; @@ -510,19 +449,6 @@ export const CreateTrackerEntryData$outboundSchema: z.ZodType< project: z.lazy(() => CreateTrackerEntryProject$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateTrackerEntryData$ { - /** @deprecated use `CreateTrackerEntryData$inboundSchema` instead. */ - export const inboundSchema = CreateTrackerEntryData$inboundSchema; - /** @deprecated use `CreateTrackerEntryData$outboundSchema` instead. */ - export const outboundSchema = CreateTrackerEntryData$outboundSchema; - /** @deprecated use `CreateTrackerEntryData$Outbound` instead. */ - export type Outbound = CreateTrackerEntryData$Outbound; -} - export function createTrackerEntryDataToJSON( createTrackerEntryData: CreateTrackerEntryData, ): string { @@ -530,7 +456,6 @@ export function createTrackerEntryDataToJSON( CreateTrackerEntryData$outboundSchema.parse(createTrackerEntryData), ); } - export function createTrackerEntryDataFromJSON( jsonString: string, ): SafeParseResult { @@ -549,7 +474,6 @@ export const CreateTrackerEntryResponse$inboundSchema: z.ZodType< > = z.object({ data: z.array(z.lazy(() => CreateTrackerEntryData$inboundSchema)), }); - /** @internal */ export type CreateTrackerEntryResponse$Outbound = { data: Array; @@ -564,19 +488,6 @@ export const CreateTrackerEntryResponse$outboundSchema: z.ZodType< data: z.array(z.lazy(() => CreateTrackerEntryData$outboundSchema)), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateTrackerEntryResponse$ { - /** @deprecated use `CreateTrackerEntryResponse$inboundSchema` instead. */ - export const inboundSchema = CreateTrackerEntryResponse$inboundSchema; - /** @deprecated use `CreateTrackerEntryResponse$outboundSchema` instead. */ - export const outboundSchema = CreateTrackerEntryResponse$outboundSchema; - /** @deprecated use `CreateTrackerEntryResponse$Outbound` instead. */ - export type Outbound = CreateTrackerEntryResponse$Outbound; -} - export function createTrackerEntryResponseToJSON( createTrackerEntryResponse: CreateTrackerEntryResponse, ): string { @@ -584,7 +495,6 @@ export function createTrackerEntryResponseToJSON( CreateTrackerEntryResponse$outboundSchema.parse(createTrackerEntryResponse), ); } - export function createTrackerEntryResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/createtrackerproject.ts b/src/models/operations/createtrackerproject.ts index d8911ee..7392f70 100644 --- a/src/models/operations/createtrackerproject.ts +++ b/src/models/operations/createtrackerproject.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -79,23 +79,11 @@ export type CreateTrackerProjectRequest = { export const CreateTrackerProjectStatus$inboundSchema: z.ZodNativeEnum< typeof CreateTrackerProjectStatus > = z.nativeEnum(CreateTrackerProjectStatus); - /** @internal */ export const CreateTrackerProjectStatus$outboundSchema: z.ZodNativeEnum< typeof CreateTrackerProjectStatus > = CreateTrackerProjectStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateTrackerProjectStatus$ { - /** @deprecated use `CreateTrackerProjectStatus$inboundSchema` instead. */ - export const inboundSchema = CreateTrackerProjectStatus$inboundSchema; - /** @deprecated use `CreateTrackerProjectStatus$outboundSchema` instead. */ - export const outboundSchema = CreateTrackerProjectStatus$outboundSchema; -} - /** @internal */ export const CreateTrackerProjectTag$inboundSchema: z.ZodType< CreateTrackerProjectTag, @@ -105,7 +93,6 @@ export const CreateTrackerProjectTag$inboundSchema: z.ZodType< id: z.string(), value: z.string(), }); - /** @internal */ export type CreateTrackerProjectTag$Outbound = { id: string; @@ -122,19 +109,6 @@ export const CreateTrackerProjectTag$outboundSchema: z.ZodType< value: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateTrackerProjectTag$ { - /** @deprecated use `CreateTrackerProjectTag$inboundSchema` instead. */ - export const inboundSchema = CreateTrackerProjectTag$inboundSchema; - /** @deprecated use `CreateTrackerProjectTag$outboundSchema` instead. */ - export const outboundSchema = CreateTrackerProjectTag$outboundSchema; - /** @deprecated use `CreateTrackerProjectTag$Outbound` instead. */ - export type Outbound = CreateTrackerProjectTag$Outbound; -} - export function createTrackerProjectTagToJSON( createTrackerProjectTag: CreateTrackerProjectTag, ): string { @@ -142,7 +116,6 @@ export function createTrackerProjectTagToJSON( CreateTrackerProjectTag$outboundSchema.parse(createTrackerProjectTag), ); } - export function createTrackerProjectTagFromJSON( jsonString: string, ): SafeParseResult { @@ -170,7 +143,6 @@ export const CreateTrackerProjectRequest$inboundSchema: z.ZodType< tags: z.nullable(z.array(z.lazy(() => CreateTrackerProjectTag$inboundSchema))) .optional(), }); - /** @internal */ export type CreateTrackerProjectRequest$Outbound = { name: string; @@ -203,19 +175,6 @@ export const CreateTrackerProjectRequest$outboundSchema: z.ZodType< ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateTrackerProjectRequest$ { - /** @deprecated use `CreateTrackerProjectRequest$inboundSchema` instead. */ - export const inboundSchema = CreateTrackerProjectRequest$inboundSchema; - /** @deprecated use `CreateTrackerProjectRequest$outboundSchema` instead. */ - export const outboundSchema = CreateTrackerProjectRequest$outboundSchema; - /** @deprecated use `CreateTrackerProjectRequest$Outbound` instead. */ - export type Outbound = CreateTrackerProjectRequest$Outbound; -} - export function createTrackerProjectRequestToJSON( createTrackerProjectRequest: CreateTrackerProjectRequest, ): string { @@ -225,7 +184,6 @@ export function createTrackerProjectRequestToJSON( ), ); } - export function createTrackerProjectRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/createtransaction.ts b/src/models/operations/createtransaction.ts index cf262db..54ed803 100644 --- a/src/models/operations/createtransaction.ts +++ b/src/models/operations/createtransaction.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -80,7 +80,6 @@ export const CreateTransactionAttachment$inboundSchema: z.ZodType< size: z.number(), type: z.string(), }); - /** @internal */ export type CreateTransactionAttachment$Outbound = { path: Array; @@ -101,19 +100,6 @@ export const CreateTransactionAttachment$outboundSchema: z.ZodType< type: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateTransactionAttachment$ { - /** @deprecated use `CreateTransactionAttachment$inboundSchema` instead. */ - export const inboundSchema = CreateTransactionAttachment$inboundSchema; - /** @deprecated use `CreateTransactionAttachment$outboundSchema` instead. */ - export const outboundSchema = CreateTransactionAttachment$outboundSchema; - /** @deprecated use `CreateTransactionAttachment$Outbound` instead. */ - export type Outbound = CreateTransactionAttachment$Outbound; -} - export function createTransactionAttachmentToJSON( createTransactionAttachment: CreateTransactionAttachment, ): string { @@ -123,7 +109,6 @@ export function createTransactionAttachmentToJSON( ), ); } - export function createTransactionAttachmentFromJSON( jsonString: string, ): SafeParseResult { @@ -152,7 +137,6 @@ export const CreateTransactionRequest$inboundSchema: z.ZodType< attachments: z.array(z.lazy(() => CreateTransactionAttachment$inboundSchema)) .optional(), }); - /** @internal */ export type CreateTransactionRequest$Outbound = { name: string; @@ -186,19 +170,6 @@ export const CreateTransactionRequest$outboundSchema: z.ZodType< .optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateTransactionRequest$ { - /** @deprecated use `CreateTransactionRequest$inboundSchema` instead. */ - export const inboundSchema = CreateTransactionRequest$inboundSchema; - /** @deprecated use `CreateTransactionRequest$outboundSchema` instead. */ - export const outboundSchema = CreateTransactionRequest$outboundSchema; - /** @deprecated use `CreateTransactionRequest$Outbound` instead. */ - export type Outbound = CreateTransactionRequest$Outbound; -} - export function createTransactionRequestToJSON( createTransactionRequest: CreateTransactionRequest, ): string { @@ -206,7 +177,6 @@ export function createTransactionRequestToJSON( CreateTransactionRequest$outboundSchema.parse(createTransactionRequest), ); } - export function createTransactionRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/createtransactions.ts b/src/models/operations/createtransactions.ts index 406e7af..1df1448 100644 --- a/src/models/operations/createtransactions.ts +++ b/src/models/operations/createtransactions.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -80,7 +80,6 @@ export const CreateTransactionsAttachment$inboundSchema: z.ZodType< size: z.number(), type: z.string(), }); - /** @internal */ export type CreateTransactionsAttachment$Outbound = { path: Array; @@ -101,19 +100,6 @@ export const CreateTransactionsAttachment$outboundSchema: z.ZodType< type: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateTransactionsAttachment$ { - /** @deprecated use `CreateTransactionsAttachment$inboundSchema` instead. */ - export const inboundSchema = CreateTransactionsAttachment$inboundSchema; - /** @deprecated use `CreateTransactionsAttachment$outboundSchema` instead. */ - export const outboundSchema = CreateTransactionsAttachment$outboundSchema; - /** @deprecated use `CreateTransactionsAttachment$Outbound` instead. */ - export type Outbound = CreateTransactionsAttachment$Outbound; -} - export function createTransactionsAttachmentToJSON( createTransactionsAttachment: CreateTransactionsAttachment, ): string { @@ -123,7 +109,6 @@ export function createTransactionsAttachmentToJSON( ), ); } - export function createTransactionsAttachmentFromJSON( jsonString: string, ): SafeParseResult { @@ -152,7 +137,6 @@ export const RequestBody$inboundSchema: z.ZodType< attachments: z.array(z.lazy(() => CreateTransactionsAttachment$inboundSchema)) .optional(), }); - /** @internal */ export type RequestBody$Outbound = { name: string; @@ -187,23 +171,9 @@ export const RequestBody$outboundSchema: z.ZodType< ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RequestBody$ { - /** @deprecated use `RequestBody$inboundSchema` instead. */ - export const inboundSchema = RequestBody$inboundSchema; - /** @deprecated use `RequestBody$outboundSchema` instead. */ - export const outboundSchema = RequestBody$outboundSchema; - /** @deprecated use `RequestBody$Outbound` instead. */ - export type Outbound = RequestBody$Outbound; -} - export function requestBodyToJSON(requestBody: RequestBody): string { return JSON.stringify(RequestBody$outboundSchema.parse(requestBody)); } - export function requestBodyFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/deletebankaccount.ts b/src/models/operations/deletebankaccount.ts index 005d434..69a4b02 100644 --- a/src/models/operations/deletebankaccount.ts +++ b/src/models/operations/deletebankaccount.ts @@ -2,12 +2,15 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type DeleteBankAccountRequest = { + /** + * The unique identifier of the bank account. + */ id: string; }; @@ -53,7 +56,6 @@ export const DeleteBankAccountRequest$inboundSchema: z.ZodType< > = z.object({ id: z.string(), }); - /** @internal */ export type DeleteBankAccountRequest$Outbound = { id: string; @@ -68,19 +70,6 @@ export const DeleteBankAccountRequest$outboundSchema: z.ZodType< id: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteBankAccountRequest$ { - /** @deprecated use `DeleteBankAccountRequest$inboundSchema` instead. */ - export const inboundSchema = DeleteBankAccountRequest$inboundSchema; - /** @deprecated use `DeleteBankAccountRequest$outboundSchema` instead. */ - export const outboundSchema = DeleteBankAccountRequest$outboundSchema; - /** @deprecated use `DeleteBankAccountRequest$Outbound` instead. */ - export type Outbound = DeleteBankAccountRequest$Outbound; -} - export function deleteBankAccountRequestToJSON( deleteBankAccountRequest: DeleteBankAccountRequest, ): string { @@ -88,7 +77,6 @@ export function deleteBankAccountRequestToJSON( DeleteBankAccountRequest$outboundSchema.parse(deleteBankAccountRequest), ); } - export function deleteBankAccountRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -113,7 +101,6 @@ export const DeleteBankAccountResponse$inboundSchema: z.ZodType< balance: z.nullable(z.number()), manual: z.nullable(z.boolean()), }); - /** @internal */ export type DeleteBankAccountResponse$Outbound = { id: string; @@ -140,19 +127,6 @@ export const DeleteBankAccountResponse$outboundSchema: z.ZodType< manual: z.nullable(z.boolean()), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteBankAccountResponse$ { - /** @deprecated use `DeleteBankAccountResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteBankAccountResponse$inboundSchema; - /** @deprecated use `DeleteBankAccountResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteBankAccountResponse$outboundSchema; - /** @deprecated use `DeleteBankAccountResponse$Outbound` instead. */ - export type Outbound = DeleteBankAccountResponse$Outbound; -} - export function deleteBankAccountResponseToJSON( deleteBankAccountResponse: DeleteBankAccountResponse, ): string { @@ -160,7 +134,6 @@ export function deleteBankAccountResponseToJSON( DeleteBankAccountResponse$outboundSchema.parse(deleteBankAccountResponse), ); } - export function deleteBankAccountResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/deletecustomer.ts b/src/models/operations/deletecustomer.ts index 514cd85..92e9a57 100644 --- a/src/models/operations/deletecustomer.ts +++ b/src/models/operations/deletecustomer.ts @@ -2,12 +2,15 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type DeleteCustomerRequest = { + /** + * Unique identifier of the customer to retrieve + */ id: string; }; @@ -120,7 +123,6 @@ export const DeleteCustomerRequest$inboundSchema: z.ZodType< > = z.object({ id: z.string(), }); - /** @internal */ export type DeleteCustomerRequest$Outbound = { id: string; @@ -135,19 +137,6 @@ export const DeleteCustomerRequest$outboundSchema: z.ZodType< id: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteCustomerRequest$ { - /** @deprecated use `DeleteCustomerRequest$inboundSchema` instead. */ - export const inboundSchema = DeleteCustomerRequest$inboundSchema; - /** @deprecated use `DeleteCustomerRequest$outboundSchema` instead. */ - export const outboundSchema = DeleteCustomerRequest$outboundSchema; - /** @deprecated use `DeleteCustomerRequest$Outbound` instead. */ - export type Outbound = DeleteCustomerRequest$Outbound; -} - export function deleteCustomerRequestToJSON( deleteCustomerRequest: DeleteCustomerRequest, ): string { @@ -155,7 +144,6 @@ export function deleteCustomerRequestToJSON( DeleteCustomerRequest$outboundSchema.parse(deleteCustomerRequest), ); } - export function deleteCustomerRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -175,7 +163,6 @@ export const DeleteCustomerTag$inboundSchema: z.ZodType< id: z.string(), name: z.string(), }); - /** @internal */ export type DeleteCustomerTag$Outbound = { id: string; @@ -192,19 +179,6 @@ export const DeleteCustomerTag$outboundSchema: z.ZodType< name: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteCustomerTag$ { - /** @deprecated use `DeleteCustomerTag$inboundSchema` instead. */ - export const inboundSchema = DeleteCustomerTag$inboundSchema; - /** @deprecated use `DeleteCustomerTag$outboundSchema` instead. */ - export const outboundSchema = DeleteCustomerTag$outboundSchema; - /** @deprecated use `DeleteCustomerTag$Outbound` instead. */ - export type Outbound = DeleteCustomerTag$Outbound; -} - export function deleteCustomerTagToJSON( deleteCustomerTag: DeleteCustomerTag, ): string { @@ -212,7 +186,6 @@ export function deleteCustomerTagToJSON( DeleteCustomerTag$outboundSchema.parse(deleteCustomerTag), ); } - export function deleteCustomerTagFromJSON( jsonString: string, ): SafeParseResult { @@ -251,7 +224,6 @@ export const DeleteCustomerResponse$inboundSchema: z.ZodType< projectCount: z.number(), tags: z.array(z.lazy(() => DeleteCustomerTag$inboundSchema)), }); - /** @internal */ export type DeleteCustomerResponse$Outbound = { id: string; @@ -306,19 +278,6 @@ export const DeleteCustomerResponse$outboundSchema: z.ZodType< tags: z.array(z.lazy(() => DeleteCustomerTag$outboundSchema)), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteCustomerResponse$ { - /** @deprecated use `DeleteCustomerResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteCustomerResponse$inboundSchema; - /** @deprecated use `DeleteCustomerResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteCustomerResponse$outboundSchema; - /** @deprecated use `DeleteCustomerResponse$Outbound` instead. */ - export type Outbound = DeleteCustomerResponse$Outbound; -} - export function deleteCustomerResponseToJSON( deleteCustomerResponse: DeleteCustomerResponse, ): string { @@ -326,7 +285,6 @@ export function deleteCustomerResponseToJSON( DeleteCustomerResponse$outboundSchema.parse(deleteCustomerResponse), ); } - export function deleteCustomerResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/deletedocument.ts b/src/models/operations/deletedocument.ts index 08305cc..7c67eec 100644 --- a/src/models/operations/deletedocument.ts +++ b/src/models/operations/deletedocument.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -26,7 +26,6 @@ export const DeleteDocumentRequest$inboundSchema: z.ZodType< > = z.object({ id: z.string(), }); - /** @internal */ export type DeleteDocumentRequest$Outbound = { id: string; @@ -41,19 +40,6 @@ export const DeleteDocumentRequest$outboundSchema: z.ZodType< id: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteDocumentRequest$ { - /** @deprecated use `DeleteDocumentRequest$inboundSchema` instead. */ - export const inboundSchema = DeleteDocumentRequest$inboundSchema; - /** @deprecated use `DeleteDocumentRequest$outboundSchema` instead. */ - export const outboundSchema = DeleteDocumentRequest$outboundSchema; - /** @deprecated use `DeleteDocumentRequest$Outbound` instead. */ - export type Outbound = DeleteDocumentRequest$Outbound; -} - export function deleteDocumentRequestToJSON( deleteDocumentRequest: DeleteDocumentRequest, ): string { @@ -61,7 +47,6 @@ export function deleteDocumentRequestToJSON( DeleteDocumentRequest$outboundSchema.parse(deleteDocumentRequest), ); } - export function deleteDocumentRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -80,7 +65,6 @@ export const DeleteDocumentResponse$inboundSchema: z.ZodType< > = z.object({ id: z.string(), }); - /** @internal */ export type DeleteDocumentResponse$Outbound = { id: string; @@ -95,19 +79,6 @@ export const DeleteDocumentResponse$outboundSchema: z.ZodType< id: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteDocumentResponse$ { - /** @deprecated use `DeleteDocumentResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteDocumentResponse$inboundSchema; - /** @deprecated use `DeleteDocumentResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteDocumentResponse$outboundSchema; - /** @deprecated use `DeleteDocumentResponse$Outbound` instead. */ - export type Outbound = DeleteDocumentResponse$Outbound; -} - export function deleteDocumentResponseToJSON( deleteDocumentResponse: DeleteDocumentResponse, ): string { @@ -115,7 +86,6 @@ export function deleteDocumentResponseToJSON( DeleteDocumentResponse$outboundSchema.parse(deleteDocumentResponse), ); } - export function deleteDocumentResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/deleteinboxitem.ts b/src/models/operations/deleteinboxitem.ts index 9f6d988..7cd0357 100644 --- a/src/models/operations/deleteinboxitem.ts +++ b/src/models/operations/deleteinboxitem.ts @@ -2,12 +2,15 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type DeleteInboxItemRequest = { + /** + * The unique identifier of the inbox item to delete. + */ id: string; }; @@ -29,7 +32,6 @@ export const DeleteInboxItemRequest$inboundSchema: z.ZodType< > = z.object({ id: z.string(), }); - /** @internal */ export type DeleteInboxItemRequest$Outbound = { id: string; @@ -44,19 +46,6 @@ export const DeleteInboxItemRequest$outboundSchema: z.ZodType< id: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteInboxItemRequest$ { - /** @deprecated use `DeleteInboxItemRequest$inboundSchema` instead. */ - export const inboundSchema = DeleteInboxItemRequest$inboundSchema; - /** @deprecated use `DeleteInboxItemRequest$outboundSchema` instead. */ - export const outboundSchema = DeleteInboxItemRequest$outboundSchema; - /** @deprecated use `DeleteInboxItemRequest$Outbound` instead. */ - export type Outbound = DeleteInboxItemRequest$Outbound; -} - export function deleteInboxItemRequestToJSON( deleteInboxItemRequest: DeleteInboxItemRequest, ): string { @@ -64,7 +53,6 @@ export function deleteInboxItemRequestToJSON( DeleteInboxItemRequest$outboundSchema.parse(deleteInboxItemRequest), ); } - export function deleteInboxItemRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -83,7 +71,6 @@ export const DeleteInboxItemResponse$inboundSchema: z.ZodType< > = z.object({ id: z.string(), }); - /** @internal */ export type DeleteInboxItemResponse$Outbound = { id: string; @@ -98,19 +85,6 @@ export const DeleteInboxItemResponse$outboundSchema: z.ZodType< id: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteInboxItemResponse$ { - /** @deprecated use `DeleteInboxItemResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteInboxItemResponse$inboundSchema; - /** @deprecated use `DeleteInboxItemResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteInboxItemResponse$outboundSchema; - /** @deprecated use `DeleteInboxItemResponse$Outbound` instead. */ - export type Outbound = DeleteInboxItemResponse$Outbound; -} - export function deleteInboxItemResponseToJSON( deleteInboxItemResponse: DeleteInboxItemResponse, ): string { @@ -118,7 +92,6 @@ export function deleteInboxItemResponseToJSON( DeleteInboxItemResponse$outboundSchema.parse(deleteInboxItemResponse), ); } - export function deleteInboxItemResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/deleteinvoice.ts b/src/models/operations/deleteinvoice.ts index 0f51f4e..53ba888 100644 --- a/src/models/operations/deleteinvoice.ts +++ b/src/models/operations/deleteinvoice.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -29,7 +29,6 @@ export const DeleteInvoiceRequest$inboundSchema: z.ZodType< > = z.object({ id: z.string(), }); - /** @internal */ export type DeleteInvoiceRequest$Outbound = { id: string; @@ -44,19 +43,6 @@ export const DeleteInvoiceRequest$outboundSchema: z.ZodType< id: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteInvoiceRequest$ { - /** @deprecated use `DeleteInvoiceRequest$inboundSchema` instead. */ - export const inboundSchema = DeleteInvoiceRequest$inboundSchema; - /** @deprecated use `DeleteInvoiceRequest$outboundSchema` instead. */ - export const outboundSchema = DeleteInvoiceRequest$outboundSchema; - /** @deprecated use `DeleteInvoiceRequest$Outbound` instead. */ - export type Outbound = DeleteInvoiceRequest$Outbound; -} - export function deleteInvoiceRequestToJSON( deleteInvoiceRequest: DeleteInvoiceRequest, ): string { @@ -64,7 +50,6 @@ export function deleteInvoiceRequestToJSON( DeleteInvoiceRequest$outboundSchema.parse(deleteInvoiceRequest), ); } - export function deleteInvoiceRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -83,7 +68,6 @@ export const DeleteInvoiceResponse$inboundSchema: z.ZodType< > = z.object({ id: z.string(), }); - /** @internal */ export type DeleteInvoiceResponse$Outbound = { id: string; @@ -98,19 +82,6 @@ export const DeleteInvoiceResponse$outboundSchema: z.ZodType< id: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteInvoiceResponse$ { - /** @deprecated use `DeleteInvoiceResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteInvoiceResponse$inboundSchema; - /** @deprecated use `DeleteInvoiceResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteInvoiceResponse$outboundSchema; - /** @deprecated use `DeleteInvoiceResponse$Outbound` instead. */ - export type Outbound = DeleteInvoiceResponse$Outbound; -} - export function deleteInvoiceResponseToJSON( deleteInvoiceResponse: DeleteInvoiceResponse, ): string { @@ -118,7 +89,6 @@ export function deleteInvoiceResponseToJSON( DeleteInvoiceResponse$outboundSchema.parse(deleteInvoiceResponse), ); } - export function deleteInvoiceResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/deletetag.ts b/src/models/operations/deletetag.ts index 0fc88a4..49526e1 100644 --- a/src/models/operations/deletetag.ts +++ b/src/models/operations/deletetag.ts @@ -2,12 +2,15 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type DeleteTagRequest = { + /** + * The UUID of the tag to delete. + */ id: string; }; @@ -19,7 +22,6 @@ export const DeleteTagRequest$inboundSchema: z.ZodType< > = z.object({ id: z.string(), }); - /** @internal */ export type DeleteTagRequest$Outbound = { id: string; @@ -34,19 +36,6 @@ export const DeleteTagRequest$outboundSchema: z.ZodType< id: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteTagRequest$ { - /** @deprecated use `DeleteTagRequest$inboundSchema` instead. */ - export const inboundSchema = DeleteTagRequest$inboundSchema; - /** @deprecated use `DeleteTagRequest$outboundSchema` instead. */ - export const outboundSchema = DeleteTagRequest$outboundSchema; - /** @deprecated use `DeleteTagRequest$Outbound` instead. */ - export type Outbound = DeleteTagRequest$Outbound; -} - export function deleteTagRequestToJSON( deleteTagRequest: DeleteTagRequest, ): string { @@ -54,7 +43,6 @@ export function deleteTagRequestToJSON( DeleteTagRequest$outboundSchema.parse(deleteTagRequest), ); } - export function deleteTagRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/deletetrackerentry.ts b/src/models/operations/deletetrackerentry.ts index 378fe4f..7bb5619 100644 --- a/src/models/operations/deletetrackerentry.ts +++ b/src/models/operations/deletetrackerentry.ts @@ -2,12 +2,15 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type DeleteTrackerEntryRequest = { + /** + * Unique identifier of the tracker entry to delete + */ id: string; }; @@ -29,7 +32,6 @@ export const DeleteTrackerEntryRequest$inboundSchema: z.ZodType< > = z.object({ id: z.string(), }); - /** @internal */ export type DeleteTrackerEntryRequest$Outbound = { id: string; @@ -44,19 +46,6 @@ export const DeleteTrackerEntryRequest$outboundSchema: z.ZodType< id: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteTrackerEntryRequest$ { - /** @deprecated use `DeleteTrackerEntryRequest$inboundSchema` instead. */ - export const inboundSchema = DeleteTrackerEntryRequest$inboundSchema; - /** @deprecated use `DeleteTrackerEntryRequest$outboundSchema` instead. */ - export const outboundSchema = DeleteTrackerEntryRequest$outboundSchema; - /** @deprecated use `DeleteTrackerEntryRequest$Outbound` instead. */ - export type Outbound = DeleteTrackerEntryRequest$Outbound; -} - export function deleteTrackerEntryRequestToJSON( deleteTrackerEntryRequest: DeleteTrackerEntryRequest, ): string { @@ -64,7 +53,6 @@ export function deleteTrackerEntryRequestToJSON( DeleteTrackerEntryRequest$outboundSchema.parse(deleteTrackerEntryRequest), ); } - export function deleteTrackerEntryRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -83,7 +71,6 @@ export const DeleteTrackerEntryResponse$inboundSchema: z.ZodType< > = z.object({ id: z.string(), }); - /** @internal */ export type DeleteTrackerEntryResponse$Outbound = { id: string; @@ -98,19 +85,6 @@ export const DeleteTrackerEntryResponse$outboundSchema: z.ZodType< id: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteTrackerEntryResponse$ { - /** @deprecated use `DeleteTrackerEntryResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteTrackerEntryResponse$inboundSchema; - /** @deprecated use `DeleteTrackerEntryResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteTrackerEntryResponse$outboundSchema; - /** @deprecated use `DeleteTrackerEntryResponse$Outbound` instead. */ - export type Outbound = DeleteTrackerEntryResponse$Outbound; -} - export function deleteTrackerEntryResponseToJSON( deleteTrackerEntryResponse: DeleteTrackerEntryResponse, ): string { @@ -118,7 +92,6 @@ export function deleteTrackerEntryResponseToJSON( DeleteTrackerEntryResponse$outboundSchema.parse(deleteTrackerEntryResponse), ); } - export function deleteTrackerEntryResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/deletetrackerproject.ts b/src/models/operations/deletetrackerproject.ts index 6032e10..c57b8a1 100644 --- a/src/models/operations/deletetrackerproject.ts +++ b/src/models/operations/deletetrackerproject.ts @@ -2,12 +2,15 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type DeleteTrackerProjectRequest = { + /** + * Unique identifier of the project to retrieve + */ id: string; }; @@ -29,7 +32,6 @@ export const DeleteTrackerProjectRequest$inboundSchema: z.ZodType< > = z.object({ id: z.string(), }); - /** @internal */ export type DeleteTrackerProjectRequest$Outbound = { id: string; @@ -44,19 +46,6 @@ export const DeleteTrackerProjectRequest$outboundSchema: z.ZodType< id: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteTrackerProjectRequest$ { - /** @deprecated use `DeleteTrackerProjectRequest$inboundSchema` instead. */ - export const inboundSchema = DeleteTrackerProjectRequest$inboundSchema; - /** @deprecated use `DeleteTrackerProjectRequest$outboundSchema` instead. */ - export const outboundSchema = DeleteTrackerProjectRequest$outboundSchema; - /** @deprecated use `DeleteTrackerProjectRequest$Outbound` instead. */ - export type Outbound = DeleteTrackerProjectRequest$Outbound; -} - export function deleteTrackerProjectRequestToJSON( deleteTrackerProjectRequest: DeleteTrackerProjectRequest, ): string { @@ -66,7 +55,6 @@ export function deleteTrackerProjectRequestToJSON( ), ); } - export function deleteTrackerProjectRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -85,7 +73,6 @@ export const DeleteTrackerProjectResponse$inboundSchema: z.ZodType< > = z.object({ id: z.string(), }); - /** @internal */ export type DeleteTrackerProjectResponse$Outbound = { id: string; @@ -100,19 +87,6 @@ export const DeleteTrackerProjectResponse$outboundSchema: z.ZodType< id: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteTrackerProjectResponse$ { - /** @deprecated use `DeleteTrackerProjectResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteTrackerProjectResponse$inboundSchema; - /** @deprecated use `DeleteTrackerProjectResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteTrackerProjectResponse$outboundSchema; - /** @deprecated use `DeleteTrackerProjectResponse$Outbound` instead. */ - export type Outbound = DeleteTrackerProjectResponse$Outbound; -} - export function deleteTrackerProjectResponseToJSON( deleteTrackerProjectResponse: DeleteTrackerProjectResponse, ): string { @@ -122,7 +96,6 @@ export function deleteTrackerProjectResponseToJSON( ), ); } - export function deleteTrackerProjectResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/deletetransaction.ts b/src/models/operations/deletetransaction.ts index eb19dd3..4f807c8 100644 --- a/src/models/operations/deletetransaction.ts +++ b/src/models/operations/deletetransaction.ts @@ -2,12 +2,15 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type DeleteTransactionRequest = { + /** + * Transaction ID (UUID). + */ id: string; }; @@ -29,7 +32,6 @@ export const DeleteTransactionRequest$inboundSchema: z.ZodType< > = z.object({ id: z.string(), }); - /** @internal */ export type DeleteTransactionRequest$Outbound = { id: string; @@ -44,19 +46,6 @@ export const DeleteTransactionRequest$outboundSchema: z.ZodType< id: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteTransactionRequest$ { - /** @deprecated use `DeleteTransactionRequest$inboundSchema` instead. */ - export const inboundSchema = DeleteTransactionRequest$inboundSchema; - /** @deprecated use `DeleteTransactionRequest$outboundSchema` instead. */ - export const outboundSchema = DeleteTransactionRequest$outboundSchema; - /** @deprecated use `DeleteTransactionRequest$Outbound` instead. */ - export type Outbound = DeleteTransactionRequest$Outbound; -} - export function deleteTransactionRequestToJSON( deleteTransactionRequest: DeleteTransactionRequest, ): string { @@ -64,7 +53,6 @@ export function deleteTransactionRequestToJSON( DeleteTransactionRequest$outboundSchema.parse(deleteTransactionRequest), ); } - export function deleteTransactionRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -83,7 +71,6 @@ export const DeleteTransactionResponse$inboundSchema: z.ZodType< > = z.object({ id: z.string(), }); - /** @internal */ export type DeleteTransactionResponse$Outbound = { id: string; @@ -98,19 +85,6 @@ export const DeleteTransactionResponse$outboundSchema: z.ZodType< id: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteTransactionResponse$ { - /** @deprecated use `DeleteTransactionResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteTransactionResponse$inboundSchema; - /** @deprecated use `DeleteTransactionResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteTransactionResponse$outboundSchema; - /** @deprecated use `DeleteTransactionResponse$Outbound` instead. */ - export type Outbound = DeleteTransactionResponse$Outbound; -} - export function deleteTransactionResponseToJSON( deleteTransactionResponse: DeleteTransactionResponse, ): string { @@ -118,7 +92,6 @@ export function deleteTransactionResponseToJSON( DeleteTransactionResponse$outboundSchema.parse(deleteTransactionResponse), ); } - export function deleteTransactionResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/deletetransactions.ts b/src/models/operations/deletetransactions.ts index 2e6678c..d9a1e8b 100644 --- a/src/models/operations/deletetransactions.ts +++ b/src/models/operations/deletetransactions.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -22,7 +22,6 @@ export const DeleteTransactionsResponse$inboundSchema: z.ZodType< > = z.object({ id: z.string(), }); - /** @internal */ export type DeleteTransactionsResponse$Outbound = { id: string; @@ -37,19 +36,6 @@ export const DeleteTransactionsResponse$outboundSchema: z.ZodType< id: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteTransactionsResponse$ { - /** @deprecated use `DeleteTransactionsResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteTransactionsResponse$inboundSchema; - /** @deprecated use `DeleteTransactionsResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteTransactionsResponse$outboundSchema; - /** @deprecated use `DeleteTransactionsResponse$Outbound` instead. */ - export type Outbound = DeleteTransactionsResponse$Outbound; -} - export function deleteTransactionsResponseToJSON( deleteTransactionsResponse: DeleteTransactionsResponse, ): string { @@ -57,7 +43,6 @@ export function deleteTransactionsResponseToJSON( DeleteTransactionsResponse$outboundSchema.parse(deleteTransactionsResponse), ); } - export function deleteTransactionsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/disconnectstripe.ts b/src/models/operations/disconnectstripe.ts new file mode 100644 index 0000000..4b8ee72 --- /dev/null +++ b/src/models/operations/disconnectstripe.ts @@ -0,0 +1,54 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +/** + * Successfully disconnected + */ +export type DisconnectStripeResponse = { + success: boolean; +}; + +/** @internal */ +export const DisconnectStripeResponse$inboundSchema: z.ZodType< + DisconnectStripeResponse, + z.ZodTypeDef, + unknown +> = z.object({ + success: z.boolean(), +}); +/** @internal */ +export type DisconnectStripeResponse$Outbound = { + success: boolean; +}; + +/** @internal */ +export const DisconnectStripeResponse$outboundSchema: z.ZodType< + DisconnectStripeResponse$Outbound, + z.ZodTypeDef, + DisconnectStripeResponse +> = z.object({ + success: z.boolean(), +}); + +export function disconnectStripeResponseToJSON( + disconnectStripeResponse: DisconnectStripeResponse, +): string { + return JSON.stringify( + DisconnectStripeResponse$outboundSchema.parse(disconnectStripeResponse), + ); +} +export function disconnectStripeResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => DisconnectStripeResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'DisconnectStripeResponse' from JSON`, + ); +} diff --git a/src/models/operations/downloadfile.ts b/src/models/operations/downloadfile.ts new file mode 100644 index 0000000..c252482 --- /dev/null +++ b/src/models/operations/downloadfile.ts @@ -0,0 +1,68 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +export type DownloadFileRequest = { + /** + * Path to the file in storage. Can include or exclude 'vault/' prefix. + */ + path: string; + /** + * Optional filename for the Content-Disposition header. + */ + filename?: string | undefined; + /** + * Team file key for proxy/download access to team files. This key is returned in the user data response (GET /users/me) as the `fileKey` field. It is team-scoped and deterministic - all members of the same team share the same file key. Use this key to authenticate file access requests. + */ + fk: string; +}; + +/** @internal */ +export const DownloadFileRequest$inboundSchema: z.ZodType< + DownloadFileRequest, + z.ZodTypeDef, + unknown +> = z.object({ + path: z.string(), + filename: z.string().optional(), + fk: z.string(), +}); +/** @internal */ +export type DownloadFileRequest$Outbound = { + path: string; + filename?: string | undefined; + fk: string; +}; + +/** @internal */ +export const DownloadFileRequest$outboundSchema: z.ZodType< + DownloadFileRequest$Outbound, + z.ZodTypeDef, + DownloadFileRequest +> = z.object({ + path: z.string(), + filename: z.string().optional(), + fk: z.string(), +}); + +export function downloadFileRequestToJSON( + downloadFileRequest: DownloadFileRequest, +): string { + return JSON.stringify( + DownloadFileRequest$outboundSchema.parse(downloadFileRequest), + ); +} +export function downloadFileRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => DownloadFileRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'DownloadFileRequest' from JSON`, + ); +} diff --git a/src/models/operations/downloadinvoice.ts b/src/models/operations/downloadinvoice.ts new file mode 100644 index 0000000..f688a75 --- /dev/null +++ b/src/models/operations/downloadinvoice.ts @@ -0,0 +1,75 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +export type DownloadInvoiceRequest = { + /** + * Invoice ID (UUID). Requires team file key (fk) query parameter for authentication. + */ + id?: string | undefined; + /** + * Team file key for authenticated invoice access. Required when using invoice ID. This key is returned in the user data response (GET /users/me) as the `fileKey` field. + */ + fk?: string | undefined; + /** + * Invoice access token for public access. When used alone (without id), allows public access to the invoice. + */ + token?: string | undefined; + /** + * If true, the PDF will be displayed inline. If false, it will be downloaded. + */ + preview?: boolean | null | undefined; +}; + +/** @internal */ +export const DownloadInvoiceRequest$inboundSchema: z.ZodType< + DownloadInvoiceRequest, + z.ZodTypeDef, + unknown +> = z.object({ + id: z.string().optional(), + fk: z.string().optional(), + token: z.string().optional(), + preview: z.nullable(z.boolean().default(false)), +}); +/** @internal */ +export type DownloadInvoiceRequest$Outbound = { + id?: string | undefined; + fk?: string | undefined; + token?: string | undefined; + preview: boolean | null; +}; + +/** @internal */ +export const DownloadInvoiceRequest$outboundSchema: z.ZodType< + DownloadInvoiceRequest$Outbound, + z.ZodTypeDef, + DownloadInvoiceRequest +> = z.object({ + id: z.string().optional(), + fk: z.string().optional(), + token: z.string().optional(), + preview: z.nullable(z.boolean().default(false)), +}); + +export function downloadInvoiceRequestToJSON( + downloadInvoiceRequest: DownloadInvoiceRequest, +): string { + return JSON.stringify( + DownloadInvoiceRequest$outboundSchema.parse(downloadInvoiceRequest), + ); +} +export function downloadInvoiceRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => DownloadInvoiceRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'DownloadInvoiceRequest' from JSON`, + ); +} diff --git a/src/models/operations/fortnoxoauthcallback.ts b/src/models/operations/fortnoxoauthcallback.ts new file mode 100644 index 0000000..9054ba6 --- /dev/null +++ b/src/models/operations/fortnoxoauthcallback.ts @@ -0,0 +1,124 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +export type FortnoxOAuthCallbackRequest = { + /** + * OAuth authorization code from Fortnox + */ + code?: string | undefined; + /** + * OAuth state parameter for CSRF protection + */ + state: string; + /** + * OAuth error code if authorization failed + */ + error?: string | undefined; +}; + +export type FortnoxOAuthCallbackResponse = { + headers: { [k: string]: Array }; +}; + +/** @internal */ +export const FortnoxOAuthCallbackRequest$inboundSchema: z.ZodType< + FortnoxOAuthCallbackRequest, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.string().optional(), + state: z.string(), + error: z.string().optional(), +}); +/** @internal */ +export type FortnoxOAuthCallbackRequest$Outbound = { + code?: string | undefined; + state: string; + error?: string | undefined; +}; + +/** @internal */ +export const FortnoxOAuthCallbackRequest$outboundSchema: z.ZodType< + FortnoxOAuthCallbackRequest$Outbound, + z.ZodTypeDef, + FortnoxOAuthCallbackRequest +> = z.object({ + code: z.string().optional(), + state: z.string(), + error: z.string().optional(), +}); + +export function fortnoxOAuthCallbackRequestToJSON( + fortnoxOAuthCallbackRequest: FortnoxOAuthCallbackRequest, +): string { + return JSON.stringify( + FortnoxOAuthCallbackRequest$outboundSchema.parse( + fortnoxOAuthCallbackRequest, + ), + ); +} +export function fortnoxOAuthCallbackRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => FortnoxOAuthCallbackRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'FortnoxOAuthCallbackRequest' from JSON`, + ); +} + +/** @internal */ +export const FortnoxOAuthCallbackResponse$inboundSchema: z.ZodType< + FortnoxOAuthCallbackResponse, + z.ZodTypeDef, + unknown +> = z.object({ + Headers: z.record(z.array(z.string())).default({}), +}).transform((v) => { + return remap$(v, { + "Headers": "headers", + }); +}); +/** @internal */ +export type FortnoxOAuthCallbackResponse$Outbound = { + Headers: { [k: string]: Array }; +}; + +/** @internal */ +export const FortnoxOAuthCallbackResponse$outboundSchema: z.ZodType< + FortnoxOAuthCallbackResponse$Outbound, + z.ZodTypeDef, + FortnoxOAuthCallbackResponse +> = z.object({ + headers: z.record(z.array(z.string())), +}).transform((v) => { + return remap$(v, { + headers: "Headers", + }); +}); + +export function fortnoxOAuthCallbackResponseToJSON( + fortnoxOAuthCallbackResponse: FortnoxOAuthCallbackResponse, +): string { + return JSON.stringify( + FortnoxOAuthCallbackResponse$outboundSchema.parse( + fortnoxOAuthCallbackResponse, + ), + ); +} +export function fortnoxOAuthCallbackResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => FortnoxOAuthCallbackResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'FortnoxOAuthCallbackResponse' from JSON`, + ); +} diff --git a/src/models/operations/getbankaccountbyid.ts b/src/models/operations/getbankaccountbyid.ts index 765864c..265895f 100644 --- a/src/models/operations/getbankaccountbyid.ts +++ b/src/models/operations/getbankaccountbyid.ts @@ -2,12 +2,15 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetBankAccountByIdRequest = { + /** + * The unique identifier of the bank account. + */ id: string; }; @@ -53,7 +56,6 @@ export const GetBankAccountByIdRequest$inboundSchema: z.ZodType< > = z.object({ id: z.string(), }); - /** @internal */ export type GetBankAccountByIdRequest$Outbound = { id: string; @@ -68,19 +70,6 @@ export const GetBankAccountByIdRequest$outboundSchema: z.ZodType< id: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetBankAccountByIdRequest$ { - /** @deprecated use `GetBankAccountByIdRequest$inboundSchema` instead. */ - export const inboundSchema = GetBankAccountByIdRequest$inboundSchema; - /** @deprecated use `GetBankAccountByIdRequest$outboundSchema` instead. */ - export const outboundSchema = GetBankAccountByIdRequest$outboundSchema; - /** @deprecated use `GetBankAccountByIdRequest$Outbound` instead. */ - export type Outbound = GetBankAccountByIdRequest$Outbound; -} - export function getBankAccountByIdRequestToJSON( getBankAccountByIdRequest: GetBankAccountByIdRequest, ): string { @@ -88,7 +77,6 @@ export function getBankAccountByIdRequestToJSON( GetBankAccountByIdRequest$outboundSchema.parse(getBankAccountByIdRequest), ); } - export function getBankAccountByIdRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -113,7 +101,6 @@ export const GetBankAccountByIdResponse$inboundSchema: z.ZodType< balance: z.nullable(z.number()), manual: z.nullable(z.boolean()), }); - /** @internal */ export type GetBankAccountByIdResponse$Outbound = { id: string; @@ -140,19 +127,6 @@ export const GetBankAccountByIdResponse$outboundSchema: z.ZodType< manual: z.nullable(z.boolean()), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetBankAccountByIdResponse$ { - /** @deprecated use `GetBankAccountByIdResponse$inboundSchema` instead. */ - export const inboundSchema = GetBankAccountByIdResponse$inboundSchema; - /** @deprecated use `GetBankAccountByIdResponse$outboundSchema` instead. */ - export const outboundSchema = GetBankAccountByIdResponse$outboundSchema; - /** @deprecated use `GetBankAccountByIdResponse$Outbound` instead. */ - export type Outbound = GetBankAccountByIdResponse$Outbound; -} - export function getBankAccountByIdResponseToJSON( getBankAccountByIdResponse: GetBankAccountByIdResponse, ): string { @@ -160,7 +134,6 @@ export function getBankAccountByIdResponseToJSON( GetBankAccountByIdResponse$outboundSchema.parse(getBankAccountByIdResponse), ); } - export function getBankAccountByIdResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getburnratereports.ts b/src/models/operations/getburnratereports.ts index 4d19e1f..c9a83c3 100644 --- a/src/models/operations/getburnratereports.ts +++ b/src/models/operations/getburnratereports.ts @@ -2,14 +2,23 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetBurnRateReportsRequest = { + /** + * Start date (ISO 8601 format) + */ from: string; + /** + * End date (ISO 8601 format) + */ to: string; + /** + * Currency code (ISO 4217) + */ currency?: string | undefined; }; @@ -23,7 +32,6 @@ export const GetBurnRateReportsRequest$inboundSchema: z.ZodType< to: z.string(), currency: z.string().optional(), }); - /** @internal */ export type GetBurnRateReportsRequest$Outbound = { from: string; @@ -42,19 +50,6 @@ export const GetBurnRateReportsRequest$outboundSchema: z.ZodType< currency: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetBurnRateReportsRequest$ { - /** @deprecated use `GetBurnRateReportsRequest$inboundSchema` instead. */ - export const inboundSchema = GetBurnRateReportsRequest$inboundSchema; - /** @deprecated use `GetBurnRateReportsRequest$outboundSchema` instead. */ - export const outboundSchema = GetBurnRateReportsRequest$outboundSchema; - /** @deprecated use `GetBurnRateReportsRequest$Outbound` instead. */ - export type Outbound = GetBurnRateReportsRequest$Outbound; -} - export function getBurnRateReportsRequestToJSON( getBurnRateReportsRequest: GetBurnRateReportsRequest, ): string { @@ -62,7 +57,6 @@ export function getBurnRateReportsRequestToJSON( GetBurnRateReportsRequest$outboundSchema.parse(getBurnRateReportsRequest), ); } - export function getBurnRateReportsRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getcurrenttimer.ts b/src/models/operations/getcurrenttimer.ts index 18c154b..89ff907 100644 --- a/src/models/operations/getcurrenttimer.ts +++ b/src/models/operations/getcurrenttimer.ts @@ -2,12 +2,15 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetCurrentTimerRequest = { + /** + * Unique identifier of the user whose current timer should be retrieved. If not provided, will use the authenticated user + */ assignedId?: string | null | undefined; }; @@ -107,9 +110,9 @@ export type GetCurrentTimerData = { */ start: string; /** - * Stop time of the tracker entry in ISO 8601 format + * Stop time of the tracker entry in ISO 8601 format. Null for running timers. */ - stop: string; + stop: string | null; /** * Unique identifier of the team that owns this tracker entry */ @@ -159,7 +162,6 @@ export const GetCurrentTimerRequest$inboundSchema: z.ZodType< > = z.object({ assignedId: z.nullable(z.string()).optional(), }); - /** @internal */ export type GetCurrentTimerRequest$Outbound = { assignedId?: string | null | undefined; @@ -174,19 +176,6 @@ export const GetCurrentTimerRequest$outboundSchema: z.ZodType< assignedId: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCurrentTimerRequest$ { - /** @deprecated use `GetCurrentTimerRequest$inboundSchema` instead. */ - export const inboundSchema = GetCurrentTimerRequest$inboundSchema; - /** @deprecated use `GetCurrentTimerRequest$outboundSchema` instead. */ - export const outboundSchema = GetCurrentTimerRequest$outboundSchema; - /** @deprecated use `GetCurrentTimerRequest$Outbound` instead. */ - export type Outbound = GetCurrentTimerRequest$Outbound; -} - export function getCurrentTimerRequestToJSON( getCurrentTimerRequest: GetCurrentTimerRequest, ): string { @@ -194,7 +183,6 @@ export function getCurrentTimerRequestToJSON( GetCurrentTimerRequest$outboundSchema.parse(getCurrentTimerRequest), ); } - export function getCurrentTimerRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -215,7 +203,6 @@ export const GetCurrentTimerUser$inboundSchema: z.ZodType< fullName: z.string(), avatarUrl: z.string(), }); - /** @internal */ export type GetCurrentTimerUser$Outbound = { id: string; @@ -234,19 +221,6 @@ export const GetCurrentTimerUser$outboundSchema: z.ZodType< avatarUrl: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCurrentTimerUser$ { - /** @deprecated use `GetCurrentTimerUser$inboundSchema` instead. */ - export const inboundSchema = GetCurrentTimerUser$inboundSchema; - /** @deprecated use `GetCurrentTimerUser$outboundSchema` instead. */ - export const outboundSchema = GetCurrentTimerUser$outboundSchema; - /** @deprecated use `GetCurrentTimerUser$Outbound` instead. */ - export type Outbound = GetCurrentTimerUser$Outbound; -} - export function getCurrentTimerUserToJSON( getCurrentTimerUser: GetCurrentTimerUser, ): string { @@ -254,7 +228,6 @@ export function getCurrentTimerUserToJSON( GetCurrentTimerUser$outboundSchema.parse(getCurrentTimerUser), ); } - export function getCurrentTimerUserFromJSON( jsonString: string, ): SafeParseResult { @@ -274,7 +247,6 @@ export const GetCurrentTimerCustomer$inboundSchema: z.ZodType< id: z.string(), name: z.string(), }); - /** @internal */ export type GetCurrentTimerCustomer$Outbound = { id: string; @@ -291,19 +263,6 @@ export const GetCurrentTimerCustomer$outboundSchema: z.ZodType< name: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCurrentTimerCustomer$ { - /** @deprecated use `GetCurrentTimerCustomer$inboundSchema` instead. */ - export const inboundSchema = GetCurrentTimerCustomer$inboundSchema; - /** @deprecated use `GetCurrentTimerCustomer$outboundSchema` instead. */ - export const outboundSchema = GetCurrentTimerCustomer$outboundSchema; - /** @deprecated use `GetCurrentTimerCustomer$Outbound` instead. */ - export type Outbound = GetCurrentTimerCustomer$Outbound; -} - export function getCurrentTimerCustomerToJSON( getCurrentTimerCustomer: GetCurrentTimerCustomer, ): string { @@ -311,7 +270,6 @@ export function getCurrentTimerCustomerToJSON( GetCurrentTimerCustomer$outboundSchema.parse(getCurrentTimerCustomer), ); } - export function getCurrentTimerCustomerFromJSON( jsonString: string, ): SafeParseResult { @@ -339,7 +297,6 @@ export const GetCurrentTimerProject$inboundSchema: z.ZodType< estimate: z.nullable(z.number()), customer: z.nullable(z.lazy(() => GetCurrentTimerCustomer$inboundSchema)), }); - /** @internal */ export type GetCurrentTimerProject$Outbound = { id: string; @@ -372,19 +329,6 @@ export const GetCurrentTimerProject$outboundSchema: z.ZodType< customer: z.nullable(z.lazy(() => GetCurrentTimerCustomer$outboundSchema)), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCurrentTimerProject$ { - /** @deprecated use `GetCurrentTimerProject$inboundSchema` instead. */ - export const inboundSchema = GetCurrentTimerProject$inboundSchema; - /** @deprecated use `GetCurrentTimerProject$outboundSchema` instead. */ - export const outboundSchema = GetCurrentTimerProject$outboundSchema; - /** @deprecated use `GetCurrentTimerProject$Outbound` instead. */ - export type Outbound = GetCurrentTimerProject$Outbound; -} - export function getCurrentTimerProjectToJSON( getCurrentTimerProject: GetCurrentTimerProject, ): string { @@ -392,7 +336,6 @@ export function getCurrentTimerProjectToJSON( GetCurrentTimerProject$outboundSchema.parse(getCurrentTimerProject), ); } - export function getCurrentTimerProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -413,7 +356,7 @@ export const GetCurrentTimerData$inboundSchema: z.ZodType< createdAt: z.string(), duration: z.nullable(z.number()), start: z.string(), - stop: z.string(), + stop: z.nullable(z.string()), teamId: z.string(), description: z.nullable(z.string()), rate: z.nullable(z.number()), @@ -423,14 +366,13 @@ export const GetCurrentTimerData$inboundSchema: z.ZodType< user: z.lazy(() => GetCurrentTimerUser$inboundSchema), project: z.lazy(() => GetCurrentTimerProject$inboundSchema), }); - /** @internal */ export type GetCurrentTimerData$Outbound = { id: string; createdAt: string; duration: number | null; start: string; - stop: string; + stop: string | null; teamId: string; description: string | null; rate: number | null; @@ -451,7 +393,7 @@ export const GetCurrentTimerData$outboundSchema: z.ZodType< createdAt: z.string(), duration: z.nullable(z.number()), start: z.string(), - stop: z.string(), + stop: z.nullable(z.string()), teamId: z.string(), description: z.nullable(z.string()), rate: z.nullable(z.number()), @@ -462,19 +404,6 @@ export const GetCurrentTimerData$outboundSchema: z.ZodType< project: z.lazy(() => GetCurrentTimerProject$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCurrentTimerData$ { - /** @deprecated use `GetCurrentTimerData$inboundSchema` instead. */ - export const inboundSchema = GetCurrentTimerData$inboundSchema; - /** @deprecated use `GetCurrentTimerData$outboundSchema` instead. */ - export const outboundSchema = GetCurrentTimerData$outboundSchema; - /** @deprecated use `GetCurrentTimerData$Outbound` instead. */ - export type Outbound = GetCurrentTimerData$Outbound; -} - export function getCurrentTimerDataToJSON( getCurrentTimerData: GetCurrentTimerData, ): string { @@ -482,7 +411,6 @@ export function getCurrentTimerDataToJSON( GetCurrentTimerData$outboundSchema.parse(getCurrentTimerData), ); } - export function getCurrentTimerDataFromJSON( jsonString: string, ): SafeParseResult { @@ -501,7 +429,6 @@ export const GetCurrentTimerResponse$inboundSchema: z.ZodType< > = z.object({ data: z.nullable(z.lazy(() => GetCurrentTimerData$inboundSchema)), }); - /** @internal */ export type GetCurrentTimerResponse$Outbound = { data: GetCurrentTimerData$Outbound | null; @@ -516,19 +443,6 @@ export const GetCurrentTimerResponse$outboundSchema: z.ZodType< data: z.nullable(z.lazy(() => GetCurrentTimerData$outboundSchema)), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCurrentTimerResponse$ { - /** @deprecated use `GetCurrentTimerResponse$inboundSchema` instead. */ - export const inboundSchema = GetCurrentTimerResponse$inboundSchema; - /** @deprecated use `GetCurrentTimerResponse$outboundSchema` instead. */ - export const outboundSchema = GetCurrentTimerResponse$outboundSchema; - /** @deprecated use `GetCurrentTimerResponse$Outbound` instead. */ - export type Outbound = GetCurrentTimerResponse$Outbound; -} - export function getCurrentTimerResponseToJSON( getCurrentTimerResponse: GetCurrentTimerResponse, ): string { @@ -536,7 +450,6 @@ export function getCurrentTimerResponseToJSON( GetCurrentTimerResponse$outboundSchema.parse(getCurrentTimerResponse), ); } - export function getCurrentTimerResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getcurrentuser.ts b/src/models/operations/getcurrentuser.ts index 6c7f56c..5f7d662 100644 --- a/src/models/operations/getcurrentuser.ts +++ b/src/models/operations/getcurrentuser.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -90,6 +90,10 @@ export type GetCurrentUserResponse = { * User's preferred date format. Available options: 'dd/MM/yyyy', 'MM/dd/yyyy', 'yyyy-MM-dd', 'dd.MM.yyyy' */ dateFormat: GetCurrentUserDateFormat | null; + /** + * Team file key (JWT token) for proxy/download access to team files. This compact JWT token contains the team ID and is shared by all team members. Use this token as the `fk` query parameter when accessing file endpoints (proxy, download). The token is team-scoped and provides access to files belonging to the user's team. Returns null if the user has no team. + */ + fileKey: string | null; /** * Team information that the user belongs to */ @@ -100,23 +104,11 @@ export type GetCurrentUserResponse = { export const GetCurrentUserDateFormat$inboundSchema: z.ZodNativeEnum< typeof GetCurrentUserDateFormat > = z.nativeEnum(GetCurrentUserDateFormat); - /** @internal */ export const GetCurrentUserDateFormat$outboundSchema: z.ZodNativeEnum< typeof GetCurrentUserDateFormat > = GetCurrentUserDateFormat$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCurrentUserDateFormat$ { - /** @deprecated use `GetCurrentUserDateFormat$inboundSchema` instead. */ - export const inboundSchema = GetCurrentUserDateFormat$inboundSchema; - /** @deprecated use `GetCurrentUserDateFormat$outboundSchema` instead. */ - export const outboundSchema = GetCurrentUserDateFormat$outboundSchema; -} - /** @internal */ export const GetCurrentUserTeam$inboundSchema: z.ZodType< GetCurrentUserTeam, @@ -128,7 +120,6 @@ export const GetCurrentUserTeam$inboundSchema: z.ZodType< logoUrl: z.string(), plan: z.string(), }); - /** @internal */ export type GetCurrentUserTeam$Outbound = { id: string; @@ -149,19 +140,6 @@ export const GetCurrentUserTeam$outboundSchema: z.ZodType< plan: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCurrentUserTeam$ { - /** @deprecated use `GetCurrentUserTeam$inboundSchema` instead. */ - export const inboundSchema = GetCurrentUserTeam$inboundSchema; - /** @deprecated use `GetCurrentUserTeam$outboundSchema` instead. */ - export const outboundSchema = GetCurrentUserTeam$outboundSchema; - /** @deprecated use `GetCurrentUserTeam$Outbound` instead. */ - export type Outbound = GetCurrentUserTeam$Outbound; -} - export function getCurrentUserTeamToJSON( getCurrentUserTeam: GetCurrentUserTeam, ): string { @@ -169,7 +147,6 @@ export function getCurrentUserTeamToJSON( GetCurrentUserTeam$outboundSchema.parse(getCurrentUserTeam), ); } - export function getCurrentUserTeamFromJSON( jsonString: string, ): SafeParseResult { @@ -196,9 +173,9 @@ export const GetCurrentUserResponse$inboundSchema: z.ZodType< timezoneAutoSync: z.nullable(z.boolean()), timeFormat: z.nullable(z.number()), dateFormat: z.nullable(GetCurrentUserDateFormat$inboundSchema), + fileKey: z.nullable(z.string()), team: z.nullable(z.lazy(() => GetCurrentUserTeam$inboundSchema)), }); - /** @internal */ export type GetCurrentUserResponse$Outbound = { id: string; @@ -211,6 +188,7 @@ export type GetCurrentUserResponse$Outbound = { timezoneAutoSync: boolean | null; timeFormat: number | null; dateFormat: string | null; + fileKey: string | null; team: GetCurrentUserTeam$Outbound | null; }; @@ -230,22 +208,10 @@ export const GetCurrentUserResponse$outboundSchema: z.ZodType< timezoneAutoSync: z.nullable(z.boolean()), timeFormat: z.nullable(z.number()), dateFormat: z.nullable(GetCurrentUserDateFormat$outboundSchema), + fileKey: z.nullable(z.string()), team: z.nullable(z.lazy(() => GetCurrentUserTeam$outboundSchema)), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCurrentUserResponse$ { - /** @deprecated use `GetCurrentUserResponse$inboundSchema` instead. */ - export const inboundSchema = GetCurrentUserResponse$inboundSchema; - /** @deprecated use `GetCurrentUserResponse$outboundSchema` instead. */ - export const outboundSchema = GetCurrentUserResponse$outboundSchema; - /** @deprecated use `GetCurrentUserResponse$Outbound` instead. */ - export type Outbound = GetCurrentUserResponse$Outbound; -} - export function getCurrentUserResponseToJSON( getCurrentUserResponse: GetCurrentUserResponse, ): string { @@ -253,7 +219,6 @@ export function getCurrentUserResponseToJSON( GetCurrentUserResponse$outboundSchema.parse(getCurrentUserResponse), ); } - export function getCurrentUserResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getcustomerbyid.ts b/src/models/operations/getcustomerbyid.ts index d005a84..54b8687 100644 --- a/src/models/operations/getcustomerbyid.ts +++ b/src/models/operations/getcustomerbyid.ts @@ -2,12 +2,15 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetCustomerByIdRequest = { + /** + * Unique identifier of the customer to retrieve + */ id: string; }; @@ -120,7 +123,6 @@ export const GetCustomerByIdRequest$inboundSchema: z.ZodType< > = z.object({ id: z.string(), }); - /** @internal */ export type GetCustomerByIdRequest$Outbound = { id: string; @@ -135,19 +137,6 @@ export const GetCustomerByIdRequest$outboundSchema: z.ZodType< id: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCustomerByIdRequest$ { - /** @deprecated use `GetCustomerByIdRequest$inboundSchema` instead. */ - export const inboundSchema = GetCustomerByIdRequest$inboundSchema; - /** @deprecated use `GetCustomerByIdRequest$outboundSchema` instead. */ - export const outboundSchema = GetCustomerByIdRequest$outboundSchema; - /** @deprecated use `GetCustomerByIdRequest$Outbound` instead. */ - export type Outbound = GetCustomerByIdRequest$Outbound; -} - export function getCustomerByIdRequestToJSON( getCustomerByIdRequest: GetCustomerByIdRequest, ): string { @@ -155,7 +144,6 @@ export function getCustomerByIdRequestToJSON( GetCustomerByIdRequest$outboundSchema.parse(getCustomerByIdRequest), ); } - export function getCustomerByIdRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -175,7 +163,6 @@ export const GetCustomerByIdTag$inboundSchema: z.ZodType< id: z.string(), name: z.string(), }); - /** @internal */ export type GetCustomerByIdTag$Outbound = { id: string; @@ -192,19 +179,6 @@ export const GetCustomerByIdTag$outboundSchema: z.ZodType< name: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCustomerByIdTag$ { - /** @deprecated use `GetCustomerByIdTag$inboundSchema` instead. */ - export const inboundSchema = GetCustomerByIdTag$inboundSchema; - /** @deprecated use `GetCustomerByIdTag$outboundSchema` instead. */ - export const outboundSchema = GetCustomerByIdTag$outboundSchema; - /** @deprecated use `GetCustomerByIdTag$Outbound` instead. */ - export type Outbound = GetCustomerByIdTag$Outbound; -} - export function getCustomerByIdTagToJSON( getCustomerByIdTag: GetCustomerByIdTag, ): string { @@ -212,7 +186,6 @@ export function getCustomerByIdTagToJSON( GetCustomerByIdTag$outboundSchema.parse(getCustomerByIdTag), ); } - export function getCustomerByIdTagFromJSON( jsonString: string, ): SafeParseResult { @@ -251,7 +224,6 @@ export const GetCustomerByIdResponse$inboundSchema: z.ZodType< projectCount: z.number(), tags: z.array(z.lazy(() => GetCustomerByIdTag$inboundSchema)), }); - /** @internal */ export type GetCustomerByIdResponse$Outbound = { id: string; @@ -306,19 +278,6 @@ export const GetCustomerByIdResponse$outboundSchema: z.ZodType< tags: z.array(z.lazy(() => GetCustomerByIdTag$outboundSchema)), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCustomerByIdResponse$ { - /** @deprecated use `GetCustomerByIdResponse$inboundSchema` instead. */ - export const inboundSchema = GetCustomerByIdResponse$inboundSchema; - /** @deprecated use `GetCustomerByIdResponse$outboundSchema` instead. */ - export const outboundSchema = GetCustomerByIdResponse$outboundSchema; - /** @deprecated use `GetCustomerByIdResponse$Outbound` instead. */ - export type Outbound = GetCustomerByIdResponse$Outbound; -} - export function getCustomerByIdResponseToJSON( getCustomerByIdResponse: GetCustomerByIdResponse, ): string { @@ -326,7 +285,6 @@ export function getCustomerByIdResponseToJSON( GetCustomerByIdResponse$outboundSchema.parse(getCustomerByIdResponse), ); } - export function getCustomerByIdResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getdocumentbyid.ts b/src/models/operations/getdocumentbyid.ts index 054db4a..a3831c4 100644 --- a/src/models/operations/getdocumentbyid.ts +++ b/src/models/operations/getdocumentbyid.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -67,7 +67,6 @@ export const GetDocumentByIdRequest$inboundSchema: z.ZodType< > = z.object({ id: z.nullable(z.string()), }); - /** @internal */ export type GetDocumentByIdRequest$Outbound = { id: string | null; @@ -82,19 +81,6 @@ export const GetDocumentByIdRequest$outboundSchema: z.ZodType< id: z.nullable(z.string()), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetDocumentByIdRequest$ { - /** @deprecated use `GetDocumentByIdRequest$inboundSchema` instead. */ - export const inboundSchema = GetDocumentByIdRequest$inboundSchema; - /** @deprecated use `GetDocumentByIdRequest$outboundSchema` instead. */ - export const outboundSchema = GetDocumentByIdRequest$outboundSchema; - /** @deprecated use `GetDocumentByIdRequest$Outbound` instead. */ - export type Outbound = GetDocumentByIdRequest$Outbound; -} - export function getDocumentByIdRequestToJSON( getDocumentByIdRequest: GetDocumentByIdRequest, ): string { @@ -102,7 +88,6 @@ export function getDocumentByIdRequestToJSON( GetDocumentByIdRequest$outboundSchema.parse(getDocumentByIdRequest), ); } - export function getDocumentByIdRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -122,7 +107,6 @@ export const GetDocumentByIdMetadata$inboundSchema: z.ZodType< size: z.nullable(z.number()), mimetype: z.nullable(z.string()), }); - /** @internal */ export type GetDocumentByIdMetadata$Outbound = { size: number | null; @@ -139,19 +123,6 @@ export const GetDocumentByIdMetadata$outboundSchema: z.ZodType< mimetype: z.nullable(z.string()), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetDocumentByIdMetadata$ { - /** @deprecated use `GetDocumentByIdMetadata$inboundSchema` instead. */ - export const inboundSchema = GetDocumentByIdMetadata$inboundSchema; - /** @deprecated use `GetDocumentByIdMetadata$outboundSchema` instead. */ - export const outboundSchema = GetDocumentByIdMetadata$outboundSchema; - /** @deprecated use `GetDocumentByIdMetadata$Outbound` instead. */ - export type Outbound = GetDocumentByIdMetadata$Outbound; -} - export function getDocumentByIdMetadataToJSON( getDocumentByIdMetadata: GetDocumentByIdMetadata, ): string { @@ -159,7 +130,6 @@ export function getDocumentByIdMetadataToJSON( GetDocumentByIdMetadata$outboundSchema.parse(getDocumentByIdMetadata), ); } - export function getDocumentByIdMetadataFromJSON( jsonString: string, ): SafeParseResult { @@ -184,7 +154,6 @@ export const GetDocumentByIdResponse$inboundSchema: z.ZodType< summary: z.nullable(z.string()), date: z.nullable(z.string()), }); - /** @internal */ export type GetDocumentByIdResponse$Outbound = { id: string; @@ -211,19 +180,6 @@ export const GetDocumentByIdResponse$outboundSchema: z.ZodType< date: z.nullable(z.string()), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetDocumentByIdResponse$ { - /** @deprecated use `GetDocumentByIdResponse$inboundSchema` instead. */ - export const inboundSchema = GetDocumentByIdResponse$inboundSchema; - /** @deprecated use `GetDocumentByIdResponse$outboundSchema` instead. */ - export const outboundSchema = GetDocumentByIdResponse$outboundSchema; - /** @deprecated use `GetDocumentByIdResponse$Outbound` instead. */ - export type Outbound = GetDocumentByIdResponse$Outbound; -} - export function getDocumentByIdResponseToJSON( getDocumentByIdResponse: GetDocumentByIdResponse, ): string { @@ -231,7 +187,6 @@ export function getDocumentByIdResponseToJSON( GetDocumentByIdResponse$outboundSchema.parse(getDocumentByIdResponse), ); } - export function getDocumentByIdResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getdocumentpresignedurl.ts b/src/models/operations/getdocumentpresignedurl.ts index a5ed2dd..e6edb7a 100644 --- a/src/models/operations/getdocumentpresignedurl.ts +++ b/src/models/operations/getdocumentpresignedurl.ts @@ -2,13 +2,19 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetDocumentPreSignedUrlRequest = { + /** + * Unique identifier of the document to generate a pre-signed URL for + */ id: string; + /** + * Whether to force download the file. If true, the file will be downloaded. If false or omitted, the file will be displayed in the browser if possible. + */ download?: boolean | null | undefined; }; @@ -39,7 +45,6 @@ export const GetDocumentPreSignedUrlRequest$inboundSchema: z.ZodType< id: z.string(), download: z.nullable(z.boolean()).optional(), }); - /** @internal */ export type GetDocumentPreSignedUrlRequest$Outbound = { id: string; @@ -56,19 +61,6 @@ export const GetDocumentPreSignedUrlRequest$outboundSchema: z.ZodType< download: z.nullable(z.boolean()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetDocumentPreSignedUrlRequest$ { - /** @deprecated use `GetDocumentPreSignedUrlRequest$inboundSchema` instead. */ - export const inboundSchema = GetDocumentPreSignedUrlRequest$inboundSchema; - /** @deprecated use `GetDocumentPreSignedUrlRequest$outboundSchema` instead. */ - export const outboundSchema = GetDocumentPreSignedUrlRequest$outboundSchema; - /** @deprecated use `GetDocumentPreSignedUrlRequest$Outbound` instead. */ - export type Outbound = GetDocumentPreSignedUrlRequest$Outbound; -} - export function getDocumentPreSignedUrlRequestToJSON( getDocumentPreSignedUrlRequest: GetDocumentPreSignedUrlRequest, ): string { @@ -78,7 +70,6 @@ export function getDocumentPreSignedUrlRequestToJSON( ), ); } - export function getDocumentPreSignedUrlRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -99,7 +90,6 @@ export const GetDocumentPreSignedUrlResponse$inboundSchema: z.ZodType< expiresAt: z.string().datetime({ offset: true }).transform(v => new Date(v)), fileName: z.nullable(z.string()), }); - /** @internal */ export type GetDocumentPreSignedUrlResponse$Outbound = { url: string; @@ -118,19 +108,6 @@ export const GetDocumentPreSignedUrlResponse$outboundSchema: z.ZodType< fileName: z.nullable(z.string()), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetDocumentPreSignedUrlResponse$ { - /** @deprecated use `GetDocumentPreSignedUrlResponse$inboundSchema` instead. */ - export const inboundSchema = GetDocumentPreSignedUrlResponse$inboundSchema; - /** @deprecated use `GetDocumentPreSignedUrlResponse$outboundSchema` instead. */ - export const outboundSchema = GetDocumentPreSignedUrlResponse$outboundSchema; - /** @deprecated use `GetDocumentPreSignedUrlResponse$Outbound` instead. */ - export type Outbound = GetDocumentPreSignedUrlResponse$Outbound; -} - export function getDocumentPreSignedUrlResponseToJSON( getDocumentPreSignedUrlResponse: GetDocumentPreSignedUrlResponse, ): string { @@ -140,7 +117,6 @@ export function getDocumentPreSignedUrlResponseToJSON( ), ); } - export function getDocumentPreSignedUrlResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getexpensesreports.ts b/src/models/operations/getexpensesreports.ts index b08cd36..ebd82d2 100644 --- a/src/models/operations/getexpensesreports.ts +++ b/src/models/operations/getexpensesreports.ts @@ -2,14 +2,23 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetExpensesReportsRequest = { + /** + * Start date (ISO 8601 format) + */ from: string; + /** + * End date (ISO 8601 format) + */ to: string; + /** + * Currency code (ISO 4217) + */ currency?: string | undefined; }; @@ -23,7 +32,6 @@ export const GetExpensesReportsRequest$inboundSchema: z.ZodType< to: z.string(), currency: z.string().optional(), }); - /** @internal */ export type GetExpensesReportsRequest$Outbound = { from: string; @@ -42,19 +50,6 @@ export const GetExpensesReportsRequest$outboundSchema: z.ZodType< currency: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetExpensesReportsRequest$ { - /** @deprecated use `GetExpensesReportsRequest$inboundSchema` instead. */ - export const inboundSchema = GetExpensesReportsRequest$inboundSchema; - /** @deprecated use `GetExpensesReportsRequest$outboundSchema` instead. */ - export const outboundSchema = GetExpensesReportsRequest$outboundSchema; - /** @deprecated use `GetExpensesReportsRequest$Outbound` instead. */ - export type Outbound = GetExpensesReportsRequest$Outbound; -} - export function getExpensesReportsRequestToJSON( getExpensesReportsRequest: GetExpensesReportsRequest, ): string { @@ -62,7 +57,6 @@ export function getExpensesReportsRequestToJSON( GetExpensesReportsRequest$outboundSchema.parse(getExpensesReportsRequest), ); } - export function getExpensesReportsRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getfortnoxinstallurl.ts b/src/models/operations/getfortnoxinstallurl.ts new file mode 100644 index 0000000..c601bf5 --- /dev/null +++ b/src/models/operations/getfortnoxinstallurl.ts @@ -0,0 +1,56 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +/** + * Fortnox install URL + */ +export type GetFortnoxInstallUrlResponse = { + url: string; +}; + +/** @internal */ +export const GetFortnoxInstallUrlResponse$inboundSchema: z.ZodType< + GetFortnoxInstallUrlResponse, + z.ZodTypeDef, + unknown +> = z.object({ + url: z.string(), +}); +/** @internal */ +export type GetFortnoxInstallUrlResponse$Outbound = { + url: string; +}; + +/** @internal */ +export const GetFortnoxInstallUrlResponse$outboundSchema: z.ZodType< + GetFortnoxInstallUrlResponse$Outbound, + z.ZodTypeDef, + GetFortnoxInstallUrlResponse +> = z.object({ + url: z.string(), +}); + +export function getFortnoxInstallUrlResponseToJSON( + getFortnoxInstallUrlResponse: GetFortnoxInstallUrlResponse, +): string { + return JSON.stringify( + GetFortnoxInstallUrlResponse$outboundSchema.parse( + getFortnoxInstallUrlResponse, + ), + ); +} +export function getFortnoxInstallUrlResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetFortnoxInstallUrlResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetFortnoxInstallUrlResponse' from JSON`, + ); +} diff --git a/src/models/operations/getgmailinstallurl.ts b/src/models/operations/getgmailinstallurl.ts new file mode 100644 index 0000000..c559a72 --- /dev/null +++ b/src/models/operations/getgmailinstallurl.ts @@ -0,0 +1,54 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +/** + * Gmail install URL + */ +export type GetGmailInstallUrlResponse = { + url: string; +}; + +/** @internal */ +export const GetGmailInstallUrlResponse$inboundSchema: z.ZodType< + GetGmailInstallUrlResponse, + z.ZodTypeDef, + unknown +> = z.object({ + url: z.string(), +}); +/** @internal */ +export type GetGmailInstallUrlResponse$Outbound = { + url: string; +}; + +/** @internal */ +export const GetGmailInstallUrlResponse$outboundSchema: z.ZodType< + GetGmailInstallUrlResponse$Outbound, + z.ZodTypeDef, + GetGmailInstallUrlResponse +> = z.object({ + url: z.string(), +}); + +export function getGmailInstallUrlResponseToJSON( + getGmailInstallUrlResponse: GetGmailInstallUrlResponse, +): string { + return JSON.stringify( + GetGmailInstallUrlResponse$outboundSchema.parse(getGmailInstallUrlResponse), + ); +} +export function getGmailInstallUrlResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetGmailInstallUrlResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetGmailInstallUrlResponse' from JSON`, + ); +} diff --git a/src/models/operations/getinboxitembyid.ts b/src/models/operations/getinboxitembyid.ts index 4ae437c..943538c 100644 --- a/src/models/operations/getinboxitembyid.ts +++ b/src/models/operations/getinboxitembyid.ts @@ -2,12 +2,15 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetInboxItemByIdRequest = { + /** + * The unique identifier of the inbox item. + */ id: string; }; @@ -103,7 +106,6 @@ export const GetInboxItemByIdRequest$inboundSchema: z.ZodType< > = z.object({ id: z.string(), }); - /** @internal */ export type GetInboxItemByIdRequest$Outbound = { id: string; @@ -118,19 +120,6 @@ export const GetInboxItemByIdRequest$outboundSchema: z.ZodType< id: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetInboxItemByIdRequest$ { - /** @deprecated use `GetInboxItemByIdRequest$inboundSchema` instead. */ - export const inboundSchema = GetInboxItemByIdRequest$inboundSchema; - /** @deprecated use `GetInboxItemByIdRequest$outboundSchema` instead. */ - export const outboundSchema = GetInboxItemByIdRequest$outboundSchema; - /** @deprecated use `GetInboxItemByIdRequest$Outbound` instead. */ - export type Outbound = GetInboxItemByIdRequest$Outbound; -} - export function getInboxItemByIdRequestToJSON( getInboxItemByIdRequest: GetInboxItemByIdRequest, ): string { @@ -138,7 +127,6 @@ export function getInboxItemByIdRequestToJSON( GetInboxItemByIdRequest$outboundSchema.parse(getInboxItemByIdRequest), ); } - export function getInboxItemByIdRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -161,7 +149,6 @@ export const GetInboxItemByIdTransaction$inboundSchema: z.ZodType< name: z.string(), date: z.string(), }); - /** @internal */ export type GetInboxItemByIdTransaction$Outbound = { id: string; @@ -184,19 +171,6 @@ export const GetInboxItemByIdTransaction$outboundSchema: z.ZodType< date: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetInboxItemByIdTransaction$ { - /** @deprecated use `GetInboxItemByIdTransaction$inboundSchema` instead. */ - export const inboundSchema = GetInboxItemByIdTransaction$inboundSchema; - /** @deprecated use `GetInboxItemByIdTransaction$outboundSchema` instead. */ - export const outboundSchema = GetInboxItemByIdTransaction$outboundSchema; - /** @deprecated use `GetInboxItemByIdTransaction$Outbound` instead. */ - export type Outbound = GetInboxItemByIdTransaction$Outbound; -} - export function getInboxItemByIdTransactionToJSON( getInboxItemByIdTransaction: GetInboxItemByIdTransaction, ): string { @@ -206,7 +180,6 @@ export function getInboxItemByIdTransactionToJSON( ), ); } - export function getInboxItemByIdTransactionFromJSON( jsonString: string, ): SafeParseResult { @@ -239,7 +212,6 @@ export const GetInboxItemByIdResponse$inboundSchema: z.ZodType< z.lazy(() => GetInboxItemByIdTransaction$inboundSchema), ), }); - /** @internal */ export type GetInboxItemByIdResponse$Outbound = { id: string; @@ -280,19 +252,6 @@ export const GetInboxItemByIdResponse$outboundSchema: z.ZodType< ), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetInboxItemByIdResponse$ { - /** @deprecated use `GetInboxItemByIdResponse$inboundSchema` instead. */ - export const inboundSchema = GetInboxItemByIdResponse$inboundSchema; - /** @deprecated use `GetInboxItemByIdResponse$outboundSchema` instead. */ - export const outboundSchema = GetInboxItemByIdResponse$outboundSchema; - /** @deprecated use `GetInboxItemByIdResponse$Outbound` instead. */ - export type Outbound = GetInboxItemByIdResponse$Outbound; -} - export function getInboxItemByIdResponseToJSON( getInboxItemByIdResponse: GetInboxItemByIdResponse, ): string { @@ -300,7 +259,6 @@ export function getInboxItemByIdResponseToJSON( GetInboxItemByIdResponse$outboundSchema.parse(getInboxItemByIdResponse), ); } - export function getInboxItemByIdResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getinboxpresignedurl.ts b/src/models/operations/getinboxpresignedurl.ts index df7e9d4..2172d1f 100644 --- a/src/models/operations/getinboxpresignedurl.ts +++ b/src/models/operations/getinboxpresignedurl.ts @@ -2,13 +2,19 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetInboxPreSignedUrlRequest = { + /** + * Unique identifier of the inbox item to generate a pre-signed URL for + */ id: string; + /** + * Whether to force download the file. If true, the file will be downloaded. If false or omitted, the file will be displayed in the browser if possible. + */ download?: boolean | null | undefined; }; @@ -39,7 +45,6 @@ export const GetInboxPreSignedUrlRequest$inboundSchema: z.ZodType< id: z.string(), download: z.nullable(z.boolean()).optional(), }); - /** @internal */ export type GetInboxPreSignedUrlRequest$Outbound = { id: string; @@ -56,19 +61,6 @@ export const GetInboxPreSignedUrlRequest$outboundSchema: z.ZodType< download: z.nullable(z.boolean()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetInboxPreSignedUrlRequest$ { - /** @deprecated use `GetInboxPreSignedUrlRequest$inboundSchema` instead. */ - export const inboundSchema = GetInboxPreSignedUrlRequest$inboundSchema; - /** @deprecated use `GetInboxPreSignedUrlRequest$outboundSchema` instead. */ - export const outboundSchema = GetInboxPreSignedUrlRequest$outboundSchema; - /** @deprecated use `GetInboxPreSignedUrlRequest$Outbound` instead. */ - export type Outbound = GetInboxPreSignedUrlRequest$Outbound; -} - export function getInboxPreSignedUrlRequestToJSON( getInboxPreSignedUrlRequest: GetInboxPreSignedUrlRequest, ): string { @@ -78,7 +70,6 @@ export function getInboxPreSignedUrlRequestToJSON( ), ); } - export function getInboxPreSignedUrlRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -99,7 +90,6 @@ export const GetInboxPreSignedUrlResponse$inboundSchema: z.ZodType< expiresAt: z.string().datetime({ offset: true }).transform(v => new Date(v)), fileName: z.nullable(z.string()), }); - /** @internal */ export type GetInboxPreSignedUrlResponse$Outbound = { url: string; @@ -118,19 +108,6 @@ export const GetInboxPreSignedUrlResponse$outboundSchema: z.ZodType< fileName: z.nullable(z.string()), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetInboxPreSignedUrlResponse$ { - /** @deprecated use `GetInboxPreSignedUrlResponse$inboundSchema` instead. */ - export const inboundSchema = GetInboxPreSignedUrlResponse$inboundSchema; - /** @deprecated use `GetInboxPreSignedUrlResponse$outboundSchema` instead. */ - export const outboundSchema = GetInboxPreSignedUrlResponse$outboundSchema; - /** @deprecated use `GetInboxPreSignedUrlResponse$Outbound` instead. */ - export type Outbound = GetInboxPreSignedUrlResponse$Outbound; -} - export function getInboxPreSignedUrlResponseToJSON( getInboxPreSignedUrlResponse: GetInboxPreSignedUrlResponse, ): string { @@ -140,7 +117,6 @@ export function getInboxPreSignedUrlResponseToJSON( ), ); } - export function getInboxPreSignedUrlResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getinvoicebyid.ts b/src/models/operations/getinvoicebyid.ts index 8140982..4ae5378 100644 --- a/src/models/operations/getinvoicebyid.ts +++ b/src/models/operations/getinvoicebyid.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -156,7 +156,6 @@ export const GetInvoiceByIdRequest$inboundSchema: z.ZodType< > = z.object({ id: z.string(), }); - /** @internal */ export type GetInvoiceByIdRequest$Outbound = { id: string; @@ -171,19 +170,6 @@ export const GetInvoiceByIdRequest$outboundSchema: z.ZodType< id: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetInvoiceByIdRequest$ { - /** @deprecated use `GetInvoiceByIdRequest$inboundSchema` instead. */ - export const inboundSchema = GetInvoiceByIdRequest$inboundSchema; - /** @deprecated use `GetInvoiceByIdRequest$outboundSchema` instead. */ - export const outboundSchema = GetInvoiceByIdRequest$outboundSchema; - /** @deprecated use `GetInvoiceByIdRequest$Outbound` instead. */ - export type Outbound = GetInvoiceByIdRequest$Outbound; -} - export function getInvoiceByIdRequestToJSON( getInvoiceByIdRequest: GetInvoiceByIdRequest, ): string { @@ -191,7 +177,6 @@ export function getInvoiceByIdRequestToJSON( GetInvoiceByIdRequest$outboundSchema.parse(getInvoiceByIdRequest), ); } - export function getInvoiceByIdRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -206,23 +191,11 @@ export function getInvoiceByIdRequestFromJSON( export const GetInvoiceByIdStatus$inboundSchema: z.ZodNativeEnum< typeof GetInvoiceByIdStatus > = z.nativeEnum(GetInvoiceByIdStatus); - /** @internal */ export const GetInvoiceByIdStatus$outboundSchema: z.ZodNativeEnum< typeof GetInvoiceByIdStatus > = GetInvoiceByIdStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetInvoiceByIdStatus$ { - /** @deprecated use `GetInvoiceByIdStatus$inboundSchema` instead. */ - export const inboundSchema = GetInvoiceByIdStatus$inboundSchema; - /** @deprecated use `GetInvoiceByIdStatus$outboundSchema` instead. */ - export const outboundSchema = GetInvoiceByIdStatus$outboundSchema; -} - /** @internal */ export const GetInvoiceByIdCustomer$inboundSchema: z.ZodType< GetInvoiceByIdCustomer, @@ -234,7 +207,6 @@ export const GetInvoiceByIdCustomer$inboundSchema: z.ZodType< website: z.nullable(z.string()), email: z.nullable(z.string()), }); - /** @internal */ export type GetInvoiceByIdCustomer$Outbound = { id: string; @@ -255,19 +227,6 @@ export const GetInvoiceByIdCustomer$outboundSchema: z.ZodType< email: z.nullable(z.string()), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetInvoiceByIdCustomer$ { - /** @deprecated use `GetInvoiceByIdCustomer$inboundSchema` instead. */ - export const inboundSchema = GetInvoiceByIdCustomer$inboundSchema; - /** @deprecated use `GetInvoiceByIdCustomer$outboundSchema` instead. */ - export const outboundSchema = GetInvoiceByIdCustomer$outboundSchema; - /** @deprecated use `GetInvoiceByIdCustomer$Outbound` instead. */ - export type Outbound = GetInvoiceByIdCustomer$Outbound; -} - export function getInvoiceByIdCustomerToJSON( getInvoiceByIdCustomer: GetInvoiceByIdCustomer, ): string { @@ -275,7 +234,6 @@ export function getInvoiceByIdCustomerToJSON( GetInvoiceByIdCustomer$outboundSchema.parse(getInvoiceByIdCustomer), ); } - export function getInvoiceByIdCustomerFromJSON( jsonString: string, ): SafeParseResult { @@ -316,7 +274,6 @@ export const GetInvoiceByIdResponse$inboundSchema: z.ZodType< pdfUrl: z.nullable(z.string()), previewUrl: z.nullable(z.string()), }); - /** @internal */ export type GetInvoiceByIdResponse$Outbound = { id: string; @@ -375,19 +332,6 @@ export const GetInvoiceByIdResponse$outboundSchema: z.ZodType< previewUrl: z.nullable(z.string()), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetInvoiceByIdResponse$ { - /** @deprecated use `GetInvoiceByIdResponse$inboundSchema` instead. */ - export const inboundSchema = GetInvoiceByIdResponse$inboundSchema; - /** @deprecated use `GetInvoiceByIdResponse$outboundSchema` instead. */ - export const outboundSchema = GetInvoiceByIdResponse$outboundSchema; - /** @deprecated use `GetInvoiceByIdResponse$Outbound` instead. */ - export type Outbound = GetInvoiceByIdResponse$Outbound; -} - export function getInvoiceByIdResponseToJSON( getInvoiceByIdResponse: GetInvoiceByIdResponse, ): string { @@ -395,7 +339,6 @@ export function getInvoiceByIdResponseToJSON( GetInvoiceByIdResponse$outboundSchema.parse(getInvoiceByIdResponse), ); } - export function getInvoiceByIdResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getinvoicespaymentstatus.ts b/src/models/operations/getinvoicespaymentstatus.ts index 7ef070f..e51dc0f 100644 --- a/src/models/operations/getinvoicespaymentstatus.ts +++ b/src/models/operations/getinvoicespaymentstatus.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -30,7 +30,6 @@ export const GetInvoicesPaymentStatusResponse$inboundSchema: z.ZodType< score: z.number(), paymentStatus: z.string(), }); - /** @internal */ export type GetInvoicesPaymentStatusResponse$Outbound = { score: number; @@ -47,19 +46,6 @@ export const GetInvoicesPaymentStatusResponse$outboundSchema: z.ZodType< paymentStatus: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetInvoicesPaymentStatusResponse$ { - /** @deprecated use `GetInvoicesPaymentStatusResponse$inboundSchema` instead. */ - export const inboundSchema = GetInvoicesPaymentStatusResponse$inboundSchema; - /** @deprecated use `GetInvoicesPaymentStatusResponse$outboundSchema` instead. */ - export const outboundSchema = GetInvoicesPaymentStatusResponse$outboundSchema; - /** @deprecated use `GetInvoicesPaymentStatusResponse$Outbound` instead. */ - export type Outbound = GetInvoicesPaymentStatusResponse$Outbound; -} - export function getInvoicesPaymentStatusResponseToJSON( getInvoicesPaymentStatusResponse: GetInvoicesPaymentStatusResponse, ): string { @@ -69,7 +55,6 @@ export function getInvoicesPaymentStatusResponseToJSON( ), ); } - export function getInvoicesPaymentStatusResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getinvoicesummary.ts b/src/models/operations/getinvoicesummary.ts index 4086fc8..55edb7b 100644 --- a/src/models/operations/getinvoicesummary.ts +++ b/src/models/operations/getinvoicesummary.ts @@ -2,84 +2,92 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -/** - * Filter summary by invoice status - */ export const GetInvoiceSummaryStatus = { Draft: "draft", Overdue: "overdue", Paid: "paid", Unpaid: "unpaid", Canceled: "canceled", + Scheduled: "scheduled", } as const; -/** - * Filter summary by invoice status - */ export type GetInvoiceSummaryStatus = ClosedEnum< typeof GetInvoiceSummaryStatus >; export type GetInvoiceSummaryRequest = { /** - * Filter summary by invoice status + * Filter summary by invoice statuses + */ + statuses?: Array | undefined; +}; + +export type Breakdown = { + /** + * Original currency of the invoices + */ + currency: string; + /** + * Total amount in original currency + */ + originalAmount: number; + /** + * Amount converted to base currency + */ + convertedAmount: number; + /** + * Number of invoices in this currency */ - status?: GetInvoiceSummaryStatus | undefined; + count: number; }; +/** + * Invoice summary object containing total amount converted to team's base currency and total invoice count. + */ export type GetInvoiceSummaryResponse = { /** - * Currency of the invoice + * Base currency of the team */ currency: string; /** - * Total amount of the invoice + * Total amount of all invoices converted to base currency */ totalAmount: number; /** - * Number of invoices for this currency + * Total number of invoices */ invoiceCount: number; + /** + * Currency breakdown when multiple currencies are involved + */ + breakdown?: Array | undefined; }; /** @internal */ export const GetInvoiceSummaryStatus$inboundSchema: z.ZodNativeEnum< typeof GetInvoiceSummaryStatus > = z.nativeEnum(GetInvoiceSummaryStatus); - /** @internal */ export const GetInvoiceSummaryStatus$outboundSchema: z.ZodNativeEnum< typeof GetInvoiceSummaryStatus > = GetInvoiceSummaryStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetInvoiceSummaryStatus$ { - /** @deprecated use `GetInvoiceSummaryStatus$inboundSchema` instead. */ - export const inboundSchema = GetInvoiceSummaryStatus$inboundSchema; - /** @deprecated use `GetInvoiceSummaryStatus$outboundSchema` instead. */ - export const outboundSchema = GetInvoiceSummaryStatus$outboundSchema; -} - /** @internal */ export const GetInvoiceSummaryRequest$inboundSchema: z.ZodType< GetInvoiceSummaryRequest, z.ZodTypeDef, unknown > = z.object({ - status: GetInvoiceSummaryStatus$inboundSchema.optional(), + statuses: z.array(GetInvoiceSummaryStatus$inboundSchema).optional(), }); - /** @internal */ export type GetInvoiceSummaryRequest$Outbound = { - status?: string | undefined; + statuses?: Array | undefined; }; /** @internal */ @@ -88,22 +96,9 @@ export const GetInvoiceSummaryRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetInvoiceSummaryRequest > = z.object({ - status: GetInvoiceSummaryStatus$outboundSchema.optional(), + statuses: z.array(GetInvoiceSummaryStatus$outboundSchema).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetInvoiceSummaryRequest$ { - /** @deprecated use `GetInvoiceSummaryRequest$inboundSchema` instead. */ - export const inboundSchema = GetInvoiceSummaryRequest$inboundSchema; - /** @deprecated use `GetInvoiceSummaryRequest$outboundSchema` instead. */ - export const outboundSchema = GetInvoiceSummaryRequest$outboundSchema; - /** @deprecated use `GetInvoiceSummaryRequest$Outbound` instead. */ - export type Outbound = GetInvoiceSummaryRequest$Outbound; -} - export function getInvoiceSummaryRequestToJSON( getInvoiceSummaryRequest: GetInvoiceSummaryRequest, ): string { @@ -111,7 +106,6 @@ export function getInvoiceSummaryRequestToJSON( GetInvoiceSummaryRequest$outboundSchema.parse(getInvoiceSummaryRequest), ); } - export function getInvoiceSummaryRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -122,6 +116,50 @@ export function getInvoiceSummaryRequestFromJSON( ); } +/** @internal */ +export const Breakdown$inboundSchema: z.ZodType< + Breakdown, + z.ZodTypeDef, + unknown +> = z.object({ + currency: z.string(), + originalAmount: z.number(), + convertedAmount: z.number(), + count: z.number(), +}); +/** @internal */ +export type Breakdown$Outbound = { + currency: string; + originalAmount: number; + convertedAmount: number; + count: number; +}; + +/** @internal */ +export const Breakdown$outboundSchema: z.ZodType< + Breakdown$Outbound, + z.ZodTypeDef, + Breakdown +> = z.object({ + currency: z.string(), + originalAmount: z.number(), + convertedAmount: z.number(), + count: z.number(), +}); + +export function breakdownToJSON(breakdown: Breakdown): string { + return JSON.stringify(Breakdown$outboundSchema.parse(breakdown)); +} +export function breakdownFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => Breakdown$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'Breakdown' from JSON`, + ); +} + /** @internal */ export const GetInvoiceSummaryResponse$inboundSchema: z.ZodType< GetInvoiceSummaryResponse, @@ -131,13 +169,14 @@ export const GetInvoiceSummaryResponse$inboundSchema: z.ZodType< currency: z.string(), totalAmount: z.number(), invoiceCount: z.number(), + breakdown: z.array(z.lazy(() => Breakdown$inboundSchema)).optional(), }); - /** @internal */ export type GetInvoiceSummaryResponse$Outbound = { currency: string; totalAmount: number; invoiceCount: number; + breakdown?: Array | undefined; }; /** @internal */ @@ -149,21 +188,9 @@ export const GetInvoiceSummaryResponse$outboundSchema: z.ZodType< currency: z.string(), totalAmount: z.number(), invoiceCount: z.number(), + breakdown: z.array(z.lazy(() => Breakdown$outboundSchema)).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetInvoiceSummaryResponse$ { - /** @deprecated use `GetInvoiceSummaryResponse$inboundSchema` instead. */ - export const inboundSchema = GetInvoiceSummaryResponse$inboundSchema; - /** @deprecated use `GetInvoiceSummaryResponse$outboundSchema` instead. */ - export const outboundSchema = GetInvoiceSummaryResponse$outboundSchema; - /** @deprecated use `GetInvoiceSummaryResponse$Outbound` instead. */ - export type Outbound = GetInvoiceSummaryResponse$Outbound; -} - export function getInvoiceSummaryResponseToJSON( getInvoiceSummaryResponse: GetInvoiceSummaryResponse, ): string { @@ -171,7 +198,6 @@ export function getInvoiceSummaryResponseToJSON( GetInvoiceSummaryResponse$outboundSchema.parse(getInvoiceSummaryResponse), ); } - export function getInvoiceSummaryResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getoauthauthorization.ts b/src/models/operations/getoauthauthorization.ts index c77831c..a0f7fca 100644 --- a/src/models/operations/getoauthauthorization.ts +++ b/src/models/operations/getoauthauthorization.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -25,10 +25,25 @@ export type GetOAuthAuthorizationRequest = { * OAuth response type, must be 'code' */ responseType: ResponseType; + /** + * Client ID of the OAuth application + */ clientId: string; + /** + * Redirect URI for OAuth callback + */ redirectUri: string; + /** + * Space-separated list of requested scopes + */ scope: string; + /** + * State parameter for CSRF protection (min 32 chars, alphanumeric + _.-) + */ state: string; + /** + * Code challenge for PKCE + */ codeChallenge?: string | undefined; }; @@ -113,22 +128,10 @@ export type GetOAuthAuthorizationResponse = { /** @internal */ export const ResponseType$inboundSchema: z.ZodNativeEnum = z.nativeEnum(ResponseType); - /** @internal */ export const ResponseType$outboundSchema: z.ZodNativeEnum = ResponseType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ResponseType$ { - /** @deprecated use `ResponseType$inboundSchema` instead. */ - export const inboundSchema = ResponseType$inboundSchema; - /** @deprecated use `ResponseType$outboundSchema` instead. */ - export const outboundSchema = ResponseType$outboundSchema; -} - /** @internal */ export const GetOAuthAuthorizationRequest$inboundSchema: z.ZodType< GetOAuthAuthorizationRequest, @@ -149,7 +152,6 @@ export const GetOAuthAuthorizationRequest$inboundSchema: z.ZodType< "code_challenge": "codeChallenge", }); }); - /** @internal */ export type GetOAuthAuthorizationRequest$Outbound = { response_type: string; @@ -181,19 +183,6 @@ export const GetOAuthAuthorizationRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetOAuthAuthorizationRequest$ { - /** @deprecated use `GetOAuthAuthorizationRequest$inboundSchema` instead. */ - export const inboundSchema = GetOAuthAuthorizationRequest$inboundSchema; - /** @deprecated use `GetOAuthAuthorizationRequest$outboundSchema` instead. */ - export const outboundSchema = GetOAuthAuthorizationRequest$outboundSchema; - /** @deprecated use `GetOAuthAuthorizationRequest$Outbound` instead. */ - export type Outbound = GetOAuthAuthorizationRequest$Outbound; -} - export function getOAuthAuthorizationRequestToJSON( getOAuthAuthorizationRequest: GetOAuthAuthorizationRequest, ): string { @@ -203,7 +192,6 @@ export function getOAuthAuthorizationRequestToJSON( ), ); } - export function getOAuthAuthorizationRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -218,23 +206,11 @@ export function getOAuthAuthorizationRequestFromJSON( export const GetOAuthAuthorizationStatus$inboundSchema: z.ZodNativeEnum< typeof GetOAuthAuthorizationStatus > = z.nativeEnum(GetOAuthAuthorizationStatus); - /** @internal */ export const GetOAuthAuthorizationStatus$outboundSchema: z.ZodNativeEnum< typeof GetOAuthAuthorizationStatus > = GetOAuthAuthorizationStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetOAuthAuthorizationStatus$ { - /** @deprecated use `GetOAuthAuthorizationStatus$inboundSchema` instead. */ - export const inboundSchema = GetOAuthAuthorizationStatus$inboundSchema; - /** @deprecated use `GetOAuthAuthorizationStatus$outboundSchema` instead. */ - export const outboundSchema = GetOAuthAuthorizationStatus$outboundSchema; -} - /** @internal */ export const GetOAuthAuthorizationResponse$inboundSchema: z.ZodType< GetOAuthAuthorizationResponse, @@ -256,7 +232,6 @@ export const GetOAuthAuthorizationResponse$inboundSchema: z.ZodType< state: z.string().optional(), status: GetOAuthAuthorizationStatus$inboundSchema, }); - /** @internal */ export type GetOAuthAuthorizationResponse$Outbound = { id: string; @@ -297,19 +272,6 @@ export const GetOAuthAuthorizationResponse$outboundSchema: z.ZodType< status: GetOAuthAuthorizationStatus$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetOAuthAuthorizationResponse$ { - /** @deprecated use `GetOAuthAuthorizationResponse$inboundSchema` instead. */ - export const inboundSchema = GetOAuthAuthorizationResponse$inboundSchema; - /** @deprecated use `GetOAuthAuthorizationResponse$outboundSchema` instead. */ - export const outboundSchema = GetOAuthAuthorizationResponse$outboundSchema; - /** @deprecated use `GetOAuthAuthorizationResponse$Outbound` instead. */ - export type Outbound = GetOAuthAuthorizationResponse$Outbound; -} - export function getOAuthAuthorizationResponseToJSON( getOAuthAuthorizationResponse: GetOAuthAuthorizationResponse, ): string { @@ -319,7 +281,6 @@ export function getOAuthAuthorizationResponseToJSON( ), ); } - export function getOAuthAuthorizationResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getoutlookinstallurl.ts b/src/models/operations/getoutlookinstallurl.ts new file mode 100644 index 0000000..a0d9b2e --- /dev/null +++ b/src/models/operations/getoutlookinstallurl.ts @@ -0,0 +1,56 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +/** + * Outlook install URL + */ +export type GetOutlookInstallUrlResponse = { + url: string; +}; + +/** @internal */ +export const GetOutlookInstallUrlResponse$inboundSchema: z.ZodType< + GetOutlookInstallUrlResponse, + z.ZodTypeDef, + unknown +> = z.object({ + url: z.string(), +}); +/** @internal */ +export type GetOutlookInstallUrlResponse$Outbound = { + url: string; +}; + +/** @internal */ +export const GetOutlookInstallUrlResponse$outboundSchema: z.ZodType< + GetOutlookInstallUrlResponse$Outbound, + z.ZodTypeDef, + GetOutlookInstallUrlResponse +> = z.object({ + url: z.string(), +}); + +export function getOutlookInstallUrlResponseToJSON( + getOutlookInstallUrlResponse: GetOutlookInstallUrlResponse, +): string { + return JSON.stringify( + GetOutlookInstallUrlResponse$outboundSchema.parse( + getOutlookInstallUrlResponse, + ), + ); +} +export function getOutlookInstallUrlResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetOutlookInstallUrlResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetOutlookInstallUrlResponse' from JSON`, + ); +} diff --git a/src/models/operations/getprofitreports.ts b/src/models/operations/getprofitreports.ts index 0034bfd..b59c05a 100644 --- a/src/models/operations/getprofitreports.ts +++ b/src/models/operations/getprofitreports.ts @@ -2,17 +2,54 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; +import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +/** + * Type of revenue calculation + */ +export const GetProfitReportsRevenueType = { + Gross: "gross", + Net: "net", +} as const; +/** + * Type of revenue calculation + */ +export type GetProfitReportsRevenueType = ClosedEnum< + typeof GetProfitReportsRevenueType +>; + export type GetProfitReportsRequest = { + /** + * Start date (ISO 8601 format) + */ from: string; + /** + * End date (ISO 8601 format) + */ to: string; + /** + * Currency code (ISO 4217) + */ currency?: string | undefined; + /** + * Type of revenue calculation + */ + revenueType?: GetProfitReportsRevenueType | undefined; }; +/** @internal */ +export const GetProfitReportsRevenueType$inboundSchema: z.ZodNativeEnum< + typeof GetProfitReportsRevenueType +> = z.nativeEnum(GetProfitReportsRevenueType); +/** @internal */ +export const GetProfitReportsRevenueType$outboundSchema: z.ZodNativeEnum< + typeof GetProfitReportsRevenueType +> = GetProfitReportsRevenueType$inboundSchema; + /** @internal */ export const GetProfitReportsRequest$inboundSchema: z.ZodType< GetProfitReportsRequest, @@ -22,13 +59,14 @@ export const GetProfitReportsRequest$inboundSchema: z.ZodType< from: z.string(), to: z.string(), currency: z.string().optional(), + revenueType: GetProfitReportsRevenueType$inboundSchema.default("net"), }); - /** @internal */ export type GetProfitReportsRequest$Outbound = { from: string; to: string; currency?: string | undefined; + revenueType: string; }; /** @internal */ @@ -40,21 +78,9 @@ export const GetProfitReportsRequest$outboundSchema: z.ZodType< from: z.string(), to: z.string(), currency: z.string().optional(), + revenueType: GetProfitReportsRevenueType$outboundSchema.default("net"), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetProfitReportsRequest$ { - /** @deprecated use `GetProfitReportsRequest$inboundSchema` instead. */ - export const inboundSchema = GetProfitReportsRequest$inboundSchema; - /** @deprecated use `GetProfitReportsRequest$outboundSchema` instead. */ - export const outboundSchema = GetProfitReportsRequest$outboundSchema; - /** @deprecated use `GetProfitReportsRequest$Outbound` instead. */ - export type Outbound = GetProfitReportsRequest$Outbound; -} - export function getProfitReportsRequestToJSON( getProfitReportsRequest: GetProfitReportsRequest, ): string { @@ -62,7 +88,6 @@ export function getProfitReportsRequestToJSON( GetProfitReportsRequest$outboundSchema.parse(getProfitReportsRequest), ); } - export function getProfitReportsRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getquickbooksinstallurl.ts b/src/models/operations/getquickbooksinstallurl.ts new file mode 100644 index 0000000..ad81e40 --- /dev/null +++ b/src/models/operations/getquickbooksinstallurl.ts @@ -0,0 +1,56 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +/** + * QuickBooks install URL + */ +export type GetQuickBooksInstallUrlResponse = { + url: string; +}; + +/** @internal */ +export const GetQuickBooksInstallUrlResponse$inboundSchema: z.ZodType< + GetQuickBooksInstallUrlResponse, + z.ZodTypeDef, + unknown +> = z.object({ + url: z.string(), +}); +/** @internal */ +export type GetQuickBooksInstallUrlResponse$Outbound = { + url: string; +}; + +/** @internal */ +export const GetQuickBooksInstallUrlResponse$outboundSchema: z.ZodType< + GetQuickBooksInstallUrlResponse$Outbound, + z.ZodTypeDef, + GetQuickBooksInstallUrlResponse +> = z.object({ + url: z.string(), +}); + +export function getQuickBooksInstallUrlResponseToJSON( + getQuickBooksInstallUrlResponse: GetQuickBooksInstallUrlResponse, +): string { + return JSON.stringify( + GetQuickBooksInstallUrlResponse$outboundSchema.parse( + getQuickBooksInstallUrlResponse, + ), + ); +} +export function getQuickBooksInstallUrlResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetQuickBooksInstallUrlResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetQuickBooksInstallUrlResponse' from JSON`, + ); +} diff --git a/src/models/operations/getrevenuereports.ts b/src/models/operations/getrevenuereports.ts index 8ca0654..6b40539 100644 --- a/src/models/operations/getrevenuereports.ts +++ b/src/models/operations/getrevenuereports.ts @@ -2,17 +2,54 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; +import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +/** + * Type of revenue calculation + */ +export const GetRevenueReportsRevenueType = { + Gross: "gross", + Net: "net", +} as const; +/** + * Type of revenue calculation + */ +export type GetRevenueReportsRevenueType = ClosedEnum< + typeof GetRevenueReportsRevenueType +>; + export type GetRevenueReportsRequest = { + /** + * Start date (ISO 8601 format) + */ from: string; + /** + * End date (ISO 8601 format) + */ to: string; + /** + * Currency code (ISO 4217) + */ currency?: string | undefined; + /** + * Type of revenue calculation + */ + revenueType?: GetRevenueReportsRevenueType | undefined; }; +/** @internal */ +export const GetRevenueReportsRevenueType$inboundSchema: z.ZodNativeEnum< + typeof GetRevenueReportsRevenueType +> = z.nativeEnum(GetRevenueReportsRevenueType); +/** @internal */ +export const GetRevenueReportsRevenueType$outboundSchema: z.ZodNativeEnum< + typeof GetRevenueReportsRevenueType +> = GetRevenueReportsRevenueType$inboundSchema; + /** @internal */ export const GetRevenueReportsRequest$inboundSchema: z.ZodType< GetRevenueReportsRequest, @@ -22,13 +59,14 @@ export const GetRevenueReportsRequest$inboundSchema: z.ZodType< from: z.string(), to: z.string(), currency: z.string().optional(), + revenueType: GetRevenueReportsRevenueType$inboundSchema.default("net"), }); - /** @internal */ export type GetRevenueReportsRequest$Outbound = { from: string; to: string; currency?: string | undefined; + revenueType: string; }; /** @internal */ @@ -40,21 +78,9 @@ export const GetRevenueReportsRequest$outboundSchema: z.ZodType< from: z.string(), to: z.string(), currency: z.string().optional(), + revenueType: GetRevenueReportsRevenueType$outboundSchema.default("net"), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetRevenueReportsRequest$ { - /** @deprecated use `GetRevenueReportsRequest$inboundSchema` instead. */ - export const inboundSchema = GetRevenueReportsRequest$inboundSchema; - /** @deprecated use `GetRevenueReportsRequest$outboundSchema` instead. */ - export const outboundSchema = GetRevenueReportsRequest$outboundSchema; - /** @deprecated use `GetRevenueReportsRequest$Outbound` instead. */ - export type Outbound = GetRevenueReportsRequest$Outbound; -} - export function getRevenueReportsRequestToJSON( getRevenueReportsRequest: GetRevenueReportsRequest, ): string { @@ -62,7 +88,6 @@ export function getRevenueReportsRequestToJSON( GetRevenueReportsRequest$outboundSchema.parse(getRevenueReportsRequest), ); } - export function getRevenueReportsRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getrunwayreports.ts b/src/models/operations/getrunwayreports.ts index a407ccc..0e041d7 100644 --- a/src/models/operations/getrunwayreports.ts +++ b/src/models/operations/getrunwayreports.ts @@ -2,14 +2,23 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetRunwayReportsRequest = { + /** + * Start date (ISO 8601 format) + */ from: string; + /** + * End date (ISO 8601 format) + */ to: string; + /** + * Currency code (ISO 4217) + */ currency?: string | undefined; }; @@ -23,7 +32,6 @@ export const GetRunwayReportsRequest$inboundSchema: z.ZodType< to: z.string(), currency: z.string().optional(), }); - /** @internal */ export type GetRunwayReportsRequest$Outbound = { from: string; @@ -42,19 +50,6 @@ export const GetRunwayReportsRequest$outboundSchema: z.ZodType< currency: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetRunwayReportsRequest$ { - /** @deprecated use `GetRunwayReportsRequest$inboundSchema` instead. */ - export const inboundSchema = GetRunwayReportsRequest$inboundSchema; - /** @deprecated use `GetRunwayReportsRequest$outboundSchema` instead. */ - export const outboundSchema = GetRunwayReportsRequest$outboundSchema; - /** @deprecated use `GetRunwayReportsRequest$Outbound` instead. */ - export type Outbound = GetRunwayReportsRequest$Outbound; -} - export function getRunwayReportsRequestToJSON( getRunwayReportsRequest: GetRunwayReportsRequest, ): string { @@ -62,7 +57,6 @@ export function getRunwayReportsRequestToJSON( GetRunwayReportsRequest$outboundSchema.parse(getRunwayReportsRequest), ); } - export function getRunwayReportsRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getslackinstallurl.ts b/src/models/operations/getslackinstallurl.ts new file mode 100644 index 0000000..20dc12e --- /dev/null +++ b/src/models/operations/getslackinstallurl.ts @@ -0,0 +1,54 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +/** + * Slack install URL + */ +export type GetSlackInstallUrlResponse = { + url: string; +}; + +/** @internal */ +export const GetSlackInstallUrlResponse$inboundSchema: z.ZodType< + GetSlackInstallUrlResponse, + z.ZodTypeDef, + unknown +> = z.object({ + url: z.string(), +}); +/** @internal */ +export type GetSlackInstallUrlResponse$Outbound = { + url: string; +}; + +/** @internal */ +export const GetSlackInstallUrlResponse$outboundSchema: z.ZodType< + GetSlackInstallUrlResponse$Outbound, + z.ZodTypeDef, + GetSlackInstallUrlResponse +> = z.object({ + url: z.string(), +}); + +export function getSlackInstallUrlResponseToJSON( + getSlackInstallUrlResponse: GetSlackInstallUrlResponse, +): string { + return JSON.stringify( + GetSlackInstallUrlResponse$outboundSchema.parse(getSlackInstallUrlResponse), + ); +} +export function getSlackInstallUrlResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetSlackInstallUrlResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetSlackInstallUrlResponse' from JSON`, + ); +} diff --git a/src/models/operations/getspendingreports.ts b/src/models/operations/getspendingreports.ts index ae7d6af..c59811c 100644 --- a/src/models/operations/getspendingreports.ts +++ b/src/models/operations/getspendingreports.ts @@ -2,14 +2,23 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetSpendingReportsRequest = { + /** + * Start date (ISO 8601 format) + */ from: string; + /** + * End date (ISO 8601 format) + */ to: string; + /** + * Currency code (ISO 4217) + */ currency?: string | undefined; }; @@ -23,7 +32,6 @@ export const GetSpendingReportsRequest$inboundSchema: z.ZodType< to: z.string(), currency: z.string().optional(), }); - /** @internal */ export type GetSpendingReportsRequest$Outbound = { from: string; @@ -42,19 +50,6 @@ export const GetSpendingReportsRequest$outboundSchema: z.ZodType< currency: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSpendingReportsRequest$ { - /** @deprecated use `GetSpendingReportsRequest$inboundSchema` instead. */ - export const inboundSchema = GetSpendingReportsRequest$inboundSchema; - /** @deprecated use `GetSpendingReportsRequest$outboundSchema` instead. */ - export const outboundSchema = GetSpendingReportsRequest$outboundSchema; - /** @deprecated use `GetSpendingReportsRequest$Outbound` instead. */ - export type Outbound = GetSpendingReportsRequest$Outbound; -} - export function getSpendingReportsRequestToJSON( getSpendingReportsRequest: GetSpendingReportsRequest, ): string { @@ -62,7 +57,6 @@ export function getSpendingReportsRequestToJSON( GetSpendingReportsRequest$outboundSchema.parse(getSpendingReportsRequest), ); } - export function getSpendingReportsRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getstripeconnectstatus.ts b/src/models/operations/getstripeconnectstatus.ts new file mode 100644 index 0000000..3a749c1 --- /dev/null +++ b/src/models/operations/getstripeconnectstatus.ts @@ -0,0 +1,64 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +/** + * Stripe Connect status + */ +export type GetStripeConnectStatusResponse = { + connected: boolean; + status: string | null; + stripeAccountId: string | null; +}; + +/** @internal */ +export const GetStripeConnectStatusResponse$inboundSchema: z.ZodType< + GetStripeConnectStatusResponse, + z.ZodTypeDef, + unknown +> = z.object({ + connected: z.boolean(), + status: z.nullable(z.string()), + stripeAccountId: z.nullable(z.string()), +}); +/** @internal */ +export type GetStripeConnectStatusResponse$Outbound = { + connected: boolean; + status: string | null; + stripeAccountId: string | null; +}; + +/** @internal */ +export const GetStripeConnectStatusResponse$outboundSchema: z.ZodType< + GetStripeConnectStatusResponse$Outbound, + z.ZodTypeDef, + GetStripeConnectStatusResponse +> = z.object({ + connected: z.boolean(), + status: z.nullable(z.string()), + stripeAccountId: z.nullable(z.string()), +}); + +export function getStripeConnectStatusResponseToJSON( + getStripeConnectStatusResponse: GetStripeConnectStatusResponse, +): string { + return JSON.stringify( + GetStripeConnectStatusResponse$outboundSchema.parse( + getStripeConnectStatusResponse, + ), + ); +} +export function getStripeConnectStatusResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetStripeConnectStatusResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetStripeConnectStatusResponse' from JSON`, + ); +} diff --git a/src/models/operations/getstripeconnecturl.ts b/src/models/operations/getstripeconnecturl.ts new file mode 100644 index 0000000..a810b14 --- /dev/null +++ b/src/models/operations/getstripeconnecturl.ts @@ -0,0 +1,56 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +/** + * Stripe Connect OAuth URL + */ +export type GetStripeConnectUrlResponse = { + url: string; +}; + +/** @internal */ +export const GetStripeConnectUrlResponse$inboundSchema: z.ZodType< + GetStripeConnectUrlResponse, + z.ZodTypeDef, + unknown +> = z.object({ + url: z.string(), +}); +/** @internal */ +export type GetStripeConnectUrlResponse$Outbound = { + url: string; +}; + +/** @internal */ +export const GetStripeConnectUrlResponse$outboundSchema: z.ZodType< + GetStripeConnectUrlResponse$Outbound, + z.ZodTypeDef, + GetStripeConnectUrlResponse +> = z.object({ + url: z.string(), +}); + +export function getStripeConnectUrlResponseToJSON( + getStripeConnectUrlResponse: GetStripeConnectUrlResponse, +): string { + return JSON.stringify( + GetStripeConnectUrlResponse$outboundSchema.parse( + getStripeConnectUrlResponse, + ), + ); +} +export function getStripeConnectUrlResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetStripeConnectUrlResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetStripeConnectUrlResponse' from JSON`, + ); +} diff --git a/src/models/operations/gettagbyid.ts b/src/models/operations/gettagbyid.ts index 777c082..a9378f9 100644 --- a/src/models/operations/gettagbyid.ts +++ b/src/models/operations/gettagbyid.ts @@ -2,12 +2,15 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetTagByIdRequest = { + /** + * The UUID of the tag. + */ id: string; }; @@ -19,7 +22,6 @@ export const GetTagByIdRequest$inboundSchema: z.ZodType< > = z.object({ id: z.string(), }); - /** @internal */ export type GetTagByIdRequest$Outbound = { id: string; @@ -34,19 +36,6 @@ export const GetTagByIdRequest$outboundSchema: z.ZodType< id: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTagByIdRequest$ { - /** @deprecated use `GetTagByIdRequest$inboundSchema` instead. */ - export const inboundSchema = GetTagByIdRequest$inboundSchema; - /** @deprecated use `GetTagByIdRequest$outboundSchema` instead. */ - export const outboundSchema = GetTagByIdRequest$outboundSchema; - /** @deprecated use `GetTagByIdRequest$Outbound` instead. */ - export type Outbound = GetTagByIdRequest$Outbound; -} - export function getTagByIdRequestToJSON( getTagByIdRequest: GetTagByIdRequest, ): string { @@ -54,7 +43,6 @@ export function getTagByIdRequestToJSON( GetTagByIdRequest$outboundSchema.parse(getTagByIdRequest), ); } - export function getTagByIdRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getteambyid.ts b/src/models/operations/getteambyid.ts index 0be3ad3..e78521d 100644 --- a/src/models/operations/getteambyid.ts +++ b/src/models/operations/getteambyid.ts @@ -2,13 +2,16 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetTeamByIdRequest = { + /** + * Unique identifier of the team + */ id: string; }; @@ -55,7 +58,6 @@ export const GetTeamByIdRequest$inboundSchema: z.ZodType< > = z.object({ id: z.string(), }); - /** @internal */ export type GetTeamByIdRequest$Outbound = { id: string; @@ -70,19 +72,6 @@ export const GetTeamByIdRequest$outboundSchema: z.ZodType< id: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTeamByIdRequest$ { - /** @deprecated use `GetTeamByIdRequest$inboundSchema` instead. */ - export const inboundSchema = GetTeamByIdRequest$inboundSchema; - /** @deprecated use `GetTeamByIdRequest$outboundSchema` instead. */ - export const outboundSchema = GetTeamByIdRequest$outboundSchema; - /** @deprecated use `GetTeamByIdRequest$Outbound` instead. */ - export type Outbound = GetTeamByIdRequest$Outbound; -} - export function getTeamByIdRequestToJSON( getTeamByIdRequest: GetTeamByIdRequest, ): string { @@ -90,7 +79,6 @@ export function getTeamByIdRequestToJSON( GetTeamByIdRequest$outboundSchema.parse(getTeamByIdRequest), ); } - export function getTeamByIdRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -105,23 +93,11 @@ export function getTeamByIdRequestFromJSON( export const GetTeamByIdPlan$inboundSchema: z.ZodNativeEnum< typeof GetTeamByIdPlan > = z.nativeEnum(GetTeamByIdPlan); - /** @internal */ export const GetTeamByIdPlan$outboundSchema: z.ZodNativeEnum< typeof GetTeamByIdPlan > = GetTeamByIdPlan$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTeamByIdPlan$ { - /** @deprecated use `GetTeamByIdPlan$inboundSchema` instead. */ - export const inboundSchema = GetTeamByIdPlan$inboundSchema; - /** @deprecated use `GetTeamByIdPlan$outboundSchema` instead. */ - export const outboundSchema = GetTeamByIdPlan$outboundSchema; -} - /** @internal */ export const GetTeamByIdResponse$inboundSchema: z.ZodType< GetTeamByIdResponse, @@ -133,7 +109,6 @@ export const GetTeamByIdResponse$inboundSchema: z.ZodType< logoUrl: z.nullable(z.string()), plan: GetTeamByIdPlan$inboundSchema, }); - /** @internal */ export type GetTeamByIdResponse$Outbound = { id: string; @@ -154,19 +129,6 @@ export const GetTeamByIdResponse$outboundSchema: z.ZodType< plan: GetTeamByIdPlan$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTeamByIdResponse$ { - /** @deprecated use `GetTeamByIdResponse$inboundSchema` instead. */ - export const inboundSchema = GetTeamByIdResponse$inboundSchema; - /** @deprecated use `GetTeamByIdResponse$outboundSchema` instead. */ - export const outboundSchema = GetTeamByIdResponse$outboundSchema; - /** @deprecated use `GetTeamByIdResponse$Outbound` instead. */ - export type Outbound = GetTeamByIdResponse$Outbound; -} - export function getTeamByIdResponseToJSON( getTeamByIdResponse: GetTeamByIdResponse, ): string { @@ -174,7 +136,6 @@ export function getTeamByIdResponseToJSON( GetTeamByIdResponse$outboundSchema.parse(getTeamByIdResponse), ); } - export function getTeamByIdResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/gettimerstatus.ts b/src/models/operations/gettimerstatus.ts index e5d134d..2eacd6f 100644 --- a/src/models/operations/gettimerstatus.ts +++ b/src/models/operations/gettimerstatus.ts @@ -2,12 +2,15 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetTimerStatusRequest = { + /** + * Unique identifier of the user whose current timer should be retrieved. If not provided, will use the authenticated user + */ assignedId?: string | null | undefined; }; @@ -57,7 +60,6 @@ export const GetTimerStatusRequest$inboundSchema: z.ZodType< > = z.object({ assignedId: z.nullable(z.string()).optional(), }); - /** @internal */ export type GetTimerStatusRequest$Outbound = { assignedId?: string | null | undefined; @@ -72,19 +74,6 @@ export const GetTimerStatusRequest$outboundSchema: z.ZodType< assignedId: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTimerStatusRequest$ { - /** @deprecated use `GetTimerStatusRequest$inboundSchema` instead. */ - export const inboundSchema = GetTimerStatusRequest$inboundSchema; - /** @deprecated use `GetTimerStatusRequest$outboundSchema` instead. */ - export const outboundSchema = GetTimerStatusRequest$outboundSchema; - /** @deprecated use `GetTimerStatusRequest$Outbound` instead. */ - export type Outbound = GetTimerStatusRequest$Outbound; -} - export function getTimerStatusRequestToJSON( getTimerStatusRequest: GetTimerStatusRequest, ): string { @@ -92,7 +81,6 @@ export function getTimerStatusRequestToJSON( GetTimerStatusRequest$outboundSchema.parse(getTimerStatusRequest), ); } - export function getTimerStatusRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -112,7 +100,6 @@ export const TrackerProject$inboundSchema: z.ZodType< id: z.string(), name: z.string(), }); - /** @internal */ export type TrackerProject$Outbound = { id: string; @@ -129,23 +116,9 @@ export const TrackerProject$outboundSchema: z.ZodType< name: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TrackerProject$ { - /** @deprecated use `TrackerProject$inboundSchema` instead. */ - export const inboundSchema = TrackerProject$inboundSchema; - /** @deprecated use `TrackerProject$outboundSchema` instead. */ - export const outboundSchema = TrackerProject$outboundSchema; - /** @deprecated use `TrackerProject$Outbound` instead. */ - export type Outbound = TrackerProject$Outbound; -} - export function trackerProjectToJSON(trackerProject: TrackerProject): string { return JSON.stringify(TrackerProject$outboundSchema.parse(trackerProject)); } - export function trackerProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -168,7 +141,6 @@ export const CurrentEntry$inboundSchema: z.ZodType< projectId: z.string(), trackerProject: z.lazy(() => TrackerProject$inboundSchema), }); - /** @internal */ export type CurrentEntry$Outbound = { id: string; @@ -191,23 +163,9 @@ export const CurrentEntry$outboundSchema: z.ZodType< trackerProject: z.lazy(() => TrackerProject$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CurrentEntry$ { - /** @deprecated use `CurrentEntry$inboundSchema` instead. */ - export const inboundSchema = CurrentEntry$inboundSchema; - /** @deprecated use `CurrentEntry$outboundSchema` instead. */ - export const outboundSchema = CurrentEntry$outboundSchema; - /** @deprecated use `CurrentEntry$Outbound` instead. */ - export type Outbound = CurrentEntry$Outbound; -} - export function currentEntryToJSON(currentEntry: CurrentEntry): string { return JSON.stringify(CurrentEntry$outboundSchema.parse(currentEntry)); } - export function currentEntryFromJSON( jsonString: string, ): SafeParseResult { @@ -228,7 +186,6 @@ export const GetTimerStatusData$inboundSchema: z.ZodType< currentEntry: z.nullable(z.lazy(() => CurrentEntry$inboundSchema)), elapsedTime: z.number(), }); - /** @internal */ export type GetTimerStatusData$Outbound = { isRunning: boolean; @@ -247,19 +204,6 @@ export const GetTimerStatusData$outboundSchema: z.ZodType< elapsedTime: z.number(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTimerStatusData$ { - /** @deprecated use `GetTimerStatusData$inboundSchema` instead. */ - export const inboundSchema = GetTimerStatusData$inboundSchema; - /** @deprecated use `GetTimerStatusData$outboundSchema` instead. */ - export const outboundSchema = GetTimerStatusData$outboundSchema; - /** @deprecated use `GetTimerStatusData$Outbound` instead. */ - export type Outbound = GetTimerStatusData$Outbound; -} - export function getTimerStatusDataToJSON( getTimerStatusData: GetTimerStatusData, ): string { @@ -267,7 +211,6 @@ export function getTimerStatusDataToJSON( GetTimerStatusData$outboundSchema.parse(getTimerStatusData), ); } - export function getTimerStatusDataFromJSON( jsonString: string, ): SafeParseResult { @@ -286,7 +229,6 @@ export const GetTimerStatusResponse$inboundSchema: z.ZodType< > = z.object({ data: z.lazy(() => GetTimerStatusData$inboundSchema), }); - /** @internal */ export type GetTimerStatusResponse$Outbound = { data: GetTimerStatusData$Outbound; @@ -301,19 +243,6 @@ export const GetTimerStatusResponse$outboundSchema: z.ZodType< data: z.lazy(() => GetTimerStatusData$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTimerStatusResponse$ { - /** @deprecated use `GetTimerStatusResponse$inboundSchema` instead. */ - export const inboundSchema = GetTimerStatusResponse$inboundSchema; - /** @deprecated use `GetTimerStatusResponse$outboundSchema` instead. */ - export const outboundSchema = GetTimerStatusResponse$outboundSchema; - /** @deprecated use `GetTimerStatusResponse$Outbound` instead. */ - export type Outbound = GetTimerStatusResponse$Outbound; -} - export function getTimerStatusResponseToJSON( getTimerStatusResponse: GetTimerStatusResponse, ): string { @@ -321,7 +250,6 @@ export function getTimerStatusResponseToJSON( GetTimerStatusResponse$outboundSchema.parse(getTimerStatusResponse), ); } - export function getTimerStatusResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/gettrackerprojectbyid.ts b/src/models/operations/gettrackerprojectbyid.ts index 3b6fa42..b980915 100644 --- a/src/models/operations/gettrackerprojectbyid.ts +++ b/src/models/operations/gettrackerprojectbyid.ts @@ -2,12 +2,15 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetTrackerProjectByIdRequest = { + /** + * Unique identifier of the project to retrieve + */ id: string; }; @@ -19,7 +22,6 @@ export const GetTrackerProjectByIdRequest$inboundSchema: z.ZodType< > = z.object({ id: z.string(), }); - /** @internal */ export type GetTrackerProjectByIdRequest$Outbound = { id: string; @@ -34,19 +36,6 @@ export const GetTrackerProjectByIdRequest$outboundSchema: z.ZodType< id: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTrackerProjectByIdRequest$ { - /** @deprecated use `GetTrackerProjectByIdRequest$inboundSchema` instead. */ - export const inboundSchema = GetTrackerProjectByIdRequest$inboundSchema; - /** @deprecated use `GetTrackerProjectByIdRequest$outboundSchema` instead. */ - export const outboundSchema = GetTrackerProjectByIdRequest$outboundSchema; - /** @deprecated use `GetTrackerProjectByIdRequest$Outbound` instead. */ - export type Outbound = GetTrackerProjectByIdRequest$Outbound; -} - export function getTrackerProjectByIdRequestToJSON( getTrackerProjectByIdRequest: GetTrackerProjectByIdRequest, ): string { @@ -56,7 +45,6 @@ export function getTrackerProjectByIdRequestToJSON( ), ); } - export function getTrackerProjectByIdRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/gettransactionattachmentpresignedurl.ts b/src/models/operations/gettransactionattachmentpresignedurl.ts index a92f4d0..93ef725 100644 --- a/src/models/operations/gettransactionattachmentpresignedurl.ts +++ b/src/models/operations/gettransactionattachmentpresignedurl.ts @@ -2,14 +2,23 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetTransactionAttachmentPreSignedUrlRequest = { + /** + * Unique identifier of the transaction + */ transactionId: string; + /** + * Unique identifier of the attachment to generate a pre-signed URL for + */ attachmentId: string; + /** + * Whether to force download the file. If true, the file will be downloaded. If false or omitted, the file will be displayed in the browser if possible. + */ download?: boolean | null | undefined; }; @@ -42,7 +51,6 @@ export const GetTransactionAttachmentPreSignedUrlRequest$inboundSchema: attachmentId: z.string(), download: z.nullable(z.boolean()).optional(), }); - /** @internal */ export type GetTransactionAttachmentPreSignedUrlRequest$Outbound = { transactionId: string; @@ -62,21 +70,6 @@ export const GetTransactionAttachmentPreSignedUrlRequest$outboundSchema: download: z.nullable(z.boolean()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTransactionAttachmentPreSignedUrlRequest$ { - /** @deprecated use `GetTransactionAttachmentPreSignedUrlRequest$inboundSchema` instead. */ - export const inboundSchema = - GetTransactionAttachmentPreSignedUrlRequest$inboundSchema; - /** @deprecated use `GetTransactionAttachmentPreSignedUrlRequest$outboundSchema` instead. */ - export const outboundSchema = - GetTransactionAttachmentPreSignedUrlRequest$outboundSchema; - /** @deprecated use `GetTransactionAttachmentPreSignedUrlRequest$Outbound` instead. */ - export type Outbound = GetTransactionAttachmentPreSignedUrlRequest$Outbound; -} - export function getTransactionAttachmentPreSignedUrlRequestToJSON( getTransactionAttachmentPreSignedUrlRequest: GetTransactionAttachmentPreSignedUrlRequest, @@ -87,7 +80,6 @@ export function getTransactionAttachmentPreSignedUrlRequestToJSON( ), ); } - export function getTransactionAttachmentPreSignedUrlRequestFromJSON( jsonString: string, ): SafeParseResult< @@ -117,7 +109,6 @@ export const GetTransactionAttachmentPreSignedUrlResponse$inboundSchema: ), fileName: z.nullable(z.string()), }); - /** @internal */ export type GetTransactionAttachmentPreSignedUrlResponse$Outbound = { url: string; @@ -137,21 +128,6 @@ export const GetTransactionAttachmentPreSignedUrlResponse$outboundSchema: fileName: z.nullable(z.string()), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTransactionAttachmentPreSignedUrlResponse$ { - /** @deprecated use `GetTransactionAttachmentPreSignedUrlResponse$inboundSchema` instead. */ - export const inboundSchema = - GetTransactionAttachmentPreSignedUrlResponse$inboundSchema; - /** @deprecated use `GetTransactionAttachmentPreSignedUrlResponse$outboundSchema` instead. */ - export const outboundSchema = - GetTransactionAttachmentPreSignedUrlResponse$outboundSchema; - /** @deprecated use `GetTransactionAttachmentPreSignedUrlResponse$Outbound` instead. */ - export type Outbound = GetTransactionAttachmentPreSignedUrlResponse$Outbound; -} - export function getTransactionAttachmentPreSignedUrlResponseToJSON( getTransactionAttachmentPreSignedUrlResponse: GetTransactionAttachmentPreSignedUrlResponse, @@ -162,7 +138,6 @@ export function getTransactionAttachmentPreSignedUrlResponseToJSON( ), ); } - export function getTransactionAttachmentPreSignedUrlResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/operations/gettransactionbyid.ts b/src/models/operations/gettransactionbyid.ts index 0af3e16..ef7f565 100644 --- a/src/models/operations/gettransactionbyid.ts +++ b/src/models/operations/gettransactionbyid.ts @@ -2,12 +2,15 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetTransactionByIdRequest = { + /** + * Transaction ID (UUID). + */ id: string; }; @@ -19,7 +22,6 @@ export const GetTransactionByIdRequest$inboundSchema: z.ZodType< > = z.object({ id: z.string(), }); - /** @internal */ export type GetTransactionByIdRequest$Outbound = { id: string; @@ -34,19 +36,6 @@ export const GetTransactionByIdRequest$outboundSchema: z.ZodType< id: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTransactionByIdRequest$ { - /** @deprecated use `GetTransactionByIdRequest$inboundSchema` instead. */ - export const inboundSchema = GetTransactionByIdRequest$inboundSchema; - /** @deprecated use `GetTransactionByIdRequest$outboundSchema` instead. */ - export const outboundSchema = GetTransactionByIdRequest$outboundSchema; - /** @deprecated use `GetTransactionByIdRequest$Outbound` instead. */ - export type Outbound = GetTransactionByIdRequest$Outbound; -} - export function getTransactionByIdRequestToJSON( getTransactionByIdRequest: GetTransactionByIdRequest, ): string { @@ -54,7 +43,6 @@ export function getTransactionByIdRequestToJSON( GetTransactionByIdRequest$outboundSchema.parse(getTransactionByIdRequest), ); } - export function getTransactionByIdRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getxeroinstallurl.ts b/src/models/operations/getxeroinstallurl.ts new file mode 100644 index 0000000..4170df6 --- /dev/null +++ b/src/models/operations/getxeroinstallurl.ts @@ -0,0 +1,54 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +/** + * Xero install URL + */ +export type GetXeroInstallUrlResponse = { + url: string; +}; + +/** @internal */ +export const GetXeroInstallUrlResponse$inboundSchema: z.ZodType< + GetXeroInstallUrlResponse, + z.ZodTypeDef, + unknown +> = z.object({ + url: z.string(), +}); +/** @internal */ +export type GetXeroInstallUrlResponse$Outbound = { + url: string; +}; + +/** @internal */ +export const GetXeroInstallUrlResponse$outboundSchema: z.ZodType< + GetXeroInstallUrlResponse$Outbound, + z.ZodTypeDef, + GetXeroInstallUrlResponse +> = z.object({ + url: z.string(), +}); + +export function getXeroInstallUrlResponseToJSON( + getXeroInstallUrlResponse: GetXeroInstallUrlResponse, +): string { + return JSON.stringify( + GetXeroInstallUrlResponse$outboundSchema.parse(getXeroInstallUrlResponse), + ); +} +export function getXeroInstallUrlResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetXeroInstallUrlResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetXeroInstallUrlResponse' from JSON`, + ); +} diff --git a/src/models/operations/gmailoauthcallback.ts b/src/models/operations/gmailoauthcallback.ts new file mode 100644 index 0000000..6a8bbf9 --- /dev/null +++ b/src/models/operations/gmailoauthcallback.ts @@ -0,0 +1,120 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +export type GmailOAuthCallbackRequest = { + /** + * OAuth authorization code from Google + */ + code?: string | undefined; + /** + * Encrypted OAuth state parameter + */ + state: string; + /** + * OAuth error code if authorization failed + */ + error?: string | undefined; +}; + +export type GmailOAuthCallbackResponse = { + headers: { [k: string]: Array }; +}; + +/** @internal */ +export const GmailOAuthCallbackRequest$inboundSchema: z.ZodType< + GmailOAuthCallbackRequest, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.string().optional(), + state: z.string(), + error: z.string().optional(), +}); +/** @internal */ +export type GmailOAuthCallbackRequest$Outbound = { + code?: string | undefined; + state: string; + error?: string | undefined; +}; + +/** @internal */ +export const GmailOAuthCallbackRequest$outboundSchema: z.ZodType< + GmailOAuthCallbackRequest$Outbound, + z.ZodTypeDef, + GmailOAuthCallbackRequest +> = z.object({ + code: z.string().optional(), + state: z.string(), + error: z.string().optional(), +}); + +export function gmailOAuthCallbackRequestToJSON( + gmailOAuthCallbackRequest: GmailOAuthCallbackRequest, +): string { + return JSON.stringify( + GmailOAuthCallbackRequest$outboundSchema.parse(gmailOAuthCallbackRequest), + ); +} +export function gmailOAuthCallbackRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GmailOAuthCallbackRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GmailOAuthCallbackRequest' from JSON`, + ); +} + +/** @internal */ +export const GmailOAuthCallbackResponse$inboundSchema: z.ZodType< + GmailOAuthCallbackResponse, + z.ZodTypeDef, + unknown +> = z.object({ + Headers: z.record(z.array(z.string())).default({}), +}).transform((v) => { + return remap$(v, { + "Headers": "headers", + }); +}); +/** @internal */ +export type GmailOAuthCallbackResponse$Outbound = { + Headers: { [k: string]: Array }; +}; + +/** @internal */ +export const GmailOAuthCallbackResponse$outboundSchema: z.ZodType< + GmailOAuthCallbackResponse$Outbound, + z.ZodTypeDef, + GmailOAuthCallbackResponse +> = z.object({ + headers: z.record(z.array(z.string())), +}).transform((v) => { + return remap$(v, { + headers: "Headers", + }); +}); + +export function gmailOAuthCallbackResponseToJSON( + gmailOAuthCallbackResponse: GmailOAuthCallbackResponse, +): string { + return JSON.stringify( + GmailOAuthCallbackResponse$outboundSchema.parse(gmailOAuthCallbackResponse), + ); +} +export function gmailOAuthCallbackResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GmailOAuthCallbackResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GmailOAuthCallbackResponse' from JSON`, + ); +} diff --git a/src/models/operations/inboxwebhook.ts b/src/models/operations/inboxwebhook.ts new file mode 100644 index 0000000..32918ef --- /dev/null +++ b/src/models/operations/inboxwebhook.ts @@ -0,0 +1,94 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +export type ErrorT = { + path: string; + message: string; +}; + +/** + * Webhook processed successfully + */ +export type InboxWebhookResponse = { + success: boolean; +}; + +/** @internal */ +export const ErrorT$inboundSchema: z.ZodType = z + .object({ + path: z.string(), + message: z.string(), + }); +/** @internal */ +export type ErrorT$Outbound = { + path: string; + message: string; +}; + +/** @internal */ +export const ErrorT$outboundSchema: z.ZodType< + ErrorT$Outbound, + z.ZodTypeDef, + ErrorT +> = z.object({ + path: z.string(), + message: z.string(), +}); + +export function errorToJSON(errorT: ErrorT): string { + return JSON.stringify(ErrorT$outboundSchema.parse(errorT)); +} +export function errorFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ErrorT$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ErrorT' from JSON`, + ); +} + +/** @internal */ +export const InboxWebhookResponse$inboundSchema: z.ZodType< + InboxWebhookResponse, + z.ZodTypeDef, + unknown +> = z.object({ + success: z.boolean(), +}); +/** @internal */ +export type InboxWebhookResponse$Outbound = { + success: boolean; +}; + +/** @internal */ +export const InboxWebhookResponse$outboundSchema: z.ZodType< + InboxWebhookResponse$Outbound, + z.ZodTypeDef, + InboxWebhookResponse +> = z.object({ + success: z.boolean(), +}); + +export function inboxWebhookResponseToJSON( + inboxWebhookResponse: InboxWebhookResponse, +): string { + return JSON.stringify( + InboxWebhookResponse$outboundSchema.parse(inboxWebhookResponse), + ); +} +export function inboxWebhookResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => InboxWebhookResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'InboxWebhookResponse' from JSON`, + ); +} diff --git a/src/models/operations/index.ts b/src/models/operations/index.ts index 126f514..2c6abf3 100644 --- a/src/models/operations/index.ts +++ b/src/models/operations/index.ts @@ -5,6 +5,7 @@ export * from "./createbankaccount.js"; export * from "./createcustomer.js"; export * from "./createinvoice.js"; +export * from "./createinvoicepaymentintent.js"; export * from "./createtrackerentriesbulk.js"; export * from "./createtrackerentry.js"; export * from "./createtrackerproject.js"; @@ -20,6 +21,10 @@ export * from "./deletetrackerentry.js"; export * from "./deletetrackerproject.js"; export * from "./deletetransaction.js"; export * from "./deletetransactions.js"; +export * from "./disconnectstripe.js"; +export * from "./downloadfile.js"; +export * from "./downloadinvoice.js"; +export * from "./fortnoxoauthcallback.js"; export * from "./getbankaccountbyid.js"; export * from "./getburnratereports.js"; export * from "./getcurrenttimer.js"; @@ -28,22 +33,32 @@ export * from "./getcustomerbyid.js"; export * from "./getdocumentbyid.js"; export * from "./getdocumentpresignedurl.js"; export * from "./getexpensesreports.js"; +export * from "./getfortnoxinstallurl.js"; +export * from "./getgmailinstallurl.js"; export * from "./getinboxitembyid.js"; export * from "./getinboxpresignedurl.js"; export * from "./getinvoicebyid.js"; export * from "./getinvoicespaymentstatus.js"; export * from "./getinvoicesummary.js"; export * from "./getoauthauthorization.js"; +export * from "./getoutlookinstallurl.js"; export * from "./getprofitreports.js"; +export * from "./getquickbooksinstallurl.js"; export * from "./getrevenuereports.js"; export * from "./getrunwayreports.js"; +export * from "./getslackinstallurl.js"; export * from "./getspendingreports.js"; +export * from "./getstripeconnectstatus.js"; +export * from "./getstripeconnecturl.js"; export * from "./gettagbyid.js"; export * from "./getteambyid.js"; export * from "./gettimerstatus.js"; export * from "./gettrackerprojectbyid.js"; export * from "./gettransactionattachmentpresignedurl.js"; export * from "./gettransactionbyid.js"; +export * from "./getxeroinstallurl.js"; +export * from "./gmailoauthcallback.js"; +export * from "./inboxwebhook.js"; export * from "./listbankaccounts.js"; export * from "./listcustomers.js"; export * from "./listdocuments.js"; @@ -55,12 +70,20 @@ export * from "./listteams.js"; export * from "./listtrackerentries.js"; export * from "./listtrackerprojects.js"; export * from "./listtransactions.js"; +export * from "./outlookoauthcallback.js"; export * from "./postoauthauthorization.js"; export * from "./postoauthrevoke.js"; export * from "./postoauthtoken.js"; +export * from "./proxyfile.js"; +export * from "./quickbooksoauthcallback.js"; export * from "./search.js"; +export * from "./slackinteractions.js"; +export * from "./slackoauthcallback.js"; +export * from "./slackwebhook.js"; export * from "./starttimer.js"; export * from "./stoptimer.js"; +export * from "./stripeconnectcallback.js"; +export * from "./stripewebhook.js"; export * from "./updatebankaccount.js"; export * from "./updatecurrentuser.js"; export * from "./updatecustomer.js"; @@ -73,3 +96,6 @@ export * from "./updatetrackerentry.js"; export * from "./updatetrackerproject.js"; export * from "./updatetransaction.js"; export * from "./updatetransactions.js"; +export * from "./whatsappwebhook.js"; +export * from "./whatsappwebhookverify.js"; +export * from "./xerooauthcallback.js"; diff --git a/src/models/operations/listbankaccounts.ts b/src/models/operations/listbankaccounts.ts index 63e4115..37557d6 100644 --- a/src/models/operations/listbankaccounts.ts +++ b/src/models/operations/listbankaccounts.ts @@ -2,13 +2,19 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListBankAccountsRequest = { + /** + * Whether the bank account is enabled. + */ enabled?: boolean | undefined; + /** + * Whether the bank account is a manual account. + */ manual?: boolean | undefined; }; @@ -65,7 +71,6 @@ export const ListBankAccountsRequest$inboundSchema: z.ZodType< enabled: z.boolean().optional(), manual: z.boolean().optional(), }); - /** @internal */ export type ListBankAccountsRequest$Outbound = { enabled?: boolean | undefined; @@ -82,19 +87,6 @@ export const ListBankAccountsRequest$outboundSchema: z.ZodType< manual: z.boolean().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListBankAccountsRequest$ { - /** @deprecated use `ListBankAccountsRequest$inboundSchema` instead. */ - export const inboundSchema = ListBankAccountsRequest$inboundSchema; - /** @deprecated use `ListBankAccountsRequest$outboundSchema` instead. */ - export const outboundSchema = ListBankAccountsRequest$outboundSchema; - /** @deprecated use `ListBankAccountsRequest$Outbound` instead. */ - export type Outbound = ListBankAccountsRequest$Outbound; -} - export function listBankAccountsRequestToJSON( listBankAccountsRequest: ListBankAccountsRequest, ): string { @@ -102,7 +94,6 @@ export function listBankAccountsRequestToJSON( ListBankAccountsRequest$outboundSchema.parse(listBankAccountsRequest), ); } - export function listBankAccountsRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -127,7 +118,6 @@ export const ListBankAccountsData$inboundSchema: z.ZodType< balance: z.nullable(z.number()), manual: z.nullable(z.boolean()), }); - /** @internal */ export type ListBankAccountsData$Outbound = { id: string; @@ -154,19 +144,6 @@ export const ListBankAccountsData$outboundSchema: z.ZodType< manual: z.nullable(z.boolean()), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListBankAccountsData$ { - /** @deprecated use `ListBankAccountsData$inboundSchema` instead. */ - export const inboundSchema = ListBankAccountsData$inboundSchema; - /** @deprecated use `ListBankAccountsData$outboundSchema` instead. */ - export const outboundSchema = ListBankAccountsData$outboundSchema; - /** @deprecated use `ListBankAccountsData$Outbound` instead. */ - export type Outbound = ListBankAccountsData$Outbound; -} - export function listBankAccountsDataToJSON( listBankAccountsData: ListBankAccountsData, ): string { @@ -174,7 +151,6 @@ export function listBankAccountsDataToJSON( ListBankAccountsData$outboundSchema.parse(listBankAccountsData), ); } - export function listBankAccountsDataFromJSON( jsonString: string, ): SafeParseResult { @@ -193,7 +169,6 @@ export const ListBankAccountsResponse$inboundSchema: z.ZodType< > = z.object({ data: z.array(z.lazy(() => ListBankAccountsData$inboundSchema)), }); - /** @internal */ export type ListBankAccountsResponse$Outbound = { data: Array; @@ -208,19 +183,6 @@ export const ListBankAccountsResponse$outboundSchema: z.ZodType< data: z.array(z.lazy(() => ListBankAccountsData$outboundSchema)), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListBankAccountsResponse$ { - /** @deprecated use `ListBankAccountsResponse$inboundSchema` instead. */ - export const inboundSchema = ListBankAccountsResponse$inboundSchema; - /** @deprecated use `ListBankAccountsResponse$outboundSchema` instead. */ - export const outboundSchema = ListBankAccountsResponse$outboundSchema; - /** @deprecated use `ListBankAccountsResponse$Outbound` instead. */ - export type Outbound = ListBankAccountsResponse$Outbound; -} - export function listBankAccountsResponseToJSON( listBankAccountsResponse: ListBankAccountsResponse, ): string { @@ -228,7 +190,6 @@ export function listBankAccountsResponseToJSON( ListBankAccountsResponse$outboundSchema.parse(listBankAccountsResponse), ); } - export function listBankAccountsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/listcustomers.ts b/src/models/operations/listcustomers.ts index b616b4d..6b3e62b 100644 --- a/src/models/operations/listcustomers.ts +++ b/src/models/operations/listcustomers.ts @@ -2,15 +2,27 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListCustomersRequest = { + /** + * Search query string to filter customers by name, email, or other text fields + */ q?: string | null | undefined; + /** + * Sorting order as a tuple: [field, direction]. Example: ['name', 'asc'] or ['createdAt', 'desc'] + */ sort?: Array | null | undefined; + /** + * Cursor for pagination, representing the last item from the previous page + */ cursor?: string | undefined; + /** + * Number of customers to return per page (1-100) + */ pageSize?: number | undefined; }; @@ -155,7 +167,6 @@ export const ListCustomersRequest$inboundSchema: z.ZodType< cursor: z.string().optional(), pageSize: z.number().optional(), }); - /** @internal */ export type ListCustomersRequest$Outbound = { q?: string | null | undefined; @@ -176,19 +187,6 @@ export const ListCustomersRequest$outboundSchema: z.ZodType< pageSize: z.number().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListCustomersRequest$ { - /** @deprecated use `ListCustomersRequest$inboundSchema` instead. */ - export const inboundSchema = ListCustomersRequest$inboundSchema; - /** @deprecated use `ListCustomersRequest$outboundSchema` instead. */ - export const outboundSchema = ListCustomersRequest$outboundSchema; - /** @deprecated use `ListCustomersRequest$Outbound` instead. */ - export type Outbound = ListCustomersRequest$Outbound; -} - export function listCustomersRequestToJSON( listCustomersRequest: ListCustomersRequest, ): string { @@ -196,7 +194,6 @@ export function listCustomersRequestToJSON( ListCustomersRequest$outboundSchema.parse(listCustomersRequest), ); } - export function listCustomersRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -217,7 +214,6 @@ export const ListCustomersMeta$inboundSchema: z.ZodType< hasPreviousPage: z.boolean(), hasNextPage: z.boolean(), }); - /** @internal */ export type ListCustomersMeta$Outbound = { cursor: string | null; @@ -236,19 +232,6 @@ export const ListCustomersMeta$outboundSchema: z.ZodType< hasNextPage: z.boolean(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListCustomersMeta$ { - /** @deprecated use `ListCustomersMeta$inboundSchema` instead. */ - export const inboundSchema = ListCustomersMeta$inboundSchema; - /** @deprecated use `ListCustomersMeta$outboundSchema` instead. */ - export const outboundSchema = ListCustomersMeta$outboundSchema; - /** @deprecated use `ListCustomersMeta$Outbound` instead. */ - export type Outbound = ListCustomersMeta$Outbound; -} - export function listCustomersMetaToJSON( listCustomersMeta: ListCustomersMeta, ): string { @@ -256,7 +239,6 @@ export function listCustomersMetaToJSON( ListCustomersMeta$outboundSchema.parse(listCustomersMeta), ); } - export function listCustomersMetaFromJSON( jsonString: string, ): SafeParseResult { @@ -276,7 +258,6 @@ export const ListCustomersTag$inboundSchema: z.ZodType< id: z.string(), name: z.string(), }); - /** @internal */ export type ListCustomersTag$Outbound = { id: string; @@ -293,19 +274,6 @@ export const ListCustomersTag$outboundSchema: z.ZodType< name: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListCustomersTag$ { - /** @deprecated use `ListCustomersTag$inboundSchema` instead. */ - export const inboundSchema = ListCustomersTag$inboundSchema; - /** @deprecated use `ListCustomersTag$outboundSchema` instead. */ - export const outboundSchema = ListCustomersTag$outboundSchema; - /** @deprecated use `ListCustomersTag$Outbound` instead. */ - export type Outbound = ListCustomersTag$Outbound; -} - export function listCustomersTagToJSON( listCustomersTag: ListCustomersTag, ): string { @@ -313,7 +281,6 @@ export function listCustomersTagToJSON( ListCustomersTag$outboundSchema.parse(listCustomersTag), ); } - export function listCustomersTagFromJSON( jsonString: string, ): SafeParseResult { @@ -352,7 +319,6 @@ export const ListCustomersData$inboundSchema: z.ZodType< projectCount: z.number(), tags: z.array(z.lazy(() => ListCustomersTag$inboundSchema)), }); - /** @internal */ export type ListCustomersData$Outbound = { id: string; @@ -407,19 +373,6 @@ export const ListCustomersData$outboundSchema: z.ZodType< tags: z.array(z.lazy(() => ListCustomersTag$outboundSchema)), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListCustomersData$ { - /** @deprecated use `ListCustomersData$inboundSchema` instead. */ - export const inboundSchema = ListCustomersData$inboundSchema; - /** @deprecated use `ListCustomersData$outboundSchema` instead. */ - export const outboundSchema = ListCustomersData$outboundSchema; - /** @deprecated use `ListCustomersData$Outbound` instead. */ - export type Outbound = ListCustomersData$Outbound; -} - export function listCustomersDataToJSON( listCustomersData: ListCustomersData, ): string { @@ -427,7 +380,6 @@ export function listCustomersDataToJSON( ListCustomersData$outboundSchema.parse(listCustomersData), ); } - export function listCustomersDataFromJSON( jsonString: string, ): SafeParseResult { @@ -447,7 +399,6 @@ export const ListCustomersResponse$inboundSchema: z.ZodType< meta: z.lazy(() => ListCustomersMeta$inboundSchema), data: z.array(z.lazy(() => ListCustomersData$inboundSchema)), }); - /** @internal */ export type ListCustomersResponse$Outbound = { meta: ListCustomersMeta$Outbound; @@ -464,19 +415,6 @@ export const ListCustomersResponse$outboundSchema: z.ZodType< data: z.array(z.lazy(() => ListCustomersData$outboundSchema)), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListCustomersResponse$ { - /** @deprecated use `ListCustomersResponse$inboundSchema` instead. */ - export const inboundSchema = ListCustomersResponse$inboundSchema; - /** @deprecated use `ListCustomersResponse$outboundSchema` instead. */ - export const outboundSchema = ListCustomersResponse$outboundSchema; - /** @deprecated use `ListCustomersResponse$Outbound` instead. */ - export type Outbound = ListCustomersResponse$Outbound; -} - export function listCustomersResponseToJSON( listCustomersResponse: ListCustomersResponse, ): string { @@ -484,7 +422,6 @@ export function listCustomersResponseToJSON( ListCustomersResponse$outboundSchema.parse(listCustomersResponse), ); } - export function listCustomersResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/listdocuments.ts b/src/models/operations/listdocuments.ts index 0c3bf56..2b1a285 100644 --- a/src/models/operations/listdocuments.ts +++ b/src/models/operations/listdocuments.ts @@ -2,16 +2,31 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListDocumentsRequest = { + /** + * A cursor for pagination. Pass the value returned from the previous response to get the next page. + */ cursor?: string | null | undefined; + /** + * Sorting order as a tuple: [field, direction]. Example: ['name', 'asc']. + */ sort?: Array | null | undefined; + /** + * Number of documents to return per page. + */ pageSize?: number | undefined; + /** + * Search query string to filter documents by text. + */ q?: string | null | undefined; + /** + * Array of tag IDs to filter documents by tags. + */ tags?: Array | null | undefined; }; @@ -107,7 +122,6 @@ export const ListDocumentsRequest$inboundSchema: z.ZodType< q: z.nullable(z.string()).optional(), tags: z.nullable(z.array(z.string())).optional(), }); - /** @internal */ export type ListDocumentsRequest$Outbound = { cursor?: string | null | undefined; @@ -130,19 +144,6 @@ export const ListDocumentsRequest$outboundSchema: z.ZodType< tags: z.nullable(z.array(z.string())).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListDocumentsRequest$ { - /** @deprecated use `ListDocumentsRequest$inboundSchema` instead. */ - export const inboundSchema = ListDocumentsRequest$inboundSchema; - /** @deprecated use `ListDocumentsRequest$outboundSchema` instead. */ - export const outboundSchema = ListDocumentsRequest$outboundSchema; - /** @deprecated use `ListDocumentsRequest$Outbound` instead. */ - export type Outbound = ListDocumentsRequest$Outbound; -} - export function listDocumentsRequestToJSON( listDocumentsRequest: ListDocumentsRequest, ): string { @@ -150,7 +151,6 @@ export function listDocumentsRequestToJSON( ListDocumentsRequest$outboundSchema.parse(listDocumentsRequest), ); } - export function listDocumentsRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -171,7 +171,6 @@ export const ListDocumentsMeta$inboundSchema: z.ZodType< hasPreviousPage: z.boolean(), hasNextPage: z.boolean(), }); - /** @internal */ export type ListDocumentsMeta$Outbound = { cursor?: string | null | undefined; @@ -190,19 +189,6 @@ export const ListDocumentsMeta$outboundSchema: z.ZodType< hasNextPage: z.boolean(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListDocumentsMeta$ { - /** @deprecated use `ListDocumentsMeta$inboundSchema` instead. */ - export const inboundSchema = ListDocumentsMeta$inboundSchema; - /** @deprecated use `ListDocumentsMeta$outboundSchema` instead. */ - export const outboundSchema = ListDocumentsMeta$outboundSchema; - /** @deprecated use `ListDocumentsMeta$Outbound` instead. */ - export type Outbound = ListDocumentsMeta$Outbound; -} - export function listDocumentsMetaToJSON( listDocumentsMeta: ListDocumentsMeta, ): string { @@ -210,7 +196,6 @@ export function listDocumentsMetaToJSON( ListDocumentsMeta$outboundSchema.parse(listDocumentsMeta), ); } - export function listDocumentsMetaFromJSON( jsonString: string, ): SafeParseResult { @@ -230,7 +215,6 @@ export const ListDocumentsMetadata$inboundSchema: z.ZodType< size: z.nullable(z.number()), mimetype: z.nullable(z.string()), }); - /** @internal */ export type ListDocumentsMetadata$Outbound = { size: number | null; @@ -247,19 +231,6 @@ export const ListDocumentsMetadata$outboundSchema: z.ZodType< mimetype: z.nullable(z.string()), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListDocumentsMetadata$ { - /** @deprecated use `ListDocumentsMetadata$inboundSchema` instead. */ - export const inboundSchema = ListDocumentsMetadata$inboundSchema; - /** @deprecated use `ListDocumentsMetadata$outboundSchema` instead. */ - export const outboundSchema = ListDocumentsMetadata$outboundSchema; - /** @deprecated use `ListDocumentsMetadata$Outbound` instead. */ - export type Outbound = ListDocumentsMetadata$Outbound; -} - export function listDocumentsMetadataToJSON( listDocumentsMetadata: ListDocumentsMetadata, ): string { @@ -267,7 +238,6 @@ export function listDocumentsMetadataToJSON( ListDocumentsMetadata$outboundSchema.parse(listDocumentsMetadata), ); } - export function listDocumentsMetadataFromJSON( jsonString: string, ): SafeParseResult { @@ -292,7 +262,6 @@ export const ListDocumentsData$inboundSchema: z.ZodType< summary: z.nullable(z.string()), date: z.nullable(z.string()), }); - /** @internal */ export type ListDocumentsData$Outbound = { id: string; @@ -319,19 +288,6 @@ export const ListDocumentsData$outboundSchema: z.ZodType< date: z.nullable(z.string()), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListDocumentsData$ { - /** @deprecated use `ListDocumentsData$inboundSchema` instead. */ - export const inboundSchema = ListDocumentsData$inboundSchema; - /** @deprecated use `ListDocumentsData$outboundSchema` instead. */ - export const outboundSchema = ListDocumentsData$outboundSchema; - /** @deprecated use `ListDocumentsData$Outbound` instead. */ - export type Outbound = ListDocumentsData$Outbound; -} - export function listDocumentsDataToJSON( listDocumentsData: ListDocumentsData, ): string { @@ -339,7 +295,6 @@ export function listDocumentsDataToJSON( ListDocumentsData$outboundSchema.parse(listDocumentsData), ); } - export function listDocumentsDataFromJSON( jsonString: string, ): SafeParseResult { @@ -359,7 +314,6 @@ export const ListDocumentsResponse$inboundSchema: z.ZodType< meta: z.lazy(() => ListDocumentsMeta$inboundSchema), data: z.array(z.lazy(() => ListDocumentsData$inboundSchema)), }); - /** @internal */ export type ListDocumentsResponse$Outbound = { meta: ListDocumentsMeta$Outbound; @@ -376,19 +330,6 @@ export const ListDocumentsResponse$outboundSchema: z.ZodType< data: z.array(z.lazy(() => ListDocumentsData$outboundSchema)), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListDocumentsResponse$ { - /** @deprecated use `ListDocumentsResponse$inboundSchema` instead. */ - export const inboundSchema = ListDocumentsResponse$inboundSchema; - /** @deprecated use `ListDocumentsResponse$outboundSchema` instead. */ - export const outboundSchema = ListDocumentsResponse$outboundSchema; - /** @deprecated use `ListDocumentsResponse$Outbound` instead. */ - export type Outbound = ListDocumentsResponse$Outbound; -} - export function listDocumentsResponseToJSON( listDocumentsResponse: ListDocumentsResponse, ): string { @@ -396,7 +337,6 @@ export function listDocumentsResponseToJSON( ListDocumentsResponse$outboundSchema.parse(listDocumentsResponse), ); } - export function listDocumentsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/listinboxitems.ts b/src/models/operations/listinboxitems.ts index 81e8dc2..ece77e0 100644 --- a/src/models/operations/listinboxitems.ts +++ b/src/models/operations/listinboxitems.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -12,12 +12,14 @@ export const ListInboxItemsStatus = { Done: "done", Pending: "pending", SuggestedMatch: "suggested_match", + NoMatch: "no_match", } as const; export type ListInboxItemsStatus = ClosedEnum; export type ListInboxItemsRequest = { cursor?: string | null | undefined; order?: string | null | undefined; + sort?: string | null | undefined; pageSize?: number | undefined; q?: string | null | undefined; status?: ListInboxItemsStatus | null | undefined; @@ -143,23 +145,11 @@ export type ListInboxItemsResponse = { export const ListInboxItemsStatus$inboundSchema: z.ZodNativeEnum< typeof ListInboxItemsStatus > = z.nativeEnum(ListInboxItemsStatus); - /** @internal */ export const ListInboxItemsStatus$outboundSchema: z.ZodNativeEnum< typeof ListInboxItemsStatus > = ListInboxItemsStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListInboxItemsStatus$ { - /** @deprecated use `ListInboxItemsStatus$inboundSchema` instead. */ - export const inboundSchema = ListInboxItemsStatus$inboundSchema; - /** @deprecated use `ListInboxItemsStatus$outboundSchema` instead. */ - export const outboundSchema = ListInboxItemsStatus$outboundSchema; -} - /** @internal */ export const ListInboxItemsRequest$inboundSchema: z.ZodType< ListInboxItemsRequest, @@ -168,15 +158,16 @@ export const ListInboxItemsRequest$inboundSchema: z.ZodType< > = z.object({ cursor: z.nullable(z.string()).optional(), order: z.nullable(z.string()).optional(), + sort: z.nullable(z.string()).optional(), pageSize: z.number().optional(), q: z.nullable(z.string()).optional(), status: z.nullable(ListInboxItemsStatus$inboundSchema).optional(), }); - /** @internal */ export type ListInboxItemsRequest$Outbound = { cursor?: string | null | undefined; order?: string | null | undefined; + sort?: string | null | undefined; pageSize?: number | undefined; q?: string | null | undefined; status?: string | null | undefined; @@ -190,24 +181,12 @@ export const ListInboxItemsRequest$outboundSchema: z.ZodType< > = z.object({ cursor: z.nullable(z.string()).optional(), order: z.nullable(z.string()).optional(), + sort: z.nullable(z.string()).optional(), pageSize: z.number().optional(), q: z.nullable(z.string()).optional(), status: z.nullable(ListInboxItemsStatus$outboundSchema).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListInboxItemsRequest$ { - /** @deprecated use `ListInboxItemsRequest$inboundSchema` instead. */ - export const inboundSchema = ListInboxItemsRequest$inboundSchema; - /** @deprecated use `ListInboxItemsRequest$outboundSchema` instead. */ - export const outboundSchema = ListInboxItemsRequest$outboundSchema; - /** @deprecated use `ListInboxItemsRequest$Outbound` instead. */ - export type Outbound = ListInboxItemsRequest$Outbound; -} - export function listInboxItemsRequestToJSON( listInboxItemsRequest: ListInboxItemsRequest, ): string { @@ -215,7 +194,6 @@ export function listInboxItemsRequestToJSON( ListInboxItemsRequest$outboundSchema.parse(listInboxItemsRequest), ); } - export function listInboxItemsRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -236,7 +214,6 @@ export const ListInboxItemsMeta$inboundSchema: z.ZodType< hasPreviousPage: z.boolean(), hasNextPage: z.boolean(), }); - /** @internal */ export type ListInboxItemsMeta$Outbound = { cursor?: string | null | undefined; @@ -255,19 +232,6 @@ export const ListInboxItemsMeta$outboundSchema: z.ZodType< hasNextPage: z.boolean(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListInboxItemsMeta$ { - /** @deprecated use `ListInboxItemsMeta$inboundSchema` instead. */ - export const inboundSchema = ListInboxItemsMeta$inboundSchema; - /** @deprecated use `ListInboxItemsMeta$outboundSchema` instead. */ - export const outboundSchema = ListInboxItemsMeta$outboundSchema; - /** @deprecated use `ListInboxItemsMeta$Outbound` instead. */ - export type Outbound = ListInboxItemsMeta$Outbound; -} - export function listInboxItemsMetaToJSON( listInboxItemsMeta: ListInboxItemsMeta, ): string { @@ -275,7 +239,6 @@ export function listInboxItemsMetaToJSON( ListInboxItemsMeta$outboundSchema.parse(listInboxItemsMeta), ); } - export function listInboxItemsMetaFromJSON( jsonString: string, ): SafeParseResult { @@ -298,7 +261,6 @@ export const ListInboxItemsTransaction$inboundSchema: z.ZodType< name: z.string(), date: z.string(), }); - /** @internal */ export type ListInboxItemsTransaction$Outbound = { id: string; @@ -321,19 +283,6 @@ export const ListInboxItemsTransaction$outboundSchema: z.ZodType< date: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListInboxItemsTransaction$ { - /** @deprecated use `ListInboxItemsTransaction$inboundSchema` instead. */ - export const inboundSchema = ListInboxItemsTransaction$inboundSchema; - /** @deprecated use `ListInboxItemsTransaction$outboundSchema` instead. */ - export const outboundSchema = ListInboxItemsTransaction$outboundSchema; - /** @deprecated use `ListInboxItemsTransaction$Outbound` instead. */ - export type Outbound = ListInboxItemsTransaction$Outbound; -} - export function listInboxItemsTransactionToJSON( listInboxItemsTransaction: ListInboxItemsTransaction, ): string { @@ -341,7 +290,6 @@ export function listInboxItemsTransactionToJSON( ListInboxItemsTransaction$outboundSchema.parse(listInboxItemsTransaction), ); } - export function listInboxItemsTransactionFromJSON( jsonString: string, ): SafeParseResult { @@ -374,7 +322,6 @@ export const ListInboxItemsData$inboundSchema: z.ZodType< z.lazy(() => ListInboxItemsTransaction$inboundSchema), ), }); - /** @internal */ export type ListInboxItemsData$Outbound = { id: string; @@ -415,19 +362,6 @@ export const ListInboxItemsData$outboundSchema: z.ZodType< ), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListInboxItemsData$ { - /** @deprecated use `ListInboxItemsData$inboundSchema` instead. */ - export const inboundSchema = ListInboxItemsData$inboundSchema; - /** @deprecated use `ListInboxItemsData$outboundSchema` instead. */ - export const outboundSchema = ListInboxItemsData$outboundSchema; - /** @deprecated use `ListInboxItemsData$Outbound` instead. */ - export type Outbound = ListInboxItemsData$Outbound; -} - export function listInboxItemsDataToJSON( listInboxItemsData: ListInboxItemsData, ): string { @@ -435,7 +369,6 @@ export function listInboxItemsDataToJSON( ListInboxItemsData$outboundSchema.parse(listInboxItemsData), ); } - export function listInboxItemsDataFromJSON( jsonString: string, ): SafeParseResult { @@ -455,7 +388,6 @@ export const ListInboxItemsResponse$inboundSchema: z.ZodType< meta: z.lazy(() => ListInboxItemsMeta$inboundSchema), data: z.array(z.lazy(() => ListInboxItemsData$inboundSchema)), }); - /** @internal */ export type ListInboxItemsResponse$Outbound = { meta: ListInboxItemsMeta$Outbound; @@ -472,19 +404,6 @@ export const ListInboxItemsResponse$outboundSchema: z.ZodType< data: z.array(z.lazy(() => ListInboxItemsData$outboundSchema)), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListInboxItemsResponse$ { - /** @deprecated use `ListInboxItemsResponse$inboundSchema` instead. */ - export const inboundSchema = ListInboxItemsResponse$inboundSchema; - /** @deprecated use `ListInboxItemsResponse$outboundSchema` instead. */ - export const outboundSchema = ListInboxItemsResponse$outboundSchema; - /** @deprecated use `ListInboxItemsResponse$Outbound` instead. */ - export type Outbound = ListInboxItemsResponse$Outbound; -} - export function listInboxItemsResponseToJSON( listInboxItemsResponse: ListInboxItemsResponse, ): string { @@ -492,7 +411,6 @@ export function listInboxItemsResponseToJSON( ListInboxItemsResponse$outboundSchema.parse(listInboxItemsResponse), ); } - export function listInboxItemsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/listinvoices.ts b/src/models/operations/listinvoices.ts index c200fd6..0e96875 100644 --- a/src/models/operations/listinvoices.ts +++ b/src/models/operations/listinvoices.ts @@ -2,20 +2,44 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListInvoicesRequest = { + /** + * A cursor for pagination, representing the last item from the previous page. + */ cursor?: string | null | undefined; + /** + * Sorting order as a tuple: [field, direction]. Example: ['createdAt', 'desc']. + */ sort?: Array | null | undefined; + /** + * Number of invoices to return per page (1-100). + */ pageSize?: number | undefined; + /** + * Search query string to filter invoices by text. + */ q?: string | null | undefined; + /** + * Start date (inclusive) for filtering invoices, in ISO 8601 format. + */ start?: string | null | undefined; + /** + * End date (inclusive) for filtering invoices, in ISO 8601 format. + */ end?: string | null | undefined; + /** + * List of invoice statuses to filter by (e.g., 'paid', 'unpaid', 'overdue'). + */ statuses?: Array | null | undefined; + /** + * List of customer IDs to filter invoices. + */ customers?: Array | null | undefined; }; @@ -202,7 +226,6 @@ export const ListInvoicesRequest$inboundSchema: z.ZodType< statuses: z.nullable(z.array(z.string())).optional(), customers: z.nullable(z.array(z.string())).optional(), }); - /** @internal */ export type ListInvoicesRequest$Outbound = { cursor?: string | null | undefined; @@ -231,19 +254,6 @@ export const ListInvoicesRequest$outboundSchema: z.ZodType< customers: z.nullable(z.array(z.string())).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListInvoicesRequest$ { - /** @deprecated use `ListInvoicesRequest$inboundSchema` instead. */ - export const inboundSchema = ListInvoicesRequest$inboundSchema; - /** @deprecated use `ListInvoicesRequest$outboundSchema` instead. */ - export const outboundSchema = ListInvoicesRequest$outboundSchema; - /** @deprecated use `ListInvoicesRequest$Outbound` instead. */ - export type Outbound = ListInvoicesRequest$Outbound; -} - export function listInvoicesRequestToJSON( listInvoicesRequest: ListInvoicesRequest, ): string { @@ -251,7 +261,6 @@ export function listInvoicesRequestToJSON( ListInvoicesRequest$outboundSchema.parse(listInvoicesRequest), ); } - export function listInvoicesRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -272,7 +281,6 @@ export const ListInvoicesMeta$inboundSchema: z.ZodType< hasPreviousPage: z.boolean(), hasNextPage: z.boolean(), }); - /** @internal */ export type ListInvoicesMeta$Outbound = { cursor: string | null; @@ -291,19 +299,6 @@ export const ListInvoicesMeta$outboundSchema: z.ZodType< hasNextPage: z.boolean(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListInvoicesMeta$ { - /** @deprecated use `ListInvoicesMeta$inboundSchema` instead. */ - export const inboundSchema = ListInvoicesMeta$inboundSchema; - /** @deprecated use `ListInvoicesMeta$outboundSchema` instead. */ - export const outboundSchema = ListInvoicesMeta$outboundSchema; - /** @deprecated use `ListInvoicesMeta$Outbound` instead. */ - export type Outbound = ListInvoicesMeta$Outbound; -} - export function listInvoicesMetaToJSON( listInvoicesMeta: ListInvoicesMeta, ): string { @@ -311,7 +306,6 @@ export function listInvoicesMetaToJSON( ListInvoicesMeta$outboundSchema.parse(listInvoicesMeta), ); } - export function listInvoicesMetaFromJSON( jsonString: string, ): SafeParseResult { @@ -326,23 +320,11 @@ export function listInvoicesMetaFromJSON( export const ListInvoicesStatus$inboundSchema: z.ZodNativeEnum< typeof ListInvoicesStatus > = z.nativeEnum(ListInvoicesStatus); - /** @internal */ export const ListInvoicesStatus$outboundSchema: z.ZodNativeEnum< typeof ListInvoicesStatus > = ListInvoicesStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListInvoicesStatus$ { - /** @deprecated use `ListInvoicesStatus$inboundSchema` instead. */ - export const inboundSchema = ListInvoicesStatus$inboundSchema; - /** @deprecated use `ListInvoicesStatus$outboundSchema` instead. */ - export const outboundSchema = ListInvoicesStatus$outboundSchema; -} - /** @internal */ export const ListInvoicesCustomer$inboundSchema: z.ZodType< ListInvoicesCustomer, @@ -354,7 +336,6 @@ export const ListInvoicesCustomer$inboundSchema: z.ZodType< website: z.nullable(z.string()), email: z.nullable(z.string()), }); - /** @internal */ export type ListInvoicesCustomer$Outbound = { id: string; @@ -375,19 +356,6 @@ export const ListInvoicesCustomer$outboundSchema: z.ZodType< email: z.nullable(z.string()), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListInvoicesCustomer$ { - /** @deprecated use `ListInvoicesCustomer$inboundSchema` instead. */ - export const inboundSchema = ListInvoicesCustomer$inboundSchema; - /** @deprecated use `ListInvoicesCustomer$outboundSchema` instead. */ - export const outboundSchema = ListInvoicesCustomer$outboundSchema; - /** @deprecated use `ListInvoicesCustomer$Outbound` instead. */ - export type Outbound = ListInvoicesCustomer$Outbound; -} - export function listInvoicesCustomerToJSON( listInvoicesCustomer: ListInvoicesCustomer, ): string { @@ -395,7 +363,6 @@ export function listInvoicesCustomerToJSON( ListInvoicesCustomer$outboundSchema.parse(listInvoicesCustomer), ); } - export function listInvoicesCustomerFromJSON( jsonString: string, ): SafeParseResult { @@ -436,7 +403,6 @@ export const ListInvoicesData$inboundSchema: z.ZodType< pdfUrl: z.nullable(z.string()), previewUrl: z.nullable(z.string()), }); - /** @internal */ export type ListInvoicesData$Outbound = { id: string; @@ -495,19 +461,6 @@ export const ListInvoicesData$outboundSchema: z.ZodType< previewUrl: z.nullable(z.string()), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListInvoicesData$ { - /** @deprecated use `ListInvoicesData$inboundSchema` instead. */ - export const inboundSchema = ListInvoicesData$inboundSchema; - /** @deprecated use `ListInvoicesData$outboundSchema` instead. */ - export const outboundSchema = ListInvoicesData$outboundSchema; - /** @deprecated use `ListInvoicesData$Outbound` instead. */ - export type Outbound = ListInvoicesData$Outbound; -} - export function listInvoicesDataToJSON( listInvoicesData: ListInvoicesData, ): string { @@ -515,7 +468,6 @@ export function listInvoicesDataToJSON( ListInvoicesData$outboundSchema.parse(listInvoicesData), ); } - export function listInvoicesDataFromJSON( jsonString: string, ): SafeParseResult { @@ -535,7 +487,6 @@ export const ListInvoicesResponse$inboundSchema: z.ZodType< meta: z.lazy(() => ListInvoicesMeta$inboundSchema), data: z.array(z.lazy(() => ListInvoicesData$inboundSchema)), }); - /** @internal */ export type ListInvoicesResponse$Outbound = { meta: ListInvoicesMeta$Outbound; @@ -552,19 +503,6 @@ export const ListInvoicesResponse$outboundSchema: z.ZodType< data: z.array(z.lazy(() => ListInvoicesData$outboundSchema)), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListInvoicesResponse$ { - /** @deprecated use `ListInvoicesResponse$inboundSchema` instead. */ - export const inboundSchema = ListInvoicesResponse$inboundSchema; - /** @deprecated use `ListInvoicesResponse$outboundSchema` instead. */ - export const outboundSchema = ListInvoicesResponse$outboundSchema; - /** @deprecated use `ListInvoicesResponse$Outbound` instead. */ - export type Outbound = ListInvoicesResponse$Outbound; -} - export function listInvoicesResponseToJSON( listInvoicesResponse: ListInvoicesResponse, ): string { @@ -572,7 +510,6 @@ export function listInvoicesResponseToJSON( ListInvoicesResponse$outboundSchema.parse(listInvoicesResponse), ); } - export function listInvoicesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/listnotifications.ts b/src/models/operations/listnotifications.ts index 5405ac4..b6e1859 100644 --- a/src/models/operations/listnotifications.ts +++ b/src/models/operations/listnotifications.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -34,7 +34,13 @@ export type Status = | Array; export type ListNotificationsRequest = { + /** + * Cursor for pagination, representing the last item from the previous page + */ cursor?: string | null | undefined; + /** + * Number of notifications to return per page (1-100) + */ pageSize?: number | undefined; /** * Filter by notification status. Can be a single status or array of statuses. unread = new notifications, read = viewed but not dismissed, archived = dismissed from view @@ -43,8 +49,17 @@ export type ListNotificationsRequest = { | ListNotificationsStatusEnum1 | Array | undefined; + /** + * Filter notifications by specific user ID + */ userId?: string | null | undefined; + /** + * Filter notifications by priority level (1-10) + */ priority?: number | null | undefined; + /** + * Filter notifications by maximum priority level (priority <= maxPriority). Use 3 for user-facing notifications only. + */ maxPriority?: number | null | undefined; }; @@ -52,51 +67,26 @@ export type ListNotificationsRequest = { export const ListNotificationsStatusEnum2$inboundSchema: z.ZodNativeEnum< typeof ListNotificationsStatusEnum2 > = z.nativeEnum(ListNotificationsStatusEnum2); - /** @internal */ export const ListNotificationsStatusEnum2$outboundSchema: z.ZodNativeEnum< typeof ListNotificationsStatusEnum2 > = ListNotificationsStatusEnum2$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListNotificationsStatusEnum2$ { - /** @deprecated use `ListNotificationsStatusEnum2$inboundSchema` instead. */ - export const inboundSchema = ListNotificationsStatusEnum2$inboundSchema; - /** @deprecated use `ListNotificationsStatusEnum2$outboundSchema` instead. */ - export const outboundSchema = ListNotificationsStatusEnum2$outboundSchema; -} - /** @internal */ export const ListNotificationsStatusEnum1$inboundSchema: z.ZodNativeEnum< typeof ListNotificationsStatusEnum1 > = z.nativeEnum(ListNotificationsStatusEnum1); - /** @internal */ export const ListNotificationsStatusEnum1$outboundSchema: z.ZodNativeEnum< typeof ListNotificationsStatusEnum1 > = ListNotificationsStatusEnum1$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListNotificationsStatusEnum1$ { - /** @deprecated use `ListNotificationsStatusEnum1$inboundSchema` instead. */ - export const inboundSchema = ListNotificationsStatusEnum1$inboundSchema; - /** @deprecated use `ListNotificationsStatusEnum1$outboundSchema` instead. */ - export const outboundSchema = ListNotificationsStatusEnum1$outboundSchema; -} - /** @internal */ export const Status$inboundSchema: z.ZodType = z .union([ ListNotificationsStatusEnum1$inboundSchema, z.array(ListNotificationsStatusEnum2$inboundSchema), ]); - /** @internal */ export type Status$Outbound = string | Array; @@ -110,23 +100,9 @@ export const Status$outboundSchema: z.ZodType< z.array(ListNotificationsStatusEnum2$outboundSchema), ]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Status$ { - /** @deprecated use `Status$inboundSchema` instead. */ - export const inboundSchema = Status$inboundSchema; - /** @deprecated use `Status$outboundSchema` instead. */ - export const outboundSchema = Status$outboundSchema; - /** @deprecated use `Status$Outbound` instead. */ - export type Outbound = Status$Outbound; -} - export function statusToJSON(status: Status): string { return JSON.stringify(Status$outboundSchema.parse(status)); } - export function statusFromJSON( jsonString: string, ): SafeParseResult { @@ -153,7 +129,6 @@ export const ListNotificationsRequest$inboundSchema: z.ZodType< priority: z.nullable(z.number().int()).optional(), maxPriority: z.nullable(z.number().int()).optional(), }); - /** @internal */ export type ListNotificationsRequest$Outbound = { cursor?: string | null | undefined; @@ -181,19 +156,6 @@ export const ListNotificationsRequest$outboundSchema: z.ZodType< maxPriority: z.nullable(z.number().int()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListNotificationsRequest$ { - /** @deprecated use `ListNotificationsRequest$inboundSchema` instead. */ - export const inboundSchema = ListNotificationsRequest$inboundSchema; - /** @deprecated use `ListNotificationsRequest$outboundSchema` instead. */ - export const outboundSchema = ListNotificationsRequest$outboundSchema; - /** @deprecated use `ListNotificationsRequest$Outbound` instead. */ - export type Outbound = ListNotificationsRequest$Outbound; -} - export function listNotificationsRequestToJSON( listNotificationsRequest: ListNotificationsRequest, ): string { @@ -201,7 +163,6 @@ export function listNotificationsRequestToJSON( ListNotificationsRequest$outboundSchema.parse(listNotificationsRequest), ); } - export function listNotificationsRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/listteammembers.ts b/src/models/operations/listteammembers.ts index f581b45..62a38e0 100644 --- a/src/models/operations/listteammembers.ts +++ b/src/models/operations/listteammembers.ts @@ -2,13 +2,16 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListTeamMembersRequest = { + /** + * Unique identifier of the team + */ id: string; }; @@ -61,7 +64,6 @@ export const ListTeamMembersRequest$inboundSchema: z.ZodType< > = z.object({ id: z.string(), }); - /** @internal */ export type ListTeamMembersRequest$Outbound = { id: string; @@ -76,19 +78,6 @@ export const ListTeamMembersRequest$outboundSchema: z.ZodType< id: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListTeamMembersRequest$ { - /** @deprecated use `ListTeamMembersRequest$inboundSchema` instead. */ - export const inboundSchema = ListTeamMembersRequest$inboundSchema; - /** @deprecated use `ListTeamMembersRequest$outboundSchema` instead. */ - export const outboundSchema = ListTeamMembersRequest$outboundSchema; - /** @deprecated use `ListTeamMembersRequest$Outbound` instead. */ - export type Outbound = ListTeamMembersRequest$Outbound; -} - export function listTeamMembersRequestToJSON( listTeamMembersRequest: ListTeamMembersRequest, ): string { @@ -96,7 +85,6 @@ export function listTeamMembersRequestToJSON( ListTeamMembersRequest$outboundSchema.parse(listTeamMembersRequest), ); } - export function listTeamMembersRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -111,22 +99,10 @@ export function listTeamMembersRequestFromJSON( export const Role$inboundSchema: z.ZodNativeEnum = z.nativeEnum( Role, ); - /** @internal */ export const Role$outboundSchema: z.ZodNativeEnum = Role$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Role$ { - /** @deprecated use `Role$inboundSchema` instead. */ - export const inboundSchema = Role$inboundSchema; - /** @deprecated use `Role$outboundSchema` instead. */ - export const outboundSchema = Role$outboundSchema; -} - /** @internal */ export const ListTeamMembersData$inboundSchema: z.ZodType< ListTeamMembersData, @@ -138,7 +114,6 @@ export const ListTeamMembersData$inboundSchema: z.ZodType< fullName: z.string(), avatarUrl: z.nullable(z.string()), }); - /** @internal */ export type ListTeamMembersData$Outbound = { id: string; @@ -159,19 +134,6 @@ export const ListTeamMembersData$outboundSchema: z.ZodType< avatarUrl: z.nullable(z.string()), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListTeamMembersData$ { - /** @deprecated use `ListTeamMembersData$inboundSchema` instead. */ - export const inboundSchema = ListTeamMembersData$inboundSchema; - /** @deprecated use `ListTeamMembersData$outboundSchema` instead. */ - export const outboundSchema = ListTeamMembersData$outboundSchema; - /** @deprecated use `ListTeamMembersData$Outbound` instead. */ - export type Outbound = ListTeamMembersData$Outbound; -} - export function listTeamMembersDataToJSON( listTeamMembersData: ListTeamMembersData, ): string { @@ -179,7 +141,6 @@ export function listTeamMembersDataToJSON( ListTeamMembersData$outboundSchema.parse(listTeamMembersData), ); } - export function listTeamMembersDataFromJSON( jsonString: string, ): SafeParseResult { @@ -198,7 +159,6 @@ export const ListTeamMembersResponse$inboundSchema: z.ZodType< > = z.object({ data: z.array(z.lazy(() => ListTeamMembersData$inboundSchema)), }); - /** @internal */ export type ListTeamMembersResponse$Outbound = { data: Array; @@ -213,19 +173,6 @@ export const ListTeamMembersResponse$outboundSchema: z.ZodType< data: z.array(z.lazy(() => ListTeamMembersData$outboundSchema)), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListTeamMembersResponse$ { - /** @deprecated use `ListTeamMembersResponse$inboundSchema` instead. */ - export const inboundSchema = ListTeamMembersResponse$inboundSchema; - /** @deprecated use `ListTeamMembersResponse$outboundSchema` instead. */ - export const outboundSchema = ListTeamMembersResponse$outboundSchema; - /** @deprecated use `ListTeamMembersResponse$Outbound` instead. */ - export type Outbound = ListTeamMembersResponse$Outbound; -} - export function listTeamMembersResponseToJSON( listTeamMembersResponse: ListTeamMembersResponse, ): string { @@ -233,7 +180,6 @@ export function listTeamMembersResponseToJSON( ListTeamMembersResponse$outboundSchema.parse(listTeamMembersResponse), ); } - export function listTeamMembersResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/listteams.ts b/src/models/operations/listteams.ts index b0a5bab..cc3f0fa 100644 --- a/src/models/operations/listteams.ts +++ b/src/models/operations/listteams.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -54,23 +54,11 @@ export type ListTeamsResponse = { export const ListTeamsPlan$inboundSchema: z.ZodNativeEnum< typeof ListTeamsPlan > = z.nativeEnum(ListTeamsPlan); - /** @internal */ export const ListTeamsPlan$outboundSchema: z.ZodNativeEnum< typeof ListTeamsPlan > = ListTeamsPlan$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListTeamsPlan$ { - /** @deprecated use `ListTeamsPlan$inboundSchema` instead. */ - export const inboundSchema = ListTeamsPlan$inboundSchema; - /** @deprecated use `ListTeamsPlan$outboundSchema` instead. */ - export const outboundSchema = ListTeamsPlan$outboundSchema; -} - /** @internal */ export const ListTeamsData$inboundSchema: z.ZodType< ListTeamsData, @@ -82,7 +70,6 @@ export const ListTeamsData$inboundSchema: z.ZodType< logoUrl: z.nullable(z.string()), plan: ListTeamsPlan$inboundSchema, }); - /** @internal */ export type ListTeamsData$Outbound = { id: string; @@ -103,23 +90,9 @@ export const ListTeamsData$outboundSchema: z.ZodType< plan: ListTeamsPlan$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListTeamsData$ { - /** @deprecated use `ListTeamsData$inboundSchema` instead. */ - export const inboundSchema = ListTeamsData$inboundSchema; - /** @deprecated use `ListTeamsData$outboundSchema` instead. */ - export const outboundSchema = ListTeamsData$outboundSchema; - /** @deprecated use `ListTeamsData$Outbound` instead. */ - export type Outbound = ListTeamsData$Outbound; -} - export function listTeamsDataToJSON(listTeamsData: ListTeamsData): string { return JSON.stringify(ListTeamsData$outboundSchema.parse(listTeamsData)); } - export function listTeamsDataFromJSON( jsonString: string, ): SafeParseResult { @@ -138,7 +111,6 @@ export const ListTeamsResponse$inboundSchema: z.ZodType< > = z.object({ data: z.array(z.lazy(() => ListTeamsData$inboundSchema)), }); - /** @internal */ export type ListTeamsResponse$Outbound = { data: Array; @@ -153,19 +125,6 @@ export const ListTeamsResponse$outboundSchema: z.ZodType< data: z.array(z.lazy(() => ListTeamsData$outboundSchema)), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListTeamsResponse$ { - /** @deprecated use `ListTeamsResponse$inboundSchema` instead. */ - export const inboundSchema = ListTeamsResponse$inboundSchema; - /** @deprecated use `ListTeamsResponse$outboundSchema` instead. */ - export const outboundSchema = ListTeamsResponse$outboundSchema; - /** @deprecated use `ListTeamsResponse$Outbound` instead. */ - export type Outbound = ListTeamsResponse$Outbound; -} - export function listTeamsResponseToJSON( listTeamsResponse: ListTeamsResponse, ): string { @@ -173,7 +132,6 @@ export function listTeamsResponseToJSON( ListTeamsResponse$outboundSchema.parse(listTeamsResponse), ); } - export function listTeamsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/listtrackerentries.ts b/src/models/operations/listtrackerentries.ts index c8aafcc..5a39c8e 100644 --- a/src/models/operations/listtrackerentries.ts +++ b/src/models/operations/listtrackerentries.ts @@ -2,14 +2,23 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListTrackerEntriesRequest = { + /** + * Start date of the range (inclusive) in YYYY-MM-DD format + */ from: string; + /** + * End date of the range (inclusive) in YYYY-MM-DD format + */ to: string; + /** + * Optional project ID to filter tracker entries by specific project + */ projectId?: string | undefined; }; @@ -192,7 +201,6 @@ export const ListTrackerEntriesRequest$inboundSchema: z.ZodType< to: z.string(), projectId: z.string().optional(), }); - /** @internal */ export type ListTrackerEntriesRequest$Outbound = { from: string; @@ -211,19 +219,6 @@ export const ListTrackerEntriesRequest$outboundSchema: z.ZodType< projectId: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListTrackerEntriesRequest$ { - /** @deprecated use `ListTrackerEntriesRequest$inboundSchema` instead. */ - export const inboundSchema = ListTrackerEntriesRequest$inboundSchema; - /** @deprecated use `ListTrackerEntriesRequest$outboundSchema` instead. */ - export const outboundSchema = ListTrackerEntriesRequest$outboundSchema; - /** @deprecated use `ListTrackerEntriesRequest$Outbound` instead. */ - export type Outbound = ListTrackerEntriesRequest$Outbound; -} - export function listTrackerEntriesRequestToJSON( listTrackerEntriesRequest: ListTrackerEntriesRequest, ): string { @@ -231,7 +226,6 @@ export function listTrackerEntriesRequestToJSON( ListTrackerEntriesRequest$outboundSchema.parse(listTrackerEntriesRequest), ); } - export function listTrackerEntriesRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -253,7 +247,6 @@ export const ListTrackerEntriesMeta$inboundSchema: z.ZodType< from: z.string(), to: z.string(), }); - /** @internal */ export type ListTrackerEntriesMeta$Outbound = { totalDuration: number; @@ -274,19 +267,6 @@ export const ListTrackerEntriesMeta$outboundSchema: z.ZodType< to: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListTrackerEntriesMeta$ { - /** @deprecated use `ListTrackerEntriesMeta$inboundSchema` instead. */ - export const inboundSchema = ListTrackerEntriesMeta$inboundSchema; - /** @deprecated use `ListTrackerEntriesMeta$outboundSchema` instead. */ - export const outboundSchema = ListTrackerEntriesMeta$outboundSchema; - /** @deprecated use `ListTrackerEntriesMeta$Outbound` instead. */ - export type Outbound = ListTrackerEntriesMeta$Outbound; -} - export function listTrackerEntriesMetaToJSON( listTrackerEntriesMeta: ListTrackerEntriesMeta, ): string { @@ -294,7 +274,6 @@ export function listTrackerEntriesMetaToJSON( ListTrackerEntriesMeta$outboundSchema.parse(listTrackerEntriesMeta), ); } - export function listTrackerEntriesMetaFromJSON( jsonString: string, ): SafeParseResult { @@ -315,7 +294,6 @@ export const ListTrackerEntriesUser$inboundSchema: z.ZodType< fullName: z.string(), avatarUrl: z.string(), }); - /** @internal */ export type ListTrackerEntriesUser$Outbound = { id: string; @@ -334,19 +312,6 @@ export const ListTrackerEntriesUser$outboundSchema: z.ZodType< avatarUrl: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListTrackerEntriesUser$ { - /** @deprecated use `ListTrackerEntriesUser$inboundSchema` instead. */ - export const inboundSchema = ListTrackerEntriesUser$inboundSchema; - /** @deprecated use `ListTrackerEntriesUser$outboundSchema` instead. */ - export const outboundSchema = ListTrackerEntriesUser$outboundSchema; - /** @deprecated use `ListTrackerEntriesUser$Outbound` instead. */ - export type Outbound = ListTrackerEntriesUser$Outbound; -} - export function listTrackerEntriesUserToJSON( listTrackerEntriesUser: ListTrackerEntriesUser, ): string { @@ -354,7 +319,6 @@ export function listTrackerEntriesUserToJSON( ListTrackerEntriesUser$outboundSchema.parse(listTrackerEntriesUser), ); } - export function listTrackerEntriesUserFromJSON( jsonString: string, ): SafeParseResult { @@ -374,7 +338,6 @@ export const ListTrackerEntriesCustomer$inboundSchema: z.ZodType< id: z.string(), name: z.string(), }); - /** @internal */ export type ListTrackerEntriesCustomer$Outbound = { id: string; @@ -391,19 +354,6 @@ export const ListTrackerEntriesCustomer$outboundSchema: z.ZodType< name: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListTrackerEntriesCustomer$ { - /** @deprecated use `ListTrackerEntriesCustomer$inboundSchema` instead. */ - export const inboundSchema = ListTrackerEntriesCustomer$inboundSchema; - /** @deprecated use `ListTrackerEntriesCustomer$outboundSchema` instead. */ - export const outboundSchema = ListTrackerEntriesCustomer$outboundSchema; - /** @deprecated use `ListTrackerEntriesCustomer$Outbound` instead. */ - export type Outbound = ListTrackerEntriesCustomer$Outbound; -} - export function listTrackerEntriesCustomerToJSON( listTrackerEntriesCustomer: ListTrackerEntriesCustomer, ): string { @@ -411,7 +361,6 @@ export function listTrackerEntriesCustomerToJSON( ListTrackerEntriesCustomer$outboundSchema.parse(listTrackerEntriesCustomer), ); } - export function listTrackerEntriesCustomerFromJSON( jsonString: string, ): SafeParseResult { @@ -439,7 +388,6 @@ export const ListTrackerEntriesProject$inboundSchema: z.ZodType< estimate: z.nullable(z.number()), customer: z.nullable(z.lazy(() => ListTrackerEntriesCustomer$inboundSchema)), }); - /** @internal */ export type ListTrackerEntriesProject$Outbound = { id: string; @@ -472,19 +420,6 @@ export const ListTrackerEntriesProject$outboundSchema: z.ZodType< customer: z.nullable(z.lazy(() => ListTrackerEntriesCustomer$outboundSchema)), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListTrackerEntriesProject$ { - /** @deprecated use `ListTrackerEntriesProject$inboundSchema` instead. */ - export const inboundSchema = ListTrackerEntriesProject$inboundSchema; - /** @deprecated use `ListTrackerEntriesProject$outboundSchema` instead. */ - export const outboundSchema = ListTrackerEntriesProject$outboundSchema; - /** @deprecated use `ListTrackerEntriesProject$Outbound` instead. */ - export type Outbound = ListTrackerEntriesProject$Outbound; -} - export function listTrackerEntriesProjectToJSON( listTrackerEntriesProject: ListTrackerEntriesProject, ): string { @@ -492,7 +427,6 @@ export function listTrackerEntriesProjectToJSON( ListTrackerEntriesProject$outboundSchema.parse(listTrackerEntriesProject), ); } - export function listTrackerEntriesProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -520,7 +454,6 @@ export const Result$inboundSchema: z.ZodType = z user: z.lazy(() => ListTrackerEntriesUser$inboundSchema), project: z.lazy(() => ListTrackerEntriesProject$inboundSchema), }); - /** @internal */ export type Result$Outbound = { id: string; @@ -559,23 +492,9 @@ export const Result$outboundSchema: z.ZodType< project: z.lazy(() => ListTrackerEntriesProject$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Result$ { - /** @deprecated use `Result$inboundSchema` instead. */ - export const inboundSchema = Result$inboundSchema; - /** @deprecated use `Result$outboundSchema` instead. */ - export const outboundSchema = Result$outboundSchema; - /** @deprecated use `Result$Outbound` instead. */ - export type Outbound = Result$Outbound; -} - export function resultToJSON(result: Result): string { return JSON.stringify(Result$outboundSchema.parse(result)); } - export function resultFromJSON( jsonString: string, ): SafeParseResult { @@ -595,7 +514,6 @@ export const ListTrackerEntriesResponse$inboundSchema: z.ZodType< meta: z.lazy(() => ListTrackerEntriesMeta$inboundSchema), result: z.record(z.array(z.lazy(() => Result$inboundSchema))), }); - /** @internal */ export type ListTrackerEntriesResponse$Outbound = { meta: ListTrackerEntriesMeta$Outbound; @@ -612,19 +530,6 @@ export const ListTrackerEntriesResponse$outboundSchema: z.ZodType< result: z.record(z.array(z.lazy(() => Result$outboundSchema))), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListTrackerEntriesResponse$ { - /** @deprecated use `ListTrackerEntriesResponse$inboundSchema` instead. */ - export const inboundSchema = ListTrackerEntriesResponse$inboundSchema; - /** @deprecated use `ListTrackerEntriesResponse$outboundSchema` instead. */ - export const outboundSchema = ListTrackerEntriesResponse$outboundSchema; - /** @deprecated use `ListTrackerEntriesResponse$Outbound` instead. */ - export type Outbound = ListTrackerEntriesResponse$Outbound; -} - export function listTrackerEntriesResponseToJSON( listTrackerEntriesResponse: ListTrackerEntriesResponse, ): string { @@ -632,7 +537,6 @@ export function listTrackerEntriesResponseToJSON( ListTrackerEntriesResponse$outboundSchema.parse(listTrackerEntriesResponse), ); } - export function listTrackerEntriesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/listtrackerprojects.ts b/src/models/operations/listtrackerprojects.ts index 896a260..8fef9f2 100644 --- a/src/models/operations/listtrackerprojects.ts +++ b/src/models/operations/listtrackerprojects.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -23,17 +23,41 @@ export type ListTrackerProjectsStatus = ClosedEnum< >; export type ListTrackerProjectsRequest = { + /** + * Cursor for pagination, representing the last item from the previous page + */ cursor?: string | null | undefined; + /** + * Number of projects to return per page (1-100) + */ pageSize?: number | undefined; + /** + * Search query string to filter projects by name or description + */ q?: string | null | undefined; + /** + * Start date for filtering projects by creation date in YYYY-MM-DD format + */ start?: string | null | undefined; + /** + * End date for filtering projects by creation date in YYYY-MM-DD format + */ end?: string | null | undefined; /** * Filter projects by status */ status?: ListTrackerProjectsStatus | null | undefined; + /** + * Array of customer IDs to filter projects by specific customers + */ customers?: Array | null | undefined; + /** + * Array of tag IDs to filter projects by specific tags + */ tags?: Array | null | undefined; + /** + * Sorting order as an array of field names. Prefix with '-' for descending order + */ sort?: Array | null | undefined; }; @@ -41,23 +65,11 @@ export type ListTrackerProjectsRequest = { export const ListTrackerProjectsStatus$inboundSchema: z.ZodNativeEnum< typeof ListTrackerProjectsStatus > = z.nativeEnum(ListTrackerProjectsStatus); - /** @internal */ export const ListTrackerProjectsStatus$outboundSchema: z.ZodNativeEnum< typeof ListTrackerProjectsStatus > = ListTrackerProjectsStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListTrackerProjectsStatus$ { - /** @deprecated use `ListTrackerProjectsStatus$inboundSchema` instead. */ - export const inboundSchema = ListTrackerProjectsStatus$inboundSchema; - /** @deprecated use `ListTrackerProjectsStatus$outboundSchema` instead. */ - export const outboundSchema = ListTrackerProjectsStatus$outboundSchema; -} - /** @internal */ export const ListTrackerProjectsRequest$inboundSchema: z.ZodType< ListTrackerProjectsRequest, @@ -74,7 +86,6 @@ export const ListTrackerProjectsRequest$inboundSchema: z.ZodType< tags: z.nullable(z.array(z.string())).optional(), sort: z.nullable(z.array(z.string())).optional(), }); - /** @internal */ export type ListTrackerProjectsRequest$Outbound = { cursor?: string | null | undefined; @@ -105,19 +116,6 @@ export const ListTrackerProjectsRequest$outboundSchema: z.ZodType< sort: z.nullable(z.array(z.string())).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListTrackerProjectsRequest$ { - /** @deprecated use `ListTrackerProjectsRequest$inboundSchema` instead. */ - export const inboundSchema = ListTrackerProjectsRequest$inboundSchema; - /** @deprecated use `ListTrackerProjectsRequest$outboundSchema` instead. */ - export const outboundSchema = ListTrackerProjectsRequest$outboundSchema; - /** @deprecated use `ListTrackerProjectsRequest$Outbound` instead. */ - export type Outbound = ListTrackerProjectsRequest$Outbound; -} - export function listTrackerProjectsRequestToJSON( listTrackerProjectsRequest: ListTrackerProjectsRequest, ): string { @@ -125,7 +123,6 @@ export function listTrackerProjectsRequestToJSON( ListTrackerProjectsRequest$outboundSchema.parse(listTrackerProjectsRequest), ); } - export function listTrackerProjectsRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/listtransactions.ts b/src/models/operations/listtransactions.ts index dc83ddc..f7d595e 100644 --- a/src/models/operations/listtransactions.ts +++ b/src/models/operations/listtransactions.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -33,29 +33,95 @@ export const ListTransactionsType = { */ export type ListTransactionsType = ClosedEnum; +/** + * Filter transactions based on whether they were manually imported. 'include' returns only manual transactions, 'exclude' returns only non-manual transactions + */ +export const Manual = { + Include: "include", + Exclude: "exclude", +} as const; +/** + * Filter transactions based on whether they were manually imported. 'include' returns only manual transactions, 'exclude' returns only non-manual transactions + */ +export type Manual = ClosedEnum; + export type ListTransactionsRequest = { + /** + * Cursor for pagination, representing the last item from the previous page + */ cursor?: string | null | undefined; + /** + * Sorting order as a tuple: [field, direction]. Example: ['date', 'desc'] or ['amount', 'asc'] + */ sort?: Array | null | undefined; + /** + * Number of transactions to return per page (1-10000) + */ pageSize?: number | undefined; + /** + * Search query string to filter transactions by name, description, or other text fields + */ q?: string | null | undefined; + /** + * Array of category slugs to filter transactions by specific categories + */ categories?: Array | null | undefined; + /** + * Array of tag IDs to filter transactions by specific tags + */ tags?: Array | null | undefined; + /** + * Start date (inclusive) for filtering transactions in ISO 8601 format + */ start?: string | null | undefined; + /** + * End date (inclusive) for filtering transactions in ISO 8601 format + */ end?: string | null | undefined; + /** + * Array of bank account IDs to filter transactions by specific accounts + */ accounts?: Array | null | undefined; + /** + * Array of user IDs to filter transactions by assigned users + */ assignees?: Array | null | undefined; + /** + * Array of transaction statuses to filter by. Available statuses: 'pending', 'completed', 'archived', 'posted', 'excluded' + */ statuses?: Array | null | undefined; + /** + * Array of recurring frequency values to filter by. Available frequencies: 'weekly', 'monthly', 'annually', 'irregular' + */ recurring?: Array | null | undefined; /** * Filter transactions based on attachment presence. 'include' returns only transactions with attachments, 'exclude' returns only transactions without attachments */ attachments?: Attachments | null | undefined; + /** + * Amount range as [min, max] to filter transactions by monetary value + */ amountRange?: Array | null | undefined; + /** + * Array of specific amounts (as strings) to filter transactions by exact values + */ amount?: Array | null | undefined; /** * Transaction type to filter by. 'income' for money received, 'expense' for money spent */ type?: ListTransactionsType | null | undefined; + /** + * Filter transactions based on whether they were manually imported. 'include' returns only manual transactions, 'exclude' returns only non-manual transactions + */ + manual?: Manual | null | undefined; + /** + * Filter by export status. true = only exported transactions, false = only NOT exported transactions, undefined = no filter + */ + exported?: boolean | null | undefined; + /** + * Filter by fulfillment status. true = transactions ready for review (has attachments OR status=completed), false = not ready, undefined = no filter + */ + fulfilled?: boolean | null | undefined; }; /** @@ -93,42 +159,25 @@ export type ListTransactionsResponse = { /** @internal */ export const Attachments$inboundSchema: z.ZodNativeEnum = z .nativeEnum(Attachments); - /** @internal */ export const Attachments$outboundSchema: z.ZodNativeEnum = Attachments$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Attachments$ { - /** @deprecated use `Attachments$inboundSchema` instead. */ - export const inboundSchema = Attachments$inboundSchema; - /** @deprecated use `Attachments$outboundSchema` instead. */ - export const outboundSchema = Attachments$outboundSchema; -} - /** @internal */ export const ListTransactionsType$inboundSchema: z.ZodNativeEnum< typeof ListTransactionsType > = z.nativeEnum(ListTransactionsType); - /** @internal */ export const ListTransactionsType$outboundSchema: z.ZodNativeEnum< typeof ListTransactionsType > = ListTransactionsType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListTransactionsType$ { - /** @deprecated use `ListTransactionsType$inboundSchema` instead. */ - export const inboundSchema = ListTransactionsType$inboundSchema; - /** @deprecated use `ListTransactionsType$outboundSchema` instead. */ - export const outboundSchema = ListTransactionsType$outboundSchema; -} +/** @internal */ +export const Manual$inboundSchema: z.ZodNativeEnum = z + .nativeEnum(Manual); +/** @internal */ +export const Manual$outboundSchema: z.ZodNativeEnum = + Manual$inboundSchema; /** @internal */ export const ListTransactionsRequest$inboundSchema: z.ZodType< @@ -152,8 +201,10 @@ export const ListTransactionsRequest$inboundSchema: z.ZodType< amountRange: z.nullable(z.array(z.nullable(z.number()))).optional(), amount: z.nullable(z.array(z.string())).optional(), type: z.nullable(ListTransactionsType$inboundSchema).optional(), + manual: z.nullable(Manual$inboundSchema).optional(), + exported: z.nullable(z.boolean()).optional(), + fulfilled: z.nullable(z.boolean()).optional(), }); - /** @internal */ export type ListTransactionsRequest$Outbound = { cursor?: string | null | undefined; @@ -172,6 +223,9 @@ export type ListTransactionsRequest$Outbound = { amountRange?: Array | null | undefined; amount?: Array | null | undefined; type?: string | null | undefined; + manual?: string | null | undefined; + exported?: boolean | null | undefined; + fulfilled?: boolean | null | undefined; }; /** @internal */ @@ -196,21 +250,11 @@ export const ListTransactionsRequest$outboundSchema: z.ZodType< amountRange: z.nullable(z.array(z.nullable(z.number()))).optional(), amount: z.nullable(z.array(z.string())).optional(), type: z.nullable(ListTransactionsType$outboundSchema).optional(), + manual: z.nullable(Manual$outboundSchema).optional(), + exported: z.nullable(z.boolean()).optional(), + fulfilled: z.nullable(z.boolean()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListTransactionsRequest$ { - /** @deprecated use `ListTransactionsRequest$inboundSchema` instead. */ - export const inboundSchema = ListTransactionsRequest$inboundSchema; - /** @deprecated use `ListTransactionsRequest$outboundSchema` instead. */ - export const outboundSchema = ListTransactionsRequest$outboundSchema; - /** @deprecated use `ListTransactionsRequest$Outbound` instead. */ - export type Outbound = ListTransactionsRequest$Outbound; -} - export function listTransactionsRequestToJSON( listTransactionsRequest: ListTransactionsRequest, ): string { @@ -218,7 +262,6 @@ export function listTransactionsRequestToJSON( ListTransactionsRequest$outboundSchema.parse(listTransactionsRequest), ); } - export function listTransactionsRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -239,7 +282,6 @@ export const ListTransactionsMeta$inboundSchema: z.ZodType< hasPreviousPage: z.boolean(), hasNextPage: z.boolean(), }); - /** @internal */ export type ListTransactionsMeta$Outbound = { cursor?: string | undefined; @@ -258,19 +300,6 @@ export const ListTransactionsMeta$outboundSchema: z.ZodType< hasNextPage: z.boolean(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListTransactionsMeta$ { - /** @deprecated use `ListTransactionsMeta$inboundSchema` instead. */ - export const inboundSchema = ListTransactionsMeta$inboundSchema; - /** @deprecated use `ListTransactionsMeta$outboundSchema` instead. */ - export const outboundSchema = ListTransactionsMeta$outboundSchema; - /** @deprecated use `ListTransactionsMeta$Outbound` instead. */ - export type Outbound = ListTransactionsMeta$Outbound; -} - export function listTransactionsMetaToJSON( listTransactionsMeta: ListTransactionsMeta, ): string { @@ -278,7 +307,6 @@ export function listTransactionsMetaToJSON( ListTransactionsMeta$outboundSchema.parse(listTransactionsMeta), ); } - export function listTransactionsMetaFromJSON( jsonString: string, ): SafeParseResult { @@ -298,7 +326,6 @@ export const ListTransactionsResponse$inboundSchema: z.ZodType< meta: z.lazy(() => ListTransactionsMeta$inboundSchema), data: z.array(models.TransactionResponse$inboundSchema), }); - /** @internal */ export type ListTransactionsResponse$Outbound = { meta: ListTransactionsMeta$Outbound; @@ -315,19 +342,6 @@ export const ListTransactionsResponse$outboundSchema: z.ZodType< data: z.array(models.TransactionResponse$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListTransactionsResponse$ { - /** @deprecated use `ListTransactionsResponse$inboundSchema` instead. */ - export const inboundSchema = ListTransactionsResponse$inboundSchema; - /** @deprecated use `ListTransactionsResponse$outboundSchema` instead. */ - export const outboundSchema = ListTransactionsResponse$outboundSchema; - /** @deprecated use `ListTransactionsResponse$Outbound` instead. */ - export type Outbound = ListTransactionsResponse$Outbound; -} - export function listTransactionsResponseToJSON( listTransactionsResponse: ListTransactionsResponse, ): string { @@ -335,7 +349,6 @@ export function listTransactionsResponseToJSON( ListTransactionsResponse$outboundSchema.parse(listTransactionsResponse), ); } - export function listTransactionsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/outlookoauthcallback.ts b/src/models/operations/outlookoauthcallback.ts new file mode 100644 index 0000000..c838482 --- /dev/null +++ b/src/models/operations/outlookoauthcallback.ts @@ -0,0 +1,124 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +export type OutlookOAuthCallbackRequest = { + /** + * OAuth authorization code from Microsoft + */ + code?: string | undefined; + /** + * Encrypted OAuth state parameter + */ + state: string; + /** + * OAuth error code if authorization failed + */ + error?: string | undefined; +}; + +export type OutlookOAuthCallbackResponse = { + headers: { [k: string]: Array }; +}; + +/** @internal */ +export const OutlookOAuthCallbackRequest$inboundSchema: z.ZodType< + OutlookOAuthCallbackRequest, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.string().optional(), + state: z.string(), + error: z.string().optional(), +}); +/** @internal */ +export type OutlookOAuthCallbackRequest$Outbound = { + code?: string | undefined; + state: string; + error?: string | undefined; +}; + +/** @internal */ +export const OutlookOAuthCallbackRequest$outboundSchema: z.ZodType< + OutlookOAuthCallbackRequest$Outbound, + z.ZodTypeDef, + OutlookOAuthCallbackRequest +> = z.object({ + code: z.string().optional(), + state: z.string(), + error: z.string().optional(), +}); + +export function outlookOAuthCallbackRequestToJSON( + outlookOAuthCallbackRequest: OutlookOAuthCallbackRequest, +): string { + return JSON.stringify( + OutlookOAuthCallbackRequest$outboundSchema.parse( + outlookOAuthCallbackRequest, + ), + ); +} +export function outlookOAuthCallbackRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => OutlookOAuthCallbackRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'OutlookOAuthCallbackRequest' from JSON`, + ); +} + +/** @internal */ +export const OutlookOAuthCallbackResponse$inboundSchema: z.ZodType< + OutlookOAuthCallbackResponse, + z.ZodTypeDef, + unknown +> = z.object({ + Headers: z.record(z.array(z.string())).default({}), +}).transform((v) => { + return remap$(v, { + "Headers": "headers", + }); +}); +/** @internal */ +export type OutlookOAuthCallbackResponse$Outbound = { + Headers: { [k: string]: Array }; +}; + +/** @internal */ +export const OutlookOAuthCallbackResponse$outboundSchema: z.ZodType< + OutlookOAuthCallbackResponse$Outbound, + z.ZodTypeDef, + OutlookOAuthCallbackResponse +> = z.object({ + headers: z.record(z.array(z.string())), +}).transform((v) => { + return remap$(v, { + headers: "Headers", + }); +}); + +export function outlookOAuthCallbackResponseToJSON( + outlookOAuthCallbackResponse: OutlookOAuthCallbackResponse, +): string { + return JSON.stringify( + OutlookOAuthCallbackResponse$outboundSchema.parse( + outlookOAuthCallbackResponse, + ), + ); +} +export function outlookOAuthCallbackResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => OutlookOAuthCallbackResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'OutlookOAuthCallbackResponse' from JSON`, + ); +} diff --git a/src/models/operations/postoauthauthorization.ts b/src/models/operations/postoauthauthorization.ts index 6fd307d..0f49979 100644 --- a/src/models/operations/postoauthauthorization.ts +++ b/src/models/operations/postoauthauthorization.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -24,6 +24,8 @@ export type Decision = ClosedEnum; export const Scope = { BankAccountsRead: "bank-accounts.read", BankAccountsWrite: "bank-accounts.write", + ChatRead: "chat.read", + ChatWrite: "chat.write", CustomersRead: "customers.read", CustomersWrite: "customers.write", DocumentsRead: "documents.read", @@ -94,42 +96,18 @@ export type PostOAuthAuthorizationResponse = { /** @internal */ export const Decision$inboundSchema: z.ZodNativeEnum = z .nativeEnum(Decision); - /** @internal */ export const Decision$outboundSchema: z.ZodNativeEnum = Decision$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Decision$ { - /** @deprecated use `Decision$inboundSchema` instead. */ - export const inboundSchema = Decision$inboundSchema; - /** @deprecated use `Decision$outboundSchema` instead. */ - export const outboundSchema = Decision$outboundSchema; -} - /** @internal */ export const Scope$inboundSchema: z.ZodNativeEnum = z.nativeEnum( Scope, ); - /** @internal */ export const Scope$outboundSchema: z.ZodNativeEnum = Scope$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Scope$ { - /** @deprecated use `Scope$inboundSchema` instead. */ - export const inboundSchema = Scope$inboundSchema; - /** @deprecated use `Scope$outboundSchema` instead. */ - export const outboundSchema = Scope$outboundSchema; -} - /** @internal */ export const PostOAuthAuthorizationRequest$inboundSchema: z.ZodType< PostOAuthAuthorizationRequest, @@ -150,7 +128,6 @@ export const PostOAuthAuthorizationRequest$inboundSchema: z.ZodType< "code_challenge": "codeChallenge", }); }); - /** @internal */ export type PostOAuthAuthorizationRequest$Outbound = { client_id: string; @@ -183,19 +160,6 @@ export const PostOAuthAuthorizationRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostOAuthAuthorizationRequest$ { - /** @deprecated use `PostOAuthAuthorizationRequest$inboundSchema` instead. */ - export const inboundSchema = PostOAuthAuthorizationRequest$inboundSchema; - /** @deprecated use `PostOAuthAuthorizationRequest$outboundSchema` instead. */ - export const outboundSchema = PostOAuthAuthorizationRequest$outboundSchema; - /** @deprecated use `PostOAuthAuthorizationRequest$Outbound` instead. */ - export type Outbound = PostOAuthAuthorizationRequest$Outbound; -} - export function postOAuthAuthorizationRequestToJSON( postOAuthAuthorizationRequest: PostOAuthAuthorizationRequest, ): string { @@ -205,7 +169,6 @@ export function postOAuthAuthorizationRequestToJSON( ), ); } - export function postOAuthAuthorizationRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -228,7 +191,6 @@ export const PostOAuthAuthorizationResponse$inboundSchema: z.ZodType< "redirect_url": "redirectUrl", }); }); - /** @internal */ export type PostOAuthAuthorizationResponse$Outbound = { redirect_url: string; @@ -247,19 +209,6 @@ export const PostOAuthAuthorizationResponse$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostOAuthAuthorizationResponse$ { - /** @deprecated use `PostOAuthAuthorizationResponse$inboundSchema` instead. */ - export const inboundSchema = PostOAuthAuthorizationResponse$inboundSchema; - /** @deprecated use `PostOAuthAuthorizationResponse$outboundSchema` instead. */ - export const outboundSchema = PostOAuthAuthorizationResponse$outboundSchema; - /** @deprecated use `PostOAuthAuthorizationResponse$Outbound` instead. */ - export type Outbound = PostOAuthAuthorizationResponse$Outbound; -} - export function postOAuthAuthorizationResponseToJSON( postOAuthAuthorizationResponse: PostOAuthAuthorizationResponse, ): string { @@ -269,7 +218,6 @@ export function postOAuthAuthorizationResponseToJSON( ), ); } - export function postOAuthAuthorizationResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/postoauthrevoke.ts b/src/models/operations/postoauthrevoke.ts index 192945d..da771bf 100644 --- a/src/models/operations/postoauthrevoke.ts +++ b/src/models/operations/postoauthrevoke.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -51,23 +51,11 @@ export type PostOAuthRevokeResponse = { export const TokenTypeHint$inboundSchema: z.ZodNativeEnum< typeof TokenTypeHint > = z.nativeEnum(TokenTypeHint); - /** @internal */ export const TokenTypeHint$outboundSchema: z.ZodNativeEnum< typeof TokenTypeHint > = TokenTypeHint$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TokenTypeHint$ { - /** @deprecated use `TokenTypeHint$inboundSchema` instead. */ - export const inboundSchema = TokenTypeHint$inboundSchema; - /** @deprecated use `TokenTypeHint$outboundSchema` instead. */ - export const outboundSchema = TokenTypeHint$outboundSchema; -} - /** @internal */ export const PostOAuthRevokeRequest$inboundSchema: z.ZodType< PostOAuthRevokeRequest, @@ -85,7 +73,6 @@ export const PostOAuthRevokeRequest$inboundSchema: z.ZodType< "client_secret": "clientSecret", }); }); - /** @internal */ export type PostOAuthRevokeRequest$Outbound = { token: string; @@ -112,19 +99,6 @@ export const PostOAuthRevokeRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostOAuthRevokeRequest$ { - /** @deprecated use `PostOAuthRevokeRequest$inboundSchema` instead. */ - export const inboundSchema = PostOAuthRevokeRequest$inboundSchema; - /** @deprecated use `PostOAuthRevokeRequest$outboundSchema` instead. */ - export const outboundSchema = PostOAuthRevokeRequest$outboundSchema; - /** @deprecated use `PostOAuthRevokeRequest$Outbound` instead. */ - export type Outbound = PostOAuthRevokeRequest$Outbound; -} - export function postOAuthRevokeRequestToJSON( postOAuthRevokeRequest: PostOAuthRevokeRequest, ): string { @@ -132,7 +106,6 @@ export function postOAuthRevokeRequestToJSON( PostOAuthRevokeRequest$outboundSchema.parse(postOAuthRevokeRequest), ); } - export function postOAuthRevokeRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -151,7 +124,6 @@ export const PostOAuthRevokeResponse$inboundSchema: z.ZodType< > = z.object({ success: z.boolean(), }); - /** @internal */ export type PostOAuthRevokeResponse$Outbound = { success: boolean; @@ -166,19 +138,6 @@ export const PostOAuthRevokeResponse$outboundSchema: z.ZodType< success: z.boolean(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostOAuthRevokeResponse$ { - /** @deprecated use `PostOAuthRevokeResponse$inboundSchema` instead. */ - export const inboundSchema = PostOAuthRevokeResponse$inboundSchema; - /** @deprecated use `PostOAuthRevokeResponse$outboundSchema` instead. */ - export const outboundSchema = PostOAuthRevokeResponse$outboundSchema; - /** @deprecated use `PostOAuthRevokeResponse$Outbound` instead. */ - export type Outbound = PostOAuthRevokeResponse$Outbound; -} - export function postOAuthRevokeResponseToJSON( postOAuthRevokeResponse: PostOAuthRevokeResponse, ): string { @@ -186,7 +145,6 @@ export function postOAuthRevokeResponseToJSON( PostOAuthRevokeResponse$outboundSchema.parse(postOAuthRevokeResponse), ); } - export function postOAuthRevokeResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/postoauthtoken.ts b/src/models/operations/postoauthtoken.ts index 97e4755..241ab6d 100644 --- a/src/models/operations/postoauthtoken.ts +++ b/src/models/operations/postoauthtoken.ts @@ -2,29 +2,18 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -/** - * OAuth grant type, must be 'refresh_token' - */ -export const GrantTypeRefreshToken = { - RefreshToken: "refresh_token", -} as const; -/** - * OAuth grant type, must be 'refresh_token' - */ -export type GrantTypeRefreshToken = ClosedEnum; - export type RefreshToken = { /** * OAuth grant type, must be 'refresh_token' */ - grantType: GrantTypeRefreshToken; + grantType: "refresh_token"; /** * Refresh token received from token endpoint */ @@ -43,24 +32,11 @@ export type RefreshToken = { scope?: string | undefined; }; -/** - * OAuth grant type, must be 'authorization_code' - */ -export const GrantTypeAuthorizationCode = { - AuthorizationCode: "authorization_code", -} as const; -/** - * OAuth grant type, must be 'authorization_code' - */ -export type GrantTypeAuthorizationCode = ClosedEnum< - typeof GrantTypeAuthorizationCode ->; - export type AuthorizationCode = { /** * OAuth grant type, must be 'authorization_code' */ - grantType: GrantTypeAuthorizationCode; + grantType: "authorization_code"; /** * Authorization code received from authorization endpoint */ @@ -122,34 +98,13 @@ export type PostOAuthTokenResponse = { scope: string; }; -/** @internal */ -export const GrantTypeRefreshToken$inboundSchema: z.ZodNativeEnum< - typeof GrantTypeRefreshToken -> = z.nativeEnum(GrantTypeRefreshToken); - -/** @internal */ -export const GrantTypeRefreshToken$outboundSchema: z.ZodNativeEnum< - typeof GrantTypeRefreshToken -> = GrantTypeRefreshToken$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GrantTypeRefreshToken$ { - /** @deprecated use `GrantTypeRefreshToken$inboundSchema` instead. */ - export const inboundSchema = GrantTypeRefreshToken$inboundSchema; - /** @deprecated use `GrantTypeRefreshToken$outboundSchema` instead. */ - export const outboundSchema = GrantTypeRefreshToken$outboundSchema; -} - /** @internal */ export const RefreshToken$inboundSchema: z.ZodType< RefreshToken, z.ZodTypeDef, unknown > = z.object({ - grant_type: GrantTypeRefreshToken$inboundSchema, + grant_type: z.literal("refresh_token"), refresh_token: z.string(), client_id: z.string(), client_secret: z.string().optional(), @@ -162,10 +117,9 @@ export const RefreshToken$inboundSchema: z.ZodType< "client_secret": "clientSecret", }); }); - /** @internal */ export type RefreshToken$Outbound = { - grant_type: string; + grant_type: "refresh_token"; refresh_token: string; client_id: string; client_secret?: string | undefined; @@ -178,7 +132,7 @@ export const RefreshToken$outboundSchema: z.ZodType< z.ZodTypeDef, RefreshToken > = z.object({ - grantType: GrantTypeRefreshToken$outboundSchema, + grantType: z.literal("refresh_token"), refreshToken: z.string(), clientId: z.string(), clientSecret: z.string().optional(), @@ -192,23 +146,9 @@ export const RefreshToken$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RefreshToken$ { - /** @deprecated use `RefreshToken$inboundSchema` instead. */ - export const inboundSchema = RefreshToken$inboundSchema; - /** @deprecated use `RefreshToken$outboundSchema` instead. */ - export const outboundSchema = RefreshToken$outboundSchema; - /** @deprecated use `RefreshToken$Outbound` instead. */ - export type Outbound = RefreshToken$Outbound; -} - export function refreshTokenToJSON(refreshToken: RefreshToken): string { return JSON.stringify(RefreshToken$outboundSchema.parse(refreshToken)); } - export function refreshTokenFromJSON( jsonString: string, ): SafeParseResult { @@ -219,34 +159,13 @@ export function refreshTokenFromJSON( ); } -/** @internal */ -export const GrantTypeAuthorizationCode$inboundSchema: z.ZodNativeEnum< - typeof GrantTypeAuthorizationCode -> = z.nativeEnum(GrantTypeAuthorizationCode); - -/** @internal */ -export const GrantTypeAuthorizationCode$outboundSchema: z.ZodNativeEnum< - typeof GrantTypeAuthorizationCode -> = GrantTypeAuthorizationCode$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GrantTypeAuthorizationCode$ { - /** @deprecated use `GrantTypeAuthorizationCode$inboundSchema` instead. */ - export const inboundSchema = GrantTypeAuthorizationCode$inboundSchema; - /** @deprecated use `GrantTypeAuthorizationCode$outboundSchema` instead. */ - export const outboundSchema = GrantTypeAuthorizationCode$outboundSchema; -} - /** @internal */ export const AuthorizationCode$inboundSchema: z.ZodType< AuthorizationCode, z.ZodTypeDef, unknown > = z.object({ - grant_type: GrantTypeAuthorizationCode$inboundSchema, + grant_type: z.literal("authorization_code"), code: z.string(), redirect_uri: z.string(), client_id: z.string(), @@ -261,10 +180,9 @@ export const AuthorizationCode$inboundSchema: z.ZodType< "code_verifier": "codeVerifier", }); }); - /** @internal */ export type AuthorizationCode$Outbound = { - grant_type: string; + grant_type: "authorization_code"; code: string; redirect_uri: string; client_id: string; @@ -278,7 +196,7 @@ export const AuthorizationCode$outboundSchema: z.ZodType< z.ZodTypeDef, AuthorizationCode > = z.object({ - grantType: GrantTypeAuthorizationCode$outboundSchema, + grantType: z.literal("authorization_code"), code: z.string(), redirectUri: z.string(), clientId: z.string(), @@ -294,19 +212,6 @@ export const AuthorizationCode$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AuthorizationCode$ { - /** @deprecated use `AuthorizationCode$inboundSchema` instead. */ - export const inboundSchema = AuthorizationCode$inboundSchema; - /** @deprecated use `AuthorizationCode$outboundSchema` instead. */ - export const outboundSchema = AuthorizationCode$outboundSchema; - /** @deprecated use `AuthorizationCode$Outbound` instead. */ - export type Outbound = AuthorizationCode$Outbound; -} - export function authorizationCodeToJSON( authorizationCode: AuthorizationCode, ): string { @@ -314,7 +219,6 @@ export function authorizationCodeToJSON( AuthorizationCode$outboundSchema.parse(authorizationCode), ); } - export function authorizationCodeFromJSON( jsonString: string, ): SafeParseResult { @@ -334,7 +238,6 @@ export const PostOAuthTokenRequest$inboundSchema: z.ZodType< z.lazy(() => AuthorizationCode$inboundSchema), z.lazy(() => RefreshToken$inboundSchema), ]); - /** @internal */ export type PostOAuthTokenRequest$Outbound = | AuthorizationCode$Outbound @@ -350,19 +253,6 @@ export const PostOAuthTokenRequest$outboundSchema: z.ZodType< z.lazy(() => RefreshToken$outboundSchema), ]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostOAuthTokenRequest$ { - /** @deprecated use `PostOAuthTokenRequest$inboundSchema` instead. */ - export const inboundSchema = PostOAuthTokenRequest$inboundSchema; - /** @deprecated use `PostOAuthTokenRequest$outboundSchema` instead. */ - export const outboundSchema = PostOAuthTokenRequest$outboundSchema; - /** @deprecated use `PostOAuthTokenRequest$Outbound` instead. */ - export type Outbound = PostOAuthTokenRequest$Outbound; -} - export function postOAuthTokenRequestToJSON( postOAuthTokenRequest: PostOAuthTokenRequest, ): string { @@ -370,7 +260,6 @@ export function postOAuthTokenRequestToJSON( PostOAuthTokenRequest$outboundSchema.parse(postOAuthTokenRequest), ); } - export function postOAuthTokenRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -384,22 +273,10 @@ export function postOAuthTokenRequestFromJSON( /** @internal */ export const TokenType$inboundSchema: z.ZodNativeEnum = z .nativeEnum(TokenType); - /** @internal */ export const TokenType$outboundSchema: z.ZodNativeEnum = TokenType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TokenType$ { - /** @deprecated use `TokenType$inboundSchema` instead. */ - export const inboundSchema = TokenType$inboundSchema; - /** @deprecated use `TokenType$outboundSchema` instead. */ - export const outboundSchema = TokenType$outboundSchema; -} - /** @internal */ export const PostOAuthTokenResponse$inboundSchema: z.ZodType< PostOAuthTokenResponse, @@ -419,7 +296,6 @@ export const PostOAuthTokenResponse$inboundSchema: z.ZodType< "refresh_token": "refreshToken", }); }); - /** @internal */ export type PostOAuthTokenResponse$Outbound = { access_token: string; @@ -449,19 +325,6 @@ export const PostOAuthTokenResponse$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostOAuthTokenResponse$ { - /** @deprecated use `PostOAuthTokenResponse$inboundSchema` instead. */ - export const inboundSchema = PostOAuthTokenResponse$inboundSchema; - /** @deprecated use `PostOAuthTokenResponse$outboundSchema` instead. */ - export const outboundSchema = PostOAuthTokenResponse$outboundSchema; - /** @deprecated use `PostOAuthTokenResponse$Outbound` instead. */ - export type Outbound = PostOAuthTokenResponse$Outbound; -} - export function postOAuthTokenResponseToJSON( postOAuthTokenResponse: PostOAuthTokenResponse, ): string { @@ -469,7 +332,6 @@ export function postOAuthTokenResponseToJSON( PostOAuthTokenResponse$outboundSchema.parse(postOAuthTokenResponse), ); } - export function postOAuthTokenResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/proxyfile.ts b/src/models/operations/proxyfile.ts new file mode 100644 index 0000000..2bd4237 --- /dev/null +++ b/src/models/operations/proxyfile.ts @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +export type ProxyFileRequest = { + /** + * Path to the file in storage. Can include or exclude 'vault/' prefix. + */ + filePath: string; + /** + * Team file key for proxy/download access to team files. This key is returned in the user data response (GET /users/me) as the `fileKey` field. It is team-scoped and deterministic - all members of the same team share the same file key. Use this key to authenticate file access requests. + */ + fk: string; +}; + +/** @internal */ +export const ProxyFileRequest$inboundSchema: z.ZodType< + ProxyFileRequest, + z.ZodTypeDef, + unknown +> = z.object({ + filePath: z.string(), + fk: z.string(), +}); +/** @internal */ +export type ProxyFileRequest$Outbound = { + filePath: string; + fk: string; +}; + +/** @internal */ +export const ProxyFileRequest$outboundSchema: z.ZodType< + ProxyFileRequest$Outbound, + z.ZodTypeDef, + ProxyFileRequest +> = z.object({ + filePath: z.string(), + fk: z.string(), +}); + +export function proxyFileRequestToJSON( + proxyFileRequest: ProxyFileRequest, +): string { + return JSON.stringify( + ProxyFileRequest$outboundSchema.parse(proxyFileRequest), + ); +} +export function proxyFileRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ProxyFileRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ProxyFileRequest' from JSON`, + ); +} diff --git a/src/models/operations/quickbooksoauthcallback.ts b/src/models/operations/quickbooksoauthcallback.ts new file mode 100644 index 0000000..fc8d0ff --- /dev/null +++ b/src/models/operations/quickbooksoauthcallback.ts @@ -0,0 +1,131 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +export type QuickBooksOAuthCallbackRequest = { + /** + * OAuth authorization code from QuickBooks + */ + code?: string | undefined; + /** + * OAuth state parameter for CSRF protection + */ + state: string; + /** + * QuickBooks company/realm ID + */ + realmId?: string | undefined; + /** + * OAuth error code if authorization failed + */ + error?: string | undefined; +}; + +export type QuickBooksOAuthCallbackResponse = { + headers: { [k: string]: Array }; +}; + +/** @internal */ +export const QuickBooksOAuthCallbackRequest$inboundSchema: z.ZodType< + QuickBooksOAuthCallbackRequest, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.string().optional(), + state: z.string(), + realmId: z.string().optional(), + error: z.string().optional(), +}); +/** @internal */ +export type QuickBooksOAuthCallbackRequest$Outbound = { + code?: string | undefined; + state: string; + realmId?: string | undefined; + error?: string | undefined; +}; + +/** @internal */ +export const QuickBooksOAuthCallbackRequest$outboundSchema: z.ZodType< + QuickBooksOAuthCallbackRequest$Outbound, + z.ZodTypeDef, + QuickBooksOAuthCallbackRequest +> = z.object({ + code: z.string().optional(), + state: z.string(), + realmId: z.string().optional(), + error: z.string().optional(), +}); + +export function quickBooksOAuthCallbackRequestToJSON( + quickBooksOAuthCallbackRequest: QuickBooksOAuthCallbackRequest, +): string { + return JSON.stringify( + QuickBooksOAuthCallbackRequest$outboundSchema.parse( + quickBooksOAuthCallbackRequest, + ), + ); +} +export function quickBooksOAuthCallbackRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => QuickBooksOAuthCallbackRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'QuickBooksOAuthCallbackRequest' from JSON`, + ); +} + +/** @internal */ +export const QuickBooksOAuthCallbackResponse$inboundSchema: z.ZodType< + QuickBooksOAuthCallbackResponse, + z.ZodTypeDef, + unknown +> = z.object({ + Headers: z.record(z.array(z.string())).default({}), +}).transform((v) => { + return remap$(v, { + "Headers": "headers", + }); +}); +/** @internal */ +export type QuickBooksOAuthCallbackResponse$Outbound = { + Headers: { [k: string]: Array }; +}; + +/** @internal */ +export const QuickBooksOAuthCallbackResponse$outboundSchema: z.ZodType< + QuickBooksOAuthCallbackResponse$Outbound, + z.ZodTypeDef, + QuickBooksOAuthCallbackResponse +> = z.object({ + headers: z.record(z.array(z.string())), +}).transform((v) => { + return remap$(v, { + headers: "Headers", + }); +}); + +export function quickBooksOAuthCallbackResponseToJSON( + quickBooksOAuthCallbackResponse: QuickBooksOAuthCallbackResponse, +): string { + return JSON.stringify( + QuickBooksOAuthCallbackResponse$outboundSchema.parse( + quickBooksOAuthCallbackResponse, + ), + ); +} +export function quickBooksOAuthCallbackResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => QuickBooksOAuthCallbackResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'QuickBooksOAuthCallbackResponse' from JSON`, + ); +} diff --git a/src/models/operations/search.ts b/src/models/operations/search.ts index c885e67..e983851 100644 --- a/src/models/operations/search.ts +++ b/src/models/operations/search.ts @@ -2,17 +2,32 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type SearchRequest = { + /** + * The term to search for across all data sources. + */ searchTerm?: string | undefined; + /** + * Language code to use for search relevance and results. + */ language?: string | undefined; + /** + * Maximum number of results to return. + */ limit?: number | undefined; + /** + * Maximum number of results to return per table/entity. + */ itemsPerTableLimit?: number | undefined; + /** + * Minimum relevance score threshold for including a result. + */ relevanceThreshold?: number | null | undefined; }; @@ -51,7 +66,6 @@ export const SearchRequest$inboundSchema: z.ZodType< itemsPerTableLimit: z.number().default(5), relevanceThreshold: z.nullable(z.number().default(0.01)), }); - /** @internal */ export type SearchRequest$Outbound = { searchTerm?: string | undefined; @@ -74,23 +88,9 @@ export const SearchRequest$outboundSchema: z.ZodType< relevanceThreshold: z.nullable(z.number().default(0.01)), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SearchRequest$ { - /** @deprecated use `SearchRequest$inboundSchema` instead. */ - export const inboundSchema = SearchRequest$inboundSchema; - /** @deprecated use `SearchRequest$outboundSchema` instead. */ - export const outboundSchema = SearchRequest$outboundSchema; - /** @deprecated use `SearchRequest$Outbound` instead. */ - export type Outbound = SearchRequest$Outbound; -} - export function searchRequestToJSON(searchRequest: SearchRequest): string { return JSON.stringify(SearchRequest$outboundSchema.parse(searchRequest)); } - export function searchRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -117,7 +117,6 @@ export const SearchResponse$inboundSchema: z.ZodType< "created_at": "createdAt", }); }); - /** @internal */ export type SearchResponse$Outbound = { id: string; @@ -144,23 +143,9 @@ export const SearchResponse$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SearchResponse$ { - /** @deprecated use `SearchResponse$inboundSchema` instead. */ - export const inboundSchema = SearchResponse$inboundSchema; - /** @deprecated use `SearchResponse$outboundSchema` instead. */ - export const outboundSchema = SearchResponse$outboundSchema; - /** @deprecated use `SearchResponse$Outbound` instead. */ - export type Outbound = SearchResponse$Outbound; -} - export function searchResponseToJSON(searchResponse: SearchResponse): string { return JSON.stringify(SearchResponse$outboundSchema.parse(searchResponse)); } - export function searchResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/slackinteractions.ts b/src/models/operations/slackinteractions.ts new file mode 100644 index 0000000..c5263a3 --- /dev/null +++ b/src/models/operations/slackinteractions.ts @@ -0,0 +1,54 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +/** + * Interaction handled successfully + */ +export type SlackInteractionsResponse = { + ok: boolean; +}; + +/** @internal */ +export const SlackInteractionsResponse$inboundSchema: z.ZodType< + SlackInteractionsResponse, + z.ZodTypeDef, + unknown +> = z.object({ + ok: z.boolean(), +}); +/** @internal */ +export type SlackInteractionsResponse$Outbound = { + ok: boolean; +}; + +/** @internal */ +export const SlackInteractionsResponse$outboundSchema: z.ZodType< + SlackInteractionsResponse$Outbound, + z.ZodTypeDef, + SlackInteractionsResponse +> = z.object({ + ok: z.boolean(), +}); + +export function slackInteractionsResponseToJSON( + slackInteractionsResponse: SlackInteractionsResponse, +): string { + return JSON.stringify( + SlackInteractionsResponse$outboundSchema.parse(slackInteractionsResponse), + ); +} +export function slackInteractionsResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => SlackInteractionsResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'SlackInteractionsResponse' from JSON`, + ); +} diff --git a/src/models/operations/slackoauthcallback.ts b/src/models/operations/slackoauthcallback.ts new file mode 100644 index 0000000..7ed31b5 --- /dev/null +++ b/src/models/operations/slackoauthcallback.ts @@ -0,0 +1,113 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +export type SlackOAuthCallbackRequest = { + /** + * OAuth authorization code from Slack + */ + code: string; + /** + * OAuth state parameter for CSRF protection + */ + state: string; +}; + +export type SlackOAuthCallbackResponse = { + headers: { [k: string]: Array }; +}; + +/** @internal */ +export const SlackOAuthCallbackRequest$inboundSchema: z.ZodType< + SlackOAuthCallbackRequest, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.string(), + state: z.string(), +}); +/** @internal */ +export type SlackOAuthCallbackRequest$Outbound = { + code: string; + state: string; +}; + +/** @internal */ +export const SlackOAuthCallbackRequest$outboundSchema: z.ZodType< + SlackOAuthCallbackRequest$Outbound, + z.ZodTypeDef, + SlackOAuthCallbackRequest +> = z.object({ + code: z.string(), + state: z.string(), +}); + +export function slackOAuthCallbackRequestToJSON( + slackOAuthCallbackRequest: SlackOAuthCallbackRequest, +): string { + return JSON.stringify( + SlackOAuthCallbackRequest$outboundSchema.parse(slackOAuthCallbackRequest), + ); +} +export function slackOAuthCallbackRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => SlackOAuthCallbackRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'SlackOAuthCallbackRequest' from JSON`, + ); +} + +/** @internal */ +export const SlackOAuthCallbackResponse$inboundSchema: z.ZodType< + SlackOAuthCallbackResponse, + z.ZodTypeDef, + unknown +> = z.object({ + Headers: z.record(z.array(z.string())).default({}), +}).transform((v) => { + return remap$(v, { + "Headers": "headers", + }); +}); +/** @internal */ +export type SlackOAuthCallbackResponse$Outbound = { + Headers: { [k: string]: Array }; +}; + +/** @internal */ +export const SlackOAuthCallbackResponse$outboundSchema: z.ZodType< + SlackOAuthCallbackResponse$Outbound, + z.ZodTypeDef, + SlackOAuthCallbackResponse +> = z.object({ + headers: z.record(z.array(z.string())), +}).transform((v) => { + return remap$(v, { + headers: "Headers", + }); +}); + +export function slackOAuthCallbackResponseToJSON( + slackOAuthCallbackResponse: SlackOAuthCallbackResponse, +): string { + return JSON.stringify( + SlackOAuthCallbackResponse$outboundSchema.parse(slackOAuthCallbackResponse), + ); +} +export function slackOAuthCallbackResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => SlackOAuthCallbackResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'SlackOAuthCallbackResponse' from JSON`, + ); +} diff --git a/src/models/operations/slackwebhook.ts b/src/models/operations/slackwebhook.ts new file mode 100644 index 0000000..fbd94de --- /dev/null +++ b/src/models/operations/slackwebhook.ts @@ -0,0 +1,58 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +/** + * Webhook processed successfully + */ +export type SlackWebhookResponse = { + challenge?: string | undefined; + ok?: boolean | undefined; +}; + +/** @internal */ +export const SlackWebhookResponse$inboundSchema: z.ZodType< + SlackWebhookResponse, + z.ZodTypeDef, + unknown +> = z.object({ + challenge: z.string().optional(), + ok: z.boolean().optional(), +}); +/** @internal */ +export type SlackWebhookResponse$Outbound = { + challenge?: string | undefined; + ok?: boolean | undefined; +}; + +/** @internal */ +export const SlackWebhookResponse$outboundSchema: z.ZodType< + SlackWebhookResponse$Outbound, + z.ZodTypeDef, + SlackWebhookResponse +> = z.object({ + challenge: z.string().optional(), + ok: z.boolean().optional(), +}); + +export function slackWebhookResponseToJSON( + slackWebhookResponse: SlackWebhookResponse, +): string { + return JSON.stringify( + SlackWebhookResponse$outboundSchema.parse(slackWebhookResponse), + ); +} +export function slackWebhookResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => SlackWebhookResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'SlackWebhookResponse' from JSON`, + ); +} diff --git a/src/models/operations/starttimer.ts b/src/models/operations/starttimer.ts index 5a4a58b..1acb4b2 100644 --- a/src/models/operations/starttimer.ts +++ b/src/models/operations/starttimer.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -126,9 +126,9 @@ export type StartTimerData = { */ start: string; /** - * Stop time of the tracker entry in ISO 8601 format + * Stop time of the tracker entry in ISO 8601 format. Null for running timers. */ - stop: string; + stop: string | null; /** * Unique identifier of the team that owns this tracker entry */ @@ -183,7 +183,6 @@ export const StartTimerRequest$inboundSchema: z.ZodType< .optional(), continueFromEntry: z.string().optional(), }); - /** @internal */ export type StartTimerRequest$Outbound = { projectId: string; @@ -206,19 +205,6 @@ export const StartTimerRequest$outboundSchema: z.ZodType< continueFromEntry: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace StartTimerRequest$ { - /** @deprecated use `StartTimerRequest$inboundSchema` instead. */ - export const inboundSchema = StartTimerRequest$inboundSchema; - /** @deprecated use `StartTimerRequest$outboundSchema` instead. */ - export const outboundSchema = StartTimerRequest$outboundSchema; - /** @deprecated use `StartTimerRequest$Outbound` instead. */ - export type Outbound = StartTimerRequest$Outbound; -} - export function startTimerRequestToJSON( startTimerRequest: StartTimerRequest, ): string { @@ -226,7 +212,6 @@ export function startTimerRequestToJSON( StartTimerRequest$outboundSchema.parse(startTimerRequest), ); } - export function startTimerRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -247,7 +232,6 @@ export const StartTimerUser$inboundSchema: z.ZodType< fullName: z.string(), avatarUrl: z.string(), }); - /** @internal */ export type StartTimerUser$Outbound = { id: string; @@ -266,23 +250,9 @@ export const StartTimerUser$outboundSchema: z.ZodType< avatarUrl: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace StartTimerUser$ { - /** @deprecated use `StartTimerUser$inboundSchema` instead. */ - export const inboundSchema = StartTimerUser$inboundSchema; - /** @deprecated use `StartTimerUser$outboundSchema` instead. */ - export const outboundSchema = StartTimerUser$outboundSchema; - /** @deprecated use `StartTimerUser$Outbound` instead. */ - export type Outbound = StartTimerUser$Outbound; -} - export function startTimerUserToJSON(startTimerUser: StartTimerUser): string { return JSON.stringify(StartTimerUser$outboundSchema.parse(startTimerUser)); } - export function startTimerUserFromJSON( jsonString: string, ): SafeParseResult { @@ -302,7 +272,6 @@ export const StartTimerCustomer$inboundSchema: z.ZodType< id: z.string(), name: z.string(), }); - /** @internal */ export type StartTimerCustomer$Outbound = { id: string; @@ -319,19 +288,6 @@ export const StartTimerCustomer$outboundSchema: z.ZodType< name: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace StartTimerCustomer$ { - /** @deprecated use `StartTimerCustomer$inboundSchema` instead. */ - export const inboundSchema = StartTimerCustomer$inboundSchema; - /** @deprecated use `StartTimerCustomer$outboundSchema` instead. */ - export const outboundSchema = StartTimerCustomer$outboundSchema; - /** @deprecated use `StartTimerCustomer$Outbound` instead. */ - export type Outbound = StartTimerCustomer$Outbound; -} - export function startTimerCustomerToJSON( startTimerCustomer: StartTimerCustomer, ): string { @@ -339,7 +295,6 @@ export function startTimerCustomerToJSON( StartTimerCustomer$outboundSchema.parse(startTimerCustomer), ); } - export function startTimerCustomerFromJSON( jsonString: string, ): SafeParseResult { @@ -367,7 +322,6 @@ export const StartTimerProject$inboundSchema: z.ZodType< estimate: z.nullable(z.number()), customer: z.nullable(z.lazy(() => StartTimerCustomer$inboundSchema)), }); - /** @internal */ export type StartTimerProject$Outbound = { id: string; @@ -400,19 +354,6 @@ export const StartTimerProject$outboundSchema: z.ZodType< customer: z.nullable(z.lazy(() => StartTimerCustomer$outboundSchema)), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace StartTimerProject$ { - /** @deprecated use `StartTimerProject$inboundSchema` instead. */ - export const inboundSchema = StartTimerProject$inboundSchema; - /** @deprecated use `StartTimerProject$outboundSchema` instead. */ - export const outboundSchema = StartTimerProject$outboundSchema; - /** @deprecated use `StartTimerProject$Outbound` instead. */ - export type Outbound = StartTimerProject$Outbound; -} - export function startTimerProjectToJSON( startTimerProject: StartTimerProject, ): string { @@ -420,7 +361,6 @@ export function startTimerProjectToJSON( StartTimerProject$outboundSchema.parse(startTimerProject), ); } - export function startTimerProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -441,7 +381,7 @@ export const StartTimerData$inboundSchema: z.ZodType< createdAt: z.string(), duration: z.nullable(z.number()), start: z.string(), - stop: z.string(), + stop: z.nullable(z.string()), teamId: z.string(), description: z.nullable(z.string()), rate: z.nullable(z.number()), @@ -451,14 +391,13 @@ export const StartTimerData$inboundSchema: z.ZodType< user: z.lazy(() => StartTimerUser$inboundSchema), project: z.lazy(() => StartTimerProject$inboundSchema), }); - /** @internal */ export type StartTimerData$Outbound = { id: string; createdAt: string; duration: number | null; start: string; - stop: string; + stop: string | null; teamId: string; description: string | null; rate: number | null; @@ -479,7 +418,7 @@ export const StartTimerData$outboundSchema: z.ZodType< createdAt: z.string(), duration: z.nullable(z.number()), start: z.string(), - stop: z.string(), + stop: z.nullable(z.string()), teamId: z.string(), description: z.nullable(z.string()), rate: z.nullable(z.number()), @@ -490,23 +429,9 @@ export const StartTimerData$outboundSchema: z.ZodType< project: z.lazy(() => StartTimerProject$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace StartTimerData$ { - /** @deprecated use `StartTimerData$inboundSchema` instead. */ - export const inboundSchema = StartTimerData$inboundSchema; - /** @deprecated use `StartTimerData$outboundSchema` instead. */ - export const outboundSchema = StartTimerData$outboundSchema; - /** @deprecated use `StartTimerData$Outbound` instead. */ - export type Outbound = StartTimerData$Outbound; -} - export function startTimerDataToJSON(startTimerData: StartTimerData): string { return JSON.stringify(StartTimerData$outboundSchema.parse(startTimerData)); } - export function startTimerDataFromJSON( jsonString: string, ): SafeParseResult { @@ -525,7 +450,6 @@ export const StartTimerResponse$inboundSchema: z.ZodType< > = z.object({ data: z.lazy(() => StartTimerData$inboundSchema), }); - /** @internal */ export type StartTimerResponse$Outbound = { data: StartTimerData$Outbound; @@ -540,19 +464,6 @@ export const StartTimerResponse$outboundSchema: z.ZodType< data: z.lazy(() => StartTimerData$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace StartTimerResponse$ { - /** @deprecated use `StartTimerResponse$inboundSchema` instead. */ - export const inboundSchema = StartTimerResponse$inboundSchema; - /** @deprecated use `StartTimerResponse$outboundSchema` instead. */ - export const outboundSchema = StartTimerResponse$outboundSchema; - /** @deprecated use `StartTimerResponse$Outbound` instead. */ - export type Outbound = StartTimerResponse$Outbound; -} - export function startTimerResponseToJSON( startTimerResponse: StartTimerResponse, ): string { @@ -560,7 +471,6 @@ export function startTimerResponseToJSON( StartTimerResponse$outboundSchema.parse(startTimerResponse), ); } - export function startTimerResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/stoptimer.ts b/src/models/operations/stoptimer.ts index a470ac5..f1ea7fb 100644 --- a/src/models/operations/stoptimer.ts +++ b/src/models/operations/stoptimer.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -118,9 +118,9 @@ export type StopTimerData = { */ start: string; /** - * Stop time of the tracker entry in ISO 8601 format + * Stop time of the tracker entry in ISO 8601 format. Null for running timers. */ - stop: string; + stop: string | null; /** * Unique identifier of the team that owns this tracker entry */ @@ -173,7 +173,6 @@ export const StopTimerRequest$inboundSchema: z.ZodType< stop: z.string().datetime({ offset: true }).transform(v => new Date(v)) .optional(), }); - /** @internal */ export type StopTimerRequest$Outbound = { entryId?: string | undefined; @@ -192,19 +191,6 @@ export const StopTimerRequest$outboundSchema: z.ZodType< stop: z.date().transform(v => v.toISOString()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace StopTimerRequest$ { - /** @deprecated use `StopTimerRequest$inboundSchema` instead. */ - export const inboundSchema = StopTimerRequest$inboundSchema; - /** @deprecated use `StopTimerRequest$outboundSchema` instead. */ - export const outboundSchema = StopTimerRequest$outboundSchema; - /** @deprecated use `StopTimerRequest$Outbound` instead. */ - export type Outbound = StopTimerRequest$Outbound; -} - export function stopTimerRequestToJSON( stopTimerRequest: StopTimerRequest, ): string { @@ -212,7 +198,6 @@ export function stopTimerRequestToJSON( StopTimerRequest$outboundSchema.parse(stopTimerRequest), ); } - export function stopTimerRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -233,7 +218,6 @@ export const StopTimerUser$inboundSchema: z.ZodType< fullName: z.string(), avatarUrl: z.string(), }); - /** @internal */ export type StopTimerUser$Outbound = { id: string; @@ -252,23 +236,9 @@ export const StopTimerUser$outboundSchema: z.ZodType< avatarUrl: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace StopTimerUser$ { - /** @deprecated use `StopTimerUser$inboundSchema` instead. */ - export const inboundSchema = StopTimerUser$inboundSchema; - /** @deprecated use `StopTimerUser$outboundSchema` instead. */ - export const outboundSchema = StopTimerUser$outboundSchema; - /** @deprecated use `StopTimerUser$Outbound` instead. */ - export type Outbound = StopTimerUser$Outbound; -} - export function stopTimerUserToJSON(stopTimerUser: StopTimerUser): string { return JSON.stringify(StopTimerUser$outboundSchema.parse(stopTimerUser)); } - export function stopTimerUserFromJSON( jsonString: string, ): SafeParseResult { @@ -288,7 +258,6 @@ export const StopTimerCustomer$inboundSchema: z.ZodType< id: z.string(), name: z.string(), }); - /** @internal */ export type StopTimerCustomer$Outbound = { id: string; @@ -305,19 +274,6 @@ export const StopTimerCustomer$outboundSchema: z.ZodType< name: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace StopTimerCustomer$ { - /** @deprecated use `StopTimerCustomer$inboundSchema` instead. */ - export const inboundSchema = StopTimerCustomer$inboundSchema; - /** @deprecated use `StopTimerCustomer$outboundSchema` instead. */ - export const outboundSchema = StopTimerCustomer$outboundSchema; - /** @deprecated use `StopTimerCustomer$Outbound` instead. */ - export type Outbound = StopTimerCustomer$Outbound; -} - export function stopTimerCustomerToJSON( stopTimerCustomer: StopTimerCustomer, ): string { @@ -325,7 +281,6 @@ export function stopTimerCustomerToJSON( StopTimerCustomer$outboundSchema.parse(stopTimerCustomer), ); } - export function stopTimerCustomerFromJSON( jsonString: string, ): SafeParseResult { @@ -353,7 +308,6 @@ export const StopTimerProject$inboundSchema: z.ZodType< estimate: z.nullable(z.number()), customer: z.nullable(z.lazy(() => StopTimerCustomer$inboundSchema)), }); - /** @internal */ export type StopTimerProject$Outbound = { id: string; @@ -386,19 +340,6 @@ export const StopTimerProject$outboundSchema: z.ZodType< customer: z.nullable(z.lazy(() => StopTimerCustomer$outboundSchema)), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace StopTimerProject$ { - /** @deprecated use `StopTimerProject$inboundSchema` instead. */ - export const inboundSchema = StopTimerProject$inboundSchema; - /** @deprecated use `StopTimerProject$outboundSchema` instead. */ - export const outboundSchema = StopTimerProject$outboundSchema; - /** @deprecated use `StopTimerProject$Outbound` instead. */ - export type Outbound = StopTimerProject$Outbound; -} - export function stopTimerProjectToJSON( stopTimerProject: StopTimerProject, ): string { @@ -406,7 +347,6 @@ export function stopTimerProjectToJSON( StopTimerProject$outboundSchema.parse(stopTimerProject), ); } - export function stopTimerProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -427,7 +367,7 @@ export const StopTimerData$inboundSchema: z.ZodType< createdAt: z.string(), duration: z.nullable(z.number()), start: z.string(), - stop: z.string(), + stop: z.nullable(z.string()), teamId: z.string(), description: z.nullable(z.string()), rate: z.nullable(z.number()), @@ -437,14 +377,13 @@ export const StopTimerData$inboundSchema: z.ZodType< user: z.lazy(() => StopTimerUser$inboundSchema), project: z.lazy(() => StopTimerProject$inboundSchema), }); - /** @internal */ export type StopTimerData$Outbound = { id: string; createdAt: string; duration: number | null; start: string; - stop: string; + stop: string | null; teamId: string; description: string | null; rate: number | null; @@ -465,7 +404,7 @@ export const StopTimerData$outboundSchema: z.ZodType< createdAt: z.string(), duration: z.nullable(z.number()), start: z.string(), - stop: z.string(), + stop: z.nullable(z.string()), teamId: z.string(), description: z.nullable(z.string()), rate: z.nullable(z.number()), @@ -476,23 +415,9 @@ export const StopTimerData$outboundSchema: z.ZodType< project: z.lazy(() => StopTimerProject$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace StopTimerData$ { - /** @deprecated use `StopTimerData$inboundSchema` instead. */ - export const inboundSchema = StopTimerData$inboundSchema; - /** @deprecated use `StopTimerData$outboundSchema` instead. */ - export const outboundSchema = StopTimerData$outboundSchema; - /** @deprecated use `StopTimerData$Outbound` instead. */ - export type Outbound = StopTimerData$Outbound; -} - export function stopTimerDataToJSON(stopTimerData: StopTimerData): string { return JSON.stringify(StopTimerData$outboundSchema.parse(stopTimerData)); } - export function stopTimerDataFromJSON( jsonString: string, ): SafeParseResult { @@ -511,7 +436,6 @@ export const StopTimerResponse$inboundSchema: z.ZodType< > = z.object({ data: z.lazy(() => StopTimerData$inboundSchema), }); - /** @internal */ export type StopTimerResponse$Outbound = { data: StopTimerData$Outbound; @@ -526,19 +450,6 @@ export const StopTimerResponse$outboundSchema: z.ZodType< data: z.lazy(() => StopTimerData$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace StopTimerResponse$ { - /** @deprecated use `StopTimerResponse$inboundSchema` instead. */ - export const inboundSchema = StopTimerResponse$inboundSchema; - /** @deprecated use `StopTimerResponse$outboundSchema` instead. */ - export const outboundSchema = StopTimerResponse$outboundSchema; - /** @deprecated use `StopTimerResponse$Outbound` instead. */ - export type Outbound = StopTimerResponse$Outbound; -} - export function stopTimerResponseToJSON( stopTimerResponse: StopTimerResponse, ): string { @@ -546,7 +457,6 @@ export function stopTimerResponseToJSON( StopTimerResponse$outboundSchema.parse(stopTimerResponse), ); } - export function stopTimerResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/stripeconnectcallback.ts b/src/models/operations/stripeconnectcallback.ts new file mode 100644 index 0000000..ef91bce --- /dev/null +++ b/src/models/operations/stripeconnectcallback.ts @@ -0,0 +1,139 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +export type StripeConnectCallbackRequest = { + /** + * OAuth authorization code from Stripe + */ + code?: string | undefined; + /** + * OAuth state parameter for CSRF protection + */ + state: string; + /** + * OAuth error code if authorization failed + */ + error?: string | undefined; + /** + * OAuth error description + */ + errorDescription?: string | undefined; +}; + +export type StripeConnectCallbackResponse = { + headers: { [k: string]: Array }; +}; + +/** @internal */ +export const StripeConnectCallbackRequest$inboundSchema: z.ZodType< + StripeConnectCallbackRequest, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.string().optional(), + state: z.string(), + error: z.string().optional(), + error_description: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "error_description": "errorDescription", + }); +}); +/** @internal */ +export type StripeConnectCallbackRequest$Outbound = { + code?: string | undefined; + state: string; + error?: string | undefined; + error_description?: string | undefined; +}; + +/** @internal */ +export const StripeConnectCallbackRequest$outboundSchema: z.ZodType< + StripeConnectCallbackRequest$Outbound, + z.ZodTypeDef, + StripeConnectCallbackRequest +> = z.object({ + code: z.string().optional(), + state: z.string(), + error: z.string().optional(), + errorDescription: z.string().optional(), +}).transform((v) => { + return remap$(v, { + errorDescription: "error_description", + }); +}); + +export function stripeConnectCallbackRequestToJSON( + stripeConnectCallbackRequest: StripeConnectCallbackRequest, +): string { + return JSON.stringify( + StripeConnectCallbackRequest$outboundSchema.parse( + stripeConnectCallbackRequest, + ), + ); +} +export function stripeConnectCallbackRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => StripeConnectCallbackRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'StripeConnectCallbackRequest' from JSON`, + ); +} + +/** @internal */ +export const StripeConnectCallbackResponse$inboundSchema: z.ZodType< + StripeConnectCallbackResponse, + z.ZodTypeDef, + unknown +> = z.object({ + Headers: z.record(z.array(z.string())).default({}), +}).transform((v) => { + return remap$(v, { + "Headers": "headers", + }); +}); +/** @internal */ +export type StripeConnectCallbackResponse$Outbound = { + Headers: { [k: string]: Array }; +}; + +/** @internal */ +export const StripeConnectCallbackResponse$outboundSchema: z.ZodType< + StripeConnectCallbackResponse$Outbound, + z.ZodTypeDef, + StripeConnectCallbackResponse +> = z.object({ + headers: z.record(z.array(z.string())), +}).transform((v) => { + return remap$(v, { + headers: "Headers", + }); +}); + +export function stripeConnectCallbackResponseToJSON( + stripeConnectCallbackResponse: StripeConnectCallbackResponse, +): string { + return JSON.stringify( + StripeConnectCallbackResponse$outboundSchema.parse( + stripeConnectCallbackResponse, + ), + ); +} +export function stripeConnectCallbackResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => StripeConnectCallbackResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'StripeConnectCallbackResponse' from JSON`, + ); +} diff --git a/src/models/operations/stripewebhook.ts b/src/models/operations/stripewebhook.ts new file mode 100644 index 0000000..3233da3 --- /dev/null +++ b/src/models/operations/stripewebhook.ts @@ -0,0 +1,54 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +/** + * Webhook processed successfully + */ +export type StripeWebhookResponse = { + received: boolean; +}; + +/** @internal */ +export const StripeWebhookResponse$inboundSchema: z.ZodType< + StripeWebhookResponse, + z.ZodTypeDef, + unknown +> = z.object({ + received: z.boolean(), +}); +/** @internal */ +export type StripeWebhookResponse$Outbound = { + received: boolean; +}; + +/** @internal */ +export const StripeWebhookResponse$outboundSchema: z.ZodType< + StripeWebhookResponse$Outbound, + z.ZodTypeDef, + StripeWebhookResponse +> = z.object({ + received: z.boolean(), +}); + +export function stripeWebhookResponseToJSON( + stripeWebhookResponse: StripeWebhookResponse, +): string { + return JSON.stringify( + StripeWebhookResponse$outboundSchema.parse(stripeWebhookResponse), + ); +} +export function stripeWebhookResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => StripeWebhookResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'StripeWebhookResponse' from JSON`, + ); +} diff --git a/src/models/operations/updatebankaccount.ts b/src/models/operations/updatebankaccount.ts index 68037c9..051c038 100644 --- a/src/models/operations/updatebankaccount.ts +++ b/src/models/operations/updatebankaccount.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -55,6 +55,9 @@ export type UpdateBankAccountRequestBody = { }; export type UpdateBankAccountRequest = { + /** + * The unique identifier of the bank account. + */ id: string; requestBody?: UpdateBankAccountRequestBody | undefined; }; @@ -97,23 +100,11 @@ export type UpdateBankAccountResponse = { export const UpdateBankAccountType$inboundSchema: z.ZodNativeEnum< typeof UpdateBankAccountType > = z.nativeEnum(UpdateBankAccountType); - /** @internal */ export const UpdateBankAccountType$outboundSchema: z.ZodNativeEnum< typeof UpdateBankAccountType > = UpdateBankAccountType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateBankAccountType$ { - /** @deprecated use `UpdateBankAccountType$inboundSchema` instead. */ - export const inboundSchema = UpdateBankAccountType$inboundSchema; - /** @deprecated use `UpdateBankAccountType$outboundSchema` instead. */ - export const outboundSchema = UpdateBankAccountType$outboundSchema; -} - /** @internal */ export const UpdateBankAccountRequestBody$inboundSchema: z.ZodType< UpdateBankAccountRequestBody, @@ -127,7 +118,6 @@ export const UpdateBankAccountRequestBody$inboundSchema: z.ZodType< currency: z.string().optional(), type: UpdateBankAccountType$inboundSchema.optional(), }); - /** @internal */ export type UpdateBankAccountRequestBody$Outbound = { id?: string | undefined; @@ -152,19 +142,6 @@ export const UpdateBankAccountRequestBody$outboundSchema: z.ZodType< type: UpdateBankAccountType$outboundSchema.optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateBankAccountRequestBody$ { - /** @deprecated use `UpdateBankAccountRequestBody$inboundSchema` instead. */ - export const inboundSchema = UpdateBankAccountRequestBody$inboundSchema; - /** @deprecated use `UpdateBankAccountRequestBody$outboundSchema` instead. */ - export const outboundSchema = UpdateBankAccountRequestBody$outboundSchema; - /** @deprecated use `UpdateBankAccountRequestBody$Outbound` instead. */ - export type Outbound = UpdateBankAccountRequestBody$Outbound; -} - export function updateBankAccountRequestBodyToJSON( updateBankAccountRequestBody: UpdateBankAccountRequestBody, ): string { @@ -174,7 +151,6 @@ export function updateBankAccountRequestBodyToJSON( ), ); } - export function updateBankAccountRequestBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -199,7 +175,6 @@ export const UpdateBankAccountRequest$inboundSchema: z.ZodType< "RequestBody": "requestBody", }); }); - /** @internal */ export type UpdateBankAccountRequest$Outbound = { id: string; @@ -221,19 +196,6 @@ export const UpdateBankAccountRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateBankAccountRequest$ { - /** @deprecated use `UpdateBankAccountRequest$inboundSchema` instead. */ - export const inboundSchema = UpdateBankAccountRequest$inboundSchema; - /** @deprecated use `UpdateBankAccountRequest$outboundSchema` instead. */ - export const outboundSchema = UpdateBankAccountRequest$outboundSchema; - /** @deprecated use `UpdateBankAccountRequest$Outbound` instead. */ - export type Outbound = UpdateBankAccountRequest$Outbound; -} - export function updateBankAccountRequestToJSON( updateBankAccountRequest: UpdateBankAccountRequest, ): string { @@ -241,7 +203,6 @@ export function updateBankAccountRequestToJSON( UpdateBankAccountRequest$outboundSchema.parse(updateBankAccountRequest), ); } - export function updateBankAccountRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -266,7 +227,6 @@ export const UpdateBankAccountResponse$inboundSchema: z.ZodType< balance: z.nullable(z.number()), manual: z.nullable(z.boolean()), }); - /** @internal */ export type UpdateBankAccountResponse$Outbound = { id: string; @@ -293,19 +253,6 @@ export const UpdateBankAccountResponse$outboundSchema: z.ZodType< manual: z.nullable(z.boolean()), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateBankAccountResponse$ { - /** @deprecated use `UpdateBankAccountResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateBankAccountResponse$inboundSchema; - /** @deprecated use `UpdateBankAccountResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateBankAccountResponse$outboundSchema; - /** @deprecated use `UpdateBankAccountResponse$Outbound` instead. */ - export type Outbound = UpdateBankAccountResponse$Outbound; -} - export function updateBankAccountResponseToJSON( updateBankAccountResponse: UpdateBankAccountResponse, ): string { @@ -313,7 +260,6 @@ export function updateBankAccountResponseToJSON( UpdateBankAccountResponse$outboundSchema.parse(updateBankAccountResponse), ); } - export function updateBankAccountResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/updatecurrentuser.ts b/src/models/operations/updatecurrentuser.ts index 58bbdc7..6d75be0 100644 --- a/src/models/operations/updatecurrentuser.ts +++ b/src/models/operations/updatecurrentuser.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -147,6 +147,10 @@ export type UpdateCurrentUserResponse = { * User's preferred date format. Available options: 'dd/MM/yyyy', 'MM/dd/yyyy', 'yyyy-MM-dd', 'dd.MM.yyyy' */ dateFormat: UpdateCurrentUserDateFormatResponse | null; + /** + * Team file key (JWT token) for proxy/download access to team files. This compact JWT token contains the team ID and is shared by all team members. Use this token as the `fk` query parameter when accessing file endpoints (proxy, download). The token is team-scoped and provides access to files belonging to the user's team. Returns null if the user has no team. + */ + fileKey: string | null; /** * Team information that the user belongs to */ @@ -157,23 +161,11 @@ export type UpdateCurrentUserResponse = { export const DateFormatRequest$inboundSchema: z.ZodNativeEnum< typeof DateFormatRequest > = z.nativeEnum(DateFormatRequest); - /** @internal */ export const DateFormatRequest$outboundSchema: z.ZodNativeEnum< typeof DateFormatRequest > = DateFormatRequest$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DateFormatRequest$ { - /** @deprecated use `DateFormatRequest$inboundSchema` instead. */ - export const inboundSchema = DateFormatRequest$inboundSchema; - /** @deprecated use `DateFormatRequest$outboundSchema` instead. */ - export const outboundSchema = DateFormatRequest$outboundSchema; -} - /** @internal */ export const UpdateCurrentUserRequest$inboundSchema: z.ZodType< UpdateCurrentUserRequest, @@ -191,7 +183,6 @@ export const UpdateCurrentUserRequest$inboundSchema: z.ZodType< timeFormat: z.number().optional(), dateFormat: DateFormatRequest$inboundSchema.optional(), }); - /** @internal */ export type UpdateCurrentUserRequest$Outbound = { fullName?: string | undefined; @@ -224,19 +215,6 @@ export const UpdateCurrentUserRequest$outboundSchema: z.ZodType< dateFormat: DateFormatRequest$outboundSchema.optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateCurrentUserRequest$ { - /** @deprecated use `UpdateCurrentUserRequest$inboundSchema` instead. */ - export const inboundSchema = UpdateCurrentUserRequest$inboundSchema; - /** @deprecated use `UpdateCurrentUserRequest$outboundSchema` instead. */ - export const outboundSchema = UpdateCurrentUserRequest$outboundSchema; - /** @deprecated use `UpdateCurrentUserRequest$Outbound` instead. */ - export type Outbound = UpdateCurrentUserRequest$Outbound; -} - export function updateCurrentUserRequestToJSON( updateCurrentUserRequest: UpdateCurrentUserRequest, ): string { @@ -244,7 +222,6 @@ export function updateCurrentUserRequestToJSON( UpdateCurrentUserRequest$outboundSchema.parse(updateCurrentUserRequest), ); } - export function updateCurrentUserRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -259,25 +236,11 @@ export function updateCurrentUserRequestFromJSON( export const UpdateCurrentUserDateFormatResponse$inboundSchema: z.ZodNativeEnum< typeof UpdateCurrentUserDateFormatResponse > = z.nativeEnum(UpdateCurrentUserDateFormatResponse); - /** @internal */ export const UpdateCurrentUserDateFormatResponse$outboundSchema: z.ZodNativeEnum = UpdateCurrentUserDateFormatResponse$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateCurrentUserDateFormatResponse$ { - /** @deprecated use `UpdateCurrentUserDateFormatResponse$inboundSchema` instead. */ - export const inboundSchema = - UpdateCurrentUserDateFormatResponse$inboundSchema; - /** @deprecated use `UpdateCurrentUserDateFormatResponse$outboundSchema` instead. */ - export const outboundSchema = - UpdateCurrentUserDateFormatResponse$outboundSchema; -} - /** @internal */ export const UpdateCurrentUserTeam$inboundSchema: z.ZodType< UpdateCurrentUserTeam, @@ -289,7 +252,6 @@ export const UpdateCurrentUserTeam$inboundSchema: z.ZodType< logoUrl: z.string(), plan: z.string(), }); - /** @internal */ export type UpdateCurrentUserTeam$Outbound = { id: string; @@ -310,19 +272,6 @@ export const UpdateCurrentUserTeam$outboundSchema: z.ZodType< plan: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateCurrentUserTeam$ { - /** @deprecated use `UpdateCurrentUserTeam$inboundSchema` instead. */ - export const inboundSchema = UpdateCurrentUserTeam$inboundSchema; - /** @deprecated use `UpdateCurrentUserTeam$outboundSchema` instead. */ - export const outboundSchema = UpdateCurrentUserTeam$outboundSchema; - /** @deprecated use `UpdateCurrentUserTeam$Outbound` instead. */ - export type Outbound = UpdateCurrentUserTeam$Outbound; -} - export function updateCurrentUserTeamToJSON( updateCurrentUserTeam: UpdateCurrentUserTeam, ): string { @@ -330,7 +279,6 @@ export function updateCurrentUserTeamToJSON( UpdateCurrentUserTeam$outboundSchema.parse(updateCurrentUserTeam), ); } - export function updateCurrentUserTeamFromJSON( jsonString: string, ): SafeParseResult { @@ -357,9 +305,9 @@ export const UpdateCurrentUserResponse$inboundSchema: z.ZodType< timezoneAutoSync: z.nullable(z.boolean()), timeFormat: z.nullable(z.number()), dateFormat: z.nullable(UpdateCurrentUserDateFormatResponse$inboundSchema), + fileKey: z.nullable(z.string()), team: z.nullable(z.lazy(() => UpdateCurrentUserTeam$inboundSchema)), }); - /** @internal */ export type UpdateCurrentUserResponse$Outbound = { id: string; @@ -372,6 +320,7 @@ export type UpdateCurrentUserResponse$Outbound = { timezoneAutoSync: boolean | null; timeFormat: number | null; dateFormat: string | null; + fileKey: string | null; team: UpdateCurrentUserTeam$Outbound | null; }; @@ -391,22 +340,10 @@ export const UpdateCurrentUserResponse$outboundSchema: z.ZodType< timezoneAutoSync: z.nullable(z.boolean()), timeFormat: z.nullable(z.number()), dateFormat: z.nullable(UpdateCurrentUserDateFormatResponse$outboundSchema), + fileKey: z.nullable(z.string()), team: z.nullable(z.lazy(() => UpdateCurrentUserTeam$outboundSchema)), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateCurrentUserResponse$ { - /** @deprecated use `UpdateCurrentUserResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateCurrentUserResponse$inboundSchema; - /** @deprecated use `UpdateCurrentUserResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateCurrentUserResponse$outboundSchema; - /** @deprecated use `UpdateCurrentUserResponse$Outbound` instead. */ - export type Outbound = UpdateCurrentUserResponse$Outbound; -} - export function updateCurrentUserResponseToJSON( updateCurrentUserResponse: UpdateCurrentUserResponse, ): string { @@ -414,7 +351,6 @@ export function updateCurrentUserResponseToJSON( UpdateCurrentUserResponse$outboundSchema.parse(updateCurrentUserResponse), ); } - export function updateCurrentUserResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/updatecustomer.ts b/src/models/operations/updatecustomer.ts index 943e9dd..908b429 100644 --- a/src/models/operations/updatecustomer.ts +++ b/src/models/operations/updatecustomer.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -91,6 +91,9 @@ export type UpdateCustomerRequestBody = { }; export type UpdateCustomerRequest = { + /** + * Unique identifier of the customer to retrieve + */ id: string; requestBody?: UpdateCustomerRequestBody | undefined; }; @@ -205,7 +208,6 @@ export const UpdateCustomerTagRequest$inboundSchema: z.ZodType< id: z.string(), name: z.string(), }); - /** @internal */ export type UpdateCustomerTagRequest$Outbound = { id: string; @@ -222,19 +224,6 @@ export const UpdateCustomerTagRequest$outboundSchema: z.ZodType< name: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateCustomerTagRequest$ { - /** @deprecated use `UpdateCustomerTagRequest$inboundSchema` instead. */ - export const inboundSchema = UpdateCustomerTagRequest$inboundSchema; - /** @deprecated use `UpdateCustomerTagRequest$outboundSchema` instead. */ - export const outboundSchema = UpdateCustomerTagRequest$outboundSchema; - /** @deprecated use `UpdateCustomerTagRequest$Outbound` instead. */ - export type Outbound = UpdateCustomerTagRequest$Outbound; -} - export function updateCustomerTagRequestToJSON( updateCustomerTagRequest: UpdateCustomerTagRequest, ): string { @@ -242,7 +231,6 @@ export function updateCustomerTagRequestToJSON( UpdateCustomerTagRequest$outboundSchema.parse(updateCustomerTagRequest), ); } - export function updateCustomerTagRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -278,7 +266,6 @@ export const UpdateCustomerRequestBody$inboundSchema: z.ZodType< tags: z.array(z.lazy(() => UpdateCustomerTagRequest$inboundSchema)) .optional(), }); - /** @internal */ export type UpdateCustomerRequestBody$Outbound = { id?: string | undefined; @@ -326,19 +313,6 @@ export const UpdateCustomerRequestBody$outboundSchema: z.ZodType< .optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateCustomerRequestBody$ { - /** @deprecated use `UpdateCustomerRequestBody$inboundSchema` instead. */ - export const inboundSchema = UpdateCustomerRequestBody$inboundSchema; - /** @deprecated use `UpdateCustomerRequestBody$outboundSchema` instead. */ - export const outboundSchema = UpdateCustomerRequestBody$outboundSchema; - /** @deprecated use `UpdateCustomerRequestBody$Outbound` instead. */ - export type Outbound = UpdateCustomerRequestBody$Outbound; -} - export function updateCustomerRequestBodyToJSON( updateCustomerRequestBody: UpdateCustomerRequestBody, ): string { @@ -346,7 +320,6 @@ export function updateCustomerRequestBodyToJSON( UpdateCustomerRequestBody$outboundSchema.parse(updateCustomerRequestBody), ); } - export function updateCustomerRequestBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -370,7 +343,6 @@ export const UpdateCustomerRequest$inboundSchema: z.ZodType< "RequestBody": "requestBody", }); }); - /** @internal */ export type UpdateCustomerRequest$Outbound = { id: string; @@ -392,19 +364,6 @@ export const UpdateCustomerRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateCustomerRequest$ { - /** @deprecated use `UpdateCustomerRequest$inboundSchema` instead. */ - export const inboundSchema = UpdateCustomerRequest$inboundSchema; - /** @deprecated use `UpdateCustomerRequest$outboundSchema` instead. */ - export const outboundSchema = UpdateCustomerRequest$outboundSchema; - /** @deprecated use `UpdateCustomerRequest$Outbound` instead. */ - export type Outbound = UpdateCustomerRequest$Outbound; -} - export function updateCustomerRequestToJSON( updateCustomerRequest: UpdateCustomerRequest, ): string { @@ -412,7 +371,6 @@ export function updateCustomerRequestToJSON( UpdateCustomerRequest$outboundSchema.parse(updateCustomerRequest), ); } - export function updateCustomerRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -432,7 +390,6 @@ export const UpdateCustomerTagResponse$inboundSchema: z.ZodType< id: z.string(), name: z.string(), }); - /** @internal */ export type UpdateCustomerTagResponse$Outbound = { id: string; @@ -449,19 +406,6 @@ export const UpdateCustomerTagResponse$outboundSchema: z.ZodType< name: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateCustomerTagResponse$ { - /** @deprecated use `UpdateCustomerTagResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateCustomerTagResponse$inboundSchema; - /** @deprecated use `UpdateCustomerTagResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateCustomerTagResponse$outboundSchema; - /** @deprecated use `UpdateCustomerTagResponse$Outbound` instead. */ - export type Outbound = UpdateCustomerTagResponse$Outbound; -} - export function updateCustomerTagResponseToJSON( updateCustomerTagResponse: UpdateCustomerTagResponse, ): string { @@ -469,7 +413,6 @@ export function updateCustomerTagResponseToJSON( UpdateCustomerTagResponse$outboundSchema.parse(updateCustomerTagResponse), ); } - export function updateCustomerTagResponseFromJSON( jsonString: string, ): SafeParseResult { @@ -508,7 +451,6 @@ export const UpdateCustomerResponse$inboundSchema: z.ZodType< projectCount: z.number(), tags: z.array(z.lazy(() => UpdateCustomerTagResponse$inboundSchema)), }); - /** @internal */ export type UpdateCustomerResponse$Outbound = { id: string; @@ -563,19 +505,6 @@ export const UpdateCustomerResponse$outboundSchema: z.ZodType< tags: z.array(z.lazy(() => UpdateCustomerTagResponse$outboundSchema)), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateCustomerResponse$ { - /** @deprecated use `UpdateCustomerResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateCustomerResponse$inboundSchema; - /** @deprecated use `UpdateCustomerResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateCustomerResponse$outboundSchema; - /** @deprecated use `UpdateCustomerResponse$Outbound` instead. */ - export type Outbound = UpdateCustomerResponse$Outbound; -} - export function updateCustomerResponseToJSON( updateCustomerResponse: UpdateCustomerResponse, ): string { @@ -583,7 +512,6 @@ export function updateCustomerResponseToJSON( UpdateCustomerResponse$outboundSchema.parse(updateCustomerResponse), ); } - export function updateCustomerResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/updateinboxitem.ts b/src/models/operations/updateinboxitem.ts index 36f31fd..f35204a 100644 --- a/src/models/operations/updateinboxitem.ts +++ b/src/models/operations/updateinboxitem.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -121,23 +121,11 @@ export type UpdateInboxItemResponse = { export const UpdateInboxItemStatus$inboundSchema: z.ZodNativeEnum< typeof UpdateInboxItemStatus > = z.nativeEnum(UpdateInboxItemStatus); - /** @internal */ export const UpdateInboxItemStatus$outboundSchema: z.ZodNativeEnum< typeof UpdateInboxItemStatus > = UpdateInboxItemStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateInboxItemStatus$ { - /** @deprecated use `UpdateInboxItemStatus$inboundSchema` instead. */ - export const inboundSchema = UpdateInboxItemStatus$inboundSchema; - /** @deprecated use `UpdateInboxItemStatus$outboundSchema` instead. */ - export const outboundSchema = UpdateInboxItemStatus$outboundSchema; -} - /** @internal */ export const UpdateInboxItemRequestBody$inboundSchema: z.ZodType< UpdateInboxItemRequestBody, @@ -149,7 +137,6 @@ export const UpdateInboxItemRequestBody$inboundSchema: z.ZodType< currency: z.string().optional(), amount: z.number().optional(), }); - /** @internal */ export type UpdateInboxItemRequestBody$Outbound = { status?: string | undefined; @@ -170,19 +157,6 @@ export const UpdateInboxItemRequestBody$outboundSchema: z.ZodType< amount: z.number().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateInboxItemRequestBody$ { - /** @deprecated use `UpdateInboxItemRequestBody$inboundSchema` instead. */ - export const inboundSchema = UpdateInboxItemRequestBody$inboundSchema; - /** @deprecated use `UpdateInboxItemRequestBody$outboundSchema` instead. */ - export const outboundSchema = UpdateInboxItemRequestBody$outboundSchema; - /** @deprecated use `UpdateInboxItemRequestBody$Outbound` instead. */ - export type Outbound = UpdateInboxItemRequestBody$Outbound; -} - export function updateInboxItemRequestBodyToJSON( updateInboxItemRequestBody: UpdateInboxItemRequestBody, ): string { @@ -190,7 +164,6 @@ export function updateInboxItemRequestBodyToJSON( UpdateInboxItemRequestBody$outboundSchema.parse(updateInboxItemRequestBody), ); } - export function updateInboxItemRequestBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -214,7 +187,6 @@ export const UpdateInboxItemRequest$inboundSchema: z.ZodType< "RequestBody": "requestBody", }); }); - /** @internal */ export type UpdateInboxItemRequest$Outbound = { id: string; @@ -235,19 +207,6 @@ export const UpdateInboxItemRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateInboxItemRequest$ { - /** @deprecated use `UpdateInboxItemRequest$inboundSchema` instead. */ - export const inboundSchema = UpdateInboxItemRequest$inboundSchema; - /** @deprecated use `UpdateInboxItemRequest$outboundSchema` instead. */ - export const outboundSchema = UpdateInboxItemRequest$outboundSchema; - /** @deprecated use `UpdateInboxItemRequest$Outbound` instead. */ - export type Outbound = UpdateInboxItemRequest$Outbound; -} - export function updateInboxItemRequestToJSON( updateInboxItemRequest: UpdateInboxItemRequest, ): string { @@ -255,7 +214,6 @@ export function updateInboxItemRequestToJSON( UpdateInboxItemRequest$outboundSchema.parse(updateInboxItemRequest), ); } - export function updateInboxItemRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -278,7 +236,6 @@ export const UpdateInboxItemTransaction$inboundSchema: z.ZodType< name: z.string(), date: z.string(), }); - /** @internal */ export type UpdateInboxItemTransaction$Outbound = { id: string; @@ -301,19 +258,6 @@ export const UpdateInboxItemTransaction$outboundSchema: z.ZodType< date: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateInboxItemTransaction$ { - /** @deprecated use `UpdateInboxItemTransaction$inboundSchema` instead. */ - export const inboundSchema = UpdateInboxItemTransaction$inboundSchema; - /** @deprecated use `UpdateInboxItemTransaction$outboundSchema` instead. */ - export const outboundSchema = UpdateInboxItemTransaction$outboundSchema; - /** @deprecated use `UpdateInboxItemTransaction$Outbound` instead. */ - export type Outbound = UpdateInboxItemTransaction$Outbound; -} - export function updateInboxItemTransactionToJSON( updateInboxItemTransaction: UpdateInboxItemTransaction, ): string { @@ -321,7 +265,6 @@ export function updateInboxItemTransactionToJSON( UpdateInboxItemTransaction$outboundSchema.parse(updateInboxItemTransaction), ); } - export function updateInboxItemTransactionFromJSON( jsonString: string, ): SafeParseResult { @@ -354,7 +297,6 @@ export const UpdateInboxItemResponse$inboundSchema: z.ZodType< z.lazy(() => UpdateInboxItemTransaction$inboundSchema), ), }); - /** @internal */ export type UpdateInboxItemResponse$Outbound = { id: string; @@ -395,19 +337,6 @@ export const UpdateInboxItemResponse$outboundSchema: z.ZodType< ), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateInboxItemResponse$ { - /** @deprecated use `UpdateInboxItemResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateInboxItemResponse$inboundSchema; - /** @deprecated use `UpdateInboxItemResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateInboxItemResponse$outboundSchema; - /** @deprecated use `UpdateInboxItemResponse$Outbound` instead. */ - export type Outbound = UpdateInboxItemResponse$Outbound; -} - export function updateInboxItemResponseToJSON( updateInboxItemResponse: UpdateInboxItemResponse, ): string { @@ -415,7 +344,6 @@ export function updateInboxItemResponseToJSON( UpdateInboxItemResponse$outboundSchema.parse(updateInboxItemResponse), ); } - export function updateInboxItemResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/updateinvoice.ts b/src/models/operations/updateinvoice.ts index caca204..2f5ab95 100644 --- a/src/models/operations/updateinvoice.ts +++ b/src/models/operations/updateinvoice.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -191,23 +191,11 @@ export type UpdateInvoiceResponse = { export const UpdateInvoiceStatusRequest$inboundSchema: z.ZodNativeEnum< typeof UpdateInvoiceStatusRequest > = z.nativeEnum(UpdateInvoiceStatusRequest); - /** @internal */ export const UpdateInvoiceStatusRequest$outboundSchema: z.ZodNativeEnum< typeof UpdateInvoiceStatusRequest > = UpdateInvoiceStatusRequest$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateInvoiceStatusRequest$ { - /** @deprecated use `UpdateInvoiceStatusRequest$inboundSchema` instead. */ - export const inboundSchema = UpdateInvoiceStatusRequest$inboundSchema; - /** @deprecated use `UpdateInvoiceStatusRequest$outboundSchema` instead. */ - export const outboundSchema = UpdateInvoiceStatusRequest$outboundSchema; -} - /** @internal */ export const UpdateInvoiceRequestBody$inboundSchema: z.ZodType< UpdateInvoiceRequestBody, @@ -220,7 +208,6 @@ export const UpdateInvoiceRequestBody$inboundSchema: z.ZodType< ).optional(), internalNote: z.nullable(z.string()).optional(), }); - /** @internal */ export type UpdateInvoiceRequestBody$Outbound = { status?: string | undefined; @@ -239,19 +226,6 @@ export const UpdateInvoiceRequestBody$outboundSchema: z.ZodType< internalNote: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateInvoiceRequestBody$ { - /** @deprecated use `UpdateInvoiceRequestBody$inboundSchema` instead. */ - export const inboundSchema = UpdateInvoiceRequestBody$inboundSchema; - /** @deprecated use `UpdateInvoiceRequestBody$outboundSchema` instead. */ - export const outboundSchema = UpdateInvoiceRequestBody$outboundSchema; - /** @deprecated use `UpdateInvoiceRequestBody$Outbound` instead. */ - export type Outbound = UpdateInvoiceRequestBody$Outbound; -} - export function updateInvoiceRequestBodyToJSON( updateInvoiceRequestBody: UpdateInvoiceRequestBody, ): string { @@ -259,7 +233,6 @@ export function updateInvoiceRequestBodyToJSON( UpdateInvoiceRequestBody$outboundSchema.parse(updateInvoiceRequestBody), ); } - export function updateInvoiceRequestBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -283,7 +256,6 @@ export const UpdateInvoiceRequest$inboundSchema: z.ZodType< "RequestBody": "requestBody", }); }); - /** @internal */ export type UpdateInvoiceRequest$Outbound = { id: string; @@ -304,19 +276,6 @@ export const UpdateInvoiceRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateInvoiceRequest$ { - /** @deprecated use `UpdateInvoiceRequest$inboundSchema` instead. */ - export const inboundSchema = UpdateInvoiceRequest$inboundSchema; - /** @deprecated use `UpdateInvoiceRequest$outboundSchema` instead. */ - export const outboundSchema = UpdateInvoiceRequest$outboundSchema; - /** @deprecated use `UpdateInvoiceRequest$Outbound` instead. */ - export type Outbound = UpdateInvoiceRequest$Outbound; -} - export function updateInvoiceRequestToJSON( updateInvoiceRequest: UpdateInvoiceRequest, ): string { @@ -324,7 +283,6 @@ export function updateInvoiceRequestToJSON( UpdateInvoiceRequest$outboundSchema.parse(updateInvoiceRequest), ); } - export function updateInvoiceRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -339,23 +297,11 @@ export function updateInvoiceRequestFromJSON( export const UpdateInvoiceStatusResponse$inboundSchema: z.ZodNativeEnum< typeof UpdateInvoiceStatusResponse > = z.nativeEnum(UpdateInvoiceStatusResponse); - /** @internal */ export const UpdateInvoiceStatusResponse$outboundSchema: z.ZodNativeEnum< typeof UpdateInvoiceStatusResponse > = UpdateInvoiceStatusResponse$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateInvoiceStatusResponse$ { - /** @deprecated use `UpdateInvoiceStatusResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateInvoiceStatusResponse$inboundSchema; - /** @deprecated use `UpdateInvoiceStatusResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateInvoiceStatusResponse$outboundSchema; -} - /** @internal */ export const UpdateInvoiceCustomer$inboundSchema: z.ZodType< UpdateInvoiceCustomer, @@ -367,7 +313,6 @@ export const UpdateInvoiceCustomer$inboundSchema: z.ZodType< website: z.nullable(z.string()), email: z.nullable(z.string()), }); - /** @internal */ export type UpdateInvoiceCustomer$Outbound = { id: string; @@ -388,19 +333,6 @@ export const UpdateInvoiceCustomer$outboundSchema: z.ZodType< email: z.nullable(z.string()), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateInvoiceCustomer$ { - /** @deprecated use `UpdateInvoiceCustomer$inboundSchema` instead. */ - export const inboundSchema = UpdateInvoiceCustomer$inboundSchema; - /** @deprecated use `UpdateInvoiceCustomer$outboundSchema` instead. */ - export const outboundSchema = UpdateInvoiceCustomer$outboundSchema; - /** @deprecated use `UpdateInvoiceCustomer$Outbound` instead. */ - export type Outbound = UpdateInvoiceCustomer$Outbound; -} - export function updateInvoiceCustomerToJSON( updateInvoiceCustomer: UpdateInvoiceCustomer, ): string { @@ -408,7 +340,6 @@ export function updateInvoiceCustomerToJSON( UpdateInvoiceCustomer$outboundSchema.parse(updateInvoiceCustomer), ); } - export function updateInvoiceCustomerFromJSON( jsonString: string, ): SafeParseResult { @@ -449,7 +380,6 @@ export const UpdateInvoiceResponse$inboundSchema: z.ZodType< pdfUrl: z.nullable(z.string()), previewUrl: z.nullable(z.string()), }); - /** @internal */ export type UpdateInvoiceResponse$Outbound = { id: string; @@ -508,19 +438,6 @@ export const UpdateInvoiceResponse$outboundSchema: z.ZodType< previewUrl: z.nullable(z.string()), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateInvoiceResponse$ { - /** @deprecated use `UpdateInvoiceResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateInvoiceResponse$inboundSchema; - /** @deprecated use `UpdateInvoiceResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateInvoiceResponse$outboundSchema; - /** @deprecated use `UpdateInvoiceResponse$Outbound` instead. */ - export type Outbound = UpdateInvoiceResponse$Outbound; -} - export function updateInvoiceResponseToJSON( updateInvoiceResponse: UpdateInvoiceResponse, ): string { @@ -528,7 +445,6 @@ export function updateInvoiceResponseToJSON( UpdateInvoiceResponse$outboundSchema.parse(updateInvoiceResponse), ); } - export function updateInvoiceResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/updatenotificationstatus.ts b/src/models/operations/updatenotificationstatus.ts index baaf4e1..befb037 100644 --- a/src/models/operations/updatenotificationstatus.ts +++ b/src/models/operations/updatenotificationstatus.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -32,6 +32,9 @@ export type UpdateNotificationStatusRequestBody = { }; export type UpdateNotificationStatusRequest = { + /** + * The ID of the notification to update + */ notificationId: string; requestBody?: UpdateNotificationStatusRequestBody | undefined; }; @@ -40,23 +43,11 @@ export type UpdateNotificationStatusRequest = { export const UpdateNotificationStatusStatus$inboundSchema: z.ZodNativeEnum< typeof UpdateNotificationStatusStatus > = z.nativeEnum(UpdateNotificationStatusStatus); - /** @internal */ export const UpdateNotificationStatusStatus$outboundSchema: z.ZodNativeEnum< typeof UpdateNotificationStatusStatus > = UpdateNotificationStatusStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateNotificationStatusStatus$ { - /** @deprecated use `UpdateNotificationStatusStatus$inboundSchema` instead. */ - export const inboundSchema = UpdateNotificationStatusStatus$inboundSchema; - /** @deprecated use `UpdateNotificationStatusStatus$outboundSchema` instead. */ - export const outboundSchema = UpdateNotificationStatusStatus$outboundSchema; -} - /** @internal */ export const UpdateNotificationStatusRequestBody$inboundSchema: z.ZodType< UpdateNotificationStatusRequestBody, @@ -65,7 +56,6 @@ export const UpdateNotificationStatusRequestBody$inboundSchema: z.ZodType< > = z.object({ status: UpdateNotificationStatusStatus$inboundSchema, }); - /** @internal */ export type UpdateNotificationStatusRequestBody$Outbound = { status: string; @@ -80,21 +70,6 @@ export const UpdateNotificationStatusRequestBody$outboundSchema: z.ZodType< status: UpdateNotificationStatusStatus$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateNotificationStatusRequestBody$ { - /** @deprecated use `UpdateNotificationStatusRequestBody$inboundSchema` instead. */ - export const inboundSchema = - UpdateNotificationStatusRequestBody$inboundSchema; - /** @deprecated use `UpdateNotificationStatusRequestBody$outboundSchema` instead. */ - export const outboundSchema = - UpdateNotificationStatusRequestBody$outboundSchema; - /** @deprecated use `UpdateNotificationStatusRequestBody$Outbound` instead. */ - export type Outbound = UpdateNotificationStatusRequestBody$Outbound; -} - export function updateNotificationStatusRequestBodyToJSON( updateNotificationStatusRequestBody: UpdateNotificationStatusRequestBody, ): string { @@ -104,7 +79,6 @@ export function updateNotificationStatusRequestBodyToJSON( ), ); } - export function updateNotificationStatusRequestBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -130,7 +104,6 @@ export const UpdateNotificationStatusRequest$inboundSchema: z.ZodType< "RequestBody": "requestBody", }); }); - /** @internal */ export type UpdateNotificationStatusRequest$Outbound = { notificationId: string; @@ -152,19 +125,6 @@ export const UpdateNotificationStatusRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateNotificationStatusRequest$ { - /** @deprecated use `UpdateNotificationStatusRequest$inboundSchema` instead. */ - export const inboundSchema = UpdateNotificationStatusRequest$inboundSchema; - /** @deprecated use `UpdateNotificationStatusRequest$outboundSchema` instead. */ - export const outboundSchema = UpdateNotificationStatusRequest$outboundSchema; - /** @deprecated use `UpdateNotificationStatusRequest$Outbound` instead. */ - export type Outbound = UpdateNotificationStatusRequest$Outbound; -} - export function updateNotificationStatusRequestToJSON( updateNotificationStatusRequest: UpdateNotificationStatusRequest, ): string { @@ -174,7 +134,6 @@ export function updateNotificationStatusRequestToJSON( ), ); } - export function updateNotificationStatusRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/updatetag.ts b/src/models/operations/updatetag.ts index 2838aac..f8902b1 100644 --- a/src/models/operations/updatetag.ts +++ b/src/models/operations/updatetag.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -16,6 +16,9 @@ export type UpdateTagRequestBody = { }; export type UpdateTagRequest = { + /** + * The ID of the tag to update. + */ id: string; requestBody?: UpdateTagRequestBody | undefined; }; @@ -28,7 +31,6 @@ export const UpdateTagRequestBody$inboundSchema: z.ZodType< > = z.object({ name: z.string(), }); - /** @internal */ export type UpdateTagRequestBody$Outbound = { name: string; @@ -43,19 +45,6 @@ export const UpdateTagRequestBody$outboundSchema: z.ZodType< name: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateTagRequestBody$ { - /** @deprecated use `UpdateTagRequestBody$inboundSchema` instead. */ - export const inboundSchema = UpdateTagRequestBody$inboundSchema; - /** @deprecated use `UpdateTagRequestBody$outboundSchema` instead. */ - export const outboundSchema = UpdateTagRequestBody$outboundSchema; - /** @deprecated use `UpdateTagRequestBody$Outbound` instead. */ - export type Outbound = UpdateTagRequestBody$Outbound; -} - export function updateTagRequestBodyToJSON( updateTagRequestBody: UpdateTagRequestBody, ): string { @@ -63,7 +52,6 @@ export function updateTagRequestBodyToJSON( UpdateTagRequestBody$outboundSchema.parse(updateTagRequestBody), ); } - export function updateTagRequestBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -87,7 +75,6 @@ export const UpdateTagRequest$inboundSchema: z.ZodType< "RequestBody": "requestBody", }); }); - /** @internal */ export type UpdateTagRequest$Outbound = { id: string; @@ -108,19 +95,6 @@ export const UpdateTagRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateTagRequest$ { - /** @deprecated use `UpdateTagRequest$inboundSchema` instead. */ - export const inboundSchema = UpdateTagRequest$inboundSchema; - /** @deprecated use `UpdateTagRequest$outboundSchema` instead. */ - export const outboundSchema = UpdateTagRequest$outboundSchema; - /** @deprecated use `UpdateTagRequest$Outbound` instead. */ - export type Outbound = UpdateTagRequest$Outbound; -} - export function updateTagRequestToJSON( updateTagRequest: UpdateTagRequest, ): string { @@ -128,7 +102,6 @@ export function updateTagRequestToJSON( UpdateTagRequest$outboundSchema.parse(updateTagRequest), ); } - export function updateTagRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/updateteambyid.ts b/src/models/operations/updateteambyid.ts index ece8eb6..588a1b2 100644 --- a/src/models/operations/updateteambyid.ts +++ b/src/models/operations/updateteambyid.ts @@ -2,13 +2,24 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +/** + * Export settings for transactions + */ +export type ExportSettings = { + csvDelimiter: string; + includeCSV: boolean; + includeXLSX: boolean; + sendEmail: boolean; + accountantEmail?: string | undefined; +}; + export type UpdateTeamByIdRequestBody = { /** * Name of the team or organization. Must be between 2 and 32 characters @@ -30,9 +41,20 @@ export type UpdateTeamByIdRequestBody = { * Country code for the team */ countryCode?: string | undefined; + /** + * Month when the fiscal year starts (1-12). Null for trailing 12 months. Defaults based on country if not specified. + */ + fiscalYearStartMonth?: number | null | undefined; + /** + * Export settings for transactions + */ + exportSettings?: ExportSettings | undefined; }; export type UpdateTeamByIdRequest = { + /** + * Unique identifier of the team + */ id: string; requestBody?: UpdateTeamByIdRequestBody | undefined; }; @@ -72,6 +94,53 @@ export type UpdateTeamByIdResponse = { plan: UpdateTeamByIdPlan; }; +/** @internal */ +export const ExportSettings$inboundSchema: z.ZodType< + ExportSettings, + z.ZodTypeDef, + unknown +> = z.object({ + csvDelimiter: z.string(), + includeCSV: z.boolean(), + includeXLSX: z.boolean(), + sendEmail: z.boolean(), + accountantEmail: z.string().optional(), +}); +/** @internal */ +export type ExportSettings$Outbound = { + csvDelimiter: string; + includeCSV: boolean; + includeXLSX: boolean; + sendEmail: boolean; + accountantEmail?: string | undefined; +}; + +/** @internal */ +export const ExportSettings$outboundSchema: z.ZodType< + ExportSettings$Outbound, + z.ZodTypeDef, + ExportSettings +> = z.object({ + csvDelimiter: z.string(), + includeCSV: z.boolean(), + includeXLSX: z.boolean(), + sendEmail: z.boolean(), + accountantEmail: z.string().optional(), +}); + +export function exportSettingsToJSON(exportSettings: ExportSettings): string { + return JSON.stringify(ExportSettings$outboundSchema.parse(exportSettings)); +} +export function exportSettingsFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ExportSettings$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ExportSettings' from JSON`, + ); +} + /** @internal */ export const UpdateTeamByIdRequestBody$inboundSchema: z.ZodType< UpdateTeamByIdRequestBody, @@ -83,8 +152,9 @@ export const UpdateTeamByIdRequestBody$inboundSchema: z.ZodType< logoUrl: z.string().optional(), baseCurrency: z.string().optional(), countryCode: z.string().optional(), + fiscalYearStartMonth: z.nullable(z.number().int()).optional(), + exportSettings: z.lazy(() => ExportSettings$inboundSchema).optional(), }); - /** @internal */ export type UpdateTeamByIdRequestBody$Outbound = { name?: string | undefined; @@ -92,6 +162,8 @@ export type UpdateTeamByIdRequestBody$Outbound = { logoUrl?: string | undefined; baseCurrency?: string | undefined; countryCode?: string | undefined; + fiscalYearStartMonth?: number | null | undefined; + exportSettings?: ExportSettings$Outbound | undefined; }; /** @internal */ @@ -105,21 +177,10 @@ export const UpdateTeamByIdRequestBody$outboundSchema: z.ZodType< logoUrl: z.string().optional(), baseCurrency: z.string().optional(), countryCode: z.string().optional(), + fiscalYearStartMonth: z.nullable(z.number().int()).optional(), + exportSettings: z.lazy(() => ExportSettings$outboundSchema).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateTeamByIdRequestBody$ { - /** @deprecated use `UpdateTeamByIdRequestBody$inboundSchema` instead. */ - export const inboundSchema = UpdateTeamByIdRequestBody$inboundSchema; - /** @deprecated use `UpdateTeamByIdRequestBody$outboundSchema` instead. */ - export const outboundSchema = UpdateTeamByIdRequestBody$outboundSchema; - /** @deprecated use `UpdateTeamByIdRequestBody$Outbound` instead. */ - export type Outbound = UpdateTeamByIdRequestBody$Outbound; -} - export function updateTeamByIdRequestBodyToJSON( updateTeamByIdRequestBody: UpdateTeamByIdRequestBody, ): string { @@ -127,7 +188,6 @@ export function updateTeamByIdRequestBodyToJSON( UpdateTeamByIdRequestBody$outboundSchema.parse(updateTeamByIdRequestBody), ); } - export function updateTeamByIdRequestBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -151,7 +211,6 @@ export const UpdateTeamByIdRequest$inboundSchema: z.ZodType< "RequestBody": "requestBody", }); }); - /** @internal */ export type UpdateTeamByIdRequest$Outbound = { id: string; @@ -173,19 +232,6 @@ export const UpdateTeamByIdRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateTeamByIdRequest$ { - /** @deprecated use `UpdateTeamByIdRequest$inboundSchema` instead. */ - export const inboundSchema = UpdateTeamByIdRequest$inboundSchema; - /** @deprecated use `UpdateTeamByIdRequest$outboundSchema` instead. */ - export const outboundSchema = UpdateTeamByIdRequest$outboundSchema; - /** @deprecated use `UpdateTeamByIdRequest$Outbound` instead. */ - export type Outbound = UpdateTeamByIdRequest$Outbound; -} - export function updateTeamByIdRequestToJSON( updateTeamByIdRequest: UpdateTeamByIdRequest, ): string { @@ -193,7 +239,6 @@ export function updateTeamByIdRequestToJSON( UpdateTeamByIdRequest$outboundSchema.parse(updateTeamByIdRequest), ); } - export function updateTeamByIdRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -208,23 +253,11 @@ export function updateTeamByIdRequestFromJSON( export const UpdateTeamByIdPlan$inboundSchema: z.ZodNativeEnum< typeof UpdateTeamByIdPlan > = z.nativeEnum(UpdateTeamByIdPlan); - /** @internal */ export const UpdateTeamByIdPlan$outboundSchema: z.ZodNativeEnum< typeof UpdateTeamByIdPlan > = UpdateTeamByIdPlan$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateTeamByIdPlan$ { - /** @deprecated use `UpdateTeamByIdPlan$inboundSchema` instead. */ - export const inboundSchema = UpdateTeamByIdPlan$inboundSchema; - /** @deprecated use `UpdateTeamByIdPlan$outboundSchema` instead. */ - export const outboundSchema = UpdateTeamByIdPlan$outboundSchema; -} - /** @internal */ export const UpdateTeamByIdResponse$inboundSchema: z.ZodType< UpdateTeamByIdResponse, @@ -236,7 +269,6 @@ export const UpdateTeamByIdResponse$inboundSchema: z.ZodType< logoUrl: z.nullable(z.string()), plan: UpdateTeamByIdPlan$inboundSchema, }); - /** @internal */ export type UpdateTeamByIdResponse$Outbound = { id: string; @@ -257,19 +289,6 @@ export const UpdateTeamByIdResponse$outboundSchema: z.ZodType< plan: UpdateTeamByIdPlan$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateTeamByIdResponse$ { - /** @deprecated use `UpdateTeamByIdResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateTeamByIdResponse$inboundSchema; - /** @deprecated use `UpdateTeamByIdResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateTeamByIdResponse$outboundSchema; - /** @deprecated use `UpdateTeamByIdResponse$Outbound` instead. */ - export type Outbound = UpdateTeamByIdResponse$Outbound; -} - export function updateTeamByIdResponseToJSON( updateTeamByIdResponse: UpdateTeamByIdResponse, ): string { @@ -277,7 +296,6 @@ export function updateTeamByIdResponseToJSON( UpdateTeamByIdResponse$outboundSchema.parse(updateTeamByIdResponse), ); } - export function updateTeamByIdResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/updatetrackerentry.ts b/src/models/operations/updatetrackerentry.ts index 5e79a87..4443694 100644 --- a/src/models/operations/updatetrackerentry.ts +++ b/src/models/operations/updatetrackerentry.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -40,6 +40,9 @@ export type UpdateTrackerEntryRequestBody = { }; export type UpdateTrackerEntryRequest = { + /** + * Unique identifier of the tracker entry to delete + */ id: string; requestBody?: UpdateTrackerEntryRequestBody | undefined; }; @@ -201,7 +204,6 @@ export const UpdateTrackerEntryRequestBody$inboundSchema: z.ZodType< description: z.nullable(z.string()).optional(), duration: z.number(), }); - /** @internal */ export type UpdateTrackerEntryRequestBody$Outbound = { start: string; @@ -228,19 +230,6 @@ export const UpdateTrackerEntryRequestBody$outboundSchema: z.ZodType< duration: z.number(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateTrackerEntryRequestBody$ { - /** @deprecated use `UpdateTrackerEntryRequestBody$inboundSchema` instead. */ - export const inboundSchema = UpdateTrackerEntryRequestBody$inboundSchema; - /** @deprecated use `UpdateTrackerEntryRequestBody$outboundSchema` instead. */ - export const outboundSchema = UpdateTrackerEntryRequestBody$outboundSchema; - /** @deprecated use `UpdateTrackerEntryRequestBody$Outbound` instead. */ - export type Outbound = UpdateTrackerEntryRequestBody$Outbound; -} - export function updateTrackerEntryRequestBodyToJSON( updateTrackerEntryRequestBody: UpdateTrackerEntryRequestBody, ): string { @@ -250,7 +239,6 @@ export function updateTrackerEntryRequestBodyToJSON( ), ); } - export function updateTrackerEntryRequestBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -275,7 +263,6 @@ export const UpdateTrackerEntryRequest$inboundSchema: z.ZodType< "RequestBody": "requestBody", }); }); - /** @internal */ export type UpdateTrackerEntryRequest$Outbound = { id: string; @@ -297,19 +284,6 @@ export const UpdateTrackerEntryRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateTrackerEntryRequest$ { - /** @deprecated use `UpdateTrackerEntryRequest$inboundSchema` instead. */ - export const inboundSchema = UpdateTrackerEntryRequest$inboundSchema; - /** @deprecated use `UpdateTrackerEntryRequest$outboundSchema` instead. */ - export const outboundSchema = UpdateTrackerEntryRequest$outboundSchema; - /** @deprecated use `UpdateTrackerEntryRequest$Outbound` instead. */ - export type Outbound = UpdateTrackerEntryRequest$Outbound; -} - export function updateTrackerEntryRequestToJSON( updateTrackerEntryRequest: UpdateTrackerEntryRequest, ): string { @@ -317,7 +291,6 @@ export function updateTrackerEntryRequestToJSON( UpdateTrackerEntryRequest$outboundSchema.parse(updateTrackerEntryRequest), ); } - export function updateTrackerEntryRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -338,7 +311,6 @@ export const UpdateTrackerEntryUser$inboundSchema: z.ZodType< fullName: z.string(), avatarUrl: z.string(), }); - /** @internal */ export type UpdateTrackerEntryUser$Outbound = { id: string; @@ -357,19 +329,6 @@ export const UpdateTrackerEntryUser$outboundSchema: z.ZodType< avatarUrl: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateTrackerEntryUser$ { - /** @deprecated use `UpdateTrackerEntryUser$inboundSchema` instead. */ - export const inboundSchema = UpdateTrackerEntryUser$inboundSchema; - /** @deprecated use `UpdateTrackerEntryUser$outboundSchema` instead. */ - export const outboundSchema = UpdateTrackerEntryUser$outboundSchema; - /** @deprecated use `UpdateTrackerEntryUser$Outbound` instead. */ - export type Outbound = UpdateTrackerEntryUser$Outbound; -} - export function updateTrackerEntryUserToJSON( updateTrackerEntryUser: UpdateTrackerEntryUser, ): string { @@ -377,7 +336,6 @@ export function updateTrackerEntryUserToJSON( UpdateTrackerEntryUser$outboundSchema.parse(updateTrackerEntryUser), ); } - export function updateTrackerEntryUserFromJSON( jsonString: string, ): SafeParseResult { @@ -397,7 +355,6 @@ export const UpdateTrackerEntryCustomer$inboundSchema: z.ZodType< id: z.string(), name: z.string(), }); - /** @internal */ export type UpdateTrackerEntryCustomer$Outbound = { id: string; @@ -414,19 +371,6 @@ export const UpdateTrackerEntryCustomer$outboundSchema: z.ZodType< name: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateTrackerEntryCustomer$ { - /** @deprecated use `UpdateTrackerEntryCustomer$inboundSchema` instead. */ - export const inboundSchema = UpdateTrackerEntryCustomer$inboundSchema; - /** @deprecated use `UpdateTrackerEntryCustomer$outboundSchema` instead. */ - export const outboundSchema = UpdateTrackerEntryCustomer$outboundSchema; - /** @deprecated use `UpdateTrackerEntryCustomer$Outbound` instead. */ - export type Outbound = UpdateTrackerEntryCustomer$Outbound; -} - export function updateTrackerEntryCustomerToJSON( updateTrackerEntryCustomer: UpdateTrackerEntryCustomer, ): string { @@ -434,7 +378,6 @@ export function updateTrackerEntryCustomerToJSON( UpdateTrackerEntryCustomer$outboundSchema.parse(updateTrackerEntryCustomer), ); } - export function updateTrackerEntryCustomerFromJSON( jsonString: string, ): SafeParseResult { @@ -462,7 +405,6 @@ export const UpdateTrackerEntryProject$inboundSchema: z.ZodType< estimate: z.nullable(z.number()), customer: z.nullable(z.lazy(() => UpdateTrackerEntryCustomer$inboundSchema)), }); - /** @internal */ export type UpdateTrackerEntryProject$Outbound = { id: string; @@ -495,19 +437,6 @@ export const UpdateTrackerEntryProject$outboundSchema: z.ZodType< customer: z.nullable(z.lazy(() => UpdateTrackerEntryCustomer$outboundSchema)), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateTrackerEntryProject$ { - /** @deprecated use `UpdateTrackerEntryProject$inboundSchema` instead. */ - export const inboundSchema = UpdateTrackerEntryProject$inboundSchema; - /** @deprecated use `UpdateTrackerEntryProject$outboundSchema` instead. */ - export const outboundSchema = UpdateTrackerEntryProject$outboundSchema; - /** @deprecated use `UpdateTrackerEntryProject$Outbound` instead. */ - export type Outbound = UpdateTrackerEntryProject$Outbound; -} - export function updateTrackerEntryProjectToJSON( updateTrackerEntryProject: UpdateTrackerEntryProject, ): string { @@ -515,7 +444,6 @@ export function updateTrackerEntryProjectToJSON( UpdateTrackerEntryProject$outboundSchema.parse(updateTrackerEntryProject), ); } - export function updateTrackerEntryProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -546,7 +474,6 @@ export const UpdateTrackerEntryData$inboundSchema: z.ZodType< user: z.lazy(() => UpdateTrackerEntryUser$inboundSchema), project: z.lazy(() => UpdateTrackerEntryProject$inboundSchema), }); - /** @internal */ export type UpdateTrackerEntryData$Outbound = { id: string; @@ -585,19 +512,6 @@ export const UpdateTrackerEntryData$outboundSchema: z.ZodType< project: z.lazy(() => UpdateTrackerEntryProject$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateTrackerEntryData$ { - /** @deprecated use `UpdateTrackerEntryData$inboundSchema` instead. */ - export const inboundSchema = UpdateTrackerEntryData$inboundSchema; - /** @deprecated use `UpdateTrackerEntryData$outboundSchema` instead. */ - export const outboundSchema = UpdateTrackerEntryData$outboundSchema; - /** @deprecated use `UpdateTrackerEntryData$Outbound` instead. */ - export type Outbound = UpdateTrackerEntryData$Outbound; -} - export function updateTrackerEntryDataToJSON( updateTrackerEntryData: UpdateTrackerEntryData, ): string { @@ -605,7 +519,6 @@ export function updateTrackerEntryDataToJSON( UpdateTrackerEntryData$outboundSchema.parse(updateTrackerEntryData), ); } - export function updateTrackerEntryDataFromJSON( jsonString: string, ): SafeParseResult { @@ -624,7 +537,6 @@ export const UpdateTrackerEntryResponse$inboundSchema: z.ZodType< > = z.object({ data: z.array(z.lazy(() => UpdateTrackerEntryData$inboundSchema)), }); - /** @internal */ export type UpdateTrackerEntryResponse$Outbound = { data: Array; @@ -639,19 +551,6 @@ export const UpdateTrackerEntryResponse$outboundSchema: z.ZodType< data: z.array(z.lazy(() => UpdateTrackerEntryData$outboundSchema)), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateTrackerEntryResponse$ { - /** @deprecated use `UpdateTrackerEntryResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateTrackerEntryResponse$inboundSchema; - /** @deprecated use `UpdateTrackerEntryResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateTrackerEntryResponse$outboundSchema; - /** @deprecated use `UpdateTrackerEntryResponse$Outbound` instead. */ - export type Outbound = UpdateTrackerEntryResponse$Outbound; -} - export function updateTrackerEntryResponseToJSON( updateTrackerEntryResponse: UpdateTrackerEntryResponse, ): string { @@ -659,7 +558,6 @@ export function updateTrackerEntryResponseToJSON( UpdateTrackerEntryResponse$outboundSchema.parse(updateTrackerEntryResponse), ); } - export function updateTrackerEntryResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/updatetrackerproject.ts b/src/models/operations/updatetrackerproject.ts index 9072635..9b76c85 100644 --- a/src/models/operations/updatetrackerproject.ts +++ b/src/models/operations/updatetrackerproject.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -74,6 +74,9 @@ export type UpdateTrackerProjectRequestBody = { }; export type UpdateTrackerProjectRequest = { + /** + * Unique identifier of the project to retrieve + */ id: string; requestBody?: UpdateTrackerProjectRequestBody | undefined; }; @@ -82,23 +85,11 @@ export type UpdateTrackerProjectRequest = { export const UpdateTrackerProjectStatus$inboundSchema: z.ZodNativeEnum< typeof UpdateTrackerProjectStatus > = z.nativeEnum(UpdateTrackerProjectStatus); - /** @internal */ export const UpdateTrackerProjectStatus$outboundSchema: z.ZodNativeEnum< typeof UpdateTrackerProjectStatus > = UpdateTrackerProjectStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateTrackerProjectStatus$ { - /** @deprecated use `UpdateTrackerProjectStatus$inboundSchema` instead. */ - export const inboundSchema = UpdateTrackerProjectStatus$inboundSchema; - /** @deprecated use `UpdateTrackerProjectStatus$outboundSchema` instead. */ - export const outboundSchema = UpdateTrackerProjectStatus$outboundSchema; -} - /** @internal */ export const UpdateTrackerProjectTag$inboundSchema: z.ZodType< UpdateTrackerProjectTag, @@ -108,7 +99,6 @@ export const UpdateTrackerProjectTag$inboundSchema: z.ZodType< id: z.string(), value: z.string(), }); - /** @internal */ export type UpdateTrackerProjectTag$Outbound = { id: string; @@ -125,19 +115,6 @@ export const UpdateTrackerProjectTag$outboundSchema: z.ZodType< value: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateTrackerProjectTag$ { - /** @deprecated use `UpdateTrackerProjectTag$inboundSchema` instead. */ - export const inboundSchema = UpdateTrackerProjectTag$inboundSchema; - /** @deprecated use `UpdateTrackerProjectTag$outboundSchema` instead. */ - export const outboundSchema = UpdateTrackerProjectTag$outboundSchema; - /** @deprecated use `UpdateTrackerProjectTag$Outbound` instead. */ - export type Outbound = UpdateTrackerProjectTag$Outbound; -} - export function updateTrackerProjectTagToJSON( updateTrackerProjectTag: UpdateTrackerProjectTag, ): string { @@ -145,7 +122,6 @@ export function updateTrackerProjectTagToJSON( UpdateTrackerProjectTag$outboundSchema.parse(updateTrackerProjectTag), ); } - export function updateTrackerProjectTagFromJSON( jsonString: string, ): SafeParseResult { @@ -173,7 +149,6 @@ export const UpdateTrackerProjectRequestBody$inboundSchema: z.ZodType< tags: z.nullable(z.array(z.lazy(() => UpdateTrackerProjectTag$inboundSchema))) .optional(), }); - /** @internal */ export type UpdateTrackerProjectRequestBody$Outbound = { name: string; @@ -206,19 +181,6 @@ export const UpdateTrackerProjectRequestBody$outboundSchema: z.ZodType< ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateTrackerProjectRequestBody$ { - /** @deprecated use `UpdateTrackerProjectRequestBody$inboundSchema` instead. */ - export const inboundSchema = UpdateTrackerProjectRequestBody$inboundSchema; - /** @deprecated use `UpdateTrackerProjectRequestBody$outboundSchema` instead. */ - export const outboundSchema = UpdateTrackerProjectRequestBody$outboundSchema; - /** @deprecated use `UpdateTrackerProjectRequestBody$Outbound` instead. */ - export type Outbound = UpdateTrackerProjectRequestBody$Outbound; -} - export function updateTrackerProjectRequestBodyToJSON( updateTrackerProjectRequestBody: UpdateTrackerProjectRequestBody, ): string { @@ -228,7 +190,6 @@ export function updateTrackerProjectRequestBodyToJSON( ), ); } - export function updateTrackerProjectRequestBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -253,7 +214,6 @@ export const UpdateTrackerProjectRequest$inboundSchema: z.ZodType< "RequestBody": "requestBody", }); }); - /** @internal */ export type UpdateTrackerProjectRequest$Outbound = { id: string; @@ -275,19 +235,6 @@ export const UpdateTrackerProjectRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateTrackerProjectRequest$ { - /** @deprecated use `UpdateTrackerProjectRequest$inboundSchema` instead. */ - export const inboundSchema = UpdateTrackerProjectRequest$inboundSchema; - /** @deprecated use `UpdateTrackerProjectRequest$outboundSchema` instead. */ - export const outboundSchema = UpdateTrackerProjectRequest$outboundSchema; - /** @deprecated use `UpdateTrackerProjectRequest$Outbound` instead. */ - export type Outbound = UpdateTrackerProjectRequest$Outbound; -} - export function updateTrackerProjectRequestToJSON( updateTrackerProjectRequest: UpdateTrackerProjectRequest, ): string { @@ -297,7 +244,6 @@ export function updateTrackerProjectRequestToJSON( ), ); } - export function updateTrackerProjectRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/updatetransaction.ts b/src/models/operations/updatetransaction.ts index 3f41533..3e3b1c7 100644 --- a/src/models/operations/updatetransaction.ts +++ b/src/models/operations/updatetransaction.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -18,6 +18,7 @@ export const UpdateTransactionStatus = { Completed: "completed", Posted: "posted", Excluded: "excluded", + Exported: "exported", } as const; /** * Status of the transaction. @@ -43,6 +44,26 @@ export type UpdateTransactionFrequency = ClosedEnum< >; export type UpdateTransactionRequestBody = { + /** + * Name/description of the transaction. + */ + name?: string | undefined; + /** + * Amount of the transaction. + */ + amount?: number | undefined; + /** + * Currency of the transaction. + */ + currency?: string | undefined; + /** + * Date of the transaction (ISO 8601). + */ + date?: string | undefined; + /** + * Bank account ID associated with the transaction. + */ + bankAccountId?: string | undefined; /** * Category slug for the transaction. */ @@ -71,9 +92,20 @@ export type UpdateTransactionRequestBody = { * Assigned user ID for the transaction. */ assignedId?: string | null | undefined; + /** + * Tax rate as a percentage (e.g., 25 for 25% VAT). Only set when tax is calculated from a percentage. + */ + taxRate?: number | null | undefined; + /** + * Tax amount in the transaction currency. Always set when tax is present. + */ + taxAmount?: number | null | undefined; }; export type UpdateTransactionRequest = { + /** + * Transaction ID (UUID). + */ id: string; requestBody?: UpdateTransactionRequestBody | undefined; }; @@ -82,50 +114,31 @@ export type UpdateTransactionRequest = { export const UpdateTransactionStatus$inboundSchema: z.ZodNativeEnum< typeof UpdateTransactionStatus > = z.nativeEnum(UpdateTransactionStatus); - /** @internal */ export const UpdateTransactionStatus$outboundSchema: z.ZodNativeEnum< typeof UpdateTransactionStatus > = UpdateTransactionStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateTransactionStatus$ { - /** @deprecated use `UpdateTransactionStatus$inboundSchema` instead. */ - export const inboundSchema = UpdateTransactionStatus$inboundSchema; - /** @deprecated use `UpdateTransactionStatus$outboundSchema` instead. */ - export const outboundSchema = UpdateTransactionStatus$outboundSchema; -} - /** @internal */ export const UpdateTransactionFrequency$inboundSchema: z.ZodNativeEnum< typeof UpdateTransactionFrequency > = z.nativeEnum(UpdateTransactionFrequency); - /** @internal */ export const UpdateTransactionFrequency$outboundSchema: z.ZodNativeEnum< typeof UpdateTransactionFrequency > = UpdateTransactionFrequency$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateTransactionFrequency$ { - /** @deprecated use `UpdateTransactionFrequency$inboundSchema` instead. */ - export const inboundSchema = UpdateTransactionFrequency$inboundSchema; - /** @deprecated use `UpdateTransactionFrequency$outboundSchema` instead. */ - export const outboundSchema = UpdateTransactionFrequency$outboundSchema; -} - /** @internal */ export const UpdateTransactionRequestBody$inboundSchema: z.ZodType< UpdateTransactionRequestBody, z.ZodTypeDef, unknown > = z.object({ + name: z.string().optional(), + amount: z.number().optional(), + currency: z.string().optional(), + date: z.string().optional(), + bankAccountId: z.string().optional(), categorySlug: z.nullable(z.string()).optional(), status: z.nullable(UpdateTransactionStatus$inboundSchema).optional(), internal: z.boolean().optional(), @@ -133,10 +146,16 @@ export const UpdateTransactionRequestBody$inboundSchema: z.ZodType< frequency: z.nullable(UpdateTransactionFrequency$inboundSchema).optional(), note: z.nullable(z.string()).optional(), assignedId: z.nullable(z.string()).optional(), + taxRate: z.nullable(z.number()).optional(), + taxAmount: z.nullable(z.number()).optional(), }); - /** @internal */ export type UpdateTransactionRequestBody$Outbound = { + name?: string | undefined; + amount?: number | undefined; + currency?: string | undefined; + date?: string | undefined; + bankAccountId?: string | undefined; categorySlug?: string | null | undefined; status?: string | null | undefined; internal?: boolean | undefined; @@ -144,6 +163,8 @@ export type UpdateTransactionRequestBody$Outbound = { frequency?: string | null | undefined; note?: string | null | undefined; assignedId?: string | null | undefined; + taxRate?: number | null | undefined; + taxAmount?: number | null | undefined; }; /** @internal */ @@ -152,6 +173,11 @@ export const UpdateTransactionRequestBody$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateTransactionRequestBody > = z.object({ + name: z.string().optional(), + amount: z.number().optional(), + currency: z.string().optional(), + date: z.string().optional(), + bankAccountId: z.string().optional(), categorySlug: z.nullable(z.string()).optional(), status: z.nullable(UpdateTransactionStatus$outboundSchema).optional(), internal: z.boolean().optional(), @@ -159,21 +185,10 @@ export const UpdateTransactionRequestBody$outboundSchema: z.ZodType< frequency: z.nullable(UpdateTransactionFrequency$outboundSchema).optional(), note: z.nullable(z.string()).optional(), assignedId: z.nullable(z.string()).optional(), + taxRate: z.nullable(z.number()).optional(), + taxAmount: z.nullable(z.number()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateTransactionRequestBody$ { - /** @deprecated use `UpdateTransactionRequestBody$inboundSchema` instead. */ - export const inboundSchema = UpdateTransactionRequestBody$inboundSchema; - /** @deprecated use `UpdateTransactionRequestBody$outboundSchema` instead. */ - export const outboundSchema = UpdateTransactionRequestBody$outboundSchema; - /** @deprecated use `UpdateTransactionRequestBody$Outbound` instead. */ - export type Outbound = UpdateTransactionRequestBody$Outbound; -} - export function updateTransactionRequestBodyToJSON( updateTransactionRequestBody: UpdateTransactionRequestBody, ): string { @@ -183,7 +198,6 @@ export function updateTransactionRequestBodyToJSON( ), ); } - export function updateTransactionRequestBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -208,7 +222,6 @@ export const UpdateTransactionRequest$inboundSchema: z.ZodType< "RequestBody": "requestBody", }); }); - /** @internal */ export type UpdateTransactionRequest$Outbound = { id: string; @@ -230,19 +243,6 @@ export const UpdateTransactionRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateTransactionRequest$ { - /** @deprecated use `UpdateTransactionRequest$inboundSchema` instead. */ - export const inboundSchema = UpdateTransactionRequest$inboundSchema; - /** @deprecated use `UpdateTransactionRequest$outboundSchema` instead. */ - export const outboundSchema = UpdateTransactionRequest$outboundSchema; - /** @deprecated use `UpdateTransactionRequest$Outbound` instead. */ - export type Outbound = UpdateTransactionRequest$Outbound; -} - export function updateTransactionRequestToJSON( updateTransactionRequest: UpdateTransactionRequest, ): string { @@ -250,7 +250,6 @@ export function updateTransactionRequestToJSON( UpdateTransactionRequest$outboundSchema.parse(updateTransactionRequest), ); } - export function updateTransactionRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/updatetransactions.ts b/src/models/operations/updatetransactions.ts index a6559e1..7423049 100644 --- a/src/models/operations/updatetransactions.ts +++ b/src/models/operations/updatetransactions.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -18,6 +18,7 @@ export const UpdateTransactionsStatus = { Completed: "completed", Posted: "posted", Excluded: "excluded", + Exported: "exported", } as const; /** * Status to set for the transactions. @@ -117,44 +118,20 @@ export type UpdateTransactionsResponse = { export const UpdateTransactionsStatus$inboundSchema: z.ZodNativeEnum< typeof UpdateTransactionsStatus > = z.nativeEnum(UpdateTransactionsStatus); - /** @internal */ export const UpdateTransactionsStatus$outboundSchema: z.ZodNativeEnum< typeof UpdateTransactionsStatus > = UpdateTransactionsStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateTransactionsStatus$ { - /** @deprecated use `UpdateTransactionsStatus$inboundSchema` instead. */ - export const inboundSchema = UpdateTransactionsStatus$inboundSchema; - /** @deprecated use `UpdateTransactionsStatus$outboundSchema` instead. */ - export const outboundSchema = UpdateTransactionsStatus$outboundSchema; -} - /** @internal */ export const UpdateTransactionsFrequency$inboundSchema: z.ZodNativeEnum< typeof UpdateTransactionsFrequency > = z.nativeEnum(UpdateTransactionsFrequency); - /** @internal */ export const UpdateTransactionsFrequency$outboundSchema: z.ZodNativeEnum< typeof UpdateTransactionsFrequency > = UpdateTransactionsFrequency$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateTransactionsFrequency$ { - /** @deprecated use `UpdateTransactionsFrequency$inboundSchema` instead. */ - export const inboundSchema = UpdateTransactionsFrequency$inboundSchema; - /** @deprecated use `UpdateTransactionsFrequency$outboundSchema` instead. */ - export const outboundSchema = UpdateTransactionsFrequency$outboundSchema; -} - /** @internal */ export const UpdateTransactionsRequest$inboundSchema: z.ZodType< UpdateTransactionsRequest, @@ -171,7 +148,6 @@ export const UpdateTransactionsRequest$inboundSchema: z.ZodType< recurring: z.boolean().optional(), tagId: z.nullable(z.string()).optional(), }); - /** @internal */ export type UpdateTransactionsRequest$Outbound = { ids: Array; @@ -202,19 +178,6 @@ export const UpdateTransactionsRequest$outboundSchema: z.ZodType< tagId: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateTransactionsRequest$ { - /** @deprecated use `UpdateTransactionsRequest$inboundSchema` instead. */ - export const inboundSchema = UpdateTransactionsRequest$inboundSchema; - /** @deprecated use `UpdateTransactionsRequest$outboundSchema` instead. */ - export const outboundSchema = UpdateTransactionsRequest$outboundSchema; - /** @deprecated use `UpdateTransactionsRequest$Outbound` instead. */ - export type Outbound = UpdateTransactionsRequest$Outbound; -} - export function updateTransactionsRequestToJSON( updateTransactionsRequest: UpdateTransactionsRequest, ): string { @@ -222,7 +185,6 @@ export function updateTransactionsRequestToJSON( UpdateTransactionsRequest$outboundSchema.parse(updateTransactionsRequest), ); } - export function updateTransactionsRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -243,7 +205,6 @@ export const UpdateTransactionsMeta$inboundSchema: z.ZodType< hasPreviousPage: z.boolean(), hasNextPage: z.boolean(), }); - /** @internal */ export type UpdateTransactionsMeta$Outbound = { cursor?: string | undefined; @@ -262,19 +223,6 @@ export const UpdateTransactionsMeta$outboundSchema: z.ZodType< hasNextPage: z.boolean(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateTransactionsMeta$ { - /** @deprecated use `UpdateTransactionsMeta$inboundSchema` instead. */ - export const inboundSchema = UpdateTransactionsMeta$inboundSchema; - /** @deprecated use `UpdateTransactionsMeta$outboundSchema` instead. */ - export const outboundSchema = UpdateTransactionsMeta$outboundSchema; - /** @deprecated use `UpdateTransactionsMeta$Outbound` instead. */ - export type Outbound = UpdateTransactionsMeta$Outbound; -} - export function updateTransactionsMetaToJSON( updateTransactionsMeta: UpdateTransactionsMeta, ): string { @@ -282,7 +230,6 @@ export function updateTransactionsMetaToJSON( UpdateTransactionsMeta$outboundSchema.parse(updateTransactionsMeta), ); } - export function updateTransactionsMetaFromJSON( jsonString: string, ): SafeParseResult { @@ -302,7 +249,6 @@ export const UpdateTransactionsResponse$inboundSchema: z.ZodType< meta: z.lazy(() => UpdateTransactionsMeta$inboundSchema), data: z.array(models.TransactionResponse$inboundSchema), }); - /** @internal */ export type UpdateTransactionsResponse$Outbound = { meta: UpdateTransactionsMeta$Outbound; @@ -319,19 +265,6 @@ export const UpdateTransactionsResponse$outboundSchema: z.ZodType< data: z.array(models.TransactionResponse$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateTransactionsResponse$ { - /** @deprecated use `UpdateTransactionsResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateTransactionsResponse$inboundSchema; - /** @deprecated use `UpdateTransactionsResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateTransactionsResponse$outboundSchema; - /** @deprecated use `UpdateTransactionsResponse$Outbound` instead. */ - export type Outbound = UpdateTransactionsResponse$Outbound; -} - export function updateTransactionsResponseToJSON( updateTransactionsResponse: UpdateTransactionsResponse, ): string { @@ -339,7 +272,6 @@ export function updateTransactionsResponseToJSON( UpdateTransactionsResponse$outboundSchema.parse(updateTransactionsResponse), ); } - export function updateTransactionsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/whatsappwebhook.ts b/src/models/operations/whatsappwebhook.ts new file mode 100644 index 0000000..53e6d1f --- /dev/null +++ b/src/models/operations/whatsappwebhook.ts @@ -0,0 +1,54 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +/** + * Webhook processed successfully + */ +export type WhatsappWebhookResponse = { + success: boolean; +}; + +/** @internal */ +export const WhatsappWebhookResponse$inboundSchema: z.ZodType< + WhatsappWebhookResponse, + z.ZodTypeDef, + unknown +> = z.object({ + success: z.boolean(), +}); +/** @internal */ +export type WhatsappWebhookResponse$Outbound = { + success: boolean; +}; + +/** @internal */ +export const WhatsappWebhookResponse$outboundSchema: z.ZodType< + WhatsappWebhookResponse$Outbound, + z.ZodTypeDef, + WhatsappWebhookResponse +> = z.object({ + success: z.boolean(), +}); + +export function whatsappWebhookResponseToJSON( + whatsappWebhookResponse: WhatsappWebhookResponse, +): string { + return JSON.stringify( + WhatsappWebhookResponse$outboundSchema.parse(whatsappWebhookResponse), + ); +} +export function whatsappWebhookResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => WhatsappWebhookResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'WhatsappWebhookResponse' from JSON`, + ); +} diff --git a/src/models/operations/whatsappwebhookverify.ts b/src/models/operations/whatsappwebhookverify.ts new file mode 100644 index 0000000..3330647 --- /dev/null +++ b/src/models/operations/whatsappwebhookverify.ts @@ -0,0 +1,74 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +export type WhatsappWebhookVerifyRequest = { + hubMode: string; + hubVerifyToken: string; + hubChallenge: string; +}; + +/** @internal */ +export const WhatsappWebhookVerifyRequest$inboundSchema: z.ZodType< + WhatsappWebhookVerifyRequest, + z.ZodTypeDef, + unknown +> = z.object({ + "hub.mode": z.string(), + "hub.verify_token": z.string(), + "hub.challenge": z.string(), +}).transform((v) => { + return remap$(v, { + "hub.mode": "hubMode", + "hub.verify_token": "hubVerifyToken", + "hub.challenge": "hubChallenge", + }); +}); +/** @internal */ +export type WhatsappWebhookVerifyRequest$Outbound = { + "hub.mode": string; + "hub.verify_token": string; + "hub.challenge": string; +}; + +/** @internal */ +export const WhatsappWebhookVerifyRequest$outboundSchema: z.ZodType< + WhatsappWebhookVerifyRequest$Outbound, + z.ZodTypeDef, + WhatsappWebhookVerifyRequest +> = z.object({ + hubMode: z.string(), + hubVerifyToken: z.string(), + hubChallenge: z.string(), +}).transform((v) => { + return remap$(v, { + hubMode: "hub.mode", + hubVerifyToken: "hub.verify_token", + hubChallenge: "hub.challenge", + }); +}); + +export function whatsappWebhookVerifyRequestToJSON( + whatsappWebhookVerifyRequest: WhatsappWebhookVerifyRequest, +): string { + return JSON.stringify( + WhatsappWebhookVerifyRequest$outboundSchema.parse( + whatsappWebhookVerifyRequest, + ), + ); +} +export function whatsappWebhookVerifyRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => WhatsappWebhookVerifyRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'WhatsappWebhookVerifyRequest' from JSON`, + ); +} diff --git a/src/models/operations/xerooauthcallback.ts b/src/models/operations/xerooauthcallback.ts new file mode 100644 index 0000000..6030078 --- /dev/null +++ b/src/models/operations/xerooauthcallback.ts @@ -0,0 +1,120 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +export type XeroOAuthCallbackRequest = { + /** + * OAuth authorization code from Xero + */ + code?: string | undefined; + /** + * OAuth state parameter for CSRF protection + */ + state: string; + /** + * OAuth error code if authorization failed + */ + error?: string | undefined; +}; + +export type XeroOAuthCallbackResponse = { + headers: { [k: string]: Array }; +}; + +/** @internal */ +export const XeroOAuthCallbackRequest$inboundSchema: z.ZodType< + XeroOAuthCallbackRequest, + z.ZodTypeDef, + unknown +> = z.object({ + code: z.string().optional(), + state: z.string(), + error: z.string().optional(), +}); +/** @internal */ +export type XeroOAuthCallbackRequest$Outbound = { + code?: string | undefined; + state: string; + error?: string | undefined; +}; + +/** @internal */ +export const XeroOAuthCallbackRequest$outboundSchema: z.ZodType< + XeroOAuthCallbackRequest$Outbound, + z.ZodTypeDef, + XeroOAuthCallbackRequest +> = z.object({ + code: z.string().optional(), + state: z.string(), + error: z.string().optional(), +}); + +export function xeroOAuthCallbackRequestToJSON( + xeroOAuthCallbackRequest: XeroOAuthCallbackRequest, +): string { + return JSON.stringify( + XeroOAuthCallbackRequest$outboundSchema.parse(xeroOAuthCallbackRequest), + ); +} +export function xeroOAuthCallbackRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => XeroOAuthCallbackRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'XeroOAuthCallbackRequest' from JSON`, + ); +} + +/** @internal */ +export const XeroOAuthCallbackResponse$inboundSchema: z.ZodType< + XeroOAuthCallbackResponse, + z.ZodTypeDef, + unknown +> = z.object({ + Headers: z.record(z.array(z.string())).default({}), +}).transform((v) => { + return remap$(v, { + "Headers": "headers", + }); +}); +/** @internal */ +export type XeroOAuthCallbackResponse$Outbound = { + Headers: { [k: string]: Array }; +}; + +/** @internal */ +export const XeroOAuthCallbackResponse$outboundSchema: z.ZodType< + XeroOAuthCallbackResponse$Outbound, + z.ZodTypeDef, + XeroOAuthCallbackResponse +> = z.object({ + headers: z.record(z.array(z.string())), +}).transform((v) => { + return remap$(v, { + headers: "Headers", + }); +}); + +export function xeroOAuthCallbackResponseToJSON( + xeroOAuthCallbackResponse: XeroOAuthCallbackResponse, +): string { + return JSON.stringify( + XeroOAuthCallbackResponse$outboundSchema.parse(xeroOAuthCallbackResponse), + ); +} +export function xeroOAuthCallbackResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => XeroOAuthCallbackResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'XeroOAuthCallbackResponse' from JSON`, + ); +} diff --git a/src/models/profitcurrent.ts b/src/models/profitcurrent.ts index c9ac31a..8098376 100644 --- a/src/models/profitcurrent.ts +++ b/src/models/profitcurrent.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../lib/schemas.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; @@ -32,7 +32,6 @@ export const ProfitCurrent$inboundSchema: z.ZodType< value: z.number(), currency: z.string(), }); - /** @internal */ export type ProfitCurrent$Outbound = { date: string; @@ -51,23 +50,9 @@ export const ProfitCurrent$outboundSchema: z.ZodType< currency: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ProfitCurrent$ { - /** @deprecated use `ProfitCurrent$inboundSchema` instead. */ - export const inboundSchema = ProfitCurrent$inboundSchema; - /** @deprecated use `ProfitCurrent$outboundSchema` instead. */ - export const outboundSchema = ProfitCurrent$outboundSchema; - /** @deprecated use `ProfitCurrent$Outbound` instead. */ - export type Outbound = ProfitCurrent$Outbound; -} - export function profitCurrentToJSON(profitCurrent: ProfitCurrent): string { return JSON.stringify(ProfitCurrent$outboundSchema.parse(profitCurrent)); } - export function profitCurrentFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/profitmeta.ts b/src/models/profitmeta.ts index 5809191..3e143fd 100644 --- a/src/models/profitmeta.ts +++ b/src/models/profitmeta.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../lib/schemas.js"; import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; @@ -34,23 +34,11 @@ export type ProfitMeta = { export const ProfitMetaType$inboundSchema: z.ZodNativeEnum< typeof ProfitMetaType > = z.nativeEnum(ProfitMetaType); - /** @internal */ export const ProfitMetaType$outboundSchema: z.ZodNativeEnum< typeof ProfitMetaType > = ProfitMetaType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ProfitMetaType$ { - /** @deprecated use `ProfitMetaType$inboundSchema` instead. */ - export const inboundSchema = ProfitMetaType$inboundSchema; - /** @deprecated use `ProfitMetaType$outboundSchema` instead. */ - export const outboundSchema = ProfitMetaType$outboundSchema; -} - /** @internal */ export const ProfitMeta$inboundSchema: z.ZodType< ProfitMeta, @@ -60,7 +48,6 @@ export const ProfitMeta$inboundSchema: z.ZodType< type: ProfitMetaType$inboundSchema, currency: z.string(), }); - /** @internal */ export type ProfitMeta$Outbound = { type: string; @@ -77,23 +64,9 @@ export const ProfitMeta$outboundSchema: z.ZodType< currency: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ProfitMeta$ { - /** @deprecated use `ProfitMeta$inboundSchema` instead. */ - export const inboundSchema = ProfitMeta$inboundSchema; - /** @deprecated use `ProfitMeta$outboundSchema` instead. */ - export const outboundSchema = ProfitMeta$outboundSchema; - /** @deprecated use `ProfitMeta$Outbound` instead. */ - export type Outbound = ProfitMeta$Outbound; -} - export function profitMetaToJSON(profitMeta: ProfitMeta): string { return JSON.stringify(ProfitMeta$outboundSchema.parse(profitMeta)); } - export function profitMetaFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/profitpercentage.ts b/src/models/profitpercentage.ts index 267a842..3f7400b 100644 --- a/src/models/profitpercentage.ts +++ b/src/models/profitpercentage.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../lib/schemas.js"; import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; @@ -35,23 +35,11 @@ export type ProfitPercentage = { export const ProfitPercentageStatus$inboundSchema: z.ZodNativeEnum< typeof ProfitPercentageStatus > = z.nativeEnum(ProfitPercentageStatus); - /** @internal */ export const ProfitPercentageStatus$outboundSchema: z.ZodNativeEnum< typeof ProfitPercentageStatus > = ProfitPercentageStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ProfitPercentageStatus$ { - /** @deprecated use `ProfitPercentageStatus$inboundSchema` instead. */ - export const inboundSchema = ProfitPercentageStatus$inboundSchema; - /** @deprecated use `ProfitPercentageStatus$outboundSchema` instead. */ - export const outboundSchema = ProfitPercentageStatus$outboundSchema; -} - /** @internal */ export const ProfitPercentage$inboundSchema: z.ZodType< ProfitPercentage, @@ -61,7 +49,6 @@ export const ProfitPercentage$inboundSchema: z.ZodType< value: z.number(), status: ProfitPercentageStatus$inboundSchema, }); - /** @internal */ export type ProfitPercentage$Outbound = { value: number; @@ -78,19 +65,6 @@ export const ProfitPercentage$outboundSchema: z.ZodType< status: ProfitPercentageStatus$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ProfitPercentage$ { - /** @deprecated use `ProfitPercentage$inboundSchema` instead. */ - export const inboundSchema = ProfitPercentage$inboundSchema; - /** @deprecated use `ProfitPercentage$outboundSchema` instead. */ - export const outboundSchema = ProfitPercentage$outboundSchema; - /** @deprecated use `ProfitPercentage$Outbound` instead. */ - export type Outbound = ProfitPercentage$Outbound; -} - export function profitPercentageToJSON( profitPercentage: ProfitPercentage, ): string { @@ -98,7 +72,6 @@ export function profitPercentageToJSON( ProfitPercentage$outboundSchema.parse(profitPercentage), ); } - export function profitPercentageFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/profitprevious.ts b/src/models/profitprevious.ts index b90e505..f3ef6b2 100644 --- a/src/models/profitprevious.ts +++ b/src/models/profitprevious.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../lib/schemas.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; @@ -32,7 +32,6 @@ export const ProfitPrevious$inboundSchema: z.ZodType< value: z.number(), currency: z.string(), }); - /** @internal */ export type ProfitPrevious$Outbound = { date: string; @@ -51,23 +50,9 @@ export const ProfitPrevious$outboundSchema: z.ZodType< currency: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ProfitPrevious$ { - /** @deprecated use `ProfitPrevious$inboundSchema` instead. */ - export const inboundSchema = ProfitPrevious$inboundSchema; - /** @deprecated use `ProfitPrevious$outboundSchema` instead. */ - export const outboundSchema = ProfitPrevious$outboundSchema; - /** @deprecated use `ProfitPrevious$Outbound` instead. */ - export type Outbound = ProfitPrevious$Outbound; -} - export function profitPreviousToJSON(profitPrevious: ProfitPrevious): string { return JSON.stringify(ProfitPrevious$outboundSchema.parse(profitPrevious)); } - export function profitPreviousFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/profitresultitem.ts b/src/models/profitresultitem.ts index 6f1a13d..8a2d65c 100644 --- a/src/models/profitresultitem.ts +++ b/src/models/profitresultitem.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../lib/schemas.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; @@ -46,7 +46,6 @@ export const ProfitResultItem$inboundSchema: z.ZodType< current: ProfitCurrent$inboundSchema, previous: ProfitPrevious$inboundSchema, }); - /** @internal */ export type ProfitResultItem$Outbound = { date: string; @@ -67,19 +66,6 @@ export const ProfitResultItem$outboundSchema: z.ZodType< previous: ProfitPrevious$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ProfitResultItem$ { - /** @deprecated use `ProfitResultItem$inboundSchema` instead. */ - export const inboundSchema = ProfitResultItem$inboundSchema; - /** @deprecated use `ProfitResultItem$outboundSchema` instead. */ - export const outboundSchema = ProfitResultItem$outboundSchema; - /** @deprecated use `ProfitResultItem$Outbound` instead. */ - export type Outbound = ProfitResultItem$Outbound; -} - export function profitResultItemToJSON( profitResultItem: ProfitResultItem, ): string { @@ -87,7 +73,6 @@ export function profitResultItemToJSON( ProfitResultItem$outboundSchema.parse(profitResultItem), ); } - export function profitResultItemFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/profitsummary.ts b/src/models/profitsummary.ts index 3f4ce69..5c1a203 100644 --- a/src/models/profitsummary.ts +++ b/src/models/profitsummary.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../lib/schemas.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; @@ -32,7 +32,6 @@ export const ProfitSummary$inboundSchema: z.ZodType< prevTotal: z.number(), currency: z.string(), }); - /** @internal */ export type ProfitSummary$Outbound = { currentTotal: number; @@ -51,23 +50,9 @@ export const ProfitSummary$outboundSchema: z.ZodType< currency: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ProfitSummary$ { - /** @deprecated use `ProfitSummary$inboundSchema` instead. */ - export const inboundSchema = ProfitSummary$inboundSchema; - /** @deprecated use `ProfitSummary$outboundSchema` instead. */ - export const outboundSchema = ProfitSummary$outboundSchema; - /** @deprecated use `ProfitSummary$Outbound` instead. */ - export type Outbound = ProfitSummary$Outbound; -} - export function profitSummaryToJSON(profitSummary: ProfitSummary): string { return JSON.stringify(ProfitSummary$outboundSchema.parse(profitSummary)); } - export function profitSummaryFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/revenuecurrent.ts b/src/models/revenuecurrent.ts index 9e9bdf8..c50fbdb 100644 --- a/src/models/revenuecurrent.ts +++ b/src/models/revenuecurrent.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../lib/schemas.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; @@ -32,7 +32,6 @@ export const RevenueCurrent$inboundSchema: z.ZodType< value: z.number(), currency: z.string(), }); - /** @internal */ export type RevenueCurrent$Outbound = { date: string; @@ -51,23 +50,9 @@ export const RevenueCurrent$outboundSchema: z.ZodType< currency: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RevenueCurrent$ { - /** @deprecated use `RevenueCurrent$inboundSchema` instead. */ - export const inboundSchema = RevenueCurrent$inboundSchema; - /** @deprecated use `RevenueCurrent$outboundSchema` instead. */ - export const outboundSchema = RevenueCurrent$outboundSchema; - /** @deprecated use `RevenueCurrent$Outbound` instead. */ - export type Outbound = RevenueCurrent$Outbound; -} - export function revenueCurrentToJSON(revenueCurrent: RevenueCurrent): string { return JSON.stringify(RevenueCurrent$outboundSchema.parse(revenueCurrent)); } - export function revenueCurrentFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/revenuemeta.ts b/src/models/revenuemeta.ts index f04c3dd..d3244ff 100644 --- a/src/models/revenuemeta.ts +++ b/src/models/revenuemeta.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../lib/schemas.js"; import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; @@ -34,23 +34,11 @@ export type RevenueMeta = { export const RevenueMetaType$inboundSchema: z.ZodNativeEnum< typeof RevenueMetaType > = z.nativeEnum(RevenueMetaType); - /** @internal */ export const RevenueMetaType$outboundSchema: z.ZodNativeEnum< typeof RevenueMetaType > = RevenueMetaType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RevenueMetaType$ { - /** @deprecated use `RevenueMetaType$inboundSchema` instead. */ - export const inboundSchema = RevenueMetaType$inboundSchema; - /** @deprecated use `RevenueMetaType$outboundSchema` instead. */ - export const outboundSchema = RevenueMetaType$outboundSchema; -} - /** @internal */ export const RevenueMeta$inboundSchema: z.ZodType< RevenueMeta, @@ -60,7 +48,6 @@ export const RevenueMeta$inboundSchema: z.ZodType< type: RevenueMetaType$inboundSchema, currency: z.string(), }); - /** @internal */ export type RevenueMeta$Outbound = { type: string; @@ -77,23 +64,9 @@ export const RevenueMeta$outboundSchema: z.ZodType< currency: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RevenueMeta$ { - /** @deprecated use `RevenueMeta$inboundSchema` instead. */ - export const inboundSchema = RevenueMeta$inboundSchema; - /** @deprecated use `RevenueMeta$outboundSchema` instead. */ - export const outboundSchema = RevenueMeta$outboundSchema; - /** @deprecated use `RevenueMeta$Outbound` instead. */ - export type Outbound = RevenueMeta$Outbound; -} - export function revenueMetaToJSON(revenueMeta: RevenueMeta): string { return JSON.stringify(RevenueMeta$outboundSchema.parse(revenueMeta)); } - export function revenueMetaFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/revenuepercentage.ts b/src/models/revenuepercentage.ts index c398f3d..1c94fd0 100644 --- a/src/models/revenuepercentage.ts +++ b/src/models/revenuepercentage.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../lib/schemas.js"; import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; @@ -37,23 +37,11 @@ export type RevenuePercentage = { export const RevenuePercentageStatus$inboundSchema: z.ZodNativeEnum< typeof RevenuePercentageStatus > = z.nativeEnum(RevenuePercentageStatus); - /** @internal */ export const RevenuePercentageStatus$outboundSchema: z.ZodNativeEnum< typeof RevenuePercentageStatus > = RevenuePercentageStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RevenuePercentageStatus$ { - /** @deprecated use `RevenuePercentageStatus$inboundSchema` instead. */ - export const inboundSchema = RevenuePercentageStatus$inboundSchema; - /** @deprecated use `RevenuePercentageStatus$outboundSchema` instead. */ - export const outboundSchema = RevenuePercentageStatus$outboundSchema; -} - /** @internal */ export const RevenuePercentage$inboundSchema: z.ZodType< RevenuePercentage, @@ -63,7 +51,6 @@ export const RevenuePercentage$inboundSchema: z.ZodType< value: z.number(), status: RevenuePercentageStatus$inboundSchema, }); - /** @internal */ export type RevenuePercentage$Outbound = { value: number; @@ -80,19 +67,6 @@ export const RevenuePercentage$outboundSchema: z.ZodType< status: RevenuePercentageStatus$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RevenuePercentage$ { - /** @deprecated use `RevenuePercentage$inboundSchema` instead. */ - export const inboundSchema = RevenuePercentage$inboundSchema; - /** @deprecated use `RevenuePercentage$outboundSchema` instead. */ - export const outboundSchema = RevenuePercentage$outboundSchema; - /** @deprecated use `RevenuePercentage$Outbound` instead. */ - export type Outbound = RevenuePercentage$Outbound; -} - export function revenuePercentageToJSON( revenuePercentage: RevenuePercentage, ): string { @@ -100,7 +74,6 @@ export function revenuePercentageToJSON( RevenuePercentage$outboundSchema.parse(revenuePercentage), ); } - export function revenuePercentageFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/revenueprevious.ts b/src/models/revenueprevious.ts index e7853c0..e83a48e 100644 --- a/src/models/revenueprevious.ts +++ b/src/models/revenueprevious.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../lib/schemas.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; @@ -32,7 +32,6 @@ export const RevenuePrevious$inboundSchema: z.ZodType< value: z.number(), currency: z.string(), }); - /** @internal */ export type RevenuePrevious$Outbound = { date: string; @@ -51,25 +50,11 @@ export const RevenuePrevious$outboundSchema: z.ZodType< currency: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RevenuePrevious$ { - /** @deprecated use `RevenuePrevious$inboundSchema` instead. */ - export const inboundSchema = RevenuePrevious$inboundSchema; - /** @deprecated use `RevenuePrevious$outboundSchema` instead. */ - export const outboundSchema = RevenuePrevious$outboundSchema; - /** @deprecated use `RevenuePrevious$Outbound` instead. */ - export type Outbound = RevenuePrevious$Outbound; -} - export function revenuePreviousToJSON( revenuePrevious: RevenuePrevious, ): string { return JSON.stringify(RevenuePrevious$outboundSchema.parse(revenuePrevious)); } - export function revenuePreviousFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/revenueresultitem.ts b/src/models/revenueresultitem.ts index 2ea5287..9402885 100644 --- a/src/models/revenueresultitem.ts +++ b/src/models/revenueresultitem.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../lib/schemas.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; @@ -46,7 +46,6 @@ export const RevenueResultItem$inboundSchema: z.ZodType< current: RevenueCurrent$inboundSchema, previous: RevenuePrevious$inboundSchema, }); - /** @internal */ export type RevenueResultItem$Outbound = { date: string; @@ -67,19 +66,6 @@ export const RevenueResultItem$outboundSchema: z.ZodType< previous: RevenuePrevious$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RevenueResultItem$ { - /** @deprecated use `RevenueResultItem$inboundSchema` instead. */ - export const inboundSchema = RevenueResultItem$inboundSchema; - /** @deprecated use `RevenueResultItem$outboundSchema` instead. */ - export const outboundSchema = RevenueResultItem$outboundSchema; - /** @deprecated use `RevenueResultItem$Outbound` instead. */ - export type Outbound = RevenueResultItem$Outbound; -} - export function revenueResultItemToJSON( revenueResultItem: RevenueResultItem, ): string { @@ -87,7 +73,6 @@ export function revenueResultItemToJSON( RevenueResultItem$outboundSchema.parse(revenueResultItem), ); } - export function revenueResultItemFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/revenuesummary.ts b/src/models/revenuesummary.ts index 5464232..2a3e2a1 100644 --- a/src/models/revenuesummary.ts +++ b/src/models/revenuesummary.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../lib/schemas.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; @@ -32,7 +32,6 @@ export const RevenueSummary$inboundSchema: z.ZodType< prevTotal: z.number(), currency: z.string(), }); - /** @internal */ export type RevenueSummary$Outbound = { currentTotal: number; @@ -51,23 +50,9 @@ export const RevenueSummary$outboundSchema: z.ZodType< currency: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RevenueSummary$ { - /** @deprecated use `RevenueSummary$inboundSchema` instead. */ - export const inboundSchema = RevenueSummary$inboundSchema; - /** @deprecated use `RevenueSummary$outboundSchema` instead. */ - export const outboundSchema = RevenueSummary$outboundSchema; - /** @deprecated use `RevenueSummary$Outbound` instead. */ - export type Outbound = RevenueSummary$Outbound; -} - export function revenueSummaryToJSON(revenueSummary: RevenueSummary): string { return JSON.stringify(RevenueSummary$outboundSchema.parse(revenueSummary)); } - export function revenueSummaryFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/security.ts b/src/models/security.ts index 65040cf..606788e 100644 --- a/src/models/security.ts +++ b/src/models/security.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../lib/schemas.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; @@ -21,7 +21,6 @@ export const Security$inboundSchema: z.ZodType< oauth2: z.string().optional(), token: z.string().optional(), }); - /** @internal */ export type Security$Outbound = { oauth2?: string | undefined; @@ -38,23 +37,9 @@ export const Security$outboundSchema: z.ZodType< token: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Security$ { - /** @deprecated use `Security$inboundSchema` instead. */ - export const inboundSchema = Security$inboundSchema; - /** @deprecated use `Security$outboundSchema` instead. */ - export const outboundSchema = Security$outboundSchema; - /** @deprecated use `Security$Outbound` instead. */ - export type Outbound = Security$Outbound; -} - export function securityToJSON(security: Security): string { return JSON.stringify(Security$outboundSchema.parse(security)); } - export function securityFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/spendingresultarray.ts b/src/models/spendingresultarray.ts index ae22fa6..ca7b7b3 100644 --- a/src/models/spendingresultarray.ts +++ b/src/models/spendingresultarray.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../lib/schemas.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; @@ -47,7 +47,6 @@ export const SpendingResultArray$inboundSchema: z.ZodType< color: z.string(), percentage: z.number(), }); - /** @internal */ export type SpendingResultArray$Outbound = { name: string; @@ -72,19 +71,6 @@ export const SpendingResultArray$outboundSchema: z.ZodType< percentage: z.number(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SpendingResultArray$ { - /** @deprecated use `SpendingResultArray$inboundSchema` instead. */ - export const inboundSchema = SpendingResultArray$inboundSchema; - /** @deprecated use `SpendingResultArray$outboundSchema` instead. */ - export const outboundSchema = SpendingResultArray$outboundSchema; - /** @deprecated use `SpendingResultArray$Outbound` instead. */ - export type Outbound = SpendingResultArray$Outbound; -} - export function spendingResultArrayToJSON( spendingResultArray: SpendingResultArray, ): string { @@ -92,7 +78,6 @@ export function spendingResultArrayToJSON( SpendingResultArray$outboundSchema.parse(spendingResultArray), ); } - export function spendingResultArrayFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/tagresponse.ts b/src/models/tagresponse.ts index b0e7d9a..8441371 100644 --- a/src/models/tagresponse.ts +++ b/src/models/tagresponse.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../lib/schemas.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; @@ -27,7 +27,6 @@ export const TagResponse$inboundSchema: z.ZodType< id: z.string(), name: z.string(), }); - /** @internal */ export type TagResponse$Outbound = { id: string; @@ -44,23 +43,9 @@ export const TagResponse$outboundSchema: z.ZodType< name: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TagResponse$ { - /** @deprecated use `TagResponse$inboundSchema` instead. */ - export const inboundSchema = TagResponse$inboundSchema; - /** @deprecated use `TagResponse$outboundSchema` instead. */ - export const outboundSchema = TagResponse$outboundSchema; - /** @deprecated use `TagResponse$Outbound` instead. */ - export type Outbound = TagResponse$Outbound; -} - export function tagResponseToJSON(tagResponse: TagResponse): string { return JSON.stringify(TagResponse$outboundSchema.parse(tagResponse)); } - export function tagResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/tagsresponse.ts b/src/models/tagsresponse.ts index bf3c538..effc736 100644 --- a/src/models/tagsresponse.ts +++ b/src/models/tagsresponse.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../lib/schemas.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; @@ -28,7 +28,6 @@ export const TagsResponse$inboundSchema: z.ZodType< > = z.object({ data: z.array(TagResponse$inboundSchema), }); - /** @internal */ export type TagsResponse$Outbound = { data: Array; @@ -43,23 +42,9 @@ export const TagsResponse$outboundSchema: z.ZodType< data: z.array(TagResponse$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TagsResponse$ { - /** @deprecated use `TagsResponse$inboundSchema` instead. */ - export const inboundSchema = TagsResponse$inboundSchema; - /** @deprecated use `TagsResponse$outboundSchema` instead. */ - export const outboundSchema = TagsResponse$outboundSchema; - /** @deprecated use `TagsResponse$Outbound` instead. */ - export type Outbound = TagsResponse$Outbound; -} - export function tagsResponseToJSON(tagsResponse: TagsResponse): string { return JSON.stringify(TagsResponse$outboundSchema.parse(tagsResponse)); } - export function tagsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/trackerprojectresponse.ts b/src/models/trackerprojectresponse.ts index a39b95b..2a9e05f 100644 --- a/src/models/trackerprojectresponse.ts +++ b/src/models/trackerprojectresponse.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../lib/schemas.js"; import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; @@ -121,23 +121,11 @@ export type TrackerProjectResponse = { export const TrackerProjectResponseStatus$inboundSchema: z.ZodNativeEnum< typeof TrackerProjectResponseStatus > = z.nativeEnum(TrackerProjectResponseStatus); - /** @internal */ export const TrackerProjectResponseStatus$outboundSchema: z.ZodNativeEnum< typeof TrackerProjectResponseStatus > = TrackerProjectResponseStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TrackerProjectResponseStatus$ { - /** @deprecated use `TrackerProjectResponseStatus$inboundSchema` instead. */ - export const inboundSchema = TrackerProjectResponseStatus$inboundSchema; - /** @deprecated use `TrackerProjectResponseStatus$outboundSchema` instead. */ - export const outboundSchema = TrackerProjectResponseStatus$outboundSchema; -} - /** @internal */ export const Customer$inboundSchema: z.ZodType< Customer, @@ -148,7 +136,6 @@ export const Customer$inboundSchema: z.ZodType< name: z.string(), website: z.string(), }); - /** @internal */ export type Customer$Outbound = { id: string; @@ -167,23 +154,9 @@ export const Customer$outboundSchema: z.ZodType< website: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Customer$ { - /** @deprecated use `Customer$inboundSchema` instead. */ - export const inboundSchema = Customer$inboundSchema; - /** @deprecated use `Customer$outboundSchema` instead. */ - export const outboundSchema = Customer$outboundSchema; - /** @deprecated use `Customer$Outbound` instead. */ - export type Outbound = Customer$Outbound; -} - export function customerToJSON(customer: Customer): string { return JSON.stringify(Customer$outboundSchema.parse(customer)); } - export function customerFromJSON( jsonString: string, ): SafeParseResult { @@ -203,7 +176,6 @@ export const TrackerProjectResponseTag$inboundSchema: z.ZodType< id: z.string(), name: z.string(), }); - /** @internal */ export type TrackerProjectResponseTag$Outbound = { id: string; @@ -220,19 +192,6 @@ export const TrackerProjectResponseTag$outboundSchema: z.ZodType< name: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TrackerProjectResponseTag$ { - /** @deprecated use `TrackerProjectResponseTag$inboundSchema` instead. */ - export const inboundSchema = TrackerProjectResponseTag$inboundSchema; - /** @deprecated use `TrackerProjectResponseTag$outboundSchema` instead. */ - export const outboundSchema = TrackerProjectResponseTag$outboundSchema; - /** @deprecated use `TrackerProjectResponseTag$Outbound` instead. */ - export type Outbound = TrackerProjectResponseTag$Outbound; -} - export function trackerProjectResponseTagToJSON( trackerProjectResponseTag: TrackerProjectResponseTag, ): string { @@ -240,7 +199,6 @@ export function trackerProjectResponseTagToJSON( TrackerProjectResponseTag$outboundSchema.parse(trackerProjectResponseTag), ); } - export function trackerProjectResponseTagFromJSON( jsonString: string, ): SafeParseResult { @@ -258,7 +216,6 @@ export const User$inboundSchema: z.ZodType = z fullName: z.string(), avatarUrl: z.string(), }); - /** @internal */ export type User$Outbound = { id: string; @@ -274,23 +231,9 @@ export const User$outboundSchema: z.ZodType = avatarUrl: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace User$ { - /** @deprecated use `User$inboundSchema` instead. */ - export const inboundSchema = User$inboundSchema; - /** @deprecated use `User$outboundSchema` instead. */ - export const outboundSchema = User$outboundSchema; - /** @deprecated use `User$Outbound` instead. */ - export type Outbound = User$Outbound; -} - export function userToJSON(user: User): string { return JSON.stringify(User$outboundSchema.parse(user)); } - export function userFromJSON( jsonString: string, ): SafeParseResult { @@ -320,7 +263,6 @@ export const TrackerProjectResponse$inboundSchema: z.ZodType< tags: z.array(z.lazy(() => TrackerProjectResponseTag$inboundSchema)), users: z.nullable(z.array(z.lazy(() => User$inboundSchema))), }); - /** @internal */ export type TrackerProjectResponse$Outbound = { id: string; @@ -357,19 +299,6 @@ export const TrackerProjectResponse$outboundSchema: z.ZodType< users: z.nullable(z.array(z.lazy(() => User$outboundSchema))), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TrackerProjectResponse$ { - /** @deprecated use `TrackerProjectResponse$inboundSchema` instead. */ - export const inboundSchema = TrackerProjectResponse$inboundSchema; - /** @deprecated use `TrackerProjectResponse$outboundSchema` instead. */ - export const outboundSchema = TrackerProjectResponse$outboundSchema; - /** @deprecated use `TrackerProjectResponse$Outbound` instead. */ - export type Outbound = TrackerProjectResponse$Outbound; -} - export function trackerProjectResponseToJSON( trackerProjectResponse: TrackerProjectResponse, ): string { @@ -377,7 +306,6 @@ export function trackerProjectResponseToJSON( TrackerProjectResponse$outboundSchema.parse(trackerProjectResponse), ); } - export function trackerProjectResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/trackerprojectsresponse.ts b/src/models/trackerprojectsresponse.ts index b182818..71c757c 100644 --- a/src/models/trackerprojectsresponse.ts +++ b/src/models/trackerprojectsresponse.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../lib/schemas.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; @@ -47,7 +47,6 @@ export const TrackerProjectsResponseMeta$inboundSchema: z.ZodType< hasNextPage: z.boolean(), hasPreviousPage: z.boolean(), }); - /** @internal */ export type TrackerProjectsResponseMeta$Outbound = { hasNextPage: boolean; @@ -64,19 +63,6 @@ export const TrackerProjectsResponseMeta$outboundSchema: z.ZodType< hasPreviousPage: z.boolean(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TrackerProjectsResponseMeta$ { - /** @deprecated use `TrackerProjectsResponseMeta$inboundSchema` instead. */ - export const inboundSchema = TrackerProjectsResponseMeta$inboundSchema; - /** @deprecated use `TrackerProjectsResponseMeta$outboundSchema` instead. */ - export const outboundSchema = TrackerProjectsResponseMeta$outboundSchema; - /** @deprecated use `TrackerProjectsResponseMeta$Outbound` instead. */ - export type Outbound = TrackerProjectsResponseMeta$Outbound; -} - export function trackerProjectsResponseMetaToJSON( trackerProjectsResponseMeta: TrackerProjectsResponseMeta, ): string { @@ -86,7 +72,6 @@ export function trackerProjectsResponseMetaToJSON( ), ); } - export function trackerProjectsResponseMetaFromJSON( jsonString: string, ): SafeParseResult { @@ -106,7 +91,6 @@ export const TrackerProjectsResponse$inboundSchema: z.ZodType< meta: z.lazy(() => TrackerProjectsResponseMeta$inboundSchema), data: z.array(TrackerProjectResponse$inboundSchema), }); - /** @internal */ export type TrackerProjectsResponse$Outbound = { meta: TrackerProjectsResponseMeta$Outbound; @@ -123,19 +107,6 @@ export const TrackerProjectsResponse$outboundSchema: z.ZodType< data: z.array(TrackerProjectResponse$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TrackerProjectsResponse$ { - /** @deprecated use `TrackerProjectsResponse$inboundSchema` instead. */ - export const inboundSchema = TrackerProjectsResponse$inboundSchema; - /** @deprecated use `TrackerProjectsResponse$outboundSchema` instead. */ - export const outboundSchema = TrackerProjectsResponse$outboundSchema; - /** @deprecated use `TrackerProjectsResponse$Outbound` instead. */ - export type Outbound = TrackerProjectsResponse$Outbound; -} - export function trackerProjectsResponseToJSON( trackerProjectsResponse: TrackerProjectsResponse, ): string { @@ -143,7 +114,6 @@ export function trackerProjectsResponseToJSON( TrackerProjectsResponse$outboundSchema.parse(trackerProjectsResponse), ); } - export function trackerProjectsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/transactionresponse.ts b/src/models/transactionresponse.ts index 234ce5f..f39cf29 100644 --- a/src/models/transactionresponse.ts +++ b/src/models/transactionresponse.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../lib/schemas.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; @@ -207,7 +207,6 @@ export const Category$inboundSchema: z.ZodType< taxType: z.nullable(z.string()), slug: z.string(), }); - /** @internal */ export type Category$Outbound = { id: string; @@ -232,23 +231,9 @@ export const Category$outboundSchema: z.ZodType< slug: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Category$ { - /** @deprecated use `Category$inboundSchema` instead. */ - export const inboundSchema = Category$inboundSchema; - /** @deprecated use `Category$outboundSchema` instead. */ - export const outboundSchema = Category$outboundSchema; - /** @deprecated use `Category$Outbound` instead. */ - export type Outbound = Category$Outbound; -} - export function categoryToJSON(category: Category): string { return JSON.stringify(Category$outboundSchema.parse(category)); } - export function categoryFromJSON( jsonString: string, ): SafeParseResult { @@ -269,7 +254,6 @@ export const Connection$inboundSchema: z.ZodType< name: z.string(), logoUrl: z.nullable(z.string()), }); - /** @internal */ export type Connection$Outbound = { id: string; @@ -288,23 +272,9 @@ export const Connection$outboundSchema: z.ZodType< logoUrl: z.nullable(z.string()), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Connection$ { - /** @deprecated use `Connection$inboundSchema` instead. */ - export const inboundSchema = Connection$inboundSchema; - /** @deprecated use `Connection$outboundSchema` instead. */ - export const outboundSchema = Connection$outboundSchema; - /** @deprecated use `Connection$Outbound` instead. */ - export type Outbound = Connection$Outbound; -} - export function connectionToJSON(connection: Connection): string { return JSON.stringify(Connection$outboundSchema.parse(connection)); } - export function connectionFromJSON( jsonString: string, ): SafeParseResult { @@ -323,7 +293,6 @@ export const Account$inboundSchema: z.ZodType = currency: z.string(), connection: z.lazy(() => Connection$inboundSchema), }); - /** @internal */ export type Account$Outbound = { id: string; @@ -344,23 +313,9 @@ export const Account$outboundSchema: z.ZodType< connection: z.lazy(() => Connection$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Account$ { - /** @deprecated use `Account$inboundSchema` instead. */ - export const inboundSchema = Account$inboundSchema; - /** @deprecated use `Account$outboundSchema` instead. */ - export const outboundSchema = Account$outboundSchema; - /** @deprecated use `Account$Outbound` instead. */ - export type Outbound = Account$Outbound; -} - export function accountToJSON(account: Account): string { return JSON.stringify(Account$outboundSchema.parse(account)); } - export function accountFromJSON( jsonString: string, ): SafeParseResult { @@ -380,7 +335,6 @@ export const TransactionResponseTag$inboundSchema: z.ZodType< id: z.string(), name: z.nullable(z.string()), }); - /** @internal */ export type TransactionResponseTag$Outbound = { id: string; @@ -397,19 +351,6 @@ export const TransactionResponseTag$outboundSchema: z.ZodType< name: z.nullable(z.string()), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TransactionResponseTag$ { - /** @deprecated use `TransactionResponseTag$inboundSchema` instead. */ - export const inboundSchema = TransactionResponseTag$inboundSchema; - /** @deprecated use `TransactionResponseTag$outboundSchema` instead. */ - export const outboundSchema = TransactionResponseTag$outboundSchema; - /** @deprecated use `TransactionResponseTag$Outbound` instead. */ - export type Outbound = TransactionResponseTag$Outbound; -} - export function transactionResponseTagToJSON( transactionResponseTag: TransactionResponseTag, ): string { @@ -417,7 +358,6 @@ export function transactionResponseTagToJSON( TransactionResponseTag$outboundSchema.parse(transactionResponseTag), ); } - export function transactionResponseTagFromJSON( jsonString: string, ): SafeParseResult { @@ -440,7 +380,6 @@ export const Attachment$inboundSchema: z.ZodType< type: z.string(), filename: z.nullable(z.string()), }); - /** @internal */ export type Attachment$Outbound = { id: string; @@ -463,23 +402,9 @@ export const Attachment$outboundSchema: z.ZodType< filename: z.nullable(z.string()), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Attachment$ { - /** @deprecated use `Attachment$inboundSchema` instead. */ - export const inboundSchema = Attachment$inboundSchema; - /** @deprecated use `Attachment$outboundSchema` instead. */ - export const outboundSchema = Attachment$outboundSchema; - /** @deprecated use `Attachment$Outbound` instead. */ - export type Outbound = Attachment$Outbound; -} - export function attachmentToJSON(attachment: Attachment): string { return JSON.stringify(Attachment$outboundSchema.parse(attachment)); } - export function attachmentFromJSON( jsonString: string, ): SafeParseResult { @@ -517,7 +442,6 @@ export const TransactionResponse$inboundSchema: z.ZodType< tags: z.nullable(z.array(z.lazy(() => TransactionResponseTag$inboundSchema))), attachments: z.nullable(z.array(z.lazy(() => Attachment$inboundSchema))), }); - /** @internal */ export type TransactionResponse$Outbound = { id: string; @@ -572,19 +496,6 @@ export const TransactionResponse$outboundSchema: z.ZodType< attachments: z.nullable(z.array(z.lazy(() => Attachment$outboundSchema))), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TransactionResponse$ { - /** @deprecated use `TransactionResponse$inboundSchema` instead. */ - export const inboundSchema = TransactionResponse$inboundSchema; - /** @deprecated use `TransactionResponse$outboundSchema` instead. */ - export const outboundSchema = TransactionResponse$outboundSchema; - /** @deprecated use `TransactionResponse$Outbound` instead. */ - export type Outbound = TransactionResponse$Outbound; -} - export function transactionResponseToJSON( transactionResponse: TransactionResponse, ): string { @@ -592,7 +503,6 @@ export function transactionResponseToJSON( TransactionResponse$outboundSchema.parse(transactionResponse), ); } - export function transactionResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/updateallnotificationsstatusresponseschema.ts b/src/models/updateallnotificationsstatusresponseschema.ts index 347eeaf..fefdde6 100644 --- a/src/models/updateallnotificationsstatusresponseschema.ts +++ b/src/models/updateallnotificationsstatusresponseschema.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../lib/schemas.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; @@ -26,7 +26,6 @@ export const UpdateAllNotificationsStatusResponseSchema$inboundSchema: z.object({ data: z.array(NotificationSchema$inboundSchema), }); - /** @internal */ export type UpdateAllNotificationsStatusResponseSchema$Outbound = { data: Array; @@ -42,21 +41,6 @@ export const UpdateAllNotificationsStatusResponseSchema$outboundSchema: data: z.array(NotificationSchema$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateAllNotificationsStatusResponseSchema$ { - /** @deprecated use `UpdateAllNotificationsStatusResponseSchema$inboundSchema` instead. */ - export const inboundSchema = - UpdateAllNotificationsStatusResponseSchema$inboundSchema; - /** @deprecated use `UpdateAllNotificationsStatusResponseSchema$outboundSchema` instead. */ - export const outboundSchema = - UpdateAllNotificationsStatusResponseSchema$outboundSchema; - /** @deprecated use `UpdateAllNotificationsStatusResponseSchema$Outbound` instead. */ - export type Outbound = UpdateAllNotificationsStatusResponseSchema$Outbound; -} - export function updateAllNotificationsStatusResponseSchemaToJSON( updateAllNotificationsStatusResponseSchema: UpdateAllNotificationsStatusResponseSchema, @@ -67,7 +51,6 @@ export function updateAllNotificationsStatusResponseSchemaToJSON( ), ); } - export function updateAllNotificationsStatusResponseSchemaFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/updateallnotificationsstatusschema.ts b/src/models/updateallnotificationsstatusschema.ts index 27cc7e1..20c1218 100644 --- a/src/models/updateallnotificationsstatusschema.ts +++ b/src/models/updateallnotificationsstatusschema.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../lib/schemas.js"; import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; @@ -34,25 +34,11 @@ export type UpdateAllNotificationsStatusSchema = { export const UpdateAllNotificationsStatusSchemaStatus$inboundSchema: z.ZodNativeEnum = z .nativeEnum(UpdateAllNotificationsStatusSchemaStatus); - /** @internal */ export const UpdateAllNotificationsStatusSchemaStatus$outboundSchema: z.ZodNativeEnum = UpdateAllNotificationsStatusSchemaStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateAllNotificationsStatusSchemaStatus$ { - /** @deprecated use `UpdateAllNotificationsStatusSchemaStatus$inboundSchema` instead. */ - export const inboundSchema = - UpdateAllNotificationsStatusSchemaStatus$inboundSchema; - /** @deprecated use `UpdateAllNotificationsStatusSchemaStatus$outboundSchema` instead. */ - export const outboundSchema = - UpdateAllNotificationsStatusSchemaStatus$outboundSchema; -} - /** @internal */ export const UpdateAllNotificationsStatusSchema$inboundSchema: z.ZodType< UpdateAllNotificationsStatusSchema, @@ -61,7 +47,6 @@ export const UpdateAllNotificationsStatusSchema$inboundSchema: z.ZodType< > = z.object({ status: UpdateAllNotificationsStatusSchemaStatus$inboundSchema, }); - /** @internal */ export type UpdateAllNotificationsStatusSchema$Outbound = { status: string; @@ -76,20 +61,6 @@ export const UpdateAllNotificationsStatusSchema$outboundSchema: z.ZodType< status: UpdateAllNotificationsStatusSchemaStatus$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateAllNotificationsStatusSchema$ { - /** @deprecated use `UpdateAllNotificationsStatusSchema$inboundSchema` instead. */ - export const inboundSchema = UpdateAllNotificationsStatusSchema$inboundSchema; - /** @deprecated use `UpdateAllNotificationsStatusSchema$outboundSchema` instead. */ - export const outboundSchema = - UpdateAllNotificationsStatusSchema$outboundSchema; - /** @deprecated use `UpdateAllNotificationsStatusSchema$Outbound` instead. */ - export type Outbound = UpdateAllNotificationsStatusSchema$Outbound; -} - export function updateAllNotificationsStatusSchemaToJSON( updateAllNotificationsStatusSchema: UpdateAllNotificationsStatusSchema, ): string { @@ -99,7 +70,6 @@ export function updateAllNotificationsStatusSchemaToJSON( ), ); } - export function updateAllNotificationsStatusSchemaFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/files.ts b/src/sdk/files.ts new file mode 100644 index 0000000..c519bab --- /dev/null +++ b/src/sdk/files.ts @@ -0,0 +1,63 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { filesDownloadFile } from "../funcs/filesDownloadFile.js"; +import { filesDownloadInvoice } from "../funcs/filesDownloadInvoice.js"; +import { filesProxy } from "../funcs/filesProxy.js"; +import { ClientSDK, RequestOptions } from "../lib/sdks.js"; +import * as operations from "../models/operations/index.js"; +import { unwrapAsync } from "../types/fp.js"; + +export class Files extends ClientSDK { + /** + * Proxy file from storage + * + * @remarks + * Proxies a file from storage. Requires team file key (fk) query parameter for access. + */ + async proxy( + request: operations.ProxyFileRequest, + options?: RequestOptions, + ): Promise> { + return unwrapAsync(filesProxy( + this, + request, + options, + )); + } + + /** + * Download file from vault + * + * @remarks + * Downloads a file from the vault storage bucket. Requires team file key (fk) query parameter for access. + */ + async downloadFile( + request: operations.DownloadFileRequest, + options?: RequestOptions, + ): Promise> { + return unwrapAsync(filesDownloadFile( + this, + request, + options, + )); + } + + /** + * Download invoice PDF + * + * @remarks + * Downloads an invoice as a PDF. Can be accessed with an invoice ID (requires team file key via fk query parameter) or invoice token (public access). + */ + async downloadInvoice( + request: operations.DownloadInvoiceRequest, + options?: RequestOptions, + ): Promise> { + return unwrapAsync(filesDownloadInvoice( + this, + request, + options, + )); + } +} diff --git a/src/sdk/integrations.ts b/src/sdk/integrations.ts new file mode 100644 index 0000000..cf101af --- /dev/null +++ b/src/sdk/integrations.ts @@ -0,0 +1,245 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { integrationsFortnoxOAuthCallback } from "../funcs/integrationsFortnoxOAuthCallback.js"; +import { integrationsGetFortnoxInstallUrl } from "../funcs/integrationsGetFortnoxInstallUrl.js"; +import { integrationsGetGmailInstallUrl } from "../funcs/integrationsGetGmailInstallUrl.js"; +import { integrationsGetOutlookInstallUrl } from "../funcs/integrationsGetOutlookInstallUrl.js"; +import { integrationsGetQuickBooksInstallUrl } from "../funcs/integrationsGetQuickBooksInstallUrl.js"; +import { integrationsGetSlackInstallUrl } from "../funcs/integrationsGetSlackInstallUrl.js"; +import { integrationsGetXeroInstallUrl } from "../funcs/integrationsGetXeroInstallUrl.js"; +import { integrationsGmailOAuthCallback } from "../funcs/integrationsGmailOAuthCallback.js"; +import { integrationsOutlookOAuthCallback } from "../funcs/integrationsOutlookOAuthCallback.js"; +import { integrationsQuickBooksOAuthCallback } from "../funcs/integrationsQuickBooksOAuthCallback.js"; +import { integrationsSlackInteractions } from "../funcs/integrationsSlackInteractions.js"; +import { integrationsSlackOAuthCallback } from "../funcs/integrationsSlackOAuthCallback.js"; +import { integrationsSlackWebhook } from "../funcs/integrationsSlackWebhook.js"; +import { integrationsXeroOAuthCallback } from "../funcs/integrationsXeroOAuthCallback.js"; +import { ClientSDK, RequestOptions } from "../lib/sdks.js"; +import * as operations from "../models/operations/index.js"; +import { unwrapAsync } from "../types/fp.js"; + +export class Integrations extends ClientSDK { + /** + * Slack OAuth callback + * + * @remarks + * Handles OAuth callback from Slack after user authorization. Exchanges authorization code for access token and creates app integration. + */ + async slackOAuthCallback( + request: operations.SlackOAuthCallbackRequest, + options?: RequestOptions, + ): Promise { + return unwrapAsync(integrationsSlackOAuthCallback( + this, + request, + options, + )); + } + + /** + * Get Slack install URL + * + * @remarks + * Generates OAuth install URL for Slack integration. Requires authentication. + */ + async getSlackInstallUrl( + options?: RequestOptions, + ): Promise { + return unwrapAsync(integrationsGetSlackInstallUrl( + this, + options, + )); + } + + /** + * Slack webhook handler + * + * @remarks + * Handles incoming webhook events from Slack. Verifies request signature and processes events. + */ + async slackWebhook( + options?: RequestOptions, + ): Promise { + return unwrapAsync(integrationsSlackWebhook( + this, + options, + )); + } + + /** + * Slack interactions handler + * + * @remarks + * Handles interactive component actions from Slack (button clicks, etc.) + */ + async slackInteractions( + options?: RequestOptions, + ): Promise { + return unwrapAsync(integrationsSlackInteractions( + this, + options, + )); + } + + /** + * Gmail OAuth callback + * + * @remarks + * Handles OAuth callback from Google after user authorization. Exchanges authorization code for access token and creates inbox account. + */ + async gmailOAuthCallback( + request: operations.GmailOAuthCallbackRequest, + options?: RequestOptions, + ): Promise { + return unwrapAsync(integrationsGmailOAuthCallback( + this, + request, + options, + )); + } + + /** + * Get Gmail install URL + * + * @remarks + * Generates OAuth install URL for Gmail integration. Requires authentication. + */ + async getGmailInstallUrl( + options?: RequestOptions, + ): Promise { + return unwrapAsync(integrationsGetGmailInstallUrl( + this, + options, + )); + } + + /** + * Outlook OAuth callback + * + * @remarks + * Handles OAuth callback from Microsoft after user authorization. Exchanges authorization code for access token and creates inbox account. + */ + async outlookOAuthCallback( + request: operations.OutlookOAuthCallbackRequest, + options?: RequestOptions, + ): Promise { + return unwrapAsync(integrationsOutlookOAuthCallback( + this, + request, + options, + )); + } + + /** + * Get Outlook install URL + * + * @remarks + * Generates OAuth install URL for Outlook integration. Requires authentication. + */ + async getOutlookInstallUrl( + options?: RequestOptions, + ): Promise { + return unwrapAsync(integrationsGetOutlookInstallUrl( + this, + options, + )); + } + + /** + * Xero OAuth callback + * + * @remarks + * Handles OAuth callback from Xero after user authorization. Exchanges authorization code for access token and creates app integration. + */ + async xeroOAuthCallback( + request: operations.XeroOAuthCallbackRequest, + options?: RequestOptions, + ): Promise { + return unwrapAsync(integrationsXeroOAuthCallback( + this, + request, + options, + )); + } + + /** + * Get Xero install URL + * + * @remarks + * Generates OAuth install URL for Xero integration. Requires authentication. + */ + async getXeroInstallUrl( + options?: RequestOptions, + ): Promise { + return unwrapAsync(integrationsGetXeroInstallUrl( + this, + options, + )); + } + + /** + * QuickBooks OAuth callback + * + * @remarks + * Handles OAuth callback from QuickBooks after user authorization. Exchanges authorization code for access token and creates app integration. + */ + async quickBooksOAuthCallback( + request: operations.QuickBooksOAuthCallbackRequest, + options?: RequestOptions, + ): Promise { + return unwrapAsync(integrationsQuickBooksOAuthCallback( + this, + request, + options, + )); + } + + /** + * Get QuickBooks install URL + * + * @remarks + * Generates OAuth install URL for QuickBooks integration. Requires authentication. + */ + async getQuickBooksInstallUrl( + options?: RequestOptions, + ): Promise { + return unwrapAsync(integrationsGetQuickBooksInstallUrl( + this, + options, + )); + } + + /** + * Fortnox OAuth callback + * + * @remarks + * Handles OAuth callback from Fortnox after user authorization. Exchanges authorization code for access token and creates app integration. + */ + async fortnoxOAuthCallback( + request: operations.FortnoxOAuthCallbackRequest, + options?: RequestOptions, + ): Promise { + return unwrapAsync(integrationsFortnoxOAuthCallback( + this, + request, + options, + )); + } + + /** + * Get Fortnox install URL + * + * @remarks + * Generates OAuth install URL for Fortnox integration. Requires authentication. + */ + async getFortnoxInstallUrl( + options?: RequestOptions, + ): Promise { + return unwrapAsync(integrationsGetFortnoxInstallUrl( + this, + options, + )); + } +} diff --git a/src/sdk/invoicepayments.ts b/src/sdk/invoicepayments.ts new file mode 100644 index 0000000..39432de --- /dev/null +++ b/src/sdk/invoicepayments.ts @@ -0,0 +1,93 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { invoicePaymentsCreateInvoicePaymentIntent } from "../funcs/invoicePaymentsCreateInvoicePaymentIntent.js"; +import { invoicePaymentsDisconnectStripe } from "../funcs/invoicePaymentsDisconnectStripe.js"; +import { invoicePaymentsGetStripeConnectStatus } from "../funcs/invoicePaymentsGetStripeConnectStatus.js"; +import { invoicePaymentsGetStripeConnectUrl } from "../funcs/invoicePaymentsGetStripeConnectUrl.js"; +import { invoicePaymentsStripeConnectCallback } from "../funcs/invoicePaymentsStripeConnectCallback.js"; +import { ClientSDK, RequestOptions } from "../lib/sdks.js"; +import * as operations from "../models/operations/index.js"; +import { unwrapAsync } from "../types/fp.js"; + +export class InvoicePayments extends ClientSDK { + /** + * Get Stripe Connect URL + * + * @remarks + * Generates OAuth URL for Stripe Connect Standard integration. Allows teams to connect their Stripe account for accepting invoice payments. + */ + async getStripeConnectUrl( + options?: RequestOptions, + ): Promise { + return unwrapAsync(invoicePaymentsGetStripeConnectUrl( + this, + options, + )); + } + + /** + * Stripe Connect OAuth callback + * + * @remarks + * Handles OAuth callback from Stripe Connect after user authorization. Exchanges authorization code for connected account ID. + */ + async stripeConnectCallback( + request: operations.StripeConnectCallbackRequest, + options?: RequestOptions, + ): Promise { + return unwrapAsync(invoicePaymentsStripeConnectCallback( + this, + request, + options, + )); + } + + /** + * Disconnect Stripe account + * + * @remarks + * Disconnects the team's Stripe Connect account. + */ + async disconnectStripe( + options?: RequestOptions, + ): Promise { + return unwrapAsync(invoicePaymentsDisconnectStripe( + this, + options, + )); + } + + /** + * Create payment intent for invoice + * + * @remarks + * Creates a Stripe PaymentIntent for paying an invoice. This is a public endpoint that uses the invoice token for authentication. + */ + async createInvoicePaymentIntent( + request?: operations.CreateInvoicePaymentIntentRequest | undefined, + options?: RequestOptions, + ): Promise { + return unwrapAsync(invoicePaymentsCreateInvoicePaymentIntent( + this, + request, + options, + )); + } + + /** + * Get Stripe Connect status + * + * @remarks + * Gets the current Stripe Connect status for the team. + */ + async getStripeConnectStatus( + options?: RequestOptions, + ): Promise { + return unwrapAsync(invoicePaymentsGetStripeConnectStatus( + this, + options, + )); + } +} diff --git a/src/sdk/invoices.ts b/src/sdk/invoices.ts index 158fd9b..8d2f193 100644 --- a/src/sdk/invoices.ts +++ b/src/sdk/invoices.ts @@ -72,7 +72,7 @@ export class Invoices extends ClientSDK { async summary( request: operations.GetInvoiceSummaryRequest, options?: RequestOptions, - ): Promise> { + ): Promise { return unwrapAsync(invoicesSummary( this, request, diff --git a/src/sdk/sdk.ts b/src/sdk/sdk.ts index 881fb0c..9763063 100644 --- a/src/sdk/sdk.ts +++ b/src/sdk/sdk.ts @@ -6,7 +6,10 @@ import { ClientSDK } from "../lib/sdks.js"; import { BankAccounts } from "./bankaccounts.js"; import { Customers } from "./customers.js"; import { Documents } from "./documents.js"; +import { Files } from "./files.js"; import { Inbox } from "./inbox.js"; +import { Integrations } from "./integrations.js"; +import { InvoicePayments } from "./invoicepayments.js"; import { Invoices } from "./invoices.js"; import { Notifications } from "./notifications.js"; import { OAuth } from "./oauth.js"; @@ -19,6 +22,7 @@ import { TrackerProjects } from "./trackerprojects.js"; import { TrackerTimer } from "./trackertimer.js"; import { Transactions } from "./transactions.js"; import { Users } from "./users.js"; +import { Webhooks } from "./webhooks.js"; export class Midday extends ClientSDK { private _oAuth?: OAuth; @@ -26,6 +30,26 @@ export class Midday extends ClientSDK { return (this._oAuth ??= new OAuth(this._options)); } + private _webhooks?: Webhooks; + get webhooks(): Webhooks { + return (this._webhooks ??= new Webhooks(this._options)); + } + + private _files?: Files; + get files(): Files { + return (this._files ??= new Files(this._options)); + } + + private _integrations?: Integrations; + get integrations(): Integrations { + return (this._integrations ??= new Integrations(this._options)); + } + + private _invoicePayments?: InvoicePayments; + get invoicePayments(): InvoicePayments { + return (this._invoicePayments ??= new InvoicePayments(this._options)); + } + private _notifications?: Notifications; get notifications(): Notifications { return (this._notifications ??= new Notifications(this._options)); diff --git a/src/sdk/tags.ts b/src/sdk/tags.ts index ed017ec..9497d72 100644 --- a/src/sdk/tags.ts +++ b/src/sdk/tags.ts @@ -37,7 +37,7 @@ export class Tags extends ClientSDK { async create( request?: models.CreateTag | undefined, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(tagsCreate( this, request, diff --git a/src/sdk/webhooks.ts b/src/sdk/webhooks.ts new file mode 100644 index 0000000..c0eff3f --- /dev/null +++ b/src/sdk/webhooks.ts @@ -0,0 +1,79 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { webhooksInboxWebhook } from "../funcs/webhooksInboxWebhook.js"; +import { webhooksStripeWebhook } from "../funcs/webhooksStripeWebhook.js"; +import { webhooksWhatsappWebhook } from "../funcs/webhooksWhatsappWebhook.js"; +import { webhooksWhatsappWebhookVerify } from "../funcs/webhooksWhatsappWebhookVerify.js"; +import { ClientSDK, RequestOptions } from "../lib/sdks.js"; +import * as operations from "../models/operations/index.js"; +import { unwrapAsync } from "../types/fp.js"; + +export class Webhooks extends ClientSDK { + /** + * Inbox webhook + * + * @remarks + * Webhook endpoint for receiving inbox emails from Postmark + */ + async inboxWebhook( + request?: any | null | undefined, + options?: RequestOptions, + ): Promise { + return unwrapAsync(webhooksInboxWebhook( + this, + request, + options, + )); + } + + /** + * WhatsApp webhook verification + * + * @remarks + * Verify webhook URL for WhatsApp Business API + */ + async whatsappWebhookVerify( + request: operations.WhatsappWebhookVerifyRequest, + options?: RequestOptions, + ): Promise { + return unwrapAsync(webhooksWhatsappWebhookVerify( + this, + request, + options, + )); + } + + /** + * WhatsApp webhook + * + * @remarks + * Receive messages, media, and button replies from WhatsApp Business API + */ + async whatsappWebhook( + request?: any | null | undefined, + options?: RequestOptions, + ): Promise { + return unwrapAsync(webhooksWhatsappWebhook( + this, + request, + options, + )); + } + + /** + * Stripe webhook handler + * + * @remarks + * Handles Stripe webhook events for invoice payments. Verifies webhook signature and processes payment events. + */ + async stripeWebhook( + options?: RequestOptions, + ): Promise { + return unwrapAsync(webhooksStripeWebhook( + this, + options, + )); + } +} diff --git a/src/types/blobs.ts b/src/types/blobs.ts index 4ce8460..cce2892 100644 --- a/src/types/blobs.ts +++ b/src/types/blobs.ts @@ -2,13 +2,14 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; -export const blobLikeSchema: z.ZodType = - z.custom(isBlobLike, { - message: "expected a Blob, File or Blob-like object", - fatal: true, - }); +export const blobLikeSchema: z.ZodType = z.custom< + Blob +>(isBlobLike, { + message: "expected a Blob, File or Blob-like object", + fatal: true, +}); export function isBlobLike(val: unknown): val is Blob { if (val instanceof Blob) { diff --git a/src/types/constdatetime.ts b/src/types/constdatetime.ts index eeff4dd..fe62144 100644 --- a/src/types/constdatetime.ts +++ b/src/types/constdatetime.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; export function constDateTime( val: string, diff --git a/src/types/enums.ts b/src/types/enums.ts index 6fb6d91..aba0ffd 100644 --- a/src/types/enums.ts +++ b/src/types/enums.ts @@ -2,15 +2,44 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -declare const __brand: unique symbol; -export type Unrecognized = T & { [__brand]: "unrecognized" }; +import * as z from "zod/v3"; +import { Unrecognized, unrecognized } from "./unrecognized.js"; -export function catchUnrecognizedEnum(value: T): Unrecognized { - return value as Unrecognized; +export type ClosedEnum>> = + T[keyof T]; +export type OpenEnum>> = + | T[keyof T] + | Unrecognized; + +export function inboundSchema>( + enumObj: T, +): z.ZodType, z.ZodTypeDef, unknown> { + const options = Object.values(enumObj); + return z.union([ + ...options.map(x => z.literal(x)), + z.string().transform(x => unrecognized(x)), + ] as any); } -type Prettify = { [K in keyof T]: T[K] } & {}; -export type ClosedEnum = T[keyof T]; -export type OpenEnum = - | Prettify - | Unrecognized; +export function inboundSchemaInt>( + enumObj: T, +): z.ZodType, z.ZodTypeDef, unknown> { + // For numeric enums, Object.values returns both numbers and string keys + const options = Object.values(enumObj).filter(v => typeof v === "number"); + return z.union([ + ...options.map(x => z.literal(x)), + z.number().int().transform(x => unrecognized(x)), + ] as any); +} + +export function outboundSchema>( + _: T, +): z.ZodType> { + return z.string() as any; +} + +export function outboundSchemaInt>( + _: T, +): z.ZodType> { + return z.number().int() as any; +} diff --git a/src/types/index.ts b/src/types/index.ts index e124e81..abf0b7a 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -3,9 +3,9 @@ */ export { blobLikeSchema, isBlobLike } from "./blobs.js"; -export { catchUnrecognizedEnum } from "./enums.js"; -export type { ClosedEnum, OpenEnum, Unrecognized } from "./enums.js"; +export type { ClosedEnum, OpenEnum } from "./enums.js"; export type { Result } from "./fp.js"; export type { PageIterator, Paginator } from "./operations.js"; export { createPageIterator } from "./operations.js"; export { RFCDate } from "./rfcdate.js"; +export * from "./unrecognized.js"; diff --git a/src/types/unrecognized.ts b/src/types/unrecognized.ts new file mode 100644 index 0000000..b7a2a13 --- /dev/null +++ b/src/types/unrecognized.ts @@ -0,0 +1,35 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +declare const __brand: unique symbol; +export type Unrecognized = T & { [__brand]: "unrecognized" }; + +function unrecognized(value: T): Unrecognized { + globalCount++; + return value as Unrecognized; +} + +let globalCount = 0; +let refCount = 0; +export function startCountingUnrecognized() { + refCount++; + const start = globalCount; + return { + /** + * Ends counting and returns the delta. + * @param delta - If provided, only this amount is added to the parent counter + * (used for nested unions where we only want to record the winning option's count). + * If not provided, records all counts since start(). + */ + end: (delta?: number) => { + const count = globalCount - start; + // Reset globalCount back to start, then add only the specified delta + globalCount = start + (delta ?? count); + if (--refCount === 0) globalCount = 0; + return count; + }, + }; +} + +export { unrecognized }; diff --git a/tsconfig.json b/tsconfig.json index 94d81a3..0ccdbe2 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,6 @@ { "compilerOptions": { - "incremental": true, - "tsBuildInfoFile": ".tsbuildinfo", + "incremental": false, "target": "ES2020", "lib": ["ES2022", "DOM", "DOM.Iterable"], "jsx": "react-jsx",