@tinycloud/sdk-core 3.2.2 → 3.2.3
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/{credential-admission-1EOQgdzY.d.cts → credential-admission-CaWVn8yO.d.cts} +6 -5
- package/dist/{credential-admission-CJ1ZPqcx.d.ts → credential-admission-CqXwBvDS.d.ts} +6 -5
- package/dist/delegations/index.cjs.map +1 -1
- package/dist/delegations/index.d.cts +29 -29
- package/dist/delegations/index.d.ts +29 -29
- package/dist/delegations/index.js.map +1 -1
- package/dist/index.cjs +274 -57
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +41 -15
- package/dist/index.d.ts +41 -15
- package/dist/index.js +272 -55
- package/dist/index.js.map +1 -1
- package/dist/policy/index.cjs +1 -1
- package/dist/policy/index.cjs.map +1 -1
- package/dist/policy/index.d.cts +2 -2
- package/dist/policy/index.d.ts +2 -2
- package/dist/policy/index.js +1 -1
- package/dist/policy/index.js.map +1 -1
- package/dist/{recipient-types.schema-D-IMys0b.d.cts → recipient-types.schema-D7YiY246.d.cts} +177 -177
- package/dist/{recipient-types.schema-D-IMys0b.d.ts → recipient-types.schema-D7YiY246.d.ts} +177 -177
- package/package.json +3 -3
|
@@ -655,20 +655,20 @@ declare const CompactPayloadSchema: z.ZodObject<{
|
|
|
655
655
|
prf: z.ZodArray<z.ZodString, "many">;
|
|
656
656
|
}, "strict", z.ZodTypeAny, {
|
|
657
657
|
iss: string;
|
|
658
|
+
aud: string;
|
|
658
659
|
nbf: number;
|
|
659
660
|
exp: number;
|
|
660
|
-
att: Record<string, Record<string, unknown[]>>;
|
|
661
|
-
aud: string;
|
|
662
661
|
fct: Record<string, unknown>[];
|
|
662
|
+
att: Record<string, Record<string, unknown[]>>;
|
|
663
663
|
nnc: string;
|
|
664
664
|
prf: string[];
|
|
665
665
|
}, {
|
|
666
666
|
iss: string;
|
|
667
|
+
aud: string;
|
|
667
668
|
nbf: number;
|
|
668
669
|
exp: number;
|
|
669
|
-
att: Record<string, Record<string, unknown[]>>;
|
|
670
|
-
aud: string;
|
|
671
670
|
fct: Record<string, unknown>[];
|
|
671
|
+
att: Record<string, Record<string, unknown[]>>;
|
|
672
672
|
nnc: string;
|
|
673
673
|
prf: string[];
|
|
674
674
|
}>;
|
|
@@ -744,12 +744,13 @@ declare function signCompactPolicyDescendant(input: CompactPolicyDescendantInput
|
|
|
744
744
|
declare function compactAttenuationContains(parent: Readonly<Record<string, Readonly<Record<string, readonly unknown[]>>>>, child: Readonly<Record<string, Readonly<Record<string, readonly unknown[]>>>>): boolean;
|
|
745
745
|
declare function parseCompactUcanAuthorization(input: string, expectedCid?: string): CompactUcanAuthorizationV1;
|
|
746
746
|
declare const SignedCompactAttenuationSchema: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUnknown, "many">>>;
|
|
747
|
-
/** Verify an issued UCAN's exact bytes while reading its signed attenuation. */
|
|
747
|
+
/** Verify an issued UCAN's exact bytes while reading its signed attenuation and issuer. */
|
|
748
748
|
declare function parseSignedCompactUcanAttenuation(input: string, expectedCid?: string): {
|
|
749
749
|
cid: string;
|
|
750
750
|
payload: {
|
|
751
751
|
att: z.infer<typeof SignedCompactAttenuationSchema>;
|
|
752
752
|
aud: string;
|
|
753
|
+
iss: string;
|
|
753
754
|
};
|
|
754
755
|
};
|
|
755
756
|
declare function parsePolicySessionUcan(authorization: string, expectedProofs?: readonly [string, string]): PolicySessionUcanV1;
|
|
@@ -655,20 +655,20 @@ declare const CompactPayloadSchema: z.ZodObject<{
|
|
|
655
655
|
prf: z.ZodArray<z.ZodString, "many">;
|
|
656
656
|
}, "strict", z.ZodTypeAny, {
|
|
657
657
|
iss: string;
|
|
658
|
+
aud: string;
|
|
658
659
|
nbf: number;
|
|
659
660
|
exp: number;
|
|
660
|
-
att: Record<string, Record<string, unknown[]>>;
|
|
661
|
-
aud: string;
|
|
662
661
|
fct: Record<string, unknown>[];
|
|
662
|
+
att: Record<string, Record<string, unknown[]>>;
|
|
663
663
|
nnc: string;
|
|
664
664
|
prf: string[];
|
|
665
665
|
}, {
|
|
666
666
|
iss: string;
|
|
667
|
+
aud: string;
|
|
667
668
|
nbf: number;
|
|
668
669
|
exp: number;
|
|
669
|
-
att: Record<string, Record<string, unknown[]>>;
|
|
670
|
-
aud: string;
|
|
671
670
|
fct: Record<string, unknown>[];
|
|
671
|
+
att: Record<string, Record<string, unknown[]>>;
|
|
672
672
|
nnc: string;
|
|
673
673
|
prf: string[];
|
|
674
674
|
}>;
|
|
@@ -744,12 +744,13 @@ declare function signCompactPolicyDescendant(input: CompactPolicyDescendantInput
|
|
|
744
744
|
declare function compactAttenuationContains(parent: Readonly<Record<string, Readonly<Record<string, readonly unknown[]>>>>, child: Readonly<Record<string, Readonly<Record<string, readonly unknown[]>>>>): boolean;
|
|
745
745
|
declare function parseCompactUcanAuthorization(input: string, expectedCid?: string): CompactUcanAuthorizationV1;
|
|
746
746
|
declare const SignedCompactAttenuationSchema: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUnknown, "many">>>;
|
|
747
|
-
/** Verify an issued UCAN's exact bytes while reading its signed attenuation. */
|
|
747
|
+
/** Verify an issued UCAN's exact bytes while reading its signed attenuation and issuer. */
|
|
748
748
|
declare function parseSignedCompactUcanAttenuation(input: string, expectedCid?: string): {
|
|
749
749
|
cid: string;
|
|
750
750
|
payload: {
|
|
751
751
|
att: z.infer<typeof SignedCompactAttenuationSchema>;
|
|
752
752
|
aud: string;
|
|
753
|
+
iss: string;
|
|
753
754
|
};
|
|
754
755
|
};
|
|
755
756
|
declare function parsePolicySessionUcan(authorization: string, expectedProofs?: readonly [string, string]): PolicySessionUcanV1;
|