@vertesia/common 1.6.0-dev.20260923.085325Z → 1.6.0-dev.20261004.085740Z
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/lib/access-control-values.d.ts +2 -2
- package/lib/access-control-values.d.ts.map +1 -1
- package/lib/access-control-values.js +2 -2
- package/lib/access-control-values.js.map +1 -1
- package/lib/access-control.d.ts +7 -8
- package/lib/access-control.d.ts.map +1 -1
- package/lib/access-control.js +5 -0
- package/lib/access-control.js.map +1 -1
- package/lib/analytics.d.ts +6 -7
- package/lib/analytics.d.ts.map +1 -1
- package/lib/api-contract/components.generated.json +1389 -45
- package/lib/api-schemas/access-control.d.ts +33 -10
- package/lib/api-schemas/access-control.d.ts.map +1 -1
- package/lib/api-schemas/access-control.js +7 -6
- package/lib/api-schemas/access-control.js.map +1 -1
- package/lib/api-schemas/account.d.ts +5 -4
- package/lib/api-schemas/account.d.ts.map +1 -1
- package/lib/api-schemas/account.js.map +1 -1
- package/lib/api-schemas/agent-budget.d.ts +15 -0
- package/lib/api-schemas/agent-budget.d.ts.map +1 -0
- package/lib/api-schemas/agent-budget.js +55 -0
- package/lib/api-schemas/agent-budget.js.map +1 -0
- package/lib/api-schemas/agent-runs.d.ts +1525 -100
- package/lib/api-schemas/agent-runs.d.ts.map +1 -1
- package/lib/api-schemas/agent-runs.js +60 -28
- package/lib/api-schemas/agent-runs.js.map +1 -1
- package/lib/api-schemas/apikey.d.ts +11 -10
- package/lib/api-schemas/apikey.d.ts.map +1 -1
- package/lib/api-schemas/apikey.js.map +1 -1
- package/lib/api-schemas/app-lifecycle.d.ts +13 -0
- package/lib/api-schemas/app-lifecycle.d.ts.map +1 -1
- package/lib/api-schemas/app-lifecycle.js +4 -0
- package/lib/api-schemas/app-lifecycle.js.map +1 -1
- package/lib/api-schemas/app-runtime.d.ts +1821 -108
- package/lib/api-schemas/app-runtime.d.ts.map +1 -1
- package/lib/api-schemas/audit-trail.d.ts +20 -0
- package/lib/api-schemas/audit-trail.d.ts.map +1 -1
- package/lib/api-schemas/audit-trail.js +7 -1
- package/lib/api-schemas/audit-trail.js.map +1 -1
- package/lib/api-schemas/content.d.ts +665 -30
- package/lib/api-schemas/content.d.ts.map +1 -1
- package/lib/api-schemas/content.js +47 -0
- package/lib/api-schemas/content.js.map +1 -1
- package/lib/api-schemas/cost-analytics.d.ts +18 -0
- package/lib/api-schemas/cost-analytics.d.ts.map +1 -1
- package/lib/api-schemas/cost-analytics.js +31 -2
- package/lib/api-schemas/cost-analytics.js.map +1 -1
- package/lib/api-schemas/document-processing.d.ts +381 -18
- package/lib/api-schemas/document-processing.d.ts.map +1 -1
- package/lib/api-schemas/environment.d.ts +0 -5
- package/lib/api-schemas/environment.d.ts.map +1 -1
- package/lib/api-schemas/environment.js +0 -1
- package/lib/api-schemas/environment.js.map +1 -1
- package/lib/api-schemas/events.d.ts +1143 -54
- package/lib/api-schemas/events.d.ts.map +1 -1
- package/lib/api-schemas/group.d.ts +2 -1
- package/lib/api-schemas/group.d.ts.map +1 -1
- package/lib/api-schemas/group.js.map +1 -1
- package/lib/api-schemas/index.d.ts +1 -0
- package/lib/api-schemas/index.d.ts.map +1 -1
- package/lib/api-schemas/index.js +1 -0
- package/lib/api-schemas/index.js.map +1 -1
- package/lib/api-schemas/inference-profile.d.ts +5017 -0
- package/lib/api-schemas/inference-profile.d.ts.map +1 -0
- package/lib/api-schemas/inference-profile.js +135 -0
- package/lib/api-schemas/inference-profile.js.map +1 -0
- package/lib/api-schemas/integrations.d.ts +6 -6
- package/lib/api-schemas/interaction.d.ts +34391 -703
- package/lib/api-schemas/interaction.d.ts.map +1 -1
- package/lib/api-schemas/interaction.js +34 -1
- package/lib/api-schemas/interaction.js.map +1 -1
- package/lib/api-schemas/invites.d.ts +10 -9
- package/lib/api-schemas/invites.d.ts.map +1 -1
- package/lib/api-schemas/invites.js.map +1 -1
- package/lib/api-schemas/process.d.ts +653 -34
- package/lib/api-schemas/process.d.ts.map +1 -1
- package/lib/api-schemas/process.js +66 -0
- package/lib/api-schemas/process.js.map +1 -1
- package/lib/api-schemas/project-configuration.d.ts +1323 -62
- package/lib/api-schemas/project-configuration.d.ts.map +1 -1
- package/lib/api-schemas/project-configuration.js +15 -1
- package/lib/api-schemas/project-configuration.js.map +1 -1
- package/lib/api-schemas/project.d.ts +2031 -116
- package/lib/api-schemas/project.d.ts.map +1 -1
- package/lib/api-schemas/project.js +9 -1
- package/lib/api-schemas/project.js.map +1 -1
- package/lib/api-schemas/quota.d.ts +7 -6
- package/lib/api-schemas/quota.d.ts.map +1 -1
- package/lib/api-schemas/quota.js.map +1 -1
- package/lib/api-schemas/registry.d.ts +27820 -35892
- package/lib/api-schemas/registry.d.ts.map +1 -1
- package/lib/api-schemas/registry.js +55 -5
- package/lib/api-schemas/registry.js.map +1 -1
- package/lib/api-schemas/run-budget.d.ts +52 -0
- package/lib/api-schemas/run-budget.d.ts.map +1 -0
- package/lib/api-schemas/run-budget.js +55 -0
- package/lib/api-schemas/run-budget.js.map +1 -0
- package/lib/api-schemas/store.d.ts +6388 -338
- package/lib/api-schemas/store.d.ts.map +1 -1
- package/lib/api-schemas/store.js +11 -0
- package/lib/api-schemas/store.js.map +1 -1
- package/lib/api-schemas/user.d.ts +9 -8
- package/lib/api-schemas/user.d.ts.map +1 -1
- package/lib/api-schemas/user.js.map +1 -1
- package/lib/api-schemas/view-execution.d.ts +8 -0
- package/lib/api-schemas/view-execution.d.ts.map +1 -1
- package/lib/api-schemas/views.d.ts +14 -0
- package/lib/api-schemas/views.d.ts.map +1 -1
- package/lib/api-schemas/workflow-runs.d.ts +335 -12
- package/lib/api-schemas/workflow-runs.d.ts.map +1 -1
- package/lib/api-schemas/workflow-runs.js +2 -0
- package/lib/api-schemas/workflow-runs.js.map +1 -1
- package/lib/apikey.d.ts +30 -25
- package/lib/apikey.d.ts.map +1 -1
- package/lib/apikey.js.map +1 -1
- package/lib/apps.d.ts +116 -121
- package/lib/apps.d.ts.map +1 -1
- package/lib/apps.js.map +1 -1
- package/lib/audit-trail.d.ts +17 -18
- package/lib/audit-trail.d.ts.map +1 -1
- package/lib/audit-trail.js +2 -0
- package/lib/audit-trail.js.map +1 -1
- package/lib/browser-credentials.d.ts +11 -12
- package/lib/browser-credentials.d.ts.map +1 -1
- package/lib/common.d.ts +17 -24
- package/lib/common.d.ts.map +1 -1
- package/lib/content-query.d.ts +3 -4
- package/lib/content-query.d.ts.map +1 -1
- package/lib/cost-analytics.d.ts +13 -21
- package/lib/cost-analytics.d.ts.map +1 -1
- package/lib/cost-analytics.js +0 -7
- package/lib/cost-analytics.js.map +1 -1
- package/lib/data-platform.d.ts +79 -88
- package/lib/data-platform.d.ts.map +1 -1
- package/lib/data-platform.js.map +1 -1
- package/lib/delegation.d.ts +4 -5
- package/lib/delegation.d.ts.map +1 -1
- package/lib/email.d.ts +15 -17
- package/lib/email.d.ts.map +1 -1
- package/lib/email.js.map +1 -1
- package/lib/embeddings.d.ts +25 -26
- package/lib/embeddings.d.ts.map +1 -1
- package/lib/environment.d.ts +16 -17
- package/lib/environment.d.ts.map +1 -1
- package/lib/environment.js.map +1 -1
- package/lib/facets.d.ts +3 -4
- package/lib/facets.d.ts.map +1 -1
- package/lib/group.d.ts +6 -7
- package/lib/group.d.ts.map +1 -1
- package/lib/group.js.map +1 -1
- package/lib/index.d.ts +3 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/inference-profile.d.ts +17 -0
- package/lib/inference-profile.d.ts.map +1 -0
- package/lib/inference-profile.js +2 -0
- package/lib/inference-profile.js.map +1 -0
- package/lib/integrations.d.ts +19 -20
- package/lib/integrations.d.ts.map +1 -1
- package/lib/integrations.js.map +1 -1
- package/lib/interaction.d.ts +68 -73
- package/lib/interaction.d.ts.map +1 -1
- package/lib/interaction.js.map +1 -1
- package/lib/meters.d.ts +4 -5
- package/lib/meters.d.ts.map +1 -1
- package/lib/oauth-server.d.ts +40 -41
- package/lib/oauth-server.d.ts.map +1 -1
- package/lib/oauth.d.ts +9 -10
- package/lib/oauth.d.ts.map +1 -1
- package/lib/payload.d.ts +11 -14
- package/lib/payload.d.ts.map +1 -1
- package/lib/pending-asks.d.ts +8 -13
- package/lib/pending-asks.d.ts.map +1 -1
- package/lib/pending-asks.js +0 -4
- package/lib/pending-asks.js.map +1 -1
- package/lib/platform-event.d.ts +48 -51
- package/lib/platform-event.d.ts.map +1 -1
- package/lib/platform-event.js.map +1 -1
- package/lib/principal-context.d.ts +3 -3
- package/lib/principal-context.d.ts.map +1 -1
- package/lib/project.d.ts +42 -43
- package/lib/project.d.ts.map +1 -1
- package/lib/project.js.map +1 -1
- package/lib/prompt.d.ts +14 -16
- package/lib/prompt.d.ts.map +1 -1
- package/lib/prompt.js.map +1 -1
- package/lib/query.d.ts +10 -13
- package/lib/query.d.ts.map +1 -1
- package/lib/rate-limiter.d.ts +7 -11
- package/lib/rate-limiter.d.ts.map +1 -1
- package/lib/refs.d.ts +2 -3
- package/lib/refs.d.ts.map +1 -1
- package/lib/refs.js.map +1 -1
- package/lib/roles/types.d.ts +5 -6
- package/lib/roles/types.d.ts.map +1 -1
- package/lib/roles/types.js.map +1 -1
- package/lib/run-budget.d.ts +8 -0
- package/lib/run-budget.d.ts.map +1 -0
- package/lib/run-budget.js +2 -0
- package/lib/run-budget.js.map +1 -0
- package/lib/runs.d.ts +9 -10
- package/lib/runs.d.ts.map +1 -1
- package/lib/secrets.d.ts +20 -21
- package/lib/secrets.d.ts.map +1 -1
- package/lib/store/agent-approval.d.ts +4 -5
- package/lib/store/agent-approval.d.ts.map +1 -1
- package/lib/store/agent-approval.js.map +1 -1
- package/lib/store/agent-run.d.ts +50 -52
- package/lib/store/agent-run.d.ts.map +1 -1
- package/lib/store/agent-run.js.map +1 -1
- package/lib/store/collections.d.ts +11 -12
- package/lib/store/collections.d.ts.map +1 -1
- package/lib/store/collections.js.map +1 -1
- package/lib/store/conversation-state.d.ts +14 -8
- package/lib/store/conversation-state.d.ts.map +1 -1
- package/lib/store/doc-analyzer.d.ts +7 -8
- package/lib/store/doc-analyzer.d.ts.map +1 -1
- package/lib/store/dsl-workflow.d.ts +10 -12
- package/lib/store/dsl-workflow.d.ts.map +1 -1
- package/lib/store/dsl-workflow.js.map +1 -1
- package/lib/store/duration.d.ts +12 -0
- package/lib/store/duration.d.ts.map +1 -0
- package/lib/store/duration.js +2 -0
- package/lib/store/duration.js.map +1 -0
- package/lib/store/grounded-extraction.d.ts +6 -7
- package/lib/store/grounded-extraction.d.ts.map +1 -1
- package/lib/store/intake-policy-schema.generated.d.ts.map +1 -1
- package/lib/store/intake-policy-schema.generated.js +143 -2
- package/lib/store/intake-policy-schema.generated.js.map +1 -1
- package/lib/store/process.d.ts +70 -69
- package/lib/store/process.d.ts.map +1 -1
- package/lib/store/process.js.map +1 -1
- package/lib/store/rendering.d.ts +6 -12
- package/lib/store/rendering.d.ts.map +1 -1
- package/lib/store/rendering.js +0 -5
- package/lib/store/rendering.js.map +1 -1
- package/lib/store/signals.d.ts +43 -0
- package/lib/store/signals.d.ts.map +1 -1
- package/lib/store/signals.js +6 -1
- package/lib/store/signals.js.map +1 -1
- package/lib/store/store.d.ts +92 -91
- package/lib/store/store.d.ts.map +1 -1
- package/lib/store/store.js.map +1 -1
- package/lib/store/task.d.ts +10 -14
- package/lib/store/task.d.ts.map +1 -1
- package/lib/store/workflow.d.ts +35 -41
- package/lib/store/workflow.d.ts.map +1 -1
- package/lib/store/workflow.js.map +1 -1
- package/lib/sts-token-types.d.ts +14 -19
- package/lib/sts-token-types.d.ts.map +1 -1
- package/lib/tools.d.ts +12 -13
- package/lib/tools.d.ts.map +1 -1
- package/lib/transient-tokens.d.ts +3 -3
- package/lib/transient-tokens.d.ts.map +1 -1
- package/lib/user.d.ts +17 -20
- package/lib/user.d.ts.map +1 -1
- package/lib/user.js.map +1 -1
- package/lib/vertesia-common.js +2 -2
- package/lib/vertesia-common.js.map +1 -1
- package/lib/views.d.ts +61 -64
- package/lib/views.d.ts.map +1 -1
- package/lib/views.js.map +1 -1
- package/lib/wire-types.generated.d.ts +11231 -0
- package/lib/wire-types.generated.d.ts.map +1 -0
- package/lib/wire-types.generated.js +4 -0
- package/lib/wire-types.generated.js.map +1 -0
- package/lib/workflow-analytics.d.ts +21 -19
- package/lib/workflow-analytics.d.ts.map +1 -1
- package/lib/workflow-analytics.js +2 -2
- package/lib/workflow-analytics.js.map +1 -1
- package/package.json +15 -10
- package/src/access-control-values.ts +2 -2
- package/src/access-control.ts +7 -15
- package/src/analytics.ts +6 -13
- package/src/api-contract/components.generated.json +1389 -45
- package/src/api-schemas/access-control.ts +18 -16
- package/src/api-schemas/account.ts +5 -4
- package/src/api-schemas/agent-budget.ts +60 -0
- package/src/api-schemas/agent-runs.ts +63 -27
- package/src/api-schemas/apikey.ts +11 -10
- package/src/api-schemas/app-lifecycle.ts +5 -0
- package/src/api-schemas/audit-trail.ts +7 -1
- package/src/api-schemas/content.ts +55 -0
- package/src/api-schemas/cost-analytics.ts +34 -2
- package/src/api-schemas/environment.ts +0 -1
- package/src/api-schemas/group.ts +2 -1
- package/src/api-schemas/index.ts +1 -0
- package/src/api-schemas/inference-profile.ts +151 -0
- package/src/api-schemas/interaction.ts +40 -1
- package/src/api-schemas/invites.ts +10 -9
- package/src/api-schemas/process.ts +78 -2
- package/src/api-schemas/project-configuration.ts +19 -1
- package/src/api-schemas/project.ts +19 -10
- package/src/api-schemas/quota.ts +7 -6
- package/src/api-schemas/registry.ts +131 -33
- package/src/api-schemas/run-budget.ts +60 -0
- package/src/api-schemas/store.ts +12 -0
- package/src/api-schemas/user.ts +9 -8
- package/src/api-schemas/workflow-runs.ts +2 -0
- package/src/apikey.ts +30 -39
- package/src/apps.ts +116 -239
- package/src/audit-trail.ts +18 -33
- package/src/browser-credentials.ts +11 -23
- package/src/common.ts +17 -37
- package/src/content-query.ts +3 -4
- package/src/cost-analytics.ts +13 -35
- package/src/data-platform.ts +79 -168
- package/src/delegation.ts +4 -9
- package/src/email.ts +15 -29
- package/src/embeddings.ts +25 -51
- package/src/environment.ts +16 -33
- package/src/facets.ts +3 -4
- package/src/group.ts +6 -13
- package/src/index.ts +27 -0
- package/src/inference-profile.ts +20 -0
- package/src/integrations.ts +21 -41
- package/src/interaction.ts +68 -137
- package/src/meters.ts +4 -9
- package/src/oauth-server.ts +40 -81
- package/src/oauth.ts +9 -19
- package/src/payload.ts +11 -25
- package/src/pending-asks.ts +8 -22
- package/src/platform-event.ts +48 -97
- package/src/principal-context.ts +3 -3
- package/src/project.ts +43 -86
- package/src/prompt.ts +14 -31
- package/src/query.ts +10 -20
- package/src/rate-limiter.ts +7 -19
- package/src/refs.ts +2 -3
- package/src/roles/types.ts +5 -11
- package/src/run-budget.ts +8 -0
- package/src/runs.ts +9 -19
- package/src/secrets.ts +20 -41
- package/src/store/agent-approval.ts +4 -9
- package/src/store/agent-run.ts +53 -99
- package/src/store/collections.ts +11 -23
- package/src/store/conversation-state.ts +15 -15
- package/src/store/doc-analyzer.ts +7 -15
- package/src/store/dsl-workflow.ts +10 -23
- package/src/store/duration.ts +45 -0
- package/src/store/grounded-extraction.ts +6 -13
- package/src/store/intake-policy-schema.generated.ts +148 -2
- package/src/store/process.ts +70 -140
- package/src/store/rendering.ts +6 -19
- package/src/store/signals.ts +48 -0
- package/src/store/store.ts +92 -181
- package/src/store/task.ts +10 -24
- package/src/store/workflow.ts +35 -71
- package/src/sts-token-types.ts +14 -33
- package/src/tools.ts +12 -25
- package/src/transient-tokens.ts +3 -3
- package/src/user.ts +17 -39
- package/src/views.ts +61 -125
- package/src/wire-types.generated.ts +11889 -0
- package/src/workflow-analytics.ts +21 -19
- package/src/agent-resources.test.ts +0 -89
- package/src/api-contract/components.contract.test.ts +0 -99
- package/src/api-schemas/access-control.contract.test.ts +0 -209
- package/src/api-schemas/account-apikey.test.ts +0 -60
- package/src/api-schemas/account.contract.test.ts +0 -319
- package/src/api-schemas/adapter-edge-cases.test.ts +0 -499
- package/src/api-schemas/agent-communication.contract.test.ts +0 -90
- package/src/api-schemas/agent-history.contract.test.ts +0 -42
- package/src/api-schemas/agent-runs.contract.test.ts +0 -240
- package/src/api-schemas/api-discriminators.test.ts +0 -185
- package/src/api-schemas/apikey.contract.test.ts +0 -270
- package/src/api-schemas/app-delete-summary.contract.test.ts +0 -67
- package/src/api-schemas/bulk-operation.contract.test.ts +0 -39
- package/src/api-schemas/bundle-isolation.test.ts +0 -44
- package/src/api-schemas/commands.contract.test.ts +0 -51
- package/src/api-schemas/cost-analytics.contract.test.ts +0 -64
- package/src/api-schemas/dashboard.contract.test.ts +0 -138
- package/src/api-schemas/data-store.contract.test.ts +0 -97
- package/src/api-schemas/document-processing.contract.test.ts +0 -76
- package/src/api-schemas/emit-json-schema.test.ts +0 -36
- package/src/api-schemas/environment.contract.test.ts +0 -202
- package/src/api-schemas/group.contract.test.ts +0 -205
- package/src/api-schemas/indexing.contract.test.ts +0 -122
- package/src/api-schemas/interaction.contract.test.ts +0 -307
- package/src/api-schemas/invites.contract.test.ts +0 -268
- package/src/api-schemas/llumiverse.contract.test.ts +0 -179
- package/src/api-schemas/mcp-api-key.contract.test.ts +0 -125
- package/src/api-schemas/oauth.contract.test.ts +0 -181
- package/src/api-schemas/parameters.test.ts +0 -402
- package/src/api-schemas/process.contract.test.ts +0 -115
- package/src/api-schemas/project.contract.test.ts +0 -472
- package/src/api-schemas/pruning-limits.test.ts +0 -189
- package/src/api-schemas/quota.contract.test.ts +0 -147
- package/src/api-schemas/registry-groups.test.ts +0 -99
- package/src/api-schemas/response-pruning.test.ts +0 -260
- package/src/api-schemas/store.contract.test.ts +0 -378
- package/src/api-schemas/sts.contract.test.ts +0 -112
- package/src/api-schemas/user.contract.test.ts +0 -197
- package/src/api-schemas/views.contract.test.ts +0 -112
- package/src/api-schemas/zeno-response-contracts.test.ts +0 -380
- package/src/apps.test.ts +0 -89
- package/src/oauth-scopes.test.ts +0 -15
- package/src/roles.test.ts +0 -33
- package/src/schema-for-extraction.test.ts +0 -191
- package/src/store/agent-approval.test.ts +0 -18
- package/src/store/content-type-editing.test.ts +0 -17
- package/src/store/ms.d.ts +0 -42
- package/src/store/schedule.test.ts +0 -59
- package/src/store/workflow.test.ts +0 -640
- package/src/versions.test.ts +0 -13
package/src/audit-trail.ts
CHANGED
|
@@ -1,21 +1,4 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type {
|
|
3
|
-
AuditAggregationDetailFieldSchema,
|
|
4
|
-
AuditAggregationDetailFilterSchema,
|
|
5
|
-
AuditAggregationDistinctFieldSchema,
|
|
6
|
-
AuditAggregationFilterSchema,
|
|
7
|
-
AuditAggregationGroupSchema,
|
|
8
|
-
AuditAggregationMetricSchema,
|
|
9
|
-
AuditAggregationOperationSchema,
|
|
10
|
-
AuditAggregationQuerySchema,
|
|
11
|
-
AuditAggregationResolutionSchema,
|
|
12
|
-
AuditAggregationResponseSchema,
|
|
13
|
-
AuditAggregationRowSchema,
|
|
14
|
-
AuditMeterSchema,
|
|
15
|
-
AuditTrailEventSchema,
|
|
16
|
-
AuditTrailQuerySchema,
|
|
17
|
-
AuditTrailResponseSchema,
|
|
18
|
-
} from './api-schemas/audit-trail.js';
|
|
1
|
+
import type * as Wire from './wire-types.generated.js';
|
|
19
2
|
|
|
20
3
|
export const AUDIT_ACTIONS = [
|
|
21
4
|
// CRUD operations
|
|
@@ -56,13 +39,13 @@ export type AuditAction = KnownAuditAction | (string & {});
|
|
|
56
39
|
* { category: "compute", type: "duration_ms", quantity: 2100 }
|
|
57
40
|
* { category: "processing", type: "pages", quantity: 12 }
|
|
58
41
|
*/
|
|
59
|
-
export type AuditMeter =
|
|
42
|
+
export type AuditMeter = Wire.AuditMeter;
|
|
60
43
|
|
|
61
|
-
export type AuditTrailEvent =
|
|
44
|
+
export type AuditTrailEvent = Wire.AuditTrailEvent;
|
|
62
45
|
|
|
63
|
-
export type AuditTrailQuery =
|
|
46
|
+
export type AuditTrailQuery = Wire.AuditTrailQuery;
|
|
64
47
|
|
|
65
|
-
export type AuditTrailResponse =
|
|
48
|
+
export type AuditTrailResponse = Wire.AuditTrailResponse;
|
|
66
49
|
|
|
67
50
|
export const AUDIT_AGGREGATION_DIMENSIONS = [
|
|
68
51
|
'time',
|
|
@@ -71,6 +54,8 @@ export const AUDIT_AGGREGATION_DIMENSIONS = [
|
|
|
71
54
|
'event_category',
|
|
72
55
|
'provider',
|
|
73
56
|
'project_id',
|
|
57
|
+
'principal_id',
|
|
58
|
+
'actor_id',
|
|
74
59
|
'details.pipeline',
|
|
75
60
|
'details.verdict',
|
|
76
61
|
'details.workflow_type',
|
|
@@ -79,28 +64,28 @@ export const AUDIT_AGGREGATION_DIMENSIONS = [
|
|
|
79
64
|
] as const;
|
|
80
65
|
|
|
81
66
|
export type AuditAggregationDimension = (typeof AUDIT_AGGREGATION_DIMENSIONS)[number];
|
|
82
|
-
export type AuditAggregationResolution =
|
|
83
|
-
export type AuditAggregationDetailField =
|
|
84
|
-
export type AuditAggregationOperation =
|
|
85
|
-
export type AuditAggregationDistinctField =
|
|
67
|
+
export type AuditAggregationResolution = Wire.AuditAggregationResolution;
|
|
68
|
+
export type AuditAggregationDetailField = Wire.AuditAggregationDetailField;
|
|
69
|
+
export type AuditAggregationOperation = Wire.AuditAggregationOperation;
|
|
70
|
+
export type AuditAggregationDistinctField = Wire.AuditAggregationDistinctField;
|
|
86
71
|
|
|
87
|
-
export type AuditAggregationGroup =
|
|
72
|
+
export type AuditAggregationGroup = Wire.AuditAggregationGroup;
|
|
88
73
|
|
|
89
|
-
export type AuditAggregationMetric =
|
|
74
|
+
export type AuditAggregationMetric = Wire.AuditAggregationMetric;
|
|
90
75
|
|
|
91
|
-
export type AuditAggregationDetailFilter =
|
|
76
|
+
export type AuditAggregationDetailFilter = Wire.AuditAggregationDetailFilter;
|
|
92
77
|
|
|
93
|
-
export type AuditAggregationFilter =
|
|
78
|
+
export type AuditAggregationFilter = Wire.AuditAggregationFilter;
|
|
94
79
|
|
|
95
80
|
/**
|
|
96
81
|
* Safe audit aggregation query. The server always applies the authenticated account scope and,
|
|
97
82
|
* for project-scoped principals, replaces projectId with the authenticated project.
|
|
98
83
|
*/
|
|
99
|
-
export type AuditAggregationQuery =
|
|
84
|
+
export type AuditAggregationQuery = Wire.AuditAggregationQuery;
|
|
100
85
|
|
|
101
|
-
export type AuditAggregationRow =
|
|
86
|
+
export type AuditAggregationRow = Wire.AuditAggregationRow;
|
|
102
87
|
|
|
103
|
-
export type AuditAggregationResponse =
|
|
88
|
+
export type AuditAggregationResponse = Wire.AuditAggregationResponse;
|
|
104
89
|
|
|
105
90
|
/** Billable audit actions for cost analytics queries */
|
|
106
91
|
export const BILLABLE_AUDIT_ACTIONS = ['inference', 'embedding', 'image_generation'] satisfies KnownAuditAction[];
|
|
@@ -1,29 +1,17 @@
|
|
|
1
|
-
import type
|
|
2
|
-
|
|
3
|
-
WebsiteCredentialCapabilitySchema,
|
|
4
|
-
WebsiteCredentialFillRequestSchema,
|
|
5
|
-
WebsiteCredentialFillResponseSchema,
|
|
6
|
-
WebsiteCredentialMetadataSchema,
|
|
7
|
-
WebsiteCredentialMetadataUpdateSchema,
|
|
8
|
-
WebsiteCredentialRecordSchema,
|
|
9
|
-
WebsiteCredentialSecretInputSchema,
|
|
10
|
-
WebsiteCredentialTotpAlgorithmSchema,
|
|
11
|
-
WebsiteCredentialTotpMetadataSchema,
|
|
12
|
-
WebsiteCredentialWebsiteSchema,
|
|
13
|
-
} from './api-schemas/secrets.js';
|
|
14
|
-
export type WebsiteCredentialCapability = z.infer<typeof WebsiteCredentialCapabilitySchema>;
|
|
1
|
+
import type * as Wire from './wire-types.generated.js';
|
|
2
|
+
export type WebsiteCredentialCapability = Wire.WebsiteCredentialCapability;
|
|
15
3
|
|
|
16
|
-
export type WebsiteCredentialTotpAlgorithm =
|
|
4
|
+
export type WebsiteCredentialTotpAlgorithm = Wire.WebsiteCredentialTotpAlgorithm;
|
|
17
5
|
|
|
18
|
-
export type WebsiteCredentialWebsite =
|
|
6
|
+
export type WebsiteCredentialWebsite = Wire.WebsiteCredentialWebsite;
|
|
19
7
|
|
|
20
|
-
export type WebsiteCredentialTotpMetadata =
|
|
8
|
+
export type WebsiteCredentialTotpMetadata = Wire.WebsiteCredentialTotpMetadata;
|
|
21
9
|
|
|
22
|
-
export type WebsiteCredentialMetadata =
|
|
10
|
+
export type WebsiteCredentialMetadata = Wire.WebsiteCredentialMetadata;
|
|
23
11
|
|
|
24
|
-
export type WebsiteCredentialRecord =
|
|
12
|
+
export type WebsiteCredentialRecord = Wire.WebsiteCredentialRecord;
|
|
25
13
|
|
|
26
|
-
export type WebsiteCredentialSecretInput =
|
|
14
|
+
export type WebsiteCredentialSecretInput = Wire.WebsiteCredentialSecretInput;
|
|
27
15
|
|
|
28
16
|
export interface CreateWebsiteCredentialRequest extends WebsiteCredentialMetadata {
|
|
29
17
|
secret?: WebsiteCredentialSecretInput;
|
|
@@ -37,8 +25,8 @@ export interface UpdateWebsiteCredentialRequest extends Partial<WebsiteCredentia
|
|
|
37
25
|
clear_oauth?: boolean;
|
|
38
26
|
}
|
|
39
27
|
|
|
40
|
-
export type WebsiteCredentialFillRequest =
|
|
28
|
+
export type WebsiteCredentialFillRequest = Wire.WebsiteCredentialFillRequest;
|
|
41
29
|
|
|
42
|
-
export type WebsiteCredentialFillResponse =
|
|
30
|
+
export type WebsiteCredentialFillResponse = Wire.WebsiteCredentialFillResponse;
|
|
43
31
|
|
|
44
|
-
export type WebsiteCredentialMetadataUpdate =
|
|
32
|
+
export type WebsiteCredentialMetadataUpdate = Wire.WebsiteCredentialMetadataUpdate;
|
package/src/common.ts
CHANGED
|
@@ -1,38 +1,18 @@
|
|
|
1
|
-
import type { z } from 'zod';
|
|
2
|
-
import type { DeleteOperationResultSchema } from './api-schemas/apikey.js';
|
|
3
|
-
import type {
|
|
4
|
-
BulkObjectCreateResultSchema,
|
|
5
|
-
BulkObjectDeleteResultSchema,
|
|
6
|
-
BulkObjectUpdateResultSchema,
|
|
7
|
-
BulkOperationPayloadSchema,
|
|
8
|
-
BulkOperationResponseSchema,
|
|
9
|
-
BulkOperationResultSchema,
|
|
10
|
-
} from './api-schemas/bulk-operation.js';
|
|
11
|
-
import type {
|
|
12
|
-
DeleteCountResultSchema,
|
|
13
|
-
GenericCommandResponseSchema,
|
|
14
|
-
MigrationListResponseSchema,
|
|
15
|
-
RunMigrationPayloadSchema,
|
|
16
|
-
RunMigrationResponseSchema,
|
|
17
|
-
} from './api-schemas/commands.js';
|
|
18
|
-
import type { FindPayloadSchema } from './api-schemas/content.js';
|
|
19
|
-
import type { SuccessResponseSchema } from './api-schemas/oauth.js';
|
|
20
|
-
import type { CountResultSchema } from './api-schemas/project.js';
|
|
21
|
-
import type { DeleteByIdResultSchema } from './api-schemas/user.js';
|
|
22
1
|
import type { ContentObjectProcessingPriority } from './store/store.js';
|
|
2
|
+
import type * as Wire from './wire-types.generated.js';
|
|
23
3
|
|
|
24
|
-
export type FindPayload =
|
|
4
|
+
export type FindPayload = Wire.FindPayload;
|
|
25
5
|
|
|
26
|
-
export type GenericCommandResponse =
|
|
6
|
+
export type GenericCommandResponse = Wire.GenericCommandResponse;
|
|
27
7
|
|
|
28
8
|
/**
|
|
29
9
|
* Derived from `DeleteByIdResultSchema`. Shared by eight studio delete endpoints; only `DeleteUser`
|
|
30
10
|
* publishes it canonically so far, and the generator fails the build if the canonical and derived
|
|
31
11
|
* definitions ever differ.
|
|
32
12
|
*/
|
|
33
|
-
export type DeleteByIdResult =
|
|
13
|
+
export type DeleteByIdResult = Wire.DeleteByIdResult;
|
|
34
14
|
|
|
35
|
-
export type DeleteCountResult =
|
|
15
|
+
export type DeleteCountResult = Wire.DeleteCountResult;
|
|
36
16
|
|
|
37
17
|
/**
|
|
38
18
|
* The success acknowledgement the OAuth provider and client endpoints return, inferred from
|
|
@@ -42,7 +22,7 @@ export type DeleteCountResult = z.infer<typeof DeleteCountResultSchema>;
|
|
|
42
22
|
* scanner widened the literal on its way out. The handlers still only ever return `true`; the type
|
|
43
23
|
* now says what a client can be sent rather than what our five handlers happen to send.
|
|
44
24
|
*/
|
|
45
|
-
export type SuccessResponse =
|
|
25
|
+
export type SuccessResponse = Wire.SuccessResponse;
|
|
46
26
|
|
|
47
27
|
/**
|
|
48
28
|
* The raw Mongo delete acknowledgement, inferred from `./api-schemas/apikey.js`.
|
|
@@ -51,7 +31,7 @@ export type SuccessResponse = z.infer<typeof SuccessResponseSchema>;
|
|
|
51
31
|
* group — it is here rather than in an apikey module because `./common.js` is where the shared
|
|
52
32
|
* result shapes live.
|
|
53
33
|
*/
|
|
54
|
-
export type DeleteOperationResult =
|
|
34
|
+
export type DeleteOperationResult = Wire.DeleteOperationResult;
|
|
55
35
|
|
|
56
36
|
/**
|
|
57
37
|
* How many rows an operation touched, inferred from `./api-schemas/project.js`.
|
|
@@ -59,17 +39,17 @@ export type DeleteOperationResult = z.infer<typeof DeleteOperationResultSchema>;
|
|
|
59
39
|
* The module that owns it is named for the batch that converted it, not for the only resource that
|
|
60
40
|
* uses it: four slots across three resources and two services return this.
|
|
61
41
|
*/
|
|
62
|
-
export type CountResult =
|
|
42
|
+
export type CountResult = Wire.CountResult;
|
|
63
43
|
|
|
64
|
-
export type BulkOperationPayload =
|
|
44
|
+
export type BulkOperationPayload = Wire.BulkOperationPayload;
|
|
65
45
|
|
|
66
|
-
export type BulkOperationResult =
|
|
46
|
+
export type BulkOperationResult = Wire.BulkOperationResult;
|
|
67
47
|
|
|
68
|
-
export type BulkObjectDeleteResult =
|
|
48
|
+
export type BulkObjectDeleteResult = Wire.BulkObjectDeleteResult;
|
|
69
49
|
|
|
70
|
-
export type BulkObjectUpdateResult =
|
|
50
|
+
export type BulkObjectUpdateResult = Wire.BulkObjectUpdateResult;
|
|
71
51
|
|
|
72
|
-
export type BulkObjectCreateResult =
|
|
52
|
+
export type BulkObjectCreateResult = Wire.BulkObjectCreateResult;
|
|
73
53
|
|
|
74
54
|
export interface BulkObjectCreateOptions {
|
|
75
55
|
collection_id?: string;
|
|
@@ -86,10 +66,10 @@ export interface BulkObjectUpdateOptions {
|
|
|
86
66
|
idempotency_key?: string;
|
|
87
67
|
}
|
|
88
68
|
|
|
89
|
-
export type BulkOperationResponse =
|
|
69
|
+
export type BulkOperationResponse = Wire.BulkOperationResponse;
|
|
90
70
|
|
|
91
|
-
export type RunMigrationPayload =
|
|
71
|
+
export type RunMigrationPayload = Wire.RunMigrationPayload;
|
|
92
72
|
|
|
93
|
-
export type RunMigrationResponse =
|
|
73
|
+
export type RunMigrationResponse = Wire.RunMigrationResponse;
|
|
94
74
|
|
|
95
|
-
export type MigrationListResponse =
|
|
75
|
+
export type MigrationListResponse = Wire.MigrationListResponse;
|
package/src/content-query.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type { ContentQueryPayloadSchema, ContentQueryResultSchema } from './api-schemas/content-query.js';
|
|
1
|
+
import type * as Wire from './wire-types.generated.js';
|
|
3
2
|
|
|
4
|
-
export type ContentQueryPayload =
|
|
5
|
-
export type ContentQueryResult =
|
|
3
|
+
export type ContentQueryPayload = Wire.ContentQueryPayload;
|
|
4
|
+
export type ContentQueryResult = Wire.ContentQueryResult;
|
package/src/cost-analytics.ts
CHANGED
|
@@ -1,27 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Cost Analytics Types
|
|
3
|
-
*
|
|
4
|
-
* Types for the cost attribution dashboard.
|
|
5
|
-
* Combines audit trail metering data with billing export pricing
|
|
6
|
-
* to compute per-org/project/env/model cost breakdowns.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import type { z } from 'zod';
|
|
10
|
-
import type {
|
|
11
|
-
CostAnalyticsQuerySchema,
|
|
12
|
-
CostAnalyticsResponseSchema,
|
|
13
|
-
CostByDimensionSchema,
|
|
14
|
-
CostExportQuerySchema,
|
|
15
|
-
CostModelPricesQuerySchema,
|
|
16
|
-
CostRunPriceQuerySchema,
|
|
17
|
-
CostRunPriceResponseSchema,
|
|
18
|
-
CostSummarySchema,
|
|
19
|
-
CostTimeSeriesPointSchema,
|
|
20
|
-
ModelPriceComparisonResponseSchema,
|
|
21
|
-
ModelPriceComparisonSchema,
|
|
22
|
-
ModelPricingSchema,
|
|
23
|
-
} from './api-schemas/cost-analytics.js';
|
|
24
1
|
import { BILLABLE_AUDIT_ACTIONS } from './audit-trail.js';
|
|
2
|
+
import type * as Wire from './wire-types.generated.js';
|
|
25
3
|
|
|
26
4
|
export { BILLABLE_AUDIT_ACTIONS };
|
|
27
5
|
|
|
@@ -29,30 +7,30 @@ export { BILLABLE_AUDIT_ACTIONS };
|
|
|
29
7
|
// Query
|
|
30
8
|
// ============================================================================
|
|
31
9
|
|
|
32
|
-
export type CostAnalyticsQuery =
|
|
10
|
+
export type CostAnalyticsQuery = Wire.CostAnalyticsQuery;
|
|
33
11
|
|
|
34
|
-
export type CostModelPricesQuery =
|
|
12
|
+
export type CostModelPricesQuery = Wire.CostModelPricesQuery;
|
|
35
13
|
|
|
36
|
-
export type CostExportQuery =
|
|
14
|
+
export type CostExportQuery = Wire.CostExportQuery;
|
|
37
15
|
|
|
38
16
|
// ============================================================================
|
|
39
17
|
// Response
|
|
40
18
|
// ============================================================================
|
|
41
19
|
|
|
42
|
-
export type CostSummary =
|
|
20
|
+
export type CostSummary = Wire.CostSummary;
|
|
43
21
|
|
|
44
|
-
export type CostByDimension =
|
|
22
|
+
export type CostByDimension = Wire.CostByDimension;
|
|
45
23
|
|
|
46
|
-
export type CostTimeSeriesPoint =
|
|
24
|
+
export type CostTimeSeriesPoint = Wire.CostTimeSeriesPoint;
|
|
47
25
|
|
|
48
|
-
export type ModelPricing =
|
|
26
|
+
export type ModelPricing = Wire.ModelPricing;
|
|
49
27
|
|
|
50
|
-
export type ModelPriceComparison =
|
|
28
|
+
export type ModelPriceComparison = Wire.ModelPriceComparison;
|
|
51
29
|
|
|
52
|
-
export type ModelPriceComparisonResponse =
|
|
30
|
+
export type ModelPriceComparisonResponse = Wire.ModelPriceComparisonResponse;
|
|
53
31
|
|
|
54
|
-
export type CostAnalyticsResponse =
|
|
32
|
+
export type CostAnalyticsResponse = Wire.CostAnalyticsResponse;
|
|
55
33
|
|
|
56
|
-
export type CostRunPriceQuery =
|
|
34
|
+
export type CostRunPriceQuery = Wire.CostRunPriceQuery;
|
|
57
35
|
|
|
58
|
-
export type CostRunPriceResponse =
|
|
36
|
+
export type CostRunPriceResponse = Wire.CostRunPriceResponse;
|