@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
package/dist/helpers.d.ts
CHANGED
|
@@ -652,5 +652,14 @@ export declare const RegExpTransformer: DataTransformer;
|
|
|
652
652
|
export declare const isVC2Format: (credential: UnsignedVC | VC) => boolean;
|
|
653
653
|
/** Unwraps a boost credential from a CertifiedBoostCredential, if it is one */
|
|
654
654
|
export declare const unwrapBoostCredential: (vc?: VC | UnsignedVC) => any;
|
|
655
|
+
/**
|
|
656
|
+
* Checks if a DID is an app-specific did:web
|
|
657
|
+
*
|
|
658
|
+
* App did:webs follow the pattern: did:web:learncard.app:app:<slug>
|
|
659
|
+
*
|
|
660
|
+
* @param did - The DID to check
|
|
661
|
+
* @returns true if the DID is an app did:web, false otherwise
|
|
662
|
+
*/
|
|
663
|
+
export declare const isAppDidWeb: (did?: string) => boolean;
|
|
655
664
|
|
|
656
665
|
export {};
|
package/dist/helpers.esm.js
CHANGED
|
@@ -63,6 +63,10 @@ var require_types_cjs_development = __commonJS({
|
|
|
63
63
|
AddressValidator: /* @__PURE__ */ __name(() => AddressValidator, "AddressValidator"),
|
|
64
64
|
AlignmentTargetTypeValidator: /* @__PURE__ */ __name(() => AlignmentTargetTypeValidator, "AlignmentTargetTypeValidator"),
|
|
65
65
|
AlignmentValidator: /* @__PURE__ */ __name(() => AlignmentValidator, "AlignmentValidator"),
|
|
66
|
+
AppBoostValidator: /* @__PURE__ */ __name(() => AppBoostValidator, "AppBoostValidator"),
|
|
67
|
+
AppEventInputValidator: /* @__PURE__ */ __name(() => AppEventInputValidator, "AppEventInputValidator"),
|
|
68
|
+
AppEventResponseValidator: /* @__PURE__ */ __name(() => AppEventResponseValidator, "AppEventResponseValidator"),
|
|
69
|
+
AppEventValidator: /* @__PURE__ */ __name(() => AppEventValidator, "AppEventValidator"),
|
|
66
70
|
AppListingStatusValidator: /* @__PURE__ */ __name(() => AppListingStatusValidator, "AppListingStatusValidator"),
|
|
67
71
|
AppStoreListingCreateValidator: /* @__PURE__ */ __name(() => AppStoreListingCreateValidator, "AppStoreListingCreateValidator"),
|
|
68
72
|
AppStoreListingUpdateValidator: /* @__PURE__ */ __name(() => AppStoreListingUpdateValidator, "AppStoreListingUpdateValidator"),
|
|
@@ -111,6 +115,12 @@ var require_types_cjs_development = __commonJS({
|
|
|
111
115
|
CreateManagedFrameworkInputValidator: /* @__PURE__ */ __name(() => CreateManagedFrameworkInputValidator, "CreateManagedFrameworkInputValidator"),
|
|
112
116
|
CreateSkillInputValidator: /* @__PURE__ */ __name(() => CreateSkillInputValidator, "CreateSkillInputValidator"),
|
|
113
117
|
CreateSkillsBatchInputValidator: /* @__PURE__ */ __name(() => CreateSkillsBatchInputValidator, "CreateSkillsBatchInputValidator"),
|
|
118
|
+
CredentialActivityEventTypeValidator: /* @__PURE__ */ __name(() => CredentialActivityEventTypeValidator, "CredentialActivityEventTypeValidator"),
|
|
119
|
+
CredentialActivityRecipientTypeValidator: /* @__PURE__ */ __name(() => CredentialActivityRecipientTypeValidator, "CredentialActivityRecipientTypeValidator"),
|
|
120
|
+
CredentialActivitySourceTypeValidator: /* @__PURE__ */ __name(() => CredentialActivitySourceTypeValidator, "CredentialActivitySourceTypeValidator"),
|
|
121
|
+
CredentialActivityStatsValidator: /* @__PURE__ */ __name(() => CredentialActivityStatsValidator, "CredentialActivityStatsValidator"),
|
|
122
|
+
CredentialActivityValidator: /* @__PURE__ */ __name(() => CredentialActivityValidator, "CredentialActivityValidator"),
|
|
123
|
+
CredentialActivityWithDetailsValidator: /* @__PURE__ */ __name(() => CredentialActivityWithDetailsValidator, "CredentialActivityWithDetailsValidator"),
|
|
114
124
|
CredentialInfoValidator: /* @__PURE__ */ __name(() => CredentialInfoValidator, "CredentialInfoValidator"),
|
|
115
125
|
CredentialRecordValidator: /* @__PURE__ */ __name(() => CredentialRecordValidator, "CredentialRecordValidator"),
|
|
116
126
|
CredentialSchemaValidator: /* @__PURE__ */ __name(() => CredentialSchemaValidator, "CredentialSchemaValidator"),
|
|
@@ -157,6 +167,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
157
167
|
LCNInboxStatusEnumValidator: /* @__PURE__ */ __name(() => LCNInboxStatusEnumValidator, "LCNInboxStatusEnumValidator"),
|
|
158
168
|
LCNIntegrationCreateValidator: /* @__PURE__ */ __name(() => LCNIntegrationCreateValidator, "LCNIntegrationCreateValidator"),
|
|
159
169
|
LCNIntegrationQueryValidator: /* @__PURE__ */ __name(() => LCNIntegrationQueryValidator, "LCNIntegrationQueryValidator"),
|
|
170
|
+
LCNIntegrationStatusEnum: /* @__PURE__ */ __name(() => LCNIntegrationStatusEnum, "LCNIntegrationStatusEnum"),
|
|
160
171
|
LCNIntegrationUpdateValidator: /* @__PURE__ */ __name(() => LCNIntegrationUpdateValidator, "LCNIntegrationUpdateValidator"),
|
|
161
172
|
LCNIntegrationValidator: /* @__PURE__ */ __name(() => LCNIntegrationValidator, "LCNIntegrationValidator"),
|
|
162
173
|
LCNNotificationDataValidator: /* @__PURE__ */ __name(() => LCNNotificationDataValidator, "LCNNotificationDataValidator"),
|
|
@@ -185,6 +196,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
185
196
|
PaginatedConsentFlowTermsValidator: /* @__PURE__ */ __name(() => PaginatedConsentFlowTermsValidator, "PaginatedConsentFlowTermsValidator"),
|
|
186
197
|
PaginatedConsentFlowTransactionsValidator: /* @__PURE__ */ __name(() => PaginatedConsentFlowTransactionsValidator, "PaginatedConsentFlowTransactionsValidator"),
|
|
187
198
|
PaginatedContractCredentialsValidator: /* @__PURE__ */ __name(() => PaginatedContractCredentialsValidator, "PaginatedContractCredentialsValidator"),
|
|
199
|
+
PaginatedCredentialActivitiesValidator: /* @__PURE__ */ __name(() => PaginatedCredentialActivitiesValidator, "PaginatedCredentialActivitiesValidator"),
|
|
188
200
|
PaginatedEncryptedCredentialRecordsValidator: /* @__PURE__ */ __name(() => PaginatedEncryptedCredentialRecordsValidator, "PaginatedEncryptedCredentialRecordsValidator"),
|
|
189
201
|
PaginatedEncryptedRecordsValidator: /* @__PURE__ */ __name(() => PaginatedEncryptedRecordsValidator, "PaginatedEncryptedRecordsValidator"),
|
|
190
202
|
PaginatedInboxCredentialsValidator: /* @__PURE__ */ __name(() => PaginatedInboxCredentialsValidator, "PaginatedInboxCredentialsValidator"),
|
|
@@ -212,7 +224,11 @@ var require_types_cjs_development = __commonJS({
|
|
|
212
224
|
RubricCriterionValidator: /* @__PURE__ */ __name(() => RubricCriterionValidator, "RubricCriterionValidator"),
|
|
213
225
|
SendBoostInputValidator: /* @__PURE__ */ __name(() => SendBoostInputValidator, "SendBoostInputValidator"),
|
|
214
226
|
SendBoostResponseValidator: /* @__PURE__ */ __name(() => SendBoostResponseValidator, "SendBoostResponseValidator"),
|
|
227
|
+
SendBrandingOptionsValidator: /* @__PURE__ */ __name(() => SendBrandingOptionsValidator, "SendBrandingOptionsValidator"),
|
|
228
|
+
SendCredentialEventValidator: /* @__PURE__ */ __name(() => SendCredentialEventValidator, "SendCredentialEventValidator"),
|
|
229
|
+
SendInboxResponseValidator: /* @__PURE__ */ __name(() => SendInboxResponseValidator, "SendInboxResponseValidator"),
|
|
215
230
|
SendInputValidator: /* @__PURE__ */ __name(() => SendInputValidator, "SendInputValidator"),
|
|
231
|
+
SendOptionsValidator: /* @__PURE__ */ __name(() => SendOptionsValidator, "SendOptionsValidator"),
|
|
216
232
|
SendResponseValidator: /* @__PURE__ */ __name(() => SendResponseValidator, "SendResponseValidator"),
|
|
217
233
|
SentCredentialInfoValidator: /* @__PURE__ */ __name(() => SentCredentialInfoValidator, "SentCredentialInfoValidator"),
|
|
218
234
|
ServiceValidator: /* @__PURE__ */ __name(() => ServiceValidator, "ServiceValidator"),
|
|
@@ -225,6 +241,9 @@ var require_types_cjs_development = __commonJS({
|
|
|
225
241
|
SkillFrameworkStatusEnum: /* @__PURE__ */ __name(() => SkillFrameworkStatusEnum, "SkillFrameworkStatusEnum"),
|
|
226
242
|
SkillFrameworkValidator: /* @__PURE__ */ __name(() => SkillFrameworkValidator, "SkillFrameworkValidator"),
|
|
227
243
|
SkillQueryValidator: /* @__PURE__ */ __name(() => SkillQueryValidator, "SkillQueryValidator"),
|
|
244
|
+
SkillSemanticSearchInputValidator: /* @__PURE__ */ __name(() => SkillSemanticSearchInputValidator, "SkillSemanticSearchInputValidator"),
|
|
245
|
+
SkillSemanticSearchResultItemValidator: /* @__PURE__ */ __name(() => SkillSemanticSearchResultItemValidator, "SkillSemanticSearchResultItemValidator"),
|
|
246
|
+
SkillSemanticSearchResultValidator: /* @__PURE__ */ __name(() => SkillSemanticSearchResultValidator, "SkillSemanticSearchResultValidator"),
|
|
228
247
|
SkillStatusEnum: /* @__PURE__ */ __name(() => SkillStatusEnum, "SkillStatusEnum"),
|
|
229
248
|
SkillTreeNodeInputValidator: /* @__PURE__ */ __name(() => SkillTreeNodeInputValidator, "SkillTreeNodeInputValidator"),
|
|
230
249
|
SkillTreeNodeValidator: /* @__PURE__ */ __name(() => SkillTreeNodeValidator, "SkillTreeNodeValidator"),
|
|
@@ -14224,7 +14243,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14224
14243
|
var PaginatedClaimHooksValidator = PaginationResponseValidator.extend({
|
|
14225
14244
|
records: FullClaimHookValidator.array()
|
|
14226
14245
|
});
|
|
14227
|
-
var LCNBoostStatus = external_exports.enum(["DRAFT", "LIVE"]);
|
|
14246
|
+
var LCNBoostStatus = external_exports.enum(["DRAFT", "PROVISIONAL", "LIVE"]);
|
|
14228
14247
|
var BoostValidator = external_exports.object({
|
|
14229
14248
|
uri: external_exports.string(),
|
|
14230
14249
|
name: external_exports.string().optional(),
|
|
@@ -14308,22 +14327,46 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14308
14327
|
claimPermissions: BoostPermissionsValidator.partial().optional(),
|
|
14309
14328
|
skills: external_exports.array(external_exports.object({ frameworkId: external_exports.string(), id: external_exports.string() })).min(1).optional()
|
|
14310
14329
|
});
|
|
14330
|
+
var SendBrandingOptionsValidator = external_exports.object({
|
|
14331
|
+
issuerName: external_exports.string().optional().describe("Name of the issuing organization"),
|
|
14332
|
+
issuerLogoUrl: external_exports.string().url().optional().describe("Logo URL of the issuing organization"),
|
|
14333
|
+
credentialName: external_exports.string().optional().describe("Display name for the credential"),
|
|
14334
|
+
recipientName: external_exports.string().optional().describe("Name of the recipient for personalization")
|
|
14335
|
+
});
|
|
14336
|
+
var SendOptionsValidator = external_exports.object({
|
|
14337
|
+
webhookUrl: external_exports.string().url().optional().describe("Webhook URL to receive claim notifications"),
|
|
14338
|
+
suppressDelivery: external_exports.boolean().optional().describe("If true, returns claimUrl without sending email/SMS"),
|
|
14339
|
+
branding: SendBrandingOptionsValidator.optional().describe("Branding for email/SMS delivery")
|
|
14340
|
+
});
|
|
14311
14341
|
var SendBoostInputValidator = external_exports.object({
|
|
14312
14342
|
type: external_exports.literal("boost"),
|
|
14313
|
-
recipient: external_exports.string(),
|
|
14343
|
+
recipient: external_exports.string().describe("Profile ID, DID, email, or phone number (auto-detected)"),
|
|
14314
14344
|
contractUri: external_exports.string().optional(),
|
|
14315
14345
|
templateUri: external_exports.string().optional(),
|
|
14316
14346
|
template: SendBoostTemplateValidator.optional(),
|
|
14317
14347
|
signedCredential: VCValidator.optional(),
|
|
14318
|
-
|
|
14348
|
+
options: SendOptionsValidator.optional().describe(
|
|
14349
|
+
"Options for email/phone recipients (Universal Inbox)"
|
|
14350
|
+
),
|
|
14351
|
+
templateData: external_exports.record(external_exports.string(), external_exports.unknown()).optional(),
|
|
14352
|
+
integrationId: external_exports.string().optional().describe("Integration ID for activity tracking")
|
|
14319
14353
|
}).refine((data) => data.templateUri || data.template, {
|
|
14320
14354
|
message: "Either templateUri or template creation data must be provided.",
|
|
14321
14355
|
path: ["templateUri"]
|
|
14322
14356
|
});
|
|
14357
|
+
var SendInboxResponseValidator = external_exports.object({
|
|
14358
|
+
issuanceId: external_exports.string(),
|
|
14359
|
+
status: external_exports.enum(["PENDING", "ISSUED", "EXPIRED", "DELIVERED", "CLAIMED"]),
|
|
14360
|
+
claimUrl: external_exports.string().url().optional().describe("Present when suppressDelivery=true")
|
|
14361
|
+
});
|
|
14323
14362
|
var SendBoostResponseValidator = external_exports.object({
|
|
14324
14363
|
type: external_exports.literal("boost"),
|
|
14325
14364
|
credentialUri: external_exports.string(),
|
|
14326
|
-
uri: external_exports.string()
|
|
14365
|
+
uri: external_exports.string(),
|
|
14366
|
+
activityId: external_exports.string().describe("Links to the activity lifecycle for this issuance"),
|
|
14367
|
+
inbox: SendInboxResponseValidator.optional().describe(
|
|
14368
|
+
"Present when sent via email/phone (Universal Inbox)"
|
|
14369
|
+
)
|
|
14327
14370
|
});
|
|
14328
14371
|
var SendInputValidator = external_exports.discriminatedUnion("type", [SendBoostInputValidator]);
|
|
14329
14372
|
var SendResponseValidator = external_exports.discriminatedUnion("type", [SendBoostResponseValidator]);
|
|
@@ -14524,6 +14567,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14524
14567
|
});
|
|
14525
14568
|
var LCNNotificationTypeEnumValidator = external_exports.enum([
|
|
14526
14569
|
"CONNECTION_REQUEST",
|
|
14570
|
+
"CONNECTION_REQUEST_EXPIRED_INVITE",
|
|
14527
14571
|
"CONNECTION_ACCEPTED",
|
|
14528
14572
|
"CREDENTIAL_RECEIVED",
|
|
14529
14573
|
"CREDENTIAL_ACCEPTED",
|
|
@@ -14675,6 +14719,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14675
14719
|
createdAt: external_exports.string(),
|
|
14676
14720
|
issuerDid: external_exports.string(),
|
|
14677
14721
|
webhookUrl: external_exports.string().optional(),
|
|
14722
|
+
boostUri: external_exports.string().optional(),
|
|
14723
|
+
activityId: external_exports.string().optional(),
|
|
14678
14724
|
signingAuthority: external_exports.object({
|
|
14679
14725
|
endpoint: external_exports.string().optional(),
|
|
14680
14726
|
name: external_exports.string().optional()
|
|
@@ -14690,7 +14736,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14690
14736
|
id: external_exports.string(),
|
|
14691
14737
|
isSigned: external_exports.boolean(),
|
|
14692
14738
|
isAccepted: external_exports.boolean().optional(),
|
|
14693
|
-
issuerDid: external_exports.string()
|
|
14739
|
+
issuerDid: external_exports.string(),
|
|
14740
|
+
boostUri: external_exports.string()
|
|
14694
14741
|
}).partial();
|
|
14695
14742
|
var IssueInboxSigningAuthorityValidator = external_exports.object({
|
|
14696
14743
|
endpoint: external_exports.string().url(),
|
|
@@ -14700,9 +14747,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14700
14747
|
// === CORE DATA (Required) ===
|
|
14701
14748
|
// WHAT is being sent and WHO is it for?
|
|
14702
14749
|
recipient: ContactMethodQueryValidator.describe("The recipient of the credential"),
|
|
14703
|
-
credential
|
|
14750
|
+
// Either credential OR templateUri must be provided
|
|
14751
|
+
credential: VCValidator.or(VPValidator).or(UnsignedVCValidator).optional().describe(
|
|
14704
14752
|
"The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
|
|
14705
14753
|
),
|
|
14754
|
+
templateUri: external_exports.string().optional().describe(
|
|
14755
|
+
"URI of a boost template to use for issuance. The boost credential will be resolved and used. Mutually exclusive with credential field."
|
|
14756
|
+
),
|
|
14706
14757
|
// === OPTIONAL FEATURES ===
|
|
14707
14758
|
// Add major, distinct features at the top level.
|
|
14708
14759
|
//consentRequest: ConsentRequestValidator.optional(),
|
|
@@ -14714,6 +14765,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14714
14765
|
),
|
|
14715
14766
|
webhookUrl: external_exports.string().url().optional().describe("The webhook URL to receive credential issuance events."),
|
|
14716
14767
|
expiresInDays: external_exports.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
|
|
14768
|
+
templateData: external_exports.record(external_exports.string(), external_exports.unknown()).optional().describe(
|
|
14769
|
+
"Template data to render into the boost credential template using Mustache syntax. Only used when boostUri is provided."
|
|
14770
|
+
),
|
|
14717
14771
|
// --- For User-Facing Delivery (Email/SMS) ---
|
|
14718
14772
|
delivery: external_exports.object({
|
|
14719
14773
|
suppress: external_exports.boolean().optional().default(false).describe(
|
|
@@ -14728,7 +14782,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14728
14782
|
name: external_exports.string().optional().describe(
|
|
14729
14783
|
'The name of the organization (e.g., "State University").'
|
|
14730
14784
|
),
|
|
14731
|
-
logoUrl: external_exports.string().url().optional().describe(
|
|
14785
|
+
logoUrl: external_exports.string().url().optional().describe(
|
|
14786
|
+
"The URL of the organization's logo."
|
|
14787
|
+
)
|
|
14732
14788
|
}).optional(),
|
|
14733
14789
|
credential: external_exports.object({
|
|
14734
14790
|
name: external_exports.string().optional().describe(
|
|
@@ -14755,6 +14811,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14755
14811
|
}).optional().describe(
|
|
14756
14812
|
"Configuration for the credential issuance. If not provided, the default configuration will be used."
|
|
14757
14813
|
)
|
|
14814
|
+
}).refine((data) => data.credential || data.templateUri, {
|
|
14815
|
+
message: "Either credential or templateUri must be provided.",
|
|
14816
|
+
path: ["credential"]
|
|
14758
14817
|
});
|
|
14759
14818
|
var IssueInboxCredentialResponseValidator = external_exports.object({
|
|
14760
14819
|
issuanceId: external_exports.string(),
|
|
@@ -14767,7 +14826,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14767
14826
|
credential: VCValidator.or(VPValidator).or(UnsignedVCValidator).describe("The credential to issue."),
|
|
14768
14827
|
configuration: external_exports.object({
|
|
14769
14828
|
publishableKey: external_exports.string(),
|
|
14770
|
-
signingAuthorityName: external_exports.string().optional()
|
|
14829
|
+
signingAuthorityName: external_exports.string().optional(),
|
|
14830
|
+
listingId: external_exports.string().optional(),
|
|
14831
|
+
listingSlug: external_exports.string().optional()
|
|
14771
14832
|
}).optional()
|
|
14772
14833
|
});
|
|
14773
14834
|
var LCNDomainOrOriginValidator = external_exports.union([
|
|
@@ -14782,28 +14843,43 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14782
14843
|
{ message: "Must be a valid http(s) origin" }
|
|
14783
14844
|
)
|
|
14784
14845
|
]);
|
|
14846
|
+
var LCNIntegrationStatusEnum = external_exports.enum(["setup", "active", "paused"]);
|
|
14785
14847
|
var LCNIntegrationValidator = external_exports.object({
|
|
14786
14848
|
id: external_exports.string(),
|
|
14787
14849
|
name: external_exports.string(),
|
|
14788
14850
|
description: external_exports.string().optional(),
|
|
14789
14851
|
publishableKey: external_exports.string(),
|
|
14790
|
-
whitelistedDomains: external_exports.array(LCNDomainOrOriginValidator).default([])
|
|
14852
|
+
whitelistedDomains: external_exports.array(LCNDomainOrOriginValidator).default([]),
|
|
14853
|
+
// Setup/onboarding status
|
|
14854
|
+
status: LCNIntegrationStatusEnum.default("setup"),
|
|
14855
|
+
guideType: external_exports.string().optional(),
|
|
14856
|
+
guideState: external_exports.record(external_exports.string(), external_exports.any()).optional(),
|
|
14857
|
+
// Timestamps
|
|
14858
|
+
createdAt: external_exports.string().optional(),
|
|
14859
|
+
updatedAt: external_exports.string().optional()
|
|
14791
14860
|
});
|
|
14792
14861
|
var LCNIntegrationCreateValidator = external_exports.object({
|
|
14793
14862
|
name: external_exports.string(),
|
|
14794
14863
|
description: external_exports.string().optional(),
|
|
14795
|
-
whitelistedDomains: external_exports.array(LCNDomainOrOriginValidator).default([])
|
|
14864
|
+
whitelistedDomains: external_exports.array(LCNDomainOrOriginValidator).default([]),
|
|
14865
|
+
guideType: external_exports.string().optional()
|
|
14796
14866
|
});
|
|
14797
14867
|
var LCNIntegrationUpdateValidator = external_exports.object({
|
|
14798
14868
|
name: external_exports.string().optional(),
|
|
14799
14869
|
description: external_exports.string().optional(),
|
|
14800
14870
|
whitelistedDomains: external_exports.array(LCNDomainOrOriginValidator).optional(),
|
|
14801
|
-
rotatePublishableKey: external_exports.boolean().optional()
|
|
14871
|
+
rotatePublishableKey: external_exports.boolean().optional(),
|
|
14872
|
+
// Setup/onboarding updates
|
|
14873
|
+
status: LCNIntegrationStatusEnum.optional(),
|
|
14874
|
+
guideType: external_exports.string().optional(),
|
|
14875
|
+
guideState: external_exports.record(external_exports.string(), external_exports.any()).optional()
|
|
14802
14876
|
});
|
|
14803
14877
|
var LCNIntegrationQueryValidator = external_exports.object({
|
|
14804
14878
|
id: StringQuery,
|
|
14805
14879
|
name: StringQuery,
|
|
14806
|
-
description: StringQuery
|
|
14880
|
+
description: StringQuery,
|
|
14881
|
+
status: StringQuery,
|
|
14882
|
+
guideType: StringQuery
|
|
14807
14883
|
}).partial();
|
|
14808
14884
|
var PaginatedLCNIntegrationsValidator = PaginationResponseValidator.extend({
|
|
14809
14885
|
records: LCNIntegrationValidator.array()
|
|
@@ -14850,6 +14926,17 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14850
14926
|
}),
|
|
14851
14927
|
BaseSkillQueryValidator
|
|
14852
14928
|
]);
|
|
14929
|
+
var SkillSemanticSearchInputValidator = external_exports.object({
|
|
14930
|
+
text: external_exports.string().min(1),
|
|
14931
|
+
frameworkId: external_exports.string().optional(),
|
|
14932
|
+
limit: external_exports.number().int().min(1).max(200).default(50)
|
|
14933
|
+
});
|
|
14934
|
+
var SkillSemanticSearchResultItemValidator = SkillValidator.extend({
|
|
14935
|
+
score: external_exports.number()
|
|
14936
|
+
});
|
|
14937
|
+
var SkillSemanticSearchResultValidator = external_exports.object({
|
|
14938
|
+
records: SkillSemanticSearchResultItemValidator.array()
|
|
14939
|
+
});
|
|
14853
14940
|
var SkillFrameworkStatusEnum = external_exports.enum(["active", "archived"]);
|
|
14854
14941
|
var SkillFrameworkValidator = external_exports.object({
|
|
14855
14942
|
id: external_exports.string(),
|
|
@@ -15018,6 +15105,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15018
15105
|
]);
|
|
15019
15106
|
var AppStoreListingValidator = external_exports.object({
|
|
15020
15107
|
listing_id: external_exports.string(),
|
|
15108
|
+
slug: external_exports.string().optional(),
|
|
15021
15109
|
display_name: external_exports.string(),
|
|
15022
15110
|
tagline: external_exports.string(),
|
|
15023
15111
|
full_description: external_exports.string(),
|
|
@@ -15055,6 +15143,77 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15055
15143
|
var PaginatedInstalledAppsValidator = PaginationResponseValidator.extend({
|
|
15056
15144
|
records: InstalledAppValidator.array()
|
|
15057
15145
|
});
|
|
15146
|
+
var AppBoostValidator = external_exports.object({
|
|
15147
|
+
templateAlias: external_exports.string().min(1).max(50).regex(/^[a-z0-9-]+$/),
|
|
15148
|
+
boostUri: external_exports.string()
|
|
15149
|
+
});
|
|
15150
|
+
var SendCredentialEventValidator = external_exports.object({
|
|
15151
|
+
type: external_exports.literal("send-credential"),
|
|
15152
|
+
templateAlias: external_exports.string(),
|
|
15153
|
+
templateData: external_exports.record(external_exports.string(), external_exports.unknown()).optional()
|
|
15154
|
+
});
|
|
15155
|
+
var AppEventValidator = external_exports.discriminatedUnion("type", [SendCredentialEventValidator]);
|
|
15156
|
+
var AppEventInputValidator = external_exports.object({
|
|
15157
|
+
listingId: external_exports.string(),
|
|
15158
|
+
event: AppEventValidator
|
|
15159
|
+
});
|
|
15160
|
+
var AppEventResponseValidator = external_exports.record(external_exports.string(), external_exports.unknown());
|
|
15161
|
+
var CredentialActivityEventTypeValidator = external_exports.enum([
|
|
15162
|
+
"CREATED",
|
|
15163
|
+
"DELIVERED",
|
|
15164
|
+
"CLAIMED",
|
|
15165
|
+
"EXPIRED",
|
|
15166
|
+
"FAILED"
|
|
15167
|
+
]);
|
|
15168
|
+
var CredentialActivityRecipientTypeValidator = external_exports.enum(["profile", "email", "phone"]);
|
|
15169
|
+
var CredentialActivitySourceTypeValidator = external_exports.enum([
|
|
15170
|
+
"send",
|
|
15171
|
+
"sendBoost",
|
|
15172
|
+
"sendCredential",
|
|
15173
|
+
"contract",
|
|
15174
|
+
"claim",
|
|
15175
|
+
"inbox",
|
|
15176
|
+
"claimLink",
|
|
15177
|
+
"acceptCredential"
|
|
15178
|
+
]);
|
|
15179
|
+
var CredentialActivityValidator = external_exports.object({
|
|
15180
|
+
id: external_exports.string(),
|
|
15181
|
+
activityId: external_exports.string(),
|
|
15182
|
+
eventType: CredentialActivityEventTypeValidator,
|
|
15183
|
+
timestamp: external_exports.string(),
|
|
15184
|
+
actorProfileId: external_exports.string(),
|
|
15185
|
+
recipientType: CredentialActivityRecipientTypeValidator,
|
|
15186
|
+
recipientIdentifier: external_exports.string(),
|
|
15187
|
+
boostUri: external_exports.string().optional(),
|
|
15188
|
+
credentialUri: external_exports.string().optional(),
|
|
15189
|
+
inboxCredentialId: external_exports.string().optional(),
|
|
15190
|
+
integrationId: external_exports.string().optional(),
|
|
15191
|
+
source: CredentialActivitySourceTypeValidator,
|
|
15192
|
+
metadata: external_exports.record(external_exports.string(), external_exports.unknown()).optional()
|
|
15193
|
+
});
|
|
15194
|
+
var CredentialActivityWithDetailsValidator = CredentialActivityValidator.extend({
|
|
15195
|
+
boost: external_exports.object({
|
|
15196
|
+
id: external_exports.string(),
|
|
15197
|
+
name: external_exports.string().optional(),
|
|
15198
|
+
category: external_exports.string().optional()
|
|
15199
|
+
}).optional(),
|
|
15200
|
+
recipientProfile: external_exports.object({
|
|
15201
|
+
profileId: external_exports.string(),
|
|
15202
|
+
displayName: external_exports.string().optional()
|
|
15203
|
+
}).optional()
|
|
15204
|
+
});
|
|
15205
|
+
var PaginatedCredentialActivitiesValidator = PaginationResponseValidator.extend({
|
|
15206
|
+
records: CredentialActivityWithDetailsValidator.array()
|
|
15207
|
+
});
|
|
15208
|
+
var CredentialActivityStatsValidator = external_exports.object({
|
|
15209
|
+
total: external_exports.number(),
|
|
15210
|
+
created: external_exports.number(),
|
|
15211
|
+
delivered: external_exports.number(),
|
|
15212
|
+
claimed: external_exports.number(),
|
|
15213
|
+
expired: external_exports.number(),
|
|
15214
|
+
failed: external_exports.number(),
|
|
15215
|
+
claimRate: external_exports.number()
|
|
15216
|
+
});
|
|
15058
15217
|
}
|
|
15059
15218
|
});
|
|
15060
15219
|
|
|
@@ -15928,6 +16087,11 @@ var unwrapBoostCredential = /* @__PURE__ */ __name((vc) => {
|
|
|
15928
16087
|
return vc;
|
|
15929
16088
|
}
|
|
15930
16089
|
}, "unwrapBoostCredential");
|
|
16090
|
+
var isAppDidWeb = /* @__PURE__ */ __name((did) => {
|
|
16091
|
+
if (!did) return false;
|
|
16092
|
+
const LCN_APP_DID_WEB_REGEX = /^did:web:.*:app:([^:]+)$/;
|
|
16093
|
+
return LCN_APP_DID_WEB_REGEX.test(did);
|
|
16094
|
+
}, "isAppDidWeb");
|
|
15931
16095
|
export {
|
|
15932
16096
|
DEFAULT_RESOLUTIONS,
|
|
15933
16097
|
ImageResizingValidator,
|
|
@@ -15954,6 +16118,7 @@ export {
|
|
|
15954
16118
|
innerImmerOuterReact,
|
|
15955
16119
|
innerReactOuterImmer,
|
|
15956
16120
|
innerReactOuterReact,
|
|
16121
|
+
isAppDidWeb,
|
|
15957
16122
|
isEncrypted,
|
|
15958
16123
|
isHex,
|
|
15959
16124
|
isNotMaybe,
|