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 detective from "@distilled.cloud/aws/detective";
import type * as Effect from "effect/Effect";
import * as Binding from "../../Binding.ts";
/**
* Runtime binding for `detective:AcceptInvitation`.
*
* Accepts an invitation into an administrator account's behavior graph —
* the graph belongs to the admin account, so its ARN arrives at runtime
* (typically from `ListInvitations`) rather than from a bound resource.
* Provide the implementation with
* `Effect.provide(AWS.Detective.AcceptInvitationHttp)`.
* @binding
* @section Responding to Invitations
* @example Auto-Accept An Invitation
* ```typescript
* // init — account-level binding, no resource argument
* const acceptInvitation = yield* AWS.Detective.AcceptInvitation();
*
* // runtime
* yield* acceptInvitation({ GraphArn: invitation.GraphArn! });
* ```
*/
export interface AcceptInvitation extends Binding.Service<
AcceptInvitation,
"AWS.Detective.AcceptInvitation",
() => Effect.Effect<
(
request: detective.AcceptInvitationRequest,
) => Effect.Effect<
detective.AcceptInvitationResponse,
detective.AcceptInvitationError
>
>
> {}
export const AcceptInvitation = Binding.Service<AcceptInvitation>(
"AWS.Detective.AcceptInvitation",
);