@runapi.ai/gpt-image-2
Advanced tools
+5
-3
@@ -1,2 +0,2 @@ | ||
| import { AsyncTaskStatus, HttpClient, RequestOptions, PollingOptions, BaseClient, ClientOptions } from '@runapi.ai/core'; | ||
| import { TaskResponse, AsyncTaskStatus, TaskBillingResponse, HttpClient, RequestOptions, PollingOptions, BaseClient, ClientOptions } from '@runapi.ai/core'; | ||
| export { AuthenticationError, InsufficientCreditsError, NetworkError, NotFoundError, RateLimitError, RunApiError, ServiceUnavailableError, TaskFailedError, TaskTimeoutError, TimeoutError, ValidationError } from '@runapi.ai/core'; | ||
@@ -48,5 +48,7 @@ | ||
| /** Acknowledged task with its server-assigned ID. */ | ||
| interface TaskCreateResponse { | ||
| interface TaskCreateResponse extends TaskBillingResponse { | ||
| id: string; | ||
| status: string; | ||
| /** True when this idempotency key reused the original task. */ | ||
| task_replayed?: boolean; | ||
| } | ||
@@ -61,3 +63,3 @@ /** A single generated image with its CDN URL. */ | ||
| */ | ||
| interface TextToImageResponse { | ||
| interface TextToImageResponse extends TaskResponse { | ||
| id: string; | ||
@@ -64,0 +66,0 @@ status: AsyncTaskStatus; |
+5
-3
@@ -1,2 +0,2 @@ | ||
| import { AsyncTaskStatus, HttpClient, RequestOptions, PollingOptions, BaseClient, ClientOptions } from '@runapi.ai/core'; | ||
| import { TaskResponse, AsyncTaskStatus, TaskBillingResponse, HttpClient, RequestOptions, PollingOptions, BaseClient, ClientOptions } from '@runapi.ai/core'; | ||
| export { AuthenticationError, InsufficientCreditsError, NetworkError, NotFoundError, RateLimitError, RunApiError, ServiceUnavailableError, TaskFailedError, TaskTimeoutError, TimeoutError, ValidationError } from '@runapi.ai/core'; | ||
@@ -48,5 +48,7 @@ | ||
| /** Acknowledged task with its server-assigned ID. */ | ||
| interface TaskCreateResponse { | ||
| interface TaskCreateResponse extends TaskBillingResponse { | ||
| id: string; | ||
| status: string; | ||
| /** True when this idempotency key reused the original task. */ | ||
| task_replayed?: boolean; | ||
| } | ||
@@ -61,3 +63,3 @@ /** A single generated image with its CDN URL. */ | ||
| */ | ||
| interface TextToImageResponse { | ||
| interface TextToImageResponse extends TaskResponse { | ||
| id: string; | ||
@@ -64,0 +66,0 @@ status: AsyncTaskStatus; |
+3
-3
@@ -6,4 +6,4 @@ { | ||
| }, | ||
| "version": "0.2.7", | ||
| "description": "RunAPI GPT Image 2 SDK for text-to-image and image editing workflows in JavaScript, Python, Ruby, Go, and Java", | ||
| "version": "0.2.8", | ||
| "description": "RunAPI GPT Image 2 SDK for text-to-image and image editing workflows in JavaScript, Python, Ruby, Go, Java, and PHP", | ||
| "main": "./dist/index.js", | ||
@@ -34,3 +34,3 @@ "module": "./dist/index.mjs", | ||
| "dependencies": { | ||
| "@runapi.ai/core": "^0.2.7" | ||
| "@runapi.ai/core": "^0.3.0" | ||
| }, | ||
@@ -37,0 +37,0 @@ "devDependencies": { |
60700
0.61%625
0.32%+ Added
- Removed
Updated