windmill-cli 1.615.2 → 1.616.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.
@@ -2110,6 +2110,7 @@ export type TriggersCount = {
2110
2110
  mqtt_count?: number;
2111
2111
  gcp_count?: number;
2112
2112
  sqs_count?: number;
2113
+ nextcloud_count?: number;
2113
2114
  };
2114
2115
  export type WebsocketTrigger = TriggerExtraProperty & {
2115
2116
  url: string;
@@ -3272,6 +3273,153 @@ export type Asset = {
3272
3273
  path: string;
3273
3274
  kind: AssetKind;
3274
3275
  };
3276
+ export type NativeServiceName = 'nextcloud';
3277
+ /**
3278
+ * A native trigger stored in Windmill
3279
+ */
3280
+ export type NativeTrigger = {
3281
+ /**
3282
+ * The unique identifier from the external service
3283
+ */
3284
+ external_id: string;
3285
+ /**
3286
+ * The workspace this trigger belongs to
3287
+ */
3288
+ workspace_id: string;
3289
+ service_name: NativeServiceName;
3290
+ /**
3291
+ * The path to the script or flow that will be triggered
3292
+ */
3293
+ script_path: string;
3294
+ /**
3295
+ * Whether the trigger targets a flow (true) or a script (false)
3296
+ */
3297
+ is_flow: boolean;
3298
+ /**
3299
+ * Configuration for the trigger including event_type and service_config
3300
+ */
3301
+ service_config: {
3302
+ [key: string]: unknown;
3303
+ };
3304
+ /**
3305
+ * Error message if the trigger is in an error state
3306
+ */
3307
+ error?: (string) | null;
3308
+ };
3309
+ /**
3310
+ * Full trigger response containing both Windmill data and external service data
3311
+ */
3312
+ export type NativeTriggerWithExternal = {
3313
+ /**
3314
+ * The unique identifier from the external service
3315
+ */
3316
+ external_id: string;
3317
+ /**
3318
+ * The workspace this trigger belongs to
3319
+ */
3320
+ workspace_id: string;
3321
+ service_name: NativeServiceName;
3322
+ /**
3323
+ * The path to the script or flow that will be triggered
3324
+ */
3325
+ script_path: string;
3326
+ /**
3327
+ * Whether the trigger targets a flow (true) or a script (false)
3328
+ */
3329
+ is_flow: boolean;
3330
+ /**
3331
+ * Configuration for the trigger including event_type and service_config
3332
+ */
3333
+ service_config: {
3334
+ [key: string]: unknown;
3335
+ };
3336
+ /**
3337
+ * Error message if the trigger is in an error state
3338
+ */
3339
+ error?: (string) | null;
3340
+ /**
3341
+ * Configuration data from the external service
3342
+ */
3343
+ external_data: {
3344
+ [key: string]: unknown;
3345
+ };
3346
+ };
3347
+ export type WorkspaceIntegrations = {
3348
+ service_name: NativeServiceName;
3349
+ oauth_data?: (WorkspaceOAuthConfig) | null;
3350
+ };
3351
+ export type WorkspaceOAuthConfig = {
3352
+ /**
3353
+ * The OAuth client ID for the workspace
3354
+ */
3355
+ client_id: string;
3356
+ /**
3357
+ * The OAuth client secret for the workspace
3358
+ */
3359
+ client_secret: string;
3360
+ /**
3361
+ * The base URL of the workspace
3362
+ */
3363
+ base_url: string;
3364
+ /**
3365
+ * The OAuth redirect URI
3366
+ */
3367
+ redirect_uri: string;
3368
+ };
3369
+ export type WebhookEvent = {
3370
+ type: 'webhook';
3371
+ request_type: WebhookRequestType;
3372
+ };
3373
+ export type type6 = 'webhook';
3374
+ /**
3375
+ * The type of webhook request (define possible values here)
3376
+ */
3377
+ export type WebhookRequestType = 'async' | 'sync';
3378
+ export type RedirectUri = {
3379
+ redirect_uri: string;
3380
+ };
3381
+ /**
3382
+ * Data for creating or updating a native trigger
3383
+ */
3384
+ export type NativeTriggerData = {
3385
+ /**
3386
+ * The path to the script or flow that will be triggered
3387
+ */
3388
+ script_path: string;
3389
+ /**
3390
+ * Whether the trigger targets a flow (true) or a script (false)
3391
+ */
3392
+ is_flow: boolean;
3393
+ /**
3394
+ * Service-specific configuration (e.g., event types, filters)
3395
+ */
3396
+ service_config: {
3397
+ [key: string]: unknown;
3398
+ };
3399
+ };
3400
+ /**
3401
+ * Response returned when a native trigger is created
3402
+ */
3403
+ export type CreateTriggerResponse = {
3404
+ /**
3405
+ * The external ID of the created trigger from the external service
3406
+ */
3407
+ external_id: string;
3408
+ };
3409
+ export type SyncResult = {
3410
+ already_in_sync: boolean;
3411
+ added_count: number;
3412
+ added_triggers: Array<(string)>;
3413
+ total_external: number;
3414
+ total_windmill: number;
3415
+ };
3416
+ export type NextCloudEventType = {
3417
+ id: string;
3418
+ name: string;
3419
+ description?: string;
3420
+ category?: string;
3421
+ path: string;
3422
+ };
3275
3423
  export type ParameterId = string;
3276
3424
  export type ParameterKey = string;
3277
3425
  export type ParameterWorkspaceId = string;
@@ -4607,6 +4755,7 @@ export type GetUsedTriggersResponse = ({
4607
4755
  gcp_used: boolean;
4608
4756
  sqs_used: boolean;
4609
4757
  email_used: boolean;
4758
+ nextcloud_used: boolean;
4610
4759
  });
4611
4760
  export type ListUsersData = {
4612
4761
  workspace: string;
@@ -8659,6 +8808,135 @@ export type TestSqsConnectionData = {
8659
8808
  workspace: string;
8660
8809
  };
8661
8810
  export type TestSqsConnectionResponse = (string);
8811
+ export type ListNativeTriggerServicesData = {
8812
+ workspace: string;
8813
+ };
8814
+ export type ListNativeTriggerServicesResponse = (Array<WorkspaceIntegrations>);
8815
+ export type CheckIfNativeTriggersServiceExistsData = {
8816
+ serviceName: NativeServiceName;
8817
+ workspace: string;
8818
+ };
8819
+ export type CheckIfNativeTriggersServiceExistsResponse = (boolean);
8820
+ export type CreateNativeTriggerServiceData = {
8821
+ /**
8822
+ * new native trigger service
8823
+ */
8824
+ requestBody: WorkspaceOAuthConfig;
8825
+ serviceName: NativeServiceName;
8826
+ workspace: string;
8827
+ };
8828
+ export type CreateNativeTriggerServiceResponse = (string);
8829
+ export type GenerateNativeTriggerServiceConnectUrlData = {
8830
+ /**
8831
+ * redirect_uri
8832
+ */
8833
+ requestBody: RedirectUri;
8834
+ serviceName: NativeServiceName;
8835
+ workspace: string;
8836
+ };
8837
+ export type GenerateNativeTriggerServiceConnectUrlResponse = (string);
8838
+ export type DeleteNativeTriggerServiceData = {
8839
+ serviceName: NativeServiceName;
8840
+ workspace: string;
8841
+ };
8842
+ export type DeleteNativeTriggerServiceResponse = (string);
8843
+ export type NativeTriggerServiceCallbackData = {
8844
+ code: string;
8845
+ /**
8846
+ * redirect_uri
8847
+ */
8848
+ requestBody: RedirectUri;
8849
+ serviceName: NativeServiceName;
8850
+ state: string;
8851
+ workspace: string;
8852
+ };
8853
+ export type NativeTriggerServiceCallbackResponse = (string);
8854
+ export type CreateNativeTriggerData = {
8855
+ /**
8856
+ * new native trigger configuration
8857
+ */
8858
+ requestBody: NativeTriggerData;
8859
+ serviceName: NativeServiceName;
8860
+ workspace: string;
8861
+ };
8862
+ export type CreateNativeTriggerResponse = (CreateTriggerResponse);
8863
+ export type UpdateNativeTriggerData = {
8864
+ /**
8865
+ * The external ID of the trigger from the external service
8866
+ */
8867
+ externalId: string;
8868
+ /**
8869
+ * updated native trigger configuration
8870
+ */
8871
+ requestBody: NativeTriggerData;
8872
+ serviceName: NativeServiceName;
8873
+ workspace: string;
8874
+ };
8875
+ export type UpdateNativeTriggerResponse = (string);
8876
+ export type GetNativeTriggerData = {
8877
+ /**
8878
+ * The external ID of the trigger from the external service
8879
+ */
8880
+ externalId: string;
8881
+ serviceName: NativeServiceName;
8882
+ workspace: string;
8883
+ };
8884
+ export type GetNativeTriggerResponse = (NativeTriggerWithExternal);
8885
+ export type DeleteNativeTriggerData = {
8886
+ /**
8887
+ * The external ID of the trigger from the external service
8888
+ */
8889
+ externalId: string;
8890
+ serviceName: NativeServiceName;
8891
+ workspace: string;
8892
+ };
8893
+ export type DeleteNativeTriggerResponse = (string);
8894
+ export type ListNativeTriggersData = {
8895
+ /**
8896
+ * which page to return (start at 1, default 1)
8897
+ */
8898
+ page?: number;
8899
+ /**
8900
+ * number of items to return for a given page (default 30, max 100)
8901
+ */
8902
+ perPage?: number;
8903
+ serviceName: NativeServiceName;
8904
+ workspace: string;
8905
+ };
8906
+ export type ListNativeTriggersResponse = (Array<NativeTrigger>);
8907
+ export type ExistsNativeTriggerData = {
8908
+ /**
8909
+ * The external ID of the trigger from the external service
8910
+ */
8911
+ externalId: string;
8912
+ serviceName: NativeServiceName;
8913
+ workspace: string;
8914
+ };
8915
+ export type ExistsNativeTriggerResponse = (boolean);
8916
+ export type SyncNativeTriggersData = {
8917
+ serviceName: NativeServiceName;
8918
+ workspace: string;
8919
+ };
8920
+ export type SyncNativeTriggersResponse = (unknown);
8921
+ export type ListNextCloudEventsData = {
8922
+ workspace: string;
8923
+ };
8924
+ export type ListNextCloudEventsResponse = (Array<NextCloudEventType>);
8925
+ export type NativeTriggerWebhookData = {
8926
+ /**
8927
+ * The internal database ID of the trigger
8928
+ */
8929
+ internalId: number;
8930
+ /**
8931
+ * webhook payload from external service
8932
+ */
8933
+ requestBody?: {
8934
+ [key: string]: unknown;
8935
+ };
8936
+ serviceName: NativeServiceName;
8937
+ workspaceId: string;
8938
+ };
8939
+ export type NativeTriggerWebhookResponse = (string);
8662
8940
  export type CreateMqttTriggerData = {
8663
8941
  /**
8664
8942
  * new mqtt trigger