@abloatai/transaction 0.39.0 → 0.41.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/dist/auth/index.d.ts +12 -3
- package/dist/auth/index.d.ts.map +1 -1
- package/dist/auth/index.js +14 -6
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/schemas.d.ts +1 -0
- package/dist/auth/schemas.d.ts.map +1 -1
- package/dist/auth/schemas.js +10 -2
- package/dist/auth/schemas.js.map +1 -1
- package/dist/coordination/events.d.ts +9 -0
- package/dist/coordination/events.d.ts.map +1 -1
- package/dist/coordination/index.d.ts +2 -2
- package/dist/coordination/index.d.ts.map +1 -1
- package/dist/coordination/index.js +1 -1
- package/dist/coordination/index.js.map +1 -1
- package/dist/coordination/schema.d.ts +226 -34
- package/dist/coordination/schema.d.ts.map +1 -1
- package/dist/coordination/schema.js +180 -48
- package/dist/coordination/schema.js.map +1 -1
- package/dist/coordination/trace.d.ts.map +1 -1
- package/dist/coordination/trace.js +9 -1
- package/dist/coordination/trace.js.map +1 -1
- package/dist/errorCodes.d.ts +5 -0
- package/dist/errorCodes.d.ts.map +1 -1
- package/dist/errorCodes.js +10 -1
- package/dist/errorCodes.js.map +1 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +9 -2
- package/dist/errors.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/policy/types.d.ts +10 -2
- package/dist/policy/types.d.ts.map +1 -1
- package/dist/policy/types.js.map +1 -1
- package/dist/pricing.d.ts +194 -0
- package/dist/pricing.d.ts.map +1 -0
- package/dist/pricing.js +330 -0
- package/dist/pricing.js.map +1 -0
- package/dist/resources/functionalUpdate.d.ts.map +1 -1
- package/dist/resources/functionalUpdate.js +8 -8
- package/dist/resources/functionalUpdate.js.map +1 -1
- package/dist/schema/index.d.ts +1 -1
- package/dist/schema/index.d.ts.map +1 -1
- package/dist/schema/index.js +1 -1
- package/dist/schema/index.js.map +1 -1
- package/dist/schema/roles.d.ts +19 -0
- package/dist/schema/roles.d.ts.map +1 -1
- package/dist/schema/roles.js +23 -3
- package/dist/schema/roles.js.map +1 -1
- package/dist/schema/schema.d.ts +1 -1
- package/dist/schema/schema.d.ts.map +1 -1
- package/dist/schema/schema.js +1 -1
- package/dist/schema/schema.js.map +1 -1
- package/dist/schema/tenancy.d.ts +1 -1
- package/dist/transactions/settlement/commitEnvelope.d.ts +10 -2
- package/dist/transactions/settlement/commitEnvelope.d.ts.map +1 -1
- package/dist/transactions/settlement/pendingWrite.d.ts +10 -2
- package/dist/transactions/settlement/pendingWrite.d.ts.map +1 -1
- package/dist/transport/wsFrameHandlers.d.ts.map +1 -1
- package/dist/transport/wsFrameHandlers.js +9 -3
- package/dist/transport/wsFrameHandlers.js.map +1 -1
- package/dist/wire/accountResponses.d.ts +100 -0
- package/dist/wire/accountResponses.d.ts.map +1 -1
- package/dist/wire/accountResponses.js +70 -0
- package/dist/wire/accountResponses.js.map +1 -1
- package/dist/wire/auth.d.ts +1 -0
- package/dist/wire/auth.d.ts.map +1 -1
- package/dist/wire/auth.js +16 -4
- package/dist/wire/auth.js.map +1 -1
- package/dist/wire/commit.d.ts +708 -100
- package/dist/wire/commit.d.ts.map +1 -1
- package/dist/wire/dataSourceResponses.d.ts +171 -0
- package/dist/wire/dataSourceResponses.d.ts.map +1 -0
- package/dist/wire/dataSourceResponses.js +168 -0
- package/dist/wire/dataSourceResponses.js.map +1 -0
- package/dist/wire/frames.d.ts +20 -4
- package/dist/wire/frames.d.ts.map +1 -1
- package/dist/wire/inboundFrames.d.ts +102 -14
- package/dist/wire/inboundFrames.d.ts.map +1 -1
- package/dist/wire/index.d.ts +4 -2
- package/dist/wire/index.d.ts.map +1 -1
- package/dist/wire/index.js +5 -1
- package/dist/wire/index.js.map +1 -1
- package/dist/wire/pricing.d.ts +43 -0
- package/dist/wire/pricing.d.ts.map +1 -0
- package/dist/wire/pricing.js +36 -0
- package/dist/wire/pricing.js.map +1 -0
- package/package.json +6 -1
- package/src/auth/index.ts +26 -9
- package/src/auth/schemas.ts +14 -3
- package/src/coordination/events.ts +9 -0
- package/src/coordination/index.ts +8 -0
- package/src/coordination/schema.ts +200 -51
- package/src/coordination/trace.ts +9 -1
- package/src/errorCodes.ts +30 -1
- package/src/errors.ts +9 -2
- package/src/index.ts +4 -0
- package/src/policy/types.ts +10 -2
- package/src/pricing.ts +350 -0
- package/src/resources/functionalUpdate.ts +11 -11
- package/src/schema/index.ts +2 -0
- package/src/schema/roles.ts +26 -3
- package/src/schema/schema.ts +2 -0
- package/src/transport/wsFrameHandlers.ts +9 -3
- package/src/wire/accountResponses.ts +76 -0
- package/src/wire/auth.ts +19 -4
- package/src/wire/dataSourceResponses.ts +188 -0
- package/src/wire/index.ts +33 -0
- package/src/wire/pricing.ts +41 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commit.d.ts","sourceRoot":"","sources":["../../src/wire/commit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAGlD,4DAA4D;AAC5D,eAAO,MAAM,gCAAgC,MAAM,CAAC;AAEpD,qGAAqG;AACrG,eAAO,MAAM,mBAAmB,aAA0D,CAAC;AAC3F,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,kBAAkB;;;EAAkC,CAAC;AAClE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,gBAAgB;;;EAAsD,CAAC;AACpF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CA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AO,yBAAyB,CAAC,CAAC;AAE5E;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAI9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What the DATASOURCE routes answer with — the connect surface you reach
|
|
3
|
+
* through `ablo connect` and its verbs: `POST /v1/datasources` (register),
|
|
4
|
+
* `POST /v1/datasources/validate` (readiness from Ablo's own network),
|
|
5
|
+
* `POST /v1/datasources/locate` (which plane holds a database),
|
|
6
|
+
* `GET /v1/datasources` (this plane's registrations), and
|
|
7
|
+
* `DELETE /v1/datasources` (deregister).
|
|
8
|
+
*
|
|
9
|
+
* These are the shapes the server, the CLI, and the dashboard have to agree
|
|
10
|
+
* on. Before this module each consumer spelled them out again — the server
|
|
11
|
+
* inline in `c.json({ … })`, the CLI in three separate hand-rolled decoders —
|
|
12
|
+
* so a renamed field surfaced as `undefined` in a success message, and a
|
|
13
|
+
* warning the server attached (a replication slot still holding the customer's
|
|
14
|
+
* write-ahead log) was silently dropped by a reader that never knew the key
|
|
15
|
+
* existed.
|
|
16
|
+
*
|
|
17
|
+
* Reader stance: fields beyond each response's core verdict are OPTIONAL here
|
|
18
|
+
* even where today's server always sends them. The CLI dials deployments that
|
|
19
|
+
* skew across releases, and a strict parse would refuse a run that succeeded —
|
|
20
|
+
* the worst failure class this surface has. The parse still fails loudly on a
|
|
21
|
+
* body that is not the response at all (a proxy's HTML page, another route's
|
|
22
|
+
* answer), which is the drift this module exists to catch.
|
|
23
|
+
*/
|
|
24
|
+
import { z } from 'zod';
|
|
25
|
+
/**
|
|
26
|
+
* The readiness vocabulary — every invariant the engine's preflights can name
|
|
27
|
+
* in a failure. ONE definition site: the server's probes type their `item`
|
|
28
|
+
* against {@link ReadinessItem}, so an item outside this list cannot compile,
|
|
29
|
+
* and the CLI's plain-language renderer is total over it, so an item added
|
|
30
|
+
* here fails the CLI build until it has a label. That closed loop is what
|
|
31
|
+
* stops the vocabulary drifting apart in three files again — the CLI shipped
|
|
32
|
+
* without a label for `server_version` for exactly that reason.
|
|
33
|
+
*
|
|
34
|
+
* On the WIRE `item` stays an open string (see {@link readinessFailureSchema})
|
|
35
|
+
* so an older reader survives a newer server; this list is the closed set
|
|
36
|
+
* producers may emit, not a parse constraint.
|
|
37
|
+
*/
|
|
38
|
+
export declare const READINESS_ITEMS: readonly ["server_version", "wal_level", "publication", "replication_role", "replica_identity", "table_select", "write_role", "row_security", "database_privileges", "schema_privileges", "table_ownership", "idempotency_ledger", "table_privileges", "logical_marker", "publication_drift"];
|
|
39
|
+
export type ReadinessItem = (typeof READINESS_ITEMS)[number];
|
|
40
|
+
/** Whether a wire `item` is one this build's vocabulary knows — the reader's
|
|
41
|
+
* branch between a labelled rendering and the raw-name fallback. */
|
|
42
|
+
export declare function isReadinessItem(item: string): item is ReadinessItem;
|
|
43
|
+
/** The advisory vocabulary — recommendations that never block a registration. */
|
|
44
|
+
export declare const READINESS_ADVISORY_ITEMS: readonly ["slot_failover"];
|
|
45
|
+
export type ReadinessAdvisoryItem = (typeof READINESS_ADVISORY_ITEMS)[number];
|
|
46
|
+
/**
|
|
47
|
+
* One failing readiness invariant, with its fix in hand. `item` names the
|
|
48
|
+
* invariant — see {@link READINESS_ITEMS} for the set a producer may emit,
|
|
49
|
+
* and why the wire keeps it open here. `fix` carries the exact statement or
|
|
50
|
+
* step that resolves it; `actual` the observed value, when one exists.
|
|
51
|
+
*/
|
|
52
|
+
export declare const readinessFailureSchema: z.ZodObject<{
|
|
53
|
+
item: z.ZodString;
|
|
54
|
+
actual: z.ZodOptional<z.ZodString>;
|
|
55
|
+
fix: z.ZodString;
|
|
56
|
+
}, z.core.$strip>;
|
|
57
|
+
export type ReadinessFailure = z.infer<typeof readinessFailureSchema>;
|
|
58
|
+
/** A recommendation that rides beside the verdict without changing it. */
|
|
59
|
+
export declare const readinessAdvisorySchema: z.ZodObject<{
|
|
60
|
+
item: z.ZodString;
|
|
61
|
+
recommendation: z.ZodString;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
export type ReadinessAdvisory = z.infer<typeof readinessAdvisorySchema>;
|
|
64
|
+
/**
|
|
65
|
+
* One registration, as the routes report it — the credential-free projection
|
|
66
|
+
* of a data source. This is the row of `GET /v1/datasources` and the success
|
|
67
|
+
* body of `POST /v1/datasources`. Everything here is safe to display: the
|
|
68
|
+
* credential is decomposed at registration and never returns.
|
|
69
|
+
*/
|
|
70
|
+
export declare const datasourceSummarySchema: z.ZodObject<{
|
|
71
|
+
object: z.ZodOptional<z.ZodLiteral<"datasource">>;
|
|
72
|
+
id: z.ZodOptional<z.ZodString>;
|
|
73
|
+
connection: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
|
|
74
|
+
direct: "direct";
|
|
75
|
+
endpoint: "endpoint";
|
|
76
|
+
}>>>;
|
|
77
|
+
host: z.ZodOptional<z.ZodString>;
|
|
78
|
+
database: z.ZodOptional<z.ZodString>;
|
|
79
|
+
schema: z.ZodOptional<z.ZodString>;
|
|
80
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
81
|
+
status: z.ZodOptional<z.ZodString>;
|
|
82
|
+
livemode: z.ZodOptional<z.ZodBoolean>;
|
|
83
|
+
}, z.core.$loose>;
|
|
84
|
+
export type DatasourceSummary = z.infer<typeof datasourceSummarySchema>;
|
|
85
|
+
/** `GET /v1/datasources` — every registration on the calling key's plane. */
|
|
86
|
+
export declare const datasourceListResponseSchema: z.ZodObject<{
|
|
87
|
+
object: z.ZodLiteral<"list">;
|
|
88
|
+
data: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
89
|
+
object: z.ZodOptional<z.ZodLiteral<"datasource">>;
|
|
90
|
+
id: z.ZodOptional<z.ZodString>;
|
|
91
|
+
connection: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
|
|
92
|
+
direct: "direct";
|
|
93
|
+
endpoint: "endpoint";
|
|
94
|
+
}>>>;
|
|
95
|
+
host: z.ZodOptional<z.ZodString>;
|
|
96
|
+
database: z.ZodOptional<z.ZodString>;
|
|
97
|
+
schema: z.ZodOptional<z.ZodString>;
|
|
98
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
99
|
+
status: z.ZodOptional<z.ZodString>;
|
|
100
|
+
livemode: z.ZodOptional<z.ZodBoolean>;
|
|
101
|
+
}, z.core.$loose>>>;
|
|
102
|
+
}, z.core.$strip>;
|
|
103
|
+
export type DatasourceListResponse = z.infer<typeof datasourceListResponseSchema>;
|
|
104
|
+
/**
|
|
105
|
+
* `POST /v1/datasources/validate` — replication readiness as judged from
|
|
106
|
+
* Ablo's own network, the network replication actually runs from.
|
|
107
|
+
*
|
|
108
|
+
* `reachable` and `ready` are the verdict and always present; `reason` carries
|
|
109
|
+
* the driver's words when the engine couldn't reach the host either; `failures`
|
|
110
|
+
* is the checklist, each entry with its fix.
|
|
111
|
+
*/
|
|
112
|
+
export declare const datasourceValidationResponseSchema: z.ZodObject<{
|
|
113
|
+
object: z.ZodOptional<z.ZodLiteral<"datasource_validation">>;
|
|
114
|
+
connection: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
|
|
115
|
+
direct: "direct";
|
|
116
|
+
endpoint: "endpoint";
|
|
117
|
+
}>>>;
|
|
118
|
+
reachable: z.ZodBoolean;
|
|
119
|
+
ready: z.ZodBoolean;
|
|
120
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
121
|
+
failures: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
122
|
+
item: z.ZodString;
|
|
123
|
+
actual: z.ZodOptional<z.ZodString>;
|
|
124
|
+
fix: z.ZodString;
|
|
125
|
+
}, z.core.$strip>>>;
|
|
126
|
+
advisories: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
127
|
+
item: z.ZodString;
|
|
128
|
+
recommendation: z.ZodString;
|
|
129
|
+
}, z.core.$strip>>>>;
|
|
130
|
+
}, z.core.$strip>;
|
|
131
|
+
export type DatasourceValidationResponse = z.infer<typeof datasourceValidationResponseSchema>;
|
|
132
|
+
/**
|
|
133
|
+
* `POST /v1/datasources/locate` — which plane already holds a database.
|
|
134
|
+
* A targeted lookup, not an enumeration: the caller must hold the connection
|
|
135
|
+
* string, and the answer is only the holding plane. `held: null` means no
|
|
136
|
+
* other plane holds it and a registration would not conflict.
|
|
137
|
+
*/
|
|
138
|
+
export declare const datasourceLocationResponseSchema: z.ZodObject<{
|
|
139
|
+
object: z.ZodOptional<z.ZodLiteral<"datasource_location">>;
|
|
140
|
+
held: z.ZodNullable<z.ZodObject<{
|
|
141
|
+
project: z.ZodNullable<z.ZodString>;
|
|
142
|
+
branch: z.ZodString;
|
|
143
|
+
}, z.core.$strip>>;
|
|
144
|
+
}, z.core.$strip>;
|
|
145
|
+
export type DatasourceLocationResponse = z.infer<typeof datasourceLocationResponseSchema>;
|
|
146
|
+
/**
|
|
147
|
+
* `DELETE /v1/datasources` — what the deregistration let go of.
|
|
148
|
+
*
|
|
149
|
+
* `replication_slot` is the part a reader must not drop: when Ablo stopped
|
|
150
|
+
* reading but the slot survived (`released: false`), that slot is still on the
|
|
151
|
+
* customer's database holding their write-ahead log, and `remove_with` carries
|
|
152
|
+
* the statement that removes it. Nothing else will ever release it.
|
|
153
|
+
*/
|
|
154
|
+
export declare const datasourceDisconnectedResponseSchema: z.ZodObject<{
|
|
155
|
+
object: z.ZodOptional<z.ZodLiteral<"datasource_disconnected">>;
|
|
156
|
+
organization_id: z.ZodOptional<z.ZodString>;
|
|
157
|
+
environment: z.ZodOptional<z.ZodString>;
|
|
158
|
+
cleared: z.ZodObject<{
|
|
159
|
+
direct: z.ZodBoolean;
|
|
160
|
+
endpoints: z.ZodNumber;
|
|
161
|
+
}, z.core.$strip>;
|
|
162
|
+
replication_slot: z.ZodOptional<z.ZodObject<{
|
|
163
|
+
slot: z.ZodString;
|
|
164
|
+
released: z.ZodBoolean;
|
|
165
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
166
|
+
remove_with: z.ZodOptional<z.ZodString>;
|
|
167
|
+
warning: z.ZodOptional<z.ZodString>;
|
|
168
|
+
}, z.core.$strip>>;
|
|
169
|
+
}, z.core.$strip>;
|
|
170
|
+
export type DatasourceDisconnectedResponse = z.infer<typeof datasourceDisconnectedResponseSchema>;
|
|
171
|
+
//# sourceMappingURL=dataSourceResponses.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataSourceResponses.d.ts","sourceRoot":"","sources":["../../src/wire/dataSourceResponses.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,eAAe,+RAgBlB,CAAC;AACX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAI7D;qEACqE;AACrE,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,IAAI,aAAa,CAEnE;AAED,iFAAiF;AACjF,eAAO,MAAM,wBAAwB,4BAA6B,CAAC;AACnE,MAAM,MAAM,qBAAqB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE9E;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB;;;;iBAIjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,0EAA0E;AAC1E,eAAO,MAAM,uBAAuB;;;iBAGlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;iBAmB1B,CAAC;AACX,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,6EAA6E;AAC7E,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;iBAGvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF;;;;;;;GAOG;AACH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;iBAQ7C,CAAC;AACH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAE9F;;;;;GAKG;AACH,eAAO,MAAM,gCAAgC;;;;;;iBAQ3C,CAAC;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAE1F;;;;;;;GAOG;AACH,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;iBAiB/C,CAAC;AACH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAC"}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What the DATASOURCE routes answer with — the connect surface you reach
|
|
3
|
+
* through `ablo connect` and its verbs: `POST /v1/datasources` (register),
|
|
4
|
+
* `POST /v1/datasources/validate` (readiness from Ablo's own network),
|
|
5
|
+
* `POST /v1/datasources/locate` (which plane holds a database),
|
|
6
|
+
* `GET /v1/datasources` (this plane's registrations), and
|
|
7
|
+
* `DELETE /v1/datasources` (deregister).
|
|
8
|
+
*
|
|
9
|
+
* These are the shapes the server, the CLI, and the dashboard have to agree
|
|
10
|
+
* on. Before this module each consumer spelled them out again — the server
|
|
11
|
+
* inline in `c.json({ … })`, the CLI in three separate hand-rolled decoders —
|
|
12
|
+
* so a renamed field surfaced as `undefined` in a success message, and a
|
|
13
|
+
* warning the server attached (a replication slot still holding the customer's
|
|
14
|
+
* write-ahead log) was silently dropped by a reader that never knew the key
|
|
15
|
+
* existed.
|
|
16
|
+
*
|
|
17
|
+
* Reader stance: fields beyond each response's core verdict are OPTIONAL here
|
|
18
|
+
* even where today's server always sends them. The CLI dials deployments that
|
|
19
|
+
* skew across releases, and a strict parse would refuse a run that succeeded —
|
|
20
|
+
* the worst failure class this surface has. The parse still fails loudly on a
|
|
21
|
+
* body that is not the response at all (a proxy's HTML page, another route's
|
|
22
|
+
* answer), which is the drift this module exists to catch.
|
|
23
|
+
*/
|
|
24
|
+
import { z } from 'zod';
|
|
25
|
+
/**
|
|
26
|
+
* The readiness vocabulary — every invariant the engine's preflights can name
|
|
27
|
+
* in a failure. ONE definition site: the server's probes type their `item`
|
|
28
|
+
* against {@link ReadinessItem}, so an item outside this list cannot compile,
|
|
29
|
+
* and the CLI's plain-language renderer is total over it, so an item added
|
|
30
|
+
* here fails the CLI build until it has a label. That closed loop is what
|
|
31
|
+
* stops the vocabulary drifting apart in three files again — the CLI shipped
|
|
32
|
+
* without a label for `server_version` for exactly that reason.
|
|
33
|
+
*
|
|
34
|
+
* On the WIRE `item` stays an open string (see {@link readinessFailureSchema})
|
|
35
|
+
* so an older reader survives a newer server; this list is the closed set
|
|
36
|
+
* producers may emit, not a parse constraint.
|
|
37
|
+
*/
|
|
38
|
+
export const READINESS_ITEMS = [
|
|
39
|
+
'server_version',
|
|
40
|
+
'wal_level',
|
|
41
|
+
'publication',
|
|
42
|
+
'replication_role',
|
|
43
|
+
'replica_identity',
|
|
44
|
+
'table_select',
|
|
45
|
+
'write_role',
|
|
46
|
+
'row_security',
|
|
47
|
+
'database_privileges',
|
|
48
|
+
'schema_privileges',
|
|
49
|
+
'table_ownership',
|
|
50
|
+
'idempotency_ledger',
|
|
51
|
+
'table_privileges',
|
|
52
|
+
'logical_marker',
|
|
53
|
+
'publication_drift',
|
|
54
|
+
];
|
|
55
|
+
const READINESS_ITEM_SET = new Set(READINESS_ITEMS);
|
|
56
|
+
/** Whether a wire `item` is one this build's vocabulary knows — the reader's
|
|
57
|
+
* branch between a labelled rendering and the raw-name fallback. */
|
|
58
|
+
export function isReadinessItem(item) {
|
|
59
|
+
return READINESS_ITEM_SET.has(item);
|
|
60
|
+
}
|
|
61
|
+
/** The advisory vocabulary — recommendations that never block a registration. */
|
|
62
|
+
export const READINESS_ADVISORY_ITEMS = ['slot_failover'];
|
|
63
|
+
/**
|
|
64
|
+
* One failing readiness invariant, with its fix in hand. `item` names the
|
|
65
|
+
* invariant — see {@link READINESS_ITEMS} for the set a producer may emit,
|
|
66
|
+
* and why the wire keeps it open here. `fix` carries the exact statement or
|
|
67
|
+
* step that resolves it; `actual` the observed value, when one exists.
|
|
68
|
+
*/
|
|
69
|
+
export const readinessFailureSchema = z.object({
|
|
70
|
+
item: z.string(),
|
|
71
|
+
actual: z.string().optional(),
|
|
72
|
+
fix: z.string(),
|
|
73
|
+
});
|
|
74
|
+
/** A recommendation that rides beside the verdict without changing it. */
|
|
75
|
+
export const readinessAdvisorySchema = z.object({
|
|
76
|
+
item: z.string(),
|
|
77
|
+
recommendation: z.string(),
|
|
78
|
+
});
|
|
79
|
+
/**
|
|
80
|
+
* One registration, as the routes report it — the credential-free projection
|
|
81
|
+
* of a data source. This is the row of `GET /v1/datasources` and the success
|
|
82
|
+
* body of `POST /v1/datasources`. Everything here is safe to display: the
|
|
83
|
+
* credential is decomposed at registration and never returns.
|
|
84
|
+
*/
|
|
85
|
+
export const datasourceSummarySchema = z
|
|
86
|
+
.object({
|
|
87
|
+
/** Asserted when present; optional because an older deployment may omit
|
|
88
|
+
* the discriminator, and refusing its answer would refuse a run that
|
|
89
|
+
* succeeded. */
|
|
90
|
+
object: z.literal('datasource').optional(),
|
|
91
|
+
id: z.string().optional(),
|
|
92
|
+
/** How writes reach the database: Ablo's own scoped role, or the signed
|
|
93
|
+
* endpoint fallback. Unknown future kinds degrade to absent rather than
|
|
94
|
+
* failing the parse. */
|
|
95
|
+
connection: z.enum(['direct', 'endpoint']).optional().catch(undefined),
|
|
96
|
+
/** host:port of the connection — safe to display. */
|
|
97
|
+
host: z.string().optional(),
|
|
98
|
+
database: z.string().optional(),
|
|
99
|
+
schema: z.string().optional(),
|
|
100
|
+
display_name: z.string().optional(),
|
|
101
|
+
status: z.string().optional(),
|
|
102
|
+
livemode: z.boolean().optional(),
|
|
103
|
+
})
|
|
104
|
+
.loose();
|
|
105
|
+
/** `GET /v1/datasources` — every registration on the calling key's plane. */
|
|
106
|
+
export const datasourceListResponseSchema = z.object({
|
|
107
|
+
object: z.literal('list'),
|
|
108
|
+
data: z.array(datasourceSummarySchema).readonly(),
|
|
109
|
+
});
|
|
110
|
+
/**
|
|
111
|
+
* `POST /v1/datasources/validate` — replication readiness as judged from
|
|
112
|
+
* Ablo's own network, the network replication actually runs from.
|
|
113
|
+
*
|
|
114
|
+
* `reachable` and `ready` are the verdict and always present; `reason` carries
|
|
115
|
+
* the driver's words when the engine couldn't reach the host either; `failures`
|
|
116
|
+
* is the checklist, each entry with its fix.
|
|
117
|
+
*/
|
|
118
|
+
export const datasourceValidationResponseSchema = z.object({
|
|
119
|
+
object: z.literal('datasource_validation').optional(),
|
|
120
|
+
connection: z.enum(['direct', 'endpoint']).optional().catch(undefined),
|
|
121
|
+
reachable: z.boolean(),
|
|
122
|
+
ready: z.boolean(),
|
|
123
|
+
reason: z.string().optional(),
|
|
124
|
+
failures: z.array(readinessFailureSchema).readonly(),
|
|
125
|
+
advisories: z.array(readinessAdvisorySchema).readonly().optional(),
|
|
126
|
+
});
|
|
127
|
+
/**
|
|
128
|
+
* `POST /v1/datasources/locate` — which plane already holds a database.
|
|
129
|
+
* A targeted lookup, not an enumeration: the caller must hold the connection
|
|
130
|
+
* string, and the answer is only the holding plane. `held: null` means no
|
|
131
|
+
* other plane holds it and a registration would not conflict.
|
|
132
|
+
*/
|
|
133
|
+
export const datasourceLocationResponseSchema = z.object({
|
|
134
|
+
object: z.literal('datasource_location').optional(),
|
|
135
|
+
held: z
|
|
136
|
+
.object({
|
|
137
|
+
project: z.string().nullable(),
|
|
138
|
+
branch: z.string(),
|
|
139
|
+
})
|
|
140
|
+
.nullable(),
|
|
141
|
+
});
|
|
142
|
+
/**
|
|
143
|
+
* `DELETE /v1/datasources` — what the deregistration let go of.
|
|
144
|
+
*
|
|
145
|
+
* `replication_slot` is the part a reader must not drop: when Ablo stopped
|
|
146
|
+
* reading but the slot survived (`released: false`), that slot is still on the
|
|
147
|
+
* customer's database holding their write-ahead log, and `remove_with` carries
|
|
148
|
+
* the statement that removes it. Nothing else will ever release it.
|
|
149
|
+
*/
|
|
150
|
+
export const datasourceDisconnectedResponseSchema = z.object({
|
|
151
|
+
object: z.literal('datasource_disconnected').optional(),
|
|
152
|
+
organization_id: z.string().optional(),
|
|
153
|
+
environment: z.string().optional(),
|
|
154
|
+
cleared: z.object({
|
|
155
|
+
direct: z.boolean(),
|
|
156
|
+
endpoints: z.number(),
|
|
157
|
+
}),
|
|
158
|
+
replication_slot: z
|
|
159
|
+
.object({
|
|
160
|
+
slot: z.string(),
|
|
161
|
+
released: z.boolean(),
|
|
162
|
+
detail: z.string().optional(),
|
|
163
|
+
remove_with: z.string().optional(),
|
|
164
|
+
warning: z.string().optional(),
|
|
165
|
+
})
|
|
166
|
+
.optional(),
|
|
167
|
+
});
|
|
168
|
+
//# sourceMappingURL=dataSourceResponses.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataSourceResponses.js","sourceRoot":"","sources":["../../src/wire/dataSourceResponses.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,gBAAgB;IAChB,WAAW;IACX,aAAa;IACb,kBAAkB;IAClB,kBAAkB;IAClB,cAAc;IACd,YAAY;IACZ,cAAc;IACd,qBAA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
}, z.core.$strip>, z.ZodObject<{
|
|
116
|
-
group: z.
|
|
116
|
+
group: z.ZodTemplateLiteral<`${string}:${string}`>;
|
|
117
117
|
readAt: z.ZodNumber;
|
|
118
118
|
onStale: z.ZodOptional<z.ZodEnum<{
|
|
119
119
|
reject: "reject";
|
|
@@ -125,9 +125,17 @@ export declare const commitPayloadSchema: z.ZodObject<{
|
|
|
125
125
|
id: z.ZodString;
|
|
126
126
|
model: z.ZodString;
|
|
127
127
|
readAt: z.ZodOptional<z.ZodNumber>;
|
|
128
|
+
onStale: z.ZodOptional<z.ZodEnum<{
|
|
129
|
+
reject: "reject";
|
|
130
|
+
notify: "notify";
|
|
131
|
+
}>>;
|
|
128
132
|
}, z.core.$strip>, z.ZodObject<{
|
|
129
|
-
group: z.
|
|
133
|
+
group: z.ZodTemplateLiteral<`${string}:${string}`>;
|
|
130
134
|
readAt: z.ZodOptional<z.ZodNumber>;
|
|
135
|
+
onStale: z.ZodOptional<z.ZodEnum<{
|
|
136
|
+
reject: "reject";
|
|
137
|
+
notify: "notify";
|
|
138
|
+
}>>;
|
|
131
139
|
}, z.core.$strip>]>>>>;
|
|
132
140
|
}, z.core.$strip>;
|
|
133
141
|
/** A client-to-server frame that asks the server to commit a batch atomically. */
|
|
@@ -167,7 +175,7 @@ export declare const commitMessageSchema: z.ZodObject<{
|
|
|
167
175
|
notify: "notify";
|
|
168
176
|
}>>;
|
|
169
177
|
}, z.core.$strip>, z.ZodObject<{
|
|
170
|
-
group: z.
|
|
178
|
+
group: z.ZodTemplateLiteral<`${string}:${string}`>;
|
|
171
179
|
readAt: z.ZodNumber;
|
|
172
180
|
onStale: z.ZodOptional<z.ZodEnum<{
|
|
173
181
|
reject: "reject";
|
|
@@ -179,9 +187,17 @@ export declare const commitMessageSchema: z.ZodObject<{
|
|
|
179
187
|
id: z.ZodString;
|
|
180
188
|
model: z.ZodString;
|
|
181
189
|
readAt: z.ZodOptional<z.ZodNumber>;
|
|
190
|
+
onStale: z.ZodOptional<z.ZodEnum<{
|
|
191
|
+
reject: "reject";
|
|
192
|
+
notify: "notify";
|
|
193
|
+
}>>;
|
|
182
194
|
}, z.core.$strip>, z.ZodObject<{
|
|
183
|
-
group: z.
|
|
195
|
+
group: z.ZodTemplateLiteral<`${string}:${string}`>;
|
|
184
196
|
readAt: z.ZodOptional<z.ZodNumber>;
|
|
197
|
+
onStale: z.ZodOptional<z.ZodEnum<{
|
|
198
|
+
reject: "reject";
|
|
199
|
+
notify: "notify";
|
|
200
|
+
}>>;
|
|
185
201
|
}, z.core.$strip>]>>>>;
|
|
186
202
|
}, z.core.$strip>;
|
|
187
203
|
}, z.core.$strip>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"frames.d.ts","sourceRoot":"","sources":["../../src/wire/frames.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAI7D;;;;;;;;;;GAUG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;iBAEpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,mBAAmB,CAAC;AAClD,mFAAmF;AACnF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;iBAA4B,CAAC;AAE/D;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"frames.d.ts","sourceRoot":"","sources":["../../src/wire/frames.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAI7D;;;;;;;;;;GAUG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;iBAEpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,mBAAmB,CAAC;AAClD,mFAAmF;AACnF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;iBAA4B,CAAC;AAE/D;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAK9B,CAAC;AAEH,kFAAkF;AAClF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAG9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAIhE;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG,yBAAyB,CAAC"}
|
|
@@ -115,14 +115,38 @@ export declare const WS_INBOUND_FRAMES: {
|
|
|
115
115
|
success: z.ZodLiteral<true>;
|
|
116
116
|
lastSyncId: z.ZodNumber;
|
|
117
117
|
ops: z.ZodNumber;
|
|
118
|
-
notifications: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
119
|
-
object: z.
|
|
120
|
-
|
|
121
|
-
|
|
118
|
+
notifications: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
119
|
+
object: z.ZodLiteral<"stale_notification">;
|
|
120
|
+
target: z.ZodReadonly<z.ZodObject<{
|
|
121
|
+
model: z.ZodString;
|
|
122
|
+
id: z.ZodString;
|
|
123
|
+
field: z.ZodOptional<z.ZodString>;
|
|
124
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
125
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
126
|
+
}, z.core.$strip>>;
|
|
122
127
|
readAt: z.ZodNumber;
|
|
123
128
|
observedSyncId: z.ZodNumber;
|
|
124
|
-
|
|
129
|
+
writtenBy: z.ZodObject<{
|
|
130
|
+
kind: z.ZodEnum<{
|
|
131
|
+
user: "user";
|
|
132
|
+
agent: "agent";
|
|
133
|
+
system: "system";
|
|
134
|
+
}>;
|
|
135
|
+
id: z.ZodString;
|
|
136
|
+
}, z.core.$strip>;
|
|
137
|
+
scope: z.ZodLiteral<"row">;
|
|
125
138
|
currentValues: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
139
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
140
|
+
object: z.ZodLiteral<"stale_notification">;
|
|
141
|
+
target: z.ZodReadonly<z.ZodObject<{
|
|
142
|
+
model: z.ZodString;
|
|
143
|
+
id: z.ZodString;
|
|
144
|
+
field: z.ZodOptional<z.ZodString>;
|
|
145
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
146
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
147
|
+
}, z.core.$strip>>;
|
|
148
|
+
readAt: z.ZodNumber;
|
|
149
|
+
observedSyncId: z.ZodNumber;
|
|
126
150
|
writtenBy: z.ZodObject<{
|
|
127
151
|
kind: z.ZodEnum<{
|
|
128
152
|
user: "user";
|
|
@@ -131,8 +155,28 @@ export declare const WS_INBOUND_FRAMES: {
|
|
|
131
155
|
}>;
|
|
132
156
|
id: z.ZodString;
|
|
133
157
|
}, z.core.$strip>;
|
|
134
|
-
|
|
135
|
-
|
|
158
|
+
scope: z.ZodLiteral<"group">;
|
|
159
|
+
group: z.ZodTemplateLiteral<`${string}:${string}`>;
|
|
160
|
+
propagation: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
161
|
+
via: z.ZodEnum<{
|
|
162
|
+
self: "self";
|
|
163
|
+
parent: "parent";
|
|
164
|
+
transitive: "transitive";
|
|
165
|
+
}>;
|
|
166
|
+
through: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
167
|
+
}, z.core.$strip>>>;
|
|
168
|
+
changed: z.ZodOptional<z.ZodObject<{
|
|
169
|
+
count: z.ZodNumber;
|
|
170
|
+
sample: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
171
|
+
model: z.ZodString;
|
|
172
|
+
id: z.ZodString;
|
|
173
|
+
field: z.ZodOptional<z.ZodString>;
|
|
174
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
175
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
176
|
+
}, z.core.$strip>>>>;
|
|
177
|
+
truncated: z.ZodBoolean;
|
|
178
|
+
}, z.core.$strip>>;
|
|
179
|
+
}, z.core.$strip>], "scope">>>;
|
|
136
180
|
missingIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
137
181
|
}, z.core.$strip>, z.ZodObject<{
|
|
138
182
|
status: z.ZodLiteral<"confirmed">;
|
|
@@ -144,14 +188,38 @@ export declare const WS_INBOUND_FRAMES: {
|
|
|
144
188
|
success: z.ZodLiteral<true>;
|
|
145
189
|
lastSyncId: z.ZodNumber;
|
|
146
190
|
ops: z.ZodNumber;
|
|
147
|
-
notifications: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
148
|
-
object: z.
|
|
149
|
-
|
|
150
|
-
|
|
191
|
+
notifications: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
192
|
+
object: z.ZodLiteral<"stale_notification">;
|
|
193
|
+
target: z.ZodReadonly<z.ZodObject<{
|
|
194
|
+
model: z.ZodString;
|
|
195
|
+
id: z.ZodString;
|
|
196
|
+
field: z.ZodOptional<z.ZodString>;
|
|
197
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
198
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
199
|
+
}, z.core.$strip>>;
|
|
151
200
|
readAt: z.ZodNumber;
|
|
152
201
|
observedSyncId: z.ZodNumber;
|
|
153
|
-
|
|
202
|
+
writtenBy: z.ZodObject<{
|
|
203
|
+
kind: z.ZodEnum<{
|
|
204
|
+
user: "user";
|
|
205
|
+
agent: "agent";
|
|
206
|
+
system: "system";
|
|
207
|
+
}>;
|
|
208
|
+
id: z.ZodString;
|
|
209
|
+
}, z.core.$strip>;
|
|
210
|
+
scope: z.ZodLiteral<"row">;
|
|
154
211
|
currentValues: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
212
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
213
|
+
object: z.ZodLiteral<"stale_notification">;
|
|
214
|
+
target: z.ZodReadonly<z.ZodObject<{
|
|
215
|
+
model: z.ZodString;
|
|
216
|
+
id: z.ZodString;
|
|
217
|
+
field: z.ZodOptional<z.ZodString>;
|
|
218
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
219
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
220
|
+
}, z.core.$strip>>;
|
|
221
|
+
readAt: z.ZodNumber;
|
|
222
|
+
observedSyncId: z.ZodNumber;
|
|
155
223
|
writtenBy: z.ZodObject<{
|
|
156
224
|
kind: z.ZodEnum<{
|
|
157
225
|
user: "user";
|
|
@@ -160,8 +228,28 @@ export declare const WS_INBOUND_FRAMES: {
|
|
|
160
228
|
}>;
|
|
161
229
|
id: z.ZodString;
|
|
162
230
|
}, z.core.$strip>;
|
|
163
|
-
|
|
164
|
-
|
|
231
|
+
scope: z.ZodLiteral<"group">;
|
|
232
|
+
group: z.ZodTemplateLiteral<`${string}:${string}`>;
|
|
233
|
+
propagation: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
234
|
+
via: z.ZodEnum<{
|
|
235
|
+
self: "self";
|
|
236
|
+
parent: "parent";
|
|
237
|
+
transitive: "transitive";
|
|
238
|
+
}>;
|
|
239
|
+
through: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
240
|
+
}, z.core.$strip>>>;
|
|
241
|
+
changed: z.ZodOptional<z.ZodObject<{
|
|
242
|
+
count: z.ZodNumber;
|
|
243
|
+
sample: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
244
|
+
model: z.ZodString;
|
|
245
|
+
id: z.ZodString;
|
|
246
|
+
field: z.ZodOptional<z.ZodString>;
|
|
247
|
+
fields: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
248
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
249
|
+
}, z.core.$strip>>>>;
|
|
250
|
+
truncated: z.ZodBoolean;
|
|
251
|
+
}, z.core.$strip>>;
|
|
252
|
+
}, z.core.$strip>], "scope">>>;
|
|
165
253
|
missingIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
166
254
|
}, z.core.$strip>], "status">;
|
|
167
255
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inboundFrames.d.ts","sourceRoot":"","sources":["../../src/wire/inboundFrames.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAgBxB;;;;GAIG;AACH,eAAO,MAAM,uBAAuB;;;kCAKZ,CAAC;AACzB,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,0CAA0C;AAC1C,MAAM,MAAM,oBAAoB;AAC9B,wDAAwD;AACtD;IAAE,QAAQ,CAAC,UAAU,EAAE,QAAQ,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC,OAAO,CAAA;CAAE;AAChE;;;;;;GAMG;GACD;IACE,Q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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+D2B,CAAC;AAE1D,8CAA8C;AAC9C,MAAM,MAAM,gBAAgB,GAAG,MAAM,OAAO,iBAAiB,CAAC;AAE9D;;;;;GAKG;AACH,MAAM,MAAM,mBAAmB,GAAG;KAC/B,CAAC,IAAI,gBAAgB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC,SAAS;QAC7D,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC;KAC7C,GACG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GACV,KAAK;CACV,CAAC;AAEF,sEAAsE;AACtE,MAAM,MAAM,wBAAwB,GAAG;KACpC,CAAC,IAAI,gBAAgB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC,SAAS;QAC7D,QAAQ,CAAC,UAAU,EAAE,QAAQ,CAAC;KAC/B,GACG,CAAC,GACD,KAAK;CACV,CAAC,gBAAgB,CAAC,CAAC;AAEpB,4DAA4D;AAC5D,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,IAAI,gBAAgB,CAE1E;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,gBAAgB,GACrB,IAAI,IAAI,wBAAwB,CAElC"}
|
package/dist/wire/index.d.ts
CHANGED
|
@@ -46,8 +46,10 @@ export { fieldTypeSchema, fieldMetaSchema, relationTypeSchema, relationMetaSchem
|
|
|
46
46
|
export type { FieldType, FieldMeta, RelationType, RelationMeta, } from './modelShape.js';
|
|
47
47
|
export { modelMutationRequestSchema } from './modelMutations.js';
|
|
48
48
|
export type { ModelMutationRequest } from './modelMutations.js';
|
|
49
|
-
export { projectResponseSchema, projectListResponseSchema, provisionedKeySchema, provisionKeyResponseSchema, conflictAxisWireSchema, schemaModelResponseSchema, schemaReadResponseSchema, logOpSchema, LOG_OP_BY_ACTION, logEventSchema, usageBucketSchema, usageReportResponseSchema, controlKeySchema, controlKeyListResponseSchema, keyMintedResponseSchema, keyRevokedResponseSchema, } from './accountResponses.js';
|
|
50
|
-
export type { ProjectResponse, ProjectListResponse, ProvisionedKey, ProvisionKeyResponse, SchemaModelResponse, SchemaReadResponse, LogOp, LogEvent, UsageBucket, UsageReportResponse, ControlKey, ControlKeyListResponse, KeyMintedResponse, KeyRevokedResponse, } from './accountResponses.js';
|
|
49
|
+
export { projectResponseSchema, projectListResponseSchema, provisionedKeySchema, provisionKeyResponseSchema, conflictAxisWireSchema, schemaModelResponseSchema, schemaReadResponseSchema, logOpSchema, LOG_OP_BY_ACTION, logEventSchema, usageBucketSchema, usageReportResponseSchema, meterUsageSchema, billingSummarySchema, usageSummaryResponseSchema, controlKeySchema, controlKeyListResponseSchema, keyMintedResponseSchema, keyRevokedResponseSchema, } from './accountResponses.js';
|
|
50
|
+
export type { ProjectResponse, ProjectListResponse, ProvisionedKey, ProvisionKeyResponse, SchemaModelResponse, SchemaReadResponse, LogOp, LogEvent, UsageBucket, UsageReportResponse, MeterUsage, BillingSummary, UsageSummaryResponse, ControlKey, ControlKeyListResponse, KeyMintedResponse, KeyRevokedResponse, } from './accountResponses.js';
|
|
51
|
+
export { READINESS_ITEMS, READINESS_ADVISORY_ITEMS, isReadinessItem, readinessFailureSchema, readinessAdvisorySchema, datasourceSummarySchema, datasourceListResponseSchema, datasourceValidationResponseSchema, datasourceLocationResponseSchema, datasourceDisconnectedResponseSchema, } from './dataSourceResponses.js';
|
|
52
|
+
export type { ReadinessItem, ReadinessAdvisoryItem, ReadinessFailure, ReadinessAdvisory, DatasourceSummary, DatasourceListResponse, DatasourceValidationResponse, DatasourceLocationResponse, DatasourceDisconnectedResponse, } from './dataSourceResponses.js';
|
|
51
53
|
export { WS_INBOUND_FRAMES, wsInboundEnvelopeSchema, isKnownInboundFrame, isSchemaValidatedFrame, } from './inboundFrames.js';
|
|
52
54
|
export type { InboundFrameContract, InboundFrameType, InboundFramePayload, SchemaValidatedFrameType, WsInboundEnvelope, } from './inboundFrames.js';
|
|
53
55
|
export { ephemeralKeyUserSchema, ephemeralKeyRequestSchema, capabilityRequestSchema, capabilityMintResponseSchema, } from './auth.js';
|
package/dist/wire/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/wire/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EACL,mBAAmB,EACnB,aAAa,EACb,aAAa,EACb,6BAA6B,GAC9B,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACrE,YAAY,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAItD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,YAAY,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,cAAc,GACf,MAAM,gBAAgB,CAAC;AACxB,YAAY,EAAE,SAAS,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC3E,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,iBAAiB,CAAC;AACzB,YAAY,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,qBAAqB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;AACzB,YAAY,EACV,SAAS,EACT,SAAS,EACT,YAAY,EACZ,YAAY,GACb,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AACjE,YAAY,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAIhE,OAAO,EACL,qBAAqB,EACrB,yBAAyB,EACzB,oBAAoB,EACpB,0BAA0B,EAC1B,sBAAsB,EACtB,yBAAyB,EACzB,wBAAwB,EACxB,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,yBAAyB,EACzB,gBAAgB,EAChB,4BAA4B,EAC5B,uBAAuB,EACvB,wBAAwB,GACzB,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EACV,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,oBAAoB,EACpB,mBAAmB,EACnB,kBAAkB,EAClB,KAAK,EACL,QAAQ,EACR,WAAW,EACX,mBAAmB,EACnB,UAAU,EACV,sBAAsB,EACtB,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/wire/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EACL,mBAAmB,EACnB,aAAa,EACb,aAAa,EACb,6BAA6B,GAC9B,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACrE,YAAY,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAItD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,YAAY,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,cAAc,GACf,MAAM,gBAAgB,CAAC;AACxB,YAAY,EAA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