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