cloudflare 6.1.0 → 6.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +274 -0
- package/index.d.mts +6 -0
- package/index.d.ts +6 -0
- package/index.d.ts.map +1 -1
- package/index.js +6 -0
- package/index.js.map +1 -1
- package/index.mjs +6 -0
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/acm/custom-trust-store.d.ts +9 -6
- package/resources/acm/custom-trust-store.d.ts.map +1 -1
- package/resources/acm/custom-trust-store.js +5 -4
- package/resources/acm/custom-trust-store.js.map +1 -1
- package/resources/acm/custom-trust-store.mjs +5 -4
- package/resources/acm/custom-trust-store.mjs.map +1 -1
- package/resources/ai-gateway/ai-gateway.d.ts +241 -0
- package/resources/ai-gateway/ai-gateway.d.ts.map +1 -1
- package/resources/ai-gateway/ai-gateway.js +4 -0
- package/resources/ai-gateway/ai-gateway.js.map +1 -1
- package/resources/ai-gateway/ai-gateway.mjs +4 -0
- package/resources/ai-gateway/ai-gateway.mjs.map +1 -1
- package/resources/ai-gateway/billing/billing.d.ts +202 -0
- package/resources/ai-gateway/billing/billing.d.ts.map +1 -0
- package/resources/ai-gateway/billing/billing.js +111 -0
- package/resources/ai-gateway/billing/billing.js.map +1 -0
- package/resources/ai-gateway/billing/billing.mjs +84 -0
- package/resources/ai-gateway/billing/billing.mjs.map +1 -0
- package/resources/ai-gateway/billing/index.d.ts +4 -0
- package/resources/ai-gateway/billing/index.d.ts.map +1 -0
- package/resources/ai-gateway/billing/index.js +11 -0
- package/resources/ai-gateway/billing/index.js.map +1 -0
- package/resources/ai-gateway/billing/index.mjs +5 -0
- package/resources/ai-gateway/billing/index.mjs.map +1 -0
- package/resources/ai-gateway/billing/spending-limit.d.ts +90 -0
- package/resources/ai-gateway/billing/spending-limit.d.ts.map +1 -0
- package/resources/ai-gateway/billing/spending-limit.js +60 -0
- package/resources/ai-gateway/billing/spending-limit.js.map +1 -0
- package/resources/ai-gateway/billing/spending-limit.mjs +56 -0
- package/resources/ai-gateway/billing/spending-limit.mjs.map +1 -0
- package/resources/ai-gateway/billing/topup/config.d.ts +84 -0
- package/resources/ai-gateway/billing/topup/config.d.ts.map +1 -0
- package/resources/ai-gateway/billing/topup/config.js +59 -0
- package/resources/ai-gateway/billing/topup/config.js.map +1 -0
- package/resources/ai-gateway/billing/topup/config.mjs +55 -0
- package/resources/ai-gateway/billing/topup/config.mjs.map +1 -0
- package/resources/ai-gateway/billing/topup/index.d.ts +3 -0
- package/resources/ai-gateway/billing/topup/index.d.ts.map +1 -0
- package/resources/ai-gateway/billing/topup/index.js +9 -0
- package/resources/ai-gateway/billing/topup/index.js.map +1 -0
- package/resources/ai-gateway/billing/topup/index.mjs +4 -0
- package/resources/ai-gateway/billing/topup/index.mjs.map +1 -0
- package/resources/ai-gateway/billing/topup/topup.d.ts +83 -0
- package/resources/ai-gateway/billing/topup/topup.d.ts.map +1 -0
- package/resources/ai-gateway/billing/topup/topup.js +76 -0
- package/resources/ai-gateway/billing/topup/topup.js.map +1 -0
- package/resources/ai-gateway/billing/topup/topup.mjs +49 -0
- package/resources/ai-gateway/billing/topup/topup.mjs.map +1 -0
- package/resources/ai-gateway/billing/topup.d.ts +2 -0
- package/resources/ai-gateway/billing/topup.d.ts.map +1 -0
- package/resources/ai-gateway/billing/topup.js +19 -0
- package/resources/ai-gateway/billing/topup.js.map +1 -0
- package/resources/ai-gateway/billing/topup.mjs +3 -0
- package/resources/ai-gateway/billing/topup.mjs.map +1 -0
- package/resources/ai-gateway/billing.d.ts +2 -0
- package/resources/ai-gateway/billing.d.ts.map +1 -0
- package/resources/ai-gateway/billing.js +19 -0
- package/resources/ai-gateway/billing.js.map +1 -0
- package/resources/ai-gateway/billing.mjs +3 -0
- package/resources/ai-gateway/billing.mjs.map +1 -0
- package/resources/ai-gateway/dynamic-routing.d.ts +17 -0
- package/resources/ai-gateway/dynamic-routing.d.ts.map +1 -1
- package/resources/ai-gateway/dynamic-routing.js +5 -2
- package/resources/ai-gateway/dynamic-routing.js.map +1 -1
- package/resources/ai-gateway/dynamic-routing.mjs +5 -2
- package/resources/ai-gateway/dynamic-routing.mjs.map +1 -1
- package/resources/ai-gateway/index.d.ts +1 -0
- package/resources/ai-gateway/index.d.ts.map +1 -1
- package/resources/ai-gateway/index.js +3 -1
- package/resources/ai-gateway/index.js.map +1 -1
- package/resources/ai-gateway/index.mjs +1 -0
- package/resources/ai-gateway/index.mjs.map +1 -1
- package/resources/ai-security/ai-security.d.ts +70 -0
- package/resources/ai-security/ai-security.d.ts.map +1 -0
- package/resources/ai-security/ai-security.js +69 -0
- package/resources/ai-security/ai-security.js.map +1 -0
- package/resources/ai-security/ai-security.mjs +42 -0
- package/resources/ai-security/ai-security.mjs.map +1 -0
- package/resources/ai-security/custom-topics.d.ts +105 -0
- package/resources/ai-security/custom-topics.d.ts.map +1 -0
- package/resources/ai-security/custom-topics.js +48 -0
- package/resources/ai-security/custom-topics.js.map +1 -0
- package/resources/ai-security/custom-topics.mjs +44 -0
- package/resources/ai-security/custom-topics.mjs.map +1 -0
- package/resources/ai-security/index.d.ts +3 -0
- package/resources/ai-security/index.d.ts.map +1 -0
- package/resources/ai-security/index.js +9 -0
- package/resources/ai-security/index.js.map +1 -0
- package/resources/ai-security/index.mjs +4 -0
- package/resources/ai-security/index.mjs.map +1 -0
- package/resources/ai-security.d.ts +2 -0
- package/resources/ai-security.d.ts.map +1 -0
- package/resources/ai-security.js +19 -0
- package/resources/ai-security.js.map +1 -0
- package/resources/ai-security.mjs +3 -0
- package/resources/ai-security.mjs.map +1 -0
- package/resources/aisearch/instances/instances.d.ts +70 -21
- package/resources/aisearch/instances/instances.d.ts.map +1 -1
- package/resources/aisearch/instances/instances.js.map +1 -1
- package/resources/aisearch/instances/instances.mjs.map +1 -1
- package/resources/aisearch/namespaces/instances/instances.d.ts +70 -21
- package/resources/aisearch/namespaces/instances/instances.d.ts.map +1 -1
- package/resources/aisearch/namespaces/instances/instances.js.map +1 -1
- package/resources/aisearch/namespaces/instances/instances.mjs.map +1 -1
- package/resources/cloudforce-one/threat-events/threat-events.d.ts +1 -1
- package/resources/cloudforce-one/threat-events/threat-events.d.ts.map +1 -1
- package/resources/d1/d1.d.ts +3 -3
- package/resources/d1/database/database.d.ts +17 -0
- package/resources/d1/database/database.d.ts.map +1 -1
- package/resources/d1/database/database.js.map +1 -1
- package/resources/d1/database/database.mjs.map +1 -1
- package/resources/ddos-protection/advanced-tcp-protection/advanced-tcp-protection.d.ts +26 -0
- package/resources/ddos-protection/advanced-tcp-protection/advanced-tcp-protection.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/advanced-tcp-protection.js +59 -0
- package/resources/ddos-protection/advanced-tcp-protection/advanced-tcp-protection.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/advanced-tcp-protection.mjs +32 -0
- package/resources/ddos-protection/advanced-tcp-protection/advanced-tcp-protection.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/allowlist/allowlist.d.ts +180 -0
- package/resources/ddos-protection/advanced-tcp-protection/allowlist/allowlist.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/allowlist/allowlist.js +99 -0
- package/resources/ddos-protection/advanced-tcp-protection/allowlist/allowlist.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/allowlist/allowlist.mjs +71 -0
- package/resources/ddos-protection/advanced-tcp-protection/allowlist/allowlist.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/allowlist/index.d.ts +3 -0
- package/resources/ddos-protection/advanced-tcp-protection/allowlist/index.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/allowlist/index.js +10 -0
- package/resources/ddos-protection/advanced-tcp-protection/allowlist/index.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/allowlist/index.mjs +4 -0
- package/resources/ddos-protection/advanced-tcp-protection/allowlist/index.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/allowlist/items.d.ts +157 -0
- package/resources/ddos-protection/advanced-tcp-protection/allowlist/items.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/allowlist/items.js +57 -0
- package/resources/ddos-protection/advanced-tcp-protection/allowlist/items.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/allowlist/items.mjs +53 -0
- package/resources/ddos-protection/advanced-tcp-protection/allowlist/items.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/allowlist.d.ts +2 -0
- package/resources/ddos-protection/advanced-tcp-protection/allowlist.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/allowlist.js +19 -0
- package/resources/ddos-protection/advanced-tcp-protection/allowlist.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/allowlist.mjs +3 -0
- package/resources/ddos-protection/advanced-tcp-protection/allowlist.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/index.d.ts +7 -0
- package/resources/ddos-protection/advanced-tcp-protection/index.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/index.js +20 -0
- package/resources/ddos-protection/advanced-tcp-protection/index.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/index.mjs +8 -0
- package/resources/ddos-protection/advanced-tcp-protection/index.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/prefixes/index.d.ts +3 -0
- package/resources/ddos-protection/advanced-tcp-protection/prefixes/index.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/prefixes/index.js +11 -0
- package/resources/ddos-protection/advanced-tcp-protection/prefixes/index.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/prefixes/index.mjs +4 -0
- package/resources/ddos-protection/advanced-tcp-protection/prefixes/index.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/prefixes/items.d.ts +157 -0
- package/resources/ddos-protection/advanced-tcp-protection/prefixes/items.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/prefixes/items.js +57 -0
- package/resources/ddos-protection/advanced-tcp-protection/prefixes/items.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/prefixes/items.mjs +53 -0
- package/resources/ddos-protection/advanced-tcp-protection/prefixes/items.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/prefixes/prefixes.d.ts +257 -0
- package/resources/ddos-protection/advanced-tcp-protection/prefixes/prefixes.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/prefixes/prefixes.js +129 -0
- package/resources/ddos-protection/advanced-tcp-protection/prefixes/prefixes.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/prefixes/prefixes.mjs +100 -0
- package/resources/ddos-protection/advanced-tcp-protection/prefixes/prefixes.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/prefixes.d.ts +2 -0
- package/resources/ddos-protection/advanced-tcp-protection/prefixes.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/prefixes.js +19 -0
- package/resources/ddos-protection/advanced-tcp-protection/prefixes.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/prefixes.mjs +3 -0
- package/resources/ddos-protection/advanced-tcp-protection/prefixes.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/status.d.ts +57 -0
- package/resources/ddos-protection/advanced-tcp-protection/status.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/status.js +42 -0
- package/resources/ddos-protection/advanced-tcp-protection/status.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/status.mjs +38 -0
- package/resources/ddos-protection/advanced-tcp-protection/status.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters/filters.d.ts +174 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters/filters.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters/filters.js +96 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters/filters.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters/filters.mjs +68 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters/filters.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters/index.d.ts +3 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters/index.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters/index.js +10 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters/index.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters/index.mjs +4 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters/index.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters/items.d.ts +150 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters/items.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters/items.js +57 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters/items.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters/items.mjs +53 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters/items.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters.d.ts +2 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters.js +19 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters.mjs +3 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/index.d.ts +4 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/index.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/index.js +13 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/index.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/index.mjs +5 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/index.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules/index.d.ts +3 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules/index.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules/index.js +10 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules/index.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules/index.mjs +4 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules/index.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules/items.d.ts +203 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules/items.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules/items.js +57 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules/items.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules/items.mjs +53 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules/items.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules/rules.d.ts +234 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules/rules.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules/rules.js +98 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules/rules.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules/rules.mjs +70 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules/rules.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules.d.ts +2 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules.js +19 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules.mjs +3 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/syn-protection.d.ts +14 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/syn-protection.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/syn-protection.js +45 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/syn-protection.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/syn-protection.mjs +18 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/syn-protection.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection.d.ts +2 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection.js +19 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection.mjs +3 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters/filters.d.ts +174 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters/filters.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters/filters.js +96 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters/filters.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters/filters.mjs +68 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters/filters.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters/index.d.ts +3 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters/index.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters/index.js +10 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters/index.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters/index.mjs +4 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters/index.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters/items.d.ts +150 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters/items.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters/items.js +57 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters/items.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters/items.mjs +53 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters/items.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters.d.ts +2 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters.js +19 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters.mjs +3 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/index.d.ts +4 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/index.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/index.js +13 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/index.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/index.mjs +5 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/index.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules/index.d.ts +3 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules/index.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules/index.js +10 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules/index.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules/index.mjs +4 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules/index.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules/items.d.ts +190 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules/items.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules/items.js +57 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules/items.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules/items.mjs +53 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules/items.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules/rules.d.ts +220 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules/rules.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules/rules.js +98 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules/rules.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules/rules.mjs +70 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules/rules.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules.d.ts +2 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules.js +19 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules.mjs +3 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/tcp-flow-protection.d.ts +14 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/tcp-flow-protection.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/tcp-flow-protection.js +45 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/tcp-flow-protection.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/tcp-flow-protection.mjs +18 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/tcp-flow-protection.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection.d.ts +2 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection.js +19 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection.mjs +3 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection.d.ts +2 -0
- package/resources/ddos-protection/advanced-tcp-protection.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection.js +19 -0
- package/resources/ddos-protection/advanced-tcp-protection.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection.mjs +3 -0
- package/resources/ddos-protection/advanced-tcp-protection.mjs.map +1 -0
- package/resources/ddos-protection/ddos-protection.d.ts +10 -0
- package/resources/ddos-protection/ddos-protection.d.ts.map +1 -0
- package/resources/ddos-protection/ddos-protection.js +39 -0
- package/resources/ddos-protection/ddos-protection.js.map +1 -0
- package/resources/ddos-protection/ddos-protection.mjs +12 -0
- package/resources/ddos-protection/ddos-protection.mjs.map +1 -0
- package/resources/ddos-protection/index.d.ts +3 -0
- package/resources/ddos-protection/index.d.ts.map +1 -0
- package/resources/ddos-protection/index.js +9 -0
- package/resources/ddos-protection/index.js.map +1 -0
- package/resources/ddos-protection/index.mjs +4 -0
- package/resources/ddos-protection/index.mjs.map +1 -0
- package/resources/ddos-protection.d.ts +2 -0
- package/resources/ddos-protection.d.ts.map +1 -0
- package/resources/ddos-protection.js +19 -0
- package/resources/ddos-protection.js.map +1 -0
- package/resources/ddos-protection.mjs +3 -0
- package/resources/ddos-protection.mjs.map +1 -0
- package/resources/email-security/investigate/investigate.d.ts +10 -0
- package/resources/email-security/investigate/investigate.d.ts.map +1 -1
- package/resources/email-security/investigate/investigate.js.map +1 -1
- package/resources/email-security/investigate/investigate.mjs.map +1 -1
- package/resources/index.d.ts +2 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/intel/indicator-feeds/indicator-feeds.d.ts +10 -0
- package/resources/intel/indicator-feeds/indicator-feeds.d.ts.map +1 -1
- package/resources/intel/indicator-feeds/indicator-feeds.js.map +1 -1
- package/resources/intel/indicator-feeds/indicator-feeds.mjs.map +1 -1
- package/resources/intel/miscategorizations.d.ts +5 -0
- package/resources/intel/miscategorizations.d.ts.map +1 -1
- package/resources/intel/miscategorizations.js +5 -0
- package/resources/intel/miscategorizations.js.map +1 -1
- package/resources/intel/miscategorizations.mjs +5 -0
- package/resources/intel/miscategorizations.mjs.map +1 -1
- package/resources/load-balancers/index.d.ts +1 -1
- package/resources/load-balancers/index.d.ts.map +1 -1
- package/resources/load-balancers/index.js +9 -9
- package/resources/load-balancers/index.js.map +1 -1
- package/resources/load-balancers/index.mjs +1 -1
- package/resources/load-balancers/load-balancers.d.ts +2 -2
- package/resources/load-balancers/load-balancers.d.ts.map +1 -1
- package/resources/load-balancers/load-balancers.js +2 -2
- package/resources/load-balancers/load-balancers.js.map +1 -1
- package/resources/load-balancers/load-balancers.mjs +2 -2
- package/resources/load-balancers/load-balancers.mjs.map +1 -1
- package/resources/load-balancers/monitor-groups/index.d.ts +3 -0
- package/resources/load-balancers/monitor-groups/index.d.ts.map +1 -0
- package/resources/load-balancers/monitor-groups/index.js +11 -0
- package/resources/load-balancers/monitor-groups/index.js.map +1 -0
- package/resources/load-balancers/monitor-groups/index.mjs +4 -0
- package/resources/load-balancers/monitor-groups/index.mjs.map +1 -0
- package/resources/load-balancers/monitor-groups/monitor-groups.d.ts +299 -0
- package/resources/load-balancers/monitor-groups/monitor-groups.d.ts.map +1 -0
- package/resources/load-balancers/monitor-groups/monitor-groups.js +181 -0
- package/resources/load-balancers/monitor-groups/monitor-groups.js.map +1 -0
- package/resources/load-balancers/monitor-groups/monitor-groups.mjs +153 -0
- package/resources/load-balancers/monitor-groups/monitor-groups.mjs.map +1 -0
- package/resources/load-balancers/monitor-groups/references.d.ts +38 -0
- package/resources/load-balancers/monitor-groups/references.d.ts.map +1 -0
- package/resources/load-balancers/monitor-groups/references.js +32 -0
- package/resources/load-balancers/monitor-groups/references.js.map +1 -0
- package/resources/load-balancers/monitor-groups/references.mjs +27 -0
- package/resources/load-balancers/monitor-groups/references.mjs.map +1 -0
- package/resources/load-balancers/monitor-groups.d.ts +1 -312
- package/resources/load-balancers/monitor-groups.d.ts.map +1 -1
- package/resources/load-balancers/monitor-groups.js +15 -149
- package/resources/load-balancers/monitor-groups.js.map +1 -1
- package/resources/load-balancers/monitor-groups.mjs +1 -146
- package/resources/load-balancers/monitor-groups.mjs.map +1 -1
- package/resources/radar/bgp/bgp.d.ts +2 -2
- package/resources/radar/bgp/bgp.d.ts.map +1 -1
- package/resources/radar/bgp/bgp.js +2 -2
- package/resources/radar/bgp/bgp.js.map +1 -1
- package/resources/radar/bgp/bgp.mjs +2 -2
- package/resources/radar/bgp/bgp.mjs.map +1 -1
- package/resources/radar/bgp/index.d.ts +1 -1
- package/resources/radar/bgp/index.d.ts.map +1 -1
- package/resources/radar/bgp/index.js +8 -8
- package/resources/radar/bgp/index.js.map +1 -1
- package/resources/radar/bgp/index.mjs +1 -1
- package/resources/radar/bgp/ips/index.d.ts +3 -0
- package/resources/radar/bgp/ips/index.d.ts.map +1 -0
- package/resources/radar/bgp/ips/index.js +9 -0
- package/resources/radar/bgp/ips/index.js.map +1 -0
- package/resources/radar/bgp/ips/index.mjs +4 -0
- package/resources/radar/bgp/ips/index.mjs.map +1 -0
- package/resources/radar/bgp/ips/ips.d.ts +187 -0
- package/resources/radar/bgp/ips/ips.d.ts.map +1 -0
- package/resources/radar/bgp/ips/ips.js +46 -0
- package/resources/radar/bgp/ips/ips.js.map +1 -0
- package/resources/radar/bgp/ips/ips.mjs +19 -0
- package/resources/radar/bgp/ips/ips.mjs.map +1 -0
- package/resources/radar/bgp/ips/top.d.ts +55 -0
- package/resources/radar/bgp/ips/top.d.ts.map +1 -0
- package/resources/radar/bgp/ips/top.js +16 -0
- package/resources/radar/bgp/ips/top.js.map +1 -0
- package/resources/radar/bgp/ips/top.mjs +12 -0
- package/resources/radar/bgp/ips/top.mjs.map +1 -0
- package/resources/radar/bgp/ips.d.ts +1 -182
- package/resources/radar/bgp/ips.d.ts.map +1 -1
- package/resources/radar/bgp/ips.js +15 -12
- package/resources/radar/bgp/ips.js.map +1 -1
- package/resources/radar/bgp/ips.mjs +1 -10
- package/resources/radar/bgp/ips.mjs.map +1 -1
- package/resources/radar/bgp/rpki/index.d.ts +1 -0
- package/resources/radar/bgp/rpki/index.d.ts.map +1 -1
- package/resources/radar/bgp/rpki/index.js +3 -1
- package/resources/radar/bgp/rpki/index.js.map +1 -1
- package/resources/radar/bgp/rpki/index.mjs +1 -0
- package/resources/radar/bgp/rpki/index.mjs.map +1 -1
- package/resources/radar/bgp/rpki/roas.d.ts +78 -0
- package/resources/radar/bgp/rpki/roas.d.ts.map +1 -0
- package/resources/radar/bgp/rpki/roas.js +16 -0
- package/resources/radar/bgp/rpki/roas.js.map +1 -0
- package/resources/radar/bgp/rpki/roas.mjs +12 -0
- package/resources/radar/bgp/rpki/roas.mjs.map +1 -0
- package/resources/radar/bgp/rpki/rpki.d.ts +4 -0
- package/resources/radar/bgp/rpki/rpki.d.ts.map +1 -1
- package/resources/radar/bgp/rpki/rpki.js +4 -0
- package/resources/radar/bgp/rpki/rpki.js.map +1 -1
- package/resources/radar/bgp/rpki/rpki.mjs +4 -0
- package/resources/radar/bgp/rpki/rpki.mjs.map +1 -1
- package/resources/radar/http/http.d.ts +19 -4
- package/resources/radar/http/http.d.ts.map +1 -1
- package/resources/radar/http/http.js.map +1 -1
- package/resources/radar/http/http.mjs.map +1 -1
- package/resources/radar/post-quantum/tls.d.ts +28 -3
- package/resources/radar/post-quantum/tls.d.ts.map +1 -1
- package/resources/radar/post-quantum/tls.js +3 -2
- package/resources/radar/post-quantum/tls.js.map +1 -1
- package/resources/radar/post-quantum/tls.mjs +3 -2
- package/resources/radar/post-quantum/tls.mjs.map +1 -1
- package/resources/radar/quality/iqi.d.ts +1 -3
- package/resources/radar/quality/iqi.d.ts.map +1 -1
- package/resources/resource-sharing/resource-sharing.d.ts +14 -7
- package/resources/resource-sharing/resource-sharing.d.ts.map +1 -1
- package/resources/resource-sharing/resource-sharing.js.map +1 -1
- package/resources/resource-sharing/resource-sharing.mjs.map +1 -1
- package/resources/resource-sharing/resources.d.ts +7 -7
- package/resources/resource-sharing/resources.d.ts.map +1 -1
- package/resources/resource-sharing/resources.js.map +1 -1
- package/resources/resource-sharing/resources.mjs.map +1 -1
- package/resources/secrets-store/stores/stores.d.ts +11 -2
- package/resources/secrets-store/stores/stores.d.ts.map +1 -1
- package/resources/secrets-store/stores/stores.js +9 -3
- package/resources/secrets-store/stores/stores.js.map +1 -1
- package/resources/secrets-store/stores/stores.mjs +9 -3
- package/resources/secrets-store/stores/stores.mjs.map +1 -1
- package/resources/url-scanner/scans.d.ts +36 -0
- package/resources/url-scanner/scans.d.ts.map +1 -1
- package/resources/user/user.d.ts +10 -2
- package/resources/user/user.d.ts.map +1 -1
- package/resources/user/user.js.map +1 -1
- package/resources/user/user.mjs.map +1 -1
- package/resources/workflows/instances/instances.d.ts +5 -0
- package/resources/workflows/instances/instances.d.ts.map +1 -1
- package/resources/workflows/instances/instances.js.map +1 -1
- package/resources/workflows/instances/instances.mjs.map +1 -1
- package/resources/zero-trust/devices/fleet-status.d.ts +4 -0
- package/resources/zero-trust/devices/fleet-status.d.ts.map +1 -1
- package/resources/zero-trust/dex/fleet-status/devices.d.ts +4 -0
- package/resources/zero-trust/dex/fleet-status/devices.d.ts.map +1 -1
- package/resources/zero-trust/dex/fleet-status/devices.js.map +1 -1
- package/resources/zero-trust/dex/fleet-status/devices.mjs.map +1 -1
- package/resources/zero-trust/dlp/entries/custom.d.ts +59 -25
- package/resources/zero-trust/dlp/entries/custom.d.ts.map +1 -1
- package/resources/zero-trust/dlp/entries/custom.js.map +1 -1
- package/resources/zero-trust/dlp/entries/custom.mjs.map +1 -1
- package/resources/zero-trust/dlp/entries/entries.d.ts +71 -26
- package/resources/zero-trust/dlp/entries/entries.d.ts.map +1 -1
- package/resources/zero-trust/dlp/entries/entries.js.map +1 -1
- package/resources/zero-trust/dlp/entries/entries.mjs.map +1 -1
- package/resources/zero-trust/dlp/entries/integration.d.ts +59 -25
- package/resources/zero-trust/dlp/entries/integration.d.ts.map +1 -1
- package/resources/zero-trust/dlp/entries/integration.js.map +1 -1
- package/resources/zero-trust/dlp/entries/integration.mjs.map +1 -1
- package/resources/zero-trust/dlp/entries/predefined.d.ts +59 -25
- package/resources/zero-trust/dlp/entries/predefined.d.ts.map +1 -1
- package/resources/zero-trust/dlp/entries/predefined.js.map +1 -1
- package/resources/zero-trust/dlp/entries/predefined.mjs.map +1 -1
- package/resources/zero-trust/dlp/profiles/custom.d.ts +24 -2
- package/resources/zero-trust/dlp/profiles/custom.d.ts.map +1 -1
- package/resources/zero-trust/dlp/profiles/predefined.d.ts +12 -1
- package/resources/zero-trust/dlp/profiles/predefined.d.ts.map +1 -1
- package/resources/zero-trust/dlp/profiles/profiles.d.ts +60 -5
- package/resources/zero-trust/dlp/profiles/profiles.d.ts.map +1 -1
- package/resources/zero-trust/dlp/profiles/profiles.js.map +1 -1
- package/resources/zero-trust/dlp/profiles/profiles.mjs.map +1 -1
- package/resources/zero-trust/index.d.ts +1 -0
- package/resources/zero-trust/index.d.ts.map +1 -1
- package/resources/zero-trust/index.js +8 -6
- package/resources/zero-trust/index.js.map +1 -1
- package/resources/zero-trust/index.mjs +1 -0
- package/resources/zero-trust/index.mjs.map +1 -1
- package/resources/zero-trust/resource-library/applications.d.ts +238 -0
- package/resources/zero-trust/resource-library/applications.d.ts.map +1 -0
- package/resources/zero-trust/resource-library/applications.js +47 -0
- package/resources/zero-trust/resource-library/applications.js.map +1 -0
- package/resources/zero-trust/resource-library/applications.mjs +42 -0
- package/resources/zero-trust/resource-library/applications.mjs.map +1 -0
- package/resources/zero-trust/resource-library/categories.d.ts +94 -0
- package/resources/zero-trust/resource-library/categories.d.ts.map +1 -0
- package/resources/zero-trust/resource-library/categories.js +47 -0
- package/resources/zero-trust/resource-library/categories.js.map +1 -0
- package/resources/zero-trust/resource-library/categories.mjs +42 -0
- package/resources/zero-trust/resource-library/categories.mjs.map +1 -0
- package/resources/zero-trust/resource-library/index.d.ts +4 -0
- package/resources/zero-trust/resource-library/index.d.ts.map +1 -0
- package/resources/zero-trust/resource-library/index.js +13 -0
- package/resources/zero-trust/resource-library/index.js.map +1 -0
- package/resources/zero-trust/resource-library/index.mjs +5 -0
- package/resources/zero-trust/resource-library/index.mjs.map +1 -0
- package/resources/zero-trust/resource-library/resource-library.d.ts +14 -0
- package/resources/zero-trust/resource-library/resource-library.d.ts.map +1 -0
- package/resources/zero-trust/resource-library/resource-library.js +45 -0
- package/resources/zero-trust/resource-library/resource-library.js.map +1 -0
- package/resources/zero-trust/resource-library/resource-library.mjs +18 -0
- package/resources/zero-trust/resource-library/resource-library.mjs.map +1 -0
- package/resources/zero-trust/resource-library.d.ts +2 -0
- package/resources/zero-trust/resource-library.d.ts.map +1 -0
- package/resources/zero-trust/resource-library.js +19 -0
- package/resources/zero-trust/resource-library.js.map +1 -0
- package/resources/zero-trust/resource-library.mjs +3 -0
- package/resources/zero-trust/resource-library.mjs.map +1 -0
- package/resources/zero-trust/zero-trust.d.ts +4 -0
- package/resources/zero-trust/zero-trust.d.ts.map +1 -1
- package/resources/zero-trust/zero-trust.js +4 -0
- package/resources/zero-trust/zero-trust.js.map +1 -1
- package/resources/zero-trust/zero-trust.mjs +4 -0
- package/resources/zero-trust/zero-trust.mjs.map +1 -1
- package/resources/zones/custom-nameservers.d.ts +4 -0
- package/resources/zones/custom-nameservers.d.ts.map +1 -1
- package/resources/zones/custom-nameservers.js.map +1 -1
- package/resources/zones/custom-nameservers.mjs.map +1 -1
- package/src/index.ts +10 -0
- package/src/resources/acm/custom-trust-store.ts +9 -6
- package/src/resources/ai-gateway/ai-gateway.ts +449 -0
- package/src/resources/ai-gateway/api.md +56 -0
- package/src/resources/ai-gateway/billing/billing.ts +363 -0
- package/src/resources/ai-gateway/billing/index.ts +29 -0
- package/src/resources/ai-gateway/billing/spending-limit.ts +148 -0
- package/src/resources/ai-gateway/billing/topup/config.ts +133 -0
- package/src/resources/ai-gateway/billing/topup/index.ts +18 -0
- package/src/resources/ai-gateway/billing/topup/topup.ts +139 -0
- package/src/resources/ai-gateway/billing/topup.ts +3 -0
- package/src/resources/ai-gateway/billing.ts +3 -0
- package/src/resources/ai-gateway/dynamic-routing.ts +30 -2
- package/src/resources/ai-gateway/index.ts +11 -0
- package/src/resources/ai-security/ai-security.ts +117 -0
- package/src/resources/ai-security/api.md +23 -0
- package/src/resources/ai-security/custom-topics.ts +143 -0
- package/src/resources/ai-security/index.ts +10 -0
- package/src/resources/ai-security.ts +3 -0
- package/src/resources/aisearch/instances/instances.ts +70 -21
- package/src/resources/aisearch/namespaces/instances/instances.ts +70 -21
- package/src/resources/cloudforce-one/threat-events/threat-events.ts +1 -1
- package/src/resources/d1/d1.ts +3 -3
- package/src/resources/d1/database/database.ts +19 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/advanced-tcp-protection.ts +93 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/allowlist/allowlist.ts +277 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/allowlist/index.ts +21 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/allowlist/items.ts +233 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/allowlist.ts +3 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/index.ts +35 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/prefixes/index.ts +24 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/prefixes/items.ts +233 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/prefixes/prefixes.ts +377 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/prefixes.ts +3 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/status.ts +87 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters/filters.ts +266 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters/index.ts +21 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters/items.ts +224 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters.ts +3 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/syn-protection/index.ts +23 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules/index.ts +21 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules/items.ts +287 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules/rules.ts +337 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules.ts +3 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/syn-protection/syn-protection.ts +59 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/syn-protection.ts +3 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters/filters.ts +266 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters/index.ts +21 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters/items.ts +224 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters.ts +3 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/index.ts +23 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules/index.ts +21 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules/items.ts +271 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules/rules.ts +320 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules.ts +3 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/tcp-flow-protection.ts +59 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection.ts +3 -0
- package/src/resources/ddos-protection/advanced-tcp-protection.ts +3 -0
- package/src/resources/ddos-protection/api.md +189 -0
- package/src/resources/ddos-protection/ddos-protection.ts +16 -0
- package/src/resources/ddos-protection/index.ts +4 -0
- package/src/resources/ddos-protection.ts +3 -0
- package/src/resources/email-security/investigate/investigate.ts +17 -0
- package/src/resources/index.ts +2 -0
- package/src/resources/intel/indicator-feeds/indicator-feeds.ts +11 -0
- package/src/resources/intel/miscategorizations.ts +5 -0
- package/src/resources/load-balancers/api.md +17 -7
- package/src/resources/load-balancers/index.ts +1 -1
- package/src/resources/load-balancers/load-balancers.ts +12 -12
- package/src/resources/load-balancers/monitor-groups/index.ts +19 -0
- package/src/resources/load-balancers/monitor-groups/monitor-groups.ts +433 -0
- package/src/resources/load-balancers/monitor-groups/references.ts +63 -0
- package/src/resources/load-balancers/monitor-groups.ts +1 -434
- package/src/resources/radar/api.md +22 -2
- package/src/resources/radar/bgp/bgp.ts +2 -2
- package/src/resources/radar/bgp/index.ts +1 -1
- package/src/resources/radar/bgp/ips/index.ts +4 -0
- package/src/resources/radar/bgp/ips/ips.ts +295 -0
- package/src/resources/radar/bgp/ips/top.ts +84 -0
- package/src/resources/radar/bgp/ips.ts +1 -285
- package/src/resources/radar/bgp/rpki/index.ts +1 -0
- package/src/resources/radar/bgp/rpki/roas.ts +120 -0
- package/src/resources/radar/bgp/rpki/rpki.ts +10 -0
- package/src/resources/radar/http/http.ts +24 -0
- package/src/resources/radar/post-quantum/tls.ts +32 -3
- package/src/resources/radar/quality/iqi.ts +2 -6
- package/src/resources/resource-sharing/resource-sharing.ts +21 -6
- package/src/resources/resource-sharing/resources.ts +14 -7
- package/src/resources/secrets-store/stores/stores.ts +17 -7
- package/src/resources/url-scanner/scans.ts +58 -0
- package/src/resources/user/user.ts +12 -2
- package/src/resources/workflows/instances/instances.ts +6 -0
- package/src/resources/zero-trust/api.md +26 -0
- package/src/resources/zero-trust/devices/fleet-status.ts +5 -0
- package/src/resources/zero-trust/dex/fleet-status/devices.ts +5 -0
- package/src/resources/zero-trust/dlp/entries/custom.ts +78 -25
- package/src/resources/zero-trust/dlp/entries/entries.ts +96 -25
- package/src/resources/zero-trust/dlp/entries/integration.ts +78 -25
- package/src/resources/zero-trust/dlp/entries/predefined.ts +78 -25
- package/src/resources/zero-trust/dlp/profiles/custom.ts +36 -0
- package/src/resources/zero-trust/dlp/profiles/predefined.ts +18 -0
- package/src/resources/zero-trust/dlp/profiles/profiles.ts +90 -0
- package/src/resources/zero-trust/index.ts +1 -0
- package/src/resources/zero-trust/resource-library/applications.ts +315 -0
- package/src/resources/zero-trust/resource-library/categories.ts +140 -0
- package/src/resources/zero-trust/resource-library/index.ts +19 -0
- package/src/resources/zero-trust/resource-library/resource-library.ts +51 -0
- package/src/resources/zero-trust/resource-library.ts +3 -0
- package/src/resources/zero-trust/zero-trust.ts +6 -0
- package/src/resources/zones/custom-nameservers.ts +5 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { APIResource } from "../../../resource.js";
|
|
2
|
+
import * as Core from "../../../core.js";
|
|
3
|
+
export declare class SpendingLimit extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Configure a spending limit with amount, strategy, and duration.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* const spendingLimit =
|
|
10
|
+
* await client.aiGateway.billing.spendingLimit.create({
|
|
11
|
+
* account_id: 'account_id',
|
|
12
|
+
* amount: 10000,
|
|
13
|
+
* duration: 'monthly',
|
|
14
|
+
* strategy: 'fixed',
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
create(params: SpendingLimitCreateParams, options?: Core.RequestOptions): Core.APIPromise<SpendingLimitCreateResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Remove the spending limit for the account.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* const spendingLimit =
|
|
25
|
+
* await client.aiGateway.billing.spendingLimit.delete({
|
|
26
|
+
* account_id: 'account_id',
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
delete(params: SpendingLimitDeleteParams, options?: Core.RequestOptions): Core.APIPromise<SpendingLimitDeleteResponse>;
|
|
31
|
+
/**
|
|
32
|
+
* Retrieve the current spending limit configuration for the account.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```ts
|
|
36
|
+
* const spendingLimit =
|
|
37
|
+
* await client.aiGateway.billing.spendingLimit.get({
|
|
38
|
+
* account_id: 'account_id',
|
|
39
|
+
* });
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
get(params: SpendingLimitGetParams, options?: Core.RequestOptions): Core.APIPromise<SpendingLimitGetResponse>;
|
|
43
|
+
}
|
|
44
|
+
export type SpendingLimitCreateResponse = unknown;
|
|
45
|
+
export type SpendingLimitDeleteResponse = unknown;
|
|
46
|
+
export interface SpendingLimitGetResponse {
|
|
47
|
+
config: SpendingLimitGetResponse.Config;
|
|
48
|
+
enabled: boolean;
|
|
49
|
+
}
|
|
50
|
+
export declare namespace SpendingLimitGetResponse {
|
|
51
|
+
interface Config {
|
|
52
|
+
amount: number | null;
|
|
53
|
+
duration: string | null;
|
|
54
|
+
strategy: string | null;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
export interface SpendingLimitCreateParams {
|
|
58
|
+
/**
|
|
59
|
+
* Path param: Cloudflare account ID.
|
|
60
|
+
*/
|
|
61
|
+
account_id: string;
|
|
62
|
+
/**
|
|
63
|
+
* Body param: Spending limit amount in cents (min 100).
|
|
64
|
+
*/
|
|
65
|
+
amount: number;
|
|
66
|
+
/**
|
|
67
|
+
* Body param: Spending limit duration.
|
|
68
|
+
*/
|
|
69
|
+
duration: 'daily' | 'weekly' | 'monthly';
|
|
70
|
+
/**
|
|
71
|
+
* Body param: Spending limit strategy.
|
|
72
|
+
*/
|
|
73
|
+
strategy: 'fixed' | 'sliding';
|
|
74
|
+
}
|
|
75
|
+
export interface SpendingLimitDeleteParams {
|
|
76
|
+
/**
|
|
77
|
+
* Cloudflare account ID.
|
|
78
|
+
*/
|
|
79
|
+
account_id: string;
|
|
80
|
+
}
|
|
81
|
+
export interface SpendingLimitGetParams {
|
|
82
|
+
/**
|
|
83
|
+
* Cloudflare account ID.
|
|
84
|
+
*/
|
|
85
|
+
account_id: string;
|
|
86
|
+
}
|
|
87
|
+
export declare namespace SpendingLimit {
|
|
88
|
+
export { type SpendingLimitCreateResponse as SpendingLimitCreateResponse, type SpendingLimitDeleteResponse as SpendingLimitDeleteResponse, type SpendingLimitGetResponse as SpendingLimitGetResponse, type SpendingLimitCreateParams as SpendingLimitCreateParams, type SpendingLimitDeleteParams as SpendingLimitDeleteParams, type SpendingLimitGetParams as SpendingLimitGetParams, };
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=spending-limit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spending-limit.d.ts","sourceRoot":"","sources":["../../../src/resources/ai-gateway/billing/spending-limit.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,eAAe,CAAC;AAEtC,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,MAAM,EAAE,yBAAyB,EACjC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,2BAA2B,CAAC;IAU/C;;;;;;;;;;OAUG;IACH,MAAM,CACJ,MAAM,EAAE,yBAAyB,EACjC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,2BAA2B,CAAC;IAU/C;;;;;;;;;;OAUG;IACH,GAAG,CACD,MAAM,EAAE,sBAAsB,EAC9B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,wBAAwB,CAAC;CAS7C;AAED,MAAM,MAAM,2BAA2B,GAAG,OAAO,CAAC;AAElD,MAAM,MAAM,2BAA2B,GAAG,OAAO,CAAC;AAElD,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,wBAAwB,CAAC,MAAM,CAAC;IAExC,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,yBAAiB,wBAAwB,CAAC;IACxC,UAAiB,MAAM;QACrB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;QAEtB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;QAExB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;KACzB;CACF;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,QAAQ,EAAE,OAAO,GAAG,QAAQ,GAAG,SAAS,CAAC;IAEzC;;OAEG;IACH,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAC;CAC/B;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.SpendingLimit = void 0;
|
|
5
|
+
const resource_1 = require("../../../resource.js");
|
|
6
|
+
class SpendingLimit extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Configure a spending limit with amount, strategy, and duration.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const spendingLimit =
|
|
13
|
+
* await client.aiGateway.billing.spendingLimit.create({
|
|
14
|
+
* account_id: 'account_id',
|
|
15
|
+
* amount: 10000,
|
|
16
|
+
* duration: 'monthly',
|
|
17
|
+
* strategy: 'fixed',
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
create(params, options) {
|
|
22
|
+
const { account_id, ...body } = params;
|
|
23
|
+
return this._client.post(`/accounts/${account_id}/ai-gateway/billing/spending-limit`, {
|
|
24
|
+
body,
|
|
25
|
+
...options,
|
|
26
|
+
})._thenUnwrap((obj) => obj.result);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Remove the spending limit for the account.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const spendingLimit =
|
|
34
|
+
* await client.aiGateway.billing.spendingLimit.delete({
|
|
35
|
+
* account_id: 'account_id',
|
|
36
|
+
* });
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
delete(params, options) {
|
|
40
|
+
const { account_id } = params;
|
|
41
|
+
return this._client.delete(`/accounts/${account_id}/ai-gateway/billing/spending-limit`, options)._thenUnwrap((obj) => obj.result);
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Retrieve the current spending limit configuration for the account.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```ts
|
|
48
|
+
* const spendingLimit =
|
|
49
|
+
* await client.aiGateway.billing.spendingLimit.get({
|
|
50
|
+
* account_id: 'account_id',
|
|
51
|
+
* });
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
get(params, options) {
|
|
55
|
+
const { account_id } = params;
|
|
56
|
+
return this._client.get(`/accounts/${account_id}/ai-gateway/billing/spending-limit`, options)._thenUnwrap((obj) => obj.result);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
exports.SpendingLimit = SpendingLimit;
|
|
60
|
+
//# sourceMappingURL=spending-limit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spending-limit.js","sourceRoot":"","sources":["../../../src/resources/ai-gateway/billing/spending-limit.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,mDAAgD;AAGhD,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,MAAiC,EACjC,OAA6B;QAE7B,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACvC,OACE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,UAAU,oCAAoC,EAAE;YAC7E,IAAI;YACJ,GAAG,OAAO;SACX,CACF,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,MAAiC,EACjC,OAA6B;QAE7B,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC;QAC9B,OACE,IAAI,CAAC,OAAO,CAAC,MAAM,CACjB,aAAa,UAAU,oCAAoC,EAC3D,OAAO,CAEV,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;IAED;;;;;;;;;;OAUG;IACH,GAAG,CACD,MAA8B,EAC9B,OAA6B;QAE7B,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC;QAC9B,OACE,IAAI,CAAC,OAAO,CAAC,GAAG,CACd,aAAa,UAAU,oCAAoC,EAC3D,OAAO,CAEV,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;CACF;AA3ED,sCA2EC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../resource.mjs";
|
|
3
|
+
export class SpendingLimit extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Configure a spending limit with amount, strategy, and duration.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* const spendingLimit =
|
|
10
|
+
* await client.aiGateway.billing.spendingLimit.create({
|
|
11
|
+
* account_id: 'account_id',
|
|
12
|
+
* amount: 10000,
|
|
13
|
+
* duration: 'monthly',
|
|
14
|
+
* strategy: 'fixed',
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
create(params, options) {
|
|
19
|
+
const { account_id, ...body } = params;
|
|
20
|
+
return this._client.post(`/accounts/${account_id}/ai-gateway/billing/spending-limit`, {
|
|
21
|
+
body,
|
|
22
|
+
...options,
|
|
23
|
+
})._thenUnwrap((obj) => obj.result);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Remove the spending limit for the account.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const spendingLimit =
|
|
31
|
+
* await client.aiGateway.billing.spendingLimit.delete({
|
|
32
|
+
* account_id: 'account_id',
|
|
33
|
+
* });
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
delete(params, options) {
|
|
37
|
+
const { account_id } = params;
|
|
38
|
+
return this._client.delete(`/accounts/${account_id}/ai-gateway/billing/spending-limit`, options)._thenUnwrap((obj) => obj.result);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Retrieve the current spending limit configuration for the account.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```ts
|
|
45
|
+
* const spendingLimit =
|
|
46
|
+
* await client.aiGateway.billing.spendingLimit.get({
|
|
47
|
+
* account_id: 'account_id',
|
|
48
|
+
* });
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
get(params, options) {
|
|
52
|
+
const { account_id } = params;
|
|
53
|
+
return this._client.get(`/accounts/${account_id}/ai-gateway/billing/spending-limit`, options)._thenUnwrap((obj) => obj.result);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=spending-limit.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spending-limit.mjs","sourceRoot":"","sources":["../../../src/resources/ai-gateway/billing/spending-limit.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,MAAiC,EACjC,OAA6B;QAE7B,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACvC,OACE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,UAAU,oCAAoC,EAAE;YAC7E,IAAI;YACJ,GAAG,OAAO;SACX,CACF,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,MAAiC,EACjC,OAA6B;QAE7B,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC;QAC9B,OACE,IAAI,CAAC,OAAO,CAAC,MAAM,CACjB,aAAa,UAAU,oCAAoC,EAC3D,OAAO,CAEV,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;IAED;;;;;;;;;;OAUG;IACH,GAAG,CACD,MAA8B,EAC9B,OAA6B;QAE7B,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC;QAC9B,OACE,IAAI,CAAC,OAAO,CAAC,GAAG,CACd,aAAa,UAAU,oCAAoC,EAC3D,OAAO,CAEV,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;CACF"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { APIResource } from "../../../../resource.js";
|
|
2
|
+
import * as Core from "../../../../core.js";
|
|
3
|
+
export declare class Config extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Configure auto top-up with a balance threshold and top-up amount.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* const config =
|
|
10
|
+
* await client.aiGateway.billing.topup.config.create({
|
|
11
|
+
* account_id: 'account_id',
|
|
12
|
+
* amount: 5000,
|
|
13
|
+
* threshold: 500,
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
create(params: ConfigCreateParams, options?: Core.RequestOptions): Core.APIPromise<ConfigCreateResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Remove the auto top-up configuration for the account.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* const config =
|
|
24
|
+
* await client.aiGateway.billing.topup.config.delete({
|
|
25
|
+
* account_id: 'account_id',
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
delete(params: ConfigDeleteParams, options?: Core.RequestOptions): Core.APIPromise<ConfigDeleteResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* Retrieve the current auto top-up threshold, amount, and any error state.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* const config =
|
|
36
|
+
* await client.aiGateway.billing.topup.config.get({
|
|
37
|
+
* account_id: 'account_id',
|
|
38
|
+
* });
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
get(params: ConfigGetParams, options?: Core.RequestOptions): Core.APIPromise<ConfigGetResponse>;
|
|
42
|
+
}
|
|
43
|
+
export interface ConfigCreateResponse {
|
|
44
|
+
amount: number;
|
|
45
|
+
threshold: number;
|
|
46
|
+
}
|
|
47
|
+
export type ConfigDeleteResponse = unknown;
|
|
48
|
+
export interface ConfigGetResponse {
|
|
49
|
+
amount: number | null;
|
|
50
|
+
disabledReason: string | null;
|
|
51
|
+
error: string | null;
|
|
52
|
+
lastFailedAt: number | null;
|
|
53
|
+
threshold: number | null;
|
|
54
|
+
}
|
|
55
|
+
export interface ConfigCreateParams {
|
|
56
|
+
/**
|
|
57
|
+
* Path param: Cloudflare account ID.
|
|
58
|
+
*/
|
|
59
|
+
account_id: string;
|
|
60
|
+
/**
|
|
61
|
+
* Body param: Auto top-up amount in cents (min 1000).
|
|
62
|
+
*/
|
|
63
|
+
amount: number;
|
|
64
|
+
/**
|
|
65
|
+
* Body param: Balance threshold in cents that triggers auto top-up (min 500).
|
|
66
|
+
*/
|
|
67
|
+
threshold: number;
|
|
68
|
+
}
|
|
69
|
+
export interface ConfigDeleteParams {
|
|
70
|
+
/**
|
|
71
|
+
* Cloudflare account ID.
|
|
72
|
+
*/
|
|
73
|
+
account_id: string;
|
|
74
|
+
}
|
|
75
|
+
export interface ConfigGetParams {
|
|
76
|
+
/**
|
|
77
|
+
* Cloudflare account ID.
|
|
78
|
+
*/
|
|
79
|
+
account_id: string;
|
|
80
|
+
}
|
|
81
|
+
export declare namespace Config {
|
|
82
|
+
export { type ConfigCreateResponse as ConfigCreateResponse, type ConfigDeleteResponse as ConfigDeleteResponse, type ConfigGetResponse as ConfigGetResponse, type ConfigCreateParams as ConfigCreateParams, type ConfigDeleteParams as ConfigDeleteParams, type ConfigGetParams as ConfigGetParams, };
|
|
83
|
+
}
|
|
84
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../src/resources/ai-gateway/billing/topup/config.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,KAAK,IAAI,MAAM,kBAAkB,CAAC;AAEzC,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,MAAM,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,oBAAoB,CAAC;IAUxG;;;;;;;;;;OAUG;IACH,MAAM,CAAC,MAAM,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,oBAAoB,CAAC;IAUxG;;;;;;;;;;OAUG;IACH,GAAG,CAAC,MAAM,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC;CAShG;AAED,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC;IAEf,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC;AAE3C,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Config = void 0;
|
|
5
|
+
const resource_1 = require("../../../../resource.js");
|
|
6
|
+
class Config extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Configure auto top-up with a balance threshold and top-up amount.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const config =
|
|
13
|
+
* await client.aiGateway.billing.topup.config.create({
|
|
14
|
+
* account_id: 'account_id',
|
|
15
|
+
* amount: 5000,
|
|
16
|
+
* threshold: 500,
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
create(params, options) {
|
|
21
|
+
const { account_id, ...body } = params;
|
|
22
|
+
return this._client.post(`/accounts/${account_id}/ai-gateway/billing/topup/config`, {
|
|
23
|
+
body,
|
|
24
|
+
...options,
|
|
25
|
+
})._thenUnwrap((obj) => obj.result);
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Remove the auto top-up configuration for the account.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* const config =
|
|
33
|
+
* await client.aiGateway.billing.topup.config.delete({
|
|
34
|
+
* account_id: 'account_id',
|
|
35
|
+
* });
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
delete(params, options) {
|
|
39
|
+
const { account_id } = params;
|
|
40
|
+
return this._client.delete(`/accounts/${account_id}/ai-gateway/billing/topup/config`, options)._thenUnwrap((obj) => obj.result);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Retrieve the current auto top-up threshold, amount, and any error state.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```ts
|
|
47
|
+
* const config =
|
|
48
|
+
* await client.aiGateway.billing.topup.config.get({
|
|
49
|
+
* account_id: 'account_id',
|
|
50
|
+
* });
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
get(params, options) {
|
|
54
|
+
const { account_id } = params;
|
|
55
|
+
return this._client.get(`/accounts/${account_id}/ai-gateway/billing/topup/config`, options)._thenUnwrap((obj) => obj.result);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
exports.Config = Config;
|
|
59
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../src/resources/ai-gateway/billing/topup/config.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sDAAmD;AAGnD,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,MAA0B,EAAE,OAA6B;QAC9D,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACvC,OACE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,UAAU,kCAAkC,EAAE;YAC3E,IAAI;YACJ,GAAG,OAAO;SACX,CACF,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,MAA0B,EAAE,OAA6B;QAC9D,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC;QAC9B,OACE,IAAI,CAAC,OAAO,CAAC,MAAM,CACjB,aAAa,UAAU,kCAAkC,EACzD,OAAO,CAEV,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;IAED;;;;;;;;;;OAUG;IACH,GAAG,CAAC,MAAuB,EAAE,OAA6B;QACxD,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC;QAC9B,OACE,IAAI,CAAC,OAAO,CAAC,GAAG,CACd,aAAa,UAAU,kCAAkC,EACzD,OAAO,CAEV,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;CACF;AAjED,wBAiEC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../../resource.mjs";
|
|
3
|
+
export class Config extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Configure auto top-up with a balance threshold and top-up amount.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* const config =
|
|
10
|
+
* await client.aiGateway.billing.topup.config.create({
|
|
11
|
+
* account_id: 'account_id',
|
|
12
|
+
* amount: 5000,
|
|
13
|
+
* threshold: 500,
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
create(params, options) {
|
|
18
|
+
const { account_id, ...body } = params;
|
|
19
|
+
return this._client.post(`/accounts/${account_id}/ai-gateway/billing/topup/config`, {
|
|
20
|
+
body,
|
|
21
|
+
...options,
|
|
22
|
+
})._thenUnwrap((obj) => obj.result);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Remove the auto top-up configuration for the account.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* const config =
|
|
30
|
+
* await client.aiGateway.billing.topup.config.delete({
|
|
31
|
+
* account_id: 'account_id',
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
delete(params, options) {
|
|
36
|
+
const { account_id } = params;
|
|
37
|
+
return this._client.delete(`/accounts/${account_id}/ai-gateway/billing/topup/config`, options)._thenUnwrap((obj) => obj.result);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Retrieve the current auto top-up threshold, amount, and any error state.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```ts
|
|
44
|
+
* const config =
|
|
45
|
+
* await client.aiGateway.billing.topup.config.get({
|
|
46
|
+
* account_id: 'account_id',
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
get(params, options) {
|
|
51
|
+
const { account_id } = params;
|
|
52
|
+
return this._client.get(`/accounts/${account_id}/ai-gateway/billing/topup/config`, options)._thenUnwrap((obj) => obj.result);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=config.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.mjs","sourceRoot":"","sources":["../../../../src/resources/ai-gateway/billing/topup/config.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,MAA0B,EAAE,OAA6B;QAC9D,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACvC,OACE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,UAAU,kCAAkC,EAAE;YAC3E,IAAI;YACJ,GAAG,OAAO;SACX,CACF,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,MAA0B,EAAE,OAA6B;QAC9D,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC;QAC9B,OACE,IAAI,CAAC,OAAO,CAAC,MAAM,CACjB,aAAa,UAAU,kCAAkC,EACzD,OAAO,CAEV,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;IAED;;;;;;;;;;OAUG;IACH,GAAG,CAAC,MAAuB,EAAE,OAA6B;QACxD,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC;QAC9B,OACE,IAAI,CAAC,OAAO,CAAC,GAAG,CACd,aAAa,UAAU,kCAAkC,EACzD,OAAO,CAEV,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;CACF"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Config, type ConfigCreateResponse, type ConfigDeleteResponse, type ConfigGetResponse, type ConfigCreateParams, type ConfigDeleteParams, type ConfigGetParams, } from "./config.js";
|
|
2
|
+
export { Topup, type TopupCreateResponse, type TopupStatusResponse, type TopupCreateParams, type TopupStatusParams, } from "./topup.js";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/resources/ai-gateway/billing/topup/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,MAAM,EACN,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,eAAe,GACrB,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,KAAK,EACL,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,GACvB,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Topup = exports.Config = void 0;
|
|
5
|
+
var config_1 = require("./config.js");
|
|
6
|
+
Object.defineProperty(exports, "Config", { enumerable: true, get: function () { return config_1.Config; } });
|
|
7
|
+
var topup_1 = require("./topup.js");
|
|
8
|
+
Object.defineProperty(exports, "Topup", { enumerable: true, get: function () { return topup_1.Topup; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/resources/ai-gateway/billing/topup/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAQkB;AAPhB,gGAAA,MAAM,OAAA;AAQR,oCAMiB;AALf,8FAAA,KAAK,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../../src/resources/ai-gateway/billing/topup/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,MAAM,GAOP;OACM,EACL,KAAK,GAKN"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { APIResource } from "../../../../resource.js";
|
|
2
|
+
import * as Core from "../../../../core.js";
|
|
3
|
+
import * as ConfigAPI from "./config.js";
|
|
4
|
+
import { Config, ConfigCreateParams, ConfigCreateResponse, ConfigDeleteParams, ConfigDeleteResponse, ConfigGetParams, ConfigGetResponse } from "./config.js";
|
|
5
|
+
export declare class Topup extends APIResource {
|
|
6
|
+
config: ConfigAPI.Config;
|
|
7
|
+
/**
|
|
8
|
+
* Create a credit top-up via Stripe PaymentIntent for the given account.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const topup = await client.aiGateway.billing.topup.create({
|
|
13
|
+
* account_id: 'account_id',
|
|
14
|
+
* amount: 5000,
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
create(params: TopupCreateParams, options?: Core.RequestOptions): Core.APIPromise<TopupCreateResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Get the payment processing status of a top-up by its invoice ID.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* const response =
|
|
25
|
+
* await client.aiGateway.billing.topup.status({
|
|
26
|
+
* account_id: 'account_id',
|
|
27
|
+
* payment_intent_id: 'in_1abc',
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
status(params: TopupStatusParams, options?: Core.RequestOptions): Core.APIPromise<TopupStatusResponse>;
|
|
32
|
+
}
|
|
33
|
+
export interface TopupCreateResponse {
|
|
34
|
+
/**
|
|
35
|
+
* Stripe PaymentIntent client secret.
|
|
36
|
+
*/
|
|
37
|
+
client_secret: string | null;
|
|
38
|
+
/**
|
|
39
|
+
* Whether the user was already onboarded.
|
|
40
|
+
*/
|
|
41
|
+
onboarding: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Stripe invoice ID.
|
|
44
|
+
*/
|
|
45
|
+
payment_intent_id: string;
|
|
46
|
+
/**
|
|
47
|
+
* Card brand (visa, mastercard, etc.).
|
|
48
|
+
*/
|
|
49
|
+
brand?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Last 4 digits of card.
|
|
52
|
+
*/
|
|
53
|
+
last4?: string;
|
|
54
|
+
}
|
|
55
|
+
export interface TopupStatusResponse {
|
|
56
|
+
payment_intent_id: string;
|
|
57
|
+
status: 'completed' | 'pending';
|
|
58
|
+
}
|
|
59
|
+
export interface TopupCreateParams {
|
|
60
|
+
/**
|
|
61
|
+
* Path param: Cloudflare account ID.
|
|
62
|
+
*/
|
|
63
|
+
account_id: string;
|
|
64
|
+
/**
|
|
65
|
+
* Body param: Top-up amount in cents (min 1000).
|
|
66
|
+
*/
|
|
67
|
+
amount: number;
|
|
68
|
+
}
|
|
69
|
+
export interface TopupStatusParams {
|
|
70
|
+
/**
|
|
71
|
+
* Path param: Cloudflare account ID.
|
|
72
|
+
*/
|
|
73
|
+
account_id: string;
|
|
74
|
+
/**
|
|
75
|
+
* Body param: Stripe invoice ID to check status for.
|
|
76
|
+
*/
|
|
77
|
+
payment_intent_id: string;
|
|
78
|
+
}
|
|
79
|
+
export declare namespace Topup {
|
|
80
|
+
export { type TopupCreateResponse as TopupCreateResponse, type TopupStatusResponse as TopupStatusResponse, type TopupCreateParams as TopupCreateParams, type TopupStatusParams as TopupStatusParams, };
|
|
81
|
+
export { Config as Config, type ConfigCreateResponse as ConfigCreateResponse, type ConfigDeleteResponse as ConfigDeleteResponse, type ConfigGetResponse as ConfigGetResponse, type ConfigCreateParams as ConfigCreateParams, type ConfigDeleteParams as ConfigDeleteParams, type ConfigGetParams as ConfigGetParams, };
|
|
82
|
+
}
|
|
83
|
+
//# sourceMappingURL=topup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"topup.d.ts","sourceRoot":"","sources":["../../../../src/resources/ai-gateway/billing/topup/topup.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,KAAK,IAAI,MAAM,kBAAkB,CAAC;AACzC,OAAO,KAAK,SAAS,MAAM,UAAU,CAAC;AACtC,OAAO,EACL,MAAM,EACN,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACpB,eAAe,EACf,iBAAiB,EAClB,MAAM,UAAU,CAAC;AAElB,qBAAa,KAAM,SAAQ,WAAW;IACpC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAE9D;;;;;;;;;;OAUG;IACH,MAAM,CAAC,MAAM,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,mBAAmB,CAAC;IAUtG;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,MAAM,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,mBAAmB,CAAC;CASvG;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,mBAAmB;IAClC,iBAAiB,EAAE,MAAM,CAAC;IAE1B,MAAM,EAAE,WAAW,GAAG,SAAS,CAAC;CACjC;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAID,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
20
|
+
if (mod && mod.__esModule) return mod;
|
|
21
|
+
var result = {};
|
|
22
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
23
|
+
__setModuleDefault(result, mod);
|
|
24
|
+
return result;
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.Topup = void 0;
|
|
28
|
+
const resource_1 = require("../../../../resource.js");
|
|
29
|
+
const ConfigAPI = __importStar(require("./config.js"));
|
|
30
|
+
const config_1 = require("./config.js");
|
|
31
|
+
class Topup extends resource_1.APIResource {
|
|
32
|
+
constructor() {
|
|
33
|
+
super(...arguments);
|
|
34
|
+
this.config = new ConfigAPI.Config(this._client);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Create a credit top-up via Stripe PaymentIntent for the given account.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* const topup = await client.aiGateway.billing.topup.create({
|
|
42
|
+
* account_id: 'account_id',
|
|
43
|
+
* amount: 5000,
|
|
44
|
+
* });
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
create(params, options) {
|
|
48
|
+
const { account_id, ...body } = params;
|
|
49
|
+
return this._client.post(`/accounts/${account_id}/ai-gateway/billing/topup`, {
|
|
50
|
+
body,
|
|
51
|
+
...options,
|
|
52
|
+
})._thenUnwrap((obj) => obj.result);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Get the payment processing status of a top-up by its invoice ID.
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```ts
|
|
59
|
+
* const response =
|
|
60
|
+
* await client.aiGateway.billing.topup.status({
|
|
61
|
+
* account_id: 'account_id',
|
|
62
|
+
* payment_intent_id: 'in_1abc',
|
|
63
|
+
* });
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
status(params, options) {
|
|
67
|
+
const { account_id, ...body } = params;
|
|
68
|
+
return this._client.post(`/accounts/${account_id}/ai-gateway/billing/topup/status`, {
|
|
69
|
+
body,
|
|
70
|
+
...options,
|
|
71
|
+
})._thenUnwrap((obj) => obj.result);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
exports.Topup = Topup;
|
|
75
|
+
Topup.Config = config_1.Config;
|
|
76
|
+
//# sourceMappingURL=topup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"topup.js","sourceRoot":"","sources":["../../../../src/resources/ai-gateway/billing/topup/topup.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,sDAAmD;AAEnD,uDAAsC;AACtC,wCAQkB;AAElB,MAAa,KAAM,SAAQ,sBAAW;IAAtC;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA4ChE,CAAC;IA1CC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,MAAyB,EAAE,OAA6B;QAC7D,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACvC,OACE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,UAAU,2BAA2B,EAAE;YACpE,IAAI;YACJ,GAAG,OAAO;SACX,CACF,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,MAAyB,EAAE,OAA6B;QAC7D,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACvC,OACE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,UAAU,kCAAkC,EAAE;YAC3E,IAAI;YACJ,GAAG,OAAO;SACX,CACF,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;CACF;AA7CD,sBA6CC;AA2DD,KAAK,CAAC,MAAM,GAAG,eAAM,CAAC"}
|