@withmarfa/client 0.0.10 → 0.0.11
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.ts +18 -8
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1724,10 +1724,10 @@ interface components {
|
|
|
1724
1724
|
/** @description The name the edge goes by when read from its target, such as `child-of` for `parent-of`. */
|
|
1725
1725
|
reverse_name?: string;
|
|
1726
1726
|
/**
|
|
1727
|
-
* @description The end of an edge whose file writes it in a folder: `source`, or `target` under the reverse name.
|
|
1727
|
+
* @description The end of an edge whose file writes it in a folder: `source`, or `target` under the reverse name. `none` means no file writes it, so a folder never renders it.
|
|
1728
1728
|
* @enum {string}
|
|
1729
1729
|
*/
|
|
1730
|
-
written_at: "source" | "target";
|
|
1730
|
+
written_at: "source" | "target" | "none";
|
|
1731
1731
|
/** @description `true` if Marfa ships the edge type: it exists on every instance, and you can't register or delete it. `false` for one registered through `POST /edge-types`. */
|
|
1732
1732
|
shipped: boolean;
|
|
1733
1733
|
};
|
|
@@ -1741,7 +1741,7 @@ interface components {
|
|
|
1741
1741
|
required?: boolean;
|
|
1742
1742
|
/** @description The values an `enum` property takes. */
|
|
1743
1743
|
enum_values?: string[];
|
|
1744
|
-
/** @description The type of each element of an `array` property. It can't be `thumbnail`. */
|
|
1744
|
+
/** @description The type of each element of an `array` property. A write is refused if an element is not a value of that type. It can't be `thumbnail`. */
|
|
1745
1745
|
items_type?: string;
|
|
1746
1746
|
/** @description A refinement of a `string` property. `url`, `email`, `date` and `datetime` store it as that type. `bcp47` and `iso3166` only label it. It can't be `thumbnail`. */
|
|
1747
1747
|
format?: string;
|
|
@@ -2031,6 +2031,13 @@ interface components {
|
|
|
2031
2031
|
} & {
|
|
2032
2032
|
[key: string]: unknown;
|
|
2033
2033
|
};
|
|
2034
|
+
/** @description How long Marfa keeps the feed items of a type. A part you leave out comes from the parent type. A type that no type in its chain gives a window keeps its items. */
|
|
2035
|
+
RetentionPolicy: {
|
|
2036
|
+
/** @description How many days Marfa keeps a feed item, counted from when it arrived: a whole number from 1 to 36,500. After that Marfa moves the item to the trash. `null` keeps feed items although a parent type expires them. Library items never expire. */
|
|
2037
|
+
feed_days?: number | null;
|
|
2038
|
+
} & {
|
|
2039
|
+
[key: string]: unknown;
|
|
2040
|
+
};
|
|
2034
2041
|
/** @description The source's current problems, by opaque key. Each message is at most 500 UTF-16 code units. The map has at most 200 entries and 512 KiB serialized as UTF-8. An empty map means no current problems. */
|
|
2035
2042
|
ConnectorProblems: {
|
|
2036
2043
|
[key: string]: string;
|
|
@@ -2880,10 +2887,10 @@ interface components {
|
|
|
2880
2887
|
/** @description The name the edge goes by when read from its target, such as `child-of` for `parent-of`. No other edge type can use it as an ID or reverse name. */
|
|
2881
2888
|
reverse_name?: string;
|
|
2882
2889
|
/**
|
|
2883
|
-
* @description The end of an edge whose file writes it in a folder: `source`, or `target` under the reverse name. `target` needs a `reverse_name`. Leave it out for `source`.
|
|
2890
|
+
* @description The end of an edge whose file writes it in a folder: `source`, or `target` under the reverse name. `none` means no file writes it, so a folder never renders it. `target` needs a `reverse_name`. Leave it out for `source`.
|
|
2884
2891
|
* @enum {string}
|
|
2885
2892
|
*/
|
|
2886
|
-
written_at?: "source" | "target";
|
|
2893
|
+
written_at?: "source" | "target" | "none";
|
|
2887
2894
|
/** @description `true` widens a registered type's endpoints in place. Retain every existing constraint token, or allow all types with `[]` or `*`; other members must stay unchanged. Omit or set `false` to register a new type. Not stored in the definition. */
|
|
2888
2895
|
evolve_constraints?: boolean;
|
|
2889
2896
|
};
|
|
@@ -2943,6 +2950,7 @@ interface components {
|
|
|
2943
2950
|
link_field?: string;
|
|
2944
2951
|
version_policy?: components["schemas"]["VersionPolicy"] & unknown;
|
|
2945
2952
|
merge_policy?: components["schemas"]["MergePolicy"] & unknown;
|
|
2953
|
+
retention_policy?: components["schemas"]["RetentionPolicy"] & unknown;
|
|
2946
2954
|
};
|
|
2947
2955
|
/**
|
|
2948
2956
|
* @description A structural role a type plays. `container`: the type can be the target of an `in-collection` edge.
|
|
@@ -2962,7 +2970,7 @@ interface components {
|
|
|
2962
2970
|
required?: boolean;
|
|
2963
2971
|
/** @description The values an `enum` field allows. */
|
|
2964
2972
|
enum_values?: string[];
|
|
2965
|
-
/** @description The type of each element of an `array` field. */
|
|
2973
|
+
/** @description The type of each element of an `array` field. A write is refused if an element is not a value of that type. */
|
|
2966
2974
|
items_type?: string;
|
|
2967
2975
|
/**
|
|
2968
2976
|
* @description A refinement of a `string` field, or of an array of strings. `url`, `email`, `datetime`, `date` and `thumbnail` become the field's `type`, and all but `thumbnail` an array's `items_type`. `bcp47` and `iso3166` stay as `format`.
|
|
@@ -3079,6 +3087,7 @@ interface components {
|
|
|
3079
3087
|
link_field?: string;
|
|
3080
3088
|
version_policy?: components["schemas"]["VersionPolicy"] & unknown;
|
|
3081
3089
|
merge_policy?: components["schemas"]["MergePolicy"] & unknown;
|
|
3090
|
+
retention_policy?: components["schemas"]["RetentionPolicy"] & unknown;
|
|
3082
3091
|
/** @description The type's identifier, such as `acme.deal` or `user.recipe`. */
|
|
3083
3092
|
id: string;
|
|
3084
3093
|
};
|
|
@@ -3162,6 +3171,7 @@ interface components {
|
|
|
3162
3171
|
link_field?: string;
|
|
3163
3172
|
version_policy?: components["schemas"]["VersionPolicy"] & unknown;
|
|
3164
3173
|
merge_policy?: components["schemas"]["MergePolicy"] & unknown;
|
|
3174
|
+
retention_policy?: components["schemas"]["RetentionPolicy"] & unknown;
|
|
3165
3175
|
/** @description The type's identifier, as `GET /types/{id}` returns it. The path names the type, so an identifier here changes nothing. */
|
|
3166
3176
|
id?: string;
|
|
3167
3177
|
};
|
|
@@ -4584,7 +4594,7 @@ interface components {
|
|
|
4584
4594
|
};
|
|
4585
4595
|
};
|
|
4586
4596
|
};
|
|
4587
|
-
/** @description An item event: a change to an item, or, as `metadata.changed`, to its tags or extensions. */
|
|
4597
|
+
/** @description An item event: a change to an item, or, as `metadata.changed`, to its tags or extensions. Except on a copy stream, you receive it only if your source filter shows the item. */
|
|
4588
4598
|
ItemEventFrame: {
|
|
4589
4599
|
/**
|
|
4590
4600
|
* @description The event, which is also the frame's `event:`.
|
|
@@ -4599,7 +4609,7 @@ interface components {
|
|
|
4599
4609
|
/** @description Only on a copy stream: `true` if the item is in the set you can list, `false` if you can read it only by ID. */
|
|
4600
4610
|
listed?: boolean;
|
|
4601
4611
|
};
|
|
4602
|
-
/** @description An edge event: a change to an edge. You receive it only if you can read both the edge type and `source_type
|
|
4612
|
+
/** @description An edge event: a change to an edge. You receive it only if you can read both the edge type and `source_type`, and, except on a copy stream, only if your source filter shows the edge's source item. */
|
|
4603
4613
|
EdgeEventFrame: {
|
|
4604
4614
|
/**
|
|
4605
4615
|
* @description The event, which is also the frame's `event:`.
|