windmill-client 1.481.0 → 1.482.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.
@@ -1,4 +1,4 @@
1
- export type AIProvider = 'openai' | 'anthropic' | 'mistral' | 'deepseek' | 'googleai' | 'groq' | 'openrouter' | 'togetherai' | 'customai';
1
+ export type AIProvider = 'openai' | 'azure_openai' | 'anthropic' | 'mistral' | 'deepseek' | 'googleai' | 'groq' | 'openrouter' | 'togetherai' | 'customai';
2
2
  export type AIProviderModel = {
3
3
  model: string;
4
4
  provider: AIProvider;
@@ -591,6 +591,7 @@ export type TriggersCount = {
591
591
  kafka_count?: number;
592
592
  nats_count?: number;
593
593
  mqtt_count?: number;
594
+ gcp_count?: number;
594
595
  sqs_count?: number;
595
596
  };
596
597
  export type WebsocketTrigger = TriggerExtraProperty & {
@@ -693,6 +694,69 @@ export type EditMqttTrigger = {
693
694
  is_flow: boolean;
694
695
  enabled: boolean;
695
696
  };
697
+ export type DeliveryType = 'push' | 'pull';
698
+ export type PushConfig = {
699
+ audience?: string;
700
+ authenticate: boolean;
701
+ base_endpoint: string;
702
+ };
703
+ export type GcpTrigger = TriggerExtraProperty & {
704
+ gcp_resource_path: string;
705
+ topic_id: string;
706
+ subscription_id: string;
707
+ server_id?: string;
708
+ delivery_type: DeliveryType;
709
+ delivery_config?: PushConfig;
710
+ last_server_ping?: string;
711
+ error?: string;
712
+ enabled: boolean;
713
+ };
714
+ /**
715
+ * The mode of subscription. 'existing' means using an existing GCP subscription, while 'create_update' involves creating or updating a new subscription.
716
+ */
717
+ export type SubscriptionMode = 'existing' | 'create_update';
718
+ export type GcpExistingSubscription = {
719
+ subscription_id: string;
720
+ base_endpoint: string;
721
+ };
722
+ export type GcpCreateUpdateSubscription = {
723
+ subscription_id?: string;
724
+ delivery_type: DeliveryType;
725
+ delivery_config?: PushConfig;
726
+ };
727
+ /**
728
+ * "This is a union type representing the subscription mode.
729
+ * - 'existing': Represents an existing GCP subscription, and should be accompanied by an 'ExistingGcpSubscription' object.
730
+ * - 'create_update': Represents a new or updated GCP subscription, and should be accompanied by a 'CreateUpdateConfig' object."
731
+ *
732
+ */
733
+ export type GcpSubscriptionModeConfig = GcpExistingSubscription | GcpCreateUpdateSubscription & {
734
+ subscription_mode: SubscriptionMode;
735
+ };
736
+ export type NewGcpTrigger = {
737
+ gcp_resource_path: string;
738
+ topic_id: string;
739
+ subscription_mode: GcpSubscriptionModeConfig;
740
+ path: string;
741
+ script_path: string;
742
+ is_flow: boolean;
743
+ enabled?: boolean;
744
+ };
745
+ export type EditGcpTrigger = {
746
+ gcp_resource_path?: string;
747
+ topic_id: string;
748
+ subscription_mode: GcpSubscriptionModeConfig;
749
+ path: string;
750
+ script_path: string;
751
+ is_flow: boolean;
752
+ enabled: boolean;
753
+ };
754
+ export type GetAllTopicSubscription = {
755
+ topic_id: string;
756
+ };
757
+ export type DeleteGcpSubscription = {
758
+ subscription_id: string;
759
+ };
696
760
  export type SqsTrigger = TriggerExtraProperty & {
697
761
  queue_url: string;
698
762
  aws_resource_path: string;
@@ -1223,7 +1287,7 @@ export type CriticalAlert = {
1223
1287
  */
1224
1288
  workspace_id?: string | null;
1225
1289
  };
1226
- export type CaptureTriggerKind = 'webhook' | 'http' | 'websocket' | 'kafka' | 'email' | 'nats' | 'postgres' | 'sqs' | 'mqtt';
1290
+ export type CaptureTriggerKind = 'webhook' | 'http' | 'websocket' | 'kafka' | 'email' | 'nats' | 'postgres' | 'sqs' | 'mqtt' | 'gcp';
1227
1291
  export type Capture = {
1228
1292
  trigger_kind: CaptureTriggerKind;
1229
1293
  payload: unknown;
@@ -1320,6 +1384,12 @@ export type WorkspaceGithubInstallation = {
1320
1384
  account_id: string;
1321
1385
  installation_id: number;
1322
1386
  };
1387
+ export type S3Object = {
1388
+ s3: string;
1389
+ filename?: string;
1390
+ storage?: string;
1391
+ presigned?: string;
1392
+ };
1323
1393
  export type OpenFlow = {
1324
1394
  summary: string;
1325
1395
  description?: string;
@@ -1651,6 +1721,10 @@ export type ParameterSuspended = boolean;
1651
1721
  * filter on running jobs
1652
1722
  */
1653
1723
  export type ParameterRunning = boolean;
1724
+ /**
1725
+ * allow wildcards (*) in the filter of label, tag, worker
1726
+ */
1727
+ export type ParameterAllowWildcards = boolean;
1654
1728
  /**
1655
1729
  * filter on jobs containing those args as a json subset (@> in postgres)
1656
1730
  */
@@ -2476,6 +2550,7 @@ export type GetUsedTriggersResponse = {
2476
2550
  nats_used: boolean;
2477
2551
  postgres_used: boolean;
2478
2552
  mqtt_used: boolean;
2553
+ gcp_used: boolean;
2479
2554
  sqs_used: boolean;
2480
2555
  };
2481
2556
  export type GetGlobalData = {
@@ -3376,6 +3451,16 @@ export type CustomPathExistsData = {
3376
3451
  workspace: string;
3377
3452
  };
3378
3453
  export type CustomPathExistsResponse = boolean;
3454
+ export type SignS3ObjectsData = {
3455
+ /**
3456
+ * s3 objects to sign
3457
+ */
3458
+ requestBody: {
3459
+ s3_objects: Array<S3Object>;
3460
+ };
3461
+ workspace: string;
3462
+ };
3463
+ export type SignS3ObjectsResponse = Array<S3Object>;
3379
3464
  export type ExecuteComponentData = {
3380
3465
  path: string;
3381
3466
  /**
@@ -3779,6 +3864,27 @@ export type GetQueueMetricsResponse = Array<{
3779
3864
  export type GetCountsOfJobsWaitingPerTagResponse = {
3780
3865
  [key: string]: (number);
3781
3866
  };
3867
+ export type ListSelectedJobGroupsData = {
3868
+ /**
3869
+ * script args
3870
+ */
3871
+ requestBody: Array<(string)>;
3872
+ workspace: string;
3873
+ };
3874
+ export type ListSelectedJobGroupsResponse = Array<{
3875
+ kind: 'script' | 'flow';
3876
+ script_path: string;
3877
+ latest_schema: {
3878
+ [key: string]: unknown;
3879
+ };
3880
+ schemas: Array<{
3881
+ schema: {
3882
+ [key: string]: unknown;
3883
+ };
3884
+ script_hash: string;
3885
+ job_ids: Array<(string)>;
3886
+ }>;
3887
+ }>;
3782
3888
  export type RunScriptByPathData = {
3783
3889
  /**
3784
3890
  * Override the cache time to live (in seconds). Can not be used to disable caching, only override with a new cache ttl
@@ -4019,6 +4125,32 @@ export type RunFlowByPathData = {
4019
4125
  workspace: string;
4020
4126
  };
4021
4127
  export type RunFlowByPathResponse = string;
4128
+ export type BatchReRunJobsData = {
4129
+ /**
4130
+ * list of job ids to re run and arg tranforms
4131
+ */
4132
+ requestBody: {
4133
+ job_ids: Array<(string)>;
4134
+ script_options_by_path: {
4135
+ [key: string]: {
4136
+ input_transforms?: {
4137
+ [key: string]: InputTransform;
4138
+ };
4139
+ use_latest_version?: unknown;
4140
+ };
4141
+ };
4142
+ flow_options_by_path: {
4143
+ [key: string]: {
4144
+ input_transforms?: {
4145
+ [key: string]: InputTransform;
4146
+ };
4147
+ use_latest_version?: unknown;
4148
+ };
4149
+ };
4150
+ };
4151
+ workspace: string;
4152
+ };
4153
+ export type BatchReRunJobsResponse = string;
4022
4154
  export type RestartFlowAtStepData = {
4023
4155
  /**
4024
4156
  * for branchall or loop, the iteration at which the flow should restart
@@ -4183,6 +4315,10 @@ export type RunFlowPreviewData = {
4183
4315
  };
4184
4316
  export type RunFlowPreviewResponse = string;
4185
4317
  export type ListQueueData = {
4318
+ /**
4319
+ * allow wildcards (*) in the filter of label, tag, worker
4320
+ */
4321
+ allowWildcards?: boolean;
4186
4322
  /**
4187
4323
  * get jobs from all workspaces (only valid if request come from the `admins` workspace)
4188
4324
  */
@@ -4299,7 +4435,135 @@ export type CountCompletedJobsData = {
4299
4435
  workspace: string;
4300
4436
  };
4301
4437
  export type CountCompletedJobsResponse = number;
4302
- export type ListFilteredUuidsData = {
4438
+ export type ListFilteredJobsUuidsData = {
4439
+ /**
4440
+ * get jobs from all workspaces (only valid if request come from the `admins` workspace)
4441
+ */
4442
+ allWorkspaces?: boolean;
4443
+ /**
4444
+ * filter on jobs containing those args as a json subset (@> in postgres)
4445
+ */
4446
+ args?: string;
4447
+ /**
4448
+ * filter on created after (exclusive) timestamp
4449
+ */
4450
+ createdAfter?: string;
4451
+ /**
4452
+ * filter on created before (inclusive) timestamp
4453
+ */
4454
+ createdBefore?: string;
4455
+ /**
4456
+ * mask to filter exact matching user creator
4457
+ */
4458
+ createdBy?: string;
4459
+ /**
4460
+ * filter on created_at for non non started job and started_at otherwise after (exclusive) timestamp
4461
+ */
4462
+ createdOrStartedAfter?: string;
4463
+ /**
4464
+ * filter on created_at for non non started job and started_at otherwise after (exclusive) timestamp but only for the completed jobs
4465
+ */
4466
+ createdOrStartedAfterCompletedJobs?: string;
4467
+ /**
4468
+ * filter on created_at for non non started job and started_at otherwise before (inclusive) timestamp
4469
+ */
4470
+ createdOrStartedBefore?: string;
4471
+ /**
4472
+ * has null parent
4473
+ */
4474
+ hasNullParent?: boolean;
4475
+ /**
4476
+ * is the job a flow step
4477
+ */
4478
+ isFlowStep?: boolean;
4479
+ /**
4480
+ * is not a scheduled job
4481
+ */
4482
+ isNotSchedule?: boolean;
4483
+ /**
4484
+ * is the job skipped
4485
+ */
4486
+ isSkipped?: boolean;
4487
+ /**
4488
+ * filter on job kind (values 'preview', 'script', 'dependencies', 'flow') separated by,
4489
+ */
4490
+ jobKinds?: string;
4491
+ /**
4492
+ * mask to filter exact matching job's label (job labels are completed jobs with as a result an object containing a string in the array at key 'wm_labels')
4493
+ */
4494
+ label?: string;
4495
+ /**
4496
+ * which page to return (start at 1, default 1)
4497
+ */
4498
+ page?: number;
4499
+ /**
4500
+ * The parent job that is at the origin and responsible for the execution of this script if any
4501
+ */
4502
+ parentJob?: string;
4503
+ /**
4504
+ * number of items to return for a given page (default 30, max 100)
4505
+ */
4506
+ perPage?: number;
4507
+ /**
4508
+ * filter on jobs containing those result as a json subset (@> in postgres)
4509
+ */
4510
+ result?: string;
4511
+ /**
4512
+ * filter on running jobs
4513
+ */
4514
+ running?: boolean;
4515
+ /**
4516
+ * filter on jobs scheduled_for before now (hence waitinf for a worker)
4517
+ */
4518
+ scheduledForBeforeNow?: boolean;
4519
+ /**
4520
+ * mask to filter by schedule path
4521
+ */
4522
+ schedulePath?: string;
4523
+ /**
4524
+ * mask to filter exact matching path
4525
+ */
4526
+ scriptHash?: string;
4527
+ /**
4528
+ * mask to filter exact matching path
4529
+ */
4530
+ scriptPathExact?: string;
4531
+ /**
4532
+ * mask to filter matching starting path
4533
+ */
4534
+ scriptPathStart?: string;
4535
+ /**
4536
+ * filter on started after (exclusive) timestamp
4537
+ */
4538
+ startedAfter?: string;
4539
+ /**
4540
+ * filter on started before (inclusive) timestamp
4541
+ */
4542
+ startedBefore?: string;
4543
+ /**
4544
+ * filter on successful jobs
4545
+ */
4546
+ success?: boolean;
4547
+ /**
4548
+ * filter on suspended jobs
4549
+ */
4550
+ suspended?: boolean;
4551
+ /**
4552
+ * filter on jobs with a given tag/worker group
4553
+ */
4554
+ tag?: string;
4555
+ /**
4556
+ * worker this job was ran on
4557
+ */
4558
+ worker?: string;
4559
+ workspace: string;
4560
+ };
4561
+ export type ListFilteredJobsUuidsResponse = Array<(string)>;
4562
+ export type ListFilteredQueueUuidsData = {
4563
+ /**
4564
+ * allow wildcards (*) in the filter of label, tag, worker
4565
+ */
4566
+ allowWildcards?: boolean;
4303
4567
  /**
4304
4568
  * get jobs from all workspaces (only valid if request come from the `admins` workspace)
4305
4569
  */
@@ -4387,7 +4651,7 @@ export type ListFilteredUuidsData = {
4387
4651
  tag?: string;
4388
4652
  workspace: string;
4389
4653
  };
4390
- export type ListFilteredUuidsResponse = Array<(string)>;
4654
+ export type ListFilteredQueueUuidsResponse = Array<(string)>;
4391
4655
  export type CancelSelectionData = {
4392
4656
  /**
4393
4657
  * uuids of the jobs to cancel
@@ -4397,6 +4661,10 @@ export type CancelSelectionData = {
4397
4661
  };
4398
4662
  export type CancelSelectionResponse = Array<(string)>;
4399
4663
  export type ListCompletedJobsData = {
4664
+ /**
4665
+ * allow wildcards (*) in the filter of label, tag, worker
4666
+ */
4667
+ allowWildcards?: boolean;
4400
4668
  /**
4401
4669
  * filter on jobs containing those args as a json subset (@> in postgres)
4402
4670
  */
@@ -4489,6 +4757,10 @@ export type ListCompletedJobsData = {
4489
4757
  };
4490
4758
  export type ListCompletedJobsResponse = Array<CompletedJob>;
4491
4759
  export type ListJobsData = {
4760
+ /**
4761
+ * allow wildcards (*) in the filter of label, tag, worker
4762
+ */
4763
+ allowWildcards?: boolean;
4492
4764
  /**
4493
4765
  * get jobs from all workspaces (only valid if request come from the `admins` workspace)
4494
4766
  */
@@ -4850,6 +5122,10 @@ export type GetSuspendedJobFlowResponse = {
4850
5122
  }>;
4851
5123
  };
4852
5124
  export type ListExtendedJobsData = {
5125
+ /**
5126
+ * allow wildcards (*) in the filter of label, tag, worker
5127
+ */
5128
+ allowWildcards?: boolean;
4853
5129
  /**
4854
5130
  * get jobs from all workspaces (only valid if request come from the `admins` workspace)
4855
5131
  */
@@ -5568,71 +5844,167 @@ export type TestMqttConnectionData = {
5568
5844
  workspace: string;
5569
5845
  };
5570
5846
  export type TestMqttConnectionResponse = string;
5571
- export type IsValidPostgresConfigurationData = {
5572
- path: string;
5847
+ export type CreateGcpTriggerData = {
5848
+ /**
5849
+ * new gcp trigger
5850
+ */
5851
+ requestBody: NewGcpTrigger;
5573
5852
  workspace: string;
5574
5853
  };
5575
- export type IsValidPostgresConfigurationResponse = boolean;
5576
- export type CreateTemplateScriptData = {
5854
+ export type CreateGcpTriggerResponse = string;
5855
+ export type UpdateGcpTriggerData = {
5856
+ path: string;
5577
5857
  /**
5578
- * template script
5858
+ * updated trigger
5579
5859
  */
5580
- requestBody: TemplateScript;
5860
+ requestBody: EditGcpTrigger;
5581
5861
  workspace: string;
5582
5862
  };
5583
- export type CreateTemplateScriptResponse = string;
5584
- export type GetTemplateScriptData = {
5585
- id: string;
5863
+ export type UpdateGcpTriggerResponse = string;
5864
+ export type DeleteGcpTriggerData = {
5865
+ path: string;
5586
5866
  workspace: string;
5587
5867
  };
5588
- export type GetTemplateScriptResponse = string;
5589
- export type ListPostgresReplicationSlotData = {
5868
+ export type DeleteGcpTriggerResponse = string;
5869
+ export type GetGcpTriggerData = {
5590
5870
  path: string;
5591
5871
  workspace: string;
5592
5872
  };
5593
- export type ListPostgresReplicationSlotResponse = Array<SlotList>;
5594
- export type CreatePostgresReplicationSlotData = {
5595
- path: string;
5873
+ export type GetGcpTriggerResponse = GcpTrigger;
5874
+ export type ListGcpTriggersData = {
5875
+ isFlow?: boolean;
5596
5876
  /**
5597
- * new slot for postgres
5877
+ * which page to return (start at 1, default 1)
5598
5878
  */
5599
- requestBody: Slot;
5600
- workspace: string;
5601
- };
5602
- export type CreatePostgresReplicationSlotResponse = string;
5603
- export type DeletePostgresReplicationSlotData = {
5604
- path: string;
5879
+ page?: number;
5605
5880
  /**
5606
- * replication slot of postgres
5881
+ * filter by path
5607
5882
  */
5608
- requestBody: Slot;
5883
+ path?: string;
5884
+ pathStart?: string;
5885
+ /**
5886
+ * number of items to return for a given page (default 30, max 100)
5887
+ */
5888
+ perPage?: number;
5609
5889
  workspace: string;
5610
5890
  };
5611
- export type DeletePostgresReplicationSlotResponse = string;
5612
- export type ListPostgresPublicationData = {
5891
+ export type ListGcpTriggersResponse = Array<GcpTrigger>;
5892
+ export type ExistsGcpTriggerData = {
5613
5893
  path: string;
5614
5894
  workspace: string;
5615
5895
  };
5616
- export type ListPostgresPublicationResponse = Array<(string)>;
5617
- export type GetPostgresPublicationData = {
5896
+ export type ExistsGcpTriggerResponse = boolean;
5897
+ export type SetGcpTriggerEnabledData = {
5618
5898
  path: string;
5619
- publication: string;
5899
+ /**
5900
+ * updated gcp trigger enable
5901
+ */
5902
+ requestBody: {
5903
+ enabled: boolean;
5904
+ };
5620
5905
  workspace: string;
5621
5906
  };
5622
- export type GetPostgresPublicationResponse = PublicationData;
5623
- export type CreatePostgresPublicationData = {
5624
- path: string;
5625
- publication: string;
5907
+ export type SetGcpTriggerEnabledResponse = string;
5908
+ export type TestGcpConnectionData = {
5626
5909
  /**
5627
- * new publication for postgres
5910
+ * test gcp connection
5628
5911
  */
5629
- requestBody: PublicationData;
5912
+ requestBody: {
5913
+ connection: {
5914
+ [key: string]: unknown;
5915
+ };
5916
+ };
5630
5917
  workspace: string;
5631
5918
  };
5632
- export type CreatePostgresPublicationResponse = string;
5633
- export type UpdatePostgresPublicationData = {
5919
+ export type TestGcpConnectionResponse = string;
5920
+ export type DeleteGcpSubscriptionData = {
5634
5921
  path: string;
5635
- publication: string;
5922
+ /**
5923
+ * args to delete subscription from google cloud
5924
+ */
5925
+ requestBody: DeleteGcpSubscription;
5926
+ workspace: string;
5927
+ };
5928
+ export type DeleteGcpSubscriptionResponse = string;
5929
+ export type ListGoogleTopicsData = {
5930
+ path: string;
5931
+ workspace: string;
5932
+ };
5933
+ export type ListGoogleTopicsResponse = Array<(string)>;
5934
+ export type ListAllTgoogleTopicSubscriptionsData = {
5935
+ path: string;
5936
+ /**
5937
+ * args to get subscription's topic from google cloud
5938
+ */
5939
+ requestBody: GetAllTopicSubscription;
5940
+ workspace: string;
5941
+ };
5942
+ export type ListAllTgoogleTopicSubscriptionsResponse = Array<(string)>;
5943
+ export type IsValidPostgresConfigurationData = {
5944
+ path: string;
5945
+ workspace: string;
5946
+ };
5947
+ export type IsValidPostgresConfigurationResponse = boolean;
5948
+ export type CreateTemplateScriptData = {
5949
+ /**
5950
+ * template script
5951
+ */
5952
+ requestBody: TemplateScript;
5953
+ workspace: string;
5954
+ };
5955
+ export type CreateTemplateScriptResponse = string;
5956
+ export type GetTemplateScriptData = {
5957
+ id: string;
5958
+ workspace: string;
5959
+ };
5960
+ export type GetTemplateScriptResponse = string;
5961
+ export type ListPostgresReplicationSlotData = {
5962
+ path: string;
5963
+ workspace: string;
5964
+ };
5965
+ export type ListPostgresReplicationSlotResponse = Array<SlotList>;
5966
+ export type CreatePostgresReplicationSlotData = {
5967
+ path: string;
5968
+ /**
5969
+ * new slot for postgres
5970
+ */
5971
+ requestBody: Slot;
5972
+ workspace: string;
5973
+ };
5974
+ export type CreatePostgresReplicationSlotResponse = string;
5975
+ export type DeletePostgresReplicationSlotData = {
5976
+ path: string;
5977
+ /**
5978
+ * replication slot of postgres
5979
+ */
5980
+ requestBody: Slot;
5981
+ workspace: string;
5982
+ };
5983
+ export type DeletePostgresReplicationSlotResponse = string;
5984
+ export type ListPostgresPublicationData = {
5985
+ path: string;
5986
+ workspace: string;
5987
+ };
5988
+ export type ListPostgresPublicationResponse = Array<(string)>;
5989
+ export type GetPostgresPublicationData = {
5990
+ path: string;
5991
+ publication: string;
5992
+ workspace: string;
5993
+ };
5994
+ export type GetPostgresPublicationResponse = PublicationData;
5995
+ export type CreatePostgresPublicationData = {
5996
+ path: string;
5997
+ publication: string;
5998
+ /**
5999
+ * new publication for postgres
6000
+ */
6001
+ requestBody: PublicationData;
6002
+ workspace: string;
6003
+ };
6004
+ export type CreatePostgresPublicationResponse = string;
6005
+ export type UpdatePostgresPublicationData = {
6006
+ path: string;
6007
+ publication: string;
5636
6008
  /**
5637
6009
  * update publication for postgres
5638
6010
  */
@@ -5969,8 +6341,19 @@ export type ListAutoscalingEventsData = {
5969
6341
  workerGroup: string;
5970
6342
  };
5971
6343
  export type ListAutoscalingEventsResponse = Array<AutoscalingEvent>;
6344
+ export type CreateAgentTokenData = {
6345
+ /**
6346
+ * agent token
6347
+ */
6348
+ requestBody: {
6349
+ worker_group: string;
6350
+ tags: Array<(string)>;
6351
+ exp: number;
6352
+ };
6353
+ };
6354
+ export type CreateAgentTokenResponse = string;
5972
6355
  export type GetGranularAclsData = {
5973
- kind: 'script' | 'group_' | 'resource' | 'schedule' | 'variable' | 'flow' | 'folder' | 'app' | 'raw_app' | 'http_trigger' | 'websocket_trigger' | 'kafka_trigger' | 'nats_trigger' | 'postgres_trigger' | 'mqtt_trigger' | 'sqs_trigger';
6356
+ kind: 'script' | 'group_' | 'resource' | 'schedule' | 'variable' | 'flow' | 'folder' | 'app' | 'raw_app' | 'http_trigger' | 'websocket_trigger' | 'kafka_trigger' | 'nats_trigger' | 'postgres_trigger' | 'mqtt_trigger' | 'gcp_trigger' | 'sqs_trigger';
5974
6357
  path: string;
5975
6358
  workspace: string;
5976
6359
  };
@@ -5978,7 +6361,7 @@ export type GetGranularAclsResponse = {
5978
6361
  [key: string]: (boolean);
5979
6362
  };
5980
6363
  export type AddGranularAclsData = {
5981
- kind: 'script' | 'group_' | 'resource' | 'schedule' | 'variable' | 'flow' | 'folder' | 'app' | 'raw_app' | 'http_trigger' | 'websocket_trigger' | 'kafka_trigger' | 'nats_trigger' | 'postgres_trigger' | 'mqtt_trigger' | 'sqs_trigger';
6364
+ kind: 'script' | 'group_' | 'resource' | 'schedule' | 'variable' | 'flow' | 'folder' | 'app' | 'raw_app' | 'http_trigger' | 'websocket_trigger' | 'kafka_trigger' | 'nats_trigger' | 'postgres_trigger' | 'mqtt_trigger' | 'gcp_trigger' | 'sqs_trigger';
5982
6365
  path: string;
5983
6366
  /**
5984
6367
  * acl to add
@@ -5991,7 +6374,7 @@ export type AddGranularAclsData = {
5991
6374
  };
5992
6375
  export type AddGranularAclsResponse = string;
5993
6376
  export type RemoveGranularAclsData = {
5994
- kind: 'script' | 'group_' | 'resource' | 'schedule' | 'variable' | 'flow' | 'folder' | 'app' | 'raw_app' | 'http_trigger' | 'websocket_trigger' | 'kafka_trigger' | 'nats_trigger' | 'postgres_trigger' | 'mqtt_trigger' | 'sqs_trigger';
6377
+ kind: 'script' | 'group_' | 'resource' | 'schedule' | 'variable' | 'flow' | 'folder' | 'app' | 'raw_app' | 'http_trigger' | 'websocket_trigger' | 'kafka_trigger' | 'nats_trigger' | 'postgres_trigger' | 'mqtt_trigger' | 'gcp_trigger' | 'sqs_trigger';
5995
6378
  path: string;
5996
6379
  /**
5997
6380
  * acl to add
@@ -6016,7 +6399,9 @@ export type SetCaptureConfigData = {
6016
6399
  };
6017
6400
  workspace: string;
6018
6401
  };
6019
- export type SetCaptureConfigResponse = unknown;
6402
+ export type SetCaptureConfigResponse = {
6403
+ [key: string]: unknown;
6404
+ };
6020
6405
  export type PingCaptureConfigData = {
6021
6406
  path: string;
6022
6407
  runnableKind: 'script' | 'flow';
@@ -8173,6 +8558,7 @@ export type $OpenApiTs = {
8173
8558
  nats_used: boolean;
8174
8559
  postgres_used: boolean;
8175
8560
  mqtt_used: boolean;
8561
+ gcp_used: boolean;
8176
8562
  sqs_used: boolean;
8177
8563
  };
8178
8564
  };
@@ -10028,6 +10414,25 @@ export type $OpenApiTs = {
10028
10414
  };
10029
10415
  };
10030
10416
  };
10417
+ '/w/{workspace}/apps/sign_s3_objects': {
10418
+ post: {
10419
+ req: {
10420
+ /**
10421
+ * s3 objects to sign
10422
+ */
10423
+ requestBody: {
10424
+ s3_objects: Array<S3Object>;
10425
+ };
10426
+ workspace: string;
10427
+ };
10428
+ res: {
10429
+ /**
10430
+ * signed s3 objects
10431
+ */
10432
+ 200: Array<S3Object>;
10433
+ };
10434
+ };
10435
+ };
10031
10436
  '/w/{workspace}/apps_u/execute_component/{path}': {
10032
10437
  post: {
10033
10438
  req: {
@@ -10782,6 +11187,36 @@ export type $OpenApiTs = {
10782
11187
  };
10783
11188
  };
10784
11189
  };
11190
+ '/w/{workspace}/jobs/list_selected_job_groups': {
11191
+ post: {
11192
+ req: {
11193
+ /**
11194
+ * script args
11195
+ */
11196
+ requestBody: Array<(string)>;
11197
+ workspace: string;
11198
+ };
11199
+ res: {
11200
+ /**
11201
+ * result
11202
+ */
11203
+ 200: Array<{
11204
+ kind: 'script' | 'flow';
11205
+ script_path: string;
11206
+ latest_schema: {
11207
+ [key: string]: unknown;
11208
+ };
11209
+ schemas: Array<{
11210
+ schema: {
11211
+ [key: string]: unknown;
11212
+ };
11213
+ script_hash: string;
11214
+ job_ids: Array<(string)>;
11215
+ }>;
11216
+ }>;
11217
+ };
11218
+ };
11219
+ };
10785
11220
  '/w/{workspace}/jobs/run/p/{path}': {
10786
11221
  post: {
10787
11222
  req: {
@@ -11092,6 +11527,41 @@ export type $OpenApiTs = {
11092
11527
  };
11093
11528
  };
11094
11529
  };
11530
+ '/w/{workspace}/jobs/run/batch_rerun_jobs': {
11531
+ post: {
11532
+ req: {
11533
+ /**
11534
+ * list of job ids to re run and arg tranforms
11535
+ */
11536
+ requestBody: {
11537
+ job_ids: Array<(string)>;
11538
+ script_options_by_path: {
11539
+ [key: string]: {
11540
+ input_transforms?: {
11541
+ [key: string]: InputTransform;
11542
+ };
11543
+ use_latest_version?: unknown;
11544
+ };
11545
+ };
11546
+ flow_options_by_path: {
11547
+ [key: string]: {
11548
+ input_transforms?: {
11549
+ [key: string]: InputTransform;
11550
+ };
11551
+ use_latest_version?: unknown;
11552
+ };
11553
+ };
11554
+ };
11555
+ workspace: string;
11556
+ };
11557
+ res: {
11558
+ /**
11559
+ * stream of created job uuids separated by \n. Lines may start with 'Error:'
11560
+ */
11561
+ 201: string;
11562
+ };
11563
+ };
11564
+ };
11095
11565
  '/w/{workspace}/jobs/restart/f/{id}/from/{step_id}/{branch_or_iteration_n}': {
11096
11566
  post: {
11097
11567
  req: {
@@ -11312,6 +11782,10 @@ export type $OpenApiTs = {
11312
11782
  '/w/{workspace}/jobs/queue/list': {
11313
11783
  get: {
11314
11784
  req: {
11785
+ /**
11786
+ * allow wildcards (*) in the filter of label, tag, worker
11787
+ */
11788
+ allowWildcards?: boolean;
11315
11789
  /**
11316
11790
  * get jobs from all workspaces (only valid if request come from the `admins` workspace)
11317
11791
  */
@@ -11462,9 +11936,146 @@ export type $OpenApiTs = {
11462
11936
  };
11463
11937
  };
11464
11938
  };
11939
+ '/w/{workspace}/jobs/list_filtered_uuids': {
11940
+ get: {
11941
+ req: {
11942
+ /**
11943
+ * get jobs from all workspaces (only valid if request come from the `admins` workspace)
11944
+ */
11945
+ allWorkspaces?: boolean;
11946
+ /**
11947
+ * filter on jobs containing those args as a json subset (@> in postgres)
11948
+ */
11949
+ args?: string;
11950
+ /**
11951
+ * filter on created after (exclusive) timestamp
11952
+ */
11953
+ createdAfter?: string;
11954
+ /**
11955
+ * filter on created before (inclusive) timestamp
11956
+ */
11957
+ createdBefore?: string;
11958
+ /**
11959
+ * mask to filter exact matching user creator
11960
+ */
11961
+ createdBy?: string;
11962
+ /**
11963
+ * filter on created_at for non non started job and started_at otherwise after (exclusive) timestamp
11964
+ */
11965
+ createdOrStartedAfter?: string;
11966
+ /**
11967
+ * filter on created_at for non non started job and started_at otherwise after (exclusive) timestamp but only for the completed jobs
11968
+ */
11969
+ createdOrStartedAfterCompletedJobs?: string;
11970
+ /**
11971
+ * filter on created_at for non non started job and started_at otherwise before (inclusive) timestamp
11972
+ */
11973
+ createdOrStartedBefore?: string;
11974
+ /**
11975
+ * has null parent
11976
+ */
11977
+ hasNullParent?: boolean;
11978
+ /**
11979
+ * is the job a flow step
11980
+ */
11981
+ isFlowStep?: boolean;
11982
+ /**
11983
+ * is not a scheduled job
11984
+ */
11985
+ isNotSchedule?: boolean;
11986
+ /**
11987
+ * is the job skipped
11988
+ */
11989
+ isSkipped?: boolean;
11990
+ /**
11991
+ * filter on job kind (values 'preview', 'script', 'dependencies', 'flow') separated by,
11992
+ */
11993
+ jobKinds?: string;
11994
+ /**
11995
+ * mask to filter exact matching job's label (job labels are completed jobs with as a result an object containing a string in the array at key 'wm_labels')
11996
+ */
11997
+ label?: string;
11998
+ /**
11999
+ * which page to return (start at 1, default 1)
12000
+ */
12001
+ page?: number;
12002
+ /**
12003
+ * The parent job that is at the origin and responsible for the execution of this script if any
12004
+ */
12005
+ parentJob?: string;
12006
+ /**
12007
+ * number of items to return for a given page (default 30, max 100)
12008
+ */
12009
+ perPage?: number;
12010
+ /**
12011
+ * filter on jobs containing those result as a json subset (@> in postgres)
12012
+ */
12013
+ result?: string;
12014
+ /**
12015
+ * filter on running jobs
12016
+ */
12017
+ running?: boolean;
12018
+ /**
12019
+ * filter on jobs scheduled_for before now (hence waitinf for a worker)
12020
+ */
12021
+ scheduledForBeforeNow?: boolean;
12022
+ /**
12023
+ * mask to filter by schedule path
12024
+ */
12025
+ schedulePath?: string;
12026
+ /**
12027
+ * mask to filter exact matching path
12028
+ */
12029
+ scriptHash?: string;
12030
+ /**
12031
+ * mask to filter exact matching path
12032
+ */
12033
+ scriptPathExact?: string;
12034
+ /**
12035
+ * mask to filter matching starting path
12036
+ */
12037
+ scriptPathStart?: string;
12038
+ /**
12039
+ * filter on started after (exclusive) timestamp
12040
+ */
12041
+ startedAfter?: string;
12042
+ /**
12043
+ * filter on started before (inclusive) timestamp
12044
+ */
12045
+ startedBefore?: string;
12046
+ /**
12047
+ * filter on successful jobs
12048
+ */
12049
+ success?: boolean;
12050
+ /**
12051
+ * filter on suspended jobs
12052
+ */
12053
+ suspended?: boolean;
12054
+ /**
12055
+ * filter on jobs with a given tag/worker group
12056
+ */
12057
+ tag?: string;
12058
+ /**
12059
+ * worker this job was ran on
12060
+ */
12061
+ worker?: string;
12062
+ workspace: string;
12063
+ };
12064
+ res: {
12065
+ /**
12066
+ * uuids of jobs
12067
+ */
12068
+ 200: Array<(string)>;
12069
+ };
12070
+ };
12071
+ };
11465
12072
  '/w/{workspace}/jobs/queue/list_filtered_uuids': {
11466
12073
  get: {
11467
12074
  req: {
12075
+ /**
12076
+ * allow wildcards (*) in the filter of label, tag, worker
12077
+ */
12078
+ allowWildcards?: boolean;
11468
12079
  /**
11469
12080
  * get jobs from all workspaces (only valid if request come from the `admins` workspace)
11470
12081
  */
@@ -11580,6 +12191,10 @@ export type $OpenApiTs = {
11580
12191
  '/w/{workspace}/jobs/completed/list': {
11581
12192
  get: {
11582
12193
  req: {
12194
+ /**
12195
+ * allow wildcards (*) in the filter of label, tag, worker
12196
+ */
12197
+ allowWildcards?: boolean;
11583
12198
  /**
11584
12199
  * filter on jobs containing those args as a json subset (@> in postgres)
11585
12200
  */
@@ -11681,6 +12296,10 @@ export type $OpenApiTs = {
11681
12296
  '/w/{workspace}/jobs/list': {
11682
12297
  get: {
11683
12298
  req: {
12299
+ /**
12300
+ * allow wildcards (*) in the filter of label, tag, worker
12301
+ */
12302
+ allowWildcards?: boolean;
11684
12303
  /**
11685
12304
  * get jobs from all workspaces (only valid if request come from the `admins` workspace)
11686
12305
  */
@@ -12288,6 +12907,10 @@ export type $OpenApiTs = {
12288
12907
  '/w/{workspace}/concurrency_groups/list_jobs': {
12289
12908
  get: {
12290
12909
  req: {
12910
+ /**
12911
+ * allow wildcards (*) in the filter of label, tag, worker
12912
+ */
12913
+ allowWildcards?: boolean;
12291
12914
  /**
12292
12915
  * get jobs from all workspaces (only valid if request come from the `admins` workspace)
12293
12916
  */
@@ -13580,6 +14203,201 @@ export type $OpenApiTs = {
13580
14203
  };
13581
14204
  };
13582
14205
  };
14206
+ '/w/{workspace}/gcp_triggers/create': {
14207
+ post: {
14208
+ req: {
14209
+ /**
14210
+ * new gcp trigger
14211
+ */
14212
+ requestBody: NewGcpTrigger;
14213
+ workspace: string;
14214
+ };
14215
+ res: {
14216
+ /**
14217
+ * gcp trigger created
14218
+ */
14219
+ 201: string;
14220
+ };
14221
+ };
14222
+ };
14223
+ '/w/{workspace}/gcp_triggers/update/{path}': {
14224
+ post: {
14225
+ req: {
14226
+ path: string;
14227
+ /**
14228
+ * updated trigger
14229
+ */
14230
+ requestBody: EditGcpTrigger;
14231
+ workspace: string;
14232
+ };
14233
+ res: {
14234
+ /**
14235
+ * gcp trigger updated
14236
+ */
14237
+ 200: string;
14238
+ };
14239
+ };
14240
+ };
14241
+ '/w/{workspace}/gcp_triggers/delete/{path}': {
14242
+ delete: {
14243
+ req: {
14244
+ path: string;
14245
+ workspace: string;
14246
+ };
14247
+ res: {
14248
+ /**
14249
+ * gcp trigger deleted
14250
+ */
14251
+ 200: string;
14252
+ };
14253
+ };
14254
+ };
14255
+ '/w/{workspace}/gcp_triggers/get/{path}': {
14256
+ get: {
14257
+ req: {
14258
+ path: string;
14259
+ workspace: string;
14260
+ };
14261
+ res: {
14262
+ /**
14263
+ * gcp trigger deleted
14264
+ */
14265
+ 200: GcpTrigger;
14266
+ };
14267
+ };
14268
+ };
14269
+ '/w/{workspace}/gcp_triggers/list': {
14270
+ get: {
14271
+ req: {
14272
+ isFlow?: boolean;
14273
+ /**
14274
+ * which page to return (start at 1, default 1)
14275
+ */
14276
+ page?: number;
14277
+ /**
14278
+ * filter by path
14279
+ */
14280
+ path?: string;
14281
+ pathStart?: string;
14282
+ /**
14283
+ * number of items to return for a given page (default 30, max 100)
14284
+ */
14285
+ perPage?: number;
14286
+ workspace: string;
14287
+ };
14288
+ res: {
14289
+ /**
14290
+ * gcp trigger list
14291
+ */
14292
+ 200: Array<GcpTrigger>;
14293
+ };
14294
+ };
14295
+ };
14296
+ '/w/{workspace}/gcp_triggers/exists/{path}': {
14297
+ get: {
14298
+ req: {
14299
+ path: string;
14300
+ workspace: string;
14301
+ };
14302
+ res: {
14303
+ /**
14304
+ * gcp trigger exists
14305
+ */
14306
+ 200: boolean;
14307
+ };
14308
+ };
14309
+ };
14310
+ '/w/{workspace}/gcp_triggers/setenabled/{path}': {
14311
+ post: {
14312
+ req: {
14313
+ path: string;
14314
+ /**
14315
+ * updated gcp trigger enable
14316
+ */
14317
+ requestBody: {
14318
+ enabled: boolean;
14319
+ };
14320
+ workspace: string;
14321
+ };
14322
+ res: {
14323
+ /**
14324
+ * gcp trigger enabled set
14325
+ */
14326
+ 200: string;
14327
+ };
14328
+ };
14329
+ };
14330
+ '/w/{workspace}/gcp_triggers/test': {
14331
+ post: {
14332
+ req: {
14333
+ /**
14334
+ * test gcp connection
14335
+ */
14336
+ requestBody: {
14337
+ connection: {
14338
+ [key: string]: unknown;
14339
+ };
14340
+ };
14341
+ workspace: string;
14342
+ };
14343
+ res: {
14344
+ /**
14345
+ * try to connect to a gcp broker
14346
+ */
14347
+ 200: string;
14348
+ };
14349
+ };
14350
+ };
14351
+ '/w/{workspace}/gcp_triggers/subscriptions/delete/{path}': {
14352
+ delete: {
14353
+ req: {
14354
+ path: string;
14355
+ /**
14356
+ * args to delete subscription from google cloud
14357
+ */
14358
+ requestBody: DeleteGcpSubscription;
14359
+ workspace: string;
14360
+ };
14361
+ res: {
14362
+ /**
14363
+ * gcp trigger deleted
14364
+ */
14365
+ 200: string;
14366
+ };
14367
+ };
14368
+ };
14369
+ '/w/{workspace}/gcp_triggers/topics/list/{path}': {
14370
+ get: {
14371
+ req: {
14372
+ path: string;
14373
+ workspace: string;
14374
+ };
14375
+ res: {
14376
+ /**
14377
+ * get all google topics
14378
+ */
14379
+ 200: Array<(string)>;
14380
+ };
14381
+ };
14382
+ };
14383
+ '/w/{workspace}/gcp_triggers/subscriptions/list/{path}': {
14384
+ post: {
14385
+ req: {
14386
+ path: string;
14387
+ /**
14388
+ * args to get subscription's topic from google cloud
14389
+ */
14390
+ requestBody: GetAllTopicSubscription;
14391
+ workspace: string;
14392
+ };
14393
+ res: {
14394
+ /**
14395
+ * get all google topic subscriptions name
14396
+ */
14397
+ 200: Array<(string)>;
14398
+ };
14399
+ };
14400
+ };
13583
14401
  '/w/{workspace}/postgres_triggers/is_valid_postgres_configuration/{path}': {
13584
14402
  get: {
13585
14403
  req: {
@@ -14447,10 +15265,30 @@ export type $OpenApiTs = {
14447
15265
  };
14448
15266
  };
14449
15267
  };
15268
+ '/agent_workers/create_agent_token': {
15269
+ post: {
15270
+ req: {
15271
+ /**
15272
+ * agent token
15273
+ */
15274
+ requestBody: {
15275
+ worker_group: string;
15276
+ tags: Array<(string)>;
15277
+ exp: number;
15278
+ };
15279
+ };
15280
+ res: {
15281
+ /**
15282
+ * agent token created
15283
+ */
15284
+ 200: string;
15285
+ };
15286
+ };
15287
+ };
14450
15288
  '/w/{workspace}/acls/get/{kind}/{path}': {
14451
15289
  get: {
14452
15290
  req: {
14453
- kind: 'script' | 'group_' | 'resource' | 'schedule' | 'variable' | 'flow' | 'folder' | 'app' | 'raw_app' | 'http_trigger' | 'websocket_trigger' | 'kafka_trigger' | 'nats_trigger' | 'postgres_trigger' | 'mqtt_trigger' | 'sqs_trigger';
15291
+ kind: 'script' | 'group_' | 'resource' | 'schedule' | 'variable' | 'flow' | 'folder' | 'app' | 'raw_app' | 'http_trigger' | 'websocket_trigger' | 'kafka_trigger' | 'nats_trigger' | 'postgres_trigger' | 'mqtt_trigger' | 'gcp_trigger' | 'sqs_trigger';
14454
15292
  path: string;
14455
15293
  workspace: string;
14456
15294
  };
@@ -14467,7 +15305,7 @@ export type $OpenApiTs = {
14467
15305
  '/w/{workspace}/acls/add/{kind}/{path}': {
14468
15306
  post: {
14469
15307
  req: {
14470
- kind: 'script' | 'group_' | 'resource' | 'schedule' | 'variable' | 'flow' | 'folder' | 'app' | 'raw_app' | 'http_trigger' | 'websocket_trigger' | 'kafka_trigger' | 'nats_trigger' | 'postgres_trigger' | 'mqtt_trigger' | 'sqs_trigger';
15308
+ kind: 'script' | 'group_' | 'resource' | 'schedule' | 'variable' | 'flow' | 'folder' | 'app' | 'raw_app' | 'http_trigger' | 'websocket_trigger' | 'kafka_trigger' | 'nats_trigger' | 'postgres_trigger' | 'mqtt_trigger' | 'gcp_trigger' | 'sqs_trigger';
14471
15309
  path: string;
14472
15310
  /**
14473
15311
  * acl to add
@@ -14489,7 +15327,7 @@ export type $OpenApiTs = {
14489
15327
  '/w/{workspace}/acls/remove/{kind}/{path}': {
14490
15328
  post: {
14491
15329
  req: {
14492
- kind: 'script' | 'group_' | 'resource' | 'schedule' | 'variable' | 'flow' | 'folder' | 'app' | 'raw_app' | 'http_trigger' | 'websocket_trigger' | 'kafka_trigger' | 'nats_trigger' | 'postgres_trigger' | 'mqtt_trigger' | 'sqs_trigger';
15330
+ kind: 'script' | 'group_' | 'resource' | 'schedule' | 'variable' | 'flow' | 'folder' | 'app' | 'raw_app' | 'http_trigger' | 'websocket_trigger' | 'kafka_trigger' | 'nats_trigger' | 'postgres_trigger' | 'mqtt_trigger' | 'gcp_trigger' | 'sqs_trigger';
14493
15331
  path: string;
14494
15332
  /**
14495
15333
  * acl to add
@@ -14527,7 +15365,9 @@ export type $OpenApiTs = {
14527
15365
  /**
14528
15366
  * capture config set
14529
15367
  */
14530
- 200: unknown;
15368
+ 200: {
15369
+ [key: string]: unknown;
15370
+ };
14531
15371
  };
14532
15372
  };
14533
15373
  };