Skip to content

Commit

Permalink
fix: update casing for "drm" (#425)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Jun 17, 2024
1 parent 34b37be commit 34cf334
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 33 deletions.
8 changes: 4 additions & 4 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,16 +177,16 @@ Methods:
- <code title="put /video/v1/web-inputs/{WEB_INPUT_ID}/shutdown">client.video.webInputs.<a href="./src/resources/video/web-inputs.ts">shutdown</a>(webInputId) -> WebInputShutdownResponse</code>
- <code title="put /video/v1/web-inputs/{WEB_INPUT_ID}/url">client.video.webInputs.<a href="./src/resources/video/web-inputs.ts">updateURL</a>(webInputId, { ...params }) -> WebInputUpdateURLResponse</code>

## DrmConfigurations
## DRMConfigurations

Types:

- <code><a href="./src/resources/video/drm-configurations.ts">DrmConfiguration</a></code>
- <code><a href="./src/resources/video/drm-configurations.ts">DRMConfiguration</a></code>

Methods:

- <code title="get /video/v1/drm-configurations/{DRM_CONFIGURATION_ID}">client.video.drmConfigurations.<a href="./src/resources/video/drm-configurations.ts">retrieve</a>(drmConfigurationId) -> DrmConfiguration</code>
- <code title="get /video/v1/drm-configurations">client.video.drmConfigurations.<a href="./src/resources/video/drm-configurations.ts">list</a>({ ...params }) -> DrmConfigurationsBasePage</code>
- <code title="get /video/v1/drm-configurations/{DRM_CONFIGURATION_ID}">client.video.drmConfigurations.<a href="./src/resources/video/drm-configurations.ts">retrieve</a>(drmConfigurationId) -> DRMConfiguration</code>
- <code title="get /video/v1/drm-configurations">client.video.drmConfigurations.<a href="./src/resources/video/drm-configurations.ts">list</a>({ ...params }) -> DRMConfigurationsBasePage</code>

# Data

Expand Down
34 changes: 17 additions & 17 deletions src/resources/video/drm-configurations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
import * as Core from '@mux/mux-node/core';
import { APIResource } from '@mux/mux-node/resource';
import { isRequestOptions } from '@mux/mux-node/core';
import * as DrmConfigurationsAPI from '@mux/mux-node/resources/video/drm-configurations';
import * as DRMConfigurationsAPI from '@mux/mux-node/resources/video/drm-configurations';
import { BasePage, type BasePageParams } from '@mux/mux-node/pagination';

export class DrmConfigurations extends APIResource {
export class DRMConfigurations extends APIResource {
/**
* Retrieves a single DRM Configuration.
*/
retrieve(drmConfigurationId: string, options?: Core.RequestOptions): Core.APIPromise<DrmConfiguration> {
retrieve(drmConfigurationId: string, options?: Core.RequestOptions): Core.APIPromise<DRMConfiguration> {
return (
this._client.get(`/video/v1/drm-configurations/${drmConfigurationId}`, options) as Core.APIPromise<{
data: DrmConfiguration;
data: DRMConfiguration;
}>
)._thenUnwrap((obj) => obj.data);
}
Expand All @@ -22,37 +22,37 @@ export class DrmConfigurations extends APIResource {
* Returns a list of DRM Configurations
*/
list(
query?: DrmConfigurationListParams,
query?: DRMConfigurationListParams,
options?: Core.RequestOptions,
): Core.PagePromise<DrmConfigurationsBasePage, DrmConfiguration>;
list(options?: Core.RequestOptions): Core.PagePromise<DrmConfigurationsBasePage, DrmConfiguration>;
): Core.PagePromise<DRMConfigurationsBasePage, DRMConfiguration>;
list(options?: Core.RequestOptions): Core.PagePromise<DRMConfigurationsBasePage, DRMConfiguration>;
list(
query: DrmConfigurationListParams | Core.RequestOptions = {},
query: DRMConfigurationListParams | Core.RequestOptions = {},
options?: Core.RequestOptions,
): Core.PagePromise<DrmConfigurationsBasePage, DrmConfiguration> {
): Core.PagePromise<DRMConfigurationsBasePage, DRMConfiguration> {
if (isRequestOptions(query)) {
return this.list({}, query);
}
return this._client.getAPIList('/video/v1/drm-configurations', DrmConfigurationsBasePage, {
return this._client.getAPIList('/video/v1/drm-configurations', DRMConfigurationsBasePage, {
query,
...options,
});
}
}

export class DrmConfigurationsBasePage extends BasePage<DrmConfiguration> {}
export class DRMConfigurationsBasePage extends BasePage<DRMConfiguration> {}

export interface DrmConfiguration {
export interface DRMConfiguration {
/**
* Unique identifier for the DRM Configuration. Max 255 characters.
*/
id: string;
}

export interface DrmConfigurationListParams extends BasePageParams {}
export interface DRMConfigurationListParams extends BasePageParams {}

export namespace DrmConfigurations {
export import DrmConfiguration = DrmConfigurationsAPI.DrmConfiguration;
export import DrmConfigurationsBasePage = DrmConfigurationsAPI.DrmConfigurationsBasePage;
export import DrmConfigurationListParams = DrmConfigurationsAPI.DrmConfigurationListParams;
export namespace DRMConfigurations {
export import DRMConfiguration = DRMConfigurationsAPI.DRMConfiguration;
export import DRMConfigurationsBasePage = DRMConfigurationsAPI.DRMConfigurationsBasePage;
export import DRMConfigurationListParams = DRMConfigurationsAPI.DRMConfigurationListParams;
}
12 changes: 6 additions & 6 deletions src/resources/video/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,18 @@ export {
SpacesBasePage,
Spaces,
} from './spaces';
export {
DRMConfiguration,
DRMConfigurationListParams,
DRMConfigurationsBasePage,
DRMConfigurations,
} from './drm-configurations';
export {
DeliveryReport,
DeliveryUsageListParams,
DeliveryReportsPageWithTotal,
DeliveryUsage,
} from './delivery-usage';
export {
DrmConfiguration,
DrmConfigurationListParams,
DrmConfigurationsBasePage,
DrmConfigurations,
} from './drm-configurations';
export {
LiveStream,
SimulcastTarget,
Expand Down
12 changes: 6 additions & 6 deletions src/resources/video/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { APIResource } from '@mux/mux-node/resource';
import * as AssetsAPI from '@mux/mux-node/resources/video/assets';
import * as DeliveryUsageAPI from '@mux/mux-node/resources/video/delivery-usage';
import * as DrmConfigurationsAPI from '@mux/mux-node/resources/video/drm-configurations';
import * as DRMConfigurationsAPI from '@mux/mux-node/resources/video/drm-configurations';
import * as LiveStreamsAPI from '@mux/mux-node/resources/video/live-streams';
import * as PlaybackIDsAPI from '@mux/mux-node/resources/video/playback-ids';
import * as PlaybackRestrictionsAPI from '@mux/mux-node/resources/video/playback-restrictions';
Expand All @@ -24,7 +24,7 @@ export class Video extends APIResource {
new TranscriptionVocabulariesAPI.TranscriptionVocabularies(this._client);
uploads: UploadsAPI.Uploads = new UploadsAPI.Uploads(this._client);
webInputs: WebInputsAPI.WebInputs = new WebInputsAPI.WebInputs(this._client);
drmConfigurations: DrmConfigurationsAPI.DrmConfigurations = new DrmConfigurationsAPI.DrmConfigurations(
drmConfigurations: DRMConfigurationsAPI.DRMConfigurations = new DRMConfigurationsAPI.DRMConfigurations(
this._client,
);
}
Expand Down Expand Up @@ -111,8 +111,8 @@ export namespace Video {
export import WebInputCreateParams = WebInputsAPI.WebInputCreateParams;
export import WebInputListParams = WebInputsAPI.WebInputListParams;
export import WebInputUpdateURLParams = WebInputsAPI.WebInputUpdateURLParams;
export import DrmConfigurations = DrmConfigurationsAPI.DrmConfigurations;
export import DrmConfiguration = DrmConfigurationsAPI.DrmConfiguration;
export import DrmConfigurationsBasePage = DrmConfigurationsAPI.DrmConfigurationsBasePage;
export import DrmConfigurationListParams = DrmConfigurationsAPI.DrmConfigurationListParams;
export import DRMConfigurations = DRMConfigurationsAPI.DRMConfigurations;
export import DRMConfiguration = DRMConfigurationsAPI.DRMConfiguration;
export import DRMConfigurationsBasePage = DRMConfigurationsAPI.DRMConfigurationsBasePage;
export import DRMConfigurationListParams = DRMConfigurationsAPI.DRMConfigurationListParams;
}

0 comments on commit 34cf334

Please sign in to comment.