@powerhousedao/reactor-api 6.2.3-dev.47 → 6.2.3-dev.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -2005,12 +2005,47 @@ export declare enum AuthDecision {
2005
2005
  Allow = "ALLOW",
2006
2006
  Deny = "DENY"
2007
2007
  }
2008
+ /**
2009
+ * The outcome of a batch mutation, one entry per job the request named. The wire
2010
+ * shape of `BatchExecutionResult` (`{ jobs }`), keyed on each entry by the plan
2011
+ * key rather than by position so the client can rebuild the record. The batch is
2012
+ * not atomic: each job commits on its own and a failed job releases its
2013
+ * dependents, so each entry's status says what happened to that job, and
2014
+ * re-submitting re-applies the jobs that succeeded.
2015
+ */
2016
+ export type BatchExecutionResult = {
2017
+ readonly jobs: ReadonlyArray<BatchJobResult>;
2018
+ };
2019
+ /**
2020
+ * One job's outcome within a batch, pairing the plan key the caller gave with the
2021
+ * job that applied it. Mirrors one entry of the `Record<string, JobInfo>` that
2022
+ * `IReactor.executeBatch` returns (packages/reactor/src/core/types.ts).
2023
+ */
2024
+ export type BatchJobResult = {
2025
+ readonly job: JobInfo;
2026
+ readonly key: Scalars["String"]["output"];
2027
+ };
2008
2028
  export type ChannelMeta = {
2009
2029
  readonly id: Scalars["String"]["output"];
2010
2030
  };
2011
2031
  export type ChannelMetaInput = {
2012
2032
  readonly id: Scalars["String"]["input"];
2013
2033
  };
2034
+ export type ConsistencyCoordinate = {
2035
+ readonly branch: Scalars["String"]["output"];
2036
+ readonly documentId: Scalars["String"]["output"];
2037
+ readonly operationIndex: Scalars["Int"]["output"];
2038
+ readonly scope: Scalars["String"]["output"];
2039
+ };
2040
+ /**
2041
+ * The write positions a job reached, for read-after-write. Only meaningful once
2042
+ * the job has completed.
2043
+ */
2044
+ export type ConsistencyToken = {
2045
+ readonly coordinates: ReadonlyArray<ConsistencyCoordinate>;
2046
+ readonly createdAtUtcIso: Scalars["String"]["output"];
2047
+ readonly version: Scalars["Int"]["output"];
2048
+ };
2014
2049
  export type DeadLetterInfo = {
2015
2050
  readonly branch: Scalars["String"]["output"];
2016
2051
  readonly documentId: Scalars["String"]["output"];
@@ -2082,6 +2117,32 @@ export type DocumentWithChildren = {
2082
2117
  readonly childIds: ReadonlyArray<Scalars["String"]["output"]>;
2083
2118
  readonly document: PhDocument;
2084
2119
  };
2120
+ /**
2121
+ * One mutation job of a batch, mirroring the reactor's `ExecutionJobPlan`
2122
+ * (packages/reactor/src/core/types.ts). The batch runs its jobs in dependency
2123
+ * order only, not atomically: each job commits on its own with no batch rollback,
2124
+ * and a failed job still releases its dependents.
2125
+ *
2126
+ * `documentIdOrSlug` is the document the job's actions apply to -- an id that does
2127
+ * not yet exist when the job's actions create it. `actions` are coerced against
2128
+ * `ActionInput` and passed through exactly as `execute` does, so a client-signed
2129
+ * action keeps its signature. `scope` is the single scope every action in the job
2130
+ * shares, and `dependsOn` names the plan keys this job is ordered after. `branch`
2131
+ * defaults to `main`.
2132
+ */
2133
+ export type ExecutionJobInput = {
2134
+ readonly actions: ReadonlyArray<ActionInput>;
2135
+ readonly branch?: InputMaybe<Scalars["String"]["input"]>;
2136
+ readonly dependsOn: ReadonlyArray<Scalars["String"]["input"]>;
2137
+ readonly documentIdOrSlug: Scalars["String"]["input"];
2138
+ readonly key: Scalars["String"]["input"];
2139
+ readonly scope: Scalars["String"]["input"];
2140
+ };
2141
+ /** The batch a job was submitted in. */
2142
+ export type JobBatchMeta = {
2143
+ readonly batchId: Scalars["String"]["output"];
2144
+ readonly batchJobIds: ReadonlyArray<Scalars["String"]["output"]>;
2145
+ };
2085
2146
  export type JobChangeEvent = {
2086
2147
  readonly error?: Maybe<Scalars["String"]["output"]>;
2087
2148
  readonly jobId: Scalars["String"]["output"];
@@ -2095,9 +2156,18 @@ export type JobChangeEvent = {
2095
2156
  };
2096
2157
  export type JobInfo = {
2097
2158
  readonly completedAt?: Maybe<Scalars["DateTime"]["output"]>;
2159
+ readonly consistencyToken: ConsistencyToken;
2098
2160
  readonly createdAt: Scalars["DateTime"]["output"];
2161
+ /**
2162
+ * The document the job operates on. Empty for a job this server does not know,
2163
+ * which then comes back FAILED with "Job not found".
2164
+ */
2165
+ readonly documentId: Scalars["String"]["output"];
2099
2166
  readonly error?: Maybe<Scalars["String"]["output"]>;
2167
+ /** The error's class name, such as `DocumentAlreadyExistsError`, when it failed. */
2168
+ readonly errorName?: Maybe<Scalars["String"]["output"]>;
2100
2169
  readonly id: Scalars["String"]["output"];
2170
+ readonly meta: JobBatchMeta;
2101
2171
  /**
2102
2172
  * What the job produced, once it has produced anything. Null until then, which
2103
2173
  * is the state every job is in when it is handed back from a submission.
@@ -2137,6 +2207,27 @@ export type Mutation = {
2137
2207
  * ask for; `result` is null until the job produces one.
2138
2208
  */
2139
2209
  readonly executeAsync: JobInfo;
2210
+ /**
2211
+ * Applies multiple mutation jobs in dependency order and waits for all of them,
2212
+ * the wire form of `IReactorClient.executeBatch`. Each job's actions are coerced
2213
+ * against `ActionInput` exactly as `execute` is, so client-signed actions pass
2214
+ * through unchanged, and `dependsOn` orders the jobs. It is synchronous: the jobs
2215
+ * are applied and awaited before the result returns, so every returned `JobInfo`
2216
+ * is a completed one rather than the pending receipt the in-process reactor hands
2217
+ * back. A batch is ordering, not a transaction: each job commits on its own, and
2218
+ * a failed job still releases the jobs that depend on it, so any job, before or
2219
+ * after a failure, may have committed. A failed job is therefore returned as a
2220
+ * FAILED entry with its `error` and `errorName`, beside the final state of every
2221
+ * other job, rather than failing the mutation. The mutation itself fails only
2222
+ * when no job state can be reported.
2223
+ *
2224
+ * A job carrying `CREATE_DOCUMENT` must be the batch's only job, with the create
2225
+ * as its first action naming the job's document. Its other actions may only be
2226
+ * an `UPGRADE_DOCUMENT` of the new document and `ADD_RELATIONSHIP`s targeting
2227
+ * it. It is authorized like `createDocument`: write on every source of those
2228
+ * relationships, or the right to create when there is none.
2229
+ */
2230
+ readonly executeBatch: BatchExecutionResult;
2140
2231
  readonly moveRelationship: MoveRelationshipResult;
2141
2232
  /** @deprecated Use execute. Actions here are untyped, so a malformed one is refused by a hand-written check rather than by the schema, and `view.scopes` is accepted but ignored. */
2142
2233
  readonly mutateDocument: PhDocument;
@@ -2190,6 +2281,9 @@ export type MutationExecuteAsyncArgs = {
2190
2281
  documentIdOrSlug?: InputMaybe<Scalars["String"]["input"]>;
2191
2282
  documentIdentifier?: InputMaybe<Scalars["String"]["input"]>;
2192
2283
  };
2284
+ export type MutationExecuteBatchArgs = {
2285
+ jobs: ReadonlyArray<ExecutionJobInput>;
2286
+ };
2193
2287
  export type MutationMoveRelationshipArgs = {
2194
2288
  branch?: InputMaybe<Scalars["String"]["input"]>;
2195
2289
  relationshipType: Scalars["String"]["input"];
@@ -2294,9 +2388,11 @@ export type PhDocument = {
2294
2388
  readonly documentType: Scalars["String"]["output"];
2295
2389
  readonly id: Scalars["String"]["output"];
2296
2390
  readonly lastModifiedAtUtcIso: Scalars["DateTime"]["output"];
2391
+ readonly meta?: Maybe<Scalars["JSONObject"]["output"]>;
2297
2392
  readonly name: Scalars["String"]["output"];
2298
2393
  readonly operations?: Maybe<ReactorOperationResultPage>;
2299
2394
  readonly preferredEditor?: Maybe<Scalars["String"]["output"]>;
2395
+ readonly protocolVersions?: Maybe<Scalars["JSONObject"]["output"]>;
2300
2396
  readonly revisionsList: ReadonlyArray<Revision>;
2301
2397
  readonly slug?: Maybe<Scalars["String"]["output"]>;
2302
2398
  readonly state: Scalars["JSONObject"]["output"];
@@ -2605,6 +2701,8 @@ export type PhDocumentFieldsFragment = {
2605
2701
  readonly slug?: string | null | undefined;
2606
2702
  readonly name: string;
2607
2703
  readonly documentType: string;
2704
+ readonly meta?: NonNullable<unknown> | null | undefined;
2705
+ readonly protocolVersions?: NonNullable<unknown> | null | undefined;
2608
2706
  readonly state: NonNullable<unknown>;
2609
2707
  readonly createdAtUtcIso: string | Date;
2610
2708
  readonly lastModifiedAtUtcIso: string | Date;
@@ -2651,6 +2749,8 @@ export type GetDocumentQuery = {
2651
2749
  readonly slug?: string | null | undefined;
2652
2750
  readonly name: string;
2653
2751
  readonly documentType: string;
2752
+ readonly meta?: NonNullable<unknown> | null | undefined;
2753
+ readonly protocolVersions?: NonNullable<unknown> | null | undefined;
2654
2754
  readonly state: NonNullable<unknown>;
2655
2755
  readonly createdAtUtcIso: string | Date;
2656
2756
  readonly lastModifiedAtUtcIso: string | Date;
@@ -2675,6 +2775,8 @@ export type GetDocumentWithOperationsQuery = {
2675
2775
  readonly slug?: string | null | undefined;
2676
2776
  readonly name: string;
2677
2777
  readonly documentType: string;
2778
+ readonly meta?: NonNullable<unknown> | null | undefined;
2779
+ readonly protocolVersions?: NonNullable<unknown> | null | undefined;
2678
2780
  readonly state: NonNullable<unknown>;
2679
2781
  readonly createdAtUtcIso: string | Date;
2680
2782
  readonly lastModifiedAtUtcIso: string | Date;
@@ -2736,6 +2838,8 @@ export type GetDocumentOutgoingRelationshipsQuery = {
2736
2838
  readonly slug?: string | null | undefined;
2737
2839
  readonly name: string;
2738
2840
  readonly documentType: string;
2841
+ readonly meta?: NonNullable<unknown> | null | undefined;
2842
+ readonly protocolVersions?: NonNullable<unknown> | null | undefined;
2739
2843
  readonly state: NonNullable<unknown>;
2740
2844
  readonly createdAtUtcIso: string | Date;
2741
2845
  readonly lastModifiedAtUtcIso: string | Date;
@@ -2762,6 +2866,8 @@ export type GetDocumentIncomingRelationshipsQuery = {
2762
2866
  readonly slug?: string | null | undefined;
2763
2867
  readonly name: string;
2764
2868
  readonly documentType: string;
2869
+ readonly meta?: NonNullable<unknown> | null | undefined;
2870
+ readonly protocolVersions?: NonNullable<unknown> | null | undefined;
2765
2871
  readonly state: NonNullable<unknown>;
2766
2872
  readonly createdAtUtcIso: string | Date;
2767
2873
  readonly lastModifiedAtUtcIso: string | Date;
@@ -2829,6 +2935,8 @@ export type FindDocumentsQuery = {
2829
2935
  readonly slug?: string | null | undefined;
2830
2936
  readonly name: string;
2831
2937
  readonly documentType: string;
2938
+ readonly meta?: NonNullable<unknown> | null | undefined;
2939
+ readonly protocolVersions?: NonNullable<unknown> | null | undefined;
2832
2940
  readonly state: NonNullable<unknown>;
2833
2941
  readonly createdAtUtcIso: string | Date;
2834
2942
  readonly lastModifiedAtUtcIso: string | Date;
@@ -2880,17 +2988,57 @@ export type GetDocumentOperationsQuery = {
2880
2988
  }>;
2881
2989
  };
2882
2990
  };
2991
+ export type JobInfoFieldsFragment = {
2992
+ readonly id: string;
2993
+ readonly documentId: string;
2994
+ readonly status: string;
2995
+ readonly result?: NonNullable<unknown> | null | undefined;
2996
+ readonly error?: string | null | undefined;
2997
+ readonly errorName?: string | null | undefined;
2998
+ readonly createdAt: string | Date;
2999
+ readonly completedAt?: string | Date | null | undefined;
3000
+ readonly consistencyToken: {
3001
+ readonly version: number;
3002
+ readonly createdAtUtcIso: string;
3003
+ readonly coordinates: ReadonlyArray<{
3004
+ readonly documentId: string;
3005
+ readonly scope: string;
3006
+ readonly branch: string;
3007
+ readonly operationIndex: number;
3008
+ }>;
3009
+ };
3010
+ readonly meta: {
3011
+ readonly batchId: string;
3012
+ readonly batchJobIds: ReadonlyArray<string>;
3013
+ };
3014
+ };
2883
3015
  export type GetJobStatusQueryVariables = Exact<{
2884
3016
  jobId: Scalars["String"]["input"];
2885
3017
  }>;
2886
3018
  export type GetJobStatusQuery = {
2887
3019
  readonly jobStatus?: {
2888
3020
  readonly id: string;
3021
+ readonly documentId: string;
2889
3022
  readonly status: string;
2890
3023
  readonly result?: NonNullable<unknown> | null | undefined;
2891
3024
  readonly error?: string | null | undefined;
3025
+ readonly errorName?: string | null | undefined;
2892
3026
  readonly createdAt: string | Date;
2893
3027
  readonly completedAt?: string | Date | null | undefined;
3028
+ readonly consistencyToken: {
3029
+ readonly version: number;
3030
+ readonly createdAtUtcIso: string;
3031
+ readonly coordinates: ReadonlyArray<{
3032
+ readonly documentId: string;
3033
+ readonly scope: string;
3034
+ readonly branch: string;
3035
+ readonly operationIndex: number;
3036
+ }>;
3037
+ };
3038
+ readonly meta: {
3039
+ readonly batchId: string;
3040
+ readonly batchJobIds: ReadonlyArray<string>;
3041
+ };
2894
3042
  } | null | undefined;
2895
3043
  };
2896
3044
  export type EvaluateActionsQueryVariables = Exact<{
@@ -2920,6 +3068,8 @@ export type CreateDocumentMutation = {
2920
3068
  readonly slug?: string | null | undefined;
2921
3069
  readonly name: string;
2922
3070
  readonly documentType: string;
3071
+ readonly meta?: NonNullable<unknown> | null | undefined;
3072
+ readonly protocolVersions?: NonNullable<unknown> | null | undefined;
2923
3073
  readonly state: NonNullable<unknown>;
2924
3074
  readonly createdAtUtcIso: string | Date;
2925
3075
  readonly lastModifiedAtUtcIso: string | Date;
@@ -2939,6 +3089,8 @@ export type CreateEmptyDocumentMutation = {
2939
3089
  readonly slug?: string | null | undefined;
2940
3090
  readonly name: string;
2941
3091
  readonly documentType: string;
3092
+ readonly meta?: NonNullable<unknown> | null | undefined;
3093
+ readonly protocolVersions?: NonNullable<unknown> | null | undefined;
2942
3094
  readonly state: NonNullable<unknown>;
2943
3095
  readonly createdAtUtcIso: string | Date;
2944
3096
  readonly lastModifiedAtUtcIso: string | Date;
@@ -2959,6 +3111,8 @@ export type MutateDocumentMutation = {
2959
3111
  readonly slug?: string | null | undefined;
2960
3112
  readonly name: string;
2961
3113
  readonly documentType: string;
3114
+ readonly meta?: NonNullable<unknown> | null | undefined;
3115
+ readonly protocolVersions?: NonNullable<unknown> | null | undefined;
2962
3116
  readonly state: NonNullable<unknown>;
2963
3117
  readonly createdAtUtcIso: string | Date;
2964
3118
  readonly lastModifiedAtUtcIso: string | Date;
@@ -2976,11 +3130,61 @@ export type MutateDocumentAsyncMutationVariables = Exact<{
2976
3130
  export type MutateDocumentAsyncMutation = {
2977
3131
  readonly mutateDocumentAsync: {
2978
3132
  readonly id: string;
3133
+ readonly documentId: string;
2979
3134
  readonly status: string;
2980
3135
  readonly result?: NonNullable<unknown> | null | undefined;
2981
3136
  readonly error?: string | null | undefined;
3137
+ readonly errorName?: string | null | undefined;
2982
3138
  readonly createdAt: string | Date;
2983
3139
  readonly completedAt?: string | Date | null | undefined;
3140
+ readonly consistencyToken: {
3141
+ readonly version: number;
3142
+ readonly createdAtUtcIso: string;
3143
+ readonly coordinates: ReadonlyArray<{
3144
+ readonly documentId: string;
3145
+ readonly scope: string;
3146
+ readonly branch: string;
3147
+ readonly operationIndex: number;
3148
+ }>;
3149
+ };
3150
+ readonly meta: {
3151
+ readonly batchId: string;
3152
+ readonly batchJobIds: ReadonlyArray<string>;
3153
+ };
3154
+ };
3155
+ };
3156
+ export type ExecuteBatchMutationVariables = Exact<{
3157
+ jobs: ReadonlyArray<ExecutionJobInput>;
3158
+ }>;
3159
+ export type ExecuteBatchMutation = {
3160
+ readonly executeBatch: {
3161
+ readonly jobs: ReadonlyArray<{
3162
+ readonly key: string;
3163
+ readonly job: {
3164
+ readonly id: string;
3165
+ readonly documentId: string;
3166
+ readonly status: string;
3167
+ readonly result?: NonNullable<unknown> | null | undefined;
3168
+ readonly error?: string | null | undefined;
3169
+ readonly errorName?: string | null | undefined;
3170
+ readonly createdAt: string | Date;
3171
+ readonly completedAt?: string | Date | null | undefined;
3172
+ readonly consistencyToken: {
3173
+ readonly version: number;
3174
+ readonly createdAtUtcIso: string;
3175
+ readonly coordinates: ReadonlyArray<{
3176
+ readonly documentId: string;
3177
+ readonly scope: string;
3178
+ readonly branch: string;
3179
+ readonly operationIndex: number;
3180
+ }>;
3181
+ };
3182
+ readonly meta: {
3183
+ readonly batchId: string;
3184
+ readonly batchJobIds: ReadonlyArray<string>;
3185
+ };
3186
+ };
3187
+ }>;
2984
3188
  };
2985
3189
  };
2986
3190
  export type RenameDocumentMutationVariables = Exact<{
@@ -2994,6 +3198,8 @@ export type RenameDocumentMutation = {
2994
3198
  readonly slug?: string | null | undefined;
2995
3199
  readonly name: string;
2996
3200
  readonly documentType: string;
3201
+ readonly meta?: NonNullable<unknown> | null | undefined;
3202
+ readonly protocolVersions?: NonNullable<unknown> | null | undefined;
2997
3203
  readonly state: NonNullable<unknown>;
2998
3204
  readonly createdAtUtcIso: string | Date;
2999
3205
  readonly lastModifiedAtUtcIso: string | Date;
@@ -3014,6 +3220,8 @@ export type SetPreferredEditorMutation = {
3014
3220
  readonly slug?: string | null | undefined;
3015
3221
  readonly name: string;
3016
3222
  readonly documentType: string;
3223
+ readonly meta?: NonNullable<unknown> | null | undefined;
3224
+ readonly protocolVersions?: NonNullable<unknown> | null | undefined;
3017
3225
  readonly state: NonNullable<unknown>;
3018
3226
  readonly createdAtUtcIso: string | Date;
3019
3227
  readonly lastModifiedAtUtcIso: string | Date;
@@ -3036,6 +3244,8 @@ export type AddRelationshipMutation = {
3036
3244
  readonly slug?: string | null | undefined;
3037
3245
  readonly name: string;
3038
3246
  readonly documentType: string;
3247
+ readonly meta?: NonNullable<unknown> | null | undefined;
3248
+ readonly protocolVersions?: NonNullable<unknown> | null | undefined;
3039
3249
  readonly state: NonNullable<unknown>;
3040
3250
  readonly createdAtUtcIso: string | Date;
3041
3251
  readonly lastModifiedAtUtcIso: string | Date;
@@ -3058,6 +3268,8 @@ export type UpdateRelationshipMutation = {
3058
3268
  readonly slug?: string | null | undefined;
3059
3269
  readonly name: string;
3060
3270
  readonly documentType: string;
3271
+ readonly meta?: NonNullable<unknown> | null | undefined;
3272
+ readonly protocolVersions?: NonNullable<unknown> | null | undefined;
3061
3273
  readonly state: NonNullable<unknown>;
3062
3274
  readonly createdAtUtcIso: string | Date;
3063
3275
  readonly lastModifiedAtUtcIso: string | Date;
@@ -3079,6 +3291,8 @@ export type RemoveRelationshipMutation = {
3079
3291
  readonly slug?: string | null | undefined;
3080
3292
  readonly name: string;
3081
3293
  readonly documentType: string;
3294
+ readonly meta?: NonNullable<unknown> | null | undefined;
3295
+ readonly protocolVersions?: NonNullable<unknown> | null | undefined;
3082
3296
  readonly state: NonNullable<unknown>;
3083
3297
  readonly createdAtUtcIso: string | Date;
3084
3298
  readonly lastModifiedAtUtcIso: string | Date;
@@ -3102,6 +3316,8 @@ export type MoveRelationshipMutation = {
3102
3316
  readonly slug?: string | null | undefined;
3103
3317
  readonly name: string;
3104
3318
  readonly documentType: string;
3319
+ readonly meta?: NonNullable<unknown> | null | undefined;
3320
+ readonly protocolVersions?: NonNullable<unknown> | null | undefined;
3105
3321
  readonly state: NonNullable<unknown>;
3106
3322
  readonly createdAtUtcIso: string | Date;
3107
3323
  readonly lastModifiedAtUtcIso: string | Date;
@@ -3115,6 +3331,8 @@ export type MoveRelationshipMutation = {
3115
3331
  readonly slug?: string | null | undefined;
3116
3332
  readonly name: string;
3117
3333
  readonly documentType: string;
3334
+ readonly meta?: NonNullable<unknown> | null | undefined;
3335
+ readonly protocolVersions?: NonNullable<unknown> | null | undefined;
3118
3336
  readonly state: NonNullable<unknown>;
3119
3337
  readonly createdAtUtcIso: string | Date;
3120
3338
  readonly lastModifiedAtUtcIso: string | Date;
@@ -3151,6 +3369,8 @@ export type DocumentChangesSubscription = {
3151
3369
  readonly slug?: string | null | undefined;
3152
3370
  readonly name: string;
3153
3371
  readonly documentType: string;
3372
+ readonly meta?: NonNullable<unknown> | null | undefined;
3373
+ readonly protocolVersions?: NonNullable<unknown> | null | undefined;
3154
3374
  readonly state: NonNullable<unknown>;
3155
3375
  readonly createdAtUtcIso: string | Date;
3156
3376
  readonly lastModifiedAtUtcIso: string | Date;
@@ -3298,9 +3518,13 @@ export type ResolversTypes = ResolversObject<{
3298
3518
  ActionEvaluations: ResolverTypeWrapper<ActionEvaluations>;
3299
3519
  ActionInput: ActionInput;
3300
3520
  AuthDecision: AuthDecision;
3521
+ BatchExecutionResult: ResolverTypeWrapper<BatchExecutionResult>;
3522
+ BatchJobResult: ResolverTypeWrapper<BatchJobResult>;
3301
3523
  Boolean: ResolverTypeWrapper<Scalars["Boolean"]["output"]>;
3302
3524
  ChannelMeta: ResolverTypeWrapper<ChannelMeta>;
3303
3525
  ChannelMetaInput: ChannelMetaInput;
3526
+ ConsistencyCoordinate: ResolverTypeWrapper<ConsistencyCoordinate>;
3527
+ ConsistencyToken: ResolverTypeWrapper<ConsistencyToken>;
3304
3528
  DateTime: ResolverTypeWrapper<Scalars["DateTime"]["output"]>;
3305
3529
  DeadLetterInfo: ResolverTypeWrapper<DeadLetterInfo>;
3306
3530
  DocumentChangeContext: ResolverTypeWrapper<DocumentChangeContext>;
@@ -3312,8 +3536,10 @@ export type ResolversTypes = ResolversObject<{
3312
3536
  DocumentRelationship: ResolverTypeWrapper<DocumentRelationship>;
3313
3537
  DocumentRelationshipResultPage: ResolverTypeWrapper<DocumentRelationshipResultPage>;
3314
3538
  DocumentWithChildren: ResolverTypeWrapper<DocumentWithChildren>;
3539
+ ExecutionJobInput: ExecutionJobInput;
3315
3540
  Int: ResolverTypeWrapper<Scalars["Int"]["output"]>;
3316
3541
  JSONObject: ResolverTypeWrapper<Scalars["JSONObject"]["output"]>;
3542
+ JobBatchMeta: ResolverTypeWrapper<JobBatchMeta>;
3317
3543
  JobChangeEvent: ResolverTypeWrapper<JobChangeEvent>;
3318
3544
  JobInfo: ResolverTypeWrapper<JobInfo>;
3319
3545
  MoveRelationshipResult: ResolverTypeWrapper<MoveRelationshipResult>;
@@ -3367,9 +3593,13 @@ export type ResolversParentTypes = ResolversObject<{
3367
3593
  ActionEvaluation: ActionEvaluation;
3368
3594
  ActionEvaluations: ActionEvaluations;
3369
3595
  ActionInput: ActionInput;
3596
+ BatchExecutionResult: BatchExecutionResult;
3597
+ BatchJobResult: BatchJobResult;
3370
3598
  Boolean: Scalars["Boolean"]["output"];
3371
3599
  ChannelMeta: ChannelMeta;
3372
3600
  ChannelMetaInput: ChannelMetaInput;
3601
+ ConsistencyCoordinate: ConsistencyCoordinate;
3602
+ ConsistencyToken: ConsistencyToken;
3373
3603
  DateTime: Scalars["DateTime"]["output"];
3374
3604
  DeadLetterInfo: DeadLetterInfo;
3375
3605
  DocumentChangeContext: DocumentChangeContext;
@@ -3380,8 +3610,10 @@ export type ResolversParentTypes = ResolversObject<{
3380
3610
  DocumentRelationship: DocumentRelationship;
3381
3611
  DocumentRelationshipResultPage: DocumentRelationshipResultPage;
3382
3612
  DocumentWithChildren: DocumentWithChildren;
3613
+ ExecutionJobInput: ExecutionJobInput;
3383
3614
  Int: Scalars["Int"]["output"];
3384
3615
  JSONObject: Scalars["JSONObject"]["output"];
3616
+ JobBatchMeta: JobBatchMeta;
3385
3617
  JobChangeEvent: JobChangeEvent;
3386
3618
  JobInfo: JobInfo;
3387
3619
  MoveRelationshipResult: MoveRelationshipResult;
@@ -3446,9 +3678,27 @@ export type ActionEvaluationsResolvers<ContextType = Context, ParentType extends
3446
3678
  anyDenied?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType>;
3447
3679
  evaluations?: Resolver<ReadonlyArray<ResolversTypes["ActionEvaluation"]>, ParentType, ContextType>;
3448
3680
  }>;
3681
+ export type BatchExecutionResultResolvers<ContextType = Context, ParentType extends ResolversParentTypes["BatchExecutionResult"] = ResolversParentTypes["BatchExecutionResult"]> = ResolversObject<{
3682
+ jobs?: Resolver<ReadonlyArray<ResolversTypes["BatchJobResult"]>, ParentType, ContextType>;
3683
+ }>;
3684
+ export type BatchJobResultResolvers<ContextType = Context, ParentType extends ResolversParentTypes["BatchJobResult"] = ResolversParentTypes["BatchJobResult"]> = ResolversObject<{
3685
+ job?: Resolver<ResolversTypes["JobInfo"], ParentType, ContextType>;
3686
+ key?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
3687
+ }>;
3449
3688
  export type ChannelMetaResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ChannelMeta"] = ResolversParentTypes["ChannelMeta"]> = ResolversObject<{
3450
3689
  id?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
3451
3690
  }>;
3691
+ export type ConsistencyCoordinateResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ConsistencyCoordinate"] = ResolversParentTypes["ConsistencyCoordinate"]> = ResolversObject<{
3692
+ branch?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
3693
+ documentId?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
3694
+ operationIndex?: Resolver<ResolversTypes["Int"], ParentType, ContextType>;
3695
+ scope?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
3696
+ }>;
3697
+ export type ConsistencyTokenResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ConsistencyToken"] = ResolversParentTypes["ConsistencyToken"]> = ResolversObject<{
3698
+ coordinates?: Resolver<ReadonlyArray<ResolversTypes["ConsistencyCoordinate"]>, ParentType, ContextType>;
3699
+ createdAtUtcIso?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
3700
+ version?: Resolver<ResolversTypes["Int"], ParentType, ContextType>;
3701
+ }>;
3452
3702
  export interface DateTimeScalarConfig extends GraphQLScalarTypeConfig<ResolversTypes["DateTime"], any> {
3453
3703
  name: "DateTime";
3454
3704
  }
@@ -3504,6 +3754,10 @@ export type DocumentWithChildrenResolvers<ContextType = Context, ParentType exte
3504
3754
  export interface JsonObjectScalarConfig extends GraphQLScalarTypeConfig<ResolversTypes["JSONObject"], any> {
3505
3755
  name: "JSONObject";
3506
3756
  }
3757
+ export type JobBatchMetaResolvers<ContextType = Context, ParentType extends ResolversParentTypes["JobBatchMeta"] = ResolversParentTypes["JobBatchMeta"]> = ResolversObject<{
3758
+ batchId?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
3759
+ batchJobIds?: Resolver<ReadonlyArray<ResolversTypes["String"]>, ParentType, ContextType>;
3760
+ }>;
3507
3761
  export type JobChangeEventResolvers<ContextType = Context, ParentType extends ResolversParentTypes["JobChangeEvent"] = ResolversParentTypes["JobChangeEvent"]> = ResolversObject<{
3508
3762
  error?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
3509
3763
  jobId?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
@@ -3512,9 +3766,13 @@ export type JobChangeEventResolvers<ContextType = Context, ParentType extends Re
3512
3766
  }>;
3513
3767
  export type JobInfoResolvers<ContextType = Context, ParentType extends ResolversParentTypes["JobInfo"] = ResolversParentTypes["JobInfo"]> = ResolversObject<{
3514
3768
  completedAt?: Resolver<Maybe<ResolversTypes["DateTime"]>, ParentType, ContextType>;
3769
+ consistencyToken?: Resolver<ResolversTypes["ConsistencyToken"], ParentType, ContextType>;
3515
3770
  createdAt?: Resolver<ResolversTypes["DateTime"], ParentType, ContextType>;
3771
+ documentId?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
3516
3772
  error?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
3773
+ errorName?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
3517
3774
  id?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
3775
+ meta?: Resolver<ResolversTypes["JobBatchMeta"], ParentType, ContextType>;
3518
3776
  result?: Resolver<Maybe<ResolversTypes["JSONObject"]>, ParentType, ContextType>;
3519
3777
  status?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
3520
3778
  }>;
@@ -3530,6 +3788,7 @@ export type MutationResolvers<ContextType = Context, ParentType extends Resolver
3530
3788
  deleteDocuments?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType, Partial<MutationDeleteDocumentsArgs>>;
3531
3789
  execute?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType, RequireFields<MutationExecuteArgs, "actions">>;
3532
3790
  executeAsync?: Resolver<ResolversTypes["JobInfo"], ParentType, ContextType, RequireFields<MutationExecuteAsyncArgs, "actions">>;
3791
+ executeBatch?: Resolver<ResolversTypes["BatchExecutionResult"], ParentType, ContextType, RequireFields<MutationExecuteBatchArgs, "jobs">>;
3533
3792
  moveRelationship?: Resolver<ResolversTypes["MoveRelationshipResult"], ParentType, ContextType, RequireFields<MutationMoveRelationshipArgs, "relationshipType">>;
3534
3793
  mutateDocument?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType, RequireFields<MutationMutateDocumentArgs, "actions" | "documentIdentifier">>;
3535
3794
  mutateDocumentAsync?: Resolver<ResolversTypes["String"], ParentType, ContextType, RequireFields<MutationMutateDocumentAsyncArgs, "actions" | "documentIdentifier">>;
@@ -3556,9 +3815,11 @@ export type PhDocumentResolvers<ContextType = Context, ParentType extends Resolv
3556
3815
  documentType?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
3557
3816
  id?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
3558
3817
  lastModifiedAtUtcIso?: Resolver<ResolversTypes["DateTime"], ParentType, ContextType>;
3818
+ meta?: Resolver<Maybe<ResolversTypes["JSONObject"]>, ParentType, ContextType>;
3559
3819
  name?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
3560
3820
  operations?: Resolver<Maybe<ResolversTypes["ReactorOperationResultPage"]>, ParentType, ContextType, Partial<PhDocumentOperationsArgs>>;
3561
3821
  preferredEditor?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
3822
+ protocolVersions?: Resolver<Maybe<ResolversTypes["JSONObject"]>, ParentType, ContextType>;
3562
3823
  revisionsList?: Resolver<ReadonlyArray<ResolversTypes["Revision"]>, ParentType, ContextType>;
3563
3824
  slug?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
3564
3825
  state?: Resolver<ResolversTypes["JSONObject"], ParentType, ContextType>;
@@ -3681,7 +3942,11 @@ export type Resolvers<ContextType = Context> = ResolversObject<{
3681
3942
  ActionContext?: ActionContextResolvers<ContextType>;
3682
3943
  ActionEvaluation?: ActionEvaluationResolvers<ContextType>;
3683
3944
  ActionEvaluations?: ActionEvaluationsResolvers<ContextType>;
3945
+ BatchExecutionResult?: BatchExecutionResultResolvers<ContextType>;
3946
+ BatchJobResult?: BatchJobResultResolvers<ContextType>;
3684
3947
  ChannelMeta?: ChannelMetaResolvers<ContextType>;
3948
+ ConsistencyCoordinate?: ConsistencyCoordinateResolvers<ContextType>;
3949
+ ConsistencyToken?: ConsistencyTokenResolvers<ContextType>;
3685
3950
  DateTime?: GraphQLScalarType;
3686
3951
  DeadLetterInfo?: DeadLetterInfoResolvers<ContextType>;
3687
3952
  DocumentChangeContext?: DocumentChangeContextResolvers<ContextType>;
@@ -3692,6 +3957,7 @@ export type Resolvers<ContextType = Context> = ResolversObject<{
3692
3957
  DocumentRelationshipResultPage?: DocumentRelationshipResultPageResolvers<ContextType>;
3693
3958
  DocumentWithChildren?: DocumentWithChildrenResolvers<ContextType>;
3694
3959
  JSONObject?: GraphQLScalarType;
3960
+ JobBatchMeta?: JobBatchMetaResolvers<ContextType>;
3695
3961
  JobChangeEvent?: JobChangeEventResolvers<ContextType>;
3696
3962
  JobInfo?: JobInfoResolvers<ContextType>;
3697
3963
  MoveRelationshipResult?: MoveRelationshipResultResolvers<ContextType>;
@@ -3731,6 +3997,7 @@ export declare function ActionContextInputSchema(): z$1.ZodObject<Properties<Act
3731
3997
  export declare function ActionInputSchema(): z$1.ZodObject<Properties<ActionInput>>;
3732
3998
  export declare function ChannelMetaInputSchema(): z$1.ZodObject<Properties<ChannelMetaInput>>;
3733
3999
  export declare function DocumentOperationsFilterInputSchema(): z$1.ZodObject<Properties<DocumentOperationsFilterInput>>;
4000
+ export declare function ExecutionJobInputSchema(): z$1.ZodObject<Properties<ExecutionJobInput>>;
3734
4001
  export declare function OperationContextInputSchema(): z$1.ZodObject<Properties<OperationContextInput>>;
3735
4002
  export declare function OperationInputSchema(): z$1.ZodObject<Properties<OperationInput>>;
3736
4003
  export declare function OperationWithContextInputSchema(): z$1.ZodObject<Properties<OperationWithContextInput>>;
@@ -3748,6 +4015,7 @@ export declare function TouchChannelInputSchema(): z$1.ZodObject<Properties<Touc
3748
4015
  export declare function ViewFilterInputSchema(): z$1.ZodObject<Properties<ViewFilterInput>>;
3749
4016
  export declare const PhDocumentFieldsFragmentDoc: DocumentNode;
3750
4017
  export declare const DocumentRelationshipFieldsFragmentDoc: DocumentNode;
4018
+ export declare const JobInfoFieldsFragmentDoc: DocumentNode;
3751
4019
  export declare const GetDocumentModelsDocument: DocumentNode;
3752
4020
  export declare const GetDocumentDocument: DocumentNode;
3753
4021
  export declare const GetDocumentWithOperationsDocument: DocumentNode;
@@ -3763,6 +4031,7 @@ export declare const CreateDocumentDocument: DocumentNode;
3763
4031
  export declare const CreateEmptyDocumentDocument: DocumentNode;
3764
4032
  export declare const MutateDocumentDocument: DocumentNode;
3765
4033
  export declare const MutateDocumentAsyncDocument: DocumentNode;
4034
+ export declare const ExecuteBatchDocument: DocumentNode;
3766
4035
  export declare const RenameDocumentDocument: DocumentNode;
3767
4036
  export declare const SetPreferredEditorDocument: DocumentNode;
3768
4037
  export declare const AddRelationshipDocument: DocumentNode;
@@ -3793,6 +4062,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
3793
4062
  CreateEmptyDocument(variables: CreateEmptyDocumentMutationVariables, options?: C): Promise<CreateEmptyDocumentMutation>;
3794
4063
  MutateDocument(variables: MutateDocumentMutationVariables, options?: C): Promise<MutateDocumentMutation>;
3795
4064
  MutateDocumentAsync(variables: MutateDocumentAsyncMutationVariables, options?: C): Promise<MutateDocumentAsyncMutation>;
4065
+ ExecuteBatch(variables: ExecuteBatchMutationVariables, options?: C): Promise<ExecuteBatchMutation>;
3796
4066
  RenameDocument(variables: RenameDocumentMutationVariables, options?: C): Promise<RenameDocumentMutation>;
3797
4067
  SetPreferredEditor(variables: SetPreferredEditorMutationVariables, options?: C): Promise<SetPreferredEditorMutation>;
3798
4068
  AddRelationship(variables: AddRelationshipMutationVariables, options?: C): Promise<AddRelationshipMutation>;
@@ -3887,6 +4157,9 @@ export declare function createReactorGraphQLClient(url: string, fetchImpl?: Fetc
3887
4157
  actions: ReadonlyArray<ActionInput>;
3888
4158
  branch?: InputMaybe<Scalars["String"]["input"]>;
3889
4159
  }>, options?: {} | undefined): Promise<MutateDocumentAsyncMutation>;
4160
+ ExecuteBatch(variables: Exact<{
4161
+ jobs: ReadonlyArray<ExecutionJobInput>;
4162
+ }>, options?: {} | undefined): Promise<ExecuteBatchMutation>;
3890
4163
  RenameDocument(variables: Exact<{
3891
4164
  documentIdentifier: Scalars["String"]["input"];
3892
4165
  name: Scalars["String"]["input"];