@gpt-platform/admin 0.1.4 → 0.1.5
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 +159 -1016
- package/dist/index.d.ts +159 -1016
- package/dist/index.js +6 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -13
- package/dist/index.mjs.map +1 -1
- package/llms.txt +1 -10
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -818,8 +818,11 @@ var client = createClient(
|
|
|
818
818
|
createConfig({ baseUrl: "http://localhost:33333" })
|
|
819
819
|
);
|
|
820
820
|
|
|
821
|
+
// src/version.ts
|
|
822
|
+
var SDK_VERSION = "0.1.4";
|
|
823
|
+
var DEFAULT_API_VERSION = "2026-02-25";
|
|
824
|
+
|
|
821
825
|
// src/base-client.ts
|
|
822
|
-
var DEFAULT_API_VERSION = "2025-12-03";
|
|
823
826
|
function isSecureUrl(url) {
|
|
824
827
|
try {
|
|
825
828
|
const parsed = new URL(url);
|
|
@@ -1420,11 +1423,6 @@ var getAdminExtractionDocuments = (options) => (options.client ?? client).get({
|
|
|
1420
1423
|
url: "/admin/extraction/documents",
|
|
1421
1424
|
...options
|
|
1422
1425
|
});
|
|
1423
|
-
var getAdminBucketsByIdObjects = (options) => (options.client ?? client).get({
|
|
1424
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1425
|
-
url: "/admin/buckets/{id}/objects",
|
|
1426
|
-
...options
|
|
1427
|
-
});
|
|
1428
1426
|
var postAdminDocumentsBulkDelete = (options) => (options.client ?? client).post({
|
|
1429
1427
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1430
1428
|
url: "/admin/documents/bulk-delete",
|
|
@@ -1661,13 +1659,6 @@ function createStorageNamespace(rb) {
|
|
|
1661
1659
|
{ path: { id } },
|
|
1662
1660
|
options
|
|
1663
1661
|
);
|
|
1664
|
-
},
|
|
1665
|
-
objects: async (id, options) => {
|
|
1666
|
-
return rb.execute(
|
|
1667
|
-
getAdminBucketsByIdObjects,
|
|
1668
|
-
{ path: { id } },
|
|
1669
|
-
options
|
|
1670
|
-
);
|
|
1671
1662
|
}
|
|
1672
1663
|
}
|
|
1673
1664
|
};
|
|
@@ -1788,6 +1779,7 @@ export {
|
|
|
1788
1779
|
NetworkError,
|
|
1789
1780
|
NotFoundError,
|
|
1790
1781
|
RateLimitError,
|
|
1782
|
+
SDK_VERSION,
|
|
1791
1783
|
ServerError,
|
|
1792
1784
|
TimeoutError,
|
|
1793
1785
|
ValidationError,
|