@archildata/api-types 0.0.77 → 0.0.78
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/index.d.ts +33 -7
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -516,6 +516,10 @@ export interface paths {
|
|
|
516
516
|
* @description Adds an authorized user to a disk. Users can authenticate via:
|
|
517
517
|
* - **token**: A shared token with a nickname and 4-character suffix
|
|
518
518
|
* - **awssts**: AWS STS role assumption with an IAM principal ARN
|
|
519
|
+
* - **s3**: An S3 access key pair for the disk's S3-compatible endpoint.
|
|
520
|
+
* The server generates both keys; the secret key is returned only in
|
|
521
|
+
* this response. The credential covers the whole disk, so keep it on
|
|
522
|
+
* your server and hand clients presigned URLs instead of the keys.
|
|
519
523
|
*/
|
|
520
524
|
post: operations["addDiskUser"];
|
|
521
525
|
delete?: never;
|
|
@@ -2574,7 +2578,25 @@ export interface components {
|
|
|
2574
2578
|
/** @description When true, the credential grants read-only access. Mounts authenticated with this credential reject writes with EROFS. */
|
|
2575
2579
|
readOnly?: boolean;
|
|
2576
2580
|
};
|
|
2577
|
-
|
|
2581
|
+
/** @description S3 access key pair for the disk's S3-compatible endpoint. Both keys are generated by the server. The credential grants access to every object on the disk; there is no per-prefix scoping, so do not expose the keys to browsers or other untrusted clients. Sign presigned URLs with them server-side instead. */
|
|
2582
|
+
S3User: {
|
|
2583
|
+
/**
|
|
2584
|
+
* @description discriminator enum property added by openapi-typescript
|
|
2585
|
+
* @enum {string}
|
|
2586
|
+
*/
|
|
2587
|
+
type: "s3";
|
|
2588
|
+
nickname?: string;
|
|
2589
|
+
/** @description Optional time-to-live as a Go duration string (e.g. "1h", "30m"). Maximum 365 days ("8760h"). Requests signed with an expired key, including presigned URLs, are rejected. Mutually exclusive with expiresAt. */
|
|
2590
|
+
ttl?: string;
|
|
2591
|
+
/**
|
|
2592
|
+
* Format: date-time
|
|
2593
|
+
* @description Optional absolute expiration time as an RFC3339 timestamp. Must be in the future. Mutually exclusive with ttl.
|
|
2594
|
+
*/
|
|
2595
|
+
expiresAt?: string;
|
|
2596
|
+
/** @description When true, the credential may only issue GET and HEAD requests. Writes, deletes, and multipart operations are rejected with AccessDenied. */
|
|
2597
|
+
readOnly?: boolean;
|
|
2598
|
+
};
|
|
2599
|
+
DiskUser: components["schemas"]["TokenUser"] | components["schemas"]["AwsStsUser"] | components["schemas"]["S3User"];
|
|
2578
2600
|
DiskResponse: {
|
|
2579
2601
|
/**
|
|
2580
2602
|
* @description Disk ID
|
|
@@ -2710,7 +2732,7 @@ export interface components {
|
|
|
2710
2732
|
};
|
|
2711
2733
|
AuthorizedUser: {
|
|
2712
2734
|
/** @enum {string} */
|
|
2713
|
-
type?: "token" | "awssts";
|
|
2735
|
+
type?: "token" | "awssts" | "s3";
|
|
2714
2736
|
/**
|
|
2715
2737
|
* @deprecated
|
|
2716
2738
|
* @description Use identifier instead. Only populated for awssts type (the IAM ARN).
|
|
@@ -2720,7 +2742,11 @@ export interface components {
|
|
|
2720
2742
|
tokenSuffix?: string;
|
|
2721
2743
|
/** @description The generated mount token. Only present in the response when the server generates the token (i.e. principal was not provided). This value is shown exactly once and cannot be retrieved again. */
|
|
2722
2744
|
token?: string;
|
|
2723
|
-
/** @description
|
|
2745
|
+
/** @description The S3 access key ID. Only present for s3 users. */
|
|
2746
|
+
s3AccessKeyId?: string;
|
|
2747
|
+
/** @description The generated S3 secret access key. Only present in the creation response for s3 users. This value is shown exactly once and cannot be retrieved again. */
|
|
2748
|
+
s3SecretKey?: string;
|
|
2749
|
+
/** @description Stable identifier for this user, returned in creation and list responses. Use this value with DELETE /api/disks/{id}/users/{type}?identifier={identifier} to remove the user. For awssts users, this is the IAM ARN; for s3 users, the access key ID. */
|
|
2724
2750
|
identifier?: string;
|
|
2725
2751
|
/** Format: date-time */
|
|
2726
2752
|
createdAt?: string;
|
|
@@ -2739,10 +2765,10 @@ export interface components {
|
|
|
2739
2765
|
/** @description Whether this token grants read-only access. */
|
|
2740
2766
|
readOnly?: boolean;
|
|
2741
2767
|
/**
|
|
2742
|
-
* @description Current lifecycle status of the token.
|
|
2768
|
+
* @description Current lifecycle status of the token. `in_use` means a one-use token is being consumed by a mount that is still in progress.
|
|
2743
2769
|
* @enum {string}
|
|
2744
2770
|
*/
|
|
2745
|
-
status?: "active" | "expired" | "consumed";
|
|
2771
|
+
status?: "active" | "expired" | "consumed" | "in_use";
|
|
2746
2772
|
};
|
|
2747
2773
|
/** @description All API responses use a standard envelope with `success: boolean` and `data` (on success) or `error: string` (on failure). The ApiResponse_* schemas each define the specific `data` shape for their endpoint. */
|
|
2748
2774
|
ApiResponse_DiskList: {
|
|
@@ -4516,7 +4542,7 @@ export interface operations {
|
|
|
4516
4542
|
removeDiskUser: {
|
|
4517
4543
|
parameters: {
|
|
4518
4544
|
query?: {
|
|
4519
|
-
/** @description Identifier of the user to remove, as returned in the creation or list response. For awssts users, this is the IAM ARN. */
|
|
4545
|
+
/** @description Identifier of the user to remove, as returned in the creation or list response. For awssts users, this is the IAM ARN; for s3 users, the access key ID. */
|
|
4520
4546
|
identifier?: string;
|
|
4521
4547
|
/**
|
|
4522
4548
|
* @deprecated
|
|
@@ -4529,7 +4555,7 @@ export interface operations {
|
|
|
4529
4555
|
/** @description Disk ID (format `dsk-{16 hex chars}`) */
|
|
4530
4556
|
id: components["parameters"]["DiskId"];
|
|
4531
4557
|
/** @description The type of user authentication */
|
|
4532
|
-
userType: "token" | "awssts";
|
|
4558
|
+
userType: "token" | "awssts" | "s3";
|
|
4533
4559
|
};
|
|
4534
4560
|
cookie?: never;
|
|
4535
4561
|
};
|