@human2human/sdk 0.1.0 → 0.3.0
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 +61 -16
- package/dist/client.d.ts +12 -3
- package/dist/client.js +11 -6
- package/dist/environment.d.ts +1 -1
- package/dist/environment.js +1 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +8 -1
- package/dist/resources/agent/build/index.d.ts +6 -0
- package/dist/resources/agent/build/index.js +6 -0
- package/dist/resources/agent/build/resource-client.d.ts +6 -0
- package/dist/resources/agent/build/resource-client.js +6 -0
- package/dist/resources/agent/build/workflow/index.d.ts +6 -0
- package/dist/resources/agent/build/workflow/index.js +6 -0
- package/dist/resources/agent/build/workflow/resource-client.d.ts +11 -1
- package/dist/resources/agent/build/workflow/resource-client.js +11 -1
- package/dist/resources/agent/index.d.ts +6 -0
- package/dist/resources/agent/index.js +6 -0
- package/dist/resources/agent/resource-client.d.ts +6 -0
- package/dist/resources/agent/resource-client.js +6 -0
- package/dist/resources/auth/index.d.ts +6 -0
- package/dist/resources/auth/index.js +6 -0
- package/dist/resources/auth/login/index.d.ts +6 -0
- package/dist/resources/auth/login/index.js +6 -0
- package/dist/resources/auth/login/resource-client.d.ts +9 -1
- package/dist/resources/auth/login/resource-client.js +9 -1
- package/dist/resources/auth/refresh/index.d.ts +6 -0
- package/dist/resources/auth/refresh/index.js +6 -0
- package/dist/resources/auth/refresh/resource-client.d.ts +9 -1
- package/dist/resources/auth/refresh/resource-client.js +9 -1
- package/dist/resources/auth/resource-client.d.ts +6 -0
- package/dist/resources/auth/resource-client.js +6 -0
- package/dist/resources/chats/index.d.ts +6 -0
- package/dist/resources/chats/index.js +6 -0
- package/dist/resources/chats/resource-client.d.ts +9 -3
- package/dist/resources/chats/resource-client.js +9 -3
- package/dist/resources/feeds/index.d.ts +6 -0
- package/dist/resources/feeds/index.js +6 -0
- package/dist/resources/feeds/items/index.d.ts +6 -0
- package/dist/resources/feeds/items/index.js +6 -0
- package/dist/resources/feeds/items/resource-client.d.ts +10 -0
- package/dist/resources/feeds/items/resource-client.js +10 -0
- package/dist/resources/feeds/resource-client.d.ts +12 -0
- package/dist/resources/feeds/resource-client.js +12 -0
- package/dist/resources/feeds/vector/index.d.ts +6 -0
- package/dist/resources/feeds/vector/index.js +6 -0
- package/dist/resources/feeds/vector/resource-client.d.ts +6 -0
- package/dist/resources/feeds/vector/resource-client.js +6 -0
- package/dist/resources/feeds/vector/search/index.d.ts +6 -0
- package/dist/resources/feeds/vector/search/index.js +6 -0
- package/dist/resources/feeds/vector/search/resource-client.d.ts +8 -0
- package/dist/resources/feeds/vector/search/resource-client.js +8 -0
- package/dist/resources/index.d.ts +2 -1
- package/dist/resources/index.js +3 -2
- package/dist/resources/integrations/api/index.d.ts +6 -0
- package/dist/resources/integrations/api/index.js +6 -0
- package/dist/resources/integrations/api/operations/index.d.ts +6 -0
- package/dist/resources/integrations/api/operations/index.js +6 -0
- package/dist/resources/integrations/api/operations/request-types.d.ts +3 -3
- package/dist/resources/integrations/api/operations/request-types.js +9 -9
- package/dist/resources/integrations/api/operations/resource-client.d.ts +14 -0
- package/dist/resources/integrations/api/operations/resource-client.js +14 -0
- package/dist/resources/integrations/api/resource-client.d.ts +12 -0
- package/dist/resources/integrations/api/resource-client.js +12 -0
- package/dist/resources/integrations/api/secrets/index.d.ts +6 -0
- package/dist/resources/integrations/api/secrets/index.js +6 -0
- package/dist/resources/integrations/api/secrets/request-types.d.ts +1 -1
- package/dist/resources/integrations/api/secrets/request-types.js +3 -3
- package/dist/resources/integrations/api/secrets/resource-client.d.ts +12 -0
- package/dist/resources/integrations/api/secrets/resource-client.js +12 -0
- package/dist/resources/integrations/index.d.ts +6 -0
- package/dist/resources/integrations/index.js +6 -0
- package/dist/resources/integrations/resource-client.d.ts +6 -0
- package/dist/resources/integrations/resource-client.js +6 -0
- package/dist/resources/memory/index.d.ts +5 -0
- package/dist/resources/memory/index.js +42 -0
- package/dist/resources/memory/resource-client.d.ts +10 -0
- package/dist/resources/memory/resource-client.js +20 -0
- package/dist/resources/memory/tables/index.d.ts +7 -0
- package/dist/resources/memory/tables/index.js +43 -0
- package/dist/resources/memory/tables/mutate/index.d.ts +5 -0
- package/dist/resources/memory/tables/mutate/index.js +8 -0
- package/dist/resources/memory/tables/mutate/request-types.d.ts +33 -0
- package/dist/resources/memory/tables/mutate/request-types.js +77 -0
- package/dist/resources/memory/tables/mutate/resource-client.d.ts +17 -0
- package/dist/resources/memory/tables/mutate/resource-client.js +33 -0
- package/dist/resources/memory/tables/query/index.d.ts +5 -0
- package/dist/resources/memory/tables/query/index.js +8 -0
- package/dist/resources/memory/tables/query/request-types.d.ts +37 -0
- package/dist/resources/memory/tables/query/request-types.js +80 -0
- package/dist/resources/memory/tables/query/resource-client.d.ts +17 -0
- package/dist/resources/memory/tables/query/resource-client.js +33 -0
- package/dist/resources/memory/tables/request-types.d.ts +105 -0
- package/dist/resources/memory/tables/request-types.js +171 -0
- package/dist/resources/memory/tables/resource-client.d.ts +47 -0
- package/dist/resources/memory/tables/resource-client.js +144 -0
- package/dist/resources/search-groups/index.d.ts +6 -0
- package/dist/resources/search-groups/index.js +6 -0
- package/dist/resources/search-groups/items/index.d.ts +6 -0
- package/dist/resources/search-groups/items/index.js +6 -0
- package/dist/resources/search-groups/items/resource-client.d.ts +12 -0
- package/dist/resources/search-groups/items/resource-client.js +12 -0
- package/dist/resources/search-groups/resource-client.d.ts +12 -0
- package/dist/resources/search-groups/resource-client.js +12 -0
- package/dist/resources/subscriptions/events/index.d.ts +5 -0
- package/dist/resources/subscriptions/events/index.js +8 -0
- package/dist/resources/subscriptions/events/request-types.d.ts +115 -0
- package/dist/resources/subscriptions/events/request-types.js +179 -0
- package/dist/resources/subscriptions/events/resource-client.d.ts +41 -0
- package/dist/resources/subscriptions/events/resource-client.js +132 -0
- package/dist/resources/subscriptions/index.d.ts +5 -0
- package/dist/resources/subscriptions/index.js +42 -0
- package/dist/resources/subscriptions/resource-client.d.ts +10 -0
- package/dist/resources/subscriptions/resource-client.js +20 -0
- package/dist/resources/tools/code-execution/index.d.ts +6 -0
- package/dist/resources/tools/code-execution/index.js +6 -0
- package/dist/resources/tools/code-execution/request-types.d.ts +2 -2
- package/dist/resources/tools/code-execution/request-types.js +6 -6
- package/dist/resources/tools/code-execution/resource-client.d.ts +9 -1
- package/dist/resources/tools/code-execution/resource-client.js +9 -1
- package/dist/resources/tools/dictionary-search/index.d.ts +6 -0
- package/dist/resources/tools/dictionary-search/index.js +6 -0
- package/dist/resources/tools/dictionary-search/resource-client.d.ts +9 -1
- package/dist/resources/tools/dictionary-search/resource-client.js +9 -1
- package/dist/resources/tools/format/index.d.ts +6 -0
- package/dist/resources/tools/format/index.js +6 -0
- package/dist/resources/tools/format/resource-client.d.ts +9 -1
- package/dist/resources/tools/format/resource-client.js +9 -1
- package/dist/resources/tools/index.d.ts +6 -0
- package/dist/resources/tools/index.js +6 -0
- package/dist/resources/tools/internet-search/index.d.ts +6 -0
- package/dist/resources/tools/internet-search/index.js +6 -0
- package/dist/resources/tools/internet-search/resource-client.d.ts +10 -2
- package/dist/resources/tools/internet-search/resource-client.js +11 -37
- package/dist/resources/tools/memory-query/index.d.ts +6 -0
- package/dist/resources/tools/memory-query/index.js +6 -0
- package/dist/resources/tools/memory-query/resource-client.d.ts +9 -1
- package/dist/resources/tools/memory-query/resource-client.js +9 -1
- package/dist/resources/tools/meta-tagger/index.d.ts +6 -0
- package/dist/resources/tools/meta-tagger/index.js +6 -0
- package/dist/resources/tools/meta-tagger/resource-client.d.ts +9 -1
- package/dist/resources/tools/meta-tagger/resource-client.js +9 -1
- package/dist/resources/tools/resource-client.d.ts +9 -1
- package/dist/resources/tools/resource-client.js +9 -1
- package/dist/resources/tools/standard-llm/index.d.ts +6 -0
- package/dist/resources/tools/standard-llm/index.js +6 -0
- package/dist/resources/tools/standard-llm/resource-client.d.ts +9 -1
- package/dist/resources/tools/standard-llm/resource-client.js +9 -1
- package/dist/resources/tools/structured-output/index.d.ts +6 -0
- package/dist/resources/tools/structured-output/index.js +6 -0
- package/dist/resources/tools/structured-output/resource-client.d.ts +9 -1
- package/dist/resources/tools/structured-output/resource-client.js +9 -1
- package/dist/resources/workflow/index.d.ts +3 -0
- package/dist/resources/workflow/index.js +3 -0
- package/dist/resources/workflow/resource-client.d.ts +3 -0
- package/dist/resources/workflow/resource-client.js +3 -0
- package/dist/resources/workflow/run/index.d.ts +3 -0
- package/dist/resources/workflow/run/index.js +3 -0
- package/dist/resources/workflow/run/resource-client.d.ts +3 -0
- package/dist/resources/workflow/run/resource-client.js +3 -0
- package/dist/resources/workflow/run/trigger/index.d.ts +3 -0
- package/dist/resources/workflow/run/trigger/index.js +3 -0
- package/dist/resources/workflow/run/trigger/resource-client.d.ts +3 -0
- package/dist/resources/workflow/run/trigger/resource-client.js +3 -0
- package/dist/resources/workflows/dispatch/index.d.ts +6 -0
- package/dist/resources/workflows/dispatch/index.js +6 -0
- package/dist/resources/workflows/dispatch/resource-client.d.ts +9 -1
- package/dist/resources/workflows/dispatch/resource-client.js +9 -1
- package/dist/resources/workflows/index.d.ts +9 -0
- package/dist/resources/workflows/index.js +9 -1
- package/dist/resources/workflows/invoke/index.d.ts +6 -0
- package/dist/resources/workflows/invoke/index.js +6 -0
- package/dist/resources/workflows/invoke/resource-client.d.ts +9 -1
- package/dist/resources/workflows/invoke/resource-client.js +9 -1
- package/dist/resources/workflows/request-types.d.ts +148 -0
- package/dist/resources/workflows/request-types.js +218 -0
- package/dist/resources/workflows/resource-client.d.ts +55 -1
- package/dist/resources/workflows/resource-client.js +155 -0
- package/dist/resources/workflows/runs/dispatch/index.d.ts +5 -0
- package/dist/resources/workflows/runs/dispatch/index.js +8 -0
- package/dist/resources/workflows/runs/dispatch/request-types.d.ts +25 -0
- package/dist/resources/workflows/runs/dispatch/request-types.js +70 -0
- package/dist/resources/workflows/runs/dispatch/resource-client.d.ts +17 -0
- package/dist/resources/workflows/runs/dispatch/resource-client.js +30 -0
- package/dist/resources/workflows/runs/index.d.ts +6 -0
- package/dist/resources/workflows/runs/index.js +42 -0
- package/dist/resources/workflows/runs/request-types.d.ts +115 -0
- package/dist/resources/workflows/runs/request-types.js +179 -0
- package/dist/resources/workflows/runs/resource-client.d.ts +44 -0
- package/dist/resources/workflows/runs/resource-client.js +151 -0
- package/dist/resources/workflows/versions/index.d.ts +5 -0
- package/dist/resources/workflows/versions/index.js +8 -0
- package/dist/resources/workflows/versions/request-types.d.ts +188 -0
- package/dist/resources/workflows/versions/request-types.js +250 -0
- package/dist/resources/workflows/versions/resource-client.d.ts +49 -0
- package/dist/resources/workflows/versions/resource-client.js +152 -0
- package/dist/types/index.d.ts +62 -4
- package/dist/types/index.js +6 -0
- package/dist/types/memory-tables-create-body.d.ts +37 -0
- package/dist/types/memory-tables-create-body.js +80 -0
- package/dist/types/memory-tables-create-response.d.ts +37 -0
- package/dist/types/memory-tables-create-response.js +92 -0
- package/dist/types/memory-tables-delete-response.d.ts +37 -0
- package/dist/types/memory-tables-delete-response.js +92 -0
- package/dist/types/memory-tables-get-response.d.ts +37 -0
- package/dist/types/memory-tables-get-response.js +92 -0
- package/dist/types/memory-tables-list-response-item.d.ts +37 -0
- package/dist/types/memory-tables-list-response-item.js +92 -0
- package/dist/types/memory-tables-mutate-create-body-mutation-type-enum.d.ts +7 -0
- package/dist/types/memory-tables-mutate-create-body-mutation-type-enum.js +5 -0
- package/dist/types/memory-tables-mutate-create-body-mutation.d.ts +37 -0
- package/dist/types/memory-tables-mutate-create-body-mutation.js +80 -0
- package/dist/types/memory-tables-mutate-create-body.d.ts +33 -0
- package/dist/types/memory-tables-mutate-create-body.js +77 -0
- package/dist/types/memory-tables-mutate-create-response-data-item.d.ts +29 -0
- package/dist/types/memory-tables-mutate-create-response-data-item.js +76 -0
- package/dist/types/memory-tables-mutate-create-response-errors-item.d.ts +24 -0
- package/dist/types/memory-tables-mutate-create-response-errors-item.js +74 -0
- package/dist/types/memory-tables-mutate-create-response.d.ts +39 -0
- package/dist/types/memory-tables-mutate-create-response.js +90 -0
- package/dist/types/memory-tables-query-create-body.d.ts +37 -0
- package/dist/types/memory-tables-query-create-body.js +80 -0
- package/dist/types/memory-tables-query-create-response-row.d.ts +29 -0
- package/dist/types/memory-tables-query-create-response-row.js +76 -0
- package/dist/types/memory-tables-query-create-response-rows-item.d.ts +29 -0
- package/dist/types/memory-tables-query-create-response-rows-item.js +76 -0
- package/dist/types/memory-tables-query-create-response.d.ts +36 -0
- package/dist/types/memory-tables-query-create-response.js +86 -0
- package/dist/types/subscriptions-events-create-body-consumer-type-enum.d.ts +7 -0
- package/dist/types/subscriptions-events-create-body-consumer-type-enum.js +5 -0
- package/dist/types/subscriptions-events-create-body-producer-type-enum.d.ts +7 -0
- package/dist/types/subscriptions-events-create-body-producer-type-enum.js +5 -0
- package/dist/types/subscriptions-events-create-body.d.ts +47 -0
- package/dist/types/subscriptions-events-create-body.js +88 -0
- package/dist/types/subscriptions-events-create-response-consumer-type-enum.d.ts +7 -0
- package/dist/types/subscriptions-events-create-response-consumer-type-enum.js +5 -0
- package/dist/types/subscriptions-events-create-response-producer-type-enum.d.ts +7 -0
- package/dist/types/subscriptions-events-create-response-producer-type-enum.js +5 -0
- package/dist/types/subscriptions-events-create-response.d.ts +51 -0
- package/dist/types/subscriptions-events-create-response.js +96 -0
- package/dist/types/subscriptions-events-delete-response-consumer-type-enum.d.ts +7 -0
- package/dist/types/subscriptions-events-delete-response-consumer-type-enum.js +5 -0
- package/dist/types/subscriptions-events-delete-response-producer-type-enum.d.ts +7 -0
- package/dist/types/subscriptions-events-delete-response-producer-type-enum.js +5 -0
- package/dist/types/subscriptions-events-delete-response.d.ts +51 -0
- package/dist/types/subscriptions-events-delete-response.js +96 -0
- package/dist/types/subscriptions-events-get-response-consumer-type-enum.d.ts +7 -0
- package/dist/types/subscriptions-events-get-response-consumer-type-enum.js +5 -0
- package/dist/types/subscriptions-events-get-response-producer-type-enum.d.ts +7 -0
- package/dist/types/subscriptions-events-get-response-producer-type-enum.js +5 -0
- package/dist/types/subscriptions-events-get-response.d.ts +51 -0
- package/dist/types/subscriptions-events-get-response.js +96 -0
- package/dist/types/subscriptions-events-list-response-item-consumer-type-enum.d.ts +7 -0
- package/dist/types/subscriptions-events-list-response-item-consumer-type-enum.js +5 -0
- package/dist/types/subscriptions-events-list-response-item-producer-type-enum.d.ts +7 -0
- package/dist/types/subscriptions-events-list-response-item-producer-type-enum.js +5 -0
- package/dist/types/subscriptions-events-list-response-item.d.ts +51 -0
- package/dist/types/subscriptions-events-list-response-item.js +96 -0
- package/dist/types/tools-internet-search-create-response.d.ts +22 -0
- package/dist/types/tools-internet-search-create-response.js +70 -0
- package/dist/types/workflows-create-body.d.ts +42 -0
- package/dist/types/workflows-create-body.js +84 -0
- package/dist/types/workflows-create-response.d.ts +62 -0
- package/dist/types/workflows-create-response.js +100 -0
- package/dist/types/workflows-delete-response.d.ts +62 -0
- package/dist/types/workflows-delete-response.js +100 -0
- package/dist/types/workflows-get-response.d.ts +62 -0
- package/dist/types/workflows-get-response.js +100 -0
- package/dist/types/workflows-list-response-item.d.ts +62 -0
- package/dist/types/workflows-list-response-item.js +100 -0
- package/dist/types/workflows-patch-body.d.ts +37 -0
- package/dist/types/workflows-patch-body.js +80 -0
- package/dist/types/workflows-patch-response.d.ts +62 -0
- package/dist/types/workflows-patch-response.js +100 -0
- package/dist/types/workflows-runs-create-body-execution-type-enum.d.ts +7 -0
- package/dist/types/workflows-runs-create-body-execution-type-enum.js +5 -0
- package/dist/types/workflows-runs-create-body.d.ts +37 -0
- package/dist/types/workflows-runs-create-body.js +80 -0
- package/dist/types/workflows-runs-create-response-status-enum.d.ts +7 -0
- package/dist/types/workflows-runs-create-response-status-enum.js +5 -0
- package/dist/types/workflows-runs-create-response.d.ts +28 -0
- package/dist/types/workflows-runs-create-response.js +86 -0
- package/dist/types/workflows-runs-delete-response-status-enum.d.ts +7 -0
- package/dist/types/workflows-runs-delete-response-status-enum.js +5 -0
- package/dist/types/workflows-runs-delete-response.d.ts +28 -0
- package/dist/types/workflows-runs-delete-response.js +86 -0
- package/dist/types/workflows-runs-dispatch-create-response.d.ts +30 -0
- package/dist/types/workflows-runs-dispatch-create-response.js +74 -0
- package/dist/types/workflows-runs-get-response-status-enum.d.ts +7 -0
- package/dist/types/workflows-runs-get-response-status-enum.js +5 -0
- package/dist/types/workflows-runs-get-response.d.ts +28 -0
- package/dist/types/workflows-runs-get-response.js +86 -0
- package/dist/types/workflows-runs-list-response-item-status-enum.d.ts +7 -0
- package/dist/types/workflows-runs-list-response-item-status-enum.js +5 -0
- package/dist/types/workflows-runs-list-response-item.d.ts +28 -0
- package/dist/types/workflows-runs-list-response-item.js +86 -0
- package/dist/types/workflows-versions-create-body.d.ts +47 -0
- package/dist/types/workflows-versions-create-body.js +88 -0
- package/dist/types/workflows-versions-create-response.d.ts +67 -0
- package/dist/types/workflows-versions-create-response.js +104 -0
- package/dist/types/workflows-versions-delete-response.d.ts +67 -0
- package/dist/types/workflows-versions-delete-response.js +104 -0
- package/dist/types/workflows-versions-get-response.d.ts +67 -0
- package/dist/types/workflows-versions-get-response.js +104 -0
- package/dist/types/workflows-versions-list-response-item.d.ts +67 -0
- package/dist/types/workflows-versions-list-response-item.js +104 -0
- package/dist/types/workflows-versions-patch-body.d.ts +47 -0
- package/dist/types/workflows-versions-patch-body.js +88 -0
- package/dist/types/workflows-versions-patch-response.d.ts +67 -0
- package/dist/types/workflows-versions-patch-response.js +104 -0
- package/package.json +2 -2
|
@@ -6,6 +6,12 @@ import { OperationsClient } from "../../../resources/integrations/api/operations
|
|
|
6
6
|
import * as requests from "../../../resources/integrations/api/request-types";
|
|
7
7
|
import { SecretsClient } from "../../../resources/integrations/api/secrets";
|
|
8
8
|
import * as types from "../../../types";
|
|
9
|
+
/**
|
|
10
|
+
* Generated by Sideko (sideko.dev)
|
|
11
|
+
**/
|
|
12
|
+
/**
|
|
13
|
+
* Generated by Sideko (sideko.dev)
|
|
14
|
+
**/
|
|
9
15
|
export declare class ApiClient extends CoreResourceClient {
|
|
10
16
|
private _secretsLazy?;
|
|
11
17
|
private _operationsLazy?;
|
|
@@ -15,18 +21,24 @@ export declare class ApiClient extends CoreResourceClient {
|
|
|
15
21
|
/**
|
|
16
22
|
* Delete an API integration
|
|
17
23
|
*
|
|
24
|
+
* Delete an API integration by its ID.
|
|
25
|
+
*
|
|
18
26
|
* DELETE /integrations/api/{id}
|
|
19
27
|
*/
|
|
20
28
|
delete(request: requests.DeleteRequest, opts?: RequestOptions): ApiPromise<types.IntegrationsApiDeleteResponse>;
|
|
21
29
|
/**
|
|
22
30
|
* Get an API integration by ID
|
|
23
31
|
*
|
|
32
|
+
* Retrieve a single API integration by its ID.
|
|
33
|
+
*
|
|
24
34
|
* GET /integrations/api/{id}
|
|
25
35
|
*/
|
|
26
36
|
get(request: requests.GetRequest, opts?: RequestOptions): ApiPromise<types.IntegrationsApiGetResponse>;
|
|
27
37
|
/**
|
|
28
38
|
* Create a new API integration
|
|
29
39
|
*
|
|
40
|
+
* Create a new API integration for the authenticated user.
|
|
41
|
+
*
|
|
30
42
|
* POST /integrations/api
|
|
31
43
|
*/
|
|
32
44
|
create(request?: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.IntegrationsApiCreateResponse>;
|
|
@@ -9,6 +9,12 @@ const integrations_api_create_body_1 = require("../../../types/integrations-api-
|
|
|
9
9
|
const integrations_api_create_response_1 = require("../../../types/integrations-api-create-response");
|
|
10
10
|
const integrations_api_delete_response_1 = require("../../../types/integrations-api-delete-response");
|
|
11
11
|
const integrations_api_get_response_1 = require("../../../types/integrations-api-get-response");
|
|
12
|
+
/**
|
|
13
|
+
* Generated by Sideko (sideko.dev)
|
|
14
|
+
**/
|
|
15
|
+
/**
|
|
16
|
+
* Generated by Sideko (sideko.dev)
|
|
17
|
+
**/
|
|
12
18
|
class ApiClient extends make_api_request_js_1.CoreResourceClient {
|
|
13
19
|
constructor(coreClient, opts) {
|
|
14
20
|
super(coreClient, opts);
|
|
@@ -28,6 +34,8 @@ class ApiClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
28
34
|
/**
|
|
29
35
|
* Delete an API integration
|
|
30
36
|
*
|
|
37
|
+
* Delete an API integration by its ID.
|
|
38
|
+
*
|
|
31
39
|
* DELETE /integrations/api/{id}
|
|
32
40
|
*/
|
|
33
41
|
delete(request, opts) {
|
|
@@ -42,6 +50,8 @@ class ApiClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
42
50
|
/**
|
|
43
51
|
* Get an API integration by ID
|
|
44
52
|
*
|
|
53
|
+
* Retrieve a single API integration by its ID.
|
|
54
|
+
*
|
|
45
55
|
* GET /integrations/api/{id}
|
|
46
56
|
*/
|
|
47
57
|
get(request, opts) {
|
|
@@ -56,6 +66,8 @@ class ApiClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
56
66
|
/**
|
|
57
67
|
* Create a new API integration
|
|
58
68
|
*
|
|
69
|
+
* Create a new API integration for the authenticated user.
|
|
70
|
+
*
|
|
59
71
|
* POST /integrations/api
|
|
60
72
|
*/
|
|
61
73
|
create(request = {}, opts) {
|
|
@@ -6,3 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.SecretsClient = void 0;
|
|
7
7
|
var resource_client_1 = require("./resource-client");
|
|
8
8
|
Object.defineProperty(exports, "SecretsClient", { enumerable: true, get: function () { return resource_client_1.SecretsClient; } });
|
|
9
|
+
/**
|
|
10
|
+
* Generated by Sideko (sideko.dev)
|
|
11
|
+
**/
|
|
12
|
+
/**
|
|
13
|
+
* Generated by Sideko (sideko.dev)
|
|
14
|
+
**/
|
|
@@ -46,12 +46,12 @@ const integrations_api_secrets_create_body_1 = require("../../../../types/integr
|
|
|
46
46
|
const SchemaIn$DeleteRequest = z
|
|
47
47
|
.object({
|
|
48
48
|
id: z.string(),
|
|
49
|
-
|
|
49
|
+
secret_id: z.string(),
|
|
50
50
|
})
|
|
51
51
|
.transform((obj) => {
|
|
52
52
|
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
53
53
|
id: "id",
|
|
54
|
-
|
|
54
|
+
secret_id: "secretId",
|
|
55
55
|
});
|
|
56
56
|
});
|
|
57
57
|
/**
|
|
@@ -66,7 +66,7 @@ const SchemaOut$DeleteRequest = z
|
|
|
66
66
|
.transform((obj) => {
|
|
67
67
|
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
68
68
|
id: "id",
|
|
69
|
-
secretId: "
|
|
69
|
+
secretId: "secret_id",
|
|
70
70
|
});
|
|
71
71
|
});
|
|
72
72
|
exports.Schemas$DeleteRequest = {
|
|
@@ -4,23 +4,35 @@
|
|
|
4
4
|
import { ApiPromise, CoreClient, CoreResourceClient, RequestOptions, ResourceClientOptions } from "make-api-request-js";
|
|
5
5
|
import * as requests from "../../../../resources/integrations/api/secrets/request-types";
|
|
6
6
|
import * as types from "../../../../types";
|
|
7
|
+
/**
|
|
8
|
+
* Generated by Sideko (sideko.dev)
|
|
9
|
+
**/
|
|
10
|
+
/**
|
|
11
|
+
* Generated by Sideko (sideko.dev)
|
|
12
|
+
**/
|
|
7
13
|
export declare class SecretsClient extends CoreResourceClient {
|
|
8
14
|
constructor(coreClient: CoreClient, opts: ResourceClientOptions);
|
|
9
15
|
/**
|
|
10
16
|
* Delete an API secret
|
|
11
17
|
*
|
|
18
|
+
* Delete an API secret from the specified API integration.
|
|
19
|
+
*
|
|
12
20
|
* DELETE /integrations/api/{id}/secrets/{secretId}
|
|
13
21
|
*/
|
|
14
22
|
delete(request: requests.DeleteRequest, opts?: RequestOptions): ApiPromise<types.IntegrationsApiSecretsDeleteResponse>;
|
|
15
23
|
/**
|
|
16
24
|
* Get all API secrets for an API integration
|
|
17
25
|
*
|
|
26
|
+
* Retrieve all API secrets configured for the specified API integration.
|
|
27
|
+
*
|
|
18
28
|
* GET /integrations/api/{id}/secrets
|
|
19
29
|
*/
|
|
20
30
|
list(request: requests.ListRequest, opts?: RequestOptions): ApiPromise<types.IntegrationsApiSecretsListResponseItem[]>;
|
|
21
31
|
/**
|
|
22
32
|
* Create a new API secret
|
|
23
33
|
*
|
|
34
|
+
* Create and encrypt a new API secret for the specified API integration.
|
|
35
|
+
*
|
|
24
36
|
* POST /integrations/api/{id}/secrets
|
|
25
37
|
*/
|
|
26
38
|
create(request: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.IntegrationsApiSecretsCreateResponse>;
|
|
@@ -43,6 +43,12 @@ const integrations_api_secrets_create_body_1 = require("../../../../types/integr
|
|
|
43
43
|
const integrations_api_secrets_create_response_1 = require("../../../../types/integrations-api-secrets-create-response");
|
|
44
44
|
const integrations_api_secrets_delete_response_1 = require("../../../../types/integrations-api-secrets-delete-response");
|
|
45
45
|
const integrations_api_secrets_list_response_item_1 = require("../../../../types/integrations-api-secrets-list-response-item");
|
|
46
|
+
/**
|
|
47
|
+
* Generated by Sideko (sideko.dev)
|
|
48
|
+
**/
|
|
49
|
+
/**
|
|
50
|
+
* Generated by Sideko (sideko.dev)
|
|
51
|
+
**/
|
|
46
52
|
class SecretsClient extends make_api_request_js_1.CoreResourceClient {
|
|
47
53
|
constructor(coreClient, opts) {
|
|
48
54
|
super(coreClient, opts);
|
|
@@ -50,6 +56,8 @@ class SecretsClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
50
56
|
/**
|
|
51
57
|
* Delete an API secret
|
|
52
58
|
*
|
|
59
|
+
* Delete an API secret from the specified API integration.
|
|
60
|
+
*
|
|
53
61
|
* DELETE /integrations/api/{id}/secrets/{secretId}
|
|
54
62
|
*/
|
|
55
63
|
delete(request, opts) {
|
|
@@ -64,6 +72,8 @@ class SecretsClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
64
72
|
/**
|
|
65
73
|
* Get all API secrets for an API integration
|
|
66
74
|
*
|
|
75
|
+
* Retrieve all API secrets configured for the specified API integration.
|
|
76
|
+
*
|
|
67
77
|
* GET /integrations/api/{id}/secrets
|
|
68
78
|
*/
|
|
69
79
|
list(request, opts) {
|
|
@@ -78,6 +88,8 @@ class SecretsClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
78
88
|
/**
|
|
79
89
|
* Create a new API secret
|
|
80
90
|
*
|
|
91
|
+
* Create and encrypt a new API secret for the specified API integration.
|
|
92
|
+
*
|
|
81
93
|
* POST /integrations/api/{id}/secrets
|
|
82
94
|
*/
|
|
83
95
|
create(request, opts) {
|
|
@@ -40,3 +40,9 @@ exports.IntegrationsClient = exports.api = void 0;
|
|
|
40
40
|
exports.api = __importStar(require("./api"));
|
|
41
41
|
var resource_client_1 = require("./resource-client");
|
|
42
42
|
Object.defineProperty(exports, "IntegrationsClient", { enumerable: true, get: function () { return resource_client_1.IntegrationsClient; } });
|
|
43
|
+
/**
|
|
44
|
+
* Generated by Sideko (sideko.dev)
|
|
45
|
+
**/
|
|
46
|
+
/**
|
|
47
|
+
* Generated by Sideko (sideko.dev)
|
|
48
|
+
**/
|
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
**/
|
|
4
4
|
import { CoreClient, CoreResourceClient, ResourceClientOptions } from "make-api-request-js";
|
|
5
5
|
import { ApiClient } from "../../resources/integrations/api";
|
|
6
|
+
/**
|
|
7
|
+
* Generated by Sideko (sideko.dev)
|
|
8
|
+
**/
|
|
9
|
+
/**
|
|
10
|
+
* Generated by Sideko (sideko.dev)
|
|
11
|
+
**/
|
|
6
12
|
export declare class IntegrationsClient extends CoreResourceClient {
|
|
7
13
|
private _apiLazy?;
|
|
8
14
|
constructor(coreClient: CoreClient, opts: ResourceClientOptions);
|
|
@@ -5,6 +5,12 @@
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.IntegrationsClient = void 0;
|
|
7
7
|
const make_api_request_js_1 = require("make-api-request-js");
|
|
8
|
+
/**
|
|
9
|
+
* Generated by Sideko (sideko.dev)
|
|
10
|
+
**/
|
|
11
|
+
/**
|
|
12
|
+
* Generated by Sideko (sideko.dev)
|
|
13
|
+
**/
|
|
8
14
|
class IntegrationsClient extends make_api_request_js_1.CoreResourceClient {
|
|
9
15
|
constructor(coreClient, opts) {
|
|
10
16
|
super(coreClient, opts);
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by Sideko (sideko.dev)
|
|
4
|
+
**/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.tables = exports.MemoryClient = void 0;
|
|
40
|
+
var resource_client_1 = require("./resource-client");
|
|
41
|
+
Object.defineProperty(exports, "MemoryClient", { enumerable: true, get: function () { return resource_client_1.MemoryClient; } });
|
|
42
|
+
exports.tables = __importStar(require("./tables"));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Sideko (sideko.dev)
|
|
3
|
+
**/
|
|
4
|
+
import { CoreClient, CoreResourceClient, ResourceClientOptions } from "make-api-request-js";
|
|
5
|
+
import { TablesClient } from "../../resources/memory/tables";
|
|
6
|
+
export declare class MemoryClient extends CoreResourceClient {
|
|
7
|
+
private _tablesLazy?;
|
|
8
|
+
constructor(coreClient: CoreClient, opts: ResourceClientOptions);
|
|
9
|
+
get tables(): TablesClient;
|
|
10
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by Sideko (sideko.dev)
|
|
4
|
+
**/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.MemoryClient = void 0;
|
|
7
|
+
const make_api_request_js_1 = require("make-api-request-js");
|
|
8
|
+
class MemoryClient extends make_api_request_js_1.CoreResourceClient {
|
|
9
|
+
constructor(coreClient, opts) {
|
|
10
|
+
super(coreClient, opts);
|
|
11
|
+
if (this._opts.lazyLoad === false) {
|
|
12
|
+
this.tables;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
get tables() {
|
|
16
|
+
var _a;
|
|
17
|
+
return ((_a = this._tablesLazy) !== null && _a !== void 0 ? _a : (this._tablesLazy = new (require("./tables").TablesClient)(this._client, this._opts)));
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.MemoryClient = MemoryClient;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by Sideko (sideko.dev)
|
|
4
|
+
**/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.TablesClient = exports.query = exports.mutate = void 0;
|
|
40
|
+
exports.mutate = __importStar(require("./mutate"));
|
|
41
|
+
exports.query = __importStar(require("./query"));
|
|
42
|
+
var resource_client_1 = require("./resource-client");
|
|
43
|
+
Object.defineProperty(exports, "TablesClient", { enumerable: true, get: function () { return resource_client_1.TablesClient; } });
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by Sideko (sideko.dev)
|
|
4
|
+
**/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.MutateClient = void 0;
|
|
7
|
+
var resource_client_1 = require("./resource-client");
|
|
8
|
+
Object.defineProperty(exports, "MutateClient", { enumerable: true, get: function () { return resource_client_1.MutateClient; } });
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Sideko (sideko.dev)
|
|
3
|
+
**/
|
|
4
|
+
import * as z from "zod";
|
|
5
|
+
import { External$MemoryTablesMutateCreateBodyMutation, MemoryTablesMutateCreateBodyMutation } from "../../../../types/memory-tables-mutate-create-body-mutation";
|
|
6
|
+
/**
|
|
7
|
+
* CreateRequest
|
|
8
|
+
*/
|
|
9
|
+
export type CreateRequest = {
|
|
10
|
+
/**
|
|
11
|
+
* The mutation to execute
|
|
12
|
+
*/
|
|
13
|
+
mutation: MemoryTablesMutateCreateBodyMutation;
|
|
14
|
+
/**
|
|
15
|
+
* The ID of the memory table to mutate
|
|
16
|
+
*/
|
|
17
|
+
tableId: string;
|
|
18
|
+
[additionalProperty: string]: MemoryTablesMutateCreateBodyMutation | string | any | null | undefined;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* @internal
|
|
22
|
+
* CreateRequest without any key transformation, this is what
|
|
23
|
+
* we expect to come in as network data
|
|
24
|
+
*/
|
|
25
|
+
export type External$CreateRequest = {
|
|
26
|
+
mutation: External$MemoryTablesMutateCreateBodyMutation;
|
|
27
|
+
table_id: string;
|
|
28
|
+
[additionalProperty: string]: External$MemoryTablesMutateCreateBodyMutation | string | External$CreateRequest | null | undefined;
|
|
29
|
+
};
|
|
30
|
+
export declare const Schemas$CreateRequest: {
|
|
31
|
+
in: z.ZodType<CreateRequest, z.ZodTypeDef, unknown>;
|
|
32
|
+
out: z.ZodType<External$CreateRequest, z.ZodTypeDef, CreateRequest>;
|
|
33
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by Sideko (sideko.dev)
|
|
4
|
+
**/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.Schemas$CreateRequest = void 0;
|
|
40
|
+
const make_api_request_js_1 = require("make-api-request-js");
|
|
41
|
+
const z = __importStar(require("zod"));
|
|
42
|
+
const memory_tables_mutate_create_body_mutation_1 = require("../../../../types/memory-tables-mutate-create-body-mutation");
|
|
43
|
+
/**
|
|
44
|
+
* Takes network data, validates it, and transforms keys to match typescript object CreateRequest
|
|
45
|
+
*/
|
|
46
|
+
const SchemaIn$CreateRequest = z
|
|
47
|
+
.object({
|
|
48
|
+
mutation: memory_tables_mutate_create_body_mutation_1.Schemas$MemoryTablesMutateCreateBodyMutation.in,
|
|
49
|
+
table_id: z.string(),
|
|
50
|
+
})
|
|
51
|
+
.catchall(make_api_request_js_1.zodRequiredAny)
|
|
52
|
+
.transform((obj) => {
|
|
53
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
54
|
+
mutation: "mutation",
|
|
55
|
+
table_id: "tableId",
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
/**
|
|
59
|
+
* @internal
|
|
60
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$CreateRequest
|
|
61
|
+
*/
|
|
62
|
+
const SchemaOut$CreateRequest = z
|
|
63
|
+
.object({
|
|
64
|
+
mutation: memory_tables_mutate_create_body_mutation_1.Schemas$MemoryTablesMutateCreateBodyMutation.out,
|
|
65
|
+
tableId: z.string(),
|
|
66
|
+
})
|
|
67
|
+
.catchall(make_api_request_js_1.zodRequiredAny)
|
|
68
|
+
.transform((obj) => {
|
|
69
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
70
|
+
mutation: "mutation",
|
|
71
|
+
tableId: "table_id",
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
exports.Schemas$CreateRequest = {
|
|
75
|
+
in: SchemaIn$CreateRequest,
|
|
76
|
+
out: SchemaOut$CreateRequest,
|
|
77
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Sideko (sideko.dev)
|
|
3
|
+
**/
|
|
4
|
+
import { ApiPromise, CoreClient, CoreResourceClient, RequestOptions, ResourceClientOptions } from "make-api-request-js";
|
|
5
|
+
import * as requests from "../../../../resources/memory/tables/mutate/request-types";
|
|
6
|
+
import * as types from "../../../../types";
|
|
7
|
+
export declare class MutateClient extends CoreResourceClient {
|
|
8
|
+
constructor(coreClient: CoreClient, opts: ResourceClientOptions);
|
|
9
|
+
/**
|
|
10
|
+
* Mutate a memory table
|
|
11
|
+
*
|
|
12
|
+
* Execute a mutation (create, update, upsert, or delete) against a memory table.
|
|
13
|
+
*
|
|
14
|
+
* POST /memory/tables/mutate
|
|
15
|
+
*/
|
|
16
|
+
create(request: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.MemoryTablesMutateCreateResponse>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by Sideko (sideko.dev)
|
|
4
|
+
**/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.MutateClient = void 0;
|
|
7
|
+
const make_api_request_js_1 = require("make-api-request-js");
|
|
8
|
+
const memory_tables_mutate_create_body_1 = require("../../../../types/memory-tables-mutate-create-body");
|
|
9
|
+
const memory_tables_mutate_create_response_1 = require("../../../../types/memory-tables-mutate-create-response");
|
|
10
|
+
class MutateClient extends make_api_request_js_1.CoreResourceClient {
|
|
11
|
+
constructor(coreClient, opts) {
|
|
12
|
+
super(coreClient, opts);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Mutate a memory table
|
|
16
|
+
*
|
|
17
|
+
* Execute a mutation (create, update, upsert, or delete) against a memory table.
|
|
18
|
+
*
|
|
19
|
+
* POST /memory/tables/mutate
|
|
20
|
+
*/
|
|
21
|
+
create(request, opts) {
|
|
22
|
+
return this._client.makeRequest({
|
|
23
|
+
method: "post",
|
|
24
|
+
path: "/memory/tables/mutate",
|
|
25
|
+
auth: ["ApiKeyAuth", "BearerAuth"],
|
|
26
|
+
contentType: "application/json",
|
|
27
|
+
body: memory_tables_mutate_create_body_1.Schemas$MemoryTablesMutateCreateBody.out.parse(request),
|
|
28
|
+
responseSchema: memory_tables_mutate_create_response_1.Schemas$MemoryTablesMutateCreateResponse.in,
|
|
29
|
+
opts,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.MutateClient = MutateClient;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by Sideko (sideko.dev)
|
|
4
|
+
**/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.QueryClient = void 0;
|
|
7
|
+
var resource_client_1 = require("./resource-client");
|
|
8
|
+
Object.defineProperty(exports, "QueryClient", { enumerable: true, get: function () { return resource_client_1.QueryClient; } });
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Sideko (sideko.dev)
|
|
3
|
+
**/
|
|
4
|
+
import * as z from "zod";
|
|
5
|
+
/**
|
|
6
|
+
* CreateRequest
|
|
7
|
+
*/
|
|
8
|
+
export type CreateRequest = {
|
|
9
|
+
/**
|
|
10
|
+
* Optional query modifiers (limit, offset, order, etc.)
|
|
11
|
+
*/
|
|
12
|
+
modifiers?: Record<string, any | undefined> | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* The data query to execute
|
|
15
|
+
*/
|
|
16
|
+
query: Record<string, any | undefined>;
|
|
17
|
+
/**
|
|
18
|
+
* The ID of the memory table to query
|
|
19
|
+
*/
|
|
20
|
+
tableId: string;
|
|
21
|
+
[additionalProperty: string]: (Record<string, any | undefined> | undefined) | Record<string, any | undefined> | string | any | null | undefined;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* @internal
|
|
25
|
+
* CreateRequest without any key transformation, this is what
|
|
26
|
+
* we expect to come in as network data
|
|
27
|
+
*/
|
|
28
|
+
export type External$CreateRequest = {
|
|
29
|
+
modifiers?: Record<string, any | undefined> | undefined;
|
|
30
|
+
query: Record<string, any | undefined>;
|
|
31
|
+
table_id: string;
|
|
32
|
+
[additionalProperty: string]: (Record<string, any | undefined> | undefined) | Record<string, any | undefined> | string | External$CreateRequest | null | undefined;
|
|
33
|
+
};
|
|
34
|
+
export declare const Schemas$CreateRequest: {
|
|
35
|
+
in: z.ZodType<CreateRequest, z.ZodTypeDef, unknown>;
|
|
36
|
+
out: z.ZodType<External$CreateRequest, z.ZodTypeDef, CreateRequest>;
|
|
37
|
+
};
|