oui-spec 0.8.0 → 0.11.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/README.md +29 -1
- package/dist/{chunk-5UUJ3F7C.cjs → chunk-2FFUDX2L.cjs} +5 -3
- package/dist/chunk-2FFUDX2L.cjs.map +1 -0
- package/dist/{chunk-JRXQLNUL.js → chunk-G4HLDVAI.js} +110 -4
- package/dist/chunk-G4HLDVAI.js.map +1 -0
- package/dist/{chunk-DLO56KLG.cjs → chunk-LCH3H5ZH.cjs} +158 -34
- package/dist/chunk-LCH3H5ZH.cjs.map +1 -0
- package/dist/{chunk-63T6SSPP.cjs → chunk-MZ25RAQX.cjs} +117 -3
- package/dist/chunk-MZ25RAQX.cjs.map +1 -0
- package/dist/{chunk-R3SGP2UY.js → chunk-NXDPC3KW.js} +5 -3
- package/dist/chunk-NXDPC3KW.js.map +1 -0
- package/dist/{chunk-3MISAULT.js → chunk-XJ34LTWV.js} +132 -10
- package/dist/chunk-XJ34LTWV.js.map +1 -0
- package/dist/core/index.cjs +15 -7
- package/dist/core/index.d.cts +24 -6
- package/dist/core/index.d.ts +24 -6
- package/dist/core/index.js +3 -3
- package/dist/index.cjs +80 -40
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +3 -3
- package/dist/react/index.d.cts +3 -3
- package/dist/react/index.d.ts +3 -3
- package/dist/spec/index.cjs +66 -34
- package/dist/spec/index.d.cts +61 -3
- package/dist/spec/index.d.ts +61 -3
- package/dist/spec/index.js +1 -1
- package/dist/{surface-runtime-bXSSONF4.d.cts → surface-runtime-C3883XHJ.d.cts} +44 -6
- package/dist/{surface-runtime-BsRS0EV1.d.ts → surface-runtime-Da1FSjNF.d.ts} +44 -6
- package/dist/transport/index.cjs +2 -2
- package/dist/transport/index.d.cts +3 -3
- package/dist/transport/index.d.ts +3 -3
- package/dist/transport/index.js +1 -1
- package/dist/{types-D4czecOw.d.ts → types-DLOa7CWj.d.cts} +9 -0
- package/dist/{types-D4czecOw.d.cts → types-DLOa7CWj.d.ts} +9 -0
- package/dist/{websocket-BcWDNt_V.d.ts → websocket-Bf7xMzs1.d.ts} +1 -1
- package/dist/{websocket-EzQq1mxO.d.cts → websocket-CoSpb5nB.d.cts} +1 -1
- package/package.json +1 -1
- package/spec/OUI-SPEC-v0.1.md +32 -0
- package/dist/chunk-3MISAULT.js.map +0 -1
- package/dist/chunk-5UUJ3F7C.cjs.map +0 -1
- package/dist/chunk-63T6SSPP.cjs.map +0 -1
- package/dist/chunk-DLO56KLG.cjs.map +0 -1
- package/dist/chunk-JRXQLNUL.js.map +0 -1
- package/dist/chunk-R3SGP2UY.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,156 +1,196 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkLCH3H5ZH_cjs = require('./chunk-LCH3H5ZH.cjs');
|
|
4
|
+
var chunkMZ25RAQX_cjs = require('./chunk-MZ25RAQX.cjs');
|
|
5
5
|
var chunkFSGB5JNJ_cjs = require('./chunk-FSGB5JNJ.cjs');
|
|
6
6
|
var chunkROGKEMLL_cjs = require('./chunk-ROGKEMLL.cjs');
|
|
7
|
-
var
|
|
7
|
+
var chunk2FFUDX2L_cjs = require('./chunk-2FFUDX2L.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
+
Object.defineProperty(exports, "ATTACHMENT_LIST_MAX", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkLCH3H5ZH_cjs.ATTACHMENT_LIST_MAX; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "acceptCurrentTurn", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkLCH3H5ZH_cjs.acceptCurrentTurn; }
|
|
18
|
+
});
|
|
11
19
|
Object.defineProperty(exports, "createOUI", {
|
|
12
20
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkLCH3H5ZH_cjs.createOUI; }
|
|
14
22
|
});
|
|
15
23
|
Object.defineProperty(exports, "createSurfaceRuntime", {
|
|
16
24
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkLCH3H5ZH_cjs.createSurfaceRuntime; }
|
|
18
26
|
});
|
|
19
27
|
Object.defineProperty(exports, "defineSurface", {
|
|
20
28
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkLCH3H5ZH_cjs.defineSurface; }
|
|
22
30
|
});
|
|
23
31
|
Object.defineProperty(exports, "ARGS_HASH_PATTERN", {
|
|
24
32
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkMZ25RAQX_cjs.ARGS_HASH_PATTERN; }
|
|
34
|
+
});
|
|
35
|
+
Object.defineProperty(exports, "ATTACHMENT_ID_PATTERN", {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: function () { return chunkMZ25RAQX_cjs.ATTACHMENT_ID_PATTERN; }
|
|
26
38
|
});
|
|
27
39
|
Object.defineProperty(exports, "DEFINITION_HASH_HEX", {
|
|
28
40
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkMZ25RAQX_cjs.DEFINITION_HASH_HEX; }
|
|
30
42
|
});
|
|
31
43
|
Object.defineProperty(exports, "FIT_LIST_STEPS", {
|
|
32
44
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkMZ25RAQX_cjs.FIT_LIST_STEPS; }
|
|
34
46
|
});
|
|
35
47
|
Object.defineProperty(exports, "FIT_TEXT_CHARS", {
|
|
36
48
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkMZ25RAQX_cjs.FIT_TEXT_CHARS; }
|
|
38
50
|
});
|
|
39
51
|
Object.defineProperty(exports, "INDEX_DESCRIPTION_CHARS", {
|
|
40
52
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkMZ25RAQX_cjs.INDEX_DESCRIPTION_CHARS; }
|
|
42
54
|
});
|
|
43
55
|
Object.defineProperty(exports, "INDEX_INPUT_CHARS", {
|
|
44
56
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkMZ25RAQX_cjs.INDEX_INPUT_CHARS; }
|
|
46
58
|
});
|
|
47
59
|
Object.defineProperty(exports, "INDEX_INPUT_PROPERTIES", {
|
|
48
60
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkMZ25RAQX_cjs.INDEX_INPUT_PROPERTIES; }
|
|
62
|
+
});
|
|
63
|
+
Object.defineProperty(exports, "OUI_ATTACHMENT_FORMAT", {
|
|
64
|
+
enumerable: true,
|
|
65
|
+
get: function () { return chunkMZ25RAQX_cjs.OUI_ATTACHMENT_FORMAT; }
|
|
50
66
|
});
|
|
51
67
|
Object.defineProperty(exports, "OUI_DESCRIBE_ACTION", {
|
|
52
68
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkMZ25RAQX_cjs.OUI_DESCRIBE_ACTION; }
|
|
54
70
|
});
|
|
55
71
|
Object.defineProperty(exports, "OUI_EFFECT_ACCESS", {
|
|
56
72
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkMZ25RAQX_cjs.OUI_EFFECT_ACCESS; }
|
|
58
74
|
});
|
|
59
75
|
Object.defineProperty(exports, "OUI_EFFECT_KINDS", {
|
|
60
76
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkMZ25RAQX_cjs.OUI_EFFECT_KINDS; }
|
|
62
78
|
});
|
|
63
79
|
Object.defineProperty(exports, "OUI_PROTOCOL_EVENTS", {
|
|
64
80
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkMZ25RAQX_cjs.OUI_PROTOCOL_EVENTS; }
|
|
66
82
|
});
|
|
67
83
|
Object.defineProperty(exports, "OUI_READ_ACTION", {
|
|
68
84
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkMZ25RAQX_cjs.OUI_READ_ACTION; }
|
|
70
86
|
});
|
|
71
87
|
Object.defineProperty(exports, "OUI_RUNTIME_SURFACE", {
|
|
72
88
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkMZ25RAQX_cjs.OUI_RUNTIME_SURFACE; }
|
|
90
|
+
});
|
|
91
|
+
Object.defineProperty(exports, "acceptsMediaType", {
|
|
92
|
+
enumerable: true,
|
|
93
|
+
get: function () { return chunkMZ25RAQX_cjs.acceptsMediaType; }
|
|
74
94
|
});
|
|
75
95
|
Object.defineProperty(exports, "argsHash", {
|
|
76
96
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkMZ25RAQX_cjs.argsHash; }
|
|
78
98
|
});
|
|
79
99
|
Object.defineProperty(exports, "atPointer", {
|
|
80
100
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkMZ25RAQX_cjs.atPointer; }
|
|
102
|
+
});
|
|
103
|
+
Object.defineProperty(exports, "attachmentIdsIn", {
|
|
104
|
+
enumerable: true,
|
|
105
|
+
get: function () { return chunkMZ25RAQX_cjs.attachmentIdsIn; }
|
|
106
|
+
});
|
|
107
|
+
Object.defineProperty(exports, "attachmentInputOf", {
|
|
108
|
+
enumerable: true,
|
|
109
|
+
get: function () { return chunkMZ25RAQX_cjs.attachmentInputOf; }
|
|
110
|
+
});
|
|
111
|
+
Object.defineProperty(exports, "attachmentInputs", {
|
|
112
|
+
enumerable: true,
|
|
113
|
+
get: function () { return chunkMZ25RAQX_cjs.attachmentInputs; }
|
|
82
114
|
});
|
|
83
115
|
Object.defineProperty(exports, "canonicalJson", {
|
|
84
116
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkMZ25RAQX_cjs.canonicalJson; }
|
|
86
118
|
});
|
|
87
119
|
Object.defineProperty(exports, "constantOf", {
|
|
88
120
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkMZ25RAQX_cjs.constantOf; }
|
|
90
122
|
});
|
|
91
123
|
Object.defineProperty(exports, "definitionHash", {
|
|
92
124
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkMZ25RAQX_cjs.definitionHash; }
|
|
94
126
|
});
|
|
95
127
|
Object.defineProperty(exports, "discriminatorOf", {
|
|
96
128
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkMZ25RAQX_cjs.discriminatorOf; }
|
|
98
130
|
});
|
|
99
131
|
Object.defineProperty(exports, "effectAccess", {
|
|
100
132
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkMZ25RAQX_cjs.effectAccess; }
|
|
102
134
|
});
|
|
103
135
|
Object.defineProperty(exports, "firstSentence", {
|
|
104
136
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkMZ25RAQX_cjs.firstSentence; }
|
|
106
138
|
});
|
|
107
139
|
Object.defineProperty(exports, "fitObservations", {
|
|
108
140
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkMZ25RAQX_cjs.fitObservations; }
|
|
110
142
|
});
|
|
111
143
|
Object.defineProperty(exports, "indexEntry", {
|
|
112
144
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkMZ25RAQX_cjs.indexEntry; }
|
|
146
|
+
});
|
|
147
|
+
Object.defineProperty(exports, "isAttachmentId", {
|
|
148
|
+
enumerable: true,
|
|
149
|
+
get: function () { return chunkMZ25RAQX_cjs.isAttachmentId; }
|
|
114
150
|
});
|
|
115
151
|
Object.defineProperty(exports, "jsonBytes", {
|
|
116
152
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkMZ25RAQX_cjs.jsonBytes; }
|
|
154
|
+
});
|
|
155
|
+
Object.defineProperty(exports, "misplacedAttachmentInputs", {
|
|
156
|
+
enumerable: true,
|
|
157
|
+
get: function () { return chunkMZ25RAQX_cjs.misplacedAttachmentInputs; }
|
|
118
158
|
});
|
|
119
159
|
Object.defineProperty(exports, "pointerStep", {
|
|
120
160
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkMZ25RAQX_cjs.pointerStep; }
|
|
122
162
|
});
|
|
123
163
|
Object.defineProperty(exports, "pointerSteps", {
|
|
124
164
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunkMZ25RAQX_cjs.pointerSteps; }
|
|
126
166
|
});
|
|
127
167
|
Object.defineProperty(exports, "requiresApproval", {
|
|
128
168
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunkMZ25RAQX_cjs.requiresApproval; }
|
|
130
170
|
});
|
|
131
171
|
Object.defineProperty(exports, "sortedJson", {
|
|
132
172
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunkMZ25RAQX_cjs.sortedJson; }
|
|
134
174
|
});
|
|
135
175
|
Object.defineProperty(exports, "summarizeInput", {
|
|
136
176
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunkMZ25RAQX_cjs.summarizeInput; }
|
|
138
178
|
});
|
|
139
179
|
Object.defineProperty(exports, "surfaceIndex", {
|
|
140
180
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
181
|
+
get: function () { return chunkMZ25RAQX_cjs.surfaceIndex; }
|
|
142
182
|
});
|
|
143
183
|
Object.defineProperty(exports, "surfacesHash", {
|
|
144
184
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
185
|
+
get: function () { return chunkMZ25RAQX_cjs.surfacesHash; }
|
|
146
186
|
});
|
|
147
187
|
Object.defineProperty(exports, "utf8Length", {
|
|
148
188
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
189
|
+
get: function () { return chunkMZ25RAQX_cjs.utf8Length; }
|
|
150
190
|
});
|
|
151
191
|
Object.defineProperty(exports, "withoutTitleLeadIn", {
|
|
152
192
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
193
|
+
get: function () { return chunkMZ25RAQX_cjs.withoutTitleLeadIn; }
|
|
154
194
|
});
|
|
155
195
|
Object.defineProperty(exports, "SurfaceRuntimeProvider", {
|
|
156
196
|
enumerable: true,
|
|
@@ -178,7 +218,7 @@ Object.defineProperty(exports, "createDirectTransportPair", {
|
|
|
178
218
|
});
|
|
179
219
|
Object.defineProperty(exports, "createWebSocketTransport", {
|
|
180
220
|
enumerable: true,
|
|
181
|
-
get: function () { return
|
|
221
|
+
get: function () { return chunk2FFUDX2L_cjs.createWebSocketTransport; }
|
|
182
222
|
});
|
|
183
223
|
//# sourceMappingURL=index.cjs.map
|
|
184
224
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { A as ARGS_HASH_PATTERN, J as JSONSchema, O as OUIAction, a as OUIActionApproval, b as OUIActionIndexEntry, c as OUIActionPolling, d as OUIActionRequest, e as OUIActionResult, f as OUIActivation, g as OUIApprovalGrant, h as OUIClientSnapshot, i as OUIEffectKind, j as OUIFit, k as OUIFitCut, l as OUIIndexSnapshot, m as OUIObservation, n as OUIObservationSnapshot, o as OUIObservationUpdate, p as OUIProtocolEvent, q as OUIResultDelivery, r as OUISurface, s as OUISurfaceDeregistration, t as OUISurfaceIndex, u as OUISurfaceRegistration, v as OUISurfaceSnapshot, w as OUI_EFFECT_ACCESS, x as OUI_EFFECT_KINDS, y as OUI_PROTOCOL_EVENTS, z as argsHash, B as canonicalJson, C as effectAccess, D as requiresApproval } from './types-
|
|
2
|
-
export { DEFINITION_HASH_HEX, FIT_LIST_STEPS, FIT_TEXT_CHARS, INDEX_DESCRIPTION_CHARS, INDEX_INPUT_CHARS, INDEX_INPUT_PROPERTIES, OUI_DESCRIBE_ACTION, OUI_READ_ACTION, OUI_RUNTIME_SURFACE, atPointer, constantOf, definitionHash, discriminatorOf, firstSentence, fitObservations, indexEntry, jsonBytes, pointerStep, pointerSteps, sortedJson, summarizeInput, surfaceIndex, surfacesHash, utf8Length, withoutTitleLeadIn } from './spec/index.cjs';
|
|
3
|
-
export { A as
|
|
4
|
-
export { DuplicateIds, OUIConfig, OUIConfigError, OUIInstance, OwnedTransport, ValidateSurfaceIds, createOUI } from './core/index.cjs';
|
|
1
|
+
export { A as ARGS_HASH_PATTERN, J as JSONSchema, O as OUIAction, a as OUIActionApproval, b as OUIActionIndexEntry, c as OUIActionPolling, d as OUIActionRequest, e as OUIActionResult, f as OUIActivation, g as OUIApprovalGrant, h as OUIClientSnapshot, i as OUIEffectKind, j as OUIFit, k as OUIFitCut, l as OUIIndexSnapshot, m as OUIObservation, n as OUIObservationSnapshot, o as OUIObservationUpdate, p as OUIProtocolEvent, q as OUIResultDelivery, r as OUISurface, s as OUISurfaceDeregistration, t as OUISurfaceIndex, u as OUISurfaceRegistration, v as OUISurfaceSnapshot, w as OUI_EFFECT_ACCESS, x as OUI_EFFECT_KINDS, y as OUI_PROTOCOL_EVENTS, z as argsHash, B as canonicalJson, C as effectAccess, D as requiresApproval } from './types-DLOa7CWj.cjs';
|
|
2
|
+
export { ATTACHMENT_ID_PATTERN, DEFINITION_HASH_HEX, FIT_LIST_STEPS, FIT_TEXT_CHARS, INDEX_DESCRIPTION_CHARS, INDEX_INPUT_CHARS, INDEX_INPUT_PROPERTIES, OUIAttachmentInput, OUI_ATTACHMENT_FORMAT, OUI_DESCRIBE_ACTION, OUI_READ_ACTION, OUI_RUNTIME_SURFACE, acceptsMediaType, atPointer, attachmentIdsIn, attachmentInputOf, attachmentInputs, constantOf, definitionHash, discriminatorOf, firstSentence, fitObservations, indexEntry, isAttachmentId, jsonBytes, misplacedAttachmentInputs, pointerStep, pointerSteps, sortedJson, summarizeInput, surfaceIndex, surfacesHash, utf8Length, withoutTitleLeadIn } from './spec/index.cjs';
|
|
3
|
+
export { A as ATTACHMENT_LIST_MAX, a as ActionDefinition, b as ActionHandlerResult, c as ActionPollingConfig, d as AttachmentResolver, e as AttachmentText, D as DefinedSurface, M as MountedSurface, O as OUIBranded, f as ObservationDefinition, S as SettleOptions, g as SurfaceDefinition, h as SurfaceForm, i as SurfaceRuntime, j as SurfaceRuntimeOptions, k as createSurfaceRuntime, l as defineSurface } from './surface-runtime-C3883XHJ.cjs';
|
|
4
|
+
export { DuplicateIds, OUIConfig, OUIConfigError, OUIInstance, OwnedTransport, ValidateSurfaceIds, acceptCurrentTurn, createOUI } from './core/index.cjs';
|
|
5
5
|
export { SurfaceRuntimeProvider, SurfaceRuntimeProviderProps, UseSurfaceOptions, UseSurfaceResult, useObservation, useSurface, useSurfaceHold, useSurfaceRuntime } from './react/index.cjs';
|
|
6
|
-
export { O as OUIAcknowledgment, a as OUIActionHandler, b as OUIObservationHandler, c as OUIResultHandler, d as OUITransport, e as OUITransportConfig, S as SocketLike, f as createWebSocketTransport } from './websocket-
|
|
6
|
+
export { O as OUIAcknowledgment, a as OUIActionHandler, b as OUIObservationHandler, c as OUIResultHandler, d as OUITransport, e as OUITransportConfig, S as SocketLike, f as createWebSocketTransport } from './websocket-CoSpb5nB.cjs';
|
|
7
7
|
export { createDirectTransportPair } from './transport/index.cjs';
|
|
8
8
|
import 'react';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { A as ARGS_HASH_PATTERN, J as JSONSchema, O as OUIAction, a as OUIActionApproval, b as OUIActionIndexEntry, c as OUIActionPolling, d as OUIActionRequest, e as OUIActionResult, f as OUIActivation, g as OUIApprovalGrant, h as OUIClientSnapshot, i as OUIEffectKind, j as OUIFit, k as OUIFitCut, l as OUIIndexSnapshot, m as OUIObservation, n as OUIObservationSnapshot, o as OUIObservationUpdate, p as OUIProtocolEvent, q as OUIResultDelivery, r as OUISurface, s as OUISurfaceDeregistration, t as OUISurfaceIndex, u as OUISurfaceRegistration, v as OUISurfaceSnapshot, w as OUI_EFFECT_ACCESS, x as OUI_EFFECT_KINDS, y as OUI_PROTOCOL_EVENTS, z as argsHash, B as canonicalJson, C as effectAccess, D as requiresApproval } from './types-
|
|
2
|
-
export { DEFINITION_HASH_HEX, FIT_LIST_STEPS, FIT_TEXT_CHARS, INDEX_DESCRIPTION_CHARS, INDEX_INPUT_CHARS, INDEX_INPUT_PROPERTIES, OUI_DESCRIBE_ACTION, OUI_READ_ACTION, OUI_RUNTIME_SURFACE, atPointer, constantOf, definitionHash, discriminatorOf, firstSentence, fitObservations, indexEntry, jsonBytes, pointerStep, pointerSteps, sortedJson, summarizeInput, surfaceIndex, surfacesHash, utf8Length, withoutTitleLeadIn } from './spec/index.js';
|
|
3
|
-
export { A as
|
|
4
|
-
export { DuplicateIds, OUIConfig, OUIConfigError, OUIInstance, OwnedTransport, ValidateSurfaceIds, createOUI } from './core/index.js';
|
|
1
|
+
export { A as ARGS_HASH_PATTERN, J as JSONSchema, O as OUIAction, a as OUIActionApproval, b as OUIActionIndexEntry, c as OUIActionPolling, d as OUIActionRequest, e as OUIActionResult, f as OUIActivation, g as OUIApprovalGrant, h as OUIClientSnapshot, i as OUIEffectKind, j as OUIFit, k as OUIFitCut, l as OUIIndexSnapshot, m as OUIObservation, n as OUIObservationSnapshot, o as OUIObservationUpdate, p as OUIProtocolEvent, q as OUIResultDelivery, r as OUISurface, s as OUISurfaceDeregistration, t as OUISurfaceIndex, u as OUISurfaceRegistration, v as OUISurfaceSnapshot, w as OUI_EFFECT_ACCESS, x as OUI_EFFECT_KINDS, y as OUI_PROTOCOL_EVENTS, z as argsHash, B as canonicalJson, C as effectAccess, D as requiresApproval } from './types-DLOa7CWj.js';
|
|
2
|
+
export { ATTACHMENT_ID_PATTERN, DEFINITION_HASH_HEX, FIT_LIST_STEPS, FIT_TEXT_CHARS, INDEX_DESCRIPTION_CHARS, INDEX_INPUT_CHARS, INDEX_INPUT_PROPERTIES, OUIAttachmentInput, OUI_ATTACHMENT_FORMAT, OUI_DESCRIBE_ACTION, OUI_READ_ACTION, OUI_RUNTIME_SURFACE, acceptsMediaType, atPointer, attachmentIdsIn, attachmentInputOf, attachmentInputs, constantOf, definitionHash, discriminatorOf, firstSentence, fitObservations, indexEntry, isAttachmentId, jsonBytes, misplacedAttachmentInputs, pointerStep, pointerSteps, sortedJson, summarizeInput, surfaceIndex, surfacesHash, utf8Length, withoutTitleLeadIn } from './spec/index.js';
|
|
3
|
+
export { A as ATTACHMENT_LIST_MAX, a as ActionDefinition, b as ActionHandlerResult, c as ActionPollingConfig, d as AttachmentResolver, e as AttachmentText, D as DefinedSurface, M as MountedSurface, O as OUIBranded, f as ObservationDefinition, S as SettleOptions, g as SurfaceDefinition, h as SurfaceForm, i as SurfaceRuntime, j as SurfaceRuntimeOptions, k as createSurfaceRuntime, l as defineSurface } from './surface-runtime-Da1FSjNF.js';
|
|
4
|
+
export { DuplicateIds, OUIConfig, OUIConfigError, OUIInstance, OwnedTransport, ValidateSurfaceIds, acceptCurrentTurn, createOUI } from './core/index.js';
|
|
5
5
|
export { SurfaceRuntimeProvider, SurfaceRuntimeProviderProps, UseSurfaceOptions, UseSurfaceResult, useObservation, useSurface, useSurfaceHold, useSurfaceRuntime } from './react/index.js';
|
|
6
|
-
export { O as OUIAcknowledgment, a as OUIActionHandler, b as OUIObservationHandler, c as OUIResultHandler, d as OUITransport, e as OUITransportConfig, S as SocketLike, f as createWebSocketTransport } from './websocket-
|
|
6
|
+
export { O as OUIAcknowledgment, a as OUIActionHandler, b as OUIObservationHandler, c as OUIResultHandler, d as OUITransport, e as OUITransportConfig, S as SocketLike, f as createWebSocketTransport } from './websocket-Bf7xMzs1.js';
|
|
7
7
|
export { createDirectTransportPair } from './transport/index.js';
|
|
8
8
|
import 'react';
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { createOUI, createSurfaceRuntime, defineSurface } from './chunk-
|
|
2
|
-
export { ARGS_HASH_PATTERN, DEFINITION_HASH_HEX, FIT_LIST_STEPS, FIT_TEXT_CHARS, INDEX_DESCRIPTION_CHARS, INDEX_INPUT_CHARS, INDEX_INPUT_PROPERTIES, OUI_DESCRIBE_ACTION, OUI_EFFECT_ACCESS, OUI_EFFECT_KINDS, OUI_PROTOCOL_EVENTS, OUI_READ_ACTION, OUI_RUNTIME_SURFACE, argsHash, atPointer, canonicalJson, constantOf, definitionHash, discriminatorOf, effectAccess, firstSentence, fitObservations, indexEntry, jsonBytes, pointerStep, pointerSteps, requiresApproval, sortedJson, summarizeInput, surfaceIndex, surfacesHash, utf8Length, withoutTitleLeadIn } from './chunk-
|
|
1
|
+
export { ATTACHMENT_LIST_MAX, acceptCurrentTurn, createOUI, createSurfaceRuntime, defineSurface } from './chunk-XJ34LTWV.js';
|
|
2
|
+
export { ARGS_HASH_PATTERN, ATTACHMENT_ID_PATTERN, DEFINITION_HASH_HEX, FIT_LIST_STEPS, FIT_TEXT_CHARS, INDEX_DESCRIPTION_CHARS, INDEX_INPUT_CHARS, INDEX_INPUT_PROPERTIES, OUI_ATTACHMENT_FORMAT, OUI_DESCRIBE_ACTION, OUI_EFFECT_ACCESS, OUI_EFFECT_KINDS, OUI_PROTOCOL_EVENTS, OUI_READ_ACTION, OUI_RUNTIME_SURFACE, acceptsMediaType, argsHash, atPointer, attachmentIdsIn, attachmentInputOf, attachmentInputs, canonicalJson, constantOf, definitionHash, discriminatorOf, effectAccess, firstSentence, fitObservations, indexEntry, isAttachmentId, jsonBytes, misplacedAttachmentInputs, pointerStep, pointerSteps, requiresApproval, sortedJson, summarizeInput, surfaceIndex, surfacesHash, utf8Length, withoutTitleLeadIn } from './chunk-G4HLDVAI.js';
|
|
3
3
|
export { SurfaceRuntimeProvider, useObservation, useSurface, useSurfaceHold, useSurfaceRuntime } from './chunk-UOTAHGIV.js';
|
|
4
4
|
export { createDirectTransportPair } from './chunk-IIZ6HL2L.js';
|
|
5
|
-
export { createWebSocketTransport } from './chunk-
|
|
5
|
+
export { createWebSocketTransport } from './chunk-NXDPC3KW.js';
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
package/dist/react/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { e as OUIActionResult } from '../types-
|
|
4
|
-
import {
|
|
5
|
-
import '../websocket-
|
|
3
|
+
import { e as OUIActionResult } from '../types-DLOa7CWj.cjs';
|
|
4
|
+
import { i as SurfaceRuntime, h as SurfaceForm, D as DefinedSurface } from '../surface-runtime-C3883XHJ.cjs';
|
|
5
|
+
import '../websocket-CoSpb5nB.cjs';
|
|
6
6
|
|
|
7
7
|
interface SurfaceRuntimeProviderProps {
|
|
8
8
|
/** A runtime in either form (§7.3.8). */
|
package/dist/react/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { e as OUIActionResult } from '../types-
|
|
4
|
-
import {
|
|
5
|
-
import '../websocket-
|
|
3
|
+
import { e as OUIActionResult } from '../types-DLOa7CWj.js';
|
|
4
|
+
import { i as SurfaceRuntime, h as SurfaceForm, D as DefinedSurface } from '../surface-runtime-Da1FSjNF.js';
|
|
5
|
+
import '../websocket-Bf7xMzs1.js';
|
|
6
6
|
|
|
7
7
|
interface SurfaceRuntimeProviderProps {
|
|
8
8
|
/** A runtime in either form (§7.3.8). */
|
package/dist/spec/index.cjs
CHANGED
|
@@ -1,140 +1,172 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkMZ25RAQX_cjs = require('../chunk-MZ25RAQX.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "ARGS_HASH_PATTERN", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkMZ25RAQX_cjs.ARGS_HASH_PATTERN; }
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(exports, "ATTACHMENT_ID_PATTERN", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkMZ25RAQX_cjs.ATTACHMENT_ID_PATTERN; }
|
|
10
14
|
});
|
|
11
15
|
Object.defineProperty(exports, "DEFINITION_HASH_HEX", {
|
|
12
16
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkMZ25RAQX_cjs.DEFINITION_HASH_HEX; }
|
|
14
18
|
});
|
|
15
19
|
Object.defineProperty(exports, "FIT_LIST_STEPS", {
|
|
16
20
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkMZ25RAQX_cjs.FIT_LIST_STEPS; }
|
|
18
22
|
});
|
|
19
23
|
Object.defineProperty(exports, "FIT_TEXT_CHARS", {
|
|
20
24
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkMZ25RAQX_cjs.FIT_TEXT_CHARS; }
|
|
22
26
|
});
|
|
23
27
|
Object.defineProperty(exports, "INDEX_DESCRIPTION_CHARS", {
|
|
24
28
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkMZ25RAQX_cjs.INDEX_DESCRIPTION_CHARS; }
|
|
26
30
|
});
|
|
27
31
|
Object.defineProperty(exports, "INDEX_INPUT_CHARS", {
|
|
28
32
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkMZ25RAQX_cjs.INDEX_INPUT_CHARS; }
|
|
30
34
|
});
|
|
31
35
|
Object.defineProperty(exports, "INDEX_INPUT_PROPERTIES", {
|
|
32
36
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkMZ25RAQX_cjs.INDEX_INPUT_PROPERTIES; }
|
|
38
|
+
});
|
|
39
|
+
Object.defineProperty(exports, "OUI_ATTACHMENT_FORMAT", {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
get: function () { return chunkMZ25RAQX_cjs.OUI_ATTACHMENT_FORMAT; }
|
|
34
42
|
});
|
|
35
43
|
Object.defineProperty(exports, "OUI_DESCRIBE_ACTION", {
|
|
36
44
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkMZ25RAQX_cjs.OUI_DESCRIBE_ACTION; }
|
|
38
46
|
});
|
|
39
47
|
Object.defineProperty(exports, "OUI_EFFECT_ACCESS", {
|
|
40
48
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkMZ25RAQX_cjs.OUI_EFFECT_ACCESS; }
|
|
42
50
|
});
|
|
43
51
|
Object.defineProperty(exports, "OUI_EFFECT_KINDS", {
|
|
44
52
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkMZ25RAQX_cjs.OUI_EFFECT_KINDS; }
|
|
46
54
|
});
|
|
47
55
|
Object.defineProperty(exports, "OUI_PROTOCOL_EVENTS", {
|
|
48
56
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkMZ25RAQX_cjs.OUI_PROTOCOL_EVENTS; }
|
|
50
58
|
});
|
|
51
59
|
Object.defineProperty(exports, "OUI_READ_ACTION", {
|
|
52
60
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkMZ25RAQX_cjs.OUI_READ_ACTION; }
|
|
54
62
|
});
|
|
55
63
|
Object.defineProperty(exports, "OUI_RUNTIME_SURFACE", {
|
|
56
64
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkMZ25RAQX_cjs.OUI_RUNTIME_SURFACE; }
|
|
66
|
+
});
|
|
67
|
+
Object.defineProperty(exports, "acceptsMediaType", {
|
|
68
|
+
enumerable: true,
|
|
69
|
+
get: function () { return chunkMZ25RAQX_cjs.acceptsMediaType; }
|
|
58
70
|
});
|
|
59
71
|
Object.defineProperty(exports, "argsHash", {
|
|
60
72
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkMZ25RAQX_cjs.argsHash; }
|
|
62
74
|
});
|
|
63
75
|
Object.defineProperty(exports, "atPointer", {
|
|
64
76
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkMZ25RAQX_cjs.atPointer; }
|
|
78
|
+
});
|
|
79
|
+
Object.defineProperty(exports, "attachmentIdsIn", {
|
|
80
|
+
enumerable: true,
|
|
81
|
+
get: function () { return chunkMZ25RAQX_cjs.attachmentIdsIn; }
|
|
82
|
+
});
|
|
83
|
+
Object.defineProperty(exports, "attachmentInputOf", {
|
|
84
|
+
enumerable: true,
|
|
85
|
+
get: function () { return chunkMZ25RAQX_cjs.attachmentInputOf; }
|
|
86
|
+
});
|
|
87
|
+
Object.defineProperty(exports, "attachmentInputs", {
|
|
88
|
+
enumerable: true,
|
|
89
|
+
get: function () { return chunkMZ25RAQX_cjs.attachmentInputs; }
|
|
66
90
|
});
|
|
67
91
|
Object.defineProperty(exports, "canonicalJson", {
|
|
68
92
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkMZ25RAQX_cjs.canonicalJson; }
|
|
70
94
|
});
|
|
71
95
|
Object.defineProperty(exports, "constantOf", {
|
|
72
96
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkMZ25RAQX_cjs.constantOf; }
|
|
74
98
|
});
|
|
75
99
|
Object.defineProperty(exports, "definitionHash", {
|
|
76
100
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkMZ25RAQX_cjs.definitionHash; }
|
|
78
102
|
});
|
|
79
103
|
Object.defineProperty(exports, "discriminatorOf", {
|
|
80
104
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkMZ25RAQX_cjs.discriminatorOf; }
|
|
82
106
|
});
|
|
83
107
|
Object.defineProperty(exports, "effectAccess", {
|
|
84
108
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkMZ25RAQX_cjs.effectAccess; }
|
|
86
110
|
});
|
|
87
111
|
Object.defineProperty(exports, "firstSentence", {
|
|
88
112
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkMZ25RAQX_cjs.firstSentence; }
|
|
90
114
|
});
|
|
91
115
|
Object.defineProperty(exports, "fitObservations", {
|
|
92
116
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkMZ25RAQX_cjs.fitObservations; }
|
|
94
118
|
});
|
|
95
119
|
Object.defineProperty(exports, "indexEntry", {
|
|
96
120
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkMZ25RAQX_cjs.indexEntry; }
|
|
122
|
+
});
|
|
123
|
+
Object.defineProperty(exports, "isAttachmentId", {
|
|
124
|
+
enumerable: true,
|
|
125
|
+
get: function () { return chunkMZ25RAQX_cjs.isAttachmentId; }
|
|
98
126
|
});
|
|
99
127
|
Object.defineProperty(exports, "jsonBytes", {
|
|
100
128
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkMZ25RAQX_cjs.jsonBytes; }
|
|
130
|
+
});
|
|
131
|
+
Object.defineProperty(exports, "misplacedAttachmentInputs", {
|
|
132
|
+
enumerable: true,
|
|
133
|
+
get: function () { return chunkMZ25RAQX_cjs.misplacedAttachmentInputs; }
|
|
102
134
|
});
|
|
103
135
|
Object.defineProperty(exports, "pointerStep", {
|
|
104
136
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkMZ25RAQX_cjs.pointerStep; }
|
|
106
138
|
});
|
|
107
139
|
Object.defineProperty(exports, "pointerSteps", {
|
|
108
140
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkMZ25RAQX_cjs.pointerSteps; }
|
|
110
142
|
});
|
|
111
143
|
Object.defineProperty(exports, "requiresApproval", {
|
|
112
144
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkMZ25RAQX_cjs.requiresApproval; }
|
|
114
146
|
});
|
|
115
147
|
Object.defineProperty(exports, "sortedJson", {
|
|
116
148
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkMZ25RAQX_cjs.sortedJson; }
|
|
118
150
|
});
|
|
119
151
|
Object.defineProperty(exports, "summarizeInput", {
|
|
120
152
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkMZ25RAQX_cjs.summarizeInput; }
|
|
122
154
|
});
|
|
123
155
|
Object.defineProperty(exports, "surfaceIndex", {
|
|
124
156
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkMZ25RAQX_cjs.surfaceIndex; }
|
|
126
158
|
});
|
|
127
159
|
Object.defineProperty(exports, "surfacesHash", {
|
|
128
160
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkMZ25RAQX_cjs.surfacesHash; }
|
|
130
162
|
});
|
|
131
163
|
Object.defineProperty(exports, "utf8Length", {
|
|
132
164
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunkMZ25RAQX_cjs.utf8Length; }
|
|
134
166
|
});
|
|
135
167
|
Object.defineProperty(exports, "withoutTitleLeadIn", {
|
|
136
168
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunkMZ25RAQX_cjs.withoutTitleLeadIn; }
|
|
138
170
|
});
|
|
139
171
|
//# sourceMappingURL=index.cjs.map
|
|
140
172
|
//# sourceMappingURL=index.cjs.map
|
package/dist/spec/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as OUISurface, t as OUISurfaceIndex, J as JSONSchema, O as OUIAction, b as OUIActionIndexEntry, n as OUIObservationSnapshot, k as OUIFitCut } from '../types-
|
|
2
|
-
export { A as ARGS_HASH_PATTERN, a as OUIActionApproval, c as OUIActionPolling, d as OUIActionRequest, e as OUIActionResult, f as OUIActivation, g as OUIApprovalGrant, h as OUIClientSnapshot, i as OUIEffectKind, j as OUIFit, l as OUIIndexSnapshot, m as OUIObservation, o as OUIObservationUpdate, p as OUIProtocolEvent, q as OUIResultDelivery, s as OUISurfaceDeregistration, u as OUISurfaceRegistration, v as OUISurfaceSnapshot, w as OUI_EFFECT_ACCESS, x as OUI_EFFECT_KINDS, y as OUI_PROTOCOL_EVENTS, z as argsHash, B as canonicalJson, C as effectAccess, D as requiresApproval } from '../types-
|
|
1
|
+
import { r as OUISurface, t as OUISurfaceIndex, J as JSONSchema, O as OUIAction, b as OUIActionIndexEntry, n as OUIObservationSnapshot, k as OUIFitCut } from '../types-DLOa7CWj.cjs';
|
|
2
|
+
export { A as ARGS_HASH_PATTERN, a as OUIActionApproval, c as OUIActionPolling, d as OUIActionRequest, e as OUIActionResult, f as OUIActivation, g as OUIApprovalGrant, h as OUIClientSnapshot, i as OUIEffectKind, j as OUIFit, l as OUIIndexSnapshot, m as OUIObservation, o as OUIObservationUpdate, p as OUIProtocolEvent, q as OUIResultDelivery, s as OUISurfaceDeregistration, u as OUISurfaceRegistration, v as OUISurfaceSnapshot, w as OUI_EFFECT_ACCESS, x as OUI_EFFECT_KINDS, y as OUI_PROTOCOL_EVENTS, z as argsHash, B as canonicalJson, C as effectAccess, D as requiresApproval } from '../types-DLOa7CWj.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* The identity of a set of surfaces, for an answer that need not repeat them
|
|
@@ -121,4 +121,62 @@ declare function fitObservations(observations: OUIObservationSnapshot, budget: n
|
|
|
121
121
|
cuts: OUIFitCut[];
|
|
122
122
|
};
|
|
123
123
|
|
|
124
|
-
|
|
124
|
+
/**
|
|
125
|
+
* An action input that takes a file the person attached (OUI spec §7.3.11,
|
|
126
|
+
* ADR-0252 §2.13).
|
|
127
|
+
*
|
|
128
|
+
* The agent passes an attachment's id. The client resolves it, through its
|
|
129
|
+
* host's file area, to what the input declares it takes, before the action's
|
|
130
|
+
* handler runs:
|
|
131
|
+
*
|
|
132
|
+
* - `file`: a `File`, exactly what the person's own file choice produces;
|
|
133
|
+
* - `text`: the file's text, for an input that takes markup or JSON.
|
|
134
|
+
*
|
|
135
|
+
* Declared on a string schema:
|
|
136
|
+
* `{ type: 'string', format: 'oui-attachment', 'x-oui-attachment': { as: 'file', mediaTypes: ['image/png'] } }`.
|
|
137
|
+
* The request stays small: only the id travels.
|
|
138
|
+
*/
|
|
139
|
+
|
|
140
|
+
/** The JSON Schema `format` of an input that takes an attachment's id. */
|
|
141
|
+
declare const OUI_ATTACHMENT_FORMAT = "oui-attachment";
|
|
142
|
+
/** What an attachment input takes once resolved, and which files it accepts. */
|
|
143
|
+
interface OUIAttachmentInput {
|
|
144
|
+
as: "file" | "text";
|
|
145
|
+
/** The media types it accepts; any when absent. A type ending in `/*` accepts the family. */
|
|
146
|
+
mediaTypes?: string[];
|
|
147
|
+
}
|
|
148
|
+
/** Whether a string is an attachment id: opaque, 8 to 64 of A–Z, a–z, 0–9, `_` and `-`. */
|
|
149
|
+
declare function isAttachmentId(value: unknown): value is string;
|
|
150
|
+
/** The same rule as a pattern, for a validator's format. */
|
|
151
|
+
declare const ATTACHMENT_ID_PATTERN: RegExp;
|
|
152
|
+
/** The attachment declaration of a schema, when it is an attachment input. */
|
|
153
|
+
declare function attachmentInputOf(schema: JSONSchema | undefined): OUIAttachmentInput | null;
|
|
154
|
+
/** Whether a media type is one an attachment input accepts. */
|
|
155
|
+
declare function acceptsMediaType(input: OUIAttachmentInput, mediaType: string): boolean;
|
|
156
|
+
/**
|
|
157
|
+
* Every attachment input of an action's input schema, by where its id sits in
|
|
158
|
+
* the params: a property (`["logo"]`), or each item of a list property
|
|
159
|
+
* (`["images", "*"]`). Only the input's own properties and their list items
|
|
160
|
+
* are looked at: a file is an argument of the action, not buried in its data.
|
|
161
|
+
*/
|
|
162
|
+
declare function attachmentInputs(schema: JSONSchema | undefined): Array<{
|
|
163
|
+
path: [string] | [string, "*"];
|
|
164
|
+
input: OUIAttachmentInput;
|
|
165
|
+
}>;
|
|
166
|
+
/**
|
|
167
|
+
* Where an action's input schema declares an attachment input anywhere other
|
|
168
|
+
* than a property of the input or the items of a list property: inside an
|
|
169
|
+
* object property, a list of lists, `anyOf`/`oneOf`/`allOf`, or anything a
|
|
170
|
+
* schema nests. Such an input is neither checked nor resolved, so an action
|
|
171
|
+
* declaring one is refused (§7.3.11). Each entry is a path in the schema, as
|
|
172
|
+
* `property.sub`, `property[]`, `property.anyOf[0]`.
|
|
173
|
+
*/
|
|
174
|
+
declare function misplacedAttachmentInputs(schema: JSONSchema | undefined): string[];
|
|
175
|
+
/** Every attachment id an action's params name, with the input that takes it. */
|
|
176
|
+
declare function attachmentIdsIn(schema: JSONSchema | undefined, params: Record<string, unknown>): Array<{
|
|
177
|
+
id: string;
|
|
178
|
+
property: string;
|
|
179
|
+
input: OUIAttachmentInput;
|
|
180
|
+
}>;
|
|
181
|
+
|
|
182
|
+
export { ATTACHMENT_ID_PATTERN, DEFINITION_HASH_HEX, FIT_LIST_STEPS, FIT_TEXT_CHARS, INDEX_DESCRIPTION_CHARS, INDEX_INPUT_CHARS, INDEX_INPUT_PROPERTIES, JSONSchema, OUIAction, OUIActionIndexEntry, type OUIAttachmentInput, OUIFitCut, OUIObservationSnapshot, OUISurface, OUISurfaceIndex, OUI_ATTACHMENT_FORMAT, OUI_DESCRIBE_ACTION, OUI_READ_ACTION, OUI_RUNTIME_SURFACE, acceptsMediaType, atPointer, attachmentIdsIn, attachmentInputOf, attachmentInputs, constantOf, definitionHash, discriminatorOf, firstSentence, fitObservations, indexEntry, isAttachmentId, jsonBytes, misplacedAttachmentInputs, pointerStep, pointerSteps, sortedJson, summarizeInput, surfaceIndex, surfacesHash, utf8Length, withoutTitleLeadIn };
|