@withmarfa/client 0.0.81 → 0.0.83
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 +38 -34
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1859,7 +1859,7 @@ interface paths {
|
|
|
1859
1859
|
head?: never;
|
|
1860
1860
|
/**
|
|
1861
1861
|
* Narrow an app grant
|
|
1862
|
-
* @description Narrows an app's standing access. Requires `grants.manage`.
|
|
1862
|
+
* @description Narrows an app's standing access. Requires `grants.manage`. Tokens, refresh chains and keys the app made that reach beyond the new access end, with pending codes; the rest keep working. The app may need to reconnect.
|
|
1863
1863
|
*/
|
|
1864
1864
|
patch: operations["narrowAppGrant"];
|
|
1865
1865
|
trace?: never;
|
|
@@ -1935,7 +1935,7 @@ interface paths {
|
|
|
1935
1935
|
put?: never;
|
|
1936
1936
|
/**
|
|
1937
1937
|
* Revoke a token
|
|
1938
|
-
* @description Revokes an access token or a refresh token (RFC 7009). Revoking a refresh token ends the app's grant. A token Marfa doesn't know returns `200` too.
|
|
1938
|
+
* @description Revokes an access token or a refresh token (RFC 7009). Revoking a refresh token that hasn't ended or expired ends the app's grant, even one a later refresh replaced. A token Marfa doesn't know returns `200` too.
|
|
1939
1939
|
*/
|
|
1940
1940
|
post: operations["revokeToken"];
|
|
1941
1941
|
delete?: never;
|
|
@@ -2203,7 +2203,7 @@ interface paths {
|
|
|
2203
2203
|
head?: never;
|
|
2204
2204
|
/**
|
|
2205
2205
|
* Update the configuration
|
|
2206
|
-
* @description
|
|
2206
|
+
* @description Updates the named settings and returns the configuration. Unnamed settings stay, except the store secret when its bucket or endpoint changes; `null` removes a setting. Send all `enforcement` levers you want on; requires `config.manage`.
|
|
2207
2207
|
*/
|
|
2208
2208
|
patch: operations["updateConfig"];
|
|
2209
2209
|
trace?: never;
|
|
@@ -2443,7 +2443,7 @@ interface paths {
|
|
|
2443
2443
|
put?: never;
|
|
2444
2444
|
/**
|
|
2445
2445
|
* Restore from an archive
|
|
2446
|
-
* @description Restores an exported archive atomically and returns counts of written and skipped records. While it writes, Marfa turns other writes away. Requires `backups.manage` and a sign-in from the last five minutes.
|
|
2446
|
+
* @description Restores an exported archive atomically and returns counts of written and skipped records. While it writes, Marfa turns other writes away. Requires `backups.manage`, `config.manage` to add settings, and a sign-in from the last five minutes.
|
|
2447
2447
|
*/
|
|
2448
2448
|
post: operations["restoreArchive"];
|
|
2449
2449
|
delete?: never;
|
|
@@ -2507,7 +2507,7 @@ interface paths {
|
|
|
2507
2507
|
put?: never;
|
|
2508
2508
|
/**
|
|
2509
2509
|
* Restore a backup
|
|
2510
|
-
* @description Restores a backup from the backup folder or object store, as `POST /restore` does, reading a folder's files from it. Requires `backups.manage` and a sign-in from the last five minutes.
|
|
2510
|
+
* @description Restores a backup from the backup folder or object store, as `POST /restore` does, reading a folder's files from it. Requires `backups.manage`, `config.manage` to add settings, and a sign-in from the last five minutes.
|
|
2511
2511
|
*/
|
|
2512
2512
|
post: operations["restoreBackup"];
|
|
2513
2513
|
delete?: never;
|
|
@@ -3266,7 +3266,7 @@ interface components {
|
|
|
3266
3266
|
*/
|
|
3267
3267
|
reason?: "no_backup_destination" | "turned_off" | "destination_unusable";
|
|
3268
3268
|
/**
|
|
3269
|
-
* @description Where Marfa puts backups: `folder` for the backup folder `backup_path` names, `bucket` for the object store `object_store_bucket` names. Present only for a caller that holds `instance.read`, and only when
|
|
3269
|
+
* @description Where Marfa puts backups: `folder` for the backup folder `backup_path` names, `bucket` for the object store `object_store_bucket` names. Present only for a caller that holds `instance.read`, and only when the settings name one.
|
|
3270
3270
|
* @enum {string}
|
|
3271
3271
|
*/
|
|
3272
3272
|
destination?: "folder" | "bucket";
|
|
@@ -6433,27 +6433,27 @@ interface components {
|
|
|
6433
6433
|
addresses: string[];
|
|
6434
6434
|
/** @description The address people sign in at, an origin with no path. Absent: this computer's own address. */
|
|
6435
6435
|
sign_in_address?: string;
|
|
6436
|
-
/** @description The absolute path of the folder Marfa backs itself up to and keeps a second copy of each file in, outside the data directory and the blob folder. Absent: no backup folder. */
|
|
6436
|
+
/** @description The absolute path of the folder Marfa backs itself up to and keeps a second copy of each file in, outside the data directory and the blob folder. Changing it needs a sign-in from the last five minutes. Absent: no backup folder. */
|
|
6437
6437
|
backup_path?: string;
|
|
6438
|
-
/** @description The bucket of an S3-compatible object store that keeps
|
|
6438
|
+
/** @description The bucket of an S3-compatible object store that also keeps each file and the backups: 1 to 255 ASCII letters, digits, `.`, `:`, `-` and `_`, other than `.` and `..`. Changing it needs a sign-in from the last five minutes. Absent: no object store. */
|
|
6439
6439
|
object_store_bucket?: string;
|
|
6440
6440
|
/**
|
|
6441
|
-
* @description The region of the object store. Absent: `us-east-1`.
|
|
6441
|
+
* @description The region of the object store: a name of 1 to 63 ASCII letters, digits, hyphens and underscores that can be part of a host name, such as `us-east-1`, `eu-west-2` or `auto`. Changing it needs a sign-in from the last five minutes. Absent: `us-east-1`.
|
|
6442
6442
|
* @default us-east-1
|
|
6443
6443
|
*/
|
|
6444
6444
|
object_store_region: string;
|
|
6445
6445
|
/**
|
|
6446
6446
|
* Format: uri
|
|
6447
|
-
* @description The endpoint of the object store, an `http` or `https` URL with no user name or password. Absent: the store's provider chooses it.
|
|
6447
|
+
* @description The endpoint of the object store, an `http` or `https` URL with no user name or password. Changing it needs a sign-in from the last five minutes. Absent: the store's provider chooses it.
|
|
6448
6448
|
*/
|
|
6449
6449
|
object_store_endpoint?: string;
|
|
6450
6450
|
/**
|
|
6451
|
-
* @description `true` if the
|
|
6451
|
+
* @description `true` if the store at `object_store_endpoint` is addressed by path. `false` puts the bucket, as lowercase host labels, before the endpoint's host, a name without the bucket. Changing it needs a sign-in from the last five minutes. Absent: `true`.
|
|
6452
6452
|
* @default true
|
|
6453
6453
|
*/
|
|
6454
6454
|
object_store_path_style: boolean;
|
|
6455
6455
|
/**
|
|
6456
|
-
* @description The folder in the bucket Marfa keeps files and backups under, as `/`-joined segments. Absent: `marfa`.
|
|
6456
|
+
* @description The folder in the bucket Marfa keeps files and backups under, as `/`-joined segments. Changing it needs a sign-in from the last five minutes. Absent: `marfa`.
|
|
6457
6457
|
* @default marfa
|
|
6458
6458
|
*/
|
|
6459
6459
|
object_store_prefix: string;
|
|
@@ -7016,12 +7016,15 @@ interface components {
|
|
|
7016
7016
|
* @example {
|
|
7017
7017
|
* "scopes": [
|
|
7018
7018
|
* "core.note:read"
|
|
7019
|
-
* ]
|
|
7019
|
+
* ],
|
|
7020
|
+
* "revoked_keys": 1
|
|
7020
7021
|
* }
|
|
7021
7022
|
*/
|
|
7022
7023
|
NarrowedAppGrant: {
|
|
7023
7024
|
/** @description The resulting scope set. */
|
|
7024
7025
|
scopes: string[];
|
|
7026
|
+
/** @description How many keys the app made, or those keys made, Marfa revoked because they reached beyond the resulting scope set. */
|
|
7027
|
+
revoked_keys: number;
|
|
7025
7028
|
};
|
|
7026
7029
|
/** @description An error response. */
|
|
7027
7030
|
GrantNotFoundRefusal: {
|
|
@@ -31505,7 +31508,8 @@ interface operations {
|
|
|
31505
31508
|
* @example {
|
|
31506
31509
|
* "scopes": [
|
|
31507
31510
|
* "core.note:read"
|
|
31508
|
-
* ]
|
|
31511
|
+
* ],
|
|
31512
|
+
* "revoked_keys": 1
|
|
31509
31513
|
* }
|
|
31510
31514
|
*/
|
|
31511
31515
|
"application/json": components["schemas"]["NarrowedAppGrant"];
|
|
@@ -34934,27 +34938,27 @@ interface operations {
|
|
|
34934
34938
|
confirm_sign_in_address_change?: boolean;
|
|
34935
34939
|
/** @description `true` moves the sign-in address without first checking that it answers as this instance, for a host that answers only after the move. Only the private local command can send it. */
|
|
34936
34940
|
skip_sign_in_address_check?: boolean;
|
|
34937
|
-
/** @description The absolute path of the folder Marfa backs itself up to and keeps a second copy of each file in, outside the data directory and the blob folder. Absent: no backup folder. */
|
|
34941
|
+
/** @description The absolute path of the folder Marfa backs itself up to and keeps a second copy of each file in, outside the data directory and the blob folder. Changing it needs a sign-in from the last five minutes. Absent: no backup folder. */
|
|
34938
34942
|
backup_path?: string;
|
|
34939
|
-
/** @description The bucket of an S3-compatible object store that keeps a
|
|
34943
|
+
/** @description The bucket of an S3-compatible object store that also keeps each file and the backups: 1 to 255 ASCII letters, digits, `.`, `:`, `-` and `_`, other than `.` and `..`. Changing it needs a sign-in from the last five minutes, and removes `object_store_secret_access_key` unless the same request sets it. Absent: no object store. */
|
|
34940
34944
|
object_store_bucket?: string;
|
|
34941
34945
|
/**
|
|
34942
|
-
* @description The region of the object store. Absent: `us-east-1`.
|
|
34946
|
+
* @description The region of the object store: a name of 1 to 63 ASCII letters, digits, hyphens and underscores that can be part of a host name, such as `us-east-1`, `eu-west-2` or `auto`. Changing it needs a sign-in from the last five minutes. Absent: `us-east-1`.
|
|
34943
34947
|
* @default us-east-1
|
|
34944
34948
|
*/
|
|
34945
34949
|
object_store_region?: string;
|
|
34946
34950
|
/**
|
|
34947
34951
|
* Format: uri
|
|
34948
|
-
* @description The endpoint of the object store, an `http` or `https` URL with no user name or password. Absent: the store's provider chooses it.
|
|
34952
|
+
* @description The endpoint of the object store, an `http` or `https` URL with no user name or password. Changing it needs a sign-in from the last five minutes, and removes `object_store_secret_access_key` unless the same request sets it. Absent: the store's provider chooses it.
|
|
34949
34953
|
*/
|
|
34950
34954
|
object_store_endpoint?: string;
|
|
34951
34955
|
/**
|
|
34952
|
-
* @description `true` if the
|
|
34956
|
+
* @description `true` if the store at `object_store_endpoint` is addressed by path. `false` puts the bucket, as lowercase host labels, before the endpoint's host, a name without the bucket. Changing it needs a sign-in from the last five minutes. Absent: `true`.
|
|
34953
34957
|
* @default true
|
|
34954
34958
|
*/
|
|
34955
34959
|
object_store_path_style?: boolean;
|
|
34956
34960
|
/**
|
|
34957
|
-
* @description The folder in the bucket Marfa keeps files and backups under, as `/`-joined segments. Absent: `marfa`.
|
|
34961
|
+
* @description The folder in the bucket Marfa keeps files and backups under, as `/`-joined segments. Changing it needs a sign-in from the last five minutes. Absent: `marfa`.
|
|
34958
34962
|
* @default marfa
|
|
34959
34963
|
*/
|
|
34960
34964
|
object_store_prefix?: string;
|
|
@@ -34968,7 +34972,7 @@ interface operations {
|
|
|
34968
34972
|
* @default false
|
|
34969
34973
|
*/
|
|
34970
34974
|
allow_private_addresses?: boolean;
|
|
34971
|
-
/** @description The secret access key for the object store, with no whitespace around it. Marfa never returns it. A `PUT` that leaves it out keeps it
|
|
34975
|
+
/** @description The secret access key for the object store, with no whitespace around it. Marfa never returns it. A `PUT` that leaves it out keeps it, unless the `PUT` changes `object_store_bucket` or `object_store_endpoint`; `PATCH` with `null` removes it. */
|
|
34972
34976
|
object_store_secret_access_key?: string;
|
|
34973
34977
|
/**
|
|
34974
34978
|
* Format: uri
|
|
@@ -35191,7 +35195,7 @@ interface operations {
|
|
|
35191
35195
|
};
|
|
35192
35196
|
/**
|
|
35193
35197
|
* @description - `forbidden`: you don't hold `config.manage`, which `details.required_scope` names, or the body sets `skip_sign_in_address_check`, which only the private local command can send.
|
|
35194
|
-
* - `app_sign_in_required`: the change
|
|
35198
|
+
* - `app_sign_in_required`: the change needs a recent sign-in, and you are an API key. A person makes it from an app they signed in to, or with the private local command.
|
|
35195
35199
|
*/
|
|
35196
35200
|
403: {
|
|
35197
35201
|
headers: {
|
|
@@ -35421,27 +35425,27 @@ interface operations {
|
|
|
35421
35425
|
confirm_sign_in_address_change?: boolean;
|
|
35422
35426
|
/** @description `true` moves the sign-in address without first checking that it answers as this instance, for a host that answers only after the move. Only the private local command can send it. */
|
|
35423
35427
|
skip_sign_in_address_check?: boolean;
|
|
35424
|
-
/** @description The absolute path of the folder Marfa backs itself up to and keeps a second copy of each file in, outside the data directory and the blob folder. Absent: no backup folder. `null` removes it, so the server's default applies. */
|
|
35428
|
+
/** @description The absolute path of the folder Marfa backs itself up to and keeps a second copy of each file in, outside the data directory and the blob folder. Changing it needs a sign-in from the last five minutes. Absent: no backup folder. `null` removes it, so the server's default applies. */
|
|
35425
35429
|
backup_path?: string | null;
|
|
35426
|
-
/** @description The bucket of an S3-compatible object store that keeps a
|
|
35430
|
+
/** @description The bucket of an S3-compatible object store that also keeps each file and the backups: 1 to 255 ASCII letters, digits, `.`, `:`, `-` and `_`, other than `.` and `..`. Changing it needs a sign-in from the last five minutes, and removes `object_store_secret_access_key` unless the same request sets it. Absent: no object store. `null` removes it, so the server's default applies. */
|
|
35427
35431
|
object_store_bucket?: string | null;
|
|
35428
35432
|
/**
|
|
35429
|
-
* @description The region of the object store. Absent: `us-east-1`. `null` removes it, so the server's default applies.
|
|
35433
|
+
* @description The region of the object store: a name of 1 to 63 ASCII letters, digits, hyphens and underscores that can be part of a host name, such as `us-east-1`, `eu-west-2` or `auto`. Changing it needs a sign-in from the last five minutes. Absent: `us-east-1`. `null` removes it, so the server's default applies.
|
|
35430
35434
|
* @default us-east-1
|
|
35431
35435
|
*/
|
|
35432
35436
|
object_store_region?: string | null;
|
|
35433
35437
|
/**
|
|
35434
35438
|
* Format: uri
|
|
35435
|
-
* @description The endpoint of the object store, an `http` or `https` URL with no user name or password. Absent: the store's provider chooses it. `null` removes it, so the server's default applies.
|
|
35439
|
+
* @description The endpoint of the object store, an `http` or `https` URL with no user name or password. Changing it needs a sign-in from the last five minutes, and removes `object_store_secret_access_key` unless the same request sets it. Absent: the store's provider chooses it. `null` removes it, so the server's default applies.
|
|
35436
35440
|
*/
|
|
35437
35441
|
object_store_endpoint?: string | null;
|
|
35438
35442
|
/**
|
|
35439
|
-
* @description `true` if the
|
|
35443
|
+
* @description `true` if the store at `object_store_endpoint` is addressed by path. `false` puts the bucket, as lowercase host labels, before the endpoint's host, a name without the bucket. Changing it needs a sign-in from the last five minutes. Absent: `true`. `null` removes it, so the server's default applies.
|
|
35440
35444
|
* @default true
|
|
35441
35445
|
*/
|
|
35442
35446
|
object_store_path_style?: boolean | null;
|
|
35443
35447
|
/**
|
|
35444
|
-
* @description The folder in the bucket Marfa keeps files and backups under, as `/`-joined segments. Absent: `marfa`. `null` removes it, so the server's default applies.
|
|
35448
|
+
* @description The folder in the bucket Marfa keeps files and backups under, as `/`-joined segments. Changing it needs a sign-in from the last five minutes. Absent: `marfa`. `null` removes it, so the server's default applies.
|
|
35445
35449
|
* @default marfa
|
|
35446
35450
|
*/
|
|
35447
35451
|
object_store_prefix?: string | null;
|
|
@@ -35455,7 +35459,7 @@ interface operations {
|
|
|
35455
35459
|
* @default false
|
|
35456
35460
|
*/
|
|
35457
35461
|
allow_private_addresses?: boolean | null;
|
|
35458
|
-
/** @description The secret access key for the object store, with no whitespace around it. Marfa never returns it. `null` or an empty string removes it. */
|
|
35462
|
+
/** @description The secret access key for the object store, with no whitespace around it. Marfa never returns it. `null` or an empty string removes it, and so does a change to `object_store_bucket` or `object_store_endpoint` that doesn't set it. */
|
|
35459
35463
|
object_store_secret_access_key?: string | null;
|
|
35460
35464
|
/**
|
|
35461
35465
|
* Format: uri
|
|
@@ -35678,7 +35682,7 @@ interface operations {
|
|
|
35678
35682
|
};
|
|
35679
35683
|
/**
|
|
35680
35684
|
* @description - `forbidden`: you don't hold `config.manage`, which `details.required_scope` names, or the body sets `skip_sign_in_address_check`, which only the private local command can send.
|
|
35681
|
-
* - `app_sign_in_required`: the change
|
|
35685
|
+
* - `app_sign_in_required`: the change needs a recent sign-in, and you are an API key. A person makes it from an app they signed in to, or with the private local command.
|
|
35682
35686
|
*/
|
|
35683
35687
|
403: {
|
|
35684
35688
|
headers: {
|
|
@@ -37706,7 +37710,7 @@ interface operations {
|
|
|
37706
37710
|
};
|
|
37707
37711
|
};
|
|
37708
37712
|
/**
|
|
37709
|
-
* @description - `blob_store_unavailable`: a blob store failed, or didn't answer in time, while Marfa checked a blob's copy. Try again later.
|
|
37713
|
+
* @description - `blob_store_unavailable`: a blob store failed, or didn't answer in time, while Marfa checked a blob's copy, or Marfa couldn't write the archive's working files in the blob folder. Try again later.
|
|
37710
37714
|
* - `write_contention`: the database was busy. Nothing changed. Try the request again.
|
|
37711
37715
|
*/
|
|
37712
37716
|
503: {
|
|
@@ -37928,7 +37932,7 @@ interface operations {
|
|
|
37928
37932
|
};
|
|
37929
37933
|
};
|
|
37930
37934
|
/**
|
|
37931
|
-
* @description - `forbidden`: you don't hold `backups.manage`. `details.required_scope` names
|
|
37935
|
+
* @description - `forbidden`: you don't hold `backups.manage`, or the archive would store settings and you don't hold `config.manage`. `details.required_scope` names the missing permission. For `config.manage`, `details.settings` lists the settings.
|
|
37932
37936
|
* - `app_sign_in_required`: you are an API key. A person restores from an app they signed in to, or with the private local command.
|
|
37933
37937
|
*/
|
|
37934
37938
|
403: {
|
|
@@ -38355,7 +38359,7 @@ interface operations {
|
|
|
38355
38359
|
"application/json": components["schemas"]["InternalErrorRefusal"];
|
|
38356
38360
|
};
|
|
38357
38361
|
};
|
|
38358
|
-
/** @description `blob_store_unavailable`: the backup folder
|
|
38362
|
+
/** @description `blob_store_unavailable`: the backup folder, the object store or the blob folder failed, or didn't answer in time. Try again later. */
|
|
38359
38363
|
503: {
|
|
38360
38364
|
headers: {
|
|
38361
38365
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -38735,7 +38739,7 @@ interface operations {
|
|
|
38735
38739
|
};
|
|
38736
38740
|
};
|
|
38737
38741
|
/**
|
|
38738
|
-
* @description - `forbidden`: you don't hold `backups.manage`. `details.required_scope` names
|
|
38742
|
+
* @description - `forbidden`: you don't hold `backups.manage`, or the archive would store settings and you don't hold `config.manage`. `details.required_scope` names the missing permission. For `config.manage`, `details.settings` lists the settings.
|
|
38739
38743
|
* - `app_sign_in_required`: you are an API key. A person restores from an app they signed in to, or with the private local command.
|
|
38740
38744
|
*/
|
|
38741
38745
|
403: {
|