@tinycloud/operations 0.5.0-beta.5 → 0.5.0-beta.6
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.cjs +232 -40
- package/dist/artifacts.cjs.map +1 -1
- package/dist/artifacts.d.cts +34 -34
- package/dist/artifacts.d.ts +34 -34
- package/dist/artifacts.js +233 -40
- package/dist/artifacts.js.map +1 -1
- package/dist/cli-runtime.cjs +230 -40
- package/dist/cli-runtime.cjs.map +1 -1
- package/dist/cli-runtime.js +231 -40
- package/dist/cli-runtime.js.map +1 -1
- package/dist/delegation-binding.cjs +232 -40
- package/dist/delegation-binding.cjs.map +1 -1
- package/dist/delegation-binding.js +233 -40
- package/dist/delegation-binding.js.map +1 -1
- package/dist/index.cjs +230 -40
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +231 -40
- package/dist/index.js.map +1 -1
- package/dist/profile.cjs +8 -4
- package/dist/profile.cjs.map +1 -1
- package/dist/profile.js +9 -4
- package/dist/profile.js.map +1 -1
- package/dist/state.cjs +232 -40
- package/dist/state.cjs.map +1 -1
- package/dist/state.js +233 -40
- package/dist/state.js.map +1 -1
- package/package.json +1 -1
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;
|
|
22
23
|
skipPrefix?: boolean | undefined;
|
|
23
24
|
expiry?: string | undefined;
|
|
24
25
|
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;
|
|
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">;
|
|
@@ -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;
|
|
55
56
|
skipPrefix?: boolean | undefined;
|
|
56
57
|
expiry?: string | undefined;
|
|
57
58
|
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;
|
|
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
76
|
service: string;
|
|
77
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
92
|
service: string;
|
|
93
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
|
}>;
|
|
@@ -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;
|
|
131
132
|
skipPrefix?: boolean | undefined;
|
|
132
133
|
expiry?: string | undefined;
|
|
133
134
|
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;
|
|
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
|
-
requestId: string;
|
|
158
156
|
kind: "tinycloud.auth.request";
|
|
159
|
-
operatorType: "human" | "agent";
|
|
160
|
-
sessionDid: string;
|
|
161
157
|
version: 1;
|
|
158
|
+
requestId: string;
|
|
159
|
+
sessionDid: string;
|
|
162
160
|
requested: {
|
|
163
161
|
service: string;
|
|
164
162
|
path: string;
|
|
165
163
|
actions: string[];
|
|
166
164
|
space?: string | undefined;
|
|
165
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
167
166
|
skipPrefix?: boolean | undefined;
|
|
168
167
|
expiry?: string | undefined;
|
|
169
168
|
description?: string | undefined;
|
|
170
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
171
169
|
}[];
|
|
172
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
|
-
requestId: string;
|
|
185
183
|
kind: "tinycloud.auth.request";
|
|
186
|
-
operatorType: "human" | "agent";
|
|
187
|
-
sessionDid: string;
|
|
188
184
|
version: 1;
|
|
185
|
+
requestId: string;
|
|
186
|
+
sessionDid: string;
|
|
189
187
|
requested: {
|
|
190
188
|
service: string;
|
|
191
189
|
path: string;
|
|
192
190
|
actions: string[];
|
|
193
191
|
space?: string | undefined;
|
|
192
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
194
193
|
skipPrefix?: boolean | undefined;
|
|
195
194
|
expiry?: string | undefined;
|
|
196
195
|
description?: string | undefined;
|
|
197
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
198
196
|
}[];
|
|
199
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;
|
|
@@ -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;
|
|
231
232
|
skipPrefix?: boolean | undefined;
|
|
232
233
|
expiry?: string | undefined;
|
|
233
234
|
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;
|
|
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;
|
|
@@ -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;
|
|
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;
|
|
@@ -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;
|
|
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
|
}>;
|
|
@@ -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;
|
|
316
317
|
skipPrefix?: boolean | undefined;
|
|
317
318
|
expiry?: string | undefined;
|
|
318
319
|
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;
|
|
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">;
|
|
@@ -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;
|
|
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;
|
|
@@ -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;
|
|
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
|
@@ -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;
|
|
22
23
|
skipPrefix?: boolean | undefined;
|
|
23
24
|
expiry?: string | undefined;
|
|
24
25
|
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;
|
|
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">;
|
|
@@ -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;
|
|
55
56
|
skipPrefix?: boolean | undefined;
|
|
56
57
|
expiry?: string | undefined;
|
|
57
58
|
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;
|
|
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
76
|
service: string;
|
|
77
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
92
|
service: string;
|
|
93
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
|
}>;
|
|
@@ -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;
|
|
131
132
|
skipPrefix?: boolean | undefined;
|
|
132
133
|
expiry?: string | undefined;
|
|
133
134
|
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;
|
|
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
|
-
requestId: string;
|
|
158
156
|
kind: "tinycloud.auth.request";
|
|
159
|
-
operatorType: "human" | "agent";
|
|
160
|
-
sessionDid: string;
|
|
161
157
|
version: 1;
|
|
158
|
+
requestId: string;
|
|
159
|
+
sessionDid: string;
|
|
162
160
|
requested: {
|
|
163
161
|
service: string;
|
|
164
162
|
path: string;
|
|
165
163
|
actions: string[];
|
|
166
164
|
space?: string | undefined;
|
|
165
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
167
166
|
skipPrefix?: boolean | undefined;
|
|
168
167
|
expiry?: string | undefined;
|
|
169
168
|
description?: string | undefined;
|
|
170
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
171
169
|
}[];
|
|
172
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
|
-
requestId: string;
|
|
185
183
|
kind: "tinycloud.auth.request";
|
|
186
|
-
operatorType: "human" | "agent";
|
|
187
|
-
sessionDid: string;
|
|
188
184
|
version: 1;
|
|
185
|
+
requestId: string;
|
|
186
|
+
sessionDid: string;
|
|
189
187
|
requested: {
|
|
190
188
|
service: string;
|
|
191
189
|
path: string;
|
|
192
190
|
actions: string[];
|
|
193
191
|
space?: string | undefined;
|
|
192
|
+
caveats?: Record<string, unknown>[] | undefined;
|
|
194
193
|
skipPrefix?: boolean | undefined;
|
|
195
194
|
expiry?: string | undefined;
|
|
196
195
|
description?: string | undefined;
|
|
197
|
-
caveats?: Record<string, unknown>[] | undefined;
|
|
198
196
|
}[];
|
|
199
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;
|
|
@@ -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;
|
|
231
232
|
skipPrefix?: boolean | undefined;
|
|
232
233
|
expiry?: string | undefined;
|
|
233
234
|
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;
|
|
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;
|
|
@@ -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;
|
|
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;
|
|
@@ -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;
|
|
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
|
}>;
|
|
@@ -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;
|
|
316
317
|
skipPrefix?: boolean | undefined;
|
|
317
318
|
expiry?: string | undefined;
|
|
318
319
|
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;
|
|
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">;
|
|
@@ -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;
|
|
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;
|
|
@@ -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;
|
|
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>;
|