@casual-simulation/aux-common 3.8.1 → 3.10.2
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/BlobPolyfill.js +1 -1
- package/BlobPolyfill.js.map +1 -1
- package/README.md +493 -26
- package/bots/BotCalculations.js +9 -17
- package/bots/BotCalculations.js.map +1 -1
- package/bots/BotEvents.d.ts +160 -3
- package/bots/BotEvents.js +29 -4
- package/bots/BotEvents.js.map +1 -1
- package/common/ConnectionInfo.d.ts +1 -9
- package/common/DenialReason.d.ts +1 -1
- package/common/PolicyPermissions.d.ts +866 -754
- package/common/PolicyPermissions.js +53 -0
- package/common/PolicyPermissions.js.map +1 -1
- package/common/RemoteActions.d.ts +33 -299
- package/common/Version.d.ts +35 -1
- package/common/Version.js +50 -2
- package/common/Version.js.map +1 -1
- package/common/WebConfig.d.ts +163 -69
- package/common/WebConfig.js +86 -23
- package/common/WebConfig.js.map +1 -1
- package/common/WebManifest.d.ts +27 -0
- package/common/WebManifest.js +110 -0
- package/common/WebManifest.js.map +1 -0
- package/documents/RemoteYjsSharedDocument.js +3 -5
- package/documents/RemoteYjsSharedDocument.js.map +1 -1
- package/documents/YjsSharedDocument.js +5 -10
- package/documents/YjsSharedDocument.js.map +1 -1
- package/forms/FormError.js +1 -2
- package/forms/FormError.js.map +1 -1
- package/http/GenericHttpInterface.d.ts +11 -20
- package/http/GenericHttpInterface.js.map +1 -1
- package/math/Rotation.js +3 -4
- package/math/Rotation.js.map +1 -1
- package/package.json +77 -78
- package/partitions/AuxPartitionConfig.d.ts +11 -1
- package/partitions/AuxPartitionFactories.js +3 -0
- package/partitions/AuxPartitionFactories.js.map +1 -1
- package/partitions/MemoryPartition.js +5 -7
- package/partitions/MemoryPartition.js.map +1 -1
- package/partitions/OtherPlayersPartition.js +4 -8
- package/partitions/OtherPlayersPartition.js.map +1 -1
- package/partitions/PartitionAuthSource.js +2 -4
- package/partitions/PartitionAuthSource.js.map +1 -1
- package/partitions/PartitionUtils.d.ts +12 -0
- package/partitions/PartitionUtils.js +65 -6
- package/partitions/PartitionUtils.js.map +1 -1
- package/partitions/RemoteYjsPartition.d.ts +1 -0
- package/partitions/RemoteYjsPartition.js +39 -6
- package/partitions/RemoteYjsPartition.js.map +1 -1
- package/partitions/YjsPartition.d.ts +2 -1
- package/partitions/YjsPartition.js +46 -28
- package/partitions/YjsPartition.js.map +1 -1
- package/records/AccountBalance.d.ts +82 -0
- package/records/AccountBalance.js +63 -0
- package/records/AccountBalance.js.map +1 -0
- package/records/AuthUtils.js +7 -7
- package/records/AuthUtils.js.map +1 -1
- package/records/RecordKeys.js +2 -3
- package/records/RecordKeys.js.map +1 -1
- package/records/index.d.ts +1 -0
- package/records/index.js +1 -0
- package/records/index.js.map +1 -1
- package/rpc/ErrorCodes.d.ts +1 -1
- package/rpc/ErrorCodes.js +3 -3
- package/rpc/ErrorCodes.js.map +1 -1
- package/rpc/GenericRPCInterface.d.ts +56 -13
- package/rpc/GenericRPCInterface.js +87 -55
- package/rpc/GenericRPCInterface.js.map +1 -1
- package/rpc/Result.d.ts +4 -1
- package/rpc/Result.js +21 -13
- package/rpc/Result.js.map +1 -1
- package/utils.d.ts +1 -1
- package/utils.js +6 -4
- package/utils.js.map +1 -1
- package/websockets/InstRecordsClient.js +6 -7
- package/websockets/InstRecordsClient.js.map +1 -1
- package/websockets/Utils.js +3 -3
- package/websockets/Utils.js.map +1 -1
- package/websockets/WebsocketEvents.d.ts +246 -997
- package/websockets/WebsocketEvents.js +3 -3
- package/websockets/WebsocketEvents.js.map +1 -1
- package/yjs/YjsHelpers.d.ts +9 -0
- package/yjs/YjsHelpers.js +28 -1
- package/yjs/YjsHelpers.js.map +1 -1
- package/yjs/YjsIndexedDBPersistence.js +2 -3
- package/yjs/YjsIndexedDBPersistence.js.map +1 -1
|
@@ -32,6 +32,9 @@ export const PACKAGE_RESOURCE_KIND = 'package';
|
|
|
32
32
|
export const PACKAGE_VERSION_RESOURCE_KIND = 'package.version';
|
|
33
33
|
export const SEARCH_RESOURCE_KIND = 'search';
|
|
34
34
|
export const DATABASE_RESOURCE_KIND = 'database';
|
|
35
|
+
export const PURCHASABLE_ITEM_RESOURCE_KIND = 'purchasableItem';
|
|
36
|
+
export const CONTRACT_RESOURCE_KIND = 'contract';
|
|
37
|
+
export const INVOICE_RESOURCE_KIND = 'invoice';
|
|
35
38
|
export const READ_ACTION = 'read';
|
|
36
39
|
export const CREATE_ACTION = 'create';
|
|
37
40
|
export const UPDATE_ACTION = 'update';
|
|
@@ -52,6 +55,9 @@ export const SEND_ACTION = 'send';
|
|
|
52
55
|
export const SUBSCRIBE_ACTION = 'subscribe';
|
|
53
56
|
export const UNSUBSCRIBE_ACTION = 'unsubscribe';
|
|
54
57
|
export const LIST_SUBSCRIPTIONS_ACTION = 'listSubscriptions';
|
|
58
|
+
export const PURCHASE_ACTION = 'purchase';
|
|
59
|
+
export const APPROVE_ACTION = 'approve';
|
|
60
|
+
export const CANCEL_ACTION = 'cancel';
|
|
55
61
|
export const SUBJECT_TYPE_VALIDATION = z.enum(['user', 'inst', 'role']);
|
|
56
62
|
export const DATA_ACTION_KINDS_VALIDATION = z.enum([
|
|
57
63
|
READ_ACTION,
|
|
@@ -149,6 +155,32 @@ export const DATABASE_ACTION_KINDS_VALIDATION = z.enum([
|
|
|
149
155
|
DELETE_ACTION,
|
|
150
156
|
LIST_ACTION,
|
|
151
157
|
]);
|
|
158
|
+
export const PURCHASABLE_ITEM_ACTION_KINDS_VALIDATION = z.enum([
|
|
159
|
+
CREATE_ACTION,
|
|
160
|
+
READ_ACTION,
|
|
161
|
+
UPDATE_ACTION,
|
|
162
|
+
DELETE_ACTION,
|
|
163
|
+
LIST_ACTION,
|
|
164
|
+
PURCHASE_ACTION,
|
|
165
|
+
]);
|
|
166
|
+
export const CONTRACT_ACTION_KINDS_VALIDATION = z.enum([
|
|
167
|
+
CREATE_ACTION,
|
|
168
|
+
READ_ACTION,
|
|
169
|
+
UPDATE_ACTION,
|
|
170
|
+
DELETE_ACTION,
|
|
171
|
+
LIST_ACTION,
|
|
172
|
+
PURCHASE_ACTION,
|
|
173
|
+
CANCEL_ACTION,
|
|
174
|
+
]);
|
|
175
|
+
export const INVOICE_ACTION_KINDS_VALIDATION = z.enum([
|
|
176
|
+
CREATE_ACTION,
|
|
177
|
+
READ_ACTION,
|
|
178
|
+
UPDATE_ACTION,
|
|
179
|
+
DELETE_ACTION,
|
|
180
|
+
LIST_ACTION,
|
|
181
|
+
APPROVE_ACTION,
|
|
182
|
+
CANCEL_ACTION,
|
|
183
|
+
]);
|
|
152
184
|
export const RESOURCE_KIND_VALIDATION = z.enum([
|
|
153
185
|
DATA_RESOURCE_KIND,
|
|
154
186
|
FILE_RESOURCE_KIND,
|
|
@@ -166,6 +198,9 @@ export const RESOURCE_KIND_VALIDATION = z.enum([
|
|
|
166
198
|
PACKAGE_VERSION_RESOURCE_KIND,
|
|
167
199
|
SEARCH_RESOURCE_KIND,
|
|
168
200
|
DATABASE_RESOURCE_KIND,
|
|
201
|
+
PURCHASABLE_ITEM_RESOURCE_KIND,
|
|
202
|
+
CONTRACT_RESOURCE_KIND,
|
|
203
|
+
INVOICE_RESOURCE_KIND,
|
|
169
204
|
]);
|
|
170
205
|
export const ACTION_KINDS_VALIDATION = z.enum([
|
|
171
206
|
CREATE_ACTION,
|
|
@@ -188,6 +223,9 @@ export const ACTION_KINDS_VALIDATION = z.enum([
|
|
|
188
223
|
SUBSCRIBE_ACTION,
|
|
189
224
|
UNSUBSCRIBE_ACTION,
|
|
190
225
|
LIST_SUBSCRIPTIONS_ACTION,
|
|
226
|
+
PURCHASE_ACTION,
|
|
227
|
+
APPROVE_ACTION,
|
|
228
|
+
CANCEL_ACTION,
|
|
191
229
|
]);
|
|
192
230
|
export const ENTITLEMENT_FEATURE_VALIDATION = z.enum([
|
|
193
231
|
'data',
|
|
@@ -290,6 +328,18 @@ export const DATABASE_PERMISSION_VALIDATION = PERMISSION_VALIDATION.extend({
|
|
|
290
328
|
resourceKind: z.literal(DATABASE_RESOURCE_KIND),
|
|
291
329
|
action: DATABASE_ACTION_KINDS_VALIDATION.nullable(),
|
|
292
330
|
});
|
|
331
|
+
export const PURCHASABLE_ITEM_PERMISSION_VALIDATION = PERMISSION_VALIDATION.extend({
|
|
332
|
+
resourceKind: z.literal(PURCHASABLE_ITEM_RESOURCE_KIND),
|
|
333
|
+
action: PURCHASABLE_ITEM_ACTION_KINDS_VALIDATION.nullable(),
|
|
334
|
+
});
|
|
335
|
+
export const CONTRACT_PERMISSION_VALIDATION = PERMISSION_VALIDATION.extend({
|
|
336
|
+
resourceKind: z.literal(CONTRACT_RESOURCE_KIND),
|
|
337
|
+
action: CONTRACT_ACTION_KINDS_VALIDATION.nullable(),
|
|
338
|
+
});
|
|
339
|
+
export const INVOICE_PERMISSION_VALIDATION = PERMISSION_VALIDATION.extend({
|
|
340
|
+
resourceKind: z.literal(INVOICE_RESOURCE_KIND),
|
|
341
|
+
action: INVOICE_ACTION_KINDS_VALIDATION.nullable(),
|
|
342
|
+
});
|
|
293
343
|
export const AVAILABLE_PERMISSIONS_VALIDATION = z.discriminatedUnion('resourceKind', [
|
|
294
344
|
DATA_PERMISSION_VALIDATION,
|
|
295
345
|
FILE_PERMISSION_VALIDATION,
|
|
@@ -307,6 +357,9 @@ export const AVAILABLE_PERMISSIONS_VALIDATION = z.discriminatedUnion('resourceKi
|
|
|
307
357
|
PACKAGE_VERSION_PERMISSION_VALIDATION,
|
|
308
358
|
SEARCH_PERMISSION_VALIDATION,
|
|
309
359
|
DATABASE_PERMISSION_VALIDATION,
|
|
360
|
+
PURCHASABLE_ITEM_PERMISSION_VALIDATION,
|
|
361
|
+
CONTRACT_PERMISSION_VALIDATION,
|
|
362
|
+
INVOICE_PERMISSION_VALIDATION,
|
|
310
363
|
]);
|
|
311
364
|
// /**
|
|
312
365
|
// * Defines an interface that represents a policy document.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PolicyPermissions.js","s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@@ export declare const deviceActionSchema: z.ZodObject<{
|
|
|
25
25
|
connectionId: z.ZodString;
|
|
26
26
|
sessionId: z.ZodString;
|
|
27
27
|
userId: z.ZodString;
|
|
28
|
-
},
|
|
29
|
-
connectionId?: string;
|
|
30
|
-
sessionId?: string;
|
|
31
|
-
userId?: string;
|
|
32
|
-
}, {
|
|
33
|
-
connectionId?: string;
|
|
34
|
-
sessionId?: string;
|
|
35
|
-
userId?: string;
|
|
36
|
-
}>;
|
|
28
|
+
}, z.core.$strip>;
|
|
37
29
|
event: z.ZodAny;
|
|
38
|
-
taskId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
39
|
-
},
|
|
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
|
-
}>;
|
|
30
|
+
taskId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
31
|
+
}, z.core.$strip>;
|
|
58
32
|
/**
|
|
59
33
|
* An interface that is used to determine which device to send a remote event to.
|
|
60
34
|
*/
|
|
@@ -81,17 +55,7 @@ export declare const deviceSelectorSchema: z.ZodObject<{
|
|
|
81
55
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
82
56
|
userId: z.ZodOptional<z.ZodString>;
|
|
83
57
|
broadcast: z.ZodOptional<z.ZodBoolean>;
|
|
84
|
-
},
|
|
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
|
-
}>;
|
|
58
|
+
}, z.core.$strip>;
|
|
95
59
|
export type RemoteActions = RemoteAction | RemoteActionResult | RemoteActionError;
|
|
96
60
|
/**
|
|
97
61
|
* An event that is used to send events from this device to a remote device.
|
|
@@ -124,26 +88,8 @@ export declare const remoteActionSchema: z.ZodObject<{
|
|
|
124
88
|
type: z.ZodLiteral<"remote">;
|
|
125
89
|
event: z.ZodAny;
|
|
126
90
|
allowBatching: z.ZodOptional<z.ZodBoolean>;
|
|
127
|
-
taskId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
128
|
-
},
|
|
129
|
-
connectionId?: string;
|
|
130
|
-
sessionId?: string;
|
|
131
|
-
userId?: string;
|
|
132
|
-
broadcast?: boolean;
|
|
133
|
-
type?: "remote";
|
|
134
|
-
event?: any;
|
|
135
|
-
allowBatching?: boolean;
|
|
136
|
-
taskId?: string | number;
|
|
137
|
-
}, {
|
|
138
|
-
connectionId?: string;
|
|
139
|
-
sessionId?: string;
|
|
140
|
-
userId?: string;
|
|
141
|
-
broadcast?: boolean;
|
|
142
|
-
type?: "remote";
|
|
143
|
-
event?: any;
|
|
144
|
-
allowBatching?: boolean;
|
|
145
|
-
taskId?: string | number;
|
|
146
|
-
}>;
|
|
91
|
+
taskId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
92
|
+
}, z.core.$strip>;
|
|
147
93
|
/**
|
|
148
94
|
* An event that is used to respond to remote actions with some arbitrary data.
|
|
149
95
|
*/
|
|
@@ -165,24 +111,8 @@ export declare const remoteActionResultSchema: z.ZodObject<{
|
|
|
165
111
|
broadcast: z.ZodOptional<z.ZodBoolean>;
|
|
166
112
|
type: z.ZodLiteral<"remote_result">;
|
|
167
113
|
result: z.ZodOptional<z.ZodAny>;
|
|
168
|
-
taskId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
169
|
-
},
|
|
170
|
-
connectionId?: string;
|
|
171
|
-
sessionId?: string;
|
|
172
|
-
userId?: string;
|
|
173
|
-
broadcast?: boolean;
|
|
174
|
-
type?: "remote_result";
|
|
175
|
-
result?: any;
|
|
176
|
-
taskId?: string | number;
|
|
177
|
-
}, {
|
|
178
|
-
connectionId?: string;
|
|
179
|
-
sessionId?: string;
|
|
180
|
-
userId?: string;
|
|
181
|
-
broadcast?: boolean;
|
|
182
|
-
type?: "remote_result";
|
|
183
|
-
result?: any;
|
|
184
|
-
taskId?: string | number;
|
|
185
|
-
}>;
|
|
114
|
+
taskId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
115
|
+
}, z.core.$strip>;
|
|
186
116
|
/**
|
|
187
117
|
* An event that is used to response to remote actions with an error.
|
|
188
118
|
*/
|
|
@@ -204,25 +134,9 @@ export declare const remoteActionErrorSchema: z.ZodObject<{
|
|
|
204
134
|
broadcast: z.ZodOptional<z.ZodBoolean>;
|
|
205
135
|
type: z.ZodLiteral<"remote_error">;
|
|
206
136
|
error: z.ZodAny;
|
|
207
|
-
taskId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
208
|
-
},
|
|
209
|
-
|
|
210
|
-
sessionId?: string;
|
|
211
|
-
userId?: string;
|
|
212
|
-
broadcast?: boolean;
|
|
213
|
-
type?: "remote_error";
|
|
214
|
-
error?: any;
|
|
215
|
-
taskId?: string | number;
|
|
216
|
-
}, {
|
|
217
|
-
connectionId?: string;
|
|
218
|
-
sessionId?: string;
|
|
219
|
-
userId?: string;
|
|
220
|
-
broadcast?: boolean;
|
|
221
|
-
type?: "remote_error";
|
|
222
|
-
error?: any;
|
|
223
|
-
taskId?: string | number;
|
|
224
|
-
}>;
|
|
225
|
-
export declare const remoteActionsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
137
|
+
taskId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
138
|
+
}, z.core.$strip>;
|
|
139
|
+
export declare const remoteActionsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
226
140
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
227
141
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
228
142
|
userId: z.ZodOptional<z.ZodString>;
|
|
@@ -230,74 +144,24 @@ export declare const remoteActionsSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
230
144
|
type: z.ZodLiteral<"remote">;
|
|
231
145
|
event: z.ZodAny;
|
|
232
146
|
allowBatching: z.ZodOptional<z.ZodBoolean>;
|
|
233
|
-
taskId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
234
|
-
},
|
|
235
|
-
connectionId?: string;
|
|
236
|
-
sessionId?: string;
|
|
237
|
-
userId?: string;
|
|
238
|
-
broadcast?: boolean;
|
|
239
|
-
type?: "remote";
|
|
240
|
-
event?: any;
|
|
241
|
-
allowBatching?: boolean;
|
|
242
|
-
taskId?: string | number;
|
|
243
|
-
}, {
|
|
244
|
-
connectionId?: string;
|
|
245
|
-
sessionId?: string;
|
|
246
|
-
userId?: string;
|
|
247
|
-
broadcast?: boolean;
|
|
248
|
-
type?: "remote";
|
|
249
|
-
event?: any;
|
|
250
|
-
allowBatching?: boolean;
|
|
251
|
-
taskId?: string | number;
|
|
252
|
-
}>, z.ZodObject<{
|
|
147
|
+
taskId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
148
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
253
149
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
254
150
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
255
151
|
userId: z.ZodOptional<z.ZodString>;
|
|
256
152
|
broadcast: z.ZodOptional<z.ZodBoolean>;
|
|
257
153
|
type: z.ZodLiteral<"remote_result">;
|
|
258
154
|
result: z.ZodOptional<z.ZodAny>;
|
|
259
|
-
taskId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
260
|
-
},
|
|
261
|
-
connectionId?: string;
|
|
262
|
-
sessionId?: string;
|
|
263
|
-
userId?: string;
|
|
264
|
-
broadcast?: boolean;
|
|
265
|
-
type?: "remote_result";
|
|
266
|
-
result?: any;
|
|
267
|
-
taskId?: string | number;
|
|
268
|
-
}, {
|
|
269
|
-
connectionId?: string;
|
|
270
|
-
sessionId?: string;
|
|
271
|
-
userId?: string;
|
|
272
|
-
broadcast?: boolean;
|
|
273
|
-
type?: "remote_result";
|
|
274
|
-
result?: any;
|
|
275
|
-
taskId?: string | number;
|
|
276
|
-
}>, z.ZodObject<{
|
|
155
|
+
taskId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
156
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
277
157
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
278
158
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
279
159
|
userId: z.ZodOptional<z.ZodString>;
|
|
280
160
|
broadcast: z.ZodOptional<z.ZodBoolean>;
|
|
281
161
|
type: z.ZodLiteral<"remote_error">;
|
|
282
162
|
error: z.ZodAny;
|
|
283
|
-
taskId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
284
|
-
},
|
|
285
|
-
connectionId?: string;
|
|
286
|
-
sessionId?: string;
|
|
287
|
-
userId?: string;
|
|
288
|
-
broadcast?: boolean;
|
|
289
|
-
type?: "remote_error";
|
|
290
|
-
error?: any;
|
|
291
|
-
taskId?: string | number;
|
|
292
|
-
}, {
|
|
293
|
-
connectionId?: string;
|
|
294
|
-
sessionId?: string;
|
|
295
|
-
userId?: string;
|
|
296
|
-
broadcast?: boolean;
|
|
297
|
-
type?: "remote_error";
|
|
298
|
-
error?: any;
|
|
299
|
-
taskId?: string | number;
|
|
300
|
-
}>]>;
|
|
163
|
+
taskId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
164
|
+
}, z.core.$strip>], "type">;
|
|
301
165
|
/**
|
|
302
166
|
* An event that is used to respond to remote actions with some arbitrary data.
|
|
303
167
|
*/
|
|
@@ -319,39 +183,13 @@ export interface DeviceActionResult extends Action {
|
|
|
319
183
|
export declare const deviceActionResultSchema: z.ZodObject<{
|
|
320
184
|
type: z.ZodLiteral<"device_result">;
|
|
321
185
|
result: z.ZodAny;
|
|
322
|
-
taskId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
186
|
+
taskId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
323
187
|
connection: z.ZodObject<{
|
|
324
188
|
connectionId: z.ZodString;
|
|
325
189
|
sessionId: z.ZodString;
|
|
326
190
|
userId: z.ZodString;
|
|
327
|
-
},
|
|
328
|
-
|
|
329
|
-
sessionId?: string;
|
|
330
|
-
userId?: string;
|
|
331
|
-
}, {
|
|
332
|
-
connectionId?: string;
|
|
333
|
-
sessionId?: string;
|
|
334
|
-
userId?: string;
|
|
335
|
-
}>;
|
|
336
|
-
}, "strip", z.ZodTypeAny, {
|
|
337
|
-
type?: "device_result";
|
|
338
|
-
result?: any;
|
|
339
|
-
taskId?: string | number;
|
|
340
|
-
connection?: {
|
|
341
|
-
connectionId?: string;
|
|
342
|
-
sessionId?: string;
|
|
343
|
-
userId?: string;
|
|
344
|
-
};
|
|
345
|
-
}, {
|
|
346
|
-
type?: "device_result";
|
|
347
|
-
result?: any;
|
|
348
|
-
taskId?: string | number;
|
|
349
|
-
connection?: {
|
|
350
|
-
connectionId?: string;
|
|
351
|
-
sessionId?: string;
|
|
352
|
-
userId?: string;
|
|
353
|
-
};
|
|
354
|
-
}>;
|
|
191
|
+
}, z.core.$strip>;
|
|
192
|
+
}, z.core.$strip>;
|
|
355
193
|
/**
|
|
356
194
|
* An event that is used to respond to remote actions with an error.
|
|
357
195
|
*/
|
|
@@ -373,146 +211,42 @@ export interface DeviceActionError extends Action {
|
|
|
373
211
|
export declare const deviceActionErrorSchema: z.ZodObject<{
|
|
374
212
|
type: z.ZodLiteral<"device_error">;
|
|
375
213
|
error: z.ZodAny;
|
|
376
|
-
taskId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
214
|
+
taskId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
377
215
|
connection: z.ZodObject<{
|
|
378
216
|
connectionId: z.ZodString;
|
|
379
217
|
sessionId: z.ZodString;
|
|
380
218
|
userId: z.ZodString;
|
|
381
|
-
},
|
|
382
|
-
|
|
383
|
-
sessionId?: string;
|
|
384
|
-
userId?: string;
|
|
385
|
-
}, {
|
|
386
|
-
connectionId?: string;
|
|
387
|
-
sessionId?: string;
|
|
388
|
-
userId?: string;
|
|
389
|
-
}>;
|
|
390
|
-
}, "strip", z.ZodTypeAny, {
|
|
391
|
-
type?: "device_error";
|
|
392
|
-
error?: any;
|
|
393
|
-
taskId?: string | number;
|
|
394
|
-
connection?: {
|
|
395
|
-
connectionId?: string;
|
|
396
|
-
sessionId?: string;
|
|
397
|
-
userId?: string;
|
|
398
|
-
};
|
|
399
|
-
}, {
|
|
400
|
-
type?: "device_error";
|
|
401
|
-
error?: any;
|
|
402
|
-
taskId?: string | number;
|
|
403
|
-
connection?: {
|
|
404
|
-
connectionId?: string;
|
|
405
|
-
sessionId?: string;
|
|
406
|
-
userId?: string;
|
|
407
|
-
};
|
|
408
|
-
}>;
|
|
219
|
+
}, z.core.$strip>;
|
|
220
|
+
}, z.core.$strip>;
|
|
409
221
|
export type DeviceActions = DeviceAction | DeviceActionResult | DeviceActionError;
|
|
410
|
-
export declare const deviceActionsSchema: z.ZodDiscriminatedUnion<
|
|
222
|
+
export declare const deviceActionsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
411
223
|
type: z.ZodLiteral<"device">;
|
|
412
224
|
connection: z.ZodObject<{
|
|
413
225
|
connectionId: z.ZodString;
|
|
414
226
|
sessionId: z.ZodString;
|
|
415
227
|
userId: z.ZodString;
|
|
416
|
-
},
|
|
417
|
-
connectionId?: string;
|
|
418
|
-
sessionId?: string;
|
|
419
|
-
userId?: string;
|
|
420
|
-
}, {
|
|
421
|
-
connectionId?: string;
|
|
422
|
-
sessionId?: string;
|
|
423
|
-
userId?: string;
|
|
424
|
-
}>;
|
|
228
|
+
}, z.core.$strip>;
|
|
425
229
|
event: z.ZodAny;
|
|
426
|
-
taskId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
427
|
-
},
|
|
428
|
-
type?: "device";
|
|
429
|
-
connection?: {
|
|
430
|
-
connectionId?: string;
|
|
431
|
-
sessionId?: string;
|
|
432
|
-
userId?: string;
|
|
433
|
-
};
|
|
434
|
-
event?: any;
|
|
435
|
-
taskId?: string | number;
|
|
436
|
-
}, {
|
|
437
|
-
type?: "device";
|
|
438
|
-
connection?: {
|
|
439
|
-
connectionId?: string;
|
|
440
|
-
sessionId?: string;
|
|
441
|
-
userId?: string;
|
|
442
|
-
};
|
|
443
|
-
event?: any;
|
|
444
|
-
taskId?: string | number;
|
|
445
|
-
}>, z.ZodObject<{
|
|
230
|
+
taskId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
231
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
446
232
|
type: z.ZodLiteral<"device_result">;
|
|
447
233
|
result: z.ZodAny;
|
|
448
|
-
taskId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
234
|
+
taskId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
449
235
|
connection: z.ZodObject<{
|
|
450
236
|
connectionId: z.ZodString;
|
|
451
237
|
sessionId: z.ZodString;
|
|
452
238
|
userId: z.ZodString;
|
|
453
|
-
},
|
|
454
|
-
|
|
455
|
-
sessionId?: string;
|
|
456
|
-
userId?: string;
|
|
457
|
-
}, {
|
|
458
|
-
connectionId?: string;
|
|
459
|
-
sessionId?: string;
|
|
460
|
-
userId?: string;
|
|
461
|
-
}>;
|
|
462
|
-
}, "strip", z.ZodTypeAny, {
|
|
463
|
-
type?: "device_result";
|
|
464
|
-
result?: any;
|
|
465
|
-
taskId?: string | number;
|
|
466
|
-
connection?: {
|
|
467
|
-
connectionId?: string;
|
|
468
|
-
sessionId?: string;
|
|
469
|
-
userId?: string;
|
|
470
|
-
};
|
|
471
|
-
}, {
|
|
472
|
-
type?: "device_result";
|
|
473
|
-
result?: any;
|
|
474
|
-
taskId?: string | number;
|
|
475
|
-
connection?: {
|
|
476
|
-
connectionId?: string;
|
|
477
|
-
sessionId?: string;
|
|
478
|
-
userId?: string;
|
|
479
|
-
};
|
|
480
|
-
}>, z.ZodObject<{
|
|
239
|
+
}, z.core.$strip>;
|
|
240
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
481
241
|
type: z.ZodLiteral<"device_error">;
|
|
482
242
|
error: z.ZodAny;
|
|
483
|
-
taskId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
243
|
+
taskId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
484
244
|
connection: z.ZodObject<{
|
|
485
245
|
connectionId: z.ZodString;
|
|
486
246
|
sessionId: z.ZodString;
|
|
487
247
|
userId: z.ZodString;
|
|
488
|
-
},
|
|
489
|
-
|
|
490
|
-
sessionId?: string;
|
|
491
|
-
userId?: string;
|
|
492
|
-
}, {
|
|
493
|
-
connectionId?: string;
|
|
494
|
-
sessionId?: string;
|
|
495
|
-
userId?: string;
|
|
496
|
-
}>;
|
|
497
|
-
}, "strip", z.ZodTypeAny, {
|
|
498
|
-
type?: "device_error";
|
|
499
|
-
error?: any;
|
|
500
|
-
taskId?: string | number;
|
|
501
|
-
connection?: {
|
|
502
|
-
connectionId?: string;
|
|
503
|
-
sessionId?: string;
|
|
504
|
-
userId?: string;
|
|
505
|
-
};
|
|
506
|
-
}, {
|
|
507
|
-
type?: "device_error";
|
|
508
|
-
error?: any;
|
|
509
|
-
taskId?: string | number;
|
|
510
|
-
connection?: {
|
|
511
|
-
connectionId?: string;
|
|
512
|
-
sessionId?: string;
|
|
513
|
-
userId?: string;
|
|
514
|
-
};
|
|
515
|
-
}>]>;
|
|
248
|
+
}, z.core.$strip>;
|
|
249
|
+
}, z.core.$strip>], "type">;
|
|
516
250
|
/**
|
|
517
251
|
* Creates a new remote event.
|
|
518
252
|
* @param event The event.
|
package/common/Version.d.ts
CHANGED
|
@@ -1,4 +1,23 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface SimpleVersionNumber {
|
|
2
|
+
/**
|
|
3
|
+
* The major version of the package.
|
|
4
|
+
*/
|
|
5
|
+
major: number;
|
|
6
|
+
/**
|
|
7
|
+
* The minor version of the package.
|
|
8
|
+
*/
|
|
9
|
+
minor: number;
|
|
10
|
+
/**
|
|
11
|
+
* The patch version of the package.
|
|
12
|
+
*/
|
|
13
|
+
patch: number;
|
|
14
|
+
/**
|
|
15
|
+
* The pre-release version of the package.
|
|
16
|
+
* If empty or null, then this is a stable release.
|
|
17
|
+
*/
|
|
18
|
+
tag: string | null;
|
|
19
|
+
}
|
|
20
|
+
export interface VersionNumber extends SimpleVersionNumber {
|
|
2
21
|
version: string | null;
|
|
3
22
|
major: number | null;
|
|
4
23
|
minor: number | null;
|
|
@@ -11,6 +30,11 @@ export interface VersionNumber {
|
|
|
11
30
|
* @param version The version number.
|
|
12
31
|
*/
|
|
13
32
|
export declare function parseVersionNumber(version: string | null | undefined): VersionNumber;
|
|
33
|
+
/**
|
|
34
|
+
* Formats the given version as a string.
|
|
35
|
+
* @param version The version.
|
|
36
|
+
*/
|
|
37
|
+
export declare function formatVersion(version: SimpleVersionNumber): string;
|
|
14
38
|
/**
|
|
15
39
|
* Formats the given version number.
|
|
16
40
|
* @param major The major version number.
|
|
@@ -19,4 +43,14 @@ export declare function parseVersionNumber(version: string | null | undefined):
|
|
|
19
43
|
* @param tag The tag of the version number.
|
|
20
44
|
*/
|
|
21
45
|
export declare function formatVersionNumber(major: number, minor: number, patch: number, tag: string): string;
|
|
46
|
+
/**
|
|
47
|
+
* Compares two version numbers.
|
|
48
|
+
*
|
|
49
|
+
* Returns -1 if the first version is less than the second,
|
|
50
|
+
* 1 if the first version is greater than the second,
|
|
51
|
+
* and 0 if they are equal.
|
|
52
|
+
* @param first The first version number.
|
|
53
|
+
* @param second The second version number.
|
|
54
|
+
*/
|
|
55
|
+
export declare function compareVersions(first: SimpleVersionNumber, second: SimpleVersionNumber): number;
|
|
22
56
|
//# sourceMappingURL=Version.d.ts.map
|
package/common/Version.js
CHANGED
|
@@ -21,7 +21,6 @@ import { hasValue } from '../bots';
|
|
|
21
21
|
* @param version The version number.
|
|
22
22
|
*/
|
|
23
23
|
export function parseVersionNumber(version) {
|
|
24
|
-
var _a;
|
|
25
24
|
if (!version) {
|
|
26
25
|
return {
|
|
27
26
|
version: null,
|
|
@@ -59,9 +58,16 @@ export function parseVersionNumber(version) {
|
|
|
59
58
|
minor: parseInt(minor),
|
|
60
59
|
patch: parseInt(patch),
|
|
61
60
|
alpha,
|
|
62
|
-
tag:
|
|
61
|
+
tag: prerelease?.substring(1) ?? null,
|
|
63
62
|
};
|
|
64
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* Formats the given version as a string.
|
|
66
|
+
* @param version The version.
|
|
67
|
+
*/
|
|
68
|
+
export function formatVersion(version) {
|
|
69
|
+
return formatVersionNumber(version.major, version.minor, version.patch, version.tag ?? '');
|
|
70
|
+
}
|
|
65
71
|
/**
|
|
66
72
|
* Formats the given version number.
|
|
67
73
|
* @param major The major version number.
|
|
@@ -72,4 +78,46 @@ export function parseVersionNumber(version) {
|
|
|
72
78
|
export function formatVersionNumber(major, minor, patch, tag) {
|
|
73
79
|
return `v${major}.${minor}.${patch}${tag ? `-${tag}` : ''}`;
|
|
74
80
|
}
|
|
81
|
+
/**
|
|
82
|
+
* Compares two version numbers.
|
|
83
|
+
*
|
|
84
|
+
* Returns -1 if the first version is less than the second,
|
|
85
|
+
* 1 if the first version is greater than the second,
|
|
86
|
+
* and 0 if they are equal.
|
|
87
|
+
* @param first The first version number.
|
|
88
|
+
* @param second The second version number.
|
|
89
|
+
*/
|
|
90
|
+
export function compareVersions(first, second) {
|
|
91
|
+
if (first.major < second.major) {
|
|
92
|
+
return -1;
|
|
93
|
+
}
|
|
94
|
+
else if (first.major > second.major) {
|
|
95
|
+
return 1;
|
|
96
|
+
}
|
|
97
|
+
else if (first.minor < second.minor) {
|
|
98
|
+
return -1;
|
|
99
|
+
}
|
|
100
|
+
else if (first.minor > second.minor) {
|
|
101
|
+
return 1;
|
|
102
|
+
}
|
|
103
|
+
else if (first.patch < second.patch) {
|
|
104
|
+
return -1;
|
|
105
|
+
}
|
|
106
|
+
else if (first.patch > second.patch) {
|
|
107
|
+
return 1;
|
|
108
|
+
}
|
|
109
|
+
else if (first.tag === null && second.tag !== null) {
|
|
110
|
+
// tagless versions are newer than tagged versions
|
|
111
|
+
return 1;
|
|
112
|
+
}
|
|
113
|
+
else if (first.tag !== null && second.tag === null) {
|
|
114
|
+
return -1;
|
|
115
|
+
}
|
|
116
|
+
else if (first.tag !== null && second.tag !== null) {
|
|
117
|
+
return first.tag.localeCompare(second.tag);
|
|
118
|
+
}
|
|
119
|
+
else {
|
|
120
|
+
return 0;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
75
123
|
//# sourceMappingURL=Version.js.map
|