@learncard/types 5.22.0 → 5.23.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.
package/dist/types.esm.js CHANGED
@@ -146,7 +146,18 @@ var ProofValidator = z.object({
146
146
  verificationMethod: z.string(),
147
147
  jws: z.string().optional()
148
148
  }).catchall(z.any()).superRefine((proof, ctx) => {
149
- if (proof.created === void 0 && (proof.type !== "DataIntegrityProof" || proof.cryptosuite !== "ecdsa-rdfc-2019")) {
149
+ if (proof.created === void 0 && // These standardized Data Integrity suites make created optional.
150
+ // Keep the prior requirement for legacy and unknown proof suites.
151
+ // https://www.w3.org/TR/vc-di-eddsa/#proof-configuration-eddsa-jcs-2022
152
+ // https://www.w3.org/TR/vc-di-bbs/#proof-configuration
153
+ (proof.type !== "DataIntegrityProof" || ![
154
+ "ecdsa-rdfc-2019",
155
+ "ecdsa-jcs-2019",
156
+ "ecdsa-sd-2023",
157
+ "eddsa-rdfc-2022",
158
+ "eddsa-jcs-2022",
159
+ "bbs-2023"
160
+ ].includes(proof.cryptosuite))) {
150
161
  ctx.addIssue({
151
162
  code: "custom",
152
163
  path: ["created"],
@@ -440,7 +451,8 @@ var AssociationTypeValidator = z5.enum([
440
451
  "replacedBy"
441
452
  ]).or(z5.string());
442
453
  var AssociationValidator = z5.object({
443
- type: z5.string().array().nonempty(),
454
+ // Accept compacted scalars while retaining the existing permissive array contract.
455
+ type: z5.string().min(1).or(z5.string().array().nonempty()),
444
456
  associationType: AssociationTypeValidator,
445
457
  sourceId: z5.string().optional(),
446
458
  targetId: z5.string()
@@ -1288,11 +1300,48 @@ var ConsentFlowContractDetailsValidator = z12.object({
1288
1300
  updatedAt: z12.string(),
1289
1301
  expiresAt: z12.string().optional(),
1290
1302
  autoBoosts: z12.string().array().optional(),
1291
- writers: z12.array(LCNProfileValidator).optional()
1303
+ writers: z12.array(LCNProfileValidator).optional(),
1304
+ recipients: z12.array(LCNPublicProfileValidator.extend({ did: z12.string() })).optional(),
1305
+ audienceVersion: z12.number().int().nonnegative().optional()
1292
1306
  });
1293
- var ConsentFlowContractRequestStatusValidator = z12.enum(["pending", "accepted", "denied"]).nullable();
1307
+ var ConsentFlowContractRequestStatusValidator = z12.enum(["pending", "accepted", "denied", "cancelled"]).nullable();
1294
1308
  var ConsentFlowContractRequestReadStatusValidator = z12.enum(["unseen", "seen"]).nullable();
1295
- var ConsentFlowContractRequestForProfileValidator = z12.object({
1309
+ var ConsentFlowReferralValidator = z12.object({
1310
+ requestId: z12.string(),
1311
+ requestedBy: z12.string(),
1312
+ externalReferenceId: z12.string().max(256).optional()
1313
+ });
1314
+ var ContractRequestFieldsValidator = ConsentFlowReferralValidator.partial().extend({
1315
+ requestedAt: z12.string().optional(),
1316
+ message: z12.string().max(500).optional()
1317
+ });
1318
+ var SendContractRequestValidator = z12.object({
1319
+ contractUri: z12.string(),
1320
+ targetProfileId: z12.string(),
1321
+ externalReferenceId: z12.string().trim().min(1).max(256).optional(),
1322
+ message: z12.string().trim().max(500).optional()
1323
+ });
1324
+ var ConsentFlowWebhookMetadataValidator = z12.object({
1325
+ eventId: z12.string(),
1326
+ deliveryKey: z12.string(),
1327
+ event: z12.enum([
1328
+ "request_sent",
1329
+ "request_accepted",
1330
+ "request_denied",
1331
+ "request_cancelled",
1332
+ "consent_created",
1333
+ "consent_updated",
1334
+ "consent_withdrawn",
1335
+ "credentials_synced"
1336
+ ]),
1337
+ contractUri: z12.string(),
1338
+ termsUri: z12.string().optional(),
1339
+ requestId: z12.string().optional(),
1340
+ requestedBy: z12.string().optional(),
1341
+ externalReferenceId: z12.string().optional(),
1342
+ recipientRole: z12.enum(["owner", "recipient", "requester", "target"])
1343
+ });
1344
+ var ConsentFlowContractRequestForProfileValidator = ContractRequestFieldsValidator.extend({
1296
1345
  profile: LCNProfileValidator,
1297
1346
  status: ConsentFlowContractRequestStatusValidator,
1298
1347
  readStatus: ConsentFlowContractRequestReadStatusValidator.optional()
@@ -1338,6 +1387,7 @@ var PaginatedConsentFlowTermsValidator = PaginationResponseValidator.extend({
1338
1387
  expiresAt: z12.string().optional(),
1339
1388
  oneTime: z12.boolean().optional(),
1340
1389
  terms: ConsentFlowTermsValidator,
1390
+ referral: ConsentFlowReferralValidator.optional(),
1341
1391
  contract: ConsentFlowContractDetailsValidator,
1342
1392
  uri: z12.string(),
1343
1393
  consenter: LCNProfileValidator,
@@ -1433,6 +1483,7 @@ var ConsentFlowTransactionValidator = z12.object({
1433
1483
  oneTime: z12.boolean().optional(),
1434
1484
  terms: ConsentFlowTermsValidator.optional(),
1435
1485
  guardianApproval: ConsentFlowGuardianApprovalValidator.optional(),
1486
+ referral: ConsentFlowReferralValidator.optional(),
1436
1487
  id: z12.string(),
1437
1488
  action: ConsentFlowTransactionActionValidator,
1438
1489
  date: z12.string(),
@@ -1443,6 +1494,7 @@ var HolderExportConsentRecordValidator = z12.object({
1443
1494
  status: ConsentFlowTermsStatusValidator,
1444
1495
  contract: ConsentFlowContractDetailsValidator,
1445
1496
  terms: ConsentFlowTermsValidator,
1497
+ referral: ConsentFlowReferralValidator.optional(),
1446
1498
  transactions: ConsentFlowTransactionValidator.array()
1447
1499
  });
1448
1500
  var HolderExportMetadataValidator = z12.object({
@@ -2179,7 +2231,7 @@ var AppStoreListingSubmitterValidator = z12.object({
2179
2231
  displayName: z12.string(),
2180
2232
  email: z12.string().optional()
2181
2233
  });
2182
- var AppStoreListingValidator = z12.object({
2234
+ var AppStoreListingFieldsValidator = z12.object({
2183
2235
  listing_id: z12.string(),
2184
2236
  slug: z12.string().optional(),
2185
2237
  display_name: z12.string(),
@@ -2205,15 +2257,33 @@ var AppStoreListingValidator = z12.object({
2205
2257
  submitter: AppStoreListingSubmitterValidator.optional(),
2206
2258
  contact_email: z12.string().email().optional()
2207
2259
  });
2260
+ var PendingListingUpdateStatusValidator = z12.enum(["DRAFT", "PENDING_REVIEW"]);
2261
+ var PendingListingUpdateValidator = z12.object({
2262
+ status: PendingListingUpdateStatusValidator,
2263
+ submitted_at: z12.string().optional(),
2264
+ changes: AppStoreListingFieldsValidator.omit({
2265
+ listing_id: true,
2266
+ app_listing_status: true,
2267
+ promotion_level: true,
2268
+ submitted_at: true,
2269
+ submitter: true
2270
+ }).partial(),
2271
+ manifest_version: z12.number().int().min(1).optional()
2272
+ });
2273
+ var AppStoreListingValidator = AppStoreListingFieldsValidator.extend({
2274
+ pending_update: PendingListingUpdateValidator.optional()
2275
+ });
2208
2276
  var AppStoreListingCreateValidator = AppStoreListingValidator.omit({
2209
2277
  listing_id: true,
2210
2278
  app_listing_status: true,
2211
- promotion_level: true
2279
+ promotion_level: true,
2280
+ pending_update: true
2212
2281
  });
2213
2282
  var AppStoreListingUpdateValidator = AppStoreListingValidator.partial().omit({
2214
2283
  listing_id: true,
2215
2284
  app_listing_status: true,
2216
- promotion_level: true
2285
+ promotion_level: true,
2286
+ pending_update: true
2217
2287
  });
2218
2288
  var InstalledAppValidator = AppStoreListingValidator.extend({
2219
2289
  installed_at: z12.string()
@@ -2228,12 +2298,87 @@ var AppBoostValidator = z12.object({
2228
2298
  templateAlias: z12.string().min(1).max(50).regex(/^[a-z0-9-]+$/),
2229
2299
  boostUri: z12.string()
2230
2300
  });
2231
- var SendCredentialEventValidator = z12.object({
2301
+ var InlineWalletCategoryValidator = z12.enum([
2302
+ "Achievement",
2303
+ "Skill",
2304
+ "ID",
2305
+ "Learning History",
2306
+ "Work History",
2307
+ "Social Badges",
2308
+ "Membership",
2309
+ "Accomplishment",
2310
+ "Experiences",
2311
+ "Accommodation",
2312
+ "Family"
2313
+ ]);
2314
+ var InlineAlignmentValidator = z12.object({
2315
+ name: z12.string(),
2316
+ url: z12.string(),
2317
+ framework: z12.string().optional(),
2318
+ code: z12.string().optional()
2319
+ }).passthrough();
2320
+ var InlineEvidenceValidator = z12.object({
2321
+ id: z12.string().optional(),
2322
+ name: z12.string().optional(),
2323
+ narrative: z12.string().optional()
2324
+ }).passthrough();
2325
+ var InlineWalletSkillTagValidator = z12.object({
2326
+ frameworkId: z12.string(),
2327
+ id: z12.string(),
2328
+ proficiencyLevel: z12.string().optional()
2329
+ }).passthrough();
2330
+ var SimpleInlineCredentialTemplateValidator = z12.object({
2331
+ rawCredential: z12.undefined().optional(),
2332
+ name: z12.string(),
2333
+ description: z12.string().optional(),
2334
+ image: z12.string().optional(),
2335
+ issuerName: z12.string().optional(),
2336
+ achievementType: z12.string().optional(),
2337
+ category: InlineWalletCategoryValidator.optional(),
2338
+ criteria: z12.object({
2339
+ narrative: z12.string().optional(),
2340
+ url: z12.string().optional()
2341
+ }).passthrough().optional(),
2342
+ alignments: z12.array(InlineAlignmentValidator).optional(),
2343
+ tags: z12.array(z12.string()).optional(),
2344
+ activity: z12.object({
2345
+ startDate: z12.string().optional(),
2346
+ endDate: z12.string().optional()
2347
+ }).passthrough().optional(),
2348
+ credits: z12.object({
2349
+ earned: z12.union([z12.number(), z12.string()]).optional(),
2350
+ available: z12.union([z12.number(), z12.string()]).optional()
2351
+ }).passthrough().optional(),
2352
+ validUntil: z12.string().optional(),
2353
+ evidence: z12.array(InlineEvidenceValidator).optional(),
2354
+ walletSkills: z12.array(InlineWalletSkillTagValidator).optional()
2355
+ }).passthrough();
2356
+ var RawInlineCredentialTemplateValidator = z12.object({
2357
+ rawCredential: z12.record(z12.string(), z12.unknown()),
2358
+ category: InlineWalletCategoryValidator.optional(),
2359
+ walletSkills: z12.array(InlineWalletSkillTagValidator).optional()
2360
+ }).passthrough();
2361
+ var InlineCredentialTemplateValidator = z12.union([
2362
+ RawInlineCredentialTemplateValidator,
2363
+ SimpleInlineCredentialTemplateValidator
2364
+ ]);
2365
+ var LegacySendCredentialEventValidator = z12.object({
2232
2366
  type: z12.literal("send-credential"),
2233
2367
  templateAlias: z12.string(),
2234
2368
  templateData: z12.record(z12.string(), z12.unknown()).optional(),
2235
2369
  preventDuplicateClaim: z12.boolean().optional()
2236
2370
  });
2371
+ var InlineSendCredentialEventValidator = z12.object({
2372
+ type: z12.literal("send-credential"),
2373
+ alias: z12.string(),
2374
+ template: InlineCredentialTemplateValidator,
2375
+ templateData: z12.record(z12.string(), z12.unknown()).optional(),
2376
+ preventDuplicateClaim: z12.boolean().optional()
2377
+ });
2378
+ var SendCredentialEventValidator = z12.union([
2379
+ LegacySendCredentialEventValidator,
2380
+ InlineSendCredentialEventValidator
2381
+ ]);
2237
2382
  var CheckCredentialEventValidator = z12.object({
2238
2383
  type: z12.literal("check-credential"),
2239
2384
  templateAlias: z12.string().optional(),
@@ -2328,7 +2473,119 @@ var GetCountersEventValidator = z12.object({
2328
2473
  type: z12.literal("get-counters"),
2329
2474
  keys: z12.array(counterKeyValidator).min(1).max(50).optional()
2330
2475
  });
2331
- var AppEventValidator = z12.discriminatedUnion("type", [
2476
+ var ConsentRequestWalletCategoryValidator = z12.enum([
2477
+ "Achievement",
2478
+ "Skill",
2479
+ "ID",
2480
+ "Learning History",
2481
+ "Work History",
2482
+ "Social Badges",
2483
+ "Membership",
2484
+ "Accomplishment",
2485
+ "Experiences",
2486
+ "Accommodation",
2487
+ "Family"
2488
+ ]);
2489
+ var ConsentRequestPersonalFieldValidator = z12.enum([
2490
+ "name",
2491
+ "email",
2492
+ "phone",
2493
+ "birthDate",
2494
+ "country",
2495
+ "avatar"
2496
+ ]);
2497
+ var ConsentRequestValidator = z12.object({
2498
+ read: z12.object({
2499
+ credentialCategories: z12.array(ConsentRequestWalletCategoryValidator).optional(),
2500
+ personalFields: z12.array(ConsentRequestPersonalFieldValidator).optional()
2501
+ }).optional(),
2502
+ write: z12.object({
2503
+ credentialCategories: z12.array(ConsentRequestWalletCategoryValidator).optional()
2504
+ }).optional(),
2505
+ reason: z12.string().optional()
2506
+ });
2507
+ var NormalizedConsentScopesValidator = z12.object({
2508
+ read: z12.object({
2509
+ credentialCategories: z12.array(ConsentRequestWalletCategoryValidator).default([]),
2510
+ personalFields: z12.array(ConsentRequestPersonalFieldValidator).default([])
2511
+ }),
2512
+ write: z12.object({
2513
+ credentialCategories: z12.array(ConsentRequestWalletCategoryValidator).default([])
2514
+ })
2515
+ });
2516
+ var CapturedTemplateRecordValidator = z12.object({
2517
+ alias: z12.string(),
2518
+ template: InlineCredentialTemplateValidator,
2519
+ version: z12.number().int().min(1),
2520
+ lastUsedAt: z12.string()
2521
+ }).passthrough();
2522
+ var CapturedConsentRecordValidator = z12.object({
2523
+ scopes: NormalizedConsentScopesValidator,
2524
+ reason: z12.string().optional(),
2525
+ lastUsedAt: z12.string()
2526
+ }).passthrough();
2527
+ var AppManifestValidator = z12.object({
2528
+ manifestVersion: z12.literal(1),
2529
+ appUrl: z12.string(),
2530
+ appKey: z12.string().max(200).optional(),
2531
+ suggestedName: z12.string().optional(),
2532
+ suggestedIconUrl: z12.string().optional(),
2533
+ permissions: z12.array(z12.string()).default([]),
2534
+ templates: z12.array(CapturedTemplateRecordValidator).default([]),
2535
+ consentRequests: z12.array(CapturedConsentRecordValidator).default([]),
2536
+ usedConsentContract: z12.boolean().optional(),
2537
+ featuresLaunched: z12.array(z12.string()).default([]),
2538
+ counterKeys: z12.array(z12.string()).default([]),
2539
+ usedLearnerContext: z12.boolean(),
2540
+ usedNotifications: z12.boolean(),
2541
+ firstCapturedAt: z12.string(),
2542
+ lastUpdatedAt: z12.string()
2543
+ }).passthrough();
2544
+ var AppManifestVersionStatusValidator = z12.enum(["draft", "active", "superseded"]);
2545
+ var AppManifestVersionValidator = z12.object({
2546
+ id: z12.string(),
2547
+ version: z12.number().int().min(1),
2548
+ manifestHash: z12.string(),
2549
+ manifest: AppManifestValidator,
2550
+ status: AppManifestVersionStatusValidator,
2551
+ createdAt: z12.string(),
2552
+ activatedAt: z12.string().optional()
2553
+ });
2554
+ var AppManifestStringDiffValidator = z12.object({
2555
+ added: z12.array(z12.string()),
2556
+ removed: z12.array(z12.string()),
2557
+ changed: z12.array(z12.string())
2558
+ });
2559
+ var AppManifestTemplateRefValidator = z12.object({
2560
+ alias: z12.string(),
2561
+ version: z12.number().int().min(1)
2562
+ });
2563
+ var AppManifestTemplateChangeValidator = z12.object({
2564
+ alias: z12.string(),
2565
+ fromVersion: z12.number().int().min(1),
2566
+ toVersion: z12.number().int().min(1)
2567
+ });
2568
+ var AppManifestDiffValidator = z12.object({
2569
+ permissions: AppManifestStringDiffValidator,
2570
+ templates: z12.object({
2571
+ added: z12.array(AppManifestTemplateRefValidator),
2572
+ removed: z12.array(AppManifestTemplateRefValidator),
2573
+ changed: z12.array(AppManifestTemplateChangeValidator)
2574
+ }),
2575
+ consentScopes: AppManifestStringDiffValidator,
2576
+ featurePaths: AppManifestStringDiffValidator,
2577
+ counterKeys: AppManifestStringDiffValidator,
2578
+ requiresReview: z12.boolean()
2579
+ });
2580
+ var UpsertConsentContractEventValidator = z12.object({
2581
+ type: z12.literal("upsert-consent-contract"),
2582
+ scopes: ConsentRequestValidator
2583
+ });
2584
+ var UpsertConsentContractResponseValidator = z12.object({
2585
+ contractUri: z12.string(),
2586
+ created: z12.boolean()
2587
+ });
2588
+ var AppEventValidator = z12.union([
2332
2589
  SendCredentialEventValidator,
2333
2590
  CheckCredentialEventValidator,
2334
2591
  CheckIssuanceStatusEventValidator,
@@ -2338,7 +2595,8 @@ var AppEventValidator = z12.discriminatedUnion("type", [
2338
2595
  SendNotificationEventValidator,
2339
2596
  IncrementCounterEventValidator,
2340
2597
  GetCounterEventValidator,
2341
- GetCountersEventValidator
2598
+ GetCountersEventValidator,
2599
+ UpsertConsentContractEventValidator
2342
2600
  ]);
2343
2601
  var AppEventInputValidator = z12.object({
2344
2602
  listingId: z12.string(),
@@ -2417,6 +2675,17 @@ var AuthSessionError = class extends Error {
2417
2675
  __name(this, "AuthSessionError");
2418
2676
  }
2419
2677
  };
2678
+ var UnsupportedSignInOperationError = class extends Error {
2679
+ constructor(operation, providerType) {
2680
+ super(`${operation} is not supported by ${providerType}`);
2681
+ this.operation = operation;
2682
+ this.providerType = providerType;
2683
+ this.name = "UnsupportedSignInOperationError";
2684
+ }
2685
+ static {
2686
+ __name(this, "UnsupportedSignInOperationError");
2687
+ }
2688
+ };
2420
2689
  var ESCROW_PIN_LOCKED_MESSAGE = "Too many incorrect PIN attempts. You can still recover by waiting.";
2421
2690
  var ESCROW_PIN_UNAVAILABLE_MESSAGE = "PIN recovery is not available for this account.";
2422
2691
  var ESCROW_PIN_MISMATCH_PATTERN = /^Incorrect PIN\. (\d+) attempts left\.$/;
@@ -2855,6 +3124,8 @@ var ShareLinkValidator = z16.object({
2855
3124
  version: safeVersion,
2856
3125
  contentVersion: safeVersion,
2857
3126
  status: ShareLinkStatusValidator,
3127
+ attachmentId: z16.string().uuid().nullable().optional(),
3128
+ attachmentChunkCount: z16.number().int().min(1).max(16).nullable().optional(),
2858
3129
  contentState: ShareContentStateValidator,
2859
3130
  createdAt: z16.iso.datetime(),
2860
3131
  updatedAt: z16.iso.datetime(),
@@ -2878,6 +3149,43 @@ var ShareLinkValidator = z16.object({
2878
3149
  contentUrl: z16.string().optional()
2879
3150
  });
2880
3151
  var clientRequestId = z16.string().uuid();
3152
+ var ShareLinkAttachmentValidator = z16.object({
3153
+ id: z16.string().uuid(),
3154
+ chunkCount: z16.number().int().min(1).max(16)
3155
+ }).strict();
3156
+ var attachmentChunkKey = {
3157
+ id: ShareLinkIdValidator,
3158
+ contentVersion: safeVersion,
3159
+ attachmentId: z16.string().uuid(),
3160
+ chunkIndex: z16.number().int().min(0).max(15)
3161
+ };
3162
+ var ShareLinkAttachmentChunkEnvelopeValidator = ShareEnvelopeValidator.refine(
3163
+ (value) => (decodedBase64UrlByteLength(value.ct) ?? Infinity) <= 256 * 1024 + SHARE_TAG_BYTES
3164
+ );
3165
+ var PutShareLinkAttachmentChunkInputValidator = z16.object({
3166
+ ...attachmentChunkKey,
3167
+ chunkCount: z16.number().int().min(1).max(16),
3168
+ envelope: ShareLinkAttachmentChunkEnvelopeValidator,
3169
+ ownerEncryptedRecovery: ShareOwnerRecoveryValidator
3170
+ }).strict().refine((value) => value.chunkIndex < value.chunkCount);
3171
+ var GetShareLinkAttachmentChunkInputValidator = z16.object({
3172
+ ...attachmentChunkKey,
3173
+ passcode: z16.string().min(4).max(64).optional(),
3174
+ accessToken: z16.string().min(1).max(2048).optional()
3175
+ }).strict();
3176
+ var ShareLinkAttachmentChunkOutputValidator = z16.object({
3177
+ ...attachmentChunkKey,
3178
+ envelope: ShareLinkAttachmentChunkEnvelopeValidator,
3179
+ accessToken: z16.string().min(1).max(2048).optional()
3180
+ }).strict();
3181
+ var DeleteShareLinkAttachmentChunksInputValidator = z16.object({
3182
+ id: ShareLinkIdValidator,
3183
+ contentVersion: safeVersion,
3184
+ attachmentId: z16.string().uuid(),
3185
+ chunkCount: z16.number().int().min(1).max(16)
3186
+ }).strict();
3187
+ var PutShareLinkAttachmentChunkOutputValidator = z16.object({ ok: z16.literal(true) }).strict();
3188
+ var DeleteShareLinkAttachmentChunksOutputValidator = z16.object({ ok: z16.boolean() }).strict();
2881
3189
  var CreateShareLinkInputValidator = z16.object({
2882
3190
  id: ShareLinkIdValidator,
2883
3191
  clientRequestId,
@@ -2889,7 +3197,8 @@ var CreateShareLinkInputValidator = z16.object({
2889
3197
  selectedCount: z16.number().int().min(1).max(MAX_SELECTED_CREDENTIALS),
2890
3198
  contentVersion: z16.literal(1),
2891
3199
  envelope: ShareEnvelopeValidator,
2892
- ownerEncryptedRecovery: ShareOwnerRecoveryValidator
3200
+ ownerEncryptedRecovery: ShareOwnerRecoveryValidator,
3201
+ attachment: ShareLinkAttachmentValidator.optional()
2893
3202
  }).strict();
2894
3203
  var UpdateShareLinkInputValidator = z16.object({
2895
3204
  id: ShareLinkIdValidator,
@@ -2904,7 +3213,8 @@ var UpdateShareLinkInputValidator = z16.object({
2904
3213
  contentVersion: safeVersion.optional(),
2905
3214
  selectedCount: z16.number().int().min(1).max(MAX_SELECTED_CREDENTIALS).optional(),
2906
3215
  envelope: ShareEnvelopeValidator.optional(),
2907
- ownerEncryptedRecovery: ShareOwnerRecoveryValidator.optional()
3216
+ ownerEncryptedRecovery: ShareOwnerRecoveryValidator.optional(),
3217
+ attachment: ShareLinkAttachmentValidator.optional()
2908
3218
  }).strict().superRefine((value, ctx) => {
2909
3219
  const provided = [
2910
3220
  value.contentVersion,
@@ -2918,6 +3228,9 @@ var UpdateShareLinkInputValidator = z16.object({
2918
3228
  message: "content replacement requires contentVersion, selectedCount, envelope and ownerEncryptedRecovery together"
2919
3229
  });
2920
3230
  }
3231
+ if (value.attachment !== void 0 && provided !== 4) {
3232
+ ctx.addIssue({ code: "custom", message: "attachment requires a content replacement" });
3233
+ }
2921
3234
  });
2922
3235
  var ShareLinkIdInputValidator = z16.object({ id: ShareLinkIdValidator }).strict();
2923
3236
  var ShareLinkOperationKeyInputValidator = z16.object({ id: ShareLinkIdValidator, operationId: z16.string().uuid() }).strict();
@@ -3027,6 +3340,12 @@ export {
3027
3340
  AppEventResponseValidator,
3028
3341
  AppEventValidator,
3029
3342
  AppListingStatusValidator,
3343
+ AppManifestDiffValidator,
3344
+ AppManifestTemplateChangeValidator,
3345
+ AppManifestTemplateRefValidator,
3346
+ AppManifestValidator,
3347
+ AppManifestVersionStatusValidator,
3348
+ AppManifestVersionValidator,
3030
3349
  AppStoreListingCreateValidator,
3031
3350
  AppStoreListingSubmitterValidator,
3032
3351
  AppStoreListingUpdateValidator,
@@ -3048,6 +3367,8 @@ export {
3048
3367
  BoostRecipientValidator,
3049
3368
  BoostRecipientWithChildrenValidator,
3050
3369
  BoostValidator,
3370
+ CapturedConsentRecordValidator,
3371
+ CapturedTemplateRecordValidator,
3051
3372
  CheckCredentialEventValidator,
3052
3373
  CheckIssuanceStatusEventValidator,
3053
3374
  ClaimHookQueryValidator,
@@ -3069,6 +3390,7 @@ export {
3069
3390
  ConsentFlowDataForDidQueryValidator,
3070
3391
  ConsentFlowDataQueryValidator,
3071
3392
  ConsentFlowGuardianApprovalValidator,
3393
+ ConsentFlowReferralValidator,
3072
3394
  ConsentFlowTermValidator,
3073
3395
  ConsentFlowTermsQueryValidator,
3074
3396
  ConsentFlowTermsStatusValidator,
@@ -3076,6 +3398,10 @@ export {
3076
3398
  ConsentFlowTransactionActionValidator,
3077
3399
  ConsentFlowTransactionValidator,
3078
3400
  ConsentFlowTransactionsQueryValidator,
3401
+ ConsentFlowWebhookMetadataValidator,
3402
+ ConsentRequestPersonalFieldValidator,
3403
+ ConsentRequestValidator,
3404
+ ConsentRequestWalletCategoryValidator,
3079
3405
  ContactMethodCreateValidator,
3080
3406
  ContactMethodQueryValidator,
3081
3407
  ContactMethodValidator,
@@ -3083,6 +3409,7 @@ export {
3083
3409
  ContactMethodVerificationValidator,
3084
3410
  ContextValidator,
3085
3411
  ContractCredentialValidator,
3412
+ ContractRequestFieldsValidator,
3086
3413
  CountSkillsInputValidator,
3087
3414
  CountSkillsResultValidator,
3088
3415
  CreateContactMethodSessionResponseValidator,
@@ -3118,6 +3445,8 @@ export {
3118
3445
  CriteriaValidator,
3119
3446
  DEFAULT_BITSTRING_STATUS_LIST_SIZE,
3120
3447
  DeleteFrameworkInputValidator,
3448
+ DeleteShareLinkAttachmentChunksInputValidator,
3449
+ DeleteShareLinkAttachmentChunksOutputValidator,
3121
3450
  DeleteSkillInputValidator,
3122
3451
  DidDocumentValidator,
3123
3452
  EMPTY_IN_APP_MESSAGES_FLAG,
@@ -3140,6 +3469,7 @@ export {
3140
3469
  GetCredentialRefreshHistoryResultValidator,
3141
3470
  GetFullSkillTreeInputValidator,
3142
3471
  GetFullSkillTreeResultValidator,
3472
+ GetShareLinkAttachmentChunkInputValidator,
3143
3473
  GetSkillPathInputValidator,
3144
3474
  GetSkillPathResultValidator,
3145
3475
  GetTemplateRecipientsEventValidator,
@@ -3157,6 +3487,12 @@ export {
3157
3487
  InboxCredentialRefreshReceiptValidator,
3158
3488
  InboxCredentialValidator,
3159
3489
  IncrementCounterEventValidator,
3490
+ InlineAlignmentValidator,
3491
+ InlineCredentialTemplateValidator,
3492
+ InlineEvidenceValidator,
3493
+ InlineSendCredentialEventValidator,
3494
+ InlineWalletCategoryValidator,
3495
+ InlineWalletSkillTagValidator,
3160
3496
  InstalledAppValidator,
3161
3497
  IssueInboxCredentialBatchItemResultValidator,
3162
3498
  IssueInboxCredentialBatchItemValidator,
@@ -3209,6 +3545,7 @@ export {
3209
3545
  LCNVisibleProfileValidator,
3210
3546
  LaunchTypeValidator,
3211
3547
  LearnCardRefreshAuthorizationValidator,
3548
+ LegacySendCredentialEventValidator,
3212
3549
  LinkProviderFrameworkInputValidator,
3213
3550
  ListShareLinksInputValidator,
3214
3551
  MAX_ENDORSEMENTS,
@@ -3220,6 +3557,7 @@ export {
3220
3557
  MAX_VP_MEMBERS,
3221
3558
  ManagedCredentialRefreshReceiptValidator,
3222
3559
  ManagedCredentialRefreshServiceValidator,
3560
+ NormalizedConsentScopesValidator,
3223
3561
  PaginatedAppStoreListingsValidator,
3224
3562
  PaginatedBoostRecipientsValidator,
3225
3563
  PaginatedBoostRecipientsWithChildrenValidator,
@@ -3246,6 +3584,8 @@ export {
3246
3584
  PaginatedVisibleLCNProfilesValidator,
3247
3585
  PaginationOptionsValidator,
3248
3586
  PaginationResponseValidator,
3587
+ PendingListingUpdateStatusValidator,
3588
+ PendingListingUpdateValidator,
3249
3589
  PrepareRefreshableSendInputValidator,
3250
3590
  PrepareRefreshableSendResultValidator,
3251
3591
  ProfileValidator,
@@ -3258,6 +3598,9 @@ export {
3258
3598
  PublishCredentialRefreshResultValidator,
3259
3599
  PublishIssuerSignedRefreshValidator,
3260
3600
  PublishSigningAuthorityRefreshValidator,
3601
+ PutShareLinkAttachmentChunkInputValidator,
3602
+ PutShareLinkAttachmentChunkOutputValidator,
3603
+ RawInlineCredentialTemplateValidator,
3261
3604
  RefreshServiceValidator,
3262
3605
  RegExpValidator,
3263
3606
  RelatedValidator,
@@ -3284,6 +3627,7 @@ export {
3284
3627
  SendBoostResponseValidator,
3285
3628
  SendBoostTemplateValidator,
3286
3629
  SendBrandingOptionsValidator,
3630
+ SendContractRequestValidator,
3287
3631
  SendCredentialEventValidator,
3288
3632
  SendInboxResponseValidator,
3289
3633
  SendInputValidator,
@@ -3299,6 +3643,9 @@ export {
3299
3643
  ShareEndorsementEntryValidator,
3300
3644
  ShareEnvelopeValidator,
3301
3645
  ShareIvValidator,
3646
+ ShareLinkAttachmentChunkEnvelopeValidator,
3647
+ ShareLinkAttachmentChunkOutputValidator,
3648
+ ShareLinkAttachmentValidator,
3302
3649
  ShareLinkIdInputValidator,
3303
3650
  ShareLinkIdValidator,
3304
3651
  ShareLinkOperationKeyInputValidator,
@@ -3319,6 +3666,7 @@ export {
3319
3666
  ShareRecoverySelectionValidator,
3320
3667
  ShareSelectionEntryValidator,
3321
3668
  ShareSharerValidator,
3669
+ SimpleInlineCredentialTemplateValidator,
3322
3670
  SkillDeletionStrategyValidator,
3323
3671
  SkillFrameworkAdminInputValidator,
3324
3672
  SkillFrameworkAdminsValidator,
@@ -3349,9 +3697,12 @@ export {
3349
3697
  UnsignedClrCredentialValidator,
3350
3698
  UnsignedVCValidator,
3351
3699
  UnsignedVPValidator,
3700
+ UnsupportedSignInOperationError,
3352
3701
  UpdateFrameworkInputValidator,
3353
3702
  UpdateShareLinkInputValidator,
3354
3703
  UpdateSkillInputValidator,
3704
+ UpsertConsentContractEventValidator,
3705
+ UpsertConsentContractResponseValidator,
3355
3706
  VC2EvidenceValidator,
3356
3707
  VCValidator,
3357
3708
  VPValidator,