@tinycloud/operations 0.5.0-beta.4 → 0.5.0-beta.5
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 +34 -34
- package/dist/artifacts.d.ts +34 -34
- package/package.json +4 -4
package/coverage.json
CHANGED
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
{ "command": "replica status", "status": "legacy" },
|
|
46
46
|
{ "command": "replica report", "status": "legacy" },
|
|
47
47
|
{ "command": "replica reset", "status": "legacy" },
|
|
48
|
+
{ "command": "courier [args]", "status": "excluded", "reason": "Delegates argv to @tinycloud/courier; Courier's own agent identity and profile, not a TinyCloud operations surface." },
|
|
48
49
|
{ "command": "space", "status": "legacy" },
|
|
49
50
|
{ "command": "space list", "status": "legacy" },
|
|
50
51
|
{ "command": "space create <name>", "status": "legacy" },
|
package/dist/artifacts.d.cts
CHANGED
|
@@ -19,19 +19,19 @@ declare const PermissionEntrySchema: z.ZodObject<{
|
|
|
19
19
|
path: 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
27
|
service: string;
|
|
28
28
|
path: 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">;
|
|
@@ -52,51 +52,51 @@ declare const LegacyPermissionRequestArtifactSchema: z.ZodObject<{
|
|
|
52
52
|
path: 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
60
|
service: string;
|
|
61
61
|
path: 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
76
|
service: string;
|
|
77
77
|
path: 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
92
|
service: string;
|
|
93
93
|
path: 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
|
}>;
|
|
@@ -128,19 +128,19 @@ declare const PermissionRequestArtifactSchema: z.ZodObject<{
|
|
|
128
128
|
path: 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
136
|
service: string;
|
|
137
137
|
path: 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
|
-
version: 1;
|
|
156
|
+
createdAt: string;
|
|
158
157
|
requestId: string;
|
|
158
|
+
kind: "tinycloud.auth.request";
|
|
159
|
+
operatorType: "human" | "agent";
|
|
159
160
|
sessionDid: string;
|
|
161
|
+
version: 1;
|
|
160
162
|
requested: {
|
|
161
163
|
service: string;
|
|
162
164
|
path: string;
|
|
163
165
|
actions: string[];
|
|
164
166
|
space?: string | undefined;
|
|
165
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
166
167
|
skipPrefix?: boolean | undefined;
|
|
167
168
|
expiry?: string | undefined;
|
|
168
169
|
description?: string | undefined;
|
|
170
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
169
171
|
}[];
|
|
170
172
|
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
|
-
version: 1;
|
|
183
|
+
createdAt: string;
|
|
185
184
|
requestId: string;
|
|
185
|
+
kind: "tinycloud.auth.request";
|
|
186
|
+
operatorType: "human" | "agent";
|
|
186
187
|
sessionDid: string;
|
|
188
|
+
version: 1;
|
|
187
189
|
requested: {
|
|
188
190
|
service: string;
|
|
189
191
|
path: string;
|
|
190
192
|
actions: string[];
|
|
191
193
|
space?: string | undefined;
|
|
192
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
193
194
|
skipPrefix?: boolean | undefined;
|
|
194
195
|
expiry?: string | undefined;
|
|
195
196
|
description?: string | undefined;
|
|
197
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
196
198
|
}[];
|
|
197
199
|
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;
|
|
@@ -228,26 +228,26 @@ declare const DelegationImportArtifactSchema: z.ZodObject<{
|
|
|
228
228
|
path: 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
236
|
service: string;
|
|
237
237
|
path: 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;
|
|
@@ -256,16 +256,16 @@ declare const DelegationImportArtifactSchema: z.ZodObject<{
|
|
|
256
256
|
path: 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;
|
|
@@ -274,10 +274,10 @@ declare const DelegationImportArtifactSchema: z.ZodObject<{
|
|
|
274
274
|
path: 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
|
}>;
|
|
@@ -313,19 +313,19 @@ declare const DelegationRequestBindingSchema: z.ZodObject<Pick<{
|
|
|
313
313
|
path: 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
321
|
service: string;
|
|
322
322
|
path: 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">;
|
|
@@ -344,10 +344,10 @@ declare const DelegationRequestBindingSchema: z.ZodObject<Pick<{
|
|
|
344
344
|
path: 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;
|
|
@@ -356,10 +356,10 @@ declare const DelegationRequestBindingSchema: z.ZodObject<Pick<{
|
|
|
356
356
|
path: 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
|
@@ -19,19 +19,19 @@ declare const PermissionEntrySchema: z.ZodObject<{
|
|
|
19
19
|
path: 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
27
|
service: string;
|
|
28
28
|
path: 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">;
|
|
@@ -52,51 +52,51 @@ declare const LegacyPermissionRequestArtifactSchema: z.ZodObject<{
|
|
|
52
52
|
path: 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
60
|
service: string;
|
|
61
61
|
path: 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
76
|
service: string;
|
|
77
77
|
path: 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
92
|
service: string;
|
|
93
93
|
path: 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
|
}>;
|
|
@@ -128,19 +128,19 @@ declare const PermissionRequestArtifactSchema: z.ZodObject<{
|
|
|
128
128
|
path: 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
136
|
service: string;
|
|
137
137
|
path: 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
|
-
version: 1;
|
|
156
|
+
createdAt: string;
|
|
158
157
|
requestId: string;
|
|
158
|
+
kind: "tinycloud.auth.request";
|
|
159
|
+
operatorType: "human" | "agent";
|
|
159
160
|
sessionDid: string;
|
|
161
|
+
version: 1;
|
|
160
162
|
requested: {
|
|
161
163
|
service: string;
|
|
162
164
|
path: string;
|
|
163
165
|
actions: string[];
|
|
164
166
|
space?: string | undefined;
|
|
165
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
166
167
|
skipPrefix?: boolean | undefined;
|
|
167
168
|
expiry?: string | undefined;
|
|
168
169
|
description?: string | undefined;
|
|
170
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
169
171
|
}[];
|
|
170
172
|
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
|
-
version: 1;
|
|
183
|
+
createdAt: string;
|
|
185
184
|
requestId: string;
|
|
185
|
+
kind: "tinycloud.auth.request";
|
|
186
|
+
operatorType: "human" | "agent";
|
|
186
187
|
sessionDid: string;
|
|
188
|
+
version: 1;
|
|
187
189
|
requested: {
|
|
188
190
|
service: string;
|
|
189
191
|
path: string;
|
|
190
192
|
actions: string[];
|
|
191
193
|
space?: string | undefined;
|
|
192
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
193
194
|
skipPrefix?: boolean | undefined;
|
|
194
195
|
expiry?: string | undefined;
|
|
195
196
|
description?: string | undefined;
|
|
197
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
196
198
|
}[];
|
|
197
199
|
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;
|
|
@@ -228,26 +228,26 @@ declare const DelegationImportArtifactSchema: z.ZodObject<{
|
|
|
228
228
|
path: 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
236
|
service: string;
|
|
237
237
|
path: 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;
|
|
@@ -256,16 +256,16 @@ declare const DelegationImportArtifactSchema: z.ZodObject<{
|
|
|
256
256
|
path: 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;
|
|
@@ -274,10 +274,10 @@ declare const DelegationImportArtifactSchema: z.ZodObject<{
|
|
|
274
274
|
path: 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
|
}>;
|
|
@@ -313,19 +313,19 @@ declare const DelegationRequestBindingSchema: z.ZodObject<Pick<{
|
|
|
313
313
|
path: 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
321
|
service: string;
|
|
322
322
|
path: 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">;
|
|
@@ -344,10 +344,10 @@ declare const DelegationRequestBindingSchema: z.ZodObject<Pick<{
|
|
|
344
344
|
path: 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;
|
|
@@ -356,10 +356,10 @@ declare const DelegationRequestBindingSchema: z.ZodObject<Pick<{
|
|
|
356
356
|
path: 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.5.0-beta.
|
|
3
|
+
"version": "0.5.0-beta.5",
|
|
4
4
|
"description": "TinyCloud shared operations contracts and runtime",
|
|
5
5
|
"author": "TinyCloud, Inc.",
|
|
6
6
|
"license": "EGPL",
|
|
@@ -74,9 +74,9 @@
|
|
|
74
74
|
"check:generated": "bun scripts/generate.ts --check"
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@tinycloud/node-sdk": "3.2.0-beta.
|
|
78
|
-
"@tinycloud/sdk-core": "3.2.0-beta.
|
|
79
|
-
"@tinycloud/sdk-services": "3.2.0-beta.
|
|
77
|
+
"@tinycloud/node-sdk": "3.2.0-beta.5",
|
|
78
|
+
"@tinycloud/sdk-core": "3.2.0-beta.5",
|
|
79
|
+
"@tinycloud/sdk-services": "3.2.0-beta.5",
|
|
80
80
|
"node-sql-parser": "5.4.0",
|
|
81
81
|
"zod": "^3.22.0",
|
|
82
82
|
"zod-to-json-schema": "^3.22.0"
|