The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 06:00 UTC
| 1 | import type * as glacier from "@distilled.cloud/aws/glacier"; |
| 2 | import * as Binding from "alchemy/Binding"; |
| 3 | import type * as Effect from "effect/Effect"; |
| 4 | import type { Vault } from "./Vault.ts"; |
| 5 | |
| 6 | /** |
| 7 | * `ListParts` request with `accountId` and `vaultName` injected from the bound |
| 8 | * {@link Vault}. |
| 9 | */ |
| 10 | export interface ListPartsRequest extends Omit<glacier.ListPartsInput, "accountId" | "vaultName"> {} |
| 11 | |
| 12 | /** |
| 13 | * Runtime binding for the `ListParts` operation (IAM action |
| 14 | * `glacier:ListParts` on the vault ARN). |
| 15 | * |
| 16 | * Lists the parts already uploaded for an in-progress multipart upload on |
| 17 | * the bound {@link Vault}, sorted by byte range — the resume point after a |
| 18 | * crashed uploader. |
| 19 | * Provide the implementation with |
| 20 | * `Effect.provide(AWS.Glacier.ListPartsHttp)`. |
| 21 | * ### Uploading Archives |
| 22 | * **Example:** List a multipart upload's parts |
| 23 | * ```typescript |
| 24 | * const listParts = yield* AWS.Glacier.ListParts(vault); |
| 25 | * |
| 26 | * const { Parts } = yield* listParts({ uploadId }); |
| 27 | * ``` |
| 28 | * |
| 29 | * @binding |
| 30 | */ |
| 31 | export interface ListParts extends Binding.Service< |
| 32 | ListParts, |
| 33 | "AWS.Glacier.ListParts", |
| 34 | ( |
| 35 | vault: Vault, |
| 36 | ) => Effect.Effect< |
| 37 | (request: ListPartsRequest) => Effect.Effect<glacier.ListPartsOutput, glacier.ListPartsError> |
| 38 | > |
| 39 | > {} |
| 40 | export const ListParts = Binding.Service<ListParts>("AWS.Glacier.ListParts"); |