@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.
Files changed (85) hide show
  1. package/LICENSE +201 -0
  2. package/NOTICE +54 -0
  3. package/README.md +35 -2
  4. package/dist/capabilities.js +29 -0
  5. package/dist/capabilities.js.map +9 -0
  6. package/dist/chunks/index-3nf9f7pv.js +315 -0
  7. package/dist/chunks/index-3nf9f7pv.js.map +10 -0
  8. package/dist/chunks/index-3rgr16n2.js +443 -0
  9. package/dist/chunks/index-3rgr16n2.js.map +9 -0
  10. package/dist/chunks/index-79swfbsm.js +366 -0
  11. package/dist/chunks/index-79swfbsm.js.map +10 -0
  12. package/dist/chunks/index-knntt4cb.js +259 -0
  13. package/dist/chunks/index-knntt4cb.js.map +10 -0
  14. package/dist/chunks/index-m2845dn6.js +72 -0
  15. package/dist/chunks/index-m2845dn6.js.map +10 -0
  16. package/dist/chunks/index-pqpnz4ns.js +2213 -0
  17. package/dist/chunks/index-pqpnz4ns.js.map +9 -0
  18. package/dist/chunks/index-q4zws02e.js +2301 -0
  19. package/dist/chunks/index-q4zws02e.js.map +10 -0
  20. package/dist/chunks/index-s3xjr701.js +170 -0
  21. package/dist/chunks/index-s3xjr701.js.map +10 -0
  22. package/dist/chunks/index-sk8b0dh4.js +126 -0
  23. package/dist/chunks/index-sk8b0dh4.js.map +10 -0
  24. package/dist/chunks/index-tvsykgcv.js +3015 -0
  25. package/dist/chunks/index-tvsykgcv.js.map +19 -0
  26. package/dist/chunks/index-v0m7r4y3.js +6869 -0
  27. package/dist/chunks/index-v0m7r4y3.js.map +13 -0
  28. package/dist/consent.js +24 -0
  29. package/dist/consent.js.map +9 -0
  30. package/dist/index.js +654 -0
  31. package/dist/index.js.map +12 -0
  32. package/dist/lifecycle.js +11 -0
  33. package/dist/lifecycle.js.map +9 -0
  34. package/dist/outbox.js +27 -0
  35. package/dist/outbox.js.map +9 -0
  36. package/dist/pdf.js +15 -0
  37. package/dist/pdf.js.map +9 -0
  38. package/dist/providers.js +26 -0
  39. package/dist/providers.js.map +9 -0
  40. package/dist/runner.js +24 -0
  41. package/dist/runner.js.map +9 -0
  42. package/dist/tools.js +38 -0
  43. package/dist/tools.js.map +9 -0
  44. package/dist/types/domain-contract/src/app-records.d.ts +3148 -0
  45. package/dist/types/domain-contract/src/app-share.d.ts +222 -0
  46. package/dist/types/domain-contract/src/apps.d.ts +612 -0
  47. package/dist/types/eengine/fixtures/providers.json +55 -0
  48. package/dist/types/eengine/src/broker.d.ts +80 -0
  49. package/dist/types/eengine/src/capabilities.d.ts +88 -0
  50. package/dist/types/eengine/src/consent.d.ts +50 -0
  51. package/dist/types/eengine/src/index.d.ts +12 -0
  52. package/dist/types/eengine/src/instance.d.ts +131 -0
  53. package/dist/types/eengine/src/lifecycle.d.ts +64 -0
  54. package/dist/types/eengine/src/outbox.d.ts +3 -0
  55. package/dist/types/eengine/src/pdf.d.ts +36 -0
  56. package/dist/types/eengine/src/providers.d.ts +38 -0
  57. package/dist/types/eengine/src/runner.d.ts +82 -0
  58. package/dist/types/eengine/src/stores.d.ts +125 -0
  59. package/dist/types/eengine/src/synced.d.ts +59 -0
  60. package/dist/types/eengine/src/tools.d.ts +79 -0
  61. package/dist/types/eengine/src/web/index.d.ts +20 -0
  62. package/dist/types/eengine/src/web/mcp.d.ts +27 -0
  63. package/dist/types/eengine/src/web/platform.d.ts +91 -0
  64. package/dist/types/eengine/src/web/stores.d.ts +125 -0
  65. package/dist/types/emcp/fixtures/automations.json +521 -0
  66. package/dist/types/emcp/fixtures/hub.json +498 -0
  67. package/dist/types/emcp/src/access.d.ts +55 -0
  68. package/dist/types/emcp/src/audit.d.ts +22 -0
  69. package/dist/types/emcp/src/automations.d.ts +111 -0
  70. package/dist/types/emcp/src/exposes.d.ts +242 -0
  71. package/dist/types/emcp/src/hub.d.ts +63 -0
  72. package/dist/types/emcp/src/index.d.ts +7 -0
  73. package/dist/types/emcp/src/pure.d.ts +11 -0
  74. package/dist/types/emcp/src/upstream.d.ts +288 -0
  75. package/dist/types/emcp/src/vault.d.ts +34 -0
  76. package/dist/web/index.js +791 -0
  77. package/dist/web/index.js.map +13 -0
  78. package/fixtures/bundle.json +1165 -0
  79. package/fixtures/capabilities.json +434 -0
  80. package/fixtures/consent.json +146 -0
  81. package/fixtures/lifecycle.json +125 -0
  82. package/fixtures/outbox.json +22 -0
  83. package/fixtures/providers.json +55 -0
  84. package/fixtures/runner.json +2167 -0
  85. 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;