@learncard/learn-cloud-plugin 2.2.6 → 2.2.9

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.
@@ -8138,6 +8138,7 @@ var require_types_cjs_development = __commonJS2({
8138
8138
  AchievementSubjectValidator: () => AchievementSubjectValidator2,
8139
8139
  AchievementTypeValidator: () => AchievementTypeValidator2,
8140
8140
  AchievementValidator: () => AchievementValidator2,
8141
+ AddTagInputValidator: () => AddTagInputValidator2,
8141
8142
  AddressValidator: () => AddressValidator2,
8142
8143
  AlignmentTargetTypeValidator: () => AlignmentTargetTypeValidator2,
8143
8144
  AlignmentValidator: () => AlignmentValidator2,
@@ -8177,14 +8178,22 @@ var require_types_cjs_development = __commonJS2({
8177
8178
  ContactMethodVerificationValidator: () => ContactMethodVerificationValidator2,
8178
8179
  ContextValidator: () => ContextValidator2,
8179
8180
  ContractCredentialValidator: () => ContractCredentialValidator2,
8181
+ CountSkillsInputValidator: () => CountSkillsInputValidator2,
8182
+ CountSkillsResultValidator: () => CountSkillsResultValidator2,
8180
8183
  CreateContactMethodSessionResponseValidator: () => CreateContactMethodSessionResponseValidator2,
8181
8184
  CreateContactMethodSessionValidator: () => CreateContactMethodSessionValidator2,
8185
+ CreateManagedFrameworkBatchInputValidator: () => CreateManagedFrameworkBatchInputValidator2,
8186
+ CreateManagedFrameworkInputValidator: () => CreateManagedFrameworkInputValidator2,
8187
+ CreateSkillInputValidator: () => CreateSkillInputValidator2,
8188
+ CreateSkillsBatchInputValidator: () => CreateSkillsBatchInputValidator2,
8182
8189
  CredentialInfoValidator: () => CredentialInfoValidator2,
8183
8190
  CredentialRecordValidator: () => CredentialRecordValidator2,
8184
8191
  CredentialSchemaValidator: () => CredentialSchemaValidator2,
8185
8192
  CredentialStatusValidator: () => CredentialStatusValidator2,
8186
8193
  CredentialSubjectValidator: () => CredentialSubjectValidator2,
8187
8194
  CriteriaValidator: () => CriteriaValidator2,
8195
+ DeleteFrameworkInputValidator: () => DeleteFrameworkInputValidator2,
8196
+ DeleteSkillInputValidator: () => DeleteSkillInputValidator2,
8188
8197
  DidDocumentValidator: () => DidDocumentValidator2,
8189
8198
  EncryptedCredentialRecordValidator: () => EncryptedCredentialRecordValidator2,
8190
8199
  EncryptedRecordValidator: () => EncryptedRecordValidator2,
@@ -8192,8 +8201,13 @@ var require_types_cjs_development = __commonJS2({
8192
8201
  EndorsementSubjectValidator: () => EndorsementSubjectValidator2,
8193
8202
  EvidenceValidator: () => EvidenceValidator2,
8194
8203
  FlatAuthGrantValidator: () => FlatAuthGrantValidator2,
8204
+ FrameworkWithSkillsValidator: () => FrameworkWithSkillsValidator2,
8195
8205
  FullClaimHookValidator: () => FullClaimHookValidator2,
8196
8206
  GeoCoordinatesValidator: () => GeoCoordinatesValidator2,
8207
+ GetFullSkillTreeInputValidator: () => GetFullSkillTreeInputValidator2,
8208
+ GetFullSkillTreeResultValidator: () => GetFullSkillTreeResultValidator2,
8209
+ GetSkillPathInputValidator: () => GetSkillPathInputValidator2,
8210
+ GetSkillPathResultValidator: () => GetSkillPathResultValidator2,
8197
8211
  IdentifierEntryValidator: () => IdentifierEntryValidator2,
8198
8212
  IdentifierTypeValidator: () => IdentifierTypeValidator2,
8199
8213
  IdentityObjectValidator: () => IdentityObjectValidator2,
@@ -8232,6 +8246,7 @@ var require_types_cjs_development = __commonJS2({
8232
8246
  LCNProfileValidator: () => LCNProfileValidator2,
8233
8247
  LCNSigningAuthorityForUserValidator: () => LCNSigningAuthorityForUserValidator2,
8234
8248
  LCNSigningAuthorityValidator: () => LCNSigningAuthorityValidator2,
8249
+ LinkProviderFrameworkInputValidator: () => LinkProviderFrameworkInputValidator2,
8235
8250
  PaginatedBoostRecipientsValidator: () => PaginatedBoostRecipientsValidator2,
8236
8251
  PaginatedBoostRecipientsWithChildrenValidator: () => PaginatedBoostRecipientsWithChildrenValidator2,
8237
8252
  PaginatedBoostsValidator: () => PaginatedBoostsValidator2,
@@ -8249,6 +8264,8 @@ var require_types_cjs_development = __commonJS2({
8249
8264
  PaginatedLCNProfileManagersValidator: () => PaginatedLCNProfileManagersValidator2,
8250
8265
  PaginatedLCNProfilesAndManagersValidator: () => PaginatedLCNProfilesAndManagersValidator2,
8251
8266
  PaginatedLCNProfilesValidator: () => PaginatedLCNProfilesValidator2,
8267
+ PaginatedSkillFrameworksValidator: () => PaginatedSkillFrameworksValidator2,
8268
+ PaginatedSkillTreeValidator: () => PaginatedSkillTreeValidator2,
8252
8269
  PaginationOptionsValidator: () => PaginationOptionsValidator2,
8253
8270
  PaginationResponseValidator: () => PaginationResponseValidator2,
8254
8271
  ProfileValidator: () => ProfileValidator2,
@@ -8256,6 +8273,8 @@ var require_types_cjs_development = __commonJS2({
8256
8273
  RefreshServiceValidator: () => RefreshServiceValidator2,
8257
8274
  RegExpValidator: () => RegExpValidator2,
8258
8275
  RelatedValidator: () => RelatedValidator2,
8276
+ ReplaceSkillFrameworkSkillsInputValidator: () => ReplaceSkillFrameworkSkillsInputValidator2,
8277
+ ReplaceSkillFrameworkSkillsResultValidator: () => ReplaceSkillFrameworkSkillsResultValidator2,
8259
8278
  ResultDescriptionValidator: () => ResultDescriptionValidator2,
8260
8279
  ResultStatusTypeValidator: () => ResultStatusTypeValidator2,
8261
8280
  ResultTypeValidator: () => ResultTypeValidator2,
@@ -8264,11 +8283,27 @@ var require_types_cjs_development = __commonJS2({
8264
8283
  SentCredentialInfoValidator: () => SentCredentialInfoValidator2,
8265
8284
  ServiceValidator: () => ServiceValidator2,
8266
8285
  SetPrimaryContactMethodValidator: () => SetPrimaryContactMethodValidator2,
8286
+ SkillDeletionStrategyValidator: () => SkillDeletionStrategyValidator2,
8287
+ SkillFrameworkAdminInputValidator: () => SkillFrameworkAdminInputValidator2,
8288
+ SkillFrameworkAdminsValidator: () => SkillFrameworkAdminsValidator2,
8289
+ SkillFrameworkIdInputValidator: () => SkillFrameworkIdInputValidator2,
8290
+ SkillFrameworkQueryValidator: () => SkillFrameworkQueryValidator2,
8291
+ SkillFrameworkStatusEnum: () => SkillFrameworkStatusEnum2,
8292
+ SkillFrameworkValidator: () => SkillFrameworkValidator2,
8293
+ SkillQueryValidator: () => SkillQueryValidator2,
8294
+ SkillStatusEnum: () => SkillStatusEnum2,
8295
+ SkillTreeNodeInputValidator: () => SkillTreeNodeInputValidator2,
8296
+ SkillTreeNodeValidator: () => SkillTreeNodeValidator2,
8297
+ SkillValidator: () => SkillValidator2,
8267
8298
  StringQuery: () => StringQuery2,
8299
+ SyncFrameworkInputValidator: () => SyncFrameworkInputValidator2,
8300
+ TagValidator: () => TagValidator2,
8268
8301
  TermsOfUseValidator: () => TermsOfUseValidator2,
8269
8302
  UnsignedAchievementCredentialValidator: () => UnsignedAchievementCredentialValidator2,
8270
8303
  UnsignedVCValidator: () => UnsignedVCValidator2,
8271
8304
  UnsignedVPValidator: () => UnsignedVPValidator2,
8305
+ UpdateFrameworkInputValidator: () => UpdateFrameworkInputValidator2,
8306
+ UpdateSkillInputValidator: () => UpdateSkillInputValidator2,
8272
8307
  VC2EvidenceValidator: () => VC2EvidenceValidator2,
8273
8308
  VCValidator: () => VCValidator2,
8274
8309
  VPValidator: () => VPValidator2,
@@ -12751,7 +12786,14 @@ var require_types_cjs_development = __commonJS2({
12751
12786
  }
12752
12787
  })
12753
12788
  );
12754
- var StringQuery2 = z2.string().or(z2.object({ $in: z2.string().array() })).or(z2.object({ $regex: RegExpValidator2 }));
12789
+ var BaseStringQuery2 = z2.string().or(z2.object({ $in: z2.string().array() })).or(z2.object({ $regex: RegExpValidator2 }));
12790
+ var StringQuery2 = z2.union([
12791
+ BaseStringQuery2,
12792
+ z2.object({
12793
+ $or: BaseStringQuery2.array()
12794
+ })
12795
+ ]);
12796
+ extendZodWithOpenApi2(z2);
12755
12797
  var LCNProfileDisplayValidator2 = z2.object({
12756
12798
  backgroundColor: z2.string().optional(),
12757
12799
  backgroundImage: z2.string().optional(),
@@ -12836,7 +12878,8 @@ var require_types_cjs_development = __commonJS2({
12836
12878
  to: z2.string(),
12837
12879
  from: z2.string(),
12838
12880
  sent: z2.string().datetime(),
12839
- received: z2.string().datetime().optional()
12881
+ received: z2.string().datetime().optional(),
12882
+ metadata: z2.record(z2.unknown()).optional()
12840
12883
  });
12841
12884
  var BoostPermissionsValidator2 = z2.object({
12842
12885
  role: z2.string(),
@@ -12909,7 +12952,7 @@ var require_types_cjs_development = __commonJS2({
12909
12952
  claimPermissions: BoostPermissionsValidator2.optional(),
12910
12953
  allowAnyoneToCreateChildren: z2.boolean().optional()
12911
12954
  });
12912
- var BoostQueryValidator2 = z2.object({
12955
+ var BaseBoostQueryValidator2 = z2.object({
12913
12956
  uri: StringQuery2,
12914
12957
  name: StringQuery2,
12915
12958
  type: StringQuery2,
@@ -12918,6 +12961,12 @@ var require_types_cjs_development = __commonJS2({
12918
12961
  status: LCNBoostStatus2.or(z2.object({ $in: LCNBoostStatus2.array() })),
12919
12962
  autoConnectRecipients: z2.boolean()
12920
12963
  }).partial();
12964
+ var BoostQueryValidator2 = z2.union([
12965
+ z2.object({
12966
+ $or: BaseBoostQueryValidator2.array()
12967
+ }),
12968
+ BaseBoostQueryValidator2
12969
+ ]);
12921
12970
  var PaginatedBoostsValidator2 = PaginationResponseValidator2.extend({
12922
12971
  records: BoostValidator2.array()
12923
12972
  });
@@ -12973,11 +13022,25 @@ var require_types_cjs_development = __commonJS2({
12973
13022
  var ConsentFlowContractValidator2 = z2.object({
12974
13023
  read: z2.object({
12975
13024
  anonymize: z2.boolean().optional(),
12976
- credentials: z2.object({ categories: z2.record(z2.object({ required: z2.boolean(), defaultEnabled: z2.boolean().optional() })).default({}) }).default({}),
13025
+ credentials: z2.object({
13026
+ categories: z2.record(
13027
+ z2.object({
13028
+ required: z2.boolean(),
13029
+ defaultEnabled: z2.boolean().optional()
13030
+ })
13031
+ ).default({})
13032
+ }).default({}),
12977
13033
  personal: z2.record(z2.object({ required: z2.boolean(), defaultEnabled: z2.boolean().optional() })).default({})
12978
13034
  }).default({}),
12979
13035
  write: z2.object({
12980
- credentials: z2.object({ categories: z2.record(z2.object({ required: z2.boolean(), defaultEnabled: z2.boolean().optional() })).default({}) }).default({}),
13036
+ credentials: z2.object({
13037
+ categories: z2.record(
13038
+ z2.object({
13039
+ required: z2.boolean(),
13040
+ defaultEnabled: z2.boolean().optional()
13041
+ })
13042
+ ).default({})
13043
+ }).default({}),
12981
13044
  personal: z2.record(z2.object({ required: z2.boolean(), defaultEnabled: z2.boolean().optional() })).default({})
12982
13045
  }).default({})
12983
13046
  });
@@ -13120,6 +13183,17 @@ var require_types_cjs_development = __commonJS2({
13120
13183
  var PaginatedConsentFlowTransactionsValidator2 = PaginationResponseValidator2.extend({
13121
13184
  records: ConsentFlowTransactionValidator2.array()
13122
13185
  });
13186
+ var BaseSkillFrameworkQueryValidator2 = z2.object({
13187
+ id: StringQuery2,
13188
+ name: StringQuery2,
13189
+ description: StringQuery2,
13190
+ sourceURI: StringQuery2,
13191
+ status: StringQuery2
13192
+ }).partial();
13193
+ var SkillFrameworkQueryValidator2 = z2.union([
13194
+ z2.object({ $or: BaseSkillFrameworkQueryValidator2.array() }),
13195
+ BaseSkillFrameworkQueryValidator2
13196
+ ]);
13123
13197
  var ContractCredentialValidator2 = z2.object({
13124
13198
  credentialUri: z2.string(),
13125
13199
  termsUri: z2.string(),
@@ -13174,8 +13248,9 @@ var require_types_cjs_development = __commonJS2({
13174
13248
  vcUris: z2.array(z2.string()).optional(),
13175
13249
  vpUris: z2.array(z2.string()).optional(),
13176
13250
  transaction: ConsentFlowTransactionValidator2.optional(),
13177
- inbox: LCNNotificationInboxValidator2.optional()
13178
- });
13251
+ inbox: LCNNotificationInboxValidator2.optional(),
13252
+ metadata: z2.record(z2.unknown()).optional()
13253
+ }).passthrough();
13179
13254
  var LCNNotificationValidator2 = z2.object({
13180
13255
  type: LCNNotificationTypeEnumValidator2,
13181
13256
  to: LCNProfileValidator2.partial().and(z2.object({ did: z2.string() })),
@@ -13298,31 +13373,55 @@ var require_types_cjs_development = __commonJS2({
13298
13373
  });
13299
13374
  var IssueInboxCredentialValidator2 = z2.object({
13300
13375
  recipient: ContactMethodQueryValidator2.describe("The recipient of the credential"),
13301
- credential: VCValidator2.passthrough().or(VPValidator2.passthrough()).or(UnsignedVCValidator2.passthrough()).describe("The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."),
13376
+ credential: VCValidator2.passthrough().or(VPValidator2.passthrough()).or(UnsignedVCValidator2.passthrough()).describe(
13377
+ "The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
13378
+ ),
13302
13379
  configuration: z2.object({
13303
- signingAuthority: IssueInboxSigningAuthorityValidator2.optional().describe("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."),
13380
+ signingAuthority: IssueInboxSigningAuthorityValidator2.optional().describe(
13381
+ "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."
13382
+ ),
13304
13383
  webhookUrl: z2.string().url().optional().describe("The webhook URL to receive credential issuance events."),
13305
13384
  expiresInDays: z2.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
13306
13385
  delivery: z2.object({
13307
- suppress: z2.boolean().optional().default(false).describe("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."),
13386
+ suppress: z2.boolean().optional().default(false).describe(
13387
+ "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."
13388
+ ),
13308
13389
  template: z2.object({
13309
- id: z2.enum(["universal-inbox-claim"]).optional().describe("The template ID to use for the credential delivery. If not provided, the default template will be used."),
13390
+ id: z2.enum(["universal-inbox-claim"]).optional().describe(
13391
+ "The template ID to use for the credential delivery. If not provided, the default template will be used."
13392
+ ),
13310
13393
  model: z2.object({
13311
13394
  issuer: z2.object({
13312
- name: z2.string().optional().describe('The name of the organization (e.g., "State University").'),
13395
+ name: z2.string().optional().describe(
13396
+ 'The name of the organization (e.g., "State University").'
13397
+ ),
13313
13398
  logoUrl: z2.string().url().optional().describe("The URL of the organization's logo.")
13314
13399
  }).optional(),
13315
13400
  credential: z2.object({
13316
- name: z2.string().optional().describe('The name of the credential (e.g., "Bachelor of Science").'),
13317
- type: z2.string().optional().describe('The type of the credential (e.g., "degree", "certificate").')
13401
+ name: z2.string().optional().describe(
13402
+ 'The name of the credential (e.g., "Bachelor of Science").'
13403
+ ),
13404
+ type: z2.string().optional().describe(
13405
+ 'The type of the credential (e.g., "degree", "certificate").'
13406
+ )
13318
13407
  }).optional(),
13319
13408
  recipient: z2.object({
13320
- name: z2.string().optional().describe('The name of the recipient (e.g., "John Doe").')
13409
+ name: z2.string().optional().describe(
13410
+ 'The name of the recipient (e.g., "John Doe").'
13411
+ )
13321
13412
  }).optional()
13322
- }).describe("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.")
13323
- }).optional().describe("The template to use for the credential delivery. If not provided, the default template will be used.")
13324
- }).optional().describe("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.")
13325
- }).optional().describe("Configuration for the credential issuance. If not provided, the default configuration will be used.")
13413
+ }).describe(
13414
+ "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."
13415
+ )
13416
+ }).optional().describe(
13417
+ "The template to use for the credential delivery. If not provided, the default template will be used."
13418
+ )
13419
+ }).optional().describe(
13420
+ "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."
13421
+ )
13422
+ }).optional().describe(
13423
+ "Configuration for the credential issuance. If not provided, the default configuration will be used."
13424
+ )
13326
13425
  });
13327
13426
  var IssueInboxCredentialResponseValidator2 = z2.object({
13328
13427
  issuanceId: z2.string(),
@@ -13384,6 +13483,191 @@ var require_types_cjs_development = __commonJS2({
13384
13483
  expiresAt: z2.string(),
13385
13484
  used: z2.boolean()
13386
13485
  });
13486
+ var TagValidator2 = z2.object({
13487
+ id: z2.string(),
13488
+ name: z2.string().min(1),
13489
+ slug: z2.string().min(1),
13490
+ createdAt: z2.string().optional(),
13491
+ updatedAt: z2.string().optional()
13492
+ });
13493
+ var SkillStatusEnum2 = z2.enum(["active", "archived"]);
13494
+ var SkillValidator2 = z2.object({
13495
+ id: z2.string(),
13496
+ statement: z2.string(),
13497
+ description: z2.string().optional(),
13498
+ code: z2.string().optional(),
13499
+ icon: z2.string().optional(),
13500
+ type: z2.string().default("skill"),
13501
+ status: SkillStatusEnum2.default("active"),
13502
+ frameworkId: z2.string().optional(),
13503
+ createdAt: z2.string().optional(),
13504
+ updatedAt: z2.string().optional()
13505
+ });
13506
+ var BaseSkillQueryValidator2 = z2.object({
13507
+ id: StringQuery2,
13508
+ statement: StringQuery2,
13509
+ description: StringQuery2,
13510
+ code: StringQuery2,
13511
+ type: StringQuery2,
13512
+ status: SkillStatusEnum2.or(z2.object({ $in: SkillStatusEnum2.array() }))
13513
+ }).partial();
13514
+ var SkillQueryValidator2 = z2.union([
13515
+ z2.object({
13516
+ $or: BaseSkillQueryValidator2.array()
13517
+ }),
13518
+ BaseSkillQueryValidator2
13519
+ ]);
13520
+ var SkillFrameworkStatusEnum2 = z2.enum(["active", "archived"]);
13521
+ var SkillFrameworkValidator2 = z2.object({
13522
+ id: z2.string(),
13523
+ name: z2.string(),
13524
+ description: z2.string().optional(),
13525
+ image: z2.string().optional(),
13526
+ sourceURI: z2.string().url().optional(),
13527
+ status: SkillFrameworkStatusEnum2.default("active"),
13528
+ createdAt: z2.string().optional(),
13529
+ updatedAt: z2.string().optional()
13530
+ });
13531
+ var PaginatedSkillFrameworksValidator2 = PaginationResponseValidator2.extend({
13532
+ records: SkillFrameworkValidator2.array()
13533
+ });
13534
+ var SkillTreeNodeValidator2 = SkillValidator2.extend({
13535
+ children: z2.array(z2.lazy(() => SkillTreeNodeValidator2)),
13536
+ hasChildren: z2.boolean(),
13537
+ childrenCursor: z2.string().nullable().optional()
13538
+ }).openapi({ ref: "SkillTreeNode" });
13539
+ var PaginatedSkillTreeValidator2 = z2.object({
13540
+ hasMore: z2.boolean(),
13541
+ cursor: z2.string().nullable(),
13542
+ records: z2.array(SkillTreeNodeValidator2)
13543
+ });
13544
+ var SkillTreeNodeInputValidator2 = z2.lazy(
13545
+ () => z2.object({
13546
+ id: z2.string().optional(),
13547
+ statement: z2.string(),
13548
+ description: z2.string().optional(),
13549
+ code: z2.string().optional(),
13550
+ icon: z2.string().optional(),
13551
+ type: z2.string().optional(),
13552
+ status: SkillStatusEnum2.optional(),
13553
+ children: z2.array(SkillTreeNodeInputValidator2).optional()
13554
+ })
13555
+ ).openapi({ ref: "SkillTreeNodeInput" });
13556
+ var LinkProviderFrameworkInputValidator2 = z2.object({
13557
+ frameworkId: z2.string()
13558
+ });
13559
+ var CreateManagedFrameworkInputValidator2 = z2.object({
13560
+ id: z2.string().optional(),
13561
+ name: z2.string().min(1),
13562
+ description: z2.string().optional(),
13563
+ image: z2.string().optional(),
13564
+ sourceURI: z2.string().url().optional(),
13565
+ status: SkillFrameworkStatusEnum2.optional(),
13566
+ skills: z2.array(SkillTreeNodeInputValidator2).optional(),
13567
+ boostUris: z2.array(z2.string()).optional()
13568
+ });
13569
+ var UpdateFrameworkInputValidator2 = z2.object({
13570
+ id: z2.string(),
13571
+ name: z2.string().min(1).optional(),
13572
+ description: z2.string().optional(),
13573
+ image: z2.string().optional(),
13574
+ sourceURI: z2.string().url().optional(),
13575
+ status: SkillFrameworkStatusEnum2.optional()
13576
+ }).refine(
13577
+ (data) => data.name !== void 0 || data.description !== void 0 || data.image !== void 0 || data.sourceURI !== void 0 || data.status !== void 0,
13578
+ {
13579
+ message: "At least one field must be provided to update",
13580
+ path: ["name"]
13581
+ }
13582
+ );
13583
+ var DeleteFrameworkInputValidator2 = z2.object({ id: z2.string() });
13584
+ var CreateManagedFrameworkBatchInputValidator2 = z2.object({
13585
+ frameworks: z2.array(
13586
+ CreateManagedFrameworkInputValidator2.extend({
13587
+ skills: z2.array(SkillTreeNodeInputValidator2).optional()
13588
+ })
13589
+ ).min(1)
13590
+ });
13591
+ var SkillFrameworkAdminInputValidator2 = z2.object({
13592
+ frameworkId: z2.string(),
13593
+ profileId: z2.string()
13594
+ });
13595
+ var SkillFrameworkIdInputValidator2 = z2.object({ frameworkId: z2.string() });
13596
+ var SkillFrameworkAdminsValidator2 = LCNProfileValidator2.array();
13597
+ var SyncFrameworkInputValidator2 = z2.object({ id: z2.string() });
13598
+ var AddTagInputValidator2 = z2.object({
13599
+ slug: z2.string().min(1),
13600
+ name: z2.string().min(1)
13601
+ });
13602
+ var CreateSkillInputValidator2 = z2.object({
13603
+ frameworkId: z2.string(),
13604
+ skill: SkillTreeNodeInputValidator2,
13605
+ parentId: z2.string().nullable().optional()
13606
+ });
13607
+ var UpdateSkillInputValidator2 = z2.object({
13608
+ frameworkId: z2.string(),
13609
+ id: z2.string(),
13610
+ statement: z2.string().optional(),
13611
+ description: z2.string().optional(),
13612
+ code: z2.string().optional(),
13613
+ icon: z2.string().optional(),
13614
+ type: z2.string().optional(),
13615
+ status: SkillStatusEnum2.optional()
13616
+ }).refine(
13617
+ (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,
13618
+ {
13619
+ message: "At least one field must be provided to update a skill",
13620
+ path: ["statement"]
13621
+ }
13622
+ );
13623
+ var SkillDeletionStrategyValidator2 = z2.enum(["recursive", "reparent"]);
13624
+ var DeleteSkillInputValidator2 = z2.object({
13625
+ frameworkId: z2.string(),
13626
+ id: z2.string(),
13627
+ strategy: SkillDeletionStrategyValidator2.optional().default("reparent")
13628
+ });
13629
+ var CreateSkillsBatchInputValidator2 = z2.object({
13630
+ frameworkId: z2.string(),
13631
+ skills: z2.array(SkillTreeNodeInputValidator2).min(1),
13632
+ parentId: z2.string().nullable().optional()
13633
+ });
13634
+ var ReplaceSkillFrameworkSkillsInputValidator2 = z2.object({
13635
+ frameworkId: z2.string(),
13636
+ skills: z2.array(SkillTreeNodeInputValidator2).min(0)
13637
+ });
13638
+ var ReplaceSkillFrameworkSkillsResultValidator2 = z2.object({
13639
+ created: z2.number().int().min(0),
13640
+ updated: z2.number().int().min(0),
13641
+ deleted: z2.number().int().min(0),
13642
+ unchanged: z2.number().int().min(0),
13643
+ total: z2.number().int().min(0)
13644
+ });
13645
+ var CountSkillsInputValidator2 = z2.object({
13646
+ frameworkId: z2.string(),
13647
+ skillId: z2.string().optional(),
13648
+ recursive: z2.boolean().optional().default(false),
13649
+ onlyCountCompetencies: z2.boolean().optional().default(false)
13650
+ });
13651
+ var CountSkillsResultValidator2 = z2.object({
13652
+ count: z2.number().int().min(0)
13653
+ });
13654
+ var GetFullSkillTreeInputValidator2 = z2.object({
13655
+ frameworkId: z2.string()
13656
+ });
13657
+ var GetFullSkillTreeResultValidator2 = z2.object({
13658
+ skills: z2.array(SkillTreeNodeValidator2)
13659
+ });
13660
+ var GetSkillPathInputValidator2 = z2.object({
13661
+ frameworkId: z2.string(),
13662
+ skillId: z2.string()
13663
+ });
13664
+ var GetSkillPathResultValidator2 = z2.object({
13665
+ path: z2.array(SkillValidator2)
13666
+ });
13667
+ var FrameworkWithSkillsValidator2 = z2.object({
13668
+ framework: SkillFrameworkValidator2,
13669
+ skills: PaginatedSkillTreeValidator2
13670
+ });
13387
13671
  }
13388
13672
  });
13389
13673
  var require_dist = __commonJS2({
@@ -17838,7 +18122,14 @@ var RegExpValidator = z.instanceof(RegExp).or(
17838
18122
  }
17839
18123
  })
17840
18124
  );
17841
- var StringQuery = z.string().or(z.object({ $in: z.string().array() })).or(z.object({ $regex: RegExpValidator }));
18125
+ var BaseStringQuery = z.string().or(z.object({ $in: z.string().array() })).or(z.object({ $regex: RegExpValidator }));
18126
+ var StringQuery = z.union([
18127
+ BaseStringQuery,
18128
+ z.object({
18129
+ $or: BaseStringQuery.array()
18130
+ })
18131
+ ]);
18132
+ extendZodWithOpenApi(z);
17842
18133
  var LCNProfileDisplayValidator = z.object({
17843
18134
  backgroundColor: z.string().optional(),
17844
18135
  backgroundImage: z.string().optional(),
@@ -17923,7 +18214,8 @@ var SentCredentialInfoValidator = z.object({
17923
18214
  to: z.string(),
17924
18215
  from: z.string(),
17925
18216
  sent: z.string().datetime(),
17926
- received: z.string().datetime().optional()
18217
+ received: z.string().datetime().optional(),
18218
+ metadata: z.record(z.unknown()).optional()
17927
18219
  });
17928
18220
  var BoostPermissionsValidator = z.object({
17929
18221
  role: z.string(),
@@ -17996,7 +18288,7 @@ var BoostValidator = z.object({
17996
18288
  claimPermissions: BoostPermissionsValidator.optional(),
17997
18289
  allowAnyoneToCreateChildren: z.boolean().optional()
17998
18290
  });
17999
- var BoostQueryValidator = z.object({
18291
+ var BaseBoostQueryValidator = z.object({
18000
18292
  uri: StringQuery,
18001
18293
  name: StringQuery,
18002
18294
  type: StringQuery,
@@ -18005,6 +18297,12 @@ var BoostQueryValidator = z.object({
18005
18297
  status: LCNBoostStatus.or(z.object({ $in: LCNBoostStatus.array() })),
18006
18298
  autoConnectRecipients: z.boolean()
18007
18299
  }).partial();
18300
+ var BoostQueryValidator = z.union([
18301
+ z.object({
18302
+ $or: BaseBoostQueryValidator.array()
18303
+ }),
18304
+ BaseBoostQueryValidator
18305
+ ]);
18008
18306
  var PaginatedBoostsValidator = PaginationResponseValidator.extend({
18009
18307
  records: BoostValidator.array()
18010
18308
  });
@@ -18060,11 +18358,25 @@ var ConsentFlowTermsStatusValidator = z.enum(["live", "stale", "withdrawn"]);
18060
18358
  var ConsentFlowContractValidator = z.object({
18061
18359
  read: z.object({
18062
18360
  anonymize: z.boolean().optional(),
18063
- credentials: z.object({ categories: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({}) }).default({}),
18361
+ credentials: z.object({
18362
+ categories: z.record(
18363
+ z.object({
18364
+ required: z.boolean(),
18365
+ defaultEnabled: z.boolean().optional()
18366
+ })
18367
+ ).default({})
18368
+ }).default({}),
18064
18369
  personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
18065
18370
  }).default({}),
18066
18371
  write: z.object({
18067
- credentials: z.object({ categories: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({}) }).default({}),
18372
+ credentials: z.object({
18373
+ categories: z.record(
18374
+ z.object({
18375
+ required: z.boolean(),
18376
+ defaultEnabled: z.boolean().optional()
18377
+ })
18378
+ ).default({})
18379
+ }).default({}),
18068
18380
  personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
18069
18381
  }).default({})
18070
18382
  });
@@ -18207,6 +18519,17 @@ var ConsentFlowTransactionValidator = z.object({
18207
18519
  var PaginatedConsentFlowTransactionsValidator = PaginationResponseValidator.extend({
18208
18520
  records: ConsentFlowTransactionValidator.array()
18209
18521
  });
18522
+ var BaseSkillFrameworkQueryValidator = z.object({
18523
+ id: StringQuery,
18524
+ name: StringQuery,
18525
+ description: StringQuery,
18526
+ sourceURI: StringQuery,
18527
+ status: StringQuery
18528
+ }).partial();
18529
+ var SkillFrameworkQueryValidator = z.union([
18530
+ z.object({ $or: BaseSkillFrameworkQueryValidator.array() }),
18531
+ BaseSkillFrameworkQueryValidator
18532
+ ]);
18210
18533
  var ContractCredentialValidator = z.object({
18211
18534
  credentialUri: z.string(),
18212
18535
  termsUri: z.string(),
@@ -18261,8 +18584,9 @@ var LCNNotificationDataValidator = z.object({
18261
18584
  vcUris: z.array(z.string()).optional(),
18262
18585
  vpUris: z.array(z.string()).optional(),
18263
18586
  transaction: ConsentFlowTransactionValidator.optional(),
18264
- inbox: LCNNotificationInboxValidator.optional()
18265
- });
18587
+ inbox: LCNNotificationInboxValidator.optional(),
18588
+ metadata: z.record(z.unknown()).optional()
18589
+ }).passthrough();
18266
18590
  var LCNNotificationValidator = z.object({
18267
18591
  type: LCNNotificationTypeEnumValidator,
18268
18592
  to: LCNProfileValidator.partial().and(z.object({ did: z.string() })),
@@ -18385,31 +18709,55 @@ var IssueInboxSigningAuthorityValidator = z.object({
18385
18709
  });
18386
18710
  var IssueInboxCredentialValidator = z.object({
18387
18711
  recipient: ContactMethodQueryValidator.describe("The recipient of the credential"),
18388
- credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe("The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."),
18712
+ credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe(
18713
+ "The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
18714
+ ),
18389
18715
  configuration: z.object({
18390
- signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe("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."),
18716
+ signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe(
18717
+ "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."
18718
+ ),
18391
18719
  webhookUrl: z.string().url().optional().describe("The webhook URL to receive credential issuance events."),
18392
18720
  expiresInDays: z.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
18393
18721
  delivery: z.object({
18394
- suppress: z.boolean().optional().default(false).describe("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."),
18722
+ suppress: z.boolean().optional().default(false).describe(
18723
+ "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."
18724
+ ),
18395
18725
  template: z.object({
18396
- id: z.enum(["universal-inbox-claim"]).optional().describe("The template ID to use for the credential delivery. If not provided, the default template will be used."),
18726
+ id: z.enum(["universal-inbox-claim"]).optional().describe(
18727
+ "The template ID to use for the credential delivery. If not provided, the default template will be used."
18728
+ ),
18397
18729
  model: z.object({
18398
18730
  issuer: z.object({
18399
- name: z.string().optional().describe('The name of the organization (e.g., "State University").'),
18731
+ name: z.string().optional().describe(
18732
+ 'The name of the organization (e.g., "State University").'
18733
+ ),
18400
18734
  logoUrl: z.string().url().optional().describe("The URL of the organization's logo.")
18401
18735
  }).optional(),
18402
18736
  credential: z.object({
18403
- name: z.string().optional().describe('The name of the credential (e.g., "Bachelor of Science").'),
18404
- type: z.string().optional().describe('The type of the credential (e.g., "degree", "certificate").')
18737
+ name: z.string().optional().describe(
18738
+ 'The name of the credential (e.g., "Bachelor of Science").'
18739
+ ),
18740
+ type: z.string().optional().describe(
18741
+ 'The type of the credential (e.g., "degree", "certificate").'
18742
+ )
18405
18743
  }).optional(),
18406
18744
  recipient: z.object({
18407
- name: z.string().optional().describe('The name of the recipient (e.g., "John Doe").')
18745
+ name: z.string().optional().describe(
18746
+ 'The name of the recipient (e.g., "John Doe").'
18747
+ )
18408
18748
  }).optional()
18409
- }).describe("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.")
18410
- }).optional().describe("The template to use for the credential delivery. If not provided, the default template will be used.")
18411
- }).optional().describe("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.")
18412
- }).optional().describe("Configuration for the credential issuance. If not provided, the default configuration will be used.")
18749
+ }).describe(
18750
+ "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."
18751
+ )
18752
+ }).optional().describe(
18753
+ "The template to use for the credential delivery. If not provided, the default template will be used."
18754
+ )
18755
+ }).optional().describe(
18756
+ "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."
18757
+ )
18758
+ }).optional().describe(
18759
+ "Configuration for the credential issuance. If not provided, the default configuration will be used."
18760
+ )
18413
18761
  });
18414
18762
  var IssueInboxCredentialResponseValidator = z.object({
18415
18763
  issuanceId: z.string(),
@@ -18471,6 +18819,191 @@ var ClaimTokenValidator = z.object({
18471
18819
  expiresAt: z.string(),
18472
18820
  used: z.boolean()
18473
18821
  });
18822
+ var TagValidator = z.object({
18823
+ id: z.string(),
18824
+ name: z.string().min(1),
18825
+ slug: z.string().min(1),
18826
+ createdAt: z.string().optional(),
18827
+ updatedAt: z.string().optional()
18828
+ });
18829
+ var SkillStatusEnum = z.enum(["active", "archived"]);
18830
+ var SkillValidator = z.object({
18831
+ id: z.string(),
18832
+ statement: z.string(),
18833
+ description: z.string().optional(),
18834
+ code: z.string().optional(),
18835
+ icon: z.string().optional(),
18836
+ type: z.string().default("skill"),
18837
+ status: SkillStatusEnum.default("active"),
18838
+ frameworkId: z.string().optional(),
18839
+ createdAt: z.string().optional(),
18840
+ updatedAt: z.string().optional()
18841
+ });
18842
+ var BaseSkillQueryValidator = z.object({
18843
+ id: StringQuery,
18844
+ statement: StringQuery,
18845
+ description: StringQuery,
18846
+ code: StringQuery,
18847
+ type: StringQuery,
18848
+ status: SkillStatusEnum.or(z.object({ $in: SkillStatusEnum.array() }))
18849
+ }).partial();
18850
+ var SkillQueryValidator = z.union([
18851
+ z.object({
18852
+ $or: BaseSkillQueryValidator.array()
18853
+ }),
18854
+ BaseSkillQueryValidator
18855
+ ]);
18856
+ var SkillFrameworkStatusEnum = z.enum(["active", "archived"]);
18857
+ var SkillFrameworkValidator = z.object({
18858
+ id: z.string(),
18859
+ name: z.string(),
18860
+ description: z.string().optional(),
18861
+ image: z.string().optional(),
18862
+ sourceURI: z.string().url().optional(),
18863
+ status: SkillFrameworkStatusEnum.default("active"),
18864
+ createdAt: z.string().optional(),
18865
+ updatedAt: z.string().optional()
18866
+ });
18867
+ var PaginatedSkillFrameworksValidator = PaginationResponseValidator.extend({
18868
+ records: SkillFrameworkValidator.array()
18869
+ });
18870
+ var SkillTreeNodeValidator = SkillValidator.extend({
18871
+ children: z.array(z.lazy(() => SkillTreeNodeValidator)),
18872
+ hasChildren: z.boolean(),
18873
+ childrenCursor: z.string().nullable().optional()
18874
+ }).openapi({ ref: "SkillTreeNode" });
18875
+ var PaginatedSkillTreeValidator = z.object({
18876
+ hasMore: z.boolean(),
18877
+ cursor: z.string().nullable(),
18878
+ records: z.array(SkillTreeNodeValidator)
18879
+ });
18880
+ var SkillTreeNodeInputValidator = z.lazy(
18881
+ () => z.object({
18882
+ id: z.string().optional(),
18883
+ statement: z.string(),
18884
+ description: z.string().optional(),
18885
+ code: z.string().optional(),
18886
+ icon: z.string().optional(),
18887
+ type: z.string().optional(),
18888
+ status: SkillStatusEnum.optional(),
18889
+ children: z.array(SkillTreeNodeInputValidator).optional()
18890
+ })
18891
+ ).openapi({ ref: "SkillTreeNodeInput" });
18892
+ var LinkProviderFrameworkInputValidator = z.object({
18893
+ frameworkId: z.string()
18894
+ });
18895
+ var CreateManagedFrameworkInputValidator = z.object({
18896
+ id: z.string().optional(),
18897
+ name: z.string().min(1),
18898
+ description: z.string().optional(),
18899
+ image: z.string().optional(),
18900
+ sourceURI: z.string().url().optional(),
18901
+ status: SkillFrameworkStatusEnum.optional(),
18902
+ skills: z.array(SkillTreeNodeInputValidator).optional(),
18903
+ boostUris: z.array(z.string()).optional()
18904
+ });
18905
+ var UpdateFrameworkInputValidator = z.object({
18906
+ id: z.string(),
18907
+ name: z.string().min(1).optional(),
18908
+ description: z.string().optional(),
18909
+ image: z.string().optional(),
18910
+ sourceURI: z.string().url().optional(),
18911
+ status: SkillFrameworkStatusEnum.optional()
18912
+ }).refine(
18913
+ (data) => data.name !== void 0 || data.description !== void 0 || data.image !== void 0 || data.sourceURI !== void 0 || data.status !== void 0,
18914
+ {
18915
+ message: "At least one field must be provided to update",
18916
+ path: ["name"]
18917
+ }
18918
+ );
18919
+ var DeleteFrameworkInputValidator = z.object({ id: z.string() });
18920
+ var CreateManagedFrameworkBatchInputValidator = z.object({
18921
+ frameworks: z.array(
18922
+ CreateManagedFrameworkInputValidator.extend({
18923
+ skills: z.array(SkillTreeNodeInputValidator).optional()
18924
+ })
18925
+ ).min(1)
18926
+ });
18927
+ var SkillFrameworkAdminInputValidator = z.object({
18928
+ frameworkId: z.string(),
18929
+ profileId: z.string()
18930
+ });
18931
+ var SkillFrameworkIdInputValidator = z.object({ frameworkId: z.string() });
18932
+ var SkillFrameworkAdminsValidator = LCNProfileValidator.array();
18933
+ var SyncFrameworkInputValidator = z.object({ id: z.string() });
18934
+ var AddTagInputValidator = z.object({
18935
+ slug: z.string().min(1),
18936
+ name: z.string().min(1)
18937
+ });
18938
+ var CreateSkillInputValidator = z.object({
18939
+ frameworkId: z.string(),
18940
+ skill: SkillTreeNodeInputValidator,
18941
+ parentId: z.string().nullable().optional()
18942
+ });
18943
+ var UpdateSkillInputValidator = z.object({
18944
+ frameworkId: z.string(),
18945
+ id: z.string(),
18946
+ statement: z.string().optional(),
18947
+ description: z.string().optional(),
18948
+ code: z.string().optional(),
18949
+ icon: z.string().optional(),
18950
+ type: z.string().optional(),
18951
+ status: SkillStatusEnum.optional()
18952
+ }).refine(
18953
+ (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,
18954
+ {
18955
+ message: "At least one field must be provided to update a skill",
18956
+ path: ["statement"]
18957
+ }
18958
+ );
18959
+ var SkillDeletionStrategyValidator = z.enum(["recursive", "reparent"]);
18960
+ var DeleteSkillInputValidator = z.object({
18961
+ frameworkId: z.string(),
18962
+ id: z.string(),
18963
+ strategy: SkillDeletionStrategyValidator.optional().default("reparent")
18964
+ });
18965
+ var CreateSkillsBatchInputValidator = z.object({
18966
+ frameworkId: z.string(),
18967
+ skills: z.array(SkillTreeNodeInputValidator).min(1),
18968
+ parentId: z.string().nullable().optional()
18969
+ });
18970
+ var ReplaceSkillFrameworkSkillsInputValidator = z.object({
18971
+ frameworkId: z.string(),
18972
+ skills: z.array(SkillTreeNodeInputValidator).min(0)
18973
+ });
18974
+ var ReplaceSkillFrameworkSkillsResultValidator = z.object({
18975
+ created: z.number().int().min(0),
18976
+ updated: z.number().int().min(0),
18977
+ deleted: z.number().int().min(0),
18978
+ unchanged: z.number().int().min(0),
18979
+ total: z.number().int().min(0)
18980
+ });
18981
+ var CountSkillsInputValidator = z.object({
18982
+ frameworkId: z.string(),
18983
+ skillId: z.string().optional(),
18984
+ recursive: z.boolean().optional().default(false),
18985
+ onlyCountCompetencies: z.boolean().optional().default(false)
18986
+ });
18987
+ var CountSkillsResultValidator = z.object({
18988
+ count: z.number().int().min(0)
18989
+ });
18990
+ var GetFullSkillTreeInputValidator = z.object({
18991
+ frameworkId: z.string()
18992
+ });
18993
+ var GetFullSkillTreeResultValidator = z.object({
18994
+ skills: z.array(SkillTreeNodeValidator)
18995
+ });
18996
+ var GetSkillPathInputValidator = z.object({
18997
+ frameworkId: z.string(),
18998
+ skillId: z.string()
18999
+ });
19000
+ var GetSkillPathResultValidator = z.object({
19001
+ path: z.array(SkillValidator)
19002
+ });
19003
+ var FrameworkWithSkillsValidator = z.object({
19004
+ framework: SkillFrameworkValidator,
19005
+ skills: PaginatedSkillTreeValidator
19006
+ });
18474
19007
 
18475
19008
  // src/helpers.ts
18476
19009
  var import_json_stringify_deterministic = __toESM(require_lib());