@meetkai/mka1 0.54.62 → 0.54.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +325 -304
- package/bin/mcp-server.js +4828 -3578
- package/bin/mcp-server.js.map +28 -10
- package/dist/commonjs/funcs/billingCreateOrganizationBillingPortal.d.ts +14 -0
- package/dist/commonjs/funcs/billingCreateOrganizationBillingPortal.d.ts.map +1 -0
- package/dist/commonjs/funcs/billingCreateOrganizationBillingPortal.js +113 -0
- package/dist/commonjs/funcs/billingCreateOrganizationBillingPortal.js.map +1 -0
- package/dist/commonjs/funcs/billingCreateOrganizationBillingSetup.d.ts +14 -0
- package/dist/commonjs/funcs/billingCreateOrganizationBillingSetup.d.ts.map +1 -0
- package/dist/commonjs/funcs/billingCreateOrganizationBillingSetup.js +113 -0
- package/dist/commonjs/funcs/billingCreateOrganizationBillingSetup.js.map +1 -0
- package/dist/commonjs/funcs/billingGetOrganizationBilling.d.ts +14 -0
- package/dist/commonjs/funcs/billingGetOrganizationBilling.d.ts.map +1 -0
- package/dist/commonjs/funcs/billingGetOrganizationBilling.js +125 -0
- package/dist/commonjs/funcs/billingGetOrganizationBilling.js.map +1 -0
- package/dist/commonjs/funcs/billingListOrganizationBillingInvoices.d.ts +14 -0
- package/dist/commonjs/funcs/billingListOrganizationBillingInvoices.d.ts.map +1 -0
- package/dist/commonjs/funcs/billingListOrganizationBillingInvoices.js +125 -0
- package/dist/commonjs/funcs/billingListOrganizationBillingInvoices.js.map +1 -0
- package/dist/commonjs/funcs/billingSetOrganizationBillingEnabled.d.ts +14 -0
- package/dist/commonjs/funcs/billingSetOrganizationBillingEnabled.d.ts.map +1 -0
- package/dist/commonjs/funcs/billingSetOrganizationBillingEnabled.js +126 -0
- package/dist/commonjs/funcs/billingSetOrganizationBillingEnabled.js.map +1 -0
- package/dist/commonjs/funcs/billingUpdateOrganizationBillingProfile.d.ts +14 -0
- package/dist/commonjs/funcs/billingUpdateOrganizationBillingProfile.d.ts.map +1 -0
- package/dist/commonjs/funcs/billingUpdateOrganizationBillingProfile.js +123 -0
- package/dist/commonjs/funcs/billingUpdateOrganizationBillingProfile.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +13 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/billingCreateOrganizationBillingPortal.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/billingCreateOrganizationBillingPortal.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/billingCreateOrganizationBillingPortal.js +62 -0
- package/dist/commonjs/mcp-server/tools/billingCreateOrganizationBillingPortal.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/billingCreateOrganizationBillingSetup.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/billingCreateOrganizationBillingSetup.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/billingCreateOrganizationBillingSetup.js +62 -0
- package/dist/commonjs/mcp-server/tools/billingCreateOrganizationBillingSetup.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/billingGetOrganizationBilling.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/billingGetOrganizationBilling.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/billingGetOrganizationBilling.js +62 -0
- package/dist/commonjs/mcp-server/tools/billingGetOrganizationBilling.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/billingListOrganizationBillingInvoices.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/billingListOrganizationBillingInvoices.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/billingListOrganizationBillingInvoices.js +62 -0
- package/dist/commonjs/mcp-server/tools/billingListOrganizationBillingInvoices.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/billingSetOrganizationBillingEnabled.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/billingSetOrganizationBillingEnabled.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/billingSetOrganizationBillingEnabled.js +62 -0
- package/dist/commonjs/mcp-server/tools/billingSetOrganizationBillingEnabled.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/billingUpdateOrganizationBillingProfile.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/billingUpdateOrganizationBillingProfile.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/billingUpdateOrganizationBillingProfile.js +62 -0
- package/dist/commonjs/mcp-server/tools/billingUpdateOrganizationBillingProfile.js.map +1 -0
- package/dist/commonjs/models/components/computescalinginput.d.ts +5 -2
- package/dist/commonjs/models/components/computescalinginput.d.ts.map +1 -1
- package/dist/commonjs/models/components/computescalinginput.js +2 -2
- package/dist/commonjs/models/components/computescalinginput.js.map +1 -1
- package/dist/commonjs/models/operations/createorganizationbillingportal.d.ts +29 -0
- package/dist/commonjs/models/operations/createorganizationbillingportal.d.ts.map +1 -0
- package/dist/commonjs/models/operations/createorganizationbillingportal.js +70 -0
- package/dist/commonjs/models/operations/createorganizationbillingportal.js.map +1 -0
- package/dist/commonjs/models/operations/createorganizationbillingsetup.d.ts +29 -0
- package/dist/commonjs/models/operations/createorganizationbillingsetup.d.ts.map +1 -0
- package/dist/commonjs/models/operations/createorganizationbillingsetup.js +70 -0
- package/dist/commonjs/models/operations/createorganizationbillingsetup.js.map +1 -0
- package/dist/commonjs/models/operations/getmodel.d.ts +5 -0
- package/dist/commonjs/models/operations/getmodel.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getmodel.js +4 -0
- package/dist/commonjs/models/operations/getmodel.js.map +1 -1
- package/dist/commonjs/models/operations/getorganizationbilling.d.ts +136 -0
- package/dist/commonjs/models/operations/getorganizationbilling.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getorganizationbilling.js +239 -0
- package/dist/commonjs/models/operations/getorganizationbilling.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +6 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +6 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listmodels.d.ts +5 -0
- package/dist/commonjs/models/operations/listmodels.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listmodels.js +4 -0
- package/dist/commonjs/models/operations/listmodels.js.map +1 -1
- package/dist/commonjs/models/operations/listorganizationbillinginvoices.d.ts +62 -0
- package/dist/commonjs/models/operations/listorganizationbillinginvoices.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listorganizationbillinginvoices.js +133 -0
- package/dist/commonjs/models/operations/listorganizationbillinginvoices.js.map +1 -0
- package/dist/commonjs/models/operations/setorganizationbillingenabled.d.ts +153 -0
- package/dist/commonjs/models/operations/setorganizationbillingenabled.d.ts.map +1 -0
- package/dist/commonjs/models/operations/setorganizationbillingenabled.js +261 -0
- package/dist/commonjs/models/operations/setorganizationbillingenabled.js.map +1 -0
- package/dist/commonjs/models/operations/updateorganizationbillingprofile.d.ts +163 -0
- package/dist/commonjs/models/operations/updateorganizationbillingprofile.d.ts.map +1 -0
- package/dist/commonjs/models/operations/updateorganizationbillingprofile.js +279 -0
- package/dist/commonjs/models/operations/updateorganizationbillingprofile.js.map +1 -0
- package/dist/commonjs/react-query/billingCreateOrganizationBillingPortal.d.ts +22 -0
- package/dist/commonjs/react-query/billingCreateOrganizationBillingPortal.d.ts.map +1 -0
- package/dist/commonjs/react-query/billingCreateOrganizationBillingPortal.js +41 -0
- package/dist/commonjs/react-query/billingCreateOrganizationBillingPortal.js.map +1 -0
- package/dist/commonjs/react-query/billingCreateOrganizationBillingSetup.d.ts +22 -0
- package/dist/commonjs/react-query/billingCreateOrganizationBillingSetup.d.ts.map +1 -0
- package/dist/commonjs/react-query/billingCreateOrganizationBillingSetup.js +41 -0
- package/dist/commonjs/react-query/billingCreateOrganizationBillingSetup.js.map +1 -0
- package/dist/commonjs/react-query/billingGetOrganizationBilling.core.d.ts +14 -0
- package/dist/commonjs/react-query/billingGetOrganizationBilling.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/billingGetOrganizationBilling.core.js +34 -0
- package/dist/commonjs/react-query/billingGetOrganizationBilling.core.js.map +1 -0
- package/dist/commonjs/react-query/billingGetOrganizationBilling.d.ts +20 -0
- package/dist/commonjs/react-query/billingGetOrganizationBilling.d.ts.map +1 -0
- package/dist/commonjs/react-query/billingGetOrganizationBilling.js +53 -0
- package/dist/commonjs/react-query/billingGetOrganizationBilling.js.map +1 -0
- package/dist/commonjs/react-query/billingListOrganizationBillingInvoices.core.d.ts +14 -0
- package/dist/commonjs/react-query/billingListOrganizationBillingInvoices.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/billingListOrganizationBillingInvoices.core.js +41 -0
- package/dist/commonjs/react-query/billingListOrganizationBillingInvoices.core.js.map +1 -0
- package/dist/commonjs/react-query/billingListOrganizationBillingInvoices.d.ts +20 -0
- package/dist/commonjs/react-query/billingListOrganizationBillingInvoices.d.ts.map +1 -0
- package/dist/commonjs/react-query/billingListOrganizationBillingInvoices.js +53 -0
- package/dist/commonjs/react-query/billingListOrganizationBillingInvoices.js.map +1 -0
- package/dist/commonjs/react-query/billingSetOrganizationBillingEnabled.d.ts +22 -0
- package/dist/commonjs/react-query/billingSetOrganizationBillingEnabled.d.ts.map +1 -0
- package/dist/commonjs/react-query/billingSetOrganizationBillingEnabled.js +41 -0
- package/dist/commonjs/react-query/billingSetOrganizationBillingEnabled.js.map +1 -0
- package/dist/commonjs/react-query/billingUpdateOrganizationBillingProfile.d.ts +22 -0
- package/dist/commonjs/react-query/billingUpdateOrganizationBillingProfile.d.ts.map +1 -0
- package/dist/commonjs/react-query/billingUpdateOrganizationBillingProfile.js +41 -0
- package/dist/commonjs/react-query/billingUpdateOrganizationBillingProfile.js.map +1 -0
- package/dist/commonjs/react-query/index.d.ts +6 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +6 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/sdk/billing.d.ts +11 -0
- package/dist/commonjs/sdk/billing.d.ts.map +1 -0
- package/dist/commonjs/sdk/billing.js +36 -0
- package/dist/commonjs/sdk/billing.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +3 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +4 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/esm/funcs/billingCreateOrganizationBillingPortal.d.ts +14 -0
- package/dist/esm/funcs/billingCreateOrganizationBillingPortal.d.ts.map +1 -0
- package/dist/esm/funcs/billingCreateOrganizationBillingPortal.js +77 -0
- package/dist/esm/funcs/billingCreateOrganizationBillingPortal.js.map +1 -0
- package/dist/esm/funcs/billingCreateOrganizationBillingSetup.d.ts +14 -0
- package/dist/esm/funcs/billingCreateOrganizationBillingSetup.d.ts.map +1 -0
- package/dist/esm/funcs/billingCreateOrganizationBillingSetup.js +77 -0
- package/dist/esm/funcs/billingCreateOrganizationBillingSetup.js.map +1 -0
- package/dist/esm/funcs/billingGetOrganizationBilling.d.ts +14 -0
- package/dist/esm/funcs/billingGetOrganizationBilling.d.ts.map +1 -0
- package/dist/esm/funcs/billingGetOrganizationBilling.js +89 -0
- package/dist/esm/funcs/billingGetOrganizationBilling.js.map +1 -0
- package/dist/esm/funcs/billingListOrganizationBillingInvoices.d.ts +14 -0
- package/dist/esm/funcs/billingListOrganizationBillingInvoices.d.ts.map +1 -0
- package/dist/esm/funcs/billingListOrganizationBillingInvoices.js +89 -0
- package/dist/esm/funcs/billingListOrganizationBillingInvoices.js.map +1 -0
- package/dist/esm/funcs/billingSetOrganizationBillingEnabled.d.ts +14 -0
- package/dist/esm/funcs/billingSetOrganizationBillingEnabled.d.ts.map +1 -0
- package/dist/esm/funcs/billingSetOrganizationBillingEnabled.js +90 -0
- package/dist/esm/funcs/billingSetOrganizationBillingEnabled.js.map +1 -0
- package/dist/esm/funcs/billingUpdateOrganizationBillingProfile.d.ts +14 -0
- package/dist/esm/funcs/billingUpdateOrganizationBillingProfile.d.ts.map +1 -0
- package/dist/esm/funcs/billingUpdateOrganizationBillingProfile.js +87 -0
- package/dist/esm/funcs/billingUpdateOrganizationBillingProfile.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +13 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/billingCreateOrganizationBillingPortal.d.ts +8 -0
- package/dist/esm/mcp-server/tools/billingCreateOrganizationBillingPortal.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/billingCreateOrganizationBillingPortal.js +26 -0
- package/dist/esm/mcp-server/tools/billingCreateOrganizationBillingPortal.js.map +1 -0
- package/dist/esm/mcp-server/tools/billingCreateOrganizationBillingSetup.d.ts +8 -0
- package/dist/esm/mcp-server/tools/billingCreateOrganizationBillingSetup.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/billingCreateOrganizationBillingSetup.js +26 -0
- package/dist/esm/mcp-server/tools/billingCreateOrganizationBillingSetup.js.map +1 -0
- package/dist/esm/mcp-server/tools/billingGetOrganizationBilling.d.ts +8 -0
- package/dist/esm/mcp-server/tools/billingGetOrganizationBilling.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/billingGetOrganizationBilling.js +26 -0
- package/dist/esm/mcp-server/tools/billingGetOrganizationBilling.js.map +1 -0
- package/dist/esm/mcp-server/tools/billingListOrganizationBillingInvoices.d.ts +8 -0
- package/dist/esm/mcp-server/tools/billingListOrganizationBillingInvoices.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/billingListOrganizationBillingInvoices.js +26 -0
- package/dist/esm/mcp-server/tools/billingListOrganizationBillingInvoices.js.map +1 -0
- package/dist/esm/mcp-server/tools/billingSetOrganizationBillingEnabled.d.ts +8 -0
- package/dist/esm/mcp-server/tools/billingSetOrganizationBillingEnabled.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/billingSetOrganizationBillingEnabled.js +26 -0
- package/dist/esm/mcp-server/tools/billingSetOrganizationBillingEnabled.js.map +1 -0
- package/dist/esm/mcp-server/tools/billingUpdateOrganizationBillingProfile.d.ts +8 -0
- package/dist/esm/mcp-server/tools/billingUpdateOrganizationBillingProfile.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/billingUpdateOrganizationBillingProfile.js +26 -0
- package/dist/esm/mcp-server/tools/billingUpdateOrganizationBillingProfile.js.map +1 -0
- package/dist/esm/models/components/computescalinginput.d.ts +5 -2
- package/dist/esm/models/components/computescalinginput.d.ts.map +1 -1
- package/dist/esm/models/components/computescalinginput.js +2 -2
- package/dist/esm/models/components/computescalinginput.js.map +1 -1
- package/dist/esm/models/operations/createorganizationbillingportal.d.ts +29 -0
- package/dist/esm/models/operations/createorganizationbillingportal.d.ts.map +1 -0
- package/dist/esm/models/operations/createorganizationbillingportal.js +30 -0
- package/dist/esm/models/operations/createorganizationbillingportal.js.map +1 -0
- package/dist/esm/models/operations/createorganizationbillingsetup.d.ts +29 -0
- package/dist/esm/models/operations/createorganizationbillingsetup.d.ts.map +1 -0
- package/dist/esm/models/operations/createorganizationbillingsetup.js +30 -0
- package/dist/esm/models/operations/createorganizationbillingsetup.js.map +1 -0
- package/dist/esm/models/operations/getmodel.d.ts +5 -0
- package/dist/esm/models/operations/getmodel.d.ts.map +1 -1
- package/dist/esm/models/operations/getmodel.js +4 -0
- package/dist/esm/models/operations/getmodel.js.map +1 -1
- package/dist/esm/models/operations/getorganizationbilling.d.ts +136 -0
- package/dist/esm/models/operations/getorganizationbilling.d.ts.map +1 -0
- package/dist/esm/models/operations/getorganizationbilling.js +193 -0
- package/dist/esm/models/operations/getorganizationbilling.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +6 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +6 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listmodels.d.ts +5 -0
- package/dist/esm/models/operations/listmodels.d.ts.map +1 -1
- package/dist/esm/models/operations/listmodels.js +4 -0
- package/dist/esm/models/operations/listmodels.js.map +1 -1
- package/dist/esm/models/operations/listorganizationbillinginvoices.d.ts +62 -0
- package/dist/esm/models/operations/listorganizationbillinginvoices.d.ts.map +1 -0
- package/dist/esm/models/operations/listorganizationbillinginvoices.js +91 -0
- package/dist/esm/models/operations/listorganizationbillinginvoices.js.map +1 -0
- package/dist/esm/models/operations/setorganizationbillingenabled.d.ts +153 -0
- package/dist/esm/models/operations/setorganizationbillingenabled.d.ts.map +1 -0
- package/dist/esm/models/operations/setorganizationbillingenabled.js +213 -0
- package/dist/esm/models/operations/setorganizationbillingenabled.js.map +1 -0
- package/dist/esm/models/operations/updateorganizationbillingprofile.d.ts +163 -0
- package/dist/esm/models/operations/updateorganizationbillingprofile.d.ts.map +1 -0
- package/dist/esm/models/operations/updateorganizationbillingprofile.js +231 -0
- package/dist/esm/models/operations/updateorganizationbillingprofile.js.map +1 -0
- package/dist/esm/react-query/billingCreateOrganizationBillingPortal.d.ts +22 -0
- package/dist/esm/react-query/billingCreateOrganizationBillingPortal.d.ts.map +1 -0
- package/dist/esm/react-query/billingCreateOrganizationBillingPortal.js +36 -0
- package/dist/esm/react-query/billingCreateOrganizationBillingPortal.js.map +1 -0
- package/dist/esm/react-query/billingCreateOrganizationBillingSetup.d.ts +22 -0
- package/dist/esm/react-query/billingCreateOrganizationBillingSetup.d.ts.map +1 -0
- package/dist/esm/react-query/billingCreateOrganizationBillingSetup.js +36 -0
- package/dist/esm/react-query/billingCreateOrganizationBillingSetup.js.map +1 -0
- package/dist/esm/react-query/billingGetOrganizationBilling.core.d.ts +14 -0
- package/dist/esm/react-query/billingGetOrganizationBilling.core.d.ts.map +1 -0
- package/dist/esm/react-query/billingGetOrganizationBilling.core.js +29 -0
- package/dist/esm/react-query/billingGetOrganizationBilling.core.js.map +1 -0
- package/dist/esm/react-query/billingGetOrganizationBilling.d.ts +20 -0
- package/dist/esm/react-query/billingGetOrganizationBilling.d.ts.map +1 -0
- package/dist/esm/react-query/billingGetOrganizationBilling.js +43 -0
- package/dist/esm/react-query/billingGetOrganizationBilling.js.map +1 -0
- package/dist/esm/react-query/billingListOrganizationBillingInvoices.core.d.ts +14 -0
- package/dist/esm/react-query/billingListOrganizationBillingInvoices.core.d.ts.map +1 -0
- package/dist/esm/react-query/billingListOrganizationBillingInvoices.core.js +36 -0
- package/dist/esm/react-query/billingListOrganizationBillingInvoices.core.js.map +1 -0
- package/dist/esm/react-query/billingListOrganizationBillingInvoices.d.ts +20 -0
- package/dist/esm/react-query/billingListOrganizationBillingInvoices.d.ts.map +1 -0
- package/dist/esm/react-query/billingListOrganizationBillingInvoices.js +43 -0
- package/dist/esm/react-query/billingListOrganizationBillingInvoices.js.map +1 -0
- package/dist/esm/react-query/billingSetOrganizationBillingEnabled.d.ts +22 -0
- package/dist/esm/react-query/billingSetOrganizationBillingEnabled.d.ts.map +1 -0
- package/dist/esm/react-query/billingSetOrganizationBillingEnabled.js +36 -0
- package/dist/esm/react-query/billingSetOrganizationBillingEnabled.js.map +1 -0
- package/dist/esm/react-query/billingUpdateOrganizationBillingProfile.d.ts +22 -0
- package/dist/esm/react-query/billingUpdateOrganizationBillingProfile.d.ts.map +1 -0
- package/dist/esm/react-query/billingUpdateOrganizationBillingProfile.js +36 -0
- package/dist/esm/react-query/billingUpdateOrganizationBillingProfile.js.map +1 -0
- package/dist/esm/react-query/index.d.ts +6 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +6 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/sdk/billing.d.ts +11 -0
- package/dist/esm/sdk/billing.d.ts.map +1 -0
- package/dist/esm/sdk/billing.js +32 -0
- package/dist/esm/sdk/billing.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +3 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +4 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/billingCreateOrganizationBillingPortal.ts +158 -0
- package/src/funcs/billingCreateOrganizationBillingSetup.ts +158 -0
- package/src/funcs/billingGetOrganizationBilling.ts +174 -0
- package/src/funcs/billingListOrganizationBillingInvoices.ts +179 -0
- package/src/funcs/billingSetOrganizationBillingEnabled.ts +180 -0
- package/src/funcs/billingUpdateOrganizationBillingProfile.ts +174 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +13 -1
- package/src/mcp-server/tools/billingCreateOrganizationBillingPortal.ts +37 -0
- package/src/mcp-server/tools/billingCreateOrganizationBillingSetup.ts +37 -0
- package/src/mcp-server/tools/billingGetOrganizationBilling.ts +35 -0
- package/src/mcp-server/tools/billingListOrganizationBillingInvoices.ts +37 -0
- package/src/mcp-server/tools/billingSetOrganizationBillingEnabled.ts +37 -0
- package/src/mcp-server/tools/billingUpdateOrganizationBillingProfile.ts +37 -0
- package/src/models/components/computescalinginput.ts +7 -4
- package/src/models/operations/createorganizationbillingportal.ts +108 -0
- package/src/models/operations/createorganizationbillingsetup.ts +107 -0
- package/src/models/operations/getmodel.ts +9 -0
- package/src/models/operations/getorganizationbilling.ts +408 -0
- package/src/models/operations/index.ts +6 -0
- package/src/models/operations/listmodels.ts +9 -0
- package/src/models/operations/listorganizationbillinginvoices.ts +227 -0
- package/src/models/operations/setorganizationbillingenabled.ts +510 -0
- package/src/models/operations/updateorganizationbillingprofile.ts +543 -0
- package/src/react-query/billingCreateOrganizationBillingPortal.ts +103 -0
- package/src/react-query/billingCreateOrganizationBillingSetup.ts +103 -0
- package/src/react-query/billingGetOrganizationBilling.core.ts +73 -0
- package/src/react-query/billingGetOrganizationBilling.ts +129 -0
- package/src/react-query/billingListOrganizationBillingInvoices.core.ts +80 -0
- package/src/react-query/billingListOrganizationBillingInvoices.ts +132 -0
- package/src/react-query/billingSetOrganizationBillingEnabled.ts +103 -0
- package/src/react-query/billingUpdateOrganizationBillingProfile.ts +103 -0
- package/src/react-query/index.ts +6 -0
- package/src/sdk/billing.ts +81 -0
- package/src/sdk/sdk.ts +6 -0
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { SDKCore } from "../core.js";
|
|
6
|
+
import { encodeFormQuery, encodeJSON } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
|
+
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
10
|
+
import { safeParse } from "../lib/schemas.js";
|
|
11
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
+
import { pathToFunc } from "../lib/url.js";
|
|
14
|
+
import {
|
|
15
|
+
ConnectionError,
|
|
16
|
+
InvalidRequestError,
|
|
17
|
+
RequestAbortedError,
|
|
18
|
+
RequestTimeoutError,
|
|
19
|
+
UnexpectedClientError,
|
|
20
|
+
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
22
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
23
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
24
|
+
import * as operations from "../models/operations/index.js";
|
|
25
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
26
|
+
import { Result } from "../types/fp.js";
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* If set, this operation will use {@link Security.bearerAuth} from the global security.
|
|
30
|
+
*/
|
|
31
|
+
export function billingSetOrganizationBillingEnabled(
|
|
32
|
+
client: SDKCore,
|
|
33
|
+
request: operations.SetOrganizationBillingEnabledRequest,
|
|
34
|
+
options?: RequestOptions,
|
|
35
|
+
): APIPromise<
|
|
36
|
+
Result<
|
|
37
|
+
operations.SetOrganizationBillingEnabledResponseBody,
|
|
38
|
+
| SDKError
|
|
39
|
+
| ResponseValidationError
|
|
40
|
+
| ConnectionError
|
|
41
|
+
| RequestAbortedError
|
|
42
|
+
| RequestTimeoutError
|
|
43
|
+
| InvalidRequestError
|
|
44
|
+
| UnexpectedClientError
|
|
45
|
+
| SDKValidationError
|
|
46
|
+
>
|
|
47
|
+
> {
|
|
48
|
+
return new APIPromise($do(
|
|
49
|
+
client,
|
|
50
|
+
request,
|
|
51
|
+
options,
|
|
52
|
+
));
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
async function $do(
|
|
56
|
+
client: SDKCore,
|
|
57
|
+
request: operations.SetOrganizationBillingEnabledRequest,
|
|
58
|
+
options?: RequestOptions,
|
|
59
|
+
): Promise<
|
|
60
|
+
[
|
|
61
|
+
Result<
|
|
62
|
+
operations.SetOrganizationBillingEnabledResponseBody,
|
|
63
|
+
| SDKError
|
|
64
|
+
| ResponseValidationError
|
|
65
|
+
| ConnectionError
|
|
66
|
+
| RequestAbortedError
|
|
67
|
+
| RequestTimeoutError
|
|
68
|
+
| InvalidRequestError
|
|
69
|
+
| UnexpectedClientError
|
|
70
|
+
| SDKValidationError
|
|
71
|
+
>,
|
|
72
|
+
APICall,
|
|
73
|
+
]
|
|
74
|
+
> {
|
|
75
|
+
const parsed = safeParse(
|
|
76
|
+
request,
|
|
77
|
+
(value) =>
|
|
78
|
+
operations.SetOrganizationBillingEnabledRequest$outboundSchema.parse(
|
|
79
|
+
value,
|
|
80
|
+
),
|
|
81
|
+
"Input validation failed",
|
|
82
|
+
);
|
|
83
|
+
if (!parsed.ok) {
|
|
84
|
+
return [parsed, { status: "invalid" }];
|
|
85
|
+
}
|
|
86
|
+
const payload = parsed.value;
|
|
87
|
+
const body = encodeJSON("body", payload.RequestBody, { explode: true });
|
|
88
|
+
|
|
89
|
+
const path = pathToFunc("/api/v1/budgeting/billing/org/enabled")();
|
|
90
|
+
|
|
91
|
+
const query = encodeFormQuery({
|
|
92
|
+
"org_id": payload.org_id,
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
const headers = new Headers(compactMap({
|
|
96
|
+
"Content-Type": "application/json",
|
|
97
|
+
Accept: "application/json",
|
|
98
|
+
}));
|
|
99
|
+
|
|
100
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
101
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
102
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
103
|
+
|
|
104
|
+
const context = {
|
|
105
|
+
options: client._options,
|
|
106
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
107
|
+
operationID: "setOrganizationBillingEnabled",
|
|
108
|
+
oAuth2Scopes: null,
|
|
109
|
+
|
|
110
|
+
resolvedSecurity: requestSecurity,
|
|
111
|
+
|
|
112
|
+
securitySource: client._options.bearerAuth,
|
|
113
|
+
retryConfig: options?.retries
|
|
114
|
+
|| client._options.retryConfig
|
|
115
|
+
|| {
|
|
116
|
+
strategy: "backoff",
|
|
117
|
+
backoff: {
|
|
118
|
+
initialInterval: 500,
|
|
119
|
+
maxInterval: 5000,
|
|
120
|
+
exponent: 1.5,
|
|
121
|
+
maxElapsedTime: 15000,
|
|
122
|
+
},
|
|
123
|
+
retryConnectionErrors: true,
|
|
124
|
+
}
|
|
125
|
+
|| { strategy: "none" },
|
|
126
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
const requestRes = client._createRequest(context, {
|
|
130
|
+
security: requestSecurity,
|
|
131
|
+
method: "PUT",
|
|
132
|
+
baseURL: options?.serverURL,
|
|
133
|
+
path: path,
|
|
134
|
+
headers: headers,
|
|
135
|
+
query: query,
|
|
136
|
+
body: body,
|
|
137
|
+
userAgent: client._options.userAgent,
|
|
138
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
139
|
+
}, options);
|
|
140
|
+
if (!requestRes.ok) {
|
|
141
|
+
return [requestRes, { status: "invalid" }];
|
|
142
|
+
}
|
|
143
|
+
const req = requestRes.value;
|
|
144
|
+
|
|
145
|
+
const doResult = await client._do(req, {
|
|
146
|
+
context,
|
|
147
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
148
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
149
|
+
retryConfig: context.retryConfig,
|
|
150
|
+
retryCodes: context.retryCodes,
|
|
151
|
+
});
|
|
152
|
+
if (!doResult.ok) {
|
|
153
|
+
return [doResult, { status: "request-error", request: req }];
|
|
154
|
+
}
|
|
155
|
+
const response = doResult.value;
|
|
156
|
+
|
|
157
|
+
const [result] = await M.match<
|
|
158
|
+
operations.SetOrganizationBillingEnabledResponseBody,
|
|
159
|
+
| SDKError
|
|
160
|
+
| ResponseValidationError
|
|
161
|
+
| ConnectionError
|
|
162
|
+
| RequestAbortedError
|
|
163
|
+
| RequestTimeoutError
|
|
164
|
+
| InvalidRequestError
|
|
165
|
+
| UnexpectedClientError
|
|
166
|
+
| SDKValidationError
|
|
167
|
+
>(
|
|
168
|
+
M.json(
|
|
169
|
+
200,
|
|
170
|
+
operations.SetOrganizationBillingEnabledResponseBody$inboundSchema,
|
|
171
|
+
),
|
|
172
|
+
M.fail("4XX"),
|
|
173
|
+
M.fail("5XX"),
|
|
174
|
+
)(response, req);
|
|
175
|
+
if (!result.ok) {
|
|
176
|
+
return [result, { status: "complete", request: req, response }];
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
return [result, { status: "complete", request: req, response }];
|
|
180
|
+
}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { SDKCore } from "../core.js";
|
|
6
|
+
import { encodeJSON } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
|
+
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
10
|
+
import { safeParse } from "../lib/schemas.js";
|
|
11
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
+
import { pathToFunc } from "../lib/url.js";
|
|
14
|
+
import {
|
|
15
|
+
ConnectionError,
|
|
16
|
+
InvalidRequestError,
|
|
17
|
+
RequestAbortedError,
|
|
18
|
+
RequestTimeoutError,
|
|
19
|
+
UnexpectedClientError,
|
|
20
|
+
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
22
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
23
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
24
|
+
import * as operations from "../models/operations/index.js";
|
|
25
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
26
|
+
import { Result } from "../types/fp.js";
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* If set, this operation will use {@link Security.bearerAuth} from the global security.
|
|
30
|
+
*/
|
|
31
|
+
export function billingUpdateOrganizationBillingProfile(
|
|
32
|
+
client: SDKCore,
|
|
33
|
+
request: operations.UpdateOrganizationBillingProfileRequestBody,
|
|
34
|
+
options?: RequestOptions,
|
|
35
|
+
): APIPromise<
|
|
36
|
+
Result<
|
|
37
|
+
operations.UpdateOrganizationBillingProfileResponseBody,
|
|
38
|
+
| SDKError
|
|
39
|
+
| ResponseValidationError
|
|
40
|
+
| ConnectionError
|
|
41
|
+
| RequestAbortedError
|
|
42
|
+
| RequestTimeoutError
|
|
43
|
+
| InvalidRequestError
|
|
44
|
+
| UnexpectedClientError
|
|
45
|
+
| SDKValidationError
|
|
46
|
+
>
|
|
47
|
+
> {
|
|
48
|
+
return new APIPromise($do(
|
|
49
|
+
client,
|
|
50
|
+
request,
|
|
51
|
+
options,
|
|
52
|
+
));
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
async function $do(
|
|
56
|
+
client: SDKCore,
|
|
57
|
+
request: operations.UpdateOrganizationBillingProfileRequestBody,
|
|
58
|
+
options?: RequestOptions,
|
|
59
|
+
): Promise<
|
|
60
|
+
[
|
|
61
|
+
Result<
|
|
62
|
+
operations.UpdateOrganizationBillingProfileResponseBody,
|
|
63
|
+
| SDKError
|
|
64
|
+
| ResponseValidationError
|
|
65
|
+
| ConnectionError
|
|
66
|
+
| RequestAbortedError
|
|
67
|
+
| RequestTimeoutError
|
|
68
|
+
| InvalidRequestError
|
|
69
|
+
| UnexpectedClientError
|
|
70
|
+
| SDKValidationError
|
|
71
|
+
>,
|
|
72
|
+
APICall,
|
|
73
|
+
]
|
|
74
|
+
> {
|
|
75
|
+
const parsed = safeParse(
|
|
76
|
+
request,
|
|
77
|
+
(value) =>
|
|
78
|
+
operations.UpdateOrganizationBillingProfileRequestBody$outboundSchema
|
|
79
|
+
.parse(value),
|
|
80
|
+
"Input validation failed",
|
|
81
|
+
);
|
|
82
|
+
if (!parsed.ok) {
|
|
83
|
+
return [parsed, { status: "invalid" }];
|
|
84
|
+
}
|
|
85
|
+
const payload = parsed.value;
|
|
86
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
87
|
+
|
|
88
|
+
const path = pathToFunc("/api/v1/budgeting/billing/org/profile")();
|
|
89
|
+
|
|
90
|
+
const headers = new Headers(compactMap({
|
|
91
|
+
"Content-Type": "application/json",
|
|
92
|
+
Accept: "application/json",
|
|
93
|
+
}));
|
|
94
|
+
|
|
95
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
96
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
97
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
98
|
+
|
|
99
|
+
const context = {
|
|
100
|
+
options: client._options,
|
|
101
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
102
|
+
operationID: "updateOrganizationBillingProfile",
|
|
103
|
+
oAuth2Scopes: null,
|
|
104
|
+
|
|
105
|
+
resolvedSecurity: requestSecurity,
|
|
106
|
+
|
|
107
|
+
securitySource: client._options.bearerAuth,
|
|
108
|
+
retryConfig: options?.retries
|
|
109
|
+
|| client._options.retryConfig
|
|
110
|
+
|| {
|
|
111
|
+
strategy: "backoff",
|
|
112
|
+
backoff: {
|
|
113
|
+
initialInterval: 500,
|
|
114
|
+
maxInterval: 5000,
|
|
115
|
+
exponent: 1.5,
|
|
116
|
+
maxElapsedTime: 15000,
|
|
117
|
+
},
|
|
118
|
+
retryConnectionErrors: true,
|
|
119
|
+
}
|
|
120
|
+
|| { strategy: "none" },
|
|
121
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
const requestRes = client._createRequest(context, {
|
|
125
|
+
security: requestSecurity,
|
|
126
|
+
method: "PUT",
|
|
127
|
+
baseURL: options?.serverURL,
|
|
128
|
+
path: path,
|
|
129
|
+
headers: headers,
|
|
130
|
+
body: body,
|
|
131
|
+
userAgent: client._options.userAgent,
|
|
132
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
133
|
+
}, options);
|
|
134
|
+
if (!requestRes.ok) {
|
|
135
|
+
return [requestRes, { status: "invalid" }];
|
|
136
|
+
}
|
|
137
|
+
const req = requestRes.value;
|
|
138
|
+
|
|
139
|
+
const doResult = await client._do(req, {
|
|
140
|
+
context,
|
|
141
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
142
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
143
|
+
retryConfig: context.retryConfig,
|
|
144
|
+
retryCodes: context.retryCodes,
|
|
145
|
+
});
|
|
146
|
+
if (!doResult.ok) {
|
|
147
|
+
return [doResult, { status: "request-error", request: req }];
|
|
148
|
+
}
|
|
149
|
+
const response = doResult.value;
|
|
150
|
+
|
|
151
|
+
const [result] = await M.match<
|
|
152
|
+
operations.UpdateOrganizationBillingProfileResponseBody,
|
|
153
|
+
| SDKError
|
|
154
|
+
| ResponseValidationError
|
|
155
|
+
| ConnectionError
|
|
156
|
+
| RequestAbortedError
|
|
157
|
+
| RequestTimeoutError
|
|
158
|
+
| InvalidRequestError
|
|
159
|
+
| UnexpectedClientError
|
|
160
|
+
| SDKValidationError
|
|
161
|
+
>(
|
|
162
|
+
M.json(
|
|
163
|
+
200,
|
|
164
|
+
operations.UpdateOrganizationBillingProfileResponseBody$inboundSchema,
|
|
165
|
+
),
|
|
166
|
+
M.fail("4XX"),
|
|
167
|
+
M.fail("5XX"),
|
|
168
|
+
)(response, req);
|
|
169
|
+
if (!result.ok) {
|
|
170
|
+
return [result, { status: "complete", request: req, response }];
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
return [result, { status: "complete", request: req, response }];
|
|
174
|
+
}
|
package/src/lib/config.ts
CHANGED
|
@@ -65,7 +65,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
65
65
|
export const SDK_METADATA = {
|
|
66
66
|
language: "typescript",
|
|
67
67
|
openapiDocVersion: "1.1.0",
|
|
68
|
-
sdkVersion: "0.54.
|
|
68
|
+
sdkVersion: "0.54.64",
|
|
69
69
|
genVersion: "2.943.0",
|
|
70
|
-
userAgent: "speakeasy-sdk/typescript 0.54.
|
|
70
|
+
userAgent: "speakeasy-sdk/typescript 0.54.64 2.943.0 1.1.0 @meetkai/mka1",
|
|
71
71
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -89,6 +89,12 @@ import { tool$authTeamsList } from "./tools/authTeamsList.js";
|
|
|
89
89
|
import { tool$authTeamsListMembers } from "./tools/authTeamsListMembers.js";
|
|
90
90
|
import { tool$authTeamsRemoveMember } from "./tools/authTeamsRemoveMember.js";
|
|
91
91
|
import { tool$authTeamsUpdate } from "./tools/authTeamsUpdate.js";
|
|
92
|
+
import { tool$billingCreateOrganizationBillingPortal } from "./tools/billingCreateOrganizationBillingPortal.js";
|
|
93
|
+
import { tool$billingCreateOrganizationBillingSetup } from "./tools/billingCreateOrganizationBillingSetup.js";
|
|
94
|
+
import { tool$billingGetOrganizationBilling } from "./tools/billingGetOrganizationBilling.js";
|
|
95
|
+
import { tool$billingListOrganizationBillingInvoices } from "./tools/billingListOrganizationBillingInvoices.js";
|
|
96
|
+
import { tool$billingSetOrganizationBillingEnabled } from "./tools/billingSetOrganizationBillingEnabled.js";
|
|
97
|
+
import { tool$billingUpdateOrganizationBillingProfile } from "./tools/billingUpdateOrganizationBillingProfile.js";
|
|
92
98
|
import { tool$budgetsApiKeyEvents } from "./tools/budgetsApiKeyEvents.js";
|
|
93
99
|
import { tool$budgetsDeleteApiKey } from "./tools/budgetsDeleteApiKey.js";
|
|
94
100
|
import { tool$budgetsDeleteExternalUser } from "./tools/budgetsDeleteExternalUser.js";
|
|
@@ -467,7 +473,7 @@ export function createMCPServer(deps: {
|
|
|
467
473
|
}) {
|
|
468
474
|
const server = new McpServer({
|
|
469
475
|
name: "SDK",
|
|
470
|
-
version: "0.54.
|
|
476
|
+
version: "0.54.64",
|
|
471
477
|
});
|
|
472
478
|
|
|
473
479
|
const client = new SDKCore({
|
|
@@ -546,6 +552,12 @@ export function createMCPServer(deps: {
|
|
|
546
552
|
tool(tool$agentRunsWakeAgentRun);
|
|
547
553
|
tool(tool$agentRunsDecideAgentRunMcpApproval);
|
|
548
554
|
tool(tool$agentRunsGetAgentRun);
|
|
555
|
+
tool(tool$billingGetOrganizationBilling);
|
|
556
|
+
tool(tool$billingSetOrganizationBillingEnabled);
|
|
557
|
+
tool(tool$billingUpdateOrganizationBillingProfile);
|
|
558
|
+
tool(tool$billingCreateOrganizationBillingSetup);
|
|
559
|
+
tool(tool$billingCreateOrganizationBillingPortal);
|
|
560
|
+
tool(tool$billingListOrganizationBillingInvoices);
|
|
549
561
|
tool(tool$budgetsList);
|
|
550
562
|
tool(tool$budgetsGetOrg);
|
|
551
563
|
tool(tool$budgetsSetOrg);
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { billingCreateOrganizationBillingPortal } from "../../funcs/billingCreateOrganizationBillingPortal.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.CreateOrganizationBillingPortalRequestBody$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$billingCreateOrganizationBillingPortal: ToolDefinition<
|
|
14
|
+
typeof args
|
|
15
|
+
> = {
|
|
16
|
+
name: "billing-create-organization-billing-portal",
|
|
17
|
+
description: ``,
|
|
18
|
+
args,
|
|
19
|
+
tool: async (client, args, ctx) => {
|
|
20
|
+
const [result, apiCall] = await billingCreateOrganizationBillingPortal(
|
|
21
|
+
client,
|
|
22
|
+
args.request,
|
|
23
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
24
|
+
).$inspect();
|
|
25
|
+
|
|
26
|
+
if (!result.ok) {
|
|
27
|
+
return {
|
|
28
|
+
content: [{ type: "text", text: result.error.message }],
|
|
29
|
+
isError: true,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const value = result.value;
|
|
34
|
+
|
|
35
|
+
return formatResult(value, apiCall);
|
|
36
|
+
},
|
|
37
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { billingCreateOrganizationBillingSetup } from "../../funcs/billingCreateOrganizationBillingSetup.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.CreateOrganizationBillingSetupRequestBody$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$billingCreateOrganizationBillingSetup: ToolDefinition<
|
|
14
|
+
typeof args
|
|
15
|
+
> = {
|
|
16
|
+
name: "billing-create-organization-billing-setup",
|
|
17
|
+
description: ``,
|
|
18
|
+
args,
|
|
19
|
+
tool: async (client, args, ctx) => {
|
|
20
|
+
const [result, apiCall] = await billingCreateOrganizationBillingSetup(
|
|
21
|
+
client,
|
|
22
|
+
args.request,
|
|
23
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
24
|
+
).$inspect();
|
|
25
|
+
|
|
26
|
+
if (!result.ok) {
|
|
27
|
+
return {
|
|
28
|
+
content: [{ type: "text", text: result.error.message }],
|
|
29
|
+
isError: true,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const value = result.value;
|
|
34
|
+
|
|
35
|
+
return formatResult(value, apiCall);
|
|
36
|
+
},
|
|
37
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { billingGetOrganizationBilling } from "../../funcs/billingGetOrganizationBilling.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.GetOrganizationBillingRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$billingGetOrganizationBilling: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "billing-get-organization-billing",
|
|
15
|
+
description: ``,
|
|
16
|
+
args,
|
|
17
|
+
tool: async (client, args, ctx) => {
|
|
18
|
+
const [result, apiCall] = await billingGetOrganizationBilling(
|
|
19
|
+
client,
|
|
20
|
+
args.request,
|
|
21
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
22
|
+
).$inspect();
|
|
23
|
+
|
|
24
|
+
if (!result.ok) {
|
|
25
|
+
return {
|
|
26
|
+
content: [{ type: "text", text: result.error.message }],
|
|
27
|
+
isError: true,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const value = result.value;
|
|
32
|
+
|
|
33
|
+
return formatResult(value, apiCall);
|
|
34
|
+
},
|
|
35
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { billingListOrganizationBillingInvoices } from "../../funcs/billingListOrganizationBillingInvoices.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.ListOrganizationBillingInvoicesRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$billingListOrganizationBillingInvoices: ToolDefinition<
|
|
14
|
+
typeof args
|
|
15
|
+
> = {
|
|
16
|
+
name: "billing-list-organization-billing-invoices",
|
|
17
|
+
description: ``,
|
|
18
|
+
args,
|
|
19
|
+
tool: async (client, args, ctx) => {
|
|
20
|
+
const [result, apiCall] = await billingListOrganizationBillingInvoices(
|
|
21
|
+
client,
|
|
22
|
+
args.request,
|
|
23
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
24
|
+
).$inspect();
|
|
25
|
+
|
|
26
|
+
if (!result.ok) {
|
|
27
|
+
return {
|
|
28
|
+
content: [{ type: "text", text: result.error.message }],
|
|
29
|
+
isError: true,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const value = result.value;
|
|
34
|
+
|
|
35
|
+
return formatResult(value, apiCall);
|
|
36
|
+
},
|
|
37
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { billingSetOrganizationBillingEnabled } from "../../funcs/billingSetOrganizationBillingEnabled.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.SetOrganizationBillingEnabledRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$billingSetOrganizationBillingEnabled: ToolDefinition<
|
|
14
|
+
typeof args
|
|
15
|
+
> = {
|
|
16
|
+
name: "billing-set-organization-billing-enabled",
|
|
17
|
+
description: ``,
|
|
18
|
+
args,
|
|
19
|
+
tool: async (client, args, ctx) => {
|
|
20
|
+
const [result, apiCall] = await billingSetOrganizationBillingEnabled(
|
|
21
|
+
client,
|
|
22
|
+
args.request,
|
|
23
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
24
|
+
).$inspect();
|
|
25
|
+
|
|
26
|
+
if (!result.ok) {
|
|
27
|
+
return {
|
|
28
|
+
content: [{ type: "text", text: result.error.message }],
|
|
29
|
+
isError: true,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const value = result.value;
|
|
34
|
+
|
|
35
|
+
return formatResult(value, apiCall);
|
|
36
|
+
},
|
|
37
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { billingUpdateOrganizationBillingProfile } from "../../funcs/billingUpdateOrganizationBillingProfile.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.UpdateOrganizationBillingProfileRequestBody$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$billingUpdateOrganizationBillingProfile: ToolDefinition<
|
|
14
|
+
typeof args
|
|
15
|
+
> = {
|
|
16
|
+
name: "billing-update-organization-billing-profile",
|
|
17
|
+
description: ``,
|
|
18
|
+
args,
|
|
19
|
+
tool: async (client, args, ctx) => {
|
|
20
|
+
const [result, apiCall] = await billingUpdateOrganizationBillingProfile(
|
|
21
|
+
client,
|
|
22
|
+
args.request,
|
|
23
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
24
|
+
).$inspect();
|
|
25
|
+
|
|
26
|
+
if (!result.ok) {
|
|
27
|
+
return {
|
|
28
|
+
content: [{ type: "text", text: result.error.message }],
|
|
29
|
+
isError: true,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const value = result.value;
|
|
34
|
+
|
|
35
|
+
return formatResult(value, apiCall);
|
|
36
|
+
},
|
|
37
|
+
};
|
|
@@ -9,7 +9,10 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
11
|
export type ComputeScalingInput = {
|
|
12
|
-
|
|
12
|
+
/**
|
|
13
|
+
* How long demand must stay low before a replica is removed. Required, and at least 1, when min_replicas < max_replicas. A fixed policy (min_replicas == max_replicas) has none: one sent with it is ignored, and a fixed policy reports 0 until clients accept the field's absence.
|
|
14
|
+
*/
|
|
15
|
+
idleTimeoutSeconds?: number | undefined;
|
|
13
16
|
maxReplicas: number;
|
|
14
17
|
minReplicas: number;
|
|
15
18
|
targetConcurrencyPerReplica?: number | undefined;
|
|
@@ -21,7 +24,7 @@ export const ComputeScalingInput$inboundSchema: z.ZodType<
|
|
|
21
24
|
z.ZodTypeDef,
|
|
22
25
|
unknown
|
|
23
26
|
> = z.object({
|
|
24
|
-
idle_timeout_seconds: z.number().int(),
|
|
27
|
+
idle_timeout_seconds: z.number().int().optional(),
|
|
25
28
|
max_replicas: z.number().int(),
|
|
26
29
|
min_replicas: z.number().int(),
|
|
27
30
|
target_concurrency_per_replica: z.number().int().optional(),
|
|
@@ -35,7 +38,7 @@ export const ComputeScalingInput$inboundSchema: z.ZodType<
|
|
|
35
38
|
});
|
|
36
39
|
/** @internal */
|
|
37
40
|
export type ComputeScalingInput$Outbound = {
|
|
38
|
-
idle_timeout_seconds
|
|
41
|
+
idle_timeout_seconds?: number | undefined;
|
|
39
42
|
max_replicas: number;
|
|
40
43
|
min_replicas: number;
|
|
41
44
|
target_concurrency_per_replica?: number | undefined;
|
|
@@ -47,7 +50,7 @@ export const ComputeScalingInput$outboundSchema: z.ZodType<
|
|
|
47
50
|
z.ZodTypeDef,
|
|
48
51
|
ComputeScalingInput
|
|
49
52
|
> = z.object({
|
|
50
|
-
idleTimeoutSeconds: z.number().int(),
|
|
53
|
+
idleTimeoutSeconds: z.number().int().optional(),
|
|
51
54
|
maxReplicas: z.number().int(),
|
|
52
55
|
minReplicas: z.number().int(),
|
|
53
56
|
targetConcurrencyPerReplica: z.number().int().optional(),
|