accountLinks.generateTemporary
Generate temporary account links for hosted sub-accounts to enable secure redirects to specified URLs.
Instructions
Generate a temporary Ryft account link for a hosted sub-account.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accountId | Yes | ||
| redirectUrl | Yes |
Implementation Reference
- src/tools/account-links.ts:11-16 (handler)The tool 'accountLinks.generateTemporary' is registered here. The handler function directly calls `client.post` with the provided arguments.
registerTool( 'accountLinks.generateTemporary', 'Generate a temporary Ryft account link for a hosted sub-account.', temporaryAccountLinkSchema.shape, async (args) => client.post('/account-links', temporaryAccountLinkSchema.parse(args)), ); - src/tools/account-links.ts:5-8 (schema)Schema definition for the inputs required by 'accountLinks.generateTemporary'.
const temporaryAccountLinkSchema = z.object({ accountId: z.string().min(1), redirectUrl: z.string().url(), }); - src/tools/account-links.ts:10-17 (registration)Registration function for account link tools.
export function registerAccountLinkTools(registerTool: ToolRegistrar, client: RyftHttpClient) { registerTool( 'accountLinks.generateTemporary', 'Generate a temporary Ryft account link for a hosted sub-account.', temporaryAccountLinkSchema.shape, async (args) => client.post('/account-links', temporaryAccountLinkSchema.parse(args)), ); }