@human2human/sdk 0.2.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 +9 -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 +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 +8 -1
- package/dist/resources/agent/build/workflow/resource-client.js +8 -1
- package/dist/resources/agent/index.d.ts +3 -0
- package/dist/resources/agent/index.js +3 -0
- package/dist/resources/agent/resource-client.d.ts +3 -0
- package/dist/resources/agent/resource-client.js +3 -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 +6 -1
- package/dist/resources/auth/login/resource-client.js +6 -1
- 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 +6 -1
- package/dist/resources/auth/refresh/resource-client.js +6 -1
- 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 +3 -0
- package/dist/resources/chats/index.js +3 -0
- package/dist/resources/chats/resource-client.d.ts +6 -3
- package/dist/resources/chats/resource-client.js +6 -3
- package/dist/resources/feeds/index.d.ts +3 -0
- package/dist/resources/feeds/index.js +3 -0
- 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 +7 -0
- package/dist/resources/feeds/items/resource-client.js +7 -0
- package/dist/resources/feeds/resource-client.d.ts +9 -0
- package/dist/resources/feeds/resource-client.js +9 -0
- package/dist/resources/feeds/vector/index.d.ts +3 -0
- package/dist/resources/feeds/vector/index.js +3 -0
- package/dist/resources/feeds/vector/resource-client.d.ts +3 -0
- package/dist/resources/feeds/vector/resource-client.js +3 -0
- package/dist/resources/feeds/vector/search/index.d.ts +3 -0
- package/dist/resources/feeds/vector/search/index.js +3 -0
- package/dist/resources/feeds/vector/search/resource-client.d.ts +5 -0
- package/dist/resources/feeds/vector/search/resource-client.js +5 -0
- package/dist/resources/index.d.ts +2 -1
- package/dist/resources/index.js +3 -2
- 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 +11 -0
- package/dist/resources/integrations/api/operations/resource-client.js +11 -0
- package/dist/resources/integrations/api/resource-client.d.ts +9 -0
- package/dist/resources/integrations/api/resource-client.js +9 -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 +9 -0
- package/dist/resources/integrations/api/secrets/resource-client.js +9 -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 +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 +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 +9 -0
- package/dist/resources/search-groups/items/resource-client.js +9 -0
- package/dist/resources/search-groups/resource-client.d.ts +9 -0
- package/dist/resources/search-groups/resource-client.js +9 -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 +3 -0
- package/dist/resources/tools/code-execution/index.js +3 -0
- package/dist/resources/tools/code-execution/resource-client.d.ts +6 -1
- package/dist/resources/tools/code-execution/resource-client.js +6 -1
- 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 +6 -1
- package/dist/resources/tools/dictionary-search/resource-client.js +6 -1
- package/dist/resources/tools/format/index.d.ts +3 -0
- package/dist/resources/tools/format/index.js +3 -0
- package/dist/resources/tools/format/resource-client.d.ts +6 -1
- package/dist/resources/tools/format/resource-client.js +6 -1
- 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/resource-client.d.ts +6 -1
- package/dist/resources/tools/internet-search/resource-client.js +6 -1
- 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 +6 -1
- package/dist/resources/tools/memory-query/resource-client.js +6 -1
- 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 +6 -1
- package/dist/resources/tools/meta-tagger/resource-client.js +6 -1
- package/dist/resources/tools/resource-client.d.ts +6 -1
- package/dist/resources/tools/resource-client.js +6 -1
- 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/resource-client.d.ts +6 -1
- package/dist/resources/tools/standard-llm/resource-client.js +6 -1
- 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/resource-client.d.ts +6 -1
- package/dist/resources/tools/structured-output/resource-client.js +6 -1
- 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 +6 -1
- package/dist/resources/workflows/dispatch/resource-client.js +6 -1
- package/dist/resources/workflows/index.d.ts +6 -0
- package/dist/resources/workflows/index.js +6 -1
- 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 +6 -1
- package/dist/resources/workflows/invoke/resource-client.js +6 -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 +52 -1
- package/dist/resources/workflows/resource-client.js +152 -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 +58 -3
- package/dist/types/index.js +3 -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/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
|
@@ -0,0 +1,218 @@
|
|
|
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 = exports.Schemas$PatchRequest = exports.Schemas$GetRequest = exports.Schemas$ListRequest = exports.Schemas$DeleteRequest = void 0;
|
|
40
|
+
const make_api_request_js_1 = require("make-api-request-js");
|
|
41
|
+
const z = __importStar(require("zod"));
|
|
42
|
+
/**
|
|
43
|
+
* Takes network data, validates it, and transforms keys to match typescript object DeleteRequest
|
|
44
|
+
*/
|
|
45
|
+
const SchemaIn$DeleteRequest = z
|
|
46
|
+
.object({
|
|
47
|
+
id: z.string(),
|
|
48
|
+
})
|
|
49
|
+
.transform((obj) => {
|
|
50
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
51
|
+
id: "id",
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
/**
|
|
55
|
+
* @internal
|
|
56
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$DeleteRequest
|
|
57
|
+
*/
|
|
58
|
+
const SchemaOut$DeleteRequest = z
|
|
59
|
+
.object({
|
|
60
|
+
id: z.string(),
|
|
61
|
+
})
|
|
62
|
+
.transform((obj) => {
|
|
63
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
64
|
+
id: "id",
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
exports.Schemas$DeleteRequest = {
|
|
68
|
+
in: SchemaIn$DeleteRequest,
|
|
69
|
+
out: SchemaOut$DeleteRequest,
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* Takes network data, validates it, and transforms keys to match typescript object ListRequest
|
|
73
|
+
*/
|
|
74
|
+
const SchemaIn$ListRequest = z
|
|
75
|
+
.object({
|
|
76
|
+
limit: z.number().optional(),
|
|
77
|
+
page: z.number().optional(),
|
|
78
|
+
})
|
|
79
|
+
.transform((obj) => {
|
|
80
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
81
|
+
limit: "limit",
|
|
82
|
+
page: "page",
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
/**
|
|
86
|
+
* @internal
|
|
87
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$ListRequest
|
|
88
|
+
*/
|
|
89
|
+
const SchemaOut$ListRequest = z
|
|
90
|
+
.object({
|
|
91
|
+
limit: z.number().optional(),
|
|
92
|
+
page: z.number().optional(),
|
|
93
|
+
})
|
|
94
|
+
.transform((obj) => {
|
|
95
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
96
|
+
limit: "limit",
|
|
97
|
+
page: "page",
|
|
98
|
+
});
|
|
99
|
+
});
|
|
100
|
+
exports.Schemas$ListRequest = {
|
|
101
|
+
in: SchemaIn$ListRequest,
|
|
102
|
+
out: SchemaOut$ListRequest,
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* Takes network data, validates it, and transforms keys to match typescript object GetRequest
|
|
106
|
+
*/
|
|
107
|
+
const SchemaIn$GetRequest = z
|
|
108
|
+
.object({
|
|
109
|
+
id: z.string(),
|
|
110
|
+
})
|
|
111
|
+
.transform((obj) => {
|
|
112
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
113
|
+
id: "id",
|
|
114
|
+
});
|
|
115
|
+
});
|
|
116
|
+
/**
|
|
117
|
+
* @internal
|
|
118
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$GetRequest
|
|
119
|
+
*/
|
|
120
|
+
const SchemaOut$GetRequest = z
|
|
121
|
+
.object({
|
|
122
|
+
id: z.string(),
|
|
123
|
+
})
|
|
124
|
+
.transform((obj) => {
|
|
125
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
126
|
+
id: "id",
|
|
127
|
+
});
|
|
128
|
+
});
|
|
129
|
+
exports.Schemas$GetRequest = {
|
|
130
|
+
in: SchemaIn$GetRequest,
|
|
131
|
+
out: SchemaOut$GetRequest,
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* Takes network data, validates it, and transforms keys to match typescript object PatchRequest
|
|
135
|
+
*/
|
|
136
|
+
const SchemaIn$PatchRequest = z
|
|
137
|
+
.object({
|
|
138
|
+
description: z.string().optional(),
|
|
139
|
+
name: z.string().optional(),
|
|
140
|
+
workflow_id: z.string().optional(),
|
|
141
|
+
id: z.string(),
|
|
142
|
+
})
|
|
143
|
+
.catchall(make_api_request_js_1.zodRequiredAny)
|
|
144
|
+
.transform((obj) => {
|
|
145
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
146
|
+
description: "description",
|
|
147
|
+
name: "name",
|
|
148
|
+
workflow_id: "workflowId",
|
|
149
|
+
id: "id",
|
|
150
|
+
});
|
|
151
|
+
});
|
|
152
|
+
/**
|
|
153
|
+
* @internal
|
|
154
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$PatchRequest
|
|
155
|
+
*/
|
|
156
|
+
const SchemaOut$PatchRequest = z
|
|
157
|
+
.object({
|
|
158
|
+
description: z.string().optional(),
|
|
159
|
+
name: z.string().optional(),
|
|
160
|
+
workflowId: z.string().optional(),
|
|
161
|
+
id: z.string(),
|
|
162
|
+
})
|
|
163
|
+
.catchall(make_api_request_js_1.zodRequiredAny)
|
|
164
|
+
.transform((obj) => {
|
|
165
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
166
|
+
description: "description",
|
|
167
|
+
name: "name",
|
|
168
|
+
workflowId: "workflow_id",
|
|
169
|
+
id: "id",
|
|
170
|
+
});
|
|
171
|
+
});
|
|
172
|
+
exports.Schemas$PatchRequest = {
|
|
173
|
+
in: SchemaIn$PatchRequest,
|
|
174
|
+
out: SchemaOut$PatchRequest,
|
|
175
|
+
};
|
|
176
|
+
/**
|
|
177
|
+
* Takes network data, validates it, and transforms keys to match typescript object CreateRequest
|
|
178
|
+
*/
|
|
179
|
+
const SchemaIn$CreateRequest = z
|
|
180
|
+
.object({
|
|
181
|
+
description: z.string(),
|
|
182
|
+
name: z.string(),
|
|
183
|
+
origin_id: z.string().nullable().optional(),
|
|
184
|
+
workflow_id: z.string(),
|
|
185
|
+
})
|
|
186
|
+
.catchall(make_api_request_js_1.zodRequiredAny)
|
|
187
|
+
.transform((obj) => {
|
|
188
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
189
|
+
description: "description",
|
|
190
|
+
name: "name",
|
|
191
|
+
origin_id: "originId",
|
|
192
|
+
workflow_id: "workflowId",
|
|
193
|
+
});
|
|
194
|
+
});
|
|
195
|
+
/**
|
|
196
|
+
* @internal
|
|
197
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$CreateRequest
|
|
198
|
+
*/
|
|
199
|
+
const SchemaOut$CreateRequest = z
|
|
200
|
+
.object({
|
|
201
|
+
description: z.string(),
|
|
202
|
+
name: z.string(),
|
|
203
|
+
originId: z.string().nullable().optional(),
|
|
204
|
+
workflowId: z.string(),
|
|
205
|
+
})
|
|
206
|
+
.catchall(make_api_request_js_1.zodRequiredAny)
|
|
207
|
+
.transform((obj) => {
|
|
208
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
209
|
+
description: "description",
|
|
210
|
+
name: "name",
|
|
211
|
+
originId: "origin_id",
|
|
212
|
+
workflowId: "workflow_id",
|
|
213
|
+
});
|
|
214
|
+
});
|
|
215
|
+
exports.Schemas$CreateRequest = {
|
|
216
|
+
in: SchemaIn$CreateRequest,
|
|
217
|
+
out: SchemaOut$CreateRequest,
|
|
218
|
+
};
|
|
@@ -1,16 +1,67 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
|
-
import { CoreClient, CoreResourceClient, ResourceClientOptions } from "make-api-request-js";
|
|
4
|
+
import { ApiPromise, CoreClient, CoreResourceClient, RequestOptions, ResourceClientOptions } from "make-api-request-js";
|
|
5
5
|
import { DispatchClient } from "../../resources/workflows/dispatch";
|
|
6
6
|
import { InvokeClient } from "../../resources/workflows/invoke";
|
|
7
|
+
import * as requests from "../../resources/workflows/request-types";
|
|
8
|
+
import { RunsClient } from "../../resources/workflows/runs";
|
|
9
|
+
import { VersionsClient } from "../../resources/workflows/versions";
|
|
10
|
+
import * as types from "../../types";
|
|
11
|
+
/**
|
|
12
|
+
* Generated by Sideko (sideko.dev)
|
|
13
|
+
**/
|
|
7
14
|
/**
|
|
8
15
|
* Generated by Sideko (sideko.dev)
|
|
9
16
|
**/
|
|
10
17
|
export declare class WorkflowsClient extends CoreResourceClient {
|
|
18
|
+
private _versionsLazy?;
|
|
19
|
+
private _runsLazy?;
|
|
11
20
|
private _invokeLazy?;
|
|
12
21
|
private _dispatchLazy?;
|
|
13
22
|
constructor(coreClient: CoreClient, opts: ResourceClientOptions);
|
|
14
23
|
get dispatch(): DispatchClient;
|
|
15
24
|
get invoke(): InvokeClient;
|
|
25
|
+
get runs(): RunsClient;
|
|
26
|
+
get versions(): VersionsClient;
|
|
27
|
+
/**
|
|
28
|
+
* Delete a workflow
|
|
29
|
+
*
|
|
30
|
+
* Delete a workflow (workflow origin) and all its associated versions by the workflow origin ID.
|
|
31
|
+
*
|
|
32
|
+
* DELETE /workflows/{id}
|
|
33
|
+
*/
|
|
34
|
+
delete(request: requests.DeleteRequest, opts?: RequestOptions): ApiPromise<types.WorkflowsDeleteResponse>;
|
|
35
|
+
/**
|
|
36
|
+
* List workflows
|
|
37
|
+
*
|
|
38
|
+
* Retrieve a paginated list of workflows (workflow origins) for the authenticated user. Each workflow origin represents a collection of workflow versions.
|
|
39
|
+
*
|
|
40
|
+
* GET /workflows
|
|
41
|
+
*/
|
|
42
|
+
list(request?: requests.ListRequest, opts?: RequestOptions): ApiPromise<types.WorkflowsListResponseItem[]>;
|
|
43
|
+
/**
|
|
44
|
+
* Get a workflow
|
|
45
|
+
*
|
|
46
|
+
* Retrieve a single workflow (workflow origin) by its ID.
|
|
47
|
+
*
|
|
48
|
+
* GET /workflows/{id}
|
|
49
|
+
*/
|
|
50
|
+
get(request: requests.GetRequest, opts?: RequestOptions): ApiPromise<types.WorkflowsGetResponse>;
|
|
51
|
+
/**
|
|
52
|
+
* Update a workflow
|
|
53
|
+
*
|
|
54
|
+
* Update an existing workflow (workflow origin) by its ID. Only the provided fields will be updated.
|
|
55
|
+
*
|
|
56
|
+
* PATCH /workflows/{id}
|
|
57
|
+
*/
|
|
58
|
+
patch(request: requests.PatchRequest, opts?: RequestOptions): ApiPromise<types.WorkflowsPatchResponse>;
|
|
59
|
+
/**
|
|
60
|
+
* Create a workflow
|
|
61
|
+
*
|
|
62
|
+
* Create a new workflow (workflow origin). This creates the top-level workflow container that holds versioned workflow definitions.
|
|
63
|
+
*
|
|
64
|
+
* POST /workflows
|
|
65
|
+
*/
|
|
66
|
+
create(request: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.WorkflowsCreateResponse>;
|
|
16
67
|
}
|
|
@@ -2,9 +2,53 @@
|
|
|
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
39
|
exports.WorkflowsClient = void 0;
|
|
7
40
|
const make_api_request_js_1 = require("make-api-request-js");
|
|
41
|
+
const z = __importStar(require("zod"));
|
|
42
|
+
const workflows_create_body_1 = require("../../types/workflows-create-body");
|
|
43
|
+
const workflows_create_response_1 = require("../../types/workflows-create-response");
|
|
44
|
+
const workflows_delete_response_1 = require("../../types/workflows-delete-response");
|
|
45
|
+
const workflows_get_response_1 = require("../../types/workflows-get-response");
|
|
46
|
+
const workflows_list_response_item_1 = require("../../types/workflows-list-response-item");
|
|
47
|
+
const workflows_patch_body_1 = require("../../types/workflows-patch-body");
|
|
48
|
+
const workflows_patch_response_1 = require("../../types/workflows-patch-response");
|
|
49
|
+
/**
|
|
50
|
+
* Generated by Sideko (sideko.dev)
|
|
51
|
+
**/
|
|
8
52
|
/**
|
|
9
53
|
* Generated by Sideko (sideko.dev)
|
|
10
54
|
**/
|
|
@@ -14,6 +58,8 @@ class WorkflowsClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
14
58
|
if (this._opts.lazyLoad === false) {
|
|
15
59
|
this.dispatch;
|
|
16
60
|
this.invoke;
|
|
61
|
+
this.runs;
|
|
62
|
+
this.versions;
|
|
17
63
|
}
|
|
18
64
|
}
|
|
19
65
|
get dispatch() {
|
|
@@ -24,5 +70,111 @@ class WorkflowsClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
24
70
|
var _a;
|
|
25
71
|
return ((_a = this._invokeLazy) !== null && _a !== void 0 ? _a : (this._invokeLazy = new (require("./invoke").InvokeClient)(this._client, this._opts)));
|
|
26
72
|
}
|
|
73
|
+
get runs() {
|
|
74
|
+
var _a;
|
|
75
|
+
return ((_a = this._runsLazy) !== null && _a !== void 0 ? _a : (this._runsLazy = new (require("./runs").RunsClient)(this._client, this._opts)));
|
|
76
|
+
}
|
|
77
|
+
get versions() {
|
|
78
|
+
var _a;
|
|
79
|
+
return ((_a = this._versionsLazy) !== null && _a !== void 0 ? _a : (this._versionsLazy = new (require("./versions").VersionsClient)(this._client, this._opts)));
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Delete a workflow
|
|
83
|
+
*
|
|
84
|
+
* Delete a workflow (workflow origin) and all its associated versions by the workflow origin ID.
|
|
85
|
+
*
|
|
86
|
+
* DELETE /workflows/{id}
|
|
87
|
+
*/
|
|
88
|
+
delete(request, opts) {
|
|
89
|
+
return this._client.makeRequest({
|
|
90
|
+
method: "delete",
|
|
91
|
+
path: `/workflows/${request.id}`,
|
|
92
|
+
auth: ["ApiKeyAuth", "BearerAuth"],
|
|
93
|
+
responseSchema: workflows_delete_response_1.Schemas$WorkflowsDeleteResponse.in,
|
|
94
|
+
opts,
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* List workflows
|
|
99
|
+
*
|
|
100
|
+
* Retrieve a paginated list of workflows (workflow origins) for the authenticated user. Each workflow origin represents a collection of workflow versions.
|
|
101
|
+
*
|
|
102
|
+
* GET /workflows
|
|
103
|
+
*/
|
|
104
|
+
list(request = {}, opts) {
|
|
105
|
+
return this._client.makeRequest({
|
|
106
|
+
method: "get",
|
|
107
|
+
path: "/workflows",
|
|
108
|
+
auth: ["ApiKeyAuth", "BearerAuth"],
|
|
109
|
+
query: [
|
|
110
|
+
(0, make_api_request_js_1.encodeQueryParam)({
|
|
111
|
+
name: "limit",
|
|
112
|
+
value: z.number().optional().parse(request.limit),
|
|
113
|
+
style: "form",
|
|
114
|
+
explode: true,
|
|
115
|
+
}),
|
|
116
|
+
(0, make_api_request_js_1.encodeQueryParam)({
|
|
117
|
+
name: "page",
|
|
118
|
+
value: z.number().optional().parse(request.page),
|
|
119
|
+
style: "form",
|
|
120
|
+
explode: true,
|
|
121
|
+
}),
|
|
122
|
+
],
|
|
123
|
+
responseSchema: z.array(workflows_list_response_item_1.Schemas$WorkflowsListResponseItem.in),
|
|
124
|
+
opts,
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Get a workflow
|
|
129
|
+
*
|
|
130
|
+
* Retrieve a single workflow (workflow origin) by its ID.
|
|
131
|
+
*
|
|
132
|
+
* GET /workflows/{id}
|
|
133
|
+
*/
|
|
134
|
+
get(request, opts) {
|
|
135
|
+
return this._client.makeRequest({
|
|
136
|
+
method: "get",
|
|
137
|
+
path: `/workflows/${request.id}`,
|
|
138
|
+
auth: ["ApiKeyAuth", "BearerAuth"],
|
|
139
|
+
responseSchema: workflows_get_response_1.Schemas$WorkflowsGetResponse.in,
|
|
140
|
+
opts,
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Update a workflow
|
|
145
|
+
*
|
|
146
|
+
* Update an existing workflow (workflow origin) by its ID. Only the provided fields will be updated.
|
|
147
|
+
*
|
|
148
|
+
* PATCH /workflows/{id}
|
|
149
|
+
*/
|
|
150
|
+
patch(request, opts) {
|
|
151
|
+
return this._client.makeRequest({
|
|
152
|
+
method: "patch",
|
|
153
|
+
path: `/workflows/${request.id}`,
|
|
154
|
+
auth: ["ApiKeyAuth", "BearerAuth"],
|
|
155
|
+
contentType: "application/json",
|
|
156
|
+
body: workflows_patch_body_1.Schemas$WorkflowsPatchBody.out.parse(request),
|
|
157
|
+
responseSchema: workflows_patch_response_1.Schemas$WorkflowsPatchResponse.in,
|
|
158
|
+
opts,
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Create a workflow
|
|
163
|
+
*
|
|
164
|
+
* Create a new workflow (workflow origin). This creates the top-level workflow container that holds versioned workflow definitions.
|
|
165
|
+
*
|
|
166
|
+
* POST /workflows
|
|
167
|
+
*/
|
|
168
|
+
create(request, opts) {
|
|
169
|
+
return this._client.makeRequest({
|
|
170
|
+
method: "post",
|
|
171
|
+
path: "/workflows",
|
|
172
|
+
auth: ["ApiKeyAuth", "BearerAuth"],
|
|
173
|
+
contentType: "application/json",
|
|
174
|
+
body: workflows_create_body_1.Schemas$WorkflowsCreateBody.out.parse(request),
|
|
175
|
+
responseSchema: workflows_create_response_1.Schemas$WorkflowsCreateResponse.in,
|
|
176
|
+
opts,
|
|
177
|
+
});
|
|
178
|
+
}
|
|
27
179
|
}
|
|
28
180
|
exports.WorkflowsClient = WorkflowsClient;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by Sideko (sideko.dev)
|
|
4
|
+
**/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.DispatchClient = void 0;
|
|
7
|
+
var resource_client_1 = require("./resource-client");
|
|
8
|
+
Object.defineProperty(exports, "DispatchClient", { enumerable: true, get: function () { return resource_client_1.DispatchClient; } });
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Sideko (sideko.dev)
|
|
3
|
+
**/
|
|
4
|
+
import * as z from "zod";
|
|
5
|
+
/**
|
|
6
|
+
* CreateRequest
|
|
7
|
+
*/
|
|
8
|
+
export type CreateRequest = {
|
|
9
|
+
/**
|
|
10
|
+
* The workflow run ID to dispatch
|
|
11
|
+
*/
|
|
12
|
+
id: string;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
* CreateRequest without any key transformation, this is what
|
|
17
|
+
* we expect to come in as network data
|
|
18
|
+
*/
|
|
19
|
+
export type External$CreateRequest = {
|
|
20
|
+
id: string;
|
|
21
|
+
};
|
|
22
|
+
export declare const Schemas$CreateRequest: {
|
|
23
|
+
in: z.ZodType<CreateRequest, z.ZodTypeDef, unknown>;
|
|
24
|
+
out: z.ZodType<External$CreateRequest, z.ZodTypeDef, CreateRequest>;
|
|
25
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
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
|
+
/**
|
|
43
|
+
* Takes network data, validates it, and transforms keys to match typescript object CreateRequest
|
|
44
|
+
*/
|
|
45
|
+
const SchemaIn$CreateRequest = z
|
|
46
|
+
.object({
|
|
47
|
+
id: z.string(),
|
|
48
|
+
})
|
|
49
|
+
.transform((obj) => {
|
|
50
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
51
|
+
id: "id",
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
/**
|
|
55
|
+
* @internal
|
|
56
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$CreateRequest
|
|
57
|
+
*/
|
|
58
|
+
const SchemaOut$CreateRequest = z
|
|
59
|
+
.object({
|
|
60
|
+
id: z.string(),
|
|
61
|
+
})
|
|
62
|
+
.transform((obj) => {
|
|
63
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
64
|
+
id: "id",
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
exports.Schemas$CreateRequest = {
|
|
68
|
+
in: SchemaIn$CreateRequest,
|
|
69
|
+
out: SchemaOut$CreateRequest,
|
|
70
|
+
};
|
|
@@ -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/workflows/runs/dispatch/request-types";
|
|
6
|
+
import * as types from "../../../../types";
|
|
7
|
+
export declare class DispatchClient extends CoreResourceClient {
|
|
8
|
+
constructor(coreClient: CoreClient, opts: ResourceClientOptions);
|
|
9
|
+
/**
|
|
10
|
+
* Dispatch a workflow run
|
|
11
|
+
*
|
|
12
|
+
* Dispatch an existing workflow run for asynchronous execution. The run must be in IDLE status. This publishes the run to the workflow handler for processing.
|
|
13
|
+
*
|
|
14
|
+
* POST /workflows/runs/{id}/dispatch
|
|
15
|
+
*/
|
|
16
|
+
create(request: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.WorkflowsRunsDispatchCreateResponse>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by Sideko (sideko.dev)
|
|
4
|
+
**/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.DispatchClient = void 0;
|
|
7
|
+
const make_api_request_js_1 = require("make-api-request-js");
|
|
8
|
+
const workflows_runs_dispatch_create_response_1 = require("../../../../types/workflows-runs-dispatch-create-response");
|
|
9
|
+
class DispatchClient extends make_api_request_js_1.CoreResourceClient {
|
|
10
|
+
constructor(coreClient, opts) {
|
|
11
|
+
super(coreClient, opts);
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Dispatch a workflow run
|
|
15
|
+
*
|
|
16
|
+
* Dispatch an existing workflow run for asynchronous execution. The run must be in IDLE status. This publishes the run to the workflow handler for processing.
|
|
17
|
+
*
|
|
18
|
+
* POST /workflows/runs/{id}/dispatch
|
|
19
|
+
*/
|
|
20
|
+
create(request, opts) {
|
|
21
|
+
return this._client.makeRequest({
|
|
22
|
+
method: "post",
|
|
23
|
+
path: `/workflows/runs/${request.id}/dispatch`,
|
|
24
|
+
auth: ["ApiKeyAuth", "BearerAuth"],
|
|
25
|
+
responseSchema: workflows_runs_dispatch_create_response_1.Schemas$WorkflowsRunsDispatchCreateResponse.in,
|
|
26
|
+
opts,
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.DispatchClient = DispatchClient;
|
|
@@ -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.RunsClient = exports.dispatch = void 0;
|
|
40
|
+
exports.dispatch = __importStar(require("./dispatch"));
|
|
41
|
+
var resource_client_1 = require("./resource-client");
|
|
42
|
+
Object.defineProperty(exports, "RunsClient", { enumerable: true, get: function () { return resource_client_1.RunsClient; } });
|