@withmarfa/client 0.0.40 → 0.0.42
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 +430 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -796,6 +796,30 @@ interface paths {
|
|
|
796
796
|
patch?: never;
|
|
797
797
|
trace?: never;
|
|
798
798
|
};
|
|
799
|
+
"/types/{id}/icon": {
|
|
800
|
+
parameters: {
|
|
801
|
+
query?: never;
|
|
802
|
+
header?: never;
|
|
803
|
+
path?: never;
|
|
804
|
+
cookie?: never;
|
|
805
|
+
};
|
|
806
|
+
get?: never;
|
|
807
|
+
/**
|
|
808
|
+
* Set a type's icon
|
|
809
|
+
* @description Sets the owner's icon for a type. Reads answer it in place of the author's, and a subtype with no icon inherits it. Replacing the type keeps it. Needs `schema.write` and write on the type, as replacing it does.
|
|
810
|
+
*/
|
|
811
|
+
put: operations["setTypeIcon"];
|
|
812
|
+
post?: never;
|
|
813
|
+
/**
|
|
814
|
+
* Clear a type's icon
|
|
815
|
+
* @description Removes the icon the owner set for a type, so reads show the author's again. Clearing a type with no owner icon succeeds and changes nothing.
|
|
816
|
+
*/
|
|
817
|
+
delete: operations["clearTypeIcon"];
|
|
818
|
+
options?: never;
|
|
819
|
+
head?: never;
|
|
820
|
+
patch?: never;
|
|
821
|
+
trace?: never;
|
|
822
|
+
};
|
|
799
823
|
"/edge-types": {
|
|
800
824
|
parameters: {
|
|
801
825
|
query?: never;
|
|
@@ -2407,12 +2431,14 @@ interface components {
|
|
|
2407
2431
|
/** @description The item's type identifier at this version. */
|
|
2408
2432
|
type: string;
|
|
2409
2433
|
};
|
|
2410
|
-
/** @description
|
|
2434
|
+
/** @description How clients show a type and its items: the fields that hold an item's title and body, and the type's icon. Each hint comes from the nearest type that sets it. */
|
|
2411
2435
|
DisplayHints: {
|
|
2412
2436
|
/** @description The field that holds an item's title for display. */
|
|
2413
2437
|
title_field?: string;
|
|
2414
|
-
/** @description The field that holds an item's body for display. */
|
|
2438
|
+
/** @description The field that holds an item's body for display. The field holds Markdown. */
|
|
2415
2439
|
body_field?: string;
|
|
2440
|
+
/** @description The icon that stands for the type, as the kebab-case name of an icon in the Lucide release Marfa pins, such as `calendar-days`. On a type read back, the owner's own choice replaces the author's. */
|
|
2441
|
+
icon?: string;
|
|
2416
2442
|
} & {
|
|
2417
2443
|
[key: string]: unknown;
|
|
2418
2444
|
};
|
|
@@ -3682,7 +3708,7 @@ interface components {
|
|
|
3682
3708
|
type: components["schemas"]["TypeDefinition"] & unknown;
|
|
3683
3709
|
/** @description The canonical registered type's declared definition; `null` if its identifier is not registered. */
|
|
3684
3710
|
registered_type: components["schemas"]["TypeDefinition"] | null;
|
|
3685
|
-
/** @description The canonical registered definition, with inherited fields, policies and roles resolved as on `GET /types/{id}
|
|
3711
|
+
/** @description The canonical registered definition, with inherited fields, policies and roles resolved as on `GET /types/{id}`, with the author's icon and not the owner's; `null` if its identifier is not registered. */
|
|
3686
3712
|
resolved_type: components["schemas"]["TypeDefinition"] | null;
|
|
3687
3713
|
};
|
|
3688
3714
|
/** @description An error response. */
|
|
@@ -3834,6 +3860,28 @@ interface components {
|
|
|
3834
3860
|
id?: string;
|
|
3835
3861
|
};
|
|
3836
3862
|
/** @description An error response. */
|
|
3863
|
+
InvalidSchemaOrValidationErrorRefusal: {
|
|
3864
|
+
/** @description What went wrong. */
|
|
3865
|
+
error: {
|
|
3866
|
+
/**
|
|
3867
|
+
* @description A machine-readable code for the error. Use it in your logic.
|
|
3868
|
+
* @enum {string}
|
|
3869
|
+
*/
|
|
3870
|
+
code: "invalid_schema" | "validation_error";
|
|
3871
|
+
/** @description A description of the error for a person to read. It can change, so don't match on it. */
|
|
3872
|
+
message: string;
|
|
3873
|
+
/** @description More about the error, such as the field it concerns. Each code defines its own details. */
|
|
3874
|
+
details?: {
|
|
3875
|
+
[key: string]: unknown;
|
|
3876
|
+
};
|
|
3877
|
+
};
|
|
3878
|
+
};
|
|
3879
|
+
/** @description The icon to show for a type. */
|
|
3880
|
+
TypeIconRequest: {
|
|
3881
|
+
/** @description The kebab-case name of an icon in the Lucide release Marfa pins, such as `calendar-days`. */
|
|
3882
|
+
icon: string;
|
|
3883
|
+
};
|
|
3884
|
+
/** @description An error response. */
|
|
3837
3885
|
TypeHasSubtypesOrTypeInUseRefusal: {
|
|
3838
3886
|
/** @description What went wrong. */
|
|
3839
3887
|
error: {
|
|
@@ -15287,6 +15335,377 @@ interface operations {
|
|
|
15287
15335
|
};
|
|
15288
15336
|
};
|
|
15289
15337
|
};
|
|
15338
|
+
setTypeIcon: {
|
|
15339
|
+
parameters: {
|
|
15340
|
+
query?: never;
|
|
15341
|
+
header?: {
|
|
15342
|
+
/** @description The ID of the instance you expect, as `GET /` returns it. If another instance answers at this address, Marfa returns `409 instance_changed` and doesn't write. Leave it out to send the request to whichever instance answers. */
|
|
15343
|
+
"X-Marfa-Instance-Id"?: string;
|
|
15344
|
+
};
|
|
15345
|
+
path: {
|
|
15346
|
+
/** @description The identifier of the type, such as `core.note` or `acme.deal`. */
|
|
15347
|
+
id: string;
|
|
15348
|
+
};
|
|
15349
|
+
cookie?: never;
|
|
15350
|
+
};
|
|
15351
|
+
requestBody: {
|
|
15352
|
+
content: {
|
|
15353
|
+
"application/json": components["schemas"]["TypeIconRequest"];
|
|
15354
|
+
};
|
|
15355
|
+
};
|
|
15356
|
+
responses: {
|
|
15357
|
+
/** @description Returns the type, with the icon. */
|
|
15358
|
+
200: {
|
|
15359
|
+
headers: {
|
|
15360
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
15361
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
15362
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
15363
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
15364
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
15365
|
+
[name: string]: unknown;
|
|
15366
|
+
};
|
|
15367
|
+
content: {
|
|
15368
|
+
"application/json": components["schemas"]["TypeResponse"];
|
|
15369
|
+
};
|
|
15370
|
+
};
|
|
15371
|
+
/**
|
|
15372
|
+
* @description `invalid_schema`: `icon` isn't the name of an icon in the pinned Lucide release (`details.errors` names it).
|
|
15373
|
+
* - `validation_error`: the query has a parameter this endpoint doesn't take.
|
|
15374
|
+
*/
|
|
15375
|
+
400: {
|
|
15376
|
+
headers: {
|
|
15377
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
15378
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
15379
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
15380
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
15381
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
15382
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
15383
|
+
[name: string]: unknown;
|
|
15384
|
+
};
|
|
15385
|
+
content: {
|
|
15386
|
+
"application/json": components["schemas"]["InvalidSchemaOrValidationErrorRefusal"];
|
|
15387
|
+
};
|
|
15388
|
+
};
|
|
15389
|
+
/** @description `unauthorized`: the request has no credential, or its credential is not valid. */
|
|
15390
|
+
401: {
|
|
15391
|
+
headers: {
|
|
15392
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
15393
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
15394
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
15395
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
15396
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
15397
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
15398
|
+
[name: string]: unknown;
|
|
15399
|
+
};
|
|
15400
|
+
content: {
|
|
15401
|
+
"application/json": components["schemas"]["UnauthorizedRefusal"];
|
|
15402
|
+
};
|
|
15403
|
+
};
|
|
15404
|
+
/**
|
|
15405
|
+
* @description - `forbidden`: you lack `schema.write`, or your key is a connector's, which cannot change what the owner chose.
|
|
15406
|
+
* - `type_not_permitted`: your type map doesn't grant write on the type.
|
|
15407
|
+
*/
|
|
15408
|
+
403: {
|
|
15409
|
+
headers: {
|
|
15410
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
15411
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
15412
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
15413
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
15414
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
15415
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
15416
|
+
[name: string]: unknown;
|
|
15417
|
+
};
|
|
15418
|
+
content: {
|
|
15419
|
+
"application/json": components["schemas"]["ForbiddenOrTypeNotPermittedRefusal"];
|
|
15420
|
+
};
|
|
15421
|
+
};
|
|
15422
|
+
/** @description `type_not_found`: no type has this identifier. */
|
|
15423
|
+
404: {
|
|
15424
|
+
headers: {
|
|
15425
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
15426
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
15427
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
15428
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
15429
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
15430
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
15431
|
+
[name: string]: unknown;
|
|
15432
|
+
};
|
|
15433
|
+
content: {
|
|
15434
|
+
"application/json": components["schemas"]["TypeNotFoundRefusal"];
|
|
15435
|
+
};
|
|
15436
|
+
};
|
|
15437
|
+
/** @description `instance_changed`: `X-Marfa-Instance-Id` names another instance. Nothing is written. Rebuild the working copy from the instance at this address. */
|
|
15438
|
+
409: {
|
|
15439
|
+
headers: {
|
|
15440
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
15441
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
15442
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
15443
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
15444
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
15445
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
15446
|
+
[name: string]: unknown;
|
|
15447
|
+
};
|
|
15448
|
+
content: {
|
|
15449
|
+
"application/json": components["schemas"]["InstanceChangedRefusal"];
|
|
15450
|
+
};
|
|
15451
|
+
};
|
|
15452
|
+
/** @description `request_too_large`: the request body is larger than this instance accepts. */
|
|
15453
|
+
413: {
|
|
15454
|
+
headers: {
|
|
15455
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
15456
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
15457
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
15458
|
+
[name: string]: unknown;
|
|
15459
|
+
};
|
|
15460
|
+
content: {
|
|
15461
|
+
"application/json": components["schemas"]["RequestTooLargeRefusal"];
|
|
15462
|
+
};
|
|
15463
|
+
};
|
|
15464
|
+
/** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
|
|
15465
|
+
429: {
|
|
15466
|
+
headers: {
|
|
15467
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
15468
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
15469
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
15470
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
15471
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
15472
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
15473
|
+
"Retry-After": components["headers"]["Retry-After"];
|
|
15474
|
+
[name: string]: unknown;
|
|
15475
|
+
};
|
|
15476
|
+
content: {
|
|
15477
|
+
"application/json": components["schemas"]["RateLimitedRefusal"];
|
|
15478
|
+
};
|
|
15479
|
+
};
|
|
15480
|
+
/** @description `internal_error`: Marfa failed in a way it didn't expect, and the request may not have completed. Read what you changed before you repeat a write. */
|
|
15481
|
+
500: {
|
|
15482
|
+
headers: {
|
|
15483
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
15484
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
15485
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
15486
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
15487
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
15488
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
15489
|
+
[name: string]: unknown;
|
|
15490
|
+
};
|
|
15491
|
+
content: {
|
|
15492
|
+
"application/json": components["schemas"]["InternalErrorRefusal"];
|
|
15493
|
+
};
|
|
15494
|
+
};
|
|
15495
|
+
/** @description `write_contention`: the database was busy, and Marfa couldn't complete the request in time. Nothing changed. Try the request again. */
|
|
15496
|
+
503: {
|
|
15497
|
+
headers: {
|
|
15498
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
15499
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
15500
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
15501
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
15502
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
15503
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
15504
|
+
[name: string]: unknown;
|
|
15505
|
+
};
|
|
15506
|
+
content: {
|
|
15507
|
+
"application/json": components["schemas"]["WriteContentionRefusal"];
|
|
15508
|
+
};
|
|
15509
|
+
};
|
|
15510
|
+
/** @description `insufficient_storage`: the disk that holds the instance's data has no room for the request, or the request would leave less free than the instance keeps in reserve. Nothing changed, unless `details.write_outcome` is `unknown`, which means the write may have landed: read what you changed before you repeat it. Free space on the disk, then try the request again. */
|
|
15511
|
+
507: {
|
|
15512
|
+
headers: {
|
|
15513
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
15514
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
15515
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
15516
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
15517
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
15518
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
15519
|
+
[name: string]: unknown;
|
|
15520
|
+
};
|
|
15521
|
+
content: {
|
|
15522
|
+
"application/json": components["schemas"]["InsufficientStorageRefusal"];
|
|
15523
|
+
};
|
|
15524
|
+
};
|
|
15525
|
+
};
|
|
15526
|
+
};
|
|
15527
|
+
clearTypeIcon: {
|
|
15528
|
+
parameters: {
|
|
15529
|
+
query?: never;
|
|
15530
|
+
header?: {
|
|
15531
|
+
/** @description The ID of the instance you expect, as `GET /` returns it. If another instance answers at this address, Marfa returns `409 instance_changed` and doesn't write. Leave it out to send the request to whichever instance answers. */
|
|
15532
|
+
"X-Marfa-Instance-Id"?: string;
|
|
15533
|
+
};
|
|
15534
|
+
path: {
|
|
15535
|
+
/** @description The identifier of the type, such as `core.note` or `acme.deal`. */
|
|
15536
|
+
id: string;
|
|
15537
|
+
};
|
|
15538
|
+
cookie?: never;
|
|
15539
|
+
};
|
|
15540
|
+
requestBody?: never;
|
|
15541
|
+
responses: {
|
|
15542
|
+
/** @description Returns the type, with the author's icon if it has one. */
|
|
15543
|
+
200: {
|
|
15544
|
+
headers: {
|
|
15545
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
15546
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
15547
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
15548
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
15549
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
15550
|
+
[name: string]: unknown;
|
|
15551
|
+
};
|
|
15552
|
+
content: {
|
|
15553
|
+
"application/json": components["schemas"]["TypeResponse"];
|
|
15554
|
+
};
|
|
15555
|
+
};
|
|
15556
|
+
/** @description - `validation_error`: the query has a parameter this endpoint doesn't take. */
|
|
15557
|
+
400: {
|
|
15558
|
+
headers: {
|
|
15559
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
15560
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
15561
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
15562
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
15563
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
15564
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
15565
|
+
[name: string]: unknown;
|
|
15566
|
+
};
|
|
15567
|
+
content: {
|
|
15568
|
+
"application/json": components["schemas"]["ValidationErrorRefusal"];
|
|
15569
|
+
};
|
|
15570
|
+
};
|
|
15571
|
+
/** @description `unauthorized`: the request has no credential, or its credential is not valid. */
|
|
15572
|
+
401: {
|
|
15573
|
+
headers: {
|
|
15574
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
15575
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
15576
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
15577
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
15578
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
15579
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
15580
|
+
[name: string]: unknown;
|
|
15581
|
+
};
|
|
15582
|
+
content: {
|
|
15583
|
+
"application/json": components["schemas"]["UnauthorizedRefusal"];
|
|
15584
|
+
};
|
|
15585
|
+
};
|
|
15586
|
+
/**
|
|
15587
|
+
* @description - `forbidden`: you lack `schema.write`, or your key is a connector's, which cannot change what the owner chose.
|
|
15588
|
+
* - `type_not_permitted`: your type map doesn't grant write on the type.
|
|
15589
|
+
*/
|
|
15590
|
+
403: {
|
|
15591
|
+
headers: {
|
|
15592
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
15593
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
15594
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
15595
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
15596
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
15597
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
15598
|
+
[name: string]: unknown;
|
|
15599
|
+
};
|
|
15600
|
+
content: {
|
|
15601
|
+
"application/json": components["schemas"]["ForbiddenOrTypeNotPermittedRefusal"];
|
|
15602
|
+
};
|
|
15603
|
+
};
|
|
15604
|
+
/** @description `type_not_found`: no type has this identifier. */
|
|
15605
|
+
404: {
|
|
15606
|
+
headers: {
|
|
15607
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
15608
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
15609
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
15610
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
15611
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
15612
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
15613
|
+
[name: string]: unknown;
|
|
15614
|
+
};
|
|
15615
|
+
content: {
|
|
15616
|
+
"application/json": components["schemas"]["TypeNotFoundRefusal"];
|
|
15617
|
+
};
|
|
15618
|
+
};
|
|
15619
|
+
/** @description `instance_changed`: `X-Marfa-Instance-Id` names another instance. Nothing is written. Rebuild the working copy from the instance at this address. */
|
|
15620
|
+
409: {
|
|
15621
|
+
headers: {
|
|
15622
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
15623
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
15624
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
15625
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
15626
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
15627
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
15628
|
+
[name: string]: unknown;
|
|
15629
|
+
};
|
|
15630
|
+
content: {
|
|
15631
|
+
"application/json": components["schemas"]["InstanceChangedRefusal"];
|
|
15632
|
+
};
|
|
15633
|
+
};
|
|
15634
|
+
/** @description `request_too_large`: the request body is larger than this instance accepts. */
|
|
15635
|
+
413: {
|
|
15636
|
+
headers: {
|
|
15637
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
15638
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
15639
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
15640
|
+
[name: string]: unknown;
|
|
15641
|
+
};
|
|
15642
|
+
content: {
|
|
15643
|
+
"application/json": components["schemas"]["RequestTooLargeRefusal"];
|
|
15644
|
+
};
|
|
15645
|
+
};
|
|
15646
|
+
/** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
|
|
15647
|
+
429: {
|
|
15648
|
+
headers: {
|
|
15649
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
15650
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
15651
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
15652
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
15653
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
15654
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
15655
|
+
"Retry-After": components["headers"]["Retry-After"];
|
|
15656
|
+
[name: string]: unknown;
|
|
15657
|
+
};
|
|
15658
|
+
content: {
|
|
15659
|
+
"application/json": components["schemas"]["RateLimitedRefusal"];
|
|
15660
|
+
};
|
|
15661
|
+
};
|
|
15662
|
+
/** @description `internal_error`: Marfa failed in a way it didn't expect, and the request may not have completed. Read what you changed before you repeat a write. */
|
|
15663
|
+
500: {
|
|
15664
|
+
headers: {
|
|
15665
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
15666
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
15667
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
15668
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
15669
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
15670
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
15671
|
+
[name: string]: unknown;
|
|
15672
|
+
};
|
|
15673
|
+
content: {
|
|
15674
|
+
"application/json": components["schemas"]["InternalErrorRefusal"];
|
|
15675
|
+
};
|
|
15676
|
+
};
|
|
15677
|
+
/** @description `write_contention`: the database was busy, and Marfa couldn't complete the request in time. Nothing changed. Try the request again. */
|
|
15678
|
+
503: {
|
|
15679
|
+
headers: {
|
|
15680
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
15681
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
15682
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
15683
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
15684
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
15685
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
15686
|
+
[name: string]: unknown;
|
|
15687
|
+
};
|
|
15688
|
+
content: {
|
|
15689
|
+
"application/json": components["schemas"]["WriteContentionRefusal"];
|
|
15690
|
+
};
|
|
15691
|
+
};
|
|
15692
|
+
/** @description `insufficient_storage`: the disk that holds the instance's data has no room for the request, or the request would leave less free than the instance keeps in reserve. Nothing changed, unless `details.write_outcome` is `unknown`, which means the write may have landed: read what you changed before you repeat it. Free space on the disk, then try the request again. */
|
|
15693
|
+
507: {
|
|
15694
|
+
headers: {
|
|
15695
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
15696
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
15697
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
15698
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
15699
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
15700
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
15701
|
+
[name: string]: unknown;
|
|
15702
|
+
};
|
|
15703
|
+
content: {
|
|
15704
|
+
"application/json": components["schemas"]["InsufficientStorageRefusal"];
|
|
15705
|
+
};
|
|
15706
|
+
};
|
|
15707
|
+
};
|
|
15708
|
+
};
|
|
15290
15709
|
listEdgeTypes: {
|
|
15291
15710
|
parameters: {
|
|
15292
15711
|
query?: never;
|
|
@@ -29382,6 +29801,14 @@ interface operations {
|
|
|
29382
29801
|
edge_types_registered: number;
|
|
29383
29802
|
/** @description How many edge types Marfa skipped because the instance already registers them identically. */
|
|
29384
29803
|
edge_types_skipped: number;
|
|
29804
|
+
/** @description How many of the owner's type icons Marfa added, for types the instance had no owner icon for. */
|
|
29805
|
+
type_icons_added: number;
|
|
29806
|
+
/** @description How many of the owner's type icons Marfa skipped. */
|
|
29807
|
+
type_icons_skipped: number;
|
|
29808
|
+
/** @description How many of the owner's type icons Marfa skipped for each reason: `already_set` when the instance already has an owner icon for the type, `unknown_icon` when the name is not an icon of the Lucide release Marfa pins. */
|
|
29809
|
+
type_icons_skipped_reasons: {
|
|
29810
|
+
[key: string]: number;
|
|
29811
|
+
};
|
|
29385
29812
|
};
|
|
29386
29813
|
};
|
|
29387
29814
|
};
|