@learncard/network-plugin 2.6.10 → 2.7.1

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.
@@ -2054,6 +2054,7 @@ var require_helpers_cjs_development = __commonJS({
2054
2054
  AchievementSubjectValidator: () => AchievementSubjectValidator2,
2055
2055
  AchievementTypeValidator: () => AchievementTypeValidator2,
2056
2056
  AchievementValidator: () => AchievementValidator2,
2057
+ AddTagInputValidator: () => AddTagInputValidator2,
2057
2058
  AddressValidator: () => AddressValidator2,
2058
2059
  AlignmentTargetTypeValidator: () => AlignmentTargetTypeValidator2,
2059
2060
  AlignmentValidator: () => AlignmentValidator2,
@@ -2093,14 +2094,22 @@ var require_helpers_cjs_development = __commonJS({
2093
2094
  ContactMethodVerificationValidator: () => ContactMethodVerificationValidator2,
2094
2095
  ContextValidator: () => ContextValidator2,
2095
2096
  ContractCredentialValidator: () => ContractCredentialValidator2,
2097
+ CountSkillsInputValidator: () => CountSkillsInputValidator2,
2098
+ CountSkillsResultValidator: () => CountSkillsResultValidator2,
2096
2099
  CreateContactMethodSessionResponseValidator: () => CreateContactMethodSessionResponseValidator2,
2097
2100
  CreateContactMethodSessionValidator: () => CreateContactMethodSessionValidator2,
2101
+ CreateManagedFrameworkBatchInputValidator: () => CreateManagedFrameworkBatchInputValidator2,
2102
+ CreateManagedFrameworkInputValidator: () => CreateManagedFrameworkInputValidator2,
2103
+ CreateSkillInputValidator: () => CreateSkillInputValidator2,
2104
+ CreateSkillsBatchInputValidator: () => CreateSkillsBatchInputValidator2,
2098
2105
  CredentialInfoValidator: () => CredentialInfoValidator2,
2099
2106
  CredentialRecordValidator: () => CredentialRecordValidator2,
2100
2107
  CredentialSchemaValidator: () => CredentialSchemaValidator2,
2101
2108
  CredentialStatusValidator: () => CredentialStatusValidator2,
2102
2109
  CredentialSubjectValidator: () => CredentialSubjectValidator2,
2103
2110
  CriteriaValidator: () => CriteriaValidator2,
2111
+ DeleteFrameworkInputValidator: () => DeleteFrameworkInputValidator2,
2112
+ DeleteSkillInputValidator: () => DeleteSkillInputValidator2,
2104
2113
  DidDocumentValidator: () => DidDocumentValidator2,
2105
2114
  EncryptedCredentialRecordValidator: () => EncryptedCredentialRecordValidator2,
2106
2115
  EncryptedRecordValidator: () => EncryptedRecordValidator2,
@@ -2108,8 +2117,13 @@ var require_helpers_cjs_development = __commonJS({
2108
2117
  EndorsementSubjectValidator: () => EndorsementSubjectValidator2,
2109
2118
  EvidenceValidator: () => EvidenceValidator2,
2110
2119
  FlatAuthGrantValidator: () => FlatAuthGrantValidator2,
2120
+ FrameworkWithSkillsValidator: () => FrameworkWithSkillsValidator2,
2111
2121
  FullClaimHookValidator: () => FullClaimHookValidator2,
2112
2122
  GeoCoordinatesValidator: () => GeoCoordinatesValidator2,
2123
+ GetFullSkillTreeInputValidator: () => GetFullSkillTreeInputValidator2,
2124
+ GetFullSkillTreeResultValidator: () => GetFullSkillTreeResultValidator2,
2125
+ GetSkillPathInputValidator: () => GetSkillPathInputValidator2,
2126
+ GetSkillPathResultValidator: () => GetSkillPathResultValidator2,
2113
2127
  IdentifierEntryValidator: () => IdentifierEntryValidator2,
2114
2128
  IdentifierTypeValidator: () => IdentifierTypeValidator2,
2115
2129
  IdentityObjectValidator: () => IdentityObjectValidator2,
@@ -2148,6 +2162,7 @@ var require_helpers_cjs_development = __commonJS({
2148
2162
  LCNProfileValidator: () => LCNProfileValidator2,
2149
2163
  LCNSigningAuthorityForUserValidator: () => LCNSigningAuthorityForUserValidator2,
2150
2164
  LCNSigningAuthorityValidator: () => LCNSigningAuthorityValidator2,
2165
+ LinkProviderFrameworkInputValidator: () => LinkProviderFrameworkInputValidator2,
2151
2166
  PaginatedBoostRecipientsValidator: () => PaginatedBoostRecipientsValidator2,
2152
2167
  PaginatedBoostRecipientsWithChildrenValidator: () => PaginatedBoostRecipientsWithChildrenValidator2,
2153
2168
  PaginatedBoostsValidator: () => PaginatedBoostsValidator2,
@@ -2165,6 +2180,8 @@ var require_helpers_cjs_development = __commonJS({
2165
2180
  PaginatedLCNProfileManagersValidator: () => PaginatedLCNProfileManagersValidator2,
2166
2181
  PaginatedLCNProfilesAndManagersValidator: () => PaginatedLCNProfilesAndManagersValidator2,
2167
2182
  PaginatedLCNProfilesValidator: () => PaginatedLCNProfilesValidator2,
2183
+ PaginatedSkillFrameworksValidator: () => PaginatedSkillFrameworksValidator2,
2184
+ PaginatedSkillTreeValidator: () => PaginatedSkillTreeValidator2,
2168
2185
  PaginationOptionsValidator: () => PaginationOptionsValidator2,
2169
2186
  PaginationResponseValidator: () => PaginationResponseValidator2,
2170
2187
  ProfileValidator: () => ProfileValidator2,
@@ -2172,6 +2189,8 @@ var require_helpers_cjs_development = __commonJS({
2172
2189
  RefreshServiceValidator: () => RefreshServiceValidator2,
2173
2190
  RegExpValidator: () => RegExpValidator2,
2174
2191
  RelatedValidator: () => RelatedValidator2,
2192
+ ReplaceSkillFrameworkSkillsInputValidator: () => ReplaceSkillFrameworkSkillsInputValidator2,
2193
+ ReplaceSkillFrameworkSkillsResultValidator: () => ReplaceSkillFrameworkSkillsResultValidator2,
2175
2194
  ResultDescriptionValidator: () => ResultDescriptionValidator2,
2176
2195
  ResultStatusTypeValidator: () => ResultStatusTypeValidator2,
2177
2196
  ResultTypeValidator: () => ResultTypeValidator2,
@@ -2180,11 +2199,27 @@ var require_helpers_cjs_development = __commonJS({
2180
2199
  SentCredentialInfoValidator: () => SentCredentialInfoValidator2,
2181
2200
  ServiceValidator: () => ServiceValidator2,
2182
2201
  SetPrimaryContactMethodValidator: () => SetPrimaryContactMethodValidator2,
2202
+ SkillDeletionStrategyValidator: () => SkillDeletionStrategyValidator2,
2203
+ SkillFrameworkAdminInputValidator: () => SkillFrameworkAdminInputValidator2,
2204
+ SkillFrameworkAdminsValidator: () => SkillFrameworkAdminsValidator2,
2205
+ SkillFrameworkIdInputValidator: () => SkillFrameworkIdInputValidator2,
2206
+ SkillFrameworkQueryValidator: () => SkillFrameworkQueryValidator2,
2207
+ SkillFrameworkStatusEnum: () => SkillFrameworkStatusEnum2,
2208
+ SkillFrameworkValidator: () => SkillFrameworkValidator2,
2209
+ SkillQueryValidator: () => SkillQueryValidator2,
2210
+ SkillStatusEnum: () => SkillStatusEnum2,
2211
+ SkillTreeNodeInputValidator: () => SkillTreeNodeInputValidator2,
2212
+ SkillTreeNodeValidator: () => SkillTreeNodeValidator2,
2213
+ SkillValidator: () => SkillValidator2,
2183
2214
  StringQuery: () => StringQuery2,
2215
+ SyncFrameworkInputValidator: () => SyncFrameworkInputValidator2,
2216
+ TagValidator: () => TagValidator2,
2184
2217
  TermsOfUseValidator: () => TermsOfUseValidator2,
2185
2218
  UnsignedAchievementCredentialValidator: () => UnsignedAchievementCredentialValidator2,
2186
2219
  UnsignedVCValidator: () => UnsignedVCValidator2,
2187
2220
  UnsignedVPValidator: () => UnsignedVPValidator2,
2221
+ UpdateFrameworkInputValidator: () => UpdateFrameworkInputValidator2,
2222
+ UpdateSkillInputValidator: () => UpdateSkillInputValidator2,
2188
2223
  VC2EvidenceValidator: () => VC2EvidenceValidator2,
2189
2224
  VCValidator: () => VCValidator2,
2190
2225
  VPValidator: () => VPValidator2,
@@ -6690,7 +6725,14 @@ var require_helpers_cjs_development = __commonJS({
6690
6725
  }
6691
6726
  })
6692
6727
  );
6693
- var StringQuery2 = z2.string().or(z2.object({ $in: z2.string().array() })).or(z2.object({ $regex: RegExpValidator2 }));
6728
+ var BaseStringQuery2 = z2.string().or(z2.object({ $in: z2.string().array() })).or(z2.object({ $regex: RegExpValidator2 }));
6729
+ var StringQuery2 = z2.union([
6730
+ BaseStringQuery2,
6731
+ z2.object({
6732
+ $or: BaseStringQuery2.array()
6733
+ })
6734
+ ]);
6735
+ extendZodWithOpenApi2(z2);
6694
6736
  var LCNProfileDisplayValidator2 = z2.object({
6695
6737
  backgroundColor: z2.string().optional(),
6696
6738
  backgroundImage: z2.string().optional(),
@@ -6775,7 +6817,8 @@ var require_helpers_cjs_development = __commonJS({
6775
6817
  to: z2.string(),
6776
6818
  from: z2.string(),
6777
6819
  sent: z2.string().datetime(),
6778
- received: z2.string().datetime().optional()
6820
+ received: z2.string().datetime().optional(),
6821
+ metadata: z2.record(z2.unknown()).optional()
6779
6822
  });
6780
6823
  var BoostPermissionsValidator2 = z2.object({
6781
6824
  role: z2.string(),
@@ -6848,7 +6891,7 @@ var require_helpers_cjs_development = __commonJS({
6848
6891
  claimPermissions: BoostPermissionsValidator2.optional(),
6849
6892
  allowAnyoneToCreateChildren: z2.boolean().optional()
6850
6893
  });
6851
- var BoostQueryValidator2 = z2.object({
6894
+ var BaseBoostQueryValidator2 = z2.object({
6852
6895
  uri: StringQuery2,
6853
6896
  name: StringQuery2,
6854
6897
  type: StringQuery2,
@@ -6857,6 +6900,12 @@ var require_helpers_cjs_development = __commonJS({
6857
6900
  status: LCNBoostStatus2.or(z2.object({ $in: LCNBoostStatus2.array() })),
6858
6901
  autoConnectRecipients: z2.boolean()
6859
6902
  }).partial();
6903
+ var BoostQueryValidator2 = z2.union([
6904
+ z2.object({
6905
+ $or: BaseBoostQueryValidator2.array()
6906
+ }),
6907
+ BaseBoostQueryValidator2
6908
+ ]);
6860
6909
  var PaginatedBoostsValidator2 = PaginationResponseValidator2.extend({
6861
6910
  records: BoostValidator2.array()
6862
6911
  });
@@ -6912,11 +6961,25 @@ var require_helpers_cjs_development = __commonJS({
6912
6961
  var ConsentFlowContractValidator2 = z2.object({
6913
6962
  read: z2.object({
6914
6963
  anonymize: z2.boolean().optional(),
6915
- credentials: z2.object({ categories: z2.record(z2.object({ required: z2.boolean(), defaultEnabled: z2.boolean().optional() })).default({}) }).default({}),
6964
+ credentials: z2.object({
6965
+ categories: z2.record(
6966
+ z2.object({
6967
+ required: z2.boolean(),
6968
+ defaultEnabled: z2.boolean().optional()
6969
+ })
6970
+ ).default({})
6971
+ }).default({}),
6916
6972
  personal: z2.record(z2.object({ required: z2.boolean(), defaultEnabled: z2.boolean().optional() })).default({})
6917
6973
  }).default({}),
6918
6974
  write: z2.object({
6919
- credentials: z2.object({ categories: z2.record(z2.object({ required: z2.boolean(), defaultEnabled: z2.boolean().optional() })).default({}) }).default({}),
6975
+ credentials: z2.object({
6976
+ categories: z2.record(
6977
+ z2.object({
6978
+ required: z2.boolean(),
6979
+ defaultEnabled: z2.boolean().optional()
6980
+ })
6981
+ ).default({})
6982
+ }).default({}),
6920
6983
  personal: z2.record(z2.object({ required: z2.boolean(), defaultEnabled: z2.boolean().optional() })).default({})
6921
6984
  }).default({})
6922
6985
  });
@@ -7059,6 +7122,17 @@ var require_helpers_cjs_development = __commonJS({
7059
7122
  var PaginatedConsentFlowTransactionsValidator2 = PaginationResponseValidator2.extend({
7060
7123
  records: ConsentFlowTransactionValidator2.array()
7061
7124
  });
7125
+ var BaseSkillFrameworkQueryValidator2 = z2.object({
7126
+ id: StringQuery2,
7127
+ name: StringQuery2,
7128
+ description: StringQuery2,
7129
+ sourceURI: StringQuery2,
7130
+ status: StringQuery2
7131
+ }).partial();
7132
+ var SkillFrameworkQueryValidator2 = z2.union([
7133
+ z2.object({ $or: BaseSkillFrameworkQueryValidator2.array() }),
7134
+ BaseSkillFrameworkQueryValidator2
7135
+ ]);
7062
7136
  var ContractCredentialValidator2 = z2.object({
7063
7137
  credentialUri: z2.string(),
7064
7138
  termsUri: z2.string(),
@@ -7113,8 +7187,9 @@ var require_helpers_cjs_development = __commonJS({
7113
7187
  vcUris: z2.array(z2.string()).optional(),
7114
7188
  vpUris: z2.array(z2.string()).optional(),
7115
7189
  transaction: ConsentFlowTransactionValidator2.optional(),
7116
- inbox: LCNNotificationInboxValidator2.optional()
7117
- });
7190
+ inbox: LCNNotificationInboxValidator2.optional(),
7191
+ metadata: z2.record(z2.unknown()).optional()
7192
+ }).passthrough();
7118
7193
  var LCNNotificationValidator2 = z2.object({
7119
7194
  type: LCNNotificationTypeEnumValidator2,
7120
7195
  to: LCNProfileValidator2.partial().and(z2.object({ did: z2.string() })),
@@ -7237,31 +7312,55 @@ var require_helpers_cjs_development = __commonJS({
7237
7312
  });
7238
7313
  var IssueInboxCredentialValidator2 = z2.object({
7239
7314
  recipient: ContactMethodQueryValidator2.describe("The recipient of the credential"),
7240
- 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."),
7315
+ credential: VCValidator2.passthrough().or(VPValidator2.passthrough()).or(UnsignedVCValidator2.passthrough()).describe(
7316
+ "The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
7317
+ ),
7241
7318
  configuration: z2.object({
7242
- 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."),
7319
+ signingAuthority: IssueInboxSigningAuthorityValidator2.optional().describe(
7320
+ "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."
7321
+ ),
7243
7322
  webhookUrl: z2.string().url().optional().describe("The webhook URL to receive credential issuance events."),
7244
7323
  expiresInDays: z2.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
7245
7324
  delivery: z2.object({
7246
- 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."),
7325
+ suppress: z2.boolean().optional().default(false).describe(
7326
+ "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."
7327
+ ),
7247
7328
  template: z2.object({
7248
- 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."),
7329
+ id: z2.enum(["universal-inbox-claim"]).optional().describe(
7330
+ "The template ID to use for the credential delivery. If not provided, the default template will be used."
7331
+ ),
7249
7332
  model: z2.object({
7250
7333
  issuer: z2.object({
7251
- name: z2.string().optional().describe('The name of the organization (e.g., "State University").'),
7334
+ name: z2.string().optional().describe(
7335
+ 'The name of the organization (e.g., "State University").'
7336
+ ),
7252
7337
  logoUrl: z2.string().url().optional().describe("The URL of the organization's logo.")
7253
7338
  }).optional(),
7254
7339
  credential: z2.object({
7255
- name: z2.string().optional().describe('The name of the credential (e.g., "Bachelor of Science").'),
7256
- type: z2.string().optional().describe('The type of the credential (e.g., "degree", "certificate").')
7340
+ name: z2.string().optional().describe(
7341
+ 'The name of the credential (e.g., "Bachelor of Science").'
7342
+ ),
7343
+ type: z2.string().optional().describe(
7344
+ 'The type of the credential (e.g., "degree", "certificate").'
7345
+ )
7257
7346
  }).optional(),
7258
7347
  recipient: z2.object({
7259
- name: z2.string().optional().describe('The name of the recipient (e.g., "John Doe").')
7348
+ name: z2.string().optional().describe(
7349
+ 'The name of the recipient (e.g., "John Doe").'
7350
+ )
7260
7351
  }).optional()
7261
- }).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.")
7262
- }).optional().describe("The template to use for the credential delivery. If not provided, the default template will be used.")
7263
- }).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.")
7264
- }).optional().describe("Configuration for the credential issuance. If not provided, the default configuration will be used.")
7352
+ }).describe(
7353
+ "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."
7354
+ )
7355
+ }).optional().describe(
7356
+ "The template to use for the credential delivery. If not provided, the default template will be used."
7357
+ )
7358
+ }).optional().describe(
7359
+ "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."
7360
+ )
7361
+ }).optional().describe(
7362
+ "Configuration for the credential issuance. If not provided, the default configuration will be used."
7363
+ )
7265
7364
  });
7266
7365
  var IssueInboxCredentialResponseValidator2 = z2.object({
7267
7366
  issuanceId: z2.string(),
@@ -7323,6 +7422,191 @@ var require_helpers_cjs_development = __commonJS({
7323
7422
  expiresAt: z2.string(),
7324
7423
  used: z2.boolean()
7325
7424
  });
7425
+ var TagValidator2 = z2.object({
7426
+ id: z2.string(),
7427
+ name: z2.string().min(1),
7428
+ slug: z2.string().min(1),
7429
+ createdAt: z2.string().optional(),
7430
+ updatedAt: z2.string().optional()
7431
+ });
7432
+ var SkillStatusEnum2 = z2.enum(["active", "archived"]);
7433
+ var SkillValidator2 = z2.object({
7434
+ id: z2.string(),
7435
+ statement: z2.string(),
7436
+ description: z2.string().optional(),
7437
+ code: z2.string().optional(),
7438
+ icon: z2.string().optional(),
7439
+ type: z2.string().default("skill"),
7440
+ status: SkillStatusEnum2.default("active"),
7441
+ frameworkId: z2.string().optional(),
7442
+ createdAt: z2.string().optional(),
7443
+ updatedAt: z2.string().optional()
7444
+ });
7445
+ var BaseSkillQueryValidator2 = z2.object({
7446
+ id: StringQuery2,
7447
+ statement: StringQuery2,
7448
+ description: StringQuery2,
7449
+ code: StringQuery2,
7450
+ type: StringQuery2,
7451
+ status: SkillStatusEnum2.or(z2.object({ $in: SkillStatusEnum2.array() }))
7452
+ }).partial();
7453
+ var SkillQueryValidator2 = z2.union([
7454
+ z2.object({
7455
+ $or: BaseSkillQueryValidator2.array()
7456
+ }),
7457
+ BaseSkillQueryValidator2
7458
+ ]);
7459
+ var SkillFrameworkStatusEnum2 = z2.enum(["active", "archived"]);
7460
+ var SkillFrameworkValidator2 = z2.object({
7461
+ id: z2.string(),
7462
+ name: z2.string(),
7463
+ description: z2.string().optional(),
7464
+ image: z2.string().optional(),
7465
+ sourceURI: z2.string().url().optional(),
7466
+ status: SkillFrameworkStatusEnum2.default("active"),
7467
+ createdAt: z2.string().optional(),
7468
+ updatedAt: z2.string().optional()
7469
+ });
7470
+ var PaginatedSkillFrameworksValidator2 = PaginationResponseValidator2.extend({
7471
+ records: SkillFrameworkValidator2.array()
7472
+ });
7473
+ var SkillTreeNodeValidator2 = SkillValidator2.extend({
7474
+ children: z2.array(z2.lazy(() => SkillTreeNodeValidator2)),
7475
+ hasChildren: z2.boolean(),
7476
+ childrenCursor: z2.string().nullable().optional()
7477
+ }).openapi({ ref: "SkillTreeNode" });
7478
+ var PaginatedSkillTreeValidator2 = z2.object({
7479
+ hasMore: z2.boolean(),
7480
+ cursor: z2.string().nullable(),
7481
+ records: z2.array(SkillTreeNodeValidator2)
7482
+ });
7483
+ var SkillTreeNodeInputValidator2 = z2.lazy(
7484
+ () => z2.object({
7485
+ id: z2.string().optional(),
7486
+ statement: z2.string(),
7487
+ description: z2.string().optional(),
7488
+ code: z2.string().optional(),
7489
+ icon: z2.string().optional(),
7490
+ type: z2.string().optional(),
7491
+ status: SkillStatusEnum2.optional(),
7492
+ children: z2.array(SkillTreeNodeInputValidator2).optional()
7493
+ })
7494
+ ).openapi({ ref: "SkillTreeNodeInput" });
7495
+ var LinkProviderFrameworkInputValidator2 = z2.object({
7496
+ frameworkId: z2.string()
7497
+ });
7498
+ var CreateManagedFrameworkInputValidator2 = z2.object({
7499
+ id: z2.string().optional(),
7500
+ name: z2.string().min(1),
7501
+ description: z2.string().optional(),
7502
+ image: z2.string().optional(),
7503
+ sourceURI: z2.string().url().optional(),
7504
+ status: SkillFrameworkStatusEnum2.optional(),
7505
+ skills: z2.array(SkillTreeNodeInputValidator2).optional(),
7506
+ boostUris: z2.array(z2.string()).optional()
7507
+ });
7508
+ var UpdateFrameworkInputValidator2 = z2.object({
7509
+ id: z2.string(),
7510
+ name: z2.string().min(1).optional(),
7511
+ description: z2.string().optional(),
7512
+ image: z2.string().optional(),
7513
+ sourceURI: z2.string().url().optional(),
7514
+ status: SkillFrameworkStatusEnum2.optional()
7515
+ }).refine(
7516
+ (data) => data.name !== void 0 || data.description !== void 0 || data.image !== void 0 || data.sourceURI !== void 0 || data.status !== void 0,
7517
+ {
7518
+ message: "At least one field must be provided to update",
7519
+ path: ["name"]
7520
+ }
7521
+ );
7522
+ var DeleteFrameworkInputValidator2 = z2.object({ id: z2.string() });
7523
+ var CreateManagedFrameworkBatchInputValidator2 = z2.object({
7524
+ frameworks: z2.array(
7525
+ CreateManagedFrameworkInputValidator2.extend({
7526
+ skills: z2.array(SkillTreeNodeInputValidator2).optional()
7527
+ })
7528
+ ).min(1)
7529
+ });
7530
+ var SkillFrameworkAdminInputValidator2 = z2.object({
7531
+ frameworkId: z2.string(),
7532
+ profileId: z2.string()
7533
+ });
7534
+ var SkillFrameworkIdInputValidator2 = z2.object({ frameworkId: z2.string() });
7535
+ var SkillFrameworkAdminsValidator2 = LCNProfileValidator2.array();
7536
+ var SyncFrameworkInputValidator2 = z2.object({ id: z2.string() });
7537
+ var AddTagInputValidator2 = z2.object({
7538
+ slug: z2.string().min(1),
7539
+ name: z2.string().min(1)
7540
+ });
7541
+ var CreateSkillInputValidator2 = z2.object({
7542
+ frameworkId: z2.string(),
7543
+ skill: SkillTreeNodeInputValidator2,
7544
+ parentId: z2.string().nullable().optional()
7545
+ });
7546
+ var UpdateSkillInputValidator2 = z2.object({
7547
+ frameworkId: z2.string(),
7548
+ id: z2.string(),
7549
+ statement: z2.string().optional(),
7550
+ description: z2.string().optional(),
7551
+ code: z2.string().optional(),
7552
+ icon: z2.string().optional(),
7553
+ type: z2.string().optional(),
7554
+ status: SkillStatusEnum2.optional()
7555
+ }).refine(
7556
+ (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,
7557
+ {
7558
+ message: "At least one field must be provided to update a skill",
7559
+ path: ["statement"]
7560
+ }
7561
+ );
7562
+ var SkillDeletionStrategyValidator2 = z2.enum(["recursive", "reparent"]);
7563
+ var DeleteSkillInputValidator2 = z2.object({
7564
+ frameworkId: z2.string(),
7565
+ id: z2.string(),
7566
+ strategy: SkillDeletionStrategyValidator2.optional().default("reparent")
7567
+ });
7568
+ var CreateSkillsBatchInputValidator2 = z2.object({
7569
+ frameworkId: z2.string(),
7570
+ skills: z2.array(SkillTreeNodeInputValidator2).min(1),
7571
+ parentId: z2.string().nullable().optional()
7572
+ });
7573
+ var ReplaceSkillFrameworkSkillsInputValidator2 = z2.object({
7574
+ frameworkId: z2.string(),
7575
+ skills: z2.array(SkillTreeNodeInputValidator2).min(0)
7576
+ });
7577
+ var ReplaceSkillFrameworkSkillsResultValidator2 = z2.object({
7578
+ created: z2.number().int().min(0),
7579
+ updated: z2.number().int().min(0),
7580
+ deleted: z2.number().int().min(0),
7581
+ unchanged: z2.number().int().min(0),
7582
+ total: z2.number().int().min(0)
7583
+ });
7584
+ var CountSkillsInputValidator2 = z2.object({
7585
+ frameworkId: z2.string(),
7586
+ skillId: z2.string().optional(),
7587
+ recursive: z2.boolean().optional().default(false),
7588
+ onlyCountCompetencies: z2.boolean().optional().default(false)
7589
+ });
7590
+ var CountSkillsResultValidator2 = z2.object({
7591
+ count: z2.number().int().min(0)
7592
+ });
7593
+ var GetFullSkillTreeInputValidator2 = z2.object({
7594
+ frameworkId: z2.string()
7595
+ });
7596
+ var GetFullSkillTreeResultValidator2 = z2.object({
7597
+ skills: z2.array(SkillTreeNodeValidator2)
7598
+ });
7599
+ var GetSkillPathInputValidator2 = z2.object({
7600
+ frameworkId: z2.string(),
7601
+ skillId: z2.string()
7602
+ });
7603
+ var GetSkillPathResultValidator2 = z2.object({
7604
+ path: z2.array(SkillValidator2)
7605
+ });
7606
+ var FrameworkWithSkillsValidator2 = z2.object({
7607
+ framework: SkillFrameworkValidator2,
7608
+ skills: PaginatedSkillTreeValidator2
7609
+ });
7326
7610
  }
7327
7611
  });
7328
7612
  var require_dist22 = __commonJS22({
@@ -7340,7 +7624,8 @@ var require_helpers_cjs_development = __commonJS({
7340
7624
  RegExpTransformer: () => RegExpTransformer2,
7341
7625
  isEncrypted: () => isEncrypted,
7342
7626
  isHex: () => isHex,
7343
- isVC2Format: () => isVC2Format2
7627
+ isVC2Format: () => isVC2Format2,
7628
+ unwrapBoostCredential: () => unwrapBoostCredential
7344
7629
  });
7345
7630
  module2.exports = __toCommonJS2(src_exports2);
7346
7631
  var import_types3 = __toESM22(require_dist22());
@@ -7381,6 +7666,13 @@ var require_helpers_cjs_development = __commonJS({
7381
7666
  }
7382
7667
  return credential["@context"].includes("https://www.w3.org/ns/credentials/v2");
7383
7668
  }, "isVC2Format");
7669
+ var unwrapBoostCredential = /* @__PURE__ */ __name22((vc) => {
7670
+ if (vc?.type?.includes("CertifiedBoostCredential") && vc?.boostCredential) {
7671
+ return vc.boostCredential;
7672
+ } else {
7673
+ return vc;
7674
+ }
7675
+ }, "unwrapBoostCredential");
7384
7676
  }
7385
7677
  });
7386
7678
  var require_dist = __commonJS({
@@ -11926,7 +12218,14 @@ var RegExpValidator = z.instanceof(RegExp).or(
11926
12218
  }
11927
12219
  })
11928
12220
  );
11929
- var StringQuery = z.string().or(z.object({ $in: z.string().array() })).or(z.object({ $regex: RegExpValidator }));
12221
+ var BaseStringQuery = z.string().or(z.object({ $in: z.string().array() })).or(z.object({ $regex: RegExpValidator }));
12222
+ var StringQuery = z.union([
12223
+ BaseStringQuery,
12224
+ z.object({
12225
+ $or: BaseStringQuery.array()
12226
+ })
12227
+ ]);
12228
+ extendZodWithOpenApi(z);
11930
12229
  var LCNProfileDisplayValidator = z.object({
11931
12230
  backgroundColor: z.string().optional(),
11932
12231
  backgroundImage: z.string().optional(),
@@ -12011,7 +12310,8 @@ var SentCredentialInfoValidator = z.object({
12011
12310
  to: z.string(),
12012
12311
  from: z.string(),
12013
12312
  sent: z.string().datetime(),
12014
- received: z.string().datetime().optional()
12313
+ received: z.string().datetime().optional(),
12314
+ metadata: z.record(z.unknown()).optional()
12015
12315
  });
12016
12316
  var BoostPermissionsValidator = z.object({
12017
12317
  role: z.string(),
@@ -12084,7 +12384,7 @@ var BoostValidator = z.object({
12084
12384
  claimPermissions: BoostPermissionsValidator.optional(),
12085
12385
  allowAnyoneToCreateChildren: z.boolean().optional()
12086
12386
  });
12087
- var BoostQueryValidator = z.object({
12387
+ var BaseBoostQueryValidator = z.object({
12088
12388
  uri: StringQuery,
12089
12389
  name: StringQuery,
12090
12390
  type: StringQuery,
@@ -12093,6 +12393,12 @@ var BoostQueryValidator = z.object({
12093
12393
  status: LCNBoostStatus.or(z.object({ $in: LCNBoostStatus.array() })),
12094
12394
  autoConnectRecipients: z.boolean()
12095
12395
  }).partial();
12396
+ var BoostQueryValidator = z.union([
12397
+ z.object({
12398
+ $or: BaseBoostQueryValidator.array()
12399
+ }),
12400
+ BaseBoostQueryValidator
12401
+ ]);
12096
12402
  var PaginatedBoostsValidator = PaginationResponseValidator.extend({
12097
12403
  records: BoostValidator.array()
12098
12404
  });
@@ -12148,11 +12454,25 @@ var ConsentFlowTermsStatusValidator = z.enum(["live", "stale", "withdrawn"]);
12148
12454
  var ConsentFlowContractValidator = z.object({
12149
12455
  read: z.object({
12150
12456
  anonymize: z.boolean().optional(),
12151
- credentials: z.object({ categories: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({}) }).default({}),
12457
+ credentials: z.object({
12458
+ categories: z.record(
12459
+ z.object({
12460
+ required: z.boolean(),
12461
+ defaultEnabled: z.boolean().optional()
12462
+ })
12463
+ ).default({})
12464
+ }).default({}),
12152
12465
  personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
12153
12466
  }).default({}),
12154
12467
  write: z.object({
12155
- credentials: z.object({ categories: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({}) }).default({}),
12468
+ credentials: z.object({
12469
+ categories: z.record(
12470
+ z.object({
12471
+ required: z.boolean(),
12472
+ defaultEnabled: z.boolean().optional()
12473
+ })
12474
+ ).default({})
12475
+ }).default({}),
12156
12476
  personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
12157
12477
  }).default({})
12158
12478
  });
@@ -12295,6 +12615,17 @@ var ConsentFlowTransactionValidator = z.object({
12295
12615
  var PaginatedConsentFlowTransactionsValidator = PaginationResponseValidator.extend({
12296
12616
  records: ConsentFlowTransactionValidator.array()
12297
12617
  });
12618
+ var BaseSkillFrameworkQueryValidator = z.object({
12619
+ id: StringQuery,
12620
+ name: StringQuery,
12621
+ description: StringQuery,
12622
+ sourceURI: StringQuery,
12623
+ status: StringQuery
12624
+ }).partial();
12625
+ var SkillFrameworkQueryValidator = z.union([
12626
+ z.object({ $or: BaseSkillFrameworkQueryValidator.array() }),
12627
+ BaseSkillFrameworkQueryValidator
12628
+ ]);
12298
12629
  var ContractCredentialValidator = z.object({
12299
12630
  credentialUri: z.string(),
12300
12631
  termsUri: z.string(),
@@ -12349,8 +12680,9 @@ var LCNNotificationDataValidator = z.object({
12349
12680
  vcUris: z.array(z.string()).optional(),
12350
12681
  vpUris: z.array(z.string()).optional(),
12351
12682
  transaction: ConsentFlowTransactionValidator.optional(),
12352
- inbox: LCNNotificationInboxValidator.optional()
12353
- });
12683
+ inbox: LCNNotificationInboxValidator.optional(),
12684
+ metadata: z.record(z.unknown()).optional()
12685
+ }).passthrough();
12354
12686
  var LCNNotificationValidator = z.object({
12355
12687
  type: LCNNotificationTypeEnumValidator,
12356
12688
  to: LCNProfileValidator.partial().and(z.object({ did: z.string() })),
@@ -12473,31 +12805,55 @@ var IssueInboxSigningAuthorityValidator = z.object({
12473
12805
  });
12474
12806
  var IssueInboxCredentialValidator = z.object({
12475
12807
  recipient: ContactMethodQueryValidator.describe("The recipient of the credential"),
12476
- 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."),
12808
+ credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe(
12809
+ "The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
12810
+ ),
12477
12811
  configuration: z.object({
12478
- 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."),
12812
+ signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe(
12813
+ "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."
12814
+ ),
12479
12815
  webhookUrl: z.string().url().optional().describe("The webhook URL to receive credential issuance events."),
12480
12816
  expiresInDays: z.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
12481
12817
  delivery: z.object({
12482
- 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."),
12818
+ suppress: z.boolean().optional().default(false).describe(
12819
+ "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."
12820
+ ),
12483
12821
  template: z.object({
12484
- 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."),
12822
+ id: z.enum(["universal-inbox-claim"]).optional().describe(
12823
+ "The template ID to use for the credential delivery. If not provided, the default template will be used."
12824
+ ),
12485
12825
  model: z.object({
12486
12826
  issuer: z.object({
12487
- name: z.string().optional().describe('The name of the organization (e.g., "State University").'),
12827
+ name: z.string().optional().describe(
12828
+ 'The name of the organization (e.g., "State University").'
12829
+ ),
12488
12830
  logoUrl: z.string().url().optional().describe("The URL of the organization's logo.")
12489
12831
  }).optional(),
12490
12832
  credential: z.object({
12491
- name: z.string().optional().describe('The name of the credential (e.g., "Bachelor of Science").'),
12492
- type: z.string().optional().describe('The type of the credential (e.g., "degree", "certificate").')
12833
+ name: z.string().optional().describe(
12834
+ 'The name of the credential (e.g., "Bachelor of Science").'
12835
+ ),
12836
+ type: z.string().optional().describe(
12837
+ 'The type of the credential (e.g., "degree", "certificate").'
12838
+ )
12493
12839
  }).optional(),
12494
12840
  recipient: z.object({
12495
- name: z.string().optional().describe('The name of the recipient (e.g., "John Doe").')
12841
+ name: z.string().optional().describe(
12842
+ 'The name of the recipient (e.g., "John Doe").'
12843
+ )
12496
12844
  }).optional()
12497
- }).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.")
12498
- }).optional().describe("The template to use for the credential delivery. If not provided, the default template will be used.")
12499
- }).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.")
12500
- }).optional().describe("Configuration for the credential issuance. If not provided, the default configuration will be used.")
12845
+ }).describe(
12846
+ "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."
12847
+ )
12848
+ }).optional().describe(
12849
+ "The template to use for the credential delivery. If not provided, the default template will be used."
12850
+ )
12851
+ }).optional().describe(
12852
+ "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."
12853
+ )
12854
+ }).optional().describe(
12855
+ "Configuration for the credential issuance. If not provided, the default configuration will be used."
12856
+ )
12501
12857
  });
12502
12858
  var IssueInboxCredentialResponseValidator = z.object({
12503
12859
  issuanceId: z.string(),
@@ -12559,6 +12915,191 @@ var ClaimTokenValidator = z.object({
12559
12915
  expiresAt: z.string(),
12560
12916
  used: z.boolean()
12561
12917
  });
12918
+ var TagValidator = z.object({
12919
+ id: z.string(),
12920
+ name: z.string().min(1),
12921
+ slug: z.string().min(1),
12922
+ createdAt: z.string().optional(),
12923
+ updatedAt: z.string().optional()
12924
+ });
12925
+ var SkillStatusEnum = z.enum(["active", "archived"]);
12926
+ var SkillValidator = z.object({
12927
+ id: z.string(),
12928
+ statement: z.string(),
12929
+ description: z.string().optional(),
12930
+ code: z.string().optional(),
12931
+ icon: z.string().optional(),
12932
+ type: z.string().default("skill"),
12933
+ status: SkillStatusEnum.default("active"),
12934
+ frameworkId: z.string().optional(),
12935
+ createdAt: z.string().optional(),
12936
+ updatedAt: z.string().optional()
12937
+ });
12938
+ var BaseSkillQueryValidator = z.object({
12939
+ id: StringQuery,
12940
+ statement: StringQuery,
12941
+ description: StringQuery,
12942
+ code: StringQuery,
12943
+ type: StringQuery,
12944
+ status: SkillStatusEnum.or(z.object({ $in: SkillStatusEnum.array() }))
12945
+ }).partial();
12946
+ var SkillQueryValidator = z.union([
12947
+ z.object({
12948
+ $or: BaseSkillQueryValidator.array()
12949
+ }),
12950
+ BaseSkillQueryValidator
12951
+ ]);
12952
+ var SkillFrameworkStatusEnum = z.enum(["active", "archived"]);
12953
+ var SkillFrameworkValidator = z.object({
12954
+ id: z.string(),
12955
+ name: z.string(),
12956
+ description: z.string().optional(),
12957
+ image: z.string().optional(),
12958
+ sourceURI: z.string().url().optional(),
12959
+ status: SkillFrameworkStatusEnum.default("active"),
12960
+ createdAt: z.string().optional(),
12961
+ updatedAt: z.string().optional()
12962
+ });
12963
+ var PaginatedSkillFrameworksValidator = PaginationResponseValidator.extend({
12964
+ records: SkillFrameworkValidator.array()
12965
+ });
12966
+ var SkillTreeNodeValidator = SkillValidator.extend({
12967
+ children: z.array(z.lazy(() => SkillTreeNodeValidator)),
12968
+ hasChildren: z.boolean(),
12969
+ childrenCursor: z.string().nullable().optional()
12970
+ }).openapi({ ref: "SkillTreeNode" });
12971
+ var PaginatedSkillTreeValidator = z.object({
12972
+ hasMore: z.boolean(),
12973
+ cursor: z.string().nullable(),
12974
+ records: z.array(SkillTreeNodeValidator)
12975
+ });
12976
+ var SkillTreeNodeInputValidator = z.lazy(
12977
+ () => z.object({
12978
+ id: z.string().optional(),
12979
+ statement: z.string(),
12980
+ description: z.string().optional(),
12981
+ code: z.string().optional(),
12982
+ icon: z.string().optional(),
12983
+ type: z.string().optional(),
12984
+ status: SkillStatusEnum.optional(),
12985
+ children: z.array(SkillTreeNodeInputValidator).optional()
12986
+ })
12987
+ ).openapi({ ref: "SkillTreeNodeInput" });
12988
+ var LinkProviderFrameworkInputValidator = z.object({
12989
+ frameworkId: z.string()
12990
+ });
12991
+ var CreateManagedFrameworkInputValidator = z.object({
12992
+ id: z.string().optional(),
12993
+ name: z.string().min(1),
12994
+ description: z.string().optional(),
12995
+ image: z.string().optional(),
12996
+ sourceURI: z.string().url().optional(),
12997
+ status: SkillFrameworkStatusEnum.optional(),
12998
+ skills: z.array(SkillTreeNodeInputValidator).optional(),
12999
+ boostUris: z.array(z.string()).optional()
13000
+ });
13001
+ var UpdateFrameworkInputValidator = z.object({
13002
+ id: z.string(),
13003
+ name: z.string().min(1).optional(),
13004
+ description: z.string().optional(),
13005
+ image: z.string().optional(),
13006
+ sourceURI: z.string().url().optional(),
13007
+ status: SkillFrameworkStatusEnum.optional()
13008
+ }).refine(
13009
+ (data) => data.name !== void 0 || data.description !== void 0 || data.image !== void 0 || data.sourceURI !== void 0 || data.status !== void 0,
13010
+ {
13011
+ message: "At least one field must be provided to update",
13012
+ path: ["name"]
13013
+ }
13014
+ );
13015
+ var DeleteFrameworkInputValidator = z.object({ id: z.string() });
13016
+ var CreateManagedFrameworkBatchInputValidator = z.object({
13017
+ frameworks: z.array(
13018
+ CreateManagedFrameworkInputValidator.extend({
13019
+ skills: z.array(SkillTreeNodeInputValidator).optional()
13020
+ })
13021
+ ).min(1)
13022
+ });
13023
+ var SkillFrameworkAdminInputValidator = z.object({
13024
+ frameworkId: z.string(),
13025
+ profileId: z.string()
13026
+ });
13027
+ var SkillFrameworkIdInputValidator = z.object({ frameworkId: z.string() });
13028
+ var SkillFrameworkAdminsValidator = LCNProfileValidator.array();
13029
+ var SyncFrameworkInputValidator = z.object({ id: z.string() });
13030
+ var AddTagInputValidator = z.object({
13031
+ slug: z.string().min(1),
13032
+ name: z.string().min(1)
13033
+ });
13034
+ var CreateSkillInputValidator = z.object({
13035
+ frameworkId: z.string(),
13036
+ skill: SkillTreeNodeInputValidator,
13037
+ parentId: z.string().nullable().optional()
13038
+ });
13039
+ var UpdateSkillInputValidator = z.object({
13040
+ frameworkId: z.string(),
13041
+ id: z.string(),
13042
+ statement: z.string().optional(),
13043
+ description: z.string().optional(),
13044
+ code: z.string().optional(),
13045
+ icon: z.string().optional(),
13046
+ type: z.string().optional(),
13047
+ status: SkillStatusEnum.optional()
13048
+ }).refine(
13049
+ (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,
13050
+ {
13051
+ message: "At least one field must be provided to update a skill",
13052
+ path: ["statement"]
13053
+ }
13054
+ );
13055
+ var SkillDeletionStrategyValidator = z.enum(["recursive", "reparent"]);
13056
+ var DeleteSkillInputValidator = z.object({
13057
+ frameworkId: z.string(),
13058
+ id: z.string(),
13059
+ strategy: SkillDeletionStrategyValidator.optional().default("reparent")
13060
+ });
13061
+ var CreateSkillsBatchInputValidator = z.object({
13062
+ frameworkId: z.string(),
13063
+ skills: z.array(SkillTreeNodeInputValidator).min(1),
13064
+ parentId: z.string().nullable().optional()
13065
+ });
13066
+ var ReplaceSkillFrameworkSkillsInputValidator = z.object({
13067
+ frameworkId: z.string(),
13068
+ skills: z.array(SkillTreeNodeInputValidator).min(0)
13069
+ });
13070
+ var ReplaceSkillFrameworkSkillsResultValidator = z.object({
13071
+ created: z.number().int().min(0),
13072
+ updated: z.number().int().min(0),
13073
+ deleted: z.number().int().min(0),
13074
+ unchanged: z.number().int().min(0),
13075
+ total: z.number().int().min(0)
13076
+ });
13077
+ var CountSkillsInputValidator = z.object({
13078
+ frameworkId: z.string(),
13079
+ skillId: z.string().optional(),
13080
+ recursive: z.boolean().optional().default(false),
13081
+ onlyCountCompetencies: z.boolean().optional().default(false)
13082
+ });
13083
+ var CountSkillsResultValidator = z.object({
13084
+ count: z.number().int().min(0)
13085
+ });
13086
+ var GetFullSkillTreeInputValidator = z.object({
13087
+ frameworkId: z.string()
13088
+ });
13089
+ var GetFullSkillTreeResultValidator = z.object({
13090
+ skills: z.array(SkillTreeNodeValidator)
13091
+ });
13092
+ var GetSkillPathInputValidator = z.object({
13093
+ frameworkId: z.string(),
13094
+ skillId: z.string()
13095
+ });
13096
+ var GetSkillPathResultValidator = z.object({
13097
+ path: z.array(SkillValidator)
13098
+ });
13099
+ var FrameworkWithSkillsValidator = z.object({
13100
+ framework: SkillFrameworkValidator,
13101
+ skills: PaginatedSkillTreeValidator
13102
+ });
12562
13103
 
12563
13104
  // ../../learn-card-helpers/dist/helpers.esm.js
12564
13105
  var __create2 = Object.create;
@@ -12612,6 +13153,7 @@ var require_types_cjs_development = __commonJS2({
12612
13153
  AchievementSubjectValidator: () => AchievementSubjectValidator2,
12613
13154
  AchievementTypeValidator: () => AchievementTypeValidator2,
12614
13155
  AchievementValidator: () => AchievementValidator2,
13156
+ AddTagInputValidator: () => AddTagInputValidator2,
12615
13157
  AddressValidator: () => AddressValidator2,
12616
13158
  AlignmentTargetTypeValidator: () => AlignmentTargetTypeValidator2,
12617
13159
  AlignmentValidator: () => AlignmentValidator2,
@@ -12651,14 +13193,22 @@ var require_types_cjs_development = __commonJS2({
12651
13193
  ContactMethodVerificationValidator: () => ContactMethodVerificationValidator2,
12652
13194
  ContextValidator: () => ContextValidator2,
12653
13195
  ContractCredentialValidator: () => ContractCredentialValidator2,
13196
+ CountSkillsInputValidator: () => CountSkillsInputValidator2,
13197
+ CountSkillsResultValidator: () => CountSkillsResultValidator2,
12654
13198
  CreateContactMethodSessionResponseValidator: () => CreateContactMethodSessionResponseValidator2,
12655
13199
  CreateContactMethodSessionValidator: () => CreateContactMethodSessionValidator2,
13200
+ CreateManagedFrameworkBatchInputValidator: () => CreateManagedFrameworkBatchInputValidator2,
13201
+ CreateManagedFrameworkInputValidator: () => CreateManagedFrameworkInputValidator2,
13202
+ CreateSkillInputValidator: () => CreateSkillInputValidator2,
13203
+ CreateSkillsBatchInputValidator: () => CreateSkillsBatchInputValidator2,
12656
13204
  CredentialInfoValidator: () => CredentialInfoValidator2,
12657
13205
  CredentialRecordValidator: () => CredentialRecordValidator2,
12658
13206
  CredentialSchemaValidator: () => CredentialSchemaValidator2,
12659
13207
  CredentialStatusValidator: () => CredentialStatusValidator2,
12660
13208
  CredentialSubjectValidator: () => CredentialSubjectValidator2,
12661
13209
  CriteriaValidator: () => CriteriaValidator2,
13210
+ DeleteFrameworkInputValidator: () => DeleteFrameworkInputValidator2,
13211
+ DeleteSkillInputValidator: () => DeleteSkillInputValidator2,
12662
13212
  DidDocumentValidator: () => DidDocumentValidator2,
12663
13213
  EncryptedCredentialRecordValidator: () => EncryptedCredentialRecordValidator2,
12664
13214
  EncryptedRecordValidator: () => EncryptedRecordValidator2,
@@ -12666,8 +13216,13 @@ var require_types_cjs_development = __commonJS2({
12666
13216
  EndorsementSubjectValidator: () => EndorsementSubjectValidator2,
12667
13217
  EvidenceValidator: () => EvidenceValidator2,
12668
13218
  FlatAuthGrantValidator: () => FlatAuthGrantValidator2,
13219
+ FrameworkWithSkillsValidator: () => FrameworkWithSkillsValidator2,
12669
13220
  FullClaimHookValidator: () => FullClaimHookValidator2,
12670
13221
  GeoCoordinatesValidator: () => GeoCoordinatesValidator2,
13222
+ GetFullSkillTreeInputValidator: () => GetFullSkillTreeInputValidator2,
13223
+ GetFullSkillTreeResultValidator: () => GetFullSkillTreeResultValidator2,
13224
+ GetSkillPathInputValidator: () => GetSkillPathInputValidator2,
13225
+ GetSkillPathResultValidator: () => GetSkillPathResultValidator2,
12671
13226
  IdentifierEntryValidator: () => IdentifierEntryValidator2,
12672
13227
  IdentifierTypeValidator: () => IdentifierTypeValidator2,
12673
13228
  IdentityObjectValidator: () => IdentityObjectValidator2,
@@ -12706,6 +13261,7 @@ var require_types_cjs_development = __commonJS2({
12706
13261
  LCNProfileValidator: () => LCNProfileValidator2,
12707
13262
  LCNSigningAuthorityForUserValidator: () => LCNSigningAuthorityForUserValidator2,
12708
13263
  LCNSigningAuthorityValidator: () => LCNSigningAuthorityValidator2,
13264
+ LinkProviderFrameworkInputValidator: () => LinkProviderFrameworkInputValidator2,
12709
13265
  PaginatedBoostRecipientsValidator: () => PaginatedBoostRecipientsValidator2,
12710
13266
  PaginatedBoostRecipientsWithChildrenValidator: () => PaginatedBoostRecipientsWithChildrenValidator2,
12711
13267
  PaginatedBoostsValidator: () => PaginatedBoostsValidator2,
@@ -12723,6 +13279,8 @@ var require_types_cjs_development = __commonJS2({
12723
13279
  PaginatedLCNProfileManagersValidator: () => PaginatedLCNProfileManagersValidator2,
12724
13280
  PaginatedLCNProfilesAndManagersValidator: () => PaginatedLCNProfilesAndManagersValidator2,
12725
13281
  PaginatedLCNProfilesValidator: () => PaginatedLCNProfilesValidator2,
13282
+ PaginatedSkillFrameworksValidator: () => PaginatedSkillFrameworksValidator2,
13283
+ PaginatedSkillTreeValidator: () => PaginatedSkillTreeValidator2,
12726
13284
  PaginationOptionsValidator: () => PaginationOptionsValidator2,
12727
13285
  PaginationResponseValidator: () => PaginationResponseValidator2,
12728
13286
  ProfileValidator: () => ProfileValidator2,
@@ -12730,6 +13288,8 @@ var require_types_cjs_development = __commonJS2({
12730
13288
  RefreshServiceValidator: () => RefreshServiceValidator2,
12731
13289
  RegExpValidator: () => RegExpValidator2,
12732
13290
  RelatedValidator: () => RelatedValidator2,
13291
+ ReplaceSkillFrameworkSkillsInputValidator: () => ReplaceSkillFrameworkSkillsInputValidator2,
13292
+ ReplaceSkillFrameworkSkillsResultValidator: () => ReplaceSkillFrameworkSkillsResultValidator2,
12733
13293
  ResultDescriptionValidator: () => ResultDescriptionValidator2,
12734
13294
  ResultStatusTypeValidator: () => ResultStatusTypeValidator2,
12735
13295
  ResultTypeValidator: () => ResultTypeValidator2,
@@ -12738,11 +13298,27 @@ var require_types_cjs_development = __commonJS2({
12738
13298
  SentCredentialInfoValidator: () => SentCredentialInfoValidator2,
12739
13299
  ServiceValidator: () => ServiceValidator2,
12740
13300
  SetPrimaryContactMethodValidator: () => SetPrimaryContactMethodValidator2,
13301
+ SkillDeletionStrategyValidator: () => SkillDeletionStrategyValidator2,
13302
+ SkillFrameworkAdminInputValidator: () => SkillFrameworkAdminInputValidator2,
13303
+ SkillFrameworkAdminsValidator: () => SkillFrameworkAdminsValidator2,
13304
+ SkillFrameworkIdInputValidator: () => SkillFrameworkIdInputValidator2,
13305
+ SkillFrameworkQueryValidator: () => SkillFrameworkQueryValidator2,
13306
+ SkillFrameworkStatusEnum: () => SkillFrameworkStatusEnum2,
13307
+ SkillFrameworkValidator: () => SkillFrameworkValidator2,
13308
+ SkillQueryValidator: () => SkillQueryValidator2,
13309
+ SkillStatusEnum: () => SkillStatusEnum2,
13310
+ SkillTreeNodeInputValidator: () => SkillTreeNodeInputValidator2,
13311
+ SkillTreeNodeValidator: () => SkillTreeNodeValidator2,
13312
+ SkillValidator: () => SkillValidator2,
12741
13313
  StringQuery: () => StringQuery2,
13314
+ SyncFrameworkInputValidator: () => SyncFrameworkInputValidator2,
13315
+ TagValidator: () => TagValidator2,
12742
13316
  TermsOfUseValidator: () => TermsOfUseValidator2,
12743
13317
  UnsignedAchievementCredentialValidator: () => UnsignedAchievementCredentialValidator2,
12744
13318
  UnsignedVCValidator: () => UnsignedVCValidator2,
12745
13319
  UnsignedVPValidator: () => UnsignedVPValidator2,
13320
+ UpdateFrameworkInputValidator: () => UpdateFrameworkInputValidator2,
13321
+ UpdateSkillInputValidator: () => UpdateSkillInputValidator2,
12746
13322
  VC2EvidenceValidator: () => VC2EvidenceValidator2,
12747
13323
  VCValidator: () => VCValidator2,
12748
13324
  VPValidator: () => VPValidator2,
@@ -17225,7 +17801,14 @@ var require_types_cjs_development = __commonJS2({
17225
17801
  }
17226
17802
  })
17227
17803
  );
17228
- var StringQuery2 = z2.string().or(z2.object({ $in: z2.string().array() })).or(z2.object({ $regex: RegExpValidator2 }));
17804
+ var BaseStringQuery2 = z2.string().or(z2.object({ $in: z2.string().array() })).or(z2.object({ $regex: RegExpValidator2 }));
17805
+ var StringQuery2 = z2.union([
17806
+ BaseStringQuery2,
17807
+ z2.object({
17808
+ $or: BaseStringQuery2.array()
17809
+ })
17810
+ ]);
17811
+ extendZodWithOpenApi2(z2);
17229
17812
  var LCNProfileDisplayValidator2 = z2.object({
17230
17813
  backgroundColor: z2.string().optional(),
17231
17814
  backgroundImage: z2.string().optional(),
@@ -17310,7 +17893,8 @@ var require_types_cjs_development = __commonJS2({
17310
17893
  to: z2.string(),
17311
17894
  from: z2.string(),
17312
17895
  sent: z2.string().datetime(),
17313
- received: z2.string().datetime().optional()
17896
+ received: z2.string().datetime().optional(),
17897
+ metadata: z2.record(z2.unknown()).optional()
17314
17898
  });
17315
17899
  var BoostPermissionsValidator2 = z2.object({
17316
17900
  role: z2.string(),
@@ -17383,7 +17967,7 @@ var require_types_cjs_development = __commonJS2({
17383
17967
  claimPermissions: BoostPermissionsValidator2.optional(),
17384
17968
  allowAnyoneToCreateChildren: z2.boolean().optional()
17385
17969
  });
17386
- var BoostQueryValidator2 = z2.object({
17970
+ var BaseBoostQueryValidator2 = z2.object({
17387
17971
  uri: StringQuery2,
17388
17972
  name: StringQuery2,
17389
17973
  type: StringQuery2,
@@ -17392,6 +17976,12 @@ var require_types_cjs_development = __commonJS2({
17392
17976
  status: LCNBoostStatus2.or(z2.object({ $in: LCNBoostStatus2.array() })),
17393
17977
  autoConnectRecipients: z2.boolean()
17394
17978
  }).partial();
17979
+ var BoostQueryValidator2 = z2.union([
17980
+ z2.object({
17981
+ $or: BaseBoostQueryValidator2.array()
17982
+ }),
17983
+ BaseBoostQueryValidator2
17984
+ ]);
17395
17985
  var PaginatedBoostsValidator2 = PaginationResponseValidator2.extend({
17396
17986
  records: BoostValidator2.array()
17397
17987
  });
@@ -17447,11 +18037,25 @@ var require_types_cjs_development = __commonJS2({
17447
18037
  var ConsentFlowContractValidator2 = z2.object({
17448
18038
  read: z2.object({
17449
18039
  anonymize: z2.boolean().optional(),
17450
- credentials: z2.object({ categories: z2.record(z2.object({ required: z2.boolean(), defaultEnabled: z2.boolean().optional() })).default({}) }).default({}),
18040
+ credentials: z2.object({
18041
+ categories: z2.record(
18042
+ z2.object({
18043
+ required: z2.boolean(),
18044
+ defaultEnabled: z2.boolean().optional()
18045
+ })
18046
+ ).default({})
18047
+ }).default({}),
17451
18048
  personal: z2.record(z2.object({ required: z2.boolean(), defaultEnabled: z2.boolean().optional() })).default({})
17452
18049
  }).default({}),
17453
18050
  write: z2.object({
17454
- credentials: z2.object({ categories: z2.record(z2.object({ required: z2.boolean(), defaultEnabled: z2.boolean().optional() })).default({}) }).default({}),
18051
+ credentials: z2.object({
18052
+ categories: z2.record(
18053
+ z2.object({
18054
+ required: z2.boolean(),
18055
+ defaultEnabled: z2.boolean().optional()
18056
+ })
18057
+ ).default({})
18058
+ }).default({}),
17455
18059
  personal: z2.record(z2.object({ required: z2.boolean(), defaultEnabled: z2.boolean().optional() })).default({})
17456
18060
  }).default({})
17457
18061
  });
@@ -17594,6 +18198,17 @@ var require_types_cjs_development = __commonJS2({
17594
18198
  var PaginatedConsentFlowTransactionsValidator2 = PaginationResponseValidator2.extend({
17595
18199
  records: ConsentFlowTransactionValidator2.array()
17596
18200
  });
18201
+ var BaseSkillFrameworkQueryValidator2 = z2.object({
18202
+ id: StringQuery2,
18203
+ name: StringQuery2,
18204
+ description: StringQuery2,
18205
+ sourceURI: StringQuery2,
18206
+ status: StringQuery2
18207
+ }).partial();
18208
+ var SkillFrameworkQueryValidator2 = z2.union([
18209
+ z2.object({ $or: BaseSkillFrameworkQueryValidator2.array() }),
18210
+ BaseSkillFrameworkQueryValidator2
18211
+ ]);
17597
18212
  var ContractCredentialValidator2 = z2.object({
17598
18213
  credentialUri: z2.string(),
17599
18214
  termsUri: z2.string(),
@@ -17648,8 +18263,9 @@ var require_types_cjs_development = __commonJS2({
17648
18263
  vcUris: z2.array(z2.string()).optional(),
17649
18264
  vpUris: z2.array(z2.string()).optional(),
17650
18265
  transaction: ConsentFlowTransactionValidator2.optional(),
17651
- inbox: LCNNotificationInboxValidator2.optional()
17652
- });
18266
+ inbox: LCNNotificationInboxValidator2.optional(),
18267
+ metadata: z2.record(z2.unknown()).optional()
18268
+ }).passthrough();
17653
18269
  var LCNNotificationValidator2 = z2.object({
17654
18270
  type: LCNNotificationTypeEnumValidator2,
17655
18271
  to: LCNProfileValidator2.partial().and(z2.object({ did: z2.string() })),
@@ -17772,31 +18388,55 @@ var require_types_cjs_development = __commonJS2({
17772
18388
  });
17773
18389
  var IssueInboxCredentialValidator2 = z2.object({
17774
18390
  recipient: ContactMethodQueryValidator2.describe("The recipient of the credential"),
17775
- 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."),
18391
+ credential: VCValidator2.passthrough().or(VPValidator2.passthrough()).or(UnsignedVCValidator2.passthrough()).describe(
18392
+ "The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
18393
+ ),
17776
18394
  configuration: z2.object({
17777
- 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."),
18395
+ signingAuthority: IssueInboxSigningAuthorityValidator2.optional().describe(
18396
+ "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."
18397
+ ),
17778
18398
  webhookUrl: z2.string().url().optional().describe("The webhook URL to receive credential issuance events."),
17779
18399
  expiresInDays: z2.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
17780
18400
  delivery: z2.object({
17781
- 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."),
18401
+ suppress: z2.boolean().optional().default(false).describe(
18402
+ "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."
18403
+ ),
17782
18404
  template: z2.object({
17783
- 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."),
18405
+ id: z2.enum(["universal-inbox-claim"]).optional().describe(
18406
+ "The template ID to use for the credential delivery. If not provided, the default template will be used."
18407
+ ),
17784
18408
  model: z2.object({
17785
18409
  issuer: z2.object({
17786
- name: z2.string().optional().describe('The name of the organization (e.g., "State University").'),
18410
+ name: z2.string().optional().describe(
18411
+ 'The name of the organization (e.g., "State University").'
18412
+ ),
17787
18413
  logoUrl: z2.string().url().optional().describe("The URL of the organization's logo.")
17788
18414
  }).optional(),
17789
18415
  credential: z2.object({
17790
- name: z2.string().optional().describe('The name of the credential (e.g., "Bachelor of Science").'),
17791
- type: z2.string().optional().describe('The type of the credential (e.g., "degree", "certificate").')
18416
+ name: z2.string().optional().describe(
18417
+ 'The name of the credential (e.g., "Bachelor of Science").'
18418
+ ),
18419
+ type: z2.string().optional().describe(
18420
+ 'The type of the credential (e.g., "degree", "certificate").'
18421
+ )
17792
18422
  }).optional(),
17793
18423
  recipient: z2.object({
17794
- name: z2.string().optional().describe('The name of the recipient (e.g., "John Doe").')
18424
+ name: z2.string().optional().describe(
18425
+ 'The name of the recipient (e.g., "John Doe").'
18426
+ )
17795
18427
  }).optional()
17796
- }).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.")
17797
- }).optional().describe("The template to use for the credential delivery. If not provided, the default template will be used.")
17798
- }).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.")
17799
- }).optional().describe("Configuration for the credential issuance. If not provided, the default configuration will be used.")
18428
+ }).describe(
18429
+ "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."
18430
+ )
18431
+ }).optional().describe(
18432
+ "The template to use for the credential delivery. If not provided, the default template will be used."
18433
+ )
18434
+ }).optional().describe(
18435
+ "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."
18436
+ )
18437
+ }).optional().describe(
18438
+ "Configuration for the credential issuance. If not provided, the default configuration will be used."
18439
+ )
17800
18440
  });
17801
18441
  var IssueInboxCredentialResponseValidator2 = z2.object({
17802
18442
  issuanceId: z2.string(),
@@ -17858,6 +18498,191 @@ var require_types_cjs_development = __commonJS2({
17858
18498
  expiresAt: z2.string(),
17859
18499
  used: z2.boolean()
17860
18500
  });
18501
+ var TagValidator2 = z2.object({
18502
+ id: z2.string(),
18503
+ name: z2.string().min(1),
18504
+ slug: z2.string().min(1),
18505
+ createdAt: z2.string().optional(),
18506
+ updatedAt: z2.string().optional()
18507
+ });
18508
+ var SkillStatusEnum2 = z2.enum(["active", "archived"]);
18509
+ var SkillValidator2 = z2.object({
18510
+ id: z2.string(),
18511
+ statement: z2.string(),
18512
+ description: z2.string().optional(),
18513
+ code: z2.string().optional(),
18514
+ icon: z2.string().optional(),
18515
+ type: z2.string().default("skill"),
18516
+ status: SkillStatusEnum2.default("active"),
18517
+ frameworkId: z2.string().optional(),
18518
+ createdAt: z2.string().optional(),
18519
+ updatedAt: z2.string().optional()
18520
+ });
18521
+ var BaseSkillQueryValidator2 = z2.object({
18522
+ id: StringQuery2,
18523
+ statement: StringQuery2,
18524
+ description: StringQuery2,
18525
+ code: StringQuery2,
18526
+ type: StringQuery2,
18527
+ status: SkillStatusEnum2.or(z2.object({ $in: SkillStatusEnum2.array() }))
18528
+ }).partial();
18529
+ var SkillQueryValidator2 = z2.union([
18530
+ z2.object({
18531
+ $or: BaseSkillQueryValidator2.array()
18532
+ }),
18533
+ BaseSkillQueryValidator2
18534
+ ]);
18535
+ var SkillFrameworkStatusEnum2 = z2.enum(["active", "archived"]);
18536
+ var SkillFrameworkValidator2 = z2.object({
18537
+ id: z2.string(),
18538
+ name: z2.string(),
18539
+ description: z2.string().optional(),
18540
+ image: z2.string().optional(),
18541
+ sourceURI: z2.string().url().optional(),
18542
+ status: SkillFrameworkStatusEnum2.default("active"),
18543
+ createdAt: z2.string().optional(),
18544
+ updatedAt: z2.string().optional()
18545
+ });
18546
+ var PaginatedSkillFrameworksValidator2 = PaginationResponseValidator2.extend({
18547
+ records: SkillFrameworkValidator2.array()
18548
+ });
18549
+ var SkillTreeNodeValidator2 = SkillValidator2.extend({
18550
+ children: z2.array(z2.lazy(() => SkillTreeNodeValidator2)),
18551
+ hasChildren: z2.boolean(),
18552
+ childrenCursor: z2.string().nullable().optional()
18553
+ }).openapi({ ref: "SkillTreeNode" });
18554
+ var PaginatedSkillTreeValidator2 = z2.object({
18555
+ hasMore: z2.boolean(),
18556
+ cursor: z2.string().nullable(),
18557
+ records: z2.array(SkillTreeNodeValidator2)
18558
+ });
18559
+ var SkillTreeNodeInputValidator2 = z2.lazy(
18560
+ () => z2.object({
18561
+ id: z2.string().optional(),
18562
+ statement: z2.string(),
18563
+ description: z2.string().optional(),
18564
+ code: z2.string().optional(),
18565
+ icon: z2.string().optional(),
18566
+ type: z2.string().optional(),
18567
+ status: SkillStatusEnum2.optional(),
18568
+ children: z2.array(SkillTreeNodeInputValidator2).optional()
18569
+ })
18570
+ ).openapi({ ref: "SkillTreeNodeInput" });
18571
+ var LinkProviderFrameworkInputValidator2 = z2.object({
18572
+ frameworkId: z2.string()
18573
+ });
18574
+ var CreateManagedFrameworkInputValidator2 = z2.object({
18575
+ id: z2.string().optional(),
18576
+ name: z2.string().min(1),
18577
+ description: z2.string().optional(),
18578
+ image: z2.string().optional(),
18579
+ sourceURI: z2.string().url().optional(),
18580
+ status: SkillFrameworkStatusEnum2.optional(),
18581
+ skills: z2.array(SkillTreeNodeInputValidator2).optional(),
18582
+ boostUris: z2.array(z2.string()).optional()
18583
+ });
18584
+ var UpdateFrameworkInputValidator2 = z2.object({
18585
+ id: z2.string(),
18586
+ name: z2.string().min(1).optional(),
18587
+ description: z2.string().optional(),
18588
+ image: z2.string().optional(),
18589
+ sourceURI: z2.string().url().optional(),
18590
+ status: SkillFrameworkStatusEnum2.optional()
18591
+ }).refine(
18592
+ (data) => data.name !== void 0 || data.description !== void 0 || data.image !== void 0 || data.sourceURI !== void 0 || data.status !== void 0,
18593
+ {
18594
+ message: "At least one field must be provided to update",
18595
+ path: ["name"]
18596
+ }
18597
+ );
18598
+ var DeleteFrameworkInputValidator2 = z2.object({ id: z2.string() });
18599
+ var CreateManagedFrameworkBatchInputValidator2 = z2.object({
18600
+ frameworks: z2.array(
18601
+ CreateManagedFrameworkInputValidator2.extend({
18602
+ skills: z2.array(SkillTreeNodeInputValidator2).optional()
18603
+ })
18604
+ ).min(1)
18605
+ });
18606
+ var SkillFrameworkAdminInputValidator2 = z2.object({
18607
+ frameworkId: z2.string(),
18608
+ profileId: z2.string()
18609
+ });
18610
+ var SkillFrameworkIdInputValidator2 = z2.object({ frameworkId: z2.string() });
18611
+ var SkillFrameworkAdminsValidator2 = LCNProfileValidator2.array();
18612
+ var SyncFrameworkInputValidator2 = z2.object({ id: z2.string() });
18613
+ var AddTagInputValidator2 = z2.object({
18614
+ slug: z2.string().min(1),
18615
+ name: z2.string().min(1)
18616
+ });
18617
+ var CreateSkillInputValidator2 = z2.object({
18618
+ frameworkId: z2.string(),
18619
+ skill: SkillTreeNodeInputValidator2,
18620
+ parentId: z2.string().nullable().optional()
18621
+ });
18622
+ var UpdateSkillInputValidator2 = z2.object({
18623
+ frameworkId: z2.string(),
18624
+ id: z2.string(),
18625
+ statement: z2.string().optional(),
18626
+ description: z2.string().optional(),
18627
+ code: z2.string().optional(),
18628
+ icon: z2.string().optional(),
18629
+ type: z2.string().optional(),
18630
+ status: SkillStatusEnum2.optional()
18631
+ }).refine(
18632
+ (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,
18633
+ {
18634
+ message: "At least one field must be provided to update a skill",
18635
+ path: ["statement"]
18636
+ }
18637
+ );
18638
+ var SkillDeletionStrategyValidator2 = z2.enum(["recursive", "reparent"]);
18639
+ var DeleteSkillInputValidator2 = z2.object({
18640
+ frameworkId: z2.string(),
18641
+ id: z2.string(),
18642
+ strategy: SkillDeletionStrategyValidator2.optional().default("reparent")
18643
+ });
18644
+ var CreateSkillsBatchInputValidator2 = z2.object({
18645
+ frameworkId: z2.string(),
18646
+ skills: z2.array(SkillTreeNodeInputValidator2).min(1),
18647
+ parentId: z2.string().nullable().optional()
18648
+ });
18649
+ var ReplaceSkillFrameworkSkillsInputValidator2 = z2.object({
18650
+ frameworkId: z2.string(),
18651
+ skills: z2.array(SkillTreeNodeInputValidator2).min(0)
18652
+ });
18653
+ var ReplaceSkillFrameworkSkillsResultValidator2 = z2.object({
18654
+ created: z2.number().int().min(0),
18655
+ updated: z2.number().int().min(0),
18656
+ deleted: z2.number().int().min(0),
18657
+ unchanged: z2.number().int().min(0),
18658
+ total: z2.number().int().min(0)
18659
+ });
18660
+ var CountSkillsInputValidator2 = z2.object({
18661
+ frameworkId: z2.string(),
18662
+ skillId: z2.string().optional(),
18663
+ recursive: z2.boolean().optional().default(false),
18664
+ onlyCountCompetencies: z2.boolean().optional().default(false)
18665
+ });
18666
+ var CountSkillsResultValidator2 = z2.object({
18667
+ count: z2.number().int().min(0)
18668
+ });
18669
+ var GetFullSkillTreeInputValidator2 = z2.object({
18670
+ frameworkId: z2.string()
18671
+ });
18672
+ var GetFullSkillTreeResultValidator2 = z2.object({
18673
+ skills: z2.array(SkillTreeNodeValidator2)
18674
+ });
18675
+ var GetSkillPathInputValidator2 = z2.object({
18676
+ frameworkId: z2.string(),
18677
+ skillId: z2.string()
18678
+ });
18679
+ var GetSkillPathResultValidator2 = z2.object({
18680
+ path: z2.array(SkillValidator2)
18681
+ });
18682
+ var FrameworkWithSkillsValidator2 = z2.object({
18683
+ framework: SkillFrameworkValidator2,
18684
+ skills: PaginatedSkillTreeValidator2
18685
+ });
17861
18686
  }
17862
18687
  });
17863
18688
  var require_dist2 = __commonJS2({
@@ -18175,10 +19000,24 @@ async function getLearnCardNetworkPlugin(learnCard, url, apiToken) {
18175
19000
  await ensureUser();
18176
19001
  return client.profile.blocked.query();
18177
19002
  },
18178
- sendCredential: async (_learnCard, profileId, vc, encrypt = true) => {
19003
+ sendCredential: async (_learnCard, profileId, vc, metadataOrEncrypt, encrypt) => {
18179
19004
  await ensureUser();
18180
- if (!encrypt) {
18181
- return client.credential.sendCredential.mutate({ profileId, credential: vc });
19005
+ let metadata;
19006
+ let shouldEncrypt = true;
19007
+ if (typeof metadataOrEncrypt === "boolean") {
19008
+ shouldEncrypt = metadataOrEncrypt;
19009
+ } else if (metadataOrEncrypt !== void 0) {
19010
+ metadata = metadataOrEncrypt;
19011
+ shouldEncrypt = encrypt ?? true;
19012
+ } else {
19013
+ shouldEncrypt = encrypt ?? true;
19014
+ }
19015
+ if (!shouldEncrypt) {
19016
+ return client.credential.sendCredential.mutate({
19017
+ profileId,
19018
+ credential: vc,
19019
+ metadata
19020
+ });
18182
19021
  }
18183
19022
  const target = await _learnCard.invoke.getProfile(profileId);
18184
19023
  if (!target)
@@ -18187,7 +19026,11 @@ async function getLearnCardNetworkPlugin(learnCard, url, apiToken) {
18187
19026
  _learnCard.id.did(),
18188
19027
  target.did
18189
19028
  ]);
18190
- return client.credential.sendCredential.mutate({ profileId, credential });
19029
+ return client.credential.sendCredential.mutate({
19030
+ profileId,
19031
+ credential,
19032
+ metadata
19033
+ });
18191
19034
  },
18192
19035
  acceptCredential: async (_learnCard, uri, options) => {
18193
19036
  await ensureUser();
@@ -18248,19 +19091,40 @@ async function getLearnCardNetworkPlugin(learnCard, url, apiToken) {
18248
19091
  },
18249
19092
  createBoost: async (_learnCard, credential, metadata) => {
18250
19093
  await ensureUser();
18251
- return client.boost.createBoost.mutate({ credential, ...metadata });
19094
+ const { skills, ...rest } = metadata ?? {};
19095
+ const payload = { credential, ...rest };
19096
+ if (Array.isArray(skills) && skills.length > 0)
19097
+ payload.skills = skills;
19098
+ return client.boost.createBoost.mutate(payload);
18252
19099
  },
18253
19100
  createChildBoost: async (_learnCard, parentUri, credential, metadata) => {
18254
19101
  await ensureUser();
18255
- return client.boost.createChildBoost.mutate({
18256
- parentUri,
18257
- boost: { credential, ...metadata }
18258
- });
19102
+ const { skills, ...restMetadata } = metadata || {};
19103
+ const payload = { parentUri, boost: { credential, ...restMetadata } };
19104
+ if (Array.isArray(skills) && skills.length > 0)
19105
+ payload.skills = skills;
19106
+ return client.boost.createChildBoost.mutate(payload);
18259
19107
  },
18260
19108
  getBoost: async (_learnCard, uri) => {
18261
19109
  await ensureUser();
18262
19110
  return client.boost.getBoost.query({ uri });
18263
19111
  },
19112
+ getBoostFrameworks: async (_learnCard, uri, options = {}) => {
19113
+ if (!userData)
19114
+ throw new Error("Please make an account first!");
19115
+ const { limit, cursor, query } = options ?? {};
19116
+ return client.boost.getBoostFrameworks.query({ uri, limit, cursor, query });
19117
+ },
19118
+ getSkillsAvailableForBoost: async (_learnCard, uri) => {
19119
+ if (!userData)
19120
+ throw new Error("Please make an account first!");
19121
+ return client.boost.getSkillsAvailableForBoost.query({ uri });
19122
+ },
19123
+ searchSkillsAvailableForBoost: async (_learnCard, uri, query, options = {}) => {
19124
+ if (!userData)
19125
+ throw new Error("Please make an account first!");
19126
+ return client.boost.searchSkillsAvailableForBoost.query({ uri, query, ...options });
19127
+ },
18264
19128
  getBoosts: async (_learnCard, query) => {
18265
19129
  console.warn(
18266
19130
  "The getBoosts method is deprecated! Please use getPaginatedBoosts instead!"
@@ -18393,6 +19257,21 @@ async function getLearnCardNetworkPlugin(learnCard, url, apiToken) {
18393
19257
  updates: { ...credential && { credential }, ...updates }
18394
19258
  });
18395
19259
  },
19260
+ attachFrameworkToBoost: async (_learnCard, boostUri, frameworkId) => {
19261
+ if (!userData)
19262
+ throw new Error("Please make an account first!");
19263
+ return client.boost.attachFrameworkToBoost.mutate({ boostUri, frameworkId });
19264
+ },
19265
+ detachFrameworkFromBoost: async (_learnCard, boostUri, frameworkId) => {
19266
+ if (!userData)
19267
+ throw new Error("Please make an account first!");
19268
+ return client.boost.detachFrameworkFromBoost.mutate({ boostUri, frameworkId });
19269
+ },
19270
+ alignBoostSkills: async (_learnCard, boostUri, skills) => {
19271
+ if (!userData)
19272
+ throw new Error("Please make an account first!");
19273
+ return client.boost.alignBoostSkills.mutate({ boostUri, skills });
19274
+ },
18396
19275
  getBoostAdmins: async (_learnCard, uri, options = {}) => {
18397
19276
  await ensureUser();
18398
19277
  return client.boost.getBoostAdmins.query({ uri, ...options });
@@ -18759,6 +19638,163 @@ async function getLearnCardNetworkPlugin(learnCard, url, apiToken) {
18759
19638
  await ensureUser();
18760
19639
  return client.contactMethods.removeContactMethod.mutate({ id });
18761
19640
  },
19641
+ syncFrameworkSkills: async (_learnCard, input) => {
19642
+ if (!userData)
19643
+ throw new Error("Please make an account first!");
19644
+ return client.skills.syncFrameworkSkills.mutate(input);
19645
+ },
19646
+ listSkillTags: async (_learnCard, frameworkId, skillId) => {
19647
+ if (!userData)
19648
+ throw new Error("Please make an account first!");
19649
+ return client.skills.listSkillTags.query({ frameworkId, id: skillId });
19650
+ },
19651
+ addSkillTag: async (_learnCard, frameworkId, skillId, tag) => {
19652
+ if (!userData)
19653
+ throw new Error("Please make an account first!");
19654
+ return client.skills.addSkillTag.mutate({ frameworkId, id: skillId, tag });
19655
+ },
19656
+ removeSkillTag: async (_learnCard, frameworkId, skillId, slug) => {
19657
+ if (!userData)
19658
+ throw new Error("Please make an account first!");
19659
+ return client.skills.removeSkillTag.mutate({ frameworkId, id: skillId, slug });
19660
+ },
19661
+ createManagedSkillFramework: async (_learnCard, input) => {
19662
+ if (!userData)
19663
+ throw new Error("Please make an account first!");
19664
+ return client.skillFrameworks.createManaged.mutate(input);
19665
+ },
19666
+ createManagedSkillFrameworks: async (_learnCard, input) => {
19667
+ if (!userData)
19668
+ throw new Error("Please make an account first!");
19669
+ return client.skillFrameworks.createManagedBatch.mutate(input);
19670
+ },
19671
+ createSkillFramework: async (_learnCard, input) => {
19672
+ if (!userData)
19673
+ throw new Error("Please make an account first!");
19674
+ return client.skillFrameworks.create.mutate(input);
19675
+ },
19676
+ listMySkillFrameworks: async (_learnCard) => {
19677
+ if (!userData)
19678
+ throw new Error("Please make an account first!");
19679
+ return client.skillFrameworks.listMine.query();
19680
+ },
19681
+ getSkillFrameworkById: async (_learnCard, id, options = {}) => {
19682
+ if (!userData)
19683
+ throw new Error("Please make an account first!");
19684
+ return client.skillFrameworks.getById.query({ id, ...options });
19685
+ },
19686
+ getBoostsThatUseFramework: async (_learnCard, frameworkId, options = {}) => {
19687
+ if (!userData)
19688
+ throw new Error("Please make an account first!");
19689
+ return client.skillFrameworks.getBoostsThatUseFramework.query({
19690
+ id: frameworkId,
19691
+ ...options
19692
+ });
19693
+ },
19694
+ countBoostsThatUseFramework: async (_learnCard, frameworkId, options = {}) => {
19695
+ if (!userData)
19696
+ throw new Error("Please make an account first!");
19697
+ return client.skillFrameworks.countBoostsThatUseFramework.query({
19698
+ id: frameworkId,
19699
+ ...options
19700
+ });
19701
+ },
19702
+ getFrameworkSkillTree: async (_learnCard, frameworkId, options = {}) => {
19703
+ if (!userData)
19704
+ throw new Error("Please make an account first!");
19705
+ return client.skills.getFrameworkSkillTree.query({ id: frameworkId, ...options });
19706
+ },
19707
+ getSkillChildren: async (_learnCard, frameworkId, skillId, options = {}) => {
19708
+ if (!userData)
19709
+ throw new Error("Please make an account first!");
19710
+ return client.skills.getSkillChildrenTree.query({
19711
+ frameworkId,
19712
+ id: skillId,
19713
+ ...options
19714
+ });
19715
+ },
19716
+ searchFrameworkSkills: async (_learnCard, frameworkId, query, options = {}) => {
19717
+ if (!userData)
19718
+ throw new Error("Please make an account first!");
19719
+ return client.skills.searchFrameworkSkills.query({
19720
+ id: frameworkId,
19721
+ query,
19722
+ ...options
19723
+ });
19724
+ },
19725
+ updateSkillFramework: async (_learnCard, input) => {
19726
+ if (!userData)
19727
+ throw new Error("Please make an account first!");
19728
+ return client.skillFrameworks.update.mutate(input);
19729
+ },
19730
+ deleteSkillFramework: async (_learnCard, id) => {
19731
+ if (!userData)
19732
+ throw new Error("Please make an account first!");
19733
+ return client.skillFrameworks.delete.mutate({ id });
19734
+ },
19735
+ replaceSkillFrameworkSkills: async (_learnCard, input) => {
19736
+ if (!userData)
19737
+ throw new Error("Please make an account first!");
19738
+ return client.skillFrameworks.replaceSkills.mutate(input);
19739
+ },
19740
+ countSkills: async (_learnCard, input) => {
19741
+ if (!userData)
19742
+ throw new Error("Please make an account first!");
19743
+ return client.skills.countSkills.query(input);
19744
+ },
19745
+ getFullSkillTree: async (_learnCard, input) => {
19746
+ if (!userData)
19747
+ throw new Error("Please make an account first!");
19748
+ return client.skills.getFullSkillTree.query(input);
19749
+ },
19750
+ getSkillPath: async (_learnCard, input) => {
19751
+ if (!userData)
19752
+ throw new Error("Please make an account first!");
19753
+ return client.skills.getSkillPath.query(input);
19754
+ },
19755
+ getSkillFrameworkAdmins: async (_learnCard, frameworkId) => {
19756
+ if (!userData)
19757
+ throw new Error("Please make an account first!");
19758
+ return client.skillFrameworks.listFrameworkAdmins.query({ frameworkId });
19759
+ },
19760
+ addSkillFrameworkAdmin: async (_learnCard, frameworkId, profileId) => {
19761
+ if (!userData)
19762
+ throw new Error("Please make an account first!");
19763
+ return client.skillFrameworks.addFrameworkAdmin.mutate({ frameworkId, profileId });
19764
+ },
19765
+ removeSkillFrameworkAdmin: async (_learnCard, frameworkId, profileId) => {
19766
+ if (!userData)
19767
+ throw new Error("Please make an account first!");
19768
+ return client.skillFrameworks.removeFrameworkAdmin.mutate({
19769
+ frameworkId,
19770
+ profileId
19771
+ });
19772
+ },
19773
+ getSkill: async (_learnCard, frameworkId, skillId) => {
19774
+ if (!userData)
19775
+ throw new Error("Please make an account first!");
19776
+ return client.skills.getSkill.query({ frameworkId, id: skillId });
19777
+ },
19778
+ createSkill: async (_learnCard, input) => {
19779
+ if (!userData)
19780
+ throw new Error("Please make an account first!");
19781
+ return client.skills.create.mutate(input);
19782
+ },
19783
+ createSkills: async (_learnCard, input) => {
19784
+ if (!userData)
19785
+ throw new Error("Please make an account first!");
19786
+ return client.skills.createMany.mutate(input);
19787
+ },
19788
+ updateSkill: async (_learnCard, input) => {
19789
+ if (!userData)
19790
+ throw new Error("Please make an account first!");
19791
+ return client.skills.update.mutate(input);
19792
+ },
19793
+ deleteSkill: async (_learnCard, input) => {
19794
+ if (!userData)
19795
+ throw new Error("Please make an account first!");
19796
+ return client.skills.delete.mutate(input);
19797
+ },
18762
19798
  addIntegration: async (_learnCard, integration) => {
18763
19799
  await ensureUser();
18764
19800
  return client.integrations.addIntegration.mutate(integration);