windmill-cli 1.448.1 → 1.449.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.
@@ -27,7 +27,7 @@ export type Script = {
27
27
  };
28
28
  lock?: string;
29
29
  lock_error_logs?: string;
30
- language: 'python3' | 'deno' | 'go' | 'bash' | 'powershell' | 'postgresql' | 'mysql' | 'bigquery' | 'snowflake' | 'mssql' | 'oracledb' | 'graphql' | 'nativets' | 'bun' | 'php' | 'rust' | 'ansible' | 'csharp';
30
+ language: ScriptLang;
31
31
  kind: 'script' | 'failure' | 'trigger' | 'command' | 'approval' | 'preprocessor';
32
32
  starred: boolean;
33
33
  tag?: string;
@@ -50,7 +50,6 @@ export type Script = {
50
50
  has_preprocessor: boolean;
51
51
  on_behalf_of_email?: string;
52
52
  };
53
- export type language = 'python3' | 'deno' | 'go' | 'bash' | 'powershell' | 'postgresql' | 'mysql' | 'bigquery' | 'snowflake' | 'mssql' | 'oracledb' | 'graphql' | 'nativets' | 'bun' | 'php' | 'rust' | 'ansible' | 'csharp';
54
53
  export type kind = 'script' | 'failure' | 'trigger' | 'command' | 'approval' | 'preprocessor';
55
54
  export type NewScript = {
56
55
  path: string;
@@ -63,7 +62,7 @@ export type NewScript = {
63
62
  };
64
63
  is_template?: boolean;
65
64
  lock?: string;
66
- language: 'python3' | 'deno' | 'go' | 'bash' | 'powershell' | 'postgresql' | 'mysql' | 'bigquery' | 'snowflake' | 'mssql' | 'oracledb' | 'graphql' | 'nativets' | 'bun' | 'php' | 'rust' | 'ansible' | 'csharp';
65
+ language: ScriptLang;
67
66
  kind?: 'script' | 'failure' | 'trigger' | 'command' | 'approval' | 'preprocessor';
68
67
  tag?: string;
69
68
  draft_only?: boolean;
@@ -145,7 +144,7 @@ export type QueuedJob = {
145
144
  flow_status?: FlowStatus;
146
145
  raw_flow?: FlowValue;
147
146
  is_flow_step: boolean;
148
- language?: 'python3' | 'deno' | 'go' | 'bash' | 'powershell' | 'postgresql' | 'mysql' | 'bigquery' | 'snowflake' | 'mssql' | 'oracledb' | 'graphql' | 'nativets' | 'bun' | 'php' | 'rust' | 'ansible' | 'csharp';
147
+ language?: ScriptLang;
149
148
  email: string;
150
149
  visible_to_owner: boolean;
151
150
  mem_peak?: number;
@@ -186,7 +185,7 @@ export type CompletedJob = {
186
185
  flow_status?: FlowStatus;
187
186
  raw_flow?: FlowValue;
188
187
  is_flow_step: boolean;
189
- language?: 'python3' | 'deno' | 'go' | 'bash' | 'powershell' | 'postgresql' | 'mysql' | 'bigquery' | 'snowflake' | 'mssql' | 'oracledb' | 'graphql' | 'nativets' | 'bun' | 'php' | 'rust' | 'ansible' | 'csharp';
188
+ language?: ScriptLang;
190
189
  is_skipped: boolean;
191
190
  email: string;
192
191
  visible_to_owner: boolean;
@@ -336,11 +335,12 @@ export type MainArgSignature = {
336
335
  has_preprocessor: (boolean) | null;
337
336
  };
338
337
  export type type2 = 'Valid' | 'Invalid';
338
+ export type ScriptLang = 'python3' | 'deno' | 'go' | 'bash' | 'powershell' | 'postgresql' | 'mysql' | 'bigquery' | 'snowflake' | 'mssql' | 'oracledb' | 'graphql' | 'nativets' | 'bun' | 'php' | 'rust' | 'ansible' | 'csharp';
339
339
  export type Preview = {
340
340
  content?: string;
341
341
  path?: string;
342
342
  args: ScriptArgs;
343
- language?: 'python3' | 'deno' | 'go' | 'bash' | 'powershell' | 'postgresql' | 'mysql' | 'bigquery' | 'snowflake' | 'mssql' | 'oracledb' | 'graphql' | 'nativets' | 'bun' | 'php' | 'rust' | 'ansible' | 'csharp';
343
+ language?: ScriptLang;
344
344
  tag?: string;
345
345
  kind?: 'code' | 'identity' | 'http';
346
346
  dedicated_worker?: boolean;
@@ -499,10 +499,17 @@ export type EditSchedule = {
499
499
  paused_until?: string;
500
500
  cron_version?: string;
501
501
  };
502
- export type HttpTrigger = {
503
- path: string;
502
+ export type TriggerExtraProperty = {
503
+ email: string;
504
+ extra_perms: {
505
+ [key: string]: (boolean);
506
+ };
507
+ workspace_id: string;
504
508
  edited_by: string;
505
509
  edited_at: string;
510
+ };
511
+ export type HttpTrigger = TriggerExtraProperty & {
512
+ path: string;
506
513
  script_path: string;
507
514
  route_path: string;
508
515
  static_asset_config?: {
@@ -511,11 +518,6 @@ export type HttpTrigger = {
511
518
  filename?: string;
512
519
  };
513
520
  is_flow: boolean;
514
- extra_perms: {
515
- [key: string]: (boolean);
516
- };
517
- email: string;
518
- workspace_id: string;
519
521
  http_method: 'get' | 'post' | 'put' | 'delete' | 'patch';
520
522
  is_async: boolean;
521
523
  requires_auth: boolean;
@@ -558,21 +560,15 @@ export type TriggersCount = {
558
560
  webhook_count?: number;
559
561
  email_count?: number;
560
562
  websocket_count?: number;
563
+ postgres_count?: number;
561
564
  kafka_count?: number;
562
565
  nats_count?: number;
563
566
  };
564
- export type WebsocketTrigger = {
567
+ export type WebsocketTrigger = TriggerExtraProperty & {
565
568
  path: string;
566
- edited_by: string;
567
- edited_at: string;
568
569
  script_path: string;
569
570
  url: string;
570
571
  is_flow: boolean;
571
- extra_perms: {
572
- [key: string]: (boolean);
573
- };
574
- email: string;
575
- workspace_id: string;
576
572
  server_id?: string;
577
573
  last_server_ping?: string;
578
574
  error?: string;
@@ -618,6 +614,64 @@ export type WebsocketTriggerInitialMessage = {
618
614
  is_flow: boolean;
619
615
  };
620
616
  };
617
+ export type Slot = {
618
+ name?: string;
619
+ };
620
+ export type SlotList = {
621
+ slot_name?: string;
622
+ active?: boolean;
623
+ };
624
+ export type PublicationData = {
625
+ table_to_track?: Array<Relations>;
626
+ transaction_to_track: Array<(string)>;
627
+ };
628
+ export type TableToTrack = Array<{
629
+ table_name: string;
630
+ columns_name?: Array<(string)>;
631
+ where_clause?: string;
632
+ }>;
633
+ export type Relations = {
634
+ schema_name: string;
635
+ table_to_track: TableToTrack;
636
+ };
637
+ export type Language = 'Typescript';
638
+ export type TemplateScript = {
639
+ postgres_resource_path: string;
640
+ relations: Array<Relations>;
641
+ language: Language;
642
+ };
643
+ export type PostgresTrigger = TriggerExtraProperty & {
644
+ path: string;
645
+ script_path: string;
646
+ is_flow: boolean;
647
+ enabled: boolean;
648
+ postgres_resource_path: string;
649
+ publication_name: string;
650
+ server_id?: string;
651
+ replication_slot_name: string;
652
+ error?: string;
653
+ last_server_ping?: string;
654
+ };
655
+ export type NewPostgresTrigger = {
656
+ replication_slot_name?: string;
657
+ publication_name?: string;
658
+ path: string;
659
+ script_path: string;
660
+ is_flow: boolean;
661
+ enabled: boolean;
662
+ postgres_resource_path: string;
663
+ publication?: PublicationData;
664
+ };
665
+ export type EditPostgresTrigger = {
666
+ replication_slot_name: string;
667
+ publication_name: string;
668
+ path: string;
669
+ script_path: string;
670
+ is_flow: boolean;
671
+ enabled: boolean;
672
+ postgres_resource_path: string;
673
+ publication?: PublicationData;
674
+ };
621
675
  export type KafkaTrigger = {
622
676
  path: string;
623
677
  edited_by: string;
@@ -747,6 +801,7 @@ export type UserWorkspaceList = {
747
801
  name: string;
748
802
  username: string;
749
803
  color: string;
804
+ operator_settings?: OperatorSettings;
750
805
  }>;
751
806
  };
752
807
  export type CreateWorkspace = {
@@ -1001,7 +1056,7 @@ export type MetricDataPoint = {
1001
1056
  export type RawScriptForDependencies = {
1002
1057
  raw_code: string;
1003
1058
  path: string;
1004
- language: 'python3' | 'deno' | 'go' | 'bash' | 'powershell' | 'postgresql' | 'mysql' | 'bigquery' | 'snowflake' | 'mssql' | 'oracledb' | 'graphql' | 'nativets' | 'bun' | 'php' | 'rust' | 'ansible' | 'csharp';
1059
+ language: ScriptLang;
1005
1060
  };
1006
1061
  export type ConcurrencyGroup = {
1007
1062
  concurrency_key: string;
@@ -1099,6 +1154,76 @@ export type CaptureConfig = {
1099
1154
  error?: string;
1100
1155
  last_server_ping?: string;
1101
1156
  };
1157
+ export type OperatorSettings = {
1158
+ /**
1159
+ * Whether operators can view runs
1160
+ */
1161
+ runs: boolean;
1162
+ /**
1163
+ * Whether operators can view schedules
1164
+ */
1165
+ schedules: boolean;
1166
+ /**
1167
+ * Whether operators can view resources
1168
+ */
1169
+ resources: boolean;
1170
+ /**
1171
+ * Whether operators can view variables
1172
+ */
1173
+ variables: boolean;
1174
+ /**
1175
+ * Whether operators can view audit logs
1176
+ */
1177
+ audit_logs: boolean;
1178
+ /**
1179
+ * Whether operators can view triggers
1180
+ */
1181
+ triggers: boolean;
1182
+ /**
1183
+ * Whether operators can view groups page
1184
+ */
1185
+ groups: boolean;
1186
+ /**
1187
+ * Whether operators can view folders page
1188
+ */
1189
+ folders: boolean;
1190
+ /**
1191
+ * Whether operators can view workers page
1192
+ */
1193
+ workers: boolean;
1194
+ } | null;
1195
+ export type TeamInfo = {
1196
+ /**
1197
+ * The unique identifier of the Microsoft Teams team
1198
+ */
1199
+ team_id: string;
1200
+ /**
1201
+ * The display name of the Microsoft Teams team
1202
+ */
1203
+ team_name: string;
1204
+ /**
1205
+ * List of channels within the team
1206
+ */
1207
+ channels: Array<ChannelInfo>;
1208
+ };
1209
+ export type ChannelInfo = {
1210
+ /**
1211
+ * The unique identifier of the channel
1212
+ */
1213
+ channel_id: string;
1214
+ /**
1215
+ * The display name of the channel
1216
+ */
1217
+ channel_name: string;
1218
+ /**
1219
+ * The Microsoft Teams tenant identifier
1220
+ */
1221
+ tenant_id: string;
1222
+ /**
1223
+ * The service URL for the channel
1224
+ */
1225
+ service_url: string;
1226
+ };
1102
1227
  export type OpenFlow = {
1103
1228
  summary: string;
1104
1229
  description?: string;
@@ -1198,7 +1323,7 @@ export type RawScript = {
1198
1323
  custom_concurrency_key?: string;
1199
1324
  is_trigger?: boolean;
1200
1325
  };
1201
- export type language2 = 'deno' | 'bun' | 'python3' | 'go' | 'bash' | 'powershell' | 'postgresql' | 'mysql' | 'bigquery' | 'snowflake' | 'mssql' | 'oracledb' | 'graphql' | 'nativets' | 'php';
1326
+ export type language = 'deno' | 'bun' | 'python3' | 'go' | 'bash' | 'powershell' | 'postgresql' | 'mysql' | 'bigquery' | 'snowflake' | 'mssql' | 'oracledb' | 'graphql' | 'nativets' | 'php';
1202
1327
  export type PathScript = {
1203
1328
  input_transforms: {
1204
1329
  [key: string]: InputTransform;
@@ -1297,8 +1422,10 @@ export type FlowStatusModule = {
1297
1422
  skipped?: boolean;
1298
1423
  };
1299
1424
  export type type4 = 'WaitingForPriorSteps' | 'WaitingForEvents' | 'WaitingForExecutor' | 'InProgress' | 'Success' | 'Failure';
1425
+ export type ParameterId = string;
1300
1426
  export type ParameterKey = string;
1301
1427
  export type ParameterWorkspaceId = string;
1428
+ export type ParameterPublicationName = string;
1302
1429
  export type ParameterVersionId = number;
1303
1430
  export type ParameterToken = string;
1304
1431
  export type ParameterAccountId = number;
@@ -1921,6 +2048,11 @@ export type WhoisData = {
1921
2048
  workspace: string;
1922
2049
  };
1923
2050
  export type WhoisResponse = (User);
2051
+ export type UpdateOperatorSettingsData = {
2052
+ requestBody: OperatorSettings;
2053
+ workspace: string;
2054
+ };
2055
+ export type UpdateOperatorSettingsResponse = (string);
1924
2056
  export type ExistsEmailData = {
1925
2057
  email: string;
1926
2058
  };
@@ -1972,6 +2104,7 @@ export type GetSettingsResponse = ({
1972
2104
  default_scripts?: WorkspaceDefaultScripts;
1973
2105
  mute_critical_alerts?: boolean;
1974
2106
  color?: string;
2107
+ operator_settings?: OperatorSettings;
1975
2108
  });
1976
2109
  export type GetDeployToData = {
1977
2110
  workspace: string;
@@ -2207,6 +2340,7 @@ export type GetUsedTriggersResponse = ({
2207
2340
  websocket_used: boolean;
2208
2341
  kafka_used: boolean;
2209
2342
  nats_used: boolean;
2343
+ postgres_used: boolean;
2210
2344
  });
2211
2345
  export type ListUsersData = {
2212
2346
  workspace: string;
@@ -2472,6 +2606,7 @@ export type GetOauthConnectResponse = ({
2472
2606
  };
2473
2607
  scopes?: Array<(string)>;
2474
2608
  });
2609
+ export type SyncTeamsResponse = (Array<TeamInfo>);
2475
2610
  export type CreateResourceData = {
2476
2611
  /**
2477
2612
  * new resource
@@ -4831,6 +4966,145 @@ export type SetNatsTriggerEnabledData = {
4831
4966
  workspace: string;
4832
4967
  };
4833
4968
  export type SetNatsTriggerEnabledResponse = (string);
4969
+ export type IsValidPostgresConfigurationData = {
4970
+ path: string;
4971
+ workspace: string;
4972
+ };
4973
+ export type IsValidPostgresConfigurationResponse = (boolean);
4974
+ export type CreateTemplateScriptData = {
4975
+ /**
4976
+ * template script
4977
+ */
4978
+ requestBody: TemplateScript;
4979
+ workspace: string;
4980
+ };
4981
+ export type CreateTemplateScriptResponse = (string);
4982
+ export type GetTemplateScriptData = {
4983
+ id: string;
4984
+ workspace: string;
4985
+ };
4986
+ export type GetTemplateScriptResponse = (string);
4987
+ export type ListPostgresReplicationSlotData = {
4988
+ path: string;
4989
+ workspace: string;
4990
+ };
4991
+ export type ListPostgresReplicationSlotResponse = (Array<SlotList>);
4992
+ export type CreatePostgresReplicationSlotData = {
4993
+ path: string;
4994
+ /**
4995
+ * new slot for postgres
4996
+ */
4997
+ requestBody: Slot;
4998
+ workspace: string;
4999
+ };
5000
+ export type CreatePostgresReplicationSlotResponse = (string);
5001
+ export type DeletePostgresReplicationSlotData = {
5002
+ path: string;
5003
+ /**
5004
+ * replication slot of postgres
5005
+ */
5006
+ requestBody: Slot;
5007
+ workspace: string;
5008
+ };
5009
+ export type DeletePostgresReplicationSlotResponse = (string);
5010
+ export type ListPostgresPublicationData = {
5011
+ path: string;
5012
+ workspace: string;
5013
+ };
5014
+ export type ListPostgresPublicationResponse = (Array<(string)>);
5015
+ export type GetPostgresPublicationData = {
5016
+ path: string;
5017
+ publication: string;
5018
+ workspace: string;
5019
+ };
5020
+ export type GetPostgresPublicationResponse = (PublicationData);
5021
+ export type CreatePostgresPublicationData = {
5022
+ path: string;
5023
+ publication: string;
5024
+ /**
5025
+ * new publication for postgres
5026
+ */
5027
+ requestBody: PublicationData;
5028
+ workspace: string;
5029
+ };
5030
+ export type CreatePostgresPublicationResponse = (string);
5031
+ export type UpdatePostgresPublicationData = {
5032
+ path: string;
5033
+ publication: string;
5034
+ /**
5035
+ * update publication for postgres
5036
+ */
5037
+ requestBody: PublicationData;
5038
+ workspace: string;
5039
+ };
5040
+ export type UpdatePostgresPublicationResponse = (string);
5041
+ export type DeletePostgresPublicationData = {
5042
+ path: string;
5043
+ publication: string;
5044
+ workspace: string;
5045
+ };
5046
+ export type DeletePostgresPublicationResponse = (string);
5047
+ export type CreatePostgresTriggerData = {
5048
+ /**
5049
+ * new postgres trigger
5050
+ */
5051
+ requestBody: NewPostgresTrigger;
5052
+ workspace: string;
5053
+ };
5054
+ export type CreatePostgresTriggerResponse = (string);
5055
+ export type UpdatePostgresTriggerData = {
5056
+ path: string;
5057
+ /**
5058
+ * updated trigger
5059
+ */
5060
+ requestBody: EditPostgresTrigger;
5061
+ workspace: string;
5062
+ };
5063
+ export type UpdatePostgresTriggerResponse = (string);
5064
+ export type DeletePostgresTriggerData = {
5065
+ path: string;
5066
+ workspace: string;
5067
+ };
5068
+ export type DeletePostgresTriggerResponse = (string);
5069
+ export type GetPostgresTriggerData = {
5070
+ path: string;
5071
+ workspace: string;
5072
+ };
5073
+ export type GetPostgresTriggerResponse = (PostgresTrigger);
5074
+ export type ListPostgresTriggersData = {
5075
+ isFlow?: boolean;
5076
+ /**
5077
+ * which page to return (start at 1, default 1)
5078
+ */
5079
+ page?: number;
5080
+ /**
5081
+ * filter by path
5082
+ */
5083
+ path?: string;
5084
+ pathStart?: string;
5085
+ /**
5086
+ * number of items to return for a given page (default 30, max 100)
5087
+ */
5088
+ perPage?: number;
5089
+ workspace: string;
5090
+ };
5091
+ export type ListPostgresTriggersResponse = (Array<PostgresTrigger>);
5092
+ export type ExistsPostgresTriggerData = {
5093
+ path: string;
5094
+ workspace: string;
5095
+ };
5096
+ export type ExistsPostgresTriggerResponse = (boolean);
5097
+ export type SetPostgresTriggerEnabledData = {
5098
+ path: string;
5099
+ /**
5100
+ * updated postgres trigger enable
5101
+ */
5102
+ requestBody: {
5103
+ enabled: boolean;
5104
+ };
5105
+ workspace: string;
5106
+ };
5107
+ export type SetPostgresTriggerEnabledResponse = (string);
4834
5108
  export type ListInstanceGroupsResponse = (Array<InstanceGroup>);
4835
5109
  export type GetInstanceGroupData = {
4836
5110
  name: string;
@@ -5112,7 +5386,7 @@ export type ListAutoscalingEventsData = {
5112
5386
  };
5113
5387
  export type ListAutoscalingEventsResponse = (Array<AutoscalingEvent>);
5114
5388
  export type GetGranularAclsData = {
5115
- kind: 'script' | 'group_' | 'resource' | 'schedule' | 'variable' | 'flow' | 'folder' | 'app' | 'raw_app' | 'http_trigger' | 'websocket_trigger' | 'kafka_trigger' | 'nats_trigger';
5389
+ kind: 'script' | 'group_' | 'resource' | 'schedule' | 'variable' | 'flow' | 'folder' | 'app' | 'raw_app' | 'http_trigger' | 'websocket_trigger' | 'kafka_trigger' | 'nats_trigger' | 'postgres_trigger';
5116
5390
  path: string;
5117
5391
  workspace: string;
5118
5392
  };
@@ -5120,7 +5394,7 @@ export type GetGranularAclsResponse = ({
5120
5394
  [key: string]: (boolean);
5121
5395
  });
5122
5396
  export type AddGranularAclsData = {
5123
- kind: 'script' | 'group_' | 'resource' | 'schedule' | 'variable' | 'flow' | 'folder' | 'app' | 'raw_app' | 'http_trigger' | 'websocket_trigger' | 'kafka_trigger' | 'nats_trigger';
5397
+ kind: 'script' | 'group_' | 'resource' | 'schedule' | 'variable' | 'flow' | 'folder' | 'app' | 'raw_app' | 'http_trigger' | 'websocket_trigger' | 'kafka_trigger' | 'nats_trigger' | 'postgres_trigger';
5124
5398
  path: string;
5125
5399
  /**
5126
5400
  * acl to add
@@ -5133,7 +5407,7 @@ export type AddGranularAclsData = {
5133
5407
  };
5134
5408
  export type AddGranularAclsResponse = (string);
5135
5409
  export type RemoveGranularAclsData = {
5136
- kind: 'script' | 'group_' | 'resource' | 'schedule' | 'variable' | 'flow' | 'folder' | 'app' | 'raw_app' | 'http_trigger' | 'websocket_trigger' | 'kafka_trigger' | 'nats_trigger';
5410
+ kind: 'script' | 'group_' | 'resource' | 'schedule' | 'variable' | 'flow' | 'folder' | 'app' | 'raw_app' | 'http_trigger' | 'websocket_trigger' | 'kafka_trigger' | 'nats_trigger' | 'postgres_trigger';
5137
5411
  path: string;
5138
5412
  /**
5139
5413
  * acl to add