@learncard/types 5.2.6 → 5.2.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/index.ts", "../src/vc.ts", "../src/obv3.ts", "../src/learncard.ts", "../src/lcn.ts", "../src/crypto.ts"],
4
- "sourcesContent": ["export * from './vc';\nexport * from './obv3';\nexport * from './learncard';\nexport * from './lcn';\nexport * from './crypto';\n", "import { z } from 'zod';\n\nexport const ContextValidator = z.array(z.string().or(z.record(z.any())));\nexport type Context = z.infer<typeof ContextValidator>;\n\nexport const AchievementCriteriaValidator = z.object({\n type: z.string().optional(),\n narrative: z.string().optional(),\n});\nexport type AchievementCriteria = z.infer<typeof AchievementCriteriaValidator>;\n\nexport const ImageValidator = z.string().or(\n z.object({\n id: z.string(),\n type: z.string(),\n caption: z.string().optional(),\n })\n);\nexport type Image = z.infer<typeof ImageValidator>;\n\nexport const GeoCoordinatesValidator = z.object({\n type: z.string().min(1).or(z.string().array().nonempty()),\n latitude: z.number(),\n longitude: z.number(),\n});\nexport type GeoCoordinates = z.infer<typeof GeoCoordinatesValidator>;\n\nexport const AddressValidator = z.object({\n type: z.string().min(1).or(z.string().array().nonempty()),\n addressCountry: z.string().optional(),\n addressCountryCode: z.string().optional(),\n addressRegion: z.string().optional(),\n addressLocality: z.string().optional(),\n streetAddress: z.string().optional(),\n postOfficeBoxNumber: z.string().optional(),\n postalCode: z.string().optional(),\n geo: GeoCoordinatesValidator.optional(),\n});\nexport type Address = z.infer<typeof AddressValidator>;\n\nexport const IdentifierTypeValidator = z\n .enum([\n 'sourcedId',\n 'systemId',\n 'productId',\n 'userName',\n 'accountId',\n 'emailAddress',\n 'nationalIdentityNumber',\n 'isbn',\n 'issn',\n 'lisSourcedId',\n 'oneRosterSourcedId',\n 'sisSourcedId',\n 'ltiContextId',\n 'ltiDeploymentId',\n 'ltiToolId',\n 'ltiPlatformId',\n 'ltiUserId',\n 'identifier',\n ])\n .or(z.string());\nexport type IdentifierType = z.infer<typeof IdentifierTypeValidator>;\n\nexport const IdentifierEntryValidator = z.object({\n type: z.string().min(1).or(z.string().array().nonempty()),\n identifier: z.string(),\n identifierType: IdentifierTypeValidator,\n});\nexport type IdentifierEntry = z.infer<typeof IdentifierEntryValidator>;\n\nexport const ProfileValidator = z.string().or(\n z\n .object({\n id: z.string().optional(),\n type: z.string().or(z.string().array().nonempty().optional()),\n name: z.string().optional(),\n url: z.string().optional(),\n phone: z.string().optional(),\n description: z.string().optional(),\n endorsement: z.any().array().optional(), // Recursive type\n image: ImageValidator.optional(),\n email: z.string().email().optional(),\n address: AddressValidator.optional(),\n otherIdentifier: IdentifierEntryValidator.array().optional(),\n official: z.string().optional(),\n parentOrg: z.any().optional(), // Recursive types are annoying =(\n familyName: z.string().optional(),\n givenName: z.string().optional(),\n additionalName: z.string().optional(),\n patronymicName: z.string().optional(),\n honorificPrefix: z.string().optional(),\n honorificSuffix: z.string().optional(),\n familyNamePrefix: z.string().optional(),\n dateOfBirth: z.string().optional(),\n })\n .catchall(z.any())\n);\nexport type Profile = z.infer<typeof ProfileValidator>;\n\nexport const CredentialSubjectValidator = z.object({ id: z.string().optional() }).catchall(z.any());\nexport type CredentialSubject = z.infer<typeof CredentialSubjectValidator>;\n\nexport const CredentialStatusValidator = z.object({ type: z.string(), id: z.string() });\nexport type CredentialStatus = z.infer<typeof CredentialStatusValidator>;\n\nexport const CredentialSchemaValidator = z.object({ id: z.string(), type: z.string() });\nexport type CredentialSchema = z.infer<typeof CredentialSchemaValidator>;\n\nexport const RefreshServiceValidator = z\n .object({ id: z.string(), type: z.string() })\n .catchall(z.any());\nexport type RefreshService = z.infer<typeof RefreshServiceValidator>;\n\nexport const UnsignedVCValidator = z\n .object({\n '@context': ContextValidator,\n id: z.string().optional(),\n type: z.string().array().nonempty(),\n issuer: ProfileValidator,\n issuanceDate: z.string(),\n expirationDate: z.string().optional(),\n credentialSubject: CredentialSubjectValidator.or(CredentialSubjectValidator.array()),\n credentialStatus: CredentialStatusValidator.optional(),\n credentialSchema: CredentialSchemaValidator.array().optional(),\n refreshService: RefreshServiceValidator.optional(),\n })\n .catchall(z.any());\nexport type UnsignedVC = z.infer<typeof UnsignedVCValidator>;\n\nexport const ProofValidator = z\n .object({\n type: z.string(),\n created: z.string(),\n challenge: z.string().optional(),\n domain: z.string().optional(),\n nonce: z.string().optional(),\n proofPurpose: z.string(),\n verificationMethod: z.string(),\n jws: z.string().optional(),\n })\n .catchall(z.any());\nexport type Proof = z.infer<typeof ProofValidator>;\n\nexport const VCValidator = UnsignedVCValidator.extend({\n proof: ProofValidator.or(ProofValidator.array()),\n});\nexport type VC = z.infer<typeof VCValidator>;\n\nexport const UnsignedVPValidator = z\n .object({\n '@context': ContextValidator,\n id: z.string().optional(),\n type: z.string().array().nonempty(),\n verifiableCredential: VCValidator.or(VCValidator.array()).optional(),\n holder: z.string().optional(),\n })\n .catchall(z.any());\nexport type UnsignedVP = z.infer<typeof UnsignedVPValidator>;\n\nexport const VPValidator = UnsignedVPValidator.extend({\n proof: ProofValidator.or(ProofValidator.array()),\n});\nexport type VP = z.infer<typeof VPValidator>;\n", "import { z } from 'zod';\nimport {\n UnsignedVCValidator,\n ProofValidator,\n ProfileValidator,\n ImageValidator,\n IdentifierEntryValidator,\n} from './vc';\n\nexport const AlignmentTargetTypeValidator = z\n .enum([\n 'ceasn:Competency',\n 'ceterms:Credential',\n 'CFItem',\n 'CFRubric',\n 'CFRubricCriterion',\n 'CFRubricCriterionLevel',\n 'CTDL',\n ])\n .or(z.string());\nexport type AlignmentTargetType = z.infer<typeof AlignmentTargetTypeValidator>;\n\nexport const AlignmentValidator = z.object({\n type: z.string().array().nonempty(),\n targetCode: z.string().optional(),\n targetDescription: z.string().optional(),\n targetName: z.string(),\n targetFramework: z.string().optional(),\n targetType: AlignmentTargetTypeValidator.optional(),\n targetUrl: z.string(),\n});\nexport type Alignment = z.infer<typeof AlignmentValidator>;\n\nexport const KnownAchievementTypeValidator = z.enum([\n 'Achievement',\n 'ApprenticeshipCertificate',\n 'Assessment',\n 'Assignment',\n 'AssociateDegree',\n 'Award',\n 'Badge',\n 'BachelorDegree',\n 'Certificate',\n 'CertificateOfCompletion',\n 'Certification',\n 'CommunityService',\n 'Competency',\n 'Course',\n 'CoCurricular',\n 'Degree',\n 'Diploma',\n 'DoctoralDegree',\n 'Fieldwork',\n 'GeneralEducationDevelopment',\n 'JourneymanCertificate',\n 'LearningProgram',\n 'License',\n 'Membership',\n 'ProfessionalDoctorate',\n 'QualityAssuranceCredential',\n 'MasterCertificate',\n 'MasterDegree',\n 'MicroCredential',\n 'ResearchDoctorate',\n 'SecondarySchoolDiploma',\n]);\nexport type KnownAchievementType = z.infer<typeof KnownAchievementTypeValidator>;\n\nexport const AchievementTypeValidator = KnownAchievementTypeValidator.or(z.string());\nexport type AchievementType = z.infer<typeof AchievementTypeValidator>;\n\nexport const CriteriaValidator = z\n .object({ id: z.string().optional(), narrative: z.string().optional() })\n .catchall(z.any());\nexport type Criteria = z.infer<typeof CriteriaValidator>;\n\nexport const EndorsementSubjectValidator = z.object({\n id: z.string(),\n type: z.string().array().nonempty(),\n endorsementComment: z.string().optional(),\n});\nexport type EndorsementSubject = z.infer<typeof EndorsementSubjectValidator>;\n\nexport const EndorsementCredentialValidator = UnsignedVCValidator.extend({\n credentialSubject: EndorsementSubjectValidator,\n proof: ProofValidator.or(ProofValidator.array()).optional(),\n});\nexport type EndorsementCredential = z.infer<typeof EndorsementCredentialValidator>;\n\nexport const RelatedValidator = z.object({\n id: z.string(),\n '@language': z.string().optional(),\n version: z.string().optional(),\n});\nexport type Related = z.infer<typeof RelatedValidator>;\n\nexport const ResultTypeValidator = z\n .enum([\n 'GradePointAverage',\n 'LetterGrade',\n 'Percent',\n 'PerformanceLevel',\n 'PredictedScore',\n 'RawScore',\n 'Result',\n 'RubricCriterion',\n 'RubricCriterionLevel',\n 'RubricScore',\n 'ScaledScore',\n 'Status',\n ])\n .or(z.string());\nexport type ResultType = z.infer<typeof ResultTypeValidator>;\n\nexport const RubricCriterionValidator = z\n .object({\n id: z.string(),\n type: z.string().array().nonempty(),\n alignment: AlignmentValidator.array().optional(),\n description: z.string().optional(),\n level: z.string().optional(),\n name: z.string(),\n points: z.string().optional(),\n })\n .catchall(z.any());\nexport type RubricCriterion = z.infer<typeof RubricCriterionValidator>;\n\nexport const ResultDescriptionValidator = z\n .object({\n id: z.string(),\n type: z.string().array().nonempty(),\n alignment: AlignmentValidator.array().optional(),\n allowedValue: z.string().array().optional(),\n name: z.string(),\n requiredLevel: z.string().optional(),\n requiredValue: z.string().optional(),\n resultType: ResultTypeValidator,\n rubricCriterionLevel: RubricCriterionValidator.array().optional(),\n valueMax: z.string().optional(),\n valueMin: z.string().optional(),\n })\n .catchall(z.any());\nexport type ResultDescription = z.infer<typeof ResultDescriptionValidator>;\n\nexport const AchievementValidator = z\n .object({\n id: z.string().optional(),\n type: z.string().array().nonempty(),\n alignment: AlignmentValidator.array().optional(),\n achievementType: AchievementTypeValidator.optional(),\n creator: ProfileValidator.optional(),\n creditsAvailable: z.number().optional(),\n criteria: CriteriaValidator,\n description: z.string(),\n endorsement: EndorsementCredentialValidator.array().optional(),\n fieldOfStudy: z.string().optional(),\n humanCode: z.string().optional(),\n image: ImageValidator.optional(),\n '@language': z.string().optional(),\n name: z.string(),\n otherIdentifier: IdentifierEntryValidator.array().optional(),\n related: RelatedValidator.array().optional(),\n resultDescription: ResultDescriptionValidator.array().optional(),\n specialization: z.string().optional(),\n tag: z.string().array().optional(),\n version: z.string().optional(),\n })\n .catchall(z.any());\nexport type Achievement = z.infer<typeof AchievementValidator>;\n\nexport const IdentityObjectValidator = z.object({\n type: z.string(),\n hashed: z.boolean(),\n identityHash: z.string(),\n identityType: z.string(),\n salt: z.string().optional(),\n});\nexport type IdentityObject = z.infer<typeof IdentityObjectValidator>;\n\nexport const ResultStatusTypeValidator = z.enum([\n 'Completed',\n 'Enrolled',\n 'Failed',\n 'InProgress',\n 'OnHold',\n 'Withdrew',\n]);\nexport type ResultStatusType = z.infer<typeof ResultStatusTypeValidator>;\n\nexport const ResultValidator = z\n .object({\n type: z.string().array().nonempty(),\n achievedLevel: z.string().optional(),\n alignment: AlignmentValidator.array().optional(),\n resultDescription: z.string().optional(),\n status: ResultStatusTypeValidator.optional(),\n value: z.string().optional(),\n })\n .catchall(z.any());\nexport type Result = z.infer<typeof ResultValidator>;\n\nexport const AchievementSubjectValidator = z\n .object({\n id: z.string().optional(),\n type: z.string().array().nonempty(),\n activityEndDate: z.string().optional(),\n activityStartDate: z.string().optional(),\n creditsEarned: z.number().optional(),\n achievement: AchievementValidator.optional(),\n identifier: IdentityObjectValidator.array().optional(),\n image: ImageValidator.optional(),\n licenseNumber: z.string().optional(),\n narrative: z.string().optional(),\n result: ResultValidator.array().optional(),\n role: z.string().optional(),\n source: ProfileValidator.optional(),\n term: z.string().optional(),\n })\n .catchall(z.any());\nexport type AchievementSubject = z.infer<typeof AchievementSubjectValidator>;\n\nexport const EvidenceValidator = z\n .object({\n id: z.string().optional(),\n type: z.string().array().nonempty(),\n narrative: z.string().optional(),\n name: z.string().optional(),\n description: z.string().optional(),\n genre: z.string().optional(),\n audience: z.string().optional(),\n })\n .catchall(z.any());\nexport type Evidence = z.infer<typeof EvidenceValidator>;\n\nexport const UnsignedAchievementCredentialValidator = UnsignedVCValidator.extend({\n name: z.string().optional(),\n description: z.string().optional(),\n image: ImageValidator.optional(),\n credentialSubject: AchievementSubjectValidator.or(AchievementSubjectValidator.array()),\n endorsement: UnsignedVCValidator.array().optional(),\n evidence: EvidenceValidator.array().optional(),\n});\nexport type UnsignedAchievementCredential = z.infer<typeof UnsignedAchievementCredentialValidator>;\n\nexport const AchievementCredentialValidator = UnsignedAchievementCredentialValidator.extend({\n proof: ProofValidator.or(ProofValidator.array()),\n});\nexport type AchievementCredential = z.infer<typeof AchievementCredentialValidator>;\n", "import { z } from 'zod';\nimport { CredentialSubjectValidator, ProfileValidator } from './vc';\n\nexport const VerificationCheckValidator = z.object({\n checks: z.string().array(),\n warnings: z.string().array(),\n errors: z.string().array(),\n});\nexport type VerificationCheck = z.infer<typeof VerificationCheckValidator>;\n\nexport const VerificationStatusValidator = z.enum(['Success', 'Failed', 'Error']);\nexport type VerificationStatus = z.infer<typeof VerificationStatusValidator>;\nexport const VerificationStatusEnum = VerificationStatusValidator.enum;\n\nexport const VerificationItemValidator = z.object({\n check: z.string(),\n status: VerificationStatusValidator,\n message: z.string().optional(),\n details: z.string().optional(),\n});\nexport type VerificationItem = z.infer<typeof VerificationItemValidator>;\n\nexport const CredentialInfoValidator = z.object({\n title: z.string().optional(),\n createdAt: z.string().optional(),\n issuer: ProfileValidator.optional(),\n issuee: ProfileValidator.optional(),\n credentialSubject: CredentialSubjectValidator.optional(),\n});\nexport type CredentialInfo = z.infer<typeof CredentialInfoValidator>;\n\nexport type CredentialRecord<Metadata extends Record<string, any> = Record<never, never>> = {\n id: string;\n uri: string;\n [key: string]: any;\n} & Metadata;\n\nexport const CredentialRecordValidator: z.ZodType<CredentialRecord> = z\n .object({ id: z.string(), uri: z.string() })\n .catchall(z.any());\n", "import { z } from 'zod';\n\nexport const LCNProfileValidator = z.object({\n profileId: z.string().min(3).max(40),\n displayName: z.string().default(''),\n did: z.string(),\n email: z.string().optional(),\n image: z.string().optional(),\n isServiceProfile: z.boolean().default(false).optional(),\n notificationsWebhook: z.string().url().startsWith('https://').optional(),\n});\nexport type LCNProfile = z.infer<typeof LCNProfileValidator>;\n\nexport const LCNProfileConnectionStatusEnum = z.enum([\n 'CONNECTED',\n 'PENDING_REQUEST_SENT',\n 'PENDING_REQUEST_RECEIVED',\n 'NOT_CONNECTED',\n]);\nexport type LCNProfileConnectionStatusEnum = z.infer<typeof LCNProfileConnectionStatusEnum>;\n\nexport const SentCredentialInfoValidator = z.object({\n uri: z.string(),\n to: z.string(),\n from: z.string(),\n sent: z.string().datetime(),\n received: z.string().datetime().optional(),\n});\nexport type SentCredentialInfo = z.infer<typeof SentCredentialInfoValidator>;\n\nexport const LCNBoostStatus = z.enum([\n 'DRAFT',\n 'LIVE',\n]);\nexport type LCNBoostStatusEnum = z.infer<typeof LCNBoostStatus>;\n\n\nexport const BoostValidator = z.object({\n uri: z.string(),\n name: z.string().optional(),\n type: z.string().optional(),\n category: z.string().optional(),\n status: LCNBoostStatus.optional()\n});\nexport type Boost = z.infer<typeof BoostValidator>;\n\nexport const BoostRecipientValidator = z.object({\n to: LCNProfileValidator,\n from: z.string(),\n received: z.string(),\n});\n\nexport type BoostRecipientInfo = z.infer<typeof BoostRecipientValidator>;\n\nexport const LCNNotificationTypeEnumValidator = z.enum([\n 'CONNECTION_REQUEST',\n 'CONNECTION_ACCEPTED',\n 'CREDENTIAL_RECEIVED',\n 'CREDENTIAL_ACCEPTED',\n 'BOOST_RECEIVED',\n 'BOOST_ACCEPTED',\n 'PRESENTATION_REQUEST',\n 'PRESENTATION_RECEIVED',\n]);\n\nexport type LCNNotificationTypeEnum = z.infer<typeof LCNNotificationTypeEnumValidator>;\n\nexport const LCNNotificationMessageValidator = z.object({\n title: z.string().optional(),\n body: z.string().optional(),\n});\n\nexport type LCNNotificationMessage = z.infer<typeof LCNNotificationMessageValidator>;\n\nexport const LCNNotificationDataValidator = z.object({\n vcUris: z.array(z.string()).optional(),\n vpUris: z.array(z.string()).optional(),\n});\n\nexport type LCNNotificationData = z.infer<typeof LCNNotificationDataValidator>;\n\nexport const LCNNotificationValidator = z.object({\n type: LCNNotificationTypeEnumValidator,\n to: z.string().or(LCNProfileValidator),\n from: z.string().or(LCNProfileValidator),\n message: LCNNotificationMessageValidator.optional(),\n data: LCNNotificationDataValidator.optional(),\n sent: z.string().datetime().optional(),\n});\n\nexport type LCNNotification = z.infer<typeof LCNNotificationValidator>;\n\nexport const LCNBoostClaimLinkSigningAuthorityValidator = z.object({\n endpoint: z.string(),\n name: z.string(),\n did: z.string().optional()\n})\nexport type LCNBoostClaimLinkSigningAuthorityType = z.infer<typeof LCNBoostClaimLinkSigningAuthorityValidator>;\n\nexport const LCNBoostClaimLinkOptionsValidator = z.object({\n ttlSeconds: z.number().optional(),\n totalUses: z.number().optional()\n})\nexport type LCNBoostClaimLinkOptionsType = z.infer<typeof LCNBoostClaimLinkOptionsValidator>;\n\nexport const LCNSigningAuthorityValidator = z.object({\n endpoint: z.string(),\n})\nexport type LCNSigningAuthorityType = z.infer<typeof LCNSigningAuthorityValidator>;\n\nexport const LCNSigningAuthorityForUserValidator = z.object({\n signingAuthority: LCNSigningAuthorityValidator,\n relationship: z.object({\n name: z.string().max(15).regex(/^[a-z0-9-]+$/, {\n message: 'The input string must contain only lowercase letters, numbers, and hyphens.',\n }),\n did: z.string()\n })\n})\nexport type LCNSigningAuthorityForUserType = z.infer<typeof LCNSigningAuthorityForUserValidator>;", "import { z } from 'zod';\n\nexport const JWKValidator = z.object({\n kty: z.string(),\n crv: z.string(),\n x: z.string(),\n y: z.string().optional(),\n n: z.string().optional(),\n d: z.string(),\n});\nexport type JWK = z.infer<typeof JWKValidator>;\n\nexport const JWERecipientHeaderValidator = z.object({\n alg: z.string(),\n iv: z.string(),\n tag: z.string(),\n epk: JWKValidator.partial().optional(),\n kid: z.string().optional(),\n apv: z.string().optional(),\n apu: z.string().optional(),\n});\nexport type JWERecipientHeader = z.infer<typeof JWERecipientHeaderValidator>;\n\nexport const JWERecipientValidator = z.object({\n header: JWERecipientHeaderValidator,\n encrypted_key: z.string(),\n});\nexport type JWERecipient = z.infer<typeof JWERecipientValidator>;\n\nexport const JWEValidator = z.object({\n protected: z.string(),\n iv: z.string(),\n ciphertext: z.string(),\n tag: z.string(),\n aad: z.string().optional(),\n recipients: JWERecipientValidator.array().optional(),\n});\nexport type JWE = z.infer<typeof JWEValidator>;\n"],
5
- "mappings": "saAAA,IAAAA,GAAA,GAAAC,GAAAD,GAAA,oCAAAE,GAAA,iCAAAC,GAAA,gCAAAC,EAAA,6BAAAC,EAAA,yBAAAC,EAAA,qBAAAC,EAAA,iCAAAC,EAAA,uBAAAC,EAAA,4BAAAC,GAAA,mBAAAC,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d,IAAKD,EAAa,QAAQ,EAAE,SAAS,EACrC,IAAK,IAAE,OAAO,EAAE,SAAS,EACzB,IAAK,IAAE,OAAO,EAAE,SAAS,EACzB,IAAK,IAAE,OAAO,EAAE,SAAS,CAC7B,CAAC,EAGYE,EAAwB,IAAE,OAAO,CAC1C,OAAQD,EACR,cAAe,IAAE,OAAO,CAC5B,CAAC,EAGYE,GAAe,IAAE,OAAO,CACjC,UAAW,IAAE,OAAO,EACpB,GAAI,IAAE,OAAO,EACb,WAAY,IAAE,OAAO,EACrB,IAAK,IAAE,OAAO,EACd,IAAK,IAAE,OAAO,EAAE,SAAS,EACzB,WAAYD,EAAsB,MAAM,EAAE,SAAS,CACvD,CAAC",
6
- "names": ["src_exports", "__export", "AchievementCredentialValidator", "AchievementCriteriaValidator", "AchievementSubjectValidator", "AchievementTypeValidator", "AchievementValidator", "AddressValidator", "AlignmentTargetTypeValidator", "AlignmentValidator", "BoostRecipientValidator", "BoostValidator", "ContextValidator", "CredentialInfoValidator", "CredentialRecordValidator", "CredentialSchemaValidator", "CredentialStatusValidator", "CredentialSubjectValidator", "CriteriaValidator", "EndorsementCredentialValidator", "EndorsementSubjectValidator", "EvidenceValidator", "GeoCoordinatesValidator", "IdentifierEntryValidator", "IdentifierTypeValidator", "IdentityObjectValidator", "ImageValidator", "JWERecipientHeaderValidator", "JWERecipientValidator", "JWEValidator", "JWKValidator", "KnownAchievementTypeValidator", "LCNBoostClaimLinkOptionsValidator", "LCNBoostClaimLinkSigningAuthorityValidator", "LCNBoostStatus", "LCNNotificationDataValidator", "LCNNotificationMessageValidator", "LCNNotificationTypeEnumValidator", "LCNNotificationValidator", "LCNProfileConnectionStatusEnum", "LCNProfileValidator", "LCNSigningAuthorityForUserValidator", "LCNSigningAuthorityValidator", "ProfileValidator", "ProofValidator", "RefreshServiceValidator", "RelatedValidator", "ResultDescriptionValidator", "ResultStatusTypeValidator", "ResultTypeValidator", "ResultValidator", "RubricCriterionValidator", "SentCredentialInfoValidator", "UnsignedAchievementCredentialValidator", "UnsignedVCValidator", "UnsignedVPValidator", "VCValidator", "VPValidator", "VerificationCheckValidator", "VerificationItemValidator", "VerificationStatusEnum", "VerificationStatusValidator", "__toCommonJS", "import_zod", "ContextValidator", "AchievementCriteriaValidator", "ImageValidator", "GeoCoordinatesValidator", "AddressValidator", "IdentifierTypeValidator", "IdentifierEntryValidator", "ProfileValidator", "CredentialSubjectValidator", "CredentialStatusValidator", "CredentialSchemaValidator", "RefreshServiceValidator", "UnsignedVCValidator", "ProofValidator", "VCValidator", "UnsignedVPValidator", "VPValidator", "import_zod", "AlignmentTargetTypeValidator", "AlignmentValidator", "KnownAchievementTypeValidator", "AchievementTypeValidator", "CriteriaValidator", "EndorsementSubjectValidator", "EndorsementCredentialValidator", "UnsignedVCValidator", "ProofValidator", "RelatedValidator", "ResultTypeValidator", "RubricCriterionValidator", "ResultDescriptionValidator", "AchievementValidator", "ProfileValidator", "ImageValidator", "IdentifierEntryValidator", "IdentityObjectValidator", "ResultStatusTypeValidator", "ResultValidator", "AchievementSubjectValidator", "EvidenceValidator", "UnsignedAchievementCredentialValidator", "AchievementCredentialValidator", "import_zod", "VerificationCheckValidator", "VerificationStatusValidator", "VerificationStatusEnum", "VerificationItemValidator", "CredentialInfoValidator", "ProfileValidator", "CredentialSubjectValidator", "CredentialRecordValidator", "import_zod", "LCNProfileValidator", "LCNProfileConnectionStatusEnum", "SentCredentialInfoValidator", "LCNBoostStatus", "BoostValidator", "BoostRecipientValidator", "LCNNotificationTypeEnumValidator", "LCNNotificationMessageValidator", "LCNNotificationDataValidator", "LCNNotificationValidator", "LCNBoostClaimLinkSigningAuthorityValidator", "LCNBoostClaimLinkOptionsValidator", "LCNSigningAuthorityValidator", "LCNSigningAuthorityForUserValidator", "import_zod", "JWKValidator", "JWERecipientHeaderValidator", "JWERecipientValidator", "JWEValidator"]
7
- }
package/dist/types.esm.js DELETED
@@ -1,512 +0,0 @@
1
- // src/vc.ts
2
- import { z } from "zod";
3
- var ContextValidator = z.array(z.string().or(z.record(z.any())));
4
- var AchievementCriteriaValidator = z.object({
5
- type: z.string().optional(),
6
- narrative: z.string().optional()
7
- });
8
- var ImageValidator = z.string().or(
9
- z.object({
10
- id: z.string(),
11
- type: z.string(),
12
- caption: z.string().optional()
13
- })
14
- );
15
- var GeoCoordinatesValidator = z.object({
16
- type: z.string().min(1).or(z.string().array().nonempty()),
17
- latitude: z.number(),
18
- longitude: z.number()
19
- });
20
- var AddressValidator = z.object({
21
- type: z.string().min(1).or(z.string().array().nonempty()),
22
- addressCountry: z.string().optional(),
23
- addressCountryCode: z.string().optional(),
24
- addressRegion: z.string().optional(),
25
- addressLocality: z.string().optional(),
26
- streetAddress: z.string().optional(),
27
- postOfficeBoxNumber: z.string().optional(),
28
- postalCode: z.string().optional(),
29
- geo: GeoCoordinatesValidator.optional()
30
- });
31
- var IdentifierTypeValidator = z.enum([
32
- "sourcedId",
33
- "systemId",
34
- "productId",
35
- "userName",
36
- "accountId",
37
- "emailAddress",
38
- "nationalIdentityNumber",
39
- "isbn",
40
- "issn",
41
- "lisSourcedId",
42
- "oneRosterSourcedId",
43
- "sisSourcedId",
44
- "ltiContextId",
45
- "ltiDeploymentId",
46
- "ltiToolId",
47
- "ltiPlatformId",
48
- "ltiUserId",
49
- "identifier"
50
- ]).or(z.string());
51
- var IdentifierEntryValidator = z.object({
52
- type: z.string().min(1).or(z.string().array().nonempty()),
53
- identifier: z.string(),
54
- identifierType: IdentifierTypeValidator
55
- });
56
- var ProfileValidator = z.string().or(
57
- z.object({
58
- id: z.string().optional(),
59
- type: z.string().or(z.string().array().nonempty().optional()),
60
- name: z.string().optional(),
61
- url: z.string().optional(),
62
- phone: z.string().optional(),
63
- description: z.string().optional(),
64
- endorsement: z.any().array().optional(),
65
- image: ImageValidator.optional(),
66
- email: z.string().email().optional(),
67
- address: AddressValidator.optional(),
68
- otherIdentifier: IdentifierEntryValidator.array().optional(),
69
- official: z.string().optional(),
70
- parentOrg: z.any().optional(),
71
- familyName: z.string().optional(),
72
- givenName: z.string().optional(),
73
- additionalName: z.string().optional(),
74
- patronymicName: z.string().optional(),
75
- honorificPrefix: z.string().optional(),
76
- honorificSuffix: z.string().optional(),
77
- familyNamePrefix: z.string().optional(),
78
- dateOfBirth: z.string().optional()
79
- }).catchall(z.any())
80
- );
81
- var CredentialSubjectValidator = z.object({ id: z.string().optional() }).catchall(z.any());
82
- var CredentialStatusValidator = z.object({ type: z.string(), id: z.string() });
83
- var CredentialSchemaValidator = z.object({ id: z.string(), type: z.string() });
84
- var RefreshServiceValidator = z.object({ id: z.string(), type: z.string() }).catchall(z.any());
85
- var UnsignedVCValidator = z.object({
86
- "@context": ContextValidator,
87
- id: z.string().optional(),
88
- type: z.string().array().nonempty(),
89
- issuer: ProfileValidator,
90
- issuanceDate: z.string(),
91
- expirationDate: z.string().optional(),
92
- credentialSubject: CredentialSubjectValidator.or(CredentialSubjectValidator.array()),
93
- credentialStatus: CredentialStatusValidator.optional(),
94
- credentialSchema: CredentialSchemaValidator.array().optional(),
95
- refreshService: RefreshServiceValidator.optional()
96
- }).catchall(z.any());
97
- var ProofValidator = z.object({
98
- type: z.string(),
99
- created: z.string(),
100
- challenge: z.string().optional(),
101
- domain: z.string().optional(),
102
- nonce: z.string().optional(),
103
- proofPurpose: z.string(),
104
- verificationMethod: z.string(),
105
- jws: z.string().optional()
106
- }).catchall(z.any());
107
- var VCValidator = UnsignedVCValidator.extend({
108
- proof: ProofValidator.or(ProofValidator.array())
109
- });
110
- var UnsignedVPValidator = z.object({
111
- "@context": ContextValidator,
112
- id: z.string().optional(),
113
- type: z.string().array().nonempty(),
114
- verifiableCredential: VCValidator.or(VCValidator.array()).optional(),
115
- holder: z.string().optional()
116
- }).catchall(z.any());
117
- var VPValidator = UnsignedVPValidator.extend({
118
- proof: ProofValidator.or(ProofValidator.array())
119
- });
120
-
121
- // src/obv3.ts
122
- import { z as z2 } from "zod";
123
- var AlignmentTargetTypeValidator = z2.enum([
124
- "ceasn:Competency",
125
- "ceterms:Credential",
126
- "CFItem",
127
- "CFRubric",
128
- "CFRubricCriterion",
129
- "CFRubricCriterionLevel",
130
- "CTDL"
131
- ]).or(z2.string());
132
- var AlignmentValidator = z2.object({
133
- type: z2.string().array().nonempty(),
134
- targetCode: z2.string().optional(),
135
- targetDescription: z2.string().optional(),
136
- targetName: z2.string(),
137
- targetFramework: z2.string().optional(),
138
- targetType: AlignmentTargetTypeValidator.optional(),
139
- targetUrl: z2.string()
140
- });
141
- var KnownAchievementTypeValidator = z2.enum([
142
- "Achievement",
143
- "ApprenticeshipCertificate",
144
- "Assessment",
145
- "Assignment",
146
- "AssociateDegree",
147
- "Award",
148
- "Badge",
149
- "BachelorDegree",
150
- "Certificate",
151
- "CertificateOfCompletion",
152
- "Certification",
153
- "CommunityService",
154
- "Competency",
155
- "Course",
156
- "CoCurricular",
157
- "Degree",
158
- "Diploma",
159
- "DoctoralDegree",
160
- "Fieldwork",
161
- "GeneralEducationDevelopment",
162
- "JourneymanCertificate",
163
- "LearningProgram",
164
- "License",
165
- "Membership",
166
- "ProfessionalDoctorate",
167
- "QualityAssuranceCredential",
168
- "MasterCertificate",
169
- "MasterDegree",
170
- "MicroCredential",
171
- "ResearchDoctorate",
172
- "SecondarySchoolDiploma"
173
- ]);
174
- var AchievementTypeValidator = KnownAchievementTypeValidator.or(z2.string());
175
- var CriteriaValidator = z2.object({ id: z2.string().optional(), narrative: z2.string().optional() }).catchall(z2.any());
176
- var EndorsementSubjectValidator = z2.object({
177
- id: z2.string(),
178
- type: z2.string().array().nonempty(),
179
- endorsementComment: z2.string().optional()
180
- });
181
- var EndorsementCredentialValidator = UnsignedVCValidator.extend({
182
- credentialSubject: EndorsementSubjectValidator,
183
- proof: ProofValidator.or(ProofValidator.array()).optional()
184
- });
185
- var RelatedValidator = z2.object({
186
- id: z2.string(),
187
- "@language": z2.string().optional(),
188
- version: z2.string().optional()
189
- });
190
- var ResultTypeValidator = z2.enum([
191
- "GradePointAverage",
192
- "LetterGrade",
193
- "Percent",
194
- "PerformanceLevel",
195
- "PredictedScore",
196
- "RawScore",
197
- "Result",
198
- "RubricCriterion",
199
- "RubricCriterionLevel",
200
- "RubricScore",
201
- "ScaledScore",
202
- "Status"
203
- ]).or(z2.string());
204
- var RubricCriterionValidator = z2.object({
205
- id: z2.string(),
206
- type: z2.string().array().nonempty(),
207
- alignment: AlignmentValidator.array().optional(),
208
- description: z2.string().optional(),
209
- level: z2.string().optional(),
210
- name: z2.string(),
211
- points: z2.string().optional()
212
- }).catchall(z2.any());
213
- var ResultDescriptionValidator = z2.object({
214
- id: z2.string(),
215
- type: z2.string().array().nonempty(),
216
- alignment: AlignmentValidator.array().optional(),
217
- allowedValue: z2.string().array().optional(),
218
- name: z2.string(),
219
- requiredLevel: z2.string().optional(),
220
- requiredValue: z2.string().optional(),
221
- resultType: ResultTypeValidator,
222
- rubricCriterionLevel: RubricCriterionValidator.array().optional(),
223
- valueMax: z2.string().optional(),
224
- valueMin: z2.string().optional()
225
- }).catchall(z2.any());
226
- var AchievementValidator = z2.object({
227
- id: z2.string().optional(),
228
- type: z2.string().array().nonempty(),
229
- alignment: AlignmentValidator.array().optional(),
230
- achievementType: AchievementTypeValidator.optional(),
231
- creator: ProfileValidator.optional(),
232
- creditsAvailable: z2.number().optional(),
233
- criteria: CriteriaValidator,
234
- description: z2.string(),
235
- endorsement: EndorsementCredentialValidator.array().optional(),
236
- fieldOfStudy: z2.string().optional(),
237
- humanCode: z2.string().optional(),
238
- image: ImageValidator.optional(),
239
- "@language": z2.string().optional(),
240
- name: z2.string(),
241
- otherIdentifier: IdentifierEntryValidator.array().optional(),
242
- related: RelatedValidator.array().optional(),
243
- resultDescription: ResultDescriptionValidator.array().optional(),
244
- specialization: z2.string().optional(),
245
- tag: z2.string().array().optional(),
246
- version: z2.string().optional()
247
- }).catchall(z2.any());
248
- var IdentityObjectValidator = z2.object({
249
- type: z2.string(),
250
- hashed: z2.boolean(),
251
- identityHash: z2.string(),
252
- identityType: z2.string(),
253
- salt: z2.string().optional()
254
- });
255
- var ResultStatusTypeValidator = z2.enum([
256
- "Completed",
257
- "Enrolled",
258
- "Failed",
259
- "InProgress",
260
- "OnHold",
261
- "Withdrew"
262
- ]);
263
- var ResultValidator = z2.object({
264
- type: z2.string().array().nonempty(),
265
- achievedLevel: z2.string().optional(),
266
- alignment: AlignmentValidator.array().optional(),
267
- resultDescription: z2.string().optional(),
268
- status: ResultStatusTypeValidator.optional(),
269
- value: z2.string().optional()
270
- }).catchall(z2.any());
271
- var AchievementSubjectValidator = z2.object({
272
- id: z2.string().optional(),
273
- type: z2.string().array().nonempty(),
274
- activityEndDate: z2.string().optional(),
275
- activityStartDate: z2.string().optional(),
276
- creditsEarned: z2.number().optional(),
277
- achievement: AchievementValidator.optional(),
278
- identifier: IdentityObjectValidator.array().optional(),
279
- image: ImageValidator.optional(),
280
- licenseNumber: z2.string().optional(),
281
- narrative: z2.string().optional(),
282
- result: ResultValidator.array().optional(),
283
- role: z2.string().optional(),
284
- source: ProfileValidator.optional(),
285
- term: z2.string().optional()
286
- }).catchall(z2.any());
287
- var EvidenceValidator = z2.object({
288
- id: z2.string().optional(),
289
- type: z2.string().array().nonempty(),
290
- narrative: z2.string().optional(),
291
- name: z2.string().optional(),
292
- description: z2.string().optional(),
293
- genre: z2.string().optional(),
294
- audience: z2.string().optional()
295
- }).catchall(z2.any());
296
- var UnsignedAchievementCredentialValidator = UnsignedVCValidator.extend({
297
- name: z2.string().optional(),
298
- description: z2.string().optional(),
299
- image: ImageValidator.optional(),
300
- credentialSubject: AchievementSubjectValidator.or(AchievementSubjectValidator.array()),
301
- endorsement: UnsignedVCValidator.array().optional(),
302
- evidence: EvidenceValidator.array().optional()
303
- });
304
- var AchievementCredentialValidator = UnsignedAchievementCredentialValidator.extend({
305
- proof: ProofValidator.or(ProofValidator.array())
306
- });
307
-
308
- // src/learncard.ts
309
- import { z as z3 } from "zod";
310
- var VerificationCheckValidator = z3.object({
311
- checks: z3.string().array(),
312
- warnings: z3.string().array(),
313
- errors: z3.string().array()
314
- });
315
- var VerificationStatusValidator = z3.enum(["Success", "Failed", "Error"]);
316
- var VerificationStatusEnum = VerificationStatusValidator.enum;
317
- var VerificationItemValidator = z3.object({
318
- check: z3.string(),
319
- status: VerificationStatusValidator,
320
- message: z3.string().optional(),
321
- details: z3.string().optional()
322
- });
323
- var CredentialInfoValidator = z3.object({
324
- title: z3.string().optional(),
325
- createdAt: z3.string().optional(),
326
- issuer: ProfileValidator.optional(),
327
- issuee: ProfileValidator.optional(),
328
- credentialSubject: CredentialSubjectValidator.optional()
329
- });
330
- var CredentialRecordValidator = z3.object({ id: z3.string(), uri: z3.string() }).catchall(z3.any());
331
-
332
- // src/lcn.ts
333
- import { z as z4 } from "zod";
334
- var LCNProfileValidator = z4.object({
335
- profileId: z4.string().min(3).max(40),
336
- displayName: z4.string().default(""),
337
- did: z4.string(),
338
- email: z4.string().optional(),
339
- image: z4.string().optional(),
340
- isServiceProfile: z4.boolean().default(false).optional(),
341
- notificationsWebhook: z4.string().url().startsWith("https://").optional()
342
- });
343
- var LCNProfileConnectionStatusEnum = z4.enum([
344
- "CONNECTED",
345
- "PENDING_REQUEST_SENT",
346
- "PENDING_REQUEST_RECEIVED",
347
- "NOT_CONNECTED"
348
- ]);
349
- var SentCredentialInfoValidator = z4.object({
350
- uri: z4.string(),
351
- to: z4.string(),
352
- from: z4.string(),
353
- sent: z4.string().datetime(),
354
- received: z4.string().datetime().optional()
355
- });
356
- var LCNBoostStatus = z4.enum([
357
- "DRAFT",
358
- "LIVE"
359
- ]);
360
- var BoostValidator = z4.object({
361
- uri: z4.string(),
362
- name: z4.string().optional(),
363
- type: z4.string().optional(),
364
- category: z4.string().optional(),
365
- status: LCNBoostStatus.optional()
366
- });
367
- var BoostRecipientValidator = z4.object({
368
- to: LCNProfileValidator,
369
- from: z4.string(),
370
- received: z4.string()
371
- });
372
- var LCNNotificationTypeEnumValidator = z4.enum([
373
- "CONNECTION_REQUEST",
374
- "CONNECTION_ACCEPTED",
375
- "CREDENTIAL_RECEIVED",
376
- "CREDENTIAL_ACCEPTED",
377
- "BOOST_RECEIVED",
378
- "BOOST_ACCEPTED",
379
- "PRESENTATION_REQUEST",
380
- "PRESENTATION_RECEIVED"
381
- ]);
382
- var LCNNotificationMessageValidator = z4.object({
383
- title: z4.string().optional(),
384
- body: z4.string().optional()
385
- });
386
- var LCNNotificationDataValidator = z4.object({
387
- vcUris: z4.array(z4.string()).optional(),
388
- vpUris: z4.array(z4.string()).optional()
389
- });
390
- var LCNNotificationValidator = z4.object({
391
- type: LCNNotificationTypeEnumValidator,
392
- to: z4.string().or(LCNProfileValidator),
393
- from: z4.string().or(LCNProfileValidator),
394
- message: LCNNotificationMessageValidator.optional(),
395
- data: LCNNotificationDataValidator.optional(),
396
- sent: z4.string().datetime().optional()
397
- });
398
- var LCNBoostClaimLinkSigningAuthorityValidator = z4.object({
399
- endpoint: z4.string(),
400
- name: z4.string(),
401
- did: z4.string().optional()
402
- });
403
- var LCNBoostClaimLinkOptionsValidator = z4.object({
404
- ttlSeconds: z4.number().optional(),
405
- totalUses: z4.number().optional()
406
- });
407
- var LCNSigningAuthorityValidator = z4.object({
408
- endpoint: z4.string()
409
- });
410
- var LCNSigningAuthorityForUserValidator = z4.object({
411
- signingAuthority: LCNSigningAuthorityValidator,
412
- relationship: z4.object({
413
- name: z4.string().max(15).regex(/^[a-z0-9-]+$/, {
414
- message: "The input string must contain only lowercase letters, numbers, and hyphens."
415
- }),
416
- did: z4.string()
417
- })
418
- });
419
-
420
- // src/crypto.ts
421
- import { z as z5 } from "zod";
422
- var JWKValidator = z5.object({
423
- kty: z5.string(),
424
- crv: z5.string(),
425
- x: z5.string(),
426
- y: z5.string().optional(),
427
- n: z5.string().optional(),
428
- d: z5.string()
429
- });
430
- var JWERecipientHeaderValidator = z5.object({
431
- alg: z5.string(),
432
- iv: z5.string(),
433
- tag: z5.string(),
434
- epk: JWKValidator.partial().optional(),
435
- kid: z5.string().optional(),
436
- apv: z5.string().optional(),
437
- apu: z5.string().optional()
438
- });
439
- var JWERecipientValidator = z5.object({
440
- header: JWERecipientHeaderValidator,
441
- encrypted_key: z5.string()
442
- });
443
- var JWEValidator = z5.object({
444
- protected: z5.string(),
445
- iv: z5.string(),
446
- ciphertext: z5.string(),
447
- tag: z5.string(),
448
- aad: z5.string().optional(),
449
- recipients: JWERecipientValidator.array().optional()
450
- });
451
- export {
452
- AchievementCredentialValidator,
453
- AchievementCriteriaValidator,
454
- AchievementSubjectValidator,
455
- AchievementTypeValidator,
456
- AchievementValidator,
457
- AddressValidator,
458
- AlignmentTargetTypeValidator,
459
- AlignmentValidator,
460
- BoostRecipientValidator,
461
- BoostValidator,
462
- ContextValidator,
463
- CredentialInfoValidator,
464
- CredentialRecordValidator,
465
- CredentialSchemaValidator,
466
- CredentialStatusValidator,
467
- CredentialSubjectValidator,
468
- CriteriaValidator,
469
- EndorsementCredentialValidator,
470
- EndorsementSubjectValidator,
471
- EvidenceValidator,
472
- GeoCoordinatesValidator,
473
- IdentifierEntryValidator,
474
- IdentifierTypeValidator,
475
- IdentityObjectValidator,
476
- ImageValidator,
477
- JWERecipientHeaderValidator,
478
- JWERecipientValidator,
479
- JWEValidator,
480
- JWKValidator,
481
- KnownAchievementTypeValidator,
482
- LCNBoostClaimLinkOptionsValidator,
483
- LCNBoostClaimLinkSigningAuthorityValidator,
484
- LCNBoostStatus,
485
- LCNNotificationDataValidator,
486
- LCNNotificationMessageValidator,
487
- LCNNotificationTypeEnumValidator,
488
- LCNNotificationValidator,
489
- LCNProfileConnectionStatusEnum,
490
- LCNProfileValidator,
491
- LCNSigningAuthorityForUserValidator,
492
- LCNSigningAuthorityValidator,
493
- ProfileValidator,
494
- ProofValidator,
495
- RefreshServiceValidator,
496
- RelatedValidator,
497
- ResultDescriptionValidator,
498
- ResultStatusTypeValidator,
499
- ResultTypeValidator,
500
- ResultValidator,
501
- RubricCriterionValidator,
502
- SentCredentialInfoValidator,
503
- UnsignedAchievementCredentialValidator,
504
- UnsignedVCValidator,
505
- UnsignedVPValidator,
506
- VCValidator,
507
- VPValidator,
508
- VerificationCheckValidator,
509
- VerificationItemValidator,
510
- VerificationStatusEnum,
511
- VerificationStatusValidator
512
- };