@nekro-nxt/contracts 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +6 -2
- package/dist/index.mjs +4694 -0
- package/dist/index.mjs.map +1 -0
- package/lib/types/community.d.ts +583 -0
- package/lib/types/community.d.ts.map +1 -0
- package/lib/types/config-schema.d.ts +133 -0
- package/lib/types/config-schema.d.ts.map +1 -0
- package/lib/types/domain.d.ts +291 -0
- package/lib/types/domain.d.ts.map +1 -0
- package/lib/types/extension-capabilities.d.ts +277 -0
- package/lib/types/extension-capabilities.d.ts.map +1 -0
- package/lib/types/extension-ui.d.ts +789 -0
- package/lib/types/extension-ui.d.ts.map +1 -0
- package/lib/types/host-api.d.ts +9495 -0
- package/lib/types/host-api.d.ts.map +1 -0
- package/lib/types/index.d.ts +9 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/management-api.d.ts +108 -0
- package/lib/types/management-api.d.ts.map +1 -0
- package/lib/types/runtime-compatibility.d.ts +72 -0
- package/lib/types/runtime-compatibility.d.ts.map +1 -0
- package/package.json +40 -3
- package/src/community.ts +268 -0
- package/src/config-schema.ts +351 -0
- package/src/domain.ts +365 -0
- package/src/extension-capabilities.ts +473 -0
- package/src/extension-ui.ts +433 -0
- package/src/host-api.ts +3468 -0
- package/src/index.ts +8 -0
- package/src/management-api.ts +168 -0
- package/src/runtime-compatibility.ts +28 -0
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type JsonValue } from './domain.js';
|
|
3
|
+
/**
|
|
4
|
+
* The single configuration format: serialized Schemastery (`Schema.toJSON()`), restricted to the subset the
|
|
5
|
+
* product form can render and the Host can validate without executing Schema callbacks.
|
|
6
|
+
*
|
|
7
|
+
* Supported nodes: object (dict), string, number, natural, percent, boolean, const, union of consts (enum) and
|
|
8
|
+
* array of primitives. `meta.role: 'secret'` marks a write-only credential. NekroNXT reads three extra meta keys:
|
|
9
|
+
* `hint` (help text), `advanced` (collapsed by default) and `visibleWhen` (show only when a sibling equals a value).
|
|
10
|
+
*/
|
|
11
|
+
export declare const CONFIG_SCHEMA_MAX_BYTES: number;
|
|
12
|
+
export declare const ConfigSchemaMetaSchema: z.ZodObject<{
|
|
13
|
+
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
14
|
+
hint: z.ZodOptional<z.ZodString>;
|
|
15
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
+
default: z.ZodOptional<z.ZodJSONSchema>;
|
|
17
|
+
role: z.ZodOptional<z.ZodString>;
|
|
18
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
19
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
step: z.ZodOptional<z.ZodNumber>;
|
|
22
|
+
pattern: z.ZodOptional<z.ZodObject<{
|
|
23
|
+
source: z.ZodString;
|
|
24
|
+
flags: z.ZodOptional<z.ZodString>;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
advanced: z.ZodOptional<z.ZodBoolean>;
|
|
27
|
+
group: z.ZodOptional<z.ZodString>;
|
|
28
|
+
visibleWhen: z.ZodOptional<z.ZodObject<{
|
|
29
|
+
key: z.ZodString;
|
|
30
|
+
equals: z.ZodJSONSchema;
|
|
31
|
+
}, z.core.$strict>>;
|
|
32
|
+
}, z.core.$loose>;
|
|
33
|
+
export type ConfigSchemaMeta = z.output<typeof ConfigSchemaMetaSchema>;
|
|
34
|
+
export type ConfigSchemaNode = {
|
|
35
|
+
readonly type: 'object';
|
|
36
|
+
readonly dict: Readonly<Record<string, ConfigSchemaNode>>;
|
|
37
|
+
readonly meta?: ConfigSchemaMeta | undefined;
|
|
38
|
+
} | {
|
|
39
|
+
readonly type: 'string' | 'number' | 'natural' | 'percent' | 'boolean';
|
|
40
|
+
readonly meta?: ConfigSchemaMeta | undefined;
|
|
41
|
+
} | {
|
|
42
|
+
readonly type: 'const';
|
|
43
|
+
readonly value: JsonValue;
|
|
44
|
+
readonly meta?: ConfigSchemaMeta | undefined;
|
|
45
|
+
} | {
|
|
46
|
+
readonly type: 'union';
|
|
47
|
+
readonly list: readonly ConfigSchemaNode[];
|
|
48
|
+
readonly meta?: ConfigSchemaMeta | undefined;
|
|
49
|
+
} | {
|
|
50
|
+
readonly type: 'array';
|
|
51
|
+
readonly inner: ConfigSchemaNode;
|
|
52
|
+
readonly meta?: ConfigSchemaMeta | undefined;
|
|
53
|
+
};
|
|
54
|
+
export declare const ConfigSchemaNodeSchema: z.ZodType<ConfigSchemaNode>;
|
|
55
|
+
/** A whole configuration document: always an object at the root. */
|
|
56
|
+
export declare const ConfigSchemaDocumentSchema: z.ZodType<ConfigSchemaNode, unknown, z.core.$ZodTypeInternals<ConfigSchemaNode, unknown>> & z.ZodType<{
|
|
57
|
+
readonly type: "object";
|
|
58
|
+
readonly dict: Readonly<Record<string, ConfigSchemaNode>>;
|
|
59
|
+
readonly meta?: ConfigSchemaMeta | undefined;
|
|
60
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
61
|
+
readonly type: "object";
|
|
62
|
+
readonly dict: Readonly<Record<string, ConfigSchemaNode>>;
|
|
63
|
+
readonly meta?: ConfigSchemaMeta | undefined;
|
|
64
|
+
}, unknown>>;
|
|
65
|
+
export type ConfigSchemaDocument = Extract<ConfigSchemaNode, {
|
|
66
|
+
readonly type: 'object';
|
|
67
|
+
}>;
|
|
68
|
+
export declare const EMPTY_CONFIG_SCHEMA: ConfigSchemaDocument;
|
|
69
|
+
export type ConfigFieldKind = 'string' | 'number' | 'boolean' | 'enum' | 'secret' | 'array' | 'object';
|
|
70
|
+
export interface ConfigField {
|
|
71
|
+
readonly key: string;
|
|
72
|
+
readonly kind: ConfigFieldKind;
|
|
73
|
+
readonly title: string;
|
|
74
|
+
readonly hint?: string;
|
|
75
|
+
readonly required: boolean;
|
|
76
|
+
readonly default?: JsonValue;
|
|
77
|
+
readonly advanced: boolean;
|
|
78
|
+
readonly group?: string;
|
|
79
|
+
readonly options?: readonly {
|
|
80
|
+
readonly value: JsonValue;
|
|
81
|
+
readonly label: string;
|
|
82
|
+
}[];
|
|
83
|
+
readonly node: ConfigSchemaNode;
|
|
84
|
+
}
|
|
85
|
+
export declare const configDescription: (meta: ConfigSchemaMeta | undefined) => string | undefined;
|
|
86
|
+
export declare const configFieldKind: (node: ConfigSchemaNode) => ConfigFieldKind;
|
|
87
|
+
export declare const configFields: (document: ConfigSchemaDocument) => readonly ConfigField[];
|
|
88
|
+
export declare const configSecretKeys: (document: ConfigSchemaDocument) => readonly string[];
|
|
89
|
+
export interface ConfigValidationIssue {
|
|
90
|
+
readonly path: string;
|
|
91
|
+
readonly message: string;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Validates a configuration value against a document and fills declared defaults. Secret fields are not part of the
|
|
95
|
+
* stored value; callers pass them through the credential store instead.
|
|
96
|
+
*/
|
|
97
|
+
export declare const validateConfigValue: (document: ConfigSchemaDocument, value: JsonValue | undefined, options?: {
|
|
98
|
+
readonly skipKeys?: readonly string[];
|
|
99
|
+
}) => {
|
|
100
|
+
readonly value: Readonly<Record<string, JsonValue>>;
|
|
101
|
+
readonly issues: readonly ConfigValidationIssue[];
|
|
102
|
+
};
|
|
103
|
+
/** Throws the first validation issue as a user-readable error. */
|
|
104
|
+
export declare const parseConfigValue: (document: ConfigSchemaDocument, value: JsonValue | undefined, options?: {
|
|
105
|
+
readonly skipKeys?: readonly string[];
|
|
106
|
+
}) => Readonly<Record<string, JsonValue>>;
|
|
107
|
+
interface FieldOptions<Value extends JsonValue> {
|
|
108
|
+
readonly hint?: string;
|
|
109
|
+
readonly default?: Value;
|
|
110
|
+
readonly required?: boolean;
|
|
111
|
+
readonly advanced?: boolean;
|
|
112
|
+
readonly group?: string;
|
|
113
|
+
}
|
|
114
|
+
/** Builds serialized Schemastery documents without depending on the Schemastery runtime. */
|
|
115
|
+
export declare const configSchema: {
|
|
116
|
+
readonly object: (dict: Readonly<Record<string, ConfigSchemaNode>>) => ConfigSchemaDocument;
|
|
117
|
+
readonly string: (title: string, options?: FieldOptions<string> & {
|
|
118
|
+
readonly multiline?: boolean;
|
|
119
|
+
}) => ConfigSchemaNode;
|
|
120
|
+
readonly secret: (title: string, options?: Omit<FieldOptions<string>, "default">) => ConfigSchemaNode;
|
|
121
|
+
readonly number: (title: string, options?: FieldOptions<number> & {
|
|
122
|
+
readonly min?: number;
|
|
123
|
+
readonly max?: number;
|
|
124
|
+
readonly integer?: boolean;
|
|
125
|
+
}) => ConfigSchemaNode;
|
|
126
|
+
readonly boolean: (title: string, options?: FieldOptions<boolean>) => ConfigSchemaNode;
|
|
127
|
+
readonly enum: (title: string, choices: readonly {
|
|
128
|
+
readonly value: string | number;
|
|
129
|
+
readonly label: string;
|
|
130
|
+
}[], options?: FieldOptions<string | number>) => ConfigSchemaNode;
|
|
131
|
+
};
|
|
132
|
+
export {};
|
|
133
|
+
//# sourceMappingURL=config-schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-schema.d.ts","sourceRoot":"","sources":["../../src/config-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,aAAa,CAAA;AAE7D;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB,QAAY,CAAA;AAIhD,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;iBAmBzB,CAAA;AAEV,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAEtE,MAAM,MAAM,gBAAgB,GACxB;IACE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAA;IACvB,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC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,YACJ,YAAY,CAAC,MAAM,CAAC,GAAG;QAAE,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAA;KAAE,KAC3G,gBAAgB;8BAQF,MAAM,YAAW,YAAY,CAAC,OAAO,CAAC,KAAQ,gBAAgB;2BAKtE,MAAM,WACJ,SAAS;QAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;QAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,YACtE,YAAY,CAAC,MAAM,GAAG,MAAM,CAAC,KACrC,gBAAgB;CAKX,CAAA"}
|
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const AgentIdSchema: z.core.$ZodBranded<z.ZodString, "AgentId", "out">;
|
|
3
|
+
export declare const AgentRevisionIdSchema: z.core.$ZodBranded<z.ZodString, "AgentRevisionId", "out">;
|
|
4
|
+
export declare const ConnectionIdSchema: z.core.$ZodBranded<z.ZodString, "ConnectionId", "out">;
|
|
5
|
+
export declare const ConnectionEventIdSchema: z.core.$ZodBranded<z.ZodString, "ConnectionEventId", "out">;
|
|
6
|
+
export declare const ChannelIdSchema: z.core.$ZodBranded<z.ZodString, "ChannelId", "out">;
|
|
7
|
+
export declare const ChannelEventIdSchema: z.core.$ZodBranded<z.ZodString, "ChannelEventId", "out">;
|
|
8
|
+
export declare const PlatformIdentityIdSchema: z.core.$ZodBranded<z.ZodString, "PlatformIdentityId", "out">;
|
|
9
|
+
export declare const ChannelMemberIdSchema: z.core.$ZodBranded<z.ZodString, "ChannelMemberId", "out">;
|
|
10
|
+
export declare const AdmissionIdSchema: z.core.$ZodBranded<z.ZodString, "AdmissionId", "out">;
|
|
11
|
+
export declare const OutboundIntentIdSchema: z.core.$ZodBranded<z.ZodString, "OutboundIntentId", "out">;
|
|
12
|
+
export declare const LogicalMessageIdSchema: z.core.$ZodBranded<z.ZodString, "LogicalMessageId", "out">;
|
|
13
|
+
export declare const PhysicalDeliveryIdSchema: z.core.$ZodBranded<z.ZodString, "PhysicalDeliveryId", "out">;
|
|
14
|
+
export declare const AssetIdSchema: z.core.$ZodBranded<z.ZodString, "AssetId", "out">;
|
|
15
|
+
export declare const EpisodeIdSchema: z.core.$ZodBranded<z.ZodString, "EpisodeId", "out">;
|
|
16
|
+
export declare const EpisodeHandoffIdSchema: z.core.$ZodBranded<z.ZodString, "EpisodeHandoffId", "out">;
|
|
17
|
+
export declare const ExtensionIdSchema: z.core.$ZodBranded<z.ZodString, "ExtensionId", "out">;
|
|
18
|
+
export declare const ExtensionRevisionIdSchema: z.core.$ZodBranded<z.ZodString, "ExtensionRevisionId", "out">;
|
|
19
|
+
export declare const DshPluginPackageIdSchema: z.core.$ZodBranded<z.ZodString, "DshPluginPackageId", "out">;
|
|
20
|
+
export declare const DshPluginEntryIdSchema: z.core.$ZodBranded<z.ZodString, "DshPluginEntryId", "out">;
|
|
21
|
+
export declare const HostUiPageInstanceIdSchema: z.core.$ZodBranded<z.ZodString, "HostUiPageInstanceId", "out">;
|
|
22
|
+
export declare const AuthoringTaskIdSchema: z.core.$ZodBranded<z.ZodString, "AuthoringTaskId", "out">;
|
|
23
|
+
export declare const AuthoringAttemptIdSchema: z.core.$ZodBranded<z.ZodString, "AuthoringAttemptId", "out">;
|
|
24
|
+
export type AgentId = z.infer<typeof AgentIdSchema>;
|
|
25
|
+
export type AgentRevisionId = z.infer<typeof AgentRevisionIdSchema>;
|
|
26
|
+
export type ConnectionId = z.infer<typeof ConnectionIdSchema>;
|
|
27
|
+
export type ConnectionEventId = z.infer<typeof ConnectionEventIdSchema>;
|
|
28
|
+
export type ChannelId = z.infer<typeof ChannelIdSchema>;
|
|
29
|
+
export type ChannelEventId = z.infer<typeof ChannelEventIdSchema>;
|
|
30
|
+
export type PlatformIdentityId = z.infer<typeof PlatformIdentityIdSchema>;
|
|
31
|
+
export type ChannelMemberId = z.infer<typeof ChannelMemberIdSchema>;
|
|
32
|
+
export type AdmissionId = z.infer<typeof AdmissionIdSchema>;
|
|
33
|
+
export type OutboundIntentId = z.infer<typeof OutboundIntentIdSchema>;
|
|
34
|
+
export type LogicalMessageId = z.infer<typeof LogicalMessageIdSchema>;
|
|
35
|
+
export type PhysicalDeliveryId = z.infer<typeof PhysicalDeliveryIdSchema>;
|
|
36
|
+
export type AssetId = z.infer<typeof AssetIdSchema>;
|
|
37
|
+
export type EpisodeId = z.infer<typeof EpisodeIdSchema>;
|
|
38
|
+
export type EpisodeHandoffId = z.infer<typeof EpisodeHandoffIdSchema>;
|
|
39
|
+
export type ExtensionId = z.infer<typeof ExtensionIdSchema>;
|
|
40
|
+
export type ExtensionRevisionId = z.infer<typeof ExtensionRevisionIdSchema>;
|
|
41
|
+
export type DshPluginPackageId = z.infer<typeof DshPluginPackageIdSchema>;
|
|
42
|
+
export type DshPluginEntryId = z.infer<typeof DshPluginEntryIdSchema>;
|
|
43
|
+
export type HostUiPageInstanceId = z.infer<typeof HostUiPageInstanceIdSchema>;
|
|
44
|
+
export type AuthoringTaskId = z.infer<typeof AuthoringTaskIdSchema>;
|
|
45
|
+
export type AuthoringAttemptId = z.infer<typeof AuthoringAttemptIdSchema>;
|
|
46
|
+
export declare const AdapterActivityKeySchema: z.ZodString;
|
|
47
|
+
export type AdapterActivityKey = z.infer<typeof AdapterActivityKeySchema>;
|
|
48
|
+
export declare const PromptSegmentSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
49
|
+
type: z.ZodLiteral<"text">;
|
|
50
|
+
text: z.ZodString;
|
|
51
|
+
}, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
52
|
+
type: z.ZodLiteral<"reference">;
|
|
53
|
+
kind: z.ZodLiteral<"platform-user">;
|
|
54
|
+
targetId: z.core.$ZodBranded<z.ZodString, "PlatformIdentityId", "out">;
|
|
55
|
+
labelSnapshot: z.ZodString;
|
|
56
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
57
|
+
type: z.ZodLiteral<"reference">;
|
|
58
|
+
kind: z.ZodLiteral<"channel">;
|
|
59
|
+
targetId: z.core.$ZodBranded<z.ZodString, "ChannelId", "out">;
|
|
60
|
+
labelSnapshot: z.ZodString;
|
|
61
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
62
|
+
type: z.ZodLiteral<"reference">;
|
|
63
|
+
kind: z.ZodLiteral<"extension">;
|
|
64
|
+
targetId: z.core.$ZodBranded<z.ZodString, "ExtensionId", "out">;
|
|
65
|
+
labelSnapshot: z.ZodString;
|
|
66
|
+
}, z.core.$strict>], "kind">]>;
|
|
67
|
+
export declare const PROMPT_DOCUMENT_MAX_REFERENCES = 128;
|
|
68
|
+
export declare const PROMPT_DOCUMENT_MAX_PLAIN_TEXT_LENGTH: number;
|
|
69
|
+
export declare const PromptDocumentV1Schema: z.ZodObject<{
|
|
70
|
+
version: z.ZodLiteral<1>;
|
|
71
|
+
segments: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
72
|
+
type: z.ZodLiteral<"text">;
|
|
73
|
+
text: z.ZodString;
|
|
74
|
+
}, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
75
|
+
type: z.ZodLiteral<"reference">;
|
|
76
|
+
kind: z.ZodLiteral<"platform-user">;
|
|
77
|
+
targetId: z.core.$ZodBranded<z.ZodString, "PlatformIdentityId", "out">;
|
|
78
|
+
labelSnapshot: z.ZodString;
|
|
79
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
80
|
+
type: z.ZodLiteral<"reference">;
|
|
81
|
+
kind: z.ZodLiteral<"channel">;
|
|
82
|
+
targetId: z.core.$ZodBranded<z.ZodString, "ChannelId", "out">;
|
|
83
|
+
labelSnapshot: z.ZodString;
|
|
84
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
85
|
+
type: z.ZodLiteral<"reference">;
|
|
86
|
+
kind: z.ZodLiteral<"extension">;
|
|
87
|
+
targetId: z.core.$ZodBranded<z.ZodString, "ExtensionId", "out">;
|
|
88
|
+
labelSnapshot: z.ZodString;
|
|
89
|
+
}, z.core.$strict>], "kind">]>>;
|
|
90
|
+
}, z.core.$strict>;
|
|
91
|
+
export type PromptSegment = z.output<typeof PromptSegmentSchema>;
|
|
92
|
+
export type PromptDocumentV1 = z.output<typeof PromptDocumentV1Schema>;
|
|
93
|
+
export declare const promptDocumentFromText: (text: string) => PromptDocumentV1;
|
|
94
|
+
export declare const promptDocumentPlainText: (document: PromptDocumentV1) => string;
|
|
95
|
+
export declare const normalizePromptDocument: (input: unknown) => PromptDocumentV1;
|
|
96
|
+
export type JsonValue = null | boolean | number | string | JsonValue[] | {
|
|
97
|
+
readonly [key: string]: JsonValue;
|
|
98
|
+
};
|
|
99
|
+
export declare const JsonValueSchema: z.ZodJSONSchema;
|
|
100
|
+
export declare function parseJsonValue(input: unknown): JsonValue;
|
|
101
|
+
/** Package identity and source for one DSH extension visible in the current Host. */
|
|
102
|
+
export interface DshPluginCatalogEntry {
|
|
103
|
+
readonly packageName: string;
|
|
104
|
+
readonly packageVersion: string;
|
|
105
|
+
readonly origin: 'builtin' | 'profile' | 'dynamic' | 'installed';
|
|
106
|
+
readonly settingsNamespaces: readonly string[];
|
|
107
|
+
readonly loadError?: {
|
|
108
|
+
readonly code: string;
|
|
109
|
+
readonly message: string;
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
export type DshPluginInstallSource = 'registry' | 'tarball' | 'imported';
|
|
113
|
+
export type DshPluginActivationScope = 'host' | 'agent';
|
|
114
|
+
export interface DshPluginPackageRecord {
|
|
115
|
+
readonly id: DshPluginPackageId;
|
|
116
|
+
readonly packageName: string;
|
|
117
|
+
readonly packageVersion: string;
|
|
118
|
+
readonly source: DshPluginInstallSource;
|
|
119
|
+
readonly packageDigest: string;
|
|
120
|
+
readonly integrity?: string;
|
|
121
|
+
readonly lockfileDigest: string;
|
|
122
|
+
readonly manifest: JsonValue;
|
|
123
|
+
readonly approvedBuilds: readonly string[];
|
|
124
|
+
readonly installedAt: number;
|
|
125
|
+
}
|
|
126
|
+
export interface DshPluginEntryRecord {
|
|
127
|
+
readonly id: DshPluginEntryId;
|
|
128
|
+
readonly packageId: DshPluginPackageId;
|
|
129
|
+
readonly entryKey: string;
|
|
130
|
+
readonly moduleName: string;
|
|
131
|
+
readonly suggestedScope: DshPluginActivationScope;
|
|
132
|
+
readonly selectedScope?: DshPluginActivationScope;
|
|
133
|
+
readonly config: JsonValue;
|
|
134
|
+
readonly createdAt: number;
|
|
135
|
+
}
|
|
136
|
+
export interface DshPluginActivationRecord {
|
|
137
|
+
readonly entryId: DshPluginEntryId;
|
|
138
|
+
readonly targetKey: string;
|
|
139
|
+
readonly target: DshPluginActivationScope;
|
|
140
|
+
readonly agentId?: AgentId;
|
|
141
|
+
readonly activatedAt: number;
|
|
142
|
+
}
|
|
143
|
+
export interface DshPluginDiagnosticRecord {
|
|
144
|
+
readonly entryId: DshPluginEntryId;
|
|
145
|
+
readonly targetKey: string;
|
|
146
|
+
readonly status: 'active' | 'load-failed' | 'restore-failed' | 'dispose-failed';
|
|
147
|
+
readonly phase: 'import' | 'apply' | 'update' | 'dispose' | 'restore';
|
|
148
|
+
readonly message?: string;
|
|
149
|
+
readonly observedAt: number;
|
|
150
|
+
}
|
|
151
|
+
export interface DshSettingsNamespaceView {
|
|
152
|
+
readonly ns: string;
|
|
153
|
+
readonly schema: unknown;
|
|
154
|
+
readonly resolved: unknown;
|
|
155
|
+
readonly base?: unknown;
|
|
156
|
+
readonly user?: unknown;
|
|
157
|
+
readonly applies: 'live' | 'restart';
|
|
158
|
+
readonly secrets: readonly {
|
|
159
|
+
readonly path: readonly string[];
|
|
160
|
+
readonly set: boolean;
|
|
161
|
+
}[];
|
|
162
|
+
readonly revision: number;
|
|
163
|
+
readonly writable: boolean;
|
|
164
|
+
readonly owner?: {
|
|
165
|
+
readonly packageName: string;
|
|
166
|
+
readonly packageVersion: string;
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
export type DshSettingsPathOperation = {
|
|
170
|
+
readonly op: 'set';
|
|
171
|
+
readonly path: readonly string[];
|
|
172
|
+
readonly value: unknown;
|
|
173
|
+
} | {
|
|
174
|
+
readonly op: 'unset';
|
|
175
|
+
readonly path: readonly string[];
|
|
176
|
+
};
|
|
177
|
+
export interface DshSettingsMutationRequest {
|
|
178
|
+
readonly expectedRevision: number;
|
|
179
|
+
readonly ops: readonly DshSettingsPathOperation[];
|
|
180
|
+
}
|
|
181
|
+
export interface DshCredentialView {
|
|
182
|
+
readonly configured: boolean;
|
|
183
|
+
readonly source?: string;
|
|
184
|
+
readonly writable: boolean;
|
|
185
|
+
}
|
|
186
|
+
export declare const RICH_EXTENSION_MAX_BYTES: number;
|
|
187
|
+
export declare const RichExtensionSchema: z.ZodJSONSchema;
|
|
188
|
+
export declare const RichTargetUrlSchema: z.ZodURL;
|
|
189
|
+
export declare const MessagePartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
190
|
+
type: z.ZodLiteral<"text">;
|
|
191
|
+
text: z.ZodString;
|
|
192
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
193
|
+
type: z.ZodLiteral<"mention">;
|
|
194
|
+
memberId: z.core.$ZodBranded<z.ZodString, "ChannelMemberId", "out">;
|
|
195
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
196
|
+
type: z.ZodLiteral<"image">;
|
|
197
|
+
assetId: z.core.$ZodBranded<z.ZodString, "AssetId", "out">;
|
|
198
|
+
alt: z.ZodOptional<z.ZodString>;
|
|
199
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
200
|
+
type: z.ZodLiteral<"file">;
|
|
201
|
+
assetId: z.core.$ZodBranded<z.ZodString, "AssetId", "out">;
|
|
202
|
+
name: z.ZodOptional<z.ZodString>;
|
|
203
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
204
|
+
type: z.ZodLiteral<"audio">;
|
|
205
|
+
assetId: z.core.$ZodBranded<z.ZodString, "AssetId", "out">;
|
|
206
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
207
|
+
type: z.ZodLiteral<"quote">;
|
|
208
|
+
messageId: z.core.$ZodBranded<z.ZodString, "LogicalMessageId", "out">;
|
|
209
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
210
|
+
type: z.ZodLiteral<"rich">;
|
|
211
|
+
adapterKey: z.ZodString;
|
|
212
|
+
kind: z.ZodString;
|
|
213
|
+
summary: z.ZodString;
|
|
214
|
+
title: z.ZodOptional<z.ZodString>;
|
|
215
|
+
source: z.ZodOptional<z.ZodString>;
|
|
216
|
+
targetUrl: z.ZodOptional<z.ZodURL>;
|
|
217
|
+
previewAssetId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "AssetId", "out">>;
|
|
218
|
+
extension: z.ZodOptional<z.ZodJSONSchema>;
|
|
219
|
+
}, z.core.$strict>], "type">;
|
|
220
|
+
export type MessagePart = z.infer<typeof MessagePartSchema>;
|
|
221
|
+
export declare const MessagePartsSchema: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
222
|
+
type: z.ZodLiteral<"text">;
|
|
223
|
+
text: z.ZodString;
|
|
224
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
225
|
+
type: z.ZodLiteral<"mention">;
|
|
226
|
+
memberId: z.core.$ZodBranded<z.ZodString, "ChannelMemberId", "out">;
|
|
227
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
228
|
+
type: z.ZodLiteral<"image">;
|
|
229
|
+
assetId: z.core.$ZodBranded<z.ZodString, "AssetId", "out">;
|
|
230
|
+
alt: z.ZodOptional<z.ZodString>;
|
|
231
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
232
|
+
type: z.ZodLiteral<"file">;
|
|
233
|
+
assetId: z.core.$ZodBranded<z.ZodString, "AssetId", "out">;
|
|
234
|
+
name: z.ZodOptional<z.ZodString>;
|
|
235
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
236
|
+
type: z.ZodLiteral<"audio">;
|
|
237
|
+
assetId: z.core.$ZodBranded<z.ZodString, "AssetId", "out">;
|
|
238
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
239
|
+
type: z.ZodLiteral<"quote">;
|
|
240
|
+
messageId: z.core.$ZodBranded<z.ZodString, "LogicalMessageId", "out">;
|
|
241
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
242
|
+
type: z.ZodLiteral<"rich">;
|
|
243
|
+
adapterKey: z.ZodString;
|
|
244
|
+
kind: z.ZodString;
|
|
245
|
+
summary: z.ZodString;
|
|
246
|
+
title: z.ZodOptional<z.ZodString>;
|
|
247
|
+
source: z.ZodOptional<z.ZodString>;
|
|
248
|
+
targetUrl: z.ZodOptional<z.ZodURL>;
|
|
249
|
+
previewAssetId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "AssetId", "out">>;
|
|
250
|
+
extension: z.ZodOptional<z.ZodJSONSchema>;
|
|
251
|
+
}, z.core.$strict>], "type">>;
|
|
252
|
+
export declare const NonEmptyMessagePartsSchema: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
253
|
+
type: z.ZodLiteral<"text">;
|
|
254
|
+
text: z.ZodString;
|
|
255
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
256
|
+
type: z.ZodLiteral<"mention">;
|
|
257
|
+
memberId: z.core.$ZodBranded<z.ZodString, "ChannelMemberId", "out">;
|
|
258
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
259
|
+
type: z.ZodLiteral<"image">;
|
|
260
|
+
assetId: z.core.$ZodBranded<z.ZodString, "AssetId", "out">;
|
|
261
|
+
alt: z.ZodOptional<z.ZodString>;
|
|
262
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
263
|
+
type: z.ZodLiteral<"file">;
|
|
264
|
+
assetId: z.core.$ZodBranded<z.ZodString, "AssetId", "out">;
|
|
265
|
+
name: z.ZodOptional<z.ZodString>;
|
|
266
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
267
|
+
type: z.ZodLiteral<"audio">;
|
|
268
|
+
assetId: z.core.$ZodBranded<z.ZodString, "AssetId", "out">;
|
|
269
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
270
|
+
type: z.ZodLiteral<"quote">;
|
|
271
|
+
messageId: z.core.$ZodBranded<z.ZodString, "LogicalMessageId", "out">;
|
|
272
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
273
|
+
type: z.ZodLiteral<"rich">;
|
|
274
|
+
adapterKey: z.ZodString;
|
|
275
|
+
kind: z.ZodString;
|
|
276
|
+
summary: z.ZodString;
|
|
277
|
+
title: z.ZodOptional<z.ZodString>;
|
|
278
|
+
source: z.ZodOptional<z.ZodString>;
|
|
279
|
+
targetUrl: z.ZodOptional<z.ZodURL>;
|
|
280
|
+
previewAssetId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "AssetId", "out">>;
|
|
281
|
+
extension: z.ZodOptional<z.ZodJSONSchema>;
|
|
282
|
+
}, z.core.$strict>], "type">>;
|
|
283
|
+
export declare function parseMessageParts(input: unknown): MessagePart[];
|
|
284
|
+
export declare const messagePartAssetIds: (part: MessagePart) => readonly AssetId[];
|
|
285
|
+
export declare const messagePartAssetId: (part: MessagePart) => AssetId | undefined;
|
|
286
|
+
/** Flatten a rich part for search and model context. */
|
|
287
|
+
export declare const richPartContextText: (part: Extract<MessagePart, {
|
|
288
|
+
type: "rich";
|
|
289
|
+
}>) => string;
|
|
290
|
+
export declare const messagePartsSearchText: (parts: readonly MessagePart[]) => string;
|
|
291
|
+
//# sourceMappingURL=domain.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domain.d.ts","sourceRoot":"","sources":["../../src/domain.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAQvB,eAAO,MAAM,aAAa,mDAA8B,CAAA;AACxD,eAAO,MAAM,qBAAqB,2DAAuC,CAA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