@rixl/sdk 0.1.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.
- package/LICENSE +21 -0
- package/README.md +153 -0
- package/dist/feeds/index.d.ts +21 -0
- package/dist/feeds/index.js +21 -0
- package/dist/feeds/item/creators/index.d.ts +21 -0
- package/dist/feeds/item/creators/index.js +20 -0
- package/dist/feeds/item/creators/item/index.d.ts +42 -0
- package/dist/feeds/item/creators/item/index.js +28 -0
- package/dist/feeds/item/index.d.ts +58 -0
- package/dist/feeds/item/index.js +44 -0
- package/dist/feeds/item/item/index.d.ts +29 -0
- package/dist/feeds/item/item/index.js +28 -0
- package/dist/images/index.d.ts +68 -0
- package/dist/images/index.js +46 -0
- package/dist/images/item/index.d.ts +48 -0
- package/dist/images/item/index.js +43 -0
- package/dist/images/upload/complete/index.d.ts +35 -0
- package/dist/images/upload/complete/index.js +36 -0
- package/dist/images/upload/index.d.ts +24 -0
- package/dist/images/upload/index.js +24 -0
- package/dist/images/upload/init/index.d.ts +33 -0
- package/dist/images/upload/init/index.js +33 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/dist/models/github_com_rixlhq_api_db_sqlc/index.d.ts +13 -0
- package/dist/models/github_com_rixlhq_api_db_sqlc/index.js +16 -0
- package/dist/models/github_com_rixlhq_api_internal_errors/index.d.ts +37 -0
- package/dist/models/github_com_rixlhq_api_internal_errors/index.js +40 -0
- package/dist/models/github_com_rixlhq_api_internal_videos/index.d.ts +72 -0
- package/dist/models/github_com_rixlhq_api_internal_videos/index.js +65 -0
- package/dist/models/github_com_rixlhq_api_internal_videos_handler_upload/index.d.ts +70 -0
- package/dist/models/github_com_rixlhq_api_internal_videos_handler_upload/index.js +78 -0
- package/dist/models/github_com_rixlhq_api_internal_videos_types/index.d.ts +30 -0
- package/dist/models/github_com_rixlhq_api_internal_videos_types/index.js +38 -0
- package/dist/models/index.d.ts +548 -0
- package/dist/models/index.js +543 -0
- package/dist/models/internal_images_handler/index.d.ts +98 -0
- package/dist/models/internal_images_handler/index.js +112 -0
- package/dist/models/internal_videos_handler_subtitles/index.d.ts +30 -0
- package/dist/models/internal_videos_handler_subtitles/index.js +38 -0
- package/dist/models/pagination/index.d.ts +125 -0
- package/dist/models/pagination/index.js +153 -0
- package/dist/rixlClient.d.ts +34 -0
- package/dist/rixlClient.js +69 -0
- package/dist/videos/index.d.ts +73 -0
- package/dist/videos/index.js +52 -0
- package/dist/videos/item/audioTracks/index.d.ts +38 -0
- package/dist/videos/item/audioTracks/index.js +33 -0
- package/dist/videos/item/audioTracks/item/index.d.ts +70 -0
- package/dist/videos/item/audioTracks/item/index.js +67 -0
- package/dist/videos/item/chapters/index.d.ts +50 -0
- package/dist/videos/item/chapters/index.js +46 -0
- package/dist/videos/item/delete/index.d.ts +30 -0
- package/dist/videos/item/delete/index.js +28 -0
- package/dist/videos/item/index.d.ts +61 -0
- package/dist/videos/item/index.js +63 -0
- package/dist/videos/item/subtitles/index.d.ts +38 -0
- package/dist/videos/item/subtitles/index.js +33 -0
- package/dist/videos/item/subtitles/item/index.d.ts +70 -0
- package/dist/videos/item/subtitles/item/index.js +67 -0
- package/dist/videos/item/thumbnail/index.d.ts +59 -0
- package/dist/videos/item/thumbnail/index.js +68 -0
- package/dist/videos/languages/index.d.ts +27 -0
- package/dist/videos/languages/index.js +22 -0
- package/dist/videos/upload/complete/index.d.ts +35 -0
- package/dist/videos/upload/complete/index.js +36 -0
- package/dist/videos/upload/index.d.ts +24 -0
- package/dist/videos/upload/index.js +24 -0
- package/dist/videos/upload/init/index.d.ts +34 -0
- package/dist/videos/upload/init/index.js +35 -0
- package/package.json +47 -0
|
@@ -0,0 +1,43 @@
|
|
|
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 */
|
|
@@ -0,0 +1,35 @@
|
|
|
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;
|
|
@@ -0,0 +1,36 @@
|
|
|
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 */
|
|
@@ -0,0 +1,24 @@
|
|
|
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>;
|
|
@@ -0,0 +1,24 @@
|
|
|
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 */
|
|
@@ -0,0 +1,33 @@
|
|
|
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;
|
|
@@ -0,0 +1,33 @@
|
|
|
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 */
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
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 */
|
|
@@ -0,0 +1,37 @@
|
|
|
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;
|
|
@@ -0,0 +1,40 @@
|
|
|
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 */
|
|
@@ -0,0 +1,72 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
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 */
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions';
|
|
2
|
+
/**
|
|
3
|
+
* Video upload completion request
|
|
4
|
+
*/
|
|
5
|
+
export interface CompleteRequest extends AdditionalDataHolder, Parsable {
|
|
6
|
+
/**
|
|
7
|
+
* The video_id property
|
|
8
|
+
*/
|
|
9
|
+
videoId?: string | null;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
13
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
14
|
+
* @returns {CompleteRequest}
|
|
15
|
+
*/
|
|
16
|
+
export declare function createCompleteRequestFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
17
|
+
/**
|
|
18
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
19
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
20
|
+
* @returns {InitResponse}
|
|
21
|
+
*/
|
|
22
|
+
export declare function createInitResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
23
|
+
/**
|
|
24
|
+
* The deserialization information for the current model
|
|
25
|
+
* @param CompleteRequest The instance to deserialize into.
|
|
26
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
27
|
+
*/
|
|
28
|
+
export declare function deserializeIntoCompleteRequest(completeRequest?: Partial<CompleteRequest> | undefined): Record<string, (node: ParseNode) => void>;
|
|
29
|
+
/**
|
|
30
|
+
* The deserialization information for the current model
|
|
31
|
+
* @param InitResponse The instance to deserialize into.
|
|
32
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
33
|
+
*/
|
|
34
|
+
export declare function deserializeIntoInitResponse(initResponse?: Partial<InitResponse> | undefined): Record<string, (node: ParseNode) => void>;
|
|
35
|
+
export interface InitResponse extends AdditionalDataHolder, Parsable {
|
|
36
|
+
/**
|
|
37
|
+
* The poster_id property
|
|
38
|
+
*/
|
|
39
|
+
posterId?: string | null;
|
|
40
|
+
/**
|
|
41
|
+
* The poster_presigned_url property
|
|
42
|
+
*/
|
|
43
|
+
posterPresignedUrl?: string | null;
|
|
44
|
+
/**
|
|
45
|
+
* The upload_expires property
|
|
46
|
+
*/
|
|
47
|
+
uploadExpires?: number | null;
|
|
48
|
+
/**
|
|
49
|
+
* The video_id property
|
|
50
|
+
*/
|
|
51
|
+
videoId?: string | null;
|
|
52
|
+
/**
|
|
53
|
+
* The video_presigned_url property
|
|
54
|
+
*/
|
|
55
|
+
videoPresignedUrl?: string | null;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Serializes information the current object
|
|
59
|
+
* @param CompleteRequest The instance to serialize from.
|
|
60
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
61
|
+
* @param writer Serialization writer to use to serialize this model
|
|
62
|
+
*/
|
|
63
|
+
export declare function serializeCompleteRequest(writer: SerializationWriter, completeRequest?: Partial<CompleteRequest> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
64
|
+
/**
|
|
65
|
+
* Serializes information the current object
|
|
66
|
+
* @param InitResponse The instance to serialize from.
|
|
67
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
68
|
+
* @param writer Serialization writer to use to serialize this model
|
|
69
|
+
*/
|
|
70
|
+
export declare function serializeInitResponse(writer: SerializationWriter, initResponse?: Partial<InitResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
@@ -0,0 +1,78 @@
|
|
|
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 {CompleteRequest}
|
|
5
|
+
*/
|
|
6
|
+
// @ts-ignore
|
|
7
|
+
export function createCompleteRequestFromDiscriminatorValue(parseNode) {
|
|
8
|
+
return deserializeIntoCompleteRequest;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
12
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
13
|
+
* @returns {InitResponse}
|
|
14
|
+
*/
|
|
15
|
+
// @ts-ignore
|
|
16
|
+
export function createInitResponseFromDiscriminatorValue(parseNode) {
|
|
17
|
+
return deserializeIntoInitResponse;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* The deserialization information for the current model
|
|
21
|
+
* @param CompleteRequest The instance to deserialize into.
|
|
22
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
23
|
+
*/
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
export function deserializeIntoCompleteRequest(completeRequest = {}) {
|
|
26
|
+
return {
|
|
27
|
+
"video_id": n => { completeRequest.videoId = n.getStringValue(); },
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* The deserialization information for the current model
|
|
32
|
+
* @param InitResponse The instance to deserialize into.
|
|
33
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
34
|
+
*/
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
export function deserializeIntoInitResponse(initResponse = {}) {
|
|
37
|
+
return {
|
|
38
|
+
"poster_id": n => { initResponse.posterId = n.getStringValue(); },
|
|
39
|
+
"poster_presigned_url": n => { initResponse.posterPresignedUrl = n.getStringValue(); },
|
|
40
|
+
"upload_expires": n => { initResponse.uploadExpires = n.getNumberValue(); },
|
|
41
|
+
"video_id": n => { initResponse.videoId = n.getStringValue(); },
|
|
42
|
+
"video_presigned_url": n => { initResponse.videoPresignedUrl = n.getStringValue(); },
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Serializes information the current object
|
|
47
|
+
* @param CompleteRequest The instance to serialize from.
|
|
48
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
49
|
+
* @param writer Serialization writer to use to serialize this model
|
|
50
|
+
*/
|
|
51
|
+
// @ts-ignore
|
|
52
|
+
export function serializeCompleteRequest(writer, completeRequest = {}, isSerializingDerivedType = false) {
|
|
53
|
+
if (!completeRequest || isSerializingDerivedType) {
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
writer.writeStringValue("video_id", completeRequest.videoId);
|
|
57
|
+
writer.writeAdditionalData(completeRequest.additionalData);
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Serializes information the current object
|
|
61
|
+
* @param InitResponse The instance to serialize from.
|
|
62
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
63
|
+
* @param writer Serialization writer to use to serialize this model
|
|
64
|
+
*/
|
|
65
|
+
// @ts-ignore
|
|
66
|
+
export function serializeInitResponse(writer, initResponse = {}, isSerializingDerivedType = false) {
|
|
67
|
+
if (!initResponse || isSerializingDerivedType) {
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
writer.writeStringValue("poster_id", initResponse.posterId);
|
|
71
|
+
writer.writeStringValue("poster_presigned_url", initResponse.posterPresignedUrl);
|
|
72
|
+
writer.writeNumberValue("upload_expires", initResponse.uploadExpires);
|
|
73
|
+
writer.writeStringValue("video_id", initResponse.videoId);
|
|
74
|
+
writer.writeStringValue("video_presigned_url", initResponse.videoPresignedUrl);
|
|
75
|
+
writer.writeAdditionalData(initResponse.additionalData);
|
|
76
|
+
}
|
|
77
|
+
/* tslint:enable */
|
|
78
|
+
/* eslint-enable */
|