@giveitsmaller/contracts 0.2.0 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,7 +21,7 @@ export interface MultipartCompleteRequest {
21
21
  * @type {string}
22
22
  * @memberof MultipartCompleteRequest
23
23
  */
24
- fileId: string;
24
+ uploadId: string;
25
25
  /**
26
26
  * ETags for parts 2 through total_parts, collected from S3 PUT responses.
27
27
  * Part 1 ETag is already known from the initiate step.
@@ -16,7 +16,7 @@ import { MultipartCompleteRequestPartsInnerFromJSON, MultipartCompleteRequestPar
16
16
  * Check if a given object implements the MultipartCompleteRequest interface.
17
17
  */
18
18
  export function instanceOfMultipartCompleteRequest(value) {
19
- if (!('fileId' in value) || value['fileId'] === undefined)
19
+ if (!('uploadId' in value) || value['uploadId'] === undefined)
20
20
  return false;
21
21
  if (!('parts' in value) || value['parts'] === undefined)
22
22
  return false;
@@ -30,7 +30,7 @@ export function MultipartCompleteRequestFromJSONTyped(json, ignoreDiscriminator)
30
30
  return json;
31
31
  }
32
32
  return {
33
- 'fileId': json['file_id'],
33
+ 'uploadId': json['upload_id'],
34
34
  'parts': (json['parts'].map(MultipartCompleteRequestPartsInnerFromJSON)),
35
35
  };
36
36
  }
@@ -42,7 +42,7 @@ export function MultipartCompleteRequestToJSONTyped(value, ignoreDiscriminator =
42
42
  return value;
43
43
  }
44
44
  return {
45
- 'file_id': value['fileId'],
45
+ 'upload_id': value['uploadId'],
46
46
  'parts': (value['parts'].map(MultipartCompleteRequestPartsInnerToJSON)),
47
47
  };
48
48
  }
@@ -0,0 +1,50 @@
1
+ /**
2
+ * GISL Compression API
3
+ * REST API for the GISL (Give It Smaller) file compression and processing service. **Architecture:** - Upload files to get a `file_id` - Create workflows referencing uploaded files with operations (compress, thumbnail, watermark, merge, archive, convert) - Poll status, stream SSE events, or receive webhook callbacks - Download results per operation output **Response envelope:** All mutation and query endpoints return `{ success: true, data: {...} }` on success and `{ success: false, error: \"...\", details: [...] }` on failure. Exceptions: `GET /api/operations/schema` returns raw JSON (CDN-cacheable), health probes return flat objects, and `POST /api/contact` returns 204 with no body.
4
+ *
5
+ * The version of the OpenAPI document: 2.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Result of finalising a multipart upload. Intentionally narrower than
14
+ * `UploadResponse` (single-upload shape) — the server returns only the
15
+ * finalised `upload_id` and a completion status. Clients who need file
16
+ * metadata (original name, MIME type, size) can use the values captured
17
+ * during initiate, or call `GET /api/uploads/{id}/metadata`.
18
+ *
19
+ * @export
20
+ * @interface MultipartCompleteResponse
21
+ */
22
+ export interface MultipartCompleteResponse {
23
+ /**
24
+ * UUID v7 format identifier (time-ordered)
25
+ * @type {string}
26
+ * @memberof MultipartCompleteResponse
27
+ */
28
+ uploadId: string;
29
+ /**
30
+ * Terminal status of the multipart upload session.
31
+ * @type {string}
32
+ * @memberof MultipartCompleteResponse
33
+ */
34
+ status: MultipartCompleteResponseStatusEnum;
35
+ }
36
+ /**
37
+ * @export
38
+ */
39
+ export declare const MultipartCompleteResponseStatusEnum: {
40
+ readonly completed: "completed";
41
+ };
42
+ export type MultipartCompleteResponseStatusEnum = typeof MultipartCompleteResponseStatusEnum[keyof typeof MultipartCompleteResponseStatusEnum];
43
+ /**
44
+ * Check if a given object implements the MultipartCompleteResponse interface.
45
+ */
46
+ export declare function instanceOfMultipartCompleteResponse(value: object): value is MultipartCompleteResponse;
47
+ export declare function MultipartCompleteResponseFromJSON(json: any): MultipartCompleteResponse;
48
+ export declare function MultipartCompleteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MultipartCompleteResponse;
49
+ export declare function MultipartCompleteResponseToJSON(json: any): MultipartCompleteResponse;
50
+ export declare function MultipartCompleteResponseToJSONTyped(value?: MultipartCompleteResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,53 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * GISL Compression API
5
+ * REST API for the GISL (Give It Smaller) file compression and processing service. **Architecture:** - Upload files to get a `file_id` - Create workflows referencing uploaded files with operations (compress, thumbnail, watermark, merge, archive, convert) - Poll status, stream SSE events, or receive webhook callbacks - Download results per operation output **Response envelope:** All mutation and query endpoints return `{ success: true, data: {...} }` on success and `{ success: false, error: \"...\", details: [...] }` on failure. Exceptions: `GET /api/operations/schema` returns raw JSON (CDN-cacheable), health probes return flat objects, and `POST /api/contact` returns 204 with no body.
6
+ *
7
+ * The version of the OpenAPI document: 2.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * @export
16
+ */
17
+ export const MultipartCompleteResponseStatusEnum = {
18
+ completed: 'completed'
19
+ };
20
+ /**
21
+ * Check if a given object implements the MultipartCompleteResponse interface.
22
+ */
23
+ export function instanceOfMultipartCompleteResponse(value) {
24
+ if (!('uploadId' in value) || value['uploadId'] === undefined)
25
+ return false;
26
+ if (!('status' in value) || value['status'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ export function MultipartCompleteResponseFromJSON(json) {
31
+ return MultipartCompleteResponseFromJSONTyped(json, false);
32
+ }
33
+ export function MultipartCompleteResponseFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'uploadId': json['upload_id'],
39
+ 'status': json['status'],
40
+ };
41
+ }
42
+ export function MultipartCompleteResponseToJSON(json) {
43
+ return MultipartCompleteResponseToJSONTyped(json, false);
44
+ }
45
+ export function MultipartCompleteResponseToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'upload_id': value['uploadId'],
51
+ 'status': value['status'],
52
+ };
53
+ }
@@ -0,0 +1,46 @@
1
+ /**
2
+ * GISL Compression API
3
+ * REST API for the GISL (Give It Smaller) file compression and processing service. **Architecture:** - Upload files to get a `file_id` - Create workflows referencing uploaded files with operations (compress, thumbnail, watermark, merge, archive, convert) - Poll status, stream SSE events, or receive webhook callbacks - Download results per operation output **Response envelope:** All mutation and query endpoints return `{ success: true, data: {...} }` on success and `{ success: false, error: \"...\", details: [...] }` on failure. Exceptions: `GET /api/operations/schema` returns raw JSON (CDN-cacheable), health probes return flat objects, and `POST /api/contact` returns 204 with no body.
4
+ *
5
+ * The version of the OpenAPI document: 2.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { MultipartCompleteResponse } from './MultipartCompleteResponse.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface MultipartCompleteSuccessEnvelope
17
+ */
18
+ export interface MultipartCompleteSuccessEnvelope {
19
+ /**
20
+ *
21
+ * @type {boolean}
22
+ * @memberof MultipartCompleteSuccessEnvelope
23
+ */
24
+ success: MultipartCompleteSuccessEnvelopeSuccessEnum;
25
+ /**
26
+ *
27
+ * @type {MultipartCompleteResponse}
28
+ * @memberof MultipartCompleteSuccessEnvelope
29
+ */
30
+ data: MultipartCompleteResponse;
31
+ }
32
+ /**
33
+ * @export
34
+ */
35
+ export declare const MultipartCompleteSuccessEnvelopeSuccessEnum: {
36
+ readonly true: true;
37
+ };
38
+ export type MultipartCompleteSuccessEnvelopeSuccessEnum = typeof MultipartCompleteSuccessEnvelopeSuccessEnum[keyof typeof MultipartCompleteSuccessEnvelopeSuccessEnum];
39
+ /**
40
+ * Check if a given object implements the MultipartCompleteSuccessEnvelope interface.
41
+ */
42
+ export declare function instanceOfMultipartCompleteSuccessEnvelope(value: object): value is MultipartCompleteSuccessEnvelope;
43
+ export declare function MultipartCompleteSuccessEnvelopeFromJSON(json: any): MultipartCompleteSuccessEnvelope;
44
+ export declare function MultipartCompleteSuccessEnvelopeFromJSONTyped(json: any, ignoreDiscriminator: boolean): MultipartCompleteSuccessEnvelope;
45
+ export declare function MultipartCompleteSuccessEnvelopeToJSON(json: any): MultipartCompleteSuccessEnvelope;
46
+ export declare function MultipartCompleteSuccessEnvelopeToJSONTyped(value?: MultipartCompleteSuccessEnvelope | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * GISL Compression API
5
+ * REST API for the GISL (Give It Smaller) file compression and processing service. **Architecture:** - Upload files to get a `file_id` - Create workflows referencing uploaded files with operations (compress, thumbnail, watermark, merge, archive, convert) - Poll status, stream SSE events, or receive webhook callbacks - Download results per operation output **Response envelope:** All mutation and query endpoints return `{ success: true, data: {...} }` on success and `{ success: false, error: \"...\", details: [...] }` on failure. Exceptions: `GET /api/operations/schema` returns raw JSON (CDN-cacheable), health probes return flat objects, and `POST /api/contact` returns 204 with no body.
6
+ *
7
+ * The version of the OpenAPI document: 2.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { MultipartCompleteResponseFromJSON, MultipartCompleteResponseToJSON, } from './MultipartCompleteResponse.js';
15
+ /**
16
+ * @export
17
+ */
18
+ export const MultipartCompleteSuccessEnvelopeSuccessEnum = {
19
+ true: true
20
+ };
21
+ /**
22
+ * Check if a given object implements the MultipartCompleteSuccessEnvelope interface.
23
+ */
24
+ export function instanceOfMultipartCompleteSuccessEnvelope(value) {
25
+ if (!('success' in value) || value['success'] === undefined)
26
+ return false;
27
+ if (!('data' in value) || value['data'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ export function MultipartCompleteSuccessEnvelopeFromJSON(json) {
32
+ return MultipartCompleteSuccessEnvelopeFromJSONTyped(json, false);
33
+ }
34
+ export function MultipartCompleteSuccessEnvelopeFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'success': json['success'],
40
+ 'data': MultipartCompleteResponseFromJSON(json['data']),
41
+ };
42
+ }
43
+ export function MultipartCompleteSuccessEnvelopeToJSON(json) {
44
+ return MultipartCompleteSuccessEnvelopeToJSONTyped(json, false);
45
+ }
46
+ export function MultipartCompleteSuccessEnvelopeToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'success': value['success'],
52
+ 'data': MultipartCompleteResponseToJSON(value['data']),
53
+ };
54
+ }
@@ -21,7 +21,7 @@ export interface MultipartInitiateResponse {
21
21
  * @type {string}
22
22
  * @memberof MultipartInitiateResponse
23
23
  */
24
- fileId: string;
24
+ uploadId: string;
25
25
  /**
26
26
  * MIME type detected from the first chunk
27
27
  * @type {string}
@@ -16,7 +16,7 @@ import { PresignedUrlPartFromJSON, PresignedUrlPartToJSON, } from './PresignedUr
16
16
  * Check if a given object implements the MultipartInitiateResponse interface.
17
17
  */
18
18
  export function instanceOfMultipartInitiateResponse(value) {
19
- if (!('fileId' in value) || value['fileId'] === undefined)
19
+ if (!('uploadId' in value) || value['uploadId'] === undefined)
20
20
  return false;
21
21
  if (!('mimeType' in value) || value['mimeType'] === undefined)
22
22
  return false;
@@ -40,7 +40,7 @@ export function MultipartInitiateResponseFromJSONTyped(json, ignoreDiscriminator
40
40
  return json;
41
41
  }
42
42
  return {
43
- 'fileId': json['file_id'],
43
+ 'uploadId': json['upload_id'],
44
44
  'mimeType': json['mime_type'],
45
45
  'firstChunkEtag': json['first_chunk_etag'],
46
46
  'firstChunkSizeBytes': json['first_chunk_size_bytes'],
@@ -57,7 +57,7 @@ export function MultipartInitiateResponseToJSONTyped(value, ignoreDiscriminator
57
57
  return value;
58
58
  }
59
59
  return {
60
- 'file_id': value['fileId'],
60
+ 'upload_id': value['uploadId'],
61
61
  'mime_type': value['mimeType'],
62
62
  'first_chunk_etag': value['firstChunkEtag'],
63
63
  'first_chunk_size_bytes': value['firstChunkSizeBytes'],
@@ -20,6 +20,8 @@ export * from './MetadataSuccessEnvelope.js';
20
20
  export * from './MimeGroupSchema.js';
21
21
  export * from './MultipartCompleteRequest.js';
22
22
  export * from './MultipartCompleteRequestPartsInner.js';
23
+ export * from './MultipartCompleteResponse.js';
24
+ export * from './MultipartCompleteSuccessEnvelope.js';
23
25
  export * from './MultipartInitiateResponse.js';
24
26
  export * from './MultipartInitiateSuccessEnvelope.js';
25
27
  export * from './OperationDefinition.js';
@@ -22,6 +22,8 @@ export * from './MetadataSuccessEnvelope.js';
22
22
  export * from './MimeGroupSchema.js';
23
23
  export * from './MultipartCompleteRequest.js';
24
24
  export * from './MultipartCompleteRequestPartsInner.js';
25
+ export * from './MultipartCompleteResponse.js';
26
+ export * from './MultipartCompleteSuccessEnvelope.js';
25
27
  export * from './MultipartInitiateResponse.js';
26
28
  export * from './MultipartInitiateSuccessEnvelope.js';
27
29
  export * from './OperationDefinition.js';