@withmarfa/client 0.0.98 → 0.0.100
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/dist/index.d.cts +34 -8
- package/dist/index.d.ts +34 -8
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1989,7 +1989,7 @@ interface paths {
|
|
|
1989
1989
|
};
|
|
1990
1990
|
/**
|
|
1991
1991
|
* List connector agreements
|
|
1992
|
-
* @description Returns the agreements of the connector's source, the one written longest ago first. Items
|
|
1992
|
+
* @description Returns the agreements of the connector's source, the one written longest ago first. Items you can't read are left out, so a page can be short with more to follow.
|
|
1993
1993
|
*/
|
|
1994
1994
|
get: operations["listConnectorAgreements"];
|
|
1995
1995
|
put?: never;
|
|
@@ -2015,7 +2015,7 @@ interface paths {
|
|
|
2015
2015
|
put?: never;
|
|
2016
2016
|
/**
|
|
2017
2017
|
* Look up connector agreements
|
|
2018
|
-
* @description Looks up the agreements of the named items and returns those that exist, each item once, in the order you first named it. An item
|
|
2018
|
+
* @description Looks up the agreements of the named items and returns those that exist, each item once, in the order you first named it. An item you can't read is left out.
|
|
2019
2019
|
*/
|
|
2020
2020
|
post: operations["lookupConnectorAgreements"];
|
|
2021
2021
|
delete?: never;
|
|
@@ -9694,8 +9694,27 @@ interface components {
|
|
|
9694
9694
|
*/
|
|
9695
9695
|
on: "host";
|
|
9696
9696
|
};
|
|
9697
|
+
/** @description Where a connector's code is: the address of its code file, the file's SHA-256 and its size. */
|
|
9698
|
+
PluginConnectorCode: {
|
|
9699
|
+
/**
|
|
9700
|
+
* Format: uri
|
|
9701
|
+
* @description The `https` address of the connector's code file, with no user name or password.
|
|
9702
|
+
* @example https://example.com/releases/v0.0.14/rss.connector.mjs
|
|
9703
|
+
*/
|
|
9704
|
+
url: string;
|
|
9705
|
+
/**
|
|
9706
|
+
* @description The SHA-256 of the code file, in lowercase hexadecimal. A connector host runs the file only when its digest matches.
|
|
9707
|
+
* @example 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08
|
|
9708
|
+
*/
|
|
9709
|
+
sha256: string;
|
|
9710
|
+
/**
|
|
9711
|
+
* @description The size of the code file, in bytes. A connector host stops a fetch that passes it.
|
|
9712
|
+
* @example 524288
|
|
9713
|
+
*/
|
|
9714
|
+
size: number;
|
|
9715
|
+
};
|
|
9697
9716
|
/**
|
|
9698
|
-
* @description A plugin's connector: the source it writes under, the kinds it brings, the settings it reads, its sign-in and where
|
|
9717
|
+
* @description A plugin's connector: the source it writes under, the kinds it brings, the settings it reads, its sign-in, where it runs and where its code is.
|
|
9699
9718
|
* @example {
|
|
9700
9719
|
* "source": "rss",
|
|
9701
9720
|
* "source_name": "RSS",
|
|
@@ -9717,6 +9736,11 @@ interface components {
|
|
|
9717
9736
|
* ],
|
|
9718
9737
|
* "runs": {
|
|
9719
9738
|
* "on": "host"
|
|
9739
|
+
* },
|
|
9740
|
+
* "code": {
|
|
9741
|
+
* "url": "https://example.com/releases/v0.0.14/rss.connector.mjs",
|
|
9742
|
+
* "sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
|
|
9743
|
+
* "size": 524288
|
|
9720
9744
|
* }
|
|
9721
9745
|
* }
|
|
9722
9746
|
*/
|
|
@@ -9751,6 +9775,8 @@ interface components {
|
|
|
9751
9775
|
sign_in?: components["schemas"]["PluginConnectorSignIn"];
|
|
9752
9776
|
/** @description Where the connector runs. */
|
|
9753
9777
|
runs: components["schemas"]["PluginConnectorRuns"];
|
|
9778
|
+
/** @description Where the connector's code is, so a connector host can fetch and check it. A later version of the plugin may change it. Present only when the bundle gives it. */
|
|
9779
|
+
code?: components["schemas"]["PluginConnectorCode"];
|
|
9754
9780
|
};
|
|
9755
9781
|
/**
|
|
9756
9782
|
* @description A connector host is one machine that runs connectors, linked to the instance once.
|
|
@@ -10210,7 +10236,7 @@ interface components {
|
|
|
10210
10236
|
/** @description Jinja text the connector renders. Fills only a field of type `string`. */
|
|
10211
10237
|
template: string;
|
|
10212
10238
|
};
|
|
10213
|
-
/** @description What one kind of the connector brings. An answer holds every member; a member a save leaves out takes its default. */
|
|
10239
|
+
/** @description What one kind of the connector brings. An answer holds every member; a member a save leaves out takes its default, except when `target_type` is not the kind's own type: `fields` left out are the fields both types declare, each `{ "from": <field> }`, and `status_overrides` left out are none. */
|
|
10214
10240
|
ConnectorMappingKind: {
|
|
10215
10241
|
/** @description Whether the kind comes in. */
|
|
10216
10242
|
enabled?: boolean;
|
|
@@ -10459,7 +10485,7 @@ interface components {
|
|
|
10459
10485
|
* @example 01a1fa41-9d8e-7f10-b2c3-4d5e6f708192
|
|
10460
10486
|
*/
|
|
10461
10487
|
item_id?: string;
|
|
10462
|
-
/** @description A draft of the kind's mapping, checked as a save checks it
|
|
10488
|
+
/** @description A draft of the kind's mapping, checked as a save checks it. A member you leave out takes the default a save gives it, as `ConnectorMappingKind` says, including when `target_type` is another type. Leave it out to preview the mapping in force. */
|
|
10463
10489
|
mapping?: components["schemas"]["ConnectorMappingKind"];
|
|
10464
10490
|
};
|
|
10465
10491
|
/** @description The connector's answer to a mapping preview: `result` or `error`, not both. */
|
|
@@ -27934,7 +27960,7 @@ interface operations {
|
|
|
27934
27960
|
* {
|
|
27935
27961
|
* "id": "about",
|
|
27936
27962
|
* "label": "About",
|
|
27937
|
-
* "reverse_label": "Subject
|
|
27963
|
+
* "reverse_label": "Subject Of",
|
|
27938
27964
|
* "description": "Says that an item is about another item, such as a note about a book.",
|
|
27939
27965
|
* "cardinality": "many-to-many",
|
|
27940
27966
|
* "from_type_constraints": [
|
|
@@ -27952,7 +27978,7 @@ interface operations {
|
|
|
27952
27978
|
* },
|
|
27953
27979
|
* {
|
|
27954
27980
|
* "id": "attached-to",
|
|
27955
|
-
* "label": "Attached
|
|
27981
|
+
* "label": "Attached To",
|
|
27956
27982
|
* "reverse_label": "Attachments",
|
|
27957
27983
|
* "description": "Says that an item is attached to another item and exists for it, such as a scanned page attached to the document it was scanned for.",
|
|
27958
27984
|
* "cardinality": "many-to-many",
|
|
@@ -35724,7 +35750,7 @@ interface operations {
|
|
|
35724
35750
|
written: number;
|
|
35725
35751
|
/** @description How many agreements Marfa removed. */
|
|
35726
35752
|
cleared: number;
|
|
35727
|
-
/** @description The IDs Marfa skipped, in the order named, `set` first. An ID is skipped if no stored item has it or
|
|
35753
|
+
/** @description The IDs Marfa skipped, in the order named, `set` first. An ID is skipped if no stored item has it or it names an item you can't read. A trashed item counts as stored. */
|
|
35728
35754
|
skipped: string[];
|
|
35729
35755
|
};
|
|
35730
35756
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1989,7 +1989,7 @@ interface paths {
|
|
|
1989
1989
|
};
|
|
1990
1990
|
/**
|
|
1991
1991
|
* List connector agreements
|
|
1992
|
-
* @description Returns the agreements of the connector's source, the one written longest ago first. Items
|
|
1992
|
+
* @description Returns the agreements of the connector's source, the one written longest ago first. Items you can't read are left out, so a page can be short with more to follow.
|
|
1993
1993
|
*/
|
|
1994
1994
|
get: operations["listConnectorAgreements"];
|
|
1995
1995
|
put?: never;
|
|
@@ -2015,7 +2015,7 @@ interface paths {
|
|
|
2015
2015
|
put?: never;
|
|
2016
2016
|
/**
|
|
2017
2017
|
* Look up connector agreements
|
|
2018
|
-
* @description Looks up the agreements of the named items and returns those that exist, each item once, in the order you first named it. An item
|
|
2018
|
+
* @description Looks up the agreements of the named items and returns those that exist, each item once, in the order you first named it. An item you can't read is left out.
|
|
2019
2019
|
*/
|
|
2020
2020
|
post: operations["lookupConnectorAgreements"];
|
|
2021
2021
|
delete?: never;
|
|
@@ -9694,8 +9694,27 @@ interface components {
|
|
|
9694
9694
|
*/
|
|
9695
9695
|
on: "host";
|
|
9696
9696
|
};
|
|
9697
|
+
/** @description Where a connector's code is: the address of its code file, the file's SHA-256 and its size. */
|
|
9698
|
+
PluginConnectorCode: {
|
|
9699
|
+
/**
|
|
9700
|
+
* Format: uri
|
|
9701
|
+
* @description The `https` address of the connector's code file, with no user name or password.
|
|
9702
|
+
* @example https://example.com/releases/v0.0.14/rss.connector.mjs
|
|
9703
|
+
*/
|
|
9704
|
+
url: string;
|
|
9705
|
+
/**
|
|
9706
|
+
* @description The SHA-256 of the code file, in lowercase hexadecimal. A connector host runs the file only when its digest matches.
|
|
9707
|
+
* @example 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08
|
|
9708
|
+
*/
|
|
9709
|
+
sha256: string;
|
|
9710
|
+
/**
|
|
9711
|
+
* @description The size of the code file, in bytes. A connector host stops a fetch that passes it.
|
|
9712
|
+
* @example 524288
|
|
9713
|
+
*/
|
|
9714
|
+
size: number;
|
|
9715
|
+
};
|
|
9697
9716
|
/**
|
|
9698
|
-
* @description A plugin's connector: the source it writes under, the kinds it brings, the settings it reads, its sign-in and where
|
|
9717
|
+
* @description A plugin's connector: the source it writes under, the kinds it brings, the settings it reads, its sign-in, where it runs and where its code is.
|
|
9699
9718
|
* @example {
|
|
9700
9719
|
* "source": "rss",
|
|
9701
9720
|
* "source_name": "RSS",
|
|
@@ -9717,6 +9736,11 @@ interface components {
|
|
|
9717
9736
|
* ],
|
|
9718
9737
|
* "runs": {
|
|
9719
9738
|
* "on": "host"
|
|
9739
|
+
* },
|
|
9740
|
+
* "code": {
|
|
9741
|
+
* "url": "https://example.com/releases/v0.0.14/rss.connector.mjs",
|
|
9742
|
+
* "sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
|
|
9743
|
+
* "size": 524288
|
|
9720
9744
|
* }
|
|
9721
9745
|
* }
|
|
9722
9746
|
*/
|
|
@@ -9751,6 +9775,8 @@ interface components {
|
|
|
9751
9775
|
sign_in?: components["schemas"]["PluginConnectorSignIn"];
|
|
9752
9776
|
/** @description Where the connector runs. */
|
|
9753
9777
|
runs: components["schemas"]["PluginConnectorRuns"];
|
|
9778
|
+
/** @description Where the connector's code is, so a connector host can fetch and check it. A later version of the plugin may change it. Present only when the bundle gives it. */
|
|
9779
|
+
code?: components["schemas"]["PluginConnectorCode"];
|
|
9754
9780
|
};
|
|
9755
9781
|
/**
|
|
9756
9782
|
* @description A connector host is one machine that runs connectors, linked to the instance once.
|
|
@@ -10210,7 +10236,7 @@ interface components {
|
|
|
10210
10236
|
/** @description Jinja text the connector renders. Fills only a field of type `string`. */
|
|
10211
10237
|
template: string;
|
|
10212
10238
|
};
|
|
10213
|
-
/** @description What one kind of the connector brings. An answer holds every member; a member a save leaves out takes its default. */
|
|
10239
|
+
/** @description What one kind of the connector brings. An answer holds every member; a member a save leaves out takes its default, except when `target_type` is not the kind's own type: `fields` left out are the fields both types declare, each `{ "from": <field> }`, and `status_overrides` left out are none. */
|
|
10214
10240
|
ConnectorMappingKind: {
|
|
10215
10241
|
/** @description Whether the kind comes in. */
|
|
10216
10242
|
enabled?: boolean;
|
|
@@ -10459,7 +10485,7 @@ interface components {
|
|
|
10459
10485
|
* @example 01a1fa41-9d8e-7f10-b2c3-4d5e6f708192
|
|
10460
10486
|
*/
|
|
10461
10487
|
item_id?: string;
|
|
10462
|
-
/** @description A draft of the kind's mapping, checked as a save checks it
|
|
10488
|
+
/** @description A draft of the kind's mapping, checked as a save checks it. A member you leave out takes the default a save gives it, as `ConnectorMappingKind` says, including when `target_type` is another type. Leave it out to preview the mapping in force. */
|
|
10463
10489
|
mapping?: components["schemas"]["ConnectorMappingKind"];
|
|
10464
10490
|
};
|
|
10465
10491
|
/** @description The connector's answer to a mapping preview: `result` or `error`, not both. */
|
|
@@ -27934,7 +27960,7 @@ interface operations {
|
|
|
27934
27960
|
* {
|
|
27935
27961
|
* "id": "about",
|
|
27936
27962
|
* "label": "About",
|
|
27937
|
-
* "reverse_label": "Subject
|
|
27963
|
+
* "reverse_label": "Subject Of",
|
|
27938
27964
|
* "description": "Says that an item is about another item, such as a note about a book.",
|
|
27939
27965
|
* "cardinality": "many-to-many",
|
|
27940
27966
|
* "from_type_constraints": [
|
|
@@ -27952,7 +27978,7 @@ interface operations {
|
|
|
27952
27978
|
* },
|
|
27953
27979
|
* {
|
|
27954
27980
|
* "id": "attached-to",
|
|
27955
|
-
* "label": "Attached
|
|
27981
|
+
* "label": "Attached To",
|
|
27956
27982
|
* "reverse_label": "Attachments",
|
|
27957
27983
|
* "description": "Says that an item is attached to another item and exists for it, such as a scanned page attached to the document it was scanned for.",
|
|
27958
27984
|
* "cardinality": "many-to-many",
|
|
@@ -35724,7 +35750,7 @@ interface operations {
|
|
|
35724
35750
|
written: number;
|
|
35725
35751
|
/** @description How many agreements Marfa removed. */
|
|
35726
35752
|
cleared: number;
|
|
35727
|
-
/** @description The IDs Marfa skipped, in the order named, `set` first. An ID is skipped if no stored item has it or
|
|
35753
|
+
/** @description The IDs Marfa skipped, in the order named, `set` first. An ID is skipped if no stored item has it or it names an item you can't read. A trashed item counts as stored. */
|
|
35728
35754
|
skipped: string[];
|
|
35729
35755
|
};
|
|
35730
35756
|
};
|