@ndla/types-backend 1.0.127 → 1.0.129

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.
@@ -352,6 +352,26 @@ export type paths = {
352
352
  patch?: never;
353
353
  trace?: never;
354
354
  };
355
+ "/image-api/raw/{image_name}/{variant_size}": {
356
+ parameters: {
357
+ query?: never;
358
+ header?: never;
359
+ path?: never;
360
+ cookie?: never;
361
+ };
362
+ /**
363
+ * Fetch an image variant
364
+ * @description Fetches a specific image variant size
365
+ */
366
+ get: operations["getImage-apiRawImage_nameVariant_size"];
367
+ put?: never;
368
+ post?: never;
369
+ delete?: never;
370
+ options?: never;
371
+ head?: never;
372
+ patch?: never;
373
+ trace?: never;
374
+ };
355
375
  };
356
376
  export type webhooks = Record<string, never>;
357
377
  export type components = {
@@ -2217,6 +2237,8 @@ export interface operations {
2217
2237
  ratio?: number;
2218
2238
  /** @description The wanted aspect ratio, defined as width/height. To be used together with the focal parameters. If used the width and height is ignored and derived from the aspect ratio instead. */
2219
2239
  language?: string;
2240
+ /** @description Whether the image should be downloaded or not. Only the presence of this parameter is needed. */
2241
+ download?: string;
2220
2242
  };
2221
2243
  header?: {
2222
2244
  /** @description Your app-key. May be omitted to access api anonymously, but rate limiting may apply on anonymous access. */
@@ -2234,6 +2256,7 @@ export interface operations {
2234
2256
  headers: {
2235
2257
  "Content-Type": string;
2236
2258
  "Content-Length": string;
2259
+ "Content-Disposition"?: string;
2237
2260
  "Cache-Control": string;
2238
2261
  [name: string]: unknown;
2239
2262
  };
@@ -2292,6 +2315,8 @@ export interface operations {
2292
2315
  ratio?: number;
2293
2316
  /** @description The wanted aspect ratio, defined as width/height. To be used together with the focal parameters. If used the width and height is ignored and derived from the aspect ratio instead. */
2294
2317
  language?: string;
2318
+ /** @description Whether the image should be downloaded or not. Only the presence of this parameter is needed. */
2319
+ download?: string;
2295
2320
  };
2296
2321
  header?: {
2297
2322
  /** @description Your app-key. May be omitted to access api anonymously, but rate limiting may apply on anonymous access. */
@@ -2309,6 +2334,65 @@ export interface operations {
2309
2334
  headers: {
2310
2335
  "Content-Type": string;
2311
2336
  "Content-Length": string;
2337
+ "Content-Disposition"?: string;
2338
+ "Cache-Control": string;
2339
+ [name: string]: unknown;
2340
+ };
2341
+ content: {
2342
+ "application/octet-stream": Blob;
2343
+ };
2344
+ };
2345
+ 400: {
2346
+ headers: {
2347
+ [name: string]: unknown;
2348
+ };
2349
+ content: {
2350
+ "application/json": components["schemas"]["AllErrors"];
2351
+ };
2352
+ };
2353
+ 404: {
2354
+ headers: {
2355
+ [name: string]: unknown;
2356
+ };
2357
+ content: {
2358
+ "application/json": components["schemas"]["AllErrors"];
2359
+ };
2360
+ };
2361
+ default: {
2362
+ headers: {
2363
+ [name: string]: unknown;
2364
+ };
2365
+ content: {
2366
+ "application/json": components["schemas"]["AllErrors"];
2367
+ };
2368
+ };
2369
+ };
2370
+ };
2371
+ "getImage-apiRawImage_nameVariant_size": {
2372
+ parameters: {
2373
+ query?: never;
2374
+ header?: never;
2375
+ path: {
2376
+ /**
2377
+ * @description The name of the image (without file extension)
2378
+ * @example foobar
2379
+ */
2380
+ image_name: string;
2381
+ /**
2382
+ * @description Image variant size (with file extension)
2383
+ * @example medium.webp
2384
+ */
2385
+ variant_size: string;
2386
+ };
2387
+ cookie?: never;
2388
+ };
2389
+ requestBody?: never;
2390
+ responses: {
2391
+ 200: {
2392
+ headers: {
2393
+ "Content-Type": string;
2394
+ "Content-Length": string;
2395
+ "Content-Disposition"?: string;
2312
2396
  "Cache-Control": string;
2313
2397
  [name: string]: unknown;
2314
2398
  };