@learncard/network-plugin 2.5.12 → 2.5.15
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/lcn-plugin.cjs.development.js +47 -0
- package/dist/lcn-plugin.cjs.development.js.map +3 -3
- package/dist/lcn-plugin.cjs.production.min.js +2 -2
- package/dist/lcn-plugin.cjs.production.min.js.map +3 -3
- package/dist/lcn-plugin.esm.js +47 -0
- package/dist/lcn-plugin.esm.js.map +3 -3
- package/dist/plugin.d.ts.map +1 -1
- package/dist/types.d.ts +2 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +8 -8
|
@@ -2065,6 +2065,7 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
2065
2065
|
BoostPermissionsValidator: () => BoostPermissionsValidator2,
|
|
2066
2066
|
BoostQueryValidator: () => BoostQueryValidator2,
|
|
2067
2067
|
BoostRecipientValidator: () => BoostRecipientValidator2,
|
|
2068
|
+
BoostRecipientWithChildrenValidator: () => BoostRecipientWithChildrenValidator2,
|
|
2068
2069
|
BoostValidator: () => BoostValidator2,
|
|
2069
2070
|
ClaimHookQueryValidator: () => ClaimHookQueryValidator2,
|
|
2070
2071
|
ClaimHookTypeValidator: () => ClaimHookTypeValidator2,
|
|
@@ -2140,6 +2141,7 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
2140
2141
|
LCNSigningAuthorityForUserValidator: () => LCNSigningAuthorityForUserValidator2,
|
|
2141
2142
|
LCNSigningAuthorityValidator: () => LCNSigningAuthorityValidator2,
|
|
2142
2143
|
PaginatedBoostRecipientsValidator: () => PaginatedBoostRecipientsValidator2,
|
|
2144
|
+
PaginatedBoostRecipientsWithChildrenValidator: () => PaginatedBoostRecipientsWithChildrenValidator2,
|
|
2143
2145
|
PaginatedBoostsValidator: () => PaginatedBoostsValidator2,
|
|
2144
2146
|
PaginatedClaimHooksValidator: () => PaginatedClaimHooksValidator2,
|
|
2145
2147
|
PaginatedConsentFlowContractsValidator: () => PaginatedConsentFlowContractsValidator2,
|
|
@@ -6850,6 +6852,16 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
6850
6852
|
var PaginatedBoostRecipientsValidator2 = PaginationResponseValidator2.extend({
|
|
6851
6853
|
records: BoostRecipientValidator2.array()
|
|
6852
6854
|
});
|
|
6855
|
+
var BoostRecipientWithChildrenValidator2 = z2.object({
|
|
6856
|
+
to: LCNProfileValidator2,
|
|
6857
|
+
from: z2.string(),
|
|
6858
|
+
received: z2.string().optional(),
|
|
6859
|
+
boostUris: z2.array(z2.string()),
|
|
6860
|
+
credentialUris: z2.array(z2.string()).optional()
|
|
6861
|
+
});
|
|
6862
|
+
var PaginatedBoostRecipientsWithChildrenValidator2 = PaginationResponseValidator2.extend({
|
|
6863
|
+
records: BoostRecipientWithChildrenValidator2.array()
|
|
6864
|
+
});
|
|
6853
6865
|
var LCNBoostClaimLinkSigningAuthorityValidator2 = z2.object({
|
|
6854
6866
|
endpoint: z2.string(),
|
|
6855
6867
|
name: z2.string(),
|
|
@@ -11986,6 +11998,16 @@ var BoostRecipientValidator = z.object({
|
|
|
11986
11998
|
var PaginatedBoostRecipientsValidator = PaginationResponseValidator.extend({
|
|
11987
11999
|
records: BoostRecipientValidator.array()
|
|
11988
12000
|
});
|
|
12001
|
+
var BoostRecipientWithChildrenValidator = z.object({
|
|
12002
|
+
to: LCNProfileValidator,
|
|
12003
|
+
from: z.string(),
|
|
12004
|
+
received: z.string().optional(),
|
|
12005
|
+
boostUris: z.array(z.string()),
|
|
12006
|
+
credentialUris: z.array(z.string()).optional()
|
|
12007
|
+
});
|
|
12008
|
+
var PaginatedBoostRecipientsWithChildrenValidator = PaginationResponseValidator.extend({
|
|
12009
|
+
records: BoostRecipientWithChildrenValidator.array()
|
|
12010
|
+
});
|
|
11989
12011
|
var LCNBoostClaimLinkSigningAuthorityValidator = z.object({
|
|
11990
12012
|
endpoint: z.string(),
|
|
11991
12013
|
name: z.string(),
|
|
@@ -12429,6 +12451,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
12429
12451
|
BoostPermissionsValidator: () => BoostPermissionsValidator2,
|
|
12430
12452
|
BoostQueryValidator: () => BoostQueryValidator2,
|
|
12431
12453
|
BoostRecipientValidator: () => BoostRecipientValidator2,
|
|
12454
|
+
BoostRecipientWithChildrenValidator: () => BoostRecipientWithChildrenValidator2,
|
|
12432
12455
|
BoostValidator: () => BoostValidator2,
|
|
12433
12456
|
ClaimHookQueryValidator: () => ClaimHookQueryValidator2,
|
|
12434
12457
|
ClaimHookTypeValidator: () => ClaimHookTypeValidator2,
|
|
@@ -12504,6 +12527,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
12504
12527
|
LCNSigningAuthorityForUserValidator: () => LCNSigningAuthorityForUserValidator2,
|
|
12505
12528
|
LCNSigningAuthorityValidator: () => LCNSigningAuthorityValidator2,
|
|
12506
12529
|
PaginatedBoostRecipientsValidator: () => PaginatedBoostRecipientsValidator2,
|
|
12530
|
+
PaginatedBoostRecipientsWithChildrenValidator: () => PaginatedBoostRecipientsWithChildrenValidator2,
|
|
12507
12531
|
PaginatedBoostsValidator: () => PaginatedBoostsValidator2,
|
|
12508
12532
|
PaginatedClaimHooksValidator: () => PaginatedClaimHooksValidator2,
|
|
12509
12533
|
PaginatedConsentFlowContractsValidator: () => PaginatedConsentFlowContractsValidator2,
|
|
@@ -17191,6 +17215,16 @@ var require_types_cjs_development = __commonJS2({
|
|
|
17191
17215
|
var PaginatedBoostRecipientsValidator2 = PaginationResponseValidator2.extend({
|
|
17192
17216
|
records: BoostRecipientValidator2.array()
|
|
17193
17217
|
});
|
|
17218
|
+
var BoostRecipientWithChildrenValidator2 = z2.object({
|
|
17219
|
+
to: LCNProfileValidator2,
|
|
17220
|
+
from: z2.string(),
|
|
17221
|
+
received: z2.string().optional(),
|
|
17222
|
+
boostUris: z2.array(z2.string()),
|
|
17223
|
+
credentialUris: z2.array(z2.string()).optional()
|
|
17224
|
+
});
|
|
17225
|
+
var PaginatedBoostRecipientsWithChildrenValidator2 = PaginationResponseValidator2.extend({
|
|
17226
|
+
records: BoostRecipientWithChildrenValidator2.array()
|
|
17227
|
+
});
|
|
17194
17228
|
var LCNBoostClaimLinkSigningAuthorityValidator2 = z2.object({
|
|
17195
17229
|
endpoint: z2.string(),
|
|
17196
17230
|
name: z2.string(),
|
|
@@ -18037,6 +18071,19 @@ var getLearnCardNetworkPlugin = /* @__PURE__ */ __name(async (learnCard, url) =>
|
|
|
18037
18071
|
query
|
|
18038
18072
|
});
|
|
18039
18073
|
},
|
|
18074
|
+
getPaginatedBoostRecipientsWithChildren: async (_learnCard, uri, limit = 25, cursor = void 0, includeUnacceptedBoosts = true, boostQuery, profileQuery, numberOfGenerations = 1) => {
|
|
18075
|
+
if (!userData)
|
|
18076
|
+
throw new Error("Please make an account first!");
|
|
18077
|
+
return client.boost.getPaginatedBoostRecipientsWithChildren.query({
|
|
18078
|
+
uri,
|
|
18079
|
+
limit,
|
|
18080
|
+
cursor,
|
|
18081
|
+
includeUnacceptedBoosts,
|
|
18082
|
+
boostQuery,
|
|
18083
|
+
profileQuery,
|
|
18084
|
+
numberOfGenerations
|
|
18085
|
+
});
|
|
18086
|
+
},
|
|
18040
18087
|
countBoostRecipients: async (_learnCard, uri, includeUnacceptedBoosts = true) => {
|
|
18041
18088
|
if (!userData)
|
|
18042
18089
|
throw new Error("Please make an account first!");
|