@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.js
CHANGED
|
@@ -28,6 +28,7 @@ __export(index_exports, {
|
|
|
28
28
|
NetworkError: () => NetworkError,
|
|
29
29
|
NotFoundError: () => NotFoundError,
|
|
30
30
|
RateLimitError: () => RateLimitError,
|
|
31
|
+
SDK_VERSION: () => SDK_VERSION,
|
|
31
32
|
ServerError: () => ServerError,
|
|
32
33
|
TimeoutError: () => TimeoutError,
|
|
33
34
|
ValidationError: () => ValidationError,
|
|
@@ -856,8 +857,11 @@ var client = createClient(
|
|
|
856
857
|
createConfig({ baseUrl: "http://localhost:33333" })
|
|
857
858
|
);
|
|
858
859
|
|
|
860
|
+
// src/version.ts
|
|
861
|
+
var SDK_VERSION = "0.1.4";
|
|
862
|
+
var DEFAULT_API_VERSION = "2026-02-25";
|
|
863
|
+
|
|
859
864
|
// src/base-client.ts
|
|
860
|
-
var DEFAULT_API_VERSION = "2025-12-03";
|
|
861
865
|
function isSecureUrl(url) {
|
|
862
866
|
try {
|
|
863
867
|
const parsed = new URL(url);
|
|
@@ -1458,11 +1462,6 @@ var getAdminExtractionDocuments = (options) => (options.client ?? client).get({
|
|
|
1458
1462
|
url: "/admin/extraction/documents",
|
|
1459
1463
|
...options
|
|
1460
1464
|
});
|
|
1461
|
-
var getAdminBucketsByIdObjects = (options) => (options.client ?? client).get({
|
|
1462
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1463
|
-
url: "/admin/buckets/{id}/objects",
|
|
1464
|
-
...options
|
|
1465
|
-
});
|
|
1466
1465
|
var postAdminDocumentsBulkDelete = (options) => (options.client ?? client).post({
|
|
1467
1466
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1468
1467
|
url: "/admin/documents/bulk-delete",
|
|
@@ -1699,13 +1698,6 @@ function createStorageNamespace(rb) {
|
|
|
1699
1698
|
{ path: { id } },
|
|
1700
1699
|
options
|
|
1701
1700
|
);
|
|
1702
|
-
},
|
|
1703
|
-
objects: async (id, options) => {
|
|
1704
|
-
return rb.execute(
|
|
1705
|
-
getAdminBucketsByIdObjects,
|
|
1706
|
-
{ path: { id } },
|
|
1707
|
-
options
|
|
1708
|
-
);
|
|
1709
1701
|
}
|
|
1710
1702
|
}
|
|
1711
1703
|
};
|
|
@@ -1827,6 +1819,7 @@ var index_default = GptAdmin;
|
|
|
1827
1819
|
NetworkError,
|
|
1828
1820
|
NotFoundError,
|
|
1829
1821
|
RateLimitError,
|
|
1822
|
+
SDK_VERSION,
|
|
1830
1823
|
ServerError,
|
|
1831
1824
|
TimeoutError,
|
|
1832
1825
|
ValidationError,
|