@runapi.ai/seedream 0.2.10 → 0.2.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { AsyncTaskStatus, HttpClient, RequestOptions, PollingOptions, BaseClient, ClientOptions } from '@runapi.ai/core';
1
+ import { TaskResponse, AsyncTaskStatus, TaskBillingResponse, HttpClient, RequestOptions, PollingOptions, BaseClient, ClientOptions } from '@runapi.ai/core';
2
2
  export { AuthenticationError, InsufficientCreditsError, NetworkError, NotFoundError, RateLimitError, RunApiError, ServiceUnavailableError, TaskFailedError, TaskTimeoutError, TimeoutError, ValidationError } from '@runapi.ai/core';
3
3
 
4
4
  /** Union of all Seedream model identifiers across text-to-image and edit endpoints. */
@@ -86,14 +86,14 @@ interface GenerationV4EditParams extends V4GenerationBaseParams {
86
86
  }
87
87
  type TextToImageParams = Generation45TextParams | Generation5LiteTextParams | Generation5ProTextParams | GenerationV4TextParams;
88
88
  type EditImageParams = Generation45EditImageParams | Generation5LiteEditParams | Generation5ProEditParams | GenerationV4EditParams;
89
- interface TaskCreateResponse {
89
+ interface TaskCreateResponse extends TaskBillingResponse {
90
90
  id: string;
91
91
  }
92
92
  /** A generated image with its CDN URL. */
93
93
  interface Image {
94
94
  url: string;
95
95
  }
96
- interface TextToImageResponse {
96
+ interface TextToImageResponse extends TaskResponse {
97
97
  id: string;
98
98
  status: AsyncTaskStatus;
99
99
  images?: Image[];
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { AsyncTaskStatus, HttpClient, RequestOptions, PollingOptions, BaseClient, ClientOptions } from '@runapi.ai/core';
1
+ import { TaskResponse, AsyncTaskStatus, TaskBillingResponse, HttpClient, RequestOptions, PollingOptions, BaseClient, ClientOptions } from '@runapi.ai/core';
2
2
  export { AuthenticationError, InsufficientCreditsError, NetworkError, NotFoundError, RateLimitError, RunApiError, ServiceUnavailableError, TaskFailedError, TaskTimeoutError, TimeoutError, ValidationError } from '@runapi.ai/core';
3
3
 
4
4
  /** Union of all Seedream model identifiers across text-to-image and edit endpoints. */
@@ -86,14 +86,14 @@ interface GenerationV4EditParams extends V4GenerationBaseParams {
86
86
  }
87
87
  type TextToImageParams = Generation45TextParams | Generation5LiteTextParams | Generation5ProTextParams | GenerationV4TextParams;
88
88
  type EditImageParams = Generation45EditImageParams | Generation5LiteEditParams | Generation5ProEditParams | GenerationV4EditParams;
89
- interface TaskCreateResponse {
89
+ interface TaskCreateResponse extends TaskBillingResponse {
90
90
  id: string;
91
91
  }
92
92
  /** A generated image with its CDN URL. */
93
93
  interface Image {
94
94
  url: string;
95
95
  }
96
- interface TextToImageResponse {
96
+ interface TextToImageResponse extends TaskResponse {
97
97
  id: string;
98
98
  status: AsyncTaskStatus;
99
99
  images?: Image[];
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "runapi": {
4
4
  "slug": "seedream"
5
5
  },
6
- "version": "0.2.10",
6
+ "version": "0.2.11",
7
7
  "description": "RunAPI Seedream SDK for text-to-image and edit-image workflows in JavaScript, Python, Ruby, Go, Java, and PHP",
8
8
  "main": "./dist/index.js",
9
9
  "module": "./dist/index.mjs",
@@ -31,7 +31,7 @@
31
31
  "clean": "rm -rf dist"
32
32
  },
33
33
  "dependencies": {
34
- "@runapi.ai/core": "^0.2.14"
34
+ "@runapi.ai/core": "^0.3.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/node": "^20.0.0",