@cognigy/rest-api-client 2026.2.0-rc1 → 2026.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/CHANGELOG.md +3 -3
- package/README.md +0 -15
- package/build/apigroups/ResourcesAPIGroup_2_0.js +384 -134
- package/build/shared/errors/ErrorCode.js +1 -2
- package/build/shared/errors/ErrorCollection.js +0 -1
- package/build/shared/interfaces/handover.js +0 -1
- package/build/shared/interfaces/resources/IAuditEvent.js +13 -1
- package/build/shared/interfaces/resources/TResourceType.js +2 -0
- package/build/shared/interfaces/user.js +2 -0
- package/dist/esm/apigroups/ResourcesAPIGroup_2_0.js +384 -134
- package/dist/esm/shared/errors/ErrorCode.js +1 -2
- package/dist/esm/shared/errors/ErrorCollection.js +0 -1
- package/dist/esm/shared/interfaces/handover.js +0 -1
- package/dist/esm/shared/interfaces/resources/IAuditEvent.js +13 -1
- package/dist/esm/shared/interfaces/resources/TResourceType.js +2 -0
- package/dist/esm/shared/interfaces/user.js +2 -0
- package/package.json +3 -6
- package/types/index.d.ts +44 -425
- package/build/apigroups/aiAgentsV2/agent.js +0 -3
- package/build/apigroups/aiAgentsV2/agentAPI.js +0 -38
- package/build/apigroups/aiAgentsV2/agentPersona.js +0 -3
- package/build/apigroups/aiAgentsV2/agentPersonaAPI.js +0 -38
- package/build/apigroups/aiAgentsV2/tool.js +0 -3
- package/build/apigroups/aiAgentsV2/toolAPI.js +0 -35
- package/build/apigroups/aiAgentsV2/toolDescriptor.js +0 -3
- package/build/apigroups/aiAgentsV2/toolDescriptorAPI.js +0 -13
- package/build/spec/aiAgentV2.spec.js +0 -564
- package/dist/esm/apigroups/aiAgentsV2/agent.js +0 -2
- package/dist/esm/apigroups/aiAgentsV2/agentAPI.js +0 -24
- package/dist/esm/apigroups/aiAgentsV2/agentPersona.js +0 -2
- package/dist/esm/apigroups/aiAgentsV2/agentPersonaAPI.js +0 -24
- package/dist/esm/apigroups/aiAgentsV2/aiAgentV2API.js +0 -2
- package/dist/esm/apigroups/aiAgentsV2/tool.js +0 -2
- package/dist/esm/apigroups/aiAgentsV2/toolAPI.js +0 -21
- package/dist/esm/apigroups/aiAgentsV2/toolDescriptor.js +0 -2
- package/dist/esm/apigroups/aiAgentsV2/toolDescriptorAPI.js +0 -9
- package/dist/esm/spec/aiAgentV2.spec.js +0 -563
|
@@ -3,62 +3,78 @@ import { GenericAPIFn } from "../GenericAPIFn";
|
|
|
3
3
|
import { stringifyQuery } from "../shared/helper/rest/query";
|
|
4
4
|
import { GenericUploadFn } from "../GenericUploadFn";
|
|
5
5
|
import { GenericTusFn } from "../GenericTusFn";
|
|
6
|
-
import { addAgentAPIs } from "./aiAgentsV2/agentAPI";
|
|
7
|
-
import { addAgentPersonaAPIs } from "./aiAgentsV2/agentPersonaAPI";
|
|
8
|
-
import { addToolDescriptorAPIs } from "./aiAgentsV2/toolDescriptorAPI";
|
|
9
|
-
import { addToolAPIs } from "./aiAgentsV2/toolAPI";
|
|
10
6
|
export const ResourcesAPIGroup_2_0 = (instance) => {
|
|
11
7
|
const self = instance;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, agentAPIs), agentPersonaAPIs), toolDescriptorAPIs), toolAPIs), { searchResources: (args, options) => GenericAPIFn(`/new/v2.0/search?${stringifyQuery(args)}`, "GET", self)(undefined, options), indexFlows: (args, options) => GenericAPIFn(`/new/v2.0/flows?${stringifyQuery(args)}`, "GET", self)(undefined, options), batchFlows: (_a, options) => {
|
|
8
|
+
return {
|
|
9
|
+
searchResources: (args, options) => GenericAPIFn(`/new/v2.0/search?${stringifyQuery(args)}`, "GET", self)(undefined, options),
|
|
10
|
+
indexFlows: (args, options) => GenericAPIFn(`/new/v2.0/flows?${stringifyQuery(args)}`, "GET", self)(undefined, options),
|
|
11
|
+
batchFlows: (_a, options) => {
|
|
17
12
|
var { projectId } = _a, args = __rest(_a, ["projectId"]);
|
|
18
13
|
return GenericAPIFn(`/new/v2.0/flows?${stringifyQuery({ projectId })}`, "PATCH", self)(args, options);
|
|
19
|
-
},
|
|
14
|
+
},
|
|
15
|
+
createChildFlow: (_a, options) => {
|
|
20
16
|
var { flowId } = _a, args = __rest(_a, ["flowId"]);
|
|
21
17
|
return GenericAPIFn(`/new/v2.0/flows/${flowId}/chart/nodes/childflow`, "POST", self)(args, options);
|
|
22
|
-
},
|
|
18
|
+
},
|
|
19
|
+
createFlow: (args, options) => GenericAPIFn("/new/v2.0/flows", "POST", self)(args, options),
|
|
20
|
+
readFlow: (_a, options) => {
|
|
23
21
|
var { flowId } = _a, args = __rest(_a, ["flowId"]);
|
|
24
22
|
return GenericAPIFn(`/new/v2.0/flows/${flowId}?${stringifyQuery(args)}`, "GET", self)(undefined, options);
|
|
25
|
-
},
|
|
23
|
+
},
|
|
24
|
+
updateFlow: (_a, options) => {
|
|
26
25
|
var { flowId } = _a, args = __rest(_a, ["flowId"]);
|
|
27
26
|
return GenericAPIFn(`/new/v2.0/flows/${flowId}`, "PATCH", self)(args, options);
|
|
28
|
-
},
|
|
27
|
+
},
|
|
28
|
+
deleteFlow: (args, options) => GenericAPIFn(`/new/v2.0/flows/${args.flowId}`, "DELETE", self)(undefined, options),
|
|
29
|
+
cloneFlow: (_a, options) => {
|
|
29
30
|
var { flowId } = _a, args = __rest(_a, ["flowId"]);
|
|
30
31
|
return GenericAPIFn(`/new/v2.0/flows/${flowId}/clone`, "POST", self)(args, options);
|
|
31
|
-
},
|
|
32
|
+
},
|
|
33
|
+
addFlowLocalization: (_a, options) => {
|
|
32
34
|
var { flowId } = _a, args = __rest(_a, ["flowId"]);
|
|
33
35
|
return GenericAPIFn(`/new/v2.0/flows/${flowId}/addlocalization`, "POST", self)(args, options);
|
|
34
|
-
},
|
|
36
|
+
},
|
|
37
|
+
removeFlowLocalization: (_a, options) => {
|
|
35
38
|
var { flowId } = _a, args = __rest(_a, ["flowId"]);
|
|
36
39
|
return GenericAPIFn(`/new/v2.0/flows/${flowId}/removelocalization`, "POST", self)(args, options);
|
|
37
|
-
},
|
|
40
|
+
},
|
|
41
|
+
indexFlowStates: (_a, options) => {
|
|
38
42
|
var { flowId } = _a, args = __rest(_a, ["flowId"]);
|
|
39
43
|
return GenericAPIFn(`/new/v2.0/flows/${flowId}/states?${stringifyQuery(args)}`, "GET", self)(undefined, options);
|
|
40
|
-
},
|
|
44
|
+
},
|
|
45
|
+
batchFlowStates: (_a, options) => {
|
|
41
46
|
var { flowId } = _a, args = __rest(_a, ["flowId"]);
|
|
42
47
|
return GenericAPIFn(`/new/v2.0/flows/${flowId}/states`, "PATCH", self)(args, options);
|
|
43
|
-
},
|
|
48
|
+
},
|
|
49
|
+
createFlowState: (_a, options) => {
|
|
44
50
|
var { flowId } = _a, args = __rest(_a, ["flowId"]);
|
|
45
51
|
return GenericAPIFn(`/new/v2.0/flows/${flowId}/states`, "POST", self)(args, options);
|
|
46
|
-
},
|
|
52
|
+
},
|
|
53
|
+
readFlowState: ({ flowId, stateId }, options) => GenericAPIFn(`/new/v2.0/flows/${flowId}/states/${stateId}`, "GET", self)(undefined, options),
|
|
54
|
+
updateFlowState: (_a, options) => {
|
|
47
55
|
var { flowId, stateId } = _a, args = __rest(_a, ["flowId", "stateId"]);
|
|
48
56
|
return GenericAPIFn(`/new/v2.0/flows/${flowId}/states/${stateId}`, "PATCH", self)(args, options);
|
|
49
|
-
},
|
|
57
|
+
},
|
|
58
|
+
deleteFlowState: ({ flowId, stateId }, options) => GenericAPIFn(`/new/v2.0/flows/${flowId}/states/${stateId}`, "DELETE", self)(undefined, options),
|
|
59
|
+
addIntentToFlowState: (_a, options) => {
|
|
50
60
|
var { flowId, stateId } = _a, args = __rest(_a, ["flowId", "stateId"]);
|
|
51
61
|
return GenericAPIFn(`/new/v2.0/flows/${flowId}/states/${stateId}/addintent`, "POST", self)(args, options);
|
|
52
|
-
},
|
|
62
|
+
},
|
|
63
|
+
removeIntentFromFlowState: (_a, options) => {
|
|
53
64
|
var { flowId, stateId } = _a, args = __rest(_a, ["flowId", "stateId"]);
|
|
54
65
|
return GenericAPIFn(`/new/v2.0/flows/${flowId}/states/${stateId}/removeintent`, "POST", self)(args, options);
|
|
55
|
-
},
|
|
66
|
+
},
|
|
67
|
+
readFlowSettings: ({ flowId }, options) => GenericAPIFn(`/new/v2.0/flows/${flowId}/settings`, "GET", self)(undefined, options),
|
|
68
|
+
updateFlowSettings: (_a, options) => {
|
|
56
69
|
var { flowId } = _a, args = __rest(_a, ["flowId"]);
|
|
57
70
|
return GenericAPIFn(`/new/v2.0/flows/${flowId}/settings`, "PATCH", self)(args, options);
|
|
58
|
-
},
|
|
71
|
+
},
|
|
72
|
+
indexLexicons: (args, options) => GenericAPIFn(`/new/v2.0/lexicons?${stringifyQuery(args)}`, "GET", self)(undefined, options),
|
|
73
|
+
batchLexicons: (_a, options) => {
|
|
59
74
|
var { projectId } = _a, args = __rest(_a, ["projectId"]);
|
|
60
75
|
return GenericAPIFn(`/new/v2.0/lexicons?${stringifyQuery({ projectId })}`, "PATCH", self)(args, options);
|
|
61
|
-
},
|
|
76
|
+
},
|
|
77
|
+
createLexicon: (_a, options) => {
|
|
62
78
|
var { shouldGenerateLexiconEntries, shouldGenerateSynonyms, generateLexiconEntriesLimit, defaultSlot, languageCode } = _a, args = __rest(_a, ["shouldGenerateLexiconEntries", "shouldGenerateSynonyms", "generateLexiconEntriesLimit", "defaultSlot", "languageCode"]);
|
|
63
79
|
return GenericAPIFn(`/new/v2.0/lexicons?${stringifyQuery({
|
|
64
80
|
shouldGenerateLexiconEntries,
|
|
@@ -67,333 +83,567 @@ export const ResourcesAPIGroup_2_0 = (instance) => {
|
|
|
67
83
|
defaultSlot,
|
|
68
84
|
languageCode
|
|
69
85
|
})}`, "POST", self)(args, options);
|
|
70
|
-
},
|
|
86
|
+
},
|
|
87
|
+
readLexicon: ({ lexiconId, metaOnly }, options) => GenericAPIFn(`/new/v2.0/lexicons/${lexiconId}?${stringifyQuery({ metaOnly })}`, "GET", self)(undefined, options),
|
|
88
|
+
updateLexicon: (_a, options) => {
|
|
71
89
|
var { lexiconId } = _a, args = __rest(_a, ["lexiconId"]);
|
|
72
90
|
return GenericAPIFn(`/new/v2.0/lexicons/${lexiconId}`, "PATCH", self)(args, options);
|
|
73
|
-
},
|
|
91
|
+
},
|
|
92
|
+
deleteLexicon: (args, options) => GenericAPIFn(`/new/v2.0/lexicons/${args.lexiconId}`, "DELETE", self)(undefined, options),
|
|
93
|
+
indexLexiconEntries: (_a, options) => {
|
|
74
94
|
var { lexiconId } = _a, args = __rest(_a, ["lexiconId"]);
|
|
75
95
|
return GenericAPIFn(`/new/v2.0/lexicons/${lexiconId}/entries?${stringifyQuery(args)}`, "GET", self)(undefined, options);
|
|
76
|
-
},
|
|
96
|
+
},
|
|
97
|
+
batchLexiconEntries: (_a, options) => {
|
|
77
98
|
var { lexiconId } = _a, args = __rest(_a, ["lexiconId"]);
|
|
78
99
|
return GenericAPIFn(`/new/v2.0/lexicons/${lexiconId}/entries`, "PATCH", self)(args, options);
|
|
79
|
-
},
|
|
100
|
+
},
|
|
101
|
+
createLexiconEntry: (_a, options) => {
|
|
80
102
|
var { lexiconId } = _a, args = __rest(_a, ["lexiconId"]);
|
|
81
103
|
return GenericAPIFn(`/new/v2.0/lexicons/${lexiconId}/entries`, "POST", self)(args, options);
|
|
82
|
-
},
|
|
104
|
+
},
|
|
105
|
+
updateLexiconEntry: (_a, options) => {
|
|
83
106
|
var { lexiconId, entryId } = _a, args = __rest(_a, ["lexiconId", "entryId"]);
|
|
84
107
|
return GenericAPIFn(`/new/v2.0/lexicons/${lexiconId}/entries/${entryId}`, "PATCH", self)(args, options);
|
|
85
|
-
},
|
|
108
|
+
},
|
|
109
|
+
deleteLexiconEntry: ({ lexiconId, entryId }, options) => GenericAPIFn(`/new/v2.0/lexicons/${lexiconId}/entries/${entryId}`, "DELETE", self)(undefined, options),
|
|
110
|
+
indexLexiconEntryKeyphrases: (_a, options) => {
|
|
86
111
|
var { lexiconId, entryId } = _a, args = __rest(_a, ["lexiconId", "entryId"]);
|
|
87
112
|
return GenericAPIFn(`/new/v2.0/lexicons/${lexiconId}/entries/${entryId}/keyphrases?${stringifyQuery(args)}`, "GET", self)(undefined, options);
|
|
88
|
-
},
|
|
113
|
+
},
|
|
114
|
+
addKeyphraseToLexiconEntry: (_a, options) => {
|
|
89
115
|
var { lexiconId, entryId } = _a, args = __rest(_a, ["lexiconId", "entryId"]);
|
|
90
116
|
return GenericAPIFn(`/new/v2.0/lexicons/${lexiconId}/entries/${entryId}/keyphrases`, "POST", self)(args, options);
|
|
91
|
-
},
|
|
117
|
+
},
|
|
118
|
+
removeKeyphraseFromLexiconEntry: ({ lexiconId, entryId, keyphraseId }, options) => GenericAPIFn(`/new/v2.0/lexicons/${lexiconId}/entries/${entryId}/keyphrases/${keyphraseId}`, "POST", self)(undefined, options),
|
|
119
|
+
indexLexiconKeyphrases: (_a, options) => {
|
|
92
120
|
var { lexiconId } = _a, args = __rest(_a, ["lexiconId"]);
|
|
93
121
|
return GenericAPIFn(`/new/v2.0/lexicons/${lexiconId}/keyphrases?${stringifyQuery(args)}`, "GET", self)(undefined, options);
|
|
94
|
-
},
|
|
122
|
+
},
|
|
123
|
+
updateLexiconKeyphrase: (_a, options) => {
|
|
95
124
|
var { lexiconId, keyphraseId } = _a, args = __rest(_a, ["lexiconId", "keyphraseId"]);
|
|
96
125
|
return GenericAPIFn(`/new/v2.0/lexicons/${lexiconId}/keyphrases/${keyphraseId}`, "PATCH", self)(args, options);
|
|
97
|
-
},
|
|
126
|
+
},
|
|
127
|
+
indexLexiconSlots: (_a, options) => {
|
|
98
128
|
var { lexiconId } = _a, args = __rest(_a, ["lexiconId"]);
|
|
99
129
|
return GenericAPIFn(`/new/v2.0/lexicons/${lexiconId}/slots?${stringifyQuery(args)}`, "GET", self)(undefined, options);
|
|
100
|
-
},
|
|
130
|
+
},
|
|
131
|
+
batchLexiconSlots: (_a, options) => {
|
|
101
132
|
var { lexiconId } = _a, args = __rest(_a, ["lexiconId"]);
|
|
102
133
|
return GenericAPIFn(`/new/v2.0/lexicons/${lexiconId}/slots`, "PATCH", self)(args, options);
|
|
103
|
-
},
|
|
134
|
+
},
|
|
135
|
+
createLexiconSlot: (_a, options) => {
|
|
104
136
|
var { lexiconId } = _a, args = __rest(_a, ["lexiconId"]);
|
|
105
137
|
return GenericAPIFn(`/new/v2.0/lexicons/${lexiconId}/slots`, "POST", self)(args, options);
|
|
106
|
-
},
|
|
138
|
+
},
|
|
139
|
+
updateLexiconSlot: (_a, options) => {
|
|
107
140
|
var { lexiconId, slotId } = _a, args = __rest(_a, ["lexiconId", "slotId"]);
|
|
108
141
|
return GenericAPIFn(`/new/v2.0/lexicons/${lexiconId}/slots/${slotId}`, "PATCH", self)(args, options);
|
|
109
|
-
},
|
|
142
|
+
},
|
|
143
|
+
deleteLexiconSlot: ({ lexiconId, slotId }, options) => GenericAPIFn(`/new/v2.0/lexicons/${lexiconId}/slots/${slotId}`, "DELETE", self)(undefined, options),
|
|
144
|
+
addSlotToLexiconEntry: (_a, options) => {
|
|
110
145
|
var { lexiconId, entryId } = _a, args = __rest(_a, ["lexiconId", "entryId"]);
|
|
111
146
|
return GenericAPIFn(`/new/v2.0/lexicons/${lexiconId}/entries/${entryId}/slots`, "POST", self)(args, options);
|
|
112
|
-
},
|
|
147
|
+
},
|
|
148
|
+
removeSlotFromLexiconEntry: ({ lexiconId, entryId, slotId }, options) => GenericAPIFn(`/new/v2.0/lexicons/${lexiconId}/entries/${entryId}/slots/${slotId}`, "POST", self)(undefined, options),
|
|
149
|
+
importIntoLexicon: (_a, options) => {
|
|
113
150
|
var { lexiconId } = _a, args = __rest(_a, ["lexiconId"]);
|
|
114
151
|
return GenericUploadFn(`/new/v2.0/lexicons/${lexiconId}/import`, "POST", self)(args, options);
|
|
115
|
-
},
|
|
152
|
+
},
|
|
153
|
+
exportFromLexicon: ({ lexiconId }, options) => GenericAPIFn(`/new/v2.0/lexicons/${lexiconId}/export`, "GET", self)(undefined, options),
|
|
154
|
+
composeLexiconDownloadLink: ({ lexiconId }, options) => GenericAPIFn(`/new/v2.0/lexicons/${lexiconId}/downloadlink`, "POST", self)(undefined, options),
|
|
155
|
+
indexEndpoints: (args, options) => GenericAPIFn(`/new/v2.0/endpoints?${stringifyQuery(args)}`, "GET", self)(undefined, options),
|
|
156
|
+
batchEndpoints: (_a, options) => {
|
|
116
157
|
var { projectId } = _a, args = __rest(_a, ["projectId"]);
|
|
117
158
|
return GenericAPIFn(`/new/v2.0/endpoints?${stringifyQuery({ projectId })}`, "PATCH", self)(args, options);
|
|
118
|
-
},
|
|
159
|
+
},
|
|
160
|
+
createEndpoint: (args, options) => GenericAPIFn("/new/v2.0/endpoints", "POST", self)(args, options),
|
|
161
|
+
readEndpoint: (args, options) => GenericAPIFn(`/new/v2.0/endpoints/${args.endpointId}`, "GET", self)(undefined, options),
|
|
162
|
+
updateEndpoint: (_a, options) => {
|
|
119
163
|
var { endpointId } = _a, args = __rest(_a, ["endpointId"]);
|
|
120
164
|
return GenericAPIFn(`/new/v2.0/endpoints/${endpointId}`, "PATCH", self)(args, options);
|
|
121
|
-
},
|
|
165
|
+
},
|
|
166
|
+
deleteEndpoint: (args, options) => {
|
|
122
167
|
return GenericAPIFn(`/new/v2.0/endpoints/${args.endpointId}?channelType=${args === null || args === void 0 ? void 0 : args.channelType}`, "DELETE", self)(undefined, options);
|
|
123
|
-
},
|
|
168
|
+
},
|
|
169
|
+
indexGoals: (args, options) => GenericAPIFn(`/new/v2.0/goals?${stringifyQuery(args)}`, "GET", self)(undefined, options),
|
|
170
|
+
createGoal: (args, options) => GenericAPIFn("/new/v2.0/goals", "POST", self)(args, options),
|
|
171
|
+
readGoal: (args, options) => GenericAPIFn(`/new/v2.0/goals/${args.goalId}`, "GET", self)(undefined, options),
|
|
172
|
+
updateGoal: (_a, options) => {
|
|
124
173
|
var { goalId } = _a, args = __rest(_a, ["goalId"]);
|
|
125
174
|
return GenericAPIFn(`/new/v2.0/goals/${goalId}`, "PATCH", self)(args, options);
|
|
126
|
-
},
|
|
175
|
+
},
|
|
176
|
+
deleteGoal: (args, options) => GenericAPIFn(`/new/v2.0/goals/${args.goalId}`, "DELETE", self)(undefined, options),
|
|
177
|
+
indexHandoverServices: (args, options) => GenericAPIFn(`/new/v2.0/handover/services?${stringifyQuery(args)}`, "GET", self)(undefined, options),
|
|
178
|
+
indexHandoverProviders: (args, options) => GenericAPIFn(`/new/v2.0/handover/providers?${stringifyQuery(args)}`, "GET", self)(undefined, options),
|
|
179
|
+
createHandoverProvider: (args, options) => GenericAPIFn("/new/v2.0/handover/providers", "POST", self)(args, options),
|
|
180
|
+
readHandoverProvider: (args, options) => GenericAPIFn(`/new/v2.0/handover/providers/${args.handoverProviderId}`, "GET", self)(undefined, options),
|
|
181
|
+
updateHandoverProvider: (_a, options) => {
|
|
127
182
|
var { handoverProviderId } = _a, args = __rest(_a, ["handoverProviderId"]);
|
|
128
183
|
return GenericAPIFn(`/new/v2.0/handover/providers/${handoverProviderId}`, "PATCH", self)(args, options);
|
|
129
|
-
},
|
|
184
|
+
},
|
|
185
|
+
deleteHandoverProvider: (args, options) => GenericAPIFn(`/new/v2.0/handover/providers/${args.handoverProviderId}?${stringifyQuery({ projectId: args.projectId })}`, "DELETE", self)(undefined, options),
|
|
186
|
+
indexPlaybooks: (args, options) => GenericAPIFn(`/new/v2.0/playbooks?${stringifyQuery(args)}`, "GET", self)(undefined, options),
|
|
187
|
+
batchPlaybooks: (_a, options) => {
|
|
130
188
|
var { projectId } = _a, args = __rest(_a, ["projectId"]);
|
|
131
189
|
return GenericAPIFn(`/new/v2.0/playbooks?${stringifyQuery({ projectId })}`, "PATCH", self)(args, options);
|
|
132
|
-
},
|
|
190
|
+
},
|
|
191
|
+
createPlaybook: (args, options) => GenericAPIFn("/new/v2.0/playbooks", "POST", self)(args, options),
|
|
192
|
+
readPlaybook: (args, options) => GenericAPIFn(`/new/v2.0/playbooks/${args.playbookId}`, "GET", self)(undefined, options),
|
|
193
|
+
updatePlaybook: (_a, options) => {
|
|
133
194
|
var { playbookId } = _a, args = __rest(_a, ["playbookId"]);
|
|
134
195
|
return GenericAPIFn(`/new/v2.0/playbooks/${playbookId}`, "PATCH", self)(args, options);
|
|
135
|
-
},
|
|
196
|
+
},
|
|
197
|
+
deletePlaybook: (args, options) => GenericAPIFn(`/new/v2.0/playbooks/${args.playbookId}`, "DELETE", self)(undefined, options),
|
|
198
|
+
schedulePlaybook: (args, options) => GenericAPIFn(`/new/v2.0/playbooks/${args.playbookId}/schedule`, "POST", self)(args, options),
|
|
199
|
+
createPlaybookStep: (_a, options) => {
|
|
136
200
|
var { playbookId } = _a, args = __rest(_a, ["playbookId"]);
|
|
137
201
|
return GenericAPIFn(`/new/v2.0/playbooks/${playbookId}/steps`, "POST", self)(args, options);
|
|
138
|
-
},
|
|
202
|
+
},
|
|
203
|
+
updatePlaybookStep: (_a, options) => {
|
|
139
204
|
var { playbookId, stepId } = _a, args = __rest(_a, ["playbookId", "stepId"]);
|
|
140
205
|
return GenericAPIFn(`/new/v2.0/playbooks/${playbookId}/steps/${stepId}`, "PATCH", self)(args, options);
|
|
141
|
-
},
|
|
206
|
+
},
|
|
207
|
+
deletePlaybookStep: ({ playbookId, stepId }, options) => GenericAPIFn(`/new/v2.0/playbooks/${playbookId}/steps/${stepId}`, "DELETE", self)(undefined, options),
|
|
208
|
+
createPlaybookStepAssert: (_a, options) => {
|
|
142
209
|
var { playbookId, stepId } = _a, args = __rest(_a, ["playbookId", "stepId"]);
|
|
143
210
|
return GenericAPIFn(`/new/v2.0/playbooks/${playbookId}/steps/${stepId}/asserts`, "POST", self)(args, options);
|
|
144
|
-
},
|
|
211
|
+
},
|
|
212
|
+
updatePlaybookStepAssert: (_a, options) => {
|
|
145
213
|
var { playbookId, stepId, assertId } = _a, args = __rest(_a, ["playbookId", "stepId", "assertId"]);
|
|
146
214
|
return GenericAPIFn(`/new/v2.0/playbooks/${playbookId}/steps/${stepId}/asserts/${assertId}`, "PATCH", self)(args, options);
|
|
147
|
-
},
|
|
215
|
+
},
|
|
216
|
+
deletePlaybookStepAssert: ({ playbookId, stepId, assertId }, options) => GenericAPIFn(`/new/v2.0/playbooks/${playbookId}/steps/${stepId}/asserts/${assertId}`, "DELETE", self)(undefined, options),
|
|
217
|
+
changePlaybookStepOrder: (_a, options) => {
|
|
148
218
|
var { playbookId } = _a, args = __rest(_a, ["playbookId"]);
|
|
149
219
|
return GenericAPIFn(`/new/v2.0/playbooks/${playbookId}/steps/order`, "POST", self)(args, options);
|
|
150
|
-
},
|
|
220
|
+
},
|
|
221
|
+
indexPlaybookRuns: (_a, options) => {
|
|
151
222
|
var { playbookId } = _a, args = __rest(_a, ["playbookId"]);
|
|
152
223
|
return GenericAPIFn(`/new/v2.0/playbooks/${playbookId}/runs?${stringifyQuery(args)}`, "GET", self)(args, options);
|
|
153
|
-
},
|
|
224
|
+
},
|
|
225
|
+
readPlaybookRun: (_a, options) => {
|
|
154
226
|
var { playbookId, playbookRunId } = _a, args = __rest(_a, ["playbookId", "playbookRunId"]);
|
|
155
227
|
return GenericAPIFn(`/new/v2.0/playbooks/${playbookId}/runs/${playbookRunId}`, "GET", self)(undefined, options);
|
|
156
|
-
},
|
|
228
|
+
},
|
|
229
|
+
deletePlaybookRun: ({ playbookId, playbookRunId }, options) => GenericAPIFn(`/new/v2.0/playbooks/${playbookId}/runs/${playbookRunId}`, "DELETE", self)(undefined, options),
|
|
230
|
+
indexProjects: (args, options) => GenericAPIFn(`/new/v2.0/projects?${stringifyQuery(args)}`, "GET", self)(args, options),
|
|
231
|
+
createProject: (args, options) => GenericAPIFn("/new/v2.0/projects", "POST", self)(args, options),
|
|
232
|
+
createProjectByTemplate: (args, options) => GenericAPIFn("/new/v2.0/projects/createbytemplate", "POST", self)(args, options),
|
|
233
|
+
readProject: ({ projectId }, options) => GenericAPIFn(`/new/v2.0/projects/${projectId}`, "GET", self)(undefined, options),
|
|
234
|
+
updateProject: (_a, options) => {
|
|
157
235
|
var { projectId } = _a, args = __rest(_a, ["projectId"]);
|
|
158
236
|
return GenericAPIFn(`/new/v2.0/projects/${projectId}`, "PATCH", self)(args, options);
|
|
159
|
-
},
|
|
237
|
+
},
|
|
238
|
+
deleteProject: (args, options) => GenericAPIFn(`/new/v2.0/projects/${args.projectId}`, "DELETE", self)(undefined, options),
|
|
239
|
+
validateProjectName: (args, options) => GenericAPIFn("/new/v2.0/projects/validateprojectname", "POST", self)(args, options),
|
|
240
|
+
graphProject: (_a, options) => {
|
|
160
241
|
var { projectId } = _a, args = __rest(_a, ["projectId"]);
|
|
161
242
|
return GenericAPIFn(`/new/v2.0/projects/${projectId}/graph?${stringifyQuery(args)}`, "GET", self)(args, options);
|
|
162
|
-
},
|
|
243
|
+
},
|
|
244
|
+
trainAllProjectFlows: ({ projectId }, options) => GenericAPIFn(`/new/v2.0/projects/${projectId}/trainallflows`, "POST", self)(options),
|
|
245
|
+
readProjectSettings: ({ projectId }, options) => GenericAPIFn(`/new/v2.0/projects/${projectId}/settings`, "GET", self)(undefined, options),
|
|
246
|
+
updateProjectSettings: (_a, options) => {
|
|
163
247
|
var { projectId } = _a, args = __rest(_a, ["projectId"]);
|
|
164
248
|
return GenericAPIFn(`/new/v2.0/projects/${projectId}/settings`, "PATCH", self)(args, options);
|
|
165
|
-
},
|
|
249
|
+
},
|
|
250
|
+
setupCognigyGenerativeAI: ({ projectId }, options) => GenericAPIFn(`/new/v2.0/projects/${projectId}/settings/setupgenerativeai`, "POST", self)(options),
|
|
251
|
+
indexSnippets: (_a, options) => {
|
|
166
252
|
var { projectId } = _a, args = __rest(_a, ["projectId"]);
|
|
167
253
|
return GenericAPIFn(`/new/v2.0/projects/${projectId}/snippets?${stringifyQuery(args)}`, "GET", self)(undefined, options);
|
|
168
|
-
},
|
|
254
|
+
},
|
|
255
|
+
createSnippet: (_a, options) => {
|
|
169
256
|
var { projectId } = _a, args = __rest(_a, ["projectId"]);
|
|
170
257
|
return GenericAPIFn(`/new/v2.0/projects/${projectId}/snippets`, "POST", self)(args, options);
|
|
171
|
-
},
|
|
258
|
+
},
|
|
259
|
+
deleteSnippet: ({ projectId, snippetId }, options) => GenericAPIFn(`/new/v2.0/projects/${projectId}/snippets/${snippetId}`, "DELETE", self)(undefined, options),
|
|
260
|
+
readChart: (_a, options) => {
|
|
172
261
|
var { resourceId, resourceType } = _a, args = __rest(_a, ["resourceId", "resourceType"]);
|
|
173
262
|
return GenericAPIFn(`/new/v2.0/${resourceType}s/${resourceId}/chart?${stringifyQuery(args)}`, "GET", self)(undefined, options);
|
|
174
|
-
},
|
|
263
|
+
},
|
|
264
|
+
indexChartNodes: (_a, options) => {
|
|
175
265
|
var { resourceId, resourceType } = _a, args = __rest(_a, ["resourceId", "resourceType"]);
|
|
176
266
|
return GenericAPIFn(`/new/v2.0/${resourceType}s/${resourceId}/chart/nodes?${stringifyQuery(args)}`, "GET", self)(undefined, options);
|
|
177
|
-
},
|
|
267
|
+
},
|
|
268
|
+
createChartNode: (_a, options) => {
|
|
178
269
|
var { resourceId, resourceType } = _a, args = __rest(_a, ["resourceId", "resourceType"]);
|
|
179
270
|
return GenericAPIFn(`/new/v2.0/${resourceType}s/${resourceId}/chart/nodes`, "POST", self)(args, options);
|
|
180
|
-
},
|
|
271
|
+
},
|
|
272
|
+
searchChartNodes: (_a, options) => {
|
|
181
273
|
var { resourceId, resourceType } = _a, args = __rest(_a, ["resourceId", "resourceType"]);
|
|
182
274
|
return GenericAPIFn(`/new/v2.0/${resourceType}s/${resourceId}/chart/nodes/search?${stringifyQuery(args)}`, "GET", self)(args, options);
|
|
183
|
-
},
|
|
275
|
+
},
|
|
276
|
+
readChartNode: (_a, options) => {
|
|
184
277
|
var { resourceId, resourceType, nodeId } = _a, args = __rest(_a, ["resourceId", "resourceType", "nodeId"]);
|
|
185
278
|
return GenericAPIFn(`/new/v2.0/${resourceType}s/${resourceId}/chart/nodes/${nodeId}?${stringifyQuery(args)}`, "GET", self)(undefined, options);
|
|
186
|
-
},
|
|
279
|
+
},
|
|
280
|
+
updateChartNode: (_a, options) => {
|
|
187
281
|
var { resourceId, resourceType, nodeId } = _a, args = __rest(_a, ["resourceId", "resourceType", "nodeId"]);
|
|
188
282
|
return GenericAPIFn(`/new/v2.0/${resourceType}s/${resourceId}/chart/nodes/${nodeId}`, "PATCH", self)(args, options);
|
|
189
|
-
},
|
|
283
|
+
},
|
|
284
|
+
deleteChartNode: ({ resourceId, resourceType, nodeId }, options) => GenericAPIFn(`/new/v2.0/${resourceType}s/${resourceId}/chart/nodes/${nodeId}`, "DELETE", self)(undefined, options),
|
|
285
|
+
addChartNodeLocalization: (_a, options) => {
|
|
190
286
|
var { resourceId, resourceType, nodeId } = _a, args = __rest(_a, ["resourceId", "resourceType", "nodeId"]);
|
|
191
287
|
return GenericAPIFn(`/new/v2.0/${resourceType}s/${resourceId}/chart/nodes/${nodeId}/addlocalization`, "POST", self)(args, options);
|
|
192
|
-
},
|
|
288
|
+
},
|
|
289
|
+
removeChartNodeLocalization: (_a, options) => {
|
|
193
290
|
var { resourceId, resourceType, nodeId } = _a, args = __rest(_a, ["resourceId", "resourceType", "nodeId"]);
|
|
194
291
|
return GenericAPIFn(`/new/v2.0/${resourceType}s/${resourceId}/chart/nodes/${nodeId}/removelocalization`, "POST", self)(args, options);
|
|
195
|
-
},
|
|
292
|
+
},
|
|
293
|
+
moveChartNode: (_a, options) => {
|
|
196
294
|
var { resourceId, resourceType, nodeId } = _a, args = __rest(_a, ["resourceId", "resourceType", "nodeId"]);
|
|
197
295
|
return GenericAPIFn(`/new/v2.0/${resourceType}s/${resourceId}/chart/nodes/${nodeId}/move`, "POST", self)(args, options);
|
|
198
|
-
},
|
|
296
|
+
},
|
|
297
|
+
copyChartNode: ({ resourceId, resourceType, nodeId }, options) => GenericAPIFn(`/new/v2.0/${resourceType}s/${resourceId}/chart/nodes/${nodeId}/copy`, "POST", self)(undefined, options),
|
|
298
|
+
cutChartNode: ({ resourceId, resourceType, nodeId }, options) => GenericAPIFn(`/new/v2.0/${resourceType}s/${resourceId}/chart/nodes/${nodeId}/cut`, "POST", self)(undefined, options),
|
|
299
|
+
pasteChartNode: ({ resourceId, resourceType, nodeId }, options) => GenericAPIFn(`/new/v2.0/${resourceType}s/${resourceId}/chart/nodes/${nodeId}/paste`, "POST", self)(undefined, options),
|
|
300
|
+
undoChart: ({ resourceId, resourceType }, options) => GenericAPIFn(`/new/v2.0/${resourceType}s/${resourceId}/chart/undo`, "POST", self)(undefined, options),
|
|
301
|
+
redoChart: ({ resourceId, resourceType }, options) => GenericAPIFn(`/new/v2.0/${resourceType}s/${resourceId}/chart/redo`, "POST", self)(undefined, options),
|
|
302
|
+
getUndoRedoSteps: ({ resourceId, resourceType }, options) => GenericAPIFn(`/new/v2.0/${resourceType}s/${resourceId}/chart/undoredosteps`, "GET", self)(undefined, options),
|
|
303
|
+
indexNodeDescriptors: ({ resourceType, resourceId }, options) => GenericAPIFn(`/new/v2.0/${resourceType}s/${resourceId}/chart/descriptors`, "GET", self)(undefined, options),
|
|
304
|
+
indexIntents: (_a, options) => {
|
|
199
305
|
var { flowId } = _a, args = __rest(_a, ["flowId"]);
|
|
200
306
|
return GenericAPIFn(`/new/v2.0/flows/${flowId}/intents?${stringifyQuery(args)}`, "GET", self)(undefined, options);
|
|
201
|
-
},
|
|
307
|
+
},
|
|
308
|
+
batchIntents: (_a, options) => {
|
|
202
309
|
var { flowId } = _a, args = __rest(_a, ["flowId"]);
|
|
203
310
|
return GenericAPIFn(`/new/v2.0/flows/${flowId}/intents`, "PATCH", self)(args, options);
|
|
204
|
-
},
|
|
311
|
+
},
|
|
312
|
+
createIntent: (_a, options) => {
|
|
205
313
|
var { flowId, shouldGenerateSentences, generateSentenceLimit } = _a, args = __rest(_a, ["flowId", "shouldGenerateSentences", "generateSentenceLimit"]);
|
|
206
314
|
return GenericAPIFn(`/new/v2.0/flows/${flowId}/intents?${stringifyQuery({
|
|
207
315
|
shouldGenerateSentences,
|
|
208
316
|
generateSentenceLimit
|
|
209
317
|
})}`, "POST", self)(args, options);
|
|
210
|
-
},
|
|
318
|
+
},
|
|
319
|
+
readIntent: (_a, options) => {
|
|
211
320
|
var { intentId, flowId } = _a, args = __rest(_a, ["intentId", "flowId"]);
|
|
212
321
|
return GenericAPIFn(`/new/v2.0/flows/${flowId}/intents/${intentId}?${stringifyQuery(args)}`, "GET", self)(undefined, options);
|
|
213
|
-
},
|
|
322
|
+
},
|
|
323
|
+
updateIntent: (_a, options) => {
|
|
214
324
|
var { intentId, flowId } = _a, args = __rest(_a, ["intentId", "flowId"]);
|
|
215
325
|
return GenericAPIFn(`/new/v2.0/flows/${flowId}/intents/${intentId}`, "PATCH", self)(args, options);
|
|
216
|
-
},
|
|
326
|
+
},
|
|
327
|
+
deleteIntent: ({ intentId, flowId }, options) => GenericAPIFn(`/new/v2.0/flows/${flowId}/intents/${intentId}`, "DELETE", self)(undefined, options),
|
|
328
|
+
importIntents: (_a, options) => {
|
|
217
329
|
var { flowId } = _a, args = __rest(_a, ["flowId"]);
|
|
218
330
|
return GenericUploadFn(`/new/v2.0/flows/${flowId}/intents/import`, "POST", self)(args, options);
|
|
219
|
-
},
|
|
331
|
+
},
|
|
332
|
+
exportIntents: (_a, options) => {
|
|
220
333
|
var { flowId } = _a, args = __rest(_a, ["flowId"]);
|
|
221
334
|
return GenericAPIFn(`/new/v2.0/flows/${flowId}/intents/export`, "POST", self)(args, options);
|
|
222
|
-
},
|
|
335
|
+
},
|
|
336
|
+
addIntentLocalization: (_a, options) => {
|
|
223
337
|
var { intentId, flowId } = _a, args = __rest(_a, ["intentId", "flowId"]);
|
|
224
338
|
return GenericAPIFn(`/new/v2.0/flows/${flowId}/intents/${intentId}/addlocalization`, "POST", self)(args, options);
|
|
225
|
-
},
|
|
339
|
+
},
|
|
340
|
+
removeIntentLocalization: (_a, options) => {
|
|
226
341
|
var { intentId, flowId } = _a, args = __rest(_a, ["intentId", "flowId"]);
|
|
227
342
|
return GenericAPIFn(`/new/v2.0/flows/${flowId}/intents/${intentId}/removelocalization`, "POST", self)(args, options);
|
|
228
|
-
},
|
|
343
|
+
},
|
|
344
|
+
indexSlotFillers: (_a, options) => {
|
|
229
345
|
var { flowId } = _a, args = __rest(_a, ["flowId"]);
|
|
230
346
|
return GenericAPIFn(`/new/v2.0/flows/${flowId}/slotfillers?${stringifyQuery(args)}`, "GET", self)(undefined, options);
|
|
231
|
-
},
|
|
347
|
+
},
|
|
348
|
+
batchSlotFillers: (_a, options) => {
|
|
232
349
|
var { flowId } = _a, args = __rest(_a, ["flowId"]);
|
|
233
350
|
return GenericAPIFn(`/new/v2.0/flows/${flowId}/slotfillers`, "PATCH", self)(args, options);
|
|
234
|
-
},
|
|
351
|
+
},
|
|
352
|
+
createSlotFiller: (_a, options) => {
|
|
235
353
|
var { flowId } = _a, args = __rest(_a, ["flowId"]);
|
|
236
354
|
return GenericAPIFn(`/new/v2.0/flows/${flowId}/slotfillers`, "POST", self)(args, options);
|
|
237
|
-
},
|
|
355
|
+
},
|
|
356
|
+
readSlotFiller: (_a, options) => {
|
|
238
357
|
var { slotFillerId, flowId } = _a, args = __rest(_a, ["slotFillerId", "flowId"]);
|
|
239
358
|
return GenericAPIFn(`/new/v2.0/flows/${flowId}/slotfillers/${slotFillerId}?${stringifyQuery(args)}`, "GET", self)(undefined, options);
|
|
240
|
-
},
|
|
359
|
+
},
|
|
360
|
+
updateSlotFiller: (_a, options) => {
|
|
241
361
|
var { slotFillerId, flowId } = _a, args = __rest(_a, ["slotFillerId", "flowId"]);
|
|
242
362
|
return GenericAPIFn(`/new/v2.0/flows/${flowId}/slotfillers/${slotFillerId}`, "PATCH", self)(args, options);
|
|
243
|
-
},
|
|
363
|
+
},
|
|
364
|
+
deleteSlotFiller: ({ slotFillerId, flowId }, options) => GenericAPIFn(`/new/v2.0/flows/${flowId}/slotfillers/${slotFillerId}`, "DELETE", self)(undefined, options),
|
|
365
|
+
indexSentences: (_a, options) => {
|
|
244
366
|
var { flowId, intentId } = _a, args = __rest(_a, ["flowId", "intentId"]);
|
|
245
367
|
return GenericAPIFn(`/new/v2.0/flows/${flowId}/intents/${intentId}/sentences?${stringifyQuery(args)}`, "GET", self)(undefined, options);
|
|
246
|
-
},
|
|
368
|
+
},
|
|
369
|
+
batchIntentSentences: (_a, options) => {
|
|
247
370
|
var { flowId, intentId } = _a, args = __rest(_a, ["flowId", "intentId"]);
|
|
248
371
|
return GenericAPIFn(`/new/v2.0/flows/${flowId}/intents/${intentId}/sentences`, "PATCH", self)(args, options);
|
|
249
|
-
},
|
|
372
|
+
},
|
|
373
|
+
createSentence: (_a, options) => {
|
|
250
374
|
var { flowId, intentId } = _a, args = __rest(_a, ["flowId", "intentId"]);
|
|
251
375
|
return GenericAPIFn(`/new/v2.0/flows/${flowId}/intents/${intentId}/sentences`, "POST", self)(args, options);
|
|
252
|
-
},
|
|
376
|
+
},
|
|
377
|
+
readSentence: ({ sentenceId, intentId, flowId }, options) => GenericAPIFn(`/new/v2.0/flows/${flowId}/intents/${intentId}/sentences/${sentenceId}`, "GET", self)(undefined, options),
|
|
378
|
+
updateSentence: (_a, options) => {
|
|
253
379
|
var { flowId, intentId, sentenceId } = _a, args = __rest(_a, ["flowId", "intentId", "sentenceId"]);
|
|
254
380
|
return GenericAPIFn(`/new/v2.0/flows/${flowId}/intents/${intentId}/sentences/${sentenceId}`, "PATCH", self)(args, options);
|
|
255
|
-
},
|
|
381
|
+
},
|
|
382
|
+
deleteSentence: ({ sentenceId, intentId, flowId }, options) => GenericAPIFn(`/new/v2.0/flows/${flowId}/intents/${intentId}/sentences/${sentenceId}`, "DELETE", self)(undefined, options),
|
|
383
|
+
generateSentences: ({ intentId, flowId, localeId, limit }, options) => GenericAPIFn(`/new/v2.0/flows/${flowId}/intents/${intentId}/sentences/generate?${stringifyQuery({ localeId, limit })}`, "POST", self)(undefined, options),
|
|
384
|
+
indexLearningSentences: (_a, options) => {
|
|
256
385
|
var { flowId, intentId } = _a, args = __rest(_a, ["flowId", "intentId"]);
|
|
257
386
|
return GenericAPIFn(`/new/v2.0/flows/${flowId}/intents/learningsentences?${stringifyQuery(args)}`, "GET", self)(undefined, options);
|
|
258
|
-
},
|
|
387
|
+
},
|
|
388
|
+
readLearningSentence: ({ learningSentenceId, flowId }, options) => GenericAPIFn(`/new/v2.0/flows/${flowId}/intents/learningsentences/${learningSentenceId}`, "GET", self)(undefined, options),
|
|
389
|
+
deleteLearningSentence: ({ learningSentenceId, flowId }, options) => GenericAPIFn(`/new/v2.0/flows/${flowId}/intents/learningsentences/${learningSentenceId}`, "DELETE", self)(undefined, options),
|
|
390
|
+
indexNLUConnectors: (args, options) => GenericAPIFn(`/new/v2.0/nluconnectors?${stringifyQuery(args)}`, "GET", self)(undefined, options),
|
|
391
|
+
batchNLUConnectors: (_a, options) => {
|
|
259
392
|
var { projectId } = _a, args = __rest(_a, ["projectId"]);
|
|
260
393
|
return GenericAPIFn(`/new/v2.0/nluconnectors?${stringifyQuery({ projectId })}`, "PATCH", self)(args, options);
|
|
261
|
-
},
|
|
394
|
+
},
|
|
395
|
+
createNLUConnector: (args, options) => GenericAPIFn("/new/v2.0/nluconnectors", "POST", self)(args, options),
|
|
396
|
+
readNLUConnector: (args, options) => GenericAPIFn(`/new/v2.0/nluconnectors/${args.nluConnectorId}`, "GET", self)(undefined, options),
|
|
397
|
+
updateNLUConnector: (_a, options) => {
|
|
262
398
|
var { nluConnectorId } = _a, args = __rest(_a, ["nluConnectorId"]);
|
|
263
399
|
return GenericAPIFn(`/new/v2.0/nluconnectors/${nluConnectorId}`, "PATCH", self)(args, options);
|
|
264
|
-
},
|
|
400
|
+
},
|
|
401
|
+
deleteNLUConnector: (args, options) => GenericAPIFn(`/new/v2.0/nluconnectors/${args.nluConnectorId}`, "DELETE", self)(undefined, options),
|
|
402
|
+
indexExtensions: (args, options) => GenericAPIFn(`/new/v2.0/extensions?${stringifyQuery(args)}`, "GET", self)(undefined, options),
|
|
403
|
+
readExtension: ({ extensionId }, options) => GenericAPIFn(`/new/v2.0/extensions/${extensionId}`, "GET", self)(undefined, options),
|
|
404
|
+
deleteExtension: ({ extensionId }, options) => GenericAPIFn(`/new/v2.0/extensions/${extensionId}`, "DELETE", self)(undefined, options),
|
|
405
|
+
updateExtension: (_a, options) => {
|
|
265
406
|
var { extensionId } = _a, args = __rest(_a, ["extensionId"]);
|
|
266
407
|
return GenericAPIFn(`/new/v2.0/extensions/${extensionId}`, "PATCH", self)(args, options);
|
|
267
|
-
},
|
|
408
|
+
},
|
|
409
|
+
uploadExtension: (args, options) => (args.file
|
|
268
410
|
? GenericUploadFn("/new/v2.0/extensions/upload", "POST", self)
|
|
269
|
-
: GenericAPIFn("/new/v2.0/extensions/upload", "POST", self))(args, options),
|
|
411
|
+
: GenericAPIFn("/new/v2.0/extensions/upload", "POST", self))(args, options),
|
|
412
|
+
updateExtensionPackage: (args, options) => (args.file
|
|
270
413
|
? GenericUploadFn("/new/v2.0/extensions/update", "POST", self)
|
|
271
|
-
: GenericAPIFn("/new/v2.0/extensions/update", "POST", self))(args, options),
|
|
414
|
+
: GenericAPIFn("/new/v2.0/extensions/update", "POST", self))(args, options),
|
|
415
|
+
indexSnapshots: (args, options) => GenericAPIFn(`/new/v2.0/snapshots?${stringifyQuery(args)}`, "GET", self)(undefined, options),
|
|
416
|
+
createSnapshot: (args, options) => GenericAPIFn("/new/v2.0/snapshots", "POST", self)(args, options),
|
|
417
|
+
readSnapshot: ({ snapshotId }, options) => GenericAPIFn(`/new/v2.0/snapshots/${snapshotId}`, "GET", self)(undefined, options),
|
|
418
|
+
deleteSnapshot: ({ snapshotId }, options) => GenericAPIFn(`/new/v2.0/snapshots/${snapshotId}`, "DELETE", self)(undefined, options),
|
|
419
|
+
composeSnapshotDownloadLink: ({ snapshotId }, options) => GenericAPIFn(`/new/v2.0/snapshots/${snapshotId}/downloadlink`, "POST", self)(undefined, options),
|
|
420
|
+
packageSnapshot: ({ snapshotId }, options) => GenericAPIFn(`/new/v2.0/snapshots/${snapshotId}/package`, "POST", self)(undefined, options),
|
|
421
|
+
uploadSnapshotPackage: (args, options) => GenericUploadFn("/new/v2.0/snapshots/upload", "POST", self)(args, options),
|
|
422
|
+
indexResourcesInSnapshot: (_a, options) => {
|
|
272
423
|
var { snapshotId } = _a, args = __rest(_a, ["snapshotId"]);
|
|
273
424
|
return GenericAPIFn(`/new/v2.0/snapshots/${snapshotId}/resources?${stringifyQuery(args)}`, "GET", self)(undefined, options);
|
|
274
|
-
},
|
|
425
|
+
},
|
|
426
|
+
restoreSnapshot: (_a, options) => {
|
|
275
427
|
var { snapshotId } = _a, args = __rest(_a, ["snapshotId"]);
|
|
276
428
|
return GenericAPIFn(`/new/v2.0/snapshots/${snapshotId}/restore`, "POST", self)(args, options);
|
|
277
|
-
},
|
|
429
|
+
},
|
|
430
|
+
trainIntents: (_a, options) => {
|
|
278
431
|
var { flowId, localeId, mode } = _a, args = __rest(_a, ["flowId", "localeId", "mode"]);
|
|
279
432
|
return GenericAPIFn(`/new/v2.0/flows/${flowId}/intents/train?${stringifyQuery(args)}`, "POST", self)({ localeId, mode }, options);
|
|
280
|
-
},
|
|
433
|
+
},
|
|
434
|
+
indexConnections: (args, options) => GenericAPIFn(`/new/v2.0/connections?${stringifyQuery(args)}`, "GET", self)(undefined, options),
|
|
435
|
+
batchConnections: (_a, options) => {
|
|
281
436
|
var { projectId } = _a, args = __rest(_a, ["projectId"]);
|
|
282
437
|
return GenericAPIFn(`/new/v2.0/connections?${stringifyQuery({ projectId })}`, "PATCH", self)(args, options);
|
|
283
|
-
},
|
|
438
|
+
},
|
|
439
|
+
createConnection: (args, options) => GenericAPIFn("/new/v2.0/connections", "POST", self)(args, options),
|
|
440
|
+
readConnection: ({ connectionId }, options) => GenericAPIFn(`/new/v2.0/connections/${connectionId}`, "GET", self)(undefined, options),
|
|
441
|
+
updateConnection: (_a, options) => {
|
|
284
442
|
var { connectionId } = _a, args = __rest(_a, ["connectionId"]);
|
|
285
443
|
return GenericAPIFn(`/new/v2.0/connections/${connectionId}`, "PATCH", self)(args, options);
|
|
286
|
-
},
|
|
444
|
+
},
|
|
445
|
+
deleteConnection: (args, options) => GenericAPIFn(`/new/v2.0/connections/${args.connectionId}`, "DELETE", self)(undefined, options),
|
|
446
|
+
createConnectionField: (_a, options) => {
|
|
287
447
|
var { connectionId } = _a, args = __rest(_a, ["connectionId"]);
|
|
288
448
|
return GenericAPIFn(`/new/v2.0/connections/${connectionId}/fields`, "POST", self)(args, options);
|
|
289
|
-
},
|
|
449
|
+
},
|
|
450
|
+
deleteConnectionField: (args, options) => GenericAPIFn(`/new/v2.0/connections/${args.connectionId}/fields/${encodeURIComponent(args.fieldName)}`, "DELETE", self)(undefined, options),
|
|
451
|
+
indexConnectionSchemas: (args, options) => GenericAPIFn(`/new/v2.0/connections/schemas?${stringifyQuery(args)}`, "GET", self)(undefined, options),
|
|
452
|
+
indexLocales: (args, options) => GenericAPIFn(`/new/v2.0/locales?${stringifyQuery(args)}`, "GET", self)(undefined, options),
|
|
453
|
+
createLocale: (args, options) => GenericAPIFn("/new/v2.0/locales", "POST", self)(args, options),
|
|
454
|
+
readLocale: ({ localeId }, options) => GenericAPIFn(`/new/v2.0/locales/${localeId}`, "GET", self)(undefined, options),
|
|
455
|
+
updateLocale: (_a, options) => {
|
|
290
456
|
var { localeId } = _a, args = __rest(_a, ["localeId"]);
|
|
291
457
|
return GenericAPIFn(`/new/v2.0/locales/${localeId}`, "PATCH", self)(args, options);
|
|
292
|
-
},
|
|
458
|
+
},
|
|
459
|
+
deleteLocale: ({ localeId }, options) => GenericAPIFn(`/new/v2.0/locales/${localeId}`, "DELETE", self)(undefined, options),
|
|
460
|
+
indexFunctions: (args, options) => GenericAPIFn(`/new/v2.0/functions?${stringifyQuery(args)}`, "GET", self)(undefined, options),
|
|
461
|
+
createFunction: (args, options) => GenericAPIFn("/new/v2.0/functions", "POST", self)(args, options),
|
|
462
|
+
readFunction: (args, options) => GenericAPIFn(`/new/v2.0/functions/${args.functionId}`, "GET", self)(undefined, options),
|
|
463
|
+
updateFunction: (_a, options) => {
|
|
293
464
|
var { functionId } = _a, args = __rest(_a, ["functionId"]);
|
|
294
465
|
return GenericAPIFn(`/new/v2.0/functions/${functionId}`, "PATCH", self)(args, options);
|
|
295
|
-
},
|
|
466
|
+
},
|
|
467
|
+
deleteFunction: (args, options) => GenericAPIFn(`/new/v2.0/functions/${args.functionId}`, "DELETE", self)(undefined, options),
|
|
468
|
+
triggerFunction: ({ functionId, parameters }, options) => GenericAPIFn(`/new/v2.0/functions/${functionId}/trigger`, "POST", self)(parameters, options),
|
|
469
|
+
indexFunctionInstances: (_a, options) => {
|
|
296
470
|
var { functionId } = _a, args = __rest(_a, ["functionId"]);
|
|
297
471
|
return GenericAPIFn(`/new/v2.0/functions/${functionId}/instances?${stringifyQuery(args)}`, "GET", self)(undefined, options);
|
|
298
|
-
},
|
|
472
|
+
},
|
|
473
|
+
readFunctionInstance: (args, options) => GenericAPIFn(`/new/v2.0/functions/${args.functionId}/instances/${args.functionInstanceId}`, "GET", self)(undefined, options),
|
|
474
|
+
stopFunctionInstance: (args, options) => GenericAPIFn(`/new/v2.0/functions/${args.functionId}/instances/${args.functionInstanceId}/stop`, "POST", self)(undefined, options),
|
|
475
|
+
indexPackages: (args, options) => GenericAPIFn(`/new/v2.0/packages?${stringifyQuery(args)}`, "GET", self)(undefined, options),
|
|
476
|
+
createPackage: (args, options) => GenericAPIFn("/new/v2.0/packages", "POST", self)(args, options),
|
|
477
|
+
readPackage: ({ packageId }, options) => GenericAPIFn(`/new/v2.0/packages/${packageId}`, "GET", self)(undefined, options),
|
|
478
|
+
deletePackage: ({ packageId }, options) => GenericAPIFn(`/new/v2.0/packages/${packageId}`, "DELETE", self)(undefined, options),
|
|
479
|
+
composePackageDownloadLink: ({ packageId }, options) => GenericAPIFn(`/new/v2.0/packages/${packageId}/downloadlink`, "POST", self)(undefined, options),
|
|
480
|
+
mergePackage: (_a, options) => {
|
|
299
481
|
var { packageId } = _a, args = __rest(_a, ["packageId"]);
|
|
300
482
|
return GenericAPIFn(`/new/v2.0/packages/${packageId}/merge`, "POST", self)(args, options);
|
|
301
|
-
},
|
|
483
|
+
},
|
|
484
|
+
uploadPackage: (args, options) => GenericUploadFn("/new/v2.0/packages/upload", "POST", self)(args, options),
|
|
485
|
+
optionsResolver: (args, options) => GenericAPIFn("/new/v2.0/optionsResolver", "POST", self)(args, options),
|
|
486
|
+
uploadFile: (_a, options) => {
|
|
302
487
|
var { projectId } = _a, args = __rest(_a, ["projectId"]);
|
|
303
488
|
return GenericUploadFn(`/new/v2.0/files/upload?${stringifyQuery({ projectId })}`, "POST", self)(args, options);
|
|
304
|
-
},
|
|
489
|
+
},
|
|
490
|
+
indexAudioPreviewLanguages: (_a, options) => {
|
|
305
491
|
var { projectId } = _a, args = __rest(_a, ["projectId"]);
|
|
306
492
|
return GenericAPIFn(`/new/v2.0/audio/preview/languages?${stringifyQuery({ projectId })}`, "GET", self)(args, options);
|
|
307
|
-
},
|
|
493
|
+
},
|
|
494
|
+
voicePrepareCall: (args, options) => GenericAPIFn("/new/v2.0/audio/preparecall", "POST", self)(args, options),
|
|
495
|
+
readYesNoIntents: (_a, options) => {
|
|
308
496
|
var { localeId } = _a, args = __rest(_a, ["localeId"]);
|
|
309
497
|
return GenericAPIFn(`/new/v2.0/locales/${localeId}/yesnointents`, "GET", self)(args, options);
|
|
310
|
-
},
|
|
498
|
+
},
|
|
499
|
+
trainYesNoIntents: ({ localeId }, options) => GenericAPIFn(`/new/v2.0/locales/${localeId}/yesnointents/train`, "POST", self)(undefined, options),
|
|
500
|
+
trainYesNoIntentsProject: ({ projectId }, options) => GenericAPIFn(`/new/v2.0/projects/${projectId}/locales/yesnointents/train`, "POST", self)(undefined, options),
|
|
501
|
+
updateYesNoIntents: (_a, options) => {
|
|
311
502
|
var { localeId, intentId } = _a, args = __rest(_a, ["localeId", "intentId"]);
|
|
312
503
|
return GenericAPIFn(`/new/v2.0/locales/${localeId}/yesnointents/${intentId}`, "PATCH", self)(args, options);
|
|
313
|
-
},
|
|
504
|
+
},
|
|
505
|
+
deleteYesNoIntents: (_a, options) => {
|
|
314
506
|
var { localeId, intentId } = _a, args = __rest(_a, ["localeId", "intentId"]);
|
|
315
507
|
return GenericAPIFn(`/new/v2.0/locales/${localeId}/yesnointents/${intentId}`, "DELETE", self)(args, options);
|
|
316
|
-
},
|
|
508
|
+
},
|
|
509
|
+
createYesNoSentence: (_a, options) => {
|
|
317
510
|
var { localeId, intentId } = _a, args = __rest(_a, ["localeId", "intentId"]);
|
|
318
511
|
return GenericAPIFn(`/new/v2.0/locales/${localeId}/yesnointents/${intentId}/sentences`, "POST", self)(args, options);
|
|
319
|
-
},
|
|
512
|
+
},
|
|
513
|
+
updateYesNoSentence: (_a, options) => {
|
|
320
514
|
var { localeId, intentId, sentenceId } = _a, args = __rest(_a, ["localeId", "intentId", "sentenceId"]);
|
|
321
515
|
return GenericAPIFn(`/new/v2.0/locales/${localeId}/yesnointents/${intentId}/sentences/${sentenceId}`, "PATCH", self)(args, options);
|
|
322
|
-
},
|
|
516
|
+
},
|
|
517
|
+
deleteYesNoSentence: (_a, options) => {
|
|
323
518
|
var { localeId, intentId, sentenceId } = _a, args = __rest(_a, ["localeId", "intentId", "sentenceId"]);
|
|
324
519
|
return GenericAPIFn(`/new/v2.0/locales/${localeId}/yesnointents/${intentId}/sentences/${sentenceId}`, "DELETE", self)(args, options);
|
|
325
|
-
},
|
|
520
|
+
},
|
|
521
|
+
indexYesNoSentences: (_a, options) => {
|
|
326
522
|
var { localeId, intentId } = _a, args = __rest(_a, ["localeId", "intentId"]);
|
|
327
523
|
return GenericAPIFn(`/new/v2.0/locales/${localeId}/yesnointents/${intentId}/sentences?${stringifyQuery(args)}`, "GET", self)(args, options);
|
|
328
|
-
},
|
|
524
|
+
},
|
|
525
|
+
testVoiceProvider: (args, options) => GenericAPIFn("/new/v2.0/audio/voiceprovider/test", "POST", self)(args, options),
|
|
526
|
+
testTranslationSettings: (_a, options) => {
|
|
329
527
|
var { projectId } = _a, args = __rest(_a, ["projectId"]);
|
|
330
528
|
return GenericAPIFn(`/new/v2.0/projects/${projectId}/settings/translation/test`, "POST", self)(args, options);
|
|
331
|
-
},
|
|
529
|
+
},
|
|
530
|
+
indexAgentAssistConfigs: (args, options) => GenericAPIFn(`/new/v2.0/aicopilotconfigs?${stringifyQuery(args)}`, "GET", self)(undefined, options),
|
|
531
|
+
createAgentAssistConfig: (args, options) => GenericAPIFn("/new/v2.0/aicopilotconfigs", "POST", self)(args, options),
|
|
532
|
+
readAgentAssistConfig: ({ configId }, options) => GenericAPIFn(`/new/v2.0/aicopilotconfigs/${configId}`, "GET", self)(undefined, options),
|
|
533
|
+
updateAgentAssistConfig: (_a, options) => {
|
|
332
534
|
var { configId } = _a, args = __rest(_a, ["configId"]);
|
|
333
535
|
return GenericAPIFn(`/new/v2.0/aicopilotconfigs/${configId}`, "PATCH", self)(args, options);
|
|
334
|
-
},
|
|
536
|
+
},
|
|
537
|
+
deleteAgentAssistConfig: ({ configId }, options) => GenericAPIFn(`/new/v2.0/aicopilotconfigs/${configId}`, "DELETE", self)(undefined, options),
|
|
538
|
+
createAiAgent: (args, options) => GenericAPIFn("/new/v2.0/aiagents", "POST", self)(args, options),
|
|
539
|
+
indexAiAgents: (args, options) => GenericAPIFn(`/new/v2.0/aiagents?${stringifyQuery(args)}`, "GET", self)(undefined, options),
|
|
540
|
+
readAiAgent: ({ aiAgentId }, options) => GenericAPIFn(`/new/v2.0/aiagents/${aiAgentId}`, "GET", self)(undefined, options),
|
|
541
|
+
updateAiAgent: (_a, options) => {
|
|
335
542
|
var { aiAgentId } = _a, args = __rest(_a, ["aiAgentId"]);
|
|
336
543
|
return GenericAPIFn(`/new/v2.0/aiagents/${aiAgentId}`, "PATCH", self)(args, options);
|
|
337
|
-
},
|
|
544
|
+
},
|
|
545
|
+
deleteAiAgent: ({ aiAgentId }, options) => GenericAPIFn(`/new/v2.0/aiagents/${aiAgentId}`, "DELETE", self)(undefined, options),
|
|
546
|
+
validateAiAgentName: (args, options) => GenericAPIFn("/new/v2.0/aiagents/validatename", "POST", self)(args, options),
|
|
547
|
+
getAiAgentHiringTemplates: (args, options) => GenericAPIFn("/new/v2.0/aiagents/hire/templates", "GET", self)(args, options),
|
|
548
|
+
hireAiAgent: (args, options) => GenericAPIFn("/new/v2.0/aiagents/hire", "POST", self)(args, options),
|
|
549
|
+
getAiAgentJobsAndTools: ({ aiAgentId }, options) => GenericAPIFn(`/new/v2.0/aiagents/${aiAgentId}/jobs`, "GET", self)(undefined, options),
|
|
550
|
+
generateNodeOutput(_a, options) {
|
|
338
551
|
var { flowId } = _a, args = __rest(_a, ["flowId"]);
|
|
339
552
|
return GenericAPIFn(`/new/v2.0/flows/${flowId}/chart/nodes/output/generate`, "POST", self)(args, options);
|
|
340
|
-
},
|
|
553
|
+
},
|
|
554
|
+
indexLargeLanguageModels: (args, options) => GenericAPIFn(`/new/v2.0/largelanguagemodels?${stringifyQuery(args)}`, "GET", self)(undefined, options),
|
|
555
|
+
createLargeLanguageModel: (args, options) => GenericAPIFn("/new/v2.0/largelanguagemodels", "POST", self)(args, options),
|
|
556
|
+
readLargeLanguageModel: ({ largeLanguageModelId }, options) => GenericAPIFn(`/new/v2.0/largelanguagemodels/${largeLanguageModelId}`, "GET", self)(undefined, options),
|
|
557
|
+
updateLargeLanguageModel: (_a, options) => {
|
|
341
558
|
var { largeLanguageModelId } = _a, args = __rest(_a, ["largeLanguageModelId"]);
|
|
342
559
|
return GenericAPIFn(`/new/v2.0/largelanguagemodels/${largeLanguageModelId}`, "PATCH", self)(args, options);
|
|
343
|
-
},
|
|
560
|
+
},
|
|
561
|
+
deleteLargeLanguageModel: (_a, options) => {
|
|
344
562
|
var { largeLanguageModelId } = _a, args = __rest(_a, ["largeLanguageModelId"]);
|
|
345
563
|
return GenericAPIFn(`/new/v2.0/largelanguagemodels/${largeLanguageModelId}?${stringifyQuery(args)}`, "DELETE", self)(undefined, options);
|
|
346
|
-
},
|
|
564
|
+
},
|
|
565
|
+
cloneLargeLanguageModel: (_a, options) => {
|
|
347
566
|
var { largeLanguageModelId } = _a, args = __rest(_a, ["largeLanguageModelId"]);
|
|
348
567
|
return GenericAPIFn(`/new/v2.0/largelanguagemodels/${largeLanguageModelId}/clone`, "POST", self)(args, options);
|
|
349
|
-
},
|
|
568
|
+
},
|
|
569
|
+
testLargeLanguageModel: ({ largeLanguageModelId }, options) => GenericAPIFn(`/new/v2.0/largelanguagemodels/${largeLanguageModelId}/test`, "POST", self)(undefined, options),
|
|
570
|
+
getAvailableModelsForLLM: (_a, options) => {
|
|
350
571
|
var { largeLanguageModelId } = _a, args = __rest(_a, ["largeLanguageModelId"]);
|
|
351
572
|
return GenericAPIFn(`/new/v2.0/largelanguagemodels/${largeLanguageModelId}/availablemodels?${stringifyQuery(args)}`, "GET", self)(undefined, options);
|
|
352
|
-
},
|
|
573
|
+
},
|
|
574
|
+
indexKnowledgeStores: (args, options) => GenericAPIFn(`/new/v2.0/knowledgestores?${stringifyQuery(args)}`, "GET", self)(undefined, options),
|
|
575
|
+
createKnowledgeStore: (args, options) => GenericAPIFn("/new/v2.0/knowledgestores", "POST", self)(args, options),
|
|
576
|
+
readKnowledgeStore: ({ knowledgeStoreId }, options) => GenericAPIFn(`/new/v2.0/knowledgestores/${knowledgeStoreId}`, "GET", self)(undefined, options),
|
|
577
|
+
deleteKnowledgeStore: ({ knowledgeStoreId }, options) => GenericAPIFn(`/new/v2.0/knowledgestores/${knowledgeStoreId}`, "DELETE", self)(undefined, options),
|
|
578
|
+
updateKnowledgeStore: (_a, options) => {
|
|
353
579
|
var { knowledgeStoreId } = _a, args = __rest(_a, ["knowledgeStoreId"]);
|
|
354
580
|
return GenericAPIFn(`/new/v2.0/knowledgestores/${knowledgeStoreId}`, "PATCH", self)(args, options);
|
|
355
|
-
},
|
|
581
|
+
},
|
|
582
|
+
runKnowledgeExtension: (_a, options) => {
|
|
356
583
|
var { knowledgeStoreId } = _a, args = __rest(_a, ["knowledgeStoreId"]);
|
|
357
584
|
return GenericAPIFn(`/new/v2.0/knowledgestores/${knowledgeStoreId}/extensions/run`, "POST", self)(args, options);
|
|
358
|
-
},
|
|
585
|
+
},
|
|
586
|
+
indexKnowledgeDescriptors: ({ knowledgeStoreId }, options) => GenericAPIFn(`/new/v2.0/knowledgestores/${knowledgeStoreId}/descriptors`, "GET", self)(undefined, options),
|
|
587
|
+
indexKnowledgeSources: (_a, options) => {
|
|
359
588
|
var { knowledgeStoreId } = _a, args = __rest(_a, ["knowledgeStoreId"]);
|
|
360
589
|
return GenericAPIFn(`/new/v2.0/knowledgestores/${knowledgeStoreId}/sources?${stringifyQuery(args)}`, "GET", self)(undefined, options);
|
|
361
|
-
},
|
|
590
|
+
},
|
|
591
|
+
createKnowledgeSource: (_a, options) => {
|
|
362
592
|
var { knowledgeStoreId } = _a, args = __rest(_a, ["knowledgeStoreId"]);
|
|
363
593
|
return GenericAPIFn(`/new/v2.0/knowledgestores/${knowledgeStoreId}/sources`, "POST", self)(args, options);
|
|
364
|
-
},
|
|
594
|
+
},
|
|
595
|
+
readKnowledgeSource: ({ knowledgeStoreId, sourceId }, options) => GenericAPIFn(`/new/v2.0/knowledgestores/${knowledgeStoreId}/sources/${sourceId}`, "GET", self)(undefined, options),
|
|
596
|
+
deleteKnowledgeSource: ({ knowledgeStoreId, sourceId }, options) => GenericAPIFn(`/new/v2.0/knowledgestores/${knowledgeStoreId}/sources/${sourceId}`, "DELETE", self)(undefined, options),
|
|
597
|
+
updateKnowledgeSource: (_a, options) => {
|
|
365
598
|
var { knowledgeStoreId, sourceId } = _a, args = __rest(_a, ["knowledgeStoreId", "sourceId"]);
|
|
366
599
|
return GenericAPIFn(`/new/v2.0/knowledgestores/${knowledgeStoreId}/sources/${sourceId}`, "PATCH", self)(args, options);
|
|
367
|
-
},
|
|
600
|
+
},
|
|
601
|
+
uploadKnowledgeSourceFile: (_a, options) => {
|
|
368
602
|
var { knowledgeStoreId } = _a, args = __rest(_a, ["knowledgeStoreId"]);
|
|
369
603
|
return GenericUploadFn(`/new/v2.0/knowledgestores/${knowledgeStoreId}/sources/upload`, "POST", self)(args, options);
|
|
370
|
-
},
|
|
604
|
+
},
|
|
605
|
+
indexKnowledgeChunks: (_a, options) => {
|
|
371
606
|
var { knowledgeStoreId, sourceId } = _a, args = __rest(_a, ["knowledgeStoreId", "sourceId"]);
|
|
372
607
|
return GenericAPIFn(`/new/v2.0/knowledgestores/${knowledgeStoreId}/sources/${sourceId}/chunks?
|
|
373
608
|
${stringifyQuery(args)}`, "GET", self)(undefined, options);
|
|
374
|
-
},
|
|
609
|
+
},
|
|
610
|
+
createKnowledgeChunk: (_a, options) => {
|
|
375
611
|
var { knowledgeStoreId, sourceId } = _a, args = __rest(_a, ["knowledgeStoreId", "sourceId"]);
|
|
376
612
|
return GenericAPIFn(`/new/v2.0/knowledgestores/${knowledgeStoreId}/sources/${sourceId}/chunks`, "POST", self)(args, options);
|
|
377
|
-
},
|
|
613
|
+
},
|
|
614
|
+
readKnowledgeChunk: ({ knowledgeStoreId, sourceId, chunkId }, options) => GenericAPIFn(`/new/v2.0/knowledgestores/${knowledgeStoreId}/sources/${sourceId}/chunks/${chunkId}`, "GET", self)(undefined, options),
|
|
615
|
+
deleteKnowledgeChunk: ({ knowledgeStoreId, sourceId, chunkId }, options) => GenericAPIFn(`/new/v2.0/knowledgestores/${knowledgeStoreId}/sources/${sourceId}/chunks/${chunkId}`, "DELETE", self)(undefined, options),
|
|
616
|
+
updateKnowledgeChunk: (_a, options) => {
|
|
378
617
|
var { knowledgeStoreId, sourceId, chunkId } = _a, args = __rest(_a, ["knowledgeStoreId", "sourceId", "chunkId"]);
|
|
379
618
|
return GenericAPIFn(`/new/v2.0/knowledgestores/${knowledgeStoreId}/sources/${sourceId}/chunks/${chunkId}`, "PATCH", self)(args, options);
|
|
380
|
-
},
|
|
619
|
+
},
|
|
620
|
+
indexKnowledgeConnectors: (_a, options) => {
|
|
381
621
|
var { knowledgeStoreId } = _a, args = __rest(_a, ["knowledgeStoreId"]);
|
|
382
622
|
return GenericAPIFn(`/new/v2.0/knowledgestores/${knowledgeStoreId}/connectors?${stringifyQuery(args)}`, "GET", self)(undefined, options);
|
|
383
|
-
},
|
|
623
|
+
},
|
|
624
|
+
createKnowledgeConnector: (_a, options) => {
|
|
384
625
|
var { knowledgeStoreId } = _a, args = __rest(_a, ["knowledgeStoreId"]);
|
|
385
626
|
return GenericAPIFn(`/new/v2.0/knowledgestores/${knowledgeStoreId}/connectors`, "POST", self)(args, options);
|
|
386
|
-
},
|
|
627
|
+
},
|
|
628
|
+
readKnowledgeConnector: ({ knowledgeStoreId, connectorId }, options) => GenericAPIFn(`/new/v2.0/knowledgestores/${knowledgeStoreId}/connectors/${connectorId}`, "GET", self)(undefined, options),
|
|
629
|
+
updateKnowledgeConnector: (_a, options) => {
|
|
387
630
|
var { knowledgeStoreId, connectorId } = _a, args = __rest(_a, ["knowledgeStoreId", "connectorId"]);
|
|
388
631
|
return GenericAPIFn(`/new/v2.0/knowledgestores/${knowledgeStoreId}/connectors/${connectorId}`, "PATCH", self)(args, options);
|
|
389
|
-
},
|
|
632
|
+
},
|
|
633
|
+
deleteKnowledgeConnector: ({ knowledgeStoreId, connectorId }, options) => GenericAPIFn(`/new/v2.0/knowledgestores/${knowledgeStoreId}/connectors/${connectorId}`, "DELETE", self)(undefined, options),
|
|
634
|
+
runKnowledgeConnector: ({ knowledgeStoreId, connectorId }, options) => GenericAPIFn(`/new/v2.0/knowledgestores/${knowledgeStoreId}/connectors/${connectorId}/run`, "POST", self)(undefined, options),
|
|
635
|
+
uploadResumable: (args) => GenericTusFn("/new/v2.0/uploads", self)(args),
|
|
636
|
+
generateNluScores: (_a) => {
|
|
390
637
|
var { projectId } = _a, args = __rest(_a, ["projectId"]);
|
|
391
638
|
return GenericAPIFn(`/new/v2.0/projects/${projectId}/nlu/scores`, "POST", self)(args);
|
|
392
|
-
},
|
|
639
|
+
},
|
|
640
|
+
generateDesignTimeLLMOutput: (_a) => {
|
|
393
641
|
var { projectId } = _a, args = __rest(_a, ["projectId"]);
|
|
394
642
|
return GenericAPIFn(`/new/v2.0/projects/${projectId}/generate-output/design-time-llm`, "POST", self)(args);
|
|
395
|
-
},
|
|
643
|
+
},
|
|
644
|
+
readFlowChartAiAgents: ({ flowId, preferredLocaleId }, options) => GenericAPIFn(`/new/v2.0/flows/${flowId}/chart/nodes/aiagents?${stringifyQuery({
|
|
396
645
|
preferredLocaleId
|
|
397
|
-
})}`, "GET", self)(undefined, options)
|
|
646
|
+
})}`, "GET", self)(undefined, options)
|
|
647
|
+
};
|
|
398
648
|
};
|
|
399
649
|
//# sourceMappingURL=ResourcesAPIGroup_2_0.js.map
|