/** * 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 { HypotheticalLicenseDetails } from '../model/models'; import { HypotheticalLicenseDetailsQuery } from '../model/models'; import { License } from '../model/models'; import { ListLicenseDetailsResponse } from '../model/models'; import { ListLicenseEvaluationContextsResponse } from '../model/models'; import { ListLicensesResponse } from '../model/models'; import { ListProductTableVersionsResponse } from '../model/models'; import { ProductTableVersion } from '../model/models'; import { Configuration } from '../configuration'; export interface CreateHypotheticalLicenseDetailsQueryRequestParams { HypotheticalLicenseDetailsQuery: HypotheticalLicenseDetailsQuery; } export interface CreateLicenseRequestParams { License: License; } export interface CreateProductTableVersionRequestParams { ProductTableVersion: ProductTableVersion; } export interface DeleteLicenseRequestParams { license_id: string; } export interface DeleteProductTableVersionRequestParams { product_table_version_id: string; } export interface GetLicenseRequestParams { license_id: string; } export interface GetProductTableVersionRequestParams { product_table_version_id: string; } export interface ListLicenseDetailsRequestParams { limit?: number; org_id?: string; license_id?: string; license_ids?: Array; page_at_id?: string; } export interface ListLicenseEvaluationContextsRequestParams { limit?: number; org_id?: string; license_id?: string; license_ids?: Array; page_at_id?: string; } export interface ListLicensesRequestParams { limit?: number; page_at_id?: string; } export interface ListProductTableVersionsRequestParams { limit?: number; version?: string; page_at_version?: string; published?: boolean; } export interface ReplaceLicenseRequestParams { license_id: string; subscription_reconcile?: boolean; License?: License; } export interface ReplaceProductTableVersionRequestParams { product_table_version_id: string; ProductTableVersion?: ProductTableVersion; } export interface LicensingServiceInterface { defaultHeaders: HttpHeaders; configuration: Configuration; /** * Query a hypothetical set of license details * Get all per-org license details matching the query. This will return the actual constraints available to an organisation, taking into account their product, the hypothetical version of the product table, and any overrides applied to their organisation. Multiple organisations\' constraints may be returned at a time. * @param requestParameters */ createHypotheticalLicenseDetailsQuery(requestParameters: CreateHypotheticalLicenseDetailsQueryRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * Create a license * Create a license * @param requestParameters */ createLicense(requestParameters: CreateLicenseRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * Create a product table version * Create a product table version * @param requestParameters */ createProductTableVersion(requestParameters: CreateProductTableVersionRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * Delete a license * Delete a license * @param requestParameters */ deleteLicense(requestParameters: DeleteLicenseRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable<{}>; /** * Delete a product table version * Delete a product table version * @param requestParameters */ deleteProductTableVersion(requestParameters: DeleteProductTableVersionRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable<{}>; /** * Get a single license * Get a single license * @param requestParameters */ getLicense(requestParameters: GetLicenseRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * Get a single product table version * Get a single product table version * @param requestParameters */ getProductTableVersion(requestParameters: GetProductTableVersionRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * Get all license details * Get all per-org license details matching the query. This will return the actual constraints available to an organisation, taking into account their product, version of the product table, and any overrides applied to their organisation. Multiple organisations\' constraints may be returned at a time, and paged through using page_at_id. * @param requestParameters */ listLicenseDetails(requestParameters: ListLicenseDetailsRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * Get license evaluation context * Get all per-org license evaluation input matching the query. This will return the context dictionary to pass into the evaluation of a license. Multiple organisations\' input may be returned at a time, and paged through using page_at_id. * @param requestParameters */ listLicenseEvaluationContexts(requestParameters: ListLicenseEvaluationContextsRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * Get all licenses * Get all Licenses matching the query * @param requestParameters */ listLicenses(requestParameters: ListLicensesRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * Get all product table versions * Get all product table versions matching the query * @param requestParameters */ listProductTableVersions(requestParameters: ListProductTableVersionsRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * Create or update a license * Update a license. If subscription_reconcil is set and the product changes, then the system will update the prices in the billing system to align. * @param requestParameters */ replaceLicense(requestParameters: ReplaceLicenseRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; /** * Create or update a product table version * Update a product table version * @param requestParameters */ replaceProductTableVersion(requestParameters: ReplaceProductTableVersionRequestParams, observe?: any, extraHeaders?: HttpHeaders): Observable; }