@vertesia/common 1.6.0-dev.20261004.085740Z → 1.6.0-dev.20261009.095813Z
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/api-contract/components.generated.json +572 -403
- package/lib/api-contract/engine.d.ts +65 -0
- package/lib/api-contract/engine.d.ts.map +1 -0
- package/lib/api-contract/engine.js +572 -0
- package/lib/api-contract/engine.js.map +1 -0
- package/lib/api-contract/index.d.ts +22 -183
- package/lib/api-contract/index.d.ts.map +1 -1
- package/lib/api-contract/index.js +13 -551
- package/lib/api-contract/index.js.map +1 -1
- package/lib/api-contract/types.d.ts +70 -0
- package/lib/api-contract/types.d.ts.map +1 -0
- package/lib/api-contract/types.js +2 -0
- package/lib/api-contract/types.js.map +1 -0
- package/lib/api-schemas/account.d.ts +0 -5
- package/lib/api-schemas/account.d.ts.map +1 -1
- package/lib/api-schemas/account.js +0 -7
- package/lib/api-schemas/account.js.map +1 -1
- package/lib/api-schemas/audit-trail.d.ts +255 -0
- package/lib/api-schemas/audit-trail.d.ts.map +1 -1
- package/lib/api-schemas/audit-trail.js +150 -1
- package/lib/api-schemas/audit-trail.js.map +1 -1
- package/lib/api-schemas/cost-analytics.d.ts +1 -0
- package/lib/api-schemas/cost-analytics.d.ts.map +1 -1
- package/lib/api-schemas/cost-analytics.js +7 -0
- package/lib/api-schemas/cost-analytics.js.map +1 -1
- package/lib/api-schemas/group.d.ts +2 -0
- package/lib/api-schemas/group.d.ts.map +1 -1
- package/lib/api-schemas/group.js +5 -0
- 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/registry.d.ts +270 -186
- package/lib/api-schemas/registry.d.ts.map +1 -1
- package/lib/api-schemas/registry.js +26 -29
- package/lib/api-schemas/registry.js.map +1 -1
- package/lib/api-schemas/run-budget.d.ts +0 -36
- package/lib/api-schemas/run-budget.d.ts.map +1 -1
- package/lib/api-schemas/run-budget.js +0 -33
- package/lib/api-schemas/run-budget.js.map +1 -1
- package/lib/api-schemas/secrets.d.ts +0 -71
- package/lib/api-schemas/secrets.d.ts.map +1 -1
- package/lib/api-schemas/secrets.js +0 -73
- package/lib/api-schemas/secrets.js.map +1 -1
- package/lib/audit-trail.d.ts +14 -2
- package/lib/audit-trail.d.ts.map +1 -1
- package/lib/audit-trail.js +4 -0
- package/lib/audit-trail.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/platform-event.d.ts +0 -20
- package/lib/platform-event.d.ts.map +1 -1
- package/lib/run-budget.d.ts +0 -4
- package/lib/run-budget.d.ts.map +1 -1
- package/lib/secrets.d.ts +0 -10
- package/lib/secrets.d.ts.map +1 -1
- package/lib/user.d.ts +0 -1
- package/lib/user.d.ts.map +1 -1
- package/lib/vertesia-common.js +1 -1
- package/lib/vertesia-common.js.map +1 -1
- package/lib/wire-types.generated.d.ts +102 -105
- package/lib/wire-types.generated.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/api-contract/components.generated.json +572 -403
- package/src/api-contract/engine.ts +644 -0
- package/src/api-contract/index.ts +32 -663
- package/src/api-contract/types.ts +108 -0
- package/src/api-schemas/account.ts +0 -8
- package/src/api-schemas/audit-trail.ts +169 -1
- package/src/api-schemas/cost-analytics.ts +8 -0
- package/src/api-schemas/group.ts +5 -0
- package/src/api-schemas/index.ts +1 -0
- package/src/api-schemas/registry.ts +41 -139
- package/src/api-schemas/run-budget.ts +0 -37
- package/src/api-schemas/secrets.ts +0 -84
- package/src/audit-trail.ts +17 -0
- package/src/index.ts +0 -4
- package/src/platform-event.ts +0 -25
- package/src/run-budget.ts +0 -4
- package/src/secrets.ts +0 -11
- package/src/user.ts +0 -2
- package/src/wire-types.generated.ts +103 -103
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { CreateEventSubscriptionPayload, EventDeliveryTarget, EventDeliveryTargetInput, EventSubscription, EventSubscriptionMutationResponse, ProcessEventDeliveryTarget, UpdateEventSubscriptionPayload } from '../platform-event.js';
|
|
2
|
+
import type { AgentRunInternals, AgentRunResponse, BindRunWorkflowPayload, ListAgentRunsResponse, ProgrammaticRunResponse, RecordRunPayload, SupervisedRunResponse, UpdateAgentRunStatusPayload } from '../store/agent-run.js';
|
|
3
|
+
import type * as DSLWorkflowTypes from '../store/dsl-workflow.js';
|
|
4
|
+
import type { DSLChildWorkflowStep, DSLWorkflowDefinition, DSLWorkflowDefinitionResponse, DSLWorkflowSpec, DSLWorkflowSpecWithSteps, DSLWorkflowStep } from '../store/dsl-workflow.js';
|
|
5
|
+
import type { BranchNodeBranchDefinition, CreateProcessDefinitionPayload, NodeDefinition, ProcessDefinition, ProcessDefinitionBody, UpdateProcessDefinitionPayload } from '../store/process.js';
|
|
6
|
+
import type { ViewNavigationNode } from '../views.js';
|
|
7
|
+
import type { ApiComponentTypes } from '../wire-types.generated.js';
|
|
8
|
+
export type ApiComponentName = keyof ApiComponentTypes;
|
|
9
|
+
/**
|
|
10
|
+
* Explicit TypeScript recursion boundary for schemas whose runtime graph is lazy.
|
|
11
|
+
*
|
|
12
|
+
* Zod cannot infer a finite named type through a mutually-recursive graph. The schemas remain the
|
|
13
|
+
* runtime and OpenAPI authority; these names preserve the recursive TypeScript declarations until
|
|
14
|
+
* TypeScript can infer recursive aliases without collapsing them to `unknown`.
|
|
15
|
+
*/
|
|
16
|
+
interface ZenoRecursiveComponentTypes {
|
|
17
|
+
ViewNavigationNode: ViewNavigationNode;
|
|
18
|
+
AgentRunResponse: AgentRunResponse;
|
|
19
|
+
AgentRunInternals: AgentRunInternals;
|
|
20
|
+
BindRunWorkflowPayload: BindRunWorkflowPayload;
|
|
21
|
+
BranchNodeBranchDefinition: BranchNodeBranchDefinition;
|
|
22
|
+
CreateEventSubscriptionPayload: CreateEventSubscriptionPayload;
|
|
23
|
+
CreateProcessDefinitionPayload: CreateProcessDefinitionPayload;
|
|
24
|
+
DSLChildWorkflowStep: DSLChildWorkflowStep;
|
|
25
|
+
DSLWorkflowDefinition: DSLWorkflowDefinition;
|
|
26
|
+
DSLWorkflowDefinitionResponse: DSLWorkflowDefinitionResponse;
|
|
27
|
+
DSLWorkflowSpec: DSLWorkflowSpec;
|
|
28
|
+
DSLWorkflowSpecWithActivities: DSLWorkflowTypes.DSLWorkflowSpecWithActivities;
|
|
29
|
+
DSLWorkflowSpecWithSteps: DSLWorkflowSpecWithSteps;
|
|
30
|
+
DSLWorkflowStep: DSLWorkflowStep;
|
|
31
|
+
EventDeliveryTarget: EventDeliveryTarget;
|
|
32
|
+
EventDeliveryTargetInput: EventDeliveryTargetInput;
|
|
33
|
+
EventSubscription: EventSubscription;
|
|
34
|
+
EventSubscriptionArray: EventSubscription[];
|
|
35
|
+
EventSubscriptionMutationResponse: EventSubscriptionMutationResponse;
|
|
36
|
+
ListAgentRunsResponse: ListAgentRunsResponse;
|
|
37
|
+
NodeDefinition: NodeDefinition;
|
|
38
|
+
NodeDefinitionMap: Record<string, NodeDefinition>;
|
|
39
|
+
ProcessDefinition: ProcessDefinition;
|
|
40
|
+
ProcessDefinitionArray: ProcessDefinition[];
|
|
41
|
+
ProcessDefinitionBody: ProcessDefinitionBody;
|
|
42
|
+
ProcessEventDeliveryTarget: ProcessEventDeliveryTarget;
|
|
43
|
+
ProgrammaticRunResponse: ProgrammaticRunResponse;
|
|
44
|
+
RecordRunPayload: RecordRunPayload;
|
|
45
|
+
SupervisedRunResponse: SupervisedRunResponse;
|
|
46
|
+
UpdateAgentRunStatusPayload: UpdateAgentRunStatusPayload;
|
|
47
|
+
UpdateEventSubscriptionPayload: UpdateEventSubscriptionPayload;
|
|
48
|
+
UpdateProcessDefinitionPayload: UpdateProcessDefinitionPayload;
|
|
49
|
+
WorkflowDefinitionPayload: DSLWorkflowTypes.WorkflowDefinitionPayload;
|
|
50
|
+
WorkflowDefinitionPayloadWithActivities: DSLWorkflowTypes.WorkflowDefinitionPayloadWithActivities;
|
|
51
|
+
WorkflowDefinitionPayloadWithSteps: DSLWorkflowTypes.WorkflowDefinitionPayloadWithSteps;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* The wire type a component publishes.
|
|
55
|
+
*
|
|
56
|
+
* `ApiComponentType<'Account'>` is the plain type `gen:schemas` writes for `AccountSchema` into
|
|
57
|
+
* `ApiComponentTypes`, which `wire-types.generated.test.ts` proves identical to its `z.infer`. Indexing
|
|
58
|
+
* that map rather than `z.infer<ApiSchemaMap[N]>` keeps Zod's inference out of every program that names
|
|
59
|
+
* a component. A component the generator has not seen yet resolves to `never`, which
|
|
60
|
+
* `registry-groups.test.ts` rejects.
|
|
61
|
+
*
|
|
62
|
+
* It is wrapped in `NoInfer` because `N` always comes from a component-name argument and can never be
|
|
63
|
+
* recovered from the wire type. Without it, a call whose result has a contextual type — a destructuring
|
|
64
|
+
* `const { file } = validatedQuery(ctx, 'FileMetadataQuery')`, an `await`, a typed `return` — makes the
|
|
65
|
+
* checker infer `N` from that context while `N` is still unresolved, which evaluates `z.infer` across
|
|
66
|
+
* every component in the registry: about 500k types, 1 GB and 2 s of `tsc` in each consuming program.
|
|
67
|
+
*/
|
|
68
|
+
export type ApiComponentType<N extends ApiComponentName> = NoInfer<N extends keyof ZenoRecursiveComponentTypes ? ZenoRecursiveComponentTypes[N] : N extends keyof ApiComponentTypes ? ApiComponentTypes[N] : never>;
|
|
69
|
+
export {};
|
|
70
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/api-contract/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,8BAA8B,EAC9B,mBAAmB,EACnB,wBAAwB,EACxB,iBAAiB,EACjB,iCAAiC,EACjC,0BAA0B,EAC1B,8BAA8B,EACjC,MAAM,sBAAsB,CAAC;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AE,wBAAwB,CAAC;IACnD,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,sBAAsB,EAAE,iBAAiB,EAAE,CAAC;IAC5C,iCAAiC,EAAE,iCAAiC,CAAC;IACrE,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,cAAc,EAAE,cAAc,CAAC;IAC/B,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IAClD,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,sBAAsB,EAAE,iBAAiB,EAAE,CAAC;IAC5C,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,0BAA0B,EAAE,0BAA0B,CAAC;IACvD,uBAAuB,EAAE,uBAAuB,CAAC;IACjD,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,2BAA2B,EAAE,2BAA2B,CAAC;IACzD,8BAA8B,EAAE,8BAA8B,CAAC;IAC/D,8BAA8B,EAAE,8BAA8B,CAAC;IAC/D,yBAAyB,EAAE,gBAAgB,CAAC,yBAAyB,CAAC;IACtE,uCAAuC,EAAE,gBAAgB,CAAC,uCAAuC,CAAC;IAClG,kCAAkC,EAAE,gBAAgB,CAAC,kCAAkC,CAAC;CAC3F;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,gBAAgB,IAAI,OAAO,CAC9D,CAAC,SAAS,MAAM,2BAA2B,GACrC,2BAA2B,CAAC,CAAC,CAAC,GAC9B,CAAC,SAAS,MAAM,iBAAiB,GAC/B,iBAAiB,CAAC,CAAC,CAAC,GACpB,KAAK,CAChB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/api-contract/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { AccountType, BillingMethod, QuotaTier } from '../account-values.js';
|
|
3
|
-
import { ApiVersions } from '../versions.js';
|
|
4
3
|
import type * as Wire from '../wire-types.generated.js';
|
|
5
4
|
/**
|
|
6
5
|
* Runtime API schemas for the Accounts endpoints.
|
|
@@ -93,8 +92,4 @@ export type AccountBillingFromSchema = Wire.AccountBillingFromSchema;
|
|
|
93
92
|
export type AccountFromSchema = Wire.AccountFromSchema;
|
|
94
93
|
export type UpdateAccountPayloadFromSchema = Wire.UpdateAccountPayloadFromSchema;
|
|
95
94
|
export type StripeBillingStatusResponseFromSchema = Wire.StripeBillingStatusResponseFromSchema;
|
|
96
|
-
/** Account-wide defaults for request API version negotiation. */
|
|
97
|
-
export declare const AccountApiVersionPolicySchema: z.ZodObject<{
|
|
98
|
-
default_api_version: z.ZodOptional<z.ZodEnum<typeof ApiVersions>>;
|
|
99
|
-
}, z.core.$strict>;
|
|
100
95
|
//# sourceMappingURL=account.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../src/api-schemas/account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAyC,WAAW,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACpH,OAAO,
|
|
1
|
+
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../src/api-schemas/account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAyC,WAAW,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACpH,OAAO,KAAK,KAAK,IAAI,MAAM,4BAA4B,CAAC;AAExD;;;;;;;;;;;GAWG;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,iCAAsD,CAAC;AACvF,eAAO,MAAM,iBAAiB,+BAAkD,CAAC;AACjF,eAAO,MAAM,eAAe,6BAQ1B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;iBAKE,CAAC;AAEpC,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;iBAiDE,CAAC;AAE7B;;;;;;;GAOG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;iBAOE,CAAC;AAE1C,+FAA+F;AAC/F,eAAO,MAAM,0BAA0B;;;;iBAcE,CAAC;AAE1C,eAAO,MAAM,2BAA2B;;;;iBAME,CAAC;AAE3C,eAAO,MAAM,iCAAiC;;;;;;;;6BAEE,CAAC;AAEjD,MAAM,MAAM,wBAAwB,GAAG,IAAI,CAAC,wBAAwB,CAAC;AACrE,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,iBAAiB,CAAC;AACvD,MAAM,MAAM,8BAA8B,GAAG,IAAI,CAAC,8BAA8B,CAAC;AACjF,MAAM,MAAM,qCAAqC,GAAG,IAAI,CAAC,qCAAqC,CAAC"}
|
|
@@ -2,7 +2,6 @@ import { z } from 'zod';
|
|
|
2
2
|
// From the values module, never from `user.ts`: `user.ts` derives its public types from the schemas
|
|
3
3
|
// below, so importing it here would invert the dependency and make the source of truth circular.
|
|
4
4
|
import { ACCOUNT_APP_ACCESS_MESSAGE_MAX_LENGTH, AccountType, BillingMethod, QuotaTier } from '../account-values.js';
|
|
5
|
-
import { ApiVersions } from '../versions.js';
|
|
6
5
|
/**
|
|
7
6
|
* Runtime API schemas for the Accounts endpoints.
|
|
8
7
|
*
|
|
@@ -130,10 +129,4 @@ export const StripeBillingDisabledSchema = z
|
|
|
130
129
|
export const StripeBillingStatusResponseSchema = z
|
|
131
130
|
.discriminatedUnion('status', [StripeBillingEnabledSchema, StripeBillingDisabledSchema])
|
|
132
131
|
.meta({ id: 'StripeBillingStatusResponse' });
|
|
133
|
-
/** Account-wide defaults for request API version negotiation. */
|
|
134
|
-
export const AccountApiVersionPolicySchema = z
|
|
135
|
-
.strictObject({
|
|
136
|
-
default_api_version: z.enum(ApiVersions).optional(),
|
|
137
|
-
})
|
|
138
|
-
.meta({ id: 'AccountApiVersionPolicy' });
|
|
139
132
|
//# sourceMappingURL=account.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../src/api-schemas/account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,oGAAoG;AACpG,iGAAiG;AACjG,OAAO,EAAE,qCAAqC,EAAE,WAAW,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../src/api-schemas/account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,oGAAoG;AACpG,iGAAiG;AACjG,OAAO,EAAE,qCAAqC,EAAE,WAAW,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGpH;;;;;;;;;;;GAWG;AAEH;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,eAAe,EAAE,CAAC,CAAC;AACvF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,aAAa,EAAE,CAAC,CAAC;AACjF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC;IAClD,EAAE,EAAE,WAAW;IACf,WAAW,EACP,2FAA2F;QAC3F,qDAAqD;QACrD,8EAA8E;QAC9E,kFAAkF;QAClF,oFAAoF;CAC3F,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC;KAChC,MAAM,CAAC;IACJ,MAAM,EAAE,mBAAmB;IAC3B,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,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C,CAAC;AAE1C,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC;KACvC,MAAM,CAAC;IACJ,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;IAC7B,cAAc,EAAE,mBAAmB,CAAC,QAAQ,EAAE;IAC9C,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACrB,CAAC;KACD,IAAI,CAAC,EAAE,EAAE,EAAE,uBAAuB,EAAE,CAAC,CAAC;AAE3C,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC;KAC7C,kBAAkB,CAAC,QAAQ,EAAE,CAAC,0BAA0B,EAAE,2BAA2B,CAAC,CAAC;KACvF,IAAI,CAAC,EAAE,EAAE,EAAE,6BAA6B,EAAE,CAAC,CAAC"}
|
|
@@ -20,6 +20,8 @@ export declare const KnownAuditActionSchema: z.ZodEnum<{
|
|
|
20
20
|
image_generation: "image_generation";
|
|
21
21
|
inference: "inference";
|
|
22
22
|
publish: "publish";
|
|
23
|
+
read: "read";
|
|
24
|
+
search: "search";
|
|
23
25
|
unpublish: "unpublish";
|
|
24
26
|
update: "update";
|
|
25
27
|
}>;
|
|
@@ -40,6 +42,7 @@ export declare const AuditAggregationDimensionMapSchema: z.ZodObject<{
|
|
|
40
42
|
project_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
43
|
principal_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
44
|
actor_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
+
user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
46
|
'details.pipeline': z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
47
|
'details.verdict': z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
48
|
'details.workflow_type': z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -51,6 +54,7 @@ export declare const AuditAggregationDistinctFieldSchema: z.ZodEnum<{
|
|
|
51
54
|
principal_id: "principal_id";
|
|
52
55
|
request_id: "request_id";
|
|
53
56
|
resource_id: "resource_id";
|
|
57
|
+
user_id: "user_id";
|
|
54
58
|
}>;
|
|
55
59
|
export declare const AuditAggregationOperationSchema: z.ZodEnum<{
|
|
56
60
|
average_meter: "average_meter";
|
|
@@ -78,6 +82,7 @@ export declare const AuditAggregationDimensionSchema: z.ZodEnum<{
|
|
|
78
82
|
provider: "provider";
|
|
79
83
|
resource_type: "resource_type";
|
|
80
84
|
time: "time";
|
|
85
|
+
user_id: "user_id";
|
|
81
86
|
}>;
|
|
82
87
|
export declare const AuditAggregationDetailFieldSchema: z.ZodEnum<{
|
|
83
88
|
pipeline: "pipeline";
|
|
@@ -101,6 +106,8 @@ export declare const AuditActionSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
|
101
106
|
image_generation: "image_generation";
|
|
102
107
|
inference: "inference";
|
|
103
108
|
publish: "publish";
|
|
109
|
+
read: "read";
|
|
110
|
+
search: "search";
|
|
104
111
|
unpublish: "unpublish";
|
|
105
112
|
update: "update";
|
|
106
113
|
}>, z.ZodString]>;
|
|
@@ -114,6 +121,7 @@ export declare const AuditAggregationRowSchema: z.ZodObject<{
|
|
|
114
121
|
project_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
115
122
|
principal_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
116
123
|
actor_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
124
|
+
user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
117
125
|
'details.pipeline': z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
118
126
|
'details.verdict': z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
119
127
|
'details.workflow_type': z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -135,6 +143,7 @@ export declare const AuditAggregationMetricSchema: z.ZodObject<{
|
|
|
135
143
|
principal_id: "principal_id";
|
|
136
144
|
request_id: "request_id";
|
|
137
145
|
resource_id: "resource_id";
|
|
146
|
+
user_id: "user_id";
|
|
138
147
|
}>>;
|
|
139
148
|
meterCategory: z.ZodOptional<z.ZodString>;
|
|
140
149
|
meterType: z.ZodOptional<z.ZodString>;
|
|
@@ -154,6 +163,7 @@ export declare const AuditAggregationGroupSchema: z.ZodObject<{
|
|
|
154
163
|
provider: "provider";
|
|
155
164
|
resource_type: "resource_type";
|
|
156
165
|
time: "time";
|
|
166
|
+
user_id: "user_id";
|
|
157
167
|
}>;
|
|
158
168
|
resolution: z.ZodOptional<z.ZodEnum<{
|
|
159
169
|
day: "day";
|
|
@@ -206,6 +216,8 @@ export declare const AuditTrailEventSchema: z.ZodObject<{
|
|
|
206
216
|
image_generation: "image_generation";
|
|
207
217
|
inference: "inference";
|
|
208
218
|
publish: "publish";
|
|
219
|
+
read: "read";
|
|
220
|
+
search: "search";
|
|
209
221
|
unpublish: "unpublish";
|
|
210
222
|
update: "update";
|
|
211
223
|
}>, z.ZodString]>;
|
|
@@ -243,6 +255,7 @@ export declare const AuditAggregationResponseSchema: z.ZodObject<{
|
|
|
243
255
|
project_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
244
256
|
principal_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
245
257
|
actor_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
258
|
+
user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
246
259
|
'details.pipeline': z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
247
260
|
'details.verdict': z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
248
261
|
'details.workflow_type': z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -271,6 +284,8 @@ export declare const AuditAggregationFilterSchema: z.ZodObject<{
|
|
|
271
284
|
image_generation: "image_generation";
|
|
272
285
|
inference: "inference";
|
|
273
286
|
publish: "publish";
|
|
287
|
+
read: "read";
|
|
288
|
+
search: "search";
|
|
274
289
|
unpublish: "unpublish";
|
|
275
290
|
update: "update";
|
|
276
291
|
}>, z.ZodString]>>>;
|
|
@@ -332,6 +347,8 @@ export declare const AuditTrailResponseSchema: z.ZodObject<{
|
|
|
332
347
|
image_generation: "image_generation";
|
|
333
348
|
inference: "inference";
|
|
334
349
|
publish: "publish";
|
|
350
|
+
read: "read";
|
|
351
|
+
search: "search";
|
|
335
352
|
unpublish: "unpublish";
|
|
336
353
|
update: "update";
|
|
337
354
|
}>, z.ZodString]>;
|
|
@@ -383,6 +400,8 @@ export declare const AuditAggregationQuerySchema: z.ZodObject<{
|
|
|
383
400
|
image_generation: "image_generation";
|
|
384
401
|
inference: "inference";
|
|
385
402
|
publish: "publish";
|
|
403
|
+
read: "read";
|
|
404
|
+
search: "search";
|
|
386
405
|
unpublish: "unpublish";
|
|
387
406
|
update: "update";
|
|
388
407
|
}>, z.ZodString]>>>;
|
|
@@ -423,6 +442,7 @@ export declare const AuditAggregationQuerySchema: z.ZodObject<{
|
|
|
423
442
|
provider: "provider";
|
|
424
443
|
resource_type: "resource_type";
|
|
425
444
|
time: "time";
|
|
445
|
+
user_id: "user_id";
|
|
426
446
|
}>;
|
|
427
447
|
resolution: z.ZodOptional<z.ZodEnum<{
|
|
428
448
|
day: "day";
|
|
@@ -444,6 +464,7 @@ export declare const AuditAggregationQuerySchema: z.ZodObject<{
|
|
|
444
464
|
principal_id: "principal_id";
|
|
445
465
|
request_id: "request_id";
|
|
446
466
|
resource_id: "resource_id";
|
|
467
|
+
user_id: "user_id";
|
|
447
468
|
}>>;
|
|
448
469
|
meterCategory: z.ZodOptional<z.ZodString>;
|
|
449
470
|
meterType: z.ZodOptional<z.ZodString>;
|
|
@@ -467,6 +488,8 @@ export declare const AuditTrailQuerySchema: z.ZodObject<{
|
|
|
467
488
|
image_generation: "image_generation";
|
|
468
489
|
inference: "inference";
|
|
469
490
|
publish: "publish";
|
|
491
|
+
read: "read";
|
|
492
|
+
search: "search";
|
|
470
493
|
unpublish: "unpublish";
|
|
471
494
|
update: "update";
|
|
472
495
|
}>, z.ZodString]>>>;
|
|
@@ -482,4 +505,236 @@ export declare const AuditTrailQuerySchema: z.ZodObject<{
|
|
|
482
505
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
483
506
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
484
507
|
}, z.core.$strict>;
|
|
508
|
+
export declare const AuditAdoptionFilterSchema: z.ZodObject<{
|
|
509
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
510
|
+
attach: "attach";
|
|
511
|
+
bulk_change_type: "bulk_change_type";
|
|
512
|
+
bulk_create: "bulk_create";
|
|
513
|
+
bulk_delete: "bulk_delete";
|
|
514
|
+
bulk_update: "bulk_update";
|
|
515
|
+
create: "create";
|
|
516
|
+
credentials_fill: "credentials_fill";
|
|
517
|
+
credentials_totp_generation: "credentials_totp_generation";
|
|
518
|
+
delete: "delete";
|
|
519
|
+
detach: "detach";
|
|
520
|
+
document_processed: "document_processed";
|
|
521
|
+
embedding: "embedding";
|
|
522
|
+
image_generation: "image_generation";
|
|
523
|
+
inference: "inference";
|
|
524
|
+
publish: "publish";
|
|
525
|
+
read: "read";
|
|
526
|
+
search: "search";
|
|
527
|
+
unpublish: "unpublish";
|
|
528
|
+
update: "update";
|
|
529
|
+
}>, z.ZodString]>>>;
|
|
530
|
+
resourceTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
531
|
+
eventCategories: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
532
|
+
billing: "billing";
|
|
533
|
+
content: "content";
|
|
534
|
+
external: "external";
|
|
535
|
+
security: "security";
|
|
536
|
+
system: "system";
|
|
537
|
+
workflow: "workflow";
|
|
538
|
+
}>>>;
|
|
539
|
+
}, z.core.$strict>;
|
|
540
|
+
export declare const AuditAdoptionQuerySchema: z.ZodObject<{
|
|
541
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
542
|
+
from: z.ZodOptional<z.ZodString>;
|
|
543
|
+
to: z.ZodOptional<z.ZodString>;
|
|
544
|
+
filter: z.ZodOptional<z.ZodObject<{
|
|
545
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
546
|
+
attach: "attach";
|
|
547
|
+
bulk_change_type: "bulk_change_type";
|
|
548
|
+
bulk_create: "bulk_create";
|
|
549
|
+
bulk_delete: "bulk_delete";
|
|
550
|
+
bulk_update: "bulk_update";
|
|
551
|
+
create: "create";
|
|
552
|
+
credentials_fill: "credentials_fill";
|
|
553
|
+
credentials_totp_generation: "credentials_totp_generation";
|
|
554
|
+
delete: "delete";
|
|
555
|
+
detach: "detach";
|
|
556
|
+
document_processed: "document_processed";
|
|
557
|
+
embedding: "embedding";
|
|
558
|
+
image_generation: "image_generation";
|
|
559
|
+
inference: "inference";
|
|
560
|
+
publish: "publish";
|
|
561
|
+
read: "read";
|
|
562
|
+
search: "search";
|
|
563
|
+
unpublish: "unpublish";
|
|
564
|
+
update: "update";
|
|
565
|
+
}>, z.ZodString]>>>;
|
|
566
|
+
resourceTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
567
|
+
eventCategories: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
568
|
+
billing: "billing";
|
|
569
|
+
content: "content";
|
|
570
|
+
external: "external";
|
|
571
|
+
security: "security";
|
|
572
|
+
system: "system";
|
|
573
|
+
workflow: "workflow";
|
|
574
|
+
}>>>;
|
|
575
|
+
}, z.core.$strict>>;
|
|
576
|
+
}, z.core.$strict>;
|
|
577
|
+
export declare const AuditAdoptionPeriodSchema: z.ZodObject<{
|
|
578
|
+
from: z.ZodString;
|
|
579
|
+
to: z.ZodString;
|
|
580
|
+
}, z.core.$strict>;
|
|
581
|
+
export declare const AuditAdoptionBucketSchema: z.ZodObject<{
|
|
582
|
+
from: z.ZodString;
|
|
583
|
+
to: z.ZodString;
|
|
584
|
+
partial: z.ZodBoolean;
|
|
585
|
+
active_users: z.ZodNumber;
|
|
586
|
+
}, z.core.$strict>;
|
|
587
|
+
export declare const AuditAdoptionActiveDaysSchema: z.ZodObject<{
|
|
588
|
+
days: z.ZodNumber;
|
|
589
|
+
users: z.ZodNumber;
|
|
590
|
+
}, z.core.$strict>;
|
|
591
|
+
export declare const AuditAdoptionProjectSchema: z.ZodObject<{
|
|
592
|
+
project_id: z.ZodString;
|
|
593
|
+
project_name: z.ZodNullable<z.ZodString>;
|
|
594
|
+
active_users: z.ZodNumber;
|
|
595
|
+
active_user_days: z.ZodNumber;
|
|
596
|
+
}, z.core.$strict>;
|
|
597
|
+
export declare const AuditAdoptionHistorySchema: z.ZodObject<{
|
|
598
|
+
earliest_observed_at: z.ZodNullable<z.ZodString>;
|
|
599
|
+
coverage_from: z.ZodNullable<z.ZodString>;
|
|
600
|
+
completeness: z.ZodEnum<{
|
|
601
|
+
insufficient: "insufficient";
|
|
602
|
+
unknown: "unknown";
|
|
603
|
+
verified: "verified";
|
|
604
|
+
}>;
|
|
605
|
+
retention_unavailable_reason: z.ZodNullable<z.ZodEnum<{
|
|
606
|
+
insufficient_history: "insufficient_history";
|
|
607
|
+
no_previous_users: "no_previous_users";
|
|
608
|
+
}>>;
|
|
609
|
+
}, z.core.$strict>;
|
|
610
|
+
export declare const AuditAdoptionResponseSchema: z.ZodObject<{
|
|
611
|
+
period: z.ZodObject<{
|
|
612
|
+
from: z.ZodString;
|
|
613
|
+
to: z.ZodString;
|
|
614
|
+
}, z.core.$strict>;
|
|
615
|
+
previous_period: z.ZodObject<{
|
|
616
|
+
from: z.ZodString;
|
|
617
|
+
to: z.ZodString;
|
|
618
|
+
}, z.core.$strict>;
|
|
619
|
+
resolution: z.ZodEnum<{
|
|
620
|
+
day: "day";
|
|
621
|
+
week: "week";
|
|
622
|
+
}>;
|
|
623
|
+
active_users: z.ZodNumber;
|
|
624
|
+
previous_active_users: z.ZodNumber;
|
|
625
|
+
retained_users: z.ZodNumber;
|
|
626
|
+
observed_retention: z.ZodNullable<z.ZodNumber>;
|
|
627
|
+
returning_user_share: z.ZodNullable<z.ZodNumber>;
|
|
628
|
+
repeat_user_share: z.ZodNullable<z.ZodNumber>;
|
|
629
|
+
median_active_days: z.ZodNullable<z.ZodNumber>;
|
|
630
|
+
active_projects: z.ZodNullable<z.ZodNumber>;
|
|
631
|
+
timeline: z.ZodArray<z.ZodObject<{
|
|
632
|
+
from: z.ZodString;
|
|
633
|
+
to: z.ZodString;
|
|
634
|
+
partial: z.ZodBoolean;
|
|
635
|
+
active_users: z.ZodNumber;
|
|
636
|
+
}, z.core.$strict>>;
|
|
637
|
+
active_day_distribution: z.ZodArray<z.ZodObject<{
|
|
638
|
+
days: z.ZodNumber;
|
|
639
|
+
users: z.ZodNumber;
|
|
640
|
+
}, z.core.$strict>>;
|
|
641
|
+
top_projects: z.ZodArray<z.ZodObject<{
|
|
642
|
+
project_id: z.ZodString;
|
|
643
|
+
project_name: z.ZodNullable<z.ZodString>;
|
|
644
|
+
active_users: z.ZodNumber;
|
|
645
|
+
active_user_days: z.ZodNumber;
|
|
646
|
+
}, z.core.$strict>>;
|
|
647
|
+
history: z.ZodObject<{
|
|
648
|
+
earliest_observed_at: z.ZodNullable<z.ZodString>;
|
|
649
|
+
coverage_from: z.ZodNullable<z.ZodString>;
|
|
650
|
+
completeness: z.ZodEnum<{
|
|
651
|
+
insufficient: "insufficient";
|
|
652
|
+
unknown: "unknown";
|
|
653
|
+
verified: "verified";
|
|
654
|
+
}>;
|
|
655
|
+
retention_unavailable_reason: z.ZodNullable<z.ZodEnum<{
|
|
656
|
+
insufficient_history: "insufficient_history";
|
|
657
|
+
no_previous_users: "no_previous_users";
|
|
658
|
+
}>>;
|
|
659
|
+
}, z.core.$strict>;
|
|
660
|
+
}, z.core.$strict>;
|
|
661
|
+
export declare const AuditUsageQuerySchema: z.ZodObject<{
|
|
662
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
663
|
+
from: z.ZodOptional<z.ZodString>;
|
|
664
|
+
to: z.ZodOptional<z.ZodString>;
|
|
665
|
+
resolution: z.ZodOptional<z.ZodEnum<{
|
|
666
|
+
day: "day";
|
|
667
|
+
month: "month";
|
|
668
|
+
week: "week";
|
|
669
|
+
}>>;
|
|
670
|
+
}, z.core.$strict>;
|
|
671
|
+
export declare const AuditUsageCountsSchema: z.ZodObject<{
|
|
672
|
+
active_users: z.ZodNumber;
|
|
673
|
+
agent_runs: z.ZodNumber;
|
|
674
|
+
user_agent_runs: z.ZodNumber;
|
|
675
|
+
automated_agent_runs: z.ZodNumber;
|
|
676
|
+
agent_users: z.ZodNumber;
|
|
677
|
+
direct_calls: z.ZodNumber;
|
|
678
|
+
direct_call_users: z.ZodNumber;
|
|
679
|
+
content_objects: z.ZodNumber;
|
|
680
|
+
user_content_objects: z.ZodNumber;
|
|
681
|
+
other_content_objects: z.ZodNumber;
|
|
682
|
+
}, z.core.$strict>;
|
|
683
|
+
export declare const AuditUsageBucketSchema: z.ZodObject<{
|
|
684
|
+
from: z.ZodString;
|
|
685
|
+
to: z.ZodString;
|
|
686
|
+
partial: z.ZodBoolean;
|
|
687
|
+
counts: z.ZodObject<{
|
|
688
|
+
active_users: z.ZodNumber;
|
|
689
|
+
agent_runs: z.ZodNumber;
|
|
690
|
+
user_agent_runs: z.ZodNumber;
|
|
691
|
+
automated_agent_runs: z.ZodNumber;
|
|
692
|
+
agent_users: z.ZodNumber;
|
|
693
|
+
direct_calls: z.ZodNumber;
|
|
694
|
+
direct_call_users: z.ZodNumber;
|
|
695
|
+
content_objects: z.ZodNumber;
|
|
696
|
+
user_content_objects: z.ZodNumber;
|
|
697
|
+
other_content_objects: z.ZodNumber;
|
|
698
|
+
}, z.core.$strict>;
|
|
699
|
+
}, z.core.$strict>;
|
|
700
|
+
export declare const AuditUsageResponseSchema: z.ZodObject<{
|
|
701
|
+
period: z.ZodObject<{
|
|
702
|
+
from: z.ZodString;
|
|
703
|
+
to: z.ZodString;
|
|
704
|
+
}, z.core.$strict>;
|
|
705
|
+
resolution: z.ZodEnum<{
|
|
706
|
+
day: "day";
|
|
707
|
+
month: "month";
|
|
708
|
+
week: "week";
|
|
709
|
+
}>;
|
|
710
|
+
totals: z.ZodObject<{
|
|
711
|
+
active_users: z.ZodNumber;
|
|
712
|
+
agent_runs: z.ZodNumber;
|
|
713
|
+
user_agent_runs: z.ZodNumber;
|
|
714
|
+
automated_agent_runs: z.ZodNumber;
|
|
715
|
+
agent_users: z.ZodNumber;
|
|
716
|
+
direct_calls: z.ZodNumber;
|
|
717
|
+
direct_call_users: z.ZodNumber;
|
|
718
|
+
content_objects: z.ZodNumber;
|
|
719
|
+
user_content_objects: z.ZodNumber;
|
|
720
|
+
other_content_objects: z.ZodNumber;
|
|
721
|
+
}, z.core.$strict>;
|
|
722
|
+
timeline: z.ZodArray<z.ZodObject<{
|
|
723
|
+
from: z.ZodString;
|
|
724
|
+
to: z.ZodString;
|
|
725
|
+
partial: z.ZodBoolean;
|
|
726
|
+
counts: z.ZodObject<{
|
|
727
|
+
active_users: z.ZodNumber;
|
|
728
|
+
agent_runs: z.ZodNumber;
|
|
729
|
+
user_agent_runs: z.ZodNumber;
|
|
730
|
+
automated_agent_runs: z.ZodNumber;
|
|
731
|
+
agent_users: z.ZodNumber;
|
|
732
|
+
direct_calls: z.ZodNumber;
|
|
733
|
+
direct_call_users: z.ZodNumber;
|
|
734
|
+
content_objects: z.ZodNumber;
|
|
735
|
+
user_content_objects: z.ZodNumber;
|
|
736
|
+
other_content_objects: z.ZodNumber;
|
|
737
|
+
}, z.core.$strict>;
|
|
738
|
+
}, z.core.$strict>>;
|
|
739
|
+
}, z.core.$strict>;
|
|
485
740
|
//# sourceMappingURL=audit-trail.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit-trail.d.ts","sourceRoot":"","sources":["../../src/api-schemas/audit-trail.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,eAAO,MAAM,gBAAgB;;;;kBAUvB,CAAC;AAMP,eAAO,MAAM,sBAAsB
|
|
1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