@tinycloud/sdk-core 2.11.0-beta.1 → 2.11.0-beta.10
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/bootstrap/index.cjs +0 -4
- package/dist/delegations/index.cjs +83 -110
- package/dist/delegations/index.cjs.map +1 -1
- package/dist/delegations/index.d.cts +3 -2
- package/dist/delegations/index.d.ts +3 -2
- package/dist/delegations/index.js +109 -49
- package/dist/delegations/index.js.map +1 -1
- package/dist/index.cjs +765 -397
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +338 -12
- package/dist/index.d.ts +338 -12
- package/dist/index.js +788 -81
- package/dist/index.js.map +1 -1
- package/dist/policy/index.cjs +10 -74
- package/dist/policy/index.cjs.map +1 -1
- package/dist/policy/index.js +10 -8
- package/dist/policy/index.js.map +1 -1
- package/dist/{recipient-types.schema-CWIt63Qp.d.cts → recipient-types.schema-D5pDlIqn.d.cts} +82 -1
- package/dist/{recipient-types.schema-CWIt63Qp.d.ts → recipient-types.schema-D5pDlIqn.d.ts} +82 -1
- package/dist/requester/index.cjs +10 -38
- package/dist/requester/index.cjs.map +1 -1
- package/dist/requester/index.js +10 -8
- package/dist/requester/index.js.map +1 -1
- package/package.json +6 -3
package/dist/{recipient-types.schema-CWIt63Qp.d.cts → recipient-types.schema-D5pDlIqn.d.cts}
RENAMED
|
@@ -2259,6 +2259,9 @@ type ShareRecipientTarget = {
|
|
|
2259
2259
|
} | {
|
|
2260
2260
|
readonly kind: "emailDomain";
|
|
2261
2261
|
readonly value: string;
|
|
2262
|
+
} | {
|
|
2263
|
+
readonly kind: "recipientDid";
|
|
2264
|
+
readonly value: string;
|
|
2262
2265
|
} | {
|
|
2263
2266
|
readonly kind: "bearer";
|
|
2264
2267
|
};
|
|
@@ -2536,6 +2539,19 @@ interface ShareRecipientClientOptions {
|
|
|
2536
2539
|
readonly envelope: ShareEnvelopeV2;
|
|
2537
2540
|
readonly presentation?: unknown;
|
|
2538
2541
|
}) => Promise<SharePolicySession>;
|
|
2542
|
+
/** Direct DID authorization is explicit and may return a resumable device step. */
|
|
2543
|
+
readonly establishRecipientDidSession?: (input: {
|
|
2544
|
+
readonly envelope: ShareEnvelopeV2;
|
|
2545
|
+
readonly recipientDid: string;
|
|
2546
|
+
}) => Promise<SharePolicySession | {
|
|
2547
|
+
readonly state: "authorization-required";
|
|
2548
|
+
readonly method: "openkey-device";
|
|
2549
|
+
readonly continueUrl?: string;
|
|
2550
|
+
readonly resumeToken: string;
|
|
2551
|
+
} | {
|
|
2552
|
+
readonly state: "denied";
|
|
2553
|
+
readonly reason: string;
|
|
2554
|
+
}>;
|
|
2539
2555
|
/**
|
|
2540
2556
|
* Builds the holder presentation/session request after Node returns a
|
|
2541
2557
|
* fresh challenge. The callback is deliberately invoked only after the
|
|
@@ -2740,7 +2756,8 @@ declare class ShareConflict extends Error {
|
|
|
2740
2756
|
}
|
|
2741
2757
|
declare class ShareAccessError extends Error {
|
|
2742
2758
|
readonly code: string;
|
|
2743
|
-
|
|
2759
|
+
readonly details?: unknown;
|
|
2760
|
+
constructor(code: string, message?: string, details?: unknown);
|
|
2744
2761
|
}
|
|
2745
2762
|
interface ShareAccessV2 {
|
|
2746
2763
|
readonly kind: "share-v2";
|
|
@@ -3272,6 +3289,9 @@ type OwnerShareMatcher = {
|
|
|
3272
3289
|
} | {
|
|
3273
3290
|
readonly kind: "emailDomain";
|
|
3274
3291
|
readonly value: string;
|
|
3292
|
+
} | {
|
|
3293
|
+
readonly kind: "recipientDid";
|
|
3294
|
+
readonly value: string;
|
|
3275
3295
|
};
|
|
3276
3296
|
interface OwnerSharePolicyV2 {
|
|
3277
3297
|
readonly type: "TinyCloudSharePolicy";
|
|
@@ -3432,6 +3452,7 @@ interface ShareDeliveryAuthorizationRequest {
|
|
|
3432
3452
|
readonly shareUrl: string;
|
|
3433
3453
|
readonly documentName: string;
|
|
3434
3454
|
readonly jti: string;
|
|
3455
|
+
readonly idempotencyKey: string;
|
|
3435
3456
|
readonly expiresAt: string;
|
|
3436
3457
|
readonly requestBodyDigest: string;
|
|
3437
3458
|
}
|
|
@@ -3642,6 +3663,15 @@ declare const ShareRecipientTargetSchema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
3642
3663
|
}, {
|
|
3643
3664
|
value: string;
|
|
3644
3665
|
kind: "emailDomain";
|
|
3666
|
+
}>, z.ZodObject<{
|
|
3667
|
+
kind: z.ZodLiteral<"recipientDid">;
|
|
3668
|
+
value: z.ZodString;
|
|
3669
|
+
}, "strict", z.ZodTypeAny, {
|
|
3670
|
+
value: string;
|
|
3671
|
+
kind: "recipientDid";
|
|
3672
|
+
}, {
|
|
3673
|
+
value: string;
|
|
3674
|
+
kind: "recipientDid";
|
|
3645
3675
|
}>, z.ZodObject<{
|
|
3646
3676
|
kind: z.ZodLiteral<"bearer">;
|
|
3647
3677
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -3688,6 +3718,15 @@ declare const ShareRecipientPolicySchema: z.ZodObject<{
|
|
|
3688
3718
|
}, {
|
|
3689
3719
|
value: string;
|
|
3690
3720
|
kind: "emailDomain";
|
|
3721
|
+
}>, z.ZodObject<{
|
|
3722
|
+
kind: z.ZodLiteral<"recipientDid">;
|
|
3723
|
+
value: z.ZodString;
|
|
3724
|
+
}, "strict", z.ZodTypeAny, {
|
|
3725
|
+
value: string;
|
|
3726
|
+
kind: "recipientDid";
|
|
3727
|
+
}, {
|
|
3728
|
+
value: string;
|
|
3729
|
+
kind: "recipientDid";
|
|
3691
3730
|
}>, z.ZodObject<{
|
|
3692
3731
|
kind: z.ZodLiteral<"bearer">;
|
|
3693
3732
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -3734,6 +3773,9 @@ declare const ShareRecipientPolicySchema: z.ZodObject<{
|
|
|
3734
3773
|
} | {
|
|
3735
3774
|
value: string;
|
|
3736
3775
|
kind: "emailDomain";
|
|
3776
|
+
} | {
|
|
3777
|
+
value: string;
|
|
3778
|
+
kind: "recipientDid";
|
|
3737
3779
|
} | {
|
|
3738
3780
|
kind: "bearer";
|
|
3739
3781
|
};
|
|
@@ -3754,6 +3796,9 @@ declare const ShareRecipientPolicySchema: z.ZodObject<{
|
|
|
3754
3796
|
} | {
|
|
3755
3797
|
value: string;
|
|
3756
3798
|
kind: "emailDomain";
|
|
3799
|
+
} | {
|
|
3800
|
+
value: string;
|
|
3801
|
+
kind: "recipientDid";
|
|
3757
3802
|
} | {
|
|
3758
3803
|
kind: "bearer";
|
|
3759
3804
|
};
|
|
@@ -3800,6 +3845,15 @@ declare const ShareAddressedDelegationRequestV2Schema: z.ZodObject<{
|
|
|
3800
3845
|
}, {
|
|
3801
3846
|
value: string;
|
|
3802
3847
|
kind: "emailDomain";
|
|
3848
|
+
}>, z.ZodObject<{
|
|
3849
|
+
kind: z.ZodLiteral<"recipientDid">;
|
|
3850
|
+
value: z.ZodString;
|
|
3851
|
+
}, "strict", z.ZodTypeAny, {
|
|
3852
|
+
value: string;
|
|
3853
|
+
kind: "recipientDid";
|
|
3854
|
+
}, {
|
|
3855
|
+
value: string;
|
|
3856
|
+
kind: "recipientDid";
|
|
3803
3857
|
}>]>;
|
|
3804
3858
|
targetOrigin: z.ZodString;
|
|
3805
3859
|
nodeAudience: z.ZodString;
|
|
@@ -3881,6 +3935,9 @@ declare const ShareAddressedDelegationRequestV2Schema: z.ZodObject<{
|
|
|
3881
3935
|
} | {
|
|
3882
3936
|
value: string;
|
|
3883
3937
|
kind: "emailDomain";
|
|
3938
|
+
} | {
|
|
3939
|
+
value: string;
|
|
3940
|
+
kind: "recipientDid";
|
|
3884
3941
|
};
|
|
3885
3942
|
nodeAudience: string;
|
|
3886
3943
|
contentSource: {
|
|
@@ -3923,6 +3980,9 @@ declare const ShareAddressedDelegationRequestV2Schema: z.ZodObject<{
|
|
|
3923
3980
|
} | {
|
|
3924
3981
|
value: string;
|
|
3925
3982
|
kind: "emailDomain";
|
|
3983
|
+
} | {
|
|
3984
|
+
value: string;
|
|
3985
|
+
kind: "recipientDid";
|
|
3926
3986
|
};
|
|
3927
3987
|
nodeAudience: string;
|
|
3928
3988
|
contentSource: {
|
|
@@ -3974,6 +4034,15 @@ declare const ShareAddressedDelegationEnvelopeV2Schema: z.ZodObject<{
|
|
|
3974
4034
|
}, {
|
|
3975
4035
|
value: string;
|
|
3976
4036
|
kind: "emailDomain";
|
|
4037
|
+
}>, z.ZodObject<{
|
|
4038
|
+
kind: z.ZodLiteral<"recipientDid">;
|
|
4039
|
+
value: z.ZodString;
|
|
4040
|
+
}, "strict", z.ZodTypeAny, {
|
|
4041
|
+
value: string;
|
|
4042
|
+
kind: "recipientDid";
|
|
4043
|
+
}, {
|
|
4044
|
+
value: string;
|
|
4045
|
+
kind: "recipientDid";
|
|
3977
4046
|
}>]>;
|
|
3978
4047
|
targetOrigin: z.ZodString;
|
|
3979
4048
|
nodeAudience: z.ZodString;
|
|
@@ -4055,6 +4124,9 @@ declare const ShareAddressedDelegationEnvelopeV2Schema: z.ZodObject<{
|
|
|
4055
4124
|
} | {
|
|
4056
4125
|
value: string;
|
|
4057
4126
|
kind: "emailDomain";
|
|
4127
|
+
} | {
|
|
4128
|
+
value: string;
|
|
4129
|
+
kind: "recipientDid";
|
|
4058
4130
|
};
|
|
4059
4131
|
nodeAudience: string;
|
|
4060
4132
|
contentSource: {
|
|
@@ -4097,6 +4169,9 @@ declare const ShareAddressedDelegationEnvelopeV2Schema: z.ZodObject<{
|
|
|
4097
4169
|
} | {
|
|
4098
4170
|
value: string;
|
|
4099
4171
|
kind: "emailDomain";
|
|
4172
|
+
} | {
|
|
4173
|
+
value: string;
|
|
4174
|
+
kind: "recipientDid";
|
|
4100
4175
|
};
|
|
4101
4176
|
nodeAudience: string;
|
|
4102
4177
|
contentSource: {
|
|
@@ -4154,6 +4229,9 @@ declare const ShareAddressedDelegationEnvelopeV2Schema: z.ZodObject<{
|
|
|
4154
4229
|
} | {
|
|
4155
4230
|
value: string;
|
|
4156
4231
|
kind: "emailDomain";
|
|
4232
|
+
} | {
|
|
4233
|
+
value: string;
|
|
4234
|
+
kind: "recipientDid";
|
|
4157
4235
|
};
|
|
4158
4236
|
nodeAudience: string;
|
|
4159
4237
|
contentSource: {
|
|
@@ -4203,6 +4281,9 @@ declare const ShareAddressedDelegationEnvelopeV2Schema: z.ZodObject<{
|
|
|
4203
4281
|
} | {
|
|
4204
4282
|
value: string;
|
|
4205
4283
|
kind: "emailDomain";
|
|
4284
|
+
} | {
|
|
4285
|
+
value: string;
|
|
4286
|
+
kind: "recipientDid";
|
|
4206
4287
|
};
|
|
4207
4288
|
nodeAudience: string;
|
|
4208
4289
|
contentSource: {
|
|
@@ -2259,6 +2259,9 @@ type ShareRecipientTarget = {
|
|
|
2259
2259
|
} | {
|
|
2260
2260
|
readonly kind: "emailDomain";
|
|
2261
2261
|
readonly value: string;
|
|
2262
|
+
} | {
|
|
2263
|
+
readonly kind: "recipientDid";
|
|
2264
|
+
readonly value: string;
|
|
2262
2265
|
} | {
|
|
2263
2266
|
readonly kind: "bearer";
|
|
2264
2267
|
};
|
|
@@ -2536,6 +2539,19 @@ interface ShareRecipientClientOptions {
|
|
|
2536
2539
|
readonly envelope: ShareEnvelopeV2;
|
|
2537
2540
|
readonly presentation?: unknown;
|
|
2538
2541
|
}) => Promise<SharePolicySession>;
|
|
2542
|
+
/** Direct DID authorization is explicit and may return a resumable device step. */
|
|
2543
|
+
readonly establishRecipientDidSession?: (input: {
|
|
2544
|
+
readonly envelope: ShareEnvelopeV2;
|
|
2545
|
+
readonly recipientDid: string;
|
|
2546
|
+
}) => Promise<SharePolicySession | {
|
|
2547
|
+
readonly state: "authorization-required";
|
|
2548
|
+
readonly method: "openkey-device";
|
|
2549
|
+
readonly continueUrl?: string;
|
|
2550
|
+
readonly resumeToken: string;
|
|
2551
|
+
} | {
|
|
2552
|
+
readonly state: "denied";
|
|
2553
|
+
readonly reason: string;
|
|
2554
|
+
}>;
|
|
2539
2555
|
/**
|
|
2540
2556
|
* Builds the holder presentation/session request after Node returns a
|
|
2541
2557
|
* fresh challenge. The callback is deliberately invoked only after the
|
|
@@ -2740,7 +2756,8 @@ declare class ShareConflict extends Error {
|
|
|
2740
2756
|
}
|
|
2741
2757
|
declare class ShareAccessError extends Error {
|
|
2742
2758
|
readonly code: string;
|
|
2743
|
-
|
|
2759
|
+
readonly details?: unknown;
|
|
2760
|
+
constructor(code: string, message?: string, details?: unknown);
|
|
2744
2761
|
}
|
|
2745
2762
|
interface ShareAccessV2 {
|
|
2746
2763
|
readonly kind: "share-v2";
|
|
@@ -3272,6 +3289,9 @@ type OwnerShareMatcher = {
|
|
|
3272
3289
|
} | {
|
|
3273
3290
|
readonly kind: "emailDomain";
|
|
3274
3291
|
readonly value: string;
|
|
3292
|
+
} | {
|
|
3293
|
+
readonly kind: "recipientDid";
|
|
3294
|
+
readonly value: string;
|
|
3275
3295
|
};
|
|
3276
3296
|
interface OwnerSharePolicyV2 {
|
|
3277
3297
|
readonly type: "TinyCloudSharePolicy";
|
|
@@ -3432,6 +3452,7 @@ interface ShareDeliveryAuthorizationRequest {
|
|
|
3432
3452
|
readonly shareUrl: string;
|
|
3433
3453
|
readonly documentName: string;
|
|
3434
3454
|
readonly jti: string;
|
|
3455
|
+
readonly idempotencyKey: string;
|
|
3435
3456
|
readonly expiresAt: string;
|
|
3436
3457
|
readonly requestBodyDigest: string;
|
|
3437
3458
|
}
|
|
@@ -3642,6 +3663,15 @@ declare const ShareRecipientTargetSchema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
3642
3663
|
}, {
|
|
3643
3664
|
value: string;
|
|
3644
3665
|
kind: "emailDomain";
|
|
3666
|
+
}>, z.ZodObject<{
|
|
3667
|
+
kind: z.ZodLiteral<"recipientDid">;
|
|
3668
|
+
value: z.ZodString;
|
|
3669
|
+
}, "strict", z.ZodTypeAny, {
|
|
3670
|
+
value: string;
|
|
3671
|
+
kind: "recipientDid";
|
|
3672
|
+
}, {
|
|
3673
|
+
value: string;
|
|
3674
|
+
kind: "recipientDid";
|
|
3645
3675
|
}>, z.ZodObject<{
|
|
3646
3676
|
kind: z.ZodLiteral<"bearer">;
|
|
3647
3677
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -3688,6 +3718,15 @@ declare const ShareRecipientPolicySchema: z.ZodObject<{
|
|
|
3688
3718
|
}, {
|
|
3689
3719
|
value: string;
|
|
3690
3720
|
kind: "emailDomain";
|
|
3721
|
+
}>, z.ZodObject<{
|
|
3722
|
+
kind: z.ZodLiteral<"recipientDid">;
|
|
3723
|
+
value: z.ZodString;
|
|
3724
|
+
}, "strict", z.ZodTypeAny, {
|
|
3725
|
+
value: string;
|
|
3726
|
+
kind: "recipientDid";
|
|
3727
|
+
}, {
|
|
3728
|
+
value: string;
|
|
3729
|
+
kind: "recipientDid";
|
|
3691
3730
|
}>, z.ZodObject<{
|
|
3692
3731
|
kind: z.ZodLiteral<"bearer">;
|
|
3693
3732
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -3734,6 +3773,9 @@ declare const ShareRecipientPolicySchema: z.ZodObject<{
|
|
|
3734
3773
|
} | {
|
|
3735
3774
|
value: string;
|
|
3736
3775
|
kind: "emailDomain";
|
|
3776
|
+
} | {
|
|
3777
|
+
value: string;
|
|
3778
|
+
kind: "recipientDid";
|
|
3737
3779
|
} | {
|
|
3738
3780
|
kind: "bearer";
|
|
3739
3781
|
};
|
|
@@ -3754,6 +3796,9 @@ declare const ShareRecipientPolicySchema: z.ZodObject<{
|
|
|
3754
3796
|
} | {
|
|
3755
3797
|
value: string;
|
|
3756
3798
|
kind: "emailDomain";
|
|
3799
|
+
} | {
|
|
3800
|
+
value: string;
|
|
3801
|
+
kind: "recipientDid";
|
|
3757
3802
|
} | {
|
|
3758
3803
|
kind: "bearer";
|
|
3759
3804
|
};
|
|
@@ -3800,6 +3845,15 @@ declare const ShareAddressedDelegationRequestV2Schema: z.ZodObject<{
|
|
|
3800
3845
|
}, {
|
|
3801
3846
|
value: string;
|
|
3802
3847
|
kind: "emailDomain";
|
|
3848
|
+
}>, z.ZodObject<{
|
|
3849
|
+
kind: z.ZodLiteral<"recipientDid">;
|
|
3850
|
+
value: z.ZodString;
|
|
3851
|
+
}, "strict", z.ZodTypeAny, {
|
|
3852
|
+
value: string;
|
|
3853
|
+
kind: "recipientDid";
|
|
3854
|
+
}, {
|
|
3855
|
+
value: string;
|
|
3856
|
+
kind: "recipientDid";
|
|
3803
3857
|
}>]>;
|
|
3804
3858
|
targetOrigin: z.ZodString;
|
|
3805
3859
|
nodeAudience: z.ZodString;
|
|
@@ -3881,6 +3935,9 @@ declare const ShareAddressedDelegationRequestV2Schema: z.ZodObject<{
|
|
|
3881
3935
|
} | {
|
|
3882
3936
|
value: string;
|
|
3883
3937
|
kind: "emailDomain";
|
|
3938
|
+
} | {
|
|
3939
|
+
value: string;
|
|
3940
|
+
kind: "recipientDid";
|
|
3884
3941
|
};
|
|
3885
3942
|
nodeAudience: string;
|
|
3886
3943
|
contentSource: {
|
|
@@ -3923,6 +3980,9 @@ declare const ShareAddressedDelegationRequestV2Schema: z.ZodObject<{
|
|
|
3923
3980
|
} | {
|
|
3924
3981
|
value: string;
|
|
3925
3982
|
kind: "emailDomain";
|
|
3983
|
+
} | {
|
|
3984
|
+
value: string;
|
|
3985
|
+
kind: "recipientDid";
|
|
3926
3986
|
};
|
|
3927
3987
|
nodeAudience: string;
|
|
3928
3988
|
contentSource: {
|
|
@@ -3974,6 +4034,15 @@ declare const ShareAddressedDelegationEnvelopeV2Schema: z.ZodObject<{
|
|
|
3974
4034
|
}, {
|
|
3975
4035
|
value: string;
|
|
3976
4036
|
kind: "emailDomain";
|
|
4037
|
+
}>, z.ZodObject<{
|
|
4038
|
+
kind: z.ZodLiteral<"recipientDid">;
|
|
4039
|
+
value: z.ZodString;
|
|
4040
|
+
}, "strict", z.ZodTypeAny, {
|
|
4041
|
+
value: string;
|
|
4042
|
+
kind: "recipientDid";
|
|
4043
|
+
}, {
|
|
4044
|
+
value: string;
|
|
4045
|
+
kind: "recipientDid";
|
|
3977
4046
|
}>]>;
|
|
3978
4047
|
targetOrigin: z.ZodString;
|
|
3979
4048
|
nodeAudience: z.ZodString;
|
|
@@ -4055,6 +4124,9 @@ declare const ShareAddressedDelegationEnvelopeV2Schema: z.ZodObject<{
|
|
|
4055
4124
|
} | {
|
|
4056
4125
|
value: string;
|
|
4057
4126
|
kind: "emailDomain";
|
|
4127
|
+
} | {
|
|
4128
|
+
value: string;
|
|
4129
|
+
kind: "recipientDid";
|
|
4058
4130
|
};
|
|
4059
4131
|
nodeAudience: string;
|
|
4060
4132
|
contentSource: {
|
|
@@ -4097,6 +4169,9 @@ declare const ShareAddressedDelegationEnvelopeV2Schema: z.ZodObject<{
|
|
|
4097
4169
|
} | {
|
|
4098
4170
|
value: string;
|
|
4099
4171
|
kind: "emailDomain";
|
|
4172
|
+
} | {
|
|
4173
|
+
value: string;
|
|
4174
|
+
kind: "recipientDid";
|
|
4100
4175
|
};
|
|
4101
4176
|
nodeAudience: string;
|
|
4102
4177
|
contentSource: {
|
|
@@ -4154,6 +4229,9 @@ declare const ShareAddressedDelegationEnvelopeV2Schema: z.ZodObject<{
|
|
|
4154
4229
|
} | {
|
|
4155
4230
|
value: string;
|
|
4156
4231
|
kind: "emailDomain";
|
|
4232
|
+
} | {
|
|
4233
|
+
value: string;
|
|
4234
|
+
kind: "recipientDid";
|
|
4157
4235
|
};
|
|
4158
4236
|
nodeAudience: string;
|
|
4159
4237
|
contentSource: {
|
|
@@ -4203,6 +4281,9 @@ declare const ShareAddressedDelegationEnvelopeV2Schema: z.ZodObject<{
|
|
|
4203
4281
|
} | {
|
|
4204
4282
|
value: string;
|
|
4205
4283
|
kind: "emailDomain";
|
|
4284
|
+
} | {
|
|
4285
|
+
value: string;
|
|
4286
|
+
kind: "recipientDid";
|
|
4206
4287
|
};
|
|
4207
4288
|
nodeAudience: string;
|
|
4208
4289
|
contentSource: {
|
package/dist/requester/index.cjs
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
2
|
var __defProp = Object.defineProperty;
|
|
4
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
6
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
7
|
var __export = (target, all) => {
|
|
@@ -18,14 +16,6 @@ var __copyProps = (to, from3, except, desc) => {
|
|
|
18
16
|
}
|
|
19
17
|
return to;
|
|
20
18
|
};
|
|
21
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
-
mod
|
|
28
|
-
));
|
|
29
19
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
20
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
31
21
|
|
|
@@ -1750,13 +1740,12 @@ function digest(input, options) {
|
|
|
1750
1740
|
}
|
|
1751
1741
|
var identity2 = { code, name, encode: encode4, digest };
|
|
1752
1742
|
|
|
1753
|
-
// ../../node_modules/multiformats/dist/src/hashes/sha2.js
|
|
1754
|
-
var
|
|
1755
|
-
__export(
|
|
1743
|
+
// ../../node_modules/multiformats/dist/src/hashes/sha2-browser.js
|
|
1744
|
+
var sha2_browser_exports = {};
|
|
1745
|
+
__export(sha2_browser_exports, {
|
|
1756
1746
|
sha256: () => sha2562,
|
|
1757
1747
|
sha512: () => sha512
|
|
1758
1748
|
});
|
|
1759
|
-
var import_crypto = __toESM(require("crypto"), 1);
|
|
1760
1749
|
|
|
1761
1750
|
// ../../node_modules/multiformats/dist/src/hashes/hasher.js
|
|
1762
1751
|
var DEFAULT_MIN_DIGEST_LENGTH = 20;
|
|
@@ -1806,21 +1795,24 @@ function createDigest(digest2, code2, truncate) {
|
|
|
1806
1795
|
return create(code2, digest2);
|
|
1807
1796
|
}
|
|
1808
1797
|
|
|
1809
|
-
// ../../node_modules/multiformats/dist/src/hashes/sha2.js
|
|
1798
|
+
// ../../node_modules/multiformats/dist/src/hashes/sha2-browser.js
|
|
1799
|
+
function sha(name2) {
|
|
1800
|
+
return async (data) => new Uint8Array(await crypto.subtle.digest(name2, data));
|
|
1801
|
+
}
|
|
1810
1802
|
var sha2562 = from2({
|
|
1811
1803
|
name: "sha2-256",
|
|
1812
1804
|
code: 18,
|
|
1813
|
-
encode: (
|
|
1805
|
+
encode: sha("SHA-256")
|
|
1814
1806
|
});
|
|
1815
1807
|
var sha512 = from2({
|
|
1816
1808
|
name: "sha2-512",
|
|
1817
1809
|
code: 19,
|
|
1818
|
-
encode: (
|
|
1810
|
+
encode: sha("SHA-512")
|
|
1819
1811
|
});
|
|
1820
1812
|
|
|
1821
1813
|
// ../../node_modules/multiformats/dist/src/basics.js
|
|
1822
1814
|
var bases = { ...identity_exports, ...base2_exports, ...base8_exports, ...base10_exports, ...base16_exports, ...base32_exports, ...base36_exports, ...base58_exports, ...base64_exports, ...base256emoji_exports };
|
|
1823
|
-
var hashes = { ...
|
|
1815
|
+
var hashes = { ...sha2_browser_exports, ...identity_exports2 };
|
|
1824
1816
|
|
|
1825
1817
|
// src/policy/signed-object.ts
|
|
1826
1818
|
var import_viem3 = require("viem");
|
|
@@ -4045,24 +4037,4 @@ function parseStrictRfc33392(value) {
|
|
|
4045
4037
|
const reparsed = Date.parse(value);
|
|
4046
4038
|
return Date.parse(canonical) === reparsed ? parsed : void 0;
|
|
4047
4039
|
}
|
|
4048
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
4049
|
-
0 && (module.exports = {
|
|
4050
|
-
HOLDER_KEY_BINDING_PRESENTATION_SCHEMA,
|
|
4051
|
-
LISTEN_SQL_STATEMENT_CATALOG,
|
|
4052
|
-
POLICY_ENGINE_CHALLENGE_REQUEST_SCHEMA,
|
|
4053
|
-
POLICY_ENGINE_CHALLENGE_RESPONSE_SCHEMA,
|
|
4054
|
-
POLICY_ENGINE_DENIAL_SCHEMA,
|
|
4055
|
-
POLICY_ENGINE_GRANT_PRESENTATION_DENIAL_CODES,
|
|
4056
|
-
POLICY_ENGINE_RESOLVE_REQUEST_SCHEMA,
|
|
4057
|
-
PORTABLE_DELEGATION_SCHEMA,
|
|
4058
|
-
REQUESTER_ENGINE_RETRY_ATTEMPTS,
|
|
4059
|
-
REQUESTER_ENGINE_RETRY_MAX_DELAY_MS,
|
|
4060
|
-
REQUESTER_NEAR_EXPIRY_SECONDS,
|
|
4061
|
-
TranscriptRequester,
|
|
4062
|
-
TranscriptRequesterError,
|
|
4063
|
-
createTranscriptRequester,
|
|
4064
|
-
deriveDelegationCid,
|
|
4065
|
-
listenTranscriptScopedStatementName,
|
|
4066
|
-
parseNodeNativePortableDelegation
|
|
4067
|
-
});
|
|
4068
4040
|
//# sourceMappingURL=index.cjs.map
|