@deepseek-ai/dsh-api-settings-controller 0.1.2-alpha.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.
@@ -0,0 +1,540 @@
1
+ /* Generated by @deepseek-ai/dsh-typert-generator from FaceModel — do not edit. */
2
+ import { z } from 'zod'
3
+
4
+ const JsonValueRemoteCodec$schema = 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))])
5
+ const JsonValueRemoteCodec$schema2 = 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))])
6
+ const JsonValueRemoteCodec$schema3 = 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))])
7
+ const JsonValueRemoteCodec$schema4 = 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))])
8
+ const JsonValueRemoteCodec$schema5 = 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))])
9
+ const JsonValueRemoteCodec$schema6 = 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))])
10
+ const JsonValueRemoteCodec$schema7 = 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))])
11
+ const _deepseek_ai_dsh_api_settings_controller_credentials_describe_parameter_0$schema = z.array(z.string())
12
+ const _deepseek_ai_dsh_api_settings_controller_credentials_describe_result$schema = z.record(z.string(), z.object({
13
+ 'configured': z.boolean(),
14
+ 'source': z.string().optional(),
15
+ 'writable': z.boolean(),
16
+ }))
17
+ const _deepseek_ai_dsh_api_settings_controller_credentials_set_parameter_0$schema = z.string()
18
+ const _deepseek_ai_dsh_api_settings_controller_credentials_set_parameter_1$schema = z.string()
19
+ const _deepseek_ai_dsh_api_settings_controller_credentials_set_result$schema = z.void()
20
+ const _deepseek_ai_dsh_api_settings_controller_credentials_unset_parameter_0$schema = z.string()
21
+ const _deepseek_ai_dsh_api_settings_controller_credentials_unset_result$schema = z.void()
22
+ const _deepseek_ai_dsh_api_settings_controller_settings_canOpenAgentPresetDirectory_result$schema = z.boolean()
23
+ const _deepseek_ai_dsh_api_settings_controller_settings_describe_result$schema = z.object({
24
+ 'writable': z.boolean(),
25
+ 'hasDocument': z.boolean(),
26
+ 'namespaces': z.array(z.object({
27
+ 'ns': z.string(),
28
+ 'schema': 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))]),
29
+ '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))]),
30
+ 'base': 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))]).optional(),
31
+ 'user': 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))]).optional(),
32
+ 'applies': z.union([z.literal("live"), z.literal("restart")]),
33
+ 'secrets': z.array(z.object({
34
+ 'path': z.array(z.string()),
35
+ 'set': z.boolean(),
36
+ })),
37
+ 'revision': z.number(),
38
+ })),
39
+ })
40
+ const _deepseek_ai_dsh_api_settings_controller_settings_mutate_parameter_0$schema = z.string()
41
+ const _deepseek_ai_dsh_api_settings_controller_settings_mutate_parameter_1$schema = z.array(z.union([z.object({
42
+ 'op': z.literal("set"),
43
+ 'path': z.array(z.string()),
44
+ '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))]),
45
+ }), z.object({
46
+ 'op': z.literal("unset"),
47
+ 'path': z.array(z.string()),
48
+ })]))
49
+ const _deepseek_ai_dsh_api_settings_controller_settings_mutate_parameter_2$schema = z.union([z.undefined(), z.number()])
50
+ const _deepseek_ai_dsh_api_settings_controller_settings_mutate_result$schema = z.object({
51
+ 'ns': z.string(),
52
+ 'schema': 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))]),
53
+ '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))]),
54
+ 'base': 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))]).optional(),
55
+ 'user': 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))]).optional(),
56
+ 'applies': z.union([z.literal("live"), z.literal("restart")]),
57
+ 'secrets': z.array(z.object({
58
+ 'path': z.array(z.string()),
59
+ 'set': z.boolean(),
60
+ })),
61
+ 'revision': z.number(),
62
+ })
63
+ const _deepseek_ai_dsh_api_settings_controller_settings_openAgentPresetDirectory_parameter_0$schema = z.string()
64
+ const _deepseek_ai_dsh_api_settings_controller_settings_openAgentPresetDirectory_result$schema = z.union([z.object({
65
+ 'opened': z.literal(true).readonly(),
66
+ }), z.object({
67
+ 'opened': z.literal(false).readonly(),
68
+ 'path': z.string().readonly(),
69
+ })])
70
+ const _deepseek_ai_dsh_api_settings_controller_settings_openSettingsDocument_result$schema = z.object({
71
+ 'opened': z.literal(true).readonly(),
72
+ })
73
+ const _deepseek_ai_dsh_api_settings_controller_settings_replace_parameter_0$schema = z.string()
74
+ const _deepseek_ai_dsh_api_settings_controller_settings_replace_parameter_1$schema = z.record(z.string(), 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))]))
75
+ const _deepseek_ai_dsh_api_settings_controller_settings_replace_parameter_2$schema = z.union([z.undefined(), z.number()])
76
+ const _deepseek_ai_dsh_api_settings_controller_settings_replace_result$schema = z.object({
77
+ 'ns': z.string(),
78
+ 'schema': 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))]),
79
+ '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))]),
80
+ 'base': 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))]).optional(),
81
+ 'user': 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))]).optional(),
82
+ 'applies': z.union([z.literal("live"), z.literal("restart")]),
83
+ 'secrets': z.array(z.object({
84
+ 'path': z.array(z.string()),
85
+ 'set': z.boolean(),
86
+ })),
87
+ 'revision': z.number(),
88
+ })
89
+ const _deepseek_ai_dsh_api_settings_controller_settings_update_parameter_0$schema = z.string()
90
+ const _deepseek_ai_dsh_api_settings_controller_settings_update_parameter_1$schema = 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))]))
91
+ const _deepseek_ai_dsh_api_settings_controller_settings_update_parameter_2$schema = z.union([z.undefined(), z.number()])
92
+ const _deepseek_ai_dsh_api_settings_controller_settings_update_result$schema = z.object({
93
+ 'ns': z.string(),
94
+ 'schema': 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))]),
95
+ '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))]),
96
+ 'base': 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))]).optional(),
97
+ 'user': 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))]).optional(),
98
+ 'applies': z.union([z.literal("live"), z.literal("restart")]),
99
+ 'secrets': z.array(z.object({
100
+ 'path': z.array(z.string()),
101
+ 'set': z.boolean(),
102
+ })),
103
+ 'revision': z.number(),
104
+ })
105
+
106
+ export const TYPERT = {
107
+ package: '@deepseek-ai/dsh-api-settings-controller',
108
+ face: 'host',
109
+ schemas: [
110
+ ],
111
+ invocations: [
112
+ {
113
+ id: '@deepseek-ai/dsh-api-settings-controller#credentials/describe',
114
+ service: 'credentialsController',
115
+ namespace: 'credentials',
116
+ method: 'describe',
117
+ invocation: { kind: 'direct' },
118
+ parameters: [
119
+ {
120
+ name: 'refs',
121
+ wire: 'refs',
122
+ source: 'json',
123
+ codec: {
124
+ mode: 'strict',
125
+ typeSymbol: '@deepseek-ai/dsh-api-settings-controller#credentials/describe:refs',
126
+ schema: _deepseek_ai_dsh_api_settings_controller_credentials_describe_parameter_0$schema,
127
+ },
128
+ },
129
+ ],
130
+ result: {
131
+ mode: 'strict',
132
+ typeSymbol: '@deepseek-ai/dsh-api-settings-controller#credentials/describe:result',
133
+ schema: _deepseek_ai_dsh_api_settings_controller_credentials_describe_result$schema,
134
+ },
135
+ sourceLocation: {"file":"packages/api/settings-controller/src/credentials.ts","line":83,"column":9},
136
+ },
137
+ {
138
+ id: '@deepseek-ai/dsh-api-settings-controller#credentials/set',
139
+ service: 'credentialsController',
140
+ namespace: 'credentials',
141
+ method: 'set',
142
+ invocation: { kind: 'direct' },
143
+ parameters: [
144
+ {
145
+ name: 'ref',
146
+ wire: 'ref',
147
+ source: 'json',
148
+ codec: {
149
+ mode: 'strict',
150
+ typeSymbol: '@deepseek-ai/dsh-api-settings-controller#credentials/set:ref',
151
+ schema: _deepseek_ai_dsh_api_settings_controller_credentials_set_parameter_0$schema,
152
+ },
153
+ },
154
+ {
155
+ name: 'value',
156
+ wire: 'value',
157
+ source: 'json',
158
+ codec: {
159
+ mode: 'strict',
160
+ typeSymbol: '@deepseek-ai/dsh-api-settings-controller#credentials/set:value',
161
+ schema: _deepseek_ai_dsh_api_settings_controller_credentials_set_parameter_1$schema,
162
+ },
163
+ },
164
+ ],
165
+ result: {
166
+ mode: 'strict',
167
+ typeSymbol: '@deepseek-ai/dsh-api-settings-controller#credentials/set:result',
168
+ schema: _deepseek_ai_dsh_api_settings_controller_credentials_set_result$schema,
169
+ },
170
+ sourceLocation: {"file":"packages/api/settings-controller/src/credentials.ts","line":100,"column":9},
171
+ },
172
+ {
173
+ id: '@deepseek-ai/dsh-api-settings-controller#credentials/unset',
174
+ service: 'credentialsController',
175
+ namespace: 'credentials',
176
+ method: 'unset',
177
+ invocation: { kind: 'direct' },
178
+ parameters: [
179
+ {
180
+ name: 'ref',
181
+ wire: 'ref',
182
+ source: 'json',
183
+ codec: {
184
+ mode: 'strict',
185
+ typeSymbol: '@deepseek-ai/dsh-api-settings-controller#credentials/unset:ref',
186
+ schema: _deepseek_ai_dsh_api_settings_controller_credentials_unset_parameter_0$schema,
187
+ },
188
+ },
189
+ ],
190
+ result: {
191
+ mode: 'strict',
192
+ typeSymbol: '@deepseek-ai/dsh-api-settings-controller#credentials/unset:result',
193
+ schema: _deepseek_ai_dsh_api_settings_controller_credentials_unset_result$schema,
194
+ },
195
+ sourceLocation: {"file":"packages/api/settings-controller/src/credentials.ts","line":113,"column":9},
196
+ },
197
+ {
198
+ id: '@deepseek-ai/dsh-api-settings-controller#settings/canOpenAgentPresetDirectory',
199
+ service: 'settingsController',
200
+ namespace: 'settings',
201
+ method: 'canOpenAgentPresetDirectory',
202
+ invocation: { kind: 'direct' },
203
+ parameters: [
204
+ ],
205
+ result: {
206
+ mode: 'strict',
207
+ typeSymbol: '@deepseek-ai/dsh-api-settings-controller#settings/canOpenAgentPresetDirectory:result',
208
+ schema: _deepseek_ai_dsh_api_settings_controller_settings_canOpenAgentPresetDirectory_result$schema,
209
+ },
210
+ sourceLocation: {"file":"packages/api/settings-controller/src/index.ts","line":131,"column":3},
211
+ },
212
+ {
213
+ id: '@deepseek-ai/dsh-api-settings-controller#settings/describe',
214
+ service: 'settingsController',
215
+ namespace: 'settings',
216
+ method: 'describe',
217
+ invocation: { kind: 'direct' },
218
+ parameters: [
219
+ ],
220
+ result: {
221
+ mode: 'strict',
222
+ typeSymbol: '@deepseek-ai/dsh-settings/types#SettingsDescribeValue',
223
+ schema: _deepseek_ai_dsh_api_settings_controller_settings_describe_result$schema,
224
+ },
225
+ sourceLocation: {"file":"packages/api/settings-controller/src/index.ts","line":117,"column":3},
226
+ },
227
+ {
228
+ id: '@deepseek-ai/dsh-api-settings-controller#settings/mutate',
229
+ service: 'settingsController',
230
+ namespace: 'settings',
231
+ method: 'mutate',
232
+ invocation: { kind: 'direct' },
233
+ parameters: [
234
+ {
235
+ name: 'ns',
236
+ wire: 'ns',
237
+ source: 'json',
238
+ codec: {
239
+ mode: 'strict',
240
+ typeSymbol: '@deepseek-ai/dsh-api-settings-controller#settings/mutate:ns',
241
+ schema: _deepseek_ai_dsh_api_settings_controller_settings_mutate_parameter_0$schema,
242
+ },
243
+ },
244
+ {
245
+ name: 'ops',
246
+ wire: 'ops',
247
+ source: 'json',
248
+ codec: {
249
+ mode: 'strict',
250
+ typeSymbol: '@deepseek-ai/dsh-api-settings-controller#settings/mutate:ops',
251
+ schema: _deepseek_ai_dsh_api_settings_controller_settings_mutate_parameter_1$schema,
252
+ },
253
+ },
254
+ {
255
+ name: 'expectedRevision',
256
+ wire: 'expectedRevision',
257
+ source: 'json',
258
+ acceptsUndefined: true,
259
+ codec: {
260
+ mode: 'strict',
261
+ typeSymbol: '@deepseek-ai/dsh-api-settings-controller#settings/mutate:expectedRevision',
262
+ schema: _deepseek_ai_dsh_api_settings_controller_settings_mutate_parameter_2$schema,
263
+ },
264
+ },
265
+ ],
266
+ result: {
267
+ mode: 'strict',
268
+ typeSymbol: '@deepseek-ai/dsh-settings/types#SettingsNamespaceView',
269
+ schema: _deepseek_ai_dsh_api_settings_controller_settings_mutate_result$schema,
270
+ },
271
+ sourceLocation: {"file":"packages/api/settings-controller/src/index.ts","line":180,"column":9},
272
+ },
273
+ {
274
+ id: '@deepseek-ai/dsh-api-settings-controller#settings/openAgentPresetDirectory',
275
+ service: 'settingsController',
276
+ namespace: 'settings',
277
+ method: 'openAgentPresetDirectory',
278
+ invocation: { kind: 'direct' },
279
+ parameters: [
280
+ {
281
+ name: 'agentPreset',
282
+ wire: 'agentPreset',
283
+ source: 'json',
284
+ codec: {
285
+ mode: 'strict',
286
+ typeSymbol: '@deepseek-ai/dsh-api-settings-controller#settings/openAgentPresetDirectory:agentPreset',
287
+ schema: _deepseek_ai_dsh_api_settings_controller_settings_openAgentPresetDirectory_parameter_0$schema,
288
+ },
289
+ },
290
+ ],
291
+ cancellation: { parameter: 'signal' },
292
+ result: {
293
+ mode: 'strict',
294
+ typeSymbol: '@deepseek-ai/dsh-api-settings-controller/types#AgentPresetDirectoryOpenValue',
295
+ schema: _deepseek_ai_dsh_api_settings_controller_settings_openAgentPresetDirectory_result$schema,
296
+ },
297
+ sourceLocation: {"file":"packages/api/settings-controller/src/index.ts","line":226,"column":9},
298
+ },
299
+ {
300
+ id: '@deepseek-ai/dsh-api-settings-controller#settings/openSettingsDocument',
301
+ service: 'settingsController',
302
+ namespace: 'settings',
303
+ method: 'openSettingsDocument',
304
+ invocation: { kind: 'direct' },
305
+ parameters: [
306
+ ],
307
+ cancellation: { parameter: 'signal' },
308
+ result: {
309
+ mode: 'strict',
310
+ typeSymbol: '@deepseek-ai/dsh-api-settings-controller/types#SettingsDocumentOpenValue',
311
+ schema: _deepseek_ai_dsh_api_settings_controller_settings_openSettingsDocument_result$schema,
312
+ },
313
+ sourceLocation: {"file":"packages/api/settings-controller/src/index.ts","line":195,"column":9},
314
+ },
315
+ {
316
+ id: '@deepseek-ai/dsh-api-settings-controller#settings/replace',
317
+ service: 'settingsController',
318
+ namespace: 'settings',
319
+ method: 'replace',
320
+ invocation: { kind: 'direct' },
321
+ parameters: [
322
+ {
323
+ name: 'ns',
324
+ wire: 'ns',
325
+ source: 'json',
326
+ codec: {
327
+ mode: 'strict',
328
+ typeSymbol: '@deepseek-ai/dsh-api-settings-controller#settings/replace:ns',
329
+ schema: _deepseek_ai_dsh_api_settings_controller_settings_replace_parameter_0$schema,
330
+ },
331
+ },
332
+ {
333
+ name: 'section',
334
+ wire: 'section',
335
+ source: 'json',
336
+ codec: {
337
+ mode: 'strict',
338
+ typeSymbol: '@deepseek-ai/dsh-api-settings-controller#settings/replace:section',
339
+ schema: _deepseek_ai_dsh_api_settings_controller_settings_replace_parameter_1$schema,
340
+ },
341
+ },
342
+ {
343
+ name: 'expectedRevision',
344
+ wire: 'expectedRevision',
345
+ source: 'json',
346
+ acceptsUndefined: true,
347
+ codec: {
348
+ mode: 'strict',
349
+ typeSymbol: '@deepseek-ai/dsh-api-settings-controller#settings/replace:expectedRevision',
350
+ schema: _deepseek_ai_dsh_api_settings_controller_settings_replace_parameter_2$schema,
351
+ },
352
+ },
353
+ ],
354
+ result: {
355
+ mode: 'strict',
356
+ typeSymbol: '@deepseek-ai/dsh-settings/types#SettingsNamespaceView',
357
+ schema: _deepseek_ai_dsh_api_settings_controller_settings_replace_result$schema,
358
+ },
359
+ sourceLocation: {"file":"packages/api/settings-controller/src/index.ts","line":161,"column":3},
360
+ },
361
+ {
362
+ id: '@deepseek-ai/dsh-api-settings-controller#settings/update',
363
+ service: 'settingsController',
364
+ namespace: 'settings',
365
+ method: 'update',
366
+ invocation: { kind: 'direct' },
367
+ parameters: [
368
+ {
369
+ name: 'ns',
370
+ wire: 'ns',
371
+ source: 'json',
372
+ codec: {
373
+ mode: 'strict',
374
+ typeSymbol: '@deepseek-ai/dsh-api-settings-controller#settings/update:ns',
375
+ schema: _deepseek_ai_dsh_api_settings_controller_settings_update_parameter_0$schema,
376
+ },
377
+ },
378
+ {
379
+ name: 'patch',
380
+ wire: 'patch',
381
+ source: 'json',
382
+ codec: {
383
+ mode: 'strict',
384
+ typeSymbol: '@deepseek-ai/dsh-api-settings-controller#settings/update:patch',
385
+ schema: _deepseek_ai_dsh_api_settings_controller_settings_update_parameter_1$schema,
386
+ },
387
+ },
388
+ {
389
+ name: 'expectedRevision',
390
+ wire: 'expectedRevision',
391
+ source: 'json',
392
+ acceptsUndefined: true,
393
+ codec: {
394
+ mode: 'strict',
395
+ typeSymbol: '@deepseek-ai/dsh-api-settings-controller#settings/update:expectedRevision',
396
+ schema: _deepseek_ai_dsh_api_settings_controller_settings_update_parameter_2$schema,
397
+ },
398
+ },
399
+ ],
400
+ result: {
401
+ mode: 'strict',
402
+ typeSymbol: '@deepseek-ai/dsh-settings/types#SettingsNamespaceView',
403
+ schema: _deepseek_ai_dsh_api_settings_controller_settings_update_result$schema,
404
+ },
405
+ sourceLocation: {"file":"packages/api/settings-controller/src/index.ts","line":144,"column":3},
406
+ },
407
+ ],
408
+ model: {
409
+ "services": [
410
+ {
411
+ "description": "Host service backing the generated `ctx.remote.credentials` namespace. It carries every wire obligation the credential seam itself does not: the batch fan-out bound, the field-by-field view projection, the reference-grammar guard, and the refusal mapping. Secret values cross in one direction only — no method here returns one.",
412
+ "summary": "Host service backing the generated `ctx.remote.credentials` namespace.",
413
+ "tags": [],
414
+ "jsDoc": "/**\n * Host service backing the generated `ctx.remote.credentials` namespace. It\n * carries every wire obligation the credential seam itself does not: the batch\n * fan-out bound, the field-by-field view projection, the reference-grammar\n * guard, and the refusal mapping. Secret values cross in one direction only —\n * no method here returns one.\n */",
415
+ "key": "credentialsController",
416
+ "exportName": "CredentialsController",
417
+ "members": [
418
+ {
419
+ "kind": "method",
420
+ "name": "describe",
421
+ "signature": "@Remote async describe(refs: string[]): Promise<Record<string, CredentialInfo>>",
422
+ "summary": "Describe several references for one configuration surface.",
423
+ "jsDoc": "/**\n * Describe several references for one configuration surface. Batched because\n * a settings page describes every reference its rows name at once, and one\n * round trip keeps those rows from settling separately.\n * @param refs - reference names, at most {@link MAX_DESCRIBE_REFS}; a name outside the grammar\n * rejects the whole call as `gateway/bad-request`.\n * @returns one view per requested name, keyed by that name.\n * @throws RemoteError when the request is invalid or no credential provider is mounted.\n */"
424
+ },
425
+ {
426
+ "kind": "method",
427
+ "name": "set",
428
+ "signature": "@Remote async set(ref: string, value: string): Promise<void>",
429
+ "summary": "Store one value from a configuration surface.",
430
+ "jsDoc": "/**\n * Store one value from a configuration surface. The value crosses the wire in\n * this direction only: no read path returns it.\n * @param ref - reference name to store under.\n * @param value - the non-empty secret value.\n * @throws RemoteError when the request is invalid, no provider is mounted, or the provider refuses the write.\n */"
431
+ },
432
+ {
433
+ "kind": "method",
434
+ "name": "unset",
435
+ "signature": "@Remote async unset(ref: string): Promise<void>",
436
+ "summary": "Remove one reference from a configuration surface.",
437
+ "jsDoc": "/**\n * Remove one reference from a configuration surface.\n * @param ref - reference name to remove.\n * @throws RemoteError when the request is invalid, no provider is mounted, or the provider refuses the write.\n */"
438
+ }
439
+ ],
440
+ "types": [
441
+ {
442
+ "name": "CredentialInfo",
443
+ "declaration": "export interface CredentialInfo {\n configured: boolean;\n source?: string;\n writable: boolean;\n}"
444
+ }
445
+ ]
446
+ },
447
+ {
448
+ "description": "Host service backing the generated `ctx.remote.settings` namespace. Every remote read uses `redactSecrets: true`, so a `role('secret')` field cannot ride a response. Writes expose the settings service's merge, replacement, and path-addressed operations, and classify every provider refusal as `settings/conflict` or `settings/rejected` with the service's message.",
449
+ "summary": "Host service backing the generated `ctx.remote.settings` namespace.",
450
+ "tags": [],
451
+ "jsDoc": "/**\n * Host service backing the generated `ctx.remote.settings` namespace. Every\n * remote read uses `redactSecrets: true`, so a `role('secret')` field cannot\n * ride a response. Writes expose the settings service's merge, replacement,\n * and path-addressed operations, and classify every provider refusal as\n * `settings/conflict` or `settings/rejected` with the service's message.\n */",
452
+ "key": "settingsController",
453
+ "exportName": "SettingsController",
454
+ "members": [
455
+ {
456
+ "kind": "method",
457
+ "name": "describe",
458
+ "signature": "@Remote describe(): SettingsDescribeValue",
459
+ "summary": "Describe every registered namespace for a configuration page: redacted layered values plus the serialized schema the page renders its form from.",
460
+ "jsDoc": "/**\n * Describe every registered namespace for a configuration page: redacted\n * layered values plus the serialized schema the page renders its form from.\n * @returns provider writability, local-document presence, and one view per namespace.\n * @throws RemoteError when no settings provider is mounted.\n */"
461
+ },
462
+ {
463
+ "kind": "method",
464
+ "name": "canOpenAgentPresetDirectory",
465
+ "signature": "@Remote canOpenAgentPresetDirectory(): boolean",
466
+ "summary": "Report whether this deployment can open an authored Agent preset directory natively.",
467
+ "jsDoc": "/**\n * Report whether this deployment can open an authored Agent preset directory natively.\n * @returns true when the matching open operation is available.\n */"
468
+ },
469
+ {
470
+ "kind": "method",
471
+ "name": "update",
472
+ "signature": "@Remote update( ns: string, patch: Record<string, JsonValue>, expectedRevision: number | undefined, ): Promise<SettingsNamespaceView>",
473
+ "summary": "Merge a patch into one namespace's stored user section.",
474
+ "jsDoc": "/**\n * Merge a patch into one namespace's stored user section.\n * @param ns - namespace key to write.\n * @param patch - fields to merge into the user section.\n * @param expectedRevision - revision the caller read; `undefined` writes unconditionally.\n * @returns the namespace's redacted view after the write.\n * @throws RemoteError when the request is invalid, no provider is mounted, or the provider refuses the write.\n */"
475
+ },
476
+ {
477
+ "kind": "method",
478
+ "name": "replace",
479
+ "signature": "@Remote replace( ns: string, section: Record<string, JsonValue>, expectedRevision: number | undefined, ): Promise<SettingsNamespaceView>",
480
+ "summary": "Replace one namespace's stored user section wholesale.",
481
+ "jsDoc": "/**\n * Replace one namespace's stored user section wholesale.\n * @param ns - namespace key to write.\n * @param section - complete replacement user section.\n * @param expectedRevision - revision the caller read; `undefined` writes unconditionally.\n * @returns the namespace's redacted view after the write.\n * @throws RemoteError when the request is invalid, no provider is mounted, or the provider refuses the write.\n */"
482
+ },
483
+ {
484
+ "kind": "method",
485
+ "name": "mutate",
486
+ "signature": "@Remote async mutate( ns: string, ops: SettingsPathOpView[], expectedRevision: number | undefined, ): Promise<SettingsNamespaceView>",
487
+ "summary": "Apply path-addressed edits to one namespace's user section, resolved against the section as stored rather than against whatever the caller last read, then answer with that namespace's new redacted view.",
488
+ "jsDoc": "/**\n * Apply path-addressed edits to one namespace's user section, resolved against\n * the section as stored rather than against whatever the caller last read,\n * then answer with that namespace's new redacted view.\n * @param ns - namespace key to write.\n * @param ops - the edits to apply, in order.\n * @param expectedRevision - revision the caller read; `undefined` writes unconditionally.\n * @returns the namespace's redacted view after the write.\n * @throws RemoteError when the request is invalid, no provider is mounted, or the provider refuses the write.\n */"
489
+ },
490
+ {
491
+ "kind": "method",
492
+ "name": "openSettingsDocument",
493
+ "signature": "@Remote async openSettingsDocument(signal: AbortSignal): Promise<SettingsDocumentOpenValue>",
494
+ "summary": "Materialize the provider-owned settings document and open it in a native text editor.",
495
+ "jsDoc": "/**\n * Materialize the provider-owned settings document and open it in a native text editor.\n * @param signal - caller lifetime; abort terminates preparation or the native command.\n * @returns confirmation after the native opener accepts the document.\n * @throws RemoteError when no document exists, preparation fails, or opening fails.\n */"
496
+ },
497
+ {
498
+ "kind": "method",
499
+ "name": "openAgentPresetDirectory",
500
+ "signature": "@Remote async openAgentPresetDirectory( agentPreset: string, signal: AbortSignal, ): Promise<AgentPresetDirectoryOpenValue>",
501
+ "summary": "Open one user-authored Agent preset directory or return its path when no native opener exists.",
502
+ "jsDoc": "/**\n * Open one user-authored Agent preset directory or return its path when no native opener exists.\n * @param agentPreset - preset id resolved against Host-owned roots.\n * @param signal - caller lifetime; abort terminates the native command.\n * @returns an opened confirmation or the resolved directory for text display.\n * @throws RemoteError when the preset is missing, read-only, invalid, or cannot be opened.\n */"
503
+ }
504
+ ],
505
+ "types": [
506
+ {
507
+ "name": "AgentPresetDirectoryOpenValue",
508
+ "declaration": "export type AgentPresetDirectoryOpenValue = { readonly opened: true; } | { readonly opened: false; readonly path: string; };"
509
+ },
510
+ {
511
+ "name": "JsonValue",
512
+ "declaration": "export type JsonValue = null | boolean | number | string | JsonValue[] | { [key: string]: JsonValue; };"
513
+ },
514
+ {
515
+ "name": "SettingsDescribeValue",
516
+ "declaration": "export interface SettingsDescribeValue {\n writable: boolean;\n hasDocument: boolean;\n namespaces: SettingsNamespaceView[];\n}"
517
+ },
518
+ {
519
+ "name": "SettingsDocumentOpenValue",
520
+ "declaration": "export interface SettingsDocumentOpenValue {\n readonly opened: true;\n}"
521
+ },
522
+ {
523
+ "name": "SettingsNamespaceView",
524
+ "declaration": "export interface SettingsNamespaceView {\n ns: string;\n schema: JsonValue;\n value: JsonValue;\n base?: JsonValue;\n user?: JsonValue;\n applies: 'live' | 'restart';\n secrets: SettingsSecretView[];\n revision: number;\n}"
525
+ },
526
+ {
527
+ "name": "SettingsPathOpView",
528
+ "declaration": "export type SettingsPathOpView = { op: 'set'; path: string[]; value: JsonValue; } | { op: 'unset'; path: string[]; };"
529
+ },
530
+ {
531
+ "name": "SettingsSecretView",
532
+ "declaration": "export interface SettingsSecretView {\n path: string[];\n set: boolean;\n}"
533
+ }
534
+ ]
535
+ }
536
+ ],
537
+ "events": [],
538
+ "objects": []
539
+ },
540
+ }
@@ -0,0 +1,46 @@
1
+ /* Generated by @deepseek-ai/dsh-typert-generator from the Host FaceModel — do not edit. */
2
+ import type {
3
+ RemoteResult,
4
+ TypertRemoteContribution,
5
+ } from '@deepseek-ai/dsh-typert-protocol'
6
+ import type { AgentPresetDirectoryOpenValue, SettingsDocumentOpenValue } from '@deepseek-ai/dsh-api-settings-controller/types'
7
+ import type { CredentialInfo } from '@deepseek-ai/dsh-credentials/types'
8
+ import type { SettingsDescribeValue, SettingsNamespaceView, SettingsPathOpView } from '@deepseek-ai/dsh-settings/types'
9
+ import type { JsonValue } from '@deepseek-ai/dsh-util-values'
10
+
11
+ declare module '@deepseek-ai/dsh-typert-protocol' {
12
+ interface TypertRemoteNamespace$63726564656e7469616c73 {
13
+ describe: (refs: string[]) => Promise<RemoteResult<Record<string, CredentialInfo>>>
14
+ set: (ref: string, value: string) => Promise<RemoteResult<void>>
15
+ unset: (ref: string) => Promise<RemoteResult<void>>
16
+ }
17
+ interface TypertRemoteNamespace$73657474696e6773 {
18
+ canOpenAgentPresetDirectory: () => Promise<RemoteResult<boolean>>
19
+ describe: () => Promise<RemoteResult<SettingsDescribeValue>>
20
+ mutate: (ns: string, ops: SettingsPathOpView[], expectedRevision: number | undefined) => Promise<RemoteResult<SettingsNamespaceView>>
21
+ openAgentPresetDirectory: (agentPreset: string, signal?: AbortSignal) => Promise<RemoteResult<AgentPresetDirectoryOpenValue>>
22
+ openSettingsDocument: (signal?: AbortSignal) => Promise<RemoteResult<SettingsDocumentOpenValue>>
23
+ replace: (ns: string, section: Record<string, JsonValue>, expectedRevision: number | undefined) => Promise<RemoteResult<SettingsNamespaceView>>
24
+ update: (ns: string, patch: Record<string, JsonValue>, expectedRevision: number | undefined) => Promise<RemoteResult<SettingsNamespaceView>>
25
+ }
26
+ interface TypertRemoteMap {
27
+ 'credentials/describe': (refs: string[]) => Promise<RemoteResult<Record<string, CredentialInfo>>>
28
+ 'credentials/set': (ref: string, value: string) => Promise<RemoteResult<void>>
29
+ 'credentials/unset': (ref: string) => Promise<RemoteResult<void>>
30
+ 'settings/canOpenAgentPresetDirectory': () => Promise<RemoteResult<boolean>>
31
+ 'settings/describe': () => Promise<RemoteResult<SettingsDescribeValue>>
32
+ 'settings/mutate': (ns: string, ops: SettingsPathOpView[], expectedRevision: number | undefined) => Promise<RemoteResult<SettingsNamespaceView>>
33
+ 'settings/openAgentPresetDirectory': (agentPreset: string, signal?: AbortSignal) => Promise<RemoteResult<AgentPresetDirectoryOpenValue>>
34
+ 'settings/openSettingsDocument': (signal?: AbortSignal) => Promise<RemoteResult<SettingsDocumentOpenValue>>
35
+ 'settings/replace': (ns: string, section: Record<string, JsonValue>, expectedRevision: number | undefined) => Promise<RemoteResult<SettingsNamespaceView>>
36
+ 'settings/update': (ns: string, patch: Record<string, JsonValue>, expectedRevision: number | undefined) => Promise<RemoteResult<SettingsNamespaceView>>
37
+ }
38
+ interface TypertRemoteNamespaceMap {
39
+ 'credentials': TypertRemoteNamespace$63726564656e7469616c73
40
+ 'settings': TypertRemoteNamespace$73657474696e6773
41
+ }
42
+ }
43
+
44
+ export declare const TYPERT_REMOTE: TypertRemoteContribution
45
+ export default TYPERT_REMOTE
46
+ //# sourceMappingURL=typert.remote-client.d.ts.map