@learncard/helpers 1.2.2 → 1.2.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/helpers.cjs.development.js +177 -12
- package/dist/helpers.cjs.development.js.map +2 -2
- package/dist/helpers.cjs.production.min.js +6 -6
- package/dist/helpers.cjs.production.min.js.map +3 -3
- package/dist/helpers.d.ts +9 -0
- package/dist/helpers.esm.js +177 -12
- package/dist/helpers.esm.js.map +2 -2
- package/package.json +2 -2
|
@@ -65,6 +65,10 @@ var require_types_cjs_development = __commonJS({
|
|
|
65
65
|
AddressValidator: /* @__PURE__ */ __name(() => AddressValidator, "AddressValidator"),
|
|
66
66
|
AlignmentTargetTypeValidator: /* @__PURE__ */ __name(() => AlignmentTargetTypeValidator, "AlignmentTargetTypeValidator"),
|
|
67
67
|
AlignmentValidator: /* @__PURE__ */ __name(() => AlignmentValidator, "AlignmentValidator"),
|
|
68
|
+
AppBoostValidator: /* @__PURE__ */ __name(() => AppBoostValidator, "AppBoostValidator"),
|
|
69
|
+
AppEventInputValidator: /* @__PURE__ */ __name(() => AppEventInputValidator, "AppEventInputValidator"),
|
|
70
|
+
AppEventResponseValidator: /* @__PURE__ */ __name(() => AppEventResponseValidator, "AppEventResponseValidator"),
|
|
71
|
+
AppEventValidator: /* @__PURE__ */ __name(() => AppEventValidator, "AppEventValidator"),
|
|
68
72
|
AppListingStatusValidator: /* @__PURE__ */ __name(() => AppListingStatusValidator, "AppListingStatusValidator"),
|
|
69
73
|
AppStoreListingCreateValidator: /* @__PURE__ */ __name(() => AppStoreListingCreateValidator, "AppStoreListingCreateValidator"),
|
|
70
74
|
AppStoreListingUpdateValidator: /* @__PURE__ */ __name(() => AppStoreListingUpdateValidator, "AppStoreListingUpdateValidator"),
|
|
@@ -113,6 +117,12 @@ var require_types_cjs_development = __commonJS({
|
|
|
113
117
|
CreateManagedFrameworkInputValidator: /* @__PURE__ */ __name(() => CreateManagedFrameworkInputValidator, "CreateManagedFrameworkInputValidator"),
|
|
114
118
|
CreateSkillInputValidator: /* @__PURE__ */ __name(() => CreateSkillInputValidator, "CreateSkillInputValidator"),
|
|
115
119
|
CreateSkillsBatchInputValidator: /* @__PURE__ */ __name(() => CreateSkillsBatchInputValidator, "CreateSkillsBatchInputValidator"),
|
|
120
|
+
CredentialActivityEventTypeValidator: /* @__PURE__ */ __name(() => CredentialActivityEventTypeValidator, "CredentialActivityEventTypeValidator"),
|
|
121
|
+
CredentialActivityRecipientTypeValidator: /* @__PURE__ */ __name(() => CredentialActivityRecipientTypeValidator, "CredentialActivityRecipientTypeValidator"),
|
|
122
|
+
CredentialActivitySourceTypeValidator: /* @__PURE__ */ __name(() => CredentialActivitySourceTypeValidator, "CredentialActivitySourceTypeValidator"),
|
|
123
|
+
CredentialActivityStatsValidator: /* @__PURE__ */ __name(() => CredentialActivityStatsValidator, "CredentialActivityStatsValidator"),
|
|
124
|
+
CredentialActivityValidator: /* @__PURE__ */ __name(() => CredentialActivityValidator, "CredentialActivityValidator"),
|
|
125
|
+
CredentialActivityWithDetailsValidator: /* @__PURE__ */ __name(() => CredentialActivityWithDetailsValidator, "CredentialActivityWithDetailsValidator"),
|
|
116
126
|
CredentialInfoValidator: /* @__PURE__ */ __name(() => CredentialInfoValidator, "CredentialInfoValidator"),
|
|
117
127
|
CredentialRecordValidator: /* @__PURE__ */ __name(() => CredentialRecordValidator, "CredentialRecordValidator"),
|
|
118
128
|
CredentialSchemaValidator: /* @__PURE__ */ __name(() => CredentialSchemaValidator, "CredentialSchemaValidator"),
|
|
@@ -159,6 +169,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
159
169
|
LCNInboxStatusEnumValidator: /* @__PURE__ */ __name(() => LCNInboxStatusEnumValidator, "LCNInboxStatusEnumValidator"),
|
|
160
170
|
LCNIntegrationCreateValidator: /* @__PURE__ */ __name(() => LCNIntegrationCreateValidator, "LCNIntegrationCreateValidator"),
|
|
161
171
|
LCNIntegrationQueryValidator: /* @__PURE__ */ __name(() => LCNIntegrationQueryValidator, "LCNIntegrationQueryValidator"),
|
|
172
|
+
LCNIntegrationStatusEnum: /* @__PURE__ */ __name(() => LCNIntegrationStatusEnum, "LCNIntegrationStatusEnum"),
|
|
162
173
|
LCNIntegrationUpdateValidator: /* @__PURE__ */ __name(() => LCNIntegrationUpdateValidator, "LCNIntegrationUpdateValidator"),
|
|
163
174
|
LCNIntegrationValidator: /* @__PURE__ */ __name(() => LCNIntegrationValidator, "LCNIntegrationValidator"),
|
|
164
175
|
LCNNotificationDataValidator: /* @__PURE__ */ __name(() => LCNNotificationDataValidator, "LCNNotificationDataValidator"),
|
|
@@ -187,6 +198,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
187
198
|
PaginatedConsentFlowTermsValidator: /* @__PURE__ */ __name(() => PaginatedConsentFlowTermsValidator, "PaginatedConsentFlowTermsValidator"),
|
|
188
199
|
PaginatedConsentFlowTransactionsValidator: /* @__PURE__ */ __name(() => PaginatedConsentFlowTransactionsValidator, "PaginatedConsentFlowTransactionsValidator"),
|
|
189
200
|
PaginatedContractCredentialsValidator: /* @__PURE__ */ __name(() => PaginatedContractCredentialsValidator, "PaginatedContractCredentialsValidator"),
|
|
201
|
+
PaginatedCredentialActivitiesValidator: /* @__PURE__ */ __name(() => PaginatedCredentialActivitiesValidator, "PaginatedCredentialActivitiesValidator"),
|
|
190
202
|
PaginatedEncryptedCredentialRecordsValidator: /* @__PURE__ */ __name(() => PaginatedEncryptedCredentialRecordsValidator, "PaginatedEncryptedCredentialRecordsValidator"),
|
|
191
203
|
PaginatedEncryptedRecordsValidator: /* @__PURE__ */ __name(() => PaginatedEncryptedRecordsValidator, "PaginatedEncryptedRecordsValidator"),
|
|
192
204
|
PaginatedInboxCredentialsValidator: /* @__PURE__ */ __name(() => PaginatedInboxCredentialsValidator, "PaginatedInboxCredentialsValidator"),
|
|
@@ -214,7 +226,11 @@ var require_types_cjs_development = __commonJS({
|
|
|
214
226
|
RubricCriterionValidator: /* @__PURE__ */ __name(() => RubricCriterionValidator, "RubricCriterionValidator"),
|
|
215
227
|
SendBoostInputValidator: /* @__PURE__ */ __name(() => SendBoostInputValidator, "SendBoostInputValidator"),
|
|
216
228
|
SendBoostResponseValidator: /* @__PURE__ */ __name(() => SendBoostResponseValidator, "SendBoostResponseValidator"),
|
|
229
|
+
SendBrandingOptionsValidator: /* @__PURE__ */ __name(() => SendBrandingOptionsValidator, "SendBrandingOptionsValidator"),
|
|
230
|
+
SendCredentialEventValidator: /* @__PURE__ */ __name(() => SendCredentialEventValidator, "SendCredentialEventValidator"),
|
|
231
|
+
SendInboxResponseValidator: /* @__PURE__ */ __name(() => SendInboxResponseValidator, "SendInboxResponseValidator"),
|
|
217
232
|
SendInputValidator: /* @__PURE__ */ __name(() => SendInputValidator, "SendInputValidator"),
|
|
233
|
+
SendOptionsValidator: /* @__PURE__ */ __name(() => SendOptionsValidator, "SendOptionsValidator"),
|
|
218
234
|
SendResponseValidator: /* @__PURE__ */ __name(() => SendResponseValidator, "SendResponseValidator"),
|
|
219
235
|
SentCredentialInfoValidator: /* @__PURE__ */ __name(() => SentCredentialInfoValidator, "SentCredentialInfoValidator"),
|
|
220
236
|
ServiceValidator: /* @__PURE__ */ __name(() => ServiceValidator, "ServiceValidator"),
|
|
@@ -227,6 +243,9 @@ var require_types_cjs_development = __commonJS({
|
|
|
227
243
|
SkillFrameworkStatusEnum: /* @__PURE__ */ __name(() => SkillFrameworkStatusEnum, "SkillFrameworkStatusEnum"),
|
|
228
244
|
SkillFrameworkValidator: /* @__PURE__ */ __name(() => SkillFrameworkValidator, "SkillFrameworkValidator"),
|
|
229
245
|
SkillQueryValidator: /* @__PURE__ */ __name(() => SkillQueryValidator, "SkillQueryValidator"),
|
|
246
|
+
SkillSemanticSearchInputValidator: /* @__PURE__ */ __name(() => SkillSemanticSearchInputValidator, "SkillSemanticSearchInputValidator"),
|
|
247
|
+
SkillSemanticSearchResultItemValidator: /* @__PURE__ */ __name(() => SkillSemanticSearchResultItemValidator, "SkillSemanticSearchResultItemValidator"),
|
|
248
|
+
SkillSemanticSearchResultValidator: /* @__PURE__ */ __name(() => SkillSemanticSearchResultValidator, "SkillSemanticSearchResultValidator"),
|
|
230
249
|
SkillStatusEnum: /* @__PURE__ */ __name(() => SkillStatusEnum, "SkillStatusEnum"),
|
|
231
250
|
SkillTreeNodeInputValidator: /* @__PURE__ */ __name(() => SkillTreeNodeInputValidator, "SkillTreeNodeInputValidator"),
|
|
232
251
|
SkillTreeNodeValidator: /* @__PURE__ */ __name(() => SkillTreeNodeValidator, "SkillTreeNodeValidator"),
|
|
@@ -14226,7 +14245,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14226
14245
|
var PaginatedClaimHooksValidator = PaginationResponseValidator.extend({
|
|
14227
14246
|
records: FullClaimHookValidator.array()
|
|
14228
14247
|
});
|
|
14229
|
-
var LCNBoostStatus = external_exports.enum(["DRAFT", "LIVE"]);
|
|
14248
|
+
var LCNBoostStatus = external_exports.enum(["DRAFT", "PROVISIONAL", "LIVE"]);
|
|
14230
14249
|
var BoostValidator = external_exports.object({
|
|
14231
14250
|
uri: external_exports.string(),
|
|
14232
14251
|
name: external_exports.string().optional(),
|
|
@@ -14310,22 +14329,46 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14310
14329
|
claimPermissions: BoostPermissionsValidator.partial().optional(),
|
|
14311
14330
|
skills: external_exports.array(external_exports.object({ frameworkId: external_exports.string(), id: external_exports.string() })).min(1).optional()
|
|
14312
14331
|
});
|
|
14332
|
+
var SendBrandingOptionsValidator = external_exports.object({
|
|
14333
|
+
issuerName: external_exports.string().optional().describe("Name of the issuing organization"),
|
|
14334
|
+
issuerLogoUrl: external_exports.string().url().optional().describe("Logo URL of the issuing organization"),
|
|
14335
|
+
credentialName: external_exports.string().optional().describe("Display name for the credential"),
|
|
14336
|
+
recipientName: external_exports.string().optional().describe("Name of the recipient for personalization")
|
|
14337
|
+
});
|
|
14338
|
+
var SendOptionsValidator = external_exports.object({
|
|
14339
|
+
webhookUrl: external_exports.string().url().optional().describe("Webhook URL to receive claim notifications"),
|
|
14340
|
+
suppressDelivery: external_exports.boolean().optional().describe("If true, returns claimUrl without sending email/SMS"),
|
|
14341
|
+
branding: SendBrandingOptionsValidator.optional().describe("Branding for email/SMS delivery")
|
|
14342
|
+
});
|
|
14313
14343
|
var SendBoostInputValidator = external_exports.object({
|
|
14314
14344
|
type: external_exports.literal("boost"),
|
|
14315
|
-
recipient: external_exports.string(),
|
|
14345
|
+
recipient: external_exports.string().describe("Profile ID, DID, email, or phone number (auto-detected)"),
|
|
14316
14346
|
contractUri: external_exports.string().optional(),
|
|
14317
14347
|
templateUri: external_exports.string().optional(),
|
|
14318
14348
|
template: SendBoostTemplateValidator.optional(),
|
|
14319
14349
|
signedCredential: VCValidator.optional(),
|
|
14320
|
-
|
|
14350
|
+
options: SendOptionsValidator.optional().describe(
|
|
14351
|
+
"Options for email/phone recipients (Universal Inbox)"
|
|
14352
|
+
),
|
|
14353
|
+
templateData: external_exports.record(external_exports.string(), external_exports.unknown()).optional(),
|
|
14354
|
+
integrationId: external_exports.string().optional().describe("Integration ID for activity tracking")
|
|
14321
14355
|
}).refine((data) => data.templateUri || data.template, {
|
|
14322
14356
|
message: "Either templateUri or template creation data must be provided.",
|
|
14323
14357
|
path: ["templateUri"]
|
|
14324
14358
|
});
|
|
14359
|
+
var SendInboxResponseValidator = external_exports.object({
|
|
14360
|
+
issuanceId: external_exports.string(),
|
|
14361
|
+
status: external_exports.enum(["PENDING", "ISSUED", "EXPIRED", "DELIVERED", "CLAIMED"]),
|
|
14362
|
+
claimUrl: external_exports.string().url().optional().describe("Present when suppressDelivery=true")
|
|
14363
|
+
});
|
|
14325
14364
|
var SendBoostResponseValidator = external_exports.object({
|
|
14326
14365
|
type: external_exports.literal("boost"),
|
|
14327
14366
|
credentialUri: external_exports.string(),
|
|
14328
|
-
uri: external_exports.string()
|
|
14367
|
+
uri: external_exports.string(),
|
|
14368
|
+
activityId: external_exports.string().describe("Links to the activity lifecycle for this issuance"),
|
|
14369
|
+
inbox: SendInboxResponseValidator.optional().describe(
|
|
14370
|
+
"Present when sent via email/phone (Universal Inbox)"
|
|
14371
|
+
)
|
|
14329
14372
|
});
|
|
14330
14373
|
var SendInputValidator = external_exports.discriminatedUnion("type", [SendBoostInputValidator]);
|
|
14331
14374
|
var SendResponseValidator = external_exports.discriminatedUnion("type", [SendBoostResponseValidator]);
|
|
@@ -14526,6 +14569,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14526
14569
|
});
|
|
14527
14570
|
var LCNNotificationTypeEnumValidator = external_exports.enum([
|
|
14528
14571
|
"CONNECTION_REQUEST",
|
|
14572
|
+
"CONNECTION_REQUEST_EXPIRED_INVITE",
|
|
14529
14573
|
"CONNECTION_ACCEPTED",
|
|
14530
14574
|
"CREDENTIAL_RECEIVED",
|
|
14531
14575
|
"CREDENTIAL_ACCEPTED",
|
|
@@ -14677,6 +14721,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14677
14721
|
createdAt: external_exports.string(),
|
|
14678
14722
|
issuerDid: external_exports.string(),
|
|
14679
14723
|
webhookUrl: external_exports.string().optional(),
|
|
14724
|
+
boostUri: external_exports.string().optional(),
|
|
14725
|
+
activityId: external_exports.string().optional(),
|
|
14680
14726
|
signingAuthority: external_exports.object({
|
|
14681
14727
|
endpoint: external_exports.string().optional(),
|
|
14682
14728
|
name: external_exports.string().optional()
|
|
@@ -14692,7 +14738,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14692
14738
|
id: external_exports.string(),
|
|
14693
14739
|
isSigned: external_exports.boolean(),
|
|
14694
14740
|
isAccepted: external_exports.boolean().optional(),
|
|
14695
|
-
issuerDid: external_exports.string()
|
|
14741
|
+
issuerDid: external_exports.string(),
|
|
14742
|
+
boostUri: external_exports.string()
|
|
14696
14743
|
}).partial();
|
|
14697
14744
|
var IssueInboxSigningAuthorityValidator = external_exports.object({
|
|
14698
14745
|
endpoint: external_exports.string().url(),
|
|
@@ -14702,9 +14749,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14702
14749
|
// === CORE DATA (Required) ===
|
|
14703
14750
|
// WHAT is being sent and WHO is it for?
|
|
14704
14751
|
recipient: ContactMethodQueryValidator.describe("The recipient of the credential"),
|
|
14705
|
-
credential
|
|
14752
|
+
// Either credential OR templateUri must be provided
|
|
14753
|
+
credential: VCValidator.or(VPValidator).or(UnsignedVCValidator).optional().describe(
|
|
14706
14754
|
"The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
|
|
14707
14755
|
),
|
|
14756
|
+
templateUri: external_exports.string().optional().describe(
|
|
14757
|
+
"URI of a boost template to use for issuance. The boost credential will be resolved and used. Mutually exclusive with credential field."
|
|
14758
|
+
),
|
|
14708
14759
|
// === OPTIONAL FEATURES ===
|
|
14709
14760
|
// Add major, distinct features at the top level.
|
|
14710
14761
|
//consentRequest: ConsentRequestValidator.optional(),
|
|
@@ -14716,6 +14767,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14716
14767
|
),
|
|
14717
14768
|
webhookUrl: external_exports.string().url().optional().describe("The webhook URL to receive credential issuance events."),
|
|
14718
14769
|
expiresInDays: external_exports.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
|
|
14770
|
+
templateData: external_exports.record(external_exports.string(), external_exports.unknown()).optional().describe(
|
|
14771
|
+
"Template data to render into the boost credential template using Mustache syntax. Only used when boostUri is provided."
|
|
14772
|
+
),
|
|
14719
14773
|
// --- For User-Facing Delivery (Email/SMS) ---
|
|
14720
14774
|
delivery: external_exports.object({
|
|
14721
14775
|
suppress: external_exports.boolean().optional().default(false).describe(
|
|
@@ -14730,7 +14784,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14730
14784
|
name: external_exports.string().optional().describe(
|
|
14731
14785
|
'The name of the organization (e.g., "State University").'
|
|
14732
14786
|
),
|
|
14733
|
-
logoUrl: external_exports.string().url().optional().describe(
|
|
14787
|
+
logoUrl: external_exports.string().url().optional().describe(
|
|
14788
|
+
"The URL of the organization's logo."
|
|
14789
|
+
)
|
|
14734
14790
|
}).optional(),
|
|
14735
14791
|
credential: external_exports.object({
|
|
14736
14792
|
name: external_exports.string().optional().describe(
|
|
@@ -14757,6 +14813,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14757
14813
|
}).optional().describe(
|
|
14758
14814
|
"Configuration for the credential issuance. If not provided, the default configuration will be used."
|
|
14759
14815
|
)
|
|
14816
|
+
}).refine((data) => data.credential || data.templateUri, {
|
|
14817
|
+
message: "Either credential or templateUri must be provided.",
|
|
14818
|
+
path: ["credential"]
|
|
14760
14819
|
});
|
|
14761
14820
|
var IssueInboxCredentialResponseValidator = external_exports.object({
|
|
14762
14821
|
issuanceId: external_exports.string(),
|
|
@@ -14769,7 +14828,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14769
14828
|
credential: VCValidator.or(VPValidator).or(UnsignedVCValidator).describe("The credential to issue."),
|
|
14770
14829
|
configuration: external_exports.object({
|
|
14771
14830
|
publishableKey: external_exports.string(),
|
|
14772
|
-
signingAuthorityName: external_exports.string().optional()
|
|
14831
|
+
signingAuthorityName: external_exports.string().optional(),
|
|
14832
|
+
listingId: external_exports.string().optional(),
|
|
14833
|
+
listingSlug: external_exports.string().optional()
|
|
14773
14834
|
}).optional()
|
|
14774
14835
|
});
|
|
14775
14836
|
var LCNDomainOrOriginValidator = external_exports.union([
|
|
@@ -14784,28 +14845,43 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14784
14845
|
{ message: "Must be a valid http(s) origin" }
|
|
14785
14846
|
)
|
|
14786
14847
|
]);
|
|
14848
|
+
var LCNIntegrationStatusEnum = external_exports.enum(["setup", "active", "paused"]);
|
|
14787
14849
|
var LCNIntegrationValidator = external_exports.object({
|
|
14788
14850
|
id: external_exports.string(),
|
|
14789
14851
|
name: external_exports.string(),
|
|
14790
14852
|
description: external_exports.string().optional(),
|
|
14791
14853
|
publishableKey: external_exports.string(),
|
|
14792
|
-
whitelistedDomains: external_exports.array(LCNDomainOrOriginValidator).default([])
|
|
14854
|
+
whitelistedDomains: external_exports.array(LCNDomainOrOriginValidator).default([]),
|
|
14855
|
+
// Setup/onboarding status
|
|
14856
|
+
status: LCNIntegrationStatusEnum.default("setup"),
|
|
14857
|
+
guideType: external_exports.string().optional(),
|
|
14858
|
+
guideState: external_exports.record(external_exports.string(), external_exports.any()).optional(),
|
|
14859
|
+
// Timestamps
|
|
14860
|
+
createdAt: external_exports.string().optional(),
|
|
14861
|
+
updatedAt: external_exports.string().optional()
|
|
14793
14862
|
});
|
|
14794
14863
|
var LCNIntegrationCreateValidator = external_exports.object({
|
|
14795
14864
|
name: external_exports.string(),
|
|
14796
14865
|
description: external_exports.string().optional(),
|
|
14797
|
-
whitelistedDomains: external_exports.array(LCNDomainOrOriginValidator).default([])
|
|
14866
|
+
whitelistedDomains: external_exports.array(LCNDomainOrOriginValidator).default([]),
|
|
14867
|
+
guideType: external_exports.string().optional()
|
|
14798
14868
|
});
|
|
14799
14869
|
var LCNIntegrationUpdateValidator = external_exports.object({
|
|
14800
14870
|
name: external_exports.string().optional(),
|
|
14801
14871
|
description: external_exports.string().optional(),
|
|
14802
14872
|
whitelistedDomains: external_exports.array(LCNDomainOrOriginValidator).optional(),
|
|
14803
|
-
rotatePublishableKey: external_exports.boolean().optional()
|
|
14873
|
+
rotatePublishableKey: external_exports.boolean().optional(),
|
|
14874
|
+
// Setup/onboarding updates
|
|
14875
|
+
status: LCNIntegrationStatusEnum.optional(),
|
|
14876
|
+
guideType: external_exports.string().optional(),
|
|
14877
|
+
guideState: external_exports.record(external_exports.string(), external_exports.any()).optional()
|
|
14804
14878
|
});
|
|
14805
14879
|
var LCNIntegrationQueryValidator = external_exports.object({
|
|
14806
14880
|
id: StringQuery,
|
|
14807
14881
|
name: StringQuery,
|
|
14808
|
-
description: StringQuery
|
|
14882
|
+
description: StringQuery,
|
|
14883
|
+
status: StringQuery,
|
|
14884
|
+
guideType: StringQuery
|
|
14809
14885
|
}).partial();
|
|
14810
14886
|
var PaginatedLCNIntegrationsValidator = PaginationResponseValidator.extend({
|
|
14811
14887
|
records: LCNIntegrationValidator.array()
|
|
@@ -14852,6 +14928,17 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14852
14928
|
}),
|
|
14853
14929
|
BaseSkillQueryValidator
|
|
14854
14930
|
]);
|
|
14931
|
+
var SkillSemanticSearchInputValidator = external_exports.object({
|
|
14932
|
+
text: external_exports.string().min(1),
|
|
14933
|
+
frameworkId: external_exports.string().optional(),
|
|
14934
|
+
limit: external_exports.number().int().min(1).max(200).default(50)
|
|
14935
|
+
});
|
|
14936
|
+
var SkillSemanticSearchResultItemValidator = SkillValidator.extend({
|
|
14937
|
+
score: external_exports.number()
|
|
14938
|
+
});
|
|
14939
|
+
var SkillSemanticSearchResultValidator = external_exports.object({
|
|
14940
|
+
records: SkillSemanticSearchResultItemValidator.array()
|
|
14941
|
+
});
|
|
14855
14942
|
var SkillFrameworkStatusEnum = external_exports.enum(["active", "archived"]);
|
|
14856
14943
|
var SkillFrameworkValidator = external_exports.object({
|
|
14857
14944
|
id: external_exports.string(),
|
|
@@ -15020,6 +15107,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15020
15107
|
]);
|
|
15021
15108
|
var AppStoreListingValidator = external_exports.object({
|
|
15022
15109
|
listing_id: external_exports.string(),
|
|
15110
|
+
slug: external_exports.string().optional(),
|
|
15023
15111
|
display_name: external_exports.string(),
|
|
15024
15112
|
tagline: external_exports.string(),
|
|
15025
15113
|
full_description: external_exports.string(),
|
|
@@ -15057,6 +15145,77 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15057
15145
|
var PaginatedInstalledAppsValidator = PaginationResponseValidator.extend({
|
|
15058
15146
|
records: InstalledAppValidator.array()
|
|
15059
15147
|
});
|
|
15148
|
+
var AppBoostValidator = external_exports.object({
|
|
15149
|
+
templateAlias: external_exports.string().min(1).max(50).regex(/^[a-z0-9-]+$/),
|
|
15150
|
+
boostUri: external_exports.string()
|
|
15151
|
+
});
|
|
15152
|
+
var SendCredentialEventValidator = external_exports.object({
|
|
15153
|
+
type: external_exports.literal("send-credential"),
|
|
15154
|
+
templateAlias: external_exports.string(),
|
|
15155
|
+
templateData: external_exports.record(external_exports.string(), external_exports.unknown()).optional()
|
|
15156
|
+
});
|
|
15157
|
+
var AppEventValidator = external_exports.discriminatedUnion("type", [SendCredentialEventValidator]);
|
|
15158
|
+
var AppEventInputValidator = external_exports.object({
|
|
15159
|
+
listingId: external_exports.string(),
|
|
15160
|
+
event: AppEventValidator
|
|
15161
|
+
});
|
|
15162
|
+
var AppEventResponseValidator = external_exports.record(external_exports.string(), external_exports.unknown());
|
|
15163
|
+
var CredentialActivityEventTypeValidator = external_exports.enum([
|
|
15164
|
+
"CREATED",
|
|
15165
|
+
"DELIVERED",
|
|
15166
|
+
"CLAIMED",
|
|
15167
|
+
"EXPIRED",
|
|
15168
|
+
"FAILED"
|
|
15169
|
+
]);
|
|
15170
|
+
var CredentialActivityRecipientTypeValidator = external_exports.enum(["profile", "email", "phone"]);
|
|
15171
|
+
var CredentialActivitySourceTypeValidator = external_exports.enum([
|
|
15172
|
+
"send",
|
|
15173
|
+
"sendBoost",
|
|
15174
|
+
"sendCredential",
|
|
15175
|
+
"contract",
|
|
15176
|
+
"claim",
|
|
15177
|
+
"inbox",
|
|
15178
|
+
"claimLink",
|
|
15179
|
+
"acceptCredential"
|
|
15180
|
+
]);
|
|
15181
|
+
var CredentialActivityValidator = external_exports.object({
|
|
15182
|
+
id: external_exports.string(),
|
|
15183
|
+
activityId: external_exports.string(),
|
|
15184
|
+
eventType: CredentialActivityEventTypeValidator,
|
|
15185
|
+
timestamp: external_exports.string(),
|
|
15186
|
+
actorProfileId: external_exports.string(),
|
|
15187
|
+
recipientType: CredentialActivityRecipientTypeValidator,
|
|
15188
|
+
recipientIdentifier: external_exports.string(),
|
|
15189
|
+
boostUri: external_exports.string().optional(),
|
|
15190
|
+
credentialUri: external_exports.string().optional(),
|
|
15191
|
+
inboxCredentialId: external_exports.string().optional(),
|
|
15192
|
+
integrationId: external_exports.string().optional(),
|
|
15193
|
+
source: CredentialActivitySourceTypeValidator,
|
|
15194
|
+
metadata: external_exports.record(external_exports.string(), external_exports.unknown()).optional()
|
|
15195
|
+
});
|
|
15196
|
+
var CredentialActivityWithDetailsValidator = CredentialActivityValidator.extend({
|
|
15197
|
+
boost: external_exports.object({
|
|
15198
|
+
id: external_exports.string(),
|
|
15199
|
+
name: external_exports.string().optional(),
|
|
15200
|
+
category: external_exports.string().optional()
|
|
15201
|
+
}).optional(),
|
|
15202
|
+
recipientProfile: external_exports.object({
|
|
15203
|
+
profileId: external_exports.string(),
|
|
15204
|
+
displayName: external_exports.string().optional()
|
|
15205
|
+
}).optional()
|
|
15206
|
+
});
|
|
15207
|
+
var PaginatedCredentialActivitiesValidator = PaginationResponseValidator.extend({
|
|
15208
|
+
records: CredentialActivityWithDetailsValidator.array()
|
|
15209
|
+
});
|
|
15210
|
+
var CredentialActivityStatsValidator = external_exports.object({
|
|
15211
|
+
total: external_exports.number(),
|
|
15212
|
+
created: external_exports.number(),
|
|
15213
|
+
delivered: external_exports.number(),
|
|
15214
|
+
claimed: external_exports.number(),
|
|
15215
|
+
expired: external_exports.number(),
|
|
15216
|
+
failed: external_exports.number(),
|
|
15217
|
+
claimRate: external_exports.number()
|
|
15218
|
+
});
|
|
15060
15219
|
}
|
|
15061
15220
|
});
|
|
15062
15221
|
|
|
@@ -15100,6 +15259,7 @@ __export(index_exports, {
|
|
|
15100
15259
|
innerImmerOuterReact: () => innerImmerOuterReact,
|
|
15101
15260
|
innerReactOuterImmer: () => innerReactOuterImmer,
|
|
15102
15261
|
innerReactOuterReact: () => innerReactOuterReact,
|
|
15262
|
+
isAppDidWeb: () => isAppDidWeb,
|
|
15103
15263
|
isEncrypted: () => isEncrypted,
|
|
15104
15264
|
isHex: () => isHex,
|
|
15105
15265
|
isNotMaybe: () => isNotMaybe,
|
|
@@ -15967,3 +16127,8 @@ var unwrapBoostCredential = /* @__PURE__ */ __name((vc) => {
|
|
|
15967
16127
|
return vc;
|
|
15968
16128
|
}
|
|
15969
16129
|
}, "unwrapBoostCredential");
|
|
16130
|
+
var isAppDidWeb = /* @__PURE__ */ __name((did) => {
|
|
16131
|
+
if (!did) return false;
|
|
16132
|
+
const LCN_APP_DID_WEB_REGEX = /^did:web:.*:app:([^:]+)$/;
|
|
16133
|
+
return LCN_APP_DID_WEB_REGEX.test(did);
|
|
16134
|
+
}, "isAppDidWeb");
|