@clowder-ai/plugin-contract 0.1.0-beta.10 → 0.1.0-beta.12
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/conformance/fixtures.d.ts +3 -1
- package/dist/conformance/fixtures.d.ts.map +1 -1
- package/dist/conformance/fixtures.js +2 -1
- package/dist/conformance/fixtures.js.map +1 -1
- package/dist/conformance/index.d.ts +2 -1
- package/dist/conformance/index.d.ts.map +1 -1
- package/dist/conformance/index.js +2 -1
- package/dist/conformance/index.js.map +1 -1
- package/dist/conformance/messaging-behavior-fixture.d.ts +12 -0
- package/dist/conformance/messaging-behavior-fixture.d.ts.map +1 -0
- package/dist/conformance/messaging-behavior-fixture.js +30 -0
- package/dist/conformance/messaging-behavior-fixture.js.map +1 -0
- package/dist/generated/contract.generated.d.ts +92 -4
- package/dist/generated/contract.generated.d.ts.map +1 -1
- package/dist/generated/contract.generated.js +6 -0
- package/dist/generated/contract.generated.js.map +1 -1
- package/dist/validation/index.d.ts +1 -0
- package/dist/validation/index.d.ts.map +1 -1
- package/dist/validation/index.js +1 -0
- package/dist/validation/index.js.map +1 -1
- package/dist/validation/messaging-semantic.d.ts.map +1 -1
- package/dist/validation/messaging-semantic.js +49 -0
- package/dist/validation/messaging-semantic.js.map +1 -1
- package/dist/validation/messaging-wire.d.ts +38 -0
- package/dist/validation/messaging-wire.d.ts.map +1 -0
- package/dist/validation/messaging-wire.js +164 -0
- package/dist/validation/messaging-wire.js.map +1 -0
- package/dist/wire/disposition-fixtures.d.ts +8 -0
- package/dist/wire/disposition-fixtures.d.ts.map +1 -1
- package/dist/wire/disposition-fixtures.js +419 -0
- package/dist/wire/disposition-fixtures.js.map +1 -1
- package/dist/wire/index.d.ts +5 -3
- package/dist/wire/index.d.ts.map +1 -1
- package/dist/wire/index.js +9 -1
- package/dist/wire/index.js.map +1 -1
- package/dist/wire/messaging-byte-bounds.d.ts +61 -0
- package/dist/wire/messaging-byte-bounds.d.ts.map +1 -0
- package/dist/wire/messaging-byte-bounds.js +459 -0
- package/dist/wire/messaging-byte-bounds.js.map +1 -0
- package/dist/wire/registry.d.ts +44 -33
- package/dist/wire/registry.d.ts.map +1 -1
- package/dist/wire/registry.js +32 -34
- package/dist/wire/registry.js.map +1 -1
- package/dist/wire/row-shapes.d.ts +64 -59
- package/dist/wire/row-shapes.d.ts.map +1 -1
- package/dist/wire/row-shapes.js +19 -3
- package/dist/wire/row-shapes.js.map +1 -1
- package/dist/wire/signal-byte-bounds.d.ts +3 -3
- package/fixtures/behavior/messaging/adversarial-invariants.json +85 -0
- package/fixtures/messaging/valid/subscription-delivery.json +1 -1
- package/package.json +3 -2
- package/src/schemas/behavior-fixture.schema.json +262 -2
- package/src/schemas/messaging.schema.json +209 -33
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/wire/registry.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/wire/registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAUrE,qCAAqC;AACrC,MAAM,MAAM,eAAe,GAAG,gBAAgB,GAAG,gBAAgB,CAAC;AAElE,wFAAwF;AACxF,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,oBAAoB,CAAC;AAEjE,+DAA+D;AAC/D,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,UAAU,CAAC;AAEtD,6EAA6E;AAC7E,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,MAAM,EAAE,wBAAwB,CAAC;CAC3C;AAMD;;;;GAIG;AACH,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6JM,CAAC;AAMxC,mCAAmC;AACnC,eAAO,MAAM,sBAAsB,EAAE,SAAS,cAAc,EAC2B,CAAC;AAExF,mCAAmC;AACnC,eAAO,MAAM,sBAAsB,EAAE,SAAS,cAAc,EAC2B,CAAC;AAExF,qDAAqD;AACrD,eAAO,MAAM,oBAAoB,EAAE,SAAS,cAAc,EACa,CAAC;AAExE,qDAAqD;AACrD,eAAO,MAAM,gBAAgB,EAAE,SAAS,cAAc,EAC2B,CAAC;AAElF,2DAA2D;AAC3D,eAAO,MAAM,kBAAkB,EAAE,SAAS,cAAc,EAGtB,CAAC;AAEnC,qEAAqE;AACrE,eAAO,MAAM,UAAU,EAAE,SAAS,cAAc,EACc,CAAC;AAE/D,0CAA0C;AAC1C,eAAO,MAAM,iBAAiB,EAAG,EAAW,CAAC;AAM7C;;;GAGG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAEtE;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,IAAI,cAAc,CAErE;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS,CAE3E"}
|
package/dist/wire/registry.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* 13-row production method registry
|
|
2
|
+
* Complete 13-row beta.11 standalone production method registry.
|
|
3
3
|
* Mechanized verbatim from the #1165 frozen shape (rev11).
|
|
4
4
|
*
|
|
5
5
|
* Every row carries machine-readable metadata:
|
|
6
6
|
* - method name, direction, grant requirement
|
|
7
7
|
* - notification flag (only row 10)
|
|
8
|
-
* - ready status (rows
|
|
8
|
+
* - ready status (all rows through the beta.11 M0-C closure)
|
|
9
9
|
* - leaf closure status and which matrix entries cause reservation
|
|
10
10
|
* - settlement key source
|
|
11
11
|
*
|
|
@@ -13,15 +13,10 @@
|
|
|
13
13
|
* CLOSED + generated byte proofs + N/N+1 conformance pass.
|
|
14
14
|
* This module defines nothing new.
|
|
15
15
|
*
|
|
16
|
-
* ## Reserved matrix entry in-flight coordinates
|
|
17
|
-
*
|
|
18
|
-
* M7 — future-write admission half in review at clowder-ai#1185
|
|
19
|
-
* (exact 05ad80c6, gate PASS, Fable APPROVE current HEAD);
|
|
20
|
-
* stored-data attestation/migration half outstanding.
|
|
21
|
-
* Affects rows 6, 8, 9. M7 remains RESERVED.
|
|
22
16
|
*/
|
|
23
17
|
import { HANDSHAKE_ROW_ENCODED_BYTE_BOUNDS } from './handshake-byte-bounds.js';
|
|
24
18
|
import { LIFECYCLE_ROW_ENCODED_BYTE_BOUNDS } from './lifecycle-byte-bounds.js';
|
|
19
|
+
import { MESSAGING_ROW_ENCODED_BYTE_BOUNDS } from './messaging-byte-bounds.js';
|
|
25
20
|
import { EVENTS_PUBLISH_ROW_ENCODED_BYTE_BOUNDS } from './signal-byte-bounds.js';
|
|
26
21
|
// ---------------------------------------------------------------------------
|
|
27
22
|
// Method name enum
|
|
@@ -56,8 +51,8 @@ export const WIRE_METHOD_NAMES = [
|
|
|
56
51
|
* the exact matrix entry IDs that block leaf closure. Settlement key
|
|
57
52
|
* sources follow the canonical per-row specification.
|
|
58
53
|
*
|
|
59
|
-
* Rows 1–2
|
|
60
|
-
*
|
|
54
|
+
* Rows 1–2 closed in beta.8, row 13 in beta.9, rows 10–12 in beta.10,
|
|
55
|
+
* and rows 3–9 in beta.11.
|
|
61
56
|
*/
|
|
62
57
|
export const WIRE_METHOD_REGISTRY = {
|
|
63
58
|
'broker.hello': {
|
|
@@ -90,15 +85,11 @@ export const WIRE_METHOD_REGISTRY = {
|
|
|
90
85
|
direction: 'plugin-to-host',
|
|
91
86
|
grant: 'messaging.send',
|
|
92
87
|
isNotification: false,
|
|
93
|
-
ready:
|
|
94
|
-
leafClosure: '
|
|
95
|
-
reservedEntries: [
|
|
88
|
+
ready: true,
|
|
89
|
+
leafClosure: 'CLOSED',
|
|
90
|
+
reservedEntries: [],
|
|
96
91
|
settlementKeySource: 'input.idempotencyKey',
|
|
97
|
-
|
|
98
|
-
// substitute for closing this row's remaining M1/M2/M5/I1 obligations.
|
|
99
|
-
schemaClosurePrerequisites: [
|
|
100
|
-
{ schemaPath: 'SendReceipt.handle', timing: 'before-or-with-closure' },
|
|
101
|
-
],
|
|
92
|
+
...MESSAGING_ROW_ENCODED_BYTE_BOUNDS['messaging.send'],
|
|
102
93
|
},
|
|
103
94
|
'messaging.appendElements': {
|
|
104
95
|
rowNumber: 4,
|
|
@@ -106,10 +97,11 @@ export const WIRE_METHOD_REGISTRY = {
|
|
|
106
97
|
direction: 'plugin-to-host',
|
|
107
98
|
grant: 'messaging.appendElements',
|
|
108
99
|
isNotification: false,
|
|
109
|
-
ready:
|
|
110
|
-
leafClosure: '
|
|
111
|
-
reservedEntries: [
|
|
100
|
+
ready: true,
|
|
101
|
+
leafClosure: 'CLOSED',
|
|
102
|
+
reservedEntries: [],
|
|
112
103
|
settlementKeySource: '(Host-resolved messageId from input.handle, input.operationId)',
|
|
104
|
+
...MESSAGING_ROW_ENCODED_BYTE_BOUNDS['messaging.appendElements'],
|
|
113
105
|
},
|
|
114
106
|
'messaging.subscribe': {
|
|
115
107
|
rowNumber: 5,
|
|
@@ -117,10 +109,11 @@ export const WIRE_METHOD_REGISTRY = {
|
|
|
117
109
|
direction: 'plugin-to-host',
|
|
118
110
|
grant: 'message.event.subscribe',
|
|
119
111
|
isNotification: false,
|
|
120
|
-
ready:
|
|
112
|
+
ready: true,
|
|
121
113
|
leafClosure: 'CLOSED',
|
|
122
114
|
reservedEntries: [],
|
|
123
115
|
settlementKeySource: 'Host-resolved input.handle identity (K-1 create-or-get authoritative)',
|
|
116
|
+
...MESSAGING_ROW_ENCODED_BYTE_BOUNDS['messaging.subscribe'],
|
|
124
117
|
},
|
|
125
118
|
'messaging.read': {
|
|
126
119
|
rowNumber: 6,
|
|
@@ -128,10 +121,11 @@ export const WIRE_METHOD_REGISTRY = {
|
|
|
128
121
|
direction: 'plugin-to-host',
|
|
129
122
|
grant: 'message.event.subscribe',
|
|
130
123
|
isNotification: false,
|
|
131
|
-
ready:
|
|
132
|
-
leafClosure: '
|
|
133
|
-
reservedEntries: [
|
|
124
|
+
ready: true,
|
|
125
|
+
leafClosure: 'CLOSED',
|
|
126
|
+
reservedEntries: [],
|
|
134
127
|
settlementKeySource: 'none (at-least-once; bounded page assembly)',
|
|
128
|
+
...MESSAGING_ROW_ENCODED_BYTE_BOUNDS['messaging.read'],
|
|
135
129
|
},
|
|
136
130
|
'messaging.ack': {
|
|
137
131
|
rowNumber: 7,
|
|
@@ -139,10 +133,11 @@ export const WIRE_METHOD_REGISTRY = {
|
|
|
139
133
|
direction: 'plugin-to-host',
|
|
140
134
|
grant: 'message.event.subscribe',
|
|
141
135
|
isNotification: false,
|
|
142
|
-
ready:
|
|
136
|
+
ready: true,
|
|
143
137
|
leafClosure: 'CLOSED',
|
|
144
138
|
reservedEntries: [],
|
|
145
139
|
settlementKeySource: '(input.subscriptionId, input.ackToken)',
|
|
140
|
+
...MESSAGING_ROW_ENCODED_BYTE_BOUNDS['messaging.ack'],
|
|
146
141
|
},
|
|
147
142
|
'messaging.snapshot': {
|
|
148
143
|
rowNumber: 8,
|
|
@@ -150,10 +145,11 @@ export const WIRE_METHOD_REGISTRY = {
|
|
|
150
145
|
direction: 'plugin-to-host',
|
|
151
146
|
grant: 'message.event.subscribe',
|
|
152
147
|
isNotification: false,
|
|
153
|
-
ready:
|
|
154
|
-
leafClosure: '
|
|
155
|
-
reservedEntries: [
|
|
148
|
+
ready: true,
|
|
149
|
+
leafClosure: 'CLOSED',
|
|
150
|
+
reservedEntries: [],
|
|
156
151
|
settlementKeySource: 'none for traversal; completion = D1b Host entitlement through messaging.ack',
|
|
152
|
+
...MESSAGING_ROW_ENCODED_BYTE_BOUNDS['messaging.snapshot'],
|
|
157
153
|
},
|
|
158
154
|
'host.messaging.deliver': {
|
|
159
155
|
rowNumber: 9,
|
|
@@ -161,10 +157,11 @@ export const WIRE_METHOD_REGISTRY = {
|
|
|
161
157
|
direction: 'host-to-plugin',
|
|
162
158
|
grant: 'onMessage',
|
|
163
159
|
isNotification: false,
|
|
164
|
-
ready:
|
|
165
|
-
leafClosure: '
|
|
166
|
-
reservedEntries: [
|
|
160
|
+
ready: true,
|
|
161
|
+
leafClosure: 'CLOSED',
|
|
162
|
+
reservedEntries: [],
|
|
167
163
|
settlementKeySource: 'input.deliveryId (Host-side authoritative)',
|
|
164
|
+
...MESSAGING_ROW_ENCODED_BYTE_BOUNDS['host.messaging.deliver'],
|
|
168
165
|
},
|
|
169
166
|
'host.grants.changed': {
|
|
170
167
|
rowNumber: 10,
|
|
@@ -227,8 +224,9 @@ export const NOTIFICATION_METHODS = WIRE_METHOD_NAMES.filter(m => WIRE_METHOD_RE
|
|
|
227
224
|
/** Method names with CLOSED leaf shapes (frozen). */
|
|
228
225
|
export const CLOSED_LEAF_ROWS = WIRE_METHOD_NAMES.filter(m => WIRE_METHOD_REGISTRY[m].leafClosure === 'CLOSED');
|
|
229
226
|
/** Method names with RESERVED leaf shapes (may change). */
|
|
230
|
-
export const RESERVED_LEAF_ROWS = WIRE_METHOD_NAMES.filter(m => WIRE_METHOD_REGISTRY[m]
|
|
231
|
-
|
|
227
|
+
export const RESERVED_LEAF_ROWS = WIRE_METHOD_NAMES.filter(m => WIRE_METHOD_REGISTRY[m]
|
|
228
|
+
.leafClosure === 'RESERVED');
|
|
229
|
+
/** Method names that are legal for wire advertisement in beta.11. */
|
|
232
230
|
export const READY_ROWS = WIRE_METHOD_NAMES.filter(m => WIRE_METHOD_REGISTRY[m].ready);
|
|
233
231
|
/** Total number of production methods. */
|
|
234
232
|
export const WIRE_METHOD_COUNT = 13;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../src/wire/registry.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../src/wire/registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,EAAE,iCAAiC,EAAE,MAAM,4BAA4B,CAAC;AAC/E,OAAO,EAAE,iCAAiC,EAAE,MAAM,4BAA4B,CAAC;AAC/E,OAAO,EAAE,iCAAiC,EAAE,MAAM,4BAA4B,CAAC;AAC/E,OAAO,EAAE,sCAAsC,EAAE,MAAM,yBAAyB,CAAC;AA0DjF,8EAA8E;AAC9E,mBAAmB;AACnB,8EAA8E;AAE9E;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,cAAc;IACd,cAAc;IACd,gBAAgB;IAChB,0BAA0B;IAC1B,qBAAqB;IACrB,gBAAgB;IAChB,eAAe;IACf,oBAAoB;IACpB,wBAAwB;IACxB,qBAAqB;IACrB,qBAAqB;IACrB,sBAAsB;IACtB,gBAAgB;CACR,CAAC;AAaX,8EAA8E;AAC9E,iCAAiC;AACjC,8EAA8E;AAE9E;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,cAAc,EAAE;QACd,SAAS,EAAE,CAAC;QACZ,MAAM,EAAE,cAAc;QACtB,SAAS,EAAE,gBAAgB;QAC3B,KAAK,EAAE,oBAAoB;QAC3B,cAAc,EAAE,KAAK;QACrB,KAAK,EAAE,IAAI;QACX,WAAW,EAAE,QAAQ;QACrB,eAAe,EAAE,EAAE;QACnB,mBAAmB,EAAE,GAAG;QACxB,GAAG,iCAAiC,CAAC,cAAc,CAAC;KACrD;IACD,cAAc,EAAE;QACd,SAAS,EAAE,CAAC;QACZ,MAAM,EAAE,cAAc;QACtB,SAAS,EAAE,gBAAgB;QAC3B,KAAK,EAAE,oBAAoB;QAC3B,cAAc,EAAE,KAAK;QACrB,KAAK,EAAE,IAAI;QACX,WAAW,EA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from #1165 frozen shape.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
5
|
+
* Every row has a closed executable target shape. Rows 3–9 are exposed for
|
|
6
|
+
* the beta.11 M0-C slice; registry readiness still depends on the exact
|
|
7
|
+
* source-admission and byte-proof evidence tracked by that slice.
|
|
8
8
|
*
|
|
9
9
|
* Each closed row's shape is additionalProperties: false.
|
|
10
10
|
* Bounds constants are provided for runtime validation.
|
|
11
11
|
*/
|
|
12
|
+
import type { AppendElementsRequest, AppendReceipt, M0CAckInput, M0CAckResult, M0CDeliverInput, M0CDeliverResult, M0CReadEmptyResult, M0CReadInput, M0CReadNormalResult, M0CReadResult, M0CReadStaleResult, M0CSnapshotFinalResult, M0CSnapshotInput, M0CSnapshotIntermediateResult, M0CSnapshotResult, M0CSubscribeInput, M0CSubscribeResult, MessageDraft, SendReceipt } from '../generated/contract.generated.js';
|
|
12
13
|
import type { GrantSnapshot } from './grants.js';
|
|
13
14
|
import type { BrokerReadyParams, CandidateHello, SessionBinding } from './handshake.js';
|
|
14
15
|
/**
|
|
@@ -18,18 +19,12 @@ import type { BrokerReadyParams, CandidateHello, SessionBinding } from './handsh
|
|
|
18
19
|
* The handle is a reference identifier (1..256 code points, M4 CLOSED).
|
|
19
20
|
* The peer responds with a subscriptionId for subsequent read/ack calls.
|
|
20
21
|
*/
|
|
21
|
-
export
|
|
22
|
-
/** M4 CLOSED — 1..256 code points. */
|
|
23
|
-
readonly handle: string;
|
|
24
|
-
}
|
|
22
|
+
export type SubscribeInput = M0CSubscribeInput;
|
|
25
23
|
/**
|
|
26
24
|
* Row 5 result: the created subscription identifier.
|
|
27
25
|
* Wire shape: `{ subscriptionId: string }` — additionalProperties: false.
|
|
28
26
|
*/
|
|
29
|
-
export
|
|
30
|
-
/** M4 CLOSED — 1..128 code points. */
|
|
31
|
-
readonly subscriptionId: string;
|
|
32
|
-
}
|
|
27
|
+
export type SubscribeResult = M0CSubscribeResult;
|
|
33
28
|
/** Minimum code-point length for subscribe handle. */
|
|
34
29
|
export declare const SUBSCRIBE_HANDLE_MIN_LENGTH: 1;
|
|
35
30
|
/** Maximum code-point length for subscribe handle. */
|
|
@@ -55,17 +50,12 @@ export declare const SUBSCRIBE_SUBSCRIPTION_ID_MAX_ENCODED_BYTES: 770;
|
|
|
55
50
|
*
|
|
56
51
|
* Closed shape per R3 addendum (owner-specified).
|
|
57
52
|
*/
|
|
58
|
-
export
|
|
59
|
-
/** M4 CLOSED — 1..128 code points. */
|
|
60
|
-
readonly subscriptionId: string;
|
|
61
|
-
/** M4 CLOSED — 1..512 code points. */
|
|
62
|
-
readonly ackToken: string;
|
|
63
|
-
}
|
|
53
|
+
export type MessagingAckRequest = M0CAckInput;
|
|
64
54
|
/**
|
|
65
55
|
* Row 7 result: null.
|
|
66
56
|
* Ack is fire-and-confirm — a null result signals success.
|
|
67
57
|
*/
|
|
68
|
-
export type MessagingAckResult =
|
|
58
|
+
export type MessagingAckResult = M0CAckResult;
|
|
69
59
|
/** Minimum code-point length for ack subscriptionId. */
|
|
70
60
|
export declare const ACK_SUBSCRIPTION_ID_MIN_LENGTH: 1;
|
|
71
61
|
/** Maximum code-point length for ack subscriptionId. */
|
|
@@ -168,45 +158,60 @@ export type HelloResult = SessionBinding;
|
|
|
168
158
|
export type ReadyInput = BrokerReadyParams;
|
|
169
159
|
export type ReadyResult = null;
|
|
170
160
|
/**
|
|
171
|
-
* Row 3 — messaging.send
|
|
172
|
-
*
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
*
|
|
184
|
-
*
|
|
185
|
-
*/
|
|
186
|
-
export type
|
|
187
|
-
export type
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
export
|
|
195
|
-
export
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
export type
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
export
|
|
211
|
-
export
|
|
161
|
+
* Row 3 — messaging.send.
|
|
162
|
+
* Plugin → Host message send using the canonical generated domain types.
|
|
163
|
+
*/
|
|
164
|
+
export type SendInput = MessageDraft;
|
|
165
|
+
export type SendResult = SendReceipt;
|
|
166
|
+
/**
|
|
167
|
+
* Row 4 — messaging.appendElements.
|
|
168
|
+
* Plugin → Host append with revision-CAS settlement in K-1.
|
|
169
|
+
*/
|
|
170
|
+
export type AppendInput = AppendElementsRequest;
|
|
171
|
+
export type AppendResult = AppendReceipt;
|
|
172
|
+
/**
|
|
173
|
+
* Row 6 request. No page token is exposed: reads resume from the Host-owned
|
|
174
|
+
* acknowledged cursor.
|
|
175
|
+
*/
|
|
176
|
+
export type SubscriptionReadPageRequest = M0CReadInput;
|
|
177
|
+
export type SubscriptionNormalPageResponse = M0CReadNormalResult;
|
|
178
|
+
export type SubscriptionEmptyPageResponse = M0CReadEmptyResult;
|
|
179
|
+
export type SubscriptionStalePageResponse = M0CReadStaleResult;
|
|
180
|
+
/** Closed three-variant row-6 result. */
|
|
181
|
+
export type BoundedSubscriptionReadPageResponse = M0CReadResult;
|
|
182
|
+
export type ReadInput = SubscriptionReadPageRequest;
|
|
183
|
+
export type ReadResult = BoundedSubscriptionReadPageResponse;
|
|
184
|
+
export declare const READ_SUBSCRIPTION_ID_MIN_LENGTH: 1;
|
|
185
|
+
export declare const READ_SUBSCRIPTION_ID_MAX_LENGTH: 128;
|
|
186
|
+
export declare const READ_LIMIT_MIN: 1;
|
|
187
|
+
export declare const READ_LIMIT_MAX: 32;
|
|
188
|
+
export declare const READ_ACK_TOKEN_MIN_LENGTH: 1;
|
|
189
|
+
export declare const READ_ACK_TOKEN_MAX_LENGTH: 512;
|
|
190
|
+
/**
|
|
191
|
+
* Row 8 request. An absent pageToken starts an immutable Host view.
|
|
192
|
+
*/
|
|
193
|
+
export type SnapshotPageRequest = M0CSnapshotInput;
|
|
194
|
+
export type SnapshotIntermediatePageResponse = M0CSnapshotIntermediateResult;
|
|
195
|
+
export type SnapshotFinalPageResponse = M0CSnapshotFinalResult;
|
|
196
|
+
/** Closed intermediate/final row-8 result. */
|
|
197
|
+
export type SnapshotPageResponse = M0CSnapshotResult;
|
|
198
|
+
export type SnapshotInput = SnapshotPageRequest;
|
|
199
|
+
export type SnapshotResult = SnapshotPageResponse;
|
|
200
|
+
export declare const SNAPSHOT_SUBSCRIPTION_ID_MIN_LENGTH: 1;
|
|
201
|
+
export declare const SNAPSHOT_SUBSCRIPTION_ID_MAX_LENGTH: 128;
|
|
202
|
+
export declare const SNAPSHOT_MAX_ITEMS_MIN: 1;
|
|
203
|
+
export declare const SNAPSHOT_MAX_ITEMS_MAX: 64;
|
|
204
|
+
export declare const SNAPSHOT_PAGE_TOKEN_MIN_LENGTH: 1;
|
|
205
|
+
export declare const SNAPSHOT_PAGE_TOKEN_MAX_LENGTH: 512;
|
|
206
|
+
export declare const SNAPSHOT_ACK_TOKEN_MIN_LENGTH: 1;
|
|
207
|
+
export declare const SNAPSHOT_ACK_TOKEN_MAX_LENGTH: 512;
|
|
208
|
+
/**
|
|
209
|
+
* Row 9 — Host → Plugin callback request and byte-equal acknowledgement.
|
|
210
|
+
*/
|
|
211
|
+
export type HostMessagingDeliverRequest = M0CDeliverInput;
|
|
212
|
+
export type HostMessagingDeliverResult = M0CDeliverResult;
|
|
213
|
+
export type DeliverInput = HostMessagingDeliverRequest;
|
|
214
|
+
export type DeliverResult = HostMessagingDeliverResult;
|
|
215
|
+
export declare const DELIVER_DELIVERY_ID_MIN_LENGTH: 1;
|
|
216
|
+
export declare const DELIVER_DELIVERY_ID_MAX_LENGTH: 128;
|
|
212
217
|
//# sourceMappingURL=row-shapes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"row-shapes.d.ts","sourceRoot":"","sources":["../../src/wire/row-shapes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;
|
|
1
|
+
{"version":3,"file":"row-shapes.d.ts","sourceRoot":"","sources":["../../src/wire/row-shapes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EACV,qBAAqB,EACrB,aAAa,EAEb,WAAW,EACX,YAAY,EACZ,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,YAAY,EACZ,mBAAmB,EACnB,aAAa,EACb,kBAAkB,EAClB,sBAAsB,EACtB,gBAAgB,EAChB,6BAA6B,EAC7B,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,YAAY,EACZ,WAAW,EACZ,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,KAAK,EACV,iBAAiB,EACjB,cAAc,EACd,cAAc,EACf,MAAM,gBAAgB,CAAC;AAMxB;;;;;;GAMG;AACH,MAAM,MAAM,cAAc,GAAG,iBAAiB,CAAC;AAE/C;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,kBAAkB,CAAC;AAEjD,sDAAsD;AACtD,eAAO,MAAM,2BAA2B,EAAG,CAAU,CAAC;AAEtD,sDAAsD;AACtD,eAAO,MAAM,2BAA2B,EAAG,GAAY,CAAC;AAExD;;;;GAIG;AACH,eAAO,MAAM,kCAAkC,EAAG,IAAa,CAAC;AAEhE,oDAAoD;AACpD,eAAO,MAAM,oCAAoC,EAAG,CAAU,CAAC;AAE/D,oDAAoD;AACpD,eAAO,MAAM,oCAAoC,EAAG,GAAY,CAAC;AAEjE;;;GAGG;AACH,eAAO,MAAM,2CAA2C,EAAG,GAAY,CAAC;AAMxE;;;;;GAKG;AACH,MAAM,MAAM,mBAAmB,GAAG,WAAW,CAAC;AAE9C;;;GAGG;AACH,MAAM,MAAM,k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GAAY,CAAC;AAChE,eAAO,MAAM,sBAAsB,EAAG,CAAU,CAAC;AACjD,eAAO,MAAM,sBAAsB,EAAG,EAAW,CAAC;AAClD,eAAO,MAAM,8BAA8B,EAAG,CAAU,CAAC;AACzD,eAAO,MAAM,8BAA8B,EAAG,GAAY,CAAC;AAC3D,eAAO,MAAM,6BAA6B,EAAG,CAAU,CAAC;AACxD,eAAO,MAAM,6BAA6B,EAAG,GAAY,CAAC;AAE1D;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,eAAe,CAAC;AAE1D,MAAM,MAAM,0BAA0B,GAAG,gBAAgB,CAAC;AAE1D,MAAM,MAAM,YAAY,GAAG,2BAA2B,CAAC;AACvD,MAAM,MAAM,aAAa,GAAG,0BAA0B,CAAC;AAEvD,eAAO,MAAM,8BAA8B,EAAG,CAAU,CAAC;AACzD,eAAO,MAAM,8BAA8B,EAAG,GAAY,CAAC"}
|
package/dist/wire/row-shapes.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* Per-row input/result shapes for the 13-row method registry.
|
|
3
3
|
* Mechanized from #1165 frozen shape.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
5
|
+
* Every row has a closed executable target shape. Rows 3–9 are exposed for
|
|
6
|
+
* the beta.11 M0-C slice; registry readiness still depends on the exact
|
|
7
|
+
* source-admission and byte-proof evidence tracked by that slice.
|
|
8
8
|
*
|
|
9
9
|
* Each closed row's shape is additionalProperties: false.
|
|
10
10
|
* Bounds constants are provided for runtime validation.
|
|
@@ -56,4 +56,20 @@ export const PING_NONCE_MAX_LENGTH = 512;
|
|
|
56
56
|
* 6 * 512 + 2 quotes = 3074 bytes.
|
|
57
57
|
*/
|
|
58
58
|
export const PING_NONCE_MAX_ENCODED_BYTES = 3074;
|
|
59
|
+
export const READ_SUBSCRIPTION_ID_MIN_LENGTH = 1;
|
|
60
|
+
export const READ_SUBSCRIPTION_ID_MAX_LENGTH = 128;
|
|
61
|
+
export const READ_LIMIT_MIN = 1;
|
|
62
|
+
export const READ_LIMIT_MAX = 32;
|
|
63
|
+
export const READ_ACK_TOKEN_MIN_LENGTH = 1;
|
|
64
|
+
export const READ_ACK_TOKEN_MAX_LENGTH = 512;
|
|
65
|
+
export const SNAPSHOT_SUBSCRIPTION_ID_MIN_LENGTH = 1;
|
|
66
|
+
export const SNAPSHOT_SUBSCRIPTION_ID_MAX_LENGTH = 128;
|
|
67
|
+
export const SNAPSHOT_MAX_ITEMS_MIN = 1;
|
|
68
|
+
export const SNAPSHOT_MAX_ITEMS_MAX = 64;
|
|
69
|
+
export const SNAPSHOT_PAGE_TOKEN_MIN_LENGTH = 1;
|
|
70
|
+
export const SNAPSHOT_PAGE_TOKEN_MAX_LENGTH = 512;
|
|
71
|
+
export const SNAPSHOT_ACK_TOKEN_MIN_LENGTH = 1;
|
|
72
|
+
export const SNAPSHOT_ACK_TOKEN_MAX_LENGTH = 512;
|
|
73
|
+
export const DELIVER_DELIVERY_ID_MIN_LENGTH = 1;
|
|
74
|
+
export const DELIVER_DELIVERY_ID_MAX_LENGTH = 128;
|
|
59
75
|
//# sourceMappingURL=row-shapes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"row-shapes.js","sourceRoot":"","sources":["../../src/wire/row-shapes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;
|
|
1
|
+
{"version":3,"file":"row-shapes.js","sourceRoot":"","sources":["../../src/wire/row-shapes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAkDH,sDAAsD;AACtD,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAU,CAAC;AAEtD,sDAAsD;AACtD,MAAM,CAAC,MAAM,2BAA2B,GAAG,GAAY,CAAC;AAExD;;;;GAIG;AACH,MAAM,CAAC,MAAM,kCAAkC,GAAG,IAAa,CAAC;AAEhE,oDAAoD;AACpD,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAAU,CAAC;AA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C;AAClD,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAU,CAAC;AACzD,MAAM,CAAC,MAAM,8BAA8B,GAAG,GAAY,CAAC;AAC3D,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAU,CAAC;AACxD,MAAM,CAAC,MAAM,6BAA6B,GAAG,GAAY,CAAC;AAY1D,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAU,CAAC;AACzD,MAAM,CAAC,MAAM,8BAA8B,GAAG,GAAY,CAAC"}
|
|
@@ -66,14 +66,14 @@ export declare function eventsPublishStandardErrorEnvelopes(): ({
|
|
|
66
66
|
arm: string;
|
|
67
67
|
id: null;
|
|
68
68
|
error: {
|
|
69
|
-
code: -
|
|
69
|
+
code: -32602 | -32700 | -32600 | -32601 | -32603;
|
|
70
70
|
message: "Parse error" | "Invalid Request" | "Method not found" | "Invalid params" | "Internal error";
|
|
71
71
|
};
|
|
72
72
|
} | {
|
|
73
73
|
arm: string;
|
|
74
74
|
id: string;
|
|
75
75
|
error: {
|
|
76
|
-
code: -
|
|
76
|
+
code: -32602 | -32700 | -32600 | -32601 | -32603;
|
|
77
77
|
message: "Parse error" | "Invalid Request" | "Method not found" | "Invalid params" | "Internal error";
|
|
78
78
|
};
|
|
79
79
|
})[];
|
|
@@ -81,7 +81,7 @@ export declare function eventsPublishStandardErrorNPlusOneWitnesses(): {
|
|
|
81
81
|
id: string;
|
|
82
82
|
arm: string;
|
|
83
83
|
error: {
|
|
84
|
-
code: -
|
|
84
|
+
code: -32602 | -32700 | -32600 | -32601 | -32603;
|
|
85
85
|
message: "Parse error" | "Invalid Request" | "Method not found" | "Invalid params" | "Internal error";
|
|
86
86
|
};
|
|
87
87
|
}[];
|