@casual-simulation/aux-common 3.8.2-alpha.19511653187 → 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.
Files changed (86) hide show
  1. package/BlobPolyfill.js +1 -1
  2. package/BlobPolyfill.js.map +1 -1
  3. package/README.md +493 -26
  4. package/bots/BotCalculations.js +9 -17
  5. package/bots/BotCalculations.js.map +1 -1
  6. package/bots/BotEvents.d.ts +146 -3
  7. package/bots/BotEvents.js +19 -4
  8. package/bots/BotEvents.js.map +1 -1
  9. package/common/ConnectionInfo.d.ts +1 -9
  10. package/common/DenialReason.d.ts +1 -1
  11. package/common/PolicyPermissions.d.ts +866 -754
  12. package/common/PolicyPermissions.js +53 -0
  13. package/common/PolicyPermissions.js.map +1 -1
  14. package/common/RemoteActions.d.ts +33 -299
  15. package/common/Version.d.ts +35 -1
  16. package/common/Version.js +50 -2
  17. package/common/Version.js.map +1 -1
  18. package/common/WebConfig.d.ts +163 -69
  19. package/common/WebConfig.js +86 -23
  20. package/common/WebConfig.js.map +1 -1
  21. package/common/WebManifest.d.ts +27 -0
  22. package/common/WebManifest.js +110 -0
  23. package/common/WebManifest.js.map +1 -0
  24. package/documents/RemoteYjsSharedDocument.js +3 -5
  25. package/documents/RemoteYjsSharedDocument.js.map +1 -1
  26. package/documents/YjsSharedDocument.js +5 -10
  27. package/documents/YjsSharedDocument.js.map +1 -1
  28. package/forms/FormError.js +1 -2
  29. package/forms/FormError.js.map +1 -1
  30. package/http/GenericHttpInterface.d.ts +11 -20
  31. package/http/GenericHttpInterface.js.map +1 -1
  32. package/math/Rotation.js +3 -4
  33. package/math/Rotation.js.map +1 -1
  34. package/package.json +77 -78
  35. package/partitions/AuxPartitionConfig.d.ts +11 -1
  36. package/partitions/AuxPartitionFactories.js +3 -0
  37. package/partitions/AuxPartitionFactories.js.map +1 -1
  38. package/partitions/MemoryPartition.js +5 -7
  39. package/partitions/MemoryPartition.js.map +1 -1
  40. package/partitions/OtherPlayersPartition.js +4 -8
  41. package/partitions/OtherPlayersPartition.js.map +1 -1
  42. package/partitions/PartitionAuthSource.js +2 -4
  43. package/partitions/PartitionAuthSource.js.map +1 -1
  44. package/partitions/PartitionUtils.d.ts +12 -0
  45. package/partitions/PartitionUtils.js +65 -6
  46. package/partitions/PartitionUtils.js.map +1 -1
  47. package/partitions/RemoteYjsPartition.d.ts +1 -0
  48. package/partitions/RemoteYjsPartition.js +39 -6
  49. package/partitions/RemoteYjsPartition.js.map +1 -1
  50. package/partitions/YjsPartition.d.ts +2 -1
  51. package/partitions/YjsPartition.js +46 -28
  52. package/partitions/YjsPartition.js.map +1 -1
  53. package/records/AccountBalance.d.ts +82 -0
  54. package/records/AccountBalance.js +63 -0
  55. package/records/AccountBalance.js.map +1 -0
  56. package/records/AuthUtils.js +7 -7
  57. package/records/AuthUtils.js.map +1 -1
  58. package/records/RecordKeys.js +2 -3
  59. package/records/RecordKeys.js.map +1 -1
  60. package/records/index.d.ts +1 -0
  61. package/records/index.js +1 -0
  62. package/records/index.js.map +1 -1
  63. package/rpc/ErrorCodes.d.ts +1 -1
  64. package/rpc/ErrorCodes.js +3 -3
  65. package/rpc/ErrorCodes.js.map +1 -1
  66. package/rpc/GenericRPCInterface.d.ts +56 -13
  67. package/rpc/GenericRPCInterface.js +87 -55
  68. package/rpc/GenericRPCInterface.js.map +1 -1
  69. package/rpc/Result.d.ts +4 -1
  70. package/rpc/Result.js +21 -13
  71. package/rpc/Result.js.map +1 -1
  72. package/utils.d.ts +1 -1
  73. package/utils.js +6 -4
  74. package/utils.js.map +1 -1
  75. package/websockets/InstRecordsClient.js +6 -7
  76. package/websockets/InstRecordsClient.js.map +1 -1
  77. package/websockets/Utils.js +3 -3
  78. package/websockets/Utils.js.map +1 -1
  79. package/websockets/WebsocketEvents.d.ts +246 -997
  80. package/websockets/WebsocketEvents.js +3 -3
  81. package/websockets/WebsocketEvents.js.map +1 -1
  82. package/yjs/YjsHelpers.d.ts +9 -0
  83. package/yjs/YjsHelpers.js +28 -1
  84. package/yjs/YjsHelpers.js.map +1 -1
  85. package/yjs/YjsIndexedDBPersistence.js +2 -3
  86. package/yjs/YjsIndexedDBPersistence.js.map +1 -1
@@ -2,7 +2,6 @@ import type { AuthorizeActionMissingPermission, DenialReason } from '../common/D
2
2
  import type { NotSupportedError, ServerError } from '../Errors';
3
3
  import type { ConnectionInfo } from '../common/ConnectionInfo';
4
4
  import type { RemoteAction, DeviceAction, DeviceActionResult, RemoteActionResult, RemoteActionError, DeviceActionError } from '../common/RemoteActions';
5
- import type { ZodIssue } from 'zod';
6
5
  import { z } from 'zod';
7
6
  import type { GenericHttpRequest, GenericHttpResponse } from '../http/GenericHttpInterface';
8
7
  import type { PublicUserInfo, ResourceKinds, SubjectType } from '../common';
@@ -26,7 +25,7 @@ export declare enum WebsocketEventTypes {
26
25
  DownloadRequest = 4,
27
26
  Error = 5
28
27
  }
29
- export declare const websocketEventSchema: z.ZodTuple<[z.ZodNativeEnum<typeof WebsocketEventTypes>, z.ZodNumber], z.ZodAny>;
28
+ export declare const websocketEventSchema: z.ZodTuple<[z.ZodEnum<typeof WebsocketEventTypes>, z.ZodNumber], z.ZodAny>;
30
29
  /**
31
30
  * Defines a websocket event that contains a message.
32
31
  */
@@ -86,7 +85,7 @@ export interface WebsocketErrorInfo {
86
85
  /**
87
86
  * The list of parsing issues that occurred.
88
87
  */
89
- issues?: ZodIssue[];
88
+ issues?: z.core.$ZodIssue[];
90
89
  /**
91
90
  * The authorization denial reason.
92
91
  */
@@ -95,19 +94,9 @@ export interface WebsocketErrorInfo {
95
94
  export declare const websocketErrorInfoSchema: z.ZodObject<{
96
95
  errorCode: z.ZodString;
97
96
  errorMessage: z.ZodString;
98
- issues: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
97
+ issues: z.ZodOptional<z.ZodArray<z.ZodAny>>;
99
98
  reason: z.ZodOptional<z.ZodAny>;
100
- }, "strip", z.ZodTypeAny, {
101
- errorCode?: string;
102
- errorMessage?: string;
103
- issues?: any[];
104
- reason?: any;
105
- }, {
106
- errorCode?: string;
107
- errorMessage?: string;
108
- issues?: any[];
109
- reason?: any;
110
- }>;
99
+ }, z.core.$strip>;
111
100
  /**
112
101
  * Defines a websocket event that contains a response to an upload request.
113
102
  */
@@ -119,19 +108,9 @@ export type WebsocketErrorEvent = [
119
108
  export declare const websocketErrorEventSchema: z.ZodTuple<[z.ZodLiteral<WebsocketEventTypes.Error>, z.ZodNumber, z.ZodObject<{
120
109
  errorCode: z.ZodString;
121
110
  errorMessage: z.ZodString;
122
- issues: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
111
+ issues: z.ZodOptional<z.ZodArray<z.ZodAny>>;
123
112
  reason: z.ZodOptional<z.ZodAny>;
124
- }, "strip", z.ZodTypeAny, {
125
- errorCode?: string;
126
- errorMessage?: string;
127
- issues?: any[];
128
- reason?: any;
129
- }, {
130
- errorCode?: string;
131
- errorMessage?: string;
132
- issues?: any[];
133
- reason?: any;
134
- }>], null>;
113
+ }, z.core.$strip>], null>;
135
114
  /**
136
115
  * Defines a websocket event that contains a request to download a large message.
137
116
  */
@@ -165,15 +144,7 @@ export declare const loginMessageSchema: z.ZodObject<{
165
144
  type: z.ZodLiteral<"login">;
166
145
  connectionToken: z.ZodOptional<z.ZodString>;
167
146
  connectionId: z.ZodOptional<z.ZodString>;
168
- }, "strip", z.ZodTypeAny, {
169
- type?: "login";
170
- connectionToken?: string;
171
- connectionId?: string;
172
- }, {
173
- type?: "login";
174
- connectionToken?: string;
175
- connectionId?: string;
176
- }>;
147
+ }, z.core.$strip>;
177
148
  /**
178
149
  * Defines a login result message.
179
150
  */
@@ -246,22 +217,8 @@ export declare const watchBranchMessageSchema: z.ZodObject<{
246
217
  inst: z.ZodString;
247
218
  branch: z.ZodString;
248
219
  temporary: z.ZodOptional<z.ZodBoolean>;
249
- markers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
250
- }, "strip", z.ZodTypeAny, {
251
- type?: "repo/watch_branch";
252
- recordName?: string;
253
- inst?: string;
254
- branch?: string;
255
- temporary?: boolean;
256
- markers?: string[];
257
- }, {
258
- type?: "repo/watch_branch";
259
- recordName?: string;
260
- inst?: string;
261
- branch?: string;
262
- temporary?: boolean;
263
- markers?: string[];
264
- }>;
220
+ markers: z.ZodOptional<z.ZodArray<z.ZodString>>;
221
+ }, z.core.$strip>;
265
222
  export type WatchBranchResultMessage = WatchBranchResultSuccessMessage | WatchBranchResultFailureMessage;
266
223
  export interface WatchBranchResultSuccessMessage {
267
224
  type: 'repo/watch_branch_result';
@@ -333,17 +290,7 @@ export declare const unwatchBranchMessageSchema: z.ZodObject<{
333
290
  recordName: z.ZodNullable<z.ZodString>;
334
291
  inst: z.ZodString;
335
292
  branch: z.ZodString;
336
- }, "strip", z.ZodTypeAny, {
337
- type?: "repo/unwatch_branch";
338
- recordName?: string;
339
- inst?: string;
340
- branch?: string;
341
- }, {
342
- type?: "repo/unwatch_branch";
343
- recordName?: string;
344
- inst?: string;
345
- branch?: string;
346
- }>;
293
+ }, z.core.$strip>;
347
294
  /**
348
295
  * Defines an event which indicates that devices connected to a branch should be watched.
349
296
  */
@@ -368,17 +315,7 @@ export declare const watchBranchDevicesMessageSchema: z.ZodObject<{
368
315
  recordName: z.ZodNullable<z.ZodString>;
369
316
  inst: z.ZodString;
370
317
  branch: z.ZodString;
371
- }, "strip", z.ZodTypeAny, {
372
- type?: "repo/watch_branch_devices";
373
- recordName?: string;
374
- inst?: string;
375
- branch?: string;
376
- }, {
377
- type?: "repo/watch_branch_devices";
378
- recordName?: string;
379
- inst?: string;
380
- branch?: string;
381
- }>;
318
+ }, z.core.$strip>;
382
319
  /**
383
320
  * Defines an event which indicates that devices connected to a branch should be no longer be watched.
384
321
  */
@@ -403,17 +340,7 @@ export declare const unwatchBranchDevicesMessageSchema: z.ZodObject<{
403
340
  recordName: z.ZodNullable<z.ZodString>;
404
341
  inst: z.ZodString;
405
342
  branch: z.ZodString;
406
- }, "strip", z.ZodTypeAny, {
407
- type?: "repo/unwatch_branch_devices";
408
- recordName?: string;
409
- inst?: string;
410
- branch?: string;
411
- }, {
412
- type?: "repo/unwatch_branch_devices";
413
- recordName?: string;
414
- inst?: string;
415
- branch?: string;
416
- }>;
343
+ }, z.core.$strip>;
417
344
  /**
418
345
  * Defines an event which indicates that some arbitrary updates should be added for the given branch.
419
346
  * Note that while all branches support both atoms and updates, they do not support mixed usage.
@@ -464,29 +391,11 @@ export declare const addUpdatesMessageSchema: z.ZodObject<{
464
391
  recordName: z.ZodNullable<z.ZodString>;
465
392
  inst: z.ZodString;
466
393
  branch: z.ZodString;
467
- updates: z.ZodArray<z.ZodString, "many">;
394
+ updates: z.ZodArray<z.ZodString>;
468
395
  updateId: z.ZodOptional<z.ZodNumber>;
469
396
  initial: z.ZodOptional<z.ZodBoolean>;
470
- timestamps: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
471
- }, "strip", z.ZodTypeAny, {
472
- type?: "repo/add_updates";
473
- recordName?: string;
474
- inst?: string;
475
- branch?: string;
476
- updates?: string[];
477
- updateId?: number;
478
- initial?: boolean;
479
- timestamps?: number[];
480
- }, {
481
- type?: "repo/add_updates";
482
- recordName?: string;
483
- inst?: string;
484
- branch?: string;
485
- updates?: string[];
486
- updateId?: number;
487
- initial?: boolean;
488
- timestamps?: number[];
489
- }>;
397
+ timestamps: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
398
+ }, z.core.$strip>;
490
399
  /**
491
400
  * Defines an event which indicates that the updates for the given branch should be retrieved.
492
401
  */
@@ -511,17 +420,7 @@ export declare const getUpdatesMessageSchema: z.ZodObject<{
511
420
  recordName: z.ZodNullable<z.ZodString>;
512
421
  inst: z.ZodString;
513
422
  branch: z.ZodString;
514
- }, "strip", z.ZodTypeAny, {
515
- type?: "repo/get_updates";
516
- recordName?: string;
517
- inst?: string;
518
- branch?: string;
519
- }, {
520
- type?: "repo/get_updates";
521
- recordName?: string;
522
- inst?: string;
523
- branch?: string;
524
- }>;
423
+ }, z.core.$strip>;
525
424
  /**
526
425
  * Defines an event which indicates that an HTTP request should be made.
527
426
  */
@@ -540,50 +439,14 @@ export declare const websocketHttpRequestMessageSchema: z.ZodObject<{
540
439
  type: z.ZodLiteral<"http_request">;
541
440
  request: z.ZodObject<{
542
441
  path: z.ZodString;
543
- pathParams: z.ZodObject<{}, "strip", z.ZodString, z.objectOutputType<{}, z.ZodString, "strip">, z.objectInputType<{}, z.ZodString, "strip">>;
544
- method: z.ZodUnion<[z.ZodLiteral<"GET">, z.ZodLiteral<"POST">, z.ZodLiteral<"PUT">, z.ZodLiteral<"DELETE">, z.ZodLiteral<"HEAD">, z.ZodLiteral<"OPTIONS">]>;
545
- query: z.ZodObject<{}, "strip", z.ZodString, z.objectOutputType<{}, z.ZodString, "strip">, z.objectInputType<{}, z.ZodString, "strip">>;
546
- headers: z.ZodObject<{}, "strip", z.ZodString, z.objectOutputType<{}, z.ZodString, "strip">, z.objectInputType<{}, z.ZodString, "strip">>;
547
- body: z.ZodUnion<[z.ZodString, z.ZodNull]>;
548
- }, "strip", z.ZodTypeAny, {
549
- path?: string;
550
- pathParams?: z.objectOutputType<{}, z.ZodString, "strip">;
551
- method?: "GET" | "POST" | "PUT" | "DELETE" | "HEAD" | "OPTIONS";
552
- query?: z.objectOutputType<{}, z.ZodString, "strip">;
553
- headers?: z.objectOutputType<{}, z.ZodString, "strip">;
554
- body?: string;
555
- }, {
556
- path?: string;
557
- pathParams?: z.objectInputType<{}, z.ZodString, "strip">;
558
- method?: "GET" | "POST" | "PUT" | "DELETE" | "HEAD" | "OPTIONS";
559
- query?: z.objectInputType<{}, z.ZodString, "strip">;
560
- headers?: z.objectInputType<{}, z.ZodString, "strip">;
561
- body?: string;
562
- }>;
442
+ pathParams: z.ZodObject<{}, z.core.$catchall<z.ZodString>>;
443
+ method: z.ZodUnion<readonly [z.ZodLiteral<"GET">, z.ZodLiteral<"POST">, z.ZodLiteral<"PUT">, z.ZodLiteral<"DELETE">, z.ZodLiteral<"HEAD">, z.ZodLiteral<"OPTIONS">]>;
444
+ query: z.ZodObject<{}, z.core.$catchall<z.ZodString>>;
445
+ headers: z.ZodObject<{}, z.core.$catchall<z.ZodString>>;
446
+ body: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
447
+ }, z.core.$strip>;
563
448
  id: z.ZodNumber;
564
- }, "strip", z.ZodTypeAny, {
565
- type?: "http_request";
566
- request?: {
567
- path?: string;
568
- pathParams?: z.objectOutputType<{}, z.ZodString, "strip">;
569
- method?: "GET" | "POST" | "PUT" | "DELETE" | "HEAD" | "OPTIONS";
570
- query?: z.objectOutputType<{}, z.ZodString, "strip">;
571
- headers?: z.objectOutputType<{}, z.ZodString, "strip">;
572
- body?: string;
573
- };
574
- id?: number;
575
- }, {
576
- type?: "http_request";
577
- request?: {
578
- path?: string;
579
- pathParams?: z.objectInputType<{}, z.ZodString, "strip">;
580
- method?: "GET" | "POST" | "PUT" | "DELETE" | "HEAD" | "OPTIONS";
581
- query?: z.objectInputType<{}, z.ZodString, "strip">;
582
- headers?: z.objectInputType<{}, z.ZodString, "strip">;
583
- body?: string;
584
- };
585
- id?: number;
586
- }>;
449
+ }, z.core.$strip>;
587
450
  export interface WebsocketHttpResponseMessage {
588
451
  type: 'http_response';
589
452
  /**
@@ -659,28 +522,14 @@ export declare const updatesReceivedMessageSchema: z.ZodObject<{
659
522
  inst: z.ZodString;
660
523
  branch: z.ZodString;
661
524
  updateId: z.ZodNumber;
662
- errorCode: z.ZodOptional<z.ZodEnum<["max_size_reached", "record_not_found", "inst_not_found"]>>;
525
+ errorCode: z.ZodOptional<z.ZodEnum<{
526
+ record_not_found: "record_not_found";
527
+ inst_not_found: "inst_not_found";
528
+ max_size_reached: "max_size_reached";
529
+ }>>;
663
530
  maxBranchSizeInBytes: z.ZodOptional<z.ZodNumber>;
664
531
  neededBranchSizeInBytes: z.ZodOptional<z.ZodNumber>;
665
- }, "strip", z.ZodTypeAny, {
666
- type?: "repo/updates_received";
667
- recordName?: string;
668
- inst?: string;
669
- branch?: string;
670
- updateId?: number;
671
- errorCode?: "record_not_found" | "inst_not_found" | "max_size_reached";
672
- maxBranchSizeInBytes?: number;
673
- neededBranchSizeInBytes?: number;
674
- }, {
675
- type?: "repo/updates_received";
676
- recordName?: string;
677
- inst?: string;
678
- branch?: string;
679
- updateId?: number;
680
- errorCode?: "record_not_found" | "inst_not_found" | "max_size_reached";
681
- maxBranchSizeInBytes?: number;
682
- neededBranchSizeInBytes?: number;
683
- }>;
532
+ }, z.core.$strip>;
684
533
  /**
685
534
  * Sends the given remote action to devices connected to the given branch.
686
535
  */
@@ -709,7 +558,7 @@ export declare const sendActionMessageSchema: z.ZodObject<{
709
558
  recordName: z.ZodNullable<z.ZodString>;
710
559
  inst: z.ZodString;
711
560
  branch: z.ZodString;
712
- action: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
561
+ action: z.ZodDiscriminatedUnion<[z.ZodObject<{
713
562
  connectionId: z.ZodOptional<z.ZodString>;
714
563
  sessionId: z.ZodOptional<z.ZodString>;
715
564
  userId: z.ZodOptional<z.ZodString>;
@@ -717,137 +566,25 @@ export declare const sendActionMessageSchema: z.ZodObject<{
717
566
  type: z.ZodLiteral<"remote">;
718
567
  event: z.ZodAny;
719
568
  allowBatching: z.ZodOptional<z.ZodBoolean>;
720
- taskId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
721
- }, "strip", z.ZodTypeAny, {
722
- connectionId?: string;
723
- sessionId?: string;
724
- userId?: string;
725
- broadcast?: boolean;
726
- type?: "remote";
727
- event?: any;
728
- allowBatching?: boolean;
729
- taskId?: string | number;
730
- }, {
731
- connectionId?: string;
732
- sessionId?: string;
733
- userId?: string;
734
- broadcast?: boolean;
735
- type?: "remote";
736
- event?: any;
737
- allowBatching?: boolean;
738
- taskId?: string | number;
739
- }>, z.ZodObject<{
569
+ taskId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
570
+ }, z.core.$strip>, z.ZodObject<{
740
571
  connectionId: z.ZodOptional<z.ZodString>;
741
572
  sessionId: z.ZodOptional<z.ZodString>;
742
573
  userId: z.ZodOptional<z.ZodString>;
743
574
  broadcast: z.ZodOptional<z.ZodBoolean>;
744
575
  type: z.ZodLiteral<"remote_result">;
745
576
  result: z.ZodOptional<z.ZodAny>;
746
- taskId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
747
- }, "strip", z.ZodTypeAny, {
748
- connectionId?: string;
749
- sessionId?: string;
750
- userId?: string;
751
- broadcast?: boolean;
752
- type?: "remote_result";
753
- result?: any;
754
- taskId?: string | number;
755
- }, {
756
- connectionId?: string;
757
- sessionId?: string;
758
- userId?: string;
759
- broadcast?: boolean;
760
- type?: "remote_result";
761
- result?: any;
762
- taskId?: string | number;
763
- }>, z.ZodObject<{
577
+ taskId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
578
+ }, z.core.$strip>, z.ZodObject<{
764
579
  connectionId: z.ZodOptional<z.ZodString>;
765
580
  sessionId: z.ZodOptional<z.ZodString>;
766
581
  userId: z.ZodOptional<z.ZodString>;
767
582
  broadcast: z.ZodOptional<z.ZodBoolean>;
768
583
  type: z.ZodLiteral<"remote_error">;
769
584
  error: z.ZodAny;
770
- taskId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
771
- }, "strip", z.ZodTypeAny, {
772
- connectionId?: string;
773
- sessionId?: string;
774
- userId?: string;
775
- broadcast?: boolean;
776
- type?: "remote_error";
777
- error?: any;
778
- taskId?: string | number;
779
- }, {
780
- connectionId?: string;
781
- sessionId?: string;
782
- userId?: string;
783
- broadcast?: boolean;
784
- type?: "remote_error";
785
- error?: any;
786
- taskId?: string | number;
787
- }>]>;
788
- }, "strip", z.ZodTypeAny, {
789
- type?: "repo/send_action";
790
- recordName?: string;
791
- inst?: string;
792
- branch?: string;
793
- action?: {
794
- connectionId?: string;
795
- sessionId?: string;
796
- userId?: string;
797
- broadcast?: boolean;
798
- type?: "remote";
799
- event?: any;
800
- allowBatching?: boolean;
801
- taskId?: string | number;
802
- } | {
803
- connectionId?: string;
804
- sessionId?: string;
805
- userId?: string;
806
- broadcast?: boolean;
807
- type?: "remote_result";
808
- result?: any;
809
- taskId?: string | number;
810
- } | {
811
- connectionId?: string;
812
- sessionId?: string;
813
- userId?: string;
814
- broadcast?: boolean;
815
- type?: "remote_error";
816
- error?: any;
817
- taskId?: string | number;
818
- };
819
- }, {
820
- type?: "repo/send_action";
821
- recordName?: string;
822
- inst?: string;
823
- branch?: string;
824
- action?: {
825
- connectionId?: string;
826
- sessionId?: string;
827
- userId?: string;
828
- broadcast?: boolean;
829
- type?: "remote";
830
- event?: any;
831
- allowBatching?: boolean;
832
- taskId?: string | number;
833
- } | {
834
- connectionId?: string;
835
- sessionId?: string;
836
- userId?: string;
837
- broadcast?: boolean;
838
- type?: "remote_result";
839
- result?: any;
840
- taskId?: string | number;
841
- } | {
842
- connectionId?: string;
843
- sessionId?: string;
844
- userId?: string;
845
- broadcast?: boolean;
846
- type?: "remote_error";
847
- error?: any;
848
- taskId?: string | number;
849
- };
850
- }>;
585
+ taskId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
586
+ }, z.core.$strip>], "type">;
587
+ }, z.core.$strip>;
851
588
  /**
852
589
  * Sends the given device action to devices connected to the given branch.
853
590
  */
@@ -876,179 +613,35 @@ export declare const receiveDeviceActionMessageSchema: z.ZodObject<{
876
613
  recordName: z.ZodNullable<z.ZodString>;
877
614
  inst: z.ZodString;
878
615
  branch: z.ZodString;
879
- action: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
616
+ action: z.ZodDiscriminatedUnion<[z.ZodObject<{
880
617
  type: z.ZodLiteral<"device">;
881
618
  connection: z.ZodObject<{
882
619
  connectionId: z.ZodString;
883
620
  sessionId: z.ZodString;
884
621
  userId: z.ZodString;
885
- }, "strip", z.ZodTypeAny, {
886
- connectionId?: string;
887
- sessionId?: string;
888
- userId?: string;
889
- }, {
890
- connectionId?: string;
891
- sessionId?: string;
892
- userId?: string;
893
- }>;
622
+ }, z.core.$strip>;
894
623
  event: z.ZodAny;
895
- taskId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
896
- }, "strip", z.ZodTypeAny, {
897
- type?: "device";
898
- connection?: {
899
- connectionId?: string;
900
- sessionId?: string;
901
- userId?: string;
902
- };
903
- event?: any;
904
- taskId?: string | number;
905
- }, {
906
- type?: "device";
907
- connection?: {
908
- connectionId?: string;
909
- sessionId?: string;
910
- userId?: string;
911
- };
912
- event?: any;
913
- taskId?: string | number;
914
- }>, z.ZodObject<{
624
+ taskId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
625
+ }, z.core.$strip>, z.ZodObject<{
915
626
  type: z.ZodLiteral<"device_result">;
916
627
  result: z.ZodAny;
917
- taskId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
628
+ taskId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
918
629
  connection: z.ZodObject<{
919
630
  connectionId: z.ZodString;
920
631
  sessionId: z.ZodString;
921
632
  userId: z.ZodString;
922
- }, "strip", z.ZodTypeAny, {
923
- connectionId?: string;
924
- sessionId?: string;
925
- userId?: string;
926
- }, {
927
- connectionId?: string;
928
- sessionId?: string;
929
- userId?: string;
930
- }>;
931
- }, "strip", z.ZodTypeAny, {
932
- type?: "device_result";
933
- result?: any;
934
- taskId?: string | number;
935
- connection?: {
936
- connectionId?: string;
937
- sessionId?: string;
938
- userId?: string;
939
- };
940
- }, {
941
- type?: "device_result";
942
- result?: any;
943
- taskId?: string | number;
944
- connection?: {
945
- connectionId?: string;
946
- sessionId?: string;
947
- userId?: string;
948
- };
949
- }>, z.ZodObject<{
633
+ }, z.core.$strip>;
634
+ }, z.core.$strip>, z.ZodObject<{
950
635
  type: z.ZodLiteral<"device_error">;
951
636
  error: z.ZodAny;
952
- taskId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
637
+ taskId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
953
638
  connection: z.ZodObject<{
954
639
  connectionId: z.ZodString;
955
640
  sessionId: z.ZodString;
956
641
  userId: z.ZodString;
957
- }, "strip", z.ZodTypeAny, {
958
- connectionId?: string;
959
- sessionId?: string;
960
- userId?: string;
961
- }, {
962
- connectionId?: string;
963
- sessionId?: string;
964
- userId?: string;
965
- }>;
966
- }, "strip", z.ZodTypeAny, {
967
- type?: "device_error";
968
- error?: any;
969
- taskId?: string | number;
970
- connection?: {
971
- connectionId?: string;
972
- sessionId?: string;
973
- userId?: string;
974
- };
975
- }, {
976
- type?: "device_error";
977
- error?: any;
978
- taskId?: string | number;
979
- connection?: {
980
- connectionId?: string;
981
- sessionId?: string;
982
- userId?: string;
983
- };
984
- }>]>;
985
- }, "strip", z.ZodTypeAny, {
986
- type?: "repo/receive_action";
987
- recordName?: string;
988
- inst?: string;
989
- branch?: string;
990
- action?: {
991
- type?: "device";
992
- connection?: {
993
- connectionId?: string;
994
- sessionId?: string;
995
- userId?: string;
996
- };
997
- event?: any;
998
- taskId?: string | number;
999
- } | {
1000
- type?: "device_result";
1001
- result?: any;
1002
- taskId?: string | number;
1003
- connection?: {
1004
- connectionId?: string;
1005
- sessionId?: string;
1006
- userId?: string;
1007
- };
1008
- } | {
1009
- type?: "device_error";
1010
- error?: any;
1011
- taskId?: string | number;
1012
- connection?: {
1013
- connectionId?: string;
1014
- sessionId?: string;
1015
- userId?: string;
1016
- };
1017
- };
1018
- }, {
1019
- type?: "repo/receive_action";
1020
- recordName?: string;
1021
- inst?: string;
1022
- branch?: string;
1023
- action?: {
1024
- type?: "device";
1025
- connection?: {
1026
- connectionId?: string;
1027
- sessionId?: string;
1028
- userId?: string;
1029
- };
1030
- event?: any;
1031
- taskId?: string | number;
1032
- } | {
1033
- type?: "device_result";
1034
- result?: any;
1035
- taskId?: string | number;
1036
- connection?: {
1037
- connectionId?: string;
1038
- sessionId?: string;
1039
- userId?: string;
1040
- };
1041
- } | {
1042
- type?: "device_error";
1043
- error?: any;
1044
- taskId?: string | number;
1045
- connection?: {
1046
- connectionId?: string;
1047
- sessionId?: string;
1048
- userId?: string;
1049
- };
1050
- };
1051
- }>;
642
+ }, z.core.$strip>;
643
+ }, z.core.$strip>], "type">;
644
+ }, z.core.$strip>;
1052
645
  /**
1053
646
  * Defines an event which indicates that a connection has been made to a branch.
1054
647
  */
@@ -1077,68 +670,14 @@ export declare const connectedToBranchMessageSchema: z.ZodObject<{
1077
670
  inst: z.ZodString;
1078
671
  branch: z.ZodString;
1079
672
  temporary: z.ZodOptional<z.ZodBoolean>;
1080
- markers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1081
- }, "strip", z.ZodTypeAny, {
1082
- type?: "repo/watch_branch";
1083
- recordName?: string;
1084
- inst?: string;
1085
- branch?: string;
1086
- temporary?: boolean;
1087
- markers?: string[];
1088
- }, {
1089
- type?: "repo/watch_branch";
1090
- recordName?: string;
1091
- inst?: string;
1092
- branch?: string;
1093
- temporary?: boolean;
1094
- markers?: string[];
1095
- }>;
673
+ markers: z.ZodOptional<z.ZodArray<z.ZodString>>;
674
+ }, z.core.$strip>;
1096
675
  connection: z.ZodObject<{
1097
676
  connectionId: z.ZodString;
1098
677
  sessionId: z.ZodString;
1099
678
  userId: z.ZodString;
1100
- }, "strip", z.ZodTypeAny, {
1101
- connectionId?: string;
1102
- sessionId?: string;
1103
- userId?: string;
1104
- }, {
1105
- connectionId?: string;
1106
- sessionId?: string;
1107
- userId?: string;
1108
- }>;
1109
- }, "strip", z.ZodTypeAny, {
1110
- type?: "repo/connected_to_branch";
1111
- broadcast?: boolean;
1112
- branch?: {
1113
- type?: "repo/watch_branch";
1114
- recordName?: string;
1115
- inst?: string;
1116
- branch?: string;
1117
- temporary?: boolean;
1118
- markers?: string[];
1119
- };
1120
- connection?: {
1121
- connectionId?: string;
1122
- sessionId?: string;
1123
- userId?: string;
1124
- };
1125
- }, {
1126
- type?: "repo/connected_to_branch";
1127
- broadcast?: boolean;
1128
- branch?: {
1129
- type?: "repo/watch_branch";
1130
- recordName?: string;
1131
- inst?: string;
1132
- branch?: string;
1133
- temporary?: boolean;
1134
- markers?: string[];
1135
- };
1136
- connection?: {
1137
- connectionId?: string;
1138
- sessionId?: string;
1139
- userId?: string;
1140
- };
1141
- }>;
679
+ }, z.core.$strip>;
680
+ }, z.core.$strip>;
1142
681
  /**
1143
682
  * Defines an event which indicates that a connection has been removed from a branch.
1144
683
  */
@@ -1177,38 +716,8 @@ export declare const disconnectedFromBranchMessageSchema: z.ZodObject<{
1177
716
  connectionId: z.ZodString;
1178
717
  sessionId: z.ZodString;
1179
718
  userId: z.ZodString;
1180
- }, "strip", z.ZodTypeAny, {
1181
- connectionId?: string;
1182
- sessionId?: string;
1183
- userId?: string;
1184
- }, {
1185
- connectionId?: string;
1186
- sessionId?: string;
1187
- userId?: string;
1188
- }>;
1189
- }, "strip", z.ZodTypeAny, {
1190
- type?: "repo/disconnected_from_branch";
1191
- broadcast?: boolean;
1192
- recordName?: string;
1193
- inst?: string;
1194
- branch?: string;
1195
- connection?: {
1196
- connectionId?: string;
1197
- sessionId?: string;
1198
- userId?: string;
1199
- };
1200
- }, {
1201
- type?: "repo/disconnected_from_branch";
1202
- broadcast?: boolean;
1203
- recordName?: string;
1204
- inst?: string;
1205
- branch?: string;
1206
- connection?: {
1207
- connectionId?: string;
1208
- sessionId?: string;
1209
- userId?: string;
1210
- };
1211
- }>;
719
+ }, z.core.$strip>;
720
+ }, z.core.$strip>;
1212
721
  export interface ConnectionCountMessage {
1213
722
  type: 'repo/connection_count';
1214
723
  /**
@@ -1237,19 +746,7 @@ export declare const connectionCountMessageSchema: z.ZodObject<{
1237
746
  inst: z.ZodNullable<z.ZodString>;
1238
747
  branch: z.ZodNullable<z.ZodString>;
1239
748
  count: z.ZodOptional<z.ZodNumber>;
1240
- }, "strip", z.ZodTypeAny, {
1241
- type?: "repo/connection_count";
1242
- recordName?: string;
1243
- inst?: string;
1244
- branch?: string;
1245
- count?: number;
1246
- }, {
1247
- type?: "repo/connection_count";
1248
- recordName?: string;
1249
- inst?: string;
1250
- branch?: string;
1251
- count?: number;
1252
- }>;
749
+ }, z.core.$strip>;
1253
750
  /**
1254
751
  * Defines an event which attempts to perform a time sync.
1255
752
  */
@@ -1268,15 +765,7 @@ export declare const timeSyncRequestMessageSchema: z.ZodObject<{
1268
765
  type: z.ZodLiteral<"sync/time">;
1269
766
  id: z.ZodNumber;
1270
767
  clientRequestTime: z.ZodNumber;
1271
- }, "strip", z.ZodTypeAny, {
1272
- type?: "sync/time";
1273
- id?: number;
1274
- clientRequestTime?: number;
1275
- }, {
1276
- type?: "sync/time";
1277
- id?: number;
1278
- clientRequestTime?: number;
1279
- }>;
768
+ }, z.core.$strip>;
1280
769
  /**
1281
770
  * Defines an event which is the response for a time sync.
1282
771
  */
@@ -1305,19 +794,7 @@ export declare const timeSyncResponseMessageSchema: z.ZodObject<{
1305
794
  clientRequestTime: z.ZodNumber;
1306
795
  serverReceiveTime: z.ZodNumber;
1307
796
  serverTransmitTime: z.ZodNumber;
1308
- }, "strip", z.ZodTypeAny, {
1309
- type?: "sync/time/response";
1310
- id?: number;
1311
- clientRequestTime?: number;
1312
- serverReceiveTime?: number;
1313
- serverTransmitTime?: number;
1314
- }, {
1315
- type?: "sync/time/response";
1316
- id?: number;
1317
- clientRequestTime?: number;
1318
- serverReceiveTime?: number;
1319
- serverTransmitTime?: number;
1320
- }>;
797
+ }, z.core.$strip>;
1321
798
  export interface RequestMissingPermissionMessage {
1322
799
  type: 'permission/request/missing';
1323
800
  /**
@@ -1338,51 +815,61 @@ export declare const requestMissingPermissionMessageSchema: z.ZodObject<{
1338
815
  reason: z.ZodObject<{
1339
816
  type: z.ZodLiteral<"missing_permission">;
1340
817
  recordName: z.ZodString;
1341
- resourceKind: z.ZodEnum<["data", "file", "event", "marker", "role", "inst", "loom", "ai.sloyd", "ai.hume", "ai.openai.realtime", "webhook", "notification", "package", "package.version", "search", "database"]>;
818
+ resourceKind: z.ZodEnum<{
819
+ search: "search";
820
+ inst: "inst";
821
+ file: "file";
822
+ event: "event";
823
+ role: "role";
824
+ data: "data";
825
+ marker: "marker";
826
+ loom: "loom";
827
+ "ai.sloyd": "ai.sloyd";
828
+ "ai.hume": "ai.hume";
829
+ "ai.openai.realtime": "ai.openai.realtime";
830
+ webhook: "webhook";
831
+ notification: "notification";
832
+ package: "package";
833
+ "package.version": "package.version";
834
+ database: "database";
835
+ purchasableItem: "purchasableItem";
836
+ contract: "contract";
837
+ invoice: "invoice";
838
+ }>;
1342
839
  resourceId: z.ZodString;
1343
- action: z.ZodEnum<["create", "read", "update", "updateData", "delete", "list", "sendAction", "assign", "unassign", "grant", "revoke", "increment", "count", "grantPermission", "revokePermission", "run", "send", "subscribe", "unsubscribe", "listSubscriptions"]>;
1344
- subjectType: z.ZodEnum<["user", "inst", "role"]>;
840
+ action: z.ZodEnum<{
841
+ run: "run";
842
+ read: "read";
843
+ create: "create";
844
+ update: "update";
845
+ delete: "delete";
846
+ assign: "assign";
847
+ unassign: "unassign";
848
+ increment: "increment";
849
+ count: "count";
850
+ list: "list";
851
+ grantPermission: "grantPermission";
852
+ revokePermission: "revokePermission";
853
+ grant: "grant";
854
+ revoke: "revoke";
855
+ sendAction: "sendAction";
856
+ updateData: "updateData";
857
+ send: "send";
858
+ subscribe: "subscribe";
859
+ unsubscribe: "unsubscribe";
860
+ listSubscriptions: "listSubscriptions";
861
+ purchase: "purchase";
862
+ approve: "approve";
863
+ cancel: "cancel";
864
+ }>;
865
+ subjectType: z.ZodEnum<{
866
+ inst: "inst";
867
+ user: "user";
868
+ role: "role";
869
+ }>;
1345
870
  subjectId: z.ZodString;
1346
- }, "strip", z.ZodTypeAny, {
1347
- type?: "missing_permission";
1348
- recordName?: string;
1349
- resourceKind?: "search" | "inst" | "data" | "event" | "role" | "file" | "marker" | "loom" | "ai.sloyd" | "ai.hume" | "ai.openai.realtime" | "webhook" | "notification" | "package" | "package.version" | "database";
1350
- resourceId?: string;
1351
- action?: "create" | "read" | "update" | "delete" | "assign" | "unassign" | "increment" | "count" | "list" | "grantPermission" | "revokePermission" | "grant" | "revoke" | "sendAction" | "updateData" | "run" | "send" | "subscribe" | "unsubscribe" | "listSubscriptions";
1352
- subjectType?: "inst" | "user" | "role";
1353
- subjectId?: string;
1354
- }, {
1355
- type?: "missing_permission";
1356
- recordName?: string;
1357
- resourceKind?: "search" | "inst" | "data" | "event" | "role" | "file" | "marker" | "loom" | "ai.sloyd" | "ai.hume" | "ai.openai.realtime" | "webhook" | "notification" | "package" | "package.version" | "database";
1358
- resourceId?: string;
1359
- action?: "create" | "read" | "update" | "delete" | "assign" | "unassign" | "increment" | "count" | "list" | "grantPermission" | "revokePermission" | "grant" | "revoke" | "sendAction" | "updateData" | "run" | "send" | "subscribe" | "unsubscribe" | "listSubscriptions";
1360
- subjectType?: "inst" | "user" | "role";
1361
- subjectId?: string;
1362
- }>;
1363
- }, "strip", z.ZodTypeAny, {
1364
- type?: "permission/request/missing";
1365
- reason?: {
1366
- type?: "missing_permission";
1367
- recordName?: string;
1368
- resourceKind?: "search" | "inst" | "data" | "event" | "role" | "file" | "marker" | "loom" | "ai.sloyd" | "ai.hume" | "ai.openai.realtime" | "webhook" | "notification" | "package" | "package.version" | "database";
1369
- resourceId?: string;
1370
- action?: "create" | "read" | "update" | "delete" | "assign" | "unassign" | "increment" | "count" | "list" | "grantPermission" | "revokePermission" | "grant" | "revoke" | "sendAction" | "updateData" | "run" | "send" | "subscribe" | "unsubscribe" | "listSubscriptions";
1371
- subjectType?: "inst" | "user" | "role";
1372
- subjectId?: string;
1373
- };
1374
- }, {
1375
- type?: "permission/request/missing";
1376
- reason?: {
1377
- type?: "missing_permission";
1378
- recordName?: string;
1379
- resourceKind?: "search" | "inst" | "data" | "event" | "role" | "file" | "marker" | "loom" | "ai.sloyd" | "ai.hume" | "ai.openai.realtime" | "webhook" | "notification" | "package" | "package.version" | "database";
1380
- resourceId?: string;
1381
- action?: "create" | "read" | "update" | "delete" | "assign" | "unassign" | "increment" | "count" | "list" | "grantPermission" | "revokePermission" | "grant" | "revoke" | "sendAction" | "updateData" | "run" | "send" | "subscribe" | "unsubscribe" | "listSubscriptions";
1382
- subjectType?: "inst" | "user" | "role";
1383
- subjectId?: string;
1384
- };
1385
- }>;
871
+ }, z.core.$strip>;
872
+ }, z.core.$strip>;
1386
873
  export type RequestMissingPermissionResponseMessage = RequestMissingPermissionResponseSuccessMessage | RequestMissingPermissionResponseFailureMessage;
1387
874
  export interface RequestMissingPermissionResponseSuccessMessage {
1388
875
  type: 'permission/request/missing/response';
@@ -1416,33 +903,37 @@ export declare const requestMissingPermissionResponseMessageSchema: z.ZodObject<
1416
903
  type: z.ZodLiteral<"permission/request/missing/response">;
1417
904
  success: z.ZodBoolean;
1418
905
  recordName: z.ZodString;
1419
- resourceKind: z.ZodEnum<["data", "file", "event", "marker", "role", "inst", "loom", "ai.sloyd", "ai.hume", "ai.openai.realtime", "webhook", "notification", "package", "package.version", "search", "database"]>;
906
+ resourceKind: z.ZodEnum<{
907
+ search: "search";
908
+ inst: "inst";
909
+ file: "file";
910
+ event: "event";
911
+ role: "role";
912
+ data: "data";
913
+ marker: "marker";
914
+ loom: "loom";
915
+ "ai.sloyd": "ai.sloyd";
916
+ "ai.hume": "ai.hume";
917
+ "ai.openai.realtime": "ai.openai.realtime";
918
+ webhook: "webhook";
919
+ notification: "notification";
920
+ package: "package";
921
+ "package.version": "package.version";
922
+ database: "database";
923
+ purchasableItem: "purchasableItem";
924
+ contract: "contract";
925
+ invoice: "invoice";
926
+ }>;
1420
927
  resourceId: z.ZodString;
1421
- subjectType: z.ZodEnum<["user", "inst", "role"]>;
928
+ subjectType: z.ZodEnum<{
929
+ inst: "inst";
930
+ user: "user";
931
+ role: "role";
932
+ }>;
1422
933
  subjectId: z.ZodString;
1423
934
  errorCode: z.ZodOptional<z.ZodString>;
1424
935
  errorMessage: z.ZodOptional<z.ZodString>;
1425
- }, "strip", z.ZodTypeAny, {
1426
- type?: "permission/request/missing/response";
1427
- success?: boolean;
1428
- recordName?: string;
1429
- resourceKind?: "search" | "inst" | "data" | "event" | "role" | "file" | "marker" | "loom" | "ai.sloyd" | "ai.hume" | "ai.openai.realtime" | "webhook" | "notification" | "package" | "package.version" | "database";
1430
- resourceId?: string;
1431
- subjectType?: "inst" | "user" | "role";
1432
- subjectId?: string;
1433
- errorCode?: string;
1434
- errorMessage?: string;
1435
- }, {
1436
- type?: "permission/request/missing/response";
1437
- success?: boolean;
1438
- recordName?: string;
1439
- resourceKind?: "search" | "inst" | "data" | "event" | "role" | "file" | "marker" | "loom" | "ai.sloyd" | "ai.hume" | "ai.openai.realtime" | "webhook" | "notification" | "package" | "package.version" | "database";
1440
- resourceId?: string;
1441
- subjectType?: "inst" | "user" | "role";
1442
- subjectId?: string;
1443
- errorCode?: string;
1444
- errorMessage?: string;
1445
- }>;
936
+ }, z.core.$strip>;
1446
937
  export interface RateLimitExceededMessage {
1447
938
  type: 'rate_limit_exceeded';
1448
939
  retryAfter: number;
@@ -1452,96 +943,38 @@ export declare const rateLimitExceededMessageSchema: z.ZodObject<{
1452
943
  type: z.ZodLiteral<"rate_limit_exceeded">;
1453
944
  retryAfter: z.ZodNumber;
1454
945
  totalHits: z.ZodNumber;
1455
- }, "strip", z.ZodTypeAny, {
1456
- type?: "rate_limit_exceeded";
1457
- retryAfter?: number;
1458
- totalHits?: number;
1459
- }, {
1460
- type?: "rate_limit_exceeded";
1461
- retryAfter?: number;
1462
- totalHits?: number;
1463
- }>;
1464
- export declare const websocketRequestMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
946
+ }, z.core.$strip>;
947
+ export declare const websocketRequestMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1465
948
  type: z.ZodLiteral<"login">;
1466
949
  connectionToken: z.ZodOptional<z.ZodString>;
1467
950
  connectionId: z.ZodOptional<z.ZodString>;
1468
- }, "strip", z.ZodTypeAny, {
1469
- type?: "login";
1470
- connectionToken?: string;
1471
- connectionId?: string;
1472
- }, {
1473
- type?: "login";
1474
- connectionToken?: string;
1475
- connectionId?: string;
1476
- }>, z.ZodObject<{
951
+ }, z.core.$strip>, z.ZodObject<{
1477
952
  type: z.ZodLiteral<"repo/watch_branch">;
1478
953
  recordName: z.ZodNullable<z.ZodString>;
1479
954
  inst: z.ZodString;
1480
955
  branch: z.ZodString;
1481
956
  temporary: z.ZodOptional<z.ZodBoolean>;
1482
- markers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1483
- }, "strip", z.ZodTypeAny, {
1484
- type?: "repo/watch_branch";
1485
- recordName?: string;
1486
- inst?: string;
1487
- branch?: string;
1488
- temporary?: boolean;
1489
- markers?: string[];
1490
- }, {
1491
- type?: "repo/watch_branch";
1492
- recordName?: string;
1493
- inst?: string;
1494
- branch?: string;
1495
- temporary?: boolean;
1496
- markers?: string[];
1497
- }>, z.ZodObject<{
957
+ markers: z.ZodOptional<z.ZodArray<z.ZodString>>;
958
+ }, z.core.$strip>, z.ZodObject<{
1498
959
  type: z.ZodLiteral<"repo/unwatch_branch">;
1499
960
  recordName: z.ZodNullable<z.ZodString>;
1500
961
  inst: z.ZodString;
1501
962
  branch: z.ZodString;
1502
- }, "strip", z.ZodTypeAny, {
1503
- type?: "repo/unwatch_branch";
1504
- recordName?: string;
1505
- inst?: string;
1506
- branch?: string;
1507
- }, {
1508
- type?: "repo/unwatch_branch";
1509
- recordName?: string;
1510
- inst?: string;
1511
- branch?: string;
1512
- }>, z.ZodObject<{
963
+ }, z.core.$strip>, z.ZodObject<{
1513
964
  type: z.ZodLiteral<"repo/add_updates">;
1514
965
  recordName: z.ZodNullable<z.ZodString>;
1515
966
  inst: z.ZodString;
1516
967
  branch: z.ZodString;
1517
- updates: z.ZodArray<z.ZodString, "many">;
968
+ updates: z.ZodArray<z.ZodString>;
1518
969
  updateId: z.ZodOptional<z.ZodNumber>;
1519
970
  initial: z.ZodOptional<z.ZodBoolean>;
1520
- timestamps: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
1521
- }, "strip", z.ZodTypeAny, {
1522
- type?: "repo/add_updates";
1523
- recordName?: string;
1524
- inst?: string;
1525
- branch?: string;
1526
- updates?: string[];
1527
- updateId?: number;
1528
- initial?: boolean;
1529
- timestamps?: number[];
1530
- }, {
1531
- type?: "repo/add_updates";
1532
- recordName?: string;
1533
- inst?: string;
1534
- branch?: string;
1535
- updates?: string[];
1536
- updateId?: number;
1537
- initial?: boolean;
1538
- timestamps?: number[];
1539
- }>, z.ZodObject<{
971
+ timestamps: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
972
+ }, z.core.$strip>, z.ZodObject<{
1540
973
  type: z.ZodLiteral<"repo/send_action">;
1541
974
  recordName: z.ZodNullable<z.ZodString>;
1542
975
  inst: z.ZodString;
1543
976
  branch: z.ZodString;
1544
- action: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
977
+ action: z.ZodDiscriminatedUnion<[z.ZodObject<{
1545
978
  connectionId: z.ZodOptional<z.ZodString>;
1546
979
  sessionId: z.ZodOptional<z.ZodString>;
1547
980
  userId: z.ZodOptional<z.ZodString>;
@@ -1549,336 +982,152 @@ export declare const websocketRequestMessageSchema: z.ZodDiscriminatedUnion<"typ
1549
982
  type: z.ZodLiteral<"remote">;
1550
983
  event: z.ZodAny;
1551
984
  allowBatching: z.ZodOptional<z.ZodBoolean>;
1552
- taskId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1553
- }, "strip", z.ZodTypeAny, {
1554
- connectionId?: string;
1555
- sessionId?: string;
1556
- userId?: string;
1557
- broadcast?: boolean;
1558
- type?: "remote";
1559
- event?: any;
1560
- allowBatching?: boolean;
1561
- taskId?: string | number;
1562
- }, {
1563
- connectionId?: string;
1564
- sessionId?: string;
1565
- userId?: string;
1566
- broadcast?: boolean;
1567
- type?: "remote";
1568
- event?: any;
1569
- allowBatching?: boolean;
1570
- taskId?: string | number;
1571
- }>, z.ZodObject<{
985
+ taskId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
986
+ }, z.core.$strip>, z.ZodObject<{
1572
987
  connectionId: z.ZodOptional<z.ZodString>;
1573
988
  sessionId: z.ZodOptional<z.ZodString>;
1574
989
  userId: z.ZodOptional<z.ZodString>;
1575
990
  broadcast: z.ZodOptional<z.ZodBoolean>;
1576
991
  type: z.ZodLiteral<"remote_result">;
1577
992
  result: z.ZodOptional<z.ZodAny>;
1578
- taskId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1579
- }, "strip", z.ZodTypeAny, {
1580
- connectionId?: string;
1581
- sessionId?: string;
1582
- userId?: string;
1583
- broadcast?: boolean;
1584
- type?: "remote_result";
1585
- result?: any;
1586
- taskId?: string | number;
1587
- }, {
1588
- connectionId?: string;
1589
- sessionId?: string;
1590
- userId?: string;
1591
- broadcast?: boolean;
1592
- type?: "remote_result";
1593
- result?: any;
1594
- taskId?: string | number;
1595
- }>, z.ZodObject<{
993
+ taskId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
994
+ }, z.core.$strip>, z.ZodObject<{
1596
995
  connectionId: z.ZodOptional<z.ZodString>;
1597
996
  sessionId: z.ZodOptional<z.ZodString>;
1598
997
  userId: z.ZodOptional<z.ZodString>;
1599
998
  broadcast: z.ZodOptional<z.ZodBoolean>;
1600
999
  type: z.ZodLiteral<"remote_error">;
1601
1000
  error: z.ZodAny;
1602
- taskId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1603
- }, "strip", z.ZodTypeAny, {
1604
- connectionId?: string;
1605
- sessionId?: string;
1606
- userId?: string;
1607
- broadcast?: boolean;
1608
- type?: "remote_error";
1609
- error?: any;
1610
- taskId?: string | number;
1611
- }, {
1612
- connectionId?: string;
1613
- sessionId?: string;
1614
- userId?: string;
1615
- broadcast?: boolean;
1616
- type?: "remote_error";
1617
- error?: any;
1618
- taskId?: string | number;
1619
- }>]>;
1620
- }, "strip", z.ZodTypeAny, {
1621
- type?: "repo/send_action";
1622
- recordName?: string;
1623
- inst?: string;
1624
- branch?: string;
1625
- action?: {
1626
- connectionId?: string;
1627
- sessionId?: string;
1628
- userId?: string;
1629
- broadcast?: boolean;
1630
- type?: "remote";
1631
- event?: any;
1632
- allowBatching?: boolean;
1633
- taskId?: string | number;
1634
- } | {
1635
- connectionId?: string;
1636
- sessionId?: string;
1637
- userId?: string;
1638
- broadcast?: boolean;
1639
- type?: "remote_result";
1640
- result?: any;
1641
- taskId?: string | number;
1642
- } | {
1643
- connectionId?: string;
1644
- sessionId?: string;
1645
- userId?: string;
1646
- broadcast?: boolean;
1647
- type?: "remote_error";
1648
- error?: any;
1649
- taskId?: string | number;
1650
- };
1651
- }, {
1652
- type?: "repo/send_action";
1653
- recordName?: string;
1654
- inst?: string;
1655
- branch?: string;
1656
- action?: {
1657
- connectionId?: string;
1658
- sessionId?: string;
1659
- userId?: string;
1660
- broadcast?: boolean;
1661
- type?: "remote";
1662
- event?: any;
1663
- allowBatching?: boolean;
1664
- taskId?: string | number;
1665
- } | {
1666
- connectionId?: string;
1667
- sessionId?: string;
1668
- userId?: string;
1669
- broadcast?: boolean;
1670
- type?: "remote_result";
1671
- result?: any;
1672
- taskId?: string | number;
1673
- } | {
1674
- connectionId?: string;
1675
- sessionId?: string;
1676
- userId?: string;
1677
- broadcast?: boolean;
1678
- type?: "remote_error";
1679
- error?: any;
1680
- taskId?: string | number;
1681
- };
1682
- }>, z.ZodObject<{
1001
+ taskId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1002
+ }, z.core.$strip>], "type">;
1003
+ }, z.core.$strip>, z.ZodObject<{
1683
1004
  type: z.ZodLiteral<"repo/watch_branch_devices">;
1684
1005
  recordName: z.ZodNullable<z.ZodString>;
1685
1006
  inst: z.ZodString;
1686
1007
  branch: z.ZodString;
1687
- }, "strip", z.ZodTypeAny, {
1688
- type?: "repo/watch_branch_devices";
1689
- recordName?: string;
1690
- inst?: string;
1691
- branch?: string;
1692
- }, {
1693
- type?: "repo/watch_branch_devices";
1694
- recordName?: string;
1695
- inst?: string;
1696
- branch?: string;
1697
- }>, z.ZodObject<{
1008
+ }, z.core.$strip>, z.ZodObject<{
1698
1009
  type: z.ZodLiteral<"repo/unwatch_branch_devices">;
1699
1010
  recordName: z.ZodNullable<z.ZodString>;
1700
1011
  inst: z.ZodString;
1701
1012
  branch: z.ZodString;
1702
- }, "strip", z.ZodTypeAny, {
1703
- type?: "repo/unwatch_branch_devices";
1704
- recordName?: string;
1705
- inst?: string;
1706
- branch?: string;
1707
- }, {
1708
- type?: "repo/unwatch_branch_devices";
1709
- recordName?: string;
1710
- inst?: string;
1711
- branch?: string;
1712
- }>, z.ZodObject<{
1013
+ }, z.core.$strip>, z.ZodObject<{
1713
1014
  type: z.ZodLiteral<"repo/connection_count">;
1714
1015
  recordName: z.ZodNullable<z.ZodString>;
1715
1016
  inst: z.ZodNullable<z.ZodString>;
1716
1017
  branch: z.ZodNullable<z.ZodString>;
1717
1018
  count: z.ZodOptional<z.ZodNumber>;
1718
- }, "strip", z.ZodTypeAny, {
1719
- type?: "repo/connection_count";
1720
- recordName?: string;
1721
- inst?: string;
1722
- branch?: string;
1723
- count?: number;
1724
- }, {
1725
- type?: "repo/connection_count";
1726
- recordName?: string;
1727
- inst?: string;
1728
- branch?: string;
1729
- count?: number;
1730
- }>, z.ZodObject<{
1019
+ }, z.core.$strip>, z.ZodObject<{
1731
1020
  type: z.ZodLiteral<"sync/time">;
1732
1021
  id: z.ZodNumber;
1733
1022
  clientRequestTime: z.ZodNumber;
1734
- }, "strip", z.ZodTypeAny, {
1735
- type?: "sync/time";
1736
- id?: number;
1737
- clientRequestTime?: number;
1738
- }, {
1739
- type?: "sync/time";
1740
- id?: number;
1741
- clientRequestTime?: number;
1742
- }>, z.ZodObject<{
1023
+ }, z.core.$strip>, z.ZodObject<{
1743
1024
  type: z.ZodLiteral<"repo/get_updates">;
1744
1025
  recordName: z.ZodNullable<z.ZodString>;
1745
1026
  inst: z.ZodString;
1746
1027
  branch: z.ZodString;
1747
- }, "strip", z.ZodTypeAny, {
1748
- type?: "repo/get_updates";
1749
- recordName?: string;
1750
- inst?: string;
1751
- branch?: string;
1752
- }, {
1753
- type?: "repo/get_updates";
1754
- recordName?: string;
1755
- inst?: string;
1756
- branch?: string;
1757
- }>, z.ZodObject<{
1028
+ }, z.core.$strip>, z.ZodObject<{
1758
1029
  type: z.ZodLiteral<"http_request">;
1759
1030
  request: z.ZodObject<{
1760
1031
  path: z.ZodString;
1761
- pathParams: z.ZodObject<{}, "strip", z.ZodString, z.objectOutputType<{}, z.ZodString, "strip">, z.objectInputType<{}, z.ZodString, "strip">>;
1762
- method: z.ZodUnion<[z.ZodLiteral<"GET">, z.ZodLiteral<"POST">, z.ZodLiteral<"PUT">, z.ZodLiteral<"DELETE">, z.ZodLiteral<"HEAD">, z.ZodLiteral<"OPTIONS">]>;
1763
- query: z.ZodObject<{}, "strip", z.ZodString, z.objectOutputType<{}, z.ZodString, "strip">, z.objectInputType<{}, z.ZodString, "strip">>;
1764
- headers: z.ZodObject<{}, "strip", z.ZodString, z.objectOutputType<{}, z.ZodString, "strip">, z.objectInputType<{}, z.ZodString, "strip">>;
1765
- body: z.ZodUnion<[z.ZodString, z.ZodNull]>;
1766
- }, "strip", z.ZodTypeAny, {
1767
- path?: string;
1768
- pathParams?: z.objectOutputType<{}, z.ZodString, "strip">;
1769
- method?: "GET" | "POST" | "PUT" | "DELETE" | "HEAD" | "OPTIONS";
1770
- query?: z.objectOutputType<{}, z.ZodString, "strip">;
1771
- headers?: z.objectOutputType<{}, z.ZodString, "strip">;
1772
- body?: string;
1773
- }, {
1774
- path?: string;
1775
- pathParams?: z.objectInputType<{}, z.ZodString, "strip">;
1776
- method?: "GET" | "POST" | "PUT" | "DELETE" | "HEAD" | "OPTIONS";
1777
- query?: z.objectInputType<{}, z.ZodString, "strip">;
1778
- headers?: z.objectInputType<{}, z.ZodString, "strip">;
1779
- body?: string;
1780
- }>;
1032
+ pathParams: z.ZodObject<{}, z.core.$catchall<z.ZodString>>;
1033
+ method: z.ZodUnion<readonly [z.ZodLiteral<"GET">, z.ZodLiteral<"POST">, z.ZodLiteral<"PUT">, z.ZodLiteral<"DELETE">, z.ZodLiteral<"HEAD">, z.ZodLiteral<"OPTIONS">]>;
1034
+ query: z.ZodObject<{}, z.core.$catchall<z.ZodString>>;
1035
+ headers: z.ZodObject<{}, z.core.$catchall<z.ZodString>>;
1036
+ body: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
1037
+ }, z.core.$strip>;
1781
1038
  id: z.ZodNumber;
1782
- }, "strip", z.ZodTypeAny, {
1783
- type?: "http_request";
1784
- request?: {
1785
- path?: string;
1786
- pathParams?: z.objectOutputType<{}, z.ZodString, "strip">;
1787
- method?: "GET" | "POST" | "PUT" | "DELETE" | "HEAD" | "OPTIONS";
1788
- query?: z.objectOutputType<{}, z.ZodString, "strip">;
1789
- headers?: z.objectOutputType<{}, z.ZodString, "strip">;
1790
- body?: string;
1791
- };
1792
- id?: number;
1793
- }, {
1794
- type?: "http_request";
1795
- request?: {
1796
- path?: string;
1797
- pathParams?: z.objectInputType<{}, z.ZodString, "strip">;
1798
- method?: "GET" | "POST" | "PUT" | "DELETE" | "HEAD" | "OPTIONS";
1799
- query?: z.objectInputType<{}, z.ZodString, "strip">;
1800
- headers?: z.objectInputType<{}, z.ZodString, "strip">;
1801
- body?: string;
1802
- };
1803
- id?: number;
1804
- }>, z.ZodObject<{
1039
+ }, z.core.$strip>, z.ZodObject<{
1805
1040
  type: z.ZodLiteral<"permission/request/missing">;
1806
1041
  reason: z.ZodObject<{
1807
1042
  type: z.ZodLiteral<"missing_permission">;
1808
1043
  recordName: z.ZodString;
1809
- resourceKind: z.ZodEnum<["data", "file", "event", "marker", "role", "inst", "loom", "ai.sloyd", "ai.hume", "ai.openai.realtime", "webhook", "notification", "package", "package.version", "search", "database"]>;
1044
+ resourceKind: z.ZodEnum<{
1045
+ search: "search";
1046
+ inst: "inst";
1047
+ file: "file";
1048
+ event: "event";
1049
+ role: "role";
1050
+ data: "data";
1051
+ marker: "marker";
1052
+ loom: "loom";
1053
+ "ai.sloyd": "ai.sloyd";
1054
+ "ai.hume": "ai.hume";
1055
+ "ai.openai.realtime": "ai.openai.realtime";
1056
+ webhook: "webhook";
1057
+ notification: "notification";
1058
+ package: "package";
1059
+ "package.version": "package.version";
1060
+ database: "database";
1061
+ purchasableItem: "purchasableItem";
1062
+ contract: "contract";
1063
+ invoice: "invoice";
1064
+ }>;
1810
1065
  resourceId: z.ZodString;
1811
- action: z.ZodEnum<["create", "read", "update", "updateData", "delete", "list", "sendAction", "assign", "unassign", "grant", "revoke", "increment", "count", "grantPermission", "revokePermission", "run", "send", "subscribe", "unsubscribe", "listSubscriptions"]>;
1812
- subjectType: z.ZodEnum<["user", "inst", "role"]>;
1066
+ action: z.ZodEnum<{
1067
+ run: "run";
1068
+ read: "read";
1069
+ create: "create";
1070
+ update: "update";
1071
+ delete: "delete";
1072
+ assign: "assign";
1073
+ unassign: "unassign";
1074
+ increment: "increment";
1075
+ count: "count";
1076
+ list: "list";
1077
+ grantPermission: "grantPermission";
1078
+ revokePermission: "revokePermission";
1079
+ grant: "grant";
1080
+ revoke: "revoke";
1081
+ sendAction: "sendAction";
1082
+ updateData: "updateData";
1083
+ send: "send";
1084
+ subscribe: "subscribe";
1085
+ unsubscribe: "unsubscribe";
1086
+ listSubscriptions: "listSubscriptions";
1087
+ purchase: "purchase";
1088
+ approve: "approve";
1089
+ cancel: "cancel";
1090
+ }>;
1091
+ subjectType: z.ZodEnum<{
1092
+ inst: "inst";
1093
+ user: "user";
1094
+ role: "role";
1095
+ }>;
1813
1096
  subjectId: z.ZodString;
1814
- }, "strip", z.ZodTypeAny, {
1815
- type?: "missing_permission";
1816
- recordName?: string;
1817
- resourceKind?: "search" | "inst" | "data" | "event" | "role" | "file" | "marker" | "loom" | "ai.sloyd" | "ai.hume" | "ai.openai.realtime" | "webhook" | "notification" | "package" | "package.version" | "database";
1818
- resourceId?: string;
1819
- action?: "create" | "read" | "update" | "delete" | "assign" | "unassign" | "increment" | "count" | "list" | "grantPermission" | "revokePermission" | "grant" | "revoke" | "sendAction" | "updateData" | "run" | "send" | "subscribe" | "unsubscribe" | "listSubscriptions";
1820
- subjectType?: "inst" | "user" | "role";
1821
- subjectId?: string;
1822
- }, {
1823
- type?: "missing_permission";
1824
- recordName?: string;
1825
- resourceKind?: "search" | "inst" | "data" | "event" | "role" | "file" | "marker" | "loom" | "ai.sloyd" | "ai.hume" | "ai.openai.realtime" | "webhook" | "notification" | "package" | "package.version" | "database";
1826
- resourceId?: string;
1827
- action?: "create" | "read" | "update" | "delete" | "assign" | "unassign" | "increment" | "count" | "list" | "grantPermission" | "revokePermission" | "grant" | "revoke" | "sendAction" | "updateData" | "run" | "send" | "subscribe" | "unsubscribe" | "listSubscriptions";
1828
- subjectType?: "inst" | "user" | "role";
1829
- subjectId?: string;
1830
- }>;
1831
- }, "strip", z.ZodTypeAny, {
1832
- type?: "permission/request/missing";
1833
- reason?: {
1834
- type?: "missing_permission";
1835
- recordName?: string;
1836
- resourceKind?: "search" | "inst" | "data" | "event" | "role" | "file" | "marker" | "loom" | "ai.sloyd" | "ai.hume" | "ai.openai.realtime" | "webhook" | "notification" | "package" | "package.version" | "database";
1837
- resourceId?: string;
1838
- action?: "create" | "read" | "update" | "delete" | "assign" | "unassign" | "increment" | "count" | "list" | "grantPermission" | "revokePermission" | "grant" | "revoke" | "sendAction" | "updateData" | "run" | "send" | "subscribe" | "unsubscribe" | "listSubscriptions";
1839
- subjectType?: "inst" | "user" | "role";
1840
- subjectId?: string;
1841
- };
1842
- }, {
1843
- type?: "permission/request/missing";
1844
- reason?: {
1845
- type?: "missing_permission";
1846
- recordName?: string;
1847
- resourceKind?: "search" | "inst" | "data" | "event" | "role" | "file" | "marker" | "loom" | "ai.sloyd" | "ai.hume" | "ai.openai.realtime" | "webhook" | "notification" | "package" | "package.version" | "database";
1848
- resourceId?: string;
1849
- action?: "create" | "read" | "update" | "delete" | "assign" | "unassign" | "increment" | "count" | "list" | "grantPermission" | "revokePermission" | "grant" | "revoke" | "sendAction" | "updateData" | "run" | "send" | "subscribe" | "unsubscribe" | "listSubscriptions";
1850
- subjectType?: "inst" | "user" | "role";
1851
- subjectId?: string;
1852
- };
1853
- }>, z.ZodObject<{
1097
+ }, z.core.$strip>;
1098
+ }, z.core.$strip>, z.ZodObject<{
1854
1099
  type: z.ZodLiteral<"permission/request/missing/response">;
1855
1100
  success: z.ZodBoolean;
1856
1101
  recordName: z.ZodString;
1857
- resourceKind: z.ZodEnum<["data", "file", "event", "marker", "role", "inst", "loom", "ai.sloyd", "ai.hume", "ai.openai.realtime", "webhook", "notification", "package", "package.version", "search", "database"]>;
1102
+ resourceKind: z.ZodEnum<{
1103
+ search: "search";
1104
+ inst: "inst";
1105
+ file: "file";
1106
+ event: "event";
1107
+ role: "role";
1108
+ data: "data";
1109
+ marker: "marker";
1110
+ loom: "loom";
1111
+ "ai.sloyd": "ai.sloyd";
1112
+ "ai.hume": "ai.hume";
1113
+ "ai.openai.realtime": "ai.openai.realtime";
1114
+ webhook: "webhook";
1115
+ notification: "notification";
1116
+ package: "package";
1117
+ "package.version": "package.version";
1118
+ database: "database";
1119
+ purchasableItem: "purchasableItem";
1120
+ contract: "contract";
1121
+ invoice: "invoice";
1122
+ }>;
1858
1123
  resourceId: z.ZodString;
1859
- subjectType: z.ZodEnum<["user", "inst", "role"]>;
1124
+ subjectType: z.ZodEnum<{
1125
+ inst: "inst";
1126
+ user: "user";
1127
+ role: "role";
1128
+ }>;
1860
1129
  subjectId: z.ZodString;
1861
1130
  errorCode: z.ZodOptional<z.ZodString>;
1862
1131
  errorMessage: z.ZodOptional<z.ZodString>;
1863
- }, "strip", z.ZodTypeAny, {
1864
- type?: "permission/request/missing/response";
1865
- success?: boolean;
1866
- recordName?: string;
1867
- resourceKind?: "search" | "inst" | "data" | "event" | "role" | "file" | "marker" | "loom" | "ai.sloyd" | "ai.hume" | "ai.openai.realtime" | "webhook" | "notification" | "package" | "package.version" | "database";
1868
- resourceId?: string;
1869
- subjectType?: "inst" | "user" | "role";
1870
- subjectId?: string;
1871
- errorCode?: string;
1872
- errorMessage?: string;
1873
- }, {
1874
- type?: "permission/request/missing/response";
1875
- success?: boolean;
1876
- recordName?: string;
1877
- resourceKind?: "search" | "inst" | "data" | "event" | "role" | "file" | "marker" | "loom" | "ai.sloyd" | "ai.hume" | "ai.openai.realtime" | "webhook" | "notification" | "package" | "package.version" | "database";
1878
- resourceId?: string;
1879
- subjectType?: "inst" | "user" | "role";
1880
- subjectId?: string;
1881
- errorCode?: string;
1882
- errorMessage?: string;
1883
- }>]>;
1132
+ }, z.core.$strip>], "type">;
1884
1133
  //# sourceMappingURL=WebsocketEvents.d.ts.map