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