@gpt-core/admin 0.8.12 → 0.8.21
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/README.md +42 -54
- package/dist/index.d.mts +20426 -6073
- package/dist/index.d.ts +20426 -6073
- package/dist/index.js +2 -67
- package/dist/index.mjs +2 -67
- package/llms.txt +625 -0
- package/package.json +12 -3
package/dist/index.js
CHANGED
|
@@ -905,7 +905,6 @@ var BaseClient = class {
|
|
|
905
905
|
|
|
906
906
|
// src/_internal/sdk.gen.ts
|
|
907
907
|
var patchAdminAccountsByIdCredit = (options) => (options.client ?? client).patch({
|
|
908
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
909
908
|
security: [{ scheme: "bearer", type: "http" }],
|
|
910
909
|
url: "/admin/accounts/{id}/credit",
|
|
911
910
|
...options,
|
|
@@ -915,7 +914,6 @@ var patchAdminAccountsByIdCredit = (options) => (options.client ?? client).patch
|
|
|
915
914
|
}
|
|
916
915
|
});
|
|
917
916
|
var patchAdminApiKeysByIdRotate = (options) => (options.client ?? client).patch({
|
|
918
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
919
917
|
security: [{ scheme: "bearer", type: "http" }],
|
|
920
918
|
url: "/admin/api_keys/{id}/rotate",
|
|
921
919
|
...options,
|
|
@@ -925,19 +923,11 @@ var patchAdminApiKeysByIdRotate = (options) => (options.client ?? client).patch(
|
|
|
925
923
|
}
|
|
926
924
|
});
|
|
927
925
|
var getAdminWebhookConfigs = (options) => (options.client ?? client).get({
|
|
928
|
-
querySerializer: {
|
|
929
|
-
parameters: {
|
|
930
|
-
filter: { object: { style: "form" } },
|
|
931
|
-
page: { object: { style: "form" } },
|
|
932
|
-
fields: { object: { style: "form" } }
|
|
933
|
-
}
|
|
934
|
-
},
|
|
935
926
|
security: [{ scheme: "bearer", type: "http" }],
|
|
936
927
|
url: "/admin/webhook_configs",
|
|
937
928
|
...options
|
|
938
929
|
});
|
|
939
930
|
var postAdminWebhookConfigs = (options) => (options.client ?? client).post({
|
|
940
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
941
931
|
security: [{ scheme: "bearer", type: "http" }],
|
|
942
932
|
url: "/admin/webhook_configs",
|
|
943
933
|
...options,
|
|
@@ -947,19 +937,16 @@ var postAdminWebhookConfigs = (options) => (options.client ?? client).post({
|
|
|
947
937
|
}
|
|
948
938
|
});
|
|
949
939
|
var deleteAdminWebhookConfigsById = (options) => (options.client ?? client).delete({
|
|
950
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
951
940
|
security: [{ scheme: "bearer", type: "http" }],
|
|
952
941
|
url: "/admin/webhook_configs/{id}",
|
|
953
942
|
...options
|
|
954
943
|
});
|
|
955
944
|
var getAdminWebhookConfigsById = (options) => (options.client ?? client).get({
|
|
956
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
957
945
|
security: [{ scheme: "bearer", type: "http" }],
|
|
958
946
|
url: "/admin/webhook_configs/{id}",
|
|
959
947
|
...options
|
|
960
948
|
});
|
|
961
949
|
var patchAdminWebhookConfigsById = (options) => (options.client ?? client).patch({
|
|
962
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
963
950
|
security: [{ scheme: "bearer", type: "http" }],
|
|
964
951
|
url: "/admin/webhook_configs/{id}",
|
|
965
952
|
...options,
|
|
@@ -969,7 +956,6 @@ var patchAdminWebhookConfigsById = (options) => (options.client ?? client).patch
|
|
|
969
956
|
}
|
|
970
957
|
});
|
|
971
958
|
var postAdminWebhookConfigsByIdTest = (options) => (options.client ?? client).post({
|
|
972
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
973
959
|
security: [{ scheme: "bearer", type: "http" }],
|
|
974
960
|
url: "/admin/webhook_configs/{id}/test",
|
|
975
961
|
...options,
|
|
@@ -979,7 +965,6 @@ var postAdminWebhookConfigsByIdTest = (options) => (options.client ?? client).po
|
|
|
979
965
|
}
|
|
980
966
|
});
|
|
981
967
|
var patchAdminAccountsByIdDebit = (options) => (options.client ?? client).patch({
|
|
982
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
983
968
|
security: [{ scheme: "bearer", type: "http" }],
|
|
984
969
|
url: "/admin/accounts/{id}/debit",
|
|
985
970
|
...options,
|
|
@@ -989,42 +974,26 @@ var patchAdminAccountsByIdDebit = (options) => (options.client ?? client).patch(
|
|
|
989
974
|
}
|
|
990
975
|
});
|
|
991
976
|
var getAdminExtractionDocumentsById = (options) => (options.client ?? client).get({
|
|
992
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
993
977
|
security: [{ scheme: "bearer", type: "http" }],
|
|
994
978
|
url: "/admin/extraction/documents/{id}",
|
|
995
979
|
...options
|
|
996
980
|
});
|
|
997
981
|
var getAdminAccounts = (options) => (options.client ?? client).get({
|
|
998
|
-
querySerializer: {
|
|
999
|
-
parameters: {
|
|
1000
|
-
filter: { object: { style: "form" } },
|
|
1001
|
-
page: { object: { style: "form" } },
|
|
1002
|
-
fields: { object: { style: "form" } }
|
|
1003
|
-
}
|
|
1004
|
-
},
|
|
1005
982
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1006
983
|
url: "/admin/accounts",
|
|
1007
984
|
...options
|
|
1008
985
|
});
|
|
1009
986
|
var getAdminStorageStats = (options) => (options.client ?? client).get({
|
|
1010
|
-
querySerializer: {
|
|
1011
|
-
parameters: {
|
|
1012
|
-
filter: { object: { style: "form" } },
|
|
1013
|
-
fields: { object: { style: "form" } }
|
|
1014
|
-
}
|
|
1015
|
-
},
|
|
1016
987
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1017
988
|
url: "/admin/storage/stats",
|
|
1018
989
|
...options
|
|
1019
990
|
});
|
|
1020
991
|
var getAdminAccountsById = (options) => (options.client ?? client).get({
|
|
1021
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1022
992
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1023
993
|
url: "/admin/accounts/{id}",
|
|
1024
994
|
...options
|
|
1025
995
|
});
|
|
1026
996
|
var postAdminDocumentsBulkDelete = (options) => (options.client ?? client).post({
|
|
1027
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1028
997
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1029
998
|
url: "/admin/documents/bulk_delete",
|
|
1030
999
|
...options,
|
|
@@ -1034,7 +1003,6 @@ var postAdminDocumentsBulkDelete = (options) => (options.client ?? client).post(
|
|
|
1034
1003
|
}
|
|
1035
1004
|
});
|
|
1036
1005
|
var patchAdminApiKeysByIdAllocate = (options) => (options.client ?? client).patch({
|
|
1037
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1038
1006
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1039
1007
|
url: "/admin/api_keys/{id}/allocate",
|
|
1040
1008
|
...options,
|
|
@@ -1044,13 +1012,11 @@ var patchAdminApiKeysByIdAllocate = (options) => (options.client ?? client).patc
|
|
|
1044
1012
|
}
|
|
1045
1013
|
});
|
|
1046
1014
|
var getAdminBucketsByIdStats = (options) => (options.client ?? client).get({
|
|
1047
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1048
1015
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1049
1016
|
url: "/admin/buckets/{id}/stats",
|
|
1050
1017
|
...options
|
|
1051
1018
|
});
|
|
1052
1019
|
var patchAdminApiKeysByIdRevoke = (options) => (options.client ?? client).patch({
|
|
1053
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1054
1020
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1055
1021
|
url: "/admin/api_keys/{id}/revoke",
|
|
1056
1022
|
...options,
|
|
@@ -1060,71 +1026,46 @@ var patchAdminApiKeysByIdRevoke = (options) => (options.client ?? client).patch(
|
|
|
1060
1026
|
}
|
|
1061
1027
|
});
|
|
1062
1028
|
var getAdminWebhookDeliveriesById = (options) => (options.client ?? client).get({
|
|
1063
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1064
1029
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1065
1030
|
url: "/admin/webhook_deliveries/{id}",
|
|
1066
1031
|
...options
|
|
1067
1032
|
});
|
|
1068
1033
|
var getAdminDocumentsStats = (options) => (options.client ?? client).get({
|
|
1069
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1070
1034
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1071
1035
|
url: "/admin/documents/stats",
|
|
1072
1036
|
...options
|
|
1073
1037
|
});
|
|
1074
1038
|
var getAdminExtractionDocuments = (options) => (options.client ?? client).get({
|
|
1075
|
-
querySerializer: {
|
|
1076
|
-
parameters: {
|
|
1077
|
-
filter: { object: { style: "form" } },
|
|
1078
|
-
fields: { object: { style: "form" } }
|
|
1079
|
-
}
|
|
1080
|
-
},
|
|
1081
1039
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1082
1040
|
url: "/admin/extraction/documents",
|
|
1083
1041
|
...options
|
|
1084
1042
|
});
|
|
1085
1043
|
var getAdminBucketsByIdObjects = (options) => (options.client ?? client).get({
|
|
1086
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1087
1044
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1088
1045
|
url: "/admin/buckets/{id}/objects",
|
|
1089
1046
|
...options
|
|
1090
1047
|
});
|
|
1091
1048
|
var getAdminApiKeys = (options) => (options.client ?? client).get({
|
|
1092
|
-
querySerializer: {
|
|
1093
|
-
parameters: {
|
|
1094
|
-
filter: { object: { style: "form" } },
|
|
1095
|
-
page: { object: { style: "form" } },
|
|
1096
|
-
fields: { object: { style: "form" } }
|
|
1097
|
-
}
|
|
1098
|
-
},
|
|
1099
1049
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1100
1050
|
url: "/admin/api_keys",
|
|
1101
1051
|
...options
|
|
1102
1052
|
});
|
|
1103
1053
|
var getAdminApiKeysById = (options) => (options.client ?? client).get({
|
|
1104
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1105
1054
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1106
1055
|
url: "/admin/api_keys/{id}",
|
|
1107
1056
|
...options
|
|
1108
1057
|
});
|
|
1109
1058
|
var getAdminBuckets = (options) => (options.client ?? client).get({
|
|
1110
|
-
querySerializer: {
|
|
1111
|
-
parameters: {
|
|
1112
|
-
filter: { object: { style: "form" } },
|
|
1113
|
-
fields: { object: { style: "form" } }
|
|
1114
|
-
}
|
|
1115
|
-
},
|
|
1116
1059
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1117
1060
|
url: "/admin/buckets",
|
|
1118
1061
|
...options
|
|
1119
1062
|
});
|
|
1120
1063
|
var getAdminBucketsById = (options) => (options.client ?? client).get({
|
|
1121
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1122
1064
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1123
1065
|
url: "/admin/buckets/{id}",
|
|
1124
1066
|
...options
|
|
1125
1067
|
});
|
|
1126
1068
|
var postAdminWebhookDeliveriesByIdRetry = (options) => (options.client ?? client).post({
|
|
1127
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1128
1069
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1129
1070
|
url: "/admin/webhook_deliveries/{id}/retry",
|
|
1130
1071
|
...options,
|
|
@@ -1134,13 +1075,6 @@ var postAdminWebhookDeliveriesByIdRetry = (options) => (options.client ?? client
|
|
|
1134
1075
|
}
|
|
1135
1076
|
});
|
|
1136
1077
|
var getAdminWebhookDeliveries = (options) => (options.client ?? client).get({
|
|
1137
|
-
querySerializer: {
|
|
1138
|
-
parameters: {
|
|
1139
|
-
filter: { object: { style: "form" } },
|
|
1140
|
-
page: { object: { style: "form" } },
|
|
1141
|
-
fields: { object: { style: "form" } }
|
|
1142
|
-
}
|
|
1143
|
-
},
|
|
1144
1078
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1145
1079
|
url: "/admin/webhook_deliveries",
|
|
1146
1080
|
...options
|
|
@@ -1553,9 +1487,10 @@ function handleApiError(error) {
|
|
|
1553
1487
|
case 400:
|
|
1554
1488
|
case 422:
|
|
1555
1489
|
throw new ValidationError(message, errors, errorOptions);
|
|
1556
|
-
case 429:
|
|
1490
|
+
case 429: {
|
|
1557
1491
|
const retryAfter = headers?.get?.("retry-after") || headers?.["retry-after"];
|
|
1558
1492
|
throw new RateLimitError(message, retryAfter ? parseInt(retryAfter, 10) : void 0, errorOptions);
|
|
1493
|
+
}
|
|
1559
1494
|
case 500:
|
|
1560
1495
|
case 502:
|
|
1561
1496
|
case 503:
|
package/dist/index.mjs
CHANGED
|
@@ -857,7 +857,6 @@ var BaseClient = class {
|
|
|
857
857
|
|
|
858
858
|
// src/_internal/sdk.gen.ts
|
|
859
859
|
var patchAdminAccountsByIdCredit = (options) => (options.client ?? client).patch({
|
|
860
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
861
860
|
security: [{ scheme: "bearer", type: "http" }],
|
|
862
861
|
url: "/admin/accounts/{id}/credit",
|
|
863
862
|
...options,
|
|
@@ -867,7 +866,6 @@ var patchAdminAccountsByIdCredit = (options) => (options.client ?? client).patch
|
|
|
867
866
|
}
|
|
868
867
|
});
|
|
869
868
|
var patchAdminApiKeysByIdRotate = (options) => (options.client ?? client).patch({
|
|
870
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
871
869
|
security: [{ scheme: "bearer", type: "http" }],
|
|
872
870
|
url: "/admin/api_keys/{id}/rotate",
|
|
873
871
|
...options,
|
|
@@ -877,19 +875,11 @@ var patchAdminApiKeysByIdRotate = (options) => (options.client ?? client).patch(
|
|
|
877
875
|
}
|
|
878
876
|
});
|
|
879
877
|
var getAdminWebhookConfigs = (options) => (options.client ?? client).get({
|
|
880
|
-
querySerializer: {
|
|
881
|
-
parameters: {
|
|
882
|
-
filter: { object: { style: "form" } },
|
|
883
|
-
page: { object: { style: "form" } },
|
|
884
|
-
fields: { object: { style: "form" } }
|
|
885
|
-
}
|
|
886
|
-
},
|
|
887
878
|
security: [{ scheme: "bearer", type: "http" }],
|
|
888
879
|
url: "/admin/webhook_configs",
|
|
889
880
|
...options
|
|
890
881
|
});
|
|
891
882
|
var postAdminWebhookConfigs = (options) => (options.client ?? client).post({
|
|
892
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
893
883
|
security: [{ scheme: "bearer", type: "http" }],
|
|
894
884
|
url: "/admin/webhook_configs",
|
|
895
885
|
...options,
|
|
@@ -899,19 +889,16 @@ var postAdminWebhookConfigs = (options) => (options.client ?? client).post({
|
|
|
899
889
|
}
|
|
900
890
|
});
|
|
901
891
|
var deleteAdminWebhookConfigsById = (options) => (options.client ?? client).delete({
|
|
902
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
903
892
|
security: [{ scheme: "bearer", type: "http" }],
|
|
904
893
|
url: "/admin/webhook_configs/{id}",
|
|
905
894
|
...options
|
|
906
895
|
});
|
|
907
896
|
var getAdminWebhookConfigsById = (options) => (options.client ?? client).get({
|
|
908
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
909
897
|
security: [{ scheme: "bearer", type: "http" }],
|
|
910
898
|
url: "/admin/webhook_configs/{id}",
|
|
911
899
|
...options
|
|
912
900
|
});
|
|
913
901
|
var patchAdminWebhookConfigsById = (options) => (options.client ?? client).patch({
|
|
914
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
915
902
|
security: [{ scheme: "bearer", type: "http" }],
|
|
916
903
|
url: "/admin/webhook_configs/{id}",
|
|
917
904
|
...options,
|
|
@@ -921,7 +908,6 @@ var patchAdminWebhookConfigsById = (options) => (options.client ?? client).patch
|
|
|
921
908
|
}
|
|
922
909
|
});
|
|
923
910
|
var postAdminWebhookConfigsByIdTest = (options) => (options.client ?? client).post({
|
|
924
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
925
911
|
security: [{ scheme: "bearer", type: "http" }],
|
|
926
912
|
url: "/admin/webhook_configs/{id}/test",
|
|
927
913
|
...options,
|
|
@@ -931,7 +917,6 @@ var postAdminWebhookConfigsByIdTest = (options) => (options.client ?? client).po
|
|
|
931
917
|
}
|
|
932
918
|
});
|
|
933
919
|
var patchAdminAccountsByIdDebit = (options) => (options.client ?? client).patch({
|
|
934
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
935
920
|
security: [{ scheme: "bearer", type: "http" }],
|
|
936
921
|
url: "/admin/accounts/{id}/debit",
|
|
937
922
|
...options,
|
|
@@ -941,42 +926,26 @@ var patchAdminAccountsByIdDebit = (options) => (options.client ?? client).patch(
|
|
|
941
926
|
}
|
|
942
927
|
});
|
|
943
928
|
var getAdminExtractionDocumentsById = (options) => (options.client ?? client).get({
|
|
944
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
945
929
|
security: [{ scheme: "bearer", type: "http" }],
|
|
946
930
|
url: "/admin/extraction/documents/{id}",
|
|
947
931
|
...options
|
|
948
932
|
});
|
|
949
933
|
var getAdminAccounts = (options) => (options.client ?? client).get({
|
|
950
|
-
querySerializer: {
|
|
951
|
-
parameters: {
|
|
952
|
-
filter: { object: { style: "form" } },
|
|
953
|
-
page: { object: { style: "form" } },
|
|
954
|
-
fields: { object: { style: "form" } }
|
|
955
|
-
}
|
|
956
|
-
},
|
|
957
934
|
security: [{ scheme: "bearer", type: "http" }],
|
|
958
935
|
url: "/admin/accounts",
|
|
959
936
|
...options
|
|
960
937
|
});
|
|
961
938
|
var getAdminStorageStats = (options) => (options.client ?? client).get({
|
|
962
|
-
querySerializer: {
|
|
963
|
-
parameters: {
|
|
964
|
-
filter: { object: { style: "form" } },
|
|
965
|
-
fields: { object: { style: "form" } }
|
|
966
|
-
}
|
|
967
|
-
},
|
|
968
939
|
security: [{ scheme: "bearer", type: "http" }],
|
|
969
940
|
url: "/admin/storage/stats",
|
|
970
941
|
...options
|
|
971
942
|
});
|
|
972
943
|
var getAdminAccountsById = (options) => (options.client ?? client).get({
|
|
973
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
974
944
|
security: [{ scheme: "bearer", type: "http" }],
|
|
975
945
|
url: "/admin/accounts/{id}",
|
|
976
946
|
...options
|
|
977
947
|
});
|
|
978
948
|
var postAdminDocumentsBulkDelete = (options) => (options.client ?? client).post({
|
|
979
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
980
949
|
security: [{ scheme: "bearer", type: "http" }],
|
|
981
950
|
url: "/admin/documents/bulk_delete",
|
|
982
951
|
...options,
|
|
@@ -986,7 +955,6 @@ var postAdminDocumentsBulkDelete = (options) => (options.client ?? client).post(
|
|
|
986
955
|
}
|
|
987
956
|
});
|
|
988
957
|
var patchAdminApiKeysByIdAllocate = (options) => (options.client ?? client).patch({
|
|
989
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
990
958
|
security: [{ scheme: "bearer", type: "http" }],
|
|
991
959
|
url: "/admin/api_keys/{id}/allocate",
|
|
992
960
|
...options,
|
|
@@ -996,13 +964,11 @@ var patchAdminApiKeysByIdAllocate = (options) => (options.client ?? client).patc
|
|
|
996
964
|
}
|
|
997
965
|
});
|
|
998
966
|
var getAdminBucketsByIdStats = (options) => (options.client ?? client).get({
|
|
999
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1000
967
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1001
968
|
url: "/admin/buckets/{id}/stats",
|
|
1002
969
|
...options
|
|
1003
970
|
});
|
|
1004
971
|
var patchAdminApiKeysByIdRevoke = (options) => (options.client ?? client).patch({
|
|
1005
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1006
972
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1007
973
|
url: "/admin/api_keys/{id}/revoke",
|
|
1008
974
|
...options,
|
|
@@ -1012,71 +978,46 @@ var patchAdminApiKeysByIdRevoke = (options) => (options.client ?? client).patch(
|
|
|
1012
978
|
}
|
|
1013
979
|
});
|
|
1014
980
|
var getAdminWebhookDeliveriesById = (options) => (options.client ?? client).get({
|
|
1015
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1016
981
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1017
982
|
url: "/admin/webhook_deliveries/{id}",
|
|
1018
983
|
...options
|
|
1019
984
|
});
|
|
1020
985
|
var getAdminDocumentsStats = (options) => (options.client ?? client).get({
|
|
1021
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1022
986
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1023
987
|
url: "/admin/documents/stats",
|
|
1024
988
|
...options
|
|
1025
989
|
});
|
|
1026
990
|
var getAdminExtractionDocuments = (options) => (options.client ?? client).get({
|
|
1027
|
-
querySerializer: {
|
|
1028
|
-
parameters: {
|
|
1029
|
-
filter: { object: { style: "form" } },
|
|
1030
|
-
fields: { object: { style: "form" } }
|
|
1031
|
-
}
|
|
1032
|
-
},
|
|
1033
991
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1034
992
|
url: "/admin/extraction/documents",
|
|
1035
993
|
...options
|
|
1036
994
|
});
|
|
1037
995
|
var getAdminBucketsByIdObjects = (options) => (options.client ?? client).get({
|
|
1038
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1039
996
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1040
997
|
url: "/admin/buckets/{id}/objects",
|
|
1041
998
|
...options
|
|
1042
999
|
});
|
|
1043
1000
|
var getAdminApiKeys = (options) => (options.client ?? client).get({
|
|
1044
|
-
querySerializer: {
|
|
1045
|
-
parameters: {
|
|
1046
|
-
filter: { object: { style: "form" } },
|
|
1047
|
-
page: { object: { style: "form" } },
|
|
1048
|
-
fields: { object: { style: "form" } }
|
|
1049
|
-
}
|
|
1050
|
-
},
|
|
1051
1001
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1052
1002
|
url: "/admin/api_keys",
|
|
1053
1003
|
...options
|
|
1054
1004
|
});
|
|
1055
1005
|
var getAdminApiKeysById = (options) => (options.client ?? client).get({
|
|
1056
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1057
1006
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1058
1007
|
url: "/admin/api_keys/{id}",
|
|
1059
1008
|
...options
|
|
1060
1009
|
});
|
|
1061
1010
|
var getAdminBuckets = (options) => (options.client ?? client).get({
|
|
1062
|
-
querySerializer: {
|
|
1063
|
-
parameters: {
|
|
1064
|
-
filter: { object: { style: "form" } },
|
|
1065
|
-
fields: { object: { style: "form" } }
|
|
1066
|
-
}
|
|
1067
|
-
},
|
|
1068
1011
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1069
1012
|
url: "/admin/buckets",
|
|
1070
1013
|
...options
|
|
1071
1014
|
});
|
|
1072
1015
|
var getAdminBucketsById = (options) => (options.client ?? client).get({
|
|
1073
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1074
1016
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1075
1017
|
url: "/admin/buckets/{id}",
|
|
1076
1018
|
...options
|
|
1077
1019
|
});
|
|
1078
1020
|
var postAdminWebhookDeliveriesByIdRetry = (options) => (options.client ?? client).post({
|
|
1079
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1080
1021
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1081
1022
|
url: "/admin/webhook_deliveries/{id}/retry",
|
|
1082
1023
|
...options,
|
|
@@ -1086,13 +1027,6 @@ var postAdminWebhookDeliveriesByIdRetry = (options) => (options.client ?? client
|
|
|
1086
1027
|
}
|
|
1087
1028
|
});
|
|
1088
1029
|
var getAdminWebhookDeliveries = (options) => (options.client ?? client).get({
|
|
1089
|
-
querySerializer: {
|
|
1090
|
-
parameters: {
|
|
1091
|
-
filter: { object: { style: "form" } },
|
|
1092
|
-
page: { object: { style: "form" } },
|
|
1093
|
-
fields: { object: { style: "form" } }
|
|
1094
|
-
}
|
|
1095
|
-
},
|
|
1096
1030
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1097
1031
|
url: "/admin/webhook_deliveries",
|
|
1098
1032
|
...options
|
|
@@ -1505,9 +1439,10 @@ function handleApiError(error) {
|
|
|
1505
1439
|
case 400:
|
|
1506
1440
|
case 422:
|
|
1507
1441
|
throw new ValidationError(message, errors, errorOptions);
|
|
1508
|
-
case 429:
|
|
1442
|
+
case 429: {
|
|
1509
1443
|
const retryAfter = headers?.get?.("retry-after") || headers?.["retry-after"];
|
|
1510
1444
|
throw new RateLimitError(message, retryAfter ? parseInt(retryAfter, 10) : void 0, errorOptions);
|
|
1445
|
+
}
|
|
1511
1446
|
case 500:
|
|
1512
1447
|
case 502:
|
|
1513
1448
|
case 503:
|