windmill-client 1.766.2 → 1.768.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.
@@ -3382,7 +3382,7 @@ var WorkspaceService = class {
3382
3382
  };
3383
3383
  var SettingService = class {
3384
3384
  /**
3385
- * Refreshes the password for the custom_instance_user
3385
+ * Refreshes the passwords for the custom_instance_user and the custom_instance_replication_user (used by postgres triggers)
3386
3386
  * @returns unknown Success
3387
3387
  * @throws ApiError
3388
3388
  */
@@ -15455,6 +15455,438 @@ var McpOauthService = class {
15455
15455
  });
15456
15456
  }
15457
15457
  };
15458
+ var HubPublishService = class {
15459
+ /**
15460
+ * create or update a hub project draft
15461
+ * Requires the caller to be a workspace admin. Forwards the request to the
15462
+ * configured Hub scoped to the `{workspace}:{folder}` source and returns
15463
+ * the Hub's status code and raw response body.
15464
+ *
15465
+ * @param data The data for the request.
15466
+ * @param data.workspace
15467
+ * @param data.folder workspace folder scoping the Hub publication: a workspace can publish
15468
+ * one Hub project per folder and the Hub-side source key is
15469
+ * `{workspace}:{folder}`
15470
+ *
15471
+ * @param data.requestBody
15472
+ * @returns string raw Hub response body (status code is passed through from the Hub)
15473
+ * @throws ApiError
15474
+ */
15475
+ static publishHubDraft(data) {
15476
+ return request(OpenAPI, {
15477
+ method: "POST",
15478
+ url: "/w/{workspace}/hub/publish_draft",
15479
+ path: { workspace: data.workspace },
15480
+ query: { folder: data.folder },
15481
+ body: data.requestBody,
15482
+ mediaType: "application/json"
15483
+ });
15484
+ }
15485
+ /**
15486
+ * publish a script to a hub project
15487
+ * Requires the caller to be a workspace admin. Forwards the request to the
15488
+ * configured Hub scoped to the `{workspace}:{folder}` source and returns
15489
+ * the Hub's status code and raw response body.
15490
+ *
15491
+ * @param data The data for the request.
15492
+ * @param data.workspace
15493
+ * @param data.folder workspace folder scoping the Hub publication: a workspace can publish
15494
+ * one Hub project per folder and the Hub-side source key is
15495
+ * `{workspace}:{folder}`
15496
+ *
15497
+ * @param data.requestBody
15498
+ * @returns string raw Hub response body (status code is passed through from the Hub)
15499
+ * @throws ApiError
15500
+ */
15501
+ static publishHubScript(data) {
15502
+ return request(OpenAPI, {
15503
+ method: "POST",
15504
+ url: "/w/{workspace}/hub/scripts",
15505
+ path: { workspace: data.workspace },
15506
+ query: { folder: data.folder },
15507
+ body: data.requestBody,
15508
+ mediaType: "application/json"
15509
+ });
15510
+ }
15511
+ /**
15512
+ * publish a flow to a hub project
15513
+ * Requires the caller to be a workspace admin. Forwards the request to the
15514
+ * configured Hub scoped to the `{workspace}:{folder}` source and returns
15515
+ * the Hub's status code and raw response body.
15516
+ *
15517
+ * @param data The data for the request.
15518
+ * @param data.workspace
15519
+ * @param data.folder workspace folder scoping the Hub publication: a workspace can publish
15520
+ * one Hub project per folder and the Hub-side source key is
15521
+ * `{workspace}:{folder}`
15522
+ *
15523
+ * @param data.requestBody
15524
+ * @returns string raw Hub response body (status code is passed through from the Hub)
15525
+ * @throws ApiError
15526
+ */
15527
+ static publishHubFlow(data) {
15528
+ return request(OpenAPI, {
15529
+ method: "POST",
15530
+ url: "/w/{workspace}/hub/flows",
15531
+ path: { workspace: data.workspace },
15532
+ query: { folder: data.folder },
15533
+ body: data.requestBody,
15534
+ mediaType: "application/json"
15535
+ });
15536
+ }
15537
+ /**
15538
+ * publish an app to a hub project
15539
+ * Requires the caller to be a workspace admin. Forwards the request to the
15540
+ * configured Hub scoped to the `{workspace}:{folder}` source and returns
15541
+ * the Hub's status code and raw response body.
15542
+ *
15543
+ * @param data The data for the request.
15544
+ * @param data.workspace
15545
+ * @param data.folder workspace folder scoping the Hub publication: a workspace can publish
15546
+ * one Hub project per folder and the Hub-side source key is
15547
+ * `{workspace}:{folder}`
15548
+ *
15549
+ * @param data.requestBody
15550
+ * @returns string raw Hub response body (status code is passed through from the Hub)
15551
+ * @throws ApiError
15552
+ */
15553
+ static publishHubApp(data) {
15554
+ return request(OpenAPI, {
15555
+ method: "POST",
15556
+ url: "/w/{workspace}/hub/apps",
15557
+ path: { workspace: data.workspace },
15558
+ query: { folder: data.folder },
15559
+ body: data.requestBody,
15560
+ mediaType: "application/json"
15561
+ });
15562
+ }
15563
+ /**
15564
+ * publish a raw app to a hub project
15565
+ * Requires the caller to be a workspace admin. Forwards the request to the
15566
+ * configured Hub scoped to the `{workspace}:{folder}` source and returns
15567
+ * the Hub's status code and raw response body.
15568
+ *
15569
+ * @param data The data for the request.
15570
+ * @param data.workspace
15571
+ * @param data.folder workspace folder scoping the Hub publication: a workspace can publish
15572
+ * one Hub project per folder and the Hub-side source key is
15573
+ * `{workspace}:{folder}`
15574
+ *
15575
+ * @param data.requestBody
15576
+ * @returns string raw Hub response body (status code is passed through from the Hub)
15577
+ * @throws ApiError
15578
+ */
15579
+ static publishHubRawApp(data) {
15580
+ return request(OpenAPI, {
15581
+ method: "POST",
15582
+ url: "/w/{workspace}/hub/raw_apps",
15583
+ path: { workspace: data.workspace },
15584
+ query: { folder: data.folder },
15585
+ body: data.requestBody,
15586
+ mediaType: "application/json"
15587
+ });
15588
+ }
15589
+ /**
15590
+ * set or clear the embed url of a hub raw app
15591
+ * Requires the caller to be a workspace admin. Forwards the request to the
15592
+ * configured Hub scoped to the `{workspace}:{folder}` source and returns
15593
+ * the Hub's status code and raw response body.
15594
+ *
15595
+ * @param data The data for the request.
15596
+ * @param data.workspace
15597
+ * @param data.id hub id of the raw app
15598
+ * @param data.folder workspace folder scoping the Hub publication: a workspace can publish
15599
+ * one Hub project per folder and the Hub-side source key is
15600
+ * `{workspace}:{folder}`
15601
+ *
15602
+ * @param data.requestBody
15603
+ * @returns string raw Hub response body (status code is passed through from the Hub)
15604
+ * @throws ApiError
15605
+ */
15606
+ static publishHubRawAppEmbed(data) {
15607
+ return request(OpenAPI, {
15608
+ method: "POST",
15609
+ url: "/w/{workspace}/hub/raw_apps/{id}/embed",
15610
+ path: {
15611
+ workspace: data.workspace,
15612
+ id: data.id
15613
+ },
15614
+ query: { folder: data.folder },
15615
+ body: data.requestBody,
15616
+ mediaType: "application/json"
15617
+ });
15618
+ }
15619
+ /**
15620
+ * attach a recording to a hub script
15621
+ * Requires the caller to be a workspace admin. Forwards the request to the
15622
+ * configured Hub scoped to the `{workspace}:{folder}` source and returns
15623
+ * the Hub's status code and raw response body.
15624
+ *
15625
+ * @param data The data for the request.
15626
+ * @param data.workspace
15627
+ * @param data.askId hub ask id of the script
15628
+ * @param data.folder workspace folder scoping the Hub publication: a workspace can publish
15629
+ * one Hub project per folder and the Hub-side source key is
15630
+ * `{workspace}:{folder}`
15631
+ *
15632
+ * @param data.requestBody
15633
+ * @returns string raw Hub response body (status code is passed through from the Hub)
15634
+ * @throws ApiError
15635
+ */
15636
+ static publishHubScriptRecording(data) {
15637
+ return request(OpenAPI, {
15638
+ method: "POST",
15639
+ url: "/w/{workspace}/hub/scripts/{ask_id}/recording",
15640
+ path: {
15641
+ workspace: data.workspace,
15642
+ ask_id: data.askId
15643
+ },
15644
+ query: { folder: data.folder },
15645
+ body: data.requestBody,
15646
+ mediaType: "application/json"
15647
+ });
15648
+ }
15649
+ /**
15650
+ * attach a recording to a hub flow
15651
+ * Requires the caller to be a workspace admin. Forwards the request to the
15652
+ * configured Hub scoped to the `{workspace}:{folder}` source and returns
15653
+ * the Hub's status code and raw response body.
15654
+ *
15655
+ * @param data The data for the request.
15656
+ * @param data.workspace
15657
+ * @param data.flowId hub id of the flow
15658
+ * @param data.folder workspace folder scoping the Hub publication: a workspace can publish
15659
+ * one Hub project per folder and the Hub-side source key is
15660
+ * `{workspace}:{folder}`
15661
+ *
15662
+ * @param data.requestBody
15663
+ * @returns string raw Hub response body (status code is passed through from the Hub)
15664
+ * @throws ApiError
15665
+ */
15666
+ static publishHubFlowRecording(data) {
15667
+ return request(OpenAPI, {
15668
+ method: "POST",
15669
+ url: "/w/{workspace}/hub/flows/{flow_id}/recording",
15670
+ path: {
15671
+ workspace: data.workspace,
15672
+ flow_id: data.flowId
15673
+ },
15674
+ query: { folder: data.folder },
15675
+ body: data.requestBody,
15676
+ mediaType: "application/json"
15677
+ });
15678
+ }
15679
+ /**
15680
+ * attach a data-pipeline recording to a hub project
15681
+ * Requires the caller to be a workspace admin. A data-pipeline recording is
15682
+ * scoped to the whole project (a folder cascade), not a single item. Forwards
15683
+ * the request to the configured Hub scoped to the `{workspace}:{folder}`
15684
+ * source and returns the Hub's status code and raw response body.
15685
+ *
15686
+ * @param data The data for the request.
15687
+ * @param data.workspace
15688
+ * @param data.slug hub project slug
15689
+ * @param data.folder workspace folder scoping the Hub publication: a workspace can publish
15690
+ * one Hub project per folder and the Hub-side source key is
15691
+ * `{workspace}:{folder}`
15692
+ *
15693
+ * @param data.requestBody
15694
+ * @returns string raw Hub response body (status code is passed through from the Hub)
15695
+ * @throws ApiError
15696
+ */
15697
+ static publishHubPipelineRecording(data) {
15698
+ return request(OpenAPI, {
15699
+ method: "POST",
15700
+ url: "/w/{workspace}/hub/projects/{slug}/pipeline_recording",
15701
+ path: {
15702
+ workspace: data.workspace,
15703
+ slug: data.slug
15704
+ },
15705
+ query: { folder: data.folder },
15706
+ body: data.requestBody,
15707
+ mediaType: "application/json"
15708
+ });
15709
+ }
15710
+ /**
15711
+ * publish a resource type to a hub project
15712
+ * Requires the caller to be a workspace admin. Forwards the request to the
15713
+ * configured Hub scoped to the `{workspace}:{folder}` source and returns
15714
+ * the Hub's status code and raw response body.
15715
+ *
15716
+ * @param data The data for the request.
15717
+ * @param data.workspace
15718
+ * @param data.folder workspace folder scoping the Hub publication: a workspace can publish
15719
+ * one Hub project per folder and the Hub-side source key is
15720
+ * `{workspace}:{folder}`
15721
+ *
15722
+ * @param data.requestBody
15723
+ * @returns string raw Hub response body (status code is passed through from the Hub)
15724
+ * @throws ApiError
15725
+ */
15726
+ static publishHubResourceType(data) {
15727
+ return request(OpenAPI, {
15728
+ method: "POST",
15729
+ url: "/w/{workspace}/hub/resource_types",
15730
+ path: { workspace: data.workspace },
15731
+ query: { folder: data.folder },
15732
+ body: data.requestBody,
15733
+ mediaType: "application/json"
15734
+ });
15735
+ }
15736
+ /**
15737
+ * publish resource placeholders to a hub project
15738
+ * Requires the caller to be a workspace admin. Forwards the request to the
15739
+ * configured Hub scoped to the `{workspace}:{folder}` source and returns
15740
+ * the Hub's status code and raw response body.
15741
+ *
15742
+ * @param data The data for the request.
15743
+ * @param data.workspace
15744
+ * @param data.folder workspace folder scoping the Hub publication: a workspace can publish
15745
+ * one Hub project per folder and the Hub-side source key is
15746
+ * `{workspace}:{folder}`
15747
+ *
15748
+ * @param data.requestBody
15749
+ * @returns string raw Hub response body (status code is passed through from the Hub)
15750
+ * @throws ApiError
15751
+ */
15752
+ static publishHubResources(data) {
15753
+ return request(OpenAPI, {
15754
+ method: "POST",
15755
+ url: "/w/{workspace}/hub/resources",
15756
+ path: { workspace: data.workspace },
15757
+ query: { folder: data.folder },
15758
+ body: data.requestBody,
15759
+ mediaType: "application/json"
15760
+ });
15761
+ }
15762
+ /**
15763
+ * publish triggers to a hub project
15764
+ * Requires the caller to be a workspace admin. Forwards the request to the
15765
+ * configured Hub scoped to the `{workspace}:{folder}` source and returns
15766
+ * the Hub's status code and raw response body.
15767
+ *
15768
+ * @param data The data for the request.
15769
+ * @param data.workspace
15770
+ * @param data.folder workspace folder scoping the Hub publication: a workspace can publish
15771
+ * one Hub project per folder and the Hub-side source key is
15772
+ * `{workspace}:{folder}`
15773
+ *
15774
+ * @param data.requestBody
15775
+ * @returns string raw Hub response body (status code is passed through from the Hub)
15776
+ * @throws ApiError
15777
+ */
15778
+ static publishHubTriggers(data) {
15779
+ return request(OpenAPI, {
15780
+ method: "POST",
15781
+ url: "/w/{workspace}/hub/triggers",
15782
+ path: { workspace: data.workspace },
15783
+ query: { folder: data.folder },
15784
+ body: data.requestBody,
15785
+ mediaType: "application/json"
15786
+ });
15787
+ }
15788
+ /**
15789
+ * publish data table migrations to a hub project
15790
+ * Requires the caller to be a workspace admin. Forwards the request to the
15791
+ * configured Hub scoped to the `{workspace}:{folder}` source and returns
15792
+ * the Hub's status code and raw response body.
15793
+ *
15794
+ * @param data The data for the request.
15795
+ * @param data.workspace
15796
+ * @param data.folder workspace folder scoping the Hub publication: a workspace can publish
15797
+ * one Hub project per folder and the Hub-side source key is
15798
+ * `{workspace}:{folder}`
15799
+ *
15800
+ * @param data.requestBody
15801
+ * @returns string raw Hub response body (status code is passed through from the Hub)
15802
+ * @throws ApiError
15803
+ */
15804
+ static publishHubMigrations(data) {
15805
+ return request(OpenAPI, {
15806
+ method: "POST",
15807
+ url: "/w/{workspace}/hub/migrations",
15808
+ path: { workspace: data.workspace },
15809
+ query: { folder: data.folder },
15810
+ body: data.requestBody,
15811
+ mediaType: "application/json"
15812
+ });
15813
+ }
15814
+ /**
15815
+ * export a hub project
15816
+ * Requires the caller to be a workspace admin. Forwards the request to the
15817
+ * configured Hub and returns the Hub's status code and raw response body.
15818
+ * The folder scope is only needed to re-export the caller's own draft;
15819
+ * approved projects are public, so it is optional here.
15820
+ *
15821
+ * @param data The data for the request.
15822
+ * @param data.workspace
15823
+ * @param data.slug hub project slug (3-50 chars, lowercase alphanumeric and hyphens, no leading/trailing hyphen)
15824
+ * @param data.folder folder scoping the Hub project source (`{workspace}:{folder}`)
15825
+ * @returns string raw Hub response body (status code is passed through from the Hub)
15826
+ * @throws ApiError
15827
+ */
15828
+ static getHubProjectExport(data) {
15829
+ return request(OpenAPI, {
15830
+ method: "GET",
15831
+ url: "/w/{workspace}/hub/projects/{slug}/export",
15832
+ path: {
15833
+ workspace: data.workspace,
15834
+ slug: data.slug
15835
+ },
15836
+ query: { folder: data.folder }
15837
+ });
15838
+ }
15839
+ /**
15840
+ * submit a hub project draft for review
15841
+ * Requires the caller to be a workspace admin. Forwards the request to the
15842
+ * configured Hub scoped to the `{workspace}:{folder}` source and returns
15843
+ * the Hub's status code and raw response body.
15844
+ *
15845
+ * @param data The data for the request.
15846
+ * @param data.workspace
15847
+ * @param data.slug hub project slug (3-50 chars, lowercase alphanumeric and hyphens, no leading/trailing hyphen)
15848
+ * @param data.folder workspace folder scoping the Hub publication: a workspace can publish
15849
+ * one Hub project per folder and the Hub-side source key is
15850
+ * `{workspace}:{folder}`
15851
+ *
15852
+ * @returns string raw Hub response body (status code is passed through from the Hub)
15853
+ * @throws ApiError
15854
+ */
15855
+ static submitHubProject(data) {
15856
+ return request(OpenAPI, {
15857
+ method: "POST",
15858
+ url: "/w/{workspace}/hub/projects/{slug}/submit",
15859
+ path: {
15860
+ workspace: data.workspace,
15861
+ slug: data.slug
15862
+ },
15863
+ query: { folder: data.folder }
15864
+ });
15865
+ }
15866
+ /**
15867
+ * get the hub project linked to a workspace folder
15868
+ * Requires the caller to be a workspace admin. Forwards the request to the
15869
+ * configured Hub scoped to the `{workspace}:{folder}` source and returns
15870
+ * the Hub's status code and raw response body.
15871
+ *
15872
+ * @param data The data for the request.
15873
+ * @param data.workspace
15874
+ * @param data.folder workspace folder scoping the Hub publication: a workspace can publish
15875
+ * one Hub project per folder and the Hub-side source key is
15876
+ * `{workspace}:{folder}`
15877
+ *
15878
+ * @returns string raw Hub response body (status code is passed through from the Hub)
15879
+ * @throws ApiError
15880
+ */
15881
+ static getHubProjectBySource(data) {
15882
+ return request(OpenAPI, {
15883
+ method: "GET",
15884
+ url: "/w/{workspace}/hub/project",
15885
+ path: { workspace: data.workspace },
15886
+ query: { folder: data.folder }
15887
+ });
15888
+ }
15889
+ };
15458
15890
 
15459
15891
  //#endregion
15460
- export { AdminService, AgentWorkersService, AmqpTriggerService, AppService, AssetService, AuditService, AzureTriggerService, CaptureService, ConcurrencyGroupsService, ConfigService, DataMetricService, DocumentationService, DraftService, EmailTriggerService, FavoriteService, FlowConversationsService, FlowService, FolderService, GcpTriggerService, GitSyncService, GranularAclService, GroupService, HealthService, HelpersService, HttpTriggerService, IndexSearchService, InputService, IntegrationService, JobService, KafkaTriggerService, McpOauthService, McpService, MetricsService, MqttTriggerService, NativeTriggerService, NatsTriggerService, NpmProxyService, OauthService, OidcService, OpenapiService, PathAutocompleteService, PostgresTriggerService, RawAppService, ResourceService, ScheduleService, ScriptService, ServiceLogsService, SettingService, SettingsService, SqsTriggerService, TeamsService, TokenService, TriggerService, UserService, VariableService, VolumeService, WebsocketTriggerService, WorkerService, WorkspaceDependenciesService, WorkspaceIntegrationService, WorkspaceService };
15892
+ export { AdminService, AgentWorkersService, AmqpTriggerService, AppService, AssetService, AuditService, AzureTriggerService, CaptureService, ConcurrencyGroupsService, ConfigService, DataMetricService, DocumentationService, DraftService, EmailTriggerService, FavoriteService, FlowConversationsService, FlowService, FolderService, GcpTriggerService, GitSyncService, GranularAclService, GroupService, HealthService, HelpersService, HttpTriggerService, HubPublishService, IndexSearchService, InputService, IntegrationService, JobService, KafkaTriggerService, McpOauthService, McpService, MetricsService, MqttTriggerService, NativeTriggerService, NatsTriggerService, NpmProxyService, OauthService, OidcService, OpenapiService, PathAutocompleteService, PostgresTriggerService, RawAppService, ResourceService, ScheduleService, ScriptService, ServiceLogsService, SettingService, SettingsService, SqsTriggerService, TeamsService, TokenService, TriggerService, UserService, VariableService, VolumeService, WebsocketTriggerService, WorkerService, WorkspaceDependenciesService, WorkspaceIntegrationService, WorkspaceService };