@learncard/network-brain-client 2.5.3 → 2.5.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/CHANGELOG.md +21 -0
- package/dist/brain-client.cjs.development.js +154 -11
- package/dist/brain-client.cjs.development.js.map +2 -2
- package/dist/brain-client.cjs.production.min.js +6 -6
- package/dist/brain-client.cjs.production.min.js.map +3 -3
- package/dist/brain-client.esm.js +154 -11
- package/dist/brain-client.esm.js.map +2 -2
- package/package.json +4 -4
package/dist/brain-client.esm.js
CHANGED
|
@@ -14065,6 +14065,10 @@ var require_types_cjs_development = __commonJS2({
|
|
|
14065
14065
|
AddressValidator: /* @__PURE__ */ __name2(() => AddressValidator, "AddressValidator"),
|
|
14066
14066
|
AlignmentTargetTypeValidator: /* @__PURE__ */ __name2(() => AlignmentTargetTypeValidator, "AlignmentTargetTypeValidator"),
|
|
14067
14067
|
AlignmentValidator: /* @__PURE__ */ __name2(() => AlignmentValidator, "AlignmentValidator"),
|
|
14068
|
+
AppBoostValidator: /* @__PURE__ */ __name2(() => AppBoostValidator, "AppBoostValidator"),
|
|
14069
|
+
AppEventInputValidator: /* @__PURE__ */ __name2(() => AppEventInputValidator, "AppEventInputValidator"),
|
|
14070
|
+
AppEventResponseValidator: /* @__PURE__ */ __name2(() => AppEventResponseValidator, "AppEventResponseValidator"),
|
|
14071
|
+
AppEventValidator: /* @__PURE__ */ __name2(() => AppEventValidator, "AppEventValidator"),
|
|
14068
14072
|
AppListingStatusValidator: /* @__PURE__ */ __name2(() => AppListingStatusValidator, "AppListingStatusValidator"),
|
|
14069
14073
|
AppStoreListingCreateValidator: /* @__PURE__ */ __name2(() => AppStoreListingCreateValidator, "AppStoreListingCreateValidator"),
|
|
14070
14074
|
AppStoreListingUpdateValidator: /* @__PURE__ */ __name2(() => AppStoreListingUpdateValidator, "AppStoreListingUpdateValidator"),
|
|
@@ -14113,6 +14117,12 @@ var require_types_cjs_development = __commonJS2({
|
|
|
14113
14117
|
CreateManagedFrameworkInputValidator: /* @__PURE__ */ __name2(() => CreateManagedFrameworkInputValidator, "CreateManagedFrameworkInputValidator"),
|
|
14114
14118
|
CreateSkillInputValidator: /* @__PURE__ */ __name2(() => CreateSkillInputValidator, "CreateSkillInputValidator"),
|
|
14115
14119
|
CreateSkillsBatchInputValidator: /* @__PURE__ */ __name2(() => CreateSkillsBatchInputValidator, "CreateSkillsBatchInputValidator"),
|
|
14120
|
+
CredentialActivityEventTypeValidator: /* @__PURE__ */ __name2(() => CredentialActivityEventTypeValidator, "CredentialActivityEventTypeValidator"),
|
|
14121
|
+
CredentialActivityRecipientTypeValidator: /* @__PURE__ */ __name2(() => CredentialActivityRecipientTypeValidator, "CredentialActivityRecipientTypeValidator"),
|
|
14122
|
+
CredentialActivitySourceTypeValidator: /* @__PURE__ */ __name2(() => CredentialActivitySourceTypeValidator, "CredentialActivitySourceTypeValidator"),
|
|
14123
|
+
CredentialActivityStatsValidator: /* @__PURE__ */ __name2(() => CredentialActivityStatsValidator, "CredentialActivityStatsValidator"),
|
|
14124
|
+
CredentialActivityValidator: /* @__PURE__ */ __name2(() => CredentialActivityValidator, "CredentialActivityValidator"),
|
|
14125
|
+
CredentialActivityWithDetailsValidator: /* @__PURE__ */ __name2(() => CredentialActivityWithDetailsValidator, "CredentialActivityWithDetailsValidator"),
|
|
14116
14126
|
CredentialInfoValidator: /* @__PURE__ */ __name2(() => CredentialInfoValidator, "CredentialInfoValidator"),
|
|
14117
14127
|
CredentialRecordValidator: /* @__PURE__ */ __name2(() => CredentialRecordValidator, "CredentialRecordValidator"),
|
|
14118
14128
|
CredentialSchemaValidator: /* @__PURE__ */ __name2(() => CredentialSchemaValidator, "CredentialSchemaValidator"),
|
|
@@ -14159,6 +14169,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
14159
14169
|
LCNInboxStatusEnumValidator: /* @__PURE__ */ __name2(() => LCNInboxStatusEnumValidator, "LCNInboxStatusEnumValidator"),
|
|
14160
14170
|
LCNIntegrationCreateValidator: /* @__PURE__ */ __name2(() => LCNIntegrationCreateValidator, "LCNIntegrationCreateValidator"),
|
|
14161
14171
|
LCNIntegrationQueryValidator: /* @__PURE__ */ __name2(() => LCNIntegrationQueryValidator, "LCNIntegrationQueryValidator"),
|
|
14172
|
+
LCNIntegrationStatusEnum: /* @__PURE__ */ __name2(() => LCNIntegrationStatusEnum, "LCNIntegrationStatusEnum"),
|
|
14162
14173
|
LCNIntegrationUpdateValidator: /* @__PURE__ */ __name2(() => LCNIntegrationUpdateValidator, "LCNIntegrationUpdateValidator"),
|
|
14163
14174
|
LCNIntegrationValidator: /* @__PURE__ */ __name2(() => LCNIntegrationValidator, "LCNIntegrationValidator"),
|
|
14164
14175
|
LCNNotificationDataValidator: /* @__PURE__ */ __name2(() => LCNNotificationDataValidator, "LCNNotificationDataValidator"),
|
|
@@ -14187,6 +14198,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
14187
14198
|
PaginatedConsentFlowTermsValidator: /* @__PURE__ */ __name2(() => PaginatedConsentFlowTermsValidator, "PaginatedConsentFlowTermsValidator"),
|
|
14188
14199
|
PaginatedConsentFlowTransactionsValidator: /* @__PURE__ */ __name2(() => PaginatedConsentFlowTransactionsValidator, "PaginatedConsentFlowTransactionsValidator"),
|
|
14189
14200
|
PaginatedContractCredentialsValidator: /* @__PURE__ */ __name2(() => PaginatedContractCredentialsValidator, "PaginatedContractCredentialsValidator"),
|
|
14201
|
+
PaginatedCredentialActivitiesValidator: /* @__PURE__ */ __name2(() => PaginatedCredentialActivitiesValidator, "PaginatedCredentialActivitiesValidator"),
|
|
14190
14202
|
PaginatedEncryptedCredentialRecordsValidator: /* @__PURE__ */ __name2(() => PaginatedEncryptedCredentialRecordsValidator, "PaginatedEncryptedCredentialRecordsValidator"),
|
|
14191
14203
|
PaginatedEncryptedRecordsValidator: /* @__PURE__ */ __name2(() => PaginatedEncryptedRecordsValidator, "PaginatedEncryptedRecordsValidator"),
|
|
14192
14204
|
PaginatedInboxCredentialsValidator: /* @__PURE__ */ __name2(() => PaginatedInboxCredentialsValidator, "PaginatedInboxCredentialsValidator"),
|
|
@@ -14214,7 +14226,11 @@ var require_types_cjs_development = __commonJS2({
|
|
|
14214
14226
|
RubricCriterionValidator: /* @__PURE__ */ __name2(() => RubricCriterionValidator, "RubricCriterionValidator"),
|
|
14215
14227
|
SendBoostInputValidator: /* @__PURE__ */ __name2(() => SendBoostInputValidator, "SendBoostInputValidator"),
|
|
14216
14228
|
SendBoostResponseValidator: /* @__PURE__ */ __name2(() => SendBoostResponseValidator, "SendBoostResponseValidator"),
|
|
14229
|
+
SendBrandingOptionsValidator: /* @__PURE__ */ __name2(() => SendBrandingOptionsValidator, "SendBrandingOptionsValidator"),
|
|
14230
|
+
SendCredentialEventValidator: /* @__PURE__ */ __name2(() => SendCredentialEventValidator, "SendCredentialEventValidator"),
|
|
14231
|
+
SendInboxResponseValidator: /* @__PURE__ */ __name2(() => SendInboxResponseValidator, "SendInboxResponseValidator"),
|
|
14217
14232
|
SendInputValidator: /* @__PURE__ */ __name2(() => SendInputValidator, "SendInputValidator"),
|
|
14233
|
+
SendOptionsValidator: /* @__PURE__ */ __name2(() => SendOptionsValidator, "SendOptionsValidator"),
|
|
14218
14234
|
SendResponseValidator: /* @__PURE__ */ __name2(() => SendResponseValidator, "SendResponseValidator"),
|
|
14219
14235
|
SentCredentialInfoValidator: /* @__PURE__ */ __name2(() => SentCredentialInfoValidator, "SentCredentialInfoValidator"),
|
|
14220
14236
|
ServiceValidator: /* @__PURE__ */ __name2(() => ServiceValidator, "ServiceValidator"),
|
|
@@ -28648,7 +28664,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
28648
28664
|
var PaginatedClaimHooksValidator = PaginationResponseValidator.extend({
|
|
28649
28665
|
records: FullClaimHookValidator.array()
|
|
28650
28666
|
});
|
|
28651
|
-
var LCNBoostStatus = external_exports2.enum(["DRAFT", "LIVE"]);
|
|
28667
|
+
var LCNBoostStatus = external_exports2.enum(["DRAFT", "PROVISIONAL", "LIVE"]);
|
|
28652
28668
|
var BoostValidator = external_exports2.object({
|
|
28653
28669
|
uri: external_exports2.string(),
|
|
28654
28670
|
name: external_exports2.string().optional(),
|
|
@@ -28732,21 +28748,46 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
28732
28748
|
claimPermissions: BoostPermissionsValidator.partial().optional(),
|
|
28733
28749
|
skills: external_exports2.array(external_exports2.object({ frameworkId: external_exports2.string(), id: external_exports2.string() })).min(1).optional()
|
|
28734
28750
|
});
|
|
28751
|
+
var SendBrandingOptionsValidator = external_exports2.object({
|
|
28752
|
+
issuerName: external_exports2.string().optional().describe("Name of the issuing organization"),
|
|
28753
|
+
issuerLogoUrl: external_exports2.string().url().optional().describe("Logo URL of the issuing organization"),
|
|
28754
|
+
credentialName: external_exports2.string().optional().describe("Display name for the credential"),
|
|
28755
|
+
recipientName: external_exports2.string().optional().describe("Name of the recipient for personalization")
|
|
28756
|
+
});
|
|
28757
|
+
var SendOptionsValidator = external_exports2.object({
|
|
28758
|
+
webhookUrl: external_exports2.string().url().optional().describe("Webhook URL to receive claim notifications"),
|
|
28759
|
+
suppressDelivery: external_exports2.boolean().optional().describe("If true, returns claimUrl without sending email/SMS"),
|
|
28760
|
+
branding: SendBrandingOptionsValidator.optional().describe("Branding for email/SMS delivery")
|
|
28761
|
+
});
|
|
28735
28762
|
var SendBoostInputValidator = external_exports2.object({
|
|
28736
28763
|
type: external_exports2.literal("boost"),
|
|
28737
|
-
recipient: external_exports2.string(),
|
|
28764
|
+
recipient: external_exports2.string().describe("Profile ID, DID, email, or phone number (auto-detected)"),
|
|
28738
28765
|
contractUri: external_exports2.string().optional(),
|
|
28739
28766
|
templateUri: external_exports2.string().optional(),
|
|
28740
28767
|
template: SendBoostTemplateValidator.optional(),
|
|
28741
|
-
signedCredential: VCValidator.optional()
|
|
28768
|
+
signedCredential: VCValidator.optional(),
|
|
28769
|
+
options: SendOptionsValidator.optional().describe(
|
|
28770
|
+
"Options for email/phone recipients (Universal Inbox)"
|
|
28771
|
+
),
|
|
28772
|
+
templateData: external_exports2.record(external_exports2.string(), external_exports2.unknown()).optional(),
|
|
28773
|
+
integrationId: external_exports2.string().optional().describe("Integration ID for activity tracking")
|
|
28742
28774
|
}).refine((data) => data.templateUri || data.template, {
|
|
28743
28775
|
message: "Either templateUri or template creation data must be provided.",
|
|
28744
28776
|
path: ["templateUri"]
|
|
28745
28777
|
});
|
|
28778
|
+
var SendInboxResponseValidator = external_exports2.object({
|
|
28779
|
+
issuanceId: external_exports2.string(),
|
|
28780
|
+
status: external_exports2.enum(["PENDING", "ISSUED", "EXPIRED", "DELIVERED", "CLAIMED"]),
|
|
28781
|
+
claimUrl: external_exports2.string().url().optional().describe("Present when suppressDelivery=true")
|
|
28782
|
+
});
|
|
28746
28783
|
var SendBoostResponseValidator = external_exports2.object({
|
|
28747
28784
|
type: external_exports2.literal("boost"),
|
|
28748
28785
|
credentialUri: external_exports2.string(),
|
|
28749
|
-
uri: external_exports2.string()
|
|
28786
|
+
uri: external_exports2.string(),
|
|
28787
|
+
activityId: external_exports2.string().describe("Links to the activity lifecycle for this issuance"),
|
|
28788
|
+
inbox: SendInboxResponseValidator.optional().describe(
|
|
28789
|
+
"Present when sent via email/phone (Universal Inbox)"
|
|
28790
|
+
)
|
|
28750
28791
|
});
|
|
28751
28792
|
var SendInputValidator = external_exports2.discriminatedUnion("type", [SendBoostInputValidator]);
|
|
28752
28793
|
var SendResponseValidator = external_exports2.discriminatedUnion("type", [SendBoostResponseValidator]);
|
|
@@ -29098,6 +29139,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
29098
29139
|
createdAt: external_exports2.string(),
|
|
29099
29140
|
issuerDid: external_exports2.string(),
|
|
29100
29141
|
webhookUrl: external_exports2.string().optional(),
|
|
29142
|
+
boostUri: external_exports2.string().optional(),
|
|
29143
|
+
activityId: external_exports2.string().optional(),
|
|
29101
29144
|
signingAuthority: external_exports2.object({
|
|
29102
29145
|
endpoint: external_exports2.string().optional(),
|
|
29103
29146
|
name: external_exports2.string().optional()
|
|
@@ -29113,7 +29156,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
29113
29156
|
id: external_exports2.string(),
|
|
29114
29157
|
isSigned: external_exports2.boolean(),
|
|
29115
29158
|
isAccepted: external_exports2.boolean().optional(),
|
|
29116
|
-
issuerDid: external_exports2.string()
|
|
29159
|
+
issuerDid: external_exports2.string(),
|
|
29160
|
+
boostUri: external_exports2.string()
|
|
29117
29161
|
}).partial();
|
|
29118
29162
|
var IssueInboxSigningAuthorityValidator = external_exports2.object({
|
|
29119
29163
|
endpoint: external_exports2.string().url(),
|
|
@@ -29123,9 +29167,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
29123
29167
|
// === CORE DATA (Required) ===
|
|
29124
29168
|
// WHAT is being sent and WHO is it for?
|
|
29125
29169
|
recipient: ContactMethodQueryValidator.describe("The recipient of the credential"),
|
|
29126
|
-
credential
|
|
29170
|
+
// Either credential OR templateUri must be provided
|
|
29171
|
+
credential: VCValidator.or(VPValidator).or(UnsignedVCValidator).optional().describe(
|
|
29127
29172
|
"The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
|
|
29128
29173
|
),
|
|
29174
|
+
templateUri: external_exports2.string().optional().describe(
|
|
29175
|
+
"URI of a boost template to use for issuance. The boost credential will be resolved and used. Mutually exclusive with credential field."
|
|
29176
|
+
),
|
|
29129
29177
|
// === OPTIONAL FEATURES ===
|
|
29130
29178
|
// Add major, distinct features at the top level.
|
|
29131
29179
|
//consentRequest: ConsentRequestValidator.optional(),
|
|
@@ -29137,6 +29185,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
29137
29185
|
),
|
|
29138
29186
|
webhookUrl: external_exports2.string().url().optional().describe("The webhook URL to receive credential issuance events."),
|
|
29139
29187
|
expiresInDays: external_exports2.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
|
|
29188
|
+
templateData: external_exports2.record(external_exports2.string(), external_exports2.unknown()).optional().describe(
|
|
29189
|
+
"Template data to render into the boost credential template using Mustache syntax. Only used when boostUri is provided."
|
|
29190
|
+
),
|
|
29140
29191
|
// --- For User-Facing Delivery (Email/SMS) ---
|
|
29141
29192
|
delivery: external_exports2.object({
|
|
29142
29193
|
suppress: external_exports2.boolean().optional().default(false).describe(
|
|
@@ -29151,7 +29202,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
29151
29202
|
name: external_exports2.string().optional().describe(
|
|
29152
29203
|
'The name of the organization (e.g., "State University").'
|
|
29153
29204
|
),
|
|
29154
|
-
logoUrl: external_exports2.string().url().optional().describe(
|
|
29205
|
+
logoUrl: external_exports2.string().url().optional().describe(
|
|
29206
|
+
"The URL of the organization's logo."
|
|
29207
|
+
)
|
|
29155
29208
|
}).optional(),
|
|
29156
29209
|
credential: external_exports2.object({
|
|
29157
29210
|
name: external_exports2.string().optional().describe(
|
|
@@ -29178,6 +29231,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
29178
29231
|
}).optional().describe(
|
|
29179
29232
|
"Configuration for the credential issuance. If not provided, the default configuration will be used."
|
|
29180
29233
|
)
|
|
29234
|
+
}).refine((data) => data.credential || data.templateUri, {
|
|
29235
|
+
message: "Either credential or templateUri must be provided.",
|
|
29236
|
+
path: ["credential"]
|
|
29181
29237
|
});
|
|
29182
29238
|
var IssueInboxCredentialResponseValidator = external_exports2.object({
|
|
29183
29239
|
issuanceId: external_exports2.string(),
|
|
@@ -29205,28 +29261,43 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
29205
29261
|
{ message: "Must be a valid http(s) origin" }
|
|
29206
29262
|
)
|
|
29207
29263
|
]);
|
|
29264
|
+
var LCNIntegrationStatusEnum = external_exports2.enum(["setup", "active", "paused"]);
|
|
29208
29265
|
var LCNIntegrationValidator = external_exports2.object({
|
|
29209
29266
|
id: external_exports2.string(),
|
|
29210
29267
|
name: external_exports2.string(),
|
|
29211
29268
|
description: external_exports2.string().optional(),
|
|
29212
29269
|
publishableKey: external_exports2.string(),
|
|
29213
|
-
whitelistedDomains: external_exports2.array(LCNDomainOrOriginValidator).default([])
|
|
29270
|
+
whitelistedDomains: external_exports2.array(LCNDomainOrOriginValidator).default([]),
|
|
29271
|
+
// Setup/onboarding status
|
|
29272
|
+
status: LCNIntegrationStatusEnum.default("setup"),
|
|
29273
|
+
guideType: external_exports2.string().optional(),
|
|
29274
|
+
guideState: external_exports2.record(external_exports2.string(), external_exports2.any()).optional(),
|
|
29275
|
+
// Timestamps
|
|
29276
|
+
createdAt: external_exports2.string().optional(),
|
|
29277
|
+
updatedAt: external_exports2.string().optional()
|
|
29214
29278
|
});
|
|
29215
29279
|
var LCNIntegrationCreateValidator = external_exports2.object({
|
|
29216
29280
|
name: external_exports2.string(),
|
|
29217
29281
|
description: external_exports2.string().optional(),
|
|
29218
|
-
whitelistedDomains: external_exports2.array(LCNDomainOrOriginValidator).default([])
|
|
29282
|
+
whitelistedDomains: external_exports2.array(LCNDomainOrOriginValidator).default([]),
|
|
29283
|
+
guideType: external_exports2.string().optional()
|
|
29219
29284
|
});
|
|
29220
29285
|
var LCNIntegrationUpdateValidator = external_exports2.object({
|
|
29221
29286
|
name: external_exports2.string().optional(),
|
|
29222
29287
|
description: external_exports2.string().optional(),
|
|
29223
29288
|
whitelistedDomains: external_exports2.array(LCNDomainOrOriginValidator).optional(),
|
|
29224
|
-
rotatePublishableKey: external_exports2.boolean().optional()
|
|
29289
|
+
rotatePublishableKey: external_exports2.boolean().optional(),
|
|
29290
|
+
// Setup/onboarding updates
|
|
29291
|
+
status: LCNIntegrationStatusEnum.optional(),
|
|
29292
|
+
guideType: external_exports2.string().optional(),
|
|
29293
|
+
guideState: external_exports2.record(external_exports2.string(), external_exports2.any()).optional()
|
|
29225
29294
|
});
|
|
29226
29295
|
var LCNIntegrationQueryValidator = external_exports2.object({
|
|
29227
29296
|
id: StringQuery,
|
|
29228
29297
|
name: StringQuery,
|
|
29229
|
-
description: StringQuery
|
|
29298
|
+
description: StringQuery,
|
|
29299
|
+
status: StringQuery,
|
|
29300
|
+
guideType: StringQuery
|
|
29230
29301
|
}).partial();
|
|
29231
29302
|
var PaginatedLCNIntegrationsValidator = PaginationResponseValidator.extend({
|
|
29232
29303
|
records: LCNIntegrationValidator.array()
|
|
@@ -29441,6 +29512,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
29441
29512
|
]);
|
|
29442
29513
|
var AppStoreListingValidator = external_exports2.object({
|
|
29443
29514
|
listing_id: external_exports2.string(),
|
|
29515
|
+
slug: external_exports2.string().optional(),
|
|
29444
29516
|
display_name: external_exports2.string(),
|
|
29445
29517
|
tagline: external_exports2.string(),
|
|
29446
29518
|
full_description: external_exports2.string(),
|
|
@@ -29478,6 +29550,77 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
29478
29550
|
var PaginatedInstalledAppsValidator = PaginationResponseValidator.extend({
|
|
29479
29551
|
records: InstalledAppValidator.array()
|
|
29480
29552
|
});
|
|
29553
|
+
var AppBoostValidator = external_exports2.object({
|
|
29554
|
+
templateAlias: external_exports2.string().min(1).max(50).regex(/^[a-z0-9-]+$/),
|
|
29555
|
+
boostUri: external_exports2.string()
|
|
29556
|
+
});
|
|
29557
|
+
var SendCredentialEventValidator = external_exports2.object({
|
|
29558
|
+
type: external_exports2.literal("send-credential"),
|
|
29559
|
+
templateAlias: external_exports2.string(),
|
|
29560
|
+
templateData: external_exports2.record(external_exports2.string(), external_exports2.unknown()).optional()
|
|
29561
|
+
});
|
|
29562
|
+
var AppEventValidator = external_exports2.discriminatedUnion("type", [SendCredentialEventValidator]);
|
|
29563
|
+
var AppEventInputValidator = external_exports2.object({
|
|
29564
|
+
listingId: external_exports2.string(),
|
|
29565
|
+
event: AppEventValidator
|
|
29566
|
+
});
|
|
29567
|
+
var AppEventResponseValidator = external_exports2.record(external_exports2.string(), external_exports2.unknown());
|
|
29568
|
+
var CredentialActivityEventTypeValidator = external_exports2.enum([
|
|
29569
|
+
"CREATED",
|
|
29570
|
+
"DELIVERED",
|
|
29571
|
+
"CLAIMED",
|
|
29572
|
+
"EXPIRED",
|
|
29573
|
+
"FAILED"
|
|
29574
|
+
]);
|
|
29575
|
+
var CredentialActivityRecipientTypeValidator = external_exports2.enum(["profile", "email", "phone"]);
|
|
29576
|
+
var CredentialActivitySourceTypeValidator = external_exports2.enum([
|
|
29577
|
+
"send",
|
|
29578
|
+
"sendBoost",
|
|
29579
|
+
"sendCredential",
|
|
29580
|
+
"contract",
|
|
29581
|
+
"claim",
|
|
29582
|
+
"inbox",
|
|
29583
|
+
"claimLink",
|
|
29584
|
+
"acceptCredential"
|
|
29585
|
+
]);
|
|
29586
|
+
var CredentialActivityValidator = external_exports2.object({
|
|
29587
|
+
id: external_exports2.string(),
|
|
29588
|
+
activityId: external_exports2.string(),
|
|
29589
|
+
eventType: CredentialActivityEventTypeValidator,
|
|
29590
|
+
timestamp: external_exports2.string(),
|
|
29591
|
+
actorProfileId: external_exports2.string(),
|
|
29592
|
+
recipientType: CredentialActivityRecipientTypeValidator,
|
|
29593
|
+
recipientIdentifier: external_exports2.string(),
|
|
29594
|
+
boostUri: external_exports2.string().optional(),
|
|
29595
|
+
credentialUri: external_exports2.string().optional(),
|
|
29596
|
+
inboxCredentialId: external_exports2.string().optional(),
|
|
29597
|
+
integrationId: external_exports2.string().optional(),
|
|
29598
|
+
source: CredentialActivitySourceTypeValidator,
|
|
29599
|
+
metadata: external_exports2.record(external_exports2.string(), external_exports2.unknown()).optional()
|
|
29600
|
+
});
|
|
29601
|
+
var CredentialActivityWithDetailsValidator = CredentialActivityValidator.extend({
|
|
29602
|
+
boost: external_exports2.object({
|
|
29603
|
+
id: external_exports2.string(),
|
|
29604
|
+
name: external_exports2.string().optional(),
|
|
29605
|
+
category: external_exports2.string().optional()
|
|
29606
|
+
}).optional(),
|
|
29607
|
+
recipientProfile: external_exports2.object({
|
|
29608
|
+
profileId: external_exports2.string(),
|
|
29609
|
+
displayName: external_exports2.string().optional()
|
|
29610
|
+
}).optional()
|
|
29611
|
+
});
|
|
29612
|
+
var PaginatedCredentialActivitiesValidator = PaginationResponseValidator.extend({
|
|
29613
|
+
records: CredentialActivityWithDetailsValidator.array()
|
|
29614
|
+
});
|
|
29615
|
+
var CredentialActivityStatsValidator = external_exports2.object({
|
|
29616
|
+
total: external_exports2.number(),
|
|
29617
|
+
created: external_exports2.number(),
|
|
29618
|
+
delivered: external_exports2.number(),
|
|
29619
|
+
claimed: external_exports2.number(),
|
|
29620
|
+
expired: external_exports2.number(),
|
|
29621
|
+
failed: external_exports2.number(),
|
|
29622
|
+
claimRate: external_exports2.number()
|
|
29623
|
+
});
|
|
29481
29624
|
}
|
|
29482
29625
|
});
|
|
29483
29626
|
var require_dist = __commonJS2({
|