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