@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.
Files changed (71) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +153 -0
  3. package/dist/feeds/index.d.ts +21 -0
  4. package/dist/feeds/index.js +21 -0
  5. package/dist/feeds/item/creators/index.d.ts +21 -0
  6. package/dist/feeds/item/creators/index.js +20 -0
  7. package/dist/feeds/item/creators/item/index.d.ts +42 -0
  8. package/dist/feeds/item/creators/item/index.js +28 -0
  9. package/dist/feeds/item/index.d.ts +58 -0
  10. package/dist/feeds/item/index.js +44 -0
  11. package/dist/feeds/item/item/index.d.ts +29 -0
  12. package/dist/feeds/item/item/index.js +28 -0
  13. package/dist/images/index.d.ts +68 -0
  14. package/dist/images/index.js +46 -0
  15. package/dist/images/item/index.d.ts +48 -0
  16. package/dist/images/item/index.js +43 -0
  17. package/dist/images/upload/complete/index.d.ts +35 -0
  18. package/dist/images/upload/complete/index.js +36 -0
  19. package/dist/images/upload/index.d.ts +24 -0
  20. package/dist/images/upload/index.js +24 -0
  21. package/dist/images/upload/init/index.d.ts +33 -0
  22. package/dist/images/upload/init/index.js +33 -0
  23. package/dist/index.d.ts +5 -0
  24. package/dist/index.js +5 -0
  25. package/dist/models/github_com_rixlhq_api_db_sqlc/index.d.ts +13 -0
  26. package/dist/models/github_com_rixlhq_api_db_sqlc/index.js +16 -0
  27. package/dist/models/github_com_rixlhq_api_internal_errors/index.d.ts +37 -0
  28. package/dist/models/github_com_rixlhq_api_internal_errors/index.js +40 -0
  29. package/dist/models/github_com_rixlhq_api_internal_videos/index.d.ts +72 -0
  30. package/dist/models/github_com_rixlhq_api_internal_videos/index.js +65 -0
  31. package/dist/models/github_com_rixlhq_api_internal_videos_handler_upload/index.d.ts +70 -0
  32. package/dist/models/github_com_rixlhq_api_internal_videos_handler_upload/index.js +78 -0
  33. package/dist/models/github_com_rixlhq_api_internal_videos_types/index.d.ts +30 -0
  34. package/dist/models/github_com_rixlhq_api_internal_videos_types/index.js +38 -0
  35. package/dist/models/index.d.ts +548 -0
  36. package/dist/models/index.js +543 -0
  37. package/dist/models/internal_images_handler/index.d.ts +98 -0
  38. package/dist/models/internal_images_handler/index.js +112 -0
  39. package/dist/models/internal_videos_handler_subtitles/index.d.ts +30 -0
  40. package/dist/models/internal_videos_handler_subtitles/index.js +38 -0
  41. package/dist/models/pagination/index.d.ts +125 -0
  42. package/dist/models/pagination/index.js +153 -0
  43. package/dist/rixlClient.d.ts +34 -0
  44. package/dist/rixlClient.js +69 -0
  45. package/dist/videos/index.d.ts +73 -0
  46. package/dist/videos/index.js +52 -0
  47. package/dist/videos/item/audioTracks/index.d.ts +38 -0
  48. package/dist/videos/item/audioTracks/index.js +33 -0
  49. package/dist/videos/item/audioTracks/item/index.d.ts +70 -0
  50. package/dist/videos/item/audioTracks/item/index.js +67 -0
  51. package/dist/videos/item/chapters/index.d.ts +50 -0
  52. package/dist/videos/item/chapters/index.js +46 -0
  53. package/dist/videos/item/delete/index.d.ts +30 -0
  54. package/dist/videos/item/delete/index.js +28 -0
  55. package/dist/videos/item/index.d.ts +61 -0
  56. package/dist/videos/item/index.js +63 -0
  57. package/dist/videos/item/subtitles/index.d.ts +38 -0
  58. package/dist/videos/item/subtitles/index.js +33 -0
  59. package/dist/videos/item/subtitles/item/index.d.ts +70 -0
  60. package/dist/videos/item/subtitles/item/index.js +67 -0
  61. package/dist/videos/item/thumbnail/index.d.ts +59 -0
  62. package/dist/videos/item/thumbnail/index.js +68 -0
  63. package/dist/videos/languages/index.d.ts +27 -0
  64. package/dist/videos/languages/index.js +22 -0
  65. package/dist/videos/upload/complete/index.d.ts +35 -0
  66. package/dist/videos/upload/complete/index.js +36 -0
  67. package/dist/videos/upload/index.d.ts +24 -0
  68. package/dist/videos/upload/index.js +24 -0
  69. package/dist/videos/upload/init/index.d.ts +34 -0
  70. package/dist/videos/upload/init/index.js +35 -0
  71. package/package.json +47 -0
@@ -0,0 +1,52 @@
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 { createPaginatedResponseVideoFromDiscriminatorValue } from '../models/pagination/index.js';
8
+ // @ts-ignore
9
+ import { WithVideoItemRequestBuilderNavigationMetadata, WithVideoItemRequestBuilderRequestsMetadata } from './item/index.js';
10
+ // @ts-ignore
11
+ import { LanguagesRequestBuilderRequestsMetadata } from './languages/index.js';
12
+ // @ts-ignore
13
+ import { UploadRequestBuilderNavigationMetadata } from './upload/index.js';
14
+ /**
15
+ * Uri template for the request builder.
16
+ */
17
+ export const VideosRequestBuilderUriTemplate = "{+baseurl}/videos{?limit*,offset*,order*,sort*}";
18
+ /**
19
+ * Metadata for all the navigation properties in the request builder.
20
+ */
21
+ export const VideosRequestBuilderNavigationMetadata = {
22
+ byVideoId: {
23
+ requestsMetadata: WithVideoItemRequestBuilderRequestsMetadata,
24
+ navigationMetadata: WithVideoItemRequestBuilderNavigationMetadata,
25
+ pathParametersMappings: ["videoId"],
26
+ },
27
+ languages: {
28
+ requestsMetadata: LanguagesRequestBuilderRequestsMetadata,
29
+ },
30
+ upload: {
31
+ navigationMetadata: UploadRequestBuilderNavigationMetadata,
32
+ },
33
+ };
34
+ /**
35
+ * Metadata for all the requests in the request builder.
36
+ */
37
+ export const VideosRequestBuilderRequestsMetadata = {
38
+ get: {
39
+ uriTemplate: VideosRequestBuilderUriTemplate,
40
+ responseBodyContentType: "application/json",
41
+ errorMappings: {
42
+ 400: createErrorResponseFromDiscriminatorValue,
43
+ 401: createErrorResponseFromDiscriminatorValue,
44
+ 403: createErrorResponseFromDiscriminatorValue,
45
+ 500: createErrorResponseFromDiscriminatorValue,
46
+ },
47
+ adapterMethodName: "send",
48
+ responseBodyFactory: createPaginatedResponseVideoFromDiscriminatorValue,
49
+ },
50
+ };
51
+ /* tslint:enable */
52
+ /* eslint-enable */
@@ -0,0 +1,38 @@
1
+ import { type AudioTrackDelete } from '../../../models/index.js';
2
+ import { type WithLang_codeItemRequestBuilder } from './item/index.js';
3
+ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
4
+ /**
5
+ * Builds and executes requests for operations under /videos/{videoId}/audio-tracks
6
+ */
7
+ export interface AudioTracksRequestBuilder extends BaseRequestBuilder<AudioTracksRequestBuilder> {
8
+ /**
9
+ * Gets an item from the rixlSdk.videos.item.audioTracks.item collection
10
+ * @param lang_code Language Code (BCP 47)
11
+ * @returns {WithLang_codeItemRequestBuilder}
12
+ */
13
+ byLang_code(lang_code: string): WithLang_codeItemRequestBuilder;
14
+ /**
15
+ * Remove all additional audio tracks from a video using API key authentication
16
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
17
+ * @returns {Promise<AudioTrackDelete>}
18
+ */
19
+ delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<AudioTrackDelete | undefined>;
20
+ /**
21
+ * Remove all additional audio tracks from a video using API key authentication
22
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
23
+ * @returns {RequestInformation}
24
+ */
25
+ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
26
+ }
27
+ /**
28
+ * Uri template for the request builder.
29
+ */
30
+ export declare const AudioTracksRequestBuilderUriTemplate = "{+baseurl}/videos/{videoId}/audio-tracks";
31
+ /**
32
+ * Metadata for all the navigation properties in the request builder.
33
+ */
34
+ export declare const AudioTracksRequestBuilderNavigationMetadata: Record<Exclude<keyof AudioTracksRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
35
+ /**
36
+ * Metadata for all the requests in the request builder.
37
+ */
38
+ export declare const AudioTracksRequestBuilderRequestsMetadata: RequestsMetadata;
@@ -0,0 +1,33 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createAudioTrackDeleteFromDiscriminatorValue } from '../../../models/index.js';
6
+ // @ts-ignore
7
+ import { WithLang_codeItemRequestBuilderRequestsMetadata } from './item/index.js';
8
+ /**
9
+ * Uri template for the request builder.
10
+ */
11
+ export const AudioTracksRequestBuilderUriTemplate = "{+baseurl}/videos/{videoId}/audio-tracks";
12
+ /**
13
+ * Metadata for all the navigation properties in the request builder.
14
+ */
15
+ export const AudioTracksRequestBuilderNavigationMetadata = {
16
+ byLang_code: {
17
+ requestsMetadata: WithLang_codeItemRequestBuilderRequestsMetadata,
18
+ pathParametersMappings: ["lang_code"],
19
+ },
20
+ };
21
+ /**
22
+ * Metadata for all the requests in the request builder.
23
+ */
24
+ export const AudioTracksRequestBuilderRequestsMetadata = {
25
+ delete: {
26
+ uriTemplate: AudioTracksRequestBuilderUriTemplate,
27
+ responseBodyContentType: "application/json",
28
+ adapterMethodName: "send",
29
+ responseBodyFactory: createAudioTrackDeleteFromDiscriminatorValue,
30
+ },
31
+ };
32
+ /* tslint:enable */
33
+ /* eslint-enable */
@@ -0,0 +1,70 @@
1
+ import { type AudioTrack, type AudioTrackDelete } 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}/audio-tracks/{lang_code}
24
+ */
25
+ export interface WithLang_codeItemRequestBuilder extends BaseRequestBuilder<WithLang_codeItemRequestBuilder> {
26
+ /**
27
+ * Remove an audio track 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<AudioTrackDelete>}
30
+ */
31
+ delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<AudioTrackDelete | undefined>;
32
+ /**
33
+ * Add or replace an audio track 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<AudioTrack>}
37
+ */
38
+ put(body: WithLang_codePutRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<AudioTrack | undefined>;
39
+ /**
40
+ * Remove an audio track 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 an audio track 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}/audio-tracks/{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 { createAudioTrackDeleteFromDiscriminatorValue, createAudioTrackFromDiscriminatorValue } 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}/audio-tracks/{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: createAudioTrackDeleteFromDiscriminatorValue,
55
+ },
56
+ put: {
57
+ uriTemplate: WithLang_codeItemRequestBuilderUriTemplate,
58
+ responseBodyContentType: "application/json",
59
+ adapterMethodName: "send",
60
+ responseBodyFactory: createAudioTrackFromDiscriminatorValue,
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,50 @@
1
+ import { type UpdateChaptersRequest, type UpdateChaptersResponse } 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 /videos/{videoId}/chapters
5
+ */
6
+ export interface ChaptersRequestBuilder extends BaseRequestBuilder<ChaptersRequestBuilder> {
7
+ /**
8
+ * Remove all chapters from a video using API key authentication
9
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
10
+ * @returns {Promise<UpdateChaptersResponse>}
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<UpdateChaptersResponse | undefined>;
17
+ /**
18
+ * Replace all chapters for a video (atomic PUT operation) using API key authentication
19
+ * @param body The request body
20
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
21
+ * @returns {Promise<UpdateChaptersResponse>}
22
+ * @throws {ErrorResponse} error when the service returns a 400 status code
23
+ * @throws {ErrorResponse} error when the service returns a 401 status code
24
+ * @throws {ErrorResponse} error when the service returns a 403 status code
25
+ * @throws {ErrorResponse} error when the service returns a 404 status code
26
+ * @throws {ErrorResponse} error when the service returns a 500 status code
27
+ */
28
+ put(body: UpdateChaptersRequest, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<UpdateChaptersResponse | undefined>;
29
+ /**
30
+ * Remove all chapters from a video using API key authentication
31
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
32
+ * @returns {RequestInformation}
33
+ */
34
+ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
35
+ /**
36
+ * Replace all chapters for a video (atomic PUT operation) using API key authentication
37
+ * @param body The request body
38
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
39
+ * @returns {RequestInformation}
40
+ */
41
+ toPutRequestInformation(body: UpdateChaptersRequest, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
42
+ }
43
+ /**
44
+ * Uri template for the request builder.
45
+ */
46
+ export declare const ChaptersRequestBuilderUriTemplate = "{+baseurl}/videos/{videoId}/chapters";
47
+ /**
48
+ * Metadata for all the requests in the request builder.
49
+ */
50
+ export declare const ChaptersRequestBuilderRequestsMetadata: RequestsMetadata;
@@ -0,0 +1,46 @@
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 { createUpdateChaptersResponseFromDiscriminatorValue, serializeUpdateChaptersRequest } from '../../../models/index.js';
8
+ /**
9
+ * Uri template for the request builder.
10
+ */
11
+ export const ChaptersRequestBuilderUriTemplate = "{+baseurl}/videos/{videoId}/chapters";
12
+ /**
13
+ * Metadata for all the requests in the request builder.
14
+ */
15
+ export const ChaptersRequestBuilderRequestsMetadata = {
16
+ delete: {
17
+ uriTemplate: ChaptersRequestBuilderUriTemplate,
18
+ responseBodyContentType: "application/json",
19
+ errorMappings: {
20
+ 401: createErrorResponseFromDiscriminatorValue,
21
+ 403: createErrorResponseFromDiscriminatorValue,
22
+ 404: createErrorResponseFromDiscriminatorValue,
23
+ 500: createErrorResponseFromDiscriminatorValue,
24
+ },
25
+ adapterMethodName: "send",
26
+ responseBodyFactory: createUpdateChaptersResponseFromDiscriminatorValue,
27
+ },
28
+ put: {
29
+ uriTemplate: ChaptersRequestBuilderUriTemplate,
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: createUpdateChaptersResponseFromDiscriminatorValue,
40
+ requestBodyContentType: "application/json",
41
+ requestBodySerializer: serializeUpdateChaptersRequest,
42
+ requestInformationContentSetMethod: "setContentFromParsable",
43
+ },
44
+ };
45
+ /* tslint:enable */
46
+ /* eslint-enable */
@@ -0,0 +1,30 @@
1
+ import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
2
+ /**
3
+ * Builds and executes requests for operations under /videos/{videoId}/delete
4
+ */
5
+ export interface DeleteRequestBuilder extends BaseRequestBuilder<DeleteRequestBuilder> {
6
+ /**
7
+ * Delete a video by its ID within a project
8
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
9
+ * @throws {ErrorResponse} error when the service returns a 400 status code
10
+ * @throws {ErrorResponse} error when the service returns a 401 status code
11
+ * @throws {ErrorResponse} error when the service returns a 403 status code
12
+ * @throws {ErrorResponse} error when the service returns a 404 status code
13
+ * @throws {ErrorResponse} error when the service returns a 500 status code
14
+ */
15
+ delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
16
+ /**
17
+ * Delete a video by its ID within a project
18
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
19
+ * @returns {RequestInformation}
20
+ */
21
+ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
22
+ }
23
+ /**
24
+ * Uri template for the request builder.
25
+ */
26
+ export declare const DeleteRequestBuilderUriTemplate = "{+baseurl}/videos/{videoId}/delete";
27
+ /**
28
+ * Metadata for all the requests in the request builder.
29
+ */
30
+ export declare const DeleteRequestBuilderRequestsMetadata: RequestsMetadata;
@@ -0,0 +1,28 @@
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
+ /**
7
+ * Uri template for the request builder.
8
+ */
9
+ export const DeleteRequestBuilderUriTemplate = "{+baseurl}/videos/{videoId}/delete";
10
+ /**
11
+ * Metadata for all the requests in the request builder.
12
+ */
13
+ export const DeleteRequestBuilderRequestsMetadata = {
14
+ delete: {
15
+ uriTemplate: DeleteRequestBuilderUriTemplate,
16
+ responseBodyContentType: "application/json",
17
+ errorMappings: {
18
+ 400: createErrorResponseFromDiscriminatorValue,
19
+ 401: createErrorResponseFromDiscriminatorValue,
20
+ 403: createErrorResponseFromDiscriminatorValue,
21
+ 404: createErrorResponseFromDiscriminatorValue,
22
+ 500: createErrorResponseFromDiscriminatorValue,
23
+ },
24
+ adapterMethodName: "sendNoResponseContent",
25
+ },
26
+ };
27
+ /* tslint:enable */
28
+ /* eslint-enable */
@@ -0,0 +1,61 @@
1
+ import { type Video } from '../../models/index.js';
2
+ import { type AudioTracksRequestBuilder } from './audioTracks/index.js';
3
+ import { type ChaptersRequestBuilder } from './chapters/index.js';
4
+ import { type DeleteRequestBuilder } from './delete/index.js';
5
+ import { type SubtitlesRequestBuilder } from './subtitles/index.js';
6
+ import { type ThumbnailRequestBuilder } from './thumbnail/index.js';
7
+ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
8
+ /**
9
+ * Builds and executes requests for operations under /videos/{videoId}
10
+ */
11
+ export interface WithVideoItemRequestBuilder extends BaseRequestBuilder<WithVideoItemRequestBuilder> {
12
+ /**
13
+ * The audioTracks property
14
+ */
15
+ get audioTracks(): AudioTracksRequestBuilder;
16
+ /**
17
+ * The chapters property
18
+ */
19
+ get chapters(): ChaptersRequestBuilder;
20
+ /**
21
+ * The deletePath property
22
+ */
23
+ get deletePath(): DeleteRequestBuilder;
24
+ /**
25
+ * The subtitles property
26
+ */
27
+ get subtitles(): SubtitlesRequestBuilder;
28
+ /**
29
+ * The thumbnail property
30
+ */
31
+ get thumbnail(): ThumbnailRequestBuilder;
32
+ /**
33
+ * Retrieve a video by its ID for a specific project.
34
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
35
+ * @returns {Promise<Video>}
36
+ * @throws {ErrorResponse} error when the service returns a 400 status code
37
+ * @throws {ErrorResponse} error when the service returns a 401 status code
38
+ * @throws {ErrorResponse} error when the service returns a 403 status code
39
+ * @throws {ErrorResponse} error when the service returns a 404 status code
40
+ * @throws {ErrorResponse} error when the service returns a 500 status code
41
+ */
42
+ get(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<Video | undefined>;
43
+ /**
44
+ * Retrieve a video by its ID for a specific project.
45
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
46
+ * @returns {RequestInformation}
47
+ */
48
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
49
+ }
50
+ /**
51
+ * Uri template for the request builder.
52
+ */
53
+ export declare const WithVideoItemRequestBuilderUriTemplate = "{+baseurl}/videos/{videoId}";
54
+ /**
55
+ * Metadata for all the navigation properties in the request builder.
56
+ */
57
+ export declare const WithVideoItemRequestBuilderNavigationMetadata: Record<Exclude<keyof WithVideoItemRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
58
+ /**
59
+ * Metadata for all the requests in the request builder.
60
+ */
61
+ export declare const WithVideoItemRequestBuilderRequestsMetadata: RequestsMetadata;
@@ -0,0 +1,63 @@
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
+ // @ts-ignore
9
+ import { AudioTracksRequestBuilderNavigationMetadata, AudioTracksRequestBuilderRequestsMetadata } from './audioTracks/index.js';
10
+ // @ts-ignore
11
+ import { ChaptersRequestBuilderRequestsMetadata } from './chapters/index.js';
12
+ // @ts-ignore
13
+ import { DeleteRequestBuilderRequestsMetadata } from './delete/index.js';
14
+ // @ts-ignore
15
+ import { SubtitlesRequestBuilderNavigationMetadata, SubtitlesRequestBuilderRequestsMetadata } from './subtitles/index.js';
16
+ // @ts-ignore
17
+ import { ThumbnailRequestBuilderRequestsMetadata } from './thumbnail/index.js';
18
+ /**
19
+ * Uri template for the request builder.
20
+ */
21
+ export const WithVideoItemRequestBuilderUriTemplate = "{+baseurl}/videos/{videoId}";
22
+ /**
23
+ * Metadata for all the navigation properties in the request builder.
24
+ */
25
+ export const WithVideoItemRequestBuilderNavigationMetadata = {
26
+ audioTracks: {
27
+ requestsMetadata: AudioTracksRequestBuilderRequestsMetadata,
28
+ navigationMetadata: AudioTracksRequestBuilderNavigationMetadata,
29
+ },
30
+ chapters: {
31
+ requestsMetadata: ChaptersRequestBuilderRequestsMetadata,
32
+ },
33
+ deletePath: {
34
+ requestsMetadata: DeleteRequestBuilderRequestsMetadata,
35
+ },
36
+ subtitles: {
37
+ requestsMetadata: SubtitlesRequestBuilderRequestsMetadata,
38
+ navigationMetadata: SubtitlesRequestBuilderNavigationMetadata,
39
+ },
40
+ thumbnail: {
41
+ requestsMetadata: ThumbnailRequestBuilderRequestsMetadata,
42
+ },
43
+ };
44
+ /**
45
+ * Metadata for all the requests in the request builder.
46
+ */
47
+ export const WithVideoItemRequestBuilderRequestsMetadata = {
48
+ get: {
49
+ uriTemplate: WithVideoItemRequestBuilderUriTemplate,
50
+ responseBodyContentType: "application/json",
51
+ errorMappings: {
52
+ 400: createErrorResponseFromDiscriminatorValue,
53
+ 401: createErrorResponseFromDiscriminatorValue,
54
+ 403: createErrorResponseFromDiscriminatorValue,
55
+ 404: createErrorResponseFromDiscriminatorValue,
56
+ 500: createErrorResponseFromDiscriminatorValue,
57
+ },
58
+ adapterMethodName: "send",
59
+ responseBodyFactory: createVideoFromDiscriminatorValue,
60
+ },
61
+ };
62
+ /* tslint:enable */
63
+ /* eslint-enable */
@@ -0,0 +1,38 @@
1
+ import { type SubtitleDelete } from '../../../models/index.js';
2
+ import { type WithLang_codeItemRequestBuilder } from './item/index.js';
3
+ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
4
+ /**
5
+ * Builds and executes requests for operations under /videos/{videoId}/subtitles
6
+ */
7
+ export interface SubtitlesRequestBuilder extends BaseRequestBuilder<SubtitlesRequestBuilder> {
8
+ /**
9
+ * Gets an item from the rixlSdk.videos.item.subtitles.item collection
10
+ * @param lang_code Language Code (BCP 47)
11
+ * @returns {WithLang_codeItemRequestBuilder}
12
+ */
13
+ byLang_code(lang_code: string): WithLang_codeItemRequestBuilder;
14
+ /**
15
+ * Remove all subtitles from a video using API key authentication
16
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
17
+ * @returns {Promise<SubtitleDelete>}
18
+ */
19
+ delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<SubtitleDelete | undefined>;
20
+ /**
21
+ * Remove all subtitles from a video using API key authentication
22
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
23
+ * @returns {RequestInformation}
24
+ */
25
+ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
26
+ }
27
+ /**
28
+ * Uri template for the request builder.
29
+ */
30
+ export declare const SubtitlesRequestBuilderUriTemplate = "{+baseurl}/videos/{videoId}/subtitles";
31
+ /**
32
+ * Metadata for all the navigation properties in the request builder.
33
+ */
34
+ export declare const SubtitlesRequestBuilderNavigationMetadata: Record<Exclude<keyof SubtitlesRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
35
+ /**
36
+ * Metadata for all the requests in the request builder.
37
+ */
38
+ export declare const SubtitlesRequestBuilderRequestsMetadata: RequestsMetadata;
@@ -0,0 +1,33 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createSubtitleDeleteFromDiscriminatorValue } from '../../../models/index.js';
6
+ // @ts-ignore
7
+ import { WithLang_codeItemRequestBuilderRequestsMetadata } from './item/index.js';
8
+ /**
9
+ * Uri template for the request builder.
10
+ */
11
+ export const SubtitlesRequestBuilderUriTemplate = "{+baseurl}/videos/{videoId}/subtitles";
12
+ /**
13
+ * Metadata for all the navigation properties in the request builder.
14
+ */
15
+ export const SubtitlesRequestBuilderNavigationMetadata = {
16
+ byLang_code: {
17
+ requestsMetadata: WithLang_codeItemRequestBuilderRequestsMetadata,
18
+ pathParametersMappings: ["lang_code"],
19
+ },
20
+ };
21
+ /**
22
+ * Metadata for all the requests in the request builder.
23
+ */
24
+ export const SubtitlesRequestBuilderRequestsMetadata = {
25
+ delete: {
26
+ uriTemplate: SubtitlesRequestBuilderUriTemplate,
27
+ responseBodyContentType: "application/json",
28
+ adapterMethodName: "send",
29
+ responseBodyFactory: createSubtitleDeleteFromDiscriminatorValue,
30
+ },
31
+ };
32
+ /* tslint:enable */
33
+ /* eslint-enable */