@deepseek-ai/dsh-typert-registry 0.2.2-alpha.3 → 0.2.2-rc.2

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/src/types.ts ADDED
@@ -0,0 +1,118 @@
1
+ /**
2
+ * Pure generated-artifact and runtime-registry types. The registry stores Zod
3
+ * schemas separately from generated package reflection metadata.
4
+ * @module @deepseek-ai/dsh-typert-registry/types
5
+ */
6
+
7
+ import type { z } from 'zod'
8
+ import type { InvocationDescriptor } from '@deepseek-ai/dsh-typert-protocol'
9
+
10
+ /** Independently compiled side that produced a contribution. */
11
+ export type TypertFace = 'host' | 'client'
12
+
13
+ /** Structured JSDoc tag retained by generated runtime metadata. */
14
+ export interface TypertDocTag {
15
+ readonly name: string
16
+ readonly argument?: string
17
+ readonly comment?: string
18
+ readonly text: string
19
+ }
20
+
21
+ /** Source documentation retained on reflected package elements. */
22
+ export interface TypertDocumentation {
23
+ readonly description?: string
24
+ readonly summary?: string
25
+ readonly tags: readonly TypertDocTag[]
26
+ readonly jsDoc?: string
27
+ }
28
+
29
+ /** One generated public member signature. */
30
+ export interface TypertMemberModel {
31
+ readonly kind: 'property' | 'method' | 'getter' | 'setter' | 'call' | 'construct' | 'index'
32
+ readonly name: string
33
+ readonly signature: string
34
+ readonly summary?: string
35
+ readonly jsDoc?: string
36
+ }
37
+
38
+ /** One named type declaration referenced by a reflected business surface. */
39
+ export interface TypertTypeModel {
40
+ readonly name: string
41
+ readonly declaration: string
42
+ }
43
+
44
+ /** Runtime reflection metadata for one Cordis service. */
45
+ export interface TypertServiceModel extends TypertDocumentation {
46
+ readonly key: string
47
+ readonly exportName: string
48
+ readonly members: readonly TypertMemberModel[]
49
+ readonly types: readonly TypertTypeModel[]
50
+ }
51
+
52
+ /** Runtime reflection metadata for one Cordis event. */
53
+ export interface TypertEventModel extends TypertDocumentation {
54
+ readonly name: string
55
+ readonly mode?: string
56
+ readonly signature: string
57
+ }
58
+
59
+ /** Runtime reflection metadata for one explicitly exported reference object. */
60
+ export interface TypertObjectModel extends TypertDocumentation {
61
+ readonly name: string
62
+ readonly exportName: string
63
+ readonly members: readonly TypertMemberModel[]
64
+ readonly types: readonly TypertTypeModel[]
65
+ }
66
+
67
+ /** Generated business reflection for one package on one face. */
68
+ export interface TypertPackageModel {
69
+ readonly services: readonly TypertServiceModel[]
70
+ readonly events: readonly TypertEventModel[]
71
+ readonly objects: readonly TypertObjectModel[]
72
+ }
73
+
74
+ /** One generated Zod schema factory. */
75
+ export interface TypertSchemaFactory {
76
+ readonly name: string
77
+ /** Materialize and return the process-realm schema on first use. */
78
+ readonly create: () => z.ZodType
79
+ }
80
+
81
+ /** One generated package contribution registered and withdrawn atomically. */
82
+ export interface TypertContribution {
83
+ readonly package: string
84
+ readonly face: TypertFace
85
+ readonly schemas: readonly TypertSchemaFactory[]
86
+ readonly model: TypertPackageModel
87
+ /** Host invocation definitions, empty when the package exports no Remote methods. */
88
+ readonly invocations: readonly InvocationDescriptor[]
89
+ }
90
+
91
+ /** A live schema plus its contribution identity. */
92
+ export interface TypertSchemaRecord {
93
+ readonly name: string
94
+ readonly schema: z.ZodType
95
+ readonly package: string
96
+ readonly face: TypertFace
97
+ readonly key: string
98
+ }
99
+
100
+ /** A live generated package model plus its stable identity. */
101
+ export interface TypertPackageRecord {
102
+ readonly package: string
103
+ readonly face: TypertFace
104
+ readonly key: string
105
+ readonly model: TypertPackageModel
106
+ }
107
+
108
+ /** Filter for schema enumeration. */
109
+ export interface TypertSchemaFilter {
110
+ readonly package?: string
111
+ readonly face?: TypertFace
112
+ }
113
+
114
+ /** Filter for package-model enumeration. */
115
+ export interface TypertPackageFilter {
116
+ readonly package?: string
117
+ readonly face?: TypertFace
118
+ }