@powerhousedao/reactor-browser 6.2.3-staging.0 → 6.3.0-dev.1

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 (87) hide show
  1. package/dist/{attachment-service-But1Xljo.d.ts → attachment-service-B-AmTrs2.d.ts} +605 -56
  2. package/dist/attachment-service-B-AmTrs2.d.ts.map +1 -0
  3. package/dist/auth-DRbzRdeC.d.ts +32 -0
  4. package/dist/auth-DRbzRdeC.d.ts.map +1 -0
  5. package/dist/{client-BiJAJ9dW.js → client-BFnMV-EO.js} +39 -22
  6. package/dist/client-BFnMV-EO.js.map +1 -0
  7. package/dist/{client-CngU4mtn.d.ts → client-BP0hXjqq.d.ts} +3 -2
  8. package/dist/client-BP0hXjqq.d.ts.map +1 -0
  9. package/dist/client-wwavHFfs.js +135 -0
  10. package/dist/client-wwavHFfs.js.map +1 -0
  11. package/dist/{dispatch-qRXS70fh.js → dispatch-Cylwl2Dk.js} +363 -44
  12. package/dist/dispatch-Cylwl2Dk.js.map +1 -0
  13. package/dist/{document-by-id-B_8DA4yZ.js → document-by-id-DdvqanGR.js} +2 -2
  14. package/dist/{document-by-id-B_8DA4yZ.js.map → document-by-id-DdvqanGR.js.map} +1 -1
  15. package/dist/document-model-modules-BG-61uke.js +710 -0
  16. package/dist/document-model-modules-BG-61uke.js.map +1 -0
  17. package/dist/{document-operations-Bt-1-ThH.js → document-operations-DRMMwmGZ.js} +2160 -181
  18. package/dist/document-operations-DRMMwmGZ.js.map +1 -0
  19. package/dist/global-iARBhxNI.d.ts +612 -0
  20. package/dist/global-iARBhxNI.d.ts.map +1 -0
  21. package/dist/{index-BABMK8cO.d.ts → index-CNS_9THu.d.ts} +14 -4
  22. package/dist/index-CNS_9THu.d.ts.map +1 -0
  23. package/dist/index.d.ts +560 -79
  24. package/dist/index.d.ts.map +1 -1
  25. package/dist/index.js +790 -317
  26. package/dist/index.js.map +1 -1
  27. package/dist/inspector-proxy-DODqs15F.d.ts +25 -0
  28. package/dist/inspector-proxy-DODqs15F.d.ts.map +1 -0
  29. package/dist/make-ph-event-functions-B5GU5xcR.js +180 -0
  30. package/dist/make-ph-event-functions-B5GU5xcR.js.map +1 -0
  31. package/dist/{relational-ChC_AWAK.js → relational-DZuyKp2y.js} +65 -5
  32. package/dist/relational-DZuyKp2y.js.map +1 -0
  33. package/dist/{renown-C9pYZRqf.js → renown-B3MUaiq7.js} +56 -25
  34. package/dist/renown-B3MUaiq7.js.map +1 -0
  35. package/dist/renown-CBoTdGrg.js +394 -0
  36. package/dist/renown-CBoTdGrg.js.map +1 -0
  37. package/dist/{client-VV9M73s_.js → schema-B5lftDPf.js} +295 -195
  38. package/dist/schema-B5lftDPf.js.map +1 -0
  39. package/dist/{types-B7-_l_wE.d.ts → schema-C6ECceaN.d.ts} +272 -82
  40. package/dist/schema-C6ECceaN.d.ts.map +1 -0
  41. package/dist/src/ai/index.d.ts +269 -24
  42. package/dist/src/ai/index.d.ts.map +1 -1
  43. package/dist/src/ai/index.js +1028 -168
  44. package/dist/src/ai/index.js.map +1 -1
  45. package/dist/src/analytics/index.js +3 -3
  46. package/dist/src/graphql/client.d.ts +2 -2
  47. package/dist/src/graphql/client.js +1 -1
  48. package/dist/src/graphql-client/entry.d.ts +6 -4
  49. package/dist/src/graphql-client/entry.js +4 -4
  50. package/dist/src/relational/index.d.ts +8 -1
  51. package/dist/src/relational/index.d.ts.map +1 -1
  52. package/dist/src/relational/index.js +1 -1
  53. package/dist/src/renown/index.d.ts +2 -2
  54. package/dist/src/renown/index.js +3 -3
  55. package/dist/src/rpc/index.d.ts +201 -144
  56. package/dist/src/rpc/index.d.ts.map +1 -1
  57. package/dist/src/rpc/index.js +562 -634
  58. package/dist/src/rpc/index.js.map +1 -1
  59. package/dist/switchboard-directory-vH6qtkh-.js +435 -0
  60. package/dist/switchboard-directory-vH6qtkh-.js.map +1 -0
  61. package/dist/switchboards-D-_JBUbF.d.ts +75 -0
  62. package/dist/switchboards-D-_JBUbF.d.ts.map +1 -0
  63. package/dist/types-BWx6FPO4.d.ts +63 -0
  64. package/dist/types-BWx6FPO4.d.ts.map +1 -0
  65. package/package.json +19 -17
  66. package/dist/attachment-service-But1Xljo.d.ts.map +0 -1
  67. package/dist/client-BiJAJ9dW.js.map +0 -1
  68. package/dist/client-CngU4mtn.d.ts.map +0 -1
  69. package/dist/client-VV9M73s_.js.map +0 -1
  70. package/dist/dispatch-qRXS70fh.js.map +0 -1
  71. package/dist/document-model-modules-D6I-UUXq.js +0 -386
  72. package/dist/document-model-modules-D6I-UUXq.js.map +0 -1
  73. package/dist/document-operations-Bt-1-ThH.js.map +0 -1
  74. package/dist/global-fql2bmb0.d.ts +0 -438
  75. package/dist/global-fql2bmb0.d.ts.map +0 -1
  76. package/dist/index-BABMK8cO.d.ts.map +0 -1
  77. package/dist/inspector-proxy-DCowaeeH.d.ts +0 -264
  78. package/dist/inspector-proxy-DCowaeeH.d.ts.map +0 -1
  79. package/dist/make-ph-event-functions-FzpvQtj6.js +0 -53
  80. package/dist/make-ph-event-functions-FzpvQtj6.js.map +0 -1
  81. package/dist/relational-ChC_AWAK.js.map +0 -1
  82. package/dist/renown-C9pYZRqf.js.map +0 -1
  83. package/dist/renown-Def5iO8k.js +0 -97
  84. package/dist/renown-Def5iO8k.js.map +0 -1
  85. package/dist/switchboard-CFyD_5_e.js +0 -323
  86. package/dist/switchboard-CFyD_5_e.js.map +0 -1
  87. package/dist/types-B7-_l_wE.d.ts.map +0 -1
@@ -1,5 +1,4 @@
1
- import { GraphQLClient, RequestDocument, RequestOptions, Variables } from "graphql-request";
2
- import { z } from "zod";
1
+ import { GraphQLClient, RequestOptions } from "graphql-request";
3
2
  //#region src/graphql/gen/schema.d.ts
4
3
  type InputMaybe<T> = T | null | undefined;
5
4
  type Exact<T extends {
@@ -102,6 +101,31 @@ type DocumentOperationsFilterInput = {
102
101
  readonly timestampFrom?: InputMaybe<Scalars["String"]["input"]>;
103
102
  readonly timestampTo?: InputMaybe<Scalars["String"]["input"]>;
104
103
  };
104
+ declare enum DriveNodeKind {
105
+ File = "FILE",
106
+ Folder = "FOLDER"
107
+ }
108
+ /**
109
+ * One mutation job of a batch, mirroring the reactor's `ExecutionJobPlan`
110
+ * (packages/reactor/src/core/types.ts). The batch runs its jobs in dependency
111
+ * order only, not atomically: each job commits on its own with no batch rollback,
112
+ * and a failed job still releases its dependents.
113
+ *
114
+ * `documentIdOrSlug` is the document the job's actions apply to -- an id that does
115
+ * not yet exist when the job's actions create it. `actions` are coerced against
116
+ * `ActionInput` and passed through exactly as `execute` does, so a client-signed
117
+ * action keeps its signature. `scope` is the single scope every action in the job
118
+ * shares, and `dependsOn` names the plan keys this job is ordered after. `branch`
119
+ * defaults to `main`.
120
+ */
121
+ type ExecutionJobInput = {
122
+ readonly actions: ReadonlyArray<ActionInput>;
123
+ readonly branch?: InputMaybe<Scalars["String"]["input"]>;
124
+ readonly dependsOn: ReadonlyArray<Scalars["String"]["input"]>;
125
+ readonly documentIdOrSlug: Scalars["String"]["input"];
126
+ readonly key: Scalars["String"]["input"];
127
+ readonly scope: Scalars["String"]["input"];
128
+ };
105
129
  type OperationContextInput = {
106
130
  readonly branch: Scalars["String"]["input"];
107
131
  readonly documentId: Scalars["String"]["input"];
@@ -126,7 +150,9 @@ type OperationWithContextInput = {
126
150
  type OperationsFilterInput = {
127
151
  readonly actionTypes?: InputMaybe<ReadonlyArray<Scalars["String"]["input"]>>;
128
152
  readonly branch?: InputMaybe<Scalars["String"]["input"]>;
129
- readonly documentId: Scalars["String"]["input"];
153
+ /** @deprecated Use documentIdOrSlug. */
154
+ readonly documentId?: InputMaybe<Scalars["String"]["input"]>;
155
+ readonly documentIdOrSlug?: InputMaybe<Scalars["String"]["input"]>;
130
156
  readonly scopes?: InputMaybe<ReadonlyArray<Scalars["String"]["input"]>>;
131
157
  readonly sinceRevision?: InputMaybe<Scalars["Int"]["input"]>;
132
158
  readonly timestampFrom?: InputMaybe<Scalars["String"]["input"]>;
@@ -166,6 +192,7 @@ type RemoteFilterInput = {
166
192
  readonly scope: ReadonlyArray<Scalars["String"]["input"]>;
167
193
  };
168
194
  type SearchFilterInput = {
195
+ /** @deprecated Ignored. Filter by type or parentId. */
169
196
  readonly identifiers?: InputMaybe<ReadonlyArray<Scalars["String"]["input"]>>;
170
197
  readonly parentId?: InputMaybe<Scalars["String"]["input"]>;
171
198
  readonly type?: InputMaybe<Scalars["String"]["input"]>;
@@ -182,10 +209,16 @@ declare enum SyncEnvelopeType {
182
209
  Ack = "ACK",
183
210
  Operations = "OPERATIONS"
184
211
  }
212
+ type SyncRefusalInput = {
213
+ readonly branch: Scalars["String"]["input"];
214
+ readonly documentId: Scalars["String"]["input"];
215
+ readonly kind?: InputMaybe<Scalars["String"]["input"]>;
216
+ };
185
217
  type TouchChannelInput = {
186
218
  readonly collectionId: Scalars["String"]["input"];
187
219
  readonly filter: RemoteFilterInput;
188
220
  readonly id: Scalars["String"]["input"];
221
+ readonly manifest?: InputMaybe<Scalars["JSONObject"]["input"]>;
189
222
  readonly name: Scalars["String"]["input"];
190
223
  readonly sinceTimestampUtcMs: Scalars["String"]["input"];
191
224
  };
@@ -198,6 +231,8 @@ type PhDocumentFieldsFragment = {
198
231
  readonly slug?: string | null | undefined;
199
232
  readonly name: string;
200
233
  readonly documentType: string;
234
+ readonly meta?: NonNullable<unknown> | null | undefined;
235
+ readonly protocolVersions?: NonNullable<unknown> | null | undefined;
201
236
  readonly state: NonNullable<unknown>;
202
237
  readonly createdAtUtcIso: string | Date;
203
238
  readonly lastModifiedAtUtcIso: string | Date;
@@ -225,7 +260,7 @@ type GetDocumentModelsQuery = {
225
260
  };
226
261
  };
227
262
  type GetDocumentQueryVariables = Exact<{
228
- identifier: Scalars["String"]["input"];
263
+ idOrSlug: Scalars["String"]["input"];
229
264
  view?: InputMaybe<ViewFilterInput>;
230
265
  }>;
231
266
  type GetDocumentQuery = {
@@ -236,6 +271,8 @@ type GetDocumentQuery = {
236
271
  readonly slug?: string | null | undefined;
237
272
  readonly name: string;
238
273
  readonly documentType: string;
274
+ readonly meta?: NonNullable<unknown> | null | undefined;
275
+ readonly protocolVersions?: NonNullable<unknown> | null | undefined;
239
276
  readonly state: NonNullable<unknown>;
240
277
  readonly createdAtUtcIso: string | Date;
241
278
  readonly lastModifiedAtUtcIso: string | Date;
@@ -247,7 +284,7 @@ type GetDocumentQuery = {
247
284
  } | null | undefined;
248
285
  };
249
286
  type GetDocumentWithOperationsQueryVariables = Exact<{
250
- identifier: Scalars["String"]["input"];
287
+ idOrSlug: Scalars["String"]["input"];
251
288
  view?: InputMaybe<ViewFilterInput>;
252
289
  operationsFilter?: InputMaybe<DocumentOperationsFilterInput>;
253
290
  operationsPaging?: InputMaybe<PagingInput>;
@@ -260,6 +297,8 @@ type GetDocumentWithOperationsQuery = {
260
297
  readonly slug?: string | null | undefined;
261
298
  readonly name: string;
262
299
  readonly documentType: string;
300
+ readonly meta?: NonNullable<unknown> | null | undefined;
301
+ readonly protocolVersions?: NonNullable<unknown> | null | undefined;
263
302
  readonly state: NonNullable<unknown>;
264
303
  readonly createdAtUtcIso: string | Date;
265
304
  readonly lastModifiedAtUtcIso: string | Date;
@@ -306,7 +345,7 @@ type GetDocumentWithOperationsQuery = {
306
345
  } | null | undefined;
307
346
  };
308
347
  type GetDocumentOutgoingRelationshipsQueryVariables = Exact<{
309
- sourceIdentifier: Scalars["String"]["input"];
348
+ sourceIdOrSlug: Scalars["String"]["input"];
310
349
  relationshipType: Scalars["String"]["input"];
311
350
  view?: InputMaybe<ViewFilterInput>;
312
351
  paging?: InputMaybe<PagingInput>;
@@ -321,6 +360,8 @@ type GetDocumentOutgoingRelationshipsQuery = {
321
360
  readonly slug?: string | null | undefined;
322
361
  readonly name: string;
323
362
  readonly documentType: string;
363
+ readonly meta?: NonNullable<unknown> | null | undefined;
364
+ readonly protocolVersions?: NonNullable<unknown> | null | undefined;
324
365
  readonly state: NonNullable<unknown>;
325
366
  readonly createdAtUtcIso: string | Date;
326
367
  readonly lastModifiedAtUtcIso: string | Date;
@@ -332,7 +373,7 @@ type GetDocumentOutgoingRelationshipsQuery = {
332
373
  };
333
374
  };
334
375
  type GetDocumentIncomingRelationshipsQueryVariables = Exact<{
335
- targetIdentifier: Scalars["String"]["input"];
376
+ targetIdOrSlug: Scalars["String"]["input"];
336
377
  relationshipType: Scalars["String"]["input"];
337
378
  view?: InputMaybe<ViewFilterInput>;
338
379
  paging?: InputMaybe<PagingInput>;
@@ -347,6 +388,8 @@ type GetDocumentIncomingRelationshipsQuery = {
347
388
  readonly slug?: string | null | undefined;
348
389
  readonly name: string;
349
390
  readonly documentType: string;
391
+ readonly meta?: NonNullable<unknown> | null | undefined;
392
+ readonly protocolVersions?: NonNullable<unknown> | null | undefined;
350
393
  readonly state: NonNullable<unknown>;
351
394
  readonly createdAtUtcIso: string | Date;
352
395
  readonly lastModifiedAtUtcIso: string | Date;
@@ -358,7 +401,7 @@ type GetDocumentIncomingRelationshipsQuery = {
358
401
  };
359
402
  };
360
403
  type GetDocumentOutgoingRelationshipEdgesQueryVariables = Exact<{
361
- sourceIdentifier: Scalars["String"]["input"];
404
+ sourceIdOrSlug: Scalars["String"]["input"];
362
405
  relationshipType?: InputMaybe<Scalars["String"]["input"]>;
363
406
  view?: InputMaybe<ViewFilterInput>;
364
407
  paging?: InputMaybe<PagingInput>;
@@ -379,7 +422,7 @@ type GetDocumentOutgoingRelationshipEdgesQuery = {
379
422
  };
380
423
  };
381
424
  type GetDocumentIncomingRelationshipEdgesQueryVariables = Exact<{
382
- targetIdentifier: Scalars["String"]["input"];
425
+ targetIdOrSlug: Scalars["String"]["input"];
383
426
  relationshipType?: InputMaybe<Scalars["String"]["input"]>;
384
427
  view?: InputMaybe<ViewFilterInput>;
385
428
  paging?: InputMaybe<PagingInput>;
@@ -414,6 +457,8 @@ type FindDocumentsQuery = {
414
457
  readonly slug?: string | null | undefined;
415
458
  readonly name: string;
416
459
  readonly documentType: string;
460
+ readonly meta?: NonNullable<unknown> | null | undefined;
461
+ readonly protocolVersions?: NonNullable<unknown> | null | undefined;
417
462
  readonly state: NonNullable<unknown>;
418
463
  readonly createdAtUtcIso: string | Date;
419
464
  readonly lastModifiedAtUtcIso: string | Date;
@@ -471,15 +516,127 @@ type GetJobStatusQueryVariables = Exact<{
471
516
  type GetJobStatusQuery = {
472
517
  readonly jobStatus?: {
473
518
  readonly id: string;
519
+ readonly documentId: string;
474
520
  readonly status: string;
475
521
  readonly result?: NonNullable<unknown> | null | undefined;
476
522
  readonly error?: string | null | undefined;
523
+ readonly errorName?: string | null | undefined;
477
524
  readonly createdAt: string | Date;
478
525
  readonly completedAt?: string | Date | null | undefined;
526
+ readonly consistencyToken: {
527
+ readonly version: number;
528
+ readonly createdAtUtcIso: string;
529
+ readonly coordinates: ReadonlyArray<{
530
+ readonly documentId: string;
531
+ readonly scope: string;
532
+ readonly branch: string;
533
+ readonly operationIndex: number;
534
+ }>;
535
+ };
536
+ readonly meta: {
537
+ readonly batchId: string;
538
+ readonly batchJobIds: ReadonlyArray<string>;
539
+ };
479
540
  } | null | undefined;
480
541
  };
542
+ type GetDocumentServedQueryVariables = Exact<{
543
+ idOrSlug: Scalars["String"]["input"];
544
+ view?: InputMaybe<ViewFilterInput>;
545
+ }>;
546
+ type GetDocumentServedQuery = {
547
+ readonly documentServed: boolean;
548
+ };
549
+ type GetCreateDefaultsQueryVariables = Exact<{
550
+ parentIdOrSlug?: InputMaybe<Scalars["String"]["input"]>;
551
+ }>;
552
+ type GetCreateDefaultsQuery = {
553
+ readonly createDefaults: {
554
+ readonly signaturePolicy: string;
555
+ readonly protocolVersions: NonNullable<unknown>;
556
+ };
557
+ };
558
+ type GetCreateProtocolVersionsQueryVariables = Exact<{
559
+ parentIdOrSlug?: InputMaybe<Scalars["String"]["input"]>;
560
+ documentType: Scalars["String"]["input"];
561
+ }>;
562
+ type GetCreateProtocolVersionsQuery = {
563
+ readonly createDefaults: {
564
+ readonly protocolVersions: NonNullable<unknown>;
565
+ };
566
+ };
567
+ type GetUndoRedoTargetsQueryVariables = Exact<{
568
+ documentIdOrSlug: Scalars["String"]["input"];
569
+ scope?: InputMaybe<Scalars["String"]["input"]>;
570
+ branch?: InputMaybe<Scalars["String"]["input"]>;
571
+ }>;
572
+ type GetUndoRedoTargetsQuery = {
573
+ readonly undoRedoTargets: {
574
+ readonly undoTarget?: string | null | undefined;
575
+ readonly redoTarget?: string | null | undefined;
576
+ };
577
+ };
578
+ type GetDriveNodesQueryVariables = Exact<{
579
+ driveId: Scalars["ID"]["input"];
580
+ parentFolder?: InputMaybe<Scalars["ID"]["input"]>;
581
+ paging?: InputMaybe<PagingInput>;
582
+ kind?: InputMaybe<DriveNodeKind>;
583
+ }>;
584
+ type GetDriveNodesQuery = {
585
+ readonly driveNodes: {
586
+ readonly nextCursor?: string | null | undefined;
587
+ readonly hasMore: boolean;
588
+ readonly results: ReadonlyArray<{
589
+ readonly id: string;
590
+ readonly driveId: string;
591
+ readonly name: string;
592
+ readonly parentFolder?: string | null | undefined;
593
+ readonly documentType: string;
594
+ } | {
595
+ readonly id: string;
596
+ readonly driveId: string;
597
+ readonly name: string;
598
+ readonly parentFolder?: string | null | undefined;
599
+ }>;
600
+ };
601
+ };
602
+ type GetDriveNodeQueryVariables = Exact<{
603
+ driveId: Scalars["ID"]["input"];
604
+ id: Scalars["ID"]["input"];
605
+ }>;
606
+ type GetDriveNodeQuery = {
607
+ readonly driveNode?: {
608
+ readonly id: string;
609
+ readonly driveId: string;
610
+ readonly name: string;
611
+ readonly parentFolder?: string | null | undefined;
612
+ readonly documentType: string;
613
+ } | {
614
+ readonly id: string;
615
+ readonly driveId: string;
616
+ readonly name: string;
617
+ readonly parentFolder?: string | null | undefined;
618
+ } | null | undefined;
619
+ };
620
+ type GetDriveDescendantsQueryVariables = Exact<{
621
+ driveId: Scalars["ID"]["input"];
622
+ root: Scalars["ID"]["input"];
623
+ }>;
624
+ type GetDriveDescendantsQuery = {
625
+ readonly driveDescendants: ReadonlyArray<{
626
+ readonly id: string;
627
+ readonly driveId: string;
628
+ readonly name: string;
629
+ readonly parentFolder?: string | null | undefined;
630
+ readonly documentType: string;
631
+ } | {
632
+ readonly id: string;
633
+ readonly driveId: string;
634
+ readonly name: string;
635
+ readonly parentFolder?: string | null | undefined;
636
+ }>;
637
+ };
481
638
  type EvaluateActionsQueryVariables = Exact<{
482
- documentIdentifier: Scalars["String"]["input"];
639
+ documentIdOrSlug: Scalars["String"]["input"];
483
640
  branch?: InputMaybe<Scalars["String"]["input"]>;
484
641
  candidates: ReadonlyArray<ActionCandidateInput>;
485
642
  }>;
@@ -497,7 +654,7 @@ type EvaluateActionsQuery = {
497
654
  };
498
655
  type CreateDocumentMutationVariables = Exact<{
499
656
  document: Scalars["JSONObject"]["input"];
500
- parentIdentifier?: InputMaybe<Scalars["String"]["input"]>;
657
+ parentIdOrSlug?: InputMaybe<Scalars["String"]["input"]>;
501
658
  }>;
502
659
  type CreateDocumentMutation = {
503
660
  readonly createDocument: {
@@ -505,6 +662,8 @@ type CreateDocumentMutation = {
505
662
  readonly slug?: string | null | undefined;
506
663
  readonly name: string;
507
664
  readonly documentType: string;
665
+ readonly meta?: NonNullable<unknown> | null | undefined;
666
+ readonly protocolVersions?: NonNullable<unknown> | null | undefined;
508
667
  readonly state: NonNullable<unknown>;
509
668
  readonly createdAtUtcIso: string | Date;
510
669
  readonly lastModifiedAtUtcIso: string | Date;
@@ -516,7 +675,7 @@ type CreateDocumentMutation = {
516
675
  };
517
676
  type CreateEmptyDocumentMutationVariables = Exact<{
518
677
  documentType: Scalars["String"]["input"];
519
- parentIdentifier?: InputMaybe<Scalars["String"]["input"]>;
678
+ parentIdOrSlug?: InputMaybe<Scalars["String"]["input"]>;
520
679
  }>;
521
680
  type CreateEmptyDocumentMutation = {
522
681
  readonly createEmptyDocument: {
@@ -524,6 +683,8 @@ type CreateEmptyDocumentMutation = {
524
683
  readonly slug?: string | null | undefined;
525
684
  readonly name: string;
526
685
  readonly documentType: string;
686
+ readonly meta?: NonNullable<unknown> | null | undefined;
687
+ readonly protocolVersions?: NonNullable<unknown> | null | undefined;
527
688
  readonly state: NonNullable<unknown>;
528
689
  readonly createdAtUtcIso: string | Date;
529
690
  readonly lastModifiedAtUtcIso: string | Date;
@@ -534,7 +695,7 @@ type CreateEmptyDocumentMutation = {
534
695
  };
535
696
  };
536
697
  type MutateDocumentMutationVariables = Exact<{
537
- documentIdentifier: Scalars["String"]["input"];
698
+ documentIdOrSlug: Scalars["String"]["input"];
538
699
  actions: ReadonlyArray<ActionInput>;
539
700
  branch?: InputMaybe<Scalars["String"]["input"]>;
540
701
  }>;
@@ -544,6 +705,8 @@ type MutateDocumentMutation = {
544
705
  readonly slug?: string | null | undefined;
545
706
  readonly name: string;
546
707
  readonly documentType: string;
708
+ readonly meta?: NonNullable<unknown> | null | undefined;
709
+ readonly protocolVersions?: NonNullable<unknown> | null | undefined;
547
710
  readonly state: NonNullable<unknown>;
548
711
  readonly createdAtUtcIso: string | Date;
549
712
  readonly lastModifiedAtUtcIso: string | Date;
@@ -554,22 +717,72 @@ type MutateDocumentMutation = {
554
717
  };
555
718
  };
556
719
  type MutateDocumentAsyncMutationVariables = Exact<{
557
- documentIdentifier: Scalars["String"]["input"];
720
+ documentIdOrSlug: Scalars["String"]["input"];
558
721
  actions: ReadonlyArray<ActionInput>;
559
722
  branch?: InputMaybe<Scalars["String"]["input"]>;
560
723
  }>;
561
724
  type MutateDocumentAsyncMutation = {
562
725
  readonly mutateDocumentAsync: {
563
726
  readonly id: string;
727
+ readonly documentId: string;
564
728
  readonly status: string;
565
729
  readonly result?: NonNullable<unknown> | null | undefined;
566
730
  readonly error?: string | null | undefined;
731
+ readonly errorName?: string | null | undefined;
567
732
  readonly createdAt: string | Date;
568
733
  readonly completedAt?: string | Date | null | undefined;
734
+ readonly consistencyToken: {
735
+ readonly version: number;
736
+ readonly createdAtUtcIso: string;
737
+ readonly coordinates: ReadonlyArray<{
738
+ readonly documentId: string;
739
+ readonly scope: string;
740
+ readonly branch: string;
741
+ readonly operationIndex: number;
742
+ }>;
743
+ };
744
+ readonly meta: {
745
+ readonly batchId: string;
746
+ readonly batchJobIds: ReadonlyArray<string>;
747
+ };
748
+ };
749
+ };
750
+ type ExecuteBatchMutationVariables = Exact<{
751
+ jobs: ReadonlyArray<ExecutionJobInput>;
752
+ }>;
753
+ type ExecuteBatchMutation = {
754
+ readonly executeBatch: {
755
+ readonly jobs: ReadonlyArray<{
756
+ readonly key: string;
757
+ readonly job: {
758
+ readonly id: string;
759
+ readonly documentId: string;
760
+ readonly status: string;
761
+ readonly result?: NonNullable<unknown> | null | undefined;
762
+ readonly error?: string | null | undefined;
763
+ readonly errorName?: string | null | undefined;
764
+ readonly createdAt: string | Date;
765
+ readonly completedAt?: string | Date | null | undefined;
766
+ readonly consistencyToken: {
767
+ readonly version: number;
768
+ readonly createdAtUtcIso: string;
769
+ readonly coordinates: ReadonlyArray<{
770
+ readonly documentId: string;
771
+ readonly scope: string;
772
+ readonly branch: string;
773
+ readonly operationIndex: number;
774
+ }>;
775
+ };
776
+ readonly meta: {
777
+ readonly batchId: string;
778
+ readonly batchJobIds: ReadonlyArray<string>;
779
+ };
780
+ };
781
+ }>;
569
782
  };
570
783
  };
571
784
  type RenameDocumentMutationVariables = Exact<{
572
- documentIdentifier: Scalars["String"]["input"];
785
+ documentIdOrSlug: Scalars["String"]["input"];
573
786
  name: Scalars["String"]["input"];
574
787
  branch?: InputMaybe<Scalars["String"]["input"]>;
575
788
  }>;
@@ -579,6 +792,8 @@ type RenameDocumentMutation = {
579
792
  readonly slug?: string | null | undefined;
580
793
  readonly name: string;
581
794
  readonly documentType: string;
795
+ readonly meta?: NonNullable<unknown> | null | undefined;
796
+ readonly protocolVersions?: NonNullable<unknown> | null | undefined;
582
797
  readonly state: NonNullable<unknown>;
583
798
  readonly createdAtUtcIso: string | Date;
584
799
  readonly lastModifiedAtUtcIso: string | Date;
@@ -589,7 +804,7 @@ type RenameDocumentMutation = {
589
804
  };
590
805
  };
591
806
  type SetPreferredEditorMutationVariables = Exact<{
592
- documentIdentifier: Scalars["String"]["input"];
807
+ documentIdOrSlug: Scalars["String"]["input"];
593
808
  preferredEditor?: InputMaybe<Scalars["String"]["input"]>;
594
809
  branch?: InputMaybe<Scalars["String"]["input"]>;
595
810
  }>;
@@ -599,6 +814,8 @@ type SetPreferredEditorMutation = {
599
814
  readonly slug?: string | null | undefined;
600
815
  readonly name: string;
601
816
  readonly documentType: string;
817
+ readonly meta?: NonNullable<unknown> | null | undefined;
818
+ readonly protocolVersions?: NonNullable<unknown> | null | undefined;
602
819
  readonly state: NonNullable<unknown>;
603
820
  readonly createdAtUtcIso: string | Date;
604
821
  readonly lastModifiedAtUtcIso: string | Date;
@@ -609,8 +826,8 @@ type SetPreferredEditorMutation = {
609
826
  };
610
827
  };
611
828
  type AddRelationshipMutationVariables = Exact<{
612
- sourceIdentifier: Scalars["String"]["input"];
613
- targetIdentifier: Scalars["String"]["input"];
829
+ sourceIdOrSlug: Scalars["String"]["input"];
830
+ targetIdOrSlug: Scalars["String"]["input"];
614
831
  relationshipType: Scalars["String"]["input"];
615
832
  metadata?: InputMaybe<Scalars["JSONObject"]["input"]>;
616
833
  branch?: InputMaybe<Scalars["String"]["input"]>;
@@ -621,6 +838,8 @@ type AddRelationshipMutation = {
621
838
  readonly slug?: string | null | undefined;
622
839
  readonly name: string;
623
840
  readonly documentType: string;
841
+ readonly meta?: NonNullable<unknown> | null | undefined;
842
+ readonly protocolVersions?: NonNullable<unknown> | null | undefined;
624
843
  readonly state: NonNullable<unknown>;
625
844
  readonly createdAtUtcIso: string | Date;
626
845
  readonly lastModifiedAtUtcIso: string | Date;
@@ -631,8 +850,8 @@ type AddRelationshipMutation = {
631
850
  };
632
851
  };
633
852
  type UpdateRelationshipMutationVariables = Exact<{
634
- sourceIdentifier: Scalars["String"]["input"];
635
- targetIdentifier: Scalars["String"]["input"];
853
+ sourceIdOrSlug: Scalars["String"]["input"];
854
+ targetIdOrSlug: Scalars["String"]["input"];
636
855
  relationshipType: Scalars["String"]["input"];
637
856
  metadata?: InputMaybe<Scalars["JSONObject"]["input"]>;
638
857
  branch?: InputMaybe<Scalars["String"]["input"]>;
@@ -643,6 +862,8 @@ type UpdateRelationshipMutation = {
643
862
  readonly slug?: string | null | undefined;
644
863
  readonly name: string;
645
864
  readonly documentType: string;
865
+ readonly meta?: NonNullable<unknown> | null | undefined;
866
+ readonly protocolVersions?: NonNullable<unknown> | null | undefined;
646
867
  readonly state: NonNullable<unknown>;
647
868
  readonly createdAtUtcIso: string | Date;
648
869
  readonly lastModifiedAtUtcIso: string | Date;
@@ -653,8 +874,8 @@ type UpdateRelationshipMutation = {
653
874
  };
654
875
  };
655
876
  type RemoveRelationshipMutationVariables = Exact<{
656
- sourceIdentifier: Scalars["String"]["input"];
657
- targetIdentifier: Scalars["String"]["input"];
877
+ sourceIdOrSlug: Scalars["String"]["input"];
878
+ targetIdOrSlug: Scalars["String"]["input"];
658
879
  relationshipType: Scalars["String"]["input"];
659
880
  branch?: InputMaybe<Scalars["String"]["input"]>;
660
881
  }>;
@@ -664,6 +885,8 @@ type RemoveRelationshipMutation = {
664
885
  readonly slug?: string | null | undefined;
665
886
  readonly name: string;
666
887
  readonly documentType: string;
888
+ readonly meta?: NonNullable<unknown> | null | undefined;
889
+ readonly protocolVersions?: NonNullable<unknown> | null | undefined;
667
890
  readonly state: NonNullable<unknown>;
668
891
  readonly createdAtUtcIso: string | Date;
669
892
  readonly lastModifiedAtUtcIso: string | Date;
@@ -674,9 +897,9 @@ type RemoveRelationshipMutation = {
674
897
  };
675
898
  };
676
899
  type MoveRelationshipMutationVariables = Exact<{
677
- sourceParentIdentifier: Scalars["String"]["input"];
678
- targetParentIdentifier: Scalars["String"]["input"];
679
- targetIdentifier: Scalars["String"]["input"];
900
+ sourceParentIdOrSlug: Scalars["String"]["input"];
901
+ targetParentIdOrSlug: Scalars["String"]["input"];
902
+ targetIdOrSlug: Scalars["String"]["input"];
680
903
  relationshipType: Scalars["String"]["input"];
681
904
  branch?: InputMaybe<Scalars["String"]["input"]>;
682
905
  }>;
@@ -687,6 +910,8 @@ type MoveRelationshipMutation = {
687
910
  readonly slug?: string | null | undefined;
688
911
  readonly name: string;
689
912
  readonly documentType: string;
913
+ readonly meta?: NonNullable<unknown> | null | undefined;
914
+ readonly protocolVersions?: NonNullable<unknown> | null | undefined;
690
915
  readonly state: NonNullable<unknown>;
691
916
  readonly createdAtUtcIso: string | Date;
692
917
  readonly lastModifiedAtUtcIso: string | Date;
@@ -700,6 +925,8 @@ type MoveRelationshipMutation = {
700
925
  readonly slug?: string | null | undefined;
701
926
  readonly name: string;
702
927
  readonly documentType: string;
928
+ readonly meta?: NonNullable<unknown> | null | undefined;
929
+ readonly protocolVersions?: NonNullable<unknown> | null | undefined;
703
930
  readonly state: NonNullable<unknown>;
704
931
  readonly createdAtUtcIso: string | Date;
705
932
  readonly lastModifiedAtUtcIso: string | Date;
@@ -711,14 +938,14 @@ type MoveRelationshipMutation = {
711
938
  };
712
939
  };
713
940
  type DeleteDocumentMutationVariables = Exact<{
714
- identifier: Scalars["String"]["input"];
941
+ idOrSlug: Scalars["String"]["input"];
715
942
  propagate?: InputMaybe<PropagationMode>;
716
943
  }>;
717
944
  type DeleteDocumentMutation = {
718
945
  readonly deleteDocument: boolean;
719
946
  };
720
947
  type DeleteDocumentsMutationVariables = Exact<{
721
- identifiers: ReadonlyArray<Scalars["String"]["input"]>;
948
+ idsOrSlugs: ReadonlyArray<Scalars["String"]["input"]>;
722
949
  propagate?: InputMaybe<PropagationMode>;
723
950
  }>;
724
951
  type DeleteDocumentsMutation = {
@@ -736,6 +963,8 @@ type DocumentChangesSubscription = {
736
963
  readonly slug?: string | null | undefined;
737
964
  readonly name: string;
738
965
  readonly documentType: string;
966
+ readonly meta?: NonNullable<unknown> | null | undefined;
967
+ readonly protocolVersions?: NonNullable<unknown> | null | undefined;
739
968
  readonly state: NonNullable<unknown>;
740
969
  readonly createdAtUtcIso: string | Date;
741
970
  readonly lastModifiedAtUtcIso: string | Date;
@@ -765,11 +994,15 @@ type PollSyncEnvelopesQueryVariables = Exact<{
765
994
  channelId: Scalars["String"]["input"];
766
995
  outboxAck: Scalars["Int"]["input"];
767
996
  outboxLatest: Scalars["Int"]["input"];
997
+ manifestRevision?: InputMaybe<Scalars["String"]["input"]>;
998
+ refusals?: InputMaybe<ReadonlyArray<SyncRefusalInput>>;
768
999
  }>;
769
1000
  type PollSyncEnvelopesQuery = {
770
1001
  readonly pollSyncEnvelopes: {
771
1002
  readonly ackOrdinal: number;
772
1003
  readonly hasMore: boolean;
1004
+ readonly manifestRevision?: string | null | undefined;
1005
+ readonly peerManifestRevision?: string | null | undefined;
773
1006
  readonly envelopes: ReadonlyArray<{
774
1007
  readonly type: SyncEnvelopeType;
775
1008
  readonly key?: string | null | undefined;
@@ -835,10 +1068,12 @@ type TouchChannelMutation = {
835
1068
  readonly touchChannel: {
836
1069
  readonly success: boolean;
837
1070
  readonly ackOrdinal: number;
1071
+ readonly manifest?: NonNullable<unknown> | null | undefined;
838
1072
  };
839
1073
  };
840
1074
  type PushSyncEnvelopesMutationVariables = Exact<{
841
1075
  envelopes: ReadonlyArray<SyncEnvelopeInput>;
1076
+ peerManifestRevision?: InputMaybe<Scalars["String"]["input"]>;
842
1077
  }>;
843
1078
  type PushSyncEnvelopesMutation = {
844
1079
  readonly pushSyncEnvelopes: boolean;
@@ -855,11 +1090,19 @@ declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper)
855
1090
  FindDocuments(variables?: FindDocumentsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<FindDocumentsQuery>;
856
1091
  GetDocumentOperations(variables: GetDocumentOperationsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetDocumentOperationsQuery>;
857
1092
  GetJobStatus(variables: GetJobStatusQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetJobStatusQuery>;
1093
+ GetDocumentServed(variables: GetDocumentServedQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetDocumentServedQuery>;
1094
+ GetCreateDefaults(variables?: GetCreateDefaultsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetCreateDefaultsQuery>;
1095
+ GetCreateProtocolVersions(variables: GetCreateProtocolVersionsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetCreateProtocolVersionsQuery>;
1096
+ GetUndoRedoTargets(variables: GetUndoRedoTargetsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetUndoRedoTargetsQuery>;
1097
+ GetDriveNodes(variables: GetDriveNodesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetDriveNodesQuery>;
1098
+ GetDriveNode(variables: GetDriveNodeQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetDriveNodeQuery>;
1099
+ GetDriveDescendants(variables: GetDriveDescendantsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetDriveDescendantsQuery>;
858
1100
  EvaluateActions(variables: EvaluateActionsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<EvaluateActionsQuery>;
859
1101
  CreateDocument(variables: CreateDocumentMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<CreateDocumentMutation>;
860
1102
  CreateEmptyDocument(variables: CreateEmptyDocumentMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<CreateEmptyDocumentMutation>;
861
1103
  MutateDocument(variables: MutateDocumentMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<MutateDocumentMutation>;
862
1104
  MutateDocumentAsync(variables: MutateDocumentAsyncMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<MutateDocumentAsyncMutation>;
1105
+ ExecuteBatch(variables: ExecuteBatchMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<ExecuteBatchMutation>;
863
1106
  RenameDocument(variables: RenameDocumentMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<RenameDocumentMutation>;
864
1107
  SetPreferredEditor(variables: SetPreferredEditorMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<SetPreferredEditorMutation>;
865
1108
  AddRelationship(variables: AddRelationshipMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<AddRelationshipMutation>;
@@ -876,59 +1119,6 @@ declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper)
876
1119
  };
877
1120
  type Sdk = ReturnType<typeof getSdk>;
878
1121
  //#endregion
879
- //#region src/graphql/constants.d.ts
880
- declare const DEFAULT_DRIVE_ID: "powerhouse";
881
- declare const DEFAULT_SWITCHBOARD_URL: "http://localhost:4001/graphql";
882
- declare const graphqlEventsToSyncDrive: readonly ["CreateEmptyDocument", "CreateDocument", "AddChildren", "RemoveChildren", "MoveChildren", "DeleteDocument", "DeleteDocuments"];
883
- declare const graphqlDocumentEvents: readonly ["MutateDocument", "MutateDocumentAsync", "DeleteDocument"];
884
- declare const graphqlDocumentsEvents: readonly ["DeleteDocuments"];
885
- //#endregion
886
- //#region src/graphql/types.d.ts
887
- type DocumentOperationsPage = GetDocumentOperationsQuery["documentOperations"];
888
- type DocumentResult = NonNullable<GetDocumentQuery["document"]>;
889
- /** Arguments for running a hand-authored GraphQL document through the SDK. */
890
- type RunDocumentOptions = {
891
- /** Operation name reported to the middleware (auth, logging, tracing). */
892
- operationName: string;
893
- /** Operation type reported to the middleware. Defaults to `"query"`. */
894
- operationType?: string;
895
- /** The document to run: a source string or a parsed `DocumentNode`. */
896
- document: RequestDocument;
897
- variables?: Variables;
898
- requestHeaders?: Record<string, string>;
899
- signal?: RequestInit["signal"];
900
- };
901
- type ReactorGraphQLClient = Sdk & {
902
- /**
903
- * Run a hand-authored GraphQL document through the same transport and
904
- * middleware as the generated SDK methods. Used for selections the code
905
- * generator cannot express, such as a mutation that also returns the
906
- * operations it produced.
907
- */
908
- RunDocument: <TData>(options: RunDocumentOptions) => Promise<TData>;
909
- /** Fetch multiple documentOperations in a single request via aliases. */
910
- BatchGetDocumentOperations?: (filters: OperationsFilterInput[], pagings: (PagingInput | undefined | null)[]) => Promise<DocumentOperationsPage[]>;
911
- /** Fetch a document and multiple documentOperations in a single request. */
912
- BatchGetDocumentWithOperations?: (identifier: string, view: ViewFilterInput | undefined, filters: OperationsFilterInput[], pagings: (PagingInput | undefined)[]) => Promise<{
913
- document: DocumentResult | null;
914
- operations: DocumentOperationsPage[];
915
- }>;
916
- };
917
- type GraphQLClientDocumentEvent = CustomEvent<{
918
- identifier: string;
919
- }>;
920
- type GraphQLClientDocumentsEvent = CustomEvent<{
921
- identifiers: string[];
922
- }>;
923
- type GraphQLDocumentEventOperationName = (typeof graphqlDocumentEvents)[number];
924
- type GraphQLDocumentEventsOperationName = (typeof graphqlDocumentsEvents)[number];
925
- type GraphQLDocumentEvents = Record<GraphQLDocumentEventOperationName, GraphQLClientDocumentEvent>;
926
- type GraphQLDocumentsEvents = Record<GraphQLDocumentEventsOperationName, GraphQLClientDocumentsEvent>;
927
- type GraphQLClientWindowEvents = GraphQLDocumentEvents & GraphQLDocumentsEvents;
928
- type TStateSchemaZodObject = z.ZodObject<{
929
- state: z.ZodObject;
930
- }>;
931
- //#endregion
932
- export { ViewFilterInput as A, GetDocumentQuery as C, PropagationMode as D, PhDocumentFieldsFragment as E, Scalars as O, GetDocumentOperationsQuery as S, MutateDocumentMutation as T, CreateDocumentMutation as _, GraphQLDocumentEvents as a, DocumentChangesSubscription as b, ReactorGraphQLClient as c, DEFAULT_DRIVE_ID as d, DEFAULT_SWITCHBOARD_URL as f, ActionInput as g, graphqlEventsToSyncDrive as h, GraphQLDocumentEventOperationName as i, SdkFunctionWrapper as k, RunDocumentOptions as l, graphqlDocumentsEvents as m, GraphQLClientDocumentsEvent as n, GraphQLDocumentEventsOperationName as o, graphqlDocumentEvents as p, GraphQLClientWindowEvents as r, GraphQLDocumentsEvents as s, GraphQLClientDocumentEvent as t, TStateSchemaZodObject as u, DeleteDocumentMutation as v, GetDocumentWithOperationsQuery as w, FindDocumentsQuery as x, DeleteDocumentsMutation as y };
1122
+ export { Sdk as _, DocumentChangesSubscription as a, GetDocumentQuery as c, MutateDocumentMutation as d, OperationsFilterInput as f, Scalars as g, PropagationMode as h, DeleteDocumentsMutation as i, GetDocumentWithOperationsQuery as l, PhDocumentFieldsFragment as m, CreateDocumentMutation as n, FindDocumentsQuery as o, PagingInput as p, DeleteDocumentMutation as r, GetDocumentOperationsQuery as s, ActionInput as t, JobChangesSubscription as u, SdkFunctionWrapper as v, ViewFilterInput as y };
933
1123
  export {};
934
- //# sourceMappingURL=types-B7-_l_wE.d.ts.map
1124
+ //# sourceMappingURL=schema-C6ECceaN.d.ts.map