@tinycloud/operations 0.7.6-beta.0 → 0.7.6-beta.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/coverage.json +1 -0
- package/dist/artifacts.d.cts +54 -54
- package/dist/artifacts.d.ts +54 -54
- package/package.json +4 -4
package/coverage.json
CHANGED
|
@@ -66,6 +66,7 @@
|
|
|
66
66
|
{ "command": "share revoke <id>", "status": "legacy" },
|
|
67
67
|
{ "command": "share show <id>", "status": "legacy" },
|
|
68
68
|
{ "command": "share versions <artifact-id>", "status": "legacy" },
|
|
69
|
+
{ "command": "share unlink <id>", "status": "legacy" },
|
|
69
70
|
{ "command": "share history", "status": "legacy" },
|
|
70
71
|
{ "command": "share history recover", "status": "legacy" },
|
|
71
72
|
{ "command": "node", "status": "legacy" },
|
package/dist/artifacts.d.cts
CHANGED
|
@@ -15,23 +15,23 @@ declare const PermissionEntrySchema: z.ZodObject<{
|
|
|
15
15
|
expiry: z.ZodOptional<z.ZodString>;
|
|
16
16
|
description: z.ZodOptional<z.ZodString>;
|
|
17
17
|
}, "strict", z.ZodTypeAny, {
|
|
18
|
-
service: string;
|
|
19
18
|
path: string;
|
|
19
|
+
service: string;
|
|
20
20
|
actions: string[];
|
|
21
21
|
space?: string | undefined;
|
|
22
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
23
22
|
skipPrefix?: boolean | undefined;
|
|
24
23
|
expiry?: string | undefined;
|
|
25
24
|
description?: string | undefined;
|
|
25
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
26
26
|
}, {
|
|
27
|
-
service: string;
|
|
28
27
|
path: string;
|
|
28
|
+
service: string;
|
|
29
29
|
actions: string[];
|
|
30
30
|
space?: string | undefined;
|
|
31
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
32
31
|
skipPrefix?: boolean | undefined;
|
|
33
32
|
expiry?: string | undefined;
|
|
34
33
|
description?: string | undefined;
|
|
34
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
35
35
|
}>;
|
|
36
36
|
declare const LegacyPermissionRequestArtifactSchema: z.ZodObject<{
|
|
37
37
|
kind: z.ZodLiteral<"tinycloud.auth.request">;
|
|
@@ -48,55 +48,55 @@ declare const LegacyPermissionRequestArtifactSchema: z.ZodObject<{
|
|
|
48
48
|
expiry: z.ZodOptional<z.ZodString>;
|
|
49
49
|
description: z.ZodOptional<z.ZodString>;
|
|
50
50
|
}, "strict", z.ZodTypeAny, {
|
|
51
|
-
service: string;
|
|
52
51
|
path: string;
|
|
52
|
+
service: string;
|
|
53
53
|
actions: string[];
|
|
54
54
|
space?: string | undefined;
|
|
55
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
56
55
|
skipPrefix?: boolean | undefined;
|
|
57
56
|
expiry?: string | undefined;
|
|
58
57
|
description?: string | undefined;
|
|
58
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
59
59
|
}, {
|
|
60
|
-
service: string;
|
|
61
60
|
path: string;
|
|
61
|
+
service: string;
|
|
62
62
|
actions: string[];
|
|
63
63
|
space?: string | undefined;
|
|
64
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
65
64
|
skipPrefix?: boolean | undefined;
|
|
66
65
|
expiry?: string | undefined;
|
|
67
66
|
description?: string | undefined;
|
|
67
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
68
68
|
}>, "many">;
|
|
69
69
|
requestedExpiry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
70
70
|
}, "strict", z.ZodTypeAny, {
|
|
71
|
-
kind: "tinycloud.auth.request";
|
|
72
|
-
version: 1;
|
|
73
71
|
requestId: string;
|
|
72
|
+
kind: "tinycloud.auth.request";
|
|
74
73
|
sessionDid: string;
|
|
74
|
+
version: 1;
|
|
75
75
|
requested: {
|
|
76
|
-
service: string;
|
|
77
76
|
path: string;
|
|
77
|
+
service: string;
|
|
78
78
|
actions: string[];
|
|
79
79
|
space?: string | undefined;
|
|
80
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
81
80
|
skipPrefix?: boolean | undefined;
|
|
82
81
|
expiry?: string | undefined;
|
|
83
82
|
description?: string | undefined;
|
|
83
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
84
84
|
}[];
|
|
85
85
|
requestedExpiry?: string | number | undefined;
|
|
86
86
|
}, {
|
|
87
|
-
kind: "tinycloud.auth.request";
|
|
88
|
-
version: 1;
|
|
89
87
|
requestId: string;
|
|
88
|
+
kind: "tinycloud.auth.request";
|
|
90
89
|
sessionDid: string;
|
|
90
|
+
version: 1;
|
|
91
91
|
requested: {
|
|
92
|
-
service: string;
|
|
93
92
|
path: string;
|
|
93
|
+
service: string;
|
|
94
94
|
actions: string[];
|
|
95
95
|
space?: string | undefined;
|
|
96
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
97
96
|
skipPrefix?: boolean | undefined;
|
|
98
97
|
expiry?: string | undefined;
|
|
99
98
|
description?: string | undefined;
|
|
99
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
100
100
|
}[];
|
|
101
101
|
requestedExpiry?: string | number | undefined;
|
|
102
102
|
}>;
|
|
@@ -124,23 +124,23 @@ declare const PermissionRequestArtifactSchema: z.ZodObject<{
|
|
|
124
124
|
expiry: z.ZodOptional<z.ZodString>;
|
|
125
125
|
description: z.ZodOptional<z.ZodString>;
|
|
126
126
|
}, "strict", z.ZodTypeAny, {
|
|
127
|
-
service: string;
|
|
128
127
|
path: string;
|
|
128
|
+
service: string;
|
|
129
129
|
actions: string[];
|
|
130
130
|
space?: string | undefined;
|
|
131
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
132
131
|
skipPrefix?: boolean | undefined;
|
|
133
132
|
expiry?: string | undefined;
|
|
134
133
|
description?: string | undefined;
|
|
134
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
135
135
|
}, {
|
|
136
|
-
service: string;
|
|
137
136
|
path: string;
|
|
137
|
+
service: string;
|
|
138
138
|
actions: string[];
|
|
139
139
|
space?: string | undefined;
|
|
140
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
141
140
|
skipPrefix?: boolean | undefined;
|
|
142
141
|
expiry?: string | undefined;
|
|
143
142
|
description?: string | undefined;
|
|
143
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
144
144
|
}>, "many">;
|
|
145
145
|
command: z.ZodOptional<z.ZodObject<{
|
|
146
146
|
argv: z.ZodArray<z.ZodString, "many">;
|
|
@@ -153,55 +153,55 @@ declare const PermissionRequestArtifactSchema: z.ZodObject<{
|
|
|
153
153
|
cwd: string;
|
|
154
154
|
}>>;
|
|
155
155
|
}, "strict", z.ZodTypeAny, {
|
|
156
|
-
|
|
157
|
-
|
|
156
|
+
createdAt: string;
|
|
157
|
+
host: string;
|
|
158
158
|
requestId: string;
|
|
159
|
+
kind: "tinycloud.auth.request";
|
|
160
|
+
operatorType: "human" | "agent";
|
|
159
161
|
sessionDid: string;
|
|
162
|
+
version: 1;
|
|
160
163
|
requested: {
|
|
161
|
-
service: string;
|
|
162
164
|
path: string;
|
|
165
|
+
service: string;
|
|
163
166
|
actions: string[];
|
|
164
167
|
space?: string | undefined;
|
|
165
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
166
168
|
skipPrefix?: boolean | undefined;
|
|
167
169
|
expiry?: string | undefined;
|
|
168
170
|
description?: string | undefined;
|
|
171
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
169
172
|
}[];
|
|
170
|
-
host: string;
|
|
171
|
-
createdAt: string;
|
|
172
173
|
profile: string;
|
|
173
174
|
posture: "owner-openkey" | "delegate-session" | "local-owner-key" | "unauthenticated";
|
|
174
|
-
|
|
175
|
+
ownerDid?: string | undefined;
|
|
175
176
|
requestedExpiry?: string | number | undefined;
|
|
176
177
|
spaceId?: string | undefined;
|
|
177
|
-
ownerDid?: string | undefined;
|
|
178
178
|
command?: {
|
|
179
179
|
argv: string[];
|
|
180
180
|
cwd: string;
|
|
181
181
|
} | undefined;
|
|
182
182
|
}, {
|
|
183
|
-
|
|
184
|
-
|
|
183
|
+
createdAt: string;
|
|
184
|
+
host: string;
|
|
185
185
|
requestId: string;
|
|
186
|
+
kind: "tinycloud.auth.request";
|
|
187
|
+
operatorType: "human" | "agent";
|
|
186
188
|
sessionDid: string;
|
|
189
|
+
version: 1;
|
|
187
190
|
requested: {
|
|
188
|
-
service: string;
|
|
189
191
|
path: string;
|
|
192
|
+
service: string;
|
|
190
193
|
actions: string[];
|
|
191
194
|
space?: string | undefined;
|
|
192
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
193
195
|
skipPrefix?: boolean | undefined;
|
|
194
196
|
expiry?: string | undefined;
|
|
195
197
|
description?: string | undefined;
|
|
198
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
196
199
|
}[];
|
|
197
|
-
host: string;
|
|
198
|
-
createdAt: string;
|
|
199
200
|
profile: string;
|
|
200
201
|
posture: "owner-openkey" | "delegate-session" | "local-owner-key" | "unauthenticated";
|
|
201
|
-
|
|
202
|
+
ownerDid?: string | undefined;
|
|
202
203
|
requestedExpiry?: string | number | undefined;
|
|
203
204
|
spaceId?: string | undefined;
|
|
204
|
-
ownerDid?: string | undefined;
|
|
205
205
|
command?: {
|
|
206
206
|
argv: string[];
|
|
207
207
|
cwd: string;
|
|
@@ -224,60 +224,60 @@ declare const DelegationImportArtifactSchema: z.ZodObject<{
|
|
|
224
224
|
expiry: z.ZodOptional<z.ZodString>;
|
|
225
225
|
description: z.ZodOptional<z.ZodString>;
|
|
226
226
|
}, "strict", z.ZodTypeAny, {
|
|
227
|
-
service: string;
|
|
228
227
|
path: string;
|
|
228
|
+
service: string;
|
|
229
229
|
actions: string[];
|
|
230
230
|
space?: string | undefined;
|
|
231
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
232
231
|
skipPrefix?: boolean | undefined;
|
|
233
232
|
expiry?: string | undefined;
|
|
234
233
|
description?: string | undefined;
|
|
234
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
235
235
|
}, {
|
|
236
|
-
service: string;
|
|
237
236
|
path: string;
|
|
237
|
+
service: string;
|
|
238
238
|
actions: string[];
|
|
239
239
|
space?: string | undefined;
|
|
240
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
241
240
|
skipPrefix?: boolean | undefined;
|
|
242
241
|
expiry?: string | undefined;
|
|
243
242
|
description?: string | undefined;
|
|
243
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
244
244
|
}>, "many">>;
|
|
245
245
|
expiry: z.ZodOptional<z.ZodString>;
|
|
246
246
|
prompted: z.ZodOptional<z.ZodBoolean>;
|
|
247
247
|
}, "strict", z.ZodTypeAny, {
|
|
248
|
+
requestId: string;
|
|
248
249
|
kind: "tinycloud.auth.delegation";
|
|
249
250
|
version: 1;
|
|
250
|
-
requestId: string;
|
|
251
251
|
delegation: Record<string, unknown>;
|
|
252
252
|
expiry?: string | undefined;
|
|
253
253
|
delegationCid?: string | undefined;
|
|
254
254
|
permissions?: {
|
|
255
|
-
service: string;
|
|
256
255
|
path: string;
|
|
256
|
+
service: string;
|
|
257
257
|
actions: string[];
|
|
258
258
|
space?: string | undefined;
|
|
259
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
260
259
|
skipPrefix?: boolean | undefined;
|
|
261
260
|
expiry?: string | undefined;
|
|
262
261
|
description?: string | undefined;
|
|
262
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
263
263
|
}[] | undefined;
|
|
264
264
|
prompted?: boolean | undefined;
|
|
265
265
|
}, {
|
|
266
|
+
requestId: string;
|
|
266
267
|
kind: "tinycloud.auth.delegation";
|
|
267
268
|
version: 1;
|
|
268
|
-
requestId: string;
|
|
269
269
|
delegation: Record<string, unknown>;
|
|
270
270
|
expiry?: string | undefined;
|
|
271
271
|
delegationCid?: string | undefined;
|
|
272
272
|
permissions?: {
|
|
273
|
-
service: string;
|
|
274
273
|
path: string;
|
|
274
|
+
service: string;
|
|
275
275
|
actions: string[];
|
|
276
276
|
space?: string | undefined;
|
|
277
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
278
277
|
skipPrefix?: boolean | undefined;
|
|
279
278
|
expiry?: string | undefined;
|
|
280
279
|
description?: string | undefined;
|
|
280
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
281
281
|
}[] | undefined;
|
|
282
282
|
prompted?: boolean | undefined;
|
|
283
283
|
}>;
|
|
@@ -309,23 +309,23 @@ declare const DelegationRequestBindingSchema: z.ZodObject<Pick<{
|
|
|
309
309
|
expiry: z.ZodOptional<z.ZodString>;
|
|
310
310
|
description: z.ZodOptional<z.ZodString>;
|
|
311
311
|
}, "strict", z.ZodTypeAny, {
|
|
312
|
-
service: string;
|
|
313
312
|
path: string;
|
|
313
|
+
service: string;
|
|
314
314
|
actions: string[];
|
|
315
315
|
space?: string | undefined;
|
|
316
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
317
316
|
skipPrefix?: boolean | undefined;
|
|
318
317
|
expiry?: string | undefined;
|
|
319
318
|
description?: string | undefined;
|
|
319
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
320
320
|
}, {
|
|
321
|
-
service: string;
|
|
322
321
|
path: string;
|
|
322
|
+
service: string;
|
|
323
323
|
actions: string[];
|
|
324
324
|
space?: string | undefined;
|
|
325
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
326
325
|
skipPrefix?: boolean | undefined;
|
|
327
326
|
expiry?: string | undefined;
|
|
328
327
|
description?: string | undefined;
|
|
328
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
329
329
|
}>, "many">;
|
|
330
330
|
command: z.ZodOptional<z.ZodObject<{
|
|
331
331
|
argv: z.ZodArray<z.ZodString, "many">;
|
|
@@ -340,26 +340,26 @@ declare const DelegationRequestBindingSchema: z.ZodObject<Pick<{
|
|
|
340
340
|
}, "requestId" | "requested">, "strict", z.ZodTypeAny, {
|
|
341
341
|
requestId: string;
|
|
342
342
|
requested: {
|
|
343
|
-
service: string;
|
|
344
343
|
path: string;
|
|
344
|
+
service: string;
|
|
345
345
|
actions: string[];
|
|
346
346
|
space?: string | undefined;
|
|
347
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
348
347
|
skipPrefix?: boolean | undefined;
|
|
349
348
|
expiry?: string | undefined;
|
|
350
349
|
description?: string | undefined;
|
|
350
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
351
351
|
}[];
|
|
352
352
|
}, {
|
|
353
353
|
requestId: string;
|
|
354
354
|
requested: {
|
|
355
|
-
service: string;
|
|
356
355
|
path: string;
|
|
356
|
+
service: string;
|
|
357
357
|
actions: string[];
|
|
358
358
|
space?: string | undefined;
|
|
359
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
360
359
|
skipPrefix?: boolean | undefined;
|
|
361
360
|
expiry?: string | undefined;
|
|
362
361
|
description?: string | undefined;
|
|
362
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
363
363
|
}[];
|
|
364
364
|
}>;
|
|
365
365
|
type DelegationRequestBinding = z.infer<typeof DelegationRequestBindingSchema>;
|
package/dist/artifacts.d.ts
CHANGED
|
@@ -15,23 +15,23 @@ declare const PermissionEntrySchema: z.ZodObject<{
|
|
|
15
15
|
expiry: z.ZodOptional<z.ZodString>;
|
|
16
16
|
description: z.ZodOptional<z.ZodString>;
|
|
17
17
|
}, "strict", z.ZodTypeAny, {
|
|
18
|
-
service: string;
|
|
19
18
|
path: string;
|
|
19
|
+
service: string;
|
|
20
20
|
actions: string[];
|
|
21
21
|
space?: string | undefined;
|
|
22
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
23
22
|
skipPrefix?: boolean | undefined;
|
|
24
23
|
expiry?: string | undefined;
|
|
25
24
|
description?: string | undefined;
|
|
25
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
26
26
|
}, {
|
|
27
|
-
service: string;
|
|
28
27
|
path: string;
|
|
28
|
+
service: string;
|
|
29
29
|
actions: string[];
|
|
30
30
|
space?: string | undefined;
|
|
31
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
32
31
|
skipPrefix?: boolean | undefined;
|
|
33
32
|
expiry?: string | undefined;
|
|
34
33
|
description?: string | undefined;
|
|
34
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
35
35
|
}>;
|
|
36
36
|
declare const LegacyPermissionRequestArtifactSchema: z.ZodObject<{
|
|
37
37
|
kind: z.ZodLiteral<"tinycloud.auth.request">;
|
|
@@ -48,55 +48,55 @@ declare const LegacyPermissionRequestArtifactSchema: z.ZodObject<{
|
|
|
48
48
|
expiry: z.ZodOptional<z.ZodString>;
|
|
49
49
|
description: z.ZodOptional<z.ZodString>;
|
|
50
50
|
}, "strict", z.ZodTypeAny, {
|
|
51
|
-
service: string;
|
|
52
51
|
path: string;
|
|
52
|
+
service: string;
|
|
53
53
|
actions: string[];
|
|
54
54
|
space?: string | undefined;
|
|
55
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
56
55
|
skipPrefix?: boolean | undefined;
|
|
57
56
|
expiry?: string | undefined;
|
|
58
57
|
description?: string | undefined;
|
|
58
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
59
59
|
}, {
|
|
60
|
-
service: string;
|
|
61
60
|
path: string;
|
|
61
|
+
service: string;
|
|
62
62
|
actions: string[];
|
|
63
63
|
space?: string | undefined;
|
|
64
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
65
64
|
skipPrefix?: boolean | undefined;
|
|
66
65
|
expiry?: string | undefined;
|
|
67
66
|
description?: string | undefined;
|
|
67
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
68
68
|
}>, "many">;
|
|
69
69
|
requestedExpiry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
70
70
|
}, "strict", z.ZodTypeAny, {
|
|
71
|
-
kind: "tinycloud.auth.request";
|
|
72
|
-
version: 1;
|
|
73
71
|
requestId: string;
|
|
72
|
+
kind: "tinycloud.auth.request";
|
|
74
73
|
sessionDid: string;
|
|
74
|
+
version: 1;
|
|
75
75
|
requested: {
|
|
76
|
-
service: string;
|
|
77
76
|
path: string;
|
|
77
|
+
service: string;
|
|
78
78
|
actions: string[];
|
|
79
79
|
space?: string | undefined;
|
|
80
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
81
80
|
skipPrefix?: boolean | undefined;
|
|
82
81
|
expiry?: string | undefined;
|
|
83
82
|
description?: string | undefined;
|
|
83
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
84
84
|
}[];
|
|
85
85
|
requestedExpiry?: string | number | undefined;
|
|
86
86
|
}, {
|
|
87
|
-
kind: "tinycloud.auth.request";
|
|
88
|
-
version: 1;
|
|
89
87
|
requestId: string;
|
|
88
|
+
kind: "tinycloud.auth.request";
|
|
90
89
|
sessionDid: string;
|
|
90
|
+
version: 1;
|
|
91
91
|
requested: {
|
|
92
|
-
service: string;
|
|
93
92
|
path: string;
|
|
93
|
+
service: string;
|
|
94
94
|
actions: string[];
|
|
95
95
|
space?: string | undefined;
|
|
96
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
97
96
|
skipPrefix?: boolean | undefined;
|
|
98
97
|
expiry?: string | undefined;
|
|
99
98
|
description?: string | undefined;
|
|
99
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
100
100
|
}[];
|
|
101
101
|
requestedExpiry?: string | number | undefined;
|
|
102
102
|
}>;
|
|
@@ -124,23 +124,23 @@ declare const PermissionRequestArtifactSchema: z.ZodObject<{
|
|
|
124
124
|
expiry: z.ZodOptional<z.ZodString>;
|
|
125
125
|
description: z.ZodOptional<z.ZodString>;
|
|
126
126
|
}, "strict", z.ZodTypeAny, {
|
|
127
|
-
service: string;
|
|
128
127
|
path: string;
|
|
128
|
+
service: string;
|
|
129
129
|
actions: string[];
|
|
130
130
|
space?: string | undefined;
|
|
131
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
132
131
|
skipPrefix?: boolean | undefined;
|
|
133
132
|
expiry?: string | undefined;
|
|
134
133
|
description?: string | undefined;
|
|
134
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
135
135
|
}, {
|
|
136
|
-
service: string;
|
|
137
136
|
path: string;
|
|
137
|
+
service: string;
|
|
138
138
|
actions: string[];
|
|
139
139
|
space?: string | undefined;
|
|
140
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
141
140
|
skipPrefix?: boolean | undefined;
|
|
142
141
|
expiry?: string | undefined;
|
|
143
142
|
description?: string | undefined;
|
|
143
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
144
144
|
}>, "many">;
|
|
145
145
|
command: z.ZodOptional<z.ZodObject<{
|
|
146
146
|
argv: z.ZodArray<z.ZodString, "many">;
|
|
@@ -153,55 +153,55 @@ declare const PermissionRequestArtifactSchema: z.ZodObject<{
|
|
|
153
153
|
cwd: string;
|
|
154
154
|
}>>;
|
|
155
155
|
}, "strict", z.ZodTypeAny, {
|
|
156
|
-
|
|
157
|
-
|
|
156
|
+
createdAt: string;
|
|
157
|
+
host: string;
|
|
158
158
|
requestId: string;
|
|
159
|
+
kind: "tinycloud.auth.request";
|
|
160
|
+
operatorType: "human" | "agent";
|
|
159
161
|
sessionDid: string;
|
|
162
|
+
version: 1;
|
|
160
163
|
requested: {
|
|
161
|
-
service: string;
|
|
162
164
|
path: string;
|
|
165
|
+
service: string;
|
|
163
166
|
actions: string[];
|
|
164
167
|
space?: string | undefined;
|
|
165
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
166
168
|
skipPrefix?: boolean | undefined;
|
|
167
169
|
expiry?: string | undefined;
|
|
168
170
|
description?: string | undefined;
|
|
171
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
169
172
|
}[];
|
|
170
|
-
host: string;
|
|
171
|
-
createdAt: string;
|
|
172
173
|
profile: string;
|
|
173
174
|
posture: "owner-openkey" | "delegate-session" | "local-owner-key" | "unauthenticated";
|
|
174
|
-
|
|
175
|
+
ownerDid?: string | undefined;
|
|
175
176
|
requestedExpiry?: string | number | undefined;
|
|
176
177
|
spaceId?: string | undefined;
|
|
177
|
-
ownerDid?: string | undefined;
|
|
178
178
|
command?: {
|
|
179
179
|
argv: string[];
|
|
180
180
|
cwd: string;
|
|
181
181
|
} | undefined;
|
|
182
182
|
}, {
|
|
183
|
-
|
|
184
|
-
|
|
183
|
+
createdAt: string;
|
|
184
|
+
host: string;
|
|
185
185
|
requestId: string;
|
|
186
|
+
kind: "tinycloud.auth.request";
|
|
187
|
+
operatorType: "human" | "agent";
|
|
186
188
|
sessionDid: string;
|
|
189
|
+
version: 1;
|
|
187
190
|
requested: {
|
|
188
|
-
service: string;
|
|
189
191
|
path: string;
|
|
192
|
+
service: string;
|
|
190
193
|
actions: string[];
|
|
191
194
|
space?: string | undefined;
|
|
192
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
193
195
|
skipPrefix?: boolean | undefined;
|
|
194
196
|
expiry?: string | undefined;
|
|
195
197
|
description?: string | undefined;
|
|
198
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
196
199
|
}[];
|
|
197
|
-
host: string;
|
|
198
|
-
createdAt: string;
|
|
199
200
|
profile: string;
|
|
200
201
|
posture: "owner-openkey" | "delegate-session" | "local-owner-key" | "unauthenticated";
|
|
201
|
-
|
|
202
|
+
ownerDid?: string | undefined;
|
|
202
203
|
requestedExpiry?: string | number | undefined;
|
|
203
204
|
spaceId?: string | undefined;
|
|
204
|
-
ownerDid?: string | undefined;
|
|
205
205
|
command?: {
|
|
206
206
|
argv: string[];
|
|
207
207
|
cwd: string;
|
|
@@ -224,60 +224,60 @@ declare const DelegationImportArtifactSchema: z.ZodObject<{
|
|
|
224
224
|
expiry: z.ZodOptional<z.ZodString>;
|
|
225
225
|
description: z.ZodOptional<z.ZodString>;
|
|
226
226
|
}, "strict", z.ZodTypeAny, {
|
|
227
|
-
service: string;
|
|
228
227
|
path: string;
|
|
228
|
+
service: string;
|
|
229
229
|
actions: string[];
|
|
230
230
|
space?: string | undefined;
|
|
231
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
232
231
|
skipPrefix?: boolean | undefined;
|
|
233
232
|
expiry?: string | undefined;
|
|
234
233
|
description?: string | undefined;
|
|
234
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
235
235
|
}, {
|
|
236
|
-
service: string;
|
|
237
236
|
path: string;
|
|
237
|
+
service: string;
|
|
238
238
|
actions: string[];
|
|
239
239
|
space?: string | undefined;
|
|
240
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
241
240
|
skipPrefix?: boolean | undefined;
|
|
242
241
|
expiry?: string | undefined;
|
|
243
242
|
description?: string | undefined;
|
|
243
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
244
244
|
}>, "many">>;
|
|
245
245
|
expiry: z.ZodOptional<z.ZodString>;
|
|
246
246
|
prompted: z.ZodOptional<z.ZodBoolean>;
|
|
247
247
|
}, "strict", z.ZodTypeAny, {
|
|
248
|
+
requestId: string;
|
|
248
249
|
kind: "tinycloud.auth.delegation";
|
|
249
250
|
version: 1;
|
|
250
|
-
requestId: string;
|
|
251
251
|
delegation: Record<string, unknown>;
|
|
252
252
|
expiry?: string | undefined;
|
|
253
253
|
delegationCid?: string | undefined;
|
|
254
254
|
permissions?: {
|
|
255
|
-
service: string;
|
|
256
255
|
path: string;
|
|
256
|
+
service: string;
|
|
257
257
|
actions: string[];
|
|
258
258
|
space?: string | undefined;
|
|
259
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
260
259
|
skipPrefix?: boolean | undefined;
|
|
261
260
|
expiry?: string | undefined;
|
|
262
261
|
description?: string | undefined;
|
|
262
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
263
263
|
}[] | undefined;
|
|
264
264
|
prompted?: boolean | undefined;
|
|
265
265
|
}, {
|
|
266
|
+
requestId: string;
|
|
266
267
|
kind: "tinycloud.auth.delegation";
|
|
267
268
|
version: 1;
|
|
268
|
-
requestId: string;
|
|
269
269
|
delegation: Record<string, unknown>;
|
|
270
270
|
expiry?: string | undefined;
|
|
271
271
|
delegationCid?: string | undefined;
|
|
272
272
|
permissions?: {
|
|
273
|
-
service: string;
|
|
274
273
|
path: string;
|
|
274
|
+
service: string;
|
|
275
275
|
actions: string[];
|
|
276
276
|
space?: string | undefined;
|
|
277
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
278
277
|
skipPrefix?: boolean | undefined;
|
|
279
278
|
expiry?: string | undefined;
|
|
280
279
|
description?: string | undefined;
|
|
280
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
281
281
|
}[] | undefined;
|
|
282
282
|
prompted?: boolean | undefined;
|
|
283
283
|
}>;
|
|
@@ -309,23 +309,23 @@ declare const DelegationRequestBindingSchema: z.ZodObject<Pick<{
|
|
|
309
309
|
expiry: z.ZodOptional<z.ZodString>;
|
|
310
310
|
description: z.ZodOptional<z.ZodString>;
|
|
311
311
|
}, "strict", z.ZodTypeAny, {
|
|
312
|
-
service: string;
|
|
313
312
|
path: string;
|
|
313
|
+
service: string;
|
|
314
314
|
actions: string[];
|
|
315
315
|
space?: string | undefined;
|
|
316
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
317
316
|
skipPrefix?: boolean | undefined;
|
|
318
317
|
expiry?: string | undefined;
|
|
319
318
|
description?: string | undefined;
|
|
319
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
320
320
|
}, {
|
|
321
|
-
service: string;
|
|
322
321
|
path: string;
|
|
322
|
+
service: string;
|
|
323
323
|
actions: string[];
|
|
324
324
|
space?: string | undefined;
|
|
325
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
326
325
|
skipPrefix?: boolean | undefined;
|
|
327
326
|
expiry?: string | undefined;
|
|
328
327
|
description?: string | undefined;
|
|
328
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
329
329
|
}>, "many">;
|
|
330
330
|
command: z.ZodOptional<z.ZodObject<{
|
|
331
331
|
argv: z.ZodArray<z.ZodString, "many">;
|
|
@@ -340,26 +340,26 @@ declare const DelegationRequestBindingSchema: z.ZodObject<Pick<{
|
|
|
340
340
|
}, "requestId" | "requested">, "strict", z.ZodTypeAny, {
|
|
341
341
|
requestId: string;
|
|
342
342
|
requested: {
|
|
343
|
-
service: string;
|
|
344
343
|
path: string;
|
|
344
|
+
service: string;
|
|
345
345
|
actions: string[];
|
|
346
346
|
space?: string | undefined;
|
|
347
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
348
347
|
skipPrefix?: boolean | undefined;
|
|
349
348
|
expiry?: string | undefined;
|
|
350
349
|
description?: string | undefined;
|
|
350
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
351
351
|
}[];
|
|
352
352
|
}, {
|
|
353
353
|
requestId: string;
|
|
354
354
|
requested: {
|
|
355
|
-
service: string;
|
|
356
355
|
path: string;
|
|
356
|
+
service: string;
|
|
357
357
|
actions: string[];
|
|
358
358
|
space?: string | undefined;
|
|
359
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
360
359
|
skipPrefix?: boolean | undefined;
|
|
361
360
|
expiry?: string | undefined;
|
|
362
361
|
description?: string | undefined;
|
|
362
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
363
363
|
}[];
|
|
364
364
|
}>;
|
|
365
365
|
type DelegationRequestBinding = z.infer<typeof DelegationRequestBindingSchema>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinycloud/operations",
|
|
3
|
-
"version": "0.7.6-beta.
|
|
3
|
+
"version": "0.7.6-beta.2",
|
|
4
4
|
"description": "TinyCloud shared operations contracts and runtime",
|
|
5
5
|
"author": "TinyCloud, Inc.",
|
|
6
6
|
"license": "EGPL",
|
|
@@ -94,9 +94,9 @@
|
|
|
94
94
|
"check:generated": "bun scripts/generate.ts --check"
|
|
95
95
|
},
|
|
96
96
|
"dependencies": {
|
|
97
|
-
"@tinycloud/node-sdk": "3.
|
|
98
|
-
"@tinycloud/sdk-core": "3.
|
|
99
|
-
"@tinycloud/sdk-services": "3.
|
|
97
|
+
"@tinycloud/node-sdk": "3.7.0-beta.2",
|
|
98
|
+
"@tinycloud/sdk-core": "3.7.0-beta.2",
|
|
99
|
+
"@tinycloud/sdk-services": "3.7.0-beta.2",
|
|
100
100
|
"node-sql-parser": "5.4.0",
|
|
101
101
|
"zod": "^3.22.0",
|
|
102
102
|
"zod-to-json-schema": "^3.25.2"
|