@learncard/types 5.22.0 → 5.23.0
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/__tests__/unsupportedSignInOperation.test.d.ts +2 -0
- package/dist/__tests__/unsupportedSignInOperation.test.d.ts.map +1 -0
- package/dist/auth.d.ts +18 -1
- package/dist/auth.d.ts.map +1 -1
- package/dist/clr.d.ts +2 -2
- package/dist/clr.d.ts.map +1 -1
- package/dist/clr.test.d.ts +2 -0
- package/dist/clr.test.d.ts.map +1 -0
- package/dist/inAppMessages.d.ts +10 -10
- package/dist/lcn.d.ts +1632 -9
- package/dist/lcn.d.ts.map +1 -1
- package/dist/share-links.d.ts +104 -0
- package/dist/share-links.d.ts.map +1 -1
- package/dist/types.cjs.development.cjs +352 -12
- package/dist/types.cjs.development.cjs.map +2 -2
- package/dist/types.cjs.production.min.cjs +22 -22
- package/dist/types.cjs.production.min.cjs.map +3 -3
- package/dist/types.esm.js +352 -12
- package/dist/types.esm.js.map +2 -2
- package/package.json +2 -1
- package/src/__tests__/unsupportedSignInOperation.test.ts +13 -0
- package/src/auth.ts +24 -1
- package/src/clr.test.ts +163 -0
- package/src/clr.ts +2 -1
- package/src/lcn.ts +342 -5
- package/src/share-links.ts +75 -0
package/dist/types.esm.js
CHANGED
|
@@ -440,7 +440,8 @@ var AssociationTypeValidator = z5.enum([
|
|
|
440
440
|
"replacedBy"
|
|
441
441
|
]).or(z5.string());
|
|
442
442
|
var AssociationValidator = z5.object({
|
|
443
|
-
|
|
443
|
+
// Accept compacted scalars while retaining the existing permissive array contract.
|
|
444
|
+
type: z5.string().min(1).or(z5.string().array().nonempty()),
|
|
444
445
|
associationType: AssociationTypeValidator,
|
|
445
446
|
sourceId: z5.string().optional(),
|
|
446
447
|
targetId: z5.string()
|
|
@@ -1288,11 +1289,48 @@ var ConsentFlowContractDetailsValidator = z12.object({
|
|
|
1288
1289
|
updatedAt: z12.string(),
|
|
1289
1290
|
expiresAt: z12.string().optional(),
|
|
1290
1291
|
autoBoosts: z12.string().array().optional(),
|
|
1291
|
-
writers: z12.array(LCNProfileValidator).optional()
|
|
1292
|
+
writers: z12.array(LCNProfileValidator).optional(),
|
|
1293
|
+
recipients: z12.array(LCNPublicProfileValidator.extend({ did: z12.string() })).optional(),
|
|
1294
|
+
audienceVersion: z12.number().int().nonnegative().optional()
|
|
1292
1295
|
});
|
|
1293
|
-
var ConsentFlowContractRequestStatusValidator = z12.enum(["pending", "accepted", "denied"]).nullable();
|
|
1296
|
+
var ConsentFlowContractRequestStatusValidator = z12.enum(["pending", "accepted", "denied", "cancelled"]).nullable();
|
|
1294
1297
|
var ConsentFlowContractRequestReadStatusValidator = z12.enum(["unseen", "seen"]).nullable();
|
|
1295
|
-
var
|
|
1298
|
+
var ConsentFlowReferralValidator = z12.object({
|
|
1299
|
+
requestId: z12.string(),
|
|
1300
|
+
requestedBy: z12.string(),
|
|
1301
|
+
externalReferenceId: z12.string().max(256).optional()
|
|
1302
|
+
});
|
|
1303
|
+
var ContractRequestFieldsValidator = ConsentFlowReferralValidator.partial().extend({
|
|
1304
|
+
requestedAt: z12.string().optional(),
|
|
1305
|
+
message: z12.string().max(500).optional()
|
|
1306
|
+
});
|
|
1307
|
+
var SendContractRequestValidator = z12.object({
|
|
1308
|
+
contractUri: z12.string(),
|
|
1309
|
+
targetProfileId: z12.string(),
|
|
1310
|
+
externalReferenceId: z12.string().trim().min(1).max(256).optional(),
|
|
1311
|
+
message: z12.string().trim().max(500).optional()
|
|
1312
|
+
});
|
|
1313
|
+
var ConsentFlowWebhookMetadataValidator = z12.object({
|
|
1314
|
+
eventId: z12.string(),
|
|
1315
|
+
deliveryKey: z12.string(),
|
|
1316
|
+
event: z12.enum([
|
|
1317
|
+
"request_sent",
|
|
1318
|
+
"request_accepted",
|
|
1319
|
+
"request_denied",
|
|
1320
|
+
"request_cancelled",
|
|
1321
|
+
"consent_created",
|
|
1322
|
+
"consent_updated",
|
|
1323
|
+
"consent_withdrawn",
|
|
1324
|
+
"credentials_synced"
|
|
1325
|
+
]),
|
|
1326
|
+
contractUri: z12.string(),
|
|
1327
|
+
termsUri: z12.string().optional(),
|
|
1328
|
+
requestId: z12.string().optional(),
|
|
1329
|
+
requestedBy: z12.string().optional(),
|
|
1330
|
+
externalReferenceId: z12.string().optional(),
|
|
1331
|
+
recipientRole: z12.enum(["owner", "recipient", "requester", "target"])
|
|
1332
|
+
});
|
|
1333
|
+
var ConsentFlowContractRequestForProfileValidator = ContractRequestFieldsValidator.extend({
|
|
1296
1334
|
profile: LCNProfileValidator,
|
|
1297
1335
|
status: ConsentFlowContractRequestStatusValidator,
|
|
1298
1336
|
readStatus: ConsentFlowContractRequestReadStatusValidator.optional()
|
|
@@ -1338,6 +1376,7 @@ var PaginatedConsentFlowTermsValidator = PaginationResponseValidator.extend({
|
|
|
1338
1376
|
expiresAt: z12.string().optional(),
|
|
1339
1377
|
oneTime: z12.boolean().optional(),
|
|
1340
1378
|
terms: ConsentFlowTermsValidator,
|
|
1379
|
+
referral: ConsentFlowReferralValidator.optional(),
|
|
1341
1380
|
contract: ConsentFlowContractDetailsValidator,
|
|
1342
1381
|
uri: z12.string(),
|
|
1343
1382
|
consenter: LCNProfileValidator,
|
|
@@ -1433,6 +1472,7 @@ var ConsentFlowTransactionValidator = z12.object({
|
|
|
1433
1472
|
oneTime: z12.boolean().optional(),
|
|
1434
1473
|
terms: ConsentFlowTermsValidator.optional(),
|
|
1435
1474
|
guardianApproval: ConsentFlowGuardianApprovalValidator.optional(),
|
|
1475
|
+
referral: ConsentFlowReferralValidator.optional(),
|
|
1436
1476
|
id: z12.string(),
|
|
1437
1477
|
action: ConsentFlowTransactionActionValidator,
|
|
1438
1478
|
date: z12.string(),
|
|
@@ -1443,6 +1483,7 @@ var HolderExportConsentRecordValidator = z12.object({
|
|
|
1443
1483
|
status: ConsentFlowTermsStatusValidator,
|
|
1444
1484
|
contract: ConsentFlowContractDetailsValidator,
|
|
1445
1485
|
terms: ConsentFlowTermsValidator,
|
|
1486
|
+
referral: ConsentFlowReferralValidator.optional(),
|
|
1446
1487
|
transactions: ConsentFlowTransactionValidator.array()
|
|
1447
1488
|
});
|
|
1448
1489
|
var HolderExportMetadataValidator = z12.object({
|
|
@@ -2179,7 +2220,7 @@ var AppStoreListingSubmitterValidator = z12.object({
|
|
|
2179
2220
|
displayName: z12.string(),
|
|
2180
2221
|
email: z12.string().optional()
|
|
2181
2222
|
});
|
|
2182
|
-
var
|
|
2223
|
+
var AppStoreListingFieldsValidator = z12.object({
|
|
2183
2224
|
listing_id: z12.string(),
|
|
2184
2225
|
slug: z12.string().optional(),
|
|
2185
2226
|
display_name: z12.string(),
|
|
@@ -2205,15 +2246,33 @@ var AppStoreListingValidator = z12.object({
|
|
|
2205
2246
|
submitter: AppStoreListingSubmitterValidator.optional(),
|
|
2206
2247
|
contact_email: z12.string().email().optional()
|
|
2207
2248
|
});
|
|
2249
|
+
var PendingListingUpdateStatusValidator = z12.enum(["DRAFT", "PENDING_REVIEW"]);
|
|
2250
|
+
var PendingListingUpdateValidator = z12.object({
|
|
2251
|
+
status: PendingListingUpdateStatusValidator,
|
|
2252
|
+
submitted_at: z12.string().optional(),
|
|
2253
|
+
changes: AppStoreListingFieldsValidator.omit({
|
|
2254
|
+
listing_id: true,
|
|
2255
|
+
app_listing_status: true,
|
|
2256
|
+
promotion_level: true,
|
|
2257
|
+
submitted_at: true,
|
|
2258
|
+
submitter: true
|
|
2259
|
+
}).partial(),
|
|
2260
|
+
manifest_version: z12.number().int().min(1).optional()
|
|
2261
|
+
});
|
|
2262
|
+
var AppStoreListingValidator = AppStoreListingFieldsValidator.extend({
|
|
2263
|
+
pending_update: PendingListingUpdateValidator.optional()
|
|
2264
|
+
});
|
|
2208
2265
|
var AppStoreListingCreateValidator = AppStoreListingValidator.omit({
|
|
2209
2266
|
listing_id: true,
|
|
2210
2267
|
app_listing_status: true,
|
|
2211
|
-
promotion_level: true
|
|
2268
|
+
promotion_level: true,
|
|
2269
|
+
pending_update: true
|
|
2212
2270
|
});
|
|
2213
2271
|
var AppStoreListingUpdateValidator = AppStoreListingValidator.partial().omit({
|
|
2214
2272
|
listing_id: true,
|
|
2215
2273
|
app_listing_status: true,
|
|
2216
|
-
promotion_level: true
|
|
2274
|
+
promotion_level: true,
|
|
2275
|
+
pending_update: true
|
|
2217
2276
|
});
|
|
2218
2277
|
var InstalledAppValidator = AppStoreListingValidator.extend({
|
|
2219
2278
|
installed_at: z12.string()
|
|
@@ -2228,12 +2287,87 @@ var AppBoostValidator = z12.object({
|
|
|
2228
2287
|
templateAlias: z12.string().min(1).max(50).regex(/^[a-z0-9-]+$/),
|
|
2229
2288
|
boostUri: z12.string()
|
|
2230
2289
|
});
|
|
2231
|
-
var
|
|
2290
|
+
var InlineWalletCategoryValidator = z12.enum([
|
|
2291
|
+
"Achievement",
|
|
2292
|
+
"Skill",
|
|
2293
|
+
"ID",
|
|
2294
|
+
"Learning History",
|
|
2295
|
+
"Work History",
|
|
2296
|
+
"Social Badges",
|
|
2297
|
+
"Membership",
|
|
2298
|
+
"Accomplishment",
|
|
2299
|
+
"Experiences",
|
|
2300
|
+
"Accommodation",
|
|
2301
|
+
"Family"
|
|
2302
|
+
]);
|
|
2303
|
+
var InlineAlignmentValidator = z12.object({
|
|
2304
|
+
name: z12.string(),
|
|
2305
|
+
url: z12.string(),
|
|
2306
|
+
framework: z12.string().optional(),
|
|
2307
|
+
code: z12.string().optional()
|
|
2308
|
+
}).passthrough();
|
|
2309
|
+
var InlineEvidenceValidator = z12.object({
|
|
2310
|
+
id: z12.string().optional(),
|
|
2311
|
+
name: z12.string().optional(),
|
|
2312
|
+
narrative: z12.string().optional()
|
|
2313
|
+
}).passthrough();
|
|
2314
|
+
var InlineWalletSkillTagValidator = z12.object({
|
|
2315
|
+
frameworkId: z12.string(),
|
|
2316
|
+
id: z12.string(),
|
|
2317
|
+
proficiencyLevel: z12.string().optional()
|
|
2318
|
+
}).passthrough();
|
|
2319
|
+
var SimpleInlineCredentialTemplateValidator = z12.object({
|
|
2320
|
+
rawCredential: z12.undefined().optional(),
|
|
2321
|
+
name: z12.string(),
|
|
2322
|
+
description: z12.string().optional(),
|
|
2323
|
+
image: z12.string().optional(),
|
|
2324
|
+
issuerName: z12.string().optional(),
|
|
2325
|
+
achievementType: z12.string().optional(),
|
|
2326
|
+
category: InlineWalletCategoryValidator.optional(),
|
|
2327
|
+
criteria: z12.object({
|
|
2328
|
+
narrative: z12.string().optional(),
|
|
2329
|
+
url: z12.string().optional()
|
|
2330
|
+
}).passthrough().optional(),
|
|
2331
|
+
alignments: z12.array(InlineAlignmentValidator).optional(),
|
|
2332
|
+
tags: z12.array(z12.string()).optional(),
|
|
2333
|
+
activity: z12.object({
|
|
2334
|
+
startDate: z12.string().optional(),
|
|
2335
|
+
endDate: z12.string().optional()
|
|
2336
|
+
}).passthrough().optional(),
|
|
2337
|
+
credits: z12.object({
|
|
2338
|
+
earned: z12.union([z12.number(), z12.string()]).optional(),
|
|
2339
|
+
available: z12.union([z12.number(), z12.string()]).optional()
|
|
2340
|
+
}).passthrough().optional(),
|
|
2341
|
+
validUntil: z12.string().optional(),
|
|
2342
|
+
evidence: z12.array(InlineEvidenceValidator).optional(),
|
|
2343
|
+
walletSkills: z12.array(InlineWalletSkillTagValidator).optional()
|
|
2344
|
+
}).passthrough();
|
|
2345
|
+
var RawInlineCredentialTemplateValidator = z12.object({
|
|
2346
|
+
rawCredential: z12.record(z12.string(), z12.unknown()),
|
|
2347
|
+
category: InlineWalletCategoryValidator.optional(),
|
|
2348
|
+
walletSkills: z12.array(InlineWalletSkillTagValidator).optional()
|
|
2349
|
+
}).passthrough();
|
|
2350
|
+
var InlineCredentialTemplateValidator = z12.union([
|
|
2351
|
+
RawInlineCredentialTemplateValidator,
|
|
2352
|
+
SimpleInlineCredentialTemplateValidator
|
|
2353
|
+
]);
|
|
2354
|
+
var LegacySendCredentialEventValidator = z12.object({
|
|
2232
2355
|
type: z12.literal("send-credential"),
|
|
2233
2356
|
templateAlias: z12.string(),
|
|
2234
2357
|
templateData: z12.record(z12.string(), z12.unknown()).optional(),
|
|
2235
2358
|
preventDuplicateClaim: z12.boolean().optional()
|
|
2236
2359
|
});
|
|
2360
|
+
var InlineSendCredentialEventValidator = z12.object({
|
|
2361
|
+
type: z12.literal("send-credential"),
|
|
2362
|
+
alias: z12.string(),
|
|
2363
|
+
template: InlineCredentialTemplateValidator,
|
|
2364
|
+
templateData: z12.record(z12.string(), z12.unknown()).optional(),
|
|
2365
|
+
preventDuplicateClaim: z12.boolean().optional()
|
|
2366
|
+
});
|
|
2367
|
+
var SendCredentialEventValidator = z12.union([
|
|
2368
|
+
LegacySendCredentialEventValidator,
|
|
2369
|
+
InlineSendCredentialEventValidator
|
|
2370
|
+
]);
|
|
2237
2371
|
var CheckCredentialEventValidator = z12.object({
|
|
2238
2372
|
type: z12.literal("check-credential"),
|
|
2239
2373
|
templateAlias: z12.string().optional(),
|
|
@@ -2328,7 +2462,119 @@ var GetCountersEventValidator = z12.object({
|
|
|
2328
2462
|
type: z12.literal("get-counters"),
|
|
2329
2463
|
keys: z12.array(counterKeyValidator).min(1).max(50).optional()
|
|
2330
2464
|
});
|
|
2331
|
-
var
|
|
2465
|
+
var ConsentRequestWalletCategoryValidator = z12.enum([
|
|
2466
|
+
"Achievement",
|
|
2467
|
+
"Skill",
|
|
2468
|
+
"ID",
|
|
2469
|
+
"Learning History",
|
|
2470
|
+
"Work History",
|
|
2471
|
+
"Social Badges",
|
|
2472
|
+
"Membership",
|
|
2473
|
+
"Accomplishment",
|
|
2474
|
+
"Experiences",
|
|
2475
|
+
"Accommodation",
|
|
2476
|
+
"Family"
|
|
2477
|
+
]);
|
|
2478
|
+
var ConsentRequestPersonalFieldValidator = z12.enum([
|
|
2479
|
+
"name",
|
|
2480
|
+
"email",
|
|
2481
|
+
"phone",
|
|
2482
|
+
"birthDate",
|
|
2483
|
+
"country",
|
|
2484
|
+
"avatar"
|
|
2485
|
+
]);
|
|
2486
|
+
var ConsentRequestValidator = z12.object({
|
|
2487
|
+
read: z12.object({
|
|
2488
|
+
credentialCategories: z12.array(ConsentRequestWalletCategoryValidator).optional(),
|
|
2489
|
+
personalFields: z12.array(ConsentRequestPersonalFieldValidator).optional()
|
|
2490
|
+
}).optional(),
|
|
2491
|
+
write: z12.object({
|
|
2492
|
+
credentialCategories: z12.array(ConsentRequestWalletCategoryValidator).optional()
|
|
2493
|
+
}).optional(),
|
|
2494
|
+
reason: z12.string().optional()
|
|
2495
|
+
});
|
|
2496
|
+
var NormalizedConsentScopesValidator = z12.object({
|
|
2497
|
+
read: z12.object({
|
|
2498
|
+
credentialCategories: z12.array(ConsentRequestWalletCategoryValidator).default([]),
|
|
2499
|
+
personalFields: z12.array(ConsentRequestPersonalFieldValidator).default([])
|
|
2500
|
+
}),
|
|
2501
|
+
write: z12.object({
|
|
2502
|
+
credentialCategories: z12.array(ConsentRequestWalletCategoryValidator).default([])
|
|
2503
|
+
})
|
|
2504
|
+
});
|
|
2505
|
+
var CapturedTemplateRecordValidator = z12.object({
|
|
2506
|
+
alias: z12.string(),
|
|
2507
|
+
template: InlineCredentialTemplateValidator,
|
|
2508
|
+
version: z12.number().int().min(1),
|
|
2509
|
+
lastUsedAt: z12.string()
|
|
2510
|
+
}).passthrough();
|
|
2511
|
+
var CapturedConsentRecordValidator = z12.object({
|
|
2512
|
+
scopes: NormalizedConsentScopesValidator,
|
|
2513
|
+
reason: z12.string().optional(),
|
|
2514
|
+
lastUsedAt: z12.string()
|
|
2515
|
+
}).passthrough();
|
|
2516
|
+
var AppManifestValidator = z12.object({
|
|
2517
|
+
manifestVersion: z12.literal(1),
|
|
2518
|
+
appUrl: z12.string(),
|
|
2519
|
+
appKey: z12.string().max(200).optional(),
|
|
2520
|
+
suggestedName: z12.string().optional(),
|
|
2521
|
+
suggestedIconUrl: z12.string().optional(),
|
|
2522
|
+
permissions: z12.array(z12.string()).default([]),
|
|
2523
|
+
templates: z12.array(CapturedTemplateRecordValidator).default([]),
|
|
2524
|
+
consentRequests: z12.array(CapturedConsentRecordValidator).default([]),
|
|
2525
|
+
usedConsentContract: z12.boolean().optional(),
|
|
2526
|
+
featuresLaunched: z12.array(z12.string()).default([]),
|
|
2527
|
+
counterKeys: z12.array(z12.string()).default([]),
|
|
2528
|
+
usedLearnerContext: z12.boolean(),
|
|
2529
|
+
usedNotifications: z12.boolean(),
|
|
2530
|
+
firstCapturedAt: z12.string(),
|
|
2531
|
+
lastUpdatedAt: z12.string()
|
|
2532
|
+
}).passthrough();
|
|
2533
|
+
var AppManifestVersionStatusValidator = z12.enum(["draft", "active", "superseded"]);
|
|
2534
|
+
var AppManifestVersionValidator = z12.object({
|
|
2535
|
+
id: z12.string(),
|
|
2536
|
+
version: z12.number().int().min(1),
|
|
2537
|
+
manifestHash: z12.string(),
|
|
2538
|
+
manifest: AppManifestValidator,
|
|
2539
|
+
status: AppManifestVersionStatusValidator,
|
|
2540
|
+
createdAt: z12.string(),
|
|
2541
|
+
activatedAt: z12.string().optional()
|
|
2542
|
+
});
|
|
2543
|
+
var AppManifestStringDiffValidator = z12.object({
|
|
2544
|
+
added: z12.array(z12.string()),
|
|
2545
|
+
removed: z12.array(z12.string()),
|
|
2546
|
+
changed: z12.array(z12.string())
|
|
2547
|
+
});
|
|
2548
|
+
var AppManifestTemplateRefValidator = z12.object({
|
|
2549
|
+
alias: z12.string(),
|
|
2550
|
+
version: z12.number().int().min(1)
|
|
2551
|
+
});
|
|
2552
|
+
var AppManifestTemplateChangeValidator = z12.object({
|
|
2553
|
+
alias: z12.string(),
|
|
2554
|
+
fromVersion: z12.number().int().min(1),
|
|
2555
|
+
toVersion: z12.number().int().min(1)
|
|
2556
|
+
});
|
|
2557
|
+
var AppManifestDiffValidator = z12.object({
|
|
2558
|
+
permissions: AppManifestStringDiffValidator,
|
|
2559
|
+
templates: z12.object({
|
|
2560
|
+
added: z12.array(AppManifestTemplateRefValidator),
|
|
2561
|
+
removed: z12.array(AppManifestTemplateRefValidator),
|
|
2562
|
+
changed: z12.array(AppManifestTemplateChangeValidator)
|
|
2563
|
+
}),
|
|
2564
|
+
consentScopes: AppManifestStringDiffValidator,
|
|
2565
|
+
featurePaths: AppManifestStringDiffValidator,
|
|
2566
|
+
counterKeys: AppManifestStringDiffValidator,
|
|
2567
|
+
requiresReview: z12.boolean()
|
|
2568
|
+
});
|
|
2569
|
+
var UpsertConsentContractEventValidator = z12.object({
|
|
2570
|
+
type: z12.literal("upsert-consent-contract"),
|
|
2571
|
+
scopes: ConsentRequestValidator
|
|
2572
|
+
});
|
|
2573
|
+
var UpsertConsentContractResponseValidator = z12.object({
|
|
2574
|
+
contractUri: z12.string(),
|
|
2575
|
+
created: z12.boolean()
|
|
2576
|
+
});
|
|
2577
|
+
var AppEventValidator = z12.union([
|
|
2332
2578
|
SendCredentialEventValidator,
|
|
2333
2579
|
CheckCredentialEventValidator,
|
|
2334
2580
|
CheckIssuanceStatusEventValidator,
|
|
@@ -2338,7 +2584,8 @@ var AppEventValidator = z12.discriminatedUnion("type", [
|
|
|
2338
2584
|
SendNotificationEventValidator,
|
|
2339
2585
|
IncrementCounterEventValidator,
|
|
2340
2586
|
GetCounterEventValidator,
|
|
2341
|
-
GetCountersEventValidator
|
|
2587
|
+
GetCountersEventValidator,
|
|
2588
|
+
UpsertConsentContractEventValidator
|
|
2342
2589
|
]);
|
|
2343
2590
|
var AppEventInputValidator = z12.object({
|
|
2344
2591
|
listingId: z12.string(),
|
|
@@ -2417,6 +2664,17 @@ var AuthSessionError = class extends Error {
|
|
|
2417
2664
|
__name(this, "AuthSessionError");
|
|
2418
2665
|
}
|
|
2419
2666
|
};
|
|
2667
|
+
var UnsupportedSignInOperationError = class extends Error {
|
|
2668
|
+
constructor(operation, providerType) {
|
|
2669
|
+
super(`${operation} is not supported by ${providerType}`);
|
|
2670
|
+
this.operation = operation;
|
|
2671
|
+
this.providerType = providerType;
|
|
2672
|
+
this.name = "UnsupportedSignInOperationError";
|
|
2673
|
+
}
|
|
2674
|
+
static {
|
|
2675
|
+
__name(this, "UnsupportedSignInOperationError");
|
|
2676
|
+
}
|
|
2677
|
+
};
|
|
2420
2678
|
var ESCROW_PIN_LOCKED_MESSAGE = "Too many incorrect PIN attempts. You can still recover by waiting.";
|
|
2421
2679
|
var ESCROW_PIN_UNAVAILABLE_MESSAGE = "PIN recovery is not available for this account.";
|
|
2422
2680
|
var ESCROW_PIN_MISMATCH_PATTERN = /^Incorrect PIN\. (\d+) attempts left\.$/;
|
|
@@ -2855,6 +3113,8 @@ var ShareLinkValidator = z16.object({
|
|
|
2855
3113
|
version: safeVersion,
|
|
2856
3114
|
contentVersion: safeVersion,
|
|
2857
3115
|
status: ShareLinkStatusValidator,
|
|
3116
|
+
attachmentId: z16.string().uuid().nullable().optional(),
|
|
3117
|
+
attachmentChunkCount: z16.number().int().min(1).max(16).nullable().optional(),
|
|
2858
3118
|
contentState: ShareContentStateValidator,
|
|
2859
3119
|
createdAt: z16.iso.datetime(),
|
|
2860
3120
|
updatedAt: z16.iso.datetime(),
|
|
@@ -2878,6 +3138,43 @@ var ShareLinkValidator = z16.object({
|
|
|
2878
3138
|
contentUrl: z16.string().optional()
|
|
2879
3139
|
});
|
|
2880
3140
|
var clientRequestId = z16.string().uuid();
|
|
3141
|
+
var ShareLinkAttachmentValidator = z16.object({
|
|
3142
|
+
id: z16.string().uuid(),
|
|
3143
|
+
chunkCount: z16.number().int().min(1).max(16)
|
|
3144
|
+
}).strict();
|
|
3145
|
+
var attachmentChunkKey = {
|
|
3146
|
+
id: ShareLinkIdValidator,
|
|
3147
|
+
contentVersion: safeVersion,
|
|
3148
|
+
attachmentId: z16.string().uuid(),
|
|
3149
|
+
chunkIndex: z16.number().int().min(0).max(15)
|
|
3150
|
+
};
|
|
3151
|
+
var ShareLinkAttachmentChunkEnvelopeValidator = ShareEnvelopeValidator.refine(
|
|
3152
|
+
(value) => (decodedBase64UrlByteLength(value.ct) ?? Infinity) <= 256 * 1024 + SHARE_TAG_BYTES
|
|
3153
|
+
);
|
|
3154
|
+
var PutShareLinkAttachmentChunkInputValidator = z16.object({
|
|
3155
|
+
...attachmentChunkKey,
|
|
3156
|
+
chunkCount: z16.number().int().min(1).max(16),
|
|
3157
|
+
envelope: ShareLinkAttachmentChunkEnvelopeValidator,
|
|
3158
|
+
ownerEncryptedRecovery: ShareOwnerRecoveryValidator
|
|
3159
|
+
}).strict().refine((value) => value.chunkIndex < value.chunkCount);
|
|
3160
|
+
var GetShareLinkAttachmentChunkInputValidator = z16.object({
|
|
3161
|
+
...attachmentChunkKey,
|
|
3162
|
+
passcode: z16.string().min(4).max(64).optional(),
|
|
3163
|
+
accessToken: z16.string().min(1).max(2048).optional()
|
|
3164
|
+
}).strict();
|
|
3165
|
+
var ShareLinkAttachmentChunkOutputValidator = z16.object({
|
|
3166
|
+
...attachmentChunkKey,
|
|
3167
|
+
envelope: ShareLinkAttachmentChunkEnvelopeValidator,
|
|
3168
|
+
accessToken: z16.string().min(1).max(2048).optional()
|
|
3169
|
+
}).strict();
|
|
3170
|
+
var DeleteShareLinkAttachmentChunksInputValidator = z16.object({
|
|
3171
|
+
id: ShareLinkIdValidator,
|
|
3172
|
+
contentVersion: safeVersion,
|
|
3173
|
+
attachmentId: z16.string().uuid(),
|
|
3174
|
+
chunkCount: z16.number().int().min(1).max(16)
|
|
3175
|
+
}).strict();
|
|
3176
|
+
var PutShareLinkAttachmentChunkOutputValidator = z16.object({ ok: z16.literal(true) }).strict();
|
|
3177
|
+
var DeleteShareLinkAttachmentChunksOutputValidator = z16.object({ ok: z16.boolean() }).strict();
|
|
2881
3178
|
var CreateShareLinkInputValidator = z16.object({
|
|
2882
3179
|
id: ShareLinkIdValidator,
|
|
2883
3180
|
clientRequestId,
|
|
@@ -2889,7 +3186,8 @@ var CreateShareLinkInputValidator = z16.object({
|
|
|
2889
3186
|
selectedCount: z16.number().int().min(1).max(MAX_SELECTED_CREDENTIALS),
|
|
2890
3187
|
contentVersion: z16.literal(1),
|
|
2891
3188
|
envelope: ShareEnvelopeValidator,
|
|
2892
|
-
ownerEncryptedRecovery: ShareOwnerRecoveryValidator
|
|
3189
|
+
ownerEncryptedRecovery: ShareOwnerRecoveryValidator,
|
|
3190
|
+
attachment: ShareLinkAttachmentValidator.optional()
|
|
2893
3191
|
}).strict();
|
|
2894
3192
|
var UpdateShareLinkInputValidator = z16.object({
|
|
2895
3193
|
id: ShareLinkIdValidator,
|
|
@@ -2904,7 +3202,8 @@ var UpdateShareLinkInputValidator = z16.object({
|
|
|
2904
3202
|
contentVersion: safeVersion.optional(),
|
|
2905
3203
|
selectedCount: z16.number().int().min(1).max(MAX_SELECTED_CREDENTIALS).optional(),
|
|
2906
3204
|
envelope: ShareEnvelopeValidator.optional(),
|
|
2907
|
-
ownerEncryptedRecovery: ShareOwnerRecoveryValidator.optional()
|
|
3205
|
+
ownerEncryptedRecovery: ShareOwnerRecoveryValidator.optional(),
|
|
3206
|
+
attachment: ShareLinkAttachmentValidator.optional()
|
|
2908
3207
|
}).strict().superRefine((value, ctx) => {
|
|
2909
3208
|
const provided = [
|
|
2910
3209
|
value.contentVersion,
|
|
@@ -2918,6 +3217,9 @@ var UpdateShareLinkInputValidator = z16.object({
|
|
|
2918
3217
|
message: "content replacement requires contentVersion, selectedCount, envelope and ownerEncryptedRecovery together"
|
|
2919
3218
|
});
|
|
2920
3219
|
}
|
|
3220
|
+
if (value.attachment !== void 0 && provided !== 4) {
|
|
3221
|
+
ctx.addIssue({ code: "custom", message: "attachment requires a content replacement" });
|
|
3222
|
+
}
|
|
2921
3223
|
});
|
|
2922
3224
|
var ShareLinkIdInputValidator = z16.object({ id: ShareLinkIdValidator }).strict();
|
|
2923
3225
|
var ShareLinkOperationKeyInputValidator = z16.object({ id: ShareLinkIdValidator, operationId: z16.string().uuid() }).strict();
|
|
@@ -3027,6 +3329,12 @@ export {
|
|
|
3027
3329
|
AppEventResponseValidator,
|
|
3028
3330
|
AppEventValidator,
|
|
3029
3331
|
AppListingStatusValidator,
|
|
3332
|
+
AppManifestDiffValidator,
|
|
3333
|
+
AppManifestTemplateChangeValidator,
|
|
3334
|
+
AppManifestTemplateRefValidator,
|
|
3335
|
+
AppManifestValidator,
|
|
3336
|
+
AppManifestVersionStatusValidator,
|
|
3337
|
+
AppManifestVersionValidator,
|
|
3030
3338
|
AppStoreListingCreateValidator,
|
|
3031
3339
|
AppStoreListingSubmitterValidator,
|
|
3032
3340
|
AppStoreListingUpdateValidator,
|
|
@@ -3048,6 +3356,8 @@ export {
|
|
|
3048
3356
|
BoostRecipientValidator,
|
|
3049
3357
|
BoostRecipientWithChildrenValidator,
|
|
3050
3358
|
BoostValidator,
|
|
3359
|
+
CapturedConsentRecordValidator,
|
|
3360
|
+
CapturedTemplateRecordValidator,
|
|
3051
3361
|
CheckCredentialEventValidator,
|
|
3052
3362
|
CheckIssuanceStatusEventValidator,
|
|
3053
3363
|
ClaimHookQueryValidator,
|
|
@@ -3069,6 +3379,7 @@ export {
|
|
|
3069
3379
|
ConsentFlowDataForDidQueryValidator,
|
|
3070
3380
|
ConsentFlowDataQueryValidator,
|
|
3071
3381
|
ConsentFlowGuardianApprovalValidator,
|
|
3382
|
+
ConsentFlowReferralValidator,
|
|
3072
3383
|
ConsentFlowTermValidator,
|
|
3073
3384
|
ConsentFlowTermsQueryValidator,
|
|
3074
3385
|
ConsentFlowTermsStatusValidator,
|
|
@@ -3076,6 +3387,10 @@ export {
|
|
|
3076
3387
|
ConsentFlowTransactionActionValidator,
|
|
3077
3388
|
ConsentFlowTransactionValidator,
|
|
3078
3389
|
ConsentFlowTransactionsQueryValidator,
|
|
3390
|
+
ConsentFlowWebhookMetadataValidator,
|
|
3391
|
+
ConsentRequestPersonalFieldValidator,
|
|
3392
|
+
ConsentRequestValidator,
|
|
3393
|
+
ConsentRequestWalletCategoryValidator,
|
|
3079
3394
|
ContactMethodCreateValidator,
|
|
3080
3395
|
ContactMethodQueryValidator,
|
|
3081
3396
|
ContactMethodValidator,
|
|
@@ -3083,6 +3398,7 @@ export {
|
|
|
3083
3398
|
ContactMethodVerificationValidator,
|
|
3084
3399
|
ContextValidator,
|
|
3085
3400
|
ContractCredentialValidator,
|
|
3401
|
+
ContractRequestFieldsValidator,
|
|
3086
3402
|
CountSkillsInputValidator,
|
|
3087
3403
|
CountSkillsResultValidator,
|
|
3088
3404
|
CreateContactMethodSessionResponseValidator,
|
|
@@ -3118,6 +3434,8 @@ export {
|
|
|
3118
3434
|
CriteriaValidator,
|
|
3119
3435
|
DEFAULT_BITSTRING_STATUS_LIST_SIZE,
|
|
3120
3436
|
DeleteFrameworkInputValidator,
|
|
3437
|
+
DeleteShareLinkAttachmentChunksInputValidator,
|
|
3438
|
+
DeleteShareLinkAttachmentChunksOutputValidator,
|
|
3121
3439
|
DeleteSkillInputValidator,
|
|
3122
3440
|
DidDocumentValidator,
|
|
3123
3441
|
EMPTY_IN_APP_MESSAGES_FLAG,
|
|
@@ -3140,6 +3458,7 @@ export {
|
|
|
3140
3458
|
GetCredentialRefreshHistoryResultValidator,
|
|
3141
3459
|
GetFullSkillTreeInputValidator,
|
|
3142
3460
|
GetFullSkillTreeResultValidator,
|
|
3461
|
+
GetShareLinkAttachmentChunkInputValidator,
|
|
3143
3462
|
GetSkillPathInputValidator,
|
|
3144
3463
|
GetSkillPathResultValidator,
|
|
3145
3464
|
GetTemplateRecipientsEventValidator,
|
|
@@ -3157,6 +3476,12 @@ export {
|
|
|
3157
3476
|
InboxCredentialRefreshReceiptValidator,
|
|
3158
3477
|
InboxCredentialValidator,
|
|
3159
3478
|
IncrementCounterEventValidator,
|
|
3479
|
+
InlineAlignmentValidator,
|
|
3480
|
+
InlineCredentialTemplateValidator,
|
|
3481
|
+
InlineEvidenceValidator,
|
|
3482
|
+
InlineSendCredentialEventValidator,
|
|
3483
|
+
InlineWalletCategoryValidator,
|
|
3484
|
+
InlineWalletSkillTagValidator,
|
|
3160
3485
|
InstalledAppValidator,
|
|
3161
3486
|
IssueInboxCredentialBatchItemResultValidator,
|
|
3162
3487
|
IssueInboxCredentialBatchItemValidator,
|
|
@@ -3209,6 +3534,7 @@ export {
|
|
|
3209
3534
|
LCNVisibleProfileValidator,
|
|
3210
3535
|
LaunchTypeValidator,
|
|
3211
3536
|
LearnCardRefreshAuthorizationValidator,
|
|
3537
|
+
LegacySendCredentialEventValidator,
|
|
3212
3538
|
LinkProviderFrameworkInputValidator,
|
|
3213
3539
|
ListShareLinksInputValidator,
|
|
3214
3540
|
MAX_ENDORSEMENTS,
|
|
@@ -3220,6 +3546,7 @@ export {
|
|
|
3220
3546
|
MAX_VP_MEMBERS,
|
|
3221
3547
|
ManagedCredentialRefreshReceiptValidator,
|
|
3222
3548
|
ManagedCredentialRefreshServiceValidator,
|
|
3549
|
+
NormalizedConsentScopesValidator,
|
|
3223
3550
|
PaginatedAppStoreListingsValidator,
|
|
3224
3551
|
PaginatedBoostRecipientsValidator,
|
|
3225
3552
|
PaginatedBoostRecipientsWithChildrenValidator,
|
|
@@ -3246,6 +3573,8 @@ export {
|
|
|
3246
3573
|
PaginatedVisibleLCNProfilesValidator,
|
|
3247
3574
|
PaginationOptionsValidator,
|
|
3248
3575
|
PaginationResponseValidator,
|
|
3576
|
+
PendingListingUpdateStatusValidator,
|
|
3577
|
+
PendingListingUpdateValidator,
|
|
3249
3578
|
PrepareRefreshableSendInputValidator,
|
|
3250
3579
|
PrepareRefreshableSendResultValidator,
|
|
3251
3580
|
ProfileValidator,
|
|
@@ -3258,6 +3587,9 @@ export {
|
|
|
3258
3587
|
PublishCredentialRefreshResultValidator,
|
|
3259
3588
|
PublishIssuerSignedRefreshValidator,
|
|
3260
3589
|
PublishSigningAuthorityRefreshValidator,
|
|
3590
|
+
PutShareLinkAttachmentChunkInputValidator,
|
|
3591
|
+
PutShareLinkAttachmentChunkOutputValidator,
|
|
3592
|
+
RawInlineCredentialTemplateValidator,
|
|
3261
3593
|
RefreshServiceValidator,
|
|
3262
3594
|
RegExpValidator,
|
|
3263
3595
|
RelatedValidator,
|
|
@@ -3284,6 +3616,7 @@ export {
|
|
|
3284
3616
|
SendBoostResponseValidator,
|
|
3285
3617
|
SendBoostTemplateValidator,
|
|
3286
3618
|
SendBrandingOptionsValidator,
|
|
3619
|
+
SendContractRequestValidator,
|
|
3287
3620
|
SendCredentialEventValidator,
|
|
3288
3621
|
SendInboxResponseValidator,
|
|
3289
3622
|
SendInputValidator,
|
|
@@ -3299,6 +3632,9 @@ export {
|
|
|
3299
3632
|
ShareEndorsementEntryValidator,
|
|
3300
3633
|
ShareEnvelopeValidator,
|
|
3301
3634
|
ShareIvValidator,
|
|
3635
|
+
ShareLinkAttachmentChunkEnvelopeValidator,
|
|
3636
|
+
ShareLinkAttachmentChunkOutputValidator,
|
|
3637
|
+
ShareLinkAttachmentValidator,
|
|
3302
3638
|
ShareLinkIdInputValidator,
|
|
3303
3639
|
ShareLinkIdValidator,
|
|
3304
3640
|
ShareLinkOperationKeyInputValidator,
|
|
@@ -3319,6 +3655,7 @@ export {
|
|
|
3319
3655
|
ShareRecoverySelectionValidator,
|
|
3320
3656
|
ShareSelectionEntryValidator,
|
|
3321
3657
|
ShareSharerValidator,
|
|
3658
|
+
SimpleInlineCredentialTemplateValidator,
|
|
3322
3659
|
SkillDeletionStrategyValidator,
|
|
3323
3660
|
SkillFrameworkAdminInputValidator,
|
|
3324
3661
|
SkillFrameworkAdminsValidator,
|
|
@@ -3349,9 +3686,12 @@ export {
|
|
|
3349
3686
|
UnsignedClrCredentialValidator,
|
|
3350
3687
|
UnsignedVCValidator,
|
|
3351
3688
|
UnsignedVPValidator,
|
|
3689
|
+
UnsupportedSignInOperationError,
|
|
3352
3690
|
UpdateFrameworkInputValidator,
|
|
3353
3691
|
UpdateShareLinkInputValidator,
|
|
3354
3692
|
UpdateSkillInputValidator,
|
|
3693
|
+
UpsertConsentContractEventValidator,
|
|
3694
|
+
UpsertConsentContractResponseValidator,
|
|
3355
3695
|
VC2EvidenceValidator,
|
|
3356
3696
|
VCValidator,
|
|
3357
3697
|
VPValidator,
|