@stack-spot/portal-network 0.190.0 → 0.191.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +155 -0
- package/dist/api/account.d.ts +4 -116
- package/dist/api/account.d.ts.map +1 -1
- package/dist/api/account.js +9 -95
- package/dist/api/account.js.map +1 -1
- package/dist/api/ai.d.ts +189 -86
- package/dist/api/ai.d.ts.map +1 -1
- package/dist/api/ai.js +238 -142
- package/dist/api/ai.js.map +1 -1
- package/dist/api/cloudPlatform.d.ts +364 -248
- package/dist/api/cloudPlatform.d.ts.map +1 -1
- package/dist/api/cloudPlatform.js +289 -109
- package/dist/api/cloudPlatform.js.map +1 -1
- package/dist/api/codeShift.d.ts +114 -42
- package/dist/api/codeShift.d.ts.map +1 -1
- package/dist/api/codeShift.js +51 -10
- package/dist/api/codeShift.js.map +1 -1
- package/dist/api/genAiInference.d.ts +22 -2
- package/dist/api/genAiInference.d.ts.map +1 -1
- package/dist/api/genAiInference.js +22 -3
- package/dist/api/genAiInference.js.map +1 -1
- package/dist/client/account.d.ts +33 -19
- package/dist/client/account.d.ts.map +1 -1
- package/dist/client/account.js +33 -15
- package/dist/client/account.js.map +1 -1
- package/dist/client/ai.d.ts +29 -0
- package/dist/client/ai.d.ts.map +1 -1
- package/dist/client/ai.js +121 -14
- package/dist/client/ai.js.map +1 -1
- package/dist/client/cloud-platform.d.ts +195 -43
- package/dist/client/cloud-platform.d.ts.map +1 -1
- package/dist/client/cloud-platform.js +159 -42
- package/dist/client/cloud-platform.js.map +1 -1
- package/dist/client/code-shift.d.ts +16 -3
- package/dist/client/code-shift.d.ts.map +1 -1
- package/dist/client/code-shift.js +10 -1
- package/dist/client/code-shift.js.map +1 -1
- package/dist/client/types.d.ts +26 -5
- package/dist/client/types.d.ts.map +1 -1
- package/package.json +3 -3
- package/readme.md +2 -1
- package/src/api/account.ts +21 -192
- package/src/api/agent-tools.ts +3 -0
- package/src/api/agent.ts +2 -0
- package/src/api/ai.ts +364 -157
- package/src/api/cloudPlatform.ts +698 -398
- package/src/api/codeShift.ts +194 -47
- package/src/api/genAiInference.ts +47 -4
- package/src/api/notification.ts +2 -0
- package/src/client/account.ts +36 -17
- package/src/client/ai.ts +126 -13
- package/src/client/cloud-platform.ts +92 -27
- package/src/client/code-shift.ts +6 -1
- package/src/client/types.ts +27 -5
package/dist/api/ai.js
CHANGED
|
@@ -23,7 +23,7 @@ export function metricsMetricsGet(opts) {
|
|
|
23
23
|
/**
|
|
24
24
|
* Workspace Fork
|
|
25
25
|
*/
|
|
26
|
-
export function workspaceForkV1AiStacksWorkspaceForkPost({ authorization, xAccountId, xMemberId, aiStackWorkspaceForkRequest }, opts) {
|
|
26
|
+
export function workspaceForkV1AiStacksWorkspaceForkPost({ authorization, xAccountId, xMemberId, xUsername, aiStackWorkspaceForkRequest }, opts) {
|
|
27
27
|
return oazapfts.ok(oazapfts.fetchJson("/v1/ai-stacks/workspace/fork", oazapfts.json({
|
|
28
28
|
...opts,
|
|
29
29
|
method: "POST",
|
|
@@ -31,14 +31,15 @@ export function workspaceForkV1AiStacksWorkspaceForkPost({ authorization, xAccou
|
|
|
31
31
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
32
32
|
authorization,
|
|
33
33
|
"x-account-id": xAccountId,
|
|
34
|
-
"x-member-id": xMemberId
|
|
34
|
+
"x-member-id": xMemberId,
|
|
35
|
+
"x-username": xUsername
|
|
35
36
|
})
|
|
36
37
|
})));
|
|
37
38
|
}
|
|
38
39
|
/**
|
|
39
40
|
* Workspace Delete Fork
|
|
40
41
|
*/
|
|
41
|
-
export function workspaceDeleteForkV1AiStacksWorkspaceForkDelete({ authorization, xAccountId, xMemberId, aiStackWorkspaceDeleteRequest }, opts) {
|
|
42
|
+
export function workspaceDeleteForkV1AiStacksWorkspaceForkDelete({ authorization, xAccountId, xMemberId, xUsername, aiStackWorkspaceDeleteRequest }, opts) {
|
|
42
43
|
return oazapfts.ok(oazapfts.fetchJson("/v1/ai-stacks/workspace/fork", oazapfts.json({
|
|
43
44
|
...opts,
|
|
44
45
|
method: "DELETE",
|
|
@@ -46,14 +47,15 @@ export function workspaceDeleteForkV1AiStacksWorkspaceForkDelete({ authorization
|
|
|
46
47
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
47
48
|
authorization,
|
|
48
49
|
"x-account-id": xAccountId,
|
|
49
|
-
"x-member-id": xMemberId
|
|
50
|
+
"x-member-id": xMemberId,
|
|
51
|
+
"x-username": xUsername
|
|
50
52
|
})
|
|
51
53
|
})));
|
|
52
54
|
}
|
|
53
55
|
/**
|
|
54
56
|
* Workspace List
|
|
55
57
|
*/
|
|
56
|
-
export function workspaceListV1AiStacksWorkspaceListPost({ authorization, xAccountId, xMemberId, aiStackWorkspaceListRequest }, opts) {
|
|
58
|
+
export function workspaceListV1AiStacksWorkspaceListPost({ authorization, xAccountId, xMemberId, xUsername, aiStackWorkspaceListRequest }, opts) {
|
|
57
59
|
return oazapfts.ok(oazapfts.fetchJson("/v1/ai-stacks/workspace/list", oazapfts.json({
|
|
58
60
|
...opts,
|
|
59
61
|
method: "POST",
|
|
@@ -61,14 +63,15 @@ export function workspaceListV1AiStacksWorkspaceListPost({ authorization, xAccou
|
|
|
61
63
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
62
64
|
authorization,
|
|
63
65
|
"x-account-id": xAccountId,
|
|
64
|
-
"x-member-id": xMemberId
|
|
66
|
+
"x-member-id": xMemberId,
|
|
67
|
+
"x-username": xUsername
|
|
65
68
|
})
|
|
66
69
|
})));
|
|
67
70
|
}
|
|
68
71
|
/**
|
|
69
72
|
* List Ai Stacks
|
|
70
73
|
*/
|
|
71
|
-
export function listAiStacksV1AiStacksGet({ visibility, authorization, xAccountId, xMemberId }, opts) {
|
|
74
|
+
export function listAiStacksV1AiStacksGet({ visibility, authorization, xAccountId, xMemberId, xUsername }, opts) {
|
|
72
75
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks${QS.query(QS.explode({
|
|
73
76
|
visibility
|
|
74
77
|
}))}`, {
|
|
@@ -76,14 +79,15 @@ export function listAiStacksV1AiStacksGet({ visibility, authorization, xAccountI
|
|
|
76
79
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
77
80
|
authorization,
|
|
78
81
|
"x-account-id": xAccountId,
|
|
79
|
-
"x-member-id": xMemberId
|
|
82
|
+
"x-member-id": xMemberId,
|
|
83
|
+
"x-username": xUsername
|
|
80
84
|
})
|
|
81
85
|
}));
|
|
82
86
|
}
|
|
83
87
|
/**
|
|
84
88
|
* Create Ai Stack
|
|
85
89
|
*/
|
|
86
|
-
export function createAiStackV1AiStacksPost({ authorization, xAccountId, xMemberId, newAiStackRequest }, opts) {
|
|
90
|
+
export function createAiStackV1AiStacksPost({ authorization, xAccountId, xMemberId, xUsername, newAiStackRequest }, opts) {
|
|
87
91
|
return oazapfts.ok(oazapfts.fetchJson("/v1/ai-stacks", oazapfts.json({
|
|
88
92
|
...opts,
|
|
89
93
|
method: "POST",
|
|
@@ -91,14 +95,15 @@ export function createAiStackV1AiStacksPost({ authorization, xAccountId, xMember
|
|
|
91
95
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
92
96
|
authorization,
|
|
93
97
|
"x-account-id": xAccountId,
|
|
94
|
-
"x-member-id": xMemberId
|
|
98
|
+
"x-member-id": xMemberId,
|
|
99
|
+
"x-username": xUsername
|
|
95
100
|
})
|
|
96
101
|
})));
|
|
97
102
|
}
|
|
98
103
|
/**
|
|
99
104
|
* Update Ai Stack
|
|
100
105
|
*/
|
|
101
|
-
export function updateAiStackV1AiStacksStackIdPatch({ stackId, authorization, xAccountId, xMemberId, updateAiStackRequest }, opts) {
|
|
106
|
+
export function updateAiStackV1AiStacksStackIdPatch({ stackId, authorization, xAccountId, xMemberId, xUsername, updateAiStackRequest }, opts) {
|
|
102
107
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks/${encodeURIComponent(stackId)}`, oazapfts.json({
|
|
103
108
|
...opts,
|
|
104
109
|
method: "PATCH",
|
|
@@ -106,82 +111,88 @@ export function updateAiStackV1AiStacksStackIdPatch({ stackId, authorization, xA
|
|
|
106
111
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
107
112
|
authorization,
|
|
108
113
|
"x-account-id": xAccountId,
|
|
109
|
-
"x-member-id": xMemberId
|
|
114
|
+
"x-member-id": xMemberId,
|
|
115
|
+
"x-username": xUsername
|
|
110
116
|
})
|
|
111
117
|
})));
|
|
112
118
|
}
|
|
113
119
|
/**
|
|
114
120
|
* Get Ai Stack
|
|
115
121
|
*/
|
|
116
|
-
export function getAiStackV1AiStacksStackIdGet({ stackId, authorization, xAccountId, xMemberId }, opts) {
|
|
122
|
+
export function getAiStackV1AiStacksStackIdGet({ stackId, authorization, xAccountId, xMemberId, xUsername }, opts) {
|
|
117
123
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks/${encodeURIComponent(stackId)}`, {
|
|
118
124
|
...opts,
|
|
119
125
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
120
126
|
authorization,
|
|
121
127
|
"x-account-id": xAccountId,
|
|
122
|
-
"x-member-id": xMemberId
|
|
128
|
+
"x-member-id": xMemberId,
|
|
129
|
+
"x-username": xUsername
|
|
123
130
|
})
|
|
124
131
|
}));
|
|
125
132
|
}
|
|
126
133
|
/**
|
|
127
134
|
* Remove Ai Stack
|
|
128
135
|
*/
|
|
129
|
-
export function removeAiStackV1AiStacksStackIdDelete({ stackId, authorization, xAccountId, xMemberId }, opts) {
|
|
136
|
+
export function removeAiStackV1AiStacksStackIdDelete({ stackId, authorization, xAccountId, xMemberId, xUsername }, opts) {
|
|
130
137
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks/${encodeURIComponent(stackId)}`, {
|
|
131
138
|
...opts,
|
|
132
139
|
method: "DELETE",
|
|
133
140
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
134
141
|
authorization,
|
|
135
142
|
"x-account-id": xAccountId,
|
|
136
|
-
"x-member-id": xMemberId
|
|
143
|
+
"x-member-id": xMemberId,
|
|
144
|
+
"x-username": xUsername
|
|
137
145
|
})
|
|
138
146
|
}));
|
|
139
147
|
}
|
|
140
148
|
/**
|
|
141
149
|
* Get Ai Stack Exists
|
|
142
150
|
*/
|
|
143
|
-
export function getAiStackExistsV1AiStacksStackNameExistsGet({ stackName, authorization, xAccountId, xMemberId }, opts) {
|
|
151
|
+
export function getAiStackExistsV1AiStacksStackNameExistsGet({ stackName, authorization, xAccountId, xMemberId, xUsername }, opts) {
|
|
144
152
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks/${encodeURIComponent(stackName)}/exists`, {
|
|
145
153
|
...opts,
|
|
146
154
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
147
155
|
authorization,
|
|
148
156
|
"x-account-id": xAccountId,
|
|
149
|
-
"x-member-id": xMemberId
|
|
157
|
+
"x-member-id": xMemberId,
|
|
158
|
+
"x-username": xUsername
|
|
150
159
|
})
|
|
151
160
|
}));
|
|
152
161
|
}
|
|
153
162
|
/**
|
|
154
163
|
* Add Favorite
|
|
155
164
|
*/
|
|
156
|
-
export function addFavoriteV1AiStacksStackIdFavoritePost({ stackId, authorization, xAccountId, xMemberId }, opts) {
|
|
165
|
+
export function addFavoriteV1AiStacksStackIdFavoritePost({ stackId, authorization, xAccountId, xMemberId, xUsername }, opts) {
|
|
157
166
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks/${encodeURIComponent(stackId)}/favorite`, {
|
|
158
167
|
...opts,
|
|
159
168
|
method: "POST",
|
|
160
169
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
161
170
|
authorization,
|
|
162
171
|
"x-account-id": xAccountId,
|
|
163
|
-
"x-member-id": xMemberId
|
|
172
|
+
"x-member-id": xMemberId,
|
|
173
|
+
"x-username": xUsername
|
|
164
174
|
})
|
|
165
175
|
}));
|
|
166
176
|
}
|
|
167
177
|
/**
|
|
168
178
|
* Delete Favorite
|
|
169
179
|
*/
|
|
170
|
-
export function deleteFavoriteV1AiStacksStackIdFavoriteDelete({ stackId, authorization, xAccountId, xMemberId }, opts) {
|
|
180
|
+
export function deleteFavoriteV1AiStacksStackIdFavoriteDelete({ stackId, authorization, xAccountId, xMemberId, xUsername }, opts) {
|
|
171
181
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks/${encodeURIComponent(stackId)}/favorite`, {
|
|
172
182
|
...opts,
|
|
173
183
|
method: "DELETE",
|
|
174
184
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
175
185
|
authorization,
|
|
176
186
|
"x-account-id": xAccountId,
|
|
177
|
-
"x-member-id": xMemberId
|
|
187
|
+
"x-member-id": xMemberId,
|
|
188
|
+
"x-username": xUsername
|
|
178
189
|
})
|
|
179
190
|
}));
|
|
180
191
|
}
|
|
181
192
|
/**
|
|
182
193
|
* Fork
|
|
183
194
|
*/
|
|
184
|
-
export function forkV1AiStacksStackIdForkPost({ stackId, authorization, xAccountId, xMemberId, aiStackForkRequest }, opts) {
|
|
195
|
+
export function forkV1AiStacksStackIdForkPost({ stackId, authorization, xAccountId, xMemberId, xUsername, aiStackForkRequest }, opts) {
|
|
185
196
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks/${encodeURIComponent(stackId)}/fork`, oazapfts.json({
|
|
186
197
|
...opts,
|
|
187
198
|
method: "POST",
|
|
@@ -189,28 +200,30 @@ export function forkV1AiStacksStackIdForkPost({ stackId, authorization, xAccount
|
|
|
189
200
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
190
201
|
authorization,
|
|
191
202
|
"x-account-id": xAccountId,
|
|
192
|
-
"x-member-id": xMemberId
|
|
203
|
+
"x-member-id": xMemberId,
|
|
204
|
+
"x-username": xUsername
|
|
193
205
|
})
|
|
194
206
|
})));
|
|
195
207
|
}
|
|
196
208
|
/**
|
|
197
209
|
* Share
|
|
198
210
|
*/
|
|
199
|
-
export function shareV1AiStacksStackIdSharePost({ stackId, authorization, xAccountId, xMemberId }, opts) {
|
|
211
|
+
export function shareV1AiStacksStackIdSharePost({ stackId, authorization, xAccountId, xMemberId, xUsername }, opts) {
|
|
200
212
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks/${encodeURIComponent(stackId)}/share`, {
|
|
201
213
|
...opts,
|
|
202
214
|
method: "POST",
|
|
203
215
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
204
216
|
authorization,
|
|
205
217
|
"x-account-id": xAccountId,
|
|
206
|
-
"x-member-id": xMemberId
|
|
218
|
+
"x-member-id": xMemberId,
|
|
219
|
+
"x-username": xUsername
|
|
207
220
|
})
|
|
208
221
|
}));
|
|
209
222
|
}
|
|
210
223
|
/**
|
|
211
224
|
* Publish
|
|
212
225
|
*/
|
|
213
|
-
export function publishV1AiStacksStackIdPublishPost({ stackId, authorization, xAccountId, xMemberId, aiStackPublishRequest }, opts) {
|
|
226
|
+
export function publishV1AiStacksStackIdPublishPost({ stackId, authorization, xAccountId, xMemberId, xUsername, aiStackPublishRequest }, opts) {
|
|
214
227
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks/${encodeURIComponent(stackId)}/publish`, oazapfts.json({
|
|
215
228
|
...opts,
|
|
216
229
|
method: "POST",
|
|
@@ -218,7 +231,8 @@ export function publishV1AiStacksStackIdPublishPost({ stackId, authorization, xA
|
|
|
218
231
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
219
232
|
authorization,
|
|
220
233
|
"x-account-id": xAccountId,
|
|
221
|
-
"x-member-id": xMemberId
|
|
234
|
+
"x-member-id": xMemberId,
|
|
235
|
+
"x-username": xUsername
|
|
222
236
|
})
|
|
223
237
|
})));
|
|
224
238
|
}
|
|
@@ -238,7 +252,7 @@ export function projectFilesV1ProjectFilesPost({ authorization, newProjectFilesR
|
|
|
238
252
|
/**
|
|
239
253
|
* Quick Actions
|
|
240
254
|
*/
|
|
241
|
-
export function quickActionsV1QuickActionsPost({ authorization, xAccountId, xMemberId, quickActionsRequest }, opts) {
|
|
255
|
+
export function quickActionsV1QuickActionsPost({ authorization, xAccountId, xMemberId, xUsername, quickActionsRequest }, opts) {
|
|
242
256
|
return oazapfts.ok(oazapfts.fetchJson("/v1/quick-actions", oazapfts.json({
|
|
243
257
|
...opts,
|
|
244
258
|
method: "POST",
|
|
@@ -246,7 +260,8 @@ export function quickActionsV1QuickActionsPost({ authorization, xAccountId, xMem
|
|
|
246
260
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
247
261
|
authorization,
|
|
248
262
|
"x-account-id": xAccountId,
|
|
249
|
-
"x-member-id": xMemberId
|
|
263
|
+
"x-member-id": xMemberId,
|
|
264
|
+
"x-username": xUsername
|
|
250
265
|
})
|
|
251
266
|
})));
|
|
252
267
|
}
|
|
@@ -262,7 +277,7 @@ export function devAssistantV1ChatPost(opts) {
|
|
|
262
277
|
/**
|
|
263
278
|
* Autocomplete V1
|
|
264
279
|
*/
|
|
265
|
-
export function autocompleteV1V1AutocompletePost({ authorization, xAccountId, xMemberId, autoCompleteRequest }, opts) {
|
|
280
|
+
export function autocompleteV1V1AutocompletePost({ authorization, xAccountId, xMemberId, xUsername, autoCompleteRequest }, opts) {
|
|
266
281
|
return oazapfts.ok(oazapfts.fetchJson("/v1/autocomplete", oazapfts.json({
|
|
267
282
|
...opts,
|
|
268
283
|
method: "POST",
|
|
@@ -270,14 +285,15 @@ export function autocompleteV1V1AutocompletePost({ authorization, xAccountId, xM
|
|
|
270
285
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
271
286
|
authorization,
|
|
272
287
|
"x-account-id": xAccountId,
|
|
273
|
-
"x-member-id": xMemberId
|
|
288
|
+
"x-member-id": xMemberId,
|
|
289
|
+
"x-username": xUsername
|
|
274
290
|
})
|
|
275
291
|
})));
|
|
276
292
|
}
|
|
277
293
|
/**
|
|
278
294
|
* Post Event
|
|
279
295
|
*/
|
|
280
|
-
export function postEventV1EventsPost({ authorization, xAccountId, xMemberId, body }, opts) {
|
|
296
|
+
export function postEventV1EventsPost({ authorization, xAccountId, xMemberId, xUsername, body }, opts) {
|
|
281
297
|
return oazapfts.ok(oazapfts.fetchJson("/v1/events", oazapfts.json({
|
|
282
298
|
...opts,
|
|
283
299
|
method: "POST",
|
|
@@ -285,7 +301,8 @@ export function postEventV1EventsPost({ authorization, xAccountId, xMemberId, bo
|
|
|
285
301
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
286
302
|
authorization,
|
|
287
303
|
"x-account-id": xAccountId,
|
|
288
|
-
"x-member-id": xMemberId
|
|
304
|
+
"x-member-id": xMemberId,
|
|
305
|
+
"x-username": xUsername
|
|
289
306
|
})
|
|
290
307
|
})));
|
|
291
308
|
}
|
|
@@ -337,7 +354,7 @@ export function createKnowledgeSourceV1KnowledgeSourcesPost({ authorization, new
|
|
|
337
354
|
/**
|
|
338
355
|
* List Knowledge Sources
|
|
339
356
|
*/
|
|
340
|
-
export function listKnowledgeSourcesV1KnowledgeSourcesGet({ visibility, order, $default, types, authorization, xAccountId, xMemberId }, opts) {
|
|
357
|
+
export function listKnowledgeSourcesV1KnowledgeSourcesGet({ visibility, order, $default, types, authorization, xAccountId, xMemberId, xUsername }, opts) {
|
|
341
358
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources${QS.query(QS.explode({
|
|
342
359
|
visibility,
|
|
343
360
|
order,
|
|
@@ -348,7 +365,8 @@ export function listKnowledgeSourcesV1KnowledgeSourcesGet({ visibility, order, $
|
|
|
348
365
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
349
366
|
authorization,
|
|
350
367
|
"x-account-id": xAccountId,
|
|
351
|
-
"x-member-id": xMemberId
|
|
368
|
+
"x-member-id": xMemberId,
|
|
369
|
+
"x-username": xUsername
|
|
352
370
|
})
|
|
353
371
|
}));
|
|
354
372
|
}
|
|
@@ -379,14 +397,15 @@ export function updateKnowledgeSourceV1KnowledgeSourcesSlugPatch({ slug, authori
|
|
|
379
397
|
/**
|
|
380
398
|
* Delete Knowledge Source
|
|
381
399
|
*/
|
|
382
|
-
export function deleteKnowledgeSourceV1KnowledgeSourcesSlugDelete({ slug, authorization, xAccountId, xMemberId }, opts) {
|
|
400
|
+
export function deleteKnowledgeSourceV1KnowledgeSourcesSlugDelete({ slug, authorization, xAccountId, xMemberId, xUsername }, opts) {
|
|
383
401
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}`, {
|
|
384
402
|
...opts,
|
|
385
403
|
method: "DELETE",
|
|
386
404
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
387
405
|
authorization,
|
|
388
406
|
"x-account-id": xAccountId,
|
|
389
|
-
"x-member-id": xMemberId
|
|
407
|
+
"x-member-id": xMemberId,
|
|
408
|
+
"x-username": xUsername
|
|
390
409
|
})
|
|
391
410
|
}));
|
|
392
411
|
}
|
|
@@ -404,7 +423,7 @@ export function existsKnowledgeSourceV1KnowledgeSourcesSlugExistsGet({ slug, aut
|
|
|
404
423
|
/**
|
|
405
424
|
* Search
|
|
406
425
|
*/
|
|
407
|
-
export function searchV1KnowledgeSourcesSlugSimilaritySearchGet({ slug, q, size, authorization, xAccountId, xMemberId }, opts) {
|
|
426
|
+
export function searchV1KnowledgeSourcesSlugSimilaritySearchGet({ slug, q, size, authorization, xAccountId, xMemberId, xUsername }, opts) {
|
|
408
427
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/similarity-search${QS.query(QS.explode({
|
|
409
428
|
q,
|
|
410
429
|
size
|
|
@@ -413,7 +432,8 @@ export function searchV1KnowledgeSourcesSlugSimilaritySearchGet({ slug, q, size,
|
|
|
413
432
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
414
433
|
authorization,
|
|
415
434
|
"x-account-id": xAccountId,
|
|
416
|
-
"x-member-id": xMemberId
|
|
435
|
+
"x-member-id": xMemberId,
|
|
436
|
+
"x-username": xUsername
|
|
417
437
|
})
|
|
418
438
|
}));
|
|
419
439
|
}
|
|
@@ -532,7 +552,7 @@ export function findSnippetDocByCustomIdV1KnowledgeSourcesSlugSnippetsIdGet({ sl
|
|
|
532
552
|
/**
|
|
533
553
|
* Vectorize Snippet Knowledge Source
|
|
534
554
|
*/
|
|
535
|
-
export function vectorizeSnippetKnowledgeSourceV1KnowledgeSourcesSlugSnippetsPost({ slug, authorization, xAccountId, xMemberId, snippetKnowledgeSourceRequest }, opts) {
|
|
555
|
+
export function vectorizeSnippetKnowledgeSourceV1KnowledgeSourcesSlugSnippetsPost({ slug, authorization, xAccountId, xMemberId, xUsername, snippetKnowledgeSourceRequest }, opts) {
|
|
536
556
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/snippets`, oazapfts.json({
|
|
537
557
|
...opts,
|
|
538
558
|
method: "POST",
|
|
@@ -540,7 +560,8 @@ export function vectorizeSnippetKnowledgeSourceV1KnowledgeSourcesSlugSnippetsPos
|
|
|
540
560
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
541
561
|
authorization,
|
|
542
562
|
"x-account-id": xAccountId,
|
|
543
|
-
"x-member-id": xMemberId
|
|
563
|
+
"x-member-id": xMemberId,
|
|
564
|
+
"x-username": xUsername
|
|
544
565
|
})
|
|
545
566
|
})));
|
|
546
567
|
}
|
|
@@ -569,7 +590,7 @@ export function findEventDocByCustomIdV1KnowledgeSourcesSlugEventsIdGet({ slug,
|
|
|
569
590
|
/**
|
|
570
591
|
* Vectorize Event Knowledge Source
|
|
571
592
|
*/
|
|
572
|
-
export function vectorizeEventKnowledgeSourceV1KnowledgeSourcesSlugEventsPost({ slug, authorization, xAccountId, xMemberId, body }, opts) {
|
|
593
|
+
export function vectorizeEventKnowledgeSourceV1KnowledgeSourcesSlugEventsPost({ slug, authorization, xAccountId, xMemberId, xUsername, body }, opts) {
|
|
573
594
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/events`, oazapfts.json({
|
|
574
595
|
...opts,
|
|
575
596
|
method: "POST",
|
|
@@ -577,7 +598,8 @@ export function vectorizeEventKnowledgeSourceV1KnowledgeSourcesSlugEventsPost({
|
|
|
577
598
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
578
599
|
authorization,
|
|
579
600
|
"x-account-id": xAccountId,
|
|
580
|
-
"x-member-id": xMemberId
|
|
601
|
+
"x-member-id": xMemberId,
|
|
602
|
+
"x-username": xUsername
|
|
581
603
|
})
|
|
582
604
|
})));
|
|
583
605
|
}
|
|
@@ -595,7 +617,7 @@ export function findCustomDocByCustomIdV1KnowledgeSourcesSlugCustomIdGet({ slug,
|
|
|
595
617
|
/**
|
|
596
618
|
* Vectorize Custom Knowledge Source
|
|
597
619
|
*/
|
|
598
|
-
export function vectorizeCustomKnowledgeSourceV1KnowledgeSourcesSlugCustomPost({ slug, authorization, xAccountId, xMemberId, customKnowledgeSourceRequest }, opts) {
|
|
620
|
+
export function vectorizeCustomKnowledgeSourceV1KnowledgeSourcesSlugCustomPost({ slug, authorization, xAccountId, xMemberId, xUsername, customKnowledgeSourceRequest }, opts) {
|
|
599
621
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/custom`, oazapfts.json({
|
|
600
622
|
...opts,
|
|
601
623
|
method: "POST",
|
|
@@ -603,7 +625,8 @@ export function vectorizeCustomKnowledgeSourceV1KnowledgeSourcesSlugCustomPost({
|
|
|
603
625
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
604
626
|
authorization,
|
|
605
627
|
"x-account-id": xAccountId,
|
|
606
|
-
"x-member-id": xMemberId
|
|
628
|
+
"x-member-id": xMemberId,
|
|
629
|
+
"x-username": xUsername
|
|
607
630
|
})
|
|
608
631
|
})));
|
|
609
632
|
}
|
|
@@ -632,7 +655,7 @@ export function searchKnowledgeSourcesV1KnowledgeSourcesSearchPost({ authorizati
|
|
|
632
655
|
/**
|
|
633
656
|
* Change Llm
|
|
634
657
|
*/
|
|
635
|
-
export function changeLlmV1AccountsLlmPatch({ authorization, xAccountId, xMemberId, accountSettingsChangeLlmRequest }, opts) {
|
|
658
|
+
export function changeLlmV1AccountsLlmPatch({ authorization, xAccountId, xMemberId, xUsername, accountSettingsChangeLlmRequest }, opts) {
|
|
636
659
|
return oazapfts.ok(oazapfts.fetchJson("/v1/accounts/llm", oazapfts.json({
|
|
637
660
|
...opts,
|
|
638
661
|
method: "PATCH",
|
|
@@ -640,14 +663,15 @@ export function changeLlmV1AccountsLlmPatch({ authorization, xAccountId, xMember
|
|
|
640
663
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
641
664
|
authorization,
|
|
642
665
|
"x-account-id": xAccountId,
|
|
643
|
-
"x-member-id": xMemberId
|
|
666
|
+
"x-member-id": xMemberId,
|
|
667
|
+
"x-username": xUsername
|
|
644
668
|
})
|
|
645
669
|
})));
|
|
646
670
|
}
|
|
647
671
|
/**
|
|
648
672
|
* Change Limit
|
|
649
673
|
*/
|
|
650
|
-
export function changeLimitV1AccountsTokenLimitsPut({ authorization, xAccountId, xMemberId, accountSettingsChangeLimitRequest }, opts) {
|
|
674
|
+
export function changeLimitV1AccountsTokenLimitsPut({ authorization, xAccountId, xMemberId, xUsername, accountSettingsChangeLimitRequest }, opts) {
|
|
651
675
|
return oazapfts.ok(oazapfts.fetchJson("/v1/accounts/token-limits", oazapfts.json({
|
|
652
676
|
...opts,
|
|
653
677
|
method: "PUT",
|
|
@@ -655,28 +679,30 @@ export function changeLimitV1AccountsTokenLimitsPut({ authorization, xAccountId,
|
|
|
655
679
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
656
680
|
authorization,
|
|
657
681
|
"x-account-id": xAccountId,
|
|
658
|
-
"x-member-id": xMemberId
|
|
682
|
+
"x-member-id": xMemberId,
|
|
683
|
+
"x-username": xUsername
|
|
659
684
|
})
|
|
660
685
|
})));
|
|
661
686
|
}
|
|
662
687
|
/**
|
|
663
688
|
* Reset Limit
|
|
664
689
|
*/
|
|
665
|
-
export function resetLimitV1AccountsTokenLimitsDelete({ authorization, xAccountId, xMemberId }, opts) {
|
|
690
|
+
export function resetLimitV1AccountsTokenLimitsDelete({ authorization, xAccountId, xMemberId, xUsername }, opts) {
|
|
666
691
|
return oazapfts.ok(oazapfts.fetchJson("/v1/accounts/token-limits", {
|
|
667
692
|
...opts,
|
|
668
693
|
method: "DELETE",
|
|
669
694
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
670
695
|
authorization,
|
|
671
696
|
"x-account-id": xAccountId,
|
|
672
|
-
"x-member-id": xMemberId
|
|
697
|
+
"x-member-id": xMemberId,
|
|
698
|
+
"x-username": xUsername
|
|
673
699
|
})
|
|
674
700
|
}));
|
|
675
701
|
}
|
|
676
702
|
/**
|
|
677
703
|
* Change External Rqc
|
|
678
704
|
*/
|
|
679
|
-
export function changeExternalRqcV1AccountsExternalRqcPatch({ authorization, xAccountId, xMemberId, accountSettingsChangeErqcRequest }, opts) {
|
|
705
|
+
export function changeExternalRqcV1AccountsExternalRqcPatch({ authorization, xAccountId, xMemberId, xUsername, accountSettingsChangeErqcRequest }, opts) {
|
|
680
706
|
return oazapfts.ok(oazapfts.fetchJson("/v1/accounts/external-rqc", oazapfts.json({
|
|
681
707
|
...opts,
|
|
682
708
|
method: "PATCH",
|
|
@@ -684,7 +710,8 @@ export function changeExternalRqcV1AccountsExternalRqcPatch({ authorization, xAc
|
|
|
684
710
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
685
711
|
authorization,
|
|
686
712
|
"x-account-id": xAccountId,
|
|
687
|
-
"x-member-id": xMemberId
|
|
713
|
+
"x-member-id": xMemberId,
|
|
714
|
+
"x-username": xUsername
|
|
688
715
|
})
|
|
689
716
|
})));
|
|
690
717
|
}
|
|
@@ -717,20 +744,21 @@ export function tokensUsageV1AccountsTokensUsageGet(opts) {
|
|
|
717
744
|
/**
|
|
718
745
|
* Current
|
|
719
746
|
*/
|
|
720
|
-
export function currentV1TokensUsageTotalGet({ authorization, xAccountId, xMemberId }, opts) {
|
|
747
|
+
export function currentV1TokensUsageTotalGet({ authorization, xAccountId, xMemberId, xUsername }, opts) {
|
|
721
748
|
return oazapfts.ok(oazapfts.fetchJson("/v1/tokens-usage/total", {
|
|
722
749
|
...opts,
|
|
723
750
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
724
751
|
authorization,
|
|
725
752
|
"x-account-id": xAccountId,
|
|
726
|
-
"x-member-id": xMemberId
|
|
753
|
+
"x-member-id": xMemberId,
|
|
754
|
+
"x-username": xUsername
|
|
727
755
|
})
|
|
728
756
|
}));
|
|
729
757
|
}
|
|
730
758
|
/**
|
|
731
759
|
* Current
|
|
732
760
|
*/
|
|
733
|
-
export function currentV1TokensUsageCurrentGet({ year, month, authorization, xAccountId, xMemberId }, opts) {
|
|
761
|
+
export function currentV1TokensUsageCurrentGet({ year, month, authorization, xAccountId, xMemberId, xUsername }, opts) {
|
|
734
762
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/tokens-usage/current${QS.query(QS.explode({
|
|
735
763
|
year,
|
|
736
764
|
month
|
|
@@ -739,14 +767,15 @@ export function currentV1TokensUsageCurrentGet({ year, month, authorization, xAc
|
|
|
739
767
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
740
768
|
authorization,
|
|
741
769
|
"x-account-id": xAccountId,
|
|
742
|
-
"x-member-id": xMemberId
|
|
770
|
+
"x-member-id": xMemberId,
|
|
771
|
+
"x-username": xUsername
|
|
743
772
|
})
|
|
744
773
|
}));
|
|
745
774
|
}
|
|
746
775
|
/**
|
|
747
776
|
* Monthly
|
|
748
777
|
*/
|
|
749
|
-
export function monthlyV1TokensUsageMonthlyGet({ year, authorization, xAccountId, xMemberId }, opts) {
|
|
778
|
+
export function monthlyV1TokensUsageMonthlyGet({ year, authorization, xAccountId, xMemberId, xUsername }, opts) {
|
|
750
779
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/tokens-usage/monthly${QS.query(QS.explode({
|
|
751
780
|
year
|
|
752
781
|
}))}`, {
|
|
@@ -754,14 +783,15 @@ export function monthlyV1TokensUsageMonthlyGet({ year, authorization, xAccountId
|
|
|
754
783
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
755
784
|
authorization,
|
|
756
785
|
"x-account-id": xAccountId,
|
|
757
|
-
"x-member-id": xMemberId
|
|
786
|
+
"x-member-id": xMemberId,
|
|
787
|
+
"x-username": xUsername
|
|
758
788
|
})
|
|
759
789
|
}));
|
|
760
790
|
}
|
|
761
791
|
/**
|
|
762
792
|
* Top Users
|
|
763
793
|
*/
|
|
764
|
-
export function topUsersV1TokensUsageTopUsersGet({ year, month, authorization, xAccountId, xMemberId }, opts) {
|
|
794
|
+
export function topUsersV1TokensUsageTopUsersGet({ year, month, authorization, xAccountId, xMemberId, xUsername }, opts) {
|
|
765
795
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/tokens-usage/top-users${QS.query(QS.explode({
|
|
766
796
|
year,
|
|
767
797
|
month
|
|
@@ -770,14 +800,15 @@ export function topUsersV1TokensUsageTopUsersGet({ year, month, authorization, x
|
|
|
770
800
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
771
801
|
authorization,
|
|
772
802
|
"x-account-id": xAccountId,
|
|
773
|
-
"x-member-id": xMemberId
|
|
803
|
+
"x-member-id": xMemberId,
|
|
804
|
+
"x-username": xUsername
|
|
774
805
|
})
|
|
775
806
|
}));
|
|
776
807
|
}
|
|
777
808
|
/**
|
|
778
809
|
* Add Association
|
|
779
810
|
*/
|
|
780
|
-
export function addAssociationV1WorkspaceWorkspaceIdPost({ workspaceId, authorization, xAccountId, xMemberId, addWorkspaceKnowledgeSourceRequest }, opts) {
|
|
811
|
+
export function addAssociationV1WorkspaceWorkspaceIdPost({ workspaceId, authorization, xAccountId, xMemberId, xUsername, addWorkspaceKnowledgeSourceRequest }, opts) {
|
|
781
812
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspace/${encodeURIComponent(workspaceId)}`, oazapfts.json({
|
|
782
813
|
...opts,
|
|
783
814
|
method: "POST",
|
|
@@ -785,41 +816,44 @@ export function addAssociationV1WorkspaceWorkspaceIdPost({ workspaceId, authoriz
|
|
|
785
816
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
786
817
|
authorization,
|
|
787
818
|
"x-account-id": xAccountId,
|
|
788
|
-
"x-member-id": xMemberId
|
|
819
|
+
"x-member-id": xMemberId,
|
|
820
|
+
"x-username": xUsername
|
|
789
821
|
})
|
|
790
822
|
})));
|
|
791
823
|
}
|
|
792
824
|
/**
|
|
793
825
|
* List Association
|
|
794
826
|
*/
|
|
795
|
-
export function listAssociationV1WorkspaceWorkspaceIdGet({ workspaceId, authorization, xAccountId, xMemberId }, opts) {
|
|
827
|
+
export function listAssociationV1WorkspaceWorkspaceIdGet({ workspaceId, authorization, xAccountId, xMemberId, xUsername }, opts) {
|
|
796
828
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspace/${encodeURIComponent(workspaceId)}`, {
|
|
797
829
|
...opts,
|
|
798
830
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
799
831
|
authorization,
|
|
800
832
|
"x-account-id": xAccountId,
|
|
801
|
-
"x-member-id": xMemberId
|
|
833
|
+
"x-member-id": xMemberId,
|
|
834
|
+
"x-username": xUsername
|
|
802
835
|
})
|
|
803
836
|
}));
|
|
804
837
|
}
|
|
805
838
|
/**
|
|
806
839
|
* Delete Association
|
|
807
840
|
*/
|
|
808
|
-
export function deleteAssociationV1WorkspaceWorkspaceIdKnowledgeSourceKnowledgeSourceSlugDelete({ workspaceId, knowledgeSourceSlug, authorization, xAccountId, xMemberId }, opts) {
|
|
841
|
+
export function deleteAssociationV1WorkspaceWorkspaceIdKnowledgeSourceKnowledgeSourceSlugDelete({ workspaceId, knowledgeSourceSlug, authorization, xAccountId, xMemberId, xUsername }, opts) {
|
|
809
842
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspace/${encodeURIComponent(workspaceId)}/knowledge_source/${encodeURIComponent(knowledgeSourceSlug)}`, {
|
|
810
843
|
...opts,
|
|
811
844
|
method: "DELETE",
|
|
812
845
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
813
846
|
authorization,
|
|
814
847
|
"x-account-id": xAccountId,
|
|
815
|
-
"x-member-id": xMemberId
|
|
848
|
+
"x-member-id": xMemberId,
|
|
849
|
+
"x-username": xUsername
|
|
816
850
|
})
|
|
817
851
|
}));
|
|
818
852
|
}
|
|
819
853
|
/**
|
|
820
854
|
* Workspace Fork
|
|
821
855
|
*/
|
|
822
|
-
export function workspaceForkV1QuickCommandsWorkspaceForkPost({ authorization, xAccountId, xMemberId, quickCommandWorkspaceForkRequest }, opts) {
|
|
856
|
+
export function workspaceForkV1QuickCommandsWorkspaceForkPost({ authorization, xAccountId, xMemberId, xUsername, quickCommandWorkspaceForkRequest }, opts) {
|
|
823
857
|
return oazapfts.ok(oazapfts.fetchJson("/v1/quick-commands/workspace/fork", oazapfts.json({
|
|
824
858
|
...opts,
|
|
825
859
|
method: "POST",
|
|
@@ -827,14 +861,15 @@ export function workspaceForkV1QuickCommandsWorkspaceForkPost({ authorization, x
|
|
|
827
861
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
828
862
|
authorization,
|
|
829
863
|
"x-account-id": xAccountId,
|
|
830
|
-
"x-member-id": xMemberId
|
|
864
|
+
"x-member-id": xMemberId,
|
|
865
|
+
"x-username": xUsername
|
|
831
866
|
})
|
|
832
867
|
})));
|
|
833
868
|
}
|
|
834
869
|
/**
|
|
835
870
|
* Workspace Delete Fork
|
|
836
871
|
*/
|
|
837
|
-
export function workspaceDeleteForkV1QuickCommandsWorkspaceForkDelete({ authorization, xAccountId, xMemberId, quickCommandWorkspaceDeleteRequest }, opts) {
|
|
872
|
+
export function workspaceDeleteForkV1QuickCommandsWorkspaceForkDelete({ authorization, xAccountId, xMemberId, xUsername, quickCommandWorkspaceDeleteRequest }, opts) {
|
|
838
873
|
return oazapfts.ok(oazapfts.fetchJson("/v1/quick-commands/workspace/fork", oazapfts.json({
|
|
839
874
|
...opts,
|
|
840
875
|
method: "DELETE",
|
|
@@ -842,14 +877,15 @@ export function workspaceDeleteForkV1QuickCommandsWorkspaceForkDelete({ authoriz
|
|
|
842
877
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
843
878
|
authorization,
|
|
844
879
|
"x-account-id": xAccountId,
|
|
845
|
-
"x-member-id": xMemberId
|
|
880
|
+
"x-member-id": xMemberId,
|
|
881
|
+
"x-username": xUsername
|
|
846
882
|
})
|
|
847
883
|
})));
|
|
848
884
|
}
|
|
849
885
|
/**
|
|
850
886
|
* Workspace List
|
|
851
887
|
*/
|
|
852
|
-
export function workspaceListV1QuickCommandsWorkspaceListPost({ authorization, xAccountId, xMemberId, quickCommandWorkspaceListRequest }, opts) {
|
|
888
|
+
export function workspaceListV1QuickCommandsWorkspaceListPost({ authorization, xAccountId, xMemberId, xUsername, quickCommandWorkspaceListRequest }, opts) {
|
|
853
889
|
return oazapfts.ok(oazapfts.fetchJson("/v1/quick-commands/workspace/list", oazapfts.json({
|
|
854
890
|
...opts,
|
|
855
891
|
method: "POST",
|
|
@@ -857,14 +893,15 @@ export function workspaceListV1QuickCommandsWorkspaceListPost({ authorization, x
|
|
|
857
893
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
858
894
|
authorization,
|
|
859
895
|
"x-account-id": xAccountId,
|
|
860
|
-
"x-member-id": xMemberId
|
|
896
|
+
"x-member-id": xMemberId,
|
|
897
|
+
"x-username": xUsername
|
|
861
898
|
})
|
|
862
899
|
})));
|
|
863
900
|
}
|
|
864
901
|
/**
|
|
865
902
|
* Create Quick Command
|
|
866
903
|
*/
|
|
867
|
-
export function createQuickCommandV1QuickCommandsPost({ authorization, xAccountId, xMemberId, quickCommandsCreateRequest }, opts) {
|
|
904
|
+
export function createQuickCommandV1QuickCommandsPost({ authorization, xAccountId, xMemberId, xUsername, quickCommandsCreateRequest }, opts) {
|
|
868
905
|
return oazapfts.ok(oazapfts.fetchJson("/v1/quick-commands", oazapfts.json({
|
|
869
906
|
...opts,
|
|
870
907
|
method: "POST",
|
|
@@ -872,14 +909,15 @@ export function createQuickCommandV1QuickCommandsPost({ authorization, xAccountI
|
|
|
872
909
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
873
910
|
authorization,
|
|
874
911
|
"x-account-id": xAccountId,
|
|
875
|
-
"x-member-id": xMemberId
|
|
912
|
+
"x-member-id": xMemberId,
|
|
913
|
+
"x-username": xUsername
|
|
876
914
|
})
|
|
877
915
|
})));
|
|
878
916
|
}
|
|
879
917
|
/**
|
|
880
918
|
* List All
|
|
881
919
|
*/
|
|
882
|
-
export function listAllV1QuickCommandsAllGet({ visibility, order, types, authorization, xAccountId, xMemberId }, opts) {
|
|
920
|
+
export function listAllV1QuickCommandsAllGet({ visibility, order, types, authorization, xAccountId, xMemberId, xUsername }, opts) {
|
|
883
921
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/all${QS.query(QS.explode({
|
|
884
922
|
visibility,
|
|
885
923
|
order,
|
|
@@ -889,14 +927,15 @@ export function listAllV1QuickCommandsAllGet({ visibility, order, types, authori
|
|
|
889
927
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
890
928
|
authorization,
|
|
891
929
|
"x-account-id": xAccountId,
|
|
892
|
-
"x-member-id": xMemberId
|
|
930
|
+
"x-member-id": xMemberId,
|
|
931
|
+
"x-username": xUsername
|
|
893
932
|
})
|
|
894
933
|
}));
|
|
895
934
|
}
|
|
896
935
|
/**
|
|
897
936
|
* Update Quick Command
|
|
898
937
|
*/
|
|
899
|
-
export function updateQuickCommandV1QuickCommandsSlugPatch({ slug, authorization, xAccountId, xMemberId, quickCommandsUpdateRequest }, opts) {
|
|
938
|
+
export function updateQuickCommandV1QuickCommandsSlugPatch({ slug, authorization, xAccountId, xMemberId, xUsername, quickCommandsUpdateRequest }, opts) {
|
|
900
939
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}`, oazapfts.json({
|
|
901
940
|
...opts,
|
|
902
941
|
method: "PATCH",
|
|
@@ -904,14 +943,15 @@ export function updateQuickCommandV1QuickCommandsSlugPatch({ slug, authorization
|
|
|
904
943
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
905
944
|
authorization,
|
|
906
945
|
"x-account-id": xAccountId,
|
|
907
|
-
"x-member-id": xMemberId
|
|
946
|
+
"x-member-id": xMemberId,
|
|
947
|
+
"x-username": xUsername
|
|
908
948
|
})
|
|
909
949
|
})));
|
|
910
950
|
}
|
|
911
951
|
/**
|
|
912
952
|
* Get Quick Command
|
|
913
953
|
*/
|
|
914
|
-
export function getQuickCommandV1QuickCommandsSlugGet({ slug, findAgents, authorization, xAccountId, xMemberId }, opts) {
|
|
954
|
+
export function getQuickCommandV1QuickCommandsSlugGet({ slug, findAgents, authorization, xAccountId, xMemberId, xUsername }, opts) {
|
|
915
955
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}${QS.query(QS.explode({
|
|
916
956
|
find_agents: findAgents
|
|
917
957
|
}))}`, {
|
|
@@ -919,70 +959,75 @@ export function getQuickCommandV1QuickCommandsSlugGet({ slug, findAgents, author
|
|
|
919
959
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
920
960
|
authorization,
|
|
921
961
|
"x-account-id": xAccountId,
|
|
922
|
-
"x-member-id": xMemberId
|
|
962
|
+
"x-member-id": xMemberId,
|
|
963
|
+
"x-username": xUsername
|
|
923
964
|
})
|
|
924
965
|
}));
|
|
925
966
|
}
|
|
926
967
|
/**
|
|
927
968
|
* Delete Quick Command
|
|
928
969
|
*/
|
|
929
|
-
export function deleteQuickCommandV1QuickCommandsSlugDelete({ slug, authorization, xAccountId, xMemberId }, opts) {
|
|
970
|
+
export function deleteQuickCommandV1QuickCommandsSlugDelete({ slug, authorization, xAccountId, xMemberId, xUsername }, opts) {
|
|
930
971
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}`, {
|
|
931
972
|
...opts,
|
|
932
973
|
method: "DELETE",
|
|
933
974
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
934
975
|
authorization,
|
|
935
976
|
"x-account-id": xAccountId,
|
|
936
|
-
"x-member-id": xMemberId
|
|
977
|
+
"x-member-id": xMemberId,
|
|
978
|
+
"x-username": xUsername
|
|
937
979
|
})
|
|
938
980
|
}));
|
|
939
981
|
}
|
|
940
982
|
/**
|
|
941
983
|
* Add Favorite
|
|
942
984
|
*/
|
|
943
|
-
export function addFavoriteV1QuickCommandsSlugFavoritePost({ slug, authorization, xAccountId, xMemberId }, opts) {
|
|
985
|
+
export function addFavoriteV1QuickCommandsSlugFavoritePost({ slug, authorization, xAccountId, xMemberId, xUsername }, opts) {
|
|
944
986
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/favorite`, {
|
|
945
987
|
...opts,
|
|
946
988
|
method: "POST",
|
|
947
989
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
948
990
|
authorization,
|
|
949
991
|
"x-account-id": xAccountId,
|
|
950
|
-
"x-member-id": xMemberId
|
|
992
|
+
"x-member-id": xMemberId,
|
|
993
|
+
"x-username": xUsername
|
|
951
994
|
})
|
|
952
995
|
}));
|
|
953
996
|
}
|
|
954
997
|
/**
|
|
955
998
|
* Delete Favorite
|
|
956
999
|
*/
|
|
957
|
-
export function deleteFavoriteV1QuickCommandsSlugFavoriteDelete({ slug, authorization, xAccountId, xMemberId }, opts) {
|
|
1000
|
+
export function deleteFavoriteV1QuickCommandsSlugFavoriteDelete({ slug, authorization, xAccountId, xMemberId, xUsername }, opts) {
|
|
958
1001
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/favorite`, {
|
|
959
1002
|
...opts,
|
|
960
1003
|
method: "DELETE",
|
|
961
1004
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
962
1005
|
authorization,
|
|
963
1006
|
"x-account-id": xAccountId,
|
|
964
|
-
"x-member-id": xMemberId
|
|
1007
|
+
"x-member-id": xMemberId,
|
|
1008
|
+
"x-username": xUsername
|
|
965
1009
|
})
|
|
966
1010
|
}));
|
|
967
1011
|
}
|
|
968
1012
|
/**
|
|
969
1013
|
* Share
|
|
970
1014
|
*/
|
|
971
|
-
export function shareV1QuickCommandsSlugSharePost({ slug, authorization, xAccountId, xMemberId }, opts) {
|
|
1015
|
+
export function shareV1QuickCommandsSlugSharePost({ slug, authorization, xAccountId, xMemberId, xUsername }, opts) {
|
|
972
1016
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/share`, {
|
|
973
1017
|
...opts,
|
|
974
1018
|
method: "POST",
|
|
975
1019
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
976
1020
|
authorization,
|
|
977
1021
|
"x-account-id": xAccountId,
|
|
978
|
-
"x-member-id": xMemberId
|
|
1022
|
+
"x-member-id": xMemberId,
|
|
1023
|
+
"x-username": xUsername
|
|
979
1024
|
})
|
|
980
1025
|
}));
|
|
981
1026
|
}
|
|
982
1027
|
/**
|
|
983
1028
|
* Publish
|
|
984
1029
|
*/
|
|
985
|
-
export function publishV1QuickCommandsSlugPublishPost({ slug, authorization, xAccountId, xMemberId, quickCommandPublishRequest }, opts) {
|
|
1030
|
+
export function publishV1QuickCommandsSlugPublishPost({ slug, authorization, xAccountId, xMemberId, xUsername, quickCommandPublishRequest }, opts) {
|
|
986
1031
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/publish`, oazapfts.json({
|
|
987
1032
|
...opts,
|
|
988
1033
|
method: "POST",
|
|
@@ -990,14 +1035,15 @@ export function publishV1QuickCommandsSlugPublishPost({ slug, authorization, xAc
|
|
|
990
1035
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
991
1036
|
authorization,
|
|
992
1037
|
"x-account-id": xAccountId,
|
|
993
|
-
"x-member-id": xMemberId
|
|
1038
|
+
"x-member-id": xMemberId,
|
|
1039
|
+
"x-username": xUsername
|
|
994
1040
|
})
|
|
995
1041
|
})));
|
|
996
1042
|
}
|
|
997
1043
|
/**
|
|
998
1044
|
* Fork
|
|
999
1045
|
*/
|
|
1000
|
-
export function forkV1QuickCommandsSlugForkPost({ slug, authorization, xAccountId, xMemberId, quickCommandsMakeACopyRequest }, opts) {
|
|
1046
|
+
export function forkV1QuickCommandsSlugForkPost({ slug, authorization, xAccountId, xMemberId, xUsername, quickCommandsMakeACopyRequest }, opts) {
|
|
1001
1047
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/fork`, oazapfts.json({
|
|
1002
1048
|
...opts,
|
|
1003
1049
|
method: "POST",
|
|
@@ -1005,80 +1051,86 @@ export function forkV1QuickCommandsSlugForkPost({ slug, authorization, xAccountI
|
|
|
1005
1051
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1006
1052
|
authorization,
|
|
1007
1053
|
"x-account-id": xAccountId,
|
|
1008
|
-
"x-member-id": xMemberId
|
|
1054
|
+
"x-member-id": xMemberId,
|
|
1055
|
+
"x-username": xUsername
|
|
1009
1056
|
})
|
|
1010
1057
|
})));
|
|
1011
1058
|
}
|
|
1012
1059
|
/**
|
|
1013
1060
|
* Get Quick Command
|
|
1014
1061
|
*/
|
|
1015
|
-
export function getQuickCommandV1QuickCommandsSlugExistsGet({ slug, authorization, xAccountId, xMemberId }, opts) {
|
|
1062
|
+
export function getQuickCommandV1QuickCommandsSlugExistsGet({ slug, authorization, xAccountId, xMemberId, xUsername }, opts) {
|
|
1016
1063
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/exists`, {
|
|
1017
1064
|
...opts,
|
|
1018
1065
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1019
1066
|
authorization,
|
|
1020
1067
|
"x-account-id": xAccountId,
|
|
1021
|
-
"x-member-id": xMemberId
|
|
1068
|
+
"x-member-id": xMemberId,
|
|
1069
|
+
"x-username": xUsername
|
|
1022
1070
|
})
|
|
1023
1071
|
}));
|
|
1024
1072
|
}
|
|
1025
1073
|
/**
|
|
1026
1074
|
* Get Quick Command By Ks Slug
|
|
1027
1075
|
*/
|
|
1028
|
-
export function getQuickCommandByKsSlugV1QuickCommandsKnowledgeSourcesSlugGet({ slug, authorization, xAccountId, xMemberId }, opts) {
|
|
1076
|
+
export function getQuickCommandByKsSlugV1QuickCommandsKnowledgeSourcesSlugGet({ slug, authorization, xAccountId, xMemberId, xUsername }, opts) {
|
|
1029
1077
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/knowledge-sources/${encodeURIComponent(slug)}`, {
|
|
1030
1078
|
...opts,
|
|
1031
1079
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1032
1080
|
authorization,
|
|
1033
1081
|
"x-account-id": xAccountId,
|
|
1034
|
-
"x-member-id": xMemberId
|
|
1082
|
+
"x-member-id": xMemberId,
|
|
1083
|
+
"x-username": xUsername
|
|
1035
1084
|
})
|
|
1036
1085
|
}));
|
|
1037
1086
|
}
|
|
1038
1087
|
/**
|
|
1039
1088
|
* Get Quick Commands By Agent Id
|
|
1040
1089
|
*/
|
|
1041
|
-
export function getQuickCommandsByAgentIdV1QuickCommandsAgentsAgentIdGet({ agentId, authorization, xAccountId, xMemberId }, opts) {
|
|
1090
|
+
export function getQuickCommandsByAgentIdV1QuickCommandsAgentsAgentIdGet({ agentId, authorization, xAccountId, xMemberId, xUsername }, opts) {
|
|
1042
1091
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/agents/${encodeURIComponent(agentId)}`, {
|
|
1043
1092
|
...opts,
|
|
1044
1093
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1045
1094
|
authorization,
|
|
1046
1095
|
"x-account-id": xAccountId,
|
|
1047
|
-
"x-member-id": xMemberId
|
|
1096
|
+
"x-member-id": xMemberId,
|
|
1097
|
+
"x-username": xUsername
|
|
1048
1098
|
})
|
|
1049
1099
|
}));
|
|
1050
1100
|
}
|
|
1051
1101
|
/**
|
|
1052
1102
|
* Disassociate Agent
|
|
1053
1103
|
*/
|
|
1054
|
-
export function disassociateAgentV1QuickCommandsAgentsAgentIdDelete({ agentId, authorization, xAccountId, xMemberId }, opts) {
|
|
1104
|
+
export function disassociateAgentV1QuickCommandsAgentsAgentIdDelete({ agentId, authorization, xAccountId, xMemberId, xUsername }, opts) {
|
|
1055
1105
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/agents/${encodeURIComponent(agentId)}`, {
|
|
1056
1106
|
...opts,
|
|
1057
1107
|
method: "DELETE",
|
|
1058
1108
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1059
1109
|
authorization,
|
|
1060
1110
|
"x-account-id": xAccountId,
|
|
1061
|
-
"x-member-id": xMemberId
|
|
1111
|
+
"x-member-id": xMemberId,
|
|
1112
|
+
"x-username": xUsername
|
|
1062
1113
|
})
|
|
1063
1114
|
}));
|
|
1064
1115
|
}
|
|
1065
1116
|
/**
|
|
1066
1117
|
* List By Workspace Id
|
|
1067
1118
|
*/
|
|
1068
|
-
export function listByWorkspaceIdV1QuickCommandsWorkspacesWorkspaceIdGet({ workspaceId, authorization, xAccountId, xMemberId }, opts) {
|
|
1119
|
+
export function listByWorkspaceIdV1QuickCommandsWorkspacesWorkspaceIdGet({ workspaceId, authorization, xAccountId, xMemberId, xUsername }, opts) {
|
|
1069
1120
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/workspaces/${encodeURIComponent(workspaceId)}`, {
|
|
1070
1121
|
...opts,
|
|
1071
1122
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1072
1123
|
authorization,
|
|
1073
1124
|
"x-account-id": xAccountId,
|
|
1074
|
-
"x-member-id": xMemberId
|
|
1125
|
+
"x-member-id": xMemberId,
|
|
1126
|
+
"x-username": xUsername
|
|
1075
1127
|
})
|
|
1076
1128
|
}));
|
|
1077
1129
|
}
|
|
1078
1130
|
/**
|
|
1079
1131
|
* Format Fetch Step
|
|
1080
1132
|
*/
|
|
1081
|
-
export function formatFetchStepV1QuickCommandsSlugStepsStepSlugFetchFormatPost({ slug, stepSlug, authorization, xAccountId, xMemberId, quickCommandsExecutionRequest }, opts) {
|
|
1133
|
+
export function formatFetchStepV1QuickCommandsSlugStepsStepSlugFetchFormatPost({ slug, stepSlug, authorization, xAccountId, xMemberId, xUsername, quickCommandsExecutionRequest }, opts) {
|
|
1082
1134
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/steps/${encodeURIComponent(stepSlug)}/fetch_format`, oazapfts.json({
|
|
1083
1135
|
...opts,
|
|
1084
1136
|
method: "POST",
|
|
@@ -1086,14 +1138,15 @@ export function formatFetchStepV1QuickCommandsSlugStepsStepSlugFetchFormatPost({
|
|
|
1086
1138
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1087
1139
|
authorization,
|
|
1088
1140
|
"x-account-id": xAccountId,
|
|
1089
|
-
"x-member-id": xMemberId
|
|
1141
|
+
"x-member-id": xMemberId,
|
|
1142
|
+
"x-username": xUsername
|
|
1090
1143
|
})
|
|
1091
1144
|
})));
|
|
1092
1145
|
}
|
|
1093
1146
|
/**
|
|
1094
1147
|
* Format Result
|
|
1095
1148
|
*/
|
|
1096
|
-
export function formatResultV1QuickCommandsSlugResultFormatPost({ slug, authorization, xAccountId, xMemberId, quickCommandsExecutionRequest }, opts) {
|
|
1149
|
+
export function formatResultV1QuickCommandsSlugResultFormatPost({ slug, authorization, xAccountId, xMemberId, xUsername, quickCommandsExecutionRequest }, opts) {
|
|
1097
1150
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/result_format`, oazapfts.json({
|
|
1098
1151
|
...opts,
|
|
1099
1152
|
method: "POST",
|
|
@@ -1101,14 +1154,15 @@ export function formatResultV1QuickCommandsSlugResultFormatPost({ slug, authoriz
|
|
|
1101
1154
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1102
1155
|
authorization,
|
|
1103
1156
|
"x-account-id": xAccountId,
|
|
1104
|
-
"x-member-id": xMemberId
|
|
1157
|
+
"x-member-id": xMemberId,
|
|
1158
|
+
"x-username": xUsername
|
|
1105
1159
|
})
|
|
1106
1160
|
})));
|
|
1107
1161
|
}
|
|
1108
1162
|
/**
|
|
1109
1163
|
* Calculates the next route for a ROUTER step
|
|
1110
1164
|
*/
|
|
1111
|
-
export function calculateNextStepV1QuickCommandsSlugStepsStepSlugCalculateNextStepPost({ slug, stepSlug, authorization, xAccountId, xMemberId, quickCommandEvaluateStepRouterRequest }, opts) {
|
|
1165
|
+
export function calculateNextStepV1QuickCommandsSlugStepsStepSlugCalculateNextStepPost({ slug, stepSlug, authorization, xAccountId, xMemberId, xUsername, quickCommandEvaluateStepRouterRequest }, opts) {
|
|
1112
1166
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/steps/${encodeURIComponent(stepSlug)}/calculate_next_step`, oazapfts.json({
|
|
1113
1167
|
...opts,
|
|
1114
1168
|
method: "POST",
|
|
@@ -1116,42 +1170,45 @@ export function calculateNextStepV1QuickCommandsSlugStepsStepSlugCalculateNextSt
|
|
|
1116
1170
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1117
1171
|
authorization,
|
|
1118
1172
|
"x-account-id": xAccountId,
|
|
1119
|
-
"x-member-id": xMemberId
|
|
1173
|
+
"x-member-id": xMemberId,
|
|
1174
|
+
"x-username": xUsername
|
|
1120
1175
|
})
|
|
1121
1176
|
})));
|
|
1122
1177
|
}
|
|
1123
1178
|
/**
|
|
1124
1179
|
* Add Workspace
|
|
1125
1180
|
*/
|
|
1126
|
-
export function addWorkspaceV1QuickCommandsSlugWorkspacesWorkspaceIdAddPost({ slug, workspaceId, authorization, xAccountId, xMemberId }, opts) {
|
|
1181
|
+
export function addWorkspaceV1QuickCommandsSlugWorkspacesWorkspaceIdAddPost({ slug, workspaceId, authorization, xAccountId, xMemberId, xUsername }, opts) {
|
|
1127
1182
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/workspaces/${encodeURIComponent(workspaceId)}/add`, {
|
|
1128
1183
|
...opts,
|
|
1129
1184
|
method: "POST",
|
|
1130
1185
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1131
1186
|
authorization,
|
|
1132
1187
|
"x-account-id": xAccountId,
|
|
1133
|
-
"x-member-id": xMemberId
|
|
1188
|
+
"x-member-id": xMemberId,
|
|
1189
|
+
"x-username": xUsername
|
|
1134
1190
|
})
|
|
1135
1191
|
}));
|
|
1136
1192
|
}
|
|
1137
1193
|
/**
|
|
1138
1194
|
* Remove Workspace
|
|
1139
1195
|
*/
|
|
1140
|
-
export function removeWorkspaceV1QuickCommandsSlugWorkspacesWorkspaceIdRemoveDelete({ slug, workspaceId, authorization, xAccountId, xMemberId }, opts) {
|
|
1196
|
+
export function removeWorkspaceV1QuickCommandsSlugWorkspacesWorkspaceIdRemoveDelete({ slug, workspaceId, authorization, xAccountId, xMemberId, xUsername }, opts) {
|
|
1141
1197
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/workspaces/${encodeURIComponent(workspaceId)}/remove`, {
|
|
1142
1198
|
...opts,
|
|
1143
1199
|
method: "DELETE",
|
|
1144
1200
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1145
1201
|
authorization,
|
|
1146
1202
|
"x-account-id": xAccountId,
|
|
1147
|
-
"x-member-id": xMemberId
|
|
1203
|
+
"x-member-id": xMemberId,
|
|
1204
|
+
"x-username": xUsername
|
|
1148
1205
|
})
|
|
1149
1206
|
}));
|
|
1150
1207
|
}
|
|
1151
1208
|
/**
|
|
1152
1209
|
* Create Execution
|
|
1153
1210
|
*/
|
|
1154
|
-
export function createExecutionV1QuickCommandsCreateExecutionSlugPost({ slug, conversationId, authorization, xAccountId, xMemberId, quickCommandCreateRequest }, opts) {
|
|
1211
|
+
export function createExecutionV1QuickCommandsCreateExecutionSlugPost({ slug, conversationId, authorization, xAccountId, xMemberId, xUsername, quickCommandCreateRequest }, opts) {
|
|
1155
1212
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/create-execution/${encodeURIComponent(slug)}${QS.query(QS.explode({
|
|
1156
1213
|
conversation_id: conversationId
|
|
1157
1214
|
}))}`, oazapfts.json({
|
|
@@ -1161,14 +1218,15 @@ export function createExecutionV1QuickCommandsCreateExecutionSlugPost({ slug, co
|
|
|
1161
1218
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1162
1219
|
authorization,
|
|
1163
1220
|
"x-account-id": xAccountId,
|
|
1164
|
-
"x-member-id": xMemberId
|
|
1221
|
+
"x-member-id": xMemberId,
|
|
1222
|
+
"x-username": xUsername
|
|
1165
1223
|
})
|
|
1166
1224
|
})));
|
|
1167
1225
|
}
|
|
1168
1226
|
/**
|
|
1169
1227
|
* Triggers asynchronous execution of a Remote Quick Command
|
|
1170
1228
|
*/
|
|
1171
|
-
export function executeV1QuickCommandsExecuteExecutionIdPost({ executionId, authorization, xAccountId, xMemberId, quickCommandExecutionRequest }, opts) {
|
|
1229
|
+
export function executeV1QuickCommandsExecuteExecutionIdPost({ executionId, authorization, xAccountId, xMemberId, xUsername, quickCommandExecutionRequest }, opts) {
|
|
1172
1230
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/execute/${encodeURIComponent(executionId)}`, oazapfts.json({
|
|
1173
1231
|
...opts,
|
|
1174
1232
|
method: "POST",
|
|
@@ -1176,27 +1234,29 @@ export function executeV1QuickCommandsExecuteExecutionIdPost({ executionId, auth
|
|
|
1176
1234
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1177
1235
|
authorization,
|
|
1178
1236
|
"x-account-id": xAccountId,
|
|
1179
|
-
"x-member-id": xMemberId
|
|
1237
|
+
"x-member-id": xMemberId,
|
|
1238
|
+
"x-username": xUsername
|
|
1180
1239
|
})
|
|
1181
1240
|
})));
|
|
1182
1241
|
}
|
|
1183
1242
|
/**
|
|
1184
1243
|
* Callback
|
|
1185
1244
|
*/
|
|
1186
|
-
export function callbackV1QuickCommandsCallbackExecutionIdGet({ executionId, authorization, xAccountId, xMemberId }, opts) {
|
|
1245
|
+
export function callbackV1QuickCommandsCallbackExecutionIdGet({ executionId, authorization, xAccountId, xMemberId, xUsername }, opts) {
|
|
1187
1246
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/callback/${encodeURIComponent(executionId)}`, {
|
|
1188
1247
|
...opts,
|
|
1189
1248
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1190
1249
|
authorization,
|
|
1191
1250
|
"x-account-id": xAccountId,
|
|
1192
|
-
"x-member-id": xMemberId
|
|
1251
|
+
"x-member-id": xMemberId,
|
|
1252
|
+
"x-username": xUsername
|
|
1193
1253
|
})
|
|
1194
1254
|
}));
|
|
1195
1255
|
}
|
|
1196
1256
|
/**
|
|
1197
1257
|
* Run Fetch Step
|
|
1198
1258
|
*/
|
|
1199
|
-
export function runFetchStepV1QuickCommandsSlugStepsStepSlugFetchRunPost({ slug, stepSlug, authorization, xAccountId, xMemberId, quickCommandsExecutionRequest }, opts) {
|
|
1259
|
+
export function runFetchStepV1QuickCommandsSlugStepsStepSlugFetchRunPost({ slug, stepSlug, authorization, xAccountId, xMemberId, xUsername, quickCommandsExecutionRequest }, opts) {
|
|
1200
1260
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/steps/${encodeURIComponent(stepSlug)}/fetch_run`, oazapfts.json({
|
|
1201
1261
|
...opts,
|
|
1202
1262
|
method: "POST",
|
|
@@ -1204,14 +1264,15 @@ export function runFetchStepV1QuickCommandsSlugStepsStepSlugFetchRunPost({ slug,
|
|
|
1204
1264
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1205
1265
|
authorization,
|
|
1206
1266
|
"x-account-id": xAccountId,
|
|
1207
|
-
"x-member-id": xMemberId
|
|
1267
|
+
"x-member-id": xMemberId,
|
|
1268
|
+
"x-username": xUsername
|
|
1208
1269
|
})
|
|
1209
1270
|
})));
|
|
1210
1271
|
}
|
|
1211
1272
|
/**
|
|
1212
1273
|
* List Conversations
|
|
1213
1274
|
*/
|
|
1214
|
-
export function listConversationsV1ConversationsGet({ size, page, authorization, xAccountId, xMemberId }, opts) {
|
|
1275
|
+
export function listConversationsV1ConversationsGet({ size, page, authorization, xAccountId, xMemberId, xUsername }, opts) {
|
|
1215
1276
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/conversations${QS.query(QS.explode({
|
|
1216
1277
|
size,
|
|
1217
1278
|
page
|
|
@@ -1220,27 +1281,29 @@ export function listConversationsV1ConversationsGet({ size, page, authorization,
|
|
|
1220
1281
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1221
1282
|
authorization,
|
|
1222
1283
|
"x-account-id": xAccountId,
|
|
1223
|
-
"x-member-id": xMemberId
|
|
1284
|
+
"x-member-id": xMemberId,
|
|
1285
|
+
"x-username": xUsername
|
|
1224
1286
|
})
|
|
1225
1287
|
}));
|
|
1226
1288
|
}
|
|
1227
1289
|
/**
|
|
1228
1290
|
* Conversation History
|
|
1229
1291
|
*/
|
|
1230
|
-
export function conversationHistoryV1ConversationsConversationIdGet({ conversationId, authorization, xAccountId, xMemberId }, opts) {
|
|
1292
|
+
export function conversationHistoryV1ConversationsConversationIdGet({ conversationId, authorization, xAccountId, xMemberId, xUsername }, opts) {
|
|
1231
1293
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/conversations/${encodeURIComponent(conversationId)}`, {
|
|
1232
1294
|
...opts,
|
|
1233
1295
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1234
1296
|
authorization,
|
|
1235
1297
|
"x-account-id": xAccountId,
|
|
1236
|
-
"x-member-id": xMemberId
|
|
1298
|
+
"x-member-id": xMemberId,
|
|
1299
|
+
"x-username": xUsername
|
|
1237
1300
|
})
|
|
1238
1301
|
}));
|
|
1239
1302
|
}
|
|
1240
1303
|
/**
|
|
1241
1304
|
* Update Title
|
|
1242
1305
|
*/
|
|
1243
|
-
export function updateTitleV1ConversationsConversationIdPatch({ conversationId, authorization, xAccountId, xMemberId, conversationUpdateTitleRequest }, opts) {
|
|
1306
|
+
export function updateTitleV1ConversationsConversationIdPatch({ conversationId, authorization, xAccountId, xMemberId, xUsername, conversationUpdateTitleRequest }, opts) {
|
|
1244
1307
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/conversations/${encodeURIComponent(conversationId)}`, oazapfts.json({
|
|
1245
1308
|
...opts,
|
|
1246
1309
|
method: "PATCH",
|
|
@@ -1248,34 +1311,37 @@ export function updateTitleV1ConversationsConversationIdPatch({ conversationId,
|
|
|
1248
1311
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1249
1312
|
authorization,
|
|
1250
1313
|
"x-account-id": xAccountId,
|
|
1251
|
-
"x-member-id": xMemberId
|
|
1314
|
+
"x-member-id": xMemberId,
|
|
1315
|
+
"x-username": xUsername
|
|
1252
1316
|
})
|
|
1253
1317
|
})));
|
|
1254
1318
|
}
|
|
1255
1319
|
/**
|
|
1256
1320
|
* Delete Conversation
|
|
1257
1321
|
*/
|
|
1258
|
-
export function deleteConversationV1ConversationsConversationIdDelete({ conversationId, authorization, xAccountId, xMemberId }, opts) {
|
|
1322
|
+
export function deleteConversationV1ConversationsConversationIdDelete({ conversationId, authorization, xAccountId, xMemberId, xUsername }, opts) {
|
|
1259
1323
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/conversations/${encodeURIComponent(conversationId)}`, {
|
|
1260
1324
|
...opts,
|
|
1261
1325
|
method: "DELETE",
|
|
1262
1326
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1263
1327
|
authorization,
|
|
1264
1328
|
"x-account-id": xAccountId,
|
|
1265
|
-
"x-member-id": xMemberId
|
|
1329
|
+
"x-member-id": xMemberId,
|
|
1330
|
+
"x-username": xUsername
|
|
1266
1331
|
})
|
|
1267
1332
|
}));
|
|
1268
1333
|
}
|
|
1269
1334
|
/**
|
|
1270
1335
|
* Download Conversation
|
|
1271
1336
|
*/
|
|
1272
|
-
export function downloadConversationV1ConversationsConversationIdDownloadGet({ conversationId, authorization, xAccountId, xMemberId }, opts) {
|
|
1337
|
+
export function downloadConversationV1ConversationsConversationIdDownloadGet({ conversationId, authorization, xAccountId, xMemberId, xUsername }, opts) {
|
|
1273
1338
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/conversations/${encodeURIComponent(conversationId)}/download`, {
|
|
1274
1339
|
...opts,
|
|
1275
1340
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1276
1341
|
authorization,
|
|
1277
1342
|
"x-account-id": xAccountId,
|
|
1278
|
-
"x-member-id": xMemberId
|
|
1343
|
+
"x-member-id": xMemberId,
|
|
1344
|
+
"x-username": xUsername
|
|
1279
1345
|
})
|
|
1280
1346
|
}));
|
|
1281
1347
|
}
|
|
@@ -1319,13 +1385,14 @@ export function uploadKnowledgeObjectsZipV1DefaultKnowledgeSourcesSlugObjectsBat
|
|
|
1319
1385
|
/**
|
|
1320
1386
|
* Find Knowledge Source Dependencies
|
|
1321
1387
|
*/
|
|
1322
|
-
export function findKnowledgeSourceDependenciesV1KnowledgeSourcesSlugDependenciesGet({ slug, authorization, xAccountId, xMemberId }, opts) {
|
|
1388
|
+
export function findKnowledgeSourceDependenciesV1KnowledgeSourcesSlugDependenciesGet({ slug, authorization, xAccountId, xMemberId, xUsername }, opts) {
|
|
1323
1389
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/dependencies`, {
|
|
1324
1390
|
...opts,
|
|
1325
1391
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1326
1392
|
authorization,
|
|
1327
1393
|
"x-account-id": xAccountId,
|
|
1328
|
-
"x-member-id": xMemberId
|
|
1394
|
+
"x-member-id": xMemberId,
|
|
1395
|
+
"x-username": xUsername
|
|
1329
1396
|
})
|
|
1330
1397
|
}));
|
|
1331
1398
|
}
|
|
@@ -1340,16 +1407,42 @@ export function getFlagsV1FlagsGet(opts) {
|
|
|
1340
1407
|
/**
|
|
1341
1408
|
* Get Content Dependencies
|
|
1342
1409
|
*/
|
|
1343
|
-
export function getContentDependenciesV1ContentContentTypeContentIdDependenciesGet({ contentType, contentId, authorization, xAccountId, xMemberId }, opts) {
|
|
1410
|
+
export function getContentDependenciesV1ContentContentTypeContentIdDependenciesGet({ contentType, contentId, authorization, xAccountId, xMemberId, xUsername }, opts) {
|
|
1344
1411
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/content/${encodeURIComponent(contentType)}/${encodeURIComponent(contentId)}/dependencies`, {
|
|
1345
1412
|
...opts,
|
|
1346
1413
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1347
1414
|
authorization,
|
|
1348
1415
|
"x-account-id": xAccountId,
|
|
1349
|
-
"x-member-id": xMemberId
|
|
1416
|
+
"x-member-id": xMemberId,
|
|
1417
|
+
"x-username": xUsername
|
|
1350
1418
|
})
|
|
1351
1419
|
}));
|
|
1352
1420
|
}
|
|
1421
|
+
/**
|
|
1422
|
+
* Tokens Daily Usage
|
|
1423
|
+
*/
|
|
1424
|
+
export function tokensDailyUsageV1AnalyticsTokensDailyUsageGet({ month, year, accountSlug }, opts) {
|
|
1425
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/analytics/tokens/daily-usage${QS.query(QS.explode({
|
|
1426
|
+
month,
|
|
1427
|
+
year,
|
|
1428
|
+
account_slug: accountSlug
|
|
1429
|
+
}))}`, {
|
|
1430
|
+
...opts
|
|
1431
|
+
}));
|
|
1432
|
+
}
|
|
1433
|
+
/**
|
|
1434
|
+
* Tokens By User
|
|
1435
|
+
*/
|
|
1436
|
+
export function tokensByUserV1AnalyticsTokensByUserGet({ month, year, page, pageSize }, opts) {
|
|
1437
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/analytics/tokens/by-user${QS.query(QS.explode({
|
|
1438
|
+
month,
|
|
1439
|
+
year,
|
|
1440
|
+
page,
|
|
1441
|
+
page_size: pageSize
|
|
1442
|
+
}))}`, {
|
|
1443
|
+
...opts
|
|
1444
|
+
}));
|
|
1445
|
+
}
|
|
1353
1446
|
/**
|
|
1354
1447
|
* Dev Assistant V2
|
|
1355
1448
|
*/
|
|
@@ -1365,7 +1458,7 @@ export function devAssistantV2V2ChatPost({ accept }, opts) {
|
|
|
1365
1458
|
/**
|
|
1366
1459
|
* Quick Commands Run V2
|
|
1367
1460
|
*/
|
|
1368
|
-
export function quickCommandsRunV2V2QuickCommandsSlugStepsStepSlugRunPost({ slug, stepSlug, authorization, xAccountId, xMemberId, quickCommandsExecutionRequest }, opts) {
|
|
1461
|
+
export function quickCommandsRunV2V2QuickCommandsSlugStepsStepSlugRunPost({ slug, stepSlug, authorization, xAccountId, xMemberId, xUsername, quickCommandsExecutionRequest }, opts) {
|
|
1369
1462
|
return oazapfts.ok(oazapfts.fetchJson(`/v2/quick-commands/${encodeURIComponent(slug)}/steps/${encodeURIComponent(stepSlug)}/run`, oazapfts.json({
|
|
1370
1463
|
...opts,
|
|
1371
1464
|
method: "POST",
|
|
@@ -1373,14 +1466,15 @@ export function quickCommandsRunV2V2QuickCommandsSlugStepsStepSlugRunPost({ slug
|
|
|
1373
1466
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1374
1467
|
authorization,
|
|
1375
1468
|
"x-account-id": xAccountId,
|
|
1376
|
-
"x-member-id": xMemberId
|
|
1469
|
+
"x-member-id": xMemberId,
|
|
1470
|
+
"x-username": xUsername
|
|
1377
1471
|
})
|
|
1378
1472
|
})));
|
|
1379
1473
|
}
|
|
1380
1474
|
/**
|
|
1381
1475
|
* List All
|
|
1382
1476
|
*/
|
|
1383
|
-
export function listAllV2QuickCommandsAllGet({ visibility, order, types, authorization, xAccountId, xMemberId }, opts) {
|
|
1477
|
+
export function listAllV2QuickCommandsAllGet({ visibility, order, types, authorization, xAccountId, xMemberId, xUsername }, opts) {
|
|
1384
1478
|
return oazapfts.ok(oazapfts.fetchJson(`/v2/quick-commands/all${QS.query(QS.explode({
|
|
1385
1479
|
visibility,
|
|
1386
1480
|
order,
|
|
@@ -1390,14 +1484,15 @@ export function listAllV2QuickCommandsAllGet({ visibility, order, types, authori
|
|
|
1390
1484
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1391
1485
|
authorization,
|
|
1392
1486
|
"x-account-id": xAccountId,
|
|
1393
|
-
"x-member-id": xMemberId
|
|
1487
|
+
"x-member-id": xMemberId,
|
|
1488
|
+
"x-username": xUsername
|
|
1394
1489
|
})
|
|
1395
1490
|
}));
|
|
1396
1491
|
}
|
|
1397
1492
|
/**
|
|
1398
1493
|
* Dev Assistant V3
|
|
1399
1494
|
*/
|
|
1400
|
-
export function devAssistantV3V3ChatPost({ authorization, xAccountId, xMemberId, chatRequest }, opts) {
|
|
1495
|
+
export function devAssistantV3V3ChatPost({ authorization, xAccountId, xMemberId, xUsername, chatRequest }, opts) {
|
|
1401
1496
|
return oazapfts.ok(oazapfts.fetchJson("/v3/chat", oazapfts.json({
|
|
1402
1497
|
...opts,
|
|
1403
1498
|
method: "POST",
|
|
@@ -1405,7 +1500,8 @@ export function devAssistantV3V3ChatPost({ authorization, xAccountId, xMemberId,
|
|
|
1405
1500
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1406
1501
|
authorization,
|
|
1407
1502
|
"x-account-id": xAccountId,
|
|
1408
|
-
"x-member-id": xMemberId
|
|
1503
|
+
"x-member-id": xMemberId,
|
|
1504
|
+
"x-username": xUsername
|
|
1409
1505
|
})
|
|
1410
1506
|
})));
|
|
1411
1507
|
}
|