@stack-spot/portal-network 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 (160) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/package.json +7 -6
  3. package/src/apis.json +2 -10
  4. package/src/client/account.ts +44 -2
  5. package/src/error/CanceledError.ts +3 -0
  6. package/src/error/DefaultAPIError.ts +27 -1
  7. package/src/error/StackspotAPIError.ts +33 -1
  8. package/src/network/AutoInfiniteQuery.ts +97 -0
  9. package/src/network/AutoQuery.ts +2 -1
  10. package/src/network/ManualInfiniteQuery.ts +88 -0
  11. package/src/network/ManualQuery.ts +2 -2
  12. package/src/network/NetworkClient.ts +79 -13
  13. package/src/network/ReactQueryNetworkClient.ts +130 -12
  14. package/src/network/react-query-client.ts +3 -0
  15. package/src/network/types.ts +208 -2
  16. package/.generate-api.failed.json +0 -1
  17. package/dist/api/account.d.ts +0 -2368
  18. package/dist/api/account.d.ts.map +0 -1
  19. package/dist/api/account.js +0 -1521
  20. package/dist/api/account.js.map +0 -1
  21. package/dist/api/ai.d.ts +0 -1432
  22. package/dist/api/ai.d.ts.map +0 -1
  23. package/dist/api/ai.js +0 -1342
  24. package/dist/api/ai.js.map +0 -1
  25. package/dist/api/apiRuntime.d.ts +0 -922
  26. package/dist/api/apiRuntime.d.ts.map +0 -1
  27. package/dist/api/apiRuntime.js +0 -599
  28. package/dist/api/apiRuntime.js.map +0 -1
  29. package/dist/api/cloudAccount.d.ts +0 -473
  30. package/dist/api/cloudAccount.d.ts.map +0 -1
  31. package/dist/api/cloudAccount.js +0 -300
  32. package/dist/api/cloudAccount.js.map +0 -1
  33. package/dist/api/cloudServices.d.ts +0 -1233
  34. package/dist/api/cloudServices.d.ts.map +0 -1
  35. package/dist/api/cloudServices.js +0 -715
  36. package/dist/api/cloudServices.js.map +0 -1
  37. package/dist/api/insights.d.ts +0 -123
  38. package/dist/api/insights.d.ts.map +0 -1
  39. package/dist/api/insights.js +0 -112
  40. package/dist/api/insights.js.map +0 -1
  41. package/dist/api/plugin.d.ts +0 -368
  42. package/dist/api/plugin.d.ts.map +0 -1
  43. package/dist/api/plugin.js +0 -218
  44. package/dist/api/plugin.js.map +0 -1
  45. package/dist/api/serviceCatalog.d.ts +0 -737
  46. package/dist/api/serviceCatalog.d.ts.map +0 -1
  47. package/dist/api/serviceCatalog.js +0 -611
  48. package/dist/api/serviceCatalog.js.map +0 -1
  49. package/dist/api/workflows.d.ts +0 -366
  50. package/dist/api/workflows.d.ts.map +0 -1
  51. package/dist/api/workflows.js +0 -175
  52. package/dist/api/workflows.js.map +0 -1
  53. package/dist/api/workspace.js +0 -1476
  54. package/dist/api/workspace.js.map +0 -1
  55. package/dist/api/workspaceManager.d.ts +0 -1121
  56. package/dist/api/workspaceManager.d.ts.map +0 -1
  57. package/dist/api/workspaceManager.js +0 -357
  58. package/dist/api/workspaceManager.js.map +0 -1
  59. package/dist/api/workspaceSearchEngine.d.ts +0 -93
  60. package/dist/api/workspaceSearchEngine.d.ts.map +0 -1
  61. package/dist/api/workspaceSearchEngine.js +0 -55
  62. package/dist/api/workspaceSearchEngine.js.map +0 -1
  63. package/dist/apis.json +0 -129
  64. package/dist/client/account.d.ts +0 -46
  65. package/dist/client/account.d.ts.map +0 -1
  66. package/dist/client/account.js +0 -104
  67. package/dist/client/account.js.map +0 -1
  68. package/dist/error/CanceledError.d.ts +0 -5
  69. package/dist/error/CanceledError.d.ts.map +0 -1
  70. package/dist/error/CanceledError.js +0 -7
  71. package/dist/error/CanceledError.js.map +0 -1
  72. package/dist/error/DefaultAPIError.d.ts +0 -9
  73. package/dist/error/DefaultAPIError.d.ts.map +0 -1
  74. package/dist/error/DefaultAPIError.js +0 -58
  75. package/dist/error/DefaultAPIError.js.map +0 -1
  76. package/dist/error/StackspotAPIError.d.ts +0 -19
  77. package/dist/error/StackspotAPIError.d.ts.map +0 -1
  78. package/dist/error/StackspotAPIError.js +0 -39
  79. package/dist/error/StackspotAPIError.js.map +0 -1
  80. package/dist/error/dictionary/account.d.ts +0 -55
  81. package/dist/error/dictionary/account.d.ts.map +0 -1
  82. package/dist/error/dictionary/account.js +0 -55
  83. package/dist/error/dictionary/account.js.map +0 -1
  84. package/dist/error/dictionary/action.d.ts +0 -163
  85. package/dist/error/dictionary/action.d.ts.map +0 -1
  86. package/dist/error/dictionary/action.js +0 -163
  87. package/dist/error/dictionary/action.js.map +0 -1
  88. package/dist/error/dictionary/base.d.ts +0 -21
  89. package/dist/error/dictionary/base.d.ts.map +0 -1
  90. package/dist/error/dictionary/base.js +0 -21
  91. package/dist/error/dictionary/base.js.map +0 -1
  92. package/dist/error/dictionary/cnt-fields.d.ts +0 -13
  93. package/dist/error/dictionary/cnt-fields.d.ts.map +0 -1
  94. package/dist/error/dictionary/cnt-fields.js +0 -13
  95. package/dist/error/dictionary/cnt-fields.js.map +0 -1
  96. package/dist/error/dictionary/cnt.d.ts +0 -79
  97. package/dist/error/dictionary/cnt.d.ts.map +0 -1
  98. package/dist/error/dictionary/cnt.js +0 -79
  99. package/dist/error/dictionary/cnt.js.map +0 -1
  100. package/dist/error/dictionary/rte.d.ts +0 -23
  101. package/dist/error/dictionary/rte.d.ts.map +0 -1
  102. package/dist/error/dictionary/rte.js +0 -23
  103. package/dist/error/dictionary/rte.js.map +0 -1
  104. package/dist/error/dictionary/rtm.d.ts +0 -9
  105. package/dist/error/dictionary/rtm.d.ts.map +0 -1
  106. package/dist/error/dictionary/rtm.js +0 -9
  107. package/dist/error/dictionary/rtm.js.map +0 -1
  108. package/dist/error/dictionary/workspace-fields.d.ts +0 -9
  109. package/dist/error/dictionary/workspace-fields.d.ts.map +0 -1
  110. package/dist/error/dictionary/workspace-fields.js +0 -9
  111. package/dist/error/dictionary/workspace-fields.js.map +0 -1
  112. package/dist/error/dictionary/workspace.d.ts +0 -99
  113. package/dist/error/dictionary/workspace.d.ts.map +0 -1
  114. package/dist/error/dictionary/workspace.js +0 -99
  115. package/dist/error/dictionary/workspace.js.map +0 -1
  116. package/dist/index.d.ts +0 -6
  117. package/dist/index.d.ts.map +0 -1
  118. package/dist/index.js +0 -6
  119. package/dist/index.js.map +0 -1
  120. package/dist/network/AutoMutation.d.ts +0 -10
  121. package/dist/network/AutoMutation.d.ts.map +0 -1
  122. package/dist/network/AutoMutation.js +0 -20
  123. package/dist/network/AutoMutation.js.map +0 -1
  124. package/dist/network/AutoOperation.d.ts +0 -19
  125. package/dist/network/AutoOperation.d.ts.map +0 -1
  126. package/dist/network/AutoOperation.js +0 -99
  127. package/dist/network/AutoOperation.js.map +0 -1
  128. package/dist/network/AutoQuery.d.ts +0 -19
  129. package/dist/network/AutoQuery.d.ts.map +0 -1
  130. package/dist/network/AutoQuery.js +0 -70
  131. package/dist/network/AutoQuery.js.map +0 -1
  132. package/dist/network/ManualMutation.d.ts +0 -11
  133. package/dist/network/ManualMutation.d.ts.map +0 -1
  134. package/dist/network/ManualMutation.js +0 -32
  135. package/dist/network/ManualMutation.js.map +0 -1
  136. package/dist/network/ManualOperation.d.ts +0 -13
  137. package/dist/network/ManualOperation.d.ts.map +0 -1
  138. package/dist/network/ManualOperation.js +0 -53
  139. package/dist/network/ManualOperation.js.map +0 -1
  140. package/dist/network/ManualQuery.d.ts +0 -20
  141. package/dist/network/ManualQuery.d.ts.map +0 -1
  142. package/dist/network/ManualQuery.js +0 -77
  143. package/dist/network/ManualQuery.js.map +0 -1
  144. package/dist/network/NetworkClient.d.ts +0 -20
  145. package/dist/network/NetworkClient.d.ts.map +0 -1
  146. package/dist/network/NetworkClient.js +0 -85
  147. package/dist/network/NetworkClient.js.map +0 -1
  148. package/dist/network/ReactQueryNetworkClient.d.ts +0 -16
  149. package/dist/network/ReactQueryNetworkClient.d.ts.map +0 -1
  150. package/dist/network/ReactQueryNetworkClient.js +0 -125
  151. package/dist/network/ReactQueryNetworkClient.js.map +0 -1
  152. package/dist/network/react-query-client.d.ts +0 -3
  153. package/dist/network/react-query-client.d.ts.map +0 -1
  154. package/dist/network/react-query-client.js +0 -3
  155. package/dist/network/react-query-client.js.map +0 -1
  156. package/dist/network/types.d.ts +0 -55
  157. package/dist/network/types.d.ts.map +0 -1
  158. package/dist/network/types.js +0 -2
  159. package/dist/network/types.js.map +0 -1
  160. package/src/api/plugin.ts +0 -685
package/src/api/plugin.ts DELETED
@@ -1,685 +0,0 @@
1
- /**
2
- * Plugin API
3
- * 0.1.0
4
- * DO NOT MODIFY - This file has been generated using oazapfts.
5
- * See https://www.npmjs.com/package/oazapfts
6
- */
7
- import * as Oazapfts from "@oazapfts/runtime";
8
- import * as QS from "@oazapfts/runtime/query";
9
- export const defaults: Oazapfts.Defaults<Oazapfts.CustomHeaders> = {
10
- headers: {},
11
- baseUrl: "/",
12
- };
13
- const oazapfts = Oazapfts.runtime(defaults);
14
- export const servers = {};
15
- export type ValidationError = {
16
- loc: (string | number)[];
17
- msg: string;
18
- "type": string;
19
- };
20
- export type HttpValidationError = {
21
- detail?: ValidationError[];
22
- };
23
- export type BodyPublishServiceStudiosStudioSlugPluginsPluginSlugPost = {
24
- file: Blob;
25
- };
26
- export type ValidationExceptionTypes = "PLUGINAPI_3000_UNMAPPED" | "PLUGINAPI_3001_YAML_PARSE_ERROR" | "PLUGINAPI_3002_MARKDOWN_NOT_FOUND" | "PLUGINAPI_3003_YAML_NOT_FOUND" | "PLUGINAPI_3004_MORE_THAN_ONE_YAML_FOUNDED" | "PLUGINAPI_3005_KIND_VALIDATOR_FOUND" | "PLUGINAPI_3006_SCHEMA_NOT_FOUND" | "PLUGINAPI_3007_YAML_KIND_INVALID_VALUE" | "PLUGINAPI_3008_YAML_TYPE_INVALID_VALUE" | "PLUGINAPI_3009_YAML_SCHEMA_VERSION_INVALID_VALUE" | "PLUGINAPI_3010_YAML_FIELDS_ERROR" | "PLUGINAPI_3011_YAML_REQUIRED_FIELD" | "PLUGINAPI_3012_YAML_INVALID_FIELD_FORMAT" | "PLUGINAPI_3013_YAML_FIELD_MAX_LENGTH" | "PLUGINAPI_3014_YAML_FIELD_MIN_LENGTH" | "PLUGINAPI_3016_YAML_FIELD_INVALID_TYPE" | "PLUGINAPI_3017_TECH_SERVICE" | "PLUGINAPI_3018_INVALID_TECHNOLOGIES" | "PLUGINAPI_3019_MARKDOWN_EMPTY" | "PLUGINAPI_3020_SCHEMA_NOT_IMPLEMENTED" | "PLUGINAPI_3021_MARKDOWN_LINK_NOT_FOUND" | "PLUGINAPI_3022_PLUGIN_VERSION_NOT_FOUND" | "PLUGINAPI_3023_INVALID_CONNECTION_TYPE" | "PLUGINAPI_3024_INVALID_CONNECTION_OUTPUT_TYPE" | "PLUGINAPI_3025_DUPLICATED_CONNECTION_ALIAS" | "PLUGINAPI_3026_CONNECTION_INTERFACE_TYPE_SERVICE_OFF" | "PLUGINAPI_3027_INVALID_LINK_URL_TYPE" | "PLUGINAPI_3028_INVALID_CONNECTION_LINK_VARIABLE" | "PLUGINAPI_3029_INVALID_CONNECTION_ALIAS_LINK_VARIABLE" | "PLUGINAPI_3030_INVALID_CONNECTION_OUTPUT_LINK_VARIABLE" | "PLUGINAPI_3031_DUPLICATED_LINK_NAME" | "PLUGINAPI_3032_INPUT_NAME_AS_RESERVED_WORD" | "PLUGINAPI_3033_DYNAMIC_LINK_VARIABLE_NOT_FOUND" | "PLUGINAPI_3034_DYNAMIC_LINK_WITH_COMPLEX_JINJA_EXPRESSION" | "PLUGINAPI_3035_INVALID_DYNAMIC_LINK_URL";
27
- export type ValidationDetails = {
28
- code: ValidationExceptionTypes;
29
- field: string | null;
30
- details: string | null;
31
- values: any[] | null;
32
- };
33
- export type PublishResponse = {
34
- id: string;
35
- version_id: string;
36
- /** Warnings */
37
- warnings: ValidationDetails[];
38
- };
39
- export type ExceptionType = "PLUGINAPI_1000_PLUGIN_NOT_FOUND" | "PLUGINAPI_1002_PLUGIN_ALREADY_EXISTS" | "PLUGINAPI_1003_INVALID_JWT" | "PLUGINAPI_1004_ECR_UPLOAD_ERROR" | "PLUGINAPI_1005_ECR_PULL_ERROR" | "PLUGINAPI_1006_ECR_AUTH_ERROR" | "PLUGINAPI_1007_ACCOUNT_SERVICE_ERROR" | "PLUGINAPI_1008_SECRET_MANAGER_ERROR" | "PLUGINAPI_1009_STUDIO_ERROR" | "PLUGINAPI_1011_UNCOMPRESS_ZIP_ERROR" | "PLUGINAPI_1012_INVALID_PLUGIN_PATH_NAME" | "PLUGINAPI_1013_SAVE_ZIP_TMP_ERROR" | "PLUGINAPI_1014_DECODE_JWT_ERROR" | "PLUGINAPI_1015_INVALID_TYPE_ERROR" | "PLUGINAPI_1016_S3_PUT_ERROR" | "PLUGINAPI_1017_PLUGIN_VERSION_NOT_FOUND" | "PLUGINAPI_1018_STUDIO_ERROR" | "PLUGINAPI_1019_RELEASE_NOTES_REQUIRED_ERROR" | "PLUGINAPI_1020_SLUG_ALREADY_EXISTS" | "PLUGINAPI_1021_ECR_DELETE_ERROR" | "PLUGINAPI_1022_INVALID_SCHEMA_VERSION" | "PLUGINAPI_1023_INVALID_CONNECTION_OR_OUTPUT_TYPE" | "PLUGINAPI_1024_EMPTY_JUSTIFICATION_NOT_ALLOWED" | "PLUGINAPI_1025_DELETE_PLUGIN_VERSION_SERVICE_OFF" | "PLUGINAPI_1026_UPDATE_PLUGIN_VERSION_SERVICE_OFF" | "PLUGINAPI_1027_VALIDATE_PLUGIN_VERSION_SERVICE_OFF" | "PLUGINAPI_1028_PUBLISH_MAJOR_VERSION_ERROR" | "PLUGINAPI_1029_AUTH_TOKEN_NOT_FOUND" | "PLUGINAPI_1031_FEATURE_REQUIREMENTS_NOT_ALLOWED" | "PLUGINAPI_2000_BAD_REQUEST" | "PLUGINAPI_3000_VALIDATION_ERROR" | "PLUGINAPI_5000_UNEXPECTED_ERROR" | "PLUGINAPI_4000_FORBIDDEN_ERROR" | "PLUGINAPI_5003_HEALTHCHECK_ERROR";
40
- export type BadRequestExceptionTypes = "PLUGINAPI_2001_BAD_REQUEST_REQUIRED_FIELD" | "PLUGINAPI_2002_BAD_REQUEST_EMPTY_FIELD_NOT_ALLOWED" | "PLUGINAPI_2003_BAD_REQUEST_TYPE_FIELD_NOT_ALLOWED" | "PLUGINAPI_2004_BAD_REQUEST_VALUE_FIELD_NOT_ALLOWED" | "PLUGINAPI_2006_BAD_REQUEST_VALUE_FIELD_MAX_LENGTH" | "PLUGINAPI_2007_BAD_REQUEST_VALUE_FIELD_MIN_LENGTH" | "PLUGINAPI_2007_BAD_REQUEST_VALUE_REGEX_DOESNT_MATCH" | "PLUGINAPI_2999_BAD_REQUEST_UNMAPPED";
41
- export type InvalidPayloadDetails = {
42
- code: BadRequestExceptionTypes;
43
- field: string | null;
44
- };
45
- export type InvalidPayloadHttpErrorResponse = {
46
- status: string;
47
- code: ExceptionType;
48
- details: string;
49
- validationDetails: InvalidPayloadDetails[];
50
- };
51
- export type HttpErrorResponse = {
52
- status: string;
53
- code: ExceptionType;
54
- details: string;
55
- };
56
- export type PluginValidationHttpErrorResponse = {
57
- status: string;
58
- code: ExceptionType;
59
- details: string;
60
- validationDetails: ValidationDetails[];
61
- };
62
- export type PluginType = "APP" | "INFRA";
63
- export type ConditionResponse = {
64
- variable: string;
65
- operator: string;
66
- value: string | any[] | boolean | number;
67
- };
68
- export type InputResponse = {
69
- label: string;
70
- name: string;
71
- "type": string;
72
- required: boolean;
73
- pattern: string | null;
74
- help: string | null;
75
- "default": string | string[] | boolean | number | null;
76
- items: string[] | null;
77
- condition: ConditionResponse | null;
78
- isGlobal: boolean;
79
- };
80
- export type PluginRequiresResponse = {
81
- plugin: string[] | null;
82
- connectionInterface: string[] | null;
83
- };
84
- export type PluginGeneratesLinkResponse = {
85
- name: string;
86
- url: string;
87
- imageUrl: string | null;
88
- };
89
- export type PluginGeneratesResponse = {
90
- connectionInterface: string[] | null;
91
- links: PluginGeneratesLinkResponse[] | null;
92
- };
93
- export type GetPluginResponse = {
94
- id: string;
95
- pluginVersionId: string;
96
- "type": PluginType;
97
- version: string;
98
- picture: string | null;
99
- name: string;
100
- slug: string;
101
- displayName: string;
102
- description: string;
103
- technologies: string[] | null;
104
- compatibility: string[] | null;
105
- repository: string | null;
106
- requirements: string | null;
107
- about: string | null;
108
- usage: string | null;
109
- implementation: string | null;
110
- command: string;
111
- releaseNotes: string;
112
- teamSlug?: string;
113
- appAllowed: boolean;
114
- createdAt: string;
115
- createdBy: string;
116
- inputs: InputResponse[] | null;
117
- inputsEnvs: InputResponse[] | null;
118
- computedInputs: object | null;
119
- requires: PluginRequiresResponse | null;
120
- generates: PluginGeneratesResponse | null;
121
- qualifier: string;
122
- studioSlug: string;
123
- accountSlug: string;
124
- };
125
- export type PluginRequiresResponse2 = {
126
- plugin: string[] | null;
127
- connectionInterface: string[] | null;
128
- };
129
- export type PluginGeneratesResponse2 = {
130
- connectionInterface: string[] | null;
131
- links: PluginGeneratesLinkResponse[] | null;
132
- };
133
- export type ListPluginResponse = {
134
- id: string;
135
- picture: string | null;
136
- "type": PluginType;
137
- version: string;
138
- versionId: string;
139
- name: string;
140
- displayName: string;
141
- slug: string;
142
- description: string;
143
- teamSlug?: string;
144
- appAllowed: boolean;
145
- studioSlug: string;
146
- accountSlug: string;
147
- requires: PluginRequiresResponse2 | null;
148
- generates: PluginGeneratesResponse2 | null;
149
- isDocumented: boolean;
150
- qualifier: string;
151
- };
152
- export type ListPluginVersionResponse = {
153
- id: string;
154
- version: string;
155
- displayName: string;
156
- description: string;
157
- pluginId: string;
158
- createdBy: string;
159
- createdAt: string;
160
- status: string;
161
- };
162
- export type PluginRequiresResponse3 = {
163
- plugin?: string[] | null;
164
- connectionInterface?: string[] | null;
165
- };
166
- export type PluginGeneratesResponse3 = {
167
- connectionInterface?: string[] | null;
168
- links: PluginGeneratesLinkResponse[] | null;
169
- };
170
- export type ListPluginVersionByIdResponse = {
171
- id: string;
172
- pluginId: string;
173
- "type": PluginType;
174
- version: string;
175
- name: string;
176
- slug: string;
177
- displayName: string;
178
- description: string;
179
- teamSlug?: string;
180
- appAllowed: boolean;
181
- studioSlug: string;
182
- accountSlug: string;
183
- requires: PluginRequiresResponse3 | null;
184
- generates: PluginGeneratesResponse3 | null;
185
- status: string;
186
- };
187
- export type TechnologyResponse = {
188
- id: string;
189
- name: string;
190
- };
191
- export type InputResponse2 = {
192
- label: string;
193
- name: string;
194
- "type": string;
195
- required: boolean;
196
- pattern: string | null;
197
- help: string | null;
198
- "default": string | string[] | boolean | number | null;
199
- items: string[] | null;
200
- condition: ConditionResponse | null;
201
- inputEnv: boolean;
202
- isGlobal: boolean;
203
- };
204
- export type PluginRequiresResponse4 = {
205
- plugin: string[] | null;
206
- connectionInterface: string[] | null;
207
- };
208
- export type PluginVersions = {
209
- id: string;
210
- displayName: string;
211
- version: string;
212
- description: string | null;
213
- appAllowed: boolean;
214
- requires: PluginRequiresResponse4 | null;
215
- };
216
- export type ListPluginByConnectionInterfaceResponse = {
217
- accountSlug: string;
218
- studioSlug: string;
219
- pluginSlug: string;
220
- pluginId: string;
221
- /** Plugin versions list */
222
- pluginVersions: PluginVersions[];
223
- };
224
- export type HealthCheckResponse = {
225
- details: string;
226
- };
227
- /**
228
- * Import Service
229
- */
230
- export function importServiceStudiosStudioSlugPluginsPluginSlugVersionsVersionDownloadGet({ studioSlug, pluginSlug, version, authorization, xWorkspaceId }: {
231
- studioSlug: string;
232
- pluginSlug: string;
233
- version: string;
234
- authorization: string;
235
- xWorkspaceId?: string;
236
- }, opts?: Oazapfts.RequestOpts) {
237
- return oazapfts.ok(oazapfts.fetchJson<{
238
- status: 200;
239
- data: any;
240
- } | {
241
- status: 422;
242
- data: HttpValidationError;
243
- }>(`/studios/${encodeURIComponent(studioSlug)}/plugins/${encodeURIComponent(pluginSlug)}/versions/${encodeURIComponent(version)}/download`, {
244
- ...opts,
245
- headers: oazapfts.mergeHeaders(opts?.headers, {
246
- authorization,
247
- "x-workspace-id": xWorkspaceId
248
- })
249
- }));
250
- }
251
- /**
252
- * Import Service Base64
253
- */
254
- export function importServiceBase64StudiosStudioSlugPluginsPluginSlugVersionsVersionDownloadBase64Get({ studioSlug, pluginSlug, version, authorization, xWorkspaceId }: {
255
- studioSlug: string;
256
- pluginSlug: string;
257
- version: string;
258
- authorization: string;
259
- xWorkspaceId?: string;
260
- }, opts?: Oazapfts.RequestOpts) {
261
- return oazapfts.ok(oazapfts.fetchJson<{
262
- status: 200;
263
- data: any;
264
- } | {
265
- status: 422;
266
- data: HttpValidationError;
267
- }>(`/studios/${encodeURIComponent(studioSlug)}/plugins/${encodeURIComponent(pluginSlug)}/versions/${encodeURIComponent(version)}/download/base64`, {
268
- ...opts,
269
- headers: oazapfts.mergeHeaders(opts?.headers, {
270
- authorization,
271
- "x-workspace-id": xWorkspaceId
272
- })
273
- }));
274
- }
275
- /**
276
- * Import Service
277
- */
278
- export function importServiceAccountsAccountSlugStudiosStudioSlugPluginsPluginSlugVersionsVersionDownloadGet({ accountSlug, studioSlug, pluginSlug, version, authorization, xWorkspaceId }: {
279
- accountSlug: string;
280
- studioSlug: string;
281
- pluginSlug: string;
282
- version: string;
283
- authorization: string;
284
- xWorkspaceId?: string;
285
- }, opts?: Oazapfts.RequestOpts) {
286
- return oazapfts.ok(oazapfts.fetchJson<{
287
- status: 200;
288
- data: any;
289
- } | {
290
- status: 422;
291
- data: HttpValidationError;
292
- }>(`/accounts/${encodeURIComponent(accountSlug)}/studios/${encodeURIComponent(studioSlug)}/plugins/${encodeURIComponent(pluginSlug)}/versions/${encodeURIComponent(version)}/download`, {
293
- ...opts,
294
- headers: oazapfts.mergeHeaders(opts?.headers, {
295
- authorization,
296
- "x-workspace-id": xWorkspaceId
297
- })
298
- }));
299
- }
300
- /**
301
- * Publish Service
302
- */
303
- export function publishServiceStudiosStudioSlugPluginsPluginSlugPost({ studioSlug, pluginSlug, authorization, bodyPublishServiceStudiosStudioSlugPluginsPluginSlugPost }: {
304
- studioSlug: string;
305
- pluginSlug: string;
306
- authorization: string;
307
- bodyPublishServiceStudiosStudioSlugPluginsPluginSlugPost: BodyPublishServiceStudiosStudioSlugPluginsPluginSlugPost;
308
- }, opts?: Oazapfts.RequestOpts) {
309
- return oazapfts.ok(oazapfts.fetchJson<{
310
- status: 200;
311
- data: PublishResponse;
312
- } | {
313
- status: 400;
314
- data: InvalidPayloadHttpErrorResponse;
315
- } | {
316
- status: 404;
317
- data: HttpErrorResponse;
318
- } | {
319
- status: 409;
320
- data: HttpErrorResponse;
321
- } | {
322
- status: 422;
323
- data: PluginValidationHttpErrorResponse;
324
- } | {
325
- status: 500;
326
- data: HttpErrorResponse;
327
- } | {
328
- status: 503;
329
- data: HttpErrorResponse;
330
- }>(`/studios/${encodeURIComponent(studioSlug)}/plugins/${encodeURIComponent(pluginSlug)}`, oazapfts.multipart({
331
- ...opts,
332
- method: "POST",
333
- body: bodyPublishServiceStudiosStudioSlugPluginsPluginSlugPost,
334
- headers: oazapfts.mergeHeaders(opts?.headers, {
335
- authorization
336
- })
337
- })));
338
- }
339
- /**
340
- * Get Plugin Service
341
- */
342
- export function getPluginServiceStudiosStudioSlugPluginsPluginSlugGet({ studioSlug, pluginSlug, version, authorization, xWorkspaceId }: {
343
- studioSlug: string;
344
- pluginSlug: string;
345
- version?: string;
346
- authorization: string;
347
- xWorkspaceId?: string;
348
- }, opts?: Oazapfts.RequestOpts) {
349
- return oazapfts.ok(oazapfts.fetchJson<{
350
- status: 200;
351
- data: GetPluginResponse;
352
- } | {
353
- status: 400;
354
- data: InvalidPayloadHttpErrorResponse;
355
- } | {
356
- status: 404;
357
- data: HttpErrorResponse;
358
- } | {
359
- status: 422;
360
- data: HttpValidationError;
361
- }>(`/studios/${encodeURIComponent(studioSlug)}/plugins/${encodeURIComponent(pluginSlug)}${QS.query(QS.explode({
362
- version
363
- }))}`, {
364
- ...opts,
365
- headers: oazapfts.mergeHeaders(opts?.headers, {
366
- authorization,
367
- "x-workspace-id": xWorkspaceId
368
- })
369
- }));
370
- }
371
- /**
372
- * Get Plugin Service
373
- */
374
- export function getPluginServiceAccountsAccountSlugStudiosStudioSlugPluginsPluginSlugGet({ accountSlug, studioSlug, pluginSlug, version, authorization, xWorkspaceId }: {
375
- accountSlug: string;
376
- studioSlug: string;
377
- pluginSlug: string;
378
- version?: string;
379
- authorization: string;
380
- xWorkspaceId?: string;
381
- }, opts?: Oazapfts.RequestOpts) {
382
- return oazapfts.ok(oazapfts.fetchJson<{
383
- status: 200;
384
- data: GetPluginResponse;
385
- } | {
386
- status: 400;
387
- data: InvalidPayloadHttpErrorResponse;
388
- } | {
389
- status: 404;
390
- data: HttpErrorResponse;
391
- } | {
392
- status: 422;
393
- data: HttpValidationError;
394
- }>(`/accounts/${encodeURIComponent(accountSlug)}/studios/${encodeURIComponent(studioSlug)}/plugins/${encodeURIComponent(pluginSlug)}${QS.query(QS.explode({
395
- version
396
- }))}`, {
397
- ...opts,
398
- headers: oazapfts.mergeHeaders(opts?.headers, {
399
- authorization,
400
- "x-workspace-id": xWorkspaceId
401
- })
402
- }));
403
- }
404
- /**
405
- * List Plugin Service
406
- */
407
- export function listPluginServicePluginsGet({ studioSlug, name, $type, authorization, xWorkspaceId }: {
408
- studioSlug?: string;
409
- name?: string;
410
- $type?: string;
411
- authorization: string;
412
- xWorkspaceId?: string;
413
- }, opts?: Oazapfts.RequestOpts) {
414
- return oazapfts.ok(oazapfts.fetchJson<{
415
- status: 200;
416
- data: ListPluginResponse[];
417
- } | {
418
- status: 422;
419
- data: HttpValidationError;
420
- } | {
421
- status: 500;
422
- data: HttpErrorResponse;
423
- } | {
424
- status: 503;
425
- data: HttpErrorResponse;
426
- }>(`/plugins${QS.query(QS.explode({
427
- studio_slug: studioSlug,
428
- name,
429
- "type": $type
430
- }))}`, {
431
- ...opts,
432
- headers: oazapfts.mergeHeaders(opts?.headers, {
433
- authorization,
434
- "x-workspace-id": xWorkspaceId
435
- })
436
- }));
437
- }
438
- /**
439
- * List Plugin Service
440
- */
441
- export function listPluginServiceAccountsAccountSlugPluginsGet({ accountSlug, studioSlug, name, $type, authorization, xWorkspaceId }: {
442
- accountSlug: string;
443
- studioSlug?: string;
444
- name?: string;
445
- $type?: string;
446
- authorization: string;
447
- xWorkspaceId?: string;
448
- }, opts?: Oazapfts.RequestOpts) {
449
- return oazapfts.ok(oazapfts.fetchJson<{
450
- status: 200;
451
- data: ListPluginResponse[];
452
- } | {
453
- status: 422;
454
- data: HttpValidationError;
455
- } | {
456
- status: 500;
457
- data: HttpErrorResponse;
458
- } | {
459
- status: 503;
460
- data: HttpErrorResponse;
461
- }>(`/accounts/${encodeURIComponent(accountSlug)}/plugins${QS.query(QS.explode({
462
- studio_slug: studioSlug,
463
- name,
464
- "type": $type
465
- }))}`, {
466
- ...opts,
467
- headers: oazapfts.mergeHeaders(opts?.headers, {
468
- authorization,
469
- "x-workspace-id": xWorkspaceId
470
- })
471
- }));
472
- }
473
- /**
474
- * List Plugin Version Service
475
- */
476
- export function listPluginVersionServiceStudiosStudioSlugPluginsPluginSlugVersionsGet({ studioSlug, pluginSlug, authorization, xWorkspaceId }: {
477
- studioSlug: string;
478
- pluginSlug: string;
479
- authorization: string;
480
- xWorkspaceId?: string;
481
- }, opts?: Oazapfts.RequestOpts) {
482
- return oazapfts.ok(oazapfts.fetchJson<{
483
- status: 200;
484
- data: ListPluginVersionResponse[];
485
- } | {
486
- status: 404;
487
- data: HttpErrorResponse;
488
- } | {
489
- status: 422;
490
- data: HttpValidationError;
491
- } | {
492
- status: 500;
493
- data: HttpErrorResponse;
494
- } | {
495
- status: 503;
496
- data: HttpErrorResponse;
497
- }>(`/studios/${encodeURIComponent(studioSlug)}/plugins/${encodeURIComponent(pluginSlug)}/versions`, {
498
- ...opts,
499
- headers: oazapfts.mergeHeaders(opts?.headers, {
500
- authorization,
501
- "x-workspace-id": xWorkspaceId
502
- })
503
- }));
504
- }
505
- /**
506
- * List Plugin Version Service
507
- */
508
- export function listPluginVersionServiceAccountsAccountSlugStudiosStudioSlugPluginsPluginSlugVersionsGet({ accountSlug, studioSlug, pluginSlug, authorization, xWorkspaceId }: {
509
- accountSlug: string;
510
- studioSlug: string;
511
- pluginSlug: string;
512
- authorization: string;
513
- xWorkspaceId?: string;
514
- }, opts?: Oazapfts.RequestOpts) {
515
- return oazapfts.ok(oazapfts.fetchJson<{
516
- status: 200;
517
- data: ListPluginVersionResponse[];
518
- } | {
519
- status: 404;
520
- data: HttpErrorResponse;
521
- } | {
522
- status: 422;
523
- data: HttpValidationError;
524
- } | {
525
- status: 500;
526
- data: HttpErrorResponse;
527
- } | {
528
- status: 503;
529
- data: HttpErrorResponse;
530
- }>(`/accounts/${encodeURIComponent(accountSlug)}/studios/${encodeURIComponent(studioSlug)}/plugins/${encodeURIComponent(pluginSlug)}/versions`, {
531
- ...opts,
532
- headers: oazapfts.mergeHeaders(opts?.headers, {
533
- authorization,
534
- "x-workspace-id": xWorkspaceId
535
- })
536
- }));
537
- }
538
- /**
539
- * List Plugin Version By Ids Service
540
- */
541
- export function listPluginVersionByIdsServicePluginsVersionsGet({ ids, authorization, xWorkspaceId }: {
542
- ids: string;
543
- authorization: string;
544
- xWorkspaceId?: string;
545
- }, opts?: Oazapfts.RequestOpts) {
546
- return oazapfts.ok(oazapfts.fetchJson<{
547
- status: 200;
548
- data: ListPluginVersionByIdResponse[];
549
- } | {
550
- status: 422;
551
- data: HttpValidationError;
552
- } | {
553
- status: 500;
554
- data: HttpErrorResponse;
555
- } | {
556
- status: 503;
557
- data: HttpErrorResponse;
558
- }>(`/plugins/versions${QS.query(QS.explode({
559
- ids
560
- }))}`, {
561
- ...opts,
562
- headers: oazapfts.mergeHeaders(opts?.headers, {
563
- authorization,
564
- "x-workspace-id": xWorkspaceId
565
- })
566
- }));
567
- }
568
- /**
569
- * Get Technology Service
570
- */
571
- export function getTechnologyServiceTechnologiesGet(opts?: Oazapfts.RequestOpts) {
572
- return oazapfts.ok(oazapfts.fetchJson<{
573
- status: 200;
574
- data: TechnologyResponse[];
575
- }>("/technologies", {
576
- ...opts
577
- }));
578
- }
579
- /**
580
- * List Input Plugin Version Id Service
581
- */
582
- export function listInputPluginVersionIdServicePluginsVersionsPluginVersionIdInputsGet({ pluginVersionId, authorization, xWorkspaceId }: {
583
- pluginVersionId: string;
584
- authorization: string;
585
- xWorkspaceId?: string;
586
- }, opts?: Oazapfts.RequestOpts) {
587
- return oazapfts.ok(oazapfts.fetchJson<{
588
- status: 200;
589
- data: InputResponse2[] | null;
590
- } | {
591
- status: 422;
592
- data: HttpValidationError;
593
- } | {
594
- status: 500;
595
- data: HttpErrorResponse;
596
- } | {
597
- status: 503;
598
- data: HttpErrorResponse;
599
- }>(`/plugins/versions/${encodeURIComponent(pluginVersionId)}/inputs`, {
600
- ...opts,
601
- headers: oazapfts.mergeHeaders(opts?.headers, {
602
- authorization,
603
- "x-workspace-id": xWorkspaceId
604
- })
605
- }));
606
- }
607
- /**
608
- * List Plugin By Connection Interface Service
609
- */
610
- export function listPluginByConnectionInterfaceServicePluginsGeneratesTypeValueGet({ $type, value, studioSlug, authorization, xWorkspaceId }: {
611
- $type: string;
612
- value: string;
613
- studioSlug?: string;
614
- authorization: string;
615
- xWorkspaceId?: string;
616
- }, opts?: Oazapfts.RequestOpts) {
617
- return oazapfts.ok(oazapfts.fetchJson<{
618
- status: 200;
619
- data: ListPluginByConnectionInterfaceResponse[];
620
- } | {
621
- status: 422;
622
- data: HttpValidationError;
623
- } | {
624
- status: 500;
625
- data: HttpErrorResponse;
626
- } | {
627
- status: 503;
628
- data: HttpErrorResponse;
629
- }>(`/plugins/generates/${encodeURIComponent($type)}/${encodeURIComponent(value)}${QS.query(QS.explode({
630
- studio_slug: studioSlug
631
- }))}`, {
632
- ...opts,
633
- headers: oazapfts.mergeHeaders(opts?.headers, {
634
- authorization,
635
- "x-workspace-id": xWorkspaceId
636
- })
637
- }));
638
- }
639
- /**
640
- * List Plugin By Connection Interface Service
641
- */
642
- export function listPluginByConnectionInterfaceServiceAccountsAccountSlugPluginsGeneratesTypeValueGet({ accountSlug, $type, value, studioSlug, authorization, xWorkspaceId }: {
643
- accountSlug: string;
644
- $type: string;
645
- value: string;
646
- studioSlug?: string;
647
- authorization: string;
648
- xWorkspaceId?: string;
649
- }, opts?: Oazapfts.RequestOpts) {
650
- return oazapfts.ok(oazapfts.fetchJson<{
651
- status: 200;
652
- data: ListPluginByConnectionInterfaceResponse[];
653
- } | {
654
- status: 422;
655
- data: HttpValidationError;
656
- } | {
657
- status: 500;
658
- data: HttpErrorResponse;
659
- } | {
660
- status: 503;
661
- data: HttpErrorResponse;
662
- }>(`/accounts/${encodeURIComponent(accountSlug)}/plugins/generates/${encodeURIComponent($type)}/${encodeURIComponent(value)}${QS.query(QS.explode({
663
- studio_slug: studioSlug
664
- }))}`, {
665
- ...opts,
666
- headers: oazapfts.mergeHeaders(opts?.headers, {
667
- authorization,
668
- "x-workspace-id": xWorkspaceId
669
- })
670
- }));
671
- }
672
- /**
673
- * Healthcheck
674
- */
675
- export function healthcheckHealthzGet(opts?: Oazapfts.RequestOpts) {
676
- return oazapfts.ok(oazapfts.fetchJson<{
677
- status: 200;
678
- data: HealthCheckResponse;
679
- } | {
680
- status: 503;
681
- data: HttpErrorResponse;
682
- }>("/healthz", {
683
- ...opts
684
- }));
685
- }