@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,70 @@
|
|
|
1
|
+
import { type Subtitle, type SubtitleDelete } from '../../../../models/index.js';
|
|
2
|
+
import { type AdditionalDataHolder, type BaseRequestBuilder, type Parsable, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions';
|
|
3
|
+
/**
|
|
4
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
5
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
6
|
+
* @returns {WithLang_codePutRequestBody}
|
|
7
|
+
*/
|
|
8
|
+
export declare function createWithLang_codePutRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
9
|
+
/**
|
|
10
|
+
* The deserialization information for the current model
|
|
11
|
+
* @param WithLang_codePutRequestBody The instance to deserialize into.
|
|
12
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
13
|
+
*/
|
|
14
|
+
export declare function deserializeIntoWithLang_codePutRequestBody(withLang_codePutRequestBody?: Partial<WithLang_codePutRequestBody> | undefined): Record<string, (node: ParseNode) => void>;
|
|
15
|
+
/**
|
|
16
|
+
* Serializes information the current object
|
|
17
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
18
|
+
* @param WithLang_codePutRequestBody The instance to serialize from.
|
|
19
|
+
* @param writer Serialization writer to use to serialize this model
|
|
20
|
+
*/
|
|
21
|
+
export declare function serializeWithLang_codePutRequestBody(writer: SerializationWriter, withLang_codePutRequestBody?: Partial<WithLang_codePutRequestBody> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
22
|
+
/**
|
|
23
|
+
* Builds and executes requests for operations under /videos/{videoId}/subtitles/{lang_code}
|
|
24
|
+
*/
|
|
25
|
+
export interface WithLang_codeItemRequestBuilder extends BaseRequestBuilder<WithLang_codeItemRequestBuilder> {
|
|
26
|
+
/**
|
|
27
|
+
* Remove a subtitle for a specific language using API key authentication
|
|
28
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
29
|
+
* @returns {Promise<SubtitleDelete>}
|
|
30
|
+
*/
|
|
31
|
+
delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<SubtitleDelete | undefined>;
|
|
32
|
+
/**
|
|
33
|
+
* Add or replace a subtitle for a specific language using API key authentication
|
|
34
|
+
* @param body The request body
|
|
35
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
36
|
+
* @returns {Promise<Subtitle>}
|
|
37
|
+
*/
|
|
38
|
+
put(body: WithLang_codePutRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<Subtitle | undefined>;
|
|
39
|
+
/**
|
|
40
|
+
* Remove a subtitle for a specific language using API key authentication
|
|
41
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
42
|
+
* @returns {RequestInformation}
|
|
43
|
+
*/
|
|
44
|
+
toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
45
|
+
/**
|
|
46
|
+
* Add or replace a subtitle for a specific language using API key authentication
|
|
47
|
+
* @param body The request body
|
|
48
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
49
|
+
* @returns {RequestInformation}
|
|
50
|
+
*/
|
|
51
|
+
toPutRequestInformation(body: WithLang_codePutRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
52
|
+
}
|
|
53
|
+
export interface WithLang_codePutRequestBody extends AdditionalDataHolder, Parsable {
|
|
54
|
+
/**
|
|
55
|
+
* The file property
|
|
56
|
+
*/
|
|
57
|
+
file?: ArrayBuffer | null;
|
|
58
|
+
/**
|
|
59
|
+
* The label property
|
|
60
|
+
*/
|
|
61
|
+
label?: string | null;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Uri template for the request builder.
|
|
65
|
+
*/
|
|
66
|
+
export declare const WithLang_codeItemRequestBuilderUriTemplate = "{+baseurl}/videos/{videoId}/subtitles/{lang_code}";
|
|
67
|
+
/**
|
|
68
|
+
* Metadata for all the requests in the request builder.
|
|
69
|
+
*/
|
|
70
|
+
export declare const WithLang_codeItemRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
// Generated by Microsoft Kiota
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
import { createSubtitleDeleteFromDiscriminatorValue, createSubtitleFromDiscriminatorValue } from '../../../../models/index.js';
|
|
6
|
+
/**
|
|
7
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
8
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
9
|
+
* @returns {WithLang_codePutRequestBody}
|
|
10
|
+
*/
|
|
11
|
+
// @ts-ignore
|
|
12
|
+
export function createWithLang_codePutRequestBodyFromDiscriminatorValue(parseNode) {
|
|
13
|
+
return deserializeIntoWithLang_codePutRequestBody;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* The deserialization information for the current model
|
|
17
|
+
* @param WithLang_codePutRequestBody The instance to deserialize into.
|
|
18
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
19
|
+
*/
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
export function deserializeIntoWithLang_codePutRequestBody(withLang_codePutRequestBody = {}) {
|
|
22
|
+
return {
|
|
23
|
+
"file": n => { withLang_codePutRequestBody.file = n.getByteArrayValue(); },
|
|
24
|
+
"label": n => { withLang_codePutRequestBody.label = n.getStringValue(); },
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Serializes information the current object
|
|
29
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
30
|
+
* @param WithLang_codePutRequestBody The instance to serialize from.
|
|
31
|
+
* @param writer Serialization writer to use to serialize this model
|
|
32
|
+
*/
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
export function serializeWithLang_codePutRequestBody(writer, withLang_codePutRequestBody = {}, isSerializingDerivedType = false) {
|
|
35
|
+
if (!withLang_codePutRequestBody || isSerializingDerivedType) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
writer.writeByteArrayValue("file", withLang_codePutRequestBody.file);
|
|
39
|
+
writer.writeStringValue("label", withLang_codePutRequestBody.label);
|
|
40
|
+
writer.writeAdditionalData(withLang_codePutRequestBody.additionalData);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Uri template for the request builder.
|
|
44
|
+
*/
|
|
45
|
+
export const WithLang_codeItemRequestBuilderUriTemplate = "{+baseurl}/videos/{videoId}/subtitles/{lang_code}";
|
|
46
|
+
/**
|
|
47
|
+
* Metadata for all the requests in the request builder.
|
|
48
|
+
*/
|
|
49
|
+
export const WithLang_codeItemRequestBuilderRequestsMetadata = {
|
|
50
|
+
delete: {
|
|
51
|
+
uriTemplate: WithLang_codeItemRequestBuilderUriTemplate,
|
|
52
|
+
responseBodyContentType: "application/json",
|
|
53
|
+
adapterMethodName: "send",
|
|
54
|
+
responseBodyFactory: createSubtitleDeleteFromDiscriminatorValue,
|
|
55
|
+
},
|
|
56
|
+
put: {
|
|
57
|
+
uriTemplate: WithLang_codeItemRequestBuilderUriTemplate,
|
|
58
|
+
responseBodyContentType: "application/json",
|
|
59
|
+
adapterMethodName: "send",
|
|
60
|
+
responseBodyFactory: createSubtitleFromDiscriminatorValue,
|
|
61
|
+
requestBodyContentType: "application/x-www-form-urlencoded",
|
|
62
|
+
requestBodySerializer: serializeWithLang_codePutRequestBody,
|
|
63
|
+
requestInformationContentSetMethod: "setContentFromParsable",
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
|
+
/* tslint:enable */
|
|
67
|
+
/* eslint-enable */
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { type Video } from '../../../models/index.js';
|
|
2
|
+
import { type AdditionalDataHolder, type BaseRequestBuilder, type Parsable, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions';
|
|
3
|
+
/**
|
|
4
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
5
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
6
|
+
* @returns {ThumbnailPutRequestBody}
|
|
7
|
+
*/
|
|
8
|
+
export declare function createThumbnailPutRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
9
|
+
/**
|
|
10
|
+
* The deserialization information for the current model
|
|
11
|
+
* @param ThumbnailPutRequestBody The instance to deserialize into.
|
|
12
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
13
|
+
*/
|
|
14
|
+
export declare function deserializeIntoThumbnailPutRequestBody(thumbnailPutRequestBody?: Partial<ThumbnailPutRequestBody> | undefined): Record<string, (node: ParseNode) => void>;
|
|
15
|
+
/**
|
|
16
|
+
* Serializes information the current object
|
|
17
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
18
|
+
* @param ThumbnailPutRequestBody The instance to serialize from.
|
|
19
|
+
* @param writer Serialization writer to use to serialize this model
|
|
20
|
+
*/
|
|
21
|
+
export declare function serializeThumbnailPutRequestBody(writer: SerializationWriter, thumbnailPutRequestBody?: Partial<ThumbnailPutRequestBody> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
22
|
+
export interface ThumbnailPutRequestBody extends AdditionalDataHolder, Parsable {
|
|
23
|
+
/**
|
|
24
|
+
* The thumbnail property
|
|
25
|
+
*/
|
|
26
|
+
thumbnail?: ArrayBuffer | null;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Builds and executes requests for operations under /videos/{videoId}/thumbnail
|
|
30
|
+
*/
|
|
31
|
+
export interface ThumbnailRequestBuilder extends BaseRequestBuilder<ThumbnailRequestBuilder> {
|
|
32
|
+
/**
|
|
33
|
+
* Update the thumbnail image for an existing video
|
|
34
|
+
* @param body The request body
|
|
35
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
36
|
+
* @returns {Promise<Video>}
|
|
37
|
+
* @throws {ErrorResponse} error when the service returns a 400 status code
|
|
38
|
+
* @throws {ErrorResponse} error when the service returns a 401 status code
|
|
39
|
+
* @throws {ErrorResponse} error when the service returns a 403 status code
|
|
40
|
+
* @throws {ErrorResponse} error when the service returns a 404 status code
|
|
41
|
+
* @throws {ErrorResponse} error when the service returns a 500 status code
|
|
42
|
+
*/
|
|
43
|
+
put(body: ThumbnailPutRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<Video | undefined>;
|
|
44
|
+
/**
|
|
45
|
+
* Update the thumbnail image for an existing video
|
|
46
|
+
* @param body The request body
|
|
47
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
48
|
+
* @returns {RequestInformation}
|
|
49
|
+
*/
|
|
50
|
+
toPutRequestInformation(body: ThumbnailPutRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Uri template for the request builder.
|
|
54
|
+
*/
|
|
55
|
+
export declare const ThumbnailRequestBuilderUriTemplate = "{+baseurl}/videos/{videoId}/thumbnail";
|
|
56
|
+
/**
|
|
57
|
+
* Metadata for all the requests in the request builder.
|
|
58
|
+
*/
|
|
59
|
+
export declare const ThumbnailRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
@@ -0,0 +1,68 @@
|
|
|
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 { createVideoFromDiscriminatorValue } from '../../../models/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 {ThumbnailPutRequestBody}
|
|
12
|
+
*/
|
|
13
|
+
// @ts-ignore
|
|
14
|
+
export function createThumbnailPutRequestBodyFromDiscriminatorValue(parseNode) {
|
|
15
|
+
return deserializeIntoThumbnailPutRequestBody;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* The deserialization information for the current model
|
|
19
|
+
* @param ThumbnailPutRequestBody The instance to deserialize into.
|
|
20
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
21
|
+
*/
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
export function deserializeIntoThumbnailPutRequestBody(thumbnailPutRequestBody = {}) {
|
|
24
|
+
return {
|
|
25
|
+
"thumbnail": n => { thumbnailPutRequestBody.thumbnail = n.getByteArrayValue(); },
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Serializes information the current object
|
|
30
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
31
|
+
* @param ThumbnailPutRequestBody The instance to serialize from.
|
|
32
|
+
* @param writer Serialization writer to use to serialize this model
|
|
33
|
+
*/
|
|
34
|
+
// @ts-ignore
|
|
35
|
+
export function serializeThumbnailPutRequestBody(writer, thumbnailPutRequestBody = {}, isSerializingDerivedType = false) {
|
|
36
|
+
if (!thumbnailPutRequestBody || isSerializingDerivedType) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
writer.writeByteArrayValue("thumbnail", thumbnailPutRequestBody.thumbnail);
|
|
40
|
+
writer.writeAdditionalData(thumbnailPutRequestBody.additionalData);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Uri template for the request builder.
|
|
44
|
+
*/
|
|
45
|
+
export const ThumbnailRequestBuilderUriTemplate = "{+baseurl}/videos/{videoId}/thumbnail";
|
|
46
|
+
/**
|
|
47
|
+
* Metadata for all the requests in the request builder.
|
|
48
|
+
*/
|
|
49
|
+
export const ThumbnailRequestBuilderRequestsMetadata = {
|
|
50
|
+
put: {
|
|
51
|
+
uriTemplate: ThumbnailRequestBuilderUriTemplate,
|
|
52
|
+
responseBodyContentType: "application/json",
|
|
53
|
+
errorMappings: {
|
|
54
|
+
400: createErrorResponseFromDiscriminatorValue,
|
|
55
|
+
401: createErrorResponseFromDiscriminatorValue,
|
|
56
|
+
403: createErrorResponseFromDiscriminatorValue,
|
|
57
|
+
404: createErrorResponseFromDiscriminatorValue,
|
|
58
|
+
500: createErrorResponseFromDiscriminatorValue,
|
|
59
|
+
},
|
|
60
|
+
adapterMethodName: "send",
|
|
61
|
+
responseBodyFactory: createVideoFromDiscriminatorValue,
|
|
62
|
+
requestBodyContentType: "application/x-www-form-urlencoded",
|
|
63
|
+
requestBodySerializer: serializeThumbnailPutRequestBody,
|
|
64
|
+
requestInformationContentSetMethod: "setContentFromParsable",
|
|
65
|
+
},
|
|
66
|
+
};
|
|
67
|
+
/* tslint:enable */
|
|
68
|
+
/* eslint-enable */
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type LanguageResponse } from '../../models/internal_videos_handler_subtitles/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 /videos/languages
|
|
5
|
+
*/
|
|
6
|
+
export interface LanguagesRequestBuilder extends BaseRequestBuilder<LanguagesRequestBuilder> {
|
|
7
|
+
/**
|
|
8
|
+
* Get list of supported languages for subtitles
|
|
9
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
10
|
+
* @returns {Promise<LanguageResponse[]>}
|
|
11
|
+
*/
|
|
12
|
+
get(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<LanguageResponse[] | undefined>;
|
|
13
|
+
/**
|
|
14
|
+
* Get list of supported languages for subtitles
|
|
15
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
16
|
+
* @returns {RequestInformation}
|
|
17
|
+
*/
|
|
18
|
+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Uri template for the request builder.
|
|
22
|
+
*/
|
|
23
|
+
export declare const LanguagesRequestBuilderUriTemplate = "{+baseurl}/videos/languages";
|
|
24
|
+
/**
|
|
25
|
+
* Metadata for all the requests in the request builder.
|
|
26
|
+
*/
|
|
27
|
+
export declare const LanguagesRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
// Generated by Microsoft Kiota
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
import { createLanguageResponseFromDiscriminatorValue } from '../../models/internal_videos_handler_subtitles/index.js';
|
|
6
|
+
/**
|
|
7
|
+
* Uri template for the request builder.
|
|
8
|
+
*/
|
|
9
|
+
export const LanguagesRequestBuilderUriTemplate = "{+baseurl}/videos/languages";
|
|
10
|
+
/**
|
|
11
|
+
* Metadata for all the requests in the request builder.
|
|
12
|
+
*/
|
|
13
|
+
export const LanguagesRequestBuilderRequestsMetadata = {
|
|
14
|
+
get: {
|
|
15
|
+
uriTemplate: LanguagesRequestBuilderUriTemplate,
|
|
16
|
+
responseBodyContentType: "application/json",
|
|
17
|
+
adapterMethodName: "sendCollection",
|
|
18
|
+
responseBodyFactory: createLanguageResponseFromDiscriminatorValue,
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
/* tslint:enable */
|
|
22
|
+
/* eslint-enable */
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type CompleteRequest } from '../../../models/github_com_rixlhq_api_internal_videos_handler_upload/index.js';
|
|
2
|
+
import { type Video } from '../../../models/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 /videos/upload/complete
|
|
6
|
+
*/
|
|
7
|
+
export interface CompleteRequestBuilder extends BaseRequestBuilder<CompleteRequestBuilder> {
|
|
8
|
+
/**
|
|
9
|
+
* Mark a video upload as complete after successful upload to storage 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<Video>}
|
|
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<Video | undefined>;
|
|
20
|
+
/**
|
|
21
|
+
* Mark a video upload as complete after successful upload to storage 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}/videos/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 { serializeCompleteRequest } from '../../../models/github_com_rixlhq_api_internal_videos_handler_upload/index.js';
|
|
8
|
+
// @ts-ignore
|
|
9
|
+
import { createVideoFromDiscriminatorValue } from '../../../models/index.js';
|
|
10
|
+
/**
|
|
11
|
+
* Uri template for the request builder.
|
|
12
|
+
*/
|
|
13
|
+
export const CompleteRequestBuilderUriTemplate = "{+baseurl}/videos/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: createVideoFromDiscriminatorValue,
|
|
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 /videos/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}/videos/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}/videos/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,34 @@
|
|
|
1
|
+
import { type InitResponse } from '../../../models/github_com_rixlhq_api_internal_videos_handler_upload/index.js';
|
|
2
|
+
import { type VideoUploadInitRequest } from '../../../models/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 /videos/upload/init
|
|
6
|
+
*/
|
|
7
|
+
export interface InitRequestBuilder extends BaseRequestBuilder<InitRequestBuilder> {
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a video upload and get presigned URLs for video and poster 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<InitResponse>}
|
|
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 500 status code
|
|
17
|
+
*/
|
|
18
|
+
post(body: VideoUploadInitRequest, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<InitResponse | undefined>;
|
|
19
|
+
/**
|
|
20
|
+
* Initialize a video upload and get presigned URLs for video and poster using API key authentication
|
|
21
|
+
* @param body The request body
|
|
22
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
23
|
+
* @returns {RequestInformation}
|
|
24
|
+
*/
|
|
25
|
+
toPostRequestInformation(body: VideoUploadInitRequest, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Uri template for the request builder.
|
|
29
|
+
*/
|
|
30
|
+
export declare const InitRequestBuilderUriTemplate = "{+baseurl}/videos/upload/init";
|
|
31
|
+
/**
|
|
32
|
+
* Metadata for all the requests in the request builder.
|
|
33
|
+
*/
|
|
34
|
+
export declare const InitRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
@@ -0,0 +1,35 @@
|
|
|
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 } from '../../../models/github_com_rixlhq_api_internal_videos_handler_upload/index.js';
|
|
8
|
+
// @ts-ignore
|
|
9
|
+
import { serializeVideoUploadInitRequest } from '../../../models/index.js';
|
|
10
|
+
/**
|
|
11
|
+
* Uri template for the request builder.
|
|
12
|
+
*/
|
|
13
|
+
export const InitRequestBuilderUriTemplate = "{+baseurl}/videos/upload/init";
|
|
14
|
+
/**
|
|
15
|
+
* Metadata for all the requests in the request builder.
|
|
16
|
+
*/
|
|
17
|
+
export const InitRequestBuilderRequestsMetadata = {
|
|
18
|
+
post: {
|
|
19
|
+
uriTemplate: InitRequestBuilderUriTemplate,
|
|
20
|
+
responseBodyContentType: "application/json",
|
|
21
|
+
errorMappings: {
|
|
22
|
+
400: createErrorResponseFromDiscriminatorValue,
|
|
23
|
+
401: createErrorResponseFromDiscriminatorValue,
|
|
24
|
+
403: createErrorResponseFromDiscriminatorValue,
|
|
25
|
+
500: createErrorResponseFromDiscriminatorValue,
|
|
26
|
+
},
|
|
27
|
+
adapterMethodName: "send",
|
|
28
|
+
responseBodyFactory: createInitResponseFromDiscriminatorValue,
|
|
29
|
+
requestBodyContentType: "application/json",
|
|
30
|
+
requestBodySerializer: serializeVideoUploadInitRequest,
|
|
31
|
+
requestInformationContentSetMethod: "setContentFromParsable",
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
/* tslint:enable */
|
|
35
|
+
/* eslint-enable */
|
package/package.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@rixl/sdk",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Official TypeScript/JavaScript SDK for the Rixl REST API — typed client for managing images, videos, and feeds.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/rixlhq/rixl-js.git"
|
|
10
|
+
},
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/rixlhq/rixl-js/issues"
|
|
13
|
+
},
|
|
14
|
+
"homepage": "https://github.com/rixlhq/rixl-js#readme",
|
|
15
|
+
"main": "./dist/index.js",
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"import": "./dist/index.js"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"dist",
|
|
25
|
+
"LICENSE"
|
|
26
|
+
],
|
|
27
|
+
"engines": {
|
|
28
|
+
"node": ">=18"
|
|
29
|
+
},
|
|
30
|
+
"publishConfig": {
|
|
31
|
+
"access": "public",
|
|
32
|
+
"registry": "https://registry.npmjs.org/"
|
|
33
|
+
},
|
|
34
|
+
"scripts": {
|
|
35
|
+
"build": "tsc -p tsconfig.json"
|
|
36
|
+
},
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"@microsoft/kiota-abstractions": "1.0.0-preview.100",
|
|
39
|
+
"@microsoft/kiota-serialization-form": "1.0.0-preview.100",
|
|
40
|
+
"@microsoft/kiota-serialization-json": "1.0.0-preview.100",
|
|
41
|
+
"@microsoft/kiota-serialization-multipart": "1.0.0-preview.100",
|
|
42
|
+
"@microsoft/kiota-serialization-text": "1.0.0-preview.100"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"typescript": "^6.0.2"
|
|
46
|
+
}
|
|
47
|
+
}
|