@abloatai/transaction 0.48.0 → 0.49.0
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/CONVENTIONS.md +7 -7
- package/README.md +1 -1
- package/dist/ai-sdk/modelTools.d.ts +1 -1
- package/dist/ai-sdk/modelTools.js +1 -1
- package/dist/ai-sdk/updateTool.d.ts +2 -2
- package/dist/ai-sdk/updateTool.d.ts.map +1 -1
- package/dist/auth/bootstrapScope.d.ts +1 -1
- package/dist/auth/capability.d.ts +32 -10
- package/dist/auth/capability.d.ts.map +1 -1
- package/dist/auth/capability.js +9 -3
- package/dist/auth/capability.js.map +1 -1
- package/dist/auth/capabilityLifecycle.d.ts +2 -2
- package/dist/auth/capabilityLifecycle.d.ts.map +1 -1
- package/dist/auth/capabilityLifecycle.js +3 -2
- package/dist/auth/capabilityLifecycle.js.map +1 -1
- package/dist/auth/identity.d.ts +3 -0
- package/dist/auth/identity.d.ts.map +1 -1
- package/dist/auth/identity.js +13 -1
- package/dist/auth/identity.js.map +1 -1
- package/dist/auth/index.d.ts +2 -2
- package/dist/auth/index.d.ts.map +1 -1
- package/dist/auth/index.js +1 -1
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/schemas.d.ts +18 -1
- package/dist/auth/schemas.d.ts.map +1 -1
- package/dist/auth/schemas.js +3 -1
- package/dist/auth/schemas.js.map +1 -1
- package/dist/auth/sessionMint.d.ts.map +1 -1
- package/dist/auth/sessionMint.js +0 -1
- package/dist/auth/sessionMint.js.map +1 -1
- package/dist/commitRecordRuntime.d.ts +30 -0
- package/dist/commitRecordRuntime.d.ts.map +1 -0
- package/dist/commitRecordRuntime.js +188 -0
- package/dist/commitRecordRuntime.js.map +1 -0
- package/dist/coordination/index.d.ts +3 -3
- package/dist/coordination/index.d.ts.map +1 -1
- package/dist/coordination/index.js +2 -2
- package/dist/coordination/index.js.map +1 -1
- package/dist/coordination/locator.d.ts +5 -0
- package/dist/coordination/locator.d.ts.map +1 -1
- package/dist/coordination/locator.js +12 -0
- package/dist/coordination/locator.js.map +1 -1
- package/dist/coordination/schema.d.ts +205 -15
- package/dist/coordination/schema.d.ts.map +1 -1
- package/dist/coordination/schema.js +88 -47
- package/dist/coordination/schema.js.map +1 -1
- package/dist/coordination/targetConflict.js +1 -1
- package/dist/durableWrites.d.ts +3 -3
- package/dist/durableWrites.d.ts.map +1 -1
- package/dist/durableWrites.js +1 -1
- package/dist/errorCodes.d.ts +20 -1
- package/dist/errorCodes.d.ts.map +1 -1
- package/dist/errorCodes.js +44 -10
- package/dist/errorCodes.js.map +1 -1
- package/dist/errorObservation.d.ts +82 -0
- package/dist/errorObservation.d.ts.map +1 -0
- package/dist/errorObservation.js +101 -0
- package/dist/errorObservation.js.map +1 -0
- package/dist/errors.d.ts +2 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +6 -1
- package/dist/errors.js.map +1 -1
- package/dist/index.d.ts +5 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/internal/read-set.d.ts +8 -0
- package/dist/internal/read-set.d.ts.map +1 -0
- package/dist/internal/read-set.js +7 -0
- package/dist/internal/read-set.js.map +1 -0
- package/dist/logger.d.ts +1 -1
- package/dist/observability.d.ts +1 -1
- package/dist/observability.js +1 -1
- package/dist/readSetContext.d.ts +54 -0
- package/dist/readSetContext.d.ts.map +1 -0
- package/dist/readSetContext.js +98 -0
- package/dist/readSetContext.js.map +1 -0
- package/dist/resources/functionalUpdate.d.ts +13 -3
- package/dist/resources/functionalUpdate.d.ts.map +1 -1
- package/dist/resources/functionalUpdate.js.map +1 -1
- package/dist/resources/httpResources.d.ts +23 -7
- package/dist/resources/httpResources.d.ts.map +1 -1
- package/dist/resources/modelOperations.d.ts +2 -2
- package/dist/resources/modelOperations.js +1 -1
- package/dist/resources/mutationOptions.d.ts +1 -1
- package/dist/resources/mutationOptions.js +1 -1
- package/dist/resources/where.d.ts +1 -1
- package/dist/resources/where.js +1 -1
- package/dist/resources/writeOptionsSchema.d.ts +39 -4
- package/dist/resources/writeOptionsSchema.d.ts.map +1 -1
- package/dist/resources/writeOptionsSchema.js +12 -6
- package/dist/resources/writeOptionsSchema.js.map +1 -1
- package/dist/schema/index.js +1 -1
- package/dist/schema/index.js.map +1 -1
- package/dist/schema/openapi.d.ts.map +1 -1
- package/dist/schema/openapi.js +41 -7
- package/dist/schema/openapi.js.map +1 -1
- package/dist/server/commit.d.ts +7 -1
- package/dist/server/commit.d.ts.map +1 -1
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +1 -1
- package/dist/server/index.js.map +1 -1
- package/dist/source/adapters/kysely.d.ts.map +1 -1
- package/dist/source/adapters/kysely.js +11 -4
- package/dist/source/adapters/kysely.js.map +1 -1
- package/dist/source/adapters/kyselyMutationCore.d.ts.map +1 -1
- package/dist/source/adapters/kyselyMutationCore.js +14 -2
- package/dist/source/adapters/kyselyMutationCore.js.map +1 -1
- package/dist/source/contract.d.ts +2 -0
- package/dist/source/contract.d.ts.map +1 -1
- package/dist/source/types.d.ts +1 -1
- package/dist/testing/fixtures/httpResponses.d.ts +30 -1
- package/dist/testing/fixtures/httpResponses.d.ts.map +1 -1
- package/dist/testing/fixtures/httpResponses.js +48 -1
- package/dist/testing/fixtures/httpResponses.js.map +1 -1
- package/dist/transactionLayer.d.ts +1 -1
- package/dist/transactions/{settlement → confirmation}/commitEnvelope.d.ts +4 -2
- package/dist/transactions/confirmation/commitEnvelope.d.ts.map +1 -0
- package/dist/transactions/{settlement → confirmation}/commitEnvelope.js +8 -3
- package/dist/transactions/confirmation/commitEnvelope.js.map +1 -0
- package/dist/transactions/confirmation/httpCommitEnvelope.d.ts.map +1 -0
- package/dist/transactions/confirmation/httpCommitEnvelope.js.map +1 -0
- package/dist/transactions/confirmation/idempotencyKey.d.ts.map +1 -0
- package/dist/transactions/confirmation/idempotencyKey.js.map +1 -0
- package/dist/transactions/{settlement → confirmation}/pendingWrite.d.ts +3 -2
- package/dist/transactions/confirmation/pendingWrite.d.ts.map +1 -0
- package/dist/transactions/confirmation/pendingWrite.js.map +1 -0
- package/dist/transport/commitFrames.d.ts +1 -0
- package/dist/transport/commitFrames.d.ts.map +1 -1
- package/dist/transport/commitFrames.js +8 -7
- package/dist/transport/commitFrames.js.map +1 -1
- package/dist/transport/connectionManager.d.ts +1 -1
- package/dist/transport/connectionManager.js +1 -1
- package/dist/transport/httpClient.d.ts +23 -9
- package/dist/transport/httpClient.d.ts.map +1 -1
- package/dist/transport/httpClient.js +134 -15
- package/dist/transport/httpClient.js.map +1 -1
- package/dist/transport/httpOptions.d.ts +9 -1
- package/dist/transport/httpOptions.d.ts.map +1 -1
- package/dist/transport/httpTransport.d.ts +3 -0
- package/dist/transport/httpTransport.d.ts.map +1 -1
- package/dist/transport/httpTransport.js +109 -22
- package/dist/transport/httpTransport.js.map +1 -1
- package/dist/transport/wsFrameHandlers.d.ts +3 -1
- package/dist/transport/wsFrameHandlers.d.ts.map +1 -1
- package/dist/transport/wsFrameHandlers.js +38 -17
- package/dist/transport/wsFrameHandlers.js.map +1 -1
- package/dist/transport/wsTransport.d.ts +3 -0
- package/dist/transport/wsTransport.d.ts.map +1 -1
- package/dist/transport/wsTransport.js +32 -1
- package/dist/transport/wsTransport.js.map +1 -1
- package/dist/utils/json.d.ts +1 -1
- package/dist/utils/json.js +1 -1
- package/dist/wire/accountResponses.d.ts +1 -1
- package/dist/wire/auth.d.ts +2 -2
- package/dist/wire/commit.d.ts +1652 -213
- package/dist/wire/commit.d.ts.map +1 -1
- package/dist/wire/commit.js +196 -132
- package/dist/wire/commit.js.map +1 -1
- package/dist/wire/delta.d.ts +1 -1
- package/dist/wire/errorEnvelope.d.ts +1 -0
- package/dist/wire/errorEnvelope.d.ts.map +1 -1
- package/dist/wire/errorEnvelope.js +1 -0
- package/dist/wire/errorEnvelope.js.map +1 -1
- package/dist/wire/feedCursor.d.ts +1 -1
- package/dist/wire/feedCursor.js +1 -1
- package/dist/wire/feedEvent.d.ts +3 -3
- package/dist/wire/frames.d.ts +8 -4
- package/dist/wire/frames.d.ts.map +1 -1
- package/dist/wire/frames.js +6 -3
- package/dist/wire/frames.js.map +1 -1
- package/dist/wire/inboundFrames.d.ts +44 -4
- package/dist/wire/inboundFrames.d.ts.map +1 -1
- package/dist/wire/index.d.ts +6 -4
- package/dist/wire/index.d.ts.map +1 -1
- package/dist/wire/index.js +6 -5
- package/dist/wire/index.js.map +1 -1
- package/dist/wire/modelMutations.d.ts +35 -0
- package/dist/wire/modelMutations.d.ts.map +1 -1
- package/dist/wire/modelMutations.js +9 -2
- package/dist/wire/modelMutations.js.map +1 -1
- package/dist/wire/modelResponses.d.ts +12 -1
- package/dist/wire/modelResponses.d.ts.map +1 -1
- package/dist/wire/modelResponses.js +12 -1
- package/dist/wire/modelResponses.js.map +1 -1
- package/package.json +12 -2
- package/src/ai-sdk/modelTools.ts +1 -1
- package/src/ai-sdk/updateTool.ts +2 -2
- package/src/auth/bootstrapScope.ts +1 -1
- package/src/auth/capability.ts +13 -4
- package/src/auth/capabilityLifecycle.ts +3 -2
- package/src/auth/identity.ts +16 -1
- package/src/auth/index.ts +2 -0
- package/src/auth/schemas.ts +3 -0
- package/src/auth/sessionMint.ts +0 -1
- package/src/commitRecordRuntime.ts +245 -0
- package/src/coordination/index.ts +24 -1
- package/src/coordination/locator.ts +17 -0
- package/src/coordination/schema.ts +114 -49
- package/src/coordination/targetConflict.ts +1 -1
- package/src/durableWrites.ts +3 -3
- package/src/errorCodes.ts +107 -11
- package/src/errorObservation.ts +121 -0
- package/src/errors.ts +5 -1
- package/src/index.ts +8 -1
- package/src/internal/read-set.ts +18 -0
- package/src/logger.ts +1 -1
- package/src/observability.ts +1 -1
- package/src/readSetContext.ts +164 -0
- package/src/resources/functionalUpdate.ts +16 -4
- package/src/resources/httpResources.ts +27 -8
- package/src/resources/modelOperations.ts +2 -2
- package/src/resources/mutationOptions.ts +1 -1
- package/src/resources/where.ts +1 -1
- package/src/resources/writeOptionsSchema.ts +30 -12
- package/src/schema/index.ts +1 -1
- package/src/schema/openapi.ts +48 -7
- package/src/server/commit.ts +7 -1
- package/src/server/index.ts +5 -1
- package/src/source/adapters/kysely.ts +12 -4
- package/src/source/adapters/kyselyMutationCore.ts +14 -2
- package/src/source/types.ts +1 -1
- package/src/testing/fixtures/httpResponses.ts +60 -1
- package/src/transactionLayer.ts +1 -1
- package/src/transactions/{settlement → confirmation}/commitEnvelope.ts +13 -3
- package/src/transport/commitFrames.ts +7 -5
- package/src/transport/connectionManager.ts +1 -1
- package/src/transport/httpClient.ts +256 -29
- package/src/transport/httpOptions.ts +9 -1
- package/src/transport/httpTransport.ts +139 -27
- package/src/transport/wsFrameHandlers.ts +46 -8
- package/src/transport/wsTransport.ts +42 -1
- package/src/utils/json.ts +1 -1
- package/src/wire/commit.ts +248 -147
- package/src/wire/errorEnvelope.ts +1 -0
- package/src/wire/feedCursor.ts +1 -1
- package/src/wire/frames.ts +9 -4
- package/src/wire/index.ts +38 -5
- package/src/wire/modelMutations.ts +16 -2
- package/src/wire/modelResponses.ts +14 -1
- package/dist/transactions/settlement/commitEnvelope.d.ts.map +0 -1
- package/dist/transactions/settlement/commitEnvelope.js.map +0 -1
- package/dist/transactions/settlement/httpCommitEnvelope.d.ts.map +0 -1
- package/dist/transactions/settlement/httpCommitEnvelope.js.map +0 -1
- package/dist/transactions/settlement/idempotencyKey.d.ts.map +0 -1
- package/dist/transactions/settlement/idempotencyKey.js.map +0 -1
- package/dist/transactions/settlement/pendingWrite.d.ts.map +0 -1
- package/dist/transactions/settlement/pendingWrite.js.map +0 -1
- /package/dist/transactions/{settlement → confirmation}/httpCommitEnvelope.d.ts +0 -0
- /package/dist/transactions/{settlement → confirmation}/httpCommitEnvelope.js +0 -0
- /package/dist/transactions/{settlement → confirmation}/idempotencyKey.d.ts +0 -0
- /package/dist/transactions/{settlement → confirmation}/idempotencyKey.js +0 -0
- /package/dist/transactions/{settlement → confirmation}/pendingWrite.js +0 -0
- /package/src/transactions/{settlement → confirmation}/httpCommitEnvelope.ts +0 -0
- /package/src/transactions/{settlement → confirmation}/idempotencyKey.ts +0 -0
- /package/src/transactions/{settlement → confirmation}/pendingWrite.ts +0 -0
package/dist/wire/commit.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Canonical runtime contracts for commit
|
|
2
|
+
* Canonical runtime contracts for commit status.
|
|
3
3
|
*
|
|
4
4
|
* A commit crosses several boundaries during its lifetime: the server's
|
|
5
5
|
* execution cache, the HTTP/WS receipt, and the client's acknowledgement
|
|
6
6
|
* tracker. Those boundaries intentionally have different envelopes, but they
|
|
7
|
-
* all compose the same
|
|
7
|
+
* all compose the same lifecycle vocabulary from this module:
|
|
8
8
|
*
|
|
9
|
-
* - `confirmed` — the authoritative change is visible
|
|
9
|
+
* - `confirmed` — the authoritative change is visible through `lastSyncId`.
|
|
10
10
|
* - `queued` — a connected source durably accepted the write and only its
|
|
11
11
|
* correlated authoritative source delta (WAL for direct, endpoint event
|
|
12
12
|
* for endpoint-only), identified by `correlationId`, may promote it.
|
|
@@ -23,54 +23,128 @@ export declare const COMMIT_CORRELATION_ID_MAX_LENGTH = 255;
|
|
|
23
23
|
/** Opaque server-authored identity shared by a queued receipt and its authoritative source delta. */
|
|
24
24
|
export declare const correlationIdSchema: z.ZodString;
|
|
25
25
|
export type CorrelationId = z.infer<typeof correlationIdSchema>;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
export
|
|
26
|
+
/** Public, server-authored commit timestamps. */
|
|
27
|
+
export declare const commitTimestampSchema: z.ZodISODateTime;
|
|
28
|
+
export declare const queuedStatusSchema: z.ZodLiteral<"queued">;
|
|
29
|
+
export declare const confirmedStatusSchema: z.ZodLiteral<"confirmed">;
|
|
30
|
+
export declare const rejectedStatusSchema: z.ZodLiteral<"rejected">;
|
|
31
|
+
export declare const queuedCommitStatusSchema: z.ZodObject<{
|
|
32
|
+
status: z.ZodLiteral<"queued">;
|
|
33
|
+
statusAt: z.ZodISODateTime;
|
|
34
|
+
lastSyncId: z.ZodLiteral<0>;
|
|
35
|
+
correlationId: z.ZodString;
|
|
36
|
+
}, z.core.$strict>;
|
|
37
|
+
export declare const confirmedCommitStatusSchema: z.ZodObject<{
|
|
38
|
+
status: z.ZodLiteral<"confirmed">;
|
|
39
|
+
statusAt: z.ZodISODateTime;
|
|
40
|
+
lastSyncId: z.ZodNumber;
|
|
41
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
42
|
+
}, z.core.$strict>;
|
|
43
|
+
export declare const rejectedCommitStatusSchema: z.ZodObject<{
|
|
44
|
+
status: z.ZodLiteral<"rejected">;
|
|
45
|
+
statusAt: z.ZodISODateTime;
|
|
46
|
+
}, z.core.$strict>;
|
|
47
|
+
/** The single semantic owner of the complete commit lifecycle fact. */
|
|
48
|
+
export declare const commitStatusSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
49
|
+
status: z.ZodLiteral<"queued">;
|
|
50
|
+
statusAt: z.ZodISODateTime;
|
|
51
|
+
lastSyncId: z.ZodLiteral<0>;
|
|
52
|
+
correlationId: z.ZodString;
|
|
53
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
54
|
+
status: z.ZodLiteral<"confirmed">;
|
|
55
|
+
statusAt: z.ZodISODateTime;
|
|
56
|
+
lastSyncId: z.ZodNumber;
|
|
57
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
58
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
59
|
+
status: z.ZodLiteral<"rejected">;
|
|
60
|
+
statusAt: z.ZodISODateTime;
|
|
61
|
+
}, z.core.$strict>], "status">;
|
|
62
|
+
export type CommitStatusValue = z.infer<typeof commitStatusSchema>;
|
|
63
|
+
export type CommitStatus = CommitStatusValue['status'];
|
|
31
64
|
/**
|
|
32
|
-
* The
|
|
65
|
+
* The lifecycle states a write may block on — extracted from the reported
|
|
33
66
|
* vocabulary above, never restated beside it. `commitStatusSchema` is every
|
|
34
67
|
* state a server can report; this is the subset a caller can usefully wait for,
|
|
35
68
|
* and the two are not the same question: one describes an outcome, the other a
|
|
36
69
|
* request.
|
|
37
70
|
*
|
|
38
71
|
* `.extract` keeps the relationship mechanical in both directions. Renaming a
|
|
39
|
-
*
|
|
72
|
+
* lifecycle state breaks this line at build time, and adding one that nobody
|
|
40
73
|
* can block on — a commit parked for a human, say — does not become a legal
|
|
41
74
|
* `wait` merely by being added above. Both the `wait` option's runtime
|
|
42
75
|
* validator and its interface derive from here, so they cannot disagree.
|
|
43
76
|
*/
|
|
44
|
-
export declare const commitWaitSchema: z.
|
|
45
|
-
queued: "queued";
|
|
46
|
-
confirmed: "confirmed";
|
|
47
|
-
}>;
|
|
77
|
+
export declare const commitWaitSchema: z.ZodUnion<readonly [z.ZodLiteral<"queued">, z.ZodLiteral<"confirmed">]>;
|
|
48
78
|
export type CommitWait = z.infer<typeof commitWaitSchema>;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}, z.core.$strict
|
|
57
|
-
export type
|
|
79
|
+
export declare const commitActorSchema: z.ZodObject<{
|
|
80
|
+
kind: z.ZodEnum<{
|
|
81
|
+
user: "user";
|
|
82
|
+
agent: "agent";
|
|
83
|
+
system: "system";
|
|
84
|
+
}>;
|
|
85
|
+
id: z.ZodString;
|
|
86
|
+
}, z.core.$strict>;
|
|
87
|
+
export type CommitActor = z.infer<typeof commitActorSchema>;
|
|
88
|
+
export declare const commitAttemptSchema: z.ZodObject<{
|
|
89
|
+
id: z.ZodString;
|
|
90
|
+
observedAt: z.ZodISODateTime;
|
|
91
|
+
transport: z.ZodEnum<{
|
|
92
|
+
http: "http";
|
|
93
|
+
websocket: "websocket";
|
|
94
|
+
internal: "internal";
|
|
95
|
+
}>;
|
|
96
|
+
kind: z.ZodEnum<{
|
|
97
|
+
execution: "execution";
|
|
98
|
+
replay: "replay";
|
|
99
|
+
}>;
|
|
100
|
+
}, z.core.$strict>;
|
|
101
|
+
export type CommitAttempt = z.infer<typeof commitAttemptSchema>;
|
|
102
|
+
export declare const commitClaimReferenceSchema: z.ZodObject<{
|
|
103
|
+
id: z.ZodString;
|
|
104
|
+
target: z.ZodObject<{
|
|
105
|
+
scope: z.ZodLiteral<"row">;
|
|
106
|
+
model: z.ZodString;
|
|
107
|
+
id: z.ZodString;
|
|
108
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
109
|
+
}, z.core.$strip>;
|
|
110
|
+
fenceToken: z.ZodNumber;
|
|
111
|
+
}, z.core.$strict>;
|
|
112
|
+
export type CommitClaimReference = z.infer<typeof commitClaimReferenceSchema>;
|
|
58
113
|
/**
|
|
59
114
|
* Successful HTTP/WS receipt. This schema is deliberately strict about the
|
|
60
|
-
*
|
|
115
|
+
* lifecycle discriminant. Zod's default object behavior strips additive
|
|
61
116
|
* fields, which is forward compatible without allowing server-internal
|
|
62
117
|
* recovery evidence to leak through a parsed wire receipt.
|
|
63
118
|
*/
|
|
64
119
|
export declare const commitReceiptSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
65
120
|
status: z.ZodLiteral<"queued">;
|
|
121
|
+
statusAt: z.ZodISODateTime;
|
|
122
|
+
lastSyncId: z.ZodLiteral<0>;
|
|
66
123
|
correlationId: z.ZodString;
|
|
67
124
|
object: z.ZodLiteral<"commit_receipt">;
|
|
68
125
|
id: z.ZodOptional<z.ZodString>;
|
|
69
126
|
clientTxId: z.ZodString;
|
|
70
127
|
serverTxId: z.ZodString;
|
|
128
|
+
createdAt: z.ZodISODateTime;
|
|
71
129
|
success: z.ZodLiteral<true>;
|
|
72
|
-
lastSyncId: z.ZodNumber;
|
|
73
130
|
ops: z.ZodNumber;
|
|
131
|
+
authority: z.ZodObject<{
|
|
132
|
+
organizationId: z.ZodString;
|
|
133
|
+
projectId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
134
|
+
branchId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
135
|
+
syncGroups: z.ZodArray<z.ZodString>;
|
|
136
|
+
operations: z.ZodArray<z.ZodTemplateLiteral<`${string}.update` | `${string}.read` | `${string}.create` | `${string}.delete`>>;
|
|
137
|
+
participantKind: z.ZodEnum<{
|
|
138
|
+
user: "user";
|
|
139
|
+
agent: "agent";
|
|
140
|
+
system: "system";
|
|
141
|
+
}>;
|
|
142
|
+
participantId: z.ZodString;
|
|
143
|
+
deliveryPartition: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
144
|
+
index: z.ZodNumber;
|
|
145
|
+
count: z.ZodNumber;
|
|
146
|
+
}, z.core.$strip>>>;
|
|
147
|
+
}, z.core.$strip>;
|
|
74
148
|
notifications: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
75
149
|
object: z.ZodLiteral<"stale_notification">;
|
|
76
150
|
target: z.ZodReadonly<z.ZodObject<{
|
|
@@ -134,16 +208,35 @@ export declare const commitReceiptSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
134
208
|
}, z.core.$strip>>;
|
|
135
209
|
}, z.core.$strip>], "scope">>>;
|
|
136
210
|
missingIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
137
|
-
}, z.core.$
|
|
211
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
138
212
|
status: z.ZodLiteral<"confirmed">;
|
|
213
|
+
statusAt: z.ZodISODateTime;
|
|
214
|
+
lastSyncId: z.ZodNumber;
|
|
139
215
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
140
216
|
object: z.ZodLiteral<"commit_receipt">;
|
|
141
217
|
id: z.ZodOptional<z.ZodString>;
|
|
142
218
|
clientTxId: z.ZodString;
|
|
143
219
|
serverTxId: z.ZodString;
|
|
220
|
+
createdAt: z.ZodISODateTime;
|
|
144
221
|
success: z.ZodLiteral<true>;
|
|
145
|
-
lastSyncId: z.ZodNumber;
|
|
146
222
|
ops: z.ZodNumber;
|
|
223
|
+
authority: z.ZodObject<{
|
|
224
|
+
organizationId: z.ZodString;
|
|
225
|
+
projectId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
226
|
+
branchId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
227
|
+
syncGroups: z.ZodArray<z.ZodString>;
|
|
228
|
+
operations: z.ZodArray<z.ZodTemplateLiteral<`${string}.update` | `${string}.read` | `${string}.create` | `${string}.delete`>>;
|
|
229
|
+
participantKind: z.ZodEnum<{
|
|
230
|
+
user: "user";
|
|
231
|
+
agent: "agent";
|
|
232
|
+
system: "system";
|
|
233
|
+
}>;
|
|
234
|
+
participantId: z.ZodString;
|
|
235
|
+
deliveryPartition: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
236
|
+
index: z.ZodNumber;
|
|
237
|
+
count: z.ZodNumber;
|
|
238
|
+
}, z.core.$strip>>>;
|
|
239
|
+
}, z.core.$strip>;
|
|
147
240
|
notifications: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
148
241
|
object: z.ZodLiteral<"stale_notification">;
|
|
149
242
|
target: z.ZodReadonly<z.ZodObject<{
|
|
@@ -207,22 +300,41 @@ export declare const commitReceiptSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
207
300
|
}, z.core.$strip>>;
|
|
208
301
|
}, z.core.$strip>], "scope">>>;
|
|
209
302
|
missingIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
210
|
-
}, z.core.$
|
|
303
|
+
}, z.core.$strict>], "status">;
|
|
211
304
|
export type CommitReceiptWire = z.infer<typeof commitReceiptSchema>;
|
|
212
305
|
/** The failure arm is separate: queued/confirmed always imply `success:true`. */
|
|
213
306
|
export declare const rejectedCommitReceiptSchema: z.ZodObject<{
|
|
307
|
+
status: z.ZodLiteral<"rejected">;
|
|
308
|
+
statusAt: z.ZodISODateTime;
|
|
214
309
|
object: z.ZodLiteral<"commit_receipt">;
|
|
215
310
|
clientTxId: z.ZodString;
|
|
216
311
|
serverTxId: z.ZodString;
|
|
312
|
+
createdAt: z.ZodISODateTime;
|
|
217
313
|
success: z.ZodLiteral<false>;
|
|
218
|
-
status: z.ZodLiteral<"rejected">;
|
|
219
|
-
lastSyncId: z.ZodOptional<z.ZodNumber>;
|
|
220
314
|
ops: z.ZodOptional<z.ZodNumber>;
|
|
315
|
+
authority: z.ZodObject<{
|
|
316
|
+
organizationId: z.ZodString;
|
|
317
|
+
projectId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
318
|
+
branchId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
319
|
+
syncGroups: z.ZodArray<z.ZodString>;
|
|
320
|
+
operations: z.ZodArray<z.ZodTemplateLiteral<`${string}.update` | `${string}.read` | `${string}.create` | `${string}.delete`>>;
|
|
321
|
+
participantKind: z.ZodEnum<{
|
|
322
|
+
user: "user";
|
|
323
|
+
agent: "agent";
|
|
324
|
+
system: "system";
|
|
325
|
+
}>;
|
|
326
|
+
participantId: z.ZodString;
|
|
327
|
+
deliveryPartition: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
328
|
+
index: z.ZodNumber;
|
|
329
|
+
count: z.ZodNumber;
|
|
330
|
+
}, z.core.$strip>>>;
|
|
331
|
+
}, z.core.$strip>;
|
|
221
332
|
error: z.ZodObject<{
|
|
222
|
-
code: z.
|
|
333
|
+
code: z.ZodType<ErrorCode, unknown, z.core.$ZodTypeInternals<ErrorCode, unknown>>;
|
|
223
334
|
message: z.ZodString;
|
|
224
335
|
field: z.ZodOptional<z.ZodString>;
|
|
225
336
|
request_id: z.ZodOptional<z.ZodString>;
|
|
337
|
+
event_id: z.ZodOptional<z.ZodString>;
|
|
226
338
|
requiredCapability: z.ZodOptional<z.ZodObject<{
|
|
227
339
|
scope: z.ZodString;
|
|
228
340
|
constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodString]>>>;
|
|
@@ -232,18 +344,37 @@ export declare const rejectedCommitReceiptSchema: z.ZodObject<{
|
|
|
232
344
|
}, z.core.$loose>>;
|
|
233
345
|
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
234
346
|
}, z.core.$strip>;
|
|
235
|
-
}, z.core.$
|
|
347
|
+
}, z.core.$strict>;
|
|
236
348
|
export type RejectedCommitReceiptWire = z.infer<typeof rejectedCommitReceiptSchema>;
|
|
237
349
|
export declare const mutationResultPayloadSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
238
350
|
status: z.ZodLiteral<"queued">;
|
|
351
|
+
statusAt: z.ZodISODateTime;
|
|
352
|
+
lastSyncId: z.ZodLiteral<0>;
|
|
239
353
|
correlationId: z.ZodString;
|
|
240
354
|
object: z.ZodLiteral<"commit_receipt">;
|
|
241
355
|
id: z.ZodOptional<z.ZodString>;
|
|
242
356
|
clientTxId: z.ZodString;
|
|
243
357
|
serverTxId: z.ZodString;
|
|
358
|
+
createdAt: z.ZodISODateTime;
|
|
244
359
|
success: z.ZodLiteral<true>;
|
|
245
|
-
lastSyncId: z.ZodNumber;
|
|
246
360
|
ops: z.ZodNumber;
|
|
361
|
+
authority: z.ZodObject<{
|
|
362
|
+
organizationId: z.ZodString;
|
|
363
|
+
projectId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
364
|
+
branchId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
365
|
+
syncGroups: z.ZodArray<z.ZodString>;
|
|
366
|
+
operations: z.ZodArray<z.ZodTemplateLiteral<`${string}.update` | `${string}.read` | `${string}.create` | `${string}.delete`>>;
|
|
367
|
+
participantKind: z.ZodEnum<{
|
|
368
|
+
user: "user";
|
|
369
|
+
agent: "agent";
|
|
370
|
+
system: "system";
|
|
371
|
+
}>;
|
|
372
|
+
participantId: z.ZodString;
|
|
373
|
+
deliveryPartition: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
374
|
+
index: z.ZodNumber;
|
|
375
|
+
count: z.ZodNumber;
|
|
376
|
+
}, z.core.$strip>>>;
|
|
377
|
+
}, z.core.$strip>;
|
|
247
378
|
notifications: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
248
379
|
object: z.ZodLiteral<"stale_notification">;
|
|
249
380
|
target: z.ZodReadonly<z.ZodObject<{
|
|
@@ -307,16 +438,35 @@ export declare const mutationResultPayloadSchema: z.ZodUnion<readonly [z.ZodDisc
|
|
|
307
438
|
}, z.core.$strip>>;
|
|
308
439
|
}, z.core.$strip>], "scope">>>;
|
|
309
440
|
missingIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
310
|
-
}, z.core.$
|
|
441
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
311
442
|
status: z.ZodLiteral<"confirmed">;
|
|
443
|
+
statusAt: z.ZodISODateTime;
|
|
444
|
+
lastSyncId: z.ZodNumber;
|
|
312
445
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
313
446
|
object: z.ZodLiteral<"commit_receipt">;
|
|
314
447
|
id: z.ZodOptional<z.ZodString>;
|
|
315
448
|
clientTxId: z.ZodString;
|
|
316
449
|
serverTxId: z.ZodString;
|
|
450
|
+
createdAt: z.ZodISODateTime;
|
|
317
451
|
success: z.ZodLiteral<true>;
|
|
318
|
-
lastSyncId: z.ZodNumber;
|
|
319
452
|
ops: z.ZodNumber;
|
|
453
|
+
authority: z.ZodObject<{
|
|
454
|
+
organizationId: z.ZodString;
|
|
455
|
+
projectId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
456
|
+
branchId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
457
|
+
syncGroups: z.ZodArray<z.ZodString>;
|
|
458
|
+
operations: z.ZodArray<z.ZodTemplateLiteral<`${string}.update` | `${string}.read` | `${string}.create` | `${string}.delete`>>;
|
|
459
|
+
participantKind: z.ZodEnum<{
|
|
460
|
+
user: "user";
|
|
461
|
+
agent: "agent";
|
|
462
|
+
system: "system";
|
|
463
|
+
}>;
|
|
464
|
+
participantId: z.ZodString;
|
|
465
|
+
deliveryPartition: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
466
|
+
index: z.ZodNumber;
|
|
467
|
+
count: z.ZodNumber;
|
|
468
|
+
}, z.core.$strip>>>;
|
|
469
|
+
}, z.core.$strip>;
|
|
320
470
|
notifications: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
321
471
|
object: z.ZodLiteral<"stale_notification">;
|
|
322
472
|
target: z.ZodReadonly<z.ZodObject<{
|
|
@@ -380,19 +530,38 @@ export declare const mutationResultPayloadSchema: z.ZodUnion<readonly [z.ZodDisc
|
|
|
380
530
|
}, z.core.$strip>>;
|
|
381
531
|
}, z.core.$strip>], "scope">>>;
|
|
382
532
|
missingIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
383
|
-
}, z.core.$
|
|
533
|
+
}, z.core.$strict>], "status">, z.ZodObject<{
|
|
534
|
+
status: z.ZodLiteral<"rejected">;
|
|
535
|
+
statusAt: z.ZodISODateTime;
|
|
384
536
|
object: z.ZodLiteral<"commit_receipt">;
|
|
385
537
|
clientTxId: z.ZodString;
|
|
386
538
|
serverTxId: z.ZodString;
|
|
539
|
+
createdAt: z.ZodISODateTime;
|
|
387
540
|
success: z.ZodLiteral<false>;
|
|
388
|
-
status: z.ZodLiteral<"rejected">;
|
|
389
|
-
lastSyncId: z.ZodOptional<z.ZodNumber>;
|
|
390
541
|
ops: z.ZodOptional<z.ZodNumber>;
|
|
542
|
+
authority: z.ZodObject<{
|
|
543
|
+
organizationId: z.ZodString;
|
|
544
|
+
projectId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
545
|
+
branchId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
546
|
+
syncGroups: z.ZodArray<z.ZodString>;
|
|
547
|
+
operations: z.ZodArray<z.ZodTemplateLiteral<`${string}.update` | `${string}.read` | `${string}.create` | `${string}.delete`>>;
|
|
548
|
+
participantKind: z.ZodEnum<{
|
|
549
|
+
user: "user";
|
|
550
|
+
agent: "agent";
|
|
551
|
+
system: "system";
|
|
552
|
+
}>;
|
|
553
|
+
participantId: z.ZodString;
|
|
554
|
+
deliveryPartition: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
555
|
+
index: z.ZodNumber;
|
|
556
|
+
count: z.ZodNumber;
|
|
557
|
+
}, z.core.$strip>>>;
|
|
558
|
+
}, z.core.$strip>;
|
|
391
559
|
error: z.ZodObject<{
|
|
392
|
-
code: z.
|
|
560
|
+
code: z.ZodType<ErrorCode, unknown, z.core.$ZodTypeInternals<ErrorCode, unknown>>;
|
|
393
561
|
message: z.ZodString;
|
|
394
562
|
field: z.ZodOptional<z.ZodString>;
|
|
395
563
|
request_id: z.ZodOptional<z.ZodString>;
|
|
564
|
+
event_id: z.ZodOptional<z.ZodString>;
|
|
396
565
|
requiredCapability: z.ZodOptional<z.ZodObject<{
|
|
397
566
|
scope: z.ZodString;
|
|
398
567
|
constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodString]>>>;
|
|
@@ -402,20 +571,39 @@ export declare const mutationResultPayloadSchema: z.ZodUnion<readonly [z.ZodDisc
|
|
|
402
571
|
}, z.core.$loose>>;
|
|
403
572
|
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
404
573
|
}, z.core.$strip>;
|
|
405
|
-
}, z.core.$
|
|
574
|
+
}, z.core.$strict>]>;
|
|
406
575
|
export type MutationResultPayload = z.infer<typeof mutationResultPayloadSchema>;
|
|
407
576
|
export declare const mutationResultMessageSchema: z.ZodObject<{
|
|
408
577
|
type: z.ZodLiteral<"mutation_result">;
|
|
409
578
|
payload: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
410
579
|
status: z.ZodLiteral<"queued">;
|
|
580
|
+
statusAt: z.ZodISODateTime;
|
|
581
|
+
lastSyncId: z.ZodLiteral<0>;
|
|
411
582
|
correlationId: z.ZodString;
|
|
412
583
|
object: z.ZodLiteral<"commit_receipt">;
|
|
413
584
|
id: z.ZodOptional<z.ZodString>;
|
|
414
585
|
clientTxId: z.ZodString;
|
|
415
586
|
serverTxId: z.ZodString;
|
|
587
|
+
createdAt: z.ZodISODateTime;
|
|
416
588
|
success: z.ZodLiteral<true>;
|
|
417
|
-
lastSyncId: z.ZodNumber;
|
|
418
589
|
ops: z.ZodNumber;
|
|
590
|
+
authority: z.ZodObject<{
|
|
591
|
+
organizationId: z.ZodString;
|
|
592
|
+
projectId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
593
|
+
branchId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
594
|
+
syncGroups: z.ZodArray<z.ZodString>;
|
|
595
|
+
operations: z.ZodArray<z.ZodTemplateLiteral<`${string}.update` | `${string}.read` | `${string}.create` | `${string}.delete`>>;
|
|
596
|
+
participantKind: z.ZodEnum<{
|
|
597
|
+
user: "user";
|
|
598
|
+
agent: "agent";
|
|
599
|
+
system: "system";
|
|
600
|
+
}>;
|
|
601
|
+
participantId: z.ZodString;
|
|
602
|
+
deliveryPartition: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
603
|
+
index: z.ZodNumber;
|
|
604
|
+
count: z.ZodNumber;
|
|
605
|
+
}, z.core.$strip>>>;
|
|
606
|
+
}, z.core.$strip>;
|
|
419
607
|
notifications: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
420
608
|
object: z.ZodLiteral<"stale_notification">;
|
|
421
609
|
target: z.ZodReadonly<z.ZodObject<{
|
|
@@ -479,16 +667,35 @@ export declare const mutationResultMessageSchema: z.ZodObject<{
|
|
|
479
667
|
}, z.core.$strip>>;
|
|
480
668
|
}, z.core.$strip>], "scope">>>;
|
|
481
669
|
missingIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
482
|
-
}, z.core.$
|
|
670
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
483
671
|
status: z.ZodLiteral<"confirmed">;
|
|
672
|
+
statusAt: z.ZodISODateTime;
|
|
673
|
+
lastSyncId: z.ZodNumber;
|
|
484
674
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
485
675
|
object: z.ZodLiteral<"commit_receipt">;
|
|
486
676
|
id: z.ZodOptional<z.ZodString>;
|
|
487
677
|
clientTxId: z.ZodString;
|
|
488
678
|
serverTxId: z.ZodString;
|
|
679
|
+
createdAt: z.ZodISODateTime;
|
|
489
680
|
success: z.ZodLiteral<true>;
|
|
490
|
-
lastSyncId: z.ZodNumber;
|
|
491
681
|
ops: z.ZodNumber;
|
|
682
|
+
authority: z.ZodObject<{
|
|
683
|
+
organizationId: z.ZodString;
|
|
684
|
+
projectId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
685
|
+
branchId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
686
|
+
syncGroups: z.ZodArray<z.ZodString>;
|
|
687
|
+
operations: z.ZodArray<z.ZodTemplateLiteral<`${string}.update` | `${string}.read` | `${string}.create` | `${string}.delete`>>;
|
|
688
|
+
participantKind: z.ZodEnum<{
|
|
689
|
+
user: "user";
|
|
690
|
+
agent: "agent";
|
|
691
|
+
system: "system";
|
|
692
|
+
}>;
|
|
693
|
+
participantId: z.ZodString;
|
|
694
|
+
deliveryPartition: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
695
|
+
index: z.ZodNumber;
|
|
696
|
+
count: z.ZodNumber;
|
|
697
|
+
}, z.core.$strip>>>;
|
|
698
|
+
}, z.core.$strip>;
|
|
492
699
|
notifications: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
493
700
|
object: z.ZodLiteral<"stale_notification">;
|
|
494
701
|
target: z.ZodReadonly<z.ZodObject<{
|
|
@@ -552,19 +759,38 @@ export declare const mutationResultMessageSchema: z.ZodObject<{
|
|
|
552
759
|
}, z.core.$strip>>;
|
|
553
760
|
}, z.core.$strip>], "scope">>>;
|
|
554
761
|
missingIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
555
|
-
}, z.core.$
|
|
762
|
+
}, z.core.$strict>], "status">, z.ZodObject<{
|
|
763
|
+
status: z.ZodLiteral<"rejected">;
|
|
764
|
+
statusAt: z.ZodISODateTime;
|
|
556
765
|
object: z.ZodLiteral<"commit_receipt">;
|
|
557
766
|
clientTxId: z.ZodString;
|
|
558
767
|
serverTxId: z.ZodString;
|
|
768
|
+
createdAt: z.ZodISODateTime;
|
|
559
769
|
success: z.ZodLiteral<false>;
|
|
560
|
-
status: z.ZodLiteral<"rejected">;
|
|
561
|
-
lastSyncId: z.ZodOptional<z.ZodNumber>;
|
|
562
770
|
ops: z.ZodOptional<z.ZodNumber>;
|
|
771
|
+
authority: z.ZodObject<{
|
|
772
|
+
organizationId: z.ZodString;
|
|
773
|
+
projectId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
774
|
+
branchId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
775
|
+
syncGroups: z.ZodArray<z.ZodString>;
|
|
776
|
+
operations: z.ZodArray<z.ZodTemplateLiteral<`${string}.update` | `${string}.read` | `${string}.create` | `${string}.delete`>>;
|
|
777
|
+
participantKind: z.ZodEnum<{
|
|
778
|
+
user: "user";
|
|
779
|
+
agent: "agent";
|
|
780
|
+
system: "system";
|
|
781
|
+
}>;
|
|
782
|
+
participantId: z.ZodString;
|
|
783
|
+
deliveryPartition: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
784
|
+
index: z.ZodNumber;
|
|
785
|
+
count: z.ZodNumber;
|
|
786
|
+
}, z.core.$strip>>>;
|
|
787
|
+
}, z.core.$strip>;
|
|
563
788
|
error: z.ZodObject<{
|
|
564
|
-
code: z.
|
|
789
|
+
code: z.ZodType<ErrorCode, unknown, z.core.$ZodTypeInternals<ErrorCode, unknown>>;
|
|
565
790
|
message: z.ZodString;
|
|
566
791
|
field: z.ZodOptional<z.ZodString>;
|
|
567
792
|
request_id: z.ZodOptional<z.ZodString>;
|
|
793
|
+
event_id: z.ZodOptional<z.ZodString>;
|
|
568
794
|
requiredCapability: z.ZodOptional<z.ZodObject<{
|
|
569
795
|
scope: z.ZodString;
|
|
570
796
|
constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodString]>>>;
|
|
@@ -574,17 +800,88 @@ export declare const mutationResultMessageSchema: z.ZodObject<{
|
|
|
574
800
|
}, z.core.$loose>>;
|
|
575
801
|
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
576
802
|
}, z.core.$strip>;
|
|
577
|
-
}, z.core.$
|
|
803
|
+
}, z.core.$strict>]>;
|
|
578
804
|
}, z.core.$strip>;
|
|
579
805
|
export type MutationResultMessageWire = z.infer<typeof mutationResultMessageSchema>;
|
|
580
|
-
|
|
581
|
-
|
|
806
|
+
/** Canonical storage contract. Status is never optional or reconstructed. */
|
|
807
|
+
export declare const commitExecutionResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
808
|
+
status: z.ZodLiteral<"queued">;
|
|
809
|
+
statusAt: z.ZodISODateTime;
|
|
810
|
+
lastSyncId: z.ZodLiteral<0>;
|
|
811
|
+
correlationId: z.ZodString;
|
|
582
812
|
firstSyncId: z.ZodNumber;
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
813
|
+
createdAt: z.ZodISODateTime;
|
|
814
|
+
confirmationTransactionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
815
|
+
notifications: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
816
|
+
object: z.ZodLiteral<"stale_notification">;
|
|
817
|
+
target: z.ZodReadonly<z.ZodObject<{
|
|
818
|
+
model: z.ZodString;
|
|
819
|
+
id: z.ZodString;
|
|
820
|
+
field: z.ZodOptional<z.ZodString>;
|
|
821
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
822
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
823
|
+
}, z.core.$strip>>;
|
|
824
|
+
readAt: z.ZodNumber;
|
|
825
|
+
observedSyncId: z.ZodNumber;
|
|
826
|
+
writtenBy: z.ZodObject<{
|
|
827
|
+
kind: z.ZodEnum<{
|
|
828
|
+
user: "user";
|
|
829
|
+
agent: "agent";
|
|
830
|
+
system: "system";
|
|
831
|
+
}>;
|
|
832
|
+
id: z.ZodString;
|
|
833
|
+
}, z.core.$strip>;
|
|
834
|
+
scope: z.ZodLiteral<"row">;
|
|
835
|
+
currentValues: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
836
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
837
|
+
object: z.ZodLiteral<"stale_notification">;
|
|
838
|
+
target: z.ZodReadonly<z.ZodObject<{
|
|
839
|
+
model: z.ZodString;
|
|
840
|
+
id: z.ZodString;
|
|
841
|
+
field: z.ZodOptional<z.ZodString>;
|
|
842
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
843
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
844
|
+
}, z.core.$strip>>;
|
|
845
|
+
readAt: z.ZodNumber;
|
|
846
|
+
observedSyncId: z.ZodNumber;
|
|
847
|
+
writtenBy: z.ZodObject<{
|
|
848
|
+
kind: z.ZodEnum<{
|
|
849
|
+
user: "user";
|
|
850
|
+
agent: "agent";
|
|
851
|
+
system: "system";
|
|
852
|
+
}>;
|
|
853
|
+
id: z.ZodString;
|
|
854
|
+
}, z.core.$strip>;
|
|
855
|
+
scope: z.ZodLiteral<"group">;
|
|
856
|
+
group: z.ZodTemplateLiteral<`${string}:${string}`>;
|
|
857
|
+
propagation: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
858
|
+
via: z.ZodEnum<{
|
|
859
|
+
self: "self";
|
|
860
|
+
parent: "parent";
|
|
861
|
+
transitive: "transitive";
|
|
862
|
+
}>;
|
|
863
|
+
through: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
864
|
+
}, z.core.$strip>>>;
|
|
865
|
+
changed: z.ZodOptional<z.ZodObject<{
|
|
866
|
+
count: z.ZodNumber;
|
|
867
|
+
sample: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
868
|
+
model: z.ZodString;
|
|
869
|
+
id: z.ZodString;
|
|
870
|
+
field: z.ZodOptional<z.ZodString>;
|
|
871
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
872
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
873
|
+
}, z.core.$strip>>>>;
|
|
874
|
+
truncated: z.ZodBoolean;
|
|
875
|
+
}, z.core.$strip>>;
|
|
876
|
+
}, z.core.$strip>], "scope">>>;
|
|
877
|
+
missingIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
878
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
879
|
+
status: z.ZodLiteral<"confirmed">;
|
|
880
|
+
statusAt: z.ZodISODateTime;
|
|
881
|
+
lastSyncId: z.ZodNumber;
|
|
587
882
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
883
|
+
firstSyncId: z.ZodNumber;
|
|
884
|
+
createdAt: z.ZodISODateTime;
|
|
588
885
|
confirmationTransactionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
589
886
|
notifications: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
590
887
|
object: z.ZodLiteral<"stale_notification">;
|
|
@@ -649,128 +946,15 @@ export declare const commitExecutionResultSchema: z.ZodPipe<z.ZodObject<{
|
|
|
649
946
|
}, z.core.$strip>>;
|
|
650
947
|
}, z.core.$strip>], "scope">>>;
|
|
651
948
|
missingIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
652
|
-
}, z.core.$strict
|
|
653
|
-
status: "queued" | "confirmed";
|
|
654
|
-
lastSyncId: number;
|
|
655
|
-
firstSyncId: number;
|
|
656
|
-
correlationId?: string | undefined;
|
|
657
|
-
confirmationTransactionIds?: string[] | undefined;
|
|
658
|
-
notifications?: ({
|
|
659
|
-
object: "stale_notification";
|
|
660
|
-
target: Readonly<{
|
|
661
|
-
model: string;
|
|
662
|
-
id: string;
|
|
663
|
-
field?: string | undefined;
|
|
664
|
-
fields?: readonly string[] | undefined;
|
|
665
|
-
meta?: Record<string, unknown> | undefined;
|
|
666
|
-
}>;
|
|
667
|
-
readAt: number;
|
|
668
|
-
observedSyncId: number;
|
|
669
|
-
writtenBy: {
|
|
670
|
-
kind: "user" | "agent" | "system";
|
|
671
|
-
id: string;
|
|
672
|
-
};
|
|
673
|
-
scope: "row";
|
|
674
|
-
currentValues: Record<string, unknown>;
|
|
675
|
-
} | {
|
|
676
|
-
object: "stale_notification";
|
|
677
|
-
target: Readonly<{
|
|
678
|
-
model: string;
|
|
679
|
-
id: string;
|
|
680
|
-
field?: string | undefined;
|
|
681
|
-
fields?: readonly string[] | undefined;
|
|
682
|
-
meta?: Record<string, unknown> | undefined;
|
|
683
|
-
}>;
|
|
684
|
-
readAt: number;
|
|
685
|
-
observedSyncId: number;
|
|
686
|
-
writtenBy: {
|
|
687
|
-
kind: "user" | "agent" | "system";
|
|
688
|
-
id: string;
|
|
689
|
-
};
|
|
690
|
-
scope: "group";
|
|
691
|
-
group: `${string}:${string}`;
|
|
692
|
-
propagation?: Readonly<{
|
|
693
|
-
via: "self" | "parent" | "transitive";
|
|
694
|
-
through: readonly string[];
|
|
695
|
-
}> | undefined;
|
|
696
|
-
changed?: {
|
|
697
|
-
count: number;
|
|
698
|
-
sample: readonly Readonly<{
|
|
699
|
-
model: string;
|
|
700
|
-
id: string;
|
|
701
|
-
field?: string | undefined;
|
|
702
|
-
fields?: readonly string[] | undefined;
|
|
703
|
-
meta?: Record<string, unknown> | undefined;
|
|
704
|
-
}>[];
|
|
705
|
-
truncated: boolean;
|
|
706
|
-
} | undefined;
|
|
707
|
-
})[] | undefined;
|
|
708
|
-
missingIds?: string[] | undefined;
|
|
709
|
-
}, {
|
|
710
|
-
lastSyncId: number;
|
|
711
|
-
firstSyncId: number;
|
|
712
|
-
status?: "queued" | "confirmed" | undefined;
|
|
713
|
-
correlationId?: string | undefined;
|
|
714
|
-
confirmationTransactionIds?: string[] | undefined;
|
|
715
|
-
notifications?: ({
|
|
716
|
-
object: "stale_notification";
|
|
717
|
-
target: Readonly<{
|
|
718
|
-
model: string;
|
|
719
|
-
id: string;
|
|
720
|
-
field?: string | undefined;
|
|
721
|
-
fields?: readonly string[] | undefined;
|
|
722
|
-
meta?: Record<string, unknown> | undefined;
|
|
723
|
-
}>;
|
|
724
|
-
readAt: number;
|
|
725
|
-
observedSyncId: number;
|
|
726
|
-
writtenBy: {
|
|
727
|
-
kind: "user" | "agent" | "system";
|
|
728
|
-
id: string;
|
|
729
|
-
};
|
|
730
|
-
scope: "row";
|
|
731
|
-
currentValues: Record<string, unknown>;
|
|
732
|
-
} | {
|
|
733
|
-
object: "stale_notification";
|
|
734
|
-
target: Readonly<{
|
|
735
|
-
model: string;
|
|
736
|
-
id: string;
|
|
737
|
-
field?: string | undefined;
|
|
738
|
-
fields?: readonly string[] | undefined;
|
|
739
|
-
meta?: Record<string, unknown> | undefined;
|
|
740
|
-
}>;
|
|
741
|
-
readAt: number;
|
|
742
|
-
observedSyncId: number;
|
|
743
|
-
writtenBy: {
|
|
744
|
-
kind: "user" | "agent" | "system";
|
|
745
|
-
id: string;
|
|
746
|
-
};
|
|
747
|
-
scope: "group";
|
|
748
|
-
group: `${string}:${string}`;
|
|
749
|
-
propagation?: Readonly<{
|
|
750
|
-
via: "self" | "parent" | "transitive";
|
|
751
|
-
through: readonly string[];
|
|
752
|
-
}> | undefined;
|
|
753
|
-
changed?: {
|
|
754
|
-
count: number;
|
|
755
|
-
sample: readonly Readonly<{
|
|
756
|
-
model: string;
|
|
757
|
-
id: string;
|
|
758
|
-
field?: string | undefined;
|
|
759
|
-
fields?: readonly string[] | undefined;
|
|
760
|
-
meta?: Record<string, unknown> | undefined;
|
|
761
|
-
}>[];
|
|
762
|
-
truncated: boolean;
|
|
763
|
-
} | undefined;
|
|
764
|
-
})[] | undefined;
|
|
765
|
-
missingIds?: string[] | undefined;
|
|
766
|
-
}>>;
|
|
949
|
+
}, z.core.$strict>], "status">;
|
|
767
950
|
export type CommitExecutionResultInput = z.input<typeof commitExecutionResultSchema>;
|
|
768
951
|
export type CommitExecutionResult = z.infer<typeof commitExecutionResultSchema>;
|
|
769
952
|
/** Normalized acknowledgement handed from a mutation transport to the queue. */
|
|
770
953
|
export declare const commitAckSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
771
954
|
status: z.ZodLiteral<"queued">;
|
|
955
|
+
statusAt: z.ZodISODateTime;
|
|
956
|
+
lastSyncId: z.ZodLiteral<0>;
|
|
772
957
|
correlationId: z.ZodString;
|
|
773
|
-
lastSyncId: z.ZodNumber;
|
|
774
958
|
notifications: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
775
959
|
object: z.ZodLiteral<"stale_notification">;
|
|
776
960
|
target: z.ZodReadonly<z.ZodObject<{
|
|
@@ -836,8 +1020,9 @@ export declare const commitAckSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
836
1020
|
missingIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
837
1021
|
}, z.core.$strict>, z.ZodObject<{
|
|
838
1022
|
status: z.ZodLiteral<"confirmed">;
|
|
839
|
-
|
|
1023
|
+
statusAt: z.ZodISODateTime;
|
|
840
1024
|
lastSyncId: z.ZodNumber;
|
|
1025
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
841
1026
|
notifications: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
842
1027
|
object: z.ZodLiteral<"stale_notification">;
|
|
843
1028
|
target: z.ZodReadonly<z.ZodObject<{
|
|
@@ -905,14 +1090,15 @@ export declare const commitAckSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
905
1090
|
export type CommitAck = z.infer<typeof commitAckSchema>;
|
|
906
1091
|
/**
|
|
907
1092
|
* The boundary an injected mutation executor returns through. It is the
|
|
908
|
-
* acknowledgement schema itself:
|
|
1093
|
+
* acknowledgement schema itself: status is declared, never inferred from
|
|
909
1094
|
* an omission, so a transport cannot report a write as landed by staying
|
|
910
1095
|
* silent about how it landed.
|
|
911
1096
|
*/
|
|
912
1097
|
export declare const mutationCommitResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
913
1098
|
status: z.ZodLiteral<"queued">;
|
|
1099
|
+
statusAt: z.ZodISODateTime;
|
|
1100
|
+
lastSyncId: z.ZodLiteral<0>;
|
|
914
1101
|
correlationId: z.ZodString;
|
|
915
|
-
lastSyncId: z.ZodNumber;
|
|
916
1102
|
notifications: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
917
1103
|
object: z.ZodLiteral<"stale_notification">;
|
|
918
1104
|
target: z.ZodReadonly<z.ZodObject<{
|
|
@@ -978,8 +1164,9 @@ export declare const mutationCommitResultSchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
978
1164
|
missingIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
979
1165
|
}, z.core.$strict>, z.ZodObject<{
|
|
980
1166
|
status: z.ZodLiteral<"confirmed">;
|
|
981
|
-
|
|
1167
|
+
statusAt: z.ZodISODateTime;
|
|
982
1168
|
lastSyncId: z.ZodNumber;
|
|
1169
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
983
1170
|
notifications: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
984
1171
|
object: z.ZodLiteral<"stale_notification">;
|
|
985
1172
|
target: z.ZodReadonly<z.ZodObject<{
|
|
@@ -1049,18 +1236,15 @@ export type MutationCommitResult = z.infer<typeof mutationCommitResultSchema>;
|
|
|
1049
1236
|
/**
|
|
1050
1237
|
* Public SDK projection returned by `ablo.commits` and model mutations.
|
|
1051
1238
|
*
|
|
1052
|
-
* This intentionally
|
|
1239
|
+
* This intentionally carries only the status name: on the WS
|
|
1053
1240
|
* facade, `wait:'queued'` currently means locally sealed/enqueued, before a
|
|
1054
1241
|
* server has necessarily accepted the write. Renaming that public state to
|
|
1055
|
-
* `enqueued` is a separate protocol change; the authoritative
|
|
1242
|
+
* `enqueued` is a separate protocol change; the authoritative status
|
|
1056
1243
|
* union above is reserved for server acknowledgements.
|
|
1057
1244
|
*/
|
|
1058
1245
|
export declare const clientCommitReceiptSchema: z.ZodObject<{
|
|
1059
1246
|
id: z.ZodString;
|
|
1060
|
-
status: z.
|
|
1061
|
-
queued: "queued";
|
|
1062
|
-
confirmed: "confirmed";
|
|
1063
|
-
}>;
|
|
1247
|
+
status: z.ZodUnion<readonly [z.ZodLiteral<"queued">, z.ZodLiteral<"confirmed">]>;
|
|
1064
1248
|
lastSyncId: z.ZodOptional<z.ZodNumber>;
|
|
1065
1249
|
notifications: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1066
1250
|
object: z.ZodLiteral<"stale_notification">;
|
|
@@ -1131,6 +1315,7 @@ export type ClientCommitReceipt = z.infer<typeof clientCommitReceiptSchema>;
|
|
|
1131
1315
|
export declare const commitOperationControlShape: {
|
|
1132
1316
|
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1133
1317
|
transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1318
|
+
claimId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1134
1319
|
readAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1135
1320
|
onStale: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1136
1321
|
reject: "reject";
|
|
@@ -1146,6 +1331,7 @@ export declare const commitOperationBodySchema: z.ZodObject<{
|
|
|
1146
1331
|
data: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1147
1332
|
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1148
1333
|
transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1334
|
+
claimId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1149
1335
|
readAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1150
1336
|
onStale: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1151
1337
|
reject: "reject";
|
|
@@ -1155,39 +1341,145 @@ export declare const commitOperationBodySchema: z.ZodObject<{
|
|
|
1155
1341
|
fenceToken: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1156
1342
|
}, z.core.$strip>;
|
|
1157
1343
|
export type CommitOperationBody = z.infer<typeof commitOperationBodySchema>;
|
|
1158
|
-
/**
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1344
|
+
/** Commit records retain intent metadata but never copy customer mutation data. */
|
|
1345
|
+
export declare const COMMIT_OPERATION_DATA_RETENTION: "redacted";
|
|
1346
|
+
export declare const commitRecordOperationSchema: z.ZodObject<{
|
|
1347
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1348
|
+
model: z.ZodString;
|
|
1349
|
+
readAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1350
|
+
onStale: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1351
|
+
reject: "reject";
|
|
1352
|
+
overwrite: "overwrite";
|
|
1353
|
+
notify: "notify";
|
|
1354
|
+
}>>>;
|
|
1355
|
+
claimId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1356
|
+
fenceToken: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1357
|
+
transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1358
|
+
action: z.ZodString;
|
|
1359
|
+
data: z.ZodObject<{
|
|
1360
|
+
retention: z.ZodLiteral<"redacted">;
|
|
1361
|
+
}, z.core.$strict>;
|
|
1362
|
+
}, z.core.$strip>;
|
|
1363
|
+
export type CommitRecordOperation = z.infer<typeof commitRecordOperationSchema>;
|
|
1364
|
+
/** Transport/result evidence nested beneath the canonical record status. */
|
|
1365
|
+
export declare const commitReceiptEvidenceSchema: z.ZodObject<{
|
|
1366
|
+
clientTxId: z.ZodString;
|
|
1367
|
+
serverTxId: z.ZodString;
|
|
1368
|
+
ops: z.ZodOptional<z.ZodNumber>;
|
|
1369
|
+
notifications: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1370
|
+
object: z.ZodLiteral<"stale_notification">;
|
|
1371
|
+
target: z.ZodReadonly<z.ZodObject<{
|
|
1372
|
+
model: z.ZodString;
|
|
1373
|
+
id: z.ZodString;
|
|
1374
|
+
field: z.ZodOptional<z.ZodString>;
|
|
1375
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
1376
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1377
|
+
}, z.core.$strip>>;
|
|
1184
1378
|
readAt: z.ZodNumber;
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1379
|
+
observedSyncId: z.ZodNumber;
|
|
1380
|
+
writtenBy: z.ZodObject<{
|
|
1381
|
+
kind: z.ZodEnum<{
|
|
1382
|
+
user: "user";
|
|
1383
|
+
agent: "agent";
|
|
1384
|
+
system: "system";
|
|
1385
|
+
}>;
|
|
1386
|
+
id: z.ZodString;
|
|
1387
|
+
}, z.core.$strip>;
|
|
1388
|
+
scope: z.ZodLiteral<"row">;
|
|
1389
|
+
currentValues: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1390
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1391
|
+
object: z.ZodLiteral<"stale_notification">;
|
|
1392
|
+
target: z.ZodReadonly<z.ZodObject<{
|
|
1393
|
+
model: z.ZodString;
|
|
1394
|
+
id: z.ZodString;
|
|
1395
|
+
field: z.ZodOptional<z.ZodString>;
|
|
1396
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
1397
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1398
|
+
}, z.core.$strip>>;
|
|
1399
|
+
readAt: z.ZodNumber;
|
|
1400
|
+
observedSyncId: z.ZodNumber;
|
|
1401
|
+
writtenBy: z.ZodObject<{
|
|
1402
|
+
kind: z.ZodEnum<{
|
|
1403
|
+
user: "user";
|
|
1404
|
+
agent: "agent";
|
|
1405
|
+
system: "system";
|
|
1406
|
+
}>;
|
|
1407
|
+
id: z.ZodString;
|
|
1408
|
+
}, z.core.$strip>;
|
|
1409
|
+
scope: z.ZodLiteral<"group">;
|
|
1410
|
+
group: z.ZodTemplateLiteral<`${string}:${string}`>;
|
|
1411
|
+
propagation: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
1412
|
+
via: z.ZodEnum<{
|
|
1413
|
+
self: "self";
|
|
1414
|
+
parent: "parent";
|
|
1415
|
+
transitive: "transitive";
|
|
1416
|
+
}>;
|
|
1417
|
+
through: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
1418
|
+
}, z.core.$strip>>>;
|
|
1419
|
+
changed: z.ZodOptional<z.ZodObject<{
|
|
1420
|
+
count: z.ZodNumber;
|
|
1421
|
+
sample: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
1422
|
+
model: z.ZodString;
|
|
1423
|
+
id: z.ZodString;
|
|
1424
|
+
field: z.ZodOptional<z.ZodString>;
|
|
1425
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
1426
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1427
|
+
}, z.core.$strip>>>>;
|
|
1428
|
+
truncated: z.ZodBoolean;
|
|
1429
|
+
}, z.core.$strip>>;
|
|
1430
|
+
}, z.core.$strip>], "scope">>>;
|
|
1431
|
+
missingIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1432
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
1433
|
+
code: z.ZodType<ErrorCode, unknown, z.core.$ZodTypeInternals<ErrorCode, unknown>>;
|
|
1434
|
+
message: z.ZodString;
|
|
1435
|
+
field: z.ZodOptional<z.ZodString>;
|
|
1436
|
+
request_id: z.ZodOptional<z.ZodString>;
|
|
1437
|
+
event_id: z.ZodOptional<z.ZodString>;
|
|
1438
|
+
requiredCapability: z.ZodOptional<z.ZodObject<{
|
|
1439
|
+
scope: z.ZodString;
|
|
1440
|
+
constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodString]>>>;
|
|
1441
|
+
issuer: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
1442
|
+
ttlSeconds: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
1443
|
+
nonce: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
1444
|
+
}, z.core.$loose>>;
|
|
1445
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1446
|
+
}, z.core.$strip>>;
|
|
1447
|
+
}, z.core.$strict>;
|
|
1448
|
+
export type CommitReceiptEvidence = z.infer<typeof commitReceiptEvidenceSchema>;
|
|
1449
|
+
/**
|
|
1450
|
+
* The `POST /v1/commits` request body.
|
|
1451
|
+
*
|
|
1452
|
+
* `operations` carries the writes; `track` registers durable premises.
|
|
1453
|
+
* Neither is required on its own, because a body with `track` and no
|
|
1454
|
+
* `operations` is how a caller starts watching a row without writing to it.
|
|
1455
|
+
* Request identity travels in the `Idempotency-Key` header.
|
|
1456
|
+
*/
|
|
1457
|
+
export declare const commitRequestSchema: z.ZodObject<{
|
|
1458
|
+
operations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1459
|
+
action: z.ZodString;
|
|
1460
|
+
model: z.ZodString;
|
|
1461
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1462
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1463
|
+
transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1464
|
+
claimId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1465
|
+
readAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1466
|
+
onStale: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1467
|
+
reject: "reject";
|
|
1468
|
+
overwrite: "overwrite";
|
|
1469
|
+
notify: "notify";
|
|
1470
|
+
}>>>;
|
|
1471
|
+
fenceToken: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1472
|
+
}, z.core.$strip>>>;
|
|
1473
|
+
reads: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1474
|
+
id: z.ZodString;
|
|
1475
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
1476
|
+
model: z.ZodString;
|
|
1477
|
+
readAt: z.ZodNumber;
|
|
1478
|
+
onStale: z.ZodOptional<z.ZodEnum<{
|
|
1479
|
+
reject: "reject";
|
|
1480
|
+
overwrite: "overwrite";
|
|
1481
|
+
notify: "notify";
|
|
1482
|
+
}>>;
|
|
1191
1483
|
}, z.core.$strip>, z.ZodObject<{
|
|
1192
1484
|
group: z.ZodTemplateLiteral<`${string}:${string}`>;
|
|
1193
1485
|
readAt: z.ZodNumber;
|
|
@@ -1213,6 +1505,1153 @@ export declare const commitRequestSchema: z.ZodObject<{
|
|
|
1213
1505
|
notify: "notify";
|
|
1214
1506
|
}>>;
|
|
1215
1507
|
}, z.core.$strip>]>>>>;
|
|
1216
|
-
}, z.core.$
|
|
1508
|
+
}, z.core.$strict>;
|
|
1217
1509
|
export type CommitRequest = z.infer<typeof commitRequestSchema>;
|
|
1510
|
+
export declare const commitRecordSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1511
|
+
status: z.ZodLiteral<"queued">;
|
|
1512
|
+
statusAt: z.ZodISODateTime;
|
|
1513
|
+
lastSyncId: z.ZodLiteral<0>;
|
|
1514
|
+
correlationId: z.ZodString;
|
|
1515
|
+
createdAt: z.ZodISODateTime;
|
|
1516
|
+
readSet: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1517
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1518
|
+
scope: z.ZodLiteral<"row">;
|
|
1519
|
+
model: z.ZodString;
|
|
1520
|
+
id: z.ZodString;
|
|
1521
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
1522
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1523
|
+
scope: z.ZodLiteral<"group">;
|
|
1524
|
+
group: z.ZodTemplateLiteral<`${string}:${string}`>;
|
|
1525
|
+
}, z.core.$strip>], "scope">;
|
|
1526
|
+
watermark: z.ZodNumber;
|
|
1527
|
+
lifetime: z.ZodLiteral<"commit">;
|
|
1528
|
+
onStale: z.ZodEnum<{
|
|
1529
|
+
reject: "reject";
|
|
1530
|
+
overwrite: "overwrite";
|
|
1531
|
+
notify: "notify";
|
|
1532
|
+
}>;
|
|
1533
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1534
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1535
|
+
id: z.ZodString;
|
|
1536
|
+
scope: z.ZodLiteral<"row">;
|
|
1537
|
+
model: z.ZodString;
|
|
1538
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1539
|
+
scope: z.ZodLiteral<"group">;
|
|
1540
|
+
group: z.ZodTemplateLiteral<`${string}:${string}`>;
|
|
1541
|
+
}, z.core.$strip>], "scope">;
|
|
1542
|
+
watermark: z.ZodNumber;
|
|
1543
|
+
lifetime: z.ZodLiteral<"persisted">;
|
|
1544
|
+
onStale: z.ZodEnum<{
|
|
1545
|
+
reject: "reject";
|
|
1546
|
+
notify: "notify";
|
|
1547
|
+
}>;
|
|
1548
|
+
}, z.core.$strip>], "lifetime">>>;
|
|
1549
|
+
operations: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
1550
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1551
|
+
model: z.ZodString;
|
|
1552
|
+
readAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1553
|
+
onStale: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1554
|
+
reject: "reject";
|
|
1555
|
+
overwrite: "overwrite";
|
|
1556
|
+
notify: "notify";
|
|
1557
|
+
}>>>;
|
|
1558
|
+
claimId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1559
|
+
fenceToken: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1560
|
+
transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1561
|
+
action: z.ZodString;
|
|
1562
|
+
data: z.ZodObject<{
|
|
1563
|
+
retention: z.ZodLiteral<"redacted">;
|
|
1564
|
+
}, z.core.$strict>;
|
|
1565
|
+
}, z.core.$strip>>>;
|
|
1566
|
+
receipt: z.ZodObject<{
|
|
1567
|
+
clientTxId: z.ZodString;
|
|
1568
|
+
serverTxId: z.ZodString;
|
|
1569
|
+
ops: z.ZodOptional<z.ZodNumber>;
|
|
1570
|
+
notifications: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1571
|
+
object: z.ZodLiteral<"stale_notification">;
|
|
1572
|
+
target: z.ZodReadonly<z.ZodObject<{
|
|
1573
|
+
model: z.ZodString;
|
|
1574
|
+
id: z.ZodString;
|
|
1575
|
+
field: z.ZodOptional<z.ZodString>;
|
|
1576
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
1577
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1578
|
+
}, z.core.$strip>>;
|
|
1579
|
+
readAt: z.ZodNumber;
|
|
1580
|
+
observedSyncId: z.ZodNumber;
|
|
1581
|
+
writtenBy: z.ZodObject<{
|
|
1582
|
+
kind: z.ZodEnum<{
|
|
1583
|
+
user: "user";
|
|
1584
|
+
agent: "agent";
|
|
1585
|
+
system: "system";
|
|
1586
|
+
}>;
|
|
1587
|
+
id: z.ZodString;
|
|
1588
|
+
}, z.core.$strip>;
|
|
1589
|
+
scope: z.ZodLiteral<"row">;
|
|
1590
|
+
currentValues: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1591
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1592
|
+
object: z.ZodLiteral<"stale_notification">;
|
|
1593
|
+
target: z.ZodReadonly<z.ZodObject<{
|
|
1594
|
+
model: z.ZodString;
|
|
1595
|
+
id: z.ZodString;
|
|
1596
|
+
field: z.ZodOptional<z.ZodString>;
|
|
1597
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
1598
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1599
|
+
}, z.core.$strip>>;
|
|
1600
|
+
readAt: z.ZodNumber;
|
|
1601
|
+
observedSyncId: z.ZodNumber;
|
|
1602
|
+
writtenBy: z.ZodObject<{
|
|
1603
|
+
kind: z.ZodEnum<{
|
|
1604
|
+
user: "user";
|
|
1605
|
+
agent: "agent";
|
|
1606
|
+
system: "system";
|
|
1607
|
+
}>;
|
|
1608
|
+
id: z.ZodString;
|
|
1609
|
+
}, z.core.$strip>;
|
|
1610
|
+
scope: z.ZodLiteral<"group">;
|
|
1611
|
+
group: z.ZodTemplateLiteral<`${string}:${string}`>;
|
|
1612
|
+
propagation: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
1613
|
+
via: z.ZodEnum<{
|
|
1614
|
+
self: "self";
|
|
1615
|
+
parent: "parent";
|
|
1616
|
+
transitive: "transitive";
|
|
1617
|
+
}>;
|
|
1618
|
+
through: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
1619
|
+
}, z.core.$strip>>>;
|
|
1620
|
+
changed: z.ZodOptional<z.ZodObject<{
|
|
1621
|
+
count: z.ZodNumber;
|
|
1622
|
+
sample: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
1623
|
+
model: z.ZodString;
|
|
1624
|
+
id: z.ZodString;
|
|
1625
|
+
field: z.ZodOptional<z.ZodString>;
|
|
1626
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
1627
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1628
|
+
}, z.core.$strip>>>>;
|
|
1629
|
+
truncated: z.ZodBoolean;
|
|
1630
|
+
}, z.core.$strip>>;
|
|
1631
|
+
}, z.core.$strip>], "scope">>>;
|
|
1632
|
+
missingIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1633
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
1634
|
+
code: z.ZodType<ErrorCode, unknown, z.core.$ZodTypeInternals<ErrorCode, unknown>>;
|
|
1635
|
+
message: z.ZodString;
|
|
1636
|
+
field: z.ZodOptional<z.ZodString>;
|
|
1637
|
+
request_id: z.ZodOptional<z.ZodString>;
|
|
1638
|
+
event_id: z.ZodOptional<z.ZodString>;
|
|
1639
|
+
requiredCapability: z.ZodOptional<z.ZodObject<{
|
|
1640
|
+
scope: z.ZodString;
|
|
1641
|
+
constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodString]>>>;
|
|
1642
|
+
issuer: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
1643
|
+
ttlSeconds: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
1644
|
+
nonce: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
1645
|
+
}, z.core.$loose>>;
|
|
1646
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1647
|
+
}, z.core.$strip>>;
|
|
1648
|
+
}, z.core.$strict>;
|
|
1649
|
+
attempts: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
1650
|
+
id: z.ZodString;
|
|
1651
|
+
observedAt: z.ZodISODateTime;
|
|
1652
|
+
transport: z.ZodEnum<{
|
|
1653
|
+
http: "http";
|
|
1654
|
+
websocket: "websocket";
|
|
1655
|
+
internal: "internal";
|
|
1656
|
+
}>;
|
|
1657
|
+
kind: z.ZodEnum<{
|
|
1658
|
+
execution: "execution";
|
|
1659
|
+
replay: "replay";
|
|
1660
|
+
}>;
|
|
1661
|
+
}, z.core.$strict>>>;
|
|
1662
|
+
actor: z.ZodObject<{
|
|
1663
|
+
kind: z.ZodEnum<{
|
|
1664
|
+
user: "user";
|
|
1665
|
+
agent: "agent";
|
|
1666
|
+
system: "system";
|
|
1667
|
+
}>;
|
|
1668
|
+
id: z.ZodString;
|
|
1669
|
+
}, z.core.$strict>;
|
|
1670
|
+
authority: z.ZodObject<{
|
|
1671
|
+
organizationId: z.ZodString;
|
|
1672
|
+
projectId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1673
|
+
branchId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1674
|
+
syncGroups: z.ZodArray<z.ZodString>;
|
|
1675
|
+
operations: z.ZodArray<z.ZodTemplateLiteral<`${string}.update` | `${string}.read` | `${string}.create` | `${string}.delete`>>;
|
|
1676
|
+
participantKind: z.ZodEnum<{
|
|
1677
|
+
user: "user";
|
|
1678
|
+
agent: "agent";
|
|
1679
|
+
system: "system";
|
|
1680
|
+
}>;
|
|
1681
|
+
participantId: z.ZodString;
|
|
1682
|
+
deliveryPartition: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
1683
|
+
index: z.ZodNumber;
|
|
1684
|
+
count: z.ZodNumber;
|
|
1685
|
+
}, z.core.$strip>>>;
|
|
1686
|
+
}, z.core.$strip>;
|
|
1687
|
+
claims: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
1688
|
+
id: z.ZodString;
|
|
1689
|
+
target: z.ZodObject<{
|
|
1690
|
+
scope: z.ZodLiteral<"row">;
|
|
1691
|
+
model: z.ZodString;
|
|
1692
|
+
id: z.ZodString;
|
|
1693
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
1694
|
+
}, z.core.$strip>;
|
|
1695
|
+
fenceToken: z.ZodNumber;
|
|
1696
|
+
}, z.core.$strict>>>;
|
|
1697
|
+
id: z.ZodString;
|
|
1698
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1699
|
+
status: z.ZodLiteral<"confirmed">;
|
|
1700
|
+
statusAt: z.ZodISODateTime;
|
|
1701
|
+
lastSyncId: z.ZodNumber;
|
|
1702
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
1703
|
+
createdAt: z.ZodISODateTime;
|
|
1704
|
+
readSet: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1705
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1706
|
+
scope: z.ZodLiteral<"row">;
|
|
1707
|
+
model: z.ZodString;
|
|
1708
|
+
id: z.ZodString;
|
|
1709
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
1710
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1711
|
+
scope: z.ZodLiteral<"group">;
|
|
1712
|
+
group: z.ZodTemplateLiteral<`${string}:${string}`>;
|
|
1713
|
+
}, z.core.$strip>], "scope">;
|
|
1714
|
+
watermark: z.ZodNumber;
|
|
1715
|
+
lifetime: z.ZodLiteral<"commit">;
|
|
1716
|
+
onStale: z.ZodEnum<{
|
|
1717
|
+
reject: "reject";
|
|
1718
|
+
overwrite: "overwrite";
|
|
1719
|
+
notify: "notify";
|
|
1720
|
+
}>;
|
|
1721
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1722
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1723
|
+
id: z.ZodString;
|
|
1724
|
+
scope: z.ZodLiteral<"row">;
|
|
1725
|
+
model: z.ZodString;
|
|
1726
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1727
|
+
scope: z.ZodLiteral<"group">;
|
|
1728
|
+
group: z.ZodTemplateLiteral<`${string}:${string}`>;
|
|
1729
|
+
}, z.core.$strip>], "scope">;
|
|
1730
|
+
watermark: z.ZodNumber;
|
|
1731
|
+
lifetime: z.ZodLiteral<"persisted">;
|
|
1732
|
+
onStale: z.ZodEnum<{
|
|
1733
|
+
reject: "reject";
|
|
1734
|
+
notify: "notify";
|
|
1735
|
+
}>;
|
|
1736
|
+
}, z.core.$strip>], "lifetime">>>;
|
|
1737
|
+
operations: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
1738
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1739
|
+
model: z.ZodString;
|
|
1740
|
+
readAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1741
|
+
onStale: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1742
|
+
reject: "reject";
|
|
1743
|
+
overwrite: "overwrite";
|
|
1744
|
+
notify: "notify";
|
|
1745
|
+
}>>>;
|
|
1746
|
+
claimId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1747
|
+
fenceToken: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1748
|
+
transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1749
|
+
action: z.ZodString;
|
|
1750
|
+
data: z.ZodObject<{
|
|
1751
|
+
retention: z.ZodLiteral<"redacted">;
|
|
1752
|
+
}, z.core.$strict>;
|
|
1753
|
+
}, z.core.$strip>>>;
|
|
1754
|
+
receipt: z.ZodObject<{
|
|
1755
|
+
clientTxId: z.ZodString;
|
|
1756
|
+
serverTxId: z.ZodString;
|
|
1757
|
+
ops: z.ZodOptional<z.ZodNumber>;
|
|
1758
|
+
notifications: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1759
|
+
object: z.ZodLiteral<"stale_notification">;
|
|
1760
|
+
target: z.ZodReadonly<z.ZodObject<{
|
|
1761
|
+
model: z.ZodString;
|
|
1762
|
+
id: z.ZodString;
|
|
1763
|
+
field: z.ZodOptional<z.ZodString>;
|
|
1764
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
1765
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1766
|
+
}, z.core.$strip>>;
|
|
1767
|
+
readAt: z.ZodNumber;
|
|
1768
|
+
observedSyncId: z.ZodNumber;
|
|
1769
|
+
writtenBy: z.ZodObject<{
|
|
1770
|
+
kind: z.ZodEnum<{
|
|
1771
|
+
user: "user";
|
|
1772
|
+
agent: "agent";
|
|
1773
|
+
system: "system";
|
|
1774
|
+
}>;
|
|
1775
|
+
id: z.ZodString;
|
|
1776
|
+
}, z.core.$strip>;
|
|
1777
|
+
scope: z.ZodLiteral<"row">;
|
|
1778
|
+
currentValues: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1779
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1780
|
+
object: z.ZodLiteral<"stale_notification">;
|
|
1781
|
+
target: z.ZodReadonly<z.ZodObject<{
|
|
1782
|
+
model: z.ZodString;
|
|
1783
|
+
id: z.ZodString;
|
|
1784
|
+
field: z.ZodOptional<z.ZodString>;
|
|
1785
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
1786
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1787
|
+
}, z.core.$strip>>;
|
|
1788
|
+
readAt: z.ZodNumber;
|
|
1789
|
+
observedSyncId: z.ZodNumber;
|
|
1790
|
+
writtenBy: z.ZodObject<{
|
|
1791
|
+
kind: z.ZodEnum<{
|
|
1792
|
+
user: "user";
|
|
1793
|
+
agent: "agent";
|
|
1794
|
+
system: "system";
|
|
1795
|
+
}>;
|
|
1796
|
+
id: z.ZodString;
|
|
1797
|
+
}, z.core.$strip>;
|
|
1798
|
+
scope: z.ZodLiteral<"group">;
|
|
1799
|
+
group: z.ZodTemplateLiteral<`${string}:${string}`>;
|
|
1800
|
+
propagation: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
1801
|
+
via: z.ZodEnum<{
|
|
1802
|
+
self: "self";
|
|
1803
|
+
parent: "parent";
|
|
1804
|
+
transitive: "transitive";
|
|
1805
|
+
}>;
|
|
1806
|
+
through: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
1807
|
+
}, z.core.$strip>>>;
|
|
1808
|
+
changed: z.ZodOptional<z.ZodObject<{
|
|
1809
|
+
count: z.ZodNumber;
|
|
1810
|
+
sample: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
1811
|
+
model: z.ZodString;
|
|
1812
|
+
id: z.ZodString;
|
|
1813
|
+
field: z.ZodOptional<z.ZodString>;
|
|
1814
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
1815
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1816
|
+
}, z.core.$strip>>>>;
|
|
1817
|
+
truncated: z.ZodBoolean;
|
|
1818
|
+
}, z.core.$strip>>;
|
|
1819
|
+
}, z.core.$strip>], "scope">>>;
|
|
1820
|
+
missingIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1821
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
1822
|
+
code: z.ZodType<ErrorCode, unknown, z.core.$ZodTypeInternals<ErrorCode, unknown>>;
|
|
1823
|
+
message: z.ZodString;
|
|
1824
|
+
field: z.ZodOptional<z.ZodString>;
|
|
1825
|
+
request_id: z.ZodOptional<z.ZodString>;
|
|
1826
|
+
event_id: z.ZodOptional<z.ZodString>;
|
|
1827
|
+
requiredCapability: z.ZodOptional<z.ZodObject<{
|
|
1828
|
+
scope: z.ZodString;
|
|
1829
|
+
constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodString]>>>;
|
|
1830
|
+
issuer: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
1831
|
+
ttlSeconds: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
1832
|
+
nonce: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
1833
|
+
}, z.core.$loose>>;
|
|
1834
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1835
|
+
}, z.core.$strip>>;
|
|
1836
|
+
}, z.core.$strict>;
|
|
1837
|
+
attempts: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
1838
|
+
id: z.ZodString;
|
|
1839
|
+
observedAt: z.ZodISODateTime;
|
|
1840
|
+
transport: z.ZodEnum<{
|
|
1841
|
+
http: "http";
|
|
1842
|
+
websocket: "websocket";
|
|
1843
|
+
internal: "internal";
|
|
1844
|
+
}>;
|
|
1845
|
+
kind: z.ZodEnum<{
|
|
1846
|
+
execution: "execution";
|
|
1847
|
+
replay: "replay";
|
|
1848
|
+
}>;
|
|
1849
|
+
}, z.core.$strict>>>;
|
|
1850
|
+
actor: z.ZodObject<{
|
|
1851
|
+
kind: z.ZodEnum<{
|
|
1852
|
+
user: "user";
|
|
1853
|
+
agent: "agent";
|
|
1854
|
+
system: "system";
|
|
1855
|
+
}>;
|
|
1856
|
+
id: z.ZodString;
|
|
1857
|
+
}, z.core.$strict>;
|
|
1858
|
+
authority: z.ZodObject<{
|
|
1859
|
+
organizationId: z.ZodString;
|
|
1860
|
+
projectId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1861
|
+
branchId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1862
|
+
syncGroups: z.ZodArray<z.ZodString>;
|
|
1863
|
+
operations: z.ZodArray<z.ZodTemplateLiteral<`${string}.update` | `${string}.read` | `${string}.create` | `${string}.delete`>>;
|
|
1864
|
+
participantKind: z.ZodEnum<{
|
|
1865
|
+
user: "user";
|
|
1866
|
+
agent: "agent";
|
|
1867
|
+
system: "system";
|
|
1868
|
+
}>;
|
|
1869
|
+
participantId: z.ZodString;
|
|
1870
|
+
deliveryPartition: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
1871
|
+
index: z.ZodNumber;
|
|
1872
|
+
count: z.ZodNumber;
|
|
1873
|
+
}, z.core.$strip>>>;
|
|
1874
|
+
}, z.core.$strip>;
|
|
1875
|
+
claims: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
1876
|
+
id: z.ZodString;
|
|
1877
|
+
target: z.ZodObject<{
|
|
1878
|
+
scope: z.ZodLiteral<"row">;
|
|
1879
|
+
model: z.ZodString;
|
|
1880
|
+
id: z.ZodString;
|
|
1881
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
1882
|
+
}, z.core.$strip>;
|
|
1883
|
+
fenceToken: z.ZodNumber;
|
|
1884
|
+
}, z.core.$strict>>>;
|
|
1885
|
+
id: z.ZodString;
|
|
1886
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1887
|
+
status: z.ZodLiteral<"rejected">;
|
|
1888
|
+
statusAt: z.ZodISODateTime;
|
|
1889
|
+
lastSyncId: z.ZodLiteral<0>;
|
|
1890
|
+
createdAt: z.ZodISODateTime;
|
|
1891
|
+
readSet: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1892
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1893
|
+
scope: z.ZodLiteral<"row">;
|
|
1894
|
+
model: z.ZodString;
|
|
1895
|
+
id: z.ZodString;
|
|
1896
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
1897
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1898
|
+
scope: z.ZodLiteral<"group">;
|
|
1899
|
+
group: z.ZodTemplateLiteral<`${string}:${string}`>;
|
|
1900
|
+
}, z.core.$strip>], "scope">;
|
|
1901
|
+
watermark: z.ZodNumber;
|
|
1902
|
+
lifetime: z.ZodLiteral<"commit">;
|
|
1903
|
+
onStale: z.ZodEnum<{
|
|
1904
|
+
reject: "reject";
|
|
1905
|
+
overwrite: "overwrite";
|
|
1906
|
+
notify: "notify";
|
|
1907
|
+
}>;
|
|
1908
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1909
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1910
|
+
id: z.ZodString;
|
|
1911
|
+
scope: z.ZodLiteral<"row">;
|
|
1912
|
+
model: z.ZodString;
|
|
1913
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1914
|
+
scope: z.ZodLiteral<"group">;
|
|
1915
|
+
group: z.ZodTemplateLiteral<`${string}:${string}`>;
|
|
1916
|
+
}, z.core.$strip>], "scope">;
|
|
1917
|
+
watermark: z.ZodNumber;
|
|
1918
|
+
lifetime: z.ZodLiteral<"persisted">;
|
|
1919
|
+
onStale: z.ZodEnum<{
|
|
1920
|
+
reject: "reject";
|
|
1921
|
+
notify: "notify";
|
|
1922
|
+
}>;
|
|
1923
|
+
}, z.core.$strip>], "lifetime">>>;
|
|
1924
|
+
operations: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
1925
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1926
|
+
model: z.ZodString;
|
|
1927
|
+
readAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1928
|
+
onStale: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1929
|
+
reject: "reject";
|
|
1930
|
+
overwrite: "overwrite";
|
|
1931
|
+
notify: "notify";
|
|
1932
|
+
}>>>;
|
|
1933
|
+
claimId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1934
|
+
fenceToken: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1935
|
+
transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1936
|
+
action: z.ZodString;
|
|
1937
|
+
data: z.ZodObject<{
|
|
1938
|
+
retention: z.ZodLiteral<"redacted">;
|
|
1939
|
+
}, z.core.$strict>;
|
|
1940
|
+
}, z.core.$strip>>>;
|
|
1941
|
+
receipt: z.ZodObject<{
|
|
1942
|
+
clientTxId: z.ZodString;
|
|
1943
|
+
serverTxId: z.ZodString;
|
|
1944
|
+
ops: z.ZodOptional<z.ZodNumber>;
|
|
1945
|
+
notifications: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1946
|
+
object: z.ZodLiteral<"stale_notification">;
|
|
1947
|
+
target: z.ZodReadonly<z.ZodObject<{
|
|
1948
|
+
model: z.ZodString;
|
|
1949
|
+
id: z.ZodString;
|
|
1950
|
+
field: z.ZodOptional<z.ZodString>;
|
|
1951
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
1952
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1953
|
+
}, z.core.$strip>>;
|
|
1954
|
+
readAt: z.ZodNumber;
|
|
1955
|
+
observedSyncId: z.ZodNumber;
|
|
1956
|
+
writtenBy: z.ZodObject<{
|
|
1957
|
+
kind: z.ZodEnum<{
|
|
1958
|
+
user: "user";
|
|
1959
|
+
agent: "agent";
|
|
1960
|
+
system: "system";
|
|
1961
|
+
}>;
|
|
1962
|
+
id: z.ZodString;
|
|
1963
|
+
}, z.core.$strip>;
|
|
1964
|
+
scope: z.ZodLiteral<"row">;
|
|
1965
|
+
currentValues: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1966
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1967
|
+
object: z.ZodLiteral<"stale_notification">;
|
|
1968
|
+
target: z.ZodReadonly<z.ZodObject<{
|
|
1969
|
+
model: z.ZodString;
|
|
1970
|
+
id: z.ZodString;
|
|
1971
|
+
field: z.ZodOptional<z.ZodString>;
|
|
1972
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
1973
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1974
|
+
}, z.core.$strip>>;
|
|
1975
|
+
readAt: z.ZodNumber;
|
|
1976
|
+
observedSyncId: z.ZodNumber;
|
|
1977
|
+
writtenBy: z.ZodObject<{
|
|
1978
|
+
kind: z.ZodEnum<{
|
|
1979
|
+
user: "user";
|
|
1980
|
+
agent: "agent";
|
|
1981
|
+
system: "system";
|
|
1982
|
+
}>;
|
|
1983
|
+
id: z.ZodString;
|
|
1984
|
+
}, z.core.$strip>;
|
|
1985
|
+
scope: z.ZodLiteral<"group">;
|
|
1986
|
+
group: z.ZodTemplateLiteral<`${string}:${string}`>;
|
|
1987
|
+
propagation: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
1988
|
+
via: z.ZodEnum<{
|
|
1989
|
+
self: "self";
|
|
1990
|
+
parent: "parent";
|
|
1991
|
+
transitive: "transitive";
|
|
1992
|
+
}>;
|
|
1993
|
+
through: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
1994
|
+
}, z.core.$strip>>>;
|
|
1995
|
+
changed: z.ZodOptional<z.ZodObject<{
|
|
1996
|
+
count: z.ZodNumber;
|
|
1997
|
+
sample: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
1998
|
+
model: z.ZodString;
|
|
1999
|
+
id: z.ZodString;
|
|
2000
|
+
field: z.ZodOptional<z.ZodString>;
|
|
2001
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
2002
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2003
|
+
}, z.core.$strip>>>>;
|
|
2004
|
+
truncated: z.ZodBoolean;
|
|
2005
|
+
}, z.core.$strip>>;
|
|
2006
|
+
}, z.core.$strip>], "scope">>>;
|
|
2007
|
+
missingIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2008
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
2009
|
+
code: z.ZodType<ErrorCode, unknown, z.core.$ZodTypeInternals<ErrorCode, unknown>>;
|
|
2010
|
+
message: z.ZodString;
|
|
2011
|
+
field: z.ZodOptional<z.ZodString>;
|
|
2012
|
+
request_id: z.ZodOptional<z.ZodString>;
|
|
2013
|
+
event_id: z.ZodOptional<z.ZodString>;
|
|
2014
|
+
requiredCapability: z.ZodOptional<z.ZodObject<{
|
|
2015
|
+
scope: z.ZodString;
|
|
2016
|
+
constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodString]>>>;
|
|
2017
|
+
issuer: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
2018
|
+
ttlSeconds: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
2019
|
+
nonce: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
2020
|
+
}, z.core.$loose>>;
|
|
2021
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2022
|
+
}, z.core.$strip>>;
|
|
2023
|
+
}, z.core.$strict>;
|
|
2024
|
+
attempts: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
2025
|
+
id: z.ZodString;
|
|
2026
|
+
observedAt: z.ZodISODateTime;
|
|
2027
|
+
transport: z.ZodEnum<{
|
|
2028
|
+
http: "http";
|
|
2029
|
+
websocket: "websocket";
|
|
2030
|
+
internal: "internal";
|
|
2031
|
+
}>;
|
|
2032
|
+
kind: z.ZodEnum<{
|
|
2033
|
+
execution: "execution";
|
|
2034
|
+
replay: "replay";
|
|
2035
|
+
}>;
|
|
2036
|
+
}, z.core.$strict>>>;
|
|
2037
|
+
actor: z.ZodObject<{
|
|
2038
|
+
kind: z.ZodEnum<{
|
|
2039
|
+
user: "user";
|
|
2040
|
+
agent: "agent";
|
|
2041
|
+
system: "system";
|
|
2042
|
+
}>;
|
|
2043
|
+
id: z.ZodString;
|
|
2044
|
+
}, z.core.$strict>;
|
|
2045
|
+
authority: z.ZodObject<{
|
|
2046
|
+
organizationId: z.ZodString;
|
|
2047
|
+
projectId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
2048
|
+
branchId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
2049
|
+
syncGroups: z.ZodArray<z.ZodString>;
|
|
2050
|
+
operations: z.ZodArray<z.ZodTemplateLiteral<`${string}.update` | `${string}.read` | `${string}.create` | `${string}.delete`>>;
|
|
2051
|
+
participantKind: z.ZodEnum<{
|
|
2052
|
+
user: "user";
|
|
2053
|
+
agent: "agent";
|
|
2054
|
+
system: "system";
|
|
2055
|
+
}>;
|
|
2056
|
+
participantId: z.ZodString;
|
|
2057
|
+
deliveryPartition: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
2058
|
+
index: z.ZodNumber;
|
|
2059
|
+
count: z.ZodNumber;
|
|
2060
|
+
}, z.core.$strip>>>;
|
|
2061
|
+
}, z.core.$strip>;
|
|
2062
|
+
claims: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
2063
|
+
id: z.ZodString;
|
|
2064
|
+
target: z.ZodObject<{
|
|
2065
|
+
scope: z.ZodLiteral<"row">;
|
|
2066
|
+
model: z.ZodString;
|
|
2067
|
+
id: z.ZodString;
|
|
2068
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
2069
|
+
}, z.core.$strip>;
|
|
2070
|
+
fenceToken: z.ZodNumber;
|
|
2071
|
+
}, z.core.$strict>>>;
|
|
2072
|
+
id: z.ZodString;
|
|
2073
|
+
}, z.core.$strict>], "status">;
|
|
2074
|
+
export type CommitRecord = z.infer<typeof commitRecordSchema>;
|
|
2075
|
+
export declare const commitRecordWhereSchema: z.ZodObject<{
|
|
2076
|
+
actorId: z.ZodOptional<z.ZodString>;
|
|
2077
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"queued">, z.ZodLiteral<"confirmed">, z.ZodLiteral<"rejected">]>>;
|
|
2078
|
+
}, z.core.$strict>;
|
|
2079
|
+
export type CommitRecordWhere = z.infer<typeof commitRecordWhereSchema>;
|
|
2080
|
+
export declare const commitRecordListOptionsSchema: z.ZodObject<{
|
|
2081
|
+
where: z.ZodOptional<z.ZodObject<{
|
|
2082
|
+
actorId: z.ZodOptional<z.ZodString>;
|
|
2083
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"queued">, z.ZodLiteral<"confirmed">, z.ZodLiteral<"rejected">]>>;
|
|
2084
|
+
}, z.core.$strict>>;
|
|
2085
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
2086
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
2087
|
+
}, z.core.$strict>;
|
|
2088
|
+
export type CommitRecordListOptions = z.infer<typeof commitRecordListOptionsSchema>;
|
|
2089
|
+
export declare const commitRecordListSchema: z.ZodObject<{
|
|
2090
|
+
data: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2091
|
+
status: z.ZodLiteral<"queued">;
|
|
2092
|
+
statusAt: z.ZodISODateTime;
|
|
2093
|
+
lastSyncId: z.ZodLiteral<0>;
|
|
2094
|
+
correlationId: z.ZodString;
|
|
2095
|
+
createdAt: z.ZodISODateTime;
|
|
2096
|
+
readSet: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2097
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2098
|
+
scope: z.ZodLiteral<"row">;
|
|
2099
|
+
model: z.ZodString;
|
|
2100
|
+
id: z.ZodString;
|
|
2101
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
2102
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2103
|
+
scope: z.ZodLiteral<"group">;
|
|
2104
|
+
group: z.ZodTemplateLiteral<`${string}:${string}`>;
|
|
2105
|
+
}, z.core.$strip>], "scope">;
|
|
2106
|
+
watermark: z.ZodNumber;
|
|
2107
|
+
lifetime: z.ZodLiteral<"commit">;
|
|
2108
|
+
onStale: z.ZodEnum<{
|
|
2109
|
+
reject: "reject";
|
|
2110
|
+
overwrite: "overwrite";
|
|
2111
|
+
notify: "notify";
|
|
2112
|
+
}>;
|
|
2113
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2114
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2115
|
+
id: z.ZodString;
|
|
2116
|
+
scope: z.ZodLiteral<"row">;
|
|
2117
|
+
model: z.ZodString;
|
|
2118
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2119
|
+
scope: z.ZodLiteral<"group">;
|
|
2120
|
+
group: z.ZodTemplateLiteral<`${string}:${string}`>;
|
|
2121
|
+
}, z.core.$strip>], "scope">;
|
|
2122
|
+
watermark: z.ZodNumber;
|
|
2123
|
+
lifetime: z.ZodLiteral<"persisted">;
|
|
2124
|
+
onStale: z.ZodEnum<{
|
|
2125
|
+
reject: "reject";
|
|
2126
|
+
notify: "notify";
|
|
2127
|
+
}>;
|
|
2128
|
+
}, z.core.$strip>], "lifetime">>>;
|
|
2129
|
+
operations: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
2130
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2131
|
+
model: z.ZodString;
|
|
2132
|
+
readAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2133
|
+
onStale: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2134
|
+
reject: "reject";
|
|
2135
|
+
overwrite: "overwrite";
|
|
2136
|
+
notify: "notify";
|
|
2137
|
+
}>>>;
|
|
2138
|
+
claimId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2139
|
+
fenceToken: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2140
|
+
transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2141
|
+
action: z.ZodString;
|
|
2142
|
+
data: z.ZodObject<{
|
|
2143
|
+
retention: z.ZodLiteral<"redacted">;
|
|
2144
|
+
}, z.core.$strict>;
|
|
2145
|
+
}, z.core.$strip>>>;
|
|
2146
|
+
receipt: z.ZodObject<{
|
|
2147
|
+
clientTxId: z.ZodString;
|
|
2148
|
+
serverTxId: z.ZodString;
|
|
2149
|
+
ops: z.ZodOptional<z.ZodNumber>;
|
|
2150
|
+
notifications: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2151
|
+
object: z.ZodLiteral<"stale_notification">;
|
|
2152
|
+
target: z.ZodReadonly<z.ZodObject<{
|
|
2153
|
+
model: z.ZodString;
|
|
2154
|
+
id: z.ZodString;
|
|
2155
|
+
field: z.ZodOptional<z.ZodString>;
|
|
2156
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
2157
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2158
|
+
}, z.core.$strip>>;
|
|
2159
|
+
readAt: z.ZodNumber;
|
|
2160
|
+
observedSyncId: z.ZodNumber;
|
|
2161
|
+
writtenBy: z.ZodObject<{
|
|
2162
|
+
kind: z.ZodEnum<{
|
|
2163
|
+
user: "user";
|
|
2164
|
+
agent: "agent";
|
|
2165
|
+
system: "system";
|
|
2166
|
+
}>;
|
|
2167
|
+
id: z.ZodString;
|
|
2168
|
+
}, z.core.$strip>;
|
|
2169
|
+
scope: z.ZodLiteral<"row">;
|
|
2170
|
+
currentValues: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2171
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2172
|
+
object: z.ZodLiteral<"stale_notification">;
|
|
2173
|
+
target: z.ZodReadonly<z.ZodObject<{
|
|
2174
|
+
model: z.ZodString;
|
|
2175
|
+
id: z.ZodString;
|
|
2176
|
+
field: z.ZodOptional<z.ZodString>;
|
|
2177
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
2178
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2179
|
+
}, z.core.$strip>>;
|
|
2180
|
+
readAt: z.ZodNumber;
|
|
2181
|
+
observedSyncId: z.ZodNumber;
|
|
2182
|
+
writtenBy: z.ZodObject<{
|
|
2183
|
+
kind: z.ZodEnum<{
|
|
2184
|
+
user: "user";
|
|
2185
|
+
agent: "agent";
|
|
2186
|
+
system: "system";
|
|
2187
|
+
}>;
|
|
2188
|
+
id: z.ZodString;
|
|
2189
|
+
}, z.core.$strip>;
|
|
2190
|
+
scope: z.ZodLiteral<"group">;
|
|
2191
|
+
group: z.ZodTemplateLiteral<`${string}:${string}`>;
|
|
2192
|
+
propagation: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
2193
|
+
via: z.ZodEnum<{
|
|
2194
|
+
self: "self";
|
|
2195
|
+
parent: "parent";
|
|
2196
|
+
transitive: "transitive";
|
|
2197
|
+
}>;
|
|
2198
|
+
through: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
2199
|
+
}, z.core.$strip>>>;
|
|
2200
|
+
changed: z.ZodOptional<z.ZodObject<{
|
|
2201
|
+
count: z.ZodNumber;
|
|
2202
|
+
sample: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
2203
|
+
model: z.ZodString;
|
|
2204
|
+
id: z.ZodString;
|
|
2205
|
+
field: z.ZodOptional<z.ZodString>;
|
|
2206
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
2207
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2208
|
+
}, z.core.$strip>>>>;
|
|
2209
|
+
truncated: z.ZodBoolean;
|
|
2210
|
+
}, z.core.$strip>>;
|
|
2211
|
+
}, z.core.$strip>], "scope">>>;
|
|
2212
|
+
missingIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2213
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
2214
|
+
code: z.ZodType<ErrorCode, unknown, z.core.$ZodTypeInternals<ErrorCode, unknown>>;
|
|
2215
|
+
message: z.ZodString;
|
|
2216
|
+
field: z.ZodOptional<z.ZodString>;
|
|
2217
|
+
request_id: z.ZodOptional<z.ZodString>;
|
|
2218
|
+
event_id: z.ZodOptional<z.ZodString>;
|
|
2219
|
+
requiredCapability: z.ZodOptional<z.ZodObject<{
|
|
2220
|
+
scope: z.ZodString;
|
|
2221
|
+
constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodString]>>>;
|
|
2222
|
+
issuer: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
2223
|
+
ttlSeconds: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
2224
|
+
nonce: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
2225
|
+
}, z.core.$loose>>;
|
|
2226
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2227
|
+
}, z.core.$strip>>;
|
|
2228
|
+
}, z.core.$strict>;
|
|
2229
|
+
attempts: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
2230
|
+
id: z.ZodString;
|
|
2231
|
+
observedAt: z.ZodISODateTime;
|
|
2232
|
+
transport: z.ZodEnum<{
|
|
2233
|
+
http: "http";
|
|
2234
|
+
websocket: "websocket";
|
|
2235
|
+
internal: "internal";
|
|
2236
|
+
}>;
|
|
2237
|
+
kind: z.ZodEnum<{
|
|
2238
|
+
execution: "execution";
|
|
2239
|
+
replay: "replay";
|
|
2240
|
+
}>;
|
|
2241
|
+
}, z.core.$strict>>>;
|
|
2242
|
+
actor: z.ZodObject<{
|
|
2243
|
+
kind: z.ZodEnum<{
|
|
2244
|
+
user: "user";
|
|
2245
|
+
agent: "agent";
|
|
2246
|
+
system: "system";
|
|
2247
|
+
}>;
|
|
2248
|
+
id: z.ZodString;
|
|
2249
|
+
}, z.core.$strict>;
|
|
2250
|
+
authority: z.ZodObject<{
|
|
2251
|
+
organizationId: z.ZodString;
|
|
2252
|
+
projectId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
2253
|
+
branchId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
2254
|
+
syncGroups: z.ZodArray<z.ZodString>;
|
|
2255
|
+
operations: z.ZodArray<z.ZodTemplateLiteral<`${string}.update` | `${string}.read` | `${string}.create` | `${string}.delete`>>;
|
|
2256
|
+
participantKind: z.ZodEnum<{
|
|
2257
|
+
user: "user";
|
|
2258
|
+
agent: "agent";
|
|
2259
|
+
system: "system";
|
|
2260
|
+
}>;
|
|
2261
|
+
participantId: z.ZodString;
|
|
2262
|
+
deliveryPartition: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
2263
|
+
index: z.ZodNumber;
|
|
2264
|
+
count: z.ZodNumber;
|
|
2265
|
+
}, z.core.$strip>>>;
|
|
2266
|
+
}, z.core.$strip>;
|
|
2267
|
+
claims: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
2268
|
+
id: z.ZodString;
|
|
2269
|
+
target: z.ZodObject<{
|
|
2270
|
+
scope: z.ZodLiteral<"row">;
|
|
2271
|
+
model: z.ZodString;
|
|
2272
|
+
id: z.ZodString;
|
|
2273
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
2274
|
+
}, z.core.$strip>;
|
|
2275
|
+
fenceToken: z.ZodNumber;
|
|
2276
|
+
}, z.core.$strict>>>;
|
|
2277
|
+
id: z.ZodString;
|
|
2278
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2279
|
+
status: z.ZodLiteral<"confirmed">;
|
|
2280
|
+
statusAt: z.ZodISODateTime;
|
|
2281
|
+
lastSyncId: z.ZodNumber;
|
|
2282
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
2283
|
+
createdAt: z.ZodISODateTime;
|
|
2284
|
+
readSet: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2285
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2286
|
+
scope: z.ZodLiteral<"row">;
|
|
2287
|
+
model: z.ZodString;
|
|
2288
|
+
id: z.ZodString;
|
|
2289
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
2290
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2291
|
+
scope: z.ZodLiteral<"group">;
|
|
2292
|
+
group: z.ZodTemplateLiteral<`${string}:${string}`>;
|
|
2293
|
+
}, z.core.$strip>], "scope">;
|
|
2294
|
+
watermark: z.ZodNumber;
|
|
2295
|
+
lifetime: z.ZodLiteral<"commit">;
|
|
2296
|
+
onStale: z.ZodEnum<{
|
|
2297
|
+
reject: "reject";
|
|
2298
|
+
overwrite: "overwrite";
|
|
2299
|
+
notify: "notify";
|
|
2300
|
+
}>;
|
|
2301
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2302
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2303
|
+
id: z.ZodString;
|
|
2304
|
+
scope: z.ZodLiteral<"row">;
|
|
2305
|
+
model: z.ZodString;
|
|
2306
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2307
|
+
scope: z.ZodLiteral<"group">;
|
|
2308
|
+
group: z.ZodTemplateLiteral<`${string}:${string}`>;
|
|
2309
|
+
}, z.core.$strip>], "scope">;
|
|
2310
|
+
watermark: z.ZodNumber;
|
|
2311
|
+
lifetime: z.ZodLiteral<"persisted">;
|
|
2312
|
+
onStale: z.ZodEnum<{
|
|
2313
|
+
reject: "reject";
|
|
2314
|
+
notify: "notify";
|
|
2315
|
+
}>;
|
|
2316
|
+
}, z.core.$strip>], "lifetime">>>;
|
|
2317
|
+
operations: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
2318
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2319
|
+
model: z.ZodString;
|
|
2320
|
+
readAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2321
|
+
onStale: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2322
|
+
reject: "reject";
|
|
2323
|
+
overwrite: "overwrite";
|
|
2324
|
+
notify: "notify";
|
|
2325
|
+
}>>>;
|
|
2326
|
+
claimId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2327
|
+
fenceToken: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2328
|
+
transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2329
|
+
action: z.ZodString;
|
|
2330
|
+
data: z.ZodObject<{
|
|
2331
|
+
retention: z.ZodLiteral<"redacted">;
|
|
2332
|
+
}, z.core.$strict>;
|
|
2333
|
+
}, z.core.$strip>>>;
|
|
2334
|
+
receipt: z.ZodObject<{
|
|
2335
|
+
clientTxId: z.ZodString;
|
|
2336
|
+
serverTxId: z.ZodString;
|
|
2337
|
+
ops: z.ZodOptional<z.ZodNumber>;
|
|
2338
|
+
notifications: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2339
|
+
object: z.ZodLiteral<"stale_notification">;
|
|
2340
|
+
target: z.ZodReadonly<z.ZodObject<{
|
|
2341
|
+
model: z.ZodString;
|
|
2342
|
+
id: z.ZodString;
|
|
2343
|
+
field: z.ZodOptional<z.ZodString>;
|
|
2344
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
2345
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2346
|
+
}, z.core.$strip>>;
|
|
2347
|
+
readAt: z.ZodNumber;
|
|
2348
|
+
observedSyncId: z.ZodNumber;
|
|
2349
|
+
writtenBy: z.ZodObject<{
|
|
2350
|
+
kind: z.ZodEnum<{
|
|
2351
|
+
user: "user";
|
|
2352
|
+
agent: "agent";
|
|
2353
|
+
system: "system";
|
|
2354
|
+
}>;
|
|
2355
|
+
id: z.ZodString;
|
|
2356
|
+
}, z.core.$strip>;
|
|
2357
|
+
scope: z.ZodLiteral<"row">;
|
|
2358
|
+
currentValues: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2359
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2360
|
+
object: z.ZodLiteral<"stale_notification">;
|
|
2361
|
+
target: z.ZodReadonly<z.ZodObject<{
|
|
2362
|
+
model: z.ZodString;
|
|
2363
|
+
id: z.ZodString;
|
|
2364
|
+
field: z.ZodOptional<z.ZodString>;
|
|
2365
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
2366
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2367
|
+
}, z.core.$strip>>;
|
|
2368
|
+
readAt: z.ZodNumber;
|
|
2369
|
+
observedSyncId: z.ZodNumber;
|
|
2370
|
+
writtenBy: z.ZodObject<{
|
|
2371
|
+
kind: z.ZodEnum<{
|
|
2372
|
+
user: "user";
|
|
2373
|
+
agent: "agent";
|
|
2374
|
+
system: "system";
|
|
2375
|
+
}>;
|
|
2376
|
+
id: z.ZodString;
|
|
2377
|
+
}, z.core.$strip>;
|
|
2378
|
+
scope: z.ZodLiteral<"group">;
|
|
2379
|
+
group: z.ZodTemplateLiteral<`${string}:${string}`>;
|
|
2380
|
+
propagation: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
2381
|
+
via: z.ZodEnum<{
|
|
2382
|
+
self: "self";
|
|
2383
|
+
parent: "parent";
|
|
2384
|
+
transitive: "transitive";
|
|
2385
|
+
}>;
|
|
2386
|
+
through: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
2387
|
+
}, z.core.$strip>>>;
|
|
2388
|
+
changed: z.ZodOptional<z.ZodObject<{
|
|
2389
|
+
count: z.ZodNumber;
|
|
2390
|
+
sample: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
2391
|
+
model: z.ZodString;
|
|
2392
|
+
id: z.ZodString;
|
|
2393
|
+
field: z.ZodOptional<z.ZodString>;
|
|
2394
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
2395
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2396
|
+
}, z.core.$strip>>>>;
|
|
2397
|
+
truncated: z.ZodBoolean;
|
|
2398
|
+
}, z.core.$strip>>;
|
|
2399
|
+
}, z.core.$strip>], "scope">>>;
|
|
2400
|
+
missingIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2401
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
2402
|
+
code: z.ZodType<ErrorCode, unknown, z.core.$ZodTypeInternals<ErrorCode, unknown>>;
|
|
2403
|
+
message: z.ZodString;
|
|
2404
|
+
field: z.ZodOptional<z.ZodString>;
|
|
2405
|
+
request_id: z.ZodOptional<z.ZodString>;
|
|
2406
|
+
event_id: z.ZodOptional<z.ZodString>;
|
|
2407
|
+
requiredCapability: z.ZodOptional<z.ZodObject<{
|
|
2408
|
+
scope: z.ZodString;
|
|
2409
|
+
constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodString]>>>;
|
|
2410
|
+
issuer: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
2411
|
+
ttlSeconds: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
2412
|
+
nonce: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
2413
|
+
}, z.core.$loose>>;
|
|
2414
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2415
|
+
}, z.core.$strip>>;
|
|
2416
|
+
}, z.core.$strict>;
|
|
2417
|
+
attempts: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
2418
|
+
id: z.ZodString;
|
|
2419
|
+
observedAt: z.ZodISODateTime;
|
|
2420
|
+
transport: z.ZodEnum<{
|
|
2421
|
+
http: "http";
|
|
2422
|
+
websocket: "websocket";
|
|
2423
|
+
internal: "internal";
|
|
2424
|
+
}>;
|
|
2425
|
+
kind: z.ZodEnum<{
|
|
2426
|
+
execution: "execution";
|
|
2427
|
+
replay: "replay";
|
|
2428
|
+
}>;
|
|
2429
|
+
}, z.core.$strict>>>;
|
|
2430
|
+
actor: z.ZodObject<{
|
|
2431
|
+
kind: z.ZodEnum<{
|
|
2432
|
+
user: "user";
|
|
2433
|
+
agent: "agent";
|
|
2434
|
+
system: "system";
|
|
2435
|
+
}>;
|
|
2436
|
+
id: z.ZodString;
|
|
2437
|
+
}, z.core.$strict>;
|
|
2438
|
+
authority: z.ZodObject<{
|
|
2439
|
+
organizationId: z.ZodString;
|
|
2440
|
+
projectId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
2441
|
+
branchId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
2442
|
+
syncGroups: z.ZodArray<z.ZodString>;
|
|
2443
|
+
operations: z.ZodArray<z.ZodTemplateLiteral<`${string}.update` | `${string}.read` | `${string}.create` | `${string}.delete`>>;
|
|
2444
|
+
participantKind: z.ZodEnum<{
|
|
2445
|
+
user: "user";
|
|
2446
|
+
agent: "agent";
|
|
2447
|
+
system: "system";
|
|
2448
|
+
}>;
|
|
2449
|
+
participantId: z.ZodString;
|
|
2450
|
+
deliveryPartition: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
2451
|
+
index: z.ZodNumber;
|
|
2452
|
+
count: z.ZodNumber;
|
|
2453
|
+
}, z.core.$strip>>>;
|
|
2454
|
+
}, z.core.$strip>;
|
|
2455
|
+
claims: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
2456
|
+
id: z.ZodString;
|
|
2457
|
+
target: z.ZodObject<{
|
|
2458
|
+
scope: z.ZodLiteral<"row">;
|
|
2459
|
+
model: z.ZodString;
|
|
2460
|
+
id: z.ZodString;
|
|
2461
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
2462
|
+
}, z.core.$strip>;
|
|
2463
|
+
fenceToken: z.ZodNumber;
|
|
2464
|
+
}, z.core.$strict>>>;
|
|
2465
|
+
id: z.ZodString;
|
|
2466
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2467
|
+
status: z.ZodLiteral<"rejected">;
|
|
2468
|
+
statusAt: z.ZodISODateTime;
|
|
2469
|
+
lastSyncId: z.ZodLiteral<0>;
|
|
2470
|
+
createdAt: z.ZodISODateTime;
|
|
2471
|
+
readSet: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2472
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2473
|
+
scope: z.ZodLiteral<"row">;
|
|
2474
|
+
model: z.ZodString;
|
|
2475
|
+
id: z.ZodString;
|
|
2476
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
2477
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2478
|
+
scope: z.ZodLiteral<"group">;
|
|
2479
|
+
group: z.ZodTemplateLiteral<`${string}:${string}`>;
|
|
2480
|
+
}, z.core.$strip>], "scope">;
|
|
2481
|
+
watermark: z.ZodNumber;
|
|
2482
|
+
lifetime: z.ZodLiteral<"commit">;
|
|
2483
|
+
onStale: z.ZodEnum<{
|
|
2484
|
+
reject: "reject";
|
|
2485
|
+
overwrite: "overwrite";
|
|
2486
|
+
notify: "notify";
|
|
2487
|
+
}>;
|
|
2488
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2489
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2490
|
+
id: z.ZodString;
|
|
2491
|
+
scope: z.ZodLiteral<"row">;
|
|
2492
|
+
model: z.ZodString;
|
|
2493
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2494
|
+
scope: z.ZodLiteral<"group">;
|
|
2495
|
+
group: z.ZodTemplateLiteral<`${string}:${string}`>;
|
|
2496
|
+
}, z.core.$strip>], "scope">;
|
|
2497
|
+
watermark: z.ZodNumber;
|
|
2498
|
+
lifetime: z.ZodLiteral<"persisted">;
|
|
2499
|
+
onStale: z.ZodEnum<{
|
|
2500
|
+
reject: "reject";
|
|
2501
|
+
notify: "notify";
|
|
2502
|
+
}>;
|
|
2503
|
+
}, z.core.$strip>], "lifetime">>>;
|
|
2504
|
+
operations: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
2505
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2506
|
+
model: z.ZodString;
|
|
2507
|
+
readAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2508
|
+
onStale: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2509
|
+
reject: "reject";
|
|
2510
|
+
overwrite: "overwrite";
|
|
2511
|
+
notify: "notify";
|
|
2512
|
+
}>>>;
|
|
2513
|
+
claimId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2514
|
+
fenceToken: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2515
|
+
transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2516
|
+
action: z.ZodString;
|
|
2517
|
+
data: z.ZodObject<{
|
|
2518
|
+
retention: z.ZodLiteral<"redacted">;
|
|
2519
|
+
}, z.core.$strict>;
|
|
2520
|
+
}, z.core.$strip>>>;
|
|
2521
|
+
receipt: z.ZodObject<{
|
|
2522
|
+
clientTxId: z.ZodString;
|
|
2523
|
+
serverTxId: z.ZodString;
|
|
2524
|
+
ops: z.ZodOptional<z.ZodNumber>;
|
|
2525
|
+
notifications: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2526
|
+
object: z.ZodLiteral<"stale_notification">;
|
|
2527
|
+
target: z.ZodReadonly<z.ZodObject<{
|
|
2528
|
+
model: z.ZodString;
|
|
2529
|
+
id: z.ZodString;
|
|
2530
|
+
field: z.ZodOptional<z.ZodString>;
|
|
2531
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
2532
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2533
|
+
}, z.core.$strip>>;
|
|
2534
|
+
readAt: z.ZodNumber;
|
|
2535
|
+
observedSyncId: z.ZodNumber;
|
|
2536
|
+
writtenBy: z.ZodObject<{
|
|
2537
|
+
kind: z.ZodEnum<{
|
|
2538
|
+
user: "user";
|
|
2539
|
+
agent: "agent";
|
|
2540
|
+
system: "system";
|
|
2541
|
+
}>;
|
|
2542
|
+
id: z.ZodString;
|
|
2543
|
+
}, z.core.$strip>;
|
|
2544
|
+
scope: z.ZodLiteral<"row">;
|
|
2545
|
+
currentValues: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2546
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2547
|
+
object: z.ZodLiteral<"stale_notification">;
|
|
2548
|
+
target: z.ZodReadonly<z.ZodObject<{
|
|
2549
|
+
model: z.ZodString;
|
|
2550
|
+
id: z.ZodString;
|
|
2551
|
+
field: z.ZodOptional<z.ZodString>;
|
|
2552
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
2553
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2554
|
+
}, z.core.$strip>>;
|
|
2555
|
+
readAt: z.ZodNumber;
|
|
2556
|
+
observedSyncId: z.ZodNumber;
|
|
2557
|
+
writtenBy: z.ZodObject<{
|
|
2558
|
+
kind: z.ZodEnum<{
|
|
2559
|
+
user: "user";
|
|
2560
|
+
agent: "agent";
|
|
2561
|
+
system: "system";
|
|
2562
|
+
}>;
|
|
2563
|
+
id: z.ZodString;
|
|
2564
|
+
}, z.core.$strip>;
|
|
2565
|
+
scope: z.ZodLiteral<"group">;
|
|
2566
|
+
group: z.ZodTemplateLiteral<`${string}:${string}`>;
|
|
2567
|
+
propagation: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
2568
|
+
via: z.ZodEnum<{
|
|
2569
|
+
self: "self";
|
|
2570
|
+
parent: "parent";
|
|
2571
|
+
transitive: "transitive";
|
|
2572
|
+
}>;
|
|
2573
|
+
through: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
2574
|
+
}, z.core.$strip>>>;
|
|
2575
|
+
changed: z.ZodOptional<z.ZodObject<{
|
|
2576
|
+
count: z.ZodNumber;
|
|
2577
|
+
sample: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
2578
|
+
model: z.ZodString;
|
|
2579
|
+
id: z.ZodString;
|
|
2580
|
+
field: z.ZodOptional<z.ZodString>;
|
|
2581
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
2582
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2583
|
+
}, z.core.$strip>>>>;
|
|
2584
|
+
truncated: z.ZodBoolean;
|
|
2585
|
+
}, z.core.$strip>>;
|
|
2586
|
+
}, z.core.$strip>], "scope">>>;
|
|
2587
|
+
missingIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2588
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
2589
|
+
code: z.ZodType<ErrorCode, unknown, z.core.$ZodTypeInternals<ErrorCode, unknown>>;
|
|
2590
|
+
message: z.ZodString;
|
|
2591
|
+
field: z.ZodOptional<z.ZodString>;
|
|
2592
|
+
request_id: z.ZodOptional<z.ZodString>;
|
|
2593
|
+
event_id: z.ZodOptional<z.ZodString>;
|
|
2594
|
+
requiredCapability: z.ZodOptional<z.ZodObject<{
|
|
2595
|
+
scope: z.ZodString;
|
|
2596
|
+
constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodString]>>>;
|
|
2597
|
+
issuer: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
2598
|
+
ttlSeconds: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
2599
|
+
nonce: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
2600
|
+
}, z.core.$loose>>;
|
|
2601
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2602
|
+
}, z.core.$strip>>;
|
|
2603
|
+
}, z.core.$strict>;
|
|
2604
|
+
attempts: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
2605
|
+
id: z.ZodString;
|
|
2606
|
+
observedAt: z.ZodISODateTime;
|
|
2607
|
+
transport: z.ZodEnum<{
|
|
2608
|
+
http: "http";
|
|
2609
|
+
websocket: "websocket";
|
|
2610
|
+
internal: "internal";
|
|
2611
|
+
}>;
|
|
2612
|
+
kind: z.ZodEnum<{
|
|
2613
|
+
execution: "execution";
|
|
2614
|
+
replay: "replay";
|
|
2615
|
+
}>;
|
|
2616
|
+
}, z.core.$strict>>>;
|
|
2617
|
+
actor: z.ZodObject<{
|
|
2618
|
+
kind: z.ZodEnum<{
|
|
2619
|
+
user: "user";
|
|
2620
|
+
agent: "agent";
|
|
2621
|
+
system: "system";
|
|
2622
|
+
}>;
|
|
2623
|
+
id: z.ZodString;
|
|
2624
|
+
}, z.core.$strict>;
|
|
2625
|
+
authority: z.ZodObject<{
|
|
2626
|
+
organizationId: z.ZodString;
|
|
2627
|
+
projectId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
2628
|
+
branchId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
2629
|
+
syncGroups: z.ZodArray<z.ZodString>;
|
|
2630
|
+
operations: z.ZodArray<z.ZodTemplateLiteral<`${string}.update` | `${string}.read` | `${string}.create` | `${string}.delete`>>;
|
|
2631
|
+
participantKind: z.ZodEnum<{
|
|
2632
|
+
user: "user";
|
|
2633
|
+
agent: "agent";
|
|
2634
|
+
system: "system";
|
|
2635
|
+
}>;
|
|
2636
|
+
participantId: z.ZodString;
|
|
2637
|
+
deliveryPartition: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
2638
|
+
index: z.ZodNumber;
|
|
2639
|
+
count: z.ZodNumber;
|
|
2640
|
+
}, z.core.$strip>>>;
|
|
2641
|
+
}, z.core.$strip>;
|
|
2642
|
+
claims: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
2643
|
+
id: z.ZodString;
|
|
2644
|
+
target: z.ZodObject<{
|
|
2645
|
+
scope: z.ZodLiteral<"row">;
|
|
2646
|
+
model: z.ZodString;
|
|
2647
|
+
id: z.ZodString;
|
|
2648
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
2649
|
+
}, z.core.$strip>;
|
|
2650
|
+
fenceToken: z.ZodNumber;
|
|
2651
|
+
}, z.core.$strict>>>;
|
|
2652
|
+
id: z.ZodString;
|
|
2653
|
+
}, z.core.$strict>], "status">>>;
|
|
2654
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
2655
|
+
}, z.core.$strict>;
|
|
2656
|
+
export type CommitRecordList = z.infer<typeof commitRecordListSchema>;
|
|
1218
2657
|
//# sourceMappingURL=commit.d.ts.map
|