@tinycloud/operations 0.7.6-beta.2 → 0.7.6-beta.3
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/dist/artifacts.d.cts +54 -54
- package/dist/artifacts.d.ts +54 -54
- package/package.json +4 -4
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
|
-
path: string;
|
|
19
18
|
service: string;
|
|
19
|
+
path: string;
|
|
20
20
|
actions: string[];
|
|
21
21
|
space?: string | undefined;
|
|
22
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
22
23
|
skipPrefix?: boolean | undefined;
|
|
23
24
|
expiry?: string | undefined;
|
|
24
25
|
description?: string | undefined;
|
|
25
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
26
26
|
}, {
|
|
27
|
-
path: string;
|
|
28
27
|
service: string;
|
|
28
|
+
path: string;
|
|
29
29
|
actions: string[];
|
|
30
30
|
space?: string | undefined;
|
|
31
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
31
32
|
skipPrefix?: boolean | undefined;
|
|
32
33
|
expiry?: string | undefined;
|
|
33
34
|
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
|
-
path: string;
|
|
52
51
|
service: string;
|
|
52
|
+
path: string;
|
|
53
53
|
actions: string[];
|
|
54
54
|
space?: string | undefined;
|
|
55
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
55
56
|
skipPrefix?: boolean | undefined;
|
|
56
57
|
expiry?: string | undefined;
|
|
57
58
|
description?: string | undefined;
|
|
58
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
59
59
|
}, {
|
|
60
|
-
path: string;
|
|
61
60
|
service: string;
|
|
61
|
+
path: string;
|
|
62
62
|
actions: string[];
|
|
63
63
|
space?: string | undefined;
|
|
64
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
64
65
|
skipPrefix?: boolean | undefined;
|
|
65
66
|
expiry?: string | undefined;
|
|
66
67
|
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
|
-
requestId: string;
|
|
72
71
|
kind: "tinycloud.auth.request";
|
|
73
|
-
sessionDid: string;
|
|
74
72
|
version: 1;
|
|
73
|
+
requestId: string;
|
|
74
|
+
sessionDid: string;
|
|
75
75
|
requested: {
|
|
76
|
-
path: string;
|
|
77
76
|
service: string;
|
|
77
|
+
path: string;
|
|
78
78
|
actions: string[];
|
|
79
79
|
space?: string | undefined;
|
|
80
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
80
81
|
skipPrefix?: boolean | undefined;
|
|
81
82
|
expiry?: string | undefined;
|
|
82
83
|
description?: string | undefined;
|
|
83
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
84
84
|
}[];
|
|
85
85
|
requestedExpiry?: string | number | undefined;
|
|
86
86
|
}, {
|
|
87
|
-
requestId: string;
|
|
88
87
|
kind: "tinycloud.auth.request";
|
|
89
|
-
sessionDid: string;
|
|
90
88
|
version: 1;
|
|
89
|
+
requestId: string;
|
|
90
|
+
sessionDid: string;
|
|
91
91
|
requested: {
|
|
92
|
-
path: string;
|
|
93
92
|
service: string;
|
|
93
|
+
path: string;
|
|
94
94
|
actions: string[];
|
|
95
95
|
space?: string | undefined;
|
|
96
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
96
97
|
skipPrefix?: boolean | undefined;
|
|
97
98
|
expiry?: string | undefined;
|
|
98
99
|
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
|
-
path: string;
|
|
128
127
|
service: string;
|
|
128
|
+
path: string;
|
|
129
129
|
actions: string[];
|
|
130
130
|
space?: string | undefined;
|
|
131
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
131
132
|
skipPrefix?: boolean | undefined;
|
|
132
133
|
expiry?: string | undefined;
|
|
133
134
|
description?: string | undefined;
|
|
134
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
135
135
|
}, {
|
|
136
|
-
path: string;
|
|
137
136
|
service: string;
|
|
137
|
+
path: string;
|
|
138
138
|
actions: string[];
|
|
139
139
|
space?: string | undefined;
|
|
140
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
140
141
|
skipPrefix?: boolean | undefined;
|
|
141
142
|
expiry?: string | undefined;
|
|
142
143
|
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
|
-
createdAt: string;
|
|
157
|
-
host: string;
|
|
158
|
-
requestId: string;
|
|
159
156
|
kind: "tinycloud.auth.request";
|
|
160
|
-
operatorType: "human" | "agent";
|
|
161
|
-
sessionDid: string;
|
|
162
157
|
version: 1;
|
|
158
|
+
requestId: string;
|
|
159
|
+
sessionDid: string;
|
|
163
160
|
requested: {
|
|
164
|
-
path: string;
|
|
165
161
|
service: string;
|
|
162
|
+
path: string;
|
|
166
163
|
actions: string[];
|
|
167
164
|
space?: string | undefined;
|
|
165
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
168
166
|
skipPrefix?: boolean | undefined;
|
|
169
167
|
expiry?: string | undefined;
|
|
170
168
|
description?: string | undefined;
|
|
171
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
172
169
|
}[];
|
|
170
|
+
host: string;
|
|
171
|
+
createdAt: string;
|
|
173
172
|
profile: string;
|
|
174
173
|
posture: "owner-openkey" | "delegate-session" | "local-owner-key" | "unauthenticated";
|
|
175
|
-
|
|
174
|
+
operatorType: "human" | "agent";
|
|
176
175
|
requestedExpiry?: string | number | undefined;
|
|
177
176
|
spaceId?: string | undefined;
|
|
177
|
+
ownerDid?: string | undefined;
|
|
178
178
|
command?: {
|
|
179
179
|
argv: string[];
|
|
180
180
|
cwd: string;
|
|
181
181
|
} | undefined;
|
|
182
182
|
}, {
|
|
183
|
-
createdAt: string;
|
|
184
|
-
host: string;
|
|
185
|
-
requestId: string;
|
|
186
183
|
kind: "tinycloud.auth.request";
|
|
187
|
-
operatorType: "human" | "agent";
|
|
188
|
-
sessionDid: string;
|
|
189
184
|
version: 1;
|
|
185
|
+
requestId: string;
|
|
186
|
+
sessionDid: string;
|
|
190
187
|
requested: {
|
|
191
|
-
path: string;
|
|
192
188
|
service: string;
|
|
189
|
+
path: string;
|
|
193
190
|
actions: string[];
|
|
194
191
|
space?: string | undefined;
|
|
192
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
195
193
|
skipPrefix?: boolean | undefined;
|
|
196
194
|
expiry?: string | undefined;
|
|
197
195
|
description?: string | undefined;
|
|
198
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
199
196
|
}[];
|
|
197
|
+
host: string;
|
|
198
|
+
createdAt: string;
|
|
200
199
|
profile: string;
|
|
201
200
|
posture: "owner-openkey" | "delegate-session" | "local-owner-key" | "unauthenticated";
|
|
202
|
-
|
|
201
|
+
operatorType: "human" | "agent";
|
|
203
202
|
requestedExpiry?: string | number | undefined;
|
|
204
203
|
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
|
-
path: string;
|
|
228
227
|
service: string;
|
|
228
|
+
path: string;
|
|
229
229
|
actions: string[];
|
|
230
230
|
space?: string | undefined;
|
|
231
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
231
232
|
skipPrefix?: boolean | undefined;
|
|
232
233
|
expiry?: string | undefined;
|
|
233
234
|
description?: string | undefined;
|
|
234
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
235
235
|
}, {
|
|
236
|
-
path: string;
|
|
237
236
|
service: string;
|
|
237
|
+
path: string;
|
|
238
238
|
actions: string[];
|
|
239
239
|
space?: string | undefined;
|
|
240
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
240
241
|
skipPrefix?: boolean | undefined;
|
|
241
242
|
expiry?: string | undefined;
|
|
242
243
|
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;
|
|
249
248
|
kind: "tinycloud.auth.delegation";
|
|
250
249
|
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
|
-
path: string;
|
|
256
255
|
service: string;
|
|
256
|
+
path: string;
|
|
257
257
|
actions: string[];
|
|
258
258
|
space?: string | undefined;
|
|
259
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
259
260
|
skipPrefix?: boolean | undefined;
|
|
260
261
|
expiry?: string | undefined;
|
|
261
262
|
description?: string | undefined;
|
|
262
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
263
263
|
}[] | undefined;
|
|
264
264
|
prompted?: boolean | undefined;
|
|
265
265
|
}, {
|
|
266
|
-
requestId: string;
|
|
267
266
|
kind: "tinycloud.auth.delegation";
|
|
268
267
|
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
|
-
path: string;
|
|
274
273
|
service: string;
|
|
274
|
+
path: string;
|
|
275
275
|
actions: string[];
|
|
276
276
|
space?: string | undefined;
|
|
277
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
277
278
|
skipPrefix?: boolean | undefined;
|
|
278
279
|
expiry?: string | undefined;
|
|
279
280
|
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
|
-
path: string;
|
|
313
312
|
service: string;
|
|
313
|
+
path: string;
|
|
314
314
|
actions: string[];
|
|
315
315
|
space?: string | undefined;
|
|
316
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
316
317
|
skipPrefix?: boolean | undefined;
|
|
317
318
|
expiry?: string | undefined;
|
|
318
319
|
description?: string | undefined;
|
|
319
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
320
320
|
}, {
|
|
321
|
-
path: string;
|
|
322
321
|
service: string;
|
|
322
|
+
path: string;
|
|
323
323
|
actions: string[];
|
|
324
324
|
space?: string | undefined;
|
|
325
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
325
326
|
skipPrefix?: boolean | undefined;
|
|
326
327
|
expiry?: string | undefined;
|
|
327
328
|
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
|
-
path: string;
|
|
344
343
|
service: string;
|
|
344
|
+
path: string;
|
|
345
345
|
actions: string[];
|
|
346
346
|
space?: string | undefined;
|
|
347
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
347
348
|
skipPrefix?: boolean | undefined;
|
|
348
349
|
expiry?: string | undefined;
|
|
349
350
|
description?: string | undefined;
|
|
350
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
351
351
|
}[];
|
|
352
352
|
}, {
|
|
353
353
|
requestId: string;
|
|
354
354
|
requested: {
|
|
355
|
-
path: string;
|
|
356
355
|
service: string;
|
|
356
|
+
path: string;
|
|
357
357
|
actions: string[];
|
|
358
358
|
space?: string | undefined;
|
|
359
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
359
360
|
skipPrefix?: boolean | undefined;
|
|
360
361
|
expiry?: string | undefined;
|
|
361
362
|
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
|
-
path: string;
|
|
19
18
|
service: string;
|
|
19
|
+
path: string;
|
|
20
20
|
actions: string[];
|
|
21
21
|
space?: string | undefined;
|
|
22
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
22
23
|
skipPrefix?: boolean | undefined;
|
|
23
24
|
expiry?: string | undefined;
|
|
24
25
|
description?: string | undefined;
|
|
25
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
26
26
|
}, {
|
|
27
|
-
path: string;
|
|
28
27
|
service: string;
|
|
28
|
+
path: string;
|
|
29
29
|
actions: string[];
|
|
30
30
|
space?: string | undefined;
|
|
31
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
31
32
|
skipPrefix?: boolean | undefined;
|
|
32
33
|
expiry?: string | undefined;
|
|
33
34
|
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
|
-
path: string;
|
|
52
51
|
service: string;
|
|
52
|
+
path: string;
|
|
53
53
|
actions: string[];
|
|
54
54
|
space?: string | undefined;
|
|
55
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
55
56
|
skipPrefix?: boolean | undefined;
|
|
56
57
|
expiry?: string | undefined;
|
|
57
58
|
description?: string | undefined;
|
|
58
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
59
59
|
}, {
|
|
60
|
-
path: string;
|
|
61
60
|
service: string;
|
|
61
|
+
path: string;
|
|
62
62
|
actions: string[];
|
|
63
63
|
space?: string | undefined;
|
|
64
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
64
65
|
skipPrefix?: boolean | undefined;
|
|
65
66
|
expiry?: string | undefined;
|
|
66
67
|
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
|
-
requestId: string;
|
|
72
71
|
kind: "tinycloud.auth.request";
|
|
73
|
-
sessionDid: string;
|
|
74
72
|
version: 1;
|
|
73
|
+
requestId: string;
|
|
74
|
+
sessionDid: string;
|
|
75
75
|
requested: {
|
|
76
|
-
path: string;
|
|
77
76
|
service: string;
|
|
77
|
+
path: string;
|
|
78
78
|
actions: string[];
|
|
79
79
|
space?: string | undefined;
|
|
80
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
80
81
|
skipPrefix?: boolean | undefined;
|
|
81
82
|
expiry?: string | undefined;
|
|
82
83
|
description?: string | undefined;
|
|
83
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
84
84
|
}[];
|
|
85
85
|
requestedExpiry?: string | number | undefined;
|
|
86
86
|
}, {
|
|
87
|
-
requestId: string;
|
|
88
87
|
kind: "tinycloud.auth.request";
|
|
89
|
-
sessionDid: string;
|
|
90
88
|
version: 1;
|
|
89
|
+
requestId: string;
|
|
90
|
+
sessionDid: string;
|
|
91
91
|
requested: {
|
|
92
|
-
path: string;
|
|
93
92
|
service: string;
|
|
93
|
+
path: string;
|
|
94
94
|
actions: string[];
|
|
95
95
|
space?: string | undefined;
|
|
96
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
96
97
|
skipPrefix?: boolean | undefined;
|
|
97
98
|
expiry?: string | undefined;
|
|
98
99
|
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
|
-
path: string;
|
|
128
127
|
service: string;
|
|
128
|
+
path: string;
|
|
129
129
|
actions: string[];
|
|
130
130
|
space?: string | undefined;
|
|
131
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
131
132
|
skipPrefix?: boolean | undefined;
|
|
132
133
|
expiry?: string | undefined;
|
|
133
134
|
description?: string | undefined;
|
|
134
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
135
135
|
}, {
|
|
136
|
-
path: string;
|
|
137
136
|
service: string;
|
|
137
|
+
path: string;
|
|
138
138
|
actions: string[];
|
|
139
139
|
space?: string | undefined;
|
|
140
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
140
141
|
skipPrefix?: boolean | undefined;
|
|
141
142
|
expiry?: string | undefined;
|
|
142
143
|
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
|
-
createdAt: string;
|
|
157
|
-
host: string;
|
|
158
|
-
requestId: string;
|
|
159
156
|
kind: "tinycloud.auth.request";
|
|
160
|
-
operatorType: "human" | "agent";
|
|
161
|
-
sessionDid: string;
|
|
162
157
|
version: 1;
|
|
158
|
+
requestId: string;
|
|
159
|
+
sessionDid: string;
|
|
163
160
|
requested: {
|
|
164
|
-
path: string;
|
|
165
161
|
service: string;
|
|
162
|
+
path: string;
|
|
166
163
|
actions: string[];
|
|
167
164
|
space?: string | undefined;
|
|
165
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
168
166
|
skipPrefix?: boolean | undefined;
|
|
169
167
|
expiry?: string | undefined;
|
|
170
168
|
description?: string | undefined;
|
|
171
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
172
169
|
}[];
|
|
170
|
+
host: string;
|
|
171
|
+
createdAt: string;
|
|
173
172
|
profile: string;
|
|
174
173
|
posture: "owner-openkey" | "delegate-session" | "local-owner-key" | "unauthenticated";
|
|
175
|
-
|
|
174
|
+
operatorType: "human" | "agent";
|
|
176
175
|
requestedExpiry?: string | number | undefined;
|
|
177
176
|
spaceId?: string | undefined;
|
|
177
|
+
ownerDid?: string | undefined;
|
|
178
178
|
command?: {
|
|
179
179
|
argv: string[];
|
|
180
180
|
cwd: string;
|
|
181
181
|
} | undefined;
|
|
182
182
|
}, {
|
|
183
|
-
createdAt: string;
|
|
184
|
-
host: string;
|
|
185
|
-
requestId: string;
|
|
186
183
|
kind: "tinycloud.auth.request";
|
|
187
|
-
operatorType: "human" | "agent";
|
|
188
|
-
sessionDid: string;
|
|
189
184
|
version: 1;
|
|
185
|
+
requestId: string;
|
|
186
|
+
sessionDid: string;
|
|
190
187
|
requested: {
|
|
191
|
-
path: string;
|
|
192
188
|
service: string;
|
|
189
|
+
path: string;
|
|
193
190
|
actions: string[];
|
|
194
191
|
space?: string | undefined;
|
|
192
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
195
193
|
skipPrefix?: boolean | undefined;
|
|
196
194
|
expiry?: string | undefined;
|
|
197
195
|
description?: string | undefined;
|
|
198
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
199
196
|
}[];
|
|
197
|
+
host: string;
|
|
198
|
+
createdAt: string;
|
|
200
199
|
profile: string;
|
|
201
200
|
posture: "owner-openkey" | "delegate-session" | "local-owner-key" | "unauthenticated";
|
|
202
|
-
|
|
201
|
+
operatorType: "human" | "agent";
|
|
203
202
|
requestedExpiry?: string | number | undefined;
|
|
204
203
|
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
|
-
path: string;
|
|
228
227
|
service: string;
|
|
228
|
+
path: string;
|
|
229
229
|
actions: string[];
|
|
230
230
|
space?: string | undefined;
|
|
231
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
231
232
|
skipPrefix?: boolean | undefined;
|
|
232
233
|
expiry?: string | undefined;
|
|
233
234
|
description?: string | undefined;
|
|
234
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
235
235
|
}, {
|
|
236
|
-
path: string;
|
|
237
236
|
service: string;
|
|
237
|
+
path: string;
|
|
238
238
|
actions: string[];
|
|
239
239
|
space?: string | undefined;
|
|
240
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
240
241
|
skipPrefix?: boolean | undefined;
|
|
241
242
|
expiry?: string | undefined;
|
|
242
243
|
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;
|
|
249
248
|
kind: "tinycloud.auth.delegation";
|
|
250
249
|
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
|
-
path: string;
|
|
256
255
|
service: string;
|
|
256
|
+
path: string;
|
|
257
257
|
actions: string[];
|
|
258
258
|
space?: string | undefined;
|
|
259
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
259
260
|
skipPrefix?: boolean | undefined;
|
|
260
261
|
expiry?: string | undefined;
|
|
261
262
|
description?: string | undefined;
|
|
262
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
263
263
|
}[] | undefined;
|
|
264
264
|
prompted?: boolean | undefined;
|
|
265
265
|
}, {
|
|
266
|
-
requestId: string;
|
|
267
266
|
kind: "tinycloud.auth.delegation";
|
|
268
267
|
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
|
-
path: string;
|
|
274
273
|
service: string;
|
|
274
|
+
path: string;
|
|
275
275
|
actions: string[];
|
|
276
276
|
space?: string | undefined;
|
|
277
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
277
278
|
skipPrefix?: boolean | undefined;
|
|
278
279
|
expiry?: string | undefined;
|
|
279
280
|
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
|
-
path: string;
|
|
313
312
|
service: string;
|
|
313
|
+
path: string;
|
|
314
314
|
actions: string[];
|
|
315
315
|
space?: string | undefined;
|
|
316
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
316
317
|
skipPrefix?: boolean | undefined;
|
|
317
318
|
expiry?: string | undefined;
|
|
318
319
|
description?: string | undefined;
|
|
319
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
320
320
|
}, {
|
|
321
|
-
path: string;
|
|
322
321
|
service: string;
|
|
322
|
+
path: string;
|
|
323
323
|
actions: string[];
|
|
324
324
|
space?: string | undefined;
|
|
325
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
325
326
|
skipPrefix?: boolean | undefined;
|
|
326
327
|
expiry?: string | undefined;
|
|
327
328
|
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
|
-
path: string;
|
|
344
343
|
service: string;
|
|
344
|
+
path: string;
|
|
345
345
|
actions: string[];
|
|
346
346
|
space?: string | undefined;
|
|
347
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
347
348
|
skipPrefix?: boolean | undefined;
|
|
348
349
|
expiry?: string | undefined;
|
|
349
350
|
description?: string | undefined;
|
|
350
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
351
351
|
}[];
|
|
352
352
|
}, {
|
|
353
353
|
requestId: string;
|
|
354
354
|
requested: {
|
|
355
|
-
path: string;
|
|
356
355
|
service: string;
|
|
356
|
+
path: string;
|
|
357
357
|
actions: string[];
|
|
358
358
|
space?: string | undefined;
|
|
359
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
359
360
|
skipPrefix?: boolean | undefined;
|
|
360
361
|
expiry?: string | undefined;
|
|
361
362
|
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.3",
|
|
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.7.0-beta.
|
|
98
|
-
"@tinycloud/sdk-core": "3.7.0-beta.
|
|
99
|
-
"@tinycloud/sdk-services": "3.7.0-beta.
|
|
97
|
+
"@tinycloud/node-sdk": "3.7.0-beta.3",
|
|
98
|
+
"@tinycloud/sdk-core": "3.7.0-beta.3",
|
|
99
|
+
"@tinycloud/sdk-services": "3.7.0-beta.3",
|
|
100
100
|
"node-sql-parser": "5.4.0",
|
|
101
101
|
"zod": "^3.22.0",
|
|
102
102
|
"zod-to-json-schema": "^3.25.2"
|