cloudflare 4.3.0 → 4.4.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 +66 -0
- package/README.md +21 -33
- package/core.d.ts +1 -0
- package/core.d.ts.map +1 -1
- package/core.js +1 -0
- package/core.js.map +1 -1
- package/core.mjs +1 -0
- package/core.mjs.map +1 -1
- package/package.json +1 -1
- package/resource.d.ts +1 -1
- package/resource.d.ts.map +1 -1
- package/resource.js.map +1 -1
- package/resource.mjs.map +1 -1
- package/resources/accounts/accounts.d.ts +9 -4
- package/resources/accounts/accounts.d.ts.map +1 -1
- package/resources/accounts/accounts.js +3 -2
- package/resources/accounts/accounts.js.map +1 -1
- package/resources/accounts/accounts.mjs +3 -2
- package/resources/accounts/accounts.mjs.map +1 -1
- package/resources/accounts/index.d.ts +1 -1
- package/resources/accounts/index.d.ts.map +1 -1
- package/resources/accounts/index.js.map +1 -1
- package/resources/accounts/index.mjs.map +1 -1
- package/resources/accounts/logs/audit.d.ts +182 -52
- package/resources/accounts/logs/audit.d.ts.map +1 -1
- package/resources/accounts/logs/audit.js.map +1 -1
- package/resources/accounts/logs/audit.mjs.map +1 -1
- package/resources/accounts/members.d.ts +5 -5
- package/resources/accounts/members.js +5 -5
- package/resources/accounts/members.mjs +5 -5
- package/resources/accounts/roles.d.ts +2 -2
- package/resources/accounts/roles.js +2 -2
- package/resources/accounts/roles.mjs +2 -2
- package/resources/accounts/subscriptions.d.ts +3 -5
- package/resources/accounts/subscriptions.d.ts.map +1 -1
- package/resources/accounts/subscriptions.js.map +1 -1
- package/resources/accounts/subscriptions.mjs.map +1 -1
- package/resources/accounts/tokens/permission-groups.d.ts +2 -2
- package/resources/accounts/tokens/permission-groups.js +2 -2
- package/resources/accounts/tokens/permission-groups.mjs +2 -2
- package/resources/accounts/tokens/tokens.d.ts +6 -6
- package/resources/accounts/tokens/tokens.js +6 -6
- package/resources/accounts/tokens/tokens.mjs +6 -6
- package/resources/accounts/tokens/value.d.ts +1 -1
- package/resources/accounts/tokens/value.js +1 -1
- package/resources/accounts/tokens/value.mjs +1 -1
- package/resources/addressing/address-maps/address-maps.d.ts +5 -18
- package/resources/addressing/address-maps/address-maps.d.ts.map +1 -1
- package/resources/addressing/address-maps/address-maps.js +2 -2
- package/resources/addressing/address-maps/address-maps.js.map +1 -1
- package/resources/addressing/address-maps/address-maps.mjs +2 -2
- package/resources/addressing/address-maps/address-maps.mjs.map +1 -1
- package/resources/addressing/prefixes/advertisement-status.d.ts +2 -19
- package/resources/addressing/prefixes/advertisement-status.d.ts.map +1 -1
- package/resources/addressing/prefixes/advertisement-status.js +2 -19
- package/resources/addressing/prefixes/advertisement-status.js.map +1 -1
- package/resources/addressing/prefixes/advertisement-status.mjs +2 -19
- package/resources/addressing/prefixes/advertisement-status.mjs.map +1 -1
- package/resources/ai/ai.d.ts +4 -4
- package/resources/ai/ai.d.ts.map +1 -1
- package/resources/billing/profiles.d.ts +2 -0
- package/resources/billing/profiles.d.ts.map +1 -1
- package/resources/billing/profiles.js +2 -0
- package/resources/billing/profiles.js.map +1 -1
- package/resources/billing/profiles.mjs +2 -0
- package/resources/billing/profiles.mjs.map +1 -1
- package/resources/cloud-connector/rules.d.ts +3 -3
- package/resources/cloud-connector/rules.d.ts.map +1 -1
- package/resources/cloudforce-one/threat-events/attackers.d.ts +2 -2
- package/resources/cloudforce-one/threat-events/attackers.js +1 -1
- package/resources/cloudforce-one/threat-events/attackers.mjs +1 -1
- package/resources/cloudforce-one/threat-events/categories.d.ts +17 -13
- package/resources/cloudforce-one/threat-events/categories.d.ts.map +1 -1
- package/resources/cloudforce-one/threat-events/categories.js +12 -8
- package/resources/cloudforce-one/threat-events/categories.js.map +1 -1
- package/resources/cloudforce-one/threat-events/categories.mjs +12 -8
- package/resources/cloudforce-one/threat-events/categories.mjs.map +1 -1
- package/resources/cloudforce-one/threat-events/countries.d.ts +2 -2
- package/resources/cloudforce-one/threat-events/countries.js +1 -1
- package/resources/cloudforce-one/threat-events/countries.mjs +1 -1
- package/resources/cloudforce-one/threat-events/crons.d.ts +4 -4
- package/resources/cloudforce-one/threat-events/crons.js +2 -2
- package/resources/cloudforce-one/threat-events/crons.mjs +2 -2
- package/resources/cloudforce-one/threat-events/datasets/datasets.d.ts +157 -0
- package/resources/cloudforce-one/threat-events/datasets/datasets.d.ts.map +1 -0
- package/resources/cloudforce-one/threat-events/datasets/datasets.js +126 -0
- package/resources/cloudforce-one/threat-events/datasets/datasets.js.map +1 -0
- package/resources/cloudforce-one/threat-events/datasets/datasets.mjs +99 -0
- package/resources/cloudforce-one/threat-events/datasets/datasets.mjs.map +1 -0
- package/resources/cloudforce-one/threat-events/datasets/health.d.ts +36 -0
- package/resources/cloudforce-one/threat-events/datasets/health.d.ts.map +1 -0
- package/resources/cloudforce-one/threat-events/datasets/health.js +25 -0
- package/resources/cloudforce-one/threat-events/datasets/health.js.map +1 -0
- package/resources/cloudforce-one/threat-events/datasets/health.mjs +21 -0
- package/resources/cloudforce-one/threat-events/datasets/health.mjs.map +1 -0
- package/resources/cloudforce-one/threat-events/datasets/index.d.ts +3 -0
- package/resources/cloudforce-one/threat-events/datasets/index.d.ts.map +1 -0
- package/resources/cloudforce-one/threat-events/datasets/index.js +9 -0
- package/resources/cloudforce-one/threat-events/datasets/index.js.map +1 -0
- package/resources/cloudforce-one/threat-events/datasets/index.mjs +4 -0
- package/resources/cloudforce-one/threat-events/datasets/index.mjs.map +1 -0
- package/resources/cloudforce-one/threat-events/datasets.d.ts +1 -152
- package/resources/cloudforce-one/threat-events/datasets.d.ts.map +1 -1
- package/resources/cloudforce-one/threat-events/datasets.js +15 -92
- package/resources/cloudforce-one/threat-events/datasets.js.map +1 -1
- package/resources/cloudforce-one/threat-events/datasets.mjs +1 -90
- package/resources/cloudforce-one/threat-events/datasets.mjs.map +1 -1
- package/resources/cloudforce-one/threat-events/event-tags.d.ts +4 -4
- package/resources/cloudforce-one/threat-events/event-tags.js +2 -2
- package/resources/cloudforce-one/threat-events/event-tags.mjs +2 -2
- package/resources/cloudforce-one/threat-events/index.d.ts +1 -1
- package/resources/cloudforce-one/threat-events/index.d.ts.map +1 -1
- package/resources/cloudforce-one/threat-events/index.js +2 -2
- package/resources/cloudforce-one/threat-events/index.js.map +1 -1
- package/resources/cloudforce-one/threat-events/index.mjs +1 -1
- package/resources/cloudforce-one/threat-events/indicator-types.d.ts +2 -2
- package/resources/cloudforce-one/threat-events/indicator-types.js +1 -1
- package/resources/cloudforce-one/threat-events/indicator-types.mjs +1 -1
- package/resources/cloudforce-one/threat-events/insights.d.ts +8 -8
- package/resources/cloudforce-one/threat-events/insights.js +4 -4
- package/resources/cloudforce-one/threat-events/insights.mjs +4 -4
- package/resources/cloudforce-one/threat-events/raw.d.ts +4 -4
- package/resources/cloudforce-one/threat-events/raw.js +2 -2
- package/resources/cloudforce-one/threat-events/raw.mjs +2 -2
- package/resources/cloudforce-one/threat-events/relate.d.ts +2 -2
- package/resources/cloudforce-one/threat-events/relate.js +1 -1
- package/resources/cloudforce-one/threat-events/relate.mjs +1 -1
- package/resources/cloudforce-one/threat-events/tags.d.ts +2 -2
- package/resources/cloudforce-one/threat-events/tags.js +1 -1
- package/resources/cloudforce-one/threat-events/tags.mjs +1 -1
- package/resources/cloudforce-one/threat-events/target-industries.d.ts +2 -2
- package/resources/cloudforce-one/threat-events/target-industries.js +1 -1
- package/resources/cloudforce-one/threat-events/target-industries.mjs +1 -1
- package/resources/cloudforce-one/threat-events/threat-events.d.ts +14 -14
- package/resources/cloudforce-one/threat-events/threat-events.d.ts.map +1 -1
- package/resources/cloudforce-one/threat-events/threat-events.js +8 -8
- package/resources/cloudforce-one/threat-events/threat-events.js.map +1 -1
- package/resources/cloudforce-one/threat-events/threat-events.mjs +8 -8
- package/resources/cloudforce-one/threat-events/threat-events.mjs.map +1 -1
- package/resources/d1/database.d.ts +4 -4
- package/resources/d1/database.d.ts.map +1 -1
- package/resources/dns/analytics/reports/bytimes.d.ts +1 -1
- package/resources/dns/analytics/reports/reports.d.ts +1 -1
- package/resources/dns/records.d.ts +1997 -1990
- package/resources/dns/records.d.ts.map +1 -1
- package/resources/dns/records.js +12 -2
- package/resources/dns/records.js.map +1 -1
- package/resources/dns/records.mjs +12 -2
- package/resources/dns/records.mjs.map +1 -1
- package/resources/dns-firewall/analytics/reports/bytimes.d.ts +1 -1
- package/resources/dns-firewall/analytics/reports/reports.d.ts +1 -1
- package/resources/email-routing/email-routing.d.ts +2 -14
- package/resources/email-routing/email-routing.d.ts.map +1 -1
- package/resources/email-routing/email-routing.js +2 -14
- package/resources/email-routing/email-routing.js.map +1 -1
- package/resources/email-routing/email-routing.mjs +2 -14
- package/resources/email-routing/email-routing.mjs.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/firewall/lockdowns.d.ts +15 -0
- package/resources/firewall/lockdowns.d.ts.map +1 -1
- package/resources/firewall/lockdowns.js.map +1 -1
- package/resources/firewall/lockdowns.mjs.map +1 -1
- package/resources/firewall/ua-rules.d.ts +15 -2
- 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 +5 -45
- package/resources/firewall/waf/overrides.d.ts.map +1 -1
- package/resources/firewall/waf/overrides.js +5 -45
- package/resources/firewall/waf/overrides.js.map +1 -1
- package/resources/firewall/waf/overrides.mjs +5 -45
- package/resources/firewall/waf/overrides.mjs.map +1 -1
- package/resources/firewall/waf/packages/groups.d.ts +3 -27
- package/resources/firewall/waf/packages/groups.d.ts.map +1 -1
- package/resources/firewall/waf/packages/groups.js +3 -27
- package/resources/firewall/waf/packages/groups.js.map +1 -1
- package/resources/firewall/waf/packages/groups.mjs +3 -27
- package/resources/firewall/waf/packages/groups.mjs.map +1 -1
- package/resources/firewall/waf/packages/packages.d.ts +2 -16
- package/resources/firewall/waf/packages/packages.d.ts.map +1 -1
- package/resources/firewall/waf/packages/packages.js +2 -16
- package/resources/firewall/waf/packages/packages.js.map +1 -1
- package/resources/firewall/waf/packages/packages.mjs +2 -16
- package/resources/firewall/waf/packages/packages.mjs.map +1 -1
- package/resources/firewall/waf/packages/rules.d.ts +3 -27
- package/resources/firewall/waf/packages/rules.d.ts.map +1 -1
- package/resources/firewall/waf/packages/rules.js +3 -27
- package/resources/firewall/waf/packages/rules.js.map +1 -1
- package/resources/firewall/waf/packages/rules.mjs +3 -27
- package/resources/firewall/waf/packages/rules.mjs.map +1 -1
- package/resources/iam/iam.d.ts +4 -0
- package/resources/iam/iam.d.ts.map +1 -1
- package/resources/iam/iam.js +5 -0
- package/resources/iam/iam.js.map +1 -1
- package/resources/iam/iam.mjs +5 -0
- package/resources/iam/iam.mjs.map +1 -1
- package/resources/iam/index.d.ts +1 -0
- package/resources/iam/index.d.ts.map +1 -1
- package/resources/iam/index.js +4 -1
- package/resources/iam/index.js.map +1 -1
- package/resources/iam/index.mjs +1 -0
- package/resources/iam/index.mjs.map +1 -1
- package/resources/iam/permission-groups.d.ts +7 -7
- package/resources/iam/permission-groups.js +3 -3
- package/resources/iam/permission-groups.mjs +3 -3
- package/resources/iam/resource-groups.d.ts +11 -11
- package/resources/iam/resource-groups.js +8 -8
- package/resources/iam/resource-groups.mjs +8 -8
- package/resources/iam/user-groups/index.d.ts +3 -0
- package/resources/iam/user-groups/index.d.ts.map +1 -0
- package/resources/iam/user-groups/index.js +12 -0
- package/resources/iam/user-groups/index.js.map +1 -0
- package/resources/iam/user-groups/index.mjs +4 -0
- package/resources/iam/user-groups/index.mjs.map +1 -0
- package/resources/iam/user-groups/members.d.ts +190 -0
- package/resources/iam/user-groups/members.d.ts.map +1 -0
- package/resources/iam/user-groups/members.js +94 -0
- package/resources/iam/user-groups/members.js.map +1 -0
- package/resources/iam/user-groups/members.mjs +88 -0
- package/resources/iam/user-groups/members.mjs.map +1 -0
- package/resources/iam/user-groups/user-groups.d.ts +773 -0
- package/resources/iam/user-groups/user-groups.d.ts.map +1 -0
- package/resources/iam/user-groups/user-groups.js +138 -0
- package/resources/iam/user-groups/user-groups.js.map +1 -0
- package/resources/iam/user-groups/user-groups.mjs +110 -0
- package/resources/iam/user-groups/user-groups.mjs.map +1 -0
- package/resources/iam/user-groups.d.ts +2 -0
- package/resources/iam/user-groups.d.ts.map +1 -0
- package/resources/iam/user-groups.js +19 -0
- package/resources/iam/user-groups.js.map +1 -0
- package/resources/iam/user-groups.mjs +3 -0
- package/resources/iam/user-groups.mjs.map +1 -0
- package/resources/images/v1/v1.d.ts +1 -9
- package/resources/images/v1/v1.d.ts.map +1 -1
- package/resources/images/v1/v1.js +1 -9
- package/resources/images/v1/v1.js.map +1 -1
- package/resources/images/v1/v1.mjs +1 -9
- package/resources/images/v1/v1.mjs.map +1 -1
- package/resources/intel/attack-surface-report/issues.d.ts +5 -38
- package/resources/intel/attack-surface-report/issues.d.ts.map +1 -1
- package/resources/intel/attack-surface-report/issues.js +5 -38
- package/resources/intel/attack-surface-report/issues.js.map +1 -1
- package/resources/intel/attack-surface-report/issues.mjs +5 -38
- package/resources/intel/attack-surface-report/issues.mjs.map +1 -1
- package/resources/ips.d.ts +47 -32
- package/resources/ips.d.ts.map +1 -1
- package/resources/kv/index.d.ts +1 -1
- package/resources/kv/index.d.ts.map +1 -1
- package/resources/kv/index.js.map +1 -1
- package/resources/kv/index.mjs.map +1 -1
- package/resources/kv/kv.d.ts +2 -2
- package/resources/kv/kv.d.ts.map +1 -1
- package/resources/kv/kv.js.map +1 -1
- package/resources/kv/kv.mjs.map +1 -1
- package/resources/kv/namespaces/index.d.ts +1 -1
- package/resources/kv/namespaces/index.d.ts.map +1 -1
- package/resources/kv/namespaces/index.js.map +1 -1
- package/resources/kv/namespaces/index.mjs.map +1 -1
- package/resources/kv/namespaces/keys.d.ts +3 -30
- package/resources/kv/namespaces/keys.d.ts.map +1 -1
- package/resources/kv/namespaces/keys.js +3 -30
- package/resources/kv/namespaces/keys.js.map +1 -1
- package/resources/kv/namespaces/keys.mjs +3 -30
- package/resources/kv/namespaces/keys.mjs.map +1 -1
- package/resources/kv/namespaces/namespaces.d.ts +180 -3
- package/resources/kv/namespaces/namespaces.d.ts.map +1 -1
- package/resources/kv/namespaces/namespaces.js +72 -0
- package/resources/kv/namespaces/namespaces.js.map +1 -1
- package/resources/kv/namespaces/namespaces.mjs +74 -2
- package/resources/kv/namespaces/namespaces.mjs.map +1 -1
- package/resources/load-balancers/searches.d.ts +7 -14
- package/resources/load-balancers/searches.d.ts.map +1 -1
- package/resources/load-balancers/searches.js.map +1 -1
- package/resources/load-balancers/searches.mjs.map +1 -1
- package/resources/logs/control/cmb/config.d.ts +8 -0
- package/resources/logs/control/cmb/config.d.ts.map +1 -1
- package/resources/magic-transit/connectors/connectors.d.ts +8 -2
- package/resources/magic-transit/connectors/connectors.d.ts.map +1 -1
- package/resources/magic-transit/connectors/connectors.js.map +1 -1
- package/resources/magic-transit/connectors/connectors.mjs.map +1 -1
- package/resources/magic-transit/connectors/events/events.d.ts +12 -5
- package/resources/magic-transit/connectors/events/events.d.ts.map +1 -1
- package/resources/magic-transit/connectors/events/events.js +6 -2
- package/resources/magic-transit/connectors/events/events.js.map +1 -1
- package/resources/magic-transit/connectors/events/events.mjs +6 -2
- package/resources/magic-transit/connectors/events/events.mjs.map +1 -1
- package/resources/magic-transit/connectors/events/latest.d.ts +5 -2
- package/resources/magic-transit/connectors/events/latest.d.ts.map +1 -1
- package/resources/magic-transit/connectors/events/latest.js +1 -1
- package/resources/magic-transit/connectors/events/latest.mjs +1 -1
- package/resources/magic-transit/connectors/snapshots/latest.d.ts +5 -2
- package/resources/magic-transit/connectors/snapshots/latest.d.ts.map +1 -1
- package/resources/magic-transit/connectors/snapshots/latest.js +1 -1
- package/resources/magic-transit/connectors/snapshots/latest.mjs +1 -1
- package/resources/magic-transit/connectors/snapshots/snapshots.d.ts +12 -5
- package/resources/magic-transit/connectors/snapshots/snapshots.d.ts.map +1 -1
- package/resources/magic-transit/connectors/snapshots/snapshots.js +6 -2
- package/resources/magic-transit/connectors/snapshots/snapshots.js.map +1 -1
- package/resources/magic-transit/connectors/snapshots/snapshots.mjs +6 -2
- package/resources/magic-transit/connectors/snapshots/snapshots.mjs.map +1 -1
- package/resources/memberships.d.ts +6 -6
- package/resources/network-interconnects/cnis.d.ts +5 -0
- package/resources/network-interconnects/cnis.d.ts.map +1 -1
- package/resources/queues/index.d.ts +1 -1
- package/resources/queues/index.d.ts.map +1 -1
- package/resources/queues/index.js +1 -2
- package/resources/queues/index.js.map +1 -1
- package/resources/queues/index.mjs +1 -1
- package/resources/queues/index.mjs.map +1 -1
- package/resources/queues/messages.d.ts +21 -18
- package/resources/queues/messages.d.ts.map +1 -1
- package/resources/queues/messages.js +7 -12
- package/resources/queues/messages.js.map +1 -1
- package/resources/queues/messages.mjs +6 -10
- package/resources/queues/messages.mjs.map +1 -1
- package/resources/queues/queues.d.ts +2 -2
- package/resources/queues/queues.d.ts.map +1 -1
- package/resources/queues/queues.js +0 -1
- package/resources/queues/queues.js.map +1 -1
- package/resources/queues/queues.mjs +1 -2
- package/resources/queues/queues.mjs.map +1 -1
- package/resources/radar/ai/bots/summary.d.ts +46 -16
- package/resources/radar/ai/bots/summary.d.ts.map +1 -1
- package/resources/radar/ai/inference/summary.d.ts +92 -32
- package/resources/radar/ai/inference/summary.d.ts.map +1 -1
- package/resources/radar/ai/inference/timeseries-groups/summary.d.ts +142 -4
- package/resources/radar/ai/inference/timeseries-groups/summary.d.ts.map +1 -1
- package/resources/radar/ai/timeseries-groups.d.ts +71 -2
- package/resources/radar/ai/timeseries-groups.d.ts.map +1 -1
- package/resources/radar/annotations/outages.d.ts +3 -0
- package/resources/radar/annotations/outages.d.ts.map +1 -1
- package/resources/radar/as112/as112.d.ts +54 -18
- package/resources/radar/as112/as112.d.ts.map +1 -1
- package/resources/radar/as112/as112.js.map +1 -1
- package/resources/radar/as112/as112.mjs.map +1 -1
- package/resources/radar/as112/summary.d.ts +306 -96
- package/resources/radar/as112/summary.d.ts.map +1 -1
- package/resources/radar/as112/timeseries-groups.d.ts +422 -8
- package/resources/radar/as112/timeseries-groups.d.ts.map +1 -1
- package/resources/radar/as112/top.d.ts +196 -60
- package/resources/radar/as112/top.d.ts.map +1 -1
- package/resources/radar/attacks/layer3/layer3.d.ts +72 -3
- package/resources/radar/attacks/layer3/layer3.d.ts.map +1 -1
- package/resources/radar/attacks/layer3/layer3.js.map +1 -1
- package/resources/radar/attacks/layer3/layer3.mjs.map +1 -1
- package/resources/radar/attacks/layer3/summary.d.ts +373 -112
- package/resources/radar/attacks/layer3/summary.d.ts.map +1 -1
- package/resources/radar/attacks/layer3/timeseries-groups.d.ts +493 -10
- package/resources/radar/attacks/layer3/timeseries-groups.d.ts.map +1 -1
- package/resources/radar/attacks/layer3/top/locations.d.ts +92 -30
- package/resources/radar/attacks/layer3/top/locations.d.ts.map +1 -1
- package/resources/radar/attacks/layer3/top/top.d.ts +140 -55
- package/resources/radar/attacks/layer3/top/top.d.ts.map +1 -1
- package/resources/radar/attacks/layer3/top/top.js.map +1 -1
- package/resources/radar/attacks/layer3/top/top.mjs.map +1 -1
- package/resources/radar/attacks/layer7/layer7.d.ts +52 -16
- package/resources/radar/attacks/layer7/layer7.d.ts.map +1 -1
- package/resources/radar/attacks/layer7/layer7.js.map +1 -1
- package/resources/radar/attacks/layer7/layer7.mjs.map +1 -1
- package/resources/radar/attacks/layer7/summary.d.ts +322 -112
- package/resources/radar/attacks/layer7/summary.d.ts.map +1 -1
- package/resources/radar/attacks/layer7/timeseries-groups.d.ts +495 -12
- package/resources/radar/attacks/layer7/timeseries-groups.d.ts.map +1 -1
- package/resources/radar/attacks/layer7/top/ases.d.ts +46 -15
- package/resources/radar/attacks/layer7/top/ases.d.ts.map +1 -1
- package/resources/radar/attacks/layer7/top/locations.d.ts +92 -30
- package/resources/radar/attacks/layer7/top/locations.d.ts.map +1 -1
- package/resources/radar/attacks/layer7/top/top.d.ts +140 -55
- package/resources/radar/attacks/layer7/top/top.d.ts.map +1 -1
- package/resources/radar/attacks/layer7/top/top.js.map +1 -1
- package/resources/radar/attacks/layer7/top/top.mjs.map +1 -1
- package/resources/radar/bgp/bgp.d.ts +25 -16
- package/resources/radar/bgp/bgp.d.ts.map +1 -1
- package/resources/radar/bgp/bgp.js.map +1 -1
- package/resources/radar/bgp/bgp.mjs.map +1 -1
- package/resources/radar/bgp/ips.d.ts +98 -10
- package/resources/radar/bgp/ips.d.ts.map +1 -1
- package/resources/radar/bgp/routes.d.ts +3 -3
- package/resources/radar/bgp/top/top.d.ts +3 -0
- package/resources/radar/bgp/top/top.d.ts.map +1 -1
- package/resources/radar/bgp/top/top.js.map +1 -1
- package/resources/radar/bgp/top/top.mjs.map +1 -1
- package/resources/radar/dns/dns.d.ts +54 -18
- package/resources/radar/dns/dns.d.ts.map +1 -1
- package/resources/radar/dns/dns.js.map +1 -1
- package/resources/radar/dns/dns.mjs.map +1 -1
- package/resources/radar/dns/summary.d.ts +535 -160
- package/resources/radar/dns/summary.d.ts.map +1 -1
- package/resources/radar/dns/timeseries-groups.d.ts +702 -12
- package/resources/radar/dns/timeseries-groups.d.ts.map +1 -1
- package/resources/radar/dns/top.d.ts +100 -30
- package/resources/radar/dns/top.d.ts.map +1 -1
- package/resources/radar/email/email.d.ts +9 -0
- package/resources/radar/email/email.d.ts.map +1 -1
- package/resources/radar/email/email.js.map +1 -1
- package/resources/radar/email/email.mjs.map +1 -1
- package/resources/radar/email/routing/summary.d.ts +288 -96
- package/resources/radar/email/routing/summary.d.ts.map +1 -1
- package/resources/radar/email/routing/timeseries-groups.d.ts +428 -6
- package/resources/radar/email/routing/timeseries-groups.d.ts.map +1 -1
- package/resources/radar/email/security/summary.d.ts +456 -144
- package/resources/radar/email/security/summary.d.ts.map +1 -1
- package/resources/radar/email/security/timeseries-groups.d.ts +638 -9
- package/resources/radar/email/security/timeseries-groups.d.ts.map +1 -1
- package/resources/radar/email/security/top/tlds/malicious.d.ts +49 -15
- package/resources/radar/email/security/top/tlds/malicious.d.ts.map +1 -1
- package/resources/radar/email/security/top/tlds/spam.d.ts +49 -15
- package/resources/radar/email/security/top/tlds/spam.d.ts.map +1 -1
- package/resources/radar/email/security/top/tlds/spoof.d.ts +49 -15
- package/resources/radar/email/security/top/tlds/spoof.d.ts.map +1 -1
- package/resources/radar/email/security/top/tlds/tlds.d.ts +49 -15
- package/resources/radar/email/security/top/tlds/tlds.d.ts.map +1 -1
- package/resources/radar/email/security/top/tlds/tlds.js.map +1 -1
- package/resources/radar/email/security/top/tlds/tlds.mjs.map +1 -1
- package/resources/radar/entities/locations.d.ts +12 -0
- package/resources/radar/entities/locations.d.ts.map +1 -1
- package/resources/radar/http/ases/ases.d.ts +49 -15
- package/resources/radar/http/ases/ases.d.ts.map +1 -1
- package/resources/radar/http/ases/ases.js.map +1 -1
- package/resources/radar/http/ases/ases.mjs.map +1 -1
- package/resources/radar/http/ases/bot-class.d.ts +49 -15
- package/resources/radar/http/ases/bot-class.d.ts.map +1 -1
- package/resources/radar/http/ases/browser-family.d.ts +49 -15
- package/resources/radar/http/ases/browser-family.d.ts.map +1 -1
- package/resources/radar/http/ases/device-type.d.ts +49 -15
- package/resources/radar/http/ases/device-type.d.ts.map +1 -1
- package/resources/radar/http/ases/http-method.d.ts +49 -15
- package/resources/radar/http/ases/http-method.d.ts.map +1 -1
- package/resources/radar/http/ases/http-protocol.d.ts +49 -15
- package/resources/radar/http/ases/http-protocol.d.ts.map +1 -1
- package/resources/radar/http/ases/ip-version.d.ts +49 -15
- package/resources/radar/http/ases/ip-version.d.ts.map +1 -1
- package/resources/radar/http/ases/os.d.ts +49 -15
- package/resources/radar/http/ases/os.d.ts.map +1 -1
- package/resources/radar/http/ases/tls-version.d.ts +49 -15
- package/resources/radar/http/ases/tls-version.d.ts.map +1 -1
- package/resources/radar/http/http.d.ts +54 -18
- 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/http/locations/bot-class.d.ts +49 -15
- package/resources/radar/http/locations/bot-class.d.ts.map +1 -1
- package/resources/radar/http/locations/browser-family.d.ts +49 -15
- package/resources/radar/http/locations/browser-family.d.ts.map +1 -1
- package/resources/radar/http/locations/device-type.d.ts +49 -15
- package/resources/radar/http/locations/device-type.d.ts.map +1 -1
- package/resources/radar/http/locations/http-method.d.ts +49 -15
- package/resources/radar/http/locations/http-method.d.ts.map +1 -1
- package/resources/radar/http/locations/http-protocol.d.ts +49 -15
- package/resources/radar/http/locations/http-protocol.d.ts.map +1 -1
- package/resources/radar/http/locations/ip-version.d.ts +49 -15
- package/resources/radar/http/locations/ip-version.d.ts.map +1 -1
- package/resources/radar/http/locations/locations.d.ts +49 -15
- package/resources/radar/http/locations/locations.d.ts.map +1 -1
- package/resources/radar/http/locations/locations.js.map +1 -1
- package/resources/radar/http/locations/locations.mjs.map +1 -1
- package/resources/radar/http/locations/os.d.ts +49 -15
- package/resources/radar/http/locations/os.d.ts.map +1 -1
- package/resources/radar/http/locations/tls-version.d.ts +49 -15
- package/resources/radar/http/locations/tls-version.d.ts.map +1 -1
- package/resources/radar/http/summary.d.ts +431 -128
- package/resources/radar/http/summary.d.ts.map +1 -1
- package/resources/radar/http/timeseries-groups.d.ts +703 -13
- package/resources/radar/http/timeseries-groups.d.ts.map +1 -1
- package/resources/radar/http/top.d.ts +92 -30
- package/resources/radar/http/top.d.ts.map +1 -1
- package/resources/radar/leaked-credentials/summary.d.ts +104 -32
- package/resources/radar/leaked-credentials/summary.d.ts.map +1 -1
- package/resources/radar/leaked-credentials/timeseries-groups.d.ts +140 -2
- package/resources/radar/leaked-credentials/timeseries-groups.d.ts.map +1 -1
- package/resources/radar/netflows/netflows.d.ts +105 -31
- package/resources/radar/netflows/netflows.d.ts.map +1 -1
- package/resources/radar/netflows/netflows.js.map +1 -1
- package/resources/radar/netflows/netflows.mjs.map +1 -1
- package/resources/radar/netflows/top.d.ts +134 -0
- package/resources/radar/netflows/top.d.ts.map +1 -1
- package/resources/radar/quality/iqi.d.ts +116 -17
- package/resources/radar/quality/iqi.d.ts.map +1 -1
- package/resources/radar/quality/speed/speed.d.ts +112 -14
- package/resources/radar/quality/speed/speed.d.ts.map +1 -1
- package/resources/radar/quality/speed/speed.js.map +1 -1
- package/resources/radar/quality/speed/speed.mjs.map +1 -1
- package/resources/radar/quality/speed/top.d.ts +92 -30
- package/resources/radar/quality/speed/top.d.ts.map +1 -1
- package/resources/radar/ranking/internet-services.d.ts +106 -4
- package/resources/radar/ranking/internet-services.d.ts.map +1 -1
- package/resources/radar/ranking/ranking.d.ts +106 -3
- package/resources/radar/ranking/ranking.d.ts.map +1 -1
- package/resources/radar/ranking/ranking.js.map +1 -1
- package/resources/radar/ranking/ranking.mjs.map +1 -1
- package/resources/radar/robots-txt/top/top.d.ts +42 -17
- package/resources/radar/robots-txt/top/top.d.ts.map +1 -1
- package/resources/radar/robots-txt/top/top.js.map +1 -1
- package/resources/radar/robots-txt/top/top.mjs.map +1 -1
- package/resources/radar/robots-txt/top/user-agents.d.ts +42 -17
- package/resources/radar/robots-txt/top/user-agents.d.ts.map +1 -1
- package/resources/radar/search.d.ts +2 -2
- package/resources/radar/search.d.ts.map +1 -1
- package/resources/radar/tcp-resets-timeouts.d.ts +99 -31
- package/resources/radar/tcp-resets-timeouts.d.ts.map +1 -1
- package/resources/radar/traffic-anomalies/locations.d.ts +3 -0
- package/resources/radar/traffic-anomalies/locations.d.ts.map +1 -1
- package/resources/radar/verified-bots/top.d.ts +100 -30
- package/resources/radar/verified-bots/top.d.ts.map +1 -1
- package/resources/rulesets/rules.d.ts +52 -52
- package/resources/rulesets/rules.d.ts.map +1 -1
- package/resources/schema-validation/schemas.d.ts +2 -1
- package/resources/schema-validation/schemas.d.ts.map +1 -1
- package/resources/schema-validation/schemas.js +1 -0
- package/resources/schema-validation/schemas.js.map +1 -1
- package/resources/schema-validation/schemas.mjs +1 -0
- package/resources/schema-validation/schemas.mjs.map +1 -1
- package/resources/shared.d.ts +9 -7
- package/resources/shared.d.ts.map +1 -1
- package/resources/shared.js.map +1 -1
- package/resources/shared.mjs.map +1 -1
- package/resources/spectrum/spectrum.d.ts +6 -6
- package/resources/spectrum/spectrum.d.ts.map +1 -1
- package/resources/url-scanner/scans.d.ts +5 -5
- package/resources/url-scanner/scans.d.ts.map +1 -1
- package/resources/user/billing/history.d.ts +1 -7
- package/resources/user/billing/history.d.ts.map +1 -1
- package/resources/user/billing/history.js.map +1 -1
- package/resources/user/billing/history.mjs.map +1 -1
- package/resources/user/billing/profile.d.ts +1 -4
- package/resources/user/billing/profile.d.ts.map +1 -1
- package/resources/user/billing/profile.js +1 -4
- package/resources/user/billing/profile.js.map +1 -1
- package/resources/user/billing/profile.mjs +1 -4
- package/resources/user/billing/profile.mjs.map +1 -1
- package/resources/user/organizations.d.ts +3 -19
- package/resources/user/organizations.d.ts.map +1 -1
- package/resources/user/organizations.js +2 -12
- package/resources/user/organizations.js.map +1 -1
- package/resources/user/organizations.mjs +2 -12
- package/resources/user/organizations.mjs.map +1 -1
- package/resources/user/user.d.ts +114 -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/workers/scripts/script-and-version-settings.d.ts +75 -3
- package/resources/workers/scripts/script-and-version-settings.d.ts.map +1 -1
- package/resources/workers/scripts/scripts.d.ts +30 -10
- package/resources/workers/scripts/scripts.d.ts.map +1 -1
- package/resources/workers/scripts/scripts.js +1 -0
- package/resources/workers/scripts/scripts.js.map +1 -1
- package/resources/workers/scripts/scripts.mjs +1 -0
- package/resources/workers/scripts/scripts.mjs.map +1 -1
- package/resources/workers/scripts/versions.d.ts +900 -6
- package/resources/workers/scripts/versions.d.ts.map +1 -1
- package/resources/workers/scripts/versions.js.map +1 -1
- package/resources/workers/scripts/versions.mjs.map +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/bindings.d.ts +25 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/bindings.d.ts.map +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/bindings.js.map +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/bindings.mjs.map +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.d.ts +30 -10
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.d.ts.map +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.js +1 -0
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.js.map +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.mjs +1 -0
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.mjs.map +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/settings.d.ts +75 -3
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/settings.d.ts.map +1 -1
- package/resources/workflows/instances/instances.d.ts +2 -2
- package/resources/workflows/instances/status.d.ts +2 -2
- package/resources/workflows/workflows.d.ts +1 -1
- package/resources/zaraz/config.d.ts +2 -2
- package/resources/zaraz/default.d.ts +1 -1
- package/resources/zaraz/export.d.ts +1 -1
- package/resources/zaraz/history/configs.d.ts +1 -1
- package/resources/zaraz/history/history.d.ts +2 -2
- package/resources/zaraz/publish.d.ts +1 -1
- package/resources/zaraz/workflow.d.ts +1 -1
- package/resources/zaraz/zaraz.d.ts +1 -1
- package/resources/zero-trust/access/applications/applications.d.ts +54 -54
- 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/bookmarks.d.ts +5 -47
- package/resources/zero-trust/access/bookmarks.d.ts.map +1 -1
- package/resources/zero-trust/access/bookmarks.js +5 -47
- package/resources/zero-trust/access/bookmarks.js.map +1 -1
- package/resources/zero-trust/access/bookmarks.mjs +5 -47
- package/resources/zero-trust/access/bookmarks.mjs.map +1 -1
- package/resources/zero-trust/access/infrastructure/index.d.ts +1 -1
- package/resources/zero-trust/access/infrastructure/index.d.ts.map +1 -1
- package/resources/zero-trust/access/infrastructure/index.js.map +1 -1
- package/resources/zero-trust/access/infrastructure/index.mjs.map +1 -1
- package/resources/zero-trust/access/infrastructure/infrastructure.d.ts +2 -2
- package/resources/zero-trust/access/infrastructure/infrastructure.d.ts.map +1 -1
- package/resources/zero-trust/access/infrastructure/infrastructure.js.map +1 -1
- package/resources/zero-trust/access/infrastructure/infrastructure.mjs.map +1 -1
- package/resources/zero-trust/access/infrastructure/targets.d.ts +23 -4
- package/resources/zero-trust/access/infrastructure/targets.d.ts.map +1 -1
- package/resources/zero-trust/access/infrastructure/targets.js +21 -5
- package/resources/zero-trust/access/infrastructure/targets.js.map +1 -1
- package/resources/zero-trust/access/infrastructure/targets.mjs +21 -5
- package/resources/zero-trust/access/infrastructure/targets.mjs.map +1 -1
- package/resources/zero-trust/devices/devices.d.ts +12 -22
- package/resources/zero-trust/devices/devices.d.ts.map +1 -1
- package/resources/zero-trust/devices/devices.js +9 -18
- package/resources/zero-trust/devices/devices.js.map +1 -1
- package/resources/zero-trust/devices/devices.mjs +10 -19
- package/resources/zero-trust/devices/devices.mjs.map +1 -1
- package/resources/zero-trust/devices/devices_.d.ts +5 -5
- package/resources/zero-trust/devices/devices_.js +1 -1
- package/resources/zero-trust/devices/devices_.mjs +1 -1
- package/resources/zero-trust/devices/dex-tests.d.ts +562 -1
- package/resources/zero-trust/devices/dex-tests.d.ts.map +1 -1
- package/resources/zero-trust/devices/dex-tests.js +102 -1
- package/resources/zero-trust/devices/dex-tests.js.map +1 -1
- package/resources/zero-trust/devices/dex-tests.mjs +100 -0
- package/resources/zero-trust/devices/dex-tests.mjs.map +1 -1
- package/resources/zero-trust/devices/index.d.ts +2 -2
- package/resources/zero-trust/devices/index.d.ts.map +1 -1
- package/resources/zero-trust/devices/index.js +2 -1
- package/resources/zero-trust/devices/index.js.map +1 -1
- package/resources/zero-trust/devices/index.mjs +1 -1
- package/resources/zero-trust/devices/index.mjs.map +1 -1
- package/resources/zero-trust/devices/override-codes.d.ts +6 -14
- package/resources/zero-trust/devices/override-codes.d.ts.map +1 -1
- package/resources/zero-trust/devices/override-codes.js +6 -14
- package/resources/zero-trust/devices/override-codes.js.map +1 -1
- package/resources/zero-trust/devices/override-codes.mjs +6 -14
- package/resources/zero-trust/devices/override-codes.mjs.map +1 -1
- package/resources/zero-trust/devices/posture/posture.d.ts +12 -6
- package/resources/zero-trust/devices/posture/posture.d.ts.map +1 -1
- package/resources/zero-trust/devices/posture/posture.js.map +1 -1
- package/resources/zero-trust/devices/posture/posture.mjs.map +1 -1
- package/resources/zero-trust/devices/registrations.d.ts +2 -2
- package/resources/zero-trust/devices/registrations.js +1 -1
- package/resources/zero-trust/devices/registrations.mjs +1 -1
- package/resources/zero-trust/devices/revoke.d.ts +4 -10
- package/resources/zero-trust/devices/revoke.d.ts.map +1 -1
- package/resources/zero-trust/devices/revoke.js +4 -10
- package/resources/zero-trust/devices/revoke.js.map +1 -1
- package/resources/zero-trust/devices/revoke.mjs +4 -10
- package/resources/zero-trust/devices/revoke.mjs.map +1 -1
- package/resources/zero-trust/devices/settings.d.ts +16 -1
- package/resources/zero-trust/devices/settings.d.ts.map +1 -1
- package/resources/zero-trust/devices/settings.js +15 -0
- package/resources/zero-trust/devices/settings.js.map +1 -1
- package/resources/zero-trust/devices/settings.mjs +15 -0
- package/resources/zero-trust/devices/settings.mjs.map +1 -1
- package/resources/zero-trust/devices/unrevoke.d.ts +4 -9
- package/resources/zero-trust/devices/unrevoke.d.ts.map +1 -1
- package/resources/zero-trust/devices/unrevoke.js +4 -9
- package/resources/zero-trust/devices/unrevoke.js.map +1 -1
- package/resources/zero-trust/devices/unrevoke.mjs +4 -9
- package/resources/zero-trust/devices/unrevoke.mjs.map +1 -1
- package/resources/zero-trust/dex/dex.d.ts +4 -0
- package/resources/zero-trust/dex/dex.d.ts.map +1 -1
- package/resources/zero-trust/dex/dex.js +4 -0
- package/resources/zero-trust/dex/dex.js.map +1 -1
- package/resources/zero-trust/dex/dex.mjs +4 -0
- package/resources/zero-trust/dex/dex.mjs.map +1 -1
- package/resources/zero-trust/dex/index.d.ts +1 -0
- package/resources/zero-trust/dex/index.d.ts.map +1 -1
- package/resources/zero-trust/dex/index.js +3 -1
- package/resources/zero-trust/dex/index.js.map +1 -1
- package/resources/zero-trust/dex/index.mjs +1 -0
- package/resources/zero-trust/dex/index.mjs.map +1 -1
- package/resources/zero-trust/dex/warp-change-events.d.ts +167 -0
- package/resources/zero-trust/dex/warp-change-events.d.ts.map +1 -0
- package/resources/zero-trust/dex/warp-change-events.js +31 -0
- package/resources/zero-trust/dex/warp-change-events.js.map +1 -0
- package/resources/zero-trust/dex/warp-change-events.mjs +27 -0
- package/resources/zero-trust/dex/warp-change-events.mjs.map +1 -0
- package/resources/zero-trust/dlp/entries.d.ts +27 -3
- package/resources/zero-trust/dlp/entries.d.ts.map +1 -1
- package/resources/zero-trust/dlp/entries.js.map +1 -1
- package/resources/zero-trust/dlp/entries.mjs.map +1 -1
- package/resources/zero-trust/dlp/profiles/custom.d.ts +89 -431
- package/resources/zero-trust/dlp/profiles/custom.d.ts.map +1 -1
- package/resources/zero-trust/dlp/profiles/custom.js +5 -9
- package/resources/zero-trust/dlp/profiles/custom.js.map +1 -1
- package/resources/zero-trust/dlp/profiles/custom.mjs +5 -9
- package/resources/zero-trust/dlp/profiles/custom.mjs.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 +14 -14
- package/resources/zero-trust/dlp/profiles/predefined.d.ts.map +1 -1
- package/resources/zero-trust/dlp/profiles/predefined.js +1 -9
- package/resources/zero-trust/dlp/profiles/predefined.js.map +1 -1
- package/resources/zero-trust/dlp/profiles/predefined.mjs +1 -9
- package/resources/zero-trust/dlp/profiles/predefined.mjs.map +1 -1
- package/resources/zero-trust/dlp/profiles/profiles.d.ts +29 -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/gateway/configurations/configurations.d.ts +26 -0
- 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/configurations/custom-certificate.d.ts +1 -7
- package/resources/zero-trust/gateway/configurations/custom-certificate.d.ts.map +1 -1
- package/resources/zero-trust/gateway/configurations/custom-certificate.js +1 -7
- package/resources/zero-trust/gateway/configurations/custom-certificate.js.map +1 -1
- package/resources/zero-trust/gateway/configurations/custom-certificate.mjs +1 -7
- package/resources/zero-trust/gateway/configurations/custom-certificate.mjs.map +1 -1
- package/resources/zero-trust/gateway/lists/lists.d.ts +14 -2
- 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/locations.d.ts +1 -1
- package/resources/zero-trust/gateway/locations.d.ts.map +1 -1
- package/resources/zero-trust/gateway/rules.d.ts +10 -6
- package/resources/zero-trust/gateway/rules.d.ts.map +1 -1
- package/resources/zero-trust/gateway/rules.js.map +1 -1
- package/resources/zero-trust/gateway/rules.mjs.map +1 -1
- package/resources/zero-trust/networks/routes/networks.d.ts +3 -27
- package/resources/zero-trust/networks/routes/networks.d.ts.map +1 -1
- package/resources/zero-trust/networks/routes/networks.js +3 -27
- package/resources/zero-trust/networks/routes/networks.js.map +1 -1
- package/resources/zero-trust/networks/routes/networks.mjs +3 -27
- package/resources/zero-trust/networks/routes/networks.mjs.map +1 -1
- package/resources/zero-trust/networks/virtual-networks.d.ts +5 -1
- package/resources/zero-trust/networks/virtual-networks.d.ts.map +1 -1
- package/resources/zero-trust/networks/virtual-networks.js.map +1 -1
- package/resources/zero-trust/networks/virtual-networks.mjs.map +1 -1
- package/resources/zero-trust/tunnels/cloudflared/cloudflared.d.ts +15 -5
- package/resources/zero-trust/tunnels/cloudflared/cloudflared.d.ts.map +1 -1
- package/resources/zero-trust/tunnels/cloudflared/cloudflared.js.map +1 -1
- package/resources/zero-trust/tunnels/cloudflared/cloudflared.mjs.map +1 -1
- package/resources/zero-trust/tunnels/tunnels.d.ts +3 -1
- package/resources/zero-trust/tunnels/tunnels.d.ts.map +1 -1
- package/resources/zero-trust/tunnels/tunnels.js.map +1 -1
- package/resources/zero-trust/tunnels/tunnels.mjs.map +1 -1
- package/resources/zero-trust/tunnels/warp-connector/warp-connector.d.ts +15 -5
- package/resources/zero-trust/tunnels/warp-connector/warp-connector.d.ts.map +1 -1
- package/resources/zero-trust/tunnels/warp-connector/warp-connector.js.map +1 -1
- package/resources/zero-trust/tunnels/warp-connector/warp-connector.mjs.map +1 -1
- package/resources/zones/index.d.ts +1 -1
- package/resources/zones/index.d.ts.map +1 -1
- package/resources/zones/index.js.map +1 -1
- package/resources/zones/index.mjs +1 -1
- package/resources/zones/index.mjs.map +1 -1
- package/resources/zones/settings.d.ts +2 -2
- package/resources/zones/settings.d.ts.map +1 -1
- package/resources/zones/subscriptions.d.ts +0 -63
- package/resources/zones/subscriptions.d.ts.map +1 -1
- package/resources/zones/subscriptions.js +0 -41
- package/resources/zones/subscriptions.js.map +1 -1
- package/resources/zones/subscriptions.mjs +0 -41
- package/resources/zones/subscriptions.mjs.map +1 -1
- package/resources/zones/zones.d.ts +29 -29
- package/resources/zones/zones.d.ts.map +1 -1
- package/resources/zones/zones.js.map +1 -1
- package/resources/zones/zones.mjs +1 -1
- package/resources/zones/zones.mjs.map +1 -1
- package/src/core.ts +4 -0
- package/src/resource.ts +1 -1
- package/src/resources/accounts/accounts.ts +8 -6
- package/src/resources/accounts/index.ts +0 -2
- package/src/resources/accounts/logs/audit.ts +203 -52
- package/src/resources/accounts/members.ts +5 -5
- package/src/resources/accounts/roles.ts +2 -2
- package/src/resources/accounts/subscriptions.ts +4 -10
- package/src/resources/accounts/tokens/permission-groups.ts +2 -2
- package/src/resources/accounts/tokens/tokens.ts +6 -6
- package/src/resources/accounts/tokens/value.ts +1 -1
- package/src/resources/addressing/address-maps/address-maps.ts +5 -22
- package/src/resources/addressing/prefixes/advertisement-status.ts +2 -19
- package/src/resources/ai/ai.ts +4 -4
- package/src/resources/billing/profiles.ts +2 -0
- package/src/resources/cloud-connector/rules.ts +3 -3
- package/src/resources/cloudforce-one/threat-events/attackers.ts +2 -2
- package/src/resources/cloudforce-one/threat-events/categories.ts +17 -13
- package/src/resources/cloudforce-one/threat-events/countries.ts +2 -2
- package/src/resources/cloudforce-one/threat-events/crons.ts +4 -4
- package/src/resources/cloudforce-one/threat-events/datasets/datasets.ts +248 -0
- package/src/resources/cloudforce-one/threat-events/datasets/health.ts +53 -0
- package/src/resources/cloudforce-one/threat-events/datasets/index.ts +16 -0
- package/src/resources/cloudforce-one/threat-events/datasets.ts +1 -234
- package/src/resources/cloudforce-one/threat-events/event-tags.ts +4 -4
- package/src/resources/cloudforce-one/threat-events/index.ts +1 -1
- package/src/resources/cloudforce-one/threat-events/indicator-types.ts +2 -2
- package/src/resources/cloudforce-one/threat-events/insights.ts +8 -8
- package/src/resources/cloudforce-one/threat-events/raw.ts +4 -4
- package/src/resources/cloudforce-one/threat-events/relate.ts +2 -2
- package/src/resources/cloudforce-one/threat-events/tags.ts +2 -2
- package/src/resources/cloudforce-one/threat-events/target-industries.ts +2 -2
- package/src/resources/cloudforce-one/threat-events/threat-events.ts +26 -26
- package/src/resources/d1/database.ts +6 -6
- package/src/resources/dns/analytics/reports/bytimes.ts +1 -1
- package/src/resources/dns/analytics/reports/reports.ts +1 -1
- package/src/resources/dns/records.ts +2557 -2550
- package/src/resources/dns-firewall/analytics/reports/bytimes.ts +1 -1
- package/src/resources/dns-firewall/analytics/reports/reports.ts +1 -1
- package/src/resources/email-routing/email-routing.ts +2 -14
- package/src/resources/email-security/investigate/investigate.ts +12 -0
- package/src/resources/firewall/lockdowns.ts +18 -0
- package/src/resources/firewall/ua-rules.ts +17 -7
- package/src/resources/firewall/waf/overrides.ts +5 -45
- package/src/resources/firewall/waf/packages/groups.ts +3 -27
- package/src/resources/firewall/waf/packages/packages.ts +2 -16
- package/src/resources/firewall/waf/packages/rules.ts +3 -27
- package/src/resources/iam/iam.ts +33 -0
- package/src/resources/iam/index.ts +14 -0
- package/src/resources/iam/permission-groups.ts +7 -7
- package/src/resources/iam/resource-groups.ts +11 -11
- package/src/resources/iam/user-groups/index.ts +29 -0
- package/src/resources/iam/user-groups/members.ts +277 -0
- package/src/resources/iam/user-groups/user-groups.ts +995 -0
- package/src/resources/iam/user-groups.ts +3 -0
- package/src/resources/images/v1/v1.ts +1 -9
- package/src/resources/intel/attack-surface-report/issues.ts +5 -38
- package/src/resources/ips.ts +51 -34
- package/src/resources/kv/index.ts +6 -0
- package/src/resources/kv/kv.ts +12 -0
- package/src/resources/kv/namespaces/index.ts +6 -0
- package/src/resources/kv/namespaces/keys.ts +3 -30
- package/src/resources/kv/namespaces/namespaces.ts +251 -3
- package/src/resources/load-balancers/searches.ts +7 -15
- package/src/resources/logs/control/cmb/config.ts +10 -0
- package/src/resources/magic-transit/connectors/connectors.ts +8 -2
- package/src/resources/magic-transit/connectors/events/events.ts +12 -5
- package/src/resources/magic-transit/connectors/events/latest.ts +5 -2
- package/src/resources/magic-transit/connectors/snapshots/latest.ts +5 -2
- package/src/resources/magic-transit/connectors/snapshots/snapshots.ts +12 -5
- package/src/resources/memberships.ts +6 -6
- package/src/resources/network-interconnects/cnis.ts +6 -0
- package/src/resources/queues/index.ts +0 -1
- package/src/resources/queues/messages.ts +30 -27
- package/src/resources/queues/queues.ts +0 -3
- package/src/resources/radar/ai/bots/summary.ts +61 -20
- package/src/resources/radar/ai/inference/summary.ts +122 -40
- package/src/resources/radar/ai/inference/timeseries-groups/summary.ts +196 -4
- package/src/resources/radar/ai/timeseries-groups.ts +98 -2
- package/src/resources/radar/annotations/outages.ts +3 -0
- package/src/resources/radar/as112/as112.ts +72 -21
- package/src/resources/radar/as112/summary.ts +396 -120
- package/src/resources/radar/as112/timeseries-groups.ts +584 -8
- package/src/resources/radar/as112/top.ts +256 -72
- package/src/resources/radar/attacks/layer3/layer3.ts +102 -3
- package/src/resources/radar/attacks/layer3/summary.ts +478 -140
- package/src/resources/radar/attacks/layer3/timeseries-groups.ts +682 -10
- package/src/resources/radar/attacks/layer3/top/locations.ts +122 -36
- package/src/resources/radar/attacks/layer3/top/top.ts +185 -64
- package/src/resources/radar/attacks/layer7/layer7.ts +67 -19
- package/src/resources/radar/attacks/layer7/summary.ts +427 -140
- package/src/resources/radar/attacks/layer7/timeseries-groups.ts +684 -12
- package/src/resources/radar/attacks/layer7/top/ases.ts +61 -18
- package/src/resources/radar/attacks/layer7/top/locations.ts +122 -36
- package/src/resources/radar/attacks/layer7/top/top.ts +185 -64
- package/src/resources/radar/bgp/bgp.ts +29 -20
- package/src/resources/radar/bgp/ips.ts +138 -10
- package/src/resources/radar/bgp/routes.ts +3 -3
- package/src/resources/radar/bgp/top/top.ts +3 -0
- package/src/resources/radar/dns/dns.ts +72 -21
- package/src/resources/radar/dns/summary.ts +685 -200
- package/src/resources/radar/dns/timeseries-groups.ts +972 -12
- package/src/resources/radar/dns/top.ts +132 -36
- package/src/resources/radar/email/email.ts +9 -0
- package/src/resources/radar/email/routing/summary.ts +378 -120
- package/src/resources/radar/email/routing/timeseries-groups.ts +590 -6
- package/src/resources/radar/email/security/summary.ts +591 -180
- package/src/resources/radar/email/security/timeseries-groups.ts +881 -9
- package/src/resources/radar/email/security/top/tlds/malicious.ts +64 -18
- package/src/resources/radar/email/security/top/tlds/spam.ts +64 -18
- package/src/resources/radar/email/security/top/tlds/spoof.ts +64 -18
- package/src/resources/radar/email/security/top/tlds/tlds.ts +64 -18
- package/src/resources/radar/entities/locations.ts +12 -0
- package/src/resources/radar/http/ases/ases.ts +64 -18
- package/src/resources/radar/http/ases/bot-class.ts +64 -18
- package/src/resources/radar/http/ases/browser-family.ts +64 -18
- package/src/resources/radar/http/ases/device-type.ts +64 -18
- package/src/resources/radar/http/ases/http-method.ts +64 -18
- package/src/resources/radar/http/ases/http-protocol.ts +64 -18
- package/src/resources/radar/http/ases/ip-version.ts +64 -18
- package/src/resources/radar/http/ases/os.ts +64 -18
- package/src/resources/radar/http/ases/tls-version.ts +64 -18
- package/src/resources/radar/http/http.ts +72 -21
- package/src/resources/radar/http/locations/bot-class.ts +64 -18
- package/src/resources/radar/http/locations/browser-family.ts +64 -18
- package/src/resources/radar/http/locations/device-type.ts +64 -18
- package/src/resources/radar/http/locations/http-method.ts +64 -18
- package/src/resources/radar/http/locations/http-protocol.ts +64 -18
- package/src/resources/radar/http/locations/ip-version.ts +64 -18
- package/src/resources/radar/http/locations/locations.ts +64 -18
- package/src/resources/radar/http/locations/os.ts +64 -18
- package/src/resources/radar/http/locations/tls-version.ts +64 -18
- package/src/resources/radar/http/summary.ts +551 -160
- package/src/resources/radar/http/timeseries-groups.ts +973 -13
- package/src/resources/radar/http/top.ts +122 -36
- package/src/resources/radar/leaked-credentials/summary.ts +134 -40
- package/src/resources/radar/leaked-credentials/timeseries-groups.ts +194 -2
- package/src/resources/radar/netflows/netflows.ts +136 -37
- package/src/resources/radar/netflows/top.ts +188 -0
- package/src/resources/radar/quality/iqi.ts +158 -21
- package/src/resources/radar/quality/speed/speed.ts +154 -17
- package/src/resources/radar/quality/speed/top.ts +122 -36
- package/src/resources/radar/ranking/internet-services.ts +153 -4
- package/src/resources/radar/ranking/ranking.ts +154 -3
- package/src/resources/radar/robots-txt/top/top.ts +55 -22
- package/src/resources/radar/robots-txt/top/user-agents.ts +55 -22
- package/src/resources/radar/search.ts +2 -2
- package/src/resources/radar/tcp-resets-timeouts.ts +130 -37
- package/src/resources/radar/traffic-anomalies/locations.ts +3 -0
- package/src/resources/radar/verified-bots/top.ts +132 -36
- package/src/resources/rulesets/rules.ts +52 -52
- package/src/resources/schema-validation/schemas.ts +2 -1
- package/src/resources/shared.ts +9 -7
- package/src/resources/spectrum/spectrum.ts +6 -6
- package/src/resources/url-scanner/scans.ts +5 -5
- package/src/resources/user/billing/history.ts +1 -7
- package/src/resources/user/billing/profile.ts +1 -4
- package/src/resources/user/organizations.ts +3 -19
- package/src/resources/user/user.ts +140 -2
- package/src/resources/workers/scripts/script-and-version-settings.ts +90 -0
- package/src/resources/workers/scripts/scripts.ts +36 -10
- package/src/resources/workers/scripts/versions.ts +1198 -10
- package/src/resources/workers-for-platforms/dispatch/namespaces/scripts/bindings.ts +31 -1
- package/src/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.ts +36 -10
- package/src/resources/workers-for-platforms/dispatch/namespaces/scripts/settings.ts +90 -0
- package/src/resources/workflows/instances/instances.ts +2 -2
- package/src/resources/workflows/instances/status.ts +2 -2
- package/src/resources/workflows/workflows.ts +1 -1
- package/src/resources/zaraz/config.ts +2 -2
- package/src/resources/zaraz/default.ts +1 -1
- package/src/resources/zaraz/export.ts +1 -1
- package/src/resources/zaraz/history/configs.ts +1 -1
- package/src/resources/zaraz/history/history.ts +2 -2
- package/src/resources/zaraz/publish.ts +1 -1
- package/src/resources/zaraz/workflow.ts +1 -1
- package/src/resources/zaraz/zaraz.ts +1 -1
- package/src/resources/zero-trust/access/applications/applications.ts +252 -54
- package/src/resources/zero-trust/access/bookmarks.ts +5 -47
- package/src/resources/zero-trust/access/infrastructure/index.ts +1 -0
- package/src/resources/zero-trust/access/infrastructure/infrastructure.ts +2 -0
- package/src/resources/zero-trust/access/infrastructure/targets.ts +35 -5
- package/src/resources/zero-trust/devices/devices.ts +43 -20
- package/src/resources/zero-trust/devices/devices_.ts +5 -5
- package/src/resources/zero-trust/devices/dex-tests.ts +740 -2
- package/src/resources/zero-trust/devices/index.ts +17 -1
- package/src/resources/zero-trust/devices/override-codes.ts +6 -14
- package/src/resources/zero-trust/devices/posture/posture.ts +14 -6
- package/src/resources/zero-trust/devices/registrations.ts +2 -2
- package/src/resources/zero-trust/devices/revoke.ts +4 -10
- package/src/resources/zero-trust/devices/settings.ts +25 -0
- package/src/resources/zero-trust/devices/unrevoke.ts +4 -9
- package/src/resources/zero-trust/dex/dex.ts +12 -0
- package/src/resources/zero-trust/dex/index.ts +5 -0
- package/src/resources/zero-trust/dex/warp-change-events.ts +221 -0
- package/src/resources/zero-trust/dlp/entries.ts +45 -0
- package/src/resources/zero-trust/dlp/profiles/custom.ts +100 -637
- package/src/resources/zero-trust/dlp/profiles/index.ts +0 -1
- package/src/resources/zero-trust/dlp/profiles/predefined.ts +21 -14
- package/src/resources/zero-trust/dlp/profiles/profiles.ts +45 -2
- package/src/resources/zero-trust/gateway/configurations/configurations.ts +30 -0
- package/src/resources/zero-trust/gateway/configurations/custom-certificate.ts +1 -7
- package/src/resources/zero-trust/gateway/lists/lists.ts +16 -2
- package/src/resources/zero-trust/gateway/locations.ts +1 -1
- package/src/resources/zero-trust/gateway/rules.ts +11 -6
- package/src/resources/zero-trust/networks/routes/networks.ts +3 -27
- package/src/resources/zero-trust/networks/virtual-networks.ts +6 -1
- package/src/resources/zero-trust/tunnels/cloudflared/cloudflared.ts +15 -5
- package/src/resources/zero-trust/tunnels/tunnels.ts +3 -1
- package/src/resources/zero-trust/tunnels/warp-connector/warp-connector.ts +15 -5
- package/src/resources/zones/index.ts +1 -8
- package/src/resources/zones/settings.ts +38 -2
- package/src/resources/zones/subscriptions.ts +1 -107
- package/src/resources/zones/zones.ts +29 -43
- package/src/uploads.ts +45 -7
- package/src/version.ts +1 -1
- package/uploads.d.ts +1 -1
- package/uploads.d.ts.map +1 -1
- package/uploads.js +29 -7
- package/uploads.js.map +1 -1
- package/uploads.mjs +29 -7
- package/uploads.mjs.map +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1,111 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../resource';
|
|
4
|
-
import * as Core from '../../core';
|
|
5
|
-
import * as Shared from '../shared';
|
|
6
4
|
|
|
7
|
-
export class Subscriptions extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Create a zone subscription, either plan or add-ons.
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```ts
|
|
13
|
-
* const subscription =
|
|
14
|
-
* await client.zones.subscriptions.create(
|
|
15
|
-
* '506e3185e9c882d175a2d0cb0093d9f2',
|
|
16
|
-
* );
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
create(
|
|
20
|
-
identifier: string,
|
|
21
|
-
body: SubscriptionCreateParams,
|
|
22
|
-
options?: Core.RequestOptions,
|
|
23
|
-
): Core.APIPromise<SubscriptionCreateResponse> {
|
|
24
|
-
return (
|
|
25
|
-
this._client.post(`/zones/${identifier}/subscription`, { body, ...options }) as Core.APIPromise<{
|
|
26
|
-
result: SubscriptionCreateResponse;
|
|
27
|
-
}>
|
|
28
|
-
)._thenUnwrap((obj) => obj.result);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Updates zone subscriptions, either plan or add-ons.
|
|
33
|
-
*
|
|
34
|
-
* @example
|
|
35
|
-
* ```ts
|
|
36
|
-
* const subscription =
|
|
37
|
-
* await client.zones.subscriptions.update(
|
|
38
|
-
* '506e3185e9c882d175a2d0cb0093d9f2',
|
|
39
|
-
* );
|
|
40
|
-
* ```
|
|
41
|
-
*/
|
|
42
|
-
update(
|
|
43
|
-
identifier: string,
|
|
44
|
-
body: SubscriptionUpdateParams,
|
|
45
|
-
options?: Core.RequestOptions,
|
|
46
|
-
): Core.APIPromise<SubscriptionUpdateResponse> {
|
|
47
|
-
return (
|
|
48
|
-
this._client.put(`/zones/${identifier}/subscription`, { body, ...options }) as Core.APIPromise<{
|
|
49
|
-
result: SubscriptionUpdateResponse;
|
|
50
|
-
}>
|
|
51
|
-
)._thenUnwrap((obj) => obj.result);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Lists zone subscription details.
|
|
56
|
-
*
|
|
57
|
-
* @example
|
|
58
|
-
* ```ts
|
|
59
|
-
* const subscription = await client.zones.subscriptions.get(
|
|
60
|
-
* '506e3185e9c882d175a2d0cb0093d9f2',
|
|
61
|
-
* );
|
|
62
|
-
* ```
|
|
63
|
-
*/
|
|
64
|
-
get(identifier: string, options?: Core.RequestOptions): Core.APIPromise<SubscriptionGetResponse> {
|
|
65
|
-
return (
|
|
66
|
-
this._client.get(`/zones/${identifier}/subscription`, options) as Core.APIPromise<{
|
|
67
|
-
result: SubscriptionGetResponse;
|
|
68
|
-
}>
|
|
69
|
-
)._thenUnwrap((obj) => obj.result);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export type SubscriptionCreateResponse = unknown | string | null;
|
|
74
|
-
|
|
75
|
-
export type SubscriptionUpdateResponse = unknown | string | null;
|
|
76
|
-
|
|
77
|
-
export type SubscriptionGetResponse = unknown | string | null;
|
|
78
|
-
|
|
79
|
-
export interface SubscriptionCreateParams {
|
|
80
|
-
/**
|
|
81
|
-
* How often the subscription is renewed automatically.
|
|
82
|
-
*/
|
|
83
|
-
frequency?: 'weekly' | 'monthly' | 'quarterly' | 'yearly';
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* The rate plan applied to the subscription.
|
|
87
|
-
*/
|
|
88
|
-
rate_plan?: Shared.RatePlanParam;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export interface SubscriptionUpdateParams {
|
|
92
|
-
/**
|
|
93
|
-
* How often the subscription is renewed automatically.
|
|
94
|
-
*/
|
|
95
|
-
frequency?: 'weekly' | 'monthly' | 'quarterly' | 'yearly';
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* The rate plan applied to the subscription.
|
|
99
|
-
*/
|
|
100
|
-
rate_plan?: Shared.RatePlanParam;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export declare namespace Subscriptions {
|
|
104
|
-
export {
|
|
105
|
-
type SubscriptionCreateResponse as SubscriptionCreateResponse,
|
|
106
|
-
type SubscriptionUpdateResponse as SubscriptionUpdateResponse,
|
|
107
|
-
type SubscriptionGetResponse as SubscriptionGetResponse,
|
|
108
|
-
type SubscriptionCreateParams as SubscriptionCreateParams,
|
|
109
|
-
type SubscriptionUpdateParams as SubscriptionUpdateParams,
|
|
110
|
-
};
|
|
111
|
-
}
|
|
5
|
+
export class Subscriptions extends APIResource {}
|
|
@@ -94,14 +94,7 @@ import {
|
|
|
94
94
|
ZeroRTT,
|
|
95
95
|
} from './settings';
|
|
96
96
|
import * as SubscriptionsAPI from './subscriptions';
|
|
97
|
-
import {
|
|
98
|
-
SubscriptionCreateParams,
|
|
99
|
-
SubscriptionCreateResponse,
|
|
100
|
-
SubscriptionGetResponse,
|
|
101
|
-
SubscriptionUpdateParams,
|
|
102
|
-
SubscriptionUpdateResponse,
|
|
103
|
-
Subscriptions,
|
|
104
|
-
} from './subscriptions';
|
|
97
|
+
import { Subscriptions } from './subscriptions';
|
|
105
98
|
import { V4PagePaginationArray, type V4PagePaginationArrayParams } from '../../pagination';
|
|
106
99
|
|
|
107
100
|
export class Zones extends APIResource {
|
|
@@ -237,17 +230,17 @@ export interface Zone {
|
|
|
237
230
|
id: string;
|
|
238
231
|
|
|
239
232
|
/**
|
|
240
|
-
* The account the zone belongs to
|
|
233
|
+
* The account the zone belongs to.
|
|
241
234
|
*/
|
|
242
235
|
account: Zone.Account;
|
|
243
236
|
|
|
244
237
|
/**
|
|
245
|
-
* The last time proof of ownership was detected and the zone was made active
|
|
238
|
+
* The last time proof of ownership was detected and the zone was made active.
|
|
246
239
|
*/
|
|
247
240
|
activated_on: string | null;
|
|
248
241
|
|
|
249
242
|
/**
|
|
250
|
-
* When the zone was created
|
|
243
|
+
* When the zone was created.
|
|
251
244
|
*/
|
|
252
245
|
created_on: string;
|
|
253
246
|
|
|
@@ -259,42 +252,42 @@ export interface Zone {
|
|
|
259
252
|
development_mode: number;
|
|
260
253
|
|
|
261
254
|
/**
|
|
262
|
-
* Metadata about the zone
|
|
255
|
+
* Metadata about the zone.
|
|
263
256
|
*/
|
|
264
257
|
meta: Zone.Meta;
|
|
265
258
|
|
|
266
259
|
/**
|
|
267
|
-
* When the zone was last modified
|
|
260
|
+
* When the zone was last modified.
|
|
268
261
|
*/
|
|
269
262
|
modified_on: string;
|
|
270
263
|
|
|
271
264
|
/**
|
|
272
|
-
* The domain name
|
|
265
|
+
* The domain name.
|
|
273
266
|
*/
|
|
274
267
|
name: string;
|
|
275
268
|
|
|
276
269
|
/**
|
|
277
|
-
* The name servers Cloudflare assigns to a zone
|
|
270
|
+
* The name servers Cloudflare assigns to a zone.
|
|
278
271
|
*/
|
|
279
272
|
name_servers: Array<string>;
|
|
280
273
|
|
|
281
274
|
/**
|
|
282
|
-
* DNS host at the time of switching to Cloudflare
|
|
275
|
+
* DNS host at the time of switching to Cloudflare.
|
|
283
276
|
*/
|
|
284
277
|
original_dnshost: string | null;
|
|
285
278
|
|
|
286
279
|
/**
|
|
287
|
-
* Original name servers before moving to Cloudflare
|
|
280
|
+
* Original name servers before moving to Cloudflare.
|
|
288
281
|
*/
|
|
289
282
|
original_name_servers: Array<string> | null;
|
|
290
283
|
|
|
291
284
|
/**
|
|
292
|
-
* Registrar for the domain at the time of switching to Cloudflare
|
|
285
|
+
* Registrar for the domain at the time of switching to Cloudflare.
|
|
293
286
|
*/
|
|
294
287
|
original_registrar: string | null;
|
|
295
288
|
|
|
296
289
|
/**
|
|
297
|
-
* The owner of the zone
|
|
290
|
+
* The owner of the zone.
|
|
298
291
|
*/
|
|
299
292
|
owner: Zone.Owner;
|
|
300
293
|
|
|
@@ -356,7 +349,7 @@ export interface Zone {
|
|
|
356
349
|
|
|
357
350
|
export namespace Zone {
|
|
358
351
|
/**
|
|
359
|
-
* The account the zone belongs to
|
|
352
|
+
* The account the zone belongs to.
|
|
360
353
|
*/
|
|
361
354
|
export interface Account {
|
|
362
355
|
/**
|
|
@@ -365,42 +358,42 @@ export namespace Zone {
|
|
|
365
358
|
id?: string;
|
|
366
359
|
|
|
367
360
|
/**
|
|
368
|
-
* The name of the account
|
|
361
|
+
* The name of the account.
|
|
369
362
|
*/
|
|
370
363
|
name?: string;
|
|
371
364
|
}
|
|
372
365
|
|
|
373
366
|
/**
|
|
374
|
-
* Metadata about the zone
|
|
367
|
+
* Metadata about the zone.
|
|
375
368
|
*/
|
|
376
369
|
export interface Meta {
|
|
377
370
|
/**
|
|
378
|
-
* The zone is only configured for CDN
|
|
371
|
+
* The zone is only configured for CDN.
|
|
379
372
|
*/
|
|
380
373
|
cdn_only?: boolean;
|
|
381
374
|
|
|
382
375
|
/**
|
|
383
|
-
* Number of Custom Certificates the zone can have
|
|
376
|
+
* Number of Custom Certificates the zone can have.
|
|
384
377
|
*/
|
|
385
378
|
custom_certificate_quota?: number;
|
|
386
379
|
|
|
387
380
|
/**
|
|
388
|
-
* The zone is only configured for DNS
|
|
381
|
+
* The zone is only configured for DNS.
|
|
389
382
|
*/
|
|
390
383
|
dns_only?: boolean;
|
|
391
384
|
|
|
392
385
|
/**
|
|
393
|
-
* The zone is setup with Foundation DNS
|
|
386
|
+
* The zone is setup with Foundation DNS.
|
|
394
387
|
*/
|
|
395
388
|
foundation_dns?: boolean;
|
|
396
389
|
|
|
397
390
|
/**
|
|
398
|
-
* Number of Page Rules a zone can have
|
|
391
|
+
* Number of Page Rules a zone can have.
|
|
399
392
|
*/
|
|
400
393
|
page_rule_quota?: number;
|
|
401
394
|
|
|
402
395
|
/**
|
|
403
|
-
* The zone has been flagged for phishing
|
|
396
|
+
* The zone has been flagged for phishing.
|
|
404
397
|
*/
|
|
405
398
|
phishing_detected?: boolean;
|
|
406
399
|
|
|
@@ -408,7 +401,7 @@ export namespace Zone {
|
|
|
408
401
|
}
|
|
409
402
|
|
|
410
403
|
/**
|
|
411
|
-
* The owner of the zone
|
|
404
|
+
* The owner of the zone.
|
|
412
405
|
*/
|
|
413
406
|
export interface Owner {
|
|
414
407
|
/**
|
|
@@ -417,12 +410,12 @@ export namespace Zone {
|
|
|
417
410
|
id?: string;
|
|
418
411
|
|
|
419
412
|
/**
|
|
420
|
-
* Name of the owner
|
|
413
|
+
* Name of the owner.
|
|
421
414
|
*/
|
|
422
415
|
name?: string;
|
|
423
416
|
|
|
424
417
|
/**
|
|
425
|
-
* The type of owner
|
|
418
|
+
* The type of owner.
|
|
426
419
|
*/
|
|
427
420
|
type?: string;
|
|
428
421
|
}
|
|
@@ -472,7 +465,7 @@ export namespace Zone {
|
|
|
472
465
|
legacy_id?: string;
|
|
473
466
|
|
|
474
467
|
/**
|
|
475
|
-
* Name of the owner
|
|
468
|
+
* Name of the owner.
|
|
476
469
|
*/
|
|
477
470
|
name?: string;
|
|
478
471
|
|
|
@@ -521,7 +514,7 @@ export interface ZoneCreateParams {
|
|
|
521
514
|
account: ZoneCreateParams.Account;
|
|
522
515
|
|
|
523
516
|
/**
|
|
524
|
-
* The domain name
|
|
517
|
+
* The domain name.
|
|
525
518
|
*/
|
|
526
519
|
name: string;
|
|
527
520
|
|
|
@@ -575,7 +568,7 @@ export interface ZoneListParams extends V4PagePaginationArrayParams {
|
|
|
575
568
|
order?: 'name' | 'status' | 'account.id' | 'account.name' | 'plan.id';
|
|
576
569
|
|
|
577
570
|
/**
|
|
578
|
-
*
|
|
571
|
+
* Specify a zone status to filter by.
|
|
579
572
|
*/
|
|
580
573
|
status?: 'initializing' | 'pending' | 'active' | 'moved';
|
|
581
574
|
}
|
|
@@ -583,7 +576,7 @@ export interface ZoneListParams extends V4PagePaginationArrayParams {
|
|
|
583
576
|
export namespace ZoneListParams {
|
|
584
577
|
export interface Account {
|
|
585
578
|
/**
|
|
586
|
-
*
|
|
579
|
+
* Filter by an account ID.
|
|
587
580
|
*/
|
|
588
581
|
id?: string;
|
|
589
582
|
|
|
@@ -752,14 +745,7 @@ export declare namespace Zones {
|
|
|
752
745
|
type HoldGetParams as HoldGetParams,
|
|
753
746
|
};
|
|
754
747
|
|
|
755
|
-
export {
|
|
756
|
-
Subscriptions as Subscriptions,
|
|
757
|
-
type SubscriptionCreateResponse as SubscriptionCreateResponse,
|
|
758
|
-
type SubscriptionUpdateResponse as SubscriptionUpdateResponse,
|
|
759
|
-
type SubscriptionGetResponse as SubscriptionGetResponse,
|
|
760
|
-
type SubscriptionCreateParams as SubscriptionCreateParams,
|
|
761
|
-
type SubscriptionUpdateParams as SubscriptionUpdateParams,
|
|
762
|
-
};
|
|
748
|
+
export { Subscriptions as Subscriptions };
|
|
763
749
|
|
|
764
750
|
export {
|
|
765
751
|
Plans as Plans,
|
package/src/uploads.ts
CHANGED
|
@@ -199,20 +199,23 @@ export const maybeMultipartFormRequestOptions = async <T = Record<string, unknow
|
|
|
199
199
|
): Promise<RequestOptions<T | MultipartBody>> => {
|
|
200
200
|
if (!hasUploadableValue(opts.body)) return opts;
|
|
201
201
|
|
|
202
|
-
const form = await createForm(opts.body);
|
|
202
|
+
const form = await createForm(opts.body, opts);
|
|
203
203
|
return getMultipartRequestOptions(form, opts);
|
|
204
204
|
};
|
|
205
205
|
|
|
206
206
|
export const multipartFormRequestOptions = async <T = Record<string, unknown>>(
|
|
207
207
|
opts: RequestOptions<T>,
|
|
208
208
|
): Promise<RequestOptions<T | MultipartBody>> => {
|
|
209
|
-
const form = await createForm(opts.body);
|
|
209
|
+
const form = await createForm(opts.body, opts);
|
|
210
210
|
return getMultipartRequestOptions(form, opts);
|
|
211
211
|
};
|
|
212
212
|
|
|
213
|
-
export const createForm = async <T = Record<string, unknown>>(
|
|
213
|
+
export const createForm = async <T = Record<string, unknown>>(
|
|
214
|
+
body: T | undefined,
|
|
215
|
+
opts?: RequestOptions<any>,
|
|
216
|
+
): Promise<FormData> => {
|
|
214
217
|
const form = new FormData();
|
|
215
|
-
await Promise.all(Object.entries(body || {}).map(([key, value]) => addFormValue(form, key, value)));
|
|
218
|
+
await Promise.all(Object.entries(body || {}).map(([key, value]) => addFormValue(form, key, value, opts)));
|
|
216
219
|
return form;
|
|
217
220
|
};
|
|
218
221
|
|
|
@@ -227,7 +230,16 @@ const hasUploadableValue = (value: unknown): boolean => {
|
|
|
227
230
|
return false;
|
|
228
231
|
};
|
|
229
232
|
|
|
230
|
-
const addFormValue = async (
|
|
233
|
+
const addFormValue = async (
|
|
234
|
+
form: FormData,
|
|
235
|
+
key: string,
|
|
236
|
+
value: unknown,
|
|
237
|
+
opts?: RequestOptions<any>,
|
|
238
|
+
): Promise<void> => {
|
|
239
|
+
if (opts?.__multipartSyntax === 'json') {
|
|
240
|
+
return await addFormValueJson(form, key, value);
|
|
241
|
+
}
|
|
242
|
+
|
|
231
243
|
if (value === undefined) return;
|
|
232
244
|
if (value == null) {
|
|
233
245
|
throw new TypeError(
|
|
@@ -247,9 +259,35 @@ const addFormValue = async (form: FormData, key: string, value: unknown): Promis
|
|
|
247
259
|
await Promise.all(
|
|
248
260
|
Object.entries(value).map(([name, prop]) => addFormValue(form, `${key}[${name}]`, prop)),
|
|
249
261
|
);
|
|
250
|
-
}
|
|
262
|
+
}
|
|
263
|
+
};
|
|
264
|
+
|
|
265
|
+
const addFormValueJson = async (form: FormData, key: string, value: unknown): Promise<void> => {
|
|
266
|
+
if (value === undefined) return;
|
|
267
|
+
if (value == null) {
|
|
251
268
|
throw new TypeError(
|
|
252
|
-
`
|
|
269
|
+
`Received null for "${key}"; to pass null in FormData, you must use the string 'null'`,
|
|
253
270
|
);
|
|
254
271
|
}
|
|
272
|
+
|
|
273
|
+
// TODO: make nested formats configurable
|
|
274
|
+
if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean') {
|
|
275
|
+
form.append(key, String(value));
|
|
276
|
+
return;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
if (isUploadable(value)) {
|
|
280
|
+
const file = await toFile(value);
|
|
281
|
+
form.append(key, file as File);
|
|
282
|
+
return;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
if (Array.isArray(value) || typeof value === 'object') {
|
|
286
|
+
form.append(key, new File([JSON.stringify(value)], key, { type: 'application/json' }));
|
|
287
|
+
return;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
throw new TypeError(
|
|
291
|
+
`Invalid value given to form, expected a string, number, boolean, object, Array, File or Blob but got ${value} instead`,
|
|
292
|
+
);
|
|
255
293
|
};
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '4.
|
|
1
|
+
export const VERSION = '4.4.0'; // x-release-please-version
|
package/uploads.d.ts
CHANGED
|
@@ -71,5 +71,5 @@ export declare const isMultipartBody: (body: any) => body is MultipartBody;
|
|
|
71
71
|
*/
|
|
72
72
|
export declare const maybeMultipartFormRequestOptions: <T = Record<string, unknown>>(opts: RequestOptions<T>) => Promise<RequestOptions<MultipartBody | T>>;
|
|
73
73
|
export declare const multipartFormRequestOptions: <T = Record<string, unknown>>(opts: RequestOptions<T>) => Promise<RequestOptions<MultipartBody | T>>;
|
|
74
|
-
export declare const createForm: <T = Record<string, unknown>>(body: T | undefined) => Promise<FormData>;
|
|
74
|
+
export declare const createForm: <T = Record<string, unknown>>(body: T | undefined, opts?: RequestOptions<any>) => Promise<FormData>;
|
|
75
75
|
//# sourceMappingURL=uploads.d.ts.map
|
package/uploads.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploads.d.ts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,QAAQ,CAAC;AAC7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AS,GACpC,OAAO,CAAC,QAAQ,CAAC,CAiCnB;AAmDD,eAAO,MAAM,eAAe,SAAU,GAAG,0BACsD,CAAC;AAEhG;;;GAGG;AACH,eAAO,MAAM,gCAAgC,sGAO5C,CAAC;AAEF,eAAO,MAAM,2BAA2B,sGAKvC,CAAC;AAEF,eAAO,MAAM,UAAU,4DAEd,eAAe,GAAG,CAAC,KACzB,QAAQ,QAAQ,CAIlB,CAAC"}
|
package/uploads.js
CHANGED
|
@@ -116,18 +116,18 @@ exports.isMultipartBody = isMultipartBody;
|
|
|
116
116
|
const maybeMultipartFormRequestOptions = async (opts) => {
|
|
117
117
|
if (!hasUploadableValue(opts.body))
|
|
118
118
|
return opts;
|
|
119
|
-
const form = await (0, exports.createForm)(opts.body);
|
|
119
|
+
const form = await (0, exports.createForm)(opts.body, opts);
|
|
120
120
|
return (0, index_1.getMultipartRequestOptions)(form, opts);
|
|
121
121
|
};
|
|
122
122
|
exports.maybeMultipartFormRequestOptions = maybeMultipartFormRequestOptions;
|
|
123
123
|
const multipartFormRequestOptions = async (opts) => {
|
|
124
|
-
const form = await (0, exports.createForm)(opts.body);
|
|
124
|
+
const form = await (0, exports.createForm)(opts.body, opts);
|
|
125
125
|
return (0, index_1.getMultipartRequestOptions)(form, opts);
|
|
126
126
|
};
|
|
127
127
|
exports.multipartFormRequestOptions = multipartFormRequestOptions;
|
|
128
|
-
const createForm = async (body) => {
|
|
128
|
+
const createForm = async (body, opts) => {
|
|
129
129
|
const form = new index_1.FormData();
|
|
130
|
-
await Promise.all(Object.entries(body || {}).map(([key, value]) => addFormValue(form, key, value)));
|
|
130
|
+
await Promise.all(Object.entries(body || {}).map(([key, value]) => addFormValue(form, key, value, opts)));
|
|
131
131
|
return form;
|
|
132
132
|
};
|
|
133
133
|
exports.createForm = createForm;
|
|
@@ -144,7 +144,10 @@ const hasUploadableValue = (value) => {
|
|
|
144
144
|
}
|
|
145
145
|
return false;
|
|
146
146
|
};
|
|
147
|
-
const addFormValue = async (form, key, value) => {
|
|
147
|
+
const addFormValue = async (form, key, value, opts) => {
|
|
148
|
+
if (opts?.__multipartSyntax === 'json') {
|
|
149
|
+
return await addFormValueJson(form, key, value);
|
|
150
|
+
}
|
|
148
151
|
if (value === undefined)
|
|
149
152
|
return;
|
|
150
153
|
if (value == null) {
|
|
@@ -164,8 +167,27 @@ const addFormValue = async (form, key, value) => {
|
|
|
164
167
|
else if (typeof value === 'object') {
|
|
165
168
|
await Promise.all(Object.entries(value).map(([name, prop]) => addFormValue(form, `${key}[${name}]`, prop)));
|
|
166
169
|
}
|
|
167
|
-
|
|
168
|
-
|
|
170
|
+
};
|
|
171
|
+
const addFormValueJson = async (form, key, value) => {
|
|
172
|
+
if (value === undefined)
|
|
173
|
+
return;
|
|
174
|
+
if (value == null) {
|
|
175
|
+
throw new TypeError(`Received null for "${key}"; to pass null in FormData, you must use the string 'null'`);
|
|
176
|
+
}
|
|
177
|
+
// TODO: make nested formats configurable
|
|
178
|
+
if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean') {
|
|
179
|
+
form.append(key, String(value));
|
|
180
|
+
return;
|
|
181
|
+
}
|
|
182
|
+
if ((0, exports.isUploadable)(value)) {
|
|
183
|
+
const file = await toFile(value);
|
|
184
|
+
form.append(key, file);
|
|
185
|
+
return;
|
|
186
|
+
}
|
|
187
|
+
if (Array.isArray(value) || typeof value === 'object') {
|
|
188
|
+
form.append(key, new index_1.File([JSON.stringify(value)], key, { type: 'application/json' }));
|
|
189
|
+
return;
|
|
169
190
|
}
|
|
191
|
+
throw new TypeError(`Invalid value given to form, expected a string, number, boolean, object, Array, File or Blob but got ${value} instead`);
|
|
170
192
|
};
|
|
171
193
|
//# sourceMappingURL=uploads.js.map
|
package/uploads.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploads.js","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":";;;AACA,6CAQwB;AAExB,2CAA8C;AAArC,qGAAA,YAAY,OAA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AE,IAAI,YAAI,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC,CAAC,CAAC;QACvF,OAAO;KACR;IAED,MAAM,IAAI,SAAS,CACjB,wGAAwG,KAAK,UAAU,CACxH,CAAC;AACJ,CAAC,CAAC"}
|
package/uploads.mjs
CHANGED
|
@@ -106,16 +106,16 @@ export const isMultipartBody = (body) => body && typeof body === 'object' && bod
|
|
|
106
106
|
export const maybeMultipartFormRequestOptions = async (opts) => {
|
|
107
107
|
if (!hasUploadableValue(opts.body))
|
|
108
108
|
return opts;
|
|
109
|
-
const form = await createForm(opts.body);
|
|
109
|
+
const form = await createForm(opts.body, opts);
|
|
110
110
|
return getMultipartRequestOptions(form, opts);
|
|
111
111
|
};
|
|
112
112
|
export const multipartFormRequestOptions = async (opts) => {
|
|
113
|
-
const form = await createForm(opts.body);
|
|
113
|
+
const form = await createForm(opts.body, opts);
|
|
114
114
|
return getMultipartRequestOptions(form, opts);
|
|
115
115
|
};
|
|
116
|
-
export const createForm = async (body) => {
|
|
116
|
+
export const createForm = async (body, opts) => {
|
|
117
117
|
const form = new FormData();
|
|
118
|
-
await Promise.all(Object.entries(body || {}).map(([key, value]) => addFormValue(form, key, value)));
|
|
118
|
+
await Promise.all(Object.entries(body || {}).map(([key, value]) => addFormValue(form, key, value, opts)));
|
|
119
119
|
return form;
|
|
120
120
|
};
|
|
121
121
|
const hasUploadableValue = (value) => {
|
|
@@ -131,7 +131,10 @@ const hasUploadableValue = (value) => {
|
|
|
131
131
|
}
|
|
132
132
|
return false;
|
|
133
133
|
};
|
|
134
|
-
const addFormValue = async (form, key, value) => {
|
|
134
|
+
const addFormValue = async (form, key, value, opts) => {
|
|
135
|
+
if (opts?.__multipartSyntax === 'json') {
|
|
136
|
+
return await addFormValueJson(form, key, value);
|
|
137
|
+
}
|
|
135
138
|
if (value === undefined)
|
|
136
139
|
return;
|
|
137
140
|
if (value == null) {
|
|
@@ -151,8 +154,27 @@ const addFormValue = async (form, key, value) => {
|
|
|
151
154
|
else if (typeof value === 'object') {
|
|
152
155
|
await Promise.all(Object.entries(value).map(([name, prop]) => addFormValue(form, `${key}[${name}]`, prop)));
|
|
153
156
|
}
|
|
154
|
-
|
|
155
|
-
|
|
157
|
+
};
|
|
158
|
+
const addFormValueJson = async (form, key, value) => {
|
|
159
|
+
if (value === undefined)
|
|
160
|
+
return;
|
|
161
|
+
if (value == null) {
|
|
162
|
+
throw new TypeError(`Received null for "${key}"; to pass null in FormData, you must use the string 'null'`);
|
|
163
|
+
}
|
|
164
|
+
// TODO: make nested formats configurable
|
|
165
|
+
if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean') {
|
|
166
|
+
form.append(key, String(value));
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
if (isUploadable(value)) {
|
|
170
|
+
const file = await toFile(value);
|
|
171
|
+
form.append(key, file);
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
if (Array.isArray(value) || typeof value === 'object') {
|
|
175
|
+
form.append(key, new File([JSON.stringify(value)], key, { type: 'application/json' }));
|
|
176
|
+
return;
|
|
156
177
|
}
|
|
178
|
+
throw new TypeError(`Invalid value given to form, expected a string, number, boolean, object, Array, File or Blob but got ${value} instead`);
|
|
157
179
|
};
|
|
158
180
|
//# sourceMappingURL=uploads.mjs.map
|
package/uploads.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploads.mjs","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":"OACO,EACL,QAAQ,EACR,IAAI,EAGJ,0BAA0B,EAE1B,cAAc,GACf;OAEM,EAAE,YAAY,EAAE;AAiDvB,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAAU,EAAyB,EAAE,CAClE,KAAK,IAAI,IAAI;IACb,OAAO,KAAK,KAAK,QAAQ;IACzB,OAAO,KAAK,CAAC,GAAG,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ACH;AACH,CAAC,CAAC;AAEF,MAAM,gBAAgB,GAAG,KAAK,EAAE,IAAc,EAAE,GAAW,EAAE,KAAc,EAAiB,EAAE;IAC5F,IAAI,KAAK,KAAK,SAAS;QAAE,OAAO;IAChC,IAAI,KAAK,IAAI,IAAI,EAAE;QACjB,MAAM,IAAI,SAAS,CACjB,sBAAsB,GAAG,6DAA6D,CACvF,CAAC;KACH;IAED,yCAAyC;IACzC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,KAAK,SAAS,EAAE;QACxF,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QAChC,OAAO;KACR;IAED,IAAI,YAAY,CAAC,KAAK,CAAC,EAAE;QACvB,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,CAAC;QACjC,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,IAAY,CAAC,CAAC;QAC/B,OAAO;KACR;IAED,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;QACrD,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC,CAAC,CAAC;QACvF,OAAO;KACR;IAED,MAAM,IAAI,SAAS,CACjB,wGAAwG,KAAK,UAAU,CACxH,CAAC;AACJ,CAAC,CAAC"}
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "4.
|
|
1
|
+
export declare const VERSION = "4.4.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '4.
|
|
1
|
+
export const VERSION = '4.4.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|