/**
 * Synapse REST API
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: v1
 *
 *
 * 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 { RestrictableObjectDescriptor } from './RestrictableObjectDescriptor';
/**
 * JSON schema for Terms of Use Access Requirement, used for a 'tier 2' Access Requirement
 * @export
 * @interface TermsOfUseAccessRequirement
 */
export interface TermsOfUseAccessRequirement {
    /**
     * The version number issued to this version on the object.
     * @type {number}
     * @memberof TermsOfUseAccessRequirement
     */
    versionNumber?: number;
    /**
     * The unique immutable ID.  Provided by the system, the user may not set this field.
     * @type {number}
     * @memberof TermsOfUseAccessRequirement
     */
    id?: number;
    /**
     * Depricated. Replaced by name.
     * @type {string}
     * @memberof TermsOfUseAccessRequirement
     */
    description?: string;
    /**
     * Name of the AR. Limited to 50 characters and must be unique. Required.
     * @type {string}
     * @memberof TermsOfUseAccessRequirement
     */
    name?: string;
    /**
     * Synapse employs an Optimistic Concurrency Control (OCC) scheme to handle concurrent updates. Since the E-Tag changes every time an entity is updated it is used to detect when a client's current representation of an object is out-of-date.
     * @type {string}
     * @memberof TermsOfUseAccessRequirement
     */
    etag?: string;
    /**
     * The date this object was created. Provided by the system, the user may not set this field.
     * @type {string}
     * @memberof TermsOfUseAccessRequirement
     */
    createdOn?: string;
    /**
     * The date this object was last modified. Provided by the system, the user may not set this field.
     * @type {string}
     * @memberof TermsOfUseAccessRequirement
     */
    modifiedOn?: string;
    /**
     * The user that created this object.  Provided by the system, the user may not set this field.
     * @type {string}
     * @memberof TermsOfUseAccessRequirement
     */
    createdBy?: string;
    /**
     * The user that last modified this object.  Provided by the system, the user may not set this field.
     * @type {string}
     * @memberof TermsOfUseAccessRequirement
     */
    modifiedBy?: string;
    /**
     * Defaults to 'false'.  When 'true', the subjects controlled by this AR are defined by the the'_accessRequirementIds' annotations on individual entities.  This property is mutually exclusive with 'subjectIds'.  If this is set to 'true' then 'subjectIds' must be excluded or empty.
     * @type {boolean}
     * @memberof TermsOfUseAccessRequirement
     */
    subjectsDefinedByAnnotations?: boolean;
    /**
     * The IDs of the items controlled by this Access Requirement when 'subjectsDefinedByAnnotations=false'. This property is mutually exclusive with 'subjectsDefinedByAnnotations'.  When 'subjectsDefinedByAnnotations=true' then this property must be empty or excluded.  Required when creating or updating and 'subjectsDefinedByAnnotations=false' or 'subjectsDefinedByAnnotations' is excluded.
     * @type {Array<RestrictableObjectDescriptor>}
     * @memberof TermsOfUseAccessRequirement
     */
    subjectIds?: Array<RestrictableObjectDescriptor>;
    /**
     * The enumeration of possible permission.
     * @type {string}
     * @memberof TermsOfUseAccessRequirement
     */
    accessType?: TermsOfUseAccessRequirementAccessTypeEnum;
    /**
     * Indicates which type of AccessRequirement this object represents.  Provided by the system, the user may not set this field.
     * @type {string}
     * @memberof TermsOfUseAccessRequirement
     */
    concreteType: TermsOfUseAccessRequirementConcreteTypeEnum;
    /**
     * Terms Of Use for Access, stored directly in the document (versus in a referenced Location)  Required when creating or updating.
     * @type {string}
     * @memberof TermsOfUseAccessRequirement
     */
    termsOfUse?: string;
}
/**
 * @export
 */
export declare const TermsOfUseAccessRequirementAccessTypeEnum: {
    readonly CREATE: "CREATE";
    readonly READ: "READ";
    readonly UPDATE: "UPDATE";
    readonly DELETE: "DELETE";
    readonly CHANGE_PERMISSIONS: "CHANGE_PERMISSIONS";
    readonly DOWNLOAD: "DOWNLOAD";
    readonly UPLOAD: "UPLOAD";
    readonly PARTICIPATE: "PARTICIPATE";
    readonly SUBMIT: "SUBMIT";
    readonly READ_PRIVATE_SUBMISSION: "READ_PRIVATE_SUBMISSION";
    readonly UPDATE_SUBMISSION: "UPDATE_SUBMISSION";
    readonly DELETE_SUBMISSION: "DELETE_SUBMISSION";
    readonly TEAM_MEMBERSHIP_UPDATE: "TEAM_MEMBERSHIP_UPDATE";
    readonly SEND_MESSAGE: "SEND_MESSAGE";
    readonly CHANGE_SETTINGS: "CHANGE_SETTINGS";
    readonly MODERATE: "MODERATE";
    readonly REVIEW_SUBMISSIONS: "REVIEW_SUBMISSIONS";
    readonly EXEMPTION_ELIGIBLE: "EXEMPTION_ELIGIBLE";
};
export type TermsOfUseAccessRequirementAccessTypeEnum = typeof TermsOfUseAccessRequirementAccessTypeEnum[keyof typeof TermsOfUseAccessRequirementAccessTypeEnum];
/**
 * @export
 */
export declare const TermsOfUseAccessRequirementConcreteTypeEnum: {
    readonly org_sagebionetworks_repo_model_TermsOfUseAccessRequirement: "org.sagebionetworks.repo.model.TermsOfUseAccessRequirement";
};
export type TermsOfUseAccessRequirementConcreteTypeEnum = typeof TermsOfUseAccessRequirementConcreteTypeEnum[keyof typeof TermsOfUseAccessRequirementConcreteTypeEnum];
/**
 * Check if a given object implements the TermsOfUseAccessRequirement interface.
 */
export declare function instanceOfTermsOfUseAccessRequirement(value: object): value is TermsOfUseAccessRequirement;
export declare function TermsOfUseAccessRequirementFromJSON(json: any): TermsOfUseAccessRequirement;
export declare function TermsOfUseAccessRequirementFromJSONTyped(json: any, ignoreDiscriminator: boolean): TermsOfUseAccessRequirement;
export declare function TermsOfUseAccessRequirementToJSON(json: any): TermsOfUseAccessRequirement;
export declare function TermsOfUseAccessRequirementToJSONTyped(value?: TermsOfUseAccessRequirement | null, ignoreDiscriminator?: boolean): any;
