@microtronics/studio-cli 0.9.1 → 0.11.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.
@@ -3,6 +3,118 @@ import { Range as Range_2 } from 'yaml';
3
3
  import { SemVer } from 'semver';
4
4
  import { URI } from 'vscode-uri';
5
5
 
6
+ export declare namespace APM {
7
+ export enum TagPhase {
8
+ release = "release",
9
+ stage = "stage",
10
+ passive = "passive",
11
+ withdrawn = "withdrawn"
12
+ }
13
+ /**
14
+ * The APM parts that are predefined
15
+ */
16
+ export enum Part {
17
+ dde = "dde",
18
+ dlo = "dlo",
19
+ pov = "pov",
20
+ blo = "blo"
21
+ }
22
+ export interface TagHeader extends ApplicationTagInformation {
23
+ author: string;
24
+ version: string;
25
+ blo_level?: Manifest.BloAccessLevel;
26
+ required_be?: string;
27
+ required_hwfw?: string;
28
+ required_productcode?: string;
29
+ }
30
+ export interface DevTagHeader {
31
+ name: string;
32
+ abstract: string;
33
+ author: string;
34
+ pip_id: string;
35
+ pov_location: Manifest.PovLocation;
36
+ pov_details_lowlevel: boolean;
37
+ blo_level: Manifest.BloAccessLevel;
38
+ blo_autostart: boolean;
39
+ /**
40
+ * ONE specific
41
+ * the version 0 for ONE
42
+ */
43
+ version?: number;
44
+ /**
45
+ * ONE specific
46
+ * owner_id is the organizationID
47
+ */
48
+ owner_id?: string;
49
+ required_be?: string;
50
+ required_hwfw?: string;
51
+ required_productcode?: string;
52
+ }
53
+ /**
54
+ * Create new release tag
55
+ * @param cwd
56
+ * @param fs
57
+ * @param phase
58
+ */
59
+ export function createTag(cwd: URI, fs: LocalFS, phase: TagPhase): Promise<FormData>;
60
+ /**
61
+ * Create new dev tag.
62
+ * @param cwd
63
+ * @param fs
64
+ */
65
+ export function createDevTag(cwd: URI, fs: LocalFS): Promise<FormData>;
66
+ /**
67
+ * create FormData object that can be pushed to the store
68
+ * @private
69
+ * @param cwd
70
+ * @param fs
71
+ * @param manifest
72
+ * @param tagHeader
73
+ */
74
+ export function createBuffer(cwd: URI, fs: LocalFS, manifest: Manifest.Manifest, tagHeader: TagHeader | DevTagHeader): Promise<FormData>;
75
+ export type ApplicationAccessInformation = Registry.ApplicationDetailInformation & {
76
+ id: string;
77
+ };
78
+ /**
79
+ * Validate if the current user has access to the apm
80
+ */
81
+ export function validateAccess(cwd: URI, fs: LocalFS, token: Registry.AuthToken, preventCreation: boolean, env: Globals.ENV): Promise<ApplicationAccessInformation | null>;
82
+ /**
83
+ *
84
+ * @param cwd
85
+ * @param fs
86
+ * @param token
87
+ * @param manifest
88
+ * @param env
89
+ */
90
+ export function registerNew(cwd: URI, fs: LocalFS, token: Registry.AuthToken, manifest: Manifest.Manifest, env: Globals.ENV): Promise<string>;
91
+ /**
92
+ * Update the APM profile
93
+ * - allowedBackends, description and name will be upated
94
+ * @param cwd
95
+ * @param fs
96
+ * @param token
97
+ * @param env
98
+ */
99
+ export function updateProfile(cwd: URI, fs: LocalFS, token: Registry.AuthToken, env: Globals.ENV): Promise<void>;
100
+ /**
101
+ * Publish a new version to the store
102
+ * @param cwd
103
+ * @param fs
104
+ * @param token
105
+ * @param apmTag
106
+ * @param env
107
+ */
108
+ export function publishTag(cwd: URI, fs: LocalFS, token: Registry.AuthToken, apmTag: FormData, env: Globals.ENV): Promise<{
109
+ tag_stamp: string;
110
+ version: number | string;
111
+ phase: string;
112
+ phase_stamp: string;
113
+ }>;
114
+ }
115
+
116
+ declare type ApplicationTagInformation = components['schemas']['ApplicationTagInformation'];
117
+
6
118
  declare interface components {
7
119
  schemas: {
8
120
  /** @default 25 */
@@ -114,7 +226,7 @@ declare interface components {
114
226
  phase: components["schemas"]["ReleasePhases"];
115
227
  /** @enum {string} */
116
228
  pov_location: "$embedded" | "$pure";
117
- version: number;
229
+ version: string | number;
118
230
  };
119
231
  ApplicationVersionUpdate: {
120
232
  phase: components["schemas"]["ReleasePhases"];
@@ -209,8 +321,9 @@ declare interface components {
209
321
  LibraryFileName: "library.tar.gz" | "README.md" | "CHANGELOG.md" | "studio.json";
210
322
  /** @description Unique library id for this publisher */
211
323
  ApplicationId: string;
212
- /** @description version of the application. */
213
- ApplicationVersion: number;
324
+ /** @description version of the application. Either integer or for new applications semver */
325
+ ApplicationVersion: string | number;
326
+ ApplicationVersionInSemver: boolean;
214
327
  /** @description version of the library. Formatted as semantic version */
215
328
  ApplicationFileName: "release-notes.md";
216
329
  /** @description User Id */
@@ -1396,6 +1509,14 @@ export declare namespace DefaultFiles {
1396
1509
  mainDFILES: string;
1397
1510
  };
1398
1511
  };
1512
+ /**
1513
+ * Changelog.md
1514
+ */
1515
+ const readme: (name: string) => string;
1516
+ /**
1517
+ * Changelog.md
1518
+ */
1519
+ const changelog = "# Changelog\n\nAll notable changes to this project will be documented in this file.\n\nThe format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).";
1399
1520
  }
1400
1521
 
1401
1522
  export declare namespace Dependencies {
@@ -1700,6 +1821,14 @@ declare enum FileType {
1700
1821
  }
1701
1822
 
1702
1823
  export declare namespace Globals {
1824
+ /**
1825
+ * Supported ENV for the studio environment
1826
+ */
1827
+ export enum ENV {
1828
+ lucky = "lucky",
1829
+ winny = "winny",
1830
+ production = "production"
1831
+ }
1703
1832
  export interface Defines {
1704
1833
  [key: string]: string;
1705
1834
  }
@@ -1759,6 +1888,45 @@ export declare namespace Helper {
1759
1888
  * @param v
1760
1889
  */
1761
1890
  const isNumeric: (v: any) => boolean;
1891
+ /**
1892
+ * Convert an uint8Array to a base64 string
1893
+ * @param bytes
1894
+ */
1895
+ export function bufferToBase64(bytes: Uint8Array): string;
1896
+ /**
1897
+ * Parse and resolve any {index} or {index+X} within the given value
1898
+ * @param valueToPatch
1899
+ * @param arrayIndex
1900
+ */
1901
+ export function patchValueWithArrayInfo(valueToPatch: any, arrayIndex: number): any;
1902
+ }
1903
+
1904
+ export declare namespace Library {
1905
+ /**
1906
+ * Creates the library.tar.gz archive content
1907
+ * @param cwd
1908
+ * @param fs
1909
+ */
1910
+ export function createArchive(cwd: URI, fs: LocalFS): Promise<Uint8Array>;
1911
+ /**
1912
+ * Reads the project directory and returns all files that will be packed within the library.tar.gz
1913
+ * @param cwd
1914
+ * @param fs
1915
+ */
1916
+ export function getFilesForArchive(cwd: URI, fs: LocalFS): Promise<{
1917
+ name: string;
1918
+ data: Uint8Array;
1919
+ modifyTime: Date;
1920
+ }[]>;
1921
+ /**
1922
+ * Publish new library package to the registry
1923
+ * @param cwd
1924
+ * @param fs
1925
+ * @param token
1926
+ * @param archive
1927
+ * @param env
1928
+ */
1929
+ export function publishPackage(cwd: URI, fs: LocalFS, token: Registry.AuthToken, archive: Uint8Array, env?: Globals.ENV): Promise<void>;
1762
1930
  }
1763
1931
 
1764
1932
  declare interface LocalFS {
@@ -1835,7 +2003,7 @@ export declare namespace Manifest {
1835
2003
  pov?: {
1836
2004
  details?: ApmPartScripts;
1837
2005
  };
1838
- blo?: ApmPartScripts;
2006
+ blo?: BloSettings;
1839
2007
  }
1840
2008
  export interface Dependencies {
1841
2009
  [key: string]: string;
@@ -1844,12 +2012,29 @@ export declare namespace Manifest {
1844
2012
  buildCommand: string;
1845
2013
  workingPath: string;
1846
2014
  }
2015
+ export enum BloAccessLevel {
2016
+ restricted = "restricted",
2017
+ global = "global"
2018
+ }
2019
+ export interface BloSettings extends ApmPartScripts {
2020
+ accessLevel?: BloAccessLevel;
2021
+ }
2022
+ export enum PovLocation {
2023
+ embedded = "$embedded",
2024
+ pure = "$pure"
2025
+ }
1847
2026
  /**
1848
2027
  * Read the studio.json manifest and parse it
1849
2028
  * @param cwd
1850
2029
  * @param fs
1851
2030
  */
1852
2031
  export function read(cwd: URI, fs: LocalFS): Promise<Manifest>;
2032
+ /**
2033
+ * Reads the studio.json as an uint8array
2034
+ * @param cwd
2035
+ * @param fs
2036
+ */
2037
+ export function readAsBlob(cwd: URI, fs: LocalFS): Promise<Uint8Array>;
1853
2038
  /**
1854
2039
  * Write the manifest to the workspace
1855
2040
  * @param cwd
@@ -1861,25 +2046,2166 @@ export declare namespace Manifest {
1861
2046
  * Check if the current project is a library project
1862
2047
  */
1863
2048
  export function isLibraryProject(manifest: Manifest.Manifest): boolean;
2049
+ /**
2050
+ * Validates if the properties within
2051
+ * @param cwd
2052
+ * @param fs
2053
+ * @param manifest
2054
+ * @param env
2055
+ */
2056
+ export function validateManifest(cwd: URI, fs: LocalFS, manifest: Manifest.Manifest | null, env?: Globals.ENV): Promise<void>;
2057
+ export function validateLibraryName(libraryName: string): false | "Library name can only contain 'a' through 'z', '0' through '9', '_' and '-'. The Library name must start with an alphabetic or numeric character." | "The library name is beyond permissible length of 20 characters.";
2058
+ export function validateProjectName(name: string, isLibrary?: boolean): Promise<false | "Library name can only contain 'a' through 'z', '0' through '9', '_' and '-'. The Library name must start with an alphabetic or numeric character." | "The library name is beyond permissible length of 20 characters." | "Project name can only contain 'A' through 'Z', 'a' through 'z', '0' through '9', ' ', '_' and '-'. The Project name must start with an alphabetic or numeric character." | "The project name is beyond permissible length of 40 characters.">;
2059
+ export function validateDescription(description: string): Promise<false | "The description must have at least 5 characters.">;
2060
+ export function validatePublisherId(publisher: string): Promise<false | "No publisher set yet" | "Publisher can only contain 'A' through 'Z', 'a' through 'z', '0' through '9' and '-'. The Publisher start with an alphabetic or numeric character.">;
2061
+ export function validatePublisherOnline(token: Registry.AuthToken, publisher: string): Promise<string | false>;
2062
+ export function validateRegistryAllowedBackends(allowedBackends: undefined | null | string | string[]): Promise<string | false>;
1864
2063
  }
1865
2064
 
1866
- export declare namespace Registry {
2065
+ export declare namespace Package {
1867
2066
  /**
1868
- * Get the actual api url based on the STUDIO_ENV
2067
+ * Build the whole project or only a specific part
2068
+ * @param cwd
2069
+ * @param fs
2070
+ * @param apmPart - choose a specific part that should be build
1869
2071
  */
1870
- const getAPIUrl: () => {
1871
- baseUrl: string;
1872
- };
1873
- export type LibraryProfile = components['schemas']['LibraryDetailInformation'];
1874
- export type LibraryVersion = components['schemas']['LibraryVersion'];
2072
+ export function buildAll(cwd: URI, fs: LocalFS, apmPart?: APM.Part): Promise<void>;
1875
2073
  /**
1876
- * Fetch the library profile of the given library
2074
+ * Trigger the release based on the manifest settings
2075
+ * @param cwd
2076
+ * @param fs
1877
2077
  * @param token
1878
- * @param publisherId
1879
- * @param libraryId
2078
+ * @param releasePhase
2079
+ * @param env
2080
+ */
2081
+ export function release(cwd: URI, fs: LocalFS, token: Registry.AuthToken, releasePhase: APM.TagPhase, env?: Globals.ENV): Promise<void>;
2082
+ /**
2083
+ * Publish an application model tag
2084
+ * @param cwd
2085
+ * @param fs
2086
+ * @param manifest
2087
+ * @param token
2088
+ * @param releasePhase
2089
+ * @param env
2090
+ */
2091
+ export function releaseAPM(cwd: URI, fs: LocalFS, token: Registry.AuthToken, releasePhase: APM.TagPhase, env?: Globals.ENV): Promise<void>;
2092
+ /**
2093
+ * Publish a library project
2094
+ * @param cwd
2095
+ * @param fs
2096
+ * @param manifest
2097
+ * @param token
2098
+ * @param env
2099
+ */
2100
+ export function releaseLibrary(cwd: URI, fs: LocalFS, token: Registry.AuthToken, env?: Globals.ENV): Promise<void>;
2101
+ /**
2102
+ * Read the projects README.md file
2103
+ * validates if the file content is the initial content
2104
+ * @param cwd
2105
+ * @param fs
2106
+ * @param projectName
2107
+ */
2108
+ export function getReadmeFile(cwd: URI, fs: LocalFS, projectName: string): Promise<Uint8Array>;
2109
+ /**
2110
+ * Read the projects CHANGELOG.md file
2111
+ * validates if the file content is the initial content
2112
+ * @param cwd
2113
+ * @param fs
2114
+ */
2115
+ export function getChangelogFile(cwd: URI, fs: LocalFS): Promise<Uint8Array>;
2116
+ /**
2117
+ * Validate manifest settings that are required for the APM
2118
+ * @param token
2119
+ * @param manifest
1880
2120
  */
1881
- export function getLibraryProfile(token: string | null, publisherId: string, libraryId: string): Promise<LibraryProfile>;
1882
- export function fetchLibraryContent(token: string | null, contentURL: string, json?: boolean): Promise<any>;
2121
+ export function validateSpecificSettings(token: Registry.AuthToken, manifest: Manifest.Manifest): Promise<void>;
2122
+ }
2123
+
2124
+ /**
2125
+ * This file was auto-generated by openapi-typescript.
2126
+ * Do not make direct changes to the file.
2127
+ */
2128
+ declare interface paths {
2129
+ "/libraries": {
2130
+ parameters: {
2131
+ query?: never;
2132
+ header?: never;
2133
+ path?: never;
2134
+ cookie?: never;
2135
+ };
2136
+ /** Get a list of all accessible libraries */
2137
+ get: {
2138
+ parameters: {
2139
+ query?: {
2140
+ /** @description Limit the amount of entities that will be returned in the data array */
2141
+ limit?: components["parameters"]["PaginationLimit"];
2142
+ /** @description Set the offset to skip the given amount of entities in the database */
2143
+ offset?: components["parameters"]["PaginationOffset"];
2144
+ /** @description Id of the publisher */
2145
+ publisherId?: components["parameters"]["PublisherIdQuery"];
2146
+ };
2147
+ header?: never;
2148
+ path?: never;
2149
+ cookie?: never;
2150
+ };
2151
+ requestBody?: never;
2152
+ responses: {
2153
+ /** @description Successful operation */
2154
+ 200: {
2155
+ headers: {
2156
+ [name: string]: unknown;
2157
+ };
2158
+ content: {
2159
+ "application/json": {
2160
+ meta?: components["schemas"]["ResultMeta"];
2161
+ data?: [
2162
+ components["schemas"]["LibraryListInformation"]
2163
+ ];
2164
+ };
2165
+ };
2166
+ };
2167
+ /** @description bad request */
2168
+ 400: {
2169
+ headers: {
2170
+ [name: string]: unknown;
2171
+ };
2172
+ content: {
2173
+ "application/json": components["schemas"]["ErrorResponse"];
2174
+ };
2175
+ };
2176
+ /** @description unprocessable entity */
2177
+ 422: {
2178
+ headers: {
2179
+ [name: string]: unknown;
2180
+ };
2181
+ content: {
2182
+ "application/json": components["schemas"]["ErrorResponse"];
2183
+ };
2184
+ };
2185
+ /** @description internal Server Error */
2186
+ 500: {
2187
+ headers: {
2188
+ [name: string]: unknown;
2189
+ };
2190
+ content: {
2191
+ "application/json": components["schemas"]["ErrorResponse"];
2192
+ };
2193
+ };
2194
+ };
2195
+ };
2196
+ put?: never;
2197
+ post?: never;
2198
+ delete?: never;
2199
+ options?: never;
2200
+ head?: never;
2201
+ patch?: never;
2202
+ trace?: never;
2203
+ };
2204
+ "/applications": {
2205
+ parameters: {
2206
+ query?: never;
2207
+ header?: never;
2208
+ path?: never;
2209
+ cookie?: never;
2210
+ };
2211
+ /** Get a list of all accessible applications */
2212
+ get: {
2213
+ parameters: {
2214
+ query?: {
2215
+ /** @description Limit the amount of entities that will be returned in the data array */
2216
+ limit?: components["parameters"]["PaginationLimit"];
2217
+ /** @description Set the offset to skip the given amount of entities in the database */
2218
+ offset?: components["parameters"]["PaginationOffset"];
2219
+ /** @description Id of the publisher */
2220
+ publisherId?: components["parameters"]["PublisherIdQuery"];
2221
+ };
2222
+ header?: never;
2223
+ path?: never;
2224
+ cookie?: never;
2225
+ };
2226
+ requestBody?: never;
2227
+ responses: {
2228
+ /** @description Successful operation */
2229
+ 200: {
2230
+ headers: {
2231
+ [name: string]: unknown;
2232
+ };
2233
+ content: {
2234
+ "application/json": {
2235
+ meta?: components["schemas"]["ResultMeta"];
2236
+ data?: [
2237
+ components["schemas"]["ApplicationListInformation"]
2238
+ ];
2239
+ };
2240
+ };
2241
+ };
2242
+ /** @description bad request */
2243
+ 400: {
2244
+ headers: {
2245
+ [name: string]: unknown;
2246
+ };
2247
+ content: {
2248
+ "application/json": components["schemas"]["ErrorResponse"];
2249
+ };
2250
+ };
2251
+ /** @description unprocessable entity */
2252
+ 422: {
2253
+ headers: {
2254
+ [name: string]: unknown;
2255
+ };
2256
+ content: {
2257
+ "application/json": components["schemas"]["ErrorResponse"];
2258
+ };
2259
+ };
2260
+ /** @description internal Server Error */
2261
+ 500: {
2262
+ headers: {
2263
+ [name: string]: unknown;
2264
+ };
2265
+ content: {
2266
+ "application/json": components["schemas"]["ErrorResponse"];
2267
+ };
2268
+ };
2269
+ };
2270
+ };
2271
+ put?: never;
2272
+ post?: never;
2273
+ delete?: never;
2274
+ options?: never;
2275
+ head?: never;
2276
+ patch?: never;
2277
+ trace?: never;
2278
+ };
2279
+ "/publisher": {
2280
+ parameters: {
2281
+ query?: never;
2282
+ header?: never;
2283
+ path?: never;
2284
+ cookie?: never;
2285
+ };
2286
+ /** Get a list of all publishers. Security is optional. */
2287
+ get: {
2288
+ parameters: {
2289
+ query?: {
2290
+ /** @description Limit the amount of entities that will be returned in the data array */
2291
+ limit?: components["parameters"]["PaginationLimit"];
2292
+ /** @description Set the offset to skip the given amount of entities in the database */
2293
+ offset?: components["parameters"]["PaginationOffset"];
2294
+ /** @description Get all publishers that have the given id as member. Authentication required for this call! */
2295
+ memberId?: string;
2296
+ };
2297
+ header?: never;
2298
+ path?: never;
2299
+ cookie?: never;
2300
+ };
2301
+ requestBody?: never;
2302
+ responses: {
2303
+ /** @description Successful operation */
2304
+ 200: {
2305
+ headers: {
2306
+ [name: string]: unknown;
2307
+ };
2308
+ content: {
2309
+ "application/json": {
2310
+ meta?: components["schemas"]["ResultMeta"];
2311
+ data?: [
2312
+ components["schemas"]["Publisher"]
2313
+ ];
2314
+ };
2315
+ };
2316
+ };
2317
+ /** @description bad request */
2318
+ 400: {
2319
+ headers: {
2320
+ [name: string]: unknown;
2321
+ };
2322
+ content: {
2323
+ "application/json": components["schemas"]["ErrorResponse"];
2324
+ };
2325
+ };
2326
+ /** @description unauthorized */
2327
+ 401: {
2328
+ headers: {
2329
+ [name: string]: unknown;
2330
+ };
2331
+ content: {
2332
+ "application/json": components["schemas"]["ErrorResponse"];
2333
+ };
2334
+ };
2335
+ /** @description unprocessable entity */
2336
+ 422: {
2337
+ headers: {
2338
+ [name: string]: unknown;
2339
+ };
2340
+ content: {
2341
+ "application/json": components["schemas"]["ErrorResponse"];
2342
+ };
2343
+ };
2344
+ /** @description internal Server Error */
2345
+ 500: {
2346
+ headers: {
2347
+ [name: string]: unknown;
2348
+ };
2349
+ content: {
2350
+ "application/json": components["schemas"]["ErrorResponse"];
2351
+ };
2352
+ };
2353
+ };
2354
+ };
2355
+ put?: never;
2356
+ /** Add a new publisher */
2357
+ post: {
2358
+ parameters: {
2359
+ query?: never;
2360
+ header?: never;
2361
+ path?: never;
2362
+ cookie?: never;
2363
+ };
2364
+ requestBody?: {
2365
+ content: {
2366
+ "application/json": components["schemas"]["NewPublisher"];
2367
+ };
2368
+ };
2369
+ responses: {
2370
+ /** @description successful operation */
2371
+ 201: {
2372
+ headers: {
2373
+ [name: string]: unknown;
2374
+ };
2375
+ content: {
2376
+ "application/json": {
2377
+ /** @description The id of the newly created publisher */
2378
+ id?: string;
2379
+ };
2380
+ };
2381
+ };
2382
+ /** @description bad request */
2383
+ 400: {
2384
+ headers: {
2385
+ [name: string]: unknown;
2386
+ };
2387
+ content: {
2388
+ "application/json": components["schemas"]["ErrorResponse"];
2389
+ };
2390
+ };
2391
+ /** @description unprocessable entity */
2392
+ 422: {
2393
+ headers: {
2394
+ [name: string]: unknown;
2395
+ };
2396
+ content: {
2397
+ "application/json": components["schemas"]["ErrorResponse"];
2398
+ };
2399
+ };
2400
+ /** @description internal Server Error */
2401
+ 500: {
2402
+ headers: {
2403
+ [name: string]: unknown;
2404
+ };
2405
+ content: {
2406
+ "application/json": components["schemas"]["ErrorResponse"];
2407
+ };
2408
+ };
2409
+ };
2410
+ };
2411
+ delete?: never;
2412
+ options?: never;
2413
+ head?: never;
2414
+ patch?: never;
2415
+ trace?: never;
2416
+ };
2417
+ "/publisher/{publisherId}": {
2418
+ parameters: {
2419
+ query?: never;
2420
+ header?: never;
2421
+ path?: never;
2422
+ cookie?: never;
2423
+ };
2424
+ /** Get the profile of the given publisherId. */
2425
+ get: {
2426
+ parameters: {
2427
+ query?: never;
2428
+ header?: never;
2429
+ path: {
2430
+ /** @description Id of the publisher */
2431
+ publisherId: components["parameters"]["PublisherId"];
2432
+ };
2433
+ cookie?: never;
2434
+ };
2435
+ requestBody?: never;
2436
+ responses: {
2437
+ /** @description successful operation */
2438
+ 200: {
2439
+ headers: {
2440
+ [name: string]: unknown;
2441
+ };
2442
+ content: {
2443
+ "application/json": components["schemas"]["Publisher"];
2444
+ };
2445
+ };
2446
+ /** @description bad request */
2447
+ 400: {
2448
+ headers: {
2449
+ [name: string]: unknown;
2450
+ };
2451
+ content: {
2452
+ "application/json": components["schemas"]["ErrorResponse"];
2453
+ };
2454
+ };
2455
+ /** @description not found */
2456
+ 404: {
2457
+ headers: {
2458
+ [name: string]: unknown;
2459
+ };
2460
+ content: {
2461
+ "application/json": components["schemas"]["ErrorResponse"];
2462
+ };
2463
+ };
2464
+ /** @description unprocessable entity */
2465
+ 422: {
2466
+ headers: {
2467
+ [name: string]: unknown;
2468
+ };
2469
+ content: {
2470
+ "application/json": components["schemas"]["ErrorResponse"];
2471
+ };
2472
+ };
2473
+ /** @description internal Server Error */
2474
+ 500: {
2475
+ headers: {
2476
+ [name: string]: unknown;
2477
+ };
2478
+ content: {
2479
+ "application/json": components["schemas"]["ErrorResponse"];
2480
+ };
2481
+ };
2482
+ };
2483
+ };
2484
+ put?: never;
2485
+ post?: never;
2486
+ delete?: never;
2487
+ options?: never;
2488
+ head?: never;
2489
+ patch?: never;
2490
+ trace?: never;
2491
+ };
2492
+ "/publisher/{publisherId}/libraries/{libraryId}": {
2493
+ parameters: {
2494
+ query?: never;
2495
+ header?: never;
2496
+ path?: never;
2497
+ cookie?: never;
2498
+ };
2499
+ /** Get the profile of the given library. Security is optional. */
2500
+ get: {
2501
+ parameters: {
2502
+ query?: never;
2503
+ header?: never;
2504
+ path: {
2505
+ /** @description Id of the publisher */
2506
+ publisherId: components["parameters"]["PublisherId"];
2507
+ /** @description Unique library id for this publisher */
2508
+ libraryId: components["parameters"]["LibraryId"];
2509
+ };
2510
+ cookie?: never;
2511
+ };
2512
+ requestBody?: never;
2513
+ responses: {
2514
+ /** @description successful operation */
2515
+ 200: {
2516
+ headers: {
2517
+ [name: string]: unknown;
2518
+ };
2519
+ content: {
2520
+ "application/json": components["schemas"]["LibraryDetailInformation"];
2521
+ };
2522
+ };
2523
+ /** @description bad request */
2524
+ 400: {
2525
+ headers: {
2526
+ [name: string]: unknown;
2527
+ };
2528
+ content: {
2529
+ "application/json": components["schemas"]["ErrorResponse"];
2530
+ };
2531
+ };
2532
+ /** @description not found */
2533
+ 404: {
2534
+ headers: {
2535
+ [name: string]: unknown;
2536
+ };
2537
+ content: {
2538
+ "application/json": components["schemas"]["ErrorResponse"];
2539
+ };
2540
+ };
2541
+ /** @description unprocessable entity */
2542
+ 422: {
2543
+ headers: {
2544
+ [name: string]: unknown;
2545
+ };
2546
+ content: {
2547
+ "application/json": components["schemas"]["ErrorResponse"];
2548
+ };
2549
+ };
2550
+ /** @description internal Server Error */
2551
+ 500: {
2552
+ headers: {
2553
+ [name: string]: unknown;
2554
+ };
2555
+ content: {
2556
+ "application/json": components["schemas"]["ErrorResponse"];
2557
+ };
2558
+ };
2559
+ };
2560
+ };
2561
+ put?: never;
2562
+ post?: never;
2563
+ /** Remove the given library from the registry. Publisher owner privileges needed! */
2564
+ delete: {
2565
+ parameters: {
2566
+ query?: never;
2567
+ header?: never;
2568
+ path: {
2569
+ /** @description Id of the publisher */
2570
+ publisherId: components["parameters"]["PublisherId"];
2571
+ /** @description Unique library id for this publisher */
2572
+ libraryId: components["parameters"]["LibraryId"];
2573
+ };
2574
+ cookie?: never;
2575
+ };
2576
+ requestBody?: never;
2577
+ responses: {
2578
+ /** @description successful operation */
2579
+ 204: {
2580
+ headers: {
2581
+ [name: string]: unknown;
2582
+ };
2583
+ content?: never;
2584
+ };
2585
+ /** @description bad request */
2586
+ 400: {
2587
+ headers: {
2588
+ [name: string]: unknown;
2589
+ };
2590
+ content: {
2591
+ "application/json": components["schemas"]["ErrorResponse"];
2592
+ };
2593
+ };
2594
+ /** @description not found */
2595
+ 404: {
2596
+ headers: {
2597
+ [name: string]: unknown;
2598
+ };
2599
+ content: {
2600
+ "application/json": components["schemas"]["ErrorResponse"];
2601
+ };
2602
+ };
2603
+ /** @description unprocessable entity */
2604
+ 422: {
2605
+ headers: {
2606
+ [name: string]: unknown;
2607
+ };
2608
+ content: {
2609
+ "application/json": components["schemas"]["ErrorResponse"];
2610
+ };
2611
+ };
2612
+ /** @description internal Server Error */
2613
+ 500: {
2614
+ headers: {
2615
+ [name: string]: unknown;
2616
+ };
2617
+ content: {
2618
+ "application/json": components["schemas"]["ErrorResponse"];
2619
+ };
2620
+ };
2621
+ };
2622
+ };
2623
+ options?: never;
2624
+ head?: never;
2625
+ patch?: never;
2626
+ trace?: never;
2627
+ };
2628
+ "/publisher/{publisherId}/applications/{applicationId}": {
2629
+ parameters: {
2630
+ query?: never;
2631
+ header?: never;
2632
+ path?: never;
2633
+ cookie?: never;
2634
+ };
2635
+ /** Get the profile of the given application. */
2636
+ get: {
2637
+ parameters: {
2638
+ query?: never;
2639
+ header?: {
2640
+ "X-Semver"?: components["parameters"]["ApplicationVersionInSemver"];
2641
+ };
2642
+ path: {
2643
+ /** @description Id of the publisher */
2644
+ publisherId: components["parameters"]["PublisherId"];
2645
+ /** @description Unique library id for this publisher */
2646
+ applicationId: components["parameters"]["ApplicationId"];
2647
+ };
2648
+ cookie?: never;
2649
+ };
2650
+ requestBody?: never;
2651
+ responses: {
2652
+ /** @description successful operation */
2653
+ 200: {
2654
+ headers: {
2655
+ [name: string]: unknown;
2656
+ };
2657
+ content: {
2658
+ "application/json": components["schemas"]["ApplicationDetailInformation"];
2659
+ };
2660
+ };
2661
+ /** @description bad request */
2662
+ 400: {
2663
+ headers: {
2664
+ [name: string]: unknown;
2665
+ };
2666
+ content: {
2667
+ "application/json": components["schemas"]["ErrorResponse"];
2668
+ };
2669
+ };
2670
+ /** @description not found */
2671
+ 404: {
2672
+ headers: {
2673
+ [name: string]: unknown;
2674
+ };
2675
+ content: {
2676
+ "application/json": components["schemas"]["ErrorResponse"];
2677
+ };
2678
+ };
2679
+ /** @description unprocessable entity */
2680
+ 422: {
2681
+ headers: {
2682
+ [name: string]: unknown;
2683
+ };
2684
+ content: {
2685
+ "application/json": components["schemas"]["ErrorResponse"];
2686
+ };
2687
+ };
2688
+ /** @description internal Server Error */
2689
+ 500: {
2690
+ headers: {
2691
+ [name: string]: unknown;
2692
+ };
2693
+ content: {
2694
+ "application/json": components["schemas"]["ErrorResponse"];
2695
+ };
2696
+ };
2697
+ };
2698
+ };
2699
+ put?: never;
2700
+ post?: never;
2701
+ delete?: never;
2702
+ options?: never;
2703
+ head?: never;
2704
+ patch?: never;
2705
+ trace?: never;
2706
+ };
2707
+ "/packages/{publisherId}/libraries/{libraryId}/versions/{libraryVersion}": {
2708
+ parameters: {
2709
+ query?: never;
2710
+ header?: never;
2711
+ path?: never;
2712
+ cookie?: never;
2713
+ };
2714
+ get?: never;
2715
+ put?: never;
2716
+ /** Add a new library version to the registry */
2717
+ post: {
2718
+ parameters: {
2719
+ query?: never;
2720
+ header?: never;
2721
+ path: {
2722
+ /** @description Id of the publisher */
2723
+ publisherId: components["parameters"]["PublisherId"];
2724
+ /** @description Unique library id for this publisher */
2725
+ libraryId: components["parameters"]["LibraryId"];
2726
+ /** @description version of the library. Formatted as semantic version */
2727
+ libraryVersion: components["parameters"]["LibraryVersion"];
2728
+ };
2729
+ cookie?: never;
2730
+ };
2731
+ requestBody?: {
2732
+ content: {
2733
+ "multipart/form-data": {
2734
+ /**
2735
+ * Format: binary
2736
+ * @description The studio.json file of the library
2737
+ */
2738
+ "studio.json"?: string;
2739
+ /**
2740
+ * Format: binary
2741
+ * @description The library packed and compressed as tar.gz
2742
+ */
2743
+ "library.tar.gz"?: string;
2744
+ /**
2745
+ * Format: binary
2746
+ * @description An optional README file that describes your library in detail
2747
+ */
2748
+ "README.md"?: string;
2749
+ /**
2750
+ * Format: binary
2751
+ * @description An optional Chan
2752
+ */
2753
+ "CHANGELOG.md"?: string;
2754
+ };
2755
+ };
2756
+ };
2757
+ responses: {
2758
+ /** @description successful operation */
2759
+ 204: {
2760
+ headers: {
2761
+ [name: string]: unknown;
2762
+ };
2763
+ content?: never;
2764
+ };
2765
+ /** @description bad request */
2766
+ 400: {
2767
+ headers: {
2768
+ [name: string]: unknown;
2769
+ };
2770
+ content: {
2771
+ "application/json": components["schemas"]["ErrorResponse"];
2772
+ };
2773
+ };
2774
+ /** @description forbidden */
2775
+ 403: {
2776
+ headers: {
2777
+ [name: string]: unknown;
2778
+ };
2779
+ content: {
2780
+ "application/json": components["schemas"]["ErrorResponse"];
2781
+ };
2782
+ };
2783
+ /** @description not found */
2784
+ 404: {
2785
+ headers: {
2786
+ [name: string]: unknown;
2787
+ };
2788
+ content: {
2789
+ "application/json": components["schemas"]["ErrorResponse"];
2790
+ };
2791
+ };
2792
+ /** @description conflict */
2793
+ 409: {
2794
+ headers: {
2795
+ [name: string]: unknown;
2796
+ };
2797
+ content: {
2798
+ "application/json": components["schemas"]["ErrorResponse"];
2799
+ };
2800
+ };
2801
+ /** @description unprocessable entity */
2802
+ 422: {
2803
+ headers: {
2804
+ [name: string]: unknown;
2805
+ };
2806
+ content: {
2807
+ "application/json": components["schemas"]["ErrorResponse"];
2808
+ };
2809
+ };
2810
+ /** @description internal Server Error */
2811
+ 500: {
2812
+ headers: {
2813
+ [name: string]: unknown;
2814
+ };
2815
+ content: {
2816
+ "application/json": components["schemas"]["ErrorResponse"];
2817
+ };
2818
+ };
2819
+ };
2820
+ };
2821
+ delete?: never;
2822
+ options?: never;
2823
+ head?: never;
2824
+ patch?: never;
2825
+ trace?: never;
2826
+ };
2827
+ "/packages/{publisherId}/libraries/{libraryId}/versions/{libraryVersion}/files/{fileName}": {
2828
+ parameters: {
2829
+ query?: never;
2830
+ header?: never;
2831
+ path?: never;
2832
+ cookie?: never;
2833
+ };
2834
+ /** Download a specific file of a library. Security is optional. */
2835
+ get: {
2836
+ parameters: {
2837
+ query?: never;
2838
+ header?: never;
2839
+ path: {
2840
+ /** @description Id of the publisher */
2841
+ publisherId: components["parameters"]["PublisherId"];
2842
+ /** @description Unique library id for this publisher */
2843
+ libraryId: components["parameters"]["LibraryId"];
2844
+ /** @description version of the library. Formatted as semantic version */
2845
+ libraryVersion: components["parameters"]["LibraryVersion"];
2846
+ /** @description Filename that can be fetched */
2847
+ libraryFileName: components["parameters"]["LibraryFileName"];
2848
+ };
2849
+ cookie?: never;
2850
+ };
2851
+ requestBody?: never;
2852
+ responses: {
2853
+ /** @description successful operation */
2854
+ 200: {
2855
+ headers: {
2856
+ [name: string]: unknown;
2857
+ };
2858
+ content: {
2859
+ "application/gzip": string;
2860
+ "text/markdown": string;
2861
+ };
2862
+ };
2863
+ /** @description bad request */
2864
+ 400: {
2865
+ headers: {
2866
+ [name: string]: unknown;
2867
+ };
2868
+ content: {
2869
+ "application/json": components["schemas"]["ErrorResponse"];
2870
+ };
2871
+ };
2872
+ /** @description not found */
2873
+ 404: {
2874
+ headers: {
2875
+ [name: string]: unknown;
2876
+ };
2877
+ content: {
2878
+ "application/json": components["schemas"]["ErrorResponse"];
2879
+ };
2880
+ };
2881
+ /** @description unprocessable entity */
2882
+ 422: {
2883
+ headers: {
2884
+ [name: string]: unknown;
2885
+ };
2886
+ content: {
2887
+ "application/json": components["schemas"]["ErrorResponse"];
2888
+ };
2889
+ };
2890
+ /** @description internal Server Error */
2891
+ 500: {
2892
+ headers: {
2893
+ [name: string]: unknown;
2894
+ };
2895
+ content: {
2896
+ "application/json": components["schemas"]["ErrorResponse"];
2897
+ };
2898
+ };
2899
+ };
2900
+ };
2901
+ put?: never;
2902
+ post?: never;
2903
+ delete?: never;
2904
+ options?: never;
2905
+ head?: never;
2906
+ patch?: never;
2907
+ trace?: never;
2908
+ };
2909
+ "/packages/{publisherId}/applications": {
2910
+ parameters: {
2911
+ query?: never;
2912
+ header?: never;
2913
+ path?: never;
2914
+ cookie?: never;
2915
+ };
2916
+ get?: never;
2917
+ put?: never;
2918
+ /** Add a new application to the registry */
2919
+ post: {
2920
+ parameters: {
2921
+ query?: never;
2922
+ header?: never;
2923
+ path: {
2924
+ /** @description Id of the publisher */
2925
+ publisherId: components["parameters"]["PublisherId"];
2926
+ };
2927
+ cookie?: never;
2928
+ };
2929
+ requestBody?: {
2930
+ content: {
2931
+ "application/json": components["schemas"]["NewApplication"];
2932
+ };
2933
+ };
2934
+ responses: {
2935
+ /** @description successful operation */
2936
+ 201: {
2937
+ headers: {
2938
+ [name: string]: unknown;
2939
+ };
2940
+ content: {
2941
+ "application/json": {
2942
+ /** @description The newly generated application id */
2943
+ id?: string;
2944
+ };
2945
+ };
2946
+ };
2947
+ /** @description bad request */
2948
+ 400: {
2949
+ headers: {
2950
+ [name: string]: unknown;
2951
+ };
2952
+ content: {
2953
+ "application/json": components["schemas"]["ErrorResponse"];
2954
+ };
2955
+ };
2956
+ /** @description forbidden */
2957
+ 403: {
2958
+ headers: {
2959
+ [name: string]: unknown;
2960
+ };
2961
+ content: {
2962
+ "application/json": components["schemas"]["ErrorResponse"];
2963
+ };
2964
+ };
2965
+ /** @description not found */
2966
+ 404: {
2967
+ headers: {
2968
+ [name: string]: unknown;
2969
+ };
2970
+ content: {
2971
+ "application/json": components["schemas"]["ErrorResponse"];
2972
+ };
2973
+ };
2974
+ /** @description conflict */
2975
+ 409: {
2976
+ headers: {
2977
+ [name: string]: unknown;
2978
+ };
2979
+ content: {
2980
+ "application/json": components["schemas"]["ErrorResponse"];
2981
+ };
2982
+ };
2983
+ /** @description unprocessable entity */
2984
+ 422: {
2985
+ headers: {
2986
+ [name: string]: unknown;
2987
+ };
2988
+ content: {
2989
+ "application/json": components["schemas"]["ErrorResponse"];
2990
+ };
2991
+ };
2992
+ /** @description internal Server Error */
2993
+ 500: {
2994
+ headers: {
2995
+ [name: string]: unknown;
2996
+ };
2997
+ content: {
2998
+ "application/json": components["schemas"]["ErrorResponse"];
2999
+ };
3000
+ };
3001
+ };
3002
+ };
3003
+ delete?: never;
3004
+ options?: never;
3005
+ head?: never;
3006
+ patch?: never;
3007
+ trace?: never;
3008
+ };
3009
+ "/packages/{publisherId}/applications/{applicationId}": {
3010
+ parameters: {
3011
+ query?: never;
3012
+ header?: never;
3013
+ path?: never;
3014
+ cookie?: never;
3015
+ };
3016
+ get?: never;
3017
+ /** Update the profile of an existing application */
3018
+ put: {
3019
+ parameters: {
3020
+ query?: never;
3021
+ header?: never;
3022
+ path: {
3023
+ /** @description Id of the publisher */
3024
+ publisherId: components["parameters"]["PublisherId"];
3025
+ /** @description Unique library id for this publisher */
3026
+ applicationId: components["parameters"]["ApplicationId"];
3027
+ };
3028
+ cookie?: never;
3029
+ };
3030
+ requestBody?: {
3031
+ content: {
3032
+ "application/json": components["schemas"]["NewApplication"];
3033
+ };
3034
+ };
3035
+ responses: {
3036
+ /** @description successful operation */
3037
+ 204: {
3038
+ headers: {
3039
+ [name: string]: unknown;
3040
+ };
3041
+ content?: never;
3042
+ };
3043
+ /** @description bad request */
3044
+ 400: {
3045
+ headers: {
3046
+ [name: string]: unknown;
3047
+ };
3048
+ content: {
3049
+ "application/json": components["schemas"]["ErrorResponse"];
3050
+ };
3051
+ };
3052
+ /** @description forbidden */
3053
+ 403: {
3054
+ headers: {
3055
+ [name: string]: unknown;
3056
+ };
3057
+ content: {
3058
+ "application/json": components["schemas"]["ErrorResponse"];
3059
+ };
3060
+ };
3061
+ /** @description not found */
3062
+ 404: {
3063
+ headers: {
3064
+ [name: string]: unknown;
3065
+ };
3066
+ content: {
3067
+ "application/json": components["schemas"]["ErrorResponse"];
3068
+ };
3069
+ };
3070
+ /** @description conflict */
3071
+ 409: {
3072
+ headers: {
3073
+ [name: string]: unknown;
3074
+ };
3075
+ content: {
3076
+ "application/json": components["schemas"]["ErrorResponse"];
3077
+ };
3078
+ };
3079
+ /** @description unprocessable entity */
3080
+ 422: {
3081
+ headers: {
3082
+ [name: string]: unknown;
3083
+ };
3084
+ content: {
3085
+ "application/json": components["schemas"]["ErrorResponse"];
3086
+ };
3087
+ };
3088
+ /** @description internal Server Error */
3089
+ 500: {
3090
+ headers: {
3091
+ [name: string]: unknown;
3092
+ };
3093
+ content: {
3094
+ "application/json": components["schemas"]["ErrorResponse"];
3095
+ };
3096
+ };
3097
+ };
3098
+ };
3099
+ post?: never;
3100
+ delete?: never;
3101
+ options?: never;
3102
+ head?: never;
3103
+ patch?: never;
3104
+ trace?: never;
3105
+ };
3106
+ "/packages/{publisherId}/applications/{applicationId}/versions/{applicationVersion}": {
3107
+ parameters: {
3108
+ query?: never;
3109
+ header?: never;
3110
+ path?: never;
3111
+ cookie?: never;
3112
+ };
3113
+ get?: never;
3114
+ /** Update the release phase of an existing version */
3115
+ put: {
3116
+ parameters: {
3117
+ query?: never;
3118
+ header?: {
3119
+ "X-Semver"?: components["parameters"]["ApplicationVersionInSemver"];
3120
+ };
3121
+ path: {
3122
+ /** @description Id of the publisher */
3123
+ publisherId: components["parameters"]["PublisherId"];
3124
+ /** @description Unique library id for this publisher */
3125
+ applicationId: components["parameters"]["ApplicationId"];
3126
+ /** @description version of the application. Either integer or for new applications semver */
3127
+ applicationVersion: components["parameters"]["ApplicationVersion"];
3128
+ };
3129
+ cookie?: never;
3130
+ };
3131
+ requestBody?: {
3132
+ content: {
3133
+ "application/json": components["schemas"]["ApplicationVersionUpdate"];
3134
+ };
3135
+ };
3136
+ responses: {
3137
+ /** @description successful operation */
3138
+ 204: {
3139
+ headers: {
3140
+ [name: string]: unknown;
3141
+ };
3142
+ content?: never;
3143
+ };
3144
+ /** @description bad request */
3145
+ 400: {
3146
+ headers: {
3147
+ [name: string]: unknown;
3148
+ };
3149
+ content: {
3150
+ "application/json": components["schemas"]["ErrorResponse"];
3151
+ };
3152
+ };
3153
+ /** @description forbidden */
3154
+ 403: {
3155
+ headers: {
3156
+ [name: string]: unknown;
3157
+ };
3158
+ content: {
3159
+ "application/json": components["schemas"]["ErrorResponse"];
3160
+ };
3161
+ };
3162
+ /** @description not found */
3163
+ 404: {
3164
+ headers: {
3165
+ [name: string]: unknown;
3166
+ };
3167
+ content: {
3168
+ "application/json": components["schemas"]["ErrorResponse"];
3169
+ };
3170
+ };
3171
+ /** @description conflict */
3172
+ 409: {
3173
+ headers: {
3174
+ [name: string]: unknown;
3175
+ };
3176
+ content: {
3177
+ "application/json": components["schemas"]["ErrorResponse"];
3178
+ };
3179
+ };
3180
+ /** @description unprocessable entity */
3181
+ 422: {
3182
+ headers: {
3183
+ [name: string]: unknown;
3184
+ };
3185
+ content: {
3186
+ "application/json": components["schemas"]["ErrorResponse"];
3187
+ };
3188
+ };
3189
+ /** @description internal Server Error */
3190
+ 500: {
3191
+ headers: {
3192
+ [name: string]: unknown;
3193
+ };
3194
+ content: {
3195
+ "application/json": components["schemas"]["ErrorResponse"];
3196
+ };
3197
+ };
3198
+ };
3199
+ };
3200
+ /** Add a new application version to the registry */
3201
+ post: {
3202
+ parameters: {
3203
+ query?: never;
3204
+ header?: {
3205
+ "X-Semver"?: components["parameters"]["ApplicationVersionInSemver"];
3206
+ };
3207
+ path: {
3208
+ /** @description Id of the publisher */
3209
+ publisherId: components["parameters"]["PublisherId"];
3210
+ /** @description Unique library id for this publisher */
3211
+ applicationId: components["parameters"]["ApplicationId"];
3212
+ /** @description version of the application. Either integer or for new applications semver */
3213
+ applicationVersion: components["parameters"]["ApplicationVersion"];
3214
+ };
3215
+ cookie?: never;
3216
+ };
3217
+ requestBody?: {
3218
+ content: {
3219
+ "multipart/form-data": {
3220
+ tag: components["schemas"]["ApplicationTagInformation"];
3221
+ /**
3222
+ * Format: binary
3223
+ * @description The xml representation of the DDE
3224
+ */
3225
+ "bin/dde/xml": string;
3226
+ /**
3227
+ * Format: binary
3228
+ * @description The compiled dlo binary
3229
+ */
3230
+ "bin/dlo/amx": string;
3231
+ };
3232
+ };
3233
+ };
3234
+ responses: {
3235
+ /** @description successful operation */
3236
+ 201: {
3237
+ headers: {
3238
+ [name: string]: unknown;
3239
+ };
3240
+ content: {
3241
+ "application/json": {
3242
+ /** Format: date-time */
3243
+ tag_stamp: string;
3244
+ version: number | string;
3245
+ phase: string;
3246
+ /** Format: date-time */
3247
+ phase_stamp: string;
3248
+ };
3249
+ };
3250
+ };
3251
+ /** @description bad request */
3252
+ 400: {
3253
+ headers: {
3254
+ [name: string]: unknown;
3255
+ };
3256
+ content: {
3257
+ "application/json": components["schemas"]["ErrorResponse"];
3258
+ };
3259
+ };
3260
+ /** @description forbidden */
3261
+ 403: {
3262
+ headers: {
3263
+ [name: string]: unknown;
3264
+ };
3265
+ content: {
3266
+ "application/json": components["schemas"]["ErrorResponse"];
3267
+ };
3268
+ };
3269
+ /** @description not found */
3270
+ 404: {
3271
+ headers: {
3272
+ [name: string]: unknown;
3273
+ };
3274
+ content: {
3275
+ "application/json": components["schemas"]["ErrorResponse"];
3276
+ };
3277
+ };
3278
+ /** @description conflict */
3279
+ 409: {
3280
+ headers: {
3281
+ [name: string]: unknown;
3282
+ };
3283
+ content: {
3284
+ "application/json": {
3285
+ /** @description Information about what went/is wrong */
3286
+ err: string;
3287
+ };
3288
+ };
3289
+ };
3290
+ /** @description unprocessable entity */
3291
+ 422: {
3292
+ headers: {
3293
+ [name: string]: unknown;
3294
+ };
3295
+ content: {
3296
+ "application/json": components["schemas"]["ErrorResponse"];
3297
+ };
3298
+ };
3299
+ /** @description internal Server Error */
3300
+ 500: {
3301
+ headers: {
3302
+ [name: string]: unknown;
3303
+ };
3304
+ content: {
3305
+ "application/json": components["schemas"]["ErrorResponse"];
3306
+ };
3307
+ };
3308
+ };
3309
+ };
3310
+ delete?: never;
3311
+ options?: never;
3312
+ head?: never;
3313
+ patch?: never;
3314
+ trace?: never;
3315
+ };
3316
+ "/packages/{publisherId}/applications/{applicationId}/versions/{applicationVersion}/files/{fileName}": {
3317
+ parameters: {
3318
+ query?: never;
3319
+ header?: never;
3320
+ path?: never;
3321
+ cookie?: never;
3322
+ };
3323
+ /** Download a specific file of the application tag. */
3324
+ get: {
3325
+ parameters: {
3326
+ query?: never;
3327
+ header?: {
3328
+ "X-Semver"?: components["parameters"]["ApplicationVersionInSemver"];
3329
+ };
3330
+ path: {
3331
+ /** @description Id of the publisher */
3332
+ publisherId: components["parameters"]["PublisherId"];
3333
+ /** @description Unique library id for this publisher */
3334
+ applicationId: components["parameters"]["ApplicationId"];
3335
+ /** @description version of the application. Either integer or for new applications semver */
3336
+ applicationVersion: components["parameters"]["ApplicationVersion"];
3337
+ /** @description version of the library. Formatted as semantic version */
3338
+ applicationFileName: components["parameters"]["ApplicationFileName"];
3339
+ };
3340
+ cookie?: never;
3341
+ };
3342
+ requestBody?: never;
3343
+ responses: {
3344
+ /** @description successful operation */
3345
+ 200: {
3346
+ headers: {
3347
+ [name: string]: unknown;
3348
+ };
3349
+ content: {
3350
+ "application/gzip": string;
3351
+ "text/markdown": string;
3352
+ };
3353
+ };
3354
+ /** @description bad request */
3355
+ 400: {
3356
+ headers: {
3357
+ [name: string]: unknown;
3358
+ };
3359
+ content: {
3360
+ "application/json": components["schemas"]["ErrorResponse"];
3361
+ };
3362
+ };
3363
+ /** @description not found */
3364
+ 404: {
3365
+ headers: {
3366
+ [name: string]: unknown;
3367
+ };
3368
+ content: {
3369
+ "application/json": components["schemas"]["ErrorResponse"];
3370
+ };
3371
+ };
3372
+ /** @description unprocessable entity */
3373
+ 422: {
3374
+ headers: {
3375
+ [name: string]: unknown;
3376
+ };
3377
+ content: {
3378
+ "application/json": components["schemas"]["ErrorResponse"];
3379
+ };
3380
+ };
3381
+ /** @description internal Server Error */
3382
+ 500: {
3383
+ headers: {
3384
+ [name: string]: unknown;
3385
+ };
3386
+ content: {
3387
+ "application/json": components["schemas"]["ErrorResponse"];
3388
+ };
3389
+ };
3390
+ };
3391
+ };
3392
+ put?: never;
3393
+ /** Upload a specific file for the application tag. */
3394
+ post: {
3395
+ parameters: {
3396
+ query?: never;
3397
+ header?: {
3398
+ "X-Semver"?: components["parameters"]["ApplicationVersionInSemver"];
3399
+ };
3400
+ path: {
3401
+ /** @description Id of the publisher */
3402
+ publisherId: components["parameters"]["PublisherId"];
3403
+ /** @description Unique library id for this publisher */
3404
+ applicationId: components["parameters"]["ApplicationId"];
3405
+ /** @description version of the application. Either integer or for new applications semver */
3406
+ applicationVersion: components["parameters"]["ApplicationVersion"];
3407
+ /** @description version of the library. Formatted as semantic version */
3408
+ applicationFileName: components["parameters"]["ApplicationFileName"];
3409
+ };
3410
+ cookie?: never;
3411
+ };
3412
+ requestBody?: {
3413
+ content: {
3414
+ "application/octet-stream": string;
3415
+ };
3416
+ };
3417
+ responses: {
3418
+ /** @description successful operation */
3419
+ 204: {
3420
+ headers: {
3421
+ [name: string]: unknown;
3422
+ };
3423
+ content?: never;
3424
+ };
3425
+ /** @description bad request */
3426
+ 400: {
3427
+ headers: {
3428
+ [name: string]: unknown;
3429
+ };
3430
+ content: {
3431
+ "application/json": components["schemas"]["ErrorResponse"];
3432
+ };
3433
+ };
3434
+ /** @description not found */
3435
+ 404: {
3436
+ headers: {
3437
+ [name: string]: unknown;
3438
+ };
3439
+ content: {
3440
+ "application/json": components["schemas"]["ErrorResponse"];
3441
+ };
3442
+ };
3443
+ /** @description unprocessable entity */
3444
+ 422: {
3445
+ headers: {
3446
+ [name: string]: unknown;
3447
+ };
3448
+ content: {
3449
+ "application/json": components["schemas"]["ErrorResponse"];
3450
+ };
3451
+ };
3452
+ /** @description internal Server Error */
3453
+ 500: {
3454
+ headers: {
3455
+ [name: string]: unknown;
3456
+ };
3457
+ content: {
3458
+ "application/json": components["schemas"]["ErrorResponse"];
3459
+ };
3460
+ };
3461
+ };
3462
+ };
3463
+ delete?: never;
3464
+ options?: never;
3465
+ head?: never;
3466
+ patch?: never;
3467
+ trace?: never;
3468
+ };
3469
+ "/publisher/{publisherId}/members": {
3470
+ parameters: {
3471
+ query?: never;
3472
+ header?: never;
3473
+ path?: never;
3474
+ cookie?: never;
3475
+ };
3476
+ /** Get the member list of the given publisher */
3477
+ get: {
3478
+ parameters: {
3479
+ query?: never;
3480
+ header?: never;
3481
+ path: {
3482
+ /** @description Id of the publisher */
3483
+ publisherId: components["parameters"]["PublisherId"];
3484
+ };
3485
+ cookie?: never;
3486
+ };
3487
+ requestBody?: never;
3488
+ responses: {
3489
+ /** @description successful operation */
3490
+ 200: {
3491
+ headers: {
3492
+ [name: string]: unknown;
3493
+ };
3494
+ content: {
3495
+ "application/json": components["schemas"]["PublisherMemberListInformation"];
3496
+ };
3497
+ };
3498
+ /** @description bad request */
3499
+ 400: {
3500
+ headers: {
3501
+ [name: string]: unknown;
3502
+ };
3503
+ content: {
3504
+ "application/json": components["schemas"]["ErrorResponse"];
3505
+ };
3506
+ };
3507
+ /** @description not found */
3508
+ 404: {
3509
+ headers: {
3510
+ [name: string]: unknown;
3511
+ };
3512
+ content: {
3513
+ "application/json": components["schemas"]["ErrorResponse"];
3514
+ };
3515
+ };
3516
+ /** @description unprocessable entity */
3517
+ 422: {
3518
+ headers: {
3519
+ [name: string]: unknown;
3520
+ };
3521
+ content: {
3522
+ "application/json": components["schemas"]["ErrorResponse"];
3523
+ };
3524
+ };
3525
+ /** @description internal Server Error */
3526
+ 500: {
3527
+ headers: {
3528
+ [name: string]: unknown;
3529
+ };
3530
+ content: {
3531
+ "application/json": components["schemas"]["ErrorResponse"];
3532
+ };
3533
+ };
3534
+ };
3535
+ };
3536
+ put?: never;
3537
+ /** Add a member to the given publisher */
3538
+ post: {
3539
+ parameters: {
3540
+ query?: never;
3541
+ header?: never;
3542
+ path: {
3543
+ /** @description Id of the publisher */
3544
+ publisherId: components["parameters"]["PublisherId"];
3545
+ };
3546
+ cookie?: never;
3547
+ };
3548
+ requestBody?: {
3549
+ content: {
3550
+ "application/json": components["schemas"]["NewPublisherMember"];
3551
+ };
3552
+ };
3553
+ responses: {
3554
+ /** @description successful operation */
3555
+ 204: {
3556
+ headers: {
3557
+ [name: string]: unknown;
3558
+ };
3559
+ content?: never;
3560
+ };
3561
+ /** @description bad request */
3562
+ 400: {
3563
+ headers: {
3564
+ [name: string]: unknown;
3565
+ };
3566
+ content: {
3567
+ "application/json": components["schemas"]["ErrorResponse"];
3568
+ };
3569
+ };
3570
+ /** @description forbidden */
3571
+ 403: {
3572
+ headers: {
3573
+ [name: string]: unknown;
3574
+ };
3575
+ content: {
3576
+ "application/json": components["schemas"]["ErrorResponse"];
3577
+ };
3578
+ };
3579
+ /** @description bad request */
3580
+ 404: {
3581
+ headers: {
3582
+ [name: string]: unknown;
3583
+ };
3584
+ content: {
3585
+ "application/json": components["schemas"]["ErrorResponse"];
3586
+ };
3587
+ };
3588
+ /** @description Given member is already a member */
3589
+ 409: {
3590
+ headers: {
3591
+ [name: string]: unknown;
3592
+ };
3593
+ content: {
3594
+ "application/json": components["schemas"]["ErrorResponse"];
3595
+ };
3596
+ };
3597
+ /** @description unprocessable entity */
3598
+ 422: {
3599
+ headers: {
3600
+ [name: string]: unknown;
3601
+ };
3602
+ content: {
3603
+ "application/json": components["schemas"]["ErrorResponse"];
3604
+ };
3605
+ };
3606
+ /** @description internal Server Error */
3607
+ 500: {
3608
+ headers: {
3609
+ [name: string]: unknown;
3610
+ };
3611
+ content: {
3612
+ "application/json": components["schemas"]["ErrorResponse"];
3613
+ };
3614
+ };
3615
+ };
3616
+ };
3617
+ delete?: never;
3618
+ options?: never;
3619
+ head?: never;
3620
+ patch?: never;
3621
+ trace?: never;
3622
+ };
3623
+ "/publisher/{publisherId}/members/{memberId}": {
3624
+ parameters: {
3625
+ query?: never;
3626
+ header?: never;
3627
+ path?: never;
3628
+ cookie?: never;
3629
+ };
3630
+ get?: never;
3631
+ /** Change the role of the given member from the publishers member list */
3632
+ put: {
3633
+ parameters: {
3634
+ query?: never;
3635
+ header?: never;
3636
+ path: {
3637
+ /** @description Id of the publisher */
3638
+ publisherId: components["parameters"]["PublisherId"];
3639
+ /** @description User Id */
3640
+ memberId: components["parameters"]["MemberId"];
3641
+ };
3642
+ cookie?: never;
3643
+ };
3644
+ requestBody?: {
3645
+ content: {
3646
+ "application/json": components["schemas"]["ChangePublisherRole"];
3647
+ };
3648
+ };
3649
+ responses: {
3650
+ /** @description successful operation */
3651
+ 204: {
3652
+ headers: {
3653
+ [name: string]: unknown;
3654
+ };
3655
+ content?: never;
3656
+ };
3657
+ /** @description bad request */
3658
+ 400: {
3659
+ headers: {
3660
+ [name: string]: unknown;
3661
+ };
3662
+ content: {
3663
+ "application/json": components["schemas"]["ErrorResponse"];
3664
+ };
3665
+ };
3666
+ /** @description forbidden */
3667
+ 403: {
3668
+ headers: {
3669
+ [name: string]: unknown;
3670
+ };
3671
+ content: {
3672
+ "application/json": components["schemas"]["ErrorResponse"];
3673
+ };
3674
+ };
3675
+ /** @description not found */
3676
+ 404: {
3677
+ headers: {
3678
+ [name: string]: unknown;
3679
+ };
3680
+ content: {
3681
+ "application/json": components["schemas"]["ErrorResponse"];
3682
+ };
3683
+ };
3684
+ /** @description unprocessable entity */
3685
+ 422: {
3686
+ headers: {
3687
+ [name: string]: unknown;
3688
+ };
3689
+ content: {
3690
+ "application/json": components["schemas"]["ErrorResponse"];
3691
+ };
3692
+ };
3693
+ /** @description internal Server Error */
3694
+ 500: {
3695
+ headers: {
3696
+ [name: string]: unknown;
3697
+ };
3698
+ content: {
3699
+ "application/json": components["schemas"]["ErrorResponse"];
3700
+ };
3701
+ };
3702
+ };
3703
+ };
3704
+ post?: never;
3705
+ /** Remove the given member from the publishers member list */
3706
+ delete: {
3707
+ parameters: {
3708
+ query?: never;
3709
+ header?: never;
3710
+ path: {
3711
+ /** @description Id of the publisher */
3712
+ publisherId: components["parameters"]["PublisherId"];
3713
+ /** @description User Id */
3714
+ memberId: components["parameters"]["MemberId"];
3715
+ };
3716
+ cookie?: never;
3717
+ };
3718
+ requestBody?: never;
3719
+ responses: {
3720
+ /** @description successful operation */
3721
+ 204: {
3722
+ headers: {
3723
+ [name: string]: unknown;
3724
+ };
3725
+ content?: never;
3726
+ };
3727
+ /** @description bad request */
3728
+ 400: {
3729
+ headers: {
3730
+ [name: string]: unknown;
3731
+ };
3732
+ content: {
3733
+ "application/json": components["schemas"]["ErrorResponse"];
3734
+ };
3735
+ };
3736
+ /** @description forbidden */
3737
+ 403: {
3738
+ headers: {
3739
+ [name: string]: unknown;
3740
+ };
3741
+ content: {
3742
+ "application/json": components["schemas"]["ErrorResponse"];
3743
+ };
3744
+ };
3745
+ /** @description not found */
3746
+ 404: {
3747
+ headers: {
3748
+ [name: string]: unknown;
3749
+ };
3750
+ content: {
3751
+ "application/json": components["schemas"]["ErrorResponse"];
3752
+ };
3753
+ };
3754
+ /** @description unprocessable entity */
3755
+ 422: {
3756
+ headers: {
3757
+ [name: string]: unknown;
3758
+ };
3759
+ content: {
3760
+ "application/json": components["schemas"]["ErrorResponse"];
3761
+ };
3762
+ };
3763
+ /** @description internal Server Error */
3764
+ 500: {
3765
+ headers: {
3766
+ [name: string]: unknown;
3767
+ };
3768
+ content: {
3769
+ "application/json": components["schemas"]["ErrorResponse"];
3770
+ };
3771
+ };
3772
+ };
3773
+ };
3774
+ options?: never;
3775
+ head?: never;
3776
+ patch?: never;
3777
+ trace?: never;
3778
+ };
3779
+ "/cloudstudio/publisher/{publisherId}/assign-application": {
3780
+ parameters: {
3781
+ query?: never;
3782
+ header?: never;
3783
+ path?: never;
3784
+ cookie?: never;
3785
+ };
3786
+ get?: never;
3787
+ put?: never;
3788
+ /** Transfer Store ownership to the given publisher */
3789
+ post: {
3790
+ parameters: {
3791
+ query?: never;
3792
+ header?: never;
3793
+ path: {
3794
+ /** @description Id of the publisher */
3795
+ publisherId: components["parameters"]["PublisherId"];
3796
+ };
3797
+ cookie?: never;
3798
+ };
3799
+ requestBody?: {
3800
+ content: {
3801
+ "application/json": components["schemas"]["CloudStudioApplicationAssign"];
3802
+ };
3803
+ };
3804
+ responses: {
3805
+ /** @description successful operation */
3806
+ 204: {
3807
+ headers: {
3808
+ [name: string]: unknown;
3809
+ };
3810
+ content?: never;
3811
+ };
3812
+ /** @description bad request */
3813
+ 400: {
3814
+ headers: {
3815
+ [name: string]: unknown;
3816
+ };
3817
+ content: {
3818
+ "application/json": components["schemas"]["ErrorResponse"];
3819
+ };
3820
+ };
3821
+ /** @description forbidden */
3822
+ 403: {
3823
+ headers: {
3824
+ [name: string]: unknown;
3825
+ };
3826
+ content: {
3827
+ "application/json": components["schemas"]["ErrorResponse"];
3828
+ };
3829
+ };
3830
+ /** @description bad request */
3831
+ 404: {
3832
+ headers: {
3833
+ [name: string]: unknown;
3834
+ };
3835
+ content: {
3836
+ "application/json": components["schemas"]["ErrorResponse"];
3837
+ };
3838
+ };
3839
+ /** @description Given member is already a member */
3840
+ 409: {
3841
+ headers: {
3842
+ [name: string]: unknown;
3843
+ };
3844
+ content: {
3845
+ "application/json": components["schemas"]["ErrorResponse"];
3846
+ };
3847
+ };
3848
+ /** @description unprocessable entity */
3849
+ 422: {
3850
+ headers: {
3851
+ [name: string]: unknown;
3852
+ };
3853
+ content: {
3854
+ "application/json": components["schemas"]["ErrorResponse"];
3855
+ };
3856
+ };
3857
+ /** @description internal Server Error */
3858
+ 500: {
3859
+ headers: {
3860
+ [name: string]: unknown;
3861
+ };
3862
+ content: {
3863
+ "application/json": components["schemas"]["ErrorResponse"];
3864
+ };
3865
+ };
3866
+ };
3867
+ };
3868
+ delete?: never;
3869
+ options?: never;
3870
+ head?: never;
3871
+ patch?: never;
3872
+ trace?: never;
3873
+ };
3874
+ "/cloudstudio/applications/{applicationId}": {
3875
+ parameters: {
3876
+ query?: never;
3877
+ header?: never;
3878
+ path?: never;
3879
+ cookie?: never;
3880
+ };
3881
+ /** Validate if the given applicationId is already assigned to a publisher */
3882
+ get: {
3883
+ parameters: {
3884
+ query?: never;
3885
+ header?: never;
3886
+ path: {
3887
+ /** @description Unique library id for this publisher */
3888
+ applicationId: components["parameters"]["ApplicationId"];
3889
+ };
3890
+ cookie?: never;
3891
+ };
3892
+ requestBody?: never;
3893
+ responses: {
3894
+ /** @description Successful operation */
3895
+ 200: {
3896
+ headers: {
3897
+ [name: string]: unknown;
3898
+ };
3899
+ content: {
3900
+ "application/json": components["schemas"]["Publisher"];
3901
+ };
3902
+ };
3903
+ /** @description bad request */
3904
+ 400: {
3905
+ headers: {
3906
+ [name: string]: unknown;
3907
+ };
3908
+ content: {
3909
+ "application/json": components["schemas"]["ErrorResponse"];
3910
+ };
3911
+ };
3912
+ /** @description forbidden */
3913
+ 403: {
3914
+ headers: {
3915
+ [name: string]: unknown;
3916
+ };
3917
+ content: {
3918
+ "application/json": components["schemas"]["ErrorResponse"];
3919
+ };
3920
+ };
3921
+ /** @description not found */
3922
+ 404: {
3923
+ headers: {
3924
+ [name: string]: unknown;
3925
+ };
3926
+ content: {
3927
+ "application/json": components["schemas"]["ErrorResponse"];
3928
+ };
3929
+ };
3930
+ /** @description unprocessable entity */
3931
+ 422: {
3932
+ headers: {
3933
+ [name: string]: unknown;
3934
+ };
3935
+ content: {
3936
+ "application/json": components["schemas"]["ErrorResponse"];
3937
+ };
3938
+ };
3939
+ /** @description internal Server Error */
3940
+ 500: {
3941
+ headers: {
3942
+ [name: string]: unknown;
3943
+ };
3944
+ content: {
3945
+ "application/json": components["schemas"]["ErrorResponse"];
3946
+ };
3947
+ };
3948
+ };
3949
+ };
3950
+ put?: never;
3951
+ post?: never;
3952
+ delete?: never;
3953
+ options?: never;
3954
+ head?: never;
3955
+ patch?: never;
3956
+ trace?: never;
3957
+ };
3958
+ "/users/{userId}/manage/api-tokens": {
3959
+ parameters: {
3960
+ query?: never;
3961
+ header?: never;
3962
+ path?: never;
3963
+ cookie?: never;
3964
+ };
3965
+ /** Get the api tokens of the given user */
3966
+ get: {
3967
+ parameters: {
3968
+ query?: never;
3969
+ header?: never;
3970
+ path: {
3971
+ /** @description User Id */
3972
+ userId: components["parameters"]["UserId"];
3973
+ };
3974
+ cookie?: never;
3975
+ };
3976
+ requestBody?: never;
3977
+ responses: {
3978
+ /** @description Successful operation */
3979
+ 200: {
3980
+ headers: {
3981
+ [name: string]: unknown;
3982
+ };
3983
+ content: {
3984
+ "application/json": [
3985
+ components["schemas"]["ApiToken"]
3986
+ ];
3987
+ };
3988
+ };
3989
+ /** @description bad request */
3990
+ 400: {
3991
+ headers: {
3992
+ [name: string]: unknown;
3993
+ };
3994
+ content: {
3995
+ "application/json": components["schemas"]["ErrorResponse"];
3996
+ };
3997
+ };
3998
+ /** @description forbidden */
3999
+ 403: {
4000
+ headers: {
4001
+ [name: string]: unknown;
4002
+ };
4003
+ content: {
4004
+ "application/json": components["schemas"]["ErrorResponse"];
4005
+ };
4006
+ };
4007
+ /** @description unprocessable entity */
4008
+ 422: {
4009
+ headers: {
4010
+ [name: string]: unknown;
4011
+ };
4012
+ content: {
4013
+ "application/json": components["schemas"]["ErrorResponse"];
4014
+ };
4015
+ };
4016
+ /** @description internal Server Error */
4017
+ 500: {
4018
+ headers: {
4019
+ [name: string]: unknown;
4020
+ };
4021
+ content: {
4022
+ "application/json": components["schemas"]["ErrorResponse"];
4023
+ };
4024
+ };
4025
+ };
4026
+ };
4027
+ put?: never;
4028
+ /** Create a new api token for the given userid */
4029
+ post: {
4030
+ parameters: {
4031
+ query?: never;
4032
+ header?: never;
4033
+ path: {
4034
+ /** @description User Id */
4035
+ userId: components["parameters"]["UserId"];
4036
+ };
4037
+ cookie?: never;
4038
+ };
4039
+ requestBody?: {
4040
+ content: {
4041
+ "application/json": components["schemas"]["NewApiToken"];
4042
+ };
4043
+ };
4044
+ responses: {
4045
+ /** @description Successful operation */
4046
+ 201: {
4047
+ headers: {
4048
+ [name: string]: unknown;
4049
+ };
4050
+ content: {
4051
+ "application/json": components["schemas"]["ApiTokenCreated"];
4052
+ };
4053
+ };
4054
+ /** @description bad request */
4055
+ 400: {
4056
+ headers: {
4057
+ [name: string]: unknown;
4058
+ };
4059
+ content: {
4060
+ "application/json": components["schemas"]["ErrorResponse"];
4061
+ };
4062
+ };
4063
+ /** @description forbidden */
4064
+ 403: {
4065
+ headers: {
4066
+ [name: string]: unknown;
4067
+ };
4068
+ content: {
4069
+ "application/json": components["schemas"]["ErrorResponse"];
4070
+ };
4071
+ };
4072
+ /** @description unprocessable entity */
4073
+ 422: {
4074
+ headers: {
4075
+ [name: string]: unknown;
4076
+ };
4077
+ content: {
4078
+ "application/json": components["schemas"]["ErrorResponse"];
4079
+ };
4080
+ };
4081
+ /** @description internal Server Error */
4082
+ 500: {
4083
+ headers: {
4084
+ [name: string]: unknown;
4085
+ };
4086
+ content: {
4087
+ "application/json": components["schemas"]["ErrorResponse"];
4088
+ };
4089
+ };
4090
+ };
4091
+ };
4092
+ delete?: never;
4093
+ options?: never;
4094
+ head?: never;
4095
+ patch?: never;
4096
+ trace?: never;
4097
+ };
4098
+ "/users/{userId}/manage/api-tokens/{tokenId}": {
4099
+ parameters: {
4100
+ query?: never;
4101
+ header?: never;
4102
+ path?: never;
4103
+ cookie?: never;
4104
+ };
4105
+ get?: never;
4106
+ put?: never;
4107
+ post?: never;
4108
+ /** Remove the given api token */
4109
+ delete: {
4110
+ parameters: {
4111
+ query?: never;
4112
+ header?: never;
4113
+ path: {
4114
+ /** @description User Id */
4115
+ userId: components["parameters"]["UserId"];
4116
+ /** @description Id of theapi token */
4117
+ tokenId: components["parameters"]["TokenId"];
4118
+ };
4119
+ cookie?: never;
4120
+ };
4121
+ requestBody?: never;
4122
+ responses: {
4123
+ /** @description successful operation */
4124
+ 204: {
4125
+ headers: {
4126
+ [name: string]: unknown;
4127
+ };
4128
+ content?: never;
4129
+ };
4130
+ /** @description bad request */
4131
+ 400: {
4132
+ headers: {
4133
+ [name: string]: unknown;
4134
+ };
4135
+ content: {
4136
+ "application/json": components["schemas"]["ErrorResponse"];
4137
+ };
4138
+ };
4139
+ /** @description not found */
4140
+ 404: {
4141
+ headers: {
4142
+ [name: string]: unknown;
4143
+ };
4144
+ content: {
4145
+ "application/json": components["schemas"]["ErrorResponse"];
4146
+ };
4147
+ };
4148
+ /** @description unprocessable entity */
4149
+ 422: {
4150
+ headers: {
4151
+ [name: string]: unknown;
4152
+ };
4153
+ content: {
4154
+ "application/json": components["schemas"]["ErrorResponse"];
4155
+ };
4156
+ };
4157
+ /** @description internal Server Error */
4158
+ 500: {
4159
+ headers: {
4160
+ [name: string]: unknown;
4161
+ };
4162
+ content: {
4163
+ "application/json": components["schemas"]["ErrorResponse"];
4164
+ };
4165
+ };
4166
+ };
4167
+ };
4168
+ options?: never;
4169
+ head?: never;
4170
+ patch?: never;
4171
+ trace?: never;
4172
+ };
4173
+ }
4174
+
4175
+ export declare namespace Registry {
4176
+ export type AuthToken = string | null;
4177
+ /**
4178
+ * Get the actual api url based on the STUDIO_ENV
4179
+ */
4180
+ const getAPIUrl: () => {
4181
+ baseUrl: string;
4182
+ };
4183
+ export type LibraryProfile = components['schemas']['LibraryDetailInformation'];
4184
+ export type LibraryVersion = components['schemas']['LibraryVersion'];
4185
+ /**
4186
+ * Fetch the library profile of the given library
4187
+ * @param token
4188
+ * @param publisherId
4189
+ * @param libraryId
4190
+ */
4191
+ export function getLibraryProfile(token: AuthToken, publisherId: string, libraryId: string): Promise<LibraryProfile>;
4192
+ export function fetchLibraryContent(token: AuthToken, contentURL: string, json?: boolean): Promise<any>;
4193
+ export type Publisher = components['schemas']['Publisher'];
4194
+ export function getPublisher(token: AuthToken, publisherId: string): Promise<Publisher | null>;
4195
+ export type ApiNewApplication = components['schemas']['NewApplication'];
4196
+ export function createNewApplication(token: AuthToken, publisherId: string, newApplication: ApiNewApplication, env?: Globals.ENV): Promise<string | null | undefined>;
4197
+ export type ApplicationDetailInformation = components['schemas']['ApplicationDetailInformation'];
4198
+ export function getExistingApplication(token: AuthToken, publisherId: string, applicationId: string, env?: Globals.ENV): Promise<ApplicationDetailInformation>;
4199
+ export function updateExistingApplication(token: AuthToken, publisherId: string, applicationId: string, updatedApplication: ApiNewApplication, env?: Globals.ENV): Promise<null | undefined>;
4200
+ export type CreatedTagInfo = paths['/packages/{publisherId}/applications/{applicationId}/versions/{applicationVersion}']['post']['responses']['201']['content']['application/json'];
4201
+ export function publishApplicationVersion(token: AuthToken, publisherId: string, applicationId: string, version: string, apmTagBuffer: FormData, env?: Globals.ENV): Promise<CreatedTagInfo>;
4202
+ export type LibraryFiles = {
4203
+ 'studio.json': Uint8Array;
4204
+ 'library.tar.gz': Uint8Array;
4205
+ 'README.md': Uint8Array;
4206
+ 'CHANGELOG.md': Uint8Array;
4207
+ };
4208
+ export function publishLibraryVersion(token: AuthToken, publisherId: string, libraryId: string, libraryVersion: string, files: LibraryFiles, env?: Globals.ENV): Promise<void>;
1883
4209
  }
1884
4210
 
1885
4211
  declare function uriToMemFsPath(path: URI): string;