windmill-components 1.13.0 → 1.13.3

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 (152) hide show
  1. package/common.js +23 -0
  2. package/components/ArgInfo.svelte +3 -3
  3. package/{lib/components → components}/ArgInfo.svelte.d.ts +0 -0
  4. package/{lib/components → components}/ArgInput.svelte.d.ts +2 -2
  5. package/{lib/components → components}/AutosizedTextarea.svelte.d.ts +0 -0
  6. package/{lib/components → components}/Badge.svelte.d.ts +0 -0
  7. package/{lib/components → components}/Button.svelte.d.ts +0 -0
  8. package/{lib/components → components}/ButtonAndDropdown.svelte.d.ts +1 -1
  9. package/{lib/components → components}/CenteredPage.svelte.d.ts +0 -0
  10. package/{lib/components → components}/ChevronButton.svelte.d.ts +0 -0
  11. package/{lib/components → components}/DisplayResult.svelte.d.ts +0 -0
  12. package/components/Dropdown.svelte +1 -1
  13. package/{lib/components → components}/Dropdown.svelte.d.ts +1 -1
  14. package/components/Editor.svelte +3 -0
  15. package/{lib/components → components}/Editor.svelte.d.ts +2 -0
  16. package/{lib/components → components}/FieldHeader.svelte.d.ts +2 -1
  17. package/components/FlowBuilder.svelte +3 -3
  18. package/{lib/components → components}/FlowBuilder.svelte.d.ts +1 -1
  19. package/components/FlowEditor.svelte +3 -3
  20. package/{lib/components → components}/FlowEditor.svelte.d.ts +1 -1
  21. package/components/FlowPreview.svelte +3 -3
  22. package/{lib/components → components}/FlowPreview.svelte.d.ts +2 -2
  23. package/components/FlowStatusViewer.svelte +3 -3
  24. package/{lib/components → components}/FlowStatusViewer.svelte.d.ts +1 -1
  25. package/components/GroupModal.svelte +3 -3
  26. package/{lib/components → components}/GroupModal.svelte.d.ts +0 -0
  27. package/{lib/components → components}/IconedResourceType.svelte.d.ts +0 -0
  28. package/components/InviteGlobalUser.svelte +2 -2
  29. package/{lib/components → components}/InviteGlobalUser.svelte.d.ts +0 -0
  30. package/components/InviteUser.svelte +3 -3
  31. package/{lib/components → components}/InviteUser.svelte.d.ts +0 -0
  32. package/{lib/components → components}/ItemPicker.svelte.d.ts +0 -0
  33. package/components/JobStatus.svelte +1 -1
  34. package/{lib/components → components}/JobStatus.svelte.d.ts +1 -1
  35. package/{lib/components → components}/Modal.svelte.d.ts +0 -0
  36. package/components/ModuleStep.svelte +1 -1
  37. package/{lib/components → components}/ModuleStep.svelte.d.ts +2 -2
  38. package/{lib/components → components}/Multiselect.svelte.d.ts +0 -0
  39. package/components/ObjectResourceInput.svelte +2 -2
  40. package/{lib/components → components}/ObjectResourceInput.svelte.d.ts +0 -0
  41. package/{lib/components → components}/ObjectTypeNarrowing.svelte.d.ts +0 -0
  42. package/{lib/components → components}/PageHeader.svelte.d.ts +0 -0
  43. package/{lib/components → components}/Password.svelte.d.ts +0 -0
  44. package/components/Path.svelte +4 -4
  45. package/{lib/components → components}/Path.svelte.d.ts +1 -1
  46. package/{lib/components → components}/RadioButton.svelte.d.ts +0 -0
  47. package/{lib/components → components}/Required.svelte.d.ts +0 -0
  48. package/components/ResourceEditor.svelte +3 -3
  49. package/{lib/components → components}/ResourceEditor.svelte.d.ts +0 -0
  50. package/components/ResourcePicker.svelte +2 -2
  51. package/{lib/components → components}/ResourcePicker.svelte.d.ts +0 -0
  52. package/components/ResourceTypePicker.svelte +2 -2
  53. package/{lib/components → components}/ResourceTypePicker.svelte.d.ts +0 -0
  54. package/components/RunForm.svelte +1 -1
  55. package/{lib/components → components}/RunForm.svelte.d.ts +1 -1
  56. package/components/SchemaEditor.svelte +76 -71
  57. package/{lib/components → components}/SchemaEditor.svelte.d.ts +1 -4
  58. package/components/SchemaForm.svelte +1 -1
  59. package/{lib/components → components}/SchemaForm.svelte.d.ts +1 -1
  60. package/{lib/components → components}/SchemaModal.svelte.d.ts +1 -1
  61. package/components/SchemaViewer.svelte +1 -1
  62. package/{lib/components → components}/SchemaViewer.svelte.d.ts +1 -1
  63. package/components/ScriptBuilder.svelte +4 -4
  64. package/{lib/components → components}/ScriptBuilder.svelte.d.ts +1 -1
  65. package/components/ScriptEditor.svelte +4 -4
  66. package/{lib/components → components}/ScriptEditor.svelte.d.ts +2 -2
  67. package/components/ScriptPicker.svelte +3 -3
  68. package/{lib/components → components}/ScriptPicker.svelte.d.ts +0 -0
  69. package/{lib/components → components}/ScriptSchema.svelte.d.ts +1 -1
  70. package/components/ShareModal.svelte +4 -4
  71. package/{lib/components → components}/ShareModal.svelte.d.ts +0 -0
  72. package/components/SharedBadge.svelte +1 -1
  73. package/{lib/components → components}/SharedBadge.svelte.d.ts +0 -0
  74. package/{lib/components → components}/StringTypeNarrowing.svelte.d.ts +0 -0
  75. package/{lib/components → components}/Switch.svelte.d.ts +0 -0
  76. package/{lib/components → components}/TableCustom.svelte.d.ts +0 -0
  77. package/{lib/components → components}/TableSimple.svelte.d.ts +0 -0
  78. package/{lib/components → components}/Tabs.svelte.d.ts +0 -0
  79. package/{lib/components → components}/Tooltip.svelte.d.ts +0 -0
  80. package/components/VariableEditor.svelte +3 -3
  81. package/{lib/components → components}/VariableEditor.svelte.d.ts +0 -0
  82. package/{lib/components → components}/icons/DbIcon.svelte.d.ts +0 -0
  83. package/{lib/components → components}/icons/Mail.svelte.d.ts +0 -0
  84. package/{lib/components → components}/icons/Mysql.svelte.d.ts +0 -0
  85. package/{lib/components → components}/icons/PostgresIcon.svelte.d.ts +0 -0
  86. package/{lib/components → components}/icons/Slack.svelte.d.ts +0 -0
  87. package/gen/core/ApiError.js +10 -0
  88. package/gen/core/ApiRequestOptions.js +1 -0
  89. package/gen/core/ApiResult.js +1 -0
  90. package/gen/core/CancelablePromise.js +86 -0
  91. package/gen/core/OpenAPI.js +11 -0
  92. package/gen/core/request.js +261 -0
  93. package/gen/index.js +30 -0
  94. package/gen/models/AuditLog.js +29 -0
  95. package/gen/models/CompletedJob.js +19 -0
  96. package/gen/models/ContextualVariable.js +4 -0
  97. package/gen/models/CreateResource.js +4 -0
  98. package/gen/models/CreateVariable.js +4 -0
  99. package/gen/models/CreateWorkspace.js +4 -0
  100. package/gen/models/EditResource.js +4 -0
  101. package/gen/models/EditResourceType.js +4 -0
  102. package/gen/models/EditSchedule.js +4 -0
  103. package/gen/models/EditVariable.js +4 -0
  104. package/gen/models/EditWorkspaceUser.js +4 -0
  105. package/gen/models/Flow.js +4 -0
  106. package/gen/models/FlowModule.js +4 -0
  107. package/gen/models/FlowModuleValue.js +11 -0
  108. package/gen/models/FlowPreview.js +4 -0
  109. package/gen/models/FlowStatus.js +4 -0
  110. package/gen/models/FlowStatusModule.js +15 -0
  111. package/gen/models/FlowValue.js +4 -0
  112. package/gen/models/GlobalUserInfo.js +11 -0
  113. package/gen/models/Group.js +4 -0
  114. package/gen/models/InputTransform.js +11 -0
  115. package/gen/models/Job.js +11 -0
  116. package/gen/models/ListableVariable.js +4 -0
  117. package/gen/models/Login.js +4 -0
  118. package/gen/models/MainArgSignature.js +4 -0
  119. package/gen/models/NewSchedule.js +4 -0
  120. package/gen/models/NewToken.js +4 -0
  121. package/gen/models/NewUser.js +4 -0
  122. package/gen/models/Preview.js +11 -0
  123. package/gen/models/QueuedJob.js +19 -0
  124. package/gen/models/Resource.js +4 -0
  125. package/gen/models/ResourceType.js +4 -0
  126. package/gen/models/Schedule.js +4 -0
  127. package/gen/models/Script.js +11 -0
  128. package/gen/models/ScriptArgs.js +4 -0
  129. package/gen/models/TruncatedToken.js +4 -0
  130. package/gen/models/User.js +4 -0
  131. package/gen/models/UserWorkspaceList.js +4 -0
  132. package/gen/models/WorkerPing.js +4 -0
  133. package/gen/models/Workspace.js +4 -0
  134. package/gen/models/WorkspaceInvite.js +4 -0
  135. package/gen/services/AdminService.js +52 -0
  136. package/gen/services/AuditService.js +43 -0
  137. package/gen/services/FlowService.js +90 -0
  138. package/gen/services/GranularAclService.js +56 -0
  139. package/gen/services/GroupService.js +133 -0
  140. package/gen/services/JobService.js +260 -0
  141. package/gen/services/ResourceService.js +177 -0
  142. package/gen/services/ScheduleService.js +100 -0
  143. package/gen/services/ScriptService.js +188 -0
  144. package/gen/services/SettingsService.js +26 -0
  145. package/gen/services/UserService.js +302 -0
  146. package/gen/services/VariableService.js +98 -0
  147. package/gen/services/WorkerService.js +19 -0
  148. package/gen/services/WorkspaceService.js +185 -0
  149. package/infer.js +81 -0
  150. package/package.json +69 -3
  151. package/stores.js +26 -0
  152. package/utils.js +258 -0
@@ -0,0 +1,177 @@
1
+ import { OpenAPI } from '../core/OpenAPI';
2
+ import { request as __request } from '../core/request';
3
+ export class ResourceService {
4
+ /**
5
+ * create resource
6
+ * @returns string resource created
7
+ * @throws ApiError
8
+ */
9
+ static createResource({ workspace, requestBody, }) {
10
+ return __request(OpenAPI, {
11
+ method: 'POST',
12
+ url: '/w/{workspace}/resources/create',
13
+ path: {
14
+ 'workspace': workspace,
15
+ },
16
+ body: requestBody,
17
+ mediaType: 'application/json',
18
+ });
19
+ }
20
+ /**
21
+ * delete resource
22
+ * @returns string resource deleted
23
+ * @throws ApiError
24
+ */
25
+ static deleteResource({ workspace, path, }) {
26
+ return __request(OpenAPI, {
27
+ method: 'DELETE',
28
+ url: '/w/{workspace}/resources/delete/{path}',
29
+ path: {
30
+ 'workspace': workspace,
31
+ 'path': path,
32
+ },
33
+ });
34
+ }
35
+ /**
36
+ * update resource
37
+ * @returns string resource updated
38
+ * @throws ApiError
39
+ */
40
+ static updateResource({ workspace, path, requestBody, }) {
41
+ return __request(OpenAPI, {
42
+ method: 'POST',
43
+ url: '/w/{workspace}/resources/update/{path}',
44
+ path: {
45
+ 'workspace': workspace,
46
+ 'path': path,
47
+ },
48
+ body: requestBody,
49
+ mediaType: 'application/json',
50
+ });
51
+ }
52
+ /**
53
+ * get resource
54
+ * @returns Resource resource deleted
55
+ * @throws ApiError
56
+ */
57
+ static getResource({ workspace, path, }) {
58
+ return __request(OpenAPI, {
59
+ method: 'GET',
60
+ url: '/w/{workspace}/resources/get/{path}',
61
+ path: {
62
+ 'workspace': workspace,
63
+ 'path': path,
64
+ },
65
+ });
66
+ }
67
+ /**
68
+ * list resources
69
+ * @returns Resource resource list
70
+ * @throws ApiError
71
+ */
72
+ static listResource({ workspace, page, perPage, resourceType, }) {
73
+ return __request(OpenAPI, {
74
+ method: 'GET',
75
+ url: '/w/{workspace}/resources/list',
76
+ path: {
77
+ 'workspace': workspace,
78
+ },
79
+ query: {
80
+ 'page': page,
81
+ 'per_page': perPage,
82
+ 'resource_type': resourceType,
83
+ },
84
+ });
85
+ }
86
+ /**
87
+ * create resource_type
88
+ * @returns string resource_type created
89
+ * @throws ApiError
90
+ */
91
+ static createResourceType({ workspace, requestBody, }) {
92
+ return __request(OpenAPI, {
93
+ method: 'POST',
94
+ url: '/w/{workspace}/resources/type/create',
95
+ path: {
96
+ 'workspace': workspace,
97
+ },
98
+ body: requestBody,
99
+ mediaType: 'application/json',
100
+ });
101
+ }
102
+ /**
103
+ * delete resource_type
104
+ * @returns string resource_type deleted
105
+ * @throws ApiError
106
+ */
107
+ static deleteResourceType({ workspace, path, }) {
108
+ return __request(OpenAPI, {
109
+ method: 'DELETE',
110
+ url: '/w/{workspace}/resources/type/delete/{path}',
111
+ path: {
112
+ 'workspace': workspace,
113
+ 'path': path,
114
+ },
115
+ });
116
+ }
117
+ /**
118
+ * update resource_type
119
+ * @returns string resource_type updated
120
+ * @throws ApiError
121
+ */
122
+ static updateResourceType({ workspace, path, requestBody, }) {
123
+ return __request(OpenAPI, {
124
+ method: 'POST',
125
+ url: '/w/{workspace}/resources/type/update/{path}',
126
+ path: {
127
+ 'workspace': workspace,
128
+ 'path': path,
129
+ },
130
+ body: requestBody,
131
+ mediaType: 'application/json',
132
+ });
133
+ }
134
+ /**
135
+ * get resource_type
136
+ * @returns ResourceType resource_type deleted
137
+ * @throws ApiError
138
+ */
139
+ static getResourceType({ workspace, path, }) {
140
+ return __request(OpenAPI, {
141
+ method: 'GET',
142
+ url: '/w/{workspace}/resources/type/get/{path}',
143
+ path: {
144
+ 'workspace': workspace,
145
+ 'path': path,
146
+ },
147
+ });
148
+ }
149
+ /**
150
+ * list resource_types
151
+ * @returns ResourceType resource_type list
152
+ * @throws ApiError
153
+ */
154
+ static listResourceType({ workspace, }) {
155
+ return __request(OpenAPI, {
156
+ method: 'GET',
157
+ url: '/w/{workspace}/resources/type/list',
158
+ path: {
159
+ 'workspace': workspace,
160
+ },
161
+ });
162
+ }
163
+ /**
164
+ * list resource_types names
165
+ * @returns string resource_type list
166
+ * @throws ApiError
167
+ */
168
+ static listResourceTypeNames({ workspace, }) {
169
+ return __request(OpenAPI, {
170
+ method: 'GET',
171
+ url: '/w/{workspace}/resources/type/listnames',
172
+ path: {
173
+ 'workspace': workspace,
174
+ },
175
+ });
176
+ }
177
+ }
@@ -0,0 +1,100 @@
1
+ import { OpenAPI } from '../core/OpenAPI';
2
+ import { request as __request } from '../core/request';
3
+ export class ScheduleService {
4
+ /**
5
+ * preview schedule
6
+ * @returns string the preview of the next 10 time this schedule would apply to
7
+ * @throws ApiError
8
+ */
9
+ static previewSchedule({ requestBody, }) {
10
+ return __request(OpenAPI, {
11
+ method: 'POST',
12
+ url: '/schedules/preview',
13
+ body: requestBody,
14
+ mediaType: 'application/json',
15
+ });
16
+ }
17
+ /**
18
+ * create schedule
19
+ * @returns string schedule created
20
+ * @throws ApiError
21
+ */
22
+ static createSchedule({ workspace, requestBody, }) {
23
+ return __request(OpenAPI, {
24
+ method: 'POST',
25
+ url: '/w/{workspace}/schedules/create',
26
+ path: {
27
+ 'workspace': workspace,
28
+ },
29
+ body: requestBody,
30
+ mediaType: 'application/json',
31
+ });
32
+ }
33
+ /**
34
+ * update schedule
35
+ * @returns string schedule updated
36
+ * @throws ApiError
37
+ */
38
+ static updateSchedule({ workspace, path, requestBody, }) {
39
+ return __request(OpenAPI, {
40
+ method: 'POST',
41
+ url: '/w/{workspace}/schedules/update/{path}',
42
+ path: {
43
+ 'workspace': workspace,
44
+ 'path': path,
45
+ },
46
+ body: requestBody,
47
+ mediaType: 'application/json',
48
+ });
49
+ }
50
+ /**
51
+ * set enabled schedule
52
+ * @returns string schedule enabled set
53
+ * @throws ApiError
54
+ */
55
+ static setScheduleEnabled({ workspace, path, requestBody, }) {
56
+ return __request(OpenAPI, {
57
+ method: 'POST',
58
+ url: '/w/{workspace}/schedules/setenabled/{path}',
59
+ path: {
60
+ 'workspace': workspace,
61
+ 'path': path,
62
+ },
63
+ body: requestBody,
64
+ mediaType: 'application/json',
65
+ });
66
+ }
67
+ /**
68
+ * get schedule
69
+ * @returns Schedule schedule deleted
70
+ * @throws ApiError
71
+ */
72
+ static getSchedule({ workspace, path, }) {
73
+ return __request(OpenAPI, {
74
+ method: 'GET',
75
+ url: '/w/{workspace}/schedules/get/{path}',
76
+ path: {
77
+ 'workspace': workspace,
78
+ 'path': path,
79
+ },
80
+ });
81
+ }
82
+ /**
83
+ * list schedules
84
+ * @returns Schedule schedule list
85
+ * @throws ApiError
86
+ */
87
+ static listSchedules({ workspace, page, perPage, }) {
88
+ return __request(OpenAPI, {
89
+ method: 'GET',
90
+ url: '/w/{workspace}/schedules/list',
91
+ path: {
92
+ 'workspace': workspace,
93
+ },
94
+ query: {
95
+ 'page': page,
96
+ 'per_page': perPage,
97
+ },
98
+ });
99
+ }
100
+ }
@@ -0,0 +1,188 @@
1
+ import { OpenAPI } from '../core/OpenAPI';
2
+ import { request as __request } from '../core/request';
3
+ export class ScriptService {
4
+ /**
5
+ * list all available hub scripts
6
+ * @returns any hub scripts list
7
+ * @throws ApiError
8
+ */
9
+ static listHubScripts() {
10
+ return __request(OpenAPI, {
11
+ method: 'GET',
12
+ url: '/scripts/hub/list',
13
+ });
14
+ }
15
+ /**
16
+ * get hub script content by path
17
+ * @returns string script details
18
+ * @throws ApiError
19
+ */
20
+ static getHubScriptContentByPath({ path, }) {
21
+ return __request(OpenAPI, {
22
+ method: 'GET',
23
+ url: '/scripts/hub/get/{path}',
24
+ path: {
25
+ 'path': path,
26
+ },
27
+ });
28
+ }
29
+ /**
30
+ * list all available scripts
31
+ * @returns Script All available scripts
32
+ * @throws ApiError
33
+ */
34
+ static listScripts({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, firstParentHash, lastParentHash, parentHash, showArchived, isTemplate, }) {
35
+ return __request(OpenAPI, {
36
+ method: 'GET',
37
+ url: '/w/{workspace}/scripts/list',
38
+ path: {
39
+ 'workspace': workspace,
40
+ },
41
+ query: {
42
+ 'page': page,
43
+ 'per_page': perPage,
44
+ 'order_desc': orderDesc,
45
+ 'created_by': createdBy,
46
+ 'path_start': pathStart,
47
+ 'path_exact': pathExact,
48
+ 'first_parent_hash': firstParentHash,
49
+ 'last_parent_hash': lastParentHash,
50
+ 'parent_hash': parentHash,
51
+ 'show_archived': showArchived,
52
+ 'is_template': isTemplate,
53
+ },
54
+ });
55
+ }
56
+ /**
57
+ * create script
58
+ * @returns string script created
59
+ * @throws ApiError
60
+ */
61
+ static createScript({ workspace, requestBody, }) {
62
+ return __request(OpenAPI, {
63
+ method: 'POST',
64
+ url: '/w/{workspace}/scripts/create',
65
+ path: {
66
+ 'workspace': workspace,
67
+ },
68
+ body: requestBody,
69
+ mediaType: 'application/json',
70
+ });
71
+ }
72
+ /**
73
+ * inspect python code to infer jsonschema of arguments
74
+ * @returns MainArgSignature parsed args
75
+ * @throws ApiError
76
+ */
77
+ static pythonToJsonschema({ requestBody, }) {
78
+ return __request(OpenAPI, {
79
+ method: 'POST',
80
+ url: '/scripts/python/tojsonschema',
81
+ body: requestBody,
82
+ mediaType: 'application/json',
83
+ });
84
+ }
85
+ /**
86
+ * inspect deno code to infer jsonschema of arguments
87
+ * @returns MainArgSignature parsed args
88
+ * @throws ApiError
89
+ */
90
+ static denoToJsonschema({ requestBody, }) {
91
+ return __request(OpenAPI, {
92
+ method: 'POST',
93
+ url: '/scripts/deno/tojsonschema',
94
+ body: requestBody,
95
+ mediaType: 'application/json',
96
+ });
97
+ }
98
+ /**
99
+ * archive script by path
100
+ * @returns string script archived
101
+ * @throws ApiError
102
+ */
103
+ static archiveScriptByPath({ workspace, path, }) {
104
+ return __request(OpenAPI, {
105
+ method: 'POST',
106
+ url: '/w/{workspace}/scripts/archive/p/{path}',
107
+ path: {
108
+ 'workspace': workspace,
109
+ 'path': path,
110
+ },
111
+ });
112
+ }
113
+ /**
114
+ * archive script by hash
115
+ * @returns Script script details
116
+ * @throws ApiError
117
+ */
118
+ static archiveScriptByHash({ workspace, hash, }) {
119
+ return __request(OpenAPI, {
120
+ method: 'POST',
121
+ url: '/w/{workspace}/scripts/archive/h/{hash}',
122
+ path: {
123
+ 'workspace': workspace,
124
+ 'hash': hash,
125
+ },
126
+ });
127
+ }
128
+ /**
129
+ * delete script by hash (erase content but keep hash)
130
+ * @returns Script script details
131
+ * @throws ApiError
132
+ */
133
+ static deleteScriptByHash({ workspace, hash, }) {
134
+ return __request(OpenAPI, {
135
+ method: 'POST',
136
+ url: '/w/{workspace}/scripts/delete/h/{hash}',
137
+ path: {
138
+ 'workspace': workspace,
139
+ 'hash': hash,
140
+ },
141
+ });
142
+ }
143
+ /**
144
+ * get script by path
145
+ * @returns Script script details
146
+ * @throws ApiError
147
+ */
148
+ static getScriptByPath({ workspace, path, }) {
149
+ return __request(OpenAPI, {
150
+ method: 'GET',
151
+ url: '/w/{workspace}/scripts/get/p/{path}',
152
+ path: {
153
+ 'workspace': workspace,
154
+ 'path': path,
155
+ },
156
+ });
157
+ }
158
+ /**
159
+ * get script by hash
160
+ * @returns Script script details
161
+ * @throws ApiError
162
+ */
163
+ static getScriptByHash({ workspace, hash, }) {
164
+ return __request(OpenAPI, {
165
+ method: 'GET',
166
+ url: '/w/{workspace}/scripts/get/h/{hash}',
167
+ path: {
168
+ 'workspace': workspace,
169
+ 'hash': hash,
170
+ },
171
+ });
172
+ }
173
+ /**
174
+ * get script deployment status
175
+ * @returns any script details
176
+ * @throws ApiError
177
+ */
178
+ static getScriptDeploymentStatus({ workspace, hash, }) {
179
+ return __request(OpenAPI, {
180
+ method: 'GET',
181
+ url: '/w/{workspace}/scripts/deployment_status/h/{hash}',
182
+ path: {
183
+ 'workspace': workspace,
184
+ 'hash': hash,
185
+ },
186
+ });
187
+ }
188
+ }
@@ -0,0 +1,26 @@
1
+ import { OpenAPI } from '../core/OpenAPI';
2
+ import { request as __request } from '../core/request';
3
+ export class SettingsService {
4
+ /**
5
+ * get backend version
6
+ * @returns string git version of backend
7
+ * @throws ApiError
8
+ */
9
+ static backendVersion() {
10
+ return __request(OpenAPI, {
11
+ method: 'GET',
12
+ url: '/version',
13
+ });
14
+ }
15
+ /**
16
+ * get openapi yaml spec
17
+ * @returns string openapi yaml file content
18
+ * @throws ApiError
19
+ */
20
+ static getOpenApiYaml() {
21
+ return __request(OpenAPI, {
22
+ method: 'GET',
23
+ url: '/openapi.yaml',
24
+ });
25
+ }
26
+ }