@gpt-core/client 0.7.62 → 0.7.64

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.mjs CHANGED
@@ -15,7 +15,6 @@ __export(sdk_gen_exports, {
15
15
  deleteApplicationsById: () => deleteApplicationsById,
16
16
  deleteBucketsById: () => deleteBucketsById,
17
17
  deleteExtractionDocumentsById: () => deleteExtractionDocumentsById,
18
- deleteExtractionSchemaFieldsById: () => deleteExtractionSchemaFieldsById,
19
18
  deleteFieldTemplatesById: () => deleteFieldTemplatesById,
20
19
  deleteMessagesById: () => deleteMessagesById,
21
20
  deleteNotificationMethodsById: () => deleteNotificationMethodsById,
@@ -35,6 +34,7 @@ __export(sdk_gen_exports, {
35
34
  getAgentVersionsById: () => getAgentVersionsById,
36
35
  getAgents: () => getAgents,
37
36
  getAgentsById: () => getAgentsById,
37
+ getAgentsByIdSchemaVersions: () => getAgentsByIdSchemaVersions,
38
38
  getAgentsByIdTrainingStats: () => getAgentsByIdTrainingStats,
39
39
  getAiChunksDocumentByDocumentId: () => getAiChunksDocumentByDocumentId,
40
40
  getAiConversations: () => getAiConversations,
@@ -70,11 +70,6 @@ __export(sdk_gen_exports, {
70
70
  getExtractionDocumentsWorkspaceByWorkspaceIdTrained: () => getExtractionDocumentsWorkspaceByWorkspaceIdTrained,
71
71
  getExtractionResultsById: () => getExtractionResultsById,
72
72
  getExtractionResultsDocumentByDocumentId: () => getExtractionResultsDocumentByDocumentId,
73
- getExtractionSchemaFields: () => getExtractionSchemaFields,
74
- getExtractionSchemaFieldsById: () => getExtractionSchemaFieldsById,
75
- getExtractionSchemas: () => getExtractionSchemas,
76
- getExtractionSchemasById: () => getExtractionSchemasById,
77
- getExtractionSchemasWorkspaceByWorkspaceId: () => getExtractionSchemasWorkspaceByWorkspaceId,
78
73
  getFieldTemplates: () => getFieldTemplates,
79
74
  getFieldTemplatesById: () => getFieldTemplatesById,
80
75
  getInvitations: () => getInvitations,
@@ -162,10 +157,6 @@ __export(sdk_gen_exports, {
162
157
  patchExtractionDocumentsByIdStatus: () => patchExtractionDocumentsByIdStatus,
163
158
  patchExtractionResultsByIdCorrections: () => patchExtractionResultsByIdCorrections,
164
159
  patchExtractionResultsByIdRegenerate: () => patchExtractionResultsByIdRegenerate,
165
- patchExtractionSchemaFieldsById: () => patchExtractionSchemaFieldsById,
166
- patchExtractionSchemasById: () => patchExtractionSchemasById,
167
- patchExtractionSchemasByIdActivate: () => patchExtractionSchemasByIdActivate,
168
- patchExtractionSchemasByIdFields: () => patchExtractionSchemasByIdFields,
169
160
  patchInvitationsByIdAccept: () => patchInvitationsByIdAccept,
170
161
  patchInvitationsByIdResend: () => patchInvitationsByIdResend,
171
162
  patchInvitationsByIdRevoke: () => patchInvitationsByIdRevoke,
@@ -195,7 +186,10 @@ __export(sdk_gen_exports, {
195
186
  postAgentVersions: () => postAgentVersions,
196
187
  postAgents: () => postAgents,
197
188
  postAgentsByIdClone: () => postAgentsByIdClone,
189
+ postAgentsByIdDiscoverSchema: () => postAgentsByIdDiscoverSchema,
198
190
  postAgentsByIdPublishVersion: () => postAgentsByIdPublishVersion,
191
+ postAgentsByIdSchemaVersions: () => postAgentsByIdSchemaVersions,
192
+ postAgentsByIdSchemaVersionsByVersionIdActivate: () => postAgentsByIdSchemaVersionsByVersionIdActivate,
199
193
  postAgentsByIdTeach: () => postAgentsByIdTeach,
200
194
  postAgentsByIdTest: () => postAgentsByIdTest,
201
195
  postAgentsByIdValidate: () => postAgentsByIdValidate,
@@ -217,11 +211,9 @@ __export(sdk_gen_exports, {
217
211
  postDocumentsPresignedUpload: () => postDocumentsPresignedUpload,
218
212
  postExtractionBatches: () => postExtractionBatches,
219
213
  postExtractionDocumentsBeginUpload: () => postExtractionDocumentsBeginUpload,
214
+ postExtractionDocumentsByIdReprocess: () => postExtractionDocumentsByIdReprocess,
220
215
  postExtractionDocumentsUpload: () => postExtractionDocumentsUpload,
221
216
  postExtractionResults: () => postExtractionResults,
222
- postExtractionSchemaFields: () => postExtractionSchemaFields,
223
- postExtractionSchemas: () => postExtractionSchemas,
224
- postExtractionSchemasBulkCreate: () => postExtractionSchemasBulkCreate,
225
217
  postFieldTemplates: () => postFieldTemplates,
226
218
  postInvitationsAcceptByToken: () => postInvitationsAcceptByToken,
227
219
  postInvitationsInvite: () => postInvitationsInvite,
@@ -1143,12 +1135,6 @@ var patchExtractionDocumentsByIdCancel = (options) => (options.client ?? client)
1143
1135
  ...options.headers
1144
1136
  }
1145
1137
  });
1146
- var getExtractionSchemasWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
1147
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1148
- security: [{ scheme: "bearer", type: "http" }],
1149
- url: "/extraction/schemas/workspace/{workspace_id}",
1150
- ...options
1151
- });
1152
1138
  var getLlmAnalyticsCosts = (options) => (options.client ?? client).get({
1153
1139
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1154
1140
  security: [{ scheme: "bearer", type: "http" }],
@@ -1749,6 +1735,20 @@ var postUsersAuthRegisterWithOidc = (options) => (options.client ?? client).post
1749
1735
  ...options.headers
1750
1736
  }
1751
1737
  });
1738
+ var getAgentsByIdSchemaVersions = (options) => (options.client ?? client).get({
1739
+ security: [{ scheme: "bearer", type: "http" }],
1740
+ url: "/agents/{id}/schema_versions",
1741
+ ...options
1742
+ });
1743
+ var postAgentsByIdSchemaVersions = (options) => (options.client ?? client).post({
1744
+ security: [{ scheme: "bearer", type: "http" }],
1745
+ url: "/agents/{id}/schema_versions",
1746
+ ...options,
1747
+ headers: {
1748
+ "Content-Type": "application/vnd.api+json",
1749
+ ...options.headers
1750
+ }
1751
+ });
1752
1752
  var postTenantsByIdCredit = (options) => (options.client ?? client).post({
1753
1753
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1754
1754
  security: [{ scheme: "bearer", type: "http" }],
@@ -1812,28 +1812,6 @@ var getLlmAnalyticsSummary = (options) => (options.client ?? client).get({
1812
1812
  url: "/llm_analytics/summary",
1813
1813
  ...options
1814
1814
  });
1815
- var deleteExtractionSchemaFieldsById = (options) => (options.client ?? client).delete({
1816
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1817
- security: [{ scheme: "bearer", type: "http" }],
1818
- url: "/extraction/schema-fields/{id}",
1819
- ...options
1820
- });
1821
- var getExtractionSchemaFieldsById = (options) => (options.client ?? client).get({
1822
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1823
- security: [{ scheme: "bearer", type: "http" }],
1824
- url: "/extraction/schema-fields/{id}",
1825
- ...options
1826
- });
1827
- var patchExtractionSchemaFieldsById = (options) => (options.client ?? client).patch({
1828
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1829
- security: [{ scheme: "bearer", type: "http" }],
1830
- url: "/extraction/schema-fields/{id}",
1831
- ...options,
1832
- headers: {
1833
- "Content-Type": "application/vnd.api+json",
1834
- ...options.headers
1835
- }
1836
- });
1837
1815
  var postStorageSignDownload = (options) => (options.client ?? client).post({
1838
1816
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1839
1817
  security: [{ scheme: "bearer", type: "http" }],
@@ -1998,6 +1976,16 @@ var postAgentsPredict = (options) => (options.client ?? client).post({
1998
1976
  ...options.headers
1999
1977
  }
2000
1978
  });
1979
+ var postExtractionDocumentsByIdReprocess = (options) => (options.client ?? client).post({
1980
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1981
+ security: [{ scheme: "bearer", type: "http" }],
1982
+ url: "/extraction/documents/{id}/reprocess",
1983
+ ...options,
1984
+ headers: {
1985
+ "Content-Type": "application/vnd.api+json",
1986
+ ...options.headers
1987
+ }
1988
+ });
2001
1989
  var deleteThreadsById = (options) => (options.client ?? client).delete({
2002
1990
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2003
1991
  security: [{ scheme: "bearer", type: "http" }],
@@ -2555,28 +2543,6 @@ var getLlmAnalyticsById = (options) => (options.client ?? client).get({
2555
2543
  url: "/llm_analytics/{id}",
2556
2544
  ...options
2557
2545
  });
2558
- var getExtractionSchemaFields = (options) => (options.client ?? client).get({
2559
- querySerializer: {
2560
- parameters: {
2561
- filter: { object: { style: "form" } },
2562
- page: { object: { style: "form" } },
2563
- fields: { object: { style: "form" } }
2564
- }
2565
- },
2566
- security: [{ scheme: "bearer", type: "http" }],
2567
- url: "/extraction/schema-fields",
2568
- ...options
2569
- });
2570
- var postExtractionSchemaFields = (options) => (options.client ?? client).post({
2571
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2572
- security: [{ scheme: "bearer", type: "http" }],
2573
- url: "/extraction/schema-fields",
2574
- ...options,
2575
- headers: {
2576
- "Content-Type": "application/vnd.api+json",
2577
- ...options.headers
2578
- }
2579
- });
2580
2546
  var patchExtractionDocumentsByIdMarkTrained = (options) => (options.client ?? client).patch({
2581
2547
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2582
2548
  security: [{ scheme: "bearer", type: "http" }],
@@ -2700,28 +2666,6 @@ var postUsersAuthConfirm = (options) => (options.client ?? client).post({
2700
2666
  ...options.headers
2701
2667
  }
2702
2668
  });
2703
- var getExtractionSchemas = (options) => (options.client ?? client).get({
2704
- querySerializer: {
2705
- parameters: {
2706
- filter: { object: { style: "form" } },
2707
- page: { object: { style: "form" } },
2708
- fields: { object: { style: "form" } }
2709
- }
2710
- },
2711
- security: [{ scheme: "bearer", type: "http" }],
2712
- url: "/extraction/schemas",
2713
- ...options
2714
- });
2715
- var postExtractionSchemas = (options) => (options.client ?? client).post({
2716
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2717
- security: [{ scheme: "bearer", type: "http" }],
2718
- url: "/extraction/schemas",
2719
- ...options,
2720
- headers: {
2721
- "Content-Type": "application/vnd.api+json",
2722
- ...options.headers
2723
- }
2724
- });
2725
2669
  var getStorageStats = (options) => (options.client ?? client).get({
2726
2670
  querySerializer: {
2727
2671
  parameters: {
@@ -2800,6 +2744,11 @@ var postTrainingExamplesBulk = (options) => (options.client ?? client).post({
2800
2744
  ...options.headers
2801
2745
  }
2802
2746
  });
2747
+ var postAgentsByIdSchemaVersionsByVersionIdActivate = (options) => (options.client ?? client).post({
2748
+ security: [{ scheme: "bearer", type: "http" }],
2749
+ url: "/agents/{id}/schema_versions/{version_id}/activate",
2750
+ ...options
2751
+ });
2803
2752
  var deleteBucketsById = (options) => (options.client ?? client).delete({
2804
2753
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2805
2754
  security: [{ scheme: "bearer", type: "http" }],
@@ -2883,32 +2832,6 @@ var getPlans = (options) => (options.client ?? client).get({
2883
2832
  url: "/plans",
2884
2833
  ...options
2885
2834
  });
2886
- var patchExtractionSchemasByIdFields = (options) => (options.client ?? client).patch({
2887
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2888
- security: [{ scheme: "bearer", type: "http" }],
2889
- url: "/extraction/schemas/{id}/fields",
2890
- ...options,
2891
- headers: {
2892
- "Content-Type": "application/vnd.api+json",
2893
- ...options.headers
2894
- }
2895
- });
2896
- var getExtractionSchemasById = (options) => (options.client ?? client).get({
2897
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2898
- security: [{ scheme: "bearer", type: "http" }],
2899
- url: "/extraction/schemas/{id}",
2900
- ...options
2901
- });
2902
- var patchExtractionSchemasById = (options) => (options.client ?? client).patch({
2903
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2904
- security: [{ scheme: "bearer", type: "http" }],
2905
- url: "/extraction/schemas/{id}",
2906
- ...options,
2907
- headers: {
2908
- "Content-Type": "application/vnd.api+json",
2909
- ...options.headers
2910
- }
2911
- });
2912
2835
  var postAgentsByIdTest = (options) => (options.client ?? client).post({
2913
2836
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2914
2837
  security: [{ scheme: "bearer", type: "http" }],
@@ -3103,16 +3026,6 @@ var getAiConversationsById = (options) => (options.client ?? client).get({
3103
3026
  url: "/ai/conversations/{id}",
3104
3027
  ...options
3105
3028
  });
3106
- var postExtractionSchemasBulkCreate = (options) => (options.client ?? client).post({
3107
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3108
- security: [{ scheme: "bearer", type: "http" }],
3109
- url: "/extraction/schemas/bulk_create",
3110
- ...options,
3111
- headers: {
3112
- "Content-Type": "application/vnd.api+json",
3113
- ...options.headers
3114
- }
3115
- });
3116
3029
  var deleteUserProfilesById = (options) => (options.client ?? client).delete({
3117
3030
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3118
3031
  security: [{ scheme: "bearer", type: "http" }],
@@ -3224,16 +3137,6 @@ var getWallet = (options) => (options.client ?? client).get({
3224
3137
  url: "/wallet",
3225
3138
  ...options
3226
3139
  });
3227
- var patchExtractionSchemasByIdActivate = (options) => (options.client ?? client).patch({
3228
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3229
- security: [{ scheme: "bearer", type: "http" }],
3230
- url: "/extraction/schemas/{id}/activate",
3231
- ...options,
3232
- headers: {
3233
- "Content-Type": "application/vnd.api+json",
3234
- ...options.headers
3235
- }
3236
- });
3237
3140
  var deleteMessagesById = (options) => (options.client ?? client).delete({
3238
3141
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3239
3142
  security: [{ scheme: "bearer", type: "http" }],
@@ -3256,6 +3159,15 @@ var patchMessagesById = (options) => (options.client ?? client).patch({
3256
3159
  ...options.headers
3257
3160
  }
3258
3161
  });
3162
+ var postAgentsByIdDiscoverSchema = (options) => (options.client ?? client).post({
3163
+ security: [{ scheme: "bearer", type: "http" }],
3164
+ url: "/agents/{id}/discover_schema",
3165
+ ...options,
3166
+ headers: {
3167
+ "Content-Type": "application/vnd.api+json",
3168
+ ...options.headers
3169
+ }
3170
+ });
3259
3171
  var getLlmAnalyticsUsage = (options) => (options.client ?? client).get({
3260
3172
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3261
3173
  security: [{ scheme: "bearer", type: "http" }],
@@ -4033,7 +3945,6 @@ export {
4033
3945
  deleteApplicationsById,
4034
3946
  deleteBucketsById,
4035
3947
  deleteExtractionDocumentsById,
4036
- deleteExtractionSchemaFieldsById,
4037
3948
  deleteFieldTemplatesById,
4038
3949
  deleteMessagesById,
4039
3950
  deleteNotificationMethodsById,
@@ -4053,6 +3964,7 @@ export {
4053
3964
  getAgentVersionsById,
4054
3965
  getAgents,
4055
3966
  getAgentsById,
3967
+ getAgentsByIdSchemaVersions,
4056
3968
  getAgentsByIdTrainingStats,
4057
3969
  getAiChunksDocumentByDocumentId,
4058
3970
  getAiConversations,
@@ -4088,11 +4000,6 @@ export {
4088
4000
  getExtractionDocumentsWorkspaceByWorkspaceIdTrained,
4089
4001
  getExtractionResultsById,
4090
4002
  getExtractionResultsDocumentByDocumentId,
4091
- getExtractionSchemaFields,
4092
- getExtractionSchemaFieldsById,
4093
- getExtractionSchemas,
4094
- getExtractionSchemasById,
4095
- getExtractionSchemasWorkspaceByWorkspaceId,
4096
4003
  getFieldTemplates,
4097
4004
  getFieldTemplatesById,
4098
4005
  getInvitations,
@@ -4184,10 +4091,6 @@ export {
4184
4091
  patchExtractionDocumentsByIdStatus,
4185
4092
  patchExtractionResultsByIdCorrections,
4186
4093
  patchExtractionResultsByIdRegenerate,
4187
- patchExtractionSchemaFieldsById,
4188
- patchExtractionSchemasById,
4189
- patchExtractionSchemasByIdActivate,
4190
- patchExtractionSchemasByIdFields,
4191
4094
  patchInvitationsByIdAccept,
4192
4095
  patchInvitationsByIdResend,
4193
4096
  patchInvitationsByIdRevoke,
@@ -4217,7 +4120,10 @@ export {
4217
4120
  postAgentVersions,
4218
4121
  postAgents,
4219
4122
  postAgentsByIdClone,
4123
+ postAgentsByIdDiscoverSchema,
4220
4124
  postAgentsByIdPublishVersion,
4125
+ postAgentsByIdSchemaVersions,
4126
+ postAgentsByIdSchemaVersionsByVersionIdActivate,
4221
4127
  postAgentsByIdTeach,
4222
4128
  postAgentsByIdTest,
4223
4129
  postAgentsByIdValidate,
@@ -4239,11 +4145,9 @@ export {
4239
4145
  postDocumentsPresignedUpload,
4240
4146
  postExtractionBatches,
4241
4147
  postExtractionDocumentsBeginUpload,
4148
+ postExtractionDocumentsByIdReprocess,
4242
4149
  postExtractionDocumentsUpload,
4243
4150
  postExtractionResults,
4244
- postExtractionSchemaFields,
4245
- postExtractionSchemas,
4246
- postExtractionSchemasBulkCreate,
4247
4151
  postFieldTemplates,
4248
4152
  postInvitationsAcceptByToken,
4249
4153
  postInvitationsInvite,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gpt-core/client",
3
- "version": "0.7.62",
3
+ "version": "0.7.64",
4
4
  "description": "TypeScript SDK for GPT Core Client API - Document extraction, AI agents, and workspace management",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -43,14 +43,6 @@
43
43
  "publishConfig": {
44
44
  "access": "public"
45
45
  },
46
- "scripts": {
47
- "generate": "openapi-ts",
48
- "build": "tsup src/index.ts --format cjs,esm --dts",
49
- "test": "vitest run",
50
- "test:watch": "vitest",
51
- "test:ui": "vitest --ui",
52
- "test:coverage": "vitest run --coverage"
53
- },
54
46
  "dependencies": {
55
47
  "eventsource-parser": "^3.0.6",
56
48
  "zod": "^3.25.76"
@@ -62,5 +54,13 @@
62
54
  "tsup": "^8.5.1",
63
55
  "typescript": "^5.9.3",
64
56
  "vitest": "^4.0.15"
57
+ },
58
+ "scripts": {
59
+ "generate": "openapi-ts",
60
+ "build": "tsup src/index.ts --format cjs,esm --dts",
61
+ "test": "vitest run",
62
+ "test:watch": "vitest",
63
+ "test:ui": "vitest --ui",
64
+ "test:coverage": "vitest run --coverage"
65
65
  }
66
- }
66
+ }