From 0968aa183fe3b705ea3ae272dd4aac0f3337971e Mon Sep 17 00:00:00 2001 From: team-devx Date: Thu, 14 Dec 2023 20:30:43 +0000 Subject: [PATCH] chore: build SDK from openapi.yaml changes --- src/api.ts | 693 ++++++++++++++++++++++++++++++++++------------------- 1 file changed, 440 insertions(+), 253 deletions(-) diff --git a/src/api.ts b/src/api.ts index 0426bf4..1a70807 100644 --- a/src/api.ts +++ b/src/api.ts @@ -37,6 +37,12 @@ export const AlignmentKind = { export type AlignmentKind = typeof AlignmentKind[keyof typeof AlignmentKind]; +/** + * @type AnyNode + * @export + */ +export type AnyNode = { type: 'blockquote' } & BlockQuoteBlock | { type: 'break' } & BreakBlock | { type: 'code' } & Code | { type: 'code_block' } & CodeBlock | { type: 'document' } & DocumentBlock | { type: 'emphasis' } & Emphasis | { type: 'heading' } & HeadingBlock | { type: 'image' } & Image | { type: 'link' } & Link | { type: 'list' } & ListBlock | { type: 'list_item' } & ListItemBlock | { type: 'paragraph' } & ParagraphBlock | { type: 'strikethrough' } & StrikeThrough | { type: 'table' } & TableBlock | { type: 'table_cell' } & TableCellBlock | { type: 'table_header' } & TableHeaderBlock | { type: 'table_row' } & TableRowBlock | { type: 'task_checkbox' } & TaskCheckbox | { type: 'text' } & Text | { type: 'text_block' } & TextBlock; + /** * * @export @@ -336,6 +342,51 @@ export interface BaseError { */ 'detail': string; } +/** + * + * @export + * @interface BaseNode + */ +export interface BaseNode { + /** + * + * @type {string} + * @memberof BaseNode + */ + 'type': string; +} +/** + * + * @export + * @interface BlockNode + */ +export interface BlockNode { + /** + * + * @type {string} + * @memberof BlockNode + */ + 'type': string; + /** + * List of children nodes of the current node + * @type {Array} + * @memberof BlockNode + */ + 'children'?: Array; +} +/** + * + * @export + * @interface BlockNodeAllOf + */ +export interface BlockNodeAllOf { + /** + * List of children nodes of the current node + * @type {Array} + * @memberof BlockNodeAllOf + */ + 'children'?: Array; +} /** * * @export @@ -347,21 +398,14 @@ export interface BlockQuoteBlock { * @type {string} * @memberof BlockQuoteBlock */ - 'type': BlockQuoteBlockTypeEnum; + 'type': string; /** * List of children nodes of the current node - * @type {Array} + * @type {Array} * @memberof BlockQuoteBlock */ - 'children'?: Array; + 'children'?: Array; } - -export const BlockQuoteBlockTypeEnum = { - Blockquote: 'blockquote' -} as const; - -export type BlockQuoteBlockTypeEnum = typeof BlockQuoteBlockTypeEnum[keyof typeof BlockQuoteBlockTypeEnum]; - /** * * @export @@ -373,27 +417,14 @@ export interface BreakBlock { * @type {string} * @memberof BreakBlock */ - 'type': BreakBlockTypeEnum; + 'type': string; /** * List of children nodes of the current node - * @type {Array} + * @type {Array} * @memberof BreakBlock */ - 'children'?: Array; + 'children'?: Array; } - -export const BreakBlockTypeEnum = { - Break: 'break' -} as const; - -export type BreakBlockTypeEnum = typeof BreakBlockTypeEnum[keyof typeof BreakBlockTypeEnum]; - -/** - * @type ChildNode - * @export - */ -export type ChildNode = BlockQuoteBlock | BreakBlock | Code | CodeBlock | Emphasis | HeadingBlock | Image | Link | ListBlock | ListItemBlock | ParagraphBlock | StrikeThrough | TableBlock | TableCellBlock | TableHeaderBlock | TableRowBlock | TaskCheckbox | Text | TextBlock; - /** * * @export @@ -405,21 +436,14 @@ export interface Code { * @type {string} * @memberof Code */ - 'type': CodeTypeEnum; + 'type': string; /** * List of children nodes of the current node - * @type {Array} + * @type {Array} * @memberof Code */ - 'children'?: Array; + 'children'?: Array; } - -export const CodeTypeEnum = { - Code: 'code' -} as const; - -export type CodeTypeEnum = typeof CodeTypeEnum[keyof typeof CodeTypeEnum]; - /** * * @export @@ -431,27 +455,33 @@ export interface CodeBlock { * @type {string} * @memberof CodeBlock */ - 'type': CodeBlockTypeEnum; + 'type': string; + /** + * List of children nodes of the current node + * @type {Array} + * @memberof CodeBlock + */ + 'children'?: Array; /** * * @type {string} * @memberof CodeBlock */ 'lang'?: string; +} +/** + * + * @export + * @interface CodeBlockAllOf + */ +export interface CodeBlockAllOf { /** - * List of children nodes of the current node - * @type {Array} - * @memberof CodeBlock + * + * @type {string} + * @memberof CodeBlockAllOf */ - 'children'?: Array; + 'lang'?: string; } - -export const CodeBlockTypeEnum = { - CodeBlock: 'code_block' -} as const; - -export type CodeBlockTypeEnum = typeof CodeBlockTypeEnum[keyof typeof CodeBlockTypeEnum]; - /** * * @export @@ -625,27 +655,33 @@ export interface DocumentBlock { * @type {string} * @memberof DocumentBlock */ - 'type': DocumentBlockTypeEnum; + 'type': string; + /** + * List of children nodes of the current node + * @type {Array} + * @memberof DocumentBlock + */ + 'children'?: Array; /** * * @type {string} * @memberof DocumentBlock */ 'version'?: string; +} +/** + * + * @export + * @interface DocumentBlockAllOf + */ +export interface DocumentBlockAllOf { /** - * List of children nodes of the current node - * @type {Array} - * @memberof DocumentBlock + * + * @type {string} + * @memberof DocumentBlockAllOf */ - 'children'?: Array; + 'version'?: string; } - -export const DocumentBlockTypeEnum = { - Document: 'document' -} as const; - -export type DocumentBlockTypeEnum = typeof DocumentBlockTypeEnum[keyof typeof DocumentBlockTypeEnum]; - /** * * @export @@ -704,18 +740,6 @@ export interface DocumentItem { * @memberof DocumentItem */ 'title': string; - /** - * An ISO-8601 timestamp representation of entity creation date. - * @type {string} - * @memberof DocumentItem - */ - 'created_at': string; - /** - * An ISO-8601 timestamp representation of entity update date. - * @type {string} - * @memberof DocumentItem - */ - 'updated_at': string; } /** * a document tree @@ -752,19 +776,7 @@ export interface DocumentTree { * @type {object} * @memberof DocumentTree */ - 'metadata': object; - /** - * An ISO-8601 timestamp representation of entity creation date. - * @type {string} - * @memberof DocumentTree - */ - 'created_at': string; - /** - * An ISO-8601 timestamp representation of entity update date. - * @type {string} - * @memberof DocumentTree - */ - 'updated_at': string; + 'meta': object; /** * * @type {Array} @@ -783,27 +795,33 @@ export interface Emphasis { * @type {string} * @memberof Emphasis */ - 'type': EmphasisTypeEnum; + 'type': string; + /** + * List of children nodes of the current node + * @type {Array} + * @memberof Emphasis + */ + 'children'?: Array; /** * Level of emphasis 1 - italic 2 - bold * @type {number} * @memberof Emphasis */ 'level'?: number; +} +/** + * + * @export + * @interface EmphasisAllOf + */ +export interface EmphasisAllOf { /** - * List of children nodes of the current node - * @type {Array} - * @memberof Emphasis + * Level of emphasis 1 - italic 2 - bold + * @type {number} + * @memberof EmphasisAllOf */ - 'children'?: Array; + 'level'?: number; } - -export const EmphasisTypeEnum = { - Emphasis: 'emphasis' -} as const; - -export type EmphasisTypeEnum = typeof EmphasisTypeEnum[keyof typeof EmphasisTypeEnum]; - /** * The type of filter to apply. `IN` filters will limit results to only the specified values, while `NOT_IN` filters will exclude the specified values. * @export @@ -1055,27 +1073,33 @@ export interface HeadingBlock { * @type {string} * @memberof HeadingBlock */ - 'type': HeadingBlockTypeEnum; + 'type': string; + /** + * List of children nodes of the current node + * @type {Array} + * @memberof HeadingBlock + */ + 'children'?: Array; /** * Level of the heading which maps to HTML tag * @type {number} * @memberof HeadingBlock */ 'level'?: number; +} +/** + * + * @export + * @interface HeadingBlockAllOf + */ +export interface HeadingBlockAllOf { /** - * List of children nodes of the current node - * @type {Array} - * @memberof HeadingBlock + * Level of the heading which maps to HTML tag + * @type {number} + * @memberof HeadingBlockAllOf */ - 'children'?: Array; + 'level'?: number; } - -export const HeadingBlockTypeEnum = { - Heading: 'heading' -} as const; - -export type HeadingBlockTypeEnum = typeof HeadingBlockTypeEnum[keyof typeof HeadingBlockTypeEnum]; - /** * * @export @@ -1087,7 +1111,7 @@ export interface Image { * @type {string} * @memberof Image */ - 'type': ImageTypeEnum; + 'type': string; /** * Url of the image * @type {string} @@ -1107,13 +1131,31 @@ export interface Image { */ 'title'?: string; } - -export const ImageTypeEnum = { - Image: 'image' -} as const; - -export type ImageTypeEnum = typeof ImageTypeEnum[keyof typeof ImageTypeEnum]; - +/** + * + * @export + * @interface ImageAllOf + */ +export interface ImageAllOf { + /** + * Url of the image + * @type {string} + * @memberof ImageAllOf + */ + 'url'?: string; + /** + * Alternate tag of the image + * @type {string} + * @memberof ImageAllOf + */ + 'alt'?: string; + /** + * Title of the image + * @type {string} + * @memberof ImageAllOf + */ + 'title'?: string; +} /** * * @export @@ -1252,7 +1294,7 @@ export interface Link { * @type {string} * @memberof Link */ - 'type': LinkTypeEnum; + 'type': string; /** * Target url of the link * @type {string} @@ -1266,13 +1308,25 @@ export interface Link { */ 'title'?: string; } - -export const LinkTypeEnum = { - Link: 'link' -} as const; - -export type LinkTypeEnum = typeof LinkTypeEnum[keyof typeof LinkTypeEnum]; - +/** + * + * @export + * @interface LinkAllOf + */ +export interface LinkAllOf { + /** + * Target url of the link + * @type {string} + * @memberof LinkAllOf + */ + 'href'?: string; + /** + * Title of the link + * @type {string} + * @memberof LinkAllOf + */ + 'title'?: string; +} /** * * @export @@ -1303,27 +1357,33 @@ export interface ListBlock { * @type {string} * @memberof ListBlock */ - 'type': ListBlockTypeEnum; + 'type': string; + /** + * List of children nodes of the current node + * @type {Array} + * @memberof ListBlock + */ + 'children'?: Array; /** * Defines if the list is ordered or not * @type {boolean} * @memberof ListBlock */ 'isOrdered'?: boolean; +} +/** + * + * @export + * @interface ListBlockAllOf + */ +export interface ListBlockAllOf { /** - * List of children nodes of the current node - * @type {Array} - * @memberof ListBlock + * Defines if the list is ordered or not + * @type {boolean} + * @memberof ListBlockAllOf */ - 'children'?: Array; + 'isOrdered'?: boolean; } - -export const ListBlockTypeEnum = { - List: 'list' -} as const; - -export type ListBlockTypeEnum = typeof ListBlockTypeEnum[keyof typeof ListBlockTypeEnum]; - /** * * @export @@ -1411,21 +1471,14 @@ export interface ListItemBlock { * @type {string} * @memberof ListItemBlock */ - 'type': ListItemBlockTypeEnum; + 'type': string; /** * List of children nodes of the current node - * @type {Array} + * @type {Array} * @memberof ListItemBlock */ - 'children'?: Array; + 'children'?: Array; } - -export const ListItemBlockTypeEnum = { - ListItem: 'list_item' -} as const; - -export type ListItemBlockTypeEnum = typeof ListItemBlockTypeEnum[keyof typeof ListItemBlockTypeEnum]; - /** * * @export @@ -1568,21 +1621,14 @@ export interface ParagraphBlock { * @type {string} * @memberof ParagraphBlock */ - 'type': ParagraphBlockTypeEnum; + 'type': string; /** * List of children nodes of the current node - * @type {Array} + * @type {Array} * @memberof ParagraphBlock */ - 'children'?: Array; + 'children'?: Array; } - -export const ParagraphBlockTypeEnum = { - Paragraph: 'paragraph' -} as const; - -export type ParagraphBlockTypeEnum = typeof ParagraphBlockTypeEnum[keyof typeof ParagraphBlockTypeEnum]; - /** * the portal appearance * @export @@ -2864,15 +2910,21 @@ export interface StrikeThrough { * @type {string} * @memberof StrikeThrough */ - 'type': StrikeThroughTypeEnum; + 'type': string; +} +/** + * + * @export + * @interface TableAlignments + */ +export interface TableAlignments { + /** + * + * @type {Array} + * @memberof TableAlignments + */ + 'alignments': Array | null; } - -export const StrikeThroughTypeEnum = { - Strikethrough: 'strikethrough' -} as const; - -export type StrikeThroughTypeEnum = typeof StrikeThroughTypeEnum[keyof typeof StrikeThroughTypeEnum]; - /** * * @export @@ -2884,27 +2936,20 @@ export interface TableBlock { * @type {string} * @memberof TableBlock */ - 'type': TableBlockTypeEnum; + 'type': string; /** - * - * @type {Array} + * List of children nodes of the current node + * @type {Array} * @memberof TableBlock */ - 'alignments': Array | null; + 'children'?: Array; /** - * List of children nodes of the current node - * @type {Array} + * + * @type {Array} * @memberof TableBlock */ - 'children'?: Array; + 'alignments': Array | null; } - -export const TableBlockTypeEnum = { - Table: 'table' -} as const; - -export type TableBlockTypeEnum = typeof TableBlockTypeEnum[keyof typeof TableBlockTypeEnum]; - /** * * @export @@ -2916,27 +2961,33 @@ export interface TableCellBlock { * @type {string} * @memberof TableCellBlock */ - 'type': TableCellBlockTypeEnum; + 'type': string; + /** + * List of children nodes of the current node + * @type {Array} + * @memberof TableCellBlock + */ + 'children'?: Array; /** * * @type {AlignmentKind} * @memberof TableCellBlock */ 'alignment'?: AlignmentKind; +} +/** + * + * @export + * @interface TableCellBlockAllOf + */ +export interface TableCellBlockAllOf { /** - * List of children nodes of the current node - * @type {Array} - * @memberof TableCellBlock + * + * @type {AlignmentKind} + * @memberof TableCellBlockAllOf */ - 'children'?: Array; + 'alignment'?: AlignmentKind; } - -export const TableCellBlockTypeEnum = { - TableCell: 'table_cell' -} as const; - -export type TableCellBlockTypeEnum = typeof TableCellBlockTypeEnum[keyof typeof TableCellBlockTypeEnum]; - /** * * @export @@ -2948,27 +2999,20 @@ export interface TableHeaderBlock { * @type {string} * @memberof TableHeaderBlock */ - 'type': TableHeaderBlockTypeEnum; + 'type': string; /** - * - * @type {Array} + * List of children nodes of the current node + * @type {Array} * @memberof TableHeaderBlock */ - 'alignments': Array | null; + 'children'?: Array; /** - * List of children nodes of the current node - * @type {Array} + * + * @type {Array} * @memberof TableHeaderBlock */ - 'children'?: Array; + 'alignments': Array | null; } - -export const TableHeaderBlockTypeEnum = { - TableHeader: 'table_header' -} as const; - -export type TableHeaderBlockTypeEnum = typeof TableHeaderBlockTypeEnum[keyof typeof TableHeaderBlockTypeEnum]; - /** * * @export @@ -2980,27 +3024,20 @@ export interface TableRowBlock { * @type {string} * @memberof TableRowBlock */ - 'type': TableRowBlockTypeEnum; + 'type': string; /** - * - * @type {Array} + * List of children nodes of the current node + * @type {Array} * @memberof TableRowBlock */ - 'alignments': Array | null; + 'children'?: Array; /** - * List of children nodes of the current node - * @type {Array} + * + * @type {Array} * @memberof TableRowBlock */ - 'children'?: Array; + 'alignments': Array | null; } - -export const TableRowBlockTypeEnum = { - TableRow: 'table_row' -} as const; - -export type TableRowBlockTypeEnum = typeof TableRowBlockTypeEnum[keyof typeof TableRowBlockTypeEnum]; - /** * * @export @@ -3012,7 +3049,7 @@ export interface TaskCheckbox { * @type {string} * @memberof TaskCheckbox */ - 'type': TaskCheckboxTypeEnum; + 'type': string; /** * State of the checkbox * @type {boolean} @@ -3020,13 +3057,19 @@ export interface TaskCheckbox { */ 'checked': boolean; } - -export const TaskCheckboxTypeEnum = { - TaskCheckbox: 'task_checkbox' -} as const; - -export type TaskCheckboxTypeEnum = typeof TaskCheckboxTypeEnum[keyof typeof TaskCheckboxTypeEnum]; - +/** + * + * @export + * @interface TaskCheckboxAllOf + */ +export interface TaskCheckboxAllOf { + /** + * State of the checkbox + * @type {boolean} + * @memberof TaskCheckboxAllOf + */ + 'checked': boolean; +} /** * * @export @@ -3038,7 +3081,13 @@ export interface Text { * @type {string} * @memberof Text */ - 'type': TextTypeEnum; + 'type': string; + /** + * List of children nodes of the current node + * @type {Array} + * @memberof Text + */ + 'children'?: Array; /** * * @type {string} @@ -3057,20 +3106,32 @@ export interface Text { * @memberof Text */ 'softBreak'?: boolean; +} +/** + * + * @export + * @interface TextAllOf + */ +export interface TextAllOf { /** - * List of children nodes of the current node - * @type {Array} - * @memberof Text + * + * @type {string} + * @memberof TextAllOf */ - 'children'?: Array; + 'text'?: string; + /** + * If this property is true the end of this block should be a carriage return and not concatenated to the next Text block. + * @type {boolean} + * @memberof TextAllOf + */ + 'hardBreak'?: boolean; + /** + * If this property is true the end of this block should should be concatenated with a space caracter before the next block. This is the flag showing that the parsed markdown block was at the end of the line. + * @type {boolean} + * @memberof TextAllOf + */ + 'softBreak'?: boolean; } - -export const TextTypeEnum = { - Text: 'text' -} as const; - -export type TextTypeEnum = typeof TextTypeEnum[keyof typeof TextTypeEnum]; - /** * * @export @@ -3082,21 +3143,14 @@ export interface TextBlock { * @type {string} * @memberof TextBlock */ - 'type': TextBlockTypeEnum; + 'type': string; /** * List of children nodes of the current node - * @type {Array} + * @type {Array} * @memberof TextBlock */ - 'children'?: Array; + 'children'?: Array; } - -export const TextBlockTypeEnum = { - TextBlock: 'text_block' -} as const; - -export type TextBlockTypeEnum = typeof TextBlockTypeEnum[keyof typeof TextBlockTypeEnum]; - /** * * @export @@ -3171,6 +3225,43 @@ export interface UnauthorizedError { */ 'detail'?: any; } +/** + * + * @export + * @interface UnprocessableContentError + */ +export interface UnprocessableContentError { + /** + * + * @type {any} + * @memberof UnprocessableContentError + */ + 'status'?: any; + /** + * + * @type {any} + * @memberof UnprocessableContentError + */ + 'title'?: any; + /** + * + * @type {any} + * @memberof UnprocessableContentError + */ + 'type'?: any; + /** + * + * @type {any} + * @memberof UnprocessableContentError + */ + 'instance'?: any; + /** + * + * @type {any} + * @memberof UnprocessableContentError + */ + 'detail'?: any; +} /** * Payload required to update an application * @export @@ -3486,7 +3577,7 @@ export const ApplicationsApiAxiosParamCreator = function (configuration?: Config }; }, /** - * **Pre-release Endpoint** This endpoint is currently in beta and is subject to change. Retrieves the granted scopes of a specified application and product version directly from the IDP. Scopes shared between product versions will be returned, even if not currently registered for given product version. Will return 409 if this feature is not supported by the application. + * Retrieves the granted scopes of a specified application and product version directly from the IDP. Scopes shared between product versions will be returned, even if not currently registered for given product version. Will return 409 if this feature is not supported by the application. * @summary Get the granted scopes * @param {string} applicationId Id of the targeted application * @param {string} productVersionId Contains a unique identifier used by the Portal API for this resource. @@ -3668,7 +3759,7 @@ export const ApplicationsApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * **Pre-release Endpoint** This endpoint is currently in beta and is subject to change. Retrieves the granted scopes of a specified application and product version directly from the IDP. Scopes shared between product versions will be returned, even if not currently registered for given product version. Will return 409 if this feature is not supported by the application. + * Retrieves the granted scopes of a specified application and product version directly from the IDP. Scopes shared between product versions will be returned, even if not currently registered for given product version. Will return 409 if this feature is not supported by the application. * @summary Get the granted scopes * @param {string} applicationId Id of the targeted application * @param {string} productVersionId Contains a unique identifier used by the Portal API for this resource. @@ -3747,7 +3838,7 @@ export const ApplicationsApiFactory = function (configuration?: Configuration, b return localVarFp.getApplication(applicationId, options).then((request) => request(axios, basePath)); }, /** - * **Pre-release Endpoint** This endpoint is currently in beta and is subject to change. Retrieves the granted scopes of a specified application and product version directly from the IDP. Scopes shared between product versions will be returned, even if not currently registered for given product version. Will return 409 if this feature is not supported by the application. + * Retrieves the granted scopes of a specified application and product version directly from the IDP. Scopes shared between product versions will be returned, even if not currently registered for given product version. Will return 409 if this feature is not supported by the application. * @summary Get the granted scopes * @param {string} applicationId Id of the targeted application * @param {string} productVersionId Contains a unique identifier used by the Portal API for this resource. @@ -3955,7 +4046,7 @@ export class ApplicationsApi extends BaseAPI { } /** - * **Pre-release Endpoint** This endpoint is currently in beta and is subject to change. Retrieves the granted scopes of a specified application and product version directly from the IDP. Scopes shared between product versions will be returned, even if not currently registered for given product version. Will return 409 if this feature is not supported by the application. + * Retrieves the granted scopes of a specified application and product version directly from the IDP. Scopes shared between product versions will be returned, even if not currently registered for given product version. Will return 409 if this feature is not supported by the application. * @summary Get the granted scopes * @param {ApplicationsApiGetApplicationProductVersionGrantedScopesRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. @@ -6298,6 +6389,46 @@ export const RegistrationsApiAxiosParamCreator = function (configuration?: Confi + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Retrieves the granted scopes of a specified product registration directly from the IDP for an application. Will return 409 if this feature is not supported by the application. + * @summary Get the granted scopes of an application registration + * @param {string} applicationId Id of the targeted application + * @param {string} registrationId Contains a unique identifier used by the Portal API for this resource. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getApplicationRegistrationGrantedScopes: async (applicationId: string, registrationId: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'applicationId' is not null or undefined + assertParamExists('getApplicationRegistrationGrantedScopes', 'applicationId', applicationId) + // verify required parameter 'registrationId' is not null or undefined + assertParamExists('getApplicationRegistrationGrantedScopes', 'registrationId', registrationId) + const localVarPath = `/api/v2/applications/{applicationId}/registrations/{registrationId}/granted-scopes` + .replace(`{${"applicationId"}}`, encodeURIComponent(String(applicationId))) + .replace(`{${"registrationId"}}`, encodeURIComponent(String(registrationId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication portalAccessToken required + + + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -6419,6 +6550,18 @@ export const RegistrationsApiFp = function(configuration?: Configuration) { const localVarAxiosArgs = await localVarAxiosParamCreator.getApplicationRegistration(applicationId, registrationId, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, + /** + * Retrieves the granted scopes of a specified product registration directly from the IDP for an application. Will return 409 if this feature is not supported by the application. + * @summary Get the granted scopes of an application registration + * @param {string} applicationId Id of the targeted application + * @param {string} registrationId Contains a unique identifier used by the Portal API for this resource. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getApplicationRegistrationGrantedScopes(applicationId: string, registrationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getApplicationRegistrationGrantedScopes(applicationId, registrationId, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, /** * Lists product registrations for an application. * @summary Get application registrations @@ -6479,6 +6622,17 @@ export const RegistrationsApiFactory = function (configuration?: Configuration, getApplicationRegistration(applicationId: string, registrationId: string, options?: any): AxiosPromise { return localVarFp.getApplicationRegistration(applicationId, registrationId, options).then((request) => request(axios, basePath)); }, + /** + * Retrieves the granted scopes of a specified product registration directly from the IDP for an application. Will return 409 if this feature is not supported by the application. + * @summary Get the granted scopes of an application registration + * @param {string} applicationId Id of the targeted application + * @param {string} registrationId Contains a unique identifier used by the Portal API for this resource. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getApplicationRegistrationGrantedScopes(applicationId: string, registrationId: string, options?: any): AxiosPromise { + return localVarFp.getApplicationRegistrationGrantedScopes(applicationId, registrationId, options).then((request) => request(axios, basePath)); + }, /** * Lists product registrations for an application. * @summary Get application registrations @@ -6561,6 +6715,27 @@ export interface RegistrationsApiGetApplicationRegistrationRequest { readonly registrationId: string } +/** + * Request parameters for getApplicationRegistrationGrantedScopes operation in RegistrationsApi. + * @export + * @interface RegistrationsApiGetApplicationRegistrationGrantedScopesRequest + */ +export interface RegistrationsApiGetApplicationRegistrationGrantedScopesRequest { + /** + * Id of the targeted application + * @type {string} + * @memberof RegistrationsApiGetApplicationRegistrationGrantedScopes + */ + readonly applicationId: string + + /** + * Contains a unique identifier used by the Portal API for this resource. + * @type {string} + * @memberof RegistrationsApiGetApplicationRegistrationGrantedScopes + */ + readonly registrationId: string +} + /** * Request parameters for listApplicationRegistrations operation in RegistrationsApi. * @export @@ -6660,6 +6835,18 @@ export class RegistrationsApi extends BaseAPI { return RegistrationsApiFp(this.configuration).getApplicationRegistration(requestParameters.applicationId, requestParameters.registrationId, options).then((request) => request(this.axios, this.basePath)); } + /** + * Retrieves the granted scopes of a specified product registration directly from the IDP for an application. Will return 409 if this feature is not supported by the application. + * @summary Get the granted scopes of an application registration + * @param {RegistrationsApiGetApplicationRegistrationGrantedScopesRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RegistrationsApi + */ + public getApplicationRegistrationGrantedScopes(requestParameters: RegistrationsApiGetApplicationRegistrationGrantedScopesRequest, options?: AxiosRequestConfig) { + return RegistrationsApiFp(this.configuration).getApplicationRegistrationGrantedScopes(requestParameters.applicationId, requestParameters.registrationId, options).then((request) => request(this.axios, this.basePath)); + } + /** * Lists product registrations for an application. * @summary Get application registrations