@avallon-labs/sdk 0.0.0-4d940829 → 0.0.0-d128d101
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.ts +387 -14
- package/dist/index.js +102 -6
- package/dist/index.js.map +1 -1
- package/openapi.yaml +334 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as swr_mutation from 'swr/mutation';
|
|
|
2
2
|
import { SWRMutationConfiguration } from 'swr/mutation';
|
|
3
3
|
import * as swr__internal from 'swr/_internal';
|
|
4
4
|
import * as swr from 'swr';
|
|
5
|
-
import { Key, SWRConfiguration } from 'swr';
|
|
5
|
+
import { Key, SWRConfiguration, Arguments } from 'swr';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Custom fetch wrapper for Orval-generated client.
|
|
@@ -383,6 +383,74 @@ type CreateAgentBody = {
|
|
|
383
383
|
end_call?: boolean;
|
|
384
384
|
};
|
|
385
385
|
|
|
386
|
+
/**
|
|
387
|
+
* Generated by orval v8.1.0 🍺
|
|
388
|
+
* Do not edit manually.
|
|
389
|
+
* Avallon API
|
|
390
|
+
* OpenAPI spec version: 1.0.0
|
|
391
|
+
*/
|
|
392
|
+
type CreateApiKey200Data = {
|
|
393
|
+
/** Unique identifier for the API key */
|
|
394
|
+
id: string;
|
|
395
|
+
/** Human-readable name for the API key */
|
|
396
|
+
name: string;
|
|
397
|
+
/** First 12 characters of the key (e.g. ak_live_abc1) */
|
|
398
|
+
key_prefix: string;
|
|
399
|
+
/** Expiration date, if set */
|
|
400
|
+
expires_at?: string;
|
|
401
|
+
/** Creation timestamp */
|
|
402
|
+
created_at: string;
|
|
403
|
+
/** The full API key — only returned once at creation */
|
|
404
|
+
api_key: string;
|
|
405
|
+
};
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* Generated by orval v8.1.0 🍺
|
|
409
|
+
* Do not edit manually.
|
|
410
|
+
* Avallon API
|
|
411
|
+
* OpenAPI spec version: 1.0.0
|
|
412
|
+
*/
|
|
413
|
+
|
|
414
|
+
type CreateApiKey200 = {
|
|
415
|
+
data: CreateApiKey200Data;
|
|
416
|
+
message: string;
|
|
417
|
+
};
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* Generated by orval v8.1.0 🍺
|
|
421
|
+
* Do not edit manually.
|
|
422
|
+
* Avallon API
|
|
423
|
+
* OpenAPI spec version: 1.0.0
|
|
424
|
+
*/
|
|
425
|
+
/**
|
|
426
|
+
* Target environment for the key
|
|
427
|
+
*/
|
|
428
|
+
type CreateApiKeyBodyEnvironment = (typeof CreateApiKeyBodyEnvironment)[keyof typeof CreateApiKeyBodyEnvironment];
|
|
429
|
+
declare const CreateApiKeyBodyEnvironment: {
|
|
430
|
+
readonly test: "test";
|
|
431
|
+
readonly live: "live";
|
|
432
|
+
};
|
|
433
|
+
|
|
434
|
+
/**
|
|
435
|
+
* Generated by orval v8.1.0 🍺
|
|
436
|
+
* Do not edit manually.
|
|
437
|
+
* Avallon API
|
|
438
|
+
* OpenAPI spec version: 1.0.0
|
|
439
|
+
*/
|
|
440
|
+
|
|
441
|
+
type CreateApiKeyBody = {
|
|
442
|
+
/**
|
|
443
|
+
* Human-readable name for the API key
|
|
444
|
+
* @minLength 1
|
|
445
|
+
* @maxLength 100
|
|
446
|
+
*/
|
|
447
|
+
name: string;
|
|
448
|
+
/** Optional expiration date (ISO 8601) */
|
|
449
|
+
expires_at?: string;
|
|
450
|
+
/** Target environment for the key */
|
|
451
|
+
environment?: CreateApiKeyBodyEnvironment;
|
|
452
|
+
};
|
|
453
|
+
|
|
386
454
|
/**
|
|
387
455
|
* Generated by orval v8.1.0 🍺
|
|
388
456
|
* Do not edit manually.
|
|
@@ -786,6 +854,82 @@ type ListAgentsParams = {
|
|
|
786
854
|
agent_name?: string;
|
|
787
855
|
};
|
|
788
856
|
|
|
857
|
+
/**
|
|
858
|
+
* Generated by orval v8.1.0 🍺
|
|
859
|
+
* Do not edit manually.
|
|
860
|
+
* Avallon API
|
|
861
|
+
* OpenAPI spec version: 1.0.0
|
|
862
|
+
*/
|
|
863
|
+
type ListApiKeys200DataDataItem = {
|
|
864
|
+
/** Unique identifier for the API key */
|
|
865
|
+
id: string;
|
|
866
|
+
/** Human-readable name for the API key */
|
|
867
|
+
name: string;
|
|
868
|
+
/** First 12 characters of the key (e.g. ak_live_abc1) */
|
|
869
|
+
key_prefix: string;
|
|
870
|
+
/** Last usage timestamp, if ever used */
|
|
871
|
+
last_used_at?: string;
|
|
872
|
+
/** Expiration date, if set */
|
|
873
|
+
expires_at?: string;
|
|
874
|
+
/** Revocation timestamp, if revoked */
|
|
875
|
+
revoked_at?: string;
|
|
876
|
+
/** Creation timestamp */
|
|
877
|
+
created_at: string;
|
|
878
|
+
/** Last update timestamp */
|
|
879
|
+
updated_at: string;
|
|
880
|
+
};
|
|
881
|
+
|
|
882
|
+
/**
|
|
883
|
+
* Generated by orval v8.1.0 🍺
|
|
884
|
+
* Do not edit manually.
|
|
885
|
+
* Avallon API
|
|
886
|
+
* OpenAPI spec version: 1.0.0
|
|
887
|
+
*/
|
|
888
|
+
|
|
889
|
+
type ListApiKeys200Data = {
|
|
890
|
+
data: ListApiKeys200DataDataItem[];
|
|
891
|
+
/** Total number of keys returned */
|
|
892
|
+
count: number;
|
|
893
|
+
};
|
|
894
|
+
|
|
895
|
+
/**
|
|
896
|
+
* Generated by orval v8.1.0 🍺
|
|
897
|
+
* Do not edit manually.
|
|
898
|
+
* Avallon API
|
|
899
|
+
* OpenAPI spec version: 1.0.0
|
|
900
|
+
*/
|
|
901
|
+
|
|
902
|
+
type ListApiKeys200 = {
|
|
903
|
+
data: ListApiKeys200Data;
|
|
904
|
+
message: string;
|
|
905
|
+
};
|
|
906
|
+
|
|
907
|
+
/**
|
|
908
|
+
* Generated by orval v8.1.0 🍺
|
|
909
|
+
* Do not edit manually.
|
|
910
|
+
* Avallon API
|
|
911
|
+
* OpenAPI spec version: 1.0.0
|
|
912
|
+
*/
|
|
913
|
+
type ListApiKeysIncludeRevoked = (typeof ListApiKeysIncludeRevoked)[keyof typeof ListApiKeysIncludeRevoked];
|
|
914
|
+
declare const ListApiKeysIncludeRevoked: {
|
|
915
|
+
readonly true: "true";
|
|
916
|
+
readonly false: "false";
|
|
917
|
+
};
|
|
918
|
+
|
|
919
|
+
/**
|
|
920
|
+
* Generated by orval v8.1.0 🍺
|
|
921
|
+
* Do not edit manually.
|
|
922
|
+
* Avallon API
|
|
923
|
+
* OpenAPI spec version: 1.0.0
|
|
924
|
+
*/
|
|
925
|
+
|
|
926
|
+
type ListApiKeysParams = {
|
|
927
|
+
/**
|
|
928
|
+
* Include revoked keys in the response
|
|
929
|
+
*/
|
|
930
|
+
include_revoked?: ListApiKeysIncludeRevoked;
|
|
931
|
+
};
|
|
932
|
+
|
|
789
933
|
/**
|
|
790
934
|
* Generated by orval v8.1.0 🍺
|
|
791
935
|
* Do not edit manually.
|
|
@@ -901,7 +1045,30 @@ type PostV1AuthSignUpBody = {
|
|
|
901
1045
|
password: string;
|
|
902
1046
|
};
|
|
903
1047
|
|
|
904
|
-
|
|
1048
|
+
/**
|
|
1049
|
+
* Generated by orval v8.1.0 🍺
|
|
1050
|
+
* Do not edit manually.
|
|
1051
|
+
* Avallon API
|
|
1052
|
+
* OpenAPI spec version: 1.0.0
|
|
1053
|
+
*/
|
|
1054
|
+
type RevokeApiKey200Data = {
|
|
1055
|
+
/** Confirmation message */
|
|
1056
|
+
message: string;
|
|
1057
|
+
};
|
|
1058
|
+
|
|
1059
|
+
/**
|
|
1060
|
+
* Generated by orval v8.1.0 🍺
|
|
1061
|
+
* Do not edit manually.
|
|
1062
|
+
* Avallon API
|
|
1063
|
+
* OpenAPI spec version: 1.0.0
|
|
1064
|
+
*/
|
|
1065
|
+
|
|
1066
|
+
type RevokeApiKey200 = {
|
|
1067
|
+
data: RevokeApiKey200Data;
|
|
1068
|
+
message: string;
|
|
1069
|
+
};
|
|
1070
|
+
|
|
1071
|
+
type SecondParameter$2<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
905
1072
|
/**
|
|
906
1073
|
* List all agents for your tenant.
|
|
907
1074
|
|
|
@@ -926,6 +1093,10 @@ type listAgentsResponse401 = {
|
|
|
926
1093
|
data: ErrorResponse;
|
|
927
1094
|
status: 401;
|
|
928
1095
|
};
|
|
1096
|
+
type listAgentsResponse409 = {
|
|
1097
|
+
data: ErrorResponse;
|
|
1098
|
+
status: 409;
|
|
1099
|
+
};
|
|
929
1100
|
type listAgentsResponse500 = {
|
|
930
1101
|
data: ErrorResponse;
|
|
931
1102
|
status: 500;
|
|
@@ -933,7 +1104,7 @@ type listAgentsResponse500 = {
|
|
|
933
1104
|
type listAgentsResponseSuccess = listAgentsResponse200 & {
|
|
934
1105
|
headers: Headers;
|
|
935
1106
|
};
|
|
936
|
-
type listAgentsResponseError = (listAgentsResponse400 | listAgentsResponse401 | listAgentsResponse500) & {
|
|
1107
|
+
type listAgentsResponseError = (listAgentsResponse400 | listAgentsResponse401 | listAgentsResponse409 | listAgentsResponse500) & {
|
|
937
1108
|
headers: Headers;
|
|
938
1109
|
};
|
|
939
1110
|
type listAgentsResponse = listAgentsResponseSuccess | listAgentsResponseError;
|
|
@@ -949,7 +1120,7 @@ declare const useListAgents: <TError = ErrorResponse>(params?: ListAgentsParams,
|
|
|
949
1120
|
swrKey?: Key;
|
|
950
1121
|
enabled?: boolean;
|
|
951
1122
|
};
|
|
952
|
-
request?: SecondParameter$
|
|
1123
|
+
request?: SecondParameter$2<typeof customFetch>;
|
|
953
1124
|
}) => {
|
|
954
1125
|
data: listAgentsResponse | undefined;
|
|
955
1126
|
error: TError | undefined;
|
|
@@ -982,6 +1153,10 @@ type createAgentResponse401 = {
|
|
|
982
1153
|
data: ErrorResponse;
|
|
983
1154
|
status: 401;
|
|
984
1155
|
};
|
|
1156
|
+
type createAgentResponse409 = {
|
|
1157
|
+
data: ErrorResponse;
|
|
1158
|
+
status: 409;
|
|
1159
|
+
};
|
|
985
1160
|
type createAgentResponse500 = {
|
|
986
1161
|
data: ErrorResponse;
|
|
987
1162
|
status: 500;
|
|
@@ -989,13 +1164,13 @@ type createAgentResponse500 = {
|
|
|
989
1164
|
type createAgentResponseSuccess = createAgentResponse200 & {
|
|
990
1165
|
headers: Headers;
|
|
991
1166
|
};
|
|
992
|
-
type createAgentResponseError = (createAgentResponse400 | createAgentResponse401 | createAgentResponse500) & {
|
|
1167
|
+
type createAgentResponseError = (createAgentResponse400 | createAgentResponse401 | createAgentResponse409 | createAgentResponse500) & {
|
|
993
1168
|
headers: Headers;
|
|
994
1169
|
};
|
|
995
1170
|
type createAgentResponse = createAgentResponseSuccess | createAgentResponseError;
|
|
996
1171
|
declare const getCreateAgentUrl: () => string;
|
|
997
1172
|
declare const createAgent: (createAgentBody: CreateAgentBody, options?: RequestInit) => Promise<createAgentResponse>;
|
|
998
|
-
declare const getCreateAgentMutationFetcher: (options?: SecondParameter$
|
|
1173
|
+
declare const getCreateAgentMutationFetcher: (options?: SecondParameter$2<typeof customFetch>) => (_: Key, { arg }: {
|
|
999
1174
|
arg: CreateAgentBody;
|
|
1000
1175
|
}) => Promise<createAgentResponse>;
|
|
1001
1176
|
declare const getCreateAgentMutationKey: () => readonly ["/v1/agents"];
|
|
@@ -1007,7 +1182,7 @@ declare const useCreateAgent: <TError = ErrorResponse>(options?: {
|
|
|
1007
1182
|
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof createAgent>>, TError, Key, CreateAgentBody, Awaited<ReturnType<typeof createAgent>>> & {
|
|
1008
1183
|
swrKey?: string;
|
|
1009
1184
|
};
|
|
1010
|
-
request?: SecondParameter$
|
|
1185
|
+
request?: SecondParameter$2<typeof customFetch>;
|
|
1011
1186
|
}) => {
|
|
1012
1187
|
isMutating: boolean;
|
|
1013
1188
|
trigger: swr_mutation.TriggerWithArgs<createAgentResponse, TError, string | readonly ["/v1/agents"], CreateAgentBody>;
|
|
@@ -1036,6 +1211,10 @@ type getAgentResponse404 = {
|
|
|
1036
1211
|
data: ErrorResponse;
|
|
1037
1212
|
status: 404;
|
|
1038
1213
|
};
|
|
1214
|
+
type getAgentResponse409 = {
|
|
1215
|
+
data: ErrorResponse;
|
|
1216
|
+
status: 409;
|
|
1217
|
+
};
|
|
1039
1218
|
type getAgentResponse500 = {
|
|
1040
1219
|
data: ErrorResponse;
|
|
1041
1220
|
status: 500;
|
|
@@ -1043,7 +1222,7 @@ type getAgentResponse500 = {
|
|
|
1043
1222
|
type getAgentResponseSuccess = getAgentResponse200 & {
|
|
1044
1223
|
headers: Headers;
|
|
1045
1224
|
};
|
|
1046
|
-
type getAgentResponseError = (getAgentResponse400 | getAgentResponse401 | getAgentResponse404 | getAgentResponse500) & {
|
|
1225
|
+
type getAgentResponseError = (getAgentResponse400 | getAgentResponse401 | getAgentResponse404 | getAgentResponse409 | getAgentResponse500) & {
|
|
1047
1226
|
headers: Headers;
|
|
1048
1227
|
};
|
|
1049
1228
|
type getAgentResponse = getAgentResponseSuccess | getAgentResponseError;
|
|
@@ -1059,7 +1238,7 @@ declare const useGetAgent: <TError = ErrorResponse>(id: string, options?: {
|
|
|
1059
1238
|
swrKey?: Key;
|
|
1060
1239
|
enabled?: boolean;
|
|
1061
1240
|
};
|
|
1062
|
-
request?: SecondParameter$
|
|
1241
|
+
request?: SecondParameter$2<typeof customFetch>;
|
|
1063
1242
|
}) => {
|
|
1064
1243
|
data: getAgentResponse | undefined;
|
|
1065
1244
|
error: TError | undefined;
|
|
@@ -1069,6 +1248,184 @@ declare const useGetAgent: <TError = ErrorResponse>(id: string, options?: {
|
|
|
1069
1248
|
swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => swr.Arguments);
|
|
1070
1249
|
};
|
|
1071
1250
|
|
|
1251
|
+
type SecondParameter$1<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
1252
|
+
/**
|
|
1253
|
+
* List all API keys for your tenant.
|
|
1254
|
+
|
|
1255
|
+
By default, revoked keys are excluded. Set `include_revoked=true` to include them.
|
|
1256
|
+
|
|
1257
|
+
**Note:** The full API key value is never returned — only the key prefix is shown.
|
|
1258
|
+
* @summary List API keys
|
|
1259
|
+
*/
|
|
1260
|
+
type listApiKeysResponse200 = {
|
|
1261
|
+
data: ListApiKeys200;
|
|
1262
|
+
status: 200;
|
|
1263
|
+
};
|
|
1264
|
+
type listApiKeysResponse400 = {
|
|
1265
|
+
data: ErrorResponse;
|
|
1266
|
+
status: 400;
|
|
1267
|
+
};
|
|
1268
|
+
type listApiKeysResponse401 = {
|
|
1269
|
+
data: ErrorResponse;
|
|
1270
|
+
status: 401;
|
|
1271
|
+
};
|
|
1272
|
+
type listApiKeysResponse409 = {
|
|
1273
|
+
data: ErrorResponse;
|
|
1274
|
+
status: 409;
|
|
1275
|
+
};
|
|
1276
|
+
type listApiKeysResponse500 = {
|
|
1277
|
+
data: ErrorResponse;
|
|
1278
|
+
status: 500;
|
|
1279
|
+
};
|
|
1280
|
+
type listApiKeysResponseSuccess = listApiKeysResponse200 & {
|
|
1281
|
+
headers: Headers;
|
|
1282
|
+
};
|
|
1283
|
+
type listApiKeysResponseError = (listApiKeysResponse400 | listApiKeysResponse401 | listApiKeysResponse409 | listApiKeysResponse500) & {
|
|
1284
|
+
headers: Headers;
|
|
1285
|
+
};
|
|
1286
|
+
type listApiKeysResponse = listApiKeysResponseSuccess | listApiKeysResponseError;
|
|
1287
|
+
declare const getListApiKeysUrl: (params?: ListApiKeysParams) => string;
|
|
1288
|
+
declare const listApiKeys: (params?: ListApiKeysParams, options?: RequestInit) => Promise<listApiKeysResponse>;
|
|
1289
|
+
declare const getListApiKeysKey: (params?: ListApiKeysParams) => readonly ["/platform/api-keys", ...ListApiKeysParams[]];
|
|
1290
|
+
type ListApiKeysQueryResult = NonNullable<Awaited<ReturnType<typeof listApiKeys>>>;
|
|
1291
|
+
/**
|
|
1292
|
+
* @summary List API keys
|
|
1293
|
+
*/
|
|
1294
|
+
declare const useListApiKeys: <TError = ErrorResponse>(params?: ListApiKeysParams, options?: {
|
|
1295
|
+
swr?: SWRConfiguration<Awaited<ReturnType<typeof listApiKeys>>, TError> & {
|
|
1296
|
+
swrKey?: Key;
|
|
1297
|
+
enabled?: boolean;
|
|
1298
|
+
};
|
|
1299
|
+
request?: SecondParameter$1<typeof customFetch>;
|
|
1300
|
+
}) => {
|
|
1301
|
+
data: listApiKeysResponse | undefined;
|
|
1302
|
+
error: TError | undefined;
|
|
1303
|
+
mutate: swr.KeyedMutator<listApiKeysResponse>;
|
|
1304
|
+
isValidating: boolean;
|
|
1305
|
+
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1306
|
+
swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => Arguments);
|
|
1307
|
+
};
|
|
1308
|
+
/**
|
|
1309
|
+
* Create a new API key for authenticating with the Avallon API.
|
|
1310
|
+
|
|
1311
|
+
**Important:** The full API key is only returned once in the response. Store it securely — it cannot be retrieved again.
|
|
1312
|
+
|
|
1313
|
+
Keys are scoped to an environment (`test` or `live`) and optionally accept an expiration date.
|
|
1314
|
+
* @summary Create an API key
|
|
1315
|
+
*/
|
|
1316
|
+
type createApiKeyResponse200 = {
|
|
1317
|
+
data: CreateApiKey200;
|
|
1318
|
+
status: 200;
|
|
1319
|
+
};
|
|
1320
|
+
type createApiKeyResponse400 = {
|
|
1321
|
+
data: ErrorResponse;
|
|
1322
|
+
status: 400;
|
|
1323
|
+
};
|
|
1324
|
+
type createApiKeyResponse401 = {
|
|
1325
|
+
data: ErrorResponse;
|
|
1326
|
+
status: 401;
|
|
1327
|
+
};
|
|
1328
|
+
type createApiKeyResponse409 = {
|
|
1329
|
+
data: ErrorResponse;
|
|
1330
|
+
status: 409;
|
|
1331
|
+
};
|
|
1332
|
+
type createApiKeyResponse500 = {
|
|
1333
|
+
data: ErrorResponse;
|
|
1334
|
+
status: 500;
|
|
1335
|
+
};
|
|
1336
|
+
type createApiKeyResponseSuccess = createApiKeyResponse200 & {
|
|
1337
|
+
headers: Headers;
|
|
1338
|
+
};
|
|
1339
|
+
type createApiKeyResponseError = (createApiKeyResponse400 | createApiKeyResponse401 | createApiKeyResponse409 | createApiKeyResponse500) & {
|
|
1340
|
+
headers: Headers;
|
|
1341
|
+
};
|
|
1342
|
+
type createApiKeyResponse = createApiKeyResponseSuccess | createApiKeyResponseError;
|
|
1343
|
+
declare const getCreateApiKeyUrl: () => string;
|
|
1344
|
+
declare const createApiKey: (createApiKeyBody: CreateApiKeyBody, options?: RequestInit) => Promise<createApiKeyResponse>;
|
|
1345
|
+
declare const getCreateApiKeyMutationFetcher: (options?: SecondParameter$1<typeof customFetch>) => (_: Key, { arg }: {
|
|
1346
|
+
arg: CreateApiKeyBody;
|
|
1347
|
+
}) => Promise<createApiKeyResponse>;
|
|
1348
|
+
declare const getCreateApiKeyMutationKey: () => readonly ["/platform/api-keys"];
|
|
1349
|
+
type CreateApiKeyMutationResult = NonNullable<Awaited<ReturnType<typeof createApiKey>>>;
|
|
1350
|
+
/**
|
|
1351
|
+
* @summary Create an API key
|
|
1352
|
+
*/
|
|
1353
|
+
declare const useCreateApiKey: <TError = ErrorResponse>(options?: {
|
|
1354
|
+
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof createApiKey>>, TError, Key, CreateApiKeyBody, Awaited<ReturnType<typeof createApiKey>>> & {
|
|
1355
|
+
swrKey?: string;
|
|
1356
|
+
};
|
|
1357
|
+
request?: SecondParameter$1<typeof customFetch>;
|
|
1358
|
+
}) => {
|
|
1359
|
+
isMutating: boolean;
|
|
1360
|
+
trigger: swr_mutation.TriggerWithArgs<createApiKeyResponse, TError, string | readonly ["/platform/api-keys"], CreateApiKeyBody>;
|
|
1361
|
+
reset: () => void;
|
|
1362
|
+
error: TError | undefined;
|
|
1363
|
+
data: createApiKeyResponse | undefined;
|
|
1364
|
+
swrKey: string | readonly ["/platform/api-keys"];
|
|
1365
|
+
};
|
|
1366
|
+
/**
|
|
1367
|
+
* Revoke an existing API key. Once revoked, the key can no longer be used for authentication.
|
|
1368
|
+
|
|
1369
|
+
This operation is irreversible — revoked keys cannot be re-enabled. Create a new key if needed.
|
|
1370
|
+
|
|
1371
|
+
Returns 409 if the key is already revoked, 404 if the key does not exist.
|
|
1372
|
+
* @summary Revoke an API key
|
|
1373
|
+
*/
|
|
1374
|
+
type revokeApiKeyResponse200 = {
|
|
1375
|
+
data: RevokeApiKey200;
|
|
1376
|
+
status: 200;
|
|
1377
|
+
};
|
|
1378
|
+
type revokeApiKeyResponse400 = {
|
|
1379
|
+
data: ErrorResponse;
|
|
1380
|
+
status: 400;
|
|
1381
|
+
};
|
|
1382
|
+
type revokeApiKeyResponse401 = {
|
|
1383
|
+
data: ErrorResponse;
|
|
1384
|
+
status: 401;
|
|
1385
|
+
};
|
|
1386
|
+
type revokeApiKeyResponse404 = {
|
|
1387
|
+
data: ErrorResponse;
|
|
1388
|
+
status: 404;
|
|
1389
|
+
};
|
|
1390
|
+
type revokeApiKeyResponse409 = {
|
|
1391
|
+
data: ErrorResponse;
|
|
1392
|
+
status: 409;
|
|
1393
|
+
};
|
|
1394
|
+
type revokeApiKeyResponse500 = {
|
|
1395
|
+
data: ErrorResponse;
|
|
1396
|
+
status: 500;
|
|
1397
|
+
};
|
|
1398
|
+
type revokeApiKeyResponseSuccess = revokeApiKeyResponse200 & {
|
|
1399
|
+
headers: Headers;
|
|
1400
|
+
};
|
|
1401
|
+
type revokeApiKeyResponseError = (revokeApiKeyResponse400 | revokeApiKeyResponse401 | revokeApiKeyResponse404 | revokeApiKeyResponse409 | revokeApiKeyResponse500) & {
|
|
1402
|
+
headers: Headers;
|
|
1403
|
+
};
|
|
1404
|
+
type revokeApiKeyResponse = revokeApiKeyResponseSuccess | revokeApiKeyResponseError;
|
|
1405
|
+
declare const getRevokeApiKeyUrl: (id: string) => string;
|
|
1406
|
+
declare const revokeApiKey: (id: string, options?: RequestInit) => Promise<revokeApiKeyResponse>;
|
|
1407
|
+
declare const getRevokeApiKeyMutationFetcher: (id: string, options?: SecondParameter$1<typeof customFetch>) => (_: Key, __: {
|
|
1408
|
+
arg: Arguments;
|
|
1409
|
+
}) => Promise<revokeApiKeyResponse>;
|
|
1410
|
+
declare const getRevokeApiKeyMutationKey: (id: string) => readonly [`/platform/api-keys/${string}/revoke`];
|
|
1411
|
+
type RevokeApiKeyMutationResult = NonNullable<Awaited<ReturnType<typeof revokeApiKey>>>;
|
|
1412
|
+
/**
|
|
1413
|
+
* @summary Revoke an API key
|
|
1414
|
+
*/
|
|
1415
|
+
declare const useRevokeApiKey: <TError = ErrorResponse>(id: string, options?: {
|
|
1416
|
+
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof revokeApiKey>>, TError, Key, Arguments, Awaited<ReturnType<typeof revokeApiKey>>> & {
|
|
1417
|
+
swrKey?: string;
|
|
1418
|
+
};
|
|
1419
|
+
request?: SecondParameter$1<typeof customFetch>;
|
|
1420
|
+
}) => {
|
|
1421
|
+
isMutating: boolean;
|
|
1422
|
+
trigger: swr_mutation.TriggerWithOptionsArgs<revokeApiKeyResponse, TError, string | readonly [`/platform/api-keys/${string}/revoke`], Arguments>;
|
|
1423
|
+
reset: () => void;
|
|
1424
|
+
error: TError | undefined;
|
|
1425
|
+
data: revokeApiKeyResponse | undefined;
|
|
1426
|
+
swrKey: string | readonly [`/platform/api-keys/${string}/revoke`];
|
|
1427
|
+
};
|
|
1428
|
+
|
|
1072
1429
|
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
1073
1430
|
type postV1AuthSignUpResponse200 = {
|
|
1074
1431
|
data: PostV1AuthSignUp200;
|
|
@@ -1082,6 +1439,10 @@ type postV1AuthSignUpResponse401 = {
|
|
|
1082
1439
|
data: ErrorResponse;
|
|
1083
1440
|
status: 401;
|
|
1084
1441
|
};
|
|
1442
|
+
type postV1AuthSignUpResponse409 = {
|
|
1443
|
+
data: ErrorResponse;
|
|
1444
|
+
status: 409;
|
|
1445
|
+
};
|
|
1085
1446
|
type postV1AuthSignUpResponse500 = {
|
|
1086
1447
|
data: ErrorResponse;
|
|
1087
1448
|
status: 500;
|
|
@@ -1089,7 +1450,7 @@ type postV1AuthSignUpResponse500 = {
|
|
|
1089
1450
|
type postV1AuthSignUpResponseSuccess = postV1AuthSignUpResponse200 & {
|
|
1090
1451
|
headers: Headers;
|
|
1091
1452
|
};
|
|
1092
|
-
type postV1AuthSignUpResponseError = (postV1AuthSignUpResponse400 | postV1AuthSignUpResponse401 | postV1AuthSignUpResponse500) & {
|
|
1453
|
+
type postV1AuthSignUpResponseError = (postV1AuthSignUpResponse400 | postV1AuthSignUpResponse401 | postV1AuthSignUpResponse409 | postV1AuthSignUpResponse500) & {
|
|
1093
1454
|
headers: Headers;
|
|
1094
1455
|
};
|
|
1095
1456
|
type postV1AuthSignUpResponse = postV1AuthSignUpResponseSuccess | postV1AuthSignUpResponseError;
|
|
@@ -1125,6 +1486,10 @@ type postV1AuthSignInResponse401 = {
|
|
|
1125
1486
|
data: ErrorResponse;
|
|
1126
1487
|
status: 401;
|
|
1127
1488
|
};
|
|
1489
|
+
type postV1AuthSignInResponse409 = {
|
|
1490
|
+
data: ErrorResponse;
|
|
1491
|
+
status: 409;
|
|
1492
|
+
};
|
|
1128
1493
|
type postV1AuthSignInResponse500 = {
|
|
1129
1494
|
data: ErrorResponse;
|
|
1130
1495
|
status: 500;
|
|
@@ -1132,7 +1497,7 @@ type postV1AuthSignInResponse500 = {
|
|
|
1132
1497
|
type postV1AuthSignInResponseSuccess = postV1AuthSignInResponse200 & {
|
|
1133
1498
|
headers: Headers;
|
|
1134
1499
|
};
|
|
1135
|
-
type postV1AuthSignInResponseError = (postV1AuthSignInResponse400 | postV1AuthSignInResponse401 | postV1AuthSignInResponse500) & {
|
|
1500
|
+
type postV1AuthSignInResponseError = (postV1AuthSignInResponse400 | postV1AuthSignInResponse401 | postV1AuthSignInResponse409 | postV1AuthSignInResponse500) & {
|
|
1136
1501
|
headers: Headers;
|
|
1137
1502
|
};
|
|
1138
1503
|
type postV1AuthSignInResponse = postV1AuthSignInResponseSuccess | postV1AuthSignInResponseError;
|
|
@@ -1168,6 +1533,10 @@ type postV1AuthRefreshTokenResponse401 = {
|
|
|
1168
1533
|
data: ErrorResponse;
|
|
1169
1534
|
status: 401;
|
|
1170
1535
|
};
|
|
1536
|
+
type postV1AuthRefreshTokenResponse409 = {
|
|
1537
|
+
data: ErrorResponse;
|
|
1538
|
+
status: 409;
|
|
1539
|
+
};
|
|
1171
1540
|
type postV1AuthRefreshTokenResponse500 = {
|
|
1172
1541
|
data: ErrorResponse;
|
|
1173
1542
|
status: 500;
|
|
@@ -1175,7 +1544,7 @@ type postV1AuthRefreshTokenResponse500 = {
|
|
|
1175
1544
|
type postV1AuthRefreshTokenResponseSuccess = postV1AuthRefreshTokenResponse200 & {
|
|
1176
1545
|
headers: Headers;
|
|
1177
1546
|
};
|
|
1178
|
-
type postV1AuthRefreshTokenResponseError = (postV1AuthRefreshTokenResponse400 | postV1AuthRefreshTokenResponse401 | postV1AuthRefreshTokenResponse500) & {
|
|
1547
|
+
type postV1AuthRefreshTokenResponseError = (postV1AuthRefreshTokenResponse400 | postV1AuthRefreshTokenResponse401 | postV1AuthRefreshTokenResponse409 | postV1AuthRefreshTokenResponse500) & {
|
|
1179
1548
|
headers: Headers;
|
|
1180
1549
|
};
|
|
1181
1550
|
type postV1AuthRefreshTokenResponse = postV1AuthRefreshTokenResponseSuccess | postV1AuthRefreshTokenResponseError;
|
|
@@ -1211,6 +1580,10 @@ type getV1AuthOauthUrlResponse401 = {
|
|
|
1211
1580
|
data: ErrorResponse;
|
|
1212
1581
|
status: 401;
|
|
1213
1582
|
};
|
|
1583
|
+
type getV1AuthOauthUrlResponse409 = {
|
|
1584
|
+
data: ErrorResponse;
|
|
1585
|
+
status: 409;
|
|
1586
|
+
};
|
|
1214
1587
|
type getV1AuthOauthUrlResponse500 = {
|
|
1215
1588
|
data: ErrorResponse;
|
|
1216
1589
|
status: 500;
|
|
@@ -1218,7 +1591,7 @@ type getV1AuthOauthUrlResponse500 = {
|
|
|
1218
1591
|
type getV1AuthOauthUrlResponseSuccess = getV1AuthOauthUrlResponse200 & {
|
|
1219
1592
|
headers: Headers;
|
|
1220
1593
|
};
|
|
1221
|
-
type getV1AuthOauthUrlResponseError = (getV1AuthOauthUrlResponse400 | getV1AuthOauthUrlResponse401 | getV1AuthOauthUrlResponse500) & {
|
|
1594
|
+
type getV1AuthOauthUrlResponseError = (getV1AuthOauthUrlResponse400 | getV1AuthOauthUrlResponse401 | getV1AuthOauthUrlResponse409 | getV1AuthOauthUrlResponse500) & {
|
|
1222
1595
|
headers: Headers;
|
|
1223
1596
|
};
|
|
1224
1597
|
type getV1AuthOauthUrlResponse = getV1AuthOauthUrlResponseSuccess | getV1AuthOauthUrlResponseError;
|
|
@@ -1241,4 +1614,4 @@ declare const useGetV1AuthOauthUrl: <TError = ErrorResponse>(params: GetV1AuthOa
|
|
|
1241
1614
|
swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => swr.Arguments);
|
|
1242
1615
|
};
|
|
1243
1616
|
|
|
1244
|
-
export { type AvallonConfig, AvallonError, type CreateAgent200, type CreateAgent200Data, type CreateAgent200DataAgent, CreateAgent200DataAgentBackgroundSounds, CreateAgent200DataAgentDirection, CreateAgent200DataAgentLanguage, CreateAgent200DataAgentLlmModel, CreateAgent200DataAgentSttModel, CreateAgent200DataAgentTtsModel, CreateAgent200DataAgentTtsProvider, type CreateAgentBody, CreateAgentBodyDirection, CreateAgentBodyLanguage, CreateAgentBodyLlmModel, CreateAgentBodySttModel, CreateAgentBodyTtsModel, CreateAgentBodyTtsProvider, type CreateAgentMutationResult, type ErrorResponse, type ErrorResponseData, type GetAgent200, type GetAgent200Data, type GetAgent200DataAgent, GetAgent200DataAgentBackgroundSounds, GetAgent200DataAgentDirection, GetAgent200DataAgentLanguage, GetAgent200DataAgentLlmModel, GetAgent200DataAgentSttModel, GetAgent200DataAgentTtsModel, GetAgent200DataAgentTtsProvider, type GetAgentQueryResult, type GetV1AuthOauthUrl200, type GetV1AuthOauthUrl200Data, GetV1AuthOauthUrlCodeChallengeMethod, type GetV1AuthOauthUrlParams, GetV1AuthOauthUrlProvider, type GetV1AuthOauthUrlQueryResult, type ListAgents200, type ListAgents200Data, type ListAgents200DataAgentsItem, ListAgents200DataAgentsItemBackgroundSounds, ListAgents200DataAgentsItemDirection, ListAgents200DataAgentsItemLanguage, ListAgents200DataAgentsItemLlmModel, ListAgents200DataAgentsItemSttModel, ListAgents200DataAgentsItemTtsModel, ListAgents200DataAgentsItemTtsProvider, type ListAgentsParams, type ListAgentsQueryResult, type PostV1AuthRefreshToken200, type PostV1AuthRefreshToken200Data, type PostV1AuthRefreshTokenBody, type PostV1AuthRefreshTokenMutationResult, type PostV1AuthSignIn200, type PostV1AuthSignIn200Data, type PostV1AuthSignInBody, type PostV1AuthSignInMutationResult, type PostV1AuthSignUp200, type PostV1AuthSignUp200Data, type PostV1AuthSignUpBody, type PostV1AuthSignUpMutationResult, configure, createAgent, type createAgentResponse, type createAgentResponse200, type createAgentResponse400, type createAgentResponse401, type createAgentResponse500, type createAgentResponseError, type createAgentResponseSuccess, generateCodeChallenge, generateCodeVerifier, getAgent, type getAgentResponse, type getAgentResponse200, type getAgentResponse400, type getAgentResponse401, type getAgentResponse404, type getAgentResponse500, type getAgentResponseError, type getAgentResponseSuccess, getConfig, getCreateAgentMutationFetcher, getCreateAgentMutationKey, getCreateAgentUrl, getGetAgentKey, getGetAgentUrl, getGetV1AuthOauthUrlKey, getGetV1AuthOauthUrlUrl, getListAgentsKey, getListAgentsUrl, getPostV1AuthRefreshTokenMutationFetcher, getPostV1AuthRefreshTokenMutationKey, getPostV1AuthRefreshTokenUrl, getPostV1AuthSignInMutationFetcher, getPostV1AuthSignInMutationKey, getPostV1AuthSignInUrl, getPostV1AuthSignUpMutationFetcher, getPostV1AuthSignUpMutationKey, getPostV1AuthSignUpUrl, getV1AuthOauthUrl, type getV1AuthOauthUrlResponse, type getV1AuthOauthUrlResponse200, type getV1AuthOauthUrlResponse400, type getV1AuthOauthUrlResponse401, type getV1AuthOauthUrlResponse500, type getV1AuthOauthUrlResponseError, type getV1AuthOauthUrlResponseSuccess, listAgents, type listAgentsResponse, type listAgentsResponse200, type listAgentsResponse400, type listAgentsResponse401, type listAgentsResponse500, type listAgentsResponseError, type listAgentsResponseSuccess, postV1AuthRefreshToken, type postV1AuthRefreshTokenResponse, type postV1AuthRefreshTokenResponse200, type postV1AuthRefreshTokenResponse400, type postV1AuthRefreshTokenResponse401, type postV1AuthRefreshTokenResponse500, type postV1AuthRefreshTokenResponseError, type postV1AuthRefreshTokenResponseSuccess, postV1AuthSignIn, type postV1AuthSignInResponse, type postV1AuthSignInResponse200, type postV1AuthSignInResponse400, type postV1AuthSignInResponse401, type postV1AuthSignInResponse500, type postV1AuthSignInResponseError, type postV1AuthSignInResponseSuccess, postV1AuthSignUp, type postV1AuthSignUpResponse, type postV1AuthSignUpResponse200, type postV1AuthSignUpResponse400, type postV1AuthSignUpResponse401, type postV1AuthSignUpResponse500, type postV1AuthSignUpResponseError, type postV1AuthSignUpResponseSuccess, useCreateAgent, useGetAgent, useGetV1AuthOauthUrl, useListAgents, usePostV1AuthRefreshToken, usePostV1AuthSignIn, usePostV1AuthSignUp };
|
|
1617
|
+
export { type AvallonConfig, AvallonError, type CreateAgent200, type CreateAgent200Data, type CreateAgent200DataAgent, CreateAgent200DataAgentBackgroundSounds, CreateAgent200DataAgentDirection, CreateAgent200DataAgentLanguage, CreateAgent200DataAgentLlmModel, CreateAgent200DataAgentSttModel, CreateAgent200DataAgentTtsModel, CreateAgent200DataAgentTtsProvider, type CreateAgentBody, CreateAgentBodyDirection, CreateAgentBodyLanguage, CreateAgentBodyLlmModel, CreateAgentBodySttModel, CreateAgentBodyTtsModel, CreateAgentBodyTtsProvider, type CreateAgentMutationResult, type CreateApiKey200, type CreateApiKey200Data, type CreateApiKeyBody, CreateApiKeyBodyEnvironment, type CreateApiKeyMutationResult, type ErrorResponse, type ErrorResponseData, type GetAgent200, type GetAgent200Data, type GetAgent200DataAgent, GetAgent200DataAgentBackgroundSounds, GetAgent200DataAgentDirection, GetAgent200DataAgentLanguage, GetAgent200DataAgentLlmModel, GetAgent200DataAgentSttModel, GetAgent200DataAgentTtsModel, GetAgent200DataAgentTtsProvider, type GetAgentQueryResult, type GetV1AuthOauthUrl200, type GetV1AuthOauthUrl200Data, GetV1AuthOauthUrlCodeChallengeMethod, type GetV1AuthOauthUrlParams, GetV1AuthOauthUrlProvider, type GetV1AuthOauthUrlQueryResult, type ListAgents200, type ListAgents200Data, type ListAgents200DataAgentsItem, ListAgents200DataAgentsItemBackgroundSounds, ListAgents200DataAgentsItemDirection, ListAgents200DataAgentsItemLanguage, ListAgents200DataAgentsItemLlmModel, ListAgents200DataAgentsItemSttModel, ListAgents200DataAgentsItemTtsModel, ListAgents200DataAgentsItemTtsProvider, type ListAgentsParams, type ListAgentsQueryResult, type ListApiKeys200, type ListApiKeys200Data, type ListApiKeys200DataDataItem, ListApiKeysIncludeRevoked, type ListApiKeysParams, type ListApiKeysQueryResult, type PostV1AuthRefreshToken200, type PostV1AuthRefreshToken200Data, type PostV1AuthRefreshTokenBody, type PostV1AuthRefreshTokenMutationResult, type PostV1AuthSignIn200, type PostV1AuthSignIn200Data, type PostV1AuthSignInBody, type PostV1AuthSignInMutationResult, type PostV1AuthSignUp200, type PostV1AuthSignUp200Data, type PostV1AuthSignUpBody, type PostV1AuthSignUpMutationResult, type RevokeApiKey200, type RevokeApiKey200Data, type RevokeApiKeyMutationResult, configure, createAgent, type createAgentResponse, type createAgentResponse200, type createAgentResponse400, type createAgentResponse401, type createAgentResponse409, type createAgentResponse500, type createAgentResponseError, type createAgentResponseSuccess, createApiKey, type createApiKeyResponse, type createApiKeyResponse200, type createApiKeyResponse400, type createApiKeyResponse401, type createApiKeyResponse409, type createApiKeyResponse500, type createApiKeyResponseError, type createApiKeyResponseSuccess, generateCodeChallenge, generateCodeVerifier, getAgent, type getAgentResponse, type getAgentResponse200, type getAgentResponse400, type getAgentResponse401, type getAgentResponse404, type getAgentResponse409, type getAgentResponse500, type getAgentResponseError, type getAgentResponseSuccess, getConfig, getCreateAgentMutationFetcher, getCreateAgentMutationKey, getCreateAgentUrl, getCreateApiKeyMutationFetcher, getCreateApiKeyMutationKey, getCreateApiKeyUrl, getGetAgentKey, getGetAgentUrl, getGetV1AuthOauthUrlKey, getGetV1AuthOauthUrlUrl, getListAgentsKey, getListAgentsUrl, getListApiKeysKey, getListApiKeysUrl, getPostV1AuthRefreshTokenMutationFetcher, getPostV1AuthRefreshTokenMutationKey, getPostV1AuthRefreshTokenUrl, getPostV1AuthSignInMutationFetcher, getPostV1AuthSignInMutationKey, getPostV1AuthSignInUrl, getPostV1AuthSignUpMutationFetcher, getPostV1AuthSignUpMutationKey, getPostV1AuthSignUpUrl, getRevokeApiKeyMutationFetcher, getRevokeApiKeyMutationKey, getRevokeApiKeyUrl, getV1AuthOauthUrl, type getV1AuthOauthUrlResponse, type getV1AuthOauthUrlResponse200, type getV1AuthOauthUrlResponse400, type getV1AuthOauthUrlResponse401, type getV1AuthOauthUrlResponse409, type getV1AuthOauthUrlResponse500, type getV1AuthOauthUrlResponseError, type getV1AuthOauthUrlResponseSuccess, listAgents, type listAgentsResponse, type listAgentsResponse200, type listAgentsResponse400, type listAgentsResponse401, type listAgentsResponse409, type listAgentsResponse500, type listAgentsResponseError, type listAgentsResponseSuccess, listApiKeys, type listApiKeysResponse, type listApiKeysResponse200, type listApiKeysResponse400, type listApiKeysResponse401, type listApiKeysResponse409, type listApiKeysResponse500, type listApiKeysResponseError, type listApiKeysResponseSuccess, postV1AuthRefreshToken, type postV1AuthRefreshTokenResponse, type postV1AuthRefreshTokenResponse200, type postV1AuthRefreshTokenResponse400, type postV1AuthRefreshTokenResponse401, type postV1AuthRefreshTokenResponse409, type postV1AuthRefreshTokenResponse500, type postV1AuthRefreshTokenResponseError, type postV1AuthRefreshTokenResponseSuccess, postV1AuthSignIn, type postV1AuthSignInResponse, type postV1AuthSignInResponse200, type postV1AuthSignInResponse400, type postV1AuthSignInResponse401, type postV1AuthSignInResponse409, type postV1AuthSignInResponse500, type postV1AuthSignInResponseError, type postV1AuthSignInResponseSuccess, postV1AuthSignUp, type postV1AuthSignUpResponse, type postV1AuthSignUpResponse200, type postV1AuthSignUpResponse400, type postV1AuthSignUpResponse401, type postV1AuthSignUpResponse409, type postV1AuthSignUpResponse500, type postV1AuthSignUpResponseError, type postV1AuthSignUpResponseSuccess, revokeApiKey, type revokeApiKeyResponse, type revokeApiKeyResponse200, type revokeApiKeyResponse400, type revokeApiKeyResponse401, type revokeApiKeyResponse404, type revokeApiKeyResponse409, type revokeApiKeyResponse500, type revokeApiKeyResponseError, type revokeApiKeyResponseSuccess, useCreateAgent, useCreateApiKey, useGetAgent, useGetV1AuthOauthUrl, useListAgents, useListApiKeys, usePostV1AuthRefreshToken, usePostV1AuthSignIn, usePostV1AuthSignUp, useRevokeApiKey };
|