@learncard/learn-cloud-plugin 2.3.4 → 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 +290 -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 +290 -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,22 +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
36238
|
signedCredential: VCValidator2.optional(),
|
|
36212
|
-
|
|
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")
|
|
36213
36244
|
}).refine((data) => data.templateUri || data.template, {
|
|
36214
36245
|
message: "Either templateUri or template creation data must be provided.",
|
|
36215
36246
|
path: ["templateUri"]
|
|
36216
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
|
+
});
|
|
36217
36253
|
var SendBoostResponseValidator2 = external_exports2.object({
|
|
36218
36254
|
type: external_exports2.literal("boost"),
|
|
36219
36255
|
credentialUri: external_exports2.string(),
|
|
36220
|
-
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
|
+
)
|
|
36221
36261
|
});
|
|
36222
36262
|
var SendInputValidator2 = external_exports2.discriminatedUnion("type", [SendBoostInputValidator2]);
|
|
36223
36263
|
var SendResponseValidator2 = external_exports2.discriminatedUnion("type", [SendBoostResponseValidator2]);
|
|
@@ -36569,6 +36609,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
36569
36609
|
createdAt: external_exports2.string(),
|
|
36570
36610
|
issuerDid: external_exports2.string(),
|
|
36571
36611
|
webhookUrl: external_exports2.string().optional(),
|
|
36612
|
+
boostUri: external_exports2.string().optional(),
|
|
36613
|
+
activityId: external_exports2.string().optional(),
|
|
36572
36614
|
signingAuthority: external_exports2.object({
|
|
36573
36615
|
endpoint: external_exports2.string().optional(),
|
|
36574
36616
|
name: external_exports2.string().optional()
|
|
@@ -36584,7 +36626,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
36584
36626
|
id: external_exports2.string(),
|
|
36585
36627
|
isSigned: external_exports2.boolean(),
|
|
36586
36628
|
isAccepted: external_exports2.boolean().optional(),
|
|
36587
|
-
issuerDid: external_exports2.string()
|
|
36629
|
+
issuerDid: external_exports2.string(),
|
|
36630
|
+
boostUri: external_exports2.string()
|
|
36588
36631
|
}).partial();
|
|
36589
36632
|
var IssueInboxSigningAuthorityValidator2 = external_exports2.object({
|
|
36590
36633
|
endpoint: external_exports2.string().url(),
|
|
@@ -36594,9 +36637,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
36594
36637
|
// === CORE DATA (Required) ===
|
|
36595
36638
|
// WHAT is being sent and WHO is it for?
|
|
36596
36639
|
recipient: ContactMethodQueryValidator2.describe("The recipient of the credential"),
|
|
36597
|
-
credential
|
|
36640
|
+
// Either credential OR templateUri must be provided
|
|
36641
|
+
credential: VCValidator2.or(VPValidator2).or(UnsignedVCValidator2).optional().describe(
|
|
36598
36642
|
"The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
|
|
36599
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
|
+
),
|
|
36600
36647
|
// === OPTIONAL FEATURES ===
|
|
36601
36648
|
// Add major, distinct features at the top level.
|
|
36602
36649
|
//consentRequest: ConsentRequestValidator.optional(),
|
|
@@ -36608,6 +36655,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
36608
36655
|
),
|
|
36609
36656
|
webhookUrl: external_exports2.string().url().optional().describe("The webhook URL to receive credential issuance events."),
|
|
36610
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
|
+
),
|
|
36611
36661
|
// --- For User-Facing Delivery (Email/SMS) ---
|
|
36612
36662
|
delivery: external_exports2.object({
|
|
36613
36663
|
suppress: external_exports2.boolean().optional().default(false).describe(
|
|
@@ -36622,7 +36672,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
36622
36672
|
name: external_exports2.string().optional().describe(
|
|
36623
36673
|
'The name of the organization (e.g., "State University").'
|
|
36624
36674
|
),
|
|
36625
|
-
logoUrl: external_exports2.string().url().optional().describe(
|
|
36675
|
+
logoUrl: external_exports2.string().url().optional().describe(
|
|
36676
|
+
"The URL of the organization's logo."
|
|
36677
|
+
)
|
|
36626
36678
|
}).optional(),
|
|
36627
36679
|
credential: external_exports2.object({
|
|
36628
36680
|
name: external_exports2.string().optional().describe(
|
|
@@ -36649,6 +36701,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
36649
36701
|
}).optional().describe(
|
|
36650
36702
|
"Configuration for the credential issuance. If not provided, the default configuration will be used."
|
|
36651
36703
|
)
|
|
36704
|
+
}).refine((data) => data.credential || data.templateUri, {
|
|
36705
|
+
message: "Either credential or templateUri must be provided.",
|
|
36706
|
+
path: ["credential"]
|
|
36652
36707
|
});
|
|
36653
36708
|
var IssueInboxCredentialResponseValidator2 = external_exports2.object({
|
|
36654
36709
|
issuanceId: external_exports2.string(),
|
|
@@ -36676,28 +36731,43 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
36676
36731
|
{ message: "Must be a valid http(s) origin" }
|
|
36677
36732
|
)
|
|
36678
36733
|
]);
|
|
36734
|
+
var LCNIntegrationStatusEnum2 = external_exports2.enum(["setup", "active", "paused"]);
|
|
36679
36735
|
var LCNIntegrationValidator2 = external_exports2.object({
|
|
36680
36736
|
id: external_exports2.string(),
|
|
36681
36737
|
name: external_exports2.string(),
|
|
36682
36738
|
description: external_exports2.string().optional(),
|
|
36683
36739
|
publishableKey: external_exports2.string(),
|
|
36684
|
-
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()
|
|
36685
36748
|
});
|
|
36686
36749
|
var LCNIntegrationCreateValidator2 = external_exports2.object({
|
|
36687
36750
|
name: external_exports2.string(),
|
|
36688
36751
|
description: external_exports2.string().optional(),
|
|
36689
|
-
whitelistedDomains: external_exports2.array(LCNDomainOrOriginValidator2).default([])
|
|
36752
|
+
whitelistedDomains: external_exports2.array(LCNDomainOrOriginValidator2).default([]),
|
|
36753
|
+
guideType: external_exports2.string().optional()
|
|
36690
36754
|
});
|
|
36691
36755
|
var LCNIntegrationUpdateValidator2 = external_exports2.object({
|
|
36692
36756
|
name: external_exports2.string().optional(),
|
|
36693
36757
|
description: external_exports2.string().optional(),
|
|
36694
36758
|
whitelistedDomains: external_exports2.array(LCNDomainOrOriginValidator2).optional(),
|
|
36695
|
-
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()
|
|
36696
36764
|
});
|
|
36697
36765
|
var LCNIntegrationQueryValidator2 = external_exports2.object({
|
|
36698
36766
|
id: StringQuery2,
|
|
36699
36767
|
name: StringQuery2,
|
|
36700
|
-
description: StringQuery2
|
|
36768
|
+
description: StringQuery2,
|
|
36769
|
+
status: StringQuery2,
|
|
36770
|
+
guideType: StringQuery2
|
|
36701
36771
|
}).partial();
|
|
36702
36772
|
var PaginatedLCNIntegrationsValidator2 = PaginationResponseValidator2.extend({
|
|
36703
36773
|
records: LCNIntegrationValidator2.array()
|
|
@@ -36912,6 +36982,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
36912
36982
|
]);
|
|
36913
36983
|
var AppStoreListingValidator2 = external_exports2.object({
|
|
36914
36984
|
listing_id: external_exports2.string(),
|
|
36985
|
+
slug: external_exports2.string().optional(),
|
|
36915
36986
|
display_name: external_exports2.string(),
|
|
36916
36987
|
tagline: external_exports2.string(),
|
|
36917
36988
|
full_description: external_exports2.string(),
|
|
@@ -36949,6 +37020,77 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
36949
37020
|
var PaginatedInstalledAppsValidator2 = PaginationResponseValidator2.extend({
|
|
36950
37021
|
records: InstalledAppValidator2.array()
|
|
36951
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
|
+
});
|
|
36952
37094
|
}
|
|
36953
37095
|
});
|
|
36954
37096
|
var require_dist = __commonJS4({
|
|
@@ -38293,7 +38435,7 @@ var FullClaimHookValidator = external_exports.object({ id: external_exports.stri
|
|
|
38293
38435
|
var PaginatedClaimHooksValidator = PaginationResponseValidator.extend({
|
|
38294
38436
|
records: FullClaimHookValidator.array()
|
|
38295
38437
|
});
|
|
38296
|
-
var LCNBoostStatus = external_exports.enum(["DRAFT", "LIVE"]);
|
|
38438
|
+
var LCNBoostStatus = external_exports.enum(["DRAFT", "PROVISIONAL", "LIVE"]);
|
|
38297
38439
|
var BoostValidator = external_exports.object({
|
|
38298
38440
|
uri: external_exports.string(),
|
|
38299
38441
|
name: external_exports.string().optional(),
|
|
@@ -38377,22 +38519,46 @@ var SendBoostTemplateValidator = BoostValidator.partial().omit({ uri: true, clai
|
|
|
38377
38519
|
claimPermissions: BoostPermissionsValidator.partial().optional(),
|
|
38378
38520
|
skills: external_exports.array(external_exports.object({ frameworkId: external_exports.string(), id: external_exports.string() })).min(1).optional()
|
|
38379
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
|
+
});
|
|
38380
38533
|
var SendBoostInputValidator = external_exports.object({
|
|
38381
38534
|
type: external_exports.literal("boost"),
|
|
38382
|
-
recipient: external_exports.string(),
|
|
38535
|
+
recipient: external_exports.string().describe("Profile ID, DID, email, or phone number (auto-detected)"),
|
|
38383
38536
|
contractUri: external_exports.string().optional(),
|
|
38384
38537
|
templateUri: external_exports.string().optional(),
|
|
38385
38538
|
template: SendBoostTemplateValidator.optional(),
|
|
38386
38539
|
signedCredential: VCValidator.optional(),
|
|
38387
|
-
|
|
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")
|
|
38388
38545
|
}).refine((data) => data.templateUri || data.template, {
|
|
38389
38546
|
message: "Either templateUri or template creation data must be provided.",
|
|
38390
38547
|
path: ["templateUri"]
|
|
38391
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
|
+
});
|
|
38392
38554
|
var SendBoostResponseValidator = external_exports.object({
|
|
38393
38555
|
type: external_exports.literal("boost"),
|
|
38394
38556
|
credentialUri: external_exports.string(),
|
|
38395
|
-
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
|
+
)
|
|
38396
38562
|
});
|
|
38397
38563
|
var SendInputValidator = external_exports.discriminatedUnion("type", [SendBoostInputValidator]);
|
|
38398
38564
|
var SendResponseValidator = external_exports.discriminatedUnion("type", [SendBoostResponseValidator]);
|
|
@@ -38744,6 +38910,8 @@ var InboxCredentialValidator = external_exports.object({
|
|
|
38744
38910
|
createdAt: external_exports.string(),
|
|
38745
38911
|
issuerDid: external_exports.string(),
|
|
38746
38912
|
webhookUrl: external_exports.string().optional(),
|
|
38913
|
+
boostUri: external_exports.string().optional(),
|
|
38914
|
+
activityId: external_exports.string().optional(),
|
|
38747
38915
|
signingAuthority: external_exports.object({
|
|
38748
38916
|
endpoint: external_exports.string().optional(),
|
|
38749
38917
|
name: external_exports.string().optional()
|
|
@@ -38759,7 +38927,8 @@ var InboxCredentialQueryValidator = external_exports.object({
|
|
|
38759
38927
|
id: external_exports.string(),
|
|
38760
38928
|
isSigned: external_exports.boolean(),
|
|
38761
38929
|
isAccepted: external_exports.boolean().optional(),
|
|
38762
|
-
issuerDid: external_exports.string()
|
|
38930
|
+
issuerDid: external_exports.string(),
|
|
38931
|
+
boostUri: external_exports.string()
|
|
38763
38932
|
}).partial();
|
|
38764
38933
|
var IssueInboxSigningAuthorityValidator = external_exports.object({
|
|
38765
38934
|
endpoint: external_exports.string().url(),
|
|
@@ -38769,9 +38938,13 @@ var IssueInboxCredentialValidator = external_exports.object({
|
|
|
38769
38938
|
// === CORE DATA (Required) ===
|
|
38770
38939
|
// WHAT is being sent and WHO is it for?
|
|
38771
38940
|
recipient: ContactMethodQueryValidator.describe("The recipient of the credential"),
|
|
38772
|
-
credential
|
|
38941
|
+
// Either credential OR templateUri must be provided
|
|
38942
|
+
credential: VCValidator.or(VPValidator).or(UnsignedVCValidator).optional().describe(
|
|
38773
38943
|
"The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
|
|
38774
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
|
+
),
|
|
38775
38948
|
// === OPTIONAL FEATURES ===
|
|
38776
38949
|
// Add major, distinct features at the top level.
|
|
38777
38950
|
//consentRequest: ConsentRequestValidator.optional(),
|
|
@@ -38783,6 +38956,9 @@ var IssueInboxCredentialValidator = external_exports.object({
|
|
|
38783
38956
|
),
|
|
38784
38957
|
webhookUrl: external_exports.string().url().optional().describe("The webhook URL to receive credential issuance events."),
|
|
38785
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
|
+
),
|
|
38786
38962
|
// --- For User-Facing Delivery (Email/SMS) ---
|
|
38787
38963
|
delivery: external_exports.object({
|
|
38788
38964
|
suppress: external_exports.boolean().optional().default(false).describe(
|
|
@@ -38797,7 +38973,9 @@ var IssueInboxCredentialValidator = external_exports.object({
|
|
|
38797
38973
|
name: external_exports.string().optional().describe(
|
|
38798
38974
|
'The name of the organization (e.g., "State University").'
|
|
38799
38975
|
),
|
|
38800
|
-
logoUrl: external_exports.string().url().optional().describe(
|
|
38976
|
+
logoUrl: external_exports.string().url().optional().describe(
|
|
38977
|
+
"The URL of the organization's logo."
|
|
38978
|
+
)
|
|
38801
38979
|
}).optional(),
|
|
38802
38980
|
credential: external_exports.object({
|
|
38803
38981
|
name: external_exports.string().optional().describe(
|
|
@@ -38824,6 +39002,9 @@ var IssueInboxCredentialValidator = external_exports.object({
|
|
|
38824
39002
|
}).optional().describe(
|
|
38825
39003
|
"Configuration for the credential issuance. If not provided, the default configuration will be used."
|
|
38826
39004
|
)
|
|
39005
|
+
}).refine((data) => data.credential || data.templateUri, {
|
|
39006
|
+
message: "Either credential or templateUri must be provided.",
|
|
39007
|
+
path: ["credential"]
|
|
38827
39008
|
});
|
|
38828
39009
|
var IssueInboxCredentialResponseValidator = external_exports.object({
|
|
38829
39010
|
issuanceId: external_exports.string(),
|
|
@@ -38851,28 +39032,43 @@ var LCNDomainOrOriginValidator = external_exports.union([
|
|
|
38851
39032
|
{ message: "Must be a valid http(s) origin" }
|
|
38852
39033
|
)
|
|
38853
39034
|
]);
|
|
39035
|
+
var LCNIntegrationStatusEnum = external_exports.enum(["setup", "active", "paused"]);
|
|
38854
39036
|
var LCNIntegrationValidator = external_exports.object({
|
|
38855
39037
|
id: external_exports.string(),
|
|
38856
39038
|
name: external_exports.string(),
|
|
38857
39039
|
description: external_exports.string().optional(),
|
|
38858
39040
|
publishableKey: external_exports.string(),
|
|
38859
|
-
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()
|
|
38860
39049
|
});
|
|
38861
39050
|
var LCNIntegrationCreateValidator = external_exports.object({
|
|
38862
39051
|
name: external_exports.string(),
|
|
38863
39052
|
description: external_exports.string().optional(),
|
|
38864
|
-
whitelistedDomains: external_exports.array(LCNDomainOrOriginValidator).default([])
|
|
39053
|
+
whitelistedDomains: external_exports.array(LCNDomainOrOriginValidator).default([]),
|
|
39054
|
+
guideType: external_exports.string().optional()
|
|
38865
39055
|
});
|
|
38866
39056
|
var LCNIntegrationUpdateValidator = external_exports.object({
|
|
38867
39057
|
name: external_exports.string().optional(),
|
|
38868
39058
|
description: external_exports.string().optional(),
|
|
38869
39059
|
whitelistedDomains: external_exports.array(LCNDomainOrOriginValidator).optional(),
|
|
38870
|
-
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()
|
|
38871
39065
|
});
|
|
38872
39066
|
var LCNIntegrationQueryValidator = external_exports.object({
|
|
38873
39067
|
id: StringQuery,
|
|
38874
39068
|
name: StringQuery,
|
|
38875
|
-
description: StringQuery
|
|
39069
|
+
description: StringQuery,
|
|
39070
|
+
status: StringQuery,
|
|
39071
|
+
guideType: StringQuery
|
|
38876
39072
|
}).partial();
|
|
38877
39073
|
var PaginatedLCNIntegrationsValidator = PaginationResponseValidator.extend({
|
|
38878
39074
|
records: LCNIntegrationValidator.array()
|
|
@@ -39087,6 +39283,7 @@ var PromotionLevelValidator = external_exports.enum([
|
|
|
39087
39283
|
]);
|
|
39088
39284
|
var AppStoreListingValidator = external_exports.object({
|
|
39089
39285
|
listing_id: external_exports.string(),
|
|
39286
|
+
slug: external_exports.string().optional(),
|
|
39090
39287
|
display_name: external_exports.string(),
|
|
39091
39288
|
tagline: external_exports.string(),
|
|
39092
39289
|
full_description: external_exports.string(),
|
|
@@ -39124,6 +39321,77 @@ var PaginatedAppStoreListingsValidator = PaginationResponseValidator.extend({
|
|
|
39124
39321
|
var PaginatedInstalledAppsValidator = PaginationResponseValidator.extend({
|
|
39125
39322
|
records: InstalledAppValidator.array()
|
|
39126
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
|
+
});
|
|
39127
39395
|
|
|
39128
39396
|
// src/helpers.ts
|
|
39129
39397
|
var import_json_stringify_deterministic = __toESM(require_lib());
|