@casual-simulation/aux-common 3.2.6 → 3.2.7-alpha.6227012901
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Errors.d.ts +29 -0
- package/Errors.js +2 -0
- package/Errors.js.map +1 -0
- package/{aux-format-2 → bots}/AuxStateHelpers.d.ts +2 -33
- package/{aux-format-2 → bots}/AuxStateHelpers.js +1 -116
- package/bots/AuxStateHelpers.js.map +1 -0
- package/bots/Bot.d.ts +1 -1
- package/bots/BotCalculations.d.ts +4 -1
- package/bots/BotCalculations.js +62 -0
- package/bots/BotCalculations.js.map +1 -1
- package/bots/BotEvents.d.ts +859 -3401
- package/bots/BotEvents.js +133 -1529
- package/bots/BotEvents.js.map +1 -1
- package/bots/StateUpdatedEvent.d.ts +1 -1
- package/bots/StateUpdatedEvent.js +1 -1
- package/bots/StateUpdatedEvent.js.map +1 -1
- package/bots/index.d.ts +1 -0
- package/bots/index.js +1 -0
- package/bots/index.js.map +1 -1
- package/common/Action.d.ts +17 -0
- package/common/Action.js +2 -0
- package/common/Action.js.map +1 -0
- package/common/ConnectionIndicator.d.ts +29 -0
- package/common/ConnectionIndicator.js +23 -0
- package/common/ConnectionIndicator.js.map +1 -0
- package/common/ConnectionInfo.d.ts +30 -0
- package/common/ConnectionInfo.js +14 -0
- package/common/ConnectionInfo.js.map +1 -0
- package/common/ConnectionToken.d.ts +37 -0
- package/common/ConnectionToken.js +93 -0
- package/common/ConnectionToken.js.map +1 -0
- package/common/CurrentVersion.d.ts +26 -0
- package/common/CurrentVersion.js +2 -0
- package/common/CurrentVersion.js.map +1 -0
- package/common/Iterators.d.ts +19 -0
- package/common/Iterators.js +39 -0
- package/common/Iterators.js.map +1 -0
- package/common/LoadingProgress.d.ts +26 -0
- package/common/LoadingProgress.js +2 -0
- package/common/LoadingProgress.js.map +1 -0
- package/common/RemoteActions.d.ts +558 -0
- package/common/RemoteActions.js +128 -0
- package/common/RemoteActions.js.map +1 -0
- package/common/StatusUpdate.d.ts +108 -0
- package/common/StatusUpdate.js +2 -0
- package/common/StatusUpdate.js.map +1 -0
- package/common/StatusUpdateUtils.d.ts +3 -0
- package/common/StatusUpdateUtils.js +11 -0
- package/common/StatusUpdateUtils.js.map +1 -0
- package/common/index.d.ts +11 -0
- package/common/index.js +11 -0
- package/common/index.js.map +1 -0
- package/index.d.ts +4 -1
- package/index.js +4 -1
- package/index.js.map +1 -1
- package/package.json +3 -4
- package/partitions/AuxPartition.d.ts +1 -11
- package/partitions/AuxPartition.js.map +1 -1
- package/partitions/AuxPartitionConfig.d.ts +39 -123
- package/partitions/MemoryPartition.d.ts +2 -2
- package/partitions/MemoryPartition.js +2 -2
- package/partitions/MemoryPartition.js.map +1 -1
- package/partitions/OtherPlayersPartition.d.ts +6 -7
- package/partitions/OtherPlayersPartition.js +40 -54
- package/partitions/OtherPlayersPartition.js.map +1 -1
- package/partitions/PartitionUtils.d.ts +28 -1
- package/partitions/PartitionUtils.js +174 -1
- package/partitions/PartitionUtils.js.map +1 -1
- package/partitions/ProxyBridgePartition.d.ts +1 -3
- package/partitions/ProxyBridgePartition.js +0 -14
- package/partitions/ProxyBridgePartition.js.map +1 -1
- package/partitions/RemoteYjsPartition.d.ts +7 -6
- package/partitions/RemoteYjsPartition.js +55 -75
- package/partitions/RemoteYjsPartition.js.map +1 -1
- package/partitions/YjsPartition.d.ts +1 -2
- package/partitions/YjsPartition.js +3 -6
- package/partitions/YjsPartition.js.map +1 -1
- package/partitions/index.d.ts +1 -7
- package/partitions/index.js +1 -7
- package/partitions/index.js.map +1 -1
- package/test/FuzzingHelpers.d.ts +1 -1
- package/test/FuzzingHelpers.js +1 -1
- package/test/FuzzingHelpers.js.map +1 -1
- package/test/TestHelpers.d.ts +8 -0
- package/test/TestHelpers.js +23 -0
- package/test/TestHelpers.js.map +1 -1
- package/utils.d.ts +10 -5
- package/utils.js +19 -7
- package/utils.js.map +1 -1
- package/websockets/AuthenticatedConnectionClient.d.ts +26 -0
- package/websockets/AuthenticatedConnectionClient.js +61 -0
- package/websockets/AuthenticatedConnectionClient.js.map +1 -0
- package/websockets/ConnectionClient.d.ts +59 -0
- package/websockets/ConnectionClient.js +2 -0
- package/websockets/ConnectionClient.js.map +1 -0
- package/websockets/InstRecordsClient.d.ts +118 -0
- package/websockets/InstRecordsClient.js +387 -0
- package/websockets/InstRecordsClient.js.map +1 -0
- package/websockets/InstRecordsClientTimeSyncConnection.d.ts +13 -0
- package/websockets/InstRecordsClientTimeSyncConnection.js +16 -0
- package/websockets/InstRecordsClientTimeSyncConnection.js.map +1 -0
- package/websockets/MemoryConnectionClient.d.ts +19 -0
- package/websockets/MemoryConnectionClient.js +41 -0
- package/websockets/MemoryConnectionClient.js.map +1 -0
- package/websockets/WebsocketEvents.d.ts +2670 -0
- package/websockets/WebsocketEvents.js +189 -0
- package/websockets/WebsocketEvents.js.map +1 -0
- package/websockets/index.d.ts +7 -0
- package/websockets/index.js +7 -0
- package/websockets/index.js.map +1 -0
- package/yjs/YjsHelpers.d.ts +1 -1
- package/LoadingProgress.d.ts +0 -54
- package/LoadingProgress.js +0 -105
- package/LoadingProgress.js.map +0 -1
- package/aux-format-2/AuxCausalTree2.d.ts +0 -98
- package/aux-format-2/AuxCausalTree2.js +0 -616
- package/aux-format-2/AuxCausalTree2.js.map +0 -1
- package/aux-format-2/AuxOpTypes.d.ts +0 -268
- package/aux-format-2/AuxOpTypes.js +0 -240
- package/aux-format-2/AuxOpTypes.js.map +0 -1
- package/aux-format-2/AuxStateHelpers.js.map +0 -1
- package/aux-format-2/AuxWeaveHelpers.d.ts +0 -132
- package/aux-format-2/AuxWeaveHelpers.js +0 -335
- package/aux-format-2/AuxWeaveHelpers.js.map +0 -1
- package/aux-format-2/AuxWeaveReducer.d.ts +0 -37
- package/aux-format-2/AuxWeaveReducer.js +0 -980
- package/aux-format-2/AuxWeaveReducer.js.map +0 -1
- package/aux-format-2/index.d.ts +0 -7
- package/aux-format-2/index.js +0 -7
- package/aux-format-2/index.js.map +0 -1
- package/partitions/AuxPartitionRealtimeEditModeProvider.d.ts +0 -9
- package/partitions/AuxPartitionRealtimeEditModeProvider.js +0 -21
- package/partitions/AuxPartitionRealtimeEditModeProvider.js.map +0 -1
- package/partitions/BotClient.d.ts +0 -24
- package/partitions/BotClient.js +0 -2
- package/partitions/BotClient.js.map +0 -1
- package/partitions/BotPartition.d.ts +0 -45
- package/partitions/BotPartition.js +0 -186
- package/partitions/BotPartition.js.map +0 -1
- package/partitions/CausalRepoPartition.d.ts +0 -45
- package/partitions/CausalRepoPartition.js +0 -157
- package/partitions/CausalRepoPartition.js.map +0 -1
- package/partitions/MemoryBotClient.d.ts +0 -11
- package/partitions/MemoryBotClient.js +0 -41
- package/partitions/MemoryBotClient.js.map +0 -1
- package/partitions/RemoteCausalRepoHistoryPartition.d.ts +0 -53
- package/partitions/RemoteCausalRepoHistoryPartition.js +0 -206
- package/partitions/RemoteCausalRepoHistoryPartition.js.map +0 -1
- package/partitions/RemoteCausalRepoPartition.d.ts +0 -72
- package/partitions/RemoteCausalRepoPartition.js +0 -468
- package/partitions/RemoteCausalRepoPartition.js.map +0 -1
- package/runtime/AuxCompiler.d.ts +0 -258
- package/runtime/AuxCompiler.js +0 -722
- package/runtime/AuxCompiler.js.map +0 -1
- package/runtime/AuxDevice.d.ts +0 -28
- package/runtime/AuxDevice.js +0 -2
- package/runtime/AuxDevice.js.map +0 -1
- package/runtime/AuxGlobalContext.d.ts +0 -571
- package/runtime/AuxGlobalContext.js +0 -606
- package/runtime/AuxGlobalContext.js.map +0 -1
- package/runtime/AuxLibrary.d.ts +0 -2702
- package/runtime/AuxLibrary.js +0 -11046
- package/runtime/AuxLibrary.js.map +0 -1
- package/runtime/AuxLibraryDefinitions.def +0 -13139
- package/runtime/AuxRealtimeEditModeProvider.d.ts +0 -35
- package/runtime/AuxRealtimeEditModeProvider.js +0 -34
- package/runtime/AuxRealtimeEditModeProvider.js.map +0 -1
- package/runtime/AuxResults.d.ts +0 -77
- package/runtime/AuxResults.js +0 -6
- package/runtime/AuxResults.js.map +0 -1
- package/runtime/AuxRuntime.d.ts +0 -253
- package/runtime/AuxRuntime.js +0 -2700
- package/runtime/AuxRuntime.js.map +0 -1
- package/runtime/AuxRuntimeDynamicImports.d.ts +0 -14
- package/runtime/AuxRuntimeDynamicImports.js +0 -24
- package/runtime/AuxRuntimeDynamicImports.js.map +0 -1
- package/runtime/AuxVersion.d.ts +0 -39
- package/runtime/AuxVersion.js +0 -2
- package/runtime/AuxVersion.js.map +0 -1
- package/runtime/CasualOSError.d.ts +0 -37
- package/runtime/CasualOSError.js +0 -25
- package/runtime/CasualOSError.js.map +0 -1
- package/runtime/CompiledBot.d.ts +0 -106
- package/runtime/CompiledBot.js +0 -44
- package/runtime/CompiledBot.js.map +0 -1
- package/runtime/PerformanceNowPolyfill.d.ts +0 -1
- package/runtime/PerformanceNowPolyfill.js +0 -8
- package/runtime/PerformanceNowPolyfill.js.map +0 -1
- package/runtime/RuntimeBot.d.ts +0 -176
- package/runtime/RuntimeBot.js +0 -732
- package/runtime/RuntimeBot.js.map +0 -1
- package/runtime/RuntimeStateVersion.d.ts +0 -23
- package/runtime/RuntimeStateVersion.js +0 -22
- package/runtime/RuntimeStateVersion.js.map +0 -1
- package/runtime/Transpiler.d.ts +0 -174
- package/runtime/Transpiler.js +0 -611
- package/runtime/Transpiler.js.map +0 -1
- package/runtime/Utils.d.ts +0 -74
- package/runtime/Utils.js +0 -488
- package/runtime/Utils.js.map +0 -1
- package/runtime/index.d.ts +0 -9
- package/runtime/index.js +0 -9
- package/runtime/index.js.map +0 -1
- package/runtime/test/RuntimeTestHelpers.d.ts +0 -11
- package/runtime/test/RuntimeTestHelpers.js +0 -26
- package/runtime/test/RuntimeTestHelpers.js.map +0 -1
- package/runtime/test/TestScriptBotFactory.d.ts +0 -16
- package/runtime/test/TestScriptBotFactory.js +0 -107
- package/runtime/test/TestScriptBotFactory.js.map +0 -1
- /package/{runtime/BlobPolyfill.d.ts → BlobPolyfill.d.ts} +0 -0
- /package/{runtime/BlobPolyfill.js → BlobPolyfill.js} +0 -0
- /package/{runtime/BlobPolyfill.js.map → BlobPolyfill.js.map} +0 -0
|
@@ -0,0 +1,558 @@
|
|
|
1
|
+
import { Action } from './Action';
|
|
2
|
+
import { ConnectionInfo } from './ConnectionInfo';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
/**
|
|
5
|
+
* An event that is used to indicate an event that was sent from a remote device.
|
|
6
|
+
*/
|
|
7
|
+
export interface DeviceAction extends Action {
|
|
8
|
+
type: 'device';
|
|
9
|
+
/**
|
|
10
|
+
* The connection which sent the event.
|
|
11
|
+
*/
|
|
12
|
+
connection: ConnectionInfo;
|
|
13
|
+
/**
|
|
14
|
+
* The event.
|
|
15
|
+
*/
|
|
16
|
+
event: Action;
|
|
17
|
+
/**
|
|
18
|
+
* The ID of the task that this action was sent with.
|
|
19
|
+
*/
|
|
20
|
+
taskId?: number | string;
|
|
21
|
+
}
|
|
22
|
+
export declare const deviceActionSchema: z.ZodObject<{
|
|
23
|
+
type: z.ZodLiteral<"device">;
|
|
24
|
+
connection: z.ZodObject<{
|
|
25
|
+
connectionId: z.ZodString;
|
|
26
|
+
sessionId: z.ZodString;
|
|
27
|
+
userId: z.ZodString;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
connectionId?: string;
|
|
30
|
+
sessionId?: string;
|
|
31
|
+
userId?: string;
|
|
32
|
+
}, {
|
|
33
|
+
connectionId?: string;
|
|
34
|
+
sessionId?: string;
|
|
35
|
+
userId?: string;
|
|
36
|
+
}>;
|
|
37
|
+
event: z.ZodAny;
|
|
38
|
+
taskId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
|
40
|
+
type?: "device";
|
|
41
|
+
connection?: {
|
|
42
|
+
connectionId?: string;
|
|
43
|
+
sessionId?: string;
|
|
44
|
+
userId?: string;
|
|
45
|
+
};
|
|
46
|
+
event?: any;
|
|
47
|
+
taskId?: string | number;
|
|
48
|
+
}, {
|
|
49
|
+
type?: "device";
|
|
50
|
+
connection?: {
|
|
51
|
+
connectionId?: string;
|
|
52
|
+
sessionId?: string;
|
|
53
|
+
userId?: string;
|
|
54
|
+
};
|
|
55
|
+
event?: any;
|
|
56
|
+
taskId?: string | number;
|
|
57
|
+
}>;
|
|
58
|
+
/**
|
|
59
|
+
* An interface that is used to determine which device to send a remote event to.
|
|
60
|
+
*/
|
|
61
|
+
export interface DeviceSelector {
|
|
62
|
+
/**
|
|
63
|
+
* The ID of the connection that the event should be sent to.
|
|
64
|
+
*/
|
|
65
|
+
connectionId?: string;
|
|
66
|
+
/**
|
|
67
|
+
* The ID of the session that the event should be sent to.
|
|
68
|
+
*/
|
|
69
|
+
sessionId?: string;
|
|
70
|
+
/**
|
|
71
|
+
* The ID of the user that the event should be sent to.
|
|
72
|
+
*/
|
|
73
|
+
userId?: string;
|
|
74
|
+
/**
|
|
75
|
+
* Whether the event should be broadcast to all users.
|
|
76
|
+
*/
|
|
77
|
+
broadcast?: boolean;
|
|
78
|
+
}
|
|
79
|
+
export declare const deviceSelectorSchema: z.ZodObject<{
|
|
80
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
81
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
82
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
83
|
+
broadcast: z.ZodOptional<z.ZodBoolean>;
|
|
84
|
+
}, "strip", z.ZodTypeAny, {
|
|
85
|
+
connectionId?: string;
|
|
86
|
+
sessionId?: string;
|
|
87
|
+
userId?: string;
|
|
88
|
+
broadcast?: boolean;
|
|
89
|
+
}, {
|
|
90
|
+
connectionId?: string;
|
|
91
|
+
sessionId?: string;
|
|
92
|
+
userId?: string;
|
|
93
|
+
broadcast?: boolean;
|
|
94
|
+
}>;
|
|
95
|
+
export type RemoteActions = RemoteAction | RemoteActionResult | RemoteActionError;
|
|
96
|
+
/**
|
|
97
|
+
* An event that is used to send events from this device to a remote device.
|
|
98
|
+
*/
|
|
99
|
+
export interface RemoteAction extends Action, DeviceSelector {
|
|
100
|
+
type: 'remote';
|
|
101
|
+
/**
|
|
102
|
+
* The event that should be sent to the device.
|
|
103
|
+
*/
|
|
104
|
+
event: Action;
|
|
105
|
+
/**
|
|
106
|
+
* Whether this action is allowed to be batched with other remote actions.
|
|
107
|
+
* Batching will preserve ordering between remote actions but may
|
|
108
|
+
* break ordering with respect to bot actions. Defaults to true.
|
|
109
|
+
*/
|
|
110
|
+
allowBatching?: boolean;
|
|
111
|
+
/**
|
|
112
|
+
* The ID of the task.
|
|
113
|
+
*/
|
|
114
|
+
taskId?: number | string;
|
|
115
|
+
}
|
|
116
|
+
export declare const remoteActionSchema: z.ZodObject<{
|
|
117
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
118
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
119
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
120
|
+
broadcast: z.ZodOptional<z.ZodBoolean>;
|
|
121
|
+
type: z.ZodLiteral<"remote">;
|
|
122
|
+
event: z.ZodAny;
|
|
123
|
+
allowBatching: z.ZodOptional<z.ZodBoolean>;
|
|
124
|
+
taskId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
125
|
+
}, "strip", z.ZodTypeAny, {
|
|
126
|
+
connectionId?: string;
|
|
127
|
+
sessionId?: string;
|
|
128
|
+
userId?: string;
|
|
129
|
+
broadcast?: boolean;
|
|
130
|
+
type?: "remote";
|
|
131
|
+
event?: any;
|
|
132
|
+
allowBatching?: boolean;
|
|
133
|
+
taskId?: string | number;
|
|
134
|
+
}, {
|
|
135
|
+
connectionId?: string;
|
|
136
|
+
sessionId?: string;
|
|
137
|
+
userId?: string;
|
|
138
|
+
broadcast?: boolean;
|
|
139
|
+
type?: "remote";
|
|
140
|
+
event?: any;
|
|
141
|
+
allowBatching?: boolean;
|
|
142
|
+
taskId?: string | number;
|
|
143
|
+
}>;
|
|
144
|
+
/**
|
|
145
|
+
* An event that is used to respond to remote actions with some arbitrary data.
|
|
146
|
+
*/
|
|
147
|
+
export interface RemoteActionResult extends Action, DeviceSelector {
|
|
148
|
+
type: 'remote_result';
|
|
149
|
+
/**
|
|
150
|
+
* The data that is included in the result.
|
|
151
|
+
*/
|
|
152
|
+
result?: any;
|
|
153
|
+
/**
|
|
154
|
+
* The ID of the task that this is a result for.
|
|
155
|
+
*/
|
|
156
|
+
taskId: number | string;
|
|
157
|
+
}
|
|
158
|
+
export declare const remoteActionResultSchema: z.ZodObject<{
|
|
159
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
160
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
161
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
162
|
+
broadcast: z.ZodOptional<z.ZodBoolean>;
|
|
163
|
+
type: z.ZodLiteral<"remote_result">;
|
|
164
|
+
result: z.ZodOptional<z.ZodAny>;
|
|
165
|
+
taskId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
166
|
+
}, "strip", z.ZodTypeAny, {
|
|
167
|
+
connectionId?: string;
|
|
168
|
+
sessionId?: string;
|
|
169
|
+
userId?: string;
|
|
170
|
+
broadcast?: boolean;
|
|
171
|
+
type?: "remote_result";
|
|
172
|
+
result?: any;
|
|
173
|
+
taskId?: string | number;
|
|
174
|
+
}, {
|
|
175
|
+
connectionId?: string;
|
|
176
|
+
sessionId?: string;
|
|
177
|
+
userId?: string;
|
|
178
|
+
broadcast?: boolean;
|
|
179
|
+
type?: "remote_result";
|
|
180
|
+
result?: any;
|
|
181
|
+
taskId?: string | number;
|
|
182
|
+
}>;
|
|
183
|
+
/**
|
|
184
|
+
* An event that is used to response to remote actions with an error.
|
|
185
|
+
*/
|
|
186
|
+
export interface RemoteActionError extends Action, DeviceSelector {
|
|
187
|
+
type: 'remote_error';
|
|
188
|
+
/**
|
|
189
|
+
* The error that occurred.
|
|
190
|
+
*/
|
|
191
|
+
error: any;
|
|
192
|
+
/**
|
|
193
|
+
* The ID of the task that this is a result for.
|
|
194
|
+
*/
|
|
195
|
+
taskId: number | string;
|
|
196
|
+
}
|
|
197
|
+
export declare const remoteActionErrorSchema: z.ZodObject<{
|
|
198
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
199
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
200
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
201
|
+
broadcast: z.ZodOptional<z.ZodBoolean>;
|
|
202
|
+
type: z.ZodLiteral<"remote_error">;
|
|
203
|
+
error: z.ZodAny;
|
|
204
|
+
taskId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
205
|
+
}, "strip", z.ZodTypeAny, {
|
|
206
|
+
connectionId?: string;
|
|
207
|
+
sessionId?: string;
|
|
208
|
+
userId?: string;
|
|
209
|
+
broadcast?: boolean;
|
|
210
|
+
type?: "remote_error";
|
|
211
|
+
error?: any;
|
|
212
|
+
taskId?: string | number;
|
|
213
|
+
}, {
|
|
214
|
+
connectionId?: string;
|
|
215
|
+
sessionId?: string;
|
|
216
|
+
userId?: string;
|
|
217
|
+
broadcast?: boolean;
|
|
218
|
+
type?: "remote_error";
|
|
219
|
+
error?: any;
|
|
220
|
+
taskId?: string | number;
|
|
221
|
+
}>;
|
|
222
|
+
export declare const remoteActionsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
223
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
224
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
225
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
226
|
+
broadcast: z.ZodOptional<z.ZodBoolean>;
|
|
227
|
+
type: z.ZodLiteral<"remote">;
|
|
228
|
+
event: z.ZodAny;
|
|
229
|
+
allowBatching: z.ZodOptional<z.ZodBoolean>;
|
|
230
|
+
taskId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
231
|
+
}, "strip", z.ZodTypeAny, {
|
|
232
|
+
connectionId?: string;
|
|
233
|
+
sessionId?: string;
|
|
234
|
+
userId?: string;
|
|
235
|
+
broadcast?: boolean;
|
|
236
|
+
type?: "remote";
|
|
237
|
+
event?: any;
|
|
238
|
+
allowBatching?: boolean;
|
|
239
|
+
taskId?: string | number;
|
|
240
|
+
}, {
|
|
241
|
+
connectionId?: string;
|
|
242
|
+
sessionId?: string;
|
|
243
|
+
userId?: string;
|
|
244
|
+
broadcast?: boolean;
|
|
245
|
+
type?: "remote";
|
|
246
|
+
event?: any;
|
|
247
|
+
allowBatching?: boolean;
|
|
248
|
+
taskId?: string | number;
|
|
249
|
+
}>, z.ZodObject<{
|
|
250
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
251
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
252
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
253
|
+
broadcast: z.ZodOptional<z.ZodBoolean>;
|
|
254
|
+
type: z.ZodLiteral<"remote_result">;
|
|
255
|
+
result: z.ZodOptional<z.ZodAny>;
|
|
256
|
+
taskId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
257
|
+
}, "strip", z.ZodTypeAny, {
|
|
258
|
+
connectionId?: string;
|
|
259
|
+
sessionId?: string;
|
|
260
|
+
userId?: string;
|
|
261
|
+
broadcast?: boolean;
|
|
262
|
+
type?: "remote_result";
|
|
263
|
+
result?: any;
|
|
264
|
+
taskId?: string | number;
|
|
265
|
+
}, {
|
|
266
|
+
connectionId?: string;
|
|
267
|
+
sessionId?: string;
|
|
268
|
+
userId?: string;
|
|
269
|
+
broadcast?: boolean;
|
|
270
|
+
type?: "remote_result";
|
|
271
|
+
result?: any;
|
|
272
|
+
taskId?: string | number;
|
|
273
|
+
}>, z.ZodObject<{
|
|
274
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
275
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
276
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
277
|
+
broadcast: z.ZodOptional<z.ZodBoolean>;
|
|
278
|
+
type: z.ZodLiteral<"remote_error">;
|
|
279
|
+
error: z.ZodAny;
|
|
280
|
+
taskId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
281
|
+
}, "strip", z.ZodTypeAny, {
|
|
282
|
+
connectionId?: string;
|
|
283
|
+
sessionId?: string;
|
|
284
|
+
userId?: string;
|
|
285
|
+
broadcast?: boolean;
|
|
286
|
+
type?: "remote_error";
|
|
287
|
+
error?: any;
|
|
288
|
+
taskId?: string | number;
|
|
289
|
+
}, {
|
|
290
|
+
connectionId?: string;
|
|
291
|
+
sessionId?: string;
|
|
292
|
+
userId?: string;
|
|
293
|
+
broadcast?: boolean;
|
|
294
|
+
type?: "remote_error";
|
|
295
|
+
error?: any;
|
|
296
|
+
taskId?: string | number;
|
|
297
|
+
}>]>;
|
|
298
|
+
/**
|
|
299
|
+
* An event that is used to respond to remote actions with some arbitrary data.
|
|
300
|
+
*/
|
|
301
|
+
export interface DeviceActionResult extends Action {
|
|
302
|
+
type: 'device_result';
|
|
303
|
+
/**
|
|
304
|
+
* The data that is included in the result.
|
|
305
|
+
*/
|
|
306
|
+
result: any;
|
|
307
|
+
/**
|
|
308
|
+
* The ID of the task that this is a result for.
|
|
309
|
+
*/
|
|
310
|
+
taskId: number | string;
|
|
311
|
+
/**
|
|
312
|
+
* The connection which sent the event.
|
|
313
|
+
*/
|
|
314
|
+
connection: ConnectionInfo;
|
|
315
|
+
}
|
|
316
|
+
export declare const deviceActionResultSchema: z.ZodObject<{
|
|
317
|
+
type: z.ZodLiteral<"device_result">;
|
|
318
|
+
result: z.ZodAny;
|
|
319
|
+
taskId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
320
|
+
connection: z.ZodObject<{
|
|
321
|
+
connectionId: z.ZodString;
|
|
322
|
+
sessionId: z.ZodString;
|
|
323
|
+
userId: z.ZodString;
|
|
324
|
+
}, "strip", z.ZodTypeAny, {
|
|
325
|
+
connectionId?: string;
|
|
326
|
+
sessionId?: string;
|
|
327
|
+
userId?: string;
|
|
328
|
+
}, {
|
|
329
|
+
connectionId?: string;
|
|
330
|
+
sessionId?: string;
|
|
331
|
+
userId?: string;
|
|
332
|
+
}>;
|
|
333
|
+
}, "strip", z.ZodTypeAny, {
|
|
334
|
+
type?: "device_result";
|
|
335
|
+
result?: any;
|
|
336
|
+
taskId?: string | number;
|
|
337
|
+
connection?: {
|
|
338
|
+
connectionId?: string;
|
|
339
|
+
sessionId?: string;
|
|
340
|
+
userId?: string;
|
|
341
|
+
};
|
|
342
|
+
}, {
|
|
343
|
+
type?: "device_result";
|
|
344
|
+
result?: any;
|
|
345
|
+
taskId?: string | number;
|
|
346
|
+
connection?: {
|
|
347
|
+
connectionId?: string;
|
|
348
|
+
sessionId?: string;
|
|
349
|
+
userId?: string;
|
|
350
|
+
};
|
|
351
|
+
}>;
|
|
352
|
+
/**
|
|
353
|
+
* An event that is used to respond to remote actions with an error.
|
|
354
|
+
*/
|
|
355
|
+
export interface DeviceActionError extends Action {
|
|
356
|
+
type: 'device_error';
|
|
357
|
+
/**
|
|
358
|
+
* The error that is included in the result.
|
|
359
|
+
*/
|
|
360
|
+
error: any;
|
|
361
|
+
/**
|
|
362
|
+
* The ID of the task that this is a result for.
|
|
363
|
+
*/
|
|
364
|
+
taskId: number | string;
|
|
365
|
+
/**
|
|
366
|
+
* The connection which sent the event.
|
|
367
|
+
*/
|
|
368
|
+
connection: ConnectionInfo;
|
|
369
|
+
}
|
|
370
|
+
export declare const deviceActionErrorSchema: z.ZodObject<{
|
|
371
|
+
type: z.ZodLiteral<"device_error">;
|
|
372
|
+
error: z.ZodAny;
|
|
373
|
+
taskId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
374
|
+
connection: z.ZodObject<{
|
|
375
|
+
connectionId: z.ZodString;
|
|
376
|
+
sessionId: z.ZodString;
|
|
377
|
+
userId: z.ZodString;
|
|
378
|
+
}, "strip", z.ZodTypeAny, {
|
|
379
|
+
connectionId?: string;
|
|
380
|
+
sessionId?: string;
|
|
381
|
+
userId?: string;
|
|
382
|
+
}, {
|
|
383
|
+
connectionId?: string;
|
|
384
|
+
sessionId?: string;
|
|
385
|
+
userId?: string;
|
|
386
|
+
}>;
|
|
387
|
+
}, "strip", z.ZodTypeAny, {
|
|
388
|
+
type?: "device_error";
|
|
389
|
+
error?: any;
|
|
390
|
+
taskId?: string | number;
|
|
391
|
+
connection?: {
|
|
392
|
+
connectionId?: string;
|
|
393
|
+
sessionId?: string;
|
|
394
|
+
userId?: string;
|
|
395
|
+
};
|
|
396
|
+
}, {
|
|
397
|
+
type?: "device_error";
|
|
398
|
+
error?: any;
|
|
399
|
+
taskId?: string | number;
|
|
400
|
+
connection?: {
|
|
401
|
+
connectionId?: string;
|
|
402
|
+
sessionId?: string;
|
|
403
|
+
userId?: string;
|
|
404
|
+
};
|
|
405
|
+
}>;
|
|
406
|
+
export type DeviceActions = DeviceAction | DeviceActionResult | DeviceActionError;
|
|
407
|
+
export declare const deviceActionsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
408
|
+
type: z.ZodLiteral<"device">;
|
|
409
|
+
connection: z.ZodObject<{
|
|
410
|
+
connectionId: z.ZodString;
|
|
411
|
+
sessionId: z.ZodString;
|
|
412
|
+
userId: z.ZodString;
|
|
413
|
+
}, "strip", z.ZodTypeAny, {
|
|
414
|
+
connectionId?: string;
|
|
415
|
+
sessionId?: string;
|
|
416
|
+
userId?: string;
|
|
417
|
+
}, {
|
|
418
|
+
connectionId?: string;
|
|
419
|
+
sessionId?: string;
|
|
420
|
+
userId?: string;
|
|
421
|
+
}>;
|
|
422
|
+
event: z.ZodAny;
|
|
423
|
+
taskId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
424
|
+
}, "strip", z.ZodTypeAny, {
|
|
425
|
+
type?: "device";
|
|
426
|
+
connection?: {
|
|
427
|
+
connectionId?: string;
|
|
428
|
+
sessionId?: string;
|
|
429
|
+
userId?: string;
|
|
430
|
+
};
|
|
431
|
+
event?: any;
|
|
432
|
+
taskId?: string | number;
|
|
433
|
+
}, {
|
|
434
|
+
type?: "device";
|
|
435
|
+
connection?: {
|
|
436
|
+
connectionId?: string;
|
|
437
|
+
sessionId?: string;
|
|
438
|
+
userId?: string;
|
|
439
|
+
};
|
|
440
|
+
event?: any;
|
|
441
|
+
taskId?: string | number;
|
|
442
|
+
}>, z.ZodObject<{
|
|
443
|
+
type: z.ZodLiteral<"device_result">;
|
|
444
|
+
result: z.ZodAny;
|
|
445
|
+
taskId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
446
|
+
connection: z.ZodObject<{
|
|
447
|
+
connectionId: z.ZodString;
|
|
448
|
+
sessionId: z.ZodString;
|
|
449
|
+
userId: z.ZodString;
|
|
450
|
+
}, "strip", z.ZodTypeAny, {
|
|
451
|
+
connectionId?: string;
|
|
452
|
+
sessionId?: string;
|
|
453
|
+
userId?: string;
|
|
454
|
+
}, {
|
|
455
|
+
connectionId?: string;
|
|
456
|
+
sessionId?: string;
|
|
457
|
+
userId?: string;
|
|
458
|
+
}>;
|
|
459
|
+
}, "strip", z.ZodTypeAny, {
|
|
460
|
+
type?: "device_result";
|
|
461
|
+
result?: any;
|
|
462
|
+
taskId?: string | number;
|
|
463
|
+
connection?: {
|
|
464
|
+
connectionId?: string;
|
|
465
|
+
sessionId?: string;
|
|
466
|
+
userId?: string;
|
|
467
|
+
};
|
|
468
|
+
}, {
|
|
469
|
+
type?: "device_result";
|
|
470
|
+
result?: any;
|
|
471
|
+
taskId?: string | number;
|
|
472
|
+
connection?: {
|
|
473
|
+
connectionId?: string;
|
|
474
|
+
sessionId?: string;
|
|
475
|
+
userId?: string;
|
|
476
|
+
};
|
|
477
|
+
}>, z.ZodObject<{
|
|
478
|
+
type: z.ZodLiteral<"device_error">;
|
|
479
|
+
error: z.ZodAny;
|
|
480
|
+
taskId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
481
|
+
connection: z.ZodObject<{
|
|
482
|
+
connectionId: z.ZodString;
|
|
483
|
+
sessionId: z.ZodString;
|
|
484
|
+
userId: z.ZodString;
|
|
485
|
+
}, "strip", z.ZodTypeAny, {
|
|
486
|
+
connectionId?: string;
|
|
487
|
+
sessionId?: string;
|
|
488
|
+
userId?: string;
|
|
489
|
+
}, {
|
|
490
|
+
connectionId?: string;
|
|
491
|
+
sessionId?: string;
|
|
492
|
+
userId?: string;
|
|
493
|
+
}>;
|
|
494
|
+
}, "strip", z.ZodTypeAny, {
|
|
495
|
+
type?: "device_error";
|
|
496
|
+
error?: any;
|
|
497
|
+
taskId?: string | number;
|
|
498
|
+
connection?: {
|
|
499
|
+
connectionId?: string;
|
|
500
|
+
sessionId?: string;
|
|
501
|
+
userId?: string;
|
|
502
|
+
};
|
|
503
|
+
}, {
|
|
504
|
+
type?: "device_error";
|
|
505
|
+
error?: any;
|
|
506
|
+
taskId?: string | number;
|
|
507
|
+
connection?: {
|
|
508
|
+
connectionId?: string;
|
|
509
|
+
sessionId?: string;
|
|
510
|
+
userId?: string;
|
|
511
|
+
};
|
|
512
|
+
}>]>;
|
|
513
|
+
/**
|
|
514
|
+
* Creates a new remote event.
|
|
515
|
+
* @param event The event.
|
|
516
|
+
* @param selector The selector that should be used to determine which devices this event should be sent to.
|
|
517
|
+
* @param allowBatching Whether this action is allowed to be batched with other remote actions.
|
|
518
|
+
* Batching will preserve ordering between remote actions but may
|
|
519
|
+
* break ordering with respect to bot actions. Defaults to true.
|
|
520
|
+
* @param taskId The ID of the task that this remote action represents.
|
|
521
|
+
*/
|
|
522
|
+
export declare function remote(event: Action, selector?: DeviceSelector, allowBatching?: boolean, taskId?: number | string): RemoteAction;
|
|
523
|
+
/**
|
|
524
|
+
* Creates a new remote event that represents a result to an async task.
|
|
525
|
+
* @param result The result data.
|
|
526
|
+
* @param selector The selector that should be used to determine which devices this event should be sent to.
|
|
527
|
+
* @param taskId The ID of the task that this remote action represents.
|
|
528
|
+
*/
|
|
529
|
+
export declare function remoteResult(result: any, selector?: DeviceSelector, taskId?: number | string): RemoteActionResult;
|
|
530
|
+
/**
|
|
531
|
+
* Creates a new remote event that represents an error result to an async task.
|
|
532
|
+
* @param result The result data.
|
|
533
|
+
* @param selector The selector that should be used to determine which devices this event should be sent to.
|
|
534
|
+
* @param taskId The ID of the task that this remote action represents.
|
|
535
|
+
*/
|
|
536
|
+
export declare function remoteError(error: any, selector?: DeviceSelector, taskId?: number | string): RemoteActionError;
|
|
537
|
+
/**
|
|
538
|
+
* Creates a new device event.
|
|
539
|
+
* @param info The info about the device that is sending the event.
|
|
540
|
+
* @param data The data included in the result.
|
|
541
|
+
* @param taskId The ID of the task that this device action represents.
|
|
542
|
+
*/
|
|
543
|
+
export declare function device(info: ConnectionInfo, event: Action, taskId?: number | string): DeviceAction;
|
|
544
|
+
/**
|
|
545
|
+
* Creates a new device event that represents the result of an async task.
|
|
546
|
+
* @param info The info about the device that is sending the event.
|
|
547
|
+
* @param result The result data included in the result.
|
|
548
|
+
* @param taskId The ID of the task that this device action represents.
|
|
549
|
+
*/
|
|
550
|
+
export declare function deviceResult(info: ConnectionInfo, result: any, taskId?: number | string): DeviceActionResult;
|
|
551
|
+
/**
|
|
552
|
+
* Creates a new device event that represents an error of an async task.
|
|
553
|
+
* @param info The info about the device that is sending the event.
|
|
554
|
+
* @param error The error data included in the result.
|
|
555
|
+
* @param taskId The ID of the task that this device action represents.
|
|
556
|
+
*/
|
|
557
|
+
export declare function deviceError(info: ConnectionInfo, error: any, taskId?: number | string): DeviceActionError;
|
|
558
|
+
//# sourceMappingURL=RemoteActions.d.ts.map
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { connectionInfoSchema } from './ConnectionInfo';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
export const deviceActionSchema = z.object({
|
|
4
|
+
type: z.literal('device'),
|
|
5
|
+
connection: connectionInfoSchema,
|
|
6
|
+
event: z.any(),
|
|
7
|
+
taskId: z.union([z.string(), z.number()]).optional(),
|
|
8
|
+
});
|
|
9
|
+
export const deviceSelectorSchema = z.object({
|
|
10
|
+
connectionId: z.string().optional(),
|
|
11
|
+
sessionId: z.string().optional(),
|
|
12
|
+
userId: z.string().optional(),
|
|
13
|
+
broadcast: z.boolean().optional(),
|
|
14
|
+
});
|
|
15
|
+
export const remoteActionSchema = deviceSelectorSchema.extend({
|
|
16
|
+
type: z.literal('remote'),
|
|
17
|
+
event: z.any(),
|
|
18
|
+
allowBatching: z.boolean().optional(),
|
|
19
|
+
taskId: z.union([z.string(), z.number()]).optional(),
|
|
20
|
+
});
|
|
21
|
+
export const remoteActionResultSchema = deviceSelectorSchema.extend({
|
|
22
|
+
type: z.literal('remote_result'),
|
|
23
|
+
result: z.any().optional(),
|
|
24
|
+
taskId: z.union([z.string(), z.number()]).optional(),
|
|
25
|
+
});
|
|
26
|
+
export const remoteActionErrorSchema = deviceSelectorSchema.extend({
|
|
27
|
+
type: z.literal('remote_error'),
|
|
28
|
+
error: z.any(),
|
|
29
|
+
taskId: z.union([z.string(), z.number()]).optional(),
|
|
30
|
+
});
|
|
31
|
+
export const remoteActionsSchema = z.discriminatedUnion('type', [
|
|
32
|
+
remoteActionSchema,
|
|
33
|
+
remoteActionResultSchema,
|
|
34
|
+
remoteActionErrorSchema,
|
|
35
|
+
]);
|
|
36
|
+
export const deviceActionResultSchema = z.object({
|
|
37
|
+
type: z.literal('device_result'),
|
|
38
|
+
result: z.any(),
|
|
39
|
+
taskId: z.union([z.string(), z.number()]).optional(),
|
|
40
|
+
connection: connectionInfoSchema,
|
|
41
|
+
});
|
|
42
|
+
export const deviceActionErrorSchema = z.object({
|
|
43
|
+
type: z.literal('device_error'),
|
|
44
|
+
error: z.any(),
|
|
45
|
+
taskId: z.union([z.string(), z.number()]).optional(),
|
|
46
|
+
connection: connectionInfoSchema,
|
|
47
|
+
});
|
|
48
|
+
export const deviceActionsSchema = z.discriminatedUnion('type', [
|
|
49
|
+
deviceActionSchema,
|
|
50
|
+
deviceActionResultSchema,
|
|
51
|
+
deviceActionErrorSchema,
|
|
52
|
+
]);
|
|
53
|
+
/**
|
|
54
|
+
* Creates a new remote event.
|
|
55
|
+
* @param event The event.
|
|
56
|
+
* @param selector The selector that should be used to determine which devices this event should be sent to.
|
|
57
|
+
* @param allowBatching Whether this action is allowed to be batched with other remote actions.
|
|
58
|
+
* Batching will preserve ordering between remote actions but may
|
|
59
|
+
* break ordering with respect to bot actions. Defaults to true.
|
|
60
|
+
* @param taskId The ID of the task that this remote action represents.
|
|
61
|
+
*/
|
|
62
|
+
export function remote(event, selector, allowBatching, taskId) {
|
|
63
|
+
return Object.assign({ type: 'remote', event: event, allowBatching,
|
|
64
|
+
taskId }, selector);
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Creates a new remote event that represents a result to an async task.
|
|
68
|
+
* @param result The result data.
|
|
69
|
+
* @param selector The selector that should be used to determine which devices this event should be sent to.
|
|
70
|
+
* @param taskId The ID of the task that this remote action represents.
|
|
71
|
+
*/
|
|
72
|
+
export function remoteResult(result, selector, taskId) {
|
|
73
|
+
return Object.assign({ type: 'remote_result', result,
|
|
74
|
+
taskId }, selector);
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Creates a new remote event that represents an error result to an async task.
|
|
78
|
+
* @param result The result data.
|
|
79
|
+
* @param selector The selector that should be used to determine which devices this event should be sent to.
|
|
80
|
+
* @param taskId The ID of the task that this remote action represents.
|
|
81
|
+
*/
|
|
82
|
+
export function remoteError(error, selector, taskId) {
|
|
83
|
+
return Object.assign({ type: 'remote_error', error,
|
|
84
|
+
taskId }, selector);
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Creates a new device event.
|
|
88
|
+
* @param info The info about the device that is sending the event.
|
|
89
|
+
* @param data The data included in the result.
|
|
90
|
+
* @param taskId The ID of the task that this device action represents.
|
|
91
|
+
*/
|
|
92
|
+
export function device(info, event, taskId) {
|
|
93
|
+
return {
|
|
94
|
+
type: 'device',
|
|
95
|
+
connection: info,
|
|
96
|
+
event: event,
|
|
97
|
+
taskId,
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Creates a new device event that represents the result of an async task.
|
|
102
|
+
* @param info The info about the device that is sending the event.
|
|
103
|
+
* @param result The result data included in the result.
|
|
104
|
+
* @param taskId The ID of the task that this device action represents.
|
|
105
|
+
*/
|
|
106
|
+
export function deviceResult(info, result, taskId) {
|
|
107
|
+
return {
|
|
108
|
+
type: 'device_result',
|
|
109
|
+
connection: info,
|
|
110
|
+
result,
|
|
111
|
+
taskId,
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Creates a new device event that represents an error of an async task.
|
|
116
|
+
* @param info The info about the device that is sending the event.
|
|
117
|
+
* @param error The error data included in the result.
|
|
118
|
+
* @param taskId The ID of the task that this device action represents.
|
|
119
|
+
*/
|
|
120
|
+
export function deviceError(info, error, taskId) {
|
|
121
|
+
return {
|
|
122
|
+
type: 'device_error',
|
|
123
|
+
connection: info,
|
|
124
|
+
error,
|
|
125
|
+
taskId,
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
//# sourceMappingURL=RemoteActions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RemoteActions.js","sourceRoot":"","sources":["RemoteActions.ts"],"names":[],"mappings":"AACA,OAAO,EAAkB,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAuBxB,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;IACzB,UAAU,EAAE,oBAAoB;IAChC,KAAK,EAAE,CAAC,CAAC,GAA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