@tinycloud/sdk-core 3.3.0-beta.7 → 3.3.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.
- package/dist/delegations/index.d.cts +29 -29
- package/dist/delegations/index.d.ts +29 -29
- package/dist/index.cjs +36 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +43 -15
- package/dist/index.d.ts +43 -15
- package/dist/index.js +36 -3
- 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-ZCBMchyn.d.cts → recipient-types.schema-CPDoAVh4.d.cts} +177 -177
- package/dist/{recipient-types.schema-ZCBMchyn.d.ts → recipient-types.schema-CPDoAVh4.d.ts} +177 -177
- package/package.json +1 -1
- package/dist/{credential-admission-CqXwBvDS.d.ts → credential-admission-7I_ymo-C.d.ts} +4 -4
- package/dist/{credential-admission-CaWVn8yO.d.cts → credential-admission-Cg1M9uyV.d.cts} +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
|
-
spaceId: string;
|
|
264
|
-
cid: string;
|
|
265
263
|
expiry: Date;
|
|
266
264
|
actions: string[];
|
|
265
|
+
spaceId: string;
|
|
266
|
+
cid: 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
|
-
spaceId: string;
|
|
278
|
-
cid: string;
|
|
279
277
|
expiry: Date;
|
|
280
278
|
actions: string[];
|
|
279
|
+
spaceId: string;
|
|
280
|
+
cid: 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;
|
|
302
301
|
active: boolean;
|
|
303
302
|
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;
|
|
309
308
|
active: boolean;
|
|
310
309
|
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;
|
|
316
315
|
active: boolean;
|
|
317
316
|
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;
|
|
323
322
|
active: boolean;
|
|
324
323
|
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
|
-
cid: string;
|
|
334
333
|
revoked: true;
|
|
335
|
-
}, {
|
|
336
334
|
cid: string;
|
|
335
|
+
}, {
|
|
337
336
|
revoked: true;
|
|
337
|
+
cid: string;
|
|
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[];
|
|
345
346
|
caveats: Record<string, unknown>[];
|
|
346
347
|
resource: string;
|
|
347
|
-
actions: string[];
|
|
348
348
|
}, {
|
|
349
|
+
actions: string[];
|
|
349
350
|
caveats: Record<string, unknown>[];
|
|
350
351
|
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[];
|
|
363
364
|
caveats: Record<string, unknown>[];
|
|
364
365
|
resource: string;
|
|
365
|
-
actions: string[];
|
|
366
366
|
}, {
|
|
367
|
+
actions: string[];
|
|
367
368
|
caveats: Record<string, unknown>[];
|
|
368
369
|
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;
|
|
384
381
|
notBefore: Date | null;
|
|
385
382
|
resources: {
|
|
383
|
+
actions: string[];
|
|
386
384
|
caveats: Record<string, unknown>[];
|
|
387
385
|
resource: string;
|
|
388
|
-
actions: string[];
|
|
389
386
|
}[];
|
|
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;
|
|
402
399
|
notBefore: string | null;
|
|
403
400
|
resources: {
|
|
401
|
+
actions: string[];
|
|
404
402
|
caveats: Record<string, unknown>[];
|
|
405
403
|
resource: string;
|
|
406
|
-
actions: string[];
|
|
407
404
|
}[];
|
|
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[];
|
|
428
429
|
caveats: Record<string, unknown>[];
|
|
429
430
|
resource: string;
|
|
430
|
-
actions: string[];
|
|
431
431
|
}, {
|
|
432
|
+
actions: string[];
|
|
432
433
|
caveats: Record<string, unknown>[];
|
|
433
434
|
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;
|
|
449
446
|
notBefore: Date | null;
|
|
450
447
|
resources: {
|
|
448
|
+
actions: string[];
|
|
451
449
|
caveats: Record<string, unknown>[];
|
|
452
450
|
resource: string;
|
|
453
|
-
actions: string[];
|
|
454
451
|
}[];
|
|
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;
|
|
467
464
|
notBefore: string | null;
|
|
468
465
|
resources: {
|
|
466
|
+
actions: string[];
|
|
469
467
|
caveats: Record<string, unknown>[];
|
|
470
468
|
resource: string;
|
|
471
|
-
actions: string[];
|
|
472
469
|
}[];
|
|
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;
|
|
489
486
|
notBefore: Date | null;
|
|
490
487
|
resources: {
|
|
488
|
+
actions: string[];
|
|
491
489
|
caveats: Record<string, unknown>[];
|
|
492
490
|
resource: string;
|
|
493
|
-
actions: string[];
|
|
494
491
|
}[];
|
|
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;
|
|
511
508
|
notBefore: string | null;
|
|
512
509
|
resources: {
|
|
510
|
+
actions: string[];
|
|
513
511
|
caveats: Record<string, unknown>[];
|
|
514
512
|
resource: string;
|
|
515
|
-
actions: string[];
|
|
516
513
|
}[];
|
|
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
|
-
spaceId: string;
|
|
685
|
-
cid: string;
|
|
686
684
|
expiry: Date;
|
|
687
685
|
actions: string[];
|
|
686
|
+
spaceId: string;
|
|
687
|
+
cid: 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
|
-
spaceId: string;
|
|
699
|
-
cid: string;
|
|
700
698
|
expiry: Date;
|
|
701
699
|
actions: string[];
|
|
700
|
+
spaceId: string;
|
|
701
|
+
cid: 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
|
-
spaceId: string;
|
|
736
|
-
cid: string;
|
|
737
735
|
expiry: Date;
|
|
738
736
|
actions: string[];
|
|
737
|
+
spaceId: string;
|
|
738
|
+
cid: 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
|
-
spaceId: string;
|
|
774
|
-
cid: string;
|
|
775
773
|
expiry: Date;
|
|
776
774
|
actions: string[];
|
|
775
|
+
spaceId: string;
|
|
776
|
+
cid: 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
|
-
spaceId: string;
|
|
822
|
-
cid: string;
|
|
823
821
|
actions: string[];
|
|
824
822
|
createdAt: Date;
|
|
823
|
+
spaceId: string;
|
|
824
|
+
cid: string;
|
|
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
|
-
spaceId: string;
|
|
835
|
-
cid: string;
|
|
836
834
|
actions: string[];
|
|
837
835
|
createdAt: Date;
|
|
836
|
+
spaceId: string;
|
|
837
|
+
cid: string;
|
|
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
|
-
spaceId: string;
|
|
912
|
-
cid: string;
|
|
913
911
|
expiry: Date;
|
|
914
912
|
actions: string[];
|
|
913
|
+
spaceId: string;
|
|
914
|
+
cid: 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
|
-
spaceId: string;
|
|
926
|
-
cid: string;
|
|
927
925
|
expiry: Date;
|
|
928
926
|
actions: string[];
|
|
927
|
+
spaceId: string;
|
|
928
|
+
cid: 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
|
-
spaceId: string;
|
|
974
|
-
cid: string;
|
|
975
973
|
expiry: Date;
|
|
976
974
|
actions: string[];
|
|
975
|
+
spaceId: string;
|
|
976
|
+
cid: 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
|
-
spaceId: string;
|
|
988
|
-
cid: string;
|
|
989
987
|
expiry: Date;
|
|
990
988
|
actions: string[];
|
|
989
|
+
spaceId: string;
|
|
990
|
+
cid: 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
|
-
spaceId: string;
|
|
1031
|
-
cid: string;
|
|
1032
1030
|
expiry: Date;
|
|
1033
1031
|
actions: string[];
|
|
1032
|
+
spaceId: string;
|
|
1033
|
+
cid: 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
|
-
spaceId: string;
|
|
1045
|
-
cid: string;
|
|
1046
1044
|
expiry: Date;
|
|
1047
1045
|
actions: string[];
|
|
1046
|
+
spaceId: string;
|
|
1047
|
+
cid: 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
|
-
spaceId: string;
|
|
1088
|
-
cid: string;
|
|
1089
1087
|
expiry: Date;
|
|
1090
1088
|
actions: string[];
|
|
1089
|
+
spaceId: string;
|
|
1090
|
+
cid: 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
|
-
spaceId: string;
|
|
1102
|
-
cid: string;
|
|
1103
1101
|
expiry: Date;
|
|
1104
1102
|
actions: string[];
|
|
1103
|
+
spaceId: string;
|
|
1104
|
+
cid: 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
|
-
spaceId: string;
|
|
1118
|
-
cid: string;
|
|
1119
1117
|
expiry: Date;
|
|
1120
1118
|
actions: string[];
|
|
1119
|
+
spaceId: string;
|
|
1120
|
+
cid: 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
|
-
spaceId: string;
|
|
1133
|
-
cid: string;
|
|
1134
1132
|
expiry: Date;
|
|
1135
1133
|
actions: string[];
|
|
1134
|
+
spaceId: string;
|
|
1135
|
+
cid: 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
|
-
spaceId: string;
|
|
1148
|
-
cid: string;
|
|
1149
1147
|
expiry: Date;
|
|
1150
1148
|
actions: string[];
|
|
1149
|
+
spaceId: string;
|
|
1150
|
+
cid: 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
|
-
spaceId: string;
|
|
1164
|
-
cid: string;
|
|
1165
1163
|
expiry: Date;
|
|
1166
1164
|
actions: string[];
|
|
1165
|
+
spaceId: string;
|
|
1166
|
+
cid: 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
|
-
spaceId: string;
|
|
1179
|
-
cid: string;
|
|
1180
1178
|
expiry: Date;
|
|
1181
1179
|
actions: string[];
|
|
1180
|
+
spaceId: string;
|
|
1181
|
+
cid: 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
|
-
spaceId: string;
|
|
1194
|
-
cid: string;
|
|
1195
1193
|
expiry: Date;
|
|
1196
1194
|
actions: string[];
|
|
1195
|
+
spaceId: string;
|
|
1196
|
+
cid: 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
|
-
spaceId: string;
|
|
1338
|
-
cid: string;
|
|
1339
1337
|
expiry: Date;
|
|
1340
1338
|
actions: string[];
|
|
1339
|
+
spaceId: string;
|
|
1340
|
+
cid: 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
|
-
spaceId: string;
|
|
1352
|
-
cid: string;
|
|
1353
1351
|
expiry: Date;
|
|
1354
1352
|
actions: string[];
|
|
1353
|
+
spaceId: string;
|
|
1354
|
+
cid: 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
|
-
spaceId: string;
|
|
1375
|
-
cid: string;
|
|
1376
1374
|
expiry: Date;
|
|
1377
1375
|
actions: string[];
|
|
1376
|
+
spaceId: string;
|
|
1377
|
+
cid: 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
|
-
spaceId: string;
|
|
1396
|
-
cid: string;
|
|
1397
1395
|
expiry: Date;
|
|
1398
1396
|
actions: string[];
|
|
1397
|
+
spaceId: string;
|
|
1398
|
+
cid: 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
|
-
schema?: "base64" | "compact" | "ipfs" | undefined;
|
|
1467
1466
|
description?: string | undefined;
|
|
1467
|
+
schema?: "base64" | "compact" | "ipfs" | undefined;
|
|
1468
1468
|
expiry?: Date | undefined;
|
|
1469
1469
|
actions?: string[] | undefined;
|
|
1470
1470
|
baseUrl?: string | undefined;
|
|
1471
1471
|
}, {
|
|
1472
1472
|
path: string;
|
|
1473
|
-
schema?: "base64" | "compact" | "ipfs" | undefined;
|
|
1474
1473
|
description?: string | undefined;
|
|
1474
|
+
schema?: "base64" | "compact" | "ipfs" | undefined;
|
|
1475
1475
|
expiry?: Date | undefined;
|
|
1476
1476
|
actions?: string[] | undefined;
|
|
1477
1477
|
baseUrl?: string | undefined;
|
|
@@ -1506,8 +1506,8 @@ declare const DelegationManagerConfigSchema: z.ZodObject<{
|
|
|
1506
1506
|
fetch?: FetchFunction | undefined;
|
|
1507
1507
|
}, {
|
|
1508
1508
|
hosts: string[];
|
|
1509
|
-
invokeAny?: unknown;
|
|
1510
1509
|
session?: unknown;
|
|
1510
|
+
invokeAny?: unknown;
|
|
1511
1511
|
accountSpaceId?: string | undefined;
|
|
1512
1512
|
invoke?: unknown;
|
|
1513
1513
|
signOwnerRevocation?: ((cid: string) => Promise<string>) | undefined;
|
|
@@ -1547,13 +1547,13 @@ declare const DelegationApiResponseSchema: z.ZodObject<{
|
|
|
1547
1547
|
/** CID of the created delegation */
|
|
1548
1548
|
cid: z.ZodOptional<z.ZodString>;
|
|
1549
1549
|
}, "strip", z.ZodTypeAny, {
|
|
1550
|
-
signature: string;
|
|
1551
1550
|
siwe: string;
|
|
1551
|
+
signature: string;
|
|
1552
1552
|
version: number;
|
|
1553
1553
|
cid?: string | undefined;
|
|
1554
1554
|
}, {
|
|
1555
|
-
signature: string;
|
|
1556
1555
|
siwe: string;
|
|
1556
|
+
signature: string;
|
|
1557
1557
|
version: number;
|
|
1558
1558
|
cid?: string | undefined;
|
|
1559
1559
|
}>;
|
|
@@ -1637,8 +1637,8 @@ declare const CreateDelegationWasmParamsSchema: z.ZodObject<{
|
|
|
1637
1637
|
/** Optional not-before time in seconds since Unix epoch */
|
|
1638
1638
|
notBeforeSecs: z.ZodOptional<z.ZodNumber>;
|
|
1639
1639
|
}, "strip", z.ZodTypeAny, {
|
|
1640
|
-
spaceId: string;
|
|
1641
1640
|
session: ServiceSession;
|
|
1641
|
+
spaceId: string;
|
|
1642
1642
|
delegateDID: string;
|
|
1643
1643
|
abilities: Record<string, Record<string, string[]>>;
|
|
1644
1644
|
expirationSecs: number;
|
|
@@ -1698,8 +1698,6 @@ declare const CreateDelegationWasmResultSchema: z.ZodObject<{
|
|
|
1698
1698
|
caveats?: Record<string, unknown>[] | undefined;
|
|
1699
1699
|
}>, "many">;
|
|
1700
1700
|
}, "strip", z.ZodTypeAny, {
|
|
1701
|
-
delegation: string;
|
|
1702
|
-
cid: string;
|
|
1703
1701
|
resources: {
|
|
1704
1702
|
path: string;
|
|
1705
1703
|
space: string;
|
|
@@ -1707,11 +1705,11 @@ declare const CreateDelegationWasmResultSchema: z.ZodObject<{
|
|
|
1707
1705
|
service: string;
|
|
1708
1706
|
caveats?: Record<string, unknown>[] | undefined;
|
|
1709
1707
|
}[];
|
|
1708
|
+
delegation: string;
|
|
1710
1709
|
expiry: Date;
|
|
1710
|
+
cid: string;
|
|
1711
1711
|
delegateDID: string;
|
|
1712
1712
|
}, {
|
|
1713
|
-
delegation: string;
|
|
1714
|
-
cid: string;
|
|
1715
1713
|
resources: {
|
|
1716
1714
|
path: string;
|
|
1717
1715
|
space: string;
|
|
@@ -1719,7 +1717,9 @@ declare const CreateDelegationWasmResultSchema: z.ZodObject<{
|
|
|
1719
1717
|
service: string;
|
|
1720
1718
|
caveats?: Record<string, unknown>[] | undefined;
|
|
1721
1719
|
}[];
|
|
1720
|
+
delegation: string;
|
|
1722
1721
|
expiry: Date;
|
|
1722
|
+
cid: string;
|
|
1723
1723
|
delegateDID: string;
|
|
1724
1724
|
}>;
|
|
1725
1725
|
type CreateDelegationWasmResult = z.infer<typeof CreateDelegationWasmResultSchema>;
|
|
@@ -3826,7 +3826,7 @@ declare const ShareRecipientPolicySchema: z.ZodObject<{
|
|
|
3826
3826
|
expiresAt: z.ZodDate;
|
|
3827
3827
|
}, "strict", z.ZodTypeAny, {
|
|
3828
3828
|
expiresAt: Date;
|
|
3829
|
-
|
|
3829
|
+
actions: ("list" | "read" | "edit")[];
|
|
3830
3830
|
resource: {
|
|
3831
3831
|
path: string;
|
|
3832
3832
|
kind: "exact";
|
|
@@ -3834,7 +3834,7 @@ declare const ShareRecipientPolicySchema: z.ZodObject<{
|
|
|
3834
3834
|
path: string;
|
|
3835
3835
|
kind: "prefix";
|
|
3836
3836
|
};
|
|
3837
|
-
|
|
3837
|
+
spaceId: string;
|
|
3838
3838
|
recipientMatcher: {
|
|
3839
3839
|
value: string;
|
|
3840
3840
|
kind: "exactEmail";
|
|
@@ -3849,7 +3849,7 @@ declare const ShareRecipientPolicySchema: z.ZodObject<{
|
|
|
3849
3849
|
};
|
|
3850
3850
|
}, {
|
|
3851
3851
|
expiresAt: Date;
|
|
3852
|
-
|
|
3852
|
+
actions: ("list" | "read" | "edit")[];
|
|
3853
3853
|
resource: {
|
|
3854
3854
|
path: string;
|
|
3855
3855
|
kind: "exact";
|
|
@@ -3857,7 +3857,7 @@ declare const ShareRecipientPolicySchema: z.ZodObject<{
|
|
|
3857
3857
|
path: string;
|
|
3858
3858
|
kind: "prefix";
|
|
3859
3859
|
};
|
|
3860
|
-
|
|
3860
|
+
spaceId: string;
|
|
3861
3861
|
recipientMatcher: {
|
|
3862
3862
|
value: string;
|
|
3863
3863
|
kind: "exactEmail";
|
|
@@ -3937,14 +3937,14 @@ declare const ShareAddressedDelegationRequestV2Schema: z.ZodObject<{
|
|
|
3937
3937
|
path: z.ZodString;
|
|
3938
3938
|
}, "strict", z.ZodTypeAny, {
|
|
3939
3939
|
path: string;
|
|
3940
|
-
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
3941
3940
|
space: string;
|
|
3942
3941
|
kind: "kv";
|
|
3942
|
+
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
3943
3943
|
}, {
|
|
3944
3944
|
path: string;
|
|
3945
|
-
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
3946
3945
|
space: string;
|
|
3947
3946
|
kind: "kv";
|
|
3947
|
+
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
3948
3948
|
}>, z.ZodObject<{
|
|
3949
3949
|
kind: z.ZodLiteral<"sql">;
|
|
3950
3950
|
action: z.ZodLiteral<"tinycloud.sql/read">;
|
|
@@ -3956,25 +3956,25 @@ declare const ShareAddressedDelegationRequestV2Schema: z.ZodObject<{
|
|
|
3956
3956
|
argumentsDigest: z.ZodString;
|
|
3957
3957
|
}, "strict", z.ZodTypeAny, {
|
|
3958
3958
|
path: string;
|
|
3959
|
-
action: "tinycloud.sql/read";
|
|
3960
3959
|
statement: string;
|
|
3961
3960
|
space: string;
|
|
3962
3961
|
kind: "sql";
|
|
3962
|
+
action: "tinycloud.sql/read";
|
|
3963
3963
|
database: string;
|
|
3964
3964
|
arguments: Record<string, number>;
|
|
3965
3965
|
argumentsDigest: string;
|
|
3966
3966
|
}, {
|
|
3967
3967
|
path: string;
|
|
3968
|
-
action: "tinycloud.sql/read";
|
|
3969
3968
|
statement: string;
|
|
3970
3969
|
space: string;
|
|
3971
3970
|
kind: "sql";
|
|
3971
|
+
action: "tinycloud.sql/read";
|
|
3972
3972
|
database: string;
|
|
3973
3973
|
arguments: Record<string, number>;
|
|
3974
3974
|
argumentsDigest: string;
|
|
3975
3975
|
}>]>;
|
|
3976
3976
|
contentSourceDigest: z.ZodString;
|
|
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.
|
|
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.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")[]>;
|
|
3978
3978
|
resource: z.ZodObject<{
|
|
3979
3979
|
kind: z.ZodEnum<["exact", "prefix"]>;
|
|
3980
3980
|
value: z.ZodString;
|
|
@@ -3988,27 +3988,27 @@ declare const ShareAddressedDelegationRequestV2Schema: z.ZodObject<{
|
|
|
3988
3988
|
expiresAt: z.ZodString;
|
|
3989
3989
|
requestBodyDigest: z.ZodString;
|
|
3990
3990
|
}, "strict", z.ZodTypeAny, {
|
|
3991
|
-
expiresAt: string;
|
|
3992
3991
|
nonce: string;
|
|
3992
|
+
jti: string;
|
|
3993
|
+
expiresAt: string;
|
|
3994
|
+
version: 2;
|
|
3995
|
+
actions: ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[];
|
|
3993
3996
|
resource: {
|
|
3994
3997
|
value: string;
|
|
3995
3998
|
kind: "exact" | "prefix";
|
|
3996
3999
|
};
|
|
3997
|
-
jti: string;
|
|
3998
|
-
version: 2;
|
|
3999
|
-
actions: ("tinycloud.sql/read" | "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata")[];
|
|
4000
4000
|
nodeAudience: string;
|
|
4001
4001
|
contentSource: {
|
|
4002
4002
|
path: string;
|
|
4003
|
-
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
4004
4003
|
space: string;
|
|
4005
4004
|
kind: "kv";
|
|
4005
|
+
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
4006
4006
|
} | {
|
|
4007
4007
|
path: string;
|
|
4008
|
-
action: "tinycloud.sql/read";
|
|
4009
4008
|
statement: string;
|
|
4010
4009
|
space: string;
|
|
4011
4010
|
kind: "sql";
|
|
4011
|
+
action: "tinycloud.sql/read";
|
|
4012
4012
|
database: string;
|
|
4013
4013
|
arguments: Record<string, number>;
|
|
4014
4014
|
argumentsDigest: string;
|
|
@@ -4033,27 +4033,27 @@ declare const ShareAddressedDelegationRequestV2Schema: z.ZodObject<{
|
|
|
4033
4033
|
authorityMaterialDigest: string;
|
|
4034
4034
|
requestBodyDigest: string;
|
|
4035
4035
|
}, {
|
|
4036
|
-
expiresAt: string;
|
|
4037
4036
|
nonce: string;
|
|
4037
|
+
jti: string;
|
|
4038
|
+
expiresAt: string;
|
|
4039
|
+
version: 2;
|
|
4040
|
+
actions: ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[];
|
|
4038
4041
|
resource: {
|
|
4039
4042
|
value: string;
|
|
4040
4043
|
kind: "exact" | "prefix";
|
|
4041
4044
|
};
|
|
4042
|
-
jti: string;
|
|
4043
|
-
version: 2;
|
|
4044
|
-
actions: ("tinycloud.sql/read" | "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata")[];
|
|
4045
4045
|
nodeAudience: string;
|
|
4046
4046
|
contentSource: {
|
|
4047
4047
|
path: string;
|
|
4048
|
-
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
4049
4048
|
space: string;
|
|
4050
4049
|
kind: "kv";
|
|
4050
|
+
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
4051
4051
|
} | {
|
|
4052
4052
|
path: string;
|
|
4053
|
-
action: "tinycloud.sql/read";
|
|
4054
4053
|
statement: string;
|
|
4055
4054
|
space: string;
|
|
4056
4055
|
kind: "sql";
|
|
4056
|
+
action: "tinycloud.sql/read";
|
|
4057
4057
|
database: string;
|
|
4058
4058
|
arguments: Record<string, number>;
|
|
4059
4059
|
argumentsDigest: string;
|
|
@@ -4126,14 +4126,14 @@ declare const ShareAddressedDelegationEnvelopeV2Schema: z.ZodObject<{
|
|
|
4126
4126
|
path: z.ZodString;
|
|
4127
4127
|
}, "strict", z.ZodTypeAny, {
|
|
4128
4128
|
path: string;
|
|
4129
|
-
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
4130
4129
|
space: string;
|
|
4131
4130
|
kind: "kv";
|
|
4131
|
+
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
4132
4132
|
}, {
|
|
4133
4133
|
path: string;
|
|
4134
|
-
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
4135
4134
|
space: string;
|
|
4136
4135
|
kind: "kv";
|
|
4136
|
+
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
4137
4137
|
}>, z.ZodObject<{
|
|
4138
4138
|
kind: z.ZodLiteral<"sql">;
|
|
4139
4139
|
action: z.ZodLiteral<"tinycloud.sql/read">;
|
|
@@ -4145,25 +4145,25 @@ declare const ShareAddressedDelegationEnvelopeV2Schema: z.ZodObject<{
|
|
|
4145
4145
|
argumentsDigest: z.ZodString;
|
|
4146
4146
|
}, "strict", z.ZodTypeAny, {
|
|
4147
4147
|
path: string;
|
|
4148
|
-
action: "tinycloud.sql/read";
|
|
4149
4148
|
statement: string;
|
|
4150
4149
|
space: string;
|
|
4151
4150
|
kind: "sql";
|
|
4151
|
+
action: "tinycloud.sql/read";
|
|
4152
4152
|
database: string;
|
|
4153
4153
|
arguments: Record<string, number>;
|
|
4154
4154
|
argumentsDigest: string;
|
|
4155
4155
|
}, {
|
|
4156
4156
|
path: string;
|
|
4157
|
-
action: "tinycloud.sql/read";
|
|
4158
4157
|
statement: string;
|
|
4159
4158
|
space: string;
|
|
4160
4159
|
kind: "sql";
|
|
4160
|
+
action: "tinycloud.sql/read";
|
|
4161
4161
|
database: string;
|
|
4162
4162
|
arguments: Record<string, number>;
|
|
4163
4163
|
argumentsDigest: string;
|
|
4164
4164
|
}>]>;
|
|
4165
4165
|
contentSourceDigest: z.ZodString;
|
|
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.
|
|
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.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")[]>;
|
|
4167
4167
|
resource: z.ZodObject<{
|
|
4168
4168
|
kind: z.ZodEnum<["exact", "prefix"]>;
|
|
4169
4169
|
value: z.ZodString;
|
|
@@ -4177,27 +4177,27 @@ declare const ShareAddressedDelegationEnvelopeV2Schema: z.ZodObject<{
|
|
|
4177
4177
|
expiresAt: z.ZodString;
|
|
4178
4178
|
requestBodyDigest: z.ZodString;
|
|
4179
4179
|
}, "strict", z.ZodTypeAny, {
|
|
4180
|
-
expiresAt: string;
|
|
4181
4180
|
nonce: string;
|
|
4181
|
+
jti: string;
|
|
4182
|
+
expiresAt: string;
|
|
4183
|
+
version: 2;
|
|
4184
|
+
actions: ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[];
|
|
4182
4185
|
resource: {
|
|
4183
4186
|
value: string;
|
|
4184
4187
|
kind: "exact" | "prefix";
|
|
4185
4188
|
};
|
|
4186
|
-
jti: string;
|
|
4187
|
-
version: 2;
|
|
4188
|
-
actions: ("tinycloud.sql/read" | "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata")[];
|
|
4189
4189
|
nodeAudience: string;
|
|
4190
4190
|
contentSource: {
|
|
4191
4191
|
path: string;
|
|
4192
|
-
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
4193
4192
|
space: string;
|
|
4194
4193
|
kind: "kv";
|
|
4194
|
+
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
4195
4195
|
} | {
|
|
4196
4196
|
path: string;
|
|
4197
|
-
action: "tinycloud.sql/read";
|
|
4198
4197
|
statement: string;
|
|
4199
4198
|
space: string;
|
|
4200
4199
|
kind: "sql";
|
|
4200
|
+
action: "tinycloud.sql/read";
|
|
4201
4201
|
database: string;
|
|
4202
4202
|
arguments: Record<string, number>;
|
|
4203
4203
|
argumentsDigest: string;
|
|
@@ -4222,27 +4222,27 @@ declare const ShareAddressedDelegationEnvelopeV2Schema: z.ZodObject<{
|
|
|
4222
4222
|
authorityMaterialDigest: string;
|
|
4223
4223
|
requestBodyDigest: string;
|
|
4224
4224
|
}, {
|
|
4225
|
-
expiresAt: string;
|
|
4226
4225
|
nonce: string;
|
|
4226
|
+
jti: string;
|
|
4227
|
+
expiresAt: string;
|
|
4228
|
+
version: 2;
|
|
4229
|
+
actions: ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[];
|
|
4227
4230
|
resource: {
|
|
4228
4231
|
value: string;
|
|
4229
4232
|
kind: "exact" | "prefix";
|
|
4230
4233
|
};
|
|
4231
|
-
jti: string;
|
|
4232
|
-
version: 2;
|
|
4233
|
-
actions: ("tinycloud.sql/read" | "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata")[];
|
|
4234
4234
|
nodeAudience: string;
|
|
4235
4235
|
contentSource: {
|
|
4236
4236
|
path: string;
|
|
4237
|
-
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
4238
4237
|
space: string;
|
|
4239
4238
|
kind: "kv";
|
|
4239
|
+
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
4240
4240
|
} | {
|
|
4241
4241
|
path: string;
|
|
4242
|
-
action: "tinycloud.sql/read";
|
|
4243
4242
|
statement: string;
|
|
4244
4243
|
space: string;
|
|
4245
4244
|
kind: "sql";
|
|
4245
|
+
action: "tinycloud.sql/read";
|
|
4246
4246
|
database: string;
|
|
4247
4247
|
arguments: Record<string, number>;
|
|
4248
4248
|
argumentsDigest: string;
|
|
@@ -4282,27 +4282,27 @@ declare const ShareAddressedDelegationEnvelopeV2Schema: z.ZodObject<{
|
|
|
4282
4282
|
}>;
|
|
4283
4283
|
}, "strict", z.ZodTypeAny, {
|
|
4284
4284
|
request: {
|
|
4285
|
-
expiresAt: string;
|
|
4286
4285
|
nonce: string;
|
|
4286
|
+
jti: string;
|
|
4287
|
+
expiresAt: string;
|
|
4288
|
+
version: 2;
|
|
4289
|
+
actions: ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[];
|
|
4287
4290
|
resource: {
|
|
4288
4291
|
value: string;
|
|
4289
4292
|
kind: "exact" | "prefix";
|
|
4290
4293
|
};
|
|
4291
|
-
jti: string;
|
|
4292
|
-
version: 2;
|
|
4293
|
-
actions: ("tinycloud.sql/read" | "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata")[];
|
|
4294
4294
|
nodeAudience: string;
|
|
4295
4295
|
contentSource: {
|
|
4296
4296
|
path: string;
|
|
4297
|
-
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
4298
4297
|
space: string;
|
|
4299
4298
|
kind: "kv";
|
|
4299
|
+
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
4300
4300
|
} | {
|
|
4301
4301
|
path: string;
|
|
4302
|
-
action: "tinycloud.sql/read";
|
|
4303
4302
|
statement: string;
|
|
4304
4303
|
space: string;
|
|
4305
4304
|
kind: "sql";
|
|
4305
|
+
action: "tinycloud.sql/read";
|
|
4306
4306
|
database: string;
|
|
4307
4307
|
arguments: Record<string, number>;
|
|
4308
4308
|
argumentsDigest: string;
|
|
@@ -4334,27 +4334,27 @@ declare const ShareAddressedDelegationEnvelopeV2Schema: z.ZodObject<{
|
|
|
4334
4334
|
};
|
|
4335
4335
|
}, {
|
|
4336
4336
|
request: {
|
|
4337
|
-
expiresAt: string;
|
|
4338
4337
|
nonce: string;
|
|
4338
|
+
jti: string;
|
|
4339
|
+
expiresAt: string;
|
|
4340
|
+
version: 2;
|
|
4341
|
+
actions: ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[];
|
|
4339
4342
|
resource: {
|
|
4340
4343
|
value: string;
|
|
4341
4344
|
kind: "exact" | "prefix";
|
|
4342
4345
|
};
|
|
4343
|
-
jti: string;
|
|
4344
|
-
version: 2;
|
|
4345
|
-
actions: ("tinycloud.sql/read" | "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata")[];
|
|
4346
4346
|
nodeAudience: string;
|
|
4347
4347
|
contentSource: {
|
|
4348
4348
|
path: string;
|
|
4349
|
-
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
4350
4349
|
space: string;
|
|
4351
4350
|
kind: "kv";
|
|
4351
|
+
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
4352
4352
|
} | {
|
|
4353
4353
|
path: string;
|
|
4354
|
-
action: "tinycloud.sql/read";
|
|
4355
4354
|
statement: string;
|
|
4356
4355
|
space: string;
|
|
4357
4356
|
kind: "sql";
|
|
4357
|
+
action: "tinycloud.sql/read";
|
|
4358
4358
|
database: string;
|
|
4359
4359
|
arguments: Record<string, number>;
|
|
4360
4360
|
argumentsDigest: string;
|
|
@@ -4398,7 +4398,7 @@ declare const ShareAddressedDelegationResponseV2Schema: z.ZodObject<{
|
|
|
4398
4398
|
delegationDigest: z.ZodString;
|
|
4399
4399
|
authorityMaterialHandle: z.ZodString;
|
|
4400
4400
|
authorityMaterialDigest: z.ZodString;
|
|
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.
|
|
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.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")[]>;
|
|
4402
4402
|
resource: z.ZodObject<{
|
|
4403
4403
|
kind: z.ZodEnum<["exact", "prefix"]>;
|
|
4404
4404
|
value: z.ZodString;
|
|
@@ -4425,20 +4425,20 @@ declare const ShareAddressedDelegationResponseV2Schema: z.ZodObject<{
|
|
|
4425
4425
|
}>;
|
|
4426
4426
|
}, "strict", z.ZodTypeAny, {
|
|
4427
4427
|
type: "TinyCloudShareAddressedDelegation";
|
|
4428
|
-
expiresAt: string;
|
|
4429
4428
|
nonce: string;
|
|
4430
|
-
resource: {
|
|
4431
|
-
value: string;
|
|
4432
|
-
kind: "exact" | "prefix";
|
|
4433
|
-
};
|
|
4434
4429
|
proof: {
|
|
4435
4430
|
signature: string;
|
|
4436
4431
|
kid: string;
|
|
4437
4432
|
alg: "EdDSA";
|
|
4438
4433
|
};
|
|
4439
4434
|
jti: string;
|
|
4435
|
+
expiresAt: string;
|
|
4440
4436
|
version: 2;
|
|
4441
|
-
actions: ("tinycloud.
|
|
4437
|
+
actions: ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[];
|
|
4438
|
+
resource: {
|
|
4439
|
+
value: string;
|
|
4440
|
+
kind: "exact" | "prefix";
|
|
4441
|
+
};
|
|
4442
4442
|
policyCid: string;
|
|
4443
4443
|
policyBytes: string;
|
|
4444
4444
|
delegationCid: string;
|
|
@@ -4449,20 +4449,20 @@ declare const ShareAddressedDelegationResponseV2Schema: z.ZodObject<{
|
|
|
4449
4449
|
delegationDigest: string;
|
|
4450
4450
|
}, {
|
|
4451
4451
|
type: "TinyCloudShareAddressedDelegation";
|
|
4452
|
-
expiresAt: string;
|
|
4453
4452
|
nonce: string;
|
|
4454
|
-
resource: {
|
|
4455
|
-
value: string;
|
|
4456
|
-
kind: "exact" | "prefix";
|
|
4457
|
-
};
|
|
4458
4453
|
proof: {
|
|
4459
4454
|
signature: string;
|
|
4460
4455
|
kid: string;
|
|
4461
4456
|
alg: "EdDSA";
|
|
4462
4457
|
};
|
|
4463
4458
|
jti: string;
|
|
4459
|
+
expiresAt: string;
|
|
4464
4460
|
version: 2;
|
|
4465
|
-
actions: ("tinycloud.
|
|
4461
|
+
actions: ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[];
|
|
4462
|
+
resource: {
|
|
4463
|
+
value: string;
|
|
4464
|
+
kind: "exact" | "prefix";
|
|
4465
|
+
};
|
|
4466
4466
|
policyCid: string;
|
|
4467
4467
|
policyBytes: string;
|
|
4468
4468
|
delegationCid: string;
|
|
@@ -4481,18 +4481,18 @@ declare const ShareNativeResponseSchema: z.ZodDiscriminatedUnion<"action", [z.Zo
|
|
|
4481
4481
|
resource: z.ZodString;
|
|
4482
4482
|
}, "strict", z.ZodTypeAny, {
|
|
4483
4483
|
type: "TinyCloudShareInvokeResponse";
|
|
4484
|
-
resource: string;
|
|
4485
|
-
action: "tinycloud.kv/metadata";
|
|
4486
4484
|
version: 2;
|
|
4487
4485
|
etag: string | null;
|
|
4488
4486
|
metadata: Record<string, string>;
|
|
4489
|
-
}, {
|
|
4490
|
-
type: "TinyCloudShareInvokeResponse";
|
|
4491
4487
|
resource: string;
|
|
4492
4488
|
action: "tinycloud.kv/metadata";
|
|
4489
|
+
}, {
|
|
4490
|
+
type: "TinyCloudShareInvokeResponse";
|
|
4493
4491
|
version: 2;
|
|
4494
4492
|
etag: string | null;
|
|
4495
4493
|
metadata: Record<string, string>;
|
|
4494
|
+
resource: string;
|
|
4495
|
+
action: "tinycloud.kv/metadata";
|
|
4496
4496
|
}>, z.ZodObject<{
|
|
4497
4497
|
action: z.ZodLiteral<"tinycloud.kv/get">;
|
|
4498
4498
|
mediaType: z.ZodString;
|
|
@@ -4504,19 +4504,19 @@ declare const ShareNativeResponseSchema: z.ZodDiscriminatedUnion<"action", [z.Zo
|
|
|
4504
4504
|
resource: z.ZodString;
|
|
4505
4505
|
}, "strict", z.ZodTypeAny, {
|
|
4506
4506
|
type: "TinyCloudShareInvokeResponse";
|
|
4507
|
-
resource: string;
|
|
4508
|
-
action: "tinycloud.kv/get";
|
|
4509
4507
|
version: 2;
|
|
4510
4508
|
etag: string | null;
|
|
4509
|
+
resource: string;
|
|
4510
|
+
action: "tinycloud.kv/get";
|
|
4511
4511
|
content: string;
|
|
4512
4512
|
mediaType: string;
|
|
4513
4513
|
bodyDigest: string;
|
|
4514
4514
|
}, {
|
|
4515
4515
|
type: "TinyCloudShareInvokeResponse";
|
|
4516
|
-
resource: string;
|
|
4517
|
-
action: "tinycloud.kv/get";
|
|
4518
4516
|
version: 2;
|
|
4519
4517
|
etag: string | null;
|
|
4518
|
+
resource: string;
|
|
4519
|
+
action: "tinycloud.kv/get";
|
|
4520
4520
|
content: string;
|
|
4521
4521
|
mediaType: string;
|
|
4522
4522
|
bodyDigest: string;
|
|
@@ -4537,24 +4537,24 @@ declare const ShareNativeResponseSchema: z.ZodDiscriminatedUnion<"action", [z.Zo
|
|
|
4537
4537
|
version: z.ZodLiteral<2>;
|
|
4538
4538
|
resource: z.ZodString;
|
|
4539
4539
|
}, "strict", z.ZodTypeAny, {
|
|
4540
|
+
type: "TinyCloudShareInvokeResponse";
|
|
4540
4541
|
entries: {
|
|
4541
4542
|
path: string;
|
|
4542
4543
|
kind: "folder" | "file";
|
|
4543
4544
|
}[];
|
|
4544
|
-
|
|
4545
|
+
version: 2;
|
|
4545
4546
|
resource: string;
|
|
4546
4547
|
action: "tinycloud.kv/list";
|
|
4547
|
-
version: 2;
|
|
4548
4548
|
nextCursor: string | null;
|
|
4549
4549
|
}, {
|
|
4550
|
+
type: "TinyCloudShareInvokeResponse";
|
|
4550
4551
|
entries: {
|
|
4551
4552
|
path: string;
|
|
4552
4553
|
kind: "folder" | "file";
|
|
4553
4554
|
}[];
|
|
4554
|
-
|
|
4555
|
+
version: 2;
|
|
4555
4556
|
resource: string;
|
|
4556
4557
|
action: "tinycloud.kv/list";
|
|
4557
|
-
version: 2;
|
|
4558
4558
|
nextCursor: string | null;
|
|
4559
4559
|
}>, z.ZodObject<{
|
|
4560
4560
|
action: z.ZodLiteral<"tinycloud.kv/put">;
|
|
@@ -4566,18 +4566,18 @@ declare const ShareNativeResponseSchema: z.ZodDiscriminatedUnion<"action", [z.Zo
|
|
|
4566
4566
|
resource: z.ZodString;
|
|
4567
4567
|
}, "strict", z.ZodTypeAny, {
|
|
4568
4568
|
type: "TinyCloudShareInvokeResponse";
|
|
4569
|
-
resource: string;
|
|
4570
|
-
action: "tinycloud.kv/put";
|
|
4571
4569
|
version: 2;
|
|
4572
4570
|
etag: string;
|
|
4571
|
+
resource: string;
|
|
4572
|
+
action: "tinycloud.kv/put";
|
|
4573
4573
|
bodyDigest: string;
|
|
4574
4574
|
contentType: string;
|
|
4575
4575
|
}, {
|
|
4576
4576
|
type: "TinyCloudShareInvokeResponse";
|
|
4577
|
-
resource: string;
|
|
4578
|
-
action: "tinycloud.kv/put";
|
|
4579
4577
|
version: 2;
|
|
4580
4578
|
etag: string;
|
|
4579
|
+
resource: string;
|
|
4580
|
+
action: "tinycloud.kv/put";
|
|
4581
4581
|
bodyDigest: string;
|
|
4582
4582
|
contentType: string;
|
|
4583
4583
|
}>]>;
|