@objectstack/spec 0.9.1 → 1.0.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/README.md +11 -356
- package/dist/ai/agent-action.zod.d.ts +3215 -624
- package/dist/ai/agent-action.zod.d.ts.map +1 -1
- package/dist/ai/agent-action.zod.js +45 -3
- package/dist/ai/agent.zod.d.ts +148 -36
- package/dist/ai/agent.zod.d.ts.map +1 -1
- package/dist/ai/agent.zod.js +24 -0
- package/dist/ai/conversation.zod.d.ts +1105 -149
- package/dist/ai/conversation.zod.d.ts.map +1 -1
- package/dist/ai/conversation.zod.js +40 -25
- package/dist/ai/cost.zod.d.ts +1714 -482
- package/dist/ai/cost.zod.d.ts.map +1 -1
- package/dist/ai/cost.zod.js +18 -20
- package/dist/ai/devops-agent.zod.d.ts +1761 -289
- package/dist/ai/devops-agent.zod.d.ts.map +1 -1
- package/dist/ai/devops-agent.zod.js +1 -0
- package/dist/ai/feedback-loop.zod.d.ts +28451 -2432
- package/dist/ai/feedback-loop.zod.d.ts.map +1 -1
- package/dist/ai/index.d.ts +4 -0
- package/dist/ai/index.d.ts.map +1 -1
- package/dist/ai/index.js +4 -0
- package/dist/ai/model-registry.zod.d.ts +1164 -145
- package/dist/ai/model-registry.zod.d.ts.map +1 -1
- package/dist/ai/model-registry.zod.js +2 -1
- package/dist/ai/nlq.zod.d.ts +918 -213
- package/dist/ai/nlq.zod.d.ts.map +1 -1
- package/dist/ai/nlq.zod.js +6 -6
- package/dist/ai/orchestration.zod.d.ts +465 -159
- package/dist/ai/orchestration.zod.d.ts.map +1 -1
- package/dist/ai/orchestration.zod.js +6 -4
- package/dist/ai/plugin-development.zod.d.ts +1361 -0
- package/dist/ai/plugin-development.zod.d.ts.map +1 -0
- package/dist/ai/plugin-development.zod.js +576 -0
- package/dist/ai/predictive.zod.d.ts +702 -118
- package/dist/ai/predictive.zod.d.ts.map +1 -1
- package/dist/ai/predictive.zod.js +16 -5
- package/dist/ai/rag-pipeline.zod.d.ts +886 -195
- package/dist/ai/rag-pipeline.zod.d.ts.map +1 -1
- package/dist/ai/rag-pipeline.zod.js +30 -13
- package/dist/ai/runtime-ops.zod.d.ts +1815 -0
- package/dist/ai/runtime-ops.zod.d.ts.map +1 -0
- package/dist/ai/runtime-ops.zod.js +578 -0
- package/dist/api/analytics.zod.d.ts +715 -0
- package/dist/api/analytics.zod.d.ts.map +1 -0
- package/dist/api/analytics.zod.js +71 -0
- package/dist/api/auth.zod.d.ts +495 -0
- package/dist/api/auth.zod.d.ts.map +1 -0
- package/dist/api/auth.zod.js +78 -0
- package/dist/api/batch.zod.d.ts +892 -82
- package/dist/api/batch.zod.d.ts.map +1 -1
- package/dist/api/contract.zod.d.ts +1839 -207
- package/dist/api/contract.zod.d.ts.map +1 -1
- package/dist/api/contract.zod.js +23 -11
- package/dist/api/discovery.zod.d.ts +162 -12
- package/dist/api/discovery.zod.d.ts.map +1 -1
- package/dist/api/discovery.zod.js +6 -0
- package/dist/api/documentation.zod.d.ts +3646 -401
- package/dist/api/documentation.zod.d.ts.map +1 -1
- package/dist/api/endpoint.zod.d.ts +222 -56
- package/dist/api/endpoint.zod.d.ts.map +1 -1
- package/dist/api/errors.zod.d.ts +205 -376
- package/dist/api/errors.zod.d.ts.map +1 -1
- package/dist/api/graphql.zod.d.ts +5154 -670
- package/dist/api/graphql.zod.d.ts.map +1 -1
- package/dist/api/graphql.zod.js +3 -0
- package/dist/api/http-cache.zod.d.ts +229 -92
- package/dist/api/http-cache.zod.d.ts.map +1 -1
- package/dist/api/hub.zod.d.ts +27828 -3591
- package/dist/api/hub.zod.d.ts.map +1 -1
- package/dist/api/hub.zod.js +188 -150
- package/dist/api/index.d.ts +6 -0
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +6 -0
- package/dist/api/metadata.zod.d.ts +3757 -0
- package/dist/api/metadata.zod.d.ts.map +1 -0
- package/dist/api/metadata.zod.js +42 -0
- package/dist/api/odata.zod.d.ts +677 -72
- package/dist/api/odata.zod.d.ts.map +1 -1
- package/dist/api/protocol.zod.d.ts +9897 -318
- package/dist/api/protocol.zod.d.ts.map +1 -1
- package/dist/api/protocol.zod.js +167 -86
- package/dist/api/realtime.zod.d.ts +197 -73
- package/dist/api/realtime.zod.d.ts.map +1 -1
- package/dist/api/realtime.zod.js +2 -1
- package/dist/api/registry.example.d.ts +1 -2
- package/dist/api/registry.example.d.ts.map +1 -1
- package/dist/api/registry.example.js +1 -2
- package/dist/api/registry.zod.d.ts +8888 -1103
- package/dist/api/registry.zod.d.ts.map +1 -1
- package/dist/api/registry.zod.js +4 -7
- package/dist/api/rest-server.zod.d.ts +1942 -248
- package/dist/api/rest-server.zod.d.ts.map +1 -1
- package/dist/api/rest-server.zod.js +1 -1
- package/dist/api/router.zod.d.ts +155 -41
- package/dist/api/router.zod.d.ts.map +1 -1
- package/dist/api/router.zod.js +4 -0
- package/dist/api/storage.zod.d.ts +261 -0
- package/dist/api/storage.zod.d.ts.map +1 -0
- package/dist/api/storage.zod.js +43 -0
- package/dist/api/websocket.zod.d.ts +1209 -203
- package/dist/api/websocket.zod.d.ts.map +1 -1
- package/dist/automation/approval.zod.d.ts +713 -171
- package/dist/automation/approval.zod.d.ts.map +1 -1
- package/dist/automation/approval.zod.js +6 -2
- package/dist/automation/etl.zod.d.ts +453 -144
- package/dist/automation/etl.zod.d.ts.map +1 -1
- package/dist/automation/flow.zod.d.ts +290 -79
- package/dist/automation/flow.zod.d.ts.map +1 -1
- package/dist/automation/flow.zod.js +44 -1
- package/dist/automation/sync.zod.d.ts +813 -132
- package/dist/automation/sync.zod.d.ts.map +1 -1
- package/dist/automation/trigger-registry.zod.d.ts +1030 -184
- package/dist/automation/trigger-registry.zod.d.ts.map +1 -1
- package/dist/automation/webhook.zod.d.ts +125 -50
- package/dist/automation/webhook.zod.d.ts.map +1 -1
- package/dist/automation/workflow.zod.d.ts +1192 -597
- package/dist/automation/workflow.zod.d.ts.map +1 -1
- package/dist/automation/workflow.zod.js +101 -57
- package/dist/contracts/service-registry.d.ts +1 -1
- package/dist/data/analytics.zod.d.ts +358 -0
- package/dist/data/analytics.zod.d.ts.map +1 -0
- package/dist/data/analytics.zod.js +135 -0
- package/dist/data/data-engine.zod.d.ts +2335 -326
- package/dist/data/data-engine.zod.d.ts.map +1 -1
- package/dist/data/data-engine.zod.js +21 -28
- package/dist/data/dataset.zod.d.ts +40 -21
- package/dist/data/dataset.zod.d.ts.map +1 -1
- package/dist/data/datasource.zod.d.ts +324 -0
- package/dist/data/datasource.zod.d.ts.map +1 -0
- package/dist/data/document.zod.d.ts +547 -39
- package/dist/data/document.zod.d.ts.map +1 -1
- package/dist/data/driver/mongo.zod.d.ts +39 -3
- package/dist/data/driver/mongo.zod.d.ts.map +1 -1
- package/dist/data/driver/mongo.zod.js +1 -1
- package/dist/data/driver/postgres.zod.d.ts +109 -3
- package/dist/data/driver/postgres.zod.d.ts.map +1 -1
- package/dist/data/driver-nosql.zod.d.ts +695 -189
- package/dist/data/driver-nosql.zod.d.ts.map +1 -1
- package/dist/data/driver-sql.zod.d.ts +481 -33
- package/dist/data/driver-sql.zod.d.ts.map +1 -1
- package/dist/data/driver.zod.d.ts +4237 -473
- package/dist/data/driver.zod.d.ts.map +1 -1
- package/dist/data/driver.zod.js +99 -103
- package/dist/data/external-lookup.zod.d.ts +505 -68
- package/dist/data/external-lookup.zod.d.ts.map +1 -1
- package/dist/data/field.zod.d.ts +1754 -770
- package/dist/data/field.zod.d.ts.map +1 -1
- package/dist/data/field.zod.js +25 -0
- package/dist/data/filter.zod.d.ts +224 -36
- package/dist/data/filter.zod.d.ts.map +1 -1
- package/dist/data/hook.zod.d.ts +143 -70
- package/dist/data/hook.zod.d.ts.map +1 -1
- package/dist/data/index.d.ts +2 -0
- package/dist/data/index.d.ts.map +1 -1
- package/dist/data/index.js +3 -0
- package/dist/data/mapping.zod.d.ts +483 -109
- package/dist/data/mapping.zod.d.ts.map +1 -1
- package/dist/data/object.zod.d.ts +2899 -506
- package/dist/data/object.zod.d.ts.map +1 -1
- package/dist/data/object.zod.js +40 -0
- package/dist/data/query.zod.d.ts +402 -157
- package/dist/data/query.zod.d.ts.map +1 -1
- package/dist/data/validation.zod.d.ts +284 -123
- package/dist/data/validation.zod.d.ts.map +1 -1
- package/dist/hub/composer.zod.d.ts +2579 -282
- package/dist/hub/composer.zod.d.ts.map +1 -1
- package/dist/hub/composer.zod.js +1 -1
- package/dist/hub/hub-federation.zod.d.ts +2124 -458
- package/dist/hub/hub-federation.zod.d.ts.map +1 -1
- package/dist/hub/index.d.ts +1 -0
- package/dist/hub/index.d.ts.map +1 -1
- package/dist/hub/index.js +1 -0
- package/dist/hub/license.zod.d.ts +74 -29
- package/dist/hub/license.zod.d.ts.map +1 -1
- package/dist/hub/marketplace.zod.d.ts +280 -37
- package/dist/hub/marketplace.zod.d.ts.map +1 -1
- package/dist/hub/marketplace.zod.js +38 -12
- package/dist/hub/plugin-registry.zod.d.ts +1461 -140
- package/dist/hub/plugin-registry.zod.d.ts.map +1 -1
- package/dist/hub/plugin-registry.zod.js +1 -1
- package/dist/hub/plugin-security.zod.d.ts +3720 -476
- package/dist/hub/plugin-security.zod.d.ts.map +1 -1
- package/dist/hub/plugin-security.zod.js +1 -1
- package/dist/hub/registry-config.zod.d.ts +450 -0
- package/dist/hub/registry-config.zod.d.ts.map +1 -0
- package/dist/hub/registry-config.zod.js +156 -0
- package/dist/hub/space.zod.d.ts +307 -72
- package/dist/hub/space.zod.d.ts.map +1 -1
- package/dist/hub/tenant.zod.d.ts +861 -107
- package/dist/hub/tenant.zod.d.ts.map +1 -1
- package/dist/identity/identity.zod.d.ts +258 -0
- package/dist/identity/identity.zod.d.ts.map +1 -0
- package/dist/{auth → identity}/index.d.ts +0 -2
- package/dist/identity/index.d.ts.map +1 -0
- package/dist/{auth → identity}/index.js +0 -2
- package/dist/identity/organization.zod.d.ts +179 -0
- package/dist/identity/organization.zod.d.ts.map +1 -0
- package/dist/identity/protocol.d.ts.map +1 -0
- package/dist/{auth → identity}/role.zod.d.ts +14 -1
- package/dist/identity/role.zod.d.ts.map +1 -0
- package/dist/identity/scim.zod.d.ts +2732 -0
- package/dist/identity/scim.zod.d.ts.map +1 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -3
- package/dist/integration/connector/database.zod.d.ts +1253 -264
- package/dist/integration/connector/database.zod.d.ts.map +1 -1
- package/dist/integration/connector/file-storage.zod.d.ts +990 -259
- package/dist/integration/connector/file-storage.zod.d.ts.map +1 -1
- package/dist/integration/connector/github.zod.d.ts +1251 -226
- package/dist/integration/connector/github.zod.d.ts.map +1 -1
- package/dist/integration/connector/message-queue.zod.d.ts +1247 -314
- package/dist/integration/connector/message-queue.zod.d.ts.map +1 -1
- package/dist/integration/connector/saas.zod.d.ts +1129 -254
- package/dist/integration/connector/saas.zod.d.ts.map +1 -1
- package/dist/integration/connector/vercel.zod.d.ts +1799 -327
- package/dist/integration/connector/vercel.zod.d.ts.map +1 -1
- package/dist/integration/connector.zod.d.ts +1225 -382
- package/dist/integration/connector.zod.d.ts.map +1 -1
- package/dist/integration/connector.zod.js +26 -3
- package/dist/kernel/context.zod.d.ts +56 -0
- package/dist/kernel/context.zod.d.ts.map +1 -0
- package/dist/kernel/events.zod.d.ts +2716 -0
- package/dist/kernel/events.zod.d.ts.map +1 -0
- package/dist/{system → kernel}/events.zod.js +16 -16
- package/dist/kernel/feature.zod.d.ts +131 -0
- package/dist/kernel/feature.zod.d.ts.map +1 -0
- package/dist/kernel/index.d.ts +17 -0
- package/dist/kernel/index.d.ts.map +1 -0
- package/dist/kernel/index.js +32 -0
- package/dist/kernel/manifest.zod.d.ts +2124 -0
- package/dist/kernel/manifest.zod.d.ts.map +1 -0
- package/dist/{system → kernel}/manifest.zod.js +49 -8
- package/dist/kernel/metadata-loader.zod.d.ts +641 -0
- package/dist/kernel/metadata-loader.zod.d.ts.map +1 -0
- package/dist/kernel/plugin-capability.zod.d.ts +1130 -0
- package/dist/kernel/plugin-capability.zod.d.ts.map +1 -0
- package/dist/kernel/plugin-lifecycle-advanced.zod.d.ts +1458 -0
- package/dist/kernel/plugin-lifecycle-advanced.zod.d.ts.map +1 -0
- package/dist/kernel/plugin-lifecycle-advanced.zod.js +411 -0
- package/dist/{system → kernel}/plugin-lifecycle-events.zod.d.ts +209 -49
- package/dist/kernel/plugin-lifecycle-events.zod.d.ts.map +1 -0
- package/dist/kernel/plugin-loading.zod.d.ts +1774 -0
- package/dist/kernel/plugin-loading.zod.d.ts.map +1 -0
- package/dist/kernel/plugin-security-advanced.zod.d.ts +3833 -0
- package/dist/kernel/plugin-security-advanced.zod.d.ts.map +1 -0
- package/dist/kernel/plugin-security-advanced.zod.js +606 -0
- package/dist/kernel/plugin-structure.zod.d.ts +54 -0
- package/dist/kernel/plugin-structure.zod.d.ts.map +1 -0
- package/dist/kernel/plugin-structure.zod.js +107 -0
- package/dist/kernel/plugin-validator.zod.d.ts +245 -0
- package/dist/kernel/plugin-validator.zod.d.ts.map +1 -0
- package/dist/kernel/plugin-versioning.zod.d.ts +1309 -0
- package/dist/kernel/plugin-versioning.zod.d.ts.map +1 -0
- package/dist/kernel/plugin-versioning.zod.js +397 -0
- package/dist/kernel/plugin.zod.d.ts +3482 -0
- package/dist/kernel/plugin.zod.d.ts.map +1 -0
- package/dist/kernel/plugin.zod.js +80 -0
- package/dist/kernel/service-registry.zod.d.ts +247 -0
- package/dist/kernel/service-registry.zod.d.ts.map +1 -0
- package/dist/kernel/service-registry.zod.js +218 -0
- package/dist/kernel/startup-orchestrator.zod.d.ts +376 -0
- package/dist/kernel/startup-orchestrator.zod.d.ts.map +1 -0
- package/dist/qa/testing.zod.d.ts +765 -240
- package/dist/qa/testing.zod.d.ts.map +1 -1
- package/dist/{permission → security}/index.d.ts +1 -0
- package/dist/security/index.d.ts.map +1 -0
- package/dist/{permission → security}/index.js +1 -0
- package/dist/security/permission.zod.d.ts +342 -0
- package/dist/security/permission.zod.d.ts.map +1 -0
- package/dist/{permission → security}/permission.zod.js +1 -1
- package/dist/security/policy.zod.d.ts +209 -0
- package/dist/security/policy.zod.d.ts.map +1 -0
- package/dist/security/rls.zod.d.ts +605 -0
- package/dist/security/rls.zod.d.ts.map +1 -0
- package/dist/security/sharing.zod.d.ts +146 -0
- package/dist/security/sharing.zod.d.ts.map +1 -0
- package/dist/security/territory.zod.d.ts +104 -0
- package/dist/security/territory.zod.d.ts.map +1 -0
- package/dist/shared/connector-auth.zod.d.ts +176 -0
- package/dist/shared/connector-auth.zod.d.ts.map +1 -0
- package/dist/shared/connector-auth.zod.js +63 -0
- package/dist/shared/http.zod.d.ts +67 -22
- package/dist/shared/http.zod.d.ts.map +1 -1
- package/dist/shared/mapping.zod.d.ts +139 -25
- package/dist/shared/mapping.zod.d.ts.map +1 -1
- package/dist/stack.zod.d.ts +35002 -8703
- package/dist/stack.zod.d.ts.map +1 -1
- package/dist/stack.zod.js +7 -7
- package/dist/system/audit.zod.d.ts +974 -521
- package/dist/system/audit.zod.d.ts.map +1 -1
- package/dist/system/auth-config.zod.d.ts +143 -0
- package/dist/system/auth-config.zod.d.ts.map +1 -0
- package/dist/system/auth-config.zod.js +35 -0
- package/dist/system/cache.zod.d.ts +102 -64
- package/dist/system/cache.zod.d.ts.map +1 -1
- package/dist/system/change-management.zod.d.ts +452 -77
- package/dist/system/change-management.zod.d.ts.map +1 -1
- package/dist/system/collaboration.zod.d.ts +1609 -243
- package/dist/system/collaboration.zod.d.ts.map +1 -1
- package/dist/system/compliance.zod.d.ts +293 -63
- package/dist/system/compliance.zod.d.ts.map +1 -1
- package/dist/system/encryption.zod.d.ts +184 -54
- package/dist/system/encryption.zod.d.ts.map +1 -1
- package/dist/system/http-server.zod.d.ts +562 -116
- package/dist/system/http-server.zod.d.ts.map +1 -1
- package/dist/system/index.d.ts +23 -30
- package/dist/system/index.d.ts.map +1 -1
- package/dist/system/index.js +28 -46
- package/dist/system/job.zod.d.ts +169 -29
- package/dist/system/job.zod.d.ts.map +1 -1
- package/dist/system/job.zod.js +18 -5
- package/dist/system/logging.zod.d.ts +1875 -267
- package/dist/system/logging.zod.d.ts.map +1 -1
- package/dist/system/logging.zod.js +2 -1
- package/dist/system/masking.zod.d.ts +66 -34
- package/dist/system/masking.zod.d.ts.map +1 -1
- package/dist/system/message-queue.zod.d.ts +135 -49
- package/dist/system/message-queue.zod.d.ts.map +1 -1
- package/dist/system/metadata-persistence.zod.d.ts +552 -0
- package/dist/system/metadata-persistence.zod.d.ts.map +1 -0
- package/dist/system/metadata-persistence.zod.js +214 -0
- package/dist/system/metrics.zod.d.ts +1705 -330
- package/dist/system/metrics.zod.d.ts.map +1 -1
- package/dist/system/migration.zod.d.ts +18486 -2398
- package/dist/system/migration.zod.d.ts.map +1 -1
- package/dist/system/notification.zod.d.ts +534 -75
- package/dist/system/notification.zod.d.ts.map +1 -1
- package/dist/system/object-storage.zod.d.ts +1101 -382
- package/dist/system/object-storage.zod.d.ts.map +1 -1
- package/dist/system/search-engine.zod.d.ts +209 -78
- package/dist/system/search-engine.zod.d.ts.map +1 -1
- package/dist/system/service-registry.zod.d.ts +67 -125
- package/dist/system/service-registry.zod.d.ts.map +1 -1
- package/dist/system/service-registry.zod.js +81 -202
- package/dist/system/tracing.zod.d.ts +1623 -286
- package/dist/system/tracing.zod.d.ts.map +1 -1
- package/dist/system/translation.zod.d.ts +136 -8
- package/dist/system/translation.zod.d.ts.map +1 -1
- package/dist/system/translation.zod.js +2 -0
- package/dist/system/worker.zod.d.ts +1138 -159
- package/dist/system/worker.zod.d.ts.map +1 -1
- package/dist/system/worker.zod.js +8 -8
- package/dist/ui/action.zod.d.ts +121 -118
- package/dist/ui/action.zod.d.ts.map +1 -1
- package/dist/ui/app.zod.d.ts +306 -22
- package/dist/ui/app.zod.d.ts.map +1 -1
- package/dist/ui/app.zod.js +20 -1
- package/dist/ui/chart.zod.d.ts +390 -66
- package/dist/ui/chart.zod.d.ts.map +1 -1
- package/dist/ui/chart.zod.js +90 -5
- package/dist/ui/component.zod.d.ts +210 -86
- package/dist/ui/component.zod.d.ts.map +1 -1
- package/dist/ui/component.zod.js +4 -1
- package/dist/ui/dashboard.zod.d.ts +1002 -153
- package/dist/ui/dashboard.zod.d.ts.map +1 -1
- package/dist/ui/dashboard.zod.js +25 -0
- package/dist/ui/page.zod.d.ts +251 -117
- package/dist/ui/page.zod.d.ts.map +1 -1
- package/dist/ui/page.zod.js +22 -1
- package/dist/ui/report.zod.d.ts +461 -138
- package/dist/ui/report.zod.d.ts.map +1 -1
- package/dist/ui/theme.zod.d.ts +944 -42
- package/dist/ui/theme.zod.d.ts.map +1 -1
- package/dist/ui/view.zod.d.ts +3021 -393
- package/dist/ui/view.zod.d.ts.map +1 -1
- package/dist/ui/view.zod.js +84 -10
- package/dist/ui/widget.zod.d.ts +1689 -203
- package/dist/ui/widget.zod.d.ts.map +1 -1
- package/dist/ui/widget.zod.js +32 -10
- package/json-schema/ai/AICodeReviewResult.json +225 -0
- package/json-schema/ai/AIKnowledge.json +24 -1
- package/json-schema/ai/AIModelConfig.json +35 -1
- package/json-schema/ai/AIOperationCost.json +73 -1
- package/json-schema/ai/AIOpsAgentConfig.json +476 -0
- package/json-schema/ai/AIOrchestration.json +385 -1
- package/json-schema/ai/AIOrchestrationExecutionResult.json +133 -1
- package/json-schema/ai/AIOrchestrationTrigger.json +12 -1
- package/json-schema/ai/AITask.json +127 -1
- package/json-schema/ai/AITaskType.json +15 -1
- package/json-schema/ai/AITool.json +27 -1
- package/json-schema/ai/Agent.json +147 -1
- package/json-schema/ai/AgentAction.json +431 -1
- package/json-schema/ai/AgentActionResult.json +63 -1
- package/json-schema/ai/AgentActionSequence.json +497 -1
- package/json-schema/ai/AgentActionSequenceResult.json +137 -1
- package/json-schema/ai/AnomalyDetectionConfig.json +72 -0
- package/json-schema/ai/AutoScalingPolicy.json +169 -0
- package/json-schema/ai/BatchAIOrchestrationExecution.json +42 -1
- package/json-schema/ai/BillingPeriod.json +12 -1
- package/json-schema/ai/BudgetLimit.json +105 -1
- package/json-schema/ai/BudgetStatus.json +88 -1
- package/json-schema/ai/BudgetType.json +11 -1
- package/json-schema/ai/CICDPipelineConfig.json +130 -1
- package/json-schema/ai/ChunkingStrategy.json +127 -1
- package/json-schema/ai/CodeContent.json +32 -0
- package/json-schema/ai/CodeGenerationConfig.json +59 -1
- package/json-schema/ai/CodeGenerationRequest.json +240 -0
- package/json-schema/ai/CodeGenerationTarget.json +13 -1
- package/json-schema/ai/ComponentActionParams.json +71 -1
- package/json-schema/ai/ComponentActionType.json +14 -1
- package/json-schema/ai/ComponentAgentAction.json +153 -0
- package/json-schema/ai/ConversationAnalytics.json +82 -1
- package/json-schema/ai/ConversationContext.json +42 -1
- package/json-schema/ai/ConversationMessage.json +282 -1
- package/json-schema/ai/ConversationSession.json +560 -1
- package/json-schema/ai/ConversationSummary.json +68 -1
- package/json-schema/ai/CostAlert.json +103 -1
- package/json-schema/ai/CostAlertType.json +10 -1
- package/json-schema/ai/CostAnalytics.json +603 -1
- package/json-schema/ai/CostBreakdownDimension.json +14 -1
- package/json-schema/ai/CostBreakdownEntry.json +56 -1
- package/json-schema/ai/CostEntry.json +116 -1
- package/json-schema/ai/CostMetricType.json +11 -1
- package/json-schema/ai/CostOptimizationRecommendation.json +95 -1
- package/json-schema/ai/CostQueryFilters.json +108 -1
- package/json-schema/ai/CostReport.json +987 -1
- package/json-schema/ai/DataActionParams.json +32 -1
- package/json-schema/ai/DataActionType.json +12 -1
- package/json-schema/ai/DataAgentAction.json +112 -0
- package/json-schema/ai/DeploymentStrategy.json +46 -1
- package/json-schema/ai/DevOpsAgent.json +809 -1
- package/json-schema/ai/DevOpsTool.json +32 -1
- package/json-schema/ai/DevelopmentConfig.json +164 -1
- package/json-schema/ai/DocumentChunk.json +94 -1
- package/json-schema/ai/DocumentLoaderConfig.json +63 -1
- package/json-schema/ai/DocumentMetadata.json +58 -1
- package/json-schema/ai/EmbeddingModel.json +55 -1
- package/json-schema/ai/Entity.json +49 -1
- package/json-schema/ai/EvaluationMetrics.json +58 -1
- package/json-schema/ai/FeedbackLoop.json +7571 -1
- package/json-schema/ai/FieldSynonymConfig.json +33 -1
- package/json-schema/ai/FileContent.json +37 -0
- package/json-schema/ai/FilterExpression.json +58 -0
- package/json-schema/ai/FilterGroup.json +83 -0
- package/json-schema/ai/FormActionParams.json +30 -1
- package/json-schema/ai/FormActionType.json +14 -1
- package/json-schema/ai/FormAgentAction.json +112 -0
- package/json-schema/ai/FunctionCall.json +22 -1
- package/json-schema/ai/GeneratedCode.json +201 -0
- package/json-schema/ai/GitHubIntegration.json +65 -1
- package/json-schema/ai/Hyperparameters.json +74 -1
- package/json-schema/ai/ImageContent.json +38 -0
- package/json-schema/ai/IntegrationConfig.json +145 -1
- package/json-schema/ai/IntentActionMapping.json +486 -1
- package/json-schema/ai/Issue.json +68 -1
- package/json-schema/ai/MessageContent.json +115 -1
- package/json-schema/ai/MessageContentType.json +10 -1
- package/json-schema/ai/MessagePruningEvent.json +71 -1
- package/json-schema/ai/MessageRole.json +10 -1
- package/json-schema/ai/MetadataFilter.json +164 -0
- package/json-schema/ai/MetadataSource.json +27 -1
- package/json-schema/ai/ModelCapability.json +41 -1
- package/json-schema/ai/ModelConfig.json +179 -1
- package/json-schema/ai/ModelDrift.json +68 -1
- package/json-schema/ai/ModelFeature.json +65 -1
- package/json-schema/ai/ModelLimits.json +39 -1
- package/json-schema/ai/ModelPricing.json +22 -1
- package/json-schema/ai/ModelProvider.json +13 -1
- package/json-schema/ai/ModelRegistry.json +425 -1
- package/json-schema/ai/ModelRegistryEntry.json +237 -1
- package/json-schema/ai/ModelSelectionCriteria.json +44 -1
- package/json-schema/ai/MonitoringConfig.json +74 -1
- package/json-schema/ai/NLQAnalytics.json +103 -1
- package/json-schema/ai/NLQFieldMapping.json +34 -1
- package/json-schema/ai/NLQModelConfig.json +72 -1
- package/json-schema/ai/NLQParseResult.json +249 -1
- package/json-schema/ai/NLQRequest.json +104 -1
- package/json-schema/ai/NLQResponse.json +317 -1
- package/json-schema/ai/NLQTrainingExample.json +117 -1
- package/json-schema/ai/NavigationActionParams.json +50 -1
- package/json-schema/ai/NavigationActionType.json +15 -1
- package/json-schema/ai/NavigationAgentAction.json +133 -0
- package/json-schema/ai/PerformanceOptimization.json +116 -0
- package/json-schema/ai/PipelineStage.json +71 -1
- package/json-schema/ai/PluginCompositionRequest.json +94 -0
- package/json-schema/ai/PluginCompositionResult.json +144 -0
- package/json-schema/ai/PluginRecommendation.json +141 -0
- package/json-schema/ai/PluginRecommendationRequest.json +81 -0
- package/json-schema/ai/PluginScaffoldingTemplate.json +128 -0
- package/json-schema/ai/PostProcessingAction.json +35 -1
- package/json-schema/ai/PredictionRequest.json +33 -1
- package/json-schema/ai/PredictionResult.json +109 -1
- package/json-schema/ai/PredictiveModel.json +442 -1
- package/json-schema/ai/PredictiveModelType.json +12 -1
- package/json-schema/ai/PromptTemplate.json +157 -1
- package/json-schema/ai/PromptVariable.json +50 -1
- package/json-schema/ai/QueryContext.json +66 -1
- package/json-schema/ai/QueryIntent.json +15 -1
- package/json-schema/ai/QueryTemplate.json +78 -1
- package/json-schema/ai/RAGPipelineConfig.json +687 -1
- package/json-schema/ai/RAGPipelineStatus.json +61 -1
- package/json-schema/ai/RAGQueryRequest.json +58 -1
- package/json-schema/ai/RAGQueryResponse.json +134 -1
- package/json-schema/ai/RerankingConfig.json +28 -1
- package/json-schema/ai/Resolution.json +7477 -1
- package/json-schema/ai/RetrievalStrategy.json +115 -1
- package/json-schema/ai/RootCauseAnalysisRequest.json +93 -0
- package/json-schema/ai/RootCauseAnalysisResult.json +199 -0
- package/json-schema/ai/SelfHealingAction.json +98 -0
- package/json-schema/ai/SelfHealingConfig.json +211 -0
- package/json-schema/ai/TestingConfig.json +51 -1
- package/json-schema/ai/TextContent.json +28 -0
- package/json-schema/ai/Timeframe.json +62 -1
- package/json-schema/ai/TokenBudgetConfig.json +86 -1
- package/json-schema/ai/TokenBudgetStrategy.json +10 -1
- package/json-schema/ai/TokenUsage.json +26 -1
- package/json-schema/ai/TokenUsageStats.json +60 -1
- package/json-schema/ai/ToolCall.json +43 -1
- package/json-schema/ai/TrainingConfig.json +82 -1
- package/json-schema/ai/TypedAgentAction.json +770 -0
- package/json-schema/ai/UIActionType.json +57 -1
- package/json-schema/ai/VectorStoreConfig.json +80 -1
- package/json-schema/ai/VectorStoreProvider.json +15 -1
- package/json-schema/ai/VercelIntegration.json +63 -1
- package/json-schema/ai/VersionManagement.json +52 -1
- package/json-schema/ai/ViewActionParams.json +68 -1
- package/json-schema/ai/ViewActionType.json +15 -1
- package/json-schema/ai/ViewAgentAction.json +151 -0
- package/json-schema/ai/WorkflowActionParams.json +55 -1
- package/json-schema/ai/WorkflowActionType.json +12 -1
- package/json-schema/ai/WorkflowAgentAction.json +135 -0
- package/json-schema/ai/WorkflowFieldCondition.json +27 -1
- package/json-schema/ai/WorkflowSchedule.json +45 -1
- package/json-schema/api/AckMessage.json +40 -1
- package/json-schema/api/AnalyticsEndpoint.json +14 -0
- package/json-schema/api/AnalyticsMetadataResponse.json +280 -0
- package/json-schema/api/AnalyticsQueryRequest.json +154 -0
- package/json-schema/api/AnalyticsResultResponse.json +114 -0
- package/json-schema/api/AnalyticsSqlResponse.json +88 -0
- package/json-schema/api/ApiCapabilities.json +32 -1
- package/json-schema/api/ApiChangelogEntry.json +79 -1
- package/json-schema/api/ApiDiscoveryQuery.json +51 -1
- package/json-schema/api/ApiDiscoveryResponse.json +606 -1
- package/json-schema/api/ApiDocumentationConfig.json +711 -1
- package/json-schema/api/ApiEndpoint.json +159 -1
- package/json-schema/api/ApiEndpointRegistration.json +397 -1
- package/json-schema/api/ApiError.json +29 -1
- package/json-schema/api/ApiMapping.json +22 -1
- package/json-schema/api/ApiMetadata.json +38 -1
- package/json-schema/api/ApiParameter.json +130 -1
- package/json-schema/api/ApiProtocolType.json +15 -1
- package/json-schema/api/ApiRegistry.json +1680 -1
- package/json-schema/api/ApiRegistryEntry.json +536 -1
- package/json-schema/api/ApiResponse.json +109 -1
- package/json-schema/api/ApiRoutes.json +43 -1
- package/json-schema/api/ApiTestCollection.json +209 -1
- package/json-schema/api/ApiTestRequest.json +79 -1
- package/json-schema/api/ApiTestingUiConfig.json +136 -1
- package/json-schema/api/ApiTestingUiType.json +14 -1
- package/json-schema/api/AppDefinitionResponse.json +380 -0
- package/json-schema/api/AuthProvider.json +17 -0
- package/json-schema/api/AutomationTriggerRequest.json +23 -0
- package/json-schema/api/AutomationTriggerResponse.json +22 -0
- package/json-schema/api/BaseResponse.json +65 -1
- package/json-schema/api/BatchConfig.json +45 -1
- package/json-schema/api/BatchDataRequest.json +87 -1
- package/json-schema/api/BatchDataResponse.json +154 -1
- package/json-schema/api/BatchEndpointsConfig.json +50 -1
- package/json-schema/api/BatchOperationResult.json +59 -1
- package/json-schema/api/BatchOperationType.json +9 -1
- package/json-schema/api/BatchOptions.json +26 -1
- package/json-schema/api/BatchRecord.json +19 -1
- package/json-schema/api/BatchUpdateRequest.json +72 -1
- package/json-schema/api/BatchUpdateResponse.json +154 -1
- package/json-schema/api/BuildStatusResponse.json +140 -1
- package/json-schema/api/BulkRequest.json +23 -1
- package/json-schema/api/BulkResponse.json +125 -1
- package/json-schema/api/CacheControl.json +36 -1
- package/json-schema/api/CacheDirective.json +11 -1
- package/json-schema/api/CacheInvalidationRequest.json +37 -1
- package/json-schema/api/CacheInvalidationResponse.json +25 -1
- package/json-schema/api/CacheInvalidationTarget.json +11 -1
- package/json-schema/api/CodeGenerationTemplate.json +30 -1
- package/json-schema/api/CompileManifestRequest.json +80 -1
- package/json-schema/api/CompileManifestResponse.json +1580 -1
- package/json-schema/api/CompleteUploadRequest.json +23 -0
- package/json-schema/api/ConceptListResponse.json +98 -0
- package/json-schema/api/ConflictResolutionStrategy.json +9 -1
- package/json-schema/api/CreateDataRequest.json +19 -1
- package/json-schema/api/CreateDataResponse.json +24 -1
- package/json-schema/api/CreateManyDataRequest.json +22 -1
- package/json-schema/api/CreateManyDataResponse.json +27 -1
- package/json-schema/api/CreateRequest.json +14 -1
- package/json-schema/api/CreateSpaceRequest.json +237 -1
- package/json-schema/api/CreateTenantRequest.json +50 -1
- package/json-schema/api/CrudEndpointPattern.json +35 -1
- package/json-schema/api/CrudEndpointsConfig.json +107 -1
- package/json-schema/api/CrudOperation.json +10 -1
- package/json-schema/api/CursorMessage.json +133 -1
- package/json-schema/api/CursorPosition.json +106 -1
- package/json-schema/api/DeleteDataRequest.json +18 -1
- package/json-schema/api/DeleteDataResponse.json +23 -1
- package/json-schema/api/DeleteManyDataRequest.json +48 -1
- package/json-schema/api/DeleteManyDataResponse.json +154 -1
- package/json-schema/api/DeleteManyRequest.json +45 -1
- package/json-schema/api/DeleteResponse.json +70 -1
- package/json-schema/api/Discovery.json +126 -1
- package/json-schema/api/DocumentState.json +43 -1
- package/json-schema/api/ETag.json +18 -1
- package/json-schema/api/EditMessage.json +129 -1
- package/json-schema/api/EditOperation.json +102 -1
- package/json-schema/api/EditOperationType.json +8 -1
- package/json-schema/api/EndpointRegistry.json +278 -1
- package/json-schema/api/EnhancedApiError.json +220 -1
- package/json-schema/api/ErrorCategory.json +14 -1
- package/json-schema/api/ErrorMessage.json +38 -1
- package/json-schema/api/ErrorResponse.json +253 -1
- package/json-schema/api/EventFilter.json +59 -1
- package/json-schema/api/EventFilterCondition.json +36 -1
- package/json-schema/api/EventMessage.json +49 -1
- package/json-schema/api/EventPattern.json +6 -1
- package/json-schema/api/EventSubscription.json +99 -1
- package/json-schema/api/ExportRequest.json +854 -1
- package/json-schema/api/FieldError.json +82 -1
- package/json-schema/api/FileUploadResponse.json +117 -0
- package/json-schema/api/FilterOperator.json +18 -1
- package/json-schema/api/FindDataRequest.json +503 -1
- package/json-schema/api/FindDataResponse.json +30 -1
- package/json-schema/api/GeneratedApiDocumentation.json +540 -1
- package/json-schema/api/GeneratedEndpoint.json +82 -1
- package/json-schema/api/GetAnalyticsMetaRequest.json +16 -0
- package/json-schema/api/GetBuildStatusRequest.json +12 -1
- package/json-schema/api/GetDataRequest.json +18 -1
- package/json-schema/api/GetDataResponse.json +24 -1
- package/json-schema/api/GetDiscoveryRequest.json +5 -1
- package/json-schema/api/GetDiscoveryResponse.json +95 -1
- package/json-schema/api/GetMarketplacePluginRequest.json +12 -1
- package/json-schema/api/GetMetaItemCachedRequest.json +71 -1
- package/json-schema/api/GetMetaItemCachedResponse.json +79 -1
- package/json-schema/api/GetMetaItemRequest.json +18 -1
- package/json-schema/api/GetMetaItemResponse.json +21 -1
- package/json-schema/api/GetMetaItemsRequest.json +13 -1
- package/json-schema/api/GetMetaItemsResponse.json +18 -1
- package/json-schema/api/GetMetaTypesRequest.json +5 -1
- package/json-schema/api/GetMetaTypesResponse.json +16 -1
- package/json-schema/api/GetPluginVersionsRequest.json +13 -1
- package/json-schema/api/GetPluginVersionsResponse.json +120 -1
- package/json-schema/api/GetPresignedUrlRequest.json +38 -0
- package/json-schema/api/GetUiViewRequest.json +22 -1
- package/json-schema/api/GetUiViewResponse.json +1622 -1
- package/json-schema/api/GraphQLConfig.json +1394 -1
- package/json-schema/api/GraphQLDataLoaderConfig.json +95 -1
- package/json-schema/api/GraphQLDirectiveConfig.json +102 -1
- package/json-schema/api/GraphQLDirectiveLocation.json +24 -1
- package/json-schema/api/GraphQLMutationConfig.json +174 -1
- package/json-schema/api/GraphQLPersistedQuery.json +145 -1
- package/json-schema/api/GraphQLQueryComplexity.json +77 -1
- package/json-schema/api/GraphQLQueryConfig.json +236 -1
- package/json-schema/api/GraphQLQueryDepthLimit.json +38 -1
- package/json-schema/api/GraphQLRateLimit.json +132 -1
- package/json-schema/api/GraphQLResolverConfig.json +92 -1
- package/json-schema/api/GraphQLScalarType.json +26 -1
- package/json-schema/api/GraphQLSubscriptionConfig.json +112 -1
- package/json-schema/api/GraphQLTypeConfig.json +107 -1
- package/json-schema/api/HttpMethod.json +12 -1
- package/json-schema/api/HttpStatusCode.json +18 -1
- package/json-schema/api/HubHealthResponse.json +125 -1
- package/json-schema/api/HubMetricsResponse.json +162 -1
- package/json-schema/api/IdRequest.json +19 -0
- package/json-schema/api/InstallPluginRequest.json +33 -0
- package/json-schema/api/InstallPluginResponse.json +72 -0
- package/json-schema/api/IssueLicenseRequest.json +40 -1
- package/json-schema/api/LicenseResponse.json +125 -1
- package/json-schema/api/ListLicensesRequest.json +43 -1
- package/json-schema/api/ListLicensesResponse.json +165 -1
- package/json-schema/api/ListMarketplaceRequest.json +43 -1
- package/json-schema/api/ListMarketplaceResponse.json +352 -1
- package/json-schema/api/ListRecordResponse.json +110 -1
- package/json-schema/api/ListSpacesRequest.json +36 -1
- package/json-schema/api/ListSpacesResponse.json +379 -1
- package/json-schema/api/ListTenantsRequest.json +39 -1
- package/json-schema/api/ListTenantsResponse.json +159 -1
- package/json-schema/api/LoginRequest.json +45 -0
- package/json-schema/api/LoginType.json +16 -0
- package/json-schema/api/MarketplacePluginResponse.json +288 -1
- package/json-schema/api/MetadataCacheRequest.json +52 -1
- package/json-schema/api/MetadataCacheResponse.json +79 -1
- package/json-schema/api/MetadataEndpointsConfig.json +48 -1
- package/json-schema/api/ModificationResult.json +55 -1
- package/json-schema/api/ODataConfig.json +126 -1
- package/json-schema/api/ODataError.json +59 -1
- package/json-schema/api/ODataFilterFunction.json +33 -1
- package/json-schema/api/ODataFilterOperator.json +18 -1
- package/json-schema/api/ODataMetadata.json +109 -1
- package/json-schema/api/ODataQuery.json +83 -1
- package/json-schema/api/ODataResponse.json +31 -1
- package/json-schema/api/ObjectDefinitionResponse.json +2755 -0
- package/json-schema/api/ObjectQLReference.json +36 -1
- package/json-schema/api/ObjectStackProtocol.json +5 -1
- package/json-schema/api/OpenApiSecurityScheme.json +60 -1
- package/json-schema/api/OpenApiServer.json +43 -1
- package/json-schema/api/OpenApiSpec.json +296 -1
- package/json-schema/api/PaginationRequest.json +28 -1
- package/json-schema/api/PaginationResponse.json +36 -1
- package/json-schema/api/PingMessage.json +25 -1
- package/json-schema/api/PluginResponse.json +893 -1
- package/json-schema/api/PluginVersionInfo.json +29 -1
- package/json-schema/api/PongMessage.json +30 -1
- package/json-schema/api/Presence.json +34 -1
- package/json-schema/api/PresenceMessage.json +86 -1
- package/json-schema/api/PresenceState.json +59 -1
- package/json-schema/api/PresenceStatus.json +8 -1
- package/json-schema/api/PresenceUpdate.json +29 -1
- package/json-schema/api/PresignedUrlResponse.json +115 -0
- package/json-schema/api/PublishPluginRequest.json +646 -1
- package/json-schema/api/RateLimit.json +21 -1
- package/json-schema/api/RealtimeAction.json +8 -1
- package/json-schema/api/RealtimeConfig.json +84 -1
- package/json-schema/api/RealtimeEvent.json +52 -1
- package/json-schema/api/RealtimeEventType.json +9 -1
- package/json-schema/api/RecordData.json +5 -1
- package/json-schema/api/RefreshTokenRequest.json +19 -0
- package/json-schema/api/RegisterRequest.json +30 -0
- package/json-schema/api/RestApiConfig.json +122 -1
- package/json-schema/api/RestServerConfig.json +403 -1
- package/json-schema/api/RetryStrategy.json +9 -1
- package/json-schema/api/RevokeLicenseRequest.json +15 -1
- package/json-schema/api/RouteCategory.json +11 -1
- package/json-schema/api/RouteDefinition.json +71 -1
- package/json-schema/api/RouteGenerationConfig.json +65 -1
- package/json-schema/api/RouterConfig.json +143 -1
- package/json-schema/api/SchemaDefinition.json +54 -1
- package/json-schema/api/SearchPluginsRequest.json +85 -1
- package/json-schema/api/SearchPluginsResponse.json +933 -1
- package/json-schema/api/Session.json +36 -0
- package/json-schema/api/SessionResponse.json +184 -0
- package/json-schema/api/SessionUser.json +72 -0
- package/json-schema/api/SimpleCursorPosition.json +47 -1
- package/json-schema/api/SimplePresenceState.json +38 -1
- package/json-schema/api/SingleRecordResponse.json +71 -1
- package/json-schema/api/SpaceResponse.json +339 -1
- package/json-schema/api/StandardErrorCode.json +56 -1
- package/json-schema/api/SubscribeMessage.json +126 -1
- package/json-schema/api/Subscription.json +59 -1
- package/json-schema/api/SubscriptionEvent.json +26 -1
- package/json-schema/api/TenantResponse.json +119 -1
- package/json-schema/api/TransportProtocol.json +8 -1
- package/json-schema/api/UnsubscribeMessage.json +41 -1
- package/json-schema/api/UnsubscribeRequest.json +14 -1
- package/json-schema/api/UpdateDataRequest.json +24 -1
- package/json-schema/api/UpdateDataResponse.json +24 -1
- package/json-schema/api/UpdateManyDataRequest.json +64 -1
- package/json-schema/api/UpdateManyDataResponse.json +154 -1
- package/json-schema/api/UpdateManyRequest.json +61 -1
- package/json-schema/api/UpdatePluginRequest.json +640 -1
- package/json-schema/api/UpdateRequest.json +14 -1
- package/json-schema/api/UpdateSpaceRequest.json +232 -1
- package/json-schema/api/UpdateTenantRequest.json +46 -1
- package/json-schema/api/UserProfileResponse.json +138 -0
- package/json-schema/api/ValidateLicenseRequest.json +17 -1
- package/json-schema/api/ValidateLicenseResponse.json +151 -1
- package/json-schema/api/WebSocketConfig.json +57 -1
- package/json-schema/api/WebSocketEvent.json +34 -1
- package/json-schema/api/WebSocketMessage.json +701 -1
- package/json-schema/api/WebSocketMessageType.json +15 -1
- package/json-schema/api/WebSocketPresenceStatus.json +9 -1
- package/json-schema/api/WebSocketServerConfig.json +36 -1
- package/json-schema/automation/ApprovalAction.json +36 -1
- package/json-schema/automation/ApprovalActionType.json +10 -1
- package/json-schema/automation/ApprovalProcess.json +362 -1
- package/json-schema/automation/ApprovalStep.json +155 -1
- package/json-schema/automation/ApproverType.json +10 -1
- package/json-schema/automation/AuthField.json +67 -1
- package/json-schema/automation/Authentication.json +153 -1
- package/json-schema/automation/AuthenticationType.json +12 -1
- package/json-schema/automation/ConflictResolution.json +10 -1
- package/json-schema/automation/Connector.json +434 -1
- package/json-schema/automation/ConnectorActionRef.json +40 -0
- package/json-schema/automation/ConnectorCategory.json +20 -1
- package/json-schema/automation/ConnectorInstance.json +63 -1
- package/json-schema/automation/ConnectorOperation.json +111 -1
- package/json-schema/automation/ConnectorTrigger.json +48 -1
- package/json-schema/automation/CustomScriptAction.json +43 -1
- package/json-schema/automation/DataDestinationConfig.json +189 -1
- package/json-schema/automation/DataSourceConfig.json +28 -1
- package/json-schema/automation/DataSyncConfig.json +455 -1
- package/json-schema/automation/ETLDestination.json +51 -1
- package/json-schema/automation/ETLEndpointType.json +13 -1
- package/json-schema/automation/ETLPipeline.json +246 -1
- package/json-schema/automation/ETLPipelineRun.json +101 -1
- package/json-schema/automation/ETLRunStatus.json +11 -1
- package/json-schema/automation/ETLSource.json +54 -1
- package/json-schema/automation/ETLSyncMode.json +8 -1
- package/json-schema/automation/ETLTransformation.json +40 -1
- package/json-schema/automation/ETLTransformationType.json +15 -1
- package/json-schema/automation/EmailAlertAction.json +31 -1
- package/json-schema/automation/FieldUpdateAction.json +26 -1
- package/json-schema/automation/Flow.json +233 -1
- package/json-schema/automation/FlowEdge.json +40 -1
- package/json-schema/automation/FlowNode.json +82 -1
- package/json-schema/automation/FlowNodeAction.json +19 -1
- package/json-schema/automation/FlowVariable.json +28 -1
- package/json-schema/automation/HttpCallAction.json +46 -1
- package/json-schema/automation/OAuth2Config.json +37 -1
- package/json-schema/automation/OperationParameter.json +53 -1
- package/json-schema/automation/OperationType.json +11 -1
- package/json-schema/automation/PushNotificationAction.json +53 -1
- package/json-schema/automation/SyncDirection.json +8 -1
- package/json-schema/automation/SyncExecutionResult.json +129 -1
- package/json-schema/automation/SyncExecutionStatus.json +11 -1
- package/json-schema/automation/SyncMode.json +8 -1
- package/json-schema/automation/TaskCreationAction.json +53 -1
- package/json-schema/automation/TimeTrigger.json +344 -1
- package/json-schema/automation/Webhook.json +167 -1
- package/json-schema/automation/WebhookReceiver.json +62 -1
- package/json-schema/automation/WebhookTriggerType.json +10 -1
- package/json-schema/automation/WorkflowAction.json +290 -1
- package/json-schema/automation/WorkflowRule.json +688 -1
- package/json-schema/automation/WorkflowTriggerType.json +10 -1
- package/json-schema/data/Address.json +34 -1
- package/json-schema/data/AggregationFunction.json +13 -1
- package/json-schema/data/AggregationNode.json +59 -1
- package/json-schema/data/AggregationPipeline.json +93 -1
- package/json-schema/data/AggregationStage.json +19 -1
- package/json-schema/data/AnalyticsQuery.json +129 -0
- package/json-schema/data/ApiMethod.json +19 -1
- package/json-schema/data/AsyncValidation.json +111 -1
- package/json-schema/data/CDCConfig.json +31 -1
- package/json-schema/data/ComparisonOperator.json +102 -1
- package/json-schema/data/ComputedFieldCache.json +27 -1
- package/json-schema/data/ConditionalValidation.json +1434 -1
- package/json-schema/data/ConsistencyLevel.json +11 -1
- package/json-schema/data/CrossFieldValidation.json +81 -1
- package/json-schema/data/Cube.json +201 -0
- package/json-schema/data/CubeJoin.json +33 -0
- package/json-schema/data/CurrencyConfig.json +29 -1
- package/json-schema/data/CurrencyValue.json +20 -1
- package/json-schema/data/CustomValidator.json +78 -1
- package/json-schema/data/DataEngineAggregateOptions.json +74 -1
- package/json-schema/data/DataEngineAggregateRequest.json +92 -1
- package/json-schema/data/DataEngineBatchRequest.json +693 -1
- package/json-schema/data/DataEngineContract.json +6 -1
- package/json-schema/data/DataEngineCountOptions.json +38 -1
- package/json-schema/data/DataEngineCountRequest.json +55 -1
- package/json-schema/data/DataEngineDeleteOptions.json +42 -1
- package/json-schema/data/DataEngineDeleteRequest.json +62 -1
- package/json-schema/data/DataEngineExecuteRequest.json +18 -1
- package/json-schema/data/DataEngineFilter.json +31 -1
- package/json-schema/data/DataEngineFindOneRequest.json +127 -1
- package/json-schema/data/DataEngineFindRequest.json +127 -1
- package/json-schema/data/DataEngineInsertOptions.json +11 -1
- package/json-schema/data/DataEngineInsertRequest.json +44 -1
- package/json-schema/data/DataEngineQueryOptions.json +110 -1
- package/json-schema/data/DataEngineRequest.json +1366 -1
- package/json-schema/data/DataEngineSort.json +48 -1
- package/json-schema/data/DataEngineUpdateOptions.json +50 -1
- package/json-schema/data/DataEngineUpdateRequest.json +75 -1
- package/json-schema/data/DataEngineVectorFindRequest.json +68 -1
- package/json-schema/data/DataQualityRules.json +39 -1
- package/json-schema/data/DataTypeMapping.json +45 -1
- package/json-schema/data/Dataset.json +57 -1
- package/json-schema/data/DatasetMode.json +10 -1
- package/json-schema/data/Datasource.json +130 -0
- package/json-schema/data/DatasourceCapabilities.json +56 -0
- package/json-schema/data/Dimension.json +60 -0
- package/json-schema/data/DimensionType.json +16 -0
- package/json-schema/data/Document.json +286 -1
- package/json-schema/data/DocumentTemplate.json +72 -1
- package/json-schema/data/DocumentValidationSchema.json +33 -1
- package/json-schema/data/DocumentVersion.json +44 -1
- package/json-schema/data/DriverCapabilities.json +174 -1
- package/json-schema/data/DriverConfig.json +237 -1
- package/json-schema/data/DriverDefinition.json +86 -0
- package/json-schema/data/DriverInterface.json +193 -1
- package/json-schema/data/DriverOptions.json +28 -1
- package/json-schema/{system → data}/DriverType.json +4 -1
- package/json-schema/data/ESignatureConfig.json +68 -1
- package/json-schema/data/EqualityOperator.json +8 -1
- package/json-schema/data/ExternalDataSource.json +62 -1
- package/json-schema/data/ExternalFieldMapping.json +145 -1
- package/json-schema/data/ExternalLookup.json +321 -1
- package/json-schema/data/Field.json +855 -1
- package/json-schema/data/FieldMapping.json +77 -1
- package/json-schema/data/FieldNode.json +26 -1
- package/json-schema/data/FieldOperators.json +180 -1
- package/json-schema/data/FieldReference.json +13 -1
- package/json-schema/data/FieldType.json +49 -1
- package/json-schema/data/FileAttachmentConfig.json +213 -1
- package/json-schema/data/FilterCondition.json +22 -1
- package/json-schema/data/FormatValidation.json +84 -1
- package/json-schema/data/FullTextSearch.json +54 -1
- package/json-schema/data/Hook.json +89 -1
- package/json-schema/data/HookContext.json +82 -1
- package/json-schema/data/HookEvent.json +23 -1
- package/json-schema/data/Index.json +41 -1
- package/json-schema/data/JSONValidation.json +79 -1
- package/json-schema/data/JoinNode.json +488 -1
- package/json-schema/data/JoinStrategy.json +9 -1
- package/json-schema/data/JoinType.json +9 -1
- package/json-schema/data/LocationCoordinates.json +30 -1
- package/json-schema/data/Mapping.json +633 -1
- package/json-schema/data/Metric.json +66 -0
- package/json-schema/data/MetricType.json +20 -0
- package/json-schema/data/NoSQLDataTypeMapping.json +57 -1
- package/json-schema/data/NoSQLDatabaseType.json +13 -1
- package/json-schema/data/NoSQLDriverConfig.json +446 -1
- package/json-schema/data/NoSQLIndex.json +81 -1
- package/json-schema/data/NoSQLIndexType.json +13 -1
- package/json-schema/data/NoSQLOperationType.json +16 -1
- package/json-schema/data/NoSQLQueryOptions.json +55 -1
- package/json-schema/data/NoSQLTransactionOptions.json +41 -1
- package/json-schema/data/NormalizedFilter.json +576 -1
- package/json-schema/data/Object.json +2682 -1
- package/json-schema/data/ObjectCapabilities.json +74 -1
- package/json-schema/data/PartitioningConfig.json +32 -1
- package/json-schema/data/PoolConfig.json +30 -1
- package/json-schema/data/Query.json +489 -1
- package/json-schema/data/QueryFilter.json +28 -1
- package/json-schema/data/RangeOperator.json +61 -1
- package/json-schema/data/ReplicationConfig.json +40 -1
- package/json-schema/data/SQLDialect.json +11 -1
- package/json-schema/data/SQLDriverConfig.json +319 -1
- package/json-schema/data/SSLConfig.json +23 -1
- package/json-schema/data/ScriptValidation.json +73 -1
- package/json-schema/data/SearchConfig.json +30 -1
- package/json-schema/data/SelectOption.json +28 -1
- package/json-schema/data/SetOperator.json +12 -1
- package/json-schema/data/ShardingConfig.json +29 -1
- package/json-schema/data/SoftDeleteConfig.json +23 -1
- package/json-schema/data/SortNode.json +20 -1
- package/json-schema/data/SpecialOperator.json +12 -1
- package/json-schema/data/StateMachineValidation.json +84 -1
- package/json-schema/data/StringOperator.json +15 -1
- package/json-schema/data/TenancyConfig.json +33 -1
- package/json-schema/data/TimeUpdateInterval.json +19 -0
- package/json-schema/data/TransformType.json +12 -1
- package/json-schema/data/UniquenessValidation.json +84 -1
- package/json-schema/data/ValidationRule.json +1435 -1
- package/json-schema/data/VectorConfig.json +45 -1
- package/json-schema/data/VersioningConfig.json +33 -1
- package/json-schema/data/WindowFunction.json +18 -1
- package/json-schema/data/WindowFunctionNode.json +98 -1
- package/json-schema/data/WindowSpec.json +59 -1
- package/json-schema/hub/BillOfMaterials.json +64 -1
- package/json-schema/hub/ComposerRequest.json +80 -1
- package/json-schema/hub/ComposerResponse.json +1514 -1
- package/json-schema/hub/ConflictReport.json +47 -1
- package/json-schema/hub/DatabaseLevelIsolationStrategy.json +133 -1
- package/json-schema/hub/DependencyConflict.json +72 -1
- package/json-schema/hub/DependencyGraph.json +161 -1
- package/json-schema/hub/DependencyGraphNode.json +81 -1
- package/json-schema/hub/DependencyRequirement.json +30 -1
- package/json-schema/hub/DependencyResolutionResult.json +285 -1
- package/json-schema/hub/DeploymentTarget.json +32 -1
- package/json-schema/hub/EdgeLocation.json +93 -1
- package/json-schema/hub/Feature.json +45 -1
- package/json-schema/hub/FederationTopology.json +406 -1
- package/json-schema/hub/GlobalRegistryEntry.json +60 -1
- package/json-schema/hub/HubInstance.json +115 -1
- package/json-schema/hub/HubSpace.json +273 -1
- package/json-schema/hub/LevelIsolationStrategySchema.json +87 -1
- package/json-schema/hub/License.json +59 -1
- package/json-schema/hub/MarketplacePlugin.json +222 -1
- package/json-schema/hub/MetricType.json +8 -1
- package/json-schema/hub/PackageDependency.json +30 -1
- package/json-schema/hub/Plan.json +47 -1
- package/json-schema/hub/PluginAuthor.json +41 -1
- package/json-schema/hub/PluginInstallConfig.json +47 -1
- package/json-schema/hub/PluginPricing.json +37 -1
- package/json-schema/hub/PluginProvenance.json +192 -1
- package/json-schema/hub/PluginQualityMetrics.json +95 -1
- package/json-schema/hub/PluginRegistryEntry.json +827 -1
- package/json-schema/hub/PluginSearchFilters.json +85 -1
- package/json-schema/hub/PluginStatistics.json +78 -1
- package/json-schema/hub/PluginTrustScore.json +88 -1
- package/json-schema/hub/PluginVendor.json +41 -1
- package/json-schema/hub/PluginVersion.json +63 -0
- package/json-schema/hub/Region.json +175 -1
- package/json-schema/hub/RegistryConfig.json +239 -0
- package/json-schema/hub/RegistrySyncPolicy.json +15 -0
- package/json-schema/hub/RegistryUpstream.json +110 -0
- package/json-schema/hub/ReplicationJob.json +134 -1
- package/json-schema/hub/RowLevelIsolationStrategy.json +68 -1
- package/json-schema/hub/SBOM.json +144 -1
- package/json-schema/hub/SBOMEntry.json +78 -1
- package/json-schema/hub/SecurityPolicy.json +140 -1
- package/json-schema/hub/SecurityScanResult.json +303 -1
- package/json-schema/hub/SecurityVulnerability.json +112 -1
- package/json-schema/hub/SpaceSubscription.json +71 -1
- package/json-schema/hub/SubscriptionStatus.json +10 -1
- package/json-schema/hub/Tenant.json +53 -1
- package/json-schema/hub/TenantIsolationConfig.json +292 -1
- package/json-schema/hub/TenantIsolationLevel.json +8 -1
- package/json-schema/hub/TenantPlacementPolicy.json +92 -1
- package/json-schema/hub/TenantQuota.json +21 -1
- package/json-schema/hub/TenantSecurityPolicy.json +109 -1
- package/json-schema/hub/VulnerabilitySeverity.json +10 -1
- package/json-schema/identity/Account.json +87 -0
- package/json-schema/identity/Invitation.json +69 -0
- package/json-schema/identity/InvitationStatus.json +15 -0
- package/json-schema/identity/Member.json +46 -0
- package/json-schema/identity/Organization.json +52 -0
- package/json-schema/identity/Role.json +33 -0
- package/json-schema/identity/SCIMAddress.json +50 -0
- package/json-schema/identity/SCIMEmail.json +38 -0
- package/json-schema/identity/SCIMEnterpriseUser.json +55 -0
- package/json-schema/identity/SCIMError.json +52 -0
- package/json-schema/identity/SCIMGroup.json +102 -0
- package/json-schema/identity/SCIMGroupReference.json +36 -0
- package/json-schema/identity/SCIMListResponse.json +606 -0
- package/json-schema/identity/SCIMMemberReference.json +36 -0
- package/json-schema/identity/SCIMMeta.json +35 -0
- package/json-schema/identity/SCIMName.json +36 -0
- package/json-schema/identity/SCIMPatchOperation.json +31 -0
- package/json-schema/identity/SCIMPatchRequest.json +56 -0
- package/json-schema/identity/SCIMPhoneNumber.json +40 -0
- package/json-schema/identity/SCIMUser.json +462 -0
- package/json-schema/identity/Session.json +63 -0
- package/json-schema/identity/User.json +51 -0
- package/json-schema/identity/VerificationToken.json +36 -0
- package/json-schema/integration/AckMode.json +9 -1
- package/json-schema/integration/ApiVersionConfig.json +26 -1
- package/json-schema/integration/Authentication.json +140 -1
- package/json-schema/integration/BuildConfig.json +33 -1
- package/json-schema/integration/CdcConfig.json +49 -1
- package/json-schema/integration/ConflictResolution.json +10 -1
- package/json-schema/integration/Connector.json +861 -1
- package/json-schema/integration/ConnectorAction.json +37 -0
- package/json-schema/integration/ConnectorStatus.json +10 -1
- package/json-schema/integration/ConnectorTrigger.json +40 -0
- package/json-schema/integration/ConnectorType.json +12 -1
- package/json-schema/integration/ConsumerConfig.json +61 -1
- package/json-schema/integration/DataSyncConfig.json +73 -1
- package/json-schema/integration/DatabaseConnector.json +1314 -1
- package/json-schema/integration/DatabasePoolConfig.json +47 -1
- package/json-schema/integration/DatabaseProvider.json +18 -1
- package/json-schema/integration/DatabaseTable.json +210 -1
- package/json-schema/integration/DeliveryGuarantee.json +9 -1
- package/json-schema/integration/DeploymentConfig.json +71 -1
- package/json-schema/integration/DlqConfig.json +31 -1
- package/json-schema/integration/DomainConfig.json +45 -1
- package/json-schema/integration/EdgeFunctionConfig.json +39 -1
- package/json-schema/integration/EnvironmentVariables.json +40 -1
- package/json-schema/integration/FieldMapping.json +164 -1
- package/json-schema/integration/FieldTransform.json +30 -1
- package/json-schema/integration/FileAccessPattern.json +11 -1
- package/json-schema/integration/FileFilterConfig.json +44 -1
- package/json-schema/integration/FileMetadataConfig.json +35 -1
- package/json-schema/integration/FileStorageConnector.json +1182 -1
- package/json-schema/integration/FileStorageProvider.json +17 -1
- package/json-schema/integration/FileVersioningConfig.json +22 -1
- package/json-schema/integration/GitHubActionsWorkflow.json +52 -1
- package/json-schema/integration/GitHubCommitConfig.json +29 -1
- package/json-schema/integration/GitHubConnector.json +1189 -1
- package/json-schema/integration/GitHubIssueTracking.json +55 -1
- package/json-schema/integration/GitHubProvider.json +8 -1
- package/json-schema/integration/GitHubPullRequestConfig.json +45 -1
- package/json-schema/integration/GitHubReleaseConfig.json +34 -1
- package/json-schema/integration/GitHubRepository.json +68 -1
- package/json-schema/integration/GitRepositoryConfig.json +38 -1
- package/json-schema/integration/MessageFormat.json +12 -1
- package/json-schema/integration/MessageQueueConnector.json +1267 -1
- package/json-schema/integration/MessageQueueProvider.json +19 -1
- package/json-schema/integration/MultipartUploadConfig.json +30 -1
- package/json-schema/integration/ProducerConfig.json +66 -1
- package/json-schema/integration/RateLimitConfig.json +63 -1
- package/json-schema/integration/RateLimitStrategy.json +10 -1
- package/json-schema/integration/RetryConfig.json +67 -1
- package/json-schema/integration/RetryStrategy.json +10 -1
- package/json-schema/integration/SaasConnector.json +1209 -1
- package/json-schema/integration/SaasObjectType.json +212 -1
- package/json-schema/integration/SaasProvider.json +18 -1
- package/json-schema/integration/SslConfig.json +28 -1
- package/json-schema/integration/StorageBucket.json +93 -1
- package/json-schema/integration/SyncStrategy.json +10 -1
- package/json-schema/integration/TopicQueue.json +246 -1
- package/json-schema/integration/VercelConnector.json +1286 -1
- package/json-schema/integration/VercelFramework.json +18 -1
- package/json-schema/integration/VercelMonitoring.json +58 -1
- package/json-schema/integration/VercelProject.json +316 -1
- package/json-schema/integration/VercelProvider.json +7 -1
- package/json-schema/integration/VercelTeam.json +14 -1
- package/json-schema/integration/WebhookConfig.json +195 -1
- package/json-schema/integration/WebhookEvent.json +14 -1
- package/json-schema/integration/WebhookSignatureAlgorithm.json +9 -1
- package/json-schema/kernel/AdvancedPluginLifecycleConfig.json +424 -0
- package/json-schema/kernel/BreakingChange.json +63 -0
- package/json-schema/kernel/CapabilityConformanceLevel.json +16 -0
- package/json-schema/kernel/CompatibilityLevel.json +17 -0
- package/json-schema/kernel/CompatibilityMatrixEntry.json +123 -0
- package/json-schema/kernel/DeadLetterQueueEntry.json +137 -0
- package/json-schema/kernel/DependencyConflict.json +102 -0
- package/json-schema/kernel/DependencyResolutionResult.json +163 -0
- package/json-schema/kernel/DeprecationNotice.json +38 -0
- package/json-schema/kernel/DistributedStateConfig.json +78 -0
- package/json-schema/kernel/Event.json +77 -0
- package/json-schema/kernel/EventBusConfig.json +552 -0
- package/json-schema/kernel/EventHandler.json +63 -0
- package/json-schema/kernel/EventLogEntry.json +153 -0
- package/json-schema/kernel/EventMessageQueueConfig.json +79 -0
- package/json-schema/kernel/EventMetadata.json +53 -0
- package/json-schema/kernel/EventPersistence.json +36 -0
- package/json-schema/kernel/EventPhase.json +15 -0
- package/json-schema/kernel/EventPriority.json +16 -0
- package/json-schema/kernel/EventQueueConfig.json +67 -0
- package/json-schema/kernel/EventReplayConfig.json +50 -0
- package/json-schema/kernel/EventRoute.json +27 -0
- package/json-schema/kernel/EventSourcingConfig.json +65 -0
- package/json-schema/kernel/EventTypeDefinition.json +45 -0
- package/json-schema/kernel/EventWebhookConfig.json +119 -0
- package/json-schema/kernel/ExtensionPoint.json +67 -0
- package/json-schema/kernel/FeatureFlag.json +87 -0
- package/json-schema/kernel/FeatureStrategy.json +16 -0
- package/json-schema/kernel/GracefulDegradation.json +87 -0
- package/json-schema/kernel/HealthStatus.json +33 -0
- package/json-schema/kernel/HookRegisteredEvent.json +30 -0
- package/json-schema/kernel/HookTriggeredEvent.json +34 -0
- package/json-schema/kernel/HotReloadConfig.json +138 -0
- package/json-schema/kernel/KernelContext.json +62 -0
- package/json-schema/kernel/KernelEventBase.json +19 -0
- package/json-schema/kernel/KernelReadyEvent.json +29 -0
- package/json-schema/kernel/KernelShutdownEvent.json +23 -0
- package/json-schema/kernel/Manifest.json +1432 -0
- package/json-schema/kernel/MetadataCollectionInfo.json +53 -0
- package/json-schema/kernel/MetadataExportOptions.json +49 -0
- package/json-schema/kernel/MetadataFormat.json +15 -0
- package/json-schema/kernel/MetadataImportOptions.json +42 -0
- package/json-schema/kernel/MetadataLoadOptions.json +52 -0
- package/json-schema/kernel/MetadataLoadResult.json +86 -0
- package/json-schema/kernel/MetadataLoaderContract.json +48 -0
- package/json-schema/kernel/MetadataManagerConfig.json +108 -0
- package/json-schema/kernel/MetadataSaveOptions.json +64 -0
- package/json-schema/kernel/MetadataSaveResult.json +42 -0
- package/json-schema/kernel/MetadataStats.json +51 -0
- package/json-schema/kernel/MetadataWatchEvent.json +48 -0
- package/json-schema/kernel/MultiVersionSupport.json +91 -0
- package/json-schema/kernel/OpsDomainModule.json +26 -0
- package/json-schema/kernel/OpsFilePath.json +9 -0
- package/json-schema/kernel/OpsPluginStructure.json +26 -0
- package/json-schema/kernel/Permission.json +110 -0
- package/json-schema/kernel/PermissionAction.json +23 -0
- package/json-schema/kernel/PermissionScope.json +17 -0
- package/json-schema/kernel/PermissionSet.json +160 -0
- package/json-schema/kernel/Plugin.json +32 -0
- package/json-schema/kernel/PluginCaching.json +77 -0
- package/json-schema/kernel/PluginCapability.json +127 -0
- package/json-schema/kernel/PluginCapabilityManifest.json +410 -0
- package/json-schema/kernel/PluginCodeSplitting.json +56 -0
- package/json-schema/kernel/PluginCompatibilityMatrix.json +177 -0
- package/json-schema/kernel/PluginContext.json +82 -0
- package/json-schema/kernel/PluginDependency.json +39 -0
- package/json-schema/kernel/PluginDependencyResolution.json +88 -0
- package/json-schema/kernel/PluginDynamicImport.json +69 -0
- package/json-schema/kernel/PluginErrorEvent.json +46 -0
- package/json-schema/kernel/PluginEventBase.json +24 -0
- package/json-schema/kernel/PluginHealthCheck.json +61 -0
- package/json-schema/kernel/PluginHealthReport.json +128 -0
- package/json-schema/kernel/PluginHealthStatus.json +18 -0
- package/json-schema/kernel/PluginHotReload.json +80 -0
- package/json-schema/kernel/PluginInitialization.json +64 -0
- package/json-schema/kernel/PluginInterface.json +141 -0
- package/json-schema/{system → kernel}/PluginLifecycle.json +5 -1
- package/json-schema/kernel/PluginLifecycleEventType.json +31 -0
- package/json-schema/kernel/PluginLifecyclePhaseEvent.json +38 -0
- package/json-schema/kernel/PluginLoadingConfig.json +635 -0
- package/json-schema/kernel/PluginLoadingEvent.json +67 -0
- package/json-schema/kernel/PluginLoadingState.json +54 -0
- package/json-schema/kernel/PluginLoadingStrategy.json +17 -0
- package/json-schema/kernel/PluginMetadata.json +37 -0
- package/json-schema/kernel/PluginPerformanceMonitoring.json +70 -0
- package/json-schema/kernel/PluginPreloadConfig.json +73 -0
- package/json-schema/kernel/PluginRegisteredEvent.json +28 -0
- package/json-schema/kernel/PluginSandboxing.json +87 -0
- package/json-schema/kernel/PluginSecurityManifest.json +1189 -0
- package/json-schema/kernel/PluginStartupResult.json +73 -0
- package/json-schema/kernel/PluginStateSnapshot.json +50 -0
- package/json-schema/kernel/PluginTrustLevel.json +17 -0
- package/json-schema/kernel/PluginUpdateStrategy.json +102 -0
- package/json-schema/kernel/PluginVersionMetadata.json +362 -0
- package/json-schema/kernel/ProtocolFeature.json +34 -0
- package/json-schema/kernel/ProtocolReference.json +56 -0
- package/json-schema/kernel/ProtocolVersion.json +30 -0
- package/json-schema/kernel/RealTimeNotificationConfig.json +85 -0
- package/json-schema/kernel/ResourceType.json +28 -0
- package/json-schema/kernel/RuntimeConfig.json +138 -0
- package/json-schema/kernel/RuntimeMode.json +16 -0
- package/json-schema/kernel/SandboxConfig.json +312 -0
- package/json-schema/kernel/ScopeConfig.json +28 -0
- package/json-schema/kernel/ScopeInfo.json +39 -0
- package/json-schema/kernel/SecurityPolicy.json +172 -0
- package/json-schema/kernel/SecurityScanResult.json +352 -0
- package/json-schema/kernel/SecurityVulnerability.json +92 -0
- package/json-schema/kernel/SemanticVersion.json +41 -0
- package/json-schema/kernel/ServiceFactoryRegistration.json +44 -0
- package/json-schema/kernel/ServiceMetadata.json +43 -0
- package/json-schema/kernel/ServiceRegisteredEvent.json +28 -0
- package/json-schema/kernel/ServiceRegistryConfig.json +39 -0
- package/json-schema/kernel/ServiceScopeType.json +15 -0
- package/json-schema/kernel/ServiceUnregisteredEvent.json +24 -0
- package/json-schema/kernel/StartupOptions.json +36 -0
- package/json-schema/kernel/StartupOrchestrationResult.json +104 -0
- package/json-schema/kernel/ValidationError.json +28 -0
- package/json-schema/kernel/ValidationResult.json +71 -0
- package/json-schema/kernel/ValidationWarning.json +28 -0
- package/json-schema/kernel/VersionConstraint.json +60 -0
- package/json-schema/qa/TestAction.json +36 -1
- package/json-schema/qa/TestActionType.json +13 -1
- package/json-schema/qa/TestAssertion.json +31 -1
- package/json-schema/qa/TestAssertionType.json +16 -1
- package/json-schema/qa/TestContext.json +5 -1
- package/json-schema/qa/TestScenario.json +335 -1
- package/json-schema/qa/TestStep.json +93 -1
- package/json-schema/qa/TestSuite.json +351 -1
- package/json-schema/security/AuditPolicy.json +31 -0
- package/json-schema/security/CriteriaSharingRule.json +82 -0
- package/json-schema/security/FieldPermission.json +22 -0
- package/json-schema/security/NetworkPolicy.json +31 -0
- package/json-schema/security/OWDModel.json +15 -0
- package/json-schema/security/ObjectPermission.json +57 -0
- package/json-schema/security/OwnerSharingRule.json +102 -0
- package/json-schema/security/PasswordPolicy.json +41 -0
- package/json-schema/security/PermissionSet.json +193 -0
- package/json-schema/security/Policy.json +138 -0
- package/json-schema/security/RLSConfig.json +59 -0
- package/json-schema/security/RLSEvaluationResult.json +40 -0
- package/json-schema/security/RLSOperation.json +16 -0
- package/json-schema/security/RLSUserContext.json +51 -0
- package/json-schema/security/RowLevelSecurityPolicy.json +77 -0
- package/json-schema/security/SessionPolicy.json +27 -0
- package/json-schema/security/ShareRecipientType.json +16 -0
- package/json-schema/security/SharingLevel.json +14 -0
- package/json-schema/security/SharingRule.json +182 -0
- package/json-schema/{permission → security}/SharingRuleType.json +7 -1
- package/json-schema/security/Territory.json +79 -0
- package/json-schema/security/TerritoryModel.json +34 -0
- package/json-schema/security/TerritoryType.json +15 -0
- package/json-schema/shared/CorsConfig.json +51 -1
- package/json-schema/shared/EventName.json +6 -1
- package/json-schema/shared/FieldMapping.json +136 -1
- package/json-schema/shared/HttpMethod.json +12 -1
- package/json-schema/shared/RateLimitConfig.json +21 -1
- package/json-schema/shared/SnakeCaseIdentifier.json +6 -1
- package/json-schema/shared/StaticMount.json +22 -1
- package/json-schema/shared/SystemIdentifier.json +6 -1
- package/json-schema/shared/TransformType.json +114 -1
- package/json-schema/system/AccessControlConfig.json +100 -1
- package/json-schema/system/AddFieldOperation.json +877 -1
- package/json-schema/system/AnalyzerConfig.json +35 -1
- package/json-schema/system/AuditConfig.json +580 -1
- package/json-schema/system/AuditEvent.json +226 -1
- package/json-schema/system/AuditEventActor.json +42 -1
- package/json-schema/system/AuditEventChange.json +19 -1
- package/json-schema/system/AuditEventFilter.json +121 -1
- package/json-schema/system/AuditEventSeverity.json +13 -1
- package/json-schema/system/AuditEventTarget.json +27 -1
- package/json-schema/system/AuditEventType.json +47 -1
- package/json-schema/system/AuditLogConfig.json +42 -1
- package/json-schema/system/AuditRetentionPolicy.json +67 -1
- package/json-schema/system/AuditStorageConfig.json +54 -1
- package/json-schema/system/AuthConfig.json +100 -0
- package/json-schema/system/AuthPluginConfig.json +32 -0
- package/json-schema/system/AuthProviderConfig.json +36 -0
- package/json-schema/system/AwarenessEvent.json +45 -1
- package/json-schema/system/AwarenessSession.json +111 -1
- package/json-schema/system/AwarenessUpdate.json +29 -1
- package/json-schema/system/AwarenessUserState.json +71 -1
- package/json-schema/system/BatchProgress.json +66 -1
- package/json-schema/system/BatchTask.json +57 -1
- package/json-schema/system/BucketConfig.json +326 -1
- package/json-schema/system/CRDTMergeResult.json +289 -1
- package/json-schema/system/CRDTState.json +252 -1
- package/json-schema/system/CRDTType.json +14 -1
- package/json-schema/system/CacheConfig.json +115 -1
- package/json-schema/system/CacheInvalidation.json +37 -1
- package/json-schema/system/CacheStrategy.json +10 -1
- package/json-schema/system/CacheTier.json +46 -1
- package/json-schema/system/ChangeImpact.json +49 -1
- package/json-schema/system/ChangePriority.json +9 -1
- package/json-schema/system/ChangeRequest.json +307 -1
- package/json-schema/system/ChangeSet.json +7418 -1
- package/json-schema/system/ChangeStatus.json +15 -1
- package/json-schema/system/ChangeType.json +9 -1
- package/json-schema/system/CollaborationMode.json +9 -1
- package/json-schema/system/CollaborationSession.json +569 -1
- package/json-schema/system/CollaborationSessionConfig.json +80 -1
- package/json-schema/system/CollaborativeCursor.json +183 -1
- package/json-schema/system/ComplianceConfig.json +196 -1
- package/json-schema/system/ConsoleDestinationConfig.json +23 -1
- package/json-schema/system/ConsumerConfig.json +28 -1
- package/json-schema/system/CoreServiceName.json +25 -0
- package/json-schema/system/CounterOperation.json +24 -1
- package/json-schema/system/CreateObjectOperation.json +2696 -1
- package/json-schema/system/CronSchedule.json +23 -1
- package/json-schema/system/CursorColorPreset.json +15 -1
- package/json-schema/system/CursorSelection.json +60 -1
- package/json-schema/system/CursorStyle.json +53 -1
- package/json-schema/system/CursorUpdate.json +95 -1
- package/json-schema/system/DeadLetterQueue.json +20 -1
- package/json-schema/system/DeleteObjectOperation.json +17 -1
- package/json-schema/system/EmailTemplate.json +63 -1
- package/json-schema/system/EncryptionAlgorithm.json +8 -1
- package/json-schema/system/EncryptionConfig.json +87 -1
- package/json-schema/system/ExecuteSqlOperation.json +20 -1
- package/json-schema/system/ExtendedLogLevel.json +12 -1
- package/json-schema/system/ExternalServiceDestinationConfig.json +45 -1
- package/json-schema/system/FacetConfig.json +24 -1
- package/json-schema/system/FieldEncryption.json +104 -1
- package/json-schema/system/FileDestinationConfig.json +50 -1
- package/json-schema/system/FileMetadata.json +44 -1
- package/json-schema/system/GCounter.json +22 -1
- package/json-schema/system/GDPRConfig.json +65 -1
- package/json-schema/system/HIPAAConfig.json +39 -1
- package/json-schema/system/HistogramBucketConfig.json +86 -1
- package/json-schema/system/HttpDestinationConfig.json +105 -1
- package/json-schema/system/HttpServerConfig.json +150 -1
- package/json-schema/system/InAppNotification.json +42 -1
- package/json-schema/system/IntervalSchedule.json +19 -1
- package/json-schema/system/Job.json +126 -1
- package/json-schema/system/JobExecution.json +43 -1
- package/json-schema/system/JobExecutionStatus.json +9 -1
- package/json-schema/system/KernelServiceMap.json +30 -0
- package/json-schema/system/KeyManagementProvider.json +10 -1
- package/json-schema/system/KeyRotationPolicy.json +23 -1
- package/json-schema/system/LWWRegister.json +45 -1
- package/json-schema/system/LifecycleAction.json +9 -1
- package/json-schema/system/LifecyclePolicyConfig.json +78 -1
- package/json-schema/system/LifecyclePolicyRule.json +62 -1
- package/json-schema/system/Locale.json +4 -1
- package/json-schema/system/LogDestination.json +289 -1
- package/json-schema/system/LogDestinationType.json +20 -1
- package/json-schema/system/LogEnrichmentConfig.json +53 -1
- package/json-schema/system/LogEntry.json +58 -1
- package/json-schema/system/LogFormat.json +9 -1
- package/json-schema/system/LogLevel.json +12 -1
- package/json-schema/system/LoggerConfig.json +69 -1
- package/json-schema/system/LoggingConfig.json +608 -1
- package/json-schema/system/MaskingConfig.json +71 -1
- package/json-schema/system/MaskingRule.json +51 -1
- package/json-schema/system/MaskingStrategy.json +12 -1
- package/json-schema/system/MessageQueueConfig.json +137 -1
- package/json-schema/system/MessageQueueProvider.json +11 -1
- package/json-schema/system/MetadataCollectionInfo.json +23 -1
- package/json-schema/system/MetadataExportOptions.json +38 -1
- package/json-schema/system/MetadataFormat.json +12 -1
- package/json-schema/system/MetadataImportOptions.json +26 -1
- package/json-schema/system/MetadataLoadOptions.json +45 -1
- package/json-schema/system/MetadataLoadResult.json +72 -1
- package/json-schema/system/MetadataLoaderContract.json +57 -1
- package/json-schema/system/MetadataManagerConfig.json +37 -1
- package/json-schema/system/MetadataRecord.json +83 -0
- package/json-schema/system/MetadataSaveOptions.json +44 -1
- package/json-schema/system/MetadataSaveResult.json +65 -1
- package/json-schema/system/MetadataScope.json +14 -0
- package/json-schema/system/MetadataState.json +15 -0
- package/json-schema/system/MetadataStats.json +38 -1
- package/json-schema/system/MetadataWatchEvent.json +73 -1
- package/json-schema/system/MetricAggregationConfig.json +63 -1
- package/json-schema/system/MetricAggregationType.json +19 -1
- package/json-schema/system/MetricDataPoint.json +129 -1
- package/json-schema/system/MetricDefinition.json +187 -1
- package/json-schema/system/MetricExportConfig.json +87 -1
- package/json-schema/system/MetricLabels.json +7 -1
- package/json-schema/system/MetricType.json +10 -1
- package/json-schema/system/MetricUnit.json +26 -1
- package/json-schema/system/MetricsConfig.json +712 -1
- package/json-schema/system/MiddlewareConfig.json +64 -1
- package/json-schema/system/MiddlewareType.json +12 -1
- package/json-schema/system/MigrationDependency.json +15 -1
- package/json-schema/system/MigrationOperation.json +3682 -1
- package/json-schema/system/ModifyFieldOperation.json +26 -1
- package/json-schema/system/MultipartUploadConfig.json +43 -1
- package/json-schema/system/NotificationChannel.json +12 -1
- package/json-schema/system/NotificationConfig.json +337 -1
- package/json-schema/system/ORSet.json +51 -1
- package/json-schema/system/ORSetElement.json +33 -1
- package/json-schema/system/OTComponent.json +70 -1
- package/json-schema/system/OTOperation.json +122 -1
- package/json-schema/system/OTOperationType.json +8 -1
- package/json-schema/system/OTTransformResult.json +144 -1
- package/json-schema/system/ObjectMetadata.json +84 -1
- package/json-schema/system/ObjectStorageConfig.json +469 -1
- package/json-schema/system/OnceSchedule.json +19 -1
- package/json-schema/system/OpenTelemetryCompatibility.json +190 -1
- package/json-schema/system/OtelExporterType.json +16 -1
- package/json-schema/system/PCIDSSConfig.json +41 -1
- package/json-schema/system/PNCounter.json +31 -1
- package/json-schema/system/PresignedUrlConfig.json +43 -1
- package/json-schema/system/PushNotification.json +54 -1
- package/json-schema/system/QueueConfig.json +127 -1
- package/json-schema/system/RemoveFieldOperation.json +21 -1
- package/json-schema/system/RenameObjectOperation.json +21 -1
- package/json-schema/system/RetryPolicy.json +24 -1
- package/json-schema/system/RollbackPlan.json +45 -1
- package/json-schema/system/RouteHandlerMetadata.json +79 -1
- package/json-schema/system/SMSTemplate.json +30 -1
- package/json-schema/system/SamplingDecision.json +9 -1
- package/json-schema/system/SamplingStrategyType.json +14 -1
- package/json-schema/system/Schedule.json +65 -1
- package/json-schema/system/SearchConfig.json +189 -1
- package/json-schema/system/SearchIndexConfig.json +72 -1
- package/json-schema/system/SearchProvider.json +10 -1
- package/json-schema/system/ServerCapabilities.json +57 -1
- package/json-schema/system/ServerEvent.json +33 -1
- package/json-schema/system/ServerEventType.json +12 -1
- package/json-schema/system/ServerStatus.json +87 -1
- package/json-schema/system/ServiceConfig.json +42 -0
- package/json-schema/system/ServiceCriticality.json +14 -0
- package/json-schema/system/ServiceLevelIndicator.json +99 -1
- package/json-schema/system/ServiceLevelObjective.json +164 -1
- package/json-schema/system/ServiceStatus.json +62 -0
- package/json-schema/system/Span.json +381 -1
- package/json-schema/system/SpanAttributeValue.json +32 -1
- package/json-schema/system/SpanAttributes.json +36 -1
- package/json-schema/system/SpanEvent.json +56 -1
- package/json-schema/system/SpanKind.json +11 -1
- package/json-schema/system/SpanLink.json +104 -1
- package/json-schema/system/SpanStatus.json +9 -1
- package/json-schema/system/StorageAcl.json +12 -1
- package/json-schema/system/StorageClass.json +11 -1
- package/json-schema/system/StorageConnection.json +56 -1
- package/json-schema/system/StorageProvider.json +15 -1
- package/json-schema/system/StorageScope.json +16 -1
- package/json-schema/system/StructuredLogEntry.json +185 -1
- package/json-schema/system/SuspiciousActivityRule.json +169 -1
- package/json-schema/system/Task.json +139 -1
- package/json-schema/system/TaskExecutionResult.json +79 -1
- package/json-schema/system/TaskPriority.json +10 -1
- package/json-schema/system/TaskRetryPolicy.json +40 -1
- package/json-schema/system/TaskStatus.json +13 -1
- package/json-schema/system/TextCRDTOperation.json +46 -1
- package/json-schema/system/TextCRDTState.json +99 -1
- package/json-schema/system/TimeSeries.json +63 -1
- package/json-schema/system/TimeSeriesDataPoint.json +27 -1
- package/json-schema/system/TopicConfig.json +33 -1
- package/json-schema/system/TraceContext.json +58 -1
- package/json-schema/system/TraceContextPropagation.json +73 -1
- package/json-schema/system/TraceFlags.json +6 -1
- package/json-schema/system/TracePropagationFormat.json +13 -1
- package/json-schema/system/TraceSamplingConfig.json +180 -1
- package/json-schema/system/TraceState.json +17 -1
- package/json-schema/system/TracingConfig.json +533 -1
- package/json-schema/system/TranslationBundle.json +72 -1
- package/json-schema/system/TranslationData.json +69 -1
- package/json-schema/system/UserActivityStatus.json +9 -1
- package/json-schema/system/VectorClock.json +17 -1
- package/json-schema/system/WorkerConfig.json +182 -1
- package/json-schema/system/WorkerStats.json +84 -1
- package/json-schema/ui/Action.json +180 -1
- package/json-schema/ui/ActionParam.json +89 -1
- package/json-schema/ui/Animation.json +50 -1
- package/json-schema/ui/App.json +307 -1
- package/json-schema/ui/AppBranding.json +18 -1
- package/json-schema/ui/BorderRadius.json +38 -1
- package/json-schema/ui/Breakpoints.json +30 -1
- package/json-schema/ui/CalendarConfig.json +22 -1
- package/json-schema/ui/ChartAnnotation.json +60 -0
- package/json-schema/ui/ChartAxis.json +57 -0
- package/json-schema/ui/ChartConfig.json +353 -1
- package/json-schema/ui/ChartInteraction.json +28 -0
- package/json-schema/ui/ChartSeries.json +84 -0
- package/json-schema/ui/ChartType.json +43 -1
- package/json-schema/ui/ColorPalette.json +77 -1
- package/json-schema/ui/Dashboard.json +515 -1
- package/json-schema/ui/DashboardNavItem.json +38 -1
- package/json-schema/ui/DashboardWidget.json +487 -1
- package/json-schema/ui/FieldWidgetProps.json +892 -1
- package/json-schema/ui/FormField.json +55 -1
- package/json-schema/ui/FormSection.json +95 -1
- package/json-schema/ui/FormView.json +351 -1
- package/json-schema/ui/GanttConfig.json +26 -1
- package/json-schema/ui/GroupNavItem.json +38 -1
- package/json-schema/ui/HttpMethod.json +10 -1
- package/json-schema/ui/HttpRequest.json +40 -1
- package/json-schema/ui/KanbanConfig.json +25 -1
- package/json-schema/ui/ListColumn.json +59 -1
- package/json-schema/ui/ListView.json +453 -1
- package/json-schema/ui/NavigationConfig.json +46 -0
- package/json-schema/ui/NavigationItem.json +223 -1
- package/json-schema/ui/NavigationMode.json +18 -0
- package/json-schema/ui/ObjectNavItem.json +42 -1
- package/json-schema/ui/Page.json +190 -1
- package/json-schema/ui/PageCardProps.json +27 -1
- package/json-schema/ui/PageComponent.json +78 -1
- package/json-schema/ui/PageComponentType.json +26 -1
- package/json-schema/ui/PageHeaderProps.json +33 -1
- package/json-schema/ui/PageNavItem.json +43 -1
- package/json-schema/ui/PageRegion.json +105 -1
- package/json-schema/ui/PageTabsProps.json +49 -1
- package/json-schema/ui/PageVariable.json +31 -0
- package/json-schema/ui/PaginationConfig.json +20 -1
- package/json-schema/ui/RecordDetailsProps.json +31 -1
- package/json-schema/ui/RecordHighlightsProps.json +18 -1
- package/json-schema/ui/RecordRelatedListProps.json +33 -1
- package/json-schema/ui/Report.json +428 -1
- package/json-schema/ui/ReportChart.json +260 -1
- package/json-schema/ui/ReportColumn.json +29 -1
- package/json-schema/ui/ReportGrouping.json +32 -1
- package/json-schema/ui/ReportType.json +9 -1
- package/json-schema/ui/SelectionConfig.json +16 -1
- package/json-schema/ui/Shadow.json +38 -1
- package/json-schema/ui/Spacing.json +58 -1
- package/json-schema/ui/Theme.json +537 -1
- package/json-schema/ui/ThemeMode.json +8 -1
- package/json-schema/ui/Typography.json +136 -1
- package/json-schema/ui/UrlNavItem.json +47 -1
- package/json-schema/ui/View.json +1622 -1
- package/json-schema/ui/ViewData.json +136 -1
- package/json-schema/ui/WidgetEvent.json +36 -1
- package/json-schema/ui/WidgetLifecycle.json +34 -1
- package/json-schema/ui/WidgetManifest.json +310 -1
- package/json-schema/ui/WidgetProperty.json +52 -1
- package/json-schema/ui/WidgetSource.json +83 -0
- package/json-schema/ui/ZIndex.json +38 -1
- package/package.json +3 -3
- package/dist/auth/config.zod.d.ts +0 -1050
- package/dist/auth/config.zod.d.ts.map +0 -1
- package/dist/auth/config.zod.js +0 -641
- package/dist/auth/identity.zod.d.ts +0 -81
- package/dist/auth/identity.zod.d.ts.map +0 -1
- package/dist/auth/index.d.ts.map +0 -1
- package/dist/auth/organization.zod.d.ts +0 -68
- package/dist/auth/organization.zod.d.ts.map +0 -1
- package/dist/auth/policy.zod.d.ts +0 -72
- package/dist/auth/policy.zod.d.ts.map +0 -1
- package/dist/auth/protocol.d.ts.map +0 -1
- package/dist/auth/role.zod.d.ts.map +0 -1
- package/dist/auth/scim.zod.d.ts +0 -570
- package/dist/auth/scim.zod.d.ts.map +0 -1
- package/dist/permission/index.d.ts.map +0 -1
- package/dist/permission/permission.zod.d.ts +0 -96
- package/dist/permission/permission.zod.d.ts.map +0 -1
- package/dist/permission/rls.zod.d.ts +0 -298
- package/dist/permission/rls.zod.d.ts.map +0 -1
- package/dist/permission/sharing.zod.d.ts +0 -112
- package/dist/permission/sharing.zod.d.ts.map +0 -1
- package/dist/permission/territory.zod.d.ts +0 -83
- package/dist/permission/territory.zod.d.ts.map +0 -1
- package/dist/system/context.zod.d.ts +0 -33
- package/dist/system/context.zod.d.ts.map +0 -1
- package/dist/system/datasource.zod.d.ts +0 -85
- package/dist/system/datasource.zod.d.ts.map +0 -1
- package/dist/system/events.zod.d.ts +0 -756
- package/dist/system/events.zod.d.ts.map +0 -1
- package/dist/system/feature.zod.d.ts +0 -73
- package/dist/system/feature.zod.d.ts.map +0 -1
- package/dist/system/manifest.zod.d.ts +0 -430
- package/dist/system/manifest.zod.d.ts.map +0 -1
- package/dist/system/metadata-loader.zod.d.ts +0 -222
- package/dist/system/metadata-loader.zod.d.ts.map +0 -1
- package/dist/system/plugin-capability.zod.d.ts +0 -286
- package/dist/system/plugin-capability.zod.d.ts.map +0 -1
- package/dist/system/plugin-lifecycle-events.zod.d.ts.map +0 -1
- package/dist/system/plugin-loading.zod.d.ts +0 -575
- package/dist/system/plugin-loading.zod.d.ts.map +0 -1
- package/dist/system/plugin-validator.zod.d.ts +0 -98
- package/dist/system/plugin-validator.zod.d.ts.map +0 -1
- package/dist/system/plugin.zod.d.ts +0 -421
- package/dist/system/plugin.zod.d.ts.map +0 -1
- package/dist/system/plugin.zod.js +0 -123
- package/dist/system/startup-orchestrator.zod.d.ts +0 -119
- package/dist/system/startup-orchestrator.zod.d.ts.map +0 -1
- package/json-schema/auth/APIKey.json +0 -7
- package/json-schema/auth/Account.json +0 -7
- package/json-schema/auth/AccountLinkingConfig.json +0 -7
- package/json-schema/auth/ApplicationAuthConfig.json +0 -7
- package/json-schema/auth/AuditPolicy.json +0 -7
- package/json-schema/auth/AuthConfig.json +0 -7
- package/json-schema/auth/AuthPluginConfig.json +0 -7
- package/json-schema/auth/AuthStrategy.json +0 -7
- package/json-schema/auth/BasicAuth.json +0 -7
- package/json-schema/auth/BearerAuth.json +0 -7
- package/json-schema/auth/CSRFConfig.json +0 -7
- package/json-schema/auth/DatabaseAdapter.json +0 -7
- package/json-schema/auth/DatabaseMapping.json +0 -7
- package/json-schema/auth/EmailPasswordConfig.json +0 -7
- package/json-schema/auth/EnterpriseAuthConfig.json +0 -7
- package/json-schema/auth/Invitation.json +0 -7
- package/json-schema/auth/InvitationStatus.json +0 -7
- package/json-schema/auth/JWTAuth.json +0 -7
- package/json-schema/auth/LDAPConfig.json +0 -7
- package/json-schema/auth/MagicLinkConfig.json +0 -7
- package/json-schema/auth/Member.json +0 -7
- package/json-schema/auth/NetworkPolicy.json +0 -7
- package/json-schema/auth/NoAuth.json +0 -7
- package/json-schema/auth/OAuth2.json +0 -7
- package/json-schema/auth/OAuthProvider.json +0 -7
- package/json-schema/auth/OIDCConfig.json +0 -7
- package/json-schema/auth/Organization.json +0 -7
- package/json-schema/auth/PasskeyConfig.json +0 -7
- package/json-schema/auth/PasswordPolicy.json +0 -7
- package/json-schema/auth/Policy.json +0 -7
- package/json-schema/auth/RateLimitConfig.json +0 -7
- package/json-schema/auth/Role.json +0 -7
- package/json-schema/auth/SAMLAuth.json +0 -7
- package/json-schema/auth/SAMLConfig.json +0 -7
- package/json-schema/auth/SCIMAddress.json +0 -7
- package/json-schema/auth/SCIMEmail.json +0 -7
- package/json-schema/auth/SCIMEnterpriseUser.json +0 -7
- package/json-schema/auth/SCIMError.json +0 -7
- package/json-schema/auth/SCIMGroup.json +0 -7
- package/json-schema/auth/SCIMGroupReference.json +0 -7
- package/json-schema/auth/SCIMListResponse.json +0 -7
- package/json-schema/auth/SCIMMemberReference.json +0 -7
- package/json-schema/auth/SCIMMeta.json +0 -7
- package/json-schema/auth/SCIMName.json +0 -7
- package/json-schema/auth/SCIMPatchOperation.json +0 -7
- package/json-schema/auth/SCIMPatchRequest.json +0 -7
- package/json-schema/auth/SCIMPhoneNumber.json +0 -7
- package/json-schema/auth/SCIMUser.json +0 -7
- package/json-schema/auth/Session.json +0 -7
- package/json-schema/auth/SessionConfig.json +0 -7
- package/json-schema/auth/SessionPolicy.json +0 -7
- package/json-schema/auth/StandardAuthProvider.json +0 -7
- package/json-schema/auth/TwoFactorConfig.json +0 -7
- package/json-schema/auth/User.json +0 -7
- package/json-schema/auth/UserFieldMapping.json +0 -7
- package/json-schema/auth/VerificationToken.json +0 -7
- package/json-schema/automation/SlackMessageAction.json +0 -7
- package/json-schema/automation/SmsNotificationAction.json +0 -7
- package/json-schema/automation/TeamsMessageAction.json +0 -7
- package/json-schema/automation/WebhookTriggerAction.json +0 -7
- package/json-schema/permission/CriteriaSharingRule.json +0 -7
- package/json-schema/permission/FieldPermission.json +0 -7
- package/json-schema/permission/OWDModel.json +0 -7
- package/json-schema/permission/ObjectPermission.json +0 -7
- package/json-schema/permission/OwnerSharingRule.json +0 -7
- package/json-schema/permission/PermissionSet.json +0 -7
- package/json-schema/permission/RLSConfig.json +0 -7
- package/json-schema/permission/RLSEvaluationResult.json +0 -7
- package/json-schema/permission/RLSOperation.json +0 -7
- package/json-schema/permission/RLSUserContext.json +0 -7
- package/json-schema/permission/RowLevelSecurityPolicy.json +0 -7
- package/json-schema/permission/ShareRecipientType.json +0 -7
- package/json-schema/permission/SharingLevel.json +0 -7
- package/json-schema/permission/SharingRule.json +0 -7
- package/json-schema/permission/Territory.json +0 -7
- package/json-schema/permission/TerritoryModel.json +0 -7
- package/json-schema/permission/TerritoryType.json +0 -7
- package/json-schema/system/CapabilityConformanceLevel.json +0 -7
- package/json-schema/system/Datasource.json +0 -7
- package/json-schema/system/DatasourceCapabilities.json +0 -7
- package/json-schema/system/DeadLetterQueueEntry.json +0 -7
- package/json-schema/system/DriverDefinition.json +0 -7
- package/json-schema/system/Event.json +0 -7
- package/json-schema/system/EventBusConfig.json +0 -7
- package/json-schema/system/EventHandler.json +0 -7
- package/json-schema/system/EventLogEntry.json +0 -7
- package/json-schema/system/EventMessageQueueConfig.json +0 -7
- package/json-schema/system/EventMetadata.json +0 -7
- package/json-schema/system/EventPersistence.json +0 -7
- package/json-schema/system/EventPhase.json +0 -7
- package/json-schema/system/EventPriority.json +0 -7
- package/json-schema/system/EventQueueConfig.json +0 -7
- package/json-schema/system/EventReplayConfig.json +0 -7
- package/json-schema/system/EventRoute.json +0 -7
- package/json-schema/system/EventSourcingConfig.json +0 -7
- package/json-schema/system/EventTypeDefinition.json +0 -7
- package/json-schema/system/EventWebhookConfig.json +0 -7
- package/json-schema/system/ExtensionPoint.json +0 -7
- package/json-schema/system/FeatureFlag.json +0 -7
- package/json-schema/system/FeatureStrategy.json +0 -7
- package/json-schema/system/HealthStatus.json +0 -7
- package/json-schema/system/HookRegisteredEvent.json +0 -7
- package/json-schema/system/HookTriggeredEvent.json +0 -7
- package/json-schema/system/KernelContext.json +0 -7
- package/json-schema/system/KernelEventBase.json +0 -7
- package/json-schema/system/KernelReadyEvent.json +0 -7
- package/json-schema/system/KernelShutdownEvent.json +0 -7
- package/json-schema/system/Manifest.json +0 -7
- package/json-schema/system/Plugin.json +0 -7
- package/json-schema/system/PluginCaching.json +0 -7
- package/json-schema/system/PluginCapability.json +0 -7
- package/json-schema/system/PluginCapabilityManifest.json +0 -7
- package/json-schema/system/PluginCodeSplitting.json +0 -7
- package/json-schema/system/PluginContext.json +0 -7
- package/json-schema/system/PluginDependency.json +0 -7
- package/json-schema/system/PluginDependencyResolution.json +0 -7
- package/json-schema/system/PluginDynamicImport.json +0 -7
- package/json-schema/system/PluginErrorEvent.json +0 -7
- package/json-schema/system/PluginEventBase.json +0 -7
- package/json-schema/system/PluginHotReload.json +0 -7
- package/json-schema/system/PluginInitialization.json +0 -7
- package/json-schema/system/PluginInterface.json +0 -7
- package/json-schema/system/PluginLifecycleEventType.json +0 -7
- package/json-schema/system/PluginLifecyclePhaseEvent.json +0 -7
- package/json-schema/system/PluginLoadingConfig.json +0 -7
- package/json-schema/system/PluginLoadingEvent.json +0 -7
- package/json-schema/system/PluginLoadingState.json +0 -7
- package/json-schema/system/PluginLoadingStrategy.json +0 -7
- package/json-schema/system/PluginMetadata.json +0 -7
- package/json-schema/system/PluginPerformanceMonitoring.json +0 -7
- package/json-schema/system/PluginPreloadConfig.json +0 -7
- package/json-schema/system/PluginRegisteredEvent.json +0 -7
- package/json-schema/system/PluginSandboxing.json +0 -7
- package/json-schema/system/PluginStartupResult.json +0 -7
- package/json-schema/system/ProtocolFeature.json +0 -7
- package/json-schema/system/ProtocolReference.json +0 -7
- package/json-schema/system/ProtocolVersion.json +0 -7
- package/json-schema/system/RealTimeNotificationConfig.json +0 -7
- package/json-schema/system/RuntimeMode.json +0 -7
- package/json-schema/system/ScopeConfig.json +0 -7
- package/json-schema/system/ScopeInfo.json +0 -7
- package/json-schema/system/ServiceFactoryRegistration.json +0 -7
- package/json-schema/system/ServiceMetadata.json +0 -7
- package/json-schema/system/ServiceRegisteredEvent.json +0 -7
- package/json-schema/system/ServiceRegistryConfig.json +0 -7
- package/json-schema/system/ServiceScopeType.json +0 -7
- package/json-schema/system/ServiceUnregisteredEvent.json +0 -7
- package/json-schema/system/StartupOptions.json +0 -7
- package/json-schema/system/StartupOrchestrationResult.json +0 -7
- package/json-schema/system/ValidationError.json +0 -7
- package/json-schema/system/ValidationResult.json +0 -7
- package/json-schema/system/ValidationWarning.json +0 -7
- /package/dist/{system → data}/datasource.zod.js +0 -0
- /package/dist/{auth → identity}/identity.zod.js +0 -0
- /package/dist/{auth → identity}/organization.zod.js +0 -0
- /package/dist/{auth → identity}/protocol.d.ts +0 -0
- /package/dist/{auth → identity}/protocol.js +0 -0
- /package/dist/{auth → identity}/role.zod.js +0 -0
- /package/dist/{auth → identity}/scim.zod.js +0 -0
- /package/dist/{system → kernel}/context.zod.js +0 -0
- /package/dist/{system → kernel}/feature.zod.js +0 -0
- /package/dist/{system → kernel}/metadata-loader.zod.js +0 -0
- /package/dist/{system → kernel}/plugin-capability.zod.js +0 -0
- /package/dist/{system → kernel}/plugin-lifecycle-events.zod.js +0 -0
- /package/dist/{system → kernel}/plugin-loading.zod.js +0 -0
- /package/dist/{system → kernel}/plugin-validator.zod.js +0 -0
- /package/dist/{system → kernel}/startup-orchestrator.zod.js +0 -0
- /package/dist/{auth → security}/policy.zod.js +0 -0
- /package/dist/{permission → security}/rls.zod.js +0 -0
- /package/dist/{permission → security}/sharing.zod.js +0 -0
- /package/dist/{permission → security}/territory.zod.js +0 -0
package/dist/ai/cost.zod.d.ts
CHANGED
|
@@ -13,7 +13,15 @@ export declare const TokenUsageSchema: z.ZodObject<{
|
|
|
13
13
|
prompt: z.ZodNumber;
|
|
14
14
|
completion: z.ZodNumber;
|
|
15
15
|
total: z.ZodNumber;
|
|
16
|
-
}, z.
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
total: number;
|
|
18
|
+
prompt: number;
|
|
19
|
+
completion: number;
|
|
20
|
+
}, {
|
|
21
|
+
total: number;
|
|
22
|
+
prompt: number;
|
|
23
|
+
completion: number;
|
|
24
|
+
}>;
|
|
17
25
|
export type TokenUsage = z.infer<typeof TokenUsageSchema>;
|
|
18
26
|
/**
|
|
19
27
|
* AI Operation Cost Schema
|
|
@@ -21,847 +29,2071 @@ export type TokenUsage = z.infer<typeof TokenUsageSchema>;
|
|
|
21
29
|
*/
|
|
22
30
|
export declare const AIOperationCostSchema: z.ZodObject<{
|
|
23
31
|
operationId: z.ZodString;
|
|
24
|
-
operationType: z.ZodEnum<
|
|
25
|
-
conversation: "conversation";
|
|
26
|
-
orchestration: "orchestration";
|
|
27
|
-
prediction: "prediction";
|
|
28
|
-
rag: "rag";
|
|
29
|
-
nlq: "nlq";
|
|
30
|
-
}>;
|
|
32
|
+
operationType: z.ZodEnum<["conversation", "orchestration", "prediction", "rag", "nlq"]>;
|
|
31
33
|
agentName: z.ZodOptional<z.ZodString>;
|
|
32
34
|
modelId: z.ZodString;
|
|
33
35
|
tokens: z.ZodObject<{
|
|
34
36
|
prompt: z.ZodNumber;
|
|
35
37
|
completion: z.ZodNumber;
|
|
36
38
|
total: z.ZodNumber;
|
|
37
|
-
}, z.
|
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
|
40
|
+
total: number;
|
|
41
|
+
prompt: number;
|
|
42
|
+
completion: number;
|
|
43
|
+
}, {
|
|
44
|
+
total: number;
|
|
45
|
+
prompt: number;
|
|
46
|
+
completion: number;
|
|
47
|
+
}>;
|
|
38
48
|
cost: z.ZodNumber;
|
|
39
49
|
timestamp: z.ZodString;
|
|
40
50
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
41
|
-
}, z.
|
|
51
|
+
}, "strip", z.ZodTypeAny, {
|
|
52
|
+
modelId: string;
|
|
53
|
+
operationId: string;
|
|
54
|
+
timestamp: string;
|
|
55
|
+
cost: number;
|
|
56
|
+
operationType: "conversation" | "orchestration" | "prediction" | "rag" | "nlq";
|
|
57
|
+
tokens: {
|
|
58
|
+
total: number;
|
|
59
|
+
prompt: number;
|
|
60
|
+
completion: number;
|
|
61
|
+
};
|
|
62
|
+
metadata?: Record<string, any> | undefined;
|
|
63
|
+
agentName?: string | undefined;
|
|
64
|
+
}, {
|
|
65
|
+
modelId: string;
|
|
66
|
+
operationId: string;
|
|
67
|
+
timestamp: string;
|
|
68
|
+
cost: number;
|
|
69
|
+
operationType: "conversation" | "orchestration" | "prediction" | "rag" | "nlq";
|
|
70
|
+
tokens: {
|
|
71
|
+
total: number;
|
|
72
|
+
prompt: number;
|
|
73
|
+
completion: number;
|
|
74
|
+
};
|
|
75
|
+
metadata?: Record<string, any> | undefined;
|
|
76
|
+
agentName?: string | undefined;
|
|
77
|
+
}>;
|
|
42
78
|
export type AIOperationCost = z.infer<typeof AIOperationCostSchema>;
|
|
43
79
|
/**
|
|
44
80
|
* Cost Metric Type
|
|
45
81
|
*/
|
|
46
|
-
export declare const CostMetricTypeSchema: z.ZodEnum<
|
|
47
|
-
image: "image";
|
|
48
|
-
token: "token";
|
|
49
|
-
request: "request";
|
|
50
|
-
character: "character";
|
|
51
|
-
second: "second";
|
|
52
|
-
embedding: "embedding";
|
|
53
|
-
}>;
|
|
82
|
+
export declare const CostMetricTypeSchema: z.ZodEnum<["token", "request", "character", "second", "image", "embedding"]>;
|
|
54
83
|
/**
|
|
55
84
|
* Billing Period
|
|
56
85
|
*/
|
|
57
|
-
export declare const BillingPeriodSchema: z.ZodEnum<
|
|
58
|
-
custom: "custom";
|
|
59
|
-
hourly: "hourly";
|
|
60
|
-
daily: "daily";
|
|
61
|
-
weekly: "weekly";
|
|
62
|
-
monthly: "monthly";
|
|
63
|
-
quarterly: "quarterly";
|
|
64
|
-
yearly: "yearly";
|
|
65
|
-
}>;
|
|
86
|
+
export declare const BillingPeriodSchema: z.ZodEnum<["hourly", "daily", "weekly", "monthly", "quarterly", "yearly", "custom"]>;
|
|
66
87
|
/**
|
|
67
88
|
* Cost Entry
|
|
68
89
|
* Extended from AIOperationCostSchema with additional tracking fields
|
|
69
90
|
*/
|
|
70
91
|
export declare const CostEntrySchema: z.ZodObject<{
|
|
92
|
+
/** Identity */
|
|
71
93
|
id: z.ZodString;
|
|
72
94
|
timestamp: z.ZodString;
|
|
95
|
+
/** Request Details */
|
|
73
96
|
modelId: z.ZodString;
|
|
74
97
|
provider: z.ZodString;
|
|
75
98
|
operation: z.ZodString;
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
99
|
+
/** Usage Metrics - Standardized */
|
|
100
|
+
tokens: z.ZodOptional<z.ZodObject<{
|
|
101
|
+
prompt: z.ZodNumber;
|
|
102
|
+
completion: z.ZodNumber;
|
|
103
|
+
total: z.ZodNumber;
|
|
104
|
+
}, "strip", z.ZodTypeAny, {
|
|
105
|
+
total: number;
|
|
106
|
+
prompt: number;
|
|
107
|
+
completion: number;
|
|
108
|
+
}, {
|
|
109
|
+
total: number;
|
|
110
|
+
prompt: number;
|
|
111
|
+
completion: number;
|
|
112
|
+
}>>;
|
|
79
113
|
requestCount: z.ZodDefault<z.ZodNumber>;
|
|
114
|
+
/** Cost Calculation */
|
|
80
115
|
promptCost: z.ZodOptional<z.ZodNumber>;
|
|
81
116
|
completionCost: z.ZodOptional<z.ZodNumber>;
|
|
82
117
|
totalCost: z.ZodNumber;
|
|
83
118
|
currency: z.ZodDefault<z.ZodString>;
|
|
119
|
+
/** Context */
|
|
84
120
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
85
121
|
userId: z.ZodOptional<z.ZodString>;
|
|
86
122
|
agentId: z.ZodOptional<z.ZodString>;
|
|
87
123
|
object: z.ZodOptional<z.ZodString>;
|
|
88
124
|
recordId: z.ZodOptional<z.ZodString>;
|
|
89
|
-
|
|
125
|
+
/** Metadata */
|
|
126
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
90
127
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
91
|
-
}, z.
|
|
128
|
+
}, "strip", z.ZodTypeAny, {
|
|
129
|
+
provider: string;
|
|
130
|
+
currency: string;
|
|
131
|
+
id: string;
|
|
132
|
+
operation: string;
|
|
133
|
+
modelId: string;
|
|
134
|
+
timestamp: string;
|
|
135
|
+
requestCount: number;
|
|
136
|
+
totalCost: number;
|
|
137
|
+
object?: string | undefined;
|
|
138
|
+
tags?: string[] | undefined;
|
|
139
|
+
userId?: string | undefined;
|
|
140
|
+
metadata?: Record<string, any> | undefined;
|
|
141
|
+
sessionId?: string | undefined;
|
|
142
|
+
recordId?: string | undefined;
|
|
143
|
+
agentId?: string | undefined;
|
|
144
|
+
tokens?: {
|
|
145
|
+
total: number;
|
|
146
|
+
prompt: number;
|
|
147
|
+
completion: number;
|
|
148
|
+
} | undefined;
|
|
149
|
+
promptCost?: number | undefined;
|
|
150
|
+
completionCost?: number | undefined;
|
|
151
|
+
}, {
|
|
152
|
+
provider: string;
|
|
153
|
+
id: string;
|
|
154
|
+
operation: string;
|
|
155
|
+
modelId: string;
|
|
156
|
+
timestamp: string;
|
|
157
|
+
totalCost: number;
|
|
158
|
+
object?: string | undefined;
|
|
159
|
+
currency?: string | undefined;
|
|
160
|
+
tags?: string[] | undefined;
|
|
161
|
+
userId?: string | undefined;
|
|
162
|
+
metadata?: Record<string, any> | undefined;
|
|
163
|
+
sessionId?: string | undefined;
|
|
164
|
+
recordId?: string | undefined;
|
|
165
|
+
agentId?: string | undefined;
|
|
166
|
+
tokens?: {
|
|
167
|
+
total: number;
|
|
168
|
+
prompt: number;
|
|
169
|
+
completion: number;
|
|
170
|
+
} | undefined;
|
|
171
|
+
requestCount?: number | undefined;
|
|
172
|
+
promptCost?: number | undefined;
|
|
173
|
+
completionCost?: number | undefined;
|
|
174
|
+
}>;
|
|
92
175
|
/**
|
|
93
176
|
* Budget Type
|
|
94
177
|
*/
|
|
95
|
-
export declare const BudgetTypeSchema: z.ZodEnum<
|
|
96
|
-
object: "object";
|
|
97
|
-
department: "department";
|
|
98
|
-
user: "user";
|
|
99
|
-
global: "global";
|
|
100
|
-
project: "project";
|
|
101
|
-
agent: "agent";
|
|
102
|
-
}>;
|
|
178
|
+
export declare const BudgetTypeSchema: z.ZodEnum<["global", "user", "agent", "object", "project", "department"]>;
|
|
103
179
|
/**
|
|
104
180
|
* Budget Limit
|
|
105
181
|
*/
|
|
106
182
|
export declare const BudgetLimitSchema: z.ZodObject<{
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
department: "department";
|
|
110
|
-
user: "user";
|
|
111
|
-
global: "global";
|
|
112
|
-
project: "project";
|
|
113
|
-
agent: "agent";
|
|
114
|
-
}>;
|
|
183
|
+
/** Limit Configuration */
|
|
184
|
+
type: z.ZodEnum<["global", "user", "agent", "object", "project", "department"]>;
|
|
115
185
|
scope: z.ZodOptional<z.ZodString>;
|
|
186
|
+
/** Limit Amount */
|
|
116
187
|
maxCost: z.ZodNumber;
|
|
117
188
|
currency: z.ZodDefault<z.ZodString>;
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
hourly: "hourly";
|
|
121
|
-
daily: "daily";
|
|
122
|
-
weekly: "weekly";
|
|
123
|
-
monthly: "monthly";
|
|
124
|
-
quarterly: "quarterly";
|
|
125
|
-
yearly: "yearly";
|
|
126
|
-
}>;
|
|
189
|
+
/** Period */
|
|
190
|
+
period: z.ZodEnum<["hourly", "daily", "weekly", "monthly", "quarterly", "yearly", "custom"]>;
|
|
127
191
|
customPeriodDays: z.ZodOptional<z.ZodNumber>;
|
|
192
|
+
/** Soft Limits & Warnings */
|
|
128
193
|
softLimit: z.ZodOptional<z.ZodNumber>;
|
|
129
|
-
warnThresholds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
194
|
+
warnThresholds: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
195
|
+
/** Enforcement */
|
|
130
196
|
enforced: z.ZodDefault<z.ZodBoolean>;
|
|
131
197
|
gracePeriodSeconds: z.ZodDefault<z.ZodNumber>;
|
|
198
|
+
/** Rollover */
|
|
132
199
|
allowRollover: z.ZodDefault<z.ZodBoolean>;
|
|
133
200
|
maxRolloverPercentage: z.ZodOptional<z.ZodNumber>;
|
|
201
|
+
/** Metadata */
|
|
134
202
|
name: z.ZodOptional<z.ZodString>;
|
|
135
203
|
description: z.ZodOptional<z.ZodString>;
|
|
136
204
|
active: z.ZodDefault<z.ZodBoolean>;
|
|
137
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
138
|
-
}, z.
|
|
205
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
206
|
+
}, "strip", z.ZodTypeAny, {
|
|
207
|
+
type: "object" | "department" | "user" | "global" | "project" | "agent";
|
|
208
|
+
currency: string;
|
|
209
|
+
active: boolean;
|
|
210
|
+
period: "custom" | "hourly" | "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
211
|
+
maxCost: number;
|
|
212
|
+
enforced: boolean;
|
|
213
|
+
gracePeriodSeconds: number;
|
|
214
|
+
allowRollover: boolean;
|
|
215
|
+
scope?: string | undefined;
|
|
216
|
+
tags?: string[] | undefined;
|
|
217
|
+
name?: string | undefined;
|
|
218
|
+
description?: string | undefined;
|
|
219
|
+
customPeriodDays?: number | undefined;
|
|
220
|
+
softLimit?: number | undefined;
|
|
221
|
+
warnThresholds?: number[] | undefined;
|
|
222
|
+
maxRolloverPercentage?: number | undefined;
|
|
223
|
+
}, {
|
|
224
|
+
type: "object" | "department" | "user" | "global" | "project" | "agent";
|
|
225
|
+
period: "custom" | "hourly" | "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
226
|
+
maxCost: number;
|
|
227
|
+
scope?: string | undefined;
|
|
228
|
+
currency?: string | undefined;
|
|
229
|
+
tags?: string[] | undefined;
|
|
230
|
+
name?: string | undefined;
|
|
231
|
+
description?: string | undefined;
|
|
232
|
+
active?: boolean | undefined;
|
|
233
|
+
customPeriodDays?: number | undefined;
|
|
234
|
+
softLimit?: number | undefined;
|
|
235
|
+
warnThresholds?: number[] | undefined;
|
|
236
|
+
enforced?: boolean | undefined;
|
|
237
|
+
gracePeriodSeconds?: number | undefined;
|
|
238
|
+
allowRollover?: boolean | undefined;
|
|
239
|
+
maxRolloverPercentage?: number | undefined;
|
|
240
|
+
}>;
|
|
139
241
|
/**
|
|
140
242
|
* Budget Status
|
|
141
243
|
*/
|
|
142
244
|
export declare const BudgetStatusSchema: z.ZodObject<{
|
|
245
|
+
/** Budget Reference */
|
|
143
246
|
budgetId: z.ZodString;
|
|
144
|
-
type: z.ZodEnum<
|
|
145
|
-
object: "object";
|
|
146
|
-
department: "department";
|
|
147
|
-
user: "user";
|
|
148
|
-
global: "global";
|
|
149
|
-
project: "project";
|
|
150
|
-
agent: "agent";
|
|
151
|
-
}>;
|
|
247
|
+
type: z.ZodEnum<["global", "user", "agent", "object", "project", "department"]>;
|
|
152
248
|
scope: z.ZodOptional<z.ZodString>;
|
|
249
|
+
/** Current Period */
|
|
153
250
|
periodStart: z.ZodString;
|
|
154
251
|
periodEnd: z.ZodString;
|
|
252
|
+
/** Usage */
|
|
155
253
|
currentCost: z.ZodDefault<z.ZodNumber>;
|
|
156
254
|
maxCost: z.ZodNumber;
|
|
157
255
|
currency: z.ZodDefault<z.ZodString>;
|
|
256
|
+
/** Status */
|
|
158
257
|
percentageUsed: z.ZodNumber;
|
|
159
258
|
remainingCost: z.ZodNumber;
|
|
160
259
|
isExceeded: z.ZodDefault<z.ZodBoolean>;
|
|
161
260
|
isWarning: z.ZodDefault<z.ZodBoolean>;
|
|
261
|
+
/** Projections */
|
|
162
262
|
projectedCost: z.ZodOptional<z.ZodNumber>;
|
|
163
263
|
projectedOverage: z.ZodOptional<z.ZodNumber>;
|
|
264
|
+
/** Last Update */
|
|
164
265
|
lastUpdated: z.ZodString;
|
|
165
|
-
}, z.
|
|
266
|
+
}, "strip", z.ZodTypeAny, {
|
|
267
|
+
type: "object" | "department" | "user" | "global" | "project" | "agent";
|
|
268
|
+
currency: string;
|
|
269
|
+
maxCost: number;
|
|
270
|
+
budgetId: string;
|
|
271
|
+
periodStart: string;
|
|
272
|
+
periodEnd: string;
|
|
273
|
+
currentCost: number;
|
|
274
|
+
percentageUsed: number;
|
|
275
|
+
remainingCost: number;
|
|
276
|
+
isExceeded: boolean;
|
|
277
|
+
isWarning: boolean;
|
|
278
|
+
lastUpdated: string;
|
|
279
|
+
scope?: string | undefined;
|
|
280
|
+
projectedCost?: number | undefined;
|
|
281
|
+
projectedOverage?: number | undefined;
|
|
282
|
+
}, {
|
|
283
|
+
type: "object" | "department" | "user" | "global" | "project" | "agent";
|
|
284
|
+
maxCost: number;
|
|
285
|
+
budgetId: string;
|
|
286
|
+
periodStart: string;
|
|
287
|
+
periodEnd: string;
|
|
288
|
+
percentageUsed: number;
|
|
289
|
+
remainingCost: number;
|
|
290
|
+
lastUpdated: string;
|
|
291
|
+
scope?: string | undefined;
|
|
292
|
+
currency?: string | undefined;
|
|
293
|
+
currentCost?: number | undefined;
|
|
294
|
+
isExceeded?: boolean | undefined;
|
|
295
|
+
isWarning?: boolean | undefined;
|
|
296
|
+
projectedCost?: number | undefined;
|
|
297
|
+
projectedOverage?: number | undefined;
|
|
298
|
+
}>;
|
|
166
299
|
/**
|
|
167
300
|
* Cost Alert Type
|
|
168
301
|
*/
|
|
169
|
-
export declare const CostAlertTypeSchema: z.ZodEnum<
|
|
170
|
-
threshold_warning: "threshold_warning";
|
|
171
|
-
threshold_critical: "threshold_critical";
|
|
172
|
-
limit_exceeded: "limit_exceeded";
|
|
173
|
-
anomaly_detected: "anomaly_detected";
|
|
174
|
-
projection_exceeded: "projection_exceeded";
|
|
175
|
-
}>;
|
|
302
|
+
export declare const CostAlertTypeSchema: z.ZodEnum<["threshold_warning", "threshold_critical", "limit_exceeded", "anomaly_detected", "projection_exceeded"]>;
|
|
176
303
|
/**
|
|
177
304
|
* Cost Alert
|
|
178
305
|
*/
|
|
179
306
|
export declare const CostAlertSchema: z.ZodObject<{
|
|
307
|
+
/** Alert Details */
|
|
180
308
|
id: z.ZodString;
|
|
181
309
|
timestamp: z.ZodString;
|
|
182
|
-
type: z.ZodEnum<
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
limit_exceeded: "limit_exceeded";
|
|
186
|
-
anomaly_detected: "anomaly_detected";
|
|
187
|
-
projection_exceeded: "projection_exceeded";
|
|
188
|
-
}>;
|
|
189
|
-
severity: z.ZodEnum<{
|
|
190
|
-
warning: "warning";
|
|
191
|
-
info: "info";
|
|
192
|
-
critical: "critical";
|
|
193
|
-
}>;
|
|
310
|
+
type: z.ZodEnum<["threshold_warning", "threshold_critical", "limit_exceeded", "anomaly_detected", "projection_exceeded"]>;
|
|
311
|
+
severity: z.ZodEnum<["info", "warning", "critical"]>;
|
|
312
|
+
/** Budget Context */
|
|
194
313
|
budgetId: z.ZodOptional<z.ZodString>;
|
|
195
|
-
budgetType: z.ZodOptional<z.ZodEnum<
|
|
196
|
-
object: "object";
|
|
197
|
-
department: "department";
|
|
198
|
-
user: "user";
|
|
199
|
-
global: "global";
|
|
200
|
-
project: "project";
|
|
201
|
-
agent: "agent";
|
|
202
|
-
}>>;
|
|
314
|
+
budgetType: z.ZodOptional<z.ZodEnum<["global", "user", "agent", "object", "project", "department"]>>;
|
|
203
315
|
scope: z.ZodOptional<z.ZodString>;
|
|
316
|
+
/** Alert Information */
|
|
204
317
|
message: z.ZodString;
|
|
205
318
|
currentCost: z.ZodNumber;
|
|
206
319
|
maxCost: z.ZodOptional<z.ZodNumber>;
|
|
207
320
|
threshold: z.ZodOptional<z.ZodNumber>;
|
|
208
321
|
currency: z.ZodDefault<z.ZodString>;
|
|
209
|
-
|
|
322
|
+
/** Recommendations */
|
|
323
|
+
recommendations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
324
|
+
/** Status */
|
|
210
325
|
acknowledged: z.ZodDefault<z.ZodBoolean>;
|
|
211
326
|
acknowledgedBy: z.ZodOptional<z.ZodString>;
|
|
212
327
|
acknowledgedAt: z.ZodOptional<z.ZodString>;
|
|
213
328
|
resolved: z.ZodDefault<z.ZodBoolean>;
|
|
329
|
+
/** Metadata */
|
|
214
330
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
215
|
-
}, z.
|
|
331
|
+
}, "strip", z.ZodTypeAny, {
|
|
332
|
+
message: string;
|
|
333
|
+
type: "threshold_warning" | "threshold_critical" | "limit_exceeded" | "anomaly_detected" | "projection_exceeded";
|
|
334
|
+
currency: string;
|
|
335
|
+
severity: "warning" | "info" | "critical";
|
|
336
|
+
id: string;
|
|
337
|
+
acknowledged: boolean;
|
|
338
|
+
timestamp: string;
|
|
339
|
+
resolved: boolean;
|
|
340
|
+
currentCost: number;
|
|
341
|
+
scope?: string | undefined;
|
|
342
|
+
threshold?: number | undefined;
|
|
343
|
+
metadata?: Record<string, any> | undefined;
|
|
344
|
+
recommendations?: string[] | undefined;
|
|
345
|
+
maxCost?: number | undefined;
|
|
346
|
+
budgetId?: string | undefined;
|
|
347
|
+
budgetType?: "object" | "department" | "user" | "global" | "project" | "agent" | undefined;
|
|
348
|
+
acknowledgedBy?: string | undefined;
|
|
349
|
+
acknowledgedAt?: string | undefined;
|
|
350
|
+
}, {
|
|
351
|
+
message: string;
|
|
352
|
+
type: "threshold_warning" | "threshold_critical" | "limit_exceeded" | "anomaly_detected" | "projection_exceeded";
|
|
353
|
+
severity: "warning" | "info" | "critical";
|
|
354
|
+
id: string;
|
|
355
|
+
timestamp: string;
|
|
356
|
+
currentCost: number;
|
|
357
|
+
scope?: string | undefined;
|
|
358
|
+
currency?: string | undefined;
|
|
359
|
+
threshold?: number | undefined;
|
|
360
|
+
acknowledged?: boolean | undefined;
|
|
361
|
+
metadata?: Record<string, any> | undefined;
|
|
362
|
+
resolved?: boolean | undefined;
|
|
363
|
+
recommendations?: string[] | undefined;
|
|
364
|
+
maxCost?: number | undefined;
|
|
365
|
+
budgetId?: string | undefined;
|
|
366
|
+
budgetType?: "object" | "department" | "user" | "global" | "project" | "agent" | undefined;
|
|
367
|
+
acknowledgedBy?: string | undefined;
|
|
368
|
+
acknowledgedAt?: string | undefined;
|
|
369
|
+
}>;
|
|
216
370
|
/**
|
|
217
371
|
* Cost Breakdown Dimension
|
|
218
372
|
*/
|
|
219
|
-
export declare const CostBreakdownDimensionSchema: z.ZodEnum<
|
|
220
|
-
object: "object";
|
|
221
|
-
date: "date";
|
|
222
|
-
provider: "provider";
|
|
223
|
-
operation: "operation";
|
|
224
|
-
user: "user";
|
|
225
|
-
tag: "tag";
|
|
226
|
-
model: "model";
|
|
227
|
-
agent: "agent";
|
|
228
|
-
hour: "hour";
|
|
229
|
-
}>;
|
|
373
|
+
export declare const CostBreakdownDimensionSchema: z.ZodEnum<["model", "provider", "user", "agent", "object", "operation", "date", "hour", "tag"]>;
|
|
230
374
|
/**
|
|
231
375
|
* Cost Breakdown Entry
|
|
232
376
|
*/
|
|
233
377
|
export declare const CostBreakdownEntrySchema: z.ZodObject<{
|
|
234
|
-
dimension: z.ZodEnum<
|
|
235
|
-
object: "object";
|
|
236
|
-
date: "date";
|
|
237
|
-
provider: "provider";
|
|
238
|
-
operation: "operation";
|
|
239
|
-
user: "user";
|
|
240
|
-
tag: "tag";
|
|
241
|
-
model: "model";
|
|
242
|
-
agent: "agent";
|
|
243
|
-
hour: "hour";
|
|
244
|
-
}>;
|
|
378
|
+
dimension: z.ZodEnum<["model", "provider", "user", "agent", "object", "operation", "date", "hour", "tag"]>;
|
|
245
379
|
value: z.ZodString;
|
|
380
|
+
/** Metrics */
|
|
246
381
|
totalCost: z.ZodNumber;
|
|
247
382
|
requestCount: z.ZodNumber;
|
|
248
383
|
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
384
|
+
/** Share */
|
|
249
385
|
percentageOfTotal: z.ZodNumber;
|
|
386
|
+
/** Time Range */
|
|
250
387
|
periodStart: z.ZodOptional<z.ZodString>;
|
|
251
388
|
periodEnd: z.ZodOptional<z.ZodString>;
|
|
252
|
-
}, z.
|
|
389
|
+
}, "strip", z.ZodTypeAny, {
|
|
390
|
+
value: string;
|
|
391
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
392
|
+
requestCount: number;
|
|
393
|
+
totalCost: number;
|
|
394
|
+
percentageOfTotal: number;
|
|
395
|
+
periodStart?: string | undefined;
|
|
396
|
+
periodEnd?: string | undefined;
|
|
397
|
+
totalTokens?: number | undefined;
|
|
398
|
+
}, {
|
|
399
|
+
value: string;
|
|
400
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
401
|
+
requestCount: number;
|
|
402
|
+
totalCost: number;
|
|
403
|
+
percentageOfTotal: number;
|
|
404
|
+
periodStart?: string | undefined;
|
|
405
|
+
periodEnd?: string | undefined;
|
|
406
|
+
totalTokens?: number | undefined;
|
|
407
|
+
}>;
|
|
253
408
|
/**
|
|
254
409
|
* Cost Analytics
|
|
255
410
|
*/
|
|
256
411
|
export declare const CostAnalyticsSchema: z.ZodObject<{
|
|
412
|
+
/** Time Range */
|
|
257
413
|
periodStart: z.ZodString;
|
|
258
414
|
periodEnd: z.ZodString;
|
|
415
|
+
/** Summary Metrics */
|
|
259
416
|
totalCost: z.ZodNumber;
|
|
260
417
|
totalRequests: z.ZodNumber;
|
|
261
418
|
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
262
419
|
currency: z.ZodDefault<z.ZodString>;
|
|
420
|
+
/** Averages */
|
|
263
421
|
averageCostPerRequest: z.ZodNumber;
|
|
264
422
|
averageCostPerToken: z.ZodOptional<z.ZodNumber>;
|
|
265
423
|
averageRequestsPerDay: z.ZodNumber;
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
increasing: "increasing";
|
|
269
|
-
decreasing: "decreasing";
|
|
270
|
-
}>>;
|
|
424
|
+
/** Trends */
|
|
425
|
+
costTrend: z.ZodOptional<z.ZodEnum<["increasing", "decreasing", "stable"]>>;
|
|
271
426
|
trendPercentage: z.ZodOptional<z.ZodNumber>;
|
|
427
|
+
/** Breakdowns */
|
|
272
428
|
byModel: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
273
|
-
dimension: z.ZodEnum<
|
|
274
|
-
object: "object";
|
|
275
|
-
date: "date";
|
|
276
|
-
provider: "provider";
|
|
277
|
-
operation: "operation";
|
|
278
|
-
user: "user";
|
|
279
|
-
tag: "tag";
|
|
280
|
-
model: "model";
|
|
281
|
-
agent: "agent";
|
|
282
|
-
hour: "hour";
|
|
283
|
-
}>;
|
|
429
|
+
dimension: z.ZodEnum<["model", "provider", "user", "agent", "object", "operation", "date", "hour", "tag"]>;
|
|
284
430
|
value: z.ZodString;
|
|
431
|
+
/** Metrics */
|
|
285
432
|
totalCost: z.ZodNumber;
|
|
286
433
|
requestCount: z.ZodNumber;
|
|
287
434
|
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
435
|
+
/** Share */
|
|
288
436
|
percentageOfTotal: z.ZodNumber;
|
|
437
|
+
/** Time Range */
|
|
289
438
|
periodStart: z.ZodOptional<z.ZodString>;
|
|
290
439
|
periodEnd: z.ZodOptional<z.ZodString>;
|
|
291
|
-
}, z.
|
|
440
|
+
}, "strip", z.ZodTypeAny, {
|
|
441
|
+
value: string;
|
|
442
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
443
|
+
requestCount: number;
|
|
444
|
+
totalCost: number;
|
|
445
|
+
percentageOfTotal: number;
|
|
446
|
+
periodStart?: string | undefined;
|
|
447
|
+
periodEnd?: string | undefined;
|
|
448
|
+
totalTokens?: number | undefined;
|
|
449
|
+
}, {
|
|
450
|
+
value: string;
|
|
451
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
452
|
+
requestCount: number;
|
|
453
|
+
totalCost: number;
|
|
454
|
+
percentageOfTotal: number;
|
|
455
|
+
periodStart?: string | undefined;
|
|
456
|
+
periodEnd?: string | undefined;
|
|
457
|
+
totalTokens?: number | undefined;
|
|
458
|
+
}>, "many">>;
|
|
292
459
|
byProvider: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
293
|
-
dimension: z.ZodEnum<
|
|
294
|
-
object: "object";
|
|
295
|
-
date: "date";
|
|
296
|
-
provider: "provider";
|
|
297
|
-
operation: "operation";
|
|
298
|
-
user: "user";
|
|
299
|
-
tag: "tag";
|
|
300
|
-
model: "model";
|
|
301
|
-
agent: "agent";
|
|
302
|
-
hour: "hour";
|
|
303
|
-
}>;
|
|
460
|
+
dimension: z.ZodEnum<["model", "provider", "user", "agent", "object", "operation", "date", "hour", "tag"]>;
|
|
304
461
|
value: z.ZodString;
|
|
462
|
+
/** Metrics */
|
|
305
463
|
totalCost: z.ZodNumber;
|
|
306
464
|
requestCount: z.ZodNumber;
|
|
307
465
|
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
466
|
+
/** Share */
|
|
308
467
|
percentageOfTotal: z.ZodNumber;
|
|
468
|
+
/** Time Range */
|
|
309
469
|
periodStart: z.ZodOptional<z.ZodString>;
|
|
310
470
|
periodEnd: z.ZodOptional<z.ZodString>;
|
|
311
|
-
}, z.
|
|
471
|
+
}, "strip", z.ZodTypeAny, {
|
|
472
|
+
value: string;
|
|
473
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
474
|
+
requestCount: number;
|
|
475
|
+
totalCost: number;
|
|
476
|
+
percentageOfTotal: number;
|
|
477
|
+
periodStart?: string | undefined;
|
|
478
|
+
periodEnd?: string | undefined;
|
|
479
|
+
totalTokens?: number | undefined;
|
|
480
|
+
}, {
|
|
481
|
+
value: string;
|
|
482
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
483
|
+
requestCount: number;
|
|
484
|
+
totalCost: number;
|
|
485
|
+
percentageOfTotal: number;
|
|
486
|
+
periodStart?: string | undefined;
|
|
487
|
+
periodEnd?: string | undefined;
|
|
488
|
+
totalTokens?: number | undefined;
|
|
489
|
+
}>, "many">>;
|
|
312
490
|
byUser: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
313
|
-
dimension: z.ZodEnum<
|
|
314
|
-
object: "object";
|
|
315
|
-
date: "date";
|
|
316
|
-
provider: "provider";
|
|
317
|
-
operation: "operation";
|
|
318
|
-
user: "user";
|
|
319
|
-
tag: "tag";
|
|
320
|
-
model: "model";
|
|
321
|
-
agent: "agent";
|
|
322
|
-
hour: "hour";
|
|
323
|
-
}>;
|
|
491
|
+
dimension: z.ZodEnum<["model", "provider", "user", "agent", "object", "operation", "date", "hour", "tag"]>;
|
|
324
492
|
value: z.ZodString;
|
|
493
|
+
/** Metrics */
|
|
325
494
|
totalCost: z.ZodNumber;
|
|
326
495
|
requestCount: z.ZodNumber;
|
|
327
496
|
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
497
|
+
/** Share */
|
|
328
498
|
percentageOfTotal: z.ZodNumber;
|
|
499
|
+
/** Time Range */
|
|
329
500
|
periodStart: z.ZodOptional<z.ZodString>;
|
|
330
501
|
periodEnd: z.ZodOptional<z.ZodString>;
|
|
331
|
-
}, z.
|
|
502
|
+
}, "strip", z.ZodTypeAny, {
|
|
503
|
+
value: string;
|
|
504
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
505
|
+
requestCount: number;
|
|
506
|
+
totalCost: number;
|
|
507
|
+
percentageOfTotal: number;
|
|
508
|
+
periodStart?: string | undefined;
|
|
509
|
+
periodEnd?: string | undefined;
|
|
510
|
+
totalTokens?: number | undefined;
|
|
511
|
+
}, {
|
|
512
|
+
value: string;
|
|
513
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
514
|
+
requestCount: number;
|
|
515
|
+
totalCost: number;
|
|
516
|
+
percentageOfTotal: number;
|
|
517
|
+
periodStart?: string | undefined;
|
|
518
|
+
periodEnd?: string | undefined;
|
|
519
|
+
totalTokens?: number | undefined;
|
|
520
|
+
}>, "many">>;
|
|
332
521
|
byAgent: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
333
|
-
dimension: z.ZodEnum<
|
|
334
|
-
object: "object";
|
|
335
|
-
date: "date";
|
|
336
|
-
provider: "provider";
|
|
337
|
-
operation: "operation";
|
|
338
|
-
user: "user";
|
|
339
|
-
tag: "tag";
|
|
340
|
-
model: "model";
|
|
341
|
-
agent: "agent";
|
|
342
|
-
hour: "hour";
|
|
343
|
-
}>;
|
|
522
|
+
dimension: z.ZodEnum<["model", "provider", "user", "agent", "object", "operation", "date", "hour", "tag"]>;
|
|
344
523
|
value: z.ZodString;
|
|
524
|
+
/** Metrics */
|
|
345
525
|
totalCost: z.ZodNumber;
|
|
346
526
|
requestCount: z.ZodNumber;
|
|
347
527
|
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
528
|
+
/** Share */
|
|
348
529
|
percentageOfTotal: z.ZodNumber;
|
|
530
|
+
/** Time Range */
|
|
349
531
|
periodStart: z.ZodOptional<z.ZodString>;
|
|
350
532
|
periodEnd: z.ZodOptional<z.ZodString>;
|
|
351
|
-
}, z.
|
|
533
|
+
}, "strip", z.ZodTypeAny, {
|
|
534
|
+
value: string;
|
|
535
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
536
|
+
requestCount: number;
|
|
537
|
+
totalCost: number;
|
|
538
|
+
percentageOfTotal: number;
|
|
539
|
+
periodStart?: string | undefined;
|
|
540
|
+
periodEnd?: string | undefined;
|
|
541
|
+
totalTokens?: number | undefined;
|
|
542
|
+
}, {
|
|
543
|
+
value: string;
|
|
544
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
545
|
+
requestCount: number;
|
|
546
|
+
totalCost: number;
|
|
547
|
+
percentageOfTotal: number;
|
|
548
|
+
periodStart?: string | undefined;
|
|
549
|
+
periodEnd?: string | undefined;
|
|
550
|
+
totalTokens?: number | undefined;
|
|
551
|
+
}>, "many">>;
|
|
352
552
|
byOperation: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
353
|
-
dimension: z.ZodEnum<
|
|
354
|
-
object: "object";
|
|
355
|
-
date: "date";
|
|
356
|
-
provider: "provider";
|
|
357
|
-
operation: "operation";
|
|
358
|
-
user: "user";
|
|
359
|
-
tag: "tag";
|
|
360
|
-
model: "model";
|
|
361
|
-
agent: "agent";
|
|
362
|
-
hour: "hour";
|
|
363
|
-
}>;
|
|
553
|
+
dimension: z.ZodEnum<["model", "provider", "user", "agent", "object", "operation", "date", "hour", "tag"]>;
|
|
364
554
|
value: z.ZodString;
|
|
555
|
+
/** Metrics */
|
|
365
556
|
totalCost: z.ZodNumber;
|
|
366
557
|
requestCount: z.ZodNumber;
|
|
367
558
|
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
559
|
+
/** Share */
|
|
368
560
|
percentageOfTotal: z.ZodNumber;
|
|
561
|
+
/** Time Range */
|
|
369
562
|
periodStart: z.ZodOptional<z.ZodString>;
|
|
370
563
|
periodEnd: z.ZodOptional<z.ZodString>;
|
|
371
|
-
}, z.
|
|
564
|
+
}, "strip", z.ZodTypeAny, {
|
|
565
|
+
value: string;
|
|
566
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
567
|
+
requestCount: number;
|
|
568
|
+
totalCost: number;
|
|
569
|
+
percentageOfTotal: number;
|
|
570
|
+
periodStart?: string | undefined;
|
|
571
|
+
periodEnd?: string | undefined;
|
|
572
|
+
totalTokens?: number | undefined;
|
|
573
|
+
}, {
|
|
574
|
+
value: string;
|
|
575
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
576
|
+
requestCount: number;
|
|
577
|
+
totalCost: number;
|
|
578
|
+
percentageOfTotal: number;
|
|
579
|
+
periodStart?: string | undefined;
|
|
580
|
+
periodEnd?: string | undefined;
|
|
581
|
+
totalTokens?: number | undefined;
|
|
582
|
+
}>, "many">>;
|
|
372
583
|
byDate: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
373
|
-
dimension: z.ZodEnum<
|
|
374
|
-
object: "object";
|
|
375
|
-
date: "date";
|
|
376
|
-
provider: "provider";
|
|
377
|
-
operation: "operation";
|
|
378
|
-
user: "user";
|
|
379
|
-
tag: "tag";
|
|
380
|
-
model: "model";
|
|
381
|
-
agent: "agent";
|
|
382
|
-
hour: "hour";
|
|
383
|
-
}>;
|
|
584
|
+
dimension: z.ZodEnum<["model", "provider", "user", "agent", "object", "operation", "date", "hour", "tag"]>;
|
|
384
585
|
value: z.ZodString;
|
|
586
|
+
/** Metrics */
|
|
385
587
|
totalCost: z.ZodNumber;
|
|
386
588
|
requestCount: z.ZodNumber;
|
|
387
589
|
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
590
|
+
/** Share */
|
|
388
591
|
percentageOfTotal: z.ZodNumber;
|
|
592
|
+
/** Time Range */
|
|
389
593
|
periodStart: z.ZodOptional<z.ZodString>;
|
|
390
594
|
periodEnd: z.ZodOptional<z.ZodString>;
|
|
391
|
-
}, z.
|
|
595
|
+
}, "strip", z.ZodTypeAny, {
|
|
596
|
+
value: string;
|
|
597
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
598
|
+
requestCount: number;
|
|
599
|
+
totalCost: number;
|
|
600
|
+
percentageOfTotal: number;
|
|
601
|
+
periodStart?: string | undefined;
|
|
602
|
+
periodEnd?: string | undefined;
|
|
603
|
+
totalTokens?: number | undefined;
|
|
604
|
+
}, {
|
|
605
|
+
value: string;
|
|
606
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
607
|
+
requestCount: number;
|
|
608
|
+
totalCost: number;
|
|
609
|
+
percentageOfTotal: number;
|
|
610
|
+
periodStart?: string | undefined;
|
|
611
|
+
periodEnd?: string | undefined;
|
|
612
|
+
totalTokens?: number | undefined;
|
|
613
|
+
}>, "many">>;
|
|
614
|
+
/** Top Consumers */
|
|
392
615
|
topModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
393
|
-
dimension: z.ZodEnum<
|
|
394
|
-
object: "object";
|
|
395
|
-
date: "date";
|
|
396
|
-
provider: "provider";
|
|
397
|
-
operation: "operation";
|
|
398
|
-
user: "user";
|
|
399
|
-
tag: "tag";
|
|
400
|
-
model: "model";
|
|
401
|
-
agent: "agent";
|
|
402
|
-
hour: "hour";
|
|
403
|
-
}>;
|
|
616
|
+
dimension: z.ZodEnum<["model", "provider", "user", "agent", "object", "operation", "date", "hour", "tag"]>;
|
|
404
617
|
value: z.ZodString;
|
|
618
|
+
/** Metrics */
|
|
405
619
|
totalCost: z.ZodNumber;
|
|
406
620
|
requestCount: z.ZodNumber;
|
|
407
621
|
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
622
|
+
/** Share */
|
|
408
623
|
percentageOfTotal: z.ZodNumber;
|
|
624
|
+
/** Time Range */
|
|
409
625
|
periodStart: z.ZodOptional<z.ZodString>;
|
|
410
626
|
periodEnd: z.ZodOptional<z.ZodString>;
|
|
411
|
-
}, z.
|
|
627
|
+
}, "strip", z.ZodTypeAny, {
|
|
628
|
+
value: string;
|
|
629
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
630
|
+
requestCount: number;
|
|
631
|
+
totalCost: number;
|
|
632
|
+
percentageOfTotal: number;
|
|
633
|
+
periodStart?: string | undefined;
|
|
634
|
+
periodEnd?: string | undefined;
|
|
635
|
+
totalTokens?: number | undefined;
|
|
636
|
+
}, {
|
|
637
|
+
value: string;
|
|
638
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
639
|
+
requestCount: number;
|
|
640
|
+
totalCost: number;
|
|
641
|
+
percentageOfTotal: number;
|
|
642
|
+
periodStart?: string | undefined;
|
|
643
|
+
periodEnd?: string | undefined;
|
|
644
|
+
totalTokens?: number | undefined;
|
|
645
|
+
}>, "many">>;
|
|
412
646
|
topUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
413
|
-
dimension: z.ZodEnum<
|
|
414
|
-
object: "object";
|
|
415
|
-
date: "date";
|
|
416
|
-
provider: "provider";
|
|
417
|
-
operation: "operation";
|
|
418
|
-
user: "user";
|
|
419
|
-
tag: "tag";
|
|
420
|
-
model: "model";
|
|
421
|
-
agent: "agent";
|
|
422
|
-
hour: "hour";
|
|
423
|
-
}>;
|
|
647
|
+
dimension: z.ZodEnum<["model", "provider", "user", "agent", "object", "operation", "date", "hour", "tag"]>;
|
|
424
648
|
value: z.ZodString;
|
|
649
|
+
/** Metrics */
|
|
425
650
|
totalCost: z.ZodNumber;
|
|
426
651
|
requestCount: z.ZodNumber;
|
|
427
652
|
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
653
|
+
/** Share */
|
|
428
654
|
percentageOfTotal: z.ZodNumber;
|
|
655
|
+
/** Time Range */
|
|
429
656
|
periodStart: z.ZodOptional<z.ZodString>;
|
|
430
657
|
periodEnd: z.ZodOptional<z.ZodString>;
|
|
431
|
-
}, z.
|
|
658
|
+
}, "strip", z.ZodTypeAny, {
|
|
659
|
+
value: string;
|
|
660
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
661
|
+
requestCount: number;
|
|
662
|
+
totalCost: number;
|
|
663
|
+
percentageOfTotal: number;
|
|
664
|
+
periodStart?: string | undefined;
|
|
665
|
+
periodEnd?: string | undefined;
|
|
666
|
+
totalTokens?: number | undefined;
|
|
667
|
+
}, {
|
|
668
|
+
value: string;
|
|
669
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
670
|
+
requestCount: number;
|
|
671
|
+
totalCost: number;
|
|
672
|
+
percentageOfTotal: number;
|
|
673
|
+
periodStart?: string | undefined;
|
|
674
|
+
periodEnd?: string | undefined;
|
|
675
|
+
totalTokens?: number | undefined;
|
|
676
|
+
}>, "many">>;
|
|
432
677
|
topAgents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
433
|
-
dimension: z.ZodEnum<
|
|
434
|
-
object: "object";
|
|
435
|
-
date: "date";
|
|
436
|
-
provider: "provider";
|
|
437
|
-
operation: "operation";
|
|
438
|
-
user: "user";
|
|
439
|
-
tag: "tag";
|
|
440
|
-
model: "model";
|
|
441
|
-
agent: "agent";
|
|
442
|
-
hour: "hour";
|
|
443
|
-
}>;
|
|
678
|
+
dimension: z.ZodEnum<["model", "provider", "user", "agent", "object", "operation", "date", "hour", "tag"]>;
|
|
444
679
|
value: z.ZodString;
|
|
680
|
+
/** Metrics */
|
|
445
681
|
totalCost: z.ZodNumber;
|
|
446
682
|
requestCount: z.ZodNumber;
|
|
447
683
|
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
684
|
+
/** Share */
|
|
448
685
|
percentageOfTotal: z.ZodNumber;
|
|
686
|
+
/** Time Range */
|
|
449
687
|
periodStart: z.ZodOptional<z.ZodString>;
|
|
450
688
|
periodEnd: z.ZodOptional<z.ZodString>;
|
|
451
|
-
}, z.
|
|
689
|
+
}, "strip", z.ZodTypeAny, {
|
|
690
|
+
value: string;
|
|
691
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
692
|
+
requestCount: number;
|
|
693
|
+
totalCost: number;
|
|
694
|
+
percentageOfTotal: number;
|
|
695
|
+
periodStart?: string | undefined;
|
|
696
|
+
periodEnd?: string | undefined;
|
|
697
|
+
totalTokens?: number | undefined;
|
|
698
|
+
}, {
|
|
699
|
+
value: string;
|
|
700
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
701
|
+
requestCount: number;
|
|
702
|
+
totalCost: number;
|
|
703
|
+
percentageOfTotal: number;
|
|
704
|
+
periodStart?: string | undefined;
|
|
705
|
+
periodEnd?: string | undefined;
|
|
706
|
+
totalTokens?: number | undefined;
|
|
707
|
+
}>, "many">>;
|
|
708
|
+
/** Efficiency Metrics */
|
|
452
709
|
tokensPerDollar: z.ZodOptional<z.ZodNumber>;
|
|
453
710
|
requestsPerDollar: z.ZodOptional<z.ZodNumber>;
|
|
454
|
-
}, z.
|
|
711
|
+
}, "strip", z.ZodTypeAny, {
|
|
712
|
+
currency: string;
|
|
713
|
+
totalCost: number;
|
|
714
|
+
periodStart: string;
|
|
715
|
+
periodEnd: string;
|
|
716
|
+
totalRequests: number;
|
|
717
|
+
averageCostPerRequest: number;
|
|
718
|
+
averageRequestsPerDay: number;
|
|
719
|
+
totalTokens?: number | undefined;
|
|
720
|
+
averageCostPerToken?: number | undefined;
|
|
721
|
+
costTrend?: "stable" | "increasing" | "decreasing" | undefined;
|
|
722
|
+
trendPercentage?: number | undefined;
|
|
723
|
+
byModel?: {
|
|
724
|
+
value: string;
|
|
725
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
726
|
+
requestCount: number;
|
|
727
|
+
totalCost: number;
|
|
728
|
+
percentageOfTotal: number;
|
|
729
|
+
periodStart?: string | undefined;
|
|
730
|
+
periodEnd?: string | undefined;
|
|
731
|
+
totalTokens?: number | undefined;
|
|
732
|
+
}[] | undefined;
|
|
733
|
+
byProvider?: {
|
|
734
|
+
value: string;
|
|
735
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
736
|
+
requestCount: number;
|
|
737
|
+
totalCost: number;
|
|
738
|
+
percentageOfTotal: number;
|
|
739
|
+
periodStart?: string | undefined;
|
|
740
|
+
periodEnd?: string | undefined;
|
|
741
|
+
totalTokens?: number | undefined;
|
|
742
|
+
}[] | undefined;
|
|
743
|
+
byUser?: {
|
|
744
|
+
value: string;
|
|
745
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
746
|
+
requestCount: number;
|
|
747
|
+
totalCost: number;
|
|
748
|
+
percentageOfTotal: number;
|
|
749
|
+
periodStart?: string | undefined;
|
|
750
|
+
periodEnd?: string | undefined;
|
|
751
|
+
totalTokens?: number | undefined;
|
|
752
|
+
}[] | undefined;
|
|
753
|
+
byAgent?: {
|
|
754
|
+
value: string;
|
|
755
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
756
|
+
requestCount: number;
|
|
757
|
+
totalCost: number;
|
|
758
|
+
percentageOfTotal: number;
|
|
759
|
+
periodStart?: string | undefined;
|
|
760
|
+
periodEnd?: string | undefined;
|
|
761
|
+
totalTokens?: number | undefined;
|
|
762
|
+
}[] | undefined;
|
|
763
|
+
byOperation?: {
|
|
764
|
+
value: string;
|
|
765
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
766
|
+
requestCount: number;
|
|
767
|
+
totalCost: number;
|
|
768
|
+
percentageOfTotal: number;
|
|
769
|
+
periodStart?: string | undefined;
|
|
770
|
+
periodEnd?: string | undefined;
|
|
771
|
+
totalTokens?: number | undefined;
|
|
772
|
+
}[] | undefined;
|
|
773
|
+
byDate?: {
|
|
774
|
+
value: string;
|
|
775
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
776
|
+
requestCount: number;
|
|
777
|
+
totalCost: number;
|
|
778
|
+
percentageOfTotal: number;
|
|
779
|
+
periodStart?: string | undefined;
|
|
780
|
+
periodEnd?: string | undefined;
|
|
781
|
+
totalTokens?: number | undefined;
|
|
782
|
+
}[] | undefined;
|
|
783
|
+
topModels?: {
|
|
784
|
+
value: string;
|
|
785
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
786
|
+
requestCount: number;
|
|
787
|
+
totalCost: number;
|
|
788
|
+
percentageOfTotal: number;
|
|
789
|
+
periodStart?: string | undefined;
|
|
790
|
+
periodEnd?: string | undefined;
|
|
791
|
+
totalTokens?: number | undefined;
|
|
792
|
+
}[] | undefined;
|
|
793
|
+
topUsers?: {
|
|
794
|
+
value: string;
|
|
795
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
796
|
+
requestCount: number;
|
|
797
|
+
totalCost: number;
|
|
798
|
+
percentageOfTotal: number;
|
|
799
|
+
periodStart?: string | undefined;
|
|
800
|
+
periodEnd?: string | undefined;
|
|
801
|
+
totalTokens?: number | undefined;
|
|
802
|
+
}[] | undefined;
|
|
803
|
+
topAgents?: {
|
|
804
|
+
value: string;
|
|
805
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
806
|
+
requestCount: number;
|
|
807
|
+
totalCost: number;
|
|
808
|
+
percentageOfTotal: number;
|
|
809
|
+
periodStart?: string | undefined;
|
|
810
|
+
periodEnd?: string | undefined;
|
|
811
|
+
totalTokens?: number | undefined;
|
|
812
|
+
}[] | undefined;
|
|
813
|
+
tokensPerDollar?: number | undefined;
|
|
814
|
+
requestsPerDollar?: number | undefined;
|
|
815
|
+
}, {
|
|
816
|
+
totalCost: number;
|
|
817
|
+
periodStart: string;
|
|
818
|
+
periodEnd: string;
|
|
819
|
+
totalRequests: number;
|
|
820
|
+
averageCostPerRequest: number;
|
|
821
|
+
averageRequestsPerDay: number;
|
|
822
|
+
currency?: string | undefined;
|
|
823
|
+
totalTokens?: number | undefined;
|
|
824
|
+
averageCostPerToken?: number | undefined;
|
|
825
|
+
costTrend?: "stable" | "increasing" | "decreasing" | undefined;
|
|
826
|
+
trendPercentage?: number | undefined;
|
|
827
|
+
byModel?: {
|
|
828
|
+
value: string;
|
|
829
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
830
|
+
requestCount: number;
|
|
831
|
+
totalCost: number;
|
|
832
|
+
percentageOfTotal: number;
|
|
833
|
+
periodStart?: string | undefined;
|
|
834
|
+
periodEnd?: string | undefined;
|
|
835
|
+
totalTokens?: number | undefined;
|
|
836
|
+
}[] | undefined;
|
|
837
|
+
byProvider?: {
|
|
838
|
+
value: string;
|
|
839
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
840
|
+
requestCount: number;
|
|
841
|
+
totalCost: number;
|
|
842
|
+
percentageOfTotal: number;
|
|
843
|
+
periodStart?: string | undefined;
|
|
844
|
+
periodEnd?: string | undefined;
|
|
845
|
+
totalTokens?: number | undefined;
|
|
846
|
+
}[] | undefined;
|
|
847
|
+
byUser?: {
|
|
848
|
+
value: string;
|
|
849
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
850
|
+
requestCount: number;
|
|
851
|
+
totalCost: number;
|
|
852
|
+
percentageOfTotal: number;
|
|
853
|
+
periodStart?: string | undefined;
|
|
854
|
+
periodEnd?: string | undefined;
|
|
855
|
+
totalTokens?: number | undefined;
|
|
856
|
+
}[] | undefined;
|
|
857
|
+
byAgent?: {
|
|
858
|
+
value: string;
|
|
859
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
860
|
+
requestCount: number;
|
|
861
|
+
totalCost: number;
|
|
862
|
+
percentageOfTotal: number;
|
|
863
|
+
periodStart?: string | undefined;
|
|
864
|
+
periodEnd?: string | undefined;
|
|
865
|
+
totalTokens?: number | undefined;
|
|
866
|
+
}[] | undefined;
|
|
867
|
+
byOperation?: {
|
|
868
|
+
value: string;
|
|
869
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
870
|
+
requestCount: number;
|
|
871
|
+
totalCost: number;
|
|
872
|
+
percentageOfTotal: number;
|
|
873
|
+
periodStart?: string | undefined;
|
|
874
|
+
periodEnd?: string | undefined;
|
|
875
|
+
totalTokens?: number | undefined;
|
|
876
|
+
}[] | undefined;
|
|
877
|
+
byDate?: {
|
|
878
|
+
value: string;
|
|
879
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
880
|
+
requestCount: number;
|
|
881
|
+
totalCost: number;
|
|
882
|
+
percentageOfTotal: number;
|
|
883
|
+
periodStart?: string | undefined;
|
|
884
|
+
periodEnd?: string | undefined;
|
|
885
|
+
totalTokens?: number | undefined;
|
|
886
|
+
}[] | undefined;
|
|
887
|
+
topModels?: {
|
|
888
|
+
value: string;
|
|
889
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
890
|
+
requestCount: number;
|
|
891
|
+
totalCost: number;
|
|
892
|
+
percentageOfTotal: number;
|
|
893
|
+
periodStart?: string | undefined;
|
|
894
|
+
periodEnd?: string | undefined;
|
|
895
|
+
totalTokens?: number | undefined;
|
|
896
|
+
}[] | undefined;
|
|
897
|
+
topUsers?: {
|
|
898
|
+
value: string;
|
|
899
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
900
|
+
requestCount: number;
|
|
901
|
+
totalCost: number;
|
|
902
|
+
percentageOfTotal: number;
|
|
903
|
+
periodStart?: string | undefined;
|
|
904
|
+
periodEnd?: string | undefined;
|
|
905
|
+
totalTokens?: number | undefined;
|
|
906
|
+
}[] | undefined;
|
|
907
|
+
topAgents?: {
|
|
908
|
+
value: string;
|
|
909
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
910
|
+
requestCount: number;
|
|
911
|
+
totalCost: number;
|
|
912
|
+
percentageOfTotal: number;
|
|
913
|
+
periodStart?: string | undefined;
|
|
914
|
+
periodEnd?: string | undefined;
|
|
915
|
+
totalTokens?: number | undefined;
|
|
916
|
+
}[] | undefined;
|
|
917
|
+
tokensPerDollar?: number | undefined;
|
|
918
|
+
requestsPerDollar?: number | undefined;
|
|
919
|
+
}>;
|
|
455
920
|
/**
|
|
456
921
|
* Cost Optimization Recommendation
|
|
457
922
|
*/
|
|
458
923
|
export declare const CostOptimizationRecommendationSchema: z.ZodObject<{
|
|
924
|
+
/** Recommendation Details */
|
|
459
925
|
id: z.ZodString;
|
|
460
|
-
type: z.ZodEnum<
|
|
461
|
-
|
|
462
|
-
reduce_tokens: "reduce_tokens";
|
|
463
|
-
batch_requests: "batch_requests";
|
|
464
|
-
cache_results: "cache_results";
|
|
465
|
-
adjust_parameters: "adjust_parameters";
|
|
466
|
-
limit_usage: "limit_usage";
|
|
467
|
-
}>;
|
|
926
|
+
type: z.ZodEnum<["switch_model", "reduce_tokens", "batch_requests", "cache_results", "adjust_parameters", "limit_usage"]>;
|
|
927
|
+
/** Impact */
|
|
468
928
|
title: z.ZodString;
|
|
469
929
|
description: z.ZodString;
|
|
470
930
|
estimatedSavings: z.ZodOptional<z.ZodNumber>;
|
|
471
931
|
savingsPercentage: z.ZodOptional<z.ZodNumber>;
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
low: "low";
|
|
476
|
-
}>;
|
|
477
|
-
effort: z.ZodEnum<{
|
|
478
|
-
medium: "medium";
|
|
479
|
-
high: "high";
|
|
480
|
-
low: "low";
|
|
481
|
-
}>;
|
|
932
|
+
/** Implementation */
|
|
933
|
+
priority: z.ZodEnum<["low", "medium", "high"]>;
|
|
934
|
+
effort: z.ZodEnum<["low", "medium", "high"]>;
|
|
482
935
|
actionable: z.ZodDefault<z.ZodBoolean>;
|
|
483
|
-
actionSteps: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
936
|
+
actionSteps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
937
|
+
/** Context */
|
|
484
938
|
targetModel: z.ZodOptional<z.ZodString>;
|
|
485
939
|
alternativeModel: z.ZodOptional<z.ZodString>;
|
|
486
|
-
affectedUsers: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
accepted: "accepted";
|
|
490
|
-
rejected: "rejected";
|
|
491
|
-
implemented: "implemented";
|
|
492
|
-
}>>;
|
|
940
|
+
affectedUsers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
941
|
+
/** Status */
|
|
942
|
+
status: z.ZodDefault<z.ZodEnum<["pending", "accepted", "rejected", "implemented"]>>;
|
|
493
943
|
implementedAt: z.ZodOptional<z.ZodString>;
|
|
494
|
-
}, z.
|
|
944
|
+
}, "strip", z.ZodTypeAny, {
|
|
945
|
+
type: "switch_model" | "reduce_tokens" | "batch_requests" | "cache_results" | "adjust_parameters" | "limit_usage";
|
|
946
|
+
status: "pending" | "accepted" | "rejected" | "implemented";
|
|
947
|
+
description: string;
|
|
948
|
+
priority: "medium" | "high" | "low";
|
|
949
|
+
id: string;
|
|
950
|
+
title: string;
|
|
951
|
+
effort: "medium" | "high" | "low";
|
|
952
|
+
actionable: boolean;
|
|
953
|
+
affectedUsers?: string[] | undefined;
|
|
954
|
+
estimatedSavings?: number | undefined;
|
|
955
|
+
savingsPercentage?: number | undefined;
|
|
956
|
+
actionSteps?: string[] | undefined;
|
|
957
|
+
targetModel?: string | undefined;
|
|
958
|
+
alternativeModel?: string | undefined;
|
|
959
|
+
implementedAt?: string | undefined;
|
|
960
|
+
}, {
|
|
961
|
+
type: "switch_model" | "reduce_tokens" | "batch_requests" | "cache_results" | "adjust_parameters" | "limit_usage";
|
|
962
|
+
description: string;
|
|
963
|
+
priority: "medium" | "high" | "low";
|
|
964
|
+
id: string;
|
|
965
|
+
title: string;
|
|
966
|
+
effort: "medium" | "high" | "low";
|
|
967
|
+
status?: "pending" | "accepted" | "rejected" | "implemented" | undefined;
|
|
968
|
+
affectedUsers?: string[] | undefined;
|
|
969
|
+
estimatedSavings?: number | undefined;
|
|
970
|
+
savingsPercentage?: number | undefined;
|
|
971
|
+
actionable?: boolean | undefined;
|
|
972
|
+
actionSteps?: string[] | undefined;
|
|
973
|
+
targetModel?: string | undefined;
|
|
974
|
+
alternativeModel?: string | undefined;
|
|
975
|
+
implementedAt?: string | undefined;
|
|
976
|
+
}>;
|
|
495
977
|
/**
|
|
496
978
|
* Cost Report
|
|
497
979
|
*/
|
|
498
980
|
export declare const CostReportSchema: z.ZodObject<{
|
|
981
|
+
/** Report Metadata */
|
|
499
982
|
id: z.ZodString;
|
|
500
983
|
name: z.ZodString;
|
|
501
984
|
generatedAt: z.ZodString;
|
|
985
|
+
/** Time Range */
|
|
502
986
|
periodStart: z.ZodString;
|
|
503
987
|
periodEnd: z.ZodString;
|
|
504
|
-
period: z.ZodEnum<
|
|
505
|
-
|
|
506
|
-
hourly: "hourly";
|
|
507
|
-
daily: "daily";
|
|
508
|
-
weekly: "weekly";
|
|
509
|
-
monthly: "monthly";
|
|
510
|
-
quarterly: "quarterly";
|
|
511
|
-
yearly: "yearly";
|
|
512
|
-
}>;
|
|
988
|
+
period: z.ZodEnum<["hourly", "daily", "weekly", "monthly", "quarterly", "yearly", "custom"]>;
|
|
989
|
+
/** Analytics */
|
|
513
990
|
analytics: z.ZodObject<{
|
|
991
|
+
/** Time Range */
|
|
514
992
|
periodStart: z.ZodString;
|
|
515
993
|
periodEnd: z.ZodString;
|
|
994
|
+
/** Summary Metrics */
|
|
516
995
|
totalCost: z.ZodNumber;
|
|
517
996
|
totalRequests: z.ZodNumber;
|
|
518
997
|
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
519
998
|
currency: z.ZodDefault<z.ZodString>;
|
|
999
|
+
/** Averages */
|
|
520
1000
|
averageCostPerRequest: z.ZodNumber;
|
|
521
1001
|
averageCostPerToken: z.ZodOptional<z.ZodNumber>;
|
|
522
1002
|
averageRequestsPerDay: z.ZodNumber;
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
increasing: "increasing";
|
|
526
|
-
decreasing: "decreasing";
|
|
527
|
-
}>>;
|
|
1003
|
+
/** Trends */
|
|
1004
|
+
costTrend: z.ZodOptional<z.ZodEnum<["increasing", "decreasing", "stable"]>>;
|
|
528
1005
|
trendPercentage: z.ZodOptional<z.ZodNumber>;
|
|
1006
|
+
/** Breakdowns */
|
|
529
1007
|
byModel: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
530
|
-
dimension: z.ZodEnum<
|
|
531
|
-
object: "object";
|
|
532
|
-
date: "date";
|
|
533
|
-
provider: "provider";
|
|
534
|
-
operation: "operation";
|
|
535
|
-
user: "user";
|
|
536
|
-
tag: "tag";
|
|
537
|
-
model: "model";
|
|
538
|
-
agent: "agent";
|
|
539
|
-
hour: "hour";
|
|
540
|
-
}>;
|
|
1008
|
+
dimension: z.ZodEnum<["model", "provider", "user", "agent", "object", "operation", "date", "hour", "tag"]>;
|
|
541
1009
|
value: z.ZodString;
|
|
1010
|
+
/** Metrics */
|
|
542
1011
|
totalCost: z.ZodNumber;
|
|
543
1012
|
requestCount: z.ZodNumber;
|
|
544
1013
|
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
1014
|
+
/** Share */
|
|
545
1015
|
percentageOfTotal: z.ZodNumber;
|
|
1016
|
+
/** Time Range */
|
|
546
1017
|
periodStart: z.ZodOptional<z.ZodString>;
|
|
547
1018
|
periodEnd: z.ZodOptional<z.ZodString>;
|
|
548
|
-
}, z.
|
|
1019
|
+
}, "strip", z.ZodTypeAny, {
|
|
1020
|
+
value: string;
|
|
1021
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1022
|
+
requestCount: number;
|
|
1023
|
+
totalCost: number;
|
|
1024
|
+
percentageOfTotal: number;
|
|
1025
|
+
periodStart?: string | undefined;
|
|
1026
|
+
periodEnd?: string | undefined;
|
|
1027
|
+
totalTokens?: number | undefined;
|
|
1028
|
+
}, {
|
|
1029
|
+
value: string;
|
|
1030
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1031
|
+
requestCount: number;
|
|
1032
|
+
totalCost: number;
|
|
1033
|
+
percentageOfTotal: number;
|
|
1034
|
+
periodStart?: string | undefined;
|
|
1035
|
+
periodEnd?: string | undefined;
|
|
1036
|
+
totalTokens?: number | undefined;
|
|
1037
|
+
}>, "many">>;
|
|
549
1038
|
byProvider: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
550
|
-
dimension: z.ZodEnum<
|
|
551
|
-
object: "object";
|
|
552
|
-
date: "date";
|
|
553
|
-
provider: "provider";
|
|
554
|
-
operation: "operation";
|
|
555
|
-
user: "user";
|
|
556
|
-
tag: "tag";
|
|
557
|
-
model: "model";
|
|
558
|
-
agent: "agent";
|
|
559
|
-
hour: "hour";
|
|
560
|
-
}>;
|
|
1039
|
+
dimension: z.ZodEnum<["model", "provider", "user", "agent", "object", "operation", "date", "hour", "tag"]>;
|
|
561
1040
|
value: z.ZodString;
|
|
1041
|
+
/** Metrics */
|
|
562
1042
|
totalCost: z.ZodNumber;
|
|
563
1043
|
requestCount: z.ZodNumber;
|
|
564
1044
|
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
1045
|
+
/** Share */
|
|
565
1046
|
percentageOfTotal: z.ZodNumber;
|
|
1047
|
+
/** Time Range */
|
|
566
1048
|
periodStart: z.ZodOptional<z.ZodString>;
|
|
567
1049
|
periodEnd: z.ZodOptional<z.ZodString>;
|
|
568
|
-
}, z.
|
|
1050
|
+
}, "strip", z.ZodTypeAny, {
|
|
1051
|
+
value: string;
|
|
1052
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1053
|
+
requestCount: number;
|
|
1054
|
+
totalCost: number;
|
|
1055
|
+
percentageOfTotal: number;
|
|
1056
|
+
periodStart?: string | undefined;
|
|
1057
|
+
periodEnd?: string | undefined;
|
|
1058
|
+
totalTokens?: number | undefined;
|
|
1059
|
+
}, {
|
|
1060
|
+
value: string;
|
|
1061
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1062
|
+
requestCount: number;
|
|
1063
|
+
totalCost: number;
|
|
1064
|
+
percentageOfTotal: number;
|
|
1065
|
+
periodStart?: string | undefined;
|
|
1066
|
+
periodEnd?: string | undefined;
|
|
1067
|
+
totalTokens?: number | undefined;
|
|
1068
|
+
}>, "many">>;
|
|
569
1069
|
byUser: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
570
|
-
dimension: z.ZodEnum<
|
|
571
|
-
object: "object";
|
|
572
|
-
date: "date";
|
|
573
|
-
provider: "provider";
|
|
574
|
-
operation: "operation";
|
|
575
|
-
user: "user";
|
|
576
|
-
tag: "tag";
|
|
577
|
-
model: "model";
|
|
578
|
-
agent: "agent";
|
|
579
|
-
hour: "hour";
|
|
580
|
-
}>;
|
|
1070
|
+
dimension: z.ZodEnum<["model", "provider", "user", "agent", "object", "operation", "date", "hour", "tag"]>;
|
|
581
1071
|
value: z.ZodString;
|
|
1072
|
+
/** Metrics */
|
|
582
1073
|
totalCost: z.ZodNumber;
|
|
583
1074
|
requestCount: z.ZodNumber;
|
|
584
1075
|
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
1076
|
+
/** Share */
|
|
585
1077
|
percentageOfTotal: z.ZodNumber;
|
|
1078
|
+
/** Time Range */
|
|
586
1079
|
periodStart: z.ZodOptional<z.ZodString>;
|
|
587
1080
|
periodEnd: z.ZodOptional<z.ZodString>;
|
|
588
|
-
}, z.
|
|
1081
|
+
}, "strip", z.ZodTypeAny, {
|
|
1082
|
+
value: string;
|
|
1083
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1084
|
+
requestCount: number;
|
|
1085
|
+
totalCost: number;
|
|
1086
|
+
percentageOfTotal: number;
|
|
1087
|
+
periodStart?: string | undefined;
|
|
1088
|
+
periodEnd?: string | undefined;
|
|
1089
|
+
totalTokens?: number | undefined;
|
|
1090
|
+
}, {
|
|
1091
|
+
value: string;
|
|
1092
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1093
|
+
requestCount: number;
|
|
1094
|
+
totalCost: number;
|
|
1095
|
+
percentageOfTotal: number;
|
|
1096
|
+
periodStart?: string | undefined;
|
|
1097
|
+
periodEnd?: string | undefined;
|
|
1098
|
+
totalTokens?: number | undefined;
|
|
1099
|
+
}>, "many">>;
|
|
589
1100
|
byAgent: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
590
|
-
dimension: z.ZodEnum<
|
|
591
|
-
object: "object";
|
|
592
|
-
date: "date";
|
|
593
|
-
provider: "provider";
|
|
594
|
-
operation: "operation";
|
|
595
|
-
user: "user";
|
|
596
|
-
tag: "tag";
|
|
597
|
-
model: "model";
|
|
598
|
-
agent: "agent";
|
|
599
|
-
hour: "hour";
|
|
600
|
-
}>;
|
|
1101
|
+
dimension: z.ZodEnum<["model", "provider", "user", "agent", "object", "operation", "date", "hour", "tag"]>;
|
|
601
1102
|
value: z.ZodString;
|
|
1103
|
+
/** Metrics */
|
|
602
1104
|
totalCost: z.ZodNumber;
|
|
603
1105
|
requestCount: z.ZodNumber;
|
|
604
1106
|
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
1107
|
+
/** Share */
|
|
605
1108
|
percentageOfTotal: z.ZodNumber;
|
|
1109
|
+
/** Time Range */
|
|
606
1110
|
periodStart: z.ZodOptional<z.ZodString>;
|
|
607
1111
|
periodEnd: z.ZodOptional<z.ZodString>;
|
|
608
|
-
}, z.
|
|
1112
|
+
}, "strip", z.ZodTypeAny, {
|
|
1113
|
+
value: string;
|
|
1114
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1115
|
+
requestCount: number;
|
|
1116
|
+
totalCost: number;
|
|
1117
|
+
percentageOfTotal: number;
|
|
1118
|
+
periodStart?: string | undefined;
|
|
1119
|
+
periodEnd?: string | undefined;
|
|
1120
|
+
totalTokens?: number | undefined;
|
|
1121
|
+
}, {
|
|
1122
|
+
value: string;
|
|
1123
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1124
|
+
requestCount: number;
|
|
1125
|
+
totalCost: number;
|
|
1126
|
+
percentageOfTotal: number;
|
|
1127
|
+
periodStart?: string | undefined;
|
|
1128
|
+
periodEnd?: string | undefined;
|
|
1129
|
+
totalTokens?: number | undefined;
|
|
1130
|
+
}>, "many">>;
|
|
609
1131
|
byOperation: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
610
|
-
dimension: z.ZodEnum<
|
|
611
|
-
object: "object";
|
|
612
|
-
date: "date";
|
|
613
|
-
provider: "provider";
|
|
614
|
-
operation: "operation";
|
|
615
|
-
user: "user";
|
|
616
|
-
tag: "tag";
|
|
617
|
-
model: "model";
|
|
618
|
-
agent: "agent";
|
|
619
|
-
hour: "hour";
|
|
620
|
-
}>;
|
|
1132
|
+
dimension: z.ZodEnum<["model", "provider", "user", "agent", "object", "operation", "date", "hour", "tag"]>;
|
|
621
1133
|
value: z.ZodString;
|
|
1134
|
+
/** Metrics */
|
|
622
1135
|
totalCost: z.ZodNumber;
|
|
623
1136
|
requestCount: z.ZodNumber;
|
|
624
1137
|
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
1138
|
+
/** Share */
|
|
625
1139
|
percentageOfTotal: z.ZodNumber;
|
|
1140
|
+
/** Time Range */
|
|
626
1141
|
periodStart: z.ZodOptional<z.ZodString>;
|
|
627
1142
|
periodEnd: z.ZodOptional<z.ZodString>;
|
|
628
|
-
}, z.
|
|
1143
|
+
}, "strip", z.ZodTypeAny, {
|
|
1144
|
+
value: string;
|
|
1145
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1146
|
+
requestCount: number;
|
|
1147
|
+
totalCost: number;
|
|
1148
|
+
percentageOfTotal: number;
|
|
1149
|
+
periodStart?: string | undefined;
|
|
1150
|
+
periodEnd?: string | undefined;
|
|
1151
|
+
totalTokens?: number | undefined;
|
|
1152
|
+
}, {
|
|
1153
|
+
value: string;
|
|
1154
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1155
|
+
requestCount: number;
|
|
1156
|
+
totalCost: number;
|
|
1157
|
+
percentageOfTotal: number;
|
|
1158
|
+
periodStart?: string | undefined;
|
|
1159
|
+
periodEnd?: string | undefined;
|
|
1160
|
+
totalTokens?: number | undefined;
|
|
1161
|
+
}>, "many">>;
|
|
629
1162
|
byDate: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
630
|
-
dimension: z.ZodEnum<
|
|
631
|
-
object: "object";
|
|
632
|
-
date: "date";
|
|
633
|
-
provider: "provider";
|
|
634
|
-
operation: "operation";
|
|
635
|
-
user: "user";
|
|
636
|
-
tag: "tag";
|
|
637
|
-
model: "model";
|
|
638
|
-
agent: "agent";
|
|
639
|
-
hour: "hour";
|
|
640
|
-
}>;
|
|
1163
|
+
dimension: z.ZodEnum<["model", "provider", "user", "agent", "object", "operation", "date", "hour", "tag"]>;
|
|
641
1164
|
value: z.ZodString;
|
|
1165
|
+
/** Metrics */
|
|
642
1166
|
totalCost: z.ZodNumber;
|
|
643
1167
|
requestCount: z.ZodNumber;
|
|
644
1168
|
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
1169
|
+
/** Share */
|
|
645
1170
|
percentageOfTotal: z.ZodNumber;
|
|
1171
|
+
/** Time Range */
|
|
646
1172
|
periodStart: z.ZodOptional<z.ZodString>;
|
|
647
1173
|
periodEnd: z.ZodOptional<z.ZodString>;
|
|
648
|
-
}, z.
|
|
1174
|
+
}, "strip", z.ZodTypeAny, {
|
|
1175
|
+
value: string;
|
|
1176
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1177
|
+
requestCount: number;
|
|
1178
|
+
totalCost: number;
|
|
1179
|
+
percentageOfTotal: number;
|
|
1180
|
+
periodStart?: string | undefined;
|
|
1181
|
+
periodEnd?: string | undefined;
|
|
1182
|
+
totalTokens?: number | undefined;
|
|
1183
|
+
}, {
|
|
1184
|
+
value: string;
|
|
1185
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1186
|
+
requestCount: number;
|
|
1187
|
+
totalCost: number;
|
|
1188
|
+
percentageOfTotal: number;
|
|
1189
|
+
periodStart?: string | undefined;
|
|
1190
|
+
periodEnd?: string | undefined;
|
|
1191
|
+
totalTokens?: number | undefined;
|
|
1192
|
+
}>, "many">>;
|
|
1193
|
+
/** Top Consumers */
|
|
649
1194
|
topModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
650
|
-
dimension: z.ZodEnum<
|
|
651
|
-
object: "object";
|
|
652
|
-
date: "date";
|
|
653
|
-
provider: "provider";
|
|
654
|
-
operation: "operation";
|
|
655
|
-
user: "user";
|
|
656
|
-
tag: "tag";
|
|
657
|
-
model: "model";
|
|
658
|
-
agent: "agent";
|
|
659
|
-
hour: "hour";
|
|
660
|
-
}>;
|
|
1195
|
+
dimension: z.ZodEnum<["model", "provider", "user", "agent", "object", "operation", "date", "hour", "tag"]>;
|
|
661
1196
|
value: z.ZodString;
|
|
1197
|
+
/** Metrics */
|
|
662
1198
|
totalCost: z.ZodNumber;
|
|
663
1199
|
requestCount: z.ZodNumber;
|
|
664
1200
|
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
1201
|
+
/** Share */
|
|
665
1202
|
percentageOfTotal: z.ZodNumber;
|
|
1203
|
+
/** Time Range */
|
|
666
1204
|
periodStart: z.ZodOptional<z.ZodString>;
|
|
667
1205
|
periodEnd: z.ZodOptional<z.ZodString>;
|
|
668
|
-
}, z.
|
|
1206
|
+
}, "strip", z.ZodTypeAny, {
|
|
1207
|
+
value: string;
|
|
1208
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1209
|
+
requestCount: number;
|
|
1210
|
+
totalCost: number;
|
|
1211
|
+
percentageOfTotal: number;
|
|
1212
|
+
periodStart?: string | undefined;
|
|
1213
|
+
periodEnd?: string | undefined;
|
|
1214
|
+
totalTokens?: number | undefined;
|
|
1215
|
+
}, {
|
|
1216
|
+
value: string;
|
|
1217
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1218
|
+
requestCount: number;
|
|
1219
|
+
totalCost: number;
|
|
1220
|
+
percentageOfTotal: number;
|
|
1221
|
+
periodStart?: string | undefined;
|
|
1222
|
+
periodEnd?: string | undefined;
|
|
1223
|
+
totalTokens?: number | undefined;
|
|
1224
|
+
}>, "many">>;
|
|
669
1225
|
topUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
670
|
-
dimension: z.ZodEnum<
|
|
671
|
-
object: "object";
|
|
672
|
-
date: "date";
|
|
673
|
-
provider: "provider";
|
|
674
|
-
operation: "operation";
|
|
675
|
-
user: "user";
|
|
676
|
-
tag: "tag";
|
|
677
|
-
model: "model";
|
|
678
|
-
agent: "agent";
|
|
679
|
-
hour: "hour";
|
|
680
|
-
}>;
|
|
1226
|
+
dimension: z.ZodEnum<["model", "provider", "user", "agent", "object", "operation", "date", "hour", "tag"]>;
|
|
681
1227
|
value: z.ZodString;
|
|
1228
|
+
/** Metrics */
|
|
682
1229
|
totalCost: z.ZodNumber;
|
|
683
1230
|
requestCount: z.ZodNumber;
|
|
684
1231
|
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
1232
|
+
/** Share */
|
|
685
1233
|
percentageOfTotal: z.ZodNumber;
|
|
1234
|
+
/** Time Range */
|
|
686
1235
|
periodStart: z.ZodOptional<z.ZodString>;
|
|
687
1236
|
periodEnd: z.ZodOptional<z.ZodString>;
|
|
688
|
-
}, z.
|
|
1237
|
+
}, "strip", z.ZodTypeAny, {
|
|
1238
|
+
value: string;
|
|
1239
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1240
|
+
requestCount: number;
|
|
1241
|
+
totalCost: number;
|
|
1242
|
+
percentageOfTotal: number;
|
|
1243
|
+
periodStart?: string | undefined;
|
|
1244
|
+
periodEnd?: string | undefined;
|
|
1245
|
+
totalTokens?: number | undefined;
|
|
1246
|
+
}, {
|
|
1247
|
+
value: string;
|
|
1248
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1249
|
+
requestCount: number;
|
|
1250
|
+
totalCost: number;
|
|
1251
|
+
percentageOfTotal: number;
|
|
1252
|
+
periodStart?: string | undefined;
|
|
1253
|
+
periodEnd?: string | undefined;
|
|
1254
|
+
totalTokens?: number | undefined;
|
|
1255
|
+
}>, "many">>;
|
|
689
1256
|
topAgents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
690
|
-
dimension: z.ZodEnum<
|
|
691
|
-
object: "object";
|
|
692
|
-
date: "date";
|
|
693
|
-
provider: "provider";
|
|
694
|
-
operation: "operation";
|
|
695
|
-
user: "user";
|
|
696
|
-
tag: "tag";
|
|
697
|
-
model: "model";
|
|
698
|
-
agent: "agent";
|
|
699
|
-
hour: "hour";
|
|
700
|
-
}>;
|
|
1257
|
+
dimension: z.ZodEnum<["model", "provider", "user", "agent", "object", "operation", "date", "hour", "tag"]>;
|
|
701
1258
|
value: z.ZodString;
|
|
1259
|
+
/** Metrics */
|
|
702
1260
|
totalCost: z.ZodNumber;
|
|
703
1261
|
requestCount: z.ZodNumber;
|
|
704
1262
|
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
1263
|
+
/** Share */
|
|
705
1264
|
percentageOfTotal: z.ZodNumber;
|
|
1265
|
+
/** Time Range */
|
|
706
1266
|
periodStart: z.ZodOptional<z.ZodString>;
|
|
707
1267
|
periodEnd: z.ZodOptional<z.ZodString>;
|
|
708
|
-
}, z.
|
|
1268
|
+
}, "strip", z.ZodTypeAny, {
|
|
1269
|
+
value: string;
|
|
1270
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1271
|
+
requestCount: number;
|
|
1272
|
+
totalCost: number;
|
|
1273
|
+
percentageOfTotal: number;
|
|
1274
|
+
periodStart?: string | undefined;
|
|
1275
|
+
periodEnd?: string | undefined;
|
|
1276
|
+
totalTokens?: number | undefined;
|
|
1277
|
+
}, {
|
|
1278
|
+
value: string;
|
|
1279
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1280
|
+
requestCount: number;
|
|
1281
|
+
totalCost: number;
|
|
1282
|
+
percentageOfTotal: number;
|
|
1283
|
+
periodStart?: string | undefined;
|
|
1284
|
+
periodEnd?: string | undefined;
|
|
1285
|
+
totalTokens?: number | undefined;
|
|
1286
|
+
}>, "many">>;
|
|
1287
|
+
/** Efficiency Metrics */
|
|
709
1288
|
tokensPerDollar: z.ZodOptional<z.ZodNumber>;
|
|
710
1289
|
requestsPerDollar: z.ZodOptional<z.ZodNumber>;
|
|
711
|
-
}, z.
|
|
1290
|
+
}, "strip", z.ZodTypeAny, {
|
|
1291
|
+
currency: string;
|
|
1292
|
+
totalCost: number;
|
|
1293
|
+
periodStart: string;
|
|
1294
|
+
periodEnd: string;
|
|
1295
|
+
totalRequests: number;
|
|
1296
|
+
averageCostPerRequest: number;
|
|
1297
|
+
averageRequestsPerDay: number;
|
|
1298
|
+
totalTokens?: number | undefined;
|
|
1299
|
+
averageCostPerToken?: number | undefined;
|
|
1300
|
+
costTrend?: "stable" | "increasing" | "decreasing" | undefined;
|
|
1301
|
+
trendPercentage?: number | undefined;
|
|
1302
|
+
byModel?: {
|
|
1303
|
+
value: string;
|
|
1304
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1305
|
+
requestCount: number;
|
|
1306
|
+
totalCost: number;
|
|
1307
|
+
percentageOfTotal: number;
|
|
1308
|
+
periodStart?: string | undefined;
|
|
1309
|
+
periodEnd?: string | undefined;
|
|
1310
|
+
totalTokens?: number | undefined;
|
|
1311
|
+
}[] | undefined;
|
|
1312
|
+
byProvider?: {
|
|
1313
|
+
value: string;
|
|
1314
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1315
|
+
requestCount: number;
|
|
1316
|
+
totalCost: number;
|
|
1317
|
+
percentageOfTotal: number;
|
|
1318
|
+
periodStart?: string | undefined;
|
|
1319
|
+
periodEnd?: string | undefined;
|
|
1320
|
+
totalTokens?: number | undefined;
|
|
1321
|
+
}[] | undefined;
|
|
1322
|
+
byUser?: {
|
|
1323
|
+
value: string;
|
|
1324
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1325
|
+
requestCount: number;
|
|
1326
|
+
totalCost: number;
|
|
1327
|
+
percentageOfTotal: number;
|
|
1328
|
+
periodStart?: string | undefined;
|
|
1329
|
+
periodEnd?: string | undefined;
|
|
1330
|
+
totalTokens?: number | undefined;
|
|
1331
|
+
}[] | undefined;
|
|
1332
|
+
byAgent?: {
|
|
1333
|
+
value: string;
|
|
1334
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1335
|
+
requestCount: number;
|
|
1336
|
+
totalCost: number;
|
|
1337
|
+
percentageOfTotal: number;
|
|
1338
|
+
periodStart?: string | undefined;
|
|
1339
|
+
periodEnd?: string | undefined;
|
|
1340
|
+
totalTokens?: number | undefined;
|
|
1341
|
+
}[] | undefined;
|
|
1342
|
+
byOperation?: {
|
|
1343
|
+
value: string;
|
|
1344
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1345
|
+
requestCount: number;
|
|
1346
|
+
totalCost: number;
|
|
1347
|
+
percentageOfTotal: number;
|
|
1348
|
+
periodStart?: string | undefined;
|
|
1349
|
+
periodEnd?: string | undefined;
|
|
1350
|
+
totalTokens?: number | undefined;
|
|
1351
|
+
}[] | undefined;
|
|
1352
|
+
byDate?: {
|
|
1353
|
+
value: string;
|
|
1354
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1355
|
+
requestCount: number;
|
|
1356
|
+
totalCost: number;
|
|
1357
|
+
percentageOfTotal: number;
|
|
1358
|
+
periodStart?: string | undefined;
|
|
1359
|
+
periodEnd?: string | undefined;
|
|
1360
|
+
totalTokens?: number | undefined;
|
|
1361
|
+
}[] | undefined;
|
|
1362
|
+
topModels?: {
|
|
1363
|
+
value: string;
|
|
1364
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1365
|
+
requestCount: number;
|
|
1366
|
+
totalCost: number;
|
|
1367
|
+
percentageOfTotal: number;
|
|
1368
|
+
periodStart?: string | undefined;
|
|
1369
|
+
periodEnd?: string | undefined;
|
|
1370
|
+
totalTokens?: number | undefined;
|
|
1371
|
+
}[] | undefined;
|
|
1372
|
+
topUsers?: {
|
|
1373
|
+
value: string;
|
|
1374
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1375
|
+
requestCount: number;
|
|
1376
|
+
totalCost: number;
|
|
1377
|
+
percentageOfTotal: number;
|
|
1378
|
+
periodStart?: string | undefined;
|
|
1379
|
+
periodEnd?: string | undefined;
|
|
1380
|
+
totalTokens?: number | undefined;
|
|
1381
|
+
}[] | undefined;
|
|
1382
|
+
topAgents?: {
|
|
1383
|
+
value: string;
|
|
1384
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1385
|
+
requestCount: number;
|
|
1386
|
+
totalCost: number;
|
|
1387
|
+
percentageOfTotal: number;
|
|
1388
|
+
periodStart?: string | undefined;
|
|
1389
|
+
periodEnd?: string | undefined;
|
|
1390
|
+
totalTokens?: number | undefined;
|
|
1391
|
+
}[] | undefined;
|
|
1392
|
+
tokensPerDollar?: number | undefined;
|
|
1393
|
+
requestsPerDollar?: number | undefined;
|
|
1394
|
+
}, {
|
|
1395
|
+
totalCost: number;
|
|
1396
|
+
periodStart: string;
|
|
1397
|
+
periodEnd: string;
|
|
1398
|
+
totalRequests: number;
|
|
1399
|
+
averageCostPerRequest: number;
|
|
1400
|
+
averageRequestsPerDay: number;
|
|
1401
|
+
currency?: string | undefined;
|
|
1402
|
+
totalTokens?: number | undefined;
|
|
1403
|
+
averageCostPerToken?: number | undefined;
|
|
1404
|
+
costTrend?: "stable" | "increasing" | "decreasing" | undefined;
|
|
1405
|
+
trendPercentage?: number | undefined;
|
|
1406
|
+
byModel?: {
|
|
1407
|
+
value: string;
|
|
1408
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1409
|
+
requestCount: number;
|
|
1410
|
+
totalCost: number;
|
|
1411
|
+
percentageOfTotal: number;
|
|
1412
|
+
periodStart?: string | undefined;
|
|
1413
|
+
periodEnd?: string | undefined;
|
|
1414
|
+
totalTokens?: number | undefined;
|
|
1415
|
+
}[] | undefined;
|
|
1416
|
+
byProvider?: {
|
|
1417
|
+
value: string;
|
|
1418
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1419
|
+
requestCount: number;
|
|
1420
|
+
totalCost: number;
|
|
1421
|
+
percentageOfTotal: number;
|
|
1422
|
+
periodStart?: string | undefined;
|
|
1423
|
+
periodEnd?: string | undefined;
|
|
1424
|
+
totalTokens?: number | undefined;
|
|
1425
|
+
}[] | undefined;
|
|
1426
|
+
byUser?: {
|
|
1427
|
+
value: string;
|
|
1428
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1429
|
+
requestCount: number;
|
|
1430
|
+
totalCost: number;
|
|
1431
|
+
percentageOfTotal: number;
|
|
1432
|
+
periodStart?: string | undefined;
|
|
1433
|
+
periodEnd?: string | undefined;
|
|
1434
|
+
totalTokens?: number | undefined;
|
|
1435
|
+
}[] | undefined;
|
|
1436
|
+
byAgent?: {
|
|
1437
|
+
value: string;
|
|
1438
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1439
|
+
requestCount: number;
|
|
1440
|
+
totalCost: number;
|
|
1441
|
+
percentageOfTotal: number;
|
|
1442
|
+
periodStart?: string | undefined;
|
|
1443
|
+
periodEnd?: string | undefined;
|
|
1444
|
+
totalTokens?: number | undefined;
|
|
1445
|
+
}[] | undefined;
|
|
1446
|
+
byOperation?: {
|
|
1447
|
+
value: string;
|
|
1448
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1449
|
+
requestCount: number;
|
|
1450
|
+
totalCost: number;
|
|
1451
|
+
percentageOfTotal: number;
|
|
1452
|
+
periodStart?: string | undefined;
|
|
1453
|
+
periodEnd?: string | undefined;
|
|
1454
|
+
totalTokens?: number | undefined;
|
|
1455
|
+
}[] | undefined;
|
|
1456
|
+
byDate?: {
|
|
1457
|
+
value: string;
|
|
1458
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1459
|
+
requestCount: number;
|
|
1460
|
+
totalCost: number;
|
|
1461
|
+
percentageOfTotal: number;
|
|
1462
|
+
periodStart?: string | undefined;
|
|
1463
|
+
periodEnd?: string | undefined;
|
|
1464
|
+
totalTokens?: number | undefined;
|
|
1465
|
+
}[] | undefined;
|
|
1466
|
+
topModels?: {
|
|
1467
|
+
value: string;
|
|
1468
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1469
|
+
requestCount: number;
|
|
1470
|
+
totalCost: number;
|
|
1471
|
+
percentageOfTotal: number;
|
|
1472
|
+
periodStart?: string | undefined;
|
|
1473
|
+
periodEnd?: string | undefined;
|
|
1474
|
+
totalTokens?: number | undefined;
|
|
1475
|
+
}[] | undefined;
|
|
1476
|
+
topUsers?: {
|
|
1477
|
+
value: string;
|
|
1478
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1479
|
+
requestCount: number;
|
|
1480
|
+
totalCost: number;
|
|
1481
|
+
percentageOfTotal: number;
|
|
1482
|
+
periodStart?: string | undefined;
|
|
1483
|
+
periodEnd?: string | undefined;
|
|
1484
|
+
totalTokens?: number | undefined;
|
|
1485
|
+
}[] | undefined;
|
|
1486
|
+
topAgents?: {
|
|
1487
|
+
value: string;
|
|
1488
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1489
|
+
requestCount: number;
|
|
1490
|
+
totalCost: number;
|
|
1491
|
+
percentageOfTotal: number;
|
|
1492
|
+
periodStart?: string | undefined;
|
|
1493
|
+
periodEnd?: string | undefined;
|
|
1494
|
+
totalTokens?: number | undefined;
|
|
1495
|
+
}[] | undefined;
|
|
1496
|
+
tokensPerDollar?: number | undefined;
|
|
1497
|
+
requestsPerDollar?: number | undefined;
|
|
1498
|
+
}>;
|
|
1499
|
+
/** Budgets */
|
|
712
1500
|
budgets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1501
|
+
/** Budget Reference */
|
|
713
1502
|
budgetId: z.ZodString;
|
|
714
|
-
type: z.ZodEnum<
|
|
715
|
-
object: "object";
|
|
716
|
-
department: "department";
|
|
717
|
-
user: "user";
|
|
718
|
-
global: "global";
|
|
719
|
-
project: "project";
|
|
720
|
-
agent: "agent";
|
|
721
|
-
}>;
|
|
1503
|
+
type: z.ZodEnum<["global", "user", "agent", "object", "project", "department"]>;
|
|
722
1504
|
scope: z.ZodOptional<z.ZodString>;
|
|
1505
|
+
/** Current Period */
|
|
723
1506
|
periodStart: z.ZodString;
|
|
724
1507
|
periodEnd: z.ZodString;
|
|
1508
|
+
/** Usage */
|
|
725
1509
|
currentCost: z.ZodDefault<z.ZodNumber>;
|
|
726
1510
|
maxCost: z.ZodNumber;
|
|
727
1511
|
currency: z.ZodDefault<z.ZodString>;
|
|
1512
|
+
/** Status */
|
|
728
1513
|
percentageUsed: z.ZodNumber;
|
|
729
1514
|
remainingCost: z.ZodNumber;
|
|
730
1515
|
isExceeded: z.ZodDefault<z.ZodBoolean>;
|
|
731
1516
|
isWarning: z.ZodDefault<z.ZodBoolean>;
|
|
1517
|
+
/** Projections */
|
|
732
1518
|
projectedCost: z.ZodOptional<z.ZodNumber>;
|
|
733
1519
|
projectedOverage: z.ZodOptional<z.ZodNumber>;
|
|
1520
|
+
/** Last Update */
|
|
734
1521
|
lastUpdated: z.ZodString;
|
|
735
|
-
}, z.
|
|
1522
|
+
}, "strip", z.ZodTypeAny, {
|
|
1523
|
+
type: "object" | "department" | "user" | "global" | "project" | "agent";
|
|
1524
|
+
currency: string;
|
|
1525
|
+
maxCost: number;
|
|
1526
|
+
budgetId: string;
|
|
1527
|
+
periodStart: string;
|
|
1528
|
+
periodEnd: string;
|
|
1529
|
+
currentCost: number;
|
|
1530
|
+
percentageUsed: number;
|
|
1531
|
+
remainingCost: number;
|
|
1532
|
+
isExceeded: boolean;
|
|
1533
|
+
isWarning: boolean;
|
|
1534
|
+
lastUpdated: string;
|
|
1535
|
+
scope?: string | undefined;
|
|
1536
|
+
projectedCost?: number | undefined;
|
|
1537
|
+
projectedOverage?: number | undefined;
|
|
1538
|
+
}, {
|
|
1539
|
+
type: "object" | "department" | "user" | "global" | "project" | "agent";
|
|
1540
|
+
maxCost: number;
|
|
1541
|
+
budgetId: string;
|
|
1542
|
+
periodStart: string;
|
|
1543
|
+
periodEnd: string;
|
|
1544
|
+
percentageUsed: number;
|
|
1545
|
+
remainingCost: number;
|
|
1546
|
+
lastUpdated: string;
|
|
1547
|
+
scope?: string | undefined;
|
|
1548
|
+
currency?: string | undefined;
|
|
1549
|
+
currentCost?: number | undefined;
|
|
1550
|
+
isExceeded?: boolean | undefined;
|
|
1551
|
+
isWarning?: boolean | undefined;
|
|
1552
|
+
projectedCost?: number | undefined;
|
|
1553
|
+
projectedOverage?: number | undefined;
|
|
1554
|
+
}>, "many">>;
|
|
1555
|
+
/** Alerts */
|
|
736
1556
|
alerts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1557
|
+
/** Alert Details */
|
|
737
1558
|
id: z.ZodString;
|
|
738
1559
|
timestamp: z.ZodString;
|
|
739
|
-
type: z.ZodEnum<
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
limit_exceeded: "limit_exceeded";
|
|
743
|
-
anomaly_detected: "anomaly_detected";
|
|
744
|
-
projection_exceeded: "projection_exceeded";
|
|
745
|
-
}>;
|
|
746
|
-
severity: z.ZodEnum<{
|
|
747
|
-
warning: "warning";
|
|
748
|
-
info: "info";
|
|
749
|
-
critical: "critical";
|
|
750
|
-
}>;
|
|
1560
|
+
type: z.ZodEnum<["threshold_warning", "threshold_critical", "limit_exceeded", "anomaly_detected", "projection_exceeded"]>;
|
|
1561
|
+
severity: z.ZodEnum<["info", "warning", "critical"]>;
|
|
1562
|
+
/** Budget Context */
|
|
751
1563
|
budgetId: z.ZodOptional<z.ZodString>;
|
|
752
|
-
budgetType: z.ZodOptional<z.ZodEnum<
|
|
753
|
-
object: "object";
|
|
754
|
-
department: "department";
|
|
755
|
-
user: "user";
|
|
756
|
-
global: "global";
|
|
757
|
-
project: "project";
|
|
758
|
-
agent: "agent";
|
|
759
|
-
}>>;
|
|
1564
|
+
budgetType: z.ZodOptional<z.ZodEnum<["global", "user", "agent", "object", "project", "department"]>>;
|
|
760
1565
|
scope: z.ZodOptional<z.ZodString>;
|
|
1566
|
+
/** Alert Information */
|
|
761
1567
|
message: z.ZodString;
|
|
762
1568
|
currentCost: z.ZodNumber;
|
|
763
1569
|
maxCost: z.ZodOptional<z.ZodNumber>;
|
|
764
1570
|
threshold: z.ZodOptional<z.ZodNumber>;
|
|
765
1571
|
currency: z.ZodDefault<z.ZodString>;
|
|
766
|
-
|
|
1572
|
+
/** Recommendations */
|
|
1573
|
+
recommendations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1574
|
+
/** Status */
|
|
767
1575
|
acknowledged: z.ZodDefault<z.ZodBoolean>;
|
|
768
1576
|
acknowledgedBy: z.ZodOptional<z.ZodString>;
|
|
769
1577
|
acknowledgedAt: z.ZodOptional<z.ZodString>;
|
|
770
1578
|
resolved: z.ZodDefault<z.ZodBoolean>;
|
|
1579
|
+
/** Metadata */
|
|
771
1580
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
772
|
-
}, z.
|
|
1581
|
+
}, "strip", z.ZodTypeAny, {
|
|
1582
|
+
message: string;
|
|
1583
|
+
type: "threshold_warning" | "threshold_critical" | "limit_exceeded" | "anomaly_detected" | "projection_exceeded";
|
|
1584
|
+
currency: string;
|
|
1585
|
+
severity: "warning" | "info" | "critical";
|
|
1586
|
+
id: string;
|
|
1587
|
+
acknowledged: boolean;
|
|
1588
|
+
timestamp: string;
|
|
1589
|
+
resolved: boolean;
|
|
1590
|
+
currentCost: number;
|
|
1591
|
+
scope?: string | undefined;
|
|
1592
|
+
threshold?: number | undefined;
|
|
1593
|
+
metadata?: Record<string, any> | undefined;
|
|
1594
|
+
recommendations?: string[] | undefined;
|
|
1595
|
+
maxCost?: number | undefined;
|
|
1596
|
+
budgetId?: string | undefined;
|
|
1597
|
+
budgetType?: "object" | "department" | "user" | "global" | "project" | "agent" | undefined;
|
|
1598
|
+
acknowledgedBy?: string | undefined;
|
|
1599
|
+
acknowledgedAt?: string | undefined;
|
|
1600
|
+
}, {
|
|
1601
|
+
message: string;
|
|
1602
|
+
type: "threshold_warning" | "threshold_critical" | "limit_exceeded" | "anomaly_detected" | "projection_exceeded";
|
|
1603
|
+
severity: "warning" | "info" | "critical";
|
|
1604
|
+
id: string;
|
|
1605
|
+
timestamp: string;
|
|
1606
|
+
currentCost: number;
|
|
1607
|
+
scope?: string | undefined;
|
|
1608
|
+
currency?: string | undefined;
|
|
1609
|
+
threshold?: number | undefined;
|
|
1610
|
+
acknowledged?: boolean | undefined;
|
|
1611
|
+
metadata?: Record<string, any> | undefined;
|
|
1612
|
+
resolved?: boolean | undefined;
|
|
1613
|
+
recommendations?: string[] | undefined;
|
|
1614
|
+
maxCost?: number | undefined;
|
|
1615
|
+
budgetId?: string | undefined;
|
|
1616
|
+
budgetType?: "object" | "department" | "user" | "global" | "project" | "agent" | undefined;
|
|
1617
|
+
acknowledgedBy?: string | undefined;
|
|
1618
|
+
acknowledgedAt?: string | undefined;
|
|
1619
|
+
}>, "many">>;
|
|
773
1620
|
activeAlertCount: z.ZodDefault<z.ZodNumber>;
|
|
1621
|
+
/** Recommendations */
|
|
774
1622
|
recommendations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1623
|
+
/** Recommendation Details */
|
|
775
1624
|
id: z.ZodString;
|
|
776
|
-
type: z.ZodEnum<
|
|
777
|
-
|
|
778
|
-
reduce_tokens: "reduce_tokens";
|
|
779
|
-
batch_requests: "batch_requests";
|
|
780
|
-
cache_results: "cache_results";
|
|
781
|
-
adjust_parameters: "adjust_parameters";
|
|
782
|
-
limit_usage: "limit_usage";
|
|
783
|
-
}>;
|
|
1625
|
+
type: z.ZodEnum<["switch_model", "reduce_tokens", "batch_requests", "cache_results", "adjust_parameters", "limit_usage"]>;
|
|
1626
|
+
/** Impact */
|
|
784
1627
|
title: z.ZodString;
|
|
785
1628
|
description: z.ZodString;
|
|
786
1629
|
estimatedSavings: z.ZodOptional<z.ZodNumber>;
|
|
787
1630
|
savingsPercentage: z.ZodOptional<z.ZodNumber>;
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
low: "low";
|
|
792
|
-
}>;
|
|
793
|
-
effort: z.ZodEnum<{
|
|
794
|
-
medium: "medium";
|
|
795
|
-
high: "high";
|
|
796
|
-
low: "low";
|
|
797
|
-
}>;
|
|
1631
|
+
/** Implementation */
|
|
1632
|
+
priority: z.ZodEnum<["low", "medium", "high"]>;
|
|
1633
|
+
effort: z.ZodEnum<["low", "medium", "high"]>;
|
|
798
1634
|
actionable: z.ZodDefault<z.ZodBoolean>;
|
|
799
|
-
actionSteps: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1635
|
+
actionSteps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1636
|
+
/** Context */
|
|
800
1637
|
targetModel: z.ZodOptional<z.ZodString>;
|
|
801
1638
|
alternativeModel: z.ZodOptional<z.ZodString>;
|
|
802
|
-
affectedUsers: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
accepted: "accepted";
|
|
806
|
-
rejected: "rejected";
|
|
807
|
-
implemented: "implemented";
|
|
808
|
-
}>>;
|
|
1639
|
+
affectedUsers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1640
|
+
/** Status */
|
|
1641
|
+
status: z.ZodDefault<z.ZodEnum<["pending", "accepted", "rejected", "implemented"]>>;
|
|
809
1642
|
implementedAt: z.ZodOptional<z.ZodString>;
|
|
810
|
-
}, z.
|
|
1643
|
+
}, "strip", z.ZodTypeAny, {
|
|
1644
|
+
type: "switch_model" | "reduce_tokens" | "batch_requests" | "cache_results" | "adjust_parameters" | "limit_usage";
|
|
1645
|
+
status: "pending" | "accepted" | "rejected" | "implemented";
|
|
1646
|
+
description: string;
|
|
1647
|
+
priority: "medium" | "high" | "low";
|
|
1648
|
+
id: string;
|
|
1649
|
+
title: string;
|
|
1650
|
+
effort: "medium" | "high" | "low";
|
|
1651
|
+
actionable: boolean;
|
|
1652
|
+
affectedUsers?: string[] | undefined;
|
|
1653
|
+
estimatedSavings?: number | undefined;
|
|
1654
|
+
savingsPercentage?: number | undefined;
|
|
1655
|
+
actionSteps?: string[] | undefined;
|
|
1656
|
+
targetModel?: string | undefined;
|
|
1657
|
+
alternativeModel?: string | undefined;
|
|
1658
|
+
implementedAt?: string | undefined;
|
|
1659
|
+
}, {
|
|
1660
|
+
type: "switch_model" | "reduce_tokens" | "batch_requests" | "cache_results" | "adjust_parameters" | "limit_usage";
|
|
1661
|
+
description: string;
|
|
1662
|
+
priority: "medium" | "high" | "low";
|
|
1663
|
+
id: string;
|
|
1664
|
+
title: string;
|
|
1665
|
+
effort: "medium" | "high" | "low";
|
|
1666
|
+
status?: "pending" | "accepted" | "rejected" | "implemented" | undefined;
|
|
1667
|
+
affectedUsers?: string[] | undefined;
|
|
1668
|
+
estimatedSavings?: number | undefined;
|
|
1669
|
+
savingsPercentage?: number | undefined;
|
|
1670
|
+
actionable?: boolean | undefined;
|
|
1671
|
+
actionSteps?: string[] | undefined;
|
|
1672
|
+
targetModel?: string | undefined;
|
|
1673
|
+
alternativeModel?: string | undefined;
|
|
1674
|
+
implementedAt?: string | undefined;
|
|
1675
|
+
}>, "many">>;
|
|
1676
|
+
/** Comparisons */
|
|
811
1677
|
previousPeriodCost: z.ZodOptional<z.ZodNumber>;
|
|
812
1678
|
costChange: z.ZodOptional<z.ZodNumber>;
|
|
813
1679
|
costChangePercentage: z.ZodOptional<z.ZodNumber>;
|
|
1680
|
+
/** Forecasting */
|
|
814
1681
|
forecastedCost: z.ZodOptional<z.ZodNumber>;
|
|
815
|
-
forecastedBudgetStatus: z.ZodOptional<z.ZodEnum<
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
under: "under";
|
|
819
|
-
}>>;
|
|
820
|
-
format: z.ZodDefault<z.ZodEnum<{
|
|
821
|
-
summary: "summary";
|
|
822
|
-
detailed: "detailed";
|
|
823
|
-
executive: "executive";
|
|
824
|
-
}>>;
|
|
1682
|
+
forecastedBudgetStatus: z.ZodOptional<z.ZodEnum<["under", "at", "over"]>>;
|
|
1683
|
+
/** Export */
|
|
1684
|
+
format: z.ZodDefault<z.ZodEnum<["summary", "detailed", "executive"]>>;
|
|
825
1685
|
currency: z.ZodDefault<z.ZodString>;
|
|
826
|
-
}, z.
|
|
1686
|
+
}, "strip", z.ZodTypeAny, {
|
|
1687
|
+
currency: string;
|
|
1688
|
+
name: string;
|
|
1689
|
+
format: "summary" | "detailed" | "executive";
|
|
1690
|
+
id: string;
|
|
1691
|
+
period: "custom" | "hourly" | "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
1692
|
+
analytics: {
|
|
1693
|
+
currency: string;
|
|
1694
|
+
totalCost: number;
|
|
1695
|
+
periodStart: string;
|
|
1696
|
+
periodEnd: string;
|
|
1697
|
+
totalRequests: number;
|
|
1698
|
+
averageCostPerRequest: number;
|
|
1699
|
+
averageRequestsPerDay: number;
|
|
1700
|
+
totalTokens?: number | undefined;
|
|
1701
|
+
averageCostPerToken?: number | undefined;
|
|
1702
|
+
costTrend?: "stable" | "increasing" | "decreasing" | undefined;
|
|
1703
|
+
trendPercentage?: number | undefined;
|
|
1704
|
+
byModel?: {
|
|
1705
|
+
value: string;
|
|
1706
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1707
|
+
requestCount: number;
|
|
1708
|
+
totalCost: number;
|
|
1709
|
+
percentageOfTotal: number;
|
|
1710
|
+
periodStart?: string | undefined;
|
|
1711
|
+
periodEnd?: string | undefined;
|
|
1712
|
+
totalTokens?: number | undefined;
|
|
1713
|
+
}[] | undefined;
|
|
1714
|
+
byProvider?: {
|
|
1715
|
+
value: string;
|
|
1716
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1717
|
+
requestCount: number;
|
|
1718
|
+
totalCost: number;
|
|
1719
|
+
percentageOfTotal: number;
|
|
1720
|
+
periodStart?: string | undefined;
|
|
1721
|
+
periodEnd?: string | undefined;
|
|
1722
|
+
totalTokens?: number | undefined;
|
|
1723
|
+
}[] | undefined;
|
|
1724
|
+
byUser?: {
|
|
1725
|
+
value: string;
|
|
1726
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1727
|
+
requestCount: number;
|
|
1728
|
+
totalCost: number;
|
|
1729
|
+
percentageOfTotal: number;
|
|
1730
|
+
periodStart?: string | undefined;
|
|
1731
|
+
periodEnd?: string | undefined;
|
|
1732
|
+
totalTokens?: number | undefined;
|
|
1733
|
+
}[] | undefined;
|
|
1734
|
+
byAgent?: {
|
|
1735
|
+
value: string;
|
|
1736
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1737
|
+
requestCount: number;
|
|
1738
|
+
totalCost: number;
|
|
1739
|
+
percentageOfTotal: number;
|
|
1740
|
+
periodStart?: string | undefined;
|
|
1741
|
+
periodEnd?: string | undefined;
|
|
1742
|
+
totalTokens?: number | undefined;
|
|
1743
|
+
}[] | undefined;
|
|
1744
|
+
byOperation?: {
|
|
1745
|
+
value: string;
|
|
1746
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1747
|
+
requestCount: number;
|
|
1748
|
+
totalCost: number;
|
|
1749
|
+
percentageOfTotal: number;
|
|
1750
|
+
periodStart?: string | undefined;
|
|
1751
|
+
periodEnd?: string | undefined;
|
|
1752
|
+
totalTokens?: number | undefined;
|
|
1753
|
+
}[] | undefined;
|
|
1754
|
+
byDate?: {
|
|
1755
|
+
value: string;
|
|
1756
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1757
|
+
requestCount: number;
|
|
1758
|
+
totalCost: number;
|
|
1759
|
+
percentageOfTotal: number;
|
|
1760
|
+
periodStart?: string | undefined;
|
|
1761
|
+
periodEnd?: string | undefined;
|
|
1762
|
+
totalTokens?: number | undefined;
|
|
1763
|
+
}[] | undefined;
|
|
1764
|
+
topModels?: {
|
|
1765
|
+
value: string;
|
|
1766
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1767
|
+
requestCount: number;
|
|
1768
|
+
totalCost: number;
|
|
1769
|
+
percentageOfTotal: number;
|
|
1770
|
+
periodStart?: string | undefined;
|
|
1771
|
+
periodEnd?: string | undefined;
|
|
1772
|
+
totalTokens?: number | undefined;
|
|
1773
|
+
}[] | undefined;
|
|
1774
|
+
topUsers?: {
|
|
1775
|
+
value: string;
|
|
1776
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1777
|
+
requestCount: number;
|
|
1778
|
+
totalCost: number;
|
|
1779
|
+
percentageOfTotal: number;
|
|
1780
|
+
periodStart?: string | undefined;
|
|
1781
|
+
periodEnd?: string | undefined;
|
|
1782
|
+
totalTokens?: number | undefined;
|
|
1783
|
+
}[] | undefined;
|
|
1784
|
+
topAgents?: {
|
|
1785
|
+
value: string;
|
|
1786
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1787
|
+
requestCount: number;
|
|
1788
|
+
totalCost: number;
|
|
1789
|
+
percentageOfTotal: number;
|
|
1790
|
+
periodStart?: string | undefined;
|
|
1791
|
+
periodEnd?: string | undefined;
|
|
1792
|
+
totalTokens?: number | undefined;
|
|
1793
|
+
}[] | undefined;
|
|
1794
|
+
tokensPerDollar?: number | undefined;
|
|
1795
|
+
requestsPerDollar?: number | undefined;
|
|
1796
|
+
};
|
|
1797
|
+
generatedAt: string;
|
|
1798
|
+
periodStart: string;
|
|
1799
|
+
periodEnd: string;
|
|
1800
|
+
activeAlertCount: number;
|
|
1801
|
+
alerts?: {
|
|
1802
|
+
message: string;
|
|
1803
|
+
type: "threshold_warning" | "threshold_critical" | "limit_exceeded" | "anomaly_detected" | "projection_exceeded";
|
|
1804
|
+
currency: string;
|
|
1805
|
+
severity: "warning" | "info" | "critical";
|
|
1806
|
+
id: string;
|
|
1807
|
+
acknowledged: boolean;
|
|
1808
|
+
timestamp: string;
|
|
1809
|
+
resolved: boolean;
|
|
1810
|
+
currentCost: number;
|
|
1811
|
+
scope?: string | undefined;
|
|
1812
|
+
threshold?: number | undefined;
|
|
1813
|
+
metadata?: Record<string, any> | undefined;
|
|
1814
|
+
recommendations?: string[] | undefined;
|
|
1815
|
+
maxCost?: number | undefined;
|
|
1816
|
+
budgetId?: string | undefined;
|
|
1817
|
+
budgetType?: "object" | "department" | "user" | "global" | "project" | "agent" | undefined;
|
|
1818
|
+
acknowledgedBy?: string | undefined;
|
|
1819
|
+
acknowledgedAt?: string | undefined;
|
|
1820
|
+
}[] | undefined;
|
|
1821
|
+
budgets?: {
|
|
1822
|
+
type: "object" | "department" | "user" | "global" | "project" | "agent";
|
|
1823
|
+
currency: string;
|
|
1824
|
+
maxCost: number;
|
|
1825
|
+
budgetId: string;
|
|
1826
|
+
periodStart: string;
|
|
1827
|
+
periodEnd: string;
|
|
1828
|
+
currentCost: number;
|
|
1829
|
+
percentageUsed: number;
|
|
1830
|
+
remainingCost: number;
|
|
1831
|
+
isExceeded: boolean;
|
|
1832
|
+
isWarning: boolean;
|
|
1833
|
+
lastUpdated: string;
|
|
1834
|
+
scope?: string | undefined;
|
|
1835
|
+
projectedCost?: number | undefined;
|
|
1836
|
+
projectedOverage?: number | undefined;
|
|
1837
|
+
}[] | undefined;
|
|
1838
|
+
recommendations?: {
|
|
1839
|
+
type: "switch_model" | "reduce_tokens" | "batch_requests" | "cache_results" | "adjust_parameters" | "limit_usage";
|
|
1840
|
+
status: "pending" | "accepted" | "rejected" | "implemented";
|
|
1841
|
+
description: string;
|
|
1842
|
+
priority: "medium" | "high" | "low";
|
|
1843
|
+
id: string;
|
|
1844
|
+
title: string;
|
|
1845
|
+
effort: "medium" | "high" | "low";
|
|
1846
|
+
actionable: boolean;
|
|
1847
|
+
affectedUsers?: string[] | undefined;
|
|
1848
|
+
estimatedSavings?: number | undefined;
|
|
1849
|
+
savingsPercentage?: number | undefined;
|
|
1850
|
+
actionSteps?: string[] | undefined;
|
|
1851
|
+
targetModel?: string | undefined;
|
|
1852
|
+
alternativeModel?: string | undefined;
|
|
1853
|
+
implementedAt?: string | undefined;
|
|
1854
|
+
}[] | undefined;
|
|
1855
|
+
previousPeriodCost?: number | undefined;
|
|
1856
|
+
costChange?: number | undefined;
|
|
1857
|
+
costChangePercentage?: number | undefined;
|
|
1858
|
+
forecastedCost?: number | undefined;
|
|
1859
|
+
forecastedBudgetStatus?: "over" | "at" | "under" | undefined;
|
|
1860
|
+
}, {
|
|
1861
|
+
name: string;
|
|
1862
|
+
id: string;
|
|
1863
|
+
period: "custom" | "hourly" | "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
1864
|
+
analytics: {
|
|
1865
|
+
totalCost: number;
|
|
1866
|
+
periodStart: string;
|
|
1867
|
+
periodEnd: string;
|
|
1868
|
+
totalRequests: number;
|
|
1869
|
+
averageCostPerRequest: number;
|
|
1870
|
+
averageRequestsPerDay: number;
|
|
1871
|
+
currency?: string | undefined;
|
|
1872
|
+
totalTokens?: number | undefined;
|
|
1873
|
+
averageCostPerToken?: number | undefined;
|
|
1874
|
+
costTrend?: "stable" | "increasing" | "decreasing" | undefined;
|
|
1875
|
+
trendPercentage?: number | undefined;
|
|
1876
|
+
byModel?: {
|
|
1877
|
+
value: string;
|
|
1878
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1879
|
+
requestCount: number;
|
|
1880
|
+
totalCost: number;
|
|
1881
|
+
percentageOfTotal: number;
|
|
1882
|
+
periodStart?: string | undefined;
|
|
1883
|
+
periodEnd?: string | undefined;
|
|
1884
|
+
totalTokens?: number | undefined;
|
|
1885
|
+
}[] | undefined;
|
|
1886
|
+
byProvider?: {
|
|
1887
|
+
value: string;
|
|
1888
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1889
|
+
requestCount: number;
|
|
1890
|
+
totalCost: number;
|
|
1891
|
+
percentageOfTotal: number;
|
|
1892
|
+
periodStart?: string | undefined;
|
|
1893
|
+
periodEnd?: string | undefined;
|
|
1894
|
+
totalTokens?: number | undefined;
|
|
1895
|
+
}[] | undefined;
|
|
1896
|
+
byUser?: {
|
|
1897
|
+
value: string;
|
|
1898
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1899
|
+
requestCount: number;
|
|
1900
|
+
totalCost: number;
|
|
1901
|
+
percentageOfTotal: number;
|
|
1902
|
+
periodStart?: string | undefined;
|
|
1903
|
+
periodEnd?: string | undefined;
|
|
1904
|
+
totalTokens?: number | undefined;
|
|
1905
|
+
}[] | undefined;
|
|
1906
|
+
byAgent?: {
|
|
1907
|
+
value: string;
|
|
1908
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1909
|
+
requestCount: number;
|
|
1910
|
+
totalCost: number;
|
|
1911
|
+
percentageOfTotal: number;
|
|
1912
|
+
periodStart?: string | undefined;
|
|
1913
|
+
periodEnd?: string | undefined;
|
|
1914
|
+
totalTokens?: number | undefined;
|
|
1915
|
+
}[] | undefined;
|
|
1916
|
+
byOperation?: {
|
|
1917
|
+
value: string;
|
|
1918
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1919
|
+
requestCount: number;
|
|
1920
|
+
totalCost: number;
|
|
1921
|
+
percentageOfTotal: number;
|
|
1922
|
+
periodStart?: string | undefined;
|
|
1923
|
+
periodEnd?: string | undefined;
|
|
1924
|
+
totalTokens?: number | undefined;
|
|
1925
|
+
}[] | undefined;
|
|
1926
|
+
byDate?: {
|
|
1927
|
+
value: string;
|
|
1928
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1929
|
+
requestCount: number;
|
|
1930
|
+
totalCost: number;
|
|
1931
|
+
percentageOfTotal: number;
|
|
1932
|
+
periodStart?: string | undefined;
|
|
1933
|
+
periodEnd?: string | undefined;
|
|
1934
|
+
totalTokens?: number | undefined;
|
|
1935
|
+
}[] | undefined;
|
|
1936
|
+
topModels?: {
|
|
1937
|
+
value: string;
|
|
1938
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1939
|
+
requestCount: number;
|
|
1940
|
+
totalCost: number;
|
|
1941
|
+
percentageOfTotal: number;
|
|
1942
|
+
periodStart?: string | undefined;
|
|
1943
|
+
periodEnd?: string | undefined;
|
|
1944
|
+
totalTokens?: number | undefined;
|
|
1945
|
+
}[] | undefined;
|
|
1946
|
+
topUsers?: {
|
|
1947
|
+
value: string;
|
|
1948
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1949
|
+
requestCount: number;
|
|
1950
|
+
totalCost: number;
|
|
1951
|
+
percentageOfTotal: number;
|
|
1952
|
+
periodStart?: string | undefined;
|
|
1953
|
+
periodEnd?: string | undefined;
|
|
1954
|
+
totalTokens?: number | undefined;
|
|
1955
|
+
}[] | undefined;
|
|
1956
|
+
topAgents?: {
|
|
1957
|
+
value: string;
|
|
1958
|
+
dimension: "object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent";
|
|
1959
|
+
requestCount: number;
|
|
1960
|
+
totalCost: number;
|
|
1961
|
+
percentageOfTotal: number;
|
|
1962
|
+
periodStart?: string | undefined;
|
|
1963
|
+
periodEnd?: string | undefined;
|
|
1964
|
+
totalTokens?: number | undefined;
|
|
1965
|
+
}[] | undefined;
|
|
1966
|
+
tokensPerDollar?: number | undefined;
|
|
1967
|
+
requestsPerDollar?: number | undefined;
|
|
1968
|
+
};
|
|
1969
|
+
generatedAt: string;
|
|
1970
|
+
periodStart: string;
|
|
1971
|
+
periodEnd: string;
|
|
1972
|
+
currency?: string | undefined;
|
|
1973
|
+
format?: "summary" | "detailed" | "executive" | undefined;
|
|
1974
|
+
alerts?: {
|
|
1975
|
+
message: string;
|
|
1976
|
+
type: "threshold_warning" | "threshold_critical" | "limit_exceeded" | "anomaly_detected" | "projection_exceeded";
|
|
1977
|
+
severity: "warning" | "info" | "critical";
|
|
1978
|
+
id: string;
|
|
1979
|
+
timestamp: string;
|
|
1980
|
+
currentCost: number;
|
|
1981
|
+
scope?: string | undefined;
|
|
1982
|
+
currency?: string | undefined;
|
|
1983
|
+
threshold?: number | undefined;
|
|
1984
|
+
acknowledged?: boolean | undefined;
|
|
1985
|
+
metadata?: Record<string, any> | undefined;
|
|
1986
|
+
resolved?: boolean | undefined;
|
|
1987
|
+
recommendations?: string[] | undefined;
|
|
1988
|
+
maxCost?: number | undefined;
|
|
1989
|
+
budgetId?: string | undefined;
|
|
1990
|
+
budgetType?: "object" | "department" | "user" | "global" | "project" | "agent" | undefined;
|
|
1991
|
+
acknowledgedBy?: string | undefined;
|
|
1992
|
+
acknowledgedAt?: string | undefined;
|
|
1993
|
+
}[] | undefined;
|
|
1994
|
+
budgets?: {
|
|
1995
|
+
type: "object" | "department" | "user" | "global" | "project" | "agent";
|
|
1996
|
+
maxCost: number;
|
|
1997
|
+
budgetId: string;
|
|
1998
|
+
periodStart: string;
|
|
1999
|
+
periodEnd: string;
|
|
2000
|
+
percentageUsed: number;
|
|
2001
|
+
remainingCost: number;
|
|
2002
|
+
lastUpdated: string;
|
|
2003
|
+
scope?: string | undefined;
|
|
2004
|
+
currency?: string | undefined;
|
|
2005
|
+
currentCost?: number | undefined;
|
|
2006
|
+
isExceeded?: boolean | undefined;
|
|
2007
|
+
isWarning?: boolean | undefined;
|
|
2008
|
+
projectedCost?: number | undefined;
|
|
2009
|
+
projectedOverage?: number | undefined;
|
|
2010
|
+
}[] | undefined;
|
|
2011
|
+
recommendations?: {
|
|
2012
|
+
type: "switch_model" | "reduce_tokens" | "batch_requests" | "cache_results" | "adjust_parameters" | "limit_usage";
|
|
2013
|
+
description: string;
|
|
2014
|
+
priority: "medium" | "high" | "low";
|
|
2015
|
+
id: string;
|
|
2016
|
+
title: string;
|
|
2017
|
+
effort: "medium" | "high" | "low";
|
|
2018
|
+
status?: "pending" | "accepted" | "rejected" | "implemented" | undefined;
|
|
2019
|
+
affectedUsers?: string[] | undefined;
|
|
2020
|
+
estimatedSavings?: number | undefined;
|
|
2021
|
+
savingsPercentage?: number | undefined;
|
|
2022
|
+
actionable?: boolean | undefined;
|
|
2023
|
+
actionSteps?: string[] | undefined;
|
|
2024
|
+
targetModel?: string | undefined;
|
|
2025
|
+
alternativeModel?: string | undefined;
|
|
2026
|
+
implementedAt?: string | undefined;
|
|
2027
|
+
}[] | undefined;
|
|
2028
|
+
activeAlertCount?: number | undefined;
|
|
2029
|
+
previousPeriodCost?: number | undefined;
|
|
2030
|
+
costChange?: number | undefined;
|
|
2031
|
+
costChangePercentage?: number | undefined;
|
|
2032
|
+
forecastedCost?: number | undefined;
|
|
2033
|
+
forecastedBudgetStatus?: "over" | "at" | "under" | undefined;
|
|
2034
|
+
}>;
|
|
827
2035
|
/**
|
|
828
2036
|
* Cost Query Filters
|
|
829
2037
|
*/
|
|
830
2038
|
export declare const CostQueryFiltersSchema: z.ZodObject<{
|
|
2039
|
+
/** Time Range */
|
|
831
2040
|
startDate: z.ZodOptional<z.ZodString>;
|
|
832
2041
|
endDate: z.ZodOptional<z.ZodString>;
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
2042
|
+
/** Dimensions */
|
|
2043
|
+
modelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2044
|
+
providers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2045
|
+
userIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2046
|
+
agentIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2047
|
+
operations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2048
|
+
sessionIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2049
|
+
/** Cost Range */
|
|
839
2050
|
minCost: z.ZodOptional<z.ZodNumber>;
|
|
840
2051
|
maxCost: z.ZodOptional<z.ZodNumber>;
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
model: "model";
|
|
850
|
-
agent: "agent";
|
|
851
|
-
hour: "hour";
|
|
852
|
-
}>>>;
|
|
853
|
-
orderBy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
854
|
-
timestamp: "timestamp";
|
|
855
|
-
tokens: "tokens";
|
|
856
|
-
cost: "cost";
|
|
857
|
-
}>>>;
|
|
858
|
-
orderDirection: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
859
|
-
asc: "asc";
|
|
860
|
-
desc: "desc";
|
|
861
|
-
}>>>;
|
|
2052
|
+
/** Tags */
|
|
2053
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2054
|
+
/** Aggregation */
|
|
2055
|
+
groupBy: z.ZodOptional<z.ZodArray<z.ZodEnum<["model", "provider", "user", "agent", "object", "operation", "date", "hour", "tag"]>, "many">>;
|
|
2056
|
+
/** Sorting */
|
|
2057
|
+
orderBy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["timestamp", "cost", "tokens"]>>>;
|
|
2058
|
+
orderDirection: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
2059
|
+
/** Pagination */
|
|
862
2060
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
863
2061
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
864
|
-
}, z.
|
|
2062
|
+
}, "strip", z.ZodTypeAny, {
|
|
2063
|
+
orderBy: "timestamp" | "cost" | "tokens";
|
|
2064
|
+
orderDirection: "asc" | "desc";
|
|
2065
|
+
limit?: number | undefined;
|
|
2066
|
+
offset?: number | undefined;
|
|
2067
|
+
groupBy?: ("object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent")[] | undefined;
|
|
2068
|
+
tags?: string[] | undefined;
|
|
2069
|
+
startDate?: string | undefined;
|
|
2070
|
+
endDate?: string | undefined;
|
|
2071
|
+
operations?: string[] | undefined;
|
|
2072
|
+
providers?: string[] | undefined;
|
|
2073
|
+
maxCost?: number | undefined;
|
|
2074
|
+
modelIds?: string[] | undefined;
|
|
2075
|
+
userIds?: string[] | undefined;
|
|
2076
|
+
agentIds?: string[] | undefined;
|
|
2077
|
+
sessionIds?: string[] | undefined;
|
|
2078
|
+
minCost?: number | undefined;
|
|
2079
|
+
}, {
|
|
2080
|
+
orderBy?: "timestamp" | "cost" | "tokens" | undefined;
|
|
2081
|
+
limit?: number | undefined;
|
|
2082
|
+
offset?: number | undefined;
|
|
2083
|
+
groupBy?: ("object" | "date" | "provider" | "hour" | "operation" | "user" | "tag" | "model" | "agent")[] | undefined;
|
|
2084
|
+
tags?: string[] | undefined;
|
|
2085
|
+
startDate?: string | undefined;
|
|
2086
|
+
endDate?: string | undefined;
|
|
2087
|
+
operations?: string[] | undefined;
|
|
2088
|
+
providers?: string[] | undefined;
|
|
2089
|
+
maxCost?: number | undefined;
|
|
2090
|
+
modelIds?: string[] | undefined;
|
|
2091
|
+
userIds?: string[] | undefined;
|
|
2092
|
+
agentIds?: string[] | undefined;
|
|
2093
|
+
sessionIds?: string[] | undefined;
|
|
2094
|
+
minCost?: number | undefined;
|
|
2095
|
+
orderDirection?: "asc" | "desc" | undefined;
|
|
2096
|
+
}>;
|
|
865
2097
|
export type CostMetricType = z.infer<typeof CostMetricTypeSchema>;
|
|
866
2098
|
export type BillingPeriod = z.infer<typeof BillingPeriodSchema>;
|
|
867
2099
|
export type CostEntry = z.infer<typeof CostEntrySchema>;
|