@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.
@@ -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;