/** * 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 { AuditDestination } from '../model/models'; import { AuditWebhookBulkEvent } from '../model/models'; import { AuditWebhookEventsProcessed } from '../model/models'; import { ListAuditDestinationsResponse } from '../model/models'; import { ListAuditsResponse } from '../model/models'; import { ListAuthAuditsResponse } from '../model/models'; import { Configuration } from '../configuration'; export interface BulkCreateEventsRequestParams { AuditWebhookBulkEvent: AuditWebhookBulkEvent; } export interface CreateAuditDestinationRequestParams { AuditDestination: AuditDestination; } export interface DeleteAuditDestinationRequestParams { destination_id: string; org_id?: string; } export interface GetAuditDestinationRequestParams { destination_id: string; org_id?: string; } export interface ListAuditDestinationsRequestParams { limit?: number; org_id?: string; destination_type?: string; name?: string; } export interface ListAuditsRequestParams { limit?: number; user_id?: string; dt_from?: string; dt_to?: string; action?: string; target_id?: string; token_id?: string; api_name?: string; target_resource_type?: string; org_id?: string; attribute_type?: string; attribute_id?: string; attribute_org_id?: string; resources_behind_connector_id?: string; attribute_type_list?: Array; attribute_id_list?: Array; } export interface ListAuthRecordsRequestParams { limit?: number; user_id?: string; dt_from?: string; dt_to?: string; org_id?: string; session_id?: string; trace_id?: string; upstream_user_id?: string; upstream_idp?: string; login_org_id?: string; source_ip?: string; client_id?: string; event?: string; stage?: string; request_id?: string; result?: string; event_name?: string; } export interface ReplaceAuditDestinationRequestParams { destination_id: string; AuditDestination?: AuditDestination; } export interface AuditsServiceInterface { defaultHeaders: HttpHeaders; configuration: Configuration; /** * Process an AuditWebhookBulkEvent * Processes an AuditWebhookBulkEvent by putting it into the audit event pipeline. Agilicus audit agents expect webhook destinations to obey the semantics of this API, though the URL at which to post AuditWebhookEvents may differ from this. That is, this API specification may be used to develop your own webhook for processing events. If the webhook wants to implement fine-grained processing of events, it should respond with the AuditWebhookEventProcessed response. Otherwise, the audit agent should assume that the response applies to all entries. * @param requestParameters */ bulkCreateEvents(requestParameters: BulkCreateEventsRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * Create an AuditDestination * Creating a new AuditDestination allows administrators to connect their sources of audit events to somewhere they can be stored. * @param requestParameters */ createAuditDestination(requestParameters: CreateAuditDestinationRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * Remove an AuditDestination * Remove an AuditDestination. After removal, the system will stop sending events to the destination. * @param requestParameters */ deleteAuditDestination(requestParameters: DeleteAuditDestinationRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable<{}>; /** * Get a single AuditDestination * Get the details of a single AuditDestination. Specify the id of the organisation which owns this resource to ensure you have permission. * @param requestParameters */ getAuditDestination(requestParameters: GetAuditDestinationRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * View audit destinations * View configured audit destinations * @param requestParameters */ listAuditDestinations(requestParameters: ListAuditDestinationsRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * View audit records * View audit records for any API. The attribute_type, attribute_id and attribute_org_id query provides the ability to query attributes for an audit record across all possible attributes thay maybe associated with a record, as audit records may have multiple multiple attributes (AuditAttribute) per record. * @param requestParameters */ listAudits(requestParameters: ListAuditsRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * View authentication audit records * View and search authentication audit records for different users and organisations in the system. * @param requestParameters */ listAuthRecords(requestParameters: ListAuthRecordsRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * Create or update a AuditDestination. * Create or update a AuditDestination. * @param requestParameters */ replaceAuditDestination(requestParameters: ReplaceAuditDestinationRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; }