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, 04:45 UTC
| 1 | import type * as datazone from "@distilled.cloud/aws/datazone"; |
| 2 | import * as Binding from "alchemy/Binding"; |
| 3 | import type * as Effect from "effect/Effect"; |
| 4 | import type { Domain } from "./Domain.ts"; |
| 5 | |
| 6 | export interface GetUserProfileRequest extends Omit< |
| 7 | datazone.GetUserProfileInput, |
| 8 | "domainIdentifier" |
| 9 | > {} |
| 10 | |
| 11 | /** |
| 12 | * Runtime binding for `datazone:GetUserProfile`. |
| 13 | * |
| 14 | * Reads a user profile in the bound domain — e.g. to resolve the requester of a subscription request. The domain id is injected from the binding. |
| 15 | * Provide the implementation with |
| 16 | * `Effect.provide(AWS.DataZone.GetUserProfileHttp)`. |
| 17 | * ### Portal, Profiles & Notifications |
| 18 | * **Example:** Resolve a User Profile |
| 19 | * ```typescript |
| 20 | * // init — bind the operation to the domain |
| 21 | * const getUserProfile = yield* AWS.DataZone.GetUserProfile(domain); |
| 22 | * |
| 23 | * // runtime |
| 24 | * const profile = yield* getUserProfile({ userIdentifier: userId }); |
| 25 | * ``` |
| 26 | * |
| 27 | * @binding |
| 28 | */ |
| 29 | export interface GetUserProfile extends Binding.Service< |
| 30 | GetUserProfile, |
| 31 | "AWS.DataZone.GetUserProfile", |
| 32 | ( |
| 33 | domain: Domain, |
| 34 | ) => Effect.Effect< |
| 35 | ( |
| 36 | request: GetUserProfileRequest, |
| 37 | ) => Effect.Effect<datazone.GetUserProfileOutput, datazone.GetUserProfileError> |
| 38 | > |
| 39 | > {} |
| 40 | export const GetUserProfile = Binding.Service<GetUserProfile>("AWS.DataZone.GetUserProfile"); |