@prdb/sdk 0.10.0 → 0.11.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/dist/generated/models/index.d.ts +200 -0
- package/dist/generated/models/index.d.ts.map +1 -1
- package/dist/generated/models/index.js +160 -0
- package/dist/generated/models/index.js.map +1 -1
- package/dist/generated/videos/batch/index.d.ts +2 -2
- package/dist/generated/videos/filehashes/batch/index.d.ts +2 -2
- package/dist/generated/videos/filehashes/changes/index.d.ts +3 -3
- package/dist/generated/videos/filehashes/latest/index.d.ts +3 -3
- package/dist/generated/videos/filehashes/lookup/index.d.ts +2 -2
- package/dist/generated/videos/filehashes/unlinked/index.d.ts +3 -3
- package/dist/generated/videos/index.d.ts +3 -3
- package/dist/generated/videos/item/filehashes/index.d.ts +2 -2
- package/dist/generated/videos/item/index.d.ts +2 -2
- package/package.json +1 -1
|
@@ -979,6 +979,12 @@ export declare function createUpdateWantedVideoResponseFromDiscriminatorValue(pa
|
|
|
979
979
|
* @returns {UserIdentityResponse}
|
|
980
980
|
*/
|
|
981
981
|
export declare function createUserIdentityResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
982
|
+
/**
|
|
983
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
984
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
985
|
+
* @returns {VideoCodecCountDto}
|
|
986
|
+
*/
|
|
987
|
+
export declare function createVideoCodecCountDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
982
988
|
/**
|
|
983
989
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
984
990
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -1069,6 +1075,18 @@ export declare function createVideoImageChangeImageDtoFromDiscriminatorValue(par
|
|
|
1069
1075
|
* @returns {VideoImageChangesCursorDto}
|
|
1070
1076
|
*/
|
|
1071
1077
|
export declare function createVideoImageChangesCursorDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
1078
|
+
/**
|
|
1079
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
1080
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
1081
|
+
* @returns {VideoQualityOverviewDto}
|
|
1082
|
+
*/
|
|
1083
|
+
export declare function createVideoQualityOverviewDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
1084
|
+
/**
|
|
1085
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
1086
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
1087
|
+
* @returns {VideoResolutionCountDto}
|
|
1088
|
+
*/
|
|
1089
|
+
export declare function createVideoResolutionCountDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
1072
1090
|
/**
|
|
1073
1091
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
1074
1092
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -1591,6 +1609,12 @@ export declare function deserializeIntoUpdateWantedVideoResponse(updateWantedVid
|
|
|
1591
1609
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
1592
1610
|
*/
|
|
1593
1611
|
export declare function deserializeIntoUserIdentityResponse(userIdentityResponse?: Partial<UserIdentityResponse> | undefined): Record<string, (node: ParseNode) => void>;
|
|
1612
|
+
/**
|
|
1613
|
+
* The deserialization information for the current model
|
|
1614
|
+
* @param VideoCodecCountDto The instance to deserialize into.
|
|
1615
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
1616
|
+
*/
|
|
1617
|
+
export declare function deserializeIntoVideoCodecCountDto(videoCodecCountDto?: Partial<VideoCodecCountDto> | undefined): Record<string, (node: ParseNode) => void>;
|
|
1594
1618
|
/**
|
|
1595
1619
|
* The deserialization information for the current model
|
|
1596
1620
|
* @param VideoDetailActorDto The instance to deserialize into.
|
|
@@ -1681,6 +1705,18 @@ export declare function deserializeIntoVideoImageChangeImageDto(videoImageChange
|
|
|
1681
1705
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
1682
1706
|
*/
|
|
1683
1707
|
export declare function deserializeIntoVideoImageChangesCursorDto(videoImageChangesCursorDto?: Partial<VideoImageChangesCursorDto> | undefined): Record<string, (node: ParseNode) => void>;
|
|
1708
|
+
/**
|
|
1709
|
+
* The deserialization information for the current model
|
|
1710
|
+
* @param VideoQualityOverviewDto The instance to deserialize into.
|
|
1711
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
1712
|
+
*/
|
|
1713
|
+
export declare function deserializeIntoVideoQualityOverviewDto(videoQualityOverviewDto?: Partial<VideoQualityOverviewDto> | undefined): Record<string, (node: ParseNode) => void>;
|
|
1714
|
+
/**
|
|
1715
|
+
* The deserialization information for the current model
|
|
1716
|
+
* @param VideoResolutionCountDto The instance to deserialize into.
|
|
1717
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
1718
|
+
*/
|
|
1719
|
+
export declare function deserializeIntoVideoResolutionCountDto(videoResolutionCountDto?: Partial<VideoResolutionCountDto> | undefined): Record<string, (node: ParseNode) => void>;
|
|
1684
1720
|
/**
|
|
1685
1721
|
* The deserialization information for the current model
|
|
1686
1722
|
* @param VideoSummaryActorDto The instance to deserialize into.
|
|
@@ -3371,6 +3407,13 @@ export declare function serializeUpdateWantedVideoResponse(writer: Serialization
|
|
|
3371
3407
|
* @param writer Serialization writer to use to serialize this model
|
|
3372
3408
|
*/
|
|
3373
3409
|
export declare function serializeUserIdentityResponse(writer: SerializationWriter, userIdentityResponse?: Partial<UserIdentityResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
3410
|
+
/**
|
|
3411
|
+
* Serializes information the current object
|
|
3412
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
3413
|
+
* @param VideoCodecCountDto The instance to serialize from.
|
|
3414
|
+
* @param writer Serialization writer to use to serialize this model
|
|
3415
|
+
*/
|
|
3416
|
+
export declare function serializeVideoCodecCountDto(writer: SerializationWriter, videoCodecCountDto?: Partial<VideoCodecCountDto> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
3374
3417
|
/**
|
|
3375
3418
|
* Serializes information the current object
|
|
3376
3419
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
@@ -3476,6 +3519,20 @@ export declare function serializeVideoImageChangeImageDto(writer: SerializationW
|
|
|
3476
3519
|
* @param writer Serialization writer to use to serialize this model
|
|
3477
3520
|
*/
|
|
3478
3521
|
export declare function serializeVideoImageChangesCursorDto(writer: SerializationWriter, videoImageChangesCursorDto?: Partial<VideoImageChangesCursorDto> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
3522
|
+
/**
|
|
3523
|
+
* Serializes information the current object
|
|
3524
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
3525
|
+
* @param VideoQualityOverviewDto The instance to serialize from.
|
|
3526
|
+
* @param writer Serialization writer to use to serialize this model
|
|
3527
|
+
*/
|
|
3528
|
+
export declare function serializeVideoQualityOverviewDto(writer: SerializationWriter, videoQualityOverviewDto?: Partial<VideoQualityOverviewDto> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
3529
|
+
/**
|
|
3530
|
+
* Serializes information the current object
|
|
3531
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
3532
|
+
* @param VideoResolutionCountDto The instance to serialize from.
|
|
3533
|
+
* @param writer Serialization writer to use to serialize this model
|
|
3534
|
+
*/
|
|
3535
|
+
export declare function serializeVideoResolutionCountDto(writer: SerializationWriter, videoResolutionCountDto?: Partial<VideoResolutionCountDto> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
3479
3536
|
/**
|
|
3480
3537
|
* Serializes information the current object
|
|
3481
3538
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
@@ -3795,6 +3852,19 @@ export interface UserIdentityResponse extends AdditionalDataHolder, Parsable {
|
|
|
3795
3852
|
*/
|
|
3796
3853
|
userHash?: string | null;
|
|
3797
3854
|
}
|
|
3855
|
+
/**
|
|
3856
|
+
* One video codec a video is known in, and how many of its files carry it.
|
|
3857
|
+
*/
|
|
3858
|
+
export interface VideoCodecCountDto extends AdditionalDataHolder, Parsable {
|
|
3859
|
+
/**
|
|
3860
|
+
* Codec name as the probing client reported it, lower-cased ("h264", "hevc", "av1").
|
|
3861
|
+
*/
|
|
3862
|
+
codec?: string | null;
|
|
3863
|
+
/**
|
|
3864
|
+
* How many of the video's files use this codec.
|
|
3865
|
+
*/
|
|
3866
|
+
fileCount?: number | null;
|
|
3867
|
+
}
|
|
3798
3868
|
export interface VideoDetailActorDto extends AdditionalDataHolder, Parsable {
|
|
3799
3869
|
/**
|
|
3800
3870
|
* The birthday property
|
|
@@ -3849,6 +3919,18 @@ export interface VideoDetailDto extends AdditionalDataHolder, Parsable {
|
|
|
3849
3919
|
* The createdAtUtc property
|
|
3850
3920
|
*/
|
|
3851
3921
|
createdAtUtc?: Date | null;
|
|
3922
|
+
/**
|
|
3923
|
+
* How many files the duration was taken over. The spread cannot be read without it — one overtwo files says far less than one over twenty. Null exactly when `durationMs` is null.
|
|
3924
|
+
*/
|
|
3925
|
+
durationFileCount?: number | null;
|
|
3926
|
+
/**
|
|
3927
|
+
* Consensus duration in milliseconds across the files prdb holds for this video, or null whiletoo few independent submitters have reported one. A median, not an average: durations differlegitimately — cuts, with and without an intro, re-encodes with padding — and one shortoutlier would drag an average off the value the real files agree on.
|
|
3928
|
+
*/
|
|
3929
|
+
durationMs?: number | null;
|
|
3930
|
+
/**
|
|
3931
|
+
* How far the files disagree about the duration, in milliseconds (median absolute deviation).Zero means every file agrees; a large value means several versions are in circulation, whichis the more useful of the two statements. Null exactly when `durationMs` is null.
|
|
3932
|
+
*/
|
|
3933
|
+
durationSpreadMs?: number | null;
|
|
3852
3934
|
/**
|
|
3853
3935
|
* The id property
|
|
3854
3936
|
*/
|
|
@@ -3861,6 +3943,10 @@ export interface VideoDetailDto extends AdditionalDataHolder, Parsable {
|
|
|
3861
3943
|
* The preNames property
|
|
3862
3944
|
*/
|
|
3863
3945
|
preNames?: VideoDetailPreNameDto[] | null;
|
|
3946
|
+
/**
|
|
3947
|
+
* What technical shapes a video is known to exist in, counted over the files prdb holds for it.
|
|
3948
|
+
*/
|
|
3949
|
+
qualityOverview?: VideoQualityOverviewDto | null;
|
|
3864
3950
|
/**
|
|
3865
3951
|
* The releaseDate property
|
|
3866
3952
|
*/
|
|
@@ -3952,6 +4038,22 @@ export interface VideoFilehashChangeDto extends AdditionalDataHolder, Parsable {
|
|
|
3952
4038
|
* Current persisted state of a changed video filehash row, including soft-delete fields.
|
|
3953
4039
|
*/
|
|
3954
4040
|
export interface VideoFilehashChangeFilehashDto extends AdditionalDataHolder, Parsable {
|
|
4041
|
+
/**
|
|
4042
|
+
* Channel count of the audio stream.
|
|
4043
|
+
*/
|
|
4044
|
+
audioChannels?: number | null;
|
|
4045
|
+
/**
|
|
4046
|
+
* Codec of the audio stream, lower-cased ("aac", "mp3").
|
|
4047
|
+
*/
|
|
4048
|
+
audioCodec?: string | null;
|
|
4049
|
+
/**
|
|
4050
|
+
* Overall bit rate in bits per second, across all streams.
|
|
4051
|
+
*/
|
|
4052
|
+
bitRate?: number | null;
|
|
4053
|
+
/**
|
|
4054
|
+
* Container as the probe names it. Usually a comma separated list of the formats one demuxer covers ("mov,mp4,m4a,3gp,3g2,mj2"), not a single token.
|
|
4055
|
+
*/
|
|
4056
|
+
containerFormat?: string | null;
|
|
3955
4057
|
/**
|
|
3956
4058
|
* The createdAtUtc property
|
|
3957
4059
|
*/
|
|
@@ -3960,6 +4062,10 @@ export interface VideoFilehashChangeFilehashDto extends AdditionalDataHolder, Pa
|
|
|
3960
4062
|
* Timestamp when the row was soft-deleted, or null when still active.
|
|
3961
4063
|
*/
|
|
3962
4064
|
deletedAtUtc?: Date | null;
|
|
4065
|
+
/**
|
|
4066
|
+
* Duration of this file in milliseconds, as the submitting clients probed it, or null when none reported one.
|
|
4067
|
+
*/
|
|
4068
|
+
durationMs?: number | null;
|
|
3963
4069
|
/**
|
|
3964
4070
|
* Original filename submitted for this filehash record.
|
|
3965
4071
|
*/
|
|
@@ -3968,6 +4074,14 @@ export interface VideoFilehashChangeFilehashDto extends AdditionalDataHolder, Pa
|
|
|
3968
4074
|
* File size in bytes.
|
|
3969
4075
|
*/
|
|
3970
4076
|
filesize?: number | null;
|
|
4077
|
+
/**
|
|
4078
|
+
* Average frame rate as a rational, exactly as it was measured: "24000/1001", never a roundeddecimal. Rounding merges rates that are not the same one, and a variable-rate file carries aper-file average whose large denominator is what marks it as variable rather than as a rate.
|
|
4079
|
+
*/
|
|
4080
|
+
frameRate?: string | null;
|
|
4081
|
+
/**
|
|
4082
|
+
* Height of the video stream in pixels, as stored.
|
|
4083
|
+
*/
|
|
4084
|
+
height?: number | null;
|
|
3971
4085
|
/**
|
|
3972
4086
|
* The id property
|
|
3973
4087
|
*/
|
|
@@ -3996,10 +4110,18 @@ export interface VideoFilehashChangeFilehashDto extends AdditionalDataHolder, Pa
|
|
|
3996
4110
|
* The updatedAtUtc property
|
|
3997
4111
|
*/
|
|
3998
4112
|
updatedAtUtc?: Date | null;
|
|
4113
|
+
/**
|
|
4114
|
+
* Codec of the video stream, lower-cased ("h264", "hevc", "av1").
|
|
4115
|
+
*/
|
|
4116
|
+
videoCodec?: string | null;
|
|
3999
4117
|
/**
|
|
4000
4118
|
* The videoId property
|
|
4001
4119
|
*/
|
|
4002
4120
|
videoId?: Guid | null;
|
|
4121
|
+
/**
|
|
4122
|
+
* Width of the video stream in pixels, as stored. Not necessarily the larger dimension: portrait video is ordinary.
|
|
4123
|
+
*/
|
|
4124
|
+
width?: number | null;
|
|
4003
4125
|
}
|
|
4004
4126
|
/**
|
|
4005
4127
|
* Seek cursor for continuing a video filehash change feed.
|
|
@@ -4015,10 +4137,30 @@ export interface VideoFilehashChangesCursorDto extends AdditionalDataHolder, Par
|
|
|
4015
4137
|
updatedAtUtc?: Date | null;
|
|
4016
4138
|
}
|
|
4017
4139
|
export interface VideoFilehashDto extends AdditionalDataHolder, Parsable {
|
|
4140
|
+
/**
|
|
4141
|
+
* Channel count of the audio stream.
|
|
4142
|
+
*/
|
|
4143
|
+
audioChannels?: number | null;
|
|
4144
|
+
/**
|
|
4145
|
+
* Codec of the audio stream, lower-cased ("aac", "mp3").
|
|
4146
|
+
*/
|
|
4147
|
+
audioCodec?: string | null;
|
|
4148
|
+
/**
|
|
4149
|
+
* Overall bit rate in bits per second, across all streams.
|
|
4150
|
+
*/
|
|
4151
|
+
bitRate?: number | null;
|
|
4152
|
+
/**
|
|
4153
|
+
* Container as the probe names it. Usually a comma separated list of the formats one demuxer covers ("mov,mp4,m4a,3gp,3g2,mj2"), not a single token.
|
|
4154
|
+
*/
|
|
4155
|
+
containerFormat?: string | null;
|
|
4018
4156
|
/**
|
|
4019
4157
|
* The createdAtUtc property
|
|
4020
4158
|
*/
|
|
4021
4159
|
createdAtUtc?: Date | null;
|
|
4160
|
+
/**
|
|
4161
|
+
* Duration of this file in milliseconds, as the submitting clients probed it, or null when none reported one.
|
|
4162
|
+
*/
|
|
4163
|
+
durationMs?: number | null;
|
|
4022
4164
|
/**
|
|
4023
4165
|
* Original filename submitted for this filehash record.
|
|
4024
4166
|
*/
|
|
@@ -4027,6 +4169,14 @@ export interface VideoFilehashDto extends AdditionalDataHolder, Parsable {
|
|
|
4027
4169
|
* File size in bytes.
|
|
4028
4170
|
*/
|
|
4029
4171
|
filesize?: number | null;
|
|
4172
|
+
/**
|
|
4173
|
+
* Average frame rate as a rational, exactly as it was measured: "24000/1001", never a roundeddecimal. Rounding merges rates that are not the same one, and a variable-rate file carries aper-file average whose large denominator is what marks it as variable rather than as a rate.
|
|
4174
|
+
*/
|
|
4175
|
+
frameRate?: string | null;
|
|
4176
|
+
/**
|
|
4177
|
+
* Height of the video stream in pixels, as stored.
|
|
4178
|
+
*/
|
|
4179
|
+
height?: number | null;
|
|
4030
4180
|
/**
|
|
4031
4181
|
* The id property
|
|
4032
4182
|
*/
|
|
@@ -4051,10 +4201,18 @@ export interface VideoFilehashDto extends AdditionalDataHolder, Parsable {
|
|
|
4051
4201
|
* The updatedAtUtc property
|
|
4052
4202
|
*/
|
|
4053
4203
|
updatedAtUtc?: Date | null;
|
|
4204
|
+
/**
|
|
4205
|
+
* Codec of the video stream, lower-cased ("h264", "hevc", "av1").
|
|
4206
|
+
*/
|
|
4207
|
+
videoCodec?: string | null;
|
|
4054
4208
|
/**
|
|
4055
4209
|
* The videoId property
|
|
4056
4210
|
*/
|
|
4057
4211
|
videoId?: Guid | null;
|
|
4212
|
+
/**
|
|
4213
|
+
* Width of the video stream in pixels, as stored. Not necessarily the larger dimension: portrait video is ordinary.
|
|
4214
|
+
*/
|
|
4215
|
+
width?: number | null;
|
|
4058
4216
|
}
|
|
4059
4217
|
export interface VideoFilehashesByVideoIdDto extends AdditionalDataHolder, Parsable {
|
|
4060
4218
|
/**
|
|
@@ -4117,6 +4275,36 @@ export interface VideoImageChangesCursorDto extends AdditionalDataHolder, Parsab
|
|
|
4117
4275
|
*/
|
|
4118
4276
|
updatedAtUtc?: Date | null;
|
|
4119
4277
|
}
|
|
4278
|
+
/**
|
|
4279
|
+
* What technical shapes a video is known to exist in, counted over the files prdb holds for it.
|
|
4280
|
+
*/
|
|
4281
|
+
export interface VideoQualityOverviewDto extends AdditionalDataHolder, Parsable {
|
|
4282
|
+
/**
|
|
4283
|
+
* Resolutions the video is known in, most files first. Width and height are as stored, neverreordered — a portrait file has the smaller width, and treating the larger side as "theresolution" is wrong for a substantial share of real libraries.
|
|
4284
|
+
*/
|
|
4285
|
+
resolutions?: VideoResolutionCountDto[] | null;
|
|
4286
|
+
/**
|
|
4287
|
+
* Video codecs the video is known in, most files first.
|
|
4288
|
+
*/
|
|
4289
|
+
videoCodecs?: VideoCodecCountDto[] | null;
|
|
4290
|
+
}
|
|
4291
|
+
/**
|
|
4292
|
+
* One resolution a video is known in, and how many of its files carry it.
|
|
4293
|
+
*/
|
|
4294
|
+
export interface VideoResolutionCountDto extends AdditionalDataHolder, Parsable {
|
|
4295
|
+
/**
|
|
4296
|
+
* How many of the video's files are in this resolution.
|
|
4297
|
+
*/
|
|
4298
|
+
fileCount?: number | null;
|
|
4299
|
+
/**
|
|
4300
|
+
* Height in pixels, as stored.
|
|
4301
|
+
*/
|
|
4302
|
+
height?: number | null;
|
|
4303
|
+
/**
|
|
4304
|
+
* Width in pixels, as stored.
|
|
4305
|
+
*/
|
|
4306
|
+
width?: number | null;
|
|
4307
|
+
}
|
|
4120
4308
|
/**
|
|
4121
4309
|
* Minimal actor summary included in a video list item.
|
|
4122
4310
|
*/
|
|
@@ -4142,6 +4330,18 @@ export interface VideoSummaryDto extends AdditionalDataHolder, Parsable {
|
|
|
4142
4330
|
* Timestamp when the video was created in PRDB.
|
|
4143
4331
|
*/
|
|
4144
4332
|
createdAtUtc?: Date | null;
|
|
4333
|
+
/**
|
|
4334
|
+
* How many files the duration was taken over, without which the spread cannot be read.
|
|
4335
|
+
*/
|
|
4336
|
+
durationFileCount?: number | null;
|
|
4337
|
+
/**
|
|
4338
|
+
* Consensus duration in milliseconds across the files prdb holds for this video, or null whiletoo few independent submitters have reported one. A median over the video's files, so atrailer submitted under the same video does not move it.
|
|
4339
|
+
*/
|
|
4340
|
+
durationMs?: number | null;
|
|
4341
|
+
/**
|
|
4342
|
+
* How far those files disagree about the duration, in milliseconds (median absolutedeviation). Zero means they agree; a large value means several versions are in circulation.
|
|
4343
|
+
*/
|
|
4344
|
+
durationSpreadMs?: number | null;
|
|
4145
4345
|
/**
|
|
4146
4346
|
* Unique identifier of the video.
|
|
4147
4347
|
*/
|