@mlvscan/api-client 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/README.md +21 -0
  2. package/dist/generated/files/index.d.ts +45 -0
  3. package/dist/generated/files/index.d.ts.map +1 -0
  4. package/dist/generated/files/index.js +46 -0
  5. package/dist/generated/files/index.js.map +1 -0
  6. package/dist/generated/files/upload_url/index.d.ts +50 -0
  7. package/dist/generated/files/upload_url/index.d.ts.map +1 -0
  8. package/dist/generated/files/upload_url/index.js +30 -0
  9. package/dist/generated/files/upload_url/index.js.map +1 -0
  10. package/dist/generated/mlvScanApiClient.d.ts +35 -0
  11. package/dist/generated/mlvScanApiClient.d.ts.map +1 -0
  12. package/dist/generated/mlvScanApiClient.js +72 -0
  13. package/dist/generated/mlvScanApiClient.js.map +1 -0
  14. package/dist/generated/models/index.d.ts +1609 -0
  15. package/dist/generated/models/index.d.ts.map +1 -0
  16. package/dist/generated/models/index.js +1483 -0
  17. package/dist/generated/models/index.js.map +1 -0
  18. package/dist/generated/public/index.d.ts +20 -0
  19. package/dist/generated/public/index.d.ts.map +1 -0
  20. package/dist/generated/public/index.js +20 -0
  21. package/dist/generated/public/index.js.map +1 -0
  22. package/dist/generated/public/reports/index.d.ts +22 -0
  23. package/dist/generated/public/reports/index.d.ts.map +1 -0
  24. package/dist/generated/public/reports/index.js +21 -0
  25. package/dist/generated/public/reports/index.js.map +1 -0
  26. package/dist/generated/public/reports/item/index.d.ts +29 -0
  27. package/dist/generated/public/reports/item/index.d.ts.map +1 -0
  28. package/dist/generated/public/reports/item/index.js +26 -0
  29. package/dist/generated/public/reports/item/index.js.map +1 -0
  30. package/dist/generated/reports/index.d.ts +22 -0
  31. package/dist/generated/reports/index.d.ts.map +1 -0
  32. package/dist/generated/reports/index.js +21 -0
  33. package/dist/generated/reports/index.js.map +1 -0
  34. package/dist/generated/reports/item/index.d.ts +32 -0
  35. package/dist/generated/reports/item/index.d.ts.map +1 -0
  36. package/dist/generated/reports/item/index.js +29 -0
  37. package/dist/generated/reports/item/index.js.map +1 -0
  38. package/dist/index.d.ts +4 -0
  39. package/dist/index.d.ts.map +1 -0
  40. package/dist/index.js +3 -0
  41. package/dist/index.js.map +1 -0
  42. package/dist/mlvscan-client.d.ts +29 -0
  43. package/dist/mlvscan-client.d.ts.map +1 -0
  44. package/dist/mlvscan-client.js +131 -0
  45. package/dist/mlvscan-client.js.map +1 -0
  46. package/package.json +57 -0
package/README.md ADDED
@@ -0,0 +1,21 @@
1
+ # @mlvscan/api-client
2
+
3
+ Typed TypeScript client for the MLVScan HTTP API.
4
+
5
+ The low-level client is generated from the API repository's OpenAPI document with Kiota. The
6
+ `MlvScanClient` wrapper provides the common upload and report-polling calls without requiring
7
+ callers to work directly with Kiota request builders.
8
+
9
+ ```ts
10
+ import { MlvScanClient } from '@mlvscan/api-client'
11
+
12
+ const client = new MlvScanClient({ apiKey: process.env.MLVSCAN_API_KEY })
13
+
14
+ const upload = await client.createUploadUrl('ExampleMod.dll')
15
+ const report = await client.getReport(upload.data!.submissionId!)
16
+ const completed = await client.waitForReport(upload.data!.submissionId!)
17
+ ```
18
+
19
+ For direct uploads, pass file bytes as an `ArrayBuffer` or `Uint8Array`.
20
+
21
+ For advanced scenarios, use `client.generatedClient` to access the generated Kiota client.
@@ -0,0 +1,45 @@
1
+ import { type FilesUploadResponse } from '../models/index.js';
2
+ import { type Upload_urlRequestBuilder } from './upload_url/index.js';
3
+ import { MultipartBody, type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
4
+ /**
5
+ * Builds and executes requests for operations under /files
6
+ */
7
+ export interface FilesRequestBuilder extends BaseRequestBuilder<FilesRequestBuilder> {
8
+ /**
9
+ * The upload_url property
10
+ */
11
+ get upload_url(): Upload_urlRequestBuilder;
12
+ /**
13
+ * Upload file bytes for scanning. This endpoint always receives the artifact bytes. The API hashes the uploaded bytes server-side, reuses an existing report when the same SHA-256 hash and active schema version already exist, or stores/enqueues the file when no reusable report exists. Use this when the caller does not know whether the API already has the file or when /files/reuse returned 404. Anonymous uploads are allowed, but providing X-API-Key uses authenticated limits and links the submission to your account.
14
+ * @param body The request body
15
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
16
+ * @returns {Promise<FilesUploadResponse>}
17
+ * @throws {ErrorResponse} error when the service returns a 400 status code
18
+ * @throws {ErrorResponse} error when the service returns a 401 status code
19
+ * @throws {ErrorResponse} error when the service returns a 403 status code
20
+ * @throws {ErrorResponse} error when the service returns a 413 status code
21
+ * @throws {ErrorResponse} error when the service returns a 429 status code
22
+ * @throws {ErrorResponse} error when the service returns a 500 status code
23
+ */
24
+ post(body: MultipartBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<FilesUploadResponse | undefined>;
25
+ /**
26
+ * Upload file bytes for scanning. This endpoint always receives the artifact bytes. The API hashes the uploaded bytes server-side, reuses an existing report when the same SHA-256 hash and active schema version already exist, or stores/enqueues the file when no reusable report exists. Use this when the caller does not know whether the API already has the file or when /files/reuse returned 404. Anonymous uploads are allowed, but providing X-API-Key uses authenticated limits and links the submission to your account.
27
+ * @param body The request body
28
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
29
+ * @returns {RequestInformation}
30
+ */
31
+ toPostRequestInformation(body: MultipartBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
32
+ }
33
+ /**
34
+ * Uri template for the request builder.
35
+ */
36
+ export declare const FilesRequestBuilderUriTemplate = "{+baseurl}/files";
37
+ /**
38
+ * Metadata for all the navigation properties in the request builder.
39
+ */
40
+ export declare const FilesRequestBuilderNavigationMetadata: Record<Exclude<keyof FilesRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
41
+ /**
42
+ * Metadata for all the requests in the request builder.
43
+ */
44
+ export declare const FilesRequestBuilderRequestsMetadata: RequestsMetadata;
45
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generated/files/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAkH,KAAK,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAE9K,OAAO,EAAE,KAAK,wBAAwB,EAA4C,MAAM,uBAAuB,CAAC;AAEhH,OAAO,EAAE,aAAa,EAA0B,KAAK,kBAAkB,EAAE,KAAK,kCAAkC,EAAE,KAAK,kBAAkB,EAAuC,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEjS;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,kBAAkB,CAAC,mBAAmB,CAAC;IAChF;;OAEG;IACH,IAAI,UAAU,IAAI,wBAAwB,CAAC;IAC3C;;;;;;;;;;;OAWG;IACF,IAAI,CAAC,IAAI,EAAE,aAAa,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,mBAAmB,GAAG,SAAS,CAAC,CAAC;IACvI;;;;;OAKG;IACF,wBAAwB,CAAC,IAAI,EAAE,aAAa,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CACxI;AACD;;GAEG;AACH,eAAO,MAAM,8BAA8B,qBAAqB,CAAC;AACjE;;GAEG;AACH,eAAO,MAAM,qCAAqC,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,mBAAmB,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAIpJ,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,mCAAmC,EAAE,gBAkBjD,CAAC"}
@@ -0,0 +1,46 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createErrorResponseFromDiscriminatorValue, createFilesUploadResponseFromDiscriminatorValue } from '../models/index.js';
6
+ // @ts-ignore
7
+ import { Upload_urlRequestBuilderRequestsMetadata } from './upload_url/index.js';
8
+ // @ts-ignore
9
+ import { serializeMultipartBody } from '@microsoft/kiota-abstractions';
10
+ /**
11
+ * Uri template for the request builder.
12
+ */
13
+ export const FilesRequestBuilderUriTemplate = "{+baseurl}/files";
14
+ /**
15
+ * Metadata for all the navigation properties in the request builder.
16
+ */
17
+ export const FilesRequestBuilderNavigationMetadata = {
18
+ upload_url: {
19
+ requestsMetadata: Upload_urlRequestBuilderRequestsMetadata,
20
+ },
21
+ };
22
+ /**
23
+ * Metadata for all the requests in the request builder.
24
+ */
25
+ export const FilesRequestBuilderRequestsMetadata = {
26
+ post: {
27
+ uriTemplate: FilesRequestBuilderUriTemplate,
28
+ responseBodyContentType: "application/json",
29
+ errorMappings: {
30
+ 400: createErrorResponseFromDiscriminatorValue,
31
+ 401: createErrorResponseFromDiscriminatorValue,
32
+ 403: createErrorResponseFromDiscriminatorValue,
33
+ 413: createErrorResponseFromDiscriminatorValue,
34
+ 429: createErrorResponseFromDiscriminatorValue,
35
+ 500: createErrorResponseFromDiscriminatorValue,
36
+ },
37
+ adapterMethodName: "send",
38
+ responseBodyFactory: createFilesUploadResponseFromDiscriminatorValue,
39
+ requestBodyContentType: "multipart/form-data",
40
+ requestBodySerializer: serializeMultipartBody,
41
+ requestInformationContentSetMethod: "setContentFromParsable",
42
+ },
43
+ };
44
+ /* tslint:enable */
45
+ /* eslint-enable */
46
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/generated/files/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,yCAAyC,EAAE,+CAA+C,EAAgD,MAAM,oBAAoB,CAAC;AAC9K,aAAa;AACb,OAAO,EAAiC,wCAAwC,EAAE,MAAM,uBAAuB,CAAC;AAChH,aAAa;AACb,OAAO,EAAiB,sBAAsB,EAA6M,MAAM,+BAA+B,CAAC;AA+BjS;;GAEG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG,kBAAkB,CAAC;AACjE;;GAEG;AACH,MAAM,CAAC,MAAM,qCAAqC,GAAuG;IACrJ,UAAU,EAAE;QACR,gBAAgB,EAAE,wCAAwC;KAC7D;CACJ,CAAC;AACF;;GAEG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAAqB;IACjE,IAAI,EAAE;QACF,WAAW,EAAE,8BAA8B;QAC3C,uBAAuB,EAAE,kBAAkB;QAC3C,aAAa,EAAE;YACX,GAAG,EAAE,yCAAsE;YAC3E,GAAG,EAAE,yCAAsE;YAC3E,GAAG,EAAE,yCAAsE;YAC3E,GAAG,EAAE,yCAAsE;YAC3E,GAAG,EAAE,yCAAsE;YAC3E,GAAG,EAAE,yCAAsE;SAC9E;QACD,iBAAiB,EAAE,MAAM;QACzB,mBAAmB,EAAG,+CAA+C;QACrE,sBAAsB,EAAE,qBAAqB;QAC7C,qBAAqB,EAAE,sBAAsB;QAC7C,kCAAkC,EAAE,wBAAwB;KAC/D;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
@@ -0,0 +1,50 @@
1
+ import { type FilesUploadUrlResponse } 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 /files/upload_url
5
+ */
6
+ export interface Upload_urlRequestBuilder extends BaseRequestBuilder<Upload_urlRequestBuilder> {
7
+ /**
8
+ * Create a one-time upload URL for larger files. Anonymous requests are allowed, but providing X-API-Key uses authenticated limits and links the submission to your account.
9
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
10
+ * @returns {Promise<FilesUploadUrlResponse>}
11
+ * @throws {ErrorResponse} error when the service returns a 400 status code
12
+ * @throws {ErrorResponse} error when the service returns a 401 status code
13
+ * @throws {ErrorResponse} error when the service returns a 403 status code
14
+ * @throws {ErrorResponse} error when the service returns a 429 status code
15
+ * @throws {ErrorResponse} error when the service returns a 500 status code
16
+ */
17
+ get(requestConfiguration?: RequestConfiguration<Upload_urlRequestBuilderGetQueryParameters> | undefined): Promise<FilesUploadUrlResponse | undefined>;
18
+ /**
19
+ * Create a one-time upload URL for larger files. Anonymous requests are allowed, but providing X-API-Key uses authenticated limits and links the submission to your account.
20
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
21
+ * @returns {RequestInformation}
22
+ */
23
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<Upload_urlRequestBuilderGetQueryParameters> | undefined): RequestInformation;
24
+ }
25
+ /**
26
+ * Create a one-time upload URL for larger files. Anonymous requests are allowed, but providing X-API-Key uses authenticated limits and links the submission to your account.
27
+ */
28
+ export interface Upload_urlRequestBuilderGetQueryParameters {
29
+ /**
30
+ * MIME type (e.g. application/x-msdownload)
31
+ */
32
+ contentType?: string;
33
+ /**
34
+ * Name of the file to upload
35
+ */
36
+ filename?: string;
37
+ /**
38
+ * Optional base64url-encoded JSON of SubmissionMetadata
39
+ */
40
+ metadata?: string;
41
+ }
42
+ /**
43
+ * Uri template for the request builder.
44
+ */
45
+ export declare const Upload_urlRequestBuilderUriTemplate = "{+baseurl}/files/upload_url?filename={filename}{&contentType*,metadata*}";
46
+ /**
47
+ * Metadata for all the requests in the request builder.
48
+ */
49
+ export declare const Upload_urlRequestBuilderRequestsMetadata: RequestsMetadata;
50
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/generated/files/upload_url/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAqH,KAAK,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAEvL,OAAO,EAAE,KAAK,kBAAkB,EAAuC,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAExL;;GAEG;AACH,MAAM,WAAW,wBAAyB,SAAQ,kBAAkB,CAAC,wBAAwB,CAAC;IAC1F;;;;;;;;;OASG;IACF,GAAG,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,0CAA0C,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,sBAAsB,GAAG,SAAS,CAAC,CAAC;IACxJ;;;;OAIG;IACF,uBAAuB,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,0CAA0C,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CACtJ;AACD;;GAEG;AACH,MAAM,WAAW,0CAA0C;IACvD;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AACD;;GAEG;AACH,eAAO,MAAM,mCAAmC,6EAA6E,CAAC;AAC9H;;GAEG;AACH,eAAO,MAAM,wCAAwC,EAAE,gBActD,CAAC"}
@@ -0,0 +1,30 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createErrorResponseFromDiscriminatorValue, createFilesUploadUrlResponseFromDiscriminatorValue } from '../../models/index.js';
6
+ /**
7
+ * Uri template for the request builder.
8
+ */
9
+ export const Upload_urlRequestBuilderUriTemplate = "{+baseurl}/files/upload_url?filename={filename}{&contentType*,metadata*}";
10
+ /**
11
+ * Metadata for all the requests in the request builder.
12
+ */
13
+ export const Upload_urlRequestBuilderRequestsMetadata = {
14
+ get: {
15
+ uriTemplate: Upload_urlRequestBuilderUriTemplate,
16
+ responseBodyContentType: "application/json",
17
+ errorMappings: {
18
+ 400: createErrorResponseFromDiscriminatorValue,
19
+ 401: createErrorResponseFromDiscriminatorValue,
20
+ 403: createErrorResponseFromDiscriminatorValue,
21
+ 429: createErrorResponseFromDiscriminatorValue,
22
+ 500: createErrorResponseFromDiscriminatorValue,
23
+ },
24
+ adapterMethodName: "send",
25
+ responseBodyFactory: createFilesUploadUrlResponseFromDiscriminatorValue,
26
+ },
27
+ };
28
+ /* tslint:enable */
29
+ /* eslint-enable */
30
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/generated/files/upload_url/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,yCAAyC,EAAE,kDAAkD,EAAmD,MAAM,uBAAuB,CAAC;AA2CvL;;GAEG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAAG,0EAA0E,CAAC;AAC9H;;GAEG;AACH,MAAM,CAAC,MAAM,wCAAwC,GAAqB;IACtE,GAAG,EAAE;QACD,WAAW,EAAE,mCAAmC;QAChD,uBAAuB,EAAE,kBAAkB;QAC3C,aAAa,EAAE;YACX,GAAG,EAAE,yCAAsE;YAC3E,GAAG,EAAE,yCAAsE;YAC3E,GAAG,EAAE,yCAAsE;YAC3E,GAAG,EAAE,yCAAsE;YAC3E,GAAG,EAAE,yCAAsE;SAC9E;QACD,iBAAiB,EAAE,MAAM;QACzB,mBAAmB,EAAG,kDAAkD;KAC3E;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
@@ -0,0 +1,35 @@
1
+ import { type FilesRequestBuilder } from './files/index.js';
2
+ import { type PublicRequestBuilder } from './public/index.js';
3
+ import { type ReportsRequestBuilder } from './reports/index.js';
4
+ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestAdapter } from '@microsoft/kiota-abstractions';
5
+ /**
6
+ * Instantiates a new {@link MlvScanApiClient} and sets the default values.
7
+ * @param requestAdapter The request adapter to use to execute the requests.
8
+ */
9
+ export declare function createMlvScanApiClient(requestAdapter: RequestAdapter): MlvScanApiClient;
10
+ /**
11
+ * The main entry point of the SDK, exposes the configuration and the fluent API.
12
+ */
13
+ export interface MlvScanApiClient extends BaseRequestBuilder<MlvScanApiClient> {
14
+ /**
15
+ * The files property
16
+ */
17
+ get files(): FilesRequestBuilder;
18
+ /**
19
+ * The public property
20
+ */
21
+ get public(): PublicRequestBuilder;
22
+ /**
23
+ * The reports property
24
+ */
25
+ get reports(): ReportsRequestBuilder;
26
+ }
27
+ /**
28
+ * Uri template for the request builder.
29
+ */
30
+ export declare const MlvScanApiClientUriTemplate = "{+baseurl}";
31
+ /**
32
+ * Metadata for all the navigation properties in the request builder.
33
+ */
34
+ export declare const MlvScanApiClientNavigationMetadata: Record<Exclude<keyof MlvScanApiClient, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
35
+ //# sourceMappingURL=mlvScanApiClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mlvScanApiClient.d.ts","sourceRoot":"","sources":["../../src/generated/mlvScanApiClient.ts"],"names":[],"mappings":"AAIA,OAAO,EAA8E,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAExI,OAAO,EAA0C,KAAK,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAEtG,OAAO,EAA2C,KAAK,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAEzG,OAAO,EAAoF,KAAK,kBAAkB,EAAE,KAAK,kCAAkC,EAAE,KAAK,kBAAkB,EAAE,KAAK,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAUjP;;;GAGG;AAEH,wBAAgB,sBAAsB,CAAC,cAAc,EAAE,cAAc,oBA4BpE;AACD;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,kBAAkB,CAAC,gBAAgB,CAAC;IAC1E;;OAEG;IACH,IAAI,KAAK,IAAI,mBAAmB,CAAC;IACjC;;OAEG;IACH,IAAI,MAAM,IAAI,oBAAoB,CAAC;IACnC;;OAEG;IACH,IAAI,OAAO,IAAI,qBAAqB,CAAC;CACxC;AACD;;GAEG;AACH,eAAO,MAAM,2BAA2B,eAAe,CAAC;AACxD;;GAEG;AACH,eAAO,MAAM,kCAAkC,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,gBAAgB,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAW9I,CAAC"}
@@ -0,0 +1,72 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { FilesRequestBuilderNavigationMetadata, FilesRequestBuilderRequestsMetadata } from './files/index.js';
6
+ // @ts-ignore
7
+ import { PublicRequestBuilderNavigationMetadata } from './public/index.js';
8
+ // @ts-ignore
9
+ import { ReportsRequestBuilderNavigationMetadata } from './reports/index.js';
10
+ // @ts-ignore
11
+ import { apiClientProxifier } from '@microsoft/kiota-abstractions';
12
+ // @ts-ignore
13
+ import { FormParseNodeFactory, FormSerializationWriterFactory } from '@microsoft/kiota-serialization-form';
14
+ // @ts-ignore
15
+ import { JsonParseNodeFactory, JsonSerializationWriterFactory } from '@microsoft/kiota-serialization-json';
16
+ // @ts-ignore
17
+ import { MultipartSerializationWriterFactory } from '@microsoft/kiota-serialization-multipart';
18
+ // @ts-ignore
19
+ import { TextParseNodeFactory, TextSerializationWriterFactory } from '@microsoft/kiota-serialization-text';
20
+ /**
21
+ * Instantiates a new {@link MlvScanApiClient} and sets the default values.
22
+ * @param requestAdapter The request adapter to use to execute the requests.
23
+ */
24
+ // @ts-ignore
25
+ export function createMlvScanApiClient(requestAdapter) {
26
+ if (requestAdapter === undefined) {
27
+ throw new Error("requestAdapter cannot be undefined");
28
+ }
29
+ const serializationWriterFactory = requestAdapter.getSerializationWriterFactory();
30
+ const parseNodeFactoryRegistry = requestAdapter.getParseNodeFactory();
31
+ const backingStoreFactory = requestAdapter.getBackingStoreFactory();
32
+ if (parseNodeFactoryRegistry.registerDefaultDeserializer) {
33
+ parseNodeFactoryRegistry.registerDefaultDeserializer(JsonParseNodeFactory, backingStoreFactory);
34
+ parseNodeFactoryRegistry.registerDefaultDeserializer(TextParseNodeFactory, backingStoreFactory);
35
+ parseNodeFactoryRegistry.registerDefaultDeserializer(FormParseNodeFactory, backingStoreFactory);
36
+ }
37
+ if (serializationWriterFactory.registerDefaultSerializer) {
38
+ serializationWriterFactory.registerDefaultSerializer(JsonSerializationWriterFactory);
39
+ serializationWriterFactory.registerDefaultSerializer(TextSerializationWriterFactory);
40
+ serializationWriterFactory.registerDefaultSerializer(FormSerializationWriterFactory);
41
+ serializationWriterFactory.registerDefaultSerializer(MultipartSerializationWriterFactory);
42
+ }
43
+ if (requestAdapter.baseUrl === undefined || requestAdapter.baseUrl === null || requestAdapter.baseUrl === "") {
44
+ requestAdapter.baseUrl = "https://api.mlvscan.com";
45
+ }
46
+ const pathParameters = {
47
+ "baseurl": requestAdapter.baseUrl,
48
+ };
49
+ return apiClientProxifier(requestAdapter, pathParameters, MlvScanApiClientNavigationMetadata, undefined);
50
+ }
51
+ /**
52
+ * Uri template for the request builder.
53
+ */
54
+ export const MlvScanApiClientUriTemplate = "{+baseurl}";
55
+ /**
56
+ * Metadata for all the navigation properties in the request builder.
57
+ */
58
+ export const MlvScanApiClientNavigationMetadata = {
59
+ files: {
60
+ requestsMetadata: FilesRequestBuilderRequestsMetadata,
61
+ navigationMetadata: FilesRequestBuilderNavigationMetadata,
62
+ },
63
+ public: {
64
+ navigationMetadata: PublicRequestBuilderNavigationMetadata,
65
+ },
66
+ reports: {
67
+ navigationMetadata: ReportsRequestBuilderNavigationMetadata,
68
+ },
69
+ };
70
+ /* tslint:enable */
71
+ /* eslint-enable */
72
+ //# sourceMappingURL=mlvScanApiClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mlvScanApiClient.js","sourceRoot":"","sources":["../../src/generated/mlvScanApiClient.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,qCAAqC,EAAE,mCAAmC,EAA4B,MAAM,kBAAkB,CAA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