@nxtedition/types 23.0.40 → 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 -33
  2. package/dist/app.js +1 -655
  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 -1843
  33. package/dist/common/render-scene.d.ts +2 -15
  34. package/dist/common/render-scene.js +1 -2408
  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 +113 -125
  40. package/dist/common/settings.js +1 -7504
  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 -108
  45. package/dist/index.js +5 -469
  46. package/dist/nxtpression.d.ts +507 -331
  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 +5 -15
  158. package/dist/rpc.js +126 -511
  159. package/dist/tsdoc-metadata.json +1 -1
  160. package/package.json +25 -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 -170
  185. package/dist/domains/event.js +0 -2779
  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 -4642
  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 -1452
  207. package/dist/domains/publish.js +0 -35415
  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 -158
  212. package/dist/domains/render.js +0 -4452
  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 -263
  218. package/dist/domains/script.js +0 -6777
  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 -7180
  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 -42
  226. package/dist/domains/subtitle-style.js +0 -574
  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 -9836
  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,83 @@
1
+ import type { CloneRule, Nxtpression } from '../../common/index.ts';
2
+ export interface AssetRecords {
3
+ "asset.assignees": AssetAssigneesRecord;
4
+ "asset.clone": AssetCloneRecord;
5
+ "asset.deadlines": AssetDeadlinesRecord;
6
+ "asset.duration": AssetDurationRecord;
7
+ "asset.embedding": AssetEmbeddingRecord;
8
+ "asset.icon": AssetIconRecord;
9
+ "asset.locations": AssetLocationsRecord;
10
+ "asset.media": AssetMediaRecord;
11
+ "asset.tags": AssetTagsRecord;
12
+ "asset.title": AssetTitleRecord;
13
+ "asset.types": AssetTypesRecord;
14
+ }
15
+ export interface AssetAssigneesRecord {
16
+ value?: Nxtpression<string[], {
17
+ id: string;
18
+ }>;
19
+ dynamic?: Dynamic;
20
+ }
21
+ export interface AssetCloneRecord {
22
+ rules: CloneRule[];
23
+ }
24
+ export interface AssetDeadlinesRecord {
25
+ value?: Nxtpression<string, {
26
+ id: string;
27
+ }>;
28
+ dynamic?: Dynamic;
29
+ }
30
+ export interface AssetDurationRecord {
31
+ value?: Nxtpression<number, {
32
+ id: string;
33
+ }>;
34
+ dynamic?: Dynamic;
35
+ }
36
+ export interface AssetEmbeddingRecord {
37
+ value?: Nxtpression<string, {
38
+ id: string;
39
+ }>;
40
+ dynamic?: Dynamic;
41
+ }
42
+ export interface AssetIconRecord {
43
+ value?: Nxtpression<string, {
44
+ id: string;
45
+ }>;
46
+ dynamic?: Dynamic;
47
+ }
48
+ export interface AssetLocationsRecord {
49
+ value?: Nxtpression<Array<{
50
+ lat: number;
51
+ lon: number;
52
+ }>, {
53
+ id: string;
54
+ }>;
55
+ dynamic?: Dynamic;
56
+ }
57
+ export interface AssetMediaRecord {
58
+ value?: Nxtpression<Record<string, unknown>, {
59
+ id: string;
60
+ }>;
61
+ dynamic?: Dynamic;
62
+ }
63
+ export interface AssetTagsRecord {
64
+ value?: Nxtpression<string[], {
65
+ id: string;
66
+ }>;
67
+ dynamic?: Dynamic;
68
+ }
69
+ export interface AssetTitleRecord {
70
+ value?: Nxtpression<string, {
71
+ id: string;
72
+ }>;
73
+ dynamic?: Dynamic;
74
+ }
75
+ export interface AssetTypesRecord {
76
+ [type: string]: null | string | {
77
+ priority?: number;
78
+ label: string;
79
+ icon?: string;
80
+ };
81
+ }
82
+ type Dynamic = false | string[];
83
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,36 @@
1
+ import type { AssetRecords } from './asset.ts';
2
+ import type { StorageRecords } from './storage.ts';
3
+ import type { MonitorRecords } from './monitor.ts';
4
+ import type { MediaRecords } from './media.ts';
5
+ export * from './asset.ts';
6
+ export * from './storage.ts';
7
+ export * from './monitor.ts';
8
+ export * from './media.ts';
9
+ export type ExactRecords = MiscRecords & MediaRecords & AssetRecords & MonitorRecords & StorageRecords;
10
+ export interface AssetDaemonRecord {
11
+ "user-notify"?: boolean;
12
+ }
13
+ export interface AssetDaemonUserNotifyStateRecord {
14
+ since?: string | 0 | null;
15
+ version?: number;
16
+ }
17
+ export interface DeepstreamReplicatorStatsRecord {
18
+ replicators?: Record<string, {
19
+ to: {
20
+ synced?: boolean;
21
+ since?: string | 0 | null;
22
+ };
23
+ from: {
24
+ since?: string | 0 | null;
25
+ };
26
+ }>;
27
+ synced?: boolean;
28
+ }
29
+ export interface MiscRecords {
30
+ "asset-daemon": AssetDaemonRecord;
31
+ "asset-daemon:user-notify.state": AssetDaemonUserNotifyStateRecord;
32
+ "deepstream-replicator.stats?": DeepstreamReplicatorStatsRecord;
33
+ }
34
+ export interface DomainRows {
35
+ rows: string[];
36
+ }
@@ -0,0 +1,4 @@
1
+ export * from "./asset.js";
2
+ export * from "./storage.js";
3
+ export * from "./monitor.js";
4
+ export * from "./media.js";
@@ -0,0 +1,52 @@
1
+ import type { MediaType, RenderPreset } from '../../common/index.ts';
2
+ export interface MediaRecords {
3
+ "media.subtitles": MediaSubtitlesRecord;
4
+ "media.subtitles?": MediaSubtitlesProvidedRecord;
5
+ "media.transcribe?": MediaTranscribeProvidedRecord;
6
+ "media.fonts?": MediaFonts;
7
+ "media.consolidate": MediaConsolidateRecord;
8
+ }
9
+ export interface MediaSubtitlesRecord {
10
+ languages?: Record<string, string>;
11
+ fontFaces?: SubtitleFontFace[];
12
+ }
13
+ export interface MediaSubtitlesProvidedRecord {
14
+ languages?: Record<string, string>;
15
+ fontFaces?: SubtitleFontFace[];
16
+ }
17
+ export interface MediaTranscribeProvidedRecord {
18
+ engines: Record<string, string>;
19
+ languages: Record<string, string>;
20
+ translate?: {
21
+ languages: Record<string, string>;
22
+ };
23
+ }
24
+ export interface MediaConsolidateRecord {
25
+ presets?: {
26
+ [type in MediaType]: RenderPreset;
27
+ };
28
+ }
29
+ export interface MediaFonts {
30
+ fontFaces?: FontFace[];
31
+ fontFamilyNames?: Array<FontFace["family"]>;
32
+ }
33
+ interface SubtitleFontFace {
34
+ family: string;
35
+ asset?: string;
36
+ weight?: "normal" | "bold";
37
+ style?: "normal" | "italic";
38
+ }
39
+ type Range = [
40
+ number,
41
+ number
42
+ ];
43
+ export interface FontFace {
44
+ name: string;
45
+ family: string;
46
+ asset: string;
47
+ url: string;
48
+ weight: number;
49
+ style: "normal" | "italic";
50
+ ranges: Range[];
51
+ }
52
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,46 @@
1
+ export interface MonitorRecords {
2
+ "nxt.status?": NxtStatusRecord;
3
+ }
4
+ export interface NxtStatusRecord {
5
+ nodes: {
6
+ [k: string]: NxtStatusNode;
7
+ };
8
+ services: {
9
+ [k: string]: NxtStatusService;
10
+ };
11
+ level: number;
12
+ status: string;
13
+ }
14
+ export interface NxtStatusObject {
15
+ level: number;
16
+ status: string;
17
+ messages: Array<{
18
+ msg: string;
19
+ level: number;
20
+ }>;
21
+ }
22
+ export interface NxtStatusNode extends NxtStatusObject {
23
+ state?: string;
24
+ role?: string;
25
+ leader?: boolean;
26
+ availability?: string;
27
+ classes?: string[];
28
+ address?: string;
29
+ }
30
+ export interface NxtStatusService extends NxtStatusObject {
31
+ image?: string;
32
+ running?: number;
33
+ mode?: string;
34
+ total?: number;
35
+ tasks?: Array<{
36
+ id: string;
37
+ node: string;
38
+ container: string;
39
+ level?: number;
40
+ status?: string;
41
+ messages: Array<{
42
+ msg: string;
43
+ level: number;
44
+ }>;
45
+ }>;
46
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,32 @@
1
+ export interface StorageRecords {
2
+ "storage.locations?": StorageLocationsRecord;
3
+ "storage.zones?": StorageZonesRecord;
4
+ }
5
+ export interface StorageLocationsRecord {
6
+ [key: string]: StorageLocationsRecordEntry;
7
+ }
8
+ export interface StorageLocationsRecordEntry {
9
+ id: string;
10
+ location: string;
11
+ timestamp: string;
12
+ type: string;
13
+ zone: string;
14
+ free: number | null;
15
+ size: number | null;
16
+ available: number | null;
17
+ cache: boolean | null;
18
+ capacity: number | null;
19
+ origin: string;
20
+ allows: ("get" | "put" | "del")[];
21
+ net: {
22
+ rx: number;
23
+ tx: number;
24
+ };
25
+ latency: number;
26
+ }
27
+ export interface StorageZonesRecord {
28
+ [key: string]: {
29
+ priority: number;
30
+ locations: string[];
31
+ };
32
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,10 @@
1
+ import type { DomainRecords, DesignDomainRecords } from './domains/index.ts';
2
+ import type { ExactRecords } from './exact/index.ts';
3
+ export * from './domains/index.ts';
4
+ export * from './exact/index.ts';
5
+ export type Domains = Exclude<keyof DomainRecords, ":design">;
6
+ export type Records = {
7
+ [Property in Domains as `${string}${Property}`]: DomainRecords[Property];
8
+ } & {
9
+ [Property in keyof DesignDomainRecords as `${string}${Property}${string}`]: DesignDomainRecords[Property];
10
+ } & ExactRecords;
@@ -0,0 +1,2 @@
1
+ export * from "./domains/index.js";
2
+ export * from "./exact/index.js";
@@ -0,0 +1,7 @@
1
+ import type { DomainRecords, DomainRows, ExactRecords } from './index.ts';
2
+ export type RecordNameToType<T extends string> = T extends keyof ExactRecords ? ExactRecords[T] : T extends `:${string}` ? DomainRows : T extends `${string}:${infer Domain}?${string}` ? `:${Domain}?` extends keyof DomainRecords ? DomainRecords[`:${Domain}?`] : unknown : T extends `${string}:${infer Pattern}` ? `:${Pattern}` extends keyof DomainRecords ? DomainRecords[`:${Pattern}`] : unknown : unknown;
3
+ declare const providedRecordSymbol: unique symbol;
4
+ export type ProvidedRecord<T> = T & {
5
+ [providedRecordSymbol]: never;
6
+ };
7
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ import { expectType } from 'tsd';
2
+ const getType = (_) => null;
3
+ expectType(getType("asset.tags"));
4
+ expectType(getType(":user"));
5
+ expectType(getType("id:user.receivedNotifications?"));
6
+ expectType(getType("id:user.receivedNotifications?limit=2"));
7
+ expectType(getType("{}:search?"));
@@ -0,0 +1,4 @@
1
+ import type { DomainRecords, Records } from '../index.ts';
2
+ import type { RecordNameToType } from '../utils.ts';
3
+ export declare function assertGuardRecord<Name extends keyof Records>(name: Name, input: unknown): asserts input is RecordNameToType<Name>;
4
+ export declare function assertGuardDomainRecord<Domain extends keyof DomainRecords>(domain: Domain, input: unknown): asserts input is DomainRecords[Domain];