@gpt-core/client 0.7.80 → 0.7.82
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 +305 -12
- package/dist/index.d.ts +305 -12
- package/dist/index.js +44 -4
- package/dist/index.mjs +40 -3
- package/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -120,6 +120,7 @@ __export(index_exports, {
|
|
|
120
120
|
getFieldTemplatesById: () => getFieldTemplatesById,
|
|
121
121
|
getInvitations: () => getInvitations,
|
|
122
122
|
getInvitationsConsumeByToken: () => getInvitationsConsumeByToken,
|
|
123
|
+
getInvitationsMyInvitations: () => getInvitationsMyInvitations,
|
|
123
124
|
getLlmAnalytics: () => getLlmAnalytics,
|
|
124
125
|
getLlmAnalyticsById: () => getLlmAnalyticsById,
|
|
125
126
|
getLlmAnalyticsCosts: () => getLlmAnalyticsCosts,
|
|
@@ -204,11 +205,14 @@ __export(index_exports, {
|
|
|
204
205
|
patchExtractionDocumentsByIdFinishUpload: () => patchExtractionDocumentsByIdFinishUpload,
|
|
205
206
|
patchExtractionDocumentsByIdInclude: () => patchExtractionDocumentsByIdInclude,
|
|
206
207
|
patchExtractionDocumentsByIdMarkTrained: () => patchExtractionDocumentsByIdMarkTrained,
|
|
208
|
+
patchExtractionDocumentsByIdReprocess: () => patchExtractionDocumentsByIdReprocess,
|
|
207
209
|
patchExtractionDocumentsByIdRestore: () => patchExtractionDocumentsByIdRestore,
|
|
208
210
|
patchExtractionDocumentsByIdStatus: () => patchExtractionDocumentsByIdStatus,
|
|
209
211
|
patchExtractionResultsByIdCorrections: () => patchExtractionResultsByIdCorrections,
|
|
210
212
|
patchExtractionResultsByIdRegenerate: () => patchExtractionResultsByIdRegenerate,
|
|
211
213
|
patchInvitationsByIdAccept: () => patchInvitationsByIdAccept,
|
|
214
|
+
patchInvitationsByIdAcceptByUser: () => patchInvitationsByIdAcceptByUser,
|
|
215
|
+
patchInvitationsByIdDecline: () => patchInvitationsByIdDecline,
|
|
212
216
|
patchInvitationsByIdResend: () => patchInvitationsByIdResend,
|
|
213
217
|
patchInvitationsByIdRevoke: () => patchInvitationsByIdRevoke,
|
|
214
218
|
patchMessagesById: () => patchMessagesById,
|
|
@@ -262,7 +266,6 @@ __export(index_exports, {
|
|
|
262
266
|
postDocumentsPresignedUpload: () => postDocumentsPresignedUpload,
|
|
263
267
|
postExtractionBatches: () => postExtractionBatches,
|
|
264
268
|
postExtractionDocumentsBeginUpload: () => postExtractionDocumentsBeginUpload,
|
|
265
|
-
postExtractionDocumentsByIdReprocess: () => postExtractionDocumentsByIdReprocess,
|
|
266
269
|
postExtractionDocumentsUpload: () => postExtractionDocumentsUpload,
|
|
267
270
|
postExtractionResults: () => postExtractionResults,
|
|
268
271
|
postFieldTemplates: () => postFieldTemplates,
|
|
@@ -388,6 +391,7 @@ __export(sdk_gen_exports, {
|
|
|
388
391
|
getFieldTemplatesById: () => getFieldTemplatesById,
|
|
389
392
|
getInvitations: () => getInvitations,
|
|
390
393
|
getInvitationsConsumeByToken: () => getInvitationsConsumeByToken,
|
|
394
|
+
getInvitationsMyInvitations: () => getInvitationsMyInvitations,
|
|
391
395
|
getLlmAnalytics: () => getLlmAnalytics,
|
|
392
396
|
getLlmAnalyticsById: () => getLlmAnalyticsById,
|
|
393
397
|
getLlmAnalyticsCosts: () => getLlmAnalyticsCosts,
|
|
@@ -468,11 +472,14 @@ __export(sdk_gen_exports, {
|
|
|
468
472
|
patchExtractionDocumentsByIdFinishUpload: () => patchExtractionDocumentsByIdFinishUpload,
|
|
469
473
|
patchExtractionDocumentsByIdInclude: () => patchExtractionDocumentsByIdInclude,
|
|
470
474
|
patchExtractionDocumentsByIdMarkTrained: () => patchExtractionDocumentsByIdMarkTrained,
|
|
475
|
+
patchExtractionDocumentsByIdReprocess: () => patchExtractionDocumentsByIdReprocess,
|
|
471
476
|
patchExtractionDocumentsByIdRestore: () => patchExtractionDocumentsByIdRestore,
|
|
472
477
|
patchExtractionDocumentsByIdStatus: () => patchExtractionDocumentsByIdStatus,
|
|
473
478
|
patchExtractionResultsByIdCorrections: () => patchExtractionResultsByIdCorrections,
|
|
474
479
|
patchExtractionResultsByIdRegenerate: () => patchExtractionResultsByIdRegenerate,
|
|
475
480
|
patchInvitationsByIdAccept: () => patchInvitationsByIdAccept,
|
|
481
|
+
patchInvitationsByIdAcceptByUser: () => patchInvitationsByIdAcceptByUser,
|
|
482
|
+
patchInvitationsByIdDecline: () => patchInvitationsByIdDecline,
|
|
476
483
|
patchInvitationsByIdResend: () => patchInvitationsByIdResend,
|
|
477
484
|
patchInvitationsByIdRevoke: () => patchInvitationsByIdRevoke,
|
|
478
485
|
patchMessagesById: () => patchMessagesById,
|
|
@@ -526,7 +533,6 @@ __export(sdk_gen_exports, {
|
|
|
526
533
|
postDocumentsPresignedUpload: () => postDocumentsPresignedUpload,
|
|
527
534
|
postExtractionBatches: () => postExtractionBatches,
|
|
528
535
|
postExtractionDocumentsBeginUpload: () => postExtractionDocumentsBeginUpload,
|
|
529
|
-
postExtractionDocumentsByIdReprocess: () => postExtractionDocumentsByIdReprocess,
|
|
530
536
|
postExtractionDocumentsUpload: () => postExtractionDocumentsUpload,
|
|
531
537
|
postExtractionResults: () => postExtractionResults,
|
|
532
538
|
postFieldTemplates: () => postFieldTemplates,
|
|
@@ -1902,6 +1908,16 @@ var postAgentVersions = (options) => (options.client ?? client).post({
|
|
|
1902
1908
|
...options.headers
|
|
1903
1909
|
}
|
|
1904
1910
|
});
|
|
1911
|
+
var patchInvitationsByIdAcceptByUser = (options) => (options.client ?? client).patch({
|
|
1912
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1913
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1914
|
+
url: "/invitations/{id}/accept-by-user",
|
|
1915
|
+
...options,
|
|
1916
|
+
headers: {
|
|
1917
|
+
"Content-Type": "application/vnd.api+json",
|
|
1918
|
+
...options.headers
|
|
1919
|
+
}
|
|
1920
|
+
});
|
|
1905
1921
|
var deleteWebhookConfigsById = (options) => (options.client ?? client).delete({
|
|
1906
1922
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1907
1923
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -2291,7 +2307,7 @@ var postAgentsPredict = (options) => (options.client ?? client).post({
|
|
|
2291
2307
|
...options.headers
|
|
2292
2308
|
}
|
|
2293
2309
|
});
|
|
2294
|
-
var
|
|
2310
|
+
var patchExtractionDocumentsByIdReprocess = (options) => (options.client ?? client).patch({
|
|
2295
2311
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2296
2312
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2297
2313
|
url: "/extraction/documents/{id}/reprocess",
|
|
@@ -2393,6 +2409,16 @@ var getExtractionDocumentsWorkspaceByWorkspaceIdReviewQueue = (options) => (opti
|
|
|
2393
2409
|
url: "/extraction/documents/workspace/{workspace_id}/review_queue",
|
|
2394
2410
|
...options
|
|
2395
2411
|
});
|
|
2412
|
+
var patchInvitationsByIdDecline = (options) => (options.client ?? client).patch({
|
|
2413
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2414
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2415
|
+
url: "/invitations/{id}/decline",
|
|
2416
|
+
...options,
|
|
2417
|
+
headers: {
|
|
2418
|
+
"Content-Type": "application/vnd.api+json",
|
|
2419
|
+
...options.headers
|
|
2420
|
+
}
|
|
2421
|
+
});
|
|
2396
2422
|
var postExtractionDocumentsUpload = (options) => (options.client ?? client).post({
|
|
2397
2423
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2398
2424
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -3097,6 +3123,17 @@ var getExtractionDocumentsWorkspaceByWorkspaceId = (options) => (options.client
|
|
|
3097
3123
|
url: "/extraction/documents/workspace/{workspace_id}",
|
|
3098
3124
|
...options
|
|
3099
3125
|
});
|
|
3126
|
+
var getInvitationsMyInvitations = (options) => (options.client ?? client).get({
|
|
3127
|
+
querySerializer: {
|
|
3128
|
+
parameters: {
|
|
3129
|
+
filter: { object: { style: "form" } },
|
|
3130
|
+
fields: { object: { style: "form" } }
|
|
3131
|
+
}
|
|
3132
|
+
},
|
|
3133
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3134
|
+
url: "/invitations/my-invitations",
|
|
3135
|
+
...options
|
|
3136
|
+
});
|
|
3100
3137
|
var postExtractionDocumentsBeginUpload = (options) => (options.client ?? client).post({
|
|
3101
3138
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
3102
3139
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -4323,6 +4360,7 @@ var index_default = gptCore;
|
|
|
4323
4360
|
getFieldTemplatesById,
|
|
4324
4361
|
getInvitations,
|
|
4325
4362
|
getInvitationsConsumeByToken,
|
|
4363
|
+
getInvitationsMyInvitations,
|
|
4326
4364
|
getLlmAnalytics,
|
|
4327
4365
|
getLlmAnalyticsById,
|
|
4328
4366
|
getLlmAnalyticsCosts,
|
|
@@ -4407,11 +4445,14 @@ var index_default = gptCore;
|
|
|
4407
4445
|
patchExtractionDocumentsByIdFinishUpload,
|
|
4408
4446
|
patchExtractionDocumentsByIdInclude,
|
|
4409
4447
|
patchExtractionDocumentsByIdMarkTrained,
|
|
4448
|
+
patchExtractionDocumentsByIdReprocess,
|
|
4410
4449
|
patchExtractionDocumentsByIdRestore,
|
|
4411
4450
|
patchExtractionDocumentsByIdStatus,
|
|
4412
4451
|
patchExtractionResultsByIdCorrections,
|
|
4413
4452
|
patchExtractionResultsByIdRegenerate,
|
|
4414
4453
|
patchInvitationsByIdAccept,
|
|
4454
|
+
patchInvitationsByIdAcceptByUser,
|
|
4455
|
+
patchInvitationsByIdDecline,
|
|
4415
4456
|
patchInvitationsByIdResend,
|
|
4416
4457
|
patchInvitationsByIdRevoke,
|
|
4417
4458
|
patchMessagesById,
|
|
@@ -4465,7 +4506,6 @@ var index_default = gptCore;
|
|
|
4465
4506
|
postDocumentsPresignedUpload,
|
|
4466
4507
|
postExtractionBatches,
|
|
4467
4508
|
postExtractionDocumentsBeginUpload,
|
|
4468
|
-
postExtractionDocumentsByIdReprocess,
|
|
4469
4509
|
postExtractionDocumentsUpload,
|
|
4470
4510
|
postExtractionResults,
|
|
4471
4511
|
postFieldTemplates,
|
package/dist/index.mjs
CHANGED
|
@@ -74,6 +74,7 @@ __export(sdk_gen_exports, {
|
|
|
74
74
|
getFieldTemplatesById: () => getFieldTemplatesById,
|
|
75
75
|
getInvitations: () => getInvitations,
|
|
76
76
|
getInvitationsConsumeByToken: () => getInvitationsConsumeByToken,
|
|
77
|
+
getInvitationsMyInvitations: () => getInvitationsMyInvitations,
|
|
77
78
|
getLlmAnalytics: () => getLlmAnalytics,
|
|
78
79
|
getLlmAnalyticsById: () => getLlmAnalyticsById,
|
|
79
80
|
getLlmAnalyticsCosts: () => getLlmAnalyticsCosts,
|
|
@@ -154,11 +155,14 @@ __export(sdk_gen_exports, {
|
|
|
154
155
|
patchExtractionDocumentsByIdFinishUpload: () => patchExtractionDocumentsByIdFinishUpload,
|
|
155
156
|
patchExtractionDocumentsByIdInclude: () => patchExtractionDocumentsByIdInclude,
|
|
156
157
|
patchExtractionDocumentsByIdMarkTrained: () => patchExtractionDocumentsByIdMarkTrained,
|
|
158
|
+
patchExtractionDocumentsByIdReprocess: () => patchExtractionDocumentsByIdReprocess,
|
|
157
159
|
patchExtractionDocumentsByIdRestore: () => patchExtractionDocumentsByIdRestore,
|
|
158
160
|
patchExtractionDocumentsByIdStatus: () => patchExtractionDocumentsByIdStatus,
|
|
159
161
|
patchExtractionResultsByIdCorrections: () => patchExtractionResultsByIdCorrections,
|
|
160
162
|
patchExtractionResultsByIdRegenerate: () => patchExtractionResultsByIdRegenerate,
|
|
161
163
|
patchInvitationsByIdAccept: () => patchInvitationsByIdAccept,
|
|
164
|
+
patchInvitationsByIdAcceptByUser: () => patchInvitationsByIdAcceptByUser,
|
|
165
|
+
patchInvitationsByIdDecline: () => patchInvitationsByIdDecline,
|
|
162
166
|
patchInvitationsByIdResend: () => patchInvitationsByIdResend,
|
|
163
167
|
patchInvitationsByIdRevoke: () => patchInvitationsByIdRevoke,
|
|
164
168
|
patchMessagesById: () => patchMessagesById,
|
|
@@ -212,7 +216,6 @@ __export(sdk_gen_exports, {
|
|
|
212
216
|
postDocumentsPresignedUpload: () => postDocumentsPresignedUpload,
|
|
213
217
|
postExtractionBatches: () => postExtractionBatches,
|
|
214
218
|
postExtractionDocumentsBeginUpload: () => postExtractionDocumentsBeginUpload,
|
|
215
|
-
postExtractionDocumentsByIdReprocess: () => postExtractionDocumentsByIdReprocess,
|
|
216
219
|
postExtractionDocumentsUpload: () => postExtractionDocumentsUpload,
|
|
217
220
|
postExtractionResults: () => postExtractionResults,
|
|
218
221
|
postFieldTemplates: () => postFieldTemplates,
|
|
@@ -1588,6 +1591,16 @@ var postAgentVersions = (options) => (options.client ?? client).post({
|
|
|
1588
1591
|
...options.headers
|
|
1589
1592
|
}
|
|
1590
1593
|
});
|
|
1594
|
+
var patchInvitationsByIdAcceptByUser = (options) => (options.client ?? client).patch({
|
|
1595
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1596
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1597
|
+
url: "/invitations/{id}/accept-by-user",
|
|
1598
|
+
...options,
|
|
1599
|
+
headers: {
|
|
1600
|
+
"Content-Type": "application/vnd.api+json",
|
|
1601
|
+
...options.headers
|
|
1602
|
+
}
|
|
1603
|
+
});
|
|
1591
1604
|
var deleteWebhookConfigsById = (options) => (options.client ?? client).delete({
|
|
1592
1605
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1593
1606
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -1977,7 +1990,7 @@ var postAgentsPredict = (options) => (options.client ?? client).post({
|
|
|
1977
1990
|
...options.headers
|
|
1978
1991
|
}
|
|
1979
1992
|
});
|
|
1980
|
-
var
|
|
1993
|
+
var patchExtractionDocumentsByIdReprocess = (options) => (options.client ?? client).patch({
|
|
1981
1994
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1982
1995
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1983
1996
|
url: "/extraction/documents/{id}/reprocess",
|
|
@@ -2079,6 +2092,16 @@ var getExtractionDocumentsWorkspaceByWorkspaceIdReviewQueue = (options) => (opti
|
|
|
2079
2092
|
url: "/extraction/documents/workspace/{workspace_id}/review_queue",
|
|
2080
2093
|
...options
|
|
2081
2094
|
});
|
|
2095
|
+
var patchInvitationsByIdDecline = (options) => (options.client ?? client).patch({
|
|
2096
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2097
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2098
|
+
url: "/invitations/{id}/decline",
|
|
2099
|
+
...options,
|
|
2100
|
+
headers: {
|
|
2101
|
+
"Content-Type": "application/vnd.api+json",
|
|
2102
|
+
...options.headers
|
|
2103
|
+
}
|
|
2104
|
+
});
|
|
2082
2105
|
var postExtractionDocumentsUpload = (options) => (options.client ?? client).post({
|
|
2083
2106
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2084
2107
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -2783,6 +2806,17 @@ var getExtractionDocumentsWorkspaceByWorkspaceId = (options) => (options.client
|
|
|
2783
2806
|
url: "/extraction/documents/workspace/{workspace_id}",
|
|
2784
2807
|
...options
|
|
2785
2808
|
});
|
|
2809
|
+
var getInvitationsMyInvitations = (options) => (options.client ?? client).get({
|
|
2810
|
+
querySerializer: {
|
|
2811
|
+
parameters: {
|
|
2812
|
+
filter: { object: { style: "form" } },
|
|
2813
|
+
fields: { object: { style: "form" } }
|
|
2814
|
+
}
|
|
2815
|
+
},
|
|
2816
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2817
|
+
url: "/invitations/my-invitations",
|
|
2818
|
+
...options
|
|
2819
|
+
});
|
|
2786
2820
|
var postExtractionDocumentsBeginUpload = (options) => (options.client ?? client).post({
|
|
2787
2821
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2788
2822
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -4009,6 +4043,7 @@ export {
|
|
|
4009
4043
|
getFieldTemplatesById,
|
|
4010
4044
|
getInvitations,
|
|
4011
4045
|
getInvitationsConsumeByToken,
|
|
4046
|
+
getInvitationsMyInvitations,
|
|
4012
4047
|
getLlmAnalytics,
|
|
4013
4048
|
getLlmAnalyticsById,
|
|
4014
4049
|
getLlmAnalyticsCosts,
|
|
@@ -4093,11 +4128,14 @@ export {
|
|
|
4093
4128
|
patchExtractionDocumentsByIdFinishUpload,
|
|
4094
4129
|
patchExtractionDocumentsByIdInclude,
|
|
4095
4130
|
patchExtractionDocumentsByIdMarkTrained,
|
|
4131
|
+
patchExtractionDocumentsByIdReprocess,
|
|
4096
4132
|
patchExtractionDocumentsByIdRestore,
|
|
4097
4133
|
patchExtractionDocumentsByIdStatus,
|
|
4098
4134
|
patchExtractionResultsByIdCorrections,
|
|
4099
4135
|
patchExtractionResultsByIdRegenerate,
|
|
4100
4136
|
patchInvitationsByIdAccept,
|
|
4137
|
+
patchInvitationsByIdAcceptByUser,
|
|
4138
|
+
patchInvitationsByIdDecline,
|
|
4101
4139
|
patchInvitationsByIdResend,
|
|
4102
4140
|
patchInvitationsByIdRevoke,
|
|
4103
4141
|
patchMessagesById,
|
|
@@ -4151,7 +4189,6 @@ export {
|
|
|
4151
4189
|
postDocumentsPresignedUpload,
|
|
4152
4190
|
postExtractionBatches,
|
|
4153
4191
|
postExtractionDocumentsBeginUpload,
|
|
4154
|
-
postExtractionDocumentsByIdReprocess,
|
|
4155
4192
|
postExtractionDocumentsUpload,
|
|
4156
4193
|
postExtractionResults,
|
|
4157
4194
|
postFieldTemplates,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gpt-core/client",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.82",
|
|
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,15 +43,6 @@
|
|
|
43
43
|
"publishConfig": {
|
|
44
44
|
"access": "public"
|
|
45
45
|
},
|
|
46
|
-
"scripts": {
|
|
47
|
-
"generate": "openapi-ts",
|
|
48
|
-
"typecheck": "tsc --noEmit",
|
|
49
|
-
"build": "npm run typecheck && tsup src/index.ts --format cjs,esm --dts",
|
|
50
|
-
"test": "vitest run",
|
|
51
|
-
"test:watch": "vitest",
|
|
52
|
-
"test:ui": "vitest --ui",
|
|
53
|
-
"test:coverage": "vitest run --coverage"
|
|
54
|
-
},
|
|
55
46
|
"dependencies": {
|
|
56
47
|
"eventsource-parser": "^3.0.6",
|
|
57
48
|
"zod": "^3.25.76"
|
|
@@ -63,5 +54,14 @@
|
|
|
63
54
|
"tsup": "^8.5.1",
|
|
64
55
|
"typescript": "^5.9.3",
|
|
65
56
|
"vitest": "^4.0.15"
|
|
57
|
+
},
|
|
58
|
+
"scripts": {
|
|
59
|
+
"generate": "openapi-ts",
|
|
60
|
+
"typecheck": "tsc --noEmit",
|
|
61
|
+
"build": "npm run typecheck && tsup src/index.ts --format cjs,esm --dts",
|
|
62
|
+
"test": "vitest run",
|
|
63
|
+
"test:watch": "vitest",
|
|
64
|
+
"test:ui": "vitest --ui",
|
|
65
|
+
"test:coverage": "vitest run --coverage"
|
|
66
66
|
}
|
|
67
|
-
}
|
|
67
|
+
}
|