@rixl/sdk 0.1.0 → 0.2.2
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.
- package/README.md +163 -88
- package/dist/index.d.ts +1665 -5
- package/dist/index.js +1021 -5
- package/dist/index.js.map +1 -0
- package/package.json +34 -30
- package/dist/feeds/index.d.ts +0 -21
- package/dist/feeds/index.js +0 -21
- package/dist/feeds/item/creators/index.d.ts +0 -21
- package/dist/feeds/item/creators/index.js +0 -20
- package/dist/feeds/item/creators/item/index.d.ts +0 -42
- package/dist/feeds/item/creators/item/index.js +0 -28
- package/dist/feeds/item/index.d.ts +0 -58
- package/dist/feeds/item/index.js +0 -44
- package/dist/feeds/item/item/index.d.ts +0 -29
- package/dist/feeds/item/item/index.js +0 -28
- package/dist/images/index.d.ts +0 -68
- package/dist/images/index.js +0 -46
- package/dist/images/item/index.d.ts +0 -48
- package/dist/images/item/index.js +0 -43
- package/dist/images/upload/complete/index.d.ts +0 -35
- package/dist/images/upload/complete/index.js +0 -36
- package/dist/images/upload/index.d.ts +0 -24
- package/dist/images/upload/index.js +0 -24
- package/dist/images/upload/init/index.d.ts +0 -33
- package/dist/images/upload/init/index.js +0 -33
- package/dist/models/github_com_rixlhq_api_db_sqlc/index.d.ts +0 -13
- package/dist/models/github_com_rixlhq_api_db_sqlc/index.js +0 -16
- package/dist/models/github_com_rixlhq_api_internal_errors/index.d.ts +0 -37
- package/dist/models/github_com_rixlhq_api_internal_errors/index.js +0 -40
- package/dist/models/github_com_rixlhq_api_internal_videos/index.d.ts +0 -72
- package/dist/models/github_com_rixlhq_api_internal_videos/index.js +0 -65
- package/dist/models/github_com_rixlhq_api_internal_videos_handler_upload/index.d.ts +0 -70
- package/dist/models/github_com_rixlhq_api_internal_videos_handler_upload/index.js +0 -78
- package/dist/models/github_com_rixlhq_api_internal_videos_types/index.d.ts +0 -30
- package/dist/models/github_com_rixlhq_api_internal_videos_types/index.js +0 -38
- package/dist/models/index.d.ts +0 -548
- package/dist/models/index.js +0 -543
- package/dist/models/internal_images_handler/index.d.ts +0 -98
- package/dist/models/internal_images_handler/index.js +0 -112
- package/dist/models/internal_videos_handler_subtitles/index.d.ts +0 -30
- package/dist/models/internal_videos_handler_subtitles/index.js +0 -38
- package/dist/models/pagination/index.d.ts +0 -125
- package/dist/models/pagination/index.js +0 -153
- package/dist/rixlClient.d.ts +0 -34
- package/dist/rixlClient.js +0 -69
- package/dist/videos/index.d.ts +0 -73
- package/dist/videos/index.js +0 -52
- package/dist/videos/item/audioTracks/index.d.ts +0 -38
- package/dist/videos/item/audioTracks/index.js +0 -33
- package/dist/videos/item/audioTracks/item/index.d.ts +0 -70
- package/dist/videos/item/audioTracks/item/index.js +0 -67
- package/dist/videos/item/chapters/index.d.ts +0 -50
- package/dist/videos/item/chapters/index.js +0 -46
- package/dist/videos/item/delete/index.d.ts +0 -30
- package/dist/videos/item/delete/index.js +0 -28
- package/dist/videos/item/index.d.ts +0 -61
- package/dist/videos/item/index.js +0 -63
- package/dist/videos/item/subtitles/index.d.ts +0 -38
- package/dist/videos/item/subtitles/index.js +0 -33
- package/dist/videos/item/subtitles/item/index.d.ts +0 -70
- package/dist/videos/item/subtitles/item/index.js +0 -67
- package/dist/videos/item/thumbnail/index.d.ts +0 -59
- package/dist/videos/item/thumbnail/index.js +0 -68
- package/dist/videos/languages/index.d.ts +0 -27
- package/dist/videos/languages/index.js +0 -22
- package/dist/videos/upload/complete/index.d.ts +0 -35
- package/dist/videos/upload/complete/index.js +0 -36
- package/dist/videos/upload/index.d.ts +0 -24
- package/dist/videos/upload/index.js +0 -24
- package/dist/videos/upload/init/index.d.ts +0 -34
- package/dist/videos/upload/init/index.js +0 -35
package/dist/images/index.d.ts
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { type PaginatedResponseImage } from '../models/pagination/index.js';
|
|
2
|
-
import { type WithImageItemRequestBuilder } from './item/index.js';
|
|
3
|
-
import { type UploadRequestBuilder } from './upload/index.js';
|
|
4
|
-
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
5
|
-
/**
|
|
6
|
-
* Builds and executes requests for operations under /images
|
|
7
|
-
*/
|
|
8
|
-
export interface ImagesRequestBuilder extends BaseRequestBuilder<ImagesRequestBuilder> {
|
|
9
|
-
/**
|
|
10
|
-
* The upload property
|
|
11
|
-
*/
|
|
12
|
-
get upload(): UploadRequestBuilder;
|
|
13
|
-
/**
|
|
14
|
-
* Gets an item from the rixlSdk.images.item collection
|
|
15
|
-
* @param imageId Image ID
|
|
16
|
-
* @returns {WithImageItemRequestBuilder}
|
|
17
|
-
*/
|
|
18
|
-
byImageId(imageId: string): WithImageItemRequestBuilder;
|
|
19
|
-
/**
|
|
20
|
-
* Retrieve all images for a specific project, with pagination and sorting.
|
|
21
|
-
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
22
|
-
* @returns {Promise<PaginatedResponseImage>}
|
|
23
|
-
* @throws {ErrorResponse} error when the service returns a 400 status code
|
|
24
|
-
* @throws {ErrorResponse} error when the service returns a 401 status code
|
|
25
|
-
* @throws {ErrorResponse} error when the service returns a 403 status code
|
|
26
|
-
* @throws {ErrorResponse} error when the service returns a 500 status code
|
|
27
|
-
*/
|
|
28
|
-
get(requestConfiguration?: RequestConfiguration<ImagesRequestBuilderGetQueryParameters> | undefined): Promise<PaginatedResponseImage | undefined>;
|
|
29
|
-
/**
|
|
30
|
-
* Retrieve all images for a specific project, with pagination and sorting.
|
|
31
|
-
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
32
|
-
* @returns {RequestInformation}
|
|
33
|
-
*/
|
|
34
|
-
toGetRequestInformation(requestConfiguration?: RequestConfiguration<ImagesRequestBuilderGetQueryParameters> | undefined): RequestInformation;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Retrieve all images for a specific project, with pagination and sorting.
|
|
38
|
-
*/
|
|
39
|
-
export interface ImagesRequestBuilderGetQueryParameters {
|
|
40
|
-
/**
|
|
41
|
-
* Maximum number of items to return in a single request. <br> **Default:** `25`
|
|
42
|
-
*/
|
|
43
|
-
limit?: number;
|
|
44
|
-
/**
|
|
45
|
-
* Starting point of the result set. <br>To get page 2 with a limit of 25, set `offset` to `25`. <br> **Default:** `0`
|
|
46
|
-
*/
|
|
47
|
-
offset?: number;
|
|
48
|
-
/**
|
|
49
|
-
* Sort order (asc, desc)
|
|
50
|
-
*/
|
|
51
|
-
order?: string;
|
|
52
|
-
/**
|
|
53
|
-
* Field to sort by (created_at, name, size, updated_at)
|
|
54
|
-
*/
|
|
55
|
-
sort?: string;
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Uri template for the request builder.
|
|
59
|
-
*/
|
|
60
|
-
export declare const ImagesRequestBuilderUriTemplate = "{+baseurl}/images{?limit*,offset*,order*,sort*}";
|
|
61
|
-
/**
|
|
62
|
-
* Metadata for all the navigation properties in the request builder.
|
|
63
|
-
*/
|
|
64
|
-
export declare const ImagesRequestBuilderNavigationMetadata: Record<Exclude<keyof ImagesRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
|
|
65
|
-
/**
|
|
66
|
-
* Metadata for all the requests in the request builder.
|
|
67
|
-
*/
|
|
68
|
-
export declare const ImagesRequestBuilderRequestsMetadata: RequestsMetadata;
|
package/dist/images/index.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
// Generated by Microsoft Kiota
|
|
4
|
-
// @ts-ignore
|
|
5
|
-
import { createErrorResponseFromDiscriminatorValue } from '../models/github_com_rixlhq_api_internal_errors/index.js';
|
|
6
|
-
// @ts-ignore
|
|
7
|
-
import { createPaginatedResponseImageFromDiscriminatorValue } from '../models/pagination/index.js';
|
|
8
|
-
// @ts-ignore
|
|
9
|
-
import { WithImageItemRequestBuilderRequestsMetadata } from './item/index.js';
|
|
10
|
-
// @ts-ignore
|
|
11
|
-
import { UploadRequestBuilderNavigationMetadata } from './upload/index.js';
|
|
12
|
-
/**
|
|
13
|
-
* Uri template for the request builder.
|
|
14
|
-
*/
|
|
15
|
-
export const ImagesRequestBuilderUriTemplate = "{+baseurl}/images{?limit*,offset*,order*,sort*}";
|
|
16
|
-
/**
|
|
17
|
-
* Metadata for all the navigation properties in the request builder.
|
|
18
|
-
*/
|
|
19
|
-
export const ImagesRequestBuilderNavigationMetadata = {
|
|
20
|
-
byImageId: {
|
|
21
|
-
requestsMetadata: WithImageItemRequestBuilderRequestsMetadata,
|
|
22
|
-
pathParametersMappings: ["imageId"],
|
|
23
|
-
},
|
|
24
|
-
upload: {
|
|
25
|
-
navigationMetadata: UploadRequestBuilderNavigationMetadata,
|
|
26
|
-
},
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* Metadata for all the requests in the request builder.
|
|
30
|
-
*/
|
|
31
|
-
export const ImagesRequestBuilderRequestsMetadata = {
|
|
32
|
-
get: {
|
|
33
|
-
uriTemplate: ImagesRequestBuilderUriTemplate,
|
|
34
|
-
responseBodyContentType: "application/json",
|
|
35
|
-
errorMappings: {
|
|
36
|
-
400: createErrorResponseFromDiscriminatorValue,
|
|
37
|
-
401: createErrorResponseFromDiscriminatorValue,
|
|
38
|
-
403: createErrorResponseFromDiscriminatorValue,
|
|
39
|
-
500: createErrorResponseFromDiscriminatorValue,
|
|
40
|
-
},
|
|
41
|
-
adapterMethodName: "send",
|
|
42
|
-
responseBodyFactory: createPaginatedResponseImageFromDiscriminatorValue,
|
|
43
|
-
},
|
|
44
|
-
};
|
|
45
|
-
/* tslint:enable */
|
|
46
|
-
/* eslint-enable */
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { type Image } from '../../models/index.js';
|
|
2
|
-
import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
3
|
-
/**
|
|
4
|
-
* Builds and executes requests for operations under /images/{imageId}
|
|
5
|
-
*/
|
|
6
|
-
export interface WithImageItemRequestBuilder extends BaseRequestBuilder<WithImageItemRequestBuilder> {
|
|
7
|
-
/**
|
|
8
|
-
* delete an image by marking it as deleted
|
|
9
|
-
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
10
|
-
* @throws {ErrorResponse} error when the service returns a 400 status code
|
|
11
|
-
* @throws {ErrorResponse} error when the service returns a 401 status code
|
|
12
|
-
* @throws {ErrorResponse} error when the service returns a 403 status code
|
|
13
|
-
* @throws {ErrorResponse} error when the service returns a 404 status code
|
|
14
|
-
* @throws {ErrorResponse} error when the service returns a 500 status code
|
|
15
|
-
*/
|
|
16
|
-
delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
|
|
17
|
-
/**
|
|
18
|
-
* Retrieve an image by its ID for a specific project.
|
|
19
|
-
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
20
|
-
* @returns {Promise<Image>}
|
|
21
|
-
* @throws {ErrorResponse} error when the service returns a 400 status code
|
|
22
|
-
* @throws {ErrorResponse} error when the service returns a 401 status code
|
|
23
|
-
* @throws {ErrorResponse} error when the service returns a 403 status code
|
|
24
|
-
* @throws {ErrorResponse} error when the service returns a 404 status code
|
|
25
|
-
* @throws {ErrorResponse} error when the service returns a 500 status code
|
|
26
|
-
*/
|
|
27
|
-
get(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<Image | undefined>;
|
|
28
|
-
/**
|
|
29
|
-
* delete an image by marking it as deleted
|
|
30
|
-
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
31
|
-
* @returns {RequestInformation}
|
|
32
|
-
*/
|
|
33
|
-
toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
34
|
-
/**
|
|
35
|
-
* Retrieve an image by its ID for a specific project.
|
|
36
|
-
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
37
|
-
* @returns {RequestInformation}
|
|
38
|
-
*/
|
|
39
|
-
toGetRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Uri template for the request builder.
|
|
43
|
-
*/
|
|
44
|
-
export declare const WithImageItemRequestBuilderUriTemplate = "{+baseurl}/images/{imageId}";
|
|
45
|
-
/**
|
|
46
|
-
* Metadata for all the requests in the request builder.
|
|
47
|
-
*/
|
|
48
|
-
export declare const WithImageItemRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
// Generated by Microsoft Kiota
|
|
4
|
-
// @ts-ignore
|
|
5
|
-
import { createErrorResponseFromDiscriminatorValue } from '../../models/github_com_rixlhq_api_internal_errors/index.js';
|
|
6
|
-
// @ts-ignore
|
|
7
|
-
import { createImageFromDiscriminatorValue } from '../../models/index.js';
|
|
8
|
-
/**
|
|
9
|
-
* Uri template for the request builder.
|
|
10
|
-
*/
|
|
11
|
-
export const WithImageItemRequestBuilderUriTemplate = "{+baseurl}/images/{imageId}";
|
|
12
|
-
/**
|
|
13
|
-
* Metadata for all the requests in the request builder.
|
|
14
|
-
*/
|
|
15
|
-
export const WithImageItemRequestBuilderRequestsMetadata = {
|
|
16
|
-
delete: {
|
|
17
|
-
uriTemplate: WithImageItemRequestBuilderUriTemplate,
|
|
18
|
-
responseBodyContentType: "application/json",
|
|
19
|
-
errorMappings: {
|
|
20
|
-
400: createErrorResponseFromDiscriminatorValue,
|
|
21
|
-
401: createErrorResponseFromDiscriminatorValue,
|
|
22
|
-
403: createErrorResponseFromDiscriminatorValue,
|
|
23
|
-
404: createErrorResponseFromDiscriminatorValue,
|
|
24
|
-
500: createErrorResponseFromDiscriminatorValue,
|
|
25
|
-
},
|
|
26
|
-
adapterMethodName: "sendNoResponseContent",
|
|
27
|
-
},
|
|
28
|
-
get: {
|
|
29
|
-
uriTemplate: WithImageItemRequestBuilderUriTemplate,
|
|
30
|
-
responseBodyContentType: "application/json",
|
|
31
|
-
errorMappings: {
|
|
32
|
-
400: createErrorResponseFromDiscriminatorValue,
|
|
33
|
-
401: createErrorResponseFromDiscriminatorValue,
|
|
34
|
-
403: createErrorResponseFromDiscriminatorValue,
|
|
35
|
-
404: createErrorResponseFromDiscriminatorValue,
|
|
36
|
-
500: createErrorResponseFromDiscriminatorValue,
|
|
37
|
-
},
|
|
38
|
-
adapterMethodName: "send",
|
|
39
|
-
responseBodyFactory: createImageFromDiscriminatorValue,
|
|
40
|
-
},
|
|
41
|
-
};
|
|
42
|
-
/* tslint:enable */
|
|
43
|
-
/* eslint-enable */
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { type Image } from '../../../models/index.js';
|
|
2
|
-
import { type CompleteRequest } from '../../../models/internal_images_handler/index.js';
|
|
3
|
-
import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
4
|
-
/**
|
|
5
|
-
* Builds and executes requests for operations under /images/upload/complete
|
|
6
|
-
*/
|
|
7
|
-
export interface CompleteRequestBuilder extends BaseRequestBuilder<CompleteRequestBuilder> {
|
|
8
|
-
/**
|
|
9
|
-
* Complete the upload process and create the image record using API key authentication
|
|
10
|
-
* @param body The request body
|
|
11
|
-
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
12
|
-
* @returns {Promise<Image>}
|
|
13
|
-
* @throws {ErrorResponse} error when the service returns a 400 status code
|
|
14
|
-
* @throws {ErrorResponse} error when the service returns a 401 status code
|
|
15
|
-
* @throws {ErrorResponse} error when the service returns a 403 status code
|
|
16
|
-
* @throws {ErrorResponse} error when the service returns a 404 status code
|
|
17
|
-
* @throws {ErrorResponse} error when the service returns a 500 status code
|
|
18
|
-
*/
|
|
19
|
-
post(body: CompleteRequest, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<Image | undefined>;
|
|
20
|
-
/**
|
|
21
|
-
* Complete the upload process and create the image record using API key authentication
|
|
22
|
-
* @param body The request body
|
|
23
|
-
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
24
|
-
* @returns {RequestInformation}
|
|
25
|
-
*/
|
|
26
|
-
toPostRequestInformation(body: CompleteRequest, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Uri template for the request builder.
|
|
30
|
-
*/
|
|
31
|
-
export declare const CompleteRequestBuilderUriTemplate = "{+baseurl}/images/upload/complete";
|
|
32
|
-
/**
|
|
33
|
-
* Metadata for all the requests in the request builder.
|
|
34
|
-
*/
|
|
35
|
-
export declare const CompleteRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
// Generated by Microsoft Kiota
|
|
4
|
-
// @ts-ignore
|
|
5
|
-
import { createErrorResponseFromDiscriminatorValue } from '../../../models/github_com_rixlhq_api_internal_errors/index.js';
|
|
6
|
-
// @ts-ignore
|
|
7
|
-
import { createImageFromDiscriminatorValue } from '../../../models/index.js';
|
|
8
|
-
// @ts-ignore
|
|
9
|
-
import { serializeCompleteRequest } from '../../../models/internal_images_handler/index.js';
|
|
10
|
-
/**
|
|
11
|
-
* Uri template for the request builder.
|
|
12
|
-
*/
|
|
13
|
-
export const CompleteRequestBuilderUriTemplate = "{+baseurl}/images/upload/complete";
|
|
14
|
-
/**
|
|
15
|
-
* Metadata for all the requests in the request builder.
|
|
16
|
-
*/
|
|
17
|
-
export const CompleteRequestBuilderRequestsMetadata = {
|
|
18
|
-
post: {
|
|
19
|
-
uriTemplate: CompleteRequestBuilderUriTemplate,
|
|
20
|
-
responseBodyContentType: "application/json",
|
|
21
|
-
errorMappings: {
|
|
22
|
-
400: createErrorResponseFromDiscriminatorValue,
|
|
23
|
-
401: createErrorResponseFromDiscriminatorValue,
|
|
24
|
-
403: createErrorResponseFromDiscriminatorValue,
|
|
25
|
-
404: createErrorResponseFromDiscriminatorValue,
|
|
26
|
-
500: createErrorResponseFromDiscriminatorValue,
|
|
27
|
-
},
|
|
28
|
-
adapterMethodName: "send",
|
|
29
|
-
responseBodyFactory: createImageFromDiscriminatorValue,
|
|
30
|
-
requestBodyContentType: "application/json",
|
|
31
|
-
requestBodySerializer: serializeCompleteRequest,
|
|
32
|
-
requestInformationContentSetMethod: "setContentFromParsable",
|
|
33
|
-
},
|
|
34
|
-
};
|
|
35
|
-
/* tslint:enable */
|
|
36
|
-
/* eslint-enable */
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { type CompleteRequestBuilder } from './complete/index.js';
|
|
2
|
-
import { type InitRequestBuilder } from './init/index.js';
|
|
3
|
-
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
|
|
4
|
-
/**
|
|
5
|
-
* Builds and executes requests for operations under /images/upload
|
|
6
|
-
*/
|
|
7
|
-
export interface UploadRequestBuilder extends BaseRequestBuilder<UploadRequestBuilder> {
|
|
8
|
-
/**
|
|
9
|
-
* The complete property
|
|
10
|
-
*/
|
|
11
|
-
get complete(): CompleteRequestBuilder;
|
|
12
|
-
/**
|
|
13
|
-
* The init property
|
|
14
|
-
*/
|
|
15
|
-
get init(): InitRequestBuilder;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Uri template for the request builder.
|
|
19
|
-
*/
|
|
20
|
-
export declare const UploadRequestBuilderUriTemplate = "{+baseurl}/images/upload";
|
|
21
|
-
/**
|
|
22
|
-
* Metadata for all the navigation properties in the request builder.
|
|
23
|
-
*/
|
|
24
|
-
export declare const UploadRequestBuilderNavigationMetadata: Record<Exclude<keyof UploadRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
// Generated by Microsoft Kiota
|
|
4
|
-
// @ts-ignore
|
|
5
|
-
import { CompleteRequestBuilderRequestsMetadata } from './complete/index.js';
|
|
6
|
-
// @ts-ignore
|
|
7
|
-
import { InitRequestBuilderRequestsMetadata } from './init/index.js';
|
|
8
|
-
/**
|
|
9
|
-
* Uri template for the request builder.
|
|
10
|
-
*/
|
|
11
|
-
export const UploadRequestBuilderUriTemplate = "{+baseurl}/images/upload";
|
|
12
|
-
/**
|
|
13
|
-
* Metadata for all the navigation properties in the request builder.
|
|
14
|
-
*/
|
|
15
|
-
export const UploadRequestBuilderNavigationMetadata = {
|
|
16
|
-
complete: {
|
|
17
|
-
requestsMetadata: CompleteRequestBuilderRequestsMetadata,
|
|
18
|
-
},
|
|
19
|
-
init: {
|
|
20
|
-
requestsMetadata: InitRequestBuilderRequestsMetadata,
|
|
21
|
-
},
|
|
22
|
-
};
|
|
23
|
-
/* tslint:enable */
|
|
24
|
-
/* eslint-enable */
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { type InitResponse, type UploadInitRequest } from '../../../models/internal_images_handler/index.js';
|
|
2
|
-
import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
3
|
-
/**
|
|
4
|
-
* Builds and executes requests for operations under /images/upload/init
|
|
5
|
-
*/
|
|
6
|
-
export interface InitRequestBuilder extends BaseRequestBuilder<InitRequestBuilder> {
|
|
7
|
-
/**
|
|
8
|
-
* Initialize a presigned URL upload for an image file using API key authentication
|
|
9
|
-
* @param body The request body
|
|
10
|
-
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
11
|
-
* @returns {Promise<InitResponse>}
|
|
12
|
-
* @throws {ErrorResponse} error when the service returns a 400 status code
|
|
13
|
-
* @throws {ErrorResponse} error when the service returns a 401 status code
|
|
14
|
-
* @throws {ErrorResponse} error when the service returns a 403 status code
|
|
15
|
-
* @throws {ErrorResponse} error when the service returns a 500 status code
|
|
16
|
-
*/
|
|
17
|
-
post(body: UploadInitRequest, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<InitResponse | undefined>;
|
|
18
|
-
/**
|
|
19
|
-
* Initialize a presigned URL upload for an image file using API key authentication
|
|
20
|
-
* @param body The request body
|
|
21
|
-
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
22
|
-
* @returns {RequestInformation}
|
|
23
|
-
*/
|
|
24
|
-
toPostRequestInformation(body: UploadInitRequest, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Uri template for the request builder.
|
|
28
|
-
*/
|
|
29
|
-
export declare const InitRequestBuilderUriTemplate = "{+baseurl}/images/upload/init";
|
|
30
|
-
/**
|
|
31
|
-
* Metadata for all the requests in the request builder.
|
|
32
|
-
*/
|
|
33
|
-
export declare const InitRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
// Generated by Microsoft Kiota
|
|
4
|
-
// @ts-ignore
|
|
5
|
-
import { createErrorResponseFromDiscriminatorValue } from '../../../models/github_com_rixlhq_api_internal_errors/index.js';
|
|
6
|
-
// @ts-ignore
|
|
7
|
-
import { createInitResponseFromDiscriminatorValue, serializeUploadInitRequest } from '../../../models/internal_images_handler/index.js';
|
|
8
|
-
/**
|
|
9
|
-
* Uri template for the request builder.
|
|
10
|
-
*/
|
|
11
|
-
export const InitRequestBuilderUriTemplate = "{+baseurl}/images/upload/init";
|
|
12
|
-
/**
|
|
13
|
-
* Metadata for all the requests in the request builder.
|
|
14
|
-
*/
|
|
15
|
-
export const InitRequestBuilderRequestsMetadata = {
|
|
16
|
-
post: {
|
|
17
|
-
uriTemplate: InitRequestBuilderUriTemplate,
|
|
18
|
-
responseBodyContentType: "application/json",
|
|
19
|
-
errorMappings: {
|
|
20
|
-
400: createErrorResponseFromDiscriminatorValue,
|
|
21
|
-
401: createErrorResponseFromDiscriminatorValue,
|
|
22
|
-
403: createErrorResponseFromDiscriminatorValue,
|
|
23
|
-
500: createErrorResponseFromDiscriminatorValue,
|
|
24
|
-
},
|
|
25
|
-
adapterMethodName: "send",
|
|
26
|
-
responseBodyFactory: createInitResponseFromDiscriminatorValue,
|
|
27
|
-
requestBodyContentType: "application/json",
|
|
28
|
-
requestBodySerializer: serializeUploadInitRequest,
|
|
29
|
-
requestInformationContentSetMethod: "setContentFromParsable",
|
|
30
|
-
},
|
|
31
|
-
};
|
|
32
|
-
/* tslint:enable */
|
|
33
|
-
/* eslint-enable */
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export type PlanType = (typeof PlanTypeObject)[keyof typeof PlanTypeObject];
|
|
2
|
-
export type VideoQuality = (typeof VideoQualityObject)[keyof typeof VideoQualityObject];
|
|
3
|
-
export declare const PlanTypeObject: {
|
|
4
|
-
readonly Free: "free";
|
|
5
|
-
readonly Pro: "pro";
|
|
6
|
-
readonly Custom: "custom";
|
|
7
|
-
readonly Pay_as_you_go: "pay_as_you_go";
|
|
8
|
-
};
|
|
9
|
-
export declare const VideoQualityObject: {
|
|
10
|
-
readonly Basic: "basic";
|
|
11
|
-
readonly Shorts: "shorts";
|
|
12
|
-
readonly Pro: "pro";
|
|
13
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
// Generated by Microsoft Kiota
|
|
4
|
-
export const PlanTypeObject = {
|
|
5
|
-
Free: "free",
|
|
6
|
-
Pro: "pro",
|
|
7
|
-
Custom: "custom",
|
|
8
|
-
Pay_as_you_go: "pay_as_you_go",
|
|
9
|
-
};
|
|
10
|
-
export const VideoQualityObject = {
|
|
11
|
-
Basic: "basic",
|
|
12
|
-
Shorts: "shorts",
|
|
13
|
-
Pro: "pro",
|
|
14
|
-
};
|
|
15
|
-
/* tslint:enable */
|
|
16
|
-
/* eslint-enable */
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { type AdditionalDataHolder, type ApiError, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions';
|
|
2
|
-
/**
|
|
3
|
-
* Creates a new instance of the appropriate class based on discriminator value
|
|
4
|
-
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
5
|
-
* @returns {ErrorResponse}
|
|
6
|
-
*/
|
|
7
|
-
export declare function createErrorResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
8
|
-
/**
|
|
9
|
-
* The deserialization information for the current model
|
|
10
|
-
* @param ErrorResponse The instance to deserialize into.
|
|
11
|
-
* @returns {Record<string, (node: ParseNode) => void>}
|
|
12
|
-
*/
|
|
13
|
-
export declare function deserializeIntoErrorResponse(errorResponse?: Partial<ErrorResponse> | undefined): Record<string, (node: ParseNode) => void>;
|
|
14
|
-
/**
|
|
15
|
-
* Standard error response returned by the API
|
|
16
|
-
*/
|
|
17
|
-
export interface ErrorResponse extends AdditionalDataHolder, ApiError, Parsable {
|
|
18
|
-
/**
|
|
19
|
-
* HTTP status code
|
|
20
|
-
*/
|
|
21
|
-
code?: number | null;
|
|
22
|
-
/**
|
|
23
|
-
* Optional details about the error
|
|
24
|
-
*/
|
|
25
|
-
details?: string | null;
|
|
26
|
-
/**
|
|
27
|
-
* Error message describing what went wrong
|
|
28
|
-
*/
|
|
29
|
-
errorEscaped?: string | null;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Serializes information the current object
|
|
33
|
-
* @param ErrorResponse The instance to serialize from.
|
|
34
|
-
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
35
|
-
* @param writer Serialization writer to use to serialize this model
|
|
36
|
-
*/
|
|
37
|
-
export declare function serializeErrorResponse(writer: SerializationWriter, errorResponse?: Partial<ErrorResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Creates a new instance of the appropriate class based on discriminator value
|
|
3
|
-
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
4
|
-
* @returns {ErrorResponse}
|
|
5
|
-
*/
|
|
6
|
-
// @ts-ignore
|
|
7
|
-
export function createErrorResponseFromDiscriminatorValue(parseNode) {
|
|
8
|
-
return deserializeIntoErrorResponse;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* The deserialization information for the current model
|
|
12
|
-
* @param ErrorResponse The instance to deserialize into.
|
|
13
|
-
* @returns {Record<string, (node: ParseNode) => void>}
|
|
14
|
-
*/
|
|
15
|
-
// @ts-ignore
|
|
16
|
-
export function deserializeIntoErrorResponse(errorResponse = {}) {
|
|
17
|
-
return {
|
|
18
|
-
"code": n => { errorResponse.code = n.getNumberValue(); },
|
|
19
|
-
"details": n => { errorResponse.details = n.getStringValue(); },
|
|
20
|
-
"error": n => { errorResponse.errorEscaped = n.getStringValue(); },
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Serializes information the current object
|
|
25
|
-
* @param ErrorResponse The instance to serialize from.
|
|
26
|
-
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
27
|
-
* @param writer Serialization writer to use to serialize this model
|
|
28
|
-
*/
|
|
29
|
-
// @ts-ignore
|
|
30
|
-
export function serializeErrorResponse(writer, errorResponse = {}, isSerializingDerivedType = false) {
|
|
31
|
-
if (!errorResponse || isSerializingDerivedType) {
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
writer.writeNumberValue("code", errorResponse.code);
|
|
35
|
-
writer.writeStringValue("details", errorResponse.details);
|
|
36
|
-
writer.writeStringValue("error", errorResponse.errorEscaped);
|
|
37
|
-
writer.writeAdditionalData(errorResponse.additionalData);
|
|
38
|
-
}
|
|
39
|
-
/* tslint:enable */
|
|
40
|
-
/* eslint-enable */
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { PlanType } from '../github_com_rixlhq_api_db_sqlc/index.js';
|
|
2
|
-
import { type Chapter, type File, type Image } from '../index.js';
|
|
3
|
-
import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions';
|
|
4
|
-
/**
|
|
5
|
-
* Creates a new instance of the appropriate class based on discriminator value
|
|
6
|
-
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
7
|
-
* @returns {VideoResponse}
|
|
8
|
-
*/
|
|
9
|
-
export declare function createVideoResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
10
|
-
/**
|
|
11
|
-
* The deserialization information for the current model
|
|
12
|
-
* @param VideoResponse The instance to deserialize into.
|
|
13
|
-
* @returns {Record<string, (node: ParseNode) => void>}
|
|
14
|
-
*/
|
|
15
|
-
export declare function deserializeIntoVideoResponse(videoResponse?: Partial<VideoResponse> | undefined): Record<string, (node: ParseNode) => void>;
|
|
16
|
-
/**
|
|
17
|
-
* Serializes information the current object
|
|
18
|
-
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
19
|
-
* @param VideoResponse The instance to serialize from.
|
|
20
|
-
* @param writer Serialization writer to use to serialize this model
|
|
21
|
-
*/
|
|
22
|
-
export declare function serializeVideoResponse(writer: SerializationWriter, videoResponse?: Partial<VideoResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
23
|
-
export interface VideoResponse extends AdditionalDataHolder, Parsable {
|
|
24
|
-
/**
|
|
25
|
-
* The bitrate property
|
|
26
|
-
*/
|
|
27
|
-
bitrate?: number | null;
|
|
28
|
-
/**
|
|
29
|
-
* The chapters property
|
|
30
|
-
*/
|
|
31
|
-
chapters?: Chapter[] | null;
|
|
32
|
-
/**
|
|
33
|
-
* The codec property
|
|
34
|
-
*/
|
|
35
|
-
codec?: string | null;
|
|
36
|
-
/**
|
|
37
|
-
* The duration property
|
|
38
|
-
*/
|
|
39
|
-
duration?: number | null;
|
|
40
|
-
/**
|
|
41
|
-
* The file property
|
|
42
|
-
*/
|
|
43
|
-
file?: File | null;
|
|
44
|
-
/**
|
|
45
|
-
* The framerate property
|
|
46
|
-
*/
|
|
47
|
-
framerate?: string | null;
|
|
48
|
-
/**
|
|
49
|
-
* The hdr property
|
|
50
|
-
*/
|
|
51
|
-
hdr?: boolean | null;
|
|
52
|
-
/**
|
|
53
|
-
* The height property
|
|
54
|
-
*/
|
|
55
|
-
height?: number | null;
|
|
56
|
-
/**
|
|
57
|
-
* The id property
|
|
58
|
-
*/
|
|
59
|
-
id?: string | null;
|
|
60
|
-
/**
|
|
61
|
-
* The plan_type property
|
|
62
|
-
*/
|
|
63
|
-
planType?: PlanType | null;
|
|
64
|
-
/**
|
|
65
|
-
* The poster property
|
|
66
|
-
*/
|
|
67
|
-
poster?: Image | null;
|
|
68
|
-
/**
|
|
69
|
-
* The width property
|
|
70
|
-
*/
|
|
71
|
-
width?: number | null;
|
|
72
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
// Generated by Microsoft Kiota
|
|
4
|
-
// @ts-ignore
|
|
5
|
-
import { PlanTypeObject } from '../github_com_rixlhq_api_db_sqlc/index.js';
|
|
6
|
-
// @ts-ignore
|
|
7
|
-
import { createChapterFromDiscriminatorValue, createFileFromDiscriminatorValue, createImageFromDiscriminatorValue, serializeChapter, serializeFile, serializeImage } from '../index.js';
|
|
8
|
-
/**
|
|
9
|
-
* Creates a new instance of the appropriate class based on discriminator value
|
|
10
|
-
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
11
|
-
* @returns {VideoResponse}
|
|
12
|
-
*/
|
|
13
|
-
// @ts-ignore
|
|
14
|
-
export function createVideoResponseFromDiscriminatorValue(parseNode) {
|
|
15
|
-
return deserializeIntoVideoResponse;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* The deserialization information for the current model
|
|
19
|
-
* @param VideoResponse The instance to deserialize into.
|
|
20
|
-
* @returns {Record<string, (node: ParseNode) => void>}
|
|
21
|
-
*/
|
|
22
|
-
// @ts-ignore
|
|
23
|
-
export function deserializeIntoVideoResponse(videoResponse = {}) {
|
|
24
|
-
return {
|
|
25
|
-
"bitrate": n => { videoResponse.bitrate = n.getNumberValue(); },
|
|
26
|
-
"chapters": n => { videoResponse.chapters = n.getCollectionOfObjectValues(createChapterFromDiscriminatorValue); },
|
|
27
|
-
"codec": n => { videoResponse.codec = n.getStringValue(); },
|
|
28
|
-
"duration": n => { videoResponse.duration = n.getNumberValue(); },
|
|
29
|
-
"file": n => { videoResponse.file = n.getObjectValue(createFileFromDiscriminatorValue); },
|
|
30
|
-
"framerate": n => { videoResponse.framerate = n.getStringValue(); },
|
|
31
|
-
"hdr": n => { videoResponse.hdr = n.getBooleanValue(); },
|
|
32
|
-
"height": n => { videoResponse.height = n.getNumberValue(); },
|
|
33
|
-
"id": n => { videoResponse.id = n.getStringValue(); },
|
|
34
|
-
"plan_type": n => { videoResponse.planType = n.getEnumValue(PlanTypeObject); },
|
|
35
|
-
"poster": n => { videoResponse.poster = n.getObjectValue(createImageFromDiscriminatorValue); },
|
|
36
|
-
"width": n => { videoResponse.width = n.getNumberValue(); },
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Serializes information the current object
|
|
41
|
-
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
42
|
-
* @param VideoResponse The instance to serialize from.
|
|
43
|
-
* @param writer Serialization writer to use to serialize this model
|
|
44
|
-
*/
|
|
45
|
-
// @ts-ignore
|
|
46
|
-
export function serializeVideoResponse(writer, videoResponse = {}, isSerializingDerivedType = false) {
|
|
47
|
-
if (!videoResponse || isSerializingDerivedType) {
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
writer.writeNumberValue("bitrate", videoResponse.bitrate);
|
|
51
|
-
writer.writeCollectionOfObjectValues("chapters", videoResponse.chapters, serializeChapter);
|
|
52
|
-
writer.writeStringValue("codec", videoResponse.codec);
|
|
53
|
-
writer.writeNumberValue("duration", videoResponse.duration);
|
|
54
|
-
writer.writeObjectValue("file", videoResponse.file, serializeFile);
|
|
55
|
-
writer.writeStringValue("framerate", videoResponse.framerate);
|
|
56
|
-
writer.writeBooleanValue("hdr", videoResponse.hdr);
|
|
57
|
-
writer.writeNumberValue("height", videoResponse.height);
|
|
58
|
-
writer.writeStringValue("id", videoResponse.id);
|
|
59
|
-
writer.writeEnumValue("plan_type", videoResponse.planType);
|
|
60
|
-
writer.writeObjectValue("poster", videoResponse.poster, serializeImage);
|
|
61
|
-
writer.writeNumberValue("width", videoResponse.width);
|
|
62
|
-
writer.writeAdditionalData(videoResponse.additionalData);
|
|
63
|
-
}
|
|
64
|
-
/* tslint:enable */
|
|
65
|
-
/* eslint-enable */
|