Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
import type * as xray from "@distilled.cloud/aws/xray";
import type * as Effect from "effect/Effect";
import * as Binding from "../../Binding.ts";
export interface GetInsightSummariesRequest
extends xray.GetInsightSummariesRequest {}
/**
* Retrieve the summaries of all insights in a group (by name or ARN)
* matching the provided state and time filters.
*
* Bind the operation in the function's init phase to get a runtime callable;
* provide the implementation with `Effect.provide(XRay.GetInsightSummariesHttp)`.
* The action is account-scoped: X-Ray does not support resource-level
* permissions for `xray:GetInsightSummaries`, so the binding grants it on `*`.
* @binding
* @section Insights
* @example List recent insights for a group
* ```typescript
* import * as XRay from "alchemy/AWS/XRay";
*
* // init — grants xray:GetInsightSummaries
* const getInsightSummaries = yield* XRay.GetInsightSummaries();
*
* // runtime
* const now = yield* Effect.sync(() => Date.now());
* const result = yield* getInsightSummaries({
* GroupName: group.groupName,
* StartTime: new Date(now - 24 * 60 * 60 * 1000),
* EndTime: new Date(now),
* });
* const insights = result.InsightSummaries ?? [];
* ```
*/
export interface GetInsightSummaries extends Binding.Service<
GetInsightSummaries,
"AWS.XRay.GetInsightSummaries",
() => Effect.Effect<
(
request: GetInsightSummariesRequest,
) => Effect.Effect<
xray.GetInsightSummariesResult,
xray.GetInsightSummariesError
>
>
> {}
export const GetInsightSummaries = Binding.Service<GetInsightSummaries>(
"AWS.XRay.GetInsightSummaries",
);