@human2human/sdk 0.4.0 → 0.5.1
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 +21 -0
- package/dist/client.d.ts +9 -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 +6 -0
- package/dist/index.js +6 -0
- package/dist/resources/agent/abort/index.d.ts +5 -0
- package/dist/resources/agent/abort/index.js +8 -0
- package/dist/resources/agent/abort/request-types.d.ts +27 -0
- package/dist/resources/agent/abort/request-types.js +72 -0
- package/dist/resources/agent/abort/resource-client.d.ts +17 -0
- package/dist/resources/agent/abort/resource-client.js +33 -0
- 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 +6 -0
- package/dist/resources/agent/build/workflow/resource-client.js +6 -0
- package/dist/resources/agent/history/index.d.ts +6 -0
- package/dist/resources/agent/history/index.js +6 -0
- package/dist/resources/agent/history/resource-client.d.ts +6 -0
- package/dist/resources/agent/history/resource-client.js +6 -0
- package/dist/resources/agent/index.d.ts +7 -0
- package/dist/resources/agent/index.js +8 -1
- package/dist/resources/agent/resource-client.d.ts +9 -0
- package/dist/resources/agent/resource-client.js +11 -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 +6 -0
- package/dist/resources/auth/login/resource-client.js +6 -0
- 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 +6 -0
- package/dist/resources/auth/refresh/resource-client.js +6 -0
- 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 +6 -0
- package/dist/resources/chats/resource-client.js +6 -0
- package/dist/resources/datastore/index.d.ts +7 -0
- package/dist/resources/datastore/index.js +43 -0
- package/dist/resources/datastore/items/index.d.ts +5 -0
- package/dist/resources/datastore/items/index.js +8 -0
- package/dist/resources/datastore/items/request-types.d.ts +130 -0
- package/dist/resources/datastore/items/request-types.js +191 -0
- package/dist/resources/datastore/items/resource-client.d.ts +41 -0
- package/dist/resources/datastore/items/resource-client.js +130 -0
- package/dist/resources/datastore/query/index.d.ts +5 -0
- package/dist/resources/datastore/query/index.js +8 -0
- package/dist/resources/datastore/query/request-types.d.ts +43 -0
- package/dist/resources/datastore/query/request-types.js +85 -0
- package/dist/resources/datastore/query/resource-client.d.ts +17 -0
- package/dist/resources/datastore/query/resource-client.js +33 -0
- package/dist/resources/datastore/request-types.d.ts +99 -0
- package/dist/resources/datastore/request-types.js +190 -0
- package/dist/resources/datastore/resource-client.d.ts +39 -0
- package/dist/resources/datastore/resource-client.js +141 -0
- 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 +6 -0
- package/dist/resources/feeds/items/resource-client.js +6 -0
- package/dist/resources/feeds/resource-client.d.ts +6 -0
- package/dist/resources/feeds/resource-client.js +6 -0
- package/dist/resources/index.d.ts +1 -0
- package/dist/resources/index.js +2 -1
- 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/resource-client.d.ts +6 -0
- package/dist/resources/integrations/api/operations/resource-client.js +6 -0
- package/dist/resources/integrations/api/resource-client.d.ts +6 -0
- package/dist/resources/integrations/api/resource-client.js +6 -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/resource-client.d.ts +6 -0
- package/dist/resources/integrations/api/secrets/resource-client.js +6 -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 +6 -0
- package/dist/resources/memory/index.js +6 -0
- package/dist/resources/memory/resource-client.d.ts +6 -0
- package/dist/resources/memory/resource-client.js +6 -0
- package/dist/resources/memory/tables/index.d.ts +6 -0
- package/dist/resources/memory/tables/index.js +6 -0
- package/dist/resources/memory/tables/mutate/index.d.ts +6 -0
- package/dist/resources/memory/tables/mutate/index.js +6 -0
- package/dist/resources/memory/tables/mutate/resource-client.d.ts +6 -0
- package/dist/resources/memory/tables/mutate/resource-client.js +6 -0
- package/dist/resources/memory/tables/query/index.d.ts +6 -0
- package/dist/resources/memory/tables/query/index.js +6 -0
- package/dist/resources/memory/tables/query/resource-client.d.ts +6 -0
- package/dist/resources/memory/tables/query/resource-client.js +6 -0
- package/dist/resources/memory/tables/resource-client.d.ts +6 -0
- package/dist/resources/memory/tables/resource-client.js +6 -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 +6 -0
- package/dist/resources/search-groups/items/resource-client.js +6 -0
- package/dist/resources/search-groups/resource-client.d.ts +6 -0
- package/dist/resources/search-groups/resource-client.js +6 -0
- package/dist/resources/subscriptions/events/index.d.ts +6 -0
- package/dist/resources/subscriptions/events/index.js +6 -0
- package/dist/resources/subscriptions/events/resource-client.d.ts +6 -0
- package/dist/resources/subscriptions/events/resource-client.js +6 -0
- package/dist/resources/subscriptions/index.d.ts +6 -0
- package/dist/resources/subscriptions/index.js +6 -0
- package/dist/resources/subscriptions/resource-client.d.ts +6 -0
- package/dist/resources/subscriptions/resource-client.js +6 -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/resource-client.d.ts +6 -0
- package/dist/resources/tools/code-execution/resource-client.js +6 -0
- 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 +6 -0
- package/dist/resources/tools/dictionary-search/resource-client.js +6 -0
- 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 +6 -0
- package/dist/resources/tools/format/resource-client.js +6 -0
- 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 +6 -0
- package/dist/resources/tools/internet-search/resource-client.js +6 -0
- 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 +6 -0
- package/dist/resources/tools/memory-query/resource-client.js +6 -0
- 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 +6 -0
- package/dist/resources/tools/meta-tagger/resource-client.js +6 -0
- package/dist/resources/tools/resource-client.d.ts +6 -0
- package/dist/resources/tools/resource-client.js +6 -0
- 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 +6 -0
- package/dist/resources/tools/standard-llm/resource-client.js +6 -0
- 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 +6 -0
- package/dist/resources/tools/structured-output/resource-client.js +6 -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 +6 -0
- package/dist/resources/workflows/dispatch/resource-client.js +6 -0
- package/dist/resources/workflows/index.d.ts +6 -0
- package/dist/resources/workflows/index.js +6 -0
- 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 +6 -0
- package/dist/resources/workflows/invoke/resource-client.js +6 -0
- package/dist/resources/workflows/resource-client.d.ts +6 -0
- package/dist/resources/workflows/resource-client.js +6 -0
- package/dist/resources/workflows/runs/dispatch/index.d.ts +6 -0
- package/dist/resources/workflows/runs/dispatch/index.js +6 -0
- package/dist/resources/workflows/runs/dispatch/resource-client.d.ts +6 -0
- package/dist/resources/workflows/runs/dispatch/resource-client.js +6 -0
- package/dist/resources/workflows/runs/index.d.ts +6 -0
- package/dist/resources/workflows/runs/index.js +6 -0
- package/dist/resources/workflows/runs/resource-client.d.ts +6 -0
- package/dist/resources/workflows/runs/resource-client.js +6 -0
- package/dist/resources/workflows/versions/index.d.ts +6 -0
- package/dist/resources/workflows/versions/index.js +6 -0
- package/dist/resources/workflows/versions/resource-client.d.ts +6 -0
- package/dist/resources/workflows/versions/resource-client.js +6 -0
- package/dist/resources/workflows/versions/tasks/index.d.ts +6 -0
- package/dist/resources/workflows/versions/tasks/index.js +6 -0
- package/dist/resources/workflows/versions/tasks/resource-client.d.ts +6 -0
- package/dist/resources/workflows/versions/tasks/resource-client.js +6 -0
- package/dist/resources/workspace/index.d.ts +6 -0
- package/dist/resources/workspace/index.js +6 -0
- package/dist/resources/workspace/resource-client.d.ts +6 -0
- package/dist/resources/workspace/resource-client.js +6 -0
- package/dist/resources/workspace/variables/index.d.ts +6 -0
- package/dist/resources/workspace/variables/index.js +6 -0
- package/dist/resources/workspace/variables/resource-client.d.ts +6 -0
- package/dist/resources/workspace/variables/resource-client.js +6 -0
- package/dist/types/agent-abort-create-body.d.ts +27 -0
- package/dist/types/agent-abort-create-body.js +72 -0
- package/dist/types/agent-abort-create-response.d.ts +24 -0
- package/dist/types/agent-abort-create-response.js +74 -0
- package/dist/types/datastore-create-body-type-enum.d.ts +7 -0
- package/dist/types/datastore-create-body-type-enum.js +5 -0
- package/dist/types/datastore-create-body.d.ts +47 -0
- package/dist/types/datastore-create-body.js +110 -0
- package/dist/types/datastore-create-response-type-enum.d.ts +7 -0
- package/dist/types/datastore-create-response-type-enum.js +5 -0
- package/dist/types/datastore-create-response.d.ts +41 -0
- package/dist/types/datastore-create-response.js +122 -0
- package/dist/types/datastore-get-response-type-enum.d.ts +7 -0
- package/dist/types/datastore-get-response-type-enum.js +5 -0
- package/dist/types/datastore-get-response.d.ts +41 -0
- package/dist/types/datastore-get-response.js +122 -0
- package/dist/types/datastore-items-create-body-encoding-enum.d.ts +7 -0
- package/dist/types/datastore-items-create-body-encoding-enum.js +5 -0
- package/dist/types/datastore-items-create-body.d.ts +57 -0
- package/dist/types/datastore-items-create-body.js +96 -0
- package/dist/types/datastore-items-create-response.d.ts +36 -0
- package/dist/types/datastore-items-create-response.js +102 -0
- package/dist/types/datastore-items-delete-response.d.ts +36 -0
- package/dist/types/datastore-items-delete-response.js +102 -0
- package/dist/types/datastore-items-get-response-encoding-enum.d.ts +7 -0
- package/dist/types/datastore-items-get-response-encoding-enum.js +5 -0
- package/dist/types/datastore-items-get-response.d.ts +43 -0
- package/dist/types/datastore-items-get-response.js +110 -0
- package/dist/types/datastore-items-list-response-item-obj0-type-enum.d.ts +7 -0
- package/dist/types/datastore-items-list-response-item-obj0-type-enum.js +5 -0
- package/dist/types/datastore-items-list-response-item-obj0.d.ts +28 -0
- package/dist/types/datastore-items-list-response-item-obj0.js +80 -0
- package/dist/types/datastore-items-list-response-item-obj1-type-enum.d.ts +7 -0
- package/dist/types/datastore-items-list-response-item-obj1-type-enum.js +5 -0
- package/dist/types/datastore-items-list-response-item-obj1.d.ts +38 -0
- package/dist/types/datastore-items-list-response-item-obj1.js +106 -0
- package/dist/types/datastore-list-response-item-type-enum.d.ts +7 -0
- package/dist/types/datastore-list-response-item-type-enum.js +5 -0
- package/dist/types/datastore-list-response-item.d.ts +41 -0
- package/dist/types/datastore-list-response-item.js +122 -0
- package/dist/types/datastore-list-type-enum.d.ts +7 -0
- package/dist/types/datastore-list-type-enum.js +5 -0
- package/dist/types/datastore-query-create-body-filters.d.ts +30 -0
- package/dist/types/datastore-query-create-body-filters.js +84 -0
- package/dist/types/datastore-query-create-body.d.ts +38 -0
- package/dist/types/datastore-query-create-body.js +81 -0
- package/dist/types/datastore-query-create-response.d.ts +24 -0
- package/dist/types/datastore-query-create-response.js +78 -0
- package/dist/types/index.d.ts +30 -0
- package/dist/types/index.js +6 -0
- package/dist/types/workflows-dispatch-create-body.d.ts +20 -2
- package/dist/types/workflows-dispatch-create-body.js +14 -2
- package/dist/types/workflows-dispatch-create-response.d.ts +3 -0
- package/dist/types/workflows-invoke-create-body.d.ts +18 -0
- package/dist/types/workflows-invoke-create-body.js +12 -0
- package/package.json +1 -1
|
@@ -0,0 +1,122 @@
|
|
|
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$DatastoreListResponseItem = 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 DatastoreListResponseItem
|
|
44
|
+
*/
|
|
45
|
+
const SchemaIn$DatastoreListResponseItem = z
|
|
46
|
+
.object({
|
|
47
|
+
config: z
|
|
48
|
+
.record(z.string(), make_api_request_js_1.zodRequiredAny.optional())
|
|
49
|
+
.nullable()
|
|
50
|
+
.optional(),
|
|
51
|
+
created_at: z.string(),
|
|
52
|
+
description: z.string().nullable().optional(),
|
|
53
|
+
id: z.string(),
|
|
54
|
+
name: z.string(),
|
|
55
|
+
schema: z
|
|
56
|
+
.record(z.string(), make_api_request_js_1.zodRequiredAny.optional())
|
|
57
|
+
.nullable()
|
|
58
|
+
.optional(),
|
|
59
|
+
type: z.enum([
|
|
60
|
+
"DATABASE_COLUMNAR",
|
|
61
|
+
"DATABASE_TRADITIONAL",
|
|
62
|
+
"FILE_STORE",
|
|
63
|
+
"VECTOR_STORE",
|
|
64
|
+
]),
|
|
65
|
+
user_id: 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
|
+
config: "config",
|
|
71
|
+
created_at: "createdAt",
|
|
72
|
+
description: "description",
|
|
73
|
+
id: "id",
|
|
74
|
+
name: "name",
|
|
75
|
+
schema: "schema",
|
|
76
|
+
type: "type",
|
|
77
|
+
user_id: "userId",
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
/**
|
|
81
|
+
* @internal
|
|
82
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$DatastoreListResponseItem
|
|
83
|
+
*/
|
|
84
|
+
const SchemaOut$DatastoreListResponseItem = z
|
|
85
|
+
.object({
|
|
86
|
+
config: z
|
|
87
|
+
.record(z.string(), make_api_request_js_1.zodRequiredAny.optional())
|
|
88
|
+
.nullable()
|
|
89
|
+
.optional(),
|
|
90
|
+
createdAt: z.string(),
|
|
91
|
+
description: z.string().nullable().optional(),
|
|
92
|
+
id: z.string(),
|
|
93
|
+
name: z.string(),
|
|
94
|
+
schema: z
|
|
95
|
+
.record(z.string(), make_api_request_js_1.zodRequiredAny.optional())
|
|
96
|
+
.nullable()
|
|
97
|
+
.optional(),
|
|
98
|
+
type: z.enum([
|
|
99
|
+
"DATABASE_COLUMNAR",
|
|
100
|
+
"DATABASE_TRADITIONAL",
|
|
101
|
+
"FILE_STORE",
|
|
102
|
+
"VECTOR_STORE",
|
|
103
|
+
]),
|
|
104
|
+
userId: z.string(),
|
|
105
|
+
})
|
|
106
|
+
.catchall(make_api_request_js_1.zodRequiredAny)
|
|
107
|
+
.transform((obj) => {
|
|
108
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
109
|
+
config: "config",
|
|
110
|
+
createdAt: "created_at",
|
|
111
|
+
description: "description",
|
|
112
|
+
id: "id",
|
|
113
|
+
name: "name",
|
|
114
|
+
schema: "schema",
|
|
115
|
+
type: "type",
|
|
116
|
+
userId: "user_id",
|
|
117
|
+
});
|
|
118
|
+
});
|
|
119
|
+
exports.Schemas$DatastoreListResponseItem = {
|
|
120
|
+
in: SchemaIn$DatastoreListResponseItem,
|
|
121
|
+
out: SchemaOut$DatastoreListResponseItem,
|
|
122
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Sideko (sideko.dev)
|
|
3
|
+
**/
|
|
4
|
+
import * as z from "zod";
|
|
5
|
+
/**
|
|
6
|
+
* Optional filters (VectorStore only)
|
|
7
|
+
*/
|
|
8
|
+
export type DatastoreQueryCreateBodyFilters = {
|
|
9
|
+
endDate?: string | undefined;
|
|
10
|
+
items?: string[] | undefined;
|
|
11
|
+
similarityThreshold?: number | undefined;
|
|
12
|
+
startDate?: string | undefined;
|
|
13
|
+
[additionalProperty: string]: (string | undefined) | (string[] | undefined) | (number | undefined) | (string | undefined) | any | null | undefined;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
* DatastoreQueryCreateBodyFilters without any key transformation, this is what
|
|
18
|
+
* we expect to come in as network data
|
|
19
|
+
*/
|
|
20
|
+
export type External$DatastoreQueryCreateBodyFilters = {
|
|
21
|
+
end_date?: string | undefined;
|
|
22
|
+
items?: string[] | undefined;
|
|
23
|
+
similarity_threshold?: number | undefined;
|
|
24
|
+
start_date?: string | undefined;
|
|
25
|
+
[additionalProperty: string]: (string | undefined) | (string[] | undefined) | (number | undefined) | (string | undefined) | (External$DatastoreQueryCreateBodyFilters | null) | null | undefined;
|
|
26
|
+
};
|
|
27
|
+
export declare const Schemas$DatastoreQueryCreateBodyFilters: {
|
|
28
|
+
in: z.ZodType<DatastoreQueryCreateBodyFilters, z.ZodTypeDef, unknown>;
|
|
29
|
+
out: z.ZodType<External$DatastoreQueryCreateBodyFilters, z.ZodTypeDef, DatastoreQueryCreateBodyFilters>;
|
|
30
|
+
};
|
|
@@ -0,0 +1,84 @@
|
|
|
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$DatastoreQueryCreateBodyFilters = 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 DatastoreQueryCreateBodyFilters
|
|
44
|
+
*/
|
|
45
|
+
const SchemaIn$DatastoreQueryCreateBodyFilters = z
|
|
46
|
+
.object({
|
|
47
|
+
end_date: z.string().optional(),
|
|
48
|
+
items: z.array(z.string()).optional(),
|
|
49
|
+
similarity_threshold: z.number().optional(),
|
|
50
|
+
start_date: z.string().optional(),
|
|
51
|
+
})
|
|
52
|
+
.catchall(make_api_request_js_1.zodRequiredAny)
|
|
53
|
+
.transform((obj) => {
|
|
54
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
55
|
+
end_date: "endDate",
|
|
56
|
+
items: "items",
|
|
57
|
+
similarity_threshold: "similarityThreshold",
|
|
58
|
+
start_date: "startDate",
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
/**
|
|
62
|
+
* @internal
|
|
63
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$DatastoreQueryCreateBodyFilters
|
|
64
|
+
*/
|
|
65
|
+
const SchemaOut$DatastoreQueryCreateBodyFilters = z
|
|
66
|
+
.object({
|
|
67
|
+
endDate: z.string().optional(),
|
|
68
|
+
items: z.array(z.string()).optional(),
|
|
69
|
+
similarityThreshold: z.number().optional(),
|
|
70
|
+
startDate: z.string().optional(),
|
|
71
|
+
})
|
|
72
|
+
.catchall(make_api_request_js_1.zodRequiredAny)
|
|
73
|
+
.transform((obj) => {
|
|
74
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
75
|
+
endDate: "end_date",
|
|
76
|
+
items: "items",
|
|
77
|
+
similarityThreshold: "similarity_threshold",
|
|
78
|
+
startDate: "start_date",
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
exports.Schemas$DatastoreQueryCreateBodyFilters = {
|
|
82
|
+
in: SchemaIn$DatastoreQueryCreateBodyFilters,
|
|
83
|
+
out: SchemaOut$DatastoreQueryCreateBodyFilters,
|
|
84
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Sideko (sideko.dev)
|
|
3
|
+
**/
|
|
4
|
+
import * as z from "zod";
|
|
5
|
+
import { DatastoreQueryCreateBodyFilters, External$DatastoreQueryCreateBodyFilters } from "./datastore-query-create-body-filters";
|
|
6
|
+
/**
|
|
7
|
+
* DatastoreQueryCreateBody
|
|
8
|
+
*/
|
|
9
|
+
export type DatastoreQueryCreateBody = {
|
|
10
|
+
/**
|
|
11
|
+
* Optional filters (VectorStore only)
|
|
12
|
+
*/
|
|
13
|
+
filters?: DatastoreQueryCreateBodyFilters | null | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* Maximum number of results (VectorStore only)
|
|
16
|
+
*/
|
|
17
|
+
limit?: number | null | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Natural-language query for VectorStore, SQL for Database
|
|
20
|
+
*/
|
|
21
|
+
query: string;
|
|
22
|
+
[additionalProperty: string]: (DatastoreQueryCreateBodyFilters | null | undefined) | (number | null | undefined) | string | any | null | undefined;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
* DatastoreQueryCreateBody without any key transformation, this is what
|
|
27
|
+
* we expect to come in as network data
|
|
28
|
+
*/
|
|
29
|
+
export type External$DatastoreQueryCreateBody = {
|
|
30
|
+
filters?: External$DatastoreQueryCreateBodyFilters | null | undefined;
|
|
31
|
+
limit?: number | null | undefined;
|
|
32
|
+
query: string;
|
|
33
|
+
[additionalProperty: string]: (External$DatastoreQueryCreateBodyFilters | null | undefined) | (number | null | undefined) | string | External$DatastoreQueryCreateBody | null | undefined;
|
|
34
|
+
};
|
|
35
|
+
export declare const Schemas$DatastoreQueryCreateBody: {
|
|
36
|
+
in: z.ZodType<DatastoreQueryCreateBody, z.ZodTypeDef, unknown>;
|
|
37
|
+
out: z.ZodType<External$DatastoreQueryCreateBody, z.ZodTypeDef, DatastoreQueryCreateBody>;
|
|
38
|
+
};
|
|
@@ -0,0 +1,81 @@
|
|
|
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$DatastoreQueryCreateBody = void 0;
|
|
40
|
+
const make_api_request_js_1 = require("make-api-request-js");
|
|
41
|
+
const z = __importStar(require("zod"));
|
|
42
|
+
const datastore_query_create_body_filters_1 = require("./datastore-query-create-body-filters");
|
|
43
|
+
/**
|
|
44
|
+
* Takes network data, validates it, and transforms keys to match typescript object DatastoreQueryCreateBody
|
|
45
|
+
*/
|
|
46
|
+
const SchemaIn$DatastoreQueryCreateBody = z
|
|
47
|
+
.object({
|
|
48
|
+
filters: datastore_query_create_body_filters_1.Schemas$DatastoreQueryCreateBodyFilters.in.nullable().optional(),
|
|
49
|
+
limit: z.number().nullable().optional(),
|
|
50
|
+
query: z.string(),
|
|
51
|
+
})
|
|
52
|
+
.catchall(make_api_request_js_1.zodRequiredAny)
|
|
53
|
+
.transform((obj) => {
|
|
54
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
55
|
+
filters: "filters",
|
|
56
|
+
limit: "limit",
|
|
57
|
+
query: "query",
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
/**
|
|
61
|
+
* @internal
|
|
62
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$DatastoreQueryCreateBody
|
|
63
|
+
*/
|
|
64
|
+
const SchemaOut$DatastoreQueryCreateBody = z
|
|
65
|
+
.object({
|
|
66
|
+
filters: datastore_query_create_body_filters_1.Schemas$DatastoreQueryCreateBodyFilters.out.nullable().optional(),
|
|
67
|
+
limit: z.number().nullable().optional(),
|
|
68
|
+
query: z.string(),
|
|
69
|
+
})
|
|
70
|
+
.catchall(make_api_request_js_1.zodRequiredAny)
|
|
71
|
+
.transform((obj) => {
|
|
72
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
73
|
+
filters: "filters",
|
|
74
|
+
limit: "limit",
|
|
75
|
+
query: "query",
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
exports.Schemas$DatastoreQueryCreateBody = {
|
|
79
|
+
in: SchemaIn$DatastoreQueryCreateBody,
|
|
80
|
+
out: SchemaOut$DatastoreQueryCreateBody,
|
|
81
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Sideko (sideko.dev)
|
|
3
|
+
**/
|
|
4
|
+
import * as z from "zod";
|
|
5
|
+
/**
|
|
6
|
+
* DatastoreQueryCreateResponse
|
|
7
|
+
*/
|
|
8
|
+
export type DatastoreQueryCreateResponse = {
|
|
9
|
+
data: string | Record<string, any | undefined>[];
|
|
10
|
+
[additionalProperty: string]: (string | Record<string, any | undefined>[]) | any | null | undefined;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* @internal
|
|
14
|
+
* DatastoreQueryCreateResponse without any key transformation, this is what
|
|
15
|
+
* we expect to come in as network data
|
|
16
|
+
*/
|
|
17
|
+
export type External$DatastoreQueryCreateResponse = {
|
|
18
|
+
data: string | Record<string, any | undefined>[];
|
|
19
|
+
[additionalProperty: string]: (string | Record<string, any | undefined>[]) | External$DatastoreQueryCreateResponse | null | undefined;
|
|
20
|
+
};
|
|
21
|
+
export declare const Schemas$DatastoreQueryCreateResponse: {
|
|
22
|
+
in: z.ZodType<DatastoreQueryCreateResponse, z.ZodTypeDef, unknown>;
|
|
23
|
+
out: z.ZodType<External$DatastoreQueryCreateResponse, z.ZodTypeDef, DatastoreQueryCreateResponse>;
|
|
24
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
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$DatastoreQueryCreateResponse = 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 DatastoreQueryCreateResponse
|
|
44
|
+
*/
|
|
45
|
+
const SchemaIn$DatastoreQueryCreateResponse = z
|
|
46
|
+
.object({
|
|
47
|
+
data: z.union([
|
|
48
|
+
z.string(),
|
|
49
|
+
z.array(z.record(z.string(), make_api_request_js_1.zodRequiredAny.optional())),
|
|
50
|
+
]),
|
|
51
|
+
})
|
|
52
|
+
.catchall(make_api_request_js_1.zodRequiredAny)
|
|
53
|
+
.transform((obj) => {
|
|
54
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
55
|
+
data: "data",
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
/**
|
|
59
|
+
* @internal
|
|
60
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$DatastoreQueryCreateResponse
|
|
61
|
+
*/
|
|
62
|
+
const SchemaOut$DatastoreQueryCreateResponse = z
|
|
63
|
+
.object({
|
|
64
|
+
data: z.union([
|
|
65
|
+
z.string(),
|
|
66
|
+
z.array(z.record(z.string(), make_api_request_js_1.zodRequiredAny.optional())),
|
|
67
|
+
]),
|
|
68
|
+
})
|
|
69
|
+
.catchall(make_api_request_js_1.zodRequiredAny)
|
|
70
|
+
.transform((obj) => {
|
|
71
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
72
|
+
data: "data",
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
exports.Schemas$DatastoreQueryCreateResponse = {
|
|
76
|
+
in: SchemaIn$DatastoreQueryCreateResponse,
|
|
77
|
+
out: SchemaOut$DatastoreQueryCreateResponse,
|
|
78
|
+
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
|
+
export { AgentAbortCreateBody } from "./agent-abort-create-body";
|
|
5
|
+
export { AgentAbortCreateResponse } from "./agent-abort-create-response";
|
|
4
6
|
export { AgentBuildWorkflowCreateBody } from "./agent-build-workflow-create-body";
|
|
5
7
|
export { AgentBuildWorkflowCreateResponse } from "./agent-build-workflow-create-response";
|
|
6
8
|
export { AgentBuildWorkflowCreateResponseResponseObj0 } from "./agent-build-workflow-create-response-response-obj0";
|
|
@@ -53,6 +55,28 @@ export { ChatsGetResponseMessagesItem } from "./chats-get-response-messages-item
|
|
|
53
55
|
export { ChatsGetResponseMessagesItemRoleEnum } from "./chats-get-response-messages-item-role-enum";
|
|
54
56
|
export { ChatsGetResponseStatusEnum } from "./chats-get-response-status-enum";
|
|
55
57
|
export { ChatsGetResponseTypeEnum } from "./chats-get-response-type-enum";
|
|
58
|
+
export { DatastoreCreateBody } from "./datastore-create-body";
|
|
59
|
+
export { DatastoreCreateBodyTypeEnum } from "./datastore-create-body-type-enum";
|
|
60
|
+
export { DatastoreCreateResponse } from "./datastore-create-response";
|
|
61
|
+
export { DatastoreCreateResponseTypeEnum } from "./datastore-create-response-type-enum";
|
|
62
|
+
export { DatastoreGetResponse } from "./datastore-get-response";
|
|
63
|
+
export { DatastoreGetResponseTypeEnum } from "./datastore-get-response-type-enum";
|
|
64
|
+
export { DatastoreItemsCreateBody } from "./datastore-items-create-body";
|
|
65
|
+
export { DatastoreItemsCreateBodyEncodingEnum } from "./datastore-items-create-body-encoding-enum";
|
|
66
|
+
export { DatastoreItemsCreateResponse } from "./datastore-items-create-response";
|
|
67
|
+
export { DatastoreItemsDeleteResponse } from "./datastore-items-delete-response";
|
|
68
|
+
export { DatastoreItemsGetResponse } from "./datastore-items-get-response";
|
|
69
|
+
export { DatastoreItemsGetResponseEncodingEnum } from "./datastore-items-get-response-encoding-enum";
|
|
70
|
+
export { DatastoreItemsListResponseItemObj0 } from "./datastore-items-list-response-item-obj0";
|
|
71
|
+
export { DatastoreItemsListResponseItemObj0TypeEnum } from "./datastore-items-list-response-item-obj0-type-enum";
|
|
72
|
+
export { DatastoreItemsListResponseItemObj1 } from "./datastore-items-list-response-item-obj1";
|
|
73
|
+
export { DatastoreItemsListResponseItemObj1TypeEnum } from "./datastore-items-list-response-item-obj1-type-enum";
|
|
74
|
+
export { DatastoreListResponseItem } from "./datastore-list-response-item";
|
|
75
|
+
export { DatastoreListResponseItemTypeEnum } from "./datastore-list-response-item-type-enum";
|
|
76
|
+
export { DatastoreListTypeEnum } from "./datastore-list-type-enum";
|
|
77
|
+
export { DatastoreQueryCreateBody } from "./datastore-query-create-body";
|
|
78
|
+
export { DatastoreQueryCreateBodyFilters } from "./datastore-query-create-body-filters";
|
|
79
|
+
export { DatastoreQueryCreateResponse } from "./datastore-query-create-response";
|
|
56
80
|
export { FeedsCreateBody } from "./feeds-create-body";
|
|
57
81
|
export { FeedsCreateBodyConfigObj0 } from "./feeds-create-body-config-obj0";
|
|
58
82
|
export { FeedsCreateBodyConfigObj2 } from "./feeds-create-body-config-obj2";
|
|
@@ -230,3 +254,9 @@ export { WorkspaceVariablesPatchResponse } from "./workspace-variables-patch-res
|
|
|
230
254
|
/**
|
|
231
255
|
* Generated by Sideko (sideko.dev)
|
|
232
256
|
**/
|
|
257
|
+
/**
|
|
258
|
+
* Generated by Sideko (sideko.dev)
|
|
259
|
+
**/
|
|
260
|
+
/**
|
|
261
|
+
* Generated by Sideko (sideko.dev)
|
|
262
|
+
**/
|
package/dist/types/index.js
CHANGED
|
@@ -6,7 +6,22 @@ import * as z from "zod";
|
|
|
6
6
|
* WorkflowsDispatchCreateBody
|
|
7
7
|
*/
|
|
8
8
|
export type WorkflowsDispatchCreateBody = {
|
|
9
|
-
|
|
9
|
+
/**
|
|
10
|
+
* The input for the workflow run
|
|
11
|
+
*/
|
|
12
|
+
input: Record<string, any | undefined>;
|
|
13
|
+
/**
|
|
14
|
+
* The inputs for the workflow run (deprecated, use input instead)
|
|
15
|
+
*/
|
|
16
|
+
inputs?: Record<string, any | undefined> | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Optional: The ID of the workflow run to invoke. Used for re-invoking a workflow run.
|
|
19
|
+
*/
|
|
20
|
+
runId?: string | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Optional: The ID of the task to invoke. Used for re-invoking a workflow run from a specific task.
|
|
23
|
+
*/
|
|
24
|
+
taskId?: string | undefined;
|
|
10
25
|
};
|
|
11
26
|
/**
|
|
12
27
|
* @internal
|
|
@@ -14,7 +29,10 @@ export type WorkflowsDispatchCreateBody = {
|
|
|
14
29
|
* we expect to come in as network data
|
|
15
30
|
*/
|
|
16
31
|
export type External$WorkflowsDispatchCreateBody = {
|
|
17
|
-
|
|
32
|
+
input: Record<string, any | undefined>;
|
|
33
|
+
inputs?: Record<string, any | undefined> | undefined;
|
|
34
|
+
run_id?: string | undefined;
|
|
35
|
+
task_id?: string | undefined;
|
|
18
36
|
};
|
|
19
37
|
export declare const Schemas$WorkflowsDispatchCreateBody: {
|
|
20
38
|
in: z.ZodType<WorkflowsDispatchCreateBody, z.ZodTypeDef, unknown>;
|
|
@@ -44,11 +44,17 @@ const z = __importStar(require("zod"));
|
|
|
44
44
|
*/
|
|
45
45
|
const SchemaIn$WorkflowsDispatchCreateBody = z
|
|
46
46
|
.object({
|
|
47
|
-
|
|
47
|
+
input: z.record(z.string(), make_api_request_js_1.zodRequiredAny.optional()),
|
|
48
|
+
inputs: z.record(z.string(), make_api_request_js_1.zodRequiredAny.optional()).optional(),
|
|
49
|
+
run_id: z.string().optional(),
|
|
50
|
+
task_id: z.string().optional(),
|
|
48
51
|
})
|
|
49
52
|
.transform((obj) => {
|
|
50
53
|
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
54
|
+
input: "input",
|
|
51
55
|
inputs: "inputs",
|
|
56
|
+
run_id: "runId",
|
|
57
|
+
task_id: "taskId",
|
|
52
58
|
});
|
|
53
59
|
});
|
|
54
60
|
/**
|
|
@@ -57,11 +63,17 @@ const SchemaIn$WorkflowsDispatchCreateBody = z
|
|
|
57
63
|
*/
|
|
58
64
|
const SchemaOut$WorkflowsDispatchCreateBody = z
|
|
59
65
|
.object({
|
|
60
|
-
|
|
66
|
+
input: z.record(z.string(), make_api_request_js_1.zodRequiredAny.optional()),
|
|
67
|
+
inputs: z.record(z.string(), make_api_request_js_1.zodRequiredAny.optional()).optional(),
|
|
68
|
+
runId: z.string().optional(),
|
|
69
|
+
taskId: z.string().optional(),
|
|
61
70
|
})
|
|
62
71
|
.transform((obj) => {
|
|
63
72
|
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
73
|
+
input: "input",
|
|
64
74
|
inputs: "inputs",
|
|
75
|
+
runId: "run_id",
|
|
76
|
+
taskId: "task_id",
|
|
65
77
|
});
|
|
66
78
|
});
|
|
67
79
|
exports.Schemas$WorkflowsDispatchCreateBody = {
|
|
@@ -6,7 +6,22 @@ import * as z from "zod";
|
|
|
6
6
|
* WorkflowsInvokeCreateBody
|
|
7
7
|
*/
|
|
8
8
|
export type WorkflowsInvokeCreateBody = {
|
|
9
|
+
/**
|
|
10
|
+
* The input for the workflow run
|
|
11
|
+
*/
|
|
9
12
|
input: Record<string, any | undefined>;
|
|
13
|
+
/**
|
|
14
|
+
* The inputs for the workflow run (deprecated, use input instead)
|
|
15
|
+
*/
|
|
16
|
+
inputs?: Record<string, any | undefined> | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Optional: The ID of the workflow run to invoke. Used for re-invoking a workflow run.
|
|
19
|
+
*/
|
|
20
|
+
runId?: string | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Optional: The ID of the task to invoke. Used for re-invoking a workflow run from a specific task.
|
|
23
|
+
*/
|
|
24
|
+
taskId?: string | undefined;
|
|
10
25
|
};
|
|
11
26
|
/**
|
|
12
27
|
* @internal
|
|
@@ -15,6 +30,9 @@ export type WorkflowsInvokeCreateBody = {
|
|
|
15
30
|
*/
|
|
16
31
|
export type External$WorkflowsInvokeCreateBody = {
|
|
17
32
|
input: Record<string, any | undefined>;
|
|
33
|
+
inputs?: Record<string, any | undefined> | undefined;
|
|
34
|
+
run_id?: string | undefined;
|
|
35
|
+
task_id?: string | undefined;
|
|
18
36
|
};
|
|
19
37
|
export declare const Schemas$WorkflowsInvokeCreateBody: {
|
|
20
38
|
in: z.ZodType<WorkflowsInvokeCreateBody, z.ZodTypeDef, unknown>;
|