@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,266 @@
|
|
|
1
|
+
/* Generated by @deepseek-ai/dsh-typert-generator from the Host 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
|
+
export const TYPERT_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 default TYPERT_REMOTE
|
package/lib/types.d.ts
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/** Shared authorization DTOs for the generated Remote boundary. */
|
|
2
|
+
/** One fully authorized communication pair. */
|
|
3
|
+
export interface AuthPair {
|
|
4
|
+
/** First Session id in the pair. */
|
|
5
|
+
readonly a: string;
|
|
6
|
+
/** Second Session id in the pair. */
|
|
7
|
+
readonly b: string;
|
|
8
|
+
/** Creation time in epoch milliseconds. */
|
|
9
|
+
readonly createdAt: number;
|
|
10
|
+
/** Last update time in epoch milliseconds. */
|
|
11
|
+
readonly updatedAt: number;
|
|
12
|
+
}
|
|
13
|
+
/** One directional grant that still lacks its reverse side. */
|
|
14
|
+
export interface PendingGrant {
|
|
15
|
+
/** Granting Session id. */
|
|
16
|
+
readonly from: string;
|
|
17
|
+
/** Receiving Session id. */
|
|
18
|
+
readonly to: string;
|
|
19
|
+
/** Creation time in epoch milliseconds. */
|
|
20
|
+
readonly createdAt: number;
|
|
21
|
+
/** Last update time in epoch milliseconds. */
|
|
22
|
+
readonly updatedAt: number;
|
|
23
|
+
}
|
|
24
|
+
/** Complete authorization state the page renders. */
|
|
25
|
+
export interface AuthSnapshot {
|
|
26
|
+
/** Fully authorized pairs. */
|
|
27
|
+
readonly pairs: readonly AuthPair[];
|
|
28
|
+
/** Directional grants waiting for the other side. */
|
|
29
|
+
readonly pending: readonly PendingGrant[];
|
|
30
|
+
}
|
|
31
|
+
/** Host operations the collaboration plugin provides to the Remote. */
|
|
32
|
+
export interface CollabAdminFace {
|
|
33
|
+
/** Read the current authorization state. */
|
|
34
|
+
listAuth(): AuthSnapshot;
|
|
35
|
+
/** Authorize both directions of one pair. */
|
|
36
|
+
authorize(a: string, b: string): AuthSnapshot;
|
|
37
|
+
/** Revoke both directions of one pair. */
|
|
38
|
+
revoke(a: string, b: string): AuthSnapshot;
|
|
39
|
+
/** Read or mutate a collaboration management surface without a command record. */
|
|
40
|
+
panel(sessionId: string, operation: string, args?: Record<string, unknown>): Record<string, unknown>;
|
|
41
|
+
}
|
package/lib/types.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,81 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xmodelin/dsh-collab-auth-api",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"description": "Generated Typert Remote for collaboration authorization",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "lib/index.js",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./lib/host.d.ts",
|
|
10
|
+
"default": "./lib/host.js"
|
|
11
|
+
},
|
|
12
|
+
"./client": "./lib/client.js",
|
|
13
|
+
"./typert": {
|
|
14
|
+
"types": "./lib/typert.host.d.ts",
|
|
15
|
+
"default": "./lib/typert.host.js"
|
|
16
|
+
},
|
|
17
|
+
"./remote": {
|
|
18
|
+
"types": "./lib/typert.remote-client.d.ts",
|
|
19
|
+
"default": "./lib/typert.remote-client.js"
|
|
20
|
+
},
|
|
21
|
+
"./package.json": "./package.json",
|
|
22
|
+
"./types": {
|
|
23
|
+
"types": "./lib/types.d.ts",
|
|
24
|
+
"default": "./lib/types.js"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"files": [
|
|
28
|
+
"lib/typert.host.js",
|
|
29
|
+
"lib/typert.host.d.ts",
|
|
30
|
+
"lib/typert.remote-client.js",
|
|
31
|
+
"lib/typert.remote-client.d.ts",
|
|
32
|
+
"lib/client.js",
|
|
33
|
+
"cordis.patch.yml",
|
|
34
|
+
"lib/types.js",
|
|
35
|
+
"lib/types.d.ts",
|
|
36
|
+
"lib/typert.remote-client.d.ts.map",
|
|
37
|
+
"lib/host.js",
|
|
38
|
+
"lib/host.d.ts",
|
|
39
|
+
"lib/index.js",
|
|
40
|
+
"lib/index.d.ts",
|
|
41
|
+
"README.md"
|
|
42
|
+
],
|
|
43
|
+
"dsh": {
|
|
44
|
+
"client": {
|
|
45
|
+
"platform": "web",
|
|
46
|
+
"immediately": true,
|
|
47
|
+
"inject": [
|
|
48
|
+
"@deepseek-ai/dsh-api-gateway",
|
|
49
|
+
"@deepseek-ai/dsh-client-connection"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
"bundle": {
|
|
53
|
+
"patch": "./cordis.patch.yml"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"dependencies": {
|
|
57
|
+
"@deepseek-ai/cordis": "~4.1.0",
|
|
58
|
+
"@deepseek-ai/dsh-typert-protocol": "0.2.2-rc.5",
|
|
59
|
+
"zod": "4.6.6"
|
|
60
|
+
},
|
|
61
|
+
"types": "./lib/host.d.ts",
|
|
62
|
+
"module": "lib/index.js",
|
|
63
|
+
"scripts": {
|
|
64
|
+
"test": "node --test test/*.test.mjs"
|
|
65
|
+
},
|
|
66
|
+
"publishConfig": {
|
|
67
|
+
"access": "public"
|
|
68
|
+
},
|
|
69
|
+
"repository": {
|
|
70
|
+
"type": "git",
|
|
71
|
+
"url": "git+https://github.com/colinchan666/dsh-plugins-collab-agent.git",
|
|
72
|
+
"directory": "dsh-collab-api/packages/dsh-collab-auth-api"
|
|
73
|
+
},
|
|
74
|
+
"homepage": "https://github.com/colinchan666/dsh-plugins-collab-agent#readme",
|
|
75
|
+
"bugs": {
|
|
76
|
+
"url": "https://github.com/colinchan666/dsh-plugins-collab-agent/issues"
|
|
77
|
+
},
|
|
78
|
+
"engines": {
|
|
79
|
+
"dsh": "^0.2.2-rc.5"
|
|
80
|
+
}
|
|
81
|
+
}
|