@tinycloud/operations 0.3.3-beta.1 → 0.3.3-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.
@@ -44,19 +44,19 @@ declare const PermissionEntrySchema: z.ZodObject<{
44
44
  path: string;
45
45
  actions: string[];
46
46
  space?: string | undefined;
47
+ caveats?: Record<string, unknown>[] | undefined;
47
48
  skipPrefix?: boolean | undefined;
48
49
  expiry?: string | undefined;
49
50
  description?: string | undefined;
50
- caveats?: Record<string, unknown>[] | undefined;
51
51
  }, {
52
52
  service: string;
53
53
  path: string;
54
54
  actions: string[];
55
55
  space?: string | undefined;
56
+ caveats?: Record<string, unknown>[] | undefined;
56
57
  skipPrefix?: boolean | undefined;
57
58
  expiry?: string | undefined;
58
59
  description?: string | undefined;
59
- caveats?: Record<string, unknown>[] | undefined;
60
60
  }>;
61
61
  declare const LegacyPermissionRequestArtifactSchema: z.ZodObject<{
62
62
  kind: z.ZodLiteral<"tinycloud.auth.request">;
@@ -77,51 +77,51 @@ declare const LegacyPermissionRequestArtifactSchema: z.ZodObject<{
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
  service: string;
86
86
  path: string;
87
87
  actions: string[];
88
88
  space?: string | undefined;
89
+ caveats?: Record<string, unknown>[] | undefined;
89
90
  skipPrefix?: boolean | undefined;
90
91
  expiry?: string | undefined;
91
92
  description?: string | undefined;
92
- caveats?: Record<string, unknown>[] | undefined;
93
93
  }>, "many">;
94
94
  requestedExpiry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
95
95
  }, "strict", z.ZodTypeAny, {
96
- requestId: string;
97
96
  kind: "tinycloud.auth.request";
98
- sessionDid: string;
99
97
  version: 1;
98
+ requestId: string;
99
+ sessionDid: string;
100
100
  requested: {
101
101
  service: string;
102
102
  path: string;
103
103
  actions: string[];
104
104
  space?: string | undefined;
105
+ caveats?: Record<string, unknown>[] | undefined;
105
106
  skipPrefix?: boolean | undefined;
106
107
  expiry?: string | undefined;
107
108
  description?: string | undefined;
108
- caveats?: Record<string, unknown>[] | undefined;
109
109
  }[];
110
110
  requestedExpiry?: string | number | undefined;
111
111
  }, {
112
- requestId: string;
113
112
  kind: "tinycloud.auth.request";
114
- sessionDid: string;
115
113
  version: 1;
114
+ requestId: string;
115
+ sessionDid: string;
116
116
  requested: {
117
117
  service: string;
118
118
  path: string;
119
119
  actions: string[];
120
120
  space?: string | undefined;
121
+ caveats?: Record<string, unknown>[] | undefined;
121
122
  skipPrefix?: boolean | undefined;
122
123
  expiry?: string | undefined;
123
124
  description?: string | undefined;
124
- caveats?: Record<string, unknown>[] | undefined;
125
125
  }[];
126
126
  requestedExpiry?: string | number | undefined;
127
127
  }>;
@@ -153,19 +153,19 @@ declare const PermissionRequestArtifactSchema: z.ZodObject<{
153
153
  path: string;
154
154
  actions: string[];
155
155
  space?: string | undefined;
156
+ caveats?: Record<string, unknown>[] | undefined;
156
157
  skipPrefix?: boolean | undefined;
157
158
  expiry?: string | undefined;
158
159
  description?: string | undefined;
159
- caveats?: Record<string, unknown>[] | undefined;
160
160
  }, {
161
161
  service: string;
162
162
  path: string;
163
163
  actions: string[];
164
164
  space?: string | undefined;
165
+ caveats?: Record<string, unknown>[] | undefined;
165
166
  skipPrefix?: boolean | undefined;
166
167
  expiry?: string | undefined;
167
168
  description?: string | undefined;
168
- caveats?: Record<string, unknown>[] | undefined;
169
169
  }>, "many">;
170
170
  command: z.ZodOptional<z.ZodObject<{
171
171
  argv: z.ZodArray<z.ZodString, "many">;
@@ -178,55 +178,55 @@ declare const PermissionRequestArtifactSchema: z.ZodObject<{
178
178
  cwd: string;
179
179
  }>>;
180
180
  }, "strict", z.ZodTypeAny, {
181
- createdAt: string;
182
- requestId: string;
183
181
  kind: "tinycloud.auth.request";
184
- operatorType: "human" | "agent";
185
- sessionDid: string;
186
182
  version: 1;
183
+ requestId: string;
184
+ sessionDid: string;
187
185
  requested: {
188
186
  service: string;
189
187
  path: string;
190
188
  actions: string[];
191
189
  space?: string | undefined;
190
+ caveats?: Record<string, unknown>[] | undefined;
192
191
  skipPrefix?: boolean | undefined;
193
192
  expiry?: string | undefined;
194
193
  description?: string | undefined;
195
- caveats?: Record<string, unknown>[] | undefined;
196
194
  }[];
197
195
  host: string;
196
+ createdAt: string;
198
197
  profile: string;
199
198
  posture: "owner-openkey" | "delegate-session" | "local-owner-key" | "unauthenticated";
200
- ownerDid?: string | undefined;
199
+ operatorType: "human" | "agent";
201
200
  requestedExpiry?: string | number | undefined;
202
201
  spaceId?: string | undefined;
202
+ ownerDid?: string | undefined;
203
203
  command?: {
204
204
  argv: string[];
205
205
  cwd: string;
206
206
  } | undefined;
207
207
  }, {
208
- createdAt: string;
209
- requestId: string;
210
208
  kind: "tinycloud.auth.request";
211
- operatorType: "human" | "agent";
212
- sessionDid: string;
213
209
  version: 1;
210
+ requestId: string;
211
+ sessionDid: string;
214
212
  requested: {
215
213
  service: string;
216
214
  path: string;
217
215
  actions: string[];
218
216
  space?: string | undefined;
217
+ caveats?: Record<string, unknown>[] | undefined;
219
218
  skipPrefix?: boolean | undefined;
220
219
  expiry?: string | undefined;
221
220
  description?: string | undefined;
222
- caveats?: Record<string, unknown>[] | undefined;
223
221
  }[];
224
222
  host: string;
223
+ createdAt: string;
225
224
  profile: string;
226
225
  posture: "owner-openkey" | "delegate-session" | "local-owner-key" | "unauthenticated";
227
- ownerDid?: string | undefined;
226
+ operatorType: "human" | "agent";
228
227
  requestedExpiry?: string | number | undefined;
229
228
  spaceId?: string | undefined;
229
+ ownerDid?: string | undefined;
230
230
  command?: {
231
231
  argv: string[];
232
232
  cwd: string;
@@ -253,26 +253,26 @@ declare const DelegationImportArtifactSchema: z.ZodObject<{
253
253
  path: string;
254
254
  actions: string[];
255
255
  space?: string | undefined;
256
+ caveats?: Record<string, unknown>[] | undefined;
256
257
  skipPrefix?: boolean | undefined;
257
258
  expiry?: string | undefined;
258
259
  description?: string | undefined;
259
- caveats?: Record<string, unknown>[] | undefined;
260
260
  }, {
261
261
  service: string;
262
262
  path: string;
263
263
  actions: string[];
264
264
  space?: string | undefined;
265
+ caveats?: Record<string, unknown>[] | undefined;
265
266
  skipPrefix?: boolean | undefined;
266
267
  expiry?: string | undefined;
267
268
  description?: string | undefined;
268
- caveats?: Record<string, unknown>[] | undefined;
269
269
  }>, "many">>;
270
270
  expiry: z.ZodOptional<z.ZodString>;
271
271
  prompted: z.ZodOptional<z.ZodBoolean>;
272
272
  }, "strict", z.ZodTypeAny, {
273
- requestId: string;
274
273
  kind: "tinycloud.auth.delegation";
275
274
  version: 1;
275
+ requestId: string;
276
276
  delegation: Record<string, unknown>;
277
277
  expiry?: string | undefined;
278
278
  delegationCid?: string | undefined;
@@ -281,16 +281,16 @@ declare const DelegationImportArtifactSchema: z.ZodObject<{
281
281
  path: string;
282
282
  actions: string[];
283
283
  space?: string | undefined;
284
+ caveats?: Record<string, unknown>[] | undefined;
284
285
  skipPrefix?: boolean | undefined;
285
286
  expiry?: string | undefined;
286
287
  description?: string | undefined;
287
- caveats?: Record<string, unknown>[] | undefined;
288
288
  }[] | undefined;
289
289
  prompted?: boolean | undefined;
290
290
  }, {
291
- requestId: string;
292
291
  kind: "tinycloud.auth.delegation";
293
292
  version: 1;
293
+ requestId: string;
294
294
  delegation: Record<string, unknown>;
295
295
  expiry?: string | undefined;
296
296
  delegationCid?: string | undefined;
@@ -299,10 +299,10 @@ declare const DelegationImportArtifactSchema: z.ZodObject<{
299
299
  path: string;
300
300
  actions: string[];
301
301
  space?: string | undefined;
302
+ caveats?: Record<string, unknown>[] | undefined;
302
303
  skipPrefix?: boolean | undefined;
303
304
  expiry?: string | undefined;
304
305
  description?: string | undefined;
305
- caveats?: Record<string, unknown>[] | undefined;
306
306
  }[] | undefined;
307
307
  prompted?: boolean | undefined;
308
308
  }>;
@@ -44,19 +44,19 @@ declare const PermissionEntrySchema: z.ZodObject<{
44
44
  path: string;
45
45
  actions: string[];
46
46
  space?: string | undefined;
47
+ caveats?: Record<string, unknown>[] | undefined;
47
48
  skipPrefix?: boolean | undefined;
48
49
  expiry?: string | undefined;
49
50
  description?: string | undefined;
50
- caveats?: Record<string, unknown>[] | undefined;
51
51
  }, {
52
52
  service: string;
53
53
  path: string;
54
54
  actions: string[];
55
55
  space?: string | undefined;
56
+ caveats?: Record<string, unknown>[] | undefined;
56
57
  skipPrefix?: boolean | undefined;
57
58
  expiry?: string | undefined;
58
59
  description?: string | undefined;
59
- caveats?: Record<string, unknown>[] | undefined;
60
60
  }>;
61
61
  declare const LegacyPermissionRequestArtifactSchema: z.ZodObject<{
62
62
  kind: z.ZodLiteral<"tinycloud.auth.request">;
@@ -77,51 +77,51 @@ declare const LegacyPermissionRequestArtifactSchema: z.ZodObject<{
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
  service: string;
86
86
  path: string;
87
87
  actions: string[];
88
88
  space?: string | undefined;
89
+ caveats?: Record<string, unknown>[] | undefined;
89
90
  skipPrefix?: boolean | undefined;
90
91
  expiry?: string | undefined;
91
92
  description?: string | undefined;
92
- caveats?: Record<string, unknown>[] | undefined;
93
93
  }>, "many">;
94
94
  requestedExpiry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
95
95
  }, "strict", z.ZodTypeAny, {
96
- requestId: string;
97
96
  kind: "tinycloud.auth.request";
98
- sessionDid: string;
99
97
  version: 1;
98
+ requestId: string;
99
+ sessionDid: string;
100
100
  requested: {
101
101
  service: string;
102
102
  path: string;
103
103
  actions: string[];
104
104
  space?: string | undefined;
105
+ caveats?: Record<string, unknown>[] | undefined;
105
106
  skipPrefix?: boolean | undefined;
106
107
  expiry?: string | undefined;
107
108
  description?: string | undefined;
108
- caveats?: Record<string, unknown>[] | undefined;
109
109
  }[];
110
110
  requestedExpiry?: string | number | undefined;
111
111
  }, {
112
- requestId: string;
113
112
  kind: "tinycloud.auth.request";
114
- sessionDid: string;
115
113
  version: 1;
114
+ requestId: string;
115
+ sessionDid: string;
116
116
  requested: {
117
117
  service: string;
118
118
  path: string;
119
119
  actions: string[];
120
120
  space?: string | undefined;
121
+ caveats?: Record<string, unknown>[] | undefined;
121
122
  skipPrefix?: boolean | undefined;
122
123
  expiry?: string | undefined;
123
124
  description?: string | undefined;
124
- caveats?: Record<string, unknown>[] | undefined;
125
125
  }[];
126
126
  requestedExpiry?: string | number | undefined;
127
127
  }>;
@@ -153,19 +153,19 @@ declare const PermissionRequestArtifactSchema: z.ZodObject<{
153
153
  path: string;
154
154
  actions: string[];
155
155
  space?: string | undefined;
156
+ caveats?: Record<string, unknown>[] | undefined;
156
157
  skipPrefix?: boolean | undefined;
157
158
  expiry?: string | undefined;
158
159
  description?: string | undefined;
159
- caveats?: Record<string, unknown>[] | undefined;
160
160
  }, {
161
161
  service: string;
162
162
  path: string;
163
163
  actions: string[];
164
164
  space?: string | undefined;
165
+ caveats?: Record<string, unknown>[] | undefined;
165
166
  skipPrefix?: boolean | undefined;
166
167
  expiry?: string | undefined;
167
168
  description?: string | undefined;
168
- caveats?: Record<string, unknown>[] | undefined;
169
169
  }>, "many">;
170
170
  command: z.ZodOptional<z.ZodObject<{
171
171
  argv: z.ZodArray<z.ZodString, "many">;
@@ -178,55 +178,55 @@ declare const PermissionRequestArtifactSchema: z.ZodObject<{
178
178
  cwd: string;
179
179
  }>>;
180
180
  }, "strict", z.ZodTypeAny, {
181
- createdAt: string;
182
- requestId: string;
183
181
  kind: "tinycloud.auth.request";
184
- operatorType: "human" | "agent";
185
- sessionDid: string;
186
182
  version: 1;
183
+ requestId: string;
184
+ sessionDid: string;
187
185
  requested: {
188
186
  service: string;
189
187
  path: string;
190
188
  actions: string[];
191
189
  space?: string | undefined;
190
+ caveats?: Record<string, unknown>[] | undefined;
192
191
  skipPrefix?: boolean | undefined;
193
192
  expiry?: string | undefined;
194
193
  description?: string | undefined;
195
- caveats?: Record<string, unknown>[] | undefined;
196
194
  }[];
197
195
  host: string;
196
+ createdAt: string;
198
197
  profile: string;
199
198
  posture: "owner-openkey" | "delegate-session" | "local-owner-key" | "unauthenticated";
200
- ownerDid?: string | undefined;
199
+ operatorType: "human" | "agent";
201
200
  requestedExpiry?: string | number | undefined;
202
201
  spaceId?: string | undefined;
202
+ ownerDid?: string | undefined;
203
203
  command?: {
204
204
  argv: string[];
205
205
  cwd: string;
206
206
  } | undefined;
207
207
  }, {
208
- createdAt: string;
209
- requestId: string;
210
208
  kind: "tinycloud.auth.request";
211
- operatorType: "human" | "agent";
212
- sessionDid: string;
213
209
  version: 1;
210
+ requestId: string;
211
+ sessionDid: string;
214
212
  requested: {
215
213
  service: string;
216
214
  path: string;
217
215
  actions: string[];
218
216
  space?: string | undefined;
217
+ caveats?: Record<string, unknown>[] | undefined;
219
218
  skipPrefix?: boolean | undefined;
220
219
  expiry?: string | undefined;
221
220
  description?: string | undefined;
222
- caveats?: Record<string, unknown>[] | undefined;
223
221
  }[];
224
222
  host: string;
223
+ createdAt: string;
225
224
  profile: string;
226
225
  posture: "owner-openkey" | "delegate-session" | "local-owner-key" | "unauthenticated";
227
- ownerDid?: string | undefined;
226
+ operatorType: "human" | "agent";
228
227
  requestedExpiry?: string | number | undefined;
229
228
  spaceId?: string | undefined;
229
+ ownerDid?: string | undefined;
230
230
  command?: {
231
231
  argv: string[];
232
232
  cwd: string;
@@ -253,26 +253,26 @@ declare const DelegationImportArtifactSchema: z.ZodObject<{
253
253
  path: string;
254
254
  actions: string[];
255
255
  space?: string | undefined;
256
+ caveats?: Record<string, unknown>[] | undefined;
256
257
  skipPrefix?: boolean | undefined;
257
258
  expiry?: string | undefined;
258
259
  description?: string | undefined;
259
- caveats?: Record<string, unknown>[] | undefined;
260
260
  }, {
261
261
  service: string;
262
262
  path: string;
263
263
  actions: string[];
264
264
  space?: string | undefined;
265
+ caveats?: Record<string, unknown>[] | undefined;
265
266
  skipPrefix?: boolean | undefined;
266
267
  expiry?: string | undefined;
267
268
  description?: string | undefined;
268
- caveats?: Record<string, unknown>[] | undefined;
269
269
  }>, "many">>;
270
270
  expiry: z.ZodOptional<z.ZodString>;
271
271
  prompted: z.ZodOptional<z.ZodBoolean>;
272
272
  }, "strict", z.ZodTypeAny, {
273
- requestId: string;
274
273
  kind: "tinycloud.auth.delegation";
275
274
  version: 1;
275
+ requestId: string;
276
276
  delegation: Record<string, unknown>;
277
277
  expiry?: string | undefined;
278
278
  delegationCid?: string | undefined;
@@ -281,16 +281,16 @@ declare const DelegationImportArtifactSchema: z.ZodObject<{
281
281
  path: string;
282
282
  actions: string[];
283
283
  space?: string | undefined;
284
+ caveats?: Record<string, unknown>[] | undefined;
284
285
  skipPrefix?: boolean | undefined;
285
286
  expiry?: string | undefined;
286
287
  description?: string | undefined;
287
- caveats?: Record<string, unknown>[] | undefined;
288
288
  }[] | undefined;
289
289
  prompted?: boolean | undefined;
290
290
  }, {
291
- requestId: string;
292
291
  kind: "tinycloud.auth.delegation";
293
292
  version: 1;
293
+ requestId: string;
294
294
  delegation: Record<string, unknown>;
295
295
  expiry?: string | undefined;
296
296
  delegationCid?: string | undefined;
@@ -299,10 +299,10 @@ declare const DelegationImportArtifactSchema: z.ZodObject<{
299
299
  path: string;
300
300
  actions: string[];
301
301
  space?: string | undefined;
302
+ caveats?: Record<string, unknown>[] | undefined;
302
303
  skipPrefix?: boolean | undefined;
303
304
  expiry?: string | undefined;
304
305
  description?: string | undefined;
305
- caveats?: Record<string, unknown>[] | undefined;
306
306
  }[] | undefined;
307
307
  prompted?: boolean | undefined;
308
308
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinycloud/operations",
3
- "version": "0.3.3-beta.1",
3
+ "version": "0.3.3-beta.3",
4
4
  "description": "TinyCloud shared operations contracts and runtime",
5
5
  "author": "TinyCloud, Inc.",
6
6
  "license": "EGPL",
@@ -59,8 +59,8 @@
59
59
  "check:generated": "bun scripts/generate.ts --check"
60
60
  },
61
61
  "dependencies": {
62
- "@tinycloud/node-sdk": "2.11.1-beta.0",
63
- "@tinycloud/sdk-core": "2.11.1-beta.0",
62
+ "@tinycloud/node-sdk": "3.0.0-beta.5",
63
+ "@tinycloud/sdk-core": "3.0.0-beta.5",
64
64
  "node-sql-parser": "5.4.0",
65
65
  "zod": "^3.22.0",
66
66
  "zod-to-json-schema": "^3.22.0"