@tinycloud/sdk-core 3.1.0-beta.6 → 3.1.0-beta.8

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.
@@ -260,10 +260,10 @@ declare const DelegationSchema: z.ZodObject<{
260
260
  authHeader: z.ZodOptional<z.ZodString>;
261
261
  }, "strip", z.ZodTypeAny, {
262
262
  path: string;
263
- expiry: Date;
264
- actions: string[];
265
263
  spaceId: string;
266
264
  cid: string;
265
+ expiry: Date;
266
+ actions: string[];
267
267
  delegateDID: string;
268
268
  isRevoked: boolean;
269
269
  caveats?: Record<string, unknown>[] | undefined;
@@ -274,10 +274,10 @@ declare const DelegationSchema: z.ZodObject<{
274
274
  authHeader?: string | undefined;
275
275
  }, {
276
276
  path: string;
277
- expiry: Date;
278
- actions: string[];
279
277
  spaceId: string;
280
278
  cid: string;
279
+ expiry: Date;
280
+ actions: string[];
281
281
  delegateDID: string;
282
282
  isRevoked: boolean;
283
283
  caveats?: Record<string, unknown>[] | undefined;
@@ -298,30 +298,30 @@ declare const DelegationStatusSchema: z.ZodEffects<z.ZodObject<{
298
298
  expired: z.ZodBoolean;
299
299
  }, "strict", z.ZodTypeAny, {
300
300
  status: "active" | "revoked" | "expired" | "unavailable" | "not_found";
301
+ cid: string;
301
302
  active: boolean;
302
303
  revoked: boolean;
303
- cid: string;
304
304
  expired: boolean;
305
305
  exists: boolean;
306
306
  }, {
307
307
  status: "active" | "revoked" | "expired" | "unavailable" | "not_found";
308
+ cid: string;
308
309
  active: boolean;
309
310
  revoked: boolean;
310
- cid: string;
311
311
  expired: boolean;
312
312
  exists: boolean;
313
313
  }>, {
314
314
  status: "active" | "revoked" | "expired" | "unavailable" | "not_found";
315
+ cid: string;
315
316
  active: boolean;
316
317
  revoked: boolean;
317
- cid: string;
318
318
  expired: boolean;
319
319
  exists: boolean;
320
320
  }, {
321
321
  status: "active" | "revoked" | "expired" | "unavailable" | "not_found";
322
+ cid: string;
322
323
  active: boolean;
323
324
  revoked: boolean;
324
- cid: string;
325
325
  expired: boolean;
326
326
  exists: boolean;
327
327
  }>;
@@ -330,11 +330,11 @@ declare const DelegationRevocationReceiptSchema: z.ZodObject<{
330
330
  revoked: z.ZodLiteral<true>;
331
331
  cid: z.ZodString;
332
332
  }, "strict", z.ZodTypeAny, {
333
- revoked: true;
334
333
  cid: string;
335
- }, {
336
334
  revoked: true;
335
+ }, {
337
336
  cid: string;
337
+ revoked: true;
338
338
  }>;
339
339
  type DelegationRevocationReceipt = z.infer<typeof DelegationRevocationReceiptSchema>;
340
340
  declare const AccountDelegationResourceSchema: z.ZodObject<{
@@ -342,13 +342,13 @@ declare const AccountDelegationResourceSchema: z.ZodObject<{
342
342
  actions: z.ZodArray<z.ZodString, "many">;
343
343
  caveats: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
344
344
  }, "strict", z.ZodTypeAny, {
345
- actions: string[];
346
345
  caveats: Record<string, unknown>[];
347
346
  resource: string;
348
- }, {
349
347
  actions: string[];
348
+ }, {
350
349
  caveats: Record<string, unknown>[];
351
350
  resource: string;
351
+ actions: string[];
352
352
  }>;
353
353
  declare const AccountDelegationRecordSchema: z.ZodObject<{
354
354
  cid: z.ZodString;
@@ -360,13 +360,13 @@ declare const AccountDelegationRecordSchema: z.ZodObject<{
360
360
  actions: z.ZodArray<z.ZodString, "many">;
361
361
  caveats: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
362
362
  }, "strict", z.ZodTypeAny, {
363
- actions: string[];
364
363
  caveats: Record<string, unknown>[];
365
364
  resource: string;
366
- }, {
367
365
  actions: string[];
366
+ }, {
368
367
  caveats: Record<string, unknown>[];
369
368
  resource: string;
369
+ actions: string[];
370
370
  }>, "many">;
371
371
  parents: z.ZodArray<z.ZodString, "many">;
372
372
  issuedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
@@ -378,15 +378,15 @@ declare const AccountDelegationRecordSchema: z.ZodObject<{
378
378
  revokedAncestorCid: z.ZodOptional<z.ZodString>;
379
379
  }, "strict", z.ZodTypeAny, {
380
380
  status: "active" | "revoked" | "expired" | "pending" | "ancestor_revoked";
381
+ expiresAt: Date | null;
382
+ issuedAt: Date | null;
383
+ cid: string;
381
384
  notBefore: Date | null;
382
385
  resources: {
383
- actions: string[];
384
386
  caveats: Record<string, unknown>[];
385
387
  resource: string;
388
+ actions: string[];
386
389
  }[];
387
- issuedAt: Date | null;
388
- expiresAt: Date | null;
389
- cid: string;
390
390
  direction: "received" | "granted";
391
391
  delegatorDid: string;
392
392
  delegateDid: string;
@@ -396,15 +396,15 @@ declare const AccountDelegationRecordSchema: z.ZodObject<{
396
396
  revokedAncestorCid?: string | undefined;
397
397
  }, {
398
398
  status: "active" | "revoked" | "expired" | "pending" | "ancestor_revoked";
399
+ expiresAt: string | null;
400
+ issuedAt: string | null;
401
+ cid: string;
399
402
  notBefore: string | null;
400
403
  resources: {
401
- actions: string[];
402
404
  caveats: Record<string, unknown>[];
403
405
  resource: string;
406
+ actions: string[];
404
407
  }[];
405
- issuedAt: string | null;
406
- expiresAt: string | null;
407
- cid: string;
408
408
  direction: "received" | "granted";
409
409
  delegatorDid: string;
410
410
  delegateDid: string;
@@ -425,13 +425,13 @@ declare const AccountDelegationPageSchema: z.ZodObject<{
425
425
  actions: z.ZodArray<z.ZodString, "many">;
426
426
  caveats: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
427
427
  }, "strict", z.ZodTypeAny, {
428
- actions: string[];
429
428
  caveats: Record<string, unknown>[];
430
429
  resource: string;
431
- }, {
432
430
  actions: string[];
431
+ }, {
433
432
  caveats: Record<string, unknown>[];
434
433
  resource: string;
434
+ actions: string[];
435
435
  }>, "many">;
436
436
  parents: z.ZodArray<z.ZodString, "many">;
437
437
  issuedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
@@ -443,15 +443,15 @@ declare const AccountDelegationPageSchema: z.ZodObject<{
443
443
  revokedAncestorCid: z.ZodOptional<z.ZodString>;
444
444
  }, "strict", z.ZodTypeAny, {
445
445
  status: "active" | "revoked" | "expired" | "pending" | "ancestor_revoked";
446
+ expiresAt: Date | null;
447
+ issuedAt: Date | null;
448
+ cid: string;
446
449
  notBefore: Date | null;
447
450
  resources: {
448
- actions: string[];
449
451
  caveats: Record<string, unknown>[];
450
452
  resource: string;
453
+ actions: string[];
451
454
  }[];
452
- issuedAt: Date | null;
453
- expiresAt: Date | null;
454
- cid: string;
455
455
  direction: "received" | "granted";
456
456
  delegatorDid: string;
457
457
  delegateDid: string;
@@ -461,15 +461,15 @@ declare const AccountDelegationPageSchema: z.ZodObject<{
461
461
  revokedAncestorCid?: string | undefined;
462
462
  }, {
463
463
  status: "active" | "revoked" | "expired" | "pending" | "ancestor_revoked";
464
+ expiresAt: string | null;
465
+ issuedAt: string | null;
466
+ cid: string;
464
467
  notBefore: string | null;
465
468
  resources: {
466
- actions: string[];
467
469
  caveats: Record<string, unknown>[];
468
470
  resource: string;
471
+ actions: string[];
469
472
  }[];
470
- issuedAt: string | null;
471
- expiresAt: string | null;
472
- cid: string;
473
473
  direction: "received" | "granted";
474
474
  delegatorDid: string;
475
475
  delegateDid: string;
@@ -483,15 +483,15 @@ declare const AccountDelegationPageSchema: z.ZodObject<{
483
483
  schemaVersion: 2;
484
484
  items: {
485
485
  status: "active" | "revoked" | "expired" | "pending" | "ancestor_revoked";
486
+ expiresAt: Date | null;
487
+ issuedAt: Date | null;
488
+ cid: string;
486
489
  notBefore: Date | null;
487
490
  resources: {
488
- actions: string[];
489
491
  caveats: Record<string, unknown>[];
490
492
  resource: string;
493
+ actions: string[];
491
494
  }[];
492
- issuedAt: Date | null;
493
- expiresAt: Date | null;
494
- cid: string;
495
495
  direction: "received" | "granted";
496
496
  delegatorDid: string;
497
497
  delegateDid: string;
@@ -505,15 +505,15 @@ declare const AccountDelegationPageSchema: z.ZodObject<{
505
505
  schemaVersion: 2;
506
506
  items: {
507
507
  status: "active" | "revoked" | "expired" | "pending" | "ancestor_revoked";
508
+ expiresAt: string | null;
509
+ issuedAt: string | null;
510
+ cid: string;
508
511
  notBefore: string | null;
509
512
  resources: {
510
- actions: string[];
511
513
  caveats: Record<string, unknown>[];
512
514
  resource: string;
515
+ actions: string[];
513
516
  }[];
514
- issuedAt: string | null;
515
- expiresAt: string | null;
516
- cid: string;
517
517
  direction: "received" | "granted";
518
518
  delegatorDid: string;
519
519
  delegateDid: string;
@@ -681,10 +681,10 @@ declare const CapabilityEntrySchema: z.ZodObject<{
681
681
  authHeader: z.ZodOptional<z.ZodString>;
682
682
  }, "strip", z.ZodTypeAny, {
683
683
  path: string;
684
- expiry: Date;
685
- actions: string[];
686
684
  spaceId: string;
687
685
  cid: string;
686
+ expiry: Date;
687
+ actions: string[];
688
688
  delegateDID: string;
689
689
  isRevoked: boolean;
690
690
  caveats?: Record<string, unknown>[] | undefined;
@@ -695,10 +695,10 @@ declare const CapabilityEntrySchema: z.ZodObject<{
695
695
  authHeader?: string | undefined;
696
696
  }, {
697
697
  path: string;
698
- expiry: Date;
699
- actions: string[];
700
698
  spaceId: string;
701
699
  cid: string;
700
+ expiry: Date;
701
+ actions: string[];
702
702
  delegateDID: string;
703
703
  isRevoked: boolean;
704
704
  caveats?: Record<string, unknown>[] | undefined;
@@ -732,10 +732,10 @@ declare const CapabilityEntrySchema: z.ZodObject<{
732
732
  }[];
733
733
  delegation: {
734
734
  path: string;
735
- expiry: Date;
736
- actions: string[];
737
735
  spaceId: string;
738
736
  cid: string;
737
+ expiry: Date;
738
+ actions: string[];
739
739
  delegateDID: string;
740
740
  isRevoked: boolean;
741
741
  caveats?: Record<string, unknown>[] | undefined;
@@ -770,10 +770,10 @@ declare const CapabilityEntrySchema: z.ZodObject<{
770
770
  }[];
771
771
  delegation: {
772
772
  path: string;
773
- expiry: Date;
774
- actions: string[];
775
773
  spaceId: string;
776
774
  cid: string;
775
+ expiry: Date;
776
+ actions: string[];
777
777
  delegateDID: string;
778
778
  isRevoked: boolean;
779
779
  caveats?: Record<string, unknown>[] | undefined;
@@ -818,10 +818,10 @@ declare const DelegationRecordSchema: z.ZodObject<{
818
818
  parentCid: z.ZodOptional<z.ZodString>;
819
819
  }, "strip", z.ZodTypeAny, {
820
820
  path: string;
821
- actions: string[];
822
- createdAt: Date;
823
821
  spaceId: string;
824
822
  cid: string;
823
+ actions: string[];
824
+ createdAt: Date;
825
825
  isRevoked: boolean;
826
826
  delegator: string;
827
827
  delegatee: string;
@@ -831,10 +831,10 @@ declare const DelegationRecordSchema: z.ZodObject<{
831
831
  keyId?: string | undefined;
832
832
  }, {
833
833
  path: string;
834
- actions: string[];
835
- createdAt: Date;
836
834
  spaceId: string;
837
835
  cid: string;
836
+ actions: string[];
837
+ createdAt: Date;
838
838
  isRevoked: boolean;
839
839
  delegator: string;
840
840
  delegatee: string;
@@ -908,10 +908,10 @@ declare const DelegationChainSchema: z.ZodArray<z.ZodObject<{
908
908
  authHeader: z.ZodOptional<z.ZodString>;
909
909
  }, "strip", z.ZodTypeAny, {
910
910
  path: string;
911
- expiry: Date;
912
- actions: string[];
913
911
  spaceId: string;
914
912
  cid: string;
913
+ expiry: Date;
914
+ actions: string[];
915
915
  delegateDID: string;
916
916
  isRevoked: boolean;
917
917
  caveats?: Record<string, unknown>[] | undefined;
@@ -922,10 +922,10 @@ declare const DelegationChainSchema: z.ZodArray<z.ZodObject<{
922
922
  authHeader?: string | undefined;
923
923
  }, {
924
924
  path: string;
925
- expiry: Date;
926
- actions: string[];
927
925
  spaceId: string;
928
926
  cid: string;
927
+ expiry: Date;
928
+ actions: string[];
929
929
  delegateDID: string;
930
930
  isRevoked: boolean;
931
931
  caveats?: Record<string, unknown>[] | undefined;
@@ -970,10 +970,10 @@ declare const DelegationChainV2Schema: z.ZodObject<{
970
970
  authHeader: z.ZodOptional<z.ZodString>;
971
971
  }, "strip", z.ZodTypeAny, {
972
972
  path: string;
973
- expiry: Date;
974
- actions: string[];
975
973
  spaceId: string;
976
974
  cid: string;
975
+ expiry: Date;
976
+ actions: string[];
977
977
  delegateDID: string;
978
978
  isRevoked: boolean;
979
979
  caveats?: Record<string, unknown>[] | undefined;
@@ -984,10 +984,10 @@ declare const DelegationChainV2Schema: z.ZodObject<{
984
984
  authHeader?: string | undefined;
985
985
  }, {
986
986
  path: string;
987
- expiry: Date;
988
- actions: string[];
989
987
  spaceId: string;
990
988
  cid: string;
989
+ expiry: Date;
990
+ actions: string[];
991
991
  delegateDID: string;
992
992
  isRevoked: boolean;
993
993
  caveats?: Record<string, unknown>[] | undefined;
@@ -1027,10 +1027,10 @@ declare const DelegationChainV2Schema: z.ZodObject<{
1027
1027
  authHeader: z.ZodOptional<z.ZodString>;
1028
1028
  }, "strip", z.ZodTypeAny, {
1029
1029
  path: string;
1030
- expiry: Date;
1031
- actions: string[];
1032
1030
  spaceId: string;
1033
1031
  cid: string;
1032
+ expiry: Date;
1033
+ actions: string[];
1034
1034
  delegateDID: string;
1035
1035
  isRevoked: boolean;
1036
1036
  caveats?: Record<string, unknown>[] | undefined;
@@ -1041,10 +1041,10 @@ declare const DelegationChainV2Schema: z.ZodObject<{
1041
1041
  authHeader?: string | undefined;
1042
1042
  }, {
1043
1043
  path: string;
1044
- expiry: Date;
1045
- actions: string[];
1046
1044
  spaceId: string;
1047
1045
  cid: string;
1046
+ expiry: Date;
1047
+ actions: string[];
1048
1048
  delegateDID: string;
1049
1049
  isRevoked: boolean;
1050
1050
  caveats?: Record<string, unknown>[] | undefined;
@@ -1084,10 +1084,10 @@ declare const DelegationChainV2Schema: z.ZodObject<{
1084
1084
  authHeader: z.ZodOptional<z.ZodString>;
1085
1085
  }, "strip", z.ZodTypeAny, {
1086
1086
  path: string;
1087
- expiry: Date;
1088
- actions: string[];
1089
1087
  spaceId: string;
1090
1088
  cid: string;
1089
+ expiry: Date;
1090
+ actions: string[];
1091
1091
  delegateDID: string;
1092
1092
  isRevoked: boolean;
1093
1093
  caveats?: Record<string, unknown>[] | undefined;
@@ -1098,10 +1098,10 @@ declare const DelegationChainV2Schema: z.ZodObject<{
1098
1098
  authHeader?: string | undefined;
1099
1099
  }, {
1100
1100
  path: string;
1101
- expiry: Date;
1102
- actions: string[];
1103
1101
  spaceId: string;
1104
1102
  cid: string;
1103
+ expiry: Date;
1104
+ actions: string[];
1105
1105
  delegateDID: string;
1106
1106
  isRevoked: boolean;
1107
1107
  caveats?: Record<string, unknown>[] | undefined;
@@ -1114,10 +1114,10 @@ declare const DelegationChainV2Schema: z.ZodObject<{
1114
1114
  }, "strip", z.ZodTypeAny, {
1115
1115
  root: {
1116
1116
  path: string;
1117
- expiry: Date;
1118
- actions: string[];
1119
1117
  spaceId: string;
1120
1118
  cid: string;
1119
+ expiry: Date;
1120
+ actions: string[];
1121
1121
  delegateDID: string;
1122
1122
  isRevoked: boolean;
1123
1123
  caveats?: Record<string, unknown>[] | undefined;
@@ -1129,10 +1129,10 @@ declare const DelegationChainV2Schema: z.ZodObject<{
1129
1129
  };
1130
1130
  chain: {
1131
1131
  path: string;
1132
- expiry: Date;
1133
- actions: string[];
1134
1132
  spaceId: string;
1135
1133
  cid: string;
1134
+ expiry: Date;
1135
+ actions: string[];
1136
1136
  delegateDID: string;
1137
1137
  isRevoked: boolean;
1138
1138
  caveats?: Record<string, unknown>[] | undefined;
@@ -1144,10 +1144,10 @@ declare const DelegationChainV2Schema: z.ZodObject<{
1144
1144
  }[];
1145
1145
  leaf: {
1146
1146
  path: string;
1147
- expiry: Date;
1148
- actions: string[];
1149
1147
  spaceId: string;
1150
1148
  cid: string;
1149
+ expiry: Date;
1150
+ actions: string[];
1151
1151
  delegateDID: string;
1152
1152
  isRevoked: boolean;
1153
1153
  caveats?: Record<string, unknown>[] | undefined;
@@ -1160,10 +1160,10 @@ declare const DelegationChainV2Schema: z.ZodObject<{
1160
1160
  }, {
1161
1161
  root: {
1162
1162
  path: string;
1163
- expiry: Date;
1164
- actions: string[];
1165
1163
  spaceId: string;
1166
1164
  cid: string;
1165
+ expiry: Date;
1166
+ actions: string[];
1167
1167
  delegateDID: string;
1168
1168
  isRevoked: boolean;
1169
1169
  caveats?: Record<string, unknown>[] | undefined;
@@ -1175,10 +1175,10 @@ declare const DelegationChainV2Schema: z.ZodObject<{
1175
1175
  };
1176
1176
  chain: {
1177
1177
  path: string;
1178
- expiry: Date;
1179
- actions: string[];
1180
1178
  spaceId: string;
1181
1179
  cid: string;
1180
+ expiry: Date;
1181
+ actions: string[];
1182
1182
  delegateDID: string;
1183
1183
  isRevoked: boolean;
1184
1184
  caveats?: Record<string, unknown>[] | undefined;
@@ -1190,10 +1190,10 @@ declare const DelegationChainV2Schema: z.ZodObject<{
1190
1190
  }[];
1191
1191
  leaf: {
1192
1192
  path: string;
1193
- expiry: Date;
1194
- actions: string[];
1195
1193
  spaceId: string;
1196
1194
  cid: string;
1195
+ expiry: Date;
1196
+ actions: string[];
1197
1197
  delegateDID: string;
1198
1198
  isRevoked: boolean;
1199
1199
  caveats?: Record<string, unknown>[] | undefined;
@@ -1334,10 +1334,10 @@ declare const ShareLinkSchema: z.ZodObject<{
1334
1334
  authHeader: z.ZodOptional<z.ZodString>;
1335
1335
  }, "strip", z.ZodTypeAny, {
1336
1336
  path: string;
1337
- expiry: Date;
1338
- actions: string[];
1339
1337
  spaceId: string;
1340
1338
  cid: string;
1339
+ expiry: Date;
1340
+ actions: string[];
1341
1341
  delegateDID: string;
1342
1342
  isRevoked: boolean;
1343
1343
  caveats?: Record<string, unknown>[] | undefined;
@@ -1348,10 +1348,10 @@ declare const ShareLinkSchema: z.ZodObject<{
1348
1348
  authHeader?: string | undefined;
1349
1349
  }, {
1350
1350
  path: string;
1351
- expiry: Date;
1352
- actions: string[];
1353
1351
  spaceId: string;
1354
1352
  cid: string;
1353
+ expiry: Date;
1354
+ actions: string[];
1355
1355
  delegateDID: string;
1356
1356
  isRevoked: boolean;
1357
1357
  caveats?: Record<string, unknown>[] | undefined;
@@ -1371,10 +1371,10 @@ declare const ShareLinkSchema: z.ZodObject<{
1371
1371
  schema: "base64" | "compact" | "ipfs";
1372
1372
  delegation: {
1373
1373
  path: string;
1374
- expiry: Date;
1375
- actions: string[];
1376
1374
  spaceId: string;
1377
1375
  cid: string;
1376
+ expiry: Date;
1377
+ actions: string[];
1378
1378
  delegateDID: string;
1379
1379
  isRevoked: boolean;
1380
1380
  caveats?: Record<string, unknown>[] | undefined;
@@ -1392,10 +1392,10 @@ declare const ShareLinkSchema: z.ZodObject<{
1392
1392
  schema: "base64" | "compact" | "ipfs";
1393
1393
  delegation: {
1394
1394
  path: string;
1395
- expiry: Date;
1396
- actions: string[];
1397
1395
  spaceId: string;
1398
1396
  cid: string;
1397
+ expiry: Date;
1398
+ actions: string[];
1399
1399
  delegateDID: string;
1400
1400
  isRevoked: boolean;
1401
1401
  caveats?: Record<string, unknown>[] | undefined;
@@ -1463,15 +1463,15 @@ declare const GenerateShareParamsSchema: z.ZodObject<{
1463
1463
  baseUrl: z.ZodOptional<z.ZodString>;
1464
1464
  }, "strip", z.ZodTypeAny, {
1465
1465
  path: string;
1466
- description?: string | undefined;
1467
1466
  schema?: "base64" | "compact" | "ipfs" | undefined;
1467
+ description?: string | undefined;
1468
1468
  expiry?: Date | undefined;
1469
1469
  actions?: string[] | undefined;
1470
1470
  baseUrl?: string | undefined;
1471
1471
  }, {
1472
1472
  path: string;
1473
- description?: string | undefined;
1474
1473
  schema?: "base64" | "compact" | "ipfs" | undefined;
1474
+ description?: string | undefined;
1475
1475
  expiry?: Date | undefined;
1476
1476
  actions?: string[] | undefined;
1477
1477
  baseUrl?: string | undefined;
@@ -1503,8 +1503,8 @@ declare const DelegationManagerConfigSchema: z.ZodObject<{
1503
1503
  fetch?: FetchFunction | undefined;
1504
1504
  }, {
1505
1505
  hosts: string[];
1506
- session?: unknown;
1507
1506
  invokeAny?: unknown;
1507
+ session?: unknown;
1508
1508
  accountSpaceId?: string | undefined;
1509
1509
  invoke?: unknown;
1510
1510
  fetch?: unknown;
@@ -1543,13 +1543,13 @@ declare const DelegationApiResponseSchema: z.ZodObject<{
1543
1543
  /** CID of the created delegation */
1544
1544
  cid: z.ZodOptional<z.ZodString>;
1545
1545
  }, "strip", z.ZodTypeAny, {
1546
- siwe: string;
1547
1546
  signature: string;
1547
+ siwe: string;
1548
1548
  version: number;
1549
1549
  cid?: string | undefined;
1550
1550
  }, {
1551
- siwe: string;
1552
1551
  signature: string;
1552
+ siwe: string;
1553
1553
  version: number;
1554
1554
  cid?: string | undefined;
1555
1555
  }>;
@@ -1633,8 +1633,8 @@ declare const CreateDelegationWasmParamsSchema: z.ZodObject<{
1633
1633
  /** Optional not-before time in seconds since Unix epoch */
1634
1634
  notBeforeSecs: z.ZodOptional<z.ZodNumber>;
1635
1635
  }, "strip", z.ZodTypeAny, {
1636
- session: ServiceSession;
1637
1636
  spaceId: string;
1637
+ session: ServiceSession;
1638
1638
  delegateDID: string;
1639
1639
  abilities: Record<string, Record<string, string[]>>;
1640
1640
  expirationSecs: number;
@@ -1694,6 +1694,8 @@ declare const CreateDelegationWasmResultSchema: z.ZodObject<{
1694
1694
  caveats?: Record<string, unknown>[] | undefined;
1695
1695
  }>, "many">;
1696
1696
  }, "strip", z.ZodTypeAny, {
1697
+ delegation: string;
1698
+ cid: string;
1697
1699
  resources: {
1698
1700
  path: string;
1699
1701
  actions: string[];
@@ -1701,11 +1703,11 @@ declare const CreateDelegationWasmResultSchema: z.ZodObject<{
1701
1703
  service: string;
1702
1704
  caveats?: Record<string, unknown>[] | undefined;
1703
1705
  }[];
1704
- delegation: string;
1705
1706
  expiry: Date;
1706
- cid: string;
1707
1707
  delegateDID: string;
1708
1708
  }, {
1709
+ delegation: string;
1710
+ cid: string;
1709
1711
  resources: {
1710
1712
  path: string;
1711
1713
  actions: string[];
@@ -1713,9 +1715,7 @@ declare const CreateDelegationWasmResultSchema: z.ZodObject<{
1713
1715
  service: string;
1714
1716
  caveats?: Record<string, unknown>[] | undefined;
1715
1717
  }[];
1716
- delegation: string;
1717
1718
  expiry: Date;
1718
- cid: string;
1719
1719
  delegateDID: string;
1720
1720
  }>;
1721
1721
  type CreateDelegationWasmResult = z.infer<typeof CreateDelegationWasmResultSchema>;
@@ -3815,7 +3815,7 @@ declare const ShareRecipientPolicySchema: z.ZodObject<{
3815
3815
  expiresAt: z.ZodDate;
3816
3816
  }, "strict", z.ZodTypeAny, {
3817
3817
  expiresAt: Date;
3818
- actions: ("list" | "read" | "edit")[];
3818
+ spaceId: string;
3819
3819
  resource: {
3820
3820
  path: string;
3821
3821
  kind: "exact";
@@ -3823,7 +3823,7 @@ declare const ShareRecipientPolicySchema: z.ZodObject<{
3823
3823
  path: string;
3824
3824
  kind: "prefix";
3825
3825
  };
3826
- spaceId: string;
3826
+ actions: ("list" | "read" | "edit")[];
3827
3827
  recipientMatcher: {
3828
3828
  value: string;
3829
3829
  kind: "exactEmail";
@@ -3838,7 +3838,7 @@ declare const ShareRecipientPolicySchema: z.ZodObject<{
3838
3838
  };
3839
3839
  }, {
3840
3840
  expiresAt: Date;
3841
- actions: ("list" | "read" | "edit")[];
3841
+ spaceId: string;
3842
3842
  resource: {
3843
3843
  path: string;
3844
3844
  kind: "exact";
@@ -3846,7 +3846,7 @@ declare const ShareRecipientPolicySchema: z.ZodObject<{
3846
3846
  path: string;
3847
3847
  kind: "prefix";
3848
3848
  };
3849
- spaceId: string;
3849
+ actions: ("list" | "read" | "edit")[];
3850
3850
  recipientMatcher: {
3851
3851
  value: string;
3852
3852
  kind: "exactEmail";
@@ -3926,14 +3926,14 @@ declare const ShareAddressedDelegationRequestV2Schema: z.ZodObject<{
3926
3926
  path: z.ZodString;
3927
3927
  }, "strict", z.ZodTypeAny, {
3928
3928
  path: string;
3929
+ action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
3929
3930
  space: string;
3930
3931
  kind: "kv";
3931
- action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
3932
3932
  }, {
3933
3933
  path: string;
3934
+ action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
3934
3935
  space: string;
3935
3936
  kind: "kv";
3936
- action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
3937
3937
  }>, z.ZodObject<{
3938
3938
  kind: z.ZodLiteral<"sql">;
3939
3939
  action: z.ZodLiteral<"tinycloud.sql/read">;
@@ -3945,25 +3945,25 @@ declare const ShareAddressedDelegationRequestV2Schema: z.ZodObject<{
3945
3945
  argumentsDigest: z.ZodString;
3946
3946
  }, "strict", z.ZodTypeAny, {
3947
3947
  path: string;
3948
+ action: "tinycloud.sql/read";
3948
3949
  statement: string;
3949
3950
  space: string;
3950
3951
  kind: "sql";
3951
- action: "tinycloud.sql/read";
3952
3952
  database: string;
3953
3953
  arguments: Record<string, number>;
3954
3954
  argumentsDigest: string;
3955
3955
  }, {
3956
3956
  path: string;
3957
+ action: "tinycloud.sql/read";
3957
3958
  statement: string;
3958
3959
  space: string;
3959
3960
  kind: "sql";
3960
- action: "tinycloud.sql/read";
3961
3961
  database: string;
3962
3962
  arguments: Record<string, number>;
3963
3963
  argumentsDigest: string;
3964
3964
  }>]>;
3965
3965
  contentSourceDigest: z.ZodString;
3966
- actions: z.ZodEffects<z.ZodArray<z.ZodEnum<["tinycloud.kv/get", "tinycloud.kv/metadata", "tinycloud.kv/list", "tinycloud.kv/put", "tinycloud.sql/read"]>, "many">, ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[], ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[]>;
3966
+ actions: z.ZodEffects<z.ZodArray<z.ZodEnum<["tinycloud.kv/get", "tinycloud.kv/metadata", "tinycloud.kv/list", "tinycloud.kv/put", "tinycloud.sql/read"]>, "many">, ("tinycloud.sql/read" | "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata")[], ("tinycloud.sql/read" | "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata")[]>;
3967
3967
  resource: z.ZodObject<{
3968
3968
  kind: z.ZodEnum<["exact", "prefix"]>;
3969
3969
  value: z.ZodString;
@@ -3977,27 +3977,27 @@ declare const ShareAddressedDelegationRequestV2Schema: z.ZodObject<{
3977
3977
  expiresAt: z.ZodString;
3978
3978
  requestBodyDigest: z.ZodString;
3979
3979
  }, "strict", z.ZodTypeAny, {
3980
- nonce: string;
3981
- jti: string;
3982
3980
  expiresAt: string;
3983
- version: 2;
3984
- actions: ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[];
3981
+ nonce: string;
3985
3982
  resource: {
3986
3983
  value: string;
3987
3984
  kind: "exact" | "prefix";
3988
3985
  };
3986
+ jti: string;
3987
+ version: 2;
3988
+ actions: ("tinycloud.sql/read" | "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata")[];
3989
3989
  nodeAudience: string;
3990
3990
  contentSource: {
3991
3991
  path: string;
3992
+ action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
3992
3993
  space: string;
3993
3994
  kind: "kv";
3994
- action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
3995
3995
  } | {
3996
3996
  path: string;
3997
+ action: "tinycloud.sql/read";
3997
3998
  statement: string;
3998
3999
  space: string;
3999
4000
  kind: "sql";
4000
- action: "tinycloud.sql/read";
4001
4001
  database: string;
4002
4002
  arguments: Record<string, number>;
4003
4003
  argumentsDigest: string;
@@ -4022,27 +4022,27 @@ declare const ShareAddressedDelegationRequestV2Schema: z.ZodObject<{
4022
4022
  authorityMaterialDigest: string;
4023
4023
  requestBodyDigest: string;
4024
4024
  }, {
4025
- nonce: string;
4026
- jti: string;
4027
4025
  expiresAt: string;
4028
- version: 2;
4029
- actions: ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[];
4026
+ nonce: string;
4030
4027
  resource: {
4031
4028
  value: string;
4032
4029
  kind: "exact" | "prefix";
4033
4030
  };
4031
+ jti: string;
4032
+ version: 2;
4033
+ actions: ("tinycloud.sql/read" | "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata")[];
4034
4034
  nodeAudience: string;
4035
4035
  contentSource: {
4036
4036
  path: string;
4037
+ action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
4037
4038
  space: string;
4038
4039
  kind: "kv";
4039
- action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
4040
4040
  } | {
4041
4041
  path: string;
4042
+ action: "tinycloud.sql/read";
4042
4043
  statement: string;
4043
4044
  space: string;
4044
4045
  kind: "sql";
4045
- action: "tinycloud.sql/read";
4046
4046
  database: string;
4047
4047
  arguments: Record<string, number>;
4048
4048
  argumentsDigest: string;
@@ -4115,14 +4115,14 @@ declare const ShareAddressedDelegationEnvelopeV2Schema: z.ZodObject<{
4115
4115
  path: z.ZodString;
4116
4116
  }, "strict", z.ZodTypeAny, {
4117
4117
  path: string;
4118
+ action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
4118
4119
  space: string;
4119
4120
  kind: "kv";
4120
- action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
4121
4121
  }, {
4122
4122
  path: string;
4123
+ action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
4123
4124
  space: string;
4124
4125
  kind: "kv";
4125
- action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
4126
4126
  }>, z.ZodObject<{
4127
4127
  kind: z.ZodLiteral<"sql">;
4128
4128
  action: z.ZodLiteral<"tinycloud.sql/read">;
@@ -4134,25 +4134,25 @@ declare const ShareAddressedDelegationEnvelopeV2Schema: z.ZodObject<{
4134
4134
  argumentsDigest: z.ZodString;
4135
4135
  }, "strict", z.ZodTypeAny, {
4136
4136
  path: string;
4137
+ action: "tinycloud.sql/read";
4137
4138
  statement: string;
4138
4139
  space: string;
4139
4140
  kind: "sql";
4140
- action: "tinycloud.sql/read";
4141
4141
  database: string;
4142
4142
  arguments: Record<string, number>;
4143
4143
  argumentsDigest: string;
4144
4144
  }, {
4145
4145
  path: string;
4146
+ action: "tinycloud.sql/read";
4146
4147
  statement: string;
4147
4148
  space: string;
4148
4149
  kind: "sql";
4149
- action: "tinycloud.sql/read";
4150
4150
  database: string;
4151
4151
  arguments: Record<string, number>;
4152
4152
  argumentsDigest: string;
4153
4153
  }>]>;
4154
4154
  contentSourceDigest: z.ZodString;
4155
- actions: z.ZodEffects<z.ZodArray<z.ZodEnum<["tinycloud.kv/get", "tinycloud.kv/metadata", "tinycloud.kv/list", "tinycloud.kv/put", "tinycloud.sql/read"]>, "many">, ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[], ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[]>;
4155
+ actions: z.ZodEffects<z.ZodArray<z.ZodEnum<["tinycloud.kv/get", "tinycloud.kv/metadata", "tinycloud.kv/list", "tinycloud.kv/put", "tinycloud.sql/read"]>, "many">, ("tinycloud.sql/read" | "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata")[], ("tinycloud.sql/read" | "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata")[]>;
4156
4156
  resource: z.ZodObject<{
4157
4157
  kind: z.ZodEnum<["exact", "prefix"]>;
4158
4158
  value: z.ZodString;
@@ -4166,27 +4166,27 @@ declare const ShareAddressedDelegationEnvelopeV2Schema: z.ZodObject<{
4166
4166
  expiresAt: z.ZodString;
4167
4167
  requestBodyDigest: z.ZodString;
4168
4168
  }, "strict", z.ZodTypeAny, {
4169
- nonce: string;
4170
- jti: string;
4171
4169
  expiresAt: string;
4172
- version: 2;
4173
- actions: ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[];
4170
+ nonce: string;
4174
4171
  resource: {
4175
4172
  value: string;
4176
4173
  kind: "exact" | "prefix";
4177
4174
  };
4175
+ jti: string;
4176
+ version: 2;
4177
+ actions: ("tinycloud.sql/read" | "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata")[];
4178
4178
  nodeAudience: string;
4179
4179
  contentSource: {
4180
4180
  path: string;
4181
+ action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
4181
4182
  space: string;
4182
4183
  kind: "kv";
4183
- action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
4184
4184
  } | {
4185
4185
  path: string;
4186
+ action: "tinycloud.sql/read";
4186
4187
  statement: string;
4187
4188
  space: string;
4188
4189
  kind: "sql";
4189
- action: "tinycloud.sql/read";
4190
4190
  database: string;
4191
4191
  arguments: Record<string, number>;
4192
4192
  argumentsDigest: string;
@@ -4211,27 +4211,27 @@ declare const ShareAddressedDelegationEnvelopeV2Schema: z.ZodObject<{
4211
4211
  authorityMaterialDigest: string;
4212
4212
  requestBodyDigest: string;
4213
4213
  }, {
4214
- nonce: string;
4215
- jti: string;
4216
4214
  expiresAt: string;
4217
- version: 2;
4218
- actions: ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[];
4215
+ nonce: string;
4219
4216
  resource: {
4220
4217
  value: string;
4221
4218
  kind: "exact" | "prefix";
4222
4219
  };
4220
+ jti: string;
4221
+ version: 2;
4222
+ actions: ("tinycloud.sql/read" | "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata")[];
4223
4223
  nodeAudience: string;
4224
4224
  contentSource: {
4225
4225
  path: string;
4226
+ action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
4226
4227
  space: string;
4227
4228
  kind: "kv";
4228
- action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
4229
4229
  } | {
4230
4230
  path: string;
4231
+ action: "tinycloud.sql/read";
4231
4232
  statement: string;
4232
4233
  space: string;
4233
4234
  kind: "sql";
4234
- action: "tinycloud.sql/read";
4235
4235
  database: string;
4236
4236
  arguments: Record<string, number>;
4237
4237
  argumentsDigest: string;
@@ -4271,27 +4271,27 @@ declare const ShareAddressedDelegationEnvelopeV2Schema: z.ZodObject<{
4271
4271
  }>;
4272
4272
  }, "strict", z.ZodTypeAny, {
4273
4273
  request: {
4274
- nonce: string;
4275
- jti: string;
4276
4274
  expiresAt: string;
4277
- version: 2;
4278
- actions: ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[];
4275
+ nonce: string;
4279
4276
  resource: {
4280
4277
  value: string;
4281
4278
  kind: "exact" | "prefix";
4282
4279
  };
4280
+ jti: string;
4281
+ version: 2;
4282
+ actions: ("tinycloud.sql/read" | "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata")[];
4283
4283
  nodeAudience: string;
4284
4284
  contentSource: {
4285
4285
  path: string;
4286
+ action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
4286
4287
  space: string;
4287
4288
  kind: "kv";
4288
- action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
4289
4289
  } | {
4290
4290
  path: string;
4291
+ action: "tinycloud.sql/read";
4291
4292
  statement: string;
4292
4293
  space: string;
4293
4294
  kind: "sql";
4294
- action: "tinycloud.sql/read";
4295
4295
  database: string;
4296
4296
  arguments: Record<string, number>;
4297
4297
  argumentsDigest: string;
@@ -4323,27 +4323,27 @@ declare const ShareAddressedDelegationEnvelopeV2Schema: z.ZodObject<{
4323
4323
  };
4324
4324
  }, {
4325
4325
  request: {
4326
- nonce: string;
4327
- jti: string;
4328
4326
  expiresAt: string;
4329
- version: 2;
4330
- actions: ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[];
4327
+ nonce: string;
4331
4328
  resource: {
4332
4329
  value: string;
4333
4330
  kind: "exact" | "prefix";
4334
4331
  };
4332
+ jti: string;
4333
+ version: 2;
4334
+ actions: ("tinycloud.sql/read" | "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata")[];
4335
4335
  nodeAudience: string;
4336
4336
  contentSource: {
4337
4337
  path: string;
4338
+ action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
4338
4339
  space: string;
4339
4340
  kind: "kv";
4340
- action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
4341
4341
  } | {
4342
4342
  path: string;
4343
+ action: "tinycloud.sql/read";
4343
4344
  statement: string;
4344
4345
  space: string;
4345
4346
  kind: "sql";
4346
- action: "tinycloud.sql/read";
4347
4347
  database: string;
4348
4348
  arguments: Record<string, number>;
4349
4349
  argumentsDigest: string;
@@ -4387,7 +4387,7 @@ declare const ShareAddressedDelegationResponseV2Schema: z.ZodObject<{
4387
4387
  delegationDigest: z.ZodString;
4388
4388
  authorityMaterialHandle: z.ZodString;
4389
4389
  authorityMaterialDigest: z.ZodString;
4390
- actions: z.ZodEffects<z.ZodArray<z.ZodEnum<["tinycloud.kv/get", "tinycloud.kv/metadata", "tinycloud.kv/list", "tinycloud.kv/put", "tinycloud.sql/read"]>, "many">, ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[], ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[]>;
4390
+ actions: z.ZodEffects<z.ZodArray<z.ZodEnum<["tinycloud.kv/get", "tinycloud.kv/metadata", "tinycloud.kv/list", "tinycloud.kv/put", "tinycloud.sql/read"]>, "many">, ("tinycloud.sql/read" | "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata")[], ("tinycloud.sql/read" | "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata")[]>;
4391
4391
  resource: z.ZodObject<{
4392
4392
  kind: z.ZodEnum<["exact", "prefix"]>;
4393
4393
  value: z.ZodString;
@@ -4414,20 +4414,20 @@ declare const ShareAddressedDelegationResponseV2Schema: z.ZodObject<{
4414
4414
  }>;
4415
4415
  }, "strict", z.ZodTypeAny, {
4416
4416
  type: "TinyCloudShareAddressedDelegation";
4417
+ expiresAt: string;
4417
4418
  nonce: string;
4419
+ resource: {
4420
+ value: string;
4421
+ kind: "exact" | "prefix";
4422
+ };
4418
4423
  proof: {
4419
4424
  signature: string;
4420
4425
  kid: string;
4421
4426
  alg: "EdDSA";
4422
4427
  };
4423
4428
  jti: string;
4424
- expiresAt: string;
4425
4429
  version: 2;
4426
- actions: ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[];
4427
- resource: {
4428
- value: string;
4429
- kind: "exact" | "prefix";
4430
- };
4430
+ actions: ("tinycloud.sql/read" | "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata")[];
4431
4431
  policyCid: string;
4432
4432
  policyBytes: string;
4433
4433
  delegationCid: string;
@@ -4438,20 +4438,20 @@ declare const ShareAddressedDelegationResponseV2Schema: z.ZodObject<{
4438
4438
  delegationDigest: string;
4439
4439
  }, {
4440
4440
  type: "TinyCloudShareAddressedDelegation";
4441
+ expiresAt: string;
4441
4442
  nonce: string;
4443
+ resource: {
4444
+ value: string;
4445
+ kind: "exact" | "prefix";
4446
+ };
4442
4447
  proof: {
4443
4448
  signature: string;
4444
4449
  kid: string;
4445
4450
  alg: "EdDSA";
4446
4451
  };
4447
4452
  jti: string;
4448
- expiresAt: string;
4449
4453
  version: 2;
4450
- actions: ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[];
4451
- resource: {
4452
- value: string;
4453
- kind: "exact" | "prefix";
4454
- };
4454
+ actions: ("tinycloud.sql/read" | "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata")[];
4455
4455
  policyCid: string;
4456
4456
  policyBytes: string;
4457
4457
  delegationCid: string;
@@ -4470,18 +4470,18 @@ declare const ShareNativeResponseSchema: z.ZodDiscriminatedUnion<"action", [z.Zo
4470
4470
  resource: z.ZodString;
4471
4471
  }, "strict", z.ZodTypeAny, {
4472
4472
  type: "TinyCloudShareInvokeResponse";
4473
+ resource: string;
4474
+ action: "tinycloud.kv/metadata";
4473
4475
  version: 2;
4474
4476
  etag: string | null;
4475
4477
  metadata: Record<string, string>;
4476
- resource: string;
4477
- action: "tinycloud.kv/metadata";
4478
4478
  }, {
4479
4479
  type: "TinyCloudShareInvokeResponse";
4480
+ resource: string;
4481
+ action: "tinycloud.kv/metadata";
4480
4482
  version: 2;
4481
4483
  etag: string | null;
4482
4484
  metadata: Record<string, string>;
4483
- resource: string;
4484
- action: "tinycloud.kv/metadata";
4485
4485
  }>, z.ZodObject<{
4486
4486
  action: z.ZodLiteral<"tinycloud.kv/get">;
4487
4487
  mediaType: z.ZodString;
@@ -4493,19 +4493,19 @@ declare const ShareNativeResponseSchema: z.ZodDiscriminatedUnion<"action", [z.Zo
4493
4493
  resource: z.ZodString;
4494
4494
  }, "strict", z.ZodTypeAny, {
4495
4495
  type: "TinyCloudShareInvokeResponse";
4496
- version: 2;
4497
- etag: string | null;
4498
4496
  resource: string;
4499
4497
  action: "tinycloud.kv/get";
4498
+ version: 2;
4499
+ etag: string | null;
4500
4500
  content: string;
4501
4501
  mediaType: string;
4502
4502
  bodyDigest: string;
4503
4503
  }, {
4504
4504
  type: "TinyCloudShareInvokeResponse";
4505
- version: 2;
4506
- etag: string | null;
4507
4505
  resource: string;
4508
4506
  action: "tinycloud.kv/get";
4507
+ version: 2;
4508
+ etag: string | null;
4509
4509
  content: string;
4510
4510
  mediaType: string;
4511
4511
  bodyDigest: string;
@@ -4526,24 +4526,24 @@ declare const ShareNativeResponseSchema: z.ZodDiscriminatedUnion<"action", [z.Zo
4526
4526
  version: z.ZodLiteral<2>;
4527
4527
  resource: z.ZodString;
4528
4528
  }, "strict", z.ZodTypeAny, {
4529
- type: "TinyCloudShareInvokeResponse";
4530
4529
  entries: {
4531
4530
  path: string;
4532
4531
  kind: "folder" | "file";
4533
4532
  }[];
4534
- version: 2;
4533
+ type: "TinyCloudShareInvokeResponse";
4535
4534
  resource: string;
4536
4535
  action: "tinycloud.kv/list";
4536
+ version: 2;
4537
4537
  nextCursor: string | null;
4538
4538
  }, {
4539
- type: "TinyCloudShareInvokeResponse";
4540
4539
  entries: {
4541
4540
  path: string;
4542
4541
  kind: "folder" | "file";
4543
4542
  }[];
4544
- version: 2;
4543
+ type: "TinyCloudShareInvokeResponse";
4545
4544
  resource: string;
4546
4545
  action: "tinycloud.kv/list";
4546
+ version: 2;
4547
4547
  nextCursor: string | null;
4548
4548
  }>, z.ZodObject<{
4549
4549
  action: z.ZodLiteral<"tinycloud.kv/put">;
@@ -4555,18 +4555,18 @@ declare const ShareNativeResponseSchema: z.ZodDiscriminatedUnion<"action", [z.Zo
4555
4555
  resource: z.ZodString;
4556
4556
  }, "strict", z.ZodTypeAny, {
4557
4557
  type: "TinyCloudShareInvokeResponse";
4558
- version: 2;
4559
- etag: string;
4560
4558
  resource: string;
4561
4559
  action: "tinycloud.kv/put";
4560
+ version: 2;
4561
+ etag: string;
4562
4562
  bodyDigest: string;
4563
4563
  contentType: string;
4564
4564
  }, {
4565
4565
  type: "TinyCloudShareInvokeResponse";
4566
- version: 2;
4567
- etag: string;
4568
4566
  resource: string;
4569
4567
  action: "tinycloud.kv/put";
4568
+ version: 2;
4569
+ etag: string;
4570
4570
  bodyDigest: string;
4571
4571
  contentType: string;
4572
4572
  }>]>;