@inf-monkeys-tech/monkeys 1.1.49 → 1.1.50

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.
Files changed (44) hide show
  1. package/lib/contracts/declarative-control-http.d.ts +114 -0
  2. package/lib/contracts/declarative-control-http.d.ts.map +1 -1
  3. package/lib/contracts/declarative-control.d.ts +44 -0
  4. package/lib/contracts/declarative-control.d.ts.map +1 -1
  5. package/lib/contracts/declarative-control.js +15 -2
  6. package/lib/contracts/declarative-control.js.map +1 -1
  7. package/lib/contracts/declarative-document-import.d.ts +30 -0
  8. package/lib/contracts/declarative-document-import.d.ts.map +1 -1
  9. package/lib/contracts/declarative-publication-job.d.ts +24 -0
  10. package/lib/contracts/declarative-publication-job.d.ts.map +1 -1
  11. package/lib/contracts/index.d.ts +1 -0
  12. package/lib/contracts/index.d.ts.map +1 -1
  13. package/lib/contracts/index.js +1 -0
  14. package/lib/contracts/index.js.map +1 -1
  15. package/lib/contracts/platform-notifications.d.ts +49 -0
  16. package/lib/contracts/platform-notifications.d.ts.map +1 -0
  17. package/lib/contracts/platform-notifications.js +32 -0
  18. package/lib/contracts/platform-notifications.js.map +1 -0
  19. package/lib/esm/{chunk-7XA64SXB.mjs → chunk-DCW2YDFC.mjs} +12 -1
  20. package/lib/esm/chunk-DCW2YDFC.mjs.map +1 -0
  21. package/lib/esm/{chunk-5FTABNL3.mjs → chunk-HADHWAS6.mjs} +3 -3
  22. package/lib/esm/{chunk-DWXKYNBW.mjs → chunk-J5D3M43J.mjs} +3 -3
  23. package/lib/esm/{chunk-KHFW6WLM.mjs → chunk-JTMTLJYW.mjs} +33 -3
  24. package/lib/esm/chunk-JTMTLJYW.mjs.map +1 -0
  25. package/lib/esm/{chunk-B7QU3ZTP.mjs → chunk-QESY23FV.mjs} +2 -2
  26. package/lib/esm/{chunk-5J5W6AGD.mjs → chunk-V6QJCBGM.mjs} +2 -2
  27. package/lib/esm/contracts/index.mjs +21 -5
  28. package/lib/esm/index.mjs +23 -7
  29. package/lib/esm/index.mjs.map +1 -1
  30. package/lib/esm/runtime/index.mjs +3 -3
  31. package/lib/esm/schemas/index.mjs +3 -3
  32. package/lib/json-schema/navigation-runtime-bundle.schema.json +29 -0
  33. package/lib/json-schema/navigation.schema.json +29 -0
  34. package/lib/runtime/runtime-definition-wire.d.ts +6 -0
  35. package/lib/runtime/runtime-definition-wire.d.ts.map +1 -1
  36. package/lib/schemas/index.d.ts +12 -0
  37. package/lib/schemas/index.d.ts.map +1 -1
  38. package/package.json +1 -1
  39. package/lib/esm/chunk-7XA64SXB.mjs.map +0 -1
  40. package/lib/esm/chunk-KHFW6WLM.mjs.map +0 -1
  41. /package/lib/esm/{chunk-5FTABNL3.mjs.map → chunk-HADHWAS6.mjs.map} +0 -0
  42. /package/lib/esm/{chunk-DWXKYNBW.mjs.map → chunk-J5D3M43J.mjs.map} +0 -0
  43. /package/lib/esm/{chunk-B7QU3ZTP.mjs.map → chunk-QESY23FV.mjs.map} +0 -0
  44. /package/lib/esm/{chunk-5J5W6AGD.mjs.map → chunk-V6QJCBGM.mjs.map} +0 -0
@@ -36,7 +36,7 @@ import {
36
36
  WorkflowCompletionCommitSchema,
37
37
  WorkflowCompletionReceiptSchema,
38
38
  WorkflowPublicationSchema
39
- } from "./chunk-5J5W6AGD.mjs";
39
+ } from "./chunk-V6QJCBGM.mjs";
40
40
  import {
41
41
  ActionProgramArtifactSchema,
42
42
  ActionProgramDefinitionSchema,
@@ -101,7 +101,7 @@ import {
101
101
  WorkbenchSchema,
102
102
  WorkflowColumnBindingSchema,
103
103
  WorkflowDefinitionSchema
104
- } from "./chunk-7XA64SXB.mjs";
104
+ } from "./chunk-DCW2YDFC.mjs";
105
105
 
106
106
  // src/schemas/index.ts
107
107
  var canonicalContractSchemas = {
@@ -210,4 +210,4 @@ var canonicalContractSchemas = {
210
210
  export {
211
211
  canonicalContractSchemas
212
212
  };
213
- //# sourceMappingURL=chunk-5FTABNL3.mjs.map
213
+ //# sourceMappingURL=chunk-HADHWAS6.mjs.map
@@ -4,7 +4,7 @@ import {
4
4
  PAGE_STREAM_MAX_FRAME_BYTES,
5
5
  PageStreamDescriptorSchema,
6
6
  PageStreamEventSchema
7
- } from "./chunk-B7QU3ZTP.mjs";
7
+ } from "./chunk-QESY23FV.mjs";
8
8
  import {
9
9
  AccessPolicySchema,
10
10
  ActionProgramDefinitionSchema,
@@ -115,7 +115,7 @@ import {
115
115
  require_validation,
116
116
  require_validation_error,
117
117
  resolveThemeTokens
118
- } from "./chunk-7XA64SXB.mjs";
118
+ } from "./chunk-DCW2YDFC.mjs";
119
119
  import {
120
120
  __commonJS,
121
121
  __toESM
@@ -7477,4 +7477,4 @@ export {
7477
7477
  collectManagedFileReferences,
7478
7478
  resolveFileResourceReference
7479
7479
  };
7480
- //# sourceMappingURL=chunk-DWXKYNBW.mjs.map
7480
+ //# sourceMappingURL=chunk-J5D3M43J.mjs.map
@@ -14,7 +14,7 @@ import {
14
14
  ManagedFileUriSchema,
15
15
  RevisionRefSchema,
16
16
  Sha256Schema
17
- } from "./chunk-7XA64SXB.mjs";
17
+ } from "./chunk-DCW2YDFC.mjs";
18
18
 
19
19
  // src/contracts/agent-data.ts
20
20
  import { z } from "zod";
@@ -475,6 +475,29 @@ var RuntimeProgramDownloadResultSchema = z6.discriminatedUnion("kind", [
475
475
  z6.object({ kind: z6.literal("text-artifact"), fileName: z6.string().min(1).max(255), mimeType: z6.enum(["application/json", "text/plain", "text/csv"]), content: z6.string().max(1048576) }).strict()
476
476
  ]);
477
477
 
478
+ // src/contracts/platform-notifications.ts
479
+ import { z as z7 } from "zod";
480
+ var PlatformNotificationQuerySchema = z7.object({ channel: ContractIdentifierSchema }).strict();
481
+ var PlatformNotificationReadSchema = z7.object({ readToken: z7.string().min(1).max(4096), recordLoaded: z7.boolean(), entryIds: z7.array(ContractIdentifierSchema).max(100) }).strict();
482
+ var PlatformNotificationSourceSchema = z7.object({ teamId: ContractIdentifierSchema, ontologyId: ContractIdentifierSchema, recordId: ContractIdentifierSchema }).strict();
483
+ var PlatformNotificationSourcesQuerySchema = z7.object({ channel: ContractIdentifierSchema, sources: z7.array(PlatformNotificationSourceSchema).min(1).max(100).optional() }).strict();
484
+ var PlatformNotificationSourcesSchema = z7.object({
485
+ channel: ContractIdentifierSchema,
486
+ unreadCount: z7.number().int().nonnegative().safe(),
487
+ groups: z7.array(z7.object({ source: PlatformNotificationSourceSchema, unreadCount: z7.number().int().nonnegative().safe(), readToken: z7.string().min(1).max(4096) }).strict())
488
+ }).strict();
489
+ var PlatformNotificationSnapshotSchema = z7.object({
490
+ channel: ContractIdentifierSchema,
491
+ unreadCount: z7.number().int().nonnegative().safe(),
492
+ readToken: z7.string().min(1).max(4096)
493
+ }).strict();
494
+ var platformNotificationRoutes = {
495
+ unread: "/api/notifications/unread",
496
+ query: "/api/notifications/query",
497
+ sources: "/api/notifications/sources/query",
498
+ read: "/api/notifications/read"
499
+ };
500
+
478
501
  export {
479
502
  AgentDataOriginSchema,
480
503
  AgentDataOperationContextSchema,
@@ -541,6 +564,13 @@ export {
541
564
  RuntimeProgramCallRequestSchema,
542
565
  RuntimeProgramLoadResultSchema,
543
566
  RuntimeProgramCallResultSchema,
544
- RuntimeProgramDownloadResultSchema
567
+ RuntimeProgramDownloadResultSchema,
568
+ PlatformNotificationQuerySchema,
569
+ PlatformNotificationReadSchema,
570
+ PlatformNotificationSourceSchema,
571
+ PlatformNotificationSourcesQuerySchema,
572
+ PlatformNotificationSourcesSchema,
573
+ PlatformNotificationSnapshotSchema,
574
+ platformNotificationRoutes
545
575
  };
546
- //# sourceMappingURL=chunk-KHFW6WLM.mjs.map
576
+ //# sourceMappingURL=chunk-JTMTLJYW.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/contracts/agent-data.ts","../../src/contracts/agent-native-runtime.ts","../../src/contracts/agent-work.ts","../../src/contracts/declarative-publication-job.ts","../../src/contracts/markdown-document.ts","../../src/contracts/action-program-http.ts","../../src/contracts/platform-notifications.ts"],"sourcesContent":["import { z } from 'zod';\nimport { ContractIdentifierSchema, IsoDateTimeSchema, JsonObjectSchema, JsonValueSchema } from './common';\n\nconst id = ContractIdentifierSchema;\n\n/** Verified provenance. Transport credentials never belong in durable data. */\nexport const AgentDataOriginSchema = z.object({\n version: z.literal(1),\n tenantId: id,\n teamId: id,\n threadId: id,\n userId: id,\n actorId: id,\n runId: id.optional(),\n messageId: id.optional(),\n epoch: z.number().int().positive().optional(),\n}).strict();\n\nexport const AgentDataOperationContextSchema = z.object({\n origin: AgentDataOriginSchema,\n operationId: id,\n resultScope: z.object({ ontologyId: id, assetIds: z.array(id).min(1).max(64) }).strict().optional(),\n}).strict();\nexport type AgentDataOperationContext = z.infer<typeof AgentDataOperationContextSchema>;\n\nexport const AgentDataSourceSchema = z.object({\n teamId: id,\n ontologyId: id,\n viewId: id.optional(),\n viewRevision: z.number().int().positive().optional(),\n viewContentHash: z.string().regex(/^[a-f0-9]{64}$/).optional(),\n}).strict();\n\nexport const AgentDataQueryOperationSchema = z.enum([\n 'data.asset.list',\n 'data.asset.search',\n 'data.asset.searchAdvanced',\n 'data.asset.searchGroupedTags',\n 'data.asset.aggregate',\n 'data.view.rows',\n 'data.view.sample',\n 'agent.view.legacy',\n]);\n\n/** A bounded selection from an existing native View query. Tag groups retain native DNF semantics. */\nexport const AgentDataViewQuerySchema = z.object({\n ontologyId: id, viewId: id.optional(), name: z.string().max(512).optional(), tagGroups: z.array(z.array(id).max(64)).max(64).optional(),\n pageSize: z.number().int().min(1).max(1000).default(50), pageToken: z.string().max(32768).optional(),\n priorityTagIds: z.array(id).max(500).optional(),\n sample: z.object({ size: z.number().int().min(1).max(200), poolSize: z.number().int().min(1).max(2000), seed: z.string().min(1).max(256), requireImage: z.boolean().default(true) }).strict().optional(),\n}).strict();\nexport type AgentDataViewQuery = z.infer<typeof AgentDataViewQuerySchema>;\n\n/** The registered operation owns parameter validation and query semantics. */\nconst parameters = JsonObjectSchema.superRefine((value, context) => {\n for (const key of ['pageToken', 'cursor', 'authorization', 'headers', 'accessToken', 'cookie']) {\n if (key in value) context.addIssue({ code: 'custom', path: [key], message: 'Transport state cannot be stored in a view definition.' });\n }\n if (JSON.stringify(value).length > 131072) context.addIssue({ code: 'custom', message: 'View parameters exceed 128 KiB.' });\n});\n\nexport const AgentDataRecordRefSchema = z.discriminatedUnion('kind', [\n z.object({ kind: z.literal('asset'), id, teamId: id, ontologyId: id, version: z.union([z.string().min(1), z.number().int().nonnegative()]).optional() }).strict(),\n z.object({ kind: z.literal('file'), id, teamId: id, version: z.number().int().nonnegative().optional() }).strict(),\n z.object({ kind: z.literal('domain-record'), id, teamId: id, contract: id, version: z.number().int().positive().optional() }).strict(),\n]);\n\nexport const AgentDataSelectionSchema = z.discriminatedUnion('kind', [\n z.object({\n kind: z.literal('query'),\n operation: AgentDataQueryOperationSchema,\n source: AgentDataSourceSchema,\n parameters,\n }).strict(),\n z.object({\n kind: z.literal('results'),\n resultSetId: id,\n /** Bounded receipt page; the materializer preserves the complete set across pages. */\n members: z.array(AgentDataRecordRefSchema).max(500),\n complete: z.boolean(),\n query: z.object({ operation: AgentDataQueryOperationSchema, source: AgentDataSourceSchema, parameters }).strict().optional(),\n }).strict(),\n]);\n\nexport const AgentDataStatusSchema = z.enum(['running', 'completed', 'failed', 'partial', 'cancelled']);\n\n/** One replayable effect of a logical operation; phase keys deduplicate transport retries. */\nexport const AgentDataReceiptSchema = z.object({\n contract: z.literal('AgentDataReceipt'),\n version: z.literal(1),\n operationId: id,\n phaseId: id.optional(),\n origin: AgentDataOriginSchema,\n kind: z.enum(['query', 'generated']),\n selection: AgentDataSelectionSchema,\n status: AgentDataStatusSchema,\n title: z.string().max(500).optional(),\n occurredAt: IsoDateTimeSchema,\n result: z.object({\n returned: z.number().int().nonnegative(),\n total: z.number().int().nonnegative().optional(),\n hasMore: z.boolean().optional(),\n errorCode: z.string().regex(/^[A-Z][A-Z0-9_]{0,127}$/).optional(),\n }).strict(),\n sourceCommit: id.optional(),\n}).strict();\n\n/** Small read model for the artifact popover. Opening resolves the selection separately. */\nexport const AgentLinkedDataItemSchema = z.object({\n id,\n threadId: id,\n operationId: id,\n kind: z.enum(['query', 'generated']),\n status: AgentDataStatusSchema,\n title: z.string().max(500),\n occurredAt: IsoDateTimeSchema,\n returned: z.number().int().nonnegative(),\n total: z.number().int().nonnegative().optional(),\n source: AgentDataSourceSchema.optional(),\n runId: id.optional(),\n messageId: id.optional(),\n}).strict();\n\n/** Ephemeral, authorized projection of a canonical source record. */\nexport const AgentLinkedDataRowSchema = z.object({\n id,\n reference: AgentDataRecordRefSchema.optional(),\n openToken: z.string().max(8192).optional(),\n viewer: z.enum(['record', 'file', 'session-canvas']).optional(),\n title: z.string(),\n availability: z.enum(['ready', 'unavailable']),\n previewUrl: z.string().optional(),\n mimeType: z.string().optional(),\n fields: z.array(z.object({ id, label: z.string(), labelKey: z.string().optional(), value: JsonValueSchema }).strict()).max(200),\n}).strict();\n\nexport const AgentLinkedDataPageInfoSchema = z.object({\n pageSize: z.number().int().positive().max(100), returned: z.number().int().nonnegative().max(100),\n hasMore: z.boolean(), nextPageToken: z.string().optional(), total: z.number().int().nonnegative().optional(),\n}).strict();\n\nexport const AgentLinkedDataListSchema = z.object({ items: z.array(AgentLinkedDataItemSchema).max(100), pageInfo: AgentLinkedDataPageInfoSchema }).strict();\nexport const AgentLinkedDataPageSchema = z.object({\n contract: z.literal('AgentLinkedDataPage'), version: z.literal(1), view: AgentLinkedDataItemSchema,\n semantics: z.enum(['live-query', 'fixed-results']), items: z.array(AgentLinkedDataRowSchema).max(100), pageInfo: AgentLinkedDataPageInfoSchema,\n}).strict();\nexport type AgentLinkedDataRow = z.infer<typeof AgentLinkedDataRowSchema>;\nexport type AgentLinkedDataPage = z.infer<typeof AgentLinkedDataPageSchema>;\nexport type AgentLinkedDataList = z.infer<typeof AgentLinkedDataListSchema>;\n\nexport type AgentDataOrigin = z.infer<typeof AgentDataOriginSchema>;\nexport type AgentDataSource = z.infer<typeof AgentDataSourceSchema>;\nexport type AgentDataQueryOperation = z.infer<typeof AgentDataQueryOperationSchema>;\nexport type AgentDataRecordRef = z.infer<typeof AgentDataRecordRefSchema>;\nexport type AgentDataSelection = z.infer<typeof AgentDataSelectionSchema>;\nexport type AgentDataReceipt = z.infer<typeof AgentDataReceiptSchema>;\nexport type AgentLinkedDataItem = z.infer<typeof AgentLinkedDataItemSchema>;\n\nexport const AGENT_DATA_CONTEXT_HEADER = 'x-monkeys-agent-context';\nexport const AGENT_DATA_OPERATION_HEADER = 'x-monkeys-agent-operation';\nexport const AGENT_DATA_CONTEXT_ENV = 'MONKEYS_AGENT_CONTEXT';\nexport const AGENT_DATA_CONTEXT_FILE_ENV = 'MONKEYS_AGENT_CONTEXT_FILE';\n","import { z } from \"zod\";\n\n/** Product contracts. Native JSON-RPC and process control stay in the worker. */\nexport const AgentNativeRuntimeBindingSchema = z.object({\n engine: z.literal(\"app-server\"),\n cliVersion: z.string().min(1),\n workerId: z.string().min(1),\n epoch: z.number().int().positive(),\n});\nexport const AgentArtifactDeliverySchema = z.object({\n runId: z.string().min(1),\n status: z.enum([\"pending\", \"uploading\", \"ready\", \"failed\"]),\n error: z.string().optional(),\n});\nexport const AgentNativeRecoverySchema = z.object({\n runId: z.string().min(1),\n state: z.enum([\"reconciling\", \"uncertain\"]),\n message: z.string(),\n});\nexport const AgentNativeInteractionSchema = z.object({\n runId: z.string().min(1),\n requestId: z.union([z.string(), z.number().int()]),\n method: z.enum([\n \"item/commandExecution/requestApproval\",\n \"item/fileChange/requestApproval\",\n \"item/permissions/requestApproval\",\n \"item/tool/requestUserInput\",\n \"mcpServer/elicitation/request\",\n ]),\n params: z.record(z.string(), z.unknown()),\n});\nexport const AgentNativeInteractionResponseSchema = z.object({\n commandId: z.string().min(1).max(256),\n runId: z.string().min(1),\n requestId: z.union([z.string(), z.number().int()]),\n result: z.unknown(),\n});\nexport const AgentQuickStartIntentSchema = z.object({\n quickStartId: z.string().min(1),\n text: z.string(),\n /** Authorized Skill IDs, never a workflow ID or hidden execution plan. */\n skillIds: z.array(z.string()).optional(),\n attachmentUris: z.array(z.string()).default([]),\n});\nexport type AgentNativeRuntimeBinding = z.infer<\n typeof AgentNativeRuntimeBindingSchema\n>;\nexport type AgentArtifactDelivery = z.infer<typeof AgentArtifactDeliverySchema>;\nexport type AgentNativeRecovery = z.infer<typeof AgentNativeRecoverySchema>;\nexport type AgentNativeInteraction = z.infer<\n typeof AgentNativeInteractionSchema\n>;\nexport type AgentNativeInteractionResponse = z.infer<\n typeof AgentNativeInteractionResponseSchema\n>;\n","import { FileReadInstructionSchema, FileUploadInstructionSchema } from './file';\nimport { z } from \"zod\";\nimport type {\n AskForApproval,\n SandboxMode,\n UserInput,\n} from \"../codex-app-server\";\n\n/**\n * Core → Worker dispatch for Work sessions.\n *\n * Core decides everything that is authorization: model, upstream key, MCP\n * servers, Skill revisions. The Worker decides only what depends on its local\n * state (start vs. resume, process restart) and maps the command onto the\n * App Server's own thread/turn methods.\n */\nexport const AGENT_WORK_CONTRACT_VERSION = \"agent-work/1\" as const;\n\nconst SAFE_NAME = /^[a-zA-Z0-9][a-zA-Z0-9_-]{0,63}$/;\nconst SHA256 = /^[a-f0-9]{64}$/;\n\n/** Immutable Skill revision. The Worker fetches the archive by its hash once and caches it. */\nexport const AgentWorkSkillRefSchema = z.object({\n id: z.string().min(1),\n name: z.string().regex(SAFE_NAME),\n description: z.string(),\n sha256: z.string().regex(SHA256),\n requiredMcpServers: z.array(z.string().regex(SAFE_NAME)).default([]),\n});\n\nexport const AgentWorkCliPackageSchema = z\n .object({\n id: z.string().min(1),\n name: z.string().min(1),\n package: z.record(z.string(), z.unknown()),\n authentication: z.unknown().optional(),\n })\n .passthrough();\n\nexport const AgentWorkInputFileSchema = z.object({\n path: z.string().regex(/^inputs\\/[^/][^\\0]*$/),\n contentBase64: z.string(),\n});\n\nexport const AgentWorkCheckpointRefSchema = z\n .object({\n uri: z.string().min(1),\n checksum: z.string().regex(SHA256),\n size: z.number().int().nonnegative(),\n cliVersion: z.string().min(1),\n nativeThreadId: z.string().optional(),\n lastSequence: z.number().int(),\n })\n .passthrough();\n\n/**\n * Where a session reports its lease, events and checkpoint. A Worker serves any\n * number of tenants and is never configured with one, so the owning Core states\n * its control plane per session.\n */\nexport const AgentWorkControlPlaneSchema = z.object({\n url: z.string().min(1),\n headers: z.record(z.string(), z.string()).default({}),\n});\n\nexport const AgentWorkSessionSchema = z.object({\n sessionId: z.string().min(1),\n teamId: z.string().min(1),\n epoch: z.number().int().positive(),\n /** Run capability for ② events and ④ MCP. Never used for the model. */\n token: z.string().min(1),\n /** Selected model's upstream key. Lives only in the session process environment. */\n modelKey: z.string().min(1),\n skills: z.array(AgentWorkSkillRefSchema).default([]),\n files: z.array(AgentWorkInputFileSchema).default([]),\n cliPackages: z.array(AgentWorkCliPackageSchema).default([]),\n cliAuthorization: z.string().optional(),\n /** Short-lived provenance capability; kept in runtime credentials, never native transcripts. */\n agentDataContext: z.string().max(4096).optional(),\n fileCapability: z.string().optional(),\n fileControlPlaneUrl: z.string().optional(),\n controlPlane: AgentWorkControlPlaneSchema.optional(),\n nativeThreadId: z.string().nullish(),\n checkpoint: AgentWorkCheckpointRefSchema.nullish(),\n requireExisting: z.boolean().optional(),\n});\n\nexport const AgentWorkTurnCommandSchema = z.object({\n sessionId: z.string().min(1),\n teamId: z.string().min(1),\n epoch: z.number().int().positive(),\n commandId: z.string().min(1).max(256),\n runId: z.string().min(1),\n sourceMessageId: z.string().min(1),\n initialSessionSequence: z.number().int().nonnegative(),\n userMessage: z.record(z.string(), z.unknown()).optional(),\n historyReconstruction: z.boolean().optional(),\n replaySourceMessageId: z.string().optional(),\n input: z.array(z.custom<UserInput>((value) => !!value && typeof value === \"object\")),\n model: z.string().min(1),\n effort: z.string().optional(),\n developerInstructions: z.string(),\n approvalPolicy: z.custom<AskForApproval>((value) => value !== undefined),\n sandbox: z.custom<SandboxMode>((value) => typeof value === \"string\"),\n /** App Server config overrides (endpoints and env-var names only, never keys). */\n config: z.record(z.string(), z.unknown()),\n configRevision: z.string().min(1),\n});\n\nexport const AgentWorkDispatchSchema = z.object({\n contractVersion: z.literal(AGENT_WORK_CONTRACT_VERSION),\n session: AgentWorkSessionSchema,\n command: AgentWorkTurnCommandSchema,\n});\n\n/** Errors the Worker returns when it refuses a dispatch. */\nexport const AgentWorkErrorCodeSchema = z.enum([\n \"CONTRACT_UNSUPPORTED\",\n \"EPOCH_FENCED\",\n \"CAPACITY_QUEUED\",\n \"RUN_UNCERTAIN\",\n]);\n\nexport type AgentWorkSkillRef = z.infer<typeof AgentWorkSkillRefSchema>;\nexport type AgentWorkCliPackage = z.infer<typeof AgentWorkCliPackageSchema>;\nexport type AgentWorkInputFile = z.infer<typeof AgentWorkInputFileSchema>;\nexport type AgentWorkCheckpointRef = z.infer<typeof AgentWorkCheckpointRefSchema>;\nexport type AgentWorkControlPlane = z.infer<typeof AgentWorkControlPlaneSchema>;\nexport type AgentWorkSession = z.infer<typeof AgentWorkSessionSchema>;\nexport type AgentWorkTurnCommand = z.infer<typeof AgentWorkTurnCommandSchema>;\nexport type AgentWorkDispatch = z.infer<typeof AgentWorkDispatchSchema>;\nexport type AgentWorkErrorCode = z.infer<typeof AgentWorkErrorCodeSchema>;\n\n/** Storage transport is ephemeral; only the bucket and checkpoint revision are retained. */\nexport const AgentCheckpointPrepareResponseSchema = z.object({\n bucketId: z.string().min(1),\n missing: z.array(z.string().regex(SHA256)),\n chunkAccess: z.record(z.string().regex(SHA256), FileUploadInstructionSchema),\n manifestAccess: FileUploadInstructionSchema,\n});\nexport const AgentCheckpointReadResponseSchema = z.object({\n bucketId: z.string().min(1),\n chunkAccess: z.record(z.string().regex(SHA256), FileReadInstructionSchema),\n manifestAccess: FileReadInstructionSchema,\n});\nexport type AgentCheckpointPrepareResponse = z.infer<typeof AgentCheckpointPrepareResponseSchema>;\nexport type AgentCheckpointReadResponse = z.infer<typeof AgentCheckpointReadResponseSchema>;\n","import { z } from \"zod\";\n\nimport {\n DeclarativeBatchOperationIntentSchema,\n DeclarativePublicationResultSchema,\n} from \"./declarative-control-http\";\nimport { DeclarativeDiagnosticSchema } from \"./declarative-diagnostic\";\nimport { ContractIdentifierSchema } from \"./common\";\n\nconst jobIdSchema = ContractIdentifierSchema.regex(/^job[.:][a-zA-Z0-9][a-zA-Z0-9._:-]*$/);\n\nexport const DeclarativePublicationJobOperationSchema = z\n .object({\n id: ContractIdentifierSchema,\n dependsOn: z.array(ContractIdentifierSchema).max(16),\n operation: DeclarativeBatchOperationIntentSchema,\n })\n .strict();\n\nexport const DeclarativePublicationJobManifestSchema = z\n .object({\n idempotencyKey: z.string().trim().min(1).max(256),\n expectedGeneration: z.number().int().nonnegative(),\n operations: z.array(DeclarativePublicationJobOperationSchema).min(1).max(128),\n })\n .strict();\n\nexport const DeclarativePublicationJobOperationStateSchema = z\n .object({\n id: ContractIdentifierSchema,\n status: z.enum([\"queued\", \"running\", \"succeeded\", \"failed\"]),\n attemptCount: z.number().int().nonnegative(),\n diagnostics: z.array(DeclarativeDiagnosticSchema).max(32),\n result: DeclarativePublicationResultSchema.optional(),\n })\n .strict();\n\nexport const DeclarativePublicationJobScopeSchema = z\n .object({\n tenantId: ContractIdentifierSchema,\n teamId: ContractIdentifierSchema.optional(),\n surfaces: z.array(z.enum([\"kernel\", \"studio\"])).max(2),\n environmentIds: z.array(ContractIdentifierSchema).max(128),\n })\n .strict();\n\nexport const DeclarativePublicationJobReconciliationSchema = z\n .object({\n requested: z.number().int().nonnegative(),\n succeeded: z.number().int().nonnegative(),\n failed: z.number().int().nonnegative(),\n pending: z.number().int().nonnegative(),\n })\n .strict();\n\nexport const DeclarativePublicationJobSchema = z\n .object({\n contract: z.literal(\"DeclarativePublicationJob\"),\n schemaVersion: z.literal(1),\n jobId: jobIdSchema,\n status: z.enum([\"queued\", \"running\", \"succeeded\", \"failed\", \"cancelled\"]),\n manifest: DeclarativePublicationJobManifestSchema,\n operations: z.array(DeclarativePublicationJobOperationStateSchema).min(1).max(128),\n scope: DeclarativePublicationJobScopeSchema,\n generation: z.number().int().nonnegative(),\n reconciliation: DeclarativePublicationJobReconciliationSchema,\n diagnostics: z.array(DeclarativeDiagnosticSchema).max(64),\n createdAt: z.string().datetime({ offset: true }),\n updatedAt: z.string().datetime({ offset: true }),\n })\n .strict();\n\nexport type DeclarativePublicationJobOperation = z.infer<typeof DeclarativePublicationJobOperationSchema>;\nexport type DeclarativePublicationJobManifest = z.infer<typeof DeclarativePublicationJobManifestSchema>;\nexport type DeclarativePublicationJob = z.infer<typeof DeclarativePublicationJobSchema>;\n","import { z } from 'zod';\nimport { ContractIdentifierSchema, IsoDateTimeSchema, Sha256Schema } from './common';\nimport { ManagedFileUriSchema } from './file';\n\nexport const MARKDOWN_DOCUMENT_MAX_BYTES = 2 * 1024 * 1024;\nexport const MarkdownDocumentSourceSchema = z.object({\n agentId: ContractIdentifierSchema,\n threadId: ContractIdentifierSchema,\n artifactId: z.string().min(1).max(512),\n fileUri: ManagedFileUriSchema,\n}).strict();\n\nexport const MarkdownDocumentFileSchema = z.object({\n uri: ManagedFileUriSchema,\n sha256: Sha256Schema,\n byteSize: z.number().int().nonnegative().max(MARKDOWN_DOCUMENT_MAX_BYTES),\n}).strict();\n\n/** Persisted content is an immutable managed file; editor values never enter this record. */\nexport const MarkdownDocumentRecordSchema = z.object({\n contract: z.literal('MarkdownDocument'),\n schemaVersion: z.literal(1),\n documentId: ContractIdentifierSchema,\n source: MarkdownDocumentSourceSchema,\n file: MarkdownDocumentFileSchema,\n resources: z.array(ManagedFileUriSchema).max(1000),\n}).strict().superRefine((value, context) => {\n if (new Set(value.resources).size !== value.resources.length)\n context.addIssue({ code: 'custom', path: ['resources'], message: 'Document resource references must be unique.' });\n});\n\nexport const MarkdownDocumentSaveSchema = z.object({\n source: MarkdownDocumentSourceSchema,\n contentFileUri: ManagedFileUriSchema,\n expectedHeadCommitId: z.string().max(128),\n requestId: ContractIdentifierSchema,\n}).strict();\n\nexport const MarkdownDocumentRestoreSchema = z.object({\n source: MarkdownDocumentSourceSchema,\n targetCommitId: ContractIdentifierSchema,\n expectedHeadCommitId: ContractIdentifierSchema,\n requestId: ContractIdentifierSchema,\n}).strict();\n\nexport const MarkdownDocumentPolicySchema = z.object({\n autoSave: z.boolean(),\n idleMs: z.number().int().min(1000).max(30000),\n maxWaitMs: z.number().int().min(1000).max(120000),\n}).strict().superRefine((value, context) => {\n if (value.maxWaitMs < value.idleMs)\n context.addIssue({ code: 'custom', path: ['maxWaitMs'], message: 'Maximum save wait must include the idle interval.' });\n});\n\nexport const MarkdownDocumentViewSchema = z.object({\n documentId: ContractIdentifierSchema,\n name: z.string().min(1).max(500),\n source: MarkdownDocumentSourceSchema,\n record: MarkdownDocumentRecordSchema.nullable(),\n headCommitId: z.string().max(128),\n savedAt: IsoDateTimeSchema.nullable(),\n canEdit: z.boolean(),\n maxBytes: z.number().int().positive().max(MARKDOWN_DOCUMENT_MAX_BYTES),\n}).strict();\n\nexport const MarkdownDocumentVersionSchema = z.object({\n commitId: ContractIdentifierSchema,\n createdAt: IsoDateTimeSchema,\n actorId: z.string().max(256),\n operation: z.enum(['save', 'restore']),\n record: MarkdownDocumentRecordSchema,\n}).strict();\n\nexport const MarkdownDocumentHistoryQuerySchema = z.object({\n source: MarkdownDocumentSourceSchema,\n pageSize: z.number().int().min(1).max(50),\n pageToken: z.string().max(4096).optional(),\n}).strict();\nexport const MarkdownDocumentHistorySchema = z.object({\n items: z.array(MarkdownDocumentVersionSchema).max(50),\n nextPageToken: z.string().max(4096).nullable(),\n}).strict();\nexport const MarkdownDocumentReceiptSchema = z.object({\n commitId: ContractIdentifierSchema,\n file: MarkdownDocumentFileSchema,\n savedAt: IsoDateTimeSchema,\n}).strict();\nexport const MarkdownDocumentWorkspaceQuerySchema = z.object({ source: MarkdownDocumentSourceSchema, receiptRequestId: z.string().max(256).default('') }).strict();\nexport const MarkdownDocumentWorkspaceSchema = z.object({\n document: MarkdownDocumentViewSchema,\n history: MarkdownDocumentHistorySchema,\n receipt: MarkdownDocumentReceiptSchema.nullable(),\n}).strict();\n\nexport const MarkdownDocumentSaveResultSchema = z.object({\n view: MarkdownDocumentViewSchema,\n receipt: MarkdownDocumentReceiptSchema,\n}).strict();\n\nexport const MarkdownDocumentErrorCodeSchema = z.enum([\n 'MARKDOWN_DOCUMENT_FORBIDDEN', 'MARKDOWN_DOCUMENT_SOURCE_UNAVAILABLE', 'MARKDOWN_DOCUMENT_INVALID',\n 'MARKDOWN_DOCUMENT_TOO_LARGE', 'MARKDOWN_DOCUMENT_RESOURCE_UNAVAILABLE', 'MARKDOWN_DOCUMENT_CONFLICT',\n 'MARKDOWN_DOCUMENT_REQUEST_REUSED', 'MARKDOWN_DOCUMENT_SAVE_UNCONFIRMED', 'MARKDOWN_DOCUMENT_UNAVAILABLE',\n]);\nexport type MarkdownDocumentSource = z.infer<typeof MarkdownDocumentSourceSchema>;\nexport type MarkdownDocumentFile = z.infer<typeof MarkdownDocumentFileSchema>;\nexport type MarkdownDocumentRecord = z.infer<typeof MarkdownDocumentRecordSchema>;\nexport type MarkdownDocumentSave = z.infer<typeof MarkdownDocumentSaveSchema>;\nexport type MarkdownDocumentRestore = z.infer<typeof MarkdownDocumentRestoreSchema>;\nexport type MarkdownDocumentPolicy = z.infer<typeof MarkdownDocumentPolicySchema>;\nexport type MarkdownDocumentView = z.infer<typeof MarkdownDocumentViewSchema>;\nexport type MarkdownDocumentVersion = z.infer<typeof MarkdownDocumentVersionSchema>;\nexport type MarkdownDocumentHistoryQuery = z.infer<typeof MarkdownDocumentHistoryQuerySchema>;\nexport type MarkdownDocumentHistory = z.infer<typeof MarkdownDocumentHistorySchema>;\nexport type MarkdownDocumentWorkspaceQuery = z.infer<typeof MarkdownDocumentWorkspaceQuerySchema>;\nexport type MarkdownDocumentWorkspace = z.infer<typeof MarkdownDocumentWorkspaceSchema>;\nexport type MarkdownDocumentSaveResult = z.infer<typeof MarkdownDocumentSaveResultSchema>;\nexport type MarkdownDocumentErrorCode = z.infer<typeof MarkdownDocumentErrorCodeSchema>;\n","import { z } from \"zod\";\nimport {\n ActionProgramArtifactSchema,\n RevisionRefSchema,\n} from \"./declarative-control\";\nimport { DeclarativeRuntimeActionExecuteIntentSchema, DeclarativeNativeDownloadSchema } from \"./declarative-control-http\";\nimport { ContractIdentifierSchema, Sha256Schema, JsonObjectSchema } from \"./common\";\n\nexport const PrepareActionProgramRequestSchema = z\n .object({\n artifact: ActionProgramArtifactSchema,\n expectedVersion: z.number().int().min(0),\n })\n .strict();\nexport const RegisterActionProgramRequestSchema =\n PrepareActionProgramRequestSchema.extend({\n planHash: Sha256Schema,\n idempotencyKey: ContractIdentifierSchema,\n }).strict();\nexport const ReadActionProgramRequestSchema = z\n .object({ revisionRef: RevisionRefSchema })\n .strict();\nexport type PrepareActionProgramRequest = z.infer<\n typeof PrepareActionProgramRequestSchema\n>;\nexport type RegisterActionProgramRequest = z.infer<\n typeof RegisterActionProgramRequestSchema\n>;\n\n/** No persistent run: the original event is re-authorized against the exact Page on every call. */\nexport const RuntimeProgramLoadRequestSchema = z.object({\n context: DeclarativeRuntimeActionExecuteIntentSchema,\n}).strict();\nexport const RuntimeProgramCallRequestSchema = RuntimeProgramLoadRequestSchema.extend({\n kind: z.enum([\"query\", \"command\"]),\n dependencyId: ContractIdentifierSchema,\n args: JsonObjectSchema,\n stepKey: z.string().min(1).max(128),\n recoveryOnly: z.literal(true).optional(),\n}).strict();\nexport const RuntimeProgramLoadResultSchema = z.object({\n artifact: ActionProgramArtifactSchema,\n input: JsonObjectSchema,\n schemas: z.array(z.object({ revisionRef: RevisionRefSchema, document: JsonObjectSchema }).strict()).max(512),\n}).strict();\nexport const RuntimeProgramCallResultSchema = z.object({ value: JsonObjectSchema }).strict();\nexport type RuntimeProgramLoadRequest = z.infer<typeof RuntimeProgramLoadRequestSchema>;\nexport type RuntimeProgramCallRequest = z.infer<typeof RuntimeProgramCallRequestSchema>;\nexport type RuntimeProgramLoadResult = z.infer<typeof RuntimeProgramLoadResultSchema>;\n\nexport const RuntimeProgramDownloadResultSchema = z.discriminatedUnion(\"kind\", [\n z.object({ kind: z.literal(\"native\"), download: DeclarativeNativeDownloadSchema }).strict(),\n z.object({ kind: z.literal(\"text-artifact\"), fileName: z.string().min(1).max(255), mimeType: z.enum([\"application/json\", \"text/plain\", \"text/csv\"]), content: z.string().max(1048576) }).strict(),\n]);\n","import { z } from \"zod\";\nimport { ContractIdentifierSchema } from \"./common\";\n\nexport const PlatformNotificationQuerySchema = z\n .object({ channel: ContractIdentifierSchema })\n .strict();\nexport const PlatformNotificationReadSchema = z\n .object({ readToken: z.string().min(1).max(4096), recordLoaded: z.boolean(), entryIds: z.array(ContractIdentifierSchema).max(100) })\n .strict();\nexport const PlatformNotificationSourceSchema = z.object({ teamId: ContractIdentifierSchema, ontologyId: ContractIdentifierSchema, recordId: ContractIdentifierSchema }).strict();\nexport const PlatformNotificationSourcesQuerySchema = z.object({ channel: ContractIdentifierSchema, sources: z.array(PlatformNotificationSourceSchema).min(1).max(100).optional() }).strict();\nexport const PlatformNotificationSourcesSchema = z.object({\n channel: ContractIdentifierSchema,\n unreadCount: z.number().int().nonnegative().safe(),\n groups: z.array(z.object({ source: PlatformNotificationSourceSchema, unreadCount: z.number().int().nonnegative().safe(), readToken: z.string().min(1).max(4096) }).strict()),\n}).strict();\nexport type PlatformNotificationSource = z.infer<typeof PlatformNotificationSourceSchema>;\nexport const PlatformNotificationSnapshotSchema = z\n .object({\n channel: ContractIdentifierSchema,\n unreadCount: z.number().int().nonnegative().safe(),\n readToken: z.string().min(1).max(4096),\n })\n .strict();\nexport type PlatformNotificationSnapshot = z.infer<\n typeof PlatformNotificationSnapshotSchema\n>;\nexport const platformNotificationRoutes = {\n unread: \"/api/notifications/unread\",\n query: \"/api/notifications/query\",\n sources: \"/api/notifications/sources/query\",\n read: \"/api/notifications/read\",\n} as const;\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,SAAS,SAAS;AA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A,EACT,aAAaA,GAAE,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK;AAAA,EACjD,QAAQA,GAAE,MAAMA,GAAE,OAAO,EAAE,QAAQ,kCAAkC,aAAaA,GAAE,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,GAAG,WAAWA,GAAE,OAAO,EAAE,IAAI,CAAC,EAAE,IAAI,IAAI,EAAE,CAAC,EAAE,OAAO,CAAC;AAC7K,CAAC,EAAE,OAAO;AAEH,IAAM,qCAAqCA,GAC/C,OAAO;AAAA,EACN,SAAS;AAAA,EACT,aAAaA,GAAE,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK;AAAA,EACjD,WAAWA,GAAE,OAAO,EAAE,IAAI,CAAC,EAAE,IAAI,IAAI;AACvC,CAAC,EACA,OAAO;AAIH,IAAM,6BAA6B;AAAA,EACxC,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,SAAS;AAAA,EACT,MAAM;AACR;","names":["z","z","z","z","z","z","z","z","z","z"]}
@@ -2,7 +2,7 @@ import {
2
2
  DECLARATIVE_CONTROL_API_PREFIX,
3
3
  IsoDateTimeSchema,
4
4
  JsonObjectSchema
5
- } from "./chunk-7XA64SXB.mjs";
5
+ } from "./chunk-DCW2YDFC.mjs";
6
6
 
7
7
  // src/contracts/page-stream.ts
8
8
  import { z } from "zod";
@@ -75,4 +75,4 @@ export {
75
75
  pageStreamRoutes,
76
76
  PageStreamControlResultSchema
77
77
  };
78
- //# sourceMappingURL=chunk-B7QU3ZTP.mjs.map
78
+ //# sourceMappingURL=chunk-QESY23FV.mjs.map
@@ -13,7 +13,7 @@ import {
13
13
  RevisionRefSchema,
14
14
  Sha256Schema,
15
15
  TenantScopeSchema
16
- } from "./chunk-7XA64SXB.mjs";
16
+ } from "./chunk-DCW2YDFC.mjs";
17
17
 
18
18
  // src/contracts/artifact.ts
19
19
  import { z } from "zod";
@@ -1077,4 +1077,4 @@ export {
1077
1077
  WorkflowCompletionCommitSchema,
1078
1078
  WorkflowCompletionReceiptSchema
1079
1079
  };
1080
- //# sourceMappingURL=chunk-5J5W6AGD.mjs.map
1080
+ //# sourceMappingURL=chunk-V6QJCBGM.mjs.map
@@ -57,6 +57,12 @@ import {
57
57
  MarkdownDocumentViewSchema,
58
58
  MarkdownDocumentWorkspaceQuerySchema,
59
59
  MarkdownDocumentWorkspaceSchema,
60
+ PlatformNotificationQuerySchema,
61
+ PlatformNotificationReadSchema,
62
+ PlatformNotificationSnapshotSchema,
63
+ PlatformNotificationSourceSchema,
64
+ PlatformNotificationSourcesQuerySchema,
65
+ PlatformNotificationSourcesSchema,
60
66
  PrepareActionProgramRequestSchema,
61
67
  ReadActionProgramRequestSchema,
62
68
  RegisterActionProgramRequestSchema,
@@ -64,8 +70,9 @@ import {
64
70
  RuntimeProgramCallResultSchema,
65
71
  RuntimeProgramDownloadResultSchema,
66
72
  RuntimeProgramLoadRequestSchema,
67
- RuntimeProgramLoadResultSchema
68
- } from "../chunk-KHFW6WLM.mjs";
73
+ RuntimeProgramLoadResultSchema,
74
+ platformNotificationRoutes
75
+ } from "../chunk-JTMTLJYW.mjs";
69
76
  import {
70
77
  ActorRefSchema,
71
78
  AgentRuntimeEventSchema,
@@ -145,7 +152,7 @@ import {
145
152
  WorkflowCompletionCommitSchema,
146
153
  WorkflowCompletionReceiptSchema,
147
154
  WorkflowPublicationSchema
148
- } from "../chunk-5J5W6AGD.mjs";
155
+ } from "../chunk-V6QJCBGM.mjs";
149
156
  import {
150
157
  PAGE_STREAM_MAX_BUFFER_BYTES,
151
158
  PAGE_STREAM_MAX_BUFFER_EVENTS,
@@ -159,7 +166,7 @@ import {
159
166
  PageStreamDescriptorSchema,
160
167
  PageStreamEventSchema,
161
168
  pageStreamRoutes
162
- } from "../chunk-B7QU3ZTP.mjs";
169
+ } from "../chunk-QESY23FV.mjs";
163
170
  import {
164
171
  ACTION_PROGRAM_ABI,
165
172
  AGENT_MODE_CAPABILITIES,
@@ -475,6 +482,7 @@ import {
475
482
  MenuRuntimeBundleSchema,
476
483
  MenuRuntimeInputBindingSchema,
477
484
  MenuSourceInputBindingSchema,
485
+ NavigationBadgeSchema,
478
486
  NavigationGroupNodeSchema,
479
487
  NavigationHeadbarActionSchema,
480
488
  NavigationHeadbarSchema,
@@ -667,7 +675,7 @@ import {
667
675
  resolveAgentSessionCommandTransition,
668
676
  resolveAgentWorkbenchSidebarConfig,
669
677
  visitPageExpression
670
- } from "../chunk-7XA64SXB.mjs";
678
+ } from "../chunk-DCW2YDFC.mjs";
671
679
  import "../chunk-3QS3WKRC.mjs";
672
680
  export {
673
681
  ACTION_PROGRAM_ABI,
@@ -1080,6 +1088,7 @@ export {
1080
1088
  MenuRuntimeBundleSchema,
1081
1089
  MenuRuntimeInputBindingSchema,
1082
1090
  MenuSourceInputBindingSchema,
1091
+ NavigationBadgeSchema,
1083
1092
  NavigationGroupNodeSchema,
1084
1093
  NavigationHeadbarActionSchema,
1085
1094
  NavigationHeadbarSchema,
@@ -1147,6 +1156,12 @@ export {
1147
1156
  PermissionBundleSchema,
1148
1157
  PermissionDefinitionSchema,
1149
1158
  PersistedOntologyBindingSchema,
1159
+ PlatformNotificationQuerySchema,
1160
+ PlatformNotificationReadSchema,
1161
+ PlatformNotificationSnapshotSchema,
1162
+ PlatformNotificationSourceSchema,
1163
+ PlatformNotificationSourcesQuerySchema,
1164
+ PlatformNotificationSourcesSchema,
1150
1165
  PrepareActionProgramRequestSchema,
1151
1166
  ProductAccessDeclarationSchema,
1152
1167
  ProductBodySchema,
@@ -1329,6 +1344,7 @@ export {
1329
1344
  normalizeAgentMode,
1330
1345
  normalizeStudioAgentMode,
1331
1346
  pageStreamRoutes,
1347
+ platformNotificationRoutes,
1332
1348
  resolveAgentSessionCommandTransition,
1333
1349
  resolveAgentWorkbenchSidebarConfig,
1334
1350
  visitPageExpression
package/lib/esm/index.mjs CHANGED
@@ -57,6 +57,12 @@ import {
57
57
  MarkdownDocumentViewSchema,
58
58
  MarkdownDocumentWorkspaceQuerySchema,
59
59
  MarkdownDocumentWorkspaceSchema,
60
+ PlatformNotificationQuerySchema,
61
+ PlatformNotificationReadSchema,
62
+ PlatformNotificationSnapshotSchema,
63
+ PlatformNotificationSourceSchema,
64
+ PlatformNotificationSourcesQuerySchema,
65
+ PlatformNotificationSourcesSchema,
60
66
  PrepareActionProgramRequestSchema,
61
67
  ReadActionProgramRequestSchema,
62
68
  RegisterActionProgramRequestSchema,
@@ -64,11 +70,12 @@ import {
64
70
  RuntimeProgramCallResultSchema,
65
71
  RuntimeProgramDownloadResultSchema,
66
72
  RuntimeProgramLoadRequestSchema,
67
- RuntimeProgramLoadResultSchema
68
- } from "./chunk-KHFW6WLM.mjs";
73
+ RuntimeProgramLoadResultSchema,
74
+ platformNotificationRoutes
75
+ } from "./chunk-JTMTLJYW.mjs";
69
76
  import {
70
77
  canonicalContractSchemas
71
- } from "./chunk-5FTABNL3.mjs";
78
+ } from "./chunk-HADHWAS6.mjs";
72
79
  import {
73
80
  ActorRefSchema,
74
81
  AgentRuntimeEventSchema,
@@ -148,7 +155,7 @@ import {
148
155
  WorkflowCompletionCommitSchema,
149
156
  WorkflowCompletionReceiptSchema,
150
157
  WorkflowPublicationSchema
151
- } from "./chunk-5J5W6AGD.mjs";
158
+ } from "./chunk-V6QJCBGM.mjs";
152
159
  import {
153
160
  APPLICATION_HANDOFF_QUERY_PARAMETER,
154
161
  DEFAULT_CONDUCTOR_OWNER_EMAIL,
@@ -280,7 +287,7 @@ import {
280
287
  validateDomainCommand,
281
288
  validateWorkbenchRuntimeSet,
282
289
  writePageDraftPath
283
- } from "./chunk-DWXKYNBW.mjs";
290
+ } from "./chunk-J5D3M43J.mjs";
284
291
  import {
285
292
  PAGE_STREAM_MAX_BUFFER_BYTES,
286
293
  PAGE_STREAM_MAX_BUFFER_EVENTS,
@@ -294,7 +301,7 @@ import {
294
301
  PageStreamDescriptorSchema,
295
302
  PageStreamEventSchema,
296
303
  pageStreamRoutes
297
- } from "./chunk-B7QU3ZTP.mjs";
304
+ } from "./chunk-QESY23FV.mjs";
298
305
  import {
299
306
  ACTION_PROGRAM_ABI,
300
307
  AGENT_MODE_CAPABILITIES,
@@ -611,6 +618,7 @@ import {
611
618
  MenuRuntimeBundleSchema,
612
619
  MenuRuntimeInputBindingSchema,
613
620
  MenuSourceInputBindingSchema,
621
+ NavigationBadgeSchema,
614
622
  NavigationGroupNodeSchema,
615
623
  NavigationHeadbarActionSchema,
616
624
  NavigationHeadbarSchema,
@@ -810,7 +818,7 @@ import {
810
818
  validateThemeTokensDocument,
811
819
  validateThemeTokensDocumentStructure,
812
820
  visitPageExpression
813
- } from "./chunk-7XA64SXB.mjs";
821
+ } from "./chunk-DCW2YDFC.mjs";
814
822
  import "./chunk-3QS3WKRC.mjs";
815
823
 
816
824
  // src/types/tool.ts
@@ -1266,6 +1274,7 @@ export {
1266
1274
  MenuRuntimeBundleSchema,
1267
1275
  MenuRuntimeInputBindingSchema,
1268
1276
  MenuSourceInputBindingSchema,
1277
+ NavigationBadgeSchema,
1269
1278
  NavigationGroupNodeSchema,
1270
1279
  NavigationHeadbarActionSchema,
1271
1280
  NavigationHeadbarSchema,
@@ -1336,6 +1345,12 @@ export {
1336
1345
  PermissionBundleSchema,
1337
1346
  PermissionDefinitionSchema,
1338
1347
  PersistedOntologyBindingSchema,
1348
+ PlatformNotificationQuerySchema,
1349
+ PlatformNotificationReadSchema,
1350
+ PlatformNotificationSnapshotSchema,
1351
+ PlatformNotificationSourceSchema,
1352
+ PlatformNotificationSourcesQuerySchema,
1353
+ PlatformNotificationSourcesSchema,
1339
1354
  PrepareActionProgramRequestSchema,
1340
1355
  ProductAccessDeclarationSchema,
1341
1356
  ProductBodySchema,
@@ -1613,6 +1628,7 @@ export {
1613
1628
  parseManagedFileReference,
1614
1629
  parseWorkflowColumnBinding,
1615
1630
  permissionAlternativePolicyAllows,
1631
+ platformNotificationRoutes,
1616
1632
  prepareMaterializedModelProjection,
1617
1633
  preparePageExpression,
1618
1634
  preparePagePropertyProjection,
@@ -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":";;;;;;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oB;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"]}
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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and,
130
130
  validateWorkbenchRuntimeSet,
131
131
  writePageDraftPath
132
- } from "../chunk-DWXKYNBW.mjs";
133
- import "../chunk-B7QU3ZTP.mjs";
132
+ } from "../chunk-J5D3M43J.mjs";
133
+ import "../chunk-QESY23FV.mjs";
134
134
  import {
135
135
  MONKEYS_REQUIRED_THEME_TOKEN_PATHS,
136
136
  ThemeTokenValidationError,
@@ -140,7 +140,7 @@ import {
140
140
  resolveThemeTokens,
141
141
  validateThemeTokensDocument,
142
142
  validateThemeTokensDocumentStructure
143
- } from "../chunk-7XA64SXB.mjs";
143
+ } from "../chunk-DCW2YDFC.mjs";
144
144
  import "../chunk-3QS3WKRC.mjs";
145
145
  export {
146
146
  APPLICATION_HANDOFF_QUERY_PARAMETER,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  canonicalContractSchemas
3
- } from "../chunk-5FTABNL3.mjs";
3
+ } from "../chunk-HADHWAS6.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-5J5W6AGD.mjs";
72
+ } from "../chunk-V6QJCBGM.mjs";
73
73
  import {
74
74
  AccessPolicySchema,
75
75
  ActionBindingSchema,
@@ -358,7 +358,7 @@ import {
358
358
  WorkflowParameterTypeSchema,
359
359
  WorkflowTriggerSchema,
360
360
  WorkflowValidationIssueSchema
361
- } from "../chunk-7XA64SXB.mjs";
361
+ } from "../chunk-DCW2YDFC.mjs";
362
362
  import "../chunk-3QS3WKRC.mjs";
363
363
  export {
364
364
  AccessPolicySchema,
@@ -2037,6 +2037,35 @@
2037
2037
  "danger"
2038
2038
  ]
2039
2039
  },
2040
+ "badge": {
2041
+ "type": "object",
2042
+ "properties": {
2043
+ "source": {
2044
+ "type": "string",
2045
+ "const": "platform-notifications"
2046
+ },
2047
+ "channel": {
2048
+ "type": "string",
2049
+ "minLength": 1,
2050
+ "maxLength": 256
2051
+ },
2052
+ "maxValue": {
2053
+ "type": "integer",
2054
+ "minimum": 1,
2055
+ "maximum": 9999
2056
+ },
2057
+ "refreshIntervalMs": {
2058
+ "type": "integer",
2059
+ "minimum": 30000,
2060
+ "maximum": 300000
2061
+ }
2062
+ },
2063
+ "required": [
2064
+ "source",
2065
+ "channel"
2066
+ ],
2067
+ "additionalProperties": false
2068
+ },
2040
2069
  "targetRef": {
2041
2070
  "type": "object",
2042
2071
  "properties": {
@@ -1014,6 +1014,35 @@
1014
1014
  "danger"
1015
1015
  ]
1016
1016
  },
1017
+ "badge": {
1018
+ "type": "object",
1019
+ "properties": {
1020
+ "source": {
1021
+ "type": "string",
1022
+ "const": "platform-notifications"
1023
+ },
1024
+ "channel": {
1025
+ "type": "string",
1026
+ "minLength": 1,
1027
+ "maxLength": 256
1028
+ },
1029
+ "maxValue": {
1030
+ "type": "integer",
1031
+ "minimum": 1,
1032
+ "maximum": 9999
1033
+ },
1034
+ "refreshIntervalMs": {
1035
+ "type": "integer",
1036
+ "minimum": 30000,
1037
+ "maximum": 300000
1038
+ }
1039
+ },
1040
+ "required": [
1041
+ "source",
1042
+ "channel"
1043
+ ],
1044
+ "additionalProperties": false
1045
+ },
1017
1046
  "targetRef": {
1018
1047
  "type": "object",
1019
1048
  "properties": {
@@ -6860,6 +6860,12 @@ export declare const RuntimeDefinitionResponseSchema: z.ZodPipe<z.ZodTransform<u
6860
6860
  default: "default";
6861
6861
  danger: "danger";
6862
6862
  }>>;
6863
+ badge: z.ZodOptional<z.ZodObject<{
6864
+ source: z.ZodLiteral<"platform-notifications">;
6865
+ channel: z.ZodString;
6866
+ maxValue: z.ZodOptional<z.ZodNumber>;
6867
+ refreshIntervalMs: z.ZodOptional<z.ZodNumber>;
6868
+ }, z.core.$strict>>;
6863
6869
  targetRef: z.ZodObject<{
6864
6870
  kind: z.ZodString;
6865
6871
  id: z.ZodString;