/** * Agilicus API * Agilicus is API-first. Modern software is controlled by other software, is open, is available for you to use the way you want, securely, simply. The OpenAPI Specification in YAML format is available on [www](https://www.agilicus.com/www/api/agilicus-openapi.yaml) for importing to other tools. A rendered, online viewable and usable version of this specification is available at [api](https://www.agilicus.com/api). You may try the API inline directly in the web page. To do so, first obtain an Authentication Token (the simplest way is to install the Python SDK, and then run `agilicus-cli --issuer https://MYISSUER get-token`). You will need an org-id for most calls (and can obtain from `agilicus-cli --issuer https://MYISSUER list-orgs`). The `MYISSUER` will typically be `auth.MYDOMAIN`, and you will see it as you sign-in to the administrative UI. This API releases on Bearer-Token authentication. To obtain a valid bearer token you will need to Authenticate to an Issuer with OpenID Connect (a superset of OAUTH2). Your \"issuer\" will look like https://auth.MYDOMAIN. For example, when you signed-up, if you said \"use my own domain name\" and assigned a CNAME of cloud.example.com, then your issuer would be https://auth.cloud.example.com. If you selected \"use an Agilicus supplied domain name\", your issuer would look like https://auth.myorg.agilicus.cloud. For test purposes you can use our [Python SDK](https://pypi.org/project/agilicus/) and run `agilicus-cli --issuer https://auth.MYDOMAIN get-token`. This API may be used in any language runtime that supports OpenAPI 3.0, or, you may use our [Python SDK](https://pypi.org/project/agilicus/), our [Typescript SDK](https://www.npmjs.com/package/@agilicus/angular), or our [Golang SDK](https://git.agilicus.com/pub/sdk-go). 100% of the activities in our system our API-driven, from our web-admin, through our progressive web applications, to all internals: there is nothing that is not accessible. For more information, see [developer resources](https://www.agilicus.com/developer). * * The version of the OpenAPI document: 2025.12.16 * Contact: dev@agilicus.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ export interface _PolicyCondition { /** * The type of this condition. The type determines how the value will be evaluated. This parameter is case sensitive. */ condition_type: PolicyCondition.ConditionTypeEnum; /** * This field is deprecated. Whether to invert the condition (ie the not operator). If the condition is `a == b` inverting the condition results in `not (a == b)` */ inverted?: boolean; /** * Whether the input to the condition is in a list. The semantics of the condition when this flag is set is to compare every item in the list to the `value` using the `operator`. The condition is satisfied if any item in the list evaluates to true */ input_is_list?: boolean; /** * A JSON string representing the value to compare against. The structure of the comparision and type of the value depends on the condition type. A comparision is done to determine the result of the condition (either `true` or `false`) */ value: string; /** * The operator used to evaluate this condition. The operator field only applies when the condition type is type_object_attribute. The other types have implied operators. */ operator: PolicyCondition.OperatorEnum; /** * The object path to a field to use as input to the policy condition. This field only applies when the condition type is type_object_attribute. The supported objects are currently `users`, and `clients`. */ field?: string; /** * Creation time */ readonly created?: Date; /** * Update time */ readonly updated?: Date; } export interface PolicyCondition extends _PolicyCondition { _builtin_original?: _PolicyCondition; _remove_builtin_extensions?: () => void; } export declare class PolicyConditionImpl implements _PolicyCondition { _builtin_original?: _PolicyCondition; condition_type: PolicyCondition.ConditionTypeEnum; inverted: boolean | undefined; input_is_list: boolean | undefined; value: string; operator: PolicyCondition.OperatorEnum; field: string | undefined; readonly created: Date | undefined; readonly updated: Date | undefined; constructor(base: _PolicyCondition); _remove_builtin_extensions(): void; } export declare namespace PolicyCondition { type ConditionTypeEnum = 'type_client_id_list' | 'type_org_id_list' | 'type_user_id_list' | 'type_upstream_idp_list' | 'type_ip_in_cidr_list' | 'type_last_successful_mfa' | 'type_object_attribute' | 'type_user_has_enrolled_multifactor_method'; const ConditionTypeEnum: { client_id_list: ConditionTypeEnum; org_id_list: ConditionTypeEnum; user_id_list: ConditionTypeEnum; upstream_idp_list: ConditionTypeEnum; ip_in_cidr_list: ConditionTypeEnum; last_successful_mfa: ConditionTypeEnum; object_attribute: ConditionTypeEnum; user_has_enrolled_multifactor_method: ConditionTypeEnum; }; type OperatorEnum = 'equals' | 'not_equals' | 'greater_than' | 'less_than' | 'in' | 'not_in'; const OperatorEnum: { equals: OperatorEnum; not_equals: OperatorEnum; greater_than: OperatorEnum; less_than: OperatorEnum; in: OperatorEnum; not_in: OperatorEnum; }; } export declare function newPolicyConditionImpl(base: _PolicyCondition): PolicyConditionImpl;