The best way to control Claude Code, Codex and more from any computer or phone

main
ts 40 lines 1.16 KB
Raw
1 import type * as bigquery from "@distilled.cloud/gcp/bigquery_v2";
2 import * as Binding from "alchemy/Binding";
3 import type { RuntimeContext } from "alchemy/RuntimeContext";
4 import type * as Effect from "effect/Effect";
5 import type { Table } from "./Table.ts";
6
7 export interface ListTabledataRequest extends Omit<
8 bigquery.ListTabledataRequest,
9 "projectId" | "datasetId" | "tableId"
10 > {}
11
12 /**
13 * Runtime binding for BigQuery `tabledata.list`.
14 *
15 * Bind this operation to a {@link Table} in a Function/Action init phase.
16 * Provide {@link ListTabledataHttp}.
17 *
18 * ### Listing Rows
19 * **Example:** List table rows
20 * ```typescript
21 * const listRows = yield* GCP.BigQuery.ListTabledata(events);
22 * const page = yield* listRows({ maxResults: 100 });
23 * ```
24 *
25 * @binding
26 * @category BigQuery
27 */
28 export interface ListTabledata extends Binding.Service<
29 ListTabledata,
30 "GCP.BigQuery.ListTabledata",
31 (
32 table: Table,
33 ) => Effect.Effect<
34 (
35 request?: ListTabledataRequest,
36 ) => Effect.Effect<bigquery.TableDataList, bigquery.ListTabledataError, RuntimeContext>
37 >
38 > {}
39
40 export const ListTabledata = Binding.Service<ListTabledata>("GCP.BigQuery.ListTabledata");