@learncard/network-plugin 2.2.0 → 2.2.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.
@@ -1289,6 +1289,7 @@ var require_helpers_cjs_development = __commonJS({
1289
1289
  LCNNotificationTypeEnumValidator: () => LCNNotificationTypeEnumValidator2,
1290
1290
  LCNNotificationValidator: () => LCNNotificationValidator2,
1291
1291
  LCNProfileConnectionStatusEnum: () => LCNProfileConnectionStatusEnum2,
1292
+ LCNProfileDisplayValidator: () => LCNProfileDisplayValidator2,
1292
1293
  LCNProfileQueryValidator: () => LCNProfileQueryValidator2,
1293
1294
  LCNProfileValidator: () => LCNProfileValidator2,
1294
1295
  LCNSigningAuthorityForUserValidator: () => LCNSigningAuthorityForUserValidator2,
@@ -5124,6 +5125,19 @@ var require_helpers_cjs_development = __commonJS({
5124
5125
  })
5125
5126
  );
5126
5127
  var StringQuery2 = mod2.string().or(mod2.object({ $in: mod2.string().array() })).or(mod2.object({ $regex: RegExpValidator2 }));
5128
+ var LCNProfileDisplayValidator2 = mod2.object({
5129
+ backgroundColor: mod2.string().optional(),
5130
+ backgroundImage: mod2.string().optional(),
5131
+ fadeBackgroundImage: mod2.boolean().optional(),
5132
+ repeatBackgroundImage: mod2.boolean().optional(),
5133
+ fontColor: mod2.string().optional(),
5134
+ accentColor: mod2.string().optional(),
5135
+ accentFontColor: mod2.string().optional(),
5136
+ idBackgroundImage: mod2.string().optional(),
5137
+ fadeIdBackgroundImage: mod2.boolean().optional(),
5138
+ idBackgroundColor: mod2.string().optional(),
5139
+ repeatIdBackgroundImage: mod2.boolean().optional()
5140
+ });
5127
5141
  var LCNProfileValidator2 = mod2.object({
5128
5142
  profileId: mod2.string().min(3).max(40),
5129
5143
  displayName: mod2.string().default(""),
@@ -5136,7 +5150,8 @@ var require_helpers_cjs_development = __commonJS({
5136
5150
  websiteLink: mod2.string().optional(),
5137
5151
  isServiceProfile: mod2.boolean().default(false).optional(),
5138
5152
  type: mod2.string().optional(),
5139
- notificationsWebhook: mod2.string().url().startsWith("http").optional()
5153
+ notificationsWebhook: mod2.string().url().startsWith("http").optional(),
5154
+ display: LCNProfileDisplayValidator2.optional()
5140
5155
  });
5141
5156
  var LCNProfileQueryValidator2 = mod2.object({
5142
5157
  profileId: StringQuery2,
@@ -5488,7 +5503,10 @@ var callbackLink = /* @__PURE__ */ __name2((callback) => {
5488
5503
  var getClient = /* @__PURE__ */ __name2(async (url, didAuthFunction) => {
5489
5504
  let challenges = [];
5490
5505
  const challengeRequester = createTRPCProxyClient({
5491
- transformer: import_helpers.RegExpTransformer,
5506
+ transformer: {
5507
+ input: import_helpers.RegExpTransformer,
5508
+ output: { serialize: (o) => o, deserialize: (o) => o }
5509
+ },
5492
5510
  links: [
5493
5511
  httpBatchLink({
5494
5512
  url,
@@ -5502,7 +5520,10 @@ var getClient = /* @__PURE__ */ __name2(async (url, didAuthFunction) => {
5502
5520
  }, "getChallenges");
5503
5521
  challenges = await getChallenges();
5504
5522
  const trpc = createTRPCProxyClient({
5505
- transformer: import_helpers.RegExpTransformer,
5523
+ transformer: {
5524
+ input: import_helpers.RegExpTransformer,
5525
+ output: { serialize: (o) => o, deserialize: (o) => o }
5526
+ },
5506
5527
  links: [
5507
5528
  callbackLink(async () => {
5508
5529
  challenges = await getChallenges();
@@ -9278,6 +9299,19 @@ var RegExpValidator = mod.instanceof(RegExp).or(
9278
9299
  })
9279
9300
  );
9280
9301
  var StringQuery = mod.string().or(mod.object({ $in: mod.string().array() })).or(mod.object({ $regex: RegExpValidator }));
9302
+ var LCNProfileDisplayValidator = mod.object({
9303
+ backgroundColor: mod.string().optional(),
9304
+ backgroundImage: mod.string().optional(),
9305
+ fadeBackgroundImage: mod.boolean().optional(),
9306
+ repeatBackgroundImage: mod.boolean().optional(),
9307
+ fontColor: mod.string().optional(),
9308
+ accentColor: mod.string().optional(),
9309
+ accentFontColor: mod.string().optional(),
9310
+ idBackgroundImage: mod.string().optional(),
9311
+ fadeIdBackgroundImage: mod.boolean().optional(),
9312
+ idBackgroundColor: mod.string().optional(),
9313
+ repeatIdBackgroundImage: mod.boolean().optional()
9314
+ });
9281
9315
  var LCNProfileValidator = mod.object({
9282
9316
  profileId: mod.string().min(3).max(40),
9283
9317
  displayName: mod.string().default(""),
@@ -9290,7 +9324,8 @@ var LCNProfileValidator = mod.object({
9290
9324
  websiteLink: mod.string().optional(),
9291
9325
  isServiceProfile: mod.boolean().default(false).optional(),
9292
9326
  type: mod.string().optional(),
9293
- notificationsWebhook: mod.string().url().startsWith("http").optional()
9327
+ notificationsWebhook: mod.string().url().startsWith("http").optional(),
9328
+ display: LCNProfileDisplayValidator.optional()
9294
9329
  });
9295
9330
  var LCNProfileQueryValidator = mod.object({
9296
9331
  profileId: StringQuery,