@learncard/idx-plugin 1.0.52 → 1.0.53
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 +526 -32
- package/dist/idx-plugin.cjs.development.js.map +3 -3
- package/dist/idx-plugin.cjs.production.min.js +182 -182
- package/dist/idx-plugin.cjs.production.min.js.map +3 -3
- package/dist/idx-plugin.esm.js +526 -32
- package/dist/idx-plugin.esm.js.map +3 -3
- package/package.json +4 -4
|
@@ -12027,7 +12027,14 @@ var RegExpValidator = z.instanceof(RegExp).or(
|
|
|
12027
12027
|
}
|
|
12028
12028
|
})
|
|
12029
12029
|
);
|
|
12030
|
-
var
|
|
12030
|
+
var BaseStringQuery = z.string().or(z.object({ $in: z.string().array() })).or(z.object({ $regex: RegExpValidator }));
|
|
12031
|
+
var StringQuery = z.union([
|
|
12032
|
+
BaseStringQuery,
|
|
12033
|
+
z.object({
|
|
12034
|
+
$or: BaseStringQuery.array()
|
|
12035
|
+
})
|
|
12036
|
+
]);
|
|
12037
|
+
extendZodWithOpenApi(z);
|
|
12031
12038
|
var LCNProfileDisplayValidator = z.object({
|
|
12032
12039
|
backgroundColor: z.string().optional(),
|
|
12033
12040
|
backgroundImage: z.string().optional(),
|
|
@@ -12185,7 +12192,7 @@ var BoostValidator = z.object({
|
|
|
12185
12192
|
claimPermissions: BoostPermissionsValidator.optional(),
|
|
12186
12193
|
allowAnyoneToCreateChildren: z.boolean().optional()
|
|
12187
12194
|
});
|
|
12188
|
-
var
|
|
12195
|
+
var BaseBoostQueryValidator = z.object({
|
|
12189
12196
|
uri: StringQuery,
|
|
12190
12197
|
name: StringQuery,
|
|
12191
12198
|
type: StringQuery,
|
|
@@ -12194,6 +12201,12 @@ var BoostQueryValidator = z.object({
|
|
|
12194
12201
|
status: LCNBoostStatus.or(z.object({ $in: LCNBoostStatus.array() })),
|
|
12195
12202
|
autoConnectRecipients: z.boolean()
|
|
12196
12203
|
}).partial();
|
|
12204
|
+
var BoostQueryValidator = z.union([
|
|
12205
|
+
z.object({
|
|
12206
|
+
$or: BaseBoostQueryValidator.array()
|
|
12207
|
+
}),
|
|
12208
|
+
BaseBoostQueryValidator
|
|
12209
|
+
]);
|
|
12197
12210
|
var PaginatedBoostsValidator = PaginationResponseValidator.extend({
|
|
12198
12211
|
records: BoostValidator.array()
|
|
12199
12212
|
});
|
|
@@ -12249,11 +12262,25 @@ var ConsentFlowTermsStatusValidator = z.enum(["live", "stale", "withdrawn"]);
|
|
|
12249
12262
|
var ConsentFlowContractValidator = z.object({
|
|
12250
12263
|
read: z.object({
|
|
12251
12264
|
anonymize: z.boolean().optional(),
|
|
12252
|
-
credentials: z.object({
|
|
12265
|
+
credentials: z.object({
|
|
12266
|
+
categories: z.record(
|
|
12267
|
+
z.object({
|
|
12268
|
+
required: z.boolean(),
|
|
12269
|
+
defaultEnabled: z.boolean().optional()
|
|
12270
|
+
})
|
|
12271
|
+
).default({})
|
|
12272
|
+
}).default({}),
|
|
12253
12273
|
personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
|
|
12254
12274
|
}).default({}),
|
|
12255
12275
|
write: z.object({
|
|
12256
|
-
credentials: z.object({
|
|
12276
|
+
credentials: z.object({
|
|
12277
|
+
categories: z.record(
|
|
12278
|
+
z.object({
|
|
12279
|
+
required: z.boolean(),
|
|
12280
|
+
defaultEnabled: z.boolean().optional()
|
|
12281
|
+
})
|
|
12282
|
+
).default({})
|
|
12283
|
+
}).default({}),
|
|
12257
12284
|
personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
|
|
12258
12285
|
}).default({})
|
|
12259
12286
|
});
|
|
@@ -12396,6 +12423,17 @@ var ConsentFlowTransactionValidator = z.object({
|
|
|
12396
12423
|
var PaginatedConsentFlowTransactionsValidator = PaginationResponseValidator.extend({
|
|
12397
12424
|
records: ConsentFlowTransactionValidator.array()
|
|
12398
12425
|
});
|
|
12426
|
+
var BaseSkillFrameworkQueryValidator = z.object({
|
|
12427
|
+
id: StringQuery,
|
|
12428
|
+
name: StringQuery,
|
|
12429
|
+
description: StringQuery,
|
|
12430
|
+
sourceURI: StringQuery,
|
|
12431
|
+
status: StringQuery
|
|
12432
|
+
}).partial();
|
|
12433
|
+
var SkillFrameworkQueryValidator = z.union([
|
|
12434
|
+
z.object({ $or: BaseSkillFrameworkQueryValidator.array() }),
|
|
12435
|
+
BaseSkillFrameworkQueryValidator
|
|
12436
|
+
]);
|
|
12399
12437
|
var ContractCredentialValidator = z.object({
|
|
12400
12438
|
credentialUri: z.string(),
|
|
12401
12439
|
termsUri: z.string(),
|
|
@@ -12574,31 +12612,55 @@ var IssueInboxSigningAuthorityValidator = z.object({
|
|
|
12574
12612
|
});
|
|
12575
12613
|
var IssueInboxCredentialValidator = z.object({
|
|
12576
12614
|
recipient: ContactMethodQueryValidator.describe("The recipient of the credential"),
|
|
12577
|
-
credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe(
|
|
12615
|
+
credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe(
|
|
12616
|
+
"The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
|
|
12617
|
+
),
|
|
12578
12618
|
configuration: z.object({
|
|
12579
|
-
signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe(
|
|
12619
|
+
signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe(
|
|
12620
|
+
"The signing authority to use for the credential. If not provided, the users default signing authority will be used if the credential is not signed."
|
|
12621
|
+
),
|
|
12580
12622
|
webhookUrl: z.string().url().optional().describe("The webhook URL to receive credential issuance events."),
|
|
12581
12623
|
expiresInDays: z.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
|
|
12582
12624
|
delivery: z.object({
|
|
12583
|
-
suppress: z.boolean().optional().default(false).describe(
|
|
12625
|
+
suppress: z.boolean().optional().default(false).describe(
|
|
12626
|
+
"Whether to suppress delivery of the credential to the recipient. If true, the email/sms will not be sent to the recipient. Useful if you would like to manually send claim link to your users."
|
|
12627
|
+
),
|
|
12584
12628
|
template: z.object({
|
|
12585
|
-
id: z.enum(["universal-inbox-claim"]).optional().describe(
|
|
12629
|
+
id: z.enum(["universal-inbox-claim"]).optional().describe(
|
|
12630
|
+
"The template ID to use for the credential delivery. If not provided, the default template will be used."
|
|
12631
|
+
),
|
|
12586
12632
|
model: z.object({
|
|
12587
12633
|
issuer: z.object({
|
|
12588
|
-
name: z.string().optional().describe(
|
|
12634
|
+
name: z.string().optional().describe(
|
|
12635
|
+
'The name of the organization (e.g., "State University").'
|
|
12636
|
+
),
|
|
12589
12637
|
logoUrl: z.string().url().optional().describe("The URL of the organization's logo.")
|
|
12590
12638
|
}).optional(),
|
|
12591
12639
|
credential: z.object({
|
|
12592
|
-
name: z.string().optional().describe(
|
|
12593
|
-
|
|
12640
|
+
name: z.string().optional().describe(
|
|
12641
|
+
'The name of the credential (e.g., "Bachelor of Science").'
|
|
12642
|
+
),
|
|
12643
|
+
type: z.string().optional().describe(
|
|
12644
|
+
'The type of the credential (e.g., "degree", "certificate").'
|
|
12645
|
+
)
|
|
12594
12646
|
}).optional(),
|
|
12595
12647
|
recipient: z.object({
|
|
12596
|
-
name: z.string().optional().describe(
|
|
12648
|
+
name: z.string().optional().describe(
|
|
12649
|
+
'The name of the recipient (e.g., "John Doe").'
|
|
12650
|
+
)
|
|
12597
12651
|
}).optional()
|
|
12598
|
-
}).describe(
|
|
12599
|
-
|
|
12600
|
-
|
|
12601
|
-
|
|
12652
|
+
}).describe(
|
|
12653
|
+
"The template model to use for the credential delivery. Injects via template variables into email/sms templates. If not provided, the default template will be used."
|
|
12654
|
+
)
|
|
12655
|
+
}).optional().describe(
|
|
12656
|
+
"The template to use for the credential delivery. If not provided, the default template will be used."
|
|
12657
|
+
)
|
|
12658
|
+
}).optional().describe(
|
|
12659
|
+
"Configuration for the credential delivery i.e. email or SMS. When credentials are sent to a user who has a verified email or phone associated with their account, delivery is skipped, and the credential will be sent using in-app notifications. If not provided, the default configuration will be used."
|
|
12660
|
+
)
|
|
12661
|
+
}).optional().describe(
|
|
12662
|
+
"Configuration for the credential issuance. If not provided, the default configuration will be used."
|
|
12663
|
+
)
|
|
12602
12664
|
});
|
|
12603
12665
|
var IssueInboxCredentialResponseValidator = z.object({
|
|
12604
12666
|
issuanceId: z.string(),
|
|
@@ -12660,6 +12722,191 @@ var ClaimTokenValidator = z.object({
|
|
|
12660
12722
|
expiresAt: z.string(),
|
|
12661
12723
|
used: z.boolean()
|
|
12662
12724
|
});
|
|
12725
|
+
var TagValidator = z.object({
|
|
12726
|
+
id: z.string(),
|
|
12727
|
+
name: z.string().min(1),
|
|
12728
|
+
slug: z.string().min(1),
|
|
12729
|
+
createdAt: z.string().optional(),
|
|
12730
|
+
updatedAt: z.string().optional()
|
|
12731
|
+
});
|
|
12732
|
+
var SkillStatusEnum = z.enum(["active", "archived"]);
|
|
12733
|
+
var SkillValidator = z.object({
|
|
12734
|
+
id: z.string(),
|
|
12735
|
+
statement: z.string(),
|
|
12736
|
+
description: z.string().optional(),
|
|
12737
|
+
code: z.string().optional(),
|
|
12738
|
+
icon: z.string().optional(),
|
|
12739
|
+
type: z.string().default("skill"),
|
|
12740
|
+
status: SkillStatusEnum.default("active"),
|
|
12741
|
+
frameworkId: z.string().optional(),
|
|
12742
|
+
createdAt: z.string().optional(),
|
|
12743
|
+
updatedAt: z.string().optional()
|
|
12744
|
+
});
|
|
12745
|
+
var BaseSkillQueryValidator = z.object({
|
|
12746
|
+
id: StringQuery,
|
|
12747
|
+
statement: StringQuery,
|
|
12748
|
+
description: StringQuery,
|
|
12749
|
+
code: StringQuery,
|
|
12750
|
+
type: StringQuery,
|
|
12751
|
+
status: SkillStatusEnum.or(z.object({ $in: SkillStatusEnum.array() }))
|
|
12752
|
+
}).partial();
|
|
12753
|
+
var SkillQueryValidator = z.union([
|
|
12754
|
+
z.object({
|
|
12755
|
+
$or: BaseSkillQueryValidator.array()
|
|
12756
|
+
}),
|
|
12757
|
+
BaseSkillQueryValidator
|
|
12758
|
+
]);
|
|
12759
|
+
var SkillFrameworkStatusEnum = z.enum(["active", "archived"]);
|
|
12760
|
+
var SkillFrameworkValidator = z.object({
|
|
12761
|
+
id: z.string(),
|
|
12762
|
+
name: z.string(),
|
|
12763
|
+
description: z.string().optional(),
|
|
12764
|
+
image: z.string().optional(),
|
|
12765
|
+
sourceURI: z.string().url().optional(),
|
|
12766
|
+
status: SkillFrameworkStatusEnum.default("active"),
|
|
12767
|
+
createdAt: z.string().optional(),
|
|
12768
|
+
updatedAt: z.string().optional()
|
|
12769
|
+
});
|
|
12770
|
+
var PaginatedSkillFrameworksValidator = PaginationResponseValidator.extend({
|
|
12771
|
+
records: SkillFrameworkValidator.array()
|
|
12772
|
+
});
|
|
12773
|
+
var SkillTreeNodeValidator = SkillValidator.extend({
|
|
12774
|
+
children: z.array(z.lazy(() => SkillTreeNodeValidator)),
|
|
12775
|
+
hasChildren: z.boolean(),
|
|
12776
|
+
childrenCursor: z.string().nullable().optional()
|
|
12777
|
+
}).openapi({ ref: "SkillTreeNode" });
|
|
12778
|
+
var PaginatedSkillTreeValidator = z.object({
|
|
12779
|
+
hasMore: z.boolean(),
|
|
12780
|
+
cursor: z.string().nullable(),
|
|
12781
|
+
records: z.array(SkillTreeNodeValidator)
|
|
12782
|
+
});
|
|
12783
|
+
var SkillTreeNodeInputValidator = z.lazy(
|
|
12784
|
+
() => z.object({
|
|
12785
|
+
id: z.string().optional(),
|
|
12786
|
+
statement: z.string(),
|
|
12787
|
+
description: z.string().optional(),
|
|
12788
|
+
code: z.string().optional(),
|
|
12789
|
+
icon: z.string().optional(),
|
|
12790
|
+
type: z.string().optional(),
|
|
12791
|
+
status: SkillStatusEnum.optional(),
|
|
12792
|
+
children: z.array(SkillTreeNodeInputValidator).optional()
|
|
12793
|
+
})
|
|
12794
|
+
).openapi({ ref: "SkillTreeNodeInput" });
|
|
12795
|
+
var LinkProviderFrameworkInputValidator = z.object({
|
|
12796
|
+
frameworkId: z.string()
|
|
12797
|
+
});
|
|
12798
|
+
var CreateManagedFrameworkInputValidator = z.object({
|
|
12799
|
+
id: z.string().optional(),
|
|
12800
|
+
name: z.string().min(1),
|
|
12801
|
+
description: z.string().optional(),
|
|
12802
|
+
image: z.string().optional(),
|
|
12803
|
+
sourceURI: z.string().url().optional(),
|
|
12804
|
+
status: SkillFrameworkStatusEnum.optional(),
|
|
12805
|
+
skills: z.array(SkillTreeNodeInputValidator).optional(),
|
|
12806
|
+
boostUris: z.array(z.string()).optional()
|
|
12807
|
+
});
|
|
12808
|
+
var UpdateFrameworkInputValidator = z.object({
|
|
12809
|
+
id: z.string(),
|
|
12810
|
+
name: z.string().min(1).optional(),
|
|
12811
|
+
description: z.string().optional(),
|
|
12812
|
+
image: z.string().optional(),
|
|
12813
|
+
sourceURI: z.string().url().optional(),
|
|
12814
|
+
status: SkillFrameworkStatusEnum.optional()
|
|
12815
|
+
}).refine(
|
|
12816
|
+
(data) => data.name !== void 0 || data.description !== void 0 || data.image !== void 0 || data.sourceURI !== void 0 || data.status !== void 0,
|
|
12817
|
+
{
|
|
12818
|
+
message: "At least one field must be provided to update",
|
|
12819
|
+
path: ["name"]
|
|
12820
|
+
}
|
|
12821
|
+
);
|
|
12822
|
+
var DeleteFrameworkInputValidator = z.object({ id: z.string() });
|
|
12823
|
+
var CreateManagedFrameworkBatchInputValidator = z.object({
|
|
12824
|
+
frameworks: z.array(
|
|
12825
|
+
CreateManagedFrameworkInputValidator.extend({
|
|
12826
|
+
skills: z.array(SkillTreeNodeInputValidator).optional()
|
|
12827
|
+
})
|
|
12828
|
+
).min(1)
|
|
12829
|
+
});
|
|
12830
|
+
var SkillFrameworkAdminInputValidator = z.object({
|
|
12831
|
+
frameworkId: z.string(),
|
|
12832
|
+
profileId: z.string()
|
|
12833
|
+
});
|
|
12834
|
+
var SkillFrameworkIdInputValidator = z.object({ frameworkId: z.string() });
|
|
12835
|
+
var SkillFrameworkAdminsValidator = LCNProfileValidator.array();
|
|
12836
|
+
var SyncFrameworkInputValidator = z.object({ id: z.string() });
|
|
12837
|
+
var AddTagInputValidator = z.object({
|
|
12838
|
+
slug: z.string().min(1),
|
|
12839
|
+
name: z.string().min(1)
|
|
12840
|
+
});
|
|
12841
|
+
var CreateSkillInputValidator = z.object({
|
|
12842
|
+
frameworkId: z.string(),
|
|
12843
|
+
skill: SkillTreeNodeInputValidator,
|
|
12844
|
+
parentId: z.string().nullable().optional()
|
|
12845
|
+
});
|
|
12846
|
+
var UpdateSkillInputValidator = z.object({
|
|
12847
|
+
frameworkId: z.string(),
|
|
12848
|
+
id: z.string(),
|
|
12849
|
+
statement: z.string().optional(),
|
|
12850
|
+
description: z.string().optional(),
|
|
12851
|
+
code: z.string().optional(),
|
|
12852
|
+
icon: z.string().optional(),
|
|
12853
|
+
type: z.string().optional(),
|
|
12854
|
+
status: SkillStatusEnum.optional()
|
|
12855
|
+
}).refine(
|
|
12856
|
+
(data) => data.statement !== void 0 || data.description !== void 0 || data.code !== void 0 || data.icon !== void 0 || data.type !== void 0 || data.status !== void 0,
|
|
12857
|
+
{
|
|
12858
|
+
message: "At least one field must be provided to update a skill",
|
|
12859
|
+
path: ["statement"]
|
|
12860
|
+
}
|
|
12861
|
+
);
|
|
12862
|
+
var SkillDeletionStrategyValidator = z.enum(["recursive", "reparent"]);
|
|
12863
|
+
var DeleteSkillInputValidator = z.object({
|
|
12864
|
+
frameworkId: z.string(),
|
|
12865
|
+
id: z.string(),
|
|
12866
|
+
strategy: SkillDeletionStrategyValidator.optional().default("reparent")
|
|
12867
|
+
});
|
|
12868
|
+
var CreateSkillsBatchInputValidator = z.object({
|
|
12869
|
+
frameworkId: z.string(),
|
|
12870
|
+
skills: z.array(SkillTreeNodeInputValidator).min(1),
|
|
12871
|
+
parentId: z.string().nullable().optional()
|
|
12872
|
+
});
|
|
12873
|
+
var ReplaceSkillFrameworkSkillsInputValidator = z.object({
|
|
12874
|
+
frameworkId: z.string(),
|
|
12875
|
+
skills: z.array(SkillTreeNodeInputValidator).min(0)
|
|
12876
|
+
});
|
|
12877
|
+
var ReplaceSkillFrameworkSkillsResultValidator = z.object({
|
|
12878
|
+
created: z.number().int().min(0),
|
|
12879
|
+
updated: z.number().int().min(0),
|
|
12880
|
+
deleted: z.number().int().min(0),
|
|
12881
|
+
unchanged: z.number().int().min(0),
|
|
12882
|
+
total: z.number().int().min(0)
|
|
12883
|
+
});
|
|
12884
|
+
var CountSkillsInputValidator = z.object({
|
|
12885
|
+
frameworkId: z.string(),
|
|
12886
|
+
skillId: z.string().optional(),
|
|
12887
|
+
recursive: z.boolean().optional().default(false),
|
|
12888
|
+
onlyCountCompetencies: z.boolean().optional().default(false)
|
|
12889
|
+
});
|
|
12890
|
+
var CountSkillsResultValidator = z.object({
|
|
12891
|
+
count: z.number().int().min(0)
|
|
12892
|
+
});
|
|
12893
|
+
var GetFullSkillTreeInputValidator = z.object({
|
|
12894
|
+
frameworkId: z.string()
|
|
12895
|
+
});
|
|
12896
|
+
var GetFullSkillTreeResultValidator = z.object({
|
|
12897
|
+
skills: z.array(SkillTreeNodeValidator)
|
|
12898
|
+
});
|
|
12899
|
+
var GetSkillPathInputValidator = z.object({
|
|
12900
|
+
frameworkId: z.string(),
|
|
12901
|
+
skillId: z.string()
|
|
12902
|
+
});
|
|
12903
|
+
var GetSkillPathResultValidator = z.object({
|
|
12904
|
+
path: z.array(SkillValidator)
|
|
12905
|
+
});
|
|
12906
|
+
var FrameworkWithSkillsValidator = z.object({
|
|
12907
|
+
framework: SkillFrameworkValidator,
|
|
12908
|
+
skills: PaginatedSkillTreeValidator
|
|
12909
|
+
});
|
|
12663
12910
|
|
|
12664
12911
|
// ../ceramic/dist/ceramic-plugin.esm.js
|
|
12665
12912
|
var __create2 = Object.create;
|
|
@@ -67973,7 +68220,14 @@ var RegExpValidator2 = z2.instanceof(RegExp).or(
|
|
|
67973
68220
|
}
|
|
67974
68221
|
})
|
|
67975
68222
|
);
|
|
67976
|
-
var
|
|
68223
|
+
var BaseStringQuery2 = z2.string().or(z2.object({ $in: z2.string().array() })).or(z2.object({ $regex: RegExpValidator2 }));
|
|
68224
|
+
var StringQuery2 = z2.union([
|
|
68225
|
+
BaseStringQuery2,
|
|
68226
|
+
z2.object({
|
|
68227
|
+
$or: BaseStringQuery2.array()
|
|
68228
|
+
})
|
|
68229
|
+
]);
|
|
68230
|
+
extendZodWithOpenApi2(z2);
|
|
67977
68231
|
var LCNProfileDisplayValidator2 = z2.object({
|
|
67978
68232
|
backgroundColor: z2.string().optional(),
|
|
67979
68233
|
backgroundImage: z2.string().optional(),
|
|
@@ -68131,7 +68385,7 @@ var BoostValidator2 = z2.object({
|
|
|
68131
68385
|
claimPermissions: BoostPermissionsValidator2.optional(),
|
|
68132
68386
|
allowAnyoneToCreateChildren: z2.boolean().optional()
|
|
68133
68387
|
});
|
|
68134
|
-
var
|
|
68388
|
+
var BaseBoostQueryValidator2 = z2.object({
|
|
68135
68389
|
uri: StringQuery2,
|
|
68136
68390
|
name: StringQuery2,
|
|
68137
68391
|
type: StringQuery2,
|
|
@@ -68140,6 +68394,12 @@ var BoostQueryValidator2 = z2.object({
|
|
|
68140
68394
|
status: LCNBoostStatus2.or(z2.object({ $in: LCNBoostStatus2.array() })),
|
|
68141
68395
|
autoConnectRecipients: z2.boolean()
|
|
68142
68396
|
}).partial();
|
|
68397
|
+
var BoostQueryValidator2 = z2.union([
|
|
68398
|
+
z2.object({
|
|
68399
|
+
$or: BaseBoostQueryValidator2.array()
|
|
68400
|
+
}),
|
|
68401
|
+
BaseBoostQueryValidator2
|
|
68402
|
+
]);
|
|
68143
68403
|
var PaginatedBoostsValidator2 = PaginationResponseValidator2.extend({
|
|
68144
68404
|
records: BoostValidator2.array()
|
|
68145
68405
|
});
|
|
@@ -68195,11 +68455,25 @@ var ConsentFlowTermsStatusValidator2 = z2.enum(["live", "stale", "withdrawn"]);
|
|
|
68195
68455
|
var ConsentFlowContractValidator2 = z2.object({
|
|
68196
68456
|
read: z2.object({
|
|
68197
68457
|
anonymize: z2.boolean().optional(),
|
|
68198
|
-
credentials: z2.object({
|
|
68458
|
+
credentials: z2.object({
|
|
68459
|
+
categories: z2.record(
|
|
68460
|
+
z2.object({
|
|
68461
|
+
required: z2.boolean(),
|
|
68462
|
+
defaultEnabled: z2.boolean().optional()
|
|
68463
|
+
})
|
|
68464
|
+
).default({})
|
|
68465
|
+
}).default({}),
|
|
68199
68466
|
personal: z2.record(z2.object({ required: z2.boolean(), defaultEnabled: z2.boolean().optional() })).default({})
|
|
68200
68467
|
}).default({}),
|
|
68201
68468
|
write: z2.object({
|
|
68202
|
-
credentials: z2.object({
|
|
68469
|
+
credentials: z2.object({
|
|
68470
|
+
categories: z2.record(
|
|
68471
|
+
z2.object({
|
|
68472
|
+
required: z2.boolean(),
|
|
68473
|
+
defaultEnabled: z2.boolean().optional()
|
|
68474
|
+
})
|
|
68475
|
+
).default({})
|
|
68476
|
+
}).default({}),
|
|
68203
68477
|
personal: z2.record(z2.object({ required: z2.boolean(), defaultEnabled: z2.boolean().optional() })).default({})
|
|
68204
68478
|
}).default({})
|
|
68205
68479
|
});
|
|
@@ -68342,6 +68616,17 @@ var ConsentFlowTransactionValidator2 = z2.object({
|
|
|
68342
68616
|
var PaginatedConsentFlowTransactionsValidator2 = PaginationResponseValidator2.extend({
|
|
68343
68617
|
records: ConsentFlowTransactionValidator2.array()
|
|
68344
68618
|
});
|
|
68619
|
+
var BaseSkillFrameworkQueryValidator2 = z2.object({
|
|
68620
|
+
id: StringQuery2,
|
|
68621
|
+
name: StringQuery2,
|
|
68622
|
+
description: StringQuery2,
|
|
68623
|
+
sourceURI: StringQuery2,
|
|
68624
|
+
status: StringQuery2
|
|
68625
|
+
}).partial();
|
|
68626
|
+
var SkillFrameworkQueryValidator2 = z2.union([
|
|
68627
|
+
z2.object({ $or: BaseSkillFrameworkQueryValidator2.array() }),
|
|
68628
|
+
BaseSkillFrameworkQueryValidator2
|
|
68629
|
+
]);
|
|
68345
68630
|
var ContractCredentialValidator2 = z2.object({
|
|
68346
68631
|
credentialUri: z2.string(),
|
|
68347
68632
|
termsUri: z2.string(),
|
|
@@ -68520,31 +68805,55 @@ var IssueInboxSigningAuthorityValidator2 = z2.object({
|
|
|
68520
68805
|
});
|
|
68521
68806
|
var IssueInboxCredentialValidator2 = z2.object({
|
|
68522
68807
|
recipient: ContactMethodQueryValidator2.describe("The recipient of the credential"),
|
|
68523
|
-
credential: VCValidator2.passthrough().or(VPValidator2.passthrough()).or(UnsignedVCValidator2.passthrough()).describe(
|
|
68808
|
+
credential: VCValidator2.passthrough().or(VPValidator2.passthrough()).or(UnsignedVCValidator2.passthrough()).describe(
|
|
68809
|
+
"The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
|
|
68810
|
+
),
|
|
68524
68811
|
configuration: z2.object({
|
|
68525
|
-
signingAuthority: IssueInboxSigningAuthorityValidator2.optional().describe(
|
|
68812
|
+
signingAuthority: IssueInboxSigningAuthorityValidator2.optional().describe(
|
|
68813
|
+
"The signing authority to use for the credential. If not provided, the users default signing authority will be used if the credential is not signed."
|
|
68814
|
+
),
|
|
68526
68815
|
webhookUrl: z2.string().url().optional().describe("The webhook URL to receive credential issuance events."),
|
|
68527
68816
|
expiresInDays: z2.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
|
|
68528
68817
|
delivery: z2.object({
|
|
68529
|
-
suppress: z2.boolean().optional().default(false).describe(
|
|
68818
|
+
suppress: z2.boolean().optional().default(false).describe(
|
|
68819
|
+
"Whether to suppress delivery of the credential to the recipient. If true, the email/sms will not be sent to the recipient. Useful if you would like to manually send claim link to your users."
|
|
68820
|
+
),
|
|
68530
68821
|
template: z2.object({
|
|
68531
|
-
id: z2.enum(["universal-inbox-claim"]).optional().describe(
|
|
68822
|
+
id: z2.enum(["universal-inbox-claim"]).optional().describe(
|
|
68823
|
+
"The template ID to use for the credential delivery. If not provided, the default template will be used."
|
|
68824
|
+
),
|
|
68532
68825
|
model: z2.object({
|
|
68533
68826
|
issuer: z2.object({
|
|
68534
|
-
name: z2.string().optional().describe(
|
|
68827
|
+
name: z2.string().optional().describe(
|
|
68828
|
+
'The name of the organization (e.g., "State University").'
|
|
68829
|
+
),
|
|
68535
68830
|
logoUrl: z2.string().url().optional().describe("The URL of the organization's logo.")
|
|
68536
68831
|
}).optional(),
|
|
68537
68832
|
credential: z2.object({
|
|
68538
|
-
name: z2.string().optional().describe(
|
|
68539
|
-
|
|
68833
|
+
name: z2.string().optional().describe(
|
|
68834
|
+
'The name of the credential (e.g., "Bachelor of Science").'
|
|
68835
|
+
),
|
|
68836
|
+
type: z2.string().optional().describe(
|
|
68837
|
+
'The type of the credential (e.g., "degree", "certificate").'
|
|
68838
|
+
)
|
|
68540
68839
|
}).optional(),
|
|
68541
68840
|
recipient: z2.object({
|
|
68542
|
-
name: z2.string().optional().describe(
|
|
68841
|
+
name: z2.string().optional().describe(
|
|
68842
|
+
'The name of the recipient (e.g., "John Doe").'
|
|
68843
|
+
)
|
|
68543
68844
|
}).optional()
|
|
68544
|
-
}).describe(
|
|
68545
|
-
|
|
68546
|
-
|
|
68547
|
-
|
|
68845
|
+
}).describe(
|
|
68846
|
+
"The template model to use for the credential delivery. Injects via template variables into email/sms templates. If not provided, the default template will be used."
|
|
68847
|
+
)
|
|
68848
|
+
}).optional().describe(
|
|
68849
|
+
"The template to use for the credential delivery. If not provided, the default template will be used."
|
|
68850
|
+
)
|
|
68851
|
+
}).optional().describe(
|
|
68852
|
+
"Configuration for the credential delivery i.e. email or SMS. When credentials are sent to a user who has a verified email or phone associated with their account, delivery is skipped, and the credential will be sent using in-app notifications. If not provided, the default configuration will be used."
|
|
68853
|
+
)
|
|
68854
|
+
}).optional().describe(
|
|
68855
|
+
"Configuration for the credential issuance. If not provided, the default configuration will be used."
|
|
68856
|
+
)
|
|
68548
68857
|
});
|
|
68549
68858
|
var IssueInboxCredentialResponseValidator2 = z2.object({
|
|
68550
68859
|
issuanceId: z2.string(),
|
|
@@ -68606,6 +68915,191 @@ var ClaimTokenValidator2 = z2.object({
|
|
|
68606
68915
|
expiresAt: z2.string(),
|
|
68607
68916
|
used: z2.boolean()
|
|
68608
68917
|
});
|
|
68918
|
+
var TagValidator2 = z2.object({
|
|
68919
|
+
id: z2.string(),
|
|
68920
|
+
name: z2.string().min(1),
|
|
68921
|
+
slug: z2.string().min(1),
|
|
68922
|
+
createdAt: z2.string().optional(),
|
|
68923
|
+
updatedAt: z2.string().optional()
|
|
68924
|
+
});
|
|
68925
|
+
var SkillStatusEnum2 = z2.enum(["active", "archived"]);
|
|
68926
|
+
var SkillValidator2 = z2.object({
|
|
68927
|
+
id: z2.string(),
|
|
68928
|
+
statement: z2.string(),
|
|
68929
|
+
description: z2.string().optional(),
|
|
68930
|
+
code: z2.string().optional(),
|
|
68931
|
+
icon: z2.string().optional(),
|
|
68932
|
+
type: z2.string().default("skill"),
|
|
68933
|
+
status: SkillStatusEnum2.default("active"),
|
|
68934
|
+
frameworkId: z2.string().optional(),
|
|
68935
|
+
createdAt: z2.string().optional(),
|
|
68936
|
+
updatedAt: z2.string().optional()
|
|
68937
|
+
});
|
|
68938
|
+
var BaseSkillQueryValidator2 = z2.object({
|
|
68939
|
+
id: StringQuery2,
|
|
68940
|
+
statement: StringQuery2,
|
|
68941
|
+
description: StringQuery2,
|
|
68942
|
+
code: StringQuery2,
|
|
68943
|
+
type: StringQuery2,
|
|
68944
|
+
status: SkillStatusEnum2.or(z2.object({ $in: SkillStatusEnum2.array() }))
|
|
68945
|
+
}).partial();
|
|
68946
|
+
var SkillQueryValidator2 = z2.union([
|
|
68947
|
+
z2.object({
|
|
68948
|
+
$or: BaseSkillQueryValidator2.array()
|
|
68949
|
+
}),
|
|
68950
|
+
BaseSkillQueryValidator2
|
|
68951
|
+
]);
|
|
68952
|
+
var SkillFrameworkStatusEnum2 = z2.enum(["active", "archived"]);
|
|
68953
|
+
var SkillFrameworkValidator2 = z2.object({
|
|
68954
|
+
id: z2.string(),
|
|
68955
|
+
name: z2.string(),
|
|
68956
|
+
description: z2.string().optional(),
|
|
68957
|
+
image: z2.string().optional(),
|
|
68958
|
+
sourceURI: z2.string().url().optional(),
|
|
68959
|
+
status: SkillFrameworkStatusEnum2.default("active"),
|
|
68960
|
+
createdAt: z2.string().optional(),
|
|
68961
|
+
updatedAt: z2.string().optional()
|
|
68962
|
+
});
|
|
68963
|
+
var PaginatedSkillFrameworksValidator2 = PaginationResponseValidator2.extend({
|
|
68964
|
+
records: SkillFrameworkValidator2.array()
|
|
68965
|
+
});
|
|
68966
|
+
var SkillTreeNodeValidator2 = SkillValidator2.extend({
|
|
68967
|
+
children: z2.array(z2.lazy(() => SkillTreeNodeValidator2)),
|
|
68968
|
+
hasChildren: z2.boolean(),
|
|
68969
|
+
childrenCursor: z2.string().nullable().optional()
|
|
68970
|
+
}).openapi({ ref: "SkillTreeNode" });
|
|
68971
|
+
var PaginatedSkillTreeValidator2 = z2.object({
|
|
68972
|
+
hasMore: z2.boolean(),
|
|
68973
|
+
cursor: z2.string().nullable(),
|
|
68974
|
+
records: z2.array(SkillTreeNodeValidator2)
|
|
68975
|
+
});
|
|
68976
|
+
var SkillTreeNodeInputValidator2 = z2.lazy(
|
|
68977
|
+
() => z2.object({
|
|
68978
|
+
id: z2.string().optional(),
|
|
68979
|
+
statement: z2.string(),
|
|
68980
|
+
description: z2.string().optional(),
|
|
68981
|
+
code: z2.string().optional(),
|
|
68982
|
+
icon: z2.string().optional(),
|
|
68983
|
+
type: z2.string().optional(),
|
|
68984
|
+
status: SkillStatusEnum2.optional(),
|
|
68985
|
+
children: z2.array(SkillTreeNodeInputValidator2).optional()
|
|
68986
|
+
})
|
|
68987
|
+
).openapi({ ref: "SkillTreeNodeInput" });
|
|
68988
|
+
var LinkProviderFrameworkInputValidator2 = z2.object({
|
|
68989
|
+
frameworkId: z2.string()
|
|
68990
|
+
});
|
|
68991
|
+
var CreateManagedFrameworkInputValidator2 = z2.object({
|
|
68992
|
+
id: z2.string().optional(),
|
|
68993
|
+
name: z2.string().min(1),
|
|
68994
|
+
description: z2.string().optional(),
|
|
68995
|
+
image: z2.string().optional(),
|
|
68996
|
+
sourceURI: z2.string().url().optional(),
|
|
68997
|
+
status: SkillFrameworkStatusEnum2.optional(),
|
|
68998
|
+
skills: z2.array(SkillTreeNodeInputValidator2).optional(),
|
|
68999
|
+
boostUris: z2.array(z2.string()).optional()
|
|
69000
|
+
});
|
|
69001
|
+
var UpdateFrameworkInputValidator2 = z2.object({
|
|
69002
|
+
id: z2.string(),
|
|
69003
|
+
name: z2.string().min(1).optional(),
|
|
69004
|
+
description: z2.string().optional(),
|
|
69005
|
+
image: z2.string().optional(),
|
|
69006
|
+
sourceURI: z2.string().url().optional(),
|
|
69007
|
+
status: SkillFrameworkStatusEnum2.optional()
|
|
69008
|
+
}).refine(
|
|
69009
|
+
(data) => data.name !== void 0 || data.description !== void 0 || data.image !== void 0 || data.sourceURI !== void 0 || data.status !== void 0,
|
|
69010
|
+
{
|
|
69011
|
+
message: "At least one field must be provided to update",
|
|
69012
|
+
path: ["name"]
|
|
69013
|
+
}
|
|
69014
|
+
);
|
|
69015
|
+
var DeleteFrameworkInputValidator2 = z2.object({ id: z2.string() });
|
|
69016
|
+
var CreateManagedFrameworkBatchInputValidator2 = z2.object({
|
|
69017
|
+
frameworks: z2.array(
|
|
69018
|
+
CreateManagedFrameworkInputValidator2.extend({
|
|
69019
|
+
skills: z2.array(SkillTreeNodeInputValidator2).optional()
|
|
69020
|
+
})
|
|
69021
|
+
).min(1)
|
|
69022
|
+
});
|
|
69023
|
+
var SkillFrameworkAdminInputValidator2 = z2.object({
|
|
69024
|
+
frameworkId: z2.string(),
|
|
69025
|
+
profileId: z2.string()
|
|
69026
|
+
});
|
|
69027
|
+
var SkillFrameworkIdInputValidator2 = z2.object({ frameworkId: z2.string() });
|
|
69028
|
+
var SkillFrameworkAdminsValidator2 = LCNProfileValidator2.array();
|
|
69029
|
+
var SyncFrameworkInputValidator2 = z2.object({ id: z2.string() });
|
|
69030
|
+
var AddTagInputValidator2 = z2.object({
|
|
69031
|
+
slug: z2.string().min(1),
|
|
69032
|
+
name: z2.string().min(1)
|
|
69033
|
+
});
|
|
69034
|
+
var CreateSkillInputValidator2 = z2.object({
|
|
69035
|
+
frameworkId: z2.string(),
|
|
69036
|
+
skill: SkillTreeNodeInputValidator2,
|
|
69037
|
+
parentId: z2.string().nullable().optional()
|
|
69038
|
+
});
|
|
69039
|
+
var UpdateSkillInputValidator2 = z2.object({
|
|
69040
|
+
frameworkId: z2.string(),
|
|
69041
|
+
id: z2.string(),
|
|
69042
|
+
statement: z2.string().optional(),
|
|
69043
|
+
description: z2.string().optional(),
|
|
69044
|
+
code: z2.string().optional(),
|
|
69045
|
+
icon: z2.string().optional(),
|
|
69046
|
+
type: z2.string().optional(),
|
|
69047
|
+
status: SkillStatusEnum2.optional()
|
|
69048
|
+
}).refine(
|
|
69049
|
+
(data) => data.statement !== void 0 || data.description !== void 0 || data.code !== void 0 || data.icon !== void 0 || data.type !== void 0 || data.status !== void 0,
|
|
69050
|
+
{
|
|
69051
|
+
message: "At least one field must be provided to update a skill",
|
|
69052
|
+
path: ["statement"]
|
|
69053
|
+
}
|
|
69054
|
+
);
|
|
69055
|
+
var SkillDeletionStrategyValidator2 = z2.enum(["recursive", "reparent"]);
|
|
69056
|
+
var DeleteSkillInputValidator2 = z2.object({
|
|
69057
|
+
frameworkId: z2.string(),
|
|
69058
|
+
id: z2.string(),
|
|
69059
|
+
strategy: SkillDeletionStrategyValidator2.optional().default("reparent")
|
|
69060
|
+
});
|
|
69061
|
+
var CreateSkillsBatchInputValidator2 = z2.object({
|
|
69062
|
+
frameworkId: z2.string(),
|
|
69063
|
+
skills: z2.array(SkillTreeNodeInputValidator2).min(1),
|
|
69064
|
+
parentId: z2.string().nullable().optional()
|
|
69065
|
+
});
|
|
69066
|
+
var ReplaceSkillFrameworkSkillsInputValidator2 = z2.object({
|
|
69067
|
+
frameworkId: z2.string(),
|
|
69068
|
+
skills: z2.array(SkillTreeNodeInputValidator2).min(0)
|
|
69069
|
+
});
|
|
69070
|
+
var ReplaceSkillFrameworkSkillsResultValidator2 = z2.object({
|
|
69071
|
+
created: z2.number().int().min(0),
|
|
69072
|
+
updated: z2.number().int().min(0),
|
|
69073
|
+
deleted: z2.number().int().min(0),
|
|
69074
|
+
unchanged: z2.number().int().min(0),
|
|
69075
|
+
total: z2.number().int().min(0)
|
|
69076
|
+
});
|
|
69077
|
+
var CountSkillsInputValidator2 = z2.object({
|
|
69078
|
+
frameworkId: z2.string(),
|
|
69079
|
+
skillId: z2.string().optional(),
|
|
69080
|
+
recursive: z2.boolean().optional().default(false),
|
|
69081
|
+
onlyCountCompetencies: z2.boolean().optional().default(false)
|
|
69082
|
+
});
|
|
69083
|
+
var CountSkillsResultValidator2 = z2.object({
|
|
69084
|
+
count: z2.number().int().min(0)
|
|
69085
|
+
});
|
|
69086
|
+
var GetFullSkillTreeInputValidator2 = z2.object({
|
|
69087
|
+
frameworkId: z2.string()
|
|
69088
|
+
});
|
|
69089
|
+
var GetFullSkillTreeResultValidator2 = z2.object({
|
|
69090
|
+
skills: z2.array(SkillTreeNodeValidator2)
|
|
69091
|
+
});
|
|
69092
|
+
var GetSkillPathInputValidator2 = z2.object({
|
|
69093
|
+
frameworkId: z2.string(),
|
|
69094
|
+
skillId: z2.string()
|
|
69095
|
+
});
|
|
69096
|
+
var GetSkillPathResultValidator2 = z2.object({
|
|
69097
|
+
path: z2.array(SkillValidator2)
|
|
69098
|
+
});
|
|
69099
|
+
var FrameworkWithSkillsValidator2 = z2.object({
|
|
69100
|
+
framework: SkillFrameworkValidator2,
|
|
69101
|
+
skills: PaginatedSkillTreeValidator2
|
|
69102
|
+
});
|
|
68609
69103
|
var streamIdToCeramicURI = /* @__PURE__ */ __name3((id) => `lc:ceramic:${id}`, "streamIdToCeramicURI");
|
|
68610
69104
|
var CeramicURIValidator = z2.string().refine(
|
|
68611
69105
|
(string22) => string22.split(":").length === 3 && string22.split(":")[0] === "lc",
|