@mlvscan/api-client 1.1.0 → 1.2.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.
@@ -0,0 +1,129 @@
1
+ import { type SourceArtifact, type SourceArtifactWithReports } from '../models/index.js';
2
+ import { type WithProviderItemRequestBuilder } from './item/index.js';
3
+ import { type AdditionalDataHolder, type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type Parsable, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions';
4
+ /**
5
+ * Creates a new instance of the appropriate class based on discriminator value
6
+ * @param parseNode The parse node to use to read the discriminator value and create the object
7
+ * @returns {SourceArtifactWithReports | SourceArtifact}
8
+ */
9
+ export declare function createSourcesGetResponse_dataFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
10
+ /**
11
+ * Creates a new instance of the appropriate class based on discriminator value
12
+ * @param parseNode The parse node to use to read the discriminator value and create the object
13
+ * @returns {SourcesGetResponse}
14
+ */
15
+ export declare function createSourcesGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
16
+ /**
17
+ * The deserialization information for the current model
18
+ * @param SourcesGetResponse The instance to deserialize into.
19
+ * @returns {Record<string, (node: ParseNode) => void>}
20
+ */
21
+ export declare function deserializeIntoSourcesGetResponse(sourcesGetResponse?: Partial<SourcesGetResponse> | undefined): Record<string, (node: ParseNode) => void>;
22
+ /**
23
+ * The deserialization information for the current model
24
+ * @param SourcesGetResponse_data The instance to deserialize into.
25
+ * @returns {Record<string, (node: ParseNode) => void>}
26
+ */
27
+ export declare function deserializeIntoSourcesGetResponse_data(sourcesGetResponse_data?: Partial<SourceArtifactWithReports | SourceArtifact> | undefined): Record<string, (node: ParseNode) => void>;
28
+ export type GetProviderQueryParameterType = (typeof GetProviderQueryParameterTypeObject)[keyof typeof GetProviderQueryParameterTypeObject];
29
+ /**
30
+ * Serializes information the current object
31
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
32
+ * @param SourcesGetResponse The instance to serialize from.
33
+ * @param writer Serialization writer to use to serialize this model
34
+ */
35
+ export declare function serializeSourcesGetResponse(writer: SerializationWriter, sourcesGetResponse?: Partial<SourcesGetResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
36
+ /**
37
+ * Serializes information the current object
38
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
39
+ * @param SourcesGetResponse_data The instance to serialize from.
40
+ * @param writer Serialization writer to use to serialize this model
41
+ */
42
+ export declare function serializeSourcesGetResponse_data(writer: SerializationWriter, sourcesGetResponse_data?: Partial<SourceArtifactWithReports | SourceArtifact> | undefined | null, isSerializingDerivedType?: boolean): void;
43
+ export interface SourcesGetResponse extends AdditionalDataHolder, Parsable {
44
+ /**
45
+ * The data property
46
+ */
47
+ data?: (SourceArtifactWithReports | SourceArtifact)[] | null;
48
+ }
49
+ export type SourcesGetResponse_data = SourceArtifactWithReports | SourceArtifact;
50
+ /**
51
+ * Builds and executes requests for operations under /sources
52
+ */
53
+ export interface SourcesRequestBuilder extends BaseRequestBuilder<SourcesRequestBuilder> {
54
+ /**
55
+ * Gets an item from the MLVScan.ApiClient.Generated.sources.item collection
56
+ * @param provider Provider namespace. SDK wrappers map typed source targets to this path segment.
57
+ * @returns {WithProviderItemRequestBuilder}
58
+ */
59
+ byProvider(provider: string): WithProviderItemRequestBuilder;
60
+ /**
61
+ * Search source artifacts MLVScan has linked to public provider scans.Use this endpoint to find artifacts indexed from provider metadata on submissions, inspect the latest linked submission/report IDs, or build source-aware moderation and discovery views. It searches metadata that has already been recorded with uploads, source watches, or report reuse. It does not upload bytes, start a scan, or query the full Nexus Mods or Thunderstore catalog.Set includeReports=true when you need recent report handles for each source result. Keep the limit small for UI search and autocomplete surfaces.SDK guidance:- C# callers should use MlvScanSourceLookupOptions.Source, such as MlvScanSource.NexusModsSchedule1, instead of hand-writing provider/game strings.- TypeScript callers should use MlvScanSources.NexusModsSchedule1 or MlvScanSources.ThunderstoreScheduleI.- Use latestSubmissionId with GET /public/reports/{submissionId} for browser/UI presentation. Use GET /reports/{submissionId} only from a trusted backend when raw scanner output is needed.
62
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
63
+ * @returns {Promise<SourcesGetResponse>}
64
+ */
65
+ get(requestConfiguration?: RequestConfiguration<SourcesRequestBuilderGetQueryParameters> | undefined): Promise<SourcesGetResponse | undefined>;
66
+ /**
67
+ * Search source artifacts MLVScan has linked to public provider scans.Use this endpoint to find artifacts indexed from provider metadata on submissions, inspect the latest linked submission/report IDs, or build source-aware moderation and discovery views. It searches metadata that has already been recorded with uploads, source watches, or report reuse. It does not upload bytes, start a scan, or query the full Nexus Mods or Thunderstore catalog.Set includeReports=true when you need recent report handles for each source result. Keep the limit small for UI search and autocomplete surfaces.SDK guidance:- C# callers should use MlvScanSourceLookupOptions.Source, such as MlvScanSource.NexusModsSchedule1, instead of hand-writing provider/game strings.- TypeScript callers should use MlvScanSources.NexusModsSchedule1 or MlvScanSources.ThunderstoreScheduleI.- Use latestSubmissionId with GET /public/reports/{submissionId} for browser/UI presentation. Use GET /reports/{submissionId} only from a trusted backend when raw scanner output is needed.
68
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
69
+ * @returns {RequestInformation}
70
+ */
71
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<SourcesRequestBuilderGetQueryParameters> | undefined): RequestInformation;
72
+ }
73
+ /**
74
+ * Search source artifacts MLVScan has linked to public provider scans.Use this endpoint to find artifacts indexed from provider metadata on submissions, inspect the latest linked submission/report IDs, or build source-aware moderation and discovery views. It searches metadata that has already been recorded with uploads, source watches, or report reuse. It does not upload bytes, start a scan, or query the full Nexus Mods or Thunderstore catalog.Set includeReports=true when you need recent report handles for each source result. Keep the limit small for UI search and autocomplete surfaces.SDK guidance:- C# callers should use MlvScanSourceLookupOptions.Source, such as MlvScanSource.NexusModsSchedule1, instead of hand-writing provider/game strings.- TypeScript callers should use MlvScanSources.NexusModsSchedule1 or MlvScanSources.ThunderstoreScheduleI.- Use latestSubmissionId with GET /public/reports/{submissionId} for browser/UI presentation. Use GET /reports/{submissionId} only from a trusted backend when raw scanner output is needed.
75
+ */
76
+ export interface SourcesRequestBuilderGetQueryParameters {
77
+ /**
78
+ * Provider game/community filter, such as schedule1 or schedule-i. Prefer SDK source target constants when using a generated wrapper.
79
+ */
80
+ game?: string;
81
+ /**
82
+ * When true, includes up to 5 recent report handles for each source artifact.
83
+ */
84
+ includeReports?: boolean;
85
+ /**
86
+ * Maximum number of source artifacts to return. Defaults to 10 and is capped at 25.
87
+ */
88
+ limit?: number;
89
+ /**
90
+ * Nexus Mods mod ID filter. Combine with provider=nexusmods and game=schedule1, or use MlvScanSource.NexusModsSchedule1 in the SDK.
91
+ */
92
+ modId?: string;
93
+ /**
94
+ * Thunderstore package full name filter, such as ifBars/S1API_Forked. Combine with provider=thunderstore and game=schedule-i, or use MlvScanSource.ThunderstoreScheduleI in the SDK.
95
+ */
96
+ packageFullName?: string;
97
+ /**
98
+ * Provider filter. Prefer SDK source target constants when using a generated wrapper.
99
+ */
100
+ provider?: GetProviderQueryParameterType;
101
+ /**
102
+ * Free-text search over recorded source metadata, including display name, file name, source key, package full name, mod ID, and file ID.
103
+ */
104
+ query?: string;
105
+ /**
106
+ * Exact provider source key, such as schedule1:1194:1779419635 or schedule-i:ifBars/S1API_Forked:1.0.0.
107
+ */
108
+ sourceKey?: string;
109
+ }
110
+ /**
111
+ * Uri template for the request builder.
112
+ */
113
+ export declare const SourcesRequestBuilderUriTemplate = "{+baseurl}/sources{?game*,includeReports*,limit*,modId*,packageFullName*,provider*,query*,sourceKey*}";
114
+ /**
115
+ * Provider filter. Prefer SDK source target constants when using a generated wrapper.
116
+ */
117
+ export declare const GetProviderQueryParameterTypeObject: {
118
+ readonly Nexusmods: "nexusmods";
119
+ readonly Thunderstore: "thunderstore";
120
+ };
121
+ /**
122
+ * Metadata for all the navigation properties in the request builder.
123
+ */
124
+ export declare const SourcesRequestBuilderNavigationMetadata: Record<Exclude<keyof SourcesRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
125
+ /**
126
+ * Metadata for all the requests in the request builder.
127
+ */
128
+ export declare const SourcesRequestBuilderRequestsMetadata: RequestsMetadata;
129
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generated/sources/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAA2O,KAAK,cAAc,EAAE,KAAK,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAElU,OAAO,EAAE,KAAK,8BAA8B,EAAoD,MAAM,iBAAiB,CAAC;AAExH,OAAO,EAAE,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,kCAAkC,EAAE,KAAK,kBAAkB,EAAE,KAAK,QAAQ,EAAwB,KAAK,SAAS,EAAE,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,KAAK,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAE/T;;;;GAIG;AAEH,wBAAgB,mDAAmD,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,GAAI,CAAC,CAAC,QAAQ,CAAC,EAAE,QAAQ,KAAK,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC,CAAC,CAE3K;AACD;;;;GAIG;AAEH,wBAAgB,8CAA8C,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,GAAI,CAAC,CAAC,QAAQ,CAAC,EAAE,QAAQ,KAAK,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC,CAAC,CAEtK;AACD;;;;GAIG;AAEH,wBAAgB,iCAAiC,CAAC,kBAAkB,GAAE,OA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AI,OAAO,CAAC,kBAAkB,GAAG,SAAS,CAAC,CAAC;IACjJ;;;;OAIG;IACF,uBAAuB,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,uCAAuC,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CACnJ;AACD;;GAEG;AACH,MAAM,WAAW,uCAAuC;IACpD;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,6BAA6B,CAAC;IACzC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AACD;;GAEG;AACH,eAAO,MAAM,gCAAgC,0GAA0G,CAAC;AACxJ;;GAEG;AACH,eAAO,MAAM,mCAAmC;;;CAGtC,CAAC;AACX;;GAEG;AACH,eAAO,MAAM,uCAAuC,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,qBAAqB,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAKxJ,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,qCAAqC,EAAE,gBAOnD,CAAC"}
@@ -0,0 +1,107 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createSourceArtifactFromDiscriminatorValue, createSourceArtifactWithReportsFromDiscriminatorValue, deserializeIntoSourceArtifact, deserializeIntoSourceArtifactWithReports, serializeSourceArtifact, serializeSourceArtifactWithReports } from '../models/index.js';
6
+ // @ts-ignore
7
+ import { WithProviderItemRequestBuilderNavigationMetadata } from './item/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 {SourceArtifactWithReports | SourceArtifact}
12
+ */
13
+ // @ts-ignore
14
+ export function createSourcesGetResponse_dataFromDiscriminatorValue(parseNode) {
15
+ return deserializeIntoSourcesGetResponse_data;
16
+ }
17
+ /**
18
+ * Creates a new instance of the appropriate class based on discriminator value
19
+ * @param parseNode The parse node to use to read the discriminator value and create the object
20
+ * @returns {SourcesGetResponse}
21
+ */
22
+ // @ts-ignore
23
+ export function createSourcesGetResponseFromDiscriminatorValue(parseNode) {
24
+ return deserializeIntoSourcesGetResponse;
25
+ }
26
+ /**
27
+ * The deserialization information for the current model
28
+ * @param SourcesGetResponse The instance to deserialize into.
29
+ * @returns {Record<string, (node: ParseNode) => void>}
30
+ */
31
+ // @ts-ignore
32
+ export function deserializeIntoSourcesGetResponse(sourcesGetResponse = {}) {
33
+ return {
34
+ "data": n => { sourcesGetResponse.data = n.getCollectionOfObjectValues(createSourceArtifactWithReportsFromDiscriminatorValue) ?? n.getCollectionOfObjectValues(createSourceArtifactFromDiscriminatorValue); },
35
+ };
36
+ }
37
+ /**
38
+ * The deserialization information for the current model
39
+ * @param SourcesGetResponse_data The instance to deserialize into.
40
+ * @returns {Record<string, (node: ParseNode) => void>}
41
+ */
42
+ // @ts-ignore
43
+ export function deserializeIntoSourcesGetResponse_data(sourcesGetResponse_data = {}) {
44
+ return {
45
+ ...deserializeIntoSourceArtifactWithReports(sourcesGetResponse_data),
46
+ ...deserializeIntoSourceArtifact(sourcesGetResponse_data),
47
+ };
48
+ }
49
+ /**
50
+ * Serializes information the current object
51
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
52
+ * @param SourcesGetResponse The instance to serialize from.
53
+ * @param writer Serialization writer to use to serialize this model
54
+ */
55
+ // @ts-ignore
56
+ export function serializeSourcesGetResponse(writer, sourcesGetResponse = {}, isSerializingDerivedType = false) {
57
+ if (!sourcesGetResponse || isSerializingDerivedType) {
58
+ return;
59
+ }
60
+ writer.writeCollectionOfObjectValues("data", sourcesGetResponse.data, serializeSourcesGetResponse_data);
61
+ writer.writeAdditionalData(sourcesGetResponse.additionalData);
62
+ }
63
+ /**
64
+ * Serializes information the current object
65
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
66
+ * @param SourcesGetResponse_data The instance to serialize from.
67
+ * @param writer Serialization writer to use to serialize this model
68
+ */
69
+ // @ts-ignore
70
+ export function serializeSourcesGetResponse_data(writer, sourcesGetResponse_data = {}, isSerializingDerivedType = false) {
71
+ serializeSourceArtifactWithReports(writer, sourcesGetResponse_data);
72
+ serializeSourceArtifact(writer, sourcesGetResponse_data);
73
+ }
74
+ /**
75
+ * Uri template for the request builder.
76
+ */
77
+ export const SourcesRequestBuilderUriTemplate = "{+baseurl}/sources{?game*,includeReports*,limit*,modId*,packageFullName*,provider*,query*,sourceKey*}";
78
+ /**
79
+ * Provider filter. Prefer SDK source target constants when using a generated wrapper.
80
+ */
81
+ export const GetProviderQueryParameterTypeObject = {
82
+ Nexusmods: "nexusmods",
83
+ Thunderstore: "thunderstore",
84
+ };
85
+ /**
86
+ * Metadata for all the navigation properties in the request builder.
87
+ */
88
+ export const SourcesRequestBuilderNavigationMetadata = {
89
+ byProvider: {
90
+ navigationMetadata: WithProviderItemRequestBuilderNavigationMetadata,
91
+ pathParametersMappings: ["provider"],
92
+ },
93
+ };
94
+ /**
95
+ * Metadata for all the requests in the request builder.
96
+ */
97
+ export const SourcesRequestBuilderRequestsMetadata = {
98
+ get: {
99
+ uriTemplate: SourcesRequestBuilderUriTemplate,
100
+ responseBodyContentType: "application/json",
101
+ adapterMethodName: "send",
102
+ responseBodyFactory: createSourcesGetResponseFromDiscriminatorValue,
103
+ },
104
+ };
105
+ /* tslint:enable */
106
+ /* eslint-enable */
107
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/generated/sources/index.ts"],"names":[],"mappings":"AAAA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,kBAAkB,CAAC,cAAc,CAAC,CAAC;AAClE,CAAC;AACD;;;;;GAKG;AACH,aAAa;AACb,MAAM,UAAU,gCAAgC,CAAC,MAA2B,EAAE,0BAAkG,EAAE,EAAE,2BAAoC,KAAK;IACzN,kCAAkC,CAAC,MAAM,EAAE,uBAAoD,CAAC,CAAC;IACjG,uBAAuB,CAAC,MAAM,EAAE,uBAAyC,CAAC,CAAC;AAC/E,CAAC;AAoED;;GAEG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,uGAAuG,CAAC;AACxJ;;GAEG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAAG;IAC/C,SAAS,EAAE,WAAW;IACtB,YAAY,EAAE,cAAc;CACtB,CAAC;AACX;;GAEG;AACH,MAAM,CAAC,MAAM,uCAAuC,GAAyG;IACzJ,UAAU,EAAE;QACR,kBAAkB,EAAE,gDAAgD;QACpE,sBAAsB,EAAE,CAAC,UAAU,CAAC;KACvC;CACJ,CAAC;AACF;;GAEG;AACH,MAAM,CAAC,MAAM,qCAAqC,GAAqB;IACnE,GAAG,EAAE;QACD,WAAW,EAAE,gCAAgC;QAC7C,uBAAuB,EAAE,kBAAkB;QAC3C,iBAAiB,EAAE,MAAM;QACzB,mBAAmB,EAAG,8CAA8C;KACvE;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
@@ -0,0 +1,22 @@
1
+ import { type WithSourceKeyItemRequestBuilder } from './item/index.js';
2
+ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
3
+ /**
4
+ * Builds and executes requests for operations under /sources/{provider}
5
+ */
6
+ export interface WithProviderItemRequestBuilder extends BaseRequestBuilder<WithProviderItemRequestBuilder> {
7
+ /**
8
+ * Gets an item from the MLVScan.ApiClient.Generated.sources.item.item collection
9
+ * @param sourceKey Provider-specific source key. Nexus Schedule 1 keys are schedule1:{modId}:{fileId}; Thunderstore Schedule I keys are schedule-i:{packageFullName}:{version}.
10
+ * @returns {WithSourceKeyItemRequestBuilder}
11
+ */
12
+ bySourceKey(sourceKey: string): WithSourceKeyItemRequestBuilder;
13
+ }
14
+ /**
15
+ * Uri template for the request builder.
16
+ */
17
+ export declare const WithProviderItemRequestBuilderUriTemplate = "{+baseurl}/sources/{provider}";
18
+ /**
19
+ * Metadata for all the navigation properties in the request builder.
20
+ */
21
+ export declare const WithProviderItemRequestBuilderNavigationMetadata: Record<Exclude<keyof WithProviderItemRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
22
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/generated/sources/item/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,+BAA+B,EAAmD,MAAM,iBAAiB,CAAC;AAExH,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,kCAAkC,EAAE,KAAK,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAE1I;;GAEG;AACH,MAAM,WAAW,8BAA+B,SAAQ,kBAAkB,CAAC,8BAA8B,CAAC;IACtG;;;;OAIG;IACF,WAAW,CAAC,SAAS,EAAE,MAAM,GAAI,+BAA+B,CAAC;CACrE;AACD;;GAEG;AACH,eAAO,MAAM,yCAAyC,kCAAkC,CAAC;AACzF;;GAEG;AACH,eAAO,MAAM,gDAAgD,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,8BAA8B,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAK1K,CAAC"}
@@ -0,0 +1,21 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { WithSourceKeyItemRequestBuilderRequestsMetadata } from './item/index.js';
6
+ /**
7
+ * Uri template for the request builder.
8
+ */
9
+ export const WithProviderItemRequestBuilderUriTemplate = "{+baseurl}/sources/{provider}";
10
+ /**
11
+ * Metadata for all the navigation properties in the request builder.
12
+ */
13
+ export const WithProviderItemRequestBuilderNavigationMetadata = {
14
+ bySourceKey: {
15
+ requestsMetadata: WithSourceKeyItemRequestBuilderRequestsMetadata,
16
+ pathParametersMappings: ["sourceKey"],
17
+ },
18
+ };
19
+ /* tslint:enable */
20
+ /* eslint-enable */
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/generated/sources/item/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAwC,+CAA+C,EAAE,MAAM,iBAAiB,CAAC;AAexH;;GAEG;AACH,MAAM,CAAC,MAAM,yCAAyC,GAAG,+BAA+B,CAAC;AACzF;;GAEG;AACH,MAAM,CAAC,MAAM,gDAAgD,GAAkH;IAC3K,WAAW,EAAE;QACT,gBAAgB,EAAE,+CAA+C;QACjE,sBAAsB,EAAE,CAAC,WAAW,CAAC;KACxC;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
@@ -0,0 +1,38 @@
1
+ import { type SourceArtifactWithReports } 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 /sources/{provider}/{sourceKey}
5
+ */
6
+ export interface WithSourceKeyItemRequestBuilder extends BaseRequestBuilder<WithSourceKeyItemRequestBuilder> {
7
+ /**
8
+ * Fetch one source artifact and recent linked report history.The sourceKey is provider-specific. For Nexus Mods or Thunderstore integrations, treat it as provenance metadata that tells you which provider artifact was observed. The scanner identity still comes from the underlying report content hash and schema version.Use this endpoint when you already know the provider and source key and want the current public/report linkage for that source artifact.SDK guidance:- C# callers should use GetSourceAsync(MlvScanSource.NexusModsSchedule1, sourceKey, reportsLimit).- TypeScript callers should use getSource(MlvScanSources.NexusModsSchedule1, sourceKey, reportsLimit).- The returned latestSubmissionId or reports[].submissionId can be passed to /public/reports/{submissionId} for source-linked public display.
9
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
10
+ * @returns {Promise<SourceArtifactWithReports>}
11
+ * @throws {ErrorResponse} error when the service returns a 404 status code
12
+ */
13
+ get(requestConfiguration?: RequestConfiguration<WithSourceKeyItemRequestBuilderGetQueryParameters> | undefined): Promise<SourceArtifactWithReports | undefined>;
14
+ /**
15
+ * Fetch one source artifact and recent linked report history.The sourceKey is provider-specific. For Nexus Mods or Thunderstore integrations, treat it as provenance metadata that tells you which provider artifact was observed. The scanner identity still comes from the underlying report content hash and schema version.Use this endpoint when you already know the provider and source key and want the current public/report linkage for that source artifact.SDK guidance:- C# callers should use GetSourceAsync(MlvScanSource.NexusModsSchedule1, sourceKey, reportsLimit).- TypeScript callers should use getSource(MlvScanSources.NexusModsSchedule1, sourceKey, reportsLimit).- The returned latestSubmissionId or reports[].submissionId can be passed to /public/reports/{submissionId} for source-linked public display.
16
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
17
+ * @returns {RequestInformation}
18
+ */
19
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<WithSourceKeyItemRequestBuilderGetQueryParameters> | undefined): RequestInformation;
20
+ }
21
+ /**
22
+ * Fetch one source artifact and recent linked report history.The sourceKey is provider-specific. For Nexus Mods or Thunderstore integrations, treat it as provenance metadata that tells you which provider artifact was observed. The scanner identity still comes from the underlying report content hash and schema version.Use this endpoint when you already know the provider and source key and want the current public/report linkage for that source artifact.SDK guidance:- C# callers should use GetSourceAsync(MlvScanSource.NexusModsSchedule1, sourceKey, reportsLimit).- TypeScript callers should use getSource(MlvScanSources.NexusModsSchedule1, sourceKey, reportsLimit).- The returned latestSubmissionId or reports[].submissionId can be passed to /public/reports/{submissionId} for source-linked public display.
23
+ */
24
+ export interface WithSourceKeyItemRequestBuilderGetQueryParameters {
25
+ /**
26
+ * Maximum number of recent report handles to include. Defaults to 10 and is capped at 25.
27
+ */
28
+ reportsLimit?: number;
29
+ }
30
+ /**
31
+ * Uri template for the request builder.
32
+ */
33
+ export declare const WithSourceKeyItemRequestBuilderUriTemplate = "{+baseurl}/sources/{provider}/{sourceKey}{?reportsLimit*}";
34
+ /**
35
+ * Metadata for all the requests in the request builder.
36
+ */
37
+ export declare const WithSourceKeyItemRequestBuilderRequestsMetadata: RequestsMetadata;
38
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/generated/sources/item/item/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAwH,KAAK,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAEhM,OAAO,EAAE,KAAK,kBAAkB,EAAuC,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAExL;;GAEG;AACH,MAAM,WAAW,+BAAgC,SAAQ,kBAAkB,CAAC,+BAA+B,CAAC;IACxG;;;;;OAKG;IACF,GAAG,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,iDAAiD,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,yBAAyB,GAAG,SAAS,CAAC,CAAC;IAClK;;;;OAIG;IACF,uBAAuB,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,iDAAiD,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CAC7J;AACD;;GAEG;AACH,MAAM,WAAW,iDAAiD;IAC9D;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB;AACD;;GAEG;AACH,eAAO,MAAM,0CAA0C,8DAA8D,CAAC;AACtH;;GAEG;AACH,eAAO,MAAM,+CAA+C,EAAE,gBAU7D,CAAC"}
@@ -0,0 +1,26 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createErrorResponseFromDiscriminatorValue, createSourceArtifactWithReportsFromDiscriminatorValue } from '../../../models/index.js';
6
+ /**
7
+ * Uri template for the request builder.
8
+ */
9
+ export const WithSourceKeyItemRequestBuilderUriTemplate = "{+baseurl}/sources/{provider}/{sourceKey}{?reportsLimit*}";
10
+ /**
11
+ * Metadata for all the requests in the request builder.
12
+ */
13
+ export const WithSourceKeyItemRequestBuilderRequestsMetadata = {
14
+ get: {
15
+ uriTemplate: WithSourceKeyItemRequestBuilderUriTemplate,
16
+ responseBodyContentType: "application/json",
17
+ errorMappings: {
18
+ 404: createErrorResponseFromDiscriminatorValue,
19
+ },
20
+ adapterMethodName: "send",
21
+ responseBodyFactory: createSourceArtifactWithReportsFromDiscriminatorValue,
22
+ },
23
+ };
24
+ /* tslint:enable */
25
+ /* eslint-enable */
26
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/generated/sources/item/item/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,yCAAyC,EAAE,qDAAqD,EAAsD,MAAM,0BAA0B,CAAC;AA+BhM;;GAEG;AACH,MAAM,CAAC,MAAM,0CAA0C,GAAG,2DAA2D,CAAC;AACtH;;GAEG;AACH,MAAM,CAAC,MAAM,+CAA+C,GAAqB;IAC7E,GAAG,EAAE;QACD,WAAW,EAAE,0CAA0C;QACvD,uBAAuB,EAAE,kBAAkB;QAC3C,aAAa,EAAE;YACX,GAAG,EAAE,yCAAsE;SAC9E;QACD,iBAAiB,EAAE,MAAM;QACzB,mBAAmB,EAAG,qDAAqD;KAC9E;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { MlvScanClient, type MlvScanClientOptions, type UploadFileOptions, type WaitForReportOptions, } from './mlvscan-client.js';
1
+ export { MlvScanClient, MlvScanSources, type MlvScanClientOptions, type MlvScanSource, type SourceLookupOptions, type UploadFileOptions, type WaitForReportOptions, } from './mlvscan-client.js';
2
2
  export { createMlvScanApiClient, type MlvScanApiClient, } from './generated/mlvScanApiClient.js';
3
- export type { FilesUploadResponse, FilesUploadUrlResponse, PublicReportResponse, ReportResponse, } from './generated/models/index.js';
3
+ export type { FilesUploadResponse, FilesUploadUrlResponse, PublicReportResponse, ReportResponse, SourceArtifact, SourceArtifactWithReports, } from './generated/models/index.js';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,GAC1B,MAAM,qBAAqB,CAAA;AAE5B,OAAO,EACL,sBAAsB,EACtB,KAAK,gBAAgB,GACtB,MAAM,iCAAiC,CAAA;AAExC,YAAY,EACV,mBAAmB,EACnB,sBAAsB,EACtB,oBAAoB,EACpB,cAAc,GACf,MAAM,6BAA6B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,cAAc,EACd,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,GAC1B,MAAM,qBAAqB,CAAA;AAE5B,OAAO,EACL,sBAAsB,EACtB,KAAK,gBAAgB,GACtB,MAAM,iCAAiC,CAAA;AAExC,YAAY,EACV,mBAAmB,EACnB,sBAAsB,EACtB,oBAAoB,EACpB,cAAc,EACd,cAAc,EACd,yBAAyB,GAC1B,MAAM,6BAA6B,CAAA"}
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export { MlvScanClient, } from './mlvscan-client.js';
1
+ export { MlvScanClient, MlvScanSources, } from './mlvscan-client.js';
2
2
  export { createMlvScanApiClient, } from './generated/mlvScanApiClient.js';
3
3
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,GAId,MAAM,qBAAqB,CAAA;AAE5B,OAAO,EACL,sBAAsB,GAEvB,MAAM,iCAAiC,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,cAAc,GAMf,MAAM,qBAAqB,CAAA;AAE5B,OAAO,EACL,sBAAsB,GAEvB,MAAM,iCAAiC,CAAA"}
@@ -1,6 +1,17 @@
1
1
  import { type RequestAdapter } from '@microsoft/kiota-abstractions';
2
2
  import { type MlvScanApiClient } from './generated/mlvScanApiClient.js';
3
- import type { FilesUploadResponse, FilesUploadUrlResponse, PublicReportResponse, ReportResponse } from './generated/models/index.js';
3
+ import type { FilesUploadResponse, FilesUploadUrlResponse, PublicReportResponse, ReportResponse, SourceArtifact, SourceArtifactWithReports } from './generated/models/index.js';
4
+ export declare const MlvScanSources: {
5
+ readonly NexusModsSchedule1: {
6
+ readonly provider: "nexusmods";
7
+ readonly game: "schedule1";
8
+ };
9
+ readonly ThunderstoreScheduleI: {
10
+ readonly provider: "thunderstore";
11
+ readonly game: "schedule-i";
12
+ };
13
+ };
14
+ export type MlvScanSource = (typeof MlvScanSources)[keyof typeof MlvScanSources];
4
15
  export interface MlvScanClientOptions {
5
16
  apiKey?: string;
6
17
  baseUrl?: string | URL;
@@ -15,6 +26,15 @@ export interface WaitForReportOptions {
15
26
  pollIntervalMs?: number;
16
27
  signal?: AbortSignal;
17
28
  }
29
+ export interface SourceLookupOptions {
30
+ source?: MlvScanSource;
31
+ sourceKey?: string;
32
+ modId?: string;
33
+ packageFullName?: string;
34
+ query?: string;
35
+ includeReports?: boolean;
36
+ limit?: number;
37
+ }
18
38
  export declare class MlvScanClient {
19
39
  readonly generatedClient: MlvScanApiClient;
20
40
  private readonly requestAdapter;
@@ -24,6 +44,8 @@ export declare class MlvScanClient {
24
44
  uploadFile(file: ArrayBuffer | Uint8Array, fileName: string, options?: UploadFileOptions): Promise<FilesUploadResponse>;
25
45
  getReport(submissionId: string): Promise<ReportResponse>;
26
46
  getPublicReport(submissionId: string): Promise<PublicReportResponse>;
47
+ listSources(options?: SourceLookupOptions): Promise<Array<SourceArtifact | SourceArtifactWithReports>>;
48
+ getSource(source: MlvScanSource, sourceKey: string, reportsLimit?: number): Promise<SourceArtifactWithReports>;
27
49
  waitForReport(submissionId: string, options?: WaitForReportOptions): Promise<ReportResponse>;
28
50
  }
29
51
  //# sourceMappingURL=mlvscan-client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mlvscan-client.d.ts","sourceRoot":"","sources":["../src/mlvscan-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,cAAc,EACpB,MAAM,+BAA+B,CAAA;AAEtC,OAAO,EAEL,KAAK,gBAAgB,EACtB,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EACV,mBAAmB,EACnB,sBAAsB,EACtB,oBAAoB,EACpB,cAAc,EACf,MAAM,6BAA6B,CAAA;AAKpC,MAAM,WAAW,oBAAoB;IACnC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;IACtB,cAAc,CAAC,EAAE,cAAc,CAAA;CAChC;AAED,MAAM,WAAW,iBAAiB;IAChC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,MAAM,WAAW,oBAAoB;IACnC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,MAAM,CAAC,EAAE,WAAW,CAAA;CACrB;AAED,qBAAa,aAAa;IACxB,QAAQ,CAAC,eAAe,EAAE,gBAAgB,CAAA;IAC1C,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAgB;gBAE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AC,EAAE,MAAM,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAe9G,aAAa,CACjB,YAAY,EAAE,MAAM,EACpB,OAAO,GAAE,oBAAyB,GACjC,OAAO,CAAC,cAAc,CAAC;CAwB3B"}
@@ -3,6 +3,16 @@ import { FetchRequestAdapter } from '@microsoft/kiota-http-fetchlibrary';
3
3
  import { createMlvScanApiClient, } from './generated/mlvScanApiClient.js';
4
4
  const DEFAULT_BASE_URL = 'https://api.mlvscan.com';
5
5
  const DEFAULT_POLL_INTERVAL_MS = 2_000;
6
+ export const MlvScanSources = {
7
+ NexusModsSchedule1: {
8
+ provider: 'nexusmods',
9
+ game: 'schedule1',
10
+ },
11
+ ThunderstoreScheduleI: {
12
+ provider: 'thunderstore',
13
+ game: 'schedule-i',
14
+ },
15
+ };
6
16
  export class MlvScanClient {
7
17
  generatedClient;
8
18
  requestAdapter;
@@ -63,6 +73,33 @@ export class MlvScanClient {
63
73
  }
64
74
  return response;
65
75
  }
76
+ async listSources(options = {}) {
77
+ const response = await this.generatedClient.sources.get({
78
+ queryParameters: {
79
+ provider: options.source?.provider,
80
+ game: options.source?.game,
81
+ sourceKey: options.sourceKey,
82
+ modId: options.modId,
83
+ packageFullName: options.packageFullName,
84
+ query: options.query,
85
+ includeReports: options.includeReports,
86
+ limit: options.limit,
87
+ },
88
+ });
89
+ return response?.data ?? [];
90
+ }
91
+ async getSource(source, sourceKey, reportsLimit) {
92
+ assertNonEmpty(sourceKey, 'sourceKey');
93
+ const response = await this.generatedClient.sources.byProvider(source.provider).bySourceKey(sourceKey).get({
94
+ queryParameters: {
95
+ reportsLimit,
96
+ },
97
+ });
98
+ if (!response) {
99
+ throw new Error('The MLVScan API returned an empty source response.');
100
+ }
101
+ return response;
102
+ }
66
103
  async waitForReport(submissionId, options = {}) {
67
104
  assertNonEmpty(submissionId, 'submissionId');
68
105
  const pollIntervalMs = options.pollIntervalMs ?? DEFAULT_POLL_INTERVAL_MS;
@@ -1 +1 @@
1
- {"version":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MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAA;AACjG,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mlvscan/api-client",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Typed TypeScript client for the MLVScan HTTP API, generated from OpenAPI with a small ergonomic wrapper.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",