@archildata/api-types 0.0.12 → 0.0.13

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 (2) hide show
  1. package/index.d.ts +68 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -248,6 +248,27 @@ export interface paths {
248
248
  patch?: never;
249
249
  trace?: never;
250
250
  };
251
+ "/api/disks/{id}/share": {
252
+ parameters: {
253
+ query?: never;
254
+ header?: never;
255
+ path?: never;
256
+ cookie?: never;
257
+ };
258
+ get?: never;
259
+ put?: never;
260
+ /**
261
+ * Create a share URL for a file
262
+ * @description Creates a signed, time-limited URL for downloading a file without
263
+ * authentication. The URL expires after 24 hours by default.
264
+ */
265
+ post: operations["createShareUrl"];
266
+ delete?: never;
267
+ options?: never;
268
+ head?: never;
269
+ patch?: never;
270
+ trace?: never;
271
+ };
251
272
  "/api/exec": {
252
273
  parameters: {
253
274
  query?: never;
@@ -1151,6 +1172,22 @@ export interface components {
1151
1172
  success: boolean;
1152
1173
  data: components["schemas"]["AuthorizedUser"];
1153
1174
  };
1175
+ CreateShareUrlRequest: {
1176
+ /** @description File key within the disk. */
1177
+ key: string;
1178
+ /** @description URL lifetime in seconds. Defaults to 86400 (24 hours). */
1179
+ expiresIn?: number;
1180
+ };
1181
+ ApiResponse_ShareUrl: {
1182
+ /** @example true */
1183
+ success: boolean;
1184
+ data: {
1185
+ /** Format: uri */
1186
+ url: string;
1187
+ /** @description URL lifetime in seconds. */
1188
+ expiresIn: number;
1189
+ };
1190
+ };
1154
1191
  ApiResponse_AllowedIPs: {
1155
1192
  /** @example true */
1156
1193
  success: boolean;
@@ -1985,6 +2022,37 @@ export interface operations {
1985
2022
  500: components["responses"]["InternalError"];
1986
2023
  };
1987
2024
  };
2025
+ createShareUrl: {
2026
+ parameters: {
2027
+ query?: never;
2028
+ header?: never;
2029
+ path: {
2030
+ /** @description Disk ID (format `dsk-{16 hex chars}`) */
2031
+ id: components["parameters"]["DiskId"];
2032
+ };
2033
+ cookie?: never;
2034
+ };
2035
+ requestBody: {
2036
+ content: {
2037
+ "application/json": components["schemas"]["CreateShareUrlRequest"];
2038
+ };
2039
+ };
2040
+ responses: {
2041
+ /** @description Share URL created */
2042
+ 200: {
2043
+ headers: {
2044
+ [name: string]: unknown;
2045
+ };
2046
+ content: {
2047
+ "application/json": components["schemas"]["ApiResponse_ShareUrl"];
2048
+ };
2049
+ };
2050
+ 400: components["responses"]["ValidationError"];
2051
+ 401: components["responses"]["Unauthorized"];
2052
+ 404: components["responses"]["NotFound"];
2053
+ 500: components["responses"]["InternalError"];
2054
+ };
2055
+ };
1988
2056
  exec: {
1989
2057
  parameters: {
1990
2058
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archildata/api-types",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "description": "API types for the Archil control plane",
5
5
  "type": "module",
6
6
  "types": "index.d.ts",