@prdb/sdk 0.4.0 → 0.6.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 (34) hide show
  1. package/README.md +72 -0
  2. package/dist/generated/models/index.d.ts +437 -0
  3. package/dist/generated/models/index.d.ts.map +1 -1
  4. package/dist/generated/models/index.js +498 -0
  5. package/dist/generated/models/index.js.map +1 -1
  6. package/dist/generated/sites/index.d.ts +4 -3
  7. package/dist/generated/sites/index.d.ts.map +1 -1
  8. package/dist/generated/sites/index.js +1 -0
  9. package/dist/generated/sites/index.js.map +1 -1
  10. package/dist/generated/videos/filehashSubmissions/index.d.ts +35 -0
  11. package/dist/generated/videos/filehashSubmissions/index.d.ts.map +1 -0
  12. package/dist/generated/videos/filehashSubmissions/index.js +33 -0
  13. package/dist/generated/videos/filehashSubmissions/index.js.map +1 -0
  14. package/dist/generated/videos/identify/index.d.ts +35 -0
  15. package/dist/generated/videos/identify/index.d.ts.map +1 -0
  16. package/dist/generated/videos/identify/index.js +33 -0
  17. package/dist/generated/videos/identify/index.js.map +1 -0
  18. package/dist/generated/videos/index.d.ts +10 -0
  19. package/dist/generated/videos/index.d.ts.map +1 -1
  20. package/dist/generated/videos/index.js +10 -0
  21. package/dist/generated/videos/index.js.map +1 -1
  22. package/dist/generated/wantedVideos/fulfillments/index.d.ts +35 -0
  23. package/dist/generated/wantedVideos/fulfillments/index.d.ts.map +1 -0
  24. package/dist/generated/wantedVideos/fulfillments/index.js +33 -0
  25. package/dist/generated/wantedVideos/fulfillments/index.js.map +1 -0
  26. package/dist/generated/wantedVideos/index.d.ts +5 -0
  27. package/dist/generated/wantedVideos/index.d.ts.map +1 -1
  28. package/dist/generated/wantedVideos/index.js +5 -0
  29. package/dist/generated/wantedVideos/index.js.map +1 -1
  30. package/dist/index.d.ts +57 -0
  31. package/dist/index.d.ts.map +1 -1
  32. package/dist/index.js +82 -7
  33. package/dist/index.js.map +1 -1
  34. package/package.json +1 -1
package/README.md CHANGED
@@ -119,6 +119,78 @@ Kiota's own native response handler cannot serve this: it surfaces the raw
119
119
  comes back `undefined`. The option is the other half — the call returns its
120
120
  model as usual, and the status is on the option afterwards.
121
121
 
122
+ ## Reading the rate limit
123
+
124
+ Every metered response carries the rate limit it was counted against, so you can
125
+ pace off the answers you are already getting instead of spending a request on
126
+ `GET /rate-limit` to ask.
127
+
128
+ ```ts
129
+ import { RateLimitOption } from "@prdb/sdk";
130
+
131
+ const limits = new RateLimitOption();
132
+
133
+ const sites = await client.sites.get({ options: [limits] });
134
+
135
+ if (limits.hour && limits.hour.remaining < 50) {
136
+ // Slow down; limits.hour.resetInSeconds until a slot frees up.
137
+ }
138
+ ```
139
+
140
+ `hour` and `month` are each a `RateLimitWindow` with `limit`, `remaining` and
141
+ `resetInSeconds`, or `undefined`.
142
+
143
+ `resetInSeconds` is the wait until the oldest request leaves the sliding window
144
+ and frees **one** slot — not a timestamp, and not the time until the whole
145
+ window resets. It is the same quantity `resetsInSeconds` carries on
146
+ `GET /rate-limit`.
147
+
148
+ `undefined` is an answer rather than a gap. A response the API did not meter —
149
+ `401`, `403`, `503`, and `GET /rate-limit` itself — carries no headers at all,
150
+ and a `429` carries only the window that refused the request, so exactly one of
151
+ the two being set is normal. A rejected call records too, so the reading is
152
+ there for a caller that catches the error.
153
+
154
+ Kiota can also surface response headers itself, through
155
+ `HeadersInspectionOptions`, as raw multi-valued strings. This option is the
156
+ typed reading of the six that matter.
157
+
158
+ ## Conditional requests
159
+
160
+ `GET /sites` returns a weak `ETag` covering the matched rows and the paging,
161
+ sorting and search parameters. Send it back as `If-None-Match` and the endpoint
162
+ answers **304 Not Modified** with no body while nothing has changed — the whole
163
+ site list fits in one request at `pageSize: 1000`, so this is worth doing.
164
+
165
+ ```ts
166
+ import { HeadersInspectionOptions } from "@microsoft/kiota-http-fetchlibrary";
167
+ import { ResponseStatusOption } from "@prdb/sdk";
168
+
169
+ // First call: read the validator off the response.
170
+ const inspect = new HeadersInspectionOptions({ inspectResponseHeaders: true });
171
+ await client.sites.get({ options: [inspect] });
172
+ const [etag] = inspect.getResponseHeaders().get("etag") ?? [];
173
+
174
+ // Later: ask only for what changed.
175
+ const status = new ResponseStatusOption();
176
+ const sites = await client.sites.get({
177
+ headers: { "If-None-Match": etag },
178
+ options: [status],
179
+ });
180
+
181
+ if (status.statusCode === 304) {
182
+ // Nothing changed; keep the copy you already have.
183
+ }
184
+ ```
185
+
186
+ A `304` returns `undefined` from the typed call rather than rejecting.
187
+ `undefined` alone does not distinguish "not modified" from "no rows", so pass a
188
+ `ResponseStatusOption` when you need to tell them apart.
189
+
190
+ One wrinkle from the API side: the shared read-only cache does not vary by
191
+ `If-None-Match`, so a request that hits it is answered `200` with a body even
192
+ when your validator still matches. That is expected rather than an error.
193
+
122
194
  Use one instance per call. It is written when the response arrives, so sharing
123
195
  one across concurrent calls means whichever finishes last wins.
124
196
 
@@ -703,6 +703,30 @@ export declare function createFavoriteSiteChangesCursorDtoFromDiscriminatorValue
703
703
  * @returns {FavoriteSiteSummaryDto}
704
704
  */
705
705
  export declare function createFavoriteSiteSummaryDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
706
+ /**
707
+ * Creates a new instance of the appropriate class based on discriminator value
708
+ * @param parseNode The parse node to use to read the discriminator value and create the object
709
+ * @returns {FulfillWantedVideoItem}
710
+ */
711
+ export declare function createFulfillWantedVideoItemFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
712
+ /**
713
+ * Creates a new instance of the appropriate class based on discriminator value
714
+ * @param parseNode The parse node to use to read the discriminator value and create the object
715
+ * @returns {FulfillWantedVideoResultDto}
716
+ */
717
+ export declare function createFulfillWantedVideoResultDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
718
+ /**
719
+ * Creates a new instance of the appropriate class based on discriminator value
720
+ * @param parseNode The parse node to use to read the discriminator value and create the object
721
+ * @returns {FulfillWantedVideosBatchRequest}
722
+ */
723
+ export declare function createFulfillWantedVideosBatchRequestFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
724
+ /**
725
+ * Creates a new instance of the appropriate class based on discriminator value
726
+ * @param parseNode The parse node to use to read the discriminator value and create the object
727
+ * @returns {FulfillWantedVideosBatchResponse}
728
+ */
729
+ export declare function createFulfillWantedVideosBatchResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
706
730
  /**
707
731
  * Creates a new instance of the appropriate class based on discriminator value
708
732
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -781,6 +805,36 @@ export declare function createGetVideoUserImageChangesResponseFromDiscriminatorV
781
805
  * @returns {GetWantedVideoChangesResponse}
782
806
  */
783
807
  export declare function createGetWantedVideoChangesResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
808
+ /**
809
+ * Creates a new instance of the appropriate class based on discriminator value
810
+ * @param parseNode The parse node to use to read the discriminator value and create the object
811
+ * @returns {IdentifySiteDto}
812
+ */
813
+ export declare function createIdentifySiteDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
814
+ /**
815
+ * Creates a new instance of the appropriate class based on discriminator value
816
+ * @param parseNode The parse node to use to read the discriminator value and create the object
817
+ * @returns {IdentifyVideoFileDto}
818
+ */
819
+ export declare function createIdentifyVideoFileDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
820
+ /**
821
+ * Creates a new instance of the appropriate class based on discriminator value
822
+ * @param parseNode The parse node to use to read the discriminator value and create the object
823
+ * @returns {IdentifyVideoResultDto}
824
+ */
825
+ export declare function createIdentifyVideoResultDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
826
+ /**
827
+ * Creates a new instance of the appropriate class based on discriminator value
828
+ * @param parseNode The parse node to use to read the discriminator value and create the object
829
+ * @returns {IdentifyVideosRequest}
830
+ */
831
+ export declare function createIdentifyVideosRequestFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
832
+ /**
833
+ * Creates a new instance of the appropriate class based on discriminator value
834
+ * @param parseNode The parse node to use to read the discriminator value and create the object
835
+ * @returns {IdentifyVideosResponse}
836
+ */
837
+ export declare function createIdentifyVideosResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
784
838
  /**
785
839
  * Creates a new instance of the appropriate class based on discriminator value
786
840
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -967,6 +1021,30 @@ export declare function createSearchPreDbByVideoResponseFromDiscriminatorValue(p
967
1021
  * @returns {SiteSummaryDto}
968
1022
  */
969
1023
  export declare function createSiteSummaryDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
1024
+ /**
1025
+ * Creates a new instance of the appropriate class based on discriminator value
1026
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1027
+ * @returns {SubmitVideoFilehashesRequest}
1028
+ */
1029
+ export declare function createSubmitVideoFilehashesRequestFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
1030
+ /**
1031
+ * Creates a new instance of the appropriate class based on discriminator value
1032
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1033
+ * @returns {SubmitVideoFilehashesResponse}
1034
+ */
1035
+ export declare function createSubmitVideoFilehashesResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
1036
+ /**
1037
+ * Creates a new instance of the appropriate class based on discriminator value
1038
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1039
+ * @returns {SubmitVideoFilehashItem}
1040
+ */
1041
+ export declare function createSubmitVideoFilehashItemFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
1042
+ /**
1043
+ * Creates a new instance of the appropriate class based on discriminator value
1044
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1045
+ * @returns {SubmitVideoFilehashResultDto}
1046
+ */
1047
+ export declare function createSubmitVideoFilehashResultDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
970
1048
  /**
971
1049
  * Creates a new instance of the appropriate class based on discriminator value
972
1050
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -1303,6 +1381,30 @@ export declare function deserializeIntoFavoriteSiteChangesCursorDto(favoriteSite
1303
1381
  * @returns {Record<string, (node: ParseNode) => void>}
1304
1382
  */
1305
1383
  export declare function deserializeIntoFavoriteSiteSummaryDto(favoriteSiteSummaryDto?: Partial<FavoriteSiteSummaryDto> | undefined): Record<string, (node: ParseNode) => void>;
1384
+ /**
1385
+ * The deserialization information for the current model
1386
+ * @param FulfillWantedVideoItem The instance to deserialize into.
1387
+ * @returns {Record<string, (node: ParseNode) => void>}
1388
+ */
1389
+ export declare function deserializeIntoFulfillWantedVideoItem(fulfillWantedVideoItem?: Partial<FulfillWantedVideoItem> | undefined): Record<string, (node: ParseNode) => void>;
1390
+ /**
1391
+ * The deserialization information for the current model
1392
+ * @param FulfillWantedVideoResultDto The instance to deserialize into.
1393
+ * @returns {Record<string, (node: ParseNode) => void>}
1394
+ */
1395
+ export declare function deserializeIntoFulfillWantedVideoResultDto(fulfillWantedVideoResultDto?: Partial<FulfillWantedVideoResultDto> | undefined): Record<string, (node: ParseNode) => void>;
1396
+ /**
1397
+ * The deserialization information for the current model
1398
+ * @param FulfillWantedVideosBatchRequest The instance to deserialize into.
1399
+ * @returns {Record<string, (node: ParseNode) => void>}
1400
+ */
1401
+ export declare function deserializeIntoFulfillWantedVideosBatchRequest(fulfillWantedVideosBatchRequest?: Partial<FulfillWantedVideosBatchRequest> | undefined): Record<string, (node: ParseNode) => void>;
1402
+ /**
1403
+ * The deserialization information for the current model
1404
+ * @param FulfillWantedVideosBatchResponse The instance to deserialize into.
1405
+ * @returns {Record<string, (node: ParseNode) => void>}
1406
+ */
1407
+ export declare function deserializeIntoFulfillWantedVideosBatchResponse(fulfillWantedVideosBatchResponse?: Partial<FulfillWantedVideosBatchResponse> | undefined): Record<string, (node: ParseNode) => void>;
1306
1408
  /**
1307
1409
  * The deserialization information for the current model
1308
1410
  * @param GetActorChangesResponse The instance to deserialize into.
@@ -1381,6 +1483,36 @@ export declare function deserializeIntoGetVideoUserImageChangesResponse(getVideo
1381
1483
  * @returns {Record<string, (node: ParseNode) => void>}
1382
1484
  */
1383
1485
  export declare function deserializeIntoGetWantedVideoChangesResponse(getWantedVideoChangesResponse?: Partial<GetWantedVideoChangesResponse> | undefined): Record<string, (node: ParseNode) => void>;
1486
+ /**
1487
+ * The deserialization information for the current model
1488
+ * @param IdentifySiteDto The instance to deserialize into.
1489
+ * @returns {Record<string, (node: ParseNode) => void>}
1490
+ */
1491
+ export declare function deserializeIntoIdentifySiteDto(identifySiteDto?: Partial<IdentifySiteDto> | undefined): Record<string, (node: ParseNode) => void>;
1492
+ /**
1493
+ * The deserialization information for the current model
1494
+ * @param IdentifyVideoFileDto The instance to deserialize into.
1495
+ * @returns {Record<string, (node: ParseNode) => void>}
1496
+ */
1497
+ export declare function deserializeIntoIdentifyVideoFileDto(identifyVideoFileDto?: Partial<IdentifyVideoFileDto> | undefined): Record<string, (node: ParseNode) => void>;
1498
+ /**
1499
+ * The deserialization information for the current model
1500
+ * @param IdentifyVideoResultDto The instance to deserialize into.
1501
+ * @returns {Record<string, (node: ParseNode) => void>}
1502
+ */
1503
+ export declare function deserializeIntoIdentifyVideoResultDto(identifyVideoResultDto?: Partial<IdentifyVideoResultDto> | undefined): Record<string, (node: ParseNode) => void>;
1504
+ /**
1505
+ * The deserialization information for the current model
1506
+ * @param IdentifyVideosRequest The instance to deserialize into.
1507
+ * @returns {Record<string, (node: ParseNode) => void>}
1508
+ */
1509
+ export declare function deserializeIntoIdentifyVideosRequest(identifyVideosRequest?: Partial<IdentifyVideosRequest> | undefined): Record<string, (node: ParseNode) => void>;
1510
+ /**
1511
+ * The deserialization information for the current model
1512
+ * @param IdentifyVideosResponse The instance to deserialize into.
1513
+ * @returns {Record<string, (node: ParseNode) => void>}
1514
+ */
1515
+ export declare function deserializeIntoIdentifyVideosResponse(identifyVideosResponse?: Partial<IdentifyVideosResponse> | undefined): Record<string, (node: ParseNode) => void>;
1384
1516
  /**
1385
1517
  * The deserialization information for the current model
1386
1518
  * @param IndexerFilehashChangeDto The instance to deserialize into.
@@ -1567,6 +1699,30 @@ export declare function deserializeIntoSearchPreDbByVideoResponse(searchPreDbByV
1567
1699
  * @returns {Record<string, (node: ParseNode) => void>}
1568
1700
  */
1569
1701
  export declare function deserializeIntoSiteSummaryDto(siteSummaryDto?: Partial<SiteSummaryDto> | undefined): Record<string, (node: ParseNode) => void>;
1702
+ /**
1703
+ * The deserialization information for the current model
1704
+ * @param SubmitVideoFilehashesRequest The instance to deserialize into.
1705
+ * @returns {Record<string, (node: ParseNode) => void>}
1706
+ */
1707
+ export declare function deserializeIntoSubmitVideoFilehashesRequest(submitVideoFilehashesRequest?: Partial<SubmitVideoFilehashesRequest> | undefined): Record<string, (node: ParseNode) => void>;
1708
+ /**
1709
+ * The deserialization information for the current model
1710
+ * @param SubmitVideoFilehashesResponse The instance to deserialize into.
1711
+ * @returns {Record<string, (node: ParseNode) => void>}
1712
+ */
1713
+ export declare function deserializeIntoSubmitVideoFilehashesResponse(submitVideoFilehashesResponse?: Partial<SubmitVideoFilehashesResponse> | undefined): Record<string, (node: ParseNode) => void>;
1714
+ /**
1715
+ * The deserialization information for the current model
1716
+ * @param SubmitVideoFilehashItem The instance to deserialize into.
1717
+ * @returns {Record<string, (node: ParseNode) => void>}
1718
+ */
1719
+ export declare function deserializeIntoSubmitVideoFilehashItem(submitVideoFilehashItem?: Partial<SubmitVideoFilehashItem> | undefined): Record<string, (node: ParseNode) => void>;
1720
+ /**
1721
+ * The deserialization information for the current model
1722
+ * @param SubmitVideoFilehashResultDto The instance to deserialize into.
1723
+ * @returns {Record<string, (node: ParseNode) => void>}
1724
+ */
1725
+ export declare function deserializeIntoSubmitVideoFilehashResultDto(submitVideoFilehashResultDto?: Partial<SubmitVideoFilehashResultDto> | undefined): Record<string, (node: ParseNode) => void>;
1570
1726
  /**
1571
1727
  * The deserialization information for the current model
1572
1728
  * @param SubmitVideoUserImageResponse The instance to deserialize into.
@@ -1987,6 +2143,54 @@ export interface FavoriteSiteSummaryDto extends AdditionalDataHolder, Parsable {
1987
2143
  */
1988
2144
  url?: string | null;
1989
2145
  }
2146
+ export interface FulfillWantedVideoItem extends AdditionalDataHolder, Parsable {
2147
+ /**
2148
+ * The fulfilledAtUtc property
2149
+ */
2150
+ fulfilledAtUtc?: Date | null;
2151
+ /**
2152
+ * The fulfilledInQuality property
2153
+ */
2154
+ fulfilledInQuality?: number | null;
2155
+ /**
2156
+ * The fulfillmentByApp property
2157
+ */
2158
+ fulfillmentByApp?: number | null;
2159
+ /**
2160
+ * The fulfillmentExternalId property
2161
+ */
2162
+ fulfillmentExternalId?: string | null;
2163
+ /**
2164
+ * The isFulfilled property
2165
+ */
2166
+ isFulfilled?: boolean | null;
2167
+ /**
2168
+ * The videoId property
2169
+ */
2170
+ videoId?: Guid | null;
2171
+ }
2172
+ export interface FulfillWantedVideoResultDto extends AdditionalDataHolder, Parsable {
2173
+ /**
2174
+ * Known values: Updated (0), Unchanged (1), NotWanted (2), NotFound (3).
2175
+ */
2176
+ outcome?: number | null;
2177
+ /**
2178
+ * The videoId property
2179
+ */
2180
+ videoId?: Guid | null;
2181
+ }
2182
+ export interface FulfillWantedVideosBatchRequest extends AdditionalDataHolder, Parsable {
2183
+ /**
2184
+ * The items property
2185
+ */
2186
+ items?: FulfillWantedVideoItem[] | null;
2187
+ }
2188
+ export interface FulfillWantedVideosBatchResponse extends AdditionalDataHolder, Parsable {
2189
+ /**
2190
+ * The results property
2191
+ */
2192
+ results?: FulfillWantedVideoResultDto[] | null;
2193
+ }
1990
2194
  export interface GetActorChangesResponse extends AdditionalDataHolder, Parsable {
1991
2195
  /**
1992
2196
  * The hasMore property
@@ -2193,6 +2397,88 @@ export interface GetWantedVideoChangesResponse extends AdditionalDataHolder, Par
2193
2397
  */
2194
2398
  serverTimeUtc?: Date | null;
2195
2399
  }
2400
+ export interface IdentifySiteDto extends AdditionalDataHolder, Parsable {
2401
+ /**
2402
+ * The id property
2403
+ */
2404
+ id?: Guid | null;
2405
+ /**
2406
+ * The title property
2407
+ */
2408
+ title?: string | null;
2409
+ /**
2410
+ * The url property
2411
+ */
2412
+ url?: string | null;
2413
+ }
2414
+ export interface IdentifyVideoFileDto extends AdditionalDataHolder, Parsable {
2415
+ /**
2416
+ * The filename property
2417
+ */
2418
+ filename?: string | null;
2419
+ /**
2420
+ * The filesize property
2421
+ */
2422
+ filesize?: number | null;
2423
+ /**
2424
+ * The osHash property
2425
+ */
2426
+ osHash?: string | null;
2427
+ /**
2428
+ * The pHash property
2429
+ */
2430
+ pHash?: string | null;
2431
+ /**
2432
+ * The ref property
2433
+ */
2434
+ ref?: string | null;
2435
+ }
2436
+ export interface IdentifyVideoResultDto extends AdditionalDataHolder, Parsable {
2437
+ /**
2438
+ * The candidates property
2439
+ */
2440
+ candidates?: Guid[] | null;
2441
+ /**
2442
+ * Known values: None (0), Partial (1), Probable (2), Strong (3), Exact (4), Ambiguous (5).
2443
+ */
2444
+ confidence?: number | null;
2445
+ /**
2446
+ * The matchedBy property
2447
+ */
2448
+ matchedBy?: number | null;
2449
+ /**
2450
+ * The ref property
2451
+ */
2452
+ ref?: string | null;
2453
+ /**
2454
+ * The site property
2455
+ */
2456
+ site?: IdentifySiteDto | null;
2457
+ /**
2458
+ * The video property
2459
+ */
2460
+ video?: VideoDetailDto | null;
2461
+ /**
2462
+ * The videoId property
2463
+ */
2464
+ videoId?: Guid | null;
2465
+ }
2466
+ export interface IdentifyVideosRequest extends AdditionalDataHolder, Parsable {
2467
+ /**
2468
+ * The files property
2469
+ */
2470
+ files?: IdentifyVideoFileDto[] | null;
2471
+ /**
2472
+ * The includeVideoDetails property
2473
+ */
2474
+ includeVideoDetails?: boolean | null;
2475
+ }
2476
+ export interface IdentifyVideosResponse extends AdditionalDataHolder, Parsable {
2477
+ /**
2478
+ * The results property
2479
+ */
2480
+ results?: IdentifyVideoResultDto[] | null;
2481
+ }
2196
2482
  export interface IndexerFilehashChangeDto extends AdditionalDataHolder, Parsable {
2197
2483
  /**
2198
2484
  * The eventType property
@@ -3035,6 +3321,34 @@ export declare function serializeFavoriteSiteChangesCursorDto(writer: Serializat
3035
3321
  * @param writer Serialization writer to use to serialize this model
3036
3322
  */
3037
3323
  export declare function serializeFavoriteSiteSummaryDto(writer: SerializationWriter, favoriteSiteSummaryDto?: Partial<FavoriteSiteSummaryDto> | undefined | null, isSerializingDerivedType?: boolean): void;
3324
+ /**
3325
+ * Serializes information the current object
3326
+ * @param FulfillWantedVideoItem The instance to serialize from.
3327
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
3328
+ * @param writer Serialization writer to use to serialize this model
3329
+ */
3330
+ export declare function serializeFulfillWantedVideoItem(writer: SerializationWriter, fulfillWantedVideoItem?: Partial<FulfillWantedVideoItem> | undefined | null, isSerializingDerivedType?: boolean): void;
3331
+ /**
3332
+ * Serializes information the current object
3333
+ * @param FulfillWantedVideoResultDto The instance to serialize from.
3334
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
3335
+ * @param writer Serialization writer to use to serialize this model
3336
+ */
3337
+ export declare function serializeFulfillWantedVideoResultDto(writer: SerializationWriter, fulfillWantedVideoResultDto?: Partial<FulfillWantedVideoResultDto> | undefined | null, isSerializingDerivedType?: boolean): void;
3338
+ /**
3339
+ * Serializes information the current object
3340
+ * @param FulfillWantedVideosBatchRequest The instance to serialize from.
3341
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
3342
+ * @param writer Serialization writer to use to serialize this model
3343
+ */
3344
+ export declare function serializeFulfillWantedVideosBatchRequest(writer: SerializationWriter, fulfillWantedVideosBatchRequest?: Partial<FulfillWantedVideosBatchRequest> | undefined | null, isSerializingDerivedType?: boolean): void;
3345
+ /**
3346
+ * Serializes information the current object
3347
+ * @param FulfillWantedVideosBatchResponse The instance to serialize from.
3348
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
3349
+ * @param writer Serialization writer to use to serialize this model
3350
+ */
3351
+ export declare function serializeFulfillWantedVideosBatchResponse(writer: SerializationWriter, fulfillWantedVideosBatchResponse?: Partial<FulfillWantedVideosBatchResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
3038
3352
  /**
3039
3353
  * Serializes information the current object
3040
3354
  * @param GetActorChangesResponse The instance to serialize from.
@@ -3126,6 +3440,41 @@ export declare function serializeGetVideoUserImageChangesResponse(writer: Serial
3126
3440
  * @param writer Serialization writer to use to serialize this model
3127
3441
  */
3128
3442
  export declare function serializeGetWantedVideoChangesResponse(writer: SerializationWriter, getWantedVideoChangesResponse?: Partial<GetWantedVideoChangesResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
3443
+ /**
3444
+ * Serializes information the current object
3445
+ * @param IdentifySiteDto The instance to serialize from.
3446
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
3447
+ * @param writer Serialization writer to use to serialize this model
3448
+ */
3449
+ export declare function serializeIdentifySiteDto(writer: SerializationWriter, identifySiteDto?: Partial<IdentifySiteDto> | undefined | null, isSerializingDerivedType?: boolean): void;
3450
+ /**
3451
+ * Serializes information the current object
3452
+ * @param IdentifyVideoFileDto The instance to serialize from.
3453
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
3454
+ * @param writer Serialization writer to use to serialize this model
3455
+ */
3456
+ export declare function serializeIdentifyVideoFileDto(writer: SerializationWriter, identifyVideoFileDto?: Partial<IdentifyVideoFileDto> | undefined | null, isSerializingDerivedType?: boolean): void;
3457
+ /**
3458
+ * Serializes information the current object
3459
+ * @param IdentifyVideoResultDto The instance to serialize from.
3460
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
3461
+ * @param writer Serialization writer to use to serialize this model
3462
+ */
3463
+ export declare function serializeIdentifyVideoResultDto(writer: SerializationWriter, identifyVideoResultDto?: Partial<IdentifyVideoResultDto> | undefined | null, isSerializingDerivedType?: boolean): void;
3464
+ /**
3465
+ * Serializes information the current object
3466
+ * @param IdentifyVideosRequest The instance to serialize from.
3467
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
3468
+ * @param writer Serialization writer to use to serialize this model
3469
+ */
3470
+ export declare function serializeIdentifyVideosRequest(writer: SerializationWriter, identifyVideosRequest?: Partial<IdentifyVideosRequest> | undefined | null, isSerializingDerivedType?: boolean): void;
3471
+ /**
3472
+ * Serializes information the current object
3473
+ * @param IdentifyVideosResponse The instance to serialize from.
3474
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
3475
+ * @param writer Serialization writer to use to serialize this model
3476
+ */
3477
+ export declare function serializeIdentifyVideosResponse(writer: SerializationWriter, identifyVideosResponse?: Partial<IdentifyVideosResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
3129
3478
  /**
3130
3479
  * Serializes information the current object
3131
3480
  * @param IndexerFilehashChangeDto The instance to serialize from.
@@ -3343,6 +3692,34 @@ export declare function serializeSearchPreDbByVideoResponse(writer: Serializatio
3343
3692
  * @param writer Serialization writer to use to serialize this model
3344
3693
  */
3345
3694
  export declare function serializeSiteSummaryDto(writer: SerializationWriter, siteSummaryDto?: Partial<SiteSummaryDto> | undefined | null, isSerializingDerivedType?: boolean): void;
3695
+ /**
3696
+ * Serializes information the current object
3697
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
3698
+ * @param SubmitVideoFilehashesRequest The instance to serialize from.
3699
+ * @param writer Serialization writer to use to serialize this model
3700
+ */
3701
+ export declare function serializeSubmitVideoFilehashesRequest(writer: SerializationWriter, submitVideoFilehashesRequest?: Partial<SubmitVideoFilehashesRequest> | undefined | null, isSerializingDerivedType?: boolean): void;
3702
+ /**
3703
+ * Serializes information the current object
3704
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
3705
+ * @param SubmitVideoFilehashesResponse The instance to serialize from.
3706
+ * @param writer Serialization writer to use to serialize this model
3707
+ */
3708
+ export declare function serializeSubmitVideoFilehashesResponse(writer: SerializationWriter, submitVideoFilehashesResponse?: Partial<SubmitVideoFilehashesResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
3709
+ /**
3710
+ * Serializes information the current object
3711
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
3712
+ * @param SubmitVideoFilehashItem The instance to serialize from.
3713
+ * @param writer Serialization writer to use to serialize this model
3714
+ */
3715
+ export declare function serializeSubmitVideoFilehashItem(writer: SerializationWriter, submitVideoFilehashItem?: Partial<SubmitVideoFilehashItem> | undefined | null, isSerializingDerivedType?: boolean): void;
3716
+ /**
3717
+ * Serializes information the current object
3718
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
3719
+ * @param SubmitVideoFilehashResultDto The instance to serialize from.
3720
+ * @param writer Serialization writer to use to serialize this model
3721
+ */
3722
+ export declare function serializeSubmitVideoFilehashResultDto(writer: SerializationWriter, submitVideoFilehashResultDto?: Partial<SubmitVideoFilehashResultDto> | undefined | null, isSerializingDerivedType?: boolean): void;
3346
3723
  /**
3347
3724
  * Serializes information the current object
3348
3725
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -3540,6 +3917,10 @@ export declare function serializeWantedVideoChangeWantedVideoDto(writer: Seriali
3540
3917
  */
3541
3918
  export declare function serializeWantedVideoSummaryDto(writer: SerializationWriter, wantedVideoSummaryDto?: Partial<WantedVideoSummaryDto> | undefined | null, isSerializingDerivedType?: boolean): void;
3542
3919
  export interface SiteSummaryDto extends AdditionalDataHolder, Parsable {
3920
+ /**
3921
+ * The createdAtUtc property
3922
+ */
3923
+ createdAtUtc?: Date | null;
3543
3924
  /**
3544
3925
  * The id property
3545
3926
  */
@@ -3556,11 +3937,67 @@ export interface SiteSummaryDto extends AdditionalDataHolder, Parsable {
3556
3937
  * The title property
3557
3938
  */
3558
3939
  title?: string | null;
3940
+ /**
3941
+ * The updatedAtUtc property
3942
+ */
3943
+ updatedAtUtc?: Date | null;
3559
3944
  /**
3560
3945
  * The url property
3561
3946
  */
3562
3947
  url?: string | null;
3563
3948
  }
3949
+ export interface SubmitVideoFilehashesRequest extends AdditionalDataHolder, Parsable {
3950
+ /**
3951
+ * The items property
3952
+ */
3953
+ items?: SubmitVideoFilehashItem[] | null;
3954
+ }
3955
+ export interface SubmitVideoFilehashesResponse extends AdditionalDataHolder, Parsable {
3956
+ /**
3957
+ * The results property
3958
+ */
3959
+ results?: SubmitVideoFilehashResultDto[] | null;
3960
+ }
3961
+ export interface SubmitVideoFilehashItem extends AdditionalDataHolder, Parsable {
3962
+ /**
3963
+ * The filename property
3964
+ */
3965
+ filename?: string | null;
3966
+ /**
3967
+ * The filesize property
3968
+ */
3969
+ filesize?: number | null;
3970
+ /**
3971
+ * The osHash property
3972
+ */
3973
+ osHash?: string | null;
3974
+ /**
3975
+ * The pHash property
3976
+ */
3977
+ pHash?: string | null;
3978
+ /**
3979
+ * Known values: UserConfirmed (0), ClientDetected (1).
3980
+ */
3981
+ source?: number | null;
3982
+ /**
3983
+ * The videoId property
3984
+ */
3985
+ videoId?: Guid | null;
3986
+ }
3987
+ export interface SubmitVideoFilehashResultDto extends AdditionalDataHolder, Parsable {
3988
+ /**
3989
+ * The osHash property
3990
+ */
3991
+ osHash?: string | null;
3992
+ /**
3993
+ * Known values: Recorded (0), Updated (1), Conflicted (2), VideoNotFound (3).
3994
+ */
3995
+ outcome?: number | null;
3996
+ /**
3997
+ * The videoId property
3998
+ */
3999
+ videoId?: Guid | null;
4000
+ }
3564
4001
  export interface SubmitVideoUserImageResponse extends AdditionalDataHolder, Parsable {
3565
4002
  /**
3566
4003
  * The moderationStatus property