/** * 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 UsersListNotificationMethodsResultV2 } from '../models/UsersListNotificationMethodsResultV2.js'; import { type UsersListNotificationRulesResultV2 } from '../models/UsersListNotificationRulesResultV2.js'; import { type UsersListResultV2 } from '../models/UsersListResultV2.js'; import { type UsersShowPagingProviderResultV2 } from '../models/UsersShowPagingProviderResultV2.js'; import { type UsersShowResultV2 } from '../models/UsersShowResultV2.js'; import { type UsersUpdatePagingProviderPayloadV2 } from '../models/UsersUpdatePagingProviderPayloadV2.js'; export interface UsersV2ListRequest { /** * Filter by email address */ email?: string; /** * Filter by Slack user ID */ slack_user_id?: string; /** * Include deactivated or not-yet-active users (defaults to false). Useful for resolving users who have since been offboarded. */ include_inactive?: boolean; /** * 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 UsersV2ListNotificationMethodsRequest { /** * The ID of the user whose notification methods you want to list. */ user_id: string; } export interface UsersV2ListNotificationRulesRequest { /** * The ID of the user whose notification rules you want to list. */ user_id: string; } export interface UsersV2RevokeSessionsRequest { /** * Unique identifier of the user */ id: string; } export interface UsersV2ShowRequest { /** * Unique identifier of the user */ id: string; } export interface UsersV2ShowPagingProviderRequest { /** * The ID of the user. */ user_id: string; } export interface UsersV2UpdatePagingProviderRequest { /** * The ID of the user to update. */ user_id: string; /** * */ body: UsersUpdatePagingProviderPayloadV2; } /** * */ export declare class UsersV2Api extends runtime.BaseAPI { /** * Creates request options for usersV2List without sending the request */ usersV2ListRequestOpts(requestParameters: UsersV2ListRequest): Promise; /** * List users in your account. * List Users V2 */ usersV2ListRaw(requestParameters: UsersV2ListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * List users in your account. * List Users V2 */ usersV2List(requestParameters?: UsersV2ListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for usersV2ListNotificationMethods without sending the request */ usersV2ListNotificationMethodsRequestOpts(requestParameters: UsersV2ListNotificationMethodsRequest): Promise; /** * List notification methods for a user. Phone numbers are partially redacted unless the API key holds the unredacted_notification_methods.view scope. * ListNotificationMethods Users V2 */ usersV2ListNotificationMethodsRaw(requestParameters: UsersV2ListNotificationMethodsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * List notification methods for a user. Phone numbers are partially redacted unless the API key holds the unredacted_notification_methods.view scope. * ListNotificationMethods Users V2 */ usersV2ListNotificationMethods(requestParameters: UsersV2ListNotificationMethodsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for usersV2ListNotificationRules without sending the request */ usersV2ListNotificationRulesRequestOpts(requestParameters: UsersV2ListNotificationRulesRequest): Promise; /** * List notification rules for a user. Rules define how and when a user is notified for on-call pages. Only includes high_urgency and low_urgency rules; shift_changes rules are not returned. * ListNotificationRules Users V2 */ usersV2ListNotificationRulesRaw(requestParameters: UsersV2ListNotificationRulesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * List notification rules for a user. Rules define how and when a user is notified for on-call pages. Only includes high_urgency and low_urgency rules; shift_changes rules are not returned. * ListNotificationRules Users V2 */ usersV2ListNotificationRules(requestParameters: UsersV2ListNotificationRulesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for usersV2RevokeSessions without sending the request */ usersV2RevokeSessionsRequestOpts(requestParameters: UsersV2RevokeSessionsRequest): Promise; /** * Sign a user out of everywhere they\'re logged in: dashboard, plus any mobile app, desktop app, or MCP clients they\'ve connected to via OAuth. This doesn\'t deactivate the user. They will be able to log back into those accounts, and it won\'t revoke any personal API keys they\'ve created. This is useful in the case of a compromised device or as part of urgent user deactivation. Note that when a user is deactivated, all of this happens automatically without you having to take an explicit action. * RevokeSessions Users V2 */ usersV2RevokeSessionsRaw(requestParameters: UsersV2RevokeSessionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Sign a user out of everywhere they\'re logged in: dashboard, plus any mobile app, desktop app, or MCP clients they\'ve connected to via OAuth. This doesn\'t deactivate the user. They will be able to log back into those accounts, and it won\'t revoke any personal API keys they\'ve created. This is useful in the case of a compromised device or as part of urgent user deactivation. Note that when a user is deactivated, all of this happens automatically without you having to take an explicit action. * RevokeSessions Users V2 */ usersV2RevokeSessions(requestParameters: UsersV2RevokeSessionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for usersV2Show without sending the request */ usersV2ShowRequestOpts(requestParameters: UsersV2ShowRequest): Promise; /** * Get a single user. * Show Users V2 */ usersV2ShowRaw(requestParameters: UsersV2ShowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get a single user. * Show Users V2 */ usersV2Show(requestParameters: UsersV2ShowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for usersV2ShowPagingProvider without sending the request */ usersV2ShowPagingProviderRequestOpts(requestParameters: UsersV2ShowPagingProviderRequest): Promise; /** * Show the paging provider that would be used to escalate to this user. Reflects their explicit preference if set; otherwise resolves to the effective fallback (typically `native` for on-call seat users, or a linked external provider otherwise). May be omitted only when the user cannot be escalated to at all (no seat and no linked external user). * ShowPagingProvider Users V2 */ usersV2ShowPagingProviderRaw(requestParameters: UsersV2ShowPagingProviderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Show the paging provider that would be used to escalate to this user. Reflects their explicit preference if set; otherwise resolves to the effective fallback (typically `native` for on-call seat users, or a linked external provider otherwise). May be omitted only when the user cannot be escalated to at all (no seat and no linked external user). * ShowPagingProvider Users V2 */ usersV2ShowPagingProvider(requestParameters: UsersV2ShowPagingProviderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for usersV2UpdatePagingProvider without sending the request */ usersV2UpdatePagingProviderRequestOpts(requestParameters: UsersV2UpdatePagingProviderRequest): Promise; /** * Update a user\'s preferred paging provider. * UpdatePagingProvider Users V2 */ usersV2UpdatePagingProviderRaw(requestParameters: UsersV2UpdatePagingProviderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Update a user\'s preferred paging provider. * UpdatePagingProvider Users V2 */ usersV2UpdatePagingProvider(requestParameters: UsersV2UpdatePagingProviderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; }