windmill-client 0.2.1 → 0.3.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.
Files changed (121) hide show
  1. package/build.sh +0 -1
  2. package/dist/core/OpenAPI.js +1 -1
  3. package/dist/index.d.ts +2 -0
  4. package/dist/index.js +3 -1
  5. package/dist/models/ListableRawApp.d.ts +9 -0
  6. package/dist/models/ListableRawApp.js +5 -0
  7. package/dist/services/AppService.d.ts +19 -18
  8. package/dist/services/AppService.js +16 -16
  9. package/dist/services/FavoriteService.d.ts +2 -2
  10. package/dist/services/GranularAclService.d.ts +3 -3
  11. package/dist/services/JobService.d.ts +12 -0
  12. package/dist/services/JobService.js +15 -0
  13. package/dist/services/RawAppService.d.ts +103 -0
  14. package/dist/services/RawAppService.js +110 -0
  15. package/package.json +1 -1
  16. package/publish.sh +3 -0
  17. package/src/core/OpenAPI.ts +1 -1
  18. package/src/index.ts +2 -0
  19. package/src/models/ListableRawApp.ts +14 -0
  20. package/src/services/AppService.ts +33 -32
  21. package/src/services/FavoriteService.ts +2 -2
  22. package/src/services/GranularAclService.ts +3 -3
  23. package/src/services/JobService.ts +25 -0
  24. package/src/services/RawAppService.ts +209 -0
  25. package/src/core/ApiError.d.ts +0 -10
  26. package/src/core/ApiRequestOptions.d.ts +0 -13
  27. package/src/core/ApiResult.d.ts +0 -7
  28. package/src/core/CancelablePromise.d.ts +0 -26
  29. package/src/core/OpenAPI.d.ts +0 -16
  30. package/src/core/request.d.ts +0 -13
  31. package/src/models/AppWithLastVersion.d.ts +0 -21
  32. package/src/models/AppWithLastVersionWDraft.d.ts +0 -5
  33. package/src/models/AuditLog.d.ts +0 -32
  34. package/src/models/BranchAll.d.ts +0 -10
  35. package/src/models/BranchOne.d.ts +0 -10
  36. package/src/models/CompletedJob.d.ts +0 -57
  37. package/src/models/ContextualVariable.d.ts +0 -5
  38. package/src/models/CreateInput.d.ts +0 -4
  39. package/src/models/CreateResource.d.ts +0 -6
  40. package/src/models/CreateVariable.d.ts +0 -8
  41. package/src/models/CreateWorkspace.d.ts +0 -5
  42. package/src/models/EditResource.d.ts +0 -5
  43. package/src/models/EditResourceType.d.ts +0 -4
  44. package/src/models/EditSchedule.d.ts +0 -6
  45. package/src/models/EditVariable.d.ts +0 -6
  46. package/src/models/EditWorkspaceUser.d.ts +0 -5
  47. package/src/models/Flow.d.ts +0 -3
  48. package/src/models/FlowMetadata.d.ts +0 -11
  49. package/src/models/FlowModule.d.ts +0 -18
  50. package/src/models/FlowModuleValue.d.ts +0 -8
  51. package/src/models/FlowPreview.d.ts +0 -7
  52. package/src/models/FlowStatus.d.ts +0 -12
  53. package/src/models/FlowStatusModule.d.ts +0 -34
  54. package/src/models/FlowValue.d.ts +0 -6
  55. package/src/models/Folder.d.ts +0 -5
  56. package/src/models/ForloopFlow.d.ts +0 -9
  57. package/src/models/GlobalUserInfo.d.ts +0 -14
  58. package/src/models/Group.d.ts +0 -6
  59. package/src/models/Identity.d.ts +0 -4
  60. package/src/models/Input.d.ts +0 -8
  61. package/src/models/InputTransform.d.ts +0 -3
  62. package/src/models/JavascriptTransform.d.ts +0 -4
  63. package/src/models/Job.d.ts +0 -11
  64. package/src/models/ListableApp.d.ts +0 -18
  65. package/src/models/ListableResource.d.ts +0 -14
  66. package/src/models/ListableVariable.d.ts +0 -14
  67. package/src/models/Login.d.ts +0 -4
  68. package/src/models/MainArgSignature.d.ts +0 -33
  69. package/src/models/NewSchedule.d.ts +0 -10
  70. package/src/models/NewScript.d.ts +0 -29
  71. package/src/models/NewScriptWithDraft.d.ts +0 -5
  72. package/src/models/NewToken.d.ts +0 -4
  73. package/src/models/NewTokenImpersonate.d.ts +0 -5
  74. package/src/models/NewUser.d.ts +0 -5
  75. package/src/models/OpenFlow.d.ts +0 -7
  76. package/src/models/OpenFlowWPath.d.ts +0 -4
  77. package/src/models/PathFlow.d.ts +0 -6
  78. package/src/models/PathScript.d.ts +0 -7
  79. package/src/models/Policy.d.ts +0 -13
  80. package/src/models/Preview.d.ts +0 -16
  81. package/src/models/QueuedJob.d.ts +0 -55
  82. package/src/models/RawScript.d.ts +0 -18
  83. package/src/models/Resource.d.ts +0 -9
  84. package/src/models/ResourceType.d.ts +0 -6
  85. package/src/models/Retry.d.ts +0 -11
  86. package/src/models/RunnableType.d.ts +0 -5
  87. package/src/models/Schedule.d.ts +0 -15
  88. package/src/models/Script.d.ts +0 -43
  89. package/src/models/ScriptArgs.d.ts +0 -1
  90. package/src/models/SlackToken.d.ts +0 -8
  91. package/src/models/StaticTransform.d.ts +0 -4
  92. package/src/models/TokenResponse.d.ts +0 -6
  93. package/src/models/TruncatedToken.d.ts +0 -7
  94. package/src/models/UpdateInput.d.ts +0 -5
  95. package/src/models/Usage.d.ts +0 -3
  96. package/src/models/User.d.ts +0 -14
  97. package/src/models/UserWorkspaceList.d.ts +0 -8
  98. package/src/models/WorkerPing.d.ts +0 -8
  99. package/src/models/Workspace.d.ts +0 -6
  100. package/src/models/WorkspaceInvite.d.ts +0 -6
  101. package/src/services/AdminService.d.ts +0 -39
  102. package/src/services/AppService.d.ts +0 -194
  103. package/src/services/AuditService.d.ts +0 -53
  104. package/src/services/CaptureService.d.ts +0 -30
  105. package/src/services/DraftService.d.ts +0 -16
  106. package/src/services/FavoriteService.d.ts +0 -27
  107. package/src/services/FlowService.d.ts +0 -186
  108. package/src/services/FolderService.d.ts +0 -128
  109. package/src/services/GranularAclService.d.ts +0 -46
  110. package/src/services/GroupService.d.ts +0 -110
  111. package/src/services/InputService.d.ts +0 -78
  112. package/src/services/JobService.d.ts +0 -636
  113. package/src/services/OauthService.d.ts +0 -95
  114. package/src/services/ResourceService.d.ts +0 -177
  115. package/src/services/ScheduleService.d.ts +0 -103
  116. package/src/services/ScriptService.d.ts +0 -303
  117. package/src/services/SettingsService.d.ts +0 -15
  118. package/src/services/UserService.d.ts +0 -284
  119. package/src/services/VariableService.d.ts +0 -83
  120. package/src/services/WorkerService.d.ts +0 -25
  121. package/src/services/WorkspaceService.d.ts +0 -227
@@ -1,95 +0,0 @@
1
- import type { TokenResponse } from '../models/TokenResponse';
2
- import type { CancelablePromise } from '../core/CancelablePromise';
3
- export declare class OauthService {
4
- /**
5
- * connect slack callback
6
- * @returns string slack token
7
- * @throws ApiError
8
- */
9
- static connectSlackCallback({ workspace, requestBody, }: {
10
- workspace: string;
11
- /**
12
- * code endpoint
13
- */
14
- requestBody: {
15
- code: string;
16
- state: string;
17
- };
18
- }): CancelablePromise<string>;
19
- /**
20
- * connect callback
21
- * @returns TokenResponse oauth token
22
- * @throws ApiError
23
- */
24
- static connectCallback({ clientName, requestBody, }: {
25
- clientName: string;
26
- /**
27
- * code endpoint
28
- */
29
- requestBody: {
30
- code: string;
31
- state: string;
32
- };
33
- }): CancelablePromise<TokenResponse>;
34
- /**
35
- * create OAuth account
36
- * @returns string account set
37
- * @throws ApiError
38
- */
39
- static createAccount({ workspace, requestBody, }: {
40
- workspace: string;
41
- /**
42
- * code endpoint
43
- */
44
- requestBody: {
45
- refresh_token?: string;
46
- expires_in: number;
47
- owner: string;
48
- client: string;
49
- };
50
- }): CancelablePromise<string>;
51
- /**
52
- * refresh token
53
- * @returns string token refreshed
54
- * @throws ApiError
55
- */
56
- static refreshToken({ workspace, id, requestBody, }: {
57
- workspace: string;
58
- id: number;
59
- /**
60
- * variable path
61
- */
62
- requestBody: {
63
- path: string;
64
- };
65
- }): CancelablePromise<string>;
66
- /**
67
- * disconnect account
68
- * @returns string disconnected client
69
- * @throws ApiError
70
- */
71
- static disconnectAccount({ workspace, id, }: {
72
- workspace: string;
73
- id: number;
74
- }): CancelablePromise<string>;
75
- /**
76
- * disconnect slack
77
- * @returns string disconnected slack
78
- * @throws ApiError
79
- */
80
- static disconnectSlack({ workspace, }: {
81
- workspace: string;
82
- }): CancelablePromise<string>;
83
- /**
84
- * list oauth logins
85
- * @returns string list of oauth login clients
86
- * @throws ApiError
87
- */
88
- static listOAuthLogins(): CancelablePromise<Array<string>>;
89
- /**
90
- * list oauth connects
91
- * @returns any list of oauth connects clients
92
- * @throws ApiError
93
- */
94
- static listOAuthConnects(): CancelablePromise<any>;
95
- }
@@ -1,177 +0,0 @@
1
- import type { CreateResource } from '../models/CreateResource';
2
- import type { EditResource } from '../models/EditResource';
3
- import type { EditResourceType } from '../models/EditResourceType';
4
- import type { ListableResource } from '../models/ListableResource';
5
- import type { Resource } from '../models/Resource';
6
- import type { ResourceType } from '../models/ResourceType';
7
- import type { CancelablePromise } from '../core/CancelablePromise';
8
- export declare class ResourceService {
9
- /**
10
- * create resource
11
- * @returns string resource created
12
- * @throws ApiError
13
- */
14
- static createResource({ workspace, requestBody, }: {
15
- workspace: string;
16
- /**
17
- * new resource
18
- */
19
- requestBody: CreateResource;
20
- }): CancelablePromise<string>;
21
- /**
22
- * delete resource
23
- * @returns string resource deleted
24
- * @throws ApiError
25
- */
26
- static deleteResource({ workspace, path, }: {
27
- workspace: string;
28
- path: string;
29
- }): CancelablePromise<string>;
30
- /**
31
- * update resource
32
- * @returns string resource updated
33
- * @throws ApiError
34
- */
35
- static updateResource({ workspace, path, requestBody, }: {
36
- workspace: string;
37
- path: string;
38
- /**
39
- * updated resource
40
- */
41
- requestBody: EditResource;
42
- }): CancelablePromise<string>;
43
- /**
44
- * update resource value
45
- * @returns string resource value updated
46
- * @throws ApiError
47
- */
48
- static updateResourceValue({ workspace, path, requestBody, }: {
49
- workspace: string;
50
- path: string;
51
- /**
52
- * updated resource
53
- */
54
- requestBody: {
55
- value?: any;
56
- };
57
- }): CancelablePromise<string>;
58
- /**
59
- * get resource
60
- * @returns Resource resource
61
- * @throws ApiError
62
- */
63
- static getResource({ workspace, path, }: {
64
- workspace: string;
65
- path: string;
66
- }): CancelablePromise<Resource>;
67
- /**
68
- * get resource value
69
- * @returns any resource value
70
- * @throws ApiError
71
- */
72
- static getResourceValue({ workspace, path, }: {
73
- workspace: string;
74
- path: string;
75
- }): CancelablePromise<any>;
76
- /**
77
- * does resource exists
78
- * @returns boolean does resource exists
79
- * @throws ApiError
80
- */
81
- static existsResource({ workspace, path, }: {
82
- workspace: string;
83
- path: string;
84
- }): CancelablePromise<boolean>;
85
- /**
86
- * list resources
87
- * @returns ListableResource resource list
88
- * @throws ApiError
89
- */
90
- static listResource({ workspace, page, perPage, resourceType, resourceTypeExclude, }: {
91
- workspace: string;
92
- /**
93
- * which page to return (start at 1, default 1)
94
- */
95
- page?: number;
96
- /**
97
- * number of items to return for a given page (default 30, max 100)
98
- */
99
- perPage?: number;
100
- /**
101
- * resource_types to list from, separated by ',',
102
- */
103
- resourceType?: string;
104
- /**
105
- * resource_types to not list from, separated by ',',
106
- */
107
- resourceTypeExclude?: string;
108
- }): CancelablePromise<Array<ListableResource>>;
109
- /**
110
- * create resource_type
111
- * @returns string resource_type created
112
- * @throws ApiError
113
- */
114
- static createResourceType({ workspace, requestBody, }: {
115
- workspace: string;
116
- /**
117
- * new resource_type
118
- */
119
- requestBody: ResourceType;
120
- }): CancelablePromise<string>;
121
- /**
122
- * delete resource_type
123
- * @returns string resource_type deleted
124
- * @throws ApiError
125
- */
126
- static deleteResourceType({ workspace, path, }: {
127
- workspace: string;
128
- path: string;
129
- }): CancelablePromise<string>;
130
- /**
131
- * update resource_type
132
- * @returns string resource_type updated
133
- * @throws ApiError
134
- */
135
- static updateResourceType({ workspace, path, requestBody, }: {
136
- workspace: string;
137
- path: string;
138
- /**
139
- * updated resource_type
140
- */
141
- requestBody: EditResourceType;
142
- }): CancelablePromise<string>;
143
- /**
144
- * get resource_type
145
- * @returns ResourceType resource_type deleted
146
- * @throws ApiError
147
- */
148
- static getResourceType({ workspace, path, }: {
149
- workspace: string;
150
- path: string;
151
- }): CancelablePromise<ResourceType>;
152
- /**
153
- * does resource_type exists
154
- * @returns boolean does resource_type exist
155
- * @throws ApiError
156
- */
157
- static existsResourceType({ workspace, path, }: {
158
- workspace: string;
159
- path: string;
160
- }): CancelablePromise<boolean>;
161
- /**
162
- * list resource_types
163
- * @returns ResourceType resource_type list
164
- * @throws ApiError
165
- */
166
- static listResourceType({ workspace, }: {
167
- workspace: string;
168
- }): CancelablePromise<Array<ResourceType>>;
169
- /**
170
- * list resource_types names
171
- * @returns string resource_type list
172
- * @throws ApiError
173
- */
174
- static listResourceTypeNames({ workspace, }: {
175
- workspace: string;
176
- }): CancelablePromise<Array<string>>;
177
- }
@@ -1,103 +0,0 @@
1
- import type { EditSchedule } from '../models/EditSchedule';
2
- import type { NewSchedule } from '../models/NewSchedule';
3
- import type { Schedule } from '../models/Schedule';
4
- import type { CancelablePromise } from '../core/CancelablePromise';
5
- export declare class ScheduleService {
6
- /**
7
- * preview schedule
8
- * @returns string List of 5 estimated upcoming execution events (in UTC)
9
- * @throws ApiError
10
- */
11
- static previewSchedule({ requestBody, }: {
12
- /**
13
- * schedule
14
- */
15
- requestBody: {
16
- schedule: string;
17
- timezone: string;
18
- };
19
- }): CancelablePromise<Array<string>>;
20
- /**
21
- * create schedule
22
- * @returns string schedule created
23
- * @throws ApiError
24
- */
25
- static createSchedule({ workspace, requestBody, }: {
26
- workspace: string;
27
- /**
28
- * new schedule
29
- */
30
- requestBody: NewSchedule;
31
- }): CancelablePromise<string>;
32
- /**
33
- * update schedule
34
- * @returns string schedule updated
35
- * @throws ApiError
36
- */
37
- static updateSchedule({ workspace, path, requestBody, }: {
38
- workspace: string;
39
- path: string;
40
- /**
41
- * updated schedule
42
- */
43
- requestBody: EditSchedule;
44
- }): CancelablePromise<string>;
45
- /**
46
- * set enabled schedule
47
- * @returns string schedule enabled set
48
- * @throws ApiError
49
- */
50
- static setScheduleEnabled({ workspace, path, requestBody, }: {
51
- workspace: string;
52
- path: string;
53
- /**
54
- * updated schedule enable
55
- */
56
- requestBody: {
57
- enabled: boolean;
58
- };
59
- }): CancelablePromise<string>;
60
- /**
61
- * delete schedule
62
- * @returns string schedule deleted
63
- * @throws ApiError
64
- */
65
- static deleteSchedule({ workspace, path, }: {
66
- workspace: string;
67
- path: string;
68
- }): CancelablePromise<string>;
69
- /**
70
- * get schedule
71
- * @returns Schedule schedule deleted
72
- * @throws ApiError
73
- */
74
- static getSchedule({ workspace, path, }: {
75
- workspace: string;
76
- path: string;
77
- }): CancelablePromise<Schedule>;
78
- /**
79
- * does schedule exists
80
- * @returns boolean schedule exists
81
- * @throws ApiError
82
- */
83
- static existsSchedule({ workspace, path, }: {
84
- workspace: string;
85
- path: string;
86
- }): CancelablePromise<boolean>;
87
- /**
88
- * list schedules
89
- * @returns Schedule schedule list
90
- * @throws ApiError
91
- */
92
- static listSchedules({ workspace, page, perPage, }: {
93
- workspace: string;
94
- /**
95
- * which page to return (start at 1, default 1)
96
- */
97
- page?: number;
98
- /**
99
- * number of items to return for a given page (default 30, max 100)
100
- */
101
- perPage?: number;
102
- }): CancelablePromise<Array<Schedule>>;
103
- }
@@ -1,303 +0,0 @@
1
- import type { MainArgSignature } from '../models/MainArgSignature';
2
- import type { NewScript } from '../models/NewScript';
3
- import type { NewScriptWithDraft } from '../models/NewScriptWithDraft';
4
- import type { Script } from '../models/Script';
5
- import type { CancelablePromise } from '../core/CancelablePromise';
6
- export declare class ScriptService {
7
- /**
8
- * list all available hub scripts
9
- * @returns any hub scripts list
10
- * @throws ApiError
11
- */
12
- static listHubScripts(): CancelablePromise<{
13
- asks?: Array<{
14
- id: number;
15
- ask_id: number;
16
- summary: string;
17
- app: string;
18
- approved: boolean;
19
- kind: 'script' | 'failure' | 'trigger' | 'command' | 'approval';
20
- votes: number;
21
- views: number;
22
- }>;
23
- }>;
24
- /**
25
- * get hub script content by path
26
- * @returns string script details
27
- * @throws ApiError
28
- */
29
- static getHubScriptContentByPath({ path, }: {
30
- path: string;
31
- }): CancelablePromise<string>;
32
- /**
33
- * get full hub script by path
34
- * @returns any script details
35
- * @throws ApiError
36
- */
37
- static getHubScriptByPath({ path, }: {
38
- path: string;
39
- }): CancelablePromise<{
40
- content: string;
41
- lockfile?: string;
42
- schema?: any;
43
- language: 'deno' | 'python3' | 'go' | 'bash';
44
- summary?: string;
45
- }>;
46
- /**
47
- * list all available scripts
48
- * @returns Script All available scripts
49
- * @throws ApiError
50
- */
51
- static listScripts({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, firstParentHash, lastParentHash, parentHash, showArchived, isTemplate, kind, starredOnly, }: {
52
- workspace: string;
53
- /**
54
- * which page to return (start at 1, default 1)
55
- */
56
- page?: number;
57
- /**
58
- * number of items to return for a given page (default 30, max 100)
59
- */
60
- perPage?: number;
61
- /**
62
- * order by desc order (default true)
63
- */
64
- orderDesc?: boolean;
65
- /**
66
- * mask to filter exact matching user creator
67
- */
68
- createdBy?: string;
69
- /**
70
- * mask to filter matching starting path
71
- */
72
- pathStart?: string;
73
- /**
74
- * mask to filter exact matching path
75
- */
76
- pathExact?: string;
77
- /**
78
- * mask to filter scripts whom first direct parent has exact hash
79
- */
80
- firstParentHash?: string;
81
- /**
82
- * mask to filter scripts whom last parent in the chain has exact hash.
83
- * Beware that each script stores only a limited number of parents. Hence
84
- * the last parent hash for a script is not necessarily its top-most parent.
85
- * To find the top-most parent you will have to jump from last to last hash
86
- * until finding the parent
87
- *
88
- */
89
- lastParentHash?: string;
90
- /**
91
- * is the hash present in the array of stored parent hashes for this script.
92
- * The same warning applies than for last_parent_hash. A script only store a
93
- * limited number of direct parent
94
- *
95
- */
96
- parentHash?: string;
97
- /**
98
- * (default false)
99
- * show also the archived files.
100
- * when multiple archived hash share the same path, only the ones with the latest create_at
101
- * are
102
- * ed.
103
- *
104
- */
105
- showArchived?: boolean;
106
- /**
107
- * (default regardless)
108
- * if true show only the templates
109
- * if false show only the non templates
110
- * if not defined, show all regardless of if the script is a template
111
- *
112
- */
113
- isTemplate?: boolean;
114
- /**
115
- * (default regardless)
116
- * script kind
117
- *
118
- */
119
- kind?: string;
120
- /**
121
- * (default false)
122
- * show only the starred items
123
- *
124
- */
125
- starredOnly?: boolean;
126
- }): CancelablePromise<Array<Script>>;
127
- /**
128
- * list all available scripts paths
129
- * @returns string list of script paths
130
- * @throws ApiError
131
- */
132
- static listScriptPaths({ workspace, }: {
133
- workspace: string;
134
- }): CancelablePromise<Array<string>>;
135
- /**
136
- * create script
137
- * @returns string script created
138
- * @throws ApiError
139
- */
140
- static createScript({ workspace, requestBody, }: {
141
- workspace: string;
142
- /**
143
- * Partially filled script
144
- */
145
- requestBody: NewScript;
146
- }): CancelablePromise<string>;
147
- /**
148
- * inspect python code to infer jsonschema of arguments
149
- * @returns MainArgSignature parsed args
150
- * @throws ApiError
151
- */
152
- static pythonToJsonschema({ requestBody, }: {
153
- /**
154
- * python code with the main function
155
- */
156
- requestBody: string;
157
- }): CancelablePromise<MainArgSignature>;
158
- /**
159
- * inspect deno code to infer jsonschema of arguments
160
- * @returns MainArgSignature parsed args
161
- * @throws ApiError
162
- */
163
- static denoToJsonschema({ requestBody, }: {
164
- /**
165
- * deno code with the main function
166
- */
167
- requestBody: string;
168
- }): CancelablePromise<MainArgSignature>;
169
- /**
170
- * inspect bash code to infer jsonschema of arguments
171
- * @returns MainArgSignature parsed args
172
- * @throws ApiError
173
- */
174
- static bashToJsonschema({ requestBody, }: {
175
- /**
176
- * bash code with the main function
177
- */
178
- requestBody: string;
179
- }): CancelablePromise<MainArgSignature>;
180
- /**
181
- * inspect go code to infer jsonschema of arguments
182
- * @returns MainArgSignature parsed args
183
- * @throws ApiError
184
- */
185
- static goToJsonschema({ requestBody, }: {
186
- /**
187
- * go code with the main function
188
- */
189
- requestBody: string;
190
- }): CancelablePromise<MainArgSignature>;
191
- /**
192
- * archive script by path
193
- * @returns string script archived
194
- * @throws ApiError
195
- */
196
- static archiveScriptByPath({ workspace, path, }: {
197
- workspace: string;
198
- path: string;
199
- }): CancelablePromise<string>;
200
- /**
201
- * archive script by hash
202
- * @returns Script script details
203
- * @throws ApiError
204
- */
205
- static archiveScriptByHash({ workspace, hash, }: {
206
- workspace: string;
207
- hash: string;
208
- }): CancelablePromise<Script>;
209
- /**
210
- * delete script by hash (erase content but keep hash, require admin)
211
- * @returns Script script details
212
- * @throws ApiError
213
- */
214
- static deleteScriptByHash({ workspace, hash, }: {
215
- workspace: string;
216
- hash: string;
217
- }): CancelablePromise<Script>;
218
- /**
219
- * delete all scripts at a given path (require admin)
220
- * @returns string script path
221
- * @throws ApiError
222
- */
223
- static deleteScriptByPath({ workspace, path, }: {
224
- workspace: string;
225
- path: string;
226
- }): CancelablePromise<string>;
227
- /**
228
- * get script by path
229
- * @returns Script script details
230
- * @throws ApiError
231
- */
232
- static getScriptByPath({ workspace, path, }: {
233
- workspace: string;
234
- path: string;
235
- }): CancelablePromise<Script>;
236
- /**
237
- * get script by path with draft
238
- * @returns NewScriptWithDraft script details
239
- * @throws ApiError
240
- */
241
- static getScriptByPathWithDraft({ workspace, path, }: {
242
- workspace: string;
243
- path: string;
244
- }): CancelablePromise<NewScriptWithDraft>;
245
- /**
246
- * raw script by path
247
- * @returns string script content
248
- * @throws ApiError
249
- */
250
- static rawScriptByPath({ workspace, path, }: {
251
- workspace: string;
252
- path: string;
253
- }): CancelablePromise<string>;
254
- /**
255
- * raw script by path with a token (mostly used by lsp to be used with import maps to resolve scripts)
256
- * @returns string script content
257
- * @throws ApiError
258
- */
259
- static rawScriptByPathTokened({ workspace, token, path, }: {
260
- workspace: string;
261
- token: string;
262
- path: string;
263
- }): CancelablePromise<string>;
264
- /**
265
- * exists script by path
266
- * @returns boolean does it exists
267
- * @throws ApiError
268
- */
269
- static existsScriptByPath({ workspace, path, }: {
270
- workspace: string;
271
- path: string;
272
- }): CancelablePromise<boolean>;
273
- /**
274
- * get script by hash
275
- * @returns Script script details
276
- * @throws ApiError
277
- */
278
- static getScriptByHash({ workspace, hash, }: {
279
- workspace: string;
280
- hash: string;
281
- }): CancelablePromise<Script>;
282
- /**
283
- * raw script by hash
284
- * @returns string script content
285
- * @throws ApiError
286
- */
287
- static rawScriptByHash({ workspace, path, }: {
288
- workspace: string;
289
- path: string;
290
- }): CancelablePromise<string>;
291
- /**
292
- * get script deployment status
293
- * @returns any script details
294
- * @throws ApiError
295
- */
296
- static getScriptDeploymentStatus({ workspace, hash, }: {
297
- workspace: string;
298
- hash: string;
299
- }): CancelablePromise<{
300
- lock?: string;
301
- lock_error_logs?: string;
302
- }>;
303
- }
@@ -1,15 +0,0 @@
1
- import type { CancelablePromise } from '../core/CancelablePromise';
2
- export declare class SettingsService {
3
- /**
4
- * get backend version
5
- * @returns string git version of backend
6
- * @throws ApiError
7
- */
8
- static backendVersion(): CancelablePromise<string>;
9
- /**
10
- * get openapi yaml spec
11
- * @returns string openapi yaml file content
12
- * @throws ApiError
13
- */
14
- static getOpenApiYaml(): CancelablePromise<string>;
15
- }