@tinycloud/sdk-core 2.11.0-beta.8 → 2.11.0

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.
@@ -49,26 +49,26 @@ declare const JWKSchema: z.ZodObject<{
49
49
  key_ops: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
50
50
  }, "strip", z.ZodTypeAny, {
51
51
  kty: string;
52
+ kid?: string | undefined;
53
+ alg?: string | undefined;
52
54
  crv?: string | undefined;
53
55
  x?: string | undefined;
54
56
  y?: string | undefined;
55
57
  d?: string | undefined;
56
58
  e?: string | undefined;
57
59
  n?: string | undefined;
58
- kid?: string | undefined;
59
- alg?: string | undefined;
60
60
  use?: string | undefined;
61
61
  key_ops?: string[] | undefined;
62
62
  }, {
63
63
  kty: string;
64
+ kid?: string | undefined;
65
+ alg?: string | undefined;
64
66
  crv?: string | undefined;
65
67
  x?: string | undefined;
66
68
  y?: string | undefined;
67
69
  d?: string | undefined;
68
70
  e?: string | undefined;
69
71
  n?: string | undefined;
70
- kid?: string | undefined;
71
- alg?: string | undefined;
72
72
  use?: string | undefined;
73
73
  key_ops?: string[] | undefined;
74
74
  }>;
@@ -114,26 +114,26 @@ declare const KeyInfoSchema: z.ZodObject<{
114
114
  key_ops: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
115
115
  }, "strip", z.ZodTypeAny, {
116
116
  kty: string;
117
+ kid?: string | undefined;
118
+ alg?: string | undefined;
117
119
  crv?: string | undefined;
118
120
  x?: string | undefined;
119
121
  y?: string | undefined;
120
122
  d?: string | undefined;
121
123
  e?: string | undefined;
122
124
  n?: string | undefined;
123
- kid?: string | undefined;
124
- alg?: string | undefined;
125
125
  use?: string | undefined;
126
126
  key_ops?: string[] | undefined;
127
127
  }, {
128
128
  kty: string;
129
+ kid?: string | undefined;
130
+ alg?: string | undefined;
129
131
  crv?: string | undefined;
130
132
  x?: string | undefined;
131
133
  y?: string | undefined;
132
134
  d?: string | undefined;
133
135
  e?: string | undefined;
134
136
  n?: string | undefined;
135
- kid?: string | undefined;
136
- alg?: string | undefined;
137
137
  use?: string | undefined;
138
138
  key_ops?: string[] | undefined;
139
139
  }>>;
@@ -146,14 +146,14 @@ declare const KeyInfoSchema: z.ZodObject<{
146
146
  priority: number;
147
147
  jwk?: {
148
148
  kty: string;
149
+ kid?: string | undefined;
150
+ alg?: string | undefined;
149
151
  crv?: string | undefined;
150
152
  x?: string | undefined;
151
153
  y?: string | undefined;
152
154
  d?: string | undefined;
153
155
  e?: string | undefined;
154
156
  n?: string | undefined;
155
- kid?: string | undefined;
156
- alg?: string | undefined;
157
157
  use?: string | undefined;
158
158
  key_ops?: string[] | undefined;
159
159
  } | undefined;
@@ -164,14 +164,14 @@ declare const KeyInfoSchema: z.ZodObject<{
164
164
  priority: number;
165
165
  jwk?: {
166
166
  kty: string;
167
+ kid?: string | undefined;
168
+ alg?: string | undefined;
167
169
  crv?: string | undefined;
168
170
  x?: string | undefined;
169
171
  y?: string | undefined;
170
172
  d?: string | undefined;
171
173
  e?: string | undefined;
172
174
  n?: string | undefined;
173
- kid?: string | undefined;
174
- alg?: string | undefined;
175
175
  use?: string | undefined;
176
176
  key_ops?: string[] | undefined;
177
177
  } | undefined;
@@ -383,8 +383,8 @@ declare const AccountDelegationRecordSchema: z.ZodObject<{
383
383
  caveats: Record<string, unknown>[];
384
384
  resource: string;
385
385
  }[];
386
- expiresAt: Date | null;
387
386
  issuedAt: Date | null;
387
+ expiresAt: Date | null;
388
388
  cid: string;
389
389
  direction: "received" | "granted";
390
390
  delegatorDid: string;
@@ -401,8 +401,8 @@ declare const AccountDelegationRecordSchema: z.ZodObject<{
401
401
  caveats: Record<string, unknown>[];
402
402
  resource: string;
403
403
  }[];
404
- expiresAt: string | null;
405
404
  issuedAt: string | null;
405
+ expiresAt: string | null;
406
406
  cid: string;
407
407
  direction: "received" | "granted";
408
408
  delegatorDid: string;
@@ -448,8 +448,8 @@ declare const AccountDelegationPageSchema: z.ZodObject<{
448
448
  caveats: Record<string, unknown>[];
449
449
  resource: string;
450
450
  }[];
451
- expiresAt: Date | null;
452
451
  issuedAt: Date | null;
452
+ expiresAt: Date | null;
453
453
  cid: string;
454
454
  direction: "received" | "granted";
455
455
  delegatorDid: string;
@@ -466,8 +466,8 @@ declare const AccountDelegationPageSchema: z.ZodObject<{
466
466
  caveats: Record<string, unknown>[];
467
467
  resource: string;
468
468
  }[];
469
- expiresAt: string | null;
470
469
  issuedAt: string | null;
470
+ expiresAt: string | null;
471
471
  cid: string;
472
472
  direction: "received" | "granted";
473
473
  delegatorDid: string;
@@ -488,8 +488,8 @@ declare const AccountDelegationPageSchema: z.ZodObject<{
488
488
  caveats: Record<string, unknown>[];
489
489
  resource: string;
490
490
  }[];
491
- expiresAt: Date | null;
492
491
  issuedAt: Date | null;
492
+ expiresAt: Date | null;
493
493
  cid: string;
494
494
  direction: "received" | "granted";
495
495
  delegatorDid: string;
@@ -510,8 +510,8 @@ declare const AccountDelegationPageSchema: z.ZodObject<{
510
510
  caveats: Record<string, unknown>[];
511
511
  resource: string;
512
512
  }[];
513
- expiresAt: string | null;
514
513
  issuedAt: string | null;
514
+ expiresAt: string | null;
515
515
  cid: string;
516
516
  direction: "received" | "granted";
517
517
  delegatorDid: string;
@@ -588,26 +588,26 @@ declare const CapabilityEntrySchema: z.ZodObject<{
588
588
  key_ops: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
589
589
  }, "strip", z.ZodTypeAny, {
590
590
  kty: string;
591
+ kid?: string | undefined;
592
+ alg?: string | undefined;
591
593
  crv?: string | undefined;
592
594
  x?: string | undefined;
593
595
  y?: string | undefined;
594
596
  d?: string | undefined;
595
597
  e?: string | undefined;
596
598
  n?: string | undefined;
597
- kid?: string | undefined;
598
- alg?: string | undefined;
599
599
  use?: string | undefined;
600
600
  key_ops?: string[] | undefined;
601
601
  }, {
602
602
  kty: string;
603
+ kid?: string | undefined;
604
+ alg?: string | undefined;
603
605
  crv?: string | undefined;
604
606
  x?: string | undefined;
605
607
  y?: string | undefined;
606
608
  d?: string | undefined;
607
609
  e?: string | undefined;
608
610
  n?: string | undefined;
609
- kid?: string | undefined;
610
- alg?: string | undefined;
611
611
  use?: string | undefined;
612
612
  key_ops?: string[] | undefined;
613
613
  }>>;
@@ -620,14 +620,14 @@ declare const CapabilityEntrySchema: z.ZodObject<{
620
620
  priority: number;
621
621
  jwk?: {
622
622
  kty: string;
623
+ kid?: string | undefined;
624
+ alg?: string | undefined;
623
625
  crv?: string | undefined;
624
626
  x?: string | undefined;
625
627
  y?: string | undefined;
626
628
  d?: string | undefined;
627
629
  e?: string | undefined;
628
630
  n?: string | undefined;
629
- kid?: string | undefined;
630
- alg?: string | undefined;
631
631
  use?: string | undefined;
632
632
  key_ops?: string[] | undefined;
633
633
  } | undefined;
@@ -638,14 +638,14 @@ declare const CapabilityEntrySchema: z.ZodObject<{
638
638
  priority: number;
639
639
  jwk?: {
640
640
  kty: string;
641
+ kid?: string | undefined;
642
+ alg?: string | undefined;
641
643
  crv?: string | undefined;
642
644
  x?: string | undefined;
643
645
  y?: string | undefined;
644
646
  d?: string | undefined;
645
647
  e?: string | undefined;
646
648
  n?: string | undefined;
647
- kid?: string | undefined;
648
- alg?: string | undefined;
649
649
  use?: string | undefined;
650
650
  key_ops?: string[] | undefined;
651
651
  } | undefined;
@@ -717,14 +717,14 @@ declare const CapabilityEntrySchema: z.ZodObject<{
717
717
  priority: number;
718
718
  jwk?: {
719
719
  kty: string;
720
+ kid?: string | undefined;
721
+ alg?: string | undefined;
720
722
  crv?: string | undefined;
721
723
  x?: string | undefined;
722
724
  y?: string | undefined;
723
725
  d?: string | undefined;
724
726
  e?: string | undefined;
725
727
  n?: string | undefined;
726
- kid?: string | undefined;
727
- alg?: string | undefined;
728
728
  use?: string | undefined;
729
729
  key_ops?: string[] | undefined;
730
730
  } | undefined;
@@ -755,14 +755,14 @@ declare const CapabilityEntrySchema: z.ZodObject<{
755
755
  priority: number;
756
756
  jwk?: {
757
757
  kty: string;
758
+ kid?: string | undefined;
759
+ alg?: string | undefined;
758
760
  crv?: string | undefined;
759
761
  x?: string | undefined;
760
762
  y?: string | undefined;
761
763
  d?: string | undefined;
762
764
  e?: string | undefined;
763
765
  n?: string | undefined;
764
- kid?: string | undefined;
765
- alg?: string | undefined;
766
766
  use?: string | undefined;
767
767
  key_ops?: string[] | undefined;
768
768
  } | undefined;
@@ -1278,15 +1278,15 @@ declare const SpaceInfoSchema: z.ZodObject<{
1278
1278
  type: "owned" | "delegated";
1279
1279
  id: string;
1280
1280
  owner: string;
1281
- name?: string | undefined;
1282
1281
  expiresAt?: Date | undefined;
1282
+ name?: string | undefined;
1283
1283
  permissions?: string[] | undefined;
1284
1284
  }, {
1285
1285
  type: "owned" | "delegated";
1286
1286
  id: string;
1287
1287
  owner: string;
1288
- name?: string | undefined;
1289
1288
  expiresAt?: Date | undefined;
1289
+ name?: string | undefined;
1290
1290
  permissions?: string[] | undefined;
1291
1291
  }>;
1292
1292
  type SpaceInfo = z.infer<typeof SpaceInfoSchema>;
@@ -1367,6 +1367,7 @@ declare const ShareLinkSchema: z.ZodObject<{
1367
1367
  /** Human-readable description of what is being shared */
1368
1368
  description: z.ZodOptional<z.ZodString>;
1369
1369
  }, "strip", z.ZodTypeAny, {
1370
+ schema: "base64" | "compact" | "ipfs";
1370
1371
  delegation: {
1371
1372
  path: string;
1372
1373
  expiry: Date;
@@ -1382,12 +1383,12 @@ declare const ShareLinkSchema: z.ZodObject<{
1382
1383
  allowSubDelegation?: boolean | undefined;
1383
1384
  authHeader?: string | undefined;
1384
1385
  };
1385
- schema: "base64" | "compact" | "ipfs";
1386
1386
  token: string;
1387
1387
  url: string;
1388
- description?: string | undefined;
1389
1388
  expiresAt?: Date | undefined;
1389
+ description?: string | undefined;
1390
1390
  }, {
1391
+ schema: "base64" | "compact" | "ipfs";
1391
1392
  delegation: {
1392
1393
  path: string;
1393
1394
  expiry: Date;
@@ -1403,11 +1404,10 @@ declare const ShareLinkSchema: z.ZodObject<{
1403
1404
  allowSubDelegation?: boolean | undefined;
1404
1405
  authHeader?: string | undefined;
1405
1406
  };
1406
- schema: "base64" | "compact" | "ipfs";
1407
1407
  token: string;
1408
1408
  url: string;
1409
- description?: string | undefined;
1410
1409
  expiresAt?: Date | undefined;
1410
+ description?: string | undefined;
1411
1411
  }>;
1412
1412
  type ShareLink = z.infer<typeof ShareLinkSchema>;
1413
1413
  type ShareLinkData<T = unknown> = {
@@ -1462,16 +1462,16 @@ declare const GenerateShareParamsSchema: z.ZodObject<{
1462
1462
  baseUrl: z.ZodOptional<z.ZodString>;
1463
1463
  }, "strip", z.ZodTypeAny, {
1464
1464
  path: string;
1465
+ description?: string | undefined;
1465
1466
  schema?: "base64" | "compact" | "ipfs" | undefined;
1466
1467
  expiry?: Date | undefined;
1467
- description?: string | undefined;
1468
1468
  actions?: string[] | undefined;
1469
1469
  baseUrl?: string | undefined;
1470
1470
  }, {
1471
1471
  path: string;
1472
+ description?: string | undefined;
1472
1473
  schema?: "base64" | "compact" | "ipfs" | undefined;
1473
1474
  expiry?: Date | undefined;
1474
- description?: string | undefined;
1475
1475
  actions?: string[] | undefined;
1476
1476
  baseUrl?: string | undefined;
1477
1477
  }>;
@@ -2405,6 +2405,54 @@ interface ShareCapabilityLike {
2405
2405
  }
2406
2406
  declare function shareCapabilityAllows(capability: ShareCapabilityLike, action: ShareAction, path: string): boolean;
2407
2407
 
2408
+ /** Transport form shared by addressed-share recipients and normal agents. */
2409
+ interface PortableDelegation {
2410
+ readonly cid: string;
2411
+ readonly delegationHeader: {
2412
+ readonly Authorization: string;
2413
+ };
2414
+ readonly ownerAddress: string;
2415
+ readonly chainId: number;
2416
+ readonly host?: string;
2417
+ readonly spaceId: string;
2418
+ readonly path: string;
2419
+ readonly actions: readonly string[];
2420
+ readonly caveats?: readonly Record<string, unknown>[];
2421
+ readonly expiry: Date;
2422
+ readonly delegateDID: string;
2423
+ readonly delegatorDID?: string;
2424
+ readonly parentCid?: string;
2425
+ readonly disableSubDelegation?: boolean;
2426
+ readonly resources?: readonly DelegatedResource[];
2427
+ }
2428
+ /** Validate a normal delegation received from a v3 claim/admission response. */
2429
+ declare function parsePortableDelegation(input: unknown): PortableDelegation;
2430
+ declare function serializePortableDelegation(delegation: PortableDelegation): string;
2431
+ interface PortableDelegationImportReceipt {
2432
+ readonly activated?: readonly string[];
2433
+ readonly skipped?: readonly string[];
2434
+ readonly [key: string]: unknown;
2435
+ }
2436
+ /** Admit a normal delegation through POST /delegate. */
2437
+ declare function importPortableDelegation(fetchFn: FetchFunction, host: string, delegation: PortableDelegation): Promise<PortableDelegationImportReceipt>;
2438
+ /**
2439
+ * Create and admit an ordinary protected descendant below a v3 policy
2440
+ * session. This is the recipient-to-agent path; it deliberately bypasses the
2441
+ * legacy `prepareSession`/`rawAbilities` builder because that builder cannot
2442
+ * preserve the signed policy fact or the exact immediate-parent proof.
2443
+ */
2444
+ declare function delegatePortablePolicySession(input: {
2445
+ readonly fetch: FetchFunction;
2446
+ readonly host: string;
2447
+ readonly parent: PortableDelegation;
2448
+ readonly issuerPrivateKey: Uint8Array;
2449
+ readonly delegateDID: string;
2450
+ readonly attenuation: Readonly<Record<string, Readonly<Record<string, readonly unknown[]>>>>;
2451
+ readonly now?: number;
2452
+ readonly expiresAt?: number;
2453
+ readonly nonce?: string;
2454
+ }): Promise<PortableDelegation>;
2455
+
2408
2456
  /** Native action names used by the addressed Node data plane. */
2409
2457
  type ShareNativeAction = "tinycloud.kv/get" | "tinycloud.kv/metadata" | "tinycloud.kv/list" | "tinycloud.kv/put";
2410
2458
  type ShareWireAction = ShareNativeAction | "tinycloud.sql/read";
@@ -2580,6 +2628,10 @@ interface ShareRecipientClientOptions {
2580
2628
  * generic KV bearer session.
2581
2629
  */
2582
2630
  readonly nativeInvoke?: (input: ShareNativeInvokeInput) => Promise<ShareNativeInvokeResult>;
2631
+ /** Import a normal policy-session UCAN through the caller's delegation manager. */
2632
+ readonly importDelegation?: (delegation: PortableDelegation) => Promise<void | PortableDelegation>;
2633
+ /** Extractable Ed25519 recipient seed used only to sign fresh S0 descendants/invocations. */
2634
+ readonly policySessionPrivateKey?: Uint8Array;
2583
2635
  /** Optional holder signer for the built-in addressed /invoke transport. */
2584
2636
  readonly signNativeInvoke?: (input: {
2585
2637
  readonly envelope: ShareEnvelopeV2;
@@ -2766,6 +2818,8 @@ interface ShareAccessV2 {
2766
2818
  readonly resource: ShareResource;
2767
2819
  readonly actions: readonly ShareAction[];
2768
2820
  readonly expiresAt: Date;
2821
+ /** The normal UCAN admitted for this recipient, when the link is v3. */
2822
+ readonly portableDelegation?: PortableDelegation;
2769
2823
  readonly kv?: IKVService;
2770
2824
  readonly get: (path?: string) => Promise<ShareReadResult>;
2771
2825
  readonly listChildren: (options?: {
@@ -3200,6 +3254,9 @@ declare class ShareRecipientClient {
3200
3254
  private readonly now;
3201
3255
  constructor(options: ShareRecipientClientOptions);
3202
3256
  open(link: string): Promise<ShareAccessV2>;
3257
+ private policySessionDelegation;
3258
+ private policyInvocationSigner;
3259
+ private policySessionProjection;
3203
3260
  private createKV;
3204
3261
  private nativeGet;
3205
3262
  private nativeMetadata;
@@ -3757,8 +3814,8 @@ declare const ShareRecipientPolicySchema: z.ZodObject<{
3757
3814
  actions: z.ZodArray<z.ZodEnum<["read", "list", "edit"]>, "many">;
3758
3815
  expiresAt: z.ZodDate;
3759
3816
  }, "strict", z.ZodTypeAny, {
3760
- actions: ("list" | "read" | "edit")[];
3761
3817
  expiresAt: Date;
3818
+ actions: ("list" | "read" | "edit")[];
3762
3819
  resource: {
3763
3820
  path: string;
3764
3821
  kind: "exact";
@@ -3780,8 +3837,8 @@ declare const ShareRecipientPolicySchema: z.ZodObject<{
3780
3837
  kind: "bearer";
3781
3838
  };
3782
3839
  }, {
3783
- actions: ("list" | "read" | "edit")[];
3784
3840
  expiresAt: Date;
3841
+ actions: ("list" | "read" | "edit")[];
3785
3842
  resource: {
3786
3843
  path: string;
3787
3844
  kind: "exact";
@@ -3870,13 +3927,13 @@ declare const ShareAddressedDelegationRequestV2Schema: z.ZodObject<{
3870
3927
  }, "strict", z.ZodTypeAny, {
3871
3928
  path: string;
3872
3929
  space: string;
3873
- action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
3874
3930
  kind: "kv";
3931
+ action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
3875
3932
  }, {
3876
3933
  path: string;
3877
3934
  space: string;
3878
- action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
3879
3935
  kind: "kv";
3936
+ action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
3880
3937
  }>, z.ZodObject<{
3881
3938
  kind: z.ZodLiteral<"sql">;
3882
3939
  action: z.ZodLiteral<"tinycloud.sql/read">;
@@ -3890,8 +3947,8 @@ declare const ShareAddressedDelegationRequestV2Schema: z.ZodObject<{
3890
3947
  path: string;
3891
3948
  statement: string;
3892
3949
  space: string;
3893
- action: "tinycloud.sql/read";
3894
3950
  kind: "sql";
3951
+ action: "tinycloud.sql/read";
3895
3952
  database: string;
3896
3953
  arguments: Record<string, number>;
3897
3954
  argumentsDigest: string;
@@ -3899,8 +3956,8 @@ declare const ShareAddressedDelegationRequestV2Schema: z.ZodObject<{
3899
3956
  path: string;
3900
3957
  statement: string;
3901
3958
  space: string;
3902
- action: "tinycloud.sql/read";
3903
3959
  kind: "sql";
3960
+ action: "tinycloud.sql/read";
3904
3961
  database: string;
3905
3962
  arguments: Record<string, number>;
3906
3963
  argumentsDigest: string;
@@ -3921,42 +3978,42 @@ declare const ShareAddressedDelegationRequestV2Schema: z.ZodObject<{
3921
3978
  requestBodyDigest: z.ZodString;
3922
3979
  }, "strict", z.ZodTypeAny, {
3923
3980
  nonce: string;
3924
- actions: ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[];
3981
+ jti: string;
3925
3982
  expiresAt: string;
3983
+ version: 2;
3984
+ actions: ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[];
3926
3985
  resource: {
3927
3986
  value: string;
3928
3987
  kind: "exact" | "prefix";
3929
3988
  };
3930
- version: 2;
3931
- shareId: string;
3932
- recipientMatcher: {
3933
- value: string;
3934
- kind: "exactEmail";
3935
- } | {
3936
- value: string;
3937
- kind: "emailDomain";
3938
- } | {
3939
- value: string;
3940
- kind: "recipientDid";
3941
- };
3942
3989
  nodeAudience: string;
3943
3990
  contentSource: {
3944
3991
  path: string;
3945
3992
  space: string;
3946
- action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
3947
3993
  kind: "kv";
3994
+ action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
3948
3995
  } | {
3949
3996
  path: string;
3950
3997
  statement: string;
3951
3998
  space: string;
3952
- action: "tinycloud.sql/read";
3953
3999
  kind: "sql";
4000
+ action: "tinycloud.sql/read";
3954
4001
  database: string;
3955
4002
  arguments: Record<string, number>;
3956
4003
  argumentsDigest: string;
3957
4004
  };
4005
+ shareId: string;
4006
+ recipientMatcher: {
4007
+ value: string;
4008
+ kind: "exactEmail";
4009
+ } | {
4010
+ value: string;
4011
+ kind: "emailDomain";
4012
+ } | {
4013
+ value: string;
4014
+ kind: "recipientDid";
4015
+ };
3958
4016
  contentSourceDigest: string;
3959
- jti: string;
3960
4017
  senderDid: string;
3961
4018
  targetOrigin: string;
3962
4019
  shareCid: string;
@@ -3966,42 +4023,42 @@ declare const ShareAddressedDelegationRequestV2Schema: z.ZodObject<{
3966
4023
  requestBodyDigest: string;
3967
4024
  }, {
3968
4025
  nonce: string;
3969
- actions: ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[];
4026
+ jti: string;
3970
4027
  expiresAt: string;
4028
+ version: 2;
4029
+ actions: ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[];
3971
4030
  resource: {
3972
4031
  value: string;
3973
4032
  kind: "exact" | "prefix";
3974
4033
  };
3975
- version: 2;
3976
- shareId: string;
3977
- recipientMatcher: {
3978
- value: string;
3979
- kind: "exactEmail";
3980
- } | {
3981
- value: string;
3982
- kind: "emailDomain";
3983
- } | {
3984
- value: string;
3985
- kind: "recipientDid";
3986
- };
3987
4034
  nodeAudience: string;
3988
4035
  contentSource: {
3989
4036
  path: string;
3990
4037
  space: string;
3991
- action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
3992
4038
  kind: "kv";
4039
+ action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
3993
4040
  } | {
3994
4041
  path: string;
3995
4042
  statement: string;
3996
4043
  space: string;
3997
- action: "tinycloud.sql/read";
3998
4044
  kind: "sql";
4045
+ action: "tinycloud.sql/read";
3999
4046
  database: string;
4000
4047
  arguments: Record<string, number>;
4001
4048
  argumentsDigest: string;
4002
4049
  };
4050
+ shareId: string;
4051
+ recipientMatcher: {
4052
+ value: string;
4053
+ kind: "exactEmail";
4054
+ } | {
4055
+ value: string;
4056
+ kind: "emailDomain";
4057
+ } | {
4058
+ value: string;
4059
+ kind: "recipientDid";
4060
+ };
4003
4061
  contentSourceDigest: string;
4004
- jti: string;
4005
4062
  senderDid: string;
4006
4063
  targetOrigin: string;
4007
4064
  shareCid: string;
@@ -4059,13 +4116,13 @@ declare const ShareAddressedDelegationEnvelopeV2Schema: z.ZodObject<{
4059
4116
  }, "strict", z.ZodTypeAny, {
4060
4117
  path: string;
4061
4118
  space: string;
4062
- action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
4063
4119
  kind: "kv";
4120
+ action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
4064
4121
  }, {
4065
4122
  path: string;
4066
4123
  space: string;
4067
- action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
4068
4124
  kind: "kv";
4125
+ action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
4069
4126
  }>, z.ZodObject<{
4070
4127
  kind: z.ZodLiteral<"sql">;
4071
4128
  action: z.ZodLiteral<"tinycloud.sql/read">;
@@ -4079,8 +4136,8 @@ declare const ShareAddressedDelegationEnvelopeV2Schema: z.ZodObject<{
4079
4136
  path: string;
4080
4137
  statement: string;
4081
4138
  space: string;
4082
- action: "tinycloud.sql/read";
4083
4139
  kind: "sql";
4140
+ action: "tinycloud.sql/read";
4084
4141
  database: string;
4085
4142
  arguments: Record<string, number>;
4086
4143
  argumentsDigest: string;
@@ -4088,8 +4145,8 @@ declare const ShareAddressedDelegationEnvelopeV2Schema: z.ZodObject<{
4088
4145
  path: string;
4089
4146
  statement: string;
4090
4147
  space: string;
4091
- action: "tinycloud.sql/read";
4092
4148
  kind: "sql";
4149
+ action: "tinycloud.sql/read";
4093
4150
  database: string;
4094
4151
  arguments: Record<string, number>;
4095
4152
  argumentsDigest: string;
@@ -4110,42 +4167,42 @@ declare const ShareAddressedDelegationEnvelopeV2Schema: z.ZodObject<{
4110
4167
  requestBodyDigest: z.ZodString;
4111
4168
  }, "strict", z.ZodTypeAny, {
4112
4169
  nonce: string;
4113
- actions: ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[];
4170
+ jti: string;
4114
4171
  expiresAt: string;
4172
+ version: 2;
4173
+ actions: ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[];
4115
4174
  resource: {
4116
4175
  value: string;
4117
4176
  kind: "exact" | "prefix";
4118
4177
  };
4119
- version: 2;
4120
- shareId: string;
4121
- recipientMatcher: {
4122
- value: string;
4123
- kind: "exactEmail";
4124
- } | {
4125
- value: string;
4126
- kind: "emailDomain";
4127
- } | {
4128
- value: string;
4129
- kind: "recipientDid";
4130
- };
4131
4178
  nodeAudience: string;
4132
4179
  contentSource: {
4133
4180
  path: string;
4134
4181
  space: string;
4135
- action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
4136
4182
  kind: "kv";
4183
+ action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
4137
4184
  } | {
4138
4185
  path: string;
4139
4186
  statement: string;
4140
4187
  space: string;
4141
- action: "tinycloud.sql/read";
4142
4188
  kind: "sql";
4189
+ action: "tinycloud.sql/read";
4143
4190
  database: string;
4144
4191
  arguments: Record<string, number>;
4145
4192
  argumentsDigest: string;
4146
4193
  };
4194
+ shareId: string;
4195
+ recipientMatcher: {
4196
+ value: string;
4197
+ kind: "exactEmail";
4198
+ } | {
4199
+ value: string;
4200
+ kind: "emailDomain";
4201
+ } | {
4202
+ value: string;
4203
+ kind: "recipientDid";
4204
+ };
4147
4205
  contentSourceDigest: string;
4148
- jti: string;
4149
4206
  senderDid: string;
4150
4207
  targetOrigin: string;
4151
4208
  shareCid: string;
@@ -4155,42 +4212,42 @@ declare const ShareAddressedDelegationEnvelopeV2Schema: z.ZodObject<{
4155
4212
  requestBodyDigest: string;
4156
4213
  }, {
4157
4214
  nonce: string;
4158
- actions: ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[];
4215
+ jti: string;
4159
4216
  expiresAt: string;
4217
+ version: 2;
4218
+ actions: ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[];
4160
4219
  resource: {
4161
4220
  value: string;
4162
4221
  kind: "exact" | "prefix";
4163
4222
  };
4164
- version: 2;
4165
- shareId: string;
4166
- recipientMatcher: {
4167
- value: string;
4168
- kind: "exactEmail";
4169
- } | {
4170
- value: string;
4171
- kind: "emailDomain";
4172
- } | {
4173
- value: string;
4174
- kind: "recipientDid";
4175
- };
4176
4223
  nodeAudience: string;
4177
4224
  contentSource: {
4178
4225
  path: string;
4179
4226
  space: string;
4180
- action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
4181
4227
  kind: "kv";
4228
+ action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
4182
4229
  } | {
4183
4230
  path: string;
4184
4231
  statement: string;
4185
4232
  space: string;
4186
- action: "tinycloud.sql/read";
4187
4233
  kind: "sql";
4234
+ action: "tinycloud.sql/read";
4188
4235
  database: string;
4189
4236
  arguments: Record<string, number>;
4190
4237
  argumentsDigest: string;
4191
4238
  };
4239
+ shareId: string;
4240
+ recipientMatcher: {
4241
+ value: string;
4242
+ kind: "exactEmail";
4243
+ } | {
4244
+ value: string;
4245
+ kind: "emailDomain";
4246
+ } | {
4247
+ value: string;
4248
+ kind: "recipientDid";
4249
+ };
4192
4250
  contentSourceDigest: string;
4193
- jti: string;
4194
4251
  senderDid: string;
4195
4252
  targetOrigin: string;
4196
4253
  shareCid: string;
@@ -4215,42 +4272,42 @@ declare const ShareAddressedDelegationEnvelopeV2Schema: z.ZodObject<{
4215
4272
  }, "strict", z.ZodTypeAny, {
4216
4273
  request: {
4217
4274
  nonce: string;
4218
- actions: ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[];
4275
+ jti: string;
4219
4276
  expiresAt: string;
4277
+ version: 2;
4278
+ actions: ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[];
4220
4279
  resource: {
4221
4280
  value: string;
4222
4281
  kind: "exact" | "prefix";
4223
4282
  };
4224
- version: 2;
4225
- shareId: string;
4226
- recipientMatcher: {
4227
- value: string;
4228
- kind: "exactEmail";
4229
- } | {
4230
- value: string;
4231
- kind: "emailDomain";
4232
- } | {
4233
- value: string;
4234
- kind: "recipientDid";
4235
- };
4236
4283
  nodeAudience: string;
4237
4284
  contentSource: {
4238
4285
  path: string;
4239
4286
  space: string;
4240
- action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
4241
4287
  kind: "kv";
4288
+ action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
4242
4289
  } | {
4243
4290
  path: string;
4244
4291
  statement: string;
4245
4292
  space: string;
4246
- action: "tinycloud.sql/read";
4247
4293
  kind: "sql";
4294
+ action: "tinycloud.sql/read";
4248
4295
  database: string;
4249
4296
  arguments: Record<string, number>;
4250
4297
  argumentsDigest: string;
4251
4298
  };
4299
+ shareId: string;
4300
+ recipientMatcher: {
4301
+ value: string;
4302
+ kind: "exactEmail";
4303
+ } | {
4304
+ value: string;
4305
+ kind: "emailDomain";
4306
+ } | {
4307
+ value: string;
4308
+ kind: "recipientDid";
4309
+ };
4252
4310
  contentSourceDigest: string;
4253
- jti: string;
4254
4311
  senderDid: string;
4255
4312
  targetOrigin: string;
4256
4313
  shareCid: string;
@@ -4267,42 +4324,42 @@ declare const ShareAddressedDelegationEnvelopeV2Schema: z.ZodObject<{
4267
4324
  }, {
4268
4325
  request: {
4269
4326
  nonce: string;
4270
- actions: ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[];
4327
+ jti: string;
4271
4328
  expiresAt: string;
4329
+ version: 2;
4330
+ actions: ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[];
4272
4331
  resource: {
4273
4332
  value: string;
4274
4333
  kind: "exact" | "prefix";
4275
4334
  };
4276
- version: 2;
4277
- shareId: string;
4278
- recipientMatcher: {
4279
- value: string;
4280
- kind: "exactEmail";
4281
- } | {
4282
- value: string;
4283
- kind: "emailDomain";
4284
- } | {
4285
- value: string;
4286
- kind: "recipientDid";
4287
- };
4288
4335
  nodeAudience: string;
4289
4336
  contentSource: {
4290
4337
  path: string;
4291
4338
  space: string;
4292
- action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
4293
4339
  kind: "kv";
4340
+ action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
4294
4341
  } | {
4295
4342
  path: string;
4296
4343
  statement: string;
4297
4344
  space: string;
4298
- action: "tinycloud.sql/read";
4299
4345
  kind: "sql";
4346
+ action: "tinycloud.sql/read";
4300
4347
  database: string;
4301
4348
  arguments: Record<string, number>;
4302
4349
  argumentsDigest: string;
4303
4350
  };
4351
+ shareId: string;
4352
+ recipientMatcher: {
4353
+ value: string;
4354
+ kind: "exactEmail";
4355
+ } | {
4356
+ value: string;
4357
+ kind: "emailDomain";
4358
+ } | {
4359
+ value: string;
4360
+ kind: "recipientDid";
4361
+ };
4304
4362
  contentSourceDigest: string;
4305
- jti: string;
4306
4363
  senderDid: string;
4307
4364
  targetOrigin: string;
4308
4365
  shareCid: string;
@@ -4358,48 +4415,48 @@ declare const ShareAddressedDelegationResponseV2Schema: z.ZodObject<{
4358
4415
  }, "strict", z.ZodTypeAny, {
4359
4416
  type: "TinyCloudShareAddressedDelegation";
4360
4417
  nonce: string;
4361
- actions: ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[];
4418
+ proof: {
4419
+ signature: string;
4420
+ kid: string;
4421
+ alg: "EdDSA";
4422
+ };
4423
+ jti: string;
4362
4424
  expiresAt: string;
4425
+ version: 2;
4426
+ actions: ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[];
4363
4427
  resource: {
4364
4428
  value: string;
4365
4429
  kind: "exact" | "prefix";
4366
4430
  };
4367
- version: 2;
4368
4431
  policyCid: string;
4369
4432
  policyBytes: string;
4370
- jti: string;
4371
4433
  delegationCid: string;
4372
4434
  authorityMaterialHandle: string;
4373
4435
  authorityMaterialDigest: string;
4374
- proof: {
4375
- signature: string;
4376
- kid: string;
4377
- alg: "EdDSA";
4378
- };
4379
4436
  policyDigest: string;
4380
4437
  delegationBytes: string;
4381
4438
  delegationDigest: string;
4382
4439
  }, {
4383
4440
  type: "TinyCloudShareAddressedDelegation";
4384
4441
  nonce: string;
4385
- actions: ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[];
4442
+ proof: {
4443
+ signature: string;
4444
+ kid: string;
4445
+ alg: "EdDSA";
4446
+ };
4447
+ jti: string;
4386
4448
  expiresAt: string;
4449
+ version: 2;
4450
+ actions: ("tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata" | "tinycloud.sql/read")[];
4387
4451
  resource: {
4388
4452
  value: string;
4389
4453
  kind: "exact" | "prefix";
4390
4454
  };
4391
- version: 2;
4392
4455
  policyCid: string;
4393
4456
  policyBytes: string;
4394
- jti: string;
4395
4457
  delegationCid: string;
4396
4458
  authorityMaterialHandle: string;
4397
4459
  authorityMaterialDigest: string;
4398
- proof: {
4399
- signature: string;
4400
- kid: string;
4401
- alg: "EdDSA";
4402
- };
4403
4460
  policyDigest: string;
4404
4461
  delegationBytes: string;
4405
4462
  delegationDigest: string;
@@ -4413,18 +4470,18 @@ declare const ShareNativeResponseSchema: z.ZodDiscriminatedUnion<"action", [z.Zo
4413
4470
  resource: z.ZodString;
4414
4471
  }, "strict", z.ZodTypeAny, {
4415
4472
  type: "TinyCloudShareInvokeResponse";
4473
+ version: 2;
4474
+ etag: string | null;
4416
4475
  metadata: Record<string, string>;
4417
4476
  resource: string;
4418
4477
  action: "tinycloud.kv/metadata";
4419
- version: 2;
4420
- etag: string | null;
4421
4478
  }, {
4422
4479
  type: "TinyCloudShareInvokeResponse";
4480
+ version: 2;
4481
+ etag: string | null;
4423
4482
  metadata: Record<string, string>;
4424
4483
  resource: string;
4425
4484
  action: "tinycloud.kv/metadata";
4426
- version: 2;
4427
- etag: string | null;
4428
4485
  }>, z.ZodObject<{
4429
4486
  action: z.ZodLiteral<"tinycloud.kv/get">;
4430
4487
  mediaType: z.ZodString;
@@ -4436,20 +4493,20 @@ declare const ShareNativeResponseSchema: z.ZodDiscriminatedUnion<"action", [z.Zo
4436
4493
  resource: z.ZodString;
4437
4494
  }, "strict", z.ZodTypeAny, {
4438
4495
  type: "TinyCloudShareInvokeResponse";
4496
+ version: 2;
4497
+ etag: string | null;
4439
4498
  resource: string;
4440
4499
  action: "tinycloud.kv/get";
4441
- version: 2;
4442
4500
  content: string;
4443
- etag: string | null;
4444
4501
  mediaType: string;
4445
4502
  bodyDigest: string;
4446
4503
  }, {
4447
4504
  type: "TinyCloudShareInvokeResponse";
4505
+ version: 2;
4506
+ etag: string | null;
4448
4507
  resource: string;
4449
4508
  action: "tinycloud.kv/get";
4450
- version: 2;
4451
4509
  content: string;
4452
- etag: string | null;
4453
4510
  mediaType: string;
4454
4511
  bodyDigest: string;
4455
4512
  }>, z.ZodObject<{
@@ -4474,20 +4531,20 @@ declare const ShareNativeResponseSchema: z.ZodDiscriminatedUnion<"action", [z.Zo
4474
4531
  path: string;
4475
4532
  kind: "folder" | "file";
4476
4533
  }[];
4534
+ version: 2;
4477
4535
  resource: string;
4478
4536
  action: "tinycloud.kv/list";
4479
4537
  nextCursor: string | null;
4480
- version: 2;
4481
4538
  }, {
4482
4539
  type: "TinyCloudShareInvokeResponse";
4483
4540
  entries: {
4484
4541
  path: string;
4485
4542
  kind: "folder" | "file";
4486
4543
  }[];
4544
+ version: 2;
4487
4545
  resource: string;
4488
4546
  action: "tinycloud.kv/list";
4489
4547
  nextCursor: string | null;
4490
- version: 2;
4491
4548
  }>, z.ZodObject<{
4492
4549
  action: z.ZodLiteral<"tinycloud.kv/put">;
4493
4550
  etag: z.ZodString;
@@ -4498,21 +4555,21 @@ declare const ShareNativeResponseSchema: z.ZodDiscriminatedUnion<"action", [z.Zo
4498
4555
  resource: z.ZodString;
4499
4556
  }, "strict", z.ZodTypeAny, {
4500
4557
  type: "TinyCloudShareInvokeResponse";
4501
- resource: string;
4502
- action: "tinycloud.kv/put";
4503
4558
  version: 2;
4504
4559
  etag: string;
4560
+ resource: string;
4561
+ action: "tinycloud.kv/put";
4505
4562
  bodyDigest: string;
4506
4563
  contentType: string;
4507
4564
  }, {
4508
4565
  type: "TinyCloudShareInvokeResponse";
4509
- resource: string;
4510
- action: "tinycloud.kv/put";
4511
4566
  version: 2;
4512
4567
  etag: string;
4568
+ resource: string;
4569
+ action: "tinycloud.kv/put";
4513
4570
  bodyDigest: string;
4514
4571
  contentType: string;
4515
4572
  }>]>;
4516
4573
  type ShareNativeResponse = z.infer<typeof ShareNativeResponseSchema>;
4517
4574
 
4518
- export { type RegisterOwnerSharePolicyParams as $, type AccountDelegationPage as A, type KeyProvider as B, type CapabilityEntry as C, DelegationManager as D, type EncodedShareData as E, type KeyType as F, type GenerateShareParams as G, MAX_SEALED_SHARE_CONTENT_BYTES as H, type ICapabilityKeyRegistry as I, type JWK as J, type KeyInfo as K, MAX_SHARE_ARTIFACT_BYTES as L, MAX_CONTENT_BYTES as M, MAX_SHARE_CONTENT_BYTES as N, MemorySenderShareKeyStorage as O, MemorySenderShareRecordStorage as P, MemoryShareCache as Q, type Result as R, type OwnerDelegationPermission as S, type OwnerDelegationReceipt as T, type OwnerShareAction as U, type OwnerShareDecryption as V, type OwnerShareMatcher as W, type OwnerSharePolicyRegistration as X, type OwnerSharePolicyRegistrationReceipt as Y, type OwnerSharePolicyV2 as Z, type ReceiveOptions as _, type DelegationError as a, type ShareRecipientTarget as a$, SHARE_DELIVERY_AUTHORIZATION_DOMAIN as a0, type SenderShareKeyStorage as a1, type SenderShareRecord as a2, type SenderShareRecordStorage as a3, type SenderShareRevocationScope as a4, SenderShareStore as a5, type ShareAccess as a6, ShareAccessError as a7, type ShareAccessV2 as a8, type ShareAction as a9, type ShareKvContentSource as aA, type ShareLink as aB, type ShareLinkData as aC, type ShareLinkLocation as aD, type ShareListEntry as aE, type ShareListResult as aF, type ShareNativeAction as aG, type ShareNativeInvokeEnvelopeV1 as aH, type ShareNativeInvokeErrorResult as aI, type ShareNativeInvokeInput as aJ, type ShareNativeInvokeResult as aK, type ShareNativeInvokeSuccessResult as aL, type ShareNativeResponse as aM, ShareNativeResponseSchema as aN, type SharePolicy as aO, type SharePolicyBinding as aP, type SharePolicySession as aQ, type SharePolicySessionV1 as aR, type SharePolicySessionWireV1 as aS, type ShareReadInvocationV1 as aT, type ShareReadResult as aU, ShareRecipientClient as aV, type ShareRecipientClientOptions as aW, ShareRecipientClientOptionsSchema as aX, type ShareRecipientPolicy as aY, ShareRecipientPolicySchema as aZ, type ShareRecipientResult as a_, ShareActionSchema as aa, type ShareAddressedDelegationEnvelopeV2 as ab, ShareAddressedDelegationEnvelopeV2Schema as ac, type ShareAddressedDelegationRequestV2 as ad, ShareAddressedDelegationRequestV2Schema as ae, type ShareAddressedDelegationResponseV2 as af, ShareAddressedDelegationResponseV2Schema as ag, type ShareAddressedRecipientMatcher as ah, type ShareArtifactInput as ai, type ShareArtifactResult as aj, type ShareArtifactV2 as ak, type ShareCache as al, type ShareCacheEntry as am, type ShareCacheKey as an, type ShareCacheMetadata as ao, type ShareCapabilityLike as ap, ShareConflict as aq, type ShareContentMetadata as ar, type ShareContentSource as as, type ShareDeliveryAuthorization as at, type ShareDeliveryAuthorizationReceipt as au, type ShareDeliveryAuthorizationRequest as av, type ShareDetachedProof as aw, ShareEnvelopeError as ax, type ShareEnvelopeV2 as ay, type ShareExpiryBounds as az, type AccountDelegationQueryOptions as b, ShareRecipientTargetSchema as b0, type ShareResource as b1, ShareResourceSchema as b2, type ShareSaveOptions as b3, type ShareSchema as b4, type ShareSqlContentSource as b5, type ShareWireAction as b6, SharingService as b7, type SharingServiceConfig as b8, type SignedDelegation as b9, restoreDelegatedShareKey as bA, shareCapabilityAllows as bB, shareDeliveryTrustedKid as bC, signShareEnvelope as bD, validateOwnerSharePolicyRegistration as bE, validateOwnerSharePolicyRegistrationBytes as bF, validateShareDeliveryAuthorizationBytes as bG, verifyShareCid as bH, verifyShareEnvelope as bI, CapabilityKeyRegistry as bJ, type CapabilityKeyRegistryErrorCode as bK, CapabilityKeyRegistryErrorCodes as bL, type StoredDelegationChain as bM, createCapabilityKeyRegistry as bN, type SpaceInfo as ba, type SpaceOwnership as bb, type ValidateShareDeliveryAuthorizationExpected as bc, type VerifyShareEnvelopeOptions as bd, canonicalOwnerSharePolicy as be, computeOwnerShareRegistrationCid as bf, computeShareCid as bg, createDelegatedShareKey as bh, createPolicyEnforcementDelegation as bi, createShareArtifact as bj, createShareArtifactAsync as bk, createSharePolicy as bl, createSharingService as bm, decryptShareBytesAsync as bn, encodeInlineShareUrl as bo, encodeShareArtifact as bp, encodeShareUrl as bq, encryptShareBytes as br, encryptShareBytesAsync as bs, intersectShareCapabilities as bt, isV2ShareLink as bu, normalizeShareActions as bv, normalizeShareRecipientTarget as bw, normalizeShareResource as bx, parseShareArtifact as by, parseShareUrl as bz, type AccountDelegationRecord as c, type AccountDelegationResource as d, type CreateDelegationParams as e, type CreateDelegationWasmParams as f, type CreateDelegationWasmResult as g, type CreateOwnerDelegationParams as h, type DelegateReceivedShareParams as i, type DelegatedResource as j, type DelegatedShareAccess as k, type DelegatedShareKey as l, type Delegation as m, type DelegationApiResponse as n, type DelegationChain as o, type DelegationChainV2 as p, type DelegationDirection as q, type DelegationErrorCode as r, DelegationErrorCodes as s, type DelegationFilters as t, type DelegationManagerConfig as u, type DelegationRecord as v, type DelegationRevocationReceipt as w, type DelegationStatus as x, type ISharingService as y, type IngestOptions as z };
4575
+ export { type ReceiveOptions as $, type AccountDelegationPage as A, type KeyProvider as B, type CapabilityEntry as C, DelegationManager as D, type EncodedShareData as E, type KeyType as F, type GenerateShareParams as G, MAX_SEALED_SHARE_CONTENT_BYTES as H, type ICapabilityKeyRegistry as I, type JWK as J, type KeyInfo as K, MAX_SHARE_ARTIFACT_BYTES as L, MAX_CONTENT_BYTES as M, MAX_SHARE_CONTENT_BYTES as N, MemorySenderShareKeyStorage as O, MemorySenderShareRecordStorage as P, MemoryShareCache as Q, type Result as R, type OwnerDelegationPermission as S, type OwnerDelegationReceipt as T, type OwnerShareAction as U, type OwnerShareDecryption as V, type OwnerShareMatcher as W, type OwnerSharePolicyRegistration as X, type OwnerSharePolicyRegistrationReceipt as Y, type OwnerSharePolicyV2 as Z, type PortableDelegationImportReceipt as _, type DelegationError as a, ShareRecipientPolicySchema as a$, type RegisterOwnerSharePolicyParams as a0, SHARE_DELIVERY_AUTHORIZATION_DOMAIN as a1, type SenderShareKeyStorage as a2, type SenderShareRecord as a3, type SenderShareRecordStorage as a4, type SenderShareRevocationScope as a5, SenderShareStore as a6, type ShareAccess as a7, ShareAccessError as a8, type ShareAccessV2 as a9, type ShareExpiryBounds as aA, type ShareKvContentSource as aB, type ShareLink as aC, type ShareLinkData as aD, type ShareLinkLocation as aE, type ShareListEntry as aF, type ShareListResult as aG, type ShareNativeAction as aH, type ShareNativeInvokeEnvelopeV1 as aI, type ShareNativeInvokeErrorResult as aJ, type ShareNativeInvokeInput as aK, type ShareNativeInvokeResult as aL, type ShareNativeInvokeSuccessResult as aM, type ShareNativeResponse as aN, ShareNativeResponseSchema as aO, type SharePolicy as aP, type SharePolicyBinding as aQ, type SharePolicySession as aR, type SharePolicySessionV1 as aS, type SharePolicySessionWireV1 as aT, type PortableDelegation as aU, type ShareReadInvocationV1 as aV, type ShareReadResult as aW, ShareRecipientClient as aX, type ShareRecipientClientOptions as aY, ShareRecipientClientOptionsSchema as aZ, type ShareRecipientPolicy as a_, type ShareAction as aa, ShareActionSchema as ab, type ShareAddressedDelegationEnvelopeV2 as ac, ShareAddressedDelegationEnvelopeV2Schema as ad, type ShareAddressedDelegationRequestV2 as ae, ShareAddressedDelegationRequestV2Schema as af, type ShareAddressedDelegationResponseV2 as ag, ShareAddressedDelegationResponseV2Schema as ah, type ShareAddressedRecipientMatcher as ai, type ShareArtifactInput as aj, type ShareArtifactResult as ak, type ShareArtifactV2 as al, type ShareCache as am, type ShareCacheEntry as an, type ShareCacheKey as ao, type ShareCacheMetadata as ap, type ShareCapabilityLike as aq, ShareConflict as ar, type ShareContentMetadata as as, type ShareContentSource as at, type ShareDeliveryAuthorization as au, type ShareDeliveryAuthorizationReceipt as av, type ShareDeliveryAuthorizationRequest as aw, type ShareDetachedProof as ax, ShareEnvelopeError as ay, type ShareEnvelopeV2 as az, type AccountDelegationQueryOptions as b, type ShareRecipientResult as b0, type ShareRecipientTarget as b1, ShareRecipientTargetSchema as b2, type ShareResource as b3, ShareResourceSchema as b4, type ShareSaveOptions as b5, type ShareSchema as b6, type ShareSqlContentSource as b7, type ShareWireAction as b8, SharingService as b9, normalizeShareRecipientTarget as bA, normalizeShareResource as bB, parsePortableDelegation as bC, parseShareArtifact as bD, parseShareUrl as bE, restoreDelegatedShareKey as bF, serializePortableDelegation as bG, shareCapabilityAllows as bH, shareDeliveryTrustedKid as bI, signShareEnvelope as bJ, validateOwnerSharePolicyRegistration as bK, validateOwnerSharePolicyRegistrationBytes as bL, validateShareDeliveryAuthorizationBytes as bM, verifyShareCid as bN, verifyShareEnvelope as bO, CapabilityKeyRegistry as bP, type CapabilityKeyRegistryErrorCode as bQ, CapabilityKeyRegistryErrorCodes as bR, type StoredDelegationChain as bS, createCapabilityKeyRegistry as bT, type SharingServiceConfig as ba, type SignedDelegation as bb, type SpaceInfo as bc, type SpaceOwnership as bd, type ValidateShareDeliveryAuthorizationExpected as be, type VerifyShareEnvelopeOptions as bf, canonicalOwnerSharePolicy as bg, computeOwnerShareRegistrationCid as bh, computeShareCid as bi, createDelegatedShareKey as bj, createPolicyEnforcementDelegation as bk, createShareArtifact as bl, createShareArtifactAsync as bm, createSharePolicy as bn, createSharingService as bo, decryptShareBytesAsync as bp, delegatePortablePolicySession as bq, encodeInlineShareUrl as br, encodeShareArtifact as bs, encodeShareUrl as bt, encryptShareBytes as bu, encryptShareBytesAsync as bv, importPortableDelegation as bw, intersectShareCapabilities as bx, isV2ShareLink as by, normalizeShareActions as bz, type AccountDelegationRecord as c, type AccountDelegationResource as d, type CreateDelegationParams as e, type CreateDelegationWasmParams as f, type CreateDelegationWasmResult as g, type CreateOwnerDelegationParams as h, type DelegateReceivedShareParams as i, type DelegatedResource as j, type DelegatedShareAccess as k, type DelegatedShareKey as l, type Delegation as m, type DelegationApiResponse as n, type DelegationChain as o, type DelegationChainV2 as p, type DelegationDirection as q, type DelegationErrorCode as r, DelegationErrorCodes as s, type DelegationFilters as t, type DelegationManagerConfig as u, type DelegationRecord as v, type DelegationRevocationReceipt as w, type DelegationStatus as x, type ISharingService as y, type IngestOptions as z };