@withmarfa/client 0.0.12 → 0.0.13

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +447 -31
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -17,7 +17,7 @@ interface paths {
17
17
  };
18
18
  /**
19
19
  * Describe the instance
20
- * @description Describes the instance: its `instance_id`, the build it runs, the contract version it speaks and the features it serves. Needs no credential.
20
+ * @description Describes the instance: its display name, `instance_id`, the build it runs, the contract version it speaks and the features it serves. Needs no credential.
21
21
  */
22
22
  get: operations["getInstance"];
23
23
  put?: never;
@@ -1357,7 +1357,7 @@ interface paths {
1357
1357
  };
1358
1358
  /**
1359
1359
  * Get the configuration
1360
- * @description Returns the instance configuration: its enforcement levers and retention settings, with its `instance_id`. A setting nobody has set is left out. Requires `config.manage`.
1360
+ * @description Returns the instance configuration: its display name, enforcement levers and retention settings, with its `instance_id`. A setting nobody has set is left out. Requires `config.manage`.
1361
1361
  */
1362
1362
  get: operations["getConfig"];
1363
1363
  /**
@@ -1453,7 +1453,11 @@ interface paths {
1453
1453
  delete?: never;
1454
1454
  options?: never;
1455
1455
  head?: never;
1456
- patch?: never;
1456
+ /**
1457
+ * Update the owner
1458
+ * @description Updates the owner's email or name and returns the owner. Requires a direct owner sign-in within five minutes or private machine authority. Changing email needs no confirmation; credentials, sessions, and grants keep their identity.
1459
+ */
1460
+ patch: operations["updateOwner"];
1457
1461
  trace?: never;
1458
1462
  };
1459
1463
  "/owner/sign-ins": {
@@ -1544,6 +1548,26 @@ interface paths {
1544
1548
  patch: operations["updateOwnerPasskey"];
1545
1549
  trace?: never;
1546
1550
  };
1551
+ "/profile": {
1552
+ parameters: {
1553
+ query?: never;
1554
+ header?: never;
1555
+ path?: never;
1556
+ cookie?: never;
1557
+ };
1558
+ get?: never;
1559
+ put?: never;
1560
+ post?: never;
1561
+ delete?: never;
1562
+ options?: never;
1563
+ head?: never;
1564
+ /**
1565
+ * Update the profile
1566
+ * @description Updates the owner's name or avatar and returns `ok: true`. Requires profile write permission for every submitted field; email cannot be changed here. All fields commit together.
1567
+ */
1568
+ patch: operations["updateProfile"];
1569
+ trace?: never;
1570
+ };
1547
1571
  "/export": {
1548
1572
  parameters: {
1549
1573
  query?: never;
@@ -1820,6 +1844,38 @@ interface components {
1820
1844
  source_allowlist?: components["schemas"]["TypeAndSourceLever"] & unknown;
1821
1845
  source_filter?: components["schemas"]["TypeAndSourceLever"] & unknown;
1822
1846
  };
1847
+ /** @description Profile field permissions. Only the owner can change email. */
1848
+ ProfilePermissions: {
1849
+ /**
1850
+ * @description Access to every profile field. write changes only name and avatar.
1851
+ * @enum {string}
1852
+ */
1853
+ "*"?: "read" | "write";
1854
+ /**
1855
+ * @description Access to the owner's name.
1856
+ * @enum {string}
1857
+ */
1858
+ name?: "read" | "write";
1859
+ /**
1860
+ * @description Read access to the owner's email address.
1861
+ * @enum {string}
1862
+ */
1863
+ email?: "read";
1864
+ /**
1865
+ * @description Access to the owner's avatar URL.
1866
+ * @enum {string}
1867
+ */
1868
+ avatar?: "read" | "write";
1869
+ };
1870
+ /** @description Stored profile levels by field. Only name and avatar permit writes. */
1871
+ StoredProfilePermissions: {
1872
+ [key: string]: components["schemas"]["PermissionLevel"];
1873
+ };
1874
+ /**
1875
+ * @description What a key may do with an entry: `read` it, or `write` it (which includes reading). A name no entry covers is denied.
1876
+ * @enum {string}
1877
+ */
1878
+ PermissionLevel: "read" | "write";
1823
1879
  /**
1824
1880
  * @description An item's lifecycle state. `active`: in use, and what a listing returns by default. `archived`: kept and readable by ID, but left out of a default listing. `trashed`: in the trash until restored or purged. `revoked`: retired for good, on `system.*` items only.
1825
1881
  * @enum {string}
@@ -2125,11 +2181,8 @@ interface components {
2125
2181
  };
2126
2182
  /** @description An instance: its identity, build, contract version and features. */
2127
2183
  InstanceDescription: {
2128
- /**
2129
- * @description Always `marfa`.
2130
- * @enum {string}
2131
- */
2132
- name: "marfa";
2184
+ /** @description The instance's display name. Defaults to `Marfa`. */
2185
+ name: string;
2133
2186
  /** @description The build the instance runs. */
2134
2187
  version: string;
2135
2188
  /** @description Unique identifier for the instance. `GET /config` and an archive's manifest show the same value. */
@@ -4004,10 +4057,7 @@ interface components {
4004
4057
  metadata_permissions: {
4005
4058
  [key: string]: components["schemas"]["PermissionLevel"];
4006
4059
  };
4007
- /** @description What the key may `read` or `write` of the owner's profile: `name`, `email` or `avatar`, or `*` for all of it. */
4008
- profile_permissions: {
4009
- [key: string]: components["schemas"]["PermissionLevel"];
4010
- };
4060
+ profile_permissions: components["schemas"]["StoredProfilePermissions"] & unknown;
4011
4061
  enforcement_override?: components["schemas"]["EnforcementOverride"] & unknown;
4012
4062
  /** @description When the key was created, in UTC. */
4013
4063
  created_at: string;
@@ -4026,11 +4076,6 @@ interface components {
4026
4076
  * @enum {string}
4027
4077
  */
4028
4078
  TypePermissionLevel: "read" | "write" | "none";
4029
- /**
4030
- * @description What a key may do with an entry: `read` it, or `write` it (which includes reading). A name no entry covers is denied.
4031
- * @enum {string}
4032
- */
4033
- PermissionLevel: "read" | "write";
4034
4079
  /** @description A page holding every key you can reach. */
4035
4080
  ApiKeyPage: {
4036
4081
  /** @description Every key you can reach. */
@@ -4069,10 +4114,7 @@ interface components {
4069
4114
  metadata_permissions: {
4070
4115
  [key: string]: components["schemas"]["PermissionLevel"];
4071
4116
  };
4072
- /** @description What the key may `read` or `write` of the owner's profile: `name`, `email` or `avatar`, or `*` for all of it. */
4073
- profile_permissions: {
4074
- [key: string]: components["schemas"]["PermissionLevel"];
4075
- };
4117
+ profile_permissions: components["schemas"]["StoredProfilePermissions"] & unknown;
4076
4118
  enforcement_override?: components["schemas"]["EnforcementOverride"] & unknown;
4077
4119
  /** @description When the key was created, in UTC. */
4078
4120
  created_at: string;
@@ -4098,10 +4140,12 @@ interface components {
4098
4140
  };
4099
4141
  };
4100
4142
  };
4101
- /** @description The instance configuration: its enforcement levers and retention settings, with the instance's ID. */
4143
+ /** @description The instance configuration: its display name, enforcement levers and retention settings, with the instance's ID. */
4102
4144
  InstanceConfig: {
4103
4145
  /** @description Unique identifier for the instance, the same value `GET /` returns. */
4104
4146
  instance_id: string;
4147
+ /** @description The instance's display name, without control or bidirectional formatting characters. Spaces at each end are trimmed. Absent: `Marfa`. */
4148
+ name?: string;
4105
4149
  /** @description The instance's enforcement levers. Each applies to every credential that doesn't set the same lever itself. Absent: no lever is on. */
4106
4150
  enforcement?: {
4107
4151
  strict_mode?: components["schemas"]["TypeLever"] & unknown;
@@ -20022,10 +20066,7 @@ interface operations {
20022
20066
  metadata_permissions?: {
20023
20067
  [key: string]: components["schemas"]["PermissionLevel"];
20024
20068
  };
20025
- /** @description What the key may `read` or `write` of the owner's profile: `name`, `email` or `avatar`, or `*` for all of it. */
20026
- profile_permissions?: {
20027
- [key: string]: components["schemas"]["PermissionLevel"];
20028
- };
20069
+ profile_permissions?: components["schemas"]["ProfilePermissions"] & unknown;
20029
20070
  enforcement_override?: components["schemas"]["EnforcementOverride"] & unknown;
20030
20071
  /** @description When the key stops working, as an ISO 8601 date and time in the future. Leave it out for a key that never expires, or, if your own key expires, for one that expires when yours does. It can't be later than your own key's `expires_at`. */
20031
20072
  expires_at?: string;
@@ -20552,10 +20593,7 @@ interface operations {
20552
20593
  metadata_permissions?: {
20553
20594
  [key: string]: components["schemas"]["PermissionLevel"];
20554
20595
  };
20555
- /** @description What the key may `read` or `write` of the owner's profile: `name`, `email` or `avatar`, or `*` for all of it. */
20556
- profile_permissions?: {
20557
- [key: string]: components["schemas"]["PermissionLevel"];
20558
- };
20596
+ profile_permissions?: components["schemas"]["ProfilePermissions"] & unknown;
20559
20597
  /** @description The permissions the key holds, such as `audit.read`. */
20560
20598
  permissions?: components["schemas"]["Permission"][];
20561
20599
  /** @description Replaces the key's enforcement levers whole. `null` clears them. */
@@ -20881,6 +20919,8 @@ interface operations {
20881
20919
  "application/json": {
20882
20920
  /** @description This instance's ID, accepted so you can send back what `GET /config` returned. It sets nothing. */
20883
20921
  instance_id?: string;
20922
+ /** @description The instance's display name, without control or bidirectional formatting characters. Spaces at each end are trimmed. Absent: `Marfa`. */
20923
+ name?: string;
20884
20924
  /** @description The instance's enforcement levers. Each applies to every credential that doesn't set the same lever itself. Absent: no lever is on. */
20885
20925
  enforcement?: {
20886
20926
  strict_mode?: components["schemas"]["TypeLeverStrict"] & unknown;
@@ -20917,7 +20957,7 @@ interface operations {
20917
20957
  };
20918
20958
  /**
20919
20959
  * @description - `missing_required_field`: a lever lacks `types` or `sources`.
20920
- * - `validation_error`: the body names a setting Marfa doesn't know, a retention value is out of range, or `instance_id` names a different instance.
20960
+ * - `validation_error`: the body names a setting Marfa doesn't know, a retention value is out of range, the name is invalid, or `instance_id` names a different instance.
20921
20961
  */
20922
20962
  400: {
20923
20963
  headers: {
@@ -21838,6 +21878,194 @@ interface operations {
21838
21878
  };
21839
21879
  };
21840
21880
  };
21881
+ updateOwner: {
21882
+ parameters: {
21883
+ query?: never;
21884
+ header?: {
21885
+ /** @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. */
21886
+ "X-Marfa-Instance-Id"?: string;
21887
+ };
21888
+ path?: never;
21889
+ cookie?: never;
21890
+ };
21891
+ requestBody: {
21892
+ content: {
21893
+ "application/json": {
21894
+ /**
21895
+ * Format: email
21896
+ * @description Email address used to sign in. Stored in lowercase; changing it clears email verification.
21897
+ */
21898
+ email?: string;
21899
+ /** @description Display name, without control or bidirectional formatting characters. Spaces at each end are trimmed. */
21900
+ name?: string;
21901
+ };
21902
+ };
21903
+ };
21904
+ responses: {
21905
+ /** @description The updated owner. */
21906
+ 200: {
21907
+ headers: {
21908
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
21909
+ "X-Request-ID": components["headers"]["X-Request-ID"];
21910
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
21911
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
21912
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
21913
+ [name: string]: unknown;
21914
+ };
21915
+ content: {
21916
+ "application/json": components["schemas"]["Owner"];
21917
+ };
21918
+ };
21919
+ /** @description The body is empty, has an unknown field, or a field is invalid. */
21920
+ 400: {
21921
+ headers: {
21922
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
21923
+ "X-Request-ID": components["headers"]["X-Request-ID"];
21924
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
21925
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
21926
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
21927
+ "X-Error-Code": components["headers"]["X-Error-Code"];
21928
+ [name: string]: unknown;
21929
+ };
21930
+ content: {
21931
+ "application/json": components["schemas"]["MissingRequiredFieldOrValidationErrorRefusal"];
21932
+ };
21933
+ };
21934
+ /** @description `unauthorized`: the request has no credential, or its credential is not valid. */
21935
+ 401: {
21936
+ headers: {
21937
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
21938
+ "X-Request-ID": components["headers"]["X-Request-ID"];
21939
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
21940
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
21941
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
21942
+ "X-Error-Code": components["headers"]["X-Error-Code"];
21943
+ [name: string]: unknown;
21944
+ };
21945
+ content: {
21946
+ "application/json": components["schemas"]["UnauthorizedRefusal"];
21947
+ };
21948
+ };
21949
+ /** @description The request needs private machine authority or direct owner authentication within five minutes. */
21950
+ 403: {
21951
+ headers: {
21952
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
21953
+ "X-Request-ID": components["headers"]["X-Request-ID"];
21954
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
21955
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
21956
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
21957
+ "X-Error-Code": components["headers"]["X-Error-Code"];
21958
+ [name: string]: unknown;
21959
+ };
21960
+ content: {
21961
+ "application/json": components["schemas"]["ForbiddenRefusal"];
21962
+ };
21963
+ };
21964
+ /** @description The owner is unavailable. */
21965
+ 404: {
21966
+ headers: {
21967
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
21968
+ "X-Request-ID": components["headers"]["X-Request-ID"];
21969
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
21970
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
21971
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
21972
+ "X-Error-Code": components["headers"]["X-Error-Code"];
21973
+ [name: string]: unknown;
21974
+ };
21975
+ content: {
21976
+ "application/json": components["schemas"]["OwnerNotFoundRefusal"];
21977
+ };
21978
+ };
21979
+ /** @description `instance_changed`: `X-Marfa-Instance-Id` names another instance. Nothing is written. Rebuild the working copy from the instance at this address. */
21980
+ 409: {
21981
+ headers: {
21982
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
21983
+ "X-Request-ID": components["headers"]["X-Request-ID"];
21984
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
21985
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
21986
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
21987
+ "X-Error-Code": components["headers"]["X-Error-Code"];
21988
+ [name: string]: unknown;
21989
+ };
21990
+ content: {
21991
+ "application/json": components["schemas"]["InstanceChangedRefusal"];
21992
+ };
21993
+ };
21994
+ /** @description `request_too_large`: the request body is larger than this instance accepts. */
21995
+ 413: {
21996
+ headers: {
21997
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
21998
+ "X-Request-ID": components["headers"]["X-Request-ID"];
21999
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22000
+ [name: string]: unknown;
22001
+ };
22002
+ content: {
22003
+ "application/json": components["schemas"]["RequestTooLargeRefusal"];
22004
+ };
22005
+ };
22006
+ /** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
22007
+ 429: {
22008
+ headers: {
22009
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22010
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22011
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22012
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22013
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22014
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22015
+ "Retry-After": components["headers"]["Retry-After"];
22016
+ [name: string]: unknown;
22017
+ };
22018
+ content: {
22019
+ "application/json": components["schemas"]["RateLimitedRefusal"];
22020
+ };
22021
+ };
22022
+ /** @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. */
22023
+ 500: {
22024
+ headers: {
22025
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22026
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22027
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22028
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22029
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22030
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22031
+ [name: string]: unknown;
22032
+ };
22033
+ content: {
22034
+ "application/json": components["schemas"]["InternalErrorRefusal"];
22035
+ };
22036
+ };
22037
+ /** @description `write_contention`: the database was busy, and Marfa couldn't complete the request in time. Nothing changed. Try the request again. */
22038
+ 503: {
22039
+ headers: {
22040
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22041
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22042
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22043
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22044
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22045
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22046
+ [name: string]: unknown;
22047
+ };
22048
+ content: {
22049
+ "application/json": components["schemas"]["WriteContentionRefusal"];
22050
+ };
22051
+ };
22052
+ /** @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. */
22053
+ 507: {
22054
+ headers: {
22055
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22056
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22057
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22058
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22059
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22060
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22061
+ [name: string]: unknown;
22062
+ };
22063
+ content: {
22064
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
22065
+ };
22066
+ };
22067
+ };
22068
+ };
21841
22069
  listSignIns: {
21842
22070
  parameters: {
21843
22071
  query?: never;
@@ -22839,6 +23067,194 @@ interface operations {
22839
23067
  };
22840
23068
  };
22841
23069
  };
23070
+ updateProfile: {
23071
+ parameters: {
23072
+ query?: never;
23073
+ header?: {
23074
+ /** @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. */
23075
+ "X-Marfa-Instance-Id"?: string;
23076
+ };
23077
+ path?: never;
23078
+ cookie?: never;
23079
+ };
23080
+ requestBody: {
23081
+ content: {
23082
+ "application/json": {
23083
+ /** @description Display name, without control or bidirectional formatting characters. Spaces at each end are trimmed. */
23084
+ name?: string;
23085
+ /**
23086
+ * Format: uri
23087
+ * @description HTTP or HTTPS avatar URL, at most 2048 characters. null clears it. Marfa does not fetch the URL.
23088
+ */
23089
+ avatar?: string | null;
23090
+ };
23091
+ };
23092
+ };
23093
+ responses: {
23094
+ /** @description Returns ok: true. The profile was updated. */
23095
+ 200: {
23096
+ headers: {
23097
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
23098
+ "X-Request-ID": components["headers"]["X-Request-ID"];
23099
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
23100
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
23101
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
23102
+ [name: string]: unknown;
23103
+ };
23104
+ content: {
23105
+ "application/json": components["schemas"]["Ok"];
23106
+ };
23107
+ };
23108
+ /** @description The body is empty, contains an unknown field, or a field is invalid. */
23109
+ 400: {
23110
+ headers: {
23111
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
23112
+ "X-Request-ID": components["headers"]["X-Request-ID"];
23113
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
23114
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
23115
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
23116
+ "X-Error-Code": components["headers"]["X-Error-Code"];
23117
+ [name: string]: unknown;
23118
+ };
23119
+ content: {
23120
+ "application/json": components["schemas"]["MissingRequiredFieldOrValidationErrorRefusal"];
23121
+ };
23122
+ };
23123
+ /** @description `unauthorized`: the request has no credential, or its credential is not valid. */
23124
+ 401: {
23125
+ headers: {
23126
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
23127
+ "X-Request-ID": components["headers"]["X-Request-ID"];
23128
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
23129
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
23130
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
23131
+ "X-Error-Code": components["headers"]["X-Error-Code"];
23132
+ [name: string]: unknown;
23133
+ };
23134
+ content: {
23135
+ "application/json": components["schemas"]["UnauthorizedRefusal"];
23136
+ };
23137
+ };
23138
+ /** @description The credential lacks profile write permission for a submitted field. */
23139
+ 403: {
23140
+ headers: {
23141
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
23142
+ "X-Request-ID": components["headers"]["X-Request-ID"];
23143
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
23144
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
23145
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
23146
+ "X-Error-Code": components["headers"]["X-Error-Code"];
23147
+ [name: string]: unknown;
23148
+ };
23149
+ content: {
23150
+ "application/json": components["schemas"]["ForbiddenRefusal"];
23151
+ };
23152
+ };
23153
+ /** @description The owner is unavailable. */
23154
+ 404: {
23155
+ headers: {
23156
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
23157
+ "X-Request-ID": components["headers"]["X-Request-ID"];
23158
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
23159
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
23160
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
23161
+ "X-Error-Code": components["headers"]["X-Error-Code"];
23162
+ [name: string]: unknown;
23163
+ };
23164
+ content: {
23165
+ "application/json": components["schemas"]["OwnerNotFoundRefusal"];
23166
+ };
23167
+ };
23168
+ /** @description `instance_changed`: `X-Marfa-Instance-Id` names another instance. Nothing is written. Rebuild the working copy from the instance at this address. */
23169
+ 409: {
23170
+ headers: {
23171
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
23172
+ "X-Request-ID": components["headers"]["X-Request-ID"];
23173
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
23174
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
23175
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
23176
+ "X-Error-Code": components["headers"]["X-Error-Code"];
23177
+ [name: string]: unknown;
23178
+ };
23179
+ content: {
23180
+ "application/json": components["schemas"]["InstanceChangedRefusal"];
23181
+ };
23182
+ };
23183
+ /** @description `request_too_large`: the request body is larger than this instance accepts. */
23184
+ 413: {
23185
+ headers: {
23186
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
23187
+ "X-Request-ID": components["headers"]["X-Request-ID"];
23188
+ "X-Error-Code": components["headers"]["X-Error-Code"];
23189
+ [name: string]: unknown;
23190
+ };
23191
+ content: {
23192
+ "application/json": components["schemas"]["RequestTooLargeRefusal"];
23193
+ };
23194
+ };
23195
+ /** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
23196
+ 429: {
23197
+ headers: {
23198
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
23199
+ "X-Request-ID": components["headers"]["X-Request-ID"];
23200
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
23201
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
23202
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
23203
+ "X-Error-Code": components["headers"]["X-Error-Code"];
23204
+ "Retry-After": components["headers"]["Retry-After"];
23205
+ [name: string]: unknown;
23206
+ };
23207
+ content: {
23208
+ "application/json": components["schemas"]["RateLimitedRefusal"];
23209
+ };
23210
+ };
23211
+ /** @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. */
23212
+ 500: {
23213
+ headers: {
23214
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
23215
+ "X-Request-ID": components["headers"]["X-Request-ID"];
23216
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
23217
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
23218
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
23219
+ "X-Error-Code": components["headers"]["X-Error-Code"];
23220
+ [name: string]: unknown;
23221
+ };
23222
+ content: {
23223
+ "application/json": components["schemas"]["InternalErrorRefusal"];
23224
+ };
23225
+ };
23226
+ /** @description `write_contention`: the database was busy, and Marfa couldn't complete the request in time. Nothing changed. Try the request again. */
23227
+ 503: {
23228
+ headers: {
23229
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
23230
+ "X-Request-ID": components["headers"]["X-Request-ID"];
23231
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
23232
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
23233
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
23234
+ "X-Error-Code": components["headers"]["X-Error-Code"];
23235
+ [name: string]: unknown;
23236
+ };
23237
+ content: {
23238
+ "application/json": components["schemas"]["WriteContentionRefusal"];
23239
+ };
23240
+ };
23241
+ /** @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. */
23242
+ 507: {
23243
+ headers: {
23244
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
23245
+ "X-Request-ID": components["headers"]["X-Request-ID"];
23246
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
23247
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
23248
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
23249
+ "X-Error-Code": components["headers"]["X-Error-Code"];
23250
+ [name: string]: unknown;
23251
+ };
23252
+ content: {
23253
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
23254
+ };
23255
+ };
23256
+ };
23257
+ };
22842
23258
  exportData: {
22843
23259
  parameters: {
22844
23260
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@withmarfa/client",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",