@tinycloud/sdk-core 3.2.6-beta.2 → 3.3.0-beta.7
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/delegations/index.cjs +32 -18
- package/dist/delegations/index.cjs.map +1 -1
- package/dist/delegations/index.d.cts +29 -29
- package/dist/delegations/index.d.ts +29 -29
- package/dist/delegations/index.js +32 -18
- package/dist/delegations/index.js.map +1 -1
- package/dist/index.cjs +42 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +38 -15
- package/dist/index.d.ts +38 -15
- package/dist/index.js +42 -19
- package/dist/index.js.map +1 -1
- package/dist/policy/index.d.cts +2 -2
- package/dist/policy/index.d.ts +2 -2
- package/dist/{recipient-types.schema-BKrmP8hJ.d.cts → recipient-types.schema-ZCBMchyn.d.cts} +185 -177
- package/dist/{recipient-types.schema-BKrmP8hJ.d.ts → recipient-types.schema-ZCBMchyn.d.ts} +185 -177
- package/package.json +2 -2
- package/dist/{credential-admission-Cg1M9uyV.d.cts → credential-admission-CaWVn8yO.d.cts} +4 -4
- package/dist/{credential-admission-7I_ymo-C.d.ts → credential-admission-CqXwBvDS.d.ts} +4 -4
|
@@ -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;
|
|
@@ -1492,6 +1492,8 @@ declare const DelegationManagerConfigSchema: z.ZodObject<{
|
|
|
1492
1492
|
invoke: z.ZodEffects<z.ZodUnknown, InvokeFunction, unknown>;
|
|
1493
1493
|
/** Platform-specific invoke function for raw resource URIs */
|
|
1494
1494
|
invokeAny: z.ZodOptional<z.ZodEffects<z.ZodUnknown, InvokeAnyFunction, unknown>>;
|
|
1495
|
+
/** Optional owner-signed authorization for direct CID revocation */
|
|
1496
|
+
signOwnerRevocation: z.ZodOptional<z.ZodType<(cid: string) => Promise<string>, z.ZodTypeDef, (cid: string) => Promise<string>>>;
|
|
1495
1497
|
/** Optional custom fetch implementation */
|
|
1496
1498
|
fetch: z.ZodOptional<z.ZodEffects<z.ZodUnknown, FetchFunction, unknown>>;
|
|
1497
1499
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1500,13 +1502,15 @@ declare const DelegationManagerConfigSchema: z.ZodObject<{
|
|
|
1500
1502
|
invoke: InvokeFunction;
|
|
1501
1503
|
invokeAny?: InvokeAnyFunction | undefined;
|
|
1502
1504
|
accountSpaceId?: string | undefined;
|
|
1505
|
+
signOwnerRevocation?: ((cid: string) => Promise<string>) | undefined;
|
|
1503
1506
|
fetch?: FetchFunction | undefined;
|
|
1504
1507
|
}, {
|
|
1505
1508
|
hosts: string[];
|
|
1506
|
-
session?: unknown;
|
|
1507
1509
|
invokeAny?: unknown;
|
|
1510
|
+
session?: unknown;
|
|
1508
1511
|
accountSpaceId?: string | undefined;
|
|
1509
1512
|
invoke?: unknown;
|
|
1513
|
+
signOwnerRevocation?: ((cid: string) => Promise<string>) | undefined;
|
|
1510
1514
|
fetch?: unknown;
|
|
1511
1515
|
}>;
|
|
1512
1516
|
type DelegationManagerConfig = z.infer<typeof DelegationManagerConfigSchema>;
|
|
@@ -1543,13 +1547,13 @@ declare const DelegationApiResponseSchema: z.ZodObject<{
|
|
|
1543
1547
|
/** CID of the created delegation */
|
|
1544
1548
|
cid: z.ZodOptional<z.ZodString>;
|
|
1545
1549
|
}, "strip", z.ZodTypeAny, {
|
|
1546
|
-
siwe: string;
|
|
1547
1550
|
signature: string;
|
|
1551
|
+
siwe: string;
|
|
1548
1552
|
version: number;
|
|
1549
1553
|
cid?: string | undefined;
|
|
1550
1554
|
}, {
|
|
1551
|
-
siwe: string;
|
|
1552
1555
|
signature: string;
|
|
1556
|
+
siwe: string;
|
|
1553
1557
|
version: number;
|
|
1554
1558
|
cid?: string | undefined;
|
|
1555
1559
|
}>;
|
|
@@ -1633,8 +1637,8 @@ declare const CreateDelegationWasmParamsSchema: z.ZodObject<{
|
|
|
1633
1637
|
/** Optional not-before time in seconds since Unix epoch */
|
|
1634
1638
|
notBeforeSecs: z.ZodOptional<z.ZodNumber>;
|
|
1635
1639
|
}, "strip", z.ZodTypeAny, {
|
|
1636
|
-
session: ServiceSession;
|
|
1637
1640
|
spaceId: string;
|
|
1641
|
+
session: ServiceSession;
|
|
1638
1642
|
delegateDID: string;
|
|
1639
1643
|
abilities: Record<string, Record<string, string[]>>;
|
|
1640
1644
|
expirationSecs: number;
|
|
@@ -1694,6 +1698,8 @@ declare const CreateDelegationWasmResultSchema: z.ZodObject<{
|
|
|
1694
1698
|
caveats?: Record<string, unknown>[] | undefined;
|
|
1695
1699
|
}>, "many">;
|
|
1696
1700
|
}, "strip", z.ZodTypeAny, {
|
|
1701
|
+
delegation: string;
|
|
1702
|
+
cid: string;
|
|
1697
1703
|
resources: {
|
|
1698
1704
|
path: string;
|
|
1699
1705
|
space: string;
|
|
@@ -1701,11 +1707,11 @@ declare const CreateDelegationWasmResultSchema: z.ZodObject<{
|
|
|
1701
1707
|
service: string;
|
|
1702
1708
|
caveats?: Record<string, unknown>[] | undefined;
|
|
1703
1709
|
}[];
|
|
1704
|
-
delegation: string;
|
|
1705
1710
|
expiry: Date;
|
|
1706
|
-
cid: string;
|
|
1707
1711
|
delegateDID: string;
|
|
1708
1712
|
}, {
|
|
1713
|
+
delegation: string;
|
|
1714
|
+
cid: string;
|
|
1709
1715
|
resources: {
|
|
1710
1716
|
path: string;
|
|
1711
1717
|
space: string;
|
|
@@ -1713,9 +1719,7 @@ declare const CreateDelegationWasmResultSchema: z.ZodObject<{
|
|
|
1713
1719
|
service: string;
|
|
1714
1720
|
caveats?: Record<string, unknown>[] | undefined;
|
|
1715
1721
|
}[];
|
|
1716
|
-
delegation: string;
|
|
1717
1722
|
expiry: Date;
|
|
1718
|
-
cid: string;
|
|
1719
1723
|
delegateDID: string;
|
|
1720
1724
|
}>;
|
|
1721
1725
|
type CreateDelegationWasmResult = z.infer<typeof CreateDelegationWasmResultSchema>;
|
|
@@ -1761,6 +1765,7 @@ declare class DelegationManager {
|
|
|
1761
1765
|
private session;
|
|
1762
1766
|
private invoke;
|
|
1763
1767
|
private invokeAny?;
|
|
1768
|
+
private signOwnerRevocation?;
|
|
1764
1769
|
private fetchFn;
|
|
1765
1770
|
private accountSpaceId?;
|
|
1766
1771
|
/**
|
|
@@ -1810,6 +1815,9 @@ declare class DelegationManager {
|
|
|
1810
1815
|
* Once revoked, the delegation can no longer be used to access resources.
|
|
1811
1816
|
* This also invalidates any sub-delegations derived from this delegation.
|
|
1812
1817
|
*
|
|
1818
|
+
* Explicit target-space or authority options keep the delegated session
|
|
1819
|
+
* signing path even when an owner signer is available.
|
|
1820
|
+
*
|
|
1813
1821
|
* @param cid - The CID of the delegation to revoke
|
|
1814
1822
|
* @returns Result indicating success or an error
|
|
1815
1823
|
*
|
|
@@ -3818,7 +3826,7 @@ declare const ShareRecipientPolicySchema: z.ZodObject<{
|
|
|
3818
3826
|
expiresAt: z.ZodDate;
|
|
3819
3827
|
}, "strict", z.ZodTypeAny, {
|
|
3820
3828
|
expiresAt: Date;
|
|
3821
|
-
|
|
3829
|
+
spaceId: string;
|
|
3822
3830
|
resource: {
|
|
3823
3831
|
path: string;
|
|
3824
3832
|
kind: "exact";
|
|
@@ -3826,7 +3834,7 @@ declare const ShareRecipientPolicySchema: z.ZodObject<{
|
|
|
3826
3834
|
path: string;
|
|
3827
3835
|
kind: "prefix";
|
|
3828
3836
|
};
|
|
3829
|
-
|
|
3837
|
+
actions: ("list" | "read" | "edit")[];
|
|
3830
3838
|
recipientMatcher: {
|
|
3831
3839
|
value: string;
|
|
3832
3840
|
kind: "exactEmail";
|
|
@@ -3841,7 +3849,7 @@ declare const ShareRecipientPolicySchema: z.ZodObject<{
|
|
|
3841
3849
|
};
|
|
3842
3850
|
}, {
|
|
3843
3851
|
expiresAt: Date;
|
|
3844
|
-
|
|
3852
|
+
spaceId: string;
|
|
3845
3853
|
resource: {
|
|
3846
3854
|
path: string;
|
|
3847
3855
|
kind: "exact";
|
|
@@ -3849,7 +3857,7 @@ declare const ShareRecipientPolicySchema: z.ZodObject<{
|
|
|
3849
3857
|
path: string;
|
|
3850
3858
|
kind: "prefix";
|
|
3851
3859
|
};
|
|
3852
|
-
|
|
3860
|
+
actions: ("list" | "read" | "edit")[];
|
|
3853
3861
|
recipientMatcher: {
|
|
3854
3862
|
value: string;
|
|
3855
3863
|
kind: "exactEmail";
|
|
@@ -3929,14 +3937,14 @@ declare const ShareAddressedDelegationRequestV2Schema: z.ZodObject<{
|
|
|
3929
3937
|
path: z.ZodString;
|
|
3930
3938
|
}, "strict", z.ZodTypeAny, {
|
|
3931
3939
|
path: string;
|
|
3940
|
+
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
3932
3941
|
space: string;
|
|
3933
3942
|
kind: "kv";
|
|
3934
|
-
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
3935
3943
|
}, {
|
|
3936
3944
|
path: string;
|
|
3945
|
+
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
3937
3946
|
space: string;
|
|
3938
3947
|
kind: "kv";
|
|
3939
|
-
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
3940
3948
|
}>, z.ZodObject<{
|
|
3941
3949
|
kind: z.ZodLiteral<"sql">;
|
|
3942
3950
|
action: z.ZodLiteral<"tinycloud.sql/read">;
|
|
@@ -3948,25 +3956,25 @@ declare const ShareAddressedDelegationRequestV2Schema: z.ZodObject<{
|
|
|
3948
3956
|
argumentsDigest: z.ZodString;
|
|
3949
3957
|
}, "strict", z.ZodTypeAny, {
|
|
3950
3958
|
path: string;
|
|
3959
|
+
action: "tinycloud.sql/read";
|
|
3951
3960
|
statement: string;
|
|
3952
3961
|
space: string;
|
|
3953
3962
|
kind: "sql";
|
|
3954
|
-
action: "tinycloud.sql/read";
|
|
3955
3963
|
database: string;
|
|
3956
3964
|
arguments: Record<string, number>;
|
|
3957
3965
|
argumentsDigest: string;
|
|
3958
3966
|
}, {
|
|
3959
3967
|
path: string;
|
|
3968
|
+
action: "tinycloud.sql/read";
|
|
3960
3969
|
statement: string;
|
|
3961
3970
|
space: string;
|
|
3962
3971
|
kind: "sql";
|
|
3963
|
-
action: "tinycloud.sql/read";
|
|
3964
3972
|
database: string;
|
|
3965
3973
|
arguments: Record<string, number>;
|
|
3966
3974
|
argumentsDigest: string;
|
|
3967
3975
|
}>]>;
|
|
3968
3976
|
contentSourceDigest: z.ZodString;
|
|
3969
|
-
actions: z.ZodEffects<z.ZodArray<z.ZodEnum<["tinycloud.kv/get", "tinycloud.kv/metadata", "tinycloud.kv/list", "tinycloud.kv/put", "tinycloud.sql/read"]>, "many">, ("tinycloud.
|
|
3977
|
+
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")[]>;
|
|
3970
3978
|
resource: z.ZodObject<{
|
|
3971
3979
|
kind: z.ZodEnum<["exact", "prefix"]>;
|
|
3972
3980
|
value: z.ZodString;
|
|
@@ -3980,27 +3988,27 @@ declare const ShareAddressedDelegationRequestV2Schema: z.ZodObject<{
|
|
|
3980
3988
|
expiresAt: z.ZodString;
|
|
3981
3989
|
requestBodyDigest: z.ZodString;
|
|
3982
3990
|
}, "strict", z.ZodTypeAny, {
|
|
3983
|
-
nonce: string;
|
|
3984
|
-
jti: string;
|
|
3985
3991
|
expiresAt: string;
|
|
3986
|
-
|
|
3987
|
-
actions: ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[];
|
|
3992
|
+
nonce: string;
|
|
3988
3993
|
resource: {
|
|
3989
3994
|
value: string;
|
|
3990
3995
|
kind: "exact" | "prefix";
|
|
3991
3996
|
};
|
|
3997
|
+
jti: string;
|
|
3998
|
+
version: 2;
|
|
3999
|
+
actions: ("tinycloud.sql/read" | "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata")[];
|
|
3992
4000
|
nodeAudience: string;
|
|
3993
4001
|
contentSource: {
|
|
3994
4002
|
path: string;
|
|
4003
|
+
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
3995
4004
|
space: string;
|
|
3996
4005
|
kind: "kv";
|
|
3997
|
-
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
3998
4006
|
} | {
|
|
3999
4007
|
path: string;
|
|
4008
|
+
action: "tinycloud.sql/read";
|
|
4000
4009
|
statement: string;
|
|
4001
4010
|
space: string;
|
|
4002
4011
|
kind: "sql";
|
|
4003
|
-
action: "tinycloud.sql/read";
|
|
4004
4012
|
database: string;
|
|
4005
4013
|
arguments: Record<string, number>;
|
|
4006
4014
|
argumentsDigest: string;
|
|
@@ -4025,27 +4033,27 @@ declare const ShareAddressedDelegationRequestV2Schema: z.ZodObject<{
|
|
|
4025
4033
|
authorityMaterialDigest: string;
|
|
4026
4034
|
requestBodyDigest: string;
|
|
4027
4035
|
}, {
|
|
4028
|
-
nonce: string;
|
|
4029
|
-
jti: string;
|
|
4030
4036
|
expiresAt: string;
|
|
4031
|
-
|
|
4032
|
-
actions: ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[];
|
|
4037
|
+
nonce: string;
|
|
4033
4038
|
resource: {
|
|
4034
4039
|
value: string;
|
|
4035
4040
|
kind: "exact" | "prefix";
|
|
4036
4041
|
};
|
|
4042
|
+
jti: string;
|
|
4043
|
+
version: 2;
|
|
4044
|
+
actions: ("tinycloud.sql/read" | "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata")[];
|
|
4037
4045
|
nodeAudience: string;
|
|
4038
4046
|
contentSource: {
|
|
4039
4047
|
path: string;
|
|
4048
|
+
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
4040
4049
|
space: string;
|
|
4041
4050
|
kind: "kv";
|
|
4042
|
-
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
4043
4051
|
} | {
|
|
4044
4052
|
path: string;
|
|
4053
|
+
action: "tinycloud.sql/read";
|
|
4045
4054
|
statement: string;
|
|
4046
4055
|
space: string;
|
|
4047
4056
|
kind: "sql";
|
|
4048
|
-
action: "tinycloud.sql/read";
|
|
4049
4057
|
database: string;
|
|
4050
4058
|
arguments: Record<string, number>;
|
|
4051
4059
|
argumentsDigest: string;
|
|
@@ -4118,14 +4126,14 @@ declare const ShareAddressedDelegationEnvelopeV2Schema: z.ZodObject<{
|
|
|
4118
4126
|
path: z.ZodString;
|
|
4119
4127
|
}, "strict", z.ZodTypeAny, {
|
|
4120
4128
|
path: string;
|
|
4129
|
+
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
4121
4130
|
space: string;
|
|
4122
4131
|
kind: "kv";
|
|
4123
|
-
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
4124
4132
|
}, {
|
|
4125
4133
|
path: string;
|
|
4134
|
+
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
4126
4135
|
space: string;
|
|
4127
4136
|
kind: "kv";
|
|
4128
|
-
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
4129
4137
|
}>, z.ZodObject<{
|
|
4130
4138
|
kind: z.ZodLiteral<"sql">;
|
|
4131
4139
|
action: z.ZodLiteral<"tinycloud.sql/read">;
|
|
@@ -4137,25 +4145,25 @@ declare const ShareAddressedDelegationEnvelopeV2Schema: z.ZodObject<{
|
|
|
4137
4145
|
argumentsDigest: z.ZodString;
|
|
4138
4146
|
}, "strict", z.ZodTypeAny, {
|
|
4139
4147
|
path: string;
|
|
4148
|
+
action: "tinycloud.sql/read";
|
|
4140
4149
|
statement: string;
|
|
4141
4150
|
space: string;
|
|
4142
4151
|
kind: "sql";
|
|
4143
|
-
action: "tinycloud.sql/read";
|
|
4144
4152
|
database: string;
|
|
4145
4153
|
arguments: Record<string, number>;
|
|
4146
4154
|
argumentsDigest: string;
|
|
4147
4155
|
}, {
|
|
4148
4156
|
path: string;
|
|
4157
|
+
action: "tinycloud.sql/read";
|
|
4149
4158
|
statement: string;
|
|
4150
4159
|
space: string;
|
|
4151
4160
|
kind: "sql";
|
|
4152
|
-
action: "tinycloud.sql/read";
|
|
4153
4161
|
database: string;
|
|
4154
4162
|
arguments: Record<string, number>;
|
|
4155
4163
|
argumentsDigest: string;
|
|
4156
4164
|
}>]>;
|
|
4157
4165
|
contentSourceDigest: z.ZodString;
|
|
4158
|
-
actions: z.ZodEffects<z.ZodArray<z.ZodEnum<["tinycloud.kv/get", "tinycloud.kv/metadata", "tinycloud.kv/list", "tinycloud.kv/put", "tinycloud.sql/read"]>, "many">, ("tinycloud.
|
|
4166
|
+
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")[]>;
|
|
4159
4167
|
resource: z.ZodObject<{
|
|
4160
4168
|
kind: z.ZodEnum<["exact", "prefix"]>;
|
|
4161
4169
|
value: z.ZodString;
|
|
@@ -4169,27 +4177,27 @@ declare const ShareAddressedDelegationEnvelopeV2Schema: z.ZodObject<{
|
|
|
4169
4177
|
expiresAt: z.ZodString;
|
|
4170
4178
|
requestBodyDigest: z.ZodString;
|
|
4171
4179
|
}, "strict", z.ZodTypeAny, {
|
|
4172
|
-
nonce: string;
|
|
4173
|
-
jti: string;
|
|
4174
4180
|
expiresAt: string;
|
|
4175
|
-
|
|
4176
|
-
actions: ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[];
|
|
4181
|
+
nonce: string;
|
|
4177
4182
|
resource: {
|
|
4178
4183
|
value: string;
|
|
4179
4184
|
kind: "exact" | "prefix";
|
|
4180
4185
|
};
|
|
4186
|
+
jti: string;
|
|
4187
|
+
version: 2;
|
|
4188
|
+
actions: ("tinycloud.sql/read" | "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata")[];
|
|
4181
4189
|
nodeAudience: string;
|
|
4182
4190
|
contentSource: {
|
|
4183
4191
|
path: string;
|
|
4192
|
+
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
4184
4193
|
space: string;
|
|
4185
4194
|
kind: "kv";
|
|
4186
|
-
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
4187
4195
|
} | {
|
|
4188
4196
|
path: string;
|
|
4197
|
+
action: "tinycloud.sql/read";
|
|
4189
4198
|
statement: string;
|
|
4190
4199
|
space: string;
|
|
4191
4200
|
kind: "sql";
|
|
4192
|
-
action: "tinycloud.sql/read";
|
|
4193
4201
|
database: string;
|
|
4194
4202
|
arguments: Record<string, number>;
|
|
4195
4203
|
argumentsDigest: string;
|
|
@@ -4214,27 +4222,27 @@ declare const ShareAddressedDelegationEnvelopeV2Schema: z.ZodObject<{
|
|
|
4214
4222
|
authorityMaterialDigest: string;
|
|
4215
4223
|
requestBodyDigest: string;
|
|
4216
4224
|
}, {
|
|
4217
|
-
nonce: string;
|
|
4218
|
-
jti: string;
|
|
4219
4225
|
expiresAt: string;
|
|
4220
|
-
|
|
4221
|
-
actions: ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[];
|
|
4226
|
+
nonce: string;
|
|
4222
4227
|
resource: {
|
|
4223
4228
|
value: string;
|
|
4224
4229
|
kind: "exact" | "prefix";
|
|
4225
4230
|
};
|
|
4231
|
+
jti: string;
|
|
4232
|
+
version: 2;
|
|
4233
|
+
actions: ("tinycloud.sql/read" | "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata")[];
|
|
4226
4234
|
nodeAudience: string;
|
|
4227
4235
|
contentSource: {
|
|
4228
4236
|
path: string;
|
|
4237
|
+
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
4229
4238
|
space: string;
|
|
4230
4239
|
kind: "kv";
|
|
4231
|
-
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
4232
4240
|
} | {
|
|
4233
4241
|
path: string;
|
|
4242
|
+
action: "tinycloud.sql/read";
|
|
4234
4243
|
statement: string;
|
|
4235
4244
|
space: string;
|
|
4236
4245
|
kind: "sql";
|
|
4237
|
-
action: "tinycloud.sql/read";
|
|
4238
4246
|
database: string;
|
|
4239
4247
|
arguments: Record<string, number>;
|
|
4240
4248
|
argumentsDigest: string;
|
|
@@ -4274,27 +4282,27 @@ declare const ShareAddressedDelegationEnvelopeV2Schema: z.ZodObject<{
|
|
|
4274
4282
|
}>;
|
|
4275
4283
|
}, "strict", z.ZodTypeAny, {
|
|
4276
4284
|
request: {
|
|
4277
|
-
nonce: string;
|
|
4278
|
-
jti: string;
|
|
4279
4285
|
expiresAt: string;
|
|
4280
|
-
|
|
4281
|
-
actions: ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[];
|
|
4286
|
+
nonce: string;
|
|
4282
4287
|
resource: {
|
|
4283
4288
|
value: string;
|
|
4284
4289
|
kind: "exact" | "prefix";
|
|
4285
4290
|
};
|
|
4291
|
+
jti: string;
|
|
4292
|
+
version: 2;
|
|
4293
|
+
actions: ("tinycloud.sql/read" | "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata")[];
|
|
4286
4294
|
nodeAudience: string;
|
|
4287
4295
|
contentSource: {
|
|
4288
4296
|
path: string;
|
|
4297
|
+
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
4289
4298
|
space: string;
|
|
4290
4299
|
kind: "kv";
|
|
4291
|
-
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
4292
4300
|
} | {
|
|
4293
4301
|
path: string;
|
|
4302
|
+
action: "tinycloud.sql/read";
|
|
4294
4303
|
statement: string;
|
|
4295
4304
|
space: string;
|
|
4296
4305
|
kind: "sql";
|
|
4297
|
-
action: "tinycloud.sql/read";
|
|
4298
4306
|
database: string;
|
|
4299
4307
|
arguments: Record<string, number>;
|
|
4300
4308
|
argumentsDigest: string;
|
|
@@ -4326,27 +4334,27 @@ declare const ShareAddressedDelegationEnvelopeV2Schema: z.ZodObject<{
|
|
|
4326
4334
|
};
|
|
4327
4335
|
}, {
|
|
4328
4336
|
request: {
|
|
4329
|
-
nonce: string;
|
|
4330
|
-
jti: string;
|
|
4331
4337
|
expiresAt: string;
|
|
4332
|
-
|
|
4333
|
-
actions: ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[];
|
|
4338
|
+
nonce: string;
|
|
4334
4339
|
resource: {
|
|
4335
4340
|
value: string;
|
|
4336
4341
|
kind: "exact" | "prefix";
|
|
4337
4342
|
};
|
|
4343
|
+
jti: string;
|
|
4344
|
+
version: 2;
|
|
4345
|
+
actions: ("tinycloud.sql/read" | "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata")[];
|
|
4338
4346
|
nodeAudience: string;
|
|
4339
4347
|
contentSource: {
|
|
4340
4348
|
path: string;
|
|
4349
|
+
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
4341
4350
|
space: string;
|
|
4342
4351
|
kind: "kv";
|
|
4343
|
-
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
4344
4352
|
} | {
|
|
4345
4353
|
path: string;
|
|
4354
|
+
action: "tinycloud.sql/read";
|
|
4346
4355
|
statement: string;
|
|
4347
4356
|
space: string;
|
|
4348
4357
|
kind: "sql";
|
|
4349
|
-
action: "tinycloud.sql/read";
|
|
4350
4358
|
database: string;
|
|
4351
4359
|
arguments: Record<string, number>;
|
|
4352
4360
|
argumentsDigest: string;
|
|
@@ -4390,7 +4398,7 @@ declare const ShareAddressedDelegationResponseV2Schema: z.ZodObject<{
|
|
|
4390
4398
|
delegationDigest: z.ZodString;
|
|
4391
4399
|
authorityMaterialHandle: z.ZodString;
|
|
4392
4400
|
authorityMaterialDigest: z.ZodString;
|
|
4393
|
-
actions: z.ZodEffects<z.ZodArray<z.ZodEnum<["tinycloud.kv/get", "tinycloud.kv/metadata", "tinycloud.kv/list", "tinycloud.kv/put", "tinycloud.sql/read"]>, "many">, ("tinycloud.
|
|
4401
|
+
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")[]>;
|
|
4394
4402
|
resource: z.ZodObject<{
|
|
4395
4403
|
kind: z.ZodEnum<["exact", "prefix"]>;
|
|
4396
4404
|
value: z.ZodString;
|
|
@@ -4417,20 +4425,20 @@ declare const ShareAddressedDelegationResponseV2Schema: z.ZodObject<{
|
|
|
4417
4425
|
}>;
|
|
4418
4426
|
}, "strict", z.ZodTypeAny, {
|
|
4419
4427
|
type: "TinyCloudShareAddressedDelegation";
|
|
4428
|
+
expiresAt: string;
|
|
4420
4429
|
nonce: string;
|
|
4430
|
+
resource: {
|
|
4431
|
+
value: string;
|
|
4432
|
+
kind: "exact" | "prefix";
|
|
4433
|
+
};
|
|
4421
4434
|
proof: {
|
|
4422
4435
|
signature: string;
|
|
4423
4436
|
kid: string;
|
|
4424
4437
|
alg: "EdDSA";
|
|
4425
4438
|
};
|
|
4426
4439
|
jti: string;
|
|
4427
|
-
expiresAt: string;
|
|
4428
4440
|
version: 2;
|
|
4429
|
-
actions: ("tinycloud.
|
|
4430
|
-
resource: {
|
|
4431
|
-
value: string;
|
|
4432
|
-
kind: "exact" | "prefix";
|
|
4433
|
-
};
|
|
4441
|
+
actions: ("tinycloud.sql/read" | "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata")[];
|
|
4434
4442
|
policyCid: string;
|
|
4435
4443
|
policyBytes: string;
|
|
4436
4444
|
delegationCid: string;
|
|
@@ -4441,20 +4449,20 @@ declare const ShareAddressedDelegationResponseV2Schema: z.ZodObject<{
|
|
|
4441
4449
|
delegationDigest: string;
|
|
4442
4450
|
}, {
|
|
4443
4451
|
type: "TinyCloudShareAddressedDelegation";
|
|
4452
|
+
expiresAt: string;
|
|
4444
4453
|
nonce: string;
|
|
4454
|
+
resource: {
|
|
4455
|
+
value: string;
|
|
4456
|
+
kind: "exact" | "prefix";
|
|
4457
|
+
};
|
|
4445
4458
|
proof: {
|
|
4446
4459
|
signature: string;
|
|
4447
4460
|
kid: string;
|
|
4448
4461
|
alg: "EdDSA";
|
|
4449
4462
|
};
|
|
4450
4463
|
jti: string;
|
|
4451
|
-
expiresAt: string;
|
|
4452
4464
|
version: 2;
|
|
4453
|
-
actions: ("tinycloud.
|
|
4454
|
-
resource: {
|
|
4455
|
-
value: string;
|
|
4456
|
-
kind: "exact" | "prefix";
|
|
4457
|
-
};
|
|
4465
|
+
actions: ("tinycloud.sql/read" | "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata")[];
|
|
4458
4466
|
policyCid: string;
|
|
4459
4467
|
policyBytes: string;
|
|
4460
4468
|
delegationCid: string;
|
|
@@ -4473,18 +4481,18 @@ declare const ShareNativeResponseSchema: z.ZodDiscriminatedUnion<"action", [z.Zo
|
|
|
4473
4481
|
resource: z.ZodString;
|
|
4474
4482
|
}, "strict", z.ZodTypeAny, {
|
|
4475
4483
|
type: "TinyCloudShareInvokeResponse";
|
|
4484
|
+
resource: string;
|
|
4485
|
+
action: "tinycloud.kv/metadata";
|
|
4476
4486
|
version: 2;
|
|
4477
4487
|
etag: string | null;
|
|
4478
4488
|
metadata: Record<string, string>;
|
|
4479
|
-
resource: string;
|
|
4480
|
-
action: "tinycloud.kv/metadata";
|
|
4481
4489
|
}, {
|
|
4482
4490
|
type: "TinyCloudShareInvokeResponse";
|
|
4491
|
+
resource: string;
|
|
4492
|
+
action: "tinycloud.kv/metadata";
|
|
4483
4493
|
version: 2;
|
|
4484
4494
|
etag: string | null;
|
|
4485
4495
|
metadata: Record<string, string>;
|
|
4486
|
-
resource: string;
|
|
4487
|
-
action: "tinycloud.kv/metadata";
|
|
4488
4496
|
}>, z.ZodObject<{
|
|
4489
4497
|
action: z.ZodLiteral<"tinycloud.kv/get">;
|
|
4490
4498
|
mediaType: z.ZodString;
|
|
@@ -4496,19 +4504,19 @@ declare const ShareNativeResponseSchema: z.ZodDiscriminatedUnion<"action", [z.Zo
|
|
|
4496
4504
|
resource: z.ZodString;
|
|
4497
4505
|
}, "strict", z.ZodTypeAny, {
|
|
4498
4506
|
type: "TinyCloudShareInvokeResponse";
|
|
4499
|
-
version: 2;
|
|
4500
|
-
etag: string | null;
|
|
4501
4507
|
resource: string;
|
|
4502
4508
|
action: "tinycloud.kv/get";
|
|
4509
|
+
version: 2;
|
|
4510
|
+
etag: string | null;
|
|
4503
4511
|
content: string;
|
|
4504
4512
|
mediaType: string;
|
|
4505
4513
|
bodyDigest: string;
|
|
4506
4514
|
}, {
|
|
4507
4515
|
type: "TinyCloudShareInvokeResponse";
|
|
4508
|
-
version: 2;
|
|
4509
|
-
etag: string | null;
|
|
4510
4516
|
resource: string;
|
|
4511
4517
|
action: "tinycloud.kv/get";
|
|
4518
|
+
version: 2;
|
|
4519
|
+
etag: string | null;
|
|
4512
4520
|
content: string;
|
|
4513
4521
|
mediaType: string;
|
|
4514
4522
|
bodyDigest: string;
|
|
@@ -4529,24 +4537,24 @@ declare const ShareNativeResponseSchema: z.ZodDiscriminatedUnion<"action", [z.Zo
|
|
|
4529
4537
|
version: z.ZodLiteral<2>;
|
|
4530
4538
|
resource: z.ZodString;
|
|
4531
4539
|
}, "strict", z.ZodTypeAny, {
|
|
4532
|
-
type: "TinyCloudShareInvokeResponse";
|
|
4533
4540
|
entries: {
|
|
4534
4541
|
path: string;
|
|
4535
4542
|
kind: "folder" | "file";
|
|
4536
4543
|
}[];
|
|
4537
|
-
|
|
4544
|
+
type: "TinyCloudShareInvokeResponse";
|
|
4538
4545
|
resource: string;
|
|
4539
4546
|
action: "tinycloud.kv/list";
|
|
4547
|
+
version: 2;
|
|
4540
4548
|
nextCursor: string | null;
|
|
4541
4549
|
}, {
|
|
4542
|
-
type: "TinyCloudShareInvokeResponse";
|
|
4543
4550
|
entries: {
|
|
4544
4551
|
path: string;
|
|
4545
4552
|
kind: "folder" | "file";
|
|
4546
4553
|
}[];
|
|
4547
|
-
|
|
4554
|
+
type: "TinyCloudShareInvokeResponse";
|
|
4548
4555
|
resource: string;
|
|
4549
4556
|
action: "tinycloud.kv/list";
|
|
4557
|
+
version: 2;
|
|
4550
4558
|
nextCursor: string | null;
|
|
4551
4559
|
}>, z.ZodObject<{
|
|
4552
4560
|
action: z.ZodLiteral<"tinycloud.kv/put">;
|
|
@@ -4558,18 +4566,18 @@ declare const ShareNativeResponseSchema: z.ZodDiscriminatedUnion<"action", [z.Zo
|
|
|
4558
4566
|
resource: z.ZodString;
|
|
4559
4567
|
}, "strict", z.ZodTypeAny, {
|
|
4560
4568
|
type: "TinyCloudShareInvokeResponse";
|
|
4561
|
-
version: 2;
|
|
4562
|
-
etag: string;
|
|
4563
4569
|
resource: string;
|
|
4564
4570
|
action: "tinycloud.kv/put";
|
|
4571
|
+
version: 2;
|
|
4572
|
+
etag: string;
|
|
4565
4573
|
bodyDigest: string;
|
|
4566
4574
|
contentType: string;
|
|
4567
4575
|
}, {
|
|
4568
4576
|
type: "TinyCloudShareInvokeResponse";
|
|
4569
|
-
version: 2;
|
|
4570
|
-
etag: string;
|
|
4571
4577
|
resource: string;
|
|
4572
4578
|
action: "tinycloud.kv/put";
|
|
4579
|
+
version: 2;
|
|
4580
|
+
etag: string;
|
|
4573
4581
|
bodyDigest: string;
|
|
4574
4582
|
contentType: string;
|
|
4575
4583
|
}>]>;
|