@withmarfa/client 0.0.94 → 0.0.95

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 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 fields as `result`, or `error`. Marfa never renders a field itself. Only the connector's own key, or local authority, can do this.
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;
@@ -9691,6 +9691,13 @@ interface components {
9691
9691
  source_mark?: string;
9692
9692
  /** @description The kinds of record the connector brings. */
9693
9693
  kinds: components["schemas"]["PluginConnectorKind"][];
9694
+ /**
9695
+ * @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.
9696
+ * @example [
9697
+ * "attached-to"
9698
+ * ]
9699
+ */
9700
+ edge_types?: string[];
9694
9701
  /** @description The settings the connector reads as it runs. */
9695
9702
  settings?: components["schemas"]["PluginConnectorSetting"][];
9696
9703
  /** @description How the connector signs in to its service. Present only for a connector that signs in. */
@@ -10366,10 +10373,8 @@ interface components {
10366
10373
  * @enum {string}
10367
10374
  */
10368
10375
  status: "pending" | "ready" | "failed";
10369
- /** @description The fields the connector rendered, as it sent them, once `status` is `ready`. */
10370
- result: {
10371
- [key: string]: unknown;
10372
- } | null;
10376
+ /** @description The item the connector rendered, as it sent it, once `status` is `ready`. */
10377
+ result: components["schemas"]["ConnectorPreviewResult"] | null;
10373
10378
  /** @description Why the connector could not render the preview, once `status` is `failed`. */
10374
10379
  error: string | null;
10375
10380
  /**
@@ -10412,13 +10417,27 @@ interface components {
10412
10417
  };
10413
10418
  /** @description The connector's answer to a mapping preview: `result` or `error`, not both. */
10414
10419
  ConnectorPreviewAnswer: {
10415
- /** @description The fields the connector rendered, at most 65,536 bytes written as JSON. Send this or `error`. */
10416
- result?: {
10417
- [key: string]: unknown;
10418
- };
10420
+ /** @description The item the connector rendered, at most 65,536 bytes written as JSON. Send this or `error`. */
10421
+ result?: components["schemas"]["ConnectorPreviewResult"];
10419
10422
  /** @description Why the connector could not render the preview. Send this or `result`. */
10420
10423
  error?: string;
10421
10424
  };
10425
+ /** @description A mapping preview the connector rendered: the item as it would land under the mapping. */
10426
+ ConnectorPreviewResult: {
10427
+ /**
10428
+ * @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.
10429
+ * @example common.ticket.task
10430
+ */
10431
+ type: string;
10432
+ /** @description The fields the item would land with, by the target type's field names. */
10433
+ properties: {
10434
+ [key: string]: unknown;
10435
+ };
10436
+ /** @description The title the item would show. Present only if the connector sent one. */
10437
+ title?: string;
10438
+ /** @description The ID of the item the connector rendered, or `null` if it rendered from its service. Present only if the connector sent it. */
10439
+ source_item?: string | null;
10440
+ };
10422
10441
  };
10423
10442
  responses: never;
10424
10443
  parameters: never;
@@ -21902,7 +21921,7 @@ interface operations {
21902
21921
  "application/json": components["schemas"]["PluginConnectorSettings"];
21903
21922
  };
21904
21923
  };
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 4096 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. */
21924
+ /** @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
21925
  400: {
21907
21926
  headers: {
21908
21927
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -24088,8 +24107,13 @@ interface operations {
24088
24107
  * "mapping": null,
24089
24108
  * "status": "ready",
24090
24109
  * "result": {
24110
+ * "type": "rss.entry",
24091
24111
  * "title": "A post",
24092
- * "url": "https://example.com/a-post"
24112
+ * "properties": {
24113
+ * "title": "A post",
24114
+ * "url": "https://example.com/a-post"
24115
+ * },
24116
+ * "source_item": "01a1fa41-9d8e-7f10-b2c3-4d5e6f708192"
24093
24117
  * },
24094
24118
  * "error": null,
24095
24119
  * "created_at": "2026-10-03T09:30:00.000Z",
@@ -24251,8 +24275,13 @@ interface operations {
24251
24275
  /**
24252
24276
  * @example {
24253
24277
  * "result": {
24278
+ * "type": "rss.entry",
24254
24279
  * "title": "A post",
24255
- * "url": "https://example.com/a-post"
24280
+ * "properties": {
24281
+ * "title": "A post",
24282
+ * "url": "https://example.com/a-post"
24283
+ * },
24284
+ * "source_item": "01a1fa41-9d8e-7f10-b2c3-4d5e6f708192"
24256
24285
  * }
24257
24286
  * }
24258
24287
  */
@@ -24276,8 +24305,13 @@ interface operations {
24276
24305
  * "mapping": null,
24277
24306
  * "status": "ready",
24278
24307
  * "result": {
24308
+ * "type": "rss.entry",
24279
24309
  * "title": "A post",
24280
- * "url": "https://example.com/a-post"
24310
+ * "properties": {
24311
+ * "title": "A post",
24312
+ * "url": "https://example.com/a-post"
24313
+ * },
24314
+ * "source_item": "01a1fa41-9d8e-7f10-b2c3-4d5e6f708192"
24281
24315
  * },
24282
24316
  * "error": null,
24283
24317
  * "created_at": "2026-10-03T09:30:00.000Z",
@@ -24288,7 +24322,7 @@ interface operations {
24288
24322
  "application/json": components["schemas"]["ConnectorPreview"];
24289
24323
  };
24290
24324
  };
24291
- /** @description `validation_error`: the body holds neither or both of `result` and `error`, a `result` that is not an object or is over 65,536 bytes, an `error` that is not 1 to 500 characters, or another member. `details.errors` names each. */
24325
+ /** @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
24326
  400: {
24293
24327
  headers: {
24294
24328
  "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 fields as `result`, or `error`. Marfa never renders a field itself. Only the connector's own key, or local authority, can do this.
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;
@@ -9691,6 +9691,13 @@ interface components {
9691
9691
  source_mark?: string;
9692
9692
  /** @description The kinds of record the connector brings. */
9693
9693
  kinds: components["schemas"]["PluginConnectorKind"][];
9694
+ /**
9695
+ * @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.
9696
+ * @example [
9697
+ * "attached-to"
9698
+ * ]
9699
+ */
9700
+ edge_types?: string[];
9694
9701
  /** @description The settings the connector reads as it runs. */
9695
9702
  settings?: components["schemas"]["PluginConnectorSetting"][];
9696
9703
  /** @description How the connector signs in to its service. Present only for a connector that signs in. */
@@ -10366,10 +10373,8 @@ interface components {
10366
10373
  * @enum {string}
10367
10374
  */
10368
10375
  status: "pending" | "ready" | "failed";
10369
- /** @description The fields the connector rendered, as it sent them, once `status` is `ready`. */
10370
- result: {
10371
- [key: string]: unknown;
10372
- } | null;
10376
+ /** @description The item the connector rendered, as it sent it, once `status` is `ready`. */
10377
+ result: components["schemas"]["ConnectorPreviewResult"] | null;
10373
10378
  /** @description Why the connector could not render the preview, once `status` is `failed`. */
10374
10379
  error: string | null;
10375
10380
  /**
@@ -10412,13 +10417,27 @@ interface components {
10412
10417
  };
10413
10418
  /** @description The connector's answer to a mapping preview: `result` or `error`, not both. */
10414
10419
  ConnectorPreviewAnswer: {
10415
- /** @description The fields the connector rendered, at most 65,536 bytes written as JSON. Send this or `error`. */
10416
- result?: {
10417
- [key: string]: unknown;
10418
- };
10420
+ /** @description The item the connector rendered, at most 65,536 bytes written as JSON. Send this or `error`. */
10421
+ result?: components["schemas"]["ConnectorPreviewResult"];
10419
10422
  /** @description Why the connector could not render the preview. Send this or `result`. */
10420
10423
  error?: string;
10421
10424
  };
10425
+ /** @description A mapping preview the connector rendered: the item as it would land under the mapping. */
10426
+ ConnectorPreviewResult: {
10427
+ /**
10428
+ * @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.
10429
+ * @example common.ticket.task
10430
+ */
10431
+ type: string;
10432
+ /** @description The fields the item would land with, by the target type's field names. */
10433
+ properties: {
10434
+ [key: string]: unknown;
10435
+ };
10436
+ /** @description The title the item would show. Present only if the connector sent one. */
10437
+ title?: string;
10438
+ /** @description The ID of the item the connector rendered, or `null` if it rendered from its service. Present only if the connector sent it. */
10439
+ source_item?: string | null;
10440
+ };
10422
10441
  };
10423
10442
  responses: never;
10424
10443
  parameters: never;
@@ -21902,7 +21921,7 @@ interface operations {
21902
21921
  "application/json": components["schemas"]["PluginConnectorSettings"];
21903
21922
  };
21904
21923
  };
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 4096 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. */
21924
+ /** @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
21925
  400: {
21907
21926
  headers: {
21908
21927
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -24088,8 +24107,13 @@ interface operations {
24088
24107
  * "mapping": null,
24089
24108
  * "status": "ready",
24090
24109
  * "result": {
24110
+ * "type": "rss.entry",
24091
24111
  * "title": "A post",
24092
- * "url": "https://example.com/a-post"
24112
+ * "properties": {
24113
+ * "title": "A post",
24114
+ * "url": "https://example.com/a-post"
24115
+ * },
24116
+ * "source_item": "01a1fa41-9d8e-7f10-b2c3-4d5e6f708192"
24093
24117
  * },
24094
24118
  * "error": null,
24095
24119
  * "created_at": "2026-10-03T09:30:00.000Z",
@@ -24251,8 +24275,13 @@ interface operations {
24251
24275
  /**
24252
24276
  * @example {
24253
24277
  * "result": {
24278
+ * "type": "rss.entry",
24254
24279
  * "title": "A post",
24255
- * "url": "https://example.com/a-post"
24280
+ * "properties": {
24281
+ * "title": "A post",
24282
+ * "url": "https://example.com/a-post"
24283
+ * },
24284
+ * "source_item": "01a1fa41-9d8e-7f10-b2c3-4d5e6f708192"
24256
24285
  * }
24257
24286
  * }
24258
24287
  */
@@ -24276,8 +24305,13 @@ interface operations {
24276
24305
  * "mapping": null,
24277
24306
  * "status": "ready",
24278
24307
  * "result": {
24308
+ * "type": "rss.entry",
24279
24309
  * "title": "A post",
24280
- * "url": "https://example.com/a-post"
24310
+ * "properties": {
24311
+ * "title": "A post",
24312
+ * "url": "https://example.com/a-post"
24313
+ * },
24314
+ * "source_item": "01a1fa41-9d8e-7f10-b2c3-4d5e6f708192"
24281
24315
  * },
24282
24316
  * "error": null,
24283
24317
  * "created_at": "2026-10-03T09:30:00.000Z",
@@ -24288,7 +24322,7 @@ interface operations {
24288
24322
  "application/json": components["schemas"]["ConnectorPreview"];
24289
24323
  };
24290
24324
  };
24291
- /** @description `validation_error`: the body holds neither or both of `result` and `error`, a `result` that is not an object or is over 65,536 bytes, an `error` that is not 1 to 500 characters, or another member. `details.errors` names each. */
24325
+ /** @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
24326
  400: {
24293
24327
  headers: {
24294
24328
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@withmarfa/client",
3
- "version": "0.0.94",
3
+ "version": "0.0.95",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",