@inf-monkeys-tech/monkeys 1.1.42 → 1.1.44
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/contracts/agent-data.d.ts +470 -0
- package/lib/contracts/agent-data.d.ts.map +1 -0
- package/lib/contracts/agent-data.js +139 -0
- package/lib/contracts/agent-data.js.map +1 -0
- package/lib/contracts/agent-work.d.ts +2 -0
- package/lib/contracts/agent-work.d.ts.map +1 -1
- package/lib/contracts/agent-work.js +2 -0
- package/lib/contracts/agent-work.js.map +1 -1
- package/lib/contracts/declarative-control-http.d.ts +176 -175
- package/lib/contracts/declarative-control-http.d.ts.map +1 -1
- package/lib/contracts/declarative-control-http.js +1 -0
- package/lib/contracts/declarative-control-http.js.map +1 -1
- package/lib/contracts/declarative-control.d.ts +30 -30
- package/lib/contracts/declarative-diagnostic.d.ts +2 -2
- package/lib/contracts/declarative-document-import.d.ts +2 -2
- package/lib/contracts/declarative-publication-job.d.ts +72 -72
- package/lib/contracts/declarative-publication-verification.d.ts +209 -0
- package/lib/contracts/declarative-publication-verification.d.ts.map +1 -0
- package/lib/contracts/declarative-publication-verification.js +56 -0
- package/lib/contracts/declarative-publication-verification.js.map +1 -0
- package/lib/contracts/index.d.ts +2 -0
- package/lib/contracts/index.d.ts.map +1 -1
- package/lib/contracts/index.js +2 -0
- package/lib/contracts/index.js.map +1 -1
- package/lib/contracts/menu.d.ts +2 -2
- package/lib/contracts/page.d.ts +7 -7
- package/lib/contracts/render.d.ts +5 -5
- package/lib/contracts/semantic.d.ts +2 -2
- package/lib/contracts/tenant.d.ts +10 -10
- package/lib/esm/{chunk-3YISMAL3.mjs → chunk-AYNGVVND.mjs} +7 -3
- package/lib/esm/chunk-AYNGVVND.mjs.map +1 -0
- package/lib/esm/{chunk-UUUHWSYL.mjs → chunk-DFALYXAY.mjs} +2 -2
- package/lib/esm/{chunk-XUWZH2H3.mjs → chunk-QPFYQ24T.mjs} +2 -1
- package/lib/esm/{chunk-XUWZH2H3.mjs.map → chunk-QPFYQ24T.mjs.map} +1 -1
- package/lib/esm/chunk-TKIVZQ6V.mjs +431 -0
- package/lib/esm/chunk-TKIVZQ6V.mjs.map +1 -0
- package/lib/esm/{chunk-33OQXBRM.mjs → chunk-UY2ZSIR2.mjs} +3 -3
- package/lib/esm/{chunk-WRSX2N7O.mjs → chunk-WYV3EFUS.mjs} +258 -204
- package/lib/esm/chunk-WYV3EFUS.mjs.map +1 -0
- package/lib/esm/contracts/index.mjs +50 -4
- package/lib/esm/index.mjs +52 -6
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +3 -3
- package/lib/esm/schemas/index.mjs +3 -3
- package/lib/json-schema/declarative-publication-verification-request.schema.json +338 -0
- package/lib/json-schema/declarative-publication-verification.schema.json +462 -0
- package/lib/json-schema/index.json +2 -0
- package/lib/runtime/runtime-definition-wire.d.ts +14 -14
- package/lib/schemas/index.d.ts +223 -28
- package/lib/schemas/index.d.ts.map +1 -1
- package/lib/schemas/index.js +3 -0
- package/lib/schemas/index.js.map +1 -1
- package/package.json +1 -1
- package/lib/esm/chunk-3YISMAL3.mjs.map +0 -1
- package/lib/esm/chunk-NTHT6LZF.mjs +0 -270
- package/lib/esm/chunk-NTHT6LZF.mjs.map +0 -1
- package/lib/esm/chunk-WRSX2N7O.mjs.map +0 -1
- /package/lib/esm/{chunk-UUUHWSYL.mjs.map → chunk-DFALYXAY.mjs.map} +0 -0
- /package/lib/esm/{chunk-33OQXBRM.mjs.map → chunk-UY2ZSIR2.mjs.map} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/contracts/artifact.ts","../../src/contracts/aggregate-commit.ts","../../src/contracts/context.ts","../../src/contracts/continuity.ts","../../src/contracts/declarative-publication-verification.ts","../../src/contracts/declarative-document-import.ts","../../src/contracts/trend.ts","../../src/contracts/workflow-runtime.ts"],"sourcesContent":["import { z } from 'zod';\nimport {\n ContractIdentifierSchema,\n EntityRefSchema,\n IsoDateTimeSchema,\n JsonValueSchema,\n Sha256Schema,\n} from './common';\n\nexport const StorageLocatorSchema = z\n .object({\n provider: ContractIdentifierSchema,\n bucket: ContractIdentifierSchema.optional(),\n key: ContractIdentifierSchema,\n region: ContractIdentifierSchema.optional(),\n url: z.string().url().optional(),\n expiresAt: IsoDateTimeSchema.optional(),\n })\n .strict();\n\nexport const ArtifactAccessSchema = z\n .object({\n tenantId: ContractIdentifierSchema.optional(),\n teamId: ContractIdentifierSchema.optional(),\n ownerRef: EntityRefSchema.optional(),\n visibility: z.enum(['private', 'team', 'tenant', 'public']),\n })\n .strict();\n\nexport const ArtifactManifestSchema = z\n .object({\n contract: z.literal('ArtifactManifest'),\n artifactId: ContractIdentifierSchema,\n kind: ContractIdentifierSchema,\n mimeType: z.string().trim().min(1),\n byteSize: z.number().int().nonnegative().optional(),\n sha256: Sha256Schema,\n storage: StorageLocatorSchema,\n sourceRef: EntityRefSchema.optional(),\n runRef: EntityRefSchema,\n outputRef: EntityRefSchema,\n producer: z\n .object({\n service: ContractIdentifierSchema,\n version: ContractIdentifierSchema,\n capabilityRef: EntityRefSchema.optional(),\n })\n .strict(),\n access: ArtifactAccessSchema,\n metadata: z.record(z.string(), JsonValueSchema).default({}),\n createdAt: IsoDateTimeSchema,\n })\n .strict();\n\nexport const OutputRecordSchema = z\n .object({\n contract: z.literal('OutputRecord'),\n outputId: ContractIdentifierSchema,\n runRef: EntityRefSchema,\n outputPort: ContractIdentifierSchema,\n value: JsonValueSchema.optional(),\n artifactRefs: z.array(EntityRefSchema).default([]),\n schemaRef: ContractIdentifierSchema.optional(),\n createdAt: IsoDateTimeSchema,\n })\n .strict();\n\nexport type StorageLocator = z.infer<typeof StorageLocatorSchema>;\nexport type ArtifactAccess = z.infer<typeof ArtifactAccessSchema>;\nexport type ArtifactManifest = z.infer<typeof ArtifactManifestSchema>;\nexport type OutputRecord = z.infer<typeof OutputRecordSchema>;\n","import { z } from 'zod';\nimport { JsonObjectSchema } from './common';\n\nconst AggregateIdentifierSchema = z.string().trim().min(1).max(128);\nconst AggregateRequestIdentifierSchema = z.string().trim().min(1).max(256);\nconst AggregateMutationsLimit = 500;\n\nexport const AggregateAssetSchema = z\n .object({\n id: AggregateIdentifierSchema,\n name: z.string().trim().min(1).max(500),\n asset_type: AggregateIdentifierSchema,\n primary_content: JsonObjectSchema,\n status: z.string().trim().min(1).max(64).optional(),\n creator_user_id: AggregateIdentifierSchema.optional(),\n properties: JsonObjectSchema.optional(),\n files: z.array(JsonObjectSchema).max(100).optional(),\n media: z.string().max(4096).optional(),\n thumbnail: z.string().max(4096).optional(),\n media_ref: JsonObjectSchema.optional(),\n keywords: z.string().max(2000).optional(),\n extra: JsonObjectSchema.optional(),\n sort: z.number().int().nonnegative().optional(),\n })\n .strict();\n\nexport const AggregateAssetUpsertSchema = z\n .object({\n ontology_id: AggregateIdentifierSchema,\n asset: AggregateAssetSchema,\n tag_ids: z.array(AggregateIdentifierSchema).max(200).optional(),\n })\n .strict();\n\nexport const AggregateAssetDeleteSchema = z\n .object({\n ontology_id: AggregateIdentifierSchema,\n asset_id: AggregateIdentifierSchema,\n })\n .strict();\n\nexport const AggregateFeatureValueWriteSchema = z\n .object({\n ontology_id: AggregateIdentifierSchema,\n asset_id: AggregateIdentifierSchema,\n column_id: AggregateIdentifierSchema,\n value_text: z.string().max(1_000_000).nullable(),\n })\n .strict();\n\nexport const AggregateFeatureRelationTargetSchema = z\n .object({\n ontology_id: AggregateIdentifierSchema,\n asset_id: AggregateIdentifierSchema,\n })\n .strict();\n\nexport const AggregateFeatureRelationReplaceSchema = z\n .object({\n ontology_id: AggregateIdentifierSchema,\n asset_id: AggregateIdentifierSchema,\n column_id: AggregateIdentifierSchema,\n targets: z.array(AggregateFeatureRelationTargetSchema).max(AggregateMutationsLimit),\n })\n .strict();\n\nexport const AggregateAssetRelationObjectSchema = z\n .object({\n object_kind: z.string().trim().min(1).max(64),\n object_id: z.string().trim().min(1).max(256),\n properties: JsonObjectSchema.optional(),\n })\n .strict();\n\nexport const AggregateAssetRelationReplaceSchema = z\n .object({\n ontology_id: AggregateIdentifierSchema,\n asset_id: AggregateIdentifierSchema,\n relation_kind: z.string().trim().min(1).max(64),\n objects: z.array(AggregateAssetRelationObjectSchema).max(AggregateMutationsLimit),\n })\n .strict();\n\nexport const AggregateContainerMembershipWriteSchema = z\n .object({\n ontology_id: AggregateIdentifierSchema,\n container_view_id: AggregateIdentifierSchema,\n asset_id: AggregateIdentifierSchema,\n present: z.boolean(),\n })\n .strict();\n\nexport const AggregateCommitRequestSchema = z\n .object({\n contract: z.literal('AggregateCommitRequest'),\n aggregate_id: AggregateIdentifierSchema,\n request_id: AggregateRequestIdentifierSchema,\n idempotency_key: AggregateIdentifierSchema,\n expected_head_commit_id: AggregateIdentifierSchema.optional(),\n message: z.string().trim().max(500).optional(),\n assets: z.array(AggregateAssetUpsertSchema).max(AggregateMutationsLimit).optional(),\n asset_deletes: z.array(AggregateAssetDeleteSchema).max(AggregateMutationsLimit).optional(),\n feature_values: z.array(AggregateFeatureValueWriteSchema).max(AggregateMutationsLimit).optional(),\n feature_relations: z.array(AggregateFeatureRelationReplaceSchema).max(AggregateMutationsLimit).optional(),\n asset_relations: z.array(AggregateAssetRelationReplaceSchema).max(AggregateMutationsLimit).optional(),\n container_memberships: z.array(AggregateContainerMembershipWriteSchema).max(AggregateMutationsLimit).optional(),\n })\n .strict()\n .superRefine((request, context) => {\n const mutationCount =\n (request.assets?.length ?? 0) +\n (request.asset_deletes?.length ?? 0) +\n (request.feature_values?.length ?? 0) +\n (request.feature_relations?.length ?? 0) +\n (request.asset_relations?.length ?? 0) +\n (request.container_memberships?.length ?? 0);\n if (mutationCount === 0) {\n context.addIssue({ code: 'custom', message: 'at least one aggregate mutation is required' });\n }\n });\n\nexport type AggregateAsset = z.infer<typeof AggregateAssetSchema>;\nexport type AggregateAssetUpsert = z.infer<typeof AggregateAssetUpsertSchema>;\nexport type AggregateAssetDelete = z.infer<typeof AggregateAssetDeleteSchema>;\nexport type AggregateFeatureValueWrite = z.infer<typeof AggregateFeatureValueWriteSchema>;\nexport type AggregateFeatureRelationTarget = z.infer<typeof AggregateFeatureRelationTargetSchema>;\nexport type AggregateFeatureRelationReplace = z.infer<typeof AggregateFeatureRelationReplaceSchema>;\nexport type AggregateAssetRelationObject = z.infer<typeof AggregateAssetRelationObjectSchema>;\nexport type AggregateAssetRelationReplace = z.infer<typeof AggregateAssetRelationReplaceSchema>;\nexport type AggregateContainerMembershipWrite = z.infer<typeof AggregateContainerMembershipWriteSchema>;\nexport type AggregateCommitRequest = z.infer<typeof AggregateCommitRequestSchema>;\n","import { z } from 'zod';\nimport {\n ContractIdentifierSchema,\n EntityRefSchema,\n IsoDateTimeSchema,\n JsonValueSchema,\n} from './common';\n\nexport const ActorRefSchema = z\n .object({\n kind: z.enum(['human', 'agent', 'service', 'tenant', 'public']),\n id: ContractIdentifierSchema.optional(),\n userId: ContractIdentifierSchema.optional(),\n agentId: ContractIdentifierSchema.optional(),\n serviceId: ContractIdentifierSchema.optional(),\n })\n .strict();\n\nexport const AuthorityScopeSchema = z\n .object({\n resource: ContractIdentifierSchema,\n actions: z.array(ContractIdentifierSchema).min(1),\n constraints: z.record(z.string(), JsonValueSchema).optional(),\n })\n .strict();\n\nexport const RequestScopeSchema = z\n .object({\n contract: z.literal('RequestScope'),\n requestId: ContractIdentifierSchema,\n traceId: ContractIdentifierSchema.optional(),\n appId: ContractIdentifierSchema,\n tenantId: ContractIdentifierSchema.optional(),\n teamId: ContractIdentifierSchema.optional(),\n actor: ActorRefSchema,\n session: z\n .object({\n authType: ContractIdentifierSchema,\n authenticated: z.boolean(),\n membershipVerified: z.boolean(),\n })\n .strict(),\n permissionCodes: z.array(ContractIdentifierSchema).default([]),\n authority: z.array(AuthorityScopeSchema).default([]),\n issuedAt: IsoDateTimeSchema,\n })\n .strict();\n\nexport const ExecutionLinkSchema = z\n .object({\n contract: z.literal('ExecutionLink'),\n requestId: ContractIdentifierSchema,\n traceId: ContractIdentifierSchema.optional(),\n correlationId: ContractIdentifierSchema.optional(),\n causationId: ContractIdentifierSchema.optional(),\n workflowRef: EntityRefSchema.optional(),\n runRef: EntityRefSchema,\n taskRef: EntityRefSchema.optional(),\n parentRunRef: EntityRefSchema.optional(),\n })\n .strict();\n\nexport const CompletionHeaderSchema = z\n .object({\n contract: z.literal('CompletionHeader'),\n eventId: ContractIdentifierSchema,\n runtimeEventId: ContractIdentifierSchema,\n idempotencyKey: ContractIdentifierSchema,\n sequence: z.number().int().nonnegative(),\n execution: ExecutionLinkSchema,\n producer: z\n .object({\n service: ContractIdentifierSchema,\n runtime: ContractIdentifierSchema,\n version: ContractIdentifierSchema,\n })\n .strict(),\n status: z.enum(['SUCCEEDED', 'FAILED', 'CANCELLED', 'TIMED_OUT']),\n occurredAt: IsoDateTimeSchema,\n payloadSchemaRef: ContractIdentifierSchema.optional(),\n })\n .strict();\n\nexport const CompletionEventSchema = z\n .object({\n header: CompletionHeaderSchema,\n payload: JsonValueSchema.optional(),\n })\n .strict();\n\nexport const AgentRuntimeEventSchema = z\n .object({\n contract: z.literal('AgentRuntimeEvent'),\n runtimeEventId: ContractIdentifierSchema,\n streamId: ContractIdentifierSchema,\n sequence: z.number().int().nonnegative(),\n requestId: ContractIdentifierSchema,\n teamId: ContractIdentifierSchema,\n threadId: ContractIdentifierSchema.optional(),\n eventType: z.enum(['messages:append', 'messages:update', 'thread:update', 'tool-call:upsert', 'session:event']),\n payload: JsonValueSchema,\n occurredAt: IsoDateTimeSchema,\n })\n .strict();\n\nexport type ActorRef = z.infer<typeof ActorRefSchema>;\nexport type AuthorityScope = z.infer<typeof AuthorityScopeSchema>;\nexport type RequestScope = z.infer<typeof RequestScopeSchema>;\nexport type ExecutionLink = z.infer<typeof ExecutionLinkSchema>;\nexport type CompletionHeader = z.infer<typeof CompletionHeaderSchema>;\nexport type CompletionEvent = z.infer<typeof CompletionEventSchema>;\nexport type AgentRuntimeEvent = z.infer<typeof AgentRuntimeEventSchema>;\n","import { z } from 'zod';\nimport {\n ContractIdentifierSchema,\n ContractVersionSchema,\n EntityRefSchema,\n IsoDateTimeSchema,\n JsonObjectSchema,\n} from './common';\n\nexport const DataContinuityEnvelopeSchema = z\n .object({\n contract: z.literal('DataContinuityEnvelope'),\n tenantId: ContractIdentifierSchema,\n teamId: ContractIdentifierSchema,\n sourceRef: EntityRefSchema.optional(),\n bodyRef: EntityRefSchema.optional(),\n runRef: EntityRefSchema.optional(),\n outputRef: EntityRefSchema.optional(),\n artifactRef: EntityRefSchema.optional(),\n requestId: ContractIdentifierSchema,\n actorRef: EntityRefSchema,\n schemaVersion: ContractVersionSchema,\n })\n .strict()\n .refine(\n value => Boolean(value.sourceRef || value.bodyRef || value.runRef || value.outputRef || value.artifactRef),\n 'At least one continuity ref is required.',\n );\n\nexport const BodyRelationRecordSchema = z\n .object({\n contract: z.literal('BodyRelationRecord'),\n relationId: ContractIdentifierSchema,\n relationKind: ContractIdentifierSchema,\n subjectRef: EntityRefSchema,\n objectRef: EntityRefSchema,\n ownerRepo: ContractIdentifierSchema,\n authorityScope: z.enum(['tenant', 'team', 'global']),\n properties: JsonObjectSchema.default({}),\n createdAt: IsoDateTimeSchema,\n updatedAt: IsoDateTimeSchema,\n })\n .strict();\n\nexport const ApplicationRunSchema = z\n .object({\n contract: z.literal('ApplicationRun'),\n runId: ContractIdentifierSchema,\n definitionRef: EntityRefSchema,\n runtimeLedgerRef: EntityRefSchema.optional(),\n requestId: ContractIdentifierSchema,\n actorRef: EntityRefSchema,\n status: z.enum(['PENDING', 'RUNNING', 'COMPLETED', 'FAILED', 'CANCELLED', 'EXPIRED']),\n inputRefs: z.array(EntityRefSchema).default([]),\n outputRefs: z.array(EntityRefSchema).default([]),\n startedAt: IsoDateTimeSchema.optional(),\n completedAt: IsoDateTimeSchema.optional(),\n expiresAt: IsoDateTimeSchema.optional(),\n metadata: JsonObjectSchema.default({}),\n })\n .strict()\n .superRefine((run, context) => {\n if (run.definitionRef.kind !== 'workflow-definition') {\n context.addIssue({\n code: 'custom',\n path: ['definitionRef', 'kind'],\n message: 'definitionRef must reference a workflow-definition.',\n });\n }\n if (run.runtimeLedgerRef && run.runtimeLedgerRef.kind !== 'workflow-run') {\n context.addIssue({\n code: 'custom',\n path: ['runtimeLedgerRef', 'kind'],\n message: 'runtimeLedgerRef must reference a workflow-run.',\n });\n }\n if ((run.status === 'RUNNING' || run.status === 'COMPLETED' || run.status === 'CANCELLED') && !run.runtimeLedgerRef) {\n context.addIssue({\n code: 'custom',\n path: ['runtimeLedgerRef'],\n message: `${run.status} ApplicationRun requires runtimeLedgerRef.`,\n });\n }\n if (run.status === 'RUNNING' && !run.startedAt) {\n context.addIssue({\n code: 'custom',\n path: ['startedAt'],\n message: 'RUNNING ApplicationRun requires startedAt.',\n });\n }\n if (['COMPLETED', 'FAILED', 'CANCELLED', 'EXPIRED'].includes(run.status) && !run.completedAt) {\n context.addIssue({\n code: 'custom',\n path: ['completedAt'],\n message: `Terminal ApplicationRun status ${run.status} requires completedAt.`,\n });\n }\n });\n\nexport const ExpiringAccessGrantSchema = z\n .object({\n contract: z.literal('ExpiringAccessGrant'),\n grantId: ContractIdentifierSchema,\n subjectRef: EntityRefSchema,\n resourceRef: EntityRefSchema,\n permissions: z.array(ContractIdentifierSchema).min(1),\n issuedAt: IsoDateTimeSchema,\n expiresAt: IsoDateTimeSchema,\n revokedAt: IsoDateTimeSchema.optional(),\n })\n .strict()\n .refine(value => Date.parse(value.expiresAt) > Date.parse(value.issuedAt), 'expiresAt must be after issuedAt');\n\nexport type DataContinuityEnvelope = z.infer<typeof DataContinuityEnvelopeSchema>;\nexport type BodyRelationRecord = z.infer<typeof BodyRelationRecordSchema>;\nexport type ApplicationRun = z.infer<typeof ApplicationRunSchema>;\nexport type ExpiringAccessGrant = z.infer<typeof ExpiringAccessGrantSchema>;\n","import { z } from \"zod\";\nimport { ContractIdentifierSchema } from \"./common\";\nimport { RevisionRefSchema } from \"./declarative-control\";\nimport { DeclarativeDiagnosticSchema } from \"./declarative-diagnostic\";\n\n/** Authoring target selection is independent of the authenticated business Team. */\nexport const DECLARATIVE_PUBLICATION_SCOPE_HEADER = \"x-monkeys-declarative-scope\";\nexport const DECLARATIVE_PUBLICATION_SURFACE_HEADER = \"x-monkeys-declarative-surface\";\nexport const DeclarativePublicationScopeSchema = z.discriminatedUnion(\"kind\", [\n z.object({ kind: z.literal(\"global\") }).strict(),\n z.object({\n kind: z.literal(\"team\"),\n teamId: ContractIdentifierSchema.refine((value) => value !== \"0\", \"Use global scope for the reserved namespace.\"),\n }).strict(),\n]);\nexport type DeclarativePublicationScope = z.infer<typeof DeclarativePublicationScopeSchema>;\n\nexport const DeclarativePublicationVerificationRequestSchema = z.object({\n resourceKind: z.enum([\"page\", \"navigation\", \"workbench\"]),\n resourceId: ContractIdentifierSchema,\n releaseSlotId: ContractIdentifierSchema,\n releaseVersion: z.number().int().positive().optional(),\n expectedReleaseRevisionRef: RevisionRefSchema.optional(),\n expectedDefinitionRevisionRef: RevisionRefSchema.optional(),\n idempotencyKey: z.string().trim().min(1).max(256).optional(),\n audience: z.object({\n teamId: ContractIdentifierSchema.optional(),\n path: z.string().trim().min(1).max(4096).optional(),\n }).strict().optional(),\n}).strict();\nexport type DeclarativePublicationVerificationRequest = z.infer<typeof DeclarativePublicationVerificationRequestSchema>;\n\nexport const DeclarativePublicationVerificationSchema = z.object({\n contract: z.literal(\"DeclarativePublicationVerification\"),\n schemaVersion: z.literal(1),\n resourceKind: z.enum([\"page\", \"navigation\", \"workbench\"]),\n resourceId: ContractIdentifierSchema,\n scope: DeclarativePublicationScopeSchema,\n publication: z.enum([\"committed\", \"unknown\"]),\n activation: z.enum([\"active\", \"superseded\", \"deactivated\", \"unavailable\"]),\n integrity: z.enum([\"verified\", \"unverified\", \"failed\"]),\n runtime: z.enum([\"not-requested\", \"verified\", \"context-required\", \"forbidden\", \"failed\"]),\n retryable: z.boolean().default(false),\n releaseRevisionRef: RevisionRefSchema.optional(),\n definitionRevisionRef: RevisionRefSchema.optional(),\n runtimeContentHash: z.string().regex(/^[a-f0-9]{64}$/).optional(),\n requestId: z.string().max(256).optional(),\n diagnostics: z.array(DeclarativeDiagnosticSchema).max(32),\n}).strict().superRefine((value, context) => {\n if ((value.integrity === \"verified\" || value.runtime === \"verified\") &&\n (value.publication !== \"committed\" || value.activation !== \"active\" || !value.releaseRevisionRef || !value.definitionRevisionRef)) {\n context.addIssue({ code: \"custom\", path: [\"integrity\"], message: \"Verification requires an exact committed active Release and definition.\" });\n }\n if (value.runtime === \"verified\" && value.integrity !== \"verified\") {\n context.addIssue({ code: \"custom\", path: [\"runtime\"], message: \"Audience verification requires publication integrity.\" });\n }\n});\nexport type DeclarativePublicationVerification = z.infer<typeof DeclarativePublicationVerificationSchema>;\n","import { z } from \"zod\";\nimport { ContractIdentifierSchema, Sha256Schema } from \"./common\";\nimport { DeclarativeDiagnosticSchema } from \"./declarative-diagnostic\";\nimport {\n NavigationSchema,\n PageSchema,\n ProductSurfaceSchema,\n RevisionRefSchema,\n TenantScopeSchema,\n} from \"./declarative-control\";\n\nconst sameScope = (\n left: z.infer<typeof TenantScopeSchema>,\n right: z.infer<typeof TenantScopeSchema>,\n): boolean =>\n ([\"tenantRef\", \"dataSpaceRef\", \"teamRef\"] as const).every(\n (key) =>\n left[key]?.kind === right[key]?.kind &&\n left[key]?.id === right[key]?.id &&\n left[key]?.ownerRepo === right[key]?.ownerRepo,\n );\n\nexport const DeclarativeImportDocumentSchema = z.union([\n PageSchema,\n NavigationSchema,\n]);\n\nconst requestShape = {\n document: DeclarativeImportDocumentSchema,\n surface: ProductSurfaceSchema,\n environmentId: ContractIdentifierSchema.optional(),\n};\n\nfunction supportsSurface(value: {\n document: z.infer<typeof DeclarativeImportDocumentSchema>;\n surface: \"kernel\" | \"studio\";\n}): boolean {\n return value.document.contract === \"Page\"\n ? value.document.surface === value.surface\n : value.document.supportedSurfaces.includes(value.surface);\n}\n\nexport const DeclarativeDocumentImportRequestSchema = z\n .object(requestShape)\n .strict()\n .refine(supportsSurface, {\n path: [\"surface\"],\n message: \"The document does not support the selected surface.\",\n });\n\nexport const DeclarativeDocumentImportIntentSchema = z\n .object({\n ...requestShape,\n expectedVersion: z.number().int().nonnegative(),\n expectedPlanHash: Sha256Schema,\n idempotencyKey: z.string().trim().min(1).max(256),\n })\n .strict()\n .refine(supportsSurface, {\n path: [\"surface\"],\n message: \"The document does not support the selected surface.\",\n });\n\nexport const DeclarativeDocumentImportPlanSchema = z\n .object({\n contract: z.literal(\"DeclarativeDocumentImportPlan\"),\n schemaVersion: z.literal(1),\n resourceKind: z.enum([\"page\", \"navigation\"]),\n resourceId: ContractIdentifierSchema,\n surface: ProductSurfaceSchema,\n sourceContentHash: Sha256Schema,\n environmentRevisionRef: RevisionRefSchema,\n document: DeclarativeImportDocumentSchema,\n tenantScope: TenantScopeSchema.nullable(),\n requiresInitialization: z.boolean(),\n expectedVersion: z.number().int().nonnegative(),\n currentContentHash: Sha256Schema.nullable(),\n changed: z.boolean(),\n diagnostics: z.array(DeclarativeDiagnosticSchema),\n dependencyContentHash: Sha256Schema,\n planHash: Sha256Schema,\n })\n .strict()\n .superRefine((value, context) => {\n const kind = value.document.contract === \"Page\" ? \"page\" : \"navigation\";\n const id =\n value.document.contract === \"Page\"\n ? value.document.pageId\n : value.document.navigationId;\n if (\n kind !== value.resourceKind ||\n id !== value.resourceId ||\n !supportsSurface(value)\n )\n context.addIssue({\n code: \"custom\",\n path: [\"document\"],\n message: \"The plan must identify its document and supported surface.\",\n });\n if (value.requiresInitialization !== (value.tenantScope === null))\n context.addIssue({\n code: \"custom\",\n path: [\"requiresInitialization\"],\n message: \"Only an uninitialized target may omit tenantScope.\",\n });\n if (value.environmentRevisionRef.kind !== \"environment\")\n context.addIssue({\n code: \"custom\",\n path: [\"environmentRevisionRef\"],\n message: \"The import plan must pin an environment revision.\",\n });\n if (\n value.tenantScope &&\n !sameScope(value.tenantScope, value.document.tenantScope)\n )\n context.addIssue({\n code: \"custom\",\n path: [\"tenantScope\"],\n message: \"The plan and bound document must belong to the same scope.\",\n });\n });\n\nexport const DeclarativeDocumentImportResultSchema = z\n .object({\n action: z.literal(\"import\"),\n changed: z.boolean(),\n plan: DeclarativeDocumentImportPlanSchema,\n revisionRef: RevisionRefSchema,\n })\n .strict()\n .superRefine((value, context) => {\n if (\n value.changed !== value.plan.changed ||\n value.revisionRef.kind !== value.plan.resourceKind ||\n value.revisionRef.id !== value.plan.resourceId ||\n value.revisionRef.revision !==\n value.plan.expectedVersion + Number(value.changed) ||\n !value.revisionRef.tenantScope ||\n !sameScope(value.revisionRef.tenantScope, value.plan.document.tenantScope)\n ) {\n context.addIssue({\n code: \"custom\",\n path: [\"revisionRef\"],\n message:\n \"The import result must identify the exact saved or unchanged draft revision.\",\n });\n }\n });\n\nexport type DeclarativeImportDocument = z.infer<\n typeof DeclarativeImportDocumentSchema\n>;\nexport type DeclarativeDocumentImportRequest = z.infer<\n typeof DeclarativeDocumentImportRequestSchema\n>;\nexport type DeclarativeDocumentImportIntent = z.infer<\n typeof DeclarativeDocumentImportIntentSchema\n>;\nexport type DeclarativeDocumentImportPlan = z.infer<\n typeof DeclarativeDocumentImportPlanSchema\n>;\nexport type DeclarativeDocumentImportResult = z.infer<\n typeof DeclarativeDocumentImportResultSchema\n>;\n","import { z } from 'zod';\nimport {\n ContractIdentifierSchema,\n EntityRefSchema,\n IsoDateTimeSchema,\n JsonObjectSchema,\n JsonValueSchema,\n Sha256Schema,\n} from './common';\nimport { LineageRecordSchema } from './data';\nimport { OutputRecordSchema } from './artifact';\n\nexport const RadarDecisionMetricsSchema = z\n .object({\n currentSales: z.number().finite(),\n forecastSales: z.number().finite(),\n searchHeat: z.number().finite(),\n socialHeat: z.number().finite(),\n confidence: z.number().min(0).max(1),\n })\n .strict();\n\nexport const TrendSourceSchema = z\n .object({\n sourceId: ContractIdentifierSchema,\n provider: ContractIdentifierSchema,\n channel: z.enum(['trend', 'ecommerce', 'social', 'search', 'internal']),\n collectedAt: IsoDateTimeSchema,\n sourceUrl: z.string().url().optional(),\n evidenceRefs: z.array(EntityRefSchema).default([]),\n })\n .strict();\n\nexport const TrendIngestRunSchema = z\n .object({\n contract: z.literal('TrendIngestRun'),\n ingestRunId: ContractIdentifierSchema,\n sourceId: ContractIdentifierSchema,\n requestId: ContractIdentifierSchema,\n idempotencyKey: ContractIdentifierSchema,\n status: z.enum(['RUNNING', 'SUCCEEDED', 'FAILED', 'PARTIAL']),\n recordCount: z.number().int().nonnegative(),\n errorCount: z.number().int().nonnegative(),\n startedAt: IsoDateTimeSchema,\n completedAt: IsoDateTimeSchema.optional(),\n })\n .strict();\n\nexport const TrendSourceRecordSchema = z\n .object({\n contract: z.literal('TrendSourceRecord'),\n sourceRecordId: ContractIdentifierSchema,\n source: TrendSourceSchema,\n ingestRunRef: EntityRefSchema,\n recordVersion: z.number().int().positive(),\n contentHash: Sha256Schema,\n payload: JsonValueSchema,\n idempotencyKey: ContractIdentifierSchema,\n collectedAt: IsoDateTimeSchema,\n })\n .strict();\n\nexport const HotwordBodySchema = z\n .object({\n contract: z.literal('HotwordBody'),\n hotwordId: ContractIdentifierSchema,\n label: z.string().trim().min(1),\n normalizedLabel: z.string().trim().min(1),\n categories: z.array(ContractIdentifierSchema).default([]),\n sourceRefs: z.array(TrendSourceSchema).min(1),\n relationRefs: z.array(EntityRefSchema).default([]),\n createdAt: IsoDateTimeSchema,\n updatedAt: IsoDateTimeSchema,\n })\n .strict();\n\nconst CommerceBodyFieldsSchema = {\n displayName: z.string().trim().min(1),\n normalizedName: z.string().trim().min(1),\n categories: z.array(ContractIdentifierSchema).default([]),\n sourceRefs: z.array(EntityRefSchema).min(1),\n relationRefs: z.array(EntityRefSchema).default([]),\n createdAt: IsoDateTimeSchema,\n updatedAt: IsoDateTimeSchema,\n};\n\nexport const BrandBodySchema = z\n .object({\n contract: z.literal('BrandBody'),\n brandId: ContractIdentifierSchema,\n ...CommerceBodyFieldsSchema,\n })\n .strict();\n\nexport const ProductBodySchema = z\n .object({\n contract: z.literal('ProductBody'),\n productId: ContractIdentifierSchema,\n brandRef: EntityRefSchema.optional(),\n ...CommerceBodyFieldsSchema,\n })\n .strict();\n\nexport const TrendMetricSnapshotSchema = z\n .object({\n contract: z.literal('TrendMetricSnapshot'),\n snapshotId: ContractIdentifierSchema,\n subjectRef: EntityRefSchema,\n observedAt: IsoDateTimeSchema,\n metrics: z.record(z.string(), z.number().finite()),\n confidence: z.number().min(0).max(1),\n evidenceRefs: z.array(EntityRefSchema).min(1),\n })\n .strict();\n\nexport const RadarScoreModelBodySchema = z\n .object({\n contract: z.literal('RadarScoreModelBody'),\n modelId: ContractIdentifierSchema,\n version: z.number().int().positive(),\n weights: RadarDecisionMetricsSchema,\n thresholds: z.record(z.string(), z.number().finite()).default({}),\n explanationRules: z.record(z.string(), z.string().trim().min(1)).default({}),\n createdAt: IsoDateTimeSchema,\n })\n .strict();\n\nexport const RadarScoreProjectionSchema = z\n .object({\n contract: z.literal('RadarScoreProjection'),\n projectionId: ContractIdentifierSchema,\n subjectRef: EntityRefSchema,\n modelRef: EntityRefSchema,\n totalScore: z.number().finite(),\n dimensions: RadarDecisionMetricsSchema,\n evidenceRefs: z.array(EntityRefSchema).min(1),\n freshnessAt: IsoDateTimeSchema,\n })\n .strict();\n\nexport const RadarPanoramaNodeSchema = z\n .object({\n ref: EntityRefSchema,\n label: z.string().trim().min(1),\n categories: z.array(ContractIdentifierSchema).default([]),\n score: z.number().finite().optional(),\n freshnessAt: IsoDateTimeSchema.optional(),\n })\n .strict();\n\nexport const RadarPanoramaEdgeSchema = z\n .object({\n sourceRef: EntityRefSchema,\n targetRef: EntityRefSchema,\n relation: ContractIdentifierSchema,\n evidenceRefs: z.array(EntityRefSchema).default([]),\n })\n .strict();\n\nexport const RadarPanoramaSchema = z\n .object({\n contract: z.literal('RadarPanorama'),\n nodes: z.array(RadarPanoramaNodeSchema),\n edges: z.array(RadarPanoramaEdgeSchema),\n generatedAt: IsoDateTimeSchema,\n })\n .strict();\n\nexport const BrandGeneticsProfileSchema = z\n .object({\n contract: z.literal('BrandGeneticsProfile'),\n brandRef: EntityRefSchema,\n categories: z.array(ContractIdentifierSchema).default([]),\n signature: z.record(ContractIdentifierSchema, z.number().finite()),\n relatedRefs: z.array(EntityRefSchema).default([]),\n evidenceRefs: z.array(EntityRefSchema).default([]),\n computedAt: IsoDateTimeSchema,\n })\n .strict();\n\nexport const RadarOpportunityMatrixPointSchema = z\n .object({\n subjectRef: EntityRefSchema,\n label: z.string().trim().min(1),\n x: z.number().finite(),\n y: z.number().finite(),\n score: z.number().finite(),\n evidenceRefs: z.array(EntityRefSchema).default([]),\n })\n .strict();\n\nexport const RadarOpportunityMatrixSchema = z\n .object({\n contract: z.literal('RadarOpportunityMatrix'),\n xMetric: z.enum(['currentSales', 'forecastSales', 'searchHeat', 'socialHeat', 'confidence']),\n yMetric: z.enum(['currentSales', 'forecastSales', 'searchHeat', 'socialHeat', 'confidence']),\n points: z.array(RadarOpportunityMatrixPointSchema),\n computedAt: IsoDateTimeSchema,\n })\n .strict();\n\nexport const RadarQueryBodySchema = z\n .object({\n contract: z.literal('RadarQueryBody'),\n queryId: ContractIdentifierSchema,\n filters: z.record(z.string(), JsonValueSchema).default({}),\n sort: z\n .object({\n field: ContractIdentifierSchema,\n direction: z.enum(['asc', 'desc']),\n })\n .strict(),\n pageSize: z.number().int().min(1).max(200),\n updatedAt: IsoDateTimeSchema,\n })\n .strict();\n\nexport const SavedRadarQuerySchema = z\n .object({\n contract: z.literal('SavedRadarQuery'),\n savedQueryId: ContractIdentifierSchema,\n teamId: ContractIdentifierSchema,\n ownerRef: EntityRefSchema,\n name: z.string().trim().min(1),\n queryRef: EntityRefSchema,\n expectedVersion: z.number().int().nonnegative(),\n updatedAt: IsoDateTimeSchema,\n })\n .strict();\n\nexport const RadarSelectionSchema = z\n .object({\n contract: z.literal('RadarSelection'),\n selectionId: ContractIdentifierSchema,\n teamId: ContractIdentifierSchema,\n ownerRef: EntityRefSchema,\n subjectRefs: z.array(EntityRefSchema),\n status: z.enum(['stashed', 'selected', 'rejected', 'archived']),\n note: z.string().optional(),\n expectedVersion: z.number().int().nonnegative(),\n updatedAt: IsoDateTimeSchema,\n })\n .strict();\n\nconst versionedRefFields = {\n id: ContractIdentifierSchema,\n version: z.union([z.number().int().positive(), z.string().trim().min(1)]).optional(),\n ownerRepo: ContractIdentifierSchema.optional(),\n};\n\nexport const TrendRadarCollectionAssetRefSchema = z\n .object({\n kind: z.literal('asset'),\n ...versionedRefFields,\n })\n .strict();\n\nexport const TrendRadarCollectionSelectionRefSchema = z\n .object({\n kind: z.literal('radar-selection'),\n ...versionedRefFields,\n })\n .strict();\n\nexport const TrendRadarCollectionRunRefSchema = z\n .object({\n kind: z.literal('radar-analysis-run'),\n ...versionedRefFields,\n })\n .strict();\n\nexport const TrendRadarCollectionSubjectRefSchema = z\n .object({\n kind: z.literal('hotword'),\n ...versionedRefFields,\n })\n .strict();\n\nexport const TrendRadarCollectionArtifactRefSchema = z\n .object({\n kind: z.literal('artifact'),\n ...versionedRefFields,\n })\n .strict();\n\nexport const TrendRadarCollectionRecipeEntrySchema = z\n .object({\n subjectRef: TrendRadarCollectionSubjectRefSchema,\n label: z.string().trim().min(1).max(200),\n })\n .strict();\n\nexport const TrendRadarCollectionRecipeSchema = z\n .object({\n category: z.array(TrendRadarCollectionRecipeEntrySchema),\n design: z.array(TrendRadarCollectionRecipeEntrySchema),\n audience: z.array(TrendRadarCollectionRecipeEntrySchema),\n })\n .strict()\n .refine(\n recipe => recipe.category.length + recipe.design.length + recipe.audience.length > 0,\n 'A Trend Radar collection recipe must contain at least one subject.',\n );\n\nexport const TrendRadarCollectionDecisionAxisSchema = z\n .object({\n key: ContractIdentifierSchema,\n label: z.string().trim().min(1).max(200).optional(),\n value: z.number().finite(),\n })\n .strict();\n\nexport const TrendRadarCollectionDecisionProjectionSchema = z\n .object({\n axes: z.array(TrendRadarCollectionDecisionAxisSchema).max(32).optional(),\n overallScore: z.number().finite().optional(),\n itemRank: z.number().finite().optional(),\n sourceRefs: z.array(EntityRefSchema).optional(),\n outputRefs: z.array(EntityRefSchema).optional(),\n })\n .strict()\n .superRefine((projection, context) => {\n const hasProjection = Boolean(\n projection.axes?.length\n || projection.overallScore !== undefined\n || projection.itemRank !== undefined\n || projection.sourceRefs?.length\n || projection.outputRefs?.length,\n );\n if (!hasProjection) {\n context.addIssue({\n code: 'custom',\n message: 'A decision projection must contain canonical decision data or references.',\n });\n }\n\n const seenAxisKeys = new Set<string>();\n projection.axes?.forEach((axis, index) => {\n if (seenAxisKeys.has(axis.key)) {\n context.addIssue({\n code: 'custom',\n path: ['axes', index, 'key'],\n message: `Duplicate decision axis key: ${axis.key}`,\n });\n }\n seenAxisKeys.add(axis.key);\n });\n });\n\nexport const TrendRadarCollectionArtifactProjectionSchema = z\n .object({\n artifactRef: TrendRadarCollectionArtifactRefSchema,\n url: z.string().url().optional(),\n thumbnailUrl: z.string().url().optional(),\n mimeType: z.string().trim().min(1).optional(),\n metadata: JsonObjectSchema.optional(),\n })\n .strict();\n\nexport const TrendRadarCollectionProjectionWritebackSchema = z\n .object({\n status: z.enum(['PENDING', 'APPLIED', 'FAILED']),\n updatedAt: IsoDateTimeSchema,\n error: z\n .object({\n code: ContractIdentifierSchema,\n message: z.string().trim().min(1),\n retryable: z.boolean(),\n })\n .strict()\n .optional(),\n })\n .strict()\n .superRefine((writeback, context) => {\n if (writeback.status === 'FAILED' && !writeback.error) {\n context.addIssue({\n code: 'custom',\n path: ['error'],\n message: 'A failed collection projection writeback must include an error.',\n });\n }\n if (writeback.status !== 'FAILED' && writeback.error) {\n context.addIssue({\n code: 'custom',\n path: ['error'],\n message: 'Only a failed collection projection writeback may include an error.',\n });\n }\n });\n\nexport const TrendRadarCollectionItemSchema = z\n .object({\n contract: z.literal('TrendRadarCollectionItem'),\n schemaVersion: z.literal(1),\n selectionRef: TrendRadarCollectionSelectionRefSchema,\n recipe: TrendRadarCollectionRecipeSchema,\n status: z.enum(['SAVED', 'QUEUED', 'RUNNING', 'SUCCEEDED', 'FAILED', 'CANCELLED', 'PARTIAL']),\n latestRunRef: TrendRadarCollectionRunRefSchema.optional(),\n decisionProjection: TrendRadarCollectionDecisionProjectionSchema.optional(),\n artifactProjection: TrendRadarCollectionArtifactProjectionSchema.optional(),\n createdAt: IsoDateTimeSchema,\n updatedAt: IsoDateTimeSchema,\n generatedAt: IsoDateTimeSchema.optional(),\n })\n .strict();\n\nexport const RadarAnalysisRunSchema = z\n .object({\n contract: z.literal('RadarAnalysisRun'),\n runId: ContractIdentifierSchema,\n teamId: ContractIdentifierSchema,\n selectionRef: EntityRefSchema,\n workflowRef: EntityRefSchema,\n executionRef: EntityRefSchema.optional(),\n designProjectRef: EntityRefSchema.optional(),\n replayedFromRef: EntityRefSchema.optional(),\n collectionAssetRef: TrendRadarCollectionAssetRefSchema.optional(),\n collectionProjectionWriteback: TrendRadarCollectionProjectionWritebackSchema.optional(),\n workflowDefinitionTeamId: ContractIdentifierSchema.optional(),\n workflowInput: z.record(z.string(), JsonValueSchema).default({}),\n createDesignProject: z.boolean().default(true),\n designProjectName: z.string().trim().min(1).max(200).optional(),\n modelRef: EntityRefSchema,\n requestId: ContractIdentifierSchema,\n idempotencyKey: ContractIdentifierSchema,\n status: z.enum(['QUEUED', 'RUNNING', 'SUCCEEDED', 'FAILED', 'CANCELLED', 'PARTIAL']),\n outputRefs: z.array(EntityRefSchema).default([]),\n error: z\n .object({\n code: ContractIdentifierSchema,\n message: z.string().trim().min(1),\n retryable: z.boolean(),\n })\n .strict()\n .optional(),\n startedAt: IsoDateTimeSchema.optional(),\n completedAt: IsoDateTimeSchema.optional(),\n createdAt: IsoDateTimeSchema,\n })\n .strict();\n\nexport const RadarAnalysisAssetSchema = z\n .object({\n artifactRef: EntityRefSchema,\n kind: ContractIdentifierSchema,\n mimeType: z.string().trim().min(1).optional(),\n url: z.string().url(),\n metadata: z.record(z.string(), JsonValueSchema).default({}),\n createdAt: IsoDateTimeSchema,\n })\n .strict();\n\nexport const RadarAnalysisDetailSchema = z\n .object({\n contract: z.literal('RadarAnalysisDetail'),\n run: RadarAnalysisRunSchema,\n runVersion: z.number().int().positive(),\n selection: RadarSelectionSchema,\n outputs: z.array(OutputRecordSchema),\n assets: z.array(RadarAnalysisAssetSchema),\n lineage: z.array(LineageRecordSchema),\n })\n .strict();\n\nexport const RadarActionRecordSchema = z\n .object({\n contract: z.literal('RadarActionRecord'),\n actionId: ContractIdentifierSchema,\n teamId: ContractIdentifierSchema,\n actorRef: EntityRefSchema,\n action: z.enum(['stash', 'select', 'reject', 'archive', 'launch', 'retry', 'replay', 'rollback']),\n targetRef: EntityRefSchema,\n requestId: ContractIdentifierSchema,\n idempotencyKey: ContractIdentifierSchema,\n expectedVersion: z.number().int().nonnegative(),\n occurredAt: IsoDateTimeSchema,\n })\n .strict();\n\nexport const RadarWritebackRecordSchema = z\n .object({\n contract: z.literal('RadarWritebackRecord'),\n writebackId: ContractIdentifierSchema,\n actionRef: EntityRefSchema,\n targetRef: EntityRefSchema,\n status: z.enum(['PENDING', 'APPLIED', 'FAILED']),\n resultingVersion: z.number().int().nonnegative().optional(),\n error: z.string().trim().min(1).optional(),\n recordedAt: IsoDateTimeSchema,\n })\n .strict();\n\nexport type TrendSource = z.infer<typeof TrendSourceSchema>;\nexport type TrendIngestRun = z.infer<typeof TrendIngestRunSchema>;\nexport type TrendSourceRecord = z.infer<typeof TrendSourceRecordSchema>;\nexport type HotwordBody = z.infer<typeof HotwordBodySchema>;\nexport type BrandBody = z.infer<typeof BrandBodySchema>;\nexport type ProductBody = z.infer<typeof ProductBodySchema>;\nexport type TrendMetricSnapshot = z.infer<typeof TrendMetricSnapshotSchema>;\nexport type RadarDecisionMetrics = z.infer<typeof RadarDecisionMetricsSchema>;\nexport type RadarScoreModelBody = z.infer<typeof RadarScoreModelBodySchema>;\nexport type RadarScoreProjection = z.infer<typeof RadarScoreProjectionSchema>;\nexport type RadarPanorama = z.infer<typeof RadarPanoramaSchema>;\nexport type BrandGeneticsProfile = z.infer<typeof BrandGeneticsProfileSchema>;\nexport type RadarOpportunityMatrix = z.infer<typeof RadarOpportunityMatrixSchema>;\nexport type RadarQueryBody = z.infer<typeof RadarQueryBodySchema>;\nexport type SavedRadarQuery = z.infer<typeof SavedRadarQuerySchema>;\nexport type RadarSelection = z.infer<typeof RadarSelectionSchema>;\nexport type TrendRadarCollectionAssetRef = z.infer<typeof TrendRadarCollectionAssetRefSchema>;\nexport type TrendRadarCollectionSelectionRef = z.infer<typeof TrendRadarCollectionSelectionRefSchema>;\nexport type TrendRadarCollectionRunRef = z.infer<typeof TrendRadarCollectionRunRefSchema>;\nexport type TrendRadarCollectionSubjectRef = z.infer<typeof TrendRadarCollectionSubjectRefSchema>;\nexport type TrendRadarCollectionArtifactRef = z.infer<typeof TrendRadarCollectionArtifactRefSchema>;\nexport type TrendRadarCollectionRecipeEntry = z.infer<typeof TrendRadarCollectionRecipeEntrySchema>;\nexport type TrendRadarCollectionRecipe = z.infer<typeof TrendRadarCollectionRecipeSchema>;\nexport type TrendRadarCollectionDecisionAxis = z.infer<typeof TrendRadarCollectionDecisionAxisSchema>;\nexport type TrendRadarCollectionDecisionProjection = z.infer<typeof TrendRadarCollectionDecisionProjectionSchema>;\nexport type TrendRadarCollectionArtifactProjection = z.infer<typeof TrendRadarCollectionArtifactProjectionSchema>;\nexport type TrendRadarCollectionProjectionWriteback = z.infer<typeof TrendRadarCollectionProjectionWritebackSchema>;\nexport type TrendRadarCollectionItem = z.infer<typeof TrendRadarCollectionItemSchema>;\nexport type RadarAnalysisRun = z.infer<typeof RadarAnalysisRunSchema>;\nexport type RadarAnalysisAsset = z.infer<typeof RadarAnalysisAssetSchema>;\nexport type RadarAnalysisDetail = z.infer<typeof RadarAnalysisDetailSchema>;\nexport type RadarActionRecord = z.infer<typeof RadarActionRecordSchema>;\nexport type RadarWritebackRecord = z.infer<typeof RadarWritebackRecordSchema>;\n","import { z } from 'zod';\nimport { ArtifactManifestSchema, OutputRecordSchema } from './artifact';\nimport {\n ContractIdentifierSchema,\n EntityRefSchema,\n IsoDateTimeSchema,\n JsonObjectSchema,\n Sha256Schema,\n} from './common';\nimport { ApplicationRunSchema } from './continuity';\nimport { LineageRecordSchema } from './data';\n\nexport const WorkflowCatalogEntrySchema = z\n .object({\n contract: z.literal('WorkflowCatalogEntry'),\n workflowId: ContractIdentifierSchema,\n teamId: ContractIdentifierSchema,\n creatorRef: EntityRefSchema,\n currentDefinitionRef: EntityRefSchema,\n lifecycle: z.enum(['ACTIVE', 'DELETED']),\n asset: z\n .object({\n preset: z.boolean(),\n marketplacePublished: z.boolean(),\n publishConfig: JsonObjectSchema.optional(),\n sort: z.number().int(),\n forkFromRef: EntityRefSchema.optional(),\n notAuthorized: z.boolean(),\n })\n .strict(),\n createdAt: IsoDateTimeSchema,\n updatedAt: IsoDateTimeSchema,\n deletedAt: IsoDateTimeSchema.optional(),\n })\n .strict()\n .superRefine((entry, context) => {\n if (\n entry.creatorRef.kind !== 'user' &&\n entry.creatorRef.kind !== 'service'\n ) {\n context.addIssue({\n code: 'custom',\n path: ['creatorRef', 'kind'],\n message: 'creatorRef must reference a user or service.',\n });\n }\n if (entry.currentDefinitionRef.kind !== 'workflow-definition') {\n context.addIssue({\n code: 'custom',\n path: ['currentDefinitionRef', 'kind'],\n message: 'currentDefinitionRef must reference a workflow-definition.',\n });\n }\n if (entry.lifecycle === 'DELETED' && !entry.deletedAt) {\n context.addIssue({\n code: 'custom',\n path: ['deletedAt'],\n message: 'Deleted workflow catalog entries require deletedAt.',\n });\n }\n if (entry.lifecycle === 'ACTIVE' && entry.deletedAt) {\n context.addIssue({\n code: 'custom',\n path: ['deletedAt'],\n message: 'Active workflow catalog entries cannot declare deletedAt.',\n });\n }\n });\n\nexport const WorkflowPublicationSchema = z\n .object({\n contract: z.literal('WorkflowPublication'),\n publicationId: ContractIdentifierSchema,\n definitionRef: EntityRefSchema,\n runtimeDefinitionRef: EntityRefSchema,\n sourceHash: Sha256Schema,\n compiledHash: Sha256Schema,\n status: z.enum(['PENDING', 'PUBLISHED', 'FAILED', 'RETIRED']),\n publisherRef: EntityRefSchema,\n publishedAt: IsoDateTimeSchema.optional(),\n failureReason: z.string().trim().min(1).optional(),\n })\n .strict()\n .superRefine((publication, context) => {\n if (publication.definitionRef.kind !== 'workflow-definition') {\n context.addIssue({\n code: 'custom',\n path: ['definitionRef', 'kind'],\n message: 'definitionRef must reference a workflow-definition.',\n });\n }\n if (publication.runtimeDefinitionRef.kind !== 'conductor-workflow-definition') {\n context.addIssue({\n code: 'custom',\n path: ['runtimeDefinitionRef', 'kind'],\n message: 'runtimeDefinitionRef must reference a conductor-workflow-definition.',\n });\n }\n if (publication.status === 'PUBLISHED' && !publication.publishedAt) {\n context.addIssue({\n code: 'custom',\n path: ['publishedAt'],\n message: 'Published workflow publications require publishedAt.',\n });\n }\n if (publication.status === 'FAILED' && !publication.failureReason) {\n context.addIssue({\n code: 'custom',\n path: ['failureReason'],\n message: 'Failed workflow publications require failureReason.',\n });\n }\n });\n\nexport const WorkflowCompletionCommitSchema = z\n .object({\n contract: z.literal('WorkflowCompletionCommit'),\n commitId: ContractIdentifierSchema,\n run: ApplicationRunSchema,\n outputs: z.array(OutputRecordSchema),\n artifacts: z.array(ArtifactManifestSchema),\n lineage: LineageRecordSchema,\n completedAt: IsoDateTimeSchema,\n })\n .strict()\n .superRefine((commit, context) => {\n const expectedRunId = commit.run.runId;\n const referencesRun = (value: { runRef: { kind: string; id: string } }) =>\n value.runRef.kind === 'application-run' && value.runRef.id === expectedRunId;\n\n commit.outputs.forEach((output, index) => {\n if (!referencesRun(output)) {\n context.addIssue({\n code: 'custom',\n path: ['outputs', index, 'runRef'],\n message: 'Every output must reference the committed ApplicationRun.',\n });\n }\n });\n commit.artifacts.forEach((artifact, index) => {\n if (!referencesRun(artifact)) {\n context.addIssue({\n code: 'custom',\n path: ['artifacts', index, 'runRef'],\n message: 'Every artifact must reference the committed ApplicationRun.',\n });\n }\n });\n if (\n commit.lineage.subjectRef.kind !== 'application-run' ||\n commit.lineage.subjectRef.id !== expectedRunId\n ) {\n context.addIssue({\n code: 'custom',\n path: ['lineage', 'subjectRef'],\n message: 'Completion lineage must use the committed ApplicationRun as its subject.',\n });\n }\n const outputIds = new Set(commit.outputs.map(output => output.outputId));\n commit.artifacts.forEach((artifact, index) => {\n if (\n artifact.outputRef.kind !== 'workflow-output' ||\n !outputIds.has(artifact.outputRef.id)\n ) {\n context.addIssue({\n code: 'custom',\n path: ['artifacts', index, 'outputRef'],\n message: 'Artifact outputRef must reference an output in the same commit.',\n });\n }\n });\n });\n\nexport const WorkflowCompletionReceiptSchema = z\n .object({\n contract: z.literal('WorkflowCompletionReceipt'),\n commitId: ContractIdentifierSchema,\n runRef: EntityRefSchema,\n outputRefs: z.array(EntityRefSchema),\n artifactRefs: z.array(EntityRefSchema),\n contentHash: Sha256Schema,\n committedAt: IsoDateTimeSchema,\n idempotentReplay: z.boolean(),\n })\n .strict()\n .superRefine((receipt, context) => {\n if (receipt.runRef.kind !== 'application-run') {\n context.addIssue({\n code: 'custom',\n path: ['runRef', 'kind'],\n message: 'runRef must reference an application-run.',\n });\n }\n receipt.outputRefs.forEach((ref, index) => {\n if (ref.kind !== 'workflow-output') {\n context.addIssue({\n code: 'custom',\n path: ['outputRefs', index, 'kind'],\n message: 'outputRefs must reference workflow-output records.',\n });\n }\n });\n receipt.artifactRefs.forEach((ref, index) => {\n if (ref.kind !== 'artifact') {\n context.addIssue({\n code: 'custom',\n path: ['artifactRefs', index, 'kind'],\n message: 'artifactRefs must reference artifacts.',\n });\n }\n });\n });\n\nexport type WorkflowPublication = z.infer<typeof WorkflowPublicationSchema>;\nexport type WorkflowCatalogEntry = z.infer<typeof WorkflowCatalogEntrySchema>;\nexport type WorkflowCompletionCommit = z.infer<typeof WorkflowCompletionCommitSchema>;\nexport type WorkflowCompletionReceipt = z.infer<typeof WorkflowCompletionReceiptSchema>;\n"],"mappings":";;;;;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
|
AgentArtifactDeliverySchema,
|
|
4
8
|
AgentCheckpointPrepareResponseSchema,
|
|
5
9
|
AgentCheckpointReadResponseSchema,
|
|
10
|
+
AgentDataOperationContextSchema,
|
|
11
|
+
AgentDataOriginSchema,
|
|
12
|
+
AgentDataQueryOperationSchema,
|
|
13
|
+
AgentDataReceiptSchema,
|
|
14
|
+
AgentDataRecordRefSchema,
|
|
15
|
+
AgentDataSelectionSchema,
|
|
16
|
+
AgentDataSourceSchema,
|
|
17
|
+
AgentDataStatusSchema,
|
|
18
|
+
AgentDataViewQuerySchema,
|
|
19
|
+
AgentLinkedDataItemSchema,
|
|
20
|
+
AgentLinkedDataListSchema,
|
|
21
|
+
AgentLinkedDataPageInfoSchema,
|
|
22
|
+
AgentLinkedDataPageSchema,
|
|
23
|
+
AgentLinkedDataRowSchema,
|
|
6
24
|
AgentNativeInteractionResponseSchema,
|
|
7
25
|
AgentNativeInteractionSchema,
|
|
8
26
|
AgentNativeRecoverySchema,
|
|
@@ -31,7 +49,7 @@ import {
|
|
|
31
49
|
RuntimeProgramDownloadResultSchema,
|
|
32
50
|
RuntimeProgramLoadRequestSchema,
|
|
33
51
|
RuntimeProgramLoadResultSchema
|
|
34
|
-
} from "../chunk-
|
|
52
|
+
} from "../chunk-TKIVZQ6V.mjs";
|
|
35
53
|
import {
|
|
36
54
|
ActorRefSchema,
|
|
37
55
|
AgentRuntimeEventSchema,
|
|
@@ -54,12 +72,17 @@ import {
|
|
|
54
72
|
BrandGeneticsProfileSchema,
|
|
55
73
|
CompletionEventSchema,
|
|
56
74
|
CompletionHeaderSchema,
|
|
75
|
+
DECLARATIVE_PUBLICATION_SCOPE_HEADER,
|
|
76
|
+
DECLARATIVE_PUBLICATION_SURFACE_HEADER,
|
|
57
77
|
DataContinuityEnvelopeSchema,
|
|
58
78
|
DeclarativeDocumentImportIntentSchema,
|
|
59
79
|
DeclarativeDocumentImportPlanSchema,
|
|
60
80
|
DeclarativeDocumentImportRequestSchema,
|
|
61
81
|
DeclarativeDocumentImportResultSchema,
|
|
62
82
|
DeclarativeImportDocumentSchema,
|
|
83
|
+
DeclarativePublicationScopeSchema,
|
|
84
|
+
DeclarativePublicationVerificationRequestSchema,
|
|
85
|
+
DeclarativePublicationVerificationSchema,
|
|
63
86
|
ExecutionLinkSchema,
|
|
64
87
|
ExpiringAccessGrantSchema,
|
|
65
88
|
HotwordBodySchema,
|
|
@@ -103,7 +126,7 @@ import {
|
|
|
103
126
|
WorkflowCompletionCommitSchema,
|
|
104
127
|
WorkflowCompletionReceiptSchema,
|
|
105
128
|
WorkflowPublicationSchema
|
|
106
|
-
} from "../chunk-
|
|
129
|
+
} from "../chunk-WYV3EFUS.mjs";
|
|
107
130
|
import {
|
|
108
131
|
PAGE_STREAM_MAX_BUFFER_BYTES,
|
|
109
132
|
PAGE_STREAM_MAX_BUFFER_EVENTS,
|
|
@@ -117,7 +140,7 @@ import {
|
|
|
117
140
|
PageStreamDescriptorSchema,
|
|
118
141
|
PageStreamEventSchema,
|
|
119
142
|
pageStreamRoutes
|
|
120
|
-
} from "../chunk-
|
|
143
|
+
} from "../chunk-DFALYXAY.mjs";
|
|
121
144
|
import {
|
|
122
145
|
ACTION_PROGRAM_ABI,
|
|
123
146
|
AGENT_MODE_CAPABILITIES,
|
|
@@ -623,10 +646,14 @@ import {
|
|
|
623
646
|
resolveAgentSessionCommandTransition,
|
|
624
647
|
resolveAgentWorkbenchSidebarConfig,
|
|
625
648
|
visitPageExpression
|
|
626
|
-
} from "../chunk-
|
|
649
|
+
} from "../chunk-QPFYQ24T.mjs";
|
|
627
650
|
import "../chunk-3QS3WKRC.mjs";
|
|
628
651
|
export {
|
|
629
652
|
ACTION_PROGRAM_ABI,
|
|
653
|
+
AGENT_DATA_CONTEXT_ENV,
|
|
654
|
+
AGENT_DATA_CONTEXT_FILE_ENV,
|
|
655
|
+
AGENT_DATA_CONTEXT_HEADER,
|
|
656
|
+
AGENT_DATA_OPERATION_HEADER,
|
|
630
657
|
AGENT_MODE_CAPABILITIES,
|
|
631
658
|
AGENT_SESSION_CAPABILITY_EVIDENCE,
|
|
632
659
|
AGENT_SESSION_COMMAND_POLICIES,
|
|
@@ -646,7 +673,21 @@ export {
|
|
|
646
673
|
AgentCheckpointPrepareResponseSchema,
|
|
647
674
|
AgentCheckpointReadResponseSchema,
|
|
648
675
|
AgentConfigurationCapabilitySchema,
|
|
676
|
+
AgentDataOperationContextSchema,
|
|
677
|
+
AgentDataOriginSchema,
|
|
678
|
+
AgentDataQueryOperationSchema,
|
|
679
|
+
AgentDataReceiptSchema,
|
|
680
|
+
AgentDataRecordRefSchema,
|
|
681
|
+
AgentDataSelectionSchema,
|
|
682
|
+
AgentDataSourceSchema,
|
|
683
|
+
AgentDataStatusSchema,
|
|
684
|
+
AgentDataViewQuerySchema,
|
|
649
685
|
AgentExecutionModeSchema,
|
|
686
|
+
AgentLinkedDataItemSchema,
|
|
687
|
+
AgentLinkedDataListSchema,
|
|
688
|
+
AgentLinkedDataPageInfoSchema,
|
|
689
|
+
AgentLinkedDataPageSchema,
|
|
690
|
+
AgentLinkedDataRowSchema,
|
|
650
691
|
AgentModeCapabilitiesSchema,
|
|
651
692
|
AgentModeSchema,
|
|
652
693
|
AgentNativeInteractionResponseSchema,
|
|
@@ -793,6 +834,8 @@ export {
|
|
|
793
834
|
DECLARATIVE_CONTROL_ONTOLOGY_DEFINITIONS,
|
|
794
835
|
DECLARATIVE_CONTROL_SCHEMA_VERSION,
|
|
795
836
|
DECLARATIVE_MIGRATION_ERROR_CODES,
|
|
837
|
+
DECLARATIVE_PUBLICATION_SCOPE_HEADER,
|
|
838
|
+
DECLARATIVE_PUBLICATION_SURFACE_HEADER,
|
|
796
839
|
DEFAULT_ACTION_PROGRAM_BUDGETS,
|
|
797
840
|
DEFAULT_AGENT_WORKBENCH_SIDEBAR_SECTIONS,
|
|
798
841
|
DataContinuityEnvelopeSchema,
|
|
@@ -860,6 +903,9 @@ export {
|
|
|
860
903
|
DeclarativePublicationJobScopeSchema,
|
|
861
904
|
DeclarativePublicationPlanIntentSchema,
|
|
862
905
|
DeclarativePublicationResultSchema,
|
|
906
|
+
DeclarativePublicationScopeSchema,
|
|
907
|
+
DeclarativePublicationVerificationRequestSchema,
|
|
908
|
+
DeclarativePublicationVerificationSchema,
|
|
863
909
|
DeclarativeReleaseTargetIntentSchema,
|
|
864
910
|
DeclarativeResourceKindSchema,
|
|
865
911
|
DeclarativeRetireIntentSchema,
|
package/lib/esm/index.mjs
CHANGED
|
@@ -1,8 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
|
+
AGENT_DATA_CONTEXT_ENV,
|
|
3
|
+
AGENT_DATA_CONTEXT_FILE_ENV,
|
|
4
|
+
AGENT_DATA_CONTEXT_HEADER,
|
|
5
|
+
AGENT_DATA_OPERATION_HEADER,
|
|
2
6
|
AGENT_WORK_CONTRACT_VERSION,
|
|
3
7
|
AgentArtifactDeliverySchema,
|
|
4
8
|
AgentCheckpointPrepareResponseSchema,
|
|
5
9
|
AgentCheckpointReadResponseSchema,
|
|
10
|
+
AgentDataOperationContextSchema,
|
|
11
|
+
AgentDataOriginSchema,
|
|
12
|
+
AgentDataQueryOperationSchema,
|
|
13
|
+
AgentDataReceiptSchema,
|
|
14
|
+
AgentDataRecordRefSchema,
|
|
15
|
+
AgentDataSelectionSchema,
|
|
16
|
+
AgentDataSourceSchema,
|
|
17
|
+
AgentDataStatusSchema,
|
|
18
|
+
AgentDataViewQuerySchema,
|
|
19
|
+
AgentLinkedDataItemSchema,
|
|
20
|
+
AgentLinkedDataListSchema,
|
|
21
|
+
AgentLinkedDataPageInfoSchema,
|
|
22
|
+
AgentLinkedDataPageSchema,
|
|
23
|
+
AgentLinkedDataRowSchema,
|
|
6
24
|
AgentNativeInteractionResponseSchema,
|
|
7
25
|
AgentNativeInteractionSchema,
|
|
8
26
|
AgentNativeRecoverySchema,
|
|
@@ -31,10 +49,10 @@ import {
|
|
|
31
49
|
RuntimeProgramDownloadResultSchema,
|
|
32
50
|
RuntimeProgramLoadRequestSchema,
|
|
33
51
|
RuntimeProgramLoadResultSchema
|
|
34
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-TKIVZQ6V.mjs";
|
|
35
53
|
import {
|
|
36
54
|
canonicalContractSchemas
|
|
37
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-AYNGVVND.mjs";
|
|
38
56
|
import {
|
|
39
57
|
ActorRefSchema,
|
|
40
58
|
AgentRuntimeEventSchema,
|
|
@@ -57,12 +75,17 @@ import {
|
|
|
57
75
|
BrandGeneticsProfileSchema,
|
|
58
76
|
CompletionEventSchema,
|
|
59
77
|
CompletionHeaderSchema,
|
|
78
|
+
DECLARATIVE_PUBLICATION_SCOPE_HEADER,
|
|
79
|
+
DECLARATIVE_PUBLICATION_SURFACE_HEADER,
|
|
60
80
|
DataContinuityEnvelopeSchema,
|
|
61
81
|
DeclarativeDocumentImportIntentSchema,
|
|
62
82
|
DeclarativeDocumentImportPlanSchema,
|
|
63
83
|
DeclarativeDocumentImportRequestSchema,
|
|
64
84
|
DeclarativeDocumentImportResultSchema,
|
|
65
85
|
DeclarativeImportDocumentSchema,
|
|
86
|
+
DeclarativePublicationScopeSchema,
|
|
87
|
+
DeclarativePublicationVerificationRequestSchema,
|
|
88
|
+
DeclarativePublicationVerificationSchema,
|
|
66
89
|
ExecutionLinkSchema,
|
|
67
90
|
ExpiringAccessGrantSchema,
|
|
68
91
|
HotwordBodySchema,
|
|
@@ -106,7 +129,7 @@ import {
|
|
|
106
129
|
WorkflowCompletionCommitSchema,
|
|
107
130
|
WorkflowCompletionReceiptSchema,
|
|
108
131
|
WorkflowPublicationSchema
|
|
109
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-WYV3EFUS.mjs";
|
|
110
133
|
import {
|
|
111
134
|
APPLICATION_HANDOFF_QUERY_PARAMETER,
|
|
112
135
|
DEFAULT_CONDUCTOR_OWNER_EMAIL,
|
|
@@ -240,7 +263,7 @@ import {
|
|
|
240
263
|
validateDomainCommand,
|
|
241
264
|
validateWorkbenchRuntimeSet,
|
|
242
265
|
writePageDraftPath
|
|
243
|
-
} from "./chunk-
|
|
266
|
+
} from "./chunk-UY2ZSIR2.mjs";
|
|
244
267
|
import {
|
|
245
268
|
PAGE_STREAM_MAX_BUFFER_BYTES,
|
|
246
269
|
PAGE_STREAM_MAX_BUFFER_EVENTS,
|
|
@@ -254,7 +277,7 @@ import {
|
|
|
254
277
|
PageStreamDescriptorSchema,
|
|
255
278
|
PageStreamEventSchema,
|
|
256
279
|
pageStreamRoutes
|
|
257
|
-
} from "./chunk-
|
|
280
|
+
} from "./chunk-DFALYXAY.mjs";
|
|
258
281
|
import {
|
|
259
282
|
ACTION_PROGRAM_ABI,
|
|
260
283
|
AGENT_MODE_CAPABILITIES,
|
|
@@ -768,7 +791,7 @@ import {
|
|
|
768
791
|
validateThemeTokensDocument,
|
|
769
792
|
validateThemeTokensDocumentStructure,
|
|
770
793
|
visitPageExpression
|
|
771
|
-
} from "./chunk-
|
|
794
|
+
} from "./chunk-QPFYQ24T.mjs";
|
|
772
795
|
import "./chunk-3QS3WKRC.mjs";
|
|
773
796
|
|
|
774
797
|
// src/types/tool.ts
|
|
@@ -809,6 +832,10 @@ var WorkflowTriggerType = /* @__PURE__ */ ((WorkflowTriggerType2) => {
|
|
|
809
832
|
})(WorkflowTriggerType || {});
|
|
810
833
|
export {
|
|
811
834
|
ACTION_PROGRAM_ABI,
|
|
835
|
+
AGENT_DATA_CONTEXT_ENV,
|
|
836
|
+
AGENT_DATA_CONTEXT_FILE_ENV,
|
|
837
|
+
AGENT_DATA_CONTEXT_HEADER,
|
|
838
|
+
AGENT_DATA_OPERATION_HEADER,
|
|
812
839
|
AGENT_MODE_CAPABILITIES,
|
|
813
840
|
AGENT_SESSION_CAPABILITY_EVIDENCE,
|
|
814
841
|
AGENT_SESSION_COMMAND_POLICIES,
|
|
@@ -829,7 +856,21 @@ export {
|
|
|
829
856
|
AgentCheckpointPrepareResponseSchema,
|
|
830
857
|
AgentCheckpointReadResponseSchema,
|
|
831
858
|
AgentConfigurationCapabilitySchema,
|
|
859
|
+
AgentDataOperationContextSchema,
|
|
860
|
+
AgentDataOriginSchema,
|
|
861
|
+
AgentDataQueryOperationSchema,
|
|
862
|
+
AgentDataReceiptSchema,
|
|
863
|
+
AgentDataRecordRefSchema,
|
|
864
|
+
AgentDataSelectionSchema,
|
|
865
|
+
AgentDataSourceSchema,
|
|
866
|
+
AgentDataStatusSchema,
|
|
867
|
+
AgentDataViewQuerySchema,
|
|
832
868
|
AgentExecutionModeSchema,
|
|
869
|
+
AgentLinkedDataItemSchema,
|
|
870
|
+
AgentLinkedDataListSchema,
|
|
871
|
+
AgentLinkedDataPageInfoSchema,
|
|
872
|
+
AgentLinkedDataPageSchema,
|
|
873
|
+
AgentLinkedDataRowSchema,
|
|
833
874
|
AgentModeCapabilitiesSchema,
|
|
834
875
|
AgentModeSchema,
|
|
835
876
|
AgentNativeInteractionResponseSchema,
|
|
@@ -977,6 +1018,8 @@ export {
|
|
|
977
1018
|
DECLARATIVE_CONTROL_ONTOLOGY_DEFINITIONS,
|
|
978
1019
|
DECLARATIVE_CONTROL_SCHEMA_VERSION,
|
|
979
1020
|
DECLARATIVE_MIGRATION_ERROR_CODES,
|
|
1021
|
+
DECLARATIVE_PUBLICATION_SCOPE_HEADER,
|
|
1022
|
+
DECLARATIVE_PUBLICATION_SURFACE_HEADER,
|
|
980
1023
|
DEFAULT_ACTION_PROGRAM_BUDGETS,
|
|
981
1024
|
DEFAULT_AGENT_WORKBENCH_SIDEBAR_SECTIONS,
|
|
982
1025
|
DEFAULT_CONDUCTOR_OWNER_EMAIL,
|
|
@@ -1046,6 +1089,9 @@ export {
|
|
|
1046
1089
|
DeclarativePublicationJobScopeSchema,
|
|
1047
1090
|
DeclarativePublicationPlanIntentSchema,
|
|
1048
1091
|
DeclarativePublicationResultSchema,
|
|
1092
|
+
DeclarativePublicationScopeSchema,
|
|
1093
|
+
DeclarativePublicationVerificationRequestSchema,
|
|
1094
|
+
DeclarativePublicationVerificationSchema,
|
|
1049
1095
|
DeclarativeReleaseTargetIntentSchema,
|
|
1050
1096
|
DeclarativeResourceKindSchema,
|
|
1051
1097
|
DeclarativeRetireIntentSchema,
|
package/lib/esm/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/types/tool.ts","../../src/types/workflow.ts"],"sourcesContent":["import { I18nValue } from \"./i18n\";\n\nexport type IJSONValue = string | number | boolean | IJSONObject | IJSONArray;\nexport type IJSONArray = Array<IJSONValue>;\nexport interface IJSONObject {\n [x: string]: IJSONValue;\n}\n\nexport type ToolPropertyTypes =\n | \"string\"\n | \"file\"\n | \"number\"\n | \"boolean\"\n | \"options\"\n | \"json\"\n | \"notice\"\n | \"canvas-assist\";\n\nexport const CODE_LANGUAGES = [\"javaScript\", \"json\", \"python\", \"sql\"] as const;\n\nexport type EditorType =\n | \"code\"\n | \"codeNodeEditor\"\n | \"htmlEditor\"\n | \"sqlEditor\"\n | \"json\";\nexport type CodeNodeEditorLanguage = (typeof CODE_LANGUAGES)[number];\n\nexport interface ToolPropertyTypeOptions {\n editor?: EditorType; // Supported by: string\n editorLanguage?: CodeNodeEditorLanguage; // Supported by: string in combination with editor: codeNodeEditor\n maxValue?: number; // Supported by: number\n minValue?: number; // Supported by: number\n multipleValues?: boolean; // Supported by: <All>\n multipleValueButtonText?: string; // Supported when \"multipleValues\" set to true\n numberPrecision?: number; // Supported by: number\n password?: boolean; // Supported by: string\n rows?: number; // Supported by: string\n assetType?: AssetType;\n accept?: string;\n max?: number;\n\n [key: string]: any;\n}\n\nexport type ToolPropertyParameterValue =\n | string\n | number\n | boolean\n | undefined\n | null;\n\nexport type ResourceLocatorModes = \"id\" | \"url\" | \"list\" | string;\nexport interface IResourceLocatorResult {\n name: string;\n value: string;\n url?: string;\n}\n\nexport interface ToolParameter {\n [key: string]: ToolParameterValueType;\n}\nexport type ToolParameterValueType =\n // TODO: Later also has to be possible to add multiple ones with the name name. So array has to be possible\n | ToolPropertyParameterValue\n | ToolParameter\n | ToolPropertyParameterValue[]\n | ToolParameter[];\n\nexport interface ToolPropertyDisplayOptions {\n hide?: {\n [key: string]: ToolPropertyParameterValue[] | undefined;\n };\n show?: {\n [key: string]: ToolPropertyParameterValue[] | undefined;\n };\n}\n\nexport interface ToolPropertyOptions {\n name: string | I18nValue;\n value: string | number | boolean;\n action?: string;\n description?: string | I18nValue;\n}\n\nexport interface ToolPropertyCollection {\n displayName: string;\n name: string;\n values: ToolProperty[];\n}\n\nexport interface ToolPropertyValueExtractorBase {\n type: string;\n}\n\nexport interface ToolPropertyValueExtractorRegex {\n type: \"regex\";\n regex: string | RegExp;\n}\n\nexport type AssetType =\n | \"llm-model\"\n | \"sd-model\"\n | \"workflow\"\n | \"workflow-association\"\n | \"design-project\"\n | \"design-association\"\n | \"design-board\"\n | \"workflow-view\"\n | \"media-file\"\n | \"sql-knowledge-base-table\"\n | \"sql-knowledge-base\"\n | \"knowledge-base\"\n | \"canvas\"\n | \"workflow-template\"\n | \"fork-join-branch\"\n | \"workflow-version\"\n | \"tools\"\n | \"comfyui-server\"\n | \"comfyui-workflow\"\n | \"comfyui-model-type\"\n | \"comfyui-model\"\n | \"llm-channel\"\n | \"conversation-app\"\n | \"oneapi-model\"\n | \"leaderboard\"\n | \"model-training\";\n\nexport interface ToolProperty {\n displayName: string | I18nValue;\n name: string;\n type: ToolPropertyTypes;\n typeOptions?: ToolPropertyTypeOptions;\n default?: ToolParameterValueType;\n description?: string | I18nValue;\n hint?: string;\n displayOptions?: ToolPropertyDisplayOptions;\n options?: Array<ToolPropertyOptions | ToolProperty | ToolPropertyCollection>;\n placeholder?: string | I18nValue;\n isNodeSetting?: boolean;\n noDataExpression?: boolean;\n required?: boolean;\n example?: string;\n extractValue?: ToolPropertyValueExtractorRegex;\n properties?: ToolProperty[];\n assetType?: AssetType;\n flag?: boolean;\n}\n\nexport type ToolCategory =\n | \"image\" // 图像处理\n | \"text\" // 文本处理\n | \"file\" // 文件处理\n | \"gen-image\" // 图像生成\n | \"gen-text\" // 文本生成\n | \"train-model\" // 模型训练\n | \"process\" // 流程控制\n | \"auto\" // 自动化\n | \"bio\" // 生命科学\n | \"human\" // 用户交互\n | \"query\" // 搜索增强\n | \"db\" // 数据存储\n | \"extra\"; // 扩展能力\n\nexport enum ToolType {\n SIMPLE = \"SIMPLE\",\n FORK_JOIN = \"FORK_JOIN\",\n JOIN = \"JOIN\",\n DO_WHILE = \"DO_WHILE\",\n SWITCH = \"SWITCH\",\n DYNAMIC = \"DYNAMIC\",\n FORK_JOIN_DYNAMIC = \"FORK_JOIN_DYNAMIC\",\n TERMINATE = \"TERMINATE\",\n HUMAN = \"HUMAN\",\n SUB_WORKFLOW = \"SUB_WORKFLOW\",\n INLINE = \"INLINE\",\n SET_VARIABLE = \"SET_VARIABLE\",\n}\n\nexport interface ToolRuleItem {\n type: string;\n [x: string]: any;\n}\n\nexport interface ToolExtraInfo {\n [x: string]: any;\n}\n\nexport interface ToolCredentialItem {\n name: string;\n required: boolean;\n}\n\nexport interface ToolDef {\n type: ToolType;\n name: string;\n displayName: string | I18nValue;\n description?: string | I18nValue;\n icon?: string;\n input: ToolProperty[];\n output: ToolProperty[];\n categories?: ToolCategory[];\n rules?: ToolRuleItem[];\n extra?: ToolExtraInfo;\n credentials?: ToolCredentialItem[];\n}\n","export enum ValidationIssueType {\n ERROR = 'ERROR',\n WANTING = 'WANTING',\n}\n\nexport enum ValidationReasonType {\n VALUE_REQUIRED = 'VALUE_REQUIRED',\n VALUE_TYPE_NOT_MATCH = 'VALUE_TYPE_NOT_MATCH',\n DO_WHILE_EMPTY_LOOP_OVER = 'DO_WHILE_EMPTY_LOOP_OVER',\n}\n\nexport interface ValidationIssueReason {\n type: ValidationReasonType;\n name: string;\n}\n\nexport interface WorkflowValidationIssue {\n taskReferenceName: string;\n issueType: ValidationIssueType;\n detailReason: ValidationIssueReason;\n humanMessage: {\n en: string;\n zh: string;\n };\n}\n\nexport interface WorkflowTriggerConfig {\n triggerType: WorkflowTriggerType;\n cron?: string;\n}\n\nexport enum WorkflowTriggerType {\n MANUALLY = 'MANUAL',\n SCHEDULER = 'SCHEDULER',\n WEBHOOK = 'WEBHOOK',\n}\n \n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/types/tool.ts","../../src/types/workflow.ts"],"sourcesContent":["import { I18nValue } from \"./i18n\";\n\nexport type IJSONValue = string | number | boolean | IJSONObject | IJSONArray;\nexport type IJSONArray = Array<IJSONValue>;\nexport interface IJSONObject {\n [x: string]: IJSONValue;\n}\n\nexport type ToolPropertyTypes =\n | \"string\"\n | \"file\"\n | \"number\"\n | \"boolean\"\n | \"options\"\n | \"json\"\n | \"notice\"\n | \"canvas-assist\";\n\nexport const CODE_LANGUAGES = [\"javaScript\", \"json\", \"python\", \"sql\"] as const;\n\nexport type EditorType =\n | \"code\"\n | \"codeNodeEditor\"\n | \"htmlEditor\"\n | \"sqlEditor\"\n | \"json\";\nexport type CodeNodeEditorLanguage = (typeof CODE_LANGUAGES)[number];\n\nexport interface ToolPropertyTypeOptions {\n editor?: EditorType; // Supported by: string\n editorLanguage?: CodeNodeEditorLanguage; // Supported by: string in combination with editor: codeNodeEditor\n maxValue?: number; // Supported by: number\n minValue?: number; // Supported by: number\n multipleValues?: boolean; // Supported by: <All>\n multipleValueButtonText?: string; // Supported when \"multipleValues\" set to true\n numberPrecision?: number; // Supported by: number\n password?: boolean; // Supported by: string\n rows?: number; // Supported by: string\n assetType?: AssetType;\n accept?: string;\n max?: number;\n\n [key: string]: any;\n}\n\nexport type ToolPropertyParameterValue =\n | string\n | number\n | boolean\n | undefined\n | null;\n\nexport type ResourceLocatorModes = \"id\" | \"url\" | \"list\" | string;\nexport interface IResourceLocatorResult {\n name: string;\n value: string;\n url?: string;\n}\n\nexport interface ToolParameter {\n [key: string]: ToolParameterValueType;\n}\nexport type ToolParameterValueType =\n // TODO: Later also has to be possible to add multiple ones with the name name. So array has to be possible\n | ToolPropertyParameterValue\n | ToolParameter\n | ToolPropertyParameterValue[]\n | ToolParameter[];\n\nexport interface ToolPropertyDisplayOptions {\n hide?: {\n [key: string]: ToolPropertyParameterValue[] | undefined;\n };\n show?: {\n [key: string]: ToolPropertyParameterValue[] | undefined;\n };\n}\n\nexport interface ToolPropertyOptions {\n name: string | I18nValue;\n value: string | number | boolean;\n action?: string;\n description?: string | I18nValue;\n}\n\nexport interface ToolPropertyCollection {\n displayName: string;\n name: string;\n values: ToolProperty[];\n}\n\nexport interface ToolPropertyValueExtractorBase {\n type: string;\n}\n\nexport interface ToolPropertyValueExtractorRegex {\n type: \"regex\";\n regex: string | RegExp;\n}\n\nexport type AssetType =\n | \"llm-model\"\n | \"sd-model\"\n | \"workflow\"\n | \"workflow-association\"\n | \"design-project\"\n | \"design-association\"\n | \"design-board\"\n | \"workflow-view\"\n | \"media-file\"\n | \"sql-knowledge-base-table\"\n | \"sql-knowledge-base\"\n | \"knowledge-base\"\n | \"canvas\"\n | \"workflow-template\"\n | \"fork-join-branch\"\n | \"workflow-version\"\n | \"tools\"\n | \"comfyui-server\"\n | \"comfyui-workflow\"\n | \"comfyui-model-type\"\n | \"comfyui-model\"\n | \"llm-channel\"\n | \"conversation-app\"\n | \"oneapi-model\"\n | \"leaderboard\"\n | \"model-training\";\n\nexport interface ToolProperty {\n displayName: string | I18nValue;\n name: string;\n type: ToolPropertyTypes;\n typeOptions?: ToolPropertyTypeOptions;\n default?: ToolParameterValueType;\n description?: string | I18nValue;\n hint?: string;\n displayOptions?: ToolPropertyDisplayOptions;\n options?: Array<ToolPropertyOptions | ToolProperty | ToolPropertyCollection>;\n placeholder?: string | I18nValue;\n isNodeSetting?: boolean;\n noDataExpression?: boolean;\n required?: boolean;\n example?: string;\n extractValue?: ToolPropertyValueExtractorRegex;\n properties?: ToolProperty[];\n assetType?: AssetType;\n flag?: boolean;\n}\n\nexport type ToolCategory =\n | \"image\" // 图像处理\n | \"text\" // 文本处理\n | \"file\" // 文件处理\n | \"gen-image\" // 图像生成\n | \"gen-text\" // 文本生成\n | \"train-model\" // 模型训练\n | \"process\" // 流程控制\n | \"auto\" // 自动化\n | \"bio\" // 生命科学\n | \"human\" // 用户交互\n | \"query\" // 搜索增强\n | \"db\" // 数据存储\n | \"extra\"; // 扩展能力\n\nexport enum ToolType {\n SIMPLE = \"SIMPLE\",\n FORK_JOIN = \"FORK_JOIN\",\n JOIN = \"JOIN\",\n DO_WHILE = \"DO_WHILE\",\n SWITCH = \"SWITCH\",\n DYNAMIC = \"DYNAMIC\",\n FORK_JOIN_DYNAMIC = \"FORK_JOIN_DYNAMIC\",\n TERMINATE = \"TERMINATE\",\n HUMAN = \"HUMAN\",\n SUB_WORKFLOW = \"SUB_WORKFLOW\",\n INLINE = \"INLINE\",\n SET_VARIABLE = \"SET_VARIABLE\",\n}\n\nexport interface ToolRuleItem {\n type: string;\n [x: string]: any;\n}\n\nexport interface ToolExtraInfo {\n [x: string]: any;\n}\n\nexport interface ToolCredentialItem {\n name: string;\n required: boolean;\n}\n\nexport interface ToolDef {\n type: ToolType;\n name: string;\n displayName: string | I18nValue;\n description?: string | I18nValue;\n icon?: string;\n input: ToolProperty[];\n output: ToolProperty[];\n categories?: ToolCategory[];\n rules?: ToolRuleItem[];\n extra?: ToolExtraInfo;\n credentials?: ToolCredentialItem[];\n}\n","export enum ValidationIssueType {\n ERROR = 'ERROR',\n WANTING = 'WANTING',\n}\n\nexport enum ValidationReasonType {\n VALUE_REQUIRED = 'VALUE_REQUIRED',\n VALUE_TYPE_NOT_MATCH = 'VALUE_TYPE_NOT_MATCH',\n DO_WHILE_EMPTY_LOOP_OVER = 'DO_WHILE_EMPTY_LOOP_OVER',\n}\n\nexport interface ValidationIssueReason {\n type: ValidationReasonType;\n name: string;\n}\n\nexport interface WorkflowValidationIssue {\n taskReferenceName: string;\n issueType: ValidationIssueType;\n detailReason: ValidationIssueReason;\n humanMessage: {\n en: string;\n zh: string;\n };\n}\n\nexport interface WorkflowTriggerConfig {\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eAAY;AACZ,EAAAA,UAAA,UAAO;AACP,EAAAA,UAAA,cAAW;AACX,EAAAA,UAAA,YAAS;AACT,EAAAA,UAAA,aAAU;AACV,EAAAA,UAAA,uBAAoB;AACpB,EAAAA,UAAA,eAAY;AACZ,EAAAA,UAAA,WAAQ;AACR,EAAAA,UAAA,kBAAe;AACf,EAAAA,UAAA,YAAS;AACT,EAAAA,UAAA,kBAAe;AAZL,SAAAA;AAAA,GAAA;;;ACpKL,IAAK,sBAAL,kBAAKC,yBAAL;AACL,EAAAA,qBAAA,WAAQ;AACR,EAAAA,qBAAA,aAAU;AAFA,SAAAA;AAAA,GAAA;AAKL,IAAK,uBAAL,kBAAKC,0BAAL;AACL,EAAAA,sBAAA,oBAAiB;AACjB,EAAAA,sBAAA,0BAAuB;AACvB,EAAAA,sBAAA,8BAA2B;AAHjB,SAAAA;AAAA,GAAA;AA0BL,IAAK,sBAAL,kBAAKC,yBAAL;AACL,EAAAA,qBAAA,cAAW;AACX,EAAAA,qBAAA,eAAY;AACZ,EAAAA,qBAAA,aAAU;AAHA,SAAAA;AAAA,GAAA;","names":["ToolType","ValidationIssueType","ValidationReasonType","WorkflowTriggerType"]}
|
|
@@ -131,8 +131,8 @@ import {
|
|
|
131
131
|
validateDomainCommand,
|
|
132
132
|
validateWorkbenchRuntimeSet,
|
|
133
133
|
writePageDraftPath
|
|
134
|
-
} from "../chunk-
|
|
135
|
-
import "../chunk-
|
|
134
|
+
} from "../chunk-UY2ZSIR2.mjs";
|
|
135
|
+
import "../chunk-DFALYXAY.mjs";
|
|
136
136
|
import {
|
|
137
137
|
MONKEYS_REQUIRED_THEME_TOKEN_PATHS,
|
|
138
138
|
ThemeTokenValidationError,
|
|
@@ -142,7 +142,7 @@ import {
|
|
|
142
142
|
resolveThemeTokens,
|
|
143
143
|
validateThemeTokensDocument,
|
|
144
144
|
validateThemeTokensDocumentStructure
|
|
145
|
-
} from "../chunk-
|
|
145
|
+
} from "../chunk-QPFYQ24T.mjs";
|
|
146
146
|
import "../chunk-3QS3WKRC.mjs";
|
|
147
147
|
export {
|
|
148
148
|
APPLICATION_HANDOFF_QUERY_PARAMETER,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
canonicalContractSchemas
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-AYNGVVND.mjs";
|
|
4
4
|
import {
|
|
5
5
|
AgentRuntimeEventSchema,
|
|
6
6
|
AggregateAssetDeleteSchema,
|
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
WorkflowCompletionCommitSchema,
|
|
70
70
|
WorkflowCompletionReceiptSchema,
|
|
71
71
|
WorkflowPublicationSchema
|
|
72
|
-
} from "../chunk-
|
|
72
|
+
} from "../chunk-WYV3EFUS.mjs";
|
|
73
73
|
import {
|
|
74
74
|
AccessPolicySchema,
|
|
75
75
|
ActionBindingSchema,
|
|
@@ -356,7 +356,7 @@ import {
|
|
|
356
356
|
WorkflowParameterTypeSchema,
|
|
357
357
|
WorkflowTriggerSchema,
|
|
358
358
|
WorkflowValidationIssueSchema
|
|
359
|
-
} from "../chunk-
|
|
359
|
+
} from "../chunk-QPFYQ24T.mjs";
|
|
360
360
|
import "../chunk-3QS3WKRC.mjs";
|
|
361
361
|
export {
|
|
362
362
|
AccessPolicySchema,
|