@gpt-core/client 0.10.1 → 0.10.12
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 +25 -1
- package/dist/index.d.ts +25 -1
- package/llms.txt +7 -32
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -536,10 +536,22 @@ type Wallet = {
|
|
|
536
536
|
* Field included by default.
|
|
537
537
|
*/
|
|
538
538
|
credits_paid?: number | null | unknown;
|
|
539
|
+
/**
|
|
540
|
+
* Total promotional credits ever allocated to this tenant. Field included by default.
|
|
541
|
+
*/
|
|
542
|
+
credits_promotional_allocated?: number | null | unknown;
|
|
543
|
+
/**
|
|
544
|
+
* Total purchased credits ever allocated to this tenant. Field included by default.
|
|
545
|
+
*/
|
|
546
|
+
credits_purchased_allocated?: number | null | unknown;
|
|
539
547
|
/**
|
|
540
548
|
* Field included by default.
|
|
541
549
|
*/
|
|
542
550
|
credits_subscription?: number | null | unknown;
|
|
551
|
+
/**
|
|
552
|
+
* Total subscription credits ever allocated to this tenant. Field included by default.
|
|
553
|
+
*/
|
|
554
|
+
credits_subscription_allocated?: number | null | unknown;
|
|
543
555
|
/**
|
|
544
556
|
* Field included by default.
|
|
545
557
|
*/
|
|
@@ -6299,6 +6311,18 @@ type ExtractionDocument = {
|
|
|
6299
6311
|
type: string;
|
|
6300
6312
|
} | null;
|
|
6301
6313
|
};
|
|
6314
|
+
extraction_results?: {
|
|
6315
|
+
/**
|
|
6316
|
+
* Relationship data for extraction_results
|
|
6317
|
+
*/
|
|
6318
|
+
data?: Array<{
|
|
6319
|
+
id: string;
|
|
6320
|
+
meta?: {
|
|
6321
|
+
[key: string]: unknown;
|
|
6322
|
+
};
|
|
6323
|
+
type: string;
|
|
6324
|
+
}>;
|
|
6325
|
+
};
|
|
6302
6326
|
};
|
|
6303
6327
|
type: string;
|
|
6304
6328
|
};
|
|
@@ -36339,8 +36363,8 @@ type GetApplicationsByApplicationIdEmailTemplatesBySlugData = {
|
|
|
36339
36363
|
"x-application-key": string;
|
|
36340
36364
|
};
|
|
36341
36365
|
path: {
|
|
36342
|
-
slug: string;
|
|
36343
36366
|
application_id: string;
|
|
36367
|
+
slug: string;
|
|
36344
36368
|
};
|
|
36345
36369
|
query?: {
|
|
36346
36370
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -536,10 +536,22 @@ type Wallet = {
|
|
|
536
536
|
* Field included by default.
|
|
537
537
|
*/
|
|
538
538
|
credits_paid?: number | null | unknown;
|
|
539
|
+
/**
|
|
540
|
+
* Total promotional credits ever allocated to this tenant. Field included by default.
|
|
541
|
+
*/
|
|
542
|
+
credits_promotional_allocated?: number | null | unknown;
|
|
543
|
+
/**
|
|
544
|
+
* Total purchased credits ever allocated to this tenant. Field included by default.
|
|
545
|
+
*/
|
|
546
|
+
credits_purchased_allocated?: number | null | unknown;
|
|
539
547
|
/**
|
|
540
548
|
* Field included by default.
|
|
541
549
|
*/
|
|
542
550
|
credits_subscription?: number | null | unknown;
|
|
551
|
+
/**
|
|
552
|
+
* Total subscription credits ever allocated to this tenant. Field included by default.
|
|
553
|
+
*/
|
|
554
|
+
credits_subscription_allocated?: number | null | unknown;
|
|
543
555
|
/**
|
|
544
556
|
* Field included by default.
|
|
545
557
|
*/
|
|
@@ -6299,6 +6311,18 @@ type ExtractionDocument = {
|
|
|
6299
6311
|
type: string;
|
|
6300
6312
|
} | null;
|
|
6301
6313
|
};
|
|
6314
|
+
extraction_results?: {
|
|
6315
|
+
/**
|
|
6316
|
+
* Relationship data for extraction_results
|
|
6317
|
+
*/
|
|
6318
|
+
data?: Array<{
|
|
6319
|
+
id: string;
|
|
6320
|
+
meta?: {
|
|
6321
|
+
[key: string]: unknown;
|
|
6322
|
+
};
|
|
6323
|
+
type: string;
|
|
6324
|
+
}>;
|
|
6325
|
+
};
|
|
6302
6326
|
};
|
|
6303
6327
|
type: string;
|
|
6304
6328
|
};
|
|
@@ -36339,8 +36363,8 @@ type GetApplicationsByApplicationIdEmailTemplatesBySlugData = {
|
|
|
36339
36363
|
"x-application-key": string;
|
|
36340
36364
|
};
|
|
36341
36365
|
path: {
|
|
36342
|
-
slug: string;
|
|
36343
36366
|
application_id: string;
|
|
36367
|
+
slug: string;
|
|
36344
36368
|
};
|
|
36345
36369
|
query?: {
|
|
36346
36370
|
/**
|
package/llms.txt
CHANGED
|
@@ -22,38 +22,6 @@ client.setConfig({
|
|
|
22
22
|
});
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
## API Versioning
|
|
26
|
-
|
|
27
|
-
The SDK sends an API version header with every request.
|
|
28
|
-
Default version: 2025-12-03
|
|
29
|
-
|
|
30
|
-
### Configuration
|
|
31
|
-
|
|
32
|
-
```typescript
|
|
33
|
-
import { GptClient, DEFAULT_API_VERSION } from '@gpt-core/client';
|
|
34
|
-
|
|
35
|
-
// Use SDK default version
|
|
36
|
-
const client = new GptClient({ baseUrl, apiKey });
|
|
37
|
-
|
|
38
|
-
// Pin to specific version (recommended for production)
|
|
39
|
-
const client = new GptClient({ baseUrl, apiKey, apiVersion: '2025-12-03' });
|
|
40
|
-
|
|
41
|
-
// Read effective version
|
|
42
|
-
client.apiVersion // "2025-12-03"
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
### Config Options
|
|
46
|
-
|
|
47
|
-
- `baseUrl` (string) - API base URL
|
|
48
|
-
- `token` (string) - User JWT for Bearer auth
|
|
49
|
-
- `apiKey` (string) - Application key for x-application-key header
|
|
50
|
-
- `retry` (object|false) - Retry config or disable
|
|
51
|
-
- `apiVersion` (string) - API version date, defaults to DEFAULT_API_VERSION
|
|
52
|
-
|
|
53
|
-
### Response Header
|
|
54
|
-
|
|
55
|
-
Every response includes: `x-api-version: 2025-12-03`
|
|
56
|
-
|
|
57
25
|
## Agent stats
|
|
58
26
|
|
|
59
27
|
- `getAgentsByIdStats()` - Get stats
|
|
@@ -437,6 +405,13 @@ Every response includes: `x-api-version: 2025-12-03`
|
|
|
437
405
|
- `postStorageSign-download()` - Create sign download
|
|
438
406
|
- `postStorageSign-upload()` - Create sign upload
|
|
439
407
|
|
|
408
|
+
## Role
|
|
409
|
+
|
|
410
|
+
- `getRoles()` - List roles
|
|
411
|
+
- `postRoles()` - Create roles
|
|
412
|
+
- `patchRolesById()` - Update roles
|
|
413
|
+
- `deleteRolesById()` - Delete roles
|
|
414
|
+
|
|
440
415
|
## Schema discovery
|
|
441
416
|
|
|
442
417
|
- `getExtractionSchema-discoveriesById()` - Get schema discoveries
|
package/package.json
CHANGED