windmill-client 1.554.0 → 1.555.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/OpenAPI.js +1 -1
- package/dist/services.gen.d.ts +173 -1
- package/dist/services.gen.js +341 -3
- package/dist/types.gen.d.ts +1309 -550
- package/package.json +1 -1
package/dist/services.gen.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.McpService = exports.AssetService = exports.IndexSearchService = exports.ConcurrencyGroupsService = exports.ServiceLogsService = exports.MetricsService = exports.HelpersService = exports.InputService = exports.FavoriteService = exports.CaptureService = exports.GranularAclService = exports.AgentWorkersService = exports.ConfigService = exports.FolderService = exports.GroupService = exports.EmailTriggerService = exports.PostgresTriggerService = exports.GcpTriggerService = exports.MqttTriggerService = exports.SqsTriggerService = exports.NatsTriggerService = exports.KafkaTriggerService = exports.WebsocketTriggerService = exports.HttpTriggerService = exports.OpenapiService = exports.ScheduleService = exports.RawAppService = exports.JobService = exports.WorkerService = exports.DraftService = exports.ScriptService = exports.AppService = exports.FlowService = exports.IntegrationService = exports.ResourceService = exports.TeamsService = exports.OauthService = exports.VariableService = exports.OidcService = exports.TokenService = exports.SettingService = exports.WorkspaceService = exports.GitSyncService = exports.AdminService = exports.UserService = exports.AuditService = exports.SettingsService = void 0;
|
|
4
|
+
exports.McpService = exports.AssetService = exports.IndexSearchService = exports.ConcurrencyGroupsService = exports.ServiceLogsService = exports.MetricsService = exports.HelpersService = exports.InputService = exports.FavoriteService = exports.CaptureService = exports.GranularAclService = exports.AgentWorkersService = exports.ConfigService = exports.FolderService = exports.GroupService = exports.EmailTriggerService = exports.PostgresTriggerService = exports.GcpTriggerService = exports.MqttTriggerService = exports.SqsTriggerService = exports.NatsTriggerService = exports.KafkaTriggerService = exports.WebsocketTriggerService = exports.HttpTriggerService = exports.OpenapiService = exports.ScheduleService = exports.RawAppService = exports.FlowConversationService = exports.JobService = exports.WorkerService = exports.DraftService = exports.ScriptService = exports.AppService = exports.FlowService = exports.IntegrationService = exports.ResourceService = exports.TeamsService = exports.OauthService = exports.VariableService = exports.OidcService = exports.TokenService = exports.SettingService = exports.WorkspaceService = exports.GitSyncService = exports.AdminService = exports.UserService = exports.AuditService = exports.SettingsService = void 0;
|
|
5
5
|
const OpenAPI_1 = require("./core/OpenAPI");
|
|
6
6
|
const request_1 = require("./core/request");
|
|
7
7
|
class SettingsService {
|
|
@@ -4033,6 +4033,24 @@ class AppService {
|
|
|
4033
4033
|
}
|
|
4034
4034
|
});
|
|
4035
4035
|
}
|
|
4036
|
+
/**
|
|
4037
|
+
* get public secret of latest version of an app bundle
|
|
4038
|
+
* @param data The data for the request.
|
|
4039
|
+
* @param data.workspace
|
|
4040
|
+
* @param data.path
|
|
4041
|
+
* @returns string app secret
|
|
4042
|
+
* @throws ApiError
|
|
4043
|
+
*/
|
|
4044
|
+
static getPublicSecretOfLatestVersionOfApp(data) {
|
|
4045
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
4046
|
+
method: 'GET',
|
|
4047
|
+
url: '/w/{workspace}/apps/secret_of_latest_version/{path}',
|
|
4048
|
+
path: {
|
|
4049
|
+
workspace: data.workspace,
|
|
4050
|
+
path: data.path
|
|
4051
|
+
}
|
|
4052
|
+
});
|
|
4053
|
+
}
|
|
4036
4054
|
/**
|
|
4037
4055
|
* get app by version
|
|
4038
4056
|
* @param data The data for the request.
|
|
@@ -5129,6 +5147,7 @@ class JobService {
|
|
|
5129
5147
|
*
|
|
5130
5148
|
* @param data.jobId The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
|
|
5131
5149
|
* @param data.skipPreprocessor skip the preprocessor
|
|
5150
|
+
* @param data.memoryId memory ID for chat-enabled flows
|
|
5132
5151
|
* @returns unknown job result
|
|
5133
5152
|
* @throws ApiError
|
|
5134
5153
|
*/
|
|
@@ -5144,12 +5163,260 @@ class JobService {
|
|
|
5144
5163
|
include_header: data.includeHeader,
|
|
5145
5164
|
queue_limit: data.queueLimit,
|
|
5146
5165
|
job_id: data.jobId,
|
|
5147
|
-
skip_preprocessor: data.skipPreprocessor
|
|
5166
|
+
skip_preprocessor: data.skipPreprocessor,
|
|
5167
|
+
memory_id: data.memoryId
|
|
5148
5168
|
},
|
|
5149
5169
|
body: data.requestBody,
|
|
5150
5170
|
mediaType: 'application/json'
|
|
5151
5171
|
});
|
|
5152
5172
|
}
|
|
5173
|
+
/**
|
|
5174
|
+
* run flow by path and stream updates via SSE
|
|
5175
|
+
* @param data The data for the request.
|
|
5176
|
+
* @param data.workspace
|
|
5177
|
+
* @param data.path
|
|
5178
|
+
* @param data.requestBody flow args
|
|
5179
|
+
* @param data.includeHeader List of headers's keys (separated with ',') whove value are added to the args
|
|
5180
|
+
* Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
|
|
5181
|
+
*
|
|
5182
|
+
* @param data.queueLimit The maximum size of the queue for which the request would get rejected if that job would push it above that limit
|
|
5183
|
+
*
|
|
5184
|
+
* @param data.jobId The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
|
|
5185
|
+
* @param data.skipPreprocessor skip the preprocessor
|
|
5186
|
+
* @param data.memoryId memory ID for chat-enabled flows
|
|
5187
|
+
* @param data.pollDelayMs delay between polling for job updates in milliseconds
|
|
5188
|
+
* @returns string server-sent events stream of job updates
|
|
5189
|
+
* @throws ApiError
|
|
5190
|
+
*/
|
|
5191
|
+
static runAndStreamFlowByPath(data) {
|
|
5192
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
5193
|
+
method: 'POST',
|
|
5194
|
+
url: '/w/{workspace}/jobs/run_and_stream/f/{path}',
|
|
5195
|
+
path: {
|
|
5196
|
+
workspace: data.workspace,
|
|
5197
|
+
path: data.path
|
|
5198
|
+
},
|
|
5199
|
+
query: {
|
|
5200
|
+
include_header: data.includeHeader,
|
|
5201
|
+
queue_limit: data.queueLimit,
|
|
5202
|
+
job_id: data.jobId,
|
|
5203
|
+
skip_preprocessor: data.skipPreprocessor,
|
|
5204
|
+
memory_id: data.memoryId,
|
|
5205
|
+
poll_delay_ms: data.pollDelayMs
|
|
5206
|
+
},
|
|
5207
|
+
body: data.requestBody,
|
|
5208
|
+
mediaType: 'application/json'
|
|
5209
|
+
});
|
|
5210
|
+
}
|
|
5211
|
+
/**
|
|
5212
|
+
* run flow by path with GET and stream updates via SSE
|
|
5213
|
+
* @param data The data for the request.
|
|
5214
|
+
* @param data.workspace
|
|
5215
|
+
* @param data.path
|
|
5216
|
+
* @param data.includeHeader List of headers's keys (separated with ',') whove value are added to the args
|
|
5217
|
+
* Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
|
|
5218
|
+
*
|
|
5219
|
+
* @param data.queueLimit The maximum size of the queue for which the request would get rejected if that job would push it above that limit
|
|
5220
|
+
*
|
|
5221
|
+
* @param data.payload The base64 encoded payload that has been encoded as a JSON. e.g how to encode such payload encodeURIComponent
|
|
5222
|
+
* `encodeURIComponent(btoa(JSON.stringify({a: 2})))`
|
|
5223
|
+
*
|
|
5224
|
+
* @param data.jobId The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
|
|
5225
|
+
* @param data.skipPreprocessor skip the preprocessor
|
|
5226
|
+
* @param data.memoryId memory ID for chat-enabled flows
|
|
5227
|
+
* @param data.pollDelayMs delay between polling for job updates in milliseconds
|
|
5228
|
+
* @returns string server-sent events stream of job updates
|
|
5229
|
+
* @throws ApiError
|
|
5230
|
+
*/
|
|
5231
|
+
static runAndStreamFlowByPathGet(data) {
|
|
5232
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
5233
|
+
method: 'GET',
|
|
5234
|
+
url: '/w/{workspace}/jobs/run_and_stream/f/{path}',
|
|
5235
|
+
path: {
|
|
5236
|
+
workspace: data.workspace,
|
|
5237
|
+
path: data.path
|
|
5238
|
+
},
|
|
5239
|
+
query: {
|
|
5240
|
+
include_header: data.includeHeader,
|
|
5241
|
+
queue_limit: data.queueLimit,
|
|
5242
|
+
payload: data.payload,
|
|
5243
|
+
job_id: data.jobId,
|
|
5244
|
+
skip_preprocessor: data.skipPreprocessor,
|
|
5245
|
+
memory_id: data.memoryId,
|
|
5246
|
+
poll_delay_ms: data.pollDelayMs
|
|
5247
|
+
}
|
|
5248
|
+
});
|
|
5249
|
+
}
|
|
5250
|
+
/**
|
|
5251
|
+
* run script by path and stream updates via SSE
|
|
5252
|
+
* @param data The data for the request.
|
|
5253
|
+
* @param data.workspace
|
|
5254
|
+
* @param data.path
|
|
5255
|
+
* @param data.requestBody script args
|
|
5256
|
+
* @param data.parentJob The parent job that is at the origin and responsible for the execution of this script if any
|
|
5257
|
+
* @param data.tag Override the tag to use
|
|
5258
|
+
* @param data.cacheTtl Override the cache time to live (in seconds). Can not be used to disable caching, only override with a new cache ttl
|
|
5259
|
+
* @param data.jobId The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
|
|
5260
|
+
* @param data.includeHeader List of headers's keys (separated with ',') whove value are added to the args
|
|
5261
|
+
* Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
|
|
5262
|
+
*
|
|
5263
|
+
* @param data.queueLimit The maximum size of the queue for which the request would get rejected if that job would push it above that limit
|
|
5264
|
+
*
|
|
5265
|
+
* @param data.skipPreprocessor skip the preprocessor
|
|
5266
|
+
* @param data.pollDelayMs delay between polling for job updates in milliseconds
|
|
5267
|
+
* @returns string server-sent events stream of job updates
|
|
5268
|
+
* @throws ApiError
|
|
5269
|
+
*/
|
|
5270
|
+
static runAndStreamScriptByPath(data) {
|
|
5271
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
5272
|
+
method: 'POST',
|
|
5273
|
+
url: '/w/{workspace}/jobs/run_and_stream/p/{path}',
|
|
5274
|
+
path: {
|
|
5275
|
+
workspace: data.workspace,
|
|
5276
|
+
path: data.path
|
|
5277
|
+
},
|
|
5278
|
+
query: {
|
|
5279
|
+
parent_job: data.parentJob,
|
|
5280
|
+
tag: data.tag,
|
|
5281
|
+
cache_ttl: data.cacheTtl,
|
|
5282
|
+
job_id: data.jobId,
|
|
5283
|
+
include_header: data.includeHeader,
|
|
5284
|
+
queue_limit: data.queueLimit,
|
|
5285
|
+
skip_preprocessor: data.skipPreprocessor,
|
|
5286
|
+
poll_delay_ms: data.pollDelayMs
|
|
5287
|
+
},
|
|
5288
|
+
body: data.requestBody,
|
|
5289
|
+
mediaType: 'application/json'
|
|
5290
|
+
});
|
|
5291
|
+
}
|
|
5292
|
+
/**
|
|
5293
|
+
* run script by path with GET and stream updates via SSE
|
|
5294
|
+
* @param data The data for the request.
|
|
5295
|
+
* @param data.workspace
|
|
5296
|
+
* @param data.path
|
|
5297
|
+
* @param data.parentJob The parent job that is at the origin and responsible for the execution of this script if any
|
|
5298
|
+
* @param data.tag Override the tag to use
|
|
5299
|
+
* @param data.cacheTtl Override the cache time to live (in seconds). Can not be used to disable caching, only override with a new cache ttl
|
|
5300
|
+
* @param data.jobId The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
|
|
5301
|
+
* @param data.includeHeader List of headers's keys (separated with ',') whove value are added to the args
|
|
5302
|
+
* Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
|
|
5303
|
+
*
|
|
5304
|
+
* @param data.queueLimit The maximum size of the queue for which the request would get rejected if that job would push it above that limit
|
|
5305
|
+
*
|
|
5306
|
+
* @param data.payload The base64 encoded payload that has been encoded as a JSON. e.g how to encode such payload encodeURIComponent
|
|
5307
|
+
* `encodeURIComponent(btoa(JSON.stringify({a: 2})))`
|
|
5308
|
+
*
|
|
5309
|
+
* @param data.skipPreprocessor skip the preprocessor
|
|
5310
|
+
* @param data.pollDelayMs delay between polling for job updates in milliseconds
|
|
5311
|
+
* @returns string server-sent events stream of job updates
|
|
5312
|
+
* @throws ApiError
|
|
5313
|
+
*/
|
|
5314
|
+
static runAndStreamScriptByPathGet(data) {
|
|
5315
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
5316
|
+
method: 'GET',
|
|
5317
|
+
url: '/w/{workspace}/jobs/run_and_stream/p/{path}',
|
|
5318
|
+
path: {
|
|
5319
|
+
workspace: data.workspace,
|
|
5320
|
+
path: data.path
|
|
5321
|
+
},
|
|
5322
|
+
query: {
|
|
5323
|
+
parent_job: data.parentJob,
|
|
5324
|
+
tag: data.tag,
|
|
5325
|
+
cache_ttl: data.cacheTtl,
|
|
5326
|
+
job_id: data.jobId,
|
|
5327
|
+
include_header: data.includeHeader,
|
|
5328
|
+
queue_limit: data.queueLimit,
|
|
5329
|
+
payload: data.payload,
|
|
5330
|
+
skip_preprocessor: data.skipPreprocessor,
|
|
5331
|
+
poll_delay_ms: data.pollDelayMs
|
|
5332
|
+
}
|
|
5333
|
+
});
|
|
5334
|
+
}
|
|
5335
|
+
/**
|
|
5336
|
+
* run script by hash and stream updates via SSE
|
|
5337
|
+
* @param data The data for the request.
|
|
5338
|
+
* @param data.workspace
|
|
5339
|
+
* @param data.hash
|
|
5340
|
+
* @param data.requestBody script args
|
|
5341
|
+
* @param data.parentJob The parent job that is at the origin and responsible for the execution of this script if any
|
|
5342
|
+
* @param data.tag Override the tag to use
|
|
5343
|
+
* @param data.cacheTtl Override the cache time to live (in seconds). Can not be used to disable caching, only override with a new cache ttl
|
|
5344
|
+
* @param data.jobId The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
|
|
5345
|
+
* @param data.includeHeader List of headers's keys (separated with ',') whove value are added to the args
|
|
5346
|
+
* Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
|
|
5347
|
+
*
|
|
5348
|
+
* @param data.queueLimit The maximum size of the queue for which the request would get rejected if that job would push it above that limit
|
|
5349
|
+
*
|
|
5350
|
+
* @param data.skipPreprocessor skip the preprocessor
|
|
5351
|
+
* @param data.pollDelayMs delay between polling for job updates in milliseconds
|
|
5352
|
+
* @returns string server-sent events stream of job updates
|
|
5353
|
+
* @throws ApiError
|
|
5354
|
+
*/
|
|
5355
|
+
static runAndStreamScriptByHash(data) {
|
|
5356
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
5357
|
+
method: 'POST',
|
|
5358
|
+
url: '/w/{workspace}/jobs/run_and_stream/h/{hash}',
|
|
5359
|
+
path: {
|
|
5360
|
+
workspace: data.workspace,
|
|
5361
|
+
hash: data.hash
|
|
5362
|
+
},
|
|
5363
|
+
query: {
|
|
5364
|
+
parent_job: data.parentJob,
|
|
5365
|
+
tag: data.tag,
|
|
5366
|
+
cache_ttl: data.cacheTtl,
|
|
5367
|
+
job_id: data.jobId,
|
|
5368
|
+
include_header: data.includeHeader,
|
|
5369
|
+
queue_limit: data.queueLimit,
|
|
5370
|
+
skip_preprocessor: data.skipPreprocessor,
|
|
5371
|
+
poll_delay_ms: data.pollDelayMs
|
|
5372
|
+
},
|
|
5373
|
+
body: data.requestBody,
|
|
5374
|
+
mediaType: 'application/json'
|
|
5375
|
+
});
|
|
5376
|
+
}
|
|
5377
|
+
/**
|
|
5378
|
+
* run script by hash with GET and stream updates via SSE
|
|
5379
|
+
* @param data The data for the request.
|
|
5380
|
+
* @param data.workspace
|
|
5381
|
+
* @param data.hash
|
|
5382
|
+
* @param data.parentJob The parent job that is at the origin and responsible for the execution of this script if any
|
|
5383
|
+
* @param data.tag Override the tag to use
|
|
5384
|
+
* @param data.cacheTtl Override the cache time to live (in seconds). Can not be used to disable caching, only override with a new cache ttl
|
|
5385
|
+
* @param data.jobId The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
|
|
5386
|
+
* @param data.includeHeader List of headers's keys (separated with ',') whove value are added to the args
|
|
5387
|
+
* Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
|
|
5388
|
+
*
|
|
5389
|
+
* @param data.queueLimit The maximum size of the queue for which the request would get rejected if that job would push it above that limit
|
|
5390
|
+
*
|
|
5391
|
+
* @param data.payload The base64 encoded payload that has been encoded as a JSON. e.g how to encode such payload encodeURIComponent
|
|
5392
|
+
* `encodeURIComponent(btoa(JSON.stringify({a: 2})))`
|
|
5393
|
+
*
|
|
5394
|
+
* @param data.skipPreprocessor skip the preprocessor
|
|
5395
|
+
* @param data.pollDelayMs delay between polling for job updates in milliseconds
|
|
5396
|
+
* @returns string server-sent events stream of job updates
|
|
5397
|
+
* @throws ApiError
|
|
5398
|
+
*/
|
|
5399
|
+
static runAndStreamScriptByHashGet(data) {
|
|
5400
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
5401
|
+
method: 'GET',
|
|
5402
|
+
url: '/w/{workspace}/jobs/run_and_stream/h/{hash}',
|
|
5403
|
+
path: {
|
|
5404
|
+
workspace: data.workspace,
|
|
5405
|
+
hash: data.hash
|
|
5406
|
+
},
|
|
5407
|
+
query: {
|
|
5408
|
+
parent_job: data.parentJob,
|
|
5409
|
+
tag: data.tag,
|
|
5410
|
+
cache_ttl: data.cacheTtl,
|
|
5411
|
+
job_id: data.jobId,
|
|
5412
|
+
include_header: data.includeHeader,
|
|
5413
|
+
queue_limit: data.queueLimit,
|
|
5414
|
+
payload: data.payload,
|
|
5415
|
+
skip_preprocessor: data.skipPreprocessor,
|
|
5416
|
+
poll_delay_ms: data.pollDelayMs
|
|
5417
|
+
}
|
|
5418
|
+
});
|
|
5419
|
+
}
|
|
5153
5420
|
/**
|
|
5154
5421
|
* get job result by id
|
|
5155
5422
|
* @param data The data for the request.
|
|
@@ -5186,6 +5453,7 @@ class JobService {
|
|
|
5186
5453
|
* Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
|
|
5187
5454
|
*
|
|
5188
5455
|
* @param data.invisibleToOwner make the run invisible to the the flow owner (default false)
|
|
5456
|
+
* @param data.memoryId memory ID for chat-enabled flows
|
|
5189
5457
|
* @returns string job created
|
|
5190
5458
|
* @throws ApiError
|
|
5191
5459
|
*/
|
|
@@ -5205,7 +5473,8 @@ class JobService {
|
|
|
5205
5473
|
tag: data.tag,
|
|
5206
5474
|
job_id: data.jobId,
|
|
5207
5475
|
include_header: data.includeHeader,
|
|
5208
|
-
invisible_to_owner: data.invisibleToOwner
|
|
5476
|
+
invisible_to_owner: data.invisibleToOwner,
|
|
5477
|
+
memory_id: data.memoryId
|
|
5209
5478
|
},
|
|
5210
5479
|
body: data.requestBody,
|
|
5211
5480
|
mediaType: 'application/json'
|
|
@@ -6737,6 +7006,75 @@ class JobService {
|
|
|
6737
7006
|
}
|
|
6738
7007
|
}
|
|
6739
7008
|
exports.JobService = JobService;
|
|
7009
|
+
class FlowConversationService {
|
|
7010
|
+
/**
|
|
7011
|
+
* list flow conversations
|
|
7012
|
+
* @param data The data for the request.
|
|
7013
|
+
* @param data.workspace
|
|
7014
|
+
* @param data.page which page to return (start at 1, default 1)
|
|
7015
|
+
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
7016
|
+
* @param data.flowPath filter conversations by flow path
|
|
7017
|
+
* @returns FlowConversation flow conversations list
|
|
7018
|
+
* @throws ApiError
|
|
7019
|
+
*/
|
|
7020
|
+
static listFlowConversations(data) {
|
|
7021
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
7022
|
+
method: 'GET',
|
|
7023
|
+
url: '/w/{workspace}/flow_conversations/list',
|
|
7024
|
+
path: {
|
|
7025
|
+
workspace: data.workspace
|
|
7026
|
+
},
|
|
7027
|
+
query: {
|
|
7028
|
+
page: data.page,
|
|
7029
|
+
per_page: data.perPage,
|
|
7030
|
+
flow_path: data.flowPath
|
|
7031
|
+
}
|
|
7032
|
+
});
|
|
7033
|
+
}
|
|
7034
|
+
/**
|
|
7035
|
+
* delete flow conversation
|
|
7036
|
+
* @param data The data for the request.
|
|
7037
|
+
* @param data.workspace
|
|
7038
|
+
* @param data.conversationId conversation id
|
|
7039
|
+
* @returns string flow conversation deleted
|
|
7040
|
+
* @throws ApiError
|
|
7041
|
+
*/
|
|
7042
|
+
static deleteFlowConversation(data) {
|
|
7043
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
7044
|
+
method: 'DELETE',
|
|
7045
|
+
url: '/w/{workspace}/flow_conversations/delete/{conversation_id}',
|
|
7046
|
+
path: {
|
|
7047
|
+
workspace: data.workspace,
|
|
7048
|
+
conversation_id: data.conversationId
|
|
7049
|
+
}
|
|
7050
|
+
});
|
|
7051
|
+
}
|
|
7052
|
+
/**
|
|
7053
|
+
* list conversation messages
|
|
7054
|
+
* @param data The data for the request.
|
|
7055
|
+
* @param data.workspace
|
|
7056
|
+
* @param data.conversationId conversation id
|
|
7057
|
+
* @param data.page which page to return (start at 1, default 1)
|
|
7058
|
+
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
7059
|
+
* @returns FlowConversationMessage conversation messages
|
|
7060
|
+
* @throws ApiError
|
|
7061
|
+
*/
|
|
7062
|
+
static listConversationMessages(data) {
|
|
7063
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
7064
|
+
method: 'GET',
|
|
7065
|
+
url: '/w/{workspace}/flow_conversations/{conversation_id}/messages',
|
|
7066
|
+
path: {
|
|
7067
|
+
workspace: data.workspace,
|
|
7068
|
+
conversation_id: data.conversationId
|
|
7069
|
+
},
|
|
7070
|
+
query: {
|
|
7071
|
+
page: data.page,
|
|
7072
|
+
per_page: data.perPage
|
|
7073
|
+
}
|
|
7074
|
+
});
|
|
7075
|
+
}
|
|
7076
|
+
}
|
|
7077
|
+
exports.FlowConversationService = FlowConversationService;
|
|
6740
7078
|
class RawAppService {
|
|
6741
7079
|
/**
|
|
6742
7080
|
* list all raw apps
|