coze-coding-dev-sdk 0.7.10 → 0.7.11-beta.0
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/cjs/cli/index.js +2 -2
- package/dist/cjs/index.js +9 -9
- package/dist/esm/131.mjs +16 -16
- package/dist/esm/index.mjs +1 -1
- package/dist/types/fetch/client.d.ts +8 -0
- package/dist/types/fetch/client.d.ts.map +1 -0
- package/dist/types/fetch/index.d.ts +3 -0
- package/dist/types/fetch/index.d.ts.map +1 -0
- package/dist/types/fetch/models.d.ts +35 -0
- package/dist/types/fetch/models.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e="0.3.0";export{APIError,ASRClient,BaseClient,Config,ConfigurationError,ContentPart,CozeConfig,DEFAULT_EMBEDDING_CONFIG,DataSourceType,DatabaseConfig,EmbedOptions,EmbeddingClient,EmbeddingConfig,EmbeddingData,EmbeddingInputImageURL,EmbeddingInputItem,EmbeddingInputVideoURL,EmbeddingRequest,EmbeddingResponse,EmbeddingUsage,FILE_NAME_ALLOWED_RE,FORWARD_HEADER_KEYS,ForwardHeaderKey,FrameExtractorClient,HeaderUtils,ImageConfig,ImageGenerationClient,ImageGenerationResponseHelper,KnowledgeClient,LLMClient,LLMConfig,LLMDefaults,LLMResponse,Message,MultiEmbeddingConfig,NetworkError,PromptTokensDetails,S3Config,S3Storage,SearchClient,SparseEmbeddingConfig,SparseEmbeddingItem,TTSClient,TTSConfig,ValidationError,VideoConfig,VideoEditClient,VideoEditConfig,VideoGenerationClient,buildASRApiRequest,buildImageGenerationApiRequest,buildTTSApiRequest,closePool,convertFromApiFormat,convertToApiFormat,generateModels,getClient,getDb,getDbUrl,getPool,loadEnv,upgrade,validateImageSize,validateImageSizeOrDefault}from"./131.mjs";export{e as VERSION};
|
|
1
|
+
var e="0.3.0";export{APIError,ASRClient,BaseClient,Config,ConfigurationError,ContentPart,CozeConfig,DEFAULT_EMBEDDING_CONFIG,DataSourceType,DatabaseConfig,EmbedOptions,EmbeddingClient,EmbeddingConfig,EmbeddingData,EmbeddingInputImageURL,EmbeddingInputItem,EmbeddingInputVideoURL,EmbeddingRequest,EmbeddingResponse,EmbeddingUsage,FILE_NAME_ALLOWED_RE,FORWARD_HEADER_KEYS,FetchClient,ForwardHeaderKey,FrameExtractorClient,HeaderUtils,ImageConfig,ImageGenerationClient,ImageGenerationResponseHelper,KnowledgeClient,LLMClient,LLMConfig,LLMDefaults,LLMResponse,Message,MultiEmbeddingConfig,NetworkError,PromptTokensDetails,S3Config,S3Storage,SearchClient,SparseEmbeddingConfig,SparseEmbeddingItem,TTSClient,TTSConfig,ValidationError,VideoConfig,VideoEditClient,VideoEditConfig,VideoGenerationClient,buildASRApiRequest,buildImageGenerationApiRequest,buildTTSApiRequest,closePool,convertContentItem,convertDisplayInfo,convertFromApiFormat,convertToApiFormat,generateModels,getClient,getDb,getDbUrl,getPool,loadEnv,upgrade,validateImageSize,validateImageSizeOrDefault}from"./131.mjs";export{e as VERSION};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseClient } from '../core/client';
|
|
2
|
+
import { Config } from '../core/config';
|
|
3
|
+
import { FetchResponse } from './models';
|
|
4
|
+
export declare class FetchClient extends BaseClient {
|
|
5
|
+
constructor(config?: Config, customHeaders?: Record<string, string>, verbose?: boolean);
|
|
6
|
+
fetch(url: string): Promise<FetchResponse>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/fetch/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC,OAAO,EACL,aAAa,EAKd,MAAM,UAAU,CAAC;AAElB,qBAAa,WAAY,SAAQ,UAAU;gBAC7B,MAAM,CAAC,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAE,OAAe;IAIvF,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;CA0CjD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fetch/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export interface FetchImage {
|
|
2
|
+
image_url?: string;
|
|
3
|
+
display_url?: string;
|
|
4
|
+
width?: number;
|
|
5
|
+
height?: number;
|
|
6
|
+
thumbnail_display_url?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface FetchContentItem {
|
|
9
|
+
type: 'image' | 'link' | 'text';
|
|
10
|
+
text?: string;
|
|
11
|
+
url?: string;
|
|
12
|
+
image?: FetchImage;
|
|
13
|
+
}
|
|
14
|
+
export interface FetchDisplayInfo {
|
|
15
|
+
no_display?: boolean;
|
|
16
|
+
no_display_reason?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface FetchRequest {
|
|
19
|
+
url: string;
|
|
20
|
+
}
|
|
21
|
+
export interface FetchResponse {
|
|
22
|
+
fetch_id?: string;
|
|
23
|
+
status_code?: number;
|
|
24
|
+
status_message?: string;
|
|
25
|
+
url?: string;
|
|
26
|
+
doc_id?: string;
|
|
27
|
+
title?: string;
|
|
28
|
+
publish_time?: string;
|
|
29
|
+
filetype?: string;
|
|
30
|
+
content: FetchContentItem[];
|
|
31
|
+
display_info?: FetchDisplayInfo;
|
|
32
|
+
}
|
|
33
|
+
export declare function convertContentItem(item: any): FetchContentItem;
|
|
34
|
+
export declare function convertDisplayInfo(data: any): FetchDisplayInfo;
|
|
35
|
+
//# sourceMappingURL=models.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../src/fetch/models.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,UAAU,CAAC;CACpB;AAED,MAAM,WAAW,gBAAgB;IAC/B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAC5B,YAAY,CAAC,EAAE,gBAAgB,CAAC;CACjC;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAkB9D;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAK9D"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,MAAM,CAAC;AACrB,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,MAAM,CAAC;AACrB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
|
package/package.json
CHANGED