@tinycloud/sdk-core 3.1.0-beta.13 → 3.1.0-beta.14
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/{capability-BA49Uboq.d.cts → capability-BjzXwtNw.d.cts} +1 -1
- package/dist/{capability-BA49Uboq.d.ts → capability-BjzXwtNw.d.ts} +1 -1
- package/dist/{credential-admission-C9qcIjpF.d.ts → credential-admission-BaP4pdpy.d.ts} +5 -5
- package/dist/{credential-admission-BJJSX5P-.d.cts → credential-admission-ohx0XnQr.d.cts} +5 -5
- package/dist/delegations/index.d.cts +29 -29
- package/dist/delegations/index.d.ts +29 -29
- package/dist/index.d.cts +15 -15
- package/dist/index.d.ts +15 -15
- package/dist/policy/index.d.cts +4 -4
- package/dist/policy/index.d.ts +4 -4
- package/dist/{recipient-types.schema-D7YiY246.d.cts → recipient-types.schema-D-IMys0b.d.cts} +177 -177
- package/dist/{recipient-types.schema-D7YiY246.d.ts → recipient-types.schema-D-IMys0b.d.ts} +177 -177
- package/dist/requester/index.d.cts +1 -1
- package/dist/requester/index.d.ts +1 -1
- package/package.json +2 -2
package/dist/{recipient-types.schema-D7YiY246.d.cts → recipient-types.schema-D-IMys0b.d.cts}
RENAMED
|
@@ -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;
|
|
@@ -1503,8 +1503,8 @@ declare const DelegationManagerConfigSchema: z.ZodObject<{
|
|
|
1503
1503
|
fetch?: FetchFunction | undefined;
|
|
1504
1504
|
}, {
|
|
1505
1505
|
hosts: string[];
|
|
1506
|
-
invokeAny?: unknown;
|
|
1507
1506
|
session?: unknown;
|
|
1507
|
+
invokeAny?: unknown;
|
|
1508
1508
|
accountSpaceId?: string | undefined;
|
|
1509
1509
|
invoke?: unknown;
|
|
1510
1510
|
fetch?: unknown;
|
|
@@ -1543,13 +1543,13 @@ declare const DelegationApiResponseSchema: z.ZodObject<{
|
|
|
1543
1543
|
/** CID of the created delegation */
|
|
1544
1544
|
cid: z.ZodOptional<z.ZodString>;
|
|
1545
1545
|
}, "strip", z.ZodTypeAny, {
|
|
1546
|
-
signature: string;
|
|
1547
1546
|
siwe: string;
|
|
1547
|
+
signature: string;
|
|
1548
1548
|
version: number;
|
|
1549
1549
|
cid?: string | undefined;
|
|
1550
1550
|
}, {
|
|
1551
|
-
signature: string;
|
|
1552
1551
|
siwe: string;
|
|
1552
|
+
signature: string;
|
|
1553
1553
|
version: number;
|
|
1554
1554
|
cid?: string | undefined;
|
|
1555
1555
|
}>;
|
|
@@ -1633,8 +1633,8 @@ declare const CreateDelegationWasmParamsSchema: z.ZodObject<{
|
|
|
1633
1633
|
/** Optional not-before time in seconds since Unix epoch */
|
|
1634
1634
|
notBeforeSecs: z.ZodOptional<z.ZodNumber>;
|
|
1635
1635
|
}, "strip", z.ZodTypeAny, {
|
|
1636
|
-
spaceId: string;
|
|
1637
1636
|
session: ServiceSession;
|
|
1637
|
+
spaceId: string;
|
|
1638
1638
|
delegateDID: string;
|
|
1639
1639
|
abilities: Record<string, Record<string, string[]>>;
|
|
1640
1640
|
expirationSecs: number;
|
|
@@ -1694,8 +1694,6 @@ declare const CreateDelegationWasmResultSchema: z.ZodObject<{
|
|
|
1694
1694
|
caveats?: Record<string, unknown>[] | undefined;
|
|
1695
1695
|
}>, "many">;
|
|
1696
1696
|
}, "strip", z.ZodTypeAny, {
|
|
1697
|
-
delegation: string;
|
|
1698
|
-
cid: string;
|
|
1699
1697
|
resources: {
|
|
1700
1698
|
path: string;
|
|
1701
1699
|
actions: string[];
|
|
@@ -1703,11 +1701,11 @@ declare const CreateDelegationWasmResultSchema: z.ZodObject<{
|
|
|
1703
1701
|
service: string;
|
|
1704
1702
|
caveats?: Record<string, unknown>[] | undefined;
|
|
1705
1703
|
}[];
|
|
1704
|
+
delegation: string;
|
|
1706
1705
|
expiry: Date;
|
|
1706
|
+
cid: string;
|
|
1707
1707
|
delegateDID: string;
|
|
1708
1708
|
}, {
|
|
1709
|
-
delegation: string;
|
|
1710
|
-
cid: string;
|
|
1711
1709
|
resources: {
|
|
1712
1710
|
path: string;
|
|
1713
1711
|
actions: string[];
|
|
@@ -1715,7 +1713,9 @@ declare const CreateDelegationWasmResultSchema: z.ZodObject<{
|
|
|
1715
1713
|
service: string;
|
|
1716
1714
|
caveats?: Record<string, unknown>[] | undefined;
|
|
1717
1715
|
}[];
|
|
1716
|
+
delegation: string;
|
|
1718
1717
|
expiry: Date;
|
|
1718
|
+
cid: string;
|
|
1719
1719
|
delegateDID: string;
|
|
1720
1720
|
}>;
|
|
1721
1721
|
type CreateDelegationWasmResult = z.infer<typeof CreateDelegationWasmResultSchema>;
|
|
@@ -3818,7 +3818,7 @@ declare const ShareRecipientPolicySchema: z.ZodObject<{
|
|
|
3818
3818
|
expiresAt: z.ZodDate;
|
|
3819
3819
|
}, "strict", z.ZodTypeAny, {
|
|
3820
3820
|
expiresAt: Date;
|
|
3821
|
-
|
|
3821
|
+
actions: ("list" | "read" | "edit")[];
|
|
3822
3822
|
resource: {
|
|
3823
3823
|
path: string;
|
|
3824
3824
|
kind: "exact";
|
|
@@ -3826,7 +3826,7 @@ declare const ShareRecipientPolicySchema: z.ZodObject<{
|
|
|
3826
3826
|
path: string;
|
|
3827
3827
|
kind: "prefix";
|
|
3828
3828
|
};
|
|
3829
|
-
|
|
3829
|
+
spaceId: string;
|
|
3830
3830
|
recipientMatcher: {
|
|
3831
3831
|
value: string;
|
|
3832
3832
|
kind: "exactEmail";
|
|
@@ -3841,7 +3841,7 @@ declare const ShareRecipientPolicySchema: z.ZodObject<{
|
|
|
3841
3841
|
};
|
|
3842
3842
|
}, {
|
|
3843
3843
|
expiresAt: Date;
|
|
3844
|
-
|
|
3844
|
+
actions: ("list" | "read" | "edit")[];
|
|
3845
3845
|
resource: {
|
|
3846
3846
|
path: string;
|
|
3847
3847
|
kind: "exact";
|
|
@@ -3849,7 +3849,7 @@ declare const ShareRecipientPolicySchema: z.ZodObject<{
|
|
|
3849
3849
|
path: string;
|
|
3850
3850
|
kind: "prefix";
|
|
3851
3851
|
};
|
|
3852
|
-
|
|
3852
|
+
spaceId: string;
|
|
3853
3853
|
recipientMatcher: {
|
|
3854
3854
|
value: string;
|
|
3855
3855
|
kind: "exactEmail";
|
|
@@ -3929,14 +3929,14 @@ declare const ShareAddressedDelegationRequestV2Schema: z.ZodObject<{
|
|
|
3929
3929
|
path: z.ZodString;
|
|
3930
3930
|
}, "strict", z.ZodTypeAny, {
|
|
3931
3931
|
path: string;
|
|
3932
|
-
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
3933
3932
|
space: string;
|
|
3934
3933
|
kind: "kv";
|
|
3934
|
+
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
3935
3935
|
}, {
|
|
3936
3936
|
path: string;
|
|
3937
|
-
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
3938
3937
|
space: string;
|
|
3939
3938
|
kind: "kv";
|
|
3939
|
+
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
3940
3940
|
}>, z.ZodObject<{
|
|
3941
3941
|
kind: z.ZodLiteral<"sql">;
|
|
3942
3942
|
action: z.ZodLiteral<"tinycloud.sql/read">;
|
|
@@ -3948,25 +3948,25 @@ declare const ShareAddressedDelegationRequestV2Schema: z.ZodObject<{
|
|
|
3948
3948
|
argumentsDigest: z.ZodString;
|
|
3949
3949
|
}, "strict", z.ZodTypeAny, {
|
|
3950
3950
|
path: string;
|
|
3951
|
-
action: "tinycloud.sql/read";
|
|
3952
3951
|
statement: string;
|
|
3953
3952
|
space: string;
|
|
3954
3953
|
kind: "sql";
|
|
3954
|
+
action: "tinycloud.sql/read";
|
|
3955
3955
|
database: string;
|
|
3956
3956
|
arguments: Record<string, number>;
|
|
3957
3957
|
argumentsDigest: string;
|
|
3958
3958
|
}, {
|
|
3959
3959
|
path: string;
|
|
3960
|
-
action: "tinycloud.sql/read";
|
|
3961
3960
|
statement: string;
|
|
3962
3961
|
space: string;
|
|
3963
3962
|
kind: "sql";
|
|
3963
|
+
action: "tinycloud.sql/read";
|
|
3964
3964
|
database: string;
|
|
3965
3965
|
arguments: Record<string, number>;
|
|
3966
3966
|
argumentsDigest: string;
|
|
3967
3967
|
}>]>;
|
|
3968
3968
|
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.
|
|
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.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")[]>;
|
|
3970
3970
|
resource: z.ZodObject<{
|
|
3971
3971
|
kind: z.ZodEnum<["exact", "prefix"]>;
|
|
3972
3972
|
value: z.ZodString;
|
|
@@ -3980,27 +3980,27 @@ declare const ShareAddressedDelegationRequestV2Schema: z.ZodObject<{
|
|
|
3980
3980
|
expiresAt: z.ZodString;
|
|
3981
3981
|
requestBodyDigest: z.ZodString;
|
|
3982
3982
|
}, "strict", z.ZodTypeAny, {
|
|
3983
|
-
expiresAt: string;
|
|
3984
3983
|
nonce: string;
|
|
3984
|
+
jti: string;
|
|
3985
|
+
expiresAt: string;
|
|
3986
|
+
version: 2;
|
|
3987
|
+
actions: ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[];
|
|
3985
3988
|
resource: {
|
|
3986
3989
|
value: string;
|
|
3987
3990
|
kind: "exact" | "prefix";
|
|
3988
3991
|
};
|
|
3989
|
-
jti: string;
|
|
3990
|
-
version: 2;
|
|
3991
|
-
actions: ("tinycloud.sql/read" | "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata")[];
|
|
3992
3992
|
nodeAudience: string;
|
|
3993
3993
|
contentSource: {
|
|
3994
3994
|
path: string;
|
|
3995
|
-
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
3996
3995
|
space: string;
|
|
3997
3996
|
kind: "kv";
|
|
3997
|
+
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
3998
3998
|
} | {
|
|
3999
3999
|
path: string;
|
|
4000
|
-
action: "tinycloud.sql/read";
|
|
4001
4000
|
statement: string;
|
|
4002
4001
|
space: string;
|
|
4003
4002
|
kind: "sql";
|
|
4003
|
+
action: "tinycloud.sql/read";
|
|
4004
4004
|
database: string;
|
|
4005
4005
|
arguments: Record<string, number>;
|
|
4006
4006
|
argumentsDigest: string;
|
|
@@ -4025,27 +4025,27 @@ declare const ShareAddressedDelegationRequestV2Schema: z.ZodObject<{
|
|
|
4025
4025
|
authorityMaterialDigest: string;
|
|
4026
4026
|
requestBodyDigest: string;
|
|
4027
4027
|
}, {
|
|
4028
|
-
expiresAt: string;
|
|
4029
4028
|
nonce: string;
|
|
4029
|
+
jti: string;
|
|
4030
|
+
expiresAt: string;
|
|
4031
|
+
version: 2;
|
|
4032
|
+
actions: ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[];
|
|
4030
4033
|
resource: {
|
|
4031
4034
|
value: string;
|
|
4032
4035
|
kind: "exact" | "prefix";
|
|
4033
4036
|
};
|
|
4034
|
-
jti: string;
|
|
4035
|
-
version: 2;
|
|
4036
|
-
actions: ("tinycloud.sql/read" | "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata")[];
|
|
4037
4037
|
nodeAudience: string;
|
|
4038
4038
|
contentSource: {
|
|
4039
4039
|
path: string;
|
|
4040
|
-
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
4041
4040
|
space: string;
|
|
4042
4041
|
kind: "kv";
|
|
4042
|
+
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
4043
4043
|
} | {
|
|
4044
4044
|
path: string;
|
|
4045
|
-
action: "tinycloud.sql/read";
|
|
4046
4045
|
statement: string;
|
|
4047
4046
|
space: string;
|
|
4048
4047
|
kind: "sql";
|
|
4048
|
+
action: "tinycloud.sql/read";
|
|
4049
4049
|
database: string;
|
|
4050
4050
|
arguments: Record<string, number>;
|
|
4051
4051
|
argumentsDigest: string;
|
|
@@ -4118,14 +4118,14 @@ declare const ShareAddressedDelegationEnvelopeV2Schema: z.ZodObject<{
|
|
|
4118
4118
|
path: z.ZodString;
|
|
4119
4119
|
}, "strict", z.ZodTypeAny, {
|
|
4120
4120
|
path: string;
|
|
4121
|
-
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
4122
4121
|
space: string;
|
|
4123
4122
|
kind: "kv";
|
|
4123
|
+
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
4124
4124
|
}, {
|
|
4125
4125
|
path: string;
|
|
4126
|
-
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
4127
4126
|
space: string;
|
|
4128
4127
|
kind: "kv";
|
|
4128
|
+
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
4129
4129
|
}>, z.ZodObject<{
|
|
4130
4130
|
kind: z.ZodLiteral<"sql">;
|
|
4131
4131
|
action: z.ZodLiteral<"tinycloud.sql/read">;
|
|
@@ -4137,25 +4137,25 @@ declare const ShareAddressedDelegationEnvelopeV2Schema: z.ZodObject<{
|
|
|
4137
4137
|
argumentsDigest: z.ZodString;
|
|
4138
4138
|
}, "strict", z.ZodTypeAny, {
|
|
4139
4139
|
path: string;
|
|
4140
|
-
action: "tinycloud.sql/read";
|
|
4141
4140
|
statement: string;
|
|
4142
4141
|
space: string;
|
|
4143
4142
|
kind: "sql";
|
|
4143
|
+
action: "tinycloud.sql/read";
|
|
4144
4144
|
database: string;
|
|
4145
4145
|
arguments: Record<string, number>;
|
|
4146
4146
|
argumentsDigest: string;
|
|
4147
4147
|
}, {
|
|
4148
4148
|
path: string;
|
|
4149
|
-
action: "tinycloud.sql/read";
|
|
4150
4149
|
statement: string;
|
|
4151
4150
|
space: string;
|
|
4152
4151
|
kind: "sql";
|
|
4152
|
+
action: "tinycloud.sql/read";
|
|
4153
4153
|
database: string;
|
|
4154
4154
|
arguments: Record<string, number>;
|
|
4155
4155
|
argumentsDigest: string;
|
|
4156
4156
|
}>]>;
|
|
4157
4157
|
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.
|
|
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.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")[]>;
|
|
4159
4159
|
resource: z.ZodObject<{
|
|
4160
4160
|
kind: z.ZodEnum<["exact", "prefix"]>;
|
|
4161
4161
|
value: z.ZodString;
|
|
@@ -4169,27 +4169,27 @@ declare const ShareAddressedDelegationEnvelopeV2Schema: z.ZodObject<{
|
|
|
4169
4169
|
expiresAt: z.ZodString;
|
|
4170
4170
|
requestBodyDigest: z.ZodString;
|
|
4171
4171
|
}, "strict", z.ZodTypeAny, {
|
|
4172
|
-
expiresAt: string;
|
|
4173
4172
|
nonce: string;
|
|
4173
|
+
jti: string;
|
|
4174
|
+
expiresAt: string;
|
|
4175
|
+
version: 2;
|
|
4176
|
+
actions: ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[];
|
|
4174
4177
|
resource: {
|
|
4175
4178
|
value: string;
|
|
4176
4179
|
kind: "exact" | "prefix";
|
|
4177
4180
|
};
|
|
4178
|
-
jti: string;
|
|
4179
|
-
version: 2;
|
|
4180
|
-
actions: ("tinycloud.sql/read" | "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata")[];
|
|
4181
4181
|
nodeAudience: string;
|
|
4182
4182
|
contentSource: {
|
|
4183
4183
|
path: string;
|
|
4184
|
-
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
4185
4184
|
space: string;
|
|
4186
4185
|
kind: "kv";
|
|
4186
|
+
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
4187
4187
|
} | {
|
|
4188
4188
|
path: string;
|
|
4189
|
-
action: "tinycloud.sql/read";
|
|
4190
4189
|
statement: string;
|
|
4191
4190
|
space: string;
|
|
4192
4191
|
kind: "sql";
|
|
4192
|
+
action: "tinycloud.sql/read";
|
|
4193
4193
|
database: string;
|
|
4194
4194
|
arguments: Record<string, number>;
|
|
4195
4195
|
argumentsDigest: string;
|
|
@@ -4214,27 +4214,27 @@ declare const ShareAddressedDelegationEnvelopeV2Schema: z.ZodObject<{
|
|
|
4214
4214
|
authorityMaterialDigest: string;
|
|
4215
4215
|
requestBodyDigest: string;
|
|
4216
4216
|
}, {
|
|
4217
|
-
expiresAt: string;
|
|
4218
4217
|
nonce: string;
|
|
4218
|
+
jti: string;
|
|
4219
|
+
expiresAt: string;
|
|
4220
|
+
version: 2;
|
|
4221
|
+
actions: ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[];
|
|
4219
4222
|
resource: {
|
|
4220
4223
|
value: string;
|
|
4221
4224
|
kind: "exact" | "prefix";
|
|
4222
4225
|
};
|
|
4223
|
-
jti: string;
|
|
4224
|
-
version: 2;
|
|
4225
|
-
actions: ("tinycloud.sql/read" | "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata")[];
|
|
4226
4226
|
nodeAudience: string;
|
|
4227
4227
|
contentSource: {
|
|
4228
4228
|
path: string;
|
|
4229
|
-
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
4230
4229
|
space: string;
|
|
4231
4230
|
kind: "kv";
|
|
4231
|
+
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
4232
4232
|
} | {
|
|
4233
4233
|
path: string;
|
|
4234
|
-
action: "tinycloud.sql/read";
|
|
4235
4234
|
statement: string;
|
|
4236
4235
|
space: string;
|
|
4237
4236
|
kind: "sql";
|
|
4237
|
+
action: "tinycloud.sql/read";
|
|
4238
4238
|
database: string;
|
|
4239
4239
|
arguments: Record<string, number>;
|
|
4240
4240
|
argumentsDigest: string;
|
|
@@ -4274,27 +4274,27 @@ declare const ShareAddressedDelegationEnvelopeV2Schema: z.ZodObject<{
|
|
|
4274
4274
|
}>;
|
|
4275
4275
|
}, "strict", z.ZodTypeAny, {
|
|
4276
4276
|
request: {
|
|
4277
|
-
expiresAt: string;
|
|
4278
4277
|
nonce: string;
|
|
4278
|
+
jti: string;
|
|
4279
|
+
expiresAt: string;
|
|
4280
|
+
version: 2;
|
|
4281
|
+
actions: ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[];
|
|
4279
4282
|
resource: {
|
|
4280
4283
|
value: string;
|
|
4281
4284
|
kind: "exact" | "prefix";
|
|
4282
4285
|
};
|
|
4283
|
-
jti: string;
|
|
4284
|
-
version: 2;
|
|
4285
|
-
actions: ("tinycloud.sql/read" | "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata")[];
|
|
4286
4286
|
nodeAudience: string;
|
|
4287
4287
|
contentSource: {
|
|
4288
4288
|
path: string;
|
|
4289
|
-
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
4290
4289
|
space: string;
|
|
4291
4290
|
kind: "kv";
|
|
4291
|
+
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
4292
4292
|
} | {
|
|
4293
4293
|
path: string;
|
|
4294
|
-
action: "tinycloud.sql/read";
|
|
4295
4294
|
statement: string;
|
|
4296
4295
|
space: string;
|
|
4297
4296
|
kind: "sql";
|
|
4297
|
+
action: "tinycloud.sql/read";
|
|
4298
4298
|
database: string;
|
|
4299
4299
|
arguments: Record<string, number>;
|
|
4300
4300
|
argumentsDigest: string;
|
|
@@ -4326,27 +4326,27 @@ declare const ShareAddressedDelegationEnvelopeV2Schema: z.ZodObject<{
|
|
|
4326
4326
|
};
|
|
4327
4327
|
}, {
|
|
4328
4328
|
request: {
|
|
4329
|
-
expiresAt: string;
|
|
4330
4329
|
nonce: string;
|
|
4330
|
+
jti: string;
|
|
4331
|
+
expiresAt: string;
|
|
4332
|
+
version: 2;
|
|
4333
|
+
actions: ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[];
|
|
4331
4334
|
resource: {
|
|
4332
4335
|
value: string;
|
|
4333
4336
|
kind: "exact" | "prefix";
|
|
4334
4337
|
};
|
|
4335
|
-
jti: string;
|
|
4336
|
-
version: 2;
|
|
4337
|
-
actions: ("tinycloud.sql/read" | "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata")[];
|
|
4338
4338
|
nodeAudience: string;
|
|
4339
4339
|
contentSource: {
|
|
4340
4340
|
path: string;
|
|
4341
|
-
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
4342
4341
|
space: string;
|
|
4343
4342
|
kind: "kv";
|
|
4343
|
+
action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
|
|
4344
4344
|
} | {
|
|
4345
4345
|
path: string;
|
|
4346
|
-
action: "tinycloud.sql/read";
|
|
4347
4346
|
statement: string;
|
|
4348
4347
|
space: string;
|
|
4349
4348
|
kind: "sql";
|
|
4349
|
+
action: "tinycloud.sql/read";
|
|
4350
4350
|
database: string;
|
|
4351
4351
|
arguments: Record<string, number>;
|
|
4352
4352
|
argumentsDigest: string;
|
|
@@ -4390,7 +4390,7 @@ declare const ShareAddressedDelegationResponseV2Schema: z.ZodObject<{
|
|
|
4390
4390
|
delegationDigest: z.ZodString;
|
|
4391
4391
|
authorityMaterialHandle: z.ZodString;
|
|
4392
4392
|
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.
|
|
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.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")[]>;
|
|
4394
4394
|
resource: z.ZodObject<{
|
|
4395
4395
|
kind: z.ZodEnum<["exact", "prefix"]>;
|
|
4396
4396
|
value: z.ZodString;
|
|
@@ -4417,20 +4417,20 @@ declare const ShareAddressedDelegationResponseV2Schema: z.ZodObject<{
|
|
|
4417
4417
|
}>;
|
|
4418
4418
|
}, "strict", z.ZodTypeAny, {
|
|
4419
4419
|
type: "TinyCloudShareAddressedDelegation";
|
|
4420
|
-
expiresAt: string;
|
|
4421
4420
|
nonce: string;
|
|
4422
|
-
resource: {
|
|
4423
|
-
value: string;
|
|
4424
|
-
kind: "exact" | "prefix";
|
|
4425
|
-
};
|
|
4426
4421
|
proof: {
|
|
4427
4422
|
signature: string;
|
|
4428
4423
|
kid: string;
|
|
4429
4424
|
alg: "EdDSA";
|
|
4430
4425
|
};
|
|
4431
4426
|
jti: string;
|
|
4427
|
+
expiresAt: string;
|
|
4432
4428
|
version: 2;
|
|
4433
|
-
actions: ("tinycloud.
|
|
4429
|
+
actions: ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[];
|
|
4430
|
+
resource: {
|
|
4431
|
+
value: string;
|
|
4432
|
+
kind: "exact" | "prefix";
|
|
4433
|
+
};
|
|
4434
4434
|
policyCid: string;
|
|
4435
4435
|
policyBytes: string;
|
|
4436
4436
|
delegationCid: string;
|
|
@@ -4441,20 +4441,20 @@ declare const ShareAddressedDelegationResponseV2Schema: z.ZodObject<{
|
|
|
4441
4441
|
delegationDigest: string;
|
|
4442
4442
|
}, {
|
|
4443
4443
|
type: "TinyCloudShareAddressedDelegation";
|
|
4444
|
-
expiresAt: string;
|
|
4445
4444
|
nonce: string;
|
|
4446
|
-
resource: {
|
|
4447
|
-
value: string;
|
|
4448
|
-
kind: "exact" | "prefix";
|
|
4449
|
-
};
|
|
4450
4445
|
proof: {
|
|
4451
4446
|
signature: string;
|
|
4452
4447
|
kid: string;
|
|
4453
4448
|
alg: "EdDSA";
|
|
4454
4449
|
};
|
|
4455
4450
|
jti: string;
|
|
4451
|
+
expiresAt: string;
|
|
4456
4452
|
version: 2;
|
|
4457
|
-
actions: ("tinycloud.
|
|
4453
|
+
actions: ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[];
|
|
4454
|
+
resource: {
|
|
4455
|
+
value: string;
|
|
4456
|
+
kind: "exact" | "prefix";
|
|
4457
|
+
};
|
|
4458
4458
|
policyCid: string;
|
|
4459
4459
|
policyBytes: string;
|
|
4460
4460
|
delegationCid: string;
|
|
@@ -4473,18 +4473,18 @@ declare const ShareNativeResponseSchema: z.ZodDiscriminatedUnion<"action", [z.Zo
|
|
|
4473
4473
|
resource: z.ZodString;
|
|
4474
4474
|
}, "strict", z.ZodTypeAny, {
|
|
4475
4475
|
type: "TinyCloudShareInvokeResponse";
|
|
4476
|
-
resource: string;
|
|
4477
|
-
action: "tinycloud.kv/metadata";
|
|
4478
4476
|
version: 2;
|
|
4479
4477
|
etag: string | null;
|
|
4480
4478
|
metadata: Record<string, string>;
|
|
4481
|
-
}, {
|
|
4482
|
-
type: "TinyCloudShareInvokeResponse";
|
|
4483
4479
|
resource: string;
|
|
4484
4480
|
action: "tinycloud.kv/metadata";
|
|
4481
|
+
}, {
|
|
4482
|
+
type: "TinyCloudShareInvokeResponse";
|
|
4485
4483
|
version: 2;
|
|
4486
4484
|
etag: string | null;
|
|
4487
4485
|
metadata: Record<string, string>;
|
|
4486
|
+
resource: string;
|
|
4487
|
+
action: "tinycloud.kv/metadata";
|
|
4488
4488
|
}>, z.ZodObject<{
|
|
4489
4489
|
action: z.ZodLiteral<"tinycloud.kv/get">;
|
|
4490
4490
|
mediaType: z.ZodString;
|
|
@@ -4496,19 +4496,19 @@ declare const ShareNativeResponseSchema: z.ZodDiscriminatedUnion<"action", [z.Zo
|
|
|
4496
4496
|
resource: z.ZodString;
|
|
4497
4497
|
}, "strict", z.ZodTypeAny, {
|
|
4498
4498
|
type: "TinyCloudShareInvokeResponse";
|
|
4499
|
-
resource: string;
|
|
4500
|
-
action: "tinycloud.kv/get";
|
|
4501
4499
|
version: 2;
|
|
4502
4500
|
etag: string | null;
|
|
4501
|
+
resource: string;
|
|
4502
|
+
action: "tinycloud.kv/get";
|
|
4503
4503
|
content: string;
|
|
4504
4504
|
mediaType: string;
|
|
4505
4505
|
bodyDigest: string;
|
|
4506
4506
|
}, {
|
|
4507
4507
|
type: "TinyCloudShareInvokeResponse";
|
|
4508
|
-
resource: string;
|
|
4509
|
-
action: "tinycloud.kv/get";
|
|
4510
4508
|
version: 2;
|
|
4511
4509
|
etag: string | null;
|
|
4510
|
+
resource: string;
|
|
4511
|
+
action: "tinycloud.kv/get";
|
|
4512
4512
|
content: string;
|
|
4513
4513
|
mediaType: string;
|
|
4514
4514
|
bodyDigest: string;
|
|
@@ -4529,24 +4529,24 @@ declare const ShareNativeResponseSchema: z.ZodDiscriminatedUnion<"action", [z.Zo
|
|
|
4529
4529
|
version: z.ZodLiteral<2>;
|
|
4530
4530
|
resource: z.ZodString;
|
|
4531
4531
|
}, "strict", z.ZodTypeAny, {
|
|
4532
|
+
type: "TinyCloudShareInvokeResponse";
|
|
4532
4533
|
entries: {
|
|
4533
4534
|
path: string;
|
|
4534
4535
|
kind: "folder" | "file";
|
|
4535
4536
|
}[];
|
|
4536
|
-
|
|
4537
|
+
version: 2;
|
|
4537
4538
|
resource: string;
|
|
4538
4539
|
action: "tinycloud.kv/list";
|
|
4539
|
-
version: 2;
|
|
4540
4540
|
nextCursor: string | null;
|
|
4541
4541
|
}, {
|
|
4542
|
+
type: "TinyCloudShareInvokeResponse";
|
|
4542
4543
|
entries: {
|
|
4543
4544
|
path: string;
|
|
4544
4545
|
kind: "folder" | "file";
|
|
4545
4546
|
}[];
|
|
4546
|
-
|
|
4547
|
+
version: 2;
|
|
4547
4548
|
resource: string;
|
|
4548
4549
|
action: "tinycloud.kv/list";
|
|
4549
|
-
version: 2;
|
|
4550
4550
|
nextCursor: string | null;
|
|
4551
4551
|
}>, z.ZodObject<{
|
|
4552
4552
|
action: z.ZodLiteral<"tinycloud.kv/put">;
|
|
@@ -4558,18 +4558,18 @@ declare const ShareNativeResponseSchema: z.ZodDiscriminatedUnion<"action", [z.Zo
|
|
|
4558
4558
|
resource: z.ZodString;
|
|
4559
4559
|
}, "strict", z.ZodTypeAny, {
|
|
4560
4560
|
type: "TinyCloudShareInvokeResponse";
|
|
4561
|
-
resource: string;
|
|
4562
|
-
action: "tinycloud.kv/put";
|
|
4563
4561
|
version: 2;
|
|
4564
4562
|
etag: string;
|
|
4563
|
+
resource: string;
|
|
4564
|
+
action: "tinycloud.kv/put";
|
|
4565
4565
|
bodyDigest: string;
|
|
4566
4566
|
contentType: string;
|
|
4567
4567
|
}, {
|
|
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
|
}>]>;
|