@nxtedition/types 23.0.2 → 23.0.4

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.
Files changed (59) hide show
  1. package/dist/asset.d.ts +10 -0
  2. package/dist/asset.js +1 -0
  3. package/dist/common/clone.d.ts +32 -0
  4. package/dist/common/clone.js +602 -0
  5. package/dist/common/date.d.ts +8 -0
  6. package/dist/common/date.js +59 -0
  7. package/dist/common/index.d.ts +8 -0
  8. package/dist/common/index.js +8 -0
  9. package/dist/common/media.d.ts +8 -0
  10. package/dist/common/media.js +83 -0
  11. package/dist/common/nxtpression.d.ts +19 -0
  12. package/dist/common/nxtpression.js +240 -0
  13. package/dist/common/pipeline.d.ts +8 -0
  14. package/dist/common/pipeline.js +88 -0
  15. package/dist/common/promoted-tag.d.ts +13 -0
  16. package/dist/common/promoted-tag.js +147 -0
  17. package/dist/common/render-preset.d.ts +32 -0
  18. package/dist/common/render-preset.js +516 -0
  19. package/dist/common/search.d.ts +69 -0
  20. package/dist/common/search.js +1591 -0
  21. package/dist/common/settings.d.ts +26 -11
  22. package/dist/common/settings.js +812 -333
  23. package/dist/domains/asset.d.ts +172 -49
  24. package/dist/domains/asset.js +1533 -72
  25. package/dist/domains/clone.d.ts +14 -0
  26. package/dist/domains/clone.js +192 -0
  27. package/dist/domains/connection.d.ts +39 -15
  28. package/dist/domains/connection.js +621 -174
  29. package/dist/domains/design.d.ts +24 -0
  30. package/dist/domains/design.js +303 -0
  31. package/dist/domains/file.d.ts +17 -0
  32. package/dist/domains/file.js +233 -0
  33. package/dist/domains/index.d.ts +19 -1
  34. package/dist/domains/index.js +9 -0
  35. package/dist/domains/media.d.ts +42 -2
  36. package/dist/domains/media.js +1070 -24
  37. package/dist/domains/pipeline-preset.d.ts +17 -0
  38. package/dist/domains/pipeline-preset.js +225 -0
  39. package/dist/domains/pipeline.d.ts +29 -0
  40. package/dist/domains/pipeline.js +423 -0
  41. package/dist/domains/published.d.ts +18 -0
  42. package/dist/domains/published.js +164 -0
  43. package/dist/domains/render-preset.d.ts +4 -0
  44. package/dist/domains/render-preset.js +1 -0
  45. package/dist/domains/revs.d.ts +13 -0
  46. package/dist/domains/revs.js +125 -0
  47. package/dist/domains/search.d.ts +3 -0
  48. package/dist/domains/search.js +62 -13
  49. package/dist/domains/settings.js +796 -339
  50. package/dist/domains/storyboard.d.ts +14 -0
  51. package/dist/domains/storyboard.js +125 -0
  52. package/dist/domains/user.d.ts +14 -0
  53. package/dist/domains/user.js +141 -0
  54. package/dist/index.d.ts +88 -5
  55. package/dist/index.js +151 -0
  56. package/dist/rpc.d.ts +8 -13
  57. package/dist/rpc.js +9 -9
  58. package/dist/schema.json +1701 -1565
  59. package/package.json +1 -1
@@ -0,0 +1,147 @@
1
+ import __typia from "typia";
2
+ export const isPromotedTag = input => {
3
+ const $io0 = input => (null === input.name || "string" === typeof input.name) && (null === input.icon || "string" === typeof input.icon) && (null === input.color || "string" === typeof input.color) && (null === input.description || "string" === typeof input.description);
4
+ return "object" === typeof input && null !== input && $io0(input);
5
+ };
6
+ export const assertPromotedTag = (input, errorFactory) => {
7
+ const __is = input => {
8
+ const $io0 = input => (null === input.name || "string" === typeof input.name) && (null === input.icon || "string" === typeof input.icon) && (null === input.color || "string" === typeof input.color) && (null === input.description || "string" === typeof input.description);
9
+ return "object" === typeof input && null !== input && $io0(input);
10
+ };
11
+ if (false === __is(input))
12
+ ((input, _path, _exceptionable = true) => {
13
+ const $guard = __typia.createAssert.guard;
14
+ const $ao0 = (input, _path, _exceptionable = true) => (null === input.name || "string" === typeof input.name || $guard(_exceptionable, {
15
+ path: _path + ".name",
16
+ expected: "(null | string)",
17
+ value: input.name
18
+ }, errorFactory)) && (null === input.icon || "string" === typeof input.icon || $guard(_exceptionable, {
19
+ path: _path + ".icon",
20
+ expected: "(null | string)",
21
+ value: input.icon
22
+ }, errorFactory)) && (null === input.color || "string" === typeof input.color || $guard(_exceptionable, {
23
+ path: _path + ".color",
24
+ expected: "(null | string)",
25
+ value: input.color
26
+ }, errorFactory)) && (null === input.description || "string" === typeof input.description || $guard(_exceptionable, {
27
+ path: _path + ".description",
28
+ expected: "(null | string)",
29
+ value: input.description
30
+ }, errorFactory));
31
+ return ("object" === typeof input && null !== input || $guard(true, {
32
+ path: _path + "",
33
+ expected: "PromotedTag",
34
+ value: input
35
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
36
+ path: _path + "",
37
+ expected: "PromotedTag",
38
+ value: input
39
+ }, errorFactory);
40
+ })(input, "$input", true);
41
+ return input;
42
+ };
43
+ export const randomPromotedTag = generator => {
44
+ const $generator = __typia.createRandom.generator;
45
+ const $pick = __typia.createRandom.pick;
46
+ const $ro0 = (_recursive = false, _depth = 0) => ({
47
+ name: $pick([
48
+ () => null,
49
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
50
+ ])(),
51
+ icon: $pick([
52
+ () => null,
53
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
54
+ ])(),
55
+ color: $pick([
56
+ () => null,
57
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
58
+ ])(),
59
+ description: $pick([
60
+ () => null,
61
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
62
+ ])()
63
+ });
64
+ return $ro0();
65
+ };
66
+ export const assertGuardPromotedTag = (input, errorFactory) => {
67
+ const __is = input => {
68
+ const $io0 = input => (null === input.name || "string" === typeof input.name) && (null === input.icon || "string" === typeof input.icon) && (null === input.color || "string" === typeof input.color) && (null === input.description || "string" === typeof input.description);
69
+ return "object" === typeof input && null !== input && $io0(input);
70
+ };
71
+ if (false === __is(input))
72
+ ((input, _path, _exceptionable = true) => {
73
+ const $guard = __typia.createAssertGuard.guard;
74
+ const $ao0 = (input, _path, _exceptionable = true) => (null === input.name || "string" === typeof input.name || $guard(_exceptionable, {
75
+ path: _path + ".name",
76
+ expected: "(null | string)",
77
+ value: input.name
78
+ }, errorFactory)) && (null === input.icon || "string" === typeof input.icon || $guard(_exceptionable, {
79
+ path: _path + ".icon",
80
+ expected: "(null | string)",
81
+ value: input.icon
82
+ }, errorFactory)) && (null === input.color || "string" === typeof input.color || $guard(_exceptionable, {
83
+ path: _path + ".color",
84
+ expected: "(null | string)",
85
+ value: input.color
86
+ }, errorFactory)) && (null === input.description || "string" === typeof input.description || $guard(_exceptionable, {
87
+ path: _path + ".description",
88
+ expected: "(null | string)",
89
+ value: input.description
90
+ }, errorFactory));
91
+ return ("object" === typeof input && null !== input || $guard(true, {
92
+ path: _path + "",
93
+ expected: "PromotedTag",
94
+ value: input
95
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
96
+ path: _path + "",
97
+ expected: "PromotedTag",
98
+ value: input
99
+ }, errorFactory);
100
+ })(input, "$input", true);
101
+ };
102
+ export const stringifyPromotedTag = input => {
103
+ const $string = __typia.json.createStringify.string;
104
+ const $so0 = input => `{"name":${null !== input.name ? $string(input.name) : "null"},"icon":${null !== input.icon ? $string(input.icon) : "null"},"color":${null !== input.color ? $string(input.color) : "null"},"description":${null !== input.description ? $string(input.description) : "null"}}`;
105
+ return $so0(input);
106
+ };
107
+ export const assertStringifyPromotedTag = (input, errorFactory) => { const assert = (input, errorFactory) => {
108
+ const __is = input => {
109
+ const $io0 = input => (null === input.name || "string" === typeof input.name) && (null === input.icon || "string" === typeof input.icon) && (null === input.color || "string" === typeof input.color) && (null === input.description || "string" === typeof input.description);
110
+ return "object" === typeof input && null !== input && $io0(input);
111
+ };
112
+ if (false === __is(input))
113
+ ((input, _path, _exceptionable = true) => {
114
+ const $guard = __typia.json.createAssertStringify.guard;
115
+ const $ao0 = (input, _path, _exceptionable = true) => (null === input.name || "string" === typeof input.name || $guard(_exceptionable, {
116
+ path: _path + ".name",
117
+ expected: "(null | string)",
118
+ value: input.name
119
+ }, errorFactory)) && (null === input.icon || "string" === typeof input.icon || $guard(_exceptionable, {
120
+ path: _path + ".icon",
121
+ expected: "(null | string)",
122
+ value: input.icon
123
+ }, errorFactory)) && (null === input.color || "string" === typeof input.color || $guard(_exceptionable, {
124
+ path: _path + ".color",
125
+ expected: "(null | string)",
126
+ value: input.color
127
+ }, errorFactory)) && (null === input.description || "string" === typeof input.description || $guard(_exceptionable, {
128
+ path: _path + ".description",
129
+ expected: "(null | string)",
130
+ value: input.description
131
+ }, errorFactory));
132
+ return ("object" === typeof input && null !== input || $guard(true, {
133
+ path: _path + "",
134
+ expected: "PromotedTag",
135
+ value: input
136
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
137
+ path: _path + "",
138
+ expected: "PromotedTag",
139
+ value: input
140
+ }, errorFactory);
141
+ })(input, "$input", true);
142
+ return input;
143
+ }; const stringify = input => {
144
+ const $string = __typia.json.createAssertStringify.string;
145
+ const $so0 = input => `{"name":${null !== input.name ? $string(input.name) : "null"},"icon":${null !== input.icon ? $string(input.icon) : "null"},"color":${null !== input.color ? $string(input.color) : "null"},"description":${null !== input.description ? $string(input.description) : "null"}}`;
146
+ return $so0(input);
147
+ }; return stringify(assert(input, errorFactory)); };
@@ -0,0 +1,32 @@
1
+ import { type AssertionGuard as __AssertionGuard } from "typia";
2
+ export interface RenderPreset {
3
+ type?: string;
4
+ description?: unknown;
5
+ profile?: string | RenderPresetProfile;
6
+ }
7
+ export declare const isRenderPreset: (input: unknown) => input is RenderPreset;
8
+ export declare const assertRenderPreset: (input: unknown) => RenderPreset;
9
+ export declare const randomRenderPreset: () => RenderPreset;
10
+ export declare const assertGuardRenderPreset: __AssertionGuard<RenderPreset>;
11
+ export declare const stringifyRenderPreset: (input: RenderPreset) => string;
12
+ export declare const assertStringifyRenderPreset: (input: unknown) => string;
13
+ export type RenderPresetProfileFormat = "png" | "mp4";
14
+ export declare const isRenderPresetProfileFormat: (input: unknown) => input is RenderPresetProfileFormat;
15
+ export declare const assertRenderPresetProfileFormat: (input: unknown) => RenderPresetProfileFormat;
16
+ export declare const randomRenderPresetProfileFormat: () => RenderPresetProfileFormat;
17
+ export declare const assertGuardRenderPresetProfileFormat: __AssertionGuard<RenderPresetProfileFormat>;
18
+ export declare const stringifyRenderPresetProfileFormat: (input: RenderPresetProfileFormat) => string;
19
+ export declare const assertStringifyRenderPresetProfileFormat: (input: unknown) => string;
20
+ export interface RenderPresetProfile {
21
+ format: RenderPresetProfileFormat;
22
+ transcribe?: unknown;
23
+ audio?: unknown;
24
+ video?: unknown;
25
+ pick?: string[];
26
+ }
27
+ export declare const isRenderPresetProfile: (input: unknown) => input is RenderPresetProfile;
28
+ export declare const assertRenderPresetProfile: (input: unknown) => RenderPresetProfile;
29
+ export declare const randomRenderPresetProfile: () => RenderPresetProfile;
30
+ export declare const assertGuardRenderPresetProfile: __AssertionGuard<RenderPresetProfile>;
31
+ export declare const stringifyRenderPresetProfile: (input: RenderPresetProfile) => string;
32
+ export declare const assertStringifyRenderPresetProfile: (input: unknown) => string;