@airweave/sdk 0.1.28 → 0.1.34
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/Client.d.ts +15 -0
- package/Client.js +45 -20
- package/README.md +7 -11
- package/api/resources/apiKeys/client/Client.d.ts +131 -0
- package/api/resources/apiKeys/client/Client.js +391 -0
- package/api/resources/apiKeys/client/index.d.ts +1 -0
- package/api/resources/apiKeys/client/index.js +17 -0
- package/api/{types → resources/apiKeys/client/requests}/ApiKeyCreate.d.ts +2 -1
- package/api/resources/apiKeys/client/requests/DeleteApiKeyApiKeysDeleteRequest.d.ts +12 -0
- package/api/resources/apiKeys/client/requests/ReadApiKeysApiKeysGetRequest.d.ts +11 -0
- package/api/resources/apiKeys/client/requests/index.d.ts +3 -0
- package/api/resources/apiKeys/client/requests/index.js +2 -0
- package/api/resources/apiKeys/index.d.ts +1 -0
- package/api/resources/apiKeys/index.js +17 -0
- package/api/resources/chat/client/Client.d.ts +209 -0
- package/api/resources/chat/client/Client.js +669 -0
- package/api/resources/chat/client/index.d.ts +1 -0
- package/api/resources/chat/client/index.js +17 -0
- package/api/{types → resources/chat/client/requests}/ChatCreate.d.ts +5 -1
- package/api/{types → resources/chat/client/requests}/ChatMessageCreate.d.ts +4 -1
- package/{dist/api/types → api/resources/chat/client/requests}/ChatUpdate.d.ts +2 -1
- package/api/resources/chat/client/requests/ListChatsChatGetRequest.d.ts +11 -0
- package/api/resources/chat/client/requests/index.d.ts +4 -0
- package/api/resources/chat/client/requests/index.js +2 -0
- package/api/resources/chat/index.d.ts +1 -0
- package/api/resources/chat/index.js +17 -0
- package/api/resources/connections/client/Client.d.ts +26 -25
- package/api/resources/connections/client/Client.js +88 -84
- package/api/resources/connections/client/requests/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.d.ts +13 -0
- package/api/resources/connections/client/requests/index.d.ts +1 -0
- package/api/resources/cursorDevelopment/client/Client.d.ts +78 -0
- package/api/resources/cursorDevelopment/client/Client.js +218 -0
- package/api/resources/cursorDevelopment/client/index.d.ts +1 -0
- package/api/resources/cursorDevelopment/client/index.js +2 -0
- package/api/resources/cursorDevelopment/index.d.ts +1 -0
- package/api/resources/cursorDevelopment/index.js +17 -0
- package/api/resources/dag/client/Client.js +4 -4
- package/api/resources/destinations/client/Client.js +2 -2
- package/api/resources/embeddingModels/client/Client.js +2 -2
- package/api/resources/entities/client/Client.js +8 -8
- package/api/resources/health/client/Client.d.ts +41 -0
- package/api/resources/health/client/Client.js +118 -0
- package/api/resources/health/client/index.d.ts +1 -0
- package/api/resources/health/client/index.js +2 -0
- package/api/resources/health/index.d.ts +1 -0
- package/api/resources/health/index.js +17 -0
- package/api/resources/index.d.ts +8 -0
- package/api/resources/index.js +9 -1
- package/api/resources/search/client/Client.d.ts +55 -0
- package/api/resources/search/client/Client.js +147 -0
- package/api/resources/search/client/index.d.ts +1 -0
- package/api/resources/search/client/index.js +17 -0
- package/api/resources/search/client/requests/SearchSearchGetRequest.d.ts +20 -0
- package/api/resources/search/client/requests/SearchSearchGetRequest.js +5 -0
- package/api/resources/search/client/requests/index.d.ts +1 -0
- package/api/resources/search/client/requests/index.js +2 -0
- package/api/resources/search/index.d.ts +1 -0
- package/api/resources/search/index.js +17 -0
- package/api/resources/sources/client/Client.js +2 -2
- package/api/resources/sync/client/Client.js +11 -11
- package/api/resources/transformers/client/Client.js +3 -3
- package/api/resources/users/client/Client.js +1 -1
- package/api/resources/whiteLabels/client/Client.js +8 -8
- package/api/types/index.d.ts +0 -4
- package/api/types/index.js +0 -4
- package/dist/Client.d.ts +15 -0
- package/dist/Client.js +45 -20
- package/dist/api/resources/apiKeys/client/Client.d.ts +131 -0
- package/dist/api/resources/apiKeys/client/Client.js +391 -0
- package/dist/api/resources/apiKeys/client/index.d.ts +1 -0
- package/dist/api/resources/apiKeys/client/index.js +17 -0
- package/dist/api/{types → resources/apiKeys/client/requests}/ApiKeyCreate.d.ts +2 -1
- package/dist/api/resources/apiKeys/client/requests/ApiKeyCreate.js +5 -0
- package/dist/api/resources/apiKeys/client/requests/DeleteApiKeyApiKeysDeleteRequest.d.ts +12 -0
- package/dist/api/resources/apiKeys/client/requests/DeleteApiKeyApiKeysDeleteRequest.js +5 -0
- package/dist/api/resources/apiKeys/client/requests/ReadApiKeysApiKeysGetRequest.d.ts +11 -0
- package/dist/api/resources/apiKeys/client/requests/ReadApiKeysApiKeysGetRequest.js +5 -0
- package/dist/api/resources/apiKeys/client/requests/index.d.ts +3 -0
- package/dist/api/resources/apiKeys/client/requests/index.js +2 -0
- package/dist/api/resources/apiKeys/index.d.ts +1 -0
- package/dist/api/resources/apiKeys/index.js +17 -0
- package/dist/api/resources/chat/client/Client.d.ts +209 -0
- package/dist/api/resources/chat/client/Client.js +669 -0
- package/dist/api/resources/chat/client/index.d.ts +1 -0
- package/dist/api/resources/chat/client/index.js +17 -0
- package/dist/api/{types → resources/chat/client/requests}/ChatCreate.d.ts +5 -1
- package/dist/api/resources/chat/client/requests/ChatCreate.js +5 -0
- package/dist/api/{types → resources/chat/client/requests}/ChatMessageCreate.d.ts +4 -1
- package/dist/api/resources/chat/client/requests/ChatMessageCreate.js +5 -0
- package/{api/types → dist/api/resources/chat/client/requests}/ChatUpdate.d.ts +2 -1
- package/dist/api/resources/chat/client/requests/ChatUpdate.js +5 -0
- package/dist/api/resources/chat/client/requests/ListChatsChatGetRequest.d.ts +11 -0
- package/dist/api/resources/chat/client/requests/ListChatsChatGetRequest.js +5 -0
- package/dist/api/resources/chat/client/requests/index.d.ts +4 -0
- package/dist/api/resources/chat/client/requests/index.js +2 -0
- package/dist/api/resources/chat/index.d.ts +1 -0
- package/dist/api/resources/chat/index.js +17 -0
- package/dist/api/resources/connections/client/Client.d.ts +26 -25
- package/dist/api/resources/connections/client/Client.js +88 -84
- package/dist/api/resources/connections/client/requests/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.d.ts +13 -0
- package/dist/api/resources/connections/client/requests/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.js +5 -0
- package/dist/api/resources/connections/client/requests/index.d.ts +1 -0
- package/dist/api/resources/cursorDevelopment/client/Client.d.ts +78 -0
- package/dist/api/resources/cursorDevelopment/client/Client.js +218 -0
- package/dist/api/resources/cursorDevelopment/client/index.d.ts +1 -0
- package/dist/api/resources/cursorDevelopment/client/index.js +2 -0
- package/dist/api/resources/cursorDevelopment/index.d.ts +1 -0
- package/dist/api/resources/cursorDevelopment/index.js +17 -0
- package/dist/api/resources/dag/client/Client.js +4 -4
- package/dist/api/resources/destinations/client/Client.js +2 -2
- package/dist/api/resources/embeddingModels/client/Client.js +2 -2
- package/dist/api/resources/entities/client/Client.js +8 -8
- package/dist/api/resources/health/client/Client.d.ts +41 -0
- package/dist/api/resources/health/client/Client.js +118 -0
- package/dist/api/resources/health/client/index.d.ts +1 -0
- package/dist/api/resources/health/client/index.js +2 -0
- package/dist/api/resources/health/index.d.ts +1 -0
- package/dist/api/resources/health/index.js +17 -0
- package/dist/api/resources/index.d.ts +8 -0
- package/dist/api/resources/index.js +9 -1
- package/dist/api/resources/search/client/Client.d.ts +55 -0
- package/dist/api/resources/search/client/Client.js +147 -0
- package/dist/api/resources/search/client/index.d.ts +1 -0
- package/dist/api/resources/search/client/index.js +17 -0
- package/dist/api/resources/search/client/requests/SearchSearchGetRequest.d.ts +20 -0
- package/dist/api/resources/search/client/requests/SearchSearchGetRequest.js +5 -0
- package/dist/api/resources/search/client/requests/index.d.ts +1 -0
- package/dist/api/resources/search/client/requests/index.js +2 -0
- package/dist/api/resources/search/index.d.ts +1 -0
- package/dist/api/resources/search/index.js +17 -0
- package/dist/api/resources/sources/client/Client.js +2 -2
- package/dist/api/resources/sync/client/Client.js +11 -11
- package/dist/api/resources/transformers/client/Client.js +3 -3
- package/dist/api/resources/users/client/Client.js +1 -1
- package/dist/api/resources/whiteLabels/client/Client.js +8 -8
- package/dist/api/types/index.d.ts +0 -4
- package/dist/api/types/index.js +0 -4
- package/dist/serialization/resources/apiKeys/client/index.d.ts +2 -0
- package/dist/serialization/resources/apiKeys/client/index.js +41 -0
- package/dist/serialization/resources/apiKeys/client/readApiKeys.d.ts +11 -0
- package/dist/serialization/resources/apiKeys/client/readApiKeys.js +42 -0
- package/dist/serialization/resources/apiKeys/client/requests/ApiKeyCreate.d.ts +12 -0
- package/dist/serialization/{types → resources/apiKeys/client/requests}/ApiKeyCreate.js +1 -1
- package/dist/serialization/resources/apiKeys/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/apiKeys/client/requests/index.js +5 -0
- package/dist/serialization/resources/apiKeys/index.d.ts +1 -0
- package/dist/serialization/resources/apiKeys/index.js +17 -0
- package/dist/serialization/resources/chat/client/index.d.ts +3 -0
- package/dist/serialization/resources/chat/client/index.js +42 -0
- package/dist/serialization/resources/chat/client/listChats.d.ts +11 -0
- package/dist/serialization/resources/chat/client/listChats.js +42 -0
- package/dist/serialization/resources/chat/client/openaiKeySet.d.ts +9 -0
- package/dist/serialization/resources/chat/client/openaiKeySet.js +41 -0
- package/{serialization/types → dist/serialization/resources/chat/client/requests}/ChatCreate.d.ts +4 -4
- package/{serialization/types → dist/serialization/resources/chat/client/requests}/ChatCreate.js +1 -1
- package/dist/serialization/resources/chat/client/requests/ChatMessageCreate.d.ts +13 -0
- package/dist/serialization/{types → resources/chat/client/requests}/ChatMessageCreate.js +1 -1
- package/{serialization/types → dist/serialization/resources/chat/client/requests}/ChatUpdate.d.ts +4 -4
- package/dist/serialization/{types → resources/chat/client/requests}/ChatUpdate.js +1 -1
- package/dist/serialization/resources/chat/client/requests/index.d.ts +3 -0
- package/dist/serialization/resources/chat/client/requests/index.js +9 -0
- package/dist/serialization/resources/chat/index.d.ts +1 -0
- package/dist/serialization/resources/chat/index.js +17 -0
- package/dist/serialization/resources/connections/client/requests/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.d.ts +13 -0
- package/dist/serialization/resources/connections/client/requests/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.js +44 -0
- package/dist/serialization/resources/connections/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/connections/client/requests/index.js +3 -1
- package/dist/serialization/resources/cursorDevelopment/client/checkConnectionStatus.d.ts +11 -0
- package/dist/serialization/resources/cursorDevelopment/client/checkConnectionStatus.js +42 -0
- package/dist/serialization/resources/cursorDevelopment/client/index.d.ts +1 -0
- package/dist/serialization/resources/cursorDevelopment/client/index.js +37 -0
- package/dist/serialization/resources/cursorDevelopment/index.d.ts +1 -0
- package/dist/serialization/resources/cursorDevelopment/index.js +17 -0
- package/dist/serialization/resources/health/client/healthCheck.d.ts +9 -0
- package/dist/serialization/resources/health/client/healthCheck.js +41 -0
- package/dist/serialization/resources/health/client/index.d.ts +1 -0
- package/dist/serialization/resources/health/client/index.js +37 -0
- package/dist/serialization/resources/health/index.d.ts +1 -0
- package/dist/serialization/resources/health/index.js +17 -0
- package/dist/serialization/resources/index.d.ts +7 -0
- package/dist/serialization/resources/index.js +8 -1
- package/dist/serialization/resources/search/client/index.d.ts +1 -0
- package/dist/serialization/resources/search/client/index.js +37 -0
- package/dist/serialization/resources/search/client/search.d.ts +9 -0
- package/dist/serialization/resources/search/client/search.js +41 -0
- package/dist/serialization/resources/search/index.d.ts +1 -0
- package/dist/serialization/resources/search/index.js +17 -0
- package/dist/serialization/types/index.d.ts +0 -4
- package/dist/serialization/types/index.js +0 -4
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +1646 -447
- package/serialization/resources/apiKeys/client/index.d.ts +2 -0
- package/serialization/resources/apiKeys/client/index.js +41 -0
- package/serialization/resources/apiKeys/client/readApiKeys.d.ts +11 -0
- package/serialization/resources/apiKeys/client/readApiKeys.js +42 -0
- package/serialization/resources/apiKeys/client/requests/ApiKeyCreate.d.ts +12 -0
- package/serialization/{types → resources/apiKeys/client/requests}/ApiKeyCreate.js +1 -1
- package/serialization/resources/apiKeys/client/requests/index.d.ts +1 -0
- package/serialization/resources/apiKeys/client/requests/index.js +5 -0
- package/serialization/resources/apiKeys/index.d.ts +1 -0
- package/serialization/resources/apiKeys/index.js +17 -0
- package/serialization/resources/chat/client/index.d.ts +3 -0
- package/serialization/resources/chat/client/index.js +42 -0
- package/serialization/resources/chat/client/listChats.d.ts +11 -0
- package/serialization/resources/chat/client/listChats.js +42 -0
- package/serialization/resources/chat/client/openaiKeySet.d.ts +9 -0
- package/serialization/resources/chat/client/openaiKeySet.js +41 -0
- package/{dist/serialization/types → serialization/resources/chat/client/requests}/ChatCreate.d.ts +4 -4
- package/{dist/serialization/types → serialization/resources/chat/client/requests}/ChatCreate.js +1 -1
- package/serialization/resources/chat/client/requests/ChatMessageCreate.d.ts +13 -0
- package/serialization/{types → resources/chat/client/requests}/ChatMessageCreate.js +1 -1
- package/{dist/serialization/types → serialization/resources/chat/client/requests}/ChatUpdate.d.ts +4 -4
- package/serialization/{types → resources/chat/client/requests}/ChatUpdate.js +1 -1
- package/serialization/resources/chat/client/requests/index.d.ts +3 -0
- package/serialization/resources/chat/client/requests/index.js +9 -0
- package/serialization/resources/chat/index.d.ts +1 -0
- package/serialization/resources/chat/index.js +17 -0
- package/serialization/resources/connections/client/requests/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.d.ts +13 -0
- package/serialization/resources/connections/client/requests/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.js +44 -0
- package/serialization/resources/connections/client/requests/index.d.ts +1 -0
- package/serialization/resources/connections/client/requests/index.js +3 -1
- package/serialization/resources/cursorDevelopment/client/checkConnectionStatus.d.ts +11 -0
- package/serialization/resources/cursorDevelopment/client/checkConnectionStatus.js +42 -0
- package/serialization/resources/cursorDevelopment/client/index.d.ts +1 -0
- package/serialization/resources/cursorDevelopment/client/index.js +37 -0
- package/serialization/resources/cursorDevelopment/index.d.ts +1 -0
- package/serialization/resources/cursorDevelopment/index.js +17 -0
- package/serialization/resources/health/client/healthCheck.d.ts +9 -0
- package/serialization/resources/health/client/healthCheck.js +41 -0
- package/serialization/resources/health/client/index.d.ts +1 -0
- package/serialization/resources/health/client/index.js +37 -0
- package/serialization/resources/health/index.d.ts +1 -0
- package/serialization/resources/health/index.js +17 -0
- package/serialization/resources/index.d.ts +7 -0
- package/serialization/resources/index.js +8 -1
- package/serialization/resources/search/client/index.d.ts +1 -0
- package/serialization/resources/search/client/index.js +37 -0
- package/serialization/resources/search/client/search.d.ts +9 -0
- package/serialization/resources/search/client/search.js +41 -0
- package/serialization/resources/search/index.d.ts +1 -0
- package/serialization/resources/search/index.js +17 -0
- package/serialization/types/index.d.ts +0 -4
- package/serialization/types/index.js +0 -4
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/dist/serialization/types/ApiKeyCreate.d.ts +0 -12
- package/dist/serialization/types/ChatMessageCreate.d.ts +0 -13
- package/serialization/types/ApiKeyCreate.d.ts +0 -12
- package/serialization/types/ChatMessageCreate.d.ts +0 -13
- /package/api/{types → resources/apiKeys/client/requests}/ApiKeyCreate.js +0 -0
- /package/api/{types/ChatCreate.js → resources/apiKeys/client/requests/DeleteApiKeyApiKeysDeleteRequest.js} +0 -0
- /package/api/{types/ChatMessageCreate.js → resources/apiKeys/client/requests/ReadApiKeysApiKeysGetRequest.js} +0 -0
- /package/{dist/api/types → api/resources/chat/client/requests}/ChatCreate.js +0 -0
- /package/{dist/api/types → api/resources/chat/client/requests}/ChatMessageCreate.js +0 -0
- /package/api/{types → resources/chat/client/requests}/ChatUpdate.js +0 -0
- /package/{dist/api/types/ApiKeyCreate.js → api/resources/chat/client/requests/ListChatsChatGetRequest.js} +0 -0
- /package/{dist/api/types/ChatUpdate.js → api/resources/connections/client/requests/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.js} +0 -0
|
@@ -77,7 +77,7 @@ class Transformers {
|
|
|
77
77
|
method: "GET",
|
|
78
78
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
79
79
|
? yield core.Supplier.get(this._options.apiKey)
|
|
80
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "
|
|
80
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.1.34", "User-Agent": "@airweave/sdk/v0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
81
81
|
contentType: "application/json",
|
|
82
82
|
requestType: "json",
|
|
83
83
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -148,7 +148,7 @@ class Transformers {
|
|
|
148
148
|
method: "POST",
|
|
149
149
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
150
150
|
? yield core.Supplier.get(this._options.apiKey)
|
|
151
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "
|
|
151
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.1.34", "User-Agent": "@airweave/sdk/v0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
152
152
|
contentType: "application/json",
|
|
153
153
|
requestType: "json",
|
|
154
154
|
body: serializers.TransformerCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -221,7 +221,7 @@ class Transformers {
|
|
|
221
221
|
method: "PUT",
|
|
222
222
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
223
223
|
? yield core.Supplier.get(this._options.apiKey)
|
|
224
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "
|
|
224
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.1.34", "User-Agent": "@airweave/sdk/v0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
225
225
|
contentType: "application/json",
|
|
226
226
|
requestType: "json",
|
|
227
227
|
body: serializers.TransformerUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -85,7 +85,7 @@ class Users {
|
|
|
85
85
|
method: "GET",
|
|
86
86
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
87
87
|
? yield core.Supplier.get(this._options.apiKey)
|
|
88
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "
|
|
88
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.1.34", "User-Agent": "@airweave/sdk/v0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
89
89
|
contentType: "application/json",
|
|
90
90
|
requestType: "json",
|
|
91
91
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -86,7 +86,7 @@ class WhiteLabels {
|
|
|
86
86
|
method: "GET",
|
|
87
87
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
88
88
|
? yield core.Supplier.get(this._options.apiKey)
|
|
89
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "
|
|
89
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.1.34", "User-Agent": "@airweave/sdk/v0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
90
90
|
contentType: "application/json",
|
|
91
91
|
requestType: "json",
|
|
92
92
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -167,7 +167,7 @@ class WhiteLabels {
|
|
|
167
167
|
method: "POST",
|
|
168
168
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
169
169
|
? yield core.Supplier.get(this._options.apiKey)
|
|
170
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "
|
|
170
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.1.34", "User-Agent": "@airweave/sdk/v0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
171
171
|
contentType: "application/json",
|
|
172
172
|
requestType: "json",
|
|
173
173
|
body: serializers.WhiteLabelCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -243,7 +243,7 @@ class WhiteLabels {
|
|
|
243
243
|
method: "GET",
|
|
244
244
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
245
245
|
? yield core.Supplier.get(this._options.apiKey)
|
|
246
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "
|
|
246
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.1.34", "User-Agent": "@airweave/sdk/v0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
247
247
|
contentType: "application/json",
|
|
248
248
|
requestType: "json",
|
|
249
249
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -320,7 +320,7 @@ class WhiteLabels {
|
|
|
320
320
|
method: "PUT",
|
|
321
321
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
322
322
|
? yield core.Supplier.get(this._options.apiKey)
|
|
323
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "
|
|
323
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.1.34", "User-Agent": "@airweave/sdk/v0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
324
324
|
contentType: "application/json",
|
|
325
325
|
requestType: "json",
|
|
326
326
|
body: serializers.WhiteLabelUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -396,7 +396,7 @@ class WhiteLabels {
|
|
|
396
396
|
method: "DELETE",
|
|
397
397
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
398
398
|
? yield core.Supplier.get(this._options.apiKey)
|
|
399
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "
|
|
399
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.1.34", "User-Agent": "@airweave/sdk/v0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
400
400
|
contentType: "application/json",
|
|
401
401
|
requestType: "json",
|
|
402
402
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -471,7 +471,7 @@ class WhiteLabels {
|
|
|
471
471
|
method: "GET",
|
|
472
472
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
473
473
|
? yield core.Supplier.get(this._options.apiKey)
|
|
474
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "
|
|
474
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.1.34", "User-Agent": "@airweave/sdk/v0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
475
475
|
contentType: "application/json",
|
|
476
476
|
requestType: "json",
|
|
477
477
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -548,7 +548,7 @@ class WhiteLabels {
|
|
|
548
548
|
method: "POST",
|
|
549
549
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
550
550
|
? yield core.Supplier.get(this._options.apiKey)
|
|
551
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "
|
|
551
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.1.34", "User-Agent": "@airweave/sdk/v0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
552
552
|
contentType: "application/json",
|
|
553
553
|
requestType: "json",
|
|
554
554
|
body: serializers.whiteLabels.exchangeWhiteLabelOauth2Code.Request.jsonOrThrow(request, {
|
|
@@ -626,7 +626,7 @@ class WhiteLabels {
|
|
|
626
626
|
method: "GET",
|
|
627
627
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
628
628
|
? yield core.Supplier.get(this._options.apiKey)
|
|
629
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "
|
|
629
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.1.34", "User-Agent": "@airweave/sdk/v0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
630
630
|
contentType: "application/json",
|
|
631
631
|
requestType: "json",
|
|
632
632
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
package/api/types/index.d.ts
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
export * from "./ApiKey";
|
|
2
|
-
export * from "./ApiKeyCreate";
|
|
3
2
|
export * from "./ApiKeyWithPlainKey";
|
|
4
3
|
export * from "./AuthType";
|
|
5
4
|
export * from "./Chat";
|
|
6
|
-
export * from "./ChatCreate";
|
|
7
5
|
export * from "./ChatMessage";
|
|
8
|
-
export * from "./ChatMessageCreate";
|
|
9
|
-
export * from "./ChatUpdate";
|
|
10
6
|
export * from "./ConfigField";
|
|
11
7
|
export * from "./Connection";
|
|
12
8
|
export * from "./ConnectionStatus";
|
package/api/types/index.js
CHANGED
|
@@ -15,14 +15,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./ApiKey"), exports);
|
|
18
|
-
__exportStar(require("./ApiKeyCreate"), exports);
|
|
19
18
|
__exportStar(require("./ApiKeyWithPlainKey"), exports);
|
|
20
19
|
__exportStar(require("./AuthType"), exports);
|
|
21
20
|
__exportStar(require("./Chat"), exports);
|
|
22
|
-
__exportStar(require("./ChatCreate"), exports);
|
|
23
21
|
__exportStar(require("./ChatMessage"), exports);
|
|
24
|
-
__exportStar(require("./ChatMessageCreate"), exports);
|
|
25
|
-
__exportStar(require("./ChatUpdate"), exports);
|
|
26
22
|
__exportStar(require("./ConfigField"), exports);
|
|
27
23
|
__exportStar(require("./Connection"), exports);
|
|
28
24
|
__exportStar(require("./ConnectionStatus"), exports);
|
package/dist/Client.d.ts
CHANGED
|
@@ -3,16 +3,21 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as environments from "./environments";
|
|
5
5
|
import * as core from "./core";
|
|
6
|
+
import { Health } from "./api/resources/health/client/Client";
|
|
7
|
+
import { ApiKeys } from "./api/resources/apiKeys/client/Client";
|
|
6
8
|
import { Users } from "./api/resources/users/client/Client";
|
|
7
9
|
import { Sources } from "./api/resources/sources/client/Client";
|
|
8
10
|
import { Destinations } from "./api/resources/destinations/client/Client";
|
|
9
11
|
import { EmbeddingModels } from "./api/resources/embeddingModels/client/Client";
|
|
10
12
|
import { Connections } from "./api/resources/connections/client/Client";
|
|
11
13
|
import { Sync } from "./api/resources/sync/client/Client";
|
|
14
|
+
import { Search } from "./api/resources/search/client/Client";
|
|
12
15
|
import { WhiteLabels } from "./api/resources/whiteLabels/client/Client";
|
|
16
|
+
import { Chat } from "./api/resources/chat/client/Client";
|
|
13
17
|
import { Dag } from "./api/resources/dag/client/Client";
|
|
14
18
|
import { Entities } from "./api/resources/entities/client/Client";
|
|
15
19
|
import { Transformers } from "./api/resources/transformers/client/Client";
|
|
20
|
+
import { CursorDevelopment } from "./api/resources/cursorDevelopment/client/Client";
|
|
16
21
|
export declare namespace AirweaveSDKClient {
|
|
17
22
|
interface Options {
|
|
18
23
|
environment?: core.Supplier<environments.AirweaveSDKEnvironment | string>;
|
|
@@ -34,25 +39,35 @@ export declare namespace AirweaveSDKClient {
|
|
|
34
39
|
}
|
|
35
40
|
export declare class AirweaveSDKClient {
|
|
36
41
|
protected readonly _options: AirweaveSDKClient.Options;
|
|
42
|
+
protected _health: Health | undefined;
|
|
43
|
+
protected _apiKeys: ApiKeys | undefined;
|
|
37
44
|
protected _users: Users | undefined;
|
|
38
45
|
protected _sources: Sources | undefined;
|
|
39
46
|
protected _destinations: Destinations | undefined;
|
|
40
47
|
protected _embeddingModels: EmbeddingModels | undefined;
|
|
41
48
|
protected _connections: Connections | undefined;
|
|
42
49
|
protected _sync: Sync | undefined;
|
|
50
|
+
protected _search: Search | undefined;
|
|
43
51
|
protected _whiteLabels: WhiteLabels | undefined;
|
|
52
|
+
protected _chat: Chat | undefined;
|
|
44
53
|
protected _dag: Dag | undefined;
|
|
45
54
|
protected _entities: Entities | undefined;
|
|
46
55
|
protected _transformers: Transformers | undefined;
|
|
56
|
+
protected _cursorDevelopment: CursorDevelopment | undefined;
|
|
47
57
|
constructor(_options?: AirweaveSDKClient.Options);
|
|
58
|
+
get health(): Health;
|
|
59
|
+
get apiKeys(): ApiKeys;
|
|
48
60
|
get users(): Users;
|
|
49
61
|
get sources(): Sources;
|
|
50
62
|
get destinations(): Destinations;
|
|
51
63
|
get embeddingModels(): EmbeddingModels;
|
|
52
64
|
get connections(): Connections;
|
|
53
65
|
get sync(): Sync;
|
|
66
|
+
get search(): Search;
|
|
54
67
|
get whiteLabels(): WhiteLabels;
|
|
68
|
+
get chat(): Chat;
|
|
55
69
|
get dag(): Dag;
|
|
56
70
|
get entities(): Entities;
|
|
57
71
|
get transformers(): Transformers;
|
|
72
|
+
get cursorDevelopment(): CursorDevelopment;
|
|
58
73
|
}
|
package/dist/Client.js
CHANGED
|
@@ -4,59 +4,84 @@
|
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.AirweaveSDKClient = void 0;
|
|
7
|
-
const Client_1 = require("./api/resources/
|
|
8
|
-
const Client_2 = require("./api/resources/
|
|
9
|
-
const Client_3 = require("./api/resources/
|
|
10
|
-
const Client_4 = require("./api/resources/
|
|
11
|
-
const Client_5 = require("./api/resources/
|
|
12
|
-
const Client_6 = require("./api/resources/
|
|
13
|
-
const Client_7 = require("./api/resources/
|
|
14
|
-
const Client_8 = require("./api/resources/
|
|
15
|
-
const Client_9 = require("./api/resources/
|
|
16
|
-
const Client_10 = require("./api/resources/
|
|
7
|
+
const Client_1 = require("./api/resources/health/client/Client");
|
|
8
|
+
const Client_2 = require("./api/resources/apiKeys/client/Client");
|
|
9
|
+
const Client_3 = require("./api/resources/users/client/Client");
|
|
10
|
+
const Client_4 = require("./api/resources/sources/client/Client");
|
|
11
|
+
const Client_5 = require("./api/resources/destinations/client/Client");
|
|
12
|
+
const Client_6 = require("./api/resources/embeddingModels/client/Client");
|
|
13
|
+
const Client_7 = require("./api/resources/connections/client/Client");
|
|
14
|
+
const Client_8 = require("./api/resources/sync/client/Client");
|
|
15
|
+
const Client_9 = require("./api/resources/search/client/Client");
|
|
16
|
+
const Client_10 = require("./api/resources/whiteLabels/client/Client");
|
|
17
|
+
const Client_11 = require("./api/resources/chat/client/Client");
|
|
18
|
+
const Client_12 = require("./api/resources/dag/client/Client");
|
|
19
|
+
const Client_13 = require("./api/resources/entities/client/Client");
|
|
20
|
+
const Client_14 = require("./api/resources/transformers/client/Client");
|
|
21
|
+
const Client_15 = require("./api/resources/cursorDevelopment/client/Client");
|
|
17
22
|
class AirweaveSDKClient {
|
|
18
23
|
constructor(_options = {}) {
|
|
19
24
|
this._options = _options;
|
|
20
25
|
}
|
|
26
|
+
get health() {
|
|
27
|
+
var _a;
|
|
28
|
+
return ((_a = this._health) !== null && _a !== void 0 ? _a : (this._health = new Client_1.Health(this._options)));
|
|
29
|
+
}
|
|
30
|
+
get apiKeys() {
|
|
31
|
+
var _a;
|
|
32
|
+
return ((_a = this._apiKeys) !== null && _a !== void 0 ? _a : (this._apiKeys = new Client_2.ApiKeys(this._options)));
|
|
33
|
+
}
|
|
21
34
|
get users() {
|
|
22
35
|
var _a;
|
|
23
|
-
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new
|
|
36
|
+
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_3.Users(this._options)));
|
|
24
37
|
}
|
|
25
38
|
get sources() {
|
|
26
39
|
var _a;
|
|
27
|
-
return ((_a = this._sources) !== null && _a !== void 0 ? _a : (this._sources = new
|
|
40
|
+
return ((_a = this._sources) !== null && _a !== void 0 ? _a : (this._sources = new Client_4.Sources(this._options)));
|
|
28
41
|
}
|
|
29
42
|
get destinations() {
|
|
30
43
|
var _a;
|
|
31
|
-
return ((_a = this._destinations) !== null && _a !== void 0 ? _a : (this._destinations = new
|
|
44
|
+
return ((_a = this._destinations) !== null && _a !== void 0 ? _a : (this._destinations = new Client_5.Destinations(this._options)));
|
|
32
45
|
}
|
|
33
46
|
get embeddingModels() {
|
|
34
47
|
var _a;
|
|
35
|
-
return ((_a = this._embeddingModels) !== null && _a !== void 0 ? _a : (this._embeddingModels = new
|
|
48
|
+
return ((_a = this._embeddingModels) !== null && _a !== void 0 ? _a : (this._embeddingModels = new Client_6.EmbeddingModels(this._options)));
|
|
36
49
|
}
|
|
37
50
|
get connections() {
|
|
38
51
|
var _a;
|
|
39
|
-
return ((_a = this._connections) !== null && _a !== void 0 ? _a : (this._connections = new
|
|
52
|
+
return ((_a = this._connections) !== null && _a !== void 0 ? _a : (this._connections = new Client_7.Connections(this._options)));
|
|
40
53
|
}
|
|
41
54
|
get sync() {
|
|
42
55
|
var _a;
|
|
43
|
-
return ((_a = this._sync) !== null && _a !== void 0 ? _a : (this._sync = new
|
|
56
|
+
return ((_a = this._sync) !== null && _a !== void 0 ? _a : (this._sync = new Client_8.Sync(this._options)));
|
|
57
|
+
}
|
|
58
|
+
get search() {
|
|
59
|
+
var _a;
|
|
60
|
+
return ((_a = this._search) !== null && _a !== void 0 ? _a : (this._search = new Client_9.Search(this._options)));
|
|
44
61
|
}
|
|
45
62
|
get whiteLabels() {
|
|
46
63
|
var _a;
|
|
47
|
-
return ((_a = this._whiteLabels) !== null && _a !== void 0 ? _a : (this._whiteLabels = new
|
|
64
|
+
return ((_a = this._whiteLabels) !== null && _a !== void 0 ? _a : (this._whiteLabels = new Client_10.WhiteLabels(this._options)));
|
|
65
|
+
}
|
|
66
|
+
get chat() {
|
|
67
|
+
var _a;
|
|
68
|
+
return ((_a = this._chat) !== null && _a !== void 0 ? _a : (this._chat = new Client_11.Chat(this._options)));
|
|
48
69
|
}
|
|
49
70
|
get dag() {
|
|
50
71
|
var _a;
|
|
51
|
-
return ((_a = this._dag) !== null && _a !== void 0 ? _a : (this._dag = new
|
|
72
|
+
return ((_a = this._dag) !== null && _a !== void 0 ? _a : (this._dag = new Client_12.Dag(this._options)));
|
|
52
73
|
}
|
|
53
74
|
get entities() {
|
|
54
75
|
var _a;
|
|
55
|
-
return ((_a = this._entities) !== null && _a !== void 0 ? _a : (this._entities = new
|
|
76
|
+
return ((_a = this._entities) !== null && _a !== void 0 ? _a : (this._entities = new Client_13.Entities(this._options)));
|
|
56
77
|
}
|
|
57
78
|
get transformers() {
|
|
58
79
|
var _a;
|
|
59
|
-
return ((_a = this._transformers) !== null && _a !== void 0 ? _a : (this._transformers = new
|
|
80
|
+
return ((_a = this._transformers) !== null && _a !== void 0 ? _a : (this._transformers = new Client_14.Transformers(this._options)));
|
|
81
|
+
}
|
|
82
|
+
get cursorDevelopment() {
|
|
83
|
+
var _a;
|
|
84
|
+
return ((_a = this._cursorDevelopment) !== null && _a !== void 0 ? _a : (this._cursorDevelopment = new Client_15.CursorDevelopment(this._options)));
|
|
60
85
|
}
|
|
61
86
|
}
|
|
62
87
|
exports.AirweaveSDKClient = AirweaveSDKClient;
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../environments";
|
|
5
|
+
import * as core from "../../../../core";
|
|
6
|
+
import * as AirweaveSDK from "../../../index";
|
|
7
|
+
export declare namespace ApiKeys {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.AirweaveSDKEnvironment | string>;
|
|
10
|
+
/** Override the x-api-key header */
|
|
11
|
+
apiKey?: core.Supplier<string | undefined>;
|
|
12
|
+
}
|
|
13
|
+
interface RequestOptions {
|
|
14
|
+
/** The maximum time to wait for a response in seconds. */
|
|
15
|
+
timeoutInSeconds?: number;
|
|
16
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
17
|
+
maxRetries?: number;
|
|
18
|
+
/** A hook to abort the request. */
|
|
19
|
+
abortSignal?: AbortSignal;
|
|
20
|
+
/** Override the x-api-key header */
|
|
21
|
+
apiKey?: string | undefined;
|
|
22
|
+
/** Additional headers to include in the request. */
|
|
23
|
+
headers?: Record<string, string>;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export declare class ApiKeys {
|
|
27
|
+
protected readonly _options: ApiKeys.Options;
|
|
28
|
+
constructor(_options?: ApiKeys.Options);
|
|
29
|
+
/**
|
|
30
|
+
* Retrieve all API keys for the current user.
|
|
31
|
+
*
|
|
32
|
+
* Args:
|
|
33
|
+
* ----
|
|
34
|
+
* db (AsyncSession): The database session.
|
|
35
|
+
* skip (int): Number of records to skip for pagination.
|
|
36
|
+
* limit (int): Maximum number of records to return.
|
|
37
|
+
* user (schemas.User): The current user.
|
|
38
|
+
*
|
|
39
|
+
* Returns:
|
|
40
|
+
* -------
|
|
41
|
+
* List[schemas.APIKey]: A list of API keys.
|
|
42
|
+
*
|
|
43
|
+
* @param {AirweaveSDK.ReadApiKeysApiKeysGetRequest} request
|
|
44
|
+
* @param {ApiKeys.RequestOptions} requestOptions - Request-specific configuration.
|
|
45
|
+
*
|
|
46
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* await client.apiKeys.readApiKeys()
|
|
50
|
+
*/
|
|
51
|
+
readApiKeys(request?: AirweaveSDK.ReadApiKeysApiKeysGetRequest, requestOptions?: ApiKeys.RequestOptions): Promise<AirweaveSDK.ApiKey[]>;
|
|
52
|
+
/**
|
|
53
|
+
* Create a new API key for the current user.
|
|
54
|
+
*
|
|
55
|
+
* Returns a temporary plain key for the user to store securely.
|
|
56
|
+
* This is not stored in the database.
|
|
57
|
+
*
|
|
58
|
+
* Args:
|
|
59
|
+
* ----
|
|
60
|
+
* db (AsyncSession): The database session.
|
|
61
|
+
* api_key_in (schemas.APIKeyCreate): The API key creation data.
|
|
62
|
+
* user (schemas.User): The current user.
|
|
63
|
+
*
|
|
64
|
+
* Returns:
|
|
65
|
+
* -------
|
|
66
|
+
* schemas.APIKeyWithPlainKey: The created API key object, including the key.
|
|
67
|
+
*
|
|
68
|
+
* @param {AirweaveSDK.ApiKeyCreate} request
|
|
69
|
+
* @param {ApiKeys.RequestOptions} requestOptions - Request-specific configuration.
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* await client.apiKeys.createApiKey()
|
|
75
|
+
*/
|
|
76
|
+
createApiKey(request?: AirweaveSDK.ApiKeyCreate, requestOptions?: ApiKeys.RequestOptions): Promise<AirweaveSDK.ApiKeyWithPlainKey>;
|
|
77
|
+
/**
|
|
78
|
+
* Delete an API key.
|
|
79
|
+
*
|
|
80
|
+
* Args:
|
|
81
|
+
* ----
|
|
82
|
+
* db (AsyncSession): The database session.
|
|
83
|
+
* id (UUID): The ID of the API key.
|
|
84
|
+
* user (schemas.User): The current user.
|
|
85
|
+
*
|
|
86
|
+
* Returns:
|
|
87
|
+
* -------
|
|
88
|
+
* schemas.APIKey: The revoked API key object.
|
|
89
|
+
*
|
|
90
|
+
* Raises:
|
|
91
|
+
* ------
|
|
92
|
+
* HTTPException: If the API key is not found.
|
|
93
|
+
*
|
|
94
|
+
* @param {AirweaveSDK.DeleteApiKeyApiKeysDeleteRequest} request
|
|
95
|
+
* @param {ApiKeys.RequestOptions} requestOptions - Request-specific configuration.
|
|
96
|
+
*
|
|
97
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
98
|
+
*
|
|
99
|
+
* @example
|
|
100
|
+
* await client.apiKeys.deleteApiKey({
|
|
101
|
+
* id: "id"
|
|
102
|
+
* })
|
|
103
|
+
*/
|
|
104
|
+
deleteApiKey(request: AirweaveSDK.DeleteApiKeyApiKeysDeleteRequest, requestOptions?: ApiKeys.RequestOptions): Promise<AirweaveSDK.ApiKey>;
|
|
105
|
+
/**
|
|
106
|
+
* Retrieve an API key by ID.
|
|
107
|
+
*
|
|
108
|
+
* Args:
|
|
109
|
+
* ----
|
|
110
|
+
* db (AsyncSession): The database session.
|
|
111
|
+
* id (UUID): The ID of the API key.
|
|
112
|
+
* user (schemas.User): The current user.
|
|
113
|
+
*
|
|
114
|
+
* Returns:
|
|
115
|
+
* -------
|
|
116
|
+
* schemas.APIKey: The API key object.
|
|
117
|
+
*
|
|
118
|
+
* Raises:
|
|
119
|
+
* ------
|
|
120
|
+
* HTTPException: If the API key is not found.
|
|
121
|
+
*
|
|
122
|
+
* @param {string} id
|
|
123
|
+
* @param {ApiKeys.RequestOptions} requestOptions - Request-specific configuration.
|
|
124
|
+
*
|
|
125
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
126
|
+
*
|
|
127
|
+
* @example
|
|
128
|
+
* await client.apiKeys.readApiKey("id")
|
|
129
|
+
*/
|
|
130
|
+
readApiKey(id: string, requestOptions?: ApiKeys.RequestOptions): Promise<AirweaveSDK.ApiKey>;
|
|
131
|
+
}
|