@copass/core
Advanced tools
+2
-25
@@ -562,22 +562,2 @@ // src/auth/api-key.ts | ||
| // src/resources/matrix.ts | ||
| var MatrixResource = class extends BaseResource { | ||
| async query(request) { | ||
| const headers = {}; | ||
| if (request.preset) headers["X-Search-Matrix"] = request.preset; | ||
| if (request.detail_instruction) headers["X-Detail-Instruction"] = request.detail_instruction; | ||
| if (request.trace_id) headers["X-Trace-Id"] = request.trace_id; | ||
| return this.get("/api/v1/matrix/query", { | ||
| query: { | ||
| query: request.query, | ||
| project_id: request.project_id, | ||
| reference_date: request.reference_date, | ||
| detail_level: request.detail_level, | ||
| max_tokens: request.max_tokens?.toString() | ||
| }, | ||
| headers | ||
| }); | ||
| } | ||
| }; | ||
| // src/resources/retrieval.ts | ||
@@ -660,3 +640,3 @@ function resolveBody(request) { | ||
| async revoke(keyId) { | ||
| await this.delete(`/api/v1/api-keys/${keyId}`); | ||
| return this.delete(`/api/v1/api-keys/${keyId}`); | ||
| } | ||
@@ -671,3 +651,3 @@ }; | ||
| async getBalance() { | ||
| return this.get("/api/v1/usage/credits"); | ||
| return this.get("/api/v1/usage/balance"); | ||
| } | ||
@@ -1494,3 +1474,2 @@ }; | ||
| entities; | ||
| matrix; | ||
| retrieval; | ||
@@ -1526,3 +1505,2 @@ users; | ||
| this.entities = new EntitiesResource(http); | ||
| this.matrix = new MatrixResource(http); | ||
| this.retrieval = new RetrievalResource(http); | ||
@@ -1830,3 +1808,2 @@ this.users = new UsersResource(http); | ||
| IntegrationsResource, | ||
| MatrixResource, | ||
| ProjectConfigSchema, | ||
@@ -1833,0 +1810,0 @@ ProjectsResource, |
+2
-2
| { | ||
| "name": "@copass/core", | ||
| "version": "0.5.0", | ||
| "version": "0.5.1", | ||
| "description": "Core client SDK for the Copass platform", | ||
@@ -64,3 +64,3 @@ "publishConfig": { | ||
| }, | ||
| "gitHead": "ca89c027a476adcde50aafbe5f6377e731c50dbf" | ||
| "gitHead": "f4c1faae88917960be2f91c2870aad8c8dbe546e" | ||
| } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
645265
-0.55%6292
-0.36%