cloudflare 4.4.1 → 4.5.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 +59 -0
- package/README.md +2 -4
- package/core.d.ts +2 -2
- package/core.d.ts.map +1 -1
- package/core.js +5 -3
- package/core.js.map +1 -1
- package/core.mjs +5 -3
- package/core.mjs.map +1 -1
- package/index.d.mts +3 -1
- package/index.d.ts +3 -1
- package/index.d.ts.map +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -1
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/accounts/tokens/index.d.ts +1 -1
- package/resources/accounts/tokens/index.d.ts.map +1 -1
- package/resources/accounts/tokens/index.js +1 -2
- package/resources/accounts/tokens/index.js.map +1 -1
- package/resources/accounts/tokens/index.mjs +1 -1
- package/resources/accounts/tokens/index.mjs.map +1 -1
- package/resources/accounts/tokens/permission-groups.d.ts +41 -22
- package/resources/accounts/tokens/permission-groups.d.ts.map +1 -1
- package/resources/accounts/tokens/permission-groups.js +12 -15
- package/resources/accounts/tokens/permission-groups.js.map +1 -1
- package/resources/accounts/tokens/permission-groups.mjs +11 -13
- package/resources/accounts/tokens/permission-groups.mjs.map +1 -1
- package/resources/accounts/tokens/tokens.d.ts +8 -19
- package/resources/accounts/tokens/tokens.d.ts.map +1 -1
- package/resources/accounts/tokens/tokens.js +2 -14
- package/resources/accounts/tokens/tokens.js.map +1 -1
- package/resources/accounts/tokens/tokens.mjs +3 -15
- package/resources/accounts/tokens/tokens.mjs.map +1 -1
- package/resources/ai/ai.d.ts +6 -2
- package/resources/ai/ai.d.ts.map +1 -1
- package/resources/ai-gateway/logs.d.ts +3 -1
- package/resources/ai-gateway/logs.d.ts.map +1 -1
- package/resources/alerting/available-alerts.d.ts +3 -1
- package/resources/alerting/available-alerts.d.ts.map +1 -1
- package/resources/alerting/destinations/eligible.d.ts +3 -1
- package/resources/alerting/destinations/eligible.d.ts.map +1 -1
- package/resources/api-gateway/discovery/operations.d.ts +6 -2
- package/resources/api-gateway/discovery/operations.d.ts.map +1 -1
- package/resources/api-gateway/operations/schema-validation.d.ts +9 -29
- package/resources/api-gateway/operations/schema-validation.d.ts.map +1 -1
- package/resources/api-gateway/operations/schema-validation.js +3 -27
- package/resources/api-gateway/operations/schema-validation.js.map +1 -1
- package/resources/api-gateway/operations/schema-validation.mjs +3 -27
- package/resources/api-gateway/operations/schema-validation.mjs.map +1 -1
- package/resources/api-gateway/settings/schema-validation.d.ts +3 -22
- package/resources/api-gateway/settings/schema-validation.d.ts.map +1 -1
- package/resources/api-gateway/settings/schema-validation.js +3 -22
- package/resources/api-gateway/settings/schema-validation.js.map +1 -1
- package/resources/api-gateway/settings/schema-validation.mjs +3 -22
- package/resources/api-gateway/settings/schema-validation.mjs.map +1 -1
- package/resources/api-gateway/user-schemas/hosts.d.ts +1 -9
- package/resources/api-gateway/user-schemas/hosts.d.ts.map +1 -1
- package/resources/api-gateway/user-schemas/hosts.js +1 -9
- package/resources/api-gateway/user-schemas/hosts.js.map +1 -1
- package/resources/api-gateway/user-schemas/hosts.mjs +1 -9
- package/resources/api-gateway/user-schemas/hosts.mjs.map +1 -1
- package/resources/api-gateway/user-schemas/operations.d.ts +1 -10
- package/resources/api-gateway/user-schemas/operations.d.ts.map +1 -1
- package/resources/api-gateway/user-schemas/operations.js +1 -10
- package/resources/api-gateway/user-schemas/operations.js.map +1 -1
- package/resources/api-gateway/user-schemas/operations.mjs +1 -10
- package/resources/api-gateway/user-schemas/operations.mjs.map +1 -1
- package/resources/api-gateway/user-schemas/user-schemas.d.ts +5 -42
- package/resources/api-gateway/user-schemas/user-schemas.d.ts.map +1 -1
- package/resources/api-gateway/user-schemas/user-schemas.js +5 -42
- package/resources/api-gateway/user-schemas/user-schemas.js.map +1 -1
- package/resources/api-gateway/user-schemas/user-schemas.mjs +5 -42
- package/resources/api-gateway/user-schemas/user-schemas.mjs.map +1 -1
- package/resources/bot-management.d.ts +36 -24
- package/resources/bot-management.d.ts.map +1 -1
- package/resources/brand-protection/brand-protection.d.ts +205 -0
- package/resources/brand-protection/brand-protection.d.ts.map +1 -0
- package/resources/brand-protection/brand-protection.js +85 -0
- package/resources/brand-protection/brand-protection.js.map +1 -0
- package/resources/brand-protection/brand-protection.mjs +58 -0
- package/resources/brand-protection/brand-protection.mjs.map +1 -0
- package/resources/brand-protection/index.d.ts +6 -0
- package/resources/brand-protection/index.d.ts.map +1 -0
- package/resources/brand-protection/index.js +15 -0
- package/resources/brand-protection/index.js.map +1 -0
- package/resources/brand-protection/index.mjs +7 -0
- package/resources/brand-protection/index.mjs.map +1 -0
- package/resources/brand-protection/logo-matches.d.ts +4 -0
- package/resources/brand-protection/logo-matches.d.ts.map +1 -0
- package/resources/brand-protection/logo-matches.js +9 -0
- package/resources/brand-protection/logo-matches.js.map +1 -0
- package/resources/brand-protection/logo-matches.mjs +5 -0
- package/resources/brand-protection/logo-matches.mjs.map +1 -0
- package/resources/brand-protection/logos.d.ts +4 -0
- package/resources/brand-protection/logos.d.ts.map +1 -0
- package/resources/brand-protection/logos.js +9 -0
- package/resources/brand-protection/logos.js.map +1 -0
- package/resources/brand-protection/logos.mjs +5 -0
- package/resources/brand-protection/logos.mjs.map +1 -0
- package/resources/brand-protection/matches.d.ts +4 -0
- package/resources/brand-protection/matches.d.ts.map +1 -0
- package/resources/brand-protection/matches.js +9 -0
- package/resources/brand-protection/matches.js.map +1 -0
- package/resources/brand-protection/matches.mjs +5 -0
- package/resources/brand-protection/matches.mjs.map +1 -0
- package/resources/brand-protection/queries.d.ts +4 -0
- package/resources/brand-protection/queries.d.ts.map +1 -0
- package/resources/brand-protection/queries.js +9 -0
- package/resources/brand-protection/queries.js.map +1 -0
- package/resources/brand-protection/queries.mjs +5 -0
- package/resources/brand-protection/queries.mjs.map +1 -0
- package/resources/brand-protection.d.ts +1 -188
- package/resources/brand-protection.d.ts.map +1 -1
- package/resources/brand-protection.js +15 -39
- package/resources/brand-protection.js.map +1 -1
- package/resources/brand-protection.mjs +1 -37
- package/resources/brand-protection.mjs.map +1 -1
- package/resources/browser-rendering/content.d.ts +3 -1
- package/resources/browser-rendering/content.d.ts.map +1 -1
- package/resources/browser-rendering/json.d.ts +9 -3
- package/resources/browser-rendering/json.d.ts.map +1 -1
- package/resources/browser-rendering/links.d.ts +3 -1
- package/resources/browser-rendering/links.d.ts.map +1 -1
- package/resources/browser-rendering/markdown.d.ts +3 -1
- package/resources/browser-rendering/markdown.d.ts.map +1 -1
- package/resources/browser-rendering/pdf.d.ts +87 -1
- package/resources/browser-rendering/pdf.d.ts.map +1 -1
- package/resources/browser-rendering/scrape.d.ts +3 -1
- package/resources/browser-rendering/scrape.d.ts.map +1 -1
- package/resources/browser-rendering/screenshot.d.ts +3 -1
- package/resources/browser-rendering/screenshot.d.ts.map +1 -1
- package/resources/browser-rendering/snapshot.d.ts +3 -1
- package/resources/browser-rendering/snapshot.d.ts.map +1 -1
- package/resources/cache/cache.d.ts +3 -1
- package/resources/cache/cache.d.ts.map +1 -1
- package/resources/cloudforce-one/threat-events/threat-events.d.ts +20 -52
- package/resources/cloudforce-one/threat-events/threat-events.d.ts.map +1 -1
- package/resources/cloudforce-one/threat-events/threat-events.js +0 -4
- package/resources/cloudforce-one/threat-events/threat-events.js.map +1 -1
- package/resources/cloudforce-one/threat-events/threat-events.mjs +0 -4
- package/resources/cloudforce-one/threat-events/threat-events.mjs.map +1 -1
- package/resources/custom-hostnames/certificate-pack/certificates.d.ts +3 -1
- package/resources/custom-hostnames/certificate-pack/certificates.d.ts.map +1 -1
- package/resources/custom-hostnames/custom-hostnames.d.ts +21 -7
- package/resources/custom-hostnames/custom-hostnames.d.ts.map +1 -1
- package/resources/dns/records.d.ts +661 -658
- package/resources/dns/records.d.ts.map +1 -1
- package/resources/dns/records.js +3 -0
- package/resources/dns/records.js.map +1 -1
- package/resources/dns/records.mjs +3 -0
- package/resources/dns/records.mjs.map +1 -1
- package/resources/dns-firewall/reverse-dns.d.ts +9 -3
- package/resources/dns-firewall/reverse-dns.d.ts.map +1 -1
- package/resources/email-security/investigate/investigate.d.ts +8 -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/email-security/investigate/move.d.ts +10 -10
- package/resources/email-security/investigate/move.d.ts.map +1 -1
- package/resources/email-security/settings/domains.d.ts +3 -3
- package/resources/email-security/settings/domains.d.ts.map +1 -1
- package/resources/email-security/settings/trusted-domains.d.ts +5 -5
- package/resources/email-security/settings/trusted-domains.d.ts.map +1 -1
- package/resources/firewall/lockdowns.d.ts +2 -2
- package/resources/firewall/ua-rules.d.ts +171 -6
- package/resources/firewall/ua-rules.d.ts.map +1 -1
- package/resources/firewall/ua-rules.js.map +1 -1
- package/resources/firewall/ua-rules.mjs.map +1 -1
- package/resources/firewall/waf/overrides.d.ts +10 -4
- package/resources/firewall/waf/overrides.d.ts.map +1 -1
- package/resources/healthchecks/healthchecks.d.ts +6 -2
- package/resources/healthchecks/healthchecks.d.ts.map +1 -1
- package/resources/hyperdrive/configs.d.ts +15 -0
- package/resources/hyperdrive/configs.d.ts.map +1 -1
- package/resources/hyperdrive/configs.js.map +1 -1
- package/resources/hyperdrive/configs.mjs.map +1 -1
- package/resources/hyperdrive/hyperdrive.d.ts +5 -0
- package/resources/hyperdrive/hyperdrive.d.ts.map +1 -1
- package/resources/hyperdrive/hyperdrive.js.map +1 -1
- package/resources/hyperdrive/hyperdrive.mjs.map +1 -1
- package/resources/images/v1/v1.d.ts +5 -1
- package/resources/images/v1/v1.d.ts.map +1 -1
- package/resources/images/v1/v1.js.map +1 -1
- package/resources/images/v1/v1.mjs.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/kv/namespaces/keys.d.ts +44 -52
- package/resources/kv/namespaces/keys.d.ts.map +1 -1
- package/resources/kv/namespaces/keys.js +3 -4
- package/resources/kv/namespaces/keys.js.map +1 -1
- package/resources/kv/namespaces/keys.mjs +3 -4
- package/resources/kv/namespaces/keys.mjs.map +1 -1
- package/resources/kv/namespaces/metadata.d.ts +2 -5
- package/resources/kv/namespaces/metadata.d.ts.map +1 -1
- package/resources/kv/namespaces/namespaces.d.ts +46 -51
- package/resources/kv/namespaces/namespaces.d.ts.map +1 -1
- package/resources/kv/namespaces/namespaces.js +4 -5
- package/resources/kv/namespaces/namespaces.js.map +1 -1
- package/resources/kv/namespaces/namespaces.mjs +4 -5
- package/resources/kv/namespaces/namespaces.mjs.map +1 -1
- package/resources/kv/namespaces/values.d.ts +10 -12
- package/resources/kv/namespaces/values.d.ts.map +1 -1
- package/resources/kv/namespaces/values.js +1 -7
- package/resources/kv/namespaces/values.js.map +1 -1
- package/resources/kv/namespaces/values.mjs +1 -7
- package/resources/kv/namespaces/values.mjs.map +1 -1
- package/resources/load-balancers/load-balancers.d.ts +60 -20
- package/resources/load-balancers/load-balancers.d.ts.map +1 -1
- package/resources/load-balancers/monitors/monitors.d.ts +12 -4
- package/resources/load-balancers/monitors/monitors.d.ts.map +1 -1
- package/resources/load-balancers/monitors/previews.d.ts +6 -2
- package/resources/load-balancers/monitors/previews.d.ts.map +1 -1
- package/resources/load-balancers/pools/health.d.ts +6 -2
- package/resources/load-balancers/pools/health.d.ts.map +1 -1
- package/resources/load-balancers/previews.d.ts +6 -2
- package/resources/load-balancers/previews.d.ts.map +1 -1
- package/resources/logpush/jobs.d.ts +63 -35
- package/resources/logpush/jobs.d.ts.map +1 -1
- package/resources/logpush/jobs.js +39 -0
- package/resources/logpush/jobs.js.map +1 -1
- package/resources/logpush/jobs.mjs +39 -0
- package/resources/logpush/jobs.mjs.map +1 -1
- package/resources/magic-cloud-networking/catalog-syncs/catalog-syncs.d.ts +15 -5
- package/resources/magic-cloud-networking/catalog-syncs/catalog-syncs.d.ts.map +1 -1
- package/resources/magic-cloud-networking/on-ramps/on-ramps.d.ts +195 -65
- package/resources/magic-cloud-networking/on-ramps/on-ramps.d.ts.map +1 -1
- package/resources/magic-cloud-networking/resources.d.ts +30 -10
- package/resources/magic-cloud-networking/resources.d.ts.map +1 -1
- package/resources/magic-transit/connectors/connectors.d.ts +106 -2
- package/resources/magic-transit/connectors/connectors.d.ts.map +1 -1
- package/resources/magic-transit/connectors/connectors.js +33 -1
- package/resources/magic-transit/connectors/connectors.js.map +1 -1
- package/resources/magic-transit/connectors/connectors.mjs +33 -1
- package/resources/magic-transit/connectors/connectors.mjs.map +1 -1
- package/resources/magic-transit/connectors/index.d.ts +1 -1
- package/resources/magic-transit/connectors/index.d.ts.map +1 -1
- package/resources/magic-transit/connectors/index.js.map +1 -1
- package/resources/magic-transit/connectors/index.mjs.map +1 -1
- package/resources/magic-transit/index.d.ts +1 -1
- package/resources/magic-transit/index.d.ts.map +1 -1
- package/resources/magic-transit/index.js.map +1 -1
- package/resources/magic-transit/index.mjs.map +1 -1
- package/resources/magic-transit/magic-transit.d.ts +2 -2
- package/resources/magic-transit/magic-transit.d.ts.map +1 -1
- package/resources/magic-transit/magic-transit.js.map +1 -1
- package/resources/magic-transit/magic-transit.mjs.map +1 -1
- package/resources/magic-transit/sites/lans.d.ts +6 -2
- package/resources/magic-transit/sites/lans.d.ts.map +1 -1
- package/resources/page-rules.d.ts +12 -4
- package/resources/page-rules.d.ts.map +1 -1
- package/resources/pages/projects/projects.d.ts +237 -79
- package/resources/pages/projects/projects.d.ts.map +1 -1
- package/resources/pages/projects/projects.js.map +1 -1
- package/resources/pages/projects/projects.mjs.map +1 -1
- package/resources/radar/ai/bots/summary.d.ts +3 -1
- package/resources/radar/ai/bots/summary.d.ts.map +1 -1
- package/resources/radar/ai/inference/summary.d.ts +6 -2
- package/resources/radar/ai/inference/summary.d.ts.map +1 -1
- package/resources/radar/as112/summary.d.ts +6 -2
- package/resources/radar/as112/summary.d.ts.map +1 -1
- package/resources/radar/attacks/layer3/summary.d.ts +9 -3
- package/resources/radar/attacks/layer3/summary.d.ts.map +1 -1
- package/resources/radar/attacks/layer7/summary.d.ts +15 -5
- package/resources/radar/attacks/layer7/summary.d.ts.map +1 -1
- package/resources/radar/bots/bots.d.ts +588 -0
- package/resources/radar/bots/bots.d.ts.map +1 -0
- package/resources/radar/bots/bots.js +73 -0
- package/resources/radar/bots/bots.js.map +1 -0
- package/resources/radar/bots/bots.mjs +46 -0
- package/resources/radar/bots/bots.mjs.map +1 -0
- package/resources/radar/bots/index.d.ts +3 -0
- package/resources/radar/bots/index.d.ts.map +1 -0
- package/resources/radar/bots/index.js +9 -0
- package/resources/radar/bots/index.js.map +1 -0
- package/resources/radar/bots/index.mjs +4 -0
- package/resources/radar/bots/index.mjs.map +1 -0
- package/resources/radar/bots/web-crawlers.d.ts +258 -0
- package/resources/radar/bots/web-crawlers.d.ts.map +1 -0
- package/resources/radar/bots/web-crawlers.js +28 -0
- package/resources/radar/bots/web-crawlers.js.map +1 -0
- package/resources/radar/bots/web-crawlers.mjs +24 -0
- package/resources/radar/bots/web-crawlers.mjs.map +1 -0
- package/resources/radar/bots.d.ts +2 -0
- package/resources/radar/bots.d.ts.map +1 -0
- package/resources/radar/bots.js +19 -0
- package/resources/radar/bots.js.map +1 -0
- package/resources/radar/bots.mjs +3 -0
- package/resources/radar/bots.mjs.map +1 -0
- package/resources/radar/dns/summary.d.ts +6 -2
- package/resources/radar/dns/summary.d.ts.map +1 -1
- package/resources/radar/entities/asns.d.ts +0 -12
- package/resources/radar/entities/asns.d.ts.map +1 -1
- package/resources/radar/index.d.ts +1 -0
- package/resources/radar/index.d.ts.map +1 -1
- package/resources/radar/index.js +25 -23
- package/resources/radar/index.js.map +1 -1
- package/resources/radar/index.mjs +1 -0
- package/resources/radar/index.mjs.map +1 -1
- package/resources/radar/radar.d.ts +4 -0
- package/resources/radar/radar.d.ts.map +1 -1
- package/resources/radar/radar.js +4 -0
- package/resources/radar/radar.js.map +1 -1
- package/resources/radar/radar.mjs +4 -0
- package/resources/radar/radar.mjs.map +1 -1
- package/resources/radar/search.d.ts +3 -3
- package/resources/radar/search.d.ts.map +1 -1
- package/resources/radar/search.js +1 -1
- package/resources/radar/search.mjs +1 -1
- package/resources/radar/verified-bots/top.d.ts +2 -9
- package/resources/radar/verified-bots/top.d.ts.map +1 -1
- package/resources/radar/verified-bots/top.js.map +1 -1
- package/resources/radar/verified-bots/top.mjs.map +1 -1
- package/resources/rate-limits.d.ts +4 -4
- package/resources/request-tracers/traces.d.ts +6 -2
- package/resources/request-tracers/traces.d.ts.map +1 -1
- package/resources/rules/index.d.ts +1 -1
- package/resources/rules/index.d.ts.map +1 -1
- package/resources/rules/index.js +2 -1
- package/resources/rules/index.js.map +1 -1
- package/resources/rules/index.mjs +1 -1
- package/resources/rules/index.mjs.map +1 -1
- package/resources/rules/lists/bulk-operations.d.ts +17 -38
- package/resources/rules/lists/bulk-operations.d.ts.map +1 -1
- package/resources/rules/lists/index.d.ts +2 -2
- package/resources/rules/lists/index.d.ts.map +1 -1
- package/resources/rules/lists/index.js +3 -1
- package/resources/rules/lists/index.js.map +1 -1
- package/resources/rules/lists/index.mjs +2 -2
- package/resources/rules/lists/index.mjs.map +1 -1
- package/resources/rules/lists/items.d.ts +114 -159
- package/resources/rules/lists/items.d.ts.map +1 -1
- package/resources/rules/lists/items.js +20 -15
- package/resources/rules/lists/items.js.map +1 -1
- package/resources/rules/lists/items.mjs +18 -14
- package/resources/rules/lists/items.mjs.map +1 -1
- package/resources/rules/lists/lists.d.ts +119 -237
- package/resources/rules/lists/lists.d.ts.map +1 -1
- package/resources/rules/lists/lists.js +13 -4
- package/resources/rules/lists/lists.js.map +1 -1
- package/resources/rules/lists/lists.mjs +12 -4
- package/resources/rules/lists/lists.mjs.map +1 -1
- package/resources/rules/rules.d.ts +2 -2
- package/resources/rules/rules.d.ts.map +1 -1
- package/resources/rules/rules.js +1 -0
- package/resources/rules/rules.js.map +1 -1
- package/resources/rules/rules.mjs +2 -1
- package/resources/rules/rules.mjs.map +1 -1
- package/resources/rulesets/rules.d.ts +36 -12
- package/resources/rulesets/rules.d.ts.map +1 -1
- package/resources/schema-validation/settings/operations.d.ts +6 -2
- package/resources/schema-validation/settings/operations.d.ts.map +1 -1
- package/resources/shared.d.ts +13 -3
- package/resources/shared.d.ts.map +1 -1
- package/resources/spectrum/analytics/events/bytimes.d.ts +9 -3
- package/resources/spectrum/analytics/events/bytimes.d.ts.map +1 -1
- package/resources/spectrum/analytics/events/summaries.d.ts +9 -3
- package/resources/spectrum/analytics/events/summaries.d.ts.map +1 -1
- package/resources/url-scanner/scans.d.ts +6 -2
- package/resources/url-scanner/scans.d.ts.map +1 -1
- package/resources/user/tokens/index.d.ts +1 -1
- package/resources/user/tokens/index.d.ts.map +1 -1
- package/resources/user/tokens/index.js.map +1 -1
- package/resources/user/tokens/index.mjs.map +1 -1
- package/resources/user/tokens/permission-groups.d.ts +12 -1
- package/resources/user/tokens/permission-groups.d.ts.map +1 -1
- package/resources/user/tokens/permission-groups.js +9 -13
- package/resources/user/tokens/permission-groups.js.map +1 -1
- package/resources/user/tokens/permission-groups.mjs +9 -13
- package/resources/user/tokens/permission-groups.mjs.map +1 -1
- package/resources/user/tokens/tokens.d.ts +8 -19
- package/resources/user/tokens/tokens.d.ts.map +1 -1
- package/resources/user/tokens/tokens.js +2 -13
- package/resources/user/tokens/tokens.js.map +1 -1
- package/resources/user/tokens/tokens.mjs +2 -13
- package/resources/user/tokens/tokens.mjs.map +1 -1
- package/resources/workers/assets/upload.d.ts +3 -1
- package/resources/workers/assets/upload.d.ts.map +1 -1
- package/resources/workers/observability/telemetry.d.ts +26 -6
- package/resources/workers/observability/telemetry.d.ts.map +1 -1
- package/resources/workers/scripts/assets/upload.d.ts +3 -1
- package/resources/workers/scripts/assets/upload.d.ts.map +1 -1
- package/resources/workers/scripts/scripts.d.ts +10 -2
- package/resources/workers/scripts/scripts.d.ts.map +1 -1
- package/resources/workers/scripts/scripts.js.map +1 -1
- package/resources/workers/scripts/scripts.mjs.map +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/asset-upload.d.ts +3 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/asset-upload.d.ts.map +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.d.ts +10 -2
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.d.ts.map +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.js.map +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.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/zaraz/config.d.ts +84 -28
- package/resources/zaraz/config.d.ts.map +1 -1
- package/resources/zaraz/history/configs.d.ts +3 -1
- package/resources/zaraz/history/configs.d.ts.map +1 -1
- package/resources/zaraz/zaraz.d.ts +18 -6
- package/resources/zaraz/zaraz.d.ts.map +1 -1
- package/resources/zero-trust/access/applications/applications.d.ts +50 -15
- package/resources/zero-trust/access/applications/applications.d.ts.map +1 -1
- package/resources/zero-trust/access/applications/applications.js.map +1 -1
- package/resources/zero-trust/access/applications/applications.mjs.map +1 -1
- package/resources/zero-trust/access/applications/policies.d.ts +46 -2
- package/resources/zero-trust/access/applications/policies.d.ts.map +1 -1
- package/resources/zero-trust/access/applications/policies.js.map +1 -1
- package/resources/zero-trust/access/applications/policies.mjs.map +1 -1
- package/resources/zero-trust/access/users/active-sessions.d.ts +9 -3
- package/resources/zero-trust/access/users/active-sessions.d.ts.map +1 -1
- package/resources/zero-trust/access/users/last-seen-identity.d.ts +6 -2
- package/resources/zero-trust/access/users/last-seen-identity.d.ts.map +1 -1
- package/resources/zero-trust/devices/devices_.d.ts +1 -1
- package/resources/zero-trust/devices/dex-tests.d.ts +1 -1
- package/resources/zero-trust/devices/dex-tests.js +1 -1
- package/resources/zero-trust/devices/dex-tests.mjs +1 -1
- package/resources/zero-trust/devices/override-codes.d.ts +3 -1
- package/resources/zero-trust/devices/override-codes.d.ts.map +1 -1
- package/resources/zero-trust/devices/registrations.d.ts +4 -4
- package/resources/zero-trust/dex/commands/commands.d.ts +3 -1
- package/resources/zero-trust/dex/commands/commands.d.ts.map +1 -1
- package/resources/zero-trust/dlp/datasets/datasets.d.ts +3 -3
- package/resources/zero-trust/dlp/datasets/datasets.d.ts.map +1 -1
- package/resources/zero-trust/dlp/datasets/upload.d.ts +1 -1
- package/resources/zero-trust/dlp/datasets/upload.d.ts.map +1 -1
- package/resources/zero-trust/dlp/datasets/versions/entries.d.ts +1 -1
- package/resources/zero-trust/dlp/datasets/versions/entries.d.ts.map +1 -1
- package/resources/zero-trust/dlp/datasets/versions/versions.d.ts +1 -1
- package/resources/zero-trust/dlp/datasets/versions/versions.d.ts.map +1 -1
- package/resources/zero-trust/dlp/dlp.d.ts +2 -2
- package/resources/zero-trust/dlp/dlp.d.ts.map +1 -1
- package/resources/zero-trust/dlp/dlp.js +2 -2
- package/resources/zero-trust/dlp/dlp.js.map +1 -1
- package/resources/zero-trust/dlp/dlp.mjs +2 -2
- package/resources/zero-trust/dlp/dlp.mjs.map +1 -1
- package/resources/zero-trust/dlp/email/rules.d.ts +3 -1
- package/resources/zero-trust/dlp/email/rules.d.ts.map +1 -1
- package/resources/zero-trust/dlp/entries/custom.d.ts +219 -0
- package/resources/zero-trust/dlp/entries/custom.d.ts.map +1 -0
- package/resources/zero-trust/dlp/entries/custom.js +68 -0
- package/resources/zero-trust/dlp/entries/custom.js.map +1 -0
- package/resources/zero-trust/dlp/entries/custom.mjs +64 -0
- package/resources/zero-trust/dlp/entries/custom.mjs.map +1 -0
- package/resources/zero-trust/dlp/entries/entries.d.ts +413 -0
- package/resources/zero-trust/dlp/entries/entries.d.ts.map +1 -0
- package/resources/zero-trust/dlp/entries/entries.js +140 -0
- package/resources/zero-trust/dlp/entries/entries.js.map +1 -0
- package/resources/zero-trust/dlp/entries/entries.mjs +112 -0
- package/resources/zero-trust/dlp/entries/entries.mjs.map +1 -0
- package/resources/zero-trust/dlp/entries/index.d.ts +5 -0
- package/resources/zero-trust/dlp/entries/index.d.ts.map +1 -0
- package/resources/zero-trust/dlp/entries/index.js +14 -0
- package/resources/zero-trust/dlp/entries/index.js.map +1 -0
- package/resources/zero-trust/dlp/entries/index.mjs +6 -0
- package/resources/zero-trust/dlp/entries/index.mjs.map +1 -0
- package/resources/zero-trust/dlp/entries/integration.d.ts +98 -0
- package/resources/zero-trust/dlp/entries/integration.d.ts.map +1 -0
- package/resources/zero-trust/dlp/entries/integration.js +65 -0
- package/resources/zero-trust/dlp/entries/integration.js.map +1 -0
- package/resources/zero-trust/dlp/entries/integration.mjs +61 -0
- package/resources/zero-trust/dlp/entries/integration.mjs.map +1 -0
- package/resources/zero-trust/dlp/entries/predefined.d.ts +122 -0
- package/resources/zero-trust/dlp/entries/predefined.d.ts.map +1 -0
- package/resources/zero-trust/dlp/entries/predefined.js +65 -0
- package/resources/zero-trust/dlp/entries/predefined.js.map +1 -0
- package/resources/zero-trust/dlp/entries/predefined.mjs +61 -0
- package/resources/zero-trust/dlp/entries/predefined.mjs.map +1 -0
- package/resources/zero-trust/dlp/entries.d.ts +1 -400
- package/resources/zero-trust/dlp/entries.d.ts.map +1 -1
- package/resources/zero-trust/dlp/entries.js +15 -98
- package/resources/zero-trust/dlp/entries.js.map +1 -1
- package/resources/zero-trust/dlp/entries.mjs +1 -95
- package/resources/zero-trust/dlp/entries.mjs.map +1 -1
- package/resources/zero-trust/dlp/index.d.ts +1 -1
- package/resources/zero-trust/dlp/index.d.ts.map +1 -1
- package/resources/zero-trust/dlp/index.js +6 -6
- package/resources/zero-trust/dlp/index.js.map +1 -1
- package/resources/zero-trust/dlp/index.mjs +1 -1
- package/resources/zero-trust/dlp/profiles/custom.d.ts +15 -5
- package/resources/zero-trust/dlp/profiles/custom.d.ts.map +1 -1
- package/resources/zero-trust/dlp/profiles/index.d.ts +1 -1
- package/resources/zero-trust/dlp/profiles/index.d.ts.map +1 -1
- package/resources/zero-trust/dlp/profiles/index.js.map +1 -1
- package/resources/zero-trust/dlp/profiles/index.mjs.map +1 -1
- package/resources/zero-trust/dlp/profiles/predefined.d.ts +76 -4
- package/resources/zero-trust/dlp/profiles/predefined.d.ts.map +1 -1
- package/resources/zero-trust/dlp/profiles/predefined.js +36 -0
- package/resources/zero-trust/dlp/profiles/predefined.js.map +1 -1
- package/resources/zero-trust/dlp/profiles/predefined.mjs +36 -0
- package/resources/zero-trust/dlp/profiles/predefined.mjs.map +1 -1
- package/resources/zero-trust/dlp/profiles/profiles.d.ts +11 -11
- 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/gateway/configurations/configurations.d.ts +18 -26
- package/resources/zero-trust/gateway/configurations/configurations.d.ts.map +1 -1
- package/resources/zero-trust/gateway/configurations/configurations.js.map +1 -1
- package/resources/zero-trust/gateway/configurations/configurations.mjs.map +1 -1
- package/resources/zero-trust/gateway/lists/lists.d.ts +28 -14
- package/resources/zero-trust/gateway/lists/lists.d.ts.map +1 -1
- package/resources/zero-trust/gateway/lists/lists.js.map +1 -1
- package/resources/zero-trust/gateway/lists/lists.mjs.map +1 -1
- package/resources/zero-trust/gateway/rules.d.ts +6 -2
- package/resources/zero-trust/gateway/rules.d.ts.map +1 -1
- package/resources/zero-trust/risk-scoring/behaviours.d.ts +9 -3
- package/resources/zero-trust/risk-scoring/behaviours.d.ts.map +1 -1
- package/src/core.ts +6 -4
- package/src/index.ts +3 -1
- package/src/resources/accounts/tokens/index.ts +0 -1
- package/src/resources/accounts/tokens/permission-groups.ts +59 -36
- package/src/resources/accounts/tokens/tokens.ts +7 -21
- package/src/resources/ai/ai.ts +2 -2
- package/src/resources/ai-gateway/logs.ts +1 -1
- package/src/resources/alerting/available-alerts.ts +1 -1
- package/src/resources/alerting/destinations/eligible.ts +1 -1
- package/src/resources/api-gateway/discovery/operations.ts +2 -2
- package/src/resources/api-gateway/operations/schema-validation.ts +5 -29
- package/src/resources/api-gateway/settings/schema-validation.ts +3 -22
- package/src/resources/api-gateway/user-schemas/hosts.ts +1 -9
- package/src/resources/api-gateway/user-schemas/operations.ts +1 -10
- package/src/resources/api-gateway/user-schemas/user-schemas.ts +5 -42
- package/src/resources/bot-management.ts +36 -24
- package/src/resources/brand-protection/brand-protection.ts +275 -0
- package/src/resources/brand-protection/index.ts +7 -0
- package/src/resources/brand-protection/logo-matches.ts +5 -0
- package/src/resources/brand-protection/logos.ts +5 -0
- package/src/resources/brand-protection/matches.ts +5 -0
- package/src/resources/brand-protection/queries.ts +5 -0
- package/src/resources/brand-protection.ts +1 -247
- package/src/resources/browser-rendering/content.ts +1 -1
- package/src/resources/browser-rendering/json.ts +3 -3
- package/src/resources/browser-rendering/links.ts +1 -1
- package/src/resources/browser-rendering/markdown.ts +1 -1
- package/src/resources/browser-rendering/pdf.ts +106 -1
- package/src/resources/browser-rendering/scrape.ts +1 -1
- package/src/resources/browser-rendering/screenshot.ts +1 -1
- package/src/resources/browser-rendering/snapshot.ts +1 -1
- package/src/resources/cache/cache.ts +1 -1
- package/src/resources/cloudforce-one/threat-events/threat-events.ts +19 -87
- package/src/resources/custom-hostnames/certificate-pack/certificates.ts +1 -1
- package/src/resources/custom-hostnames/custom-hostnames.ts +7 -7
- package/src/resources/dns/records.ts +773 -770
- package/src/resources/dns-firewall/reverse-dns.ts +3 -3
- package/src/resources/email-security/investigate/investigate.ts +10 -0
- package/src/resources/email-security/investigate/move.ts +12 -12
- package/src/resources/email-security/settings/domains.ts +3 -3
- package/src/resources/email-security/settings/trusted-domains.ts +5 -5
- package/src/resources/firewall/lockdowns.ts +2 -2
- package/src/resources/firewall/ua-rules.ts +199 -6
- package/src/resources/firewall/waf/overrides.ts +4 -4
- package/src/resources/healthchecks/healthchecks.ts +2 -2
- package/src/resources/hyperdrive/configs.ts +18 -0
- package/src/resources/hyperdrive/hyperdrive.ts +6 -0
- package/src/resources/images/v1/v1.ts +6 -1
- package/src/resources/index.ts +1 -1
- package/src/resources/kv/namespaces/keys.ts +38 -52
- package/src/resources/kv/namespaces/metadata.ts +2 -5
- package/src/resources/kv/namespaces/namespaces.ts +40 -51
- package/src/resources/kv/namespaces/values.ts +12 -19
- package/src/resources/load-balancers/load-balancers.ts +20 -20
- package/src/resources/load-balancers/monitors/monitors.ts +4 -4
- package/src/resources/load-balancers/monitors/previews.ts +2 -2
- package/src/resources/load-balancers/pools/health.ts +2 -2
- package/src/resources/load-balancers/previews.ts +2 -2
- package/src/resources/logpush/jobs.ts +63 -35
- package/src/resources/magic-cloud-networking/catalog-syncs/catalog-syncs.ts +5 -5
- package/src/resources/magic-cloud-networking/on-ramps/on-ramps.ts +65 -65
- package/src/resources/magic-cloud-networking/resources.ts +10 -10
- package/src/resources/magic-transit/connectors/connectors.ts +167 -1
- package/src/resources/magic-transit/connectors/index.ts +4 -0
- package/src/resources/magic-transit/index.ts +4 -0
- package/src/resources/magic-transit/magic-transit.ts +8 -0
- package/src/resources/magic-transit/sites/lans.ts +2 -2
- package/src/resources/page-rules.ts +4 -4
- package/src/resources/pages/projects/projects.ts +93 -88
- package/src/resources/radar/ai/bots/summary.ts +1 -1
- package/src/resources/radar/ai/inference/summary.ts +2 -2
- package/src/resources/radar/as112/summary.ts +2 -2
- package/src/resources/radar/attacks/layer3/summary.ts +3 -3
- package/src/resources/radar/attacks/layer7/summary.ts +5 -5
- package/src/resources/radar/bots/bots.ts +927 -0
- package/src/resources/radar/bots/index.ts +22 -0
- package/src/resources/radar/bots/web-crawlers.ts +384 -0
- package/src/resources/radar/bots.ts +3 -0
- package/src/resources/radar/dns/summary.ts +2 -2
- package/src/resources/radar/entities/asns.ts +0 -15
- package/src/resources/radar/index.ts +13 -0
- package/src/resources/radar/radar.ts +30 -0
- package/src/resources/radar/search.ts +3 -3
- package/src/resources/radar/verified-bots/top.ts +2 -9
- package/src/resources/rate-limits.ts +4 -4
- package/src/resources/request-tracers/traces.ts +2 -2
- package/src/resources/rules/index.ts +1 -1
- package/src/resources/rules/lists/bulk-operations.ts +17 -45
- package/src/resources/rules/lists/index.ts +2 -1
- package/src/resources/rules/lists/items.ts +128 -181
- package/src/resources/rules/lists/lists.ts +141 -286
- package/src/resources/rules/rules.ts +3 -2
- package/src/resources/rulesets/rules.ts +40 -40
- package/src/resources/schema-validation/settings/operations.ts +2 -2
- package/src/resources/shared.ts +3 -3
- package/src/resources/spectrum/analytics/events/bytimes.ts +3 -3
- package/src/resources/spectrum/analytics/events/summaries.ts +3 -3
- package/src/resources/url-scanner/scans.ts +2 -2
- package/src/resources/user/tokens/index.ts +1 -0
- package/src/resources/user/tokens/permission-groups.ts +29 -5
- package/src/resources/user/tokens/tokens.ts +9 -18
- package/src/resources/workers/assets/upload.ts +1 -1
- package/src/resources/workers/observability/telemetry.ts +30 -30
- package/src/resources/workers/scripts/assets/upload.ts +1 -1
- package/src/resources/workers/scripts/scripts.ts +9 -2
- package/src/resources/workers-for-platforms/dispatch/namespaces/scripts/asset-upload.ts +1 -1
- package/src/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.ts +9 -2
- package/src/resources/workflows/instances/instances.ts +7 -0
- package/src/resources/zaraz/config.ts +38 -36
- package/src/resources/zaraz/history/configs.ts +1 -1
- package/src/resources/zaraz/zaraz.ts +6 -6
- package/src/resources/zero-trust/access/applications/applications.ts +21 -15
- package/src/resources/zero-trust/access/applications/policies.ts +54 -0
- package/src/resources/zero-trust/access/users/active-sessions.ts +3 -3
- package/src/resources/zero-trust/access/users/last-seen-identity.ts +2 -2
- package/src/resources/zero-trust/devices/devices_.ts +1 -1
- package/src/resources/zero-trust/devices/dex-tests.ts +1 -1
- package/src/resources/zero-trust/devices/override-codes.ts +1 -1
- package/src/resources/zero-trust/devices/registrations.ts +4 -4
- package/src/resources/zero-trust/dex/commands/commands.ts +1 -1
- package/src/resources/zero-trust/dlp/datasets/datasets.ts +3 -3
- package/src/resources/zero-trust/dlp/datasets/upload.ts +1 -1
- package/src/resources/zero-trust/dlp/datasets/versions/entries.ts +1 -1
- package/src/resources/zero-trust/dlp/datasets/versions/versions.ts +1 -1
- package/src/resources/zero-trust/dlp/dlp.ts +15 -15
- package/src/resources/zero-trust/dlp/email/rules.ts +1 -1
- package/src/resources/zero-trust/dlp/entries/custom.ts +342 -0
- package/src/resources/zero-trust/dlp/entries/entries.ts +727 -0
- package/src/resources/zero-trust/dlp/entries/index.ts +43 -0
- package/src/resources/zero-trust/dlp/entries/integration.ts +165 -0
- package/src/resources/zero-trust/dlp/entries/predefined.ts +191 -0
- package/src/resources/zero-trust/dlp/entries.ts +1 -658
- package/src/resources/zero-trust/dlp/index.ts +1 -1
- package/src/resources/zero-trust/dlp/profiles/custom.ts +24 -4
- package/src/resources/zero-trust/dlp/profiles/index.ts +3 -0
- package/src/resources/zero-trust/dlp/profiles/predefined.ts +115 -3
- package/src/resources/zero-trust/dlp/profiles/profiles.ts +15 -9
- package/src/resources/zero-trust/gateway/configurations/configurations.ts +22 -30
- package/src/resources/zero-trust/gateway/lists/lists.ts +32 -16
- package/src/resources/zero-trust/gateway/rules.ts +2 -2
- package/src/resources/zero-trust/risk-scoring/behaviours.ts +3 -3
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -83,10 +83,9 @@ export declare class Namespaces extends APIResource {
|
|
|
83
83
|
*/
|
|
84
84
|
bulkDelete(namespaceId: string, params: NamespaceBulkDeleteParams, options?: Core.RequestOptions): Core.APIPromise<NamespaceBulkDeleteResponse | null>;
|
|
85
85
|
/**
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
* withMetadata is true.
|
|
86
|
+
* Retrieve up to 100 KV pairs from the namespace. Keys must contain text-based
|
|
87
|
+
* values. JSON values can optionally be parsed instead of being returned as a
|
|
88
|
+
* string value. Metadata can be included if `withMetadata` is true.
|
|
90
89
|
*
|
|
91
90
|
* @example
|
|
92
91
|
* ```ts
|
|
@@ -114,7 +113,7 @@ export declare class Namespaces extends APIResource {
|
|
|
114
113
|
* '0f2ac74b498b48028cb68387c421e279',
|
|
115
114
|
* {
|
|
116
115
|
* account_id: '023e105f4ecef8ad9ca31a8372d0c353',
|
|
117
|
-
* body: [{}],
|
|
116
|
+
* body: [{ key: 'My-Key', value: 'Some string' }],
|
|
118
117
|
* },
|
|
119
118
|
* );
|
|
120
119
|
* ```
|
|
@@ -158,7 +157,7 @@ export interface NamespaceDeleteResponse {
|
|
|
158
157
|
}
|
|
159
158
|
export interface NamespaceBulkDeleteResponse {
|
|
160
159
|
/**
|
|
161
|
-
* Number of keys successfully updated
|
|
160
|
+
* Number of keys successfully updated.
|
|
162
161
|
*/
|
|
163
162
|
successful_key_count?: number;
|
|
164
163
|
/**
|
|
@@ -170,29 +169,29 @@ export type NamespaceBulkGetResponse = NamespaceBulkGetResponse.WorkersKVBulkGet
|
|
|
170
169
|
export declare namespace NamespaceBulkGetResponse {
|
|
171
170
|
interface WorkersKVBulkGetResult {
|
|
172
171
|
/**
|
|
173
|
-
* Requested keys are paired with their values in an object
|
|
172
|
+
* Requested keys are paired with their values in an object.
|
|
174
173
|
*/
|
|
175
|
-
values?:
|
|
174
|
+
values?: {
|
|
175
|
+
[key: string]: string | number | boolean | {
|
|
176
|
+
[key: string]: unknown;
|
|
177
|
+
};
|
|
178
|
+
};
|
|
176
179
|
}
|
|
177
180
|
interface WorkersKVBulkGetResultWithMetadata {
|
|
178
181
|
/**
|
|
179
|
-
* Requested keys are paired with their values and metadata in an object
|
|
182
|
+
* Requested keys are paired with their values and metadata in an object.
|
|
180
183
|
*/
|
|
181
|
-
values?:
|
|
184
|
+
values?: {
|
|
185
|
+
[key: string]: WorkersKVBulkGetResultWithMetadata.Values | null;
|
|
186
|
+
};
|
|
182
187
|
}
|
|
183
188
|
namespace WorkersKVBulkGetResultWithMetadata {
|
|
184
189
|
interface Values {
|
|
190
|
+
metadata: unknown;
|
|
191
|
+
value: unknown;
|
|
185
192
|
/**
|
|
186
|
-
*
|
|
187
|
-
|
|
188
|
-
metadata: Record<string, unknown> | null;
|
|
189
|
-
/**
|
|
190
|
-
* The value associated with the key
|
|
191
|
-
*/
|
|
192
|
-
value: string | number | boolean | Record<string, unknown>;
|
|
193
|
-
/**
|
|
194
|
-
* The time, measured in number of seconds since the UNIX epoch, at which the key
|
|
195
|
-
* should expire.
|
|
193
|
+
* Expires the key at a certain time, measured in number of seconds since the UNIX
|
|
194
|
+
* epoch.
|
|
196
195
|
*/
|
|
197
196
|
expiration?: number;
|
|
198
197
|
}
|
|
@@ -200,7 +199,7 @@ export declare namespace NamespaceBulkGetResponse {
|
|
|
200
199
|
}
|
|
201
200
|
export interface NamespaceBulkUpdateResponse {
|
|
202
201
|
/**
|
|
203
|
-
* Number of keys successfully updated
|
|
202
|
+
* Number of keys successfully updated.
|
|
204
203
|
*/
|
|
205
204
|
successful_key_count?: number;
|
|
206
205
|
/**
|
|
@@ -210,7 +209,7 @@ export interface NamespaceBulkUpdateResponse {
|
|
|
210
209
|
}
|
|
211
210
|
export interface NamespaceCreateParams {
|
|
212
211
|
/**
|
|
213
|
-
* Path param: Identifier
|
|
212
|
+
* Path param: Identifier.
|
|
214
213
|
*/
|
|
215
214
|
account_id: string;
|
|
216
215
|
/**
|
|
@@ -220,7 +219,7 @@ export interface NamespaceCreateParams {
|
|
|
220
219
|
}
|
|
221
220
|
export interface NamespaceUpdateParams {
|
|
222
221
|
/**
|
|
223
|
-
* Path param: Identifier
|
|
222
|
+
* Path param: Identifier.
|
|
224
223
|
*/
|
|
225
224
|
account_id: string;
|
|
226
225
|
/**
|
|
@@ -230,7 +229,7 @@ export interface NamespaceUpdateParams {
|
|
|
230
229
|
}
|
|
231
230
|
export interface NamespaceListParams extends V4PagePaginationArrayParams {
|
|
232
231
|
/**
|
|
233
|
-
* Path param: Identifier
|
|
232
|
+
* Path param: Identifier.
|
|
234
233
|
*/
|
|
235
234
|
account_id: string;
|
|
236
235
|
/**
|
|
@@ -244,13 +243,13 @@ export interface NamespaceListParams extends V4PagePaginationArrayParams {
|
|
|
244
243
|
}
|
|
245
244
|
export interface NamespaceDeleteParams {
|
|
246
245
|
/**
|
|
247
|
-
* Identifier
|
|
246
|
+
* Identifier.
|
|
248
247
|
*/
|
|
249
248
|
account_id: string;
|
|
250
249
|
}
|
|
251
250
|
export interface NamespaceBulkDeleteParams {
|
|
252
251
|
/**
|
|
253
|
-
* Path param: Identifier
|
|
252
|
+
* Path param: Identifier.
|
|
254
253
|
*/
|
|
255
254
|
account_id: string;
|
|
256
255
|
/**
|
|
@@ -260,25 +259,25 @@ export interface NamespaceBulkDeleteParams {
|
|
|
260
259
|
}
|
|
261
260
|
export interface NamespaceBulkGetParams {
|
|
262
261
|
/**
|
|
263
|
-
* Path param: Identifier
|
|
262
|
+
* Path param: Identifier.
|
|
264
263
|
*/
|
|
265
264
|
account_id: string;
|
|
266
265
|
/**
|
|
267
|
-
* Body param: Array of keys to retrieve (maximum 100)
|
|
266
|
+
* Body param: Array of keys to retrieve (maximum of 100).
|
|
268
267
|
*/
|
|
269
268
|
keys: Array<string>;
|
|
270
269
|
/**
|
|
271
|
-
* Body param: Whether to parse JSON values in the response
|
|
270
|
+
* Body param: Whether to parse JSON values in the response.
|
|
272
271
|
*/
|
|
273
272
|
type?: 'text' | 'json';
|
|
274
273
|
/**
|
|
275
|
-
* Body param: Whether to include metadata in the response
|
|
274
|
+
* Body param: Whether to include metadata in the response.
|
|
276
275
|
*/
|
|
277
276
|
withMetadata?: boolean;
|
|
278
277
|
}
|
|
279
278
|
export interface NamespaceBulkUpdateParams {
|
|
280
279
|
/**
|
|
281
|
-
* Path param: Identifier
|
|
280
|
+
* Path param: Identifier.
|
|
282
281
|
*/
|
|
283
282
|
account_id: string;
|
|
284
283
|
/**
|
|
@@ -289,39 +288,35 @@ export interface NamespaceBulkUpdateParams {
|
|
|
289
288
|
export declare namespace NamespaceBulkUpdateParams {
|
|
290
289
|
interface Body {
|
|
291
290
|
/**
|
|
292
|
-
*
|
|
293
|
-
*
|
|
294
|
-
* images.
|
|
295
|
-
*/
|
|
296
|
-
base64?: boolean;
|
|
297
|
-
/**
|
|
298
|
-
* The time, measured in number of seconds since the UNIX epoch, at which the key
|
|
299
|
-
* should expire.
|
|
291
|
+
* A key's name. The name may be at most 512 bytes. All printable, non-whitespace
|
|
292
|
+
* characters are valid.
|
|
300
293
|
*/
|
|
301
|
-
|
|
294
|
+
key: string;
|
|
302
295
|
/**
|
|
303
|
-
*
|
|
304
|
-
* least 60.
|
|
296
|
+
* A UTF-8 encoded string to be stored, up to 25 MiB in length.
|
|
305
297
|
*/
|
|
306
|
-
|
|
298
|
+
value: string;
|
|
307
299
|
/**
|
|
308
|
-
*
|
|
309
|
-
*
|
|
300
|
+
* Indicates whether or not the server should base64 decode the value before
|
|
301
|
+
* storing it. Useful for writing values that wouldn't otherwise be valid JSON
|
|
302
|
+
* strings, such as images.
|
|
310
303
|
*/
|
|
311
|
-
|
|
304
|
+
base64?: boolean;
|
|
312
305
|
/**
|
|
313
|
-
*
|
|
306
|
+
* Expires the key at a certain time, measured in number of seconds since the UNIX
|
|
307
|
+
* epoch.
|
|
314
308
|
*/
|
|
315
|
-
|
|
309
|
+
expiration?: number;
|
|
316
310
|
/**
|
|
317
|
-
*
|
|
311
|
+
* Expires the key after a number of seconds. Must be at least 60.
|
|
318
312
|
*/
|
|
319
|
-
|
|
313
|
+
expiration_ttl?: number;
|
|
314
|
+
metadata?: unknown;
|
|
320
315
|
}
|
|
321
316
|
}
|
|
322
317
|
export interface NamespaceGetParams {
|
|
323
318
|
/**
|
|
324
|
-
* Identifier
|
|
319
|
+
* Identifier.
|
|
325
320
|
*/
|
|
326
321
|
account_id: string;
|
|
327
322
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"namespaces.d.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GAC9C,CAAC;IAEF,OAAO,EACL,IAAI,IAAI,IAAI,EACZ,KAAK,GAAG,IAAI,GAAG,EACf,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,yBAAyB,IAAI,yBAAyB,EACtD,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;IAEF,OAAO,EACL,eAAe,IAAI,MAAM,EACzB,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;CACH"}
|
|
@@ -136,10 +136,9 @@ class Namespaces extends resource_1.APIResource {
|
|
|
136
136
|
})._thenUnwrap((obj) => obj.result);
|
|
137
137
|
}
|
|
138
138
|
/**
|
|
139
|
-
*
|
|
140
|
-
*
|
|
141
|
-
*
|
|
142
|
-
* withMetadata is true.
|
|
139
|
+
* Retrieve up to 100 KV pairs from the namespace. Keys must contain text-based
|
|
140
|
+
* values. JSON values can optionally be parsed instead of being returned as a
|
|
141
|
+
* string value. Metadata can be included if `withMetadata` is true.
|
|
143
142
|
*
|
|
144
143
|
* @example
|
|
145
144
|
* ```ts
|
|
@@ -173,7 +172,7 @@ class Namespaces extends resource_1.APIResource {
|
|
|
173
172
|
* '0f2ac74b498b48028cb68387c421e279',
|
|
174
173
|
* {
|
|
175
174
|
* account_id: '023e105f4ecef8ad9ca31a8372d0c353',
|
|
176
|
-
* body: [{}],
|
|
175
|
+
* body: [{ key: 'My-Key', value: 'Some string' }],
|
|
177
176
|
* },
|
|
178
177
|
* );
|
|
179
178
|
* ```
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"namespaces.js","sourceRoot":"","sources":["../../../src/resources/kv/namespaces/namespaces.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,mDAAgD;AAEhD,mDAAkC;AAClC,oCAWgB;AAChB,2DAA0C;AAC1C,4CAA8E;AAC9E,uDAAsC;AACtC,wCAOkB;AAClB,uDAA8F;AAE9F,MAAa,UAAW,SAAQ,sBAAW;IAA3C;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"namespaces.js","sourceRoot":"","sources":["../../../src/resources/kv/namespaces/namespaces.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,mDAAgD;AAEhD,mDAAkC;AAClC,oCAWgB;AAChB,2DAA0C;AAC1C,4CAA8E;AAC9E,uDAAsC;AACtC,wCAOkB;AAClB,uDAA8F;AAE9F,MAAa,UAAW,SAAQ,sBAAW;IAA3C;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA2NhE,CAAC;IAzNC;;;;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UAAU,EAAE,GAAG,MAAM,CAAC;QAC9B,OACE,IAAI,CAAC,OAAO,CAAC,GAAG,CACd,aAAa,UAAU,0BAA0B,WAAW,EAAE,EAC9D,OAAO,CAEV,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;CACF;AA9ND,gCA8NC;AAED,MAAa,+BAAgC,SAAQ,kCAAgC;CAAG;AAAxF,0EAAwF;AA6NxF,UAAU,CAAC,+BAA+B,GAAG,+BAA+B,CAAC;AAC7E,UAAU,CAAC,IAAI,GAAG,WAAI,CAAC;AACvB,UAAU,CAAC,yBAAyB,GAAG,gCAAyB,CAAC;AACjE,UAAU,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AAC/B,UAAU,CAAC,MAAM,GAAG,eAAe,CAAC"}
|
|
@@ -110,10 +110,9 @@ export class Namespaces extends APIResource {
|
|
|
110
110
|
})._thenUnwrap((obj) => obj.result);
|
|
111
111
|
}
|
|
112
112
|
/**
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
* withMetadata is true.
|
|
113
|
+
* Retrieve up to 100 KV pairs from the namespace. Keys must contain text-based
|
|
114
|
+
* values. JSON values can optionally be parsed instead of being returned as a
|
|
115
|
+
* string value. Metadata can be included if `withMetadata` is true.
|
|
117
116
|
*
|
|
118
117
|
* @example
|
|
119
118
|
* ```ts
|
|
@@ -147,7 +146,7 @@ export class Namespaces extends APIResource {
|
|
|
147
146
|
* '0f2ac74b498b48028cb68387c421e279',
|
|
148
147
|
* {
|
|
149
148
|
* account_id: '023e105f4ecef8ad9ca31a8372d0c353',
|
|
150
|
-
* body: [{}],
|
|
149
|
+
* body: [{ key: 'My-Key', value: 'Some string' }],
|
|
151
150
|
* },
|
|
152
151
|
* );
|
|
153
152
|
* ```
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"namespaces.mjs","sourceRoot":"","sources":["../../../src/resources/kv/namespaces/namespaces.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,KAAK,OAAO;OACZ,EASL,IAAI,EACJ,yBAAyB,GAC1B;OACM,KAAK,WAAW;OAChB,EAAE,QAAQ,EAA0C;OACpD,KAAK,SAAS;OACd,EAML,MAAM,IAAI,eAAe,GAC1B;OACM,EAAE,qBAAqB,EAAoC;AAElE,MAAM,OAAO,UAAW,SAAQ,WAAW;IAA3C;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"namespaces.mjs","sourceRoot":"","sources":["../../../src/resources/kv/namespaces/namespaces.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,KAAK,OAAO;OACZ,EASL,IAAI,EACJ,yBAAyB,GAC1B;OACM,KAAK,WAAW;OAChB,EAAE,QAAQ,EAA0C;OACpD,KAAK,SAAS;OACd,EAML,MAAM,IAAI,eAAe,GAC1B;OACM,EAAE,qBAAqB,EAAoC;AAElE,MAAM,OAAO,UAAW,SAAQ,WAAW;IAA3C;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA2NhE,CAAC;IAzNC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,MAA6B,EAAE,OAA6B;QACjE,MAAM,EAAE,U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CACd,aAAa,UAAU,0BAA0B,WAAW,EAAE,EAC9D,OAAO,CAEV,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;CACF;AAED,MAAM,OAAO,+BAAgC,SAAQ,qBAAgC;CAAG;AA6NxF,UAAU,CAAC,+BAA+B,GAAG,+BAA+B,CAAC;AAC7E,UAAU,CAAC,IAAI,GAAG,IAAI,CAAC;AACvB,UAAU,CAAC,yBAAyB,GAAG,yBAAyB,CAAC;AACjE,UAAU,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAC/B,UAAU,CAAC,MAAM,GAAG,eAAe,CAAC"}
|
|
@@ -19,7 +19,6 @@ export declare class Values extends APIResource {
|
|
|
19
19
|
* 'My-Key',
|
|
20
20
|
* {
|
|
21
21
|
* account_id: '023e105f4ecef8ad9ca31a8372d0c353',
|
|
22
|
-
* metadata: '{"someMetadataKey": "someMetadataValue"}',
|
|
23
22
|
* value: 'Some Value',
|
|
24
23
|
* },
|
|
25
24
|
* );
|
|
@@ -67,37 +66,36 @@ export interface ValueDeleteResponse {
|
|
|
67
66
|
}
|
|
68
67
|
export interface ValueUpdateParams {
|
|
69
68
|
/**
|
|
70
|
-
* Path param: Identifier
|
|
69
|
+
* Path param: Identifier.
|
|
71
70
|
*/
|
|
72
71
|
account_id: string;
|
|
73
|
-
/**
|
|
74
|
-
* Body param: Arbitrary JSON to be associated with a key/value pair.
|
|
75
|
-
*/
|
|
76
|
-
metadata: string;
|
|
77
72
|
/**
|
|
78
73
|
* Body param: A byte sequence to be stored, up to 25 MiB in length.
|
|
79
74
|
*/
|
|
80
75
|
value: string;
|
|
81
76
|
/**
|
|
82
|
-
* Query param:
|
|
83
|
-
*
|
|
77
|
+
* Query param: Expires the key at a certain time, measured in number of seconds
|
|
78
|
+
* since the UNIX epoch.
|
|
84
79
|
*/
|
|
85
80
|
expiration?: number;
|
|
86
81
|
/**
|
|
87
|
-
* Query param:
|
|
88
|
-
* expires. At least 60.
|
|
82
|
+
* Query param: Expires the key after a number of seconds. Must be at least 60.
|
|
89
83
|
*/
|
|
90
84
|
expiration_ttl?: number;
|
|
85
|
+
/**
|
|
86
|
+
* Body param:
|
|
87
|
+
*/
|
|
88
|
+
metadata?: unknown;
|
|
91
89
|
}
|
|
92
90
|
export interface ValueDeleteParams {
|
|
93
91
|
/**
|
|
94
|
-
* Identifier
|
|
92
|
+
* Identifier.
|
|
95
93
|
*/
|
|
96
94
|
account_id: string;
|
|
97
95
|
}
|
|
98
96
|
export interface ValueGetParams {
|
|
99
97
|
/**
|
|
100
|
-
* Identifier
|
|
98
|
+
* Identifier.
|
|
101
99
|
*/
|
|
102
100
|
account_id: string;
|
|
103
101
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"values.d.ts","sourceRoot":"","sources":["../../../src/resources/kv/namespaces/values.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtD,qBAAa,MAAO,SAAQ,WAAW;IACrC
|
|
1
|
+
{"version":3,"file":"values.d.ts","sourceRoot":"","sources":["../../../src/resources/kv/namespaces/values.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtD,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,MAAM,CACJ,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,iBAAiB,EACzB,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,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My-Key',
|
|
46
46
|
* {
|
|
47
47
|
* account_id: '023e105f4ecef8ad9ca31a8372d0c353',
|
|
48
|
-
* metadata: '{"someMetadataKey": "someMetadataValue"}',
|
|
49
48
|
* value: 'Some Value',
|
|
50
49
|
* },
|
|
51
50
|
* );
|
|
@@ -53,12 +52,7 @@ class Values extends resource_1.APIResource {
|
|
|
53
52
|
*/
|
|
54
53
|
update(namespaceId, keyName, params, options) {
|
|
55
54
|
const { account_id, expiration, expiration_ttl, ...body } = params;
|
|
56
|
-
return this._client.put(`/accounts/${account_id}/storage/kv/namespaces/${namespaceId}/values/${keyName}`, Core.
|
|
57
|
-
query: { expiration, expiration_ttl },
|
|
58
|
-
body,
|
|
59
|
-
...options,
|
|
60
|
-
headers: { 'Content-Type': '*/*', ...options?.headers },
|
|
61
|
-
}))._thenUnwrap((obj) => obj.result);
|
|
55
|
+
return this._client.put(`/accounts/${account_id}/storage/kv/namespaces/${namespaceId}/values/${keyName}`, Core.multipartFormRequestOptions({ query: { expiration, expiration_ttl }, body, ...options }))._thenUnwrap((obj) => obj.result);
|
|
62
56
|
}
|
|
63
57
|
/**
|
|
64
58
|
* Remove a KV pair from the namespace. Use URL-encoding to use special characters
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"values.js","sourceRoot":"","sources":["../../../src/resources/kv/namespaces/values.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,mDAAgD;AAChD,uDAAsC;AAGtC,MAAa,MAAO,SAAQ,sBAAW;IACrC
|
|
1
|
+
{"version":3,"file":"values.js","sourceRoot":"","sources":["../../../src/resources/kv/namespaces/values.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,mDAAgD;AAChD,uDAAsC;AAGtC,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,MAAM,CACJ,WAAmB,EACnB,OAAe,E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'My-Key',
|
|
20
20
|
* {
|
|
21
21
|
* account_id: '023e105f4ecef8ad9ca31a8372d0c353',
|
|
22
|
-
* metadata: '{"someMetadataKey": "someMetadataValue"}',
|
|
23
22
|
* value: 'Some Value',
|
|
24
23
|
* },
|
|
25
24
|
* );
|
|
@@ -27,12 +26,7 @@ export class Values extends APIResource {
|
|
|
27
26
|
*/
|
|
28
27
|
update(namespaceId, keyName, params, options) {
|
|
29
28
|
const { account_id, expiration, expiration_ttl, ...body } = params;
|
|
30
|
-
return this._client.put(`/accounts/${account_id}/storage/kv/namespaces/${namespaceId}/values/${keyName}`, Core.
|
|
31
|
-
query: { expiration, expiration_ttl },
|
|
32
|
-
body,
|
|
33
|
-
...options,
|
|
34
|
-
headers: { 'Content-Type': '*/*', ...options?.headers },
|
|
35
|
-
}))._thenUnwrap((obj) => obj.result);
|
|
29
|
+
return this._client.put(`/accounts/${account_id}/storage/kv/namespaces/${namespaceId}/values/${keyName}`, Core.multipartFormRequestOptions({ query: { expiration, expiration_ttl }, body, ...options }))._thenUnwrap((obj) => obj.result);
|
|
36
30
|
}
|
|
37
31
|
/**
|
|
38
32
|
* Remove a KV pair from the namespace. Use URL-encoding to use special characters
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"values.mjs","sourceRoot":"","sources":["../../../src/resources/kv/namespaces/values.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,IAAI;AAGhB,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC
|
|
1
|
+
{"version":3,"file":"values.mjs","sourceRoot":"","sources":["../../../src/resources/kv/namespaces/values.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,IAAI;AAGhB,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,MAAM,CACJ,WAAmB,EACnB,OAAe,EACf,MAAyB,EACzB,OAA6B;Q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