cloudflare 6.2.0 → 6.3.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 +131 -0
- package/index.d.mts +3 -0
- package/index.d.ts +3 -0
- package/index.d.ts.map +1 -1
- package/index.js +3 -0
- package/index.js.map +1 -1
- package/index.mjs +3 -0
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/ai/models/models.d.ts +5 -0
- package/resources/ai/models/models.d.ts.map +1 -1
- package/resources/ai/models/models.js.map +1 -1
- package/resources/ai/models/models.mjs.map +1 -1
- package/resources/aisearch/instances/instances.d.ts +5 -0
- package/resources/aisearch/instances/instances.d.ts.map +1 -1
- package/resources/aisearch/instances/instances.js.map +1 -1
- package/resources/aisearch/instances/instances.mjs.map +1 -1
- package/resources/aisearch/namespaces/instances/instances.d.ts +5 -0
- package/resources/aisearch/namespaces/instances/instances.d.ts.map +1 -1
- package/resources/aisearch/namespaces/instances/instances.js.map +1 -1
- package/resources/aisearch/namespaces/instances/instances.mjs.map +1 -1
- package/resources/billing/billing.d.ts +2 -2
- package/resources/billing/billing.d.ts.map +1 -1
- package/resources/billing/billing.js.map +1 -1
- package/resources/billing/billing.mjs.map +1 -1
- package/resources/billing/index.d.ts +1 -1
- package/resources/billing/index.d.ts.map +1 -1
- package/resources/billing/index.js.map +1 -1
- package/resources/billing/index.mjs +1 -1
- package/resources/billing/index.mjs.map +1 -1
- package/resources/billing/usage.d.ts +213 -3
- package/resources/billing/usage.d.ts.map +1 -1
- package/resources/billing/usage.js +20 -4
- package/resources/billing/usage.js.map +1 -1
- package/resources/billing/usage.mjs +20 -4
- package/resources/billing/usage.mjs.map +1 -1
- package/resources/cloudforce-one/threat-events/countries.d.ts +1 -0
- package/resources/cloudforce-one/threat-events/countries.d.ts.map +1 -1
- package/resources/custom-certificates/custom-certificates.d.ts +9 -7
- package/resources/custom-certificates/custom-certificates.d.ts.map +1 -1
- package/resources/custom-certificates/custom-certificates.js +0 -2
- package/resources/custom-certificates/custom-certificates.js.map +1 -1
- package/resources/custom-certificates/custom-certificates.mjs +0 -2
- package/resources/custom-certificates/custom-certificates.mjs.map +1 -1
- package/resources/dls/dls.d.ts +14 -0
- package/resources/dls/dls.d.ts.map +1 -0
- package/resources/dls/dls.js +44 -0
- package/resources/dls/dls.js.map +1 -0
- package/resources/dls/dls.mjs +17 -0
- package/resources/dls/dls.mjs.map +1 -0
- package/resources/dls/index.d.ts +4 -0
- package/resources/dls/index.d.ts.map +1 -0
- package/resources/dls/index.js +12 -0
- package/resources/dls/index.js.map +1 -0
- package/resources/dls/index.mjs +5 -0
- package/resources/dls/index.mjs.map +1 -0
- package/resources/dls/regional-services/index.d.ts +3 -0
- package/resources/dls/regional-services/index.d.ts.map +1 -0
- package/resources/dls/regional-services/index.js +10 -0
- package/resources/dls/regional-services/index.js.map +1 -0
- package/resources/dls/regional-services/index.mjs +4 -0
- package/resources/dls/regional-services/index.mjs.map +1 -0
- package/resources/dls/regional-services/prefix-bindings.d.ts +197 -0
- package/resources/dls/regional-services/prefix-bindings.d.ts.map +1 -0
- package/resources/dls/regional-services/prefix-bindings.js +103 -0
- package/resources/dls/regional-services/prefix-bindings.js.map +1 -0
- package/resources/dls/regional-services/prefix-bindings.mjs +98 -0
- package/resources/dls/regional-services/prefix-bindings.mjs.map +1 -0
- package/resources/dls/regional-services/regional-services.d.ts +10 -0
- package/resources/dls/regional-services/regional-services.d.ts.map +1 -0
- package/resources/dls/regional-services/regional-services.js +40 -0
- package/resources/dls/regional-services/regional-services.js.map +1 -0
- package/resources/dls/regional-services/regional-services.mjs +13 -0
- package/resources/dls/regional-services/regional-services.mjs.map +1 -0
- package/resources/dls/regional-services.d.ts +2 -0
- package/resources/dls/regional-services.d.ts.map +1 -0
- package/resources/dls/regional-services.js +19 -0
- package/resources/dls/regional-services.js.map +1 -0
- package/resources/dls/regional-services.mjs +3 -0
- package/resources/dls/regional-services.mjs.map +1 -0
- package/resources/dls/regions.d.ts +68 -0
- package/resources/dls/regions.d.ts.map +1 -0
- package/resources/dls/regions.js +46 -0
- package/resources/dls/regions.js.map +1 -0
- package/resources/dls/regions.mjs +41 -0
- package/resources/dls/regions.mjs.map +1 -0
- package/resources/dls.d.ts +2 -0
- package/resources/dls.d.ts.map +1 -0
- package/resources/dls.js +19 -0
- package/resources/dls.js.map +1 -0
- package/resources/dls.mjs +3 -0
- package/resources/dls.mjs.map +1 -0
- package/resources/email-sending/email-sending.d.ts +2 -2
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/intel/sinkholes.d.ts +9 -9
- package/resources/intel/sinkholes.js +1 -1
- package/resources/intel/sinkholes.mjs +1 -1
- package/resources/logpush/datasets/fields.d.ts +2 -2
- package/resources/logpush/datasets/fields.d.ts.map +1 -1
- package/resources/logpush/datasets/fields.js.map +1 -1
- package/resources/logpush/datasets/fields.mjs.map +1 -1
- package/resources/logpush/datasets/jobs.d.ts +2 -2
- package/resources/logpush/datasets/jobs.d.ts.map +1 -1
- package/resources/logpush/datasets/jobs.js.map +1 -1
- package/resources/logpush/datasets/jobs.mjs.map +1 -1
- package/resources/logpush/jobs.d.ts +2 -2
- package/resources/logpush/jobs.d.ts.map +1 -1
- package/resources/logpush/jobs.js.map +1 -1
- package/resources/logpush/jobs.mjs.map +1 -1
- package/resources/organizations/billing/billing.d.ts +10 -0
- package/resources/organizations/billing/billing.d.ts.map +1 -0
- package/resources/organizations/billing/billing.js +39 -0
- package/resources/organizations/billing/billing.js.map +1 -0
- package/resources/organizations/billing/billing.mjs +12 -0
- package/resources/organizations/billing/billing.mjs.map +1 -0
- package/resources/organizations/billing/index.d.ts +3 -0
- package/resources/organizations/billing/index.d.ts.map +1 -0
- package/resources/organizations/billing/index.js +9 -0
- package/resources/organizations/billing/index.js.map +1 -0
- package/resources/organizations/billing/index.mjs +4 -0
- package/resources/organizations/billing/index.mjs.map +1 -0
- package/resources/organizations/billing/usage.d.ts +210 -0
- package/resources/organizations/billing/usage.d.ts.map +1 -0
- package/resources/organizations/billing/usage.js +19 -0
- package/resources/organizations/billing/usage.js.map +1 -0
- package/resources/organizations/billing/usage.mjs +15 -0
- package/resources/organizations/billing/usage.mjs.map +1 -0
- package/resources/organizations/billing.d.ts +2 -0
- package/resources/organizations/billing.d.ts.map +1 -0
- package/resources/organizations/billing.js +19 -0
- package/resources/organizations/billing.js.map +1 -0
- package/resources/organizations/billing.mjs +3 -0
- package/resources/organizations/billing.mjs.map +1 -0
- package/resources/organizations/index.d.ts +1 -0
- package/resources/organizations/index.d.ts.map +1 -1
- package/resources/organizations/index.js +5 -3
- package/resources/organizations/index.js.map +1 -1
- package/resources/organizations/index.mjs +1 -0
- package/resources/organizations/index.mjs.map +1 -1
- package/resources/organizations/organization-profile.d.ts +2 -2
- package/resources/organizations/organization-profile.js +2 -2
- package/resources/organizations/organization-profile.mjs +2 -2
- package/resources/organizations/organizations.d.ts +9 -5
- package/resources/organizations/organizations.d.ts.map +1 -1
- package/resources/organizations/organizations.js +8 -4
- package/resources/organizations/organizations.js.map +1 -1
- package/resources/organizations/organizations.mjs +8 -4
- package/resources/organizations/organizations.mjs.map +1 -1
- package/resources/r2/buckets/buckets.d.ts +4 -0
- package/resources/r2/buckets/buckets.d.ts.map +1 -1
- package/resources/r2/buckets/buckets.js +5 -0
- package/resources/r2/buckets/buckets.js.map +1 -1
- package/resources/r2/buckets/buckets.mjs +5 -0
- package/resources/r2/buckets/buckets.mjs.map +1 -1
- package/resources/r2/buckets/index.d.ts +1 -0
- package/resources/r2/buckets/index.d.ts.map +1 -1
- package/resources/r2/buckets/index.js +4 -1
- package/resources/r2/buckets/index.js.map +1 -1
- package/resources/r2/buckets/index.mjs +1 -0
- package/resources/r2/buckets/index.mjs.map +1 -1
- package/resources/r2/buckets/objects.d.ts +281 -0
- package/resources/r2/buckets/objects.d.ts.map +1 -0
- package/resources/r2/buckets/objects.js +151 -0
- package/resources/r2/buckets/objects.js.map +1 -0
- package/resources/r2/buckets/objects.mjs +146 -0
- package/resources/r2/buckets/objects.mjs.map +1 -0
- package/resources/radar/http/http.d.ts +16 -4
- package/resources/radar/http/http.d.ts.map +1 -1
- package/resources/radar/http/http.js.map +1 -1
- package/resources/radar/http/http.mjs.map +1 -1
- package/resources/secrets-store/index.d.ts +1 -1
- package/resources/secrets-store/index.d.ts.map +1 -1
- package/resources/secrets-store/index.js.map +1 -1
- package/resources/secrets-store/index.mjs.map +1 -1
- package/resources/secrets-store/secrets-store.d.ts +2 -2
- package/resources/secrets-store/secrets-store.d.ts.map +1 -1
- package/resources/secrets-store/secrets-store.js.map +1 -1
- package/resources/secrets-store/secrets-store.mjs.map +1 -1
- package/resources/secrets-store/stores/index.d.ts +1 -1
- package/resources/secrets-store/stores/index.d.ts.map +1 -1
- package/resources/secrets-store/stores/index.js.map +1 -1
- package/resources/secrets-store/stores/index.mjs.map +1 -1
- package/resources/secrets-store/stores/stores.d.ts +41 -1
- package/resources/secrets-store/stores/stores.d.ts.map +1 -1
- package/resources/secrets-store/stores/stores.js +15 -0
- package/resources/secrets-store/stores/stores.js.map +1 -1
- package/resources/secrets-store/stores/stores.mjs +15 -0
- package/resources/secrets-store/stores/stores.mjs.map +1 -1
- package/resources/spectrum/apps.d.ts +30 -0
- package/resources/spectrum/apps.d.ts.map +1 -1
- package/resources/spectrum/apps.js.map +1 -1
- package/resources/spectrum/apps.mjs.map +1 -1
- package/resources/workers/beta/workers/workers.d.ts +32 -0
- package/resources/workers/beta/workers/workers.d.ts.map +1 -1
- package/resources/workers/beta/workers/workers.js.map +1 -1
- package/resources/workers/beta/workers/workers.mjs.map +1 -1
- package/resources/workers/observability/destinations.d.ts +5 -5
- package/resources/workers/observability/destinations.d.ts.map +1 -1
- package/resources/workers/observability/index.d.ts +1 -0
- package/resources/workers/observability/index.d.ts.map +1 -1
- package/resources/workers/observability/index.js +4 -1
- package/resources/workers/observability/index.js.map +1 -1
- package/resources/workers/observability/index.mjs +1 -0
- package/resources/workers/observability/index.mjs.map +1 -1
- package/resources/workers/observability/observability.d.ts +4 -0
- package/resources/workers/observability/observability.d.ts.map +1 -1
- package/resources/workers/observability/observability.js +5 -0
- package/resources/workers/observability/observability.js.map +1 -1
- package/resources/workers/observability/observability.mjs +5 -0
- package/resources/workers/observability/observability.mjs.map +1 -1
- package/resources/workers/observability/queries.d.ts +471 -0
- package/resources/workers/observability/queries.d.ts.map +1 -0
- package/resources/workers/observability/queries.js +52 -0
- package/resources/workers/observability/queries.js.map +1 -0
- package/resources/workers/observability/queries.mjs +47 -0
- package/resources/workers/observability/queries.mjs.map +1 -0
- package/resources/workers/observability/telemetry.d.ts +62 -36
- package/resources/workers/observability/telemetry.d.ts.map +1 -1
- package/resources/workers/observability/telemetry.js.map +1 -1
- package/resources/workers/observability/telemetry.mjs.map +1 -1
- package/resources/workers/scripts/index.d.ts +1 -1
- package/resources/workers/scripts/index.d.ts.map +1 -1
- package/resources/workers/scripts/index.js.map +1 -1
- package/resources/workers/scripts/index.mjs.map +1 -1
- package/resources/workers/scripts/script-and-version-settings.d.ts +24 -0
- package/resources/workers/scripts/script-and-version-settings.d.ts.map +1 -1
- package/resources/workers/scripts/scripts.d.ts +42 -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/scripts/secrets.d.ts +137 -1
- package/resources/workers/scripts/secrets.d.ts.map +1 -1
- package/resources/workers/scripts/secrets.js +27 -0
- package/resources/workers/scripts/secrets.js.map +1 -1
- package/resources/workers/scripts/secrets.mjs +27 -0
- package/resources/workers/scripts/secrets.mjs.map +1 -1
- package/resources/workers/scripts/settings.d.ts +8 -0
- package/resources/workers/scripts/settings.d.ts.map +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/index.d.ts +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/index.d.ts.map +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/index.js.map +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/index.mjs.map +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.d.ts +18 -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/workers-for-platforms/dispatch/namespaces/scripts/secrets.d.ts +138 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/secrets.d.ts.map +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/secrets.js +28 -0
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/secrets.js.map +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/secrets.mjs +28 -0
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/secrets.mjs.map +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/settings.d.ts +24 -0
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/settings.d.ts.map +1 -1
- package/resources/zero-trust/access/access.d.ts +4 -0
- package/resources/zero-trust/access/access.d.ts.map +1 -1
- package/resources/zero-trust/access/access.js +5 -0
- package/resources/zero-trust/access/access.js.map +1 -1
- package/resources/zero-trust/access/access.mjs +5 -0
- package/resources/zero-trust/access/access.mjs.map +1 -1
- package/resources/zero-trust/access/ai-controls/mcp/portals.d.ts +190 -0
- package/resources/zero-trust/access/ai-controls/mcp/portals.d.ts.map +1 -1
- package/resources/zero-trust/access/ai-controls/mcp/portals.js.map +1 -1
- package/resources/zero-trust/access/ai-controls/mcp/portals.mjs.map +1 -1
- package/resources/zero-trust/access/ai-controls/mcp/servers.d.ts +202 -2
- package/resources/zero-trust/access/ai-controls/mcp/servers.d.ts.map +1 -1
- package/resources/zero-trust/access/ai-controls/mcp/servers.js +2 -1
- package/resources/zero-trust/access/ai-controls/mcp/servers.js.map +1 -1
- package/resources/zero-trust/access/ai-controls/mcp/servers.mjs +2 -1
- package/resources/zero-trust/access/ai-controls/mcp/servers.mjs.map +1 -1
- package/resources/zero-trust/access/applications/policies.d.ts +32 -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/index.d.ts +1 -0
- package/resources/zero-trust/access/index.d.ts.map +1 -1
- package/resources/zero-trust/access/index.js +4 -1
- package/resources/zero-trust/access/index.js.map +1 -1
- package/resources/zero-trust/access/index.mjs +1 -0
- package/resources/zero-trust/access/index.mjs.map +1 -1
- package/resources/zero-trust/access/saml-certificates.d.ts +248 -0
- package/resources/zero-trust/access/saml-certificates.d.ts.map +1 -0
- package/resources/zero-trust/access/saml-certificates.js +100 -0
- package/resources/zero-trust/access/saml-certificates.js.map +1 -0
- package/resources/zero-trust/access/saml-certificates.mjs +95 -0
- package/resources/zero-trust/access/saml-certificates.mjs.map +1 -0
- package/resources/zero-trust/devices/posture/posture.d.ts +10 -0
- 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/identity-providers/identity-providers.d.ts +2689 -108
- package/resources/zero-trust/identity-providers/identity-providers.d.ts.map +1 -1
- package/resources/zero-trust/identity-providers/identity-providers.js +4 -0
- package/resources/zero-trust/identity-providers/identity-providers.js.map +1 -1
- package/resources/zero-trust/identity-providers/identity-providers.mjs +4 -0
- package/resources/zero-trust/identity-providers/identity-providers.mjs.map +1 -1
- package/resources/zero-trust/identity-providers/index.d.ts +1 -0
- package/resources/zero-trust/identity-providers/index.d.ts.map +1 -1
- package/resources/zero-trust/identity-providers/index.js +3 -1
- package/resources/zero-trust/identity-providers/index.js.map +1 -1
- package/resources/zero-trust/identity-providers/index.mjs +1 -0
- package/resources/zero-trust/identity-providers/index.mjs.map +1 -1
- package/resources/zero-trust/identity-providers/saml-certificate.d.ts +91 -0
- package/resources/zero-trust/identity-providers/saml-certificate.d.ts.map +1 -0
- package/resources/zero-trust/identity-providers/saml-certificate.js +37 -0
- package/resources/zero-trust/identity-providers/saml-certificate.js.map +1 -0
- package/resources/zero-trust/identity-providers/saml-certificate.mjs +33 -0
- package/resources/zero-trust/identity-providers/saml-certificate.mjs.map +1 -0
- package/src/index.ts +5 -0
- package/src/resources/ai/models/models.ts +6 -0
- package/src/resources/aisearch/instances/instances.ts +6 -0
- package/src/resources/aisearch/namespaces/instances/instances.ts +6 -0
- package/src/resources/billing/api.md +3 -1
- package/src/resources/billing/billing.ts +3 -1
- package/src/resources/billing/index.ts +7 -1
- package/src/resources/billing/usage.ts +268 -7
- package/src/resources/cloudforce-one/threat-events/countries.ts +2 -0
- package/src/resources/custom-certificates/custom-certificates.ts +10 -8
- package/src/resources/dls/api.md +33 -0
- package/src/resources/dls/dls.ts +38 -0
- package/src/resources/dls/index.ts +12 -0
- package/src/resources/dls/regional-services/index.ts +17 -0
- package/src/resources/dls/regional-services/prefix-bindings.ts +301 -0
- package/src/resources/dls/regional-services/regional-services.ts +42 -0
- package/src/resources/dls/regional-services.ts +3 -0
- package/src/resources/dls/regions.ts +118 -0
- package/src/resources/dls.ts +3 -0
- package/src/resources/email-sending/email-sending.ts +2 -2
- package/src/resources/index.ts +1 -0
- package/src/resources/intel/sinkholes.ts +9 -9
- package/src/resources/logpush/datasets/fields.ts +3 -0
- package/src/resources/logpush/datasets/jobs.ts +3 -0
- package/src/resources/logpush/jobs.ts +2 -0
- package/src/resources/organizations/api.md +12 -0
- package/src/resources/organizations/billing/billing.ts +15 -0
- package/src/resources/organizations/billing/index.ts +4 -0
- package/src/resources/organizations/billing/usage.ts +270 -0
- package/src/resources/organizations/billing.ts +3 -0
- package/src/resources/organizations/index.ts +1 -0
- package/src/resources/organizations/organization-profile.ts +2 -2
- package/src/resources/organizations/organizations.ts +11 -5
- package/src/resources/r2/api.md +15 -0
- package/src/resources/r2/buckets/buckets.ts +27 -0
- package/src/resources/r2/buckets/index.ts +11 -0
- package/src/resources/r2/buckets/objects.ts +419 -0
- package/src/resources/radar/http/http.ts +72 -0
- package/src/resources/secrets-store/api.md +2 -0
- package/src/resources/secrets-store/index.ts +2 -0
- package/src/resources/secrets-store/secrets-store.ts +4 -0
- package/src/resources/secrets-store/stores/index.ts +2 -0
- package/src/resources/secrets-store/stores/stores.ts +61 -0
- package/src/resources/spectrum/apps.ts +36 -0
- package/src/resources/workers/api.md +14 -0
- package/src/resources/workers/beta/workers/workers.ts +36 -0
- package/src/resources/workers/observability/destinations.ts +5 -5
- package/src/resources/workers/observability/index.ts +8 -0
- package/src/resources/workers/observability/observability.ts +21 -0
- package/src/resources/workers/observability/queries.ts +825 -0
- package/src/resources/workers/observability/telemetry.ts +84 -36
- package/src/resources/workers/scripts/index.ts +2 -0
- package/src/resources/workers/scripts/script-and-version-settings.ts +27 -0
- package/src/resources/workers/scripts/scripts.ts +49 -0
- package/src/resources/workers/scripts/secrets.ts +180 -0
- package/src/resources/workers/scripts/settings.ts +9 -0
- package/src/resources/workers-for-platforms/api.md +2 -0
- package/src/resources/workers-for-platforms/dispatch/namespaces/scripts/index.ts +2 -0
- package/src/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.ts +22 -0
- package/src/resources/workers-for-platforms/dispatch/namespaces/scripts/secrets.ts +185 -0
- package/src/resources/workers-for-platforms/dispatch/namespaces/scripts/settings.ts +27 -0
- package/src/resources/zero-trust/access/access.ts +29 -0
- package/src/resources/zero-trust/access/ai-controls/mcp/portals.ts +236 -0
- package/src/resources/zero-trust/access/ai-controls/mcp/servers.ts +246 -2
- package/src/resources/zero-trust/access/applications/policies.ts +38 -2
- package/src/resources/zero-trust/access/index.ts +11 -0
- package/src/resources/zero-trust/access/saml-certificates.ts +343 -0
- package/src/resources/zero-trust/api.md +25 -0
- package/src/resources/zero-trust/devices/posture/posture.ts +12 -0
- package/src/resources/zero-trust/identity-providers/identity-providers.ts +3045 -38
- package/src/resources/zero-trust/identity-providers/index.ts +5 -0
- package/src/resources/zero-trust/identity-providers/saml-certificate.ts +119 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,471 @@
|
|
|
1
|
+
import { APIResource } from "../../../resource.js";
|
|
2
|
+
import * as Core from "../../../core.js";
|
|
3
|
+
import { SinglePage } from "../../../pagination.js";
|
|
4
|
+
export declare class Queries extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Persist query for later use.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const query =
|
|
11
|
+
* await client.workers.observability.queries.create({
|
|
12
|
+
* account_id: 'account_id',
|
|
13
|
+
* description: 'Query description',
|
|
14
|
+
* name: 'x',
|
|
15
|
+
* parameters: {},
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
create(params: QueryCreateParams, options?: Core.RequestOptions): Core.APIPromise<QueryCreateResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* List saved queries.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* // Automatically fetches more pages as needed.
|
|
26
|
+
* for await (const queryListResponse of client.workers.observability.queries.list(
|
|
27
|
+
* { account_id: 'account_id' },
|
|
28
|
+
* )) {
|
|
29
|
+
* // ...
|
|
30
|
+
* }
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
list(params: QueryListParams, options?: Core.RequestOptions): Core.PagePromise<QueryListResponsesSinglePage, QueryListResponse>;
|
|
34
|
+
}
|
|
35
|
+
export declare class QueryListResponsesSinglePage extends SinglePage<QueryListResponse> {
|
|
36
|
+
}
|
|
37
|
+
export interface QueryCreateResponse {
|
|
38
|
+
id: string;
|
|
39
|
+
/**
|
|
40
|
+
* If the query wasn't explcitly saved
|
|
41
|
+
*/
|
|
42
|
+
adhoc: boolean;
|
|
43
|
+
created: string;
|
|
44
|
+
createdBy: string;
|
|
45
|
+
description: string | null;
|
|
46
|
+
/**
|
|
47
|
+
* Query name
|
|
48
|
+
*/
|
|
49
|
+
name: string;
|
|
50
|
+
parameters: QueryCreateResponse.Parameters;
|
|
51
|
+
updated: string;
|
|
52
|
+
updatedBy: string;
|
|
53
|
+
}
|
|
54
|
+
export declare namespace QueryCreateResponse {
|
|
55
|
+
interface Parameters {
|
|
56
|
+
/**
|
|
57
|
+
* Create Calculations to compute as part of the query.
|
|
58
|
+
*/
|
|
59
|
+
calculations?: Array<Parameters.Calculation>;
|
|
60
|
+
/**
|
|
61
|
+
* Set the Datasets to query. Leave it empty to query all the datasets.
|
|
62
|
+
*/
|
|
63
|
+
datasets?: Array<string>;
|
|
64
|
+
/**
|
|
65
|
+
* Set a Flag to describe how to combine the filters on the query.
|
|
66
|
+
*/
|
|
67
|
+
filterCombination?: 'and' | 'or' | 'AND' | 'OR';
|
|
68
|
+
/**
|
|
69
|
+
* Configure the Filters to apply to the query. Supports nested groups via kind:
|
|
70
|
+
* 'group'.
|
|
71
|
+
*/
|
|
72
|
+
filters?: Array<Parameters.UnionMember0 | Parameters.WorkersObservabilityFilterLeaf>;
|
|
73
|
+
/**
|
|
74
|
+
* Define how to group the results of the query.
|
|
75
|
+
*/
|
|
76
|
+
groupBys?: Array<Parameters.GroupBy>;
|
|
77
|
+
/**
|
|
78
|
+
* Configure the Having clauses that filter on calculations in the query result.
|
|
79
|
+
*/
|
|
80
|
+
havings?: Array<Parameters.Having>;
|
|
81
|
+
/**
|
|
82
|
+
* Set a limit on the number of results / records returned by the query
|
|
83
|
+
*/
|
|
84
|
+
limit?: number;
|
|
85
|
+
/**
|
|
86
|
+
* Define an expression to search using full-text search.
|
|
87
|
+
*/
|
|
88
|
+
needle?: Parameters.Needle;
|
|
89
|
+
/**
|
|
90
|
+
* Configure the order of the results returned by the query.
|
|
91
|
+
*/
|
|
92
|
+
orderBy?: Parameters.OrderBy;
|
|
93
|
+
}
|
|
94
|
+
namespace Parameters {
|
|
95
|
+
interface Calculation {
|
|
96
|
+
operator: 'uniq' | 'count' | 'max' | 'min' | 'sum' | 'avg' | 'median' | 'p001' | 'p01' | 'p05' | 'p10' | 'p25' | 'p75' | 'p90' | 'p95' | 'p99' | 'p999' | 'stddev' | 'variance' | 'COUNT_DISTINCT' | 'COUNT' | 'MAX' | 'MIN' | 'SUM' | 'AVG' | 'MEDIAN' | 'P001' | 'P01' | 'P05' | 'P10' | 'P25' | 'P75' | 'P90' | 'P95' | 'P99' | 'P999' | 'STDDEV' | 'VARIANCE';
|
|
97
|
+
alias?: string;
|
|
98
|
+
key?: string;
|
|
99
|
+
keyType?: 'string' | 'number' | 'boolean';
|
|
100
|
+
}
|
|
101
|
+
interface UnionMember0 {
|
|
102
|
+
filterCombination: 'and' | 'or' | 'AND' | 'OR';
|
|
103
|
+
filters: Array<unknown>;
|
|
104
|
+
kind: 'group';
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* A filter condition applied to query results. Use the keys and values endpoints
|
|
108
|
+
* to discover available fields and their values before constructing filters.
|
|
109
|
+
*/
|
|
110
|
+
interface WorkersObservabilityFilterLeaf {
|
|
111
|
+
/**
|
|
112
|
+
* Filter field name. Use verified keys from previous query results or the keys
|
|
113
|
+
* endpoint. Common keys include $metadata.service, $metadata.origin,
|
|
114
|
+
* $metadata.trigger, $metadata.message, and $metadata.error.
|
|
115
|
+
*/
|
|
116
|
+
key: string;
|
|
117
|
+
/**
|
|
118
|
+
* Comparison operator. String operators: includes, not_includes, starts_with,
|
|
119
|
+
* ends_with, regex. Existence: exists, is_null. Set membership: in, not_in
|
|
120
|
+
* (comma-separated values). Numeric: eq, neq, gt, gte, lt, lte.
|
|
121
|
+
*/
|
|
122
|
+
operation: 'includes' | 'not_includes' | 'starts_with' | 'ends_with' | 'regex' | 'exists' | 'is_null' | 'in' | 'not_in' | 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | '=' | '!=' | '>' | '>=' | '<' | '<=' | 'INCLUDES' | 'DOES_NOT_INCLUDE' | 'MATCH_REGEX' | 'EXISTS' | 'DOES_NOT_EXIST' | 'IN' | 'NOT_IN' | 'STARTS_WITH' | 'ENDS_WITH';
|
|
123
|
+
/**
|
|
124
|
+
* Data type of the filter field. Must match the actual type of the key being
|
|
125
|
+
* filtered.
|
|
126
|
+
*/
|
|
127
|
+
type: 'string' | 'number' | 'boolean';
|
|
128
|
+
/**
|
|
129
|
+
* Discriminator for leaf filter nodes. Always 'filter' when present; may be
|
|
130
|
+
* omitted.
|
|
131
|
+
*/
|
|
132
|
+
kind?: 'filter';
|
|
133
|
+
/**
|
|
134
|
+
* Comparison value. Must match actual values in your data — verify with the values
|
|
135
|
+
* endpoint. Ensure the value type (string/number/boolean) matches the field type.
|
|
136
|
+
* String comparisons are case-sensitive. Regex uses RE2 syntax (no
|
|
137
|
+
* lookaheads/lookbehinds).
|
|
138
|
+
*/
|
|
139
|
+
value?: string | number | boolean;
|
|
140
|
+
}
|
|
141
|
+
interface GroupBy {
|
|
142
|
+
type: 'string' | 'number' | 'boolean';
|
|
143
|
+
value: string;
|
|
144
|
+
}
|
|
145
|
+
interface Having {
|
|
146
|
+
key: string;
|
|
147
|
+
operation: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte';
|
|
148
|
+
value: number;
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Define an expression to search using full-text search.
|
|
152
|
+
*/
|
|
153
|
+
interface Needle {
|
|
154
|
+
value: string | number | boolean;
|
|
155
|
+
isRegex?: boolean;
|
|
156
|
+
matchCase?: boolean;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Configure the order of the results returned by the query.
|
|
160
|
+
*/
|
|
161
|
+
interface OrderBy {
|
|
162
|
+
/**
|
|
163
|
+
* Configure which Calculation to order the results by.
|
|
164
|
+
*/
|
|
165
|
+
value: string;
|
|
166
|
+
/**
|
|
167
|
+
* Set the order of the results
|
|
168
|
+
*/
|
|
169
|
+
order?: 'asc' | 'desc';
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
export interface QueryListResponse {
|
|
174
|
+
id: string;
|
|
175
|
+
/**
|
|
176
|
+
* If the query wasn't explcitly saved
|
|
177
|
+
*/
|
|
178
|
+
adhoc: boolean;
|
|
179
|
+
created: string;
|
|
180
|
+
createdBy: string;
|
|
181
|
+
description: string | null;
|
|
182
|
+
/**
|
|
183
|
+
* Query name
|
|
184
|
+
*/
|
|
185
|
+
name: string;
|
|
186
|
+
parameters: QueryListResponse.Parameters;
|
|
187
|
+
updated: string;
|
|
188
|
+
updatedBy: string;
|
|
189
|
+
}
|
|
190
|
+
export declare namespace QueryListResponse {
|
|
191
|
+
interface Parameters {
|
|
192
|
+
/**
|
|
193
|
+
* Create Calculations to compute as part of the query.
|
|
194
|
+
*/
|
|
195
|
+
calculations?: Array<Parameters.Calculation>;
|
|
196
|
+
/**
|
|
197
|
+
* Set the Datasets to query. Leave it empty to query all the datasets.
|
|
198
|
+
*/
|
|
199
|
+
datasets?: Array<string>;
|
|
200
|
+
/**
|
|
201
|
+
* Set a Flag to describe how to combine the filters on the query.
|
|
202
|
+
*/
|
|
203
|
+
filterCombination?: 'and' | 'or' | 'AND' | 'OR';
|
|
204
|
+
/**
|
|
205
|
+
* Configure the Filters to apply to the query. Supports nested groups via kind:
|
|
206
|
+
* 'group'.
|
|
207
|
+
*/
|
|
208
|
+
filters?: Array<Parameters.UnionMember0 | Parameters.WorkersObservabilityFilterLeaf>;
|
|
209
|
+
/**
|
|
210
|
+
* Define how to group the results of the query.
|
|
211
|
+
*/
|
|
212
|
+
groupBys?: Array<Parameters.GroupBy>;
|
|
213
|
+
/**
|
|
214
|
+
* Configure the Having clauses that filter on calculations in the query result.
|
|
215
|
+
*/
|
|
216
|
+
havings?: Array<Parameters.Having>;
|
|
217
|
+
/**
|
|
218
|
+
* Set a limit on the number of results / records returned by the query
|
|
219
|
+
*/
|
|
220
|
+
limit?: number;
|
|
221
|
+
/**
|
|
222
|
+
* Define an expression to search using full-text search.
|
|
223
|
+
*/
|
|
224
|
+
needle?: Parameters.Needle;
|
|
225
|
+
/**
|
|
226
|
+
* Configure the order of the results returned by the query.
|
|
227
|
+
*/
|
|
228
|
+
orderBy?: Parameters.OrderBy;
|
|
229
|
+
}
|
|
230
|
+
namespace Parameters {
|
|
231
|
+
interface Calculation {
|
|
232
|
+
operator: 'uniq' | 'count' | 'max' | 'min' | 'sum' | 'avg' | 'median' | 'p001' | 'p01' | 'p05' | 'p10' | 'p25' | 'p75' | 'p90' | 'p95' | 'p99' | 'p999' | 'stddev' | 'variance' | 'COUNT_DISTINCT' | 'COUNT' | 'MAX' | 'MIN' | 'SUM' | 'AVG' | 'MEDIAN' | 'P001' | 'P01' | 'P05' | 'P10' | 'P25' | 'P75' | 'P90' | 'P95' | 'P99' | 'P999' | 'STDDEV' | 'VARIANCE';
|
|
233
|
+
alias?: string;
|
|
234
|
+
key?: string;
|
|
235
|
+
keyType?: 'string' | 'number' | 'boolean';
|
|
236
|
+
}
|
|
237
|
+
interface UnionMember0 {
|
|
238
|
+
filterCombination: 'and' | 'or' | 'AND' | 'OR';
|
|
239
|
+
filters: Array<unknown>;
|
|
240
|
+
kind: 'group';
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* A filter condition applied to query results. Use the keys and values endpoints
|
|
244
|
+
* to discover available fields and their values before constructing filters.
|
|
245
|
+
*/
|
|
246
|
+
interface WorkersObservabilityFilterLeaf {
|
|
247
|
+
/**
|
|
248
|
+
* Filter field name. Use verified keys from previous query results or the keys
|
|
249
|
+
* endpoint. Common keys include $metadata.service, $metadata.origin,
|
|
250
|
+
* $metadata.trigger, $metadata.message, and $metadata.error.
|
|
251
|
+
*/
|
|
252
|
+
key: string;
|
|
253
|
+
/**
|
|
254
|
+
* Comparison operator. String operators: includes, not_includes, starts_with,
|
|
255
|
+
* ends_with, regex. Existence: exists, is_null. Set membership: in, not_in
|
|
256
|
+
* (comma-separated values). Numeric: eq, neq, gt, gte, lt, lte.
|
|
257
|
+
*/
|
|
258
|
+
operation: 'includes' | 'not_includes' | 'starts_with' | 'ends_with' | 'regex' | 'exists' | 'is_null' | 'in' | 'not_in' | 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | '=' | '!=' | '>' | '>=' | '<' | '<=' | 'INCLUDES' | 'DOES_NOT_INCLUDE' | 'MATCH_REGEX' | 'EXISTS' | 'DOES_NOT_EXIST' | 'IN' | 'NOT_IN' | 'STARTS_WITH' | 'ENDS_WITH';
|
|
259
|
+
/**
|
|
260
|
+
* Data type of the filter field. Must match the actual type of the key being
|
|
261
|
+
* filtered.
|
|
262
|
+
*/
|
|
263
|
+
type: 'string' | 'number' | 'boolean';
|
|
264
|
+
/**
|
|
265
|
+
* Discriminator for leaf filter nodes. Always 'filter' when present; may be
|
|
266
|
+
* omitted.
|
|
267
|
+
*/
|
|
268
|
+
kind?: 'filter';
|
|
269
|
+
/**
|
|
270
|
+
* Comparison value. Must match actual values in your data — verify with the values
|
|
271
|
+
* endpoint. Ensure the value type (string/number/boolean) matches the field type.
|
|
272
|
+
* String comparisons are case-sensitive. Regex uses RE2 syntax (no
|
|
273
|
+
* lookaheads/lookbehinds).
|
|
274
|
+
*/
|
|
275
|
+
value?: string | number | boolean;
|
|
276
|
+
}
|
|
277
|
+
interface GroupBy {
|
|
278
|
+
type: 'string' | 'number' | 'boolean';
|
|
279
|
+
value: string;
|
|
280
|
+
}
|
|
281
|
+
interface Having {
|
|
282
|
+
key: string;
|
|
283
|
+
operation: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte';
|
|
284
|
+
value: number;
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* Define an expression to search using full-text search.
|
|
288
|
+
*/
|
|
289
|
+
interface Needle {
|
|
290
|
+
value: string | number | boolean;
|
|
291
|
+
isRegex?: boolean;
|
|
292
|
+
matchCase?: boolean;
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* Configure the order of the results returned by the query.
|
|
296
|
+
*/
|
|
297
|
+
interface OrderBy {
|
|
298
|
+
/**
|
|
299
|
+
* Configure which Calculation to order the results by.
|
|
300
|
+
*/
|
|
301
|
+
value: string;
|
|
302
|
+
/**
|
|
303
|
+
* Set the order of the results
|
|
304
|
+
*/
|
|
305
|
+
order?: 'asc' | 'desc';
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
export interface QueryCreateParams {
|
|
310
|
+
/**
|
|
311
|
+
* Path param: Your Cloudflare account ID.
|
|
312
|
+
*/
|
|
313
|
+
account_id: string;
|
|
314
|
+
/**
|
|
315
|
+
* Body param
|
|
316
|
+
*/
|
|
317
|
+
description: string | null;
|
|
318
|
+
/**
|
|
319
|
+
* Body param: Query name
|
|
320
|
+
*/
|
|
321
|
+
name: string;
|
|
322
|
+
/**
|
|
323
|
+
* Body param
|
|
324
|
+
*/
|
|
325
|
+
parameters: QueryCreateParams.Parameters;
|
|
326
|
+
}
|
|
327
|
+
export declare namespace QueryCreateParams {
|
|
328
|
+
interface Parameters {
|
|
329
|
+
/**
|
|
330
|
+
* Create Calculations to compute as part of the query.
|
|
331
|
+
*/
|
|
332
|
+
calculations?: Array<Parameters.Calculation>;
|
|
333
|
+
/**
|
|
334
|
+
* Set the Datasets to query. Leave it empty to query all the datasets.
|
|
335
|
+
*/
|
|
336
|
+
datasets?: Array<string>;
|
|
337
|
+
/**
|
|
338
|
+
* Set a Flag to describe how to combine the filters on the query.
|
|
339
|
+
*/
|
|
340
|
+
filterCombination?: 'and' | 'or' | 'AND' | 'OR';
|
|
341
|
+
/**
|
|
342
|
+
* Configure the Filters to apply to the query. Supports nested groups via kind:
|
|
343
|
+
* 'group'.
|
|
344
|
+
*/
|
|
345
|
+
filters?: Array<Parameters.UnionMember0 | Parameters.WorkersObservabilityFilterLeaf>;
|
|
346
|
+
/**
|
|
347
|
+
* Define how to group the results of the query.
|
|
348
|
+
*/
|
|
349
|
+
groupBys?: Array<Parameters.GroupBy>;
|
|
350
|
+
/**
|
|
351
|
+
* Configure the Having clauses that filter on calculations in the query result.
|
|
352
|
+
*/
|
|
353
|
+
havings?: Array<Parameters.Having>;
|
|
354
|
+
/**
|
|
355
|
+
* Set a limit on the number of results / records returned by the query
|
|
356
|
+
*/
|
|
357
|
+
limit?: number;
|
|
358
|
+
/**
|
|
359
|
+
* Define an expression to search using full-text search.
|
|
360
|
+
*/
|
|
361
|
+
needle?: Parameters.Needle;
|
|
362
|
+
/**
|
|
363
|
+
* Configure the order of the results returned by the query.
|
|
364
|
+
*/
|
|
365
|
+
orderBy?: Parameters.OrderBy;
|
|
366
|
+
}
|
|
367
|
+
namespace Parameters {
|
|
368
|
+
interface Calculation {
|
|
369
|
+
operator: 'uniq' | 'count' | 'max' | 'min' | 'sum' | 'avg' | 'median' | 'p001' | 'p01' | 'p05' | 'p10' | 'p25' | 'p75' | 'p90' | 'p95' | 'p99' | 'p999' | 'stddev' | 'variance' | 'COUNT_DISTINCT' | 'COUNT' | 'MAX' | 'MIN' | 'SUM' | 'AVG' | 'MEDIAN' | 'P001' | 'P01' | 'P05' | 'P10' | 'P25' | 'P75' | 'P90' | 'P95' | 'P99' | 'P999' | 'STDDEV' | 'VARIANCE';
|
|
370
|
+
alias?: string;
|
|
371
|
+
key?: string;
|
|
372
|
+
keyType?: 'string' | 'number' | 'boolean';
|
|
373
|
+
}
|
|
374
|
+
interface UnionMember0 {
|
|
375
|
+
filterCombination: 'and' | 'or' | 'AND' | 'OR';
|
|
376
|
+
filters: Array<unknown>;
|
|
377
|
+
kind: 'group';
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
* A filter condition applied to query results. Use the keys and values endpoints
|
|
381
|
+
* to discover available fields and their values before constructing filters.
|
|
382
|
+
*/
|
|
383
|
+
interface WorkersObservabilityFilterLeaf {
|
|
384
|
+
/**
|
|
385
|
+
* Filter field name. Use verified keys from previous query results or the keys
|
|
386
|
+
* endpoint. Common keys include $metadata.service, $metadata.origin,
|
|
387
|
+
* $metadata.trigger, $metadata.message, and $metadata.error.
|
|
388
|
+
*/
|
|
389
|
+
key: string;
|
|
390
|
+
/**
|
|
391
|
+
* Comparison operator. String operators: includes, not_includes, starts_with,
|
|
392
|
+
* ends_with, regex. Existence: exists, is_null. Set membership: in, not_in
|
|
393
|
+
* (comma-separated values). Numeric: eq, neq, gt, gte, lt, lte.
|
|
394
|
+
*/
|
|
395
|
+
operation: 'includes' | 'not_includes' | 'starts_with' | 'ends_with' | 'regex' | 'exists' | 'is_null' | 'in' | 'not_in' | 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | '=' | '!=' | '>' | '>=' | '<' | '<=' | 'INCLUDES' | 'DOES_NOT_INCLUDE' | 'MATCH_REGEX' | 'EXISTS' | 'DOES_NOT_EXIST' | 'IN' | 'NOT_IN' | 'STARTS_WITH' | 'ENDS_WITH';
|
|
396
|
+
/**
|
|
397
|
+
* Data type of the filter field. Must match the actual type of the key being
|
|
398
|
+
* filtered.
|
|
399
|
+
*/
|
|
400
|
+
type: 'string' | 'number' | 'boolean';
|
|
401
|
+
/**
|
|
402
|
+
* Discriminator for leaf filter nodes. Always 'filter' when present; may be
|
|
403
|
+
* omitted.
|
|
404
|
+
*/
|
|
405
|
+
kind?: 'filter';
|
|
406
|
+
/**
|
|
407
|
+
* Comparison value. Must match actual values in your data — verify with the values
|
|
408
|
+
* endpoint. Ensure the value type (string/number/boolean) matches the field type.
|
|
409
|
+
* String comparisons are case-sensitive. Regex uses RE2 syntax (no
|
|
410
|
+
* lookaheads/lookbehinds).
|
|
411
|
+
*/
|
|
412
|
+
value?: string | number | boolean;
|
|
413
|
+
}
|
|
414
|
+
interface GroupBy {
|
|
415
|
+
type: 'string' | 'number' | 'boolean';
|
|
416
|
+
value: string;
|
|
417
|
+
}
|
|
418
|
+
interface Having {
|
|
419
|
+
key: string;
|
|
420
|
+
operation: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte';
|
|
421
|
+
value: number;
|
|
422
|
+
}
|
|
423
|
+
/**
|
|
424
|
+
* Define an expression to search using full-text search.
|
|
425
|
+
*/
|
|
426
|
+
interface Needle {
|
|
427
|
+
value: string | number | boolean;
|
|
428
|
+
isRegex?: boolean;
|
|
429
|
+
matchCase?: boolean;
|
|
430
|
+
}
|
|
431
|
+
/**
|
|
432
|
+
* Configure the order of the results returned by the query.
|
|
433
|
+
*/
|
|
434
|
+
interface OrderBy {
|
|
435
|
+
/**
|
|
436
|
+
* Configure which Calculation to order the results by.
|
|
437
|
+
*/
|
|
438
|
+
value: string;
|
|
439
|
+
/**
|
|
440
|
+
* Set the order of the results
|
|
441
|
+
*/
|
|
442
|
+
order?: 'asc' | 'desc';
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
export interface QueryListParams {
|
|
447
|
+
/**
|
|
448
|
+
* Path param: Your Cloudflare account ID.
|
|
449
|
+
*/
|
|
450
|
+
account_id: string;
|
|
451
|
+
/**
|
|
452
|
+
* Query param
|
|
453
|
+
*/
|
|
454
|
+
order?: 'asc' | 'desc';
|
|
455
|
+
/**
|
|
456
|
+
* Query param
|
|
457
|
+
*/
|
|
458
|
+
orderBy?: 'created' | 'updated';
|
|
459
|
+
/**
|
|
460
|
+
* Query param
|
|
461
|
+
*/
|
|
462
|
+
page?: number;
|
|
463
|
+
/**
|
|
464
|
+
* Query param
|
|
465
|
+
*/
|
|
466
|
+
perPage?: number;
|
|
467
|
+
}
|
|
468
|
+
export declare namespace Queries {
|
|
469
|
+
export { type QueryCreateResponse as QueryCreateResponse, type QueryListResponse as QueryListResponse, QueryListResponsesSinglePage as QueryListResponsesSinglePage, type QueryCreateParams as QueryCreateParams, type QueryListParams as QueryListParams, };
|
|
470
|
+
}
|
|
471
|
+
//# sourceMappingURL=queries.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../src/resources/workers/observability/queries.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,MAAM,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,mBAAmB,CAAC;IAUtG;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,MAAM,EAAE,eAAe,EACvB,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,WAAW,CAAC,4BAA4B,EAAE,iBAAiB,CAAC;CAQrE;AAED,qBAAa,4BAA6B,SAAQ,UAAU,CAAC,iBAAiB,CAAC;CAAG;AAElF,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;IAEf,OAAO,EAAE,MAAM,CAAC;IAEhB,SAAS,EAAE,MAAM,CAAC;IAElB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb,UAAU,EAAE,mBAAmB,CAAC,UAAU,CAAC;IAE3C,OAAO,EAAE,MAAM,CAAC;IAEhB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,yBAAiB,mBAAmB,CAAC;IACnC,UAAiB,UAAU;QACzB;;WAEG;QACH,YAAY,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;QAE7C;;WAEG;QACH,QAAQ,CAAC,EAAE,KAAK,CAA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ACrB;QAED;;WAEG;QACH,UAAiB,OAAO;YACtB;;eAEG;YACH,KAAK,EAAE,MAAM,CAAC;YAEd;;eAEG;YACH,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;SACxB;KACF;CACF;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAEvB;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAEhC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAID,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,4BAA4B,IAAI,4BAA4B,EAC5D,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.QueryListResponsesSinglePage = exports.Queries = void 0;
|
|
5
|
+
const resource_1 = require("../../../resource.js");
|
|
6
|
+
const pagination_1 = require("../../../pagination.js");
|
|
7
|
+
class Queries extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Persist query for later use.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const query =
|
|
14
|
+
* await client.workers.observability.queries.create({
|
|
15
|
+
* account_id: 'account_id',
|
|
16
|
+
* description: 'Query description',
|
|
17
|
+
* name: 'x',
|
|
18
|
+
* parameters: {},
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
create(params, options) {
|
|
23
|
+
const { account_id, ...body } = params;
|
|
24
|
+
return this._client.post(`/accounts/${account_id}/workers/observability/queries`, {
|
|
25
|
+
body,
|
|
26
|
+
...options,
|
|
27
|
+
})._thenUnwrap((obj) => obj.result);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* List saved queries.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* // Automatically fetches more pages as needed.
|
|
35
|
+
* for await (const queryListResponse of client.workers.observability.queries.list(
|
|
36
|
+
* { account_id: 'account_id' },
|
|
37
|
+
* )) {
|
|
38
|
+
* // ...
|
|
39
|
+
* }
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
list(params, options) {
|
|
43
|
+
const { account_id, ...query } = params;
|
|
44
|
+
return this._client.getAPIList(`/accounts/${account_id}/workers/observability/queries`, QueryListResponsesSinglePage, { query, ...options });
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.Queries = Queries;
|
|
48
|
+
class QueryListResponsesSinglePage extends pagination_1.SinglePage {
|
|
49
|
+
}
|
|
50
|
+
exports.QueryListResponsesSinglePage = QueryListResponsesSinglePage;
|
|
51
|
+
Queries.QueryListResponsesSinglePage = QueryListResponsesSinglePage;
|
|
52
|
+
//# sourceMappingURL=queries.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queries.js","sourceRoot":"","sources":["../../../src/resources/workers/observability/queries.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,mDAAgD;AAEhD,uDAAiD;AAEjD,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,MAAyB,EAAE,OAA6B;QAC7D,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACvC,OACE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,UAAU,gCAAgC,EAAE;YACzE,IAAI;YACJ,GAAG,OAAO;SACX,CACF,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,MAAuB,EACvB,OAA6B;QAE7B,MAAM,EAAE,UAAU,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,aAAa,UAAU,gCAAgC,EACvD,4BAA4B,EAC5B,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF;AAjDD,0BAiDC;AAED,MAAa,4BAA6B,SAAQ,uBAA6B;CAAG;AAAlF,oEAAkF;AAqvBlF,OAAO,CAAC,4BAA4B,GAAG,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../resource.mjs";
|
|
3
|
+
import { SinglePage } from "../../../pagination.mjs";
|
|
4
|
+
export class Queries extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Persist query for later use.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const query =
|
|
11
|
+
* await client.workers.observability.queries.create({
|
|
12
|
+
* account_id: 'account_id',
|
|
13
|
+
* description: 'Query description',
|
|
14
|
+
* name: 'x',
|
|
15
|
+
* parameters: {},
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
create(params, options) {
|
|
20
|
+
const { account_id, ...body } = params;
|
|
21
|
+
return this._client.post(`/accounts/${account_id}/workers/observability/queries`, {
|
|
22
|
+
body,
|
|
23
|
+
...options,
|
|
24
|
+
})._thenUnwrap((obj) => obj.result);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* List saved queries.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```ts
|
|
31
|
+
* // Automatically fetches more pages as needed.
|
|
32
|
+
* for await (const queryListResponse of client.workers.observability.queries.list(
|
|
33
|
+
* { account_id: 'account_id' },
|
|
34
|
+
* )) {
|
|
35
|
+
* // ...
|
|
36
|
+
* }
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
list(params, options) {
|
|
40
|
+
const { account_id, ...query } = params;
|
|
41
|
+
return this._client.getAPIList(`/accounts/${account_id}/workers/observability/queries`, QueryListResponsesSinglePage, { query, ...options });
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
export class QueryListResponsesSinglePage extends SinglePage {
|
|
45
|
+
}
|
|
46
|
+
Queries.QueryListResponsesSinglePage = QueryListResponsesSinglePage;
|
|
47
|
+
//# sourceMappingURL=queries.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queries.mjs","sourceRoot":"","sources":["../../../src/resources/workers/observability/queries.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,UAAU,EAAE;AAErB,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,MAAyB,EAAE,OAA6B;QAC7D,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACvC,OACE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,UAAU,gCAAgC,EAAE;YACzE,IAAI;YACJ,GAAG,OAAO;SACX,CACF,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,MAAuB,EACvB,OAA6B;QAE7B,MAAM,EAAE,UAAU,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,aAAa,UAAU,gCAAgC,EACvD,4BAA4B,EAC5B,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF;AAED,MAAM,OAAO,4BAA6B,SAAQ,UAA6B;CAAG;AAqvBlF,OAAO,CAAC,4BAA4B,GAAG,4BAA4B,CAAC"}
|