@deadair/plugin-sdk 0.53.0 → 0.55.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.
|
@@ -205,8 +205,8 @@ export interface ConfigFieldColumn {
|
|
|
205
205
|
* rule that hid a cell there would hide it on the one row that most needs filling in.
|
|
206
206
|
*
|
|
207
207
|
* A `secret` cell that does not apply keeps whatever is stored rather than being cleared.
|
|
208
|
-
* Absent already means "keep it" in `
|
|
209
|
-
* an instruction to destroy a credential would be a surprise nobody asked for.
|
|
208
|
+
* Absent already means "keep it" in the host's `shared/config.rows.ts`, and reading a visibility
|
|
209
|
+
* rule as an instruction to destroy a credential would be a surprise nobody asked for.
|
|
210
210
|
*/
|
|
211
211
|
dependsOn?: string;
|
|
212
212
|
/**
|
|
@@ -216,6 +216,12 @@ export interface ConfigFieldColumn {
|
|
|
216
216
|
* an author who knows that one knows this.
|
|
217
217
|
*/
|
|
218
218
|
dependsOnValues?: string[];
|
|
219
|
+
/**
|
|
220
|
+
* Key of the `url` (or `string`) column in the same list that this `secret` cell is SENT to.
|
|
221
|
+
* Ignored on every other type. See {@link ConfigField.sentTo}, which is the same declaration for
|
|
222
|
+
* a field: a row whose address moves to another origin has to have its credential typed again.
|
|
223
|
+
*/
|
|
224
|
+
sentTo?: string;
|
|
219
225
|
}
|
|
220
226
|
/**
|
|
221
227
|
* The chosen values of a `multiselect`, out of the string it is stored as.
|
|
@@ -418,7 +424,35 @@ export interface ConfigField {
|
|
|
418
424
|
* for that.
|
|
419
425
|
*/
|
|
420
426
|
rangeWith?: string;
|
|
427
|
+
/**
|
|
428
|
+
* Key of the `url` (or `string`) field in the same form that this `secret` is SENT to. Ignored
|
|
429
|
+
* on every other type.
|
|
430
|
+
*
|
|
431
|
+
* A secret is write-only and an omitted one is kept, which is what lets an operator save the
|
|
432
|
+
* rest of a form without retyping a key. Without this, the same rule lets anybody allowed to
|
|
433
|
+
* save the form point the address at a server of their own and have the station send it a
|
|
434
|
+
* credential the console never shows them. Declared, the host refuses a save that KEEPS this
|
|
435
|
+
* secret while moving the field it names to another origin (scheme, host and port), and asks
|
|
436
|
+
* for the secret again. A changed path on the same server is not a move, and a secret typed
|
|
437
|
+
* fresh or cleared in the same save is never refused.
|
|
438
|
+
*
|
|
439
|
+
* Declare it on every secret that goes to an address the operator types. Leave it off one that
|
|
440
|
+
* goes to a fixed vendor whatever the form says: there is no address to move.
|
|
441
|
+
*
|
|
442
|
+
* A field that is empty counts as wherever the field's `default` points, or as "no address" if
|
|
443
|
+
* there is none, so filling in an address that was empty is a move too.
|
|
444
|
+
*/
|
|
445
|
+
sentTo?: string;
|
|
421
446
|
}
|
|
447
|
+
/**
|
|
448
|
+
* What is wrong with the `sentTo` declarations in one form, as sentences. Empty when nothing is.
|
|
449
|
+
*
|
|
450
|
+
* A `sentTo` naming nothing would be worse than none at all: the host would compare an address that
|
|
451
|
+
* is never there with itself, find nothing moved, and the protection the author meant to declare
|
|
452
|
+
* would be silently off. So the manifest schema refuses one, at load, and a station setting's
|
|
453
|
+
* registry test asks the same question of the station's own form.
|
|
454
|
+
*/
|
|
455
|
+
export declare function sentToProblems(fields: readonly ConfigField[]): string[];
|
|
422
456
|
export declare const configFieldOptionSchema: z.ZodObject<{
|
|
423
457
|
value: z.ZodString;
|
|
424
458
|
label: z.ZodString;
|
|
@@ -503,6 +537,7 @@ export declare const configFieldColumnSchema: z.ZodObject<{
|
|
|
503
537
|
}>>;
|
|
504
538
|
dependsOn: z.ZodOptional<z.ZodString>;
|
|
505
539
|
dependsOnValues: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
540
|
+
sentTo: z.ZodOptional<z.ZodString>;
|
|
506
541
|
}, z.core.$strip>;
|
|
507
542
|
export declare const configFieldPresetSchema: z.ZodObject<{
|
|
508
543
|
label: z.ZodString;
|
|
@@ -585,6 +620,7 @@ export declare const configFieldSchema: z.ZodObject<{
|
|
|
585
620
|
}>>;
|
|
586
621
|
dependsOn: z.ZodOptional<z.ZodString>;
|
|
587
622
|
dependsOnValues: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
623
|
+
sentTo: z.ZodOptional<z.ZodString>;
|
|
588
624
|
}, z.core.$strip>>>;
|
|
589
625
|
presets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
590
626
|
label: z.ZodString;
|
|
@@ -592,6 +628,7 @@ export declare const configFieldSchema: z.ZodObject<{
|
|
|
592
628
|
}, z.core.$strip>>>;
|
|
593
629
|
dependsOn: z.ZodOptional<z.ZodString>;
|
|
594
630
|
rangeWith: z.ZodOptional<z.ZodString>;
|
|
631
|
+
sentTo: z.ZodOptional<z.ZodString>;
|
|
595
632
|
}, z.core.$strip>;
|
|
596
633
|
export {};
|
|
597
634
|
//# sourceMappingURL=plugin.config.fields.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.config.fields.d.ts","sourceRoot":"","sources":["../src/plugin.config.fields.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,aAAa,GAAG,MAAM,GAAG,MAAM,CAAC;AAEvI;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,UAAU,CAAC;AAEnD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,MAAM,CAAC;AAEnD,uEAAuE;AACvE,MAAM,WAAW,iBAAiB;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AACH,MA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iBAmBlC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;iBAGlC,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAsB5B,CAAC"}
|
|
@@ -363,6 +363,7 @@ export declare const pluginManifestSchema: z.ZodObject<{
|
|
|
363
363
|
}>>;
|
|
364
364
|
dependsOn: z.ZodOptional<z.ZodString>;
|
|
365
365
|
dependsOnValues: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
366
|
+
sentTo: z.ZodOptional<z.ZodString>;
|
|
366
367
|
}, z.core.$strip>>>;
|
|
367
368
|
presets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
368
369
|
label: z.ZodString;
|
|
@@ -370,6 +371,7 @@ export declare const pluginManifestSchema: z.ZodObject<{
|
|
|
370
371
|
}, z.core.$strip>>>;
|
|
371
372
|
dependsOn: z.ZodOptional<z.ZodString>;
|
|
372
373
|
rangeWith: z.ZodOptional<z.ZodString>;
|
|
374
|
+
sentTo: z.ZodOptional<z.ZodString>;
|
|
373
375
|
}, z.core.$strip>>;
|
|
374
376
|
configSchema: z.ZodCustom<PluginConfigSchema, PluginConfigSchema>;
|
|
375
377
|
}, z.core.$strip>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.manifest.d.ts","sourceRoot":"","sources":["../src/plugin.manifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,
|
|
1
|
+
{"version":3,"file":"plugin.manifest.d.ts","sourceRoot":"","sources":["../src/plugin.manifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAqC,KAAK,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAChG,OAAO,EAA2B,KAAK,iBAAiB,EAAE,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