Skip to content

Commit 3eb9196

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
chore(internal): minor reformatting (#435)
1 parent 6b022d0 commit 3eb9196

23 files changed

+32
-32
lines changed

src/index.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
import * as Core from './core';
43
import * as Errors from './error';
5-
import { type Agent } from './_shims/index';
64
import * as Uploads from './uploads';
5+
import { type Agent } from './_shims/index';
76
import * as qs from 'qs';
7+
import * as Core from '@mux/mux-node/core';
88
import * as Pagination from '@mux/mux-node/pagination';
99
import * as API from '@mux/mux-node/resources/index';
1010

@@ -91,7 +91,9 @@ export interface ClientOptions {
9191
defaultQuery?: Core.DefaultQuery;
9292
}
9393

94-
/** API Client for interfacing with the Mux API. */
94+
/**
95+
* API Client for interfacing with the Mux API.
96+
*/
9597
export class Mux extends Core.APIClient {
9698
tokenId: string;
9799
tokenSecret: string;
@@ -154,6 +156,7 @@ export class Mux extends Core.APIClient {
154156
maxRetries: options.maxRetries,
155157
fetch: options.fetch,
156158
});
159+
157160
this._options = options;
158161

159162
this.tokenId = tokenId;

src/resources/data/dimensions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
import * as Core from '@mux/mux-node/core';
43
import { APIResource } from '@mux/mux-node/resource';
54
import { isRequestOptions } from '@mux/mux-node/core';
5+
import * as Core from '@mux/mux-node/core';
66
import * as DimensionsAPI from '@mux/mux-node/resources/data/dimensions';
77
import { BasePage, type BasePageParams } from '@mux/mux-node/pagination';
88

src/resources/data/errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
import * as Core from '@mux/mux-node/core';
43
import { APIResource } from '@mux/mux-node/resource';
54
import { isRequestOptions } from '@mux/mux-node/core';
5+
import * as Core from '@mux/mux-node/core';
66
import * as ErrorsAPI from '@mux/mux-node/resources/data/errors';
77

88
export class Errors extends APIResource {

src/resources/data/exports.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
import * as Core from '@mux/mux-node/core';
43
import { APIResource } from '@mux/mux-node/resource';
4+
import * as Core from '@mux/mux-node/core';
55
import * as ExportsAPI from '@mux/mux-node/resources/data/exports';
66

77
export class Exports extends APIResource {

src/resources/data/filters.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
import * as Core from '@mux/mux-node/core';
43
import { APIResource } from '@mux/mux-node/resource';
54
import { isRequestOptions } from '@mux/mux-node/core';
5+
import * as Core from '@mux/mux-node/core';
66
import * as FiltersAPI from '@mux/mux-node/resources/data/filters';
77
import { BasePage, type BasePageParams } from '@mux/mux-node/pagination';
88

src/resources/data/incidents.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
import * as Core from '@mux/mux-node/core';
43
import { APIResource } from '@mux/mux-node/resource';
54
import { isRequestOptions } from '@mux/mux-node/core';
5+
import * as Core from '@mux/mux-node/core';
66
import * as IncidentsAPI from '@mux/mux-node/resources/data/incidents';
77
import { BasePage, type BasePageParams } from '@mux/mux-node/pagination';
88

src/resources/data/metrics.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
import * as Core from '@mux/mux-node/core';
43
import { APIResource } from '@mux/mux-node/resource';
54
import { isRequestOptions } from '@mux/mux-node/core';
5+
import * as Core from '@mux/mux-node/core';
66
import * as MetricsAPI from '@mux/mux-node/resources/data/metrics';
77
import { BasePage, type BasePageParams } from '@mux/mux-node/pagination';
88

src/resources/data/monitoring/metrics.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
import * as Core from '@mux/mux-node/core';
43
import { APIResource } from '@mux/mux-node/resource';
54
import { isRequestOptions } from '@mux/mux-node/core';
5+
import * as Core from '@mux/mux-node/core';
66
import * as MetricsAPI from '@mux/mux-node/resources/data/monitoring/metrics';
77

88
export class Metrics extends APIResource {

src/resources/data/monitoring/monitoring.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
import * as Core from '@mux/mux-node/core';
43
import { APIResource } from '@mux/mux-node/resource';
4+
import * as Core from '@mux/mux-node/core';
55
import * as MonitoringAPI from '@mux/mux-node/resources/data/monitoring/monitoring';
66
import * as MetricsAPI from '@mux/mux-node/resources/data/monitoring/metrics';
77

src/resources/data/real-time.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
import * as Core from '@mux/mux-node/core';
43
import { APIResource } from '@mux/mux-node/resource';
54
import { isRequestOptions } from '@mux/mux-node/core';
5+
import * as Core from '@mux/mux-node/core';
66
import * as RealTimeAPI from '@mux/mux-node/resources/data/real-time';
77

88
export class RealTime extends APIResource {

src/resources/data/video-views.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
import * as Core from '@mux/mux-node/core';
43
import { APIResource } from '@mux/mux-node/resource';
54
import { isRequestOptions } from '@mux/mux-node/core';
5+
import * as Core from '@mux/mux-node/core';
66
import * as VideoViewsAPI from '@mux/mux-node/resources/data/video-views';
77
import { BasePage, type BasePageParams } from '@mux/mux-node/pagination';
88

src/resources/system/signing-keys.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
import * as Core from '@mux/mux-node/core';
43
import { APIResource } from '@mux/mux-node/resource';
54
import { isRequestOptions } from '@mux/mux-node/core';
5+
import * as Core from '@mux/mux-node/core';
66
import * as SigningKeysAPI from '@mux/mux-node/resources/system/signing-keys';
77
import { BasePage, type BasePageParams } from '@mux/mux-node/pagination';
88

src/resources/video/assets.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
import * as Core from '@mux/mux-node/core';
43
import { APIResource } from '@mux/mux-node/resource';
54
import { isRequestOptions } from '@mux/mux-node/core';
5+
import * as Core from '@mux/mux-node/core';
66
import * as AssetsAPI from '@mux/mux-node/resources/video/assets';
77
import * as Shared from '@mux/mux-node/resources/shared';
88
import { BasePage, type BasePageParams } from '@mux/mux-node/pagination';

src/resources/video/delivery-usage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
import * as Core from '@mux/mux-node/core';
43
import { APIResource } from '@mux/mux-node/resource';
54
import { isRequestOptions } from '@mux/mux-node/core';
5+
import * as Core from '@mux/mux-node/core';
66
import * as DeliveryUsageAPI from '@mux/mux-node/resources/video/delivery-usage';
77
import { PageWithTotal, type PageWithTotalParams } from '@mux/mux-node/pagination';
88

src/resources/video/drm-configurations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
import * as Core from '@mux/mux-node/core';
43
import { APIResource } from '@mux/mux-node/resource';
54
import { isRequestOptions } from '@mux/mux-node/core';
5+
import * as Core from '@mux/mux-node/core';
66
import * as DRMConfigurationsAPI from '@mux/mux-node/resources/video/drm-configurations';
77
import { BasePage, type BasePageParams } from '@mux/mux-node/pagination';
88

src/resources/video/live-streams.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
import * as Core from '@mux/mux-node/core';
43
import { APIResource } from '@mux/mux-node/resource';
54
import { isRequestOptions } from '@mux/mux-node/core';
5+
import * as Core from '@mux/mux-node/core';
66
import * as LiveStreamsAPI from '@mux/mux-node/resources/video/live-streams';
77
import * as Shared from '@mux/mux-node/resources/shared';
88
import * as AssetsAPI from '@mux/mux-node/resources/video/assets';

src/resources/video/playback-ids.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
import * as Core from '@mux/mux-node/core';
43
import { APIResource } from '@mux/mux-node/resource';
4+
import * as Core from '@mux/mux-node/core';
55
import * as PlaybackIDsAPI from '@mux/mux-node/resources/video/playback-ids';
66
import * as Shared from '@mux/mux-node/resources/shared';
77

src/resources/video/playback-restrictions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
import * as Core from '@mux/mux-node/core';
43
import { APIResource } from '@mux/mux-node/resource';
54
import { isRequestOptions } from '@mux/mux-node/core';
5+
import * as Core from '@mux/mux-node/core';
66
import * as PlaybackRestrictionsAPI from '@mux/mux-node/resources/video/playback-restrictions';
77
import { BasePage, type BasePageParams } from '@mux/mux-node/pagination';
88

src/resources/video/spaces.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
import * as Core from '@mux/mux-node/core';
43
import { APIResource } from '@mux/mux-node/resource';
54
import { isRequestOptions } from '@mux/mux-node/core';
5+
import * as Core from '@mux/mux-node/core';
66
import * as SpacesAPI from '@mux/mux-node/resources/video/spaces';
77
import { BasePage, type BasePageParams } from '@mux/mux-node/pagination';
88

src/resources/video/transcription-vocabularies.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
import * as Core from '@mux/mux-node/core';
43
import { APIResource } from '@mux/mux-node/resource';
54
import { isRequestOptions } from '@mux/mux-node/core';
5+
import * as Core from '@mux/mux-node/core';
66
import * as TranscriptionVocabulariesAPI from '@mux/mux-node/resources/video/transcription-vocabularies';
77
import { BasePage, type BasePageParams } from '@mux/mux-node/pagination';
88

src/resources/video/uploads.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
import * as Core from '@mux/mux-node/core';
43
import { APIResource } from '@mux/mux-node/resource';
54
import { isRequestOptions } from '@mux/mux-node/core';
5+
import * as Core from '@mux/mux-node/core';
66
import * as UploadsAPI from '@mux/mux-node/resources/video/uploads';
77
import * as AssetsAPI from '@mux/mux-node/resources/video/assets';
88
import { BasePage, type BasePageParams } from '@mux/mux-node/pagination';

src/resources/video/web-inputs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
import * as Core from '@mux/mux-node/core';
43
import { APIResource } from '@mux/mux-node/resource';
54
import { isRequestOptions } from '@mux/mux-node/core';
5+
import * as Core from '@mux/mux-node/core';
66
import * as WebInputsAPI from '@mux/mux-node/resources/video/web-inputs';
77
import { BasePage, type BasePageParams } from '@mux/mux-node/pagination';
88

tests/stringifyQuery.test.ts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
import { APIClient } from '@mux/mux-node/core';
1+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
const { stringifyQuery } = APIClient.prototype as any;
3+
import { Mux } from '@mux/mux-node';
44

5-
describe('APIClient.stringifyQuery', () => {
5+
const { stringifyQuery } = Mux.prototype as any;
6+
7+
describe(stringifyQuery, () => {
68
for (const [input, expected] of [
79
[{ a: '1', b: 2, c: true }, 'a=1&b=2&c=true'],
810
[{ a: null, b: false, c: undefined }, 'a=&b=false'],
@@ -18,9 +20,4 @@ describe('APIClient.stringifyQuery', () => {
1820
expect(stringifyQuery(input)).toEqual(expected);
1921
});
2022
}
21-
for (const value of [[], {}, new Date()]) {
22-
it(`${JSON.stringify(value)} -> <error>`, () => {
23-
expect(() => stringifyQuery({ value })).toThrow(`Cannot stringify type ${typeof value}`);
24-
});
25-
}
2623
});

0 commit comments

Comments
 (0)