@space-runners/ablo-ts-sdk
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -11,3 +11,2 @@ import { IAbloOptions } from './interfaces/ablo-options.interface'; | ||
import { BillableActionService } from './services/billable-action'; | ||
import { InpaintingService } from './services/inpainting'; | ||
export declare class Ablo { | ||
@@ -24,3 +23,2 @@ private axios; | ||
readonly ledger: LedgerService; | ||
readonly inpainting: InpaintingService; | ||
constructor(apiKey: string, options?: IAbloOptions); | ||
@@ -40,4 +38,4 @@ } | ||
export * from './services/photo-transformer/image-url-to-image-request.interface'; | ||
export * from './services/photo-transformer/inpainting-request.interface'; | ||
export * from './services/style/style.interface'; | ||
export * from './services/style/create-custom-style-request.interface'; | ||
export * from './services/inpainting/inpainting-request.interface'; |
@@ -28,3 +28,2 @@ "use strict"; | ||
const billable_action_1 = require("./services/billable-action"); | ||
const inpainting_1 = require("./services/inpainting"); | ||
class Ablo { | ||
@@ -48,3 +47,2 @@ constructor(apiKey, options = {}) { | ||
this.ledger = new ledger_1.LedgerService(this.axios); | ||
this.inpainting = new inpainting_1.InpaintingService(this.axios); | ||
} | ||
@@ -65,4 +63,4 @@ } | ||
__exportStar(require("./services/photo-transformer/image-url-to-image-request.interface"), exports); | ||
__exportStar(require("./services/photo-transformer/inpainting-request.interface"), exports); | ||
__exportStar(require("./services/style/style.interface"), exports); | ||
__exportStar(require("./services/style/create-custom-style-request.interface"), exports); | ||
__exportStar(require("./services/inpainting/inpainting-request.interface"), exports); |
@@ -6,2 +6,3 @@ import { AxiosInstance } from 'axios'; | ||
import { IImageGenerationResponse } from '../../interfaces/image-generation-response.interface'; | ||
import { IInpaintingRequest } from './inpainting-request.interface'; | ||
export declare class PhotoTransformerService { | ||
@@ -25,2 +26,8 @@ private readonly axios; | ||
fromUrl: (params: IImageUrlToImageRequest) => Promise<IImageGenerationResponse>; | ||
/** | ||
* Edits/inpaints the image based on the mask and provided prompt. | ||
* @param params - The parameters for the image generation. | ||
* @returns A Promise that resolves to the generated images. | ||
*/ | ||
inpaint: (params: IInpaintingRequest) => Promise<IImageGenerationResponse>; | ||
} |
@@ -60,4 +60,13 @@ "use strict"; | ||
}); | ||
/** | ||
* Edits/inpaints the image based on the mask and provided prompt. | ||
* @param params - The parameters for the image generation. | ||
* @returns A Promise that resolves to the generated images. | ||
*/ | ||
this.inpaint = (params) => __awaiter(this, void 0, void 0, function* () { | ||
const { data } = yield this.axios.post('/photo-transformer/inpaint', params); | ||
return data; | ||
}); | ||
} | ||
} | ||
exports.PhotoTransformerService = PhotoTransformerService; |
@@ -6,3 +6,3 @@ { | ||
}, | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "A TypeScript SDK for Ablo Services", | ||
@@ -9,0 +9,0 @@ "main": "lib/index.js", |
42316
58
859