@learncard/network-brain-client 2.3.27 → 2.4.0
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 +18 -0
- package/dist/brain-client.cjs.development.js +21 -1
- package/dist/brain-client.cjs.development.js.map +2 -2
- package/dist/brain-client.cjs.production.min.js +1 -1
- package/dist/brain-client.cjs.production.min.js.map +3 -3
- package/dist/brain-client.esm.js +21 -1
- package/dist/brain-client.esm.js.map +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/index.ts +20 -0
package/dist/brain-client.esm.js
CHANGED
|
@@ -4410,6 +4410,7 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
4410
4410
|
controller: z.string(),
|
|
4411
4411
|
publicKeyJwk: JWKValidator.optional(),
|
|
4412
4412
|
publicKeyBase58: z.string().optional(),
|
|
4413
|
+
publicKeyMultibase: z.string().optional(),
|
|
4413
4414
|
blockChainAccountId: z.string().optional()
|
|
4414
4415
|
}).catchall(z.any())
|
|
4415
4416
|
);
|
|
@@ -4718,7 +4719,8 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
4718
4719
|
display: LCNProfileDisplayValidator.optional().describe("Display settings for the profile."),
|
|
4719
4720
|
highlightedCredentials: z.array(z.string()).max(5).optional().describe("Up to 5 unique boost URIs to highlight on the profile."),
|
|
4720
4721
|
role: z.string().default("").optional().describe('Role of the profile: e.g. "teacher", "student".'),
|
|
4721
|
-
dob: z.string().default("").optional().describe('Date of birth of the profile: e.g. "1990-01-01".')
|
|
4722
|
+
dob: z.string().default("").optional().describe('Date of birth of the profile: e.g. "1990-01-01".'),
|
|
4723
|
+
country: z.string().optional().describe("Country for the profile.")
|
|
4722
4724
|
});
|
|
4723
4725
|
var LCNProfileQueryValidator = z.object({
|
|
4724
4726
|
profileId: StringQuery,
|
|
@@ -5415,8 +5417,26 @@ var getClient = /* @__PURE__ */ __name(async (url, didAuthFunction) => {
|
|
|
5415
5417
|
});
|
|
5416
5418
|
return trpc;
|
|
5417
5419
|
}, "getClient");
|
|
5420
|
+
var getApiTokenClient = /* @__PURE__ */ __name(async (url, apiToken) => {
|
|
5421
|
+
const trpc = createTRPCClient({
|
|
5422
|
+
links: [
|
|
5423
|
+
httpBatchLink({
|
|
5424
|
+
methodOverride: "POST",
|
|
5425
|
+
url,
|
|
5426
|
+
maxURLLength: 3072,
|
|
5427
|
+
headers: { Authorization: `Bearer ${apiToken}` },
|
|
5428
|
+
transformer: {
|
|
5429
|
+
input: import_helpers.RegExpTransformer,
|
|
5430
|
+
output: { serialize: (o) => o, deserialize: (o) => o }
|
|
5431
|
+
}
|
|
5432
|
+
})
|
|
5433
|
+
]
|
|
5434
|
+
});
|
|
5435
|
+
return trpc;
|
|
5436
|
+
}, "getApiTokenClient");
|
|
5418
5437
|
var src_default = getClient;
|
|
5419
5438
|
export {
|
|
5420
5439
|
src_default as default,
|
|
5440
|
+
getApiTokenClient,
|
|
5421
5441
|
getClient
|
|
5422
5442
|
};
|