windmill-client 1.593.0 → 1.594.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.
@@ -39,7 +39,7 @@ exports.OpenAPI = {
39
39
  PASSWORD: undefined,
40
40
  TOKEN: getEnv("WM_TOKEN"),
41
41
  USERNAME: undefined,
42
- VERSION: '1.593.0',
42
+ VERSION: '1.594.0',
43
43
  WITH_CREDENTIALS: true,
44
44
  interceptors: {
45
45
  request: new Interceptors(),
@@ -844,7 +844,8 @@ export declare class WorkspaceService {
844
844
  * list available teams ids
845
845
  * @param data The data for the request.
846
846
  * @param data.workspace
847
- * @param data.search Search teams by name
847
+ * @param data.search Search teams by name. If omitted, returns first page of all teams.
848
+ * @param data.nextLink Pagination cursor URL from previous response. Pass this to fetch the next page of results.
848
849
  * @returns unknown status
849
850
  * @throws ApiError
850
851
  */
@@ -854,7 +855,6 @@ export declare class WorkspaceService {
854
855
  * @param data The data for the request.
855
856
  * @param data.workspace
856
857
  * @param data.teamId Microsoft Teams team ID
857
- * @param data.search Search channels by name
858
858
  * @returns unknown List of channels for the specified team
859
859
  * @throws ApiError
860
860
  */
@@ -3061,9 +3061,7 @@ export declare class JobService {
3061
3061
  * @param data The data for the request.
3062
3062
  * @param data.workspace
3063
3063
  * @param data.id
3064
- * @param data.stepId step id to restart the flow from
3065
- * @param data.branchOrIterationN for branchall or loop, the iteration at which the flow should restart
3066
- * @param data.requestBody flow args
3064
+ * @param data.requestBody restart flow parameters
3067
3065
  * @param data.scheduledFor when to schedule this job (leave empty for immediate run)
3068
3066
  * @param data.scheduledInSecs schedule the script to execute in the number of seconds starting now
3069
3067
  * @param data.parentJob The parent job that is at the origin and responsible for the execution of this script if any
@@ -1677,7 +1677,8 @@ class WorkspaceService {
1677
1677
  * list available teams ids
1678
1678
  * @param data The data for the request.
1679
1679
  * @param data.workspace
1680
- * @param data.search Search teams by name
1680
+ * @param data.search Search teams by name. If omitted, returns first page of all teams.
1681
+ * @param data.nextLink Pagination cursor URL from previous response. Pass this to fetch the next page of results.
1681
1682
  * @returns unknown status
1682
1683
  * @throws ApiError
1683
1684
  */
@@ -1689,7 +1690,8 @@ class WorkspaceService {
1689
1690
  workspace: data.workspace
1690
1691
  },
1691
1692
  query: {
1692
- search: data.search
1693
+ search: data.search,
1694
+ next_link: data.nextLink
1693
1695
  }
1694
1696
  });
1695
1697
  }
@@ -1698,7 +1700,6 @@ class WorkspaceService {
1698
1700
  * @param data The data for the request.
1699
1701
  * @param data.workspace
1700
1702
  * @param data.teamId Microsoft Teams team ID
1701
- * @param data.search Search channels by name
1702
1703
  * @returns unknown List of channels for the specified team
1703
1704
  * @throws ApiError
1704
1705
  */
@@ -1710,8 +1711,7 @@ class WorkspaceService {
1710
1711
  workspace: data.workspace
1711
1712
  },
1712
1713
  query: {
1713
- team_id: data.teamId,
1714
- search: data.search
1714
+ team_id: data.teamId
1715
1715
  }
1716
1716
  });
1717
1717
  }
@@ -6121,9 +6121,7 @@ class JobService {
6121
6121
  * @param data The data for the request.
6122
6122
  * @param data.workspace
6123
6123
  * @param data.id
6124
- * @param data.stepId step id to restart the flow from
6125
- * @param data.branchOrIterationN for branchall or loop, the iteration at which the flow should restart
6126
- * @param data.requestBody flow args
6124
+ * @param data.requestBody restart flow parameters
6127
6125
  * @param data.scheduledFor when to schedule this job (leave empty for immediate run)
6128
6126
  * @param data.scheduledInSecs schedule the script to execute in the number of seconds starting now
6129
6127
  * @param data.parentJob The parent job that is at the origin and responsible for the execution of this script if any
@@ -6139,12 +6137,10 @@ class JobService {
6139
6137
  static restartFlowAtStep(data) {
6140
6138
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
6141
6139
  method: 'POST',
6142
- url: '/w/{workspace}/jobs/restart/f/{id}/from/{step_id}/{branch_or_iteration_n}',
6140
+ url: '/w/{workspace}/jobs/restart/f/{id}',
6143
6141
  path: {
6144
6142
  workspace: data.workspace,
6145
- id: data.id,
6146
- step_id: data.stepId,
6147
- branch_or_iteration_n: data.branchOrIterationN
6143
+ id: data.id
6148
6144
  },
6149
6145
  query: {
6150
6146
  scheduled_for: data.scheduledFor,
@@ -2468,6 +2468,7 @@ export type RestartedFrom = {
2468
2468
  flow_job_id?: string;
2469
2469
  step_id?: string;
2470
2470
  branch_or_iteration_n?: number;
2471
+ flow_version?: number;
2471
2472
  };
2472
2473
  export type Policy = {
2473
2474
  triggerables?: {
@@ -3949,30 +3950,47 @@ export type EditTeamsCommandData = {
3949
3950
  export type EditTeamsCommandResponse = string;
3950
3951
  export type ListAvailableTeamsIdsData = {
3951
3952
  /**
3952
- * Search teams by name
3953
+ * Pagination cursor URL from previous response. Pass this to fetch the next page of results.
3954
+ */
3955
+ nextLink?: string;
3956
+ /**
3957
+ * Search teams by name. If omitted, returns first page of all teams.
3953
3958
  */
3954
3959
  search?: string;
3955
3960
  workspace: string;
3956
3961
  };
3957
- export type ListAvailableTeamsIdsResponse = Array<{
3958
- team_name?: string;
3959
- team_id?: string;
3960
- }>;
3961
- export type ListAvailableTeamsChannelsData = {
3962
+ export type ListAvailableTeamsIdsResponse = {
3963
+ teams?: Array<{
3964
+ team_name?: string;
3965
+ team_id?: string;
3966
+ }>;
3962
3967
  /**
3963
- * Search channels by name
3968
+ * Total number of teams across all pages
3964
3969
  */
3965
- search?: string;
3970
+ total_count?: number;
3971
+ /**
3972
+ * Number of teams per page (configurable via TEAMS_PER_PAGE env var)
3973
+ */
3974
+ per_page?: number;
3975
+ /**
3976
+ * URL to fetch next page of results. Null if no more pages.
3977
+ */
3978
+ next_link?: string | null;
3979
+ };
3980
+ export type ListAvailableTeamsChannelsData = {
3966
3981
  /**
3967
3982
  * Microsoft Teams team ID
3968
3983
  */
3969
3984
  teamId: string;
3970
3985
  workspace: string;
3971
3986
  };
3972
- export type ListAvailableTeamsChannelsResponse = Array<{
3973
- channel_name?: string;
3974
- channel_id?: string;
3975
- }>;
3987
+ export type ListAvailableTeamsChannelsResponse = {
3988
+ channels?: Array<{
3989
+ channel_name?: string;
3990
+ channel_id?: string;
3991
+ }>;
3992
+ total_count?: number;
3993
+ };
3976
3994
  export type ConnectTeamsData = {
3977
3995
  /**
3978
3996
  * connect teams
@@ -6518,10 +6536,6 @@ export type BatchReRunJobsData = {
6518
6536
  };
6519
6537
  export type BatchReRunJobsResponse = string;
6520
6538
  export type RestartFlowAtStepData = {
6521
- /**
6522
- * for branchall or loop, the iteration at which the flow should restart
6523
- */
6524
- branchOrIterationN: number;
6525
6539
  id: string;
6526
6540
  /**
6527
6541
  * List of headers's keys (separated with ',') whove value are added to the args
@@ -6542,9 +6556,22 @@ export type RestartFlowAtStepData = {
6542
6556
  */
6543
6557
  parentJob?: string;
6544
6558
  /**
6545
- * flow args
6559
+ * restart flow parameters
6546
6560
  */
6547
- requestBody: ScriptArgs;
6561
+ requestBody: {
6562
+ /**
6563
+ * step id to restart the flow from
6564
+ */
6565
+ step_id: string;
6566
+ /**
6567
+ * for branchall or loop, the iteration at which the flow should restart (optional)
6568
+ */
6569
+ branch_or_iteration_n?: number;
6570
+ /**
6571
+ * specific flow version to use for restart (optional, uses current version if not specified)
6572
+ */
6573
+ flow_version?: number;
6574
+ };
6548
6575
  /**
6549
6576
  * when to schedule this job (leave empty for immediate run)
6550
6577
  */
@@ -6553,10 +6580,6 @@ export type RestartFlowAtStepData = {
6553
6580
  * schedule the script to execute in the number of seconds starting now
6554
6581
  */
6555
6582
  scheduledInSecs?: number;
6556
- /**
6557
- * step id to restart the flow from
6558
- */
6559
- stepId: string;
6560
6583
  /**
6561
6584
  * Override the tag to use
6562
6585
  */
@@ -11371,7 +11394,11 @@ export type $OpenApiTs = {
11371
11394
  get: {
11372
11395
  req: {
11373
11396
  /**
11374
- * Search teams by name
11397
+ * Pagination cursor URL from previous response. Pass this to fetch the next page of results.
11398
+ */
11399
+ nextLink?: string;
11400
+ /**
11401
+ * Search teams by name. If omitted, returns first page of all teams.
11375
11402
  */
11376
11403
  search?: string;
11377
11404
  workspace: string;
@@ -11380,20 +11407,30 @@ export type $OpenApiTs = {
11380
11407
  /**
11381
11408
  * status
11382
11409
  */
11383
- 200: Array<{
11384
- team_name?: string;
11385
- team_id?: string;
11386
- }>;
11410
+ 200: {
11411
+ teams?: Array<{
11412
+ team_name?: string;
11413
+ team_id?: string;
11414
+ }>;
11415
+ /**
11416
+ * Total number of teams across all pages
11417
+ */
11418
+ total_count?: number;
11419
+ /**
11420
+ * Number of teams per page (configurable via TEAMS_PER_PAGE env var)
11421
+ */
11422
+ per_page?: number;
11423
+ /**
11424
+ * URL to fetch next page of results. Null if no more pages.
11425
+ */
11426
+ next_link?: string | null;
11427
+ };
11387
11428
  };
11388
11429
  };
11389
11430
  };
11390
11431
  '/w/{workspace}/workspaces/available_teams_channels': {
11391
11432
  get: {
11392
11433
  req: {
11393
- /**
11394
- * Search channels by name
11395
- */
11396
- search?: string;
11397
11434
  /**
11398
11435
  * Microsoft Teams team ID
11399
11436
  */
@@ -11404,10 +11441,13 @@ export type $OpenApiTs = {
11404
11441
  /**
11405
11442
  * List of channels for the specified team
11406
11443
  */
11407
- 200: Array<{
11408
- channel_name?: string;
11409
- channel_id?: string;
11410
- }>;
11444
+ 200: {
11445
+ channels?: Array<{
11446
+ channel_name?: string;
11447
+ channel_id?: string;
11448
+ }>;
11449
+ total_count?: number;
11450
+ };
11411
11451
  };
11412
11452
  };
11413
11453
  };
@@ -15863,13 +15903,9 @@ export type $OpenApiTs = {
15863
15903
  };
15864
15904
  };
15865
15905
  };
15866
- '/w/{workspace}/jobs/restart/f/{id}/from/{step_id}/{branch_or_iteration_n}': {
15906
+ '/w/{workspace}/jobs/restart/f/{id}': {
15867
15907
  post: {
15868
15908
  req: {
15869
- /**
15870
- * for branchall or loop, the iteration at which the flow should restart
15871
- */
15872
- branchOrIterationN: number;
15873
15909
  id: string;
15874
15910
  /**
15875
15911
  * List of headers's keys (separated with ',') whove value are added to the args
@@ -15890,9 +15926,22 @@ export type $OpenApiTs = {
15890
15926
  */
15891
15927
  parentJob?: string;
15892
15928
  /**
15893
- * flow args
15929
+ * restart flow parameters
15894
15930
  */
15895
- requestBody: ScriptArgs;
15931
+ requestBody: {
15932
+ /**
15933
+ * step id to restart the flow from
15934
+ */
15935
+ step_id: string;
15936
+ /**
15937
+ * for branchall or loop, the iteration at which the flow should restart (optional)
15938
+ */
15939
+ branch_or_iteration_n?: number;
15940
+ /**
15941
+ * specific flow version to use for restart (optional, uses current version if not specified)
15942
+ */
15943
+ flow_version?: number;
15944
+ };
15896
15945
  /**
15897
15946
  * when to schedule this job (leave empty for immediate run)
15898
15947
  */
@@ -15901,10 +15950,6 @@ export type $OpenApiTs = {
15901
15950
  * schedule the script to execute in the number of seconds starting now
15902
15951
  */
15903
15952
  scheduledInSecs?: number;
15904
- /**
15905
- * step id to restart the flow from
15906
- */
15907
- stepId: string;
15908
15953
  /**
15909
15954
  * Override the tag to use
15910
15955
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "windmill-client",
3
3
  "description": "Windmill SDK client for browsers and Node.js",
4
- "version": "1.593.0",
4
+ "version": "1.594.0",
5
5
  "author": "Ruben Fiszel",
6
6
  "license": "Apache 2.0",
7
7
  "devDependencies": {