/** * 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. */ import { HttpHeaders } from '@angular/common/http'; import { Observable } from 'rxjs'; import { ListStandaloneRulePoliciesResponse } from '../model/models'; import { ListStandaloneRuleTreesResponse } from '../model/models'; import { ListStandaloneRulesResponse } from '../model/models'; import { ListStandaloneRulesetBundlesResponse } from '../model/models'; import { ListStandaloneRulesetLabelsResponse } from '../model/models'; import { ListStandaloneRulesetsResponse } from '../model/models'; import { StandaloneRule } from '../model/models'; import { StandaloneRulePolicy } from '../model/models'; import { StandaloneRuleTree } from '../model/models'; import { StandaloneRulesCleanup } from '../model/models'; import { StandaloneRuleset } from '../model/models'; import { StandaloneRulesetBundle } from '../model/models'; import { StandaloneRulesetLabel } from '../model/models'; import { Configuration } from '../configuration'; export interface CleanupStandaloneRulesRequestParams { StandaloneRulesCleanup?: StandaloneRulesCleanup; } export interface CreateRulesetLabelRequestParams { StandaloneRulesetLabel: StandaloneRulesetLabel; } export interface CreateStandaloneRuleRequestParams { StandaloneRule: StandaloneRule; } export interface CreateStandaloneRulePolicyRequestParams { StandaloneRulePolicy: StandaloneRulePolicy; } export interface CreateStandaloneRuleTreeRequestParams { StandaloneRuleTree: StandaloneRuleTree; } export interface CreateStandaloneRulesetRequestParams { StandaloneRuleset: StandaloneRuleset; } export interface CreateStandaloneRulesetBundleRequestParams { StandaloneRulesetBundle: StandaloneRulesetBundle; } export interface DeleteRulesetLabelRequestParams { label: string; org_id?: string; } export interface DeleteStandaloneRuleRequestParams { rule_id: string; org_id?: string; } export interface DeleteStandaloneRulePolicyRequestParams { standalone_rule_policy_id: string; org_id?: string; } export interface DeleteStandaloneRuleTreeRequestParams { standalone_rule_tree_id: string; org_id?: string; } export interface DeleteStandaloneRulesetRequestParams { standalone_ruleset_id: string; org_id?: string; } export interface DeleteStandaloneRulesetBundleRequestParams { standalone_ruleset_bundle_id: string; org_id?: string; } export interface GetRulesetLabelRequestParams { label: string; org_id?: string; } export interface GetStandaloneRuleRequestParams { rule_id: string; org_id?: string; } export interface GetStandaloneRulePolicyRequestParams { standalone_rule_policy_id: string; org_id?: string; } export interface GetStandaloneRuleTreeRequestParams { standalone_rule_tree_id: string; org_id?: string; } export interface GetStandaloneRulesetRequestParams { standalone_ruleset_id: string; org_id?: string; } export interface GetStandaloneRulesetBundleRequestParams { standalone_ruleset_bundle_id: string; org_id?: string; get_rulesets?: boolean; standalone_rulesets_etag?: string; } export interface ListRulesetLabelsRequestParams { limit?: number; org_id?: string; label?: string; } export interface ListStandaloneRulePoliciesRequestParams { limit?: number; object_type?: string; object_types?: Array; object_id?: string | null; policy_class?: string | null; policy_classes?: Array; policy_instance?: string; org_id?: string; } export interface ListStandaloneRuleTreesRequestParams { limit?: number; name?: string; page_at_id?: string; rule_tree_id?: string; org_id?: string; standalone_rule_policy_ids?: Array; } export interface ListStandaloneRulesRequestParams { limit?: number; name?: string; page_at_id?: string; rule_id?: string; org_id?: string; standalone_rule_policy_ids?: Array; } export interface ListStandaloneRulesetBundlesRequestParams { limit?: number; name?: string; page_at_id?: string; org_id?: string; label?: string; get_rulesets?: boolean; standalone_ruleset_bundles_etag?: string; } export interface ListStandaloneRulesetsRequestParams { limit?: number; name?: string; page_at_id?: string; org_id?: string; label?: string; standalone_rule_policy_ids?: Array; } export interface ReplaceStandaloneRuleRequestParams { rule_id: string; StandaloneRule?: StandaloneRule; } export interface ReplaceStandaloneRulePolicyRequestParams { standalone_rule_policy_id: string; StandaloneRulePolicy?: StandaloneRulePolicy; } export interface ReplaceStandaloneRuleTreeRequestParams { standalone_rule_tree_id: string; StandaloneRuleTree?: StandaloneRuleTree; } export interface ReplaceStandaloneRulesetRequestParams { standalone_ruleset_id: string; StandaloneRuleset?: StandaloneRuleset; } export interface ReplaceStandaloneRulesetBundleRequestParams { standalone_ruleset_bundle_id: string; StandaloneRulesetBundle?: StandaloneRulesetBundle; } export interface RulesServiceInterface { defaultHeaders: HttpHeaders; configuration: Configuration; /** * cleanup of standalone rules * deletion of all standalone rules/sets/labels/bundles that are associated with object_type,object_id and label * @param requestParameters */ cleanupStandaloneRules(requestParameters: CleanupStandaloneRulesRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * Creates a StandaloneRulesetLabel * Creates a StandaloneRulesetLabel * @param requestParameters */ createRulesetLabel(requestParameters: CreateRulesetLabelRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * Add a standalone rule * Adds a new standalone rule. Rules must have unique names within an org. If the name is not unique, a 409 will be returned. * @param requestParameters */ createStandaloneRule(requestParameters: CreateStandaloneRuleRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * Add a standalone rule policy * Adds a new standalone rule policy. Policies must have a unique (object_type, object_id, policy_class, policy_name) is not unique, a 409 will be returned. * @param requestParameters */ createStandaloneRulePolicy(requestParameters: CreateStandaloneRulePolicyRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * Add a standalone rule tree * Adds a new standalone rule tree. Rule trees must have unique names within an org. If the name is not unique, a 409 will be returned. * @param requestParameters */ createStandaloneRuleTree(requestParameters: CreateStandaloneRuleTreeRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * Add a standalone ruleset * Adds a new standalone ruleset. rulesets must have unique names within an org. If the name is not unique, a 409 will be returned. * @param requestParameters */ createStandaloneRuleset(requestParameters: CreateStandaloneRulesetRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * Add a standalone ruleset bundle * Adds a new standalone ruleset bundle. rulesets must have unique names within an org. If the name is not unique, a 409 will be returned. * @param requestParameters */ createStandaloneRulesetBundle(requestParameters: CreateStandaloneRulesetBundleRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * Delete a StandaloneRulesetLabel * Delete a StandaloneRulesetLabel * @param requestParameters */ deleteRulesetLabel(requestParameters: DeleteRulesetLabelRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable<{}>; /** * Delete a standalone rule * Delete a standalone rule * @param requestParameters */ deleteStandaloneRule(requestParameters: DeleteStandaloneRuleRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable<{}>; /** * Delete a standalone rule policy * Delete a standalone rule policy * @param requestParameters */ deleteStandaloneRulePolicy(requestParameters: DeleteStandaloneRulePolicyRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable<{}>; /** * Delete a standalone rule tree * Delete a standalone rule tree * @param requestParameters */ deleteStandaloneRuleTree(requestParameters: DeleteStandaloneRuleTreeRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable<{}>; /** * Delete a standalone ruleset * Delete a standalone ruleset * @param requestParameters */ deleteStandaloneRuleset(requestParameters: DeleteStandaloneRulesetRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable<{}>; /** * Delete a standalone ruleset_bundle * Delete a standalone ruleset_bundle * @param requestParameters */ deleteStandaloneRulesetBundle(requestParameters: DeleteStandaloneRulesetBundleRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable<{}>; /** * Get a StandaloneRulesetLabel * Get a StandaloneRulesetLabel * @param requestParameters */ getRulesetLabel(requestParameters: GetRulesetLabelRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * Get a standalone rule * Get a standalone rule * @param requestParameters */ getStandaloneRule(requestParameters: GetStandaloneRuleRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * Get a standalone rule policy * Get a standalone rule policy * @param requestParameters */ getStandaloneRulePolicy(requestParameters: GetStandaloneRulePolicyRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * Get a standalone rule tree * Get a standalone rule tree * @param requestParameters */ getStandaloneRuleTree(requestParameters: GetStandaloneRuleTreeRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * Get a standalone ruleset * Get a standalone ruleset * @param requestParameters */ getStandaloneRuleset(requestParameters: GetStandaloneRulesetRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * Get a standalone ruleset bundle * Get a standalone ruleset bundle * @param requestParameters */ getStandaloneRulesetBundle(requestParameters: GetStandaloneRulesetBundleRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * list StandaloneRulesetLabel * List StandaloneRulesetLabel * @param requestParameters */ listRulesetLabels(requestParameters: ListRulesetLabelsRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * List all standalone rule policies * List all standalone rule policies matching the provided query parameters. Perform keyset pagination by setting the page_at_id parameter to the id for the next page to fetch. Set it to `\"\"` to start from the beginning. * @param requestParameters */ listStandaloneRulePolicies(requestParameters: ListStandaloneRulePoliciesRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * List all standalone rule trees * List all standalone rule tres matching the provided query parameters. Perform keyset pagination by setting the page_at_id parameter to the id for the next page to fetch. Set it to `\"\"` to start from the beginning. Searching for rule_id will return any tree that references that rule. * @param requestParameters */ listStandaloneRuleTrees(requestParameters: ListStandaloneRuleTreesRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * List all standalone rules * List all standalone rule matching the provided query parameters. Perform keyset pagination by setting the page_at_id parameter to the id for the next page to fetch. Set it to `\"\"` to start from the beginning. * @param requestParameters */ listStandaloneRules(requestParameters: ListStandaloneRulesRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * List all standalone ruleset bundles * List all standalone ruleset bundles matching the provided query parameters. Perform keyset pagination by setting the page_at_id parameter to the id for the next page to fetch. Set it to `\"\"` to start from the beginning. * @param requestParameters */ listStandaloneRulesetBundles(requestParameters: ListStandaloneRulesetBundlesRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * List all standalone rulesets * List all standalone rulesets matching the provided query parameters. Perform keyset pagination by setting the page_at_id parameter to the id for the next page to fetch. Set it to `\"\"` to start from the beginning. * @param requestParameters */ listStandaloneRulesets(requestParameters: ListStandaloneRulesetsRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * update a standalone rule * update a standalone rule * @param requestParameters */ replaceStandaloneRule(requestParameters: ReplaceStandaloneRuleRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * update a standalone rule policy * update a standalone rule policy * @param requestParameters */ replaceStandaloneRulePolicy(requestParameters: ReplaceStandaloneRulePolicyRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * update a standalone rule tree * update a standalone rule tree * @param requestParameters */ replaceStandaloneRuleTree(requestParameters: ReplaceStandaloneRuleTreeRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * update a standalone ruleset * update a standalone ruleset * @param requestParameters */ replaceStandaloneRuleset(requestParameters: ReplaceStandaloneRulesetRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * update a standalone ruleset bundle * update a standalone ruleset bundle * @param requestParameters */ replaceStandaloneRulesetBundle(requestParameters: ReplaceStandaloneRulesetBundleRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; }