/** * 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 { CSRReasonEnum } from '../model/models'; import { CertSigningReq } from '../model/models'; import { CertSigningReqReissue } from '../model/models'; import { CertificateTracker } from '../model/models'; import { InlineResponse200 } from '../model/models'; import { ListCertSigningReqResponse } from '../model/models'; import { ListCertificateTrackerResponse } from '../model/models'; import { ListX509CertificateResponse } from '../model/models'; import { X509Certificate } from '../model/models'; import { Configuration } from '../configuration'; export interface CreateCertRequestParams { X509Certificate: X509Certificate; } export interface CreateCertTrackerRequestParams { CertificateTracker: CertificateTracker; } export interface CreateCertTrackerCertRequestParams { certificate_tracker_id: string; X509Certificate: X509Certificate; } export interface DeleteAgentCsrRequestParams { connector_id: string; csr_id: string; org_id?: string; } export interface DeleteCertRequestParams { certificate_id: string; org_id?: string; } export interface DeleteCertTrackerRequestParams { certificate_tracker_id: string; org_id?: string; } export interface DeleteCsrRequestParams { csr_id: string; org_id?: string; private_key_id?: string; } export interface GetCertRequestParams { certificate_id: string; org_id?: string; } export interface GetCertTrackerRequestParams { certificate_tracker_id: string; org_id?: string; } export interface GetCsrRequestParams { csr_id: string; org_id?: string; private_key_id?: string; limit_csr_certificates?: number; get_certificate_updates?: boolean; certificate_updates_start_cursor?: number; certificate_updates_end_cursor?: number; } export interface ListCertTrackersRequestParams { limit?: number; org_id?: string; page_at_id?: string; org_ids?: Array; } export interface ListCertsRequestParams { limit?: number; org_id?: string; } export interface ListCsrRequestParams { limit?: number; org_id?: string; reason?: CSRReasonEnum; not_valid_after?: string; target_issuer?: Array; limit_csr_certificates?: number; get_certificate_updates?: boolean; certificate_updates_start_cursor?: number; certificate_updates_end_cursor?: number; auto_renew?: boolean; } export interface ListRootCertsRequestParams { limit?: number; org_id?: string; } export interface ReissueCertForCsrRequestParams { CertSigningReqReissue: CertSigningReqReissue; } export interface ReplaceCertTrackerRequestParams { certificate_tracker_id: string; CertificateTracker?: CertificateTracker; } export interface ReplaceCsrRequestParams { csr_id: string; org_id?: string; private_key_id?: string; CertSigningReq?: CertSigningReq; } export interface CertificatesServiceInterface { defaultHeaders: HttpHeaders; configuration: Configuration; /** * Creates a X509Certificate * Creates a X509Certificate * @param requestParameters */ createCert(requestParameters: CreateCertRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * Creates a CertificateTracker * Creates a CertificateTracker * @param requestParameters */ createCertTracker(requestParameters: CreateCertTrackerRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * Creates a X509Certificate associated to a CertificateTracker * Creates a X509Certificate associated to a CertificateTracker * @param requestParameters */ createCertTrackerCert(requestParameters: CreateCertTrackerCertRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * Delete a CertSigningReq * Delete a CertSigningReq * @param requestParameters */ deleteAgentCsr(requestParameters: DeleteAgentCsrRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable<{}>; /** * Delete a X509Certificate * Delete a X509Certificate * @param requestParameters */ deleteCert(requestParameters: DeleteCertRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable<{}>; /** * Delete a CertificateTracker * Delete a CertificateTracker * @param requestParameters */ deleteCertTracker(requestParameters: DeleteCertTrackerRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable<{}>; /** * Delete a CertSigningReq * Delete a CertSigningReq * @param requestParameters */ deleteCsr(requestParameters: DeleteCsrRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable<{}>; /** * Get a X509Certificate * Get a X509Certificate * @param requestParameters */ getCert(requestParameters: GetCertRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * Get a CertificateTracker * Get a CertificateTracker * @param requestParameters */ getCertTracker(requestParameters: GetCertTrackerRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * Get a CertSigningReq * Get a CertSigningReq * @param requestParameters */ getCsr(requestParameters: GetCsrRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * list certificate trackers * List certificate trackers * @param requestParameters */ listCertTrackers(requestParameters: ListCertTrackersRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * list certificates * List certificates * @param requestParameters */ listCerts(requestParameters: ListCertsRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * list certificate signing requests * List certificate signing requests. * @param requestParameters */ listCsr(requestParameters: ListCsrRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * list root certificates * List the root certificates an organsation should trust when interacting with the local resources exposed by the Agilicus platform. * @param requestParameters */ listRootCerts(requestParameters: ListRootCertsRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * Creates a CertSigningRequestReissue * Creates a CertSigningReqReissue. This procedure uses the old_not_after_time to ensure that only one certificate request can be created in a given time period. Clients can coordinate to limit the number of issued certificates by setting the old_not_after_time to the not_after_time of the most recently issued certificate. CConcurrent requests to reissue based off the same certificate will lead to only one certificate being created. This will fail if the old_not_after_time is equal to the recently used old_not_after_time as part of that coordination. * @param requestParameters */ reissueCertForCsr(requestParameters: ReissueCertForCsrRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * Update a CertificateTracker * Update a CertificateTracker * @param requestParameters */ replaceCertTracker(requestParameters: ReplaceCertTrackerRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * Update a CertSigningReq * Update a CertSigningReq * @param requestParameters */ replaceCsr(requestParameters: ReplaceCsrRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; }