windmill-cli 1.448.0 → 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.
@@ -32,7 +32,7 @@ export const OpenAPI = {
32
32
  PASSWORD: undefined,
33
33
  TOKEN: getEnv("WM_TOKEN"),
34
34
  USERNAME: undefined,
35
- VERSION: '1.448.0',
35
+ VERSION: '1.449.0',
36
36
  WITH_CREDENTIALS: true,
37
37
  interceptors: {
38
38
  request: new Interceptors(),
@@ -1062,6 +1062,26 @@ export const whois = (data) => {
1062
1062
  }
1063
1063
  });
1064
1064
  };
1065
+ /**
1066
+ * Update operator settings for a workspace
1067
+ * Updates the operator settings for a specific workspace. Requires workspace admin privileges.
1068
+ * @param data The data for the request.
1069
+ * @param data.workspace
1070
+ * @param data.requestBody
1071
+ * @returns string Operator settings updated successfully
1072
+ * @throws ApiError
1073
+ */
1074
+ export const updateOperatorSettings = (data) => {
1075
+ return __request(OpenAPI, {
1076
+ method: 'POST',
1077
+ url: '/w/{workspace}/workspaces/operator_settings',
1078
+ path: {
1079
+ workspace: data.workspace
1080
+ },
1081
+ body: data.requestBody,
1082
+ mediaType: 'application/json'
1083
+ });
1084
+ };
1065
1085
  /**
1066
1086
  * exists email
1067
1087
  * @param data The data for the request.
@@ -2210,6 +2230,17 @@ export const getOauthConnect = (data) => {
2210
2230
  }
2211
2231
  });
2212
2232
  };
2233
+ /**
2234
+ * synchronize Microsoft Teams information (teams/channels)
2235
+ * @returns TeamInfo Teams information successfully synchronized
2236
+ * @throws ApiError
2237
+ */
2238
+ export const syncTeams = () => {
2239
+ return __request(OpenAPI, {
2240
+ method: 'POST',
2241
+ url: '/teams/sync'
2242
+ });
2243
+ };
2213
2244
  /**
2214
2245
  * create resource
2215
2246
  * @param data The data for the request.
@@ -6322,6 +6353,368 @@ export const setNatsTriggerEnabled = (data) => {
6322
6353
  mediaType: 'application/json'
6323
6354
  });
6324
6355
  };
6356
+ /**
6357
+ * check if postgres configuration is set to logical
6358
+ * @param data The data for the request.
6359
+ * @param data.workspace
6360
+ * @param data.path
6361
+ * @returns boolean boolean that indicates if postgres is set to logical level or not
6362
+ * @throws ApiError
6363
+ */
6364
+ export const isValidPostgresConfiguration = (data) => {
6365
+ return __request(OpenAPI, {
6366
+ method: 'GET',
6367
+ url: '/w/{workspace}/postgres_triggers/is_valid_postgres_configuration/{path}',
6368
+ path: {
6369
+ workspace: data.workspace,
6370
+ path: data.path
6371
+ }
6372
+ });
6373
+ };
6374
+ /**
6375
+ * create template script
6376
+ * @param data The data for the request.
6377
+ * @param data.workspace
6378
+ * @param data.requestBody template script
6379
+ * @returns string custom id to retrieve template script
6380
+ * @throws ApiError
6381
+ */
6382
+ export const createTemplateScript = (data) => {
6383
+ return __request(OpenAPI, {
6384
+ method: 'POST',
6385
+ url: '/w/{workspace}/postgres_triggers/create_template_script',
6386
+ path: {
6387
+ workspace: data.workspace
6388
+ },
6389
+ body: data.requestBody,
6390
+ mediaType: 'application/json'
6391
+ });
6392
+ };
6393
+ /**
6394
+ * get template script
6395
+ * @param data The data for the request.
6396
+ * @param data.workspace
6397
+ * @param data.id
6398
+ * @returns string template script
6399
+ * @throws ApiError
6400
+ */
6401
+ export const getTemplateScript = (data) => {
6402
+ return __request(OpenAPI, {
6403
+ method: 'GET',
6404
+ url: '/w/{workspace}/postgres_triggers/get_template_script/{id}',
6405
+ path: {
6406
+ workspace: data.workspace,
6407
+ id: data.id
6408
+ }
6409
+ });
6410
+ };
6411
+ /**
6412
+ * list postgres replication slot
6413
+ * @param data The data for the request.
6414
+ * @param data.workspace
6415
+ * @param data.path
6416
+ * @returns SlotList list postgres slot
6417
+ * @throws ApiError
6418
+ */
6419
+ export const listPostgresReplicationSlot = (data) => {
6420
+ return __request(OpenAPI, {
6421
+ method: 'GET',
6422
+ url: '/w/{workspace}/postgres_triggers/slot/list/{path}',
6423
+ path: {
6424
+ workspace: data.workspace,
6425
+ path: data.path
6426
+ }
6427
+ });
6428
+ };
6429
+ /**
6430
+ * create replication slot for postgres
6431
+ * @param data The data for the request.
6432
+ * @param data.workspace
6433
+ * @param data.path
6434
+ * @param data.requestBody new slot for postgres
6435
+ * @returns string slot created
6436
+ * @throws ApiError
6437
+ */
6438
+ export const createPostgresReplicationSlot = (data) => {
6439
+ return __request(OpenAPI, {
6440
+ method: 'POST',
6441
+ url: '/w/{workspace}/postgres_triggers/slot/create/{path}',
6442
+ path: {
6443
+ workspace: data.workspace,
6444
+ path: data.path
6445
+ },
6446
+ body: data.requestBody,
6447
+ mediaType: 'application/json'
6448
+ });
6449
+ };
6450
+ /**
6451
+ * delete postgres replication slot
6452
+ * @param data The data for the request.
6453
+ * @param data.workspace
6454
+ * @param data.path
6455
+ * @param data.requestBody replication slot of postgres
6456
+ * @returns string postgres replication slot deleted
6457
+ * @throws ApiError
6458
+ */
6459
+ export const deletePostgresReplicationSlot = (data) => {
6460
+ return __request(OpenAPI, {
6461
+ method: 'DELETE',
6462
+ url: '/w/{workspace}/postgres_triggers/slot/delete/{path}',
6463
+ path: {
6464
+ workspace: data.workspace,
6465
+ path: data.path
6466
+ },
6467
+ body: data.requestBody,
6468
+ mediaType: 'application/json'
6469
+ });
6470
+ };
6471
+ /**
6472
+ * list postgres publication
6473
+ * @param data The data for the request.
6474
+ * @param data.workspace
6475
+ * @param data.path
6476
+ * @returns string database publication list
6477
+ * @throws ApiError
6478
+ */
6479
+ export const listPostgresPublication = (data) => {
6480
+ return __request(OpenAPI, {
6481
+ method: 'GET',
6482
+ url: '/w/{workspace}/postgres_triggers/publication/list/{path}',
6483
+ path: {
6484
+ workspace: data.workspace,
6485
+ path: data.path
6486
+ }
6487
+ });
6488
+ };
6489
+ /**
6490
+ * get postgres publication
6491
+ * @param data The data for the request.
6492
+ * @param data.workspace
6493
+ * @param data.path
6494
+ * @param data.publication
6495
+ * @returns PublicationData postgres publication get
6496
+ * @throws ApiError
6497
+ */
6498
+ export const getPostgresPublication = (data) => {
6499
+ return __request(OpenAPI, {
6500
+ method: 'GET',
6501
+ url: '/w/{workspace}/postgres_triggers/publication/get/{publication}/{path}',
6502
+ path: {
6503
+ workspace: data.workspace,
6504
+ path: data.path,
6505
+ publication: data.publication
6506
+ }
6507
+ });
6508
+ };
6509
+ /**
6510
+ * create publication for postgres
6511
+ * @param data The data for the request.
6512
+ * @param data.workspace
6513
+ * @param data.path
6514
+ * @param data.publication
6515
+ * @param data.requestBody new publication for postgres
6516
+ * @returns string publication created
6517
+ * @throws ApiError
6518
+ */
6519
+ export const createPostgresPublication = (data) => {
6520
+ return __request(OpenAPI, {
6521
+ method: 'POST',
6522
+ url: '/w/{workspace}/postgres_triggers/publication/create/{publication}/{path}',
6523
+ path: {
6524
+ workspace: data.workspace,
6525
+ path: data.path,
6526
+ publication: data.publication
6527
+ },
6528
+ body: data.requestBody,
6529
+ mediaType: 'application/json'
6530
+ });
6531
+ };
6532
+ /**
6533
+ * update publication for postgres
6534
+ * @param data The data for the request.
6535
+ * @param data.workspace
6536
+ * @param data.path
6537
+ * @param data.publication
6538
+ * @param data.requestBody update publication for postgres
6539
+ * @returns string publication updated
6540
+ * @throws ApiError
6541
+ */
6542
+ export const updatePostgresPublication = (data) => {
6543
+ return __request(OpenAPI, {
6544
+ method: 'POST',
6545
+ url: '/w/{workspace}/postgres_triggers/publication/update/{publication}/{path}',
6546
+ path: {
6547
+ workspace: data.workspace,
6548
+ path: data.path,
6549
+ publication: data.publication
6550
+ },
6551
+ body: data.requestBody,
6552
+ mediaType: 'application/json'
6553
+ });
6554
+ };
6555
+ /**
6556
+ * delete postgres publication
6557
+ * @param data The data for the request.
6558
+ * @param data.workspace
6559
+ * @param data.path
6560
+ * @param data.publication
6561
+ * @returns string postgres publication deleted
6562
+ * @throws ApiError
6563
+ */
6564
+ export const deletePostgresPublication = (data) => {
6565
+ return __request(OpenAPI, {
6566
+ method: 'DELETE',
6567
+ url: '/w/{workspace}/postgres_triggers/publication/delete/{publication}/{path}',
6568
+ path: {
6569
+ workspace: data.workspace,
6570
+ path: data.path,
6571
+ publication: data.publication
6572
+ }
6573
+ });
6574
+ };
6575
+ /**
6576
+ * create postgres trigger
6577
+ * @param data The data for the request.
6578
+ * @param data.workspace
6579
+ * @param data.requestBody new postgres trigger
6580
+ * @returns string postgres trigger created
6581
+ * @throws ApiError
6582
+ */
6583
+ export const createPostgresTrigger = (data) => {
6584
+ return __request(OpenAPI, {
6585
+ method: 'POST',
6586
+ url: '/w/{workspace}/postgres_triggers/create',
6587
+ path: {
6588
+ workspace: data.workspace
6589
+ },
6590
+ body: data.requestBody,
6591
+ mediaType: 'application/json'
6592
+ });
6593
+ };
6594
+ /**
6595
+ * update postgres trigger
6596
+ * @param data The data for the request.
6597
+ * @param data.workspace
6598
+ * @param data.path
6599
+ * @param data.requestBody updated trigger
6600
+ * @returns string postgres trigger updated
6601
+ * @throws ApiError
6602
+ */
6603
+ export const updatePostgresTrigger = (data) => {
6604
+ return __request(OpenAPI, {
6605
+ method: 'POST',
6606
+ url: '/w/{workspace}/postgres_triggers/update/{path}',
6607
+ path: {
6608
+ workspace: data.workspace,
6609
+ path: data.path
6610
+ },
6611
+ body: data.requestBody,
6612
+ mediaType: 'application/json'
6613
+ });
6614
+ };
6615
+ /**
6616
+ * delete postgres trigger
6617
+ * @param data The data for the request.
6618
+ * @param data.workspace
6619
+ * @param data.path
6620
+ * @returns string postgres trigger deleted
6621
+ * @throws ApiError
6622
+ */
6623
+ export const deletePostgresTrigger = (data) => {
6624
+ return __request(OpenAPI, {
6625
+ method: 'DELETE',
6626
+ url: '/w/{workspace}/postgres_triggers/delete/{path}',
6627
+ path: {
6628
+ workspace: data.workspace,
6629
+ path: data.path
6630
+ }
6631
+ });
6632
+ };
6633
+ /**
6634
+ * get postgres trigger
6635
+ * @param data The data for the request.
6636
+ * @param data.workspace
6637
+ * @param data.path
6638
+ * @returns PostgresTrigger get postgres trigger
6639
+ * @throws ApiError
6640
+ */
6641
+ export const getPostgresTrigger = (data) => {
6642
+ return __request(OpenAPI, {
6643
+ method: 'GET',
6644
+ url: '/w/{workspace}/postgres_triggers/get/{path}',
6645
+ path: {
6646
+ workspace: data.workspace,
6647
+ path: data.path
6648
+ }
6649
+ });
6650
+ };
6651
+ /**
6652
+ * list postgres triggers
6653
+ * @param data The data for the request.
6654
+ * @param data.workspace
6655
+ * @param data.page which page to return (start at 1, default 1)
6656
+ * @param data.perPage number of items to return for a given page (default 30, max 100)
6657
+ * @param data.path filter by path
6658
+ * @param data.isFlow
6659
+ * @param data.pathStart
6660
+ * @returns PostgresTrigger postgres trigger list
6661
+ * @throws ApiError
6662
+ */
6663
+ export const listPostgresTriggers = (data) => {
6664
+ return __request(OpenAPI, {
6665
+ method: 'GET',
6666
+ url: '/w/{workspace}/postgres_triggers/list',
6667
+ path: {
6668
+ workspace: data.workspace
6669
+ },
6670
+ query: {
6671
+ page: data.page,
6672
+ per_page: data.perPage,
6673
+ path: data.path,
6674
+ is_flow: data.isFlow,
6675
+ path_start: data.pathStart
6676
+ }
6677
+ });
6678
+ };
6679
+ /**
6680
+ * does postgres trigger exists
6681
+ * @param data The data for the request.
6682
+ * @param data.workspace
6683
+ * @param data.path
6684
+ * @returns boolean postgres trigger exists
6685
+ * @throws ApiError
6686
+ */
6687
+ export const existsPostgresTrigger = (data) => {
6688
+ return __request(OpenAPI, {
6689
+ method: 'GET',
6690
+ url: '/w/{workspace}/postgres_triggers/exists/{path}',
6691
+ path: {
6692
+ workspace: data.workspace,
6693
+ path: data.path
6694
+ }
6695
+ });
6696
+ };
6697
+ /**
6698
+ * set enabled postgres trigger
6699
+ * @param data The data for the request.
6700
+ * @param data.workspace
6701
+ * @param data.path
6702
+ * @param data.requestBody updated postgres trigger enable
6703
+ * @returns string postgres trigger enabled set
6704
+ * @throws ApiError
6705
+ */
6706
+ export const setPostgresTriggerEnabled = (data) => {
6707
+ return __request(OpenAPI, {
6708
+ method: 'POST',
6709
+ url: '/w/{workspace}/postgres_triggers/setenabled/{path}',
6710
+ path: {
6711
+ workspace: data.workspace,
6712
+ path: data.path
6713
+ },
6714
+ body: data.requestBody,
6715
+ mediaType: 'application/json'
6716
+ });
6717
+ };
6325
6718
  /**
6326
6719
  * list instance groups
6327
6720
  * @returns InstanceGroup instance group list
package/esm/main.js CHANGED
@@ -33,7 +33,7 @@ export { flow, app, script, workspace, resource, user, variable, hub, folder, sc
33
33
  // console.error(JSON.stringify(event.error, null, 4));
34
34
  // }
35
35
  // });
36
- export const VERSION = "1.448.0";
36
+ export const VERSION = "1.449.0";
37
37
  const command = new Command()
38
38
  .name("wmill")
39
39
  .action(() => log.info(`Welcome to Windmill CLI ${VERSION}. Use -h for help.`))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "windmill-cli",
3
- "version": "1.448.0",
3
+ "version": "1.449.0",
4
4
  "description": "CLI for Windmill",
5
5
  "repository": {
6
6
  "type": "git",