@mpgd/cli 0.55.0 → 0.57.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.
@@ -4601,6 +4601,12 @@ var notificationTimeFields = {
4601
4601
  NotificationConsentRecord: { at: "date-time" },
4602
4602
  NotificationNotice: noticeTimeFields,
4603
4603
  RecordNotificationNoticeInput: noticeTimeFields,
4604
+ NotificationBackendBridgeRecordConsentPayload: { record: { at: "date-time" } },
4605
+ NotificationBackendBridgeRecordConsentResult: { record: { at: "date-time" } },
4606
+ NotificationBackendBridgeListConsentResult: { records: { at: "date-time" } },
4607
+ NotificationBackendBridgeListNoticesResult: { notices: noticeTimeFields },
4608
+ NotificationBackendBridgeRecordNoticePayload: { notice: noticeTimeFields },
4609
+ NotificationBackendBridgeSetReminderPayload: { reminder: { fireAt: "date-time" } },
4604
4610
  NotificationConformanceVector: {
4605
4611
  context: { now: "date-time" },
4606
4612
  steps: {
@@ -4717,6 +4723,17 @@ var notificationBridgeMethods = Object.freeze([
4717
4723
  "notifications.v2.listLocal",
4718
4724
  "notifications.v2.openSettings"
4719
4725
  ]);
4726
+ var notificationBackendBridgeMethods = Object.freeze([
4727
+ "notifications.backend.getSession",
4728
+ "notifications.backend.recordConsent",
4729
+ "notifications.backend.listConsent",
4730
+ "notifications.backend.registerEndpoint",
4731
+ "notifications.backend.unregisterEndpoint",
4732
+ "notifications.backend.setReminder",
4733
+ "notifications.backend.cancelReminder",
4734
+ "notifications.backend.listNotices",
4735
+ "notifications.backend.recordNotice"
4736
+ ]);
4720
4737
  function withStrictTimes(what, assert, fields) {
4721
4738
  return (input) => {
4722
4739
  const value = assert(input);
@@ -5298,7 +5315,1977 @@ var assertNotificationNotice = withStrictTimes("notice", /* @__PURE__ */ (() =>
5298
5315
  path: _path + ".record",
5299
5316
  expected: _ae0,
5300
5317
  value: input.record
5301
- }, _errorFactory)) && _ao1(input.record, _path + ".record", _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
5318
+ }, _errorFactory)) && _ao1(input.record, _path + ".record", _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
5319
+ method: "typia.createAssertEquals",
5320
+ path: _path + ".record",
5321
+ expected: _ae0,
5322
+ value: input.record
5323
+ }, _errorFactory)) && ("string" === typeof input.dueBy && (_isFormatDate_1._isFormatDate(input.dueBy) || _assertGuard_1._assertGuard(_exceptionable, {
5324
+ method: "typia.createAssertEquals",
5325
+ path: _path + ".dueBy",
5326
+ expected: 'string & Format<"date">',
5327
+ value: input.dueBy
5328
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
5329
+ method: "typia.createAssertEquals",
5330
+ path: _path + ".dueBy",
5331
+ expected: '(string & Format<"date">)',
5332
+ value: input.dueBy
5333
+ }, _errorFactory)) && ("consent-result.advertising.granted" === input.variant || "consent-result.advertising.refused" === input.variant || "consent-result.advertising.withdrawn" === input.variant || "consent-result.night.granted" === input.variant || "consent-result.night.refused" === input.variant || "consent-result.night.withdrawn" === input.variant || "reconfirmation.advertising" === input.variant || "reconfirmation.night" === input.variant || _assertGuard_1._assertGuard(_exceptionable, {
5334
+ method: "typia.createAssertEquals",
5335
+ path: _path + ".variant",
5336
+ expected: _ae1,
5337
+ value: input.variant
5338
+ }, _errorFactory)) && (4 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every((key) => {
5339
+ if (["kind", "record", "dueBy", "variant"].some((prop) => key === prop))
5340
+ return true;
5341
+ const value = input[key];
5342
+ if (void 0 === value)
5343
+ return true;
5344
+ return _assertGuard_1._assertGuard(_exceptionable, {
5345
+ method: "typia.createAssertEquals",
5346
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
5347
+ expected: "undefined",
5348
+ value
5349
+ }, _errorFactory);
5350
+ })));
5351
+ const _ao1 = (input, _path, _exceptionable = true) => ("advertising" === input.kind || "night" === input.kind || _assertGuard_1._assertGuard(_exceptionable, {
5352
+ method: "typia.createAssertEquals",
5353
+ path: _path + ".kind",
5354
+ expected: '("advertising" | "night")',
5355
+ value: input.kind
5356
+ }, _errorFactory)) && ("granted" === input.state || "withdrawn" === input.state || _assertGuard_1._assertGuard(_exceptionable, {
5357
+ method: "typia.createAssertEquals",
5358
+ path: _path + ".state",
5359
+ expected: '("granted" | "withdrawn")',
5360
+ value: input.state
5361
+ }, _errorFactory)) && ("string" === typeof input.at && (_isFormatDateTime_1._isFormatDateTime(input.at) || _assertGuard_1._assertGuard(_exceptionable, {
5362
+ method: "typia.createAssertEquals",
5363
+ path: _path + ".at",
5364
+ expected: 'string & Format<"date-time">',
5365
+ value: input.at
5366
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
5367
+ method: "typia.createAssertEquals",
5368
+ path: _path + ".at",
5369
+ expected: '(string & Format<"date-time">)',
5370
+ value: input.at
5371
+ }, _errorFactory)) && (void 0 === input.textVersion || "string" === typeof input.textVersion && (1 <= input.textVersion.length || _assertGuard_1._assertGuard(_exceptionable, {
5372
+ method: "typia.createAssertEquals",
5373
+ path: _path + ".textVersion",
5374
+ expected: "string & MinLength<1>",
5375
+ value: input.textVersion
5376
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
5377
+ method: "typia.createAssertEquals",
5378
+ path: _path + ".textVersion",
5379
+ expected: "((string & MinLength<1>) | undefined)",
5380
+ value: input.textVersion
5381
+ }, _errorFactory)) && (3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every((key) => {
5382
+ if (["kind", "state", "at", "textVersion"].some((prop) => key === prop))
5383
+ return true;
5384
+ const value = input[key];
5385
+ if (void 0 === value)
5386
+ return true;
5387
+ return _assertGuard_1._assertGuard(_exceptionable, {
5388
+ method: "typia.createAssertEquals",
5389
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
5390
+ expected: "undefined",
5391
+ value
5392
+ }, _errorFactory);
5393
+ })));
5394
+ const _io0 = (input, _exceptionable = true) => ("consent-result" === input.kind || "reconfirmation" === input.kind) && ("object" === typeof input.record && null !== input.record && _io1(input.record, _exceptionable)) && ("string" === typeof input.dueBy && _isFormatDate_1._isFormatDate(input.dueBy)) && ("consent-result.advertising.granted" === input.variant || "consent-result.advertising.refused" === input.variant || "consent-result.advertising.withdrawn" === input.variant || "consent-result.night.granted" === input.variant || "consent-result.night.refused" === input.variant || "consent-result.night.withdrawn" === input.variant || "reconfirmation.advertising" === input.variant || "reconfirmation.night" === input.variant) && (4 === Object.keys(input).length || Object.keys(input).every((key) => {
5395
+ if (["kind", "record", "dueBy", "variant"].some((prop) => key === prop))
5396
+ return true;
5397
+ const value = input[key];
5398
+ if (void 0 === value)
5399
+ return true;
5400
+ return false;
5401
+ }));
5402
+ const _io1 = (input, _exceptionable = true) => ("advertising" === input.kind || "night" === input.kind) && ("granted" === input.state || "withdrawn" === input.state) && ("string" === typeof input.at && _isFormatDateTime_1._isFormatDateTime(input.at)) && (void 0 === input.textVersion || "string" === typeof input.textVersion && 1 <= input.textVersion.length) && (3 === Object.keys(input).length || Object.keys(input).every((key) => {
5403
+ if (["kind", "state", "at", "textVersion"].some((prop) => key === prop))
5404
+ return true;
5405
+ const value = input[key];
5406
+ if (void 0 === value)
5407
+ return true;
5408
+ return false;
5409
+ }));
5410
+ const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && _io0(input, true);
5411
+ let _errorFactory;
5412
+ return (input, errorFactory) => {
5413
+ if (false === __is(input)) {
5414
+ _errorFactory = errorFactory;
5415
+ ((input2, _path, _exceptionable = true) => ("object" === typeof input2 && null !== input2 || _assertGuard_1._assertGuard(true, {
5416
+ method: "typia.createAssertEquals",
5417
+ path: _path + "",
5418
+ expected: "NotificationNotice",
5419
+ value: input2
5420
+ }, _errorFactory)) && _ao0(input2, _path + "", true) || _assertGuard_1._assertGuard(true, {
5421
+ method: "typia.createAssertEquals",
5422
+ path: _path + "",
5423
+ expected: "NotificationNotice",
5424
+ value: input2
5425
+ }, _errorFactory))(input, "$input", true);
5426
+ }
5427
+ return input;
5428
+ };
5429
+ })(), notificationTimeFields.NotificationNotice);
5430
+ var assertRecordNotificationNoticeInput = withStrictTimes("notice to record", /* @__PURE__ */ (() => {
5431
+ const _ae0 = '{ readonly kind: "advertising" | "night"; readonly state: "granted" | "withdrawn"; readonly at: IsoDateTime; readonly textVersion?: NonEmptyString; }';
5432
+ const _ae1 = '("consent-result.advertising.granted" | "consent-result.advertising.refused" | "consent-result.advertising.withdrawn" | "consent-result.night.granted" | "consent-result.night.refused" | "consent-result.night.withdrawn" | "reconfirmation.advertising" | "reconfirmation.night")';
5433
+ const _ao0 = (input, _path, _exceptionable = true) => ("consent-result" === input.kind || "reconfirmation" === input.kind || _assertGuard_1._assertGuard(_exceptionable, {
5434
+ method: "typia.createAssertEquals",
5435
+ path: _path + ".kind",
5436
+ expected: '("consent-result" | "reconfirmation")',
5437
+ value: input.kind
5438
+ }, _errorFactory)) && (("object" === typeof input.record && null !== input.record || _assertGuard_1._assertGuard(_exceptionable, {
5439
+ method: "typia.createAssertEquals",
5440
+ path: _path + ".record",
5441
+ expected: _ae0,
5442
+ value: input.record
5443
+ }, _errorFactory)) && _ao1(input.record, _path + ".record", _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
5444
+ method: "typia.createAssertEquals",
5445
+ path: _path + ".record",
5446
+ expected: _ae0,
5447
+ value: input.record
5448
+ }, _errorFactory)) && ("string" === typeof input.dueBy && (_isFormatDate_1._isFormatDate(input.dueBy) || _assertGuard_1._assertGuard(_exceptionable, {
5449
+ method: "typia.createAssertEquals",
5450
+ path: _path + ".dueBy",
5451
+ expected: 'string & Format<"date">',
5452
+ value: input.dueBy
5453
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
5454
+ method: "typia.createAssertEquals",
5455
+ path: _path + ".dueBy",
5456
+ expected: '(string & Format<"date">)',
5457
+ value: input.dueBy
5458
+ }, _errorFactory)) && ("consent-result.advertising.granted" === input.variant || "consent-result.advertising.refused" === input.variant || "consent-result.advertising.withdrawn" === input.variant || "consent-result.night.granted" === input.variant || "consent-result.night.refused" === input.variant || "consent-result.night.withdrawn" === input.variant || "reconfirmation.advertising" === input.variant || "reconfirmation.night" === input.variant || _assertGuard_1._assertGuard(_exceptionable, {
5459
+ method: "typia.createAssertEquals",
5460
+ path: _path + ".variant",
5461
+ expected: _ae1,
5462
+ value: input.variant
5463
+ }, _errorFactory)) && (4 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every((key) => {
5464
+ if (["kind", "record", "dueBy", "variant"].some((prop) => key === prop))
5465
+ return true;
5466
+ const value = input[key];
5467
+ if (void 0 === value)
5468
+ return true;
5469
+ return _assertGuard_1._assertGuard(_exceptionable, {
5470
+ method: "typia.createAssertEquals",
5471
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
5472
+ expected: "undefined",
5473
+ value
5474
+ }, _errorFactory);
5475
+ })));
5476
+ const _ao1 = (input, _path, _exceptionable = true) => ("advertising" === input.kind || "night" === input.kind || _assertGuard_1._assertGuard(_exceptionable, {
5477
+ method: "typia.createAssertEquals",
5478
+ path: _path + ".kind",
5479
+ expected: '("advertising" | "night")',
5480
+ value: input.kind
5481
+ }, _errorFactory)) && ("granted" === input.state || "withdrawn" === input.state || _assertGuard_1._assertGuard(_exceptionable, {
5482
+ method: "typia.createAssertEquals",
5483
+ path: _path + ".state",
5484
+ expected: '("granted" | "withdrawn")',
5485
+ value: input.state
5486
+ }, _errorFactory)) && ("string" === typeof input.at && (_isFormatDateTime_1._isFormatDateTime(input.at) || _assertGuard_1._assertGuard(_exceptionable, {
5487
+ method: "typia.createAssertEquals",
5488
+ path: _path + ".at",
5489
+ expected: 'string & Format<"date-time">',
5490
+ value: input.at
5491
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
5492
+ method: "typia.createAssertEquals",
5493
+ path: _path + ".at",
5494
+ expected: '(string & Format<"date-time">)',
5495
+ value: input.at
5496
+ }, _errorFactory)) && (void 0 === input.textVersion || "string" === typeof input.textVersion && (1 <= input.textVersion.length || _assertGuard_1._assertGuard(_exceptionable, {
5497
+ method: "typia.createAssertEquals",
5498
+ path: _path + ".textVersion",
5499
+ expected: "string & MinLength<1>",
5500
+ value: input.textVersion
5501
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
5502
+ method: "typia.createAssertEquals",
5503
+ path: _path + ".textVersion",
5504
+ expected: "((string & MinLength<1>) | undefined)",
5505
+ value: input.textVersion
5506
+ }, _errorFactory)) && (3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every((key) => {
5507
+ if (["kind", "state", "at", "textVersion"].some((prop) => key === prop))
5508
+ return true;
5509
+ const value = input[key];
5510
+ if (void 0 === value)
5511
+ return true;
5512
+ return _assertGuard_1._assertGuard(_exceptionable, {
5513
+ method: "typia.createAssertEquals",
5514
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
5515
+ expected: "undefined",
5516
+ value
5517
+ }, _errorFactory);
5518
+ })));
5519
+ const _ao2 = (input, _path, _exceptionable = true) => ("consent-result" === input.kind || "reconfirmation" === input.kind || _assertGuard_1._assertGuard(_exceptionable, {
5520
+ method: "typia.createAssertEquals",
5521
+ path: _path + ".kind",
5522
+ expected: '("consent-result" | "reconfirmation")',
5523
+ value: input.kind
5524
+ }, _errorFactory)) && (("object" === typeof input.record && null !== input.record || _assertGuard_1._assertGuard(_exceptionable, {
5525
+ method: "typia.createAssertEquals",
5526
+ path: _path + ".record",
5527
+ expected: '{ readonly kind: "advertising" | "night"; readonly at: IsoDateTime; }',
5528
+ value: input.record
5529
+ }, _errorFactory)) && _ao3(input.record, _path + ".record", _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
5530
+ method: "typia.createAssertEquals",
5531
+ path: _path + ".record",
5532
+ expected: '{ readonly kind: "advertising" | "night"; readonly at: IsoDateTime; }',
5533
+ value: input.record
5534
+ }, _errorFactory)) && ("string" === typeof input.dueBy && (_isFormatDate_1._isFormatDate(input.dueBy) || _assertGuard_1._assertGuard(_exceptionable, {
5535
+ method: "typia.createAssertEquals",
5536
+ path: _path + ".dueBy",
5537
+ expected: 'string & Format<"date">',
5538
+ value: input.dueBy
5539
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
5540
+ method: "typia.createAssertEquals",
5541
+ path: _path + ".dueBy",
5542
+ expected: '(string & Format<"date">)',
5543
+ value: input.dueBy
5544
+ }, _errorFactory)) && (3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every((key) => {
5545
+ if (["kind", "record", "dueBy"].some((prop) => key === prop))
5546
+ return true;
5547
+ const value = input[key];
5548
+ if (void 0 === value)
5549
+ return true;
5550
+ return _assertGuard_1._assertGuard(_exceptionable, {
5551
+ method: "typia.createAssertEquals",
5552
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
5553
+ expected: "undefined",
5554
+ value
5555
+ }, _errorFactory);
5556
+ })));
5557
+ const _ao3 = (input, _path, _exceptionable = true) => ("advertising" === input.kind || "night" === input.kind || _assertGuard_1._assertGuard(_exceptionable, {
5558
+ method: "typia.createAssertEquals",
5559
+ path: _path + ".kind",
5560
+ expected: '("advertising" | "night")',
5561
+ value: input.kind
5562
+ }, _errorFactory)) && ("string" === typeof input.at && (_isFormatDateTime_1._isFormatDateTime(input.at) || _assertGuard_1._assertGuard(_exceptionable, {
5563
+ method: "typia.createAssertEquals",
5564
+ path: _path + ".at",
5565
+ expected: 'string & Format<"date-time">',
5566
+ value: input.at
5567
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
5568
+ method: "typia.createAssertEquals",
5569
+ path: _path + ".at",
5570
+ expected: '(string & Format<"date-time">)',
5571
+ value: input.at
5572
+ }, _errorFactory)) && (2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every((key) => {
5573
+ if (["kind", "at"].some((prop) => key === prop))
5574
+ return true;
5575
+ const value = input[key];
5576
+ if (void 0 === value)
5577
+ return true;
5578
+ return _assertGuard_1._assertGuard(_exceptionable, {
5579
+ method: "typia.createAssertEquals",
5580
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
5581
+ expected: "undefined",
5582
+ value
5583
+ }, _errorFactory);
5584
+ })));
5585
+ const _au0 = (input, _path, _exceptionable = true) => (() => {
5586
+ if (void 0 !== input.variant)
5587
+ return _ao0(input, _path, _exceptionable);
5588
+ else
5589
+ return _ao2(input, _path, _exceptionable);
5590
+ })();
5591
+ const _io0 = (input, _exceptionable = true) => ("consent-result" === input.kind || "reconfirmation" === input.kind) && ("object" === typeof input.record && null !== input.record && _io1(input.record, _exceptionable)) && ("string" === typeof input.dueBy && _isFormatDate_1._isFormatDate(input.dueBy)) && ("consent-result.advertising.granted" === input.variant || "consent-result.advertising.refused" === input.variant || "consent-result.advertising.withdrawn" === input.variant || "consent-result.night.granted" === input.variant || "consent-result.night.refused" === input.variant || "consent-result.night.withdrawn" === input.variant || "reconfirmation.advertising" === input.variant || "reconfirmation.night" === input.variant) && (4 === Object.keys(input).length || Object.keys(input).every((key) => {
5592
+ if (["kind", "record", "dueBy", "variant"].some((prop) => key === prop))
5593
+ return true;
5594
+ const value = input[key];
5595
+ if (void 0 === value)
5596
+ return true;
5597
+ return false;
5598
+ }));
5599
+ const _io1 = (input, _exceptionable = true) => ("advertising" === input.kind || "night" === input.kind) && ("granted" === input.state || "withdrawn" === input.state) && ("string" === typeof input.at && _isFormatDateTime_1._isFormatDateTime(input.at)) && (void 0 === input.textVersion || "string" === typeof input.textVersion && 1 <= input.textVersion.length) && (3 === Object.keys(input).length || Object.keys(input).every((key) => {
5600
+ if (["kind", "state", "at", "textVersion"].some((prop) => key === prop))
5601
+ return true;
5602
+ const value = input[key];
5603
+ if (void 0 === value)
5604
+ return true;
5605
+ return false;
5606
+ }));
5607
+ const _io2 = (input, _exceptionable = true) => ("consent-result" === input.kind || "reconfirmation" === input.kind) && ("object" === typeof input.record && null !== input.record && _io3(input.record, _exceptionable)) && ("string" === typeof input.dueBy && _isFormatDate_1._isFormatDate(input.dueBy)) && (3 === Object.keys(input).length || Object.keys(input).every((key) => {
5608
+ if (["kind", "record", "dueBy"].some((prop) => key === prop))
5609
+ return true;
5610
+ const value = input[key];
5611
+ if (void 0 === value)
5612
+ return true;
5613
+ return false;
5614
+ }));
5615
+ const _io3 = (input, _exceptionable = true) => ("advertising" === input.kind || "night" === input.kind) && ("string" === typeof input.at && _isFormatDateTime_1._isFormatDateTime(input.at)) && (2 === Object.keys(input).length || Object.keys(input).every((key) => {
5616
+ if (["kind", "at"].some((prop) => key === prop))
5617
+ return true;
5618
+ const value = input[key];
5619
+ if (void 0 === value)
5620
+ return true;
5621
+ return false;
5622
+ }));
5623
+ const _iu0 = (input, _exceptionable = true) => (() => {
5624
+ if (void 0 !== input.variant)
5625
+ return _io0(input, _exceptionable);
5626
+ else
5627
+ return _io2(input, _exceptionable);
5628
+ })();
5629
+ const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && _iu0(input, true);
5630
+ let _errorFactory;
5631
+ return (input, errorFactory) => {
5632
+ if (false === __is(input)) {
5633
+ _errorFactory = errorFactory;
5634
+ ((input2, _path, _exceptionable = true) => ("object" === typeof input2 && null !== input2 || _assertGuard_1._assertGuard(true, {
5635
+ method: "typia.createAssertEquals",
5636
+ path: _path + "",
5637
+ expected: "(NotificationNotice | NotificationNoticeIdentity)",
5638
+ value: input2
5639
+ }, _errorFactory)) && _au0(input2, _path + "", true) || _assertGuard_1._assertGuard(true, {
5640
+ method: "typia.createAssertEquals",
5641
+ path: _path + "",
5642
+ expected: "(NotificationNotice | NotificationNoticeIdentity)",
5643
+ value: input2
5644
+ }, _errorFactory))(input, "$input", true);
5645
+ }
5646
+ return input;
5647
+ };
5648
+ })(), notificationTimeFields.RecordNotificationNoticeInput);
5649
+ var assertNotificationBridgeListLocalResult = withStrictTimes("listLocal result", /* @__PURE__ */ (() => {
5650
+ const _ao0 = (input, _path, _exceptionable = true) => ((Array.isArray(input.pending) || _assertGuard_1._assertGuard(_exceptionable, {
5651
+ method: "typia.createAssertEquals",
5652
+ path: _path + ".pending",
5653
+ expected: "ReadonlyArray<LocalNotificationEntry>",
5654
+ value: input.pending
5655
+ }, _errorFactory)) && input.pending.every((elem, _index2) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
5656
+ method: "typia.createAssertEquals",
5657
+ path: _path + ".pending[" + _index2 + "]",
5658
+ expected: "LocalNotificationEntry",
5659
+ value: elem
5660
+ }, _errorFactory)) && _ao1(elem, _path + ".pending[" + _index2 + "]", _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
5661
+ method: "typia.createAssertEquals",
5662
+ path: _path + ".pending[" + _index2 + "]",
5663
+ expected: "LocalNotificationEntry",
5664
+ value: elem
5665
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
5666
+ method: "typia.createAssertEquals",
5667
+ path: _path + ".pending",
5668
+ expected: "ReadonlyArray<LocalNotificationEntry>",
5669
+ value: input.pending
5670
+ }, _errorFactory)) && (1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every((key) => {
5671
+ if (["pending"].some((prop) => key === prop))
5672
+ return true;
5673
+ const value = input[key];
5674
+ if (void 0 === value)
5675
+ return true;
5676
+ return _assertGuard_1._assertGuard(_exceptionable, {
5677
+ method: "typia.createAssertEquals",
5678
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
5679
+ expected: "undefined",
5680
+ value
5681
+ }, _errorFactory);
5682
+ })));
5683
+ const _ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.key && (1 <= input.key.length || _assertGuard_1._assertGuard(_exceptionable, {
5684
+ method: "typia.createAssertEquals",
5685
+ path: _path + ".key",
5686
+ expected: "string & CommerceMinLength<1>",
5687
+ value: input.key
5688
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
5689
+ method: "typia.createAssertEquals",
5690
+ path: _path + ".key",
5691
+ expected: "(string & CommerceMinLength<1>)",
5692
+ value: input.key
5693
+ }, _errorFactory)) && ("string" === typeof input.topic || _assertGuard_1._assertGuard(_exceptionable, {
5694
+ method: "typia.createAssertEquals",
5695
+ path: _path + ".topic",
5696
+ expected: "string",
5697
+ value: input.topic
5698
+ }, _errorFactory)) && ("string" === typeof input.fireAt && (_isFormatDateTime_1._isFormatDateTime(input.fireAt) || _assertGuard_1._assertGuard(_exceptionable, {
5699
+ method: "typia.createAssertEquals",
5700
+ path: _path + ".fireAt",
5701
+ expected: "string & CommerceDateTimeFormat",
5702
+ value: input.fireAt
5703
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
5704
+ method: "typia.createAssertEquals",
5705
+ path: _path + ".fireAt",
5706
+ expected: "(string & CommerceDateTimeFormat)",
5707
+ value: input.fireAt
5708
+ }, _errorFactory)) && (3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every((key) => {
5709
+ if (["key", "topic", "fireAt"].some((prop) => key === prop))
5710
+ return true;
5711
+ const value = input[key];
5712
+ if (void 0 === value)
5713
+ return true;
5714
+ return _assertGuard_1._assertGuard(_exceptionable, {
5715
+ method: "typia.createAssertEquals",
5716
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
5717
+ expected: "undefined",
5718
+ value
5719
+ }, _errorFactory);
5720
+ })));
5721
+ const _io0 = (input, _exceptionable = true) => Array.isArray(input.pending) && input.pending.every((elem, _index1) => "object" === typeof elem && null !== elem && _io1(elem, _exceptionable)) && (1 === Object.keys(input).length || Object.keys(input).every((key) => {
5722
+ if (["pending"].some((prop) => key === prop))
5723
+ return true;
5724
+ const value = input[key];
5725
+ if (void 0 === value)
5726
+ return true;
5727
+ return false;
5728
+ }));
5729
+ const _io1 = (input, _exceptionable = true) => "string" === typeof input.key && 1 <= input.key.length && "string" === typeof input.topic && ("string" === typeof input.fireAt && _isFormatDateTime_1._isFormatDateTime(input.fireAt)) && (3 === Object.keys(input).length || Object.keys(input).every((key) => {
5730
+ if (["key", "topic", "fireAt"].some((prop) => key === prop))
5731
+ return true;
5732
+ const value = input[key];
5733
+ if (void 0 === value)
5734
+ return true;
5735
+ return false;
5736
+ }));
5737
+ const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && _io0(input, true);
5738
+ let _errorFactory;
5739
+ return (input, errorFactory) => {
5740
+ if (false === __is(input)) {
5741
+ _errorFactory = errorFactory;
5742
+ ((input2, _path, _exceptionable = true) => ("object" === typeof input2 && null !== input2 || _assertGuard_1._assertGuard(true, {
5743
+ method: "typia.createAssertEquals",
5744
+ path: _path + "",
5745
+ expected: "NotificationBridgeListLocalResult",
5746
+ value: input2
5747
+ }, _errorFactory)) && _ao0(input2, _path + "", true) || _assertGuard_1._assertGuard(true, {
5748
+ method: "typia.createAssertEquals",
5749
+ path: _path + "",
5750
+ expected: "NotificationBridgeListLocalResult",
5751
+ value: input2
5752
+ }, _errorFactory))(input, "$input", true);
5753
+ }
5754
+ return input;
5755
+ };
5756
+ })(), notificationTimeFields.NotificationBridgeListLocalResult);
5757
+ var assertNotificationBackendBridgeRecordConsentPayload = withStrictTimes("recordConsent payload", /* @__PURE__ */ (() => {
5758
+ const _ae0 = '({ readonly kind: "advertising" | "night"; readonly topic?: never; readonly state: "granted" | "withdrawn"; readonly source: "player"; readonly at: IsoDateTime; readonly evidence?: never; readonly textVersion: NonEmptyString; } | { readonly kind: "delivery-permission"; readonly topic?: never; readonly state: NotificationRecordablePermissionState; readonly source: "client-report" | "player"; readonly at: IsoDateTime; readonly evidence?: PlatformEvidenceEnvelope; readonly textVersion?: never; } | { readonly kind: "host-agreement"; readonly topic: NonEmptyString; readonly state: NotificationRecordablePermissionState; readonly source: "client-report" | "provider"; readonly at: IsoDateTime; readonly evidence?: PlatformEvidenceEnvelope; readonly textVersion?: never; } | { readonly kind: "topic-preference"; readonly topic: NonEmptyString; readonly state: "granted" | "withdrawn"; readonly source: "player"; readonly at: IsoDateTime; readonly evidence?: never; readonly textVersion?: never; })';
5759
+ const _ae1 = '({ readonly kind: "advertising" | "night"; readonly topic?: never; readonly state: "granted" | "withdrawn"; readonly source: "player"; readonly at: IsoDateTime; readonly evidence?: never; readonly textVersion: NonEmptyString; } | { readonly kind: "topic-preference"; readonly topic: NonEmptyString; readonly state: "granted" | "withdrawn"; readonly source: "player"; readonly at: IsoDateTime; readonly evidence?: never; readonly textVersion?: never; } | { readonly kind: "host-agreement"; readonly topic: NonEmptyString; readonly state: NotificationRecordablePermissionState; readonly source: "client-report" | "provider"; readonly at: IsoDateTime; readonly evidence?: PlatformEvidenceEnvelope; readonly textVersion?: never; } | { readonly kind: "delivery-permission"; readonly topic?: never; readonly state: NotificationRecordablePermissionState; readonly source: "client-report" | "player"; readonly at: IsoDateTime; readonly evidence?: PlatformEvidenceEnvelope; readonly textVersion?: never; })';
5760
+ const _ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.expectedPlayer && (1 <= input.expectedPlayer.length || _assertGuard_1._assertGuard(_exceptionable, {
5761
+ method: "typia.createAssertEquals",
5762
+ path: _path + ".expectedPlayer",
5763
+ expected: "string & MinLength<1>",
5764
+ value: input.expectedPlayer
5765
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
5766
+ method: "typia.createAssertEquals",
5767
+ path: _path + ".expectedPlayer",
5768
+ expected: "(string & MinLength<1>)",
5769
+ value: input.expectedPlayer
5770
+ }, _errorFactory)) && (("object" === typeof input.record && null !== input.record || _assertGuard_1._assertGuard(_exceptionable, {
5771
+ method: "typia.createAssertEquals",
5772
+ path: _path + ".record",
5773
+ expected: _ae0,
5774
+ value: input.record
5775
+ }, _errorFactory)) && _au0(input.record, _path + ".record", _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
5776
+ method: "typia.createAssertEquals",
5777
+ path: _path + ".record",
5778
+ expected: _ae0,
5779
+ value: input.record
5780
+ }, _errorFactory)) && (2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every((key) => {
5781
+ if (["expectedPlayer", "record"].some((prop) => key === prop))
5782
+ return true;
5783
+ const value = input[key];
5784
+ if (void 0 === value)
5785
+ return true;
5786
+ return _assertGuard_1._assertGuard(_exceptionable, {
5787
+ method: "typia.createAssertEquals",
5788
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
5789
+ expected: "undefined",
5790
+ value
5791
+ }, _errorFactory);
5792
+ })));
5793
+ const _ao1 = (input, _path, _exceptionable = true) => ("delivery-permission" === input.kind || _assertGuard_1._assertGuard(_exceptionable, {
5794
+ method: "typia.createAssertEquals",
5795
+ path: _path + ".kind",
5796
+ expected: '"delivery-permission"',
5797
+ value: input.kind
5798
+ }, _errorFactory)) && ((null !== input.topic || _assertGuard_1._assertGuard(_exceptionable, {
5799
+ method: "typia.createAssertEquals",
5800
+ path: _path + ".topic",
5801
+ expected: "undefined",
5802
+ value: input.topic
5803
+ }, _errorFactory)) && (void 0 === input.topic || _assertGuard_1._assertGuard(_exceptionable, {
5804
+ method: "typia.createAssertEquals",
5805
+ path: _path + ".topic",
5806
+ expected: "undefined",
5807
+ value: input.topic
5808
+ }, _errorFactory))) && ("blocked" === input.state || "denied" === input.state || "granted" === input.state || "prompt-with-rationale" === input.state || _assertGuard_1._assertGuard(_exceptionable, {
5809
+ method: "typia.createAssertEquals",
5810
+ path: _path + ".state",
5811
+ expected: '("blocked" | "denied" | "granted" | "prompt-with-rationale")',
5812
+ value: input.state
5813
+ }, _errorFactory)) && ("client-report" === input.source || "player" === input.source || _assertGuard_1._assertGuard(_exceptionable, {
5814
+ method: "typia.createAssertEquals",
5815
+ path: _path + ".source",
5816
+ expected: '("client-report" | "player")',
5817
+ value: input.source
5818
+ }, _errorFactory)) && ("string" === typeof input.at && (_isFormatDateTime_1._isFormatDateTime(input.at) || _assertGuard_1._assertGuard(_exceptionable, {
5819
+ method: "typia.createAssertEquals",
5820
+ path: _path + ".at",
5821
+ expected: 'string & Format<"date-time">',
5822
+ value: input.at
5823
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
5824
+ method: "typia.createAssertEquals",
5825
+ path: _path + ".at",
5826
+ expected: '(string & Format<"date-time">)',
5827
+ value: input.at
5828
+ }, _errorFactory)) && (void 0 === input.evidence || ("object" === typeof input.evidence && null !== input.evidence || _assertGuard_1._assertGuard(_exceptionable, {
5829
+ method: "typia.createAssertEquals",
5830
+ path: _path + ".evidence",
5831
+ expected: "(PlatformEvidenceEnvelope | undefined)",
5832
+ value: input.evidence
5833
+ }, _errorFactory)) && _ao2(input.evidence, _path + ".evidence", _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
5834
+ method: "typia.createAssertEquals",
5835
+ path: _path + ".evidence",
5836
+ expected: "(PlatformEvidenceEnvelope | undefined)",
5837
+ value: input.evidence
5838
+ }, _errorFactory)) && ((null !== input.textVersion || _assertGuard_1._assertGuard(_exceptionable, {
5839
+ method: "typia.createAssertEquals",
5840
+ path: _path + ".textVersion",
5841
+ expected: "undefined",
5842
+ value: input.textVersion
5843
+ }, _errorFactory)) && (void 0 === input.textVersion || _assertGuard_1._assertGuard(_exceptionable, {
5844
+ method: "typia.createAssertEquals",
5845
+ path: _path + ".textVersion",
5846
+ expected: "undefined",
5847
+ value: input.textVersion
5848
+ }, _errorFactory))) && (4 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every((key) => {
5849
+ if (["kind", "topic", "state", "source", "at", "evidence", "textVersion"].some((prop) => key === prop))
5850
+ return true;
5851
+ const value = input[key];
5852
+ if (void 0 === value)
5853
+ return true;
5854
+ return _assertGuard_1._assertGuard(_exceptionable, {
5855
+ method: "typia.createAssertEquals",
5856
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
5857
+ expected: "undefined",
5858
+ value
5859
+ }, _errorFactory);
5860
+ })));
5861
+ const _ao2 = (input, _path, _exceptionable = true) => ("string" === typeof input.schema || _assertGuard_1._assertGuard(_exceptionable, {
5862
+ method: "typia.createAssertEquals",
5863
+ path: _path + ".schema",
5864
+ expected: "string",
5865
+ value: input.schema
5866
+ }, _errorFactory)) && (("object" === typeof input.payload && null !== input.payload && false === Array.isArray(input.payload) || _assertGuard_1._assertGuard(_exceptionable, {
5867
+ method: "typia.createAssertEquals",
5868
+ path: _path + ".payload",
5869
+ expected: "Readonly<Record<string, string | number | boolean>>",
5870
+ value: input.payload
5871
+ }, _errorFactory)) && _ao3(input.payload, _path + ".payload", _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
5872
+ method: "typia.createAssertEquals",
5873
+ path: _path + ".payload",
5874
+ expected: "Readonly<Record<string, string | number | boolean>>",
5875
+ value: input.payload
5876
+ }, _errorFactory)) && (2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every((key) => {
5877
+ if (["schema", "payload"].some((prop) => key === prop))
5878
+ return true;
5879
+ const value = input[key];
5880
+ if (void 0 === value)
5881
+ return true;
5882
+ return _assertGuard_1._assertGuard(_exceptionable, {
5883
+ method: "typia.createAssertEquals",
5884
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
5885
+ expected: "undefined",
5886
+ value
5887
+ }, _errorFactory);
5888
+ })));
5889
+ const _ao3 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every((key) => {
5890
+ const value = input[key];
5891
+ if (void 0 === value)
5892
+ return true;
5893
+ return "string" === typeof value || "number" === typeof value || "boolean" === typeof value || _assertGuard_1._assertGuard(_exceptionable, {
5894
+ method: "typia.createAssertEquals",
5895
+ path: _path + __typia_transform__accessExpressionAsString(key),
5896
+ expected: "(boolean | number | string)",
5897
+ value
5898
+ }, _errorFactory);
5899
+ });
5900
+ const _ao4 = (input, _path, _exceptionable = true) => ("host-agreement" === input.kind || _assertGuard_1._assertGuard(_exceptionable, {
5901
+ method: "typia.createAssertEquals",
5902
+ path: _path + ".kind",
5903
+ expected: '"host-agreement"',
5904
+ value: input.kind
5905
+ }, _errorFactory)) && ("string" === typeof input.topic && (1 <= input.topic.length || _assertGuard_1._assertGuard(_exceptionable, {
5906
+ method: "typia.createAssertEquals",
5907
+ path: _path + ".topic",
5908
+ expected: "string & MinLength<1>",
5909
+ value: input.topic
5910
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
5911
+ method: "typia.createAssertEquals",
5912
+ path: _path + ".topic",
5913
+ expected: "(string & MinLength<1>)",
5914
+ value: input.topic
5915
+ }, _errorFactory)) && ("blocked" === input.state || "denied" === input.state || "granted" === input.state || "prompt-with-rationale" === input.state || _assertGuard_1._assertGuard(_exceptionable, {
5916
+ method: "typia.createAssertEquals",
5917
+ path: _path + ".state",
5918
+ expected: '("blocked" | "denied" | "granted" | "prompt-with-rationale")',
5919
+ value: input.state
5920
+ }, _errorFactory)) && ("client-report" === input.source || "provider" === input.source || _assertGuard_1._assertGuard(_exceptionable, {
5921
+ method: "typia.createAssertEquals",
5922
+ path: _path + ".source",
5923
+ expected: '("client-report" | "provider")',
5924
+ value: input.source
5925
+ }, _errorFactory)) && ("string" === typeof input.at && (_isFormatDateTime_1._isFormatDateTime(input.at) || _assertGuard_1._assertGuard(_exceptionable, {
5926
+ method: "typia.createAssertEquals",
5927
+ path: _path + ".at",
5928
+ expected: 'string & Format<"date-time">',
5929
+ value: input.at
5930
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
5931
+ method: "typia.createAssertEquals",
5932
+ path: _path + ".at",
5933
+ expected: '(string & Format<"date-time">)',
5934
+ value: input.at
5935
+ }, _errorFactory)) && (void 0 === input.evidence || ("object" === typeof input.evidence && null !== input.evidence || _assertGuard_1._assertGuard(_exceptionable, {
5936
+ method: "typia.createAssertEquals",
5937
+ path: _path + ".evidence",
5938
+ expected: "(PlatformEvidenceEnvelope | undefined)",
5939
+ value: input.evidence
5940
+ }, _errorFactory)) && _ao2(input.evidence, _path + ".evidence", _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
5941
+ method: "typia.createAssertEquals",
5942
+ path: _path + ".evidence",
5943
+ expected: "(PlatformEvidenceEnvelope | undefined)",
5944
+ value: input.evidence
5945
+ }, _errorFactory)) && ((null !== input.textVersion || _assertGuard_1._assertGuard(_exceptionable, {
5946
+ method: "typia.createAssertEquals",
5947
+ path: _path + ".textVersion",
5948
+ expected: "undefined",
5949
+ value: input.textVersion
5950
+ }, _errorFactory)) && (void 0 === input.textVersion || _assertGuard_1._assertGuard(_exceptionable, {
5951
+ method: "typia.createAssertEquals",
5952
+ path: _path + ".textVersion",
5953
+ expected: "undefined",
5954
+ value: input.textVersion
5955
+ }, _errorFactory))) && (5 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every((key) => {
5956
+ if (["kind", "topic", "state", "source", "at", "evidence", "textVersion"].some((prop) => key === prop))
5957
+ return true;
5958
+ const value = input[key];
5959
+ if (void 0 === value)
5960
+ return true;
5961
+ return _assertGuard_1._assertGuard(_exceptionable, {
5962
+ method: "typia.createAssertEquals",
5963
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
5964
+ expected: "undefined",
5965
+ value
5966
+ }, _errorFactory);
5967
+ })));
5968
+ const _ao5 = (input, _path, _exceptionable = true) => ("topic-preference" === input.kind || _assertGuard_1._assertGuard(_exceptionable, {
5969
+ method: "typia.createAssertEquals",
5970
+ path: _path + ".kind",
5971
+ expected: '"topic-preference"',
5972
+ value: input.kind
5973
+ }, _errorFactory)) && ("string" === typeof input.topic && (1 <= input.topic.length || _assertGuard_1._assertGuard(_exceptionable, {
5974
+ method: "typia.createAssertEquals",
5975
+ path: _path + ".topic",
5976
+ expected: "string & MinLength<1>",
5977
+ value: input.topic
5978
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
5979
+ method: "typia.createAssertEquals",
5980
+ path: _path + ".topic",
5981
+ expected: "(string & MinLength<1>)",
5982
+ value: input.topic
5983
+ }, _errorFactory)) && ("granted" === input.state || "withdrawn" === input.state || _assertGuard_1._assertGuard(_exceptionable, {
5984
+ method: "typia.createAssertEquals",
5985
+ path: _path + ".state",
5986
+ expected: '("granted" | "withdrawn")',
5987
+ value: input.state
5988
+ }, _errorFactory)) && ("player" === input.source || _assertGuard_1._assertGuard(_exceptionable, {
5989
+ method: "typia.createAssertEquals",
5990
+ path: _path + ".source",
5991
+ expected: '"player"',
5992
+ value: input.source
5993
+ }, _errorFactory)) && ("string" === typeof input.at && (_isFormatDateTime_1._isFormatDateTime(input.at) || _assertGuard_1._assertGuard(_exceptionable, {
5994
+ method: "typia.createAssertEquals",
5995
+ path: _path + ".at",
5996
+ expected: 'string & Format<"date-time">',
5997
+ value: input.at
5998
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
5999
+ method: "typia.createAssertEquals",
6000
+ path: _path + ".at",
6001
+ expected: '(string & Format<"date-time">)',
6002
+ value: input.at
6003
+ }, _errorFactory)) && ((null !== input.evidence || _assertGuard_1._assertGuard(_exceptionable, {
6004
+ method: "typia.createAssertEquals",
6005
+ path: _path + ".evidence",
6006
+ expected: "undefined",
6007
+ value: input.evidence
6008
+ }, _errorFactory)) && (void 0 === input.evidence || _assertGuard_1._assertGuard(_exceptionable, {
6009
+ method: "typia.createAssertEquals",
6010
+ path: _path + ".evidence",
6011
+ expected: "undefined",
6012
+ value: input.evidence
6013
+ }, _errorFactory))) && ((null !== input.textVersion || _assertGuard_1._assertGuard(_exceptionable, {
6014
+ method: "typia.createAssertEquals",
6015
+ path: _path + ".textVersion",
6016
+ expected: "undefined",
6017
+ value: input.textVersion
6018
+ }, _errorFactory)) && (void 0 === input.textVersion || _assertGuard_1._assertGuard(_exceptionable, {
6019
+ method: "typia.createAssertEquals",
6020
+ path: _path + ".textVersion",
6021
+ expected: "undefined",
6022
+ value: input.textVersion
6023
+ }, _errorFactory))) && (5 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every((key) => {
6024
+ if (["kind", "topic", "state", "source", "at", "evidence", "textVersion"].some((prop) => key === prop))
6025
+ return true;
6026
+ const value = input[key];
6027
+ if (void 0 === value)
6028
+ return true;
6029
+ return _assertGuard_1._assertGuard(_exceptionable, {
6030
+ method: "typia.createAssertEquals",
6031
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
6032
+ expected: "undefined",
6033
+ value
6034
+ }, _errorFactory);
6035
+ })));
6036
+ const _ao6 = (input, _path, _exceptionable = true) => ("advertising" === input.kind || "night" === input.kind || _assertGuard_1._assertGuard(_exceptionable, {
6037
+ method: "typia.createAssertEquals",
6038
+ path: _path + ".kind",
6039
+ expected: '("advertising" | "night")',
6040
+ value: input.kind
6041
+ }, _errorFactory)) && ((null !== input.topic || _assertGuard_1._assertGuard(_exceptionable, {
6042
+ method: "typia.createAssertEquals",
6043
+ path: _path + ".topic",
6044
+ expected: "undefined",
6045
+ value: input.topic
6046
+ }, _errorFactory)) && (void 0 === input.topic || _assertGuard_1._assertGuard(_exceptionable, {
6047
+ method: "typia.createAssertEquals",
6048
+ path: _path + ".topic",
6049
+ expected: "undefined",
6050
+ value: input.topic
6051
+ }, _errorFactory))) && ("granted" === input.state || "withdrawn" === input.state || _assertGuard_1._assertGuard(_exceptionable, {
6052
+ method: "typia.createAssertEquals",
6053
+ path: _path + ".state",
6054
+ expected: '("granted" | "withdrawn")',
6055
+ value: input.state
6056
+ }, _errorFactory)) && ("player" === input.source || _assertGuard_1._assertGuard(_exceptionable, {
6057
+ method: "typia.createAssertEquals",
6058
+ path: _path + ".source",
6059
+ expected: '"player"',
6060
+ value: input.source
6061
+ }, _errorFactory)) && ("string" === typeof input.at && (_isFormatDateTime_1._isFormatDateTime(input.at) || _assertGuard_1._assertGuard(_exceptionable, {
6062
+ method: "typia.createAssertEquals",
6063
+ path: _path + ".at",
6064
+ expected: 'string & Format<"date-time">',
6065
+ value: input.at
6066
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
6067
+ method: "typia.createAssertEquals",
6068
+ path: _path + ".at",
6069
+ expected: '(string & Format<"date-time">)',
6070
+ value: input.at
6071
+ }, _errorFactory)) && ((null !== input.evidence || _assertGuard_1._assertGuard(_exceptionable, {
6072
+ method: "typia.createAssertEquals",
6073
+ path: _path + ".evidence",
6074
+ expected: "undefined",
6075
+ value: input.evidence
6076
+ }, _errorFactory)) && (void 0 === input.evidence || _assertGuard_1._assertGuard(_exceptionable, {
6077
+ method: "typia.createAssertEquals",
6078
+ path: _path + ".evidence",
6079
+ expected: "undefined",
6080
+ value: input.evidence
6081
+ }, _errorFactory))) && ("string" === typeof input.textVersion && (1 <= input.textVersion.length || _assertGuard_1._assertGuard(_exceptionable, {
6082
+ method: "typia.createAssertEquals",
6083
+ path: _path + ".textVersion",
6084
+ expected: "string & MinLength<1>",
6085
+ value: input.textVersion
6086
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
6087
+ method: "typia.createAssertEquals",
6088
+ path: _path + ".textVersion",
6089
+ expected: "(string & MinLength<1>)",
6090
+ value: input.textVersion
6091
+ }, _errorFactory)) && (5 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every((key) => {
6092
+ if (["kind", "topic", "state", "source", "at", "evidence", "textVersion"].some((prop) => key === prop))
6093
+ return true;
6094
+ const value = input[key];
6095
+ if (void 0 === value)
6096
+ return true;
6097
+ return _assertGuard_1._assertGuard(_exceptionable, {
6098
+ method: "typia.createAssertEquals",
6099
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
6100
+ expected: "undefined",
6101
+ value
6102
+ }, _errorFactory);
6103
+ })));
6104
+ const _au0 = (input, _path, _exceptionable = true) => (() => {
6105
+ if ("advertising" === input.kind || "night" === input.kind)
6106
+ return _ao6(input, _path, _exceptionable);
6107
+ else if ("topic-preference" === input.kind)
6108
+ return _ao5(input, _path, _exceptionable);
6109
+ else if ("host-agreement" === input.kind)
6110
+ return _ao4(input, _path, _exceptionable);
6111
+ else if ("delivery-permission" === input.kind)
6112
+ return _ao1(input, _path, _exceptionable);
6113
+ else
6114
+ return _assertGuard_1._assertGuard(_exceptionable, {
6115
+ method: "typia.createAssertEquals",
6116
+ path: _path,
6117
+ expected: _ae1,
6118
+ value: input
6119
+ }, _errorFactory);
6120
+ })();
6121
+ const _io0 = (input, _exceptionable = true) => "string" === typeof input.expectedPlayer && 1 <= input.expectedPlayer.length && ("object" === typeof input.record && null !== input.record && _iu0(input.record, _exceptionable)) && (2 === Object.keys(input).length || Object.keys(input).every((key) => {
6122
+ if (["expectedPlayer", "record"].some((prop) => key === prop))
6123
+ return true;
6124
+ const value = input[key];
6125
+ if (void 0 === value)
6126
+ return true;
6127
+ return false;
6128
+ }));
6129
+ const _io1 = (input, _exceptionable = true) => "delivery-permission" === input.kind && (null !== input.topic && void 0 === input.topic) && ("blocked" === input.state || "denied" === input.state || "granted" === input.state || "prompt-with-rationale" === input.state) && ("client-report" === input.source || "player" === input.source) && ("string" === typeof input.at && _isFormatDateTime_1._isFormatDateTime(input.at)) && (void 0 === input.evidence || "object" === typeof input.evidence && null !== input.evidence && _io2(input.evidence, _exceptionable)) && (null !== input.textVersion && void 0 === input.textVersion) && (4 === Object.keys(input).length || Object.keys(input).every((key) => {
6130
+ if (["kind", "topic", "state", "source", "at", "evidence", "textVersion"].some((prop) => key === prop))
6131
+ return true;
6132
+ const value = input[key];
6133
+ if (void 0 === value)
6134
+ return true;
6135
+ return false;
6136
+ }));
6137
+ const _io2 = (input, _exceptionable = true) => "string" === typeof input.schema && ("object" === typeof input.payload && null !== input.payload && false === Array.isArray(input.payload) && _io3(input.payload, _exceptionable)) && (2 === Object.keys(input).length || Object.keys(input).every((key) => {
6138
+ if (["schema", "payload"].some((prop) => key === prop))
6139
+ return true;
6140
+ const value = input[key];
6141
+ if (void 0 === value)
6142
+ return true;
6143
+ return false;
6144
+ }));
6145
+ const _io3 = (input, _exceptionable = true) => Object.keys(input).every((key) => {
6146
+ const value = input[key];
6147
+ if (void 0 === value)
6148
+ return true;
6149
+ return "string" === typeof value || "number" === typeof value || "boolean" === typeof value;
6150
+ });
6151
+ const _io4 = (input, _exceptionable = true) => "host-agreement" === input.kind && ("string" === typeof input.topic && 1 <= input.topic.length) && ("blocked" === input.state || "denied" === input.state || "granted" === input.state || "prompt-with-rationale" === input.state) && ("client-report" === input.source || "provider" === input.source) && ("string" === typeof input.at && _isFormatDateTime_1._isFormatDateTime(input.at)) && (void 0 === input.evidence || "object" === typeof input.evidence && null !== input.evidence && _io2(input.evidence, _exceptionable)) && (null !== input.textVersion && void 0 === input.textVersion) && (5 === Object.keys(input).length || Object.keys(input).every((key) => {
6152
+ if (["kind", "topic", "state", "source", "at", "evidence", "textVersion"].some((prop) => key === prop))
6153
+ return true;
6154
+ const value = input[key];
6155
+ if (void 0 === value)
6156
+ return true;
6157
+ return false;
6158
+ }));
6159
+ const _io5 = (input, _exceptionable = true) => "topic-preference" === input.kind && ("string" === typeof input.topic && 1 <= input.topic.length) && ("granted" === input.state || "withdrawn" === input.state) && "player" === input.source && ("string" === typeof input.at && _isFormatDateTime_1._isFormatDateTime(input.at)) && (null !== input.evidence && void 0 === input.evidence) && (null !== input.textVersion && void 0 === input.textVersion) && (5 === Object.keys(input).length || Object.keys(input).every((key) => {
6160
+ if (["kind", "topic", "state", "source", "at", "evidence", "textVersion"].some((prop) => key === prop))
6161
+ return true;
6162
+ const value = input[key];
6163
+ if (void 0 === value)
6164
+ return true;
6165
+ return false;
6166
+ }));
6167
+ const _io6 = (input, _exceptionable = true) => ("advertising" === input.kind || "night" === input.kind) && (null !== input.topic && void 0 === input.topic) && ("granted" === input.state || "withdrawn" === input.state) && "player" === input.source && ("string" === typeof input.at && _isFormatDateTime_1._isFormatDateTime(input.at)) && (null !== input.evidence && void 0 === input.evidence) && ("string" === typeof input.textVersion && 1 <= input.textVersion.length) && (5 === Object.keys(input).length || Object.keys(input).every((key) => {
6168
+ if (["kind", "topic", "state", "source", "at", "evidence", "textVersion"].some((prop) => key === prop))
6169
+ return true;
6170
+ const value = input[key];
6171
+ if (void 0 === value)
6172
+ return true;
6173
+ return false;
6174
+ }));
6175
+ const _iu0 = (input, _exceptionable = true) => (() => {
6176
+ if ("advertising" === input.kind || "night" === input.kind)
6177
+ return _io6(input, _exceptionable);
6178
+ else if ("topic-preference" === input.kind)
6179
+ return _io5(input, _exceptionable);
6180
+ else if ("host-agreement" === input.kind)
6181
+ return _io4(input, _exceptionable);
6182
+ else if ("delivery-permission" === input.kind)
6183
+ return _io1(input, _exceptionable);
6184
+ else
6185
+ return false;
6186
+ })();
6187
+ const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && _io0(input, true);
6188
+ let _errorFactory;
6189
+ return (input, errorFactory) => {
6190
+ if (false === __is(input)) {
6191
+ _errorFactory = errorFactory;
6192
+ ((input2, _path, _exceptionable = true) => ("object" === typeof input2 && null !== input2 || _assertGuard_1._assertGuard(true, {
6193
+ method: "typia.createAssertEquals",
6194
+ path: _path + "",
6195
+ expected: "NotificationBackendBridgeRecordConsentPayload",
6196
+ value: input2
6197
+ }, _errorFactory)) && _ao0(input2, _path + "", true) || _assertGuard_1._assertGuard(true, {
6198
+ method: "typia.createAssertEquals",
6199
+ path: _path + "",
6200
+ expected: "NotificationBackendBridgeRecordConsentPayload",
6201
+ value: input2
6202
+ }, _errorFactory))(input, "$input", true);
6203
+ }
6204
+ return input;
6205
+ };
6206
+ })(), notificationTimeFields.NotificationBackendBridgeRecordConsentPayload);
6207
+ var assertNotificationBackendBridgeRecordConsentResult = withStrictTimes("recordConsent result", /* @__PURE__ */ (() => {
6208
+ const _ae0 = '({ readonly kind: "advertising" | "night"; readonly topic?: never; readonly state: "granted" | "withdrawn"; readonly source: "player"; readonly at: IsoDateTime; readonly evidence?: never; readonly textVersion: NonEmptyString; } | { readonly kind: "delivery-permission"; readonly topic?: never; readonly state: NotificationRecordablePermissionState; readonly source: "client-report" | "player"; readonly at: IsoDateTime; readonly evidence?: PlatformEvidenceEnvelope; readonly textVersion?: never; } | { readonly kind: "host-agreement"; readonly topic: NonEmptyString; readonly state: NotificationRecordablePermissionState; readonly source: "client-report" | "provider"; readonly at: IsoDateTime; readonly evidence?: PlatformEvidenceEnvelope; readonly textVersion?: never; } | { readonly kind: "topic-preference"; readonly topic: NonEmptyString; readonly state: "granted" | "withdrawn"; readonly source: "player"; readonly at: IsoDateTime; readonly evidence?: never; readonly textVersion?: never; })';
6209
+ const _ae1 = '({ readonly kind: "advertising" | "night"; readonly topic?: never; readonly state: "granted" | "withdrawn"; readonly source: "player"; readonly at: IsoDateTime; readonly evidence?: never; readonly textVersion: NonEmptyString; } | { readonly kind: "topic-preference"; readonly topic: NonEmptyString; readonly state: "granted" | "withdrawn"; readonly source: "player"; readonly at: IsoDateTime; readonly evidence?: never; readonly textVersion?: never; } | { readonly kind: "host-agreement"; readonly topic: NonEmptyString; readonly state: NotificationRecordablePermissionState; readonly source: "client-report" | "provider"; readonly at: IsoDateTime; readonly evidence?: PlatformEvidenceEnvelope; readonly textVersion?: never; } | { readonly kind: "delivery-permission"; readonly topic?: never; readonly state: NotificationRecordablePermissionState; readonly source: "client-report" | "player"; readonly at: IsoDateTime; readonly evidence?: PlatformEvidenceEnvelope; readonly textVersion?: never; })';
6210
+ const _ao0 = (input, _path, _exceptionable = true) => (("object" === typeof input.record && null !== input.record || _assertGuard_1._assertGuard(_exceptionable, {
6211
+ method: "typia.createAssertEquals",
6212
+ path: _path + ".record",
6213
+ expected: _ae0,
6214
+ value: input.record
6215
+ }, _errorFactory)) && _au0(input.record, _path + ".record", _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
6216
+ method: "typia.createAssertEquals",
6217
+ path: _path + ".record",
6218
+ expected: _ae0,
6219
+ value: input.record
6220
+ }, _errorFactory)) && (1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every((key) => {
6221
+ if (["record"].some((prop) => key === prop))
6222
+ return true;
6223
+ const value = input[key];
6224
+ if (void 0 === value)
6225
+ return true;
6226
+ return _assertGuard_1._assertGuard(_exceptionable, {
6227
+ method: "typia.createAssertEquals",
6228
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
6229
+ expected: "undefined",
6230
+ value
6231
+ }, _errorFactory);
6232
+ })));
6233
+ const _ao1 = (input, _path, _exceptionable = true) => ("delivery-permission" === input.kind || _assertGuard_1._assertGuard(_exceptionable, {
6234
+ method: "typia.createAssertEquals",
6235
+ path: _path + ".kind",
6236
+ expected: '"delivery-permission"',
6237
+ value: input.kind
6238
+ }, _errorFactory)) && ((null !== input.topic || _assertGuard_1._assertGuard(_exceptionable, {
6239
+ method: "typia.createAssertEquals",
6240
+ path: _path + ".topic",
6241
+ expected: "undefined",
6242
+ value: input.topic
6243
+ }, _errorFactory)) && (void 0 === input.topic || _assertGuard_1._assertGuard(_exceptionable, {
6244
+ method: "typia.createAssertEquals",
6245
+ path: _path + ".topic",
6246
+ expected: "undefined",
6247
+ value: input.topic
6248
+ }, _errorFactory))) && ("blocked" === input.state || "denied" === input.state || "granted" === input.state || "prompt-with-rationale" === input.state || _assertGuard_1._assertGuard(_exceptionable, {
6249
+ method: "typia.createAssertEquals",
6250
+ path: _path + ".state",
6251
+ expected: '("blocked" | "denied" | "granted" | "prompt-with-rationale")',
6252
+ value: input.state
6253
+ }, _errorFactory)) && ("client-report" === input.source || "player" === input.source || _assertGuard_1._assertGuard(_exceptionable, {
6254
+ method: "typia.createAssertEquals",
6255
+ path: _path + ".source",
6256
+ expected: '("client-report" | "player")',
6257
+ value: input.source
6258
+ }, _errorFactory)) && ("string" === typeof input.at && (_isFormatDateTime_1._isFormatDateTime(input.at) || _assertGuard_1._assertGuard(_exceptionable, {
6259
+ method: "typia.createAssertEquals",
6260
+ path: _path + ".at",
6261
+ expected: 'string & Format<"date-time">',
6262
+ value: input.at
6263
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
6264
+ method: "typia.createAssertEquals",
6265
+ path: _path + ".at",
6266
+ expected: '(string & Format<"date-time">)',
6267
+ value: input.at
6268
+ }, _errorFactory)) && (void 0 === input.evidence || ("object" === typeof input.evidence && null !== input.evidence || _assertGuard_1._assertGuard(_exceptionable, {
6269
+ method: "typia.createAssertEquals",
6270
+ path: _path + ".evidence",
6271
+ expected: "(PlatformEvidenceEnvelope | undefined)",
6272
+ value: input.evidence
6273
+ }, _errorFactory)) && _ao2(input.evidence, _path + ".evidence", _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
6274
+ method: "typia.createAssertEquals",
6275
+ path: _path + ".evidence",
6276
+ expected: "(PlatformEvidenceEnvelope | undefined)",
6277
+ value: input.evidence
6278
+ }, _errorFactory)) && ((null !== input.textVersion || _assertGuard_1._assertGuard(_exceptionable, {
6279
+ method: "typia.createAssertEquals",
6280
+ path: _path + ".textVersion",
6281
+ expected: "undefined",
6282
+ value: input.textVersion
6283
+ }, _errorFactory)) && (void 0 === input.textVersion || _assertGuard_1._assertGuard(_exceptionable, {
6284
+ method: "typia.createAssertEquals",
6285
+ path: _path + ".textVersion",
6286
+ expected: "undefined",
6287
+ value: input.textVersion
6288
+ }, _errorFactory))) && (4 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every((key) => {
6289
+ if (["kind", "topic", "state", "source", "at", "evidence", "textVersion"].some((prop) => key === prop))
6290
+ return true;
6291
+ const value = input[key];
6292
+ if (void 0 === value)
6293
+ return true;
6294
+ return _assertGuard_1._assertGuard(_exceptionable, {
6295
+ method: "typia.createAssertEquals",
6296
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
6297
+ expected: "undefined",
6298
+ value
6299
+ }, _errorFactory);
6300
+ })));
6301
+ const _ao2 = (input, _path, _exceptionable = true) => ("string" === typeof input.schema || _assertGuard_1._assertGuard(_exceptionable, {
6302
+ method: "typia.createAssertEquals",
6303
+ path: _path + ".schema",
6304
+ expected: "string",
6305
+ value: input.schema
6306
+ }, _errorFactory)) && (("object" === typeof input.payload && null !== input.payload && false === Array.isArray(input.payload) || _assertGuard_1._assertGuard(_exceptionable, {
6307
+ method: "typia.createAssertEquals",
6308
+ path: _path + ".payload",
6309
+ expected: "Readonly<Record<string, string | number | boolean>>",
6310
+ value: input.payload
6311
+ }, _errorFactory)) && _ao3(input.payload, _path + ".payload", _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
6312
+ method: "typia.createAssertEquals",
6313
+ path: _path + ".payload",
6314
+ expected: "Readonly<Record<string, string | number | boolean>>",
6315
+ value: input.payload
6316
+ }, _errorFactory)) && (2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every((key) => {
6317
+ if (["schema", "payload"].some((prop) => key === prop))
6318
+ return true;
6319
+ const value = input[key];
6320
+ if (void 0 === value)
6321
+ return true;
6322
+ return _assertGuard_1._assertGuard(_exceptionable, {
6323
+ method: "typia.createAssertEquals",
6324
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
6325
+ expected: "undefined",
6326
+ value
6327
+ }, _errorFactory);
6328
+ })));
6329
+ const _ao3 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every((key) => {
6330
+ const value = input[key];
6331
+ if (void 0 === value)
6332
+ return true;
6333
+ return "string" === typeof value || "number" === typeof value || "boolean" === typeof value || _assertGuard_1._assertGuard(_exceptionable, {
6334
+ method: "typia.createAssertEquals",
6335
+ path: _path + __typia_transform__accessExpressionAsString(key),
6336
+ expected: "(boolean | number | string)",
6337
+ value
6338
+ }, _errorFactory);
6339
+ });
6340
+ const _ao4 = (input, _path, _exceptionable = true) => ("host-agreement" === input.kind || _assertGuard_1._assertGuard(_exceptionable, {
6341
+ method: "typia.createAssertEquals",
6342
+ path: _path + ".kind",
6343
+ expected: '"host-agreement"',
6344
+ value: input.kind
6345
+ }, _errorFactory)) && ("string" === typeof input.topic && (1 <= input.topic.length || _assertGuard_1._assertGuard(_exceptionable, {
6346
+ method: "typia.createAssertEquals",
6347
+ path: _path + ".topic",
6348
+ expected: "string & MinLength<1>",
6349
+ value: input.topic
6350
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
6351
+ method: "typia.createAssertEquals",
6352
+ path: _path + ".topic",
6353
+ expected: "(string & MinLength<1>)",
6354
+ value: input.topic
6355
+ }, _errorFactory)) && ("blocked" === input.state || "denied" === input.state || "granted" === input.state || "prompt-with-rationale" === input.state || _assertGuard_1._assertGuard(_exceptionable, {
6356
+ method: "typia.createAssertEquals",
6357
+ path: _path + ".state",
6358
+ expected: '("blocked" | "denied" | "granted" | "prompt-with-rationale")',
6359
+ value: input.state
6360
+ }, _errorFactory)) && ("client-report" === input.source || "provider" === input.source || _assertGuard_1._assertGuard(_exceptionable, {
6361
+ method: "typia.createAssertEquals",
6362
+ path: _path + ".source",
6363
+ expected: '("client-report" | "provider")',
6364
+ value: input.source
6365
+ }, _errorFactory)) && ("string" === typeof input.at && (_isFormatDateTime_1._isFormatDateTime(input.at) || _assertGuard_1._assertGuard(_exceptionable, {
6366
+ method: "typia.createAssertEquals",
6367
+ path: _path + ".at",
6368
+ expected: 'string & Format<"date-time">',
6369
+ value: input.at
6370
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
6371
+ method: "typia.createAssertEquals",
6372
+ path: _path + ".at",
6373
+ expected: '(string & Format<"date-time">)',
6374
+ value: input.at
6375
+ }, _errorFactory)) && (void 0 === input.evidence || ("object" === typeof input.evidence && null !== input.evidence || _assertGuard_1._assertGuard(_exceptionable, {
6376
+ method: "typia.createAssertEquals",
6377
+ path: _path + ".evidence",
6378
+ expected: "(PlatformEvidenceEnvelope | undefined)",
6379
+ value: input.evidence
6380
+ }, _errorFactory)) && _ao2(input.evidence, _path + ".evidence", _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
6381
+ method: "typia.createAssertEquals",
6382
+ path: _path + ".evidence",
6383
+ expected: "(PlatformEvidenceEnvelope | undefined)",
6384
+ value: input.evidence
6385
+ }, _errorFactory)) && ((null !== input.textVersion || _assertGuard_1._assertGuard(_exceptionable, {
6386
+ method: "typia.createAssertEquals",
6387
+ path: _path + ".textVersion",
6388
+ expected: "undefined",
6389
+ value: input.textVersion
6390
+ }, _errorFactory)) && (void 0 === input.textVersion || _assertGuard_1._assertGuard(_exceptionable, {
6391
+ method: "typia.createAssertEquals",
6392
+ path: _path + ".textVersion",
6393
+ expected: "undefined",
6394
+ value: input.textVersion
6395
+ }, _errorFactory))) && (5 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every((key) => {
6396
+ if (["kind", "topic", "state", "source", "at", "evidence", "textVersion"].some((prop) => key === prop))
6397
+ return true;
6398
+ const value = input[key];
6399
+ if (void 0 === value)
6400
+ return true;
6401
+ return _assertGuard_1._assertGuard(_exceptionable, {
6402
+ method: "typia.createAssertEquals",
6403
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
6404
+ expected: "undefined",
6405
+ value
6406
+ }, _errorFactory);
6407
+ })));
6408
+ const _ao5 = (input, _path, _exceptionable = true) => ("topic-preference" === input.kind || _assertGuard_1._assertGuard(_exceptionable, {
6409
+ method: "typia.createAssertEquals",
6410
+ path: _path + ".kind",
6411
+ expected: '"topic-preference"',
6412
+ value: input.kind
6413
+ }, _errorFactory)) && ("string" === typeof input.topic && (1 <= input.topic.length || _assertGuard_1._assertGuard(_exceptionable, {
6414
+ method: "typia.createAssertEquals",
6415
+ path: _path + ".topic",
6416
+ expected: "string & MinLength<1>",
6417
+ value: input.topic
6418
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
6419
+ method: "typia.createAssertEquals",
6420
+ path: _path + ".topic",
6421
+ expected: "(string & MinLength<1>)",
6422
+ value: input.topic
6423
+ }, _errorFactory)) && ("granted" === input.state || "withdrawn" === input.state || _assertGuard_1._assertGuard(_exceptionable, {
6424
+ method: "typia.createAssertEquals",
6425
+ path: _path + ".state",
6426
+ expected: '("granted" | "withdrawn")',
6427
+ value: input.state
6428
+ }, _errorFactory)) && ("player" === input.source || _assertGuard_1._assertGuard(_exceptionable, {
6429
+ method: "typia.createAssertEquals",
6430
+ path: _path + ".source",
6431
+ expected: '"player"',
6432
+ value: input.source
6433
+ }, _errorFactory)) && ("string" === typeof input.at && (_isFormatDateTime_1._isFormatDateTime(input.at) || _assertGuard_1._assertGuard(_exceptionable, {
6434
+ method: "typia.createAssertEquals",
6435
+ path: _path + ".at",
6436
+ expected: 'string & Format<"date-time">',
6437
+ value: input.at
6438
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
6439
+ method: "typia.createAssertEquals",
6440
+ path: _path + ".at",
6441
+ expected: '(string & Format<"date-time">)',
6442
+ value: input.at
6443
+ }, _errorFactory)) && ((null !== input.evidence || _assertGuard_1._assertGuard(_exceptionable, {
6444
+ method: "typia.createAssertEquals",
6445
+ path: _path + ".evidence",
6446
+ expected: "undefined",
6447
+ value: input.evidence
6448
+ }, _errorFactory)) && (void 0 === input.evidence || _assertGuard_1._assertGuard(_exceptionable, {
6449
+ method: "typia.createAssertEquals",
6450
+ path: _path + ".evidence",
6451
+ expected: "undefined",
6452
+ value: input.evidence
6453
+ }, _errorFactory))) && ((null !== input.textVersion || _assertGuard_1._assertGuard(_exceptionable, {
6454
+ method: "typia.createAssertEquals",
6455
+ path: _path + ".textVersion",
6456
+ expected: "undefined",
6457
+ value: input.textVersion
6458
+ }, _errorFactory)) && (void 0 === input.textVersion || _assertGuard_1._assertGuard(_exceptionable, {
6459
+ method: "typia.createAssertEquals",
6460
+ path: _path + ".textVersion",
6461
+ expected: "undefined",
6462
+ value: input.textVersion
6463
+ }, _errorFactory))) && (5 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every((key) => {
6464
+ if (["kind", "topic", "state", "source", "at", "evidence", "textVersion"].some((prop) => key === prop))
6465
+ return true;
6466
+ const value = input[key];
6467
+ if (void 0 === value)
6468
+ return true;
6469
+ return _assertGuard_1._assertGuard(_exceptionable, {
6470
+ method: "typia.createAssertEquals",
6471
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
6472
+ expected: "undefined",
6473
+ value
6474
+ }, _errorFactory);
6475
+ })));
6476
+ const _ao6 = (input, _path, _exceptionable = true) => ("advertising" === input.kind || "night" === input.kind || _assertGuard_1._assertGuard(_exceptionable, {
6477
+ method: "typia.createAssertEquals",
6478
+ path: _path + ".kind",
6479
+ expected: '("advertising" | "night")',
6480
+ value: input.kind
6481
+ }, _errorFactory)) && ((null !== input.topic || _assertGuard_1._assertGuard(_exceptionable, {
6482
+ method: "typia.createAssertEquals",
6483
+ path: _path + ".topic",
6484
+ expected: "undefined",
6485
+ value: input.topic
6486
+ }, _errorFactory)) && (void 0 === input.topic || _assertGuard_1._assertGuard(_exceptionable, {
6487
+ method: "typia.createAssertEquals",
6488
+ path: _path + ".topic",
6489
+ expected: "undefined",
6490
+ value: input.topic
6491
+ }, _errorFactory))) && ("granted" === input.state || "withdrawn" === input.state || _assertGuard_1._assertGuard(_exceptionable, {
6492
+ method: "typia.createAssertEquals",
6493
+ path: _path + ".state",
6494
+ expected: '("granted" | "withdrawn")',
6495
+ value: input.state
6496
+ }, _errorFactory)) && ("player" === input.source || _assertGuard_1._assertGuard(_exceptionable, {
6497
+ method: "typia.createAssertEquals",
6498
+ path: _path + ".source",
6499
+ expected: '"player"',
6500
+ value: input.source
6501
+ }, _errorFactory)) && ("string" === typeof input.at && (_isFormatDateTime_1._isFormatDateTime(input.at) || _assertGuard_1._assertGuard(_exceptionable, {
6502
+ method: "typia.createAssertEquals",
6503
+ path: _path + ".at",
6504
+ expected: 'string & Format<"date-time">',
6505
+ value: input.at
6506
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
6507
+ method: "typia.createAssertEquals",
6508
+ path: _path + ".at",
6509
+ expected: '(string & Format<"date-time">)',
6510
+ value: input.at
6511
+ }, _errorFactory)) && ((null !== input.evidence || _assertGuard_1._assertGuard(_exceptionable, {
6512
+ method: "typia.createAssertEquals",
6513
+ path: _path + ".evidence",
6514
+ expected: "undefined",
6515
+ value: input.evidence
6516
+ }, _errorFactory)) && (void 0 === input.evidence || _assertGuard_1._assertGuard(_exceptionable, {
6517
+ method: "typia.createAssertEquals",
6518
+ path: _path + ".evidence",
6519
+ expected: "undefined",
6520
+ value: input.evidence
6521
+ }, _errorFactory))) && ("string" === typeof input.textVersion && (1 <= input.textVersion.length || _assertGuard_1._assertGuard(_exceptionable, {
6522
+ method: "typia.createAssertEquals",
6523
+ path: _path + ".textVersion",
6524
+ expected: "string & MinLength<1>",
6525
+ value: input.textVersion
6526
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
6527
+ method: "typia.createAssertEquals",
6528
+ path: _path + ".textVersion",
6529
+ expected: "(string & MinLength<1>)",
6530
+ value: input.textVersion
6531
+ }, _errorFactory)) && (5 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every((key) => {
6532
+ if (["kind", "topic", "state", "source", "at", "evidence", "textVersion"].some((prop) => key === prop))
6533
+ return true;
6534
+ const value = input[key];
6535
+ if (void 0 === value)
6536
+ return true;
6537
+ return _assertGuard_1._assertGuard(_exceptionable, {
6538
+ method: "typia.createAssertEquals",
6539
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
6540
+ expected: "undefined",
6541
+ value
6542
+ }, _errorFactory);
6543
+ })));
6544
+ const _au0 = (input, _path, _exceptionable = true) => (() => {
6545
+ if ("advertising" === input.kind || "night" === input.kind)
6546
+ return _ao6(input, _path, _exceptionable);
6547
+ else if ("topic-preference" === input.kind)
6548
+ return _ao5(input, _path, _exceptionable);
6549
+ else if ("host-agreement" === input.kind)
6550
+ return _ao4(input, _path, _exceptionable);
6551
+ else if ("delivery-permission" === input.kind)
6552
+ return _ao1(input, _path, _exceptionable);
6553
+ else
6554
+ return _assertGuard_1._assertGuard(_exceptionable, {
6555
+ method: "typia.createAssertEquals",
6556
+ path: _path,
6557
+ expected: _ae1,
6558
+ value: input
6559
+ }, _errorFactory);
6560
+ })();
6561
+ const _io0 = (input, _exceptionable = true) => "object" === typeof input.record && null !== input.record && _iu0(input.record, _exceptionable) && (1 === Object.keys(input).length || Object.keys(input).every((key) => {
6562
+ if (["record"].some((prop) => key === prop))
6563
+ return true;
6564
+ const value = input[key];
6565
+ if (void 0 === value)
6566
+ return true;
6567
+ return false;
6568
+ }));
6569
+ const _io1 = (input, _exceptionable = true) => "delivery-permission" === input.kind && (null !== input.topic && void 0 === input.topic) && ("blocked" === input.state || "denied" === input.state || "granted" === input.state || "prompt-with-rationale" === input.state) && ("client-report" === input.source || "player" === input.source) && ("string" === typeof input.at && _isFormatDateTime_1._isFormatDateTime(input.at)) && (void 0 === input.evidence || "object" === typeof input.evidence && null !== input.evidence && _io2(input.evidence, _exceptionable)) && (null !== input.textVersion && void 0 === input.textVersion) && (4 === Object.keys(input).length || Object.keys(input).every((key) => {
6570
+ if (["kind", "topic", "state", "source", "at", "evidence", "textVersion"].some((prop) => key === prop))
6571
+ return true;
6572
+ const value = input[key];
6573
+ if (void 0 === value)
6574
+ return true;
6575
+ return false;
6576
+ }));
6577
+ const _io2 = (input, _exceptionable = true) => "string" === typeof input.schema && ("object" === typeof input.payload && null !== input.payload && false === Array.isArray(input.payload) && _io3(input.payload, _exceptionable)) && (2 === Object.keys(input).length || Object.keys(input).every((key) => {
6578
+ if (["schema", "payload"].some((prop) => key === prop))
6579
+ return true;
6580
+ const value = input[key];
6581
+ if (void 0 === value)
6582
+ return true;
6583
+ return false;
6584
+ }));
6585
+ const _io3 = (input, _exceptionable = true) => Object.keys(input).every((key) => {
6586
+ const value = input[key];
6587
+ if (void 0 === value)
6588
+ return true;
6589
+ return "string" === typeof value || "number" === typeof value || "boolean" === typeof value;
6590
+ });
6591
+ const _io4 = (input, _exceptionable = true) => "host-agreement" === input.kind && ("string" === typeof input.topic && 1 <= input.topic.length) && ("blocked" === input.state || "denied" === input.state || "granted" === input.state || "prompt-with-rationale" === input.state) && ("client-report" === input.source || "provider" === input.source) && ("string" === typeof input.at && _isFormatDateTime_1._isFormatDateTime(input.at)) && (void 0 === input.evidence || "object" === typeof input.evidence && null !== input.evidence && _io2(input.evidence, _exceptionable)) && (null !== input.textVersion && void 0 === input.textVersion) && (5 === Object.keys(input).length || Object.keys(input).every((key) => {
6592
+ if (["kind", "topic", "state", "source", "at", "evidence", "textVersion"].some((prop) => key === prop))
6593
+ return true;
6594
+ const value = input[key];
6595
+ if (void 0 === value)
6596
+ return true;
6597
+ return false;
6598
+ }));
6599
+ const _io5 = (input, _exceptionable = true) => "topic-preference" === input.kind && ("string" === typeof input.topic && 1 <= input.topic.length) && ("granted" === input.state || "withdrawn" === input.state) && "player" === input.source && ("string" === typeof input.at && _isFormatDateTime_1._isFormatDateTime(input.at)) && (null !== input.evidence && void 0 === input.evidence) && (null !== input.textVersion && void 0 === input.textVersion) && (5 === Object.keys(input).length || Object.keys(input).every((key) => {
6600
+ if (["kind", "topic", "state", "source", "at", "evidence", "textVersion"].some((prop) => key === prop))
6601
+ return true;
6602
+ const value = input[key];
6603
+ if (void 0 === value)
6604
+ return true;
6605
+ return false;
6606
+ }));
6607
+ const _io6 = (input, _exceptionable = true) => ("advertising" === input.kind || "night" === input.kind) && (null !== input.topic && void 0 === input.topic) && ("granted" === input.state || "withdrawn" === input.state) && "player" === input.source && ("string" === typeof input.at && _isFormatDateTime_1._isFormatDateTime(input.at)) && (null !== input.evidence && void 0 === input.evidence) && ("string" === typeof input.textVersion && 1 <= input.textVersion.length) && (5 === Object.keys(input).length || Object.keys(input).every((key) => {
6608
+ if (["kind", "topic", "state", "source", "at", "evidence", "textVersion"].some((prop) => key === prop))
6609
+ return true;
6610
+ const value = input[key];
6611
+ if (void 0 === value)
6612
+ return true;
6613
+ return false;
6614
+ }));
6615
+ const _iu0 = (input, _exceptionable = true) => (() => {
6616
+ if ("advertising" === input.kind || "night" === input.kind)
6617
+ return _io6(input, _exceptionable);
6618
+ else if ("topic-preference" === input.kind)
6619
+ return _io5(input, _exceptionable);
6620
+ else if ("host-agreement" === input.kind)
6621
+ return _io4(input, _exceptionable);
6622
+ else if ("delivery-permission" === input.kind)
6623
+ return _io1(input, _exceptionable);
6624
+ else
6625
+ return false;
6626
+ })();
6627
+ const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && _io0(input, true);
6628
+ let _errorFactory;
6629
+ return (input, errorFactory) => {
6630
+ if (false === __is(input)) {
6631
+ _errorFactory = errorFactory;
6632
+ ((input2, _path, _exceptionable = true) => ("object" === typeof input2 && null !== input2 || _assertGuard_1._assertGuard(true, {
6633
+ method: "typia.createAssertEquals",
6634
+ path: _path + "",
6635
+ expected: "NotificationBackendBridgeRecordConsentResult",
6636
+ value: input2
6637
+ }, _errorFactory)) && _ao0(input2, _path + "", true) || _assertGuard_1._assertGuard(true, {
6638
+ method: "typia.createAssertEquals",
6639
+ path: _path + "",
6640
+ expected: "NotificationBackendBridgeRecordConsentResult",
6641
+ value: input2
6642
+ }, _errorFactory))(input, "$input", true);
6643
+ }
6644
+ return input;
6645
+ };
6646
+ })(), notificationTimeFields.NotificationBackendBridgeRecordConsentResult);
6647
+ var assertNotificationBackendBridgeListConsentResult = withStrictTimes("listConsent result", /* @__PURE__ */ (() => {
6648
+ const _ae0 = '({ readonly kind: "advertising" | "night"; readonly topic?: never; readonly state: "granted" | "withdrawn"; readonly source: "player"; readonly at: IsoDateTime; readonly evidence?: never; readonly textVersion: NonEmptyString; } | { readonly kind: "delivery-permission"; readonly topic?: never; readonly state: NotificationRecordablePermissionState; readonly source: "client-report" | "player"; readonly at: IsoDateTime; readonly evidence?: PlatformEvidenceEnvelope; readonly textVersion?: never; } | { readonly kind: "host-agreement"; readonly topic: NonEmptyString; readonly state: NotificationRecordablePermissionState; readonly source: "client-report" | "provider"; readonly at: IsoDateTime; readonly evidence?: PlatformEvidenceEnvelope; readonly textVersion?: never; } | { readonly kind: "topic-preference"; readonly topic: NonEmptyString; readonly state: "granted" | "withdrawn"; readonly source: "player"; readonly at: IsoDateTime; readonly evidence?: never; readonly textVersion?: never; })';
6649
+ const _ae1 = '({ readonly kind: "advertising" | "night"; readonly topic?: never; readonly state: "granted" | "withdrawn"; readonly source: "player"; readonly at: IsoDateTime; readonly evidence?: never; readonly textVersion: NonEmptyString; } | { readonly kind: "topic-preference"; readonly topic: NonEmptyString; readonly state: "granted" | "withdrawn"; readonly source: "player"; readonly at: IsoDateTime; readonly evidence?: never; readonly textVersion?: never; } | { readonly kind: "host-agreement"; readonly topic: NonEmptyString; readonly state: NotificationRecordablePermissionState; readonly source: "client-report" | "provider"; readonly at: IsoDateTime; readonly evidence?: PlatformEvidenceEnvelope; readonly textVersion?: never; } | { readonly kind: "delivery-permission"; readonly topic?: never; readonly state: NotificationRecordablePermissionState; readonly source: "client-report" | "player"; readonly at: IsoDateTime; readonly evidence?: PlatformEvidenceEnvelope; readonly textVersion?: never; })';
6650
+ const _ao0 = (input, _path, _exceptionable = true) => ((Array.isArray(input.records) || _assertGuard_1._assertGuard(_exceptionable, {
6651
+ method: "typia.createAssertEquals",
6652
+ path: _path + ".records",
6653
+ expected: "ReadonlyArray<NotificationConsentRecord>",
6654
+ value: input.records
6655
+ }, _errorFactory)) && input.records.every((elem, _index2) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
6656
+ method: "typia.createAssertEquals",
6657
+ path: _path + ".records[" + _index2 + "]",
6658
+ expected: _ae0,
6659
+ value: elem
6660
+ }, _errorFactory)) && _au0(elem, _path + ".records[" + _index2 + "]", _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
6661
+ method: "typia.createAssertEquals",
6662
+ path: _path + ".records[" + _index2 + "]",
6663
+ expected: _ae0,
6664
+ value: elem
6665
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
6666
+ method: "typia.createAssertEquals",
6667
+ path: _path + ".records",
6668
+ expected: "ReadonlyArray<NotificationConsentRecord>",
6669
+ value: input.records
6670
+ }, _errorFactory)) && (1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every((key) => {
6671
+ if (["records"].some((prop) => key === prop))
6672
+ return true;
6673
+ const value = input[key];
6674
+ if (void 0 === value)
6675
+ return true;
6676
+ return _assertGuard_1._assertGuard(_exceptionable, {
6677
+ method: "typia.createAssertEquals",
6678
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
6679
+ expected: "undefined",
6680
+ value
6681
+ }, _errorFactory);
6682
+ })));
6683
+ const _ao1 = (input, _path, _exceptionable = true) => ("delivery-permission" === input.kind || _assertGuard_1._assertGuard(_exceptionable, {
6684
+ method: "typia.createAssertEquals",
6685
+ path: _path + ".kind",
6686
+ expected: '"delivery-permission"',
6687
+ value: input.kind
6688
+ }, _errorFactory)) && ((null !== input.topic || _assertGuard_1._assertGuard(_exceptionable, {
6689
+ method: "typia.createAssertEquals",
6690
+ path: _path + ".topic",
6691
+ expected: "undefined",
6692
+ value: input.topic
6693
+ }, _errorFactory)) && (void 0 === input.topic || _assertGuard_1._assertGuard(_exceptionable, {
6694
+ method: "typia.createAssertEquals",
6695
+ path: _path + ".topic",
6696
+ expected: "undefined",
6697
+ value: input.topic
6698
+ }, _errorFactory))) && ("blocked" === input.state || "denied" === input.state || "granted" === input.state || "prompt-with-rationale" === input.state || _assertGuard_1._assertGuard(_exceptionable, {
6699
+ method: "typia.createAssertEquals",
6700
+ path: _path + ".state",
6701
+ expected: '("blocked" | "denied" | "granted" | "prompt-with-rationale")',
6702
+ value: input.state
6703
+ }, _errorFactory)) && ("client-report" === input.source || "player" === input.source || _assertGuard_1._assertGuard(_exceptionable, {
6704
+ method: "typia.createAssertEquals",
6705
+ path: _path + ".source",
6706
+ expected: '("client-report" | "player")',
6707
+ value: input.source
6708
+ }, _errorFactory)) && ("string" === typeof input.at && (_isFormatDateTime_1._isFormatDateTime(input.at) || _assertGuard_1._assertGuard(_exceptionable, {
6709
+ method: "typia.createAssertEquals",
6710
+ path: _path + ".at",
6711
+ expected: 'string & Format<"date-time">',
6712
+ value: input.at
6713
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
6714
+ method: "typia.createAssertEquals",
6715
+ path: _path + ".at",
6716
+ expected: '(string & Format<"date-time">)',
6717
+ value: input.at
6718
+ }, _errorFactory)) && (void 0 === input.evidence || ("object" === typeof input.evidence && null !== input.evidence || _assertGuard_1._assertGuard(_exceptionable, {
6719
+ method: "typia.createAssertEquals",
6720
+ path: _path + ".evidence",
6721
+ expected: "(PlatformEvidenceEnvelope | undefined)",
6722
+ value: input.evidence
6723
+ }, _errorFactory)) && _ao2(input.evidence, _path + ".evidence", _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
6724
+ method: "typia.createAssertEquals",
6725
+ path: _path + ".evidence",
6726
+ expected: "(PlatformEvidenceEnvelope | undefined)",
6727
+ value: input.evidence
6728
+ }, _errorFactory)) && ((null !== input.textVersion || _assertGuard_1._assertGuard(_exceptionable, {
6729
+ method: "typia.createAssertEquals",
6730
+ path: _path + ".textVersion",
6731
+ expected: "undefined",
6732
+ value: input.textVersion
6733
+ }, _errorFactory)) && (void 0 === input.textVersion || _assertGuard_1._assertGuard(_exceptionable, {
6734
+ method: "typia.createAssertEquals",
6735
+ path: _path + ".textVersion",
6736
+ expected: "undefined",
6737
+ value: input.textVersion
6738
+ }, _errorFactory))) && (4 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every((key) => {
6739
+ if (["kind", "topic", "state", "source", "at", "evidence", "textVersion"].some((prop) => key === prop))
6740
+ return true;
6741
+ const value = input[key];
6742
+ if (void 0 === value)
6743
+ return true;
6744
+ return _assertGuard_1._assertGuard(_exceptionable, {
6745
+ method: "typia.createAssertEquals",
6746
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
6747
+ expected: "undefined",
6748
+ value
6749
+ }, _errorFactory);
6750
+ })));
6751
+ const _ao2 = (input, _path, _exceptionable = true) => ("string" === typeof input.schema || _assertGuard_1._assertGuard(_exceptionable, {
6752
+ method: "typia.createAssertEquals",
6753
+ path: _path + ".schema",
6754
+ expected: "string",
6755
+ value: input.schema
6756
+ }, _errorFactory)) && (("object" === typeof input.payload && null !== input.payload && false === Array.isArray(input.payload) || _assertGuard_1._assertGuard(_exceptionable, {
6757
+ method: "typia.createAssertEquals",
6758
+ path: _path + ".payload",
6759
+ expected: "Readonly<Record<string, string | number | boolean>>",
6760
+ value: input.payload
6761
+ }, _errorFactory)) && _ao3(input.payload, _path + ".payload", _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
6762
+ method: "typia.createAssertEquals",
6763
+ path: _path + ".payload",
6764
+ expected: "Readonly<Record<string, string | number | boolean>>",
6765
+ value: input.payload
6766
+ }, _errorFactory)) && (2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every((key) => {
6767
+ if (["schema", "payload"].some((prop) => key === prop))
6768
+ return true;
6769
+ const value = input[key];
6770
+ if (void 0 === value)
6771
+ return true;
6772
+ return _assertGuard_1._assertGuard(_exceptionable, {
6773
+ method: "typia.createAssertEquals",
6774
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
6775
+ expected: "undefined",
6776
+ value
6777
+ }, _errorFactory);
6778
+ })));
6779
+ const _ao3 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every((key) => {
6780
+ const value = input[key];
6781
+ if (void 0 === value)
6782
+ return true;
6783
+ return "string" === typeof value || "number" === typeof value || "boolean" === typeof value || _assertGuard_1._assertGuard(_exceptionable, {
6784
+ method: "typia.createAssertEquals",
6785
+ path: _path + __typia_transform__accessExpressionAsString(key),
6786
+ expected: "(boolean | number | string)",
6787
+ value
6788
+ }, _errorFactory);
6789
+ });
6790
+ const _ao4 = (input, _path, _exceptionable = true) => ("host-agreement" === input.kind || _assertGuard_1._assertGuard(_exceptionable, {
6791
+ method: "typia.createAssertEquals",
6792
+ path: _path + ".kind",
6793
+ expected: '"host-agreement"',
6794
+ value: input.kind
6795
+ }, _errorFactory)) && ("string" === typeof input.topic && (1 <= input.topic.length || _assertGuard_1._assertGuard(_exceptionable, {
6796
+ method: "typia.createAssertEquals",
6797
+ path: _path + ".topic",
6798
+ expected: "string & MinLength<1>",
6799
+ value: input.topic
6800
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
6801
+ method: "typia.createAssertEquals",
6802
+ path: _path + ".topic",
6803
+ expected: "(string & MinLength<1>)",
6804
+ value: input.topic
6805
+ }, _errorFactory)) && ("blocked" === input.state || "denied" === input.state || "granted" === input.state || "prompt-with-rationale" === input.state || _assertGuard_1._assertGuard(_exceptionable, {
6806
+ method: "typia.createAssertEquals",
6807
+ path: _path + ".state",
6808
+ expected: '("blocked" | "denied" | "granted" | "prompt-with-rationale")',
6809
+ value: input.state
6810
+ }, _errorFactory)) && ("client-report" === input.source || "provider" === input.source || _assertGuard_1._assertGuard(_exceptionable, {
6811
+ method: "typia.createAssertEquals",
6812
+ path: _path + ".source",
6813
+ expected: '("client-report" | "provider")',
6814
+ value: input.source
6815
+ }, _errorFactory)) && ("string" === typeof input.at && (_isFormatDateTime_1._isFormatDateTime(input.at) || _assertGuard_1._assertGuard(_exceptionable, {
6816
+ method: "typia.createAssertEquals",
6817
+ path: _path + ".at",
6818
+ expected: 'string & Format<"date-time">',
6819
+ value: input.at
6820
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
6821
+ method: "typia.createAssertEquals",
6822
+ path: _path + ".at",
6823
+ expected: '(string & Format<"date-time">)',
6824
+ value: input.at
6825
+ }, _errorFactory)) && (void 0 === input.evidence || ("object" === typeof input.evidence && null !== input.evidence || _assertGuard_1._assertGuard(_exceptionable, {
6826
+ method: "typia.createAssertEquals",
6827
+ path: _path + ".evidence",
6828
+ expected: "(PlatformEvidenceEnvelope | undefined)",
6829
+ value: input.evidence
6830
+ }, _errorFactory)) && _ao2(input.evidence, _path + ".evidence", _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
6831
+ method: "typia.createAssertEquals",
6832
+ path: _path + ".evidence",
6833
+ expected: "(PlatformEvidenceEnvelope | undefined)",
6834
+ value: input.evidence
6835
+ }, _errorFactory)) && ((null !== input.textVersion || _assertGuard_1._assertGuard(_exceptionable, {
6836
+ method: "typia.createAssertEquals",
6837
+ path: _path + ".textVersion",
6838
+ expected: "undefined",
6839
+ value: input.textVersion
6840
+ }, _errorFactory)) && (void 0 === input.textVersion || _assertGuard_1._assertGuard(_exceptionable, {
6841
+ method: "typia.createAssertEquals",
6842
+ path: _path + ".textVersion",
6843
+ expected: "undefined",
6844
+ value: input.textVersion
6845
+ }, _errorFactory))) && (5 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every((key) => {
6846
+ if (["kind", "topic", "state", "source", "at", "evidence", "textVersion"].some((prop) => key === prop))
6847
+ return true;
6848
+ const value = input[key];
6849
+ if (void 0 === value)
6850
+ return true;
6851
+ return _assertGuard_1._assertGuard(_exceptionable, {
6852
+ method: "typia.createAssertEquals",
6853
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
6854
+ expected: "undefined",
6855
+ value
6856
+ }, _errorFactory);
6857
+ })));
6858
+ const _ao5 = (input, _path, _exceptionable = true) => ("topic-preference" === input.kind || _assertGuard_1._assertGuard(_exceptionable, {
6859
+ method: "typia.createAssertEquals",
6860
+ path: _path + ".kind",
6861
+ expected: '"topic-preference"',
6862
+ value: input.kind
6863
+ }, _errorFactory)) && ("string" === typeof input.topic && (1 <= input.topic.length || _assertGuard_1._assertGuard(_exceptionable, {
6864
+ method: "typia.createAssertEquals",
6865
+ path: _path + ".topic",
6866
+ expected: "string & MinLength<1>",
6867
+ value: input.topic
6868
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
6869
+ method: "typia.createAssertEquals",
6870
+ path: _path + ".topic",
6871
+ expected: "(string & MinLength<1>)",
6872
+ value: input.topic
6873
+ }, _errorFactory)) && ("granted" === input.state || "withdrawn" === input.state || _assertGuard_1._assertGuard(_exceptionable, {
6874
+ method: "typia.createAssertEquals",
6875
+ path: _path + ".state",
6876
+ expected: '("granted" | "withdrawn")',
6877
+ value: input.state
6878
+ }, _errorFactory)) && ("player" === input.source || _assertGuard_1._assertGuard(_exceptionable, {
6879
+ method: "typia.createAssertEquals",
6880
+ path: _path + ".source",
6881
+ expected: '"player"',
6882
+ value: input.source
6883
+ }, _errorFactory)) && ("string" === typeof input.at && (_isFormatDateTime_1._isFormatDateTime(input.at) || _assertGuard_1._assertGuard(_exceptionable, {
6884
+ method: "typia.createAssertEquals",
6885
+ path: _path + ".at",
6886
+ expected: 'string & Format<"date-time">',
6887
+ value: input.at
6888
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
6889
+ method: "typia.createAssertEquals",
6890
+ path: _path + ".at",
6891
+ expected: '(string & Format<"date-time">)',
6892
+ value: input.at
6893
+ }, _errorFactory)) && ((null !== input.evidence || _assertGuard_1._assertGuard(_exceptionable, {
6894
+ method: "typia.createAssertEquals",
6895
+ path: _path + ".evidence",
6896
+ expected: "undefined",
6897
+ value: input.evidence
6898
+ }, _errorFactory)) && (void 0 === input.evidence || _assertGuard_1._assertGuard(_exceptionable, {
6899
+ method: "typia.createAssertEquals",
6900
+ path: _path + ".evidence",
6901
+ expected: "undefined",
6902
+ value: input.evidence
6903
+ }, _errorFactory))) && ((null !== input.textVersion || _assertGuard_1._assertGuard(_exceptionable, {
6904
+ method: "typia.createAssertEquals",
6905
+ path: _path + ".textVersion",
6906
+ expected: "undefined",
6907
+ value: input.textVersion
6908
+ }, _errorFactory)) && (void 0 === input.textVersion || _assertGuard_1._assertGuard(_exceptionable, {
6909
+ method: "typia.createAssertEquals",
6910
+ path: _path + ".textVersion",
6911
+ expected: "undefined",
6912
+ value: input.textVersion
6913
+ }, _errorFactory))) && (5 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every((key) => {
6914
+ if (["kind", "topic", "state", "source", "at", "evidence", "textVersion"].some((prop) => key === prop))
6915
+ return true;
6916
+ const value = input[key];
6917
+ if (void 0 === value)
6918
+ return true;
6919
+ return _assertGuard_1._assertGuard(_exceptionable, {
6920
+ method: "typia.createAssertEquals",
6921
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
6922
+ expected: "undefined",
6923
+ value
6924
+ }, _errorFactory);
6925
+ })));
6926
+ const _ao6 = (input, _path, _exceptionable = true) => ("advertising" === input.kind || "night" === input.kind || _assertGuard_1._assertGuard(_exceptionable, {
6927
+ method: "typia.createAssertEquals",
6928
+ path: _path + ".kind",
6929
+ expected: '("advertising" | "night")',
6930
+ value: input.kind
6931
+ }, _errorFactory)) && ((null !== input.topic || _assertGuard_1._assertGuard(_exceptionable, {
6932
+ method: "typia.createAssertEquals",
6933
+ path: _path + ".topic",
6934
+ expected: "undefined",
6935
+ value: input.topic
6936
+ }, _errorFactory)) && (void 0 === input.topic || _assertGuard_1._assertGuard(_exceptionable, {
6937
+ method: "typia.createAssertEquals",
6938
+ path: _path + ".topic",
6939
+ expected: "undefined",
6940
+ value: input.topic
6941
+ }, _errorFactory))) && ("granted" === input.state || "withdrawn" === input.state || _assertGuard_1._assertGuard(_exceptionable, {
6942
+ method: "typia.createAssertEquals",
6943
+ path: _path + ".state",
6944
+ expected: '("granted" | "withdrawn")',
6945
+ value: input.state
6946
+ }, _errorFactory)) && ("player" === input.source || _assertGuard_1._assertGuard(_exceptionable, {
6947
+ method: "typia.createAssertEquals",
6948
+ path: _path + ".source",
6949
+ expected: '"player"',
6950
+ value: input.source
6951
+ }, _errorFactory)) && ("string" === typeof input.at && (_isFormatDateTime_1._isFormatDateTime(input.at) || _assertGuard_1._assertGuard(_exceptionable, {
6952
+ method: "typia.createAssertEquals",
6953
+ path: _path + ".at",
6954
+ expected: 'string & Format<"date-time">',
6955
+ value: input.at
6956
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
6957
+ method: "typia.createAssertEquals",
6958
+ path: _path + ".at",
6959
+ expected: '(string & Format<"date-time">)',
6960
+ value: input.at
6961
+ }, _errorFactory)) && ((null !== input.evidence || _assertGuard_1._assertGuard(_exceptionable, {
6962
+ method: "typia.createAssertEquals",
6963
+ path: _path + ".evidence",
6964
+ expected: "undefined",
6965
+ value: input.evidence
6966
+ }, _errorFactory)) && (void 0 === input.evidence || _assertGuard_1._assertGuard(_exceptionable, {
6967
+ method: "typia.createAssertEquals",
6968
+ path: _path + ".evidence",
6969
+ expected: "undefined",
6970
+ value: input.evidence
6971
+ }, _errorFactory))) && ("string" === typeof input.textVersion && (1 <= input.textVersion.length || _assertGuard_1._assertGuard(_exceptionable, {
6972
+ method: "typia.createAssertEquals",
6973
+ path: _path + ".textVersion",
6974
+ expected: "string & MinLength<1>",
6975
+ value: input.textVersion
6976
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
6977
+ method: "typia.createAssertEquals",
6978
+ path: _path + ".textVersion",
6979
+ expected: "(string & MinLength<1>)",
6980
+ value: input.textVersion
6981
+ }, _errorFactory)) && (5 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every((key) => {
6982
+ if (["kind", "topic", "state", "source", "at", "evidence", "textVersion"].some((prop) => key === prop))
6983
+ return true;
6984
+ const value = input[key];
6985
+ if (void 0 === value)
6986
+ return true;
6987
+ return _assertGuard_1._assertGuard(_exceptionable, {
6988
+ method: "typia.createAssertEquals",
6989
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
6990
+ expected: "undefined",
6991
+ value
6992
+ }, _errorFactory);
6993
+ })));
6994
+ const _au0 = (input, _path, _exceptionable = true) => (() => {
6995
+ if ("advertising" === input.kind || "night" === input.kind)
6996
+ return _ao6(input, _path, _exceptionable);
6997
+ else if ("topic-preference" === input.kind)
6998
+ return _ao5(input, _path, _exceptionable);
6999
+ else if ("host-agreement" === input.kind)
7000
+ return _ao4(input, _path, _exceptionable);
7001
+ else if ("delivery-permission" === input.kind)
7002
+ return _ao1(input, _path, _exceptionable);
7003
+ else
7004
+ return _assertGuard_1._assertGuard(_exceptionable, {
7005
+ method: "typia.createAssertEquals",
7006
+ path: _path,
7007
+ expected: _ae1,
7008
+ value: input
7009
+ }, _errorFactory);
7010
+ })();
7011
+ const _io0 = (input, _exceptionable = true) => Array.isArray(input.records) && input.records.every((elem, _index1) => "object" === typeof elem && null !== elem && _iu0(elem, _exceptionable)) && (1 === Object.keys(input).length || Object.keys(input).every((key) => {
7012
+ if (["records"].some((prop) => key === prop))
7013
+ return true;
7014
+ const value = input[key];
7015
+ if (void 0 === value)
7016
+ return true;
7017
+ return false;
7018
+ }));
7019
+ const _io1 = (input, _exceptionable = true) => "delivery-permission" === input.kind && (null !== input.topic && void 0 === input.topic) && ("blocked" === input.state || "denied" === input.state || "granted" === input.state || "prompt-with-rationale" === input.state) && ("client-report" === input.source || "player" === input.source) && ("string" === typeof input.at && _isFormatDateTime_1._isFormatDateTime(input.at)) && (void 0 === input.evidence || "object" === typeof input.evidence && null !== input.evidence && _io2(input.evidence, _exceptionable)) && (null !== input.textVersion && void 0 === input.textVersion) && (4 === Object.keys(input).length || Object.keys(input).every((key) => {
7020
+ if (["kind", "topic", "state", "source", "at", "evidence", "textVersion"].some((prop) => key === prop))
7021
+ return true;
7022
+ const value = input[key];
7023
+ if (void 0 === value)
7024
+ return true;
7025
+ return false;
7026
+ }));
7027
+ const _io2 = (input, _exceptionable = true) => "string" === typeof input.schema && ("object" === typeof input.payload && null !== input.payload && false === Array.isArray(input.payload) && _io3(input.payload, _exceptionable)) && (2 === Object.keys(input).length || Object.keys(input).every((key) => {
7028
+ if (["schema", "payload"].some((prop) => key === prop))
7029
+ return true;
7030
+ const value = input[key];
7031
+ if (void 0 === value)
7032
+ return true;
7033
+ return false;
7034
+ }));
7035
+ const _io3 = (input, _exceptionable = true) => Object.keys(input).every((key) => {
7036
+ const value = input[key];
7037
+ if (void 0 === value)
7038
+ return true;
7039
+ return "string" === typeof value || "number" === typeof value || "boolean" === typeof value;
7040
+ });
7041
+ const _io4 = (input, _exceptionable = true) => "host-agreement" === input.kind && ("string" === typeof input.topic && 1 <= input.topic.length) && ("blocked" === input.state || "denied" === input.state || "granted" === input.state || "prompt-with-rationale" === input.state) && ("client-report" === input.source || "provider" === input.source) && ("string" === typeof input.at && _isFormatDateTime_1._isFormatDateTime(input.at)) && (void 0 === input.evidence || "object" === typeof input.evidence && null !== input.evidence && _io2(input.evidence, _exceptionable)) && (null !== input.textVersion && void 0 === input.textVersion) && (5 === Object.keys(input).length || Object.keys(input).every((key) => {
7042
+ if (["kind", "topic", "state", "source", "at", "evidence", "textVersion"].some((prop) => key === prop))
7043
+ return true;
7044
+ const value = input[key];
7045
+ if (void 0 === value)
7046
+ return true;
7047
+ return false;
7048
+ }));
7049
+ const _io5 = (input, _exceptionable = true) => "topic-preference" === input.kind && ("string" === typeof input.topic && 1 <= input.topic.length) && ("granted" === input.state || "withdrawn" === input.state) && "player" === input.source && ("string" === typeof input.at && _isFormatDateTime_1._isFormatDateTime(input.at)) && (null !== input.evidence && void 0 === input.evidence) && (null !== input.textVersion && void 0 === input.textVersion) && (5 === Object.keys(input).length || Object.keys(input).every((key) => {
7050
+ if (["kind", "topic", "state", "source", "at", "evidence", "textVersion"].some((prop) => key === prop))
7051
+ return true;
7052
+ const value = input[key];
7053
+ if (void 0 === value)
7054
+ return true;
7055
+ return false;
7056
+ }));
7057
+ const _io6 = (input, _exceptionable = true) => ("advertising" === input.kind || "night" === input.kind) && (null !== input.topic && void 0 === input.topic) && ("granted" === input.state || "withdrawn" === input.state) && "player" === input.source && ("string" === typeof input.at && _isFormatDateTime_1._isFormatDateTime(input.at)) && (null !== input.evidence && void 0 === input.evidence) && ("string" === typeof input.textVersion && 1 <= input.textVersion.length) && (5 === Object.keys(input).length || Object.keys(input).every((key) => {
7058
+ if (["kind", "topic", "state", "source", "at", "evidence", "textVersion"].some((prop) => key === prop))
7059
+ return true;
7060
+ const value = input[key];
7061
+ if (void 0 === value)
7062
+ return true;
7063
+ return false;
7064
+ }));
7065
+ const _iu0 = (input, _exceptionable = true) => (() => {
7066
+ if ("advertising" === input.kind || "night" === input.kind)
7067
+ return _io6(input, _exceptionable);
7068
+ else if ("topic-preference" === input.kind)
7069
+ return _io5(input, _exceptionable);
7070
+ else if ("host-agreement" === input.kind)
7071
+ return _io4(input, _exceptionable);
7072
+ else if ("delivery-permission" === input.kind)
7073
+ return _io1(input, _exceptionable);
7074
+ else
7075
+ return false;
7076
+ })();
7077
+ const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && _io0(input, true);
7078
+ let _errorFactory;
7079
+ return (input, errorFactory) => {
7080
+ if (false === __is(input)) {
7081
+ _errorFactory = errorFactory;
7082
+ ((input2, _path, _exceptionable = true) => ("object" === typeof input2 && null !== input2 || _assertGuard_1._assertGuard(true, {
7083
+ method: "typia.createAssertEquals",
7084
+ path: _path + "",
7085
+ expected: "NotificationBackendBridgeListConsentResult",
7086
+ value: input2
7087
+ }, _errorFactory)) && _ao0(input2, _path + "", true) || _assertGuard_1._assertGuard(true, {
7088
+ method: "typia.createAssertEquals",
7089
+ path: _path + "",
7090
+ expected: "NotificationBackendBridgeListConsentResult",
7091
+ value: input2
7092
+ }, _errorFactory))(input, "$input", true);
7093
+ }
7094
+ return input;
7095
+ };
7096
+ })(), notificationTimeFields.NotificationBackendBridgeListConsentResult);
7097
+ var assertNotificationBackendBridgeSetReminderPayload = withStrictTimes("setReminder payload", /* @__PURE__ */ (() => {
7098
+ const _ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.expectedPlayer && (1 <= input.expectedPlayer.length || _assertGuard_1._assertGuard(_exceptionable, {
7099
+ method: "typia.createAssertEquals",
7100
+ path: _path + ".expectedPlayer",
7101
+ expected: "string & MinLength<1>",
7102
+ value: input.expectedPlayer
7103
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
7104
+ method: "typia.createAssertEquals",
7105
+ path: _path + ".expectedPlayer",
7106
+ expected: "(string & MinLength<1>)",
7107
+ value: input.expectedPlayer
7108
+ }, _errorFactory)) && (("object" === typeof input.reminder && null !== input.reminder || _assertGuard_1._assertGuard(_exceptionable, {
7109
+ method: "typia.createAssertEquals",
7110
+ path: _path + ".reminder",
7111
+ expected: "NotificationBackendBridgeReminder",
7112
+ value: input.reminder
7113
+ }, _errorFactory)) && _ao1(input.reminder, _path + ".reminder", _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
7114
+ method: "typia.createAssertEquals",
7115
+ path: _path + ".reminder",
7116
+ expected: "NotificationBackendBridgeReminder",
7117
+ value: input.reminder
7118
+ }, _errorFactory)) && (2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every((key) => {
7119
+ if (["expectedPlayer", "reminder"].some((prop) => key === prop))
7120
+ return true;
7121
+ const value = input[key];
7122
+ if (void 0 === value)
7123
+ return true;
7124
+ return _assertGuard_1._assertGuard(_exceptionable, {
7125
+ method: "typia.createAssertEquals",
7126
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
7127
+ expected: "undefined",
7128
+ value
7129
+ }, _errorFactory);
7130
+ })));
7131
+ const _ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.topic || _assertGuard_1._assertGuard(_exceptionable, {
7132
+ method: "typia.createAssertEquals",
7133
+ path: _path + ".topic",
7134
+ expected: "string",
7135
+ value: input.topic
7136
+ }, _errorFactory)) && (void 0 === input.templateData || ("object" === typeof input.templateData && null !== input.templateData && false === Array.isArray(input.templateData) || _assertGuard_1._assertGuard(_exceptionable, {
7137
+ method: "typia.createAssertEquals",
7138
+ path: _path + ".templateData",
7139
+ expected: "(Readonly<Record<string, string | number | boolean>> | undefined)",
7140
+ value: input.templateData
7141
+ }, _errorFactory)) && _ao2(input.templateData, _path + ".templateData", _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
7142
+ method: "typia.createAssertEquals",
7143
+ path: _path + ".templateData",
7144
+ expected: "(Readonly<Record<string, string | number | boolean>> | undefined)",
7145
+ value: input.templateData
7146
+ }, _errorFactory)) && ("string" === typeof input.key && (1 <= input.key.length || _assertGuard_1._assertGuard(_exceptionable, {
7147
+ method: "typia.createAssertEquals",
7148
+ path: _path + ".key",
7149
+ expected: "string & MinLength<1>",
7150
+ value: input.key
7151
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
7152
+ method: "typia.createAssertEquals",
7153
+ path: _path + ".key",
7154
+ expected: "(string & MinLength<1>)",
7155
+ value: input.key
7156
+ }, _errorFactory)) && ("string" === typeof input.fireAt && (_isFormatDateTime_1._isFormatDateTime(input.fireAt) || _assertGuard_1._assertGuard(_exceptionable, {
7157
+ method: "typia.createAssertEquals",
7158
+ path: _path + ".fireAt",
7159
+ expected: 'string & Format<"date-time">',
7160
+ value: input.fireAt
7161
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
7162
+ method: "typia.createAssertEquals",
7163
+ path: _path + ".fireAt",
7164
+ expected: '(string & Format<"date-time">)',
7165
+ value: input.fireAt
7166
+ }, _errorFactory)) && (void 0 === input.link || "string" === typeof input.link && (1 <= input.link.length || _assertGuard_1._assertGuard(_exceptionable, {
7167
+ method: "typia.createAssertEquals",
7168
+ path: _path + ".link",
7169
+ expected: "string & MinLength<1>",
7170
+ value: input.link
7171
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
7172
+ method: "typia.createAssertEquals",
7173
+ path: _path + ".link",
7174
+ expected: "((string & MinLength<1>) | undefined)",
7175
+ value: input.link
7176
+ }, _errorFactory)) && (3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every((key) => {
7177
+ if (["topic", "templateData", "key", "fireAt", "link"].some((prop) => key === prop))
7178
+ return true;
7179
+ const value = input[key];
7180
+ if (void 0 === value)
7181
+ return true;
7182
+ return _assertGuard_1._assertGuard(_exceptionable, {
7183
+ method: "typia.createAssertEquals",
7184
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
7185
+ expected: "undefined",
7186
+ value
7187
+ }, _errorFactory);
7188
+ })));
7189
+ const _ao2 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every((key) => {
7190
+ const value = input[key];
7191
+ if (void 0 === value)
7192
+ return true;
7193
+ return "string" === typeof value || "number" === typeof value || "boolean" === typeof value || _assertGuard_1._assertGuard(_exceptionable, {
7194
+ method: "typia.createAssertEquals",
7195
+ path: _path + __typia_transform__accessExpressionAsString(key),
7196
+ expected: "(boolean | number | string)",
7197
+ value
7198
+ }, _errorFactory);
7199
+ });
7200
+ const _io0 = (input, _exceptionable = true) => "string" === typeof input.expectedPlayer && 1 <= input.expectedPlayer.length && ("object" === typeof input.reminder && null !== input.reminder && _io1(input.reminder, _exceptionable)) && (2 === Object.keys(input).length || Object.keys(input).every((key) => {
7201
+ if (["expectedPlayer", "reminder"].some((prop) => key === prop))
7202
+ return true;
7203
+ const value = input[key];
7204
+ if (void 0 === value)
7205
+ return true;
7206
+ return false;
7207
+ }));
7208
+ const _io1 = (input, _exceptionable = true) => "string" === typeof input.topic && (void 0 === input.templateData || "object" === typeof input.templateData && null !== input.templateData && false === Array.isArray(input.templateData) && _io2(input.templateData, _exceptionable)) && ("string" === typeof input.key && 1 <= input.key.length) && ("string" === typeof input.fireAt && _isFormatDateTime_1._isFormatDateTime(input.fireAt)) && (void 0 === input.link || "string" === typeof input.link && 1 <= input.link.length) && (3 === Object.keys(input).length || Object.keys(input).every((key) => {
7209
+ if (["topic", "templateData", "key", "fireAt", "link"].some((prop) => key === prop))
7210
+ return true;
7211
+ const value = input[key];
7212
+ if (void 0 === value)
7213
+ return true;
7214
+ return false;
7215
+ }));
7216
+ const _io2 = (input, _exceptionable = true) => Object.keys(input).every((key) => {
7217
+ const value = input[key];
7218
+ if (void 0 === value)
7219
+ return true;
7220
+ return "string" === typeof value || "number" === typeof value || "boolean" === typeof value;
7221
+ });
7222
+ const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && _io0(input, true);
7223
+ let _errorFactory;
7224
+ return (input, errorFactory) => {
7225
+ if (false === __is(input)) {
7226
+ _errorFactory = errorFactory;
7227
+ ((input2, _path, _exceptionable = true) => ("object" === typeof input2 && null !== input2 || _assertGuard_1._assertGuard(true, {
7228
+ method: "typia.createAssertEquals",
7229
+ path: _path + "",
7230
+ expected: "NotificationBackendBridgeSetReminderPayload",
7231
+ value: input2
7232
+ }, _errorFactory)) && _ao0(input2, _path + "", true) || _assertGuard_1._assertGuard(true, {
7233
+ method: "typia.createAssertEquals",
7234
+ path: _path + "",
7235
+ expected: "NotificationBackendBridgeSetReminderPayload",
7236
+ value: input2
7237
+ }, _errorFactory))(input, "$input", true);
7238
+ }
7239
+ return input;
7240
+ };
7241
+ })(), notificationTimeFields.NotificationBackendBridgeSetReminderPayload);
7242
+ var assertNotificationBackendBridgeListNoticesResult = withStrictTimes("listNotices result", /* @__PURE__ */ (() => {
7243
+ const _ae0 = '{ readonly kind: "advertising" | "night"; readonly state: "granted" | "withdrawn"; readonly at: IsoDateTime; readonly textVersion?: NonEmptyString; }';
7244
+ const _ae1 = '("consent-result.advertising.granted" | "consent-result.advertising.refused" | "consent-result.advertising.withdrawn" | "consent-result.night.granted" | "consent-result.night.refused" | "consent-result.night.withdrawn" | "reconfirmation.advertising" | "reconfirmation.night")';
7245
+ const _ao0 = (input, _path, _exceptionable = true) => ((Array.isArray(input.notices) || _assertGuard_1._assertGuard(_exceptionable, {
7246
+ method: "typia.createAssertEquals",
7247
+ path: _path + ".notices",
7248
+ expected: "ReadonlyArray<NotificationNotice>",
7249
+ value: input.notices
7250
+ }, _errorFactory)) && input.notices.every((elem, _index2) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
7251
+ method: "typia.createAssertEquals",
7252
+ path: _path + ".notices[" + _index2 + "]",
7253
+ expected: "NotificationNotice",
7254
+ value: elem
7255
+ }, _errorFactory)) && _ao1(elem, _path + ".notices[" + _index2 + "]", _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
7256
+ method: "typia.createAssertEquals",
7257
+ path: _path + ".notices[" + _index2 + "]",
7258
+ expected: "NotificationNotice",
7259
+ value: elem
7260
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
7261
+ method: "typia.createAssertEquals",
7262
+ path: _path + ".notices",
7263
+ expected: "ReadonlyArray<NotificationNotice>",
7264
+ value: input.notices
7265
+ }, _errorFactory)) && (1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every((key) => {
7266
+ if (["notices"].some((prop) => key === prop))
7267
+ return true;
7268
+ const value = input[key];
7269
+ if (void 0 === value)
7270
+ return true;
7271
+ return _assertGuard_1._assertGuard(_exceptionable, {
7272
+ method: "typia.createAssertEquals",
7273
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
7274
+ expected: "undefined",
7275
+ value
7276
+ }, _errorFactory);
7277
+ })));
7278
+ const _ao1 = (input, _path, _exceptionable = true) => ("consent-result" === input.kind || "reconfirmation" === input.kind || _assertGuard_1._assertGuard(_exceptionable, {
7279
+ method: "typia.createAssertEquals",
7280
+ path: _path + ".kind",
7281
+ expected: '("consent-result" | "reconfirmation")',
7282
+ value: input.kind
7283
+ }, _errorFactory)) && (("object" === typeof input.record && null !== input.record || _assertGuard_1._assertGuard(_exceptionable, {
7284
+ method: "typia.createAssertEquals",
7285
+ path: _path + ".record",
7286
+ expected: _ae0,
7287
+ value: input.record
7288
+ }, _errorFactory)) && _ao2(input.record, _path + ".record", _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
5302
7289
  method: "typia.createAssertEquals",
5303
7290
  path: _path + ".record",
5304
7291
  expected: _ae0,
@@ -5331,7 +7318,7 @@ var assertNotificationNotice = withStrictTimes("notice", /* @__PURE__ */ (() =>
5331
7318
  value
5332
7319
  }, _errorFactory);
5333
7320
  })));
5334
- const _ao1 = (input, _path, _exceptionable = true) => ("advertising" === input.kind || "night" === input.kind || _assertGuard_1._assertGuard(_exceptionable, {
7321
+ const _ao2 = (input, _path, _exceptionable = true) => ("advertising" === input.kind || "night" === input.kind || _assertGuard_1._assertGuard(_exceptionable, {
5335
7322
  method: "typia.createAssertEquals",
5336
7323
  path: _path + ".kind",
5337
7324
  expected: '("advertising" | "night")',
@@ -5374,7 +7361,15 @@ var assertNotificationNotice = withStrictTimes("notice", /* @__PURE__ */ (() =>
5374
7361
  value
5375
7362
  }, _errorFactory);
5376
7363
  })));
5377
- const _io0 = (input, _exceptionable = true) => ("consent-result" === input.kind || "reconfirmation" === input.kind) && ("object" === typeof input.record && null !== input.record && _io1(input.record, _exceptionable)) && ("string" === typeof input.dueBy && _isFormatDate_1._isFormatDate(input.dueBy)) && ("consent-result.advertising.granted" === input.variant || "consent-result.advertising.refused" === input.variant || "consent-result.advertising.withdrawn" === input.variant || "consent-result.night.granted" === input.variant || "consent-result.night.refused" === input.variant || "consent-result.night.withdrawn" === input.variant || "reconfirmation.advertising" === input.variant || "reconfirmation.night" === input.variant) && (4 === Object.keys(input).length || Object.keys(input).every((key) => {
7364
+ const _io0 = (input, _exceptionable = true) => Array.isArray(input.notices) && input.notices.every((elem, _index1) => "object" === typeof elem && null !== elem && _io1(elem, _exceptionable)) && (1 === Object.keys(input).length || Object.keys(input).every((key) => {
7365
+ if (["notices"].some((prop) => key === prop))
7366
+ return true;
7367
+ const value = input[key];
7368
+ if (void 0 === value)
7369
+ return true;
7370
+ return false;
7371
+ }));
7372
+ const _io1 = (input, _exceptionable = true) => ("consent-result" === input.kind || "reconfirmation" === input.kind) && ("object" === typeof input.record && null !== input.record && _io2(input.record, _exceptionable)) && ("string" === typeof input.dueBy && _isFormatDate_1._isFormatDate(input.dueBy)) && ("consent-result.advertising.granted" === input.variant || "consent-result.advertising.refused" === input.variant || "consent-result.advertising.withdrawn" === input.variant || "consent-result.night.granted" === input.variant || "consent-result.night.refused" === input.variant || "consent-result.night.withdrawn" === input.variant || "reconfirmation.advertising" === input.variant || "reconfirmation.night" === input.variant) && (4 === Object.keys(input).length || Object.keys(input).every((key) => {
5378
7373
  if (["kind", "record", "dueBy", "variant"].some((prop) => key === prop))
5379
7374
  return true;
5380
7375
  const value = input[key];
@@ -5382,7 +7377,7 @@ var assertNotificationNotice = withStrictTimes("notice", /* @__PURE__ */ (() =>
5382
7377
  return true;
5383
7378
  return false;
5384
7379
  }));
5385
- const _io1 = (input, _exceptionable = true) => ("advertising" === input.kind || "night" === input.kind) && ("granted" === input.state || "withdrawn" === input.state) && ("string" === typeof input.at && _isFormatDateTime_1._isFormatDateTime(input.at)) && (void 0 === input.textVersion || "string" === typeof input.textVersion && 1 <= input.textVersion.length) && (3 === Object.keys(input).length || Object.keys(input).every((key) => {
7380
+ const _io2 = (input, _exceptionable = true) => ("advertising" === input.kind || "night" === input.kind) && ("granted" === input.state || "withdrawn" === input.state) && ("string" === typeof input.at && _isFormatDateTime_1._isFormatDateTime(input.at)) && (void 0 === input.textVersion || "string" === typeof input.textVersion && 1 <= input.textVersion.length) && (3 === Object.keys(input).length || Object.keys(input).every((key) => {
5386
7381
  if (["kind", "state", "at", "textVersion"].some((prop) => key === prop))
5387
7382
  return true;
5388
7383
  const value = input[key];
@@ -5398,96 +7393,46 @@ var assertNotificationNotice = withStrictTimes("notice", /* @__PURE__ */ (() =>
5398
7393
  ((input2, _path, _exceptionable = true) => ("object" === typeof input2 && null !== input2 || _assertGuard_1._assertGuard(true, {
5399
7394
  method: "typia.createAssertEquals",
5400
7395
  path: _path + "",
5401
- expected: "NotificationNotice",
7396
+ expected: "NotificationBackendBridgeListNoticesResult",
5402
7397
  value: input2
5403
7398
  }, _errorFactory)) && _ao0(input2, _path + "", true) || _assertGuard_1._assertGuard(true, {
5404
7399
  method: "typia.createAssertEquals",
5405
7400
  path: _path + "",
5406
- expected: "NotificationNotice",
7401
+ expected: "NotificationBackendBridgeListNoticesResult",
5407
7402
  value: input2
5408
7403
  }, _errorFactory))(input, "$input", true);
5409
7404
  }
5410
7405
  return input;
5411
7406
  };
5412
- })(), notificationTimeFields.NotificationNotice);
5413
- var assertRecordNotificationNoticeInput = withStrictTimes("notice to record", /* @__PURE__ */ (() => {
5414
- const _ae0 = '{ readonly kind: "advertising" | "night"; readonly state: "granted" | "withdrawn"; readonly at: IsoDateTime; readonly textVersion?: NonEmptyString; }';
5415
- const _ae1 = '("consent-result.advertising.granted" | "consent-result.advertising.refused" | "consent-result.advertising.withdrawn" | "consent-result.night.granted" | "consent-result.night.refused" | "consent-result.night.withdrawn" | "reconfirmation.advertising" | "reconfirmation.night")';
5416
- const _ao0 = (input, _path, _exceptionable = true) => ("consent-result" === input.kind || "reconfirmation" === input.kind || _assertGuard_1._assertGuard(_exceptionable, {
5417
- method: "typia.createAssertEquals",
5418
- path: _path + ".kind",
5419
- expected: '("consent-result" | "reconfirmation")',
5420
- value: input.kind
5421
- }, _errorFactory)) && (("object" === typeof input.record && null !== input.record || _assertGuard_1._assertGuard(_exceptionable, {
5422
- method: "typia.createAssertEquals",
5423
- path: _path + ".record",
5424
- expected: _ae0,
5425
- value: input.record
5426
- }, _errorFactory)) && _ao1(input.record, _path + ".record", _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
7407
+ })(), notificationTimeFields.NotificationBackendBridgeListNoticesResult);
7408
+ var assertNotificationBackendBridgeRecordNoticePayload = withStrictTimes("recordNotice payload", /* @__PURE__ */ (() => {
7409
+ const _ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.expectedPlayer && (1 <= input.expectedPlayer.length || _assertGuard_1._assertGuard(_exceptionable, {
5427
7410
  method: "typia.createAssertEquals",
5428
- path: _path + ".record",
5429
- expected: _ae0,
5430
- value: input.record
5431
- }, _errorFactory)) && ("string" === typeof input.dueBy && (_isFormatDate_1._isFormatDate(input.dueBy) || _assertGuard_1._assertGuard(_exceptionable, {
5432
- method: "typia.createAssertEquals",
5433
- path: _path + ".dueBy",
5434
- expected: 'string & Format<"date">',
5435
- value: input.dueBy
7411
+ path: _path + ".expectedPlayer",
7412
+ expected: "string & MinLength<1>",
7413
+ value: input.expectedPlayer
5436
7414
  }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
5437
7415
  method: "typia.createAssertEquals",
5438
- path: _path + ".dueBy",
5439
- expected: '(string & Format<"date">)',
5440
- value: input.dueBy
5441
- }, _errorFactory)) && ("consent-result.advertising.granted" === input.variant || "consent-result.advertising.refused" === input.variant || "consent-result.advertising.withdrawn" === input.variant || "consent-result.night.granted" === input.variant || "consent-result.night.refused" === input.variant || "consent-result.night.withdrawn" === input.variant || "reconfirmation.advertising" === input.variant || "reconfirmation.night" === input.variant || _assertGuard_1._assertGuard(_exceptionable, {
5442
- method: "typia.createAssertEquals",
5443
- path: _path + ".variant",
5444
- expected: _ae1,
5445
- value: input.variant
5446
- }, _errorFactory)) && (4 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every((key) => {
5447
- if (["kind", "record", "dueBy", "variant"].some((prop) => key === prop))
5448
- return true;
5449
- const value = input[key];
5450
- if (void 0 === value)
5451
- return true;
5452
- return _assertGuard_1._assertGuard(_exceptionable, {
5453
- method: "typia.createAssertEquals",
5454
- path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
5455
- expected: "undefined",
5456
- value
5457
- }, _errorFactory);
5458
- })));
5459
- const _ao1 = (input, _path, _exceptionable = true) => ("advertising" === input.kind || "night" === input.kind || _assertGuard_1._assertGuard(_exceptionable, {
5460
- method: "typia.createAssertEquals",
5461
- path: _path + ".kind",
5462
- expected: '("advertising" | "night")',
5463
- value: input.kind
5464
- }, _errorFactory)) && ("granted" === input.state || "withdrawn" === input.state || _assertGuard_1._assertGuard(_exceptionable, {
5465
- method: "typia.createAssertEquals",
5466
- path: _path + ".state",
5467
- expected: '("granted" | "withdrawn")',
5468
- value: input.state
5469
- }, _errorFactory)) && ("string" === typeof input.at && (_isFormatDateTime_1._isFormatDateTime(input.at) || _assertGuard_1._assertGuard(_exceptionable, {
5470
- method: "typia.createAssertEquals",
5471
- path: _path + ".at",
5472
- expected: 'string & Format<"date-time">',
5473
- value: input.at
5474
- }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
7416
+ path: _path + ".expectedPlayer",
7417
+ expected: "(string & MinLength<1>)",
7418
+ value: input.expectedPlayer
7419
+ }, _errorFactory)) && (("object" === typeof input.notice && null !== input.notice || _assertGuard_1._assertGuard(_exceptionable, {
5475
7420
  method: "typia.createAssertEquals",
5476
- path: _path + ".at",
5477
- expected: '(string & Format<"date-time">)',
5478
- value: input.at
5479
- }, _errorFactory)) && (void 0 === input.textVersion || "string" === typeof input.textVersion && (1 <= input.textVersion.length || _assertGuard_1._assertGuard(_exceptionable, {
7421
+ path: _path + ".notice",
7422
+ expected: "NotificationNoticeIdentity",
7423
+ value: input.notice
7424
+ }, _errorFactory)) && _ao1(input.notice, _path + ".notice", _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
5480
7425
  method: "typia.createAssertEquals",
5481
- path: _path + ".textVersion",
5482
- expected: "string & MinLength<1>",
5483
- value: input.textVersion
5484
- }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
7426
+ path: _path + ".notice",
7427
+ expected: "NotificationNoticeIdentity",
7428
+ value: input.notice
7429
+ }, _errorFactory)) && ("in-game" === input.channel || _assertGuard_1._assertGuard(_exceptionable, {
5485
7430
  method: "typia.createAssertEquals",
5486
- path: _path + ".textVersion",
5487
- expected: "((string & MinLength<1>) | undefined)",
5488
- value: input.textVersion
7431
+ path: _path + ".channel",
7432
+ expected: '"in-game"',
7433
+ value: input.channel
5489
7434
  }, _errorFactory)) && (3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every((key) => {
5490
- if (["kind", "state", "at", "textVersion"].some((prop) => key === prop))
7435
+ if (["expectedPlayer", "notice", "channel"].some((prop) => key === prop))
5491
7436
  return true;
5492
7437
  const value = input[key];
5493
7438
  if (void 0 === value)
@@ -5499,7 +7444,7 @@ var assertRecordNotificationNoticeInput = withStrictTimes("notice to record", /*
5499
7444
  value
5500
7445
  }, _errorFactory);
5501
7446
  })));
5502
- const _ao2 = (input, _path, _exceptionable = true) => ("consent-result" === input.kind || "reconfirmation" === input.kind || _assertGuard_1._assertGuard(_exceptionable, {
7447
+ const _ao1 = (input, _path, _exceptionable = true) => ("consent-result" === input.kind || "reconfirmation" === input.kind || _assertGuard_1._assertGuard(_exceptionable, {
5503
7448
  method: "typia.createAssertEquals",
5504
7449
  path: _path + ".kind",
5505
7450
  expected: '("consent-result" | "reconfirmation")',
@@ -5509,7 +7454,7 @@ var assertRecordNotificationNoticeInput = withStrictTimes("notice to record", /*
5509
7454
  path: _path + ".record",
5510
7455
  expected: '{ readonly kind: "advertising" | "night"; readonly at: IsoDateTime; }',
5511
7456
  value: input.record
5512
- }, _errorFactory)) && _ao3(input.record, _path + ".record", _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
7457
+ }, _errorFactory)) && _ao2(input.record, _path + ".record", _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
5513
7458
  method: "typia.createAssertEquals",
5514
7459
  path: _path + ".record",
5515
7460
  expected: '{ readonly kind: "advertising" | "night"; readonly at: IsoDateTime; }',
@@ -5537,7 +7482,7 @@ var assertRecordNotificationNoticeInput = withStrictTimes("notice to record", /*
5537
7482
  value
5538
7483
  }, _errorFactory);
5539
7484
  })));
5540
- const _ao3 = (input, _path, _exceptionable = true) => ("advertising" === input.kind || "night" === input.kind || _assertGuard_1._assertGuard(_exceptionable, {
7485
+ const _ao2 = (input, _path, _exceptionable = true) => ("advertising" === input.kind || "night" === input.kind || _assertGuard_1._assertGuard(_exceptionable, {
5541
7486
  method: "typia.createAssertEquals",
5542
7487
  path: _path + ".kind",
5543
7488
  expected: '("advertising" | "night")',
@@ -5565,29 +7510,15 @@ var assertRecordNotificationNoticeInput = withStrictTimes("notice to record", /*
5565
7510
  value
5566
7511
  }, _errorFactory);
5567
7512
  })));
5568
- const _au0 = (input, _path, _exceptionable = true) => (() => {
5569
- if (void 0 !== input.variant)
5570
- return _ao0(input, _path, _exceptionable);
5571
- else
5572
- return _ao2(input, _path, _exceptionable);
5573
- })();
5574
- const _io0 = (input, _exceptionable = true) => ("consent-result" === input.kind || "reconfirmation" === input.kind) && ("object" === typeof input.record && null !== input.record && _io1(input.record, _exceptionable)) && ("string" === typeof input.dueBy && _isFormatDate_1._isFormatDate(input.dueBy)) && ("consent-result.advertising.granted" === input.variant || "consent-result.advertising.refused" === input.variant || "consent-result.advertising.withdrawn" === input.variant || "consent-result.night.granted" === input.variant || "consent-result.night.refused" === input.variant || "consent-result.night.withdrawn" === input.variant || "reconfirmation.advertising" === input.variant || "reconfirmation.night" === input.variant) && (4 === Object.keys(input).length || Object.keys(input).every((key) => {
5575
- if (["kind", "record", "dueBy", "variant"].some((prop) => key === prop))
5576
- return true;
5577
- const value = input[key];
5578
- if (void 0 === value)
5579
- return true;
5580
- return false;
5581
- }));
5582
- const _io1 = (input, _exceptionable = true) => ("advertising" === input.kind || "night" === input.kind) && ("granted" === input.state || "withdrawn" === input.state) && ("string" === typeof input.at && _isFormatDateTime_1._isFormatDateTime(input.at)) && (void 0 === input.textVersion || "string" === typeof input.textVersion && 1 <= input.textVersion.length) && (3 === Object.keys(input).length || Object.keys(input).every((key) => {
5583
- if (["kind", "state", "at", "textVersion"].some((prop) => key === prop))
7513
+ const _io0 = (input, _exceptionable = true) => "string" === typeof input.expectedPlayer && 1 <= input.expectedPlayer.length && ("object" === typeof input.notice && null !== input.notice && _io1(input.notice, _exceptionable)) && "in-game" === input.channel && (3 === Object.keys(input).length || Object.keys(input).every((key) => {
7514
+ if (["expectedPlayer", "notice", "channel"].some((prop) => key === prop))
5584
7515
  return true;
5585
7516
  const value = input[key];
5586
7517
  if (void 0 === value)
5587
7518
  return true;
5588
7519
  return false;
5589
7520
  }));
5590
- const _io2 = (input, _exceptionable = true) => ("consent-result" === input.kind || "reconfirmation" === input.kind) && ("object" === typeof input.record && null !== input.record && _io3(input.record, _exceptionable)) && ("string" === typeof input.dueBy && _isFormatDate_1._isFormatDate(input.dueBy)) && (3 === Object.keys(input).length || Object.keys(input).every((key) => {
7521
+ const _io1 = (input, _exceptionable = true) => ("consent-result" === input.kind || "reconfirmation" === input.kind) && ("object" === typeof input.record && null !== input.record && _io2(input.record, _exceptionable)) && ("string" === typeof input.dueBy && _isFormatDate_1._isFormatDate(input.dueBy)) && (3 === Object.keys(input).length || Object.keys(input).every((key) => {
5591
7522
  if (["kind", "record", "dueBy"].some((prop) => key === prop))
5592
7523
  return true;
5593
7524
  const value = input[key];
@@ -5595,7 +7526,7 @@ var assertRecordNotificationNoticeInput = withStrictTimes("notice to record", /*
5595
7526
  return true;
5596
7527
  return false;
5597
7528
  }));
5598
- const _io3 = (input, _exceptionable = true) => ("advertising" === input.kind || "night" === input.kind) && ("string" === typeof input.at && _isFormatDateTime_1._isFormatDateTime(input.at)) && (2 === Object.keys(input).length || Object.keys(input).every((key) => {
7529
+ const _io2 = (input, _exceptionable = true) => ("advertising" === input.kind || "night" === input.kind) && ("string" === typeof input.at && _isFormatDateTime_1._isFormatDateTime(input.at)) && (2 === Object.keys(input).length || Object.keys(input).every((key) => {
5599
7530
  if (["kind", "at"].some((prop) => key === prop))
5600
7531
  return true;
5601
7532
  const value = input[key];
@@ -5603,120 +7534,6 @@ var assertRecordNotificationNoticeInput = withStrictTimes("notice to record", /*
5603
7534
  return true;
5604
7535
  return false;
5605
7536
  }));
5606
- const _iu0 = (input, _exceptionable = true) => (() => {
5607
- if (void 0 !== input.variant)
5608
- return _io0(input, _exceptionable);
5609
- else
5610
- return _io2(input, _exceptionable);
5611
- })();
5612
- const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && _iu0(input, true);
5613
- let _errorFactory;
5614
- return (input, errorFactory) => {
5615
- if (false === __is(input)) {
5616
- _errorFactory = errorFactory;
5617
- ((input2, _path, _exceptionable = true) => ("object" === typeof input2 && null !== input2 || _assertGuard_1._assertGuard(true, {
5618
- method: "typia.createAssertEquals",
5619
- path: _path + "",
5620
- expected: "(NotificationNotice | NotificationNoticeIdentity)",
5621
- value: input2
5622
- }, _errorFactory)) && _au0(input2, _path + "", true) || _assertGuard_1._assertGuard(true, {
5623
- method: "typia.createAssertEquals",
5624
- path: _path + "",
5625
- expected: "(NotificationNotice | NotificationNoticeIdentity)",
5626
- value: input2
5627
- }, _errorFactory))(input, "$input", true);
5628
- }
5629
- return input;
5630
- };
5631
- })(), notificationTimeFields.RecordNotificationNoticeInput);
5632
- var assertNotificationBridgeListLocalResult = withStrictTimes("listLocal result", /* @__PURE__ */ (() => {
5633
- const _ao0 = (input, _path, _exceptionable = true) => ((Array.isArray(input.pending) || _assertGuard_1._assertGuard(_exceptionable, {
5634
- method: "typia.createAssertEquals",
5635
- path: _path + ".pending",
5636
- expected: "ReadonlyArray<LocalNotificationEntry>",
5637
- value: input.pending
5638
- }, _errorFactory)) && input.pending.every((elem, _index2) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
5639
- method: "typia.createAssertEquals",
5640
- path: _path + ".pending[" + _index2 + "]",
5641
- expected: "LocalNotificationEntry",
5642
- value: elem
5643
- }, _errorFactory)) && _ao1(elem, _path + ".pending[" + _index2 + "]", _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
5644
- method: "typia.createAssertEquals",
5645
- path: _path + ".pending[" + _index2 + "]",
5646
- expected: "LocalNotificationEntry",
5647
- value: elem
5648
- }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
5649
- method: "typia.createAssertEquals",
5650
- path: _path + ".pending",
5651
- expected: "ReadonlyArray<LocalNotificationEntry>",
5652
- value: input.pending
5653
- }, _errorFactory)) && (1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every((key) => {
5654
- if (["pending"].some((prop) => key === prop))
5655
- return true;
5656
- const value = input[key];
5657
- if (void 0 === value)
5658
- return true;
5659
- return _assertGuard_1._assertGuard(_exceptionable, {
5660
- method: "typia.createAssertEquals",
5661
- path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
5662
- expected: "undefined",
5663
- value
5664
- }, _errorFactory);
5665
- })));
5666
- const _ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.key && (1 <= input.key.length || _assertGuard_1._assertGuard(_exceptionable, {
5667
- method: "typia.createAssertEquals",
5668
- path: _path + ".key",
5669
- expected: "string & CommerceMinLength<1>",
5670
- value: input.key
5671
- }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
5672
- method: "typia.createAssertEquals",
5673
- path: _path + ".key",
5674
- expected: "(string & CommerceMinLength<1>)",
5675
- value: input.key
5676
- }, _errorFactory)) && ("string" === typeof input.topic || _assertGuard_1._assertGuard(_exceptionable, {
5677
- method: "typia.createAssertEquals",
5678
- path: _path + ".topic",
5679
- expected: "string",
5680
- value: input.topic
5681
- }, _errorFactory)) && ("string" === typeof input.fireAt && (_isFormatDateTime_1._isFormatDateTime(input.fireAt) || _assertGuard_1._assertGuard(_exceptionable, {
5682
- method: "typia.createAssertEquals",
5683
- path: _path + ".fireAt",
5684
- expected: "string & CommerceDateTimeFormat",
5685
- value: input.fireAt
5686
- }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
5687
- method: "typia.createAssertEquals",
5688
- path: _path + ".fireAt",
5689
- expected: "(string & CommerceDateTimeFormat)",
5690
- value: input.fireAt
5691
- }, _errorFactory)) && (3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every((key) => {
5692
- if (["key", "topic", "fireAt"].some((prop) => key === prop))
5693
- return true;
5694
- const value = input[key];
5695
- if (void 0 === value)
5696
- return true;
5697
- return _assertGuard_1._assertGuard(_exceptionable, {
5698
- method: "typia.createAssertEquals",
5699
- path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
5700
- expected: "undefined",
5701
- value
5702
- }, _errorFactory);
5703
- })));
5704
- const _io0 = (input, _exceptionable = true) => Array.isArray(input.pending) && input.pending.every((elem, _index1) => "object" === typeof elem && null !== elem && _io1(elem, _exceptionable)) && (1 === Object.keys(input).length || Object.keys(input).every((key) => {
5705
- if (["pending"].some((prop) => key === prop))
5706
- return true;
5707
- const value = input[key];
5708
- if (void 0 === value)
5709
- return true;
5710
- return false;
5711
- }));
5712
- const _io1 = (input, _exceptionable = true) => "string" === typeof input.key && 1 <= input.key.length && "string" === typeof input.topic && ("string" === typeof input.fireAt && _isFormatDateTime_1._isFormatDateTime(input.fireAt)) && (3 === Object.keys(input).length || Object.keys(input).every((key) => {
5713
- if (["key", "topic", "fireAt"].some((prop) => key === prop))
5714
- return true;
5715
- const value = input[key];
5716
- if (void 0 === value)
5717
- return true;
5718
- return false;
5719
- }));
5720
7537
  const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && _io0(input, true);
5721
7538
  let _errorFactory;
5722
7539
  return (input, errorFactory) => {
@@ -5725,18 +7542,18 @@ var assertNotificationBridgeListLocalResult = withStrictTimes("listLocal result"
5725
7542
  ((input2, _path, _exceptionable = true) => ("object" === typeof input2 && null !== input2 || _assertGuard_1._assertGuard(true, {
5726
7543
  method: "typia.createAssertEquals",
5727
7544
  path: _path + "",
5728
- expected: "NotificationBridgeListLocalResult",
7545
+ expected: "NotificationBackendBridgeRecordNoticePayload",
5729
7546
  value: input2
5730
7547
  }, _errorFactory)) && _ao0(input2, _path + "", true) || _assertGuard_1._assertGuard(true, {
5731
7548
  method: "typia.createAssertEquals",
5732
7549
  path: _path + "",
5733
- expected: "NotificationBridgeListLocalResult",
7550
+ expected: "NotificationBackendBridgeRecordNoticePayload",
5734
7551
  value: input2
5735
7552
  }, _errorFactory))(input, "$input", true);
5736
7553
  }
5737
7554
  return input;
5738
7555
  };
5739
- })(), notificationTimeFields.NotificationBridgeListLocalResult);
7556
+ })(), notificationTimeFields.NotificationBackendBridgeRecordNoticePayload);
5740
7557
 
5741
7558
  // node_modules/.cache/mpgd-native-build/packages/catalog/src/notification-topics-shape.js
5742
7559
  import * as _isTypeUint32_12 from "typia/lib/internal/_isTypeUint32";
@@ -6803,6 +8620,19 @@ var notificationsV2MethodList = [
6803
8620
  ];
6804
8621
  var bridgeNotificationsV2Methods = Object.freeze(notificationsV2MethodList);
6805
8622
  var bridgeNotificationsV2MethodSet = new Set(bridgeNotificationsV2Methods);
8623
+ var notificationsBackendMethodList = [
8624
+ "notifications.backend.getSession",
8625
+ "notifications.backend.recordConsent",
8626
+ "notifications.backend.listConsent",
8627
+ "notifications.backend.registerEndpoint",
8628
+ "notifications.backend.unregisterEndpoint",
8629
+ "notifications.backend.setReminder",
8630
+ "notifications.backend.cancelReminder",
8631
+ "notifications.backend.listNotices",
8632
+ "notifications.backend.recordNotice"
8633
+ ];
8634
+ var bridgeNotificationsBackendMethods = Object.freeze(notificationsBackendMethodList);
8635
+ var bridgeNotificationsBackendMethodSet = new Set(bridgeNotificationsBackendMethods);
6806
8636
 
6807
8637
  // node_modules/.cache/mpgd-native-build/adapters/devvit/src/catalog-products.js
6808
8638
  var defaultDevvitCatalogTarget = "reddit";
@@ -7021,6 +8851,16 @@ var devvitNotificationSchedulerTasks = Object.freeze({
7021
8851
  });
7022
8852
 
7023
8853
  // node_modules/.cache/mpgd-native-build/packages/bridge/src/notifications.js
8854
+ var notificationsBackendBridgeHostCodes = Object.freeze({
8855
+ /** The request has no authenticated player (a logged-out Devvit viewer). */
8856
+ signedOut: "NOTIFICATIONS_SIGNED_OUT",
8857
+ /**
8858
+ * The request's authenticated player is not the call's `expectedPlayer`:
8859
+ * another player signed in since the call began. Nothing was read or
8860
+ * changed; the client reads the session again.
8861
+ */
8862
+ sessionChanged: "NOTIFICATIONS_SESSION_CHANGED"
8863
+ });
7024
8864
  var hostCodeCharacters = "[A-Za-z0-9_.:-]{1,128}";
7025
8865
  var hostCodeValue = new RegExp(`^${hostCodeCharacters}$`, "u");
7026
8866
  var hostCodeSuffix = new RegExp(`\\(host code (${hostCodeCharacters})\\)$`, "u");
@@ -14593,6 +16433,15 @@ var commonEdits = {
14593
16433
  "src/platform/buildGateways/capacitorAndroid.ts": [gatewayImport, gatewayProviders("android")],
14594
16434
  "src/platform/buildGateways/capacitorIos.ts": [gatewayImport, gatewayProviders("ios")],
14595
16435
  "src/platform/buildGateways/reddit.ts": [
16436
+ {
16437
+ anchor: " createDevvitCommerceProducts,\n createDevvitPlatformGateway,\n",
16438
+ replacement: [
16439
+ " createDevvitCommerceProducts,",
16440
+ " createDevvitNotificationsBackend,",
16441
+ " createDevvitPlatformGateway,",
16442
+ ""
16443
+ ].join("\n")
16444
+ },
14596
16445
  {
14597
16446
  anchor: "import { createDevvitWebPaymentsClient } from '@mpgd/adapter-devvit/web';\n",
14598
16447
  replacement: [
@@ -14606,6 +16455,7 @@ var commonEdits = {
14606
16455
  {
14607
16456
  anchor: "import type { RuntimeConfig } from '../runtimeDetector';\n",
14608
16457
  replacement: [
16458
+ "import { setStarterHostedNotificationBackend } from '../notificationBackend';",
14609
16459
  "import { starterNotificationTopics } from '../notifications';",
14610
16460
  "import type { RuntimeConfig } from '../runtimeDetector';",
14611
16461
  ""
@@ -14631,7 +16481,14 @@ var commonEdits = {
14631
16481
  " runtime: RuntimeConfig,",
14632
16482
  "): Pick<Parameters<typeof createDevvitPlatformGateway>[0], 'notifications'> {",
14633
16483
  " const topics = starterNotificationTopics(runtime.configTarget).map((topic) => topic.id);",
14634
- " return topics.length === 0 ? {} : { notifications: { topics } };",
16484
+ " if (topics.length === 0) {",
16485
+ " return {};",
16486
+ " }",
16487
+ " // The runtime's backend is the Devvit server (consent records, reminders, notices for the",
16488
+ " // logged-in Reddit user), over the same server bridge as the gateway; created on first use.",
16489
+ " setStarterHostedNotificationBackend(runtime.configTarget, () =>",
16490
+ " createDevvitNotificationsBackend({ appVersion: runtime.appVersion, buildId: runtime.buildId }));",
16491
+ " return { notifications: { topics } };",
14635
16492
  "}",
14636
16493
  "",
14637
16494
  "function createCommerceOptions(): DevvitGatewayCommerceOptions | undefined {",
@@ -14668,6 +16525,7 @@ var commonEdits = {
14668
16525
  " createDevvitCommerceBridgeProducts,",
14669
16526
  " createDevvitCommerceV2BridgeHandler,",
14670
16527
  " createDevvitNotificationService,",
16528
+ " createDevvitNotificationsBackendBridgeHandler,",
14671
16529
  " createDevvitNotificationsV2BridgeHandler,",
14672
16530
  "} from '@mpgd/adapter-devvit/server';",
14673
16531
  ""
@@ -14711,7 +16569,7 @@ var commonEdits = {
14711
16569
  " */",
14712
16570
  "const notificationTopicCatalog = notificationTopicsJson as NotificationTopicCatalog;",
14713
16571
  "const redditNotificationTopics = readRedditNotificationTopics();",
14714
- "const notificationService: Parameters<typeof handleNotificationTask>[0]['notifications'] =",
16572
+ "const notificationService: ReturnType<typeof createDevvitNotificationService>['service'] | undefined =",
14715
16573
  " redditNotificationTopics.length === 0 ? undefined : createNotificationService();",
14716
16574
  "// The opt-in is served only with the service that sends; a refused catalog turns both off.",
14717
16575
  "const notificationsBridge = notificationService === undefined",
@@ -14721,6 +16579,10 @@ var commonEdits = {
14721
16579
  " currentUserId: currentPlayerId,",
14722
16580
  " topics: redditNotificationTopics,",
14723
16581
  " });",
16582
+ "// The webview runtime's backend: consent records, reminders, and notices for the request's user.",
16583
+ "const notificationsBackend = notificationService === undefined",
16584
+ " ? undefined",
16585
+ " : createDevvitNotificationsBackendBridgeHandler({ service: notificationService, context: () => context });",
14724
16586
  "const handleBridgeRequest = createDevvitBridgeHandler({",
14725
16587
  " redis,",
14726
16588
  " currentPlayerId,",
@@ -14728,6 +16590,7 @@ var commonEdits = {
14728
16590
  " storageKeyNamespace: gameName,",
14729
16591
  " ...(commerce === undefined ? {} : { commerce }),",
14730
16592
  " ...(notificationsBridge === undefined ? {} : { notifications: notificationsBridge }),",
16593
+ " ...(notificationsBackend === undefined ? {} : { notificationsBackend }),",
14731
16594
  "});",
14732
16595
  ""
14733
16596
  ].join("\n")
@@ -14759,7 +16622,7 @@ var commonEdits = {
14759
16622
  " * deployment the service refuses turns notifications off, never the game",
14760
16623
  " * server.",
14761
16624
  " */",
14762
- "function createNotificationService(): Parameters<typeof handleNotificationTask>[0]['notifications'] {",
16625
+ "function createNotificationService(): ReturnType<typeof createDevvitNotificationService>['service'] | undefined {",
14763
16626
  " try {",
14764
16627
  " return createDevvitNotificationService({",
14765
16628
  " redis,",
@@ -14900,8 +16763,16 @@ var notificationsCapacitorSupportFiles = Object.freeze([
14900
16763
  "docs/NOTIFICATIONS.md"
14901
16764
  ]);
14902
16765
  var notificationsCapacitorTemplateSupportFiles = Object.freeze([
14903
- "src/platform/serverSession.ts"
16766
+ "src/platform/serverSession.ts",
16767
+ "src/platform/developmentServerSession.ts"
14904
16768
  ]);
16769
+ var notificationsCapacitorTemplateSupportImporters = Object.freeze({
16770
+ "src/platform/developmentServerSession.ts": {
16771
+ importer: "src/platform/serverSession.ts",
16772
+ requires: { packageName: "@mpgd/game-services", exportName: "createDevelopmentServerSession" },
16773
+ warning: "src/platform/serverSession.ts predates development notification sessions (VITE_MPGD_DEV_NOTIFICATION_SESSION); to try notifications locally, copy serverSession.ts and developmentServerSession.ts from the starter template."
16774
+ }
16775
+ });
14905
16776
 
14906
16777
  // node_modules/.cache/mpgd-native-build/packages/cli/src/native-shell-identity.js
14907
16778
  function assertAndroidSettingsAppProject(source) {