@learncard/types 5.13.4 → 5.13.6
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/clr.d.ts +1027 -0
- package/dist/clr.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/lcn.d.ts +281 -5
- package/dist/lcn.d.ts.map +1 -1
- package/dist/types.cjs.development.js +165 -8
- package/dist/types.cjs.development.js.map +3 -3
- package/dist/types.cjs.production.min.js +10 -10
- package/dist/types.cjs.production.min.js.map +4 -4
- package/dist/types.esm.js +887 -729
- package/dist/types.esm.js.map +4 -4
- package/package.json +1 -1
package/dist/types.esm.js
CHANGED
|
@@ -404,68 +404,107 @@ var AchievementCredentialValidator = UnsignedAchievementCredentialValidator.exte
|
|
|
404
404
|
proof: ProofValidator.or(ProofValidator.array())
|
|
405
405
|
});
|
|
406
406
|
|
|
407
|
-
// src/
|
|
407
|
+
// src/clr.ts
|
|
408
408
|
import { z as z5 } from "zod";
|
|
409
|
-
var
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
409
|
+
var AssociationTypeValidator = z5.enum([
|
|
410
|
+
"exactMatchOf",
|
|
411
|
+
"extends",
|
|
412
|
+
"isChildOf",
|
|
413
|
+
"isParentOf",
|
|
414
|
+
"isPartOf",
|
|
415
|
+
"isPeerOf",
|
|
416
|
+
"isRelatedTo",
|
|
417
|
+
"precedes",
|
|
418
|
+
"replacedBy"
|
|
419
|
+
]).or(z5.string());
|
|
420
|
+
var AssociationValidator = z5.object({
|
|
421
|
+
type: z5.string().array().nonempty(),
|
|
422
|
+
associationType: AssociationTypeValidator,
|
|
423
|
+
sourceId: z5.string().optional(),
|
|
424
|
+
targetId: z5.string()
|
|
425
|
+
}).catchall(z5.any());
|
|
426
|
+
var ClrSubjectValidator = z5.object({
|
|
427
|
+
id: z5.string().optional(),
|
|
428
|
+
type: z5.string().array().nonempty(),
|
|
429
|
+
identifier: z5.any().array().optional(),
|
|
430
|
+
achievement: AchievementValidator.array().optional(),
|
|
431
|
+
association: AssociationValidator.array().optional(),
|
|
432
|
+
verifiableCredential: z5.any().array().optional()
|
|
433
|
+
}).catchall(z5.any());
|
|
434
|
+
var UnsignedClrCredentialValidator = UnsignedVCValidator.extend({
|
|
435
|
+
name: z5.string().optional(),
|
|
436
|
+
description: z5.string().optional(),
|
|
437
|
+
image: ImageValidator.optional(),
|
|
438
|
+
credentialSubject: ClrSubjectValidator.or(ClrSubjectValidator.array()),
|
|
439
|
+
endorsement: EndorsementCredentialValidator.array().optional(),
|
|
440
|
+
partial: z5.boolean().optional()
|
|
441
|
+
});
|
|
442
|
+
var ClrCredentialValidator = UnsignedClrCredentialValidator.extend({
|
|
443
|
+
proof: ProofValidator.or(ProofValidator.array())
|
|
444
|
+
});
|
|
445
|
+
|
|
446
|
+
// src/learncard.ts
|
|
447
|
+
import { z as z6 } from "zod";
|
|
448
|
+
var VerificationCheckValidator = z6.object({
|
|
449
|
+
checks: z6.string().array(),
|
|
450
|
+
warnings: z6.string().array(),
|
|
451
|
+
errors: z6.string().array()
|
|
413
452
|
});
|
|
414
|
-
var VerificationStatusValidator =
|
|
453
|
+
var VerificationStatusValidator = z6.enum(["Success", "Failed", "Error"]);
|
|
415
454
|
var VerificationStatusEnum = VerificationStatusValidator.enum;
|
|
416
|
-
var VerificationItemValidator =
|
|
417
|
-
check:
|
|
455
|
+
var VerificationItemValidator = z6.object({
|
|
456
|
+
check: z6.string(),
|
|
418
457
|
status: VerificationStatusValidator,
|
|
419
|
-
message:
|
|
420
|
-
details:
|
|
458
|
+
message: z6.string().optional(),
|
|
459
|
+
details: z6.string().optional()
|
|
421
460
|
});
|
|
422
|
-
var CredentialInfoValidator =
|
|
423
|
-
title:
|
|
424
|
-
createdAt:
|
|
461
|
+
var CredentialInfoValidator = z6.object({
|
|
462
|
+
title: z6.string().optional(),
|
|
463
|
+
createdAt: z6.string().optional(),
|
|
425
464
|
issuer: ProfileValidator.optional(),
|
|
426
465
|
issuee: ProfileValidator.optional(),
|
|
427
466
|
credentialSubject: CredentialSubjectValidator.optional()
|
|
428
467
|
});
|
|
429
|
-
var CredentialRecordValidator =
|
|
468
|
+
var CredentialRecordValidator = z6.object({ id: z6.string(), uri: z6.string() }).catchall(z6.any());
|
|
430
469
|
|
|
431
470
|
// src/learncloud.ts
|
|
432
|
-
import { z as
|
|
471
|
+
import { z as z8 } from "zod";
|
|
433
472
|
|
|
434
473
|
// src/mongo.ts
|
|
435
|
-
import { z as
|
|
436
|
-
var PaginationOptionsValidator =
|
|
437
|
-
limit:
|
|
438
|
-
cursor:
|
|
439
|
-
sort:
|
|
474
|
+
import { z as z7 } from "zod";
|
|
475
|
+
var PaginationOptionsValidator = z7.object({
|
|
476
|
+
limit: z7.number(),
|
|
477
|
+
cursor: z7.string().optional(),
|
|
478
|
+
sort: z7.string().optional()
|
|
440
479
|
});
|
|
441
|
-
var PaginationResponseValidator =
|
|
442
|
-
cursor:
|
|
443
|
-
hasMore:
|
|
480
|
+
var PaginationResponseValidator = z7.object({
|
|
481
|
+
cursor: z7.string().optional(),
|
|
482
|
+
hasMore: z7.boolean()
|
|
444
483
|
});
|
|
445
484
|
|
|
446
485
|
// src/learncloud.ts
|
|
447
|
-
var EncryptedRecordValidator =
|
|
486
|
+
var EncryptedRecordValidator = z8.object({ encryptedRecord: JWEValidator, fields: z8.string().array() }).catchall(z8.any());
|
|
448
487
|
var PaginatedEncryptedRecordsValidator = PaginationResponseValidator.extend({
|
|
449
488
|
records: EncryptedRecordValidator.array()
|
|
450
489
|
});
|
|
451
490
|
var EncryptedCredentialRecordValidator = EncryptedRecordValidator.extend({
|
|
452
|
-
id:
|
|
491
|
+
id: z8.string()
|
|
453
492
|
});
|
|
454
493
|
var PaginatedEncryptedCredentialRecordsValidator = PaginationResponseValidator.extend({
|
|
455
494
|
records: EncryptedCredentialRecordValidator.array()
|
|
456
495
|
});
|
|
457
496
|
|
|
458
497
|
// src/lcn.ts
|
|
459
|
-
import { z as
|
|
498
|
+
import { z as z10 } from "zod";
|
|
460
499
|
|
|
461
500
|
// src/queries.ts
|
|
462
|
-
import { z as
|
|
501
|
+
import { z as z9 } from "zod";
|
|
463
502
|
var parseRegexString = /* @__PURE__ */ __name((regexStr) => {
|
|
464
503
|
const match = regexStr.match(/^\/(.*)\/([gimsuy]*)$/);
|
|
465
504
|
if (!match) throw new Error("Invalid RegExp string format");
|
|
466
505
|
return { pattern: match[1], flags: match[2] };
|
|
467
506
|
}, "parseRegexString");
|
|
468
|
-
var RegExpStringValidator =
|
|
507
|
+
var RegExpStringValidator = z9.string().refine(
|
|
469
508
|
(str) => {
|
|
470
509
|
try {
|
|
471
510
|
parseRegexString(str);
|
|
@@ -485,54 +524,54 @@ var RegExpStringValidator = z8.string().refine(
|
|
|
485
524
|
throw new Error(`Invalid RegExp: ${error.message}`);
|
|
486
525
|
}
|
|
487
526
|
}).meta({ override: { type: "string" } });
|
|
488
|
-
var RegExpValidator =
|
|
489
|
-
var BaseStringQuery =
|
|
490
|
-
var StringQuery =
|
|
527
|
+
var RegExpValidator = z9.instanceof(RegExp).meta({ override: { type: "string" } }).or(RegExpStringValidator).meta({ override: { type: "string" } });
|
|
528
|
+
var BaseStringQuery = z9.string().or(z9.object({ $in: z9.string().array() })).or(z9.object({ $regex: RegExpValidator.meta({ override: { type: "string" } }) }));
|
|
529
|
+
var StringQuery = z9.union([
|
|
491
530
|
BaseStringQuery,
|
|
492
|
-
|
|
531
|
+
z9.object({
|
|
493
532
|
$or: BaseStringQuery.array()
|
|
494
533
|
})
|
|
495
534
|
]);
|
|
496
535
|
|
|
497
536
|
// src/lcn.ts
|
|
498
|
-
var LCNProfileDisplayValidator =
|
|
499
|
-
backgroundColor:
|
|
500
|
-
backgroundImage:
|
|
501
|
-
fadeBackgroundImage:
|
|
502
|
-
repeatBackgroundImage:
|
|
503
|
-
fontColor:
|
|
504
|
-
accentColor:
|
|
505
|
-
accentFontColor:
|
|
506
|
-
idBackgroundImage:
|
|
507
|
-
fadeIdBackgroundImage:
|
|
508
|
-
idBackgroundColor:
|
|
509
|
-
repeatIdBackgroundImage:
|
|
510
|
-
});
|
|
511
|
-
var ProfileVisibilityEnum =
|
|
512
|
-
var AllowConnectionRequestsEnum =
|
|
513
|
-
var LCNProfileValidator =
|
|
514
|
-
profileId:
|
|
515
|
-
displayName:
|
|
516
|
-
shortBio:
|
|
517
|
-
bio:
|
|
518
|
-
did:
|
|
519
|
-
isPrivate:
|
|
537
|
+
var LCNProfileDisplayValidator = z10.object({
|
|
538
|
+
backgroundColor: z10.string().optional(),
|
|
539
|
+
backgroundImage: z10.string().optional(),
|
|
540
|
+
fadeBackgroundImage: z10.boolean().optional(),
|
|
541
|
+
repeatBackgroundImage: z10.boolean().optional(),
|
|
542
|
+
fontColor: z10.string().optional(),
|
|
543
|
+
accentColor: z10.string().optional(),
|
|
544
|
+
accentFontColor: z10.string().optional(),
|
|
545
|
+
idBackgroundImage: z10.string().optional(),
|
|
546
|
+
fadeIdBackgroundImage: z10.boolean().optional(),
|
|
547
|
+
idBackgroundColor: z10.string().optional(),
|
|
548
|
+
repeatIdBackgroundImage: z10.boolean().optional()
|
|
549
|
+
});
|
|
550
|
+
var ProfileVisibilityEnum = z10.enum(["public", "connections_only", "private"]);
|
|
551
|
+
var AllowConnectionRequestsEnum = z10.enum(["anyone", "invite_only"]);
|
|
552
|
+
var LCNProfileValidator = z10.object({
|
|
553
|
+
profileId: z10.string().min(3).max(40).describe("Unique, URL-safe identifier for the profile."),
|
|
554
|
+
displayName: z10.string().default("").describe("Human-readable display name for the profile."),
|
|
555
|
+
shortBio: z10.string().default("").describe("Short bio for the profile."),
|
|
556
|
+
bio: z10.string().default("").describe("Longer bio for the profile."),
|
|
557
|
+
did: z10.string().describe("Decentralized Identifier for the profile. (auto-assigned)"),
|
|
558
|
+
isPrivate: z10.boolean().optional().describe("Whether the profile is private or not and shows up in search results."),
|
|
520
559
|
profileVisibility: ProfileVisibilityEnum.default("public").optional().describe("Profile visibility: 'public', 'connections_only', or 'private'."),
|
|
521
|
-
showEmail:
|
|
560
|
+
showEmail: z10.boolean().default(false).optional().describe("Whether to show email to connections."),
|
|
522
561
|
allowConnectionRequests: AllowConnectionRequestsEnum.default("anyone").optional().describe("Who can send connection requests: 'anyone' or 'invite_only'."),
|
|
523
|
-
email:
|
|
524
|
-
image:
|
|
525
|
-
heroImage:
|
|
526
|
-
websiteLink:
|
|
527
|
-
isServiceProfile:
|
|
528
|
-
type:
|
|
529
|
-
notificationsWebhook:
|
|
562
|
+
email: z10.string().optional().describe("Contact email address for the profile. (deprecated)"),
|
|
563
|
+
image: z10.string().optional().describe("Profile image URL for the profile."),
|
|
564
|
+
heroImage: z10.string().optional().describe("Hero image URL for the profile."),
|
|
565
|
+
websiteLink: z10.string().optional().describe("Website link for the profile."),
|
|
566
|
+
isServiceProfile: z10.boolean().default(false).optional().describe("Whether the profile is a service profile or not."),
|
|
567
|
+
type: z10.string().optional().describe('Profile type: e.g. "person", "organization", "service".'),
|
|
568
|
+
notificationsWebhook: z10.string().url().startsWith("http").optional().describe("URL to send notifications to."),
|
|
530
569
|
display: LCNProfileDisplayValidator.optional().describe("Display settings for the profile."),
|
|
531
|
-
highlightedCredentials:
|
|
532
|
-
role:
|
|
533
|
-
dob:
|
|
534
|
-
country:
|
|
535
|
-
approved:
|
|
570
|
+
highlightedCredentials: z10.array(z10.string()).max(5).optional().describe("Up to 5 unique boost URIs to highlight on the profile."),
|
|
571
|
+
role: z10.string().default("").optional().describe('Role of the profile: e.g. "teacher", "student".'),
|
|
572
|
+
dob: z10.string().default("").optional().describe('Date of birth of the profile: e.g. "1990-01-01".'),
|
|
573
|
+
country: z10.string().optional().describe("Country for the profile."),
|
|
574
|
+
approved: z10.boolean().optional().describe("Approval status for the profile.")
|
|
536
575
|
});
|
|
537
576
|
var LCNPublicProfileValidator = LCNProfileValidator.pick({
|
|
538
577
|
profileId: true,
|
|
@@ -554,20 +593,20 @@ var LCNAuthedProfileValidator = LCNPublicProfileValidator.extend({
|
|
|
554
593
|
var LCNConnectionProfileValidator = LCNAuthedProfileValidator.extend({
|
|
555
594
|
email: LCNProfileValidator.shape.email
|
|
556
595
|
});
|
|
557
|
-
var LCNVisibleProfileValidator =
|
|
596
|
+
var LCNVisibleProfileValidator = z10.union([
|
|
558
597
|
LCNConnectionProfileValidator.strict(),
|
|
559
598
|
LCNAuthedProfileValidator.strict(),
|
|
560
599
|
LCNPublicProfileValidator.strict(),
|
|
561
600
|
LCNProfileValidator
|
|
562
601
|
]);
|
|
563
|
-
var LCNProfileQueryValidator =
|
|
602
|
+
var LCNProfileQueryValidator = z10.object({
|
|
564
603
|
profileId: StringQuery,
|
|
565
604
|
displayName: StringQuery,
|
|
566
605
|
shortBio: StringQuery,
|
|
567
606
|
bio: StringQuery,
|
|
568
607
|
email: StringQuery,
|
|
569
608
|
websiteLink: StringQuery,
|
|
570
|
-
isServiceProfile:
|
|
609
|
+
isServiceProfile: z10.boolean(),
|
|
571
610
|
type: StringQuery
|
|
572
611
|
}).partial();
|
|
573
612
|
var PaginatedLCNProfilesValidator = PaginationResponseValidator.extend({
|
|
@@ -576,26 +615,26 @@ var PaginatedLCNProfilesValidator = PaginationResponseValidator.extend({
|
|
|
576
615
|
var PaginatedVisibleLCNProfilesValidator = PaginationResponseValidator.extend({
|
|
577
616
|
records: LCNVisibleProfileValidator.array()
|
|
578
617
|
});
|
|
579
|
-
var LCNProfileConnectionStatusEnum =
|
|
618
|
+
var LCNProfileConnectionStatusEnum = z10.enum([
|
|
580
619
|
"CONNECTED",
|
|
581
620
|
"PENDING_REQUEST_SENT",
|
|
582
621
|
"PENDING_REQUEST_RECEIVED",
|
|
583
622
|
"NOT_CONNECTED"
|
|
584
623
|
]);
|
|
585
|
-
var LCNProfileManagerValidator =
|
|
586
|
-
id:
|
|
587
|
-
created:
|
|
588
|
-
displayName:
|
|
589
|
-
shortBio:
|
|
590
|
-
bio:
|
|
591
|
-
email:
|
|
592
|
-
image:
|
|
593
|
-
heroImage:
|
|
624
|
+
var LCNProfileManagerValidator = z10.object({
|
|
625
|
+
id: z10.string(),
|
|
626
|
+
created: z10.string(),
|
|
627
|
+
displayName: z10.string().default("").optional(),
|
|
628
|
+
shortBio: z10.string().default("").optional(),
|
|
629
|
+
bio: z10.string().default("").optional(),
|
|
630
|
+
email: z10.string().optional(),
|
|
631
|
+
image: z10.string().optional(),
|
|
632
|
+
heroImage: z10.string().optional()
|
|
594
633
|
});
|
|
595
634
|
var PaginatedLCNProfileManagersValidator = PaginationResponseValidator.extend({
|
|
596
|
-
records: LCNProfileManagerValidator.extend({ did:
|
|
635
|
+
records: LCNProfileManagerValidator.extend({ did: z10.string() }).array()
|
|
597
636
|
});
|
|
598
|
-
var LCNProfileManagerQueryValidator =
|
|
637
|
+
var LCNProfileManagerQueryValidator = z10.object({
|
|
599
638
|
id: StringQuery,
|
|
600
639
|
displayName: StringQuery,
|
|
601
640
|
shortBio: StringQuery,
|
|
@@ -603,104 +642,104 @@ var LCNProfileManagerQueryValidator = z9.object({
|
|
|
603
642
|
email: StringQuery
|
|
604
643
|
}).partial();
|
|
605
644
|
var PaginatedLCNProfilesAndManagersValidator = PaginationResponseValidator.extend({
|
|
606
|
-
records:
|
|
645
|
+
records: z10.object({
|
|
607
646
|
profile: LCNProfileValidator,
|
|
608
|
-
manager: LCNProfileManagerValidator.extend({ did:
|
|
647
|
+
manager: LCNProfileManagerValidator.extend({ did: z10.string() }).optional()
|
|
609
648
|
}).array()
|
|
610
649
|
});
|
|
611
|
-
var SentCredentialInfoValidator =
|
|
612
|
-
uri:
|
|
613
|
-
to:
|
|
614
|
-
from:
|
|
615
|
-
sent:
|
|
616
|
-
received:
|
|
617
|
-
metadata:
|
|
618
|
-
});
|
|
619
|
-
var BoostPermissionsValidator =
|
|
620
|
-
role:
|
|
621
|
-
canView:
|
|
622
|
-
canEdit:
|
|
623
|
-
canIssue:
|
|
624
|
-
canRevoke:
|
|
625
|
-
canManagePermissions:
|
|
626
|
-
canIssueChildren:
|
|
627
|
-
canCreateChildren:
|
|
628
|
-
canEditChildren:
|
|
629
|
-
canRevokeChildren:
|
|
630
|
-
canManageChildrenPermissions:
|
|
631
|
-
canManageChildrenProfiles:
|
|
632
|
-
canViewAnalytics:
|
|
633
|
-
});
|
|
634
|
-
var BoostPermissionsQueryValidator =
|
|
650
|
+
var SentCredentialInfoValidator = z10.object({
|
|
651
|
+
uri: z10.string(),
|
|
652
|
+
to: z10.string(),
|
|
653
|
+
from: z10.string(),
|
|
654
|
+
sent: z10.iso.datetime(),
|
|
655
|
+
received: z10.iso.datetime().optional(),
|
|
656
|
+
metadata: z10.record(z10.string(), z10.unknown()).optional()
|
|
657
|
+
});
|
|
658
|
+
var BoostPermissionsValidator = z10.object({
|
|
659
|
+
role: z10.string(),
|
|
660
|
+
canView: z10.boolean().default(true),
|
|
661
|
+
canEdit: z10.boolean(),
|
|
662
|
+
canIssue: z10.boolean(),
|
|
663
|
+
canRevoke: z10.boolean(),
|
|
664
|
+
canManagePermissions: z10.boolean(),
|
|
665
|
+
canIssueChildren: z10.string(),
|
|
666
|
+
canCreateChildren: z10.string(),
|
|
667
|
+
canEditChildren: z10.string(),
|
|
668
|
+
canRevokeChildren: z10.string(),
|
|
669
|
+
canManageChildrenPermissions: z10.string(),
|
|
670
|
+
canManageChildrenProfiles: z10.boolean().optional(),
|
|
671
|
+
canViewAnalytics: z10.boolean()
|
|
672
|
+
});
|
|
673
|
+
var BoostPermissionsQueryValidator = z10.object({
|
|
635
674
|
role: StringQuery,
|
|
636
|
-
canView:
|
|
637
|
-
canEdit:
|
|
638
|
-
canIssue:
|
|
639
|
-
canRevoke:
|
|
640
|
-
canManagePermissions:
|
|
675
|
+
canView: z10.boolean(),
|
|
676
|
+
canEdit: z10.boolean(),
|
|
677
|
+
canIssue: z10.boolean(),
|
|
678
|
+
canRevoke: z10.boolean(),
|
|
679
|
+
canManagePermissions: z10.boolean(),
|
|
641
680
|
canIssueChildren: StringQuery,
|
|
642
681
|
canCreateChildren: StringQuery,
|
|
643
682
|
canEditChildren: StringQuery,
|
|
644
683
|
canRevokeChildren: StringQuery,
|
|
645
684
|
canManageChildrenPermissions: StringQuery,
|
|
646
|
-
canManageChildrenProfiles:
|
|
647
|
-
canViewAnalytics:
|
|
685
|
+
canManageChildrenProfiles: z10.boolean(),
|
|
686
|
+
canViewAnalytics: z10.boolean()
|
|
648
687
|
}).partial();
|
|
649
|
-
var ClaimHookTypeValidator =
|
|
650
|
-
var ClaimHookValidator =
|
|
651
|
-
|
|
652
|
-
type:
|
|
653
|
-
data:
|
|
654
|
-
claimUri:
|
|
655
|
-
targetUri:
|
|
688
|
+
var ClaimHookTypeValidator = z10.enum(["GRANT_PERMISSIONS", "ADD_ADMIN", "AUTO_CONNECT"]);
|
|
689
|
+
var ClaimHookValidator = z10.discriminatedUnion("type", [
|
|
690
|
+
z10.object({
|
|
691
|
+
type: z10.literal(ClaimHookTypeValidator.enum.GRANT_PERMISSIONS),
|
|
692
|
+
data: z10.object({
|
|
693
|
+
claimUri: z10.string(),
|
|
694
|
+
targetUri: z10.string(),
|
|
656
695
|
permissions: BoostPermissionsValidator.partial()
|
|
657
696
|
})
|
|
658
697
|
}),
|
|
659
|
-
|
|
660
|
-
type:
|
|
661
|
-
data:
|
|
698
|
+
z10.object({
|
|
699
|
+
type: z10.literal(ClaimHookTypeValidator.enum.ADD_ADMIN),
|
|
700
|
+
data: z10.object({ claimUri: z10.string(), targetUri: z10.string() })
|
|
662
701
|
}),
|
|
663
|
-
|
|
664
|
-
type:
|
|
665
|
-
data:
|
|
702
|
+
z10.object({
|
|
703
|
+
type: z10.literal(ClaimHookTypeValidator.enum.AUTO_CONNECT),
|
|
704
|
+
data: z10.object({ claimUri: z10.string(), targetUri: z10.string() })
|
|
666
705
|
})
|
|
667
706
|
]);
|
|
668
|
-
var ClaimHookQueryValidator =
|
|
707
|
+
var ClaimHookQueryValidator = z10.object({
|
|
669
708
|
type: StringQuery,
|
|
670
|
-
data:
|
|
709
|
+
data: z10.object({
|
|
671
710
|
claimUri: StringQuery,
|
|
672
711
|
targetUri: StringQuery,
|
|
673
712
|
permissions: BoostPermissionsQueryValidator.partial()
|
|
674
713
|
}).partial()
|
|
675
714
|
});
|
|
676
|
-
var FullClaimHookValidator =
|
|
715
|
+
var FullClaimHookValidator = z10.object({ id: z10.string(), createdAt: z10.string(), updatedAt: z10.string() }).and(ClaimHookValidator);
|
|
677
716
|
var PaginatedClaimHooksValidator = PaginationResponseValidator.extend({
|
|
678
717
|
records: FullClaimHookValidator.array()
|
|
679
718
|
});
|
|
680
|
-
var LCNBoostStatus =
|
|
681
|
-
var BoostValidator =
|
|
682
|
-
uri:
|
|
683
|
-
name:
|
|
684
|
-
type:
|
|
685
|
-
category:
|
|
719
|
+
var LCNBoostStatus = z10.enum(["DRAFT", "PROVISIONAL", "LIVE"]);
|
|
720
|
+
var BoostValidator = z10.object({
|
|
721
|
+
uri: z10.string(),
|
|
722
|
+
name: z10.string().optional(),
|
|
723
|
+
type: z10.string().optional(),
|
|
724
|
+
category: z10.string().optional(),
|
|
686
725
|
status: LCNBoostStatus.optional(),
|
|
687
|
-
autoConnectRecipients:
|
|
688
|
-
meta:
|
|
726
|
+
autoConnectRecipients: z10.boolean().optional(),
|
|
727
|
+
meta: z10.record(z10.string(), z10.any()).optional(),
|
|
689
728
|
claimPermissions: BoostPermissionsValidator.optional(),
|
|
690
729
|
defaultPermissions: BoostPermissionsValidator.optional(),
|
|
691
|
-
allowAnyoneToCreateChildren:
|
|
730
|
+
allowAnyoneToCreateChildren: z10.boolean().optional()
|
|
692
731
|
});
|
|
693
|
-
var BaseBoostQueryValidator =
|
|
732
|
+
var BaseBoostQueryValidator = z10.object({
|
|
694
733
|
uri: StringQuery,
|
|
695
734
|
name: StringQuery,
|
|
696
735
|
type: StringQuery,
|
|
697
736
|
category: StringQuery,
|
|
698
|
-
meta:
|
|
699
|
-
status: LCNBoostStatus.or(
|
|
700
|
-
autoConnectRecipients:
|
|
737
|
+
meta: z10.record(z10.string(), StringQuery),
|
|
738
|
+
status: LCNBoostStatus.or(z10.object({ $in: LCNBoostStatus.array() })),
|
|
739
|
+
autoConnectRecipients: z10.boolean()
|
|
701
740
|
}).partial();
|
|
702
|
-
var BoostQueryValidator =
|
|
703
|
-
|
|
741
|
+
var BoostQueryValidator = z10.union([
|
|
742
|
+
z10.object({
|
|
704
743
|
$or: BaseBoostQueryValidator.array()
|
|
705
744
|
}),
|
|
706
745
|
BaseBoostQueryValidator
|
|
@@ -708,314 +747,334 @@ var BoostQueryValidator = z9.union([
|
|
|
708
747
|
var PaginatedBoostsValidator = PaginationResponseValidator.extend({
|
|
709
748
|
records: BoostValidator.array()
|
|
710
749
|
});
|
|
711
|
-
var BoostRecipientValidator =
|
|
750
|
+
var BoostRecipientValidator = z10.object({
|
|
712
751
|
to: LCNVisibleProfileValidator,
|
|
713
|
-
from:
|
|
714
|
-
received:
|
|
715
|
-
uri:
|
|
752
|
+
from: z10.string(),
|
|
753
|
+
received: z10.string().optional(),
|
|
754
|
+
uri: z10.string().optional()
|
|
716
755
|
});
|
|
717
756
|
var PaginatedBoostRecipientsValidator = PaginationResponseValidator.extend({
|
|
718
757
|
records: BoostRecipientValidator.array()
|
|
719
758
|
});
|
|
720
|
-
var BoostRecipientWithChildrenValidator =
|
|
759
|
+
var BoostRecipientWithChildrenValidator = z10.object({
|
|
721
760
|
to: LCNVisibleProfileValidator,
|
|
722
|
-
from:
|
|
723
|
-
received:
|
|
724
|
-
boostUris:
|
|
725
|
-
credentialUris:
|
|
761
|
+
from: z10.string(),
|
|
762
|
+
received: z10.string().optional(),
|
|
763
|
+
boostUris: z10.array(z10.string()),
|
|
764
|
+
credentialUris: z10.array(z10.string()).optional()
|
|
726
765
|
});
|
|
727
766
|
var PaginatedBoostRecipientsWithChildrenValidator = PaginationResponseValidator.extend({
|
|
728
767
|
records: BoostRecipientWithChildrenValidator.array()
|
|
729
768
|
});
|
|
730
|
-
var LCNBoostClaimLinkSigningAuthorityValidator =
|
|
731
|
-
endpoint:
|
|
732
|
-
name:
|
|
733
|
-
did:
|
|
769
|
+
var LCNBoostClaimLinkSigningAuthorityValidator = z10.object({
|
|
770
|
+
endpoint: z10.string(),
|
|
771
|
+
name: z10.string(),
|
|
772
|
+
did: z10.string().optional()
|
|
734
773
|
});
|
|
735
|
-
var LCNBoostClaimLinkOptionsValidator =
|
|
736
|
-
ttlSeconds:
|
|
737
|
-
totalUses:
|
|
774
|
+
var LCNBoostClaimLinkOptionsValidator = z10.object({
|
|
775
|
+
ttlSeconds: z10.number().optional(),
|
|
776
|
+
totalUses: z10.number().optional()
|
|
738
777
|
});
|
|
739
|
-
var LCNSigningAuthorityValidator =
|
|
740
|
-
endpoint:
|
|
778
|
+
var LCNSigningAuthorityValidator = z10.object({
|
|
779
|
+
endpoint: z10.string()
|
|
741
780
|
});
|
|
742
|
-
var LCNSigningAuthorityForUserValidator =
|
|
781
|
+
var LCNSigningAuthorityForUserValidator = z10.object({
|
|
743
782
|
signingAuthority: LCNSigningAuthorityValidator,
|
|
744
|
-
relationship:
|
|
745
|
-
name:
|
|
783
|
+
relationship: z10.object({
|
|
784
|
+
name: z10.string().max(15).regex(/^[a-z0-9-]+$/, {
|
|
746
785
|
message: "The input string must contain only lowercase letters, numbers, and hyphens."
|
|
747
786
|
}),
|
|
748
|
-
did:
|
|
749
|
-
isPrimary:
|
|
787
|
+
did: z10.string(),
|
|
788
|
+
isPrimary: z10.boolean().optional()
|
|
750
789
|
})
|
|
751
790
|
});
|
|
752
|
-
var AutoBoostConfigValidator =
|
|
753
|
-
boostUri:
|
|
754
|
-
signingAuthority:
|
|
755
|
-
endpoint:
|
|
756
|
-
name:
|
|
791
|
+
var AutoBoostConfigValidator = z10.object({
|
|
792
|
+
boostUri: z10.string(),
|
|
793
|
+
signingAuthority: z10.object({
|
|
794
|
+
endpoint: z10.string(),
|
|
795
|
+
name: z10.string()
|
|
757
796
|
})
|
|
758
797
|
});
|
|
759
798
|
var SendBoostTemplateValidator = BoostValidator.partial().omit({ uri: true, claimPermissions: true }).extend({
|
|
760
799
|
credential: VCValidator.or(UnsignedVCValidator),
|
|
761
800
|
claimPermissions: BoostPermissionsValidator.partial().optional(),
|
|
762
|
-
skills:
|
|
763
|
-
|
|
764
|
-
frameworkId:
|
|
765
|
-
id:
|
|
766
|
-
proficiencyLevel:
|
|
801
|
+
skills: z10.array(
|
|
802
|
+
z10.object({
|
|
803
|
+
frameworkId: z10.string(),
|
|
804
|
+
id: z10.string(),
|
|
805
|
+
proficiencyLevel: z10.number().optional()
|
|
767
806
|
})
|
|
768
807
|
).min(1).optional()
|
|
769
808
|
});
|
|
770
|
-
var SendBrandingOptionsValidator =
|
|
771
|
-
issuerName:
|
|
772
|
-
issuerLogoUrl:
|
|
773
|
-
credentialName:
|
|
774
|
-
recipientName:
|
|
775
|
-
});
|
|
776
|
-
var
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
var
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
809
|
+
var SendBrandingOptionsValidator = z10.object({
|
|
810
|
+
issuerName: z10.string().optional().describe("Name of the issuing organization"),
|
|
811
|
+
issuerLogoUrl: z10.string().url().optional().describe("Logo URL of the issuing organization"),
|
|
812
|
+
credentialName: z10.string().optional().describe("Display name for the credential"),
|
|
813
|
+
recipientName: z10.string().optional().describe("Name of the recipient for personalization")
|
|
814
|
+
});
|
|
815
|
+
var GuardianStatusValidator = z10.enum([
|
|
816
|
+
"AWAITING_GUARDIAN",
|
|
817
|
+
"GUARDIAN_APPROVED",
|
|
818
|
+
"GUARDIAN_REJECTED"
|
|
819
|
+
]);
|
|
820
|
+
var SendOptionsValidator = z10.object({
|
|
821
|
+
webhookUrl: z10.string().url().optional().describe("Webhook URL to receive claim notifications"),
|
|
822
|
+
suppressDelivery: z10.boolean().optional().describe("If true, returns claimUrl without sending email/SMS"),
|
|
823
|
+
branding: SendBrandingOptionsValidator.optional().describe("Branding for email/SMS delivery"),
|
|
824
|
+
guardianEmail: z10.string().email().optional().describe("Guardian email that must approve before student can claim")
|
|
825
|
+
});
|
|
826
|
+
var SendBoostInputValidator = z10.object({
|
|
827
|
+
type: z10.literal("boost"),
|
|
828
|
+
recipient: z10.string().describe("Profile ID, DID, email, or phone number (auto-detected)"),
|
|
829
|
+
contractUri: z10.string().optional(),
|
|
830
|
+
templateUri: z10.string().optional(),
|
|
786
831
|
template: SendBoostTemplateValidator.optional(),
|
|
787
832
|
signedCredential: VCValidator.optional(),
|
|
788
833
|
options: SendOptionsValidator.optional().describe(
|
|
789
834
|
"Options for email/phone recipients (Universal Inbox)"
|
|
790
835
|
),
|
|
791
|
-
templateData:
|
|
792
|
-
integrationId:
|
|
836
|
+
templateData: z10.record(z10.string(), z10.unknown()).optional(),
|
|
837
|
+
integrationId: z10.string().optional().describe("Integration ID for activity tracking")
|
|
793
838
|
}).refine((data) => data.templateUri || data.template || data.signedCredential, {
|
|
794
839
|
message: "Either templateUri, template, or signedCredential must be provided.",
|
|
795
840
|
path: ["templateUri"]
|
|
841
|
+
}).refine(
|
|
842
|
+
(data) => {
|
|
843
|
+
if (data.options?.guardianEmail) {
|
|
844
|
+
return data.options.guardianEmail.toLowerCase() !== data.recipient.toLowerCase();
|
|
845
|
+
}
|
|
846
|
+
return true;
|
|
847
|
+
},
|
|
848
|
+
{
|
|
849
|
+
message: "guardianEmail must differ from recipient (self-approval not allowed)",
|
|
850
|
+
path: ["options", "guardianEmail"]
|
|
851
|
+
}
|
|
852
|
+
);
|
|
853
|
+
var SendInboxResponseValidator = z10.object({
|
|
854
|
+
issuanceId: z10.string(),
|
|
855
|
+
status: z10.enum(["PENDING", "ISSUED", "EXPIRED", "DELIVERED", "CLAIMED"]),
|
|
856
|
+
claimUrl: z10.string().url().optional().describe("Present when suppressDelivery=true"),
|
|
857
|
+
guardianStatus: GuardianStatusValidator.optional().describe(
|
|
858
|
+
"Present when guardianEmail was specified"
|
|
859
|
+
)
|
|
796
860
|
});
|
|
797
|
-
var
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
var SendBoostResponseValidator = z9.object({
|
|
803
|
-
type: z9.literal("boost"),
|
|
804
|
-
credentialUri: z9.string(),
|
|
805
|
-
uri: z9.string(),
|
|
806
|
-
activityId: z9.string().describe("Links to the activity lifecycle for this issuance"),
|
|
861
|
+
var SendBoostResponseValidator = z10.object({
|
|
862
|
+
type: z10.literal("boost"),
|
|
863
|
+
credentialUri: z10.string(),
|
|
864
|
+
uri: z10.string(),
|
|
865
|
+
activityId: z10.string().describe("Links to the activity lifecycle for this issuance"),
|
|
807
866
|
inbox: SendInboxResponseValidator.optional().describe(
|
|
808
867
|
"Present when sent via email/phone (Universal Inbox)"
|
|
809
868
|
)
|
|
810
869
|
});
|
|
811
|
-
var SendInputValidator =
|
|
812
|
-
var SendResponseValidator =
|
|
813
|
-
var ConsentFlowTermsStatusValidator =
|
|
814
|
-
var ConsentFlowContractValidator =
|
|
815
|
-
read:
|
|
816
|
-
anonymize:
|
|
817
|
-
credentials:
|
|
818
|
-
categories:
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
required:
|
|
822
|
-
defaultEnabled:
|
|
870
|
+
var SendInputValidator = z10.discriminatedUnion("type", [SendBoostInputValidator]);
|
|
871
|
+
var SendResponseValidator = z10.discriminatedUnion("type", [SendBoostResponseValidator]);
|
|
872
|
+
var ConsentFlowTermsStatusValidator = z10.enum(["live", "stale", "withdrawn"]);
|
|
873
|
+
var ConsentFlowContractValidator = z10.object({
|
|
874
|
+
read: z10.object({
|
|
875
|
+
anonymize: z10.boolean().optional(),
|
|
876
|
+
credentials: z10.object({
|
|
877
|
+
categories: z10.record(
|
|
878
|
+
z10.string(),
|
|
879
|
+
z10.object({
|
|
880
|
+
required: z10.boolean(),
|
|
881
|
+
defaultEnabled: z10.boolean().optional()
|
|
823
882
|
})
|
|
824
883
|
).default({})
|
|
825
884
|
}).prefault({ categories: {} }),
|
|
826
|
-
personal:
|
|
827
|
-
|
|
828
|
-
|
|
885
|
+
personal: z10.record(
|
|
886
|
+
z10.string(),
|
|
887
|
+
z10.object({ required: z10.boolean(), defaultEnabled: z10.boolean().optional() })
|
|
829
888
|
).default({})
|
|
830
889
|
}).prefault({ credentials: { categories: {} }, personal: {} }),
|
|
831
|
-
write:
|
|
832
|
-
credentials:
|
|
833
|
-
categories:
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
required:
|
|
837
|
-
defaultEnabled:
|
|
890
|
+
write: z10.object({
|
|
891
|
+
credentials: z10.object({
|
|
892
|
+
categories: z10.record(
|
|
893
|
+
z10.string(),
|
|
894
|
+
z10.object({
|
|
895
|
+
required: z10.boolean(),
|
|
896
|
+
defaultEnabled: z10.boolean().optional()
|
|
838
897
|
})
|
|
839
898
|
).default({})
|
|
840
899
|
}).prefault({ categories: {} }),
|
|
841
|
-
personal:
|
|
842
|
-
|
|
843
|
-
|
|
900
|
+
personal: z10.record(
|
|
901
|
+
z10.string(),
|
|
902
|
+
z10.object({ required: z10.boolean(), defaultEnabled: z10.boolean().optional() })
|
|
844
903
|
).default({})
|
|
845
904
|
}).prefault({ credentials: { categories: {} }, personal: {} })
|
|
846
905
|
});
|
|
847
|
-
var ConsentFlowContractDetailsValidator =
|
|
906
|
+
var ConsentFlowContractDetailsValidator = z10.object({
|
|
848
907
|
contract: ConsentFlowContractValidator,
|
|
849
908
|
owner: LCNProfileValidator,
|
|
850
|
-
name:
|
|
851
|
-
subtitle:
|
|
852
|
-
description:
|
|
853
|
-
reasonForAccessing:
|
|
854
|
-
image:
|
|
855
|
-
uri:
|
|
856
|
-
needsGuardianConsent:
|
|
857
|
-
redirectUrl:
|
|
858
|
-
frontDoorBoostUri:
|
|
859
|
-
createdAt:
|
|
860
|
-
updatedAt:
|
|
861
|
-
expiresAt:
|
|
862
|
-
autoBoosts:
|
|
863
|
-
writers:
|
|
864
|
-
});
|
|
865
|
-
var ConsentFlowContractRequestStatusValidator =
|
|
866
|
-
var ConsentFlowContractRequestReadStatusValidator =
|
|
867
|
-
var ConsentFlowContractRequestForProfileValidator =
|
|
909
|
+
name: z10.string(),
|
|
910
|
+
subtitle: z10.string().optional(),
|
|
911
|
+
description: z10.string().optional(),
|
|
912
|
+
reasonForAccessing: z10.string().optional(),
|
|
913
|
+
image: z10.string().optional(),
|
|
914
|
+
uri: z10.string(),
|
|
915
|
+
needsGuardianConsent: z10.boolean().optional(),
|
|
916
|
+
redirectUrl: z10.string().optional(),
|
|
917
|
+
frontDoorBoostUri: z10.string().optional(),
|
|
918
|
+
createdAt: z10.string(),
|
|
919
|
+
updatedAt: z10.string(),
|
|
920
|
+
expiresAt: z10.string().optional(),
|
|
921
|
+
autoBoosts: z10.string().array().optional(),
|
|
922
|
+
writers: z10.array(LCNProfileValidator).optional()
|
|
923
|
+
});
|
|
924
|
+
var ConsentFlowContractRequestStatusValidator = z10.enum(["pending", "accepted", "denied"]).nullable();
|
|
925
|
+
var ConsentFlowContractRequestReadStatusValidator = z10.enum(["unseen", "seen"]).nullable();
|
|
926
|
+
var ConsentFlowContractRequestForProfileValidator = z10.object({
|
|
868
927
|
profile: LCNProfileValidator,
|
|
869
928
|
status: ConsentFlowContractRequestStatusValidator,
|
|
870
929
|
readStatus: ConsentFlowContractRequestReadStatusValidator.optional()
|
|
871
930
|
});
|
|
872
|
-
var ConsentFlowContractRequestForProfileListValidator =
|
|
931
|
+
var ConsentFlowContractRequestForProfileListValidator = z10.array(
|
|
873
932
|
ConsentFlowContractRequestForProfileValidator
|
|
874
933
|
);
|
|
875
934
|
var PaginatedConsentFlowContractsValidator = PaginationResponseValidator.extend({
|
|
876
935
|
records: ConsentFlowContractDetailsValidator.omit({ owner: true }).array()
|
|
877
936
|
});
|
|
878
|
-
var ConsentFlowContractDataValidator =
|
|
879
|
-
credentials:
|
|
880
|
-
personal:
|
|
881
|
-
date:
|
|
937
|
+
var ConsentFlowContractDataValidator = z10.object({
|
|
938
|
+
credentials: z10.object({ categories: z10.record(z10.string(), z10.string().array()).default({}) }),
|
|
939
|
+
personal: z10.record(z10.string(), z10.string()).default({}),
|
|
940
|
+
date: z10.string()
|
|
882
941
|
});
|
|
883
942
|
var PaginatedConsentFlowDataValidator = PaginationResponseValidator.extend({
|
|
884
943
|
records: ConsentFlowContractDataValidator.array()
|
|
885
944
|
});
|
|
886
|
-
var ConsentFlowContractDataForDidValidator =
|
|
887
|
-
credentials:
|
|
888
|
-
personal:
|
|
889
|
-
date:
|
|
890
|
-
contractUri:
|
|
945
|
+
var ConsentFlowContractDataForDidValidator = z10.object({
|
|
946
|
+
credentials: z10.object({ category: z10.string(), uri: z10.string() }).array(),
|
|
947
|
+
personal: z10.record(z10.string(), z10.string()).default({}),
|
|
948
|
+
date: z10.string(),
|
|
949
|
+
contractUri: z10.string()
|
|
891
950
|
});
|
|
892
951
|
var PaginatedConsentFlowDataForDidValidator = PaginationResponseValidator.extend({
|
|
893
952
|
records: ConsentFlowContractDataForDidValidator.array()
|
|
894
953
|
});
|
|
895
|
-
var ConsentFlowTermValidator =
|
|
896
|
-
sharing:
|
|
897
|
-
shared:
|
|
898
|
-
shareAll:
|
|
899
|
-
shareUntil:
|
|
900
|
-
});
|
|
901
|
-
var ConsentFlowTermsValidator =
|
|
902
|
-
read:
|
|
903
|
-
anonymize:
|
|
904
|
-
credentials:
|
|
905
|
-
shareAll:
|
|
906
|
-
sharing:
|
|
907
|
-
categories:
|
|
954
|
+
var ConsentFlowTermValidator = z10.object({
|
|
955
|
+
sharing: z10.boolean().optional(),
|
|
956
|
+
shared: z10.string().array().optional(),
|
|
957
|
+
shareAll: z10.boolean().optional(),
|
|
958
|
+
shareUntil: z10.string().optional()
|
|
959
|
+
});
|
|
960
|
+
var ConsentFlowTermsValidator = z10.object({
|
|
961
|
+
read: z10.object({
|
|
962
|
+
anonymize: z10.boolean().optional(),
|
|
963
|
+
credentials: z10.object({
|
|
964
|
+
shareAll: z10.boolean().optional(),
|
|
965
|
+
sharing: z10.boolean().optional(),
|
|
966
|
+
categories: z10.record(z10.string(), ConsentFlowTermValidator).default({})
|
|
908
967
|
}).prefault({ categories: {} }),
|
|
909
|
-
personal:
|
|
968
|
+
personal: z10.record(z10.string(), z10.string()).default({})
|
|
910
969
|
}).prefault({ credentials: { categories: {} }, personal: {} }),
|
|
911
|
-
write:
|
|
912
|
-
credentials:
|
|
913
|
-
personal:
|
|
970
|
+
write: z10.object({
|
|
971
|
+
credentials: z10.object({ categories: z10.record(z10.string(), z10.boolean()).default({}) }).prefault({ categories: {} }),
|
|
972
|
+
personal: z10.record(z10.string(), z10.boolean()).default({})
|
|
914
973
|
}).prefault({ credentials: { categories: {} }, personal: {} }),
|
|
915
|
-
deniedWriters:
|
|
974
|
+
deniedWriters: z10.array(z10.string()).optional()
|
|
916
975
|
});
|
|
917
976
|
var PaginatedConsentFlowTermsValidator = PaginationResponseValidator.extend({
|
|
918
|
-
records:
|
|
919
|
-
expiresAt:
|
|
920
|
-
oneTime:
|
|
977
|
+
records: z10.object({
|
|
978
|
+
expiresAt: z10.string().optional(),
|
|
979
|
+
oneTime: z10.boolean().optional(),
|
|
921
980
|
terms: ConsentFlowTermsValidator,
|
|
922
981
|
contract: ConsentFlowContractDetailsValidator,
|
|
923
|
-
uri:
|
|
982
|
+
uri: z10.string(),
|
|
924
983
|
consenter: LCNProfileValidator,
|
|
925
984
|
status: ConsentFlowTermsStatusValidator
|
|
926
985
|
}).array()
|
|
927
986
|
});
|
|
928
|
-
var ConsentFlowContractQueryValidator =
|
|
929
|
-
read:
|
|
930
|
-
anonymize:
|
|
931
|
-
credentials:
|
|
932
|
-
categories:
|
|
987
|
+
var ConsentFlowContractQueryValidator = z10.object({
|
|
988
|
+
read: z10.object({
|
|
989
|
+
anonymize: z10.boolean().optional(),
|
|
990
|
+
credentials: z10.object({
|
|
991
|
+
categories: z10.record(z10.string(), z10.object({ required: z10.boolean().optional() })).optional()
|
|
933
992
|
}).optional(),
|
|
934
|
-
personal:
|
|
993
|
+
personal: z10.record(z10.string(), z10.object({ required: z10.boolean().optional() })).optional()
|
|
935
994
|
}).optional(),
|
|
936
|
-
write:
|
|
937
|
-
credentials:
|
|
938
|
-
categories:
|
|
995
|
+
write: z10.object({
|
|
996
|
+
credentials: z10.object({
|
|
997
|
+
categories: z10.record(z10.string(), z10.object({ required: z10.boolean().optional() })).optional()
|
|
939
998
|
}).optional(),
|
|
940
|
-
personal:
|
|
999
|
+
personal: z10.record(z10.string(), z10.object({ required: z10.boolean().optional() })).optional()
|
|
941
1000
|
}).optional()
|
|
942
1001
|
});
|
|
943
|
-
var ConsentFlowDataQueryValidator =
|
|
944
|
-
anonymize:
|
|
945
|
-
credentials:
|
|
946
|
-
personal:
|
|
1002
|
+
var ConsentFlowDataQueryValidator = z10.object({
|
|
1003
|
+
anonymize: z10.boolean().optional(),
|
|
1004
|
+
credentials: z10.object({ categories: z10.record(z10.string(), z10.boolean()).optional() }).optional(),
|
|
1005
|
+
personal: z10.record(z10.string(), z10.boolean()).optional()
|
|
947
1006
|
});
|
|
948
|
-
var ConsentFlowDataForDidQueryValidator =
|
|
949
|
-
credentials:
|
|
950
|
-
personal:
|
|
1007
|
+
var ConsentFlowDataForDidQueryValidator = z10.object({
|
|
1008
|
+
credentials: z10.object({ categories: z10.record(z10.string(), z10.boolean()).optional() }).optional(),
|
|
1009
|
+
personal: z10.record(z10.string(), z10.boolean()).optional(),
|
|
951
1010
|
id: StringQuery.optional()
|
|
952
1011
|
});
|
|
953
|
-
var ConsentFlowTermsQueryValidator =
|
|
954
|
-
read:
|
|
955
|
-
anonymize:
|
|
956
|
-
credentials:
|
|
957
|
-
shareAll:
|
|
958
|
-
sharing:
|
|
959
|
-
categories:
|
|
1012
|
+
var ConsentFlowTermsQueryValidator = z10.object({
|
|
1013
|
+
read: z10.object({
|
|
1014
|
+
anonymize: z10.boolean().optional(),
|
|
1015
|
+
credentials: z10.object({
|
|
1016
|
+
shareAll: z10.boolean().optional(),
|
|
1017
|
+
sharing: z10.boolean().optional(),
|
|
1018
|
+
categories: z10.record(z10.string(), ConsentFlowTermValidator.optional()).optional()
|
|
960
1019
|
}).optional(),
|
|
961
|
-
personal:
|
|
1020
|
+
personal: z10.record(z10.string(), z10.string()).optional()
|
|
962
1021
|
}).optional(),
|
|
963
|
-
write:
|
|
964
|
-
credentials:
|
|
965
|
-
personal:
|
|
1022
|
+
write: z10.object({
|
|
1023
|
+
credentials: z10.object({ categories: z10.record(z10.string(), z10.boolean()).optional() }).optional(),
|
|
1024
|
+
personal: z10.record(z10.string(), z10.boolean()).optional()
|
|
966
1025
|
}).optional()
|
|
967
1026
|
});
|
|
968
|
-
var ConsentFlowTransactionActionValidator =
|
|
1027
|
+
var ConsentFlowTransactionActionValidator = z10.enum([
|
|
969
1028
|
"consent",
|
|
970
1029
|
"update",
|
|
971
1030
|
"sync",
|
|
972
1031
|
"withdraw",
|
|
973
1032
|
"write"
|
|
974
1033
|
]);
|
|
975
|
-
var ConsentFlowTransactionsQueryValidator =
|
|
1034
|
+
var ConsentFlowTransactionsQueryValidator = z10.object({
|
|
976
1035
|
terms: ConsentFlowTermsQueryValidator.optional(),
|
|
977
1036
|
action: ConsentFlowTransactionActionValidator.or(
|
|
978
1037
|
ConsentFlowTransactionActionValidator.array()
|
|
979
1038
|
).optional(),
|
|
980
|
-
date:
|
|
981
|
-
expiresAt:
|
|
982
|
-
oneTime:
|
|
1039
|
+
date: z10.object({ $gt: z10.string() }).or(z10.object({ $lt: z10.string() })).or(z10.object({ $eq: z10.string() })).optional(),
|
|
1040
|
+
expiresAt: z10.object({ $gt: z10.string() }).or(z10.object({ $lt: z10.string() })).or(z10.object({ $eq: z10.string() })).optional(),
|
|
1041
|
+
oneTime: z10.boolean().optional()
|
|
983
1042
|
});
|
|
984
|
-
var ConsentFlowTransactionValidator =
|
|
985
|
-
expiresAt:
|
|
986
|
-
oneTime:
|
|
1043
|
+
var ConsentFlowTransactionValidator = z10.object({
|
|
1044
|
+
expiresAt: z10.string().optional(),
|
|
1045
|
+
oneTime: z10.boolean().optional(),
|
|
987
1046
|
terms: ConsentFlowTermsValidator.optional(),
|
|
988
|
-
id:
|
|
1047
|
+
id: z10.string(),
|
|
989
1048
|
action: ConsentFlowTransactionActionValidator,
|
|
990
|
-
date:
|
|
991
|
-
uris:
|
|
1049
|
+
date: z10.string(),
|
|
1050
|
+
uris: z10.string().array().optional()
|
|
992
1051
|
});
|
|
993
1052
|
var PaginatedConsentFlowTransactionsValidator = PaginationResponseValidator.extend({
|
|
994
1053
|
records: ConsentFlowTransactionValidator.array()
|
|
995
1054
|
});
|
|
996
|
-
var BaseSkillFrameworkQueryValidator =
|
|
1055
|
+
var BaseSkillFrameworkQueryValidator = z10.object({
|
|
997
1056
|
id: StringQuery,
|
|
998
1057
|
name: StringQuery,
|
|
999
1058
|
description: StringQuery,
|
|
1000
1059
|
sourceURI: StringQuery,
|
|
1001
1060
|
status: StringQuery
|
|
1002
1061
|
}).partial();
|
|
1003
|
-
var SkillFrameworkQueryValidator =
|
|
1004
|
-
|
|
1062
|
+
var SkillFrameworkQueryValidator = z10.union([
|
|
1063
|
+
z10.object({ $or: BaseSkillFrameworkQueryValidator.array() }),
|
|
1005
1064
|
BaseSkillFrameworkQueryValidator
|
|
1006
1065
|
]);
|
|
1007
|
-
var ContractCredentialValidator =
|
|
1008
|
-
credentialUri:
|
|
1009
|
-
termsUri:
|
|
1010
|
-
contractUri:
|
|
1011
|
-
boostUri:
|
|
1012
|
-
category:
|
|
1013
|
-
date:
|
|
1066
|
+
var ContractCredentialValidator = z10.object({
|
|
1067
|
+
credentialUri: z10.string(),
|
|
1068
|
+
termsUri: z10.string(),
|
|
1069
|
+
contractUri: z10.string(),
|
|
1070
|
+
boostUri: z10.string(),
|
|
1071
|
+
category: z10.string().optional(),
|
|
1072
|
+
date: z10.string()
|
|
1014
1073
|
});
|
|
1015
1074
|
var PaginatedContractCredentialsValidator = PaginationResponseValidator.extend({
|
|
1016
1075
|
records: ContractCredentialValidator.array()
|
|
1017
1076
|
});
|
|
1018
|
-
var LCNNotificationTypeEnumValidator =
|
|
1077
|
+
var LCNNotificationTypeEnumValidator = z10.enum([
|
|
1019
1078
|
"CONNECTION_REQUEST",
|
|
1020
1079
|
"CONNECTION_REQUEST_EXPIRED_INVITE",
|
|
1021
1080
|
"CONNECTION_ACCEPTED",
|
|
@@ -1034,17 +1093,21 @@ var LCNNotificationTypeEnumValidator = z9.enum([
|
|
|
1034
1093
|
"APP_LISTING_APPROVED",
|
|
1035
1094
|
"APP_LISTING_REJECTED",
|
|
1036
1095
|
"APP_LISTING_WITHDRAWN",
|
|
1037
|
-
"DEVICE_LINK_REQUEST"
|
|
1096
|
+
"DEVICE_LINK_REQUEST",
|
|
1097
|
+
"GUARDIAN_APPROVAL_PENDING",
|
|
1098
|
+
"GUARDIAN_APPROVED",
|
|
1099
|
+
"GUARDIAN_REJECTED",
|
|
1100
|
+
"APP_NOTIFICATION"
|
|
1038
1101
|
]);
|
|
1039
|
-
var LCNNotificationMessageValidator =
|
|
1040
|
-
title:
|
|
1041
|
-
body:
|
|
1102
|
+
var LCNNotificationMessageValidator = z10.object({
|
|
1103
|
+
title: z10.string().optional(),
|
|
1104
|
+
body: z10.string().optional()
|
|
1042
1105
|
});
|
|
1043
|
-
var LCNInboxContactMethodValidator =
|
|
1044
|
-
type:
|
|
1045
|
-
value:
|
|
1106
|
+
var LCNInboxContactMethodValidator = z10.object({
|
|
1107
|
+
type: z10.string(),
|
|
1108
|
+
value: z10.string()
|
|
1046
1109
|
});
|
|
1047
|
-
var LCNInboxStatusEnumValidator =
|
|
1110
|
+
var LCNInboxStatusEnumValidator = z10.enum([
|
|
1048
1111
|
"PENDING",
|
|
1049
1112
|
"ISSUED",
|
|
1050
1113
|
"EXPIRED",
|
|
@@ -1053,150 +1116,158 @@ var LCNInboxStatusEnumValidator = z9.enum([
|
|
|
1053
1116
|
/* DEPRECATED — use ISSUED */
|
|
1054
1117
|
"CLAIMED"
|
|
1055
1118
|
]);
|
|
1056
|
-
var LCNNotificationInboxValidator =
|
|
1057
|
-
issuanceId:
|
|
1119
|
+
var LCNNotificationInboxValidator = z10.object({
|
|
1120
|
+
issuanceId: z10.string(),
|
|
1058
1121
|
status: LCNInboxStatusEnumValidator,
|
|
1059
|
-
recipient:
|
|
1122
|
+
recipient: z10.object({
|
|
1060
1123
|
contactMethod: LCNInboxContactMethodValidator.optional(),
|
|
1061
|
-
learnCardId:
|
|
1124
|
+
learnCardId: z10.string().optional()
|
|
1062
1125
|
}),
|
|
1063
|
-
timestamp:
|
|
1126
|
+
timestamp: z10.iso.datetime().optional()
|
|
1064
1127
|
});
|
|
1065
|
-
var LCNNotificationDataValidator =
|
|
1066
|
-
vcUris:
|
|
1067
|
-
vpUris:
|
|
1128
|
+
var LCNNotificationDataValidator = z10.object({
|
|
1129
|
+
vcUris: z10.array(z10.string()).optional(),
|
|
1130
|
+
vpUris: z10.array(z10.string()).optional(),
|
|
1068
1131
|
transaction: ConsentFlowTransactionValidator.optional(),
|
|
1069
1132
|
inbox: LCNNotificationInboxValidator.optional(),
|
|
1070
|
-
metadata:
|
|
1133
|
+
metadata: z10.record(z10.string(), z10.unknown()).optional()
|
|
1071
1134
|
}).loose();
|
|
1072
|
-
var LCNNotificationValidator =
|
|
1135
|
+
var LCNNotificationValidator = z10.object({
|
|
1073
1136
|
type: LCNNotificationTypeEnumValidator,
|
|
1074
|
-
to: LCNProfileValidator.partial().and(
|
|
1075
|
-
from:
|
|
1137
|
+
to: LCNProfileValidator.partial().and(z10.object({ did: z10.string() })),
|
|
1138
|
+
from: z10.union([
|
|
1139
|
+
z10.string(),
|
|
1140
|
+
LCNProfileValidator.partial().and(z10.object({ did: z10.string() }))
|
|
1141
|
+
]),
|
|
1076
1142
|
message: LCNNotificationMessageValidator.optional(),
|
|
1077
1143
|
data: LCNNotificationDataValidator.optional(),
|
|
1078
|
-
sent:
|
|
1079
|
-
webhookUrl:
|
|
1144
|
+
sent: z10.iso.datetime().optional(),
|
|
1145
|
+
webhookUrl: z10.string().optional()
|
|
1080
1146
|
});
|
|
1081
1147
|
var AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX = "auth-grant:";
|
|
1082
|
-
var AuthGrantValidator =
|
|
1083
|
-
id:
|
|
1084
|
-
name:
|
|
1085
|
-
description:
|
|
1086
|
-
challenge:
|
|
1087
|
-
status:
|
|
1148
|
+
var AuthGrantValidator = z10.object({
|
|
1149
|
+
id: z10.string(),
|
|
1150
|
+
name: z10.string(),
|
|
1151
|
+
description: z10.string().optional(),
|
|
1152
|
+
challenge: z10.string().startsWith(AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX).min(10, { message: "Challenge is too short" }).max(100, { message: "Challenge is too long" }),
|
|
1153
|
+
status: z10.enum(["revoked", "active"], {
|
|
1088
1154
|
error: /* @__PURE__ */ __name((issue) => {
|
|
1089
1155
|
if (issue.code === "invalid_value") return "Status must be either active or revoked";
|
|
1090
1156
|
return "Status is required";
|
|
1091
1157
|
}, "error")
|
|
1092
1158
|
}),
|
|
1093
|
-
scope:
|
|
1094
|
-
createdAt:
|
|
1095
|
-
expiresAt:
|
|
1159
|
+
scope: z10.string(),
|
|
1160
|
+
createdAt: z10.iso.datetime({ error: "createdAt must be a valid ISO 8601 datetime string" }),
|
|
1161
|
+
expiresAt: z10.iso.datetime({ error: "expiresAt must be a valid ISO 8601 datetime string" }).nullish().optional()
|
|
1096
1162
|
});
|
|
1097
|
-
var FlatAuthGrantValidator =
|
|
1098
|
-
var AuthGrantStatusValidator =
|
|
1099
|
-
var AuthGrantQueryValidator =
|
|
1163
|
+
var FlatAuthGrantValidator = z10.object({ id: z10.string() }).catchall(z10.any());
|
|
1164
|
+
var AuthGrantStatusValidator = z10.enum(["active", "revoked"]);
|
|
1165
|
+
var AuthGrantQueryValidator = z10.object({
|
|
1100
1166
|
id: StringQuery,
|
|
1101
1167
|
name: StringQuery,
|
|
1102
1168
|
description: StringQuery,
|
|
1103
1169
|
status: AuthGrantStatusValidator
|
|
1104
1170
|
}).partial();
|
|
1105
|
-
var contactMethodBase =
|
|
1106
|
-
id:
|
|
1107
|
-
isVerified:
|
|
1108
|
-
verifiedAt:
|
|
1109
|
-
isPrimary:
|
|
1110
|
-
createdAt:
|
|
1111
|
-
});
|
|
1112
|
-
var ContactMethodValidator =
|
|
1113
|
-
|
|
1114
|
-
type:
|
|
1115
|
-
value:
|
|
1171
|
+
var contactMethodBase = z10.object({
|
|
1172
|
+
id: z10.string(),
|
|
1173
|
+
isVerified: z10.boolean(),
|
|
1174
|
+
verifiedAt: z10.string().optional(),
|
|
1175
|
+
isPrimary: z10.boolean(),
|
|
1176
|
+
createdAt: z10.string()
|
|
1177
|
+
});
|
|
1178
|
+
var ContactMethodValidator = z10.discriminatedUnion("type", [
|
|
1179
|
+
z10.object({
|
|
1180
|
+
type: z10.literal("email"),
|
|
1181
|
+
value: z10.string().email()
|
|
1116
1182
|
}).merge(contactMethodBase),
|
|
1117
|
-
|
|
1118
|
-
type:
|
|
1119
|
-
value:
|
|
1183
|
+
z10.object({
|
|
1184
|
+
type: z10.literal("phone"),
|
|
1185
|
+
value: z10.string()
|
|
1120
1186
|
// Can be improved with a regex later
|
|
1121
1187
|
}).merge(contactMethodBase)
|
|
1122
1188
|
]);
|
|
1123
|
-
var createContactMethodBase =
|
|
1124
|
-
isVerified:
|
|
1125
|
-
isPrimary:
|
|
1126
|
-
});
|
|
1127
|
-
var ContactMethodCreateValidator =
|
|
1128
|
-
|
|
1129
|
-
type:
|
|
1130
|
-
value:
|
|
1189
|
+
var createContactMethodBase = z10.object({
|
|
1190
|
+
isVerified: z10.boolean().optional(),
|
|
1191
|
+
isPrimary: z10.boolean().optional()
|
|
1192
|
+
});
|
|
1193
|
+
var ContactMethodCreateValidator = z10.discriminatedUnion("type", [
|
|
1194
|
+
z10.object({
|
|
1195
|
+
type: z10.literal("email"),
|
|
1196
|
+
value: z10.string().email()
|
|
1131
1197
|
}).merge(createContactMethodBase),
|
|
1132
|
-
|
|
1133
|
-
type:
|
|
1134
|
-
value:
|
|
1198
|
+
z10.object({
|
|
1199
|
+
type: z10.literal("phone"),
|
|
1200
|
+
value: z10.string()
|
|
1135
1201
|
}).merge(createContactMethodBase)
|
|
1136
1202
|
]);
|
|
1137
|
-
var ContactMethodQueryValidator =
|
|
1138
|
-
|
|
1139
|
-
type:
|
|
1140
|
-
value:
|
|
1203
|
+
var ContactMethodQueryValidator = z10.discriminatedUnion("type", [
|
|
1204
|
+
z10.object({
|
|
1205
|
+
type: z10.literal("email"),
|
|
1206
|
+
value: z10.string().email()
|
|
1141
1207
|
}),
|
|
1142
|
-
|
|
1143
|
-
type:
|
|
1144
|
-
value:
|
|
1208
|
+
z10.object({
|
|
1209
|
+
type: z10.literal("phone"),
|
|
1210
|
+
value: z10.string()
|
|
1145
1211
|
})
|
|
1146
1212
|
]);
|
|
1147
|
-
var ContactMethodVerificationRequestValidator =
|
|
1148
|
-
value:
|
|
1149
|
-
type:
|
|
1213
|
+
var ContactMethodVerificationRequestValidator = z10.object({
|
|
1214
|
+
value: z10.string(),
|
|
1215
|
+
type: z10.enum(["email", "phone"])
|
|
1150
1216
|
});
|
|
1151
|
-
var ContactMethodVerificationValidator =
|
|
1152
|
-
token:
|
|
1217
|
+
var ContactMethodVerificationValidator = z10.object({
|
|
1218
|
+
token: z10.string()
|
|
1153
1219
|
});
|
|
1154
|
-
var SetPrimaryContactMethodValidator =
|
|
1155
|
-
contactMethodId:
|
|
1220
|
+
var SetPrimaryContactMethodValidator = z10.object({
|
|
1221
|
+
contactMethodId: z10.string()
|
|
1156
1222
|
});
|
|
1157
|
-
var CreateContactMethodSessionValidator =
|
|
1223
|
+
var CreateContactMethodSessionValidator = z10.object({
|
|
1158
1224
|
contactMethod: ContactMethodVerificationRequestValidator,
|
|
1159
|
-
otpChallenge:
|
|
1225
|
+
otpChallenge: z10.string()
|
|
1160
1226
|
});
|
|
1161
|
-
var CreateContactMethodSessionResponseValidator =
|
|
1162
|
-
sessionJwt:
|
|
1227
|
+
var CreateContactMethodSessionResponseValidator = z10.object({
|
|
1228
|
+
sessionJwt: z10.string()
|
|
1163
1229
|
});
|
|
1164
|
-
var InboxCredentialValidator =
|
|
1165
|
-
id:
|
|
1166
|
-
credential:
|
|
1167
|
-
isSigned:
|
|
1230
|
+
var InboxCredentialValidator = z10.object({
|
|
1231
|
+
id: z10.string(),
|
|
1232
|
+
credential: z10.string(),
|
|
1233
|
+
isSigned: z10.boolean(),
|
|
1168
1234
|
currentStatus: LCNInboxStatusEnumValidator,
|
|
1169
|
-
isAccepted:
|
|
1170
|
-
expiresAt:
|
|
1171
|
-
createdAt:
|
|
1172
|
-
issuerDid:
|
|
1173
|
-
webhookUrl:
|
|
1174
|
-
boostUri:
|
|
1175
|
-
activityId:
|
|
1176
|
-
integrationId:
|
|
1177
|
-
signingAuthority:
|
|
1178
|
-
endpoint:
|
|
1179
|
-
name:
|
|
1180
|
-
}).optional()
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
});
|
|
1187
|
-
var
|
|
1235
|
+
isAccepted: z10.boolean().optional(),
|
|
1236
|
+
expiresAt: z10.string(),
|
|
1237
|
+
createdAt: z10.string(),
|
|
1238
|
+
issuerDid: z10.string(),
|
|
1239
|
+
webhookUrl: z10.string().optional(),
|
|
1240
|
+
boostUri: z10.string().optional(),
|
|
1241
|
+
activityId: z10.string().optional(),
|
|
1242
|
+
integrationId: z10.string().optional(),
|
|
1243
|
+
signingAuthority: z10.object({
|
|
1244
|
+
endpoint: z10.string().optional(),
|
|
1245
|
+
name: z10.string().optional()
|
|
1246
|
+
}).optional(),
|
|
1247
|
+
// Guardian gate fields (all optional — absent on pre-existing credentials)
|
|
1248
|
+
guardianEmail: z10.string().email().optional(),
|
|
1249
|
+
guardianStatus: GuardianStatusValidator.optional(),
|
|
1250
|
+
guardianApprovedAt: z10.string().optional(),
|
|
1251
|
+
guardianApprovedByDid: z10.string().optional()
|
|
1252
|
+
});
|
|
1253
|
+
var PaginatedInboxCredentialsValidator = z10.object({
|
|
1254
|
+
hasMore: z10.boolean(),
|
|
1255
|
+
records: z10.array(InboxCredentialValidator),
|
|
1256
|
+
cursor: z10.string().optional()
|
|
1257
|
+
});
|
|
1258
|
+
var InboxCredentialQueryValidator = z10.object({
|
|
1188
1259
|
currentStatus: LCNInboxStatusEnumValidator,
|
|
1189
|
-
id:
|
|
1190
|
-
isSigned:
|
|
1191
|
-
isAccepted:
|
|
1192
|
-
issuerDid:
|
|
1193
|
-
boostUri:
|
|
1260
|
+
id: z10.string(),
|
|
1261
|
+
isSigned: z10.boolean(),
|
|
1262
|
+
isAccepted: z10.boolean().optional(),
|
|
1263
|
+
issuerDid: z10.string(),
|
|
1264
|
+
boostUri: z10.string()
|
|
1194
1265
|
}).partial();
|
|
1195
|
-
var IssueInboxSigningAuthorityValidator =
|
|
1196
|
-
endpoint:
|
|
1197
|
-
name:
|
|
1266
|
+
var IssueInboxSigningAuthorityValidator = z10.object({
|
|
1267
|
+
endpoint: z10.string().url(),
|
|
1268
|
+
name: z10.string()
|
|
1198
1269
|
});
|
|
1199
|
-
var IssueInboxCredentialValidator =
|
|
1270
|
+
var IssueInboxCredentialValidator = z10.object({
|
|
1200
1271
|
// === CORE DATA (Required) ===
|
|
1201
1272
|
// WHAT is being sent and WHO is it for?
|
|
1202
1273
|
recipient: ContactMethodQueryValidator.describe("The recipient of the credential"),
|
|
@@ -1204,7 +1275,7 @@ var IssueInboxCredentialValidator = z9.object({
|
|
|
1204
1275
|
credential: VCValidator.or(VPValidator).or(UnsignedVCValidator).optional().describe(
|
|
1205
1276
|
"The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
|
|
1206
1277
|
),
|
|
1207
|
-
templateUri:
|
|
1278
|
+
templateUri: z10.string().optional().describe(
|
|
1208
1279
|
"URI of a boost template to use for issuance. The boost credential will be resolved and used. Mutually exclusive with credential field."
|
|
1209
1280
|
),
|
|
1210
1281
|
// === OPTIONAL FEATURES ===
|
|
@@ -1212,43 +1283,43 @@ var IssueInboxCredentialValidator = z9.object({
|
|
|
1212
1283
|
//consentRequest: ConsentRequestValidator.optional(),
|
|
1213
1284
|
// === PROCESS CONFIGURATION (Optional) ===
|
|
1214
1285
|
// HOW should this issuance be handled?
|
|
1215
|
-
configuration:
|
|
1286
|
+
configuration: z10.object({
|
|
1216
1287
|
signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe(
|
|
1217
1288
|
"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."
|
|
1218
1289
|
),
|
|
1219
|
-
webhookUrl:
|
|
1220
|
-
expiresInDays:
|
|
1221
|
-
templateData:
|
|
1290
|
+
webhookUrl: z10.string().url().optional().describe("The webhook URL to receive credential issuance events."),
|
|
1291
|
+
expiresInDays: z10.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
|
|
1292
|
+
templateData: z10.record(z10.string(), z10.unknown()).optional().describe(
|
|
1222
1293
|
"Template data to render into the boost credential template using Mustache syntax. Only used when boostUri is provided."
|
|
1223
1294
|
),
|
|
1224
1295
|
// --- For User-Facing Delivery (Email/SMS) ---
|
|
1225
|
-
delivery:
|
|
1226
|
-
suppress:
|
|
1296
|
+
delivery: z10.object({
|
|
1297
|
+
suppress: z10.boolean().optional().default(false).describe(
|
|
1227
1298
|
"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."
|
|
1228
1299
|
),
|
|
1229
|
-
template:
|
|
1230
|
-
id:
|
|
1300
|
+
template: z10.object({
|
|
1301
|
+
id: z10.enum(["universal-inbox-claim"]).optional().describe(
|
|
1231
1302
|
"The template ID to use for the credential delivery. If not provided, the default template will be used."
|
|
1232
1303
|
),
|
|
1233
|
-
model:
|
|
1234
|
-
issuer:
|
|
1235
|
-
name:
|
|
1304
|
+
model: z10.object({
|
|
1305
|
+
issuer: z10.object({
|
|
1306
|
+
name: z10.string().optional().describe(
|
|
1236
1307
|
'The name of the organization (e.g., "State University").'
|
|
1237
1308
|
),
|
|
1238
|
-
logoUrl:
|
|
1309
|
+
logoUrl: z10.string().url().optional().describe(
|
|
1239
1310
|
"The URL of the organization's logo."
|
|
1240
1311
|
)
|
|
1241
1312
|
}).optional(),
|
|
1242
|
-
credential:
|
|
1243
|
-
name:
|
|
1313
|
+
credential: z10.object({
|
|
1314
|
+
name: z10.string().optional().describe(
|
|
1244
1315
|
'The name of the credential (e.g., "Bachelor of Science").'
|
|
1245
1316
|
),
|
|
1246
|
-
type:
|
|
1317
|
+
type: z10.string().optional().describe(
|
|
1247
1318
|
'The type of the credential (e.g., "degree", "certificate").'
|
|
1248
1319
|
)
|
|
1249
1320
|
}).optional(),
|
|
1250
|
-
recipient:
|
|
1251
|
-
name:
|
|
1321
|
+
recipient: z10.object({
|
|
1322
|
+
name: z10.string().optional().describe(
|
|
1252
1323
|
'The name of the recipient (e.g., "John Doe").'
|
|
1253
1324
|
)
|
|
1254
1325
|
}).optional()
|
|
@@ -1268,67 +1339,67 @@ var IssueInboxCredentialValidator = z9.object({
|
|
|
1268
1339
|
message: "Either credential or templateUri must be provided.",
|
|
1269
1340
|
path: ["credential"]
|
|
1270
1341
|
});
|
|
1271
|
-
var IssueInboxCredentialResponseValidator =
|
|
1272
|
-
issuanceId:
|
|
1342
|
+
var IssueInboxCredentialResponseValidator = z10.object({
|
|
1343
|
+
issuanceId: z10.string(),
|
|
1273
1344
|
status: LCNInboxStatusEnumValidator,
|
|
1274
1345
|
recipient: ContactMethodQueryValidator,
|
|
1275
|
-
claimUrl:
|
|
1276
|
-
recipientDid:
|
|
1346
|
+
claimUrl: z10.string().url().optional(),
|
|
1347
|
+
recipientDid: z10.string().optional()
|
|
1277
1348
|
});
|
|
1278
|
-
var CredentialNameRefValidator =
|
|
1279
|
-
var ClaimInboxCredentialValidator =
|
|
1349
|
+
var CredentialNameRefValidator = z10.object({ name: z10.string() }).passthrough();
|
|
1350
|
+
var ClaimInboxCredentialValidator = z10.object({
|
|
1280
1351
|
credential: VCValidator.or(VPValidator).or(UnsignedVCValidator).or(CredentialNameRefValidator).describe("The credential to issue, or a { name } reference to resolve a boost template."),
|
|
1281
|
-
configuration:
|
|
1282
|
-
publishableKey:
|
|
1283
|
-
signingAuthorityName:
|
|
1284
|
-
listingId:
|
|
1285
|
-
listingSlug:
|
|
1352
|
+
configuration: z10.object({
|
|
1353
|
+
publishableKey: z10.string(),
|
|
1354
|
+
signingAuthorityName: z10.string().optional(),
|
|
1355
|
+
listingId: z10.string().optional(),
|
|
1356
|
+
listingSlug: z10.string().optional()
|
|
1286
1357
|
}).optional()
|
|
1287
1358
|
});
|
|
1288
|
-
var LCNDomainOrOriginValidator =
|
|
1289
|
-
|
|
1359
|
+
var LCNDomainOrOriginValidator = z10.union([
|
|
1360
|
+
z10.string().regex(
|
|
1290
1361
|
/^(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
|
|
1291
1362
|
{
|
|
1292
1363
|
message: "Must be a valid domain (incl. subdomains), localhost, or IPv4, optionally with port"
|
|
1293
1364
|
}
|
|
1294
1365
|
),
|
|
1295
|
-
|
|
1366
|
+
z10.string().regex(
|
|
1296
1367
|
/^https?:\/\/(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
|
|
1297
1368
|
{ message: "Must be a valid http(s) origin" }
|
|
1298
1369
|
)
|
|
1299
1370
|
]);
|
|
1300
|
-
var LCNIntegrationStatusEnum =
|
|
1301
|
-
var LCNIntegrationValidator =
|
|
1302
|
-
id:
|
|
1303
|
-
name:
|
|
1304
|
-
description:
|
|
1305
|
-
publishableKey:
|
|
1306
|
-
whitelistedDomains:
|
|
1371
|
+
var LCNIntegrationStatusEnum = z10.enum(["setup", "active", "paused"]);
|
|
1372
|
+
var LCNIntegrationValidator = z10.object({
|
|
1373
|
+
id: z10.string(),
|
|
1374
|
+
name: z10.string(),
|
|
1375
|
+
description: z10.string().optional(),
|
|
1376
|
+
publishableKey: z10.string(),
|
|
1377
|
+
whitelistedDomains: z10.array(LCNDomainOrOriginValidator).default([]),
|
|
1307
1378
|
// Setup/onboarding status
|
|
1308
1379
|
status: LCNIntegrationStatusEnum.default("setup"),
|
|
1309
|
-
guideType:
|
|
1310
|
-
guideState:
|
|
1380
|
+
guideType: z10.string().optional(),
|
|
1381
|
+
guideState: z10.record(z10.string(), z10.any()).optional(),
|
|
1311
1382
|
// Timestamps
|
|
1312
|
-
createdAt:
|
|
1313
|
-
updatedAt:
|
|
1314
|
-
});
|
|
1315
|
-
var LCNIntegrationCreateValidator =
|
|
1316
|
-
name:
|
|
1317
|
-
description:
|
|
1318
|
-
whitelistedDomains:
|
|
1319
|
-
guideType:
|
|
1320
|
-
});
|
|
1321
|
-
var LCNIntegrationUpdateValidator =
|
|
1322
|
-
name:
|
|
1323
|
-
description:
|
|
1324
|
-
whitelistedDomains:
|
|
1325
|
-
rotatePublishableKey:
|
|
1383
|
+
createdAt: z10.string().optional(),
|
|
1384
|
+
updatedAt: z10.string().optional()
|
|
1385
|
+
});
|
|
1386
|
+
var LCNIntegrationCreateValidator = z10.object({
|
|
1387
|
+
name: z10.string(),
|
|
1388
|
+
description: z10.string().optional(),
|
|
1389
|
+
whitelistedDomains: z10.array(LCNDomainOrOriginValidator).default([]),
|
|
1390
|
+
guideType: z10.string().optional()
|
|
1391
|
+
});
|
|
1392
|
+
var LCNIntegrationUpdateValidator = z10.object({
|
|
1393
|
+
name: z10.string().optional(),
|
|
1394
|
+
description: z10.string().optional(),
|
|
1395
|
+
whitelistedDomains: z10.array(LCNDomainOrOriginValidator).optional(),
|
|
1396
|
+
rotatePublishableKey: z10.boolean().optional(),
|
|
1326
1397
|
// Setup/onboarding updates
|
|
1327
1398
|
status: LCNIntegrationStatusEnum.optional(),
|
|
1328
|
-
guideType:
|
|
1329
|
-
guideState:
|
|
1399
|
+
guideType: z10.string().optional(),
|
|
1400
|
+
guideState: z10.record(z10.string(), z10.any()).optional()
|
|
1330
1401
|
});
|
|
1331
|
-
var LCNIntegrationQueryValidator =
|
|
1402
|
+
var LCNIntegrationQueryValidator = z10.object({
|
|
1332
1403
|
id: StringQuery,
|
|
1333
1404
|
name: StringQuery,
|
|
1334
1405
|
description: StringQuery,
|
|
@@ -1338,117 +1409,117 @@ var LCNIntegrationQueryValidator = z9.object({
|
|
|
1338
1409
|
var PaginatedLCNIntegrationsValidator = PaginationResponseValidator.extend({
|
|
1339
1410
|
records: LCNIntegrationValidator.array()
|
|
1340
1411
|
});
|
|
1341
|
-
var ClaimTokenValidator =
|
|
1342
|
-
token:
|
|
1343
|
-
contactMethodId:
|
|
1344
|
-
autoVerifyContactMethod:
|
|
1345
|
-
createdAt:
|
|
1346
|
-
expiresAt:
|
|
1347
|
-
used:
|
|
1348
|
-
});
|
|
1349
|
-
var TagValidator =
|
|
1350
|
-
id:
|
|
1351
|
-
name:
|
|
1352
|
-
slug:
|
|
1353
|
-
createdAt:
|
|
1354
|
-
updatedAt:
|
|
1355
|
-
});
|
|
1356
|
-
var SkillStatusEnum =
|
|
1357
|
-
var SkillValidator =
|
|
1358
|
-
id:
|
|
1359
|
-
statement:
|
|
1360
|
-
description:
|
|
1361
|
-
code:
|
|
1362
|
-
icon:
|
|
1363
|
-
type:
|
|
1412
|
+
var ClaimTokenValidator = z10.object({
|
|
1413
|
+
token: z10.string(),
|
|
1414
|
+
contactMethodId: z10.string(),
|
|
1415
|
+
autoVerifyContactMethod: z10.boolean().optional().default(false),
|
|
1416
|
+
createdAt: z10.string(),
|
|
1417
|
+
expiresAt: z10.string(),
|
|
1418
|
+
used: z10.boolean()
|
|
1419
|
+
});
|
|
1420
|
+
var TagValidator = z10.object({
|
|
1421
|
+
id: z10.string(),
|
|
1422
|
+
name: z10.string().min(1),
|
|
1423
|
+
slug: z10.string().min(1),
|
|
1424
|
+
createdAt: z10.string().optional(),
|
|
1425
|
+
updatedAt: z10.string().optional()
|
|
1426
|
+
});
|
|
1427
|
+
var SkillStatusEnum = z10.enum(["active", "archived"]);
|
|
1428
|
+
var SkillValidator = z10.object({
|
|
1429
|
+
id: z10.string(),
|
|
1430
|
+
statement: z10.string(),
|
|
1431
|
+
description: z10.string().optional(),
|
|
1432
|
+
code: z10.string().optional(),
|
|
1433
|
+
icon: z10.string().optional(),
|
|
1434
|
+
type: z10.string().default("skill"),
|
|
1364
1435
|
status: SkillStatusEnum.default("active"),
|
|
1365
|
-
frameworkId:
|
|
1366
|
-
createdAt:
|
|
1367
|
-
updatedAt:
|
|
1436
|
+
frameworkId: z10.string().optional(),
|
|
1437
|
+
createdAt: z10.string().optional(),
|
|
1438
|
+
updatedAt: z10.string().optional()
|
|
1368
1439
|
});
|
|
1369
|
-
var BaseSkillQueryValidator =
|
|
1440
|
+
var BaseSkillQueryValidator = z10.object({
|
|
1370
1441
|
id: StringQuery,
|
|
1371
1442
|
statement: StringQuery,
|
|
1372
1443
|
description: StringQuery,
|
|
1373
1444
|
code: StringQuery,
|
|
1374
1445
|
type: StringQuery,
|
|
1375
|
-
status: SkillStatusEnum.or(
|
|
1446
|
+
status: SkillStatusEnum.or(z10.object({ $in: SkillStatusEnum.array() }))
|
|
1376
1447
|
}).partial();
|
|
1377
|
-
var SkillQueryValidator =
|
|
1378
|
-
|
|
1448
|
+
var SkillQueryValidator = z10.union([
|
|
1449
|
+
z10.object({
|
|
1379
1450
|
$or: BaseSkillQueryValidator.array()
|
|
1380
1451
|
}),
|
|
1381
1452
|
BaseSkillQueryValidator
|
|
1382
1453
|
]);
|
|
1383
|
-
var SkillSemanticSearchInputValidator =
|
|
1384
|
-
text:
|
|
1385
|
-
frameworkId:
|
|
1386
|
-
limit:
|
|
1454
|
+
var SkillSemanticSearchInputValidator = z10.object({
|
|
1455
|
+
text: z10.string().min(1),
|
|
1456
|
+
frameworkId: z10.string().optional(),
|
|
1457
|
+
limit: z10.number().int().min(1).max(200).default(50)
|
|
1387
1458
|
});
|
|
1388
1459
|
var SkillSemanticSearchResultItemValidator = SkillValidator.extend({
|
|
1389
|
-
score:
|
|
1460
|
+
score: z10.number()
|
|
1390
1461
|
});
|
|
1391
|
-
var SkillSemanticSearchResultValidator =
|
|
1462
|
+
var SkillSemanticSearchResultValidator = z10.object({
|
|
1392
1463
|
records: SkillSemanticSearchResultItemValidator.array()
|
|
1393
1464
|
});
|
|
1394
|
-
var SkillFrameworkStatusEnum =
|
|
1395
|
-
var SkillFrameworkValidator =
|
|
1396
|
-
id:
|
|
1397
|
-
name:
|
|
1398
|
-
description:
|
|
1399
|
-
image:
|
|
1400
|
-
sourceURI:
|
|
1401
|
-
isPublic:
|
|
1465
|
+
var SkillFrameworkStatusEnum = z10.enum(["active", "archived"]);
|
|
1466
|
+
var SkillFrameworkValidator = z10.object({
|
|
1467
|
+
id: z10.string(),
|
|
1468
|
+
name: z10.string(),
|
|
1469
|
+
description: z10.string().optional(),
|
|
1470
|
+
image: z10.string().optional(),
|
|
1471
|
+
sourceURI: z10.string().url().optional(),
|
|
1472
|
+
isPublic: z10.boolean().default(false),
|
|
1402
1473
|
status: SkillFrameworkStatusEnum.default("active"),
|
|
1403
|
-
createdAt:
|
|
1404
|
-
updatedAt:
|
|
1474
|
+
createdAt: z10.string().optional(),
|
|
1475
|
+
updatedAt: z10.string().optional()
|
|
1405
1476
|
});
|
|
1406
1477
|
var PaginatedSkillFrameworksValidator = PaginationResponseValidator.extend({
|
|
1407
1478
|
records: SkillFrameworkValidator.array()
|
|
1408
1479
|
});
|
|
1409
1480
|
var SkillTreeNodeValidator = SkillValidator.extend({
|
|
1410
|
-
children:
|
|
1411
|
-
hasChildren:
|
|
1412
|
-
childrenCursor:
|
|
1413
|
-
});
|
|
1414
|
-
var PaginatedSkillTreeValidator =
|
|
1415
|
-
hasMore:
|
|
1416
|
-
cursor:
|
|
1417
|
-
records:
|
|
1418
|
-
});
|
|
1419
|
-
var SkillTreeNodeInputValidator =
|
|
1420
|
-
() =>
|
|
1421
|
-
id:
|
|
1422
|
-
statement:
|
|
1423
|
-
description:
|
|
1424
|
-
code:
|
|
1425
|
-
icon:
|
|
1426
|
-
type:
|
|
1481
|
+
children: z10.array(z10.lazy(() => SkillTreeNodeValidator)),
|
|
1482
|
+
hasChildren: z10.boolean(),
|
|
1483
|
+
childrenCursor: z10.string().nullable().optional()
|
|
1484
|
+
});
|
|
1485
|
+
var PaginatedSkillTreeValidator = z10.object({
|
|
1486
|
+
hasMore: z10.boolean(),
|
|
1487
|
+
cursor: z10.string().nullable(),
|
|
1488
|
+
records: z10.array(SkillTreeNodeValidator)
|
|
1489
|
+
});
|
|
1490
|
+
var SkillTreeNodeInputValidator = z10.lazy(
|
|
1491
|
+
() => z10.object({
|
|
1492
|
+
id: z10.string().optional(),
|
|
1493
|
+
statement: z10.string(),
|
|
1494
|
+
description: z10.string().optional(),
|
|
1495
|
+
code: z10.string().optional(),
|
|
1496
|
+
icon: z10.string().optional(),
|
|
1497
|
+
type: z10.string().optional(),
|
|
1427
1498
|
status: SkillStatusEnum.optional(),
|
|
1428
|
-
children:
|
|
1499
|
+
children: z10.array(SkillTreeNodeInputValidator).optional()
|
|
1429
1500
|
})
|
|
1430
1501
|
);
|
|
1431
|
-
var LinkProviderFrameworkInputValidator =
|
|
1432
|
-
frameworkId:
|
|
1433
|
-
});
|
|
1434
|
-
var CreateManagedFrameworkInputValidator =
|
|
1435
|
-
id:
|
|
1436
|
-
name:
|
|
1437
|
-
description:
|
|
1438
|
-
image:
|
|
1439
|
-
sourceURI:
|
|
1440
|
-
isPublic:
|
|
1502
|
+
var LinkProviderFrameworkInputValidator = z10.object({
|
|
1503
|
+
frameworkId: z10.string()
|
|
1504
|
+
});
|
|
1505
|
+
var CreateManagedFrameworkInputValidator = z10.object({
|
|
1506
|
+
id: z10.string().optional(),
|
|
1507
|
+
name: z10.string().min(1),
|
|
1508
|
+
description: z10.string().optional(),
|
|
1509
|
+
image: z10.string().optional(),
|
|
1510
|
+
sourceURI: z10.string().url().optional(),
|
|
1511
|
+
isPublic: z10.boolean().optional(),
|
|
1441
1512
|
status: SkillFrameworkStatusEnum.optional(),
|
|
1442
|
-
skills:
|
|
1443
|
-
boostUris:
|
|
1444
|
-
});
|
|
1445
|
-
var UpdateFrameworkInputValidator =
|
|
1446
|
-
id:
|
|
1447
|
-
name:
|
|
1448
|
-
description:
|
|
1449
|
-
image:
|
|
1450
|
-
sourceURI:
|
|
1451
|
-
isPublic:
|
|
1513
|
+
skills: z10.array(SkillTreeNodeInputValidator).optional(),
|
|
1514
|
+
boostUris: z10.array(z10.string()).optional()
|
|
1515
|
+
});
|
|
1516
|
+
var UpdateFrameworkInputValidator = z10.object({
|
|
1517
|
+
id: z10.string(),
|
|
1518
|
+
name: z10.string().min(1).optional(),
|
|
1519
|
+
description: z10.string().optional(),
|
|
1520
|
+
image: z10.string().optional(),
|
|
1521
|
+
sourceURI: z10.string().url().optional(),
|
|
1522
|
+
isPublic: z10.boolean().optional(),
|
|
1452
1523
|
status: SkillFrameworkStatusEnum.optional()
|
|
1453
1524
|
}).refine(
|
|
1454
1525
|
(data) => data.name !== void 0 || data.description !== void 0 || data.image !== void 0 || data.sourceURI !== void 0 || data.isPublic !== void 0 || data.status !== void 0,
|
|
@@ -1457,38 +1528,38 @@ var UpdateFrameworkInputValidator = z9.object({
|
|
|
1457
1528
|
path: ["name"]
|
|
1458
1529
|
}
|
|
1459
1530
|
);
|
|
1460
|
-
var DeleteFrameworkInputValidator =
|
|
1461
|
-
var CreateManagedFrameworkBatchInputValidator =
|
|
1462
|
-
frameworks:
|
|
1531
|
+
var DeleteFrameworkInputValidator = z10.object({ id: z10.string() });
|
|
1532
|
+
var CreateManagedFrameworkBatchInputValidator = z10.object({
|
|
1533
|
+
frameworks: z10.array(
|
|
1463
1534
|
CreateManagedFrameworkInputValidator.extend({
|
|
1464
|
-
skills:
|
|
1535
|
+
skills: z10.array(SkillTreeNodeInputValidator).optional()
|
|
1465
1536
|
})
|
|
1466
1537
|
).min(1)
|
|
1467
1538
|
});
|
|
1468
|
-
var SkillFrameworkAdminInputValidator =
|
|
1469
|
-
frameworkId:
|
|
1470
|
-
profileId:
|
|
1539
|
+
var SkillFrameworkAdminInputValidator = z10.object({
|
|
1540
|
+
frameworkId: z10.string(),
|
|
1541
|
+
profileId: z10.string()
|
|
1471
1542
|
});
|
|
1472
|
-
var SkillFrameworkIdInputValidator =
|
|
1543
|
+
var SkillFrameworkIdInputValidator = z10.object({ frameworkId: z10.string() });
|
|
1473
1544
|
var SkillFrameworkAdminsValidator = LCNProfileValidator.array();
|
|
1474
|
-
var SyncFrameworkInputValidator =
|
|
1475
|
-
var AddTagInputValidator =
|
|
1476
|
-
slug:
|
|
1477
|
-
name:
|
|
1545
|
+
var SyncFrameworkInputValidator = z10.object({ id: z10.string() });
|
|
1546
|
+
var AddTagInputValidator = z10.object({
|
|
1547
|
+
slug: z10.string().min(1),
|
|
1548
|
+
name: z10.string().min(1)
|
|
1478
1549
|
});
|
|
1479
|
-
var CreateSkillInputValidator =
|
|
1480
|
-
frameworkId:
|
|
1550
|
+
var CreateSkillInputValidator = z10.object({
|
|
1551
|
+
frameworkId: z10.string(),
|
|
1481
1552
|
skill: SkillTreeNodeInputValidator,
|
|
1482
|
-
parentId:
|
|
1483
|
-
});
|
|
1484
|
-
var UpdateSkillInputValidator =
|
|
1485
|
-
frameworkId:
|
|
1486
|
-
id:
|
|
1487
|
-
statement:
|
|
1488
|
-
description:
|
|
1489
|
-
code:
|
|
1490
|
-
icon:
|
|
1491
|
-
type:
|
|
1553
|
+
parentId: z10.string().nullable().optional()
|
|
1554
|
+
});
|
|
1555
|
+
var UpdateSkillInputValidator = z10.object({
|
|
1556
|
+
frameworkId: z10.string(),
|
|
1557
|
+
id: z10.string(),
|
|
1558
|
+
statement: z10.string().optional(),
|
|
1559
|
+
description: z10.string().optional(),
|
|
1560
|
+
code: z10.string().optional(),
|
|
1561
|
+
icon: z10.string().optional(),
|
|
1562
|
+
type: z10.string().optional(),
|
|
1492
1563
|
status: SkillStatusEnum.optional()
|
|
1493
1564
|
}).refine(
|
|
1494
1565
|
(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,
|
|
@@ -1497,56 +1568,56 @@ var UpdateSkillInputValidator = z9.object({
|
|
|
1497
1568
|
path: ["statement"]
|
|
1498
1569
|
}
|
|
1499
1570
|
);
|
|
1500
|
-
var SkillDeletionStrategyValidator =
|
|
1501
|
-
var DeleteSkillInputValidator =
|
|
1502
|
-
frameworkId:
|
|
1503
|
-
id:
|
|
1571
|
+
var SkillDeletionStrategyValidator = z10.enum(["recursive", "reparent"]);
|
|
1572
|
+
var DeleteSkillInputValidator = z10.object({
|
|
1573
|
+
frameworkId: z10.string(),
|
|
1574
|
+
id: z10.string(),
|
|
1504
1575
|
strategy: SkillDeletionStrategyValidator.optional().default("reparent")
|
|
1505
1576
|
});
|
|
1506
|
-
var CreateSkillsBatchInputValidator =
|
|
1507
|
-
frameworkId:
|
|
1508
|
-
skills:
|
|
1509
|
-
parentId:
|
|
1577
|
+
var CreateSkillsBatchInputValidator = z10.object({
|
|
1578
|
+
frameworkId: z10.string(),
|
|
1579
|
+
skills: z10.array(SkillTreeNodeInputValidator).min(1),
|
|
1580
|
+
parentId: z10.string().nullable().optional()
|
|
1510
1581
|
});
|
|
1511
|
-
var ReplaceSkillFrameworkSkillsInputValidator =
|
|
1512
|
-
frameworkId:
|
|
1513
|
-
skills:
|
|
1582
|
+
var ReplaceSkillFrameworkSkillsInputValidator = z10.object({
|
|
1583
|
+
frameworkId: z10.string(),
|
|
1584
|
+
skills: z10.array(SkillTreeNodeInputValidator).min(0)
|
|
1514
1585
|
});
|
|
1515
|
-
var ReplaceSkillFrameworkSkillsResultValidator =
|
|
1516
|
-
created:
|
|
1517
|
-
updated:
|
|
1518
|
-
deleted:
|
|
1519
|
-
unchanged:
|
|
1520
|
-
total:
|
|
1586
|
+
var ReplaceSkillFrameworkSkillsResultValidator = z10.object({
|
|
1587
|
+
created: z10.number().int().min(0),
|
|
1588
|
+
updated: z10.number().int().min(0),
|
|
1589
|
+
deleted: z10.number().int().min(0),
|
|
1590
|
+
unchanged: z10.number().int().min(0),
|
|
1591
|
+
total: z10.number().int().min(0)
|
|
1521
1592
|
});
|
|
1522
|
-
var CountSkillsInputValidator =
|
|
1523
|
-
frameworkId:
|
|
1524
|
-
skillId:
|
|
1525
|
-
recursive:
|
|
1526
|
-
onlyCountCompetencies:
|
|
1593
|
+
var CountSkillsInputValidator = z10.object({
|
|
1594
|
+
frameworkId: z10.string(),
|
|
1595
|
+
skillId: z10.string().optional(),
|
|
1596
|
+
recursive: z10.boolean().optional().default(false),
|
|
1597
|
+
onlyCountCompetencies: z10.boolean().optional().default(false)
|
|
1527
1598
|
});
|
|
1528
|
-
var CountSkillsResultValidator =
|
|
1529
|
-
count:
|
|
1599
|
+
var CountSkillsResultValidator = z10.object({
|
|
1600
|
+
count: z10.number().int().min(0)
|
|
1530
1601
|
});
|
|
1531
|
-
var GetFullSkillTreeInputValidator =
|
|
1532
|
-
frameworkId:
|
|
1602
|
+
var GetFullSkillTreeInputValidator = z10.object({
|
|
1603
|
+
frameworkId: z10.string()
|
|
1533
1604
|
});
|
|
1534
|
-
var GetFullSkillTreeResultValidator =
|
|
1535
|
-
skills:
|
|
1605
|
+
var GetFullSkillTreeResultValidator = z10.object({
|
|
1606
|
+
skills: z10.array(SkillTreeNodeValidator)
|
|
1536
1607
|
});
|
|
1537
|
-
var GetSkillPathInputValidator =
|
|
1538
|
-
frameworkId:
|
|
1539
|
-
skillId:
|
|
1608
|
+
var GetSkillPathInputValidator = z10.object({
|
|
1609
|
+
frameworkId: z10.string(),
|
|
1610
|
+
skillId: z10.string()
|
|
1540
1611
|
});
|
|
1541
|
-
var GetSkillPathResultValidator =
|
|
1542
|
-
path:
|
|
1612
|
+
var GetSkillPathResultValidator = z10.object({
|
|
1613
|
+
path: z10.array(SkillValidator)
|
|
1543
1614
|
});
|
|
1544
|
-
var FrameworkWithSkillsValidator =
|
|
1615
|
+
var FrameworkWithSkillsValidator = z10.object({
|
|
1545
1616
|
framework: SkillFrameworkValidator,
|
|
1546
1617
|
skills: PaginatedSkillTreeValidator
|
|
1547
1618
|
});
|
|
1548
|
-
var AppListingStatusValidator =
|
|
1549
|
-
var LaunchTypeValidator =
|
|
1619
|
+
var AppListingStatusValidator = z10.enum(["DRAFT", "PENDING_REVIEW", "LISTED", "ARCHIVED"]);
|
|
1620
|
+
var LaunchTypeValidator = z10.enum([
|
|
1550
1621
|
"EMBEDDED_IFRAME",
|
|
1551
1622
|
"SECOND_SCREEN",
|
|
1552
1623
|
"DIRECT_LINK",
|
|
@@ -1554,43 +1625,43 @@ var LaunchTypeValidator = z9.enum([
|
|
|
1554
1625
|
"SERVER_HEADLESS",
|
|
1555
1626
|
"AI_TUTOR"
|
|
1556
1627
|
]);
|
|
1557
|
-
var PromotionLevelValidator =
|
|
1628
|
+
var PromotionLevelValidator = z10.enum([
|
|
1558
1629
|
"FEATURED_CAROUSEL",
|
|
1559
1630
|
"CURATED_LIST",
|
|
1560
1631
|
"STANDARD",
|
|
1561
1632
|
"DEMOTED"
|
|
1562
1633
|
]);
|
|
1563
|
-
var AgeRatingValidator =
|
|
1564
|
-
var AppStoreListingSubmitterValidator =
|
|
1565
|
-
profileId:
|
|
1566
|
-
displayName:
|
|
1567
|
-
email:
|
|
1568
|
-
});
|
|
1569
|
-
var AppStoreListingValidator =
|
|
1570
|
-
listing_id:
|
|
1571
|
-
slug:
|
|
1572
|
-
display_name:
|
|
1573
|
-
tagline:
|
|
1574
|
-
full_description:
|
|
1575
|
-
icon_url:
|
|
1634
|
+
var AgeRatingValidator = z10.enum(["4+", "9+", "12+", "17+"]);
|
|
1635
|
+
var AppStoreListingSubmitterValidator = z10.object({
|
|
1636
|
+
profileId: z10.string(),
|
|
1637
|
+
displayName: z10.string(),
|
|
1638
|
+
email: z10.string().optional()
|
|
1639
|
+
});
|
|
1640
|
+
var AppStoreListingValidator = z10.object({
|
|
1641
|
+
listing_id: z10.string(),
|
|
1642
|
+
slug: z10.string().optional(),
|
|
1643
|
+
display_name: z10.string(),
|
|
1644
|
+
tagline: z10.string(),
|
|
1645
|
+
full_description: z10.string(),
|
|
1646
|
+
icon_url: z10.string(),
|
|
1576
1647
|
app_listing_status: AppListingStatusValidator,
|
|
1577
1648
|
launch_type: LaunchTypeValidator,
|
|
1578
|
-
launch_config_json:
|
|
1579
|
-
category:
|
|
1580
|
-
promo_video_url:
|
|
1649
|
+
launch_config_json: z10.string(),
|
|
1650
|
+
category: z10.string().optional(),
|
|
1651
|
+
promo_video_url: z10.string().optional(),
|
|
1581
1652
|
promotion_level: PromotionLevelValidator.optional(),
|
|
1582
|
-
ios_app_store_id:
|
|
1583
|
-
android_app_store_id:
|
|
1584
|
-
privacy_policy_url:
|
|
1585
|
-
terms_url:
|
|
1586
|
-
highlights:
|
|
1587
|
-
screenshots:
|
|
1588
|
-
hero_background_color:
|
|
1589
|
-
min_age:
|
|
1653
|
+
ios_app_store_id: z10.string().optional(),
|
|
1654
|
+
android_app_store_id: z10.string().optional(),
|
|
1655
|
+
privacy_policy_url: z10.string().optional(),
|
|
1656
|
+
terms_url: z10.string().optional(),
|
|
1657
|
+
highlights: z10.array(z10.string()).optional(),
|
|
1658
|
+
screenshots: z10.array(z10.string()).optional(),
|
|
1659
|
+
hero_background_color: z10.string().optional(),
|
|
1660
|
+
min_age: z10.number().int().min(0).max(18).optional(),
|
|
1590
1661
|
age_rating: AgeRatingValidator.optional(),
|
|
1591
|
-
submitted_at:
|
|
1662
|
+
submitted_at: z10.string().optional(),
|
|
1592
1663
|
submitter: AppStoreListingSubmitterValidator.optional(),
|
|
1593
|
-
contact_email:
|
|
1664
|
+
contact_email: z10.string().email().optional()
|
|
1594
1665
|
});
|
|
1595
1666
|
var AppStoreListingCreateValidator = AppStoreListingValidator.omit({
|
|
1596
1667
|
listing_id: true,
|
|
@@ -1603,7 +1674,7 @@ var AppStoreListingUpdateValidator = AppStoreListingValidator.partial().omit({
|
|
|
1603
1674
|
promotion_level: true
|
|
1604
1675
|
});
|
|
1605
1676
|
var InstalledAppValidator = AppStoreListingValidator.extend({
|
|
1606
|
-
installed_at:
|
|
1677
|
+
installed_at: z10.string()
|
|
1607
1678
|
});
|
|
1608
1679
|
var PaginatedAppStoreListingsValidator = PaginationResponseValidator.extend({
|
|
1609
1680
|
records: AppStoreListingValidator.array()
|
|
@@ -1611,60 +1682,133 @@ var PaginatedAppStoreListingsValidator = PaginationResponseValidator.extend({
|
|
|
1611
1682
|
var PaginatedInstalledAppsValidator = PaginationResponseValidator.extend({
|
|
1612
1683
|
records: InstalledAppValidator.array()
|
|
1613
1684
|
});
|
|
1614
|
-
var AppBoostValidator =
|
|
1615
|
-
templateAlias:
|
|
1616
|
-
boostUri:
|
|
1685
|
+
var AppBoostValidator = z10.object({
|
|
1686
|
+
templateAlias: z10.string().min(1).max(50).regex(/^[a-z0-9-]+$/),
|
|
1687
|
+
boostUri: z10.string()
|
|
1617
1688
|
});
|
|
1618
|
-
var SendCredentialEventValidator =
|
|
1619
|
-
type:
|
|
1620
|
-
templateAlias:
|
|
1621
|
-
templateData:
|
|
1622
|
-
preventDuplicateClaim:
|
|
1689
|
+
var SendCredentialEventValidator = z10.object({
|
|
1690
|
+
type: z10.literal("send-credential"),
|
|
1691
|
+
templateAlias: z10.string(),
|
|
1692
|
+
templateData: z10.record(z10.string(), z10.unknown()).optional(),
|
|
1693
|
+
preventDuplicateClaim: z10.boolean().optional()
|
|
1623
1694
|
});
|
|
1624
|
-
var CheckCredentialEventValidator =
|
|
1625
|
-
type:
|
|
1626
|
-
templateAlias:
|
|
1627
|
-
boostUri:
|
|
1695
|
+
var CheckCredentialEventValidator = z10.object({
|
|
1696
|
+
type: z10.literal("check-credential"),
|
|
1697
|
+
templateAlias: z10.string().optional(),
|
|
1698
|
+
boostUri: z10.string().optional()
|
|
1628
1699
|
}).refine((input) => Boolean(input.templateAlias) !== Boolean(input.boostUri), {
|
|
1629
1700
|
message: "Exactly one of templateAlias or boostUri is required"
|
|
1630
1701
|
});
|
|
1631
|
-
var CheckIssuanceStatusEventValidator =
|
|
1632
|
-
type:
|
|
1633
|
-
templateAlias:
|
|
1634
|
-
boostUri:
|
|
1635
|
-
recipient:
|
|
1702
|
+
var CheckIssuanceStatusEventValidator = z10.object({
|
|
1703
|
+
type: z10.literal("check-issuance-status"),
|
|
1704
|
+
templateAlias: z10.string().optional(),
|
|
1705
|
+
boostUri: z10.string().optional(),
|
|
1706
|
+
recipient: z10.string()
|
|
1636
1707
|
}).refine((input) => Boolean(input.templateAlias) !== Boolean(input.boostUri), {
|
|
1637
1708
|
message: "Exactly one of templateAlias or boostUri is required"
|
|
1638
1709
|
});
|
|
1639
|
-
var GetTemplateRecipientsEventValidator =
|
|
1640
|
-
type:
|
|
1641
|
-
templateAlias:
|
|
1642
|
-
boostUri:
|
|
1643
|
-
limit:
|
|
1644
|
-
cursor:
|
|
1710
|
+
var GetTemplateRecipientsEventValidator = z10.object({
|
|
1711
|
+
type: z10.literal("get-template-recipients"),
|
|
1712
|
+
templateAlias: z10.string().optional(),
|
|
1713
|
+
boostUri: z10.string().optional(),
|
|
1714
|
+
limit: z10.number().optional(),
|
|
1715
|
+
cursor: z10.string().optional()
|
|
1645
1716
|
}).refine((input) => Boolean(input.templateAlias) !== Boolean(input.boostUri), {
|
|
1646
1717
|
message: "Exactly one of templateAlias or boostUri is required"
|
|
1647
1718
|
});
|
|
1648
|
-
var
|
|
1719
|
+
var RequestLearnerContextEventValidator = z10.object({
|
|
1720
|
+
type: z10.literal("request-learner-context"),
|
|
1721
|
+
includeCredentials: z10.boolean().optional().default(true),
|
|
1722
|
+
includePersonalData: z10.boolean().optional().default(false),
|
|
1723
|
+
format: z10.enum(["prompt", "structured"]).optional().default("prompt"),
|
|
1724
|
+
instructions: z10.string().optional(),
|
|
1725
|
+
detailLevel: z10.enum(["compact", "expanded"]).optional().default("compact")
|
|
1726
|
+
});
|
|
1727
|
+
var SummaryCredentialKeywordValidator = z10.object({
|
|
1728
|
+
occupations: z10.array(z10.string()).nullable(),
|
|
1729
|
+
careers: z10.array(z10.string()).nullable(),
|
|
1730
|
+
jobs: z10.array(z10.string()).nullable(),
|
|
1731
|
+
skills: z10.array(z10.string()).nullable(),
|
|
1732
|
+
fieldOfStudy: z10.string().nullable()
|
|
1733
|
+
});
|
|
1734
|
+
var SummaryCredentialDataValidator = z10.object({
|
|
1735
|
+
title: z10.string().describe("Short, concise title for the learning session or credential"),
|
|
1736
|
+
summary: z10.string().describe("Comprehensive summary of what happened during the session"),
|
|
1737
|
+
learned: z10.array(z10.string()).describe("Bullet points of key knowledge gained"),
|
|
1738
|
+
skills: z10.array(
|
|
1739
|
+
z10.object({
|
|
1740
|
+
title: z10.string().describe("Name of the skill category"),
|
|
1741
|
+
description: z10.string().describe("Detailed description of what this skill category involves")
|
|
1742
|
+
})
|
|
1743
|
+
).describe("Categorized skills learned during the session"),
|
|
1744
|
+
nextSteps: z10.array(
|
|
1745
|
+
z10.object({
|
|
1746
|
+
title: z10.string().describe("Title of the suggested next step"),
|
|
1747
|
+
description: z10.string().describe("Description explaining why this next step is recommended"),
|
|
1748
|
+
keywords: SummaryCredentialKeywordValidator
|
|
1749
|
+
})
|
|
1750
|
+
).describe("Recommended follow-up activities or learning modules"),
|
|
1751
|
+
reflections: z10.array(
|
|
1752
|
+
z10.object({
|
|
1753
|
+
title: z10.string().describe("Title of the reflection"),
|
|
1754
|
+
description: z10.string().describe("Detailed description of what this reflection involves")
|
|
1755
|
+
})
|
|
1756
|
+
).describe("Reflections on the learning experience")
|
|
1757
|
+
});
|
|
1758
|
+
var SendAiSessionCredentialEventValidator = z10.object({
|
|
1759
|
+
type: z10.literal("send-ai-session-credential"),
|
|
1760
|
+
sessionTitle: z10.string(),
|
|
1761
|
+
summaryData: SummaryCredentialDataValidator,
|
|
1762
|
+
metadata: z10.record(z10.string(), z10.unknown()).optional()
|
|
1763
|
+
});
|
|
1764
|
+
var SendNotificationEventValidator = z10.object({
|
|
1765
|
+
type: z10.literal("send-notification"),
|
|
1766
|
+
title: z10.string().optional(),
|
|
1767
|
+
body: z10.string().optional(),
|
|
1768
|
+
actionPath: z10.string().optional(),
|
|
1769
|
+
category: z10.string().optional(),
|
|
1770
|
+
priority: z10.enum(["normal", "high"]).optional()
|
|
1771
|
+
});
|
|
1772
|
+
var counterKeyValidator = z10.string().min(1).max(64).regex(/^[a-zA-Z0-9_-]+$/, "Key must be alphanumeric with _ or -");
|
|
1773
|
+
var IncrementCounterEventValidator = z10.object({
|
|
1774
|
+
type: z10.literal("increment-counter"),
|
|
1775
|
+
key: counterKeyValidator,
|
|
1776
|
+
amount: z10.number().int().finite()
|
|
1777
|
+
});
|
|
1778
|
+
var GetCounterEventValidator = z10.object({
|
|
1779
|
+
type: z10.literal("get-counter"),
|
|
1780
|
+
key: counterKeyValidator
|
|
1781
|
+
});
|
|
1782
|
+
var GetCountersEventValidator = z10.object({
|
|
1783
|
+
type: z10.literal("get-counters"),
|
|
1784
|
+
keys: z10.array(counterKeyValidator).min(1).max(50).optional()
|
|
1785
|
+
});
|
|
1786
|
+
var AppEventValidator = z10.discriminatedUnion("type", [
|
|
1649
1787
|
SendCredentialEventValidator,
|
|
1650
1788
|
CheckCredentialEventValidator,
|
|
1651
1789
|
CheckIssuanceStatusEventValidator,
|
|
1652
|
-
GetTemplateRecipientsEventValidator
|
|
1790
|
+
GetTemplateRecipientsEventValidator,
|
|
1791
|
+
RequestLearnerContextEventValidator,
|
|
1792
|
+
SendAiSessionCredentialEventValidator,
|
|
1793
|
+
SendNotificationEventValidator,
|
|
1794
|
+
IncrementCounterEventValidator,
|
|
1795
|
+
GetCounterEventValidator,
|
|
1796
|
+
GetCountersEventValidator
|
|
1653
1797
|
]);
|
|
1654
|
-
var AppEventInputValidator =
|
|
1655
|
-
listingId:
|
|
1798
|
+
var AppEventInputValidator = z10.object({
|
|
1799
|
+
listingId: z10.string(),
|
|
1656
1800
|
event: AppEventValidator
|
|
1657
1801
|
});
|
|
1658
|
-
var AppEventResponseValidator =
|
|
1659
|
-
var CredentialActivityEventTypeValidator =
|
|
1802
|
+
var AppEventResponseValidator = z10.record(z10.string(), z10.unknown());
|
|
1803
|
+
var CredentialActivityEventTypeValidator = z10.enum([
|
|
1660
1804
|
"CREATED",
|
|
1661
1805
|
"DELIVERED",
|
|
1662
1806
|
"CLAIMED",
|
|
1663
1807
|
"EXPIRED",
|
|
1664
1808
|
"FAILED"
|
|
1665
1809
|
]);
|
|
1666
|
-
var CredentialActivityRecipientTypeValidator =
|
|
1667
|
-
var CredentialActivitySourceTypeValidator =
|
|
1810
|
+
var CredentialActivityRecipientTypeValidator = z10.enum(["profile", "email", "phone"]);
|
|
1811
|
+
var CredentialActivitySourceTypeValidator = z10.enum([
|
|
1668
1812
|
"send",
|
|
1669
1813
|
"sendBoost",
|
|
1670
1814
|
"sendCredential",
|
|
@@ -1675,43 +1819,43 @@ var CredentialActivitySourceTypeValidator = z9.enum([
|
|
|
1675
1819
|
"acceptCredential",
|
|
1676
1820
|
"appEvent"
|
|
1677
1821
|
]);
|
|
1678
|
-
var CredentialActivityValidator =
|
|
1679
|
-
id:
|
|
1680
|
-
activityId:
|
|
1822
|
+
var CredentialActivityValidator = z10.object({
|
|
1823
|
+
id: z10.string(),
|
|
1824
|
+
activityId: z10.string(),
|
|
1681
1825
|
eventType: CredentialActivityEventTypeValidator,
|
|
1682
|
-
timestamp:
|
|
1683
|
-
actorProfileId:
|
|
1826
|
+
timestamp: z10.string(),
|
|
1827
|
+
actorProfileId: z10.string().optional(),
|
|
1684
1828
|
recipientType: CredentialActivityRecipientTypeValidator,
|
|
1685
|
-
recipientIdentifier:
|
|
1686
|
-
boostUri:
|
|
1687
|
-
credentialUri:
|
|
1688
|
-
inboxCredentialId:
|
|
1689
|
-
integrationId:
|
|
1829
|
+
recipientIdentifier: z10.string(),
|
|
1830
|
+
boostUri: z10.string().optional(),
|
|
1831
|
+
credentialUri: z10.string().optional(),
|
|
1832
|
+
inboxCredentialId: z10.string().optional(),
|
|
1833
|
+
integrationId: z10.string().optional(),
|
|
1690
1834
|
source: CredentialActivitySourceTypeValidator,
|
|
1691
|
-
metadata:
|
|
1835
|
+
metadata: z10.record(z10.string(), z10.unknown()).optional()
|
|
1692
1836
|
});
|
|
1693
1837
|
var CredentialActivityWithDetailsValidator = CredentialActivityValidator.extend({
|
|
1694
|
-
boost:
|
|
1695
|
-
id:
|
|
1696
|
-
name:
|
|
1697
|
-
category:
|
|
1838
|
+
boost: z10.object({
|
|
1839
|
+
id: z10.string(),
|
|
1840
|
+
name: z10.string().optional(),
|
|
1841
|
+
category: z10.string().optional()
|
|
1698
1842
|
}).optional(),
|
|
1699
|
-
recipientProfile:
|
|
1700
|
-
profileId:
|
|
1701
|
-
displayName:
|
|
1843
|
+
recipientProfile: z10.object({
|
|
1844
|
+
profileId: z10.string(),
|
|
1845
|
+
displayName: z10.string().optional()
|
|
1702
1846
|
}).optional()
|
|
1703
1847
|
});
|
|
1704
1848
|
var PaginatedCredentialActivitiesValidator = PaginationResponseValidator.extend({
|
|
1705
1849
|
records: CredentialActivityWithDetailsValidator.array()
|
|
1706
1850
|
});
|
|
1707
|
-
var CredentialActivityStatsValidator =
|
|
1708
|
-
total:
|
|
1709
|
-
created:
|
|
1710
|
-
delivered:
|
|
1711
|
-
claimed:
|
|
1712
|
-
expired:
|
|
1713
|
-
failed:
|
|
1714
|
-
claimRate:
|
|
1851
|
+
var CredentialActivityStatsValidator = z10.object({
|
|
1852
|
+
total: z10.number(),
|
|
1853
|
+
created: z10.number(),
|
|
1854
|
+
delivered: z10.number(),
|
|
1855
|
+
claimed: z10.number(),
|
|
1856
|
+
expired: z10.number(),
|
|
1857
|
+
failed: z10.number(),
|
|
1858
|
+
claimRate: z10.number()
|
|
1715
1859
|
});
|
|
1716
1860
|
|
|
1717
1861
|
// src/auth.ts
|
|
@@ -1747,6 +1891,8 @@ export {
|
|
|
1747
1891
|
AppStoreListingSubmitterValidator,
|
|
1748
1892
|
AppStoreListingUpdateValidator,
|
|
1749
1893
|
AppStoreListingValidator,
|
|
1894
|
+
AssociationTypeValidator,
|
|
1895
|
+
AssociationValidator,
|
|
1750
1896
|
AuthGrantQueryValidator,
|
|
1751
1897
|
AuthGrantStatusValidator,
|
|
1752
1898
|
AuthGrantValidator,
|
|
@@ -1765,6 +1911,8 @@ export {
|
|
|
1765
1911
|
ClaimHookValidator,
|
|
1766
1912
|
ClaimInboxCredentialValidator,
|
|
1767
1913
|
ClaimTokenValidator,
|
|
1914
|
+
ClrCredentialValidator,
|
|
1915
|
+
ClrSubjectValidator,
|
|
1768
1916
|
ConsentFlowContractDataForDidValidator,
|
|
1769
1917
|
ConsentFlowContractDataValidator,
|
|
1770
1918
|
ConsentFlowContractDetailsValidator,
|
|
@@ -1823,17 +1971,21 @@ export {
|
|
|
1823
1971
|
FrameworkWithSkillsValidator,
|
|
1824
1972
|
FullClaimHookValidator,
|
|
1825
1973
|
GeoCoordinatesValidator,
|
|
1974
|
+
GetCounterEventValidator,
|
|
1975
|
+
GetCountersEventValidator,
|
|
1826
1976
|
GetFullSkillTreeInputValidator,
|
|
1827
1977
|
GetFullSkillTreeResultValidator,
|
|
1828
1978
|
GetSkillPathInputValidator,
|
|
1829
1979
|
GetSkillPathResultValidator,
|
|
1830
1980
|
GetTemplateRecipientsEventValidator,
|
|
1981
|
+
GuardianStatusValidator,
|
|
1831
1982
|
IdentifierEntryValidator,
|
|
1832
1983
|
IdentifierTypeValidator,
|
|
1833
1984
|
IdentityObjectValidator,
|
|
1834
1985
|
ImageValidator,
|
|
1835
1986
|
InboxCredentialQueryValidator,
|
|
1836
1987
|
InboxCredentialValidator,
|
|
1988
|
+
IncrementCounterEventValidator,
|
|
1837
1989
|
InstalledAppValidator,
|
|
1838
1990
|
IssueInboxCredentialResponseValidator,
|
|
1839
1991
|
IssueInboxCredentialValidator,
|
|
@@ -1908,17 +2060,20 @@ export {
|
|
|
1908
2060
|
RelatedValidator,
|
|
1909
2061
|
ReplaceSkillFrameworkSkillsInputValidator,
|
|
1910
2062
|
ReplaceSkillFrameworkSkillsResultValidator,
|
|
2063
|
+
RequestLearnerContextEventValidator,
|
|
1911
2064
|
ResultDescriptionValidator,
|
|
1912
2065
|
ResultStatusTypeValidator,
|
|
1913
2066
|
ResultTypeValidator,
|
|
1914
2067
|
ResultValidator,
|
|
1915
2068
|
RubricCriterionValidator,
|
|
2069
|
+
SendAiSessionCredentialEventValidator,
|
|
1916
2070
|
SendBoostInputValidator,
|
|
1917
2071
|
SendBoostResponseValidator,
|
|
1918
2072
|
SendBrandingOptionsValidator,
|
|
1919
2073
|
SendCredentialEventValidator,
|
|
1920
2074
|
SendInboxResponseValidator,
|
|
1921
2075
|
SendInputValidator,
|
|
2076
|
+
SendNotificationEventValidator,
|
|
1922
2077
|
SendOptionsValidator,
|
|
1923
2078
|
SendResponseValidator,
|
|
1924
2079
|
SentCredentialInfoValidator,
|
|
@@ -1940,10 +2095,13 @@ export {
|
|
|
1940
2095
|
SkillTreeNodeValidator,
|
|
1941
2096
|
SkillValidator,
|
|
1942
2097
|
StringQuery,
|
|
2098
|
+
SummaryCredentialDataValidator,
|
|
2099
|
+
SummaryCredentialKeywordValidator,
|
|
1943
2100
|
SyncFrameworkInputValidator,
|
|
1944
2101
|
TagValidator,
|
|
1945
2102
|
TermsOfUseValidator,
|
|
1946
2103
|
UnsignedAchievementCredentialValidator,
|
|
2104
|
+
UnsignedClrCredentialValidator,
|
|
1947
2105
|
UnsignedVCValidator,
|
|
1948
2106
|
UnsignedVPValidator,
|
|
1949
2107
|
UpdateFrameworkInputValidator,
|