@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
package/dist/lcn-plugin.esm.js
CHANGED
|
@@ -2040,6 +2040,7 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
2040
2040
|
BoostPermissionsValidator: () => BoostPermissionsValidator2,
|
|
2041
2041
|
BoostQueryValidator: () => BoostQueryValidator2,
|
|
2042
2042
|
BoostRecipientValidator: () => BoostRecipientValidator2,
|
|
2043
|
+
BoostRecipientWithChildrenValidator: () => BoostRecipientWithChildrenValidator2,
|
|
2043
2044
|
BoostValidator: () => BoostValidator2,
|
|
2044
2045
|
ClaimHookQueryValidator: () => ClaimHookQueryValidator2,
|
|
2045
2046
|
ClaimHookTypeValidator: () => ClaimHookTypeValidator2,
|
|
@@ -2115,6 +2116,7 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
2115
2116
|
LCNSigningAuthorityForUserValidator: () => LCNSigningAuthorityForUserValidator2,
|
|
2116
2117
|
LCNSigningAuthorityValidator: () => LCNSigningAuthorityValidator2,
|
|
2117
2118
|
PaginatedBoostRecipientsValidator: () => PaginatedBoostRecipientsValidator2,
|
|
2119
|
+
PaginatedBoostRecipientsWithChildrenValidator: () => PaginatedBoostRecipientsWithChildrenValidator2,
|
|
2118
2120
|
PaginatedBoostsValidator: () => PaginatedBoostsValidator2,
|
|
2119
2121
|
PaginatedClaimHooksValidator: () => PaginatedClaimHooksValidator2,
|
|
2120
2122
|
PaginatedConsentFlowContractsValidator: () => PaginatedConsentFlowContractsValidator2,
|
|
@@ -6825,6 +6827,16 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
6825
6827
|
var PaginatedBoostRecipientsValidator2 = PaginationResponseValidator2.extend({
|
|
6826
6828
|
records: BoostRecipientValidator2.array()
|
|
6827
6829
|
});
|
|
6830
|
+
var BoostRecipientWithChildrenValidator2 = z2.object({
|
|
6831
|
+
to: LCNProfileValidator2,
|
|
6832
|
+
from: z2.string(),
|
|
6833
|
+
received: z2.string().optional(),
|
|
6834
|
+
boostUris: z2.array(z2.string()),
|
|
6835
|
+
credentialUris: z2.array(z2.string()).optional()
|
|
6836
|
+
});
|
|
6837
|
+
var PaginatedBoostRecipientsWithChildrenValidator2 = PaginationResponseValidator2.extend({
|
|
6838
|
+
records: BoostRecipientWithChildrenValidator2.array()
|
|
6839
|
+
});
|
|
6828
6840
|
var LCNBoostClaimLinkSigningAuthorityValidator2 = z2.object({
|
|
6829
6841
|
endpoint: z2.string(),
|
|
6830
6842
|
name: z2.string(),
|
|
@@ -11961,6 +11973,16 @@ var BoostRecipientValidator = z.object({
|
|
|
11961
11973
|
var PaginatedBoostRecipientsValidator = PaginationResponseValidator.extend({
|
|
11962
11974
|
records: BoostRecipientValidator.array()
|
|
11963
11975
|
});
|
|
11976
|
+
var BoostRecipientWithChildrenValidator = z.object({
|
|
11977
|
+
to: LCNProfileValidator,
|
|
11978
|
+
from: z.string(),
|
|
11979
|
+
received: z.string().optional(),
|
|
11980
|
+
boostUris: z.array(z.string()),
|
|
11981
|
+
credentialUris: z.array(z.string()).optional()
|
|
11982
|
+
});
|
|
11983
|
+
var PaginatedBoostRecipientsWithChildrenValidator = PaginationResponseValidator.extend({
|
|
11984
|
+
records: BoostRecipientWithChildrenValidator.array()
|
|
11985
|
+
});
|
|
11964
11986
|
var LCNBoostClaimLinkSigningAuthorityValidator = z.object({
|
|
11965
11987
|
endpoint: z.string(),
|
|
11966
11988
|
name: z.string(),
|
|
@@ -12404,6 +12426,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
12404
12426
|
BoostPermissionsValidator: () => BoostPermissionsValidator2,
|
|
12405
12427
|
BoostQueryValidator: () => BoostQueryValidator2,
|
|
12406
12428
|
BoostRecipientValidator: () => BoostRecipientValidator2,
|
|
12429
|
+
BoostRecipientWithChildrenValidator: () => BoostRecipientWithChildrenValidator2,
|
|
12407
12430
|
BoostValidator: () => BoostValidator2,
|
|
12408
12431
|
ClaimHookQueryValidator: () => ClaimHookQueryValidator2,
|
|
12409
12432
|
ClaimHookTypeValidator: () => ClaimHookTypeValidator2,
|
|
@@ -12479,6 +12502,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
12479
12502
|
LCNSigningAuthorityForUserValidator: () => LCNSigningAuthorityForUserValidator2,
|
|
12480
12503
|
LCNSigningAuthorityValidator: () => LCNSigningAuthorityValidator2,
|
|
12481
12504
|
PaginatedBoostRecipientsValidator: () => PaginatedBoostRecipientsValidator2,
|
|
12505
|
+
PaginatedBoostRecipientsWithChildrenValidator: () => PaginatedBoostRecipientsWithChildrenValidator2,
|
|
12482
12506
|
PaginatedBoostsValidator: () => PaginatedBoostsValidator2,
|
|
12483
12507
|
PaginatedClaimHooksValidator: () => PaginatedClaimHooksValidator2,
|
|
12484
12508
|
PaginatedConsentFlowContractsValidator: () => PaginatedConsentFlowContractsValidator2,
|
|
@@ -17166,6 +17190,16 @@ var require_types_cjs_development = __commonJS2({
|
|
|
17166
17190
|
var PaginatedBoostRecipientsValidator2 = PaginationResponseValidator2.extend({
|
|
17167
17191
|
records: BoostRecipientValidator2.array()
|
|
17168
17192
|
});
|
|
17193
|
+
var BoostRecipientWithChildrenValidator2 = z2.object({
|
|
17194
|
+
to: LCNProfileValidator2,
|
|
17195
|
+
from: z2.string(),
|
|
17196
|
+
received: z2.string().optional(),
|
|
17197
|
+
boostUris: z2.array(z2.string()),
|
|
17198
|
+
credentialUris: z2.array(z2.string()).optional()
|
|
17199
|
+
});
|
|
17200
|
+
var PaginatedBoostRecipientsWithChildrenValidator2 = PaginationResponseValidator2.extend({
|
|
17201
|
+
records: BoostRecipientWithChildrenValidator2.array()
|
|
17202
|
+
});
|
|
17169
17203
|
var LCNBoostClaimLinkSigningAuthorityValidator2 = z2.object({
|
|
17170
17204
|
endpoint: z2.string(),
|
|
17171
17205
|
name: z2.string(),
|
|
@@ -18012,6 +18046,19 @@ var getLearnCardNetworkPlugin = /* @__PURE__ */ __name(async (learnCard, url) =>
|
|
|
18012
18046
|
query
|
|
18013
18047
|
});
|
|
18014
18048
|
},
|
|
18049
|
+
getPaginatedBoostRecipientsWithChildren: async (_learnCard, uri, limit = 25, cursor = void 0, includeUnacceptedBoosts = true, boostQuery, profileQuery, numberOfGenerations = 1) => {
|
|
18050
|
+
if (!userData)
|
|
18051
|
+
throw new Error("Please make an account first!");
|
|
18052
|
+
return client.boost.getPaginatedBoostRecipientsWithChildren.query({
|
|
18053
|
+
uri,
|
|
18054
|
+
limit,
|
|
18055
|
+
cursor,
|
|
18056
|
+
includeUnacceptedBoosts,
|
|
18057
|
+
boostQuery,
|
|
18058
|
+
profileQuery,
|
|
18059
|
+
numberOfGenerations
|
|
18060
|
+
});
|
|
18061
|
+
},
|
|
18015
18062
|
countBoostRecipients: async (_learnCard, uri, includeUnacceptedBoosts = true) => {
|
|
18016
18063
|
if (!userData)
|
|
18017
18064
|
throw new Error("Please make an account first!");
|