@withmarfa/client 0.0.14 → 0.0.15
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 +25 -10
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4099,7 +4099,7 @@ interface components {
|
|
|
4099
4099
|
created_at: string;
|
|
4100
4100
|
/** @description When the key stops working, in UTC, or `null` if it doesn't expire. */
|
|
4101
4101
|
expires_at: string | null;
|
|
4102
|
-
/** @description When the key was last
|
|
4102
|
+
/** @description When the key's use was last recorded, in UTC, or `null` if none is recorded. Marfa records usage asynchronously at most once an hour; a busy or unavailable store can delay or drop a record. */
|
|
4103
4103
|
last_used_at: string | null;
|
|
4104
4104
|
};
|
|
4105
4105
|
/**
|
|
@@ -4156,7 +4156,7 @@ interface components {
|
|
|
4156
4156
|
created_at: string;
|
|
4157
4157
|
/** @description When the key stops working, in UTC, or `null` if it doesn't expire. */
|
|
4158
4158
|
expires_at: string | null;
|
|
4159
|
-
/** @description When the key was last
|
|
4159
|
+
/** @description When the key's use was last recorded, in UTC, or `null` if none is recorded. Marfa records usage asynchronously at most once an hour; a busy or unavailable store can delay or drop a record. */
|
|
4160
4160
|
last_used_at: string | null;
|
|
4161
4161
|
};
|
|
4162
4162
|
/** @description An error response. */
|
|
@@ -4282,7 +4282,7 @@ interface components {
|
|
|
4282
4282
|
item_count: number;
|
|
4283
4283
|
/** @description The types that name this one as their `parent`. */
|
|
4284
4284
|
child_types: string[];
|
|
4285
|
-
/** @description `true` if `DELETE /platform-types/{id}` would remove the type: no item carries it and no type inherits from it
|
|
4285
|
+
/** @description `true` if `DELETE /platform-types/{id}` would remove the type: no item carries it and no type inherits from it or names it in `compatible_with`. */
|
|
4286
4286
|
removable: boolean;
|
|
4287
4287
|
};
|
|
4288
4288
|
/** @description An error response. */
|
|
@@ -4362,7 +4362,7 @@ interface components {
|
|
|
4362
4362
|
*/
|
|
4363
4363
|
created_at: string;
|
|
4364
4364
|
/**
|
|
4365
|
-
* @description When
|
|
4365
|
+
* @description When a recorded use occurred, in UTC, or `null` if none is recorded. Uses are recorded at most once a minute for browsers and once an hour for apps or keys. Failed recording leaves the previous value.
|
|
4366
4366
|
* @example 2026-10-05T14:12:08.000Z
|
|
4367
4367
|
*/
|
|
4368
4368
|
last_used_at: string | null;
|
|
@@ -12584,7 +12584,7 @@ interface operations {
|
|
|
12584
12584
|
};
|
|
12585
12585
|
/**
|
|
12586
12586
|
* @description - `forbidden`: you don't have `metadata.types:write`, or the identifier is under `core.*`, `system.*` or `marfa.*`, which no credential can register.
|
|
12587
|
-
* - `type_not_permitted`: your type map
|
|
12587
|
+
* - `type_not_permitted`: your type map lacks write on the identifier or a non-platform `parent` or `compatible_with` target (`details.grant` names it).
|
|
12588
12588
|
*/
|
|
12589
12589
|
403: {
|
|
12590
12590
|
headers: {
|
|
@@ -12927,9 +12927,9 @@ interface operations {
|
|
|
12927
12927
|
};
|
|
12928
12928
|
};
|
|
12929
12929
|
/**
|
|
12930
|
-
* @description - `forbidden`: you
|
|
12930
|
+
* @description - `forbidden`: you lack `schema.write` and `metadata.types:write`, or `details.changes` names changes needing `schema.write`.
|
|
12931
12931
|
* - `core_type_immutable`: Marfa ships this type.
|
|
12932
|
-
* - `type_not_permitted`: your type map
|
|
12932
|
+
* - `type_not_permitted`: your type map lacks write on the type or a new non-platform `parent` or `compatible_with` target (`details.grant` names it).
|
|
12933
12933
|
*/
|
|
12934
12934
|
403: {
|
|
12935
12935
|
headers: {
|
|
@@ -12987,7 +12987,7 @@ interface operations {
|
|
|
12987
12987
|
"application/json": components["schemas"]["RequestTooLargeRefusal"];
|
|
12988
12988
|
};
|
|
12989
12989
|
};
|
|
12990
|
-
/** @description `compatible_with_violation`: `compatible_with` names a type this instance doesn't hold, or one the type doesn't satisfy. */
|
|
12990
|
+
/** @description `compatible_with_violation`: `compatible_with` names a type this instance doesn't hold, or one the type doesn't satisfy, or the change breaks another type's claim (`details.dependent_type_ids`). */
|
|
12991
12991
|
422: {
|
|
12992
12992
|
headers: {
|
|
12993
12993
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -13068,7 +13068,7 @@ interface operations {
|
|
|
13068
13068
|
deleteType: {
|
|
13069
13069
|
parameters: {
|
|
13070
13070
|
query?: {
|
|
13071
|
-
/** @description Delete the type even if items of it exist, in any state. It doesn't cover
|
|
13071
|
+
/** @description Delete the type even if items of it exist, in any state. It doesn't cover subtypes or compatibility dependents. */
|
|
13072
13072
|
force?: "true" | "false";
|
|
13073
13073
|
};
|
|
13074
13074
|
header?: {
|
|
@@ -13191,6 +13191,21 @@ interface operations {
|
|
|
13191
13191
|
"application/json": components["schemas"]["RequestTooLargeRefusal"];
|
|
13192
13192
|
};
|
|
13193
13193
|
};
|
|
13194
|
+
/** @description `compatible_with_violation`: other types name this type in `compatible_with`. `details.dependent_type_ids` lists them. Remove their claims before deleting the target; `force=true` does not bypass this check. */
|
|
13195
|
+
422: {
|
|
13196
|
+
headers: {
|
|
13197
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
13198
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
13199
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
13200
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
13201
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
13202
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
13203
|
+
[name: string]: unknown;
|
|
13204
|
+
};
|
|
13205
|
+
content: {
|
|
13206
|
+
"application/json": components["schemas"]["CompatibleWithViolationRefusal"];
|
|
13207
|
+
};
|
|
13208
|
+
};
|
|
13194
13209
|
/** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
|
|
13195
13210
|
429: {
|
|
13196
13211
|
headers: {
|
|
@@ -21576,7 +21591,7 @@ interface operations {
|
|
|
21576
21591
|
"application/json": components["schemas"]["NotFoundOrTypeNotFoundRefusal"];
|
|
21577
21592
|
};
|
|
21578
21593
|
};
|
|
21579
|
-
/** @description `conflict`: the type isn't one this build stopped shipping, items still carry it,
|
|
21594
|
+
/** @description `conflict`: the type isn't one this build stopped shipping, items still carry it, another type inherits from it (`details.child_types`), or another type declares compatibility with it (`details.dependent_type_ids`). */
|
|
21580
21595
|
409: {
|
|
21581
21596
|
headers: {
|
|
21582
21597
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|