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,825 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../resource';
|
|
4
|
+
import * as Core from '../../../core';
|
|
5
|
+
import { SinglePage } from '../../../pagination';
|
|
6
|
+
|
|
7
|
+
export class Queries extends 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: QueryCreateParams, options?: Core.RequestOptions): Core.APIPromise<QueryCreateResponse> {
|
|
23
|
+
const { account_id, ...body } = params;
|
|
24
|
+
return (
|
|
25
|
+
this._client.post(`/accounts/${account_id}/workers/observability/queries`, {
|
|
26
|
+
body,
|
|
27
|
+
...options,
|
|
28
|
+
}) as Core.APIPromise<{ result: QueryCreateResponse }>
|
|
29
|
+
)._thenUnwrap((obj) => obj.result);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* List saved queries.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* // Automatically fetches more pages as needed.
|
|
38
|
+
* for await (const queryListResponse of client.workers.observability.queries.list(
|
|
39
|
+
* { account_id: 'account_id' },
|
|
40
|
+
* )) {
|
|
41
|
+
* // ...
|
|
42
|
+
* }
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
list(
|
|
46
|
+
params: QueryListParams,
|
|
47
|
+
options?: Core.RequestOptions,
|
|
48
|
+
): Core.PagePromise<QueryListResponsesSinglePage, QueryListResponse> {
|
|
49
|
+
const { account_id, ...query } = params;
|
|
50
|
+
return this._client.getAPIList(
|
|
51
|
+
`/accounts/${account_id}/workers/observability/queries`,
|
|
52
|
+
QueryListResponsesSinglePage,
|
|
53
|
+
{ query, ...options },
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export class QueryListResponsesSinglePage extends SinglePage<QueryListResponse> {}
|
|
59
|
+
|
|
60
|
+
export interface QueryCreateResponse {
|
|
61
|
+
id: string;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* If the query wasn't explcitly saved
|
|
65
|
+
*/
|
|
66
|
+
adhoc: boolean;
|
|
67
|
+
|
|
68
|
+
created: string;
|
|
69
|
+
|
|
70
|
+
createdBy: string;
|
|
71
|
+
|
|
72
|
+
description: string | null;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Query name
|
|
76
|
+
*/
|
|
77
|
+
name: string;
|
|
78
|
+
|
|
79
|
+
parameters: QueryCreateResponse.Parameters;
|
|
80
|
+
|
|
81
|
+
updated: string;
|
|
82
|
+
|
|
83
|
+
updatedBy: string;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export namespace QueryCreateResponse {
|
|
87
|
+
export interface Parameters {
|
|
88
|
+
/**
|
|
89
|
+
* Create Calculations to compute as part of the query.
|
|
90
|
+
*/
|
|
91
|
+
calculations?: Array<Parameters.Calculation>;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Set the Datasets to query. Leave it empty to query all the datasets.
|
|
95
|
+
*/
|
|
96
|
+
datasets?: Array<string>;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Set a Flag to describe how to combine the filters on the query.
|
|
100
|
+
*/
|
|
101
|
+
filterCombination?: 'and' | 'or' | 'AND' | 'OR';
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Configure the Filters to apply to the query. Supports nested groups via kind:
|
|
105
|
+
* 'group'.
|
|
106
|
+
*/
|
|
107
|
+
filters?: Array<Parameters.UnionMember0 | Parameters.WorkersObservabilityFilterLeaf>;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Define how to group the results of the query.
|
|
111
|
+
*/
|
|
112
|
+
groupBys?: Array<Parameters.GroupBy>;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Configure the Having clauses that filter on calculations in the query result.
|
|
116
|
+
*/
|
|
117
|
+
havings?: Array<Parameters.Having>;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Set a limit on the number of results / records returned by the query
|
|
121
|
+
*/
|
|
122
|
+
limit?: number;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Define an expression to search using full-text search.
|
|
126
|
+
*/
|
|
127
|
+
needle?: Parameters.Needle;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Configure the order of the results returned by the query.
|
|
131
|
+
*/
|
|
132
|
+
orderBy?: Parameters.OrderBy;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export namespace Parameters {
|
|
136
|
+
export interface Calculation {
|
|
137
|
+
operator:
|
|
138
|
+
| 'uniq'
|
|
139
|
+
| 'count'
|
|
140
|
+
| 'max'
|
|
141
|
+
| 'min'
|
|
142
|
+
| 'sum'
|
|
143
|
+
| 'avg'
|
|
144
|
+
| 'median'
|
|
145
|
+
| 'p001'
|
|
146
|
+
| 'p01'
|
|
147
|
+
| 'p05'
|
|
148
|
+
| 'p10'
|
|
149
|
+
| 'p25'
|
|
150
|
+
| 'p75'
|
|
151
|
+
| 'p90'
|
|
152
|
+
| 'p95'
|
|
153
|
+
| 'p99'
|
|
154
|
+
| 'p999'
|
|
155
|
+
| 'stddev'
|
|
156
|
+
| 'variance'
|
|
157
|
+
| 'COUNT_DISTINCT'
|
|
158
|
+
| 'COUNT'
|
|
159
|
+
| 'MAX'
|
|
160
|
+
| 'MIN'
|
|
161
|
+
| 'SUM'
|
|
162
|
+
| 'AVG'
|
|
163
|
+
| 'MEDIAN'
|
|
164
|
+
| 'P001'
|
|
165
|
+
| 'P01'
|
|
166
|
+
| 'P05'
|
|
167
|
+
| 'P10'
|
|
168
|
+
| 'P25'
|
|
169
|
+
| 'P75'
|
|
170
|
+
| 'P90'
|
|
171
|
+
| 'P95'
|
|
172
|
+
| 'P99'
|
|
173
|
+
| 'P999'
|
|
174
|
+
| 'STDDEV'
|
|
175
|
+
| 'VARIANCE';
|
|
176
|
+
|
|
177
|
+
alias?: string;
|
|
178
|
+
|
|
179
|
+
key?: string;
|
|
180
|
+
|
|
181
|
+
keyType?: 'string' | 'number' | 'boolean';
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export interface UnionMember0 {
|
|
185
|
+
filterCombination: 'and' | 'or' | 'AND' | 'OR';
|
|
186
|
+
|
|
187
|
+
filters: Array<unknown>;
|
|
188
|
+
|
|
189
|
+
kind: 'group';
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* A filter condition applied to query results. Use the keys and values endpoints
|
|
194
|
+
* to discover available fields and their values before constructing filters.
|
|
195
|
+
*/
|
|
196
|
+
export interface WorkersObservabilityFilterLeaf {
|
|
197
|
+
/**
|
|
198
|
+
* Filter field name. Use verified keys from previous query results or the keys
|
|
199
|
+
* endpoint. Common keys include $metadata.service, $metadata.origin,
|
|
200
|
+
* $metadata.trigger, $metadata.message, and $metadata.error.
|
|
201
|
+
*/
|
|
202
|
+
key: string;
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Comparison operator. String operators: includes, not_includes, starts_with,
|
|
206
|
+
* ends_with, regex. Existence: exists, is_null. Set membership: in, not_in
|
|
207
|
+
* (comma-separated values). Numeric: eq, neq, gt, gte, lt, lte.
|
|
208
|
+
*/
|
|
209
|
+
operation:
|
|
210
|
+
| 'includes'
|
|
211
|
+
| 'not_includes'
|
|
212
|
+
| 'starts_with'
|
|
213
|
+
| 'ends_with'
|
|
214
|
+
| 'regex'
|
|
215
|
+
| 'exists'
|
|
216
|
+
| 'is_null'
|
|
217
|
+
| 'in'
|
|
218
|
+
| 'not_in'
|
|
219
|
+
| 'eq'
|
|
220
|
+
| 'neq'
|
|
221
|
+
| 'gt'
|
|
222
|
+
| 'gte'
|
|
223
|
+
| 'lt'
|
|
224
|
+
| 'lte'
|
|
225
|
+
| '='
|
|
226
|
+
| '!='
|
|
227
|
+
| '>'
|
|
228
|
+
| '>='
|
|
229
|
+
| '<'
|
|
230
|
+
| '<='
|
|
231
|
+
| 'INCLUDES'
|
|
232
|
+
| 'DOES_NOT_INCLUDE'
|
|
233
|
+
| 'MATCH_REGEX'
|
|
234
|
+
| 'EXISTS'
|
|
235
|
+
| 'DOES_NOT_EXIST'
|
|
236
|
+
| 'IN'
|
|
237
|
+
| 'NOT_IN'
|
|
238
|
+
| 'STARTS_WITH'
|
|
239
|
+
| 'ENDS_WITH';
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* Data type of the filter field. Must match the actual type of the key being
|
|
243
|
+
* filtered.
|
|
244
|
+
*/
|
|
245
|
+
type: 'string' | 'number' | 'boolean';
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* Discriminator for leaf filter nodes. Always 'filter' when present; may be
|
|
249
|
+
* omitted.
|
|
250
|
+
*/
|
|
251
|
+
kind?: 'filter';
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Comparison value. Must match actual values in your data — verify with the values
|
|
255
|
+
* endpoint. Ensure the value type (string/number/boolean) matches the field type.
|
|
256
|
+
* String comparisons are case-sensitive. Regex uses RE2 syntax (no
|
|
257
|
+
* lookaheads/lookbehinds).
|
|
258
|
+
*/
|
|
259
|
+
value?: string | number | boolean;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
export interface GroupBy {
|
|
263
|
+
type: 'string' | 'number' | 'boolean';
|
|
264
|
+
|
|
265
|
+
value: string;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
export interface Having {
|
|
269
|
+
key: string;
|
|
270
|
+
|
|
271
|
+
operation: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte';
|
|
272
|
+
|
|
273
|
+
value: number;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* Define an expression to search using full-text search.
|
|
278
|
+
*/
|
|
279
|
+
export interface Needle {
|
|
280
|
+
value: string | number | boolean;
|
|
281
|
+
|
|
282
|
+
isRegex?: boolean;
|
|
283
|
+
|
|
284
|
+
matchCase?: boolean;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* Configure the order of the results returned by the query.
|
|
289
|
+
*/
|
|
290
|
+
export interface OrderBy {
|
|
291
|
+
/**
|
|
292
|
+
* Configure which Calculation to order the results by.
|
|
293
|
+
*/
|
|
294
|
+
value: string;
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Set the order of the results
|
|
298
|
+
*/
|
|
299
|
+
order?: 'asc' | 'desc';
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
export interface QueryListResponse {
|
|
305
|
+
id: string;
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* If the query wasn't explcitly saved
|
|
309
|
+
*/
|
|
310
|
+
adhoc: boolean;
|
|
311
|
+
|
|
312
|
+
created: string;
|
|
313
|
+
|
|
314
|
+
createdBy: string;
|
|
315
|
+
|
|
316
|
+
description: string | null;
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* Query name
|
|
320
|
+
*/
|
|
321
|
+
name: string;
|
|
322
|
+
|
|
323
|
+
parameters: QueryListResponse.Parameters;
|
|
324
|
+
|
|
325
|
+
updated: string;
|
|
326
|
+
|
|
327
|
+
updatedBy: string;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
export namespace QueryListResponse {
|
|
331
|
+
export interface Parameters {
|
|
332
|
+
/**
|
|
333
|
+
* Create Calculations to compute as part of the query.
|
|
334
|
+
*/
|
|
335
|
+
calculations?: Array<Parameters.Calculation>;
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* Set the Datasets to query. Leave it empty to query all the datasets.
|
|
339
|
+
*/
|
|
340
|
+
datasets?: Array<string>;
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* Set a Flag to describe how to combine the filters on the query.
|
|
344
|
+
*/
|
|
345
|
+
filterCombination?: 'and' | 'or' | 'AND' | 'OR';
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* Configure the Filters to apply to the query. Supports nested groups via kind:
|
|
349
|
+
* 'group'.
|
|
350
|
+
*/
|
|
351
|
+
filters?: Array<Parameters.UnionMember0 | Parameters.WorkersObservabilityFilterLeaf>;
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* Define how to group the results of the query.
|
|
355
|
+
*/
|
|
356
|
+
groupBys?: Array<Parameters.GroupBy>;
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* Configure the Having clauses that filter on calculations in the query result.
|
|
360
|
+
*/
|
|
361
|
+
havings?: Array<Parameters.Having>;
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* Set a limit on the number of results / records returned by the query
|
|
365
|
+
*/
|
|
366
|
+
limit?: number;
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* Define an expression to search using full-text search.
|
|
370
|
+
*/
|
|
371
|
+
needle?: Parameters.Needle;
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* Configure the order of the results returned by the query.
|
|
375
|
+
*/
|
|
376
|
+
orderBy?: Parameters.OrderBy;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
export namespace Parameters {
|
|
380
|
+
export interface Calculation {
|
|
381
|
+
operator:
|
|
382
|
+
| 'uniq'
|
|
383
|
+
| 'count'
|
|
384
|
+
| 'max'
|
|
385
|
+
| 'min'
|
|
386
|
+
| 'sum'
|
|
387
|
+
| 'avg'
|
|
388
|
+
| 'median'
|
|
389
|
+
| 'p001'
|
|
390
|
+
| 'p01'
|
|
391
|
+
| 'p05'
|
|
392
|
+
| 'p10'
|
|
393
|
+
| 'p25'
|
|
394
|
+
| 'p75'
|
|
395
|
+
| 'p90'
|
|
396
|
+
| 'p95'
|
|
397
|
+
| 'p99'
|
|
398
|
+
| 'p999'
|
|
399
|
+
| 'stddev'
|
|
400
|
+
| 'variance'
|
|
401
|
+
| 'COUNT_DISTINCT'
|
|
402
|
+
| 'COUNT'
|
|
403
|
+
| 'MAX'
|
|
404
|
+
| 'MIN'
|
|
405
|
+
| 'SUM'
|
|
406
|
+
| 'AVG'
|
|
407
|
+
| 'MEDIAN'
|
|
408
|
+
| 'P001'
|
|
409
|
+
| 'P01'
|
|
410
|
+
| 'P05'
|
|
411
|
+
| 'P10'
|
|
412
|
+
| 'P25'
|
|
413
|
+
| 'P75'
|
|
414
|
+
| 'P90'
|
|
415
|
+
| 'P95'
|
|
416
|
+
| 'P99'
|
|
417
|
+
| 'P999'
|
|
418
|
+
| 'STDDEV'
|
|
419
|
+
| 'VARIANCE';
|
|
420
|
+
|
|
421
|
+
alias?: string;
|
|
422
|
+
|
|
423
|
+
key?: string;
|
|
424
|
+
|
|
425
|
+
keyType?: 'string' | 'number' | 'boolean';
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
export interface UnionMember0 {
|
|
429
|
+
filterCombination: 'and' | 'or' | 'AND' | 'OR';
|
|
430
|
+
|
|
431
|
+
filters: Array<unknown>;
|
|
432
|
+
|
|
433
|
+
kind: 'group';
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* A filter condition applied to query results. Use the keys and values endpoints
|
|
438
|
+
* to discover available fields and their values before constructing filters.
|
|
439
|
+
*/
|
|
440
|
+
export interface WorkersObservabilityFilterLeaf {
|
|
441
|
+
/**
|
|
442
|
+
* Filter field name. Use verified keys from previous query results or the keys
|
|
443
|
+
* endpoint. Common keys include $metadata.service, $metadata.origin,
|
|
444
|
+
* $metadata.trigger, $metadata.message, and $metadata.error.
|
|
445
|
+
*/
|
|
446
|
+
key: string;
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* Comparison operator. String operators: includes, not_includes, starts_with,
|
|
450
|
+
* ends_with, regex. Existence: exists, is_null. Set membership: in, not_in
|
|
451
|
+
* (comma-separated values). Numeric: eq, neq, gt, gte, lt, lte.
|
|
452
|
+
*/
|
|
453
|
+
operation:
|
|
454
|
+
| 'includes'
|
|
455
|
+
| 'not_includes'
|
|
456
|
+
| 'starts_with'
|
|
457
|
+
| 'ends_with'
|
|
458
|
+
| 'regex'
|
|
459
|
+
| 'exists'
|
|
460
|
+
| 'is_null'
|
|
461
|
+
| 'in'
|
|
462
|
+
| 'not_in'
|
|
463
|
+
| 'eq'
|
|
464
|
+
| 'neq'
|
|
465
|
+
| 'gt'
|
|
466
|
+
| 'gte'
|
|
467
|
+
| 'lt'
|
|
468
|
+
| 'lte'
|
|
469
|
+
| '='
|
|
470
|
+
| '!='
|
|
471
|
+
| '>'
|
|
472
|
+
| '>='
|
|
473
|
+
| '<'
|
|
474
|
+
| '<='
|
|
475
|
+
| 'INCLUDES'
|
|
476
|
+
| 'DOES_NOT_INCLUDE'
|
|
477
|
+
| 'MATCH_REGEX'
|
|
478
|
+
| 'EXISTS'
|
|
479
|
+
| 'DOES_NOT_EXIST'
|
|
480
|
+
| 'IN'
|
|
481
|
+
| 'NOT_IN'
|
|
482
|
+
| 'STARTS_WITH'
|
|
483
|
+
| 'ENDS_WITH';
|
|
484
|
+
|
|
485
|
+
/**
|
|
486
|
+
* Data type of the filter field. Must match the actual type of the key being
|
|
487
|
+
* filtered.
|
|
488
|
+
*/
|
|
489
|
+
type: 'string' | 'number' | 'boolean';
|
|
490
|
+
|
|
491
|
+
/**
|
|
492
|
+
* Discriminator for leaf filter nodes. Always 'filter' when present; may be
|
|
493
|
+
* omitted.
|
|
494
|
+
*/
|
|
495
|
+
kind?: 'filter';
|
|
496
|
+
|
|
497
|
+
/**
|
|
498
|
+
* Comparison value. Must match actual values in your data — verify with the values
|
|
499
|
+
* endpoint. Ensure the value type (string/number/boolean) matches the field type.
|
|
500
|
+
* String comparisons are case-sensitive. Regex uses RE2 syntax (no
|
|
501
|
+
* lookaheads/lookbehinds).
|
|
502
|
+
*/
|
|
503
|
+
value?: string | number | boolean;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
export interface GroupBy {
|
|
507
|
+
type: 'string' | 'number' | 'boolean';
|
|
508
|
+
|
|
509
|
+
value: string;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
export interface Having {
|
|
513
|
+
key: string;
|
|
514
|
+
|
|
515
|
+
operation: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte';
|
|
516
|
+
|
|
517
|
+
value: number;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
/**
|
|
521
|
+
* Define an expression to search using full-text search.
|
|
522
|
+
*/
|
|
523
|
+
export interface Needle {
|
|
524
|
+
value: string | number | boolean;
|
|
525
|
+
|
|
526
|
+
isRegex?: boolean;
|
|
527
|
+
|
|
528
|
+
matchCase?: boolean;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* Configure the order of the results returned by the query.
|
|
533
|
+
*/
|
|
534
|
+
export interface OrderBy {
|
|
535
|
+
/**
|
|
536
|
+
* Configure which Calculation to order the results by.
|
|
537
|
+
*/
|
|
538
|
+
value: string;
|
|
539
|
+
|
|
540
|
+
/**
|
|
541
|
+
* Set the order of the results
|
|
542
|
+
*/
|
|
543
|
+
order?: 'asc' | 'desc';
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
export interface QueryCreateParams {
|
|
549
|
+
/**
|
|
550
|
+
* Path param: Your Cloudflare account ID.
|
|
551
|
+
*/
|
|
552
|
+
account_id: string;
|
|
553
|
+
|
|
554
|
+
/**
|
|
555
|
+
* Body param
|
|
556
|
+
*/
|
|
557
|
+
description: string | null;
|
|
558
|
+
|
|
559
|
+
/**
|
|
560
|
+
* Body param: Query name
|
|
561
|
+
*/
|
|
562
|
+
name: string;
|
|
563
|
+
|
|
564
|
+
/**
|
|
565
|
+
* Body param
|
|
566
|
+
*/
|
|
567
|
+
parameters: QueryCreateParams.Parameters;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
export namespace QueryCreateParams {
|
|
571
|
+
export interface Parameters {
|
|
572
|
+
/**
|
|
573
|
+
* Create Calculations to compute as part of the query.
|
|
574
|
+
*/
|
|
575
|
+
calculations?: Array<Parameters.Calculation>;
|
|
576
|
+
|
|
577
|
+
/**
|
|
578
|
+
* Set the Datasets to query. Leave it empty to query all the datasets.
|
|
579
|
+
*/
|
|
580
|
+
datasets?: Array<string>;
|
|
581
|
+
|
|
582
|
+
/**
|
|
583
|
+
* Set a Flag to describe how to combine the filters on the query.
|
|
584
|
+
*/
|
|
585
|
+
filterCombination?: 'and' | 'or' | 'AND' | 'OR';
|
|
586
|
+
|
|
587
|
+
/**
|
|
588
|
+
* Configure the Filters to apply to the query. Supports nested groups via kind:
|
|
589
|
+
* 'group'.
|
|
590
|
+
*/
|
|
591
|
+
filters?: Array<Parameters.UnionMember0 | Parameters.WorkersObservabilityFilterLeaf>;
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
* Define how to group the results of the query.
|
|
595
|
+
*/
|
|
596
|
+
groupBys?: Array<Parameters.GroupBy>;
|
|
597
|
+
|
|
598
|
+
/**
|
|
599
|
+
* Configure the Having clauses that filter on calculations in the query result.
|
|
600
|
+
*/
|
|
601
|
+
havings?: Array<Parameters.Having>;
|
|
602
|
+
|
|
603
|
+
/**
|
|
604
|
+
* Set a limit on the number of results / records returned by the query
|
|
605
|
+
*/
|
|
606
|
+
limit?: number;
|
|
607
|
+
|
|
608
|
+
/**
|
|
609
|
+
* Define an expression to search using full-text search.
|
|
610
|
+
*/
|
|
611
|
+
needle?: Parameters.Needle;
|
|
612
|
+
|
|
613
|
+
/**
|
|
614
|
+
* Configure the order of the results returned by the query.
|
|
615
|
+
*/
|
|
616
|
+
orderBy?: Parameters.OrderBy;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
export namespace Parameters {
|
|
620
|
+
export interface Calculation {
|
|
621
|
+
operator:
|
|
622
|
+
| 'uniq'
|
|
623
|
+
| 'count'
|
|
624
|
+
| 'max'
|
|
625
|
+
| 'min'
|
|
626
|
+
| 'sum'
|
|
627
|
+
| 'avg'
|
|
628
|
+
| 'median'
|
|
629
|
+
| 'p001'
|
|
630
|
+
| 'p01'
|
|
631
|
+
| 'p05'
|
|
632
|
+
| 'p10'
|
|
633
|
+
| 'p25'
|
|
634
|
+
| 'p75'
|
|
635
|
+
| 'p90'
|
|
636
|
+
| 'p95'
|
|
637
|
+
| 'p99'
|
|
638
|
+
| 'p999'
|
|
639
|
+
| 'stddev'
|
|
640
|
+
| 'variance'
|
|
641
|
+
| 'COUNT_DISTINCT'
|
|
642
|
+
| 'COUNT'
|
|
643
|
+
| 'MAX'
|
|
644
|
+
| 'MIN'
|
|
645
|
+
| 'SUM'
|
|
646
|
+
| 'AVG'
|
|
647
|
+
| 'MEDIAN'
|
|
648
|
+
| 'P001'
|
|
649
|
+
| 'P01'
|
|
650
|
+
| 'P05'
|
|
651
|
+
| 'P10'
|
|
652
|
+
| 'P25'
|
|
653
|
+
| 'P75'
|
|
654
|
+
| 'P90'
|
|
655
|
+
| 'P95'
|
|
656
|
+
| 'P99'
|
|
657
|
+
| 'P999'
|
|
658
|
+
| 'STDDEV'
|
|
659
|
+
| 'VARIANCE';
|
|
660
|
+
|
|
661
|
+
alias?: string;
|
|
662
|
+
|
|
663
|
+
key?: string;
|
|
664
|
+
|
|
665
|
+
keyType?: 'string' | 'number' | 'boolean';
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
export interface UnionMember0 {
|
|
669
|
+
filterCombination: 'and' | 'or' | 'AND' | 'OR';
|
|
670
|
+
|
|
671
|
+
filters: Array<unknown>;
|
|
672
|
+
|
|
673
|
+
kind: 'group';
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
/**
|
|
677
|
+
* A filter condition applied to query results. Use the keys and values endpoints
|
|
678
|
+
* to discover available fields and their values before constructing filters.
|
|
679
|
+
*/
|
|
680
|
+
export interface WorkersObservabilityFilterLeaf {
|
|
681
|
+
/**
|
|
682
|
+
* Filter field name. Use verified keys from previous query results or the keys
|
|
683
|
+
* endpoint. Common keys include $metadata.service, $metadata.origin,
|
|
684
|
+
* $metadata.trigger, $metadata.message, and $metadata.error.
|
|
685
|
+
*/
|
|
686
|
+
key: string;
|
|
687
|
+
|
|
688
|
+
/**
|
|
689
|
+
* Comparison operator. String operators: includes, not_includes, starts_with,
|
|
690
|
+
* ends_with, regex. Existence: exists, is_null. Set membership: in, not_in
|
|
691
|
+
* (comma-separated values). Numeric: eq, neq, gt, gte, lt, lte.
|
|
692
|
+
*/
|
|
693
|
+
operation:
|
|
694
|
+
| 'includes'
|
|
695
|
+
| 'not_includes'
|
|
696
|
+
| 'starts_with'
|
|
697
|
+
| 'ends_with'
|
|
698
|
+
| 'regex'
|
|
699
|
+
| 'exists'
|
|
700
|
+
| 'is_null'
|
|
701
|
+
| 'in'
|
|
702
|
+
| 'not_in'
|
|
703
|
+
| 'eq'
|
|
704
|
+
| 'neq'
|
|
705
|
+
| 'gt'
|
|
706
|
+
| 'gte'
|
|
707
|
+
| 'lt'
|
|
708
|
+
| 'lte'
|
|
709
|
+
| '='
|
|
710
|
+
| '!='
|
|
711
|
+
| '>'
|
|
712
|
+
| '>='
|
|
713
|
+
| '<'
|
|
714
|
+
| '<='
|
|
715
|
+
| 'INCLUDES'
|
|
716
|
+
| 'DOES_NOT_INCLUDE'
|
|
717
|
+
| 'MATCH_REGEX'
|
|
718
|
+
| 'EXISTS'
|
|
719
|
+
| 'DOES_NOT_EXIST'
|
|
720
|
+
| 'IN'
|
|
721
|
+
| 'NOT_IN'
|
|
722
|
+
| 'STARTS_WITH'
|
|
723
|
+
| 'ENDS_WITH';
|
|
724
|
+
|
|
725
|
+
/**
|
|
726
|
+
* Data type of the filter field. Must match the actual type of the key being
|
|
727
|
+
* filtered.
|
|
728
|
+
*/
|
|
729
|
+
type: 'string' | 'number' | 'boolean';
|
|
730
|
+
|
|
731
|
+
/**
|
|
732
|
+
* Discriminator for leaf filter nodes. Always 'filter' when present; may be
|
|
733
|
+
* omitted.
|
|
734
|
+
*/
|
|
735
|
+
kind?: 'filter';
|
|
736
|
+
|
|
737
|
+
/**
|
|
738
|
+
* Comparison value. Must match actual values in your data — verify with the values
|
|
739
|
+
* endpoint. Ensure the value type (string/number/boolean) matches the field type.
|
|
740
|
+
* String comparisons are case-sensitive. Regex uses RE2 syntax (no
|
|
741
|
+
* lookaheads/lookbehinds).
|
|
742
|
+
*/
|
|
743
|
+
value?: string | number | boolean;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
export interface GroupBy {
|
|
747
|
+
type: 'string' | 'number' | 'boolean';
|
|
748
|
+
|
|
749
|
+
value: string;
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
export interface Having {
|
|
753
|
+
key: string;
|
|
754
|
+
|
|
755
|
+
operation: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte';
|
|
756
|
+
|
|
757
|
+
value: number;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
/**
|
|
761
|
+
* Define an expression to search using full-text search.
|
|
762
|
+
*/
|
|
763
|
+
export interface Needle {
|
|
764
|
+
value: string | number | boolean;
|
|
765
|
+
|
|
766
|
+
isRegex?: boolean;
|
|
767
|
+
|
|
768
|
+
matchCase?: boolean;
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
/**
|
|
772
|
+
* Configure the order of the results returned by the query.
|
|
773
|
+
*/
|
|
774
|
+
export interface OrderBy {
|
|
775
|
+
/**
|
|
776
|
+
* Configure which Calculation to order the results by.
|
|
777
|
+
*/
|
|
778
|
+
value: string;
|
|
779
|
+
|
|
780
|
+
/**
|
|
781
|
+
* Set the order of the results
|
|
782
|
+
*/
|
|
783
|
+
order?: 'asc' | 'desc';
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
export interface QueryListParams {
|
|
789
|
+
/**
|
|
790
|
+
* Path param: Your Cloudflare account ID.
|
|
791
|
+
*/
|
|
792
|
+
account_id: string;
|
|
793
|
+
|
|
794
|
+
/**
|
|
795
|
+
* Query param
|
|
796
|
+
*/
|
|
797
|
+
order?: 'asc' | 'desc';
|
|
798
|
+
|
|
799
|
+
/**
|
|
800
|
+
* Query param
|
|
801
|
+
*/
|
|
802
|
+
orderBy?: 'created' | 'updated';
|
|
803
|
+
|
|
804
|
+
/**
|
|
805
|
+
* Query param
|
|
806
|
+
*/
|
|
807
|
+
page?: number;
|
|
808
|
+
|
|
809
|
+
/**
|
|
810
|
+
* Query param
|
|
811
|
+
*/
|
|
812
|
+
perPage?: number;
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
Queries.QueryListResponsesSinglePage = QueryListResponsesSinglePage;
|
|
816
|
+
|
|
817
|
+
export declare namespace Queries {
|
|
818
|
+
export {
|
|
819
|
+
type QueryCreateResponse as QueryCreateResponse,
|
|
820
|
+
type QueryListResponse as QueryListResponse,
|
|
821
|
+
QueryListResponsesSinglePage as QueryListResponsesSinglePage,
|
|
822
|
+
type QueryCreateParams as QueryCreateParams,
|
|
823
|
+
type QueryListParams as QueryListParams,
|
|
824
|
+
};
|
|
825
|
+
}
|