@gigya/destination
Version:
Gigya API Client with SAP Cloud SDK Destination Support
299 lines (289 loc) • 27.2 kB
TypeScript
import { AccountsB2bSetupBootstrapData, AccountsB2bSetupBootstrapResponses, AccountsB2bSearchData, AccountsB2bSearchResponses, AccountsB2bSearchErrors, AccountsGroupsCreateModelData, AccountsGroupsCreateModelResponses, AccountsGroupsDeleteModelData, AccountsGroupsDeleteModelResponses, AccountsGroupsGetAllModelsData, AccountsGroupsGetAllModelsResponses, AccountsGroupsRegisterGroupData, AccountsGroupsRegisterGroupResponses, AccountsGroupsSetGroupInfoData, AccountsGroupsSetGroupInfoResponses, AccountsGroupsAssignGroupMemberData, AccountsGroupsAssignGroupMemberResponses, AccountsGroupsSetGroupMemberInfoData, AccountsGroupsSetGroupMemberInfoResponses, AccountsGroupsGetGroupMemberInfoData, AccountsGroupsGetGroupMemberInfoResponses, AccountsGroupsRemoveMemberData, AccountsGroupsRemoveMemberResponses, AccountsGroupsCreateInvitationData, AccountsGroupsCreateInvitationResponses, AccountsGroupsInvitationConfirmData, AccountsGroupsInvitationConfirmResponses, AccountsGroupsFinalizeInvitationData, AccountsGroupsFinalizeInvitationResponses, AccountsGroupsSetSiteConfigData, AccountsGroupsSetSiteConfigResponses, AccountsGroupsGetGroupInfoData, AccountsGroupsGetGroupInfoResponses, AccountsGroupsGetAllMemberGroupsData, AccountsGroupsGetAllMemberGroupsResponses, AccountsGroupsSetSchemaData, AccountsGroupsSetSchemaResponses, AccountsGroupsGetSchemaData, AccountsGroupsGetSchemaResponses, AccountsGroupsDeleteSchemaFieldData, AccountsGroupsDeleteSchemaFieldResponses, SetAccountInfoData, SetAccountInfoResponses, GetAccountInfoData, GetAccountInfoResponses, GetAccountInfoErrors, DqmCredentialsGetData, DqmCredentialsGetResponses, DqmCredentialsGetErrors, DqmCredentialsSetData, DqmCredentialsSetResponses, DqmCredentialsSetErrors, CommunicationUpdateData, CommunicationUpdateResponses, CommunicationGetData, CommunicationGetResponses, CommunicationGetErrors, DsSetSchemaData, DsSetSchemaResponses, DsSetSchemaErrors, DsGetSchemaData, DsGetSchemaResponses, DsGetSchemaErrors, DsGetData, DsGetResponses, DsGetErrors, DsStoreData, DsStoreResponses, DsStoreErrors, DsSearchData, DsSearchResponses, DsSearchErrors, WorkflowInstancesBulkRetryData, WorkflowInstancesBulkRetryResponses, WorkflowInstancesBulkCancelData, WorkflowInstancesBulkCancelResponses, WorkflowInstancesBulkDeleteData, WorkflowInstancesBulkDeleteResponses, WorkflowInstancesCancelData, WorkflowInstancesCancelResponses, WorkflowInstancesCancelErrors, WorkflowInstancesDeleteData, WorkflowInstancesDeleteResponses, WorkflowInstancesDeleteErrors, WorkflowInstancesGetData, WorkflowInstancesGetResponses, WorkflowInstancesListData, WorkflowInstancesListResponses, WorkflowInstancesRetryData, WorkflowInstancesRetryResponses, WorkflowInstancesRetryErrors, WorkflowDefinitionsDeleteData, WorkflowDefinitionsDeleteResponses, WorkflowDefinitionsExportData, WorkflowDefinitionsExportResponses, WorkflowDefinitionsExportErrors, WorkflowDefinitionsGetByDefinitionAndVersionData, WorkflowDefinitionsGetByDefinitionAndVersionResponses, WorkflowDefinitionsGetByDefinitionAndVersionErrors, WorkflowDefinitionsGetByVersionIdData, WorkflowDefinitionsGetByVersionIdResponses, WorkflowDefinitionsGetByVersionIdErrors, WorkflowDefinitionsImportData, WorkflowDefinitionsImportResponses, WorkflowDefinitionsListData, WorkflowDefinitionsListResponses, WorkflowDefinitionsPostData, WorkflowDefinitionsPostResponses, WorkflowDefinitionsPublishData, WorkflowDefinitionsPublishResponses, WorkflowDefinitionsPublishErrors, WorkflowDefinitionsUnpublishData, WorkflowDefinitionsUnpublishResponses, WorkflowDefinitionsUnpublishErrors, WorkflowBlueprintsGetData, WorkflowBlueprintsGetResponses, WorkflowBlueprintsListData, WorkflowBlueprintsListResponses, WorkflowExecutionLogGetData, WorkflowExecutionLogGetResponses, JavaScriptLanguageServicesGetTypeDefinitionsData, JavaScriptLanguageServicesGetTypeDefinitionsResponses, DesignerRuntimeSelectListItemsGetData, DesignerRuntimeSelectListItemsGetResponses, ActivitiesListData, ActivitiesListResponses, SamlCertificatesGetData, SamlCertificatesGetResponses, UpdateStatisticsSchedulingData, UpdateStatisticsSchedulingResponses, UpdateStatisticsSchedulingErrors, GetStatisticsSchedulingData, GetStatisticsSchedulingResponses, GetStatisticsSchedulingErrors, DeleteStatisticsSchedulingData, DeleteStatisticsSchedulingResponses, DeleteStatisticsSchedulingErrors, AddressSuggestionsGetData, AddressSuggestionsGetResponses, AddressSuggestionsGetErrors, AddressSuggestionsSelectData, AddressSuggestionsSelectResponses, AddressSuggestionsSelectErrors, PhonenumberValidateData, PhonenumberValidateResponses, PhonenumberValidateErrors } from './types.gen.js';
type AuthToken = string | undefined;
interface Auth {
in?: 'header' | 'query' | 'cookie';
name?: string;
scheme?: 'basic' | 'bearer';
type: 'apiKey' | 'http';
}
interface SerializerOptions<T> {
explode: boolean;
style: T;
}
type ArrayStyle = 'form' | 'spaceDelimited' | 'pipeDelimited';
type ObjectStyle = 'form' | 'deepObject';
type QuerySerializer = (query: Record<string, unknown>) => string;
type BodySerializer = (body: any) => any;
interface QuerySerializerOptions {
allowReserved?: boolean;
array?: SerializerOptions<ArrayStyle>;
object?: SerializerOptions<ObjectStyle>;
}
type HttpMethod = 'connect' | 'delete' | 'get' | 'head' | 'options' | 'patch' | 'post' | 'put' | 'trace';
type Client$1<RequestFn = never, Config = unknown, MethodFn = never, BuildUrlFn = never, SseFn = never> = {
buildUrl: BuildUrlFn;
getConfig: () => Config;
request: RequestFn;
setConfig: (config: Config) => Config;
} & {
[K in HttpMethod]: MethodFn;
} & ([SseFn] extends [never] ? {
sse?: never;
} : {
sse: {
[K in HttpMethod]: SseFn;
};
});
interface Config$1 {
auth?: ((auth: Auth) => Promise<AuthToken> | AuthToken) | AuthToken;
bodySerializer?: BodySerializer | null;
headers?: RequestInit['headers'] | Record<string, string | number | boolean | (string | number | boolean)[] | null | undefined | unknown>;
method?: Uppercase<HttpMethod>;
querySerializer?: QuerySerializer | QuerySerializerOptions;
requestValidator?: (data: unknown) => Promise<unknown>;
responseTransformer?: (data: unknown) => Promise<unknown>;
responseValidator?: (data: unknown) => Promise<unknown>;
}
type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, 'method'> & Pick<Config$1, 'method' | 'responseTransformer' | 'responseValidator'> & {
fetch?: typeof fetch;
onRequest?: (url: string, init: RequestInit) => Promise<Request>;
onSseError?: (error: unknown) => void;
onSseEvent?: (event: StreamEvent<TData>) => void;
serializedBody?: RequestInit['body'];
sseDefaultRetryDelay?: number;
sseMaxRetryAttempts?: number;
sseMaxRetryDelay?: number;
sseSleepFn?: (ms: number) => Promise<void>;
url: string;
};
interface StreamEvent<TData = unknown> {
data: TData;
event?: string;
id?: string;
retry?: number;
}
type ServerSentEventsResult<TData = unknown, TReturn = void, TNext = unknown> = {
stream: AsyncGenerator<TData extends Record<string, unknown> ? TData[keyof TData] : TData, TReturn, TNext>;
};
type ErrInterceptor<Err, Res, Req, Options> = (error: Err, response: Res, request: Req, options: Options) => Err | Promise<Err>;
type ReqInterceptor<Req, Options> = (request: Req, options: Options) => Req | Promise<Req>;
type ResInterceptor<Res, Req, Options> = (response: Res, request: Req, options: Options) => Res | Promise<Res>;
declare class Interceptors<Interceptor> {
fns: Array<Interceptor | null>;
clear(): void;
eject(id: number | Interceptor): void;
exists(id: number | Interceptor): boolean;
getInterceptorIndex(id: number | Interceptor): number;
update(id: number | Interceptor, fn: Interceptor): number | Interceptor | false;
use(fn: Interceptor): number;
}
interface Middleware<Req, Res, Err, Options> {
error: Interceptors<ErrInterceptor<Err, Res, Req, Options>>;
request: Interceptors<ReqInterceptor<Req, Options>>;
response: Interceptors<ResInterceptor<Res, Req, Options>>;
}
type ResponseStyle = 'data' | 'fields';
interface Config<T extends ClientOptions = ClientOptions> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$1 {
baseUrl?: T['baseUrl'];
fetch?: typeof fetch;
next?: never;
parseAs?: 'arrayBuffer' | 'auto' | 'blob' | 'formData' | 'json' | 'stream' | 'text';
responseStyle?: ResponseStyle;
throwOnError?: T['throwOnError'];
}
interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config<{
responseStyle: TResponseStyle;
throwOnError: ThrowOnError;
}>, Pick<ServerSentEventsOptions<TData>, 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
body?: unknown;
path?: Record<string, unknown>;
query?: Record<string, unknown>;
security?: ReadonlyArray<Auth>;
url: Url;
}
interface ResolvedRequestOptions<TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions<unknown, TResponseStyle, ThrowOnError, Url> {
serializedBody?: string;
}
type RequestResult<TData = unknown, TError = unknown, ThrowOnError extends boolean = boolean, TResponseStyle extends ResponseStyle = 'fields'> = ThrowOnError extends true ? Promise<TResponseStyle extends 'data' ? TData extends Record<string, unknown> ? TData[keyof TData] : TData : {
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
request: Request;
response: Response;
}> : Promise<TResponseStyle extends 'data' ? (TData extends Record<string, unknown> ? TData[keyof TData] : TData) | undefined : ({
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
error: undefined;
} | {
data: undefined;
error: TError extends Record<string, unknown> ? TError[keyof TError] : TError;
}) & {
request: Request;
response: Response;
}>;
interface ClientOptions {
baseUrl?: string;
responseStyle?: ResponseStyle;
throwOnError?: boolean;
}
type MethodFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
type SseFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData, TError>>;
type RequestFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'> & Pick<Required<RequestOptions<TData, TResponseStyle, ThrowOnError>>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
type BuildUrlFn = <TData extends {
body?: unknown;
path?: Record<string, unknown>;
query?: Record<string, unknown>;
url: string;
}>(options: Pick<TData, 'url'> & Options$1<TData>) => string;
type Client = Client$1<RequestFn, Config, MethodFn, BuildUrlFn, SseFn> & {
interceptors: Middleware<Request, Response, unknown, ResolvedRequestOptions>;
};
interface TDataShape {
body?: unknown;
headers?: unknown;
path?: unknown;
query?: unknown;
url: string;
}
type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
type Options$1<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle = 'fields'> = OmitKeys<RequestOptions<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & Omit<TData, 'url'>;
type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options$1<TData, ThrowOnError> & {
client?: Client;
meta?: Record<string, unknown>;
};
declare class setup {
static bootstrap<ThrowOnError extends boolean = false>(options?: Options<AccountsB2bSetupBootstrapData, ThrowOnError>): RequestResult<AccountsB2bSetupBootstrapResponses, unknown, ThrowOnError, "fields">;
}
declare class b2B {
static search<ThrowOnError extends boolean = false>(options?: Options<AccountsB2bSearchData, ThrowOnError>): RequestResult<AccountsB2bSearchResponses, AccountsB2bSearchErrors, ThrowOnError, "fields">;
static setup: typeof setup;
}
declare class groups {
static createModel<ThrowOnError extends boolean = false>(options: Options<AccountsGroupsCreateModelData, ThrowOnError>): RequestResult<AccountsGroupsCreateModelResponses, unknown, ThrowOnError, "fields">;
static deleteModel<ThrowOnError extends boolean = false>(options: Options<AccountsGroupsDeleteModelData, ThrowOnError>): RequestResult<AccountsGroupsDeleteModelResponses, unknown, ThrowOnError, "fields">;
static getAllModels<ThrowOnError extends boolean = false>(options?: Options<AccountsGroupsGetAllModelsData, ThrowOnError>): RequestResult<AccountsGroupsGetAllModelsResponses, unknown, ThrowOnError, "fields">;
static registerGroup<ThrowOnError extends boolean = false>(options: Options<AccountsGroupsRegisterGroupData, ThrowOnError>): RequestResult<AccountsGroupsRegisterGroupResponses, unknown, ThrowOnError, "fields">;
static setGroupInfo<ThrowOnError extends boolean = false>(options: Options<AccountsGroupsSetGroupInfoData, ThrowOnError>): RequestResult<AccountsGroupsSetGroupInfoResponses, unknown, ThrowOnError, "fields">;
static assignGroupMember<ThrowOnError extends boolean = false>(options: Options<AccountsGroupsAssignGroupMemberData, ThrowOnError>): RequestResult<AccountsGroupsAssignGroupMemberResponses, unknown, ThrowOnError, "fields">;
static setGroupMemberInfo<ThrowOnError extends boolean = false>(options: Options<AccountsGroupsSetGroupMemberInfoData, ThrowOnError>): RequestResult<AccountsGroupsSetGroupMemberInfoResponses, unknown, ThrowOnError, "fields">;
static getGroupMemberInfo<ThrowOnError extends boolean = false>(options?: Options<AccountsGroupsGetGroupMemberInfoData, ThrowOnError>): RequestResult<AccountsGroupsGetGroupMemberInfoResponses, unknown, ThrowOnError, "fields">;
static removeMember<ThrowOnError extends boolean = false>(options: Options<AccountsGroupsRemoveMemberData, ThrowOnError>): RequestResult<AccountsGroupsRemoveMemberResponses, unknown, ThrowOnError, "fields">;
static createInvitation<ThrowOnError extends boolean = false>(options: Options<AccountsGroupsCreateInvitationData, ThrowOnError>): RequestResult<AccountsGroupsCreateInvitationResponses, unknown, ThrowOnError, "fields">;
static invitationConfirm<ThrowOnError extends boolean = false>(options: Options<AccountsGroupsInvitationConfirmData, ThrowOnError>): RequestResult<AccountsGroupsInvitationConfirmResponses, unknown, ThrowOnError, "fields">;
static finalizeInvitation<ThrowOnError extends boolean = false>(options: Options<AccountsGroupsFinalizeInvitationData, ThrowOnError>): RequestResult<AccountsGroupsFinalizeInvitationResponses, unknown, ThrowOnError, "fields">;
static setSiteConfig<ThrowOnError extends boolean = false>(options: Options<AccountsGroupsSetSiteConfigData, ThrowOnError>): RequestResult<AccountsGroupsSetSiteConfigResponses, unknown, ThrowOnError, "fields">;
static getGroupInfo<ThrowOnError extends boolean = false>(options?: Options<AccountsGroupsGetGroupInfoData, ThrowOnError>): RequestResult<AccountsGroupsGetGroupInfoResponses, unknown, ThrowOnError, "fields">;
static getAllMemberGroups<ThrowOnError extends boolean = false>(options?: Options<AccountsGroupsGetAllMemberGroupsData, ThrowOnError>): RequestResult<AccountsGroupsGetAllMemberGroupsResponses, unknown, ThrowOnError, "fields">;
static setSchema<ThrowOnError extends boolean = false>(options: Options<AccountsGroupsSetSchemaData, ThrowOnError>): RequestResult<AccountsGroupsSetSchemaResponses, unknown, ThrowOnError, "fields">;
static getSchema<ThrowOnError extends boolean = false>(options?: Options<AccountsGroupsGetSchemaData, ThrowOnError>): RequestResult<AccountsGroupsGetSchemaResponses, unknown, ThrowOnError, "fields">;
static deleteSchemaField<ThrowOnError extends boolean = false>(options?: Options<AccountsGroupsDeleteSchemaFieldData, ThrowOnError>): RequestResult<AccountsGroupsDeleteSchemaFieldResponses, unknown, ThrowOnError, "fields">;
}
declare class accounts {
static setAccountInfo<ThrowOnError extends boolean = false>(options?: Options<SetAccountInfoData, ThrowOnError>): RequestResult<SetAccountInfoResponses, unknown, ThrowOnError, "fields">;
static getAccountInfo<ThrowOnError extends boolean = false>(options: Options<GetAccountInfoData, ThrowOnError>): RequestResult<GetAccountInfoResponses, GetAccountInfoErrors, ThrowOnError, "fields">;
static b2B: typeof b2B;
static groups: typeof groups;
}
declare class credentials {
static get<ThrowOnError extends boolean = false>(options?: Options<DqmCredentialsGetData, ThrowOnError>): RequestResult<DqmCredentialsGetResponses, DqmCredentialsGetErrors, ThrowOnError, "fields">;
static set<ThrowOnError extends boolean = false>(options?: Options<DqmCredentialsSetData, ThrowOnError>): RequestResult<DqmCredentialsSetResponses, DqmCredentialsSetErrors, ThrowOnError, "fields">;
}
declare class dqm {
static credentials: typeof credentials;
}
declare class communication {
static update<ThrowOnError extends boolean = false>(options?: Options<CommunicationUpdateData, ThrowOnError>): RequestResult<CommunicationUpdateResponses, unknown, ThrowOnError, "fields">;
static get<ThrowOnError extends boolean = false>(options: Options<CommunicationGetData, ThrowOnError>): RequestResult<CommunicationGetResponses, CommunicationGetErrors, ThrowOnError, "fields">;
}
declare class ds {
static setSchema<ThrowOnError extends boolean = false>(options: Options<DsSetSchemaData, ThrowOnError>): RequestResult<DsSetSchemaResponses, DsSetSchemaErrors, ThrowOnError, "fields">;
static getSchema<ThrowOnError extends boolean = false>(options: Options<DsGetSchemaData, ThrowOnError>): RequestResult<DsGetSchemaResponses, DsGetSchemaErrors, ThrowOnError, "fields">;
static get<ThrowOnError extends boolean = false>(options: Options<DsGetData, ThrowOnError>): RequestResult<DsGetResponses, DsGetErrors, ThrowOnError, "fields">;
static store<ThrowOnError extends boolean = false>(options: Options<DsStoreData, ThrowOnError>): RequestResult<DsStoreResponses, DsStoreErrors, ThrowOnError, "fields">;
static search<ThrowOnError extends boolean = false>(options: Options<DsSearchData, ThrowOnError>): RequestResult<DsSearchResponses, DsSearchErrors, ThrowOnError, "fields">;
}
declare class bulk {
static retry<ThrowOnError extends boolean = false>(options?: Options<WorkflowInstancesBulkRetryData, ThrowOnError>): RequestResult<WorkflowInstancesBulkRetryResponses, unknown, ThrowOnError, "fields">;
}
declare class workflowInstances {
static bulkCancel<ThrowOnError extends boolean = false>(options?: Options<WorkflowInstancesBulkCancelData, ThrowOnError>): RequestResult<WorkflowInstancesBulkCancelResponses, unknown, ThrowOnError, "fields">;
static bulkDelete<ThrowOnError extends boolean = false>(options?: Options<WorkflowInstancesBulkDeleteData, ThrowOnError>): RequestResult<WorkflowInstancesBulkDeleteResponses, unknown, ThrowOnError, "fields">;
static cancel<ThrowOnError extends boolean = false>(options: Options<WorkflowInstancesCancelData, ThrowOnError>): RequestResult<WorkflowInstancesCancelResponses, WorkflowInstancesCancelErrors, ThrowOnError, "fields">;
static delete<ThrowOnError extends boolean = false>(options: Options<WorkflowInstancesDeleteData, ThrowOnError>): RequestResult<WorkflowInstancesDeleteResponses, WorkflowInstancesDeleteErrors, ThrowOnError, "fields">;
static get<ThrowOnError extends boolean = false>(options: Options<WorkflowInstancesGetData, ThrowOnError>): RequestResult<WorkflowInstancesGetResponses, unknown, ThrowOnError, "fields">;
static list<ThrowOnError extends boolean = false>(options?: Options<WorkflowInstancesListData, ThrowOnError>): RequestResult<WorkflowInstancesListResponses, unknown, ThrowOnError, "fields">;
static retry<ThrowOnError extends boolean = false>(options: Options<WorkflowInstancesRetryData, ThrowOnError>): RequestResult<WorkflowInstancesRetryResponses, WorkflowInstancesRetryErrors, ThrowOnError, "fields">;
static bulk: typeof bulk;
}
declare class workflowDefinitions {
static delete<ThrowOnError extends boolean = false>(options: Options<WorkflowDefinitionsDeleteData, ThrowOnError>): RequestResult<WorkflowDefinitionsDeleteResponses, unknown, ThrowOnError, "fields">;
static export<ThrowOnError extends boolean = false>(options: Options<WorkflowDefinitionsExportData, ThrowOnError>): RequestResult<WorkflowDefinitionsExportResponses, WorkflowDefinitionsExportErrors, ThrowOnError, "fields">;
static getByDefinitionAndVersion<ThrowOnError extends boolean = false>(options: Options<WorkflowDefinitionsGetByDefinitionAndVersionData, ThrowOnError>): RequestResult<WorkflowDefinitionsGetByDefinitionAndVersionResponses, WorkflowDefinitionsGetByDefinitionAndVersionErrors, ThrowOnError, "fields">;
static getByVersionId<ThrowOnError extends boolean = false>(options: Options<WorkflowDefinitionsGetByVersionIdData, ThrowOnError>): RequestResult<WorkflowDefinitionsGetByVersionIdResponses, WorkflowDefinitionsGetByVersionIdErrors, ThrowOnError, "fields">;
static import<ThrowOnError extends boolean = false>(options: Options<WorkflowDefinitionsImportData, ThrowOnError>): RequestResult<WorkflowDefinitionsImportResponses, unknown, ThrowOnError, "fields">;
static list<ThrowOnError extends boolean = false>(options?: Options<WorkflowDefinitionsListData, ThrowOnError>): RequestResult<WorkflowDefinitionsListResponses, unknown, ThrowOnError, "fields">;
static post<ThrowOnError extends boolean = false>(options: Options<WorkflowDefinitionsPostData, ThrowOnError>): RequestResult<WorkflowDefinitionsPostResponses, unknown, ThrowOnError, "fields">;
static publish<ThrowOnError extends boolean = false>(options: Options<WorkflowDefinitionsPublishData, ThrowOnError>): RequestResult<WorkflowDefinitionsPublishResponses, WorkflowDefinitionsPublishErrors, ThrowOnError, "fields">;
static unpublish<ThrowOnError extends boolean = false>(options: Options<WorkflowDefinitionsUnpublishData, ThrowOnError>): RequestResult<WorkflowDefinitionsUnpublishResponses, WorkflowDefinitionsUnpublishErrors, ThrowOnError, "fields">;
}
declare class workflowBlueprints {
static get<ThrowOnError extends boolean = false>(options: Options<WorkflowBlueprintsGetData, ThrowOnError>): RequestResult<WorkflowBlueprintsGetResponses, unknown, ThrowOnError, "fields">;
static list<ThrowOnError extends boolean = false>(options?: Options<WorkflowBlueprintsListData, ThrowOnError>): RequestResult<WorkflowBlueprintsListResponses, unknown, ThrowOnError, "fields">;
}
declare class workflowExecutionLog {
static get<ThrowOnError extends boolean = false>(options: Options<WorkflowExecutionLogGetData, ThrowOnError>): RequestResult<WorkflowExecutionLogGetResponses, unknown, ThrowOnError, "fields">;
}
declare class javaScriptLanguageServices {
static getTypeDefinitions<ThrowOnError extends boolean = false>(options: Options<JavaScriptLanguageServicesGetTypeDefinitionsData, ThrowOnError>): RequestResult<JavaScriptLanguageServicesGetTypeDefinitionsResponses, unknown, ThrowOnError, "fields">;
}
declare class runtimeSelectListItems {
static get<ThrowOnError extends boolean = false>(options?: Options<DesignerRuntimeSelectListItemsGetData, ThrowOnError>): RequestResult<DesignerRuntimeSelectListItemsGetResponses, unknown, ThrowOnError, "fields">;
}
declare class designer {
static runtimeSelectListItems: typeof runtimeSelectListItems;
}
declare class activities {
static list<ThrowOnError extends boolean = false>(options?: Options<ActivitiesListData, ThrowOnError>): RequestResult<ActivitiesListResponses, unknown, ThrowOnError, "fields">;
}
declare class identityFlow {
static workflowInstances: typeof workflowInstances;
static workflowDefinitions: typeof workflowDefinitions;
static workflowBlueprints: typeof workflowBlueprints;
static workflowExecutionLog: typeof workflowExecutionLog;
static javaScriptLanguageServices: typeof javaScriptLanguageServices;
static designer: typeof designer;
static activities: typeof activities;
}
declare class certificates {
static get<ThrowOnError extends boolean = false>(options?: Options<SamlCertificatesGetData, ThrowOnError>): RequestResult<SamlCertificatesGetResponses, unknown, ThrowOnError, "fields">;
}
declare class saml {
static certificates: typeof certificates;
}
declare class update {
static statisticsScheduling<ThrowOnError extends boolean = false>(options?: Options<UpdateStatisticsSchedulingData, ThrowOnError>): RequestResult<UpdateStatisticsSchedulingResponses, UpdateStatisticsSchedulingErrors, ThrowOnError, "fields">;
}
declare class get {
static statisticsScheduling<ThrowOnError extends boolean = false>(options?: Options<GetStatisticsSchedulingData, ThrowOnError>): RequestResult<GetStatisticsSchedulingResponses, GetStatisticsSchedulingErrors, ThrowOnError, "fields">;
}
declare class _delete {
static statisticsScheduling<ThrowOnError extends boolean = false>(options?: Options<DeleteStatisticsSchedulingData, ThrowOnError>): RequestResult<DeleteStatisticsSchedulingResponses, DeleteStatisticsSchedulingErrors, ThrowOnError, "fields">;
}
declare class statistics {
static update: typeof update;
static get: typeof get;
static delete: typeof _delete;
}
declare class suggestions {
static get<ThrowOnError extends boolean = false>(options?: Options<AddressSuggestionsGetData, ThrowOnError>): RequestResult<AddressSuggestionsGetResponses, AddressSuggestionsGetErrors, ThrowOnError, "fields">;
static select<ThrowOnError extends boolean = false>(options?: Options<AddressSuggestionsSelectData, ThrowOnError>): RequestResult<AddressSuggestionsSelectResponses, AddressSuggestionsSelectErrors, ThrowOnError, "fields">;
}
declare class address {
static suggestions: typeof suggestions;
}
declare class phonenumber {
static validate<ThrowOnError extends boolean = false>(options?: Options<PhonenumberValidateData, ThrowOnError>): RequestResult<PhonenumberValidateResponses, PhonenumberValidateErrors, ThrowOnError, "fields">;
}
declare class validation {
static address: typeof address;
static phonenumber: typeof phonenumber;
}
export { _delete, accounts, activities, address, b2B, bulk, certificates, communication, credentials, designer, dqm, ds, get, groups, identityFlow, javaScriptLanguageServices, phonenumber, runtimeSelectListItems, saml, setup, statistics, suggestions, update, validation, workflowBlueprints, workflowDefinitions, workflowExecutionLog, workflowInstances };
export type { Options };