/* tslint:disable */ /* eslint-disable */ /** * NERM API v2025 * The NERM API v2025 accesss and modifies resources in your environment. * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { Configuration } from '../configuration'; import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common'; import type { RequestArgs } from './base'; // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base'; /** * * @export * @interface DelegateUserNERMV2025 */ export interface DelegateUserNERMV2025 { /** * The id of the delegate user * @type {string} * @memberof DelegateUserNERMV2025 */ 'id'?: string; /** * The uid of the delegate user * @type {string} * @memberof DelegateUserNERMV2025 */ 'uid'?: string; /** * The type of the delegate user * @type {string} * @memberof DelegateUserNERMV2025 */ 'type'?: string; /** * The name of the delegate user * @type {string} * @memberof DelegateUserNERMV2025 */ 'name'?: string; /** * The email of the delegate user * @type {string} * @memberof DelegateUserNERMV2025 */ 'email'?: string; /** * The status of the delegate user * @type {string} * @memberof DelegateUserNERMV2025 */ 'status'?: string; /** * The login of the delegate user * @type {string} * @memberof DelegateUserNERMV2025 */ 'login'?: string; /** * The last login timestamp of the delegate user * @type {string} * @memberof DelegateUserNERMV2025 */ 'last_login'?: string; /** * The date-time the record created. * @type {string} * @memberof DelegateUserNERMV2025 */ 'created_at'?: string; /** * The date-time the record was last updated. * @type {string} * @memberof DelegateUserNERMV2025 */ 'updated_at'?: string; } /** * * @export * @interface Delegation1NERMV2025 */ export interface Delegation1NERMV2025 { /** * The id of the delegation * @type {string} * @memberof Delegation1NERMV2025 */ 'id'?: string; /** * The id of the delegator user * @type {object} * @memberof Delegation1NERMV2025 */ 'delegator_id'?: object; /** * The id of the delegate user * @type {object} * @memberof Delegation1NERMV2025 */ 'delegate_id'?: object; /** * The expiration date of the delegation * @type {string} * @memberof Delegation1NERMV2025 */ 'expiration'?: string; /** * Indicates if the delegation is expired * @type {boolean} * @memberof Delegation1NERMV2025 */ 'expired'?: boolean; /** * The date-time the record created. * @type {string} * @memberof Delegation1NERMV2025 */ 'created_at'?: string; /** * The date-time the record was last updated. * @type {string} * @memberof Delegation1NERMV2025 */ 'updated_at'?: string; } /** * * @export * @interface Delegation2NERMV2025 */ export interface Delegation2NERMV2025 { /** * The id of the delegator * @type {string} * @memberof Delegation2NERMV2025 */ 'delegator_id'?: string; /** * The id of the delegate * @type {string} * @memberof Delegation2NERMV2025 */ 'delegate_id'?: string; /** * The expiration date of the delegation * @type {string} * @memberof Delegation2NERMV2025 */ 'expiration'?: string; } /** * * @export * @interface DelegationNERMV2025 */ export interface DelegationNERMV2025 { /** * The id of the delegation * @type {string} * @memberof DelegationNERMV2025 */ 'id'?: string; /** * The id of the delegator user * @type {object} * @memberof DelegationNERMV2025 */ 'delegator_id'?: object; /** * The id of the delegate user * @type {object} * @memberof DelegationNERMV2025 */ 'delegate_id'?: object; /** * * @type {DelegatorUserNERMV2025} * @memberof DelegationNERMV2025 */ 'delegator'?: DelegatorUserNERMV2025; /** * * @type {DelegateUserNERMV2025} * @memberof DelegationNERMV2025 */ 'delegate'?: DelegateUserNERMV2025; /** * The expiration date of the delegation * @type {string} * @memberof DelegationNERMV2025 */ 'expiration'?: string; /** * Indicates if the delegation is expired * @type {boolean} * @memberof DelegationNERMV2025 */ 'expired'?: boolean; /** * The date-time the record created. * @type {string} * @memberof DelegationNERMV2025 */ 'created_at'?: string; /** * The date-time the record was last updated. * @type {string} * @memberof DelegationNERMV2025 */ 'updated_at'?: string; } /** * * @export * @interface DelegationsGet200ResponseNERMV2025 */ export interface DelegationsGet200ResponseNERMV2025 { /** * * @type {Array} * @memberof DelegationsGet200ResponseNERMV2025 */ 'delegations'?: Array; } /** * * @export * @interface DelegationsGet500ResponseNERMV2025 */ export interface DelegationsGet500ResponseNERMV2025 { /** * A message describing the error * @type {object} * @memberof DelegationsGet500ResponseNERMV2025 */ 'error'?: object; } /** * * @export * @interface DelegationsPost201ResponseNERMV2025 */ export interface DelegationsPost201ResponseNERMV2025 { /** * * @type {Delegation1NERMV2025} * @memberof DelegationsPost201ResponseNERMV2025 */ 'delegation'?: Delegation1NERMV2025; } /** * * @export * @interface DelegationsPost404ResponseNERMV2025 */ export interface DelegationsPost404ResponseNERMV2025 { /** * The requested record, either ID or UID, was not found * @type {object} * @memberof DelegationsPost404ResponseNERMV2025 */ 'error'?: object; } /** * * @export * @interface DelegationsPostRequestNERMV2025 */ export interface DelegationsPostRequestNERMV2025 { /** * * @type {Delegation2NERMV2025} * @memberof DelegationsPostRequestNERMV2025 */ 'delegation'?: Delegation2NERMV2025; } /** * * @export * @interface DelegatorUserNERMV2025 */ export interface DelegatorUserNERMV2025 { /** * The id of the delegator user * @type {string} * @memberof DelegatorUserNERMV2025 */ 'id'?: string; /** * The uid of the delegator user * @type {string} * @memberof DelegatorUserNERMV2025 */ 'uid'?: string; /** * The type of the delegator user * @type {string} * @memberof DelegatorUserNERMV2025 */ 'type'?: string; /** * The name of the delegator user * @type {string} * @memberof DelegatorUserNERMV2025 */ 'name'?: string; /** * The email of the delegator user * @type {string} * @memberof DelegatorUserNERMV2025 */ 'email'?: string; /** * The status of the delegator user * @type {string} * @memberof DelegatorUserNERMV2025 */ 'status'?: string; /** * The login of the delegator user * @type {string} * @memberof DelegatorUserNERMV2025 */ 'login'?: string; /** * The last login timestamp of the delegator user * @type {string} * @memberof DelegatorUserNERMV2025 */ 'last_login'?: string; /** * The date-time the record created. * @type {string} * @memberof DelegatorUserNERMV2025 */ 'created_at'?: string; /** * The date-time the record was last updated. * @type {string} * @memberof DelegatorUserNERMV2025 */ 'updated_at'?: string; } /** * DelegationsNERMV2025Api - axios parameter creator * @export */ export const DelegationsNERMV2025ApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Returns a list of delegation records, optionally filtered by delegate, delegator, or expiration status. * @summary List delegations * @param {string} [delegateId] Filter by delegate ID * @param {string} [delegatorId] Filter by delegator ID * @param {boolean} [expired] Filter by expiration status (true for expired, false for not expired) * @param {number} [limit] The maximum number of items to return. * @param {number} [offset] The number of items to skip before starting to collect the result set. * @param {string} [include] Include related resources body. For example, \'include=delegator,delegate\'. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ delegationsGet: async (delegateId?: string, delegatorId?: string, expired?: boolean, limit?: number, offset?: number, include?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/delegations`; // 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, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) if (delegateId !== undefined) { localVarQueryParameter['delegate_id'] = delegateId; } if (delegatorId !== undefined) { localVarQueryParameter['delegator_id'] = delegatorId; } if (expired !== undefined) { localVarQueryParameter['expired'] = expired; } if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (offset !== undefined) { localVarQueryParameter['offset'] = offset; } if (include !== undefined) { localVarQueryParameter['include'] = include; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Delete an existing delegation record. * @summary Delete a delegation * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ delegationsIdDelete: async (id: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('delegationsIdDelete', 'id', id) const localVarPath = `/delegations/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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: 'DELETE', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Returns a single delegation record by its ID. * @summary Get a single delegation * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ delegationsIdGet: async (id: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('delegationsIdGet', 'id', id) const localVarPath = `/delegations/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Update an existing delegation record. * @summary Update a delegation * @param {string} id ID of the object to retrieve, update, or delete * @param {DelegationsPostRequestNERMV2025} delegationsPostRequestNERMV2025 * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ delegationsIdPatch: async (id: string, delegationsPostRequestNERMV2025: DelegationsPostRequestNERMV2025, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('delegationsIdPatch', 'id', id) // verify required parameter 'delegationsPostRequestNERMV2025' is not null or undefined assertParamExists('delegationsIdPatch', 'delegationsPostRequestNERMV2025', delegationsPostRequestNERMV2025) const localVarPath = `/delegations/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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: 'PATCH', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(delegationsPostRequestNERMV2025, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Create a new delegation record. * @summary Create a delegation * @param {DelegationsPostRequestNERMV2025} delegationsPostRequestNERMV2025 * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ delegationsPost: async (delegationsPostRequestNERMV2025: DelegationsPostRequestNERMV2025, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'delegationsPostRequestNERMV2025' is not null or undefined assertParamExists('delegationsPost', 'delegationsPostRequestNERMV2025', delegationsPostRequestNERMV2025) const localVarPath = `/delegations`; // 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: 'POST', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) // authentication userAuth required // oauth required await setOAuthToObject(localVarHeaderParameter, "userAuth", [], configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(delegationsPostRequestNERMV2025, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, } }; /** * DelegationsNERMV2025Api - functional programming interface * @export */ export const DelegationsNERMV2025ApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = DelegationsNERMV2025ApiAxiosParamCreator(configuration) return { /** * Returns a list of delegation records, optionally filtered by delegate, delegator, or expiration status. * @summary List delegations * @param {string} [delegateId] Filter by delegate ID * @param {string} [delegatorId] Filter by delegator ID * @param {boolean} [expired] Filter by expiration status (true for expired, false for not expired) * @param {number} [limit] The maximum number of items to return. * @param {number} [offset] The number of items to skip before starting to collect the result set. * @param {string} [include] Include related resources body. For example, \'include=delegator,delegate\'. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async delegationsGet(delegateId?: string, delegatorId?: string, expired?: boolean, limit?: number, offset?: number, include?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.delegationsGet(delegateId, delegatorId, expired, limit, offset, include, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DelegationsNERMV2025Api.delegationsGet']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Delete an existing delegation record. * @summary Delete a delegation * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async delegationsIdDelete(id: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.delegationsIdDelete(id, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DelegationsNERMV2025Api.delegationsIdDelete']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Returns a single delegation record by its ID. * @summary Get a single delegation * @param {string} id ID of the object to retrieve, update, or delete * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async delegationsIdGet(id: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.delegationsIdGet(id, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DelegationsNERMV2025Api.delegationsIdGet']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update an existing delegation record. * @summary Update a delegation * @param {string} id ID of the object to retrieve, update, or delete * @param {DelegationsPostRequestNERMV2025} delegationsPostRequestNERMV2025 * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async delegationsIdPatch(id: string, delegationsPostRequestNERMV2025: DelegationsPostRequestNERMV2025, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.delegationsIdPatch(id, delegationsPostRequestNERMV2025, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DelegationsNERMV2025Api.delegationsIdPatch']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create a new delegation record. * @summary Create a delegation * @param {DelegationsPostRequestNERMV2025} delegationsPostRequestNERMV2025 * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async delegationsPost(delegationsPostRequestNERMV2025: DelegationsPostRequestNERMV2025, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.delegationsPost(delegationsPostRequestNERMV2025, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DelegationsNERMV2025Api.delegationsPost']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * DelegationsNERMV2025Api - factory interface * @export */ export const DelegationsNERMV2025ApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = DelegationsNERMV2025ApiFp(configuration) return { /** * Returns a list of delegation records, optionally filtered by delegate, delegator, or expiration status. * @summary List delegations * @param {DelegationsNERMV2025ApiDelegationsGetRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ delegationsGet(requestParameters: DelegationsNERMV2025ApiDelegationsGetRequest = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.delegationsGet(requestParameters.delegateId, requestParameters.delegatorId, requestParameters.expired, requestParameters.limit, requestParameters.offset, requestParameters.include, axiosOptions).then((request) => request(axios, basePath)); }, /** * Delete an existing delegation record. * @summary Delete a delegation * @param {DelegationsNERMV2025ApiDelegationsIdDeleteRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ delegationsIdDelete(requestParameters: DelegationsNERMV2025ApiDelegationsIdDeleteRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.delegationsIdDelete(requestParameters.id, axiosOptions).then((request) => request(axios, basePath)); }, /** * Returns a single delegation record by its ID. * @summary Get a single delegation * @param {DelegationsNERMV2025ApiDelegationsIdGetRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ delegationsIdGet(requestParameters: DelegationsNERMV2025ApiDelegationsIdGetRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.delegationsIdGet(requestParameters.id, axiosOptions).then((request) => request(axios, basePath)); }, /** * Update an existing delegation record. * @summary Update a delegation * @param {DelegationsNERMV2025ApiDelegationsIdPatchRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ delegationsIdPatch(requestParameters: DelegationsNERMV2025ApiDelegationsIdPatchRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.delegationsIdPatch(requestParameters.id, requestParameters.delegationsPostRequestNERMV2025, axiosOptions).then((request) => request(axios, basePath)); }, /** * Create a new delegation record. * @summary Create a delegation * @param {DelegationsNERMV2025ApiDelegationsPostRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ delegationsPost(requestParameters: DelegationsNERMV2025ApiDelegationsPostRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.delegationsPost(requestParameters.delegationsPostRequestNERMV2025, axiosOptions).then((request) => request(axios, basePath)); }, }; }; /** * Request parameters for delegationsGet operation in DelegationsNERMV2025Api. * @export * @interface DelegationsNERMV2025ApiDelegationsGetRequest */ export interface DelegationsNERMV2025ApiDelegationsGetRequest { /** * Filter by delegate ID * @type {string} * @memberof DelegationsNERMV2025ApiDelegationsGet */ readonly delegateId?: string /** * Filter by delegator ID * @type {string} * @memberof DelegationsNERMV2025ApiDelegationsGet */ readonly delegatorId?: string /** * Filter by expiration status (true for expired, false for not expired) * @type {boolean} * @memberof DelegationsNERMV2025ApiDelegationsGet */ readonly expired?: boolean /** * The maximum number of items to return. * @type {number} * @memberof DelegationsNERMV2025ApiDelegationsGet */ readonly limit?: number /** * The number of items to skip before starting to collect the result set. * @type {number} * @memberof DelegationsNERMV2025ApiDelegationsGet */ readonly offset?: number /** * Include related resources body. For example, \'include=delegator,delegate\'. * @type {string} * @memberof DelegationsNERMV2025ApiDelegationsGet */ readonly include?: string } /** * Request parameters for delegationsIdDelete operation in DelegationsNERMV2025Api. * @export * @interface DelegationsNERMV2025ApiDelegationsIdDeleteRequest */ export interface DelegationsNERMV2025ApiDelegationsIdDeleteRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof DelegationsNERMV2025ApiDelegationsIdDelete */ readonly id: string } /** * Request parameters for delegationsIdGet operation in DelegationsNERMV2025Api. * @export * @interface DelegationsNERMV2025ApiDelegationsIdGetRequest */ export interface DelegationsNERMV2025ApiDelegationsIdGetRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof DelegationsNERMV2025ApiDelegationsIdGet */ readonly id: string } /** * Request parameters for delegationsIdPatch operation in DelegationsNERMV2025Api. * @export * @interface DelegationsNERMV2025ApiDelegationsIdPatchRequest */ export interface DelegationsNERMV2025ApiDelegationsIdPatchRequest { /** * ID of the object to retrieve, update, or delete * @type {string} * @memberof DelegationsNERMV2025ApiDelegationsIdPatch */ readonly id: string /** * * @type {DelegationsPostRequestNERMV2025} * @memberof DelegationsNERMV2025ApiDelegationsIdPatch */ readonly delegationsPostRequestNERMV2025: DelegationsPostRequestNERMV2025 } /** * Request parameters for delegationsPost operation in DelegationsNERMV2025Api. * @export * @interface DelegationsNERMV2025ApiDelegationsPostRequest */ export interface DelegationsNERMV2025ApiDelegationsPostRequest { /** * * @type {DelegationsPostRequestNERMV2025} * @memberof DelegationsNERMV2025ApiDelegationsPost */ readonly delegationsPostRequestNERMV2025: DelegationsPostRequestNERMV2025 } /** * DelegationsNERMV2025Api - object-oriented interface * @export * @class DelegationsNERMV2025Api * @extends {BaseAPI} */ export class DelegationsNERMV2025Api extends BaseAPI { /** * Returns a list of delegation records, optionally filtered by delegate, delegator, or expiration status. * @summary List delegations * @param {DelegationsNERMV2025ApiDelegationsGetRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof DelegationsNERMV2025Api */ public delegationsGet(requestParameters: DelegationsNERMV2025ApiDelegationsGetRequest = {}, axiosOptions?: RawAxiosRequestConfig) { return DelegationsNERMV2025ApiFp(this.configuration).delegationsGet(requestParameters.delegateId, requestParameters.delegatorId, requestParameters.expired, requestParameters.limit, requestParameters.offset, requestParameters.include, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Delete an existing delegation record. * @summary Delete a delegation * @param {DelegationsNERMV2025ApiDelegationsIdDeleteRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof DelegationsNERMV2025Api */ public delegationsIdDelete(requestParameters: DelegationsNERMV2025ApiDelegationsIdDeleteRequest, axiosOptions?: RawAxiosRequestConfig) { return DelegationsNERMV2025ApiFp(this.configuration).delegationsIdDelete(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Returns a single delegation record by its ID. * @summary Get a single delegation * @param {DelegationsNERMV2025ApiDelegationsIdGetRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof DelegationsNERMV2025Api */ public delegationsIdGet(requestParameters: DelegationsNERMV2025ApiDelegationsIdGetRequest, axiosOptions?: RawAxiosRequestConfig) { return DelegationsNERMV2025ApiFp(this.configuration).delegationsIdGet(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Update an existing delegation record. * @summary Update a delegation * @param {DelegationsNERMV2025ApiDelegationsIdPatchRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof DelegationsNERMV2025Api */ public delegationsIdPatch(requestParameters: DelegationsNERMV2025ApiDelegationsIdPatchRequest, axiosOptions?: RawAxiosRequestConfig) { return DelegationsNERMV2025ApiFp(this.configuration).delegationsIdPatch(requestParameters.id, requestParameters.delegationsPostRequestNERMV2025, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Create a new delegation record. * @summary Create a delegation * @param {DelegationsNERMV2025ApiDelegationsPostRequest} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof DelegationsNERMV2025Api */ public delegationsPost(requestParameters: DelegationsNERMV2025ApiDelegationsPostRequest, axiosOptions?: RawAxiosRequestConfig) { return DelegationsNERMV2025ApiFp(this.configuration).delegationsPost(requestParameters.delegationsPostRequestNERMV2025, axiosOptions).then((request) => request(this.axios, this.basePath)); } }