@substrat-run/contracts 0.199.0 → 0.201.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.
@@ -18,21 +18,25 @@ import { z } from 'zod';
18
18
  * - **Delivery is at least once, keyed by the provider's id.** A landing operation upserts by
19
19
  * `productId` or `orderId` and may see the same change twice, or an older change after a newer
20
20
  * one was retried. `modifiedAt` is what tells them apart.
21
+ * - **A removal is reported only for an id that was delivered**, and is as safe to repeat as an
22
+ * upsert. It says the record left the store; what that means (archive, hide, keep for the books)
23
+ * is the vertical's to decide. A record that comes back (restored from the trash) arrives as an
24
+ * upsert again.
21
25
  * - **Money is a decimal string with its currency.** Never a float, and never reshaped: a provider
22
26
  * amount that is not a decimal is refused by the connector rather than rounded into one.
23
27
  * - **Every product has at least one variant.** A store platform that sells a product without
24
28
  * variants (a WooCommerce simple product) lands it with one variant whose id is the product's,
25
29
  * so a vertical prices, stocks and sells variants and never branches on the platform.
30
+ * - **Stock is read-only and per variant** (#3223), as the store last reported it with the
31
+ * product: whether the store tracks it, how many, and in stock / out / on backorder. Where a
32
+ * store keeps one count for the whole product (`sharedWithProduct`), every variant reports that
33
+ * count, so a vertical must not add them up. Writing stock back is a later shape.
26
34
  * - **An order line names the variant it sold**, by the same id a product change carries, or
27
35
  * `null` when the line sold nothing the catalogue holds (a custom line, a deleted product).
28
36
  *
29
37
  * What is NOT here, by decision:
30
38
  *
31
- * - **Deletes.** A store's "changed since" listing does not list what was deleted, so a delete
32
- * needs its own signal; `change` is a discriminator so it can be added without a bump.
33
- * - **Stock levels.** Stock moves on every sale, is shared between variants on some platforms and
34
- * fractional on others, and wants its own shape and its own freshness rule.
35
- * - **Fulfilment, refunds and customers as records of their own.** An order carries the customer it
39
+ * * - **Fulfilment, refunds and customers as records of their own.** An order carries the customer it
36
40
  * was placed by, as the order states it; a customer register is a later shape.
37
41
  * - **Write requests** (set stock, mark an order fulfilled) and the shared `CommerceSource` facet:
38
42
  * both wait for a second store platform, so they are extracted from two implementations rather
@@ -59,6 +63,32 @@ export declare const commerceVariantOption: z.ZodObject<{
59
63
  name: z.ZodString;
60
64
  value: z.ZodString;
61
65
  }, z.core.$strip>;
66
+ /** Whether a variant can be sold now, in the store's terms. */
67
+ export declare const commerceStockStatus: z.ZodEnum<{
68
+ in_stock: "in_stock";
69
+ on_backorder: "on_backorder";
70
+ out_of_stock: "out_of_stock";
71
+ }>;
72
+ export type CommerceStockStatus = z.infer<typeof commerceStockStatus>;
73
+ /**
74
+ * A variant's stock as the store reports it (#3223).
75
+ *
76
+ * `manageStock` false means the store does not count it: `quantity` is then `null`, never `0`, and
77
+ * `status` is whatever the merchant set by hand. `status` is `null` when the store's word is none of
78
+ * the three (a plugin's own); `providerStatus` keeps the word either way.
79
+ */
80
+ export declare const commerceStock: z.ZodObject<{
81
+ manageStock: z.ZodBoolean;
82
+ quantity: z.ZodNullable<z.ZodNumber>;
83
+ status: z.ZodNullable<z.ZodEnum<{
84
+ in_stock: "in_stock";
85
+ on_backorder: "on_backorder";
86
+ out_of_stock: "out_of_stock";
87
+ }>>;
88
+ providerStatus: z.ZodString;
89
+ sharedWithProduct: z.ZodBoolean;
90
+ }, z.core.$strip>;
91
+ export type CommerceStock = z.infer<typeof commerceStock>;
62
92
  /** One sellable variant of a product. */
63
93
  export declare const commerceVariant: z.ZodObject<{
64
94
  variantId: z.ZodString;
@@ -70,6 +100,17 @@ export declare const commerceVariant: z.ZodObject<{
70
100
  }, z.core.$strip>>;
71
101
  price: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "MoneyAmount", "out">>;
72
102
  compareAtPrice: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "MoneyAmount", "out">>;
103
+ stock: z.ZodOptional<z.ZodObject<{
104
+ manageStock: z.ZodBoolean;
105
+ quantity: z.ZodNullable<z.ZodNumber>;
106
+ status: z.ZodNullable<z.ZodEnum<{
107
+ in_stock: "in_stock";
108
+ on_backorder: "on_backorder";
109
+ out_of_stock: "out_of_stock";
110
+ }>>;
111
+ providerStatus: z.ZodString;
112
+ sharedWithProduct: z.ZodBoolean;
113
+ }, z.core.$strip>>;
73
114
  }, z.core.$strip>;
74
115
  export type CommerceVariant = z.infer<typeof commerceVariant>;
75
116
  /**
@@ -100,6 +141,17 @@ export declare const commerceProductUpsert: z.ZodObject<{
100
141
  }, z.core.$strip>>;
101
142
  price: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "MoneyAmount", "out">>;
102
143
  compareAtPrice: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "MoneyAmount", "out">>;
144
+ stock: z.ZodOptional<z.ZodObject<{
145
+ manageStock: z.ZodBoolean;
146
+ quantity: z.ZodNullable<z.ZodNumber>;
147
+ status: z.ZodNullable<z.ZodEnum<{
148
+ in_stock: "in_stock";
149
+ on_backorder: "on_backorder";
150
+ out_of_stock: "out_of_stock";
151
+ }>>;
152
+ providerStatus: z.ZodString;
153
+ sharedWithProduct: z.ZodBoolean;
154
+ }, z.core.$strip>>;
103
155
  }, z.core.$strip>>;
104
156
  createdAt: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "Instant", "out">>;
105
157
  modifiedAt: z.core.$ZodBranded<z.ZodString, "Instant", "out">;
@@ -185,13 +237,49 @@ export declare const commerceOrderUpsert: z.ZodObject<{
185
237
  modifiedAt: z.core.$ZodBranded<z.ZodString, "Instant", "out">;
186
238
  }, z.core.$strip>;
187
239
  export type CommerceOrderUpsert = z.infer<typeof commerceOrderUpsert>;
240
+ /**
241
+ * How a record left the store. `trashed`: moved to the store's trash, from which it can still be
242
+ * restored (and then arrives as an upsert again). `deleted`: gone for good. A cancelled or refunded
243
+ * order is neither — that is a status, carried on the order's upsert.
244
+ */
245
+ export declare const commerceRemoval: z.ZodEnum<{
246
+ deleted: "deleted";
247
+ trashed: "trashed";
248
+ }>;
249
+ export type CommerceRemoval = z.infer<typeof commerceRemoval>;
250
+ /** A product that left the store (#3224), by the `productId` its upserts carried. */
251
+ export declare const commerceProductRemoved: z.ZodObject<{
252
+ change: z.ZodLiteral<"removed">;
253
+ connectionId: z.ZodString;
254
+ removal: z.ZodEnum<{
255
+ deleted: "deleted";
256
+ trashed: "trashed";
257
+ }>;
258
+ observedAt: z.core.$ZodBranded<z.ZodString, "Instant", "out">;
259
+ record: z.ZodLiteral<"product">;
260
+ productId: z.ZodString;
261
+ }, z.core.$strip>;
262
+ export type CommerceProductRemoved = z.infer<typeof commerceProductRemoved>;
263
+ /** An order that left the store (#3224), by the `orderId` its upserts carried. */
264
+ export declare const commerceOrderRemoved: z.ZodObject<{
265
+ change: z.ZodLiteral<"removed">;
266
+ connectionId: z.ZodString;
267
+ removal: z.ZodEnum<{
268
+ deleted: "deleted";
269
+ trashed: "trashed";
270
+ }>;
271
+ observedAt: z.core.$ZodBranded<z.ZodString, "Instant", "out">;
272
+ record: z.ZodLiteral<"order">;
273
+ orderId: z.ZodString;
274
+ }, z.core.$strip>;
275
+ export type CommerceOrderRemoved = z.infer<typeof commerceOrderRemoved>;
188
276
  /**
189
277
  * What a sync lands through the binding's operation, one record per invoke — parsed with this
190
278
  * schema on the way out, so a vertical compiled against one version of a connector gets a throw
191
- * rather than a reshaped record from another. `record` says which; `change` is `upsert` for both
192
- * today (see "What is NOT here").
279
+ * rather than a reshaped record from another. `record` says which kind; `change` says whether it is
280
+ * the record as it now stands (`upsert`) or a report that it left the store (`removed`, #3224).
193
281
  */
194
- export declare const commerceChange: z.ZodDiscriminatedUnion<[z.ZodObject<{
282
+ export declare const commerceChange: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
195
283
  record: z.ZodLiteral<"product">;
196
284
  change: z.ZodLiteral<"upsert">;
197
285
  connectionId: z.ZodString;
@@ -212,10 +300,31 @@ export declare const commerceChange: z.ZodDiscriminatedUnion<[z.ZodObject<{
212
300
  }, z.core.$strip>>;
213
301
  price: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "MoneyAmount", "out">>;
214
302
  compareAtPrice: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "MoneyAmount", "out">>;
303
+ stock: z.ZodOptional<z.ZodObject<{
304
+ manageStock: z.ZodBoolean;
305
+ quantity: z.ZodNullable<z.ZodNumber>;
306
+ status: z.ZodNullable<z.ZodEnum<{
307
+ in_stock: "in_stock";
308
+ on_backorder: "on_backorder";
309
+ out_of_stock: "out_of_stock";
310
+ }>>;
311
+ providerStatus: z.ZodString;
312
+ sharedWithProduct: z.ZodBoolean;
313
+ }, z.core.$strip>>;
215
314
  }, z.core.$strip>>;
216
315
  createdAt: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "Instant", "out">>;
217
316
  modifiedAt: z.core.$ZodBranded<z.ZodString, "Instant", "out">;
218
317
  }, z.core.$strip>, z.ZodObject<{
318
+ change: z.ZodLiteral<"removed">;
319
+ connectionId: z.ZodString;
320
+ removal: z.ZodEnum<{
321
+ deleted: "deleted";
322
+ trashed: "trashed";
323
+ }>;
324
+ observedAt: z.core.$ZodBranded<z.ZodString, "Instant", "out">;
325
+ record: z.ZodLiteral<"product">;
326
+ productId: z.ZodString;
327
+ }, z.core.$strip>], "change">, z.ZodDiscriminatedUnion<[z.ZodObject<{
219
328
  record: z.ZodLiteral<"order">;
220
329
  change: z.ZodLiteral<"upsert">;
221
330
  connectionId: z.ZodString;
@@ -272,6 +381,16 @@ export declare const commerceChange: z.ZodDiscriminatedUnion<[z.ZodObject<{
272
381
  customerNote: z.ZodNullable<z.ZodString>;
273
382
  createdAt: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "Instant", "out">>;
274
383
  modifiedAt: z.core.$ZodBranded<z.ZodString, "Instant", "out">;
275
- }, z.core.$strip>], "record">;
384
+ }, z.core.$strip>, z.ZodObject<{
385
+ change: z.ZodLiteral<"removed">;
386
+ connectionId: z.ZodString;
387
+ removal: z.ZodEnum<{
388
+ deleted: "deleted";
389
+ trashed: "trashed";
390
+ }>;
391
+ observedAt: z.core.$ZodBranded<z.ZodString, "Instant", "out">;
392
+ record: z.ZodLiteral<"order">;
393
+ orderId: z.ZodString;
394
+ }, z.core.$strip>], "change">], "record">;
276
395
  export type CommerceChange = z.infer<typeof commerceChange>;
277
396
  //# sourceMappingURL=commerce-source.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"commerce-source.d.ts","sourceRoot":"","sources":["../src/commerce-source.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAEH,gFAAgF;AAChF,eAAO,MAAM,eAAe;;;;;;;;;;iBAY1B,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE9D,8EAA8E;AAC9E,eAAO,MAAM,qBAAqB;;;iBAAoD,CAAC;AAEvF,yCAAyC;AACzC,eAAO,MAAM,eAAe;;;;;;;;;;iBAc1B,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE9D;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;iBAiBhC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE1E,4BAA4B;AAC5B,eAAO,MAAM,iBAAiB;;;;;;;;;;iBAgB5B,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAElE;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA8B9B,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEtE;;;;;GAKG;AACH,eAA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E,4BAA4B;AAC5B,eAAO,MAAM,iBAAiB;;;;;;;;;;iBAgB5B,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAElE;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA8B9B,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEtE;;;;GAIG;AACH,eAAO,MAAM,eAAe;;;EAAiC,CAAC;AAC9D,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAa9D,qFAAqF;AACrF,eAAO,MAAM,sBAAsB;;;;;;;;;;iBAIjC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE5E,kFAAkF;AAClF,eAAO,MAAM,oBAAoB;;;;;;;;;;iBAI/B,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAExE;;;;;GAKG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yCAGzB,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
@@ -20,21 +20,25 @@ import { currencyCode, moneyAmount } from './money.js';
20
20
  * - **Delivery is at least once, keyed by the provider's id.** A landing operation upserts by
21
21
  * `productId` or `orderId` and may see the same change twice, or an older change after a newer
22
22
  * one was retried. `modifiedAt` is what tells them apart.
23
+ * - **A removal is reported only for an id that was delivered**, and is as safe to repeat as an
24
+ * upsert. It says the record left the store; what that means (archive, hide, keep for the books)
25
+ * is the vertical's to decide. A record that comes back (restored from the trash) arrives as an
26
+ * upsert again.
23
27
  * - **Money is a decimal string with its currency.** Never a float, and never reshaped: a provider
24
28
  * amount that is not a decimal is refused by the connector rather than rounded into one.
25
29
  * - **Every product has at least one variant.** A store platform that sells a product without
26
30
  * variants (a WooCommerce simple product) lands it with one variant whose id is the product's,
27
31
  * so a vertical prices, stocks and sells variants and never branches on the platform.
32
+ * - **Stock is read-only and per variant** (#3223), as the store last reported it with the
33
+ * product: whether the store tracks it, how many, and in stock / out / on backorder. Where a
34
+ * store keeps one count for the whole product (`sharedWithProduct`), every variant reports that
35
+ * count, so a vertical must not add them up. Writing stock back is a later shape.
28
36
  * - **An order line names the variant it sold**, by the same id a product change carries, or
29
37
  * `null` when the line sold nothing the catalogue holds (a custom line, a deleted product).
30
38
  *
31
39
  * What is NOT here, by decision:
32
40
  *
33
- * - **Deletes.** A store's "changed since" listing does not list what was deleted, so a delete
34
- * needs its own signal; `change` is a discriminator so it can be added without a bump.
35
- * - **Stock levels.** Stock moves on every sale, is shared between variants on some platforms and
36
- * fractional on others, and wants its own shape and its own freshness rule.
37
- * - **Fulfilment, refunds and customers as records of their own.** An order carries the customer it
41
+ * * - **Fulfilment, refunds and customers as records of their own.** An order carries the customer it
38
42
  * was placed by, as the order states it; a customer register is a later shape.
39
43
  * - **Write requests** (set stock, mark an order fulfilled) and the shared `CommerceSource` facet:
40
44
  * both wait for a second store platform, so they are extracted from two implementations rather
@@ -59,6 +63,26 @@ export const commerceAddress = z.object({
59
63
  });
60
64
  /** One option a variant is picked by, e.g. `{ name: 'Size', value: 'M' }`. */
61
65
  export const commerceVariantOption = z.object({ name: z.string(), value: z.string() });
66
+ /** Whether a variant can be sold now, in the store's terms. */
67
+ export const commerceStockStatus = z.enum(['in_stock', 'out_of_stock', 'on_backorder']);
68
+ /**
69
+ * A variant's stock as the store reports it (#3223).
70
+ *
71
+ * `manageStock` false means the store does not count it: `quantity` is then `null`, never `0`, and
72
+ * `status` is whatever the merchant set by hand. `status` is `null` when the store's word is none of
73
+ * the three (a plugin's own); `providerStatus` keeps the word either way.
74
+ */
75
+ export const commerceStock = z
76
+ .object({
77
+ manageStock: z.boolean(),
78
+ /** How many the store holds; may be negative on backorder, and fractional on some platforms. */
79
+ quantity: z.number().nullable(),
80
+ status: commerceStockStatus.nullable(),
81
+ providerStatus: z.string(),
82
+ /** One count for the whole product, reported on each of its variants: never sum them. */
83
+ sharedWithProduct: z.boolean(),
84
+ })
85
+ .refine((s) => s.manageStock || s.quantity === null, { message: 'a stock the store does not track has no quantity', path: ['quantity'] });
62
86
  /** One sellable variant of a product. */
63
87
  export const commerceVariant = z.object({
64
88
  /** The variant's id at the store. For a product without variants, the product's own id. */
@@ -74,6 +98,11 @@ export const commerceVariant = z.object({
74
98
  * it is greater than `price`, so a vertical can show it struck through without comparing.
75
99
  */
76
100
  compareAtPrice: moneyAmount.nullable(),
101
+ /**
102
+ * The variant's stock (#3223). Optional because it was added after the shape shipped: a source
103
+ * that reads no stock leaves it out, and the WooCommerce connector always sends it.
104
+ */
105
+ stock: commerceStock.optional(),
77
106
  });
78
107
  /**
79
108
  * A product as it now stands at the store, with every variant it sells.
@@ -157,11 +186,42 @@ export const commerceOrderUpsert = z.object({
157
186
  createdAt: instant.nullable(),
158
187
  modifiedAt: instant,
159
188
  });
189
+ /**
190
+ * How a record left the store. `trashed`: moved to the store's trash, from which it can still be
191
+ * restored (and then arrives as an upsert again). `deleted`: gone for good. A cancelled or refunded
192
+ * order is neither — that is a status, carried on the order's upsert.
193
+ */
194
+ export const commerceRemoval = z.enum(['trashed', 'deleted']);
195
+ const removedFields = {
196
+ change: z.literal('removed'),
197
+ connectionId: z.string().min(1),
198
+ removal: commerceRemoval,
199
+ /**
200
+ * When the connector saw it gone — not when it went, which a store does not record for a delete.
201
+ * A later upsert of the same id (`modifiedAt` after this) means it came back.
202
+ */
203
+ observedAt: instant,
204
+ };
205
+ /** A product that left the store (#3224), by the `productId` its upserts carried. */
206
+ export const commerceProductRemoved = z.object({
207
+ record: z.literal('product'),
208
+ productId: z.string().min(1),
209
+ ...removedFields,
210
+ });
211
+ /** An order that left the store (#3224), by the `orderId` its upserts carried. */
212
+ export const commerceOrderRemoved = z.object({
213
+ record: z.literal('order'),
214
+ orderId: z.string().min(1),
215
+ ...removedFields,
216
+ });
160
217
  /**
161
218
  * What a sync lands through the binding's operation, one record per invoke — parsed with this
162
219
  * schema on the way out, so a vertical compiled against one version of a connector gets a throw
163
- * rather than a reshaped record from another. `record` says which; `change` is `upsert` for both
164
- * today (see "What is NOT here").
220
+ * rather than a reshaped record from another. `record` says which kind; `change` says whether it is
221
+ * the record as it now stands (`upsert`) or a report that it left the store (`removed`, #3224).
165
222
  */
166
- export const commerceChange = z.discriminatedUnion('record', [commerceProductUpsert, commerceOrderUpsert]);
223
+ export const commerceChange = z.discriminatedUnion('record', [
224
+ z.discriminatedUnion('change', [commerceProductUpsert, commerceProductRemoved]),
225
+ z.discriminatedUnion('change', [commerceOrderUpsert, commerceOrderRemoved]),
226
+ ]);
167
227
  //# sourceMappingURL=commerce-source.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"commerce-source.js","sourceRoot":"","sources":["../src/commerce-source.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAEH,gFAAgF;AAChF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,OAAO,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AqB,EAAE,sBAAsB,CAAC,CAAC;IAC/E,CAAC,CAAC,kBAAkB,CAAC,QAAQ,EAAE,CAAC,mBAAmB,EAAE,oBAAoB,CAAC,CAAC;CAC5E,CAAC,CAAC"}
@@ -1535,12 +1535,60 @@ export type ConnectionUnbindResult = z.infer<typeof connectionUnbindResult>;
1535
1535
  * `/internal/connections/bindings` (#2732): the scope's own connections bound to that scope, each
1536
1536
  * with what its sweep record says. A tenant's connection bound here is not listed: its sweep record
1537
1537
  * covers every scope it lands in, so it cannot say how this one's binding fares.
1538
+ *
1539
+ * `health: true` (#3241) asks for each binding's {@link connectionBindingHealth} as its connector
1540
+ * keeps it, which IS per binding, so the tenant's connections bound to the scope are listed too,
1541
+ * marked `owner: 'tenant'`. Opt-in because a client parsing the answer strictly, as every
1542
+ * `@substrat-run/vertical-host` before it did, would refuse the fields it adds.
1538
1543
  */
1539
1544
  export declare const connectionBindingsRequest: z.ZodObject<{
1540
1545
  tenantId: z.core.$ZodBranded<z.ZodString, "TenantId", "out">;
1541
1546
  scopeId: z.core.$ZodBranded<z.ZodString, "ScopeId", "out">;
1547
+ health: z.ZodOptional<z.ZodLiteral<true>>;
1542
1548
  }, z.core.$strip>;
1543
1549
  export type ConnectionBindingsRequest = z.infer<typeof connectionBindingsRequest>;
1550
+ /**
1551
+ * One record a binding's connector could not land (#3241): a product, an order. In the connector's
1552
+ * own words, never the provider's answer, the request or the credential.
1553
+ */
1554
+ export declare const connectionBindingIssue: z.ZodObject<{
1555
+ record: z.ZodString;
1556
+ recordId: z.ZodString;
1557
+ message: z.ZodString;
1558
+ firstFailedAt: z.core.$ZodBranded<z.ZodString, "Instant", "out">;
1559
+ failedAt: z.core.$ZodBranded<z.ZodString, "Instant", "out">;
1560
+ attempts: z.ZodNumber;
1561
+ }, z.core.$strict>;
1562
+ export type ConnectionBindingIssue = z.infer<typeof connectionBindingIssue>;
1563
+ /** The most skipped records a binding's health names; `skippedTotal` counts them all. */
1564
+ export declare const CONNECTION_BINDING_SKIPPED_LISTED = 20;
1565
+ /**
1566
+ * How one binding fares, as its connector keeps it (#3241) — what tells a stalled binding from a
1567
+ * caught-up one, which a sweep's `ok` cannot: a pass that moved past a record it could not land
1568
+ * completes. Reported only by a connector that walks a provider's records into the scope
1569
+ * (WooCommerce today); absent for every other binding.
1570
+ */
1571
+ export declare const connectionBindingHealth: z.ZodObject<{
1572
+ caughtUp: z.ZodNullable<z.ZodBoolean>;
1573
+ stalled: z.ZodArray<z.ZodObject<{
1574
+ record: z.ZodString;
1575
+ recordId: z.ZodString;
1576
+ message: z.ZodString;
1577
+ firstFailedAt: z.core.$ZodBranded<z.ZodString, "Instant", "out">;
1578
+ failedAt: z.core.$ZodBranded<z.ZodString, "Instant", "out">;
1579
+ attempts: z.ZodNumber;
1580
+ }, z.core.$strict>>;
1581
+ skipped: z.ZodArray<z.ZodObject<{
1582
+ record: z.ZodString;
1583
+ recordId: z.ZodString;
1584
+ message: z.ZodString;
1585
+ firstFailedAt: z.core.$ZodBranded<z.ZodString, "Instant", "out">;
1586
+ failedAt: z.core.$ZodBranded<z.ZodString, "Instant", "out">;
1587
+ attempts: z.ZodNumber;
1588
+ }, z.core.$strict>>;
1589
+ skippedTotal: z.ZodNumber;
1590
+ }, z.core.$strict>;
1591
+ export type ConnectionBindingHealth = z.infer<typeof connectionBindingHealth>;
1544
1592
  /** One binding as a scope reads it. An allow-list: never a secret, a label or the provider's own answer. */
1545
1593
  export declare const connectionBindingStatus: z.ZodObject<{
1546
1594
  connectionId: z.core.$ZodBranded<z.ZodString, "ConnectionId", "out">;
@@ -1558,6 +1606,30 @@ export declare const connectionBindingStatus: z.ZodObject<{
1558
1606
  at: z.core.$ZodBranded<z.ZodString, "Instant", "out">;
1559
1607
  message: z.ZodString;
1560
1608
  }, z.core.$strict>>;
1609
+ owner: z.ZodOptional<z.ZodEnum<{
1610
+ scope: "scope";
1611
+ tenant: "tenant";
1612
+ }>>;
1613
+ health: z.ZodOptional<z.ZodObject<{
1614
+ caughtUp: z.ZodNullable<z.ZodBoolean>;
1615
+ stalled: z.ZodArray<z.ZodObject<{
1616
+ record: z.ZodString;
1617
+ recordId: z.ZodString;
1618
+ message: z.ZodString;
1619
+ firstFailedAt: z.core.$ZodBranded<z.ZodString, "Instant", "out">;
1620
+ failedAt: z.core.$ZodBranded<z.ZodString, "Instant", "out">;
1621
+ attempts: z.ZodNumber;
1622
+ }, z.core.$strict>>;
1623
+ skipped: z.ZodArray<z.ZodObject<{
1624
+ record: z.ZodString;
1625
+ recordId: z.ZodString;
1626
+ message: z.ZodString;
1627
+ firstFailedAt: z.core.$ZodBranded<z.ZodString, "Instant", "out">;
1628
+ failedAt: z.core.$ZodBranded<z.ZodString, "Instant", "out">;
1629
+ attempts: z.ZodNumber;
1630
+ }, z.core.$strict>>;
1631
+ skippedTotal: z.ZodNumber;
1632
+ }, z.core.$strict>>;
1561
1633
  }, z.core.$strict>;
1562
1634
  export type ConnectionBindingStatus = z.infer<typeof connectionBindingStatus>;
1563
1635
  export declare const connectionBindingsResult: z.ZodObject<{
@@ -1577,6 +1649,30 @@ export declare const connectionBindingsResult: z.ZodObject<{
1577
1649
  at: z.core.$ZodBranded<z.ZodString, "Instant", "out">;
1578
1650
  message: z.ZodString;
1579
1651
  }, z.core.$strict>>;
1652
+ owner: z.ZodOptional<z.ZodEnum<{
1653
+ scope: "scope";
1654
+ tenant: "tenant";
1655
+ }>>;
1656
+ health: z.ZodOptional<z.ZodObject<{
1657
+ caughtUp: z.ZodNullable<z.ZodBoolean>;
1658
+ stalled: z.ZodArray<z.ZodObject<{
1659
+ record: z.ZodString;
1660
+ recordId: z.ZodString;
1661
+ message: z.ZodString;
1662
+ firstFailedAt: z.core.$ZodBranded<z.ZodString, "Instant", "out">;
1663
+ failedAt: z.core.$ZodBranded<z.ZodString, "Instant", "out">;
1664
+ attempts: z.ZodNumber;
1665
+ }, z.core.$strict>>;
1666
+ skipped: z.ZodArray<z.ZodObject<{
1667
+ record: z.ZodString;
1668
+ recordId: z.ZodString;
1669
+ message: z.ZodString;
1670
+ firstFailedAt: z.core.$ZodBranded<z.ZodString, "Instant", "out">;
1671
+ failedAt: z.core.$ZodBranded<z.ZodString, "Instant", "out">;
1672
+ attempts: z.ZodNumber;
1673
+ }, z.core.$strict>>;
1674
+ skippedTotal: z.ZodNumber;
1675
+ }, z.core.$strict>>;
1580
1676
  }, z.core.$strict>>;
1581
1677
  }, z.core.$strict>;
1582
1678
  export type ConnectionBindingsResult = z.infer<typeof connectionBindingsResult>;
@@ -1 +1 @@
1
- {"version":3,"file":"control-plane.d.ts","sourceRoot":"","sources":["../src/control-plane.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA+BxB,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACzB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAmB,KAAK,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACzE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAWlE,0FAA0F;AAC1F,eAAO,MAAM,sBAAsB,YAAI,wBAAwB,EAAE,kBAAkB,EAAE,mBAAmB,CAAU,CAAC;AAInH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8NtB,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,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AAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEhE;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;iBAKxB,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAE1D;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAcnB,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC;AAEhD;;;;GAIG;AACH,eAAO,MAAM,YAAY;;;;;;;;iBAiBvB,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAO3B,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEhE;;;;;;;;;GASG;AACH,6FAA6F;AAC7F,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;mBAG9B,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEtE;;;;;;;;;;GAUG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAmB9B,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
@@ -1456,8 +1456,57 @@ export const connectionUnbindResult = z.object({ connectionId, scopeId, unbound:
1456
1456
  * `/internal/connections/bindings` (#2732): the scope's own connections bound to that scope, each
1457
1457
  * with what its sweep record says. A tenant's connection bound here is not listed: its sweep record
1458
1458
  * covers every scope it lands in, so it cannot say how this one's binding fares.
1459
+ *
1460
+ * `health: true` (#3241) asks for each binding's {@link connectionBindingHealth} as its connector
1461
+ * keeps it, which IS per binding, so the tenant's connections bound to the scope are listed too,
1462
+ * marked `owner: 'tenant'`. Opt-in because a client parsing the answer strictly, as every
1463
+ * `@substrat-run/vertical-host` before it did, would refuse the fields it adds.
1464
+ */
1465
+ export const connectionBindingsRequest = z.object({ tenantId, scopeId, health: z.literal(true).optional() });
1466
+ /**
1467
+ * One record a binding's connector could not land (#3241): a product, an order. In the connector's
1468
+ * own words, never the provider's answer, the request or the credential.
1459
1469
  */
1460
- export const connectionBindingsRequest = z.object({ tenantId, scopeId });
1470
+ export const connectionBindingIssue = z
1471
+ .object({
1472
+ /** The provider's kind of record, singular: `product`, `order`. */
1473
+ record: z.string().min(1).max(40),
1474
+ /** The provider's id for it. */
1475
+ recordId: z.string().min(1).max(100),
1476
+ /** Why it did not land. */
1477
+ message: z.string().max(300),
1478
+ firstFailedAt: instant,
1479
+ failedAt: instant,
1480
+ /** How many passes failed on it. */
1481
+ attempts: z.number().int().positive(),
1482
+ })
1483
+ .strict();
1484
+ /** The most skipped records a binding's health names; `skippedTotal` counts them all. */
1485
+ export const CONNECTION_BINDING_SKIPPED_LISTED = 20;
1486
+ /**
1487
+ * How one binding fares, as its connector keeps it (#3241) — what tells a stalled binding from a
1488
+ * caught-up one, which a sweep's `ok` cannot: a pass that moved past a record it could not land
1489
+ * completes. Reported only by a connector that walks a provider's records into the scope
1490
+ * (WooCommerce today); absent for every other binding.
1491
+ */
1492
+ export const connectionBindingHealth = z
1493
+ .object({
1494
+ /** Whether its last pass reached the end of what changed; `null` before its first pass. */
1495
+ caughtUp: z.boolean().nullable(),
1496
+ /**
1497
+ * The records its walk waits at, tried first on the next pass. Non-empty means stalled: nothing
1498
+ * after such a record lands until it does or is skipped.
1499
+ */
1500
+ stalled: z.array(connectionBindingIssue).max(8),
1501
+ /**
1502
+ * Records the walk moved past without landing, the longest-waiting first. Each is tried again
1503
+ * now and then, and leaves the list when it lands.
1504
+ */
1505
+ skipped: z.array(connectionBindingIssue).max(CONNECTION_BINDING_SKIPPED_LISTED),
1506
+ /** How many records are skipped in all, `skipped` naming at most {@link CONNECTION_BINDING_SKIPPED_LISTED}. */
1507
+ skippedTotal: z.number().int().nonnegative(),
1508
+ })
1509
+ .strict();
1461
1510
  /** One binding as a scope reads it. An allow-list: never a secret, a label or the provider's own answer. */
1462
1511
  export const connectionBindingStatus = z
1463
1512
  .object({
@@ -1480,6 +1529,14 @@ export const connectionBindingStatus = z
1480
1529
  * current one.
1481
1530
  */
1482
1531
  lastError: z.object({ at: instant, message: z.string() }).strict().nullable(),
1532
+ /**
1533
+ * Whose connection it is (`health: true` only): the scope's own, or the tenant's. A tenant's
1534
+ * connection's sweep record covers every scope it lands in, so its `lastSyncedAt` and
1535
+ * `lastError` are `null`; read `health` instead.
1536
+ */
1537
+ owner: z.enum(['scope', 'tenant']).optional(),
1538
+ /** The binding's own health (`health: true` only), when its connector reports one (#3241). */
1539
+ health: connectionBindingHealth.optional(),
1483
1540
  })
1484
1541
  .strict();
1485
1542
  export const connectionBindingsResult = z.object({ bindings: z.array(connectionBindingStatus) }).strict();