windmill-utils-internal 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -49,7 +49,7 @@ export type FlowModule = {
49
49
  };
50
50
  sleep?: InputTransform;
51
51
  cache_ttl?: number;
52
- timeout?: number;
52
+ timeout?: InputTransform;
53
53
  delete_after_use?: boolean;
54
54
  summary?: string;
55
55
  mock?: {
@@ -196,6 +196,10 @@ export type FlowStatusModule = {
196
196
  };
197
197
  flow_jobs?: Array<(string)>;
198
198
  flow_jobs_success?: Array<(boolean)>;
199
+ flow_jobs_duration?: {
200
+ started_at?: Array<(string)>;
201
+ duration_ms?: Array<(number)>;
202
+ };
199
203
  branch_chosen?: {
200
204
  type: 'branch' | 'default';
201
205
  branch?: number;
@@ -280,6 +284,9 @@ export type AIConfig = {
280
284
  custom_prompts?: {
281
285
  [key: string]: (string);
282
286
  };
287
+ max_tokens_per_model?: {
288
+ [key: string]: (number);
289
+ };
283
290
  };
284
291
  export type Alert = {
285
292
  name: string;
@@ -649,6 +656,7 @@ export type EditVariable = {
649
656
  description?: string;
650
657
  };
651
658
  export type AuditLog = {
659
+ workspace_id: string;
652
660
  id: number;
653
661
  timestamp: string;
654
662
  username: string;
@@ -1152,6 +1160,7 @@ export type TriggersCount = {
1152
1160
  http_routes_count?: number;
1153
1161
  webhook_count?: number;
1154
1162
  email_count?: number;
1163
+ default_email_count?: number;
1155
1164
  websocket_count?: number;
1156
1165
  postgres_count?: number;
1157
1166
  kafka_count?: number;
@@ -1173,6 +1182,7 @@ export type WebsocketTrigger = TriggerExtraProperty & {
1173
1182
  initial_messages?: Array<WebsocketTriggerInitialMessage>;
1174
1183
  url_runnable_args?: ScriptArgs;
1175
1184
  can_return_message: boolean;
1185
+ can_return_error_result: boolean;
1176
1186
  error_handler_path?: string;
1177
1187
  error_handler_args?: ScriptArgs;
1178
1188
  retry?: Retry;
@@ -1190,6 +1200,7 @@ export type NewWebsocketTrigger = {
1190
1200
  initial_messages?: Array<WebsocketTriggerInitialMessage>;
1191
1201
  url_runnable_args?: ScriptArgs;
1192
1202
  can_return_message: boolean;
1203
+ can_return_error_result: boolean;
1193
1204
  error_handler_path?: string;
1194
1205
  error_handler_args?: ScriptArgs;
1195
1206
  retry?: Retry;
@@ -1206,6 +1217,7 @@ export type EditWebsocketTrigger = {
1206
1217
  initial_messages?: Array<WebsocketTriggerInitialMessage>;
1207
1218
  url_runnable_args?: ScriptArgs;
1208
1219
  can_return_message: boolean;
1220
+ can_return_error_result: boolean;
1209
1221
  error_handler_path?: string;
1210
1222
  error_handler_args?: ScriptArgs;
1211
1223
  retry?: Retry;
@@ -1315,6 +1327,10 @@ export type GcpTriggerData = {
1315
1327
  is_flow: boolean;
1316
1328
  enabled?: boolean;
1317
1329
  auto_acknowledge_msg?: boolean;
1330
+ /**
1331
+ * Time in seconds within which the message must be acknowledged. If not provided, defaults to the subscription's acknowledgment deadline (600 seconds).
1332
+ */
1333
+ ack_deadline?: number;
1318
1334
  error_handler_path?: string;
1319
1335
  error_handler_args?: ScriptArgs;
1320
1336
  retry?: Retry;
@@ -1505,6 +1521,33 @@ export type EditNatsTrigger = {
1505
1521
  error_handler_args?: ScriptArgs;
1506
1522
  retry?: Retry;
1507
1523
  };
1524
+ export type EmailTrigger = TriggerExtraProperty & {
1525
+ local_part: string;
1526
+ workspaced_local_part?: boolean;
1527
+ error_handler_path?: string;
1528
+ error_handler_args?: ScriptArgs;
1529
+ retry?: Retry;
1530
+ };
1531
+ export type NewEmailTrigger = {
1532
+ path: string;
1533
+ script_path: string;
1534
+ local_part: string;
1535
+ workspaced_local_part?: boolean;
1536
+ is_flow: boolean;
1537
+ error_handler_path?: string;
1538
+ error_handler_args?: ScriptArgs;
1539
+ retry?: Retry;
1540
+ };
1541
+ export type EditEmailTrigger = {
1542
+ path: string;
1543
+ script_path: string;
1544
+ local_part?: string;
1545
+ workspaced_local_part?: boolean;
1546
+ is_flow: boolean;
1547
+ error_handler_path?: string;
1548
+ error_handler_args?: ScriptArgs;
1549
+ retry?: Retry;
1550
+ };
1508
1551
  export type Group = {
1509
1552
  name: string;
1510
1553
  summary?: string;
@@ -1568,6 +1611,8 @@ export type UserWorkspaceList = {
1568
1611
  username: string;
1569
1612
  color: string;
1570
1613
  operator_settings?: OperatorSettings;
1614
+ parent_workspace_id?: (string) | null;
1615
+ created_by?: (string) | null;
1571
1616
  }>;
1572
1617
  };
1573
1618
  export type CreateWorkspace = {
@@ -1576,18 +1621,34 @@ export type CreateWorkspace = {
1576
1621
  username?: string;
1577
1622
  color?: string;
1578
1623
  };
1624
+ export type CreateWorkspaceFork = {
1625
+ id: string;
1626
+ name: string;
1627
+ username?: string;
1628
+ color?: string;
1629
+ parent_workspace_id: string;
1630
+ };
1579
1631
  export type Workspace = {
1580
1632
  id: string;
1581
1633
  name: string;
1582
1634
  owner: string;
1583
1635
  domain?: string;
1584
1636
  color?: string;
1637
+ parent_workspace_id?: (string) | null;
1638
+ };
1639
+ export type DependencyMap = {
1640
+ workspace_id?: (string) | null;
1641
+ importer_path?: (string) | null;
1642
+ importer_kind?: (string) | null;
1643
+ imported_path?: (string) | null;
1644
+ importer_node_id?: (string) | null;
1585
1645
  };
1586
1646
  export type WorkspaceInvite = {
1587
1647
  workspace_id: string;
1588
1648
  email: string;
1589
1649
  is_admin: boolean;
1590
1650
  operator: boolean;
1651
+ parent_workspace_id?: (string) | null;
1591
1652
  };
1592
1653
  export type GlobalUserInfo = {
1593
1654
  email: string;
@@ -1761,6 +1822,7 @@ export type LargeFileStorage = {
1761
1822
  azure_blob_resource_path?: string;
1762
1823
  gcs_resource_path?: string;
1763
1824
  public_resource?: boolean;
1825
+ advanced_permissions?: Array<S3PermissionRule>;
1764
1826
  secondary_storage?: {
1765
1827
  [key: string]: {
1766
1828
  type?: 'S3Storage' | 'AzureBlobStorage' | 'AzureWorkloadIdentity' | 'S3AwsOidc' | 'GoogleCloudStorage';
@@ -1786,6 +1848,34 @@ export type DucklakeSettings = {
1786
1848
  };
1787
1849
  };
1788
1850
  };
1851
+ export type DynamicInputData = {
1852
+ /**
1853
+ * Name of the function to execute for dynamic select
1854
+ */
1855
+ entrypoint_function: string;
1856
+ /**
1857
+ * Arguments to pass to the function
1858
+ */
1859
+ args?: {
1860
+ [key: string]: unknown;
1861
+ };
1862
+ runnable_ref: ({
1863
+ source: 'deployed';
1864
+ /**
1865
+ * Path to the deployed script or flow
1866
+ */
1867
+ path: string;
1868
+ runnable_kind: RunnableKind;
1869
+ } | {
1870
+ source: 'inline';
1871
+ /**
1872
+ * Code content for inline execution
1873
+ */
1874
+ code: string;
1875
+ language?: ScriptLang;
1876
+ });
1877
+ };
1878
+ export type source2 = 'deployed';
1789
1879
  export type WindmillLargeFile = {
1790
1880
  s3: string;
1791
1881
  };
@@ -1825,6 +1915,10 @@ export type WorkspaceDefaultScripts = {
1825
1915
  [key: string]: (string);
1826
1916
  };
1827
1917
  };
1918
+ export type S3PermissionRule = {
1919
+ pattern: string;
1920
+ allow: string;
1921
+ };
1828
1922
  export type GitRepositorySettings = {
1829
1923
  script_path: string;
1830
1924
  git_repo_resource_path: string;
@@ -1839,10 +1933,6 @@ export type GitRepositorySettings = {
1839
1933
  };
1840
1934
  exclude_types_override?: Array<GitSyncObjectType>;
1841
1935
  };
1842
- export type UploadFilePart = {
1843
- part_number: number;
1844
- tag: string;
1845
- };
1846
1936
  export type MetricMetadata = {
1847
1937
  id: string;
1848
1938
  name?: string;
@@ -1946,7 +2036,7 @@ export type CriticalAlert = {
1946
2036
  */
1947
2037
  workspace_id?: (string) | null;
1948
2038
  };
1949
- export type CaptureTriggerKind = 'webhook' | 'http' | 'websocket' | 'kafka' | 'email' | 'nats' | 'postgres' | 'sqs' | 'mqtt' | 'gcp';
2039
+ export type CaptureTriggerKind = 'webhook' | 'http' | 'websocket' | 'kafka' | 'default_email' | 'nats' | 'postgres' | 'sqs' | 'mqtt' | 'gcp' | 'email';
1950
2040
  export type Capture = {
1951
2041
  trigger_kind: CaptureTriggerKind;
1952
2042
  main_args: unknown;
@@ -2148,6 +2238,10 @@ export type ParameterIncludeHeader = string;
2148
2238
  *
2149
2239
  */
2150
2240
  export type ParameterQueueLimit = string;
2241
+ /**
2242
+ * skip the preprocessor
2243
+ */
2244
+ export type ParameterSkipPreprocessor = boolean;
2151
2245
  /**
2152
2246
  * The base64 encoded payload that has been encoded as a JSON. e.g how to encode such payload encodeURIComponent
2153
2247
  * `encodeURIComponent(btoa(JSON.stringify({a: 2})))`
@@ -2443,6 +2537,11 @@ export type DeleteUserData = {
2443
2537
  workspace: string;
2444
2538
  };
2445
2539
  export type DeleteUserResponse = (string);
2540
+ export type ConvertUserToGroupData = {
2541
+ username: string;
2542
+ workspace: string;
2543
+ };
2544
+ export type ConvertUserToGroupResponse = (string);
2446
2545
  export type GetGlobalConnectedRepositoriesResponse = (GithubInstallations);
2447
2546
  export type ListWorkspacesResponse = (Array<Workspace>);
2448
2547
  export type IsDomainAllowedResponse = (boolean);
@@ -2465,6 +2564,13 @@ export type CreateWorkspaceData = {
2465
2564
  requestBody: CreateWorkspace;
2466
2565
  };
2467
2566
  export type CreateWorkspaceResponse = (string);
2567
+ export type CreateWorkspaceForkData = {
2568
+ /**
2569
+ * new forked workspace
2570
+ */
2571
+ requestBody: CreateWorkspaceFork;
2572
+ };
2573
+ export type CreateWorkspaceForkResponse = (string);
2468
2574
  export type ExistsWorkspaceData = {
2469
2575
  /**
2470
2576
  * id of workspace
@@ -2621,7 +2727,6 @@ export type GetRunnableResponse = ({
2621
2727
  workspace: string;
2622
2728
  endpoint_async: string;
2623
2729
  endpoint_sync: string;
2624
- endpoint_openai_sync: string;
2625
2730
  summary: string;
2626
2731
  description?: string;
2627
2732
  kind: string;
@@ -2707,6 +2812,7 @@ export type InviteUserData = {
2707
2812
  email: string;
2708
2813
  is_admin: boolean;
2709
2814
  operator: boolean;
2815
+ parent_workspace_id?: (string) | null;
2710
2816
  };
2711
2817
  workspace: string;
2712
2818
  };
@@ -2889,6 +2995,14 @@ export type SetThresholdAlertData = {
2889
2995
  workspace: string;
2890
2996
  };
2891
2997
  export type SetThresholdAlertResponse = (string);
2998
+ export type RebuildDependencyMapData = {
2999
+ workspace: string;
3000
+ };
3001
+ export type RebuildDependencyMapResponse = (string);
3002
+ export type GetDependencyMapData = {
3003
+ workspace: string;
3004
+ };
3005
+ export type GetDependencyMapResponse = (Array<DependencyMap>);
2892
3006
  export type EditSlackCommandData = {
2893
3007
  /**
2894
3008
  * WorkspaceInvite
@@ -2910,6 +3024,10 @@ export type EditTeamsCommandData = {
2910
3024
  };
2911
3025
  export type EditTeamsCommandResponse = (string);
2912
3026
  export type ListAvailableTeamsIdsData = {
3027
+ /**
3028
+ * Search teams by name
3029
+ */
3030
+ search?: string;
2913
3031
  workspace: string;
2914
3032
  };
2915
3033
  export type ListAvailableTeamsIdsResponse = (Array<{
@@ -2917,13 +3035,19 @@ export type ListAvailableTeamsIdsResponse = (Array<{
2917
3035
  team_id?: string;
2918
3036
  }>);
2919
3037
  export type ListAvailableTeamsChannelsData = {
3038
+ /**
3039
+ * Search channels by name
3040
+ */
3041
+ search?: string;
3042
+ /**
3043
+ * Microsoft Teams team ID
3044
+ */
3045
+ teamId: string;
2920
3046
  workspace: string;
2921
3047
  };
2922
3048
  export type ListAvailableTeamsChannelsResponse = (Array<{
2923
3049
  channel_name?: string;
2924
3050
  channel_id?: string;
2925
- service_url?: string;
2926
- tenant_id?: string;
2927
3051
  }>);
2928
3052
  export type ConnectTeamsData = {
2929
3053
  /**
@@ -3177,6 +3301,7 @@ export type GetUsedTriggersResponse = ({
3177
3301
  mqtt_used: boolean;
3178
3302
  gcp_used: boolean;
3179
3303
  sqs_used: boolean;
3304
+ email_used: boolean;
3180
3305
  });
3181
3306
  export type ListUsersData = {
3182
3307
  workspace: string;
@@ -3256,6 +3381,16 @@ export type DeleteVariableData = {
3256
3381
  workspace: string;
3257
3382
  };
3258
3383
  export type DeleteVariableResponse = (string);
3384
+ export type DeleteVariablesBulkData = {
3385
+ /**
3386
+ * paths to delete
3387
+ */
3388
+ requestBody: {
3389
+ paths: Array<(string)>;
3390
+ };
3391
+ workspace: string;
3392
+ };
3393
+ export type DeleteVariablesBulkResponse = (Array<(string)>);
3259
3394
  export type UpdateVariableData = {
3260
3395
  /**
3261
3396
  * whether the variable is already encrypted (default false)
@@ -3414,7 +3549,10 @@ export type CreateAccountData = {
3414
3549
  * code endpoint
3415
3550
  */
3416
3551
  requestBody: {
3417
- refresh_token?: string;
3552
+ /**
3553
+ * OAuth refresh token. For authorization_code flow, this contains the actual refresh token. For client_credentials flow, this must be set to an empty string.
3554
+ */
3555
+ refresh_token: string;
3418
3556
  expires_in: number;
3419
3557
  client: string;
3420
3558
  grant_type?: string;
@@ -3504,7 +3642,6 @@ export type GetOauthConnectResponse = ({
3504
3642
  scopes?: Array<(string)>;
3505
3643
  grant_types?: Array<(string)>;
3506
3644
  });
3507
- export type SyncTeamsResponse = (Array<TeamInfo>);
3508
3645
  export type SendMessageToConversationData = {
3509
3646
  requestBody: {
3510
3647
  /**
@@ -3545,6 +3682,16 @@ export type DeleteResourceData = {
3545
3682
  workspace: string;
3546
3683
  };
3547
3684
  export type DeleteResourceResponse = (string);
3685
+ export type DeleteResourcesBulkData = {
3686
+ /**
3687
+ * paths to delete
3688
+ */
3689
+ requestBody: {
3690
+ paths: Array<(string)>;
3691
+ };
3692
+ workspace: string;
3693
+ };
3694
+ export type DeleteResourcesBulkResponse = (Array<(string)>);
3548
3695
  export type UpdateResourceData = {
3549
3696
  path: string;
3550
3697
  /**
@@ -3986,6 +4133,16 @@ export type DeleteScriptByPathData = {
3986
4133
  workspace: string;
3987
4134
  };
3988
4135
  export type DeleteScriptByPathResponse = (string);
4136
+ export type DeleteScriptsBulkData = {
4137
+ /**
4138
+ * paths to delete
4139
+ */
4140
+ requestBody: {
4141
+ paths: Array<(string)>;
4142
+ };
4143
+ workspace: string;
4144
+ };
4145
+ export type DeleteScriptsBulkResponse = (Array<(string)>);
3989
4146
  export type GetScriptByPathData = {
3990
4147
  path: string;
3991
4148
  withStarredInfo?: boolean;
@@ -4132,34 +4289,6 @@ export type RunScriptByPathData = {
4132
4289
  workspace: string;
4133
4290
  };
4134
4291
  export type RunScriptByPathResponse = (string);
4135
- export type OpenaiSyncScriptByPathData = {
4136
- /**
4137
- * List of headers's keys (separated with ',') whove value are added to the args
4138
- * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
4139
- *
4140
- */
4141
- includeHeader?: string;
4142
- /**
4143
- * 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)
4144
- */
4145
- jobId?: string;
4146
- /**
4147
- * The parent job that is at the origin and responsible for the execution of this script if any
4148
- */
4149
- parentJob?: string;
4150
- path: string;
4151
- /**
4152
- * The maximum size of the queue for which the request would get rejected if that job would push it above that limit
4153
- *
4154
- */
4155
- queueLimit?: string;
4156
- /**
4157
- * script args
4158
- */
4159
- requestBody: ScriptArgs;
4160
- workspace: string;
4161
- };
4162
- export type OpenaiSyncScriptByPathResponse = (unknown);
4163
4292
  export type RunWaitResultScriptByPathData = {
4164
4293
  /**
4165
4294
  * Override the cache time to live (in seconds). Can not be used to disable caching, only override with a new cache ttl
@@ -4189,6 +4318,10 @@ export type RunWaitResultScriptByPathData = {
4189
4318
  * script args
4190
4319
  */
4191
4320
  requestBody: ScriptArgs;
4321
+ /**
4322
+ * skip the preprocessor
4323
+ */
4324
+ skipPreprocessor?: boolean;
4192
4325
  /**
4193
4326
  * Override the tag to use
4194
4327
  */
@@ -4227,6 +4360,10 @@ export type RunWaitResultScriptByPathGetData = {
4227
4360
  *
4228
4361
  */
4229
4362
  queueLimit?: string;
4363
+ /**
4364
+ * skip the preprocessor
4365
+ */
4366
+ skipPreprocessor?: boolean;
4230
4367
  /**
4231
4368
  * Override the tag to use
4232
4369
  */
@@ -4234,7 +4371,7 @@ export type RunWaitResultScriptByPathGetData = {
4234
4371
  workspace: string;
4235
4372
  };
4236
4373
  export type RunWaitResultScriptByPathGetResponse = (unknown);
4237
- export type OpenaiSyncFlowByPathData = {
4374
+ export type RunWaitResultFlowByPathData = {
4238
4375
  /**
4239
4376
  * List of headers's keys (separated with ',') whove value are added to the args
4240
4377
  * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
@@ -4255,30 +4392,10 @@ export type OpenaiSyncFlowByPathData = {
4255
4392
  * script args
4256
4393
  */
4257
4394
  requestBody: ScriptArgs;
4258
- workspace: string;
4259
- };
4260
- export type OpenaiSyncFlowByPathResponse = (unknown);
4261
- export type RunWaitResultFlowByPathData = {
4262
4395
  /**
4263
- * List of headers's keys (separated with ',') whove value are added to the args
4264
- * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
4265
- *
4266
- */
4267
- includeHeader?: string;
4268
- /**
4269
- * 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)
4270
- */
4271
- jobId?: string;
4272
- path: string;
4273
- /**
4274
- * The maximum size of the queue for which the request would get rejected if that job would push it above that limit
4275
- *
4276
- */
4277
- queueLimit?: string;
4278
- /**
4279
- * script args
4396
+ * skip the preprocessor
4280
4397
  */
4281
- requestBody: ScriptArgs;
4398
+ skipPreprocessor?: boolean;
4282
4399
  workspace: string;
4283
4400
  };
4284
4401
  export type RunWaitResultFlowByPathResponse = (unknown);
@@ -4367,6 +4484,7 @@ export type GetFlowLatestVersionData = {
4367
4484
  };
4368
4485
  export type GetFlowLatestVersionResponse = (FlowVersion);
4369
4486
  export type ListFlowPathsFromWorkspaceRunnableData = {
4487
+ matchPathStart?: boolean;
4370
4488
  path: string;
4371
4489
  runnableKind: 'script' | 'flow';
4372
4490
  workspace: string;
@@ -5068,6 +5186,14 @@ export type RunFlowPreviewAndWaitResultData = {
5068
5186
  workspace: string;
5069
5187
  };
5070
5188
  export type RunFlowPreviewAndWaitResultResponse = (unknown);
5189
+ export type RunDynamicSelectData = {
5190
+ /**
5191
+ * dynamic select request
5192
+ */
5193
+ requestBody: DynamicInputData;
5194
+ workspace: string;
5195
+ };
5196
+ export type RunDynamicSelectResponse = (string);
5071
5197
  export type ListQueueData = {
5072
5198
  /**
5073
5199
  * allow wildcards (*) in the filter of label, tag, worker
@@ -5407,6 +5533,7 @@ export type ListFilteredQueueUuidsData = {
5407
5533
  };
5408
5534
  export type ListFilteredQueueUuidsResponse = (Array<(string)>);
5409
5535
  export type CancelSelectionData = {
5536
+ forceCancel?: boolean;
5410
5537
  /**
5411
5538
  * uuids of the jobs to cancel
5412
5539
  */
@@ -5681,6 +5808,14 @@ export type GetJobArgsData = {
5681
5808
  workspace: string;
5682
5809
  };
5683
5810
  export type GetJobArgsResponse = (unknown);
5811
+ export type GetStartedAtByIdsData = {
5812
+ /**
5813
+ * ids
5814
+ */
5815
+ requestBody: Array<(string)>;
5816
+ workspace: string;
5817
+ };
5818
+ export type GetStartedAtByIdsResponse = (Array<(string)>);
5684
5819
  export type GetJobUpdatesData = {
5685
5820
  getProgress?: boolean;
5686
5821
  id: string;
@@ -5786,6 +5921,21 @@ export type ForceCancelQueuedJobData = {
5786
5921
  workspace: string;
5787
5922
  };
5788
5923
  export type ForceCancelQueuedJobResponse = (string);
5924
+ export type GetQueuePositionData = {
5925
+ scheduledFor: number;
5926
+ workspace: string;
5927
+ };
5928
+ export type GetQueuePositionResponse = ({
5929
+ /**
5930
+ * The position in queue (1-based), null if not in queue or already running
5931
+ */
5932
+ position?: number;
5933
+ });
5934
+ export type GetScheduledForData = {
5935
+ id: string;
5936
+ workspace: string;
5937
+ };
5938
+ export type GetScheduledForResponse = (number);
5789
5939
  export type CreateJobSignatureData = {
5790
5940
  approver?: string;
5791
5941
  id: string;
@@ -6736,6 +6886,68 @@ export type TestPostgresConnectionData = {
6736
6886
  workspace: string;
6737
6887
  };
6738
6888
  export type TestPostgresConnectionResponse = (string);
6889
+ export type CreateEmailTriggerData = {
6890
+ /**
6891
+ * new email trigger
6892
+ */
6893
+ requestBody: NewEmailTrigger;
6894
+ workspace: string;
6895
+ };
6896
+ export type CreateEmailTriggerResponse = (string);
6897
+ export type UpdateEmailTriggerData = {
6898
+ path: string;
6899
+ /**
6900
+ * updated trigger
6901
+ */
6902
+ requestBody: EditEmailTrigger;
6903
+ workspace: string;
6904
+ };
6905
+ export type UpdateEmailTriggerResponse = (string);
6906
+ export type DeleteEmailTriggerData = {
6907
+ path: string;
6908
+ workspace: string;
6909
+ };
6910
+ export type DeleteEmailTriggerResponse = (string);
6911
+ export type GetEmailTriggerData = {
6912
+ path: string;
6913
+ workspace: string;
6914
+ };
6915
+ export type GetEmailTriggerResponse = (EmailTrigger);
6916
+ export type ListEmailTriggersData = {
6917
+ isFlow?: boolean;
6918
+ /**
6919
+ * which page to return (start at 1, default 1)
6920
+ */
6921
+ page?: number;
6922
+ /**
6923
+ * filter by path
6924
+ */
6925
+ path?: string;
6926
+ pathStart?: string;
6927
+ /**
6928
+ * number of items to return for a given page (default 30, max 100)
6929
+ */
6930
+ perPage?: number;
6931
+ workspace: string;
6932
+ };
6933
+ export type ListEmailTriggersResponse = (Array<EmailTrigger>);
6934
+ export type ExistsEmailTriggerData = {
6935
+ path: string;
6936
+ workspace: string;
6937
+ };
6938
+ export type ExistsEmailTriggerResponse = (boolean);
6939
+ export type ExistsEmailLocalPartData = {
6940
+ /**
6941
+ * email local part exists request
6942
+ */
6943
+ requestBody: {
6944
+ local_part: string;
6945
+ workspaced_local_part?: boolean;
6946
+ trigger_path?: string;
6947
+ };
6948
+ workspace: string;
6949
+ };
6950
+ export type ExistsEmailLocalPartResponse = (boolean);
6739
6951
  export type ListInstanceGroupsResponse = (Array<InstanceGroup>);
6740
6952
  export type ListInstanceGroupsWithWorkspacesResponse = (Array<InstanceGroupWithWorkspaces>);
6741
6953
  export type GetInstanceGroupData = {
@@ -7096,7 +7308,7 @@ export type ListBlacklistedAgentTokensResponse = (Array<{
7096
7308
  blacklisted_by: string;
7097
7309
  }>);
7098
7310
  export type GetGranularAclsData = {
7099
- 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';
7311
+ 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' | 'email_trigger';
7100
7312
  path: string;
7101
7313
  workspace: string;
7102
7314
  };
@@ -7104,7 +7316,7 @@ export type GetGranularAclsResponse = ({
7104
7316
  [key: string]: (boolean);
7105
7317
  });
7106
7318
  export type AddGranularAclsData = {
7107
- 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';
7319
+ 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' | 'email_trigger';
7108
7320
  path: string;
7109
7321
  /**
7110
7322
  * acl to add
@@ -7117,7 +7329,7 @@ export type AddGranularAclsData = {
7117
7329
  };
7118
7330
  export type AddGranularAclsResponse = (string);
7119
7331
  export type RemoveGranularAclsData = {
7120
- 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';
7332
+ 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' | 'email_trigger';
7121
7333
  path: string;
7122
7334
  /**
7123
7335
  * acl to add
@@ -1,7 +1,10 @@
1
1
  /**
2
2
  * Type alias for enum values - can be an array of strings or undefined
3
3
  */
4
- export type EnumType = string[] | undefined;
4
+ export type EnumType = string[] | {
5
+ label: string;
6
+ value: string;
7
+ }[] | undefined;
5
8
  /**
6
9
  * Represents a property in a JSON schema with various validation and display options
7
10
  */
@@ -16,7 +19,7 @@ export interface SchemaProperty {
16
19
  items?: {
17
20
  type?: "string" | "number" | "bytes" | "object" | "resource";
18
21
  contentEncoding?: "base64";
19
- enum?: string[];
22
+ enum?: EnumType;
20
23
  resourceType?: string;
21
24
  properties?: {
22
25
  [name: string]: SchemaProperty;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "windmill-utils-internal",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "Internal utility functions for Windmill",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -21,4 +21,4 @@
21
21
  "files": [
22
22
  "dist/**/*"
23
23
  ]
24
- }
24
+ }