@exponential_app/engine 0.0.0-stage → 0.1.1
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/LICENSE +201 -0
- package/NOTICE +54 -0
- package/README.md +35 -2
- package/dist/capabilities.js +29 -0
- package/dist/capabilities.js.map +9 -0
- package/dist/chunks/index-3nf9f7pv.js +315 -0
- package/dist/chunks/index-3nf9f7pv.js.map +10 -0
- package/dist/chunks/index-3rgr16n2.js +443 -0
- package/dist/chunks/index-3rgr16n2.js.map +9 -0
- package/dist/chunks/index-79swfbsm.js +366 -0
- package/dist/chunks/index-79swfbsm.js.map +10 -0
- package/dist/chunks/index-knntt4cb.js +259 -0
- package/dist/chunks/index-knntt4cb.js.map +10 -0
- package/dist/chunks/index-m2845dn6.js +72 -0
- package/dist/chunks/index-m2845dn6.js.map +10 -0
- package/dist/chunks/index-pqpnz4ns.js +2213 -0
- package/dist/chunks/index-pqpnz4ns.js.map +9 -0
- package/dist/chunks/index-q4zws02e.js +2301 -0
- package/dist/chunks/index-q4zws02e.js.map +10 -0
- package/dist/chunks/index-s3xjr701.js +170 -0
- package/dist/chunks/index-s3xjr701.js.map +10 -0
- package/dist/chunks/index-sk8b0dh4.js +126 -0
- package/dist/chunks/index-sk8b0dh4.js.map +10 -0
- package/dist/chunks/index-tvsykgcv.js +3015 -0
- package/dist/chunks/index-tvsykgcv.js.map +19 -0
- package/dist/chunks/index-v0m7r4y3.js +6869 -0
- package/dist/chunks/index-v0m7r4y3.js.map +13 -0
- package/dist/consent.js +24 -0
- package/dist/consent.js.map +9 -0
- package/dist/index.js +654 -0
- package/dist/index.js.map +12 -0
- package/dist/lifecycle.js +11 -0
- package/dist/lifecycle.js.map +9 -0
- package/dist/outbox.js +27 -0
- package/dist/outbox.js.map +9 -0
- package/dist/pdf.js +15 -0
- package/dist/pdf.js.map +9 -0
- package/dist/providers.js +26 -0
- package/dist/providers.js.map +9 -0
- package/dist/runner.js +24 -0
- package/dist/runner.js.map +9 -0
- package/dist/tools.js +38 -0
- package/dist/tools.js.map +9 -0
- package/dist/types/domain-contract/src/app-records.d.ts +3148 -0
- package/dist/types/domain-contract/src/app-share.d.ts +222 -0
- package/dist/types/domain-contract/src/apps.d.ts +612 -0
- package/dist/types/eengine/fixtures/providers.json +55 -0
- package/dist/types/eengine/src/broker.d.ts +80 -0
- package/dist/types/eengine/src/capabilities.d.ts +88 -0
- package/dist/types/eengine/src/consent.d.ts +50 -0
- package/dist/types/eengine/src/index.d.ts +12 -0
- package/dist/types/eengine/src/instance.d.ts +131 -0
- package/dist/types/eengine/src/lifecycle.d.ts +64 -0
- package/dist/types/eengine/src/outbox.d.ts +3 -0
- package/dist/types/eengine/src/pdf.d.ts +36 -0
- package/dist/types/eengine/src/providers.d.ts +38 -0
- package/dist/types/eengine/src/runner.d.ts +82 -0
- package/dist/types/eengine/src/stores.d.ts +125 -0
- package/dist/types/eengine/src/synced.d.ts +59 -0
- package/dist/types/eengine/src/tools.d.ts +79 -0
- package/dist/types/eengine/src/web/index.d.ts +20 -0
- package/dist/types/eengine/src/web/mcp.d.ts +27 -0
- package/dist/types/eengine/src/web/platform.d.ts +91 -0
- package/dist/types/eengine/src/web/stores.d.ts +125 -0
- package/dist/types/emcp/fixtures/automations.json +521 -0
- package/dist/types/emcp/fixtures/hub.json +498 -0
- package/dist/types/emcp/src/access.d.ts +55 -0
- package/dist/types/emcp/src/audit.d.ts +22 -0
- package/dist/types/emcp/src/automations.d.ts +111 -0
- package/dist/types/emcp/src/exposes.d.ts +242 -0
- package/dist/types/emcp/src/hub.d.ts +63 -0
- package/dist/types/emcp/src/index.d.ts +7 -0
- package/dist/types/emcp/src/pure.d.ts +11 -0
- package/dist/types/emcp/src/upstream.d.ts +288 -0
- package/dist/types/emcp/src/vault.d.ts +34 -0
- package/dist/web/index.js +791 -0
- package/dist/web/index.js.map +13 -0
- package/fixtures/bundle.json +1165 -0
- package/fixtures/capabilities.json +434 -0
- package/fixtures/consent.json +146 -0
- package/fixtures/lifecycle.json +125 -0
- package/fixtures/outbox.json +22 -0
- package/fixtures/providers.json +55 -0
- package/fixtures/runner.json +2167 -0
- package/package.json +92 -4
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
export declare const APP_SHARE: {
|
|
2
|
+
$comment: string;
|
|
3
|
+
tokenBytes: number;
|
|
4
|
+
urlPrefix: string;
|
|
5
|
+
testIds: {
|
|
6
|
+
shareLinks: string;
|
|
7
|
+
shareRow: string;
|
|
8
|
+
};
|
|
9
|
+
outcomes: string[];
|
|
10
|
+
caps: {
|
|
11
|
+
perIpPerHour: number;
|
|
12
|
+
perLinkPerHour: number;
|
|
13
|
+
maxBodyBytes: number;
|
|
14
|
+
viewRows: number;
|
|
15
|
+
viewPerIpPerHour: number;
|
|
16
|
+
auditDays: number;
|
|
17
|
+
};
|
|
18
|
+
copy: {
|
|
19
|
+
title: string;
|
|
20
|
+
submit: string;
|
|
21
|
+
view: string;
|
|
22
|
+
off: string;
|
|
23
|
+
on: string;
|
|
24
|
+
expired: string;
|
|
25
|
+
orphaned: string;
|
|
26
|
+
expiresOn: string;
|
|
27
|
+
copyLink: string;
|
|
28
|
+
newLink: string;
|
|
29
|
+
guest: string;
|
|
30
|
+
gone: string;
|
|
31
|
+
tooMany: string;
|
|
32
|
+
closed: string;
|
|
33
|
+
thanks: string;
|
|
34
|
+
};
|
|
35
|
+
expiryChoices: ({
|
|
36
|
+
days: number;
|
|
37
|
+
label: string;
|
|
38
|
+
} | {
|
|
39
|
+
days: null;
|
|
40
|
+
label: string;
|
|
41
|
+
})[];
|
|
42
|
+
stateCases: ({
|
|
43
|
+
name: string;
|
|
44
|
+
link: null;
|
|
45
|
+
declared: boolean;
|
|
46
|
+
now: string;
|
|
47
|
+
state: string;
|
|
48
|
+
} | {
|
|
49
|
+
name: string;
|
|
50
|
+
link: {
|
|
51
|
+
revokedAt: null;
|
|
52
|
+
expiresAt: null;
|
|
53
|
+
};
|
|
54
|
+
declared: boolean;
|
|
55
|
+
now: string;
|
|
56
|
+
state: string;
|
|
57
|
+
} | {
|
|
58
|
+
name: string;
|
|
59
|
+
link: {
|
|
60
|
+
revokedAt: null;
|
|
61
|
+
expiresAt: string;
|
|
62
|
+
};
|
|
63
|
+
declared: boolean;
|
|
64
|
+
now: string;
|
|
65
|
+
state: string;
|
|
66
|
+
} | {
|
|
67
|
+
name: string;
|
|
68
|
+
link: {
|
|
69
|
+
revokedAt: string;
|
|
70
|
+
expiresAt: string;
|
|
71
|
+
};
|
|
72
|
+
declared: boolean;
|
|
73
|
+
now: string;
|
|
74
|
+
state: string;
|
|
75
|
+
})[];
|
|
76
|
+
capCases: {
|
|
77
|
+
name: string;
|
|
78
|
+
ipCount: number;
|
|
79
|
+
linkCount: number;
|
|
80
|
+
allowed: boolean;
|
|
81
|
+
}[];
|
|
82
|
+
fieldCases: ({
|
|
83
|
+
name: string;
|
|
84
|
+
schema: {
|
|
85
|
+
type: string;
|
|
86
|
+
required: string[];
|
|
87
|
+
properties: {
|
|
88
|
+
title: {
|
|
89
|
+
type: string;
|
|
90
|
+
};
|
|
91
|
+
note: {
|
|
92
|
+
type: string;
|
|
93
|
+
};
|
|
94
|
+
amount?: undefined;
|
|
95
|
+
receipt?: undefined;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
fields: string[];
|
|
99
|
+
submit: string[];
|
|
100
|
+
view: string[];
|
|
101
|
+
} | {
|
|
102
|
+
name: string;
|
|
103
|
+
schema: {
|
|
104
|
+
type: string;
|
|
105
|
+
required: string[];
|
|
106
|
+
properties: {
|
|
107
|
+
title: {
|
|
108
|
+
type: string;
|
|
109
|
+
};
|
|
110
|
+
amount: {
|
|
111
|
+
type: string;
|
|
112
|
+
};
|
|
113
|
+
receipt: {
|
|
114
|
+
type: string;
|
|
115
|
+
format: string;
|
|
116
|
+
};
|
|
117
|
+
note?: undefined;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
submit: string[];
|
|
121
|
+
view: string[];
|
|
122
|
+
fields?: undefined;
|
|
123
|
+
})[];
|
|
124
|
+
bylineCases: ({
|
|
125
|
+
name: string;
|
|
126
|
+
shareName: string;
|
|
127
|
+
byline: string;
|
|
128
|
+
text: string;
|
|
129
|
+
} | {
|
|
130
|
+
name: string;
|
|
131
|
+
shareName: null;
|
|
132
|
+
byline: string;
|
|
133
|
+
text: string;
|
|
134
|
+
})[];
|
|
135
|
+
rowCases: ({
|
|
136
|
+
name: string;
|
|
137
|
+
mode: string;
|
|
138
|
+
state: string;
|
|
139
|
+
expiresAt: null;
|
|
140
|
+
text: string;
|
|
141
|
+
} | {
|
|
142
|
+
name: string;
|
|
143
|
+
mode: string;
|
|
144
|
+
state: string;
|
|
145
|
+
expiresAt: string;
|
|
146
|
+
text: string;
|
|
147
|
+
})[];
|
|
148
|
+
historyCases: {
|
|
149
|
+
name: string;
|
|
150
|
+
via: string;
|
|
151
|
+
actor: string;
|
|
152
|
+
names: {
|
|
153
|
+
u1: string;
|
|
154
|
+
};
|
|
155
|
+
who: string;
|
|
156
|
+
}[];
|
|
157
|
+
switchCases: {
|
|
158
|
+
state: string;
|
|
159
|
+
on: boolean;
|
|
160
|
+
}[];
|
|
161
|
+
};
|
|
162
|
+
export declare const APP_SHARE_COPY: {
|
|
163
|
+
title: string;
|
|
164
|
+
submit: string;
|
|
165
|
+
view: string;
|
|
166
|
+
off: string;
|
|
167
|
+
on: string;
|
|
168
|
+
expired: string;
|
|
169
|
+
orphaned: string;
|
|
170
|
+
expiresOn: string;
|
|
171
|
+
copyLink: string;
|
|
172
|
+
newLink: string;
|
|
173
|
+
guest: string;
|
|
174
|
+
gone: string;
|
|
175
|
+
tooMany: string;
|
|
176
|
+
closed: string;
|
|
177
|
+
thanks: string;
|
|
178
|
+
};
|
|
179
|
+
export declare const APP_SHARE_CAPS: {
|
|
180
|
+
perIpPerHour: number;
|
|
181
|
+
perLinkPerHour: number;
|
|
182
|
+
maxBodyBytes: number;
|
|
183
|
+
viewRows: number;
|
|
184
|
+
viewPerIpPerHour: number;
|
|
185
|
+
auditDays: number;
|
|
186
|
+
};
|
|
187
|
+
/** VAPP-247: the Public links row's expiry items, in menu order (`days` null = never). */
|
|
188
|
+
export declare const APP_SHARE_EXPIRY_CHOICES: readonly {
|
|
189
|
+
days: number | null;
|
|
190
|
+
label: string;
|
|
191
|
+
}[];
|
|
192
|
+
export type ShareLinkState = `off` | `on` | `expired` | `orphaned`;
|
|
193
|
+
export type ShareMode = `submit` | `view`;
|
|
194
|
+
export interface ShareSchema {
|
|
195
|
+
required?: string[];
|
|
196
|
+
properties: Record<string, {
|
|
197
|
+
format?: string;
|
|
198
|
+
items?: {
|
|
199
|
+
format?: string;
|
|
200
|
+
};
|
|
201
|
+
type?: string;
|
|
202
|
+
}>;
|
|
203
|
+
}
|
|
204
|
+
/** A link's state at `now` (`stateCases`); `declared` = the published
|
|
205
|
+
* package still declares the share. */
|
|
206
|
+
export declare function linkState(link: {
|
|
207
|
+
revokedAt: string | null;
|
|
208
|
+
expiresAt: string | null;
|
|
209
|
+
} | null, declared: boolean, now: string): ShareLinkState;
|
|
210
|
+
/** May one more submission land (`capCases`)? */
|
|
211
|
+
export declare function underShareCaps(ipCount: number, linkCount: number): boolean;
|
|
212
|
+
/** The fields a link exposes (`fieldCases`): the declared `fields` in their
|
|
213
|
+
* order, else the Data tab's order (required, then by name); unknown names
|
|
214
|
+
* and files dropped. */
|
|
215
|
+
export declare function shareFields(schema: ShareSchema, fields?: readonly string[]): string[];
|
|
216
|
+
/** The By/author label (`bylineCases`): a shared record reads Guest. */
|
|
217
|
+
export declare function shareByline(shareName: string | null | undefined, byline: string): string;
|
|
218
|
+
/** A Settings row's subtitle (`rowCases`). */
|
|
219
|
+
export declare function shareRowSubtitle(mode: ShareMode, state: ShareLinkState, expiresAt: string | null): string;
|
|
220
|
+
/** A Settings row's Switch (`switchCases`): an orphaned link still reads on,
|
|
221
|
+
* so its owner can revoke it. */
|
|
222
|
+
export declare function shareSwitchOn(state: ShareLinkState): boolean;
|