@nxtedition/types 23.0.39 → 23.0.41

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 (243) hide show
  1. package/dist/app.d.ts +0 -51
  2. package/dist/app.js +1 -823
  3. package/dist/common/block.d.ts +6 -13
  4. package/dist/common/block.js +597 -1607
  5. package/dist/common/clone.d.ts +0 -19
  6. package/dist/common/clone.js +1 -602
  7. package/dist/common/date.d.ts +0 -7
  8. package/dist/common/date.js +1 -59
  9. package/dist/common/error.d.ts +0 -7
  10. package/dist/common/error.js +1 -404
  11. package/dist/common/file.d.ts +1 -21
  12. package/dist/common/file.js +782 -2521
  13. package/dist/common/index.d.ts +20 -26
  14. package/dist/common/index.js +20 -134
  15. package/dist/common/location.d.ts +0 -6
  16. package/dist/common/location.js +73 -238
  17. package/dist/common/lock.d.ts +1 -8
  18. package/dist/common/lock.js +1 -211
  19. package/dist/common/media.d.ts +0 -7
  20. package/dist/common/media.js +1 -83
  21. package/dist/common/nxtpression.d.ts +2 -9
  22. package/dist/common/nxtpression.js +1 -277
  23. package/dist/common/pipeline.d.ts +0 -7
  24. package/dist/common/pipeline.js +1 -97
  25. package/dist/common/promoted-tag.d.ts +0 -7
  26. package/dist/common/promoted-tag.js +1 -147
  27. package/dist/common/render-preset.d.ts +2 -15
  28. package/dist/common/render-preset.js +1 -1202
  29. package/dist/common/render-profile.d.ts +0 -19
  30. package/dist/common/render-profile.js +1 -1052
  31. package/dist/common/render-query.d.ts +2 -9
  32. package/dist/common/render-query.js +1 -1754
  33. package/dist/common/render-scene.d.ts +2 -15
  34. package/dist/common/render-scene.js +1 -2230
  35. package/dist/common/rule.d.ts +1 -7
  36. package/dist/common/rule.js +84 -254
  37. package/dist/common/search.d.ts +0 -25
  38. package/dist/common/search.js +1 -1591
  39. package/dist/common/settings.d.ts +128 -121
  40. package/dist/common/settings.js +1 -6936
  41. package/dist/common/subtitle-style.d.ts +25 -0
  42. package/dist/common/user-notification.d.ts +0 -7
  43. package/dist/common/user-notification.js +1 -85
  44. package/dist/index.d.ts +5 -85
  45. package/dist/index.js +5 -187
  46. package/dist/nxtpression.d.ts +732 -344
  47. package/dist/nxtpression.js +1 -323
  48. package/dist/records/domains/asset.d.ts +106 -0
  49. package/dist/records/domains/bundle.d.ts +12 -0
  50. package/dist/records/domains/bundle.js +1 -0
  51. package/dist/records/domains/clone.d.ts +7 -0
  52. package/dist/records/domains/clone.js +1 -0
  53. package/dist/records/domains/comment-reaction.d.ts +8 -0
  54. package/dist/records/domains/comment-reaction.js +1 -0
  55. package/dist/records/domains/comment-read-mark.d.ts +8 -0
  56. package/dist/records/domains/comment-read-mark.js +1 -0
  57. package/dist/records/domains/comment.d.ts +81 -0
  58. package/dist/records/domains/comment.js +19 -0
  59. package/dist/records/domains/connection.d.ts +77 -0
  60. package/dist/records/domains/connection.js +1 -0
  61. package/dist/records/domains/contact.d.ts +9 -0
  62. package/dist/records/domains/contact.js +1 -0
  63. package/dist/records/domains/deepstream.d.ts +7 -0
  64. package/dist/records/domains/deepstream.js +1 -0
  65. package/dist/records/domains/design.d.ts +11 -0
  66. package/dist/records/domains/design.js +1 -0
  67. package/dist/records/domains/edit.d.ts +10 -0
  68. package/dist/records/domains/edit.js +1 -0
  69. package/dist/records/domains/event.d.ts +66 -0
  70. package/dist/records/domains/event.js +1 -0
  71. package/dist/records/domains/file.d.ts +26 -0
  72. package/dist/records/domains/file.js +1 -0
  73. package/dist/records/domains/general.d.ts +41 -0
  74. package/dist/records/domains/general.js +1 -0
  75. package/dist/records/domains/index.d.ts +77 -0
  76. package/dist/records/domains/index.js +38 -0
  77. package/dist/records/domains/media.d.ts +64 -0
  78. package/dist/records/domains/media.js +1 -0
  79. package/dist/records/domains/monitor.d.ts +116 -0
  80. package/dist/records/domains/monitor.js +1 -0
  81. package/dist/records/domains/panel.d.ts +55 -0
  82. package/dist/records/domains/panel.js +1 -0
  83. package/dist/records/domains/permission.d.ts +25 -0
  84. package/dist/records/domains/permission.js +2 -0
  85. package/dist/records/domains/pipeline-preset.d.ts +10 -0
  86. package/dist/records/domains/pipeline-preset.js +1 -0
  87. package/dist/records/domains/pipeline.d.ts +17 -0
  88. package/dist/records/domains/pipeline.js +1 -0
  89. package/dist/records/domains/planning.d.ts +14 -0
  90. package/dist/records/domains/planning.js +1 -0
  91. package/dist/records/domains/prompter.d.ts +18 -0
  92. package/dist/records/domains/prompter.js +1 -0
  93. package/dist/records/domains/publish.d.ts +145 -0
  94. package/dist/records/domains/publish.js +1 -0
  95. package/dist/records/domains/published.d.ts +12 -0
  96. package/dist/records/domains/published.js +1 -0
  97. package/dist/records/domains/render-preset.d.ts +5 -0
  98. package/dist/records/domains/render-preset.js +1 -0
  99. package/dist/records/domains/render.d.ts +115 -0
  100. package/dist/records/domains/render.js +1 -0
  101. package/dist/records/domains/revs.d.ts +6 -0
  102. package/dist/records/domains/revs.js +1 -0
  103. package/dist/records/domains/role.d.ts +6 -0
  104. package/dist/records/domains/role.js +1 -0
  105. package/dist/records/domains/script.d.ts +101 -0
  106. package/dist/records/domains/script.js +1 -0
  107. package/dist/records/domains/search.d.ts +9 -0
  108. package/dist/records/domains/search.js +1 -0
  109. package/dist/records/domains/settings.d.ts +5 -0
  110. package/dist/records/domains/settings.js +1 -0
  111. package/dist/records/domains/storyboard.d.ts +10 -0
  112. package/dist/records/domains/storyboard.js +1 -0
  113. package/dist/records/domains/subtitle-style.d.ts +13 -0
  114. package/dist/records/domains/subtitle-style.js +1 -0
  115. package/dist/records/domains/subtitle.d.ts +12 -0
  116. package/dist/records/domains/subtitle.js +1 -0
  117. package/dist/records/domains/template.d.ts +10 -0
  118. package/dist/records/domains/template.js +1 -0
  119. package/dist/records/domains/user-notification-status.d.ts +30 -0
  120. package/dist/records/domains/user-notification-status.js +1 -0
  121. package/dist/records/domains/user-notification.d.ts +69 -0
  122. package/dist/records/domains/user-notification.js +1 -0
  123. package/dist/records/domains/user.d.ts +23 -0
  124. package/dist/records/domains/user.js +1 -0
  125. package/dist/records/exact/asset.d.ts +83 -0
  126. package/dist/records/exact/asset.js +1 -0
  127. package/dist/records/exact/index.d.ts +36 -0
  128. package/dist/records/exact/index.js +4 -0
  129. package/dist/records/exact/media.d.ts +52 -0
  130. package/dist/records/exact/media.js +1 -0
  131. package/dist/records/exact/monitor.d.ts +46 -0
  132. package/dist/records/exact/monitor.js +1 -0
  133. package/dist/records/exact/storage.d.ts +32 -0
  134. package/dist/records/exact/storage.js +1 -0
  135. package/dist/records/index.d.ts +10 -0
  136. package/dist/records/index.js +2 -0
  137. package/dist/records/utils.d.ts +7 -0
  138. package/dist/records/utils.js +1 -0
  139. package/dist/records/utils.tds.d.ts +1 -0
  140. package/dist/records/utils.tds.js +7 -0
  141. package/dist/records/validate/assert-guard.d.ts +4 -0
  142. package/dist/records/validate/assert-guard.js +15861 -0
  143. package/dist/records/validate/assert.d.ts +4 -0
  144. package/dist/records/validate/assert.js +15990 -0
  145. package/dist/records/validate/is.d.ts +4 -0
  146. package/dist/records/validate/is.js +1017 -0
  147. package/dist/records/validate/schemas.d.ts +9 -0
  148. package/dist/records/validate/schemas.js +12613 -0
  149. package/dist/records/validate/stringify.d.ts +4 -0
  150. package/dist/records/validate/stringify.js +1904 -0
  151. package/dist/records/validate/utils.d.ts +15 -0
  152. package/dist/records/validate/utils.js +18 -0
  153. package/dist/records/validate/utils.test.d.ts +1 -0
  154. package/dist/records/validate/utils.test.js +35 -0
  155. package/dist/records/validate/validate.d.ts +5 -0
  156. package/dist/records/validate/validate.js +14943 -0
  157. package/dist/rpc.d.ts +13 -14
  158. package/dist/rpc.js +126 -511
  159. package/dist/tsdoc-metadata.json +1 -1
  160. package/package.json +26 -15
  161. package/dist/asset.d.ts +0 -72
  162. package/dist/domains/asset.d.ts +0 -227
  163. package/dist/domains/asset.js +0 -2672
  164. package/dist/domains/bundle.d.ts +0 -25
  165. package/dist/domains/bundle.js +0 -512
  166. package/dist/domains/clone.d.ts +0 -14
  167. package/dist/domains/clone.js +0 -192
  168. package/dist/domains/comment-reaction.d.ts +0 -15
  169. package/dist/domains/comment-reaction.js +0 -115
  170. package/dist/domains/comment-read-mark.d.ts +0 -15
  171. package/dist/domains/comment-read-mark.js +0 -115
  172. package/dist/domains/comment.d.ts +0 -153
  173. package/dist/domains/comment.js +0 -5906
  174. package/dist/domains/connection.d.ts +0 -141
  175. package/dist/domains/connection.js +0 -5860
  176. package/dist/domains/contact.d.ts +0 -16
  177. package/dist/domains/contact.js +0 -149
  178. package/dist/domains/deepstream.d.ts +0 -14
  179. package/dist/domains/deepstream.js +0 -139
  180. package/dist/domains/design.d.ts +0 -24
  181. package/dist/domains/design.js +0 -303
  182. package/dist/domains/edit.d.ts +0 -17
  183. package/dist/domains/edit.js +0 -224
  184. package/dist/domains/event.d.ts +0 -42
  185. package/dist/domains/event.js +0 -754
  186. package/dist/domains/file.d.ts +0 -51
  187. package/dist/domains/file.js +0 -2506
  188. package/dist/domains/general.d.ts +0 -84
  189. package/dist/domains/general.js +0 -906
  190. package/dist/domains/index.d.ts +0 -75
  191. package/dist/domains/index.js +0 -37
  192. package/dist/domains/media.d.ts +0 -113
  193. package/dist/domains/media.js +0 -4553
  194. package/dist/domains/monitor.d.ts +0 -416
  195. package/dist/domains/monitor.js +0 -6382
  196. package/dist/domains/panel.d.ts +0 -371
  197. package/dist/domains/panel.js +0 -3198
  198. package/dist/domains/permission.d.ts +0 -61
  199. package/dist/domains/permission.js +0 -1926
  200. package/dist/domains/pipeline-preset.d.ts +0 -17
  201. package/dist/domains/pipeline-preset.js +0 -236
  202. package/dist/domains/pipeline.d.ts +0 -30
  203. package/dist/domains/pipeline.js +0 -460
  204. package/dist/domains/planning.d.ts +0 -33
  205. package/dist/domains/planning.js +0 -324
  206. package/dist/domains/publish.d.ts +0 -1397
  207. package/dist/domains/publish.js +0 -34436
  208. package/dist/domains/published.d.ts +0 -19
  209. package/dist/domains/published.js +0 -204
  210. package/dist/domains/render-preset.d.ts +0 -4
  211. package/dist/domains/render.d.ts +0 -172
  212. package/dist/domains/render.js +0 -4783
  213. package/dist/domains/revs.d.ts +0 -13
  214. package/dist/domains/revs.js +0 -125
  215. package/dist/domains/role.d.ts +0 -13
  216. package/dist/domains/role.js +0 -119
  217. package/dist/domains/script.d.ts +0 -13
  218. package/dist/domains/script.js +0 -125
  219. package/dist/domains/search.d.ts +0 -16
  220. package/dist/domains/search.js +0 -168
  221. package/dist/domains/settings.d.ts +0 -12
  222. package/dist/domains/settings.js +0 -6624
  223. package/dist/domains/storyboard.d.ts +0 -14
  224. package/dist/domains/storyboard.js +0 -125
  225. package/dist/domains/subtitle-style.d.ts +0 -37
  226. package/dist/domains/subtitle-style.js +0 -485
  227. package/dist/domains/subtitle.d.ts +0 -19
  228. package/dist/domains/subtitle.js +0 -212
  229. package/dist/domains/template.d.ts +0 -23
  230. package/dist/domains/template.js +0 -372
  231. package/dist/domains/user-notification-status.d.ts +0 -55
  232. package/dist/domains/user-notification-status.js +0 -715
  233. package/dist/domains/user-notification.d.ts +0 -118
  234. package/dist/domains/user-notification.js +0 -3040
  235. package/dist/domains/user.d.ts +0 -48
  236. package/dist/domains/user.js +0 -481
  237. package/dist/monitor.d.ts +0 -71
  238. package/dist/monitor.js +0 -1942
  239. package/dist/schema.json +0 -9075
  240. package/dist/storage.d.ts +0 -51
  241. package/dist/storage.js +0 -1036
  242. /package/dist/{asset.js → common/subtitle-style.js} +0 -0
  243. /package/dist/{domains/render-preset.js → records/domains/asset.js} +0 -0
@@ -0,0 +1,145 @@
1
+ import type { Message, RenderSceneObject, RenderProfileObject } from '../../common/index.ts';
2
+ import type { Nxtpression } from '../../common/index.ts';
3
+ export interface PublishDomainRecords {
4
+ [":publish"]: PublishRecord;
5
+ [":publish.stats?"]: PublishStatsRecord;
6
+ [":publish.methods?"]: PublishDomainMethodsRecord;
7
+ [":publish.accepts"]: PublishDomainAcceptsProvidedRecord;
8
+ }
9
+ export type PublishRecord = YoutubePublishRecord | FacebookPublishRecord | FilePublishRecord | FilePublishRecordLegacy;
10
+ export type PublishStatsRecord = YoutubePublishStatsRecord | FacebookPublishStatsRecord | FilePublishStatsRecord;
11
+ export interface PublishDomainMethodsRecord {
12
+ [key: string]: {
13
+ rpcId: string;
14
+ rpcData: Record<string, unknown>;
15
+ };
16
+ }
17
+ /**
18
+ * render preset + overrides
19
+ */
20
+ export interface PublishRender {
21
+ preset?: string;
22
+ type: string;
23
+ scene?: RenderSceneObject;
24
+ profile?: RenderProfileObject;
25
+ }
26
+ interface PublishRecordCommon<Type extends PublishRecord["type"]> {
27
+ type: Type;
28
+ asset?: string;
29
+ connection?: string;
30
+ render?: PublishRender;
31
+ draft?: Record<string, unknown>;
32
+ published?: Record<string, unknown>;
33
+ remote?: Record<string, unknown>;
34
+ error?: {
35
+ method: string;
36
+ } | null;
37
+ messages?: Message[];
38
+ }
39
+ export interface PublishStatsRecordCommon {
40
+ status?: string;
41
+ substatus?: string;
42
+ messages?: Message[];
43
+ retrieved?: Record<string, unknown>;
44
+ defaults?: Record<string, unknown>;
45
+ }
46
+ export interface YoutubePublishRecord extends PublishRecordCommon<"youtube"> {
47
+ draft?: {
48
+ snippet?: {
49
+ title?: string;
50
+ tags?: string[];
51
+ description?: string;
52
+ };
53
+ };
54
+ }
55
+ export interface YoutubePublishStatsRecord extends PublishStatsRecordCommon {
56
+ }
57
+ export interface FacebookPublishRecord extends PublishRecordCommon<"facebook"> {
58
+ pageId?: string;
59
+ }
60
+ export interface FacebookPublishStatsRecord extends PublishStatsRecordCommon {
61
+ }
62
+ export interface FilePublishRecord extends PublishRecordCommon<"file"> {
63
+ directory?: string;
64
+ filename?: string;
65
+ renders?: Record<string, FilePublishRender>;
66
+ draft?: FilePublishDraft;
67
+ remote?: FilePublishRemote;
68
+ published?: FilePublishPublished;
69
+ }
70
+ export interface FilePublishRecordLegacy extends PublishRecordCommon<"file"> {
71
+ directory?: string;
72
+ filename?: string;
73
+ draft?: FilePublishDraft;
74
+ remote?: FilePublishRemoteLegacy;
75
+ published?: FilePublishPublished;
76
+ renders?: undefined;
77
+ }
78
+ export interface FilePublishRemoteLegacy extends Record<string, unknown> {
79
+ id?: string;
80
+ path: string;
81
+ filename: string;
82
+ directory?: string;
83
+ subtitle?: {
84
+ path: string;
85
+ };
86
+ metafile?: {
87
+ path: string;
88
+ };
89
+ }
90
+ export type FilePublishRender = Nxtpression<ResolvedFilePublishRender, {
91
+ publish: FilePublishRecord;
92
+ directory: string;
93
+ name: string;
94
+ }>;
95
+ export interface ResolvedFilePublishRender extends Omit<PublishRender, "preset"> {
96
+ preset?: string;
97
+ name?: string;
98
+ path: string;
99
+ collisionStrategy?: "overwrite" | "skip";
100
+ ignoreEmptyScene?: boolean;
101
+ }
102
+ export interface FilePublishPublished extends Record<string, unknown> {
103
+ directory?: string;
104
+ filename: string;
105
+ }
106
+ export interface FilePublishDraft extends Record<string, unknown> {
107
+ directory?: string;
108
+ filename?: string;
109
+ }
110
+ export interface FilePublishRemote extends Record<string, unknown> {
111
+ directory?: string;
112
+ filename?: string;
113
+ renders?: Record<string, FilePublishRemoteRender>;
114
+ }
115
+ export interface FilePublishRemoteRender {
116
+ path?: string;
117
+ messages?: Message[];
118
+ query?: unknown;
119
+ size?: number;
120
+ hash?: string;
121
+ source?: string;
122
+ }
123
+ export interface FilePublishStatsRecord extends PublishStatsRecordCommon {
124
+ retrieved?: FilePublishRetrieved;
125
+ defaults?: FilePublishDefaults;
126
+ }
127
+ export interface FilePublishRetrieved extends Record<string, unknown> {
128
+ filename?: string;
129
+ directory?: string;
130
+ renders?: Record<string, FilePublishRetrievedRender>;
131
+ }
132
+ export interface FilePublishRetrievedRender {
133
+ path: string;
134
+ size?: number;
135
+ hash?: string;
136
+ }
137
+ export interface FilePublishDefaults extends Record<string, unknown> {
138
+ directory: string;
139
+ filename: string;
140
+ renders: Record<string, FilePublishRender>;
141
+ }
142
+ export interface PublishDomainAcceptsProvidedRecord {
143
+ value?: unknown;
144
+ }
145
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,12 @@
1
+ export interface PublishedDomainRecords {
2
+ [":published"]: PublishedRecord;
3
+ }
4
+ export interface PublishedRecord {
5
+ type: string;
6
+ parent: string;
7
+ asset: string[];
8
+ time: number;
9
+ connection: string;
10
+ user?: string;
11
+ error?: boolean;
12
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ import type { RenderPresetObject } from '../../common/index.ts';
2
+ export interface RenderPresetDomainRecords {
3
+ ":render-preset": RenderPresetDomainRecord;
4
+ }
5
+ export type RenderPresetDomainRecord = RenderPresetObject;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,115 @@
1
+ import type { RenderSceneObject, RenderProfileObject } from '../../common/index.ts';
2
+ export interface RenderDomainRecords {
3
+ ":render.stats?": RenderDomainStatsRecord;
4
+ ":render.query?": RenderDomainQueryRecord;
5
+ ":render.result?": RenderDomainResultRecord;
6
+ ":render.schedulers?": RenderDomainSchedulersRecord;
7
+ }
8
+ export interface RenderDomainStatsRecord {
9
+ progress?: number | null;
10
+ error?: Array<Record<string, unknown>> | null;
11
+ status?: string | string[] | null;
12
+ lag?: number | null;
13
+ available?: boolean | null;
14
+ toobusy?: boolean | null;
15
+ cpuAvailable?: boolean | null;
16
+ cpuComputeAvailable?: number | null;
17
+ cpuComputeReservation?: number | null;
18
+ cpuCompute?: number | null;
19
+ cpuComputeLimit?: number | null;
20
+ cpuComputeTotal?: number | null;
21
+ cpuComputeValue?: number | null;
22
+ cpuMemoryAvailable?: number | null;
23
+ cpuMemoryReservation?: number | null;
24
+ cpuMemory?: number | null;
25
+ cpuMemoryLimit?: number | null;
26
+ cpuMemoryValue?: number | null;
27
+ cpuMemoryTotal?: number | null;
28
+ gpuType?: string | null;
29
+ gpuAvailable?: boolean | null;
30
+ gpuComputeAvailable?: number | null;
31
+ gpuComputeReservation?: number | null;
32
+ gpuCompute?: number | null;
33
+ gpuComputeLimit?: number | null;
34
+ gpuComputeValue?: number | null;
35
+ gpuComputeTotal?: number | null;
36
+ gpuMemoryAvailable?: number | null;
37
+ gpuMemoryReservation?: number | null;
38
+ gpuMemory?: number | null;
39
+ gpuMemoryLimit?: number | null;
40
+ gpuMemoryValue?: number | null;
41
+ gpuMemoryTotal?: number | null;
42
+ gpuQueueAvailable?: number | null;
43
+ gpuQueueReservation?: number | null;
44
+ gpuQueueLimit?: number | null;
45
+ gpuQueueValue?: number | null;
46
+ gpuQueueTotal?: number | null;
47
+ gpuEncoder?: number | null;
48
+ gpuEncoderLimit?: number | null;
49
+ gpuEncoderValue?: number | null;
50
+ gpuEncoderTotal?: number | null;
51
+ gpuDecoder?: number | null;
52
+ gpuDecoderLimit?: number | null;
53
+ gpuDecoderValue?: number | null;
54
+ gpuDecoderTotal?: number | null;
55
+ netAvailable?: boolean | null;
56
+ netTransferAvailable?: number | null;
57
+ netTransferReservation?: number | null;
58
+ netTransfer?: number | null;
59
+ netTransferLimit?: number | null;
60
+ netTransferValue?: number | null;
61
+ netTransferTotal?: number | null;
62
+ cpu?: number | null;
63
+ memory?: number | null;
64
+ activeCount: number | null;
65
+ totalCount: number | null;
66
+ gpuStat?: RenderDomainGpuStats | null;
67
+ cpuStat?: RenderDomainCpuStats | null;
68
+ netStat?: RenderDomainNetStats | null;
69
+ limits?: unknown;
70
+ taskset?: string;
71
+ }
72
+ export interface RenderDomainGpuStats {
73
+ [key: string]: unknown;
74
+ }
75
+ export interface RenderDomainCpuStats {
76
+ cpu: {
77
+ idle: number;
78
+ total: number;
79
+ };
80
+ mem: {
81
+ used: number;
82
+ total: number;
83
+ arcstats: {
84
+ size: number | null;
85
+ };
86
+ meminfo: {
87
+ [key: string]: unknown;
88
+ };
89
+ };
90
+ }
91
+ export interface RenderDomainNetStats {
92
+ used: number;
93
+ type?: string;
94
+ dev?: {
95
+ used: number;
96
+ };
97
+ }
98
+ export interface RenderDomainQueryRecord {
99
+ type: string;
100
+ title: string;
101
+ parent?: string;
102
+ description: {
103
+ scene: RenderSceneObject;
104
+ profile: RenderProfileObject;
105
+ };
106
+ }
107
+ export interface RenderDomainResultRecord {
108
+ [key: string]: unknown;
109
+ url?: string;
110
+ result?: unknown;
111
+ error?: null | Record<string, unknown> | Array<Record<string, unknown>>;
112
+ }
113
+ export interface RenderDomainSchedulersRecord {
114
+ [key: string]: number[];
115
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ export interface RevsDomainRecords {
2
+ ":revs?": RevsRecord;
3
+ }
4
+ export interface RevsRecord {
5
+ value?: string[];
6
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ export interface RoleDomainRecords {
2
+ ":role.tags": RoleTagsRecord;
3
+ }
4
+ export interface RoleTagsRecord {
5
+ value: string[];
6
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,101 @@
1
+ import type { SerializedEditorState, SerializedLexicalNode } from 'lexical';
2
+ /**
3
+ * A base64 encoded string representing a complete Yjs document state.
4
+ * This is created using `Y.encodeStateAsUpdate()` and is used for
5
+ * persistence and versioning.
6
+ */
7
+ type YjsSnapshot = string;
8
+ export interface ScriptDomainRecords {
9
+ ":script": ScriptRecord;
10
+ ":script?": ScriptEditorStateRecord;
11
+ ":script.revisions?": ScriptRevisionsRecord;
12
+ ":script.revision": ScriptRevisionRecord;
13
+ ":script.revision?": ScriptEditorStateRevisionRecord;
14
+ ":script.content?": ScriptContentRecord;
15
+ ":script.text?": ScriptTextRecord;
16
+ ":script.children": ScriptChildrenRecord;
17
+ }
18
+ export interface ScriptRecord {
19
+ value: YjsSnapshot;
20
+ }
21
+ export interface ScriptEditorStateRecord {
22
+ value: SerializedEditorState;
23
+ }
24
+ interface ScriptRevision {
25
+ id: string;
26
+ userId: string;
27
+ }
28
+ export interface ScriptRevisionsRecord {
29
+ value: ScriptRevision[];
30
+ }
31
+ export interface ScriptRevisionRecord {
32
+ $parent: string;
33
+ scriptId: string;
34
+ userId: string;
35
+ value: YjsSnapshot;
36
+ }
37
+ export interface ScriptEditorStateRevisionRecord {
38
+ $parent: string;
39
+ scriptId: string;
40
+ userId: string;
41
+ value: SerializedEditorState;
42
+ }
43
+ export interface EventNodeContent {
44
+ type: "event";
45
+ id: string;
46
+ mixin: string;
47
+ children: EventNodeContent[];
48
+ }
49
+ export interface TextNodeContent {
50
+ type: "text" | "link" | "autolink";
51
+ text: string;
52
+ style?: string;
53
+ format?: number;
54
+ }
55
+ export interface ElementNodeContent {
56
+ type: SerializedLexicalNode["type"];
57
+ children: TextNodeContent[];
58
+ }
59
+ export interface ListItemNodeContent {
60
+ type: "listitem";
61
+ value: number;
62
+ checked?: boolean;
63
+ children: TextNodeContent[];
64
+ }
65
+ export interface ListNodeContent {
66
+ type: "list";
67
+ listType: "bullet" | "number" | "check";
68
+ tag: "ul" | "ol";
69
+ children: ListItemNodeContent[];
70
+ }
71
+ export interface ParagraphNodeContent extends ElementNodeContent {
72
+ type: "paragraph";
73
+ }
74
+ export interface CommentNodeContent extends ElementNodeContent {
75
+ type: "comment";
76
+ }
77
+ export interface HeadingNodeContent extends ElementNodeContent {
78
+ type: "heading";
79
+ tag: "h1" | "h2" | "h3";
80
+ }
81
+ export interface QuoteNodeContent extends ElementNodeContent {
82
+ type: "quote";
83
+ }
84
+ export interface HorizontalRuleContent {
85
+ type: "horizontalrule";
86
+ }
87
+ export type NodeContent = EventNodeContent | TextNodeContent | ParagraphNodeContent | CommentNodeContent | ListNodeContent | ListItemNodeContent | HeadingNodeContent | HorizontalRuleContent | QuoteNodeContent;
88
+ export interface ScriptContentRecord {
89
+ nodes: NodeContent[];
90
+ }
91
+ export interface ScriptTextRecord {
92
+ content: string;
93
+ graphics: string;
94
+ }
95
+ /**
96
+ * A record for non-script automation assets that can have child events.
97
+ */
98
+ export interface ScriptChildrenRecord {
99
+ value?: string[];
100
+ }
101
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ export interface SearchDomainRecords {
2
+ ":search?": SearchRecord;
3
+ }
4
+ export interface SearchRecord {
5
+ hits: string[];
6
+ total?: number;
7
+ relation?: string;
8
+ error?: string;
9
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ import type { Settings } from '../../common/index.ts';
2
+ export interface SettingsDomainRecords {
3
+ ":settings": SettingsRecord;
4
+ }
5
+ export type SettingsRecord = Settings;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,10 @@
1
+ export interface StoryboardDomainRecords {
2
+ ":storyboard": StoryboardDomainRecord;
3
+ ":storyboard.pipelines": StoryboardDomainPipelinesRecord;
4
+ }
5
+ export interface StoryboardDomainRecord {
6
+ [key: string]: unknown;
7
+ }
8
+ export interface StoryboardDomainPipelinesRecord {
9
+ value?: string[];
10
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,13 @@
1
+ import type { SubtitleStyle } from '../../common/subtitle-style.ts';
2
+ export interface SubtitleStyleDomainRecords {
3
+ ":subtitle-style": SubtitleStyleDomainRecord;
4
+ }
5
+ export interface SubtitleStyleDomainRecord extends SubtitleStyle {
6
+ scaledBorderAndShadow?: boolean;
7
+ futureWordWrapping?: boolean;
8
+ previewSettings?: {
9
+ aspectRatio?: string;
10
+ backgroundAssetId?: string;
11
+ text?: string;
12
+ };
13
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,12 @@
1
+ export interface SubtitleDomainRecords {
2
+ ":subtitle": SubtitleDomainRecord;
3
+ }
4
+ export interface SubtitleDomainRecord {
5
+ value?: Array<{
6
+ lang?: string;
7
+ start: number;
8
+ end: number;
9
+ text?: string;
10
+ }>;
11
+ style?: unknown;
12
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,10 @@
1
+ export interface TemplateDomainRecords {
2
+ ":template": TemplateRecord;
3
+ }
4
+ export interface TemplateRecord {
5
+ mixin?: string[];
6
+ properties?: Record<string, TemplateProperty>;
7
+ }
8
+ export interface TemplateProperty {
9
+ path?: string;
10
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,30 @@
1
+ export interface UserNotificationStatusDomainRecords {
2
+ ":_user-notification-status": UserNotificationStatusDomainRecord;
3
+ }
4
+ export interface UserNotificationStatusDomainRecord {
5
+ assignee?: UserNotificationStatusAssignee;
6
+ published?: UserNotificationStatusPublished;
7
+ comment?: UserNotificationStatusComment;
8
+ }
9
+ export interface UserNotificationStatusAssignee {
10
+ /**
11
+ * Array of user ID:s that was assigned to the assed last time it was
12
+ * considered for notifications.
13
+ */
14
+ value?: string[];
15
+ }
16
+ export interface UserNotificationStatusComment {
17
+ /**
18
+ * When array of user ID:s: Indicates which users have been considered for
19
+ * notifications about this comment. When `true`: Indicates that we have
20
+ * considered this comment for notifications, but we don't know which users
21
+ * have been notified.
22
+ */
23
+ value?: string[] | true;
24
+ }
25
+ export interface UserNotificationStatusPublished {
26
+ /**
27
+ * If `true`, this published asset has been considered for notifications.
28
+ */
29
+ value?: true;
30
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,69 @@
1
+ import { type NotificationReason } from '../../common/user-notification.ts';
2
+ export interface UserNotificationDomainRecords {
3
+ ":user-notification": UserNotificationRecord;
4
+ ":user-notification.readAt": UserNotificationDomainReadAtRecord;
5
+ }
6
+ export interface UserNotificationCommon {
7
+ /** The user that the notification is for. */
8
+ userId: string;
9
+ /** The type of the notification, which will determine the shape of the payload. */
10
+ type: string;
11
+ /** Type specific data. */
12
+ payload: object;
13
+ /** When the notification was created. */
14
+ timestamp: string;
15
+ /** For what reasons the notification was created. */
16
+ reasons: NotificationReason[];
17
+ /**
18
+ * Asset that triggered this notification. Not necessarily the same asset that
19
+ * the notification is mainly about.
20
+ */
21
+ triggerId?: string;
22
+ }
23
+ export interface UserNotificationAssigned extends UserNotificationCommon {
24
+ type: "assigned";
25
+ payload: {
26
+ assetId: string;
27
+ actionBy?: string;
28
+ };
29
+ }
30
+ export interface UserNotificationUnassigned extends UserNotificationCommon {
31
+ type: "unassigned";
32
+ payload: {
33
+ assetId: string;
34
+ actionBy?: string;
35
+ };
36
+ }
37
+ export interface UserNotificationComment extends UserNotificationCommon {
38
+ type: "comment";
39
+ payload: {
40
+ commentId: string;
41
+ };
42
+ }
43
+ export interface UserNotificationAddedToSearch extends UserNotificationCommon {
44
+ type: "added-to-search";
45
+ payload: {
46
+ searchId: string;
47
+ assetId: string;
48
+ };
49
+ }
50
+ export interface UserNotificationPublishSucceeded extends UserNotificationCommon {
51
+ type: "publishSucceeded";
52
+ payload: {
53
+ /** The user that published the asset. */
54
+ userId?: string;
55
+ /** The asset that was published. */
56
+ assetId: string;
57
+ /** The publish asset representing the publish. */
58
+ publishId: string;
59
+ /** The connection that was used to publish the asset. */
60
+ connectionId: string;
61
+ };
62
+ }
63
+ export type UserNotificationRecord = UserNotificationAssigned | UserNotificationUnassigned | UserNotificationComment | UserNotificationAddedToSearch | UserNotificationPublishSucceeded;
64
+ export interface UserNotificationDomainReadAtRecord {
65
+ /**
66
+ * ISO8601 date string. If set, the user has marked the notification as read at that timestamp.
67
+ */
68
+ value?: string;
69
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,23 @@
1
+ export interface UserDomainRecords {
2
+ ":user": UserDomainRecord;
3
+ ":user.latestSeenNotification": UserDomainLatestSeenNotificationRecord;
4
+ ":user.receivedNotifications?": UserDomainReceivedNotificationsProvidedRecord;
5
+ ":user.unseenNotifications?": UserDomainUnseenNotificationsRecord;
6
+ }
7
+ export interface UserDomainRecord {
8
+ username?: string;
9
+ roles?: string[];
10
+ }
11
+ export interface UserDomainLatestSeenNotificationRecord {
12
+ value?: string;
13
+ }
14
+ export interface UserDomainReceivedNotificationsProvidedRecord {
15
+ /**
16
+ * IDs of notifications the user has received.
17
+ */
18
+ value?: string[];
19
+ }
20
+ export interface UserDomainUnseenNotificationsRecord {
21
+ hasUnseen?: boolean;
22
+ latestReceived?: string;
23
+ }
@@ -0,0 +1 @@
1
+ export {};