windmill-cli 1.592.1 → 1.593.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.
@@ -22,7 +22,7 @@ import { pull as hubPull } from "./commands/hub/hub.js";
22
22
  import { pull, push } from "./commands/sync/sync.js";
23
23
  import { add as workspaceAdd } from "./commands/workspace/workspace.js";
24
24
  export { flow, app, script, workspace, resource, resourceType, user, variable, hub, folder, schedule, trigger, sync, gitsyncSettings, instance, dev, hubPull, pull, push, workspaceAdd, };
25
- export declare const VERSION = "1.592.1";
25
+ export declare const VERSION = "1.593.1";
26
26
  export declare const WM_FORK_PREFIX = "wm-fork";
27
27
  declare const command: Command<{
28
28
  workspace?: (import("../deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/mod.js").StringType & string) | undefined;
@@ -2894,6 +2894,100 @@ export type OperatorSettings = {
2894
2894
  */
2895
2895
  workers: boolean;
2896
2896
  } | null;
2897
+ export type WorkspaceComparison = {
2898
+ /**
2899
+ * All items with changes ahead are visible by the user of the request.
2900
+ */
2901
+ all_ahead_items_visible: boolean;
2902
+ /**
2903
+ * All items with changes behind are visible by the user of the request.
2904
+ */
2905
+ all_behind_items_visible: boolean;
2906
+ /**
2907
+ * Whether the comparison was skipped. This happens with old forks that where not being kept track of
2908
+ */
2909
+ skipped_comparison: boolean;
2910
+ /**
2911
+ * List of differences found between workspaces
2912
+ */
2913
+ diffs: Array<WorkspaceItemDiff>;
2914
+ /**
2915
+ * Summary statistics of the comparison
2916
+ */
2917
+ summary: CompareSummary;
2918
+ };
2919
+ export type WorkspaceItemDiff = {
2920
+ /**
2921
+ * Type of the item
2922
+ */
2923
+ kind: 'script' | 'flow' | 'app' | 'resource' | 'variable';
2924
+ /**
2925
+ * Path of the item in the workspace
2926
+ */
2927
+ path: string;
2928
+ /**
2929
+ * Number of versions source is ahead of target
2930
+ */
2931
+ ahead: number;
2932
+ /**
2933
+ * Number of versions source is behind target
2934
+ */
2935
+ behind: number;
2936
+ /**
2937
+ * Whether the item has any differences
2938
+ */
2939
+ has_changes: boolean;
2940
+ /**
2941
+ * If the item exists in the source workspace
2942
+ */
2943
+ exists_in_source: boolean;
2944
+ /**
2945
+ * If the item exists in the fork workspace
2946
+ */
2947
+ exists_in_fork: boolean;
2948
+ };
2949
+ /**
2950
+ * Type of the item
2951
+ */
2952
+ export type kind3 = 'script' | 'flow' | 'app' | 'resource' | 'variable';
2953
+ export type CompareSummary = {
2954
+ /**
2955
+ * Total number of items with differences
2956
+ */
2957
+ total_diffs: number;
2958
+ /**
2959
+ * Total number of ahead changes
2960
+ */
2961
+ total_ahead: number;
2962
+ /**
2963
+ * Total number of behind changes
2964
+ */
2965
+ total_behind: number;
2966
+ /**
2967
+ * Number of scripts with differences
2968
+ */
2969
+ scripts_changed: number;
2970
+ /**
2971
+ * Number of flows with differences
2972
+ */
2973
+ flows_changed: number;
2974
+ /**
2975
+ * Number of apps with differences
2976
+ */
2977
+ apps_changed: number;
2978
+ /**
2979
+ * Number of resources with differences
2980
+ */
2981
+ resources_changed: number;
2982
+ /**
2983
+ * Number of variables with differences
2984
+ */
2985
+ variables_changed: number;
2986
+ /**
2987
+ * Number of items that are both ahead and behind (conflicts)
2988
+ */
2989
+ conflicts: number;
2990
+ };
2897
2991
  export type TeamInfo = {
2898
2992
  /**
2899
2993
  * The unique identifier of the Microsoft Teams team
@@ -2942,6 +3036,10 @@ export type GithubInstallations = Array<{
2942
3036
  * Number of repositories loaded per page
2943
3037
  */
2944
3038
  per_page: number;
3039
+ /**
3040
+ * Error message if token retrieval failed
3041
+ */
3042
+ error?: string;
2945
3043
  }>;
2946
3044
  export type WorkspaceGithubInstallation = {
2947
3045
  account_id: string;
@@ -3764,6 +3862,22 @@ export type UpdateOperatorSettingsData = {
3764
3862
  workspace: string;
3765
3863
  };
3766
3864
  export type UpdateOperatorSettingsResponse = (string);
3865
+ export type CompareWorkspacesData = {
3866
+ /**
3867
+ * The ID of the workspace to compare with
3868
+ */
3869
+ targetWorkspaceId: string;
3870
+ workspace: string;
3871
+ };
3872
+ export type CompareWorkspacesResponse = (WorkspaceComparison);
3873
+ export type ResetDiffTallyData = {
3874
+ /**
3875
+ * The ID of the workspace to compare with
3876
+ */
3877
+ forkWorkspaceId: string;
3878
+ workspace: string;
3879
+ };
3880
+ export type ResetDiffTallyResponse = (unknown);
3767
3881
  export type ExistsEmailData = {
3768
3882
  email: string;
3769
3883
  };
@@ -8727,6 +8841,25 @@ export type RemoveUserToGroupData = {
8727
8841
  workspace: string;
8728
8842
  };
8729
8843
  export type RemoveUserToGroupResponse = (string);
8844
+ export type GetGroupPermissionHistoryData = {
8845
+ name: string;
8846
+ /**
8847
+ * which page to return (start at 1, default 1)
8848
+ */
8849
+ page?: number;
8850
+ /**
8851
+ * number of items to return for a given page (default 30, max 100)
8852
+ */
8853
+ perPage?: number;
8854
+ workspace: string;
8855
+ };
8856
+ export type GetGroupPermissionHistoryResponse = (Array<{
8857
+ id?: number;
8858
+ changed_by?: string;
8859
+ changed_at?: string;
8860
+ change_type?: string;
8861
+ member_affected?: (string) | null;
8862
+ }>);
8730
8863
  export type ListFoldersData = {
8731
8864
  /**
8732
8865
  * which page to return (start at 1, default 1)
@@ -8827,6 +8960,25 @@ export type RemoveOwnerToFolderData = {
8827
8960
  workspace: string;
8828
8961
  };
8829
8962
  export type RemoveOwnerToFolderResponse = (string);
8963
+ export type GetFolderPermissionHistoryData = {
8964
+ name: string;
8965
+ /**
8966
+ * which page to return (start at 1, default 1)
8967
+ */
8968
+ page?: number;
8969
+ /**
8970
+ * number of items to return for a given page (default 30, max 100)
8971
+ */
8972
+ perPage?: number;
8973
+ workspace: string;
8974
+ };
8975
+ export type GetFolderPermissionHistoryResponse = (Array<{
8976
+ id?: number;
8977
+ changed_by?: string;
8978
+ changed_at?: string;
8979
+ change_type?: string;
8980
+ affected?: (string) | null;
8981
+ }>);
8830
8982
  export type ListWorkersData = {
8831
8983
  /**
8832
8984
  * which page to return (start at 1, default 1)