@gpt-core/client 0.6.5 → 0.6.7
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 +328 -10
- package/dist/index.d.ts +328 -10
- package/dist/index.js +39 -0
- package/dist/index.mjs +36 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -110,6 +110,7 @@ __export(index_exports, {
|
|
|
110
110
|
getExtractionResultsDocumentByDocumentId: () => getExtractionResultsDocumentByDocumentId,
|
|
111
111
|
getExtractionSchemaFields: () => getExtractionSchemaFields,
|
|
112
112
|
getExtractionSchemaFieldsById: () => getExtractionSchemaFieldsById,
|
|
113
|
+
getExtractionSchemas: () => getExtractionSchemas,
|
|
113
114
|
getExtractionSchemasById: () => getExtractionSchemasById,
|
|
114
115
|
getExtractionSchemasWorkspaceByWorkspaceId: () => getExtractionSchemasWorkspaceByWorkspaceId,
|
|
115
116
|
getFieldTemplates: () => getFieldTemplates,
|
|
@@ -195,6 +196,8 @@ __export(index_exports, {
|
|
|
195
196
|
patchExtractionResultsByIdRegenerate: () => patchExtractionResultsByIdRegenerate,
|
|
196
197
|
patchExtractionSchemaFieldsById: () => patchExtractionSchemaFieldsById,
|
|
197
198
|
patchExtractionSchemasById: () => patchExtractionSchemasById,
|
|
199
|
+
patchExtractionSchemasByIdActivate: () => patchExtractionSchemasByIdActivate,
|
|
200
|
+
patchExtractionSchemasByIdFields: () => patchExtractionSchemasByIdFields,
|
|
198
201
|
patchInvitationsByIdAccept: () => patchInvitationsByIdAccept,
|
|
199
202
|
patchInvitationsByIdResend: () => patchInvitationsByIdResend,
|
|
200
203
|
patchInvitationsByIdRevoke: () => patchInvitationsByIdRevoke,
|
|
@@ -2141,6 +2144,7 @@ var getTrainingExamples = (options) => (options.client ?? client).get({
|
|
|
2141
2144
|
querySerializer: {
|
|
2142
2145
|
parameters: {
|
|
2143
2146
|
filter: { object: { style: "form" } },
|
|
2147
|
+
page: { object: { style: "form" } },
|
|
2144
2148
|
fields: { object: { style: "form" } }
|
|
2145
2149
|
}
|
|
2146
2150
|
},
|
|
@@ -2596,6 +2600,18 @@ var postUsersAuthConfirm = (options) => (options.client ?? client).post({
|
|
|
2596
2600
|
...options.headers
|
|
2597
2601
|
}
|
|
2598
2602
|
});
|
|
2603
|
+
var getExtractionSchemas = (options) => (options.client ?? client).get({
|
|
2604
|
+
querySerializer: {
|
|
2605
|
+
parameters: {
|
|
2606
|
+
filter: { object: { style: "form" } },
|
|
2607
|
+
page: { object: { style: "form" } },
|
|
2608
|
+
fields: { object: { style: "form" } }
|
|
2609
|
+
}
|
|
2610
|
+
},
|
|
2611
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2612
|
+
url: "/extraction/schemas",
|
|
2613
|
+
...options
|
|
2614
|
+
});
|
|
2599
2615
|
var postExtractionSchemas = (options) => (options.client ?? client).post({
|
|
2600
2616
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2601
2617
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -2767,6 +2783,16 @@ var getPlans = (options) => (options.client ?? client).get({
|
|
|
2767
2783
|
url: "/plans",
|
|
2768
2784
|
...options
|
|
2769
2785
|
});
|
|
2786
|
+
var patchExtractionSchemasByIdFields = (options) => (options.client ?? client).patch({
|
|
2787
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2788
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2789
|
+
url: "/extraction/schemas/{id}/fields",
|
|
2790
|
+
...options,
|
|
2791
|
+
headers: {
|
|
2792
|
+
"Content-Type": "application/vnd.api+json",
|
|
2793
|
+
...options.headers
|
|
2794
|
+
}
|
|
2795
|
+
});
|
|
2770
2796
|
var getExtractionSchemasById = (options) => (options.client ?? client).get({
|
|
2771
2797
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2772
2798
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -3086,6 +3112,16 @@ var getWallet = (options) => (options.client ?? client).get({
|
|
|
3086
3112
|
url: "/wallet",
|
|
3087
3113
|
...options
|
|
3088
3114
|
});
|
|
3115
|
+
var patchExtractionSchemasByIdActivate = (options) => (options.client ?? client).patch({
|
|
3116
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
3117
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3118
|
+
url: "/extraction/schemas/{id}/activate",
|
|
3119
|
+
...options,
|
|
3120
|
+
headers: {
|
|
3121
|
+
"Content-Type": "application/vnd.api+json",
|
|
3122
|
+
...options.headers
|
|
3123
|
+
}
|
|
3124
|
+
});
|
|
3089
3125
|
var deleteMessagesById = (options) => (options.client ?? client).delete({
|
|
3090
3126
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
3091
3127
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -3709,6 +3745,7 @@ async function collectStreamedMessage(stream) {
|
|
|
3709
3745
|
getExtractionResultsDocumentByDocumentId,
|
|
3710
3746
|
getExtractionSchemaFields,
|
|
3711
3747
|
getExtractionSchemaFieldsById,
|
|
3748
|
+
getExtractionSchemas,
|
|
3712
3749
|
getExtractionSchemasById,
|
|
3713
3750
|
getExtractionSchemasWorkspaceByWorkspaceId,
|
|
3714
3751
|
getFieldTemplates,
|
|
@@ -3794,6 +3831,8 @@ async function collectStreamedMessage(stream) {
|
|
|
3794
3831
|
patchExtractionResultsByIdRegenerate,
|
|
3795
3832
|
patchExtractionSchemaFieldsById,
|
|
3796
3833
|
patchExtractionSchemasById,
|
|
3834
|
+
patchExtractionSchemasByIdActivate,
|
|
3835
|
+
patchExtractionSchemasByIdFields,
|
|
3797
3836
|
patchInvitationsByIdAccept,
|
|
3798
3837
|
patchInvitationsByIdResend,
|
|
3799
3838
|
patchInvitationsByIdRevoke,
|
package/dist/index.mjs
CHANGED
|
@@ -1838,6 +1838,7 @@ var getTrainingExamples = (options) => (options.client ?? client).get({
|
|
|
1838
1838
|
querySerializer: {
|
|
1839
1839
|
parameters: {
|
|
1840
1840
|
filter: { object: { style: "form" } },
|
|
1841
|
+
page: { object: { style: "form" } },
|
|
1841
1842
|
fields: { object: { style: "form" } }
|
|
1842
1843
|
}
|
|
1843
1844
|
},
|
|
@@ -2293,6 +2294,18 @@ var postUsersAuthConfirm = (options) => (options.client ?? client).post({
|
|
|
2293
2294
|
...options.headers
|
|
2294
2295
|
}
|
|
2295
2296
|
});
|
|
2297
|
+
var getExtractionSchemas = (options) => (options.client ?? client).get({
|
|
2298
|
+
querySerializer: {
|
|
2299
|
+
parameters: {
|
|
2300
|
+
filter: { object: { style: "form" } },
|
|
2301
|
+
page: { object: { style: "form" } },
|
|
2302
|
+
fields: { object: { style: "form" } }
|
|
2303
|
+
}
|
|
2304
|
+
},
|
|
2305
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2306
|
+
url: "/extraction/schemas",
|
|
2307
|
+
...options
|
|
2308
|
+
});
|
|
2296
2309
|
var postExtractionSchemas = (options) => (options.client ?? client).post({
|
|
2297
2310
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2298
2311
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -2464,6 +2477,16 @@ var getPlans = (options) => (options.client ?? client).get({
|
|
|
2464
2477
|
url: "/plans",
|
|
2465
2478
|
...options
|
|
2466
2479
|
});
|
|
2480
|
+
var patchExtractionSchemasByIdFields = (options) => (options.client ?? client).patch({
|
|
2481
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2482
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2483
|
+
url: "/extraction/schemas/{id}/fields",
|
|
2484
|
+
...options,
|
|
2485
|
+
headers: {
|
|
2486
|
+
"Content-Type": "application/vnd.api+json",
|
|
2487
|
+
...options.headers
|
|
2488
|
+
}
|
|
2489
|
+
});
|
|
2467
2490
|
var getExtractionSchemasById = (options) => (options.client ?? client).get({
|
|
2468
2491
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2469
2492
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -2783,6 +2806,16 @@ var getWallet = (options) => (options.client ?? client).get({
|
|
|
2783
2806
|
url: "/wallet",
|
|
2784
2807
|
...options
|
|
2785
2808
|
});
|
|
2809
|
+
var patchExtractionSchemasByIdActivate = (options) => (options.client ?? client).patch({
|
|
2810
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2811
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2812
|
+
url: "/extraction/schemas/{id}/activate",
|
|
2813
|
+
...options,
|
|
2814
|
+
headers: {
|
|
2815
|
+
"Content-Type": "application/vnd.api+json",
|
|
2816
|
+
...options.headers
|
|
2817
|
+
}
|
|
2818
|
+
});
|
|
2786
2819
|
var deleteMessagesById = (options) => (options.client ?? client).delete({
|
|
2787
2820
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2788
2821
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -3405,6 +3438,7 @@ export {
|
|
|
3405
3438
|
getExtractionResultsDocumentByDocumentId,
|
|
3406
3439
|
getExtractionSchemaFields,
|
|
3407
3440
|
getExtractionSchemaFieldsById,
|
|
3441
|
+
getExtractionSchemas,
|
|
3408
3442
|
getExtractionSchemasById,
|
|
3409
3443
|
getExtractionSchemasWorkspaceByWorkspaceId,
|
|
3410
3444
|
getFieldTemplates,
|
|
@@ -3490,6 +3524,8 @@ export {
|
|
|
3490
3524
|
patchExtractionResultsByIdRegenerate,
|
|
3491
3525
|
patchExtractionSchemaFieldsById,
|
|
3492
3526
|
patchExtractionSchemasById,
|
|
3527
|
+
patchExtractionSchemasByIdActivate,
|
|
3528
|
+
patchExtractionSchemasByIdFields,
|
|
3493
3529
|
patchInvitationsByIdAccept,
|
|
3494
3530
|
patchInvitationsByIdResend,
|
|
3495
3531
|
patchInvitationsByIdRevoke,
|
package/package.json
CHANGED