@company-semantics/contracts 0.138.0 → 0.140.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/package.json +1 -1
- package/src/api/generated.ts +3 -27
- package/src/index.ts +3 -0
- package/src/mutations.ts +13 -0
- package/src/tiers.ts +1 -0
package/package.json
CHANGED
package/src/api/generated.ts
CHANGED
|
@@ -5110,15 +5110,7 @@ export interface operations {
|
|
|
5110
5110
|
};
|
|
5111
5111
|
cookie?: never;
|
|
5112
5112
|
};
|
|
5113
|
-
requestBody
|
|
5114
|
-
content: {
|
|
5115
|
-
"application/json": {
|
|
5116
|
-
orderKey: string;
|
|
5117
|
-
prevId: string | null;
|
|
5118
|
-
nextId: string | null;
|
|
5119
|
-
};
|
|
5120
|
-
};
|
|
5121
|
-
};
|
|
5113
|
+
requestBody?: never;
|
|
5122
5114
|
responses: {
|
|
5123
5115
|
/** @description Order key updated */
|
|
5124
5116
|
204: {
|
|
@@ -5430,15 +5422,7 @@ export interface operations {
|
|
|
5430
5422
|
};
|
|
5431
5423
|
cookie?: never;
|
|
5432
5424
|
};
|
|
5433
|
-
requestBody
|
|
5434
|
-
content: {
|
|
5435
|
-
"application/json": {
|
|
5436
|
-
orderKey: string;
|
|
5437
|
-
prevId: string | null;
|
|
5438
|
-
nextId: string | null;
|
|
5439
|
-
};
|
|
5440
|
-
};
|
|
5441
|
-
};
|
|
5425
|
+
requestBody?: never;
|
|
5442
5426
|
responses: {
|
|
5443
5427
|
/** @description Order key updated */
|
|
5444
5428
|
204: {
|
|
@@ -5661,15 +5645,7 @@ export interface operations {
|
|
|
5661
5645
|
};
|
|
5662
5646
|
cookie?: never;
|
|
5663
5647
|
};
|
|
5664
|
-
requestBody
|
|
5665
|
-
content: {
|
|
5666
|
-
"application/json": {
|
|
5667
|
-
orderKey: string;
|
|
5668
|
-
prevId: string | null;
|
|
5669
|
-
nextId: string | null;
|
|
5670
|
-
};
|
|
5671
|
-
};
|
|
5672
|
-
};
|
|
5648
|
+
requestBody?: never;
|
|
5673
5649
|
responses: {
|
|
5674
5650
|
/** @description Order key updated */
|
|
5675
5651
|
204: {
|
package/src/index.ts
CHANGED
|
@@ -613,6 +613,9 @@ export type {
|
|
|
613
613
|
SchedulerEvent,
|
|
614
614
|
} from './requests'
|
|
615
615
|
|
|
616
|
+
// Mutation policy types (lane behavior semantics)
|
|
617
|
+
export type { MutationPolicy } from './mutations'
|
|
618
|
+
|
|
616
619
|
// Observability envelope types (shared metric shape)
|
|
617
620
|
export { REQUEST_ID_HEADER } from './observability'
|
|
618
621
|
export type { Labels, MetricEnvelope, SchedulerMetricName } from './observability'
|
package/src/mutations.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type { MutationBehavior } from './requests';
|
|
2
|
+
|
|
3
|
+
export type MutationPolicy = {
|
|
4
|
+
/**
|
|
5
|
+
* collapse — the newer mutation supersedes older in-flight or queued mutations
|
|
6
|
+
* on the same resource lane. Use for idempotent field sets (rename).
|
|
7
|
+
* queue — FIFO lane per resource. No collapse. Use when each mutation carries
|
|
8
|
+
* meaningful intent that must be preserved (reorder, append, toggle-sequence).
|
|
9
|
+
* parallel — independent mutations on different resourceIds may run concurrently;
|
|
10
|
+
* same-resource requests still serialize to avoid lost writes.
|
|
11
|
+
*/
|
|
12
|
+
behavior: 'collapse' | 'queue' | 'parallel';
|
|
13
|
+
};
|
package/src/tiers.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { Tier } from './requests';
|