@nxtedition/types 1.4.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/settings.d.ts +8 -4
- package/dist/common/settings.js +99 -25
- package/dist/domains/asset.d.ts +16 -0
- package/dist/domains/asset.js +186 -0
- package/dist/domains/general.d.ts +55 -0
- package/dist/domains/general.js +681 -0
- package/dist/domains/media.d.ts +34 -0
- package/dist/domains/media.js +497 -0
- package/dist/domains/permission.d.ts +73 -12
- package/dist/domains/permission.js +1689 -138
- package/dist/domains/settings.js +72 -8
- package/dist/index.d.ts +3 -0
- package/package.json +1 -1
package/dist/domains/media.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { type AssertionGuard as __AssertionGuard } from "typia";
|
|
2
2
|
export interface MediaDomainRecords {
|
|
3
3
|
":media.source": MediaSourceRecord;
|
|
4
|
+
":media.consolidate": MediaConsolidateRecord;
|
|
5
|
+
":media.renders?": MediaRendersRecord;
|
|
4
6
|
}
|
|
5
7
|
export interface MediaSourceRecord {
|
|
6
8
|
input?: {
|
|
@@ -30,3 +32,35 @@ export declare const randomMediaSourceRecord: () => MediaSourceRecord;
|
|
|
30
32
|
export declare const assertGuardMediaSourceRecord: __AssertionGuard<MediaSourceRecord>;
|
|
31
33
|
export declare const stringifyMediaSourceRecord: (input: MediaSourceRecord) => string;
|
|
32
34
|
export declare const assertStringifyMediaSourceRecord: (input: unknown) => string;
|
|
35
|
+
export interface MediaConsolidateRecord {
|
|
36
|
+
source?: unknown;
|
|
37
|
+
target?: unknown;
|
|
38
|
+
profile?: unknown;
|
|
39
|
+
error?: unknown;
|
|
40
|
+
}
|
|
41
|
+
export declare const isMediaConsolidateRecord: (input: unknown) => input is MediaConsolidateRecord;
|
|
42
|
+
export declare const assertMediaConsolidateRecord: (input: unknown) => MediaConsolidateRecord;
|
|
43
|
+
export declare const randomMediaConsolidateRecord: () => MediaConsolidateRecord;
|
|
44
|
+
export declare const assertGuardMediaConsolidateRecord: __AssertionGuard<MediaConsolidateRecord>;
|
|
45
|
+
export declare const stringifyMediaConsolidateRecord: (input: MediaConsolidateRecord) => string;
|
|
46
|
+
export declare const assertStringifyMediaConsolidateRecord: (input: unknown) => string;
|
|
47
|
+
export interface MediaRendersRecord {
|
|
48
|
+
children: MediaRenderRecordValue[];
|
|
49
|
+
}
|
|
50
|
+
export declare const isMediaRendersRecord: (input: unknown) => input is MediaRendersRecord;
|
|
51
|
+
export declare const assertMediaRendersRecord: (input: unknown) => MediaRendersRecord;
|
|
52
|
+
export declare const randomMediaRendersRecord: () => MediaRendersRecord;
|
|
53
|
+
export declare const assertGuardMediaRendersRecord: __AssertionGuard<MediaRendersRecord>;
|
|
54
|
+
export declare const stringifyMediaRendersRecord: (input: MediaRendersRecord) => string;
|
|
55
|
+
export declare const assertStringifyMediaRendersRecord: (input: unknown) => string;
|
|
56
|
+
export interface MediaRenderRecordValue {
|
|
57
|
+
id?: string;
|
|
58
|
+
title?: string;
|
|
59
|
+
children?: MediaRenderRecordValue[];
|
|
60
|
+
}
|
|
61
|
+
export declare const isMediaRenderRecordValue: (input: unknown) => input is MediaRenderRecordValue;
|
|
62
|
+
export declare const assertMediaRenderRecordValue: (input: unknown) => MediaRenderRecordValue;
|
|
63
|
+
export declare const randomMediaRenderRecordValue: () => MediaRenderRecordValue;
|
|
64
|
+
export declare const assertGuardMediaRenderRecordValue: __AssertionGuard<MediaRenderRecordValue>;
|
|
65
|
+
export declare const stringifyMediaRenderRecordValue: (input: MediaRenderRecordValue) => string;
|
|
66
|
+
export declare const assertStringifyMediaRenderRecordValue: (input: unknown) => string;
|
package/dist/domains/media.js
CHANGED
|
@@ -463,3 +463,500 @@ export const assertStringifyMediaSourceRecord = (input, errorFactory) => { const
|
|
|
463
463
|
const $so4 = input => `{${$tail(`${undefined === input.language ? "" : `"language":${undefined !== input.language ? $string(input.language) : undefined},`}${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? `[${input.pan.map(elem => elem).join(",")}]` : undefined}`}`)}}`;
|
|
464
464
|
return $so0(input);
|
|
465
465
|
}; return stringify(assert(input, errorFactory)); };
|
|
466
|
+
export const isMediaConsolidateRecord = input => {
|
|
467
|
+
const $io0 = input => true && true && true && true;
|
|
468
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
469
|
+
};
|
|
470
|
+
export const assertMediaConsolidateRecord = (input, errorFactory) => {
|
|
471
|
+
const __is = input => {
|
|
472
|
+
const $io0 = input => true && true && true && true;
|
|
473
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
474
|
+
};
|
|
475
|
+
if (false === __is(input))
|
|
476
|
+
((input, _path, _exceptionable = true) => {
|
|
477
|
+
const $guard = __typia.createAssert.guard;
|
|
478
|
+
const $ao0 = (input, _path, _exceptionable = true) => true && true && true && true;
|
|
479
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
480
|
+
path: _path + "",
|
|
481
|
+
expected: "MediaConsolidateRecord",
|
|
482
|
+
value: input
|
|
483
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
484
|
+
path: _path + "",
|
|
485
|
+
expected: "MediaConsolidateRecord",
|
|
486
|
+
value: input
|
|
487
|
+
}, errorFactory);
|
|
488
|
+
})(input, "$input", true);
|
|
489
|
+
return input;
|
|
490
|
+
};
|
|
491
|
+
export const randomMediaConsolidateRecord = generator => {
|
|
492
|
+
const $pick = __typia.createRandom.pick;
|
|
493
|
+
const $ro0 = (_recursive = false, _depth = 0) => ({
|
|
494
|
+
source: $pick([
|
|
495
|
+
() => "any type used...",
|
|
496
|
+
() => undefined
|
|
497
|
+
])(),
|
|
498
|
+
target: $pick([
|
|
499
|
+
() => "any type used...",
|
|
500
|
+
() => undefined
|
|
501
|
+
])(),
|
|
502
|
+
profile: $pick([
|
|
503
|
+
() => "any type used...",
|
|
504
|
+
() => undefined
|
|
505
|
+
])(),
|
|
506
|
+
error: $pick([
|
|
507
|
+
() => "any type used...",
|
|
508
|
+
() => undefined
|
|
509
|
+
])()
|
|
510
|
+
});
|
|
511
|
+
return $ro0();
|
|
512
|
+
};
|
|
513
|
+
export const assertGuardMediaConsolidateRecord = (input, errorFactory) => {
|
|
514
|
+
const __is = input => {
|
|
515
|
+
const $io0 = input => true && true && true && true;
|
|
516
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
517
|
+
};
|
|
518
|
+
if (false === __is(input))
|
|
519
|
+
((input, _path, _exceptionable = true) => {
|
|
520
|
+
const $guard = __typia.createAssertGuard.guard;
|
|
521
|
+
const $ao0 = (input, _path, _exceptionable = true) => true && true && true && true;
|
|
522
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
523
|
+
path: _path + "",
|
|
524
|
+
expected: "MediaConsolidateRecord",
|
|
525
|
+
value: input
|
|
526
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
527
|
+
path: _path + "",
|
|
528
|
+
expected: "MediaConsolidateRecord",
|
|
529
|
+
value: input
|
|
530
|
+
}, errorFactory);
|
|
531
|
+
})(input, "$input", true);
|
|
532
|
+
};
|
|
533
|
+
export const stringifyMediaConsolidateRecord = input => {
|
|
534
|
+
const $tail = __typia.json.createStringify.tail;
|
|
535
|
+
const $so0 = input => `{${$tail(`${undefined === input.source || "function" === typeof input.source ? "" : `"source":${undefined !== input.source ? JSON.stringify(input.source) : undefined},`}${undefined === input.target || "function" === typeof input.target ? "" : `"target":${undefined !== input.target ? JSON.stringify(input.target) : undefined},`}${undefined === input.profile || "function" === typeof input.profile ? "" : `"profile":${undefined !== input.profile ? JSON.stringify(input.profile) : undefined},`}${undefined === input.error || "function" === typeof input.error ? "" : `"error":${undefined !== input.error ? JSON.stringify(input.error) : undefined}`}`)}}`;
|
|
536
|
+
return $so0(input);
|
|
537
|
+
};
|
|
538
|
+
export const assertStringifyMediaConsolidateRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
539
|
+
const __is = input => {
|
|
540
|
+
const $io0 = input => true && true && true && true;
|
|
541
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
542
|
+
};
|
|
543
|
+
if (false === __is(input))
|
|
544
|
+
((input, _path, _exceptionable = true) => {
|
|
545
|
+
const $guard = __typia.json.createAssertStringify.guard;
|
|
546
|
+
const $ao0 = (input, _path, _exceptionable = true) => true && true && true && true;
|
|
547
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
548
|
+
path: _path + "",
|
|
549
|
+
expected: "MediaConsolidateRecord",
|
|
550
|
+
value: input
|
|
551
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
552
|
+
path: _path + "",
|
|
553
|
+
expected: "MediaConsolidateRecord",
|
|
554
|
+
value: input
|
|
555
|
+
}, errorFactory);
|
|
556
|
+
})(input, "$input", true);
|
|
557
|
+
return input;
|
|
558
|
+
}; const stringify = input => {
|
|
559
|
+
const $tail = __typia.json.createAssertStringify.tail;
|
|
560
|
+
const $so0 = input => `{${$tail(`${undefined === input.source || "function" === typeof input.source ? "" : `"source":${undefined !== input.source ? JSON.stringify(input.source) : undefined},`}${undefined === input.target || "function" === typeof input.target ? "" : `"target":${undefined !== input.target ? JSON.stringify(input.target) : undefined},`}${undefined === input.profile || "function" === typeof input.profile ? "" : `"profile":${undefined !== input.profile ? JSON.stringify(input.profile) : undefined},`}${undefined === input.error || "function" === typeof input.error ? "" : `"error":${undefined !== input.error ? JSON.stringify(input.error) : undefined}`}`)}}`;
|
|
561
|
+
return $so0(input);
|
|
562
|
+
}; return stringify(assert(input, errorFactory)); };
|
|
563
|
+
export const isMediaRendersRecord = input => {
|
|
564
|
+
const $io0 = input => Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem));
|
|
565
|
+
const $io1 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.children || Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem)));
|
|
566
|
+
return "object" === typeof input && null !== input && $io0(input);
|
|
567
|
+
};
|
|
568
|
+
export const assertMediaRendersRecord = (input, errorFactory) => {
|
|
569
|
+
const __is = input => {
|
|
570
|
+
const $io0 = input => Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem));
|
|
571
|
+
const $io1 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.children || Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem)));
|
|
572
|
+
return "object" === typeof input && null !== input && $io0(input);
|
|
573
|
+
};
|
|
574
|
+
if (false === __is(input))
|
|
575
|
+
((input, _path, _exceptionable = true) => {
|
|
576
|
+
const $guard = __typia.createAssert.guard;
|
|
577
|
+
const $ao0 = (input, _path, _exceptionable = true) => (Array.isArray(input.children) || $guard(_exceptionable, {
|
|
578
|
+
path: _path + ".children",
|
|
579
|
+
expected: "Array<MediaRenderRecordValue>",
|
|
580
|
+
value: input.children
|
|
581
|
+
}, errorFactory)) && input.children.every((elem, _index1) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(_exceptionable, {
|
|
582
|
+
path: _path + ".children[" + _index1 + "]",
|
|
583
|
+
expected: "MediaRenderRecordValue",
|
|
584
|
+
value: elem
|
|
585
|
+
}, errorFactory)) && $ao1(elem, _path + ".children[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
|
586
|
+
path: _path + ".children[" + _index1 + "]",
|
|
587
|
+
expected: "MediaRenderRecordValue",
|
|
588
|
+
value: elem
|
|
589
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
590
|
+
path: _path + ".children",
|
|
591
|
+
expected: "Array<MediaRenderRecordValue>",
|
|
592
|
+
value: input.children
|
|
593
|
+
}, errorFactory);
|
|
594
|
+
const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
|
|
595
|
+
path: _path + ".id",
|
|
596
|
+
expected: "(string | undefined)",
|
|
597
|
+
value: input.id
|
|
598
|
+
}, errorFactory)) && (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
|
|
599
|
+
path: _path + ".title",
|
|
600
|
+
expected: "(string | undefined)",
|
|
601
|
+
value: input.title
|
|
602
|
+
}, errorFactory)) && (undefined === input.children || (Array.isArray(input.children) || $guard(_exceptionable, {
|
|
603
|
+
path: _path + ".children",
|
|
604
|
+
expected: "(Array<MediaRenderRecordValue> | undefined)",
|
|
605
|
+
value: input.children
|
|
606
|
+
}, errorFactory)) && input.children.every((elem, _index2) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(_exceptionable, {
|
|
607
|
+
path: _path + ".children[" + _index2 + "]",
|
|
608
|
+
expected: "MediaRenderRecordValue",
|
|
609
|
+
value: elem
|
|
610
|
+
}, errorFactory)) && $ao1(elem, _path + ".children[" + _index2 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
|
611
|
+
path: _path + ".children[" + _index2 + "]",
|
|
612
|
+
expected: "MediaRenderRecordValue",
|
|
613
|
+
value: elem
|
|
614
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
615
|
+
path: _path + ".children",
|
|
616
|
+
expected: "(Array<MediaRenderRecordValue> | undefined)",
|
|
617
|
+
value: input.children
|
|
618
|
+
}, errorFactory));
|
|
619
|
+
return ("object" === typeof input && null !== input || $guard(true, {
|
|
620
|
+
path: _path + "",
|
|
621
|
+
expected: "MediaRendersRecord",
|
|
622
|
+
value: input
|
|
623
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
624
|
+
path: _path + "",
|
|
625
|
+
expected: "MediaRendersRecord",
|
|
626
|
+
value: input
|
|
627
|
+
}, errorFactory);
|
|
628
|
+
})(input, "$input", true);
|
|
629
|
+
return input;
|
|
630
|
+
};
|
|
631
|
+
export const randomMediaRendersRecord = generator => {
|
|
632
|
+
const $generator = __typia.createRandom.generator;
|
|
633
|
+
const $pick = __typia.createRandom.pick;
|
|
634
|
+
const $ro0 = (_recursive = false, _depth = 0) => ({
|
|
635
|
+
children: (generator?.array ?? $generator.array)(() => $ro1(_recursive, _recursive ? 1 + _depth : _depth))
|
|
636
|
+
});
|
|
637
|
+
const $ro1 = (_recursive = true, _depth = 0) => ({
|
|
638
|
+
id: $pick([
|
|
639
|
+
() => undefined,
|
|
640
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
641
|
+
])(),
|
|
642
|
+
title: $pick([
|
|
643
|
+
() => undefined,
|
|
644
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
645
|
+
])(),
|
|
646
|
+
children: $pick([
|
|
647
|
+
() => undefined,
|
|
648
|
+
() => _recursive && 5 < _depth ? [] : 5 >= _depth ? (generator?.array ?? $generator.array)(() => $ro1(true, _recursive ? 1 + _depth : _depth)) : []
|
|
649
|
+
])()
|
|
650
|
+
});
|
|
651
|
+
return $ro0();
|
|
652
|
+
};
|
|
653
|
+
export const assertGuardMediaRendersRecord = (input, errorFactory) => {
|
|
654
|
+
const __is = input => {
|
|
655
|
+
const $io0 = input => Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem));
|
|
656
|
+
const $io1 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.children || Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem)));
|
|
657
|
+
return "object" === typeof input && null !== input && $io0(input);
|
|
658
|
+
};
|
|
659
|
+
if (false === __is(input))
|
|
660
|
+
((input, _path, _exceptionable = true) => {
|
|
661
|
+
const $guard = __typia.createAssertGuard.guard;
|
|
662
|
+
const $ao0 = (input, _path, _exceptionable = true) => (Array.isArray(input.children) || $guard(_exceptionable, {
|
|
663
|
+
path: _path + ".children",
|
|
664
|
+
expected: "Array<MediaRenderRecordValue>",
|
|
665
|
+
value: input.children
|
|
666
|
+
}, errorFactory)) && input.children.every((elem, _index1) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(_exceptionable, {
|
|
667
|
+
path: _path + ".children[" + _index1 + "]",
|
|
668
|
+
expected: "MediaRenderRecordValue",
|
|
669
|
+
value: elem
|
|
670
|
+
}, errorFactory)) && $ao1(elem, _path + ".children[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
|
671
|
+
path: _path + ".children[" + _index1 + "]",
|
|
672
|
+
expected: "MediaRenderRecordValue",
|
|
673
|
+
value: elem
|
|
674
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
675
|
+
path: _path + ".children",
|
|
676
|
+
expected: "Array<MediaRenderRecordValue>",
|
|
677
|
+
value: input.children
|
|
678
|
+
}, errorFactory);
|
|
679
|
+
const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
|
|
680
|
+
path: _path + ".id",
|
|
681
|
+
expected: "(string | undefined)",
|
|
682
|
+
value: input.id
|
|
683
|
+
}, errorFactory)) && (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
|
|
684
|
+
path: _path + ".title",
|
|
685
|
+
expected: "(string | undefined)",
|
|
686
|
+
value: input.title
|
|
687
|
+
}, errorFactory)) && (undefined === input.children || (Array.isArray(input.children) || $guard(_exceptionable, {
|
|
688
|
+
path: _path + ".children",
|
|
689
|
+
expected: "(Array<MediaRenderRecordValue> | undefined)",
|
|
690
|
+
value: input.children
|
|
691
|
+
}, errorFactory)) && input.children.every((elem, _index2) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(_exceptionable, {
|
|
692
|
+
path: _path + ".children[" + _index2 + "]",
|
|
693
|
+
expected: "MediaRenderRecordValue",
|
|
694
|
+
value: elem
|
|
695
|
+
}, errorFactory)) && $ao1(elem, _path + ".children[" + _index2 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
|
696
|
+
path: _path + ".children[" + _index2 + "]",
|
|
697
|
+
expected: "MediaRenderRecordValue",
|
|
698
|
+
value: elem
|
|
699
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
700
|
+
path: _path + ".children",
|
|
701
|
+
expected: "(Array<MediaRenderRecordValue> | undefined)",
|
|
702
|
+
value: input.children
|
|
703
|
+
}, errorFactory));
|
|
704
|
+
return ("object" === typeof input && null !== input || $guard(true, {
|
|
705
|
+
path: _path + "",
|
|
706
|
+
expected: "MediaRendersRecord",
|
|
707
|
+
value: input
|
|
708
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
709
|
+
path: _path + "",
|
|
710
|
+
expected: "MediaRendersRecord",
|
|
711
|
+
value: input
|
|
712
|
+
}, errorFactory);
|
|
713
|
+
})(input, "$input", true);
|
|
714
|
+
};
|
|
715
|
+
export const stringifyMediaRendersRecord = input => {
|
|
716
|
+
const $io1 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.children || Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem)));
|
|
717
|
+
const $string = __typia.json.createStringify.string;
|
|
718
|
+
const $tail = __typia.json.createStringify.tail;
|
|
719
|
+
const $so0 = input => `{"children":${`[${input.children.map(elem => $so1(elem)).join(",")}]`}}`;
|
|
720
|
+
const $so1 = input => `{${$tail(`${undefined === input.id ? "" : `"id":${undefined !== input.id ? $string(input.id) : undefined},`}${undefined === input.title ? "" : `"title":${undefined !== input.title ? $string(input.title) : undefined},`}${undefined === input.children ? "" : `"children":${undefined !== input.children ? `[${input.children.map(elem => $so1(elem)).join(",")}]` : undefined}`}`)}}`;
|
|
721
|
+
return $so0(input);
|
|
722
|
+
};
|
|
723
|
+
export const assertStringifyMediaRendersRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
724
|
+
const __is = input => {
|
|
725
|
+
const $io0 = input => Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem));
|
|
726
|
+
const $io1 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.children || Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem)));
|
|
727
|
+
return "object" === typeof input && null !== input && $io0(input);
|
|
728
|
+
};
|
|
729
|
+
if (false === __is(input))
|
|
730
|
+
((input, _path, _exceptionable = true) => {
|
|
731
|
+
const $guard = __typia.json.createAssertStringify.guard;
|
|
732
|
+
const $ao0 = (input, _path, _exceptionable = true) => (Array.isArray(input.children) || $guard(_exceptionable, {
|
|
733
|
+
path: _path + ".children",
|
|
734
|
+
expected: "Array<MediaRenderRecordValue>",
|
|
735
|
+
value: input.children
|
|
736
|
+
}, errorFactory)) && input.children.every((elem, _index1) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(_exceptionable, {
|
|
737
|
+
path: _path + ".children[" + _index1 + "]",
|
|
738
|
+
expected: "MediaRenderRecordValue",
|
|
739
|
+
value: elem
|
|
740
|
+
}, errorFactory)) && $ao1(elem, _path + ".children[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
|
741
|
+
path: _path + ".children[" + _index1 + "]",
|
|
742
|
+
expected: "MediaRenderRecordValue",
|
|
743
|
+
value: elem
|
|
744
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
745
|
+
path: _path + ".children",
|
|
746
|
+
expected: "Array<MediaRenderRecordValue>",
|
|
747
|
+
value: input.children
|
|
748
|
+
}, errorFactory);
|
|
749
|
+
const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
|
|
750
|
+
path: _path + ".id",
|
|
751
|
+
expected: "(string | undefined)",
|
|
752
|
+
value: input.id
|
|
753
|
+
}, errorFactory)) && (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
|
|
754
|
+
path: _path + ".title",
|
|
755
|
+
expected: "(string | undefined)",
|
|
756
|
+
value: input.title
|
|
757
|
+
}, errorFactory)) && (undefined === input.children || (Array.isArray(input.children) || $guard(_exceptionable, {
|
|
758
|
+
path: _path + ".children",
|
|
759
|
+
expected: "(Array<MediaRenderRecordValue> | undefined)",
|
|
760
|
+
value: input.children
|
|
761
|
+
}, errorFactory)) && input.children.every((elem, _index2) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(_exceptionable, {
|
|
762
|
+
path: _path + ".children[" + _index2 + "]",
|
|
763
|
+
expected: "MediaRenderRecordValue",
|
|
764
|
+
value: elem
|
|
765
|
+
}, errorFactory)) && $ao1(elem, _path + ".children[" + _index2 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
|
766
|
+
path: _path + ".children[" + _index2 + "]",
|
|
767
|
+
expected: "MediaRenderRecordValue",
|
|
768
|
+
value: elem
|
|
769
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
770
|
+
path: _path + ".children",
|
|
771
|
+
expected: "(Array<MediaRenderRecordValue> | undefined)",
|
|
772
|
+
value: input.children
|
|
773
|
+
}, errorFactory));
|
|
774
|
+
return ("object" === typeof input && null !== input || $guard(true, {
|
|
775
|
+
path: _path + "",
|
|
776
|
+
expected: "MediaRendersRecord",
|
|
777
|
+
value: input
|
|
778
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
779
|
+
path: _path + "",
|
|
780
|
+
expected: "MediaRendersRecord",
|
|
781
|
+
value: input
|
|
782
|
+
}, errorFactory);
|
|
783
|
+
})(input, "$input", true);
|
|
784
|
+
return input;
|
|
785
|
+
}; const stringify = input => {
|
|
786
|
+
const $io1 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.children || Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem)));
|
|
787
|
+
const $string = __typia.json.createAssertStringify.string;
|
|
788
|
+
const $tail = __typia.json.createAssertStringify.tail;
|
|
789
|
+
const $so0 = input => `{"children":${`[${input.children.map(elem => $so1(elem)).join(",")}]`}}`;
|
|
790
|
+
const $so1 = input => `{${$tail(`${undefined === input.id ? "" : `"id":${undefined !== input.id ? $string(input.id) : undefined},`}${undefined === input.title ? "" : `"title":${undefined !== input.title ? $string(input.title) : undefined},`}${undefined === input.children ? "" : `"children":${undefined !== input.children ? `[${input.children.map(elem => $so1(elem)).join(",")}]` : undefined}`}`)}}`;
|
|
791
|
+
return $so0(input);
|
|
792
|
+
}; return stringify(assert(input, errorFactory)); };
|
|
793
|
+
export const isMediaRenderRecordValue = input => {
|
|
794
|
+
const $io0 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.children || Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io0(elem)));
|
|
795
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
796
|
+
};
|
|
797
|
+
export const assertMediaRenderRecordValue = (input, errorFactory) => {
|
|
798
|
+
const __is = input => {
|
|
799
|
+
const $io0 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.children || Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io0(elem)));
|
|
800
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
801
|
+
};
|
|
802
|
+
if (false === __is(input))
|
|
803
|
+
((input, _path, _exceptionable = true) => {
|
|
804
|
+
const $guard = __typia.createAssert.guard;
|
|
805
|
+
const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
|
|
806
|
+
path: _path + ".id",
|
|
807
|
+
expected: "(string | undefined)",
|
|
808
|
+
value: input.id
|
|
809
|
+
}, errorFactory)) && (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
|
|
810
|
+
path: _path + ".title",
|
|
811
|
+
expected: "(string | undefined)",
|
|
812
|
+
value: input.title
|
|
813
|
+
}, errorFactory)) && (undefined === input.children || (Array.isArray(input.children) || $guard(_exceptionable, {
|
|
814
|
+
path: _path + ".children",
|
|
815
|
+
expected: "(Array<MediaRenderRecordValue> | undefined)",
|
|
816
|
+
value: input.children
|
|
817
|
+
}, errorFactory)) && input.children.every((elem, _index1) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(_exceptionable, {
|
|
818
|
+
path: _path + ".children[" + _index1 + "]",
|
|
819
|
+
expected: "MediaRenderRecordValue",
|
|
820
|
+
value: elem
|
|
821
|
+
}, errorFactory)) && $ao0(elem, _path + ".children[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
|
822
|
+
path: _path + ".children[" + _index1 + "]",
|
|
823
|
+
expected: "MediaRenderRecordValue",
|
|
824
|
+
value: elem
|
|
825
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
826
|
+
path: _path + ".children",
|
|
827
|
+
expected: "(Array<MediaRenderRecordValue> | undefined)",
|
|
828
|
+
value: input.children
|
|
829
|
+
}, errorFactory));
|
|
830
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
831
|
+
path: _path + "",
|
|
832
|
+
expected: "MediaRenderRecordValue",
|
|
833
|
+
value: input
|
|
834
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
835
|
+
path: _path + "",
|
|
836
|
+
expected: "MediaRenderRecordValue",
|
|
837
|
+
value: input
|
|
838
|
+
}, errorFactory);
|
|
839
|
+
})(input, "$input", true);
|
|
840
|
+
return input;
|
|
841
|
+
};
|
|
842
|
+
export const randomMediaRenderRecordValue = generator => {
|
|
843
|
+
const $generator = __typia.createRandom.generator;
|
|
844
|
+
const $pick = __typia.createRandom.pick;
|
|
845
|
+
const $ro0 = (_recursive = true, _depth = 0) => ({
|
|
846
|
+
id: $pick([
|
|
847
|
+
() => undefined,
|
|
848
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
849
|
+
])(),
|
|
850
|
+
title: $pick([
|
|
851
|
+
() => undefined,
|
|
852
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
853
|
+
])(),
|
|
854
|
+
children: $pick([
|
|
855
|
+
() => undefined,
|
|
856
|
+
() => _recursive && 5 < _depth ? [] : 5 >= _depth ? (generator?.array ?? $generator.array)(() => $ro0(true, _recursive ? 1 + _depth : _depth)) : []
|
|
857
|
+
])()
|
|
858
|
+
});
|
|
859
|
+
return $ro0();
|
|
860
|
+
};
|
|
861
|
+
export const assertGuardMediaRenderRecordValue = (input, errorFactory) => {
|
|
862
|
+
const __is = input => {
|
|
863
|
+
const $io0 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.children || Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io0(elem)));
|
|
864
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
865
|
+
};
|
|
866
|
+
if (false === __is(input))
|
|
867
|
+
((input, _path, _exceptionable = true) => {
|
|
868
|
+
const $guard = __typia.createAssertGuard.guard;
|
|
869
|
+
const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
|
|
870
|
+
path: _path + ".id",
|
|
871
|
+
expected: "(string | undefined)",
|
|
872
|
+
value: input.id
|
|
873
|
+
}, errorFactory)) && (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
|
|
874
|
+
path: _path + ".title",
|
|
875
|
+
expected: "(string | undefined)",
|
|
876
|
+
value: input.title
|
|
877
|
+
}, errorFactory)) && (undefined === input.children || (Array.isArray(input.children) || $guard(_exceptionable, {
|
|
878
|
+
path: _path + ".children",
|
|
879
|
+
expected: "(Array<MediaRenderRecordValue> | undefined)",
|
|
880
|
+
value: input.children
|
|
881
|
+
}, errorFactory)) && input.children.every((elem, _index1) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(_exceptionable, {
|
|
882
|
+
path: _path + ".children[" + _index1 + "]",
|
|
883
|
+
expected: "MediaRenderRecordValue",
|
|
884
|
+
value: elem
|
|
885
|
+
}, errorFactory)) && $ao0(elem, _path + ".children[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
|
886
|
+
path: _path + ".children[" + _index1 + "]",
|
|
887
|
+
expected: "MediaRenderRecordValue",
|
|
888
|
+
value: elem
|
|
889
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
890
|
+
path: _path + ".children",
|
|
891
|
+
expected: "(Array<MediaRenderRecordValue> | undefined)",
|
|
892
|
+
value: input.children
|
|
893
|
+
}, errorFactory));
|
|
894
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
895
|
+
path: _path + "",
|
|
896
|
+
expected: "MediaRenderRecordValue",
|
|
897
|
+
value: input
|
|
898
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
899
|
+
path: _path + "",
|
|
900
|
+
expected: "MediaRenderRecordValue",
|
|
901
|
+
value: input
|
|
902
|
+
}, errorFactory);
|
|
903
|
+
})(input, "$input", true);
|
|
904
|
+
};
|
|
905
|
+
export const stringifyMediaRenderRecordValue = input => {
|
|
906
|
+
const $io0 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.children || Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io0(elem)));
|
|
907
|
+
const $string = __typia.json.createStringify.string;
|
|
908
|
+
const $tail = __typia.json.createStringify.tail;
|
|
909
|
+
const $so0 = input => `{${$tail(`${undefined === input.id ? "" : `"id":${undefined !== input.id ? $string(input.id) : undefined},`}${undefined === input.title ? "" : `"title":${undefined !== input.title ? $string(input.title) : undefined},`}${undefined === input.children ? "" : `"children":${undefined !== input.children ? `[${input.children.map(elem => $so0(elem)).join(",")}]` : undefined}`}`)}}`;
|
|
910
|
+
return $so0(input);
|
|
911
|
+
};
|
|
912
|
+
export const assertStringifyMediaRenderRecordValue = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
913
|
+
const __is = input => {
|
|
914
|
+
const $io0 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.children || Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io0(elem)));
|
|
915
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
916
|
+
};
|
|
917
|
+
if (false === __is(input))
|
|
918
|
+
((input, _path, _exceptionable = true) => {
|
|
919
|
+
const $guard = __typia.json.createAssertStringify.guard;
|
|
920
|
+
const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
|
|
921
|
+
path: _path + ".id",
|
|
922
|
+
expected: "(string | undefined)",
|
|
923
|
+
value: input.id
|
|
924
|
+
}, errorFactory)) && (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
|
|
925
|
+
path: _path + ".title",
|
|
926
|
+
expected: "(string | undefined)",
|
|
927
|
+
value: input.title
|
|
928
|
+
}, errorFactory)) && (undefined === input.children || (Array.isArray(input.children) || $guard(_exceptionable, {
|
|
929
|
+
path: _path + ".children",
|
|
930
|
+
expected: "(Array<MediaRenderRecordValue> | undefined)",
|
|
931
|
+
value: input.children
|
|
932
|
+
}, errorFactory)) && input.children.every((elem, _index1) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(_exceptionable, {
|
|
933
|
+
path: _path + ".children[" + _index1 + "]",
|
|
934
|
+
expected: "MediaRenderRecordValue",
|
|
935
|
+
value: elem
|
|
936
|
+
}, errorFactory)) && $ao0(elem, _path + ".children[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
|
937
|
+
path: _path + ".children[" + _index1 + "]",
|
|
938
|
+
expected: "MediaRenderRecordValue",
|
|
939
|
+
value: elem
|
|
940
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
941
|
+
path: _path + ".children",
|
|
942
|
+
expected: "(Array<MediaRenderRecordValue> | undefined)",
|
|
943
|
+
value: input.children
|
|
944
|
+
}, errorFactory));
|
|
945
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
946
|
+
path: _path + "",
|
|
947
|
+
expected: "MediaRenderRecordValue",
|
|
948
|
+
value: input
|
|
949
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
950
|
+
path: _path + "",
|
|
951
|
+
expected: "MediaRenderRecordValue",
|
|
952
|
+
value: input
|
|
953
|
+
}, errorFactory);
|
|
954
|
+
})(input, "$input", true);
|
|
955
|
+
return input;
|
|
956
|
+
}; const stringify = input => {
|
|
957
|
+
const $io0 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.children || Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io0(elem)));
|
|
958
|
+
const $string = __typia.json.createAssertStringify.string;
|
|
959
|
+
const $tail = __typia.json.createAssertStringify.tail;
|
|
960
|
+
const $so0 = input => `{${$tail(`${undefined === input.id ? "" : `"id":${undefined !== input.id ? $string(input.id) : undefined},`}${undefined === input.title ? "" : `"title":${undefined !== input.title ? $string(input.title) : undefined},`}${undefined === input.children ? "" : `"children":${undefined !== input.children ? `[${input.children.map(elem => $so0(elem)).join(",")}]` : undefined}`}`)}}`;
|
|
961
|
+
return $so0(input);
|
|
962
|
+
}; return stringify(assert(input, errorFactory)); };
|
|
@@ -1,24 +1,85 @@
|
|
|
1
1
|
import { type AssertionGuard as __AssertionGuard } from "typia";
|
|
2
2
|
export interface PermissionDomainRecords {
|
|
3
|
-
":permission?":
|
|
3
|
+
":permission?": ProvidedPermissionRecord;
|
|
4
|
+
":permission": PermissionRecord;
|
|
4
5
|
}
|
|
5
|
-
export interface
|
|
6
|
+
export interface ProvidedPermissionRecord {
|
|
6
7
|
permissions: PermissionRecordPermisson[];
|
|
7
8
|
}
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
9
|
+
export declare const isProvidedPermissionRecord: (input: unknown) => input is ProvidedPermissionRecord;
|
|
10
|
+
export declare const assertProvidedPermissionRecord: (input: unknown) => ProvidedPermissionRecord;
|
|
11
|
+
export declare const randomProvidedPermissionRecord: () => ProvidedPermissionRecord;
|
|
12
|
+
export declare const assertGuardProvidedPermissionRecord: __AssertionGuard<ProvidedPermissionRecord>;
|
|
13
|
+
export declare const stringifyProvidedPermissionRecord: (input: ProvidedPermissionRecord) => string;
|
|
14
|
+
export declare const assertStringifyProvidedPermissionRecord: (input: unknown) => string;
|
|
15
|
+
export type PermissionRecord = PermissionRecordPermisson;
|
|
16
|
+
export declare const isPermissionRecord: (input: unknown) => input is PermissionRecordPermisson;
|
|
17
|
+
export declare const assertPermissionRecord: (input: unknown) => PermissionRecordPermisson;
|
|
18
|
+
export declare const randomPermissionRecord: () => {
|
|
19
|
+
type: "tag";
|
|
20
|
+
method?: undefined;
|
|
21
|
+
tags: string[];
|
|
22
|
+
} | {
|
|
23
|
+
type: "asset";
|
|
24
|
+
method: string;
|
|
25
|
+
tags?: undefined;
|
|
26
|
+
} | {
|
|
27
|
+
type: "rpc";
|
|
28
|
+
method: string;
|
|
29
|
+
tags?: undefined;
|
|
30
|
+
};
|
|
11
31
|
export declare const assertGuardPermissionRecord: __AssertionGuard<PermissionRecord>;
|
|
12
|
-
export declare const stringifyPermissionRecord: (input:
|
|
32
|
+
export declare const stringifyPermissionRecord: (input: PermissionRecordPermisson) => string;
|
|
13
33
|
export declare const assertStringifyPermissionRecord: (input: unknown) => string;
|
|
14
|
-
export
|
|
15
|
-
type?: string;
|
|
16
|
-
method?: string;
|
|
17
|
-
tags?: string[];
|
|
18
|
-
}
|
|
34
|
+
export type PermissionRecordPermisson = TagPermission | AssetPermission | RpcPermission;
|
|
19
35
|
export declare const isPermissionRecordPermisson: (input: unknown) => input is PermissionRecordPermisson;
|
|
20
36
|
export declare const assertPermissionRecordPermisson: (input: unknown) => PermissionRecordPermisson;
|
|
21
|
-
export declare const randomPermissionRecordPermisson: () =>
|
|
37
|
+
export declare const randomPermissionRecordPermisson: () => {
|
|
38
|
+
type: "tag";
|
|
39
|
+
method?: undefined;
|
|
40
|
+
tags: string[];
|
|
41
|
+
} | {
|
|
42
|
+
type: "asset";
|
|
43
|
+
method: string;
|
|
44
|
+
tags?: undefined;
|
|
45
|
+
} | {
|
|
46
|
+
type: "rpc";
|
|
47
|
+
method: string;
|
|
48
|
+
tags?: undefined;
|
|
49
|
+
};
|
|
22
50
|
export declare const assertGuardPermissionRecordPermisson: __AssertionGuard<PermissionRecordPermisson>;
|
|
23
51
|
export declare const stringifyPermissionRecordPermisson: (input: PermissionRecordPermisson) => string;
|
|
24
52
|
export declare const assertStringifyPermissionRecordPermisson: (input: unknown) => string;
|
|
53
|
+
export interface TagPermission {
|
|
54
|
+
type: "tag";
|
|
55
|
+
method?: undefined;
|
|
56
|
+
tags: string[];
|
|
57
|
+
}
|
|
58
|
+
export declare const isTagPermission: (input: unknown) => input is TagPermission;
|
|
59
|
+
export declare const assertTagPermission: (input: unknown) => TagPermission;
|
|
60
|
+
export declare const randomTagPermission: () => TagPermission;
|
|
61
|
+
export declare const assertGuardTagPermission: __AssertionGuard<TagPermission>;
|
|
62
|
+
export declare const stringifyTagPermission: (input: TagPermission) => string;
|
|
63
|
+
export declare const assertStringifyTagPermission: (input: unknown) => string;
|
|
64
|
+
export interface AssetPermission {
|
|
65
|
+
type: "asset";
|
|
66
|
+
method: string;
|
|
67
|
+
tags?: undefined;
|
|
68
|
+
}
|
|
69
|
+
export declare const isAssetPermission: (input: unknown) => input is AssetPermission;
|
|
70
|
+
export declare const assertAssetPermission: (input: unknown) => AssetPermission;
|
|
71
|
+
export declare const randomAssetPermission: () => AssetPermission;
|
|
72
|
+
export declare const assertGuardAssetPermission: __AssertionGuard<AssetPermission>;
|
|
73
|
+
export declare const stringifyAssetPermission: (input: AssetPermission) => string;
|
|
74
|
+
export declare const assertStringifyAssetPermission: (input: unknown) => string;
|
|
75
|
+
export interface RpcPermission {
|
|
76
|
+
type: "rpc";
|
|
77
|
+
method: string;
|
|
78
|
+
tags?: undefined;
|
|
79
|
+
}
|
|
80
|
+
export declare const isRpcPermission: (input: unknown) => input is RpcPermission;
|
|
81
|
+
export declare const assertRpcPermission: (input: unknown) => RpcPermission;
|
|
82
|
+
export declare const randomRpcPermission: () => RpcPermission;
|
|
83
|
+
export declare const assertGuardRpcPermission: __AssertionGuard<RpcPermission>;
|
|
84
|
+
export declare const stringifyRpcPermission: (input: RpcPermission) => string;
|
|
85
|
+
export declare const assertStringifyRpcPermission: (input: unknown) => string;
|