windmill-client 0.1.0 → 0.2.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.
Files changed (100) hide show
  1. package/package.json +7 -2
  2. package/src/core/ApiError.d.ts +10 -0
  3. package/src/core/ApiRequestOptions.d.ts +13 -0
  4. package/src/core/ApiResult.d.ts +7 -0
  5. package/src/core/CancelablePromise.d.ts +26 -0
  6. package/src/core/OpenAPI.d.ts +16 -0
  7. package/src/core/request.d.ts +13 -0
  8. package/src/index.d.ts +95 -0
  9. package/src/models/AppWithLastVersion.d.ts +21 -0
  10. package/src/models/AppWithLastVersionWDraft.d.ts +5 -0
  11. package/src/models/AuditLog.d.ts +32 -0
  12. package/src/models/BranchAll.d.ts +10 -0
  13. package/src/models/BranchOne.d.ts +10 -0
  14. package/src/models/CompletedJob.d.ts +57 -0
  15. package/src/models/ContextualVariable.d.ts +5 -0
  16. package/src/models/CreateInput.d.ts +4 -0
  17. package/src/models/CreateResource.d.ts +6 -0
  18. package/src/models/CreateVariable.d.ts +8 -0
  19. package/src/models/CreateWorkspace.d.ts +5 -0
  20. package/src/models/EditResource.d.ts +5 -0
  21. package/src/models/EditResourceType.d.ts +4 -0
  22. package/src/models/EditSchedule.d.ts +6 -0
  23. package/src/models/EditVariable.d.ts +6 -0
  24. package/src/models/EditWorkspaceUser.d.ts +5 -0
  25. package/src/models/Flow.d.ts +3 -0
  26. package/src/models/FlowMetadata.d.ts +11 -0
  27. package/src/models/FlowModule.d.ts +18 -0
  28. package/src/models/FlowModuleValue.d.ts +8 -0
  29. package/src/models/FlowPreview.d.ts +7 -0
  30. package/src/models/FlowStatus.d.ts +12 -0
  31. package/src/models/FlowStatusModule.d.ts +34 -0
  32. package/src/models/FlowValue.d.ts +6 -0
  33. package/src/models/Folder.d.ts +5 -0
  34. package/src/models/ForloopFlow.d.ts +9 -0
  35. package/src/models/GlobalUserInfo.d.ts +14 -0
  36. package/src/models/Group.d.ts +6 -0
  37. package/src/models/Identity.d.ts +4 -0
  38. package/src/models/Input.d.ts +8 -0
  39. package/src/models/InputTransform.d.ts +3 -0
  40. package/src/models/JavascriptTransform.d.ts +4 -0
  41. package/src/models/Job.d.ts +11 -0
  42. package/src/models/ListableApp.d.ts +18 -0
  43. package/src/models/ListableResource.d.ts +14 -0
  44. package/src/models/ListableVariable.d.ts +14 -0
  45. package/src/models/Login.d.ts +4 -0
  46. package/src/models/MainArgSignature.d.ts +33 -0
  47. package/src/models/NewSchedule.d.ts +10 -0
  48. package/src/models/NewScript.d.ts +29 -0
  49. package/src/models/NewScriptWithDraft.d.ts +5 -0
  50. package/src/models/NewToken.d.ts +4 -0
  51. package/src/models/NewTokenImpersonate.d.ts +5 -0
  52. package/src/models/NewUser.d.ts +5 -0
  53. package/src/models/OpenFlow.d.ts +7 -0
  54. package/src/models/OpenFlowWPath.d.ts +4 -0
  55. package/src/models/PathFlow.d.ts +6 -0
  56. package/src/models/PathScript.d.ts +7 -0
  57. package/src/models/Policy.d.ts +13 -0
  58. package/src/models/Preview.d.ts +16 -0
  59. package/src/models/QueuedJob.d.ts +55 -0
  60. package/src/models/RawScript.d.ts +18 -0
  61. package/src/models/Resource.d.ts +9 -0
  62. package/src/models/ResourceType.d.ts +6 -0
  63. package/src/models/Retry.d.ts +11 -0
  64. package/src/models/RunnableType.d.ts +5 -0
  65. package/src/models/Schedule.d.ts +15 -0
  66. package/src/models/Script.d.ts +43 -0
  67. package/src/models/ScriptArgs.d.ts +1 -0
  68. package/src/models/SlackToken.d.ts +8 -0
  69. package/src/models/StaticTransform.d.ts +4 -0
  70. package/src/models/TokenResponse.d.ts +6 -0
  71. package/src/models/TruncatedToken.d.ts +7 -0
  72. package/src/models/UpdateInput.d.ts +5 -0
  73. package/src/models/Usage.d.ts +3 -0
  74. package/src/models/User.d.ts +14 -0
  75. package/src/models/UserWorkspaceList.d.ts +8 -0
  76. package/src/models/WorkerPing.d.ts +8 -0
  77. package/src/models/Workspace.d.ts +6 -0
  78. package/src/models/WorkspaceInvite.d.ts +6 -0
  79. package/src/services/AdminService.d.ts +39 -0
  80. package/src/services/AppService.d.ts +194 -0
  81. package/src/services/AuditService.d.ts +53 -0
  82. package/src/services/CaptureService.d.ts +30 -0
  83. package/src/services/DraftService.d.ts +16 -0
  84. package/src/services/FavoriteService.d.ts +27 -0
  85. package/src/services/FlowService.d.ts +186 -0
  86. package/src/services/FolderService.d.ts +128 -0
  87. package/src/services/GranularAclService.d.ts +46 -0
  88. package/src/services/GroupService.d.ts +110 -0
  89. package/src/services/InputService.d.ts +78 -0
  90. package/src/services/JobService.d.ts +636 -0
  91. package/src/services/OauthService.d.ts +95 -0
  92. package/src/services/ResourceService.d.ts +177 -0
  93. package/src/services/ScheduleService.d.ts +103 -0
  94. package/src/services/ScriptService.d.ts +303 -0
  95. package/src/services/SettingsService.d.ts +15 -0
  96. package/src/services/UserService.d.ts +284 -0
  97. package/src/services/VariableService.d.ts +83 -0
  98. package/src/services/WorkerService.d.ts +25 -0
  99. package/src/services/WorkspaceService.d.ts +227 -0
  100. package/tsconfig.json +111 -0
@@ -0,0 +1,194 @@
1
+ import type { AppWithLastVersion } from '../models/AppWithLastVersion';
2
+ import type { AppWithLastVersionWDraft } from '../models/AppWithLastVersionWDraft';
3
+ import type { ListableApp } from '../models/ListableApp';
4
+ import type { Policy } from '../models/Policy';
5
+ import type { CancelablePromise } from '../core/CancelablePromise';
6
+ export declare class AppService {
7
+ /**
8
+ * list all available hub apps
9
+ * @returns any hub apps list
10
+ * @throws ApiError
11
+ */
12
+ static listHubApps(): CancelablePromise<{
13
+ apps?: Array<{
14
+ id: number;
15
+ app_id: number;
16
+ summary: string;
17
+ apps: Array<string>;
18
+ approved: boolean;
19
+ votes: number;
20
+ }>;
21
+ }>;
22
+ /**
23
+ * get hub app by id
24
+ * @returns any app
25
+ * @throws ApiError
26
+ */
27
+ static getHubAppById({ id, }: {
28
+ id: number;
29
+ }): CancelablePromise<{
30
+ app: {
31
+ summary: string;
32
+ value: any;
33
+ };
34
+ }>;
35
+ /**
36
+ * list all available apps
37
+ * @returns ListableApp All available apps
38
+ * @throws ApiError
39
+ */
40
+ static listApps({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, starredOnly, }: {
41
+ workspace: string;
42
+ /**
43
+ * which page to return (start at 1, default 1)
44
+ */
45
+ page?: number;
46
+ /**
47
+ * number of items to return for a given page (default 30, max 100)
48
+ */
49
+ perPage?: number;
50
+ /**
51
+ * order by desc order (default true)
52
+ */
53
+ orderDesc?: boolean;
54
+ /**
55
+ * mask to filter exact matching user creator
56
+ */
57
+ createdBy?: string;
58
+ /**
59
+ * mask to filter matching starting path
60
+ */
61
+ pathStart?: string;
62
+ /**
63
+ * mask to filter exact matching path
64
+ */
65
+ pathExact?: string;
66
+ /**
67
+ * (default false)
68
+ * show only the starred items
69
+ *
70
+ */
71
+ starredOnly?: boolean;
72
+ }): CancelablePromise<Array<ListableApp>>;
73
+ /**
74
+ * does an app exisst at path
75
+ * @returns boolean app exists
76
+ * @throws ApiError
77
+ */
78
+ static existsApp({ workspace, path, }: {
79
+ workspace: string;
80
+ path: string;
81
+ }): CancelablePromise<boolean>;
82
+ /**
83
+ * get app by path
84
+ * @returns AppWithLastVersion app details
85
+ * @throws ApiError
86
+ */
87
+ static getAppByPath({ workspace, path, }: {
88
+ workspace: string;
89
+ path: string;
90
+ }): CancelablePromise<AppWithLastVersion>;
91
+ /**
92
+ * get app by path with draft
93
+ * @returns AppWithLastVersionWDraft app details with draft
94
+ * @throws ApiError
95
+ */
96
+ static getAppByPathWithDraft({ workspace, path, }: {
97
+ workspace: string;
98
+ path: string;
99
+ }): CancelablePromise<AppWithLastVersionWDraft>;
100
+ /**
101
+ * get public app by secret
102
+ * @returns AppWithLastVersion app details
103
+ * @throws ApiError
104
+ */
105
+ static getPublicAppBySecret({ workspace, path, }: {
106
+ workspace: string;
107
+ path: string;
108
+ }): CancelablePromise<AppWithLastVersion>;
109
+ /**
110
+ * get public secret of app
111
+ * @returns string app secret
112
+ * @throws ApiError
113
+ */
114
+ static getPublicSecretOfApp({ workspace, path, }: {
115
+ workspace: string;
116
+ path: string;
117
+ }): CancelablePromise<string>;
118
+ /**
119
+ * get app by version
120
+ * @returns AppWithLastVersion app details
121
+ * @throws ApiError
122
+ */
123
+ static getAppByVersion({ workspace, id, }: {
124
+ workspace: string;
125
+ id: number;
126
+ }): CancelablePromise<AppWithLastVersion>;
127
+ /**
128
+ * create app
129
+ * @returns string app created
130
+ * @throws ApiError
131
+ */
132
+ static createApp({ workspace, requestBody, }: {
133
+ workspace: string;
134
+ /**
135
+ * new app
136
+ */
137
+ requestBody: {
138
+ path: string;
139
+ value: any;
140
+ summary: string;
141
+ policy: Policy;
142
+ draft_only?: boolean;
143
+ };
144
+ }): CancelablePromise<string>;
145
+ /**
146
+ * delete app
147
+ * @returns string app deleted
148
+ * @throws ApiError
149
+ */
150
+ static deleteApp({ workspace, path, }: {
151
+ workspace: string;
152
+ path: string;
153
+ }): CancelablePromise<string>;
154
+ /**
155
+ * update app
156
+ * @returns string app updated
157
+ * @throws ApiError
158
+ */
159
+ static updateApp({ workspace, path, requestBody, }: {
160
+ workspace: string;
161
+ path: string;
162
+ /**
163
+ * update app
164
+ */
165
+ requestBody: {
166
+ path?: string;
167
+ summary?: string;
168
+ value?: any;
169
+ policy?: Policy;
170
+ };
171
+ }): CancelablePromise<string>;
172
+ /**
173
+ * executeComponent
174
+ * @returns string job uuid
175
+ * @throws ApiError
176
+ */
177
+ static executeComponent({ workspace, path, requestBody, }: {
178
+ workspace: string;
179
+ path: string;
180
+ /**
181
+ * update app
182
+ */
183
+ requestBody: {
184
+ path?: string;
185
+ args: any;
186
+ raw_code?: {
187
+ content: string;
188
+ language: string;
189
+ path?: string;
190
+ };
191
+ force_viewer_static_fields?: any;
192
+ };
193
+ }): CancelablePromise<string>;
194
+ }
@@ -0,0 +1,53 @@
1
+ import type { AuditLog } from '../models/AuditLog';
2
+ import type { CancelablePromise } from '../core/CancelablePromise';
3
+ export declare class AuditService {
4
+ /**
5
+ * get audit log (requires admin privilege)
6
+ * @returns AuditLog an audit log
7
+ * @throws ApiError
8
+ */
9
+ static getAuditLog({ workspace, id, }: {
10
+ workspace: string;
11
+ id: number;
12
+ }): CancelablePromise<AuditLog>;
13
+ /**
14
+ * list audit logs (requires admin privilege)
15
+ * @returns AuditLog a list of audit logs
16
+ * @throws ApiError
17
+ */
18
+ static listAuditLogs({ workspace, page, perPage, before, after, username, operation, resource, actionKind, }: {
19
+ workspace: string;
20
+ /**
21
+ * which page to return (start at 1, default 1)
22
+ */
23
+ page?: number;
24
+ /**
25
+ * number of items to return for a given page (default 30, max 100)
26
+ */
27
+ perPage?: number;
28
+ /**
29
+ * filter on created before (exclusive) timestamp
30
+ */
31
+ before?: string;
32
+ /**
33
+ * filter on created after (exclusive) timestamp
34
+ */
35
+ after?: string;
36
+ /**
37
+ * filter on exact username of user
38
+ */
39
+ username?: string;
40
+ /**
41
+ * filter on exact or prefix name of operation
42
+ */
43
+ operation?: string;
44
+ /**
45
+ * filter on exact or prefix name of resource
46
+ */
47
+ resource?: string;
48
+ /**
49
+ * filter on type of operation
50
+ */
51
+ actionKind?: 'Create' | 'Update' | 'Delete' | 'Execute';
52
+ }): CancelablePromise<Array<AuditLog>>;
53
+ }
@@ -0,0 +1,30 @@
1
+ import type { CancelablePromise } from '../core/CancelablePromise';
2
+ export declare class CaptureService {
3
+ /**
4
+ * update flow preview capture
5
+ * @returns void
6
+ * @throws ApiError
7
+ */
8
+ static updateCapture({ workspace, path, }: {
9
+ workspace: string;
10
+ path: string;
11
+ }): CancelablePromise<void>;
12
+ /**
13
+ * create flow preview capture
14
+ * @returns any flow preview capture created
15
+ * @throws ApiError
16
+ */
17
+ static createCapture({ workspace, path, }: {
18
+ workspace: string;
19
+ path: string;
20
+ }): CancelablePromise<any>;
21
+ /**
22
+ * get flow preview capture
23
+ * @returns any captured flow preview
24
+ * @throws ApiError
25
+ */
26
+ static getCapture({ workspace, path, }: {
27
+ workspace: string;
28
+ path: string;
29
+ }): CancelablePromise<any>;
30
+ }
@@ -0,0 +1,16 @@
1
+ import type { CancelablePromise } from '../core/CancelablePromise';
2
+ export declare class DraftService {
3
+ /**
4
+ * create draft
5
+ * @returns string draft created
6
+ * @throws ApiError
7
+ */
8
+ static createDraft({ workspace, requestBody, }: {
9
+ workspace: string;
10
+ requestBody: {
11
+ path: string;
12
+ typ: 'flow' | 'script' | 'app';
13
+ value?: any;
14
+ };
15
+ }): CancelablePromise<string>;
16
+ }
@@ -0,0 +1,27 @@
1
+ import type { CancelablePromise } from '../core/CancelablePromise';
2
+ export declare class FavoriteService {
3
+ /**
4
+ * star item
5
+ * @returns any star item
6
+ * @throws ApiError
7
+ */
8
+ static star({ workspace, requestBody, }: {
9
+ workspace: string;
10
+ requestBody?: {
11
+ path?: string;
12
+ favorite_kind?: 'flow' | 'app' | 'script';
13
+ };
14
+ }): CancelablePromise<any>;
15
+ /**
16
+ * unstar item
17
+ * @returns any unstar item
18
+ * @throws ApiError
19
+ */
20
+ static unstar({ workspace, requestBody, }: {
21
+ workspace: string;
22
+ requestBody?: {
23
+ path?: string;
24
+ favorite_kind?: 'flow' | 'app' | 'script';
25
+ };
26
+ }): CancelablePromise<any>;
27
+ }
@@ -0,0 +1,186 @@
1
+ import type { Flow } from '../models/Flow';
2
+ import type { Input } from '../models/Input';
3
+ import type { OpenFlow } from '../models/OpenFlow';
4
+ import type { OpenFlowWPath } from '../models/OpenFlowWPath';
5
+ import type { CancelablePromise } from '../core/CancelablePromise';
6
+ export declare class FlowService {
7
+ /**
8
+ * list all available hub flows
9
+ * @returns any hub flows list
10
+ * @throws ApiError
11
+ */
12
+ static listHubFlows(): CancelablePromise<{
13
+ flows?: Array<{
14
+ id: number;
15
+ flow_id: number;
16
+ summary: string;
17
+ apps: Array<string>;
18
+ approved: boolean;
19
+ votes: number;
20
+ }>;
21
+ }>;
22
+ /**
23
+ * get hub flow by id
24
+ * @returns any flow
25
+ * @throws ApiError
26
+ */
27
+ static getHubFlowById({ id, }: {
28
+ id: number;
29
+ }): CancelablePromise<{
30
+ flow?: OpenFlow;
31
+ }>;
32
+ /**
33
+ * list all available flow paths
34
+ * @returns string list of flow paths
35
+ * @throws ApiError
36
+ */
37
+ static listFlowPaths({ workspace, }: {
38
+ workspace: string;
39
+ }): CancelablePromise<Array<string>>;
40
+ /**
41
+ * list all available flows
42
+ * @returns any All available flow
43
+ * @throws ApiError
44
+ */
45
+ static listFlows({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, showArchived, starredOnly, }: {
46
+ workspace: string;
47
+ /**
48
+ * which page to return (start at 1, default 1)
49
+ */
50
+ page?: number;
51
+ /**
52
+ * number of items to return for a given page (default 30, max 100)
53
+ */
54
+ perPage?: number;
55
+ /**
56
+ * order by desc order (default true)
57
+ */
58
+ orderDesc?: boolean;
59
+ /**
60
+ * mask to filter exact matching user creator
61
+ */
62
+ createdBy?: string;
63
+ /**
64
+ * mask to filter matching starting path
65
+ */
66
+ pathStart?: string;
67
+ /**
68
+ * mask to filter exact matching path
69
+ */
70
+ pathExact?: string;
71
+ /**
72
+ * (default false)
73
+ * show also the archived files.
74
+ * when multiple archived hash share the same path, only the ones with the latest create_at
75
+ * are displayed.
76
+ *
77
+ */
78
+ showArchived?: boolean;
79
+ /**
80
+ * (default false)
81
+ * show only the starred items
82
+ *
83
+ */
84
+ starredOnly?: boolean;
85
+ }): CancelablePromise<Array<(Flow & {
86
+ has_draft?: boolean;
87
+ draft_only?: boolean;
88
+ })>>;
89
+ /**
90
+ * get flow by path
91
+ * @returns Flow flow details
92
+ * @throws ApiError
93
+ */
94
+ static getFlowByPath({ workspace, path, }: {
95
+ workspace: string;
96
+ path: string;
97
+ }): CancelablePromise<Flow>;
98
+ /**
99
+ * get flow by path with draft
100
+ * @returns any flow details with draft
101
+ * @throws ApiError
102
+ */
103
+ static getFlowByPathWithDraft({ workspace, path, }: {
104
+ workspace: string;
105
+ path: string;
106
+ }): CancelablePromise<(Flow & {
107
+ draft?: Flow;
108
+ })>;
109
+ /**
110
+ * exists flow by path
111
+ * @returns boolean flow details
112
+ * @throws ApiError
113
+ */
114
+ static existsFlowByPath({ workspace, path, }: {
115
+ workspace: string;
116
+ path: string;
117
+ }): CancelablePromise<boolean>;
118
+ /**
119
+ * create flow
120
+ * @returns string flow created
121
+ * @throws ApiError
122
+ */
123
+ static createFlow({ workspace, requestBody, }: {
124
+ workspace: string;
125
+ /**
126
+ * Partially filled flow
127
+ */
128
+ requestBody: (OpenFlowWPath & {
129
+ draft_only?: boolean;
130
+ });
131
+ }): CancelablePromise<string>;
132
+ /**
133
+ * update flow
134
+ * @returns string flow updated
135
+ * @throws ApiError
136
+ */
137
+ static updateFlow({ workspace, path, requestBody, }: {
138
+ workspace: string;
139
+ path: string;
140
+ /**
141
+ * Partially filled flow
142
+ */
143
+ requestBody: OpenFlowWPath;
144
+ }): CancelablePromise<string>;
145
+ /**
146
+ * archive flow by path
147
+ * @returns string flow archived
148
+ * @throws ApiError
149
+ */
150
+ static archiveFlowByPath({ workspace, path, requestBody, }: {
151
+ workspace: string;
152
+ path: string;
153
+ /**
154
+ * archiveFlow
155
+ */
156
+ requestBody: {
157
+ archived?: boolean;
158
+ };
159
+ }): CancelablePromise<string>;
160
+ /**
161
+ * delete flow by path
162
+ * @returns string flow delete
163
+ * @throws ApiError
164
+ */
165
+ static deleteFlowByPath({ workspace, path, }: {
166
+ workspace: string;
167
+ path: string;
168
+ }): CancelablePromise<string>;
169
+ /**
170
+ * list inputs for previous completed flow jobs
171
+ * @returns Input input history for completed jobs with this flow path
172
+ * @throws ApiError
173
+ */
174
+ static getFlowInputHistoryByPath({ workspace, path, page, perPage, }: {
175
+ workspace: string;
176
+ path: string;
177
+ /**
178
+ * which page to return (start at 1, default 1)
179
+ */
180
+ page?: number;
181
+ /**
182
+ * number of items to return for a given page (default 30, max 100)
183
+ */
184
+ perPage?: number;
185
+ }): CancelablePromise<Array<Input>>;
186
+ }
@@ -0,0 +1,128 @@
1
+ import type { Folder } from '../models/Folder';
2
+ import type { CancelablePromise } from '../core/CancelablePromise';
3
+ export declare class FolderService {
4
+ /**
5
+ * list folders
6
+ * @returns Folder folder list
7
+ * @throws ApiError
8
+ */
9
+ static listFolders({ workspace, page, perPage, }: {
10
+ workspace: string;
11
+ /**
12
+ * which page to return (start at 1, default 1)
13
+ */
14
+ page?: number;
15
+ /**
16
+ * number of items to return for a given page (default 30, max 100)
17
+ */
18
+ perPage?: number;
19
+ }): CancelablePromise<Array<Folder>>;
20
+ /**
21
+ * list folder names
22
+ * @returns string folder list
23
+ * @throws ApiError
24
+ */
25
+ static listFolderNames({ workspace, onlyMemberOf, }: {
26
+ workspace: string;
27
+ /**
28
+ * only list the folders the user is member of (default false)
29
+ */
30
+ onlyMemberOf?: boolean;
31
+ }): CancelablePromise<Array<string>>;
32
+ /**
33
+ * create folder
34
+ * @returns string folder created
35
+ * @throws ApiError
36
+ */
37
+ static createFolder({ workspace, requestBody, }: {
38
+ workspace: string;
39
+ /**
40
+ * create folder
41
+ */
42
+ requestBody: {
43
+ name: string;
44
+ owners?: Array<string>;
45
+ extra_perms?: any;
46
+ };
47
+ }): CancelablePromise<string>;
48
+ /**
49
+ * update folder
50
+ * @returns string folder updated
51
+ * @throws ApiError
52
+ */
53
+ static updateFolder({ workspace, name, requestBody, }: {
54
+ workspace: string;
55
+ name: string;
56
+ /**
57
+ * update folder
58
+ */
59
+ requestBody: {
60
+ owners?: Array<string>;
61
+ extra_perms?: any;
62
+ };
63
+ }): CancelablePromise<string>;
64
+ /**
65
+ * delete folder
66
+ * @returns string folder deleted
67
+ * @throws ApiError
68
+ */
69
+ static deleteFolder({ workspace, name, }: {
70
+ workspace: string;
71
+ name: string;
72
+ }): CancelablePromise<string>;
73
+ /**
74
+ * get folder
75
+ * @returns Folder folder
76
+ * @throws ApiError
77
+ */
78
+ static getFolder({ workspace, name, }: {
79
+ workspace: string;
80
+ name: string;
81
+ }): CancelablePromise<Folder>;
82
+ /**
83
+ * get folder usage
84
+ * @returns any folder
85
+ * @throws ApiError
86
+ */
87
+ static getFolderUsage({ workspace, name, }: {
88
+ workspace: string;
89
+ name: string;
90
+ }): CancelablePromise<{
91
+ scripts: number;
92
+ flows: number;
93
+ apps: number;
94
+ resources: number;
95
+ variables: number;
96
+ schedules: number;
97
+ }>;
98
+ /**
99
+ * add owner to folder
100
+ * @returns string owner added to folder
101
+ * @throws ApiError
102
+ */
103
+ static addOwnerToFolder({ workspace, name, requestBody, }: {
104
+ workspace: string;
105
+ name: string;
106
+ /**
107
+ * owner user to folder
108
+ */
109
+ requestBody: {
110
+ owner?: string;
111
+ };
112
+ }): CancelablePromise<string>;
113
+ /**
114
+ * remove owner to folder
115
+ * @returns string owner removed from folder
116
+ * @throws ApiError
117
+ */
118
+ static removeOwnerToFolder({ workspace, name, requestBody, }: {
119
+ workspace: string;
120
+ name: string;
121
+ /**
122
+ * added owner to folder
123
+ */
124
+ requestBody: {
125
+ owner?: string;
126
+ };
127
+ }): CancelablePromise<string>;
128
+ }
@@ -0,0 +1,46 @@
1
+ import type { CancelablePromise } from '../core/CancelablePromise';
2
+ export declare class GranularAclService {
3
+ /**
4
+ * get granular acls
5
+ * @returns boolean acls
6
+ * @throws ApiError
7
+ */
8
+ static getGranularAcls({ workspace, path, kind, }: {
9
+ workspace: string;
10
+ path: string;
11
+ kind: 'script' | 'group_' | 'resource' | 'schedule' | 'variable' | 'flow' | 'folder' | 'app';
12
+ }): CancelablePromise<Record<string, boolean>>;
13
+ /**
14
+ * add granular acls
15
+ * @returns string granular acl added
16
+ * @throws ApiError
17
+ */
18
+ static addGranularAcls({ workspace, path, kind, requestBody, }: {
19
+ workspace: string;
20
+ path: string;
21
+ kind: 'script' | 'group_' | 'resource' | 'schedule' | 'variable' | 'flow' | 'folder' | 'app';
22
+ /**
23
+ * acl to add
24
+ */
25
+ requestBody: {
26
+ owner: string;
27
+ write?: boolean;
28
+ };
29
+ }): CancelablePromise<string>;
30
+ /**
31
+ * remove granular acls
32
+ * @returns string granular acl removed
33
+ * @throws ApiError
34
+ */
35
+ static removeGranularAcls({ workspace, path, kind, requestBody, }: {
36
+ workspace: string;
37
+ path: string;
38
+ kind: 'script' | 'group_' | 'resource' | 'schedule' | 'variable' | 'flow' | 'folder' | 'app';
39
+ /**
40
+ * acl to add
41
+ */
42
+ requestBody: {
43
+ owner: string;
44
+ };
45
+ }): CancelablePromise<string>;
46
+ }