@withmarfa/client 0.0.94 → 0.0.96
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 +55 -16
- package/dist/index.d.ts +55 -16
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1111,7 +1111,7 @@ interface paths {
|
|
|
1111
1111
|
put?: never;
|
|
1112
1112
|
/**
|
|
1113
1113
|
* Answer a mapping preview
|
|
1114
|
-
* @description Keeps the connector's answer to a pending preview as it sends it: the rendered
|
|
1114
|
+
* @description Keeps the connector's answer to a pending preview as it sends it: the rendered item as `result`, or `error`. Marfa never renders a field itself. Only the connector's own key, or local authority, can do this.
|
|
1115
1115
|
*/
|
|
1116
1116
|
post: operations["answerMappingPreview"];
|
|
1117
1117
|
delete?: never;
|
|
@@ -5739,8 +5739,13 @@ interface components {
|
|
|
5739
5739
|
* @example core.note
|
|
5740
5740
|
*/
|
|
5741
5741
|
id: string;
|
|
5742
|
-
/** @description What the type holds, cut at
|
|
5742
|
+
/** @description What the type holds, cut at 200 characters. Absent when the type has none. */
|
|
5743
5743
|
description?: string;
|
|
5744
|
+
/**
|
|
5745
|
+
* @description The parent type's identifier. Absent when the type has none.
|
|
5746
|
+
* @example core.file
|
|
5747
|
+
*/
|
|
5748
|
+
parent?: string;
|
|
5744
5749
|
/** @description How many active items of the type you can read. */
|
|
5745
5750
|
count: number;
|
|
5746
5751
|
};
|
|
@@ -5751,7 +5756,7 @@ interface components {
|
|
|
5751
5756
|
* @example parent-of
|
|
5752
5757
|
*/
|
|
5753
5758
|
id: string;
|
|
5754
|
-
/** @description What the edge type means, cut at
|
|
5759
|
+
/** @description What the edge type means, cut at 200 characters. Absent when it has none. */
|
|
5755
5760
|
description?: string;
|
|
5756
5761
|
access: components["schemas"]["PermissionLevel"] & unknown;
|
|
5757
5762
|
};
|
|
@@ -9691,6 +9696,13 @@ interface components {
|
|
|
9691
9696
|
source_mark?: string;
|
|
9692
9697
|
/** @description The kinds of record the connector brings. */
|
|
9693
9698
|
kinds: components["schemas"]["PluginConnectorKind"][];
|
|
9699
|
+
/**
|
|
9700
|
+
* @description The IDs of the edge types the connector writes, each one of the bundle's own `edge_types` or one Marfa ships whose ends aren't `system` types. Its key may write each.
|
|
9701
|
+
* @example [
|
|
9702
|
+
* "attached-to"
|
|
9703
|
+
* ]
|
|
9704
|
+
*/
|
|
9705
|
+
edge_types?: string[];
|
|
9694
9706
|
/** @description The settings the connector reads as it runs. */
|
|
9695
9707
|
settings?: components["schemas"]["PluginConnectorSetting"][];
|
|
9696
9708
|
/** @description How the connector signs in to its service. Present only for a connector that signs in. */
|
|
@@ -10366,10 +10378,8 @@ interface components {
|
|
|
10366
10378
|
* @enum {string}
|
|
10367
10379
|
*/
|
|
10368
10380
|
status: "pending" | "ready" | "failed";
|
|
10369
|
-
/** @description The
|
|
10370
|
-
result:
|
|
10371
|
-
[key: string]: unknown;
|
|
10372
|
-
} | null;
|
|
10381
|
+
/** @description The item the connector rendered, as it sent it, once `status` is `ready`. */
|
|
10382
|
+
result: components["schemas"]["ConnectorPreviewResult"] | null;
|
|
10373
10383
|
/** @description Why the connector could not render the preview, once `status` is `failed`. */
|
|
10374
10384
|
error: string | null;
|
|
10375
10385
|
/**
|
|
@@ -10412,13 +10422,27 @@ interface components {
|
|
|
10412
10422
|
};
|
|
10413
10423
|
/** @description The connector's answer to a mapping preview: `result` or `error`, not both. */
|
|
10414
10424
|
ConnectorPreviewAnswer: {
|
|
10415
|
-
/** @description The
|
|
10416
|
-
result?:
|
|
10417
|
-
[key: string]: unknown;
|
|
10418
|
-
};
|
|
10425
|
+
/** @description The item the connector rendered, at most 65,536 bytes written as JSON. Send this or `error`. */
|
|
10426
|
+
result?: components["schemas"]["ConnectorPreviewResult"];
|
|
10419
10427
|
/** @description Why the connector could not render the preview. Send this or `result`. */
|
|
10420
10428
|
error?: string;
|
|
10421
10429
|
};
|
|
10430
|
+
/** @description A mapping preview the connector rendered: the item as it would land under the mapping. */
|
|
10431
|
+
ConnectorPreviewResult: {
|
|
10432
|
+
/**
|
|
10433
|
+
* @description The type the item would land as: the `target_type` of the preview's `mapping`, or of its kind in the mapping in force.
|
|
10434
|
+
* @example common.ticket.task
|
|
10435
|
+
*/
|
|
10436
|
+
type: string;
|
|
10437
|
+
/** @description The fields the item would land with, by the target type's field names. */
|
|
10438
|
+
properties: {
|
|
10439
|
+
[key: string]: unknown;
|
|
10440
|
+
};
|
|
10441
|
+
/** @description The title the item would show. Present only if the connector sent one. */
|
|
10442
|
+
title?: string;
|
|
10443
|
+
/** @description The ID of the item the connector rendered, or `null` if it rendered from its service. Present only if the connector sent it. */
|
|
10444
|
+
source_item?: string | null;
|
|
10445
|
+
};
|
|
10422
10446
|
};
|
|
10423
10447
|
responses: never;
|
|
10424
10448
|
parameters: never;
|
|
@@ -21902,7 +21926,7 @@ interface operations {
|
|
|
21902
21926
|
"application/json": components["schemas"]["PluginConnectorSettings"];
|
|
21903
21927
|
};
|
|
21904
21928
|
};
|
|
21905
|
-
/** @description - `validation_error`: the body isn't an object, names a setting the connector doesn't declare, or gives a value that doesn't fit its setting: text of 1 to
|
|
21929
|
+
/** @description - `validation_error`: the body isn't an object, names a setting the connector doesn't declare, or gives a value that doesn't fit its setting: text of 1 to 65,536 characters, a secret's with no white space at either end, a number, `true` or `false`, or one of its `choices`. `details.errors` names each setting, never a secret's value, and nothing is stored. */
|
|
21906
21930
|
400: {
|
|
21907
21931
|
headers: {
|
|
21908
21932
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -24088,8 +24112,13 @@ interface operations {
|
|
|
24088
24112
|
* "mapping": null,
|
|
24089
24113
|
* "status": "ready",
|
|
24090
24114
|
* "result": {
|
|
24115
|
+
* "type": "rss.entry",
|
|
24091
24116
|
* "title": "A post",
|
|
24092
|
-
* "
|
|
24117
|
+
* "properties": {
|
|
24118
|
+
* "title": "A post",
|
|
24119
|
+
* "url": "https://example.com/a-post"
|
|
24120
|
+
* },
|
|
24121
|
+
* "source_item": "01a1fa41-9d8e-7f10-b2c3-4d5e6f708192"
|
|
24093
24122
|
* },
|
|
24094
24123
|
* "error": null,
|
|
24095
24124
|
* "created_at": "2026-10-03T09:30:00.000Z",
|
|
@@ -24251,8 +24280,13 @@ interface operations {
|
|
|
24251
24280
|
/**
|
|
24252
24281
|
* @example {
|
|
24253
24282
|
* "result": {
|
|
24283
|
+
* "type": "rss.entry",
|
|
24254
24284
|
* "title": "A post",
|
|
24255
|
-
* "
|
|
24285
|
+
* "properties": {
|
|
24286
|
+
* "title": "A post",
|
|
24287
|
+
* "url": "https://example.com/a-post"
|
|
24288
|
+
* },
|
|
24289
|
+
* "source_item": "01a1fa41-9d8e-7f10-b2c3-4d5e6f708192"
|
|
24256
24290
|
* }
|
|
24257
24291
|
* }
|
|
24258
24292
|
*/
|
|
@@ -24276,8 +24310,13 @@ interface operations {
|
|
|
24276
24310
|
* "mapping": null,
|
|
24277
24311
|
* "status": "ready",
|
|
24278
24312
|
* "result": {
|
|
24313
|
+
* "type": "rss.entry",
|
|
24279
24314
|
* "title": "A post",
|
|
24280
|
-
* "
|
|
24315
|
+
* "properties": {
|
|
24316
|
+
* "title": "A post",
|
|
24317
|
+
* "url": "https://example.com/a-post"
|
|
24318
|
+
* },
|
|
24319
|
+
* "source_item": "01a1fa41-9d8e-7f10-b2c3-4d5e6f708192"
|
|
24281
24320
|
* },
|
|
24282
24321
|
* "error": null,
|
|
24283
24322
|
* "created_at": "2026-10-03T09:30:00.000Z",
|
|
@@ -24288,7 +24327,7 @@ interface operations {
|
|
|
24288
24327
|
"application/json": components["schemas"]["ConnectorPreview"];
|
|
24289
24328
|
};
|
|
24290
24329
|
};
|
|
24291
|
-
/** @description `validation_error`: the body holds neither or both of `result` and `error`, a `result` that is
|
|
24330
|
+
/** @description `validation_error`: the body holds neither or both of `result` and `error`, a `result` that is over 65,536 bytes or isn't an item of the kind's target type with `properties`, an optional `title` and an optional `source_item`, an `error` that is not 1 to 500 characters, or another member. `details.errors` names each. */
|
|
24292
24331
|
400: {
|
|
24293
24332
|
headers: {
|
|
24294
24333
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
package/dist/index.d.ts
CHANGED
|
@@ -1111,7 +1111,7 @@ interface paths {
|
|
|
1111
1111
|
put?: never;
|
|
1112
1112
|
/**
|
|
1113
1113
|
* Answer a mapping preview
|
|
1114
|
-
* @description Keeps the connector's answer to a pending preview as it sends it: the rendered
|
|
1114
|
+
* @description Keeps the connector's answer to a pending preview as it sends it: the rendered item as `result`, or `error`. Marfa never renders a field itself. Only the connector's own key, or local authority, can do this.
|
|
1115
1115
|
*/
|
|
1116
1116
|
post: operations["answerMappingPreview"];
|
|
1117
1117
|
delete?: never;
|
|
@@ -5739,8 +5739,13 @@ interface components {
|
|
|
5739
5739
|
* @example core.note
|
|
5740
5740
|
*/
|
|
5741
5741
|
id: string;
|
|
5742
|
-
/** @description What the type holds, cut at
|
|
5742
|
+
/** @description What the type holds, cut at 200 characters. Absent when the type has none. */
|
|
5743
5743
|
description?: string;
|
|
5744
|
+
/**
|
|
5745
|
+
* @description The parent type's identifier. Absent when the type has none.
|
|
5746
|
+
* @example core.file
|
|
5747
|
+
*/
|
|
5748
|
+
parent?: string;
|
|
5744
5749
|
/** @description How many active items of the type you can read. */
|
|
5745
5750
|
count: number;
|
|
5746
5751
|
};
|
|
@@ -5751,7 +5756,7 @@ interface components {
|
|
|
5751
5756
|
* @example parent-of
|
|
5752
5757
|
*/
|
|
5753
5758
|
id: string;
|
|
5754
|
-
/** @description What the edge type means, cut at
|
|
5759
|
+
/** @description What the edge type means, cut at 200 characters. Absent when it has none. */
|
|
5755
5760
|
description?: string;
|
|
5756
5761
|
access: components["schemas"]["PermissionLevel"] & unknown;
|
|
5757
5762
|
};
|
|
@@ -9691,6 +9696,13 @@ interface components {
|
|
|
9691
9696
|
source_mark?: string;
|
|
9692
9697
|
/** @description The kinds of record the connector brings. */
|
|
9693
9698
|
kinds: components["schemas"]["PluginConnectorKind"][];
|
|
9699
|
+
/**
|
|
9700
|
+
* @description The IDs of the edge types the connector writes, each one of the bundle's own `edge_types` or one Marfa ships whose ends aren't `system` types. Its key may write each.
|
|
9701
|
+
* @example [
|
|
9702
|
+
* "attached-to"
|
|
9703
|
+
* ]
|
|
9704
|
+
*/
|
|
9705
|
+
edge_types?: string[];
|
|
9694
9706
|
/** @description The settings the connector reads as it runs. */
|
|
9695
9707
|
settings?: components["schemas"]["PluginConnectorSetting"][];
|
|
9696
9708
|
/** @description How the connector signs in to its service. Present only for a connector that signs in. */
|
|
@@ -10366,10 +10378,8 @@ interface components {
|
|
|
10366
10378
|
* @enum {string}
|
|
10367
10379
|
*/
|
|
10368
10380
|
status: "pending" | "ready" | "failed";
|
|
10369
|
-
/** @description The
|
|
10370
|
-
result:
|
|
10371
|
-
[key: string]: unknown;
|
|
10372
|
-
} | null;
|
|
10381
|
+
/** @description The item the connector rendered, as it sent it, once `status` is `ready`. */
|
|
10382
|
+
result: components["schemas"]["ConnectorPreviewResult"] | null;
|
|
10373
10383
|
/** @description Why the connector could not render the preview, once `status` is `failed`. */
|
|
10374
10384
|
error: string | null;
|
|
10375
10385
|
/**
|
|
@@ -10412,13 +10422,27 @@ interface components {
|
|
|
10412
10422
|
};
|
|
10413
10423
|
/** @description The connector's answer to a mapping preview: `result` or `error`, not both. */
|
|
10414
10424
|
ConnectorPreviewAnswer: {
|
|
10415
|
-
/** @description The
|
|
10416
|
-
result?:
|
|
10417
|
-
[key: string]: unknown;
|
|
10418
|
-
};
|
|
10425
|
+
/** @description The item the connector rendered, at most 65,536 bytes written as JSON. Send this or `error`. */
|
|
10426
|
+
result?: components["schemas"]["ConnectorPreviewResult"];
|
|
10419
10427
|
/** @description Why the connector could not render the preview. Send this or `result`. */
|
|
10420
10428
|
error?: string;
|
|
10421
10429
|
};
|
|
10430
|
+
/** @description A mapping preview the connector rendered: the item as it would land under the mapping. */
|
|
10431
|
+
ConnectorPreviewResult: {
|
|
10432
|
+
/**
|
|
10433
|
+
* @description The type the item would land as: the `target_type` of the preview's `mapping`, or of its kind in the mapping in force.
|
|
10434
|
+
* @example common.ticket.task
|
|
10435
|
+
*/
|
|
10436
|
+
type: string;
|
|
10437
|
+
/** @description The fields the item would land with, by the target type's field names. */
|
|
10438
|
+
properties: {
|
|
10439
|
+
[key: string]: unknown;
|
|
10440
|
+
};
|
|
10441
|
+
/** @description The title the item would show. Present only if the connector sent one. */
|
|
10442
|
+
title?: string;
|
|
10443
|
+
/** @description The ID of the item the connector rendered, or `null` if it rendered from its service. Present only if the connector sent it. */
|
|
10444
|
+
source_item?: string | null;
|
|
10445
|
+
};
|
|
10422
10446
|
};
|
|
10423
10447
|
responses: never;
|
|
10424
10448
|
parameters: never;
|
|
@@ -21902,7 +21926,7 @@ interface operations {
|
|
|
21902
21926
|
"application/json": components["schemas"]["PluginConnectorSettings"];
|
|
21903
21927
|
};
|
|
21904
21928
|
};
|
|
21905
|
-
/** @description - `validation_error`: the body isn't an object, names a setting the connector doesn't declare, or gives a value that doesn't fit its setting: text of 1 to
|
|
21929
|
+
/** @description - `validation_error`: the body isn't an object, names a setting the connector doesn't declare, or gives a value that doesn't fit its setting: text of 1 to 65,536 characters, a secret's with no white space at either end, a number, `true` or `false`, or one of its `choices`. `details.errors` names each setting, never a secret's value, and nothing is stored. */
|
|
21906
21930
|
400: {
|
|
21907
21931
|
headers: {
|
|
21908
21932
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -24088,8 +24112,13 @@ interface operations {
|
|
|
24088
24112
|
* "mapping": null,
|
|
24089
24113
|
* "status": "ready",
|
|
24090
24114
|
* "result": {
|
|
24115
|
+
* "type": "rss.entry",
|
|
24091
24116
|
* "title": "A post",
|
|
24092
|
-
* "
|
|
24117
|
+
* "properties": {
|
|
24118
|
+
* "title": "A post",
|
|
24119
|
+
* "url": "https://example.com/a-post"
|
|
24120
|
+
* },
|
|
24121
|
+
* "source_item": "01a1fa41-9d8e-7f10-b2c3-4d5e6f708192"
|
|
24093
24122
|
* },
|
|
24094
24123
|
* "error": null,
|
|
24095
24124
|
* "created_at": "2026-10-03T09:30:00.000Z",
|
|
@@ -24251,8 +24280,13 @@ interface operations {
|
|
|
24251
24280
|
/**
|
|
24252
24281
|
* @example {
|
|
24253
24282
|
* "result": {
|
|
24283
|
+
* "type": "rss.entry",
|
|
24254
24284
|
* "title": "A post",
|
|
24255
|
-
* "
|
|
24285
|
+
* "properties": {
|
|
24286
|
+
* "title": "A post",
|
|
24287
|
+
* "url": "https://example.com/a-post"
|
|
24288
|
+
* },
|
|
24289
|
+
* "source_item": "01a1fa41-9d8e-7f10-b2c3-4d5e6f708192"
|
|
24256
24290
|
* }
|
|
24257
24291
|
* }
|
|
24258
24292
|
*/
|
|
@@ -24276,8 +24310,13 @@ interface operations {
|
|
|
24276
24310
|
* "mapping": null,
|
|
24277
24311
|
* "status": "ready",
|
|
24278
24312
|
* "result": {
|
|
24313
|
+
* "type": "rss.entry",
|
|
24279
24314
|
* "title": "A post",
|
|
24280
|
-
* "
|
|
24315
|
+
* "properties": {
|
|
24316
|
+
* "title": "A post",
|
|
24317
|
+
* "url": "https://example.com/a-post"
|
|
24318
|
+
* },
|
|
24319
|
+
* "source_item": "01a1fa41-9d8e-7f10-b2c3-4d5e6f708192"
|
|
24281
24320
|
* },
|
|
24282
24321
|
* "error": null,
|
|
24283
24322
|
* "created_at": "2026-10-03T09:30:00.000Z",
|
|
@@ -24288,7 +24327,7 @@ interface operations {
|
|
|
24288
24327
|
"application/json": components["schemas"]["ConnectorPreview"];
|
|
24289
24328
|
};
|
|
24290
24329
|
};
|
|
24291
|
-
/** @description `validation_error`: the body holds neither or both of `result` and `error`, a `result` that is
|
|
24330
|
+
/** @description `validation_error`: the body holds neither or both of `result` and `error`, a `result` that is over 65,536 bytes or isn't an item of the kind's target type with `properties`, an optional `title` and an optional `source_item`, an `error` that is not 1 to 500 characters, or another member. `details.errors` names each. */
|
|
24292
24331
|
400: {
|
|
24293
24332
|
headers: {
|
|
24294
24333
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|