@xmodelin/dsh-collab-auth-api 0.0.0-stage → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -2
- package/cordis.patch.yml +4 -0
- package/lib/client.js +65 -0
- package/lib/host.d.ts +8 -0
- package/lib/host.js +38 -0
- package/lib/index.d.ts +72 -0
- package/lib/index.js +163 -0
- package/lib/typert.host.d.ts +3 -0
- package/lib/typert.host.js +382 -0
- package/lib/typert.remote-client.d.ts +34 -0
- package/lib/typert.remote-client.d.ts.map +1 -0
- package/lib/typert.remote-client.js +266 -0
- package/lib/types.d.ts +41 -0
- package/lib/types.js +2 -0
- package/package.json +79 -4
|
@@ -0,0 +1,382 @@
|
|
|
1
|
+
/* Generated by @deepseek-ai/dsh-typert-generator from FaceModel — do not edit. */
|
|
2
|
+
import { z } from 'zod'
|
|
3
|
+
|
|
4
|
+
import { createTypertRemoteInfo } from '@deepseek-ai/dsh-typert-protocol/remote-info'
|
|
5
|
+
|
|
6
|
+
let _local_dsh_collab_auth_api_collabAuth_authorize_parameter_0$schema$value
|
|
7
|
+
const _local_dsh_collab_auth_api_collabAuth_authorize_parameter_0$schema = () => (_local_dsh_collab_auth_api_collabAuth_authorize_parameter_0$schema$value ??= z.string())
|
|
8
|
+
let _local_dsh_collab_auth_api_collabAuth_authorize_parameter_1$schema$value
|
|
9
|
+
const _local_dsh_collab_auth_api_collabAuth_authorize_parameter_1$schema = () => (_local_dsh_collab_auth_api_collabAuth_authorize_parameter_1$schema$value ??= z.string())
|
|
10
|
+
let _local_dsh_collab_auth_api_collabAuth_authorize_result$schema$value
|
|
11
|
+
const _local_dsh_collab_auth_api_collabAuth_authorize_result$schema = () => (_local_dsh_collab_auth_api_collabAuth_authorize_result$schema$value ??= z.object({
|
|
12
|
+
'pairs': z.array(z.object({
|
|
13
|
+
'a': z.string().readonly().describe('First Session id in the pair.'),
|
|
14
|
+
'b': z.string().readonly().describe('Second Session id in the pair.'),
|
|
15
|
+
'createdAt': z.number().readonly().describe('Creation time in epoch milliseconds.'),
|
|
16
|
+
'updatedAt': z.number().readonly().describe('Last update time in epoch milliseconds.'),
|
|
17
|
+
})).readonly().describe('Fully authorized pairs.'),
|
|
18
|
+
'pending': z.array(z.object({
|
|
19
|
+
'from': z.string().readonly().describe('Granting Session id.'),
|
|
20
|
+
'to': z.string().readonly().describe('Receiving Session id.'),
|
|
21
|
+
'createdAt': z.number().readonly().describe('Creation time in epoch milliseconds.'),
|
|
22
|
+
'updatedAt': z.number().readonly().describe('Last update time in epoch milliseconds.'),
|
|
23
|
+
})).readonly().describe('Directional grants waiting for the other side.'),
|
|
24
|
+
}))
|
|
25
|
+
let _local_dsh_collab_auth_api_collabAuth_list_result$schema$value
|
|
26
|
+
const _local_dsh_collab_auth_api_collabAuth_list_result$schema = () => (_local_dsh_collab_auth_api_collabAuth_list_result$schema$value ??= z.object({
|
|
27
|
+
'pairs': z.array(z.object({
|
|
28
|
+
'a': z.string().readonly().describe('First Session id in the pair.'),
|
|
29
|
+
'b': z.string().readonly().describe('Second Session id in the pair.'),
|
|
30
|
+
'createdAt': z.number().readonly().describe('Creation time in epoch milliseconds.'),
|
|
31
|
+
'updatedAt': z.number().readonly().describe('Last update time in epoch milliseconds.'),
|
|
32
|
+
})).readonly().describe('Fully authorized pairs.'),
|
|
33
|
+
'pending': z.array(z.object({
|
|
34
|
+
'from': z.string().readonly().describe('Granting Session id.'),
|
|
35
|
+
'to': z.string().readonly().describe('Receiving Session id.'),
|
|
36
|
+
'createdAt': z.number().readonly().describe('Creation time in epoch milliseconds.'),
|
|
37
|
+
'updatedAt': z.number().readonly().describe('Last update time in epoch milliseconds.'),
|
|
38
|
+
})).readonly().describe('Directional grants waiting for the other side.'),
|
|
39
|
+
}))
|
|
40
|
+
let _local_dsh_collab_auth_api_collabAuth_panel_parameter_0$schema$value
|
|
41
|
+
const _local_dsh_collab_auth_api_collabAuth_panel_parameter_0$schema = () => (_local_dsh_collab_auth_api_collabAuth_panel_parameter_0$schema$value ??= z.string())
|
|
42
|
+
let _local_dsh_collab_auth_api_collabAuth_panel_parameter_1$schema$value
|
|
43
|
+
const _local_dsh_collab_auth_api_collabAuth_panel_parameter_1$schema = () => (_local_dsh_collab_auth_api_collabAuth_panel_parameter_1$schema$value ??= z.string())
|
|
44
|
+
let _local_dsh_collab_auth_api_collabAuth_panel_parameter_2$schema$value
|
|
45
|
+
const _local_dsh_collab_auth_api_collabAuth_panel_parameter_2$schema = () => (_local_dsh_collab_auth_api_collabAuth_panel_parameter_2$schema$value ??= z.string())
|
|
46
|
+
let _local_dsh_collab_auth_api_collabAuth_panel_result$schema$value
|
|
47
|
+
const _local_dsh_collab_auth_api_collabAuth_panel_result$schema = () => (_local_dsh_collab_auth_api_collabAuth_panel_result$schema$value ??= z.string())
|
|
48
|
+
let _local_dsh_collab_auth_api_collabAuth_revoke_parameter_0$schema$value
|
|
49
|
+
const _local_dsh_collab_auth_api_collabAuth_revoke_parameter_0$schema = () => (_local_dsh_collab_auth_api_collabAuth_revoke_parameter_0$schema$value ??= z.string())
|
|
50
|
+
let _local_dsh_collab_auth_api_collabAuth_revoke_parameter_1$schema$value
|
|
51
|
+
const _local_dsh_collab_auth_api_collabAuth_revoke_parameter_1$schema = () => (_local_dsh_collab_auth_api_collabAuth_revoke_parameter_1$schema$value ??= z.string())
|
|
52
|
+
let _local_dsh_collab_auth_api_collabAuth_revoke_result$schema$value
|
|
53
|
+
const _local_dsh_collab_auth_api_collabAuth_revoke_result$schema = () => (_local_dsh_collab_auth_api_collabAuth_revoke_result$schema$value ??= z.object({
|
|
54
|
+
'pairs': z.array(z.object({
|
|
55
|
+
'a': z.string().readonly().describe('First Session id in the pair.'),
|
|
56
|
+
'b': z.string().readonly().describe('Second Session id in the pair.'),
|
|
57
|
+
'createdAt': z.number().readonly().describe('Creation time in epoch milliseconds.'),
|
|
58
|
+
'updatedAt': z.number().readonly().describe('Last update time in epoch milliseconds.'),
|
|
59
|
+
})).readonly().describe('Fully authorized pairs.'),
|
|
60
|
+
'pending': z.array(z.object({
|
|
61
|
+
'from': z.string().readonly().describe('Granting Session id.'),
|
|
62
|
+
'to': z.string().readonly().describe('Receiving Session id.'),
|
|
63
|
+
'createdAt': z.number().readonly().describe('Creation time in epoch milliseconds.'),
|
|
64
|
+
'updatedAt': z.number().readonly().describe('Last update time in epoch milliseconds.'),
|
|
65
|
+
})).readonly().describe('Directional grants waiting for the other side.'),
|
|
66
|
+
}))
|
|
67
|
+
let _local_dsh_collab_auth_api_collabAuth_authorize_parameter_0_strict$schema$value
|
|
68
|
+
const _local_dsh_collab_auth_api_collabAuth_authorize_parameter_0_strict$schema = () => (_local_dsh_collab_auth_api_collabAuth_authorize_parameter_0_strict$schema$value ??= z.string())
|
|
69
|
+
let _local_dsh_collab_auth_api_collabAuth_authorize_parameter_1_strict$schema$value
|
|
70
|
+
const _local_dsh_collab_auth_api_collabAuth_authorize_parameter_1_strict$schema = () => (_local_dsh_collab_auth_api_collabAuth_authorize_parameter_1_strict$schema$value ??= z.string())
|
|
71
|
+
let _local_dsh_collab_auth_api_collabAuth_panel_parameter_0_strict$schema$value
|
|
72
|
+
const _local_dsh_collab_auth_api_collabAuth_panel_parameter_0_strict$schema = () => (_local_dsh_collab_auth_api_collabAuth_panel_parameter_0_strict$schema$value ??= z.string())
|
|
73
|
+
let _local_dsh_collab_auth_api_collabAuth_panel_parameter_1_strict$schema$value
|
|
74
|
+
const _local_dsh_collab_auth_api_collabAuth_panel_parameter_1_strict$schema = () => (_local_dsh_collab_auth_api_collabAuth_panel_parameter_1_strict$schema$value ??= z.string())
|
|
75
|
+
let _local_dsh_collab_auth_api_collabAuth_panel_parameter_2_strict$schema$value
|
|
76
|
+
const _local_dsh_collab_auth_api_collabAuth_panel_parameter_2_strict$schema = () => (_local_dsh_collab_auth_api_collabAuth_panel_parameter_2_strict$schema$value ??= z.string())
|
|
77
|
+
let _local_dsh_collab_auth_api_collabAuth_revoke_parameter_0_strict$schema$value
|
|
78
|
+
const _local_dsh_collab_auth_api_collabAuth_revoke_parameter_0_strict$schema = () => (_local_dsh_collab_auth_api_collabAuth_revoke_parameter_0_strict$schema$value ??= z.string())
|
|
79
|
+
let _local_dsh_collab_auth_api_collabAuth_revoke_parameter_1_strict$schema$value
|
|
80
|
+
const _local_dsh_collab_auth_api_collabAuth_revoke_parameter_1_strict$schema = () => (_local_dsh_collab_auth_api_collabAuth_revoke_parameter_1_strict$schema$value ??= z.string())
|
|
81
|
+
|
|
82
|
+
const $remote = createTypertRemoteInfo({
|
|
83
|
+
package: '@xmodelin/dsh-collab-auth-api',
|
|
84
|
+
methods: {
|
|
85
|
+
'collabAuth/authorize': {
|
|
86
|
+
service: 'collabAuth',
|
|
87
|
+
description: 'Authorize both directions of a pair.',
|
|
88
|
+
invocation: { kind: 'direct' },
|
|
89
|
+
parameters: [
|
|
90
|
+
{
|
|
91
|
+
name: 'a',
|
|
92
|
+
description: 'first Session id.',
|
|
93
|
+
source: 'json',
|
|
94
|
+
codec: {
|
|
95
|
+
mode: 'strict',
|
|
96
|
+
typeSymbol: '@xmodelin/dsh-collab-auth-api#collabAuth/authorize:a',
|
|
97
|
+
create: _local_dsh_collab_auth_api_collabAuth_authorize_parameter_0$schema,
|
|
98
|
+
jsonSchema: {"type":"string"},
|
|
99
|
+
},
|
|
100
|
+
strictCodec: {
|
|
101
|
+
mode: 'strict',
|
|
102
|
+
typeSymbol: '@xmodelin/dsh-collab-auth-api#collabAuth/authorize:a',
|
|
103
|
+
create: _local_dsh_collab_auth_api_collabAuth_authorize_parameter_0_strict$schema,
|
|
104
|
+
jsonSchema: {"type":"string"},
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
name: 'b',
|
|
109
|
+
description: 'second Session id.',
|
|
110
|
+
source: 'json',
|
|
111
|
+
codec: {
|
|
112
|
+
mode: 'strict',
|
|
113
|
+
typeSymbol: '@xmodelin/dsh-collab-auth-api#collabAuth/authorize:b',
|
|
114
|
+
create: _local_dsh_collab_auth_api_collabAuth_authorize_parameter_1$schema,
|
|
115
|
+
jsonSchema: {"type":"string"},
|
|
116
|
+
},
|
|
117
|
+
strictCodec: {
|
|
118
|
+
mode: 'strict',
|
|
119
|
+
typeSymbol: '@xmodelin/dsh-collab-auth-api#collabAuth/authorize:b',
|
|
120
|
+
create: _local_dsh_collab_auth_api_collabAuth_authorize_parameter_1_strict$schema,
|
|
121
|
+
jsonSchema: {"type":"string"},
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
result: {
|
|
126
|
+
mode: 'strict',
|
|
127
|
+
typeSymbol: '@xmodelin/dsh-collab-auth-api/types#AuthSnapshot',
|
|
128
|
+
create: _local_dsh_collab_auth_api_collabAuth_authorize_result$schema,
|
|
129
|
+
description: 'the resulting authorization snapshot.',
|
|
130
|
+
jsonSchema: {"type":"object","properties":{"pairs":{"type":"array","items":{"type":"object","properties":{"a":{"type":"string","description":"First Session id in the pair."},"b":{"type":"string","description":"Second Session id in the pair."},"createdAt":{"type":"number","description":"Creation time in epoch milliseconds."},"updatedAt":{"type":"number","description":"Last update time in epoch milliseconds."}},"required":["a","b","createdAt","updatedAt"],"additionalProperties":true},"description":"Fully authorized pairs."},"pending":{"type":"array","items":{"type":"object","properties":{"from":{"type":"string","description":"Granting Session id."},"to":{"type":"string","description":"Receiving Session id."},"createdAt":{"type":"number","description":"Creation time in epoch milliseconds."},"updatedAt":{"type":"number","description":"Last update time in epoch milliseconds."}},"required":["from","to","createdAt","updatedAt"],"additionalProperties":true},"description":"Directional grants waiting for the other side."}},"required":["pairs","pending"],"additionalProperties":true},
|
|
131
|
+
},
|
|
132
|
+
sourceLocation: {"file":"packages/dsh-collab-auth-api/src/index.ts","line":64,"column":3},
|
|
133
|
+
},
|
|
134
|
+
'collabAuth/list': {
|
|
135
|
+
service: 'collabAuth',
|
|
136
|
+
description: 'Read entirely authorized pairs and one-sided pending grants.',
|
|
137
|
+
invocation: { kind: 'direct' },
|
|
138
|
+
parameters: [
|
|
139
|
+
],
|
|
140
|
+
result: {
|
|
141
|
+
mode: 'strict',
|
|
142
|
+
typeSymbol: '@xmodelin/dsh-collab-auth-api/types#AuthSnapshot',
|
|
143
|
+
create: _local_dsh_collab_auth_api_collabAuth_list_result$schema,
|
|
144
|
+
description: 'the current authorization snapshot.',
|
|
145
|
+
jsonSchema: {"type":"object","properties":{"pairs":{"type":"array","items":{"type":"object","properties":{"a":{"type":"string","description":"First Session id in the pair."},"b":{"type":"string","description":"Second Session id in the pair."},"createdAt":{"type":"number","description":"Creation time in epoch milliseconds."},"updatedAt":{"type":"number","description":"Last update time in epoch milliseconds."}},"required":["a","b","createdAt","updatedAt"],"additionalProperties":true},"description":"Fully authorized pairs."},"pending":{"type":"array","items":{"type":"object","properties":{"from":{"type":"string","description":"Granting Session id."},"to":{"type":"string","description":"Receiving Session id."},"createdAt":{"type":"number","description":"Creation time in epoch milliseconds."},"updatedAt":{"type":"number","description":"Last update time in epoch milliseconds."}},"required":["from","to","createdAt","updatedAt"],"additionalProperties":true},"description":"Directional grants waiting for the other side."}},"required":["pairs","pending"],"additionalProperties":true},
|
|
146
|
+
},
|
|
147
|
+
sourceLocation: {"file":"packages/dsh-collab-auth-api/src/index.ts","line":53,"column":3},
|
|
148
|
+
},
|
|
149
|
+
'collabAuth/panel': {
|
|
150
|
+
service: 'collabAuth',
|
|
151
|
+
description: 'Read or mutate the supervisor board/base-prompt surface without writing a slash-command lifecycle into the conversation.',
|
|
152
|
+
invocation: { kind: 'direct' },
|
|
153
|
+
parameters: [
|
|
154
|
+
{
|
|
155
|
+
name: 'sessionId',
|
|
156
|
+
description: 'collaboration Session id.',
|
|
157
|
+
source: 'json',
|
|
158
|
+
codec: {
|
|
159
|
+
mode: 'strict',
|
|
160
|
+
typeSymbol: '@xmodelin/dsh-collab-auth-api#collabAuth/panel:sessionId',
|
|
161
|
+
create: _local_dsh_collab_auth_api_collabAuth_panel_parameter_0$schema,
|
|
162
|
+
jsonSchema: {"type":"string"},
|
|
163
|
+
},
|
|
164
|
+
strictCodec: {
|
|
165
|
+
mode: 'strict',
|
|
166
|
+
typeSymbol: '@xmodelin/dsh-collab-auth-api#collabAuth/panel:sessionId',
|
|
167
|
+
create: _local_dsh_collab_auth_api_collabAuth_panel_parameter_0_strict$schema,
|
|
168
|
+
jsonSchema: {"type":"string"},
|
|
169
|
+
},
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
name: 'operation',
|
|
173
|
+
description: 'board, baseGet, baseSet, link, unlink, pin, or live.',
|
|
174
|
+
source: 'json',
|
|
175
|
+
codec: {
|
|
176
|
+
mode: 'strict',
|
|
177
|
+
typeSymbol: '@xmodelin/dsh-collab-auth-api#collabAuth/panel:operation',
|
|
178
|
+
create: _local_dsh_collab_auth_api_collabAuth_panel_parameter_1$schema,
|
|
179
|
+
jsonSchema: {"type":"string"},
|
|
180
|
+
},
|
|
181
|
+
strictCodec: {
|
|
182
|
+
mode: 'strict',
|
|
183
|
+
typeSymbol: '@xmodelin/dsh-collab-auth-api#collabAuth/panel:operation',
|
|
184
|
+
create: _local_dsh_collab_auth_api_collabAuth_panel_parameter_1_strict$schema,
|
|
185
|
+
jsonSchema: {"type":"string"},
|
|
186
|
+
},
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
name: 'argsJson',
|
|
190
|
+
source: 'json',
|
|
191
|
+
codec: {
|
|
192
|
+
mode: 'strict',
|
|
193
|
+
typeSymbol: '@xmodelin/dsh-collab-auth-api#collabAuth/panel:argsJson',
|
|
194
|
+
create: _local_dsh_collab_auth_api_collabAuth_panel_parameter_2$schema,
|
|
195
|
+
jsonSchema: {"type":"string"},
|
|
196
|
+
},
|
|
197
|
+
strictCodec: {
|
|
198
|
+
mode: 'strict',
|
|
199
|
+
typeSymbol: '@xmodelin/dsh-collab-auth-api#collabAuth/panel:argsJson',
|
|
200
|
+
create: _local_dsh_collab_auth_api_collabAuth_panel_parameter_2_strict$schema,
|
|
201
|
+
jsonSchema: {"type":"string"},
|
|
202
|
+
},
|
|
203
|
+
},
|
|
204
|
+
],
|
|
205
|
+
result: {
|
|
206
|
+
mode: 'strict',
|
|
207
|
+
typeSymbol: '@xmodelin/dsh-collab-auth-api#collabAuth/panel:result',
|
|
208
|
+
create: _local_dsh_collab_auth_api_collabAuth_panel_result$schema,
|
|
209
|
+
description: 'the operation result.',
|
|
210
|
+
jsonSchema: {"type":"string"},
|
|
211
|
+
},
|
|
212
|
+
sourceLocation: {"file":"packages/dsh-collab-auth-api/src/index.ts","line":88,"column":3},
|
|
213
|
+
},
|
|
214
|
+
'collabAuth/revoke': {
|
|
215
|
+
service: 'collabAuth',
|
|
216
|
+
description: 'Revoke both directions of a pair.',
|
|
217
|
+
invocation: { kind: 'direct' },
|
|
218
|
+
parameters: [
|
|
219
|
+
{
|
|
220
|
+
name: 'a',
|
|
221
|
+
description: 'first Session id.',
|
|
222
|
+
source: 'json',
|
|
223
|
+
codec: {
|
|
224
|
+
mode: 'strict',
|
|
225
|
+
typeSymbol: '@xmodelin/dsh-collab-auth-api#collabAuth/revoke:a',
|
|
226
|
+
create: _local_dsh_collab_auth_api_collabAuth_revoke_parameter_0$schema,
|
|
227
|
+
jsonSchema: {"type":"string"},
|
|
228
|
+
},
|
|
229
|
+
strictCodec: {
|
|
230
|
+
mode: 'strict',
|
|
231
|
+
typeSymbol: '@xmodelin/dsh-collab-auth-api#collabAuth/revoke:a',
|
|
232
|
+
create: _local_dsh_collab_auth_api_collabAuth_revoke_parameter_0_strict$schema,
|
|
233
|
+
jsonSchema: {"type":"string"},
|
|
234
|
+
},
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
name: 'b',
|
|
238
|
+
description: 'second Session id.',
|
|
239
|
+
source: 'json',
|
|
240
|
+
codec: {
|
|
241
|
+
mode: 'strict',
|
|
242
|
+
typeSymbol: '@xmodelin/dsh-collab-auth-api#collabAuth/revoke:b',
|
|
243
|
+
create: _local_dsh_collab_auth_api_collabAuth_revoke_parameter_1$schema,
|
|
244
|
+
jsonSchema: {"type":"string"},
|
|
245
|
+
},
|
|
246
|
+
strictCodec: {
|
|
247
|
+
mode: 'strict',
|
|
248
|
+
typeSymbol: '@xmodelin/dsh-collab-auth-api#collabAuth/revoke:b',
|
|
249
|
+
create: _local_dsh_collab_auth_api_collabAuth_revoke_parameter_1_strict$schema,
|
|
250
|
+
jsonSchema: {"type":"string"},
|
|
251
|
+
},
|
|
252
|
+
},
|
|
253
|
+
],
|
|
254
|
+
result: {
|
|
255
|
+
mode: 'strict',
|
|
256
|
+
typeSymbol: '@xmodelin/dsh-collab-auth-api/types#AuthSnapshot',
|
|
257
|
+
create: _local_dsh_collab_auth_api_collabAuth_revoke_result$schema,
|
|
258
|
+
description: 'the resulting authorization snapshot.',
|
|
259
|
+
jsonSchema: {"type":"object","properties":{"pairs":{"type":"array","items":{"type":"object","properties":{"a":{"type":"string","description":"First Session id in the pair."},"b":{"type":"string","description":"Second Session id in the pair."},"createdAt":{"type":"number","description":"Creation time in epoch milliseconds."},"updatedAt":{"type":"number","description":"Last update time in epoch milliseconds."}},"required":["a","b","createdAt","updatedAt"],"additionalProperties":true},"description":"Fully authorized pairs."},"pending":{"type":"array","items":{"type":"object","properties":{"from":{"type":"string","description":"Granting Session id."},"to":{"type":"string","description":"Receiving Session id."},"createdAt":{"type":"number","description":"Creation time in epoch milliseconds."},"updatedAt":{"type":"number","description":"Last update time in epoch milliseconds."}},"required":["from","to","createdAt","updatedAt"],"additionalProperties":true},"description":"Directional grants waiting for the other side."}},"required":["pairs","pending"],"additionalProperties":true},
|
|
260
|
+
},
|
|
261
|
+
sourceLocation: {"file":"packages/dsh-collab-auth-api/src/index.ts","line":75,"column":3},
|
|
262
|
+
},
|
|
263
|
+
},
|
|
264
|
+
}, z)
|
|
265
|
+
|
|
266
|
+
export const TYPERT = {
|
|
267
|
+
package: '@xmodelin/dsh-collab-auth-api',
|
|
268
|
+
face: 'host',
|
|
269
|
+
schemas: [
|
|
270
|
+
],
|
|
271
|
+
get invocations() { return $remote.descriptors },
|
|
272
|
+
model: {
|
|
273
|
+
"services": [
|
|
274
|
+
{
|
|
275
|
+
"description": "Host operations the collaboration plugin provides to the Remote.",
|
|
276
|
+
"summary": "Host operations the collaboration plugin provides to the Remote.",
|
|
277
|
+
"tags": [],
|
|
278
|
+
"jsDoc": "/** Host operations the collaboration plugin provides to the Remote. */",
|
|
279
|
+
"key": "collabAdmin",
|
|
280
|
+
"exportName": "CollabAdminFace",
|
|
281
|
+
"members": [
|
|
282
|
+
{
|
|
283
|
+
"kind": "method",
|
|
284
|
+
"name": "listAuth",
|
|
285
|
+
"signature": "listAuth(): AuthSnapshot",
|
|
286
|
+
"summary": "Read the current authorization state.",
|
|
287
|
+
"jsDoc": "/** Read the current authorization state. */"
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"kind": "method",
|
|
291
|
+
"name": "authorize",
|
|
292
|
+
"signature": "authorize(a: string, b: string): AuthSnapshot",
|
|
293
|
+
"summary": "Authorize both directions of one pair.",
|
|
294
|
+
"jsDoc": "/** Authorize both directions of one pair. */"
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"kind": "method",
|
|
298
|
+
"name": "revoke",
|
|
299
|
+
"signature": "revoke(a: string, b: string): AuthSnapshot",
|
|
300
|
+
"summary": "Revoke both directions of one pair.",
|
|
301
|
+
"jsDoc": "/** Revoke both directions of one pair. */"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"kind": "method",
|
|
305
|
+
"name": "panel",
|
|
306
|
+
"signature": "panel(sessionId: string, operation: string, args?: Record<string, unknown>): Record<string, unknown>",
|
|
307
|
+
"summary": "Read or mutate a collaboration management surface without a command record.",
|
|
308
|
+
"jsDoc": "/** Read or mutate a collaboration management surface without a command record. */"
|
|
309
|
+
}
|
|
310
|
+
],
|
|
311
|
+
"types": [
|
|
312
|
+
{
|
|
313
|
+
"name": "AuthPair",
|
|
314
|
+
"declaration": "export interface AuthPair {\n readonly a: string;\n readonly b: string;\n readonly createdAt: number;\n readonly updatedAt: number;\n}"
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"name": "AuthSnapshot",
|
|
318
|
+
"declaration": "export interface AuthSnapshot {\n readonly pairs: readonly AuthPair[];\n readonly pending: readonly PendingGrant[];\n}"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"name": "PendingGrant",
|
|
322
|
+
"declaration": "export interface PendingGrant {\n readonly from: string;\n readonly to: string;\n readonly createdAt: number;\n readonly updatedAt: number;\n}"
|
|
323
|
+
}
|
|
324
|
+
]
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"description": "Host service backing the generated `ctx.remote.collabAuth` namespace.",
|
|
328
|
+
"summary": "Host service backing the generated `ctx.remote.collabAuth` namespace.",
|
|
329
|
+
"tags": [],
|
|
330
|
+
"jsDoc": "/** Host service backing the generated `ctx.remote.collabAuth` namespace. */",
|
|
331
|
+
"key": "collabAuth",
|
|
332
|
+
"exportName": "CollabAuthService",
|
|
333
|
+
"members": [
|
|
334
|
+
{
|
|
335
|
+
"kind": "method",
|
|
336
|
+
"name": "list",
|
|
337
|
+
"signature": "@Remote('list') list(): AuthSnapshot",
|
|
338
|
+
"summary": "Read entirely authorized pairs and one-sided pending grants.",
|
|
339
|
+
"jsDoc": "/**\n * Read entirely authorized pairs and one-sided pending grants.\n * @returns the current authorization snapshot.\n */"
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"kind": "method",
|
|
343
|
+
"name": "authorize",
|
|
344
|
+
"signature": "@Remote('authorize') authorize(a: string, b: string): AuthSnapshot",
|
|
345
|
+
"summary": "Authorize both directions of a pair.",
|
|
346
|
+
"jsDoc": "/**\n * Authorize both directions of a pair.\n * @param a - first Session id.\n * @param b - second Session id.\n * @returns the resulting authorization snapshot.\n */"
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
"kind": "method",
|
|
350
|
+
"name": "revoke",
|
|
351
|
+
"signature": "@Remote('revoke') revoke(a: string, b: string): AuthSnapshot",
|
|
352
|
+
"summary": "Revoke both directions of a pair.",
|
|
353
|
+
"jsDoc": "/**\n * Revoke both directions of a pair.\n * @param a - first Session id.\n * @param b - second Session id.\n * @returns the resulting authorization snapshot.\n */"
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"kind": "method",
|
|
357
|
+
"name": "panel",
|
|
358
|
+
"signature": "@Remote('panel') panel(sessionId: string, operation: string, argsJson: string): string",
|
|
359
|
+
"summary": "Read or mutate the supervisor board/base-prompt surface without writing a slash-command lifecycle into the conversation.",
|
|
360
|
+
"jsDoc": "/**\n * Read or mutate the supervisor board/base-prompt surface without writing a\n * slash-command lifecycle into the conversation.\n * @param sessionId - collaboration Session id.\n * @param operation - board, baseGet, baseSet, link, unlink, pin, or live.\n * @param args - operation-specific payload.\n * @returns the operation result.\n */"
|
|
361
|
+
}
|
|
362
|
+
],
|
|
363
|
+
"types": [
|
|
364
|
+
{
|
|
365
|
+
"name": "AuthPair",
|
|
366
|
+
"declaration": "export interface AuthPair {\n readonly a: string;\n readonly b: string;\n readonly createdAt: number;\n readonly updatedAt: number;\n}"
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
"name": "AuthSnapshot",
|
|
370
|
+
"declaration": "export interface AuthSnapshot {\n readonly pairs: readonly AuthPair[];\n readonly pending: readonly PendingGrant[];\n}"
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"name": "PendingGrant",
|
|
374
|
+
"declaration": "export interface PendingGrant {\n readonly from: string;\n readonly to: string;\n readonly createdAt: number;\n readonly updatedAt: number;\n}"
|
|
375
|
+
}
|
|
376
|
+
]
|
|
377
|
+
}
|
|
378
|
+
],
|
|
379
|
+
"events": [],
|
|
380
|
+
"objects": []
|
|
381
|
+
},
|
|
382
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/* Generated by @deepseek-ai/dsh-typert-generator from the Host FaceModel — do not edit. */
|
|
2
|
+
import type {
|
|
3
|
+
RemoteResult,
|
|
4
|
+
TypertRemoteInfo,
|
|
5
|
+
TypertRemoteMethod,
|
|
6
|
+
} from '@deepseek-ai/dsh-typert-protocol'
|
|
7
|
+
import type { AuthSnapshot } from '@xmodelin/dsh-collab-auth-api/types'
|
|
8
|
+
|
|
9
|
+
declare module '@deepseek-ai/dsh-typert-protocol' {
|
|
10
|
+
interface TypertRemoteNamespace$636f6c6c616241757468 {
|
|
11
|
+
authorize: (a: string, b: string) => Promise<RemoteResult<AuthSnapshot>>
|
|
12
|
+
list: () => Promise<RemoteResult<AuthSnapshot>>
|
|
13
|
+
panel: (sessionId: string, operation: string, argsJson: string) => Promise<RemoteResult<string>>
|
|
14
|
+
revoke: (a: string, b: string) => Promise<RemoteResult<AuthSnapshot>>
|
|
15
|
+
}
|
|
16
|
+
interface TypertRemoteMap {
|
|
17
|
+
'collabAuth/authorize': (a: string, b: string) => Promise<RemoteResult<AuthSnapshot>>
|
|
18
|
+
'collabAuth/list': () => Promise<RemoteResult<AuthSnapshot>>
|
|
19
|
+
'collabAuth/panel': (sessionId: string, operation: string, argsJson: string) => Promise<RemoteResult<string>>
|
|
20
|
+
'collabAuth/revoke': (a: string, b: string) => Promise<RemoteResult<AuthSnapshot>>
|
|
21
|
+
}
|
|
22
|
+
interface TypertRemoteNamespaceMap {
|
|
23
|
+
'collabAuth': TypertRemoteNamespace$636f6c6c616241757468
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export declare const TYPERT_REMOTE: TypertRemoteInfo<{
|
|
28
|
+
readonly 'collabAuth/authorize': TypertRemoteMethod<{ readonly 'a': string; readonly 'b': string }, AuthSnapshot>
|
|
29
|
+
readonly 'collabAuth/list': TypertRemoteMethod<{ }, AuthSnapshot>
|
|
30
|
+
readonly 'collabAuth/panel': TypertRemoteMethod<{ readonly 'sessionId': string; readonly 'operation': string; readonly 'argsJson': string }, string>
|
|
31
|
+
readonly 'collabAuth/revoke': TypertRemoteMethod<{ readonly 'a': string; readonly 'b': string }, AuthSnapshot>
|
|
32
|
+
}>
|
|
33
|
+
export default TYPERT_REMOTE
|
|
34
|
+
//# sourceMappingURL=typert.remote-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typert.remote-client.d.ts","names":["authorize","list","panel","revoke"],"sources":["../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;IA+DEA,S;IAXAC,I;IAmCAC,K;IAbAC,M;;;IAXAH,sB;IAXAC,iB;IAmCAC,kB;IAbAC,mB","ignoreList":[]}
|