@human2human/sdk 0.3.0 → 0.4.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 +23 -6
- package/dist/client.d.ts +6 -0
- package/dist/client.js +6 -0
- package/dist/environment.d.ts +1 -1
- package/dist/environment.js +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/resources/agent/build/index.d.ts +3 -0
- package/dist/resources/agent/build/index.js +3 -0
- package/dist/resources/agent/build/resource-client.d.ts +3 -0
- package/dist/resources/agent/build/resource-client.js +3 -0
- package/dist/resources/agent/build/workflow/index.d.ts +3 -0
- package/dist/resources/agent/build/workflow/index.js +3 -0
- package/dist/resources/agent/build/workflow/resource-client.d.ts +3 -0
- package/dist/resources/agent/build/workflow/resource-client.js +3 -0
- package/dist/resources/agent/history/index.d.ts +5 -0
- package/dist/resources/agent/history/index.js +8 -0
- package/dist/resources/agent/history/request-types.d.ts +30 -0
- package/dist/resources/agent/history/request-types.js +74 -0
- package/dist/resources/agent/history/resource-client.d.ts +17 -0
- package/dist/resources/agent/history/resource-client.js +78 -0
- package/dist/resources/agent/index.d.ts +5 -0
- package/dist/resources/agent/index.js +5 -1
- package/dist/resources/agent/request-types.d.ts +68 -0
- package/dist/resources/agent/request-types.js +117 -0
- package/dist/resources/agent/resource-client.d.ts +25 -1
- package/dist/resources/agent/resource-client.js +87 -0
- package/dist/resources/auth/index.d.ts +3 -0
- package/dist/resources/auth/index.js +3 -0
- package/dist/resources/auth/login/index.d.ts +3 -0
- package/dist/resources/auth/login/index.js +3 -0
- package/dist/resources/auth/login/resource-client.d.ts +3 -0
- package/dist/resources/auth/login/resource-client.js +3 -0
- package/dist/resources/auth/refresh/index.d.ts +3 -0
- package/dist/resources/auth/refresh/index.js +3 -0
- package/dist/resources/auth/refresh/resource-client.d.ts +3 -0
- package/dist/resources/auth/refresh/resource-client.js +3 -0
- package/dist/resources/auth/resource-client.d.ts +3 -0
- package/dist/resources/auth/resource-client.js +3 -0
- package/dist/resources/chats/index.d.ts +4 -1
- package/dist/resources/chats/index.js +3 -0
- package/dist/resources/chats/request-types.d.ts +0 -44
- package/dist/resources/chats/request-types.js +1 -73
- package/dist/resources/chats/resource-client.d.ts +3 -16
- package/dist/resources/chats/resource-client.js +3 -86
- package/dist/resources/feeds/index.d.ts +3 -1
- package/dist/resources/feeds/index.js +4 -2
- package/dist/resources/feeds/items/index.d.ts +3 -0
- package/dist/resources/feeds/items/index.js +3 -0
- package/dist/resources/feeds/items/resource-client.d.ts +3 -0
- package/dist/resources/feeds/items/resource-client.js +3 -0
- package/dist/resources/feeds/resource-client.d.ts +3 -3
- package/dist/resources/feeds/resource-client.js +3 -5
- package/dist/resources/index.d.ts +1 -0
- package/dist/resources/index.js +2 -1
- package/dist/resources/integrations/api/index.d.ts +3 -0
- package/dist/resources/integrations/api/index.js +3 -0
- package/dist/resources/integrations/api/operations/index.d.ts +3 -0
- package/dist/resources/integrations/api/operations/index.js +3 -0
- package/dist/resources/integrations/api/operations/resource-client.d.ts +3 -0
- package/dist/resources/integrations/api/operations/resource-client.js +3 -0
- package/dist/resources/integrations/api/resource-client.d.ts +3 -0
- package/dist/resources/integrations/api/resource-client.js +3 -0
- package/dist/resources/integrations/api/secrets/index.d.ts +3 -0
- package/dist/resources/integrations/api/secrets/index.js +3 -0
- package/dist/resources/integrations/api/secrets/resource-client.d.ts +3 -0
- package/dist/resources/integrations/api/secrets/resource-client.js +3 -0
- package/dist/resources/integrations/index.d.ts +3 -0
- package/dist/resources/integrations/index.js +3 -0
- package/dist/resources/integrations/resource-client.d.ts +3 -0
- package/dist/resources/integrations/resource-client.js +3 -0
- package/dist/resources/memory/index.d.ts +3 -0
- package/dist/resources/memory/index.js +3 -0
- package/dist/resources/memory/resource-client.d.ts +3 -0
- package/dist/resources/memory/resource-client.js +3 -0
- package/dist/resources/memory/tables/index.d.ts +3 -0
- package/dist/resources/memory/tables/index.js +3 -0
- package/dist/resources/memory/tables/mutate/index.d.ts +3 -0
- package/dist/resources/memory/tables/mutate/index.js +3 -0
- package/dist/resources/memory/tables/mutate/resource-client.d.ts +3 -0
- package/dist/resources/memory/tables/mutate/resource-client.js +3 -0
- package/dist/resources/memory/tables/query/index.d.ts +3 -0
- package/dist/resources/memory/tables/query/index.js +3 -0
- package/dist/resources/memory/tables/query/resource-client.d.ts +3 -0
- package/dist/resources/memory/tables/query/resource-client.js +3 -0
- package/dist/resources/memory/tables/resource-client.d.ts +3 -0
- package/dist/resources/memory/tables/resource-client.js +3 -0
- package/dist/resources/search-groups/index.d.ts +3 -0
- package/dist/resources/search-groups/index.js +3 -0
- package/dist/resources/search-groups/items/index.d.ts +3 -0
- package/dist/resources/search-groups/items/index.js +3 -0
- package/dist/resources/search-groups/items/resource-client.d.ts +3 -0
- package/dist/resources/search-groups/items/resource-client.js +3 -0
- package/dist/resources/search-groups/resource-client.d.ts +3 -0
- package/dist/resources/search-groups/resource-client.js +3 -0
- package/dist/resources/subscriptions/events/index.d.ts +3 -0
- package/dist/resources/subscriptions/events/index.js +3 -0
- package/dist/resources/subscriptions/events/resource-client.d.ts +3 -0
- package/dist/resources/subscriptions/events/resource-client.js +3 -0
- package/dist/resources/subscriptions/index.d.ts +3 -0
- package/dist/resources/subscriptions/index.js +3 -0
- package/dist/resources/subscriptions/resource-client.d.ts +3 -0
- package/dist/resources/subscriptions/resource-client.js +3 -0
- package/dist/resources/tools/code-execution/index.d.ts +3 -0
- package/dist/resources/tools/code-execution/index.js +3 -0
- package/dist/resources/tools/code-execution/request-types.d.ts +7 -2
- package/dist/resources/tools/code-execution/request-types.js +4 -0
- package/dist/resources/tools/code-execution/resource-client.d.ts +3 -0
- package/dist/resources/tools/code-execution/resource-client.js +3 -0
- package/dist/resources/tools/dictionary-search/index.d.ts +3 -0
- package/dist/resources/tools/dictionary-search/index.js +3 -0
- package/dist/resources/tools/dictionary-search/resource-client.d.ts +3 -0
- package/dist/resources/tools/dictionary-search/resource-client.js +3 -0
- package/dist/resources/tools/format/index.d.ts +3 -0
- package/dist/resources/tools/format/index.js +3 -0
- package/dist/resources/tools/format/request-types.d.ts +5 -2
- package/dist/resources/tools/format/request-types.js +5 -0
- package/dist/resources/tools/format/resource-client.d.ts +3 -0
- package/dist/resources/tools/format/resource-client.js +3 -0
- package/dist/resources/tools/index.d.ts +3 -0
- package/dist/resources/tools/index.js +3 -0
- package/dist/resources/tools/internet-search/index.d.ts +3 -0
- package/dist/resources/tools/internet-search/index.js +3 -0
- package/dist/resources/tools/internet-search/request-types.d.ts +30 -0
- package/dist/resources/tools/internet-search/request-types.js +24 -0
- package/dist/resources/tools/internet-search/resource-client.d.ts +3 -0
- package/dist/resources/tools/internet-search/resource-client.js +3 -0
- package/dist/resources/tools/memory-query/index.d.ts +3 -0
- package/dist/resources/tools/memory-query/index.js +3 -0
- package/dist/resources/tools/memory-query/resource-client.d.ts +3 -0
- package/dist/resources/tools/memory-query/resource-client.js +3 -0
- package/dist/resources/tools/meta-tagger/index.d.ts +3 -0
- package/dist/resources/tools/meta-tagger/index.js +3 -0
- package/dist/resources/tools/meta-tagger/resource-client.d.ts +3 -0
- package/dist/resources/tools/meta-tagger/resource-client.js +3 -0
- package/dist/resources/tools/resource-client.d.ts +3 -0
- package/dist/resources/tools/resource-client.js +3 -0
- package/dist/resources/tools/standard-llm/index.d.ts +3 -0
- package/dist/resources/tools/standard-llm/index.js +3 -0
- package/dist/resources/tools/standard-llm/request-types.d.ts +32 -2
- package/dist/resources/tools/standard-llm/request-types.js +24 -0
- package/dist/resources/tools/standard-llm/resource-client.d.ts +3 -0
- package/dist/resources/tools/standard-llm/resource-client.js +3 -0
- package/dist/resources/tools/structured-output/index.d.ts +3 -0
- package/dist/resources/tools/structured-output/index.js +3 -0
- package/dist/resources/tools/structured-output/request-types.d.ts +3 -0
- package/dist/resources/tools/structured-output/request-types.js +5 -0
- package/dist/resources/tools/structured-output/resource-client.d.ts +3 -0
- package/dist/resources/tools/structured-output/resource-client.js +3 -0
- package/dist/resources/workflows/dispatch/index.d.ts +3 -0
- package/dist/resources/workflows/dispatch/index.js +3 -0
- package/dist/resources/workflows/dispatch/resource-client.d.ts +3 -0
- package/dist/resources/workflows/dispatch/resource-client.js +3 -0
- package/dist/resources/workflows/index.d.ts +3 -0
- package/dist/resources/workflows/index.js +3 -0
- package/dist/resources/workflows/invoke/index.d.ts +3 -0
- package/dist/resources/workflows/invoke/index.js +3 -0
- package/dist/resources/workflows/invoke/resource-client.d.ts +3 -0
- package/dist/resources/workflows/invoke/resource-client.js +3 -0
- package/dist/resources/workflows/request-types.d.ts +7 -12
- package/dist/resources/workflows/request-types.js +4 -8
- package/dist/resources/workflows/resource-client.d.ts +3 -0
- package/dist/resources/workflows/resource-client.js +3 -0
- package/dist/resources/workflows/runs/dispatch/index.d.ts +3 -0
- package/dist/resources/workflows/runs/dispatch/index.js +3 -0
- package/dist/resources/workflows/runs/dispatch/resource-client.d.ts +3 -0
- package/dist/resources/workflows/runs/dispatch/resource-client.js +3 -0
- package/dist/resources/workflows/runs/index.d.ts +3 -0
- package/dist/resources/workflows/runs/index.js +3 -0
- package/dist/resources/workflows/runs/resource-client.d.ts +3 -0
- package/dist/resources/workflows/runs/resource-client.js +3 -0
- package/dist/resources/workflows/versions/index.d.ts +4 -0
- package/dist/resources/workflows/versions/index.js +38 -1
- package/dist/resources/workflows/versions/request-types.d.ts +10 -24
- package/dist/resources/workflows/versions/request-types.js +5 -16
- package/dist/resources/workflows/versions/resource-client.d.ts +6 -0
- package/dist/resources/workflows/versions/resource-client.js +10 -0
- package/dist/resources/workflows/versions/tasks/index.d.ts +5 -0
- package/dist/resources/workflows/versions/tasks/index.js +8 -0
- package/dist/resources/workflows/versions/tasks/request-types.d.ts +177 -0
- package/dist/resources/workflows/versions/tasks/request-types.js +241 -0
- package/dist/resources/workflows/versions/tasks/resource-client.d.ts +41 -0
- package/dist/resources/workflows/versions/tasks/resource-client.js +87 -0
- package/dist/resources/workspace/index.d.ts +5 -0
- package/dist/resources/workspace/index.js +42 -0
- package/dist/resources/workspace/resource-client.d.ts +10 -0
- package/dist/resources/workspace/resource-client.js +20 -0
- package/dist/resources/workspace/variables/index.d.ts +5 -0
- package/dist/resources/workspace/variables/index.js +8 -0
- package/dist/resources/workspace/variables/request-types.d.ts +96 -0
- package/dist/resources/workspace/variables/request-types.js +176 -0
- package/dist/resources/workspace/variables/resource-client.d.ts +41 -0
- package/dist/resources/workspace/variables/resource-client.js +162 -0
- package/dist/types/agent-create-body.d.ts +47 -0
- package/dist/types/agent-create-body.js +88 -0
- package/dist/types/agent-create-response-messages-item-role-enum.d.ts +7 -0
- package/dist/types/agent-create-response-messages-item-role-enum.js +5 -0
- package/dist/types/agent-create-response-messages-item.d.ts +24 -0
- package/dist/types/agent-create-response-messages-item.js +74 -0
- package/dist/types/agent-create-response.d.ts +41 -0
- package/dist/types/agent-create-response.js +83 -0
- package/dist/types/agent-history-list-response-chats-item.d.ts +30 -0
- package/dist/types/agent-history-list-response-chats-item.js +86 -0
- package/dist/types/agent-history-list-response.d.ts +23 -0
- package/dist/types/agent-history-list-response.js +71 -0
- package/dist/types/agent-list-response-messages-item-role-enum.d.ts +7 -0
- package/dist/types/agent-list-response-messages-item-role-enum.js +5 -0
- package/dist/types/agent-list-response-messages-item.d.ts +24 -0
- package/dist/types/agent-list-response-messages-item.js +74 -0
- package/dist/types/agent-list-response.d.ts +31 -0
- package/dist/types/agent-list-response.js +75 -0
- package/dist/types/feeds-create-body.d.ts +2 -6
- package/dist/types/feeds-create-body.js +4 -16
- package/dist/types/index.d.ts +34 -15
- package/dist/types/index.js +3 -0
- package/dist/types/tools-code-execution-create-body.d.ts +7 -2
- package/dist/types/tools-code-execution-create-body.js +4 -0
- package/dist/types/tools-format-create-body-params.d.ts +52 -0
- package/dist/types/tools-format-create-body-params.js +92 -0
- package/dist/types/tools-format-create-body.d.ts +5 -2
- package/dist/types/tools-format-create-body.js +5 -0
- package/dist/types/tools-internet-search-create-body-messages-item.d.ts +4 -4
- package/dist/types/tools-internet-search-create-body-messages-item.js +4 -4
- package/dist/types/tools-internet-search-create-body.d.ts +30 -0
- package/dist/types/tools-internet-search-create-body.js +24 -0
- package/dist/types/tools-standard-llm-create-body-messages-item.d.ts +4 -4
- package/dist/types/tools-standard-llm-create-body-messages-item.js +4 -4
- package/dist/types/tools-standard-llm-create-body.d.ts +32 -2
- package/dist/types/tools-standard-llm-create-body.js +24 -0
- package/dist/types/tools-structured-output-create-body-params.d.ts +52 -0
- package/dist/types/tools-structured-output-create-body-params.js +92 -0
- package/dist/types/tools-structured-output-create-body.d.ts +3 -0
- package/dist/types/tools-structured-output-create-body.js +5 -0
- package/dist/types/workflows-create-body.d.ts +7 -12
- package/dist/types/workflows-create-body.js +4 -8
- package/dist/types/workflows-create-response-versions-item.d.ts +67 -0
- package/dist/types/workflows-create-response-versions-item.js +104 -0
- package/dist/types/workflows-create-response.d.ts +17 -16
- package/dist/types/workflows-create-response.js +23 -16
- package/dist/types/workflows-dispatch-create-body.d.ts +2 -2
- package/dist/types/workflows-dispatch-create-body.js +4 -4
- package/dist/types/workflows-versions-create-body-tasks-item.d.ts +72 -0
- package/dist/types/workflows-versions-create-body-tasks-item.js +126 -0
- package/dist/types/workflows-versions-create-body.d.ts +8 -12
- package/dist/types/workflows-versions-create-body.js +5 -8
- package/dist/types/workflows-versions-get-response-origin.d.ts +62 -0
- package/dist/types/workflows-versions-get-response-origin.js +100 -0
- package/dist/types/workflows-versions-get-response-tasks-item-tool.d.ts +26 -0
- package/dist/types/workflows-versions-get-response-tasks-item-tool.js +78 -0
- package/dist/types/workflows-versions-get-response-tasks-item.d.ts +73 -0
- package/dist/types/workflows-versions-get-response-tasks-item.js +129 -0
- package/dist/types/workflows-versions-get-response.d.ts +25 -18
- package/dist/types/workflows-versions-get-response.js +28 -18
- package/dist/types/workflows-versions-patch-body.d.ts +2 -12
- package/dist/types/workflows-versions-patch-body.js +0 -8
- package/dist/types/workflows-versions-tasks-create-body.d.ts +52 -0
- package/dist/types/workflows-versions-tasks-create-body.js +92 -0
- package/dist/types/workflows-versions-tasks-create-response.d.ts +72 -0
- package/dist/types/workflows-versions-tasks-create-response.js +126 -0
- package/dist/types/workflows-versions-tasks-delete-response.d.ts +72 -0
- package/dist/types/workflows-versions-tasks-delete-response.js +126 -0
- package/dist/types/workflows-versions-tasks-get-response-tool.d.ts +26 -0
- package/dist/types/workflows-versions-tasks-get-response-tool.js +78 -0
- package/dist/types/workflows-versions-tasks-get-response.d.ts +73 -0
- package/dist/types/workflows-versions-tasks-get-response.js +129 -0
- package/dist/types/workflows-versions-tasks-patch-body-type-enum.d.ts +7 -0
- package/dist/types/workflows-versions-tasks-patch-body-type-enum.js +5 -0
- package/dist/types/workflows-versions-tasks-patch-body.d.ts +62 -0
- package/dist/types/workflows-versions-tasks-patch-body.js +112 -0
- package/dist/types/workflows-versions-tasks-patch-response.d.ts +72 -0
- package/dist/types/workflows-versions-tasks-patch-response.js +126 -0
- package/dist/types/workspace-variables-create-body.d.ts +32 -0
- package/dist/types/workspace-variables-create-body.js +90 -0
- package/dist/types/workspace-variables-create-response.d.ts +38 -0
- package/dist/types/workspace-variables-create-response.js +102 -0
- package/dist/types/workspace-variables-delete-body.d.ts +22 -0
- package/dist/types/workspace-variables-delete-body.js +70 -0
- package/dist/types/workspace-variables-delete-response.d.ts +26 -0
- package/dist/types/workspace-variables-delete-response.js +78 -0
- package/dist/types/workspace-variables-list-response-item.d.ts +38 -0
- package/dist/types/workspace-variables-list-response-item.js +102 -0
- package/dist/types/workspace-variables-patch-body.d.ts +34 -0
- package/dist/types/workspace-variables-patch-body.js +94 -0
- package/dist/types/workspace-variables-patch-response.d.ts +38 -0
- package/dist/types/workspace-variables-patch-response.js +102 -0
- package/package.json +1 -1
|
@@ -10,6 +10,9 @@ import * as types from "../../../types";
|
|
|
10
10
|
/**
|
|
11
11
|
* Generated by Sideko (sideko.dev)
|
|
12
12
|
**/
|
|
13
|
+
/**
|
|
14
|
+
* Generated by Sideko (sideko.dev)
|
|
15
|
+
**/
|
|
13
16
|
export declare class DispatchClient extends CoreResourceClient {
|
|
14
17
|
constructor(coreClient: CoreClient, opts: ResourceClientOptions);
|
|
15
18
|
/**
|
|
@@ -13,6 +13,9 @@ const workflows_dispatch_create_response_1 = require("../../../types/workflows-d
|
|
|
13
13
|
/**
|
|
14
14
|
* Generated by Sideko (sideko.dev)
|
|
15
15
|
**/
|
|
16
|
+
/**
|
|
17
|
+
* Generated by Sideko (sideko.dev)
|
|
18
|
+
**/
|
|
16
19
|
class DispatchClient extends make_api_request_js_1.CoreResourceClient {
|
|
17
20
|
constructor(coreClient, opts) {
|
|
18
21
|
super(coreClient, opts);
|
|
@@ -10,6 +10,9 @@ import * as types from "../../../types";
|
|
|
10
10
|
/**
|
|
11
11
|
* Generated by Sideko (sideko.dev)
|
|
12
12
|
**/
|
|
13
|
+
/**
|
|
14
|
+
* Generated by Sideko (sideko.dev)
|
|
15
|
+
**/
|
|
13
16
|
export declare class InvokeClient extends CoreResourceClient {
|
|
14
17
|
constructor(coreClient: CoreClient, opts: ResourceClientOptions);
|
|
15
18
|
/**
|
|
@@ -13,6 +13,9 @@ const workflows_invoke_create_response_1 = require("../../../types/workflows-inv
|
|
|
13
13
|
/**
|
|
14
14
|
* Generated by Sideko (sideko.dev)
|
|
15
15
|
**/
|
|
16
|
+
/**
|
|
17
|
+
* Generated by Sideko (sideko.dev)
|
|
18
|
+
**/
|
|
16
19
|
class InvokeClient extends make_api_request_js_1.CoreResourceClient {
|
|
17
20
|
constructor(coreClient, opts) {
|
|
18
21
|
super(coreClient, opts);
|
|
@@ -112,6 +112,10 @@ export declare const Schemas$PatchRequest: {
|
|
|
112
112
|
* CreateRequest
|
|
113
113
|
*/
|
|
114
114
|
export type CreateRequest = {
|
|
115
|
+
/**
|
|
116
|
+
* Whether the workflow is active
|
|
117
|
+
*/
|
|
118
|
+
active?: boolean | undefined;
|
|
115
119
|
/**
|
|
116
120
|
* Description of the workflow
|
|
117
121
|
*/
|
|
@@ -120,15 +124,7 @@ export type CreateRequest = {
|
|
|
120
124
|
* Name of the workflow
|
|
121
125
|
*/
|
|
122
126
|
name: string;
|
|
123
|
-
|
|
124
|
-
* Parent origin ID if forking from an existing workflow
|
|
125
|
-
*/
|
|
126
|
-
originId?: string | null | undefined;
|
|
127
|
-
/**
|
|
128
|
-
* The ID of the initial workflow version to associate
|
|
129
|
-
*/
|
|
130
|
-
workflowId: string;
|
|
131
|
-
[additionalProperty: string]: string | string | (string | null | undefined) | string | any | null | undefined;
|
|
127
|
+
[additionalProperty: string]: (boolean | undefined) | string | string | any | null | undefined;
|
|
132
128
|
};
|
|
133
129
|
/**
|
|
134
130
|
* @internal
|
|
@@ -136,11 +132,10 @@ export type CreateRequest = {
|
|
|
136
132
|
* we expect to come in as network data
|
|
137
133
|
*/
|
|
138
134
|
export type External$CreateRequest = {
|
|
135
|
+
active?: boolean | undefined;
|
|
139
136
|
description: string;
|
|
140
137
|
name: string;
|
|
141
|
-
|
|
142
|
-
workflow_id: string;
|
|
143
|
-
[additionalProperty: string]: string | string | (string | null | undefined) | string | External$CreateRequest | null | undefined;
|
|
138
|
+
[additionalProperty: string]: (boolean | undefined) | string | string | External$CreateRequest | null | undefined;
|
|
144
139
|
};
|
|
145
140
|
export declare const Schemas$CreateRequest: {
|
|
146
141
|
in: z.ZodType<CreateRequest, z.ZodTypeDef, unknown>;
|
|
@@ -178,18 +178,16 @@ exports.Schemas$PatchRequest = {
|
|
|
178
178
|
*/
|
|
179
179
|
const SchemaIn$CreateRequest = z
|
|
180
180
|
.object({
|
|
181
|
+
active: z.boolean().optional(),
|
|
181
182
|
description: z.string(),
|
|
182
183
|
name: z.string(),
|
|
183
|
-
origin_id: z.string().nullable().optional(),
|
|
184
|
-
workflow_id: z.string(),
|
|
185
184
|
})
|
|
186
185
|
.catchall(make_api_request_js_1.zodRequiredAny)
|
|
187
186
|
.transform((obj) => {
|
|
188
187
|
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
188
|
+
active: "active",
|
|
189
189
|
description: "description",
|
|
190
190
|
name: "name",
|
|
191
|
-
origin_id: "originId",
|
|
192
|
-
workflow_id: "workflowId",
|
|
193
191
|
});
|
|
194
192
|
});
|
|
195
193
|
/**
|
|
@@ -198,18 +196,16 @@ const SchemaIn$CreateRequest = z
|
|
|
198
196
|
*/
|
|
199
197
|
const SchemaOut$CreateRequest = z
|
|
200
198
|
.object({
|
|
199
|
+
active: z.boolean().optional(),
|
|
201
200
|
description: z.string(),
|
|
202
201
|
name: z.string(),
|
|
203
|
-
originId: z.string().nullable().optional(),
|
|
204
|
-
workflowId: z.string(),
|
|
205
202
|
})
|
|
206
203
|
.catchall(make_api_request_js_1.zodRequiredAny)
|
|
207
204
|
.transform((obj) => {
|
|
208
205
|
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
206
|
+
active: "active",
|
|
209
207
|
description: "description",
|
|
210
208
|
name: "name",
|
|
211
|
-
originId: "origin_id",
|
|
212
|
-
workflowId: "workflow_id",
|
|
213
209
|
});
|
|
214
210
|
});
|
|
215
211
|
exports.Schemas$CreateRequest = {
|
|
@@ -14,6 +14,9 @@ import * as types from "../../types";
|
|
|
14
14
|
/**
|
|
15
15
|
* Generated by Sideko (sideko.dev)
|
|
16
16
|
**/
|
|
17
|
+
/**
|
|
18
|
+
* Generated by Sideko (sideko.dev)
|
|
19
|
+
**/
|
|
17
20
|
export declare class WorkflowsClient extends CoreResourceClient {
|
|
18
21
|
private _versionsLazy?;
|
|
19
22
|
private _runsLazy?;
|
|
@@ -52,6 +52,9 @@ const workflows_patch_response_1 = require("../../types/workflows-patch-response
|
|
|
52
52
|
/**
|
|
53
53
|
* Generated by Sideko (sideko.dev)
|
|
54
54
|
**/
|
|
55
|
+
/**
|
|
56
|
+
* Generated by Sideko (sideko.dev)
|
|
57
|
+
**/
|
|
55
58
|
class WorkflowsClient extends make_api_request_js_1.CoreResourceClient {
|
|
56
59
|
constructor(coreClient, opts) {
|
|
57
60
|
super(coreClient, opts);
|
|
@@ -6,3 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.DispatchClient = void 0;
|
|
7
7
|
var resource_client_1 = require("./resource-client");
|
|
8
8
|
Object.defineProperty(exports, "DispatchClient", { enumerable: true, get: function () { return resource_client_1.DispatchClient; } });
|
|
9
|
+
/**
|
|
10
|
+
* Generated by Sideko (sideko.dev)
|
|
11
|
+
**/
|
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
import { ApiPromise, CoreClient, CoreResourceClient, RequestOptions, ResourceClientOptions } from "make-api-request-js";
|
|
5
5
|
import * as requests from "../../../../resources/workflows/runs/dispatch/request-types";
|
|
6
6
|
import * as types from "../../../../types";
|
|
7
|
+
/**
|
|
8
|
+
* Generated by Sideko (sideko.dev)
|
|
9
|
+
**/
|
|
7
10
|
export declare class DispatchClient extends CoreResourceClient {
|
|
8
11
|
constructor(coreClient: CoreClient, opts: ResourceClientOptions);
|
|
9
12
|
/**
|
|
@@ -6,6 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.DispatchClient = void 0;
|
|
7
7
|
const make_api_request_js_1 = require("make-api-request-js");
|
|
8
8
|
const workflows_runs_dispatch_create_response_1 = require("../../../../types/workflows-runs-dispatch-create-response");
|
|
9
|
+
/**
|
|
10
|
+
* Generated by Sideko (sideko.dev)
|
|
11
|
+
**/
|
|
9
12
|
class DispatchClient extends make_api_request_js_1.CoreResourceClient {
|
|
10
13
|
constructor(coreClient, opts) {
|
|
11
14
|
super(coreClient, opts);
|
|
@@ -40,3 +40,6 @@ exports.RunsClient = exports.dispatch = void 0;
|
|
|
40
40
|
exports.dispatch = __importStar(require("./dispatch"));
|
|
41
41
|
var resource_client_1 = require("./resource-client");
|
|
42
42
|
Object.defineProperty(exports, "RunsClient", { enumerable: true, get: function () { return resource_client_1.RunsClient; } });
|
|
43
|
+
/**
|
|
44
|
+
* Generated by Sideko (sideko.dev)
|
|
45
|
+
**/
|
|
@@ -5,6 +5,9 @@ import { ApiPromise, CoreClient, CoreResourceClient, RequestOptions, ResourceCli
|
|
|
5
5
|
import { DispatchClient } from "../../../resources/workflows/runs/dispatch";
|
|
6
6
|
import * as requests from "../../../resources/workflows/runs/request-types";
|
|
7
7
|
import * as types from "../../../types";
|
|
8
|
+
/**
|
|
9
|
+
* Generated by Sideko (sideko.dev)
|
|
10
|
+
**/
|
|
8
11
|
export declare class RunsClient extends CoreResourceClient {
|
|
9
12
|
private _dispatchLazy?;
|
|
10
13
|
constructor(coreClient: CoreClient, opts: ResourceClientOptions);
|
|
@@ -44,6 +44,9 @@ const workflows_runs_create_response_1 = require("../../../types/workflows-runs-
|
|
|
44
44
|
const workflows_runs_delete_response_1 = require("../../../types/workflows-runs-delete-response");
|
|
45
45
|
const workflows_runs_get_response_1 = require("../../../types/workflows-runs-get-response");
|
|
46
46
|
const workflows_runs_list_response_item_1 = require("../../../types/workflows-runs-list-response-item");
|
|
47
|
+
/**
|
|
48
|
+
* Generated by Sideko (sideko.dev)
|
|
49
|
+
**/
|
|
47
50
|
class RunsClient extends make_api_request_js_1.CoreResourceClient {
|
|
48
51
|
constructor(coreClient, opts) {
|
|
49
52
|
super(coreClient, opts);
|
|
@@ -2,7 +2,44 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Generated by Sideko (sideko.dev)
|
|
4
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
|
+
})();
|
|
5
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.VersionsClient = void 0;
|
|
39
|
+
exports.tasks = exports.VersionsClient = void 0;
|
|
7
40
|
var resource_client_1 = require("./resource-client");
|
|
8
41
|
Object.defineProperty(exports, "VersionsClient", { enumerable: true, get: function () { return resource_client_1.VersionsClient; } });
|
|
42
|
+
exports.tasks = __importStar(require("./tasks"));
|
|
43
|
+
/**
|
|
44
|
+
* Generated by Sideko (sideko.dev)
|
|
45
|
+
**/
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
4
|
import * as z from "zod";
|
|
5
|
+
import { External$WorkflowsVersionsCreateBodyTasksItem, WorkflowsVersionsCreateBodyTasksItem } from "../../../types/workflows-versions-create-body-tasks-item";
|
|
5
6
|
/**
|
|
6
7
|
* DeleteRequest
|
|
7
8
|
*/
|
|
@@ -89,10 +90,6 @@ export declare const Schemas$GetRequest: {
|
|
|
89
90
|
* PatchRequest
|
|
90
91
|
*/
|
|
91
92
|
export type PatchRequest = {
|
|
92
|
-
/**
|
|
93
|
-
* Updated access level
|
|
94
|
-
*/
|
|
95
|
-
access?: string | undefined;
|
|
96
93
|
/**
|
|
97
94
|
* Updated active status
|
|
98
95
|
*/
|
|
@@ -101,10 +98,6 @@ export type PatchRequest = {
|
|
|
101
98
|
* Updated description
|
|
102
99
|
*/
|
|
103
100
|
description?: string | undefined;
|
|
104
|
-
/**
|
|
105
|
-
* Updated instructions
|
|
106
|
-
*/
|
|
107
|
-
instructions?: string | null | undefined;
|
|
108
101
|
/**
|
|
109
102
|
* Updated name
|
|
110
103
|
*/
|
|
@@ -117,7 +110,7 @@ export type PatchRequest = {
|
|
|
117
110
|
* The workflow version ID
|
|
118
111
|
*/
|
|
119
112
|
versionId: string;
|
|
120
|
-
[additionalProperty: string]: (
|
|
113
|
+
[additionalProperty: string]: (boolean | undefined) | (string | undefined) | (string | undefined) | string | string | any | null | undefined;
|
|
121
114
|
};
|
|
122
115
|
/**
|
|
123
116
|
* @internal
|
|
@@ -125,14 +118,12 @@ export type PatchRequest = {
|
|
|
125
118
|
* we expect to come in as network data
|
|
126
119
|
*/
|
|
127
120
|
export type External$PatchRequest = {
|
|
128
|
-
access?: string | undefined;
|
|
129
121
|
active?: boolean | undefined;
|
|
130
122
|
description?: string | undefined;
|
|
131
|
-
instructions?: string | null | undefined;
|
|
132
123
|
name?: string | undefined;
|
|
133
124
|
origin_id: string;
|
|
134
125
|
version_id: string;
|
|
135
|
-
[additionalProperty: string]: (
|
|
126
|
+
[additionalProperty: string]: (boolean | undefined) | (string | undefined) | (string | undefined) | string | string | External$PatchRequest | null | undefined;
|
|
136
127
|
};
|
|
137
128
|
export declare const Schemas$PatchRequest: {
|
|
138
129
|
in: z.ZodType<PatchRequest, z.ZodTypeDef, unknown>;
|
|
@@ -142,10 +133,6 @@ export declare const Schemas$PatchRequest: {
|
|
|
142
133
|
* CreateRequest
|
|
143
134
|
*/
|
|
144
135
|
export type CreateRequest = {
|
|
145
|
-
/**
|
|
146
|
-
* Access level (e.g. PRIVATE, PUBLIC)
|
|
147
|
-
*/
|
|
148
|
-
access?: string | undefined;
|
|
149
136
|
/**
|
|
150
137
|
* Whether this version is active
|
|
151
138
|
*/
|
|
@@ -154,19 +141,19 @@ export type CreateRequest = {
|
|
|
154
141
|
* Description of the workflow version
|
|
155
142
|
*/
|
|
156
143
|
description: string;
|
|
157
|
-
/**
|
|
158
|
-
* Optional instructions for the workflow
|
|
159
|
-
*/
|
|
160
|
-
instructions?: string | null | undefined;
|
|
161
144
|
/**
|
|
162
145
|
* Name of the workflow version
|
|
163
146
|
*/
|
|
164
147
|
name: string;
|
|
148
|
+
/**
|
|
149
|
+
* Tasks for the workflow version
|
|
150
|
+
*/
|
|
151
|
+
tasks?: WorkflowsVersionsCreateBodyTasksItem[] | undefined;
|
|
165
152
|
/**
|
|
166
153
|
* The workflow origin ID
|
|
167
154
|
*/
|
|
168
155
|
originId: string;
|
|
169
|
-
[additionalProperty: string]: (
|
|
156
|
+
[additionalProperty: string]: (boolean | undefined) | string | string | (WorkflowsVersionsCreateBodyTasksItem[] | undefined) | string | any | null | undefined;
|
|
170
157
|
};
|
|
171
158
|
/**
|
|
172
159
|
* @internal
|
|
@@ -174,13 +161,12 @@ export type CreateRequest = {
|
|
|
174
161
|
* we expect to come in as network data
|
|
175
162
|
*/
|
|
176
163
|
export type External$CreateRequest = {
|
|
177
|
-
access?: string | undefined;
|
|
178
164
|
active?: boolean | undefined;
|
|
179
165
|
description: string;
|
|
180
|
-
instructions?: string | null | undefined;
|
|
181
166
|
name: string;
|
|
167
|
+
tasks?: External$WorkflowsVersionsCreateBodyTasksItem[] | undefined;
|
|
182
168
|
origin_id: string;
|
|
183
|
-
[additionalProperty: string]: (
|
|
169
|
+
[additionalProperty: string]: (boolean | undefined) | string | string | (External$WorkflowsVersionsCreateBodyTasksItem[] | undefined) | string | External$CreateRequest | null | undefined;
|
|
184
170
|
};
|
|
185
171
|
export declare const Schemas$CreateRequest: {
|
|
186
172
|
in: z.ZodType<CreateRequest, z.ZodTypeDef, unknown>;
|
|
@@ -39,6 +39,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.Schemas$CreateRequest = exports.Schemas$PatchRequest = exports.Schemas$GetRequest = exports.Schemas$ListRequest = exports.Schemas$DeleteRequest = void 0;
|
|
40
40
|
const make_api_request_js_1 = require("make-api-request-js");
|
|
41
41
|
const z = __importStar(require("zod"));
|
|
42
|
+
const workflows_versions_create_body_tasks_item_1 = require("../../../types/workflows-versions-create-body-tasks-item");
|
|
42
43
|
/**
|
|
43
44
|
* Takes network data, validates it, and transforms keys to match typescript object DeleteRequest
|
|
44
45
|
*/
|
|
@@ -147,10 +148,8 @@ exports.Schemas$GetRequest = {
|
|
|
147
148
|
*/
|
|
148
149
|
const SchemaIn$PatchRequest = z
|
|
149
150
|
.object({
|
|
150
|
-
access: z.string().optional(),
|
|
151
151
|
active: z.boolean().optional(),
|
|
152
152
|
description: z.string().optional(),
|
|
153
|
-
instructions: z.string().nullable().optional(),
|
|
154
153
|
name: z.string().optional(),
|
|
155
154
|
origin_id: z.string(),
|
|
156
155
|
version_id: z.string(),
|
|
@@ -158,10 +157,8 @@ const SchemaIn$PatchRequest = z
|
|
|
158
157
|
.catchall(make_api_request_js_1.zodRequiredAny)
|
|
159
158
|
.transform((obj) => {
|
|
160
159
|
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
161
|
-
access: "access",
|
|
162
160
|
active: "active",
|
|
163
161
|
description: "description",
|
|
164
|
-
instructions: "instructions",
|
|
165
162
|
name: "name",
|
|
166
163
|
origin_id: "originId",
|
|
167
164
|
version_id: "versionId",
|
|
@@ -173,10 +170,8 @@ const SchemaIn$PatchRequest = z
|
|
|
173
170
|
*/
|
|
174
171
|
const SchemaOut$PatchRequest = z
|
|
175
172
|
.object({
|
|
176
|
-
access: z.string().optional(),
|
|
177
173
|
active: z.boolean().optional(),
|
|
178
174
|
description: z.string().optional(),
|
|
179
|
-
instructions: z.string().nullable().optional(),
|
|
180
175
|
name: z.string().optional(),
|
|
181
176
|
originId: z.string(),
|
|
182
177
|
versionId: z.string(),
|
|
@@ -184,10 +179,8 @@ const SchemaOut$PatchRequest = z
|
|
|
184
179
|
.catchall(make_api_request_js_1.zodRequiredAny)
|
|
185
180
|
.transform((obj) => {
|
|
186
181
|
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
187
|
-
access: "access",
|
|
188
182
|
active: "active",
|
|
189
183
|
description: "description",
|
|
190
|
-
instructions: "instructions",
|
|
191
184
|
name: "name",
|
|
192
185
|
originId: "origin_id",
|
|
193
186
|
versionId: "version_id",
|
|
@@ -202,21 +195,19 @@ exports.Schemas$PatchRequest = {
|
|
|
202
195
|
*/
|
|
203
196
|
const SchemaIn$CreateRequest = z
|
|
204
197
|
.object({
|
|
205
|
-
access: z.string().optional(),
|
|
206
198
|
active: z.boolean().optional(),
|
|
207
199
|
description: z.string(),
|
|
208
|
-
instructions: z.string().nullable().optional(),
|
|
209
200
|
name: z.string(),
|
|
201
|
+
tasks: z.array(workflows_versions_create_body_tasks_item_1.Schemas$WorkflowsVersionsCreateBodyTasksItem.in).optional(),
|
|
210
202
|
origin_id: z.string(),
|
|
211
203
|
})
|
|
212
204
|
.catchall(make_api_request_js_1.zodRequiredAny)
|
|
213
205
|
.transform((obj) => {
|
|
214
206
|
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
215
|
-
access: "access",
|
|
216
207
|
active: "active",
|
|
217
208
|
description: "description",
|
|
218
|
-
instructions: "instructions",
|
|
219
209
|
name: "name",
|
|
210
|
+
tasks: "tasks",
|
|
220
211
|
origin_id: "originId",
|
|
221
212
|
});
|
|
222
213
|
});
|
|
@@ -226,21 +217,19 @@ const SchemaIn$CreateRequest = z
|
|
|
226
217
|
*/
|
|
227
218
|
const SchemaOut$CreateRequest = z
|
|
228
219
|
.object({
|
|
229
|
-
access: z.string().optional(),
|
|
230
220
|
active: z.boolean().optional(),
|
|
231
221
|
description: z.string(),
|
|
232
|
-
instructions: z.string().nullable().optional(),
|
|
233
222
|
name: z.string(),
|
|
223
|
+
tasks: z.array(workflows_versions_create_body_tasks_item_1.Schemas$WorkflowsVersionsCreateBodyTasksItem.out).optional(),
|
|
234
224
|
originId: z.string(),
|
|
235
225
|
})
|
|
236
226
|
.catchall(make_api_request_js_1.zodRequiredAny)
|
|
237
227
|
.transform((obj) => {
|
|
238
228
|
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
239
|
-
access: "access",
|
|
240
229
|
active: "active",
|
|
241
230
|
description: "description",
|
|
242
|
-
instructions: "instructions",
|
|
243
231
|
name: "name",
|
|
232
|
+
tasks: "tasks",
|
|
244
233
|
originId: "origin_id",
|
|
245
234
|
});
|
|
246
235
|
});
|
|
@@ -3,8 +3,13 @@
|
|
|
3
3
|
**/
|
|
4
4
|
import { ApiPromise, CoreClient, CoreResourceClient, RequestOptions, ResourceClientOptions } from "make-api-request-js";
|
|
5
5
|
import * as requests from "../../../resources/workflows/versions/request-types";
|
|
6
|
+
import { TasksClient } from "../../../resources/workflows/versions/tasks";
|
|
6
7
|
import * as types from "../../../types";
|
|
8
|
+
/**
|
|
9
|
+
* Generated by Sideko (sideko.dev)
|
|
10
|
+
**/
|
|
7
11
|
export declare class VersionsClient extends CoreResourceClient {
|
|
12
|
+
private _tasksLazy?;
|
|
8
13
|
constructor(coreClient: CoreClient, opts: ResourceClientOptions);
|
|
9
14
|
/**
|
|
10
15
|
* Delete a workflow version
|
|
@@ -46,4 +51,5 @@ export declare class VersionsClient extends CoreResourceClient {
|
|
|
46
51
|
* POST /workflows/{origin_id}/versions
|
|
47
52
|
*/
|
|
48
53
|
create(request: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.WorkflowsVersionsCreateResponse>;
|
|
54
|
+
get tasks(): TasksClient;
|
|
49
55
|
}
|
|
@@ -46,9 +46,15 @@ const workflows_versions_get_response_1 = require("../../../types/workflows-vers
|
|
|
46
46
|
const workflows_versions_list_response_item_1 = require("../../../types/workflows-versions-list-response-item");
|
|
47
47
|
const workflows_versions_patch_body_1 = require("../../../types/workflows-versions-patch-body");
|
|
48
48
|
const workflows_versions_patch_response_1 = require("../../../types/workflows-versions-patch-response");
|
|
49
|
+
/**
|
|
50
|
+
* Generated by Sideko (sideko.dev)
|
|
51
|
+
**/
|
|
49
52
|
class VersionsClient extends make_api_request_js_1.CoreResourceClient {
|
|
50
53
|
constructor(coreClient, opts) {
|
|
51
54
|
super(coreClient, opts);
|
|
55
|
+
if (this._opts.lazyLoad === false) {
|
|
56
|
+
this.tasks;
|
|
57
|
+
}
|
|
52
58
|
}
|
|
53
59
|
/**
|
|
54
60
|
* Delete a workflow version
|
|
@@ -148,5 +154,9 @@ class VersionsClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
148
154
|
opts,
|
|
149
155
|
});
|
|
150
156
|
}
|
|
157
|
+
get tasks() {
|
|
158
|
+
var _a;
|
|
159
|
+
return ((_a = this._tasksLazy) !== null && _a !== void 0 ? _a : (this._tasksLazy = new (require("./tasks").TasksClient)(this._client, this._opts)));
|
|
160
|
+
}
|
|
151
161
|
}
|
|
152
162
|
exports.VersionsClient = VersionsClient;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by Sideko (sideko.dev)
|
|
4
|
+
**/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.TasksClient = void 0;
|
|
7
|
+
var resource_client_1 = require("./resource-client");
|
|
8
|
+
Object.defineProperty(exports, "TasksClient", { enumerable: true, get: function () { return resource_client_1.TasksClient; } });
|