@melite/estate-drafts 0.0.0-stage → 0.1.4-alpha
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 +557 -0
- package/lib/bench.d.ts +329 -0
- package/lib/bench.js +1866 -0
- package/lib/index.d.ts +12 -0
- package/lib/index.js +13 -0
- package/lib/remote.d.ts +306 -0
- package/lib/remote.js +1116 -0
- package/lib/spec.d.ts +61 -0
- package/lib/spec.js +57 -0
- package/lib/store.d.ts +12 -0
- package/lib/store.js +106 -0
- package/lib/typert.host.d.ts +3 -0
- package/lib/typert.host.js +1013 -0
- package/lib/typert.remote-client.d.ts +54 -0
- package/lib/typert.remote-client.js +732 -0
- package/lib/types.d.ts +3 -0
- package/lib/types.js +2 -0
- package/package.json +61 -4
- package/README.md +0 -3
|
@@ -0,0 +1,1013 @@
|
|
|
1
|
+
/* Generated by @deepseek-ai/dsh-typert-generator from FaceModel — do not edit. */
|
|
2
|
+
import { z } from 'zod'
|
|
3
|
+
|
|
4
|
+
let JsonValueRemoteCodec$schema$value
|
|
5
|
+
const JsonValueRemoteCodec$schema = () => (JsonValueRemoteCodec$schema$value ??= z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema())).readonly()]))
|
|
6
|
+
let JsonValueRemoteCodec$schema2$value
|
|
7
|
+
const JsonValueRemoteCodec$schema2 = () => (JsonValueRemoteCodec$schema2$value ??= z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema2())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema2())).readonly()]))
|
|
8
|
+
let JsonValueRemoteCodec$schema3$value
|
|
9
|
+
const JsonValueRemoteCodec$schema3 = () => (JsonValueRemoteCodec$schema3$value ??= z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema3())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema3())).readonly()]))
|
|
10
|
+
let JsonValueRemoteCodec$schema4$value
|
|
11
|
+
const JsonValueRemoteCodec$schema4 = () => (JsonValueRemoteCodec$schema4$value ??= z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema4())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema4())).readonly()]))
|
|
12
|
+
let JsonValueRemoteCodec$schema5$value
|
|
13
|
+
const JsonValueRemoteCodec$schema5 = () => (JsonValueRemoteCodec$schema5$value ??= z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema5())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema5())).readonly()]))
|
|
14
|
+
let JsonValueRemoteCodec$schema6$value
|
|
15
|
+
const JsonValueRemoteCodec$schema6 = () => (JsonValueRemoteCodec$schema6$value ??= z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema6())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema6())).readonly()]))
|
|
16
|
+
let JsonValueRemoteCodec$schema7$value
|
|
17
|
+
const JsonValueRemoteCodec$schema7 = () => (JsonValueRemoteCodec$schema7$value ??= z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema7())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema7())).readonly()]))
|
|
18
|
+
let JsonValueRemoteCodec$schema8$value
|
|
19
|
+
const JsonValueRemoteCodec$schema8 = () => (JsonValueRemoteCodec$schema8$value ??= z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema8())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema8())).readonly()]))
|
|
20
|
+
let JsonValueRemoteCodec$schema9$value
|
|
21
|
+
const JsonValueRemoteCodec$schema9 = () => (JsonValueRemoteCodec$schema9$value ??= z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema9())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema9())).readonly()]))
|
|
22
|
+
let JsonValueRemoteCodec$schema10$value
|
|
23
|
+
const JsonValueRemoteCodec$schema10 = () => (JsonValueRemoteCodec$schema10$value ??= z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema10())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema10())).readonly()]))
|
|
24
|
+
let JsonValueRemoteCodec$schema11$value
|
|
25
|
+
const JsonValueRemoteCodec$schema11 = () => (JsonValueRemoteCodec$schema11$value ??= z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema11())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema11())).readonly()]))
|
|
26
|
+
let JsonValueRemoteCodec$schema12$value
|
|
27
|
+
const JsonValueRemoteCodec$schema12 = () => (JsonValueRemoteCodec$schema12$value ??= z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema12())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema12())).readonly()]))
|
|
28
|
+
let JsonValueRemoteCodec$schema13$value
|
|
29
|
+
const JsonValueRemoteCodec$schema13 = () => (JsonValueRemoteCodec$schema13$value ??= z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema13())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema13())).readonly()]))
|
|
30
|
+
let JsonValueRemoteCodec$schema14$value
|
|
31
|
+
const JsonValueRemoteCodec$schema14 = () => (JsonValueRemoteCodec$schema14$value ??= z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema14())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema14())).readonly()]))
|
|
32
|
+
let JsonValueRemoteCodec$schema15$value
|
|
33
|
+
const JsonValueRemoteCodec$schema15 = () => (JsonValueRemoteCodec$schema15$value ??= z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema15())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema15())).readonly()]))
|
|
34
|
+
let JsonValueRemoteCodec$schema16$value
|
|
35
|
+
const JsonValueRemoteCodec$schema16 = () => (JsonValueRemoteCodec$schema16$value ??= z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema16())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema16())).readonly()]))
|
|
36
|
+
let _melite_estate_drafts_bench_add_stage_parameter_0$schema$value
|
|
37
|
+
const _melite_estate_drafts_bench_add_stage_parameter_0$schema = () => (_melite_estate_drafts_bench_add_stage_parameter_0$schema$value ??= z.string())
|
|
38
|
+
let _melite_estate_drafts_bench_add_stage_parameter_1$schema$value
|
|
39
|
+
const _melite_estate_drafts_bench_add_stage_parameter_1$schema = () => (_melite_estate_drafts_bench_add_stage_parameter_1$schema$value ??= z.record(z.string(), z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema6())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema6())).readonly()])).readonly())
|
|
40
|
+
let _melite_estate_drafts_bench_add_stage_result$schema$value
|
|
41
|
+
const _melite_estate_drafts_bench_add_stage_result$schema = () => (_melite_estate_drafts_bench_add_stage_result$schema$value ??= z.object({
|
|
42
|
+
'draft_id': z.string().readonly(),
|
|
43
|
+
'session': z.string().readonly(),
|
|
44
|
+
'rev': z.number().readonly(),
|
|
45
|
+
'stage': z.string().readonly(),
|
|
46
|
+
}))
|
|
47
|
+
let _melite_estate_drafts_bench_clear_parameter_0$schema$value
|
|
48
|
+
const _melite_estate_drafts_bench_clear_parameter_0$schema = () => (_melite_estate_drafts_bench_clear_parameter_0$schema$value ??= z.string())
|
|
49
|
+
let _melite_estate_drafts_bench_clear_parameter_1$schema$value
|
|
50
|
+
const _melite_estate_drafts_bench_clear_parameter_1$schema = () => (_melite_estate_drafts_bench_clear_parameter_1$schema$value ??= z.record(z.string(), z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema8())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema8())).readonly()])).readonly())
|
|
51
|
+
let _melite_estate_drafts_bench_clear_result$schema$value
|
|
52
|
+
const _melite_estate_drafts_bench_clear_result$schema = () => (_melite_estate_drafts_bench_clear_result$schema$value ??= z.object({
|
|
53
|
+
'draft_id': z.string().readonly(),
|
|
54
|
+
'session': z.string().readonly(),
|
|
55
|
+
'rev': z.number().readonly(),
|
|
56
|
+
'cleared': z.number().readonly(),
|
|
57
|
+
}))
|
|
58
|
+
let _melite_estate_drafts_bench_ensure_parameter_0$schema$value
|
|
59
|
+
const _melite_estate_drafts_bench_ensure_parameter_0$schema = () => (_melite_estate_drafts_bench_ensure_parameter_0$schema$value ??= z.record(z.string(), z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema3())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema3())).readonly()])).readonly())
|
|
60
|
+
let _melite_estate_drafts_bench_ensure_result$schema$value
|
|
61
|
+
const _melite_estate_drafts_bench_ensure_result$schema = () => (_melite_estate_drafts_bench_ensure_result$schema$value ??= z.object({
|
|
62
|
+
'draft_id': z.string().readonly(),
|
|
63
|
+
'session': z.string().readonly(),
|
|
64
|
+
'rev': z.number().readonly(),
|
|
65
|
+
'intent': z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema4())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema4())).readonly()]).readonly(),
|
|
66
|
+
'stages': z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema4())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema4())).readonly()]).readonly(),
|
|
67
|
+
'created': z.boolean().readonly(),
|
|
68
|
+
}))
|
|
69
|
+
let _melite_estate_drafts_bench_get_parameter_0$schema$value
|
|
70
|
+
const _melite_estate_drafts_bench_get_parameter_0$schema = () => (_melite_estate_drafts_bench_get_parameter_0$schema$value ??= z.string())
|
|
71
|
+
let _melite_estate_drafts_bench_get_result$schema$value
|
|
72
|
+
const _melite_estate_drafts_bench_get_result$schema = () => (_melite_estate_drafts_bench_get_result$schema$value ??= z.object({
|
|
73
|
+
'draft_id': z.string().readonly(),
|
|
74
|
+
'session': z.string().readonly(),
|
|
75
|
+
'rev': z.number().readonly(),
|
|
76
|
+
'intent': z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema())).readonly()]).readonly(),
|
|
77
|
+
'stages': z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema())).readonly()]).readonly(),
|
|
78
|
+
'log': z.array(z.record(z.string(), z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema())).readonly()])).readonly()).readonly(),
|
|
79
|
+
}))
|
|
80
|
+
let _melite_estate_drafts_bench_group_parameter_0$schema$value
|
|
81
|
+
const _melite_estate_drafts_bench_group_parameter_0$schema = () => (_melite_estate_drafts_bench_group_parameter_0$schema$value ??= z.string())
|
|
82
|
+
let _melite_estate_drafts_bench_group_parameter_1$schema$value
|
|
83
|
+
const _melite_estate_drafts_bench_group_parameter_1$schema = () => (_melite_estate_drafts_bench_group_parameter_1$schema$value ??= z.record(z.string(), z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema11())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema11())).readonly()])).readonly())
|
|
84
|
+
let _melite_estate_drafts_bench_group_result$schema$value
|
|
85
|
+
const _melite_estate_drafts_bench_group_result$schema = () => (_melite_estate_drafts_bench_group_result$schema$value ??= z.object({
|
|
86
|
+
'draft_id': z.string().readonly(),
|
|
87
|
+
'session': z.string().readonly(),
|
|
88
|
+
'rev': z.number().readonly(),
|
|
89
|
+
'stage': z.string().readonly(),
|
|
90
|
+
}))
|
|
91
|
+
let _melite_estate_drafts_bench_patch_parameter_0$schema$value
|
|
92
|
+
const _melite_estate_drafts_bench_patch_parameter_0$schema = () => (_melite_estate_drafts_bench_patch_parameter_0$schema$value ??= z.string())
|
|
93
|
+
let _melite_estate_drafts_bench_patch_parameter_1$schema$value
|
|
94
|
+
const _melite_estate_drafts_bench_patch_parameter_1$schema = () => (_melite_estate_drafts_bench_patch_parameter_1$schema$value ??= z.record(z.string(), z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema5())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema5())).readonly()])).readonly())
|
|
95
|
+
let _melite_estate_drafts_bench_patch_result$schema$value
|
|
96
|
+
const _melite_estate_drafts_bench_patch_result$schema = () => (_melite_estate_drafts_bench_patch_result$schema$value ??= z.object({
|
|
97
|
+
'draft_id': z.string().readonly(),
|
|
98
|
+
'session': z.string().readonly(),
|
|
99
|
+
'rev': z.number().readonly(),
|
|
100
|
+
'stage': z.string().readonly(),
|
|
101
|
+
'patched': z.array(z.string()).readonly(),
|
|
102
|
+
}))
|
|
103
|
+
let _melite_estate_drafts_bench_remove_stage_parameter_0$schema$value
|
|
104
|
+
const _melite_estate_drafts_bench_remove_stage_parameter_0$schema = () => (_melite_estate_drafts_bench_remove_stage_parameter_0$schema$value ??= z.string())
|
|
105
|
+
let _melite_estate_drafts_bench_remove_stage_parameter_1$schema$value
|
|
106
|
+
const _melite_estate_drafts_bench_remove_stage_parameter_1$schema = () => (_melite_estate_drafts_bench_remove_stage_parameter_1$schema$value ??= z.record(z.string(), z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema7())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema7())).readonly()])).readonly())
|
|
107
|
+
let _melite_estate_drafts_bench_remove_stage_result$schema$value
|
|
108
|
+
const _melite_estate_drafts_bench_remove_stage_result$schema = () => (_melite_estate_drafts_bench_remove_stage_result$schema$value ??= z.object({
|
|
109
|
+
'draft_id': z.string().readonly(),
|
|
110
|
+
'session': z.string().readonly(),
|
|
111
|
+
'rev': z.number().readonly(),
|
|
112
|
+
'stage': z.string().readonly(),
|
|
113
|
+
}))
|
|
114
|
+
let _melite_estate_drafts_bench_reorder_parameter_0$schema$value
|
|
115
|
+
const _melite_estate_drafts_bench_reorder_parameter_0$schema = () => (_melite_estate_drafts_bench_reorder_parameter_0$schema$value ??= z.string())
|
|
116
|
+
let _melite_estate_drafts_bench_reorder_parameter_1$schema$value
|
|
117
|
+
const _melite_estate_drafts_bench_reorder_parameter_1$schema = () => (_melite_estate_drafts_bench_reorder_parameter_1$schema$value ??= z.record(z.string(), z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema10())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema10())).readonly()])).readonly())
|
|
118
|
+
let _melite_estate_drafts_bench_reorder_result$schema$value
|
|
119
|
+
const _melite_estate_drafts_bench_reorder_result$schema = () => (_melite_estate_drafts_bench_reorder_result$schema$value ??= z.object({
|
|
120
|
+
'draft_id': z.string().readonly(),
|
|
121
|
+
'session': z.string().readonly(),
|
|
122
|
+
'rev': z.number().readonly(),
|
|
123
|
+
'stage': z.string().readonly(),
|
|
124
|
+
'from': z.number().readonly(),
|
|
125
|
+
'to': z.number().readonly(),
|
|
126
|
+
}))
|
|
127
|
+
let _melite_estate_drafts_bench_rewire_parameter_0$schema$value
|
|
128
|
+
const _melite_estate_drafts_bench_rewire_parameter_0$schema = () => (_melite_estate_drafts_bench_rewire_parameter_0$schema$value ??= z.string())
|
|
129
|
+
let _melite_estate_drafts_bench_rewire_parameter_1$schema$value
|
|
130
|
+
const _melite_estate_drafts_bench_rewire_parameter_1$schema = () => (_melite_estate_drafts_bench_rewire_parameter_1$schema$value ??= z.record(z.string(), z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema9())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema9())).readonly()])).readonly())
|
|
131
|
+
let _melite_estate_drafts_bench_rewire_result$schema$value
|
|
132
|
+
const _melite_estate_drafts_bench_rewire_result$schema = () => (_melite_estate_drafts_bench_rewire_result$schema$value ??= z.object({
|
|
133
|
+
'draft_id': z.string().readonly(),
|
|
134
|
+
'session': z.string().readonly(),
|
|
135
|
+
'rev': z.number().readonly(),
|
|
136
|
+
'stage': z.string().readonly(),
|
|
137
|
+
'input': z.string().readonly(),
|
|
138
|
+
}))
|
|
139
|
+
let _melite_estate_drafts_bench_subscribe_parameter_0$schema$value
|
|
140
|
+
const _melite_estate_drafts_bench_subscribe_parameter_0$schema = () => (_melite_estate_drafts_bench_subscribe_parameter_0$schema$value ??= z.string())
|
|
141
|
+
let _melite_estate_drafts_bench_subscribe_result$schema$value
|
|
142
|
+
const _melite_estate_drafts_bench_subscribe_result$schema = () => (_melite_estate_drafts_bench_subscribe_result$schema$value ??= z.object({
|
|
143
|
+
'draft_id': z.string().readonly(),
|
|
144
|
+
'session': z.string().readonly(),
|
|
145
|
+
'rev': z.number().readonly(),
|
|
146
|
+
'intent': z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema2())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema2())).readonly()]).readonly(),
|
|
147
|
+
'stages': z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema2())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema2())).readonly()]).readonly(),
|
|
148
|
+
'log': z.array(z.record(z.string(), z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema2())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema2())).readonly()])).readonly()).readonly(),
|
|
149
|
+
}))
|
|
150
|
+
let _melite_estate_drafts_bench_undo_parameter_0$schema$value
|
|
151
|
+
const _melite_estate_drafts_bench_undo_parameter_0$schema = () => (_melite_estate_drafts_bench_undo_parameter_0$schema$value ??= z.string())
|
|
152
|
+
let _melite_estate_drafts_bench_undo_parameter_1$schema$value
|
|
153
|
+
const _melite_estate_drafts_bench_undo_parameter_1$schema = () => (_melite_estate_drafts_bench_undo_parameter_1$schema$value ??= z.record(z.string(), z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema13())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema13())).readonly()])).readonly())
|
|
154
|
+
let _melite_estate_drafts_bench_undo_result$schema$value
|
|
155
|
+
const _melite_estate_drafts_bench_undo_result$schema = () => (_melite_estate_drafts_bench_undo_result$schema$value ??= z.object({
|
|
156
|
+
'draft_id': z.string().readonly(),
|
|
157
|
+
'session': z.string().readonly(),
|
|
158
|
+
'rev': z.number().readonly(),
|
|
159
|
+
'undone': z.array(z.number()).readonly(),
|
|
160
|
+
'stages': z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema14())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema14())).readonly()]).readonly(),
|
|
161
|
+
}))
|
|
162
|
+
let _melite_estate_drafts_bench_ungroup_parameter_0$schema$value
|
|
163
|
+
const _melite_estate_drafts_bench_ungroup_parameter_0$schema = () => (_melite_estate_drafts_bench_ungroup_parameter_0$schema$value ??= z.string())
|
|
164
|
+
let _melite_estate_drafts_bench_ungroup_parameter_1$schema$value
|
|
165
|
+
const _melite_estate_drafts_bench_ungroup_parameter_1$schema = () => (_melite_estate_drafts_bench_ungroup_parameter_1$schema$value ??= z.record(z.string(), z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema12())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema12())).readonly()])).readonly())
|
|
166
|
+
let _melite_estate_drafts_bench_ungroup_result$schema$value
|
|
167
|
+
const _melite_estate_drafts_bench_ungroup_result$schema = () => (_melite_estate_drafts_bench_ungroup_result$schema$value ??= z.object({
|
|
168
|
+
'draft_id': z.string().readonly(),
|
|
169
|
+
'session': z.string().readonly(),
|
|
170
|
+
'rev': z.number().readonly(),
|
|
171
|
+
'stage': z.string().readonly(),
|
|
172
|
+
}))
|
|
173
|
+
let _melite_estate_drafts_drafts_get_parameter_0$schema$value
|
|
174
|
+
const _melite_estate_drafts_drafts_get_parameter_0$schema = () => (_melite_estate_drafts_drafts_get_parameter_0$schema$value ??= z.string())
|
|
175
|
+
let _melite_estate_drafts_drafts_get_result$schema$value
|
|
176
|
+
const _melite_estate_drafts_drafts_get_result$schema = () => (_melite_estate_drafts_drafts_get_result$schema$value ??= z.record(z.string(), z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema15())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema15())).readonly()])).readonly())
|
|
177
|
+
let _melite_estate_drafts_drafts_list_result$schema$value
|
|
178
|
+
const _melite_estate_drafts_drafts_list_result$schema = () => (_melite_estate_drafts_drafts_list_result$schema$value ??= z.object({
|
|
179
|
+
'count': z.number().readonly(),
|
|
180
|
+
'drafts': z.array(z.object({
|
|
181
|
+
'draft_id': z.string().readonly(),
|
|
182
|
+
'model': z.string().readonly(),
|
|
183
|
+
'name': z.string().readonly(),
|
|
184
|
+
})).readonly(),
|
|
185
|
+
}))
|
|
186
|
+
let _melite_estate_drafts_drafts_patch_parameter_0$schema$value
|
|
187
|
+
const _melite_estate_drafts_drafts_patch_parameter_0$schema = () => (_melite_estate_drafts_drafts_patch_parameter_0$schema$value ??= z.string())
|
|
188
|
+
let _melite_estate_drafts_drafts_patch_parameter_1$schema$value
|
|
189
|
+
const _melite_estate_drafts_drafts_patch_parameter_1$schema = () => (_melite_estate_drafts_drafts_patch_parameter_1$schema$value ??= z.string())
|
|
190
|
+
let _melite_estate_drafts_drafts_patch_parameter_2$schema$value
|
|
191
|
+
const _melite_estate_drafts_drafts_patch_parameter_2$schema = () => (_melite_estate_drafts_drafts_patch_parameter_2$schema$value ??= z.object({
|
|
192
|
+
'params': z.union([z.undefined(), z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema16())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema16())).readonly()])), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema16())).readonly()]).optional(),
|
|
193
|
+
'result': z.union([z.undefined(), z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema16())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema16())).readonly()])), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema16())).readonly()]).optional(),
|
|
194
|
+
'runStatus': z.union([z.undefined(), z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema16())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema16())).readonly()])), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema16())).readonly()]).optional(),
|
|
195
|
+
'health': z.union([z.undefined(), z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema16())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema16())).readonly()])), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema16())).readonly()]).optional(),
|
|
196
|
+
'inputs': z.union([z.undefined(), z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema16())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema16())).readonly()])), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema16())).readonly()]).optional(),
|
|
197
|
+
'inputOutputs': z.union([z.undefined(), z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema16())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema16())).readonly()])), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema16())).readonly()]).optional(),
|
|
198
|
+
}))
|
|
199
|
+
let _melite_estate_drafts_drafts_patch_parameter_3$schema$value
|
|
200
|
+
const _melite_estate_drafts_drafts_patch_parameter_3$schema = () => (_melite_estate_drafts_drafts_patch_parameter_3$schema$value ??= z.union([z.literal(null), z.number()]))
|
|
201
|
+
let _melite_estate_drafts_drafts_patch_result$schema$value
|
|
202
|
+
const _melite_estate_drafts_drafts_patch_result$schema = () => (_melite_estate_drafts_drafts_patch_result$schema$value ??= z.object({
|
|
203
|
+
'draftId': z.string(),
|
|
204
|
+
'stageId': z.string(),
|
|
205
|
+
'delivered': z.boolean(),
|
|
206
|
+
'reason': z.union([z.undefined(), z.string()]).optional(),
|
|
207
|
+
'patched': z.union([z.undefined(), z.array(z.string())]).optional(),
|
|
208
|
+
'rev': z.union([z.undefined(), z.number()]).optional(),
|
|
209
|
+
}))
|
|
210
|
+
|
|
211
|
+
export const TYPERT = {
|
|
212
|
+
package: '@melite/estate-drafts',
|
|
213
|
+
face: 'host',
|
|
214
|
+
schemas: [
|
|
215
|
+
],
|
|
216
|
+
invocations: [
|
|
217
|
+
{
|
|
218
|
+
id: '@melite/estate-drafts#bench/add-stage',
|
|
219
|
+
service: 'benchRemote',
|
|
220
|
+
namespace: 'bench',
|
|
221
|
+
method: 'add-stage',
|
|
222
|
+
implementation: 'remoteExportAddStage',
|
|
223
|
+
invocation: { kind: 'direct' },
|
|
224
|
+
parameters: [
|
|
225
|
+
{
|
|
226
|
+
name: 'sessionKey',
|
|
227
|
+
wire: 'sessionKey',
|
|
228
|
+
source: 'json',
|
|
229
|
+
codec: {
|
|
230
|
+
mode: 'strict',
|
|
231
|
+
typeSymbol: '@melite/estate-drafts#bench/add-stage:sessionKey',
|
|
232
|
+
create: _melite_estate_drafts_bench_add_stage_parameter_0$schema,
|
|
233
|
+
},
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
name: 'doc',
|
|
237
|
+
wire: 'doc',
|
|
238
|
+
source: 'json',
|
|
239
|
+
codec: {
|
|
240
|
+
mode: 'strict',
|
|
241
|
+
typeSymbol: '@melite/estate-drafts/types#BenchDoc',
|
|
242
|
+
create: _melite_estate_drafts_bench_add_stage_parameter_1$schema,
|
|
243
|
+
},
|
|
244
|
+
},
|
|
245
|
+
],
|
|
246
|
+
cancellation: { parameter: 'signal' },
|
|
247
|
+
result: {
|
|
248
|
+
mode: 'strict',
|
|
249
|
+
typeSymbol: '@melite/estate-drafts/types#BenchStageRow',
|
|
250
|
+
create: _melite_estate_drafts_bench_add_stage_result$schema,
|
|
251
|
+
},
|
|
252
|
+
sourceLocation: {"file":"packages/estate/drafts/src/remote.ts","line":1209,"column":9},
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
id: '@melite/estate-drafts#bench/clear',
|
|
256
|
+
service: 'benchRemote',
|
|
257
|
+
namespace: 'bench',
|
|
258
|
+
method: 'clear',
|
|
259
|
+
implementation: 'remoteExportClear',
|
|
260
|
+
invocation: { kind: 'direct' },
|
|
261
|
+
parameters: [
|
|
262
|
+
{
|
|
263
|
+
name: 'sessionKey',
|
|
264
|
+
wire: 'sessionKey',
|
|
265
|
+
source: 'json',
|
|
266
|
+
codec: {
|
|
267
|
+
mode: 'strict',
|
|
268
|
+
typeSymbol: '@melite/estate-drafts#bench/clear:sessionKey',
|
|
269
|
+
create: _melite_estate_drafts_bench_clear_parameter_0$schema,
|
|
270
|
+
},
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
name: 'doc',
|
|
274
|
+
wire: 'doc',
|
|
275
|
+
source: 'json',
|
|
276
|
+
codec: {
|
|
277
|
+
mode: 'strict',
|
|
278
|
+
typeSymbol: '@melite/estate-drafts/types#BenchDoc',
|
|
279
|
+
create: _melite_estate_drafts_bench_clear_parameter_1$schema,
|
|
280
|
+
},
|
|
281
|
+
},
|
|
282
|
+
],
|
|
283
|
+
cancellation: { parameter: 'signal' },
|
|
284
|
+
result: {
|
|
285
|
+
mode: 'strict',
|
|
286
|
+
typeSymbol: '@melite/estate-drafts/types#BenchClearRow',
|
|
287
|
+
create: _melite_estate_drafts_bench_clear_result$schema,
|
|
288
|
+
},
|
|
289
|
+
sourceLocation: {"file":"packages/estate/drafts/src/remote.ts","line":1232,"column":9},
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
id: '@melite/estate-drafts#bench/ensure',
|
|
293
|
+
service: 'benchRemote',
|
|
294
|
+
namespace: 'bench',
|
|
295
|
+
method: 'ensure',
|
|
296
|
+
implementation: 'remoteExportEnsure',
|
|
297
|
+
invocation: { kind: 'direct' },
|
|
298
|
+
parameters: [
|
|
299
|
+
{
|
|
300
|
+
name: 'doc',
|
|
301
|
+
wire: 'doc',
|
|
302
|
+
source: 'json',
|
|
303
|
+
codec: {
|
|
304
|
+
mode: 'strict',
|
|
305
|
+
typeSymbol: '@melite/estate-drafts/types#BenchDoc',
|
|
306
|
+
create: _melite_estate_drafts_bench_ensure_parameter_0$schema,
|
|
307
|
+
},
|
|
308
|
+
},
|
|
309
|
+
],
|
|
310
|
+
cancellation: { parameter: 'signal' },
|
|
311
|
+
result: {
|
|
312
|
+
mode: 'strict',
|
|
313
|
+
typeSymbol: '@melite/estate-drafts/types#BenchEnsureRow',
|
|
314
|
+
create: _melite_estate_drafts_bench_ensure_result$schema,
|
|
315
|
+
},
|
|
316
|
+
sourceLocation: {"file":"packages/estate/drafts/src/remote.ts","line":1142,"column":9},
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
id: '@melite/estate-drafts#bench/get',
|
|
320
|
+
service: 'benchRemote',
|
|
321
|
+
namespace: 'bench',
|
|
322
|
+
method: 'get',
|
|
323
|
+
implementation: 'remoteExportGet',
|
|
324
|
+
invocation: { kind: 'direct' },
|
|
325
|
+
parameters: [
|
|
326
|
+
{
|
|
327
|
+
name: 'sessionKey',
|
|
328
|
+
wire: 'sessionKey',
|
|
329
|
+
source: 'json',
|
|
330
|
+
codec: {
|
|
331
|
+
mode: 'strict',
|
|
332
|
+
typeSymbol: '@melite/estate-drafts#bench/get:sessionKey',
|
|
333
|
+
create: _melite_estate_drafts_bench_get_parameter_0$schema,
|
|
334
|
+
},
|
|
335
|
+
},
|
|
336
|
+
],
|
|
337
|
+
cancellation: { parameter: 'signal' },
|
|
338
|
+
result: {
|
|
339
|
+
mode: 'strict',
|
|
340
|
+
typeSymbol: '@melite/estate-drafts/types#BenchGetRow',
|
|
341
|
+
create: _melite_estate_drafts_bench_get_result$schema,
|
|
342
|
+
},
|
|
343
|
+
sourceLocation: {"file":"packages/estate/drafts/src/remote.ts","line":1052,"column":9},
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
id: '@melite/estate-drafts#bench/group',
|
|
347
|
+
service: 'benchRemote',
|
|
348
|
+
namespace: 'bench',
|
|
349
|
+
method: 'group',
|
|
350
|
+
implementation: 'remoteExportGroup',
|
|
351
|
+
invocation: { kind: 'direct' },
|
|
352
|
+
parameters: [
|
|
353
|
+
{
|
|
354
|
+
name: 'sessionKey',
|
|
355
|
+
wire: 'sessionKey',
|
|
356
|
+
source: 'json',
|
|
357
|
+
codec: {
|
|
358
|
+
mode: 'strict',
|
|
359
|
+
typeSymbol: '@melite/estate-drafts#bench/group:sessionKey',
|
|
360
|
+
create: _melite_estate_drafts_bench_group_parameter_0$schema,
|
|
361
|
+
},
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
name: 'doc',
|
|
365
|
+
wire: 'doc',
|
|
366
|
+
source: 'json',
|
|
367
|
+
codec: {
|
|
368
|
+
mode: 'strict',
|
|
369
|
+
typeSymbol: '@melite/estate-drafts/types#BenchDoc',
|
|
370
|
+
create: _melite_estate_drafts_bench_group_parameter_1$schema,
|
|
371
|
+
},
|
|
372
|
+
},
|
|
373
|
+
],
|
|
374
|
+
cancellation: { parameter: 'signal' },
|
|
375
|
+
result: {
|
|
376
|
+
mode: 'strict',
|
|
377
|
+
typeSymbol: '@melite/estate-drafts/types#BenchStageRow',
|
|
378
|
+
create: _melite_estate_drafts_bench_group_result$schema,
|
|
379
|
+
},
|
|
380
|
+
sourceLocation: {"file":"packages/estate/drafts/src/remote.ts","line":1268,"column":9},
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
id: '@melite/estate-drafts#bench/patch',
|
|
384
|
+
service: 'benchRemote',
|
|
385
|
+
namespace: 'bench',
|
|
386
|
+
method: 'patch',
|
|
387
|
+
implementation: 'remoteExportPatch',
|
|
388
|
+
invocation: { kind: 'direct' },
|
|
389
|
+
parameters: [
|
|
390
|
+
{
|
|
391
|
+
name: 'sessionKey',
|
|
392
|
+
wire: 'sessionKey',
|
|
393
|
+
source: 'json',
|
|
394
|
+
codec: {
|
|
395
|
+
mode: 'strict',
|
|
396
|
+
typeSymbol: '@melite/estate-drafts#bench/patch:sessionKey',
|
|
397
|
+
create: _melite_estate_drafts_bench_patch_parameter_0$schema,
|
|
398
|
+
},
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
name: 'doc',
|
|
402
|
+
wire: 'doc',
|
|
403
|
+
source: 'json',
|
|
404
|
+
codec: {
|
|
405
|
+
mode: 'strict',
|
|
406
|
+
typeSymbol: '@melite/estate-drafts/types#BenchDoc',
|
|
407
|
+
create: _melite_estate_drafts_bench_patch_parameter_1$schema,
|
|
408
|
+
},
|
|
409
|
+
},
|
|
410
|
+
],
|
|
411
|
+
cancellation: { parameter: 'signal' },
|
|
412
|
+
result: {
|
|
413
|
+
mode: 'strict',
|
|
414
|
+
typeSymbol: '@melite/estate-drafts/types#BenchPatchRow',
|
|
415
|
+
create: _melite_estate_drafts_bench_patch_result$schema,
|
|
416
|
+
},
|
|
417
|
+
sourceLocation: {"file":"packages/estate/drafts/src/remote.ts","line":1199,"column":9},
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
id: '@melite/estate-drafts#bench/remove-stage',
|
|
421
|
+
service: 'benchRemote',
|
|
422
|
+
namespace: 'bench',
|
|
423
|
+
method: 'remove-stage',
|
|
424
|
+
implementation: 'remoteExportRemoveStage',
|
|
425
|
+
invocation: { kind: 'direct' },
|
|
426
|
+
parameters: [
|
|
427
|
+
{
|
|
428
|
+
name: 'sessionKey',
|
|
429
|
+
wire: 'sessionKey',
|
|
430
|
+
source: 'json',
|
|
431
|
+
codec: {
|
|
432
|
+
mode: 'strict',
|
|
433
|
+
typeSymbol: '@melite/estate-drafts#bench/remove-stage:sessionKey',
|
|
434
|
+
create: _melite_estate_drafts_bench_remove_stage_parameter_0$schema,
|
|
435
|
+
},
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
name: 'doc',
|
|
439
|
+
wire: 'doc',
|
|
440
|
+
source: 'json',
|
|
441
|
+
codec: {
|
|
442
|
+
mode: 'strict',
|
|
443
|
+
typeSymbol: '@melite/estate-drafts/types#BenchDoc',
|
|
444
|
+
create: _melite_estate_drafts_bench_remove_stage_parameter_1$schema,
|
|
445
|
+
},
|
|
446
|
+
},
|
|
447
|
+
],
|
|
448
|
+
cancellation: { parameter: 'signal' },
|
|
449
|
+
result: {
|
|
450
|
+
mode: 'strict',
|
|
451
|
+
typeSymbol: '@melite/estate-drafts/types#BenchStageRow',
|
|
452
|
+
create: _melite_estate_drafts_bench_remove_stage_result$schema,
|
|
453
|
+
},
|
|
454
|
+
sourceLocation: {"file":"packages/estate/drafts/src/remote.ts","line":1219,"column":9},
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
id: '@melite/estate-drafts#bench/reorder',
|
|
458
|
+
service: 'benchRemote',
|
|
459
|
+
namespace: 'bench',
|
|
460
|
+
method: 'reorder',
|
|
461
|
+
implementation: 'remoteExportReorder',
|
|
462
|
+
invocation: { kind: 'direct' },
|
|
463
|
+
parameters: [
|
|
464
|
+
{
|
|
465
|
+
name: 'sessionKey',
|
|
466
|
+
wire: 'sessionKey',
|
|
467
|
+
source: 'json',
|
|
468
|
+
codec: {
|
|
469
|
+
mode: 'strict',
|
|
470
|
+
typeSymbol: '@melite/estate-drafts#bench/reorder:sessionKey',
|
|
471
|
+
create: _melite_estate_drafts_bench_reorder_parameter_0$schema,
|
|
472
|
+
},
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
name: 'doc',
|
|
476
|
+
wire: 'doc',
|
|
477
|
+
source: 'json',
|
|
478
|
+
codec: {
|
|
479
|
+
mode: 'strict',
|
|
480
|
+
typeSymbol: '@melite/estate-drafts/types#BenchDoc',
|
|
481
|
+
create: _melite_estate_drafts_bench_reorder_parameter_1$schema,
|
|
482
|
+
},
|
|
483
|
+
},
|
|
484
|
+
],
|
|
485
|
+
cancellation: { parameter: 'signal' },
|
|
486
|
+
result: {
|
|
487
|
+
mode: 'strict',
|
|
488
|
+
typeSymbol: '@melite/estate-drafts/types#BenchReorderRow',
|
|
489
|
+
create: _melite_estate_drafts_bench_reorder_result$schema,
|
|
490
|
+
},
|
|
491
|
+
sourceLocation: {"file":"packages/estate/drafts/src/remote.ts","line":1253,"column":9},
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
id: '@melite/estate-drafts#bench/rewire',
|
|
495
|
+
service: 'benchRemote',
|
|
496
|
+
namespace: 'bench',
|
|
497
|
+
method: 'rewire',
|
|
498
|
+
implementation: 'remoteExportRewire',
|
|
499
|
+
invocation: { kind: 'direct' },
|
|
500
|
+
parameters: [
|
|
501
|
+
{
|
|
502
|
+
name: 'sessionKey',
|
|
503
|
+
wire: 'sessionKey',
|
|
504
|
+
source: 'json',
|
|
505
|
+
codec: {
|
|
506
|
+
mode: 'strict',
|
|
507
|
+
typeSymbol: '@melite/estate-drafts#bench/rewire:sessionKey',
|
|
508
|
+
create: _melite_estate_drafts_bench_rewire_parameter_0$schema,
|
|
509
|
+
},
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
name: 'doc',
|
|
513
|
+
wire: 'doc',
|
|
514
|
+
source: 'json',
|
|
515
|
+
codec: {
|
|
516
|
+
mode: 'strict',
|
|
517
|
+
typeSymbol: '@melite/estate-drafts/types#BenchDoc',
|
|
518
|
+
create: _melite_estate_drafts_bench_rewire_parameter_1$schema,
|
|
519
|
+
},
|
|
520
|
+
},
|
|
521
|
+
],
|
|
522
|
+
cancellation: { parameter: 'signal' },
|
|
523
|
+
result: {
|
|
524
|
+
mode: 'strict',
|
|
525
|
+
typeSymbol: '@melite/estate-drafts/types#BenchRewireRow',
|
|
526
|
+
create: _melite_estate_drafts_bench_rewire_result$schema,
|
|
527
|
+
},
|
|
528
|
+
sourceLocation: {"file":"packages/estate/drafts/src/remote.ts","line":1242,"column":9},
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
id: '@melite/estate-drafts#bench/subscribe',
|
|
532
|
+
service: 'benchRemote',
|
|
533
|
+
namespace: 'bench',
|
|
534
|
+
method: 'subscribe',
|
|
535
|
+
mode: 'stream',
|
|
536
|
+
invocation: { kind: 'direct' },
|
|
537
|
+
parameters: [
|
|
538
|
+
{
|
|
539
|
+
name: 'sessionKey',
|
|
540
|
+
wire: 'sessionKey',
|
|
541
|
+
source: 'json',
|
|
542
|
+
codec: {
|
|
543
|
+
mode: 'strict',
|
|
544
|
+
typeSymbol: '@melite/estate-drafts#bench/subscribe:sessionKey',
|
|
545
|
+
create: _melite_estate_drafts_bench_subscribe_parameter_0$schema,
|
|
546
|
+
},
|
|
547
|
+
},
|
|
548
|
+
],
|
|
549
|
+
cancellation: { parameter: 'signal' },
|
|
550
|
+
result: {
|
|
551
|
+
mode: 'strict',
|
|
552
|
+
typeSymbol: '@melite/estate-drafts/types#BenchGetRow',
|
|
553
|
+
create: _melite_estate_drafts_bench_subscribe_result$schema,
|
|
554
|
+
},
|
|
555
|
+
sourceLocation: {"file":"packages/estate/drafts/src/remote.ts","line":1070,"column":10},
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
id: '@melite/estate-drafts#bench/undo',
|
|
559
|
+
service: 'benchRemote',
|
|
560
|
+
namespace: 'bench',
|
|
561
|
+
method: 'undo',
|
|
562
|
+
implementation: 'remoteExportUndo',
|
|
563
|
+
invocation: { kind: 'direct' },
|
|
564
|
+
parameters: [
|
|
565
|
+
{
|
|
566
|
+
name: 'sessionKey',
|
|
567
|
+
wire: 'sessionKey',
|
|
568
|
+
source: 'json',
|
|
569
|
+
codec: {
|
|
570
|
+
mode: 'strict',
|
|
571
|
+
typeSymbol: '@melite/estate-drafts#bench/undo:sessionKey',
|
|
572
|
+
create: _melite_estate_drafts_bench_undo_parameter_0$schema,
|
|
573
|
+
},
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
name: 'doc',
|
|
577
|
+
wire: 'doc',
|
|
578
|
+
source: 'json',
|
|
579
|
+
codec: {
|
|
580
|
+
mode: 'strict',
|
|
581
|
+
typeSymbol: '@melite/estate-drafts/types#BenchDoc',
|
|
582
|
+
create: _melite_estate_drafts_bench_undo_parameter_1$schema,
|
|
583
|
+
},
|
|
584
|
+
},
|
|
585
|
+
],
|
|
586
|
+
cancellation: { parameter: 'signal' },
|
|
587
|
+
result: {
|
|
588
|
+
mode: 'strict',
|
|
589
|
+
typeSymbol: '@melite/estate-drafts/types#BenchUndoRow',
|
|
590
|
+
create: _melite_estate_drafts_bench_undo_result$schema,
|
|
591
|
+
},
|
|
592
|
+
sourceLocation: {"file":"packages/estate/drafts/src/remote.ts","line":1296,"column":9},
|
|
593
|
+
},
|
|
594
|
+
{
|
|
595
|
+
id: '@melite/estate-drafts#bench/ungroup',
|
|
596
|
+
service: 'benchRemote',
|
|
597
|
+
namespace: 'bench',
|
|
598
|
+
method: 'ungroup',
|
|
599
|
+
implementation: 'remoteExportUngroup',
|
|
600
|
+
invocation: { kind: 'direct' },
|
|
601
|
+
parameters: [
|
|
602
|
+
{
|
|
603
|
+
name: 'sessionKey',
|
|
604
|
+
wire: 'sessionKey',
|
|
605
|
+
source: 'json',
|
|
606
|
+
codec: {
|
|
607
|
+
mode: 'strict',
|
|
608
|
+
typeSymbol: '@melite/estate-drafts#bench/ungroup:sessionKey',
|
|
609
|
+
create: _melite_estate_drafts_bench_ungroup_parameter_0$schema,
|
|
610
|
+
},
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
name: 'doc',
|
|
614
|
+
wire: 'doc',
|
|
615
|
+
source: 'json',
|
|
616
|
+
codec: {
|
|
617
|
+
mode: 'strict',
|
|
618
|
+
typeSymbol: '@melite/estate-drafts/types#BenchDoc',
|
|
619
|
+
create: _melite_estate_drafts_bench_ungroup_parameter_1$schema,
|
|
620
|
+
},
|
|
621
|
+
},
|
|
622
|
+
],
|
|
623
|
+
cancellation: { parameter: 'signal' },
|
|
624
|
+
result: {
|
|
625
|
+
mode: 'strict',
|
|
626
|
+
typeSymbol: '@melite/estate-drafts/types#BenchStageRow',
|
|
627
|
+
create: _melite_estate_drafts_bench_ungroup_result$schema,
|
|
628
|
+
},
|
|
629
|
+
sourceLocation: {"file":"packages/estate/drafts/src/remote.ts","line":1282,"column":9},
|
|
630
|
+
},
|
|
631
|
+
{
|
|
632
|
+
id: '@melite/estate-drafts#drafts/get',
|
|
633
|
+
service: 'draftsRemote',
|
|
634
|
+
namespace: 'drafts',
|
|
635
|
+
method: 'get',
|
|
636
|
+
implementation: 'remoteExportGet',
|
|
637
|
+
invocation: { kind: 'direct' },
|
|
638
|
+
parameters: [
|
|
639
|
+
{
|
|
640
|
+
name: 'draftId',
|
|
641
|
+
wire: 'draftId',
|
|
642
|
+
source: 'json',
|
|
643
|
+
codec: {
|
|
644
|
+
mode: 'strict',
|
|
645
|
+
typeSymbol: '@melite/estate-drafts#drafts/get:draftId',
|
|
646
|
+
create: _melite_estate_drafts_drafts_get_parameter_0$schema,
|
|
647
|
+
},
|
|
648
|
+
},
|
|
649
|
+
],
|
|
650
|
+
cancellation: { parameter: 'signal' },
|
|
651
|
+
result: {
|
|
652
|
+
mode: 'strict',
|
|
653
|
+
typeSymbol: '@melite/estate-drafts/types#DraftGetRow',
|
|
654
|
+
create: _melite_estate_drafts_drafts_get_result$schema,
|
|
655
|
+
},
|
|
656
|
+
sourceLocation: {"file":"packages/estate/drafts/src/remote.ts","line":533,"column":9},
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
id: '@melite/estate-drafts#drafts/list',
|
|
660
|
+
service: 'draftsRemote',
|
|
661
|
+
namespace: 'drafts',
|
|
662
|
+
method: 'list',
|
|
663
|
+
implementation: 'remoteExportList',
|
|
664
|
+
invocation: { kind: 'direct' },
|
|
665
|
+
parameters: [
|
|
666
|
+
],
|
|
667
|
+
cancellation: { parameter: 'signal' },
|
|
668
|
+
result: {
|
|
669
|
+
mode: 'strict',
|
|
670
|
+
typeSymbol: '@melite/estate-drafts/types#DraftListResult',
|
|
671
|
+
create: _melite_estate_drafts_drafts_list_result$schema,
|
|
672
|
+
},
|
|
673
|
+
sourceLocation: {"file":"packages/estate/drafts/src/remote.ts","line":527,"column":9},
|
|
674
|
+
},
|
|
675
|
+
{
|
|
676
|
+
id: '@melite/estate-drafts#drafts/patch',
|
|
677
|
+
service: 'draftsRemote',
|
|
678
|
+
namespace: 'drafts',
|
|
679
|
+
method: 'patch',
|
|
680
|
+
implementation: 'remoteExportPatch',
|
|
681
|
+
invocation: { kind: 'direct' },
|
|
682
|
+
parameters: [
|
|
683
|
+
{
|
|
684
|
+
name: 'draftId',
|
|
685
|
+
wire: 'draftId',
|
|
686
|
+
source: 'json',
|
|
687
|
+
codec: {
|
|
688
|
+
mode: 'strict',
|
|
689
|
+
typeSymbol: '@melite/estate-drafts#drafts/patch:draftId',
|
|
690
|
+
create: _melite_estate_drafts_drafts_patch_parameter_0$schema,
|
|
691
|
+
},
|
|
692
|
+
},
|
|
693
|
+
{
|
|
694
|
+
name: 'stageId',
|
|
695
|
+
wire: 'stageId',
|
|
696
|
+
source: 'json',
|
|
697
|
+
codec: {
|
|
698
|
+
mode: 'strict',
|
|
699
|
+
typeSymbol: '@melite/estate-drafts#drafts/patch:stageId',
|
|
700
|
+
create: _melite_estate_drafts_drafts_patch_parameter_1$schema,
|
|
701
|
+
},
|
|
702
|
+
},
|
|
703
|
+
{
|
|
704
|
+
name: 'patch',
|
|
705
|
+
wire: 'patch',
|
|
706
|
+
source: 'json',
|
|
707
|
+
codec: {
|
|
708
|
+
mode: 'strict',
|
|
709
|
+
typeSymbol: '@melite/estate-drafts/types#DraftStagePatch',
|
|
710
|
+
create: _melite_estate_drafts_drafts_patch_parameter_2$schema,
|
|
711
|
+
},
|
|
712
|
+
},
|
|
713
|
+
{
|
|
714
|
+
name: 'expectRev',
|
|
715
|
+
wire: 'expectRev',
|
|
716
|
+
source: 'json',
|
|
717
|
+
codec: {
|
|
718
|
+
mode: 'strict',
|
|
719
|
+
typeSymbol: '@melite/estate-drafts#drafts/patch:expectRev',
|
|
720
|
+
create: _melite_estate_drafts_drafts_patch_parameter_3$schema,
|
|
721
|
+
},
|
|
722
|
+
},
|
|
723
|
+
],
|
|
724
|
+
cancellation: { parameter: 'signal' },
|
|
725
|
+
result: {
|
|
726
|
+
mode: 'strict',
|
|
727
|
+
typeSymbol: '@melite/estate-drafts/types#DraftPatchRow',
|
|
728
|
+
create: _melite_estate_drafts_drafts_patch_result$schema,
|
|
729
|
+
},
|
|
730
|
+
sourceLocation: {"file":"packages/estate/drafts/src/remote.ts","line":620,"column":9},
|
|
731
|
+
},
|
|
732
|
+
],
|
|
733
|
+
model: {
|
|
734
|
+
"services": [
|
|
735
|
+
{
|
|
736
|
+
"description": "The bench Remote owner: ensure/get over the same drafts domain (the bench doc IS a draft doc, id \"bench-<session>\").",
|
|
737
|
+
"summary": "The bench Remote owner: ensure/get over the same drafts domain (the bench doc IS a draft doc, id \"bench-<session>\").",
|
|
738
|
+
"tags": [],
|
|
739
|
+
"jsDoc": "/** The bench Remote owner: ensure/get over the same drafts domain\n * (the bench doc IS a draft doc, id \"bench-<session>\"). */",
|
|
740
|
+
"key": "benchRemote",
|
|
741
|
+
"exportName": "BenchRemoteService",
|
|
742
|
+
"members": [
|
|
743
|
+
{
|
|
744
|
+
"kind": "method",
|
|
745
|
+
"name": "remoteExportGet",
|
|
746
|
+
"signature": "@Remote(\"get\") async remoteExportGet( sessionKey: string, signal: AbortSignal, ): Promise<BenchGetRow>",
|
|
747
|
+
"summary": "Endpoint `bench/get` — one session's bench block as the row.",
|
|
748
|
+
"jsDoc": "/** Endpoint `bench/get` — one session's bench block as the row. */"
|
|
749
|
+
},
|
|
750
|
+
{
|
|
751
|
+
"kind": "method",
|
|
752
|
+
"name": "subscribe",
|
|
753
|
+
"signature": "@Remote({ mode: \"stream\" }) async *subscribe( sessionKey: string, signal: AbortSignal, ): AsyncIterable<BenchGetRow>",
|
|
754
|
+
"summary": "Endpoint `bench/subscribe` — THE PUSH SOURCE (the collapse plan's stream arm, 2026-09-12): the session's doc on open, then a fresh doc after EVERY write that touches the session (the change events the write arms fire).",
|
|
755
|
+
"jsDoc": "/** Endpoint `bench/subscribe` — THE PUSH SOURCE (the collapse\n * plan's stream arm, 2026-09-12): the session's doc on open, then\n * a fresh doc after EVERY write that touches the session (the\n * change events the write arms fire). Stream mode rides the\n * typert logical-stream carrier — the in-process mux carries it\n * today; the browser's resource provider consumes rev drift until\n * the host's HTTP stream face lands, then swaps its source here\n * with zero consumer changes. Abort ends the stream; a write's\n * listener fault never breaks the stream (the next write re-wakes\n * it). */"
|
|
756
|
+
},
|
|
757
|
+
{
|
|
758
|
+
"kind": "method",
|
|
759
|
+
"name": "remoteExportEnsure",
|
|
760
|
+
"signature": "@Remote(\"ensure\") async remoteExportEnsure( doc: BenchDoc, signal: AbortSignal, ): Promise<BenchEnsureRow>",
|
|
761
|
+
"summary": "Endpoint `bench/ensure` — birth or load (the only creating arm).",
|
|
762
|
+
"jsDoc": "/** Endpoint `bench/ensure` — birth or load (the only creating arm). */"
|
|
763
|
+
},
|
|
764
|
+
{
|
|
765
|
+
"kind": "method",
|
|
766
|
+
"name": "get",
|
|
767
|
+
"signature": "async get(session: string, signal: AbortSignal): Promise<BenchGetRow>",
|
|
768
|
+
"summary": "The in-process API the adapters above delegate to.",
|
|
769
|
+
"jsDoc": "/** The in-process API the adapters above delegate to. Classified\n * bench failures pass through untouched; only the open itself\n * wraps as bench/store-failed. */"
|
|
770
|
+
},
|
|
771
|
+
{
|
|
772
|
+
"kind": "method",
|
|
773
|
+
"name": "ensure",
|
|
774
|
+
"signature": "async ensure( doc: BenchDoc, signal: AbortSignal, ): Promise<BenchEnsureRow>",
|
|
775
|
+
"summary": "The in-process API the adapter above delegates to.",
|
|
776
|
+
"jsDoc": "/** The in-process API the adapter above delegates to. */"
|
|
777
|
+
},
|
|
778
|
+
{
|
|
779
|
+
"kind": "method",
|
|
780
|
+
"name": "remoteExportPatch",
|
|
781
|
+
"signature": "@Remote(\"patch\") async remoteExportPatch( sessionKey: string, doc: BenchDoc, signal: AbortSignal, ): Promise<BenchPatchRow>",
|
|
782
|
+
"summary": "Endpoint `bench/patch` — params merge (+result/runStatus) with CAS + log.",
|
|
783
|
+
"jsDoc": "/** Endpoint `bench/patch` — params merge (+result/runStatus) with\n * CAS + log. */"
|
|
784
|
+
},
|
|
785
|
+
{
|
|
786
|
+
"kind": "method",
|
|
787
|
+
"name": "remoteExportAddStage",
|
|
788
|
+
"signature": "@Remote(\"add-stage\") async remoteExportAddStage( sessionKey: string, doc: BenchDoc, signal: AbortSignal, ): Promise<BenchStageRow>",
|
|
789
|
+
"summary": "Endpoint `bench/add-stage` — append a card stage.",
|
|
790
|
+
"jsDoc": "/** Endpoint `bench/add-stage` — append a card stage. */"
|
|
791
|
+
},
|
|
792
|
+
{
|
|
793
|
+
"kind": "method",
|
|
794
|
+
"name": "remoteExportRemoveStage",
|
|
795
|
+
"signature": "@Remote(\"remove-stage\") async remoteExportRemoveStage( sessionKey: string, doc: BenchDoc, signal: AbortSignal, ): Promise<BenchStageRow>",
|
|
796
|
+
"summary": "Endpoint `bench/remove-stage` — splice one stage out.",
|
|
797
|
+
"jsDoc": "/** Endpoint `bench/remove-stage` — splice one stage out. */"
|
|
798
|
+
},
|
|
799
|
+
{
|
|
800
|
+
"kind": "method",
|
|
801
|
+
"name": "remoteExportClear",
|
|
802
|
+
"signature": "@Remote(\"clear\") async remoteExportClear( sessionKey: string, doc: BenchDoc, signal: AbortSignal, ): Promise<BenchClearRow>",
|
|
803
|
+
"summary": "Endpoint `bench/clear` — THE OPERATOR'S CLEAR ALL (2026-10-10, \"there is no clear all\"): every stage out in one verb, one log entry, undoable whole.",
|
|
804
|
+
"jsDoc": "/** Endpoint `bench/clear` — THE OPERATOR'S CLEAR ALL (2026-10-10,\n * \"there is no clear all\"): every stage out in one verb, one log\n * entry, undoable whole. The nuclear seat for a bench that is\n * itself the wound. */"
|
|
805
|
+
},
|
|
806
|
+
{
|
|
807
|
+
"kind": "method",
|
|
808
|
+
"name": "remoteExportRewire",
|
|
809
|
+
"signature": "@Remote(\"rewire\") async remoteExportRewire( sessionKey: string, doc: BenchDoc, signal: AbortSignal, ): Promise<BenchRewireRow>",
|
|
810
|
+
"summary": "Endpoint `bench/rewire` — set or clear one input binding.",
|
|
811
|
+
"jsDoc": "/** Endpoint `bench/rewire` — set or clear one input binding. */"
|
|
812
|
+
},
|
|
813
|
+
{
|
|
814
|
+
"kind": "method",
|
|
815
|
+
"name": "remoteExportReorder",
|
|
816
|
+
"signature": "@Remote(\"reorder\") async remoteExportReorder( sessionKey: string, doc: BenchDoc, signal: AbortSignal, ): Promise<BenchReorderRow>",
|
|
817
|
+
"summary": "Endpoint `bench/reorder` — move one stage to a new index (the drag-reorder door, 2026-09-11).",
|
|
818
|
+
"jsDoc": "/** Endpoint `bench/reorder` — move one stage to a new index (the\n * drag-reorder door, 2026-09-11). */"
|
|
819
|
+
},
|
|
820
|
+
{
|
|
821
|
+
"kind": "method",
|
|
822
|
+
"name": "remoteExportGroup",
|
|
823
|
+
"signature": "@Remote(\"group\") async remoteExportGroup( sessionKey: string, doc: BenchDoc, signal: AbortSignal, ): Promise<BenchStageRow>",
|
|
824
|
+
"summary": "Endpoint `bench/group` — collapse 2+ stages into a compound row (the Group Cards sub-view's door, 2026-09-11).",
|
|
825
|
+
"jsDoc": "/** Endpoint `bench/group` — collapse 2+ stages into a compound row\n * (the Group Cards sub-view's door, 2026-09-11). */"
|
|
826
|
+
},
|
|
827
|
+
{
|
|
828
|
+
"kind": "method",
|
|
829
|
+
"name": "remoteExportUngroup",
|
|
830
|
+
"signature": "@Remote(\"ungroup\") async remoteExportUngroup( sessionKey: string, doc: BenchDoc, signal: AbortSignal, ): Promise<BenchStageRow>",
|
|
831
|
+
"summary": "Endpoint `bench/ungroup` — spill a compound's children back.",
|
|
832
|
+
"jsDoc": "/** Endpoint `bench/ungroup` — spill a compound's children back. */"
|
|
833
|
+
},
|
|
834
|
+
{
|
|
835
|
+
"kind": "method",
|
|
836
|
+
"name": "remoteExportUndo",
|
|
837
|
+
"signature": "@Remote(\"undo\") async remoteExportUndo( sessionKey: string, doc: BenchDoc, signal: AbortSignal, ): Promise<BenchUndoRow>",
|
|
838
|
+
"summary": "Endpoint `bench/undo` — walk the log tail, apply inverses.",
|
|
839
|
+
"jsDoc": "/** Endpoint `bench/undo` — walk the log tail, apply inverses. */"
|
|
840
|
+
},
|
|
841
|
+
{
|
|
842
|
+
"kind": "method",
|
|
843
|
+
"name": "patch",
|
|
844
|
+
"signature": "async patch( session: string, doc: BenchDoc, signal: AbortSignal, ): Promise<BenchPatchRow>"
|
|
845
|
+
},
|
|
846
|
+
{
|
|
847
|
+
"kind": "method",
|
|
848
|
+
"name": "addStage",
|
|
849
|
+
"signature": "async addStage( session: string, doc: BenchDoc, signal: AbortSignal, ): Promise<BenchStageRow>"
|
|
850
|
+
},
|
|
851
|
+
{
|
|
852
|
+
"kind": "method",
|
|
853
|
+
"name": "removeStage",
|
|
854
|
+
"signature": "async removeStage( session: string, doc: BenchDoc, signal: AbortSignal, ): Promise<BenchStageRow>"
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
"kind": "method",
|
|
858
|
+
"name": "clear",
|
|
859
|
+
"signature": "async clear( session: string, doc: BenchDoc, signal: AbortSignal, ): Promise<BenchClearRow>"
|
|
860
|
+
},
|
|
861
|
+
{
|
|
862
|
+
"kind": "method",
|
|
863
|
+
"name": "rewire",
|
|
864
|
+
"signature": "async rewire( session: string, doc: BenchDoc, signal: AbortSignal, ): Promise<BenchRewireRow>"
|
|
865
|
+
},
|
|
866
|
+
{
|
|
867
|
+
"kind": "method",
|
|
868
|
+
"name": "undo",
|
|
869
|
+
"signature": "async undo( session: string, doc: BenchDoc, signal: AbortSignal, ): Promise<BenchUndoRow>"
|
|
870
|
+
}
|
|
871
|
+
],
|
|
872
|
+
"types": [
|
|
873
|
+
{
|
|
874
|
+
"name": "BenchClearRow",
|
|
875
|
+
"declaration": "export interface BenchClearRow {\n readonly draft_id: string;\n readonly session: string;\n readonly rev: number;\n readonly cleared: number;\n}"
|
|
876
|
+
},
|
|
877
|
+
{
|
|
878
|
+
"name": "BenchDoc",
|
|
879
|
+
"declaration": "export type BenchDoc = { readonly [key: string]: JsonValue; };"
|
|
880
|
+
},
|
|
881
|
+
{
|
|
882
|
+
"name": "BenchEnsureRow",
|
|
883
|
+
"declaration": "export interface BenchEnsureRow {\n readonly draft_id: string;\n readonly session: string;\n readonly rev: number;\n readonly intent: JsonValue;\n readonly stages: JsonValue;\n readonly created: boolean;\n}"
|
|
884
|
+
},
|
|
885
|
+
{
|
|
886
|
+
"name": "BenchGetRow",
|
|
887
|
+
"declaration": "export interface BenchGetRow {\n readonly draft_id: string;\n readonly session: string;\n readonly rev: number;\n readonly intent: JsonValue;\n readonly stages: JsonValue;\n readonly log: readonly { readonly [key: string]: JsonValue; }[];\n}"
|
|
888
|
+
},
|
|
889
|
+
{
|
|
890
|
+
"name": "BenchPatchRow",
|
|
891
|
+
"declaration": "export interface BenchPatchRow {\n readonly draft_id: string;\n readonly session: string;\n readonly rev: number;\n readonly stage: string;\n readonly patched: readonly string[];\n}"
|
|
892
|
+
},
|
|
893
|
+
{
|
|
894
|
+
"name": "BenchReorderRow",
|
|
895
|
+
"declaration": "export interface BenchReorderRow {\n readonly draft_id: string;\n readonly session: string;\n readonly rev: number;\n readonly stage: string;\n readonly from: number;\n readonly to: number;\n}"
|
|
896
|
+
},
|
|
897
|
+
{
|
|
898
|
+
"name": "BenchRewireRow",
|
|
899
|
+
"declaration": "export interface BenchRewireRow {\n readonly draft_id: string;\n readonly session: string;\n readonly rev: number;\n readonly stage: string;\n readonly input: string;\n}"
|
|
900
|
+
},
|
|
901
|
+
{
|
|
902
|
+
"name": "BenchStageRow",
|
|
903
|
+
"declaration": "export interface BenchStageRow {\n readonly draft_id: string;\n readonly session: string;\n readonly rev: number;\n readonly stage: string;\n}"
|
|
904
|
+
},
|
|
905
|
+
{
|
|
906
|
+
"name": "BenchUndoRow",
|
|
907
|
+
"declaration": "export interface BenchUndoRow {\n readonly draft_id: string;\n readonly session: string;\n readonly rev: number;\n readonly undone: readonly number[];\n readonly stages: JsonValue;\n}"
|
|
908
|
+
},
|
|
909
|
+
{
|
|
910
|
+
"name": "JsonValue",
|
|
911
|
+
"declaration": "export type JsonValue = string | number | boolean | null | JsonValue[] | { readonly [key: string]: JsonValue; };"
|
|
912
|
+
}
|
|
913
|
+
]
|
|
914
|
+
},
|
|
915
|
+
{
|
|
916
|
+
"description": "The drafts Remote owner: list/get over the storage domain.",
|
|
917
|
+
"summary": "The drafts Remote owner: list/get over the storage domain.",
|
|
918
|
+
"tags": [],
|
|
919
|
+
"jsDoc": "/** The drafts Remote owner: list/get over the storage domain. */",
|
|
920
|
+
"key": "draftsRemote",
|
|
921
|
+
"exportName": "DraftsRemoteService",
|
|
922
|
+
"members": [
|
|
923
|
+
{
|
|
924
|
+
"kind": "method",
|
|
925
|
+
"name": "remoteExportList",
|
|
926
|
+
"signature": "@Remote(\"list\") async remoteExportList(signal: AbortSignal): Promise<DraftListResult>",
|
|
927
|
+
"summary": "Endpoint `drafts/list` — the domain index, recency DESC.",
|
|
928
|
+
"jsDoc": "/** Endpoint `drafts/list` — the domain index, recency DESC. */"
|
|
929
|
+
},
|
|
930
|
+
{
|
|
931
|
+
"kind": "method",
|
|
932
|
+
"name": "remoteExportGet",
|
|
933
|
+
"signature": "@Remote(\"get\") async remoteExportGet( draftId: string, signal: AbortSignal, ): Promise<DraftGetRow>",
|
|
934
|
+
"summary": "Endpoint `drafts/get` — one doc by id.",
|
|
935
|
+
"jsDoc": "/** Endpoint `drafts/get` — one doc by id. */"
|
|
936
|
+
},
|
|
937
|
+
{
|
|
938
|
+
"kind": "method",
|
|
939
|
+
"name": "list",
|
|
940
|
+
"signature": "async list(signal: AbortSignal): Promise<DraftListResult>",
|
|
941
|
+
"summary": "The in-process API the adapters above delegate to.",
|
|
942
|
+
"jsDoc": "/** The in-process API the adapters above delegate to. */"
|
|
943
|
+
},
|
|
944
|
+
{
|
|
945
|
+
"kind": "method",
|
|
946
|
+
"name": "get",
|
|
947
|
+
"signature": "async get( draftId: string, signal: AbortSignal, ): Promise<Record<string, unknown>>",
|
|
948
|
+
"summary": "The in-process API the adapter above delegates to.",
|
|
949
|
+
"jsDoc": "/** The in-process API the adapter above delegates to. */"
|
|
950
|
+
},
|
|
951
|
+
{
|
|
952
|
+
"kind": "method",
|
|
953
|
+
"name": "remoteExportPatch",
|
|
954
|
+
"signature": "@Remote(\"patch\") async remoteExportPatch( draftId: string, stageId: string, patch: DraftStagePatch, expectRev: number | null, signal: AbortSignal, ): Promise<DraftPatchRow>",
|
|
955
|
+
"summary": "Endpoint `drafts/patch` — the stage patch door, REBORN on the domain (2026-09-11; the gateway-era PATCH /v1/flows/drafts/:id/ stages/:sid died with the app and stroke L left the client door a throwing stub).",
|
|
956
|
+
"jsDoc": "/** Endpoint `drafts/patch` — the stage patch door, REBORN on the\n * domain (2026-09-11; the gateway-era PATCH /v1/flows/drafts/:id/\n * stages/:sid died with the app and stroke L left the client door\n * a throwing stub). Semantics VERBATIM from the old door (hDraftStagePatch, the retired gateway drafts door): admission on the fixed key set (STAGE_PATCH_KEYS: params | result | runStatus | inputs | inputOutputs — unknown\n * keys refuse with the door's voice), params merge PER-KEY into\n * the stage's existing params (never replace), the domain write\n * bumps the recency column, and the answer is the delivered\n * envelope. THE SHARED STATE DOOR: the agent (bench verbs) and\n * the user (the card drilldowns) author the SAME domain records\n * through it — one truth, two authors.\n *\n * THE LAYERED-PARAMS LAW (2026-09-14, the parameter audit): the\n * params map is the stage's USER layer — a key's PRESENCE is the\n * override mark (never its value). Two additions make the door\n * speak it: (1) JSON Merge Patch semantics for params — a null\n * value DELETES the key (the reset/unset path; RFC 7386's\n * convention, the wire form of the settings system's unset path\n * op); (2) the door JOINS the bench CAS law — every write bumps\n * bench.rev and appends a kind:'patch' log entry, and expectRev\n * (nullable) fences the write: a bench that moved refuses loud\n * with bench/cas-conflict carrying current_rev, never merges\n * under the earlier author. */"
|
|
957
|
+
},
|
|
958
|
+
{
|
|
959
|
+
"kind": "method",
|
|
960
|
+
"name": "patch",
|
|
961
|
+
"signature": "async patch( draftId: string, stageId: string, patch: Record<string, unknown>, expectRev: number | null, signal: AbortSignal, ): Promise<DraftPatchRow>",
|
|
962
|
+
"summary": "The patch arm the adapter above delegates to.",
|
|
963
|
+
"jsDoc": "/** The patch arm the adapter above delegates to. */"
|
|
964
|
+
}
|
|
965
|
+
],
|
|
966
|
+
"types": [
|
|
967
|
+
{
|
|
968
|
+
"name": "DraftGetRow",
|
|
969
|
+
"declaration": "export type DraftGetRow = { readonly [key: string]: JsonValue; };"
|
|
970
|
+
},
|
|
971
|
+
{
|
|
972
|
+
"name": "DraftListResult",
|
|
973
|
+
"declaration": "export interface DraftListResult {\n readonly count: number;\n readonly drafts: readonly DraftListRow[];\n}"
|
|
974
|
+
},
|
|
975
|
+
{
|
|
976
|
+
"name": "DraftListRow",
|
|
977
|
+
"declaration": "export interface DraftListRow {\n readonly draft_id: string;\n readonly model: string;\n readonly name: string;\n}"
|
|
978
|
+
},
|
|
979
|
+
{
|
|
980
|
+
"name": "DraftPatchRow",
|
|
981
|
+
"declaration": "export interface DraftPatchRow {\n draftId: string;\n stageId: string;\n delivered: boolean;\n reason?: string;\n patched?: string[];\n rev?: number;\n}"
|
|
982
|
+
},
|
|
983
|
+
{
|
|
984
|
+
"name": "DraftStagePatch",
|
|
985
|
+
"declaration": "export type DraftStagePatch = { params?: JsonValue; result?: JsonValue; runStatus?: JsonValue; health?: JsonValue; inputs?: JsonValue; inputOutputs?: JsonValue; };"
|
|
986
|
+
},
|
|
987
|
+
{
|
|
988
|
+
"name": "JsonValue",
|
|
989
|
+
"declaration": "export type JsonValue = string | number | boolean | null | JsonValue[] | { readonly [key: string]: JsonValue; };"
|
|
990
|
+
}
|
|
991
|
+
]
|
|
992
|
+
}
|
|
993
|
+
],
|
|
994
|
+
"events": [
|
|
995
|
+
{
|
|
996
|
+
"description": "A bench write landed. Emitted after every successful bench verb (and after the drafts-patch door's bench-shaped write).",
|
|
997
|
+
"summary": "A bench write landed.",
|
|
998
|
+
"tags": [
|
|
999
|
+
{
|
|
1000
|
+
"name": "param",
|
|
1001
|
+
"argument": "session",
|
|
1002
|
+
"comment": "- the bench session whose doc changed.",
|
|
1003
|
+
"text": "@param session - the bench session whose doc changed."
|
|
1004
|
+
}
|
|
1005
|
+
],
|
|
1006
|
+
"jsDoc": "/**\n * A bench write landed. Emitted after every successful bench verb\n * (and after the drafts-patch door's bench-shaped write).\n * @param session - the bench session whose doc changed.\n */",
|
|
1007
|
+
"name": "bench.changed",
|
|
1008
|
+
"signature": "'bench.changed'(session: string): void"
|
|
1009
|
+
}
|
|
1010
|
+
],
|
|
1011
|
+
"objects": []
|
|
1012
|
+
},
|
|
1013
|
+
}
|