@learncard/network-brain-client 2.1.0 → 2.1.2
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 +16 -0
- package/dist/brain-client.cjs.development.js +24 -3
- 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 +24 -3
- package/dist/brain-client.esm.js.map +2 -2
- package/dist/index.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/index.ts +8 -2
package/dist/brain-client.esm.js
CHANGED
|
@@ -133,6 +133,7 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
133
133
|
LCNNotificationTypeEnumValidator: () => LCNNotificationTypeEnumValidator,
|
|
134
134
|
LCNNotificationValidator: () => LCNNotificationValidator,
|
|
135
135
|
LCNProfileConnectionStatusEnum: () => LCNProfileConnectionStatusEnum,
|
|
136
|
+
LCNProfileDisplayValidator: () => LCNProfileDisplayValidator,
|
|
136
137
|
LCNProfileQueryValidator: () => LCNProfileQueryValidator,
|
|
137
138
|
LCNProfileValidator: () => LCNProfileValidator,
|
|
138
139
|
LCNSigningAuthorityForUserValidator: () => LCNSigningAuthorityForUserValidator,
|
|
@@ -3953,6 +3954,19 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
3953
3954
|
})
|
|
3954
3955
|
);
|
|
3955
3956
|
var StringQuery = mod.string().or(mod.object({ $in: mod.string().array() })).or(mod.object({ $regex: RegExpValidator }));
|
|
3957
|
+
var LCNProfileDisplayValidator = mod.object({
|
|
3958
|
+
backgroundColor: mod.string().optional(),
|
|
3959
|
+
backgroundImage: mod.string().optional(),
|
|
3960
|
+
fadeBackgroundImage: mod.boolean().optional(),
|
|
3961
|
+
repeatBackgroundImage: mod.boolean().optional(),
|
|
3962
|
+
fontColor: mod.string().optional(),
|
|
3963
|
+
accentColor: mod.string().optional(),
|
|
3964
|
+
accentFontColor: mod.string().optional(),
|
|
3965
|
+
idBackgroundImage: mod.string().optional(),
|
|
3966
|
+
fadeIdBackgroundImage: mod.boolean().optional(),
|
|
3967
|
+
idBackgroundColor: mod.string().optional(),
|
|
3968
|
+
repeatIdBackgroundImage: mod.boolean().optional()
|
|
3969
|
+
});
|
|
3956
3970
|
var LCNProfileValidator = mod.object({
|
|
3957
3971
|
profileId: mod.string().min(3).max(40),
|
|
3958
3972
|
displayName: mod.string().default(""),
|
|
@@ -3965,7 +3979,8 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
3965
3979
|
websiteLink: mod.string().optional(),
|
|
3966
3980
|
isServiceProfile: mod.boolean().default(false).optional(),
|
|
3967
3981
|
type: mod.string().optional(),
|
|
3968
|
-
notificationsWebhook: mod.string().url().startsWith("http").optional()
|
|
3982
|
+
notificationsWebhook: mod.string().url().startsWith("http").optional(),
|
|
3983
|
+
display: LCNProfileDisplayValidator.optional()
|
|
3969
3984
|
});
|
|
3970
3985
|
var LCNProfileQueryValidator = mod.object({
|
|
3971
3986
|
profileId: StringQuery,
|
|
@@ -4327,7 +4342,10 @@ var callbackLink = /* @__PURE__ */ __name((callback) => {
|
|
|
4327
4342
|
var getClient = /* @__PURE__ */ __name(async (url, didAuthFunction) => {
|
|
4328
4343
|
let challenges = [];
|
|
4329
4344
|
const challengeRequester = createTRPCProxyClient({
|
|
4330
|
-
transformer:
|
|
4345
|
+
transformer: {
|
|
4346
|
+
input: import_helpers.RegExpTransformer,
|
|
4347
|
+
output: { serialize: (o) => o, deserialize: (o) => o }
|
|
4348
|
+
},
|
|
4331
4349
|
links: [
|
|
4332
4350
|
httpBatchLink({
|
|
4333
4351
|
url,
|
|
@@ -4341,7 +4359,10 @@ var getClient = /* @__PURE__ */ __name(async (url, didAuthFunction) => {
|
|
|
4341
4359
|
}, "getChallenges");
|
|
4342
4360
|
challenges = await getChallenges();
|
|
4343
4361
|
const trpc = createTRPCProxyClient({
|
|
4344
|
-
transformer:
|
|
4362
|
+
transformer: {
|
|
4363
|
+
input: import_helpers.RegExpTransformer,
|
|
4364
|
+
output: { serialize: (o) => o, deserialize: (o) => o }
|
|
4365
|
+
},
|
|
4345
4366
|
links: [
|
|
4346
4367
|
callbackLink(async () => {
|
|
4347
4368
|
challenges = await getChallenges();
|