import { BaseAPIRequestFactory } from "../../datadog-api-client-common/baseapi"; import { Configuration } from "../../datadog-api-client-common/configuration"; import { RequestContext, ResponseContext } from "../../datadog-api-client-common/http/http"; import { DemBatchGetJourneysRequest } from "../models/DemBatchGetJourneysRequest"; import { DemCreateJourneyTestSuiteRequest } from "../models/DemCreateJourneyTestSuiteRequest"; import { DemInferredJourneyStatus } from "../models/DemInferredJourneyStatus"; import { DemJourneyCreateRequest } from "../models/DemJourneyCreateRequest"; import { DemJourneyResponse } from "../models/DemJourneyResponse"; import { DemJourneysListResponse } from "../models/DemJourneysListResponse"; import { DemJourneyTestSuiteResponse } from "../models/DemJourneyTestSuiteResponse"; import { DemRecommendedTestsResponse } from "../models/DemRecommendedTestsResponse"; import { DemSearchInferredJourneysResponse } from "../models/DemSearchInferredJourneysResponse"; import { DemVariantRequest } from "../models/DemVariantRequest"; import { DemVariantResponse } from "../models/DemVariantResponse"; export declare class DEMApiRequestFactory extends BaseAPIRequestFactory { batchGetJourneysByTestSuiteIDs(body: DemBatchGetJourneysRequest, _options?: Configuration): Promise; createJourney(body: DemJourneyCreateRequest, _options?: Configuration): Promise; createJourneyVariant(journeyId: string, body: DemVariantRequest, _options?: Configuration): Promise; createTestSuiteForJourney(publicJourneyId: string, body: DemCreateJourneyTestSuiteRequest, _options?: Configuration): Promise; deleteIgnoredInferredJourney(journeyId: string, _options?: Configuration): Promise; deleteJourney(journeyId: string, _options?: Configuration): Promise; deleteJourneyVariant(variantId: string, _options?: Configuration): Promise; getJourney(journeyId: string, _options?: Configuration): Promise; getJourneyRecommendedTests(journeyId: string, _options?: Configuration): Promise; ignoreInferredJourney(journeyId: string, _options?: Configuration): Promise; searchInferredJourneys(status?: DemInferredJourneyStatus, q?: string, appId?: string, _options?: Configuration): Promise; searchJourneys(query?: string, pageOffset?: number, pageLimit?: number, creator?: string, team?: string, appId?: string, _options?: Configuration): Promise; updateJourney(journeyId: string, body: DemJourneyCreateRequest, _options?: Configuration): Promise; updateJourneyVariant(variantId: string, body: DemVariantRequest, _options?: Configuration): Promise; } export declare class DEMApiResponseProcessor { /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to batchGetJourneysByTestSuiteIDs * @throws ApiException if the response code was not in [200, 299] */ batchGetJourneysByTestSuiteIDs(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to createJourney * @throws ApiException if the response code was not in [200, 299] */ createJourney(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to createJourneyVariant * @throws ApiException if the response code was not in [200, 299] */ createJourneyVariant(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to createTestSuiteForJourney * @throws ApiException if the response code was not in [200, 299] */ createTestSuiteForJourney(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to deleteIgnoredInferredJourney * @throws ApiException if the response code was not in [200, 299] */ deleteIgnoredInferredJourney(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to deleteJourney * @throws ApiException if the response code was not in [200, 299] */ deleteJourney(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to deleteJourneyVariant * @throws ApiException if the response code was not in [200, 299] */ deleteJourneyVariant(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to getJourney * @throws ApiException if the response code was not in [200, 299] */ getJourney(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to getJourneyRecommendedTests * @throws ApiException if the response code was not in [200, 299] */ getJourneyRecommendedTests(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to ignoreInferredJourney * @throws ApiException if the response code was not in [200, 299] */ ignoreInferredJourney(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to searchInferredJourneys * @throws ApiException if the response code was not in [200, 299] */ searchInferredJourneys(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to searchJourneys * @throws ApiException if the response code was not in [200, 299] */ searchJourneys(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to updateJourney * @throws ApiException if the response code was not in [200, 299] */ updateJourney(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to updateJourneyVariant * @throws ApiException if the response code was not in [200, 299] */ updateJourneyVariant(response: ResponseContext): Promise; } export interface DEMApiBatchGetJourneysByTestSuiteIDsRequest { /** * @type DemBatchGetJourneysRequest */ body: DemBatchGetJourneysRequest; } export interface DEMApiCreateJourneyRequest { /** * @type DemJourneyCreateRequest */ body: DemJourneyCreateRequest; } export interface DEMApiCreateJourneyVariantRequest { /** * The unique identifier of the journey that owns the variant. * @type string */ journeyId: string; /** * @type DemVariantRequest */ body: DemVariantRequest; } export interface DEMApiCreateTestSuiteForJourneyRequest { /** * The public identifier of the DEM journey for which to create a test suite. * @type string */ publicJourneyId: string; /** * @type DemCreateJourneyTestSuiteRequest */ body: DemCreateJourneyTestSuiteRequest; } export interface DEMApiDeleteIgnoredInferredJourneyRequest { /** * The unique identifier of the ignored inferred journey to delete. * @type string */ journeyId: string; } export interface DEMApiDeleteJourneyRequest { /** * The unique identifier of the DEM journey to delete. * @type string */ journeyId: string; } export interface DEMApiDeleteJourneyVariantRequest { /** * The unique identifier of the variant to delete. * @type string */ variantId: string; } export interface DEMApiGetJourneyRequest { /** * The unique identifier of the DEM journey. * @type string */ journeyId: string; } export interface DEMApiGetJourneyRecommendedTestsRequest { /** * The unique identifier of the journey. * @type string */ journeyId: string; } export interface DEMApiIgnoreInferredJourneyRequest { /** * The unique identifier of the inferred journey to ignore. * @type string */ journeyId: string; } export interface DEMApiSearchInferredJourneysRequest { /** * Filter by inferred journey status. Use `candidate` (default) to retrieve journeys suggested for promotion, or `ignored` to retrieve journeys that have been dismissed. * @type DemInferredJourneyStatus */ status?: DemInferredJourneyStatus; /** * Fuzzy search query to filter inferred journeys by name. * @type string */ q?: string; /** * Filter inferred journeys by application ID. * @type string */ appId?: string; } export interface DEMApiSearchJourneysRequest { /** * A search query string to filter journeys by name. * @type string */ query?: string; /** * The offset for pagination. * @type number */ pageOffset?: number; /** * The maximum number of results to return. * @type number */ pageLimit?: number; /** * Filter journeys by creator handle. * @type string */ creator?: string; /** * Filter journeys by team tag. * @type string */ team?: string; /** * Filter journeys by application ID. * @type string */ appId?: string; } export interface DEMApiUpdateJourneyRequest { /** * The unique identifier of the DEM journey to update. * @type string */ journeyId: string; /** * @type DemJourneyCreateRequest */ body: DemJourneyCreateRequest; } export interface DEMApiUpdateJourneyVariantRequest { /** * The unique identifier of the variant to update. * @type string */ variantId: string; /** * @type DemVariantRequest */ body: DemVariantRequest; } export declare class DEMApi { private requestFactory; private responseProcessor; private configuration; constructor(configuration: Configuration, requestFactory?: DEMApiRequestFactory, responseProcessor?: DEMApiResponseProcessor); /** * Return DEM journeys associated with multiple given test suite IDs. * @param param The request object */ batchGetJourneysByTestSuiteIDs(param: DEMApiBatchGetJourneysByTestSuiteIDsRequest, options?: Configuration): Promise; /** * Create a DEM journey. * @param param The request object */ createJourney(param: DEMApiCreateJourneyRequest, options?: Configuration): Promise; /** * Create a variant for a DEM journey. * @param param The request object */ createJourneyVariant(param: DEMApiCreateJourneyVariantRequest, options?: Configuration): Promise; /** * Trigger test suite creation for a given DEM journey. * @param param The request object */ createTestSuiteForJourney(param: DEMApiCreateTestSuiteForJourneyRequest, options?: Configuration): Promise; /** * Remove an ignored inferred DEM journey, making it eligible to appear as a candidate again. * @param param The request object */ deleteIgnoredInferredJourney(param: DEMApiDeleteIgnoredInferredJourneyRequest, options?: Configuration): Promise; /** * Delete a DEM journey by its ID. * @param param The request object */ deleteJourney(param: DEMApiDeleteJourneyRequest, options?: Configuration): Promise; /** * Delete a variant from a DEM journey. * @param param The request object */ deleteJourneyVariant(param: DEMApiDeleteJourneyVariantRequest, options?: Configuration): Promise; /** * Retrieve a single DEM journey by its ID. * @param param The request object */ getJourney(param: DEMApiGetJourneyRequest, options?: Configuration): Promise; /** * Retrieve AI-recommended synthetic tests for a DEM journey. Returns an empty list when no recommendation is available. * @param param The request object */ getJourneyRecommendedTests(param: DEMApiGetJourneyRecommendedTestsRequest, options?: Configuration): Promise; /** * Mark an inferred DEM journey as ignored so it no longer appears in the candidate list. * @param param The request object */ ignoreInferredJourney(param: DEMApiIgnoreInferredJourneyRequest, options?: Configuration): Promise; /** * Search for inferred DEM journeys by status. Returns candidates (status=candidate, the default) or ignored journeys (status=ignored). Supports optional fuzzy name filtering and app ID filtering. * @param param The request object */ searchInferredJourneys(param?: DEMApiSearchInferredJourneysRequest, options?: Configuration): Promise; /** * Search for DEM journeys with optional filtering by query, creator, team, and app. * @param param The request object */ searchJourneys(param?: DEMApiSearchJourneysRequest, options?: Configuration): Promise; /** * Update an existing DEM journey by its ID. * @param param The request object */ updateJourney(param: DEMApiUpdateJourneyRequest, options?: Configuration): Promise; /** * Update an existing variant of a DEM journey. * @param param The request object */ updateJourneyVariant(param: DEMApiUpdateJourneyVariantRequest, options?: Configuration): Promise; }