@intentic/extension-manifest 1.408.1 → 1.409.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 +14 -0
- package/dist/manifest.d.ts +175 -2
- package/dist/manifest.d.ts.map +1 -1
- package/dist/points/capabilities.d.ts +372 -4
- package/dist/points/capabilities.d.ts.map +1 -1
- package/dist/points/capabilities.js +70 -3
- package/dist/points/capabilities.js.map +1 -1
- package/dist/points/capability-field-shapes.d.ts +37 -0
- package/dist/points/capability-field-shapes.d.ts.map +1 -0
- package/dist/points/capability-field-shapes.js +35 -0
- package/dist/points/capability-field-shapes.js.map +1 -0
- package/dist/points/index.d.ts +351 -4
- package/dist/points/index.d.ts.map +1 -1
- package/dist/points/index.js +1 -0
- package/dist/points/index.js.map +1 -1
- package/intentic-extension.schema.json +692 -46
- package/package.json +2 -2
- package/src/points/capabilities.ts +115 -7
- package/src/points/capability-field-shapes.test.ts +56 -0
- package/src/points/capability-field-shapes.ts +64 -0
- package/src/points/index.ts +1 -0
package/README.md
CHANGED
|
@@ -20,6 +20,20 @@ flowchart LR
|
|
|
20
20
|
the fields it is bound to), so its own CLI and listener can store a new or rotated token through the daemon's
|
|
21
21
|
write-only oauth-token route instead of printing it for someone to paste, and `probe.oauth`, which trades the token
|
|
22
22
|
for an access token before the card's connection test (Microsoft's identity platform only, today).
|
|
23
|
+
- A field declaring `signIn` is that refresh token's field filled by a sign-in button instead of a box. `google`: the
|
|
24
|
+
platform's own OAuth client runs the consent, and the card's CLI and listener get access tokens from the daemon's
|
|
25
|
+
`oauth-access` route, since the client secret stays on the platform. `microsoft`: the sandbox runs the device-code
|
|
26
|
+
sign-in the card's `refreshToken.deviceCode` declares, against the card's own app.
|
|
27
|
+
- A card's `probe.ok` names a path in the answer that must hold `true`, for a service that answers 200 either way
|
|
28
|
+
(Slack's `auth.test`). Its `catalog.links` are links a connected card offers on its row (Discord's invite), built
|
|
29
|
+
in the browser from the connection's non-secret settings, so a template naming a secret field fails the parse. A
|
|
30
|
+
field's fixed `value` may sit under a `when`, one per arm of a choice (PostHog's region pins each cloud's host).
|
|
31
|
+
- A card for a service not spoken to over HTTP declares `probe.connect` (`tcp`, `postgres`, `mysql`, `imap`) with the
|
|
32
|
+
host, port and sign-in as templates over its fields, in place of `url`; the daemon dials it as that service's own
|
|
33
|
+
client would. A field whose answer is not typed is declared on the field (`points/capability-field-shapes.ts`):
|
|
34
|
+
`connection` makes it a picker of the owner's connections of one kind, storing the chosen one's name; `keyValue`
|
|
35
|
+
draws a `KEY=VALUE` block as rows of a name and a value, storing the same text; `keyRequest` has the sandbox make a
|
|
36
|
+
private key and show only a certificate request for it.
|
|
23
37
|
- `sandboxRouteAllowed` is the permission rule: an entry is `"<METHOD> <path-glob>"`, and each `*` stands alone
|
|
24
38
|
between slashes and matches one whole path segment, never a `.` or `..` the URL would resolve away. A malformed entry
|
|
25
39
|
(`**`, a `*` inside a segment, an unknown method, a relative path) fails the manifest parse rather than the first
|
package/dist/manifest.d.ts
CHANGED
|
@@ -71,6 +71,10 @@ export declare const ExtensionManifestSchema: z.ZodObject<{
|
|
|
71
71
|
scopes: z.ZodOptional<z.ZodString>;
|
|
72
72
|
steps: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
73
73
|
}, z.core.$strip>>;
|
|
74
|
+
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
75
|
+
label: z.ZodString;
|
|
76
|
+
url: z.ZodString;
|
|
77
|
+
}, z.core.$strip>>>;
|
|
74
78
|
}, z.core.$strip>;
|
|
75
79
|
kind: z.ZodLiteral<"cli">;
|
|
76
80
|
fields: z.ZodArray<z.ZodObject<{
|
|
@@ -92,12 +96,33 @@ export declare const ExtensionManifestSchema: z.ZodObject<{
|
|
|
92
96
|
when: z.ZodOptional<z.ZodString>;
|
|
93
97
|
value: z.ZodOptional<z.ZodString>;
|
|
94
98
|
totp: z.ZodOptional<z.ZodBoolean>;
|
|
99
|
+
connection: z.ZodOptional<z.ZodObject<{
|
|
100
|
+
kind: z.ZodString;
|
|
101
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
102
|
+
}, z.core.$strip>>;
|
|
103
|
+
keyValue: z.ZodOptional<z.ZodBoolean>;
|
|
104
|
+
keyRequest: z.ZodOptional<z.ZodObject<{
|
|
105
|
+
subject: z.ZodRecord<z.ZodEnum<{
|
|
106
|
+
C: "C";
|
|
107
|
+
CN: "CN";
|
|
108
|
+
L: "L";
|
|
109
|
+
O: "O";
|
|
110
|
+
OU: "OU";
|
|
111
|
+
ST: "ST";
|
|
112
|
+
emailAddress: "emailAddress";
|
|
113
|
+
}> & z.core.$partial, z.ZodString>;
|
|
114
|
+
request: z.ZodOptional<z.ZodString>;
|
|
115
|
+
}, z.core.$strip>>;
|
|
116
|
+
signIn: z.ZodOptional<z.ZodEnum<{
|
|
117
|
+
google: "google";
|
|
118
|
+
microsoft: "microsoft";
|
|
119
|
+
}>>;
|
|
95
120
|
}, z.core.$strip>>;
|
|
96
121
|
env: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
97
122
|
skill: z.ZodString;
|
|
98
123
|
fragment: z.ZodOptional<z.ZodString>;
|
|
99
124
|
pack: z.ZodOptional<z.ZodString>;
|
|
100
|
-
probe: z.ZodOptional<z.ZodObject<{
|
|
125
|
+
probe: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
101
126
|
oauth: z.ZodOptional<z.ZodObject<{
|
|
102
127
|
tokenUrl: z.ZodString;
|
|
103
128
|
form: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
@@ -110,11 +135,34 @@ export declare const ExtensionManifestSchema: z.ZodObject<{
|
|
|
110
135
|
}>>;
|
|
111
136
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
112
137
|
identity: z.ZodOptional<z.ZodString>;
|
|
138
|
+
ok: z.ZodOptional<z.ZodString>;
|
|
113
139
|
insecure: z.ZodOptional<z.ZodBoolean>;
|
|
114
|
-
}, z.core.$strip
|
|
140
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
141
|
+
connect: z.ZodEnum<{
|
|
142
|
+
imap: "imap";
|
|
143
|
+
mysql: "mysql";
|
|
144
|
+
postgres: "postgres";
|
|
145
|
+
tcp: "tcp";
|
|
146
|
+
}>;
|
|
147
|
+
host: z.ZodString;
|
|
148
|
+
port: z.ZodString;
|
|
149
|
+
user: z.ZodOptional<z.ZodString>;
|
|
150
|
+
password: z.ZodOptional<z.ZodString>;
|
|
151
|
+
database: z.ZodOptional<z.ZodString>;
|
|
152
|
+
}, z.core.$strip>]>>;
|
|
115
153
|
refreshToken: z.ZodOptional<z.ZodObject<{
|
|
116
154
|
field: z.ZodString;
|
|
117
155
|
boundTo: z.ZodArray<z.ZodString>;
|
|
156
|
+
deviceCode: z.ZodOptional<z.ZodObject<{
|
|
157
|
+
when: z.ZodOptional<z.ZodString>;
|
|
158
|
+
authorizeUrl: z.ZodString;
|
|
159
|
+
tokenUrl: z.ZodString;
|
|
160
|
+
clientId: z.ZodString;
|
|
161
|
+
scope: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodObject<{
|
|
162
|
+
when: z.ZodOptional<z.ZodString>;
|
|
163
|
+
scope: z.ZodString;
|
|
164
|
+
}, z.core.$strip>>]>;
|
|
165
|
+
}, z.core.$strip>>;
|
|
118
166
|
}, z.core.$strip>>;
|
|
119
167
|
hosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
120
168
|
broker: z.ZodOptional<z.ZodObject<{
|
|
@@ -160,6 +208,10 @@ export declare const ExtensionManifestSchema: z.ZodObject<{
|
|
|
160
208
|
scopes: z.ZodOptional<z.ZodString>;
|
|
161
209
|
steps: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
162
210
|
}, z.core.$strip>>;
|
|
211
|
+
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
212
|
+
label: z.ZodString;
|
|
213
|
+
url: z.ZodString;
|
|
214
|
+
}, z.core.$strip>>>;
|
|
163
215
|
}, z.core.$strip>;
|
|
164
216
|
fields: z.ZodArray<z.ZodObject<{
|
|
165
217
|
key: z.ZodString;
|
|
@@ -180,6 +232,27 @@ export declare const ExtensionManifestSchema: z.ZodObject<{
|
|
|
180
232
|
when: z.ZodOptional<z.ZodString>;
|
|
181
233
|
value: z.ZodOptional<z.ZodString>;
|
|
182
234
|
totp: z.ZodOptional<z.ZodBoolean>;
|
|
235
|
+
connection: z.ZodOptional<z.ZodObject<{
|
|
236
|
+
kind: z.ZodString;
|
|
237
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
238
|
+
}, z.core.$strip>>;
|
|
239
|
+
keyValue: z.ZodOptional<z.ZodBoolean>;
|
|
240
|
+
keyRequest: z.ZodOptional<z.ZodObject<{
|
|
241
|
+
subject: z.ZodRecord<z.ZodEnum<{
|
|
242
|
+
C: "C";
|
|
243
|
+
CN: "CN";
|
|
244
|
+
L: "L";
|
|
245
|
+
O: "O";
|
|
246
|
+
OU: "OU";
|
|
247
|
+
ST: "ST";
|
|
248
|
+
emailAddress: "emailAddress";
|
|
249
|
+
}> & z.core.$partial, z.ZodString>;
|
|
250
|
+
request: z.ZodOptional<z.ZodString>;
|
|
251
|
+
}, z.core.$strip>>;
|
|
252
|
+
signIn: z.ZodOptional<z.ZodEnum<{
|
|
253
|
+
google: "google";
|
|
254
|
+
microsoft: "microsoft";
|
|
255
|
+
}>>;
|
|
183
256
|
}, z.core.$strip>>;
|
|
184
257
|
kind: z.ZodLiteral<"browser">;
|
|
185
258
|
loginUrl: z.ZodOptional<z.ZodURL>;
|
|
@@ -203,6 +276,10 @@ export declare const ExtensionManifestSchema: z.ZodObject<{
|
|
|
203
276
|
scopes: z.ZodOptional<z.ZodString>;
|
|
204
277
|
steps: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
205
278
|
}, z.core.$strip>>;
|
|
279
|
+
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
280
|
+
label: z.ZodString;
|
|
281
|
+
url: z.ZodString;
|
|
282
|
+
}, z.core.$strip>>>;
|
|
206
283
|
}, z.core.$strip>;
|
|
207
284
|
fields: z.ZodArray<z.ZodObject<{
|
|
208
285
|
key: z.ZodString;
|
|
@@ -223,6 +300,27 @@ export declare const ExtensionManifestSchema: z.ZodObject<{
|
|
|
223
300
|
when: z.ZodOptional<z.ZodString>;
|
|
224
301
|
value: z.ZodOptional<z.ZodString>;
|
|
225
302
|
totp: z.ZodOptional<z.ZodBoolean>;
|
|
303
|
+
connection: z.ZodOptional<z.ZodObject<{
|
|
304
|
+
kind: z.ZodString;
|
|
305
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
306
|
+
}, z.core.$strip>>;
|
|
307
|
+
keyValue: z.ZodOptional<z.ZodBoolean>;
|
|
308
|
+
keyRequest: z.ZodOptional<z.ZodObject<{
|
|
309
|
+
subject: z.ZodRecord<z.ZodEnum<{
|
|
310
|
+
C: "C";
|
|
311
|
+
CN: "CN";
|
|
312
|
+
L: "L";
|
|
313
|
+
O: "O";
|
|
314
|
+
OU: "OU";
|
|
315
|
+
ST: "ST";
|
|
316
|
+
emailAddress: "emailAddress";
|
|
317
|
+
}> & z.core.$partial, z.ZodString>;
|
|
318
|
+
request: z.ZodOptional<z.ZodString>;
|
|
319
|
+
}, z.core.$strip>>;
|
|
320
|
+
signIn: z.ZodOptional<z.ZodEnum<{
|
|
321
|
+
google: "google";
|
|
322
|
+
microsoft: "microsoft";
|
|
323
|
+
}>>;
|
|
226
324
|
}, z.core.$strip>>;
|
|
227
325
|
kind: z.ZodLiteral<"device">;
|
|
228
326
|
skill: z.ZodString;
|
|
@@ -244,6 +342,10 @@ export declare const ExtensionManifestSchema: z.ZodObject<{
|
|
|
244
342
|
scopes: z.ZodOptional<z.ZodString>;
|
|
245
343
|
steps: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
246
344
|
}, z.core.$strip>>;
|
|
345
|
+
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
346
|
+
label: z.ZodString;
|
|
347
|
+
url: z.ZodString;
|
|
348
|
+
}, z.core.$strip>>>;
|
|
247
349
|
}, z.core.$strip>;
|
|
248
350
|
fields: z.ZodArray<z.ZodObject<{
|
|
249
351
|
key: z.ZodString;
|
|
@@ -264,6 +366,27 @@ export declare const ExtensionManifestSchema: z.ZodObject<{
|
|
|
264
366
|
when: z.ZodOptional<z.ZodString>;
|
|
265
367
|
value: z.ZodOptional<z.ZodString>;
|
|
266
368
|
totp: z.ZodOptional<z.ZodBoolean>;
|
|
369
|
+
connection: z.ZodOptional<z.ZodObject<{
|
|
370
|
+
kind: z.ZodString;
|
|
371
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
372
|
+
}, z.core.$strip>>;
|
|
373
|
+
keyValue: z.ZodOptional<z.ZodBoolean>;
|
|
374
|
+
keyRequest: z.ZodOptional<z.ZodObject<{
|
|
375
|
+
subject: z.ZodRecord<z.ZodEnum<{
|
|
376
|
+
C: "C";
|
|
377
|
+
CN: "CN";
|
|
378
|
+
L: "L";
|
|
379
|
+
O: "O";
|
|
380
|
+
OU: "OU";
|
|
381
|
+
ST: "ST";
|
|
382
|
+
emailAddress: "emailAddress";
|
|
383
|
+
}> & z.core.$partial, z.ZodString>;
|
|
384
|
+
request: z.ZodOptional<z.ZodString>;
|
|
385
|
+
}, z.core.$strip>>;
|
|
386
|
+
signIn: z.ZodOptional<z.ZodEnum<{
|
|
387
|
+
google: "google";
|
|
388
|
+
microsoft: "microsoft";
|
|
389
|
+
}>>;
|
|
267
390
|
}, z.core.$strip>>;
|
|
268
391
|
kind: z.ZodLiteral<"webext">;
|
|
269
392
|
install: z.ZodOptional<z.ZodURL>;
|
|
@@ -286,6 +409,10 @@ export declare const ExtensionManifestSchema: z.ZodObject<{
|
|
|
286
409
|
scopes: z.ZodOptional<z.ZodString>;
|
|
287
410
|
steps: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
288
411
|
}, z.core.$strip>>;
|
|
412
|
+
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
413
|
+
label: z.ZodString;
|
|
414
|
+
url: z.ZodString;
|
|
415
|
+
}, z.core.$strip>>>;
|
|
289
416
|
}, z.core.$strip>;
|
|
290
417
|
fields: z.ZodArray<z.ZodObject<{
|
|
291
418
|
key: z.ZodString;
|
|
@@ -306,6 +433,27 @@ export declare const ExtensionManifestSchema: z.ZodObject<{
|
|
|
306
433
|
when: z.ZodOptional<z.ZodString>;
|
|
307
434
|
value: z.ZodOptional<z.ZodString>;
|
|
308
435
|
totp: z.ZodOptional<z.ZodBoolean>;
|
|
436
|
+
connection: z.ZodOptional<z.ZodObject<{
|
|
437
|
+
kind: z.ZodString;
|
|
438
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
439
|
+
}, z.core.$strip>>;
|
|
440
|
+
keyValue: z.ZodOptional<z.ZodBoolean>;
|
|
441
|
+
keyRequest: z.ZodOptional<z.ZodObject<{
|
|
442
|
+
subject: z.ZodRecord<z.ZodEnum<{
|
|
443
|
+
C: "C";
|
|
444
|
+
CN: "CN";
|
|
445
|
+
L: "L";
|
|
446
|
+
O: "O";
|
|
447
|
+
OU: "OU";
|
|
448
|
+
ST: "ST";
|
|
449
|
+
emailAddress: "emailAddress";
|
|
450
|
+
}> & z.core.$partial, z.ZodString>;
|
|
451
|
+
request: z.ZodOptional<z.ZodString>;
|
|
452
|
+
}, z.core.$strip>>;
|
|
453
|
+
signIn: z.ZodOptional<z.ZodEnum<{
|
|
454
|
+
google: "google";
|
|
455
|
+
microsoft: "microsoft";
|
|
456
|
+
}>>;
|
|
309
457
|
}, z.core.$strip>>;
|
|
310
458
|
kind: z.ZodLiteral<"phone">;
|
|
311
459
|
install: z.ZodOptional<z.ZodURL>;
|
|
@@ -328,6 +476,10 @@ export declare const ExtensionManifestSchema: z.ZodObject<{
|
|
|
328
476
|
scopes: z.ZodOptional<z.ZodString>;
|
|
329
477
|
steps: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
330
478
|
}, z.core.$strip>>;
|
|
479
|
+
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
480
|
+
label: z.ZodString;
|
|
481
|
+
url: z.ZodString;
|
|
482
|
+
}, z.core.$strip>>>;
|
|
331
483
|
}, z.core.$strip>;
|
|
332
484
|
fields: z.ZodArray<z.ZodObject<{
|
|
333
485
|
key: z.ZodString;
|
|
@@ -348,6 +500,27 @@ export declare const ExtensionManifestSchema: z.ZodObject<{
|
|
|
348
500
|
when: z.ZodOptional<z.ZodString>;
|
|
349
501
|
value: z.ZodOptional<z.ZodString>;
|
|
350
502
|
totp: z.ZodOptional<z.ZodBoolean>;
|
|
503
|
+
connection: z.ZodOptional<z.ZodObject<{
|
|
504
|
+
kind: z.ZodString;
|
|
505
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
506
|
+
}, z.core.$strip>>;
|
|
507
|
+
keyValue: z.ZodOptional<z.ZodBoolean>;
|
|
508
|
+
keyRequest: z.ZodOptional<z.ZodObject<{
|
|
509
|
+
subject: z.ZodRecord<z.ZodEnum<{
|
|
510
|
+
C: "C";
|
|
511
|
+
CN: "CN";
|
|
512
|
+
L: "L";
|
|
513
|
+
O: "O";
|
|
514
|
+
OU: "OU";
|
|
515
|
+
ST: "ST";
|
|
516
|
+
emailAddress: "emailAddress";
|
|
517
|
+
}> & z.core.$partial, z.ZodString>;
|
|
518
|
+
request: z.ZodOptional<z.ZodString>;
|
|
519
|
+
}, z.core.$strip>>;
|
|
520
|
+
signIn: z.ZodOptional<z.ZodEnum<{
|
|
521
|
+
google: "google";
|
|
522
|
+
microsoft: "microsoft";
|
|
523
|
+
}>>;
|
|
351
524
|
}, z.core.$strip>>;
|
|
352
525
|
kind: z.ZodLiteral<"agent">;
|
|
353
526
|
}, z.core.$strip>], "kind">>>;
|
package/dist/manifest.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../src/manifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqHxB,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../src/manifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqHxB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAyC,CAAC;AAC9E,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAIxE,eAAO,MAAM,aAAa,aAAc,IAAI,CAAC,iBAAiB,EAAE,WAAW,GAAG,MAAM,CAAC,KAAG,MAAkD,CAAC"}
|