@gpt-core/client 0.7.82 → 0.7.83
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 +312 -194
- package/dist/index.d.ts +312 -194
- package/dist/index.js +41 -27
- package/dist/index.mjs +38 -25
- package/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -120,7 +120,7 @@ __export(index_exports, {
|
|
|
120
120
|
getFieldTemplatesById: () => getFieldTemplatesById,
|
|
121
121
|
getInvitations: () => getInvitations,
|
|
122
122
|
getInvitationsConsumeByToken: () => getInvitationsConsumeByToken,
|
|
123
|
-
|
|
123
|
+
getInvitationsMe: () => getInvitationsMe,
|
|
124
124
|
getLlmAnalytics: () => getLlmAnalytics,
|
|
125
125
|
getLlmAnalyticsById: () => getLlmAnalyticsById,
|
|
126
126
|
getLlmAnalyticsCosts: () => getLlmAnalyticsCosts,
|
|
@@ -172,6 +172,7 @@ __export(index_exports, {
|
|
|
172
172
|
getUsers: () => getUsers,
|
|
173
173
|
getUsersById: () => getUsersById,
|
|
174
174
|
getUsersMe: () => getUsersMe,
|
|
175
|
+
getUsersMeTenants: () => getUsersMeTenants,
|
|
175
176
|
getWallet: () => getWallet,
|
|
176
177
|
getWebhookConfigs: () => getWebhookConfigs,
|
|
177
178
|
getWebhookConfigsById: () => getWebhookConfigsById,
|
|
@@ -269,8 +270,8 @@ __export(index_exports, {
|
|
|
269
270
|
postExtractionDocumentsUpload: () => postExtractionDocumentsUpload,
|
|
270
271
|
postExtractionResults: () => postExtractionResults,
|
|
271
272
|
postFieldTemplates: () => postFieldTemplates,
|
|
273
|
+
postInvitations: () => postInvitations,
|
|
272
274
|
postInvitationsAcceptByToken: () => postInvitationsAcceptByToken,
|
|
273
|
-
postInvitationsInvite: () => postInvitationsInvite,
|
|
274
275
|
postLlmAnalytics: () => postLlmAnalytics,
|
|
275
276
|
postMessages: () => postMessages,
|
|
276
277
|
postNotificationMethods: () => postNotificationMethods,
|
|
@@ -391,7 +392,7 @@ __export(sdk_gen_exports, {
|
|
|
391
392
|
getFieldTemplatesById: () => getFieldTemplatesById,
|
|
392
393
|
getInvitations: () => getInvitations,
|
|
393
394
|
getInvitationsConsumeByToken: () => getInvitationsConsumeByToken,
|
|
394
|
-
|
|
395
|
+
getInvitationsMe: () => getInvitationsMe,
|
|
395
396
|
getLlmAnalytics: () => getLlmAnalytics,
|
|
396
397
|
getLlmAnalyticsById: () => getLlmAnalyticsById,
|
|
397
398
|
getLlmAnalyticsCosts: () => getLlmAnalyticsCosts,
|
|
@@ -443,6 +444,7 @@ __export(sdk_gen_exports, {
|
|
|
443
444
|
getUsers: () => getUsers,
|
|
444
445
|
getUsersById: () => getUsersById,
|
|
445
446
|
getUsersMe: () => getUsersMe,
|
|
447
|
+
getUsersMeTenants: () => getUsersMeTenants,
|
|
446
448
|
getWallet: () => getWallet,
|
|
447
449
|
getWebhookConfigs: () => getWebhookConfigs,
|
|
448
450
|
getWebhookConfigsById: () => getWebhookConfigsById,
|
|
@@ -536,8 +538,8 @@ __export(sdk_gen_exports, {
|
|
|
536
538
|
postExtractionDocumentsUpload: () => postExtractionDocumentsUpload,
|
|
537
539
|
postExtractionResults: () => postExtractionResults,
|
|
538
540
|
postFieldTemplates: () => postFieldTemplates,
|
|
541
|
+
postInvitations: () => postInvitations,
|
|
539
542
|
postInvitationsAcceptByToken: () => postInvitationsAcceptByToken,
|
|
540
|
-
postInvitationsInvite: () => postInvitationsInvite,
|
|
541
543
|
postLlmAnalytics: () => postLlmAnalytics,
|
|
542
544
|
postMessages: () => postMessages,
|
|
543
545
|
postNotificationMethods: () => postNotificationMethods,
|
|
@@ -1877,16 +1879,6 @@ var getUserProfilesMe = (options) => (options.client ?? client).get({
|
|
|
1877
1879
|
url: "/user_profiles/me",
|
|
1878
1880
|
...options
|
|
1879
1881
|
});
|
|
1880
|
-
var postInvitationsInvite = (options) => (options.client ?? client).post({
|
|
1881
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1882
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1883
|
-
url: "/invitations/invite",
|
|
1884
|
-
...options,
|
|
1885
|
-
headers: {
|
|
1886
|
-
"Content-Type": "application/vnd.api+json",
|
|
1887
|
-
...options.headers
|
|
1888
|
-
}
|
|
1889
|
-
});
|
|
1890
1882
|
var getAgentVersions = (options) => (options.client ?? client).get({
|
|
1891
1883
|
querySerializer: {
|
|
1892
1884
|
parameters: {
|
|
@@ -2096,6 +2088,17 @@ var getTransactionsById = (options) => (options.client ?? client).get({
|
|
|
2096
2088
|
url: "/transactions/{id}",
|
|
2097
2089
|
...options
|
|
2098
2090
|
});
|
|
2091
|
+
var getUsersMeTenants = (options) => (options.client ?? client).get({
|
|
2092
|
+
querySerializer: {
|
|
2093
|
+
parameters: {
|
|
2094
|
+
filter: { object: { style: "form" } },
|
|
2095
|
+
fields: { object: { style: "form" } }
|
|
2096
|
+
}
|
|
2097
|
+
},
|
|
2098
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2099
|
+
url: "/users/me/tenants",
|
|
2100
|
+
...options
|
|
2101
|
+
});
|
|
2099
2102
|
var getTenantMemberships = (options) => (options.client ?? client).get({
|
|
2100
2103
|
querySerializer: {
|
|
2101
2104
|
parameters: {
|
|
@@ -2221,6 +2224,16 @@ var getInvitations = (options) => (options.client ?? client).get({
|
|
|
2221
2224
|
url: "/invitations",
|
|
2222
2225
|
...options
|
|
2223
2226
|
});
|
|
2227
|
+
var postInvitations = (options) => (options.client ?? client).post({
|
|
2228
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2229
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2230
|
+
url: "/invitations",
|
|
2231
|
+
...options,
|
|
2232
|
+
headers: {
|
|
2233
|
+
"Content-Type": "application/vnd.api+json",
|
|
2234
|
+
...options.headers
|
|
2235
|
+
}
|
|
2236
|
+
});
|
|
2224
2237
|
var getSearchSemantic = (options) => (options.client ?? client).get({
|
|
2225
2238
|
querySerializer: {
|
|
2226
2239
|
parameters: {
|
|
@@ -3123,17 +3136,6 @@ var getExtractionDocumentsWorkspaceByWorkspaceId = (options) => (options.client
|
|
|
3123
3136
|
url: "/extraction/documents/workspace/{workspace_id}",
|
|
3124
3137
|
...options
|
|
3125
3138
|
});
|
|
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
|
-
});
|
|
3137
3139
|
var postExtractionDocumentsBeginUpload = (options) => (options.client ?? client).post({
|
|
3138
3140
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
3139
3141
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -3400,6 +3402,17 @@ var patchUserProfilesById = (options) => (options.client ?? client).patch({
|
|
|
3400
3402
|
...options.headers
|
|
3401
3403
|
}
|
|
3402
3404
|
});
|
|
3405
|
+
var getInvitationsMe = (options) => (options.client ?? client).get({
|
|
3406
|
+
querySerializer: {
|
|
3407
|
+
parameters: {
|
|
3408
|
+
filter: { object: { style: "form" } },
|
|
3409
|
+
fields: { object: { style: "form" } }
|
|
3410
|
+
}
|
|
3411
|
+
},
|
|
3412
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3413
|
+
url: "/invitations/me",
|
|
3414
|
+
...options
|
|
3415
|
+
});
|
|
3403
3416
|
var deleteObjectsById = (options) => (options.client ?? client).delete({
|
|
3404
3417
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
3405
3418
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -4360,7 +4373,7 @@ var index_default = gptCore;
|
|
|
4360
4373
|
getFieldTemplatesById,
|
|
4361
4374
|
getInvitations,
|
|
4362
4375
|
getInvitationsConsumeByToken,
|
|
4363
|
-
|
|
4376
|
+
getInvitationsMe,
|
|
4364
4377
|
getLlmAnalytics,
|
|
4365
4378
|
getLlmAnalyticsById,
|
|
4366
4379
|
getLlmAnalyticsCosts,
|
|
@@ -4412,6 +4425,7 @@ var index_default = gptCore;
|
|
|
4412
4425
|
getUsers,
|
|
4413
4426
|
getUsersById,
|
|
4414
4427
|
getUsersMe,
|
|
4428
|
+
getUsersMeTenants,
|
|
4415
4429
|
getWallet,
|
|
4416
4430
|
getWebhookConfigs,
|
|
4417
4431
|
getWebhookConfigsById,
|
|
@@ -4509,8 +4523,8 @@ var index_default = gptCore;
|
|
|
4509
4523
|
postExtractionDocumentsUpload,
|
|
4510
4524
|
postExtractionResults,
|
|
4511
4525
|
postFieldTemplates,
|
|
4526
|
+
postInvitations,
|
|
4512
4527
|
postInvitationsAcceptByToken,
|
|
4513
|
-
postInvitationsInvite,
|
|
4514
4528
|
postLlmAnalytics,
|
|
4515
4529
|
postMessages,
|
|
4516
4530
|
postNotificationMethods,
|
package/dist/index.mjs
CHANGED
|
@@ -74,7 +74,7 @@ __export(sdk_gen_exports, {
|
|
|
74
74
|
getFieldTemplatesById: () => getFieldTemplatesById,
|
|
75
75
|
getInvitations: () => getInvitations,
|
|
76
76
|
getInvitationsConsumeByToken: () => getInvitationsConsumeByToken,
|
|
77
|
-
|
|
77
|
+
getInvitationsMe: () => getInvitationsMe,
|
|
78
78
|
getLlmAnalytics: () => getLlmAnalytics,
|
|
79
79
|
getLlmAnalyticsById: () => getLlmAnalyticsById,
|
|
80
80
|
getLlmAnalyticsCosts: () => getLlmAnalyticsCosts,
|
|
@@ -126,6 +126,7 @@ __export(sdk_gen_exports, {
|
|
|
126
126
|
getUsers: () => getUsers,
|
|
127
127
|
getUsersById: () => getUsersById,
|
|
128
128
|
getUsersMe: () => getUsersMe,
|
|
129
|
+
getUsersMeTenants: () => getUsersMeTenants,
|
|
129
130
|
getWallet: () => getWallet,
|
|
130
131
|
getWebhookConfigs: () => getWebhookConfigs,
|
|
131
132
|
getWebhookConfigsById: () => getWebhookConfigsById,
|
|
@@ -219,8 +220,8 @@ __export(sdk_gen_exports, {
|
|
|
219
220
|
postExtractionDocumentsUpload: () => postExtractionDocumentsUpload,
|
|
220
221
|
postExtractionResults: () => postExtractionResults,
|
|
221
222
|
postFieldTemplates: () => postFieldTemplates,
|
|
223
|
+
postInvitations: () => postInvitations,
|
|
222
224
|
postInvitationsAcceptByToken: () => postInvitationsAcceptByToken,
|
|
223
|
-
postInvitationsInvite: () => postInvitationsInvite,
|
|
224
225
|
postLlmAnalytics: () => postLlmAnalytics,
|
|
225
226
|
postMessages: () => postMessages,
|
|
226
227
|
postNotificationMethods: () => postNotificationMethods,
|
|
@@ -1560,16 +1561,6 @@ var getUserProfilesMe = (options) => (options.client ?? client).get({
|
|
|
1560
1561
|
url: "/user_profiles/me",
|
|
1561
1562
|
...options
|
|
1562
1563
|
});
|
|
1563
|
-
var postInvitationsInvite = (options) => (options.client ?? client).post({
|
|
1564
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1565
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1566
|
-
url: "/invitations/invite",
|
|
1567
|
-
...options,
|
|
1568
|
-
headers: {
|
|
1569
|
-
"Content-Type": "application/vnd.api+json",
|
|
1570
|
-
...options.headers
|
|
1571
|
-
}
|
|
1572
|
-
});
|
|
1573
1564
|
var getAgentVersions = (options) => (options.client ?? client).get({
|
|
1574
1565
|
querySerializer: {
|
|
1575
1566
|
parameters: {
|
|
@@ -1779,6 +1770,17 @@ var getTransactionsById = (options) => (options.client ?? client).get({
|
|
|
1779
1770
|
url: "/transactions/{id}",
|
|
1780
1771
|
...options
|
|
1781
1772
|
});
|
|
1773
|
+
var getUsersMeTenants = (options) => (options.client ?? client).get({
|
|
1774
|
+
querySerializer: {
|
|
1775
|
+
parameters: {
|
|
1776
|
+
filter: { object: { style: "form" } },
|
|
1777
|
+
fields: { object: { style: "form" } }
|
|
1778
|
+
}
|
|
1779
|
+
},
|
|
1780
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1781
|
+
url: "/users/me/tenants",
|
|
1782
|
+
...options
|
|
1783
|
+
});
|
|
1782
1784
|
var getTenantMemberships = (options) => (options.client ?? client).get({
|
|
1783
1785
|
querySerializer: {
|
|
1784
1786
|
parameters: {
|
|
@@ -1904,6 +1906,16 @@ var getInvitations = (options) => (options.client ?? client).get({
|
|
|
1904
1906
|
url: "/invitations",
|
|
1905
1907
|
...options
|
|
1906
1908
|
});
|
|
1909
|
+
var postInvitations = (options) => (options.client ?? client).post({
|
|
1910
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1911
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1912
|
+
url: "/invitations",
|
|
1913
|
+
...options,
|
|
1914
|
+
headers: {
|
|
1915
|
+
"Content-Type": "application/vnd.api+json",
|
|
1916
|
+
...options.headers
|
|
1917
|
+
}
|
|
1918
|
+
});
|
|
1907
1919
|
var getSearchSemantic = (options) => (options.client ?? client).get({
|
|
1908
1920
|
querySerializer: {
|
|
1909
1921
|
parameters: {
|
|
@@ -2806,17 +2818,6 @@ var getExtractionDocumentsWorkspaceByWorkspaceId = (options) => (options.client
|
|
|
2806
2818
|
url: "/extraction/documents/workspace/{workspace_id}",
|
|
2807
2819
|
...options
|
|
2808
2820
|
});
|
|
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
|
-
});
|
|
2820
2821
|
var postExtractionDocumentsBeginUpload = (options) => (options.client ?? client).post({
|
|
2821
2822
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2822
2823
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -3083,6 +3084,17 @@ var patchUserProfilesById = (options) => (options.client ?? client).patch({
|
|
|
3083
3084
|
...options.headers
|
|
3084
3085
|
}
|
|
3085
3086
|
});
|
|
3087
|
+
var getInvitationsMe = (options) => (options.client ?? client).get({
|
|
3088
|
+
querySerializer: {
|
|
3089
|
+
parameters: {
|
|
3090
|
+
filter: { object: { style: "form" } },
|
|
3091
|
+
fields: { object: { style: "form" } }
|
|
3092
|
+
}
|
|
3093
|
+
},
|
|
3094
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3095
|
+
url: "/invitations/me",
|
|
3096
|
+
...options
|
|
3097
|
+
});
|
|
3086
3098
|
var deleteObjectsById = (options) => (options.client ?? client).delete({
|
|
3087
3099
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
3088
3100
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -4043,7 +4055,7 @@ export {
|
|
|
4043
4055
|
getFieldTemplatesById,
|
|
4044
4056
|
getInvitations,
|
|
4045
4057
|
getInvitationsConsumeByToken,
|
|
4046
|
-
|
|
4058
|
+
getInvitationsMe,
|
|
4047
4059
|
getLlmAnalytics,
|
|
4048
4060
|
getLlmAnalyticsById,
|
|
4049
4061
|
getLlmAnalyticsCosts,
|
|
@@ -4095,6 +4107,7 @@ export {
|
|
|
4095
4107
|
getUsers,
|
|
4096
4108
|
getUsersById,
|
|
4097
4109
|
getUsersMe,
|
|
4110
|
+
getUsersMeTenants,
|
|
4098
4111
|
getWallet,
|
|
4099
4112
|
getWebhookConfigs,
|
|
4100
4113
|
getWebhookConfigsById,
|
|
@@ -4192,8 +4205,8 @@ export {
|
|
|
4192
4205
|
postExtractionDocumentsUpload,
|
|
4193
4206
|
postExtractionResults,
|
|
4194
4207
|
postFieldTemplates,
|
|
4208
|
+
postInvitations,
|
|
4195
4209
|
postInvitationsAcceptByToken,
|
|
4196
|
-
postInvitationsInvite,
|
|
4197
4210
|
postLlmAnalytics,
|
|
4198
4211
|
postMessages,
|
|
4199
4212
|
postNotificationMethods,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gpt-core/client",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.83",
|
|
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,6 +43,15 @@
|
|
|
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
|
+
},
|
|
46
55
|
"dependencies": {
|
|
47
56
|
"eventsource-parser": "^3.0.6",
|
|
48
57
|
"zod": "^3.25.76"
|
|
@@ -54,14 +63,5 @@
|
|
|
54
63
|
"tsup": "^8.5.1",
|
|
55
64
|
"typescript": "^5.9.3",
|
|
56
65
|
"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
|
+
}
|