@tinycloud/sdk-core 2.11.0-beta.10 → 2.11.0-beta.11

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,6 +49,7 @@ 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
+ alg?: string | undefined;
52
53
  crv?: string | undefined;
53
54
  x?: string | undefined;
54
55
  y?: string | undefined;
@@ -56,11 +57,11 @@ declare const JWKSchema: z.ZodObject<{
56
57
  e?: string | undefined;
57
58
  n?: string | undefined;
58
59
  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
+ alg?: string | undefined;
64
65
  crv?: string | undefined;
65
66
  x?: string | undefined;
66
67
  y?: string | undefined;
@@ -68,7 +69,6 @@ declare const JWKSchema: z.ZodObject<{
68
69
  e?: string | undefined;
69
70
  n?: string | undefined;
70
71
  kid?: string | undefined;
71
- alg?: string | undefined;
72
72
  use?: string | undefined;
73
73
  key_ops?: string[] | undefined;
74
74
  }>;
@@ -114,6 +114,7 @@ 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
+ alg?: string | undefined;
117
118
  crv?: string | undefined;
118
119
  x?: string | undefined;
119
120
  y?: string | undefined;
@@ -121,11 +122,11 @@ declare const KeyInfoSchema: z.ZodObject<{
121
122
  e?: string | undefined;
122
123
  n?: string | undefined;
123
124
  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
+ alg?: string | undefined;
129
130
  crv?: string | undefined;
130
131
  x?: string | undefined;
131
132
  y?: string | undefined;
@@ -133,7 +134,6 @@ declare const KeyInfoSchema: z.ZodObject<{
133
134
  e?: string | undefined;
134
135
  n?: string | undefined;
135
136
  kid?: string | undefined;
136
- alg?: string | undefined;
137
137
  use?: string | undefined;
138
138
  key_ops?: string[] | undefined;
139
139
  }>>;
@@ -146,6 +146,7 @@ declare const KeyInfoSchema: z.ZodObject<{
146
146
  priority: number;
147
147
  jwk?: {
148
148
  kty: string;
149
+ alg?: string | undefined;
149
150
  crv?: string | undefined;
150
151
  x?: string | undefined;
151
152
  y?: string | undefined;
@@ -153,7 +154,6 @@ declare const KeyInfoSchema: z.ZodObject<{
153
154
  e?: string | undefined;
154
155
  n?: string | undefined;
155
156
  kid?: string | undefined;
156
- alg?: string | undefined;
157
157
  use?: string | undefined;
158
158
  key_ops?: string[] | undefined;
159
159
  } | undefined;
@@ -164,6 +164,7 @@ declare const KeyInfoSchema: z.ZodObject<{
164
164
  priority: number;
165
165
  jwk?: {
166
166
  kty: string;
167
+ alg?: string | undefined;
167
168
  crv?: string | undefined;
168
169
  x?: string | undefined;
169
170
  y?: string | undefined;
@@ -171,7 +172,6 @@ declare const KeyInfoSchema: z.ZodObject<{
171
172
  e?: string | undefined;
172
173
  n?: string | undefined;
173
174
  kid?: string | undefined;
174
- alg?: string | undefined;
175
175
  use?: string | undefined;
176
176
  key_ops?: string[] | undefined;
177
177
  } | undefined;
@@ -588,6 +588,7 @@ 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
+ alg?: string | undefined;
591
592
  crv?: string | undefined;
592
593
  x?: string | undefined;
593
594
  y?: string | undefined;
@@ -595,11 +596,11 @@ declare const CapabilityEntrySchema: z.ZodObject<{
595
596
  e?: string | undefined;
596
597
  n?: string | undefined;
597
598
  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
+ alg?: string | undefined;
603
604
  crv?: string | undefined;
604
605
  x?: string | undefined;
605
606
  y?: string | undefined;
@@ -607,7 +608,6 @@ declare const CapabilityEntrySchema: z.ZodObject<{
607
608
  e?: string | undefined;
608
609
  n?: string | undefined;
609
610
  kid?: string | undefined;
610
- alg?: string | undefined;
611
611
  use?: string | undefined;
612
612
  key_ops?: string[] | undefined;
613
613
  }>>;
@@ -620,6 +620,7 @@ declare const CapabilityEntrySchema: z.ZodObject<{
620
620
  priority: number;
621
621
  jwk?: {
622
622
  kty: string;
623
+ alg?: string | undefined;
623
624
  crv?: string | undefined;
624
625
  x?: string | undefined;
625
626
  y?: string | undefined;
@@ -627,7 +628,6 @@ declare const CapabilityEntrySchema: z.ZodObject<{
627
628
  e?: string | undefined;
628
629
  n?: string | undefined;
629
630
  kid?: string | undefined;
630
- alg?: string | undefined;
631
631
  use?: string | undefined;
632
632
  key_ops?: string[] | undefined;
633
633
  } | undefined;
@@ -638,6 +638,7 @@ declare const CapabilityEntrySchema: z.ZodObject<{
638
638
  priority: number;
639
639
  jwk?: {
640
640
  kty: string;
641
+ alg?: string | undefined;
641
642
  crv?: string | undefined;
642
643
  x?: string | undefined;
643
644
  y?: string | undefined;
@@ -645,7 +646,6 @@ declare const CapabilityEntrySchema: z.ZodObject<{
645
646
  e?: string | undefined;
646
647
  n?: string | undefined;
647
648
  kid?: string | undefined;
648
- alg?: string | undefined;
649
649
  use?: string | undefined;
650
650
  key_ops?: string[] | undefined;
651
651
  } | undefined;
@@ -717,6 +717,7 @@ declare const CapabilityEntrySchema: z.ZodObject<{
717
717
  priority: number;
718
718
  jwk?: {
719
719
  kty: string;
720
+ alg?: string | undefined;
720
721
  crv?: string | undefined;
721
722
  x?: string | undefined;
722
723
  y?: string | undefined;
@@ -724,7 +725,6 @@ declare const CapabilityEntrySchema: z.ZodObject<{
724
725
  e?: string | undefined;
725
726
  n?: string | undefined;
726
727
  kid?: string | undefined;
727
- alg?: string | undefined;
728
728
  use?: string | undefined;
729
729
  key_ops?: string[] | undefined;
730
730
  } | undefined;
@@ -755,6 +755,7 @@ declare const CapabilityEntrySchema: z.ZodObject<{
755
755
  priority: number;
756
756
  jwk?: {
757
757
  kty: string;
758
+ alg?: string | undefined;
758
759
  crv?: string | undefined;
759
760
  x?: string | undefined;
760
761
  y?: string | undefined;
@@ -762,7 +763,6 @@ declare const CapabilityEntrySchema: z.ZodObject<{
762
763
  e?: string | undefined;
763
764
  n?: string | undefined;
764
765
  kid?: string | undefined;
765
- alg?: string | undefined;
766
766
  use?: string | undefined;
767
767
  key_ops?: string[] | undefined;
768
768
  } | undefined;
@@ -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;
@@ -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;
@@ -3927,34 +3984,34 @@ declare const ShareAddressedDelegationRequestV2Schema: z.ZodObject<{
3927
3984
  value: string;
3928
3985
  kind: "exact" | "prefix";
3929
3986
  };
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
3987
  nodeAudience: string;
3943
3988
  contentSource: {
3944
3989
  path: string;
3945
3990
  space: string;
3946
- action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
3947
3991
  kind: "kv";
3992
+ action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
3948
3993
  } | {
3949
3994
  path: string;
3950
3995
  statement: string;
3951
3996
  space: string;
3952
- action: "tinycloud.sql/read";
3953
3997
  kind: "sql";
3998
+ action: "tinycloud.sql/read";
3954
3999
  database: string;
3955
4000
  arguments: Record<string, number>;
3956
4001
  argumentsDigest: string;
3957
4002
  };
4003
+ version: 2;
4004
+ shareId: string;
4005
+ recipientMatcher: {
4006
+ value: string;
4007
+ kind: "exactEmail";
4008
+ } | {
4009
+ value: string;
4010
+ kind: "emailDomain";
4011
+ } | {
4012
+ value: string;
4013
+ kind: "recipientDid";
4014
+ };
3958
4015
  contentSourceDigest: string;
3959
4016
  jti: string;
3960
4017
  senderDid: string;
@@ -3972,34 +4029,34 @@ declare const ShareAddressedDelegationRequestV2Schema: z.ZodObject<{
3972
4029
  value: string;
3973
4030
  kind: "exact" | "prefix";
3974
4031
  };
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
4032
  nodeAudience: string;
3988
4033
  contentSource: {
3989
4034
  path: string;
3990
4035
  space: string;
3991
- action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
3992
4036
  kind: "kv";
4037
+ action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
3993
4038
  } | {
3994
4039
  path: string;
3995
4040
  statement: string;
3996
4041
  space: string;
3997
- action: "tinycloud.sql/read";
3998
4042
  kind: "sql";
4043
+ action: "tinycloud.sql/read";
3999
4044
  database: string;
4000
4045
  arguments: Record<string, number>;
4001
4046
  argumentsDigest: string;
4002
4047
  };
4048
+ version: 2;
4049
+ shareId: string;
4050
+ recipientMatcher: {
4051
+ value: string;
4052
+ kind: "exactEmail";
4053
+ } | {
4054
+ value: string;
4055
+ kind: "emailDomain";
4056
+ } | {
4057
+ value: string;
4058
+ kind: "recipientDid";
4059
+ };
4003
4060
  contentSourceDigest: string;
4004
4061
  jti: string;
4005
4062
  senderDid: 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;
@@ -4116,34 +4173,34 @@ declare const ShareAddressedDelegationEnvelopeV2Schema: z.ZodObject<{
4116
4173
  value: string;
4117
4174
  kind: "exact" | "prefix";
4118
4175
  };
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
4176
  nodeAudience: string;
4132
4177
  contentSource: {
4133
4178
  path: string;
4134
4179
  space: string;
4135
- action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
4136
4180
  kind: "kv";
4181
+ action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
4137
4182
  } | {
4138
4183
  path: string;
4139
4184
  statement: string;
4140
4185
  space: string;
4141
- action: "tinycloud.sql/read";
4142
4186
  kind: "sql";
4187
+ action: "tinycloud.sql/read";
4143
4188
  database: string;
4144
4189
  arguments: Record<string, number>;
4145
4190
  argumentsDigest: string;
4146
4191
  };
4192
+ version: 2;
4193
+ shareId: string;
4194
+ recipientMatcher: {
4195
+ value: string;
4196
+ kind: "exactEmail";
4197
+ } | {
4198
+ value: string;
4199
+ kind: "emailDomain";
4200
+ } | {
4201
+ value: string;
4202
+ kind: "recipientDid";
4203
+ };
4147
4204
  contentSourceDigest: string;
4148
4205
  jti: string;
4149
4206
  senderDid: string;
@@ -4161,34 +4218,34 @@ declare const ShareAddressedDelegationEnvelopeV2Schema: z.ZodObject<{
4161
4218
  value: string;
4162
4219
  kind: "exact" | "prefix";
4163
4220
  };
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
4221
  nodeAudience: string;
4177
4222
  contentSource: {
4178
4223
  path: string;
4179
4224
  space: string;
4180
- action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
4181
4225
  kind: "kv";
4226
+ action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
4182
4227
  } | {
4183
4228
  path: string;
4184
4229
  statement: string;
4185
4230
  space: string;
4186
- action: "tinycloud.sql/read";
4187
4231
  kind: "sql";
4232
+ action: "tinycloud.sql/read";
4188
4233
  database: string;
4189
4234
  arguments: Record<string, number>;
4190
4235
  argumentsDigest: string;
4191
4236
  };
4237
+ version: 2;
4238
+ shareId: string;
4239
+ recipientMatcher: {
4240
+ value: string;
4241
+ kind: "exactEmail";
4242
+ } | {
4243
+ value: string;
4244
+ kind: "emailDomain";
4245
+ } | {
4246
+ value: string;
4247
+ kind: "recipientDid";
4248
+ };
4192
4249
  contentSourceDigest: string;
4193
4250
  jti: string;
4194
4251
  senderDid: string;
@@ -4205,12 +4262,12 @@ declare const ShareAddressedDelegationEnvelopeV2Schema: z.ZodObject<{
4205
4262
  signature: z.ZodString;
4206
4263
  }, "strict", z.ZodTypeAny, {
4207
4264
  signature: string;
4208
- kid: string;
4209
4265
  alg: "EdDSA";
4266
+ kid: string;
4210
4267
  }, {
4211
4268
  signature: string;
4212
- kid: string;
4213
4269
  alg: "EdDSA";
4270
+ kid: string;
4214
4271
  }>;
4215
4272
  }, "strict", z.ZodTypeAny, {
4216
4273
  request: {
@@ -4221,34 +4278,34 @@ declare const ShareAddressedDelegationEnvelopeV2Schema: z.ZodObject<{
4221
4278
  value: string;
4222
4279
  kind: "exact" | "prefix";
4223
4280
  };
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
4281
  nodeAudience: string;
4237
4282
  contentSource: {
4238
4283
  path: string;
4239
4284
  space: string;
4240
- action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
4241
4285
  kind: "kv";
4286
+ action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
4242
4287
  } | {
4243
4288
  path: string;
4244
4289
  statement: string;
4245
4290
  space: string;
4246
- action: "tinycloud.sql/read";
4247
4291
  kind: "sql";
4292
+ action: "tinycloud.sql/read";
4248
4293
  database: string;
4249
4294
  arguments: Record<string, number>;
4250
4295
  argumentsDigest: string;
4251
4296
  };
4297
+ version: 2;
4298
+ shareId: string;
4299
+ recipientMatcher: {
4300
+ value: string;
4301
+ kind: "exactEmail";
4302
+ } | {
4303
+ value: string;
4304
+ kind: "emailDomain";
4305
+ } | {
4306
+ value: string;
4307
+ kind: "recipientDid";
4308
+ };
4252
4309
  contentSourceDigest: string;
4253
4310
  jti: string;
4254
4311
  senderDid: string;
@@ -4261,8 +4318,8 @@ declare const ShareAddressedDelegationEnvelopeV2Schema: z.ZodObject<{
4261
4318
  };
4262
4319
  proof: {
4263
4320
  signature: string;
4264
- kid: string;
4265
4321
  alg: "EdDSA";
4322
+ kid: string;
4266
4323
  };
4267
4324
  }, {
4268
4325
  request: {
@@ -4273,34 +4330,34 @@ declare const ShareAddressedDelegationEnvelopeV2Schema: z.ZodObject<{
4273
4330
  value: string;
4274
4331
  kind: "exact" | "prefix";
4275
4332
  };
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
4333
  nodeAudience: string;
4289
4334
  contentSource: {
4290
4335
  path: string;
4291
4336
  space: string;
4292
- action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
4293
4337
  kind: "kv";
4338
+ action: "tinycloud.kv/get" | "tinycloud.kv/put" | "tinycloud.kv/list" | "tinycloud.kv/metadata";
4294
4339
  } | {
4295
4340
  path: string;
4296
4341
  statement: string;
4297
4342
  space: string;
4298
- action: "tinycloud.sql/read";
4299
4343
  kind: "sql";
4344
+ action: "tinycloud.sql/read";
4300
4345
  database: string;
4301
4346
  arguments: Record<string, number>;
4302
4347
  argumentsDigest: string;
4303
4348
  };
4349
+ version: 2;
4350
+ shareId: string;
4351
+ recipientMatcher: {
4352
+ value: string;
4353
+ kind: "exactEmail";
4354
+ } | {
4355
+ value: string;
4356
+ kind: "emailDomain";
4357
+ } | {
4358
+ value: string;
4359
+ kind: "recipientDid";
4360
+ };
4304
4361
  contentSourceDigest: string;
4305
4362
  jti: string;
4306
4363
  senderDid: string;
@@ -4313,8 +4370,8 @@ declare const ShareAddressedDelegationEnvelopeV2Schema: z.ZodObject<{
4313
4370
  };
4314
4371
  proof: {
4315
4372
  signature: string;
4316
- kid: string;
4317
4373
  alg: "EdDSA";
4374
+ kid: string;
4318
4375
  };
4319
4376
  }>;
4320
4377
  declare const ShareAddressedDelegationResponseV2Schema: z.ZodObject<{
@@ -4348,12 +4405,12 @@ declare const ShareAddressedDelegationResponseV2Schema: z.ZodObject<{
4348
4405
  signature: z.ZodString;
4349
4406
  }, "strict", z.ZodTypeAny, {
4350
4407
  signature: string;
4351
- kid: string;
4352
4408
  alg: "EdDSA";
4409
+ kid: string;
4353
4410
  }, {
4354
4411
  signature: string;
4355
- kid: string;
4356
4412
  alg: "EdDSA";
4413
+ kid: string;
4357
4414
  }>;
4358
4415
  }, "strict", z.ZodTypeAny, {
4359
4416
  type: "TinyCloudShareAddressedDelegation";
@@ -4364,8 +4421,8 @@ declare const ShareAddressedDelegationResponseV2Schema: z.ZodObject<{
4364
4421
  value: string;
4365
4422
  kind: "exact" | "prefix";
4366
4423
  };
4367
- version: 2;
4368
4424
  policyCid: string;
4425
+ version: 2;
4369
4426
  policyBytes: string;
4370
4427
  jti: string;
4371
4428
  delegationCid: string;
@@ -4373,8 +4430,8 @@ declare const ShareAddressedDelegationResponseV2Schema: z.ZodObject<{
4373
4430
  authorityMaterialDigest: string;
4374
4431
  proof: {
4375
4432
  signature: string;
4376
- kid: string;
4377
4433
  alg: "EdDSA";
4434
+ kid: string;
4378
4435
  };
4379
4436
  policyDigest: string;
4380
4437
  delegationBytes: string;
@@ -4388,8 +4445,8 @@ declare const ShareAddressedDelegationResponseV2Schema: z.ZodObject<{
4388
4445
  value: string;
4389
4446
  kind: "exact" | "prefix";
4390
4447
  };
4391
- version: 2;
4392
4448
  policyCid: string;
4449
+ version: 2;
4393
4450
  policyBytes: string;
4394
4451
  jti: string;
4395
4452
  delegationCid: string;
@@ -4397,8 +4454,8 @@ declare const ShareAddressedDelegationResponseV2Schema: z.ZodObject<{
4397
4454
  authorityMaterialDigest: string;
4398
4455
  proof: {
4399
4456
  signature: string;
4400
- kid: string;
4401
4457
  alg: "EdDSA";
4458
+ kid: string;
4402
4459
  };
4403
4460
  policyDigest: string;
4404
4461
  delegationBytes: string;
@@ -4515,4 +4572,4 @@ declare const ShareNativeResponseSchema: z.ZodDiscriminatedUnion<"action", [z.Zo
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 };