@vercel/sdk
Version:
<p align="center"> <a href="https://vercel.com"> <img src="https://assets.vercel.com/image/upload/v1588805858/repositories/vercel/logo.png" height="96"> <h3 align="center">Vercel</h3> </a> <p align="center">Develop. Preview. Ship.</p> </p>
48 lines • 1.57 kB
JavaScript
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
import { aiGatewayCreateAiGatewayRule } from "../funcs/aiGatewayCreateAiGatewayRule.js";
import { aiGatewayDeleteAiGatewayRule } from "../funcs/aiGatewayDeleteAiGatewayRule.js";
import { aiGatewayListAiGatewayRules } from "../funcs/aiGatewayListAiGatewayRules.js";
import { aiGatewayUpdateAiGatewayRule } from "../funcs/aiGatewayUpdateAiGatewayRule.js";
import { ClientSDK } from "../lib/sdks.js";
import { unwrapAsync } from "../types/fp.js";
export class AiGateway extends ClientSDK {
/**
* Create rule
*
* @remarks
* Create a routing rule
*/
async createAiGatewayRule(request, options) {
return unwrapAsync(aiGatewayCreateAiGatewayRule(this, request, options));
}
/**
* List rules
*
* @remarks
* List the authenticated team's routing rules
*/
async listAiGatewayRules(request, options) {
return unwrapAsync(aiGatewayListAiGatewayRules(this, request, options));
}
/**
* Update rule
*
* @remarks
* Update a routing rule (enabled, action, or description)
*/
async updateAiGatewayRule(request, options) {
return unwrapAsync(aiGatewayUpdateAiGatewayRule(this, request, options));
}
/**
* Delete rule
*
* @remarks
* Delete a routing rule (soft delete)
*/
async deleteAiGatewayRule(request, options) {
return unwrapAsync(aiGatewayDeleteAiGatewayRule(this, request, options));
}
}
//# sourceMappingURL=aigateway.js.map