/** * Webitel API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 24.04.0 * Contact: support@webitel.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { AxiosPromise, AxiosInstance } from 'axios'; import { Configuration } from '../configuration'; import { RequestArgs, BaseAPI } from '../base'; import { ApiAccessStoreToggleDefaultAccessBody } from '../api'; import { ApiGrantAccessRequestV1 } from '../api'; import { ApiListAccessResponseV1 } from '../api'; import { ApiToggleDefaultAccessResponse } from '../api'; import { ApiUpdateAccessResponseV1 } from '../api'; /** * AccessStoreApi - axios parameter creator * @export */ export declare const AccessStoreApiAxiosParamCreator: (configuration?: Configuration) => { /** * * @summary default: TODO: indicate objclass=default as a default rights repo * @param {string} objectName display name * @param {string} objectId identifier * @param {Array} [grantor] --- filters --- [optional] [FROM] each rule owner is any of role(s) id; user -or- role * @param {Array} [grantee] [optional] [TO] subject role(s) id; user -or- role * @param {Array} [granted] [xrwdxrwd] [R]ecord-[b]ased-[A]ccess-[C]ontrol level check(!) * @param {string} [q] [optional] [TO] subject.name ILIKE ?q=; user -or- role * @param {Array} [fields] ----- Select Options ------------------------- attributes list * @param {Array} [sort] e.g.: \"updated_at\" - ASC; \"!updated_at\" - DESC; * @param {number} [size] pagedResultsControl default: 16 * @param {number} [page] default: 1 * @param {*} [options] Override http request option. * @throws {RequiredError} */ listDefaultAccess: (objectName: string, objectId: string, grantor?: Array, grantee?: Array, granted?: Array, q?: string, fields?: Array, sort?: Array, size?: number, page?: number, options?: any) => Promise; /** * * @param {string} objectName display name * @param {string} objectId identifier * @param {Array} [grantor] --- filters --- [optional] [FROM] each rule owner is any of role(s) id; user -or- role * @param {Array} [grantee] [optional] [TO] subject role(s) id; user -or- role * @param {Array} [granted] [xrwdxrwd] [R]ecord-[b]ased-[A]ccess-[C]ontrol level check(!) * @param {string} [q] [optional] [TO] subject.name ILIKE ?q=; user -or- role * @param {Array} [fields] ----- Select Options ------------------------- attributes list * @param {Array} [sort] e.g.: \"updated_at\" - ASC; \"!updated_at\" - DESC; * @param {number} [size] pagedResultsControl default: 16 * @param {number} [page] default: 1 * @param {*} [options] Override http request option. * @throws {RequiredError} */ listObjectAccess: (objectName: string, objectId: string, grantor?: Array, grantee?: Array, granted?: Array, q?: string, fields?: Array, sort?: Array, size?: number, page?: number, options?: any) => Promise; /** * * @summary Same as UpdateAccess except for DEFAULT access control system * @param {string} objectName display name * @param {string} objectId identifier * @param {string} grantor [FOR] creator user/role * @param {ApiAccessStoreToggleDefaultAccessBody} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ toggleDefaultAccess: (objectName: string, objectId: string, grantor: string, body: ApiAccessStoreToggleDefaultAccessBody, options?: any) => Promise; /** * * @summary TODO: replace with GrantAccess API, to become command like GRANT REVOKE ... with empty access rights string * @param {string} objectName display name * @param {string} objectId identifier * @param {Array} list * @param {*} [options] Override http request option. * @throws {RequiredError} */ toggleObjectAccess: (objectName: string, objectId: string, list: Array, options?: any) => Promise; }; /** * AccessStoreApi - functional programming interface * @export */ export declare const AccessStoreApiFp: (configuration?: Configuration) => { /** * * @summary default: TODO: indicate objclass=default as a default rights repo * @param {string} objectName display name * @param {string} objectId identifier * @param {Array} [grantor] --- filters --- [optional] [FROM] each rule owner is any of role(s) id; user -or- role * @param {Array} [grantee] [optional] [TO] subject role(s) id; user -or- role * @param {Array} [granted] [xrwdxrwd] [R]ecord-[b]ased-[A]ccess-[C]ontrol level check(!) * @param {string} [q] [optional] [TO] subject.name ILIKE ?q=; user -or- role * @param {Array} [fields] ----- Select Options ------------------------- attributes list * @param {Array} [sort] e.g.: \"updated_at\" - ASC; \"!updated_at\" - DESC; * @param {number} [size] pagedResultsControl default: 16 * @param {number} [page] default: 1 * @param {*} [options] Override http request option. * @throws {RequiredError} */ listDefaultAccess(objectName: string, objectId: string, grantor?: Array, grantee?: Array, granted?: Array, q?: string, fields?: Array, sort?: Array, size?: number, page?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @param {string} objectName display name * @param {string} objectId identifier * @param {Array} [grantor] --- filters --- [optional] [FROM] each rule owner is any of role(s) id; user -or- role * @param {Array} [grantee] [optional] [TO] subject role(s) id; user -or- role * @param {Array} [granted] [xrwdxrwd] [R]ecord-[b]ased-[A]ccess-[C]ontrol level check(!) * @param {string} [q] [optional] [TO] subject.name ILIKE ?q=; user -or- role * @param {Array} [fields] ----- Select Options ------------------------- attributes list * @param {Array} [sort] e.g.: \"updated_at\" - ASC; \"!updated_at\" - DESC; * @param {number} [size] pagedResultsControl default: 16 * @param {number} [page] default: 1 * @param {*} [options] Override http request option. * @throws {RequiredError} */ listObjectAccess(objectName: string, objectId: string, grantor?: Array, grantee?: Array, granted?: Array, q?: string, fields?: Array, sort?: Array, size?: number, page?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Same as UpdateAccess except for DEFAULT access control system * @param {string} objectName display name * @param {string} objectId identifier * @param {string} grantor [FOR] creator user/role * @param {ApiAccessStoreToggleDefaultAccessBody} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ toggleDefaultAccess(objectName: string, objectId: string, grantor: string, body: ApiAccessStoreToggleDefaultAccessBody, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary TODO: replace with GrantAccess API, to become command like GRANT REVOKE ... with empty access rights string * @param {string} objectName display name * @param {string} objectId identifier * @param {Array} list * @param {*} [options] Override http request option. * @throws {RequiredError} */ toggleObjectAccess(objectName: string, objectId: string, list: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; }; /** * AccessStoreApi - factory interface * @export */ export declare const AccessStoreApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * * @summary default: TODO: indicate objclass=default as a default rights repo * @param {string} objectName display name * @param {string} objectId identifier * @param {Array} [grantor] --- filters --- [optional] [FROM] each rule owner is any of role(s) id; user -or- role * @param {Array} [grantee] [optional] [TO] subject role(s) id; user -or- role * @param {Array} [granted] [xrwdxrwd] [R]ecord-[b]ased-[A]ccess-[C]ontrol level check(!) * @param {string} [q] [optional] [TO] subject.name ILIKE ?q=; user -or- role * @param {Array} [fields] ----- Select Options ------------------------- attributes list * @param {Array} [sort] e.g.: \"updated_at\" - ASC; \"!updated_at\" - DESC; * @param {number} [size] pagedResultsControl default: 16 * @param {number} [page] default: 1 * @param {*} [options] Override http request option. * @throws {RequiredError} */ listDefaultAccess(objectName: string, objectId: string, grantor?: Array, grantee?: Array, granted?: Array, q?: string, fields?: Array, sort?: Array, size?: number, page?: number, options?: any): AxiosPromise; /** * * @param {string} objectName display name * @param {string} objectId identifier * @param {Array} [grantor] --- filters --- [optional] [FROM] each rule owner is any of role(s) id; user -or- role * @param {Array} [grantee] [optional] [TO] subject role(s) id; user -or- role * @param {Array} [granted] [xrwdxrwd] [R]ecord-[b]ased-[A]ccess-[C]ontrol level check(!) * @param {string} [q] [optional] [TO] subject.name ILIKE ?q=; user -or- role * @param {Array} [fields] ----- Select Options ------------------------- attributes list * @param {Array} [sort] e.g.: \"updated_at\" - ASC; \"!updated_at\" - DESC; * @param {number} [size] pagedResultsControl default: 16 * @param {number} [page] default: 1 * @param {*} [options] Override http request option. * @throws {RequiredError} */ listObjectAccess(objectName: string, objectId: string, grantor?: Array, grantee?: Array, granted?: Array, q?: string, fields?: Array, sort?: Array, size?: number, page?: number, options?: any): AxiosPromise; /** * * @summary Same as UpdateAccess except for DEFAULT access control system * @param {string} objectName display name * @param {string} objectId identifier * @param {string} grantor [FOR] creator user/role * @param {ApiAccessStoreToggleDefaultAccessBody} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ toggleDefaultAccess(objectName: string, objectId: string, grantor: string, body: ApiAccessStoreToggleDefaultAccessBody, options?: any): AxiosPromise; /** * * @summary TODO: replace with GrantAccess API, to become command like GRANT REVOKE ... with empty access rights string * @param {string} objectName display name * @param {string} objectId identifier * @param {Array} list * @param {*} [options] Override http request option. * @throws {RequiredError} */ toggleObjectAccess(objectName: string, objectId: string, list: Array, options?: any): AxiosPromise; }; /** * AccessStoreApi - object-oriented interface * @export * @class AccessStoreApi * @extends {BaseAPI} */ export declare class AccessStoreApi extends BaseAPI { /** * * @summary default: TODO: indicate objclass=default as a default rights repo * @param {string} objectName display name * @param {string} objectId identifier * @param {Array} [grantor] --- filters --- [optional] [FROM] each rule owner is any of role(s) id; user -or- role * @param {Array} [grantee] [optional] [TO] subject role(s) id; user -or- role * @param {Array} [granted] [xrwdxrwd] [R]ecord-[b]ased-[A]ccess-[C]ontrol level check(!) * @param {string} [q] [optional] [TO] subject.name ILIKE ?q=; user -or- role * @param {Array} [fields] ----- Select Options ------------------------- attributes list * @param {Array} [sort] e.g.: \"updated_at\" - ASC; \"!updated_at\" - DESC; * @param {number} [size] pagedResultsControl default: 16 * @param {number} [page] default: 1 * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccessStoreApi */ listDefaultAccess(objectName: string, objectId: string, grantor?: Array, grantee?: Array, granted?: Array, q?: string, fields?: Array, sort?: Array, size?: number, page?: number, options?: any): Promise>; /** * * @param {string} objectName display name * @param {string} objectId identifier * @param {Array} [grantor] --- filters --- [optional] [FROM] each rule owner is any of role(s) id; user -or- role * @param {Array} [grantee] [optional] [TO] subject role(s) id; user -or- role * @param {Array} [granted] [xrwdxrwd] [R]ecord-[b]ased-[A]ccess-[C]ontrol level check(!) * @param {string} [q] [optional] [TO] subject.name ILIKE ?q=; user -or- role * @param {Array} [fields] ----- Select Options ------------------------- attributes list * @param {Array} [sort] e.g.: \"updated_at\" - ASC; \"!updated_at\" - DESC; * @param {number} [size] pagedResultsControl default: 16 * @param {number} [page] default: 1 * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccessStoreApi */ listObjectAccess(objectName: string, objectId: string, grantor?: Array, grantee?: Array, granted?: Array, q?: string, fields?: Array, sort?: Array, size?: number, page?: number, options?: any): Promise>; /** * * @summary Same as UpdateAccess except for DEFAULT access control system * @param {string} objectName display name * @param {string} objectId identifier * @param {string} grantor [FOR] creator user/role * @param {ApiAccessStoreToggleDefaultAccessBody} body * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccessStoreApi */ toggleDefaultAccess(objectName: string, objectId: string, grantor: string, body: ApiAccessStoreToggleDefaultAccessBody, options?: any): Promise>; /** * * @summary TODO: replace with GrantAccess API, to become command like GRANT REVOKE ... with empty access rights string * @param {string} objectName display name * @param {string} objectId identifier * @param {Array} list * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccessStoreApi */ toggleObjectAccess(objectName: string, objectId: string, list: Array, options?: any): Promise>; } //# sourceMappingURL=access-store-api.d.ts.map