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