@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,14 @@
1
+ import { type AssertionGuard as __AssertionGuard } from "typia";
2
+ export interface StoryboardDomainRecords {
3
+ ":storyboard": Record<string, unknown>;
4
+ ":storyboard.pipelines": StoryboardDomainPipelinesRecord;
5
+ }
6
+ export interface StoryboardDomainPipelinesRecord {
7
+ value?: string[];
8
+ }
9
+ export declare const isStoryboardDomainPipelinesRecord: (input: unknown) => input is StoryboardDomainPipelinesRecord;
10
+ export declare const assertStoryboardDomainPipelinesRecord: (input: unknown) => StoryboardDomainPipelinesRecord;
11
+ export declare const randomStoryboardDomainPipelinesRecord: () => StoryboardDomainPipelinesRecord;
12
+ export declare const assertGuardStoryboardDomainPipelinesRecord: __AssertionGuard<StoryboardDomainPipelinesRecord>;
13
+ export declare const stringifyStoryboardDomainPipelinesRecord: (input: StoryboardDomainPipelinesRecord) => string;
14
+ export declare const assertStringifyStoryboardDomainPipelinesRecord: (input: unknown) => string;
@@ -0,0 +1,125 @@
1
+ import __typia from "typia";
2
+ export const isStoryboardDomainPipelinesRecord = input => {
3
+ const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
4
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
5
+ };
6
+ export const assertStoryboardDomainPipelinesRecord = (input, errorFactory) => {
7
+ const __is = input => {
8
+ const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
9
+ return "object" === typeof input && null !== input && false === Array.isArray(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) => undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
15
+ path: _path + ".value",
16
+ expected: "(Array<string> | undefined)",
17
+ value: input.value
18
+ }, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
19
+ path: _path + ".value[" + _index1 + "]",
20
+ expected: "string",
21
+ value: elem
22
+ }, errorFactory)) || $guard(_exceptionable, {
23
+ path: _path + ".value",
24
+ expected: "(Array<string> | undefined)",
25
+ value: input.value
26
+ }, errorFactory);
27
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
28
+ path: _path + "",
29
+ expected: "StoryboardDomainPipelinesRecord",
30
+ value: input
31
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
32
+ path: _path + "",
33
+ expected: "StoryboardDomainPipelinesRecord",
34
+ value: input
35
+ }, errorFactory);
36
+ })(input, "$input", true);
37
+ return input;
38
+ };
39
+ export const randomStoryboardDomainPipelinesRecord = generator => {
40
+ const $generator = __typia.createRandom.generator;
41
+ const $pick = __typia.createRandom.pick;
42
+ const $ro0 = (_recursive = false, _depth = 0) => ({
43
+ value: $pick([
44
+ () => undefined,
45
+ () => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
46
+ ])()
47
+ });
48
+ return $ro0();
49
+ };
50
+ export const assertGuardStoryboardDomainPipelinesRecord = (input, errorFactory) => {
51
+ const __is = input => {
52
+ const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
53
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
54
+ };
55
+ if (false === __is(input))
56
+ ((input, _path, _exceptionable = true) => {
57
+ const $guard = __typia.createAssertGuard.guard;
58
+ const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
59
+ path: _path + ".value",
60
+ expected: "(Array<string> | undefined)",
61
+ value: input.value
62
+ }, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
63
+ path: _path + ".value[" + _index1 + "]",
64
+ expected: "string",
65
+ value: elem
66
+ }, errorFactory)) || $guard(_exceptionable, {
67
+ path: _path + ".value",
68
+ expected: "(Array<string> | undefined)",
69
+ value: input.value
70
+ }, errorFactory);
71
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
72
+ path: _path + "",
73
+ expected: "StoryboardDomainPipelinesRecord",
74
+ value: input
75
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
76
+ path: _path + "",
77
+ expected: "StoryboardDomainPipelinesRecord",
78
+ value: input
79
+ }, errorFactory);
80
+ })(input, "$input", true);
81
+ };
82
+ export const stringifyStoryboardDomainPipelinesRecord = input => {
83
+ const $string = __typia.json.createStringify.string;
84
+ const $tail = __typia.json.createStringify.tail;
85
+ const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => $string(elem)).join(",")}]` : undefined}`}`)}}`;
86
+ return $so0(input);
87
+ };
88
+ export const assertStringifyStoryboardDomainPipelinesRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
89
+ const __is = input => {
90
+ const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
91
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
92
+ };
93
+ if (false === __is(input))
94
+ ((input, _path, _exceptionable = true) => {
95
+ const $guard = __typia.json.createAssertStringify.guard;
96
+ const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
97
+ path: _path + ".value",
98
+ expected: "(Array<string> | undefined)",
99
+ value: input.value
100
+ }, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
101
+ path: _path + ".value[" + _index1 + "]",
102
+ expected: "string",
103
+ value: elem
104
+ }, errorFactory)) || $guard(_exceptionable, {
105
+ path: _path + ".value",
106
+ expected: "(Array<string> | undefined)",
107
+ value: input.value
108
+ }, errorFactory);
109
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
110
+ path: _path + "",
111
+ expected: "StoryboardDomainPipelinesRecord",
112
+ value: input
113
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
114
+ path: _path + "",
115
+ expected: "StoryboardDomainPipelinesRecord",
116
+ value: input
117
+ }, errorFactory);
118
+ })(input, "$input", true);
119
+ return input;
120
+ }; const stringify = input => {
121
+ const $string = __typia.json.createAssertStringify.string;
122
+ const $tail = __typia.json.createAssertStringify.tail;
123
+ const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => $string(elem)).join(",")}]` : undefined}`}`)}}`;
124
+ return $so0(input);
125
+ }; return stringify(assert(input, errorFactory)); };
@@ -0,0 +1,14 @@
1
+ import { type AssertionGuard as __AssertionGuard } from "typia";
2
+ export interface UserDomainRecords {
3
+ ":user": UserRecord;
4
+ }
5
+ export interface UserRecord {
6
+ username?: string;
7
+ roles?: string[];
8
+ }
9
+ export declare const isUserRecord: (input: unknown) => input is UserRecord;
10
+ export declare const assertUserRecord: (input: unknown) => UserRecord;
11
+ export declare const randomUserRecord: () => UserRecord;
12
+ export declare const assertGuardUserRecord: __AssertionGuard<UserRecord>;
13
+ export declare const stringifyUserRecord: (input: UserRecord) => string;
14
+ export declare const assertStringifyUserRecord: (input: unknown) => string;
@@ -0,0 +1,141 @@
1
+ import __typia from "typia";
2
+ export const isUserRecord = input => {
3
+ const $io0 = input => (undefined === input.username || "string" === typeof input.username) && (undefined === input.roles || Array.isArray(input.roles) && input.roles.every(elem => "string" === typeof elem));
4
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
5
+ };
6
+ export const assertUserRecord = (input, errorFactory) => {
7
+ const __is = input => {
8
+ const $io0 = input => (undefined === input.username || "string" === typeof input.username) && (undefined === input.roles || Array.isArray(input.roles) && input.roles.every(elem => "string" === typeof elem));
9
+ return "object" === typeof input && null !== input && false === Array.isArray(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) => (undefined === input.username || "string" === typeof input.username || $guard(_exceptionable, {
15
+ path: _path + ".username",
16
+ expected: "(string | undefined)",
17
+ value: input.username
18
+ }, errorFactory)) && (undefined === input.roles || (Array.isArray(input.roles) || $guard(_exceptionable, {
19
+ path: _path + ".roles",
20
+ expected: "(Array<string> | undefined)",
21
+ value: input.roles
22
+ }, errorFactory)) && input.roles.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
23
+ path: _path + ".roles[" + _index1 + "]",
24
+ expected: "string",
25
+ value: elem
26
+ }, errorFactory)) || $guard(_exceptionable, {
27
+ path: _path + ".roles",
28
+ expected: "(Array<string> | undefined)",
29
+ value: input.roles
30
+ }, errorFactory));
31
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
32
+ path: _path + "",
33
+ expected: "UserRecord",
34
+ value: input
35
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
36
+ path: _path + "",
37
+ expected: "UserRecord",
38
+ value: input
39
+ }, errorFactory);
40
+ })(input, "$input", true);
41
+ return input;
42
+ };
43
+ export const randomUserRecord = generator => {
44
+ const $generator = __typia.createRandom.generator;
45
+ const $pick = __typia.createRandom.pick;
46
+ const $ro0 = (_recursive = false, _depth = 0) => ({
47
+ username: $pick([
48
+ () => undefined,
49
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
50
+ ])(),
51
+ roles: $pick([
52
+ () => undefined,
53
+ () => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
54
+ ])()
55
+ });
56
+ return $ro0();
57
+ };
58
+ export const assertGuardUserRecord = (input, errorFactory) => {
59
+ const __is = input => {
60
+ const $io0 = input => (undefined === input.username || "string" === typeof input.username) && (undefined === input.roles || Array.isArray(input.roles) && input.roles.every(elem => "string" === typeof elem));
61
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
62
+ };
63
+ if (false === __is(input))
64
+ ((input, _path, _exceptionable = true) => {
65
+ const $guard = __typia.createAssertGuard.guard;
66
+ const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.username || "string" === typeof input.username || $guard(_exceptionable, {
67
+ path: _path + ".username",
68
+ expected: "(string | undefined)",
69
+ value: input.username
70
+ }, errorFactory)) && (undefined === input.roles || (Array.isArray(input.roles) || $guard(_exceptionable, {
71
+ path: _path + ".roles",
72
+ expected: "(Array<string> | undefined)",
73
+ value: input.roles
74
+ }, errorFactory)) && input.roles.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
75
+ path: _path + ".roles[" + _index1 + "]",
76
+ expected: "string",
77
+ value: elem
78
+ }, errorFactory)) || $guard(_exceptionable, {
79
+ path: _path + ".roles",
80
+ expected: "(Array<string> | undefined)",
81
+ value: input.roles
82
+ }, errorFactory));
83
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
84
+ path: _path + "",
85
+ expected: "UserRecord",
86
+ value: input
87
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
88
+ path: _path + "",
89
+ expected: "UserRecord",
90
+ value: input
91
+ }, errorFactory);
92
+ })(input, "$input", true);
93
+ };
94
+ export const stringifyUserRecord = input => {
95
+ const $string = __typia.json.createStringify.string;
96
+ const $tail = __typia.json.createStringify.tail;
97
+ const $so0 = input => `{${$tail(`${undefined === input.username ? "" : `"username":${undefined !== input.username ? $string(input.username) : undefined},`}${undefined === input.roles ? "" : `"roles":${undefined !== input.roles ? `[${input.roles.map(elem => $string(elem)).join(",")}]` : undefined}`}`)}}`;
98
+ return $so0(input);
99
+ };
100
+ export const assertStringifyUserRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
101
+ const __is = input => {
102
+ const $io0 = input => (undefined === input.username || "string" === typeof input.username) && (undefined === input.roles || Array.isArray(input.roles) && input.roles.every(elem => "string" === typeof elem));
103
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
104
+ };
105
+ if (false === __is(input))
106
+ ((input, _path, _exceptionable = true) => {
107
+ const $guard = __typia.json.createAssertStringify.guard;
108
+ const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.username || "string" === typeof input.username || $guard(_exceptionable, {
109
+ path: _path + ".username",
110
+ expected: "(string | undefined)",
111
+ value: input.username
112
+ }, errorFactory)) && (undefined === input.roles || (Array.isArray(input.roles) || $guard(_exceptionable, {
113
+ path: _path + ".roles",
114
+ expected: "(Array<string> | undefined)",
115
+ value: input.roles
116
+ }, errorFactory)) && input.roles.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
117
+ path: _path + ".roles[" + _index1 + "]",
118
+ expected: "string",
119
+ value: elem
120
+ }, errorFactory)) || $guard(_exceptionable, {
121
+ path: _path + ".roles",
122
+ expected: "(Array<string> | undefined)",
123
+ value: input.roles
124
+ }, errorFactory));
125
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
126
+ path: _path + "",
127
+ expected: "UserRecord",
128
+ value: input
129
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
130
+ path: _path + "",
131
+ expected: "UserRecord",
132
+ value: input
133
+ }, errorFactory);
134
+ })(input, "$input", true);
135
+ return input;
136
+ }; const stringify = input => {
137
+ const $string = __typia.json.createAssertStringify.string;
138
+ const $tail = __typia.json.createAssertStringify.tail;
139
+ const $so0 = input => `{${$tail(`${undefined === input.username ? "" : `"username":${undefined !== input.username ? $string(input.username) : undefined},`}${undefined === input.roles ? "" : `"roles":${undefined !== input.roles ? `[${input.roles.map(elem => $string(elem)).join(",")}]` : undefined}`}`)}}`;
140
+ return $so0(input);
141
+ }; return stringify(assert(input, errorFactory)); };
package/dist/index.d.ts CHANGED
@@ -1,10 +1,25 @@
1
- import type { DomainRecords } from './domains/index.js';
1
+ import { type AssertionGuard as __AssertionGuard } from "typia";
2
+ import type { DomainRecords, DesignDomainRecords } from './domains/index.js';
3
+ import type { MediaType, RenderPreset, Nxtpression } from './common/index.js';
2
4
  export * from './domains/index.js';
3
5
  export * from './common/index.js';
4
6
  export * from './app.js';
5
7
  export * from './rpc.js';
8
+ export * from './asset.js';
9
+ import { AssetRecords } from './asset.js';
10
+ export type Domains = Exclude<keyof DomainRecords, ":design">;
11
+ export declare const isDomains: (input: unknown) => input is Domains;
12
+ export declare const assertDomains: (input: unknown) => Domains;
13
+ export declare const randomDomains: () => Domains;
14
+ export declare const assertGuardDomains: __AssertionGuard<Domains>;
15
+ export declare const stringifyDomains: (input: Domains) => string;
16
+ export declare const assertStringifyDomains: (input: unknown) => string;
6
17
  export type Records = {
7
- [Property in keyof DomainRecords as `${string}${Property}`]: DomainRecords[Property];
18
+ [Property in Domains as `${string}${Property}`]: DomainRecords[Property];
19
+ } & {
20
+ ":permission": DomainRows;
21
+ } & {
22
+ [Property in keyof DesignDomainRecords as `${string}${Property}${string}`]: DesignDomainRecords[Property];
8
23
  } & {
9
24
  "media.subtitles?": {
10
25
  languages: Record<string, string>;
@@ -16,6 +31,11 @@ export type Records = {
16
31
  languages: Record<string, string>;
17
32
  };
18
33
  };
34
+ "media.consolidate": {
35
+ presets?: {
36
+ [type in MediaType]: RenderPreset;
37
+ };
38
+ };
19
39
  "hub-transcribe:render-profile": {
20
40
  format: string;
21
41
  transcribe: {
@@ -23,7 +43,70 @@ export type Records = {
23
43
  };
24
44
  pick: string[];
25
45
  };
26
- ":permission": {
27
- rows: string[];
46
+ "asset.assignees": {
47
+ value?: Nxtpression<string[], {
48
+ id: string;
49
+ }>;
50
+ dynamic?: string[];
51
+ };
52
+ "asset.deadlines": {
53
+ value?: Nxtpression<string, {
54
+ id: string;
55
+ }>;
56
+ dynamic?: string[];
57
+ };
58
+ "asset.duration": {
59
+ value?: Nxtpression<number, {
60
+ id: string;
61
+ }>;
62
+ dynamic?: string[];
63
+ };
64
+ "asset.embedding": {
65
+ value?: Nxtpression<string, {
66
+ id: string;
67
+ }>;
68
+ dynamic?: string[];
69
+ };
70
+ "asset.icon": {
71
+ value?: Nxtpression<string, {
72
+ id: string;
73
+ }>;
74
+ dynamic?: string[];
75
+ };
76
+ "asset.locations": {
77
+ value?: Nxtpression<Array<{
78
+ lat: number;
79
+ lon: number;
80
+ }>, {
81
+ id: string;
82
+ }>;
83
+ dynamic?: string[];
84
+ };
85
+ "asset.media": {
86
+ value?: Nxtpression<Record<string, unknown>, {
87
+ id: string;
88
+ }>;
89
+ dynamic?: string[];
90
+ };
91
+ "asset.tags": {
92
+ value?: Nxtpression<string[], {
93
+ id: string;
94
+ }>;
95
+ dynamic?: string[];
96
+ };
97
+ "asset.title": {
98
+ value?: Nxtpression<string, {
99
+ id: string;
100
+ }>;
101
+ dynamic?: string[];
102
+ };
103
+ "asset.types": {
104
+ [type: string]: null | string | {
105
+ priority?: number;
106
+ label: string;
107
+ };
28
108
  };
29
- };
109
+ } & AssetRecords;
110
+ interface DomainRows {
111
+ rows: string[];
112
+ }
package/dist/index.js CHANGED
@@ -1,4 +1,155 @@
1
+ import __typia from "typia";
1
2
  export * from './domains/index.js';
2
3
  export * from './common/index.js';
3
4
  export * from './app.js';
4
5
  export * from './rpc.js';
6
+ export * from './asset.js';
7
+ export const isDomains = input => {
8
+ const $iv1 = new Set([":bundle", ":bundle.revisions", ":connection", ":connection.methods?", ":connection.stats?", ":publish", ":publish.stats?", ":publish.methods?", ":published", ":asset.title?", ":asset.types?", ":asset.assignees?", ":asset.refs?", ":asset.tags?", ":asset.fileRefs?", ":asset.created?", ":asset.modified?", ":asset.status?", ":asset.icon?", ":asset.deadlines?", ":asset.published?", ":asset.duration?", ":asset.locations?", ":asset.controllers?", ":asset.embedding?", ":asset.media?", ":clone", ":contact", ":event", ":event._template?", ":file.replicate", ":file.restrictions", ":general.title", ":general.tags", ":general.created", ":general.poster", ":general.status", ":general.description", ":media.source", ":media.consolidate", ":media.renders?", ":media.transcriptChanges", ":media.font", ":media.restrictions?", ":media.probe?", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":render-preset", ":revs?", ":role.tags", ":script.children", ":search", ":settings", ":storyboard", ":storyboard.pipelines", ":template", ":user"]);
9
+ return true === $iv1.has(input);
10
+ };
11
+ export const assertDomains = (input, errorFactory) => {
12
+ const __is = input => {
13
+ const $iv1 = new Set([":bundle", ":bundle.revisions", ":connection", ":connection.methods?", ":connection.stats?", ":publish", ":publish.stats?", ":publish.methods?", ":published", ":asset.title?", ":asset.types?", ":asset.assignees?", ":asset.refs?", ":asset.tags?", ":asset.fileRefs?", ":asset.created?", ":asset.modified?", ":asset.status?", ":asset.icon?", ":asset.deadlines?", ":asset.published?", ":asset.duration?", ":asset.locations?", ":asset.controllers?", ":asset.embedding?", ":asset.media?", ":clone", ":contact", ":event", ":event._template?", ":file.replicate", ":file.restrictions", ":general.title", ":general.tags", ":general.created", ":general.poster", ":general.status", ":general.description", ":media.source", ":media.consolidate", ":media.renders?", ":media.transcriptChanges", ":media.font", ":media.restrictions?", ":media.probe?", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":render-preset", ":revs?", ":role.tags", ":script.children", ":search", ":settings", ":storyboard", ":storyboard.pipelines", ":template", ":user"]);
14
+ return true === $iv1.has(input);
15
+ };
16
+ if (false === __is(input))
17
+ ((input, _path, _exceptionable = true) => {
18
+ const $guard = __typia.createAssert.guard;
19
+ const $av1 = new Set([":bundle", ":bundle.revisions", ":connection", ":connection.methods?", ":connection.stats?", ":publish", ":publish.stats?", ":publish.methods?", ":published", ":asset.title?", ":asset.types?", ":asset.assignees?", ":asset.refs?", ":asset.tags?", ":asset.fileRefs?", ":asset.created?", ":asset.modified?", ":asset.status?", ":asset.icon?", ":asset.deadlines?", ":asset.published?", ":asset.duration?", ":asset.locations?", ":asset.controllers?", ":asset.embedding?", ":asset.media?", ":clone", ":contact", ":event", ":event._template?", ":file.replicate", ":file.restrictions", ":general.title", ":general.tags", ":general.created", ":general.poster", ":general.status", ":general.description", ":media.source", ":media.consolidate", ":media.renders?", ":media.transcriptChanges", ":media.font", ":media.restrictions?", ":media.probe?", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":render-preset", ":revs?", ":role.tags", ":script.children", ":search", ":settings", ":storyboard", ":storyboard.pipelines", ":template", ":user"]);
20
+ return true === $av1.has(input) || $guard(true, {
21
+ path: _path + "",
22
+ expected: "(\":asset.assignees?\" | \":asset.controllers?\" | \":asset.created?\" | \":asset.deadlines?\" | \":asset.duration?\" | \":asset.embedding?\" | \":asset.fileRefs?\" | \":asset.icon?\" | \":asset.locations?\" | \":asset.media?\" | \":asset.modified?\" | \":asset.published?\" | \":asset.refs?\" | \":asset.status?\" | \":asset.tags?\" | \":asset.title?\" | \":asset.types?\" | \":bundle\" | \":bundle.revisions\" | \":clone\" | \":connection\" | \":connection.methods?\" | \":connection.stats?\" | \":contact\" | \":event\" | \":event._template?\" | \":file.replicate\" | \":file.restrictions\" | \":general.created\" | \":general.description\" | \":general.poster\" | \":general.status\" | \":general.tags\" | \":general.title\" | \":media.consolidate\" | \":media.font\" | \":media.probe?\" | \":media.renders?\" | \":media.restrictions?\" | \":media.source\" | \":media.transcriptChanges\" | \":permission\" | \":permission?\" | \":pipeline\" | \":pipeline-preset\" | \":pipeline.items\" | \":planning\" | \":planning.assignees\" | \":planning.deadline\" | \":publish\" | \":publish.methods?\" | \":publish.stats?\" | \":published\" | \":render-preset\" | \":revs?\" | \":role.tags\" | \":script.children\" | \":search\" | \":settings\" | \":storyboard\" | \":storyboard.pipelines\" | \":template\" | \":user\")",
23
+ value: input
24
+ }, errorFactory);
25
+ })(input, "$input", true);
26
+ return input;
27
+ };
28
+ export const randomDomains = generator => {
29
+ const $pick = __typia.createRandom.pick;
30
+ return $pick([
31
+ () => ":bundle",
32
+ () => ":bundle.revisions",
33
+ () => ":connection",
34
+ () => ":connection.methods?",
35
+ () => ":connection.stats?",
36
+ () => ":publish",
37
+ () => ":publish.stats?",
38
+ () => ":publish.methods?",
39
+ () => ":published",
40
+ () => ":asset.title?",
41
+ () => ":asset.types?",
42
+ () => ":asset.assignees?",
43
+ () => ":asset.refs?",
44
+ () => ":asset.tags?",
45
+ () => ":asset.fileRefs?",
46
+ () => ":asset.created?",
47
+ () => ":asset.modified?",
48
+ () => ":asset.status?",
49
+ () => ":asset.icon?",
50
+ () => ":asset.deadlines?",
51
+ () => ":asset.published?",
52
+ () => ":asset.duration?",
53
+ () => ":asset.locations?",
54
+ () => ":asset.controllers?",
55
+ () => ":asset.embedding?",
56
+ () => ":asset.media?",
57
+ () => ":clone",
58
+ () => ":contact",
59
+ () => ":event",
60
+ () => ":event._template?",
61
+ () => ":file.replicate",
62
+ () => ":file.restrictions",
63
+ () => ":general.title",
64
+ () => ":general.tags",
65
+ () => ":general.created",
66
+ () => ":general.poster",
67
+ () => ":general.status",
68
+ () => ":general.description",
69
+ () => ":media.source",
70
+ () => ":media.consolidate",
71
+ () => ":media.renders?",
72
+ () => ":media.transcriptChanges",
73
+ () => ":media.font",
74
+ () => ":media.restrictions?",
75
+ () => ":media.probe?",
76
+ () => ":permission?",
77
+ () => ":permission",
78
+ () => ":pipeline-preset",
79
+ () => ":pipeline",
80
+ () => ":pipeline.items",
81
+ () => ":planning",
82
+ () => ":planning.assignees",
83
+ () => ":planning.deadline",
84
+ () => ":render-preset",
85
+ () => ":revs?",
86
+ () => ":role.tags",
87
+ () => ":script.children",
88
+ () => ":search",
89
+ () => ":settings",
90
+ () => ":storyboard",
91
+ () => ":storyboard.pipelines",
92
+ () => ":template",
93
+ () => ":user"
94
+ ])();
95
+ };
96
+ export const assertGuardDomains = (input, errorFactory) => {
97
+ const __is = input => {
98
+ const $iv1 = new Set([":bundle", ":bundle.revisions", ":connection", ":connection.methods?", ":connection.stats?", ":publish", ":publish.stats?", ":publish.methods?", ":published", ":asset.title?", ":asset.types?", ":asset.assignees?", ":asset.refs?", ":asset.tags?", ":asset.fileRefs?", ":asset.created?", ":asset.modified?", ":asset.status?", ":asset.icon?", ":asset.deadlines?", ":asset.published?", ":asset.duration?", ":asset.locations?", ":asset.controllers?", ":asset.embedding?", ":asset.media?", ":clone", ":contact", ":event", ":event._template?", ":file.replicate", ":file.restrictions", ":general.title", ":general.tags", ":general.created", ":general.poster", ":general.status", ":general.description", ":media.source", ":media.consolidate", ":media.renders?", ":media.transcriptChanges", ":media.font", ":media.restrictions?", ":media.probe?", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":render-preset", ":revs?", ":role.tags", ":script.children", ":search", ":settings", ":storyboard", ":storyboard.pipelines", ":template", ":user"]);
99
+ return true === $iv1.has(input);
100
+ };
101
+ if (false === __is(input))
102
+ ((input, _path, _exceptionable = true) => {
103
+ const $guard = __typia.createAssertGuard.guard;
104
+ const $av1 = new Set([":bundle", ":bundle.revisions", ":connection", ":connection.methods?", ":connection.stats?", ":publish", ":publish.stats?", ":publish.methods?", ":published", ":asset.title?", ":asset.types?", ":asset.assignees?", ":asset.refs?", ":asset.tags?", ":asset.fileRefs?", ":asset.created?", ":asset.modified?", ":asset.status?", ":asset.icon?", ":asset.deadlines?", ":asset.published?", ":asset.duration?", ":asset.locations?", ":asset.controllers?", ":asset.embedding?", ":asset.media?", ":clone", ":contact", ":event", ":event._template?", ":file.replicate", ":file.restrictions", ":general.title", ":general.tags", ":general.created", ":general.poster", ":general.status", ":general.description", ":media.source", ":media.consolidate", ":media.renders?", ":media.transcriptChanges", ":media.font", ":media.restrictions?", ":media.probe?", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":render-preset", ":revs?", ":role.tags", ":script.children", ":search", ":settings", ":storyboard", ":storyboard.pipelines", ":template", ":user"]);
105
+ return true === $av1.has(input) || $guard(true, {
106
+ path: _path + "",
107
+ expected: "(\":asset.assignees?\" | \":asset.controllers?\" | \":asset.created?\" | \":asset.deadlines?\" | \":asset.duration?\" | \":asset.embedding?\" | \":asset.fileRefs?\" | \":asset.icon?\" | \":asset.locations?\" | \":asset.media?\" | \":asset.modified?\" | \":asset.published?\" | \":asset.refs?\" | \":asset.status?\" | \":asset.tags?\" | \":asset.title?\" | \":asset.types?\" | \":bundle\" | \":bundle.revisions\" | \":clone\" | \":connection\" | \":connection.methods?\" | \":connection.stats?\" | \":contact\" | \":event\" | \":event._template?\" | \":file.replicate\" | \":file.restrictions\" | \":general.created\" | \":general.description\" | \":general.poster\" | \":general.status\" | \":general.tags\" | \":general.title\" | \":media.consolidate\" | \":media.font\" | \":media.probe?\" | \":media.renders?\" | \":media.restrictions?\" | \":media.source\" | \":media.transcriptChanges\" | \":permission\" | \":permission?\" | \":pipeline\" | \":pipeline-preset\" | \":pipeline.items\" | \":planning\" | \":planning.assignees\" | \":planning.deadline\" | \":publish\" | \":publish.methods?\" | \":publish.stats?\" | \":published\" | \":render-preset\" | \":revs?\" | \":role.tags\" | \":script.children\" | \":search\" | \":settings\" | \":storyboard\" | \":storyboard.pipelines\" | \":template\" | \":user\")",
108
+ value: input
109
+ }, errorFactory);
110
+ })(input, "$input", true);
111
+ };
112
+ export const stringifyDomains = input => {
113
+ const $string = __typia.json.createStringify.string;
114
+ const $throws = __typia.json.createStringify.throws;
115
+ return (() => {
116
+ if ("string" === typeof input)
117
+ return $string(input);
118
+ if ("string" === typeof input)
119
+ return "\"" + input + "\"";
120
+ $throws({
121
+ expected: "(\":asset.assignees?\" | \":asset.controllers?\" | \":asset.created?\" | \":asset.deadlines?\" | \":asset.duration?\" | \":asset.embedding?\" | \":asset.fileRefs?\" | \":asset.icon?\" | \":asset.locations?\" | \":asset.media?\" | \":asset.modified?\" | \":asset.published?\" | \":asset.refs?\" | \":asset.status?\" | \":asset.tags?\" | \":asset.title?\" | \":asset.types?\" | \":bundle\" | \":bundle.revisions\" | \":clone\" | \":connection\" | \":connection.methods?\" | \":connection.stats?\" | \":contact\" | \":event\" | \":event._template?\" | \":file.replicate\" | \":file.restrictions\" | \":general.created\" | \":general.description\" | \":general.poster\" | \":general.status\" | \":general.tags\" | \":general.title\" | \":media.consolidate\" | \":media.font\" | \":media.probe?\" | \":media.renders?\" | \":media.restrictions?\" | \":media.source\" | \":media.transcriptChanges\" | \":permission\" | \":permission?\" | \":pipeline\" | \":pipeline-preset\" | \":pipeline.items\" | \":planning\" | \":planning.assignees\" | \":planning.deadline\" | \":publish\" | \":publish.methods?\" | \":publish.stats?\" | \":published\" | \":render-preset\" | \":revs?\" | \":role.tags\" | \":script.children\" | \":search\" | \":settings\" | \":storyboard\" | \":storyboard.pipelines\" | \":template\" | \":user\")",
122
+ value: input
123
+ });
124
+ })();
125
+ };
126
+ export const assertStringifyDomains = (input, errorFactory) => { const assert = (input, errorFactory) => {
127
+ const __is = input => {
128
+ const $iv1 = new Set([":bundle", ":bundle.revisions", ":connection", ":connection.methods?", ":connection.stats?", ":publish", ":publish.stats?", ":publish.methods?", ":published", ":asset.title?", ":asset.types?", ":asset.assignees?", ":asset.refs?", ":asset.tags?", ":asset.fileRefs?", ":asset.created?", ":asset.modified?", ":asset.status?", ":asset.icon?", ":asset.deadlines?", ":asset.published?", ":asset.duration?", ":asset.locations?", ":asset.controllers?", ":asset.embedding?", ":asset.media?", ":clone", ":contact", ":event", ":event._template?", ":file.replicate", ":file.restrictions", ":general.title", ":general.tags", ":general.created", ":general.poster", ":general.status", ":general.description", ":media.source", ":media.consolidate", ":media.renders?", ":media.transcriptChanges", ":media.font", ":media.restrictions?", ":media.probe?", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":render-preset", ":revs?", ":role.tags", ":script.children", ":search", ":settings", ":storyboard", ":storyboard.pipelines", ":template", ":user"]);
129
+ return true === $iv1.has(input);
130
+ };
131
+ if (false === __is(input))
132
+ ((input, _path, _exceptionable = true) => {
133
+ const $guard = __typia.json.createAssertStringify.guard;
134
+ const $av1 = new Set([":bundle", ":bundle.revisions", ":connection", ":connection.methods?", ":connection.stats?", ":publish", ":publish.stats?", ":publish.methods?", ":published", ":asset.title?", ":asset.types?", ":asset.assignees?", ":asset.refs?", ":asset.tags?", ":asset.fileRefs?", ":asset.created?", ":asset.modified?", ":asset.status?", ":asset.icon?", ":asset.deadlines?", ":asset.published?", ":asset.duration?", ":asset.locations?", ":asset.controllers?", ":asset.embedding?", ":asset.media?", ":clone", ":contact", ":event", ":event._template?", ":file.replicate", ":file.restrictions", ":general.title", ":general.tags", ":general.created", ":general.poster", ":general.status", ":general.description", ":media.source", ":media.consolidate", ":media.renders?", ":media.transcriptChanges", ":media.font", ":media.restrictions?", ":media.probe?", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":render-preset", ":revs?", ":role.tags", ":script.children", ":search", ":settings", ":storyboard", ":storyboard.pipelines", ":template", ":user"]);
135
+ return true === $av1.has(input) || $guard(true, {
136
+ path: _path + "",
137
+ expected: "(\":asset.assignees?\" | \":asset.controllers?\" | \":asset.created?\" | \":asset.deadlines?\" | \":asset.duration?\" | \":asset.embedding?\" | \":asset.fileRefs?\" | \":asset.icon?\" | \":asset.locations?\" | \":asset.media?\" | \":asset.modified?\" | \":asset.published?\" | \":asset.refs?\" | \":asset.status?\" | \":asset.tags?\" | \":asset.title?\" | \":asset.types?\" | \":bundle\" | \":bundle.revisions\" | \":clone\" | \":connection\" | \":connection.methods?\" | \":connection.stats?\" | \":contact\" | \":event\" | \":event._template?\" | \":file.replicate\" | \":file.restrictions\" | \":general.created\" | \":general.description\" | \":general.poster\" | \":general.status\" | \":general.tags\" | \":general.title\" | \":media.consolidate\" | \":media.font\" | \":media.probe?\" | \":media.renders?\" | \":media.restrictions?\" | \":media.source\" | \":media.transcriptChanges\" | \":permission\" | \":permission?\" | \":pipeline\" | \":pipeline-preset\" | \":pipeline.items\" | \":planning\" | \":planning.assignees\" | \":planning.deadline\" | \":publish\" | \":publish.methods?\" | \":publish.stats?\" | \":published\" | \":render-preset\" | \":revs?\" | \":role.tags\" | \":script.children\" | \":search\" | \":settings\" | \":storyboard\" | \":storyboard.pipelines\" | \":template\" | \":user\")",
138
+ value: input
139
+ }, errorFactory);
140
+ })(input, "$input", true);
141
+ return input;
142
+ }; const stringify = input => {
143
+ const $string = __typia.json.createAssertStringify.string;
144
+ const $throws = __typia.json.createAssertStringify.throws;
145
+ return (() => {
146
+ if ("string" === typeof input)
147
+ return $string(input);
148
+ if ("string" === typeof input)
149
+ return "\"" + input + "\"";
150
+ $throws({
151
+ expected: "(\":asset.assignees?\" | \":asset.controllers?\" | \":asset.created?\" | \":asset.deadlines?\" | \":asset.duration?\" | \":asset.embedding?\" | \":asset.fileRefs?\" | \":asset.icon?\" | \":asset.locations?\" | \":asset.media?\" | \":asset.modified?\" | \":asset.published?\" | \":asset.refs?\" | \":asset.status?\" | \":asset.tags?\" | \":asset.title?\" | \":asset.types?\" | \":bundle\" | \":bundle.revisions\" | \":clone\" | \":connection\" | \":connection.methods?\" | \":connection.stats?\" | \":contact\" | \":event\" | \":event._template?\" | \":file.replicate\" | \":file.restrictions\" | \":general.created\" | \":general.description\" | \":general.poster\" | \":general.status\" | \":general.tags\" | \":general.title\" | \":media.consolidate\" | \":media.font\" | \":media.probe?\" | \":media.renders?\" | \":media.restrictions?\" | \":media.source\" | \":media.transcriptChanges\" | \":permission\" | \":permission?\" | \":pipeline\" | \":pipeline-preset\" | \":pipeline.items\" | \":planning\" | \":planning.assignees\" | \":planning.deadline\" | \":publish\" | \":publish.methods?\" | \":publish.stats?\" | \":published\" | \":render-preset\" | \":revs?\" | \":role.tags\" | \":script.children\" | \":search\" | \":settings\" | \":storyboard\" | \":storyboard.pipelines\" | \":template\" | \":user\")",
152
+ value: input
153
+ });
154
+ })();
155
+ }; return stringify(assert(input, errorFactory)); };
package/dist/rpc.d.ts CHANGED
@@ -1,9 +1,10 @@
1
1
  import { type AssertionGuard as __AssertionGuard } from "typia";
2
+ import { CloneSource, CloneTarget, CloneRule } from './common/index.js';
2
3
  export interface RpcMethods {
3
4
  "media/applySubtitles": [
4
5
  {
5
- source: Source;
6
- target: Target;
6
+ source: CloneSource;
7
+ target: CloneTarget;
7
8
  lang: string;
8
9
  templateId?: string;
9
10
  },
@@ -11,8 +12,11 @@ export interface RpcMethods {
11
12
  ];
12
13
  "asset/clone": [
13
14
  {
14
- source: Source;
15
- target?: Target;
15
+ source: CloneSource;
16
+ target?: CloneTarget;
17
+ clone?: {
18
+ rules?: CloneRule[];
19
+ };
16
20
  [key: string]: unknown;
17
21
  },
18
22
  string
@@ -57,12 +61,3 @@ export declare const randomNxtExport: () => NxtExport;
57
61
  export declare const assertGuardNxtExport: __AssertionGuard<NxtExport>;
58
62
  export declare const stringifyNxtExport: (input: NxtExport) => string;
59
63
  export declare const assertStringifyNxtExport: (input: unknown) => string;
60
- type Source = string | {
61
- id: string;
62
- patches?: Record<string, unknown>;
63
- };
64
- type Target = string | {
65
- id: string;
66
- patches?: Record<string, unknown>;
67
- };
68
- export {};