@learncard/network-brain-client 2.5.4 → 2.5.7
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 +153 -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 +153 -11
- package/dist/brain-client.esm.js.map +2 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @learncard/network-brain-client
|
|
2
2
|
|
|
3
|
+
## 2.5.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`a0e5a30dab11f0dcc0a23a6ddeeda999c37e0b89`](https://github.com/learningeconomy/LearnCard/commit/a0e5a30dab11f0dcc0a23a6ddeeda999c37e0b89)]:
|
|
8
|
+
- @learncard/network-brain-service@3.9.5
|
|
9
|
+
|
|
10
|
+
## 2.5.6
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [[`016b7edc231273aab962b89b4351a3e229fca025`](https://github.com/learningeconomy/LearnCard/commit/016b7edc231273aab962b89b4351a3e229fca025)]:
|
|
15
|
+
- @learncard/network-brain-service@3.9.4
|
|
16
|
+
|
|
17
|
+
## 2.5.5
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies [[`0a2b464c82c52edad1e7eb18267b79073d05d36b`](https://github.com/learningeconomy/LearnCard/commit/0a2b464c82c52edad1e7eb18267b79073d05d36b), [`73865cc62ea292badb99fe41ca8b0f484a12728f`](https://github.com/learningeconomy/LearnCard/commit/73865cc62ea292badb99fe41ca8b0f484a12728f), [`95f6d91929e38231c7e616e4a6720c5c157861e2`](https://github.com/learningeconomy/LearnCard/commit/95f6d91929e38231c7e616e4a6720c5c157861e2), [`5eb024296c3b3155f7ec6062189876c05fb8ca37`](https://github.com/learningeconomy/LearnCard/commit/5eb024296c3b3155f7ec6062189876c05fb8ca37)]:
|
|
22
|
+
- @learncard/network-brain-service@3.9.3
|
|
23
|
+
|
|
3
24
|
## 2.5.4
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -99,6 +99,10 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
99
99
|
AddressValidator: /* @__PURE__ */ __name2(() => AddressValidator, "AddressValidator"),
|
|
100
100
|
AlignmentTargetTypeValidator: /* @__PURE__ */ __name2(() => AlignmentTargetTypeValidator, "AlignmentTargetTypeValidator"),
|
|
101
101
|
AlignmentValidator: /* @__PURE__ */ __name2(() => AlignmentValidator, "AlignmentValidator"),
|
|
102
|
+
AppBoostValidator: /* @__PURE__ */ __name2(() => AppBoostValidator, "AppBoostValidator"),
|
|
103
|
+
AppEventInputValidator: /* @__PURE__ */ __name2(() => AppEventInputValidator, "AppEventInputValidator"),
|
|
104
|
+
AppEventResponseValidator: /* @__PURE__ */ __name2(() => AppEventResponseValidator, "AppEventResponseValidator"),
|
|
105
|
+
AppEventValidator: /* @__PURE__ */ __name2(() => AppEventValidator, "AppEventValidator"),
|
|
102
106
|
AppListingStatusValidator: /* @__PURE__ */ __name2(() => AppListingStatusValidator, "AppListingStatusValidator"),
|
|
103
107
|
AppStoreListingCreateValidator: /* @__PURE__ */ __name2(() => AppStoreListingCreateValidator, "AppStoreListingCreateValidator"),
|
|
104
108
|
AppStoreListingUpdateValidator: /* @__PURE__ */ __name2(() => AppStoreListingUpdateValidator, "AppStoreListingUpdateValidator"),
|
|
@@ -147,6 +151,12 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
147
151
|
CreateManagedFrameworkInputValidator: /* @__PURE__ */ __name2(() => CreateManagedFrameworkInputValidator, "CreateManagedFrameworkInputValidator"),
|
|
148
152
|
CreateSkillInputValidator: /* @__PURE__ */ __name2(() => CreateSkillInputValidator, "CreateSkillInputValidator"),
|
|
149
153
|
CreateSkillsBatchInputValidator: /* @__PURE__ */ __name2(() => CreateSkillsBatchInputValidator, "CreateSkillsBatchInputValidator"),
|
|
154
|
+
CredentialActivityEventTypeValidator: /* @__PURE__ */ __name2(() => CredentialActivityEventTypeValidator, "CredentialActivityEventTypeValidator"),
|
|
155
|
+
CredentialActivityRecipientTypeValidator: /* @__PURE__ */ __name2(() => CredentialActivityRecipientTypeValidator, "CredentialActivityRecipientTypeValidator"),
|
|
156
|
+
CredentialActivitySourceTypeValidator: /* @__PURE__ */ __name2(() => CredentialActivitySourceTypeValidator, "CredentialActivitySourceTypeValidator"),
|
|
157
|
+
CredentialActivityStatsValidator: /* @__PURE__ */ __name2(() => CredentialActivityStatsValidator, "CredentialActivityStatsValidator"),
|
|
158
|
+
CredentialActivityValidator: /* @__PURE__ */ __name2(() => CredentialActivityValidator, "CredentialActivityValidator"),
|
|
159
|
+
CredentialActivityWithDetailsValidator: /* @__PURE__ */ __name2(() => CredentialActivityWithDetailsValidator, "CredentialActivityWithDetailsValidator"),
|
|
150
160
|
CredentialInfoValidator: /* @__PURE__ */ __name2(() => CredentialInfoValidator, "CredentialInfoValidator"),
|
|
151
161
|
CredentialRecordValidator: /* @__PURE__ */ __name2(() => CredentialRecordValidator, "CredentialRecordValidator"),
|
|
152
162
|
CredentialSchemaValidator: /* @__PURE__ */ __name2(() => CredentialSchemaValidator, "CredentialSchemaValidator"),
|
|
@@ -193,6 +203,7 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
193
203
|
LCNInboxStatusEnumValidator: /* @__PURE__ */ __name2(() => LCNInboxStatusEnumValidator, "LCNInboxStatusEnumValidator"),
|
|
194
204
|
LCNIntegrationCreateValidator: /* @__PURE__ */ __name2(() => LCNIntegrationCreateValidator, "LCNIntegrationCreateValidator"),
|
|
195
205
|
LCNIntegrationQueryValidator: /* @__PURE__ */ __name2(() => LCNIntegrationQueryValidator, "LCNIntegrationQueryValidator"),
|
|
206
|
+
LCNIntegrationStatusEnum: /* @__PURE__ */ __name2(() => LCNIntegrationStatusEnum, "LCNIntegrationStatusEnum"),
|
|
196
207
|
LCNIntegrationUpdateValidator: /* @__PURE__ */ __name2(() => LCNIntegrationUpdateValidator, "LCNIntegrationUpdateValidator"),
|
|
197
208
|
LCNIntegrationValidator: /* @__PURE__ */ __name2(() => LCNIntegrationValidator, "LCNIntegrationValidator"),
|
|
198
209
|
LCNNotificationDataValidator: /* @__PURE__ */ __name2(() => LCNNotificationDataValidator, "LCNNotificationDataValidator"),
|
|
@@ -221,6 +232,7 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
221
232
|
PaginatedConsentFlowTermsValidator: /* @__PURE__ */ __name2(() => PaginatedConsentFlowTermsValidator, "PaginatedConsentFlowTermsValidator"),
|
|
222
233
|
PaginatedConsentFlowTransactionsValidator: /* @__PURE__ */ __name2(() => PaginatedConsentFlowTransactionsValidator, "PaginatedConsentFlowTransactionsValidator"),
|
|
223
234
|
PaginatedContractCredentialsValidator: /* @__PURE__ */ __name2(() => PaginatedContractCredentialsValidator, "PaginatedContractCredentialsValidator"),
|
|
235
|
+
PaginatedCredentialActivitiesValidator: /* @__PURE__ */ __name2(() => PaginatedCredentialActivitiesValidator, "PaginatedCredentialActivitiesValidator"),
|
|
224
236
|
PaginatedEncryptedCredentialRecordsValidator: /* @__PURE__ */ __name2(() => PaginatedEncryptedCredentialRecordsValidator, "PaginatedEncryptedCredentialRecordsValidator"),
|
|
225
237
|
PaginatedEncryptedRecordsValidator: /* @__PURE__ */ __name2(() => PaginatedEncryptedRecordsValidator, "PaginatedEncryptedRecordsValidator"),
|
|
226
238
|
PaginatedInboxCredentialsValidator: /* @__PURE__ */ __name2(() => PaginatedInboxCredentialsValidator, "PaginatedInboxCredentialsValidator"),
|
|
@@ -248,7 +260,11 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
248
260
|
RubricCriterionValidator: /* @__PURE__ */ __name2(() => RubricCriterionValidator, "RubricCriterionValidator"),
|
|
249
261
|
SendBoostInputValidator: /* @__PURE__ */ __name2(() => SendBoostInputValidator, "SendBoostInputValidator"),
|
|
250
262
|
SendBoostResponseValidator: /* @__PURE__ */ __name2(() => SendBoostResponseValidator, "SendBoostResponseValidator"),
|
|
263
|
+
SendBrandingOptionsValidator: /* @__PURE__ */ __name2(() => SendBrandingOptionsValidator, "SendBrandingOptionsValidator"),
|
|
264
|
+
SendCredentialEventValidator: /* @__PURE__ */ __name2(() => SendCredentialEventValidator, "SendCredentialEventValidator"),
|
|
265
|
+
SendInboxResponseValidator: /* @__PURE__ */ __name2(() => SendInboxResponseValidator, "SendInboxResponseValidator"),
|
|
251
266
|
SendInputValidator: /* @__PURE__ */ __name2(() => SendInputValidator, "SendInputValidator"),
|
|
267
|
+
SendOptionsValidator: /* @__PURE__ */ __name2(() => SendOptionsValidator, "SendOptionsValidator"),
|
|
252
268
|
SendResponseValidator: /* @__PURE__ */ __name2(() => SendResponseValidator, "SendResponseValidator"),
|
|
253
269
|
SentCredentialInfoValidator: /* @__PURE__ */ __name2(() => SentCredentialInfoValidator, "SentCredentialInfoValidator"),
|
|
254
270
|
ServiceValidator: /* @__PURE__ */ __name2(() => ServiceValidator, "ServiceValidator"),
|
|
@@ -14682,7 +14698,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14682
14698
|
var PaginatedClaimHooksValidator = PaginationResponseValidator.extend({
|
|
14683
14699
|
records: FullClaimHookValidator.array()
|
|
14684
14700
|
});
|
|
14685
|
-
var LCNBoostStatus = external_exports.enum(["DRAFT", "LIVE"]);
|
|
14701
|
+
var LCNBoostStatus = external_exports.enum(["DRAFT", "PROVISIONAL", "LIVE"]);
|
|
14686
14702
|
var BoostValidator = external_exports.object({
|
|
14687
14703
|
uri: external_exports.string(),
|
|
14688
14704
|
name: external_exports.string().optional(),
|
|
@@ -14766,22 +14782,46 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14766
14782
|
claimPermissions: BoostPermissionsValidator.partial().optional(),
|
|
14767
14783
|
skills: external_exports.array(external_exports.object({ frameworkId: external_exports.string(), id: external_exports.string() })).min(1).optional()
|
|
14768
14784
|
});
|
|
14785
|
+
var SendBrandingOptionsValidator = external_exports.object({
|
|
14786
|
+
issuerName: external_exports.string().optional().describe("Name of the issuing organization"),
|
|
14787
|
+
issuerLogoUrl: external_exports.string().url().optional().describe("Logo URL of the issuing organization"),
|
|
14788
|
+
credentialName: external_exports.string().optional().describe("Display name for the credential"),
|
|
14789
|
+
recipientName: external_exports.string().optional().describe("Name of the recipient for personalization")
|
|
14790
|
+
});
|
|
14791
|
+
var SendOptionsValidator = external_exports.object({
|
|
14792
|
+
webhookUrl: external_exports.string().url().optional().describe("Webhook URL to receive claim notifications"),
|
|
14793
|
+
suppressDelivery: external_exports.boolean().optional().describe("If true, returns claimUrl without sending email/SMS"),
|
|
14794
|
+
branding: SendBrandingOptionsValidator.optional().describe("Branding for email/SMS delivery")
|
|
14795
|
+
});
|
|
14769
14796
|
var SendBoostInputValidator = external_exports.object({
|
|
14770
14797
|
type: external_exports.literal("boost"),
|
|
14771
|
-
recipient: external_exports.string(),
|
|
14798
|
+
recipient: external_exports.string().describe("Profile ID, DID, email, or phone number (auto-detected)"),
|
|
14772
14799
|
contractUri: external_exports.string().optional(),
|
|
14773
14800
|
templateUri: external_exports.string().optional(),
|
|
14774
14801
|
template: SendBoostTemplateValidator.optional(),
|
|
14775
14802
|
signedCredential: VCValidator.optional(),
|
|
14776
|
-
|
|
14803
|
+
options: SendOptionsValidator.optional().describe(
|
|
14804
|
+
"Options for email/phone recipients (Universal Inbox)"
|
|
14805
|
+
),
|
|
14806
|
+
templateData: external_exports.record(external_exports.string(), external_exports.unknown()).optional(),
|
|
14807
|
+
integrationId: external_exports.string().optional().describe("Integration ID for activity tracking")
|
|
14777
14808
|
}).refine((data) => data.templateUri || data.template, {
|
|
14778
14809
|
message: "Either templateUri or template creation data must be provided.",
|
|
14779
14810
|
path: ["templateUri"]
|
|
14780
14811
|
});
|
|
14812
|
+
var SendInboxResponseValidator = external_exports.object({
|
|
14813
|
+
issuanceId: external_exports.string(),
|
|
14814
|
+
status: external_exports.enum(["PENDING", "ISSUED", "EXPIRED", "DELIVERED", "CLAIMED"]),
|
|
14815
|
+
claimUrl: external_exports.string().url().optional().describe("Present when suppressDelivery=true")
|
|
14816
|
+
});
|
|
14781
14817
|
var SendBoostResponseValidator = external_exports.object({
|
|
14782
14818
|
type: external_exports.literal("boost"),
|
|
14783
14819
|
credentialUri: external_exports.string(),
|
|
14784
|
-
uri: external_exports.string()
|
|
14820
|
+
uri: external_exports.string(),
|
|
14821
|
+
activityId: external_exports.string().describe("Links to the activity lifecycle for this issuance"),
|
|
14822
|
+
inbox: SendInboxResponseValidator.optional().describe(
|
|
14823
|
+
"Present when sent via email/phone (Universal Inbox)"
|
|
14824
|
+
)
|
|
14785
14825
|
});
|
|
14786
14826
|
var SendInputValidator = external_exports.discriminatedUnion("type", [SendBoostInputValidator]);
|
|
14787
14827
|
var SendResponseValidator = external_exports.discriminatedUnion("type", [SendBoostResponseValidator]);
|
|
@@ -15133,6 +15173,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15133
15173
|
createdAt: external_exports.string(),
|
|
15134
15174
|
issuerDid: external_exports.string(),
|
|
15135
15175
|
webhookUrl: external_exports.string().optional(),
|
|
15176
|
+
boostUri: external_exports.string().optional(),
|
|
15177
|
+
activityId: external_exports.string().optional(),
|
|
15136
15178
|
signingAuthority: external_exports.object({
|
|
15137
15179
|
endpoint: external_exports.string().optional(),
|
|
15138
15180
|
name: external_exports.string().optional()
|
|
@@ -15148,7 +15190,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15148
15190
|
id: external_exports.string(),
|
|
15149
15191
|
isSigned: external_exports.boolean(),
|
|
15150
15192
|
isAccepted: external_exports.boolean().optional(),
|
|
15151
|
-
issuerDid: external_exports.string()
|
|
15193
|
+
issuerDid: external_exports.string(),
|
|
15194
|
+
boostUri: external_exports.string()
|
|
15152
15195
|
}).partial();
|
|
15153
15196
|
var IssueInboxSigningAuthorityValidator = external_exports.object({
|
|
15154
15197
|
endpoint: external_exports.string().url(),
|
|
@@ -15158,9 +15201,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15158
15201
|
// === CORE DATA (Required) ===
|
|
15159
15202
|
// WHAT is being sent and WHO is it for?
|
|
15160
15203
|
recipient: ContactMethodQueryValidator.describe("The recipient of the credential"),
|
|
15161
|
-
credential
|
|
15204
|
+
// Either credential OR templateUri must be provided
|
|
15205
|
+
credential: VCValidator.or(VPValidator).or(UnsignedVCValidator).optional().describe(
|
|
15162
15206
|
"The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
|
|
15163
15207
|
),
|
|
15208
|
+
templateUri: external_exports.string().optional().describe(
|
|
15209
|
+
"URI of a boost template to use for issuance. The boost credential will be resolved and used. Mutually exclusive with credential field."
|
|
15210
|
+
),
|
|
15164
15211
|
// === OPTIONAL FEATURES ===
|
|
15165
15212
|
// Add major, distinct features at the top level.
|
|
15166
15213
|
//consentRequest: ConsentRequestValidator.optional(),
|
|
@@ -15172,6 +15219,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15172
15219
|
),
|
|
15173
15220
|
webhookUrl: external_exports.string().url().optional().describe("The webhook URL to receive credential issuance events."),
|
|
15174
15221
|
expiresInDays: external_exports.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
|
|
15222
|
+
templateData: external_exports.record(external_exports.string(), external_exports.unknown()).optional().describe(
|
|
15223
|
+
"Template data to render into the boost credential template using Mustache syntax. Only used when boostUri is provided."
|
|
15224
|
+
),
|
|
15175
15225
|
// --- For User-Facing Delivery (Email/SMS) ---
|
|
15176
15226
|
delivery: external_exports.object({
|
|
15177
15227
|
suppress: external_exports.boolean().optional().default(false).describe(
|
|
@@ -15186,7 +15236,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15186
15236
|
name: external_exports.string().optional().describe(
|
|
15187
15237
|
'The name of the organization (e.g., "State University").'
|
|
15188
15238
|
),
|
|
15189
|
-
logoUrl: external_exports.string().url().optional().describe(
|
|
15239
|
+
logoUrl: external_exports.string().url().optional().describe(
|
|
15240
|
+
"The URL of the organization's logo."
|
|
15241
|
+
)
|
|
15190
15242
|
}).optional(),
|
|
15191
15243
|
credential: external_exports.object({
|
|
15192
15244
|
name: external_exports.string().optional().describe(
|
|
@@ -15213,6 +15265,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15213
15265
|
}).optional().describe(
|
|
15214
15266
|
"Configuration for the credential issuance. If not provided, the default configuration will be used."
|
|
15215
15267
|
)
|
|
15268
|
+
}).refine((data) => data.credential || data.templateUri, {
|
|
15269
|
+
message: "Either credential or templateUri must be provided.",
|
|
15270
|
+
path: ["credential"]
|
|
15216
15271
|
});
|
|
15217
15272
|
var IssueInboxCredentialResponseValidator = external_exports.object({
|
|
15218
15273
|
issuanceId: external_exports.string(),
|
|
@@ -15240,28 +15295,43 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15240
15295
|
{ message: "Must be a valid http(s) origin" }
|
|
15241
15296
|
)
|
|
15242
15297
|
]);
|
|
15298
|
+
var LCNIntegrationStatusEnum = external_exports.enum(["setup", "active", "paused"]);
|
|
15243
15299
|
var LCNIntegrationValidator = external_exports.object({
|
|
15244
15300
|
id: external_exports.string(),
|
|
15245
15301
|
name: external_exports.string(),
|
|
15246
15302
|
description: external_exports.string().optional(),
|
|
15247
15303
|
publishableKey: external_exports.string(),
|
|
15248
|
-
whitelistedDomains: external_exports.array(LCNDomainOrOriginValidator).default([])
|
|
15304
|
+
whitelistedDomains: external_exports.array(LCNDomainOrOriginValidator).default([]),
|
|
15305
|
+
// Setup/onboarding status
|
|
15306
|
+
status: LCNIntegrationStatusEnum.default("setup"),
|
|
15307
|
+
guideType: external_exports.string().optional(),
|
|
15308
|
+
guideState: external_exports.record(external_exports.string(), external_exports.any()).optional(),
|
|
15309
|
+
// Timestamps
|
|
15310
|
+
createdAt: external_exports.string().optional(),
|
|
15311
|
+
updatedAt: external_exports.string().optional()
|
|
15249
15312
|
});
|
|
15250
15313
|
var LCNIntegrationCreateValidator = external_exports.object({
|
|
15251
15314
|
name: external_exports.string(),
|
|
15252
15315
|
description: external_exports.string().optional(),
|
|
15253
|
-
whitelistedDomains: external_exports.array(LCNDomainOrOriginValidator).default([])
|
|
15316
|
+
whitelistedDomains: external_exports.array(LCNDomainOrOriginValidator).default([]),
|
|
15317
|
+
guideType: external_exports.string().optional()
|
|
15254
15318
|
});
|
|
15255
15319
|
var LCNIntegrationUpdateValidator = external_exports.object({
|
|
15256
15320
|
name: external_exports.string().optional(),
|
|
15257
15321
|
description: external_exports.string().optional(),
|
|
15258
15322
|
whitelistedDomains: external_exports.array(LCNDomainOrOriginValidator).optional(),
|
|
15259
|
-
rotatePublishableKey: external_exports.boolean().optional()
|
|
15323
|
+
rotatePublishableKey: external_exports.boolean().optional(),
|
|
15324
|
+
// Setup/onboarding updates
|
|
15325
|
+
status: LCNIntegrationStatusEnum.optional(),
|
|
15326
|
+
guideType: external_exports.string().optional(),
|
|
15327
|
+
guideState: external_exports.record(external_exports.string(), external_exports.any()).optional()
|
|
15260
15328
|
});
|
|
15261
15329
|
var LCNIntegrationQueryValidator = external_exports.object({
|
|
15262
15330
|
id: StringQuery,
|
|
15263
15331
|
name: StringQuery,
|
|
15264
|
-
description: StringQuery
|
|
15332
|
+
description: StringQuery,
|
|
15333
|
+
status: StringQuery,
|
|
15334
|
+
guideType: StringQuery
|
|
15265
15335
|
}).partial();
|
|
15266
15336
|
var PaginatedLCNIntegrationsValidator = PaginationResponseValidator.extend({
|
|
15267
15337
|
records: LCNIntegrationValidator.array()
|
|
@@ -15476,6 +15546,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15476
15546
|
]);
|
|
15477
15547
|
var AppStoreListingValidator = external_exports.object({
|
|
15478
15548
|
listing_id: external_exports.string(),
|
|
15549
|
+
slug: external_exports.string().optional(),
|
|
15479
15550
|
display_name: external_exports.string(),
|
|
15480
15551
|
tagline: external_exports.string(),
|
|
15481
15552
|
full_description: external_exports.string(),
|
|
@@ -15513,6 +15584,77 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15513
15584
|
var PaginatedInstalledAppsValidator = PaginationResponseValidator.extend({
|
|
15514
15585
|
records: InstalledAppValidator.array()
|
|
15515
15586
|
});
|
|
15587
|
+
var AppBoostValidator = external_exports.object({
|
|
15588
|
+
templateAlias: external_exports.string().min(1).max(50).regex(/^[a-z0-9-]+$/),
|
|
15589
|
+
boostUri: external_exports.string()
|
|
15590
|
+
});
|
|
15591
|
+
var SendCredentialEventValidator = external_exports.object({
|
|
15592
|
+
type: external_exports.literal("send-credential"),
|
|
15593
|
+
templateAlias: external_exports.string(),
|
|
15594
|
+
templateData: external_exports.record(external_exports.string(), external_exports.unknown()).optional()
|
|
15595
|
+
});
|
|
15596
|
+
var AppEventValidator = external_exports.discriminatedUnion("type", [SendCredentialEventValidator]);
|
|
15597
|
+
var AppEventInputValidator = external_exports.object({
|
|
15598
|
+
listingId: external_exports.string(),
|
|
15599
|
+
event: AppEventValidator
|
|
15600
|
+
});
|
|
15601
|
+
var AppEventResponseValidator = external_exports.record(external_exports.string(), external_exports.unknown());
|
|
15602
|
+
var CredentialActivityEventTypeValidator = external_exports.enum([
|
|
15603
|
+
"CREATED",
|
|
15604
|
+
"DELIVERED",
|
|
15605
|
+
"CLAIMED",
|
|
15606
|
+
"EXPIRED",
|
|
15607
|
+
"FAILED"
|
|
15608
|
+
]);
|
|
15609
|
+
var CredentialActivityRecipientTypeValidator = external_exports.enum(["profile", "email", "phone"]);
|
|
15610
|
+
var CredentialActivitySourceTypeValidator = external_exports.enum([
|
|
15611
|
+
"send",
|
|
15612
|
+
"sendBoost",
|
|
15613
|
+
"sendCredential",
|
|
15614
|
+
"contract",
|
|
15615
|
+
"claim",
|
|
15616
|
+
"inbox",
|
|
15617
|
+
"claimLink",
|
|
15618
|
+
"acceptCredential"
|
|
15619
|
+
]);
|
|
15620
|
+
var CredentialActivityValidator = external_exports.object({
|
|
15621
|
+
id: external_exports.string(),
|
|
15622
|
+
activityId: external_exports.string(),
|
|
15623
|
+
eventType: CredentialActivityEventTypeValidator,
|
|
15624
|
+
timestamp: external_exports.string(),
|
|
15625
|
+
actorProfileId: external_exports.string(),
|
|
15626
|
+
recipientType: CredentialActivityRecipientTypeValidator,
|
|
15627
|
+
recipientIdentifier: external_exports.string(),
|
|
15628
|
+
boostUri: external_exports.string().optional(),
|
|
15629
|
+
credentialUri: external_exports.string().optional(),
|
|
15630
|
+
inboxCredentialId: external_exports.string().optional(),
|
|
15631
|
+
integrationId: external_exports.string().optional(),
|
|
15632
|
+
source: CredentialActivitySourceTypeValidator,
|
|
15633
|
+
metadata: external_exports.record(external_exports.string(), external_exports.unknown()).optional()
|
|
15634
|
+
});
|
|
15635
|
+
var CredentialActivityWithDetailsValidator = CredentialActivityValidator.extend({
|
|
15636
|
+
boost: external_exports.object({
|
|
15637
|
+
id: external_exports.string(),
|
|
15638
|
+
name: external_exports.string().optional(),
|
|
15639
|
+
category: external_exports.string().optional()
|
|
15640
|
+
}).optional(),
|
|
15641
|
+
recipientProfile: external_exports.object({
|
|
15642
|
+
profileId: external_exports.string(),
|
|
15643
|
+
displayName: external_exports.string().optional()
|
|
15644
|
+
}).optional()
|
|
15645
|
+
});
|
|
15646
|
+
var PaginatedCredentialActivitiesValidator = PaginationResponseValidator.extend({
|
|
15647
|
+
records: CredentialActivityWithDetailsValidator.array()
|
|
15648
|
+
});
|
|
15649
|
+
var CredentialActivityStatsValidator = external_exports.object({
|
|
15650
|
+
total: external_exports.number(),
|
|
15651
|
+
created: external_exports.number(),
|
|
15652
|
+
delivered: external_exports.number(),
|
|
15653
|
+
claimed: external_exports.number(),
|
|
15654
|
+
expired: external_exports.number(),
|
|
15655
|
+
failed: external_exports.number(),
|
|
15656
|
+
claimRate: external_exports.number()
|
|
15657
|
+
});
|
|
15516
15658
|
}
|
|
15517
15659
|
});
|
|
15518
15660
|
var require_dist2 = __commonJS2({
|