@powerhousedao/reactor-api 6.0.0-dev.35 → 6.0.0-dev.37

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 (41) hide show
  1. package/dist/codegen.js +1 -1
  2. package/dist/codegen.js.map +1 -1
  3. package/dist/src/graphql/index.d.ts +1 -0
  4. package/dist/src/graphql/index.d.ts.map +1 -1
  5. package/dist/src/graphql/index.js +1 -0
  6. package/dist/src/graphql/index.js.map +1 -1
  7. package/dist/src/graphql/reactor/factory.d.ts +1 -1
  8. package/dist/src/graphql/reactor/factory.d.ts.map +1 -1
  9. package/dist/src/graphql/reactor/factory.js +1 -1
  10. package/dist/src/graphql/reactor/factory.js.map +1 -1
  11. package/dist/src/graphql/reactor/gen/graphql.d.ts +79 -51
  12. package/dist/src/graphql/reactor/gen/graphql.d.ts.map +1 -1
  13. package/dist/src/graphql/reactor/gen/graphql.js +33 -9
  14. package/dist/src/graphql/reactor/gen/graphql.js.map +1 -1
  15. package/dist/src/graphql/reactor/index.d.ts +1 -1
  16. package/dist/src/graphql/reactor/index.d.ts.map +1 -1
  17. package/dist/src/graphql/reactor/index.js +1 -1
  18. package/dist/src/graphql/reactor/index.js.map +1 -1
  19. package/dist/src/graphql/reactor/requester.with-zod.d.ts.map +1 -1
  20. package/dist/src/graphql/reactor/requester.with-zod.js +100 -38
  21. package/dist/src/graphql/reactor/requester.with-zod.js.map +1 -1
  22. package/dist/src/graphql/reactor/resolvers.d.ts +2 -0
  23. package/dist/src/graphql/reactor/resolvers.d.ts.map +1 -1
  24. package/dist/src/graphql/reactor/resolvers.js +25 -6
  25. package/dist/src/graphql/reactor/resolvers.js.map +1 -1
  26. package/dist/src/graphql/reactor/schema.graphql +17 -0
  27. package/dist/src/graphql/reactor/subgraph.d.ts.map +1 -1
  28. package/dist/src/graphql/reactor/subgraph.js +67 -105
  29. package/dist/src/graphql/reactor/subgraph.js.map +1 -1
  30. package/dist/src/graphql/reactor/validation.d.ts +24 -0
  31. package/dist/src/graphql/reactor/validation.d.ts.map +1 -1
  32. package/dist/src/graphql/reactor/validation.js +15 -0
  33. package/dist/src/graphql/reactor/validation.js.map +1 -1
  34. package/dist/test/reactor-client.test.js +4 -4
  35. package/dist/test/reactor-client.test.js.map +1 -1
  36. package/dist/test/two-reactor-gql-sync.test.js +59 -0
  37. package/dist/test/two-reactor-gql-sync.test.js.map +1 -1
  38. package/dist/test/utils/gql-resolver-bridge.d.ts.map +1 -1
  39. package/dist/test/utils/gql-resolver-bridge.js.map +1 -1
  40. package/dist/tsconfig.tsbuildinfo +1 -1
  41. package/package.json +17 -7
package/dist/codegen.js CHANGED
@@ -28,7 +28,7 @@ const config = {
28
28
  immutableTypes: true,
29
29
  maybeValue: "T | null | undefined",
30
30
  arrayInputCoercion: false,
31
- schema: "zod",
31
+ schema: "zodv4",
32
32
  gqlImport: "graphql-tag#gql",
33
33
  },
34
34
  },
@@ -1 +1 @@
1
- {"version":3,"file":"codegen.js","sourceRoot":"","sources":["../codegen.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,GAAkB;IAC5B,MAAM,EAAE,iCAAiC;IACzC,SAAS,EAAE,CAAC,0CAA0C,CAAC;IACvD,SAAS,EAAE;QACT,sCAAsC,EAAE;YACtC,OAAO,EAAE;gBACP,YAAY;gBACZ,uBAAuB;gBACvB,sBAAsB;gBACtB,8BAA8B;gBAC9B,wBAAwB;aACzB;YACD,MAAM,EAAE;gBACN,WAAW,EAAE,wBAAwB;gBACrC,OAAO,EAAE;oBACP,UAAU,EAAE,sBAAsB;oBAClC,QAAQ,EAAE,eAAe;iBAC1B;gBACD,aAAa,EAAE;oBACb,UAAU,EAAE,kDAAkD;oBAC9D,QAAQ,EAAE,iCAAiC;iBAC5C;gBACD,iBAAiB,EAAE,IAAI;gBACvB,aAAa,EAAE,IAAI;gBACnB,YAAY,EAAE,IAAI;gBAClB,YAAY,EAAE,KAAK;gBACnB,UAAU,EAAE,KAAK;gBACjB,cAAc,EAAE,IAAI;gBACpB,UAAU,EAAE,sBAAsB;gBAClC,kBAAkB,EAAE,KAAK;gBACzB,MAAM,EAAE,KAAK;gBACb,SAAS,EAAE,iBAAiB;aAC7B;SACF;KACF;CACF,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"codegen.js","sourceRoot":"","sources":["../codegen.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,GAAkB;IAC5B,MAAM,EAAE,iCAAiC;IACzC,SAAS,EAAE,CAAC,0CAA0C,CAAC;IACvD,SAAS,EAAE;QACT,sCAAsC,EAAE;YACtC,OAAO,EAAE;gBACP,YAAY;gBACZ,uBAAuB;gBACvB,sBAAsB;gBACtB,8BAA8B;gBAC9B,wBAAwB;aACzB;YACD,MAAM,EAAE;gBACN,WAAW,EAAE,wBAAwB;gBACrC,OAAO,EAAE;oBACP,UAAU,EAAE,sBAAsB;oBAClC,QAAQ,EAAE,eAAe;iBAC1B;gBACD,aAAa,EAAE;oBACb,UAAU,EAAE,kDAAkD;oBAC9D,QAAQ,EAAE,iCAAiC;iBAC5C;gBACD,iBAAiB,EAAE,IAAI;gBACvB,aAAa,EAAE,IAAI;gBACnB,YAAY,EAAE,IAAI;gBAClB,YAAY,EAAE,KAAK;gBACnB,UAAU,EAAE,KAAK;gBACjB,cAAc,EAAE,IAAI;gBACpB,UAAU,EAAE,sBAAsB;gBAClC,kBAAkB,EAAE,KAAK;gBACzB,MAAM,EAAE,OAAO;gBACf,SAAS,EAAE,iBAAiB;aAC7B;SACF;KACF;CACF,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -4,6 +4,7 @@ export * from "./base-subgraph.js";
4
4
  export * from "./drive-subgraph.js";
5
5
  export * from "./graphql-manager.js";
6
6
  export * from "./playground.js";
7
+ export * from "./reactor/index.js";
7
8
  export * from "./system/index.js";
8
9
  export * from "./utils.js";
9
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/graphql/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/graphql/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC"}
@@ -4,6 +4,7 @@ export * from "./base-subgraph.js";
4
4
  export * from "./drive-subgraph.js";
5
5
  export * from "./graphql-manager.js";
6
6
  export * from "./playground.js";
7
+ export * from "./reactor/index.js";
7
8
  export * from "./system/index.js";
8
9
  export * from "./utils.js";
9
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/graphql/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/graphql/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { FetchLike } from "./requester.js";
2
- export declare function createReactorClient(url: string, fetchImpl: FetchLike, headers?: Record<string, string>): {
2
+ export declare function createReactorGraphQLClient(url: string, fetchImpl?: FetchLike, headers?: Record<string, string>): {
3
3
  GetDocumentModels(variables?: import("./gen/graphql.js").Exact<{
4
4
  namespace?: import("./gen/graphql.js").InputMaybe<import("./gen/graphql.js").Scalars["String"]["input"]>;
5
5
  paging?: import("./gen/graphql.js").InputMaybe<import("./gen/graphql.js").PagingInput>;
@@ -1 +1 @@
1
- {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../../src/graphql/reactor/factory.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAGhD,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,SAAS,EACpB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;;0DAK6mf,4CAAiB;;;;oBAA6lB,4CAAkB;;;;0BAA+zB,4CAAkB;;;;;yBAAy4B,4CAAkB;;;;;;;;;;eAAkvD,4CAAkB;;;kBAAuc,gDAAsB;iEAA2C,4CAAiB;;;sBAA6lB,4CAAkB;iEAA2C,4CAAiB;;;4BAAwmB,4CAAkB;+BAAoC,gDAAqB;;;;4BAAyoB,4CAAkB;+BAAoC,gDAAqB;;;;4BAA0N,4CAAkB;cAAkB,4CAAkB;uDAAiC,4CAAiB;;;0BAAylB,4CAAkB;2CAAgD,4CAAiB;uDAAkC,4CAAiB;;;0BAAslB,4CAAkB;2CAAgD,4CAAiB;uDAAkC,4CAAiB;;;gCAAgmB,4CAAkB;gCAAoC,4CAAkB;2CAAgD,4CAAiB;uDAAkC,4CAAiB;;;oBAAmnC,4CAAkB;;;;mCAA2N,4CAAiB;;;;;;;;eAA8nC,4CAAkB;;EADn22B"}
1
+ {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../../src/graphql/reactor/factory.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAGhD,wBAAgB,0BAA0B,CACxC,GAAG,EAAE,MAAM,EACX,SAAS,GAAE,SAAiB,EAC5B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;;0DAKskhB,4CAAiB;;;;oBAA6lB,4CAAkB;;;;0BAA+zB,4CAAkB;;;;;yBAAy4B,4CAAkB;;;;;;;;;;eAAkvD,4CAAkB;;;kBAAuc,gDAAsB;iEAA2C,4CAAiB;;;sBAA6lB,4CAAkB;iEAA2C,4CAAiB;;;4BAAwmB,4CAAkB;+BAAoC,gDAAqB;;;;4BAAyoB,4CAAkB;+BAAoC,gDAAqB;;;;4BAA0N,4CAAkB;cAAkB,4CAAkB;uDAAiC,4CAAiB;;;0BAAylB,4CAAkB;2CAAgD,4CAAiB;uDAAkC,4CAAiB;;;0BAAslB,4CAAkB;2CAAgD,4CAAiB;uDAAkC,4CAAiB;;;gCAAgmB,4CAAkB;gCAAoC,4CAAkB;2CAAgD,4CAAiB;uDAAkC,4CAAiB;;;oBAAmnC,4CAAkB;;;;mCAA2N,4CAAiB;;;;;;;;eAA8nC,4CAAkB;;EAD5z4B"}
@@ -1,6 +1,6 @@
1
1
  import { getSdk } from "./gen/graphql.js";
2
2
  import { createValidatingRequester } from "./requester.with-zod.js";
3
- export function createReactorClient(url, fetchImpl, headers) {
3
+ export function createReactorGraphQLClient(url, fetchImpl = fetch, headers) {
4
4
  const requester = createValidatingRequester(url, fetchImpl, headers);
5
5
  return getSdk(requester);
6
6
  }
@@ -1 +1 @@
1
- {"version":3,"file":"factory.js","sourceRoot":"","sources":["../../../../src/graphql/reactor/factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAEpE,MAAM,UAAU,mBAAmB,CACjC,GAAW,EACX,SAAoB,EACpB,OAAgC;IAEhC,MAAM,SAAS,GAAG,yBAAyB,CAAC,GAAG,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IACrE,OAAO,MAAM,CAAC,SAAS,CAAC,CAAC;AAC3B,CAAC"}
1
+ {"version":3,"file":"factory.js","sourceRoot":"","sources":["../../../../src/graphql/reactor/factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAEpE,MAAM,UAAU,0BAA0B,CACxC,GAAW,EACX,YAAuB,KAAK,EAC5B,OAAgC;IAEhC,MAAM,SAAS,GAAG,yBAAyB,CAAC,GAAG,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IACrE,OAAO,MAAM,CAAC,SAAS,CAAC,CAAC;AAC3B,CAAC"}
@@ -1,6 +1,7 @@
1
- import type { DocumentNode, GraphQLResolveInfo, GraphQLScalarType, GraphQLScalarTypeConfig } from "graphql";
2
- import { z } from "zod/v3";
1
+ import type { GraphQLResolveInfo, GraphQLScalarType, GraphQLScalarTypeConfig } from "graphql";
3
2
  import type { Context } from "../../types.js";
3
+ import * as z from "zod";
4
+ import type { DocumentNode } from "graphql";
4
5
  export type Maybe<T> = T | null | undefined;
5
6
  export type InputMaybe<T> = T | null | undefined;
6
7
  export type Exact<T extends {
@@ -100,12 +101,6 @@ export type ChannelMeta = {
100
101
  export type ChannelMetaInput = {
101
102
  readonly id: Scalars["String"]["input"];
102
103
  };
103
- export type CreateChannelInput = {
104
- readonly collectionId: Scalars["String"]["input"];
105
- readonly filter: RemoteFilterInput;
106
- readonly id: Scalars["String"]["input"];
107
- readonly name: Scalars["String"]["input"];
108
- };
109
104
  export type DocumentChangeContext = {
110
105
  readonly childId?: Maybe<Scalars["String"]["output"]>;
111
106
  readonly parentId?: Maybe<Scalars["String"]["output"]>;
@@ -138,6 +133,14 @@ export type DocumentModelResultPage = {
138
133
  readonly items: ReadonlyArray<DocumentModelGlobalState>;
139
134
  readonly totalCount: Scalars["Int"]["output"];
140
135
  };
136
+ export type DocumentOperationsFilterInput = {
137
+ readonly actionTypes?: InputMaybe<ReadonlyArray<Scalars["String"]["input"]>>;
138
+ readonly branch?: InputMaybe<Scalars["String"]["input"]>;
139
+ readonly scopes?: InputMaybe<ReadonlyArray<Scalars["String"]["input"]>>;
140
+ readonly sinceRevision?: InputMaybe<Scalars["Int"]["input"]>;
141
+ readonly timestampFrom?: InputMaybe<Scalars["String"]["input"]>;
142
+ readonly timestampTo?: InputMaybe<Scalars["String"]["input"]>;
143
+ };
141
144
  export type DocumentWithChildren = {
142
145
  readonly childIds: ReadonlyArray<Scalars["String"]["output"]>;
143
146
  readonly document: PhDocument;
@@ -162,7 +165,6 @@ export type MoveChildrenResult = {
162
165
  };
163
166
  export type Mutation = {
164
167
  readonly addChildren: PhDocument;
165
- readonly createChannel: Scalars["Boolean"]["output"];
166
168
  readonly createDocument: PhDocument;
167
169
  readonly createEmptyDocument: PhDocument;
168
170
  readonly deleteDocument: Scalars["Boolean"]["output"];
@@ -173,15 +175,13 @@ export type Mutation = {
173
175
  readonly pushSyncEnvelopes: Scalars["Boolean"]["output"];
174
176
  readonly removeChildren: PhDocument;
175
177
  readonly renameDocument: PhDocument;
178
+ readonly touchChannel: Scalars["Boolean"]["output"];
176
179
  };
177
180
  export type MutationAddChildrenArgs = {
178
181
  branch?: InputMaybe<Scalars["String"]["input"]>;
179
182
  documentIdentifiers: ReadonlyArray<Scalars["String"]["input"]>;
180
183
  parentIdentifier: Scalars["String"]["input"];
181
184
  };
182
- export type MutationCreateChannelArgs = {
183
- input: CreateChannelInput;
184
- };
185
185
  export type MutationCreateDocumentArgs = {
186
186
  document: Scalars["JSONObject"]["input"];
187
187
  parentIdentifier?: InputMaybe<Scalars["String"]["input"]>;
@@ -227,6 +227,9 @@ export type MutationRenameDocumentArgs = {
227
227
  documentIdentifier: Scalars["String"]["input"];
228
228
  name: Scalars["String"]["input"];
229
229
  };
230
+ export type MutationTouchChannelArgs = {
231
+ input: TouchChannelInput;
232
+ };
230
233
  export type OperationContext = {
231
234
  readonly branch: Scalars["String"]["output"];
232
235
  readonly documentId: Scalars["String"]["output"];
@@ -256,17 +259,31 @@ export type OperationWithContextInput = {
256
259
  readonly context: OperationContextInput;
257
260
  readonly operation: OperationInput;
258
261
  };
262
+ export type OperationsFilterInput = {
263
+ readonly actionTypes?: InputMaybe<ReadonlyArray<Scalars["String"]["input"]>>;
264
+ readonly branch?: InputMaybe<Scalars["String"]["input"]>;
265
+ readonly documentId: Scalars["String"]["input"];
266
+ readonly scopes?: InputMaybe<ReadonlyArray<Scalars["String"]["input"]>>;
267
+ readonly sinceRevision?: InputMaybe<Scalars["Int"]["input"]>;
268
+ readonly timestampFrom?: InputMaybe<Scalars["String"]["input"]>;
269
+ readonly timestampTo?: InputMaybe<Scalars["String"]["input"]>;
270
+ };
259
271
  export type PhDocument = {
260
272
  readonly createdAtUtcIso: Scalars["DateTime"]["output"];
261
273
  readonly documentType: Scalars["String"]["output"];
262
274
  readonly id: Scalars["String"]["output"];
263
275
  readonly lastModifiedAtUtcIso: Scalars["DateTime"]["output"];
264
276
  readonly name: Scalars["String"]["output"];
277
+ readonly operations?: Maybe<ReactorOperationResultPage>;
265
278
  readonly parentId?: Maybe<Scalars["String"]["output"]>;
266
279
  readonly revisionsList: ReadonlyArray<Revision>;
267
280
  readonly slug?: Maybe<Scalars["String"]["output"]>;
268
281
  readonly state: Scalars["JSONObject"]["output"];
269
282
  };
283
+ export type PhDocumentOperationsArgs = {
284
+ filter?: InputMaybe<DocumentOperationsFilterInput>;
285
+ paging?: InputMaybe<PagingInput>;
286
+ };
270
287
  export type PhDocumentResultPage = {
271
288
  readonly cursor?: Maybe<Scalars["String"]["output"]>;
272
289
  readonly hasNextPage: Scalars["Boolean"]["output"];
@@ -274,13 +291,6 @@ export type PhDocumentResultPage = {
274
291
  readonly items: ReadonlyArray<PhDocument>;
275
292
  readonly totalCount: Scalars["Int"]["output"];
276
293
  };
277
- export type ReactorOperationResultPage = {
278
- readonly cursor?: Maybe<Scalars["String"]["output"]>;
279
- readonly hasNextPage: Scalars["Boolean"]["output"];
280
- readonly hasPreviousPage: Scalars["Boolean"]["output"];
281
- readonly items: ReadonlyArray<ReactorOperation>;
282
- readonly totalCount: Scalars["Int"]["output"];
283
- };
284
294
  export type PagingInput = {
285
295
  readonly cursor?: InputMaybe<Scalars["String"]["input"]>;
286
296
  readonly limit?: InputMaybe<Scalars["Int"]["input"]>;
@@ -313,6 +323,10 @@ export type QueryDocumentModelsArgs = {
313
323
  namespace?: InputMaybe<Scalars["String"]["input"]>;
314
324
  paging?: InputMaybe<PagingInput>;
315
325
  };
326
+ export type QueryDocumentOperationsArgs = {
327
+ filter: OperationsFilterInput;
328
+ paging?: InputMaybe<PagingInput>;
329
+ };
316
330
  export type QueryDocumentParentsArgs = {
317
331
  childIdentifier: Scalars["String"]["input"];
318
332
  paging?: InputMaybe<PagingInput>;
@@ -326,10 +340,6 @@ export type QueryFindDocumentsArgs = {
326
340
  export type QueryJobStatusArgs = {
327
341
  jobId: Scalars["String"]["input"];
328
342
  };
329
- export type QueryDocumentOperationsArgs = {
330
- filter: OperationsFilterInput;
331
- paging?: InputMaybe<PagingInput>;
332
- };
333
343
  export type QueryPollSyncEnvelopesArgs = {
334
344
  channelId: Scalars["String"]["input"];
335
345
  cursorOrdinal: Scalars["Int"]["input"];
@@ -343,6 +353,13 @@ export type ReactorOperation = {
343
353
  readonly skip: Scalars["Int"]["output"];
344
354
  readonly timestampUtcMs: Scalars["String"]["output"];
345
355
  };
356
+ export type ReactorOperationResultPage = {
357
+ readonly cursor?: Maybe<Scalars["String"]["output"]>;
358
+ readonly hasNextPage: Scalars["Boolean"]["output"];
359
+ readonly hasPreviousPage: Scalars["Boolean"]["output"];
360
+ readonly items: ReadonlyArray<ReactorOperation>;
361
+ readonly totalCount: Scalars["Int"]["output"];
362
+ };
346
363
  export type ReactorSigner = {
347
364
  readonly app?: Maybe<ReactorSignerApp>;
348
365
  readonly signatures: ReadonlyArray<Scalars["String"]["output"]>;
@@ -395,15 +412,6 @@ export type SearchFilterInput = {
395
412
  readonly parentId?: InputMaybe<Scalars["String"]["input"]>;
396
413
  readonly type?: InputMaybe<Scalars["String"]["input"]>;
397
414
  };
398
- export type OperationsFilterInput = {
399
- readonly documentId: Scalars["String"]["input"];
400
- readonly branch?: InputMaybe<Scalars["String"]["input"]>;
401
- readonly scopes?: InputMaybe<ReadonlyArray<Scalars["String"]["input"]>>;
402
- readonly actionTypes?: InputMaybe<ReadonlyArray<Scalars["String"]["input"]>>;
403
- readonly sinceRevision?: InputMaybe<Scalars["Int"]["input"]>;
404
- readonly timestampFrom?: InputMaybe<Scalars["String"]["input"]>;
405
- readonly timestampTo?: InputMaybe<Scalars["String"]["input"]>;
406
- };
407
415
  export type Subscription = {
408
416
  readonly documentChanges: DocumentChangeEvent;
409
417
  readonly jobChanges: JobChangeEvent;
@@ -418,12 +426,16 @@ export type SubscriptionJobChangesArgs = {
418
426
  export type SyncEnvelope = {
419
427
  readonly channelMeta: ChannelMeta;
420
428
  readonly cursor?: Maybe<RemoteCursor>;
429
+ readonly dependsOn?: Maybe<ReadonlyArray<Scalars["String"]["output"]>>;
430
+ readonly key?: Maybe<Scalars["String"]["output"]>;
421
431
  readonly operations?: Maybe<ReadonlyArray<OperationWithContext>>;
422
432
  readonly type: SyncEnvelopeType;
423
433
  };
424
434
  export type SyncEnvelopeInput = {
425
435
  readonly channelMeta: ChannelMetaInput;
426
436
  readonly cursor?: InputMaybe<RemoteCursorInput>;
437
+ readonly dependsOn?: InputMaybe<ReadonlyArray<Scalars["String"]["input"]>>;
438
+ readonly key?: InputMaybe<Scalars["String"]["input"]>;
427
439
  readonly operations?: InputMaybe<ReadonlyArray<OperationWithContextInput>>;
428
440
  readonly type: SyncEnvelopeType;
429
441
  };
@@ -431,6 +443,13 @@ export declare enum SyncEnvelopeType {
431
443
  Ack = "ACK",
432
444
  Operations = "OPERATIONS"
433
445
  }
446
+ export type TouchChannelInput = {
447
+ readonly collectionId: Scalars["String"]["input"];
448
+ readonly filter: RemoteFilterInput;
449
+ readonly id: Scalars["String"]["input"];
450
+ readonly name: Scalars["String"]["input"];
451
+ readonly sinceTimestampUtcMs: Scalars["String"]["input"];
452
+ };
434
453
  export type ViewFilterInput = {
435
454
  readonly branch?: InputMaybe<Scalars["String"]["input"]>;
436
455
  readonly scopes?: InputMaybe<ReadonlyArray<Scalars["String"]["input"]>>;
@@ -846,13 +865,13 @@ export type ResolversTypes = ResolversObject<{
846
865
  Boolean: ResolverTypeWrapper<Scalars["Boolean"]["output"]>;
847
866
  ChannelMeta: ResolverTypeWrapper<ChannelMeta>;
848
867
  ChannelMetaInput: ChannelMetaInput;
849
- CreateChannelInput: CreateChannelInput;
850
868
  DateTime: ResolverTypeWrapper<Scalars["DateTime"]["output"]>;
851
869
  DocumentChangeContext: ResolverTypeWrapper<DocumentChangeContext>;
852
870
  DocumentChangeEvent: ResolverTypeWrapper<DocumentChangeEvent>;
853
871
  DocumentChangeType: DocumentChangeType;
854
872
  DocumentModelGlobalState: ResolverTypeWrapper<DocumentModelGlobalState>;
855
873
  DocumentModelResultPage: ResolverTypeWrapper<DocumentModelResultPage>;
874
+ DocumentOperationsFilterInput: DocumentOperationsFilterInput;
856
875
  DocumentWithChildren: ResolverTypeWrapper<DocumentWithChildren>;
857
876
  Int: ResolverTypeWrapper<Scalars["Int"]["output"]>;
858
877
  JSONObject: ResolverTypeWrapper<Scalars["JSONObject"]["output"]>;
@@ -865,13 +884,14 @@ export type ResolversTypes = ResolversObject<{
865
884
  OperationInput: OperationInput;
866
885
  OperationWithContext: ResolverTypeWrapper<OperationWithContext>;
867
886
  OperationWithContextInput: OperationWithContextInput;
887
+ OperationsFilterInput: OperationsFilterInput;
868
888
  PHDocument: ResolverTypeWrapper<PhDocument>;
869
889
  PHDocumentResultPage: ResolverTypeWrapper<PhDocumentResultPage>;
870
- ReactorOperationResultPage: ResolverTypeWrapper<ReactorOperationResultPage>;
871
890
  PagingInput: PagingInput;
872
891
  PropagationMode: PropagationMode;
873
892
  Query: ResolverTypeWrapper<{}>;
874
893
  ReactorOperation: ResolverTypeWrapper<ReactorOperation>;
894
+ ReactorOperationResultPage: ResolverTypeWrapper<ReactorOperationResultPage>;
875
895
  ReactorSigner: ResolverTypeWrapper<ReactorSigner>;
876
896
  ReactorSignerApp: ResolverTypeWrapper<ReactorSignerApp>;
877
897
  ReactorSignerAppInput: ReactorSignerAppInput;
@@ -888,6 +908,7 @@ export type ResolversTypes = ResolversObject<{
888
908
  SyncEnvelope: ResolverTypeWrapper<SyncEnvelope>;
889
909
  SyncEnvelopeInput: SyncEnvelopeInput;
890
910
  SyncEnvelopeType: SyncEnvelopeType;
911
+ TouchChannelInput: TouchChannelInput;
891
912
  ViewFilterInput: ViewFilterInput;
892
913
  }>;
893
914
  /** Mapping between all available schema types and the resolvers parents */
@@ -901,12 +922,12 @@ export type ResolversParentTypes = ResolversObject<{
901
922
  Boolean: Scalars["Boolean"]["output"];
902
923
  ChannelMeta: ChannelMeta;
903
924
  ChannelMetaInput: ChannelMetaInput;
904
- CreateChannelInput: CreateChannelInput;
905
925
  DateTime: Scalars["DateTime"]["output"];
906
926
  DocumentChangeContext: DocumentChangeContext;
907
927
  DocumentChangeEvent: DocumentChangeEvent;
908
928
  DocumentModelGlobalState: DocumentModelGlobalState;
909
929
  DocumentModelResultPage: DocumentModelResultPage;
930
+ DocumentOperationsFilterInput: DocumentOperationsFilterInput;
910
931
  DocumentWithChildren: DocumentWithChildren;
911
932
  Int: Scalars["Int"]["output"];
912
933
  JSONObject: Scalars["JSONObject"]["output"];
@@ -919,12 +940,13 @@ export type ResolversParentTypes = ResolversObject<{
919
940
  OperationInput: OperationInput;
920
941
  OperationWithContext: OperationWithContext;
921
942
  OperationWithContextInput: OperationWithContextInput;
943
+ OperationsFilterInput: OperationsFilterInput;
922
944
  PHDocument: PhDocument;
923
945
  PHDocumentResultPage: PhDocumentResultPage;
924
- ReactorOperationResultPage: ReactorOperationResultPage;
925
946
  PagingInput: PagingInput;
926
947
  Query: {};
927
948
  ReactorOperation: ReactorOperation;
949
+ ReactorOperationResultPage: ReactorOperationResultPage;
928
950
  ReactorSigner: ReactorSigner;
929
951
  ReactorSignerApp: ReactorSignerApp;
930
952
  ReactorSignerAppInput: ReactorSignerAppInput;
@@ -940,6 +962,7 @@ export type ResolversParentTypes = ResolversObject<{
940
962
  Subscription: {};
941
963
  SyncEnvelope: SyncEnvelope;
942
964
  SyncEnvelopeInput: SyncEnvelopeInput;
965
+ TouchChannelInput: TouchChannelInput;
943
966
  ViewFilterInput: ViewFilterInput;
944
967
  }>;
945
968
  export type ActionResolvers<ContextType = Context, ParentType extends ResolversParentTypes["Action"] = ResolversParentTypes["Action"]> = ResolversObject<{
@@ -1029,7 +1052,6 @@ export type MoveChildrenResultResolvers<ContextType = Context, ParentType extend
1029
1052
  }>;
1030
1053
  export type MutationResolvers<ContextType = Context, ParentType extends ResolversParentTypes["Mutation"] = ResolversParentTypes["Mutation"]> = ResolversObject<{
1031
1054
  addChildren?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType, RequireFields<MutationAddChildrenArgs, "documentIdentifiers" | "parentIdentifier">>;
1032
- createChannel?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType, RequireFields<MutationCreateChannelArgs, "input">>;
1033
1055
  createDocument?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType, RequireFields<MutationCreateDocumentArgs, "document">>;
1034
1056
  createEmptyDocument?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType, RequireFields<MutationCreateEmptyDocumentArgs, "documentType">>;
1035
1057
  deleteDocument?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType, RequireFields<MutationDeleteDocumentArgs, "identifier">>;
@@ -1040,6 +1062,7 @@ export type MutationResolvers<ContextType = Context, ParentType extends Resolver
1040
1062
  pushSyncEnvelopes?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType, RequireFields<MutationPushSyncEnvelopesArgs, "envelopes">>;
1041
1063
  removeChildren?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType, RequireFields<MutationRemoveChildrenArgs, "documentIdentifiers" | "parentIdentifier">>;
1042
1064
  renameDocument?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType, RequireFields<MutationRenameDocumentArgs, "documentIdentifier" | "name">>;
1065
+ touchChannel?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType, RequireFields<MutationTouchChannelArgs, "input">>;
1043
1066
  }>;
1044
1067
  export type OperationContextResolvers<ContextType = Context, ParentType extends ResolversParentTypes["OperationContext"] = ResolversParentTypes["OperationContext"]> = ResolversObject<{
1045
1068
  branch?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
@@ -1059,6 +1082,7 @@ export type PhDocumentResolvers<ContextType = Context, ParentType extends Resolv
1059
1082
  id?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
1060
1083
  lastModifiedAtUtcIso?: Resolver<ResolversTypes["DateTime"], ParentType, ContextType>;
1061
1084
  name?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
1085
+ operations?: Resolver<Maybe<ResolversTypes["ReactorOperationResultPage"]>, ParentType, ContextType, Partial<PhDocumentOperationsArgs>>;
1062
1086
  parentId?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
1063
1087
  revisionsList?: Resolver<ReadonlyArray<ResolversTypes["Revision"]>, ParentType, ContextType>;
1064
1088
  slug?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
@@ -1073,14 +1097,6 @@ export type PhDocumentResultPageResolvers<ContextType = Context, ParentType exte
1073
1097
  totalCount?: Resolver<ResolversTypes["Int"], ParentType, ContextType>;
1074
1098
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1075
1099
  }>;
1076
- export type ReactorOperationResultPageResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ReactorOperationResultPage"] = ResolversParentTypes["ReactorOperationResultPage"]> = ResolversObject<{
1077
- cursor?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
1078
- hasNextPage?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType>;
1079
- hasPreviousPage?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType>;
1080
- items?: Resolver<ReadonlyArray<ResolversTypes["ReactorOperation"]>, ParentType, ContextType>;
1081
- totalCount?: Resolver<ResolversTypes["Int"], ParentType, ContextType>;
1082
- __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1083
- }>;
1084
1100
  export type QueryResolvers<ContextType = Context, ParentType extends ResolversParentTypes["Query"] = ResolversParentTypes["Query"]> = ResolversObject<{
1085
1101
  document?: Resolver<Maybe<ResolversTypes["DocumentWithChildren"]>, ParentType, ContextType, RequireFields<QueryDocumentArgs, "identifier">>;
1086
1102
  documentChildren?: Resolver<ResolversTypes["PHDocumentResultPage"], ParentType, ContextType, RequireFields<QueryDocumentChildrenArgs, "parentIdentifier">>;
@@ -1101,6 +1117,14 @@ export type ReactorOperationResolvers<ContextType = Context, ParentType extends
1101
1117
  timestampUtcMs?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
1102
1118
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1103
1119
  }>;
1120
+ export type ReactorOperationResultPageResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ReactorOperationResultPage"] = ResolversParentTypes["ReactorOperationResultPage"]> = ResolversObject<{
1121
+ cursor?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
1122
+ hasNextPage?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType>;
1123
+ hasPreviousPage?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType>;
1124
+ items?: Resolver<ReadonlyArray<ResolversTypes["ReactorOperation"]>, ParentType, ContextType>;
1125
+ totalCount?: Resolver<ResolversTypes["Int"], ParentType, ContextType>;
1126
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1127
+ }>;
1104
1128
  export type ReactorSignerResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ReactorSigner"] = ResolversParentTypes["ReactorSigner"]> = ResolversObject<{
1105
1129
  app?: Resolver<Maybe<ResolversTypes["ReactorSignerApp"]>, ParentType, ContextType>;
1106
1130
  signatures?: Resolver<ReadonlyArray<ResolversTypes["String"]>, ParentType, ContextType>;
@@ -1136,6 +1160,8 @@ export type SubscriptionResolvers<ContextType = Context, ParentType extends Reso
1136
1160
  export type SyncEnvelopeResolvers<ContextType = Context, ParentType extends ResolversParentTypes["SyncEnvelope"] = ResolversParentTypes["SyncEnvelope"]> = ResolversObject<{
1137
1161
  channelMeta?: Resolver<ResolversTypes["ChannelMeta"], ParentType, ContextType>;
1138
1162
  cursor?: Resolver<Maybe<ResolversTypes["RemoteCursor"]>, ParentType, ContextType>;
1163
+ dependsOn?: Resolver<Maybe<ReadonlyArray<ResolversTypes["String"]>>, ParentType, ContextType>;
1164
+ key?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
1139
1165
  operations?: Resolver<Maybe<ReadonlyArray<ResolversTypes["OperationWithContext"]>>, ParentType, ContextType>;
1140
1166
  type?: Resolver<ResolversTypes["SyncEnvelopeType"], ParentType, ContextType>;
1141
1167
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
@@ -1160,9 +1186,9 @@ export type Resolvers<ContextType = Context> = ResolversObject<{
1160
1186
  OperationWithContext?: OperationWithContextResolvers<ContextType>;
1161
1187
  PHDocument?: PhDocumentResolvers<ContextType>;
1162
1188
  PHDocumentResultPage?: PhDocumentResultPageResolvers<ContextType>;
1163
- ReactorOperationResultPage?: ReactorOperationResultPageResolvers<ContextType>;
1164
1189
  Query?: QueryResolvers<ContextType>;
1165
1190
  ReactorOperation?: ReactorOperationResolvers<ContextType>;
1191
+ ReactorOperationResultPage?: ReactorOperationResultPageResolvers<ContextType>;
1166
1192
  ReactorSigner?: ReactorSignerResolvers<ContextType>;
1167
1193
  ReactorSignerApp?: ReactorSignerAppResolvers<ContextType>;
1168
1194
  ReactorSignerUser?: ReactorSignerUserResolvers<ContextType>;
@@ -1176,18 +1202,19 @@ type Properties<T> = Required<{
1176
1202
  }>;
1177
1203
  type definedNonNullAny = {};
1178
1204
  export declare const isDefinedNonNullAny: (v: any) => v is definedNonNullAny;
1179
- export declare const definedNonNullAnySchema: z.ZodEffects<z.ZodAny, definedNonNullAny, any>;
1180
- export declare const DocumentChangeTypeSchema: z.ZodNativeEnum<typeof DocumentChangeType>;
1181
- export declare const PropagationModeSchema: z.ZodNativeEnum<typeof PropagationMode>;
1182
- export declare const SyncEnvelopeTypeSchema: z.ZodNativeEnum<typeof SyncEnvelopeType>;
1205
+ export declare const definedNonNullAnySchema: z.ZodAny & z.ZodType<definedNonNullAny, any, z.core.$ZodTypeInternals<definedNonNullAny, any>>;
1206
+ export declare const DocumentChangeTypeSchema: z.ZodEnum<typeof DocumentChangeType>;
1207
+ export declare const PropagationModeSchema: z.ZodEnum<typeof PropagationMode>;
1208
+ export declare const SyncEnvelopeTypeSchema: z.ZodEnum<typeof SyncEnvelopeType>;
1183
1209
  export declare function ActionContextInputSchema(): z.ZodObject<Properties<ActionContextInput>>;
1184
1210
  export declare function ActionInputSchema(): z.ZodObject<Properties<ActionInput>>;
1185
1211
  export declare function AttachmentInputSchema(): z.ZodObject<Properties<AttachmentInput>>;
1186
1212
  export declare function ChannelMetaInputSchema(): z.ZodObject<Properties<ChannelMetaInput>>;
1187
- export declare function CreateChannelInputSchema(): z.ZodObject<Properties<CreateChannelInput>>;
1213
+ export declare function DocumentOperationsFilterInputSchema(): z.ZodObject<Properties<DocumentOperationsFilterInput>>;
1188
1214
  export declare function OperationContextInputSchema(): z.ZodObject<Properties<OperationContextInput>>;
1189
1215
  export declare function OperationInputSchema(): z.ZodObject<Properties<OperationInput>>;
1190
1216
  export declare function OperationWithContextInputSchema(): z.ZodObject<Properties<OperationWithContextInput>>;
1217
+ export declare function OperationsFilterInputSchema(): z.ZodObject<Properties<OperationsFilterInput>>;
1191
1218
  export declare function PagingInputSchema(): z.ZodObject<Properties<PagingInput>>;
1192
1219
  export declare function ReactorSignerAppInputSchema(): z.ZodObject<Properties<ReactorSignerAppInput>>;
1193
1220
  export declare function ReactorSignerInputSchema(): z.ZodObject<Properties<ReactorSignerInput>>;
@@ -1196,6 +1223,7 @@ export declare function RemoteCursorInputSchema(): z.ZodObject<Properties<Remote
1196
1223
  export declare function RemoteFilterInputSchema(): z.ZodObject<Properties<RemoteFilterInput>>;
1197
1224
  export declare function SearchFilterInputSchema(): z.ZodObject<Properties<SearchFilterInput>>;
1198
1225
  export declare function SyncEnvelopeInputSchema(): z.ZodObject<Properties<SyncEnvelopeInput>>;
1226
+ export declare function TouchChannelInputSchema(): z.ZodObject<Properties<TouchChannelInput>>;
1199
1227
  export declare function ViewFilterInputSchema(): z.ZodObject<Properties<ViewFilterInput>>;
1200
1228
  export declare const PhDocumentFieldsFragmentDoc: DocumentNode;
1201
1229
  export declare const GetDocumentModelsDocument: DocumentNode;