windmill-cli 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.
@@ -18,6 +18,10 @@ export type FlowValue = {
18
18
  cache_ttl?: number;
19
19
  priority?: number;
20
20
  early_return?: string;
21
+ /**
22
+ * Whether this flow accepts chat-style input
23
+ */
24
+ chat_input_enabled?: boolean;
21
25
  };
22
26
  export type Retry = {
23
27
  constant?: {
@@ -225,6 +229,66 @@ export type FlowStatusModule = {
225
229
  agent_actions_success?: Array<(boolean)>;
226
230
  };
227
231
  export type type = 'WaitingForPriorSteps' | 'WaitingForEvents' | 'WaitingForExecutor' | 'InProgress' | 'Success' | 'Failure';
232
+ export type FlowConversation = {
233
+ /**
234
+ * Unique identifier for the conversation
235
+ */
236
+ id: string;
237
+ /**
238
+ * The workspace ID where the conversation belongs
239
+ */
240
+ workspace_id: string;
241
+ /**
242
+ * Path of the flow this conversation is for
243
+ */
244
+ flow_path: string;
245
+ /**
246
+ * Optional title for the conversation
247
+ */
248
+ title?: (string) | null;
249
+ /**
250
+ * When the conversation was created
251
+ */
252
+ created_at: string;
253
+ /**
254
+ * When the conversation was last updated
255
+ */
256
+ updated_at: string;
257
+ /**
258
+ * Username who created the conversation
259
+ */
260
+ created_by: string;
261
+ };
262
+ export type FlowConversationMessage = {
263
+ /**
264
+ * Unique identifier for the message
265
+ */
266
+ id: string;
267
+ /**
268
+ * The conversation this message belongs to
269
+ */
270
+ conversation_id: string;
271
+ /**
272
+ * Type of the message
273
+ */
274
+ message_type: 'user' | 'assistant' | 'system';
275
+ /**
276
+ * The message content
277
+ */
278
+ content: string;
279
+ /**
280
+ * Associated job ID if this message came from a flow run
281
+ */
282
+ job_id?: (string) | null;
283
+ /**
284
+ * When the message was created
285
+ */
286
+ created_at: string;
287
+ };
288
+ /**
289
+ * Type of the message
290
+ */
291
+ export type message_type = 'user' | 'assistant' | 'system';
228
292
  export type EndpointTool = {
229
293
  /**
230
294
  * The tool name/operation ID
@@ -1613,6 +1677,7 @@ export type UserWorkspaceList = {
1613
1677
  operator_settings?: OperatorSettings;
1614
1678
  parent_workspace_id?: (string) | null;
1615
1679
  created_by?: (string) | null;
1680
+ disabled: boolean;
1616
1681
  }>;
1617
1682
  };
1618
1683
  export type CreateWorkspace = {
@@ -4382,6 +4447,10 @@ export type RunWaitResultFlowByPathData = {
4382
4447
  * 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)
4383
4448
  */
4384
4449
  jobId?: string;
4450
+ /**
4451
+ * memory ID for chat-enabled flows
4452
+ */
4453
+ memoryId?: string;
4385
4454
  path: string;
4386
4455
  /**
4387
4456
  * The maximum size of the queue for which the request would get rejected if that job would push it above that limit
@@ -4399,6 +4468,260 @@ export type RunWaitResultFlowByPathData = {
4399
4468
  workspace: string;
4400
4469
  };
4401
4470
  export type RunWaitResultFlowByPathResponse = (unknown);
4471
+ export type RunAndStreamFlowByPathData = {
4472
+ /**
4473
+ * List of headers's keys (separated with ',') whove value are added to the args
4474
+ * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
4475
+ *
4476
+ */
4477
+ includeHeader?: string;
4478
+ /**
4479
+ * 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)
4480
+ */
4481
+ jobId?: string;
4482
+ /**
4483
+ * memory ID for chat-enabled flows
4484
+ */
4485
+ memoryId?: string;
4486
+ path: string;
4487
+ /**
4488
+ * delay between polling for job updates in milliseconds
4489
+ */
4490
+ pollDelayMs?: number;
4491
+ /**
4492
+ * The maximum size of the queue for which the request would get rejected if that job would push it above that limit
4493
+ *
4494
+ */
4495
+ queueLimit?: string;
4496
+ /**
4497
+ * flow args
4498
+ */
4499
+ requestBody: ScriptArgs;
4500
+ /**
4501
+ * skip the preprocessor
4502
+ */
4503
+ skipPreprocessor?: boolean;
4504
+ workspace: string;
4505
+ };
4506
+ export type RunAndStreamFlowByPathResponse = (string);
4507
+ export type RunAndStreamFlowByPathGetData = {
4508
+ /**
4509
+ * List of headers's keys (separated with ',') whove value are added to the args
4510
+ * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
4511
+ *
4512
+ */
4513
+ includeHeader?: string;
4514
+ /**
4515
+ * 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)
4516
+ */
4517
+ jobId?: string;
4518
+ /**
4519
+ * memory ID for chat-enabled flows
4520
+ */
4521
+ memoryId?: string;
4522
+ path: string;
4523
+ /**
4524
+ * The base64 encoded payload that has been encoded as a JSON. e.g how to encode such payload encodeURIComponent
4525
+ * `encodeURIComponent(btoa(JSON.stringify({a: 2})))`
4526
+ *
4527
+ */
4528
+ payload?: string;
4529
+ /**
4530
+ * delay between polling for job updates in milliseconds
4531
+ */
4532
+ pollDelayMs?: number;
4533
+ /**
4534
+ * The maximum size of the queue for which the request would get rejected if that job would push it above that limit
4535
+ *
4536
+ */
4537
+ queueLimit?: string;
4538
+ /**
4539
+ * skip the preprocessor
4540
+ */
4541
+ skipPreprocessor?: boolean;
4542
+ workspace: string;
4543
+ };
4544
+ export type RunAndStreamFlowByPathGetResponse = (string);
4545
+ export type RunAndStreamScriptByPathData = {
4546
+ /**
4547
+ * Override the cache time to live (in seconds). Can not be used to disable caching, only override with a new cache ttl
4548
+ */
4549
+ cacheTtl?: string;
4550
+ /**
4551
+ * List of headers's keys (separated with ',') whove value are added to the args
4552
+ * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
4553
+ *
4554
+ */
4555
+ includeHeader?: string;
4556
+ /**
4557
+ * 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)
4558
+ */
4559
+ jobId?: string;
4560
+ /**
4561
+ * The parent job that is at the origin and responsible for the execution of this script if any
4562
+ */
4563
+ parentJob?: string;
4564
+ path: string;
4565
+ /**
4566
+ * delay between polling for job updates in milliseconds
4567
+ */
4568
+ pollDelayMs?: number;
4569
+ /**
4570
+ * The maximum size of the queue for which the request would get rejected if that job would push it above that limit
4571
+ *
4572
+ */
4573
+ queueLimit?: string;
4574
+ /**
4575
+ * script args
4576
+ */
4577
+ requestBody: ScriptArgs;
4578
+ /**
4579
+ * skip the preprocessor
4580
+ */
4581
+ skipPreprocessor?: boolean;
4582
+ /**
4583
+ * Override the tag to use
4584
+ */
4585
+ tag?: string;
4586
+ workspace: string;
4587
+ };
4588
+ export type RunAndStreamScriptByPathResponse = (string);
4589
+ export type RunAndStreamScriptByPathGetData = {
4590
+ /**
4591
+ * Override the cache time to live (in seconds). Can not be used to disable caching, only override with a new cache ttl
4592
+ */
4593
+ cacheTtl?: string;
4594
+ /**
4595
+ * List of headers's keys (separated with ',') whove value are added to the args
4596
+ * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
4597
+ *
4598
+ */
4599
+ includeHeader?: string;
4600
+ /**
4601
+ * 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)
4602
+ */
4603
+ jobId?: string;
4604
+ /**
4605
+ * The parent job that is at the origin and responsible for the execution of this script if any
4606
+ */
4607
+ parentJob?: string;
4608
+ path: string;
4609
+ /**
4610
+ * The base64 encoded payload that has been encoded as a JSON. e.g how to encode such payload encodeURIComponent
4611
+ * `encodeURIComponent(btoa(JSON.stringify({a: 2})))`
4612
+ *
4613
+ */
4614
+ payload?: string;
4615
+ /**
4616
+ * delay between polling for job updates in milliseconds
4617
+ */
4618
+ pollDelayMs?: number;
4619
+ /**
4620
+ * The maximum size of the queue for which the request would get rejected if that job would push it above that limit
4621
+ *
4622
+ */
4623
+ queueLimit?: string;
4624
+ /**
4625
+ * skip the preprocessor
4626
+ */
4627
+ skipPreprocessor?: boolean;
4628
+ /**
4629
+ * Override the tag to use
4630
+ */
4631
+ tag?: string;
4632
+ workspace: string;
4633
+ };
4634
+ export type RunAndStreamScriptByPathGetResponse = (string);
4635
+ export type RunAndStreamScriptByHashData = {
4636
+ /**
4637
+ * Override the cache time to live (in seconds). Can not be used to disable caching, only override with a new cache ttl
4638
+ */
4639
+ cacheTtl?: string;
4640
+ hash: string;
4641
+ /**
4642
+ * List of headers's keys (separated with ',') whove value are added to the args
4643
+ * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
4644
+ *
4645
+ */
4646
+ includeHeader?: string;
4647
+ /**
4648
+ * 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)
4649
+ */
4650
+ jobId?: string;
4651
+ /**
4652
+ * The parent job that is at the origin and responsible for the execution of this script if any
4653
+ */
4654
+ parentJob?: string;
4655
+ /**
4656
+ * delay between polling for job updates in milliseconds
4657
+ */
4658
+ pollDelayMs?: number;
4659
+ /**
4660
+ * The maximum size of the queue for which the request would get rejected if that job would push it above that limit
4661
+ *
4662
+ */
4663
+ queueLimit?: string;
4664
+ /**
4665
+ * script args
4666
+ */
4667
+ requestBody: ScriptArgs;
4668
+ /**
4669
+ * skip the preprocessor
4670
+ */
4671
+ skipPreprocessor?: boolean;
4672
+ /**
4673
+ * Override the tag to use
4674
+ */
4675
+ tag?: string;
4676
+ workspace: string;
4677
+ };
4678
+ export type RunAndStreamScriptByHashResponse = (string);
4679
+ export type RunAndStreamScriptByHashGetData = {
4680
+ /**
4681
+ * Override the cache time to live (in seconds). Can not be used to disable caching, only override with a new cache ttl
4682
+ */
4683
+ cacheTtl?: string;
4684
+ hash: string;
4685
+ /**
4686
+ * List of headers's keys (separated with ',') whove value are added to the args
4687
+ * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
4688
+ *
4689
+ */
4690
+ includeHeader?: string;
4691
+ /**
4692
+ * 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)
4693
+ */
4694
+ jobId?: string;
4695
+ /**
4696
+ * The parent job that is at the origin and responsible for the execution of this script if any
4697
+ */
4698
+ parentJob?: string;
4699
+ /**
4700
+ * The base64 encoded payload that has been encoded as a JSON. e.g how to encode such payload encodeURIComponent
4701
+ * `encodeURIComponent(btoa(JSON.stringify({a: 2})))`
4702
+ *
4703
+ */
4704
+ payload?: string;
4705
+ /**
4706
+ * delay between polling for job updates in milliseconds
4707
+ */
4708
+ pollDelayMs?: number;
4709
+ /**
4710
+ * The maximum size of the queue for which the request would get rejected if that job would push it above that limit
4711
+ *
4712
+ */
4713
+ queueLimit?: string;
4714
+ /**
4715
+ * skip the preprocessor
4716
+ */
4717
+ skipPreprocessor?: boolean;
4718
+ /**
4719
+ * Override the tag to use
4720
+ */
4721
+ tag?: string;
4722
+ workspace: string;
4723
+ };
4724
+ export type RunAndStreamScriptByHashGetResponse = (string);
4402
4725
  export type ResultByIdData = {
4403
4726
  flowJobId: string;
4404
4727
  nodeId: string;
@@ -4596,6 +4919,46 @@ export type DeleteFlowByPathData = {
4596
4919
  workspace: string;
4597
4920
  };
4598
4921
  export type DeleteFlowByPathResponse = (string);
4922
+ export type ListFlowConversationsData = {
4923
+ /**
4924
+ * filter conversations by flow path
4925
+ */
4926
+ flowPath?: string;
4927
+ /**
4928
+ * which page to return (start at 1, default 1)
4929
+ */
4930
+ page?: number;
4931
+ /**
4932
+ * number of items to return for a given page (default 30, max 100)
4933
+ */
4934
+ perPage?: number;
4935
+ workspace: string;
4936
+ };
4937
+ export type ListFlowConversationsResponse = (Array<FlowConversation>);
4938
+ export type DeleteFlowConversationData = {
4939
+ /**
4940
+ * conversation id
4941
+ */
4942
+ conversationId: string;
4943
+ workspace: string;
4944
+ };
4945
+ export type DeleteFlowConversationResponse = (string);
4946
+ export type ListConversationMessagesData = {
4947
+ /**
4948
+ * conversation id
4949
+ */
4950
+ conversationId: string;
4951
+ /**
4952
+ * which page to return (start at 1, default 1)
4953
+ */
4954
+ page?: number;
4955
+ /**
4956
+ * number of items to return for a given page (default 30, max 100)
4957
+ */
4958
+ perPage?: number;
4959
+ workspace: string;
4960
+ };
4961
+ export type ListConversationMessagesResponse = (Array<FlowConversationMessage>);
4599
4962
  export type ListRawAppsData = {
4600
4963
  /**
4601
4964
  * mask to filter exact matching user creator
@@ -4794,6 +5157,11 @@ export type GetPublicSecretOfAppData = {
4794
5157
  workspace: string;
4795
5158
  };
4796
5159
  export type GetPublicSecretOfAppResponse = (string);
5160
+ export type GetPublicSecretOfLatestVersionOfAppData = {
5161
+ path: string;
5162
+ workspace: string;
5163
+ };
5164
+ export type GetPublicSecretOfLatestVersionOfAppResponse = (string);
4797
5165
  export type GetAppByVersionData = {
4798
5166
  id: number;
4799
5167
  workspace: string;
@@ -4953,6 +5321,10 @@ export type RunFlowByPathData = {
4953
5321
  * 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)
4954
5322
  */
4955
5323
  jobId?: string;
5324
+ /**
5325
+ * memory ID for chat-enabled flows
5326
+ */
5327
+ memoryId?: string;
4956
5328
  /**
4957
5329
  * The parent job that is at the origin and responsible for the execution of this script if any
4958
5330
  */