@learncard/learn-cloud-plugin 2.3.3 → 2.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/learn-cloud-plugin.cjs.development.js +292 -22
- package/dist/learn-cloud-plugin.cjs.development.js.map +3 -3
- package/dist/learn-cloud-plugin.cjs.production.min.js +27 -27
- package/dist/learn-cloud-plugin.cjs.production.min.js.map +3 -3
- package/dist/learn-cloud-plugin.esm.js +292 -22
- package/dist/learn-cloud-plugin.esm.js.map +3 -3
- package/package.json +7 -7
|
@@ -21594,6 +21594,10 @@ var require_types_cjs_development = __commonJS4({
|
|
|
21594
21594
|
AddressValidator: /* @__PURE__ */ __name3(() => AddressValidator2, "AddressValidator"),
|
|
21595
21595
|
AlignmentTargetTypeValidator: /* @__PURE__ */ __name3(() => AlignmentTargetTypeValidator2, "AlignmentTargetTypeValidator"),
|
|
21596
21596
|
AlignmentValidator: /* @__PURE__ */ __name3(() => AlignmentValidator2, "AlignmentValidator"),
|
|
21597
|
+
AppBoostValidator: /* @__PURE__ */ __name3(() => AppBoostValidator2, "AppBoostValidator"),
|
|
21598
|
+
AppEventInputValidator: /* @__PURE__ */ __name3(() => AppEventInputValidator2, "AppEventInputValidator"),
|
|
21599
|
+
AppEventResponseValidator: /* @__PURE__ */ __name3(() => AppEventResponseValidator2, "AppEventResponseValidator"),
|
|
21600
|
+
AppEventValidator: /* @__PURE__ */ __name3(() => AppEventValidator2, "AppEventValidator"),
|
|
21597
21601
|
AppListingStatusValidator: /* @__PURE__ */ __name3(() => AppListingStatusValidator2, "AppListingStatusValidator"),
|
|
21598
21602
|
AppStoreListingCreateValidator: /* @__PURE__ */ __name3(() => AppStoreListingCreateValidator2, "AppStoreListingCreateValidator"),
|
|
21599
21603
|
AppStoreListingUpdateValidator: /* @__PURE__ */ __name3(() => AppStoreListingUpdateValidator2, "AppStoreListingUpdateValidator"),
|
|
@@ -21642,6 +21646,12 @@ var require_types_cjs_development = __commonJS4({
|
|
|
21642
21646
|
CreateManagedFrameworkInputValidator: /* @__PURE__ */ __name3(() => CreateManagedFrameworkInputValidator2, "CreateManagedFrameworkInputValidator"),
|
|
21643
21647
|
CreateSkillInputValidator: /* @__PURE__ */ __name3(() => CreateSkillInputValidator2, "CreateSkillInputValidator"),
|
|
21644
21648
|
CreateSkillsBatchInputValidator: /* @__PURE__ */ __name3(() => CreateSkillsBatchInputValidator2, "CreateSkillsBatchInputValidator"),
|
|
21649
|
+
CredentialActivityEventTypeValidator: /* @__PURE__ */ __name3(() => CredentialActivityEventTypeValidator2, "CredentialActivityEventTypeValidator"),
|
|
21650
|
+
CredentialActivityRecipientTypeValidator: /* @__PURE__ */ __name3(() => CredentialActivityRecipientTypeValidator2, "CredentialActivityRecipientTypeValidator"),
|
|
21651
|
+
CredentialActivitySourceTypeValidator: /* @__PURE__ */ __name3(() => CredentialActivitySourceTypeValidator2, "CredentialActivitySourceTypeValidator"),
|
|
21652
|
+
CredentialActivityStatsValidator: /* @__PURE__ */ __name3(() => CredentialActivityStatsValidator2, "CredentialActivityStatsValidator"),
|
|
21653
|
+
CredentialActivityValidator: /* @__PURE__ */ __name3(() => CredentialActivityValidator2, "CredentialActivityValidator"),
|
|
21654
|
+
CredentialActivityWithDetailsValidator: /* @__PURE__ */ __name3(() => CredentialActivityWithDetailsValidator2, "CredentialActivityWithDetailsValidator"),
|
|
21645
21655
|
CredentialInfoValidator: /* @__PURE__ */ __name3(() => CredentialInfoValidator2, "CredentialInfoValidator"),
|
|
21646
21656
|
CredentialRecordValidator: /* @__PURE__ */ __name3(() => CredentialRecordValidator2, "CredentialRecordValidator"),
|
|
21647
21657
|
CredentialSchemaValidator: /* @__PURE__ */ __name3(() => CredentialSchemaValidator2, "CredentialSchemaValidator"),
|
|
@@ -21688,6 +21698,7 @@ var require_types_cjs_development = __commonJS4({
|
|
|
21688
21698
|
LCNInboxStatusEnumValidator: /* @__PURE__ */ __name3(() => LCNInboxStatusEnumValidator2, "LCNInboxStatusEnumValidator"),
|
|
21689
21699
|
LCNIntegrationCreateValidator: /* @__PURE__ */ __name3(() => LCNIntegrationCreateValidator2, "LCNIntegrationCreateValidator"),
|
|
21690
21700
|
LCNIntegrationQueryValidator: /* @__PURE__ */ __name3(() => LCNIntegrationQueryValidator2, "LCNIntegrationQueryValidator"),
|
|
21701
|
+
LCNIntegrationStatusEnum: /* @__PURE__ */ __name3(() => LCNIntegrationStatusEnum2, "LCNIntegrationStatusEnum"),
|
|
21691
21702
|
LCNIntegrationUpdateValidator: /* @__PURE__ */ __name3(() => LCNIntegrationUpdateValidator2, "LCNIntegrationUpdateValidator"),
|
|
21692
21703
|
LCNIntegrationValidator: /* @__PURE__ */ __name3(() => LCNIntegrationValidator2, "LCNIntegrationValidator"),
|
|
21693
21704
|
LCNNotificationDataValidator: /* @__PURE__ */ __name3(() => LCNNotificationDataValidator2, "LCNNotificationDataValidator"),
|
|
@@ -21716,6 +21727,7 @@ var require_types_cjs_development = __commonJS4({
|
|
|
21716
21727
|
PaginatedConsentFlowTermsValidator: /* @__PURE__ */ __name3(() => PaginatedConsentFlowTermsValidator2, "PaginatedConsentFlowTermsValidator"),
|
|
21717
21728
|
PaginatedConsentFlowTransactionsValidator: /* @__PURE__ */ __name3(() => PaginatedConsentFlowTransactionsValidator2, "PaginatedConsentFlowTransactionsValidator"),
|
|
21718
21729
|
PaginatedContractCredentialsValidator: /* @__PURE__ */ __name3(() => PaginatedContractCredentialsValidator2, "PaginatedContractCredentialsValidator"),
|
|
21730
|
+
PaginatedCredentialActivitiesValidator: /* @__PURE__ */ __name3(() => PaginatedCredentialActivitiesValidator2, "PaginatedCredentialActivitiesValidator"),
|
|
21719
21731
|
PaginatedEncryptedCredentialRecordsValidator: /* @__PURE__ */ __name3(() => PaginatedEncryptedCredentialRecordsValidator2, "PaginatedEncryptedCredentialRecordsValidator"),
|
|
21720
21732
|
PaginatedEncryptedRecordsValidator: /* @__PURE__ */ __name3(() => PaginatedEncryptedRecordsValidator2, "PaginatedEncryptedRecordsValidator"),
|
|
21721
21733
|
PaginatedInboxCredentialsValidator: /* @__PURE__ */ __name3(() => PaginatedInboxCredentialsValidator2, "PaginatedInboxCredentialsValidator"),
|
|
@@ -21743,7 +21755,11 @@ var require_types_cjs_development = __commonJS4({
|
|
|
21743
21755
|
RubricCriterionValidator: /* @__PURE__ */ __name3(() => RubricCriterionValidator2, "RubricCriterionValidator"),
|
|
21744
21756
|
SendBoostInputValidator: /* @__PURE__ */ __name3(() => SendBoostInputValidator2, "SendBoostInputValidator"),
|
|
21745
21757
|
SendBoostResponseValidator: /* @__PURE__ */ __name3(() => SendBoostResponseValidator2, "SendBoostResponseValidator"),
|
|
21758
|
+
SendBrandingOptionsValidator: /* @__PURE__ */ __name3(() => SendBrandingOptionsValidator2, "SendBrandingOptionsValidator"),
|
|
21759
|
+
SendCredentialEventValidator: /* @__PURE__ */ __name3(() => SendCredentialEventValidator2, "SendCredentialEventValidator"),
|
|
21760
|
+
SendInboxResponseValidator: /* @__PURE__ */ __name3(() => SendInboxResponseValidator2, "SendInboxResponseValidator"),
|
|
21746
21761
|
SendInputValidator: /* @__PURE__ */ __name3(() => SendInputValidator2, "SendInputValidator"),
|
|
21762
|
+
SendOptionsValidator: /* @__PURE__ */ __name3(() => SendOptionsValidator2, "SendOptionsValidator"),
|
|
21747
21763
|
SendResponseValidator: /* @__PURE__ */ __name3(() => SendResponseValidator2, "SendResponseValidator"),
|
|
21748
21764
|
SentCredentialInfoValidator: /* @__PURE__ */ __name3(() => SentCredentialInfoValidator2, "SentCredentialInfoValidator"),
|
|
21749
21765
|
ServiceValidator: /* @__PURE__ */ __name3(() => ServiceValidator2, "ServiceValidator"),
|
|
@@ -36118,7 +36134,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
36118
36134
|
var PaginatedClaimHooksValidator2 = PaginationResponseValidator2.extend({
|
|
36119
36135
|
records: FullClaimHookValidator2.array()
|
|
36120
36136
|
});
|
|
36121
|
-
var LCNBoostStatus2 = external_exports2.enum(["DRAFT", "LIVE"]);
|
|
36137
|
+
var LCNBoostStatus2 = external_exports2.enum(["DRAFT", "PROVISIONAL", "LIVE"]);
|
|
36122
36138
|
var BoostValidator2 = external_exports2.object({
|
|
36123
36139
|
uri: external_exports2.string(),
|
|
36124
36140
|
name: external_exports2.string().optional(),
|
|
@@ -36202,21 +36218,46 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
36202
36218
|
claimPermissions: BoostPermissionsValidator2.partial().optional(),
|
|
36203
36219
|
skills: external_exports2.array(external_exports2.object({ frameworkId: external_exports2.string(), id: external_exports2.string() })).min(1).optional()
|
|
36204
36220
|
});
|
|
36221
|
+
var SendBrandingOptionsValidator2 = external_exports2.object({
|
|
36222
|
+
issuerName: external_exports2.string().optional().describe("Name of the issuing organization"),
|
|
36223
|
+
issuerLogoUrl: external_exports2.string().url().optional().describe("Logo URL of the issuing organization"),
|
|
36224
|
+
credentialName: external_exports2.string().optional().describe("Display name for the credential"),
|
|
36225
|
+
recipientName: external_exports2.string().optional().describe("Name of the recipient for personalization")
|
|
36226
|
+
});
|
|
36227
|
+
var SendOptionsValidator2 = external_exports2.object({
|
|
36228
|
+
webhookUrl: external_exports2.string().url().optional().describe("Webhook URL to receive claim notifications"),
|
|
36229
|
+
suppressDelivery: external_exports2.boolean().optional().describe("If true, returns claimUrl without sending email/SMS"),
|
|
36230
|
+
branding: SendBrandingOptionsValidator2.optional().describe("Branding for email/SMS delivery")
|
|
36231
|
+
});
|
|
36205
36232
|
var SendBoostInputValidator2 = external_exports2.object({
|
|
36206
36233
|
type: external_exports2.literal("boost"),
|
|
36207
|
-
recipient: external_exports2.string(),
|
|
36234
|
+
recipient: external_exports2.string().describe("Profile ID, DID, email, or phone number (auto-detected)"),
|
|
36208
36235
|
contractUri: external_exports2.string().optional(),
|
|
36209
36236
|
templateUri: external_exports2.string().optional(),
|
|
36210
36237
|
template: SendBoostTemplateValidator2.optional(),
|
|
36211
|
-
signedCredential: VCValidator2.optional()
|
|
36238
|
+
signedCredential: VCValidator2.optional(),
|
|
36239
|
+
options: SendOptionsValidator2.optional().describe(
|
|
36240
|
+
"Options for email/phone recipients (Universal Inbox)"
|
|
36241
|
+
),
|
|
36242
|
+
templateData: external_exports2.record(external_exports2.string(), external_exports2.unknown()).optional(),
|
|
36243
|
+
integrationId: external_exports2.string().optional().describe("Integration ID for activity tracking")
|
|
36212
36244
|
}).refine((data) => data.templateUri || data.template, {
|
|
36213
36245
|
message: "Either templateUri or template creation data must be provided.",
|
|
36214
36246
|
path: ["templateUri"]
|
|
36215
36247
|
});
|
|
36248
|
+
var SendInboxResponseValidator2 = external_exports2.object({
|
|
36249
|
+
issuanceId: external_exports2.string(),
|
|
36250
|
+
status: external_exports2.enum(["PENDING", "ISSUED", "EXPIRED", "DELIVERED", "CLAIMED"]),
|
|
36251
|
+
claimUrl: external_exports2.string().url().optional().describe("Present when suppressDelivery=true")
|
|
36252
|
+
});
|
|
36216
36253
|
var SendBoostResponseValidator2 = external_exports2.object({
|
|
36217
36254
|
type: external_exports2.literal("boost"),
|
|
36218
36255
|
credentialUri: external_exports2.string(),
|
|
36219
|
-
uri: external_exports2.string()
|
|
36256
|
+
uri: external_exports2.string(),
|
|
36257
|
+
activityId: external_exports2.string().describe("Links to the activity lifecycle for this issuance"),
|
|
36258
|
+
inbox: SendInboxResponseValidator2.optional().describe(
|
|
36259
|
+
"Present when sent via email/phone (Universal Inbox)"
|
|
36260
|
+
)
|
|
36220
36261
|
});
|
|
36221
36262
|
var SendInputValidator2 = external_exports2.discriminatedUnion("type", [SendBoostInputValidator2]);
|
|
36222
36263
|
var SendResponseValidator2 = external_exports2.discriminatedUnion("type", [SendBoostResponseValidator2]);
|
|
@@ -36568,6 +36609,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
36568
36609
|
createdAt: external_exports2.string(),
|
|
36569
36610
|
issuerDid: external_exports2.string(),
|
|
36570
36611
|
webhookUrl: external_exports2.string().optional(),
|
|
36612
|
+
boostUri: external_exports2.string().optional(),
|
|
36613
|
+
activityId: external_exports2.string().optional(),
|
|
36571
36614
|
signingAuthority: external_exports2.object({
|
|
36572
36615
|
endpoint: external_exports2.string().optional(),
|
|
36573
36616
|
name: external_exports2.string().optional()
|
|
@@ -36583,7 +36626,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
36583
36626
|
id: external_exports2.string(),
|
|
36584
36627
|
isSigned: external_exports2.boolean(),
|
|
36585
36628
|
isAccepted: external_exports2.boolean().optional(),
|
|
36586
|
-
issuerDid: external_exports2.string()
|
|
36629
|
+
issuerDid: external_exports2.string(),
|
|
36630
|
+
boostUri: external_exports2.string()
|
|
36587
36631
|
}).partial();
|
|
36588
36632
|
var IssueInboxSigningAuthorityValidator2 = external_exports2.object({
|
|
36589
36633
|
endpoint: external_exports2.string().url(),
|
|
@@ -36593,9 +36637,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
36593
36637
|
// === CORE DATA (Required) ===
|
|
36594
36638
|
// WHAT is being sent and WHO is it for?
|
|
36595
36639
|
recipient: ContactMethodQueryValidator2.describe("The recipient of the credential"),
|
|
36596
|
-
credential
|
|
36640
|
+
// Either credential OR templateUri must be provided
|
|
36641
|
+
credential: VCValidator2.or(VPValidator2).or(UnsignedVCValidator2).optional().describe(
|
|
36597
36642
|
"The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
|
|
36598
36643
|
),
|
|
36644
|
+
templateUri: external_exports2.string().optional().describe(
|
|
36645
|
+
"URI of a boost template to use for issuance. The boost credential will be resolved and used. Mutually exclusive with credential field."
|
|
36646
|
+
),
|
|
36599
36647
|
// === OPTIONAL FEATURES ===
|
|
36600
36648
|
// Add major, distinct features at the top level.
|
|
36601
36649
|
//consentRequest: ConsentRequestValidator.optional(),
|
|
@@ -36607,6 +36655,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
36607
36655
|
),
|
|
36608
36656
|
webhookUrl: external_exports2.string().url().optional().describe("The webhook URL to receive credential issuance events."),
|
|
36609
36657
|
expiresInDays: external_exports2.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
|
|
36658
|
+
templateData: external_exports2.record(external_exports2.string(), external_exports2.unknown()).optional().describe(
|
|
36659
|
+
"Template data to render into the boost credential template using Mustache syntax. Only used when boostUri is provided."
|
|
36660
|
+
),
|
|
36610
36661
|
// --- For User-Facing Delivery (Email/SMS) ---
|
|
36611
36662
|
delivery: external_exports2.object({
|
|
36612
36663
|
suppress: external_exports2.boolean().optional().default(false).describe(
|
|
@@ -36621,7 +36672,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
36621
36672
|
name: external_exports2.string().optional().describe(
|
|
36622
36673
|
'The name of the organization (e.g., "State University").'
|
|
36623
36674
|
),
|
|
36624
|
-
logoUrl: external_exports2.string().url().optional().describe(
|
|
36675
|
+
logoUrl: external_exports2.string().url().optional().describe(
|
|
36676
|
+
"The URL of the organization's logo."
|
|
36677
|
+
)
|
|
36625
36678
|
}).optional(),
|
|
36626
36679
|
credential: external_exports2.object({
|
|
36627
36680
|
name: external_exports2.string().optional().describe(
|
|
@@ -36648,6 +36701,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
36648
36701
|
}).optional().describe(
|
|
36649
36702
|
"Configuration for the credential issuance. If not provided, the default configuration will be used."
|
|
36650
36703
|
)
|
|
36704
|
+
}).refine((data) => data.credential || data.templateUri, {
|
|
36705
|
+
message: "Either credential or templateUri must be provided.",
|
|
36706
|
+
path: ["credential"]
|
|
36651
36707
|
});
|
|
36652
36708
|
var IssueInboxCredentialResponseValidator2 = external_exports2.object({
|
|
36653
36709
|
issuanceId: external_exports2.string(),
|
|
@@ -36675,28 +36731,43 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
36675
36731
|
{ message: "Must be a valid http(s) origin" }
|
|
36676
36732
|
)
|
|
36677
36733
|
]);
|
|
36734
|
+
var LCNIntegrationStatusEnum2 = external_exports2.enum(["setup", "active", "paused"]);
|
|
36678
36735
|
var LCNIntegrationValidator2 = external_exports2.object({
|
|
36679
36736
|
id: external_exports2.string(),
|
|
36680
36737
|
name: external_exports2.string(),
|
|
36681
36738
|
description: external_exports2.string().optional(),
|
|
36682
36739
|
publishableKey: external_exports2.string(),
|
|
36683
|
-
whitelistedDomains: external_exports2.array(LCNDomainOrOriginValidator2).default([])
|
|
36740
|
+
whitelistedDomains: external_exports2.array(LCNDomainOrOriginValidator2).default([]),
|
|
36741
|
+
// Setup/onboarding status
|
|
36742
|
+
status: LCNIntegrationStatusEnum2.default("setup"),
|
|
36743
|
+
guideType: external_exports2.string().optional(),
|
|
36744
|
+
guideState: external_exports2.record(external_exports2.string(), external_exports2.any()).optional(),
|
|
36745
|
+
// Timestamps
|
|
36746
|
+
createdAt: external_exports2.string().optional(),
|
|
36747
|
+
updatedAt: external_exports2.string().optional()
|
|
36684
36748
|
});
|
|
36685
36749
|
var LCNIntegrationCreateValidator2 = external_exports2.object({
|
|
36686
36750
|
name: external_exports2.string(),
|
|
36687
36751
|
description: external_exports2.string().optional(),
|
|
36688
|
-
whitelistedDomains: external_exports2.array(LCNDomainOrOriginValidator2).default([])
|
|
36752
|
+
whitelistedDomains: external_exports2.array(LCNDomainOrOriginValidator2).default([]),
|
|
36753
|
+
guideType: external_exports2.string().optional()
|
|
36689
36754
|
});
|
|
36690
36755
|
var LCNIntegrationUpdateValidator2 = external_exports2.object({
|
|
36691
36756
|
name: external_exports2.string().optional(),
|
|
36692
36757
|
description: external_exports2.string().optional(),
|
|
36693
36758
|
whitelistedDomains: external_exports2.array(LCNDomainOrOriginValidator2).optional(),
|
|
36694
|
-
rotatePublishableKey: external_exports2.boolean().optional()
|
|
36759
|
+
rotatePublishableKey: external_exports2.boolean().optional(),
|
|
36760
|
+
// Setup/onboarding updates
|
|
36761
|
+
status: LCNIntegrationStatusEnum2.optional(),
|
|
36762
|
+
guideType: external_exports2.string().optional(),
|
|
36763
|
+
guideState: external_exports2.record(external_exports2.string(), external_exports2.any()).optional()
|
|
36695
36764
|
});
|
|
36696
36765
|
var LCNIntegrationQueryValidator2 = external_exports2.object({
|
|
36697
36766
|
id: StringQuery2,
|
|
36698
36767
|
name: StringQuery2,
|
|
36699
|
-
description: StringQuery2
|
|
36768
|
+
description: StringQuery2,
|
|
36769
|
+
status: StringQuery2,
|
|
36770
|
+
guideType: StringQuery2
|
|
36700
36771
|
}).partial();
|
|
36701
36772
|
var PaginatedLCNIntegrationsValidator2 = PaginationResponseValidator2.extend({
|
|
36702
36773
|
records: LCNIntegrationValidator2.array()
|
|
@@ -36911,6 +36982,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
36911
36982
|
]);
|
|
36912
36983
|
var AppStoreListingValidator2 = external_exports2.object({
|
|
36913
36984
|
listing_id: external_exports2.string(),
|
|
36985
|
+
slug: external_exports2.string().optional(),
|
|
36914
36986
|
display_name: external_exports2.string(),
|
|
36915
36987
|
tagline: external_exports2.string(),
|
|
36916
36988
|
full_description: external_exports2.string(),
|
|
@@ -36948,6 +37020,77 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
36948
37020
|
var PaginatedInstalledAppsValidator2 = PaginationResponseValidator2.extend({
|
|
36949
37021
|
records: InstalledAppValidator2.array()
|
|
36950
37022
|
});
|
|
37023
|
+
var AppBoostValidator2 = external_exports2.object({
|
|
37024
|
+
templateAlias: external_exports2.string().min(1).max(50).regex(/^[a-z0-9-]+$/),
|
|
37025
|
+
boostUri: external_exports2.string()
|
|
37026
|
+
});
|
|
37027
|
+
var SendCredentialEventValidator2 = external_exports2.object({
|
|
37028
|
+
type: external_exports2.literal("send-credential"),
|
|
37029
|
+
templateAlias: external_exports2.string(),
|
|
37030
|
+
templateData: external_exports2.record(external_exports2.string(), external_exports2.unknown()).optional()
|
|
37031
|
+
});
|
|
37032
|
+
var AppEventValidator2 = external_exports2.discriminatedUnion("type", [SendCredentialEventValidator2]);
|
|
37033
|
+
var AppEventInputValidator2 = external_exports2.object({
|
|
37034
|
+
listingId: external_exports2.string(),
|
|
37035
|
+
event: AppEventValidator2
|
|
37036
|
+
});
|
|
37037
|
+
var AppEventResponseValidator2 = external_exports2.record(external_exports2.string(), external_exports2.unknown());
|
|
37038
|
+
var CredentialActivityEventTypeValidator2 = external_exports2.enum([
|
|
37039
|
+
"CREATED",
|
|
37040
|
+
"DELIVERED",
|
|
37041
|
+
"CLAIMED",
|
|
37042
|
+
"EXPIRED",
|
|
37043
|
+
"FAILED"
|
|
37044
|
+
]);
|
|
37045
|
+
var CredentialActivityRecipientTypeValidator2 = external_exports2.enum(["profile", "email", "phone"]);
|
|
37046
|
+
var CredentialActivitySourceTypeValidator2 = external_exports2.enum([
|
|
37047
|
+
"send",
|
|
37048
|
+
"sendBoost",
|
|
37049
|
+
"sendCredential",
|
|
37050
|
+
"contract",
|
|
37051
|
+
"claim",
|
|
37052
|
+
"inbox",
|
|
37053
|
+
"claimLink",
|
|
37054
|
+
"acceptCredential"
|
|
37055
|
+
]);
|
|
37056
|
+
var CredentialActivityValidator2 = external_exports2.object({
|
|
37057
|
+
id: external_exports2.string(),
|
|
37058
|
+
activityId: external_exports2.string(),
|
|
37059
|
+
eventType: CredentialActivityEventTypeValidator2,
|
|
37060
|
+
timestamp: external_exports2.string(),
|
|
37061
|
+
actorProfileId: external_exports2.string(),
|
|
37062
|
+
recipientType: CredentialActivityRecipientTypeValidator2,
|
|
37063
|
+
recipientIdentifier: external_exports2.string(),
|
|
37064
|
+
boostUri: external_exports2.string().optional(),
|
|
37065
|
+
credentialUri: external_exports2.string().optional(),
|
|
37066
|
+
inboxCredentialId: external_exports2.string().optional(),
|
|
37067
|
+
integrationId: external_exports2.string().optional(),
|
|
37068
|
+
source: CredentialActivitySourceTypeValidator2,
|
|
37069
|
+
metadata: external_exports2.record(external_exports2.string(), external_exports2.unknown()).optional()
|
|
37070
|
+
});
|
|
37071
|
+
var CredentialActivityWithDetailsValidator2 = CredentialActivityValidator2.extend({
|
|
37072
|
+
boost: external_exports2.object({
|
|
37073
|
+
id: external_exports2.string(),
|
|
37074
|
+
name: external_exports2.string().optional(),
|
|
37075
|
+
category: external_exports2.string().optional()
|
|
37076
|
+
}).optional(),
|
|
37077
|
+
recipientProfile: external_exports2.object({
|
|
37078
|
+
profileId: external_exports2.string(),
|
|
37079
|
+
displayName: external_exports2.string().optional()
|
|
37080
|
+
}).optional()
|
|
37081
|
+
});
|
|
37082
|
+
var PaginatedCredentialActivitiesValidator2 = PaginationResponseValidator2.extend({
|
|
37083
|
+
records: CredentialActivityWithDetailsValidator2.array()
|
|
37084
|
+
});
|
|
37085
|
+
var CredentialActivityStatsValidator2 = external_exports2.object({
|
|
37086
|
+
total: external_exports2.number(),
|
|
37087
|
+
created: external_exports2.number(),
|
|
37088
|
+
delivered: external_exports2.number(),
|
|
37089
|
+
claimed: external_exports2.number(),
|
|
37090
|
+
expired: external_exports2.number(),
|
|
37091
|
+
failed: external_exports2.number(),
|
|
37092
|
+
claimRate: external_exports2.number()
|
|
37093
|
+
});
|
|
36951
37094
|
}
|
|
36952
37095
|
});
|
|
36953
37096
|
var require_dist = __commonJS4({
|
|
@@ -38292,7 +38435,7 @@ var FullClaimHookValidator = external_exports.object({ id: external_exports.stri
|
|
|
38292
38435
|
var PaginatedClaimHooksValidator = PaginationResponseValidator.extend({
|
|
38293
38436
|
records: FullClaimHookValidator.array()
|
|
38294
38437
|
});
|
|
38295
|
-
var LCNBoostStatus = external_exports.enum(["DRAFT", "LIVE"]);
|
|
38438
|
+
var LCNBoostStatus = external_exports.enum(["DRAFT", "PROVISIONAL", "LIVE"]);
|
|
38296
38439
|
var BoostValidator = external_exports.object({
|
|
38297
38440
|
uri: external_exports.string(),
|
|
38298
38441
|
name: external_exports.string().optional(),
|
|
@@ -38376,21 +38519,46 @@ var SendBoostTemplateValidator = BoostValidator.partial().omit({ uri: true, clai
|
|
|
38376
38519
|
claimPermissions: BoostPermissionsValidator.partial().optional(),
|
|
38377
38520
|
skills: external_exports.array(external_exports.object({ frameworkId: external_exports.string(), id: external_exports.string() })).min(1).optional()
|
|
38378
38521
|
});
|
|
38522
|
+
var SendBrandingOptionsValidator = external_exports.object({
|
|
38523
|
+
issuerName: external_exports.string().optional().describe("Name of the issuing organization"),
|
|
38524
|
+
issuerLogoUrl: external_exports.string().url().optional().describe("Logo URL of the issuing organization"),
|
|
38525
|
+
credentialName: external_exports.string().optional().describe("Display name for the credential"),
|
|
38526
|
+
recipientName: external_exports.string().optional().describe("Name of the recipient for personalization")
|
|
38527
|
+
});
|
|
38528
|
+
var SendOptionsValidator = external_exports.object({
|
|
38529
|
+
webhookUrl: external_exports.string().url().optional().describe("Webhook URL to receive claim notifications"),
|
|
38530
|
+
suppressDelivery: external_exports.boolean().optional().describe("If true, returns claimUrl without sending email/SMS"),
|
|
38531
|
+
branding: SendBrandingOptionsValidator.optional().describe("Branding for email/SMS delivery")
|
|
38532
|
+
});
|
|
38379
38533
|
var SendBoostInputValidator = external_exports.object({
|
|
38380
38534
|
type: external_exports.literal("boost"),
|
|
38381
|
-
recipient: external_exports.string(),
|
|
38535
|
+
recipient: external_exports.string().describe("Profile ID, DID, email, or phone number (auto-detected)"),
|
|
38382
38536
|
contractUri: external_exports.string().optional(),
|
|
38383
38537
|
templateUri: external_exports.string().optional(),
|
|
38384
38538
|
template: SendBoostTemplateValidator.optional(),
|
|
38385
|
-
signedCredential: VCValidator.optional()
|
|
38539
|
+
signedCredential: VCValidator.optional(),
|
|
38540
|
+
options: SendOptionsValidator.optional().describe(
|
|
38541
|
+
"Options for email/phone recipients (Universal Inbox)"
|
|
38542
|
+
),
|
|
38543
|
+
templateData: external_exports.record(external_exports.string(), external_exports.unknown()).optional(),
|
|
38544
|
+
integrationId: external_exports.string().optional().describe("Integration ID for activity tracking")
|
|
38386
38545
|
}).refine((data) => data.templateUri || data.template, {
|
|
38387
38546
|
message: "Either templateUri or template creation data must be provided.",
|
|
38388
38547
|
path: ["templateUri"]
|
|
38389
38548
|
});
|
|
38549
|
+
var SendInboxResponseValidator = external_exports.object({
|
|
38550
|
+
issuanceId: external_exports.string(),
|
|
38551
|
+
status: external_exports.enum(["PENDING", "ISSUED", "EXPIRED", "DELIVERED", "CLAIMED"]),
|
|
38552
|
+
claimUrl: external_exports.string().url().optional().describe("Present when suppressDelivery=true")
|
|
38553
|
+
});
|
|
38390
38554
|
var SendBoostResponseValidator = external_exports.object({
|
|
38391
38555
|
type: external_exports.literal("boost"),
|
|
38392
38556
|
credentialUri: external_exports.string(),
|
|
38393
|
-
uri: external_exports.string()
|
|
38557
|
+
uri: external_exports.string(),
|
|
38558
|
+
activityId: external_exports.string().describe("Links to the activity lifecycle for this issuance"),
|
|
38559
|
+
inbox: SendInboxResponseValidator.optional().describe(
|
|
38560
|
+
"Present when sent via email/phone (Universal Inbox)"
|
|
38561
|
+
)
|
|
38394
38562
|
});
|
|
38395
38563
|
var SendInputValidator = external_exports.discriminatedUnion("type", [SendBoostInputValidator]);
|
|
38396
38564
|
var SendResponseValidator = external_exports.discriminatedUnion("type", [SendBoostResponseValidator]);
|
|
@@ -38742,6 +38910,8 @@ var InboxCredentialValidator = external_exports.object({
|
|
|
38742
38910
|
createdAt: external_exports.string(),
|
|
38743
38911
|
issuerDid: external_exports.string(),
|
|
38744
38912
|
webhookUrl: external_exports.string().optional(),
|
|
38913
|
+
boostUri: external_exports.string().optional(),
|
|
38914
|
+
activityId: external_exports.string().optional(),
|
|
38745
38915
|
signingAuthority: external_exports.object({
|
|
38746
38916
|
endpoint: external_exports.string().optional(),
|
|
38747
38917
|
name: external_exports.string().optional()
|
|
@@ -38757,7 +38927,8 @@ var InboxCredentialQueryValidator = external_exports.object({
|
|
|
38757
38927
|
id: external_exports.string(),
|
|
38758
38928
|
isSigned: external_exports.boolean(),
|
|
38759
38929
|
isAccepted: external_exports.boolean().optional(),
|
|
38760
|
-
issuerDid: external_exports.string()
|
|
38930
|
+
issuerDid: external_exports.string(),
|
|
38931
|
+
boostUri: external_exports.string()
|
|
38761
38932
|
}).partial();
|
|
38762
38933
|
var IssueInboxSigningAuthorityValidator = external_exports.object({
|
|
38763
38934
|
endpoint: external_exports.string().url(),
|
|
@@ -38767,9 +38938,13 @@ var IssueInboxCredentialValidator = external_exports.object({
|
|
|
38767
38938
|
// === CORE DATA (Required) ===
|
|
38768
38939
|
// WHAT is being sent and WHO is it for?
|
|
38769
38940
|
recipient: ContactMethodQueryValidator.describe("The recipient of the credential"),
|
|
38770
|
-
credential
|
|
38941
|
+
// Either credential OR templateUri must be provided
|
|
38942
|
+
credential: VCValidator.or(VPValidator).or(UnsignedVCValidator).optional().describe(
|
|
38771
38943
|
"The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
|
|
38772
38944
|
),
|
|
38945
|
+
templateUri: external_exports.string().optional().describe(
|
|
38946
|
+
"URI of a boost template to use for issuance. The boost credential will be resolved and used. Mutually exclusive with credential field."
|
|
38947
|
+
),
|
|
38773
38948
|
// === OPTIONAL FEATURES ===
|
|
38774
38949
|
// Add major, distinct features at the top level.
|
|
38775
38950
|
//consentRequest: ConsentRequestValidator.optional(),
|
|
@@ -38781,6 +38956,9 @@ var IssueInboxCredentialValidator = external_exports.object({
|
|
|
38781
38956
|
),
|
|
38782
38957
|
webhookUrl: external_exports.string().url().optional().describe("The webhook URL to receive credential issuance events."),
|
|
38783
38958
|
expiresInDays: external_exports.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
|
|
38959
|
+
templateData: external_exports.record(external_exports.string(), external_exports.unknown()).optional().describe(
|
|
38960
|
+
"Template data to render into the boost credential template using Mustache syntax. Only used when boostUri is provided."
|
|
38961
|
+
),
|
|
38784
38962
|
// --- For User-Facing Delivery (Email/SMS) ---
|
|
38785
38963
|
delivery: external_exports.object({
|
|
38786
38964
|
suppress: external_exports.boolean().optional().default(false).describe(
|
|
@@ -38795,7 +38973,9 @@ var IssueInboxCredentialValidator = external_exports.object({
|
|
|
38795
38973
|
name: external_exports.string().optional().describe(
|
|
38796
38974
|
'The name of the organization (e.g., "State University").'
|
|
38797
38975
|
),
|
|
38798
|
-
logoUrl: external_exports.string().url().optional().describe(
|
|
38976
|
+
logoUrl: external_exports.string().url().optional().describe(
|
|
38977
|
+
"The URL of the organization's logo."
|
|
38978
|
+
)
|
|
38799
38979
|
}).optional(),
|
|
38800
38980
|
credential: external_exports.object({
|
|
38801
38981
|
name: external_exports.string().optional().describe(
|
|
@@ -38822,6 +39002,9 @@ var IssueInboxCredentialValidator = external_exports.object({
|
|
|
38822
39002
|
}).optional().describe(
|
|
38823
39003
|
"Configuration for the credential issuance. If not provided, the default configuration will be used."
|
|
38824
39004
|
)
|
|
39005
|
+
}).refine((data) => data.credential || data.templateUri, {
|
|
39006
|
+
message: "Either credential or templateUri must be provided.",
|
|
39007
|
+
path: ["credential"]
|
|
38825
39008
|
});
|
|
38826
39009
|
var IssueInboxCredentialResponseValidator = external_exports.object({
|
|
38827
39010
|
issuanceId: external_exports.string(),
|
|
@@ -38849,28 +39032,43 @@ var LCNDomainOrOriginValidator = external_exports.union([
|
|
|
38849
39032
|
{ message: "Must be a valid http(s) origin" }
|
|
38850
39033
|
)
|
|
38851
39034
|
]);
|
|
39035
|
+
var LCNIntegrationStatusEnum = external_exports.enum(["setup", "active", "paused"]);
|
|
38852
39036
|
var LCNIntegrationValidator = external_exports.object({
|
|
38853
39037
|
id: external_exports.string(),
|
|
38854
39038
|
name: external_exports.string(),
|
|
38855
39039
|
description: external_exports.string().optional(),
|
|
38856
39040
|
publishableKey: external_exports.string(),
|
|
38857
|
-
whitelistedDomains: external_exports.array(LCNDomainOrOriginValidator).default([])
|
|
39041
|
+
whitelistedDomains: external_exports.array(LCNDomainOrOriginValidator).default([]),
|
|
39042
|
+
// Setup/onboarding status
|
|
39043
|
+
status: LCNIntegrationStatusEnum.default("setup"),
|
|
39044
|
+
guideType: external_exports.string().optional(),
|
|
39045
|
+
guideState: external_exports.record(external_exports.string(), external_exports.any()).optional(),
|
|
39046
|
+
// Timestamps
|
|
39047
|
+
createdAt: external_exports.string().optional(),
|
|
39048
|
+
updatedAt: external_exports.string().optional()
|
|
38858
39049
|
});
|
|
38859
39050
|
var LCNIntegrationCreateValidator = external_exports.object({
|
|
38860
39051
|
name: external_exports.string(),
|
|
38861
39052
|
description: external_exports.string().optional(),
|
|
38862
|
-
whitelistedDomains: external_exports.array(LCNDomainOrOriginValidator).default([])
|
|
39053
|
+
whitelistedDomains: external_exports.array(LCNDomainOrOriginValidator).default([]),
|
|
39054
|
+
guideType: external_exports.string().optional()
|
|
38863
39055
|
});
|
|
38864
39056
|
var LCNIntegrationUpdateValidator = external_exports.object({
|
|
38865
39057
|
name: external_exports.string().optional(),
|
|
38866
39058
|
description: external_exports.string().optional(),
|
|
38867
39059
|
whitelistedDomains: external_exports.array(LCNDomainOrOriginValidator).optional(),
|
|
38868
|
-
rotatePublishableKey: external_exports.boolean().optional()
|
|
39060
|
+
rotatePublishableKey: external_exports.boolean().optional(),
|
|
39061
|
+
// Setup/onboarding updates
|
|
39062
|
+
status: LCNIntegrationStatusEnum.optional(),
|
|
39063
|
+
guideType: external_exports.string().optional(),
|
|
39064
|
+
guideState: external_exports.record(external_exports.string(), external_exports.any()).optional()
|
|
38869
39065
|
});
|
|
38870
39066
|
var LCNIntegrationQueryValidator = external_exports.object({
|
|
38871
39067
|
id: StringQuery,
|
|
38872
39068
|
name: StringQuery,
|
|
38873
|
-
description: StringQuery
|
|
39069
|
+
description: StringQuery,
|
|
39070
|
+
status: StringQuery,
|
|
39071
|
+
guideType: StringQuery
|
|
38874
39072
|
}).partial();
|
|
38875
39073
|
var PaginatedLCNIntegrationsValidator = PaginationResponseValidator.extend({
|
|
38876
39074
|
records: LCNIntegrationValidator.array()
|
|
@@ -39085,6 +39283,7 @@ var PromotionLevelValidator = external_exports.enum([
|
|
|
39085
39283
|
]);
|
|
39086
39284
|
var AppStoreListingValidator = external_exports.object({
|
|
39087
39285
|
listing_id: external_exports.string(),
|
|
39286
|
+
slug: external_exports.string().optional(),
|
|
39088
39287
|
display_name: external_exports.string(),
|
|
39089
39288
|
tagline: external_exports.string(),
|
|
39090
39289
|
full_description: external_exports.string(),
|
|
@@ -39122,6 +39321,77 @@ var PaginatedAppStoreListingsValidator = PaginationResponseValidator.extend({
|
|
|
39122
39321
|
var PaginatedInstalledAppsValidator = PaginationResponseValidator.extend({
|
|
39123
39322
|
records: InstalledAppValidator.array()
|
|
39124
39323
|
});
|
|
39324
|
+
var AppBoostValidator = external_exports.object({
|
|
39325
|
+
templateAlias: external_exports.string().min(1).max(50).regex(/^[a-z0-9-]+$/),
|
|
39326
|
+
boostUri: external_exports.string()
|
|
39327
|
+
});
|
|
39328
|
+
var SendCredentialEventValidator = external_exports.object({
|
|
39329
|
+
type: external_exports.literal("send-credential"),
|
|
39330
|
+
templateAlias: external_exports.string(),
|
|
39331
|
+
templateData: external_exports.record(external_exports.string(), external_exports.unknown()).optional()
|
|
39332
|
+
});
|
|
39333
|
+
var AppEventValidator = external_exports.discriminatedUnion("type", [SendCredentialEventValidator]);
|
|
39334
|
+
var AppEventInputValidator = external_exports.object({
|
|
39335
|
+
listingId: external_exports.string(),
|
|
39336
|
+
event: AppEventValidator
|
|
39337
|
+
});
|
|
39338
|
+
var AppEventResponseValidator = external_exports.record(external_exports.string(), external_exports.unknown());
|
|
39339
|
+
var CredentialActivityEventTypeValidator = external_exports.enum([
|
|
39340
|
+
"CREATED",
|
|
39341
|
+
"DELIVERED",
|
|
39342
|
+
"CLAIMED",
|
|
39343
|
+
"EXPIRED",
|
|
39344
|
+
"FAILED"
|
|
39345
|
+
]);
|
|
39346
|
+
var CredentialActivityRecipientTypeValidator = external_exports.enum(["profile", "email", "phone"]);
|
|
39347
|
+
var CredentialActivitySourceTypeValidator = external_exports.enum([
|
|
39348
|
+
"send",
|
|
39349
|
+
"sendBoost",
|
|
39350
|
+
"sendCredential",
|
|
39351
|
+
"contract",
|
|
39352
|
+
"claim",
|
|
39353
|
+
"inbox",
|
|
39354
|
+
"claimLink",
|
|
39355
|
+
"acceptCredential"
|
|
39356
|
+
]);
|
|
39357
|
+
var CredentialActivityValidator = external_exports.object({
|
|
39358
|
+
id: external_exports.string(),
|
|
39359
|
+
activityId: external_exports.string(),
|
|
39360
|
+
eventType: CredentialActivityEventTypeValidator,
|
|
39361
|
+
timestamp: external_exports.string(),
|
|
39362
|
+
actorProfileId: external_exports.string(),
|
|
39363
|
+
recipientType: CredentialActivityRecipientTypeValidator,
|
|
39364
|
+
recipientIdentifier: external_exports.string(),
|
|
39365
|
+
boostUri: external_exports.string().optional(),
|
|
39366
|
+
credentialUri: external_exports.string().optional(),
|
|
39367
|
+
inboxCredentialId: external_exports.string().optional(),
|
|
39368
|
+
integrationId: external_exports.string().optional(),
|
|
39369
|
+
source: CredentialActivitySourceTypeValidator,
|
|
39370
|
+
metadata: external_exports.record(external_exports.string(), external_exports.unknown()).optional()
|
|
39371
|
+
});
|
|
39372
|
+
var CredentialActivityWithDetailsValidator = CredentialActivityValidator.extend({
|
|
39373
|
+
boost: external_exports.object({
|
|
39374
|
+
id: external_exports.string(),
|
|
39375
|
+
name: external_exports.string().optional(),
|
|
39376
|
+
category: external_exports.string().optional()
|
|
39377
|
+
}).optional(),
|
|
39378
|
+
recipientProfile: external_exports.object({
|
|
39379
|
+
profileId: external_exports.string(),
|
|
39380
|
+
displayName: external_exports.string().optional()
|
|
39381
|
+
}).optional()
|
|
39382
|
+
});
|
|
39383
|
+
var PaginatedCredentialActivitiesValidator = PaginationResponseValidator.extend({
|
|
39384
|
+
records: CredentialActivityWithDetailsValidator.array()
|
|
39385
|
+
});
|
|
39386
|
+
var CredentialActivityStatsValidator = external_exports.object({
|
|
39387
|
+
total: external_exports.number(),
|
|
39388
|
+
created: external_exports.number(),
|
|
39389
|
+
delivered: external_exports.number(),
|
|
39390
|
+
claimed: external_exports.number(),
|
|
39391
|
+
expired: external_exports.number(),
|
|
39392
|
+
failed: external_exports.number(),
|
|
39393
|
+
claimRate: external_exports.number()
|
|
39394
|
+
});
|
|
39125
39395
|
|
|
39126
39396
|
// src/helpers.ts
|
|
39127
39397
|
var import_json_stringify_deterministic = __toESM(require_lib());
|