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