@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
package/dist/idx-plugin.esm.js
CHANGED
|
@@ -12021,7 +12021,14 @@ var RegExpValidator = z.instanceof(RegExp).or(
|
|
|
12021
12021
|
}
|
|
12022
12022
|
})
|
|
12023
12023
|
);
|
|
12024
|
-
var
|
|
12024
|
+
var BaseStringQuery = z.string().or(z.object({ $in: z.string().array() })).or(z.object({ $regex: RegExpValidator }));
|
|
12025
|
+
var StringQuery = z.union([
|
|
12026
|
+
BaseStringQuery,
|
|
12027
|
+
z.object({
|
|
12028
|
+
$or: BaseStringQuery.array()
|
|
12029
|
+
})
|
|
12030
|
+
]);
|
|
12031
|
+
extendZodWithOpenApi(z);
|
|
12025
12032
|
var LCNProfileDisplayValidator = z.object({
|
|
12026
12033
|
backgroundColor: z.string().optional(),
|
|
12027
12034
|
backgroundImage: z.string().optional(),
|
|
@@ -12179,7 +12186,7 @@ var BoostValidator = z.object({
|
|
|
12179
12186
|
claimPermissions: BoostPermissionsValidator.optional(),
|
|
12180
12187
|
allowAnyoneToCreateChildren: z.boolean().optional()
|
|
12181
12188
|
});
|
|
12182
|
-
var
|
|
12189
|
+
var BaseBoostQueryValidator = z.object({
|
|
12183
12190
|
uri: StringQuery,
|
|
12184
12191
|
name: StringQuery,
|
|
12185
12192
|
type: StringQuery,
|
|
@@ -12188,6 +12195,12 @@ var BoostQueryValidator = z.object({
|
|
|
12188
12195
|
status: LCNBoostStatus.or(z.object({ $in: LCNBoostStatus.array() })),
|
|
12189
12196
|
autoConnectRecipients: z.boolean()
|
|
12190
12197
|
}).partial();
|
|
12198
|
+
var BoostQueryValidator = z.union([
|
|
12199
|
+
z.object({
|
|
12200
|
+
$or: BaseBoostQueryValidator.array()
|
|
12201
|
+
}),
|
|
12202
|
+
BaseBoostQueryValidator
|
|
12203
|
+
]);
|
|
12191
12204
|
var PaginatedBoostsValidator = PaginationResponseValidator.extend({
|
|
12192
12205
|
records: BoostValidator.array()
|
|
12193
12206
|
});
|
|
@@ -12243,11 +12256,25 @@ var ConsentFlowTermsStatusValidator = z.enum(["live", "stale", "withdrawn"]);
|
|
|
12243
12256
|
var ConsentFlowContractValidator = z.object({
|
|
12244
12257
|
read: z.object({
|
|
12245
12258
|
anonymize: z.boolean().optional(),
|
|
12246
|
-
credentials: z.object({
|
|
12259
|
+
credentials: z.object({
|
|
12260
|
+
categories: z.record(
|
|
12261
|
+
z.object({
|
|
12262
|
+
required: z.boolean(),
|
|
12263
|
+
defaultEnabled: z.boolean().optional()
|
|
12264
|
+
})
|
|
12265
|
+
).default({})
|
|
12266
|
+
}).default({}),
|
|
12247
12267
|
personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
|
|
12248
12268
|
}).default({}),
|
|
12249
12269
|
write: z.object({
|
|
12250
|
-
credentials: z.object({
|
|
12270
|
+
credentials: z.object({
|
|
12271
|
+
categories: z.record(
|
|
12272
|
+
z.object({
|
|
12273
|
+
required: z.boolean(),
|
|
12274
|
+
defaultEnabled: z.boolean().optional()
|
|
12275
|
+
})
|
|
12276
|
+
).default({})
|
|
12277
|
+
}).default({}),
|
|
12251
12278
|
personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
|
|
12252
12279
|
}).default({})
|
|
12253
12280
|
});
|
|
@@ -12390,6 +12417,17 @@ var ConsentFlowTransactionValidator = z.object({
|
|
|
12390
12417
|
var PaginatedConsentFlowTransactionsValidator = PaginationResponseValidator.extend({
|
|
12391
12418
|
records: ConsentFlowTransactionValidator.array()
|
|
12392
12419
|
});
|
|
12420
|
+
var BaseSkillFrameworkQueryValidator = z.object({
|
|
12421
|
+
id: StringQuery,
|
|
12422
|
+
name: StringQuery,
|
|
12423
|
+
description: StringQuery,
|
|
12424
|
+
sourceURI: StringQuery,
|
|
12425
|
+
status: StringQuery
|
|
12426
|
+
}).partial();
|
|
12427
|
+
var SkillFrameworkQueryValidator = z.union([
|
|
12428
|
+
z.object({ $or: BaseSkillFrameworkQueryValidator.array() }),
|
|
12429
|
+
BaseSkillFrameworkQueryValidator
|
|
12430
|
+
]);
|
|
12393
12431
|
var ContractCredentialValidator = z.object({
|
|
12394
12432
|
credentialUri: z.string(),
|
|
12395
12433
|
termsUri: z.string(),
|
|
@@ -12568,31 +12606,55 @@ var IssueInboxSigningAuthorityValidator = z.object({
|
|
|
12568
12606
|
});
|
|
12569
12607
|
var IssueInboxCredentialValidator = z.object({
|
|
12570
12608
|
recipient: ContactMethodQueryValidator.describe("The recipient of the credential"),
|
|
12571
|
-
credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe(
|
|
12609
|
+
credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe(
|
|
12610
|
+
"The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
|
|
12611
|
+
),
|
|
12572
12612
|
configuration: z.object({
|
|
12573
|
-
signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe(
|
|
12613
|
+
signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe(
|
|
12614
|
+
"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."
|
|
12615
|
+
),
|
|
12574
12616
|
webhookUrl: z.string().url().optional().describe("The webhook URL to receive credential issuance events."),
|
|
12575
12617
|
expiresInDays: z.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
|
|
12576
12618
|
delivery: z.object({
|
|
12577
|
-
suppress: z.boolean().optional().default(false).describe(
|
|
12619
|
+
suppress: z.boolean().optional().default(false).describe(
|
|
12620
|
+
"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."
|
|
12621
|
+
),
|
|
12578
12622
|
template: z.object({
|
|
12579
|
-
id: z.enum(["universal-inbox-claim"]).optional().describe(
|
|
12623
|
+
id: z.enum(["universal-inbox-claim"]).optional().describe(
|
|
12624
|
+
"The template ID to use for the credential delivery. If not provided, the default template will be used."
|
|
12625
|
+
),
|
|
12580
12626
|
model: z.object({
|
|
12581
12627
|
issuer: z.object({
|
|
12582
|
-
name: z.string().optional().describe(
|
|
12628
|
+
name: z.string().optional().describe(
|
|
12629
|
+
'The name of the organization (e.g., "State University").'
|
|
12630
|
+
),
|
|
12583
12631
|
logoUrl: z.string().url().optional().describe("The URL of the organization's logo.")
|
|
12584
12632
|
}).optional(),
|
|
12585
12633
|
credential: z.object({
|
|
12586
|
-
name: z.string().optional().describe(
|
|
12587
|
-
|
|
12634
|
+
name: z.string().optional().describe(
|
|
12635
|
+
'The name of the credential (e.g., "Bachelor of Science").'
|
|
12636
|
+
),
|
|
12637
|
+
type: z.string().optional().describe(
|
|
12638
|
+
'The type of the credential (e.g., "degree", "certificate").'
|
|
12639
|
+
)
|
|
12588
12640
|
}).optional(),
|
|
12589
12641
|
recipient: z.object({
|
|
12590
|
-
name: z.string().optional().describe(
|
|
12642
|
+
name: z.string().optional().describe(
|
|
12643
|
+
'The name of the recipient (e.g., "John Doe").'
|
|
12644
|
+
)
|
|
12591
12645
|
}).optional()
|
|
12592
|
-
}).describe(
|
|
12593
|
-
|
|
12594
|
-
|
|
12595
|
-
|
|
12646
|
+
}).describe(
|
|
12647
|
+
"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."
|
|
12648
|
+
)
|
|
12649
|
+
}).optional().describe(
|
|
12650
|
+
"The template to use for the credential delivery. If not provided, the default template will be used."
|
|
12651
|
+
)
|
|
12652
|
+
}).optional().describe(
|
|
12653
|
+
"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."
|
|
12654
|
+
)
|
|
12655
|
+
}).optional().describe(
|
|
12656
|
+
"Configuration for the credential issuance. If not provided, the default configuration will be used."
|
|
12657
|
+
)
|
|
12596
12658
|
});
|
|
12597
12659
|
var IssueInboxCredentialResponseValidator = z.object({
|
|
12598
12660
|
issuanceId: z.string(),
|
|
@@ -12654,6 +12716,191 @@ var ClaimTokenValidator = z.object({
|
|
|
12654
12716
|
expiresAt: z.string(),
|
|
12655
12717
|
used: z.boolean()
|
|
12656
12718
|
});
|
|
12719
|
+
var TagValidator = z.object({
|
|
12720
|
+
id: z.string(),
|
|
12721
|
+
name: z.string().min(1),
|
|
12722
|
+
slug: z.string().min(1),
|
|
12723
|
+
createdAt: z.string().optional(),
|
|
12724
|
+
updatedAt: z.string().optional()
|
|
12725
|
+
});
|
|
12726
|
+
var SkillStatusEnum = z.enum(["active", "archived"]);
|
|
12727
|
+
var SkillValidator = z.object({
|
|
12728
|
+
id: z.string(),
|
|
12729
|
+
statement: z.string(),
|
|
12730
|
+
description: z.string().optional(),
|
|
12731
|
+
code: z.string().optional(),
|
|
12732
|
+
icon: z.string().optional(),
|
|
12733
|
+
type: z.string().default("skill"),
|
|
12734
|
+
status: SkillStatusEnum.default("active"),
|
|
12735
|
+
frameworkId: z.string().optional(),
|
|
12736
|
+
createdAt: z.string().optional(),
|
|
12737
|
+
updatedAt: z.string().optional()
|
|
12738
|
+
});
|
|
12739
|
+
var BaseSkillQueryValidator = z.object({
|
|
12740
|
+
id: StringQuery,
|
|
12741
|
+
statement: StringQuery,
|
|
12742
|
+
description: StringQuery,
|
|
12743
|
+
code: StringQuery,
|
|
12744
|
+
type: StringQuery,
|
|
12745
|
+
status: SkillStatusEnum.or(z.object({ $in: SkillStatusEnum.array() }))
|
|
12746
|
+
}).partial();
|
|
12747
|
+
var SkillQueryValidator = z.union([
|
|
12748
|
+
z.object({
|
|
12749
|
+
$or: BaseSkillQueryValidator.array()
|
|
12750
|
+
}),
|
|
12751
|
+
BaseSkillQueryValidator
|
|
12752
|
+
]);
|
|
12753
|
+
var SkillFrameworkStatusEnum = z.enum(["active", "archived"]);
|
|
12754
|
+
var SkillFrameworkValidator = z.object({
|
|
12755
|
+
id: z.string(),
|
|
12756
|
+
name: z.string(),
|
|
12757
|
+
description: z.string().optional(),
|
|
12758
|
+
image: z.string().optional(),
|
|
12759
|
+
sourceURI: z.string().url().optional(),
|
|
12760
|
+
status: SkillFrameworkStatusEnum.default("active"),
|
|
12761
|
+
createdAt: z.string().optional(),
|
|
12762
|
+
updatedAt: z.string().optional()
|
|
12763
|
+
});
|
|
12764
|
+
var PaginatedSkillFrameworksValidator = PaginationResponseValidator.extend({
|
|
12765
|
+
records: SkillFrameworkValidator.array()
|
|
12766
|
+
});
|
|
12767
|
+
var SkillTreeNodeValidator = SkillValidator.extend({
|
|
12768
|
+
children: z.array(z.lazy(() => SkillTreeNodeValidator)),
|
|
12769
|
+
hasChildren: z.boolean(),
|
|
12770
|
+
childrenCursor: z.string().nullable().optional()
|
|
12771
|
+
}).openapi({ ref: "SkillTreeNode" });
|
|
12772
|
+
var PaginatedSkillTreeValidator = z.object({
|
|
12773
|
+
hasMore: z.boolean(),
|
|
12774
|
+
cursor: z.string().nullable(),
|
|
12775
|
+
records: z.array(SkillTreeNodeValidator)
|
|
12776
|
+
});
|
|
12777
|
+
var SkillTreeNodeInputValidator = z.lazy(
|
|
12778
|
+
() => z.object({
|
|
12779
|
+
id: z.string().optional(),
|
|
12780
|
+
statement: z.string(),
|
|
12781
|
+
description: z.string().optional(),
|
|
12782
|
+
code: z.string().optional(),
|
|
12783
|
+
icon: z.string().optional(),
|
|
12784
|
+
type: z.string().optional(),
|
|
12785
|
+
status: SkillStatusEnum.optional(),
|
|
12786
|
+
children: z.array(SkillTreeNodeInputValidator).optional()
|
|
12787
|
+
})
|
|
12788
|
+
).openapi({ ref: "SkillTreeNodeInput" });
|
|
12789
|
+
var LinkProviderFrameworkInputValidator = z.object({
|
|
12790
|
+
frameworkId: z.string()
|
|
12791
|
+
});
|
|
12792
|
+
var CreateManagedFrameworkInputValidator = z.object({
|
|
12793
|
+
id: z.string().optional(),
|
|
12794
|
+
name: z.string().min(1),
|
|
12795
|
+
description: z.string().optional(),
|
|
12796
|
+
image: z.string().optional(),
|
|
12797
|
+
sourceURI: z.string().url().optional(),
|
|
12798
|
+
status: SkillFrameworkStatusEnum.optional(),
|
|
12799
|
+
skills: z.array(SkillTreeNodeInputValidator).optional(),
|
|
12800
|
+
boostUris: z.array(z.string()).optional()
|
|
12801
|
+
});
|
|
12802
|
+
var UpdateFrameworkInputValidator = z.object({
|
|
12803
|
+
id: z.string(),
|
|
12804
|
+
name: z.string().min(1).optional(),
|
|
12805
|
+
description: z.string().optional(),
|
|
12806
|
+
image: z.string().optional(),
|
|
12807
|
+
sourceURI: z.string().url().optional(),
|
|
12808
|
+
status: SkillFrameworkStatusEnum.optional()
|
|
12809
|
+
}).refine(
|
|
12810
|
+
(data) => data.name !== void 0 || data.description !== void 0 || data.image !== void 0 || data.sourceURI !== void 0 || data.status !== void 0,
|
|
12811
|
+
{
|
|
12812
|
+
message: "At least one field must be provided to update",
|
|
12813
|
+
path: ["name"]
|
|
12814
|
+
}
|
|
12815
|
+
);
|
|
12816
|
+
var DeleteFrameworkInputValidator = z.object({ id: z.string() });
|
|
12817
|
+
var CreateManagedFrameworkBatchInputValidator = z.object({
|
|
12818
|
+
frameworks: z.array(
|
|
12819
|
+
CreateManagedFrameworkInputValidator.extend({
|
|
12820
|
+
skills: z.array(SkillTreeNodeInputValidator).optional()
|
|
12821
|
+
})
|
|
12822
|
+
).min(1)
|
|
12823
|
+
});
|
|
12824
|
+
var SkillFrameworkAdminInputValidator = z.object({
|
|
12825
|
+
frameworkId: z.string(),
|
|
12826
|
+
profileId: z.string()
|
|
12827
|
+
});
|
|
12828
|
+
var SkillFrameworkIdInputValidator = z.object({ frameworkId: z.string() });
|
|
12829
|
+
var SkillFrameworkAdminsValidator = LCNProfileValidator.array();
|
|
12830
|
+
var SyncFrameworkInputValidator = z.object({ id: z.string() });
|
|
12831
|
+
var AddTagInputValidator = z.object({
|
|
12832
|
+
slug: z.string().min(1),
|
|
12833
|
+
name: z.string().min(1)
|
|
12834
|
+
});
|
|
12835
|
+
var CreateSkillInputValidator = z.object({
|
|
12836
|
+
frameworkId: z.string(),
|
|
12837
|
+
skill: SkillTreeNodeInputValidator,
|
|
12838
|
+
parentId: z.string().nullable().optional()
|
|
12839
|
+
});
|
|
12840
|
+
var UpdateSkillInputValidator = z.object({
|
|
12841
|
+
frameworkId: z.string(),
|
|
12842
|
+
id: z.string(),
|
|
12843
|
+
statement: z.string().optional(),
|
|
12844
|
+
description: z.string().optional(),
|
|
12845
|
+
code: z.string().optional(),
|
|
12846
|
+
icon: z.string().optional(),
|
|
12847
|
+
type: z.string().optional(),
|
|
12848
|
+
status: SkillStatusEnum.optional()
|
|
12849
|
+
}).refine(
|
|
12850
|
+
(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,
|
|
12851
|
+
{
|
|
12852
|
+
message: "At least one field must be provided to update a skill",
|
|
12853
|
+
path: ["statement"]
|
|
12854
|
+
}
|
|
12855
|
+
);
|
|
12856
|
+
var SkillDeletionStrategyValidator = z.enum(["recursive", "reparent"]);
|
|
12857
|
+
var DeleteSkillInputValidator = z.object({
|
|
12858
|
+
frameworkId: z.string(),
|
|
12859
|
+
id: z.string(),
|
|
12860
|
+
strategy: SkillDeletionStrategyValidator.optional().default("reparent")
|
|
12861
|
+
});
|
|
12862
|
+
var CreateSkillsBatchInputValidator = z.object({
|
|
12863
|
+
frameworkId: z.string(),
|
|
12864
|
+
skills: z.array(SkillTreeNodeInputValidator).min(1),
|
|
12865
|
+
parentId: z.string().nullable().optional()
|
|
12866
|
+
});
|
|
12867
|
+
var ReplaceSkillFrameworkSkillsInputValidator = z.object({
|
|
12868
|
+
frameworkId: z.string(),
|
|
12869
|
+
skills: z.array(SkillTreeNodeInputValidator).min(0)
|
|
12870
|
+
});
|
|
12871
|
+
var ReplaceSkillFrameworkSkillsResultValidator = z.object({
|
|
12872
|
+
created: z.number().int().min(0),
|
|
12873
|
+
updated: z.number().int().min(0),
|
|
12874
|
+
deleted: z.number().int().min(0),
|
|
12875
|
+
unchanged: z.number().int().min(0),
|
|
12876
|
+
total: z.number().int().min(0)
|
|
12877
|
+
});
|
|
12878
|
+
var CountSkillsInputValidator = z.object({
|
|
12879
|
+
frameworkId: z.string(),
|
|
12880
|
+
skillId: z.string().optional(),
|
|
12881
|
+
recursive: z.boolean().optional().default(false),
|
|
12882
|
+
onlyCountCompetencies: z.boolean().optional().default(false)
|
|
12883
|
+
});
|
|
12884
|
+
var CountSkillsResultValidator = z.object({
|
|
12885
|
+
count: z.number().int().min(0)
|
|
12886
|
+
});
|
|
12887
|
+
var GetFullSkillTreeInputValidator = z.object({
|
|
12888
|
+
frameworkId: z.string()
|
|
12889
|
+
});
|
|
12890
|
+
var GetFullSkillTreeResultValidator = z.object({
|
|
12891
|
+
skills: z.array(SkillTreeNodeValidator)
|
|
12892
|
+
});
|
|
12893
|
+
var GetSkillPathInputValidator = z.object({
|
|
12894
|
+
frameworkId: z.string(),
|
|
12895
|
+
skillId: z.string()
|
|
12896
|
+
});
|
|
12897
|
+
var GetSkillPathResultValidator = z.object({
|
|
12898
|
+
path: z.array(SkillValidator)
|
|
12899
|
+
});
|
|
12900
|
+
var FrameworkWithSkillsValidator = z.object({
|
|
12901
|
+
framework: SkillFrameworkValidator,
|
|
12902
|
+
skills: PaginatedSkillTreeValidator
|
|
12903
|
+
});
|
|
12657
12904
|
|
|
12658
12905
|
// ../ceramic/dist/ceramic-plugin.esm.js
|
|
12659
12906
|
var __create2 = Object.create;
|
|
@@ -67967,7 +68214,14 @@ var RegExpValidator2 = z2.instanceof(RegExp).or(
|
|
|
67967
68214
|
}
|
|
67968
68215
|
})
|
|
67969
68216
|
);
|
|
67970
|
-
var
|
|
68217
|
+
var BaseStringQuery2 = z2.string().or(z2.object({ $in: z2.string().array() })).or(z2.object({ $regex: RegExpValidator2 }));
|
|
68218
|
+
var StringQuery2 = z2.union([
|
|
68219
|
+
BaseStringQuery2,
|
|
68220
|
+
z2.object({
|
|
68221
|
+
$or: BaseStringQuery2.array()
|
|
68222
|
+
})
|
|
68223
|
+
]);
|
|
68224
|
+
extendZodWithOpenApi2(z2);
|
|
67971
68225
|
var LCNProfileDisplayValidator2 = z2.object({
|
|
67972
68226
|
backgroundColor: z2.string().optional(),
|
|
67973
68227
|
backgroundImage: z2.string().optional(),
|
|
@@ -68125,7 +68379,7 @@ var BoostValidator2 = z2.object({
|
|
|
68125
68379
|
claimPermissions: BoostPermissionsValidator2.optional(),
|
|
68126
68380
|
allowAnyoneToCreateChildren: z2.boolean().optional()
|
|
68127
68381
|
});
|
|
68128
|
-
var
|
|
68382
|
+
var BaseBoostQueryValidator2 = z2.object({
|
|
68129
68383
|
uri: StringQuery2,
|
|
68130
68384
|
name: StringQuery2,
|
|
68131
68385
|
type: StringQuery2,
|
|
@@ -68134,6 +68388,12 @@ var BoostQueryValidator2 = z2.object({
|
|
|
68134
68388
|
status: LCNBoostStatus2.or(z2.object({ $in: LCNBoostStatus2.array() })),
|
|
68135
68389
|
autoConnectRecipients: z2.boolean()
|
|
68136
68390
|
}).partial();
|
|
68391
|
+
var BoostQueryValidator2 = z2.union([
|
|
68392
|
+
z2.object({
|
|
68393
|
+
$or: BaseBoostQueryValidator2.array()
|
|
68394
|
+
}),
|
|
68395
|
+
BaseBoostQueryValidator2
|
|
68396
|
+
]);
|
|
68137
68397
|
var PaginatedBoostsValidator2 = PaginationResponseValidator2.extend({
|
|
68138
68398
|
records: BoostValidator2.array()
|
|
68139
68399
|
});
|
|
@@ -68189,11 +68449,25 @@ var ConsentFlowTermsStatusValidator2 = z2.enum(["live", "stale", "withdrawn"]);
|
|
|
68189
68449
|
var ConsentFlowContractValidator2 = z2.object({
|
|
68190
68450
|
read: z2.object({
|
|
68191
68451
|
anonymize: z2.boolean().optional(),
|
|
68192
|
-
credentials: z2.object({
|
|
68452
|
+
credentials: z2.object({
|
|
68453
|
+
categories: z2.record(
|
|
68454
|
+
z2.object({
|
|
68455
|
+
required: z2.boolean(),
|
|
68456
|
+
defaultEnabled: z2.boolean().optional()
|
|
68457
|
+
})
|
|
68458
|
+
).default({})
|
|
68459
|
+
}).default({}),
|
|
68193
68460
|
personal: z2.record(z2.object({ required: z2.boolean(), defaultEnabled: z2.boolean().optional() })).default({})
|
|
68194
68461
|
}).default({}),
|
|
68195
68462
|
write: z2.object({
|
|
68196
|
-
credentials: z2.object({
|
|
68463
|
+
credentials: z2.object({
|
|
68464
|
+
categories: z2.record(
|
|
68465
|
+
z2.object({
|
|
68466
|
+
required: z2.boolean(),
|
|
68467
|
+
defaultEnabled: z2.boolean().optional()
|
|
68468
|
+
})
|
|
68469
|
+
).default({})
|
|
68470
|
+
}).default({}),
|
|
68197
68471
|
personal: z2.record(z2.object({ required: z2.boolean(), defaultEnabled: z2.boolean().optional() })).default({})
|
|
68198
68472
|
}).default({})
|
|
68199
68473
|
});
|
|
@@ -68336,6 +68610,17 @@ var ConsentFlowTransactionValidator2 = z2.object({
|
|
|
68336
68610
|
var PaginatedConsentFlowTransactionsValidator2 = PaginationResponseValidator2.extend({
|
|
68337
68611
|
records: ConsentFlowTransactionValidator2.array()
|
|
68338
68612
|
});
|
|
68613
|
+
var BaseSkillFrameworkQueryValidator2 = z2.object({
|
|
68614
|
+
id: StringQuery2,
|
|
68615
|
+
name: StringQuery2,
|
|
68616
|
+
description: StringQuery2,
|
|
68617
|
+
sourceURI: StringQuery2,
|
|
68618
|
+
status: StringQuery2
|
|
68619
|
+
}).partial();
|
|
68620
|
+
var SkillFrameworkQueryValidator2 = z2.union([
|
|
68621
|
+
z2.object({ $or: BaseSkillFrameworkQueryValidator2.array() }),
|
|
68622
|
+
BaseSkillFrameworkQueryValidator2
|
|
68623
|
+
]);
|
|
68339
68624
|
var ContractCredentialValidator2 = z2.object({
|
|
68340
68625
|
credentialUri: z2.string(),
|
|
68341
68626
|
termsUri: z2.string(),
|
|
@@ -68514,31 +68799,55 @@ var IssueInboxSigningAuthorityValidator2 = z2.object({
|
|
|
68514
68799
|
});
|
|
68515
68800
|
var IssueInboxCredentialValidator2 = z2.object({
|
|
68516
68801
|
recipient: ContactMethodQueryValidator2.describe("The recipient of the credential"),
|
|
68517
|
-
credential: VCValidator2.passthrough().or(VPValidator2.passthrough()).or(UnsignedVCValidator2.passthrough()).describe(
|
|
68802
|
+
credential: VCValidator2.passthrough().or(VPValidator2.passthrough()).or(UnsignedVCValidator2.passthrough()).describe(
|
|
68803
|
+
"The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
|
|
68804
|
+
),
|
|
68518
68805
|
configuration: z2.object({
|
|
68519
|
-
signingAuthority: IssueInboxSigningAuthorityValidator2.optional().describe(
|
|
68806
|
+
signingAuthority: IssueInboxSigningAuthorityValidator2.optional().describe(
|
|
68807
|
+
"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."
|
|
68808
|
+
),
|
|
68520
68809
|
webhookUrl: z2.string().url().optional().describe("The webhook URL to receive credential issuance events."),
|
|
68521
68810
|
expiresInDays: z2.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
|
|
68522
68811
|
delivery: z2.object({
|
|
68523
|
-
suppress: z2.boolean().optional().default(false).describe(
|
|
68812
|
+
suppress: z2.boolean().optional().default(false).describe(
|
|
68813
|
+
"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."
|
|
68814
|
+
),
|
|
68524
68815
|
template: z2.object({
|
|
68525
|
-
id: z2.enum(["universal-inbox-claim"]).optional().describe(
|
|
68816
|
+
id: z2.enum(["universal-inbox-claim"]).optional().describe(
|
|
68817
|
+
"The template ID to use for the credential delivery. If not provided, the default template will be used."
|
|
68818
|
+
),
|
|
68526
68819
|
model: z2.object({
|
|
68527
68820
|
issuer: z2.object({
|
|
68528
|
-
name: z2.string().optional().describe(
|
|
68821
|
+
name: z2.string().optional().describe(
|
|
68822
|
+
'The name of the organization (e.g., "State University").'
|
|
68823
|
+
),
|
|
68529
68824
|
logoUrl: z2.string().url().optional().describe("The URL of the organization's logo.")
|
|
68530
68825
|
}).optional(),
|
|
68531
68826
|
credential: z2.object({
|
|
68532
|
-
name: z2.string().optional().describe(
|
|
68533
|
-
|
|
68827
|
+
name: z2.string().optional().describe(
|
|
68828
|
+
'The name of the credential (e.g., "Bachelor of Science").'
|
|
68829
|
+
),
|
|
68830
|
+
type: z2.string().optional().describe(
|
|
68831
|
+
'The type of the credential (e.g., "degree", "certificate").'
|
|
68832
|
+
)
|
|
68534
68833
|
}).optional(),
|
|
68535
68834
|
recipient: z2.object({
|
|
68536
|
-
name: z2.string().optional().describe(
|
|
68835
|
+
name: z2.string().optional().describe(
|
|
68836
|
+
'The name of the recipient (e.g., "John Doe").'
|
|
68837
|
+
)
|
|
68537
68838
|
}).optional()
|
|
68538
|
-
}).describe(
|
|
68539
|
-
|
|
68540
|
-
|
|
68541
|
-
|
|
68839
|
+
}).describe(
|
|
68840
|
+
"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."
|
|
68841
|
+
)
|
|
68842
|
+
}).optional().describe(
|
|
68843
|
+
"The template to use for the credential delivery. If not provided, the default template will be used."
|
|
68844
|
+
)
|
|
68845
|
+
}).optional().describe(
|
|
68846
|
+
"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."
|
|
68847
|
+
)
|
|
68848
|
+
}).optional().describe(
|
|
68849
|
+
"Configuration for the credential issuance. If not provided, the default configuration will be used."
|
|
68850
|
+
)
|
|
68542
68851
|
});
|
|
68543
68852
|
var IssueInboxCredentialResponseValidator2 = z2.object({
|
|
68544
68853
|
issuanceId: z2.string(),
|
|
@@ -68600,6 +68909,191 @@ var ClaimTokenValidator2 = z2.object({
|
|
|
68600
68909
|
expiresAt: z2.string(),
|
|
68601
68910
|
used: z2.boolean()
|
|
68602
68911
|
});
|
|
68912
|
+
var TagValidator2 = z2.object({
|
|
68913
|
+
id: z2.string(),
|
|
68914
|
+
name: z2.string().min(1),
|
|
68915
|
+
slug: z2.string().min(1),
|
|
68916
|
+
createdAt: z2.string().optional(),
|
|
68917
|
+
updatedAt: z2.string().optional()
|
|
68918
|
+
});
|
|
68919
|
+
var SkillStatusEnum2 = z2.enum(["active", "archived"]);
|
|
68920
|
+
var SkillValidator2 = z2.object({
|
|
68921
|
+
id: z2.string(),
|
|
68922
|
+
statement: z2.string(),
|
|
68923
|
+
description: z2.string().optional(),
|
|
68924
|
+
code: z2.string().optional(),
|
|
68925
|
+
icon: z2.string().optional(),
|
|
68926
|
+
type: z2.string().default("skill"),
|
|
68927
|
+
status: SkillStatusEnum2.default("active"),
|
|
68928
|
+
frameworkId: z2.string().optional(),
|
|
68929
|
+
createdAt: z2.string().optional(),
|
|
68930
|
+
updatedAt: z2.string().optional()
|
|
68931
|
+
});
|
|
68932
|
+
var BaseSkillQueryValidator2 = z2.object({
|
|
68933
|
+
id: StringQuery2,
|
|
68934
|
+
statement: StringQuery2,
|
|
68935
|
+
description: StringQuery2,
|
|
68936
|
+
code: StringQuery2,
|
|
68937
|
+
type: StringQuery2,
|
|
68938
|
+
status: SkillStatusEnum2.or(z2.object({ $in: SkillStatusEnum2.array() }))
|
|
68939
|
+
}).partial();
|
|
68940
|
+
var SkillQueryValidator2 = z2.union([
|
|
68941
|
+
z2.object({
|
|
68942
|
+
$or: BaseSkillQueryValidator2.array()
|
|
68943
|
+
}),
|
|
68944
|
+
BaseSkillQueryValidator2
|
|
68945
|
+
]);
|
|
68946
|
+
var SkillFrameworkStatusEnum2 = z2.enum(["active", "archived"]);
|
|
68947
|
+
var SkillFrameworkValidator2 = z2.object({
|
|
68948
|
+
id: z2.string(),
|
|
68949
|
+
name: z2.string(),
|
|
68950
|
+
description: z2.string().optional(),
|
|
68951
|
+
image: z2.string().optional(),
|
|
68952
|
+
sourceURI: z2.string().url().optional(),
|
|
68953
|
+
status: SkillFrameworkStatusEnum2.default("active"),
|
|
68954
|
+
createdAt: z2.string().optional(),
|
|
68955
|
+
updatedAt: z2.string().optional()
|
|
68956
|
+
});
|
|
68957
|
+
var PaginatedSkillFrameworksValidator2 = PaginationResponseValidator2.extend({
|
|
68958
|
+
records: SkillFrameworkValidator2.array()
|
|
68959
|
+
});
|
|
68960
|
+
var SkillTreeNodeValidator2 = SkillValidator2.extend({
|
|
68961
|
+
children: z2.array(z2.lazy(() => SkillTreeNodeValidator2)),
|
|
68962
|
+
hasChildren: z2.boolean(),
|
|
68963
|
+
childrenCursor: z2.string().nullable().optional()
|
|
68964
|
+
}).openapi({ ref: "SkillTreeNode" });
|
|
68965
|
+
var PaginatedSkillTreeValidator2 = z2.object({
|
|
68966
|
+
hasMore: z2.boolean(),
|
|
68967
|
+
cursor: z2.string().nullable(),
|
|
68968
|
+
records: z2.array(SkillTreeNodeValidator2)
|
|
68969
|
+
});
|
|
68970
|
+
var SkillTreeNodeInputValidator2 = z2.lazy(
|
|
68971
|
+
() => z2.object({
|
|
68972
|
+
id: z2.string().optional(),
|
|
68973
|
+
statement: z2.string(),
|
|
68974
|
+
description: z2.string().optional(),
|
|
68975
|
+
code: z2.string().optional(),
|
|
68976
|
+
icon: z2.string().optional(),
|
|
68977
|
+
type: z2.string().optional(),
|
|
68978
|
+
status: SkillStatusEnum2.optional(),
|
|
68979
|
+
children: z2.array(SkillTreeNodeInputValidator2).optional()
|
|
68980
|
+
})
|
|
68981
|
+
).openapi({ ref: "SkillTreeNodeInput" });
|
|
68982
|
+
var LinkProviderFrameworkInputValidator2 = z2.object({
|
|
68983
|
+
frameworkId: z2.string()
|
|
68984
|
+
});
|
|
68985
|
+
var CreateManagedFrameworkInputValidator2 = z2.object({
|
|
68986
|
+
id: z2.string().optional(),
|
|
68987
|
+
name: z2.string().min(1),
|
|
68988
|
+
description: z2.string().optional(),
|
|
68989
|
+
image: z2.string().optional(),
|
|
68990
|
+
sourceURI: z2.string().url().optional(),
|
|
68991
|
+
status: SkillFrameworkStatusEnum2.optional(),
|
|
68992
|
+
skills: z2.array(SkillTreeNodeInputValidator2).optional(),
|
|
68993
|
+
boostUris: z2.array(z2.string()).optional()
|
|
68994
|
+
});
|
|
68995
|
+
var UpdateFrameworkInputValidator2 = z2.object({
|
|
68996
|
+
id: z2.string(),
|
|
68997
|
+
name: z2.string().min(1).optional(),
|
|
68998
|
+
description: z2.string().optional(),
|
|
68999
|
+
image: z2.string().optional(),
|
|
69000
|
+
sourceURI: z2.string().url().optional(),
|
|
69001
|
+
status: SkillFrameworkStatusEnum2.optional()
|
|
69002
|
+
}).refine(
|
|
69003
|
+
(data) => data.name !== void 0 || data.description !== void 0 || data.image !== void 0 || data.sourceURI !== void 0 || data.status !== void 0,
|
|
69004
|
+
{
|
|
69005
|
+
message: "At least one field must be provided to update",
|
|
69006
|
+
path: ["name"]
|
|
69007
|
+
}
|
|
69008
|
+
);
|
|
69009
|
+
var DeleteFrameworkInputValidator2 = z2.object({ id: z2.string() });
|
|
69010
|
+
var CreateManagedFrameworkBatchInputValidator2 = z2.object({
|
|
69011
|
+
frameworks: z2.array(
|
|
69012
|
+
CreateManagedFrameworkInputValidator2.extend({
|
|
69013
|
+
skills: z2.array(SkillTreeNodeInputValidator2).optional()
|
|
69014
|
+
})
|
|
69015
|
+
).min(1)
|
|
69016
|
+
});
|
|
69017
|
+
var SkillFrameworkAdminInputValidator2 = z2.object({
|
|
69018
|
+
frameworkId: z2.string(),
|
|
69019
|
+
profileId: z2.string()
|
|
69020
|
+
});
|
|
69021
|
+
var SkillFrameworkIdInputValidator2 = z2.object({ frameworkId: z2.string() });
|
|
69022
|
+
var SkillFrameworkAdminsValidator2 = LCNProfileValidator2.array();
|
|
69023
|
+
var SyncFrameworkInputValidator2 = z2.object({ id: z2.string() });
|
|
69024
|
+
var AddTagInputValidator2 = z2.object({
|
|
69025
|
+
slug: z2.string().min(1),
|
|
69026
|
+
name: z2.string().min(1)
|
|
69027
|
+
});
|
|
69028
|
+
var CreateSkillInputValidator2 = z2.object({
|
|
69029
|
+
frameworkId: z2.string(),
|
|
69030
|
+
skill: SkillTreeNodeInputValidator2,
|
|
69031
|
+
parentId: z2.string().nullable().optional()
|
|
69032
|
+
});
|
|
69033
|
+
var UpdateSkillInputValidator2 = z2.object({
|
|
69034
|
+
frameworkId: z2.string(),
|
|
69035
|
+
id: z2.string(),
|
|
69036
|
+
statement: z2.string().optional(),
|
|
69037
|
+
description: z2.string().optional(),
|
|
69038
|
+
code: z2.string().optional(),
|
|
69039
|
+
icon: z2.string().optional(),
|
|
69040
|
+
type: z2.string().optional(),
|
|
69041
|
+
status: SkillStatusEnum2.optional()
|
|
69042
|
+
}).refine(
|
|
69043
|
+
(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,
|
|
69044
|
+
{
|
|
69045
|
+
message: "At least one field must be provided to update a skill",
|
|
69046
|
+
path: ["statement"]
|
|
69047
|
+
}
|
|
69048
|
+
);
|
|
69049
|
+
var SkillDeletionStrategyValidator2 = z2.enum(["recursive", "reparent"]);
|
|
69050
|
+
var DeleteSkillInputValidator2 = z2.object({
|
|
69051
|
+
frameworkId: z2.string(),
|
|
69052
|
+
id: z2.string(),
|
|
69053
|
+
strategy: SkillDeletionStrategyValidator2.optional().default("reparent")
|
|
69054
|
+
});
|
|
69055
|
+
var CreateSkillsBatchInputValidator2 = z2.object({
|
|
69056
|
+
frameworkId: z2.string(),
|
|
69057
|
+
skills: z2.array(SkillTreeNodeInputValidator2).min(1),
|
|
69058
|
+
parentId: z2.string().nullable().optional()
|
|
69059
|
+
});
|
|
69060
|
+
var ReplaceSkillFrameworkSkillsInputValidator2 = z2.object({
|
|
69061
|
+
frameworkId: z2.string(),
|
|
69062
|
+
skills: z2.array(SkillTreeNodeInputValidator2).min(0)
|
|
69063
|
+
});
|
|
69064
|
+
var ReplaceSkillFrameworkSkillsResultValidator2 = z2.object({
|
|
69065
|
+
created: z2.number().int().min(0),
|
|
69066
|
+
updated: z2.number().int().min(0),
|
|
69067
|
+
deleted: z2.number().int().min(0),
|
|
69068
|
+
unchanged: z2.number().int().min(0),
|
|
69069
|
+
total: z2.number().int().min(0)
|
|
69070
|
+
});
|
|
69071
|
+
var CountSkillsInputValidator2 = z2.object({
|
|
69072
|
+
frameworkId: z2.string(),
|
|
69073
|
+
skillId: z2.string().optional(),
|
|
69074
|
+
recursive: z2.boolean().optional().default(false),
|
|
69075
|
+
onlyCountCompetencies: z2.boolean().optional().default(false)
|
|
69076
|
+
});
|
|
69077
|
+
var CountSkillsResultValidator2 = z2.object({
|
|
69078
|
+
count: z2.number().int().min(0)
|
|
69079
|
+
});
|
|
69080
|
+
var GetFullSkillTreeInputValidator2 = z2.object({
|
|
69081
|
+
frameworkId: z2.string()
|
|
69082
|
+
});
|
|
69083
|
+
var GetFullSkillTreeResultValidator2 = z2.object({
|
|
69084
|
+
skills: z2.array(SkillTreeNodeValidator2)
|
|
69085
|
+
});
|
|
69086
|
+
var GetSkillPathInputValidator2 = z2.object({
|
|
69087
|
+
frameworkId: z2.string(),
|
|
69088
|
+
skillId: z2.string()
|
|
69089
|
+
});
|
|
69090
|
+
var GetSkillPathResultValidator2 = z2.object({
|
|
69091
|
+
path: z2.array(SkillValidator2)
|
|
69092
|
+
});
|
|
69093
|
+
var FrameworkWithSkillsValidator2 = z2.object({
|
|
69094
|
+
framework: SkillFrameworkValidator2,
|
|
69095
|
+
skills: PaginatedSkillTreeValidator2
|
|
69096
|
+
});
|
|
68603
69097
|
var streamIdToCeramicURI = /* @__PURE__ */ __name3((id) => `lc:ceramic:${id}`, "streamIdToCeramicURI");
|
|
68604
69098
|
var CeramicURIValidator = z2.string().refine(
|
|
68605
69099
|
(string22) => string22.split(":").length === 3 && string22.split(":")[0] === "lc",
|