/** * incident.io * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import * as runtime from '../runtime.js'; import { type APIKeysCreatePayloadV1 } from '../models/APIKeysCreatePayloadV1.js'; import { type APIKeysCreateResultV1 } from '../models/APIKeysCreateResultV1.js'; import { type APIKeysListResultV1 } from '../models/APIKeysListResultV1.js'; import { type APIKeysRotatePayloadV1 } from '../models/APIKeysRotatePayloadV1.js'; import { type APIKeysRotateResultV1 } from '../models/APIKeysRotateResultV1.js'; import { type APIKeysShowResultV1 } from '../models/APIKeysShowResultV1.js'; import { type APIKeysUpdatePayloadV1 } from '../models/APIKeysUpdatePayloadV1.js'; import { type APIKeysUpdateResultV1 } from '../models/APIKeysUpdateResultV1.js'; export interface APIKeysV1CreateRequest { /** * */ body: APIKeysCreatePayloadV1; } export interface APIKeysV1DeleteRequest { /** * Unique identifier of the API key to delete */ id: string; } export interface APIKeysV1ListRequest { /** * Integer number of records to return */ page_size?: number; /** * An record's ID. This endpoint will return a list of records after this ID in relation to the API response order. */ after?: string; } export interface APIKeysV1RotateRequest { /** * Unique identifier of the API key to rotate */ id: string; /** * */ body: APIKeysRotatePayloadV1; } export interface APIKeysV1ShowRequest { /** * Unique identifier of the API key to retrieve */ id: string; } export interface APIKeysV1UpdateRequest { /** * Unique identifier of the API key to update */ id: string; /** * */ body: APIKeysUpdatePayloadV1; } /** * */ export declare class APIKeysV1Api extends runtime.BaseAPI { /** * Creates request options for aPIKeysV1Create without sending the request */ aPIKeysV1CreateRequestOpts(requestParameters: APIKeysV1CreateRequest): Promise; /** * Create a new API key. The calling API key can only assign roles whose scopes are a subset of its own. The `api_keys_manage` role cannot be assigned via the API. An organization can have a maximum of 5000 active API keys. This endpoint requires a valid API key with the `api_keys_manage` role at either the account level or team level. * Create API Keys V1 */ aPIKeysV1CreateRaw(requestParameters: APIKeysV1CreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Create a new API key. The calling API key can only assign roles whose scopes are a subset of its own. The `api_keys_manage` role cannot be assigned via the API. An organization can have a maximum of 5000 active API keys. This endpoint requires a valid API key with the `api_keys_manage` role at either the account level or team level. * Create API Keys V1 */ aPIKeysV1Create(requestParameters: APIKeysV1CreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for aPIKeysV1Delete without sending the request */ aPIKeysV1DeleteRequestOpts(requestParameters: APIKeysV1DeleteRequest): Promise; /** * Delete an existing API key. The calling API key does not need to hold the scopes of the key being deleted, but a team-scoped key can only delete keys belonging to its teams. This endpoint requires a valid API key with the `api_keys_manage` role at either the account level or team level. * Delete API Keys V1 */ aPIKeysV1DeleteRaw(requestParameters: APIKeysV1DeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Delete an existing API key. The calling API key does not need to hold the scopes of the key being deleted, but a team-scoped key can only delete keys belonging to its teams. This endpoint requires a valid API key with the `api_keys_manage` role at either the account level or team level. * Delete API Keys V1 */ aPIKeysV1Delete(requestParameters: APIKeysV1DeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for aPIKeysV1List without sending the request */ aPIKeysV1ListRequestOpts(requestParameters: APIKeysV1ListRequest): Promise; /** * List API keys visible to the calling API key, with pagination. An API key with account-level `api_keys_manage` access will see all keys, while a key with the `api_keys_manage` role scoped to specific teams will only see keys belonging to those teams. This endpoint requires a valid API key with the `api_keys_manage` role at either the account level or team level. * List API Keys V1 */ aPIKeysV1ListRaw(requestParameters: APIKeysV1ListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * List API keys visible to the calling API key, with pagination. An API key with account-level `api_keys_manage` access will see all keys, while a key with the `api_keys_manage` role scoped to specific teams will only see keys belonging to those teams. This endpoint requires a valid API key with the `api_keys_manage` role at either the account level or team level. * List API Keys V1 */ aPIKeysV1List(requestParameters?: APIKeysV1ListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for aPIKeysV1Rotate without sending the request */ aPIKeysV1RotateRequestOpts(requestParameters: APIKeysV1RotateRequest): Promise; /** * Rotate the access token for an API key. This generates a new bearer token and optionally keeps the old token valid for a configurable grace period (up to 60 minutes), allowing a seamless rollover without downtime. The calling API key must have all the scopes of the key being rotated. This endpoint requires a valid API key with the `api_keys_manage` role at either the account level or team level. * Rotate API Keys V1 */ aPIKeysV1RotateRaw(requestParameters: APIKeysV1RotateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Rotate the access token for an API key. This generates a new bearer token and optionally keeps the old token valid for a configurable grace period (up to 60 minutes), allowing a seamless rollover without downtime. The calling API key must have all the scopes of the key being rotated. This endpoint requires a valid API key with the `api_keys_manage` role at either the account level or team level. * Rotate API Keys V1 */ aPIKeysV1Rotate(requestParameters: APIKeysV1RotateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for aPIKeysV1Show without sending the request */ aPIKeysV1ShowRequestOpts(requestParameters: APIKeysV1ShowRequest): Promise; /** * Show details of a specific API key, including its roles, team assignments and when its token was last issued. This endpoint requires a valid API key with the `api_keys_manage` role at either the account level or team level. * Show API Keys V1 */ aPIKeysV1ShowRaw(requestParameters: APIKeysV1ShowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Show details of a specific API key, including its roles, team assignments and when its token was last issued. This endpoint requires a valid API key with the `api_keys_manage` role at either the account level or team level. * Show API Keys V1 */ aPIKeysV1Show(requestParameters: APIKeysV1ShowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for aPIKeysV1Update without sending the request */ aPIKeysV1UpdateRequestOpts(requestParameters: APIKeysV1UpdateRequest): Promise; /** * Update an existing API key\'s name, roles, or team assignments. All fields must be provided (PUT semantics). The calling API key can only assign roles whose scopes are a subset of its own. An API key cannot edit itself, and the `api_keys_manage` role cannot be assigned via the API. This endpoint requires a valid API key with the `api_keys_manage` role at either the account level or team level. * Update API Keys V1 */ aPIKeysV1UpdateRaw(requestParameters: APIKeysV1UpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Update an existing API key\'s name, roles, or team assignments. All fields must be provided (PUT semantics). The calling API key can only assign roles whose scopes are a subset of its own. An API key cannot edit itself, and the `api_keys_manage` role cannot be assigned via the API. This endpoint requires a valid API key with the `api_keys_manage` role at either the account level or team level. * Update API Keys V1 */ aPIKeysV1Update(requestParameters: APIKeysV1UpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; }