@learncard/idx-plugin 1.0.33 → 1.0.35
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/idx-plugin.cjs.development.js +84 -14
- package/dist/idx-plugin.cjs.development.js.map +3 -3
- package/dist/idx-plugin.cjs.production.min.js +281 -281
- package/dist/idx-plugin.cjs.production.min.js.map +3 -3
- package/dist/idx-plugin.esm.js +84 -14
- package/dist/idx-plugin.esm.js.map +3 -3
- package/package.json +4 -4
|
@@ -10996,18 +10996,31 @@ var ProfileValidator = mod.string().or(
|
|
|
10996
10996
|
var CredentialSubjectValidator = mod.object({ id: mod.string().optional() }).catchall(mod.any());
|
|
10997
10997
|
var CredentialStatusValidator = mod.object({ type: mod.string(), id: mod.string() }).catchall(mod.any());
|
|
10998
10998
|
var CredentialSchemaValidator = mod.object({ id: mod.string(), type: mod.string() }).catchall(mod.any());
|
|
10999
|
-
var RefreshServiceValidator = mod.object({ id: mod.string(), type: mod.string() }).catchall(mod.any());
|
|
10999
|
+
var RefreshServiceValidator = mod.object({ id: mod.string().optional(), type: mod.string() }).catchall(mod.any());
|
|
11000
|
+
var TermsOfUseValidator = mod.object({ type: mod.string(), id: mod.string().optional() }).catchall(mod.any());
|
|
11001
|
+
var VC2EvidenceValidator = mod.object({ type: mod.string().or(mod.string().array().nonempty()), id: mod.string().optional() }).catchall(mod.any());
|
|
11000
11002
|
var UnsignedVCValidator = mod.object({
|
|
11001
11003
|
"@context": ContextValidator,
|
|
11002
11004
|
id: mod.string().optional(),
|
|
11003
11005
|
type: mod.string().array().nonempty(),
|
|
11004
11006
|
issuer: ProfileValidator,
|
|
11005
|
-
issuanceDate: mod.string(),
|
|
11006
|
-
expirationDate: mod.string().optional(),
|
|
11007
11007
|
credentialSubject: CredentialSubjectValidator.or(CredentialSubjectValidator.array()),
|
|
11008
|
-
|
|
11009
|
-
credentialSchema: CredentialSchemaValidator.
|
|
11010
|
-
|
|
11008
|
+
refreshService: RefreshServiceValidator.or(RefreshServiceValidator.array()).optional(),
|
|
11009
|
+
credentialSchema: CredentialSchemaValidator.or(
|
|
11010
|
+
CredentialSchemaValidator.array()
|
|
11011
|
+
).optional(),
|
|
11012
|
+
issuanceDate: mod.string().optional(),
|
|
11013
|
+
expirationDate: mod.string().optional(),
|
|
11014
|
+
credentialStatus: CredentialStatusValidator.or(
|
|
11015
|
+
CredentialStatusValidator.array()
|
|
11016
|
+
).optional(),
|
|
11017
|
+
name: mod.string().optional(),
|
|
11018
|
+
description: mod.string().optional(),
|
|
11019
|
+
validFrom: mod.string().optional(),
|
|
11020
|
+
validUntil: mod.string().optional(),
|
|
11021
|
+
status: CredentialStatusValidator.or(CredentialStatusValidator.array()).optional(),
|
|
11022
|
+
termsOfUse: TermsOfUseValidator.or(TermsOfUseValidator.array()).optional(),
|
|
11023
|
+
evidence: VC2EvidenceValidator.or(VC2EvidenceValidator.array()).optional()
|
|
11011
11024
|
}).catchall(mod.any());
|
|
11012
11025
|
var ProofValidator = mod.object({
|
|
11013
11026
|
type: mod.string(),
|
|
@@ -11259,7 +11272,7 @@ var AchievementSubjectValidator = mod.object({
|
|
|
11259
11272
|
}).catchall(mod.any());
|
|
11260
11273
|
var EvidenceValidator = mod.object({
|
|
11261
11274
|
id: mod.string().optional(),
|
|
11262
|
-
type: mod.string().array().nonempty(),
|
|
11275
|
+
type: mod.string().or(mod.string().array().nonempty()),
|
|
11263
11276
|
narrative: mod.string().optional(),
|
|
11264
11277
|
name: mod.string().optional(),
|
|
11265
11278
|
description: mod.string().optional(),
|
|
@@ -11732,6 +11745,28 @@ var LCNNotificationValidator = mod.object({
|
|
|
11732
11745
|
data: LCNNotificationDataValidator.optional(),
|
|
11733
11746
|
sent: mod.string().datetime().optional()
|
|
11734
11747
|
});
|
|
11748
|
+
var AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX = "auth-grant:";
|
|
11749
|
+
var AuthGrantValidator = mod.object({
|
|
11750
|
+
id: mod.string(),
|
|
11751
|
+
name: mod.string(),
|
|
11752
|
+
description: mod.string().optional(),
|
|
11753
|
+
challenge: mod.string().startsWith(AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX).min(10, { message: "Challenge is too short" }).max(100, { message: "Challenge is too long" }),
|
|
11754
|
+
status: mod.enum(["revoked", "active"], {
|
|
11755
|
+
required_error: "Status is required",
|
|
11756
|
+
invalid_type_error: "Status must be either active or revoked"
|
|
11757
|
+
}),
|
|
11758
|
+
scope: mod.string(),
|
|
11759
|
+
createdAt: mod.string().datetime({ message: "createdAt must be a valid ISO 8601 datetime string" }),
|
|
11760
|
+
expiresAt: mod.string().datetime({ message: "expiresAt must be a valid ISO 8601 datetime string" }).nullish().optional()
|
|
11761
|
+
});
|
|
11762
|
+
var FlatAuthGrantValidator = mod.object({ id: mod.string() }).catchall(mod.any());
|
|
11763
|
+
var AuthGrantStatusValidator = mod.enum(["active", "revoked"]);
|
|
11764
|
+
var AuthGrantQueryValidator = mod.object({
|
|
11765
|
+
id: StringQuery,
|
|
11766
|
+
name: StringQuery,
|
|
11767
|
+
description: StringQuery,
|
|
11768
|
+
status: AuthGrantStatusValidator
|
|
11769
|
+
}).partial();
|
|
11735
11770
|
|
|
11736
11771
|
// ../ceramic/dist/ceramic-plugin.esm.js
|
|
11737
11772
|
var __create2 = Object.create;
|
|
@@ -66012,18 +66047,31 @@ var ProfileValidator2 = mod2.string().or(
|
|
|
66012
66047
|
var CredentialSubjectValidator2 = mod2.object({ id: mod2.string().optional() }).catchall(mod2.any());
|
|
66013
66048
|
var CredentialStatusValidator2 = mod2.object({ type: mod2.string(), id: mod2.string() }).catchall(mod2.any());
|
|
66014
66049
|
var CredentialSchemaValidator2 = mod2.object({ id: mod2.string(), type: mod2.string() }).catchall(mod2.any());
|
|
66015
|
-
var RefreshServiceValidator2 = mod2.object({ id: mod2.string(), type: mod2.string() }).catchall(mod2.any());
|
|
66050
|
+
var RefreshServiceValidator2 = mod2.object({ id: mod2.string().optional(), type: mod2.string() }).catchall(mod2.any());
|
|
66051
|
+
var TermsOfUseValidator2 = mod2.object({ type: mod2.string(), id: mod2.string().optional() }).catchall(mod2.any());
|
|
66052
|
+
var VC2EvidenceValidator2 = mod2.object({ type: mod2.string().or(mod2.string().array().nonempty()), id: mod2.string().optional() }).catchall(mod2.any());
|
|
66016
66053
|
var UnsignedVCValidator2 = mod2.object({
|
|
66017
66054
|
"@context": ContextValidator2,
|
|
66018
66055
|
id: mod2.string().optional(),
|
|
66019
66056
|
type: mod2.string().array().nonempty(),
|
|
66020
66057
|
issuer: ProfileValidator2,
|
|
66021
|
-
issuanceDate: mod2.string(),
|
|
66022
|
-
expirationDate: mod2.string().optional(),
|
|
66023
66058
|
credentialSubject: CredentialSubjectValidator2.or(CredentialSubjectValidator2.array()),
|
|
66024
|
-
|
|
66025
|
-
credentialSchema: CredentialSchemaValidator2.
|
|
66026
|
-
|
|
66059
|
+
refreshService: RefreshServiceValidator2.or(RefreshServiceValidator2.array()).optional(),
|
|
66060
|
+
credentialSchema: CredentialSchemaValidator2.or(
|
|
66061
|
+
CredentialSchemaValidator2.array()
|
|
66062
|
+
).optional(),
|
|
66063
|
+
issuanceDate: mod2.string().optional(),
|
|
66064
|
+
expirationDate: mod2.string().optional(),
|
|
66065
|
+
credentialStatus: CredentialStatusValidator2.or(
|
|
66066
|
+
CredentialStatusValidator2.array()
|
|
66067
|
+
).optional(),
|
|
66068
|
+
name: mod2.string().optional(),
|
|
66069
|
+
description: mod2.string().optional(),
|
|
66070
|
+
validFrom: mod2.string().optional(),
|
|
66071
|
+
validUntil: mod2.string().optional(),
|
|
66072
|
+
status: CredentialStatusValidator2.or(CredentialStatusValidator2.array()).optional(),
|
|
66073
|
+
termsOfUse: TermsOfUseValidator2.or(TermsOfUseValidator2.array()).optional(),
|
|
66074
|
+
evidence: VC2EvidenceValidator2.or(VC2EvidenceValidator2.array()).optional()
|
|
66027
66075
|
}).catchall(mod2.any());
|
|
66028
66076
|
var ProofValidator2 = mod2.object({
|
|
66029
66077
|
type: mod2.string(),
|
|
@@ -66275,7 +66323,7 @@ var AchievementSubjectValidator2 = mod2.object({
|
|
|
66275
66323
|
}).catchall(mod2.any());
|
|
66276
66324
|
var EvidenceValidator2 = mod2.object({
|
|
66277
66325
|
id: mod2.string().optional(),
|
|
66278
|
-
type: mod2.string().array().nonempty(),
|
|
66326
|
+
type: mod2.string().or(mod2.string().array().nonempty()),
|
|
66279
66327
|
narrative: mod2.string().optional(),
|
|
66280
66328
|
name: mod2.string().optional(),
|
|
66281
66329
|
description: mod2.string().optional(),
|
|
@@ -66748,6 +66796,28 @@ var LCNNotificationValidator2 = mod2.object({
|
|
|
66748
66796
|
data: LCNNotificationDataValidator2.optional(),
|
|
66749
66797
|
sent: mod2.string().datetime().optional()
|
|
66750
66798
|
});
|
|
66799
|
+
var AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX2 = "auth-grant:";
|
|
66800
|
+
var AuthGrantValidator2 = mod2.object({
|
|
66801
|
+
id: mod2.string(),
|
|
66802
|
+
name: mod2.string(),
|
|
66803
|
+
description: mod2.string().optional(),
|
|
66804
|
+
challenge: mod2.string().startsWith(AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX2).min(10, { message: "Challenge is too short" }).max(100, { message: "Challenge is too long" }),
|
|
66805
|
+
status: mod2.enum(["revoked", "active"], {
|
|
66806
|
+
required_error: "Status is required",
|
|
66807
|
+
invalid_type_error: "Status must be either active or revoked"
|
|
66808
|
+
}),
|
|
66809
|
+
scope: mod2.string(),
|
|
66810
|
+
createdAt: mod2.string().datetime({ message: "createdAt must be a valid ISO 8601 datetime string" }),
|
|
66811
|
+
expiresAt: mod2.string().datetime({ message: "expiresAt must be a valid ISO 8601 datetime string" }).nullish().optional()
|
|
66812
|
+
});
|
|
66813
|
+
var FlatAuthGrantValidator2 = mod2.object({ id: mod2.string() }).catchall(mod2.any());
|
|
66814
|
+
var AuthGrantStatusValidator2 = mod2.enum(["active", "revoked"]);
|
|
66815
|
+
var AuthGrantQueryValidator2 = mod2.object({
|
|
66816
|
+
id: StringQuery2,
|
|
66817
|
+
name: StringQuery2,
|
|
66818
|
+
description: StringQuery2,
|
|
66819
|
+
status: AuthGrantStatusValidator2
|
|
66820
|
+
}).partial();
|
|
66751
66821
|
var streamIdToCeramicURI = /* @__PURE__ */ __name3((id) => `lc:ceramic:${id}`, "streamIdToCeramicURI");
|
|
66752
66822
|
var CeramicURIValidator = mod2.string().refine(
|
|
66753
66823
|
(string22) => string22.split(":").length === 3 && string22.split(":")[0] === "lc",
|