@gpt-core/client 0.7.63 → 0.7.65

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,
@@ -100,6 +95,7 @@ __export(sdk_gen_exports, {
100
95
  getPlans: () => getPlans,
101
96
  getPlansById: () => getPlansById,
102
97
  getPlansSlugBySlug: () => getPlansSlugBySlug,
98
+ getSchemaDiscoveriesById: () => getSchemaDiscoveriesById,
103
99
  getSearch: () => getSearch,
104
100
  getSearchHealth: () => getSearchHealth,
105
101
  getSearchIndexes: () => getSearchIndexes,
@@ -162,10 +158,6 @@ __export(sdk_gen_exports, {
162
158
  patchExtractionDocumentsByIdStatus: () => patchExtractionDocumentsByIdStatus,
163
159
  patchExtractionResultsByIdCorrections: () => patchExtractionResultsByIdCorrections,
164
160
  patchExtractionResultsByIdRegenerate: () => patchExtractionResultsByIdRegenerate,
165
- patchExtractionSchemaFieldsById: () => patchExtractionSchemaFieldsById,
166
- patchExtractionSchemasById: () => patchExtractionSchemasById,
167
- patchExtractionSchemasByIdActivate: () => patchExtractionSchemasByIdActivate,
168
- patchExtractionSchemasByIdFields: () => patchExtractionSchemasByIdFields,
169
161
  patchInvitationsByIdAccept: () => patchInvitationsByIdAccept,
170
162
  patchInvitationsByIdResend: () => patchInvitationsByIdResend,
171
163
  patchInvitationsByIdRevoke: () => patchInvitationsByIdRevoke,
@@ -195,7 +187,10 @@ __export(sdk_gen_exports, {
195
187
  postAgentVersions: () => postAgentVersions,
196
188
  postAgents: () => postAgents,
197
189
  postAgentsByIdClone: () => postAgentsByIdClone,
190
+ postAgentsByIdDiscoverSchema: () => postAgentsByIdDiscoverSchema,
198
191
  postAgentsByIdPublishVersion: () => postAgentsByIdPublishVersion,
192
+ postAgentsByIdSchemaVersions: () => postAgentsByIdSchemaVersions,
193
+ postAgentsByIdSchemaVersionsByVersionIdActivate: () => postAgentsByIdSchemaVersionsByVersionIdActivate,
199
194
  postAgentsByIdTeach: () => postAgentsByIdTeach,
200
195
  postAgentsByIdTest: () => postAgentsByIdTest,
201
196
  postAgentsByIdValidate: () => postAgentsByIdValidate,
@@ -217,11 +212,9 @@ __export(sdk_gen_exports, {
217
212
  postDocumentsPresignedUpload: () => postDocumentsPresignedUpload,
218
213
  postExtractionBatches: () => postExtractionBatches,
219
214
  postExtractionDocumentsBeginUpload: () => postExtractionDocumentsBeginUpload,
215
+ postExtractionDocumentsByIdReprocess: () => postExtractionDocumentsByIdReprocess,
220
216
  postExtractionDocumentsUpload: () => postExtractionDocumentsUpload,
221
217
  postExtractionResults: () => postExtractionResults,
222
- postExtractionSchemaFields: () => postExtractionSchemaFields,
223
- postExtractionSchemas: () => postExtractionSchemas,
224
- postExtractionSchemasBulkCreate: () => postExtractionSchemasBulkCreate,
225
218
  postFieldTemplates: () => postFieldTemplates,
226
219
  postInvitationsAcceptByToken: () => postInvitationsAcceptByToken,
227
220
  postInvitationsInvite: () => postInvitationsInvite,
@@ -1143,12 +1136,6 @@ var patchExtractionDocumentsByIdCancel = (options) => (options.client ?? client)
1143
1136
  ...options.headers
1144
1137
  }
1145
1138
  });
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
1139
  var getLlmAnalyticsCosts = (options) => (options.client ?? client).get({
1153
1140
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1154
1141
  security: [{ scheme: "bearer", type: "http" }],
@@ -1749,6 +1736,20 @@ var postUsersAuthRegisterWithOidc = (options) => (options.client ?? client).post
1749
1736
  ...options.headers
1750
1737
  }
1751
1738
  });
1739
+ var getAgentsByIdSchemaVersions = (options) => (options.client ?? client).get({
1740
+ security: [{ scheme: "bearer", type: "http" }],
1741
+ url: "/agents/{id}/schema_versions",
1742
+ ...options
1743
+ });
1744
+ var postAgentsByIdSchemaVersions = (options) => (options.client ?? client).post({
1745
+ security: [{ scheme: "bearer", type: "http" }],
1746
+ url: "/agents/{id}/schema_versions",
1747
+ ...options,
1748
+ headers: {
1749
+ "Content-Type": "application/vnd.api+json",
1750
+ ...options.headers
1751
+ }
1752
+ });
1752
1753
  var postTenantsByIdCredit = (options) => (options.client ?? client).post({
1753
1754
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1754
1755
  security: [{ scheme: "bearer", type: "http" }],
@@ -1812,28 +1813,6 @@ var getLlmAnalyticsSummary = (options) => (options.client ?? client).get({
1812
1813
  url: "/llm_analytics/summary",
1813
1814
  ...options
1814
1815
  });
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
1816
  var postStorageSignDownload = (options) => (options.client ?? client).post({
1838
1817
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1839
1818
  security: [{ scheme: "bearer", type: "http" }],
@@ -1998,6 +1977,16 @@ var postAgentsPredict = (options) => (options.client ?? client).post({
1998
1977
  ...options.headers
1999
1978
  }
2000
1979
  });
1980
+ var postExtractionDocumentsByIdReprocess = (options) => (options.client ?? client).post({
1981
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1982
+ security: [{ scheme: "bearer", type: "http" }],
1983
+ url: "/extraction/documents/{id}/reprocess",
1984
+ ...options,
1985
+ headers: {
1986
+ "Content-Type": "application/vnd.api+json",
1987
+ ...options.headers
1988
+ }
1989
+ });
2001
1990
  var deleteThreadsById = (options) => (options.client ?? client).delete({
2002
1991
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2003
1992
  security: [{ scheme: "bearer", type: "http" }],
@@ -2555,28 +2544,6 @@ var getLlmAnalyticsById = (options) => (options.client ?? client).get({
2555
2544
  url: "/llm_analytics/{id}",
2556
2545
  ...options
2557
2546
  });
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
2547
  var patchExtractionDocumentsByIdMarkTrained = (options) => (options.client ?? client).patch({
2581
2548
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2582
2549
  security: [{ scheme: "bearer", type: "http" }],
@@ -2700,28 +2667,6 @@ var postUsersAuthConfirm = (options) => (options.client ?? client).post({
2700
2667
  ...options.headers
2701
2668
  }
2702
2669
  });
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
2670
  var getStorageStats = (options) => (options.client ?? client).get({
2726
2671
  querySerializer: {
2727
2672
  parameters: {
@@ -2800,6 +2745,11 @@ var postTrainingExamplesBulk = (options) => (options.client ?? client).post({
2800
2745
  ...options.headers
2801
2746
  }
2802
2747
  });
2748
+ var postAgentsByIdSchemaVersionsByVersionIdActivate = (options) => (options.client ?? client).post({
2749
+ security: [{ scheme: "bearer", type: "http" }],
2750
+ url: "/agents/{id}/schema_versions/{version_id}/activate",
2751
+ ...options
2752
+ });
2803
2753
  var deleteBucketsById = (options) => (options.client ?? client).delete({
2804
2754
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2805
2755
  security: [{ scheme: "bearer", type: "http" }],
@@ -2883,32 +2833,6 @@ var getPlans = (options) => (options.client ?? client).get({
2883
2833
  url: "/plans",
2884
2834
  ...options
2885
2835
  });
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
2836
  var postAgentsByIdTest = (options) => (options.client ?? client).post({
2913
2837
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2914
2838
  security: [{ scheme: "bearer", type: "http" }],
@@ -3103,16 +3027,6 @@ var getAiConversationsById = (options) => (options.client ?? client).get({
3103
3027
  url: "/ai/conversations/{id}",
3104
3028
  ...options
3105
3029
  });
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
3030
  var deleteUserProfilesById = (options) => (options.client ?? client).delete({
3117
3031
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3118
3032
  security: [{ scheme: "bearer", type: "http" }],
@@ -3224,16 +3138,6 @@ var getWallet = (options) => (options.client ?? client).get({
3224
3138
  url: "/wallet",
3225
3139
  ...options
3226
3140
  });
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
3141
  var deleteMessagesById = (options) => (options.client ?? client).delete({
3238
3142
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3239
3143
  security: [{ scheme: "bearer", type: "http" }],
@@ -3256,6 +3160,15 @@ var patchMessagesById = (options) => (options.client ?? client).patch({
3256
3160
  ...options.headers
3257
3161
  }
3258
3162
  });
3163
+ var postAgentsByIdDiscoverSchema = (options) => (options.client ?? client).post({
3164
+ security: [{ scheme: "bearer", type: "http" }],
3165
+ url: "/agents/{id}/discover_schema",
3166
+ ...options,
3167
+ headers: {
3168
+ "Content-Type": "application/vnd.api+json",
3169
+ ...options.headers
3170
+ }
3171
+ });
3259
3172
  var getLlmAnalyticsUsage = (options) => (options.client ?? client).get({
3260
3173
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3261
3174
  security: [{ scheme: "bearer", type: "http" }],
@@ -3295,6 +3208,12 @@ var patchNotificationPreferencesById = (options) => (options.client ?? client).p
3295
3208
  ...options.headers
3296
3209
  }
3297
3210
  });
3211
+ var getSchemaDiscoveriesById = (options) => (options.client ?? client).get({
3212
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3213
+ security: [{ scheme: "bearer", type: "http" }],
3214
+ url: "/schema_discoveries/{id}",
3215
+ ...options
3216
+ });
3298
3217
  var getAiGraphNodes = (options) => (options.client ?? client).get({
3299
3218
  querySerializer: {
3300
3219
  parameters: {
@@ -4033,7 +3952,6 @@ export {
4033
3952
  deleteApplicationsById,
4034
3953
  deleteBucketsById,
4035
3954
  deleteExtractionDocumentsById,
4036
- deleteExtractionSchemaFieldsById,
4037
3955
  deleteFieldTemplatesById,
4038
3956
  deleteMessagesById,
4039
3957
  deleteNotificationMethodsById,
@@ -4053,6 +3971,7 @@ export {
4053
3971
  getAgentVersionsById,
4054
3972
  getAgents,
4055
3973
  getAgentsById,
3974
+ getAgentsByIdSchemaVersions,
4056
3975
  getAgentsByIdTrainingStats,
4057
3976
  getAiChunksDocumentByDocumentId,
4058
3977
  getAiConversations,
@@ -4088,11 +4007,6 @@ export {
4088
4007
  getExtractionDocumentsWorkspaceByWorkspaceIdTrained,
4089
4008
  getExtractionResultsById,
4090
4009
  getExtractionResultsDocumentByDocumentId,
4091
- getExtractionSchemaFields,
4092
- getExtractionSchemaFieldsById,
4093
- getExtractionSchemas,
4094
- getExtractionSchemasById,
4095
- getExtractionSchemasWorkspaceByWorkspaceId,
4096
4010
  getFieldTemplates,
4097
4011
  getFieldTemplatesById,
4098
4012
  getInvitations,
@@ -4118,6 +4032,7 @@ export {
4118
4032
  getPlans,
4119
4033
  getPlansById,
4120
4034
  getPlansSlugBySlug,
4035
+ getSchemaDiscoveriesById,
4121
4036
  getSearch,
4122
4037
  getSearchHealth,
4123
4038
  getSearchIndexes,
@@ -4184,10 +4099,6 @@ export {
4184
4099
  patchExtractionDocumentsByIdStatus,
4185
4100
  patchExtractionResultsByIdCorrections,
4186
4101
  patchExtractionResultsByIdRegenerate,
4187
- patchExtractionSchemaFieldsById,
4188
- patchExtractionSchemasById,
4189
- patchExtractionSchemasByIdActivate,
4190
- patchExtractionSchemasByIdFields,
4191
4102
  patchInvitationsByIdAccept,
4192
4103
  patchInvitationsByIdResend,
4193
4104
  patchInvitationsByIdRevoke,
@@ -4217,7 +4128,10 @@ export {
4217
4128
  postAgentVersions,
4218
4129
  postAgents,
4219
4130
  postAgentsByIdClone,
4131
+ postAgentsByIdDiscoverSchema,
4220
4132
  postAgentsByIdPublishVersion,
4133
+ postAgentsByIdSchemaVersions,
4134
+ postAgentsByIdSchemaVersionsByVersionIdActivate,
4221
4135
  postAgentsByIdTeach,
4222
4136
  postAgentsByIdTest,
4223
4137
  postAgentsByIdValidate,
@@ -4239,11 +4153,9 @@ export {
4239
4153
  postDocumentsPresignedUpload,
4240
4154
  postExtractionBatches,
4241
4155
  postExtractionDocumentsBeginUpload,
4156
+ postExtractionDocumentsByIdReprocess,
4242
4157
  postExtractionDocumentsUpload,
4243
4158
  postExtractionResults,
4244
- postExtractionSchemaFields,
4245
- postExtractionSchemas,
4246
- postExtractionSchemasBulkCreate,
4247
4159
  postFieldTemplates,
4248
4160
  postInvitationsAcceptByToken,
4249
4161
  postInvitationsInvite,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gpt-core/client",
3
- "version": "0.7.63",
3
+ "version": "0.7.65",
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",