@avallon-labs/sdk 54.3.0 → 54.4.0-staging.1249
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +477 -481
- package/dist/index.js +36 -36
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -13843,9 +13843,9 @@ type WorkerListToolsParams = {
|
|
|
13843
13843
|
sort_order?: WorkerListToolsSortOrder;
|
|
13844
13844
|
};
|
|
13845
13845
|
|
|
13846
|
-
type AwaitedInput$
|
|
13847
|
-
type Awaited$
|
|
13848
|
-
type SecondParameter$
|
|
13846
|
+
type AwaitedInput$u<T> = PromiseLike<T> | T;
|
|
13847
|
+
type Awaited$u<O> = O extends AwaitedInput$u<infer T> ? T : never;
|
|
13848
|
+
type SecondParameter$u<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
13849
13849
|
declare const getGetAccessUrl: (entityType: AccessEntityType, entityId: string) => string;
|
|
13850
13850
|
/**
|
|
13851
13851
|
* List who an entity is shared with. Admins see every entity through their role, whether or not they are listed. Requires `workers:write` on a worker.
|
|
@@ -13853,16 +13853,16 @@ declare const getGetAccessUrl: (entityType: AccessEntityType, entityId: string)
|
|
|
13853
13853
|
*/
|
|
13854
13854
|
declare const getAccess: (entityType: AccessEntityType, entityId: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetAccessEnvelope>;
|
|
13855
13855
|
declare const getGetAccessKey: (entityType: AccessEntityType, entityId: string) => readonly [`/v1/access/worker/${string}`];
|
|
13856
|
-
type GetAccessQueryResult = NonNullable<Awaited$
|
|
13856
|
+
type GetAccessQueryResult = NonNullable<Awaited$u<ReturnType<typeof getAccess>>>;
|
|
13857
13857
|
/**
|
|
13858
13858
|
* @summary Get access
|
|
13859
13859
|
*/
|
|
13860
13860
|
declare const useGetAccess: <TError = ErrorType<ErrorResponse>>(entityType: AccessEntityType, entityId: string, options?: {
|
|
13861
|
-
swr?: SWRConfiguration<Awaited$
|
|
13861
|
+
swr?: SWRConfiguration<Awaited$u<ReturnType<typeof getAccess>>, TError> & {
|
|
13862
13862
|
swrKey?: Key;
|
|
13863
13863
|
enabled?: boolean;
|
|
13864
13864
|
};
|
|
13865
|
-
request?: SecondParameter$
|
|
13865
|
+
request?: SecondParameter$u<typeof customFetch>;
|
|
13866
13866
|
}) => {
|
|
13867
13867
|
data: GetAccessEnvelope | undefined;
|
|
13868
13868
|
error: TError | undefined;
|
|
@@ -13877,19 +13877,19 @@ declare const getUpdateAccessUrl: (entityType: AccessEntityType, entityId: strin
|
|
|
13877
13877
|
* @summary Update access
|
|
13878
13878
|
*/
|
|
13879
13879
|
declare const updateAccess: (entityType: AccessEntityType, entityId: string, updateAccessBody?: UpdateAccessBody, options?: Parameters<typeof customFetch>[1]) => Promise<UpdateAccessEnvelope>;
|
|
13880
|
-
declare const getUpdateAccessMutationFetcher: (entityType: AccessEntityType, entityId: string, options?: SecondParameter$
|
|
13880
|
+
declare const getUpdateAccessMutationFetcher: (entityType: AccessEntityType, entityId: string, options?: SecondParameter$u<typeof customFetch>) => (_: Key, { arg }: {
|
|
13881
13881
|
arg: UpdateAccessBody | undefined;
|
|
13882
13882
|
}) => Promise<UpdateAccessEnvelope>;
|
|
13883
13883
|
declare const getUpdateAccessMutationKey: (entityType: AccessEntityType, entityId: string) => readonly [`/v1/access/worker/${string}`];
|
|
13884
|
-
type UpdateAccessMutationResult = NonNullable<Awaited$
|
|
13884
|
+
type UpdateAccessMutationResult = NonNullable<Awaited$u<ReturnType<typeof updateAccess>>>;
|
|
13885
13885
|
/**
|
|
13886
13886
|
* @summary Update access
|
|
13887
13887
|
*/
|
|
13888
13888
|
declare const useUpdateAccess: <TError = ErrorType<ErrorResponse>>(entityType: AccessEntityType, entityId: string, options?: {
|
|
13889
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
13889
|
+
swr?: SWRMutationConfiguration<Awaited$u<ReturnType<typeof updateAccess>>, TError, Key, UpdateAccessBody | undefined, Awaited$u<ReturnType<typeof updateAccess>>> & {
|
|
13890
13890
|
swrKey?: string;
|
|
13891
13891
|
};
|
|
13892
|
-
request?: SecondParameter$
|
|
13892
|
+
request?: SecondParameter$u<typeof customFetch>;
|
|
13893
13893
|
}) => {
|
|
13894
13894
|
isMutating: boolean;
|
|
13895
13895
|
trigger: swr_mutation.TriggerWithOptionsArgs<UpdateAccessEnvelope, TError, string | readonly [`/v1/access/worker/${string}`], UpdateAccessBody | undefined>;
|
|
@@ -13905,16 +13905,16 @@ declare const getGetMyAccessUrl: (entityType: AccessEntityType, entityId: string
|
|
|
13905
13905
|
*/
|
|
13906
13906
|
declare const getMyAccess: (entityType: AccessEntityType, entityId: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetMyAccessEnvelope>;
|
|
13907
13907
|
declare const getGetMyAccessKey: (entityType: AccessEntityType, entityId: string) => readonly [`/v1/access/worker/${string}/me`];
|
|
13908
|
-
type GetMyAccessQueryResult = NonNullable<Awaited$
|
|
13908
|
+
type GetMyAccessQueryResult = NonNullable<Awaited$u<ReturnType<typeof getMyAccess>>>;
|
|
13909
13909
|
/**
|
|
13910
13910
|
* @summary Get my access
|
|
13911
13911
|
*/
|
|
13912
13912
|
declare const useGetMyAccess: <TError = ErrorType<ErrorResponse>>(entityType: AccessEntityType, entityId: string, options?: {
|
|
13913
|
-
swr?: SWRConfiguration<Awaited$
|
|
13913
|
+
swr?: SWRConfiguration<Awaited$u<ReturnType<typeof getMyAccess>>, TError> & {
|
|
13914
13914
|
swrKey?: Key;
|
|
13915
13915
|
enabled?: boolean;
|
|
13916
13916
|
};
|
|
13917
|
-
request?: SecondParameter$
|
|
13917
|
+
request?: SecondParameter$u<typeof customFetch>;
|
|
13918
13918
|
}) => {
|
|
13919
13919
|
data: GetMyAccessEnvelope | undefined;
|
|
13920
13920
|
error: TError | undefined;
|
|
@@ -13924,9 +13924,9 @@ declare const useGetMyAccess: <TError = ErrorType<ErrorResponse>>(entityType: Ac
|
|
|
13924
13924
|
swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => swr.Arguments);
|
|
13925
13925
|
};
|
|
13926
13926
|
|
|
13927
|
-
type AwaitedInput$
|
|
13928
|
-
type Awaited$
|
|
13929
|
-
type SecondParameter$
|
|
13927
|
+
type AwaitedInput$t<T> = PromiseLike<T> | T;
|
|
13928
|
+
type Awaited$t<O> = O extends AwaitedInput$t<infer T> ? T : never;
|
|
13929
|
+
type SecondParameter$t<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
13930
13930
|
declare const getGetAnalyticsTimeSeriesUrl: (params: GetAnalyticsTimeSeriesParams) => string;
|
|
13931
13931
|
/**
|
|
13932
13932
|
* Retrieve a tenant-scoped time series for a single metric.
|
|
@@ -13944,16 +13944,16 @@ declare const getGetAnalyticsTimeSeriesUrl: (params: GetAnalyticsTimeSeriesParam
|
|
|
13944
13944
|
*/
|
|
13945
13945
|
declare const getAnalyticsTimeSeries: (params: GetAnalyticsTimeSeriesParams, options?: Parameters<typeof customFetch>[1]) => Promise<GetAnalyticsTimeSeriesEnvelope>;
|
|
13946
13946
|
declare const getGetAnalyticsTimeSeriesKey: (params: GetAnalyticsTimeSeriesParams) => readonly ["/v1/analytics/timeseries", ...GetAnalyticsTimeSeriesParams[]];
|
|
13947
|
-
type GetAnalyticsTimeSeriesQueryResult = NonNullable<Awaited$
|
|
13947
|
+
type GetAnalyticsTimeSeriesQueryResult = NonNullable<Awaited$t<ReturnType<typeof getAnalyticsTimeSeries>>>;
|
|
13948
13948
|
/**
|
|
13949
13949
|
* @summary Get analytics time series
|
|
13950
13950
|
*/
|
|
13951
13951
|
declare const useGetAnalyticsTimeSeries: <TError = ErrorType<ErrorResponse>>(params: GetAnalyticsTimeSeriesParams, options?: {
|
|
13952
|
-
swr?: SWRConfiguration<Awaited$
|
|
13952
|
+
swr?: SWRConfiguration<Awaited$t<ReturnType<typeof getAnalyticsTimeSeries>>, TError> & {
|
|
13953
13953
|
swrKey?: Key;
|
|
13954
13954
|
enabled?: boolean;
|
|
13955
13955
|
};
|
|
13956
|
-
request?: SecondParameter$
|
|
13956
|
+
request?: SecondParameter$t<typeof customFetch>;
|
|
13957
13957
|
}) => {
|
|
13958
13958
|
data: GetAnalyticsTimeSeriesEnvelope | undefined;
|
|
13959
13959
|
error: TError | undefined;
|
|
@@ -13963,9 +13963,9 @@ declare const useGetAnalyticsTimeSeries: <TError = ErrorType<ErrorResponse>>(par
|
|
|
13963
13963
|
swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => swr.Arguments);
|
|
13964
13964
|
};
|
|
13965
13965
|
|
|
13966
|
-
type AwaitedInput$
|
|
13967
|
-
type Awaited$
|
|
13968
|
-
type SecondParameter$
|
|
13966
|
+
type AwaitedInput$s<T> = PromiseLike<T> | T;
|
|
13967
|
+
type Awaited$s<O> = O extends AwaitedInput$s<infer T> ? T : never;
|
|
13968
|
+
type SecondParameter$s<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
13969
13969
|
declare const getListApiKeysUrl: (params?: ListApiKeysParams) => string;
|
|
13970
13970
|
/**
|
|
13971
13971
|
* List all API keys for your tenant.
|
|
@@ -13977,16 +13977,16 @@ declare const getListApiKeysUrl: (params?: ListApiKeysParams) => string;
|
|
|
13977
13977
|
*/
|
|
13978
13978
|
declare const listApiKeys: (params?: ListApiKeysParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListApiKeysEnvelope>;
|
|
13979
13979
|
declare const getListApiKeysKey: (params?: ListApiKeysParams) => readonly ["/platform/api-keys", ...ListApiKeysParams[]];
|
|
13980
|
-
type ListApiKeysQueryResult = NonNullable<Awaited$
|
|
13980
|
+
type ListApiKeysQueryResult = NonNullable<Awaited$s<ReturnType<typeof listApiKeys>>>;
|
|
13981
13981
|
/**
|
|
13982
13982
|
* @summary List API keys
|
|
13983
13983
|
*/
|
|
13984
13984
|
declare const useListApiKeys: <TError = ErrorType<ErrorResponse>>(params?: ListApiKeysParams, options?: {
|
|
13985
|
-
swr?: SWRConfiguration<Awaited$
|
|
13985
|
+
swr?: SWRConfiguration<Awaited$s<ReturnType<typeof listApiKeys>>, TError> & {
|
|
13986
13986
|
swrKey?: Key;
|
|
13987
13987
|
enabled?: boolean;
|
|
13988
13988
|
};
|
|
13989
|
-
request?: SecondParameter$
|
|
13989
|
+
request?: SecondParameter$s<typeof customFetch>;
|
|
13990
13990
|
}) => {
|
|
13991
13991
|
data: ListApiKeysEnvelope | undefined;
|
|
13992
13992
|
error: TError | undefined;
|
|
@@ -14005,19 +14005,19 @@ declare const getCreateApiKeyUrl: () => string;
|
|
|
14005
14005
|
* @summary Create an API key
|
|
14006
14006
|
*/
|
|
14007
14007
|
declare const createApiKey: (createApiKeyBody?: CreateApiKeyBody, options?: Parameters<typeof customFetch>[1]) => Promise<CreateApiKeyEnvelope>;
|
|
14008
|
-
declare const getCreateApiKeyMutationFetcher: (options?: SecondParameter$
|
|
14008
|
+
declare const getCreateApiKeyMutationFetcher: (options?: SecondParameter$s<typeof customFetch>) => (_: Key, { arg }: {
|
|
14009
14009
|
arg: CreateApiKeyBody | undefined;
|
|
14010
14010
|
}) => Promise<CreateApiKeyEnvelope>;
|
|
14011
14011
|
declare const getCreateApiKeyMutationKey: () => readonly ["/platform/api-keys"];
|
|
14012
|
-
type CreateApiKeyMutationResult = NonNullable<Awaited$
|
|
14012
|
+
type CreateApiKeyMutationResult = NonNullable<Awaited$s<ReturnType<typeof createApiKey>>>;
|
|
14013
14013
|
/**
|
|
14014
14014
|
* @summary Create an API key
|
|
14015
14015
|
*/
|
|
14016
14016
|
declare const useCreateApiKey: <TError = ErrorType<ErrorResponse>>(options?: {
|
|
14017
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
14017
|
+
swr?: SWRMutationConfiguration<Awaited$s<ReturnType<typeof createApiKey>>, TError, Key, CreateApiKeyBody | undefined, Awaited$s<ReturnType<typeof createApiKey>>> & {
|
|
14018
14018
|
swrKey?: string;
|
|
14019
14019
|
};
|
|
14020
|
-
request?: SecondParameter$
|
|
14020
|
+
request?: SecondParameter$s<typeof customFetch>;
|
|
14021
14021
|
}) => {
|
|
14022
14022
|
isMutating: boolean;
|
|
14023
14023
|
trigger: swr_mutation.TriggerWithOptionsArgs<CreateApiKeyEnvelope, TError, string | readonly ["/platform/api-keys"], CreateApiKeyBody | undefined>;
|
|
@@ -14036,19 +14036,19 @@ declare const getRevokeApiKeyUrl: (id: string) => string;
|
|
|
14036
14036
|
* @summary Revoke an API key
|
|
14037
14037
|
*/
|
|
14038
14038
|
declare const revokeApiKey: (id: string, options?: Parameters<typeof customFetch>[1]) => Promise<RevokeApiKeyEnvelope>;
|
|
14039
|
-
declare const getRevokeApiKeyMutationFetcher: (id: string, options?: SecondParameter$
|
|
14039
|
+
declare const getRevokeApiKeyMutationFetcher: (id: string, options?: SecondParameter$s<typeof customFetch>) => (_: Key, __: {
|
|
14040
14040
|
arg: Arguments;
|
|
14041
14041
|
}) => Promise<RevokeApiKeyEnvelope>;
|
|
14042
14042
|
declare const getRevokeApiKeyMutationKey: (id: string) => readonly [`/platform/api-keys/${string}/revoke`];
|
|
14043
|
-
type RevokeApiKeyMutationResult = NonNullable<Awaited$
|
|
14043
|
+
type RevokeApiKeyMutationResult = NonNullable<Awaited$s<ReturnType<typeof revokeApiKey>>>;
|
|
14044
14044
|
/**
|
|
14045
14045
|
* @summary Revoke an API key
|
|
14046
14046
|
*/
|
|
14047
14047
|
declare const useRevokeApiKey: <TError = ErrorType<ErrorResponse>>(id: string, options?: {
|
|
14048
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
14048
|
+
swr?: SWRMutationConfiguration<Awaited$s<ReturnType<typeof revokeApiKey>>, TError, Key, Arguments, Awaited$s<ReturnType<typeof revokeApiKey>>> & {
|
|
14049
14049
|
swrKey?: string;
|
|
14050
14050
|
};
|
|
14051
|
-
request?: SecondParameter$
|
|
14051
|
+
request?: SecondParameter$s<typeof customFetch>;
|
|
14052
14052
|
}) => {
|
|
14053
14053
|
isMutating: boolean;
|
|
14054
14054
|
trigger: swr_mutation.TriggerWithOptionsArgs<RevokeApiKeyEnvelope, TError, string | readonly [`/platform/api-keys/${string}/revoke`], Arguments>;
|
|
@@ -14065,19 +14065,19 @@ declare const getUpdateApiKeyUrl: (id: string) => string;
|
|
|
14065
14065
|
* @summary Update API key
|
|
14066
14066
|
*/
|
|
14067
14067
|
declare const updateApiKey: (id: string, updateApiKeyBody?: UpdateApiKeyBody, options?: Parameters<typeof customFetch>[1]) => Promise<UpdateApiKeyEnvelope>;
|
|
14068
|
-
declare const getUpdateApiKeyMutationFetcher: (id: string, options?: SecondParameter$
|
|
14068
|
+
declare const getUpdateApiKeyMutationFetcher: (id: string, options?: SecondParameter$s<typeof customFetch>) => (_: Key, { arg }: {
|
|
14069
14069
|
arg: UpdateApiKeyBody | undefined;
|
|
14070
14070
|
}) => Promise<UpdateApiKeyEnvelope>;
|
|
14071
14071
|
declare const getUpdateApiKeyMutationKey: (id: string) => readonly [`/platform/api-keys/${string}`];
|
|
14072
|
-
type UpdateApiKeyMutationResult = NonNullable<Awaited$
|
|
14072
|
+
type UpdateApiKeyMutationResult = NonNullable<Awaited$s<ReturnType<typeof updateApiKey>>>;
|
|
14073
14073
|
/**
|
|
14074
14074
|
* @summary Update API key
|
|
14075
14075
|
*/
|
|
14076
14076
|
declare const useUpdateApiKey: <TError = ErrorType<ErrorResponse>>(id: string, options?: {
|
|
14077
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
14077
|
+
swr?: SWRMutationConfiguration<Awaited$s<ReturnType<typeof updateApiKey>>, TError, Key, UpdateApiKeyBody | undefined, Awaited$s<ReturnType<typeof updateApiKey>>> & {
|
|
14078
14078
|
swrKey?: string;
|
|
14079
14079
|
};
|
|
14080
|
-
request?: SecondParameter$
|
|
14080
|
+
request?: SecondParameter$s<typeof customFetch>;
|
|
14081
14081
|
}) => {
|
|
14082
14082
|
isMutating: boolean;
|
|
14083
14083
|
trigger: swr_mutation.TriggerWithOptionsArgs<UpdateApiKeyEnvelope, TError, string | readonly [`/platform/api-keys/${string}`], UpdateApiKeyBody | undefined>;
|
|
@@ -14087,9 +14087,9 @@ declare const useUpdateApiKey: <TError = ErrorType<ErrorResponse>>(id: string, o
|
|
|
14087
14087
|
swrKey: string | readonly [`/platform/api-keys/${string}`];
|
|
14088
14088
|
};
|
|
14089
14089
|
|
|
14090
|
-
type AwaitedInput$
|
|
14091
|
-
type Awaited$
|
|
14092
|
-
type SecondParameter$
|
|
14090
|
+
type AwaitedInput$r<T> = PromiseLike<T> | T;
|
|
14091
|
+
type Awaited$r<O> = O extends AwaitedInput$r<infer T> ? T : never;
|
|
14092
|
+
type SecondParameter$r<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
14093
14093
|
declare const getCreateArtifactUrl: () => string;
|
|
14094
14094
|
/**
|
|
14095
14095
|
* Upload a document as a base64-encoded artifact for processing.
|
|
@@ -14105,19 +14105,19 @@ declare const getCreateArtifactUrl: () => string;
|
|
|
14105
14105
|
* @summary Create artifact
|
|
14106
14106
|
*/
|
|
14107
14107
|
declare const createArtifact: (createArtifactBody?: CreateArtifactBody, options?: Parameters<typeof customFetch>[1]) => Promise<CreateArtifactEnvelope>;
|
|
14108
|
-
declare const getCreateArtifactMutationFetcher: (options?: SecondParameter$
|
|
14108
|
+
declare const getCreateArtifactMutationFetcher: (options?: SecondParameter$r<typeof customFetch>) => (_: Key, { arg }: {
|
|
14109
14109
|
arg: CreateArtifactBody | undefined;
|
|
14110
14110
|
}) => Promise<CreateArtifactEnvelope>;
|
|
14111
14111
|
declare const getCreateArtifactMutationKey: () => readonly ["/v1/artifacts"];
|
|
14112
|
-
type CreateArtifactMutationResult = NonNullable<Awaited$
|
|
14112
|
+
type CreateArtifactMutationResult = NonNullable<Awaited$r<ReturnType<typeof createArtifact>>>;
|
|
14113
14113
|
/**
|
|
14114
14114
|
* @summary Create artifact
|
|
14115
14115
|
*/
|
|
14116
14116
|
declare const useCreateArtifact: <TError = ErrorType<ErrorResponse>>(options?: {
|
|
14117
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
14117
|
+
swr?: SWRMutationConfiguration<Awaited$r<ReturnType<typeof createArtifact>>, TError, Key, CreateArtifactBody | undefined, Awaited$r<ReturnType<typeof createArtifact>>> & {
|
|
14118
14118
|
swrKey?: string;
|
|
14119
14119
|
};
|
|
14120
|
-
request?: SecondParameter$
|
|
14120
|
+
request?: SecondParameter$r<typeof customFetch>;
|
|
14121
14121
|
}) => {
|
|
14122
14122
|
isMutating: boolean;
|
|
14123
14123
|
trigger: swr_mutation.TriggerWithOptionsArgs<CreateArtifactEnvelope, TError, string | readonly ["/v1/artifacts"], CreateArtifactBody | undefined>;
|
|
@@ -14147,16 +14147,16 @@ declare const getListArtifactsUrl: (params?: ListArtifactsParams) => string;
|
|
|
14147
14147
|
*/
|
|
14148
14148
|
declare const listArtifacts: (params?: ListArtifactsParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListArtifactsEnvelope>;
|
|
14149
14149
|
declare const getListArtifactsKey: (params?: ListArtifactsParams) => readonly ["/v1/artifacts", ...ListArtifactsParams[]];
|
|
14150
|
-
type ListArtifactsQueryResult = NonNullable<Awaited$
|
|
14150
|
+
type ListArtifactsQueryResult = NonNullable<Awaited$r<ReturnType<typeof listArtifacts>>>;
|
|
14151
14151
|
/**
|
|
14152
14152
|
* @summary List artifacts
|
|
14153
14153
|
*/
|
|
14154
14154
|
declare const useListArtifacts: <TError = ErrorType<ErrorResponse>>(params?: ListArtifactsParams, options?: {
|
|
14155
|
-
swr?: SWRConfiguration<Awaited$
|
|
14155
|
+
swr?: SWRConfiguration<Awaited$r<ReturnType<typeof listArtifacts>>, TError> & {
|
|
14156
14156
|
swrKey?: Key;
|
|
14157
14157
|
enabled?: boolean;
|
|
14158
14158
|
};
|
|
14159
|
-
request?: SecondParameter$
|
|
14159
|
+
request?: SecondParameter$r<typeof customFetch>;
|
|
14160
14160
|
}) => {
|
|
14161
14161
|
data: ListArtifactsEnvelope | undefined;
|
|
14162
14162
|
error: TError | undefined;
|
|
@@ -14174,16 +14174,16 @@ declare const getGetArtifactUrl: (id: string) => string;
|
|
|
14174
14174
|
*/
|
|
14175
14175
|
declare const getArtifact: (id: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetArtifactEnvelope>;
|
|
14176
14176
|
declare const getGetArtifactKey: (id: string) => readonly [`/v1/artifacts/${string}`];
|
|
14177
|
-
type GetArtifactQueryResult = NonNullable<Awaited$
|
|
14177
|
+
type GetArtifactQueryResult = NonNullable<Awaited$r<ReturnType<typeof getArtifact>>>;
|
|
14178
14178
|
/**
|
|
14179
14179
|
* @summary Get artifact
|
|
14180
14180
|
*/
|
|
14181
14181
|
declare const useGetArtifact: <TError = ErrorType<ErrorResponse>>(id: string, options?: {
|
|
14182
|
-
swr?: SWRConfiguration<Awaited$
|
|
14182
|
+
swr?: SWRConfiguration<Awaited$r<ReturnType<typeof getArtifact>>, TError> & {
|
|
14183
14183
|
swrKey?: Key;
|
|
14184
14184
|
enabled?: boolean;
|
|
14185
14185
|
};
|
|
14186
|
-
request?: SecondParameter$
|
|
14186
|
+
request?: SecondParameter$r<typeof customFetch>;
|
|
14187
14187
|
}) => {
|
|
14188
14188
|
data: GetArtifactEnvelope | undefined;
|
|
14189
14189
|
error: TError | undefined;
|
|
@@ -14198,19 +14198,19 @@ declare const getDeleteArtifactUrl: (id: string) => string;
|
|
|
14198
14198
|
* @summary Delete artifact
|
|
14199
14199
|
*/
|
|
14200
14200
|
declare const deleteArtifact: (id: string, options?: Parameters<typeof customFetch>[1]) => Promise<DeleteArtifactEnvelope>;
|
|
14201
|
-
declare const getDeleteArtifactMutationFetcher: (id: string, options?: SecondParameter$
|
|
14201
|
+
declare const getDeleteArtifactMutationFetcher: (id: string, options?: SecondParameter$r<typeof customFetch>) => (_: Key, __: {
|
|
14202
14202
|
arg: Arguments;
|
|
14203
14203
|
}) => Promise<DeleteArtifactEnvelope>;
|
|
14204
14204
|
declare const getDeleteArtifactMutationKey: (id: string) => readonly [`/v1/artifacts/${string}`];
|
|
14205
|
-
type DeleteArtifactMutationResult = NonNullable<Awaited$
|
|
14205
|
+
type DeleteArtifactMutationResult = NonNullable<Awaited$r<ReturnType<typeof deleteArtifact>>>;
|
|
14206
14206
|
/**
|
|
14207
14207
|
* @summary Delete artifact
|
|
14208
14208
|
*/
|
|
14209
14209
|
declare const useDeleteArtifact: <TError = ErrorType<ErrorResponse>>(id: string, options?: {
|
|
14210
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
14210
|
+
swr?: SWRMutationConfiguration<Awaited$r<ReturnType<typeof deleteArtifact>>, TError, Key, Arguments, Awaited$r<ReturnType<typeof deleteArtifact>>> & {
|
|
14211
14211
|
swrKey?: string;
|
|
14212
14212
|
};
|
|
14213
|
-
request?: SecondParameter$
|
|
14213
|
+
request?: SecondParameter$r<typeof customFetch>;
|
|
14214
14214
|
}) => {
|
|
14215
14215
|
isMutating: boolean;
|
|
14216
14216
|
trigger: swr_mutation.TriggerWithOptionsArgs<DeleteArtifactEnvelope, TError, string | readonly [`/v1/artifacts/${string}`], Arguments>;
|
|
@@ -14226,16 +14226,16 @@ declare const getGetArtifactMetadataKeysUrl: (params?: GetArtifactMetadataKeysPa
|
|
|
14226
14226
|
*/
|
|
14227
14227
|
declare const getArtifactMetadataKeys: (params?: GetArtifactMetadataKeysParams, options?: Parameters<typeof customFetch>[1]) => Promise<GetArtifactMetadataKeysEnvelope>;
|
|
14228
14228
|
declare const getGetArtifactMetadataKeysKey: (params?: GetArtifactMetadataKeysParams) => readonly ["/v1/artifacts/metadata/keys", ...GetArtifactMetadataKeysParams[]];
|
|
14229
|
-
type GetArtifactMetadataKeysQueryResult = NonNullable<Awaited$
|
|
14229
|
+
type GetArtifactMetadataKeysQueryResult = NonNullable<Awaited$r<ReturnType<typeof getArtifactMetadataKeys>>>;
|
|
14230
14230
|
/**
|
|
14231
14231
|
* @summary Get artifact metadata keys
|
|
14232
14232
|
*/
|
|
14233
14233
|
declare const useGetArtifactMetadataKeys: <TError = ErrorType<ErrorResponse>>(params?: GetArtifactMetadataKeysParams, options?: {
|
|
14234
|
-
swr?: SWRConfiguration<Awaited$
|
|
14234
|
+
swr?: SWRConfiguration<Awaited$r<ReturnType<typeof getArtifactMetadataKeys>>, TError> & {
|
|
14235
14235
|
swrKey?: Key;
|
|
14236
14236
|
enabled?: boolean;
|
|
14237
14237
|
};
|
|
14238
|
-
request?: SecondParameter$
|
|
14238
|
+
request?: SecondParameter$r<typeof customFetch>;
|
|
14239
14239
|
}) => {
|
|
14240
14240
|
data: GetArtifactMetadataKeysEnvelope | undefined;
|
|
14241
14241
|
error: TError | undefined;
|
|
@@ -14253,16 +14253,16 @@ declare const getGetArtifactStatusSummaryUrl: (params: GetArtifactStatusSummaryP
|
|
|
14253
14253
|
*/
|
|
14254
14254
|
declare const getArtifactStatusSummary: (params: GetArtifactStatusSummaryParams, options?: Parameters<typeof customFetch>[1]) => Promise<GetArtifactStatusSummaryEnvelope>;
|
|
14255
14255
|
declare const getGetArtifactStatusSummaryKey: (params: GetArtifactStatusSummaryParams) => readonly ["/v1/artifacts/status-summary", ...GetArtifactStatusSummaryParams[]];
|
|
14256
|
-
type GetArtifactStatusSummaryQueryResult = NonNullable<Awaited$
|
|
14256
|
+
type GetArtifactStatusSummaryQueryResult = NonNullable<Awaited$r<ReturnType<typeof getArtifactStatusSummary>>>;
|
|
14257
14257
|
/**
|
|
14258
14258
|
* @summary Get artifact status summary
|
|
14259
14259
|
*/
|
|
14260
14260
|
declare const useGetArtifactStatusSummary: <TError = ErrorType<ErrorResponse>>(params: GetArtifactStatusSummaryParams, options?: {
|
|
14261
|
-
swr?: SWRConfiguration<Awaited$
|
|
14261
|
+
swr?: SWRConfiguration<Awaited$r<ReturnType<typeof getArtifactStatusSummary>>, TError> & {
|
|
14262
14262
|
swrKey?: Key;
|
|
14263
14263
|
enabled?: boolean;
|
|
14264
14264
|
};
|
|
14265
|
-
request?: SecondParameter$
|
|
14265
|
+
request?: SecondParameter$r<typeof customFetch>;
|
|
14266
14266
|
}) => {
|
|
14267
14267
|
data: GetArtifactStatusSummaryEnvelope | undefined;
|
|
14268
14268
|
error: TError | undefined;
|
|
@@ -14277,19 +14277,19 @@ declare const getGetArtifactUploadUrlUrl: () => string;
|
|
|
14277
14277
|
* @summary Request a pre-signed URL for direct large file upload
|
|
14278
14278
|
*/
|
|
14279
14279
|
declare const getArtifactUploadUrl: (getArtifactUploadUrlBody?: GetArtifactUploadUrlBody, options?: Parameters<typeof customFetch>[1]) => Promise<GetArtifactUploadUrlEnvelope>;
|
|
14280
|
-
declare const getGetArtifactUploadUrlMutationFetcher: (options?: SecondParameter$
|
|
14280
|
+
declare const getGetArtifactUploadUrlMutationFetcher: (options?: SecondParameter$r<typeof customFetch>) => (_: Key, { arg }: {
|
|
14281
14281
|
arg: GetArtifactUploadUrlBody | undefined;
|
|
14282
14282
|
}) => Promise<GetArtifactUploadUrlEnvelope>;
|
|
14283
14283
|
declare const getGetArtifactUploadUrlMutationKey: () => readonly ["/v1/artifacts/get-upload-url"];
|
|
14284
|
-
type GetArtifactUploadUrlMutationResult = NonNullable<Awaited$
|
|
14284
|
+
type GetArtifactUploadUrlMutationResult = NonNullable<Awaited$r<ReturnType<typeof getArtifactUploadUrl>>>;
|
|
14285
14285
|
/**
|
|
14286
14286
|
* @summary Request a pre-signed URL for direct large file upload
|
|
14287
14287
|
*/
|
|
14288
14288
|
declare const useGetArtifactUploadUrl: <TError = ErrorType<ErrorResponse>>(options?: {
|
|
14289
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
14289
|
+
swr?: SWRMutationConfiguration<Awaited$r<ReturnType<typeof getArtifactUploadUrl>>, TError, Key, GetArtifactUploadUrlBody | undefined, Awaited$r<ReturnType<typeof getArtifactUploadUrl>>> & {
|
|
14290
14290
|
swrKey?: string;
|
|
14291
14291
|
};
|
|
14292
|
-
request?: SecondParameter$
|
|
14292
|
+
request?: SecondParameter$r<typeof customFetch>;
|
|
14293
14293
|
}) => {
|
|
14294
14294
|
isMutating: boolean;
|
|
14295
14295
|
trigger: swr_mutation.TriggerWithOptionsArgs<GetArtifactUploadUrlEnvelope, TError, string | readonly ["/v1/artifacts/get-upload-url"], GetArtifactUploadUrlBody | undefined>;
|
|
@@ -14304,19 +14304,19 @@ declare const getUpdateArtifactMetadataUrl: (id: string) => string;
|
|
|
14304
14304
|
* @summary Update artifact metadata
|
|
14305
14305
|
*/
|
|
14306
14306
|
declare const updateArtifactMetadata: (id: string, updateArtifactMetadataBody?: UpdateArtifactMetadataBody, options?: Parameters<typeof customFetch>[1]) => Promise<UpdateArtifactMetadataEnvelope>;
|
|
14307
|
-
declare const getUpdateArtifactMetadataMutationFetcher: (id: string, options?: SecondParameter$
|
|
14307
|
+
declare const getUpdateArtifactMetadataMutationFetcher: (id: string, options?: SecondParameter$r<typeof customFetch>) => (_: Key, { arg }: {
|
|
14308
14308
|
arg: UpdateArtifactMetadataBody | undefined;
|
|
14309
14309
|
}) => Promise<UpdateArtifactMetadataEnvelope>;
|
|
14310
14310
|
declare const getUpdateArtifactMetadataMutationKey: (id: string) => readonly [`/v1/artifacts/${string}/metadata`];
|
|
14311
|
-
type UpdateArtifactMetadataMutationResult = NonNullable<Awaited$
|
|
14311
|
+
type UpdateArtifactMetadataMutationResult = NonNullable<Awaited$r<ReturnType<typeof updateArtifactMetadata>>>;
|
|
14312
14312
|
/**
|
|
14313
14313
|
* @summary Update artifact metadata
|
|
14314
14314
|
*/
|
|
14315
14315
|
declare const useUpdateArtifactMetadata: <TError = ErrorType<ErrorResponse>>(id: string, options?: {
|
|
14316
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
14316
|
+
swr?: SWRMutationConfiguration<Awaited$r<ReturnType<typeof updateArtifactMetadata>>, TError, Key, UpdateArtifactMetadataBody | undefined, Awaited$r<ReturnType<typeof updateArtifactMetadata>>> & {
|
|
14317
14317
|
swrKey?: string;
|
|
14318
14318
|
};
|
|
14319
|
-
request?: SecondParameter$
|
|
14319
|
+
request?: SecondParameter$r<typeof customFetch>;
|
|
14320
14320
|
}) => {
|
|
14321
14321
|
isMutating: boolean;
|
|
14322
14322
|
trigger: swr_mutation.TriggerWithOptionsArgs<UpdateArtifactMetadataEnvelope, TError, string | readonly [`/v1/artifacts/${string}/metadata`], UpdateArtifactMetadataBody | undefined>;
|
|
@@ -14333,19 +14333,19 @@ declare const getUploadFileUrl: () => string;
|
|
|
14333
14333
|
* @summary Upload a file for processing
|
|
14334
14334
|
*/
|
|
14335
14335
|
declare const uploadFile: (uploadFileBody?: UploadFileBody, options?: Parameters<typeof customFetch>[1]) => Promise<UploadFileEnvelope>;
|
|
14336
|
-
declare const getUploadFileMutationFetcher: (options?: SecondParameter$
|
|
14336
|
+
declare const getUploadFileMutationFetcher: (options?: SecondParameter$r<typeof customFetch>) => (_: Key, { arg }: {
|
|
14337
14337
|
arg: UploadFileBody | undefined;
|
|
14338
14338
|
}) => Promise<UploadFileEnvelope>;
|
|
14339
14339
|
declare const getUploadFileMutationKey: () => readonly ["/v1/upload-file"];
|
|
14340
|
-
type UploadFileMutationResult = NonNullable<Awaited$
|
|
14340
|
+
type UploadFileMutationResult = NonNullable<Awaited$r<ReturnType<typeof uploadFile>>>;
|
|
14341
14341
|
/**
|
|
14342
14342
|
* @summary Upload a file for processing
|
|
14343
14343
|
*/
|
|
14344
14344
|
declare const useUploadFile: <TError = ErrorType<ErrorResponse>>(options?: {
|
|
14345
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
14345
|
+
swr?: SWRMutationConfiguration<Awaited$r<ReturnType<typeof uploadFile>>, TError, Key, UploadFileBody | undefined, Awaited$r<ReturnType<typeof uploadFile>>> & {
|
|
14346
14346
|
swrKey?: string;
|
|
14347
14347
|
};
|
|
14348
|
-
request?: SecondParameter$
|
|
14348
|
+
request?: SecondParameter$r<typeof customFetch>;
|
|
14349
14349
|
}) => {
|
|
14350
14350
|
isMutating: boolean;
|
|
14351
14351
|
trigger: swr_mutation.TriggerWithOptionsArgs<UploadFileEnvelope, TError, string | readonly ["/v1/upload-file"], UploadFileBody | undefined>;
|
|
@@ -14355,28 +14355,28 @@ declare const useUploadFile: <TError = ErrorType<ErrorResponse>>(options?: {
|
|
|
14355
14355
|
swrKey: string | readonly ["/v1/upload-file"];
|
|
14356
14356
|
};
|
|
14357
14357
|
|
|
14358
|
-
type AwaitedInput$
|
|
14359
|
-
type Awaited$
|
|
14360
|
-
type SecondParameter$
|
|
14358
|
+
type AwaitedInput$q<T> = PromiseLike<T> | T;
|
|
14359
|
+
type Awaited$q<O> = O extends AwaitedInput$q<infer T> ? T : never;
|
|
14360
|
+
type SecondParameter$q<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
14361
14361
|
declare const getSignUpUrl: () => string;
|
|
14362
14362
|
/**
|
|
14363
14363
|
* Create a new user account with email and password. When the response includes a pending_authentication_token, the account requires email verification: complete it via sign-in (type: email_otp) with the emailed one-time password and this token.
|
|
14364
14364
|
* @summary Sign up
|
|
14365
14365
|
*/
|
|
14366
14366
|
declare const signUp: (signUpBody?: SignUpBody, options?: Parameters<typeof customFetchNoAuth>[1]) => Promise<SignUpEnvelope>;
|
|
14367
|
-
declare const getSignUpMutationFetcher: (options?: SecondParameter$
|
|
14367
|
+
declare const getSignUpMutationFetcher: (options?: SecondParameter$q<typeof customFetchNoAuth>) => (_: Key, { arg }: {
|
|
14368
14368
|
arg: SignUpBody | undefined;
|
|
14369
14369
|
}) => Promise<SignUpEnvelope>;
|
|
14370
14370
|
declare const getSignUpMutationKey: () => readonly ["/v1/auth/sign-up"];
|
|
14371
|
-
type SignUpMutationResult = NonNullable<Awaited$
|
|
14371
|
+
type SignUpMutationResult = NonNullable<Awaited$q<ReturnType<typeof signUp>>>;
|
|
14372
14372
|
/**
|
|
14373
14373
|
* @summary Sign up
|
|
14374
14374
|
*/
|
|
14375
14375
|
declare const useSignUp: <TError = ErrorType<ErrorResponse>>(options?: {
|
|
14376
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
14376
|
+
swr?: SWRMutationConfiguration<Awaited$q<ReturnType<typeof signUp>>, TError, Key, SignUpBody | undefined, Awaited$q<ReturnType<typeof signUp>>> & {
|
|
14377
14377
|
swrKey?: string;
|
|
14378
14378
|
};
|
|
14379
|
-
request?: SecondParameter$
|
|
14379
|
+
request?: SecondParameter$q<typeof customFetchNoAuth>;
|
|
14380
14380
|
}) => {
|
|
14381
14381
|
isMutating: boolean;
|
|
14382
14382
|
trigger: swr_mutation.TriggerWithOptionsArgs<SignUpEnvelope, TError, string | readonly ["/v1/auth/sign-up"], SignUpBody | undefined>;
|
|
@@ -14395,19 +14395,19 @@ declare const getSignInUrl: () => string;
|
|
|
14395
14395
|
* @summary Sign in
|
|
14396
14396
|
*/
|
|
14397
14397
|
declare const signIn: (signInBody?: SignInBody, options?: Parameters<typeof customFetchNoAuth>[1]) => Promise<SignInEnvelope>;
|
|
14398
|
-
declare const getSignInMutationFetcher: (options?: SecondParameter$
|
|
14398
|
+
declare const getSignInMutationFetcher: (options?: SecondParameter$q<typeof customFetchNoAuth>) => (_: Key, { arg }: {
|
|
14399
14399
|
arg: SignInBody | undefined;
|
|
14400
14400
|
}) => Promise<SignInEnvelope>;
|
|
14401
14401
|
declare const getSignInMutationKey: () => readonly ["/v1/auth/sign-in"];
|
|
14402
|
-
type SignInMutationResult = NonNullable<Awaited$
|
|
14402
|
+
type SignInMutationResult = NonNullable<Awaited$q<ReturnType<typeof signIn>>>;
|
|
14403
14403
|
/**
|
|
14404
14404
|
* @summary Sign in
|
|
14405
14405
|
*/
|
|
14406
14406
|
declare const useSignIn: <TError = ErrorType<ErrorResponse>>(options?: {
|
|
14407
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
14407
|
+
swr?: SWRMutationConfiguration<Awaited$q<ReturnType<typeof signIn>>, TError, Key, SignInBody | undefined, Awaited$q<ReturnType<typeof signIn>>> & {
|
|
14408
14408
|
swrKey?: string;
|
|
14409
14409
|
};
|
|
14410
|
-
request?: SecondParameter$
|
|
14410
|
+
request?: SecondParameter$q<typeof customFetchNoAuth>;
|
|
14411
14411
|
}) => {
|
|
14412
14412
|
isMutating: boolean;
|
|
14413
14413
|
trigger: swr_mutation.TriggerWithOptionsArgs<SignInEnvelope, TError, string | readonly ["/v1/auth/sign-in"], SignInBody | undefined>;
|
|
@@ -14422,19 +14422,19 @@ declare const getRequestPasswordResetUrl: () => string;
|
|
|
14422
14422
|
* @summary Request password reset
|
|
14423
14423
|
*/
|
|
14424
14424
|
declare const requestPasswordReset: (requestPasswordResetBody?: RequestPasswordResetBody, options?: Parameters<typeof customFetchNoAuth>[1]) => Promise<RequestPasswordResetEnvelope>;
|
|
14425
|
-
declare const getRequestPasswordResetMutationFetcher: (options?: SecondParameter$
|
|
14425
|
+
declare const getRequestPasswordResetMutationFetcher: (options?: SecondParameter$q<typeof customFetchNoAuth>) => (_: Key, { arg }: {
|
|
14426
14426
|
arg: RequestPasswordResetBody | undefined;
|
|
14427
14427
|
}) => Promise<RequestPasswordResetEnvelope>;
|
|
14428
14428
|
declare const getRequestPasswordResetMutationKey: () => readonly ["/v1/auth/request-password-reset"];
|
|
14429
|
-
type RequestPasswordResetMutationResult = NonNullable<Awaited$
|
|
14429
|
+
type RequestPasswordResetMutationResult = NonNullable<Awaited$q<ReturnType<typeof requestPasswordReset>>>;
|
|
14430
14430
|
/**
|
|
14431
14431
|
* @summary Request password reset
|
|
14432
14432
|
*/
|
|
14433
14433
|
declare const useRequestPasswordReset: <TError = ErrorType<ErrorResponse>>(options?: {
|
|
14434
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
14434
|
+
swr?: SWRMutationConfiguration<Awaited$q<ReturnType<typeof requestPasswordReset>>, TError, Key, RequestPasswordResetBody | undefined, Awaited$q<ReturnType<typeof requestPasswordReset>>> & {
|
|
14435
14435
|
swrKey?: string;
|
|
14436
14436
|
};
|
|
14437
|
-
request?: SecondParameter$
|
|
14437
|
+
request?: SecondParameter$q<typeof customFetchNoAuth>;
|
|
14438
14438
|
}) => {
|
|
14439
14439
|
isMutating: boolean;
|
|
14440
14440
|
trigger: swr_mutation.TriggerWithOptionsArgs<RequestPasswordResetEnvelope, TError, string | readonly ["/v1/auth/request-password-reset"], RequestPasswordResetBody | undefined>;
|
|
@@ -14449,19 +14449,19 @@ declare const getResetPasswordUrl: () => string;
|
|
|
14449
14449
|
* @summary Reset password
|
|
14450
14450
|
*/
|
|
14451
14451
|
declare const resetPassword: (resetPasswordBody?: ResetPasswordBody, options?: Parameters<typeof customFetchNoAuth>[1]) => Promise<ResetPasswordEnvelope>;
|
|
14452
|
-
declare const getResetPasswordMutationFetcher: (options?: SecondParameter$
|
|
14452
|
+
declare const getResetPasswordMutationFetcher: (options?: SecondParameter$q<typeof customFetchNoAuth>) => (_: Key, { arg }: {
|
|
14453
14453
|
arg: ResetPasswordBody | undefined;
|
|
14454
14454
|
}) => Promise<ResetPasswordEnvelope>;
|
|
14455
14455
|
declare const getResetPasswordMutationKey: () => readonly ["/v1/auth/reset-password"];
|
|
14456
|
-
type ResetPasswordMutationResult = NonNullable<Awaited$
|
|
14456
|
+
type ResetPasswordMutationResult = NonNullable<Awaited$q<ReturnType<typeof resetPassword>>>;
|
|
14457
14457
|
/**
|
|
14458
14458
|
* @summary Reset password
|
|
14459
14459
|
*/
|
|
14460
14460
|
declare const useResetPassword: <TError = ErrorType<ErrorResponse>>(options?: {
|
|
14461
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
14461
|
+
swr?: SWRMutationConfiguration<Awaited$q<ReturnType<typeof resetPassword>>, TError, Key, ResetPasswordBody | undefined, Awaited$q<ReturnType<typeof resetPassword>>> & {
|
|
14462
14462
|
swrKey?: string;
|
|
14463
14463
|
};
|
|
14464
|
-
request?: SecondParameter$
|
|
14464
|
+
request?: SecondParameter$q<typeof customFetchNoAuth>;
|
|
14465
14465
|
}) => {
|
|
14466
14466
|
isMutating: boolean;
|
|
14467
14467
|
trigger: swr_mutation.TriggerWithOptionsArgs<ResetPasswordEnvelope, TError, string | readonly ["/v1/auth/reset-password"], ResetPasswordBody | undefined>;
|
|
@@ -14476,19 +14476,19 @@ declare const getRefreshTokenUrl: () => string;
|
|
|
14476
14476
|
* @summary Refresh authentication token
|
|
14477
14477
|
*/
|
|
14478
14478
|
declare const refreshToken: (refreshTokenBody?: RefreshTokenBody, options?: Parameters<typeof customFetchNoAuth>[1]) => Promise<RefreshTokenEnvelope>;
|
|
14479
|
-
declare const getRefreshTokenMutationFetcher: (options?: SecondParameter$
|
|
14479
|
+
declare const getRefreshTokenMutationFetcher: (options?: SecondParameter$q<typeof customFetchNoAuth>) => (_: Key, { arg }: {
|
|
14480
14480
|
arg: RefreshTokenBody | undefined;
|
|
14481
14481
|
}) => Promise<RefreshTokenEnvelope>;
|
|
14482
14482
|
declare const getRefreshTokenMutationKey: () => readonly ["/v1/auth/refresh-token"];
|
|
14483
|
-
type RefreshTokenMutationResult = NonNullable<Awaited$
|
|
14483
|
+
type RefreshTokenMutationResult = NonNullable<Awaited$q<ReturnType<typeof refreshToken>>>;
|
|
14484
14484
|
/**
|
|
14485
14485
|
* @summary Refresh authentication token
|
|
14486
14486
|
*/
|
|
14487
14487
|
declare const useRefreshToken: <TError = ErrorType<ErrorResponse>>(options?: {
|
|
14488
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
14488
|
+
swr?: SWRMutationConfiguration<Awaited$q<ReturnType<typeof refreshToken>>, TError, Key, RefreshTokenBody | undefined, Awaited$q<ReturnType<typeof refreshToken>>> & {
|
|
14489
14489
|
swrKey?: string;
|
|
14490
14490
|
};
|
|
14491
|
-
request?: SecondParameter$
|
|
14491
|
+
request?: SecondParameter$q<typeof customFetchNoAuth>;
|
|
14492
14492
|
}) => {
|
|
14493
14493
|
isMutating: boolean;
|
|
14494
14494
|
trigger: swr_mutation.TriggerWithOptionsArgs<RefreshTokenEnvelope, TError, string | readonly ["/v1/auth/refresh-token"], RefreshTokenBody | undefined>;
|
|
@@ -14497,6 +14497,35 @@ declare const useRefreshToken: <TError = ErrorType<ErrorResponse>>(options?: {
|
|
|
14497
14497
|
data: RefreshTokenEnvelope | undefined;
|
|
14498
14498
|
swrKey: string | readonly ["/v1/auth/refresh-token"];
|
|
14499
14499
|
};
|
|
14500
|
+
declare const getRefreshSessionUrl: () => string;
|
|
14501
|
+
/**
|
|
14502
|
+
* Rotate the refresh token and return a new access token for `tenant_id`. Call it with a different `tenant_id` to switch tenants.
|
|
14503
|
+
*
|
|
14504
|
+
* Send the current access token as `Authorization: Bearer`. It may be expired: it only identifies the user, and the refresh token must belong to that same user. The identity provider decides whether the session is still valid. The user must be a member of `tenant_id` (404 otherwise).
|
|
14505
|
+
* @summary Refresh session
|
|
14506
|
+
*/
|
|
14507
|
+
declare const refreshSession: (refreshSessionBody?: RefreshSessionBody, options?: Parameters<typeof customFetchNoAuth>[1]) => Promise<RefreshSessionEnvelope>;
|
|
14508
|
+
declare const getRefreshSessionMutationFetcher: (options?: SecondParameter$q<typeof customFetchNoAuth>) => (_: Key, { arg }: {
|
|
14509
|
+
arg: RefreshSessionBody | undefined;
|
|
14510
|
+
}) => Promise<RefreshSessionEnvelope>;
|
|
14511
|
+
declare const getRefreshSessionMutationKey: () => readonly ["/v1/auth/session/refresh"];
|
|
14512
|
+
type RefreshSessionMutationResult = NonNullable<Awaited$q<ReturnType<typeof refreshSession>>>;
|
|
14513
|
+
/**
|
|
14514
|
+
* @summary Refresh session
|
|
14515
|
+
*/
|
|
14516
|
+
declare const useRefreshSession: <TError = ErrorType<ErrorResponse>>(options?: {
|
|
14517
|
+
swr?: SWRMutationConfiguration<Awaited$q<ReturnType<typeof refreshSession>>, TError, Key, RefreshSessionBody | undefined, Awaited$q<ReturnType<typeof refreshSession>>> & {
|
|
14518
|
+
swrKey?: string;
|
|
14519
|
+
};
|
|
14520
|
+
request?: SecondParameter$q<typeof customFetchNoAuth>;
|
|
14521
|
+
}) => {
|
|
14522
|
+
isMutating: boolean;
|
|
14523
|
+
trigger: swr_mutation.TriggerWithOptionsArgs<RefreshSessionEnvelope, TError, string | readonly ["/v1/auth/session/refresh"], RefreshSessionBody | undefined>;
|
|
14524
|
+
reset: () => void;
|
|
14525
|
+
error: TError | undefined;
|
|
14526
|
+
data: RefreshSessionEnvelope | undefined;
|
|
14527
|
+
swrKey: string | readonly ["/v1/auth/session/refresh"];
|
|
14528
|
+
};
|
|
14500
14529
|
declare const getGetOAuthUrlUrl: (params: GetOAuthUrlParams) => string;
|
|
14501
14530
|
/**
|
|
14502
14531
|
* Generate an OAuth authorization URL for a given provider.
|
|
@@ -14508,16 +14537,16 @@ declare const getGetOAuthUrlUrl: (params: GetOAuthUrlParams) => string;
|
|
|
14508
14537
|
*/
|
|
14509
14538
|
declare const getOAuthUrl: (params: GetOAuthUrlParams, options?: Parameters<typeof customFetchNoAuth>[1]) => Promise<GetOAuthUrlEnvelope>;
|
|
14510
14539
|
declare const getGetOAuthUrlKey: (params: GetOAuthUrlParams) => readonly ["/v1/auth/oauth-url", ...GetOAuthUrlParams[]];
|
|
14511
|
-
type GetOAuthUrlQueryResult = NonNullable<Awaited$
|
|
14540
|
+
type GetOAuthUrlQueryResult = NonNullable<Awaited$q<ReturnType<typeof getOAuthUrl>>>;
|
|
14512
14541
|
/**
|
|
14513
14542
|
* @summary Get OAuth sign-in URL
|
|
14514
14543
|
*/
|
|
14515
14544
|
declare const useGetOAuthUrl: <TError = ErrorType<ErrorResponse>>(params: GetOAuthUrlParams, options?: {
|
|
14516
|
-
swr?: SWRConfiguration<Awaited$
|
|
14545
|
+
swr?: SWRConfiguration<Awaited$q<ReturnType<typeof getOAuthUrl>>, TError> & {
|
|
14517
14546
|
swrKey?: Key;
|
|
14518
14547
|
enabled?: boolean;
|
|
14519
14548
|
};
|
|
14520
|
-
request?: SecondParameter$
|
|
14549
|
+
request?: SecondParameter$q<typeof customFetchNoAuth>;
|
|
14521
14550
|
}) => {
|
|
14522
14551
|
data: GetOAuthUrlEnvelope | undefined;
|
|
14523
14552
|
error: TError | undefined;
|
|
@@ -14536,19 +14565,19 @@ declare const getGetSessionTokenUrl: () => string;
|
|
|
14536
14565
|
* @summary Create or switch tenant session
|
|
14537
14566
|
*/
|
|
14538
14567
|
declare const getSessionToken: (getSessionTokenBody?: GetSessionTokenBody, options?: Parameters<typeof customFetchNoAuth>[1]) => Promise<GetSessionTokenEnvelope>;
|
|
14539
|
-
declare const getGetSessionTokenMutationFetcher: (options?: SecondParameter$
|
|
14568
|
+
declare const getGetSessionTokenMutationFetcher: (options?: SecondParameter$q<typeof customFetchNoAuth>) => (_: Key, { arg }: {
|
|
14540
14569
|
arg: GetSessionTokenBody | undefined;
|
|
14541
14570
|
}) => Promise<GetSessionTokenEnvelope>;
|
|
14542
14571
|
declare const getGetSessionTokenMutationKey: () => readonly ["/v1/auth/session"];
|
|
14543
|
-
type GetSessionTokenMutationResult = NonNullable<Awaited$
|
|
14572
|
+
type GetSessionTokenMutationResult = NonNullable<Awaited$q<ReturnType<typeof getSessionToken>>>;
|
|
14544
14573
|
/**
|
|
14545
14574
|
* @summary Create or switch tenant session
|
|
14546
14575
|
*/
|
|
14547
14576
|
declare const useGetSessionToken: <TError = ErrorType<ErrorResponse>>(options?: {
|
|
14548
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
14577
|
+
swr?: SWRMutationConfiguration<Awaited$q<ReturnType<typeof getSessionToken>>, TError, Key, GetSessionTokenBody | undefined, Awaited$q<ReturnType<typeof getSessionToken>>> & {
|
|
14549
14578
|
swrKey?: string;
|
|
14550
14579
|
};
|
|
14551
|
-
request?: SecondParameter$
|
|
14580
|
+
request?: SecondParameter$q<typeof customFetchNoAuth>;
|
|
14552
14581
|
}) => {
|
|
14553
14582
|
isMutating: boolean;
|
|
14554
14583
|
trigger: swr_mutation.TriggerWithOptionsArgs<GetSessionTokenEnvelope, TError, string | readonly ["/v1/auth/session"], GetSessionTokenBody | undefined>;
|
|
@@ -14564,16 +14593,16 @@ declare const getGetPartnerJwksUrl: (partner: string) => string;
|
|
|
14564
14593
|
*/
|
|
14565
14594
|
declare const getPartnerJwks: (partner: string, options?: Parameters<typeof customFetchNoAuth>[1]) => Promise<PartnerJwks>;
|
|
14566
14595
|
declare const getGetPartnerJwksKey: (partner: string) => readonly [`/.well-known/partners/${string}/jwks.json`];
|
|
14567
|
-
type GetPartnerJwksQueryResult = NonNullable<Awaited$
|
|
14596
|
+
type GetPartnerJwksQueryResult = NonNullable<Awaited$q<ReturnType<typeof getPartnerJwks>>>;
|
|
14568
14597
|
/**
|
|
14569
14598
|
* @summary Get partner JWKS
|
|
14570
14599
|
*/
|
|
14571
14600
|
declare const useGetPartnerJwks: <TError = ErrorType<ErrorResponse>>(partner: string, options?: {
|
|
14572
|
-
swr?: SWRConfiguration<Awaited$
|
|
14601
|
+
swr?: SWRConfiguration<Awaited$q<ReturnType<typeof getPartnerJwks>>, TError> & {
|
|
14573
14602
|
swrKey?: Key;
|
|
14574
14603
|
enabled?: boolean;
|
|
14575
14604
|
};
|
|
14576
|
-
request?: SecondParameter$
|
|
14605
|
+
request?: SecondParameter$q<typeof customFetchNoAuth>;
|
|
14577
14606
|
}) => {
|
|
14578
14607
|
data: PartnerJwks | undefined;
|
|
14579
14608
|
error: TError | undefined;
|
|
@@ -14588,19 +14617,19 @@ declare const getPartnerLaunchUrl: (params?: PartnerLaunchParams) => string;
|
|
|
14588
14617
|
* @summary Partner launch (SSO)
|
|
14589
14618
|
*/
|
|
14590
14619
|
declare const partnerLaunch: (params?: PartnerLaunchParams, options?: Parameters<typeof customFetchNoAuth>[1]) => Promise<unknown>;
|
|
14591
|
-
declare const getPartnerLaunchMutationFetcher: (params?: PartnerLaunchParams, options?: SecondParameter$
|
|
14620
|
+
declare const getPartnerLaunchMutationFetcher: (params?: PartnerLaunchParams, options?: SecondParameter$q<typeof customFetchNoAuth>) => (_: Key, __: {
|
|
14592
14621
|
arg: Arguments;
|
|
14593
14622
|
}) => Promise<unknown>;
|
|
14594
14623
|
declare const getPartnerLaunchMutationKey: (params?: PartnerLaunchParams) => readonly ["/v1/auth/partner-launch", ...PartnerLaunchParams[]];
|
|
14595
|
-
type PartnerLaunchMutationResult = NonNullable<Awaited$
|
|
14624
|
+
type PartnerLaunchMutationResult = NonNullable<Awaited$q<ReturnType<typeof partnerLaunch>>>;
|
|
14596
14625
|
/**
|
|
14597
14626
|
* @summary Partner launch (SSO)
|
|
14598
14627
|
*/
|
|
14599
14628
|
declare const usePartnerLaunch: <TError = ErrorType<PartnerLaunchEnvelope | ErrorResponse>>(params?: PartnerLaunchParams, options?: {
|
|
14600
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
14629
|
+
swr?: SWRMutationConfiguration<Awaited$q<ReturnType<typeof partnerLaunch>>, TError, Key, Arguments, Awaited$q<ReturnType<typeof partnerLaunch>>> & {
|
|
14601
14630
|
swrKey?: string;
|
|
14602
14631
|
};
|
|
14603
|
-
request?: SecondParameter$
|
|
14632
|
+
request?: SecondParameter$q<typeof customFetchNoAuth>;
|
|
14604
14633
|
}) => {
|
|
14605
14634
|
isMutating: boolean;
|
|
14606
14635
|
trigger: swr_mutation.TriggerWithOptionsArgs<unknown, TError, string | readonly ["/v1/auth/partner-launch", ...PartnerLaunchParams[]], Arguments>;
|
|
@@ -14615,19 +14644,19 @@ declare const getExchangeExternalIdentityTokenUrl: () => string;
|
|
|
14615
14644
|
* @summary Exchange an external identity token
|
|
14616
14645
|
*/
|
|
14617
14646
|
declare const exchangeExternalIdentityToken: (exchangeExternalIdentityTokenBody?: ExchangeExternalIdentityTokenBody, options?: Parameters<typeof customFetchNoAuth>[1]) => Promise<ExchangeExternalIdentityTokenEnvelope>;
|
|
14618
|
-
declare const getExchangeExternalIdentityTokenMutationFetcher: (options?: SecondParameter$
|
|
14647
|
+
declare const getExchangeExternalIdentityTokenMutationFetcher: (options?: SecondParameter$q<typeof customFetchNoAuth>) => (_: Key, { arg }: {
|
|
14619
14648
|
arg: ExchangeExternalIdentityTokenBody | undefined;
|
|
14620
14649
|
}) => Promise<ExchangeExternalIdentityTokenEnvelope>;
|
|
14621
14650
|
declare const getExchangeExternalIdentityTokenMutationKey: () => readonly ["/public/v1/identity/token"];
|
|
14622
|
-
type ExchangeExternalIdentityTokenMutationResult = NonNullable<Awaited$
|
|
14651
|
+
type ExchangeExternalIdentityTokenMutationResult = NonNullable<Awaited$q<ReturnType<typeof exchangeExternalIdentityToken>>>;
|
|
14623
14652
|
/**
|
|
14624
14653
|
* @summary Exchange an external identity token
|
|
14625
14654
|
*/
|
|
14626
14655
|
declare const useExchangeExternalIdentityToken: <TError = ErrorType<ErrorResponse>>(options?: {
|
|
14627
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
14656
|
+
swr?: SWRMutationConfiguration<Awaited$q<ReturnType<typeof exchangeExternalIdentityToken>>, TError, Key, ExchangeExternalIdentityTokenBody | undefined, Awaited$q<ReturnType<typeof exchangeExternalIdentityToken>>> & {
|
|
14628
14657
|
swrKey?: string;
|
|
14629
14658
|
};
|
|
14630
|
-
request?: SecondParameter$
|
|
14659
|
+
request?: SecondParameter$q<typeof customFetchNoAuth>;
|
|
14631
14660
|
}) => {
|
|
14632
14661
|
isMutating: boolean;
|
|
14633
14662
|
trigger: swr_mutation.TriggerWithOptionsArgs<ExchangeExternalIdentityTokenEnvelope, TError, string | readonly ["/public/v1/identity/token"], ExchangeExternalIdentityTokenBody | undefined>;
|
|
@@ -14637,28 +14666,28 @@ declare const useExchangeExternalIdentityToken: <TError = ErrorType<ErrorRespons
|
|
|
14637
14666
|
swrKey: string | readonly ["/public/v1/identity/token"];
|
|
14638
14667
|
};
|
|
14639
14668
|
|
|
14640
|
-
type AwaitedInput$
|
|
14641
|
-
type Awaited$
|
|
14642
|
-
type SecondParameter$
|
|
14669
|
+
type AwaitedInput$p<T> = PromiseLike<T> | T;
|
|
14670
|
+
type Awaited$p<O> = O extends AwaitedInput$p<infer T> ? T : never;
|
|
14671
|
+
type SecondParameter$p<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
14643
14672
|
declare const getCreateCallFeedbackUrl: (id: string) => string;
|
|
14644
14673
|
/**
|
|
14645
14674
|
* Create feedback for a specific message in a call. Requires user (JWT) authentication; the author is derived from the authenticated user's profile and API-key callers are rejected.
|
|
14646
14675
|
* @summary Create feedback on a call message
|
|
14647
14676
|
*/
|
|
14648
14677
|
declare const createCallFeedback: (id: string, createFeedbackRequest?: CreateFeedbackRequest, options?: Parameters<typeof customFetch>[1]) => Promise<CreateCallFeedbackEnvelope>;
|
|
14649
|
-
declare const getCreateCallFeedbackMutationFetcher: (id: string, options?: SecondParameter$
|
|
14678
|
+
declare const getCreateCallFeedbackMutationFetcher: (id: string, options?: SecondParameter$p<typeof customFetch>) => (_: Key, { arg }: {
|
|
14650
14679
|
arg: CreateFeedbackRequest | undefined;
|
|
14651
14680
|
}) => Promise<CreateCallFeedbackEnvelope>;
|
|
14652
14681
|
declare const getCreateCallFeedbackMutationKey: (id: string) => readonly [`/v1/calls/${string}/feedback`];
|
|
14653
|
-
type CreateCallFeedbackMutationResult = NonNullable<Awaited$
|
|
14682
|
+
type CreateCallFeedbackMutationResult = NonNullable<Awaited$p<ReturnType<typeof createCallFeedback>>>;
|
|
14654
14683
|
/**
|
|
14655
14684
|
* @summary Create feedback on a call message
|
|
14656
14685
|
*/
|
|
14657
14686
|
declare const useCreateCallFeedback: <TError = ErrorType<ErrorResponse>>(id: string, options?: {
|
|
14658
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
14687
|
+
swr?: SWRMutationConfiguration<Awaited$p<ReturnType<typeof createCallFeedback>>, TError, Key, CreateFeedbackRequest | undefined, Awaited$p<ReturnType<typeof createCallFeedback>>> & {
|
|
14659
14688
|
swrKey?: string;
|
|
14660
14689
|
};
|
|
14661
|
-
request?: SecondParameter$
|
|
14690
|
+
request?: SecondParameter$p<typeof customFetch>;
|
|
14662
14691
|
}) => {
|
|
14663
14692
|
isMutating: boolean;
|
|
14664
14693
|
trigger: swr_mutation.TriggerWithOptionsArgs<CreateCallFeedbackEnvelope, TError, string | readonly [`/v1/calls/${string}/feedback`], CreateFeedbackRequest | undefined>;
|
|
@@ -14674,16 +14703,16 @@ declare const getListCallFeedbackUrl: (id: string, params?: ListCallFeedbackPara
|
|
|
14674
14703
|
*/
|
|
14675
14704
|
declare const listCallFeedback: (id: string, params?: ListCallFeedbackParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListCallFeedbackEnvelope>;
|
|
14676
14705
|
declare const getListCallFeedbackKey: (id: string, params?: ListCallFeedbackParams) => readonly [`/v1/calls/${string}/feedback`, ...ListCallFeedbackParams[]];
|
|
14677
|
-
type ListCallFeedbackQueryResult = NonNullable<Awaited$
|
|
14706
|
+
type ListCallFeedbackQueryResult = NonNullable<Awaited$p<ReturnType<typeof listCallFeedback>>>;
|
|
14678
14707
|
/**
|
|
14679
14708
|
* @summary List feedback for a call
|
|
14680
14709
|
*/
|
|
14681
14710
|
declare const useListCallFeedback: <TError = ErrorType<ErrorResponse>>(id: string, params?: ListCallFeedbackParams, options?: {
|
|
14682
|
-
swr?: SWRConfiguration<Awaited$
|
|
14711
|
+
swr?: SWRConfiguration<Awaited$p<ReturnType<typeof listCallFeedback>>, TError> & {
|
|
14683
14712
|
swrKey?: Key;
|
|
14684
14713
|
enabled?: boolean;
|
|
14685
14714
|
};
|
|
14686
|
-
request?: SecondParameter$
|
|
14715
|
+
request?: SecondParameter$p<typeof customFetch>;
|
|
14687
14716
|
}) => {
|
|
14688
14717
|
data: ListCallFeedbackEnvelope | undefined;
|
|
14689
14718
|
error: TError | undefined;
|
|
@@ -14698,19 +14727,19 @@ declare const getDeleteCallFeedbackUrl: (id: string, feedbackId: string) => stri
|
|
|
14698
14727
|
* @summary Delete feedback
|
|
14699
14728
|
*/
|
|
14700
14729
|
declare const deleteCallFeedback: (id: string, feedbackId: string, options?: Parameters<typeof customFetch>[1]) => Promise<DeleteCallFeedbackEnvelope>;
|
|
14701
|
-
declare const getDeleteCallFeedbackMutationFetcher: (id: string, feedbackId: string, options?: SecondParameter$
|
|
14730
|
+
declare const getDeleteCallFeedbackMutationFetcher: (id: string, feedbackId: string, options?: SecondParameter$p<typeof customFetch>) => (_: Key, __: {
|
|
14702
14731
|
arg: Arguments;
|
|
14703
14732
|
}) => Promise<DeleteCallFeedbackEnvelope>;
|
|
14704
14733
|
declare const getDeleteCallFeedbackMutationKey: (id: string, feedbackId: string) => readonly [`/v1/calls/${string}/feedback/${string}`];
|
|
14705
|
-
type DeleteCallFeedbackMutationResult = NonNullable<Awaited$
|
|
14734
|
+
type DeleteCallFeedbackMutationResult = NonNullable<Awaited$p<ReturnType<typeof deleteCallFeedback>>>;
|
|
14706
14735
|
/**
|
|
14707
14736
|
* @summary Delete feedback
|
|
14708
14737
|
*/
|
|
14709
14738
|
declare const useDeleteCallFeedback: <TError = ErrorType<ErrorResponse>>(id: string, feedbackId: string, options?: {
|
|
14710
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
14739
|
+
swr?: SWRMutationConfiguration<Awaited$p<ReturnType<typeof deleteCallFeedback>>, TError, Key, Arguments, Awaited$p<ReturnType<typeof deleteCallFeedback>>> & {
|
|
14711
14740
|
swrKey?: string;
|
|
14712
14741
|
};
|
|
14713
|
-
request?: SecondParameter$
|
|
14742
|
+
request?: SecondParameter$p<typeof customFetch>;
|
|
14714
14743
|
}) => {
|
|
14715
14744
|
isMutating: boolean;
|
|
14716
14745
|
trigger: swr_mutation.TriggerWithOptionsArgs<DeleteCallFeedbackEnvelope, TError, string | readonly [`/v1/calls/${string}/feedback/${string}`], Arguments>;
|
|
@@ -14720,9 +14749,9 @@ declare const useDeleteCallFeedback: <TError = ErrorType<ErrorResponse>>(id: str
|
|
|
14720
14749
|
swrKey: string | readonly [`/v1/calls/${string}/feedback/${string}`];
|
|
14721
14750
|
};
|
|
14722
14751
|
|
|
14723
|
-
type AwaitedInput$
|
|
14724
|
-
type Awaited$
|
|
14725
|
-
type SecondParameter$
|
|
14752
|
+
type AwaitedInput$o<T> = PromiseLike<T> | T;
|
|
14753
|
+
type Awaited$o<O> = O extends AwaitedInput$o<infer T> ? T : never;
|
|
14754
|
+
type SecondParameter$o<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
14726
14755
|
declare const getListCallsUrl: (params?: ListCallsParams) => string;
|
|
14727
14756
|
/**
|
|
14728
14757
|
* List all calls, with pagination, filtering, and sorting.
|
|
@@ -14748,16 +14777,16 @@ declare const getListCallsUrl: (params?: ListCallsParams) => string;
|
|
|
14748
14777
|
*/
|
|
14749
14778
|
declare const listCalls: (params?: ListCallsParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListCallsEnvelope>;
|
|
14750
14779
|
declare const getListCallsKey: (params?: ListCallsParams) => readonly ["/v1/calls", ...ListCallsParams[]];
|
|
14751
|
-
type ListCallsQueryResult = NonNullable<Awaited$
|
|
14780
|
+
type ListCallsQueryResult = NonNullable<Awaited$o<ReturnType<typeof listCalls>>>;
|
|
14752
14781
|
/**
|
|
14753
14782
|
* @summary List calls
|
|
14754
14783
|
*/
|
|
14755
14784
|
declare const useListCalls: <TError = ErrorType<ErrorResponse>>(params?: ListCallsParams, options?: {
|
|
14756
|
-
swr?: SWRConfiguration<Awaited$
|
|
14785
|
+
swr?: SWRConfiguration<Awaited$o<ReturnType<typeof listCalls>>, TError> & {
|
|
14757
14786
|
swrKey?: Key;
|
|
14758
14787
|
enabled?: boolean;
|
|
14759
14788
|
};
|
|
14760
|
-
request?: SecondParameter$
|
|
14789
|
+
request?: SecondParameter$o<typeof customFetch>;
|
|
14761
14790
|
}) => {
|
|
14762
14791
|
data: ListCallsEnvelope | undefined;
|
|
14763
14792
|
error: TError | undefined;
|
|
@@ -14784,19 +14813,19 @@ declare const getCreateCallUrl: () => string;
|
|
|
14784
14813
|
* @summary Create an outbound call
|
|
14785
14814
|
*/
|
|
14786
14815
|
declare const createCall: (createCallBody?: CreateCallBody, options?: Parameters<typeof customFetch>[1]) => Promise<CreateCallEnvelope>;
|
|
14787
|
-
declare const getCreateCallMutationFetcher: (options?: SecondParameter$
|
|
14816
|
+
declare const getCreateCallMutationFetcher: (options?: SecondParameter$o<typeof customFetch>) => (_: Key, { arg }: {
|
|
14788
14817
|
arg: CreateCallBody | undefined;
|
|
14789
14818
|
}) => Promise<CreateCallEnvelope>;
|
|
14790
14819
|
declare const getCreateCallMutationKey: () => readonly ["/v1/calls"];
|
|
14791
|
-
type CreateCallMutationResult = NonNullable<Awaited$
|
|
14820
|
+
type CreateCallMutationResult = NonNullable<Awaited$o<ReturnType<typeof createCall>>>;
|
|
14792
14821
|
/**
|
|
14793
14822
|
* @summary Create an outbound call
|
|
14794
14823
|
*/
|
|
14795
14824
|
declare const useCreateCall: <TError = ErrorType<ErrorResponse>>(options?: {
|
|
14796
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
14825
|
+
swr?: SWRMutationConfiguration<Awaited$o<ReturnType<typeof createCall>>, TError, Key, CreateCallBody | undefined, Awaited$o<ReturnType<typeof createCall>>> & {
|
|
14797
14826
|
swrKey?: string;
|
|
14798
14827
|
};
|
|
14799
|
-
request?: SecondParameter$
|
|
14828
|
+
request?: SecondParameter$o<typeof customFetch>;
|
|
14800
14829
|
}) => {
|
|
14801
14830
|
isMutating: boolean;
|
|
14802
14831
|
trigger: swr_mutation.TriggerWithOptionsArgs<CreateCallEnvelope, TError, string | readonly ["/v1/calls"], CreateCallBody | undefined>;
|
|
@@ -14814,16 +14843,16 @@ declare const getGetCallUrl: (id: string, params?: GetCallParams) => string;
|
|
|
14814
14843
|
*/
|
|
14815
14844
|
declare const getCall: (id: string, params?: GetCallParams, options?: Parameters<typeof customFetch>[1]) => Promise<GetCallEnvelope>;
|
|
14816
14845
|
declare const getGetCallKey: (id: string, params?: GetCallParams) => readonly [`/v1/calls/${string}`, ...GetCallParams[]];
|
|
14817
|
-
type GetCallQueryResult = NonNullable<Awaited$
|
|
14846
|
+
type GetCallQueryResult = NonNullable<Awaited$o<ReturnType<typeof getCall>>>;
|
|
14818
14847
|
/**
|
|
14819
14848
|
* @summary Get call
|
|
14820
14849
|
*/
|
|
14821
14850
|
declare const useGetCall: <TError = ErrorType<ErrorResponse>>(id: string, params?: GetCallParams, options?: {
|
|
14822
|
-
swr?: SWRConfiguration<Awaited$
|
|
14851
|
+
swr?: SWRConfiguration<Awaited$o<ReturnType<typeof getCall>>, TError> & {
|
|
14823
14852
|
swrKey?: Key;
|
|
14824
14853
|
enabled?: boolean;
|
|
14825
14854
|
};
|
|
14826
|
-
request?: SecondParameter$
|
|
14855
|
+
request?: SecondParameter$o<typeof customFetch>;
|
|
14827
14856
|
}) => {
|
|
14828
14857
|
data: GetCallEnvelope | undefined;
|
|
14829
14858
|
error: TError | undefined;
|
|
@@ -14838,19 +14867,19 @@ declare const getCancelCallUrl: (id: string) => string;
|
|
|
14838
14867
|
* @summary Cancel a scheduled call
|
|
14839
14868
|
*/
|
|
14840
14869
|
declare const cancelCall: (id: string, options?: Parameters<typeof customFetch>[1]) => Promise<CancelCallEnvelope>;
|
|
14841
|
-
declare const getCancelCallMutationFetcher: (id: string, options?: SecondParameter$
|
|
14870
|
+
declare const getCancelCallMutationFetcher: (id: string, options?: SecondParameter$o<typeof customFetch>) => (_: Key, __: {
|
|
14842
14871
|
arg: Arguments;
|
|
14843
14872
|
}) => Promise<CancelCallEnvelope>;
|
|
14844
14873
|
declare const getCancelCallMutationKey: (id: string) => readonly [`/v1/calls/${string}/cancel`];
|
|
14845
|
-
type CancelCallMutationResult = NonNullable<Awaited$
|
|
14874
|
+
type CancelCallMutationResult = NonNullable<Awaited$o<ReturnType<typeof cancelCall>>>;
|
|
14846
14875
|
/**
|
|
14847
14876
|
* @summary Cancel a scheduled call
|
|
14848
14877
|
*/
|
|
14849
14878
|
declare const useCancelCall: <TError = ErrorType<ErrorResponse>>(id: string, options?: {
|
|
14850
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
14879
|
+
swr?: SWRMutationConfiguration<Awaited$o<ReturnType<typeof cancelCall>>, TError, Key, Arguments, Awaited$o<ReturnType<typeof cancelCall>>> & {
|
|
14851
14880
|
swrKey?: string;
|
|
14852
14881
|
};
|
|
14853
|
-
request?: SecondParameter$
|
|
14882
|
+
request?: SecondParameter$o<typeof customFetch>;
|
|
14854
14883
|
}) => {
|
|
14855
14884
|
isMutating: boolean;
|
|
14856
14885
|
trigger: swr_mutation.TriggerWithOptionsArgs<CancelCallEnvelope, TError, string | readonly [`/v1/calls/${string}/cancel`], Arguments>;
|
|
@@ -14866,16 +14895,16 @@ declare const getGetCallEvaluationUrl: (id: string) => string;
|
|
|
14866
14895
|
*/
|
|
14867
14896
|
declare const getCallEvaluation: (id: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetCallEvaluationEnvelope>;
|
|
14868
14897
|
declare const getGetCallEvaluationKey: (id: string) => readonly [`/v1/calls/${string}/evaluation`];
|
|
14869
|
-
type GetCallEvaluationQueryResult = NonNullable<Awaited$
|
|
14898
|
+
type GetCallEvaluationQueryResult = NonNullable<Awaited$o<ReturnType<typeof getCallEvaluation>>>;
|
|
14870
14899
|
/**
|
|
14871
14900
|
* @summary Get call evaluation
|
|
14872
14901
|
*/
|
|
14873
14902
|
declare const useGetCallEvaluation: <TError = ErrorType<ErrorResponse>>(id: string, options?: {
|
|
14874
|
-
swr?: SWRConfiguration<Awaited$
|
|
14903
|
+
swr?: SWRConfiguration<Awaited$o<ReturnType<typeof getCallEvaluation>>, TError> & {
|
|
14875
14904
|
swrKey?: Key;
|
|
14876
14905
|
enabled?: boolean;
|
|
14877
14906
|
};
|
|
14878
|
-
request?: SecondParameter$
|
|
14907
|
+
request?: SecondParameter$o<typeof customFetch>;
|
|
14879
14908
|
}) => {
|
|
14880
14909
|
data: GetCallEvaluationEnvelope | undefined;
|
|
14881
14910
|
error: TError | undefined;
|
|
@@ -14893,16 +14922,16 @@ declare const getGetCallAnalyticsUrl: (params: GetCallAnalyticsParams) => string
|
|
|
14893
14922
|
*/
|
|
14894
14923
|
declare const getCallAnalytics: (params: GetCallAnalyticsParams, options?: Parameters<typeof customFetch>[1]) => Promise<GetCallAnalyticsEnvelope>;
|
|
14895
14924
|
declare const getGetCallAnalyticsKey: (params: GetCallAnalyticsParams) => readonly ["/v1/calls/analytics", ...GetCallAnalyticsParams[]];
|
|
14896
|
-
type GetCallAnalyticsQueryResult = NonNullable<Awaited$
|
|
14925
|
+
type GetCallAnalyticsQueryResult = NonNullable<Awaited$o<ReturnType<typeof getCallAnalytics>>>;
|
|
14897
14926
|
/**
|
|
14898
14927
|
* @summary Get call analytics
|
|
14899
14928
|
*/
|
|
14900
14929
|
declare const useGetCallAnalytics: <TError = ErrorType<ErrorResponse>>(params: GetCallAnalyticsParams, options?: {
|
|
14901
|
-
swr?: SWRConfiguration<Awaited$
|
|
14930
|
+
swr?: SWRConfiguration<Awaited$o<ReturnType<typeof getCallAnalytics>>, TError> & {
|
|
14902
14931
|
swrKey?: Key;
|
|
14903
14932
|
enabled?: boolean;
|
|
14904
14933
|
};
|
|
14905
|
-
request?: SecondParameter$
|
|
14934
|
+
request?: SecondParameter$o<typeof customFetch>;
|
|
14906
14935
|
}) => {
|
|
14907
14936
|
data: GetCallAnalyticsEnvelope | undefined;
|
|
14908
14937
|
error: TError | undefined;
|
|
@@ -14912,9 +14941,9 @@ declare const useGetCallAnalytics: <TError = ErrorType<ErrorResponse>>(params: G
|
|
|
14912
14941
|
swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => Arguments);
|
|
14913
14942
|
};
|
|
14914
14943
|
|
|
14915
|
-
type AwaitedInput$
|
|
14916
|
-
type Awaited$
|
|
14917
|
-
type SecondParameter$
|
|
14944
|
+
type AwaitedInput$n<T> = PromiseLike<T> | T;
|
|
14945
|
+
type Awaited$n<O> = O extends AwaitedInput$n<infer T> ? T : never;
|
|
14946
|
+
type SecondParameter$n<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
14918
14947
|
declare const getListCasesUrl: (params?: ListCasesParams) => string;
|
|
14919
14948
|
/**
|
|
14920
14949
|
* List all cases for the current tenant, paginated, filterable, and sortable.
|
|
@@ -14922,16 +14951,16 @@ declare const getListCasesUrl: (params?: ListCasesParams) => string;
|
|
|
14922
14951
|
*/
|
|
14923
14952
|
declare const listCases: (params?: ListCasesParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListCasesEnvelope>;
|
|
14924
14953
|
declare const getListCasesKey: (params?: ListCasesParams) => readonly ["/v1/cases", ...ListCasesParams[]];
|
|
14925
|
-
type ListCasesQueryResult = NonNullable<Awaited$
|
|
14954
|
+
type ListCasesQueryResult = NonNullable<Awaited$n<ReturnType<typeof listCases>>>;
|
|
14926
14955
|
/**
|
|
14927
14956
|
* @summary List cases
|
|
14928
14957
|
*/
|
|
14929
14958
|
declare const useListCases: <TError = ErrorType<ErrorResponse>>(params?: ListCasesParams, options?: {
|
|
14930
|
-
swr?: SWRConfiguration<Awaited$
|
|
14959
|
+
swr?: SWRConfiguration<Awaited$n<ReturnType<typeof listCases>>, TError> & {
|
|
14931
14960
|
swrKey?: Key;
|
|
14932
14961
|
enabled?: boolean;
|
|
14933
14962
|
};
|
|
14934
|
-
request?: SecondParameter$
|
|
14963
|
+
request?: SecondParameter$n<typeof customFetch>;
|
|
14935
14964
|
}) => {
|
|
14936
14965
|
data: ListCasesEnvelope | undefined;
|
|
14937
14966
|
error: TError | undefined;
|
|
@@ -14948,19 +14977,19 @@ declare const getCreateCaseUrl: () => string;
|
|
|
14948
14977
|
* @summary Create case
|
|
14949
14978
|
*/
|
|
14950
14979
|
declare const createCase: (createCaseBody?: CreateCaseBody, options?: Parameters<typeof customFetch>[1]) => Promise<CreateCaseEnvelope>;
|
|
14951
|
-
declare const getCreateCaseMutationFetcher: (options?: SecondParameter$
|
|
14980
|
+
declare const getCreateCaseMutationFetcher: (options?: SecondParameter$n<typeof customFetch>) => (_: Key, { arg }: {
|
|
14952
14981
|
arg: CreateCaseBody | undefined;
|
|
14953
14982
|
}) => Promise<CreateCaseEnvelope>;
|
|
14954
14983
|
declare const getCreateCaseMutationKey: () => readonly ["/v1/cases"];
|
|
14955
|
-
type CreateCaseMutationResult = NonNullable<Awaited$
|
|
14984
|
+
type CreateCaseMutationResult = NonNullable<Awaited$n<ReturnType<typeof createCase>>>;
|
|
14956
14985
|
/**
|
|
14957
14986
|
* @summary Create case
|
|
14958
14987
|
*/
|
|
14959
14988
|
declare const useCreateCase: <TError = ErrorType<ErrorResponse>>(options?: {
|
|
14960
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
14989
|
+
swr?: SWRMutationConfiguration<Awaited$n<ReturnType<typeof createCase>>, TError, Key, CreateCaseBody | undefined, Awaited$n<ReturnType<typeof createCase>>> & {
|
|
14961
14990
|
swrKey?: string;
|
|
14962
14991
|
};
|
|
14963
|
-
request?: SecondParameter$
|
|
14992
|
+
request?: SecondParameter$n<typeof customFetch>;
|
|
14964
14993
|
}) => {
|
|
14965
14994
|
isMutating: boolean;
|
|
14966
14995
|
trigger: swr_mutation.TriggerWithOptionsArgs<CreateCaseEnvelope, TError, string | readonly ["/v1/cases"], CreateCaseBody | undefined>;
|
|
@@ -14976,16 +15005,16 @@ declare const getSearchCasesUrl: (params: SearchCasesParams) => string;
|
|
|
14976
15005
|
*/
|
|
14977
15006
|
declare const searchCases: (params: SearchCasesParams, options?: Parameters<typeof customFetch>[1]) => Promise<SearchCasesEnvelope>;
|
|
14978
15007
|
declare const getSearchCasesKey: (params: SearchCasesParams) => readonly ["/v1/cases/search", ...SearchCasesParams[]];
|
|
14979
|
-
type SearchCasesQueryResult = NonNullable<Awaited$
|
|
15008
|
+
type SearchCasesQueryResult = NonNullable<Awaited$n<ReturnType<typeof searchCases>>>;
|
|
14980
15009
|
/**
|
|
14981
15010
|
* @summary Search cases
|
|
14982
15011
|
*/
|
|
14983
15012
|
declare const useSearchCases: <TError = ErrorType<ErrorResponse>>(params: SearchCasesParams, options?: {
|
|
14984
|
-
swr?: SWRConfiguration<Awaited$
|
|
15013
|
+
swr?: SWRConfiguration<Awaited$n<ReturnType<typeof searchCases>>, TError> & {
|
|
14985
15014
|
swrKey?: Key;
|
|
14986
15015
|
enabled?: boolean;
|
|
14987
15016
|
};
|
|
14988
|
-
request?: SecondParameter$
|
|
15017
|
+
request?: SecondParameter$n<typeof customFetch>;
|
|
14989
15018
|
}) => {
|
|
14990
15019
|
data: SearchCasesEnvelope | undefined;
|
|
14991
15020
|
error: TError | undefined;
|
|
@@ -15004,16 +15033,16 @@ declare const getGetCaseUrl: (id: string, params?: GetCaseParams) => string;
|
|
|
15004
15033
|
*/
|
|
15005
15034
|
declare const getCase: (id: string, params?: GetCaseParams, options?: Parameters<typeof customFetch>[1]) => Promise<GetCaseEnvelope>;
|
|
15006
15035
|
declare const getGetCaseKey: (id: string, params?: GetCaseParams) => readonly [`/v1/cases/${string}`, ...GetCaseParams[]];
|
|
15007
|
-
type GetCaseQueryResult = NonNullable<Awaited$
|
|
15036
|
+
type GetCaseQueryResult = NonNullable<Awaited$n<ReturnType<typeof getCase>>>;
|
|
15008
15037
|
/**
|
|
15009
15038
|
* @summary Get case
|
|
15010
15039
|
*/
|
|
15011
15040
|
declare const useGetCase: <TError = ErrorType<ErrorResponse>>(id: string, params?: GetCaseParams, options?: {
|
|
15012
|
-
swr?: SWRConfiguration<Awaited$
|
|
15041
|
+
swr?: SWRConfiguration<Awaited$n<ReturnType<typeof getCase>>, TError> & {
|
|
15013
15042
|
swrKey?: Key;
|
|
15014
15043
|
enabled?: boolean;
|
|
15015
15044
|
};
|
|
15016
|
-
request?: SecondParameter$
|
|
15045
|
+
request?: SecondParameter$n<typeof customFetch>;
|
|
15017
15046
|
}) => {
|
|
15018
15047
|
data: GetCaseEnvelope | undefined;
|
|
15019
15048
|
error: TError | undefined;
|
|
@@ -15032,19 +15061,19 @@ declare const getDeleteCaseUrl: (id: string, params?: DeleteCaseParams) => strin
|
|
|
15032
15061
|
* @summary Delete case
|
|
15033
15062
|
*/
|
|
15034
15063
|
declare const deleteCase: (id: string, params?: DeleteCaseParams, options?: Parameters<typeof customFetch>[1]) => Promise<DeleteCaseEnvelope>;
|
|
15035
|
-
declare const getDeleteCaseMutationFetcher: (id: string, params?: DeleteCaseParams, options?: SecondParameter$
|
|
15064
|
+
declare const getDeleteCaseMutationFetcher: (id: string, params?: DeleteCaseParams, options?: SecondParameter$n<typeof customFetch>) => (_: Key, __: {
|
|
15036
15065
|
arg: Arguments;
|
|
15037
15066
|
}) => Promise<DeleteCaseEnvelope>;
|
|
15038
15067
|
declare const getDeleteCaseMutationKey: (id: string, params?: DeleteCaseParams) => readonly [`/v1/cases/${string}`, ...DeleteCaseParams[]];
|
|
15039
|
-
type DeleteCaseMutationResult = NonNullable<Awaited$
|
|
15068
|
+
type DeleteCaseMutationResult = NonNullable<Awaited$n<ReturnType<typeof deleteCase>>>;
|
|
15040
15069
|
/**
|
|
15041
15070
|
* @summary Delete case
|
|
15042
15071
|
*/
|
|
15043
15072
|
declare const useDeleteCase: <TError = ErrorType<ErrorResponse>>(id: string, params?: DeleteCaseParams, options?: {
|
|
15044
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
15073
|
+
swr?: SWRMutationConfiguration<Awaited$n<ReturnType<typeof deleteCase>>, TError, Key, Arguments, Awaited$n<ReturnType<typeof deleteCase>>> & {
|
|
15045
15074
|
swrKey?: string;
|
|
15046
15075
|
};
|
|
15047
|
-
request?: SecondParameter$
|
|
15076
|
+
request?: SecondParameter$n<typeof customFetch>;
|
|
15048
15077
|
}) => {
|
|
15049
15078
|
isMutating: boolean;
|
|
15050
15079
|
trigger: swr_mutation.TriggerWithOptionsArgs<DeleteCaseEnvelope, TError, string | readonly [`/v1/cases/${string}`, ...DeleteCaseParams[]], Arguments>;
|
|
@@ -15061,19 +15090,19 @@ declare const getAddCaseLinksUrl: (id: string, params?: AddCaseLinksParams) => s
|
|
|
15061
15090
|
* @summary Add case links
|
|
15062
15091
|
*/
|
|
15063
15092
|
declare const addCaseLinks: (id: string, addCaseLinksBody?: AddCaseLinksBody, params?: AddCaseLinksParams, options?: Parameters<typeof customFetch>[1]) => Promise<AddCaseLinksEnvelope>;
|
|
15064
|
-
declare const getAddCaseLinksMutationFetcher: (id: string, params?: AddCaseLinksParams, options?: SecondParameter$
|
|
15093
|
+
declare const getAddCaseLinksMutationFetcher: (id: string, params?: AddCaseLinksParams, options?: SecondParameter$n<typeof customFetch>) => (_: Key, { arg }: {
|
|
15065
15094
|
arg: AddCaseLinksBody | undefined;
|
|
15066
15095
|
}) => Promise<AddCaseLinksEnvelope>;
|
|
15067
15096
|
declare const getAddCaseLinksMutationKey: (id: string, params?: AddCaseLinksParams) => readonly [`/v1/cases/${string}/links`, ...AddCaseLinksParams[]];
|
|
15068
|
-
type AddCaseLinksMutationResult = NonNullable<Awaited$
|
|
15097
|
+
type AddCaseLinksMutationResult = NonNullable<Awaited$n<ReturnType<typeof addCaseLinks>>>;
|
|
15069
15098
|
/**
|
|
15070
15099
|
* @summary Add case links
|
|
15071
15100
|
*/
|
|
15072
15101
|
declare const useAddCaseLinks: <TError = ErrorType<ErrorResponse>>(id: string, params?: AddCaseLinksParams, options?: {
|
|
15073
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
15102
|
+
swr?: SWRMutationConfiguration<Awaited$n<ReturnType<typeof addCaseLinks>>, TError, Key, AddCaseLinksBody | undefined, Awaited$n<ReturnType<typeof addCaseLinks>>> & {
|
|
15074
15103
|
swrKey?: string;
|
|
15075
15104
|
};
|
|
15076
|
-
request?: SecondParameter$
|
|
15105
|
+
request?: SecondParameter$n<typeof customFetch>;
|
|
15077
15106
|
}) => {
|
|
15078
15107
|
isMutating: boolean;
|
|
15079
15108
|
trigger: swr_mutation.TriggerWithOptionsArgs<AddCaseLinksEnvelope, TError, string | readonly [`/v1/cases/${string}/links`, ...AddCaseLinksParams[]], AddCaseLinksBody | undefined>;
|
|
@@ -15089,16 +15118,16 @@ declare const getListCaseLinksUrl: (id: string, params?: ListCaseLinksParams) =>
|
|
|
15089
15118
|
*/
|
|
15090
15119
|
declare const listCaseLinks: (id: string, params?: ListCaseLinksParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListCaseLinksEnvelope>;
|
|
15091
15120
|
declare const getListCaseLinksKey: (id: string, params?: ListCaseLinksParams) => readonly [`/v1/cases/${string}/links`, ...ListCaseLinksParams[]];
|
|
15092
|
-
type ListCaseLinksQueryResult = NonNullable<Awaited$
|
|
15121
|
+
type ListCaseLinksQueryResult = NonNullable<Awaited$n<ReturnType<typeof listCaseLinks>>>;
|
|
15093
15122
|
/**
|
|
15094
15123
|
* @summary List case links
|
|
15095
15124
|
*/
|
|
15096
15125
|
declare const useListCaseLinks: <TError = ErrorType<ErrorResponse>>(id: string, params?: ListCaseLinksParams, options?: {
|
|
15097
|
-
swr?: SWRConfiguration<Awaited$
|
|
15126
|
+
swr?: SWRConfiguration<Awaited$n<ReturnType<typeof listCaseLinks>>, TError> & {
|
|
15098
15127
|
swrKey?: Key;
|
|
15099
15128
|
enabled?: boolean;
|
|
15100
15129
|
};
|
|
15101
|
-
request?: SecondParameter$
|
|
15130
|
+
request?: SecondParameter$n<typeof customFetch>;
|
|
15102
15131
|
}) => {
|
|
15103
15132
|
data: ListCaseLinksEnvelope | undefined;
|
|
15104
15133
|
error: TError | undefined;
|
|
@@ -15113,19 +15142,19 @@ declare const getRemoveCaseLinkUrl: (id: string, entityType: "artifact" | "call"
|
|
|
15113
15142
|
* @summary Remove case link
|
|
15114
15143
|
*/
|
|
15115
15144
|
declare const removeCaseLink: (id: string, entityType: "artifact" | "call" | "chat" | "email" | "extract" | "information_request" | "schedule" | "worker_run", entityId: string, params?: RemoveCaseLinkParams, options?: Parameters<typeof customFetch>[1]) => Promise<RemoveCaseLinkEnvelope>;
|
|
15116
|
-
declare const getRemoveCaseLinkMutationFetcher: (id: string, entityType: "artifact" | "call" | "chat" | "email" | "extract" | "information_request" | "schedule" | "worker_run", entityId: string, params?: RemoveCaseLinkParams, options?: SecondParameter$
|
|
15145
|
+
declare const getRemoveCaseLinkMutationFetcher: (id: string, entityType: "artifact" | "call" | "chat" | "email" | "extract" | "information_request" | "schedule" | "worker_run", entityId: string, params?: RemoveCaseLinkParams, options?: SecondParameter$n<typeof customFetch>) => (_: Key, __: {
|
|
15117
15146
|
arg: Arguments;
|
|
15118
15147
|
}) => Promise<RemoveCaseLinkEnvelope>;
|
|
15119
15148
|
declare const getRemoveCaseLinkMutationKey: (id: string, entityType: "artifact" | "call" | "chat" | "email" | "extract" | "information_request" | "schedule" | "worker_run", entityId: string, params?: RemoveCaseLinkParams) => readonly [`/v1/cases/${string}/links/artifact/${string}` | `/v1/cases/${string}/links/call/${string}` | `/v1/cases/${string}/links/chat/${string}` | `/v1/cases/${string}/links/email/${string}` | `/v1/cases/${string}/links/extract/${string}` | `/v1/cases/${string}/links/information_request/${string}` | `/v1/cases/${string}/links/schedule/${string}` | `/v1/cases/${string}/links/worker_run/${string}`, ...RemoveCaseLinkParams[]];
|
|
15120
|
-
type RemoveCaseLinkMutationResult = NonNullable<Awaited$
|
|
15149
|
+
type RemoveCaseLinkMutationResult = NonNullable<Awaited$n<ReturnType<typeof removeCaseLink>>>;
|
|
15121
15150
|
/**
|
|
15122
15151
|
* @summary Remove case link
|
|
15123
15152
|
*/
|
|
15124
15153
|
declare const useRemoveCaseLink: <TError = ErrorType<ErrorResponse>>(id: string, entityType: "artifact" | "call" | "chat" | "email" | "extract" | "information_request" | "schedule" | "worker_run", entityId: string, params?: RemoveCaseLinkParams, options?: {
|
|
15125
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
15154
|
+
swr?: SWRMutationConfiguration<Awaited$n<ReturnType<typeof removeCaseLink>>, TError, Key, Arguments, Awaited$n<ReturnType<typeof removeCaseLink>>> & {
|
|
15126
15155
|
swrKey?: string;
|
|
15127
15156
|
};
|
|
15128
|
-
request?: SecondParameter$
|
|
15157
|
+
request?: SecondParameter$n<typeof customFetch>;
|
|
15129
15158
|
}) => {
|
|
15130
15159
|
isMutating: boolean;
|
|
15131
15160
|
trigger: swr_mutation.TriggerWithOptionsArgs<RemoveCaseLinkEnvelope, TError, string | readonly [`/v1/cases/${string}/links/artifact/${string}` | `/v1/cases/${string}/links/call/${string}` | `/v1/cases/${string}/links/chat/${string}` | `/v1/cases/${string}/links/email/${string}` | `/v1/cases/${string}/links/extract/${string}` | `/v1/cases/${string}/links/information_request/${string}` | `/v1/cases/${string}/links/schedule/${string}` | `/v1/cases/${string}/links/worker_run/${string}`, ...RemoveCaseLinkParams[]], Arguments>;
|
|
@@ -15135,28 +15164,28 @@ declare const useRemoveCaseLink: <TError = ErrorType<ErrorResponse>>(id: string,
|
|
|
15135
15164
|
swrKey: string | readonly [`/v1/cases/${string}/links/artifact/${string}` | `/v1/cases/${string}/links/call/${string}` | `/v1/cases/${string}/links/chat/${string}` | `/v1/cases/${string}/links/email/${string}` | `/v1/cases/${string}/links/extract/${string}` | `/v1/cases/${string}/links/information_request/${string}` | `/v1/cases/${string}/links/schedule/${string}` | `/v1/cases/${string}/links/worker_run/${string}`, ...RemoveCaseLinkParams[]];
|
|
15136
15165
|
};
|
|
15137
15166
|
|
|
15138
|
-
type AwaitedInput$
|
|
15139
|
-
type Awaited$
|
|
15140
|
-
type SecondParameter$
|
|
15167
|
+
type AwaitedInput$m<T> = PromiseLike<T> | T;
|
|
15168
|
+
type Awaited$m<O> = O extends AwaitedInput$m<infer T> ? T : never;
|
|
15169
|
+
type SecondParameter$m<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
15141
15170
|
declare const getCreateChatAgentUrl: () => string;
|
|
15142
15171
|
/**
|
|
15143
15172
|
* Create a new chat agent with a name and prompt.
|
|
15144
15173
|
* @summary Create chat agent
|
|
15145
15174
|
*/
|
|
15146
15175
|
declare const createChatAgent: (createChatAgentBody?: CreateChatAgentBody, options?: Parameters<typeof customFetch>[1]) => Promise<CreateChatAgentEnvelope>;
|
|
15147
|
-
declare const getCreateChatAgentMutationFetcher: (options?: SecondParameter$
|
|
15176
|
+
declare const getCreateChatAgentMutationFetcher: (options?: SecondParameter$m<typeof customFetch>) => (_: Key, { arg }: {
|
|
15148
15177
|
arg: CreateChatAgentBody | undefined;
|
|
15149
15178
|
}) => Promise<CreateChatAgentEnvelope>;
|
|
15150
15179
|
declare const getCreateChatAgentMutationKey: () => readonly ["/v1/chat-agents"];
|
|
15151
|
-
type CreateChatAgentMutationResult = NonNullable<Awaited$
|
|
15180
|
+
type CreateChatAgentMutationResult = NonNullable<Awaited$m<ReturnType<typeof createChatAgent>>>;
|
|
15152
15181
|
/**
|
|
15153
15182
|
* @summary Create chat agent
|
|
15154
15183
|
*/
|
|
15155
15184
|
declare const useCreateChatAgent: <TError = ErrorType<ErrorResponse>>(options?: {
|
|
15156
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
15185
|
+
swr?: SWRMutationConfiguration<Awaited$m<ReturnType<typeof createChatAgent>>, TError, Key, CreateChatAgentBody | undefined, Awaited$m<ReturnType<typeof createChatAgent>>> & {
|
|
15157
15186
|
swrKey?: string;
|
|
15158
15187
|
};
|
|
15159
|
-
request?: SecondParameter$
|
|
15188
|
+
request?: SecondParameter$m<typeof customFetch>;
|
|
15160
15189
|
}) => {
|
|
15161
15190
|
isMutating: boolean;
|
|
15162
15191
|
trigger: swr_mutation.TriggerWithOptionsArgs<CreateChatAgentEnvelope, TError, string | readonly ["/v1/chat-agents"], CreateChatAgentBody | undefined>;
|
|
@@ -15172,16 +15201,16 @@ declare const getListChatAgentsUrl: (params?: ListChatAgentsParams) => string;
|
|
|
15172
15201
|
*/
|
|
15173
15202
|
declare const listChatAgents: (params?: ListChatAgentsParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListChatAgentsEnvelope>;
|
|
15174
15203
|
declare const getListChatAgentsKey: (params?: ListChatAgentsParams) => readonly ["/v1/chat-agents", ...ListChatAgentsParams[]];
|
|
15175
|
-
type ListChatAgentsQueryResult = NonNullable<Awaited$
|
|
15204
|
+
type ListChatAgentsQueryResult = NonNullable<Awaited$m<ReturnType<typeof listChatAgents>>>;
|
|
15176
15205
|
/**
|
|
15177
15206
|
* @summary List chat agents
|
|
15178
15207
|
*/
|
|
15179
15208
|
declare const useListChatAgents: <TError = ErrorType<ErrorResponse>>(params?: ListChatAgentsParams, options?: {
|
|
15180
|
-
swr?: SWRConfiguration<Awaited$
|
|
15209
|
+
swr?: SWRConfiguration<Awaited$m<ReturnType<typeof listChatAgents>>, TError> & {
|
|
15181
15210
|
swrKey?: Key;
|
|
15182
15211
|
enabled?: boolean;
|
|
15183
15212
|
};
|
|
15184
|
-
request?: SecondParameter$
|
|
15213
|
+
request?: SecondParameter$m<typeof customFetch>;
|
|
15185
15214
|
}) => {
|
|
15186
15215
|
data: ListChatAgentsEnvelope | undefined;
|
|
15187
15216
|
error: TError | undefined;
|
|
@@ -15197,16 +15226,16 @@ declare const getGetChatAgentUrl: (chatAgentId: string) => string;
|
|
|
15197
15226
|
*/
|
|
15198
15227
|
declare const getChatAgent: (chatAgentId: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetChatAgentEnvelope>;
|
|
15199
15228
|
declare const getGetChatAgentKey: (chatAgentId: string) => readonly [`/v1/chat-agents/${string}`];
|
|
15200
|
-
type GetChatAgentQueryResult = NonNullable<Awaited$
|
|
15229
|
+
type GetChatAgentQueryResult = NonNullable<Awaited$m<ReturnType<typeof getChatAgent>>>;
|
|
15201
15230
|
/**
|
|
15202
15231
|
* @summary Get chat agent
|
|
15203
15232
|
*/
|
|
15204
15233
|
declare const useGetChatAgent: <TError = ErrorType<ErrorResponse>>(chatAgentId: string, options?: {
|
|
15205
|
-
swr?: SWRConfiguration<Awaited$
|
|
15234
|
+
swr?: SWRConfiguration<Awaited$m<ReturnType<typeof getChatAgent>>, TError> & {
|
|
15206
15235
|
swrKey?: Key;
|
|
15207
15236
|
enabled?: boolean;
|
|
15208
15237
|
};
|
|
15209
|
-
request?: SecondParameter$
|
|
15238
|
+
request?: SecondParameter$m<typeof customFetch>;
|
|
15210
15239
|
}) => {
|
|
15211
15240
|
data: GetChatAgentEnvelope | undefined;
|
|
15212
15241
|
error: TError | undefined;
|
|
@@ -15221,19 +15250,19 @@ declare const getUpdateChatAgentUrl: (chatAgentId: string) => string;
|
|
|
15221
15250
|
* @summary Update chat agent
|
|
15222
15251
|
*/
|
|
15223
15252
|
declare const updateChatAgent: (chatAgentId: string, updateChatAgentRequest?: UpdateChatAgentRequest, options?: Parameters<typeof customFetch>[1]) => Promise<UpdateChatAgentEnvelope>;
|
|
15224
|
-
declare const getUpdateChatAgentMutationFetcher: (chatAgentId: string, options?: SecondParameter$
|
|
15253
|
+
declare const getUpdateChatAgentMutationFetcher: (chatAgentId: string, options?: SecondParameter$m<typeof customFetch>) => (_: Key, { arg }: {
|
|
15225
15254
|
arg: UpdateChatAgentRequest | undefined;
|
|
15226
15255
|
}) => Promise<UpdateChatAgentEnvelope>;
|
|
15227
15256
|
declare const getUpdateChatAgentMutationKey: (chatAgentId: string) => readonly [`/v1/chat-agents/${string}`];
|
|
15228
|
-
type UpdateChatAgentMutationResult = NonNullable<Awaited$
|
|
15257
|
+
type UpdateChatAgentMutationResult = NonNullable<Awaited$m<ReturnType<typeof updateChatAgent>>>;
|
|
15229
15258
|
/**
|
|
15230
15259
|
* @summary Update chat agent
|
|
15231
15260
|
*/
|
|
15232
15261
|
declare const useUpdateChatAgent: <TError = ErrorType<ErrorResponse>>(chatAgentId: string, options?: {
|
|
15233
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
15262
|
+
swr?: SWRMutationConfiguration<Awaited$m<ReturnType<typeof updateChatAgent>>, TError, Key, UpdateChatAgentRequest | undefined, Awaited$m<ReturnType<typeof updateChatAgent>>> & {
|
|
15234
15263
|
swrKey?: string;
|
|
15235
15264
|
};
|
|
15236
|
-
request?: SecondParameter$
|
|
15265
|
+
request?: SecondParameter$m<typeof customFetch>;
|
|
15237
15266
|
}) => {
|
|
15238
15267
|
isMutating: boolean;
|
|
15239
15268
|
trigger: swr_mutation.TriggerWithOptionsArgs<UpdateChatAgentEnvelope, TError, string | readonly [`/v1/chat-agents/${string}`], UpdateChatAgentRequest | undefined>;
|
|
@@ -15248,19 +15277,19 @@ declare const getDeleteChatAgentUrl: (chatAgentId: string) => string;
|
|
|
15248
15277
|
* @summary Delete chat agent
|
|
15249
15278
|
*/
|
|
15250
15279
|
declare const deleteChatAgent: (chatAgentId: string, options?: Parameters<typeof customFetch>[1]) => Promise<DeleteChatAgentEnvelope>;
|
|
15251
|
-
declare const getDeleteChatAgentMutationFetcher: (chatAgentId: string, options?: SecondParameter$
|
|
15280
|
+
declare const getDeleteChatAgentMutationFetcher: (chatAgentId: string, options?: SecondParameter$m<typeof customFetch>) => (_: Key, __: {
|
|
15252
15281
|
arg: Arguments;
|
|
15253
15282
|
}) => Promise<DeleteChatAgentEnvelope>;
|
|
15254
15283
|
declare const getDeleteChatAgentMutationKey: (chatAgentId: string) => readonly [`/v1/chat-agents/${string}`];
|
|
15255
|
-
type DeleteChatAgentMutationResult = NonNullable<Awaited$
|
|
15284
|
+
type DeleteChatAgentMutationResult = NonNullable<Awaited$m<ReturnType<typeof deleteChatAgent>>>;
|
|
15256
15285
|
/**
|
|
15257
15286
|
* @summary Delete chat agent
|
|
15258
15287
|
*/
|
|
15259
15288
|
declare const useDeleteChatAgent: <TError = ErrorType<ErrorResponse>>(chatAgentId: string, options?: {
|
|
15260
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
15289
|
+
swr?: SWRMutationConfiguration<Awaited$m<ReturnType<typeof deleteChatAgent>>, TError, Key, Arguments, Awaited$m<ReturnType<typeof deleteChatAgent>>> & {
|
|
15261
15290
|
swrKey?: string;
|
|
15262
15291
|
};
|
|
15263
|
-
request?: SecondParameter$
|
|
15292
|
+
request?: SecondParameter$m<typeof customFetch>;
|
|
15264
15293
|
}) => {
|
|
15265
15294
|
isMutating: boolean;
|
|
15266
15295
|
trigger: swr_mutation.TriggerWithOptionsArgs<DeleteChatAgentEnvelope, TError, string | readonly [`/v1/chat-agents/${string}`], Arguments>;
|
|
@@ -15276,16 +15305,16 @@ declare const getGetChatAgentPromptUrl: (chatAgentId: string) => string;
|
|
|
15276
15305
|
*/
|
|
15277
15306
|
declare const getChatAgentPrompt: (chatAgentId: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetChatAgentPromptEnvelope>;
|
|
15278
15307
|
declare const getGetChatAgentPromptKey: (chatAgentId: string) => readonly [`/v1/chat-agents/${string}/prompt`];
|
|
15279
|
-
type GetChatAgentPromptQueryResult = NonNullable<Awaited$
|
|
15308
|
+
type GetChatAgentPromptQueryResult = NonNullable<Awaited$m<ReturnType<typeof getChatAgentPrompt>>>;
|
|
15280
15309
|
/**
|
|
15281
15310
|
* @summary Get chat agent prompt
|
|
15282
15311
|
*/
|
|
15283
15312
|
declare const useGetChatAgentPrompt: <TError = ErrorType<ErrorResponse>>(chatAgentId: string, options?: {
|
|
15284
|
-
swr?: SWRConfiguration<Awaited$
|
|
15313
|
+
swr?: SWRConfiguration<Awaited$m<ReturnType<typeof getChatAgentPrompt>>, TError> & {
|
|
15285
15314
|
swrKey?: Key;
|
|
15286
15315
|
enabled?: boolean;
|
|
15287
15316
|
};
|
|
15288
|
-
request?: SecondParameter$
|
|
15317
|
+
request?: SecondParameter$m<typeof customFetch>;
|
|
15289
15318
|
}) => {
|
|
15290
15319
|
data: GetChatAgentPromptEnvelope | undefined;
|
|
15291
15320
|
error: TError | undefined;
|
|
@@ -15300,19 +15329,19 @@ declare const getUpdateChatAgentPromptUrl: (chatAgentId: string) => string;
|
|
|
15300
15329
|
* @summary Update chat agent prompt
|
|
15301
15330
|
*/
|
|
15302
15331
|
declare const updateChatAgentPrompt: (chatAgentId: string, updateChatAgentPromptBody?: UpdateChatAgentPromptBody, options?: Parameters<typeof customFetch>[1]) => Promise<UpdateChatAgentPromptEnvelope>;
|
|
15303
|
-
declare const getUpdateChatAgentPromptMutationFetcher: (chatAgentId: string, options?: SecondParameter$
|
|
15332
|
+
declare const getUpdateChatAgentPromptMutationFetcher: (chatAgentId: string, options?: SecondParameter$m<typeof customFetch>) => (_: Key, { arg }: {
|
|
15304
15333
|
arg: UpdateChatAgentPromptBody | undefined;
|
|
15305
15334
|
}) => Promise<UpdateChatAgentPromptEnvelope>;
|
|
15306
15335
|
declare const getUpdateChatAgentPromptMutationKey: (chatAgentId: string) => readonly [`/v1/chat-agents/${string}/prompt`];
|
|
15307
|
-
type UpdateChatAgentPromptMutationResult = NonNullable<Awaited$
|
|
15336
|
+
type UpdateChatAgentPromptMutationResult = NonNullable<Awaited$m<ReturnType<typeof updateChatAgentPrompt>>>;
|
|
15308
15337
|
/**
|
|
15309
15338
|
* @summary Update chat agent prompt
|
|
15310
15339
|
*/
|
|
15311
15340
|
declare const useUpdateChatAgentPrompt: <TError = ErrorType<ErrorResponse>>(chatAgentId: string, options?: {
|
|
15312
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
15341
|
+
swr?: SWRMutationConfiguration<Awaited$m<ReturnType<typeof updateChatAgentPrompt>>, TError, Key, UpdateChatAgentPromptBody | undefined, Awaited$m<ReturnType<typeof updateChatAgentPrompt>>> & {
|
|
15313
15342
|
swrKey?: string;
|
|
15314
15343
|
};
|
|
15315
|
-
request?: SecondParameter$
|
|
15344
|
+
request?: SecondParameter$m<typeof customFetch>;
|
|
15316
15345
|
}) => {
|
|
15317
15346
|
isMutating: boolean;
|
|
15318
15347
|
trigger: swr_mutation.TriggerWithOptionsArgs<UpdateChatAgentPromptEnvelope, TError, string | readonly [`/v1/chat-agents/${string}/prompt`], UpdateChatAgentPromptBody | undefined>;
|
|
@@ -15322,28 +15351,28 @@ declare const useUpdateChatAgentPrompt: <TError = ErrorType<ErrorResponse>>(chat
|
|
|
15322
15351
|
swrKey: string | readonly [`/v1/chat-agents/${string}/prompt`];
|
|
15323
15352
|
};
|
|
15324
15353
|
|
|
15325
|
-
type AwaitedInput$
|
|
15326
|
-
type Awaited$
|
|
15327
|
-
type SecondParameter$
|
|
15354
|
+
type AwaitedInput$l<T> = PromiseLike<T> | T;
|
|
15355
|
+
type Awaited$l<O> = O extends AwaitedInput$l<infer T> ? T : never;
|
|
15356
|
+
type SecondParameter$l<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
15328
15357
|
declare const getCreateChatUrl: () => string;
|
|
15329
15358
|
/**
|
|
15330
15359
|
* Create a new chat against an existing chat agent. The chat agent's tenant becomes the owner of the chat. If the agent requires authentication (`identity_provider_id` on the public chat agent), send the identity token from `POST /public/v1/identity/token` in the `X-External-Identity-Token` header; without a valid token the request fails with 401.
|
|
15331
15360
|
* @summary Create a chat
|
|
15332
15361
|
*/
|
|
15333
15362
|
declare const createChat: (createChatBody?: CreateChatBody, options?: Parameters<typeof customFetch>[1]) => Promise<CreateChatEnvelope>;
|
|
15334
|
-
declare const getCreateChatMutationFetcher: (options?: SecondParameter$
|
|
15363
|
+
declare const getCreateChatMutationFetcher: (options?: SecondParameter$l<typeof customFetch>) => (_: Key, { arg }: {
|
|
15335
15364
|
arg: CreateChatBody | undefined;
|
|
15336
15365
|
}) => Promise<CreateChatEnvelope>;
|
|
15337
15366
|
declare const getCreateChatMutationKey: () => readonly ["/public/v1/chats"];
|
|
15338
|
-
type CreateChatMutationResult = NonNullable<Awaited$
|
|
15367
|
+
type CreateChatMutationResult = NonNullable<Awaited$l<ReturnType<typeof createChat>>>;
|
|
15339
15368
|
/**
|
|
15340
15369
|
* @summary Create a chat
|
|
15341
15370
|
*/
|
|
15342
15371
|
declare const useCreateChat: <TError = ErrorType<ErrorResponse>>(options?: {
|
|
15343
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
15372
|
+
swr?: SWRMutationConfiguration<Awaited$l<ReturnType<typeof createChat>>, TError, Key, CreateChatBody | undefined, Awaited$l<ReturnType<typeof createChat>>> & {
|
|
15344
15373
|
swrKey?: string;
|
|
15345
15374
|
};
|
|
15346
|
-
request?: SecondParameter$
|
|
15375
|
+
request?: SecondParameter$l<typeof customFetch>;
|
|
15347
15376
|
}) => {
|
|
15348
15377
|
isMutating: boolean;
|
|
15349
15378
|
trigger: swr_mutation.TriggerWithOptionsArgs<CreateChatEnvelope, TError, string | readonly ["/public/v1/chats"], CreateChatBody | undefined>;
|
|
@@ -15362,16 +15391,16 @@ declare const getGetChatUrl: (chatId: string) => string;
|
|
|
15362
15391
|
*/
|
|
15363
15392
|
declare const getChat: (chatId: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetChatEnvelope>;
|
|
15364
15393
|
declare const getGetChatKey: (chatId: string) => readonly [`/public/v1/chats/${string}`];
|
|
15365
|
-
type GetChatQueryResult = NonNullable<Awaited$
|
|
15394
|
+
type GetChatQueryResult = NonNullable<Awaited$l<ReturnType<typeof getChat>>>;
|
|
15366
15395
|
/**
|
|
15367
15396
|
* @summary Get a chat
|
|
15368
15397
|
*/
|
|
15369
15398
|
declare const useGetChat: <TError = ErrorType<ErrorResponse>>(chatId: string, options?: {
|
|
15370
|
-
swr?: SWRConfiguration<Awaited$
|
|
15399
|
+
swr?: SWRConfiguration<Awaited$l<ReturnType<typeof getChat>>, TError> & {
|
|
15371
15400
|
swrKey?: Key;
|
|
15372
15401
|
enabled?: boolean;
|
|
15373
15402
|
};
|
|
15374
|
-
request?: SecondParameter$
|
|
15403
|
+
request?: SecondParameter$l<typeof customFetch>;
|
|
15375
15404
|
}) => {
|
|
15376
15405
|
data: GetChatEnvelope | undefined;
|
|
15377
15406
|
error: TError | undefined;
|
|
@@ -15387,16 +15416,16 @@ declare const getGetPublicChatAgentUrl: (chatAgentId: string) => string;
|
|
|
15387
15416
|
*/
|
|
15388
15417
|
declare const getPublicChatAgent: (chatAgentId: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetPublicChatAgentEnvelope>;
|
|
15389
15418
|
declare const getGetPublicChatAgentKey: (chatAgentId: string) => readonly [`/public/v1/chat-agents/${string}`];
|
|
15390
|
-
type GetPublicChatAgentQueryResult = NonNullable<Awaited$
|
|
15419
|
+
type GetPublicChatAgentQueryResult = NonNullable<Awaited$l<ReturnType<typeof getPublicChatAgent>>>;
|
|
15391
15420
|
/**
|
|
15392
15421
|
* @summary Get a chat agent (public)
|
|
15393
15422
|
*/
|
|
15394
15423
|
declare const useGetPublicChatAgent: <TError = ErrorType<ErrorResponse>>(chatAgentId: string, options?: {
|
|
15395
|
-
swr?: SWRConfiguration<Awaited$
|
|
15424
|
+
swr?: SWRConfiguration<Awaited$l<ReturnType<typeof getPublicChatAgent>>, TError> & {
|
|
15396
15425
|
swrKey?: Key;
|
|
15397
15426
|
enabled?: boolean;
|
|
15398
15427
|
};
|
|
15399
|
-
request?: SecondParameter$
|
|
15428
|
+
request?: SecondParameter$l<typeof customFetch>;
|
|
15400
15429
|
}) => {
|
|
15401
15430
|
data: GetPublicChatAgentEnvelope | undefined;
|
|
15402
15431
|
error: TError | undefined;
|
|
@@ -15414,19 +15443,19 @@ declare const getPostChatMessageUrl: (chatId: string) => string;
|
|
|
15414
15443
|
* @summary Post a message to a chat
|
|
15415
15444
|
*/
|
|
15416
15445
|
declare const postChatMessage: (chatId: string, postChatMessageBody?: PostChatMessageBody, options?: Parameters<typeof customFetch>[1]) => Promise<PostChatMessageEnvelope>;
|
|
15417
|
-
declare const getPostChatMessageMutationFetcher: (chatId: string, options?: SecondParameter$
|
|
15446
|
+
declare const getPostChatMessageMutationFetcher: (chatId: string, options?: SecondParameter$l<typeof customFetch>) => (_: Key, { arg }: {
|
|
15418
15447
|
arg: PostChatMessageBody | undefined;
|
|
15419
15448
|
}) => Promise<PostChatMessageEnvelope>;
|
|
15420
15449
|
declare const getPostChatMessageMutationKey: (chatId: string) => readonly [`/public/v1/chats/${string}/messages`];
|
|
15421
|
-
type PostChatMessageMutationResult = NonNullable<Awaited$
|
|
15450
|
+
type PostChatMessageMutationResult = NonNullable<Awaited$l<ReturnType<typeof postChatMessage>>>;
|
|
15422
15451
|
/**
|
|
15423
15452
|
* @summary Post a message to a chat
|
|
15424
15453
|
*/
|
|
15425
15454
|
declare const usePostChatMessage: <TError = ErrorType<ErrorResponse>>(chatId: string, options?: {
|
|
15426
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
15455
|
+
swr?: SWRMutationConfiguration<Awaited$l<ReturnType<typeof postChatMessage>>, TError, Key, PostChatMessageBody | undefined, Awaited$l<ReturnType<typeof postChatMessage>>> & {
|
|
15427
15456
|
swrKey?: string;
|
|
15428
15457
|
};
|
|
15429
|
-
request?: SecondParameter$
|
|
15458
|
+
request?: SecondParameter$l<typeof customFetch>;
|
|
15430
15459
|
}) => {
|
|
15431
15460
|
isMutating: boolean;
|
|
15432
15461
|
trigger: swr_mutation.TriggerWithOptionsArgs<PostChatMessageEnvelope, TError, string | readonly [`/public/v1/chats/${string}/messages`], PostChatMessageBody | undefined>;
|
|
@@ -15442,16 +15471,16 @@ declare const getListChatsUrl: (params?: ListChatsParams) => string;
|
|
|
15442
15471
|
*/
|
|
15443
15472
|
declare const listChats: (params?: ListChatsParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListChatsEnvelope>;
|
|
15444
15473
|
declare const getListChatsKey: (params?: ListChatsParams) => readonly ["/v1/chats", ...ListChatsParams[]];
|
|
15445
|
-
type ListChatsQueryResult = NonNullable<Awaited$
|
|
15474
|
+
type ListChatsQueryResult = NonNullable<Awaited$l<ReturnType<typeof listChats>>>;
|
|
15446
15475
|
/**
|
|
15447
15476
|
* @summary List chats
|
|
15448
15477
|
*/
|
|
15449
15478
|
declare const useListChats: <TError = ErrorType<ErrorResponse>>(params?: ListChatsParams, options?: {
|
|
15450
|
-
swr?: SWRConfiguration<Awaited$
|
|
15479
|
+
swr?: SWRConfiguration<Awaited$l<ReturnType<typeof listChats>>, TError> & {
|
|
15451
15480
|
swrKey?: Key;
|
|
15452
15481
|
enabled?: boolean;
|
|
15453
15482
|
};
|
|
15454
|
-
request?: SecondParameter$
|
|
15483
|
+
request?: SecondParameter$l<typeof customFetch>;
|
|
15455
15484
|
}) => {
|
|
15456
15485
|
data: ListChatsEnvelope | undefined;
|
|
15457
15486
|
error: TError | undefined;
|
|
@@ -15467,16 +15496,16 @@ declare const getListChatMessagesUrl: (chatId: string, params?: ListChatMessages
|
|
|
15467
15496
|
*/
|
|
15468
15497
|
declare const listChatMessages: (chatId: string, params?: ListChatMessagesParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListChatMessagesEnvelope>;
|
|
15469
15498
|
declare const getListChatMessagesKey: (chatId: string, params?: ListChatMessagesParams) => readonly [`/v1/chats/${string}/messages`, ...ListChatMessagesParams[]];
|
|
15470
|
-
type ListChatMessagesQueryResult = NonNullable<Awaited$
|
|
15499
|
+
type ListChatMessagesQueryResult = NonNullable<Awaited$l<ReturnType<typeof listChatMessages>>>;
|
|
15471
15500
|
/**
|
|
15472
15501
|
* @summary List chat messages
|
|
15473
15502
|
*/
|
|
15474
15503
|
declare const useListChatMessages: <TError = ErrorType<ErrorResponse>>(chatId: string, params?: ListChatMessagesParams, options?: {
|
|
15475
|
-
swr?: SWRConfiguration<Awaited$
|
|
15504
|
+
swr?: SWRConfiguration<Awaited$l<ReturnType<typeof listChatMessages>>, TError> & {
|
|
15476
15505
|
swrKey?: Key;
|
|
15477
15506
|
enabled?: boolean;
|
|
15478
15507
|
};
|
|
15479
|
-
request?: SecondParameter$
|
|
15508
|
+
request?: SecondParameter$l<typeof customFetch>;
|
|
15480
15509
|
}) => {
|
|
15481
15510
|
data: ListChatMessagesEnvelope | undefined;
|
|
15482
15511
|
error: TError | undefined;
|
|
@@ -15486,9 +15515,9 @@ declare const useListChatMessages: <TError = ErrorType<ErrorResponse>>(chatId: s
|
|
|
15486
15515
|
swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => swr.Arguments);
|
|
15487
15516
|
};
|
|
15488
15517
|
|
|
15489
|
-
type AwaitedInput$
|
|
15490
|
-
type Awaited$
|
|
15491
|
-
type SecondParameter$
|
|
15518
|
+
type AwaitedInput$k<T> = PromiseLike<T> | T;
|
|
15519
|
+
type Awaited$k<O> = O extends AwaitedInput$k<infer T> ? T : never;
|
|
15520
|
+
type SecondParameter$k<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
15492
15521
|
declare const getListDispatchesUrl: (params?: ListDispatchesParams) => string;
|
|
15493
15522
|
/**
|
|
15494
15523
|
* List the organization's dispatches, newest occurrence first.
|
|
@@ -15508,16 +15537,16 @@ declare const getListDispatchesUrl: (params?: ListDispatchesParams) => string;
|
|
|
15508
15537
|
*/
|
|
15509
15538
|
declare const listDispatches: (params?: ListDispatchesParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListDispatchesEnvelope>;
|
|
15510
15539
|
declare const getListDispatchesKey: (params?: ListDispatchesParams) => readonly ["/v1/dispatches", ...ListDispatchesParams[]];
|
|
15511
|
-
type ListDispatchesQueryResult = NonNullable<Awaited$
|
|
15540
|
+
type ListDispatchesQueryResult = NonNullable<Awaited$k<ReturnType<typeof listDispatches>>>;
|
|
15512
15541
|
/**
|
|
15513
15542
|
* @summary List dispatches
|
|
15514
15543
|
*/
|
|
15515
15544
|
declare const useListDispatches: <TError = ErrorType<ErrorResponse>>(params?: ListDispatchesParams, options?: {
|
|
15516
|
-
swr?: SWRConfiguration<Awaited$
|
|
15545
|
+
swr?: SWRConfiguration<Awaited$k<ReturnType<typeof listDispatches>>, TError> & {
|
|
15517
15546
|
swrKey?: Key;
|
|
15518
15547
|
enabled?: boolean;
|
|
15519
15548
|
};
|
|
15520
|
-
request?: SecondParameter$
|
|
15549
|
+
request?: SecondParameter$k<typeof customFetch>;
|
|
15521
15550
|
}) => {
|
|
15522
15551
|
data: ListDispatchesEnvelope | undefined;
|
|
15523
15552
|
error: TError | undefined;
|
|
@@ -15527,9 +15556,9 @@ declare const useListDispatches: <TError = ErrorType<ErrorResponse>>(params?: Li
|
|
|
15527
15556
|
swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => swr.Arguments);
|
|
15528
15557
|
};
|
|
15529
15558
|
|
|
15530
|
-
type AwaitedInput$
|
|
15531
|
-
type Awaited$
|
|
15532
|
-
type SecondParameter$
|
|
15559
|
+
type AwaitedInput$j<T> = PromiseLike<T> | T;
|
|
15560
|
+
type Awaited$j<O> = O extends AwaitedInput$j<infer T> ? T : never;
|
|
15561
|
+
type SecondParameter$j<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
15533
15562
|
declare const getGetEmailUrl: (emailId: string) => string;
|
|
15534
15563
|
/**
|
|
15535
15564
|
* Retrieve detailed information about a specific email, including full body content and the artifact IDs of its attachments.
|
|
@@ -15537,16 +15566,16 @@ declare const getGetEmailUrl: (emailId: string) => string;
|
|
|
15537
15566
|
*/
|
|
15538
15567
|
declare const getEmail: (emailId: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetEmailEnvelope>;
|
|
15539
15568
|
declare const getGetEmailKey: (emailId: string) => readonly [`/v1/emails/${string}`];
|
|
15540
|
-
type GetEmailQueryResult = NonNullable<Awaited$
|
|
15569
|
+
type GetEmailQueryResult = NonNullable<Awaited$j<ReturnType<typeof getEmail>>>;
|
|
15541
15570
|
/**
|
|
15542
15571
|
* @summary Get email
|
|
15543
15572
|
*/
|
|
15544
15573
|
declare const useGetEmail: <TError = ErrorType<ErrorResponse>>(emailId: string, options?: {
|
|
15545
|
-
swr?: SWRConfiguration<Awaited$
|
|
15574
|
+
swr?: SWRConfiguration<Awaited$j<ReturnType<typeof getEmail>>, TError> & {
|
|
15546
15575
|
swrKey?: Key;
|
|
15547
15576
|
enabled?: boolean;
|
|
15548
15577
|
};
|
|
15549
|
-
request?: SecondParameter$
|
|
15578
|
+
request?: SecondParameter$j<typeof customFetch>;
|
|
15550
15579
|
}) => {
|
|
15551
15580
|
data: GetEmailEnvelope | undefined;
|
|
15552
15581
|
error: TError | undefined;
|
|
@@ -15561,19 +15590,19 @@ declare const getDeleteEmailUrl: (emailId: string) => string;
|
|
|
15561
15590
|
* @summary Delete email
|
|
15562
15591
|
*/
|
|
15563
15592
|
declare const deleteEmail: (emailId: string, options?: Parameters<typeof customFetch>[1]) => Promise<DeleteEmailEnvelope>;
|
|
15564
|
-
declare const getDeleteEmailMutationFetcher: (emailId: string, options?: SecondParameter$
|
|
15593
|
+
declare const getDeleteEmailMutationFetcher: (emailId: string, options?: SecondParameter$j<typeof customFetch>) => (_: Key, __: {
|
|
15565
15594
|
arg: Arguments;
|
|
15566
15595
|
}) => Promise<DeleteEmailEnvelope>;
|
|
15567
15596
|
declare const getDeleteEmailMutationKey: (emailId: string) => readonly [`/v1/emails/${string}`];
|
|
15568
|
-
type DeleteEmailMutationResult = NonNullable<Awaited$
|
|
15597
|
+
type DeleteEmailMutationResult = NonNullable<Awaited$j<ReturnType<typeof deleteEmail>>>;
|
|
15569
15598
|
/**
|
|
15570
15599
|
* @summary Delete email
|
|
15571
15600
|
*/
|
|
15572
15601
|
declare const useDeleteEmail: <TError = ErrorType<ErrorResponse>>(emailId: string, options?: {
|
|
15573
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
15602
|
+
swr?: SWRMutationConfiguration<Awaited$j<ReturnType<typeof deleteEmail>>, TError, Key, Arguments, Awaited$j<ReturnType<typeof deleteEmail>>> & {
|
|
15574
15603
|
swrKey?: string;
|
|
15575
15604
|
};
|
|
15576
|
-
request?: SecondParameter$
|
|
15605
|
+
request?: SecondParameter$j<typeof customFetch>;
|
|
15577
15606
|
}) => {
|
|
15578
15607
|
isMutating: boolean;
|
|
15579
15608
|
trigger: swr_mutation.TriggerWithOptionsArgs<DeleteEmailEnvelope, TError, string | readonly [`/v1/emails/${string}`], Arguments>;
|
|
@@ -15593,16 +15622,16 @@ declare const getListEmailsUrl: (params?: ListEmailsParams) => string;
|
|
|
15593
15622
|
*/
|
|
15594
15623
|
declare const listEmails: (params?: ListEmailsParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListEmailsEnvelope>;
|
|
15595
15624
|
declare const getListEmailsKey: (params?: ListEmailsParams) => readonly ["/v1/emails", ...ListEmailsParams[]];
|
|
15596
|
-
type ListEmailsQueryResult = NonNullable<Awaited$
|
|
15625
|
+
type ListEmailsQueryResult = NonNullable<Awaited$j<ReturnType<typeof listEmails>>>;
|
|
15597
15626
|
/**
|
|
15598
15627
|
* @summary List emails
|
|
15599
15628
|
*/
|
|
15600
15629
|
declare const useListEmails: <TError = ErrorType<ErrorResponse>>(params?: ListEmailsParams, options?: {
|
|
15601
|
-
swr?: SWRConfiguration<Awaited$
|
|
15630
|
+
swr?: SWRConfiguration<Awaited$j<ReturnType<typeof listEmails>>, TError> & {
|
|
15602
15631
|
swrKey?: Key;
|
|
15603
15632
|
enabled?: boolean;
|
|
15604
15633
|
};
|
|
15605
|
-
request?: SecondParameter$
|
|
15634
|
+
request?: SecondParameter$j<typeof customFetch>;
|
|
15606
15635
|
}) => {
|
|
15607
15636
|
data: ListEmailsEnvelope | undefined;
|
|
15608
15637
|
error: TError | undefined;
|
|
@@ -15622,16 +15651,16 @@ declare const getListEmailThreadsUrl: (params?: ListEmailThreadsParams) => strin
|
|
|
15622
15651
|
*/
|
|
15623
15652
|
declare const listEmailThreads: (params?: ListEmailThreadsParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListEmailThreadsEnvelope>;
|
|
15624
15653
|
declare const getListEmailThreadsKey: (params?: ListEmailThreadsParams) => readonly ["/v1/emails/threads", ...ListEmailThreadsParams[]];
|
|
15625
|
-
type ListEmailThreadsQueryResult = NonNullable<Awaited$
|
|
15654
|
+
type ListEmailThreadsQueryResult = NonNullable<Awaited$j<ReturnType<typeof listEmailThreads>>>;
|
|
15626
15655
|
/**
|
|
15627
15656
|
* @summary List email threads
|
|
15628
15657
|
*/
|
|
15629
15658
|
declare const useListEmailThreads: <TError = ErrorType<ErrorResponse>>(params?: ListEmailThreadsParams, options?: {
|
|
15630
|
-
swr?: SWRConfiguration<Awaited$
|
|
15659
|
+
swr?: SWRConfiguration<Awaited$j<ReturnType<typeof listEmailThreads>>, TError> & {
|
|
15631
15660
|
swrKey?: Key;
|
|
15632
15661
|
enabled?: boolean;
|
|
15633
15662
|
};
|
|
15634
|
-
request?: SecondParameter$
|
|
15663
|
+
request?: SecondParameter$j<typeof customFetch>;
|
|
15635
15664
|
}) => {
|
|
15636
15665
|
data: ListEmailThreadsEnvelope | undefined;
|
|
15637
15666
|
error: TError | undefined;
|
|
@@ -15650,19 +15679,19 @@ declare const getReplyToEmailUrl: (emailId: string) => string;
|
|
|
15650
15679
|
* @summary Reply to email
|
|
15651
15680
|
*/
|
|
15652
15681
|
declare const replyToEmail: (emailId: string, replyToEmailBody?: ReplyToEmailBody, options?: Parameters<typeof customFetch>[1]) => Promise<ReplyToEmailEnvelope>;
|
|
15653
|
-
declare const getReplyToEmailMutationFetcher: (emailId: string, options?: SecondParameter$
|
|
15682
|
+
declare const getReplyToEmailMutationFetcher: (emailId: string, options?: SecondParameter$j<typeof customFetch>) => (_: Key, { arg }: {
|
|
15654
15683
|
arg: ReplyToEmailBody | undefined;
|
|
15655
15684
|
}) => Promise<ReplyToEmailEnvelope>;
|
|
15656
15685
|
declare const getReplyToEmailMutationKey: (emailId: string) => readonly [`/v1/emails/${string}/reply`];
|
|
15657
|
-
type ReplyToEmailMutationResult = NonNullable<Awaited$
|
|
15686
|
+
type ReplyToEmailMutationResult = NonNullable<Awaited$j<ReturnType<typeof replyToEmail>>>;
|
|
15658
15687
|
/**
|
|
15659
15688
|
* @summary Reply to email
|
|
15660
15689
|
*/
|
|
15661
15690
|
declare const useReplyToEmail: <TError = ErrorType<ErrorResponse>>(emailId: string, options?: {
|
|
15662
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
15691
|
+
swr?: SWRMutationConfiguration<Awaited$j<ReturnType<typeof replyToEmail>>, TError, Key, ReplyToEmailBody | undefined, Awaited$j<ReturnType<typeof replyToEmail>>> & {
|
|
15663
15692
|
swrKey?: string;
|
|
15664
15693
|
};
|
|
15665
|
-
request?: SecondParameter$
|
|
15694
|
+
request?: SecondParameter$j<typeof customFetch>;
|
|
15666
15695
|
}) => {
|
|
15667
15696
|
isMutating: boolean;
|
|
15668
15697
|
trigger: swr_mutation.TriggerWithOptionsArgs<ReplyToEmailEnvelope, TError, string | readonly [`/v1/emails/${string}/reply`], ReplyToEmailBody | undefined>;
|
|
@@ -15679,19 +15708,19 @@ declare const getSendEmailUrl: () => string;
|
|
|
15679
15708
|
* @summary Send email
|
|
15680
15709
|
*/
|
|
15681
15710
|
declare const sendEmail: (sendEmailBody?: SendEmailBody, options?: Parameters<typeof customFetch>[1]) => Promise<SendEmailEnvelope>;
|
|
15682
|
-
declare const getSendEmailMutationFetcher: (options?: SecondParameter$
|
|
15711
|
+
declare const getSendEmailMutationFetcher: (options?: SecondParameter$j<typeof customFetch>) => (_: Key, { arg }: {
|
|
15683
15712
|
arg: SendEmailBody | undefined;
|
|
15684
15713
|
}) => Promise<SendEmailEnvelope>;
|
|
15685
15714
|
declare const getSendEmailMutationKey: () => readonly ["/v1/emails/send"];
|
|
15686
|
-
type SendEmailMutationResult = NonNullable<Awaited$
|
|
15715
|
+
type SendEmailMutationResult = NonNullable<Awaited$j<ReturnType<typeof sendEmail>>>;
|
|
15687
15716
|
/**
|
|
15688
15717
|
* @summary Send email
|
|
15689
15718
|
*/
|
|
15690
15719
|
declare const useSendEmail: <TError = ErrorType<ErrorResponse>>(options?: {
|
|
15691
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
15720
|
+
swr?: SWRMutationConfiguration<Awaited$j<ReturnType<typeof sendEmail>>, TError, Key, SendEmailBody | undefined, Awaited$j<ReturnType<typeof sendEmail>>> & {
|
|
15692
15721
|
swrKey?: string;
|
|
15693
15722
|
};
|
|
15694
|
-
request?: SecondParameter$
|
|
15723
|
+
request?: SecondParameter$j<typeof customFetch>;
|
|
15695
15724
|
}) => {
|
|
15696
15725
|
isMutating: boolean;
|
|
15697
15726
|
trigger: swr_mutation.TriggerWithOptionsArgs<SendEmailEnvelope, TError, string | readonly ["/v1/emails/send"], SendEmailBody | undefined>;
|
|
@@ -15701,28 +15730,28 @@ declare const useSendEmail: <TError = ErrorType<ErrorResponse>>(options?: {
|
|
|
15701
15730
|
swrKey: string | readonly ["/v1/emails/send"];
|
|
15702
15731
|
};
|
|
15703
15732
|
|
|
15704
|
-
type AwaitedInput$
|
|
15705
|
-
type Awaited$
|
|
15706
|
-
type SecondParameter$
|
|
15733
|
+
type AwaitedInput$i<T> = PromiseLike<T> | T;
|
|
15734
|
+
type Awaited$i<O> = O extends AwaitedInput$i<infer T> ? T : never;
|
|
15735
|
+
type SecondParameter$i<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
15707
15736
|
declare const getCreateWorkerEvalFromRunUrl: (workerRunId: string) => string;
|
|
15708
15737
|
/**
|
|
15709
15738
|
* Snapshot a worker run's trigger and resolved artifacts, and record its MCP tool responses from telemetry for replay. Each assertion is graded PASS/FAIL independently on every run.
|
|
15710
15739
|
* @summary Create a worker eval from a run
|
|
15711
15740
|
*/
|
|
15712
15741
|
declare const createWorkerEvalFromRun: (workerRunId: string, createWorkerEvalFromRunBody?: CreateWorkerEvalFromRunBody, options?: Parameters<typeof customFetch>[1]) => Promise<CreateWorkerEvalFromRunEnvelope>;
|
|
15713
|
-
declare const getCreateWorkerEvalFromRunMutationFetcher: (workerRunId: string, options?: SecondParameter$
|
|
15742
|
+
declare const getCreateWorkerEvalFromRunMutationFetcher: (workerRunId: string, options?: SecondParameter$i<typeof customFetch>) => (_: Key, { arg }: {
|
|
15714
15743
|
arg: CreateWorkerEvalFromRunBody | undefined;
|
|
15715
15744
|
}) => Promise<CreateWorkerEvalFromRunEnvelope>;
|
|
15716
15745
|
declare const getCreateWorkerEvalFromRunMutationKey: (workerRunId: string) => readonly [`/v1/worker-runs/${string}/evals`];
|
|
15717
|
-
type CreateWorkerEvalFromRunMutationResult = NonNullable<Awaited$
|
|
15746
|
+
type CreateWorkerEvalFromRunMutationResult = NonNullable<Awaited$i<ReturnType<typeof createWorkerEvalFromRun>>>;
|
|
15718
15747
|
/**
|
|
15719
15748
|
* @summary Create a worker eval from a run
|
|
15720
15749
|
*/
|
|
15721
15750
|
declare const useCreateWorkerEvalFromRun: <TError = ErrorType<ErrorResponse>>(workerRunId: string, options?: {
|
|
15722
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
15751
|
+
swr?: SWRMutationConfiguration<Awaited$i<ReturnType<typeof createWorkerEvalFromRun>>, TError, Key, CreateWorkerEvalFromRunBody | undefined, Awaited$i<ReturnType<typeof createWorkerEvalFromRun>>> & {
|
|
15723
15752
|
swrKey?: string;
|
|
15724
15753
|
};
|
|
15725
|
-
request?: SecondParameter$
|
|
15754
|
+
request?: SecondParameter$i<typeof customFetch>;
|
|
15726
15755
|
}) => {
|
|
15727
15756
|
isMutating: boolean;
|
|
15728
15757
|
trigger: swr_mutation.TriggerWithOptionsArgs<CreateWorkerEvalFromRunEnvelope, TError, string | readonly [`/v1/worker-runs/${string}/evals`], CreateWorkerEvalFromRunBody | undefined>;
|
|
@@ -15737,19 +15766,19 @@ declare const getRunEvalUrl: (evalId: string) => string;
|
|
|
15737
15766
|
* @summary Run an eval
|
|
15738
15767
|
*/
|
|
15739
15768
|
declare const runEval: (evalId: string, runEvalBody?: RunEvalBody, options?: Parameters<typeof customFetch>[1]) => Promise<RunEvalEnvelope>;
|
|
15740
|
-
declare const getRunEvalMutationFetcher: (evalId: string, options?: SecondParameter$
|
|
15769
|
+
declare const getRunEvalMutationFetcher: (evalId: string, options?: SecondParameter$i<typeof customFetch>) => (_: Key, { arg }: {
|
|
15741
15770
|
arg: RunEvalBody | undefined;
|
|
15742
15771
|
}) => Promise<RunEvalEnvelope>;
|
|
15743
15772
|
declare const getRunEvalMutationKey: (evalId: string) => readonly [`/v1/evals/${string}/runs`];
|
|
15744
|
-
type RunEvalMutationResult = NonNullable<Awaited$
|
|
15773
|
+
type RunEvalMutationResult = NonNullable<Awaited$i<ReturnType<typeof runEval>>>;
|
|
15745
15774
|
/**
|
|
15746
15775
|
* @summary Run an eval
|
|
15747
15776
|
*/
|
|
15748
15777
|
declare const useRunEval: <TError = ErrorType<ErrorResponse>>(evalId: string, options?: {
|
|
15749
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
15778
|
+
swr?: SWRMutationConfiguration<Awaited$i<ReturnType<typeof runEval>>, TError, Key, RunEvalBody | undefined, Awaited$i<ReturnType<typeof runEval>>> & {
|
|
15750
15779
|
swrKey?: string;
|
|
15751
15780
|
};
|
|
15752
|
-
request?: SecondParameter$
|
|
15781
|
+
request?: SecondParameter$i<typeof customFetch>;
|
|
15753
15782
|
}) => {
|
|
15754
15783
|
isMutating: boolean;
|
|
15755
15784
|
trigger: swr_mutation.TriggerWithOptionsArgs<RunEvalEnvelope, TError, string | readonly [`/v1/evals/${string}/runs`], RunEvalBody | undefined>;
|
|
@@ -15765,16 +15794,16 @@ declare const getGetEvalRunUrl: (evalRunId: string) => string;
|
|
|
15765
15794
|
*/
|
|
15766
15795
|
declare const getEvalRun: (evalRunId: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetEvalRunEnvelope>;
|
|
15767
15796
|
declare const getGetEvalRunKey: (evalRunId: string) => readonly [`/v1/eval-runs/${string}`];
|
|
15768
|
-
type GetEvalRunQueryResult = NonNullable<Awaited$
|
|
15797
|
+
type GetEvalRunQueryResult = NonNullable<Awaited$i<ReturnType<typeof getEvalRun>>>;
|
|
15769
15798
|
/**
|
|
15770
15799
|
* @summary Get an eval run
|
|
15771
15800
|
*/
|
|
15772
15801
|
declare const useGetEvalRun: <TError = ErrorType<ErrorResponse>>(evalRunId: string, options?: {
|
|
15773
|
-
swr?: SWRConfiguration<Awaited$
|
|
15802
|
+
swr?: SWRConfiguration<Awaited$i<ReturnType<typeof getEvalRun>>, TError> & {
|
|
15774
15803
|
swrKey?: Key;
|
|
15775
15804
|
enabled?: boolean;
|
|
15776
15805
|
};
|
|
15777
|
-
request?: SecondParameter$
|
|
15806
|
+
request?: SecondParameter$i<typeof customFetch>;
|
|
15778
15807
|
}) => {
|
|
15779
15808
|
data: GetEvalRunEnvelope | undefined;
|
|
15780
15809
|
error: TError | undefined;
|
|
@@ -15789,19 +15818,19 @@ declare const getCreateEvalBenchmarkUrl: (evalId: string) => string;
|
|
|
15789
15818
|
* @summary Benchmark two worker versions on an eval
|
|
15790
15819
|
*/
|
|
15791
15820
|
declare const createEvalBenchmark: (evalId: string, createEvalBenchmarkBody?: CreateEvalBenchmarkBody, options?: Parameters<typeof customFetch>[1]) => Promise<CreateEvalBenchmarkEnvelope>;
|
|
15792
|
-
declare const getCreateEvalBenchmarkMutationFetcher: (evalId: string, options?: SecondParameter$
|
|
15821
|
+
declare const getCreateEvalBenchmarkMutationFetcher: (evalId: string, options?: SecondParameter$i<typeof customFetch>) => (_: Key, { arg }: {
|
|
15793
15822
|
arg: CreateEvalBenchmarkBody | undefined;
|
|
15794
15823
|
}) => Promise<CreateEvalBenchmarkEnvelope>;
|
|
15795
15824
|
declare const getCreateEvalBenchmarkMutationKey: (evalId: string) => readonly [`/v1/evals/${string}/benchmarks`];
|
|
15796
|
-
type CreateEvalBenchmarkMutationResult = NonNullable<Awaited$
|
|
15825
|
+
type CreateEvalBenchmarkMutationResult = NonNullable<Awaited$i<ReturnType<typeof createEvalBenchmark>>>;
|
|
15797
15826
|
/**
|
|
15798
15827
|
* @summary Benchmark two worker versions on an eval
|
|
15799
15828
|
*/
|
|
15800
15829
|
declare const useCreateEvalBenchmark: <TError = ErrorType<ErrorResponse>>(evalId: string, options?: {
|
|
15801
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
15830
|
+
swr?: SWRMutationConfiguration<Awaited$i<ReturnType<typeof createEvalBenchmark>>, TError, Key, CreateEvalBenchmarkBody | undefined, Awaited$i<ReturnType<typeof createEvalBenchmark>>> & {
|
|
15802
15831
|
swrKey?: string;
|
|
15803
15832
|
};
|
|
15804
|
-
request?: SecondParameter$
|
|
15833
|
+
request?: SecondParameter$i<typeof customFetch>;
|
|
15805
15834
|
}) => {
|
|
15806
15835
|
isMutating: boolean;
|
|
15807
15836
|
trigger: swr_mutation.TriggerWithOptionsArgs<CreateEvalBenchmarkEnvelope, TError, string | readonly [`/v1/evals/${string}/benchmarks`], CreateEvalBenchmarkBody | undefined>;
|
|
@@ -15817,16 +15846,16 @@ declare const getListEvalBenchmarksUrl: (evalId: string, params?: ListEvalBenchm
|
|
|
15817
15846
|
*/
|
|
15818
15847
|
declare const listEvalBenchmarks: (evalId: string, params?: ListEvalBenchmarksParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListEvalBenchmarksEnvelope>;
|
|
15819
15848
|
declare const getListEvalBenchmarksKey: (evalId: string, params?: ListEvalBenchmarksParams) => readonly [`/v1/evals/${string}/benchmarks`, ...ListEvalBenchmarksParams[]];
|
|
15820
|
-
type ListEvalBenchmarksQueryResult = NonNullable<Awaited$
|
|
15849
|
+
type ListEvalBenchmarksQueryResult = NonNullable<Awaited$i<ReturnType<typeof listEvalBenchmarks>>>;
|
|
15821
15850
|
/**
|
|
15822
15851
|
* @summary List an eval's benchmarks
|
|
15823
15852
|
*/
|
|
15824
15853
|
declare const useListEvalBenchmarks: <TError = ErrorType<ErrorResponse>>(evalId: string, params?: ListEvalBenchmarksParams, options?: {
|
|
15825
|
-
swr?: SWRConfiguration<Awaited$
|
|
15854
|
+
swr?: SWRConfiguration<Awaited$i<ReturnType<typeof listEvalBenchmarks>>, TError> & {
|
|
15826
15855
|
swrKey?: Key;
|
|
15827
15856
|
enabled?: boolean;
|
|
15828
15857
|
};
|
|
15829
|
-
request?: SecondParameter$
|
|
15858
|
+
request?: SecondParameter$i<typeof customFetch>;
|
|
15830
15859
|
}) => {
|
|
15831
15860
|
data: ListEvalBenchmarksEnvelope | undefined;
|
|
15832
15861
|
error: TError | undefined;
|
|
@@ -15842,16 +15871,16 @@ declare const getGetBenchmarkUrl: (benchmarkId: string) => string;
|
|
|
15842
15871
|
*/
|
|
15843
15872
|
declare const getBenchmark: (benchmarkId: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetBenchmarkEnvelope>;
|
|
15844
15873
|
declare const getGetBenchmarkKey: (benchmarkId: string) => readonly [`/v1/benchmarks/${string}`];
|
|
15845
|
-
type GetBenchmarkQueryResult = NonNullable<Awaited$
|
|
15874
|
+
type GetBenchmarkQueryResult = NonNullable<Awaited$i<ReturnType<typeof getBenchmark>>>;
|
|
15846
15875
|
/**
|
|
15847
15876
|
* @summary Get a benchmark
|
|
15848
15877
|
*/
|
|
15849
15878
|
declare const useGetBenchmark: <TError = ErrorType<ErrorResponse>>(benchmarkId: string, options?: {
|
|
15850
|
-
swr?: SWRConfiguration<Awaited$
|
|
15879
|
+
swr?: SWRConfiguration<Awaited$i<ReturnType<typeof getBenchmark>>, TError> & {
|
|
15851
15880
|
swrKey?: Key;
|
|
15852
15881
|
enabled?: boolean;
|
|
15853
15882
|
};
|
|
15854
|
-
request?: SecondParameter$
|
|
15883
|
+
request?: SecondParameter$i<typeof customFetch>;
|
|
15855
15884
|
}) => {
|
|
15856
15885
|
data: GetBenchmarkEnvelope | undefined;
|
|
15857
15886
|
error: TError | undefined;
|
|
@@ -15867,16 +15896,16 @@ declare const getListWorkerEvalsUrl: (workerId: string, params?: ListWorkerEvals
|
|
|
15867
15896
|
*/
|
|
15868
15897
|
declare const listWorkerEvals: (workerId: string, params?: ListWorkerEvalsParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListWorkerEvalsEnvelope>;
|
|
15869
15898
|
declare const getListWorkerEvalsKey: (workerId: string, params?: ListWorkerEvalsParams) => readonly [`/v1/workers/${string}/evals`, ...ListWorkerEvalsParams[]];
|
|
15870
|
-
type ListWorkerEvalsQueryResult = NonNullable<Awaited$
|
|
15899
|
+
type ListWorkerEvalsQueryResult = NonNullable<Awaited$i<ReturnType<typeof listWorkerEvals>>>;
|
|
15871
15900
|
/**
|
|
15872
15901
|
* @summary List a worker's evals
|
|
15873
15902
|
*/
|
|
15874
15903
|
declare const useListWorkerEvals: <TError = ErrorType<ErrorResponse>>(workerId: string, params?: ListWorkerEvalsParams, options?: {
|
|
15875
|
-
swr?: SWRConfiguration<Awaited$
|
|
15904
|
+
swr?: SWRConfiguration<Awaited$i<ReturnType<typeof listWorkerEvals>>, TError> & {
|
|
15876
15905
|
swrKey?: Key;
|
|
15877
15906
|
enabled?: boolean;
|
|
15878
15907
|
};
|
|
15879
|
-
request?: SecondParameter$
|
|
15908
|
+
request?: SecondParameter$i<typeof customFetch>;
|
|
15880
15909
|
}) => {
|
|
15881
15910
|
data: ListWorkerEvalsEnvelope | undefined;
|
|
15882
15911
|
error: TError | undefined;
|
|
@@ -15891,19 +15920,19 @@ declare const getCreateWorkerBenchmarksUrl: (workerId: string) => string;
|
|
|
15891
15920
|
* @summary Benchmark two worker versions on all of the worker's evals
|
|
15892
15921
|
*/
|
|
15893
15922
|
declare const createWorkerBenchmarks: (workerId: string, createWorkerBenchmarksBody?: CreateWorkerBenchmarksBody, options?: Parameters<typeof customFetch>[1]) => Promise<CreateWorkerBenchmarksEnvelope>;
|
|
15894
|
-
declare const getCreateWorkerBenchmarksMutationFetcher: (workerId: string, options?: SecondParameter$
|
|
15923
|
+
declare const getCreateWorkerBenchmarksMutationFetcher: (workerId: string, options?: SecondParameter$i<typeof customFetch>) => (_: Key, { arg }: {
|
|
15895
15924
|
arg: CreateWorkerBenchmarksBody | undefined;
|
|
15896
15925
|
}) => Promise<CreateWorkerBenchmarksEnvelope>;
|
|
15897
15926
|
declare const getCreateWorkerBenchmarksMutationKey: (workerId: string) => readonly [`/v1/workers/${string}/benchmarks`];
|
|
15898
|
-
type CreateWorkerBenchmarksMutationResult = NonNullable<Awaited$
|
|
15927
|
+
type CreateWorkerBenchmarksMutationResult = NonNullable<Awaited$i<ReturnType<typeof createWorkerBenchmarks>>>;
|
|
15899
15928
|
/**
|
|
15900
15929
|
* @summary Benchmark two worker versions on all of the worker's evals
|
|
15901
15930
|
*/
|
|
15902
15931
|
declare const useCreateWorkerBenchmarks: <TError = ErrorType<ErrorResponse>>(workerId: string, options?: {
|
|
15903
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
15932
|
+
swr?: SWRMutationConfiguration<Awaited$i<ReturnType<typeof createWorkerBenchmarks>>, TError, Key, CreateWorkerBenchmarksBody | undefined, Awaited$i<ReturnType<typeof createWorkerBenchmarks>>> & {
|
|
15904
15933
|
swrKey?: string;
|
|
15905
15934
|
};
|
|
15906
|
-
request?: SecondParameter$
|
|
15935
|
+
request?: SecondParameter$i<typeof customFetch>;
|
|
15907
15936
|
}) => {
|
|
15908
15937
|
isMutating: boolean;
|
|
15909
15938
|
trigger: swr_mutation.TriggerWithOptionsArgs<CreateWorkerBenchmarksEnvelope, TError, string | readonly [`/v1/workers/${string}/benchmarks`], CreateWorkerBenchmarksBody | undefined>;
|
|
@@ -15913,9 +15942,9 @@ declare const useCreateWorkerBenchmarks: <TError = ErrorType<ErrorResponse>>(wor
|
|
|
15913
15942
|
swrKey: string | readonly [`/v1/workers/${string}/benchmarks`];
|
|
15914
15943
|
};
|
|
15915
15944
|
|
|
15916
|
-
type AwaitedInput$
|
|
15917
|
-
type Awaited$
|
|
15918
|
-
type SecondParameter$
|
|
15945
|
+
type AwaitedInput$h<T> = PromiseLike<T> | T;
|
|
15946
|
+
type Awaited$h<O> = O extends AwaitedInput$h<infer T> ? T : never;
|
|
15947
|
+
type SecondParameter$h<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
15919
15948
|
declare const getListExtractorJobsUrl: (params?: ListExtractorJobsParams) => string;
|
|
15920
15949
|
/**
|
|
15921
15950
|
* List all extraction jobs with pagination, filtering, and sorting.
|
|
@@ -15932,16 +15961,16 @@ declare const getListExtractorJobsUrl: (params?: ListExtractorJobsParams) => str
|
|
|
15932
15961
|
*/
|
|
15933
15962
|
declare const listExtractorJobs: (params?: ListExtractorJobsParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListExtractorJobsEnvelope>;
|
|
15934
15963
|
declare const getListExtractorJobsKey: (params?: ListExtractorJobsParams) => readonly ["/v1/extractor-jobs", ...ListExtractorJobsParams[]];
|
|
15935
|
-
type ListExtractorJobsQueryResult = NonNullable<Awaited$
|
|
15964
|
+
type ListExtractorJobsQueryResult = NonNullable<Awaited$h<ReturnType<typeof listExtractorJobs>>>;
|
|
15936
15965
|
/**
|
|
15937
15966
|
* @summary List extractor jobs
|
|
15938
15967
|
*/
|
|
15939
15968
|
declare const useListExtractorJobs: <TError = ErrorType<ErrorResponse>>(params?: ListExtractorJobsParams, options?: {
|
|
15940
|
-
swr?: SWRConfiguration<Awaited$
|
|
15969
|
+
swr?: SWRConfiguration<Awaited$h<ReturnType<typeof listExtractorJobs>>, TError> & {
|
|
15941
15970
|
swrKey?: Key;
|
|
15942
15971
|
enabled?: boolean;
|
|
15943
15972
|
};
|
|
15944
|
-
request?: SecondParameter$
|
|
15973
|
+
request?: SecondParameter$h<typeof customFetch>;
|
|
15945
15974
|
}) => {
|
|
15946
15975
|
data: ListExtractorJobsEnvelope | undefined;
|
|
15947
15976
|
error: TError | undefined;
|
|
@@ -15958,19 +15987,19 @@ declare const getCreateExtractorJobUrl: () => string;
|
|
|
15958
15987
|
* @summary Create extractor job
|
|
15959
15988
|
*/
|
|
15960
15989
|
declare const createExtractorJob: (createExtractorJobBody?: CreateExtractorJobBody, options?: Parameters<typeof customFetch>[1]) => Promise<CreateExtractorJobEnvelope>;
|
|
15961
|
-
declare const getCreateExtractorJobMutationFetcher: (options?: SecondParameter$
|
|
15990
|
+
declare const getCreateExtractorJobMutationFetcher: (options?: SecondParameter$h<typeof customFetch>) => (_: Key, { arg }: {
|
|
15962
15991
|
arg: CreateExtractorJobBody | undefined;
|
|
15963
15992
|
}) => Promise<CreateExtractorJobEnvelope>;
|
|
15964
15993
|
declare const getCreateExtractorJobMutationKey: () => readonly ["/v1/extractor-jobs"];
|
|
15965
|
-
type CreateExtractorJobMutationResult = NonNullable<Awaited$
|
|
15994
|
+
type CreateExtractorJobMutationResult = NonNullable<Awaited$h<ReturnType<typeof createExtractorJob>>>;
|
|
15966
15995
|
/**
|
|
15967
15996
|
* @summary Create extractor job
|
|
15968
15997
|
*/
|
|
15969
15998
|
declare const useCreateExtractorJob: <TError = ErrorType<ErrorResponse>>(options?: {
|
|
15970
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
15999
|
+
swr?: SWRMutationConfiguration<Awaited$h<ReturnType<typeof createExtractorJob>>, TError, Key, CreateExtractorJobBody | undefined, Awaited$h<ReturnType<typeof createExtractorJob>>> & {
|
|
15971
16000
|
swrKey?: string;
|
|
15972
16001
|
};
|
|
15973
|
-
request?: SecondParameter$
|
|
16002
|
+
request?: SecondParameter$h<typeof customFetch>;
|
|
15974
16003
|
}) => {
|
|
15975
16004
|
isMutating: boolean;
|
|
15976
16005
|
trigger: swr_mutation.TriggerWithOptionsArgs<CreateExtractorJobEnvelope, TError, string | readonly ["/v1/extractor-jobs"], CreateExtractorJobBody | undefined>;
|
|
@@ -15986,16 +16015,16 @@ declare const getGetExtractorJobUrl: (id: string) => string;
|
|
|
15986
16015
|
*/
|
|
15987
16016
|
declare const getExtractorJob: (id: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetExtractorJobEnvelope>;
|
|
15988
16017
|
declare const getGetExtractorJobKey: (id: string) => readonly [`/v1/extractor-jobs/${string}`];
|
|
15989
|
-
type GetExtractorJobQueryResult = NonNullable<Awaited$
|
|
16018
|
+
type GetExtractorJobQueryResult = NonNullable<Awaited$h<ReturnType<typeof getExtractorJob>>>;
|
|
15990
16019
|
/**
|
|
15991
16020
|
* @summary Get extractor job
|
|
15992
16021
|
*/
|
|
15993
16022
|
declare const useGetExtractorJob: <TError = ErrorType<ErrorResponse>>(id: string, options?: {
|
|
15994
|
-
swr?: SWRConfiguration<Awaited$
|
|
16023
|
+
swr?: SWRConfiguration<Awaited$h<ReturnType<typeof getExtractorJob>>, TError> & {
|
|
15995
16024
|
swrKey?: Key;
|
|
15996
16025
|
enabled?: boolean;
|
|
15997
16026
|
};
|
|
15998
|
-
request?: SecondParameter$
|
|
16027
|
+
request?: SecondParameter$h<typeof customFetch>;
|
|
15999
16028
|
}) => {
|
|
16000
16029
|
data: GetExtractorJobEnvelope | undefined;
|
|
16001
16030
|
error: TError | undefined;
|
|
@@ -16005,28 +16034,28 @@ declare const useGetExtractorJob: <TError = ErrorType<ErrorResponse>>(id: string
|
|
|
16005
16034
|
swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => swr.Arguments);
|
|
16006
16035
|
};
|
|
16007
16036
|
|
|
16008
|
-
type AwaitedInput$
|
|
16009
|
-
type Awaited$
|
|
16010
|
-
type SecondParameter$
|
|
16037
|
+
type AwaitedInput$g<T> = PromiseLike<T> | T;
|
|
16038
|
+
type Awaited$g<O> = O extends AwaitedInput$g<infer T> ? T : never;
|
|
16039
|
+
type SecondParameter$g<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
16011
16040
|
declare const getCreateExtractorUrl: () => string;
|
|
16012
16041
|
/**
|
|
16013
16042
|
* Create a new extractor with a name and JSON schema defining the extraction output format.
|
|
16014
16043
|
* @summary Create extractor
|
|
16015
16044
|
*/
|
|
16016
16045
|
declare const createExtractor: (createExtractorBody?: CreateExtractorBody, options?: Parameters<typeof customFetch>[1]) => Promise<CreateExtractorEnvelope>;
|
|
16017
|
-
declare const getCreateExtractorMutationFetcher: (options?: SecondParameter$
|
|
16046
|
+
declare const getCreateExtractorMutationFetcher: (options?: SecondParameter$g<typeof customFetch>) => (_: Key, { arg }: {
|
|
16018
16047
|
arg: CreateExtractorBody | undefined;
|
|
16019
16048
|
}) => Promise<CreateExtractorEnvelope>;
|
|
16020
16049
|
declare const getCreateExtractorMutationKey: () => readonly ["/v1/extractors"];
|
|
16021
|
-
type CreateExtractorMutationResult = NonNullable<Awaited$
|
|
16050
|
+
type CreateExtractorMutationResult = NonNullable<Awaited$g<ReturnType<typeof createExtractor>>>;
|
|
16022
16051
|
/**
|
|
16023
16052
|
* @summary Create extractor
|
|
16024
16053
|
*/
|
|
16025
16054
|
declare const useCreateExtractor: <TError = ErrorType<ErrorResponse>>(options?: {
|
|
16026
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
16055
|
+
swr?: SWRMutationConfiguration<Awaited$g<ReturnType<typeof createExtractor>>, TError, Key, CreateExtractorBody | undefined, Awaited$g<ReturnType<typeof createExtractor>>> & {
|
|
16027
16056
|
swrKey?: string;
|
|
16028
16057
|
};
|
|
16029
|
-
request?: SecondParameter$
|
|
16058
|
+
request?: SecondParameter$g<typeof customFetch>;
|
|
16030
16059
|
}) => {
|
|
16031
16060
|
isMutating: boolean;
|
|
16032
16061
|
trigger: swr_mutation.TriggerWithOptionsArgs<CreateExtractorEnvelope, TError, string | readonly ["/v1/extractors"], CreateExtractorBody | undefined>;
|
|
@@ -16044,16 +16073,16 @@ declare const getListExtractorsUrl: (params?: ListExtractorsParams) => string;
|
|
|
16044
16073
|
*/
|
|
16045
16074
|
declare const listExtractors: (params?: ListExtractorsParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListExtractorsEnvelope>;
|
|
16046
16075
|
declare const getListExtractorsKey: (params?: ListExtractorsParams) => readonly ["/v1/extractors", ...ListExtractorsParams[]];
|
|
16047
|
-
type ListExtractorsQueryResult = NonNullable<Awaited$
|
|
16076
|
+
type ListExtractorsQueryResult = NonNullable<Awaited$g<ReturnType<typeof listExtractors>>>;
|
|
16048
16077
|
/**
|
|
16049
16078
|
* @summary List extractors
|
|
16050
16079
|
*/
|
|
16051
16080
|
declare const useListExtractors: <TError = ErrorType<ErrorResponse>>(params?: ListExtractorsParams, options?: {
|
|
16052
|
-
swr?: SWRConfiguration<Awaited$
|
|
16081
|
+
swr?: SWRConfiguration<Awaited$g<ReturnType<typeof listExtractors>>, TError> & {
|
|
16053
16082
|
swrKey?: Key;
|
|
16054
16083
|
enabled?: boolean;
|
|
16055
16084
|
};
|
|
16056
|
-
request?: SecondParameter$
|
|
16085
|
+
request?: SecondParameter$g<typeof customFetch>;
|
|
16057
16086
|
}) => {
|
|
16058
16087
|
data: ListExtractorsEnvelope | undefined;
|
|
16059
16088
|
error: TError | undefined;
|
|
@@ -16069,16 +16098,16 @@ declare const getGetExtractorUrl: (id: string) => string;
|
|
|
16069
16098
|
*/
|
|
16070
16099
|
declare const getExtractor: (id: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetExtractorEnvelope>;
|
|
16071
16100
|
declare const getGetExtractorKey: (id: string) => readonly [`/v1/extractors/${string}`];
|
|
16072
|
-
type GetExtractorQueryResult = NonNullable<Awaited$
|
|
16101
|
+
type GetExtractorQueryResult = NonNullable<Awaited$g<ReturnType<typeof getExtractor>>>;
|
|
16073
16102
|
/**
|
|
16074
16103
|
* @summary Get extractor
|
|
16075
16104
|
*/
|
|
16076
16105
|
declare const useGetExtractor: <TError = ErrorType<ErrorResponse>>(id: string, options?: {
|
|
16077
|
-
swr?: SWRConfiguration<Awaited$
|
|
16106
|
+
swr?: SWRConfiguration<Awaited$g<ReturnType<typeof getExtractor>>, TError> & {
|
|
16078
16107
|
swrKey?: Key;
|
|
16079
16108
|
enabled?: boolean;
|
|
16080
16109
|
};
|
|
16081
|
-
request?: SecondParameter$
|
|
16110
|
+
request?: SecondParameter$g<typeof customFetch>;
|
|
16082
16111
|
}) => {
|
|
16083
16112
|
data: GetExtractorEnvelope | undefined;
|
|
16084
16113
|
error: TError | undefined;
|
|
@@ -16093,19 +16122,19 @@ declare const getUpdateExtractorUrl: (id: string) => string;
|
|
|
16093
16122
|
* @summary Update extractor
|
|
16094
16123
|
*/
|
|
16095
16124
|
declare const updateExtractor: (id: string, updateExtractorBody?: UpdateExtractorBody, options?: Parameters<typeof customFetch>[1]) => Promise<UpdateExtractorEnvelope>;
|
|
16096
|
-
declare const getUpdateExtractorMutationFetcher: (id: string, options?: SecondParameter$
|
|
16125
|
+
declare const getUpdateExtractorMutationFetcher: (id: string, options?: SecondParameter$g<typeof customFetch>) => (_: Key, { arg }: {
|
|
16097
16126
|
arg: UpdateExtractorBody | undefined;
|
|
16098
16127
|
}) => Promise<UpdateExtractorEnvelope>;
|
|
16099
16128
|
declare const getUpdateExtractorMutationKey: (id: string) => readonly [`/v1/extractors/${string}`];
|
|
16100
|
-
type UpdateExtractorMutationResult = NonNullable<Awaited$
|
|
16129
|
+
type UpdateExtractorMutationResult = NonNullable<Awaited$g<ReturnType<typeof updateExtractor>>>;
|
|
16101
16130
|
/**
|
|
16102
16131
|
* @summary Update extractor
|
|
16103
16132
|
*/
|
|
16104
16133
|
declare const useUpdateExtractor: <TError = ErrorType<ErrorResponse>>(id: string, options?: {
|
|
16105
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
16134
|
+
swr?: SWRMutationConfiguration<Awaited$g<ReturnType<typeof updateExtractor>>, TError, Key, UpdateExtractorBody | undefined, Awaited$g<ReturnType<typeof updateExtractor>>> & {
|
|
16106
16135
|
swrKey?: string;
|
|
16107
16136
|
};
|
|
16108
|
-
request?: SecondParameter$
|
|
16137
|
+
request?: SecondParameter$g<typeof customFetch>;
|
|
16109
16138
|
}) => {
|
|
16110
16139
|
isMutating: boolean;
|
|
16111
16140
|
trigger: swr_mutation.TriggerWithOptionsArgs<UpdateExtractorEnvelope, TError, string | readonly [`/v1/extractors/${string}`], UpdateExtractorBody | undefined>;
|
|
@@ -16120,19 +16149,19 @@ declare const getDeleteExtractorUrl: (id: string) => string;
|
|
|
16120
16149
|
* @summary Delete extractor
|
|
16121
16150
|
*/
|
|
16122
16151
|
declare const deleteExtractor: (id: string, options?: Parameters<typeof customFetch>[1]) => Promise<DeleteExtractorEnvelope>;
|
|
16123
|
-
declare const getDeleteExtractorMutationFetcher: (id: string, options?: SecondParameter$
|
|
16152
|
+
declare const getDeleteExtractorMutationFetcher: (id: string, options?: SecondParameter$g<typeof customFetch>) => (_: Key, __: {
|
|
16124
16153
|
arg: Arguments;
|
|
16125
16154
|
}) => Promise<DeleteExtractorEnvelope>;
|
|
16126
16155
|
declare const getDeleteExtractorMutationKey: (id: string) => readonly [`/v1/extractors/${string}`];
|
|
16127
|
-
type DeleteExtractorMutationResult = NonNullable<Awaited$
|
|
16156
|
+
type DeleteExtractorMutationResult = NonNullable<Awaited$g<ReturnType<typeof deleteExtractor>>>;
|
|
16128
16157
|
/**
|
|
16129
16158
|
* @summary Delete extractor
|
|
16130
16159
|
*/
|
|
16131
16160
|
declare const useDeleteExtractor: <TError = ErrorType<ErrorResponse>>(id: string, options?: {
|
|
16132
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
16161
|
+
swr?: SWRMutationConfiguration<Awaited$g<ReturnType<typeof deleteExtractor>>, TError, Key, Arguments, Awaited$g<ReturnType<typeof deleteExtractor>>> & {
|
|
16133
16162
|
swrKey?: string;
|
|
16134
16163
|
};
|
|
16135
|
-
request?: SecondParameter$
|
|
16164
|
+
request?: SecondParameter$g<typeof customFetch>;
|
|
16136
16165
|
}) => {
|
|
16137
16166
|
isMutating: boolean;
|
|
16138
16167
|
trigger: swr_mutation.TriggerWithOptionsArgs<DeleteExtractorEnvelope, TError, string | readonly [`/v1/extractors/${string}`], Arguments>;
|
|
@@ -16142,9 +16171,9 @@ declare const useDeleteExtractor: <TError = ErrorType<ErrorResponse>>(id: string
|
|
|
16142
16171
|
swrKey: string | readonly [`/v1/extractors/${string}`];
|
|
16143
16172
|
};
|
|
16144
16173
|
|
|
16145
|
-
type AwaitedInput$
|
|
16146
|
-
type Awaited$
|
|
16147
|
-
type SecondParameter$
|
|
16174
|
+
type AwaitedInput$f<T> = PromiseLike<T> | T;
|
|
16175
|
+
type Awaited$f<O> = O extends AwaitedInput$f<infer T> ? T : never;
|
|
16176
|
+
type SecondParameter$f<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
16148
16177
|
declare const getGetExtractUrl: (id: string) => string;
|
|
16149
16178
|
/**
|
|
16150
16179
|
* Retrieve a single extract by ID, including the extraction result data.
|
|
@@ -16152,16 +16181,16 @@ declare const getGetExtractUrl: (id: string) => string;
|
|
|
16152
16181
|
*/
|
|
16153
16182
|
declare const getExtract: (id: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetExtractEnvelope>;
|
|
16154
16183
|
declare const getGetExtractKey: (id: string) => readonly [`/v1/extracts/${string}`];
|
|
16155
|
-
type GetExtractQueryResult = NonNullable<Awaited$
|
|
16184
|
+
type GetExtractQueryResult = NonNullable<Awaited$f<ReturnType<typeof getExtract>>>;
|
|
16156
16185
|
/**
|
|
16157
16186
|
* @summary Get extract
|
|
16158
16187
|
*/
|
|
16159
16188
|
declare const useGetExtract: <TError = ErrorType<ErrorResponse>>(id: string, options?: {
|
|
16160
|
-
swr?: SWRConfiguration<Awaited$
|
|
16189
|
+
swr?: SWRConfiguration<Awaited$f<ReturnType<typeof getExtract>>, TError> & {
|
|
16161
16190
|
swrKey?: Key;
|
|
16162
16191
|
enabled?: boolean;
|
|
16163
16192
|
};
|
|
16164
|
-
request?: SecondParameter$
|
|
16193
|
+
request?: SecondParameter$f<typeof customFetch>;
|
|
16165
16194
|
}) => {
|
|
16166
16195
|
data: GetExtractEnvelope | undefined;
|
|
16167
16196
|
error: TError | undefined;
|
|
@@ -16177,16 +16206,16 @@ declare const getGetExtractCitationsUrl: (id: string) => string;
|
|
|
16177
16206
|
*/
|
|
16178
16207
|
declare const getExtractCitations: (id: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetExtractCitationsEnvelope>;
|
|
16179
16208
|
declare const getGetExtractCitationsKey: (id: string) => readonly [`/v1/extracts/${string}/citations`];
|
|
16180
|
-
type GetExtractCitationsQueryResult = NonNullable<Awaited$
|
|
16209
|
+
type GetExtractCitationsQueryResult = NonNullable<Awaited$f<ReturnType<typeof getExtractCitations>>>;
|
|
16181
16210
|
/**
|
|
16182
16211
|
* @summary Get extract citations
|
|
16183
16212
|
*/
|
|
16184
16213
|
declare const useGetExtractCitations: <TError = ErrorType<ErrorResponse>>(id: string, options?: {
|
|
16185
|
-
swr?: SWRConfiguration<Awaited$
|
|
16214
|
+
swr?: SWRConfiguration<Awaited$f<ReturnType<typeof getExtractCitations>>, TError> & {
|
|
16186
16215
|
swrKey?: Key;
|
|
16187
16216
|
enabled?: boolean;
|
|
16188
16217
|
};
|
|
16189
|
-
request?: SecondParameter$
|
|
16218
|
+
request?: SecondParameter$f<typeof customFetch>;
|
|
16190
16219
|
}) => {
|
|
16191
16220
|
data: GetExtractCitationsEnvelope | undefined;
|
|
16192
16221
|
error: TError | undefined;
|
|
@@ -16209,16 +16238,16 @@ declare const getListExtractsUrl: (params?: ListExtractsParams) => string;
|
|
|
16209
16238
|
*/
|
|
16210
16239
|
declare const listExtracts: (params?: ListExtractsParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListExtractsEnvelope>;
|
|
16211
16240
|
declare const getListExtractsKey: (params?: ListExtractsParams) => readonly ["/v1/extracts", ...ListExtractsParams[]];
|
|
16212
|
-
type ListExtractsQueryResult = NonNullable<Awaited$
|
|
16241
|
+
type ListExtractsQueryResult = NonNullable<Awaited$f<ReturnType<typeof listExtracts>>>;
|
|
16213
16242
|
/**
|
|
16214
16243
|
* @summary List extracts
|
|
16215
16244
|
*/
|
|
16216
16245
|
declare const useListExtracts: <TError = ErrorType<ErrorResponse>>(params?: ListExtractsParams, options?: {
|
|
16217
|
-
swr?: SWRConfiguration<Awaited$
|
|
16246
|
+
swr?: SWRConfiguration<Awaited$f<ReturnType<typeof listExtracts>>, TError> & {
|
|
16218
16247
|
swrKey?: Key;
|
|
16219
16248
|
enabled?: boolean;
|
|
16220
16249
|
};
|
|
16221
|
-
request?: SecondParameter$
|
|
16250
|
+
request?: SecondParameter$f<typeof customFetch>;
|
|
16222
16251
|
}) => {
|
|
16223
16252
|
data: ListExtractsEnvelope | undefined;
|
|
16224
16253
|
error: TError | undefined;
|
|
@@ -16228,9 +16257,9 @@ declare const useListExtracts: <TError = ErrorType<ErrorResponse>>(params?: List
|
|
|
16228
16257
|
swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => swr.Arguments);
|
|
16229
16258
|
};
|
|
16230
16259
|
|
|
16231
|
-
type AwaitedInput$
|
|
16232
|
-
type Awaited$
|
|
16233
|
-
type SecondParameter$
|
|
16260
|
+
type AwaitedInput$e<T> = PromiseLike<T> | T;
|
|
16261
|
+
type Awaited$e<O> = O extends AwaitedInput$e<infer T> ? T : never;
|
|
16262
|
+
type SecondParameter$e<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
16234
16263
|
declare const getCheckInboxAvailabilityUrl: (params: CheckInboxAvailabilityParams) => string;
|
|
16235
16264
|
/**
|
|
16236
16265
|
* Check whether a given email username is available for creating a new inbox.
|
|
@@ -16241,16 +16270,16 @@ declare const getCheckInboxAvailabilityUrl: (params: CheckInboxAvailabilityParam
|
|
|
16241
16270
|
*/
|
|
16242
16271
|
declare const checkInboxAvailability: (params: CheckInboxAvailabilityParams, options?: Parameters<typeof customFetch>[1]) => Promise<CheckInboxAvailabilityEnvelope>;
|
|
16243
16272
|
declare const getCheckInboxAvailabilityKey: (params: CheckInboxAvailabilityParams) => readonly ["/v1/inboxes/availability", ...CheckInboxAvailabilityParams[]];
|
|
16244
|
-
type CheckInboxAvailabilityQueryResult = NonNullable<Awaited$
|
|
16273
|
+
type CheckInboxAvailabilityQueryResult = NonNullable<Awaited$e<ReturnType<typeof checkInboxAvailability>>>;
|
|
16245
16274
|
/**
|
|
16246
16275
|
* @summary Check email username availability
|
|
16247
16276
|
*/
|
|
16248
16277
|
declare const useCheckInboxAvailability: <TError = ErrorType<ErrorResponse>>(params: CheckInboxAvailabilityParams, options?: {
|
|
16249
|
-
swr?: SWRConfiguration<Awaited$
|
|
16278
|
+
swr?: SWRConfiguration<Awaited$e<ReturnType<typeof checkInboxAvailability>>, TError> & {
|
|
16250
16279
|
swrKey?: Key;
|
|
16251
16280
|
enabled?: boolean;
|
|
16252
16281
|
};
|
|
16253
|
-
request?: SecondParameter$
|
|
16282
|
+
request?: SecondParameter$e<typeof customFetch>;
|
|
16254
16283
|
}) => {
|
|
16255
16284
|
data: CheckInboxAvailabilityEnvelope | undefined;
|
|
16256
16285
|
error: TError | undefined;
|
|
@@ -16272,19 +16301,19 @@ declare const getCreateInboxUrl: () => string;
|
|
|
16272
16301
|
* @summary Create inbox
|
|
16273
16302
|
*/
|
|
16274
16303
|
declare const createInbox: (createInboxBody?: CreateInboxBody, options?: Parameters<typeof customFetch>[1]) => Promise<CreateInboxEnvelope>;
|
|
16275
|
-
declare const getCreateInboxMutationFetcher: (options?: SecondParameter$
|
|
16304
|
+
declare const getCreateInboxMutationFetcher: (options?: SecondParameter$e<typeof customFetch>) => (_: Key, { arg }: {
|
|
16276
16305
|
arg: CreateInboxBody | undefined;
|
|
16277
16306
|
}) => Promise<CreateInboxEnvelope>;
|
|
16278
16307
|
declare const getCreateInboxMutationKey: () => readonly ["/v1/inboxes"];
|
|
16279
|
-
type CreateInboxMutationResult = NonNullable<Awaited$
|
|
16308
|
+
type CreateInboxMutationResult = NonNullable<Awaited$e<ReturnType<typeof createInbox>>>;
|
|
16280
16309
|
/**
|
|
16281
16310
|
* @summary Create inbox
|
|
16282
16311
|
*/
|
|
16283
16312
|
declare const useCreateInbox: <TError = ErrorType<ErrorResponse>>(options?: {
|
|
16284
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
16313
|
+
swr?: SWRMutationConfiguration<Awaited$e<ReturnType<typeof createInbox>>, TError, Key, CreateInboxBody | undefined, Awaited$e<ReturnType<typeof createInbox>>> & {
|
|
16285
16314
|
swrKey?: string;
|
|
16286
16315
|
};
|
|
16287
|
-
request?: SecondParameter$
|
|
16316
|
+
request?: SecondParameter$e<typeof customFetch>;
|
|
16288
16317
|
}) => {
|
|
16289
16318
|
isMutating: boolean;
|
|
16290
16319
|
trigger: swr_mutation.TriggerWithOptionsArgs<CreateInboxEnvelope, TError, string | readonly ["/v1/inboxes"], CreateInboxBody | undefined>;
|
|
@@ -16303,16 +16332,16 @@ declare const getListInboxesUrl: (params?: ListInboxesParams) => string;
|
|
|
16303
16332
|
*/
|
|
16304
16333
|
declare const listInboxes: (params?: ListInboxesParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListInboxesEnvelope>;
|
|
16305
16334
|
declare const getListInboxesKey: (params?: ListInboxesParams) => readonly ["/v1/inboxes", ...ListInboxesParams[]];
|
|
16306
|
-
type ListInboxesQueryResult = NonNullable<Awaited$
|
|
16335
|
+
type ListInboxesQueryResult = NonNullable<Awaited$e<ReturnType<typeof listInboxes>>>;
|
|
16307
16336
|
/**
|
|
16308
16337
|
* @summary List inboxes
|
|
16309
16338
|
*/
|
|
16310
16339
|
declare const useListInboxes: <TError = ErrorType<ErrorResponse>>(params?: ListInboxesParams, options?: {
|
|
16311
|
-
swr?: SWRConfiguration<Awaited$
|
|
16340
|
+
swr?: SWRConfiguration<Awaited$e<ReturnType<typeof listInboxes>>, TError> & {
|
|
16312
16341
|
swrKey?: Key;
|
|
16313
16342
|
enabled?: boolean;
|
|
16314
16343
|
};
|
|
16315
|
-
request?: SecondParameter$
|
|
16344
|
+
request?: SecondParameter$e<typeof customFetch>;
|
|
16316
16345
|
}) => {
|
|
16317
16346
|
data: ListInboxesEnvelope | undefined;
|
|
16318
16347
|
error: TError | undefined;
|
|
@@ -16330,19 +16359,19 @@ declare const getUpdateInboxUrl: (inboxId: string) => string;
|
|
|
16330
16359
|
* @summary Update inbox
|
|
16331
16360
|
*/
|
|
16332
16361
|
declare const updateInbox: (inboxId: string, updateInboxBody?: UpdateInboxBody, options?: Parameters<typeof customFetch>[1]) => Promise<UpdateInboxEnvelope>;
|
|
16333
|
-
declare const getUpdateInboxMutationFetcher: (inboxId: string, options?: SecondParameter$
|
|
16362
|
+
declare const getUpdateInboxMutationFetcher: (inboxId: string, options?: SecondParameter$e<typeof customFetch>) => (_: Key, { arg }: {
|
|
16334
16363
|
arg: UpdateInboxBody | undefined;
|
|
16335
16364
|
}) => Promise<UpdateInboxEnvelope>;
|
|
16336
16365
|
declare const getUpdateInboxMutationKey: (inboxId: string) => readonly [`/v1/inboxes/${string}`];
|
|
16337
|
-
type UpdateInboxMutationResult = NonNullable<Awaited$
|
|
16366
|
+
type UpdateInboxMutationResult = NonNullable<Awaited$e<ReturnType<typeof updateInbox>>>;
|
|
16338
16367
|
/**
|
|
16339
16368
|
* @summary Update inbox
|
|
16340
16369
|
*/
|
|
16341
16370
|
declare const useUpdateInbox: <TError = ErrorType<ErrorResponse>>(inboxId: string, options?: {
|
|
16342
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
16371
|
+
swr?: SWRMutationConfiguration<Awaited$e<ReturnType<typeof updateInbox>>, TError, Key, UpdateInboxBody | undefined, Awaited$e<ReturnType<typeof updateInbox>>> & {
|
|
16343
16372
|
swrKey?: string;
|
|
16344
16373
|
};
|
|
16345
|
-
request?: SecondParameter$
|
|
16374
|
+
request?: SecondParameter$e<typeof customFetch>;
|
|
16346
16375
|
}) => {
|
|
16347
16376
|
isMutating: boolean;
|
|
16348
16377
|
trigger: swr_mutation.TriggerWithOptionsArgs<UpdateInboxEnvelope, TError, string | readonly [`/v1/inboxes/${string}`], UpdateInboxBody | undefined>;
|
|
@@ -16357,19 +16386,19 @@ declare const getDeleteInboxUrl: (inboxId: string) => string;
|
|
|
16357
16386
|
* @summary Delete inbox
|
|
16358
16387
|
*/
|
|
16359
16388
|
declare const deleteInbox: (inboxId: string, options?: Parameters<typeof customFetch>[1]) => Promise<DeleteInboxEnvelope>;
|
|
16360
|
-
declare const getDeleteInboxMutationFetcher: (inboxId: string, options?: SecondParameter$
|
|
16389
|
+
declare const getDeleteInboxMutationFetcher: (inboxId: string, options?: SecondParameter$e<typeof customFetch>) => (_: Key, __: {
|
|
16361
16390
|
arg: Arguments;
|
|
16362
16391
|
}) => Promise<DeleteInboxEnvelope>;
|
|
16363
16392
|
declare const getDeleteInboxMutationKey: (inboxId: string) => readonly [`/v1/inboxes/${string}`];
|
|
16364
|
-
type DeleteInboxMutationResult = NonNullable<Awaited$
|
|
16393
|
+
type DeleteInboxMutationResult = NonNullable<Awaited$e<ReturnType<typeof deleteInbox>>>;
|
|
16365
16394
|
/**
|
|
16366
16395
|
* @summary Delete inbox
|
|
16367
16396
|
*/
|
|
16368
16397
|
declare const useDeleteInbox: <TError = ErrorType<ErrorResponse>>(inboxId: string, options?: {
|
|
16369
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
16398
|
+
swr?: SWRMutationConfiguration<Awaited$e<ReturnType<typeof deleteInbox>>, TError, Key, Arguments, Awaited$e<ReturnType<typeof deleteInbox>>> & {
|
|
16370
16399
|
swrKey?: string;
|
|
16371
16400
|
};
|
|
16372
|
-
request?: SecondParameter$
|
|
16401
|
+
request?: SecondParameter$e<typeof customFetch>;
|
|
16373
16402
|
}) => {
|
|
16374
16403
|
isMutating: boolean;
|
|
16375
16404
|
trigger: swr_mutation.TriggerWithOptionsArgs<DeleteInboxEnvelope, TError, string | readonly [`/v1/inboxes/${string}`], Arguments>;
|
|
@@ -16379,9 +16408,9 @@ declare const useDeleteInbox: <TError = ErrorType<ErrorResponse>>(inboxId: strin
|
|
|
16379
16408
|
swrKey: string | readonly [`/v1/inboxes/${string}`];
|
|
16380
16409
|
};
|
|
16381
16410
|
|
|
16382
|
-
type AwaitedInput$
|
|
16383
|
-
type Awaited$
|
|
16384
|
-
type SecondParameter$
|
|
16411
|
+
type AwaitedInput$d<T> = PromiseLike<T> | T;
|
|
16412
|
+
type Awaited$d<O> = O extends AwaitedInput$d<infer T> ? T : never;
|
|
16413
|
+
type SecondParameter$d<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
16385
16414
|
declare const getCreateInformationRequestUrl: () => string;
|
|
16386
16415
|
/**
|
|
16387
16416
|
* Ask a person for a specific fact you cannot establish yourself.
|
|
@@ -16396,19 +16425,19 @@ declare const getCreateInformationRequestUrl: () => string;
|
|
|
16396
16425
|
* @summary Ask for information
|
|
16397
16426
|
*/
|
|
16398
16427
|
declare const createInformationRequest: (createInformationRequestBody?: CreateInformationRequestBody, options?: Parameters<typeof customFetch>[1]) => Promise<CreateInformationRequestEnvelope>;
|
|
16399
|
-
declare const getCreateInformationRequestMutationFetcher: (options?: SecondParameter$
|
|
16428
|
+
declare const getCreateInformationRequestMutationFetcher: (options?: SecondParameter$d<typeof customFetch>) => (_: Key, { arg }: {
|
|
16400
16429
|
arg: CreateInformationRequestBody | undefined;
|
|
16401
16430
|
}) => Promise<CreateInformationRequestEnvelope>;
|
|
16402
16431
|
declare const getCreateInformationRequestMutationKey: () => readonly ["/v1/information-requests"];
|
|
16403
|
-
type CreateInformationRequestMutationResult = NonNullable<Awaited$
|
|
16432
|
+
type CreateInformationRequestMutationResult = NonNullable<Awaited$d<ReturnType<typeof createInformationRequest>>>;
|
|
16404
16433
|
/**
|
|
16405
16434
|
* @summary Ask for information
|
|
16406
16435
|
*/
|
|
16407
16436
|
declare const useCreateInformationRequest: <TError = ErrorType<ErrorResponse>>(options?: {
|
|
16408
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
16437
|
+
swr?: SWRMutationConfiguration<Awaited$d<ReturnType<typeof createInformationRequest>>, TError, Key, CreateInformationRequestBody | undefined, Awaited$d<ReturnType<typeof createInformationRequest>>> & {
|
|
16409
16438
|
swrKey?: string;
|
|
16410
16439
|
};
|
|
16411
|
-
request?: SecondParameter$
|
|
16440
|
+
request?: SecondParameter$d<typeof customFetch>;
|
|
16412
16441
|
}) => {
|
|
16413
16442
|
isMutating: boolean;
|
|
16414
16443
|
trigger: swr_mutation.TriggerWithOptionsArgs<CreateInformationRequestEnvelope, TError, string | readonly ["/v1/information-requests"], CreateInformationRequestBody | undefined>;
|
|
@@ -16426,16 +16455,16 @@ declare const getListInformationRequestsUrl: (params?: ListInformationRequestsPa
|
|
|
16426
16455
|
*/
|
|
16427
16456
|
declare const listInformationRequests: (params?: ListInformationRequestsParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListInformationRequestsEnvelope>;
|
|
16428
16457
|
declare const getListInformationRequestsKey: (params?: ListInformationRequestsParams) => readonly ["/v1/information-requests", ...ListInformationRequestsParams[]];
|
|
16429
|
-
type ListInformationRequestsQueryResult = NonNullable<Awaited$
|
|
16458
|
+
type ListInformationRequestsQueryResult = NonNullable<Awaited$d<ReturnType<typeof listInformationRequests>>>;
|
|
16430
16459
|
/**
|
|
16431
16460
|
* @summary List information requests
|
|
16432
16461
|
*/
|
|
16433
16462
|
declare const useListInformationRequests: <TError = ErrorType<ErrorResponse>>(params?: ListInformationRequestsParams, options?: {
|
|
16434
|
-
swr?: SWRConfiguration<Awaited$
|
|
16463
|
+
swr?: SWRConfiguration<Awaited$d<ReturnType<typeof listInformationRequests>>, TError> & {
|
|
16435
16464
|
swrKey?: Key;
|
|
16436
16465
|
enabled?: boolean;
|
|
16437
16466
|
};
|
|
16438
|
-
request?: SecondParameter$
|
|
16467
|
+
request?: SecondParameter$d<typeof customFetch>;
|
|
16439
16468
|
}) => {
|
|
16440
16469
|
data: ListInformationRequestsEnvelope | undefined;
|
|
16441
16470
|
error: TError | undefined;
|
|
@@ -16451,16 +16480,16 @@ declare const getGetInformationRequestUrl: (informationRequestId: string) => str
|
|
|
16451
16480
|
*/
|
|
16452
16481
|
declare const getInformationRequest: (informationRequestId: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetInformationRequestEnvelope>;
|
|
16453
16482
|
declare const getGetInformationRequestKey: (informationRequestId: string) => readonly [`/v1/information-requests/${string}`];
|
|
16454
|
-
type GetInformationRequestQueryResult = NonNullable<Awaited$
|
|
16483
|
+
type GetInformationRequestQueryResult = NonNullable<Awaited$d<ReturnType<typeof getInformationRequest>>>;
|
|
16455
16484
|
/**
|
|
16456
16485
|
* @summary Get information request
|
|
16457
16486
|
*/
|
|
16458
16487
|
declare const useGetInformationRequest: <TError = ErrorType<ErrorResponse>>(informationRequestId: string, options?: {
|
|
16459
|
-
swr?: SWRConfiguration<Awaited$
|
|
16488
|
+
swr?: SWRConfiguration<Awaited$d<ReturnType<typeof getInformationRequest>>, TError> & {
|
|
16460
16489
|
swrKey?: Key;
|
|
16461
16490
|
enabled?: boolean;
|
|
16462
16491
|
};
|
|
16463
|
-
request?: SecondParameter$
|
|
16492
|
+
request?: SecondParameter$d<typeof customFetch>;
|
|
16464
16493
|
}) => {
|
|
16465
16494
|
data: GetInformationRequestEnvelope | undefined;
|
|
16466
16495
|
error: TError | undefined;
|
|
@@ -16475,19 +16504,19 @@ declare const getResolveInformationRequestUrl: (informationRequestId: string) =>
|
|
|
16475
16504
|
* @summary Resolve information request
|
|
16476
16505
|
*/
|
|
16477
16506
|
declare const resolveInformationRequest: (informationRequestId: string, resolveInformationRequestBody?: ResolveInformationRequestBody, options?: Parameters<typeof customFetch>[1]) => Promise<ResolveInformationRequestEnvelope>;
|
|
16478
|
-
declare const getResolveInformationRequestMutationFetcher: (informationRequestId: string, options?: SecondParameter$
|
|
16507
|
+
declare const getResolveInformationRequestMutationFetcher: (informationRequestId: string, options?: SecondParameter$d<typeof customFetch>) => (_: Key, { arg }: {
|
|
16479
16508
|
arg: ResolveInformationRequestBody | undefined;
|
|
16480
16509
|
}) => Promise<ResolveInformationRequestEnvelope>;
|
|
16481
16510
|
declare const getResolveInformationRequestMutationKey: (informationRequestId: string) => readonly [`/v1/information-requests/${string}/resolve`];
|
|
16482
|
-
type ResolveInformationRequestMutationResult = NonNullable<Awaited$
|
|
16511
|
+
type ResolveInformationRequestMutationResult = NonNullable<Awaited$d<ReturnType<typeof resolveInformationRequest>>>;
|
|
16483
16512
|
/**
|
|
16484
16513
|
* @summary Resolve information request
|
|
16485
16514
|
*/
|
|
16486
16515
|
declare const useResolveInformationRequest: <TError = ErrorType<ErrorResponse>>(informationRequestId: string, options?: {
|
|
16487
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
16516
|
+
swr?: SWRMutationConfiguration<Awaited$d<ReturnType<typeof resolveInformationRequest>>, TError, Key, ResolveInformationRequestBody | undefined, Awaited$d<ReturnType<typeof resolveInformationRequest>>> & {
|
|
16488
16517
|
swrKey?: string;
|
|
16489
16518
|
};
|
|
16490
|
-
request?: SecondParameter$
|
|
16519
|
+
request?: SecondParameter$d<typeof customFetch>;
|
|
16491
16520
|
}) => {
|
|
16492
16521
|
isMutating: boolean;
|
|
16493
16522
|
trigger: swr_mutation.TriggerWithOptionsArgs<ResolveInformationRequestEnvelope, TError, string | readonly [`/v1/information-requests/${string}/resolve`], ResolveInformationRequestBody | undefined>;
|
|
@@ -16497,9 +16526,9 @@ declare const useResolveInformationRequest: <TError = ErrorType<ErrorResponse>>(
|
|
|
16497
16526
|
swrKey: string | readonly [`/v1/information-requests/${string}/resolve`];
|
|
16498
16527
|
};
|
|
16499
16528
|
|
|
16500
|
-
type AwaitedInput$
|
|
16501
|
-
type Awaited$
|
|
16502
|
-
type SecondParameter$
|
|
16529
|
+
type AwaitedInput$c<T> = PromiseLike<T> | T;
|
|
16530
|
+
type Awaited$c<O> = O extends AwaitedInput$c<infer T> ? T : never;
|
|
16531
|
+
type SecondParameter$c<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
16503
16532
|
declare const getScheduleJobUrl: (voiceAgentId: string) => string;
|
|
16504
16533
|
/**
|
|
16505
16534
|
* **Deprecated:** use `POST /v1/calls`, which returns the call itself.
|
|
@@ -16522,20 +16551,20 @@ declare const getScheduleJobUrl: (voiceAgentId: string) => string;
|
|
|
16522
16551
|
* @summary Schedule an outbound job
|
|
16523
16552
|
*/
|
|
16524
16553
|
declare const scheduleJob: (voiceAgentId: string, scheduleJobBody?: ScheduleJobBody, options?: Parameters<typeof customFetch>[1]) => Promise<ScheduleJobEnvelope>;
|
|
16525
|
-
declare const getScheduleJobMutationFetcher: (voiceAgentId: string, options?: SecondParameter$
|
|
16554
|
+
declare const getScheduleJobMutationFetcher: (voiceAgentId: string, options?: SecondParameter$c<typeof customFetch>) => (_: Key, { arg }: {
|
|
16526
16555
|
arg: ScheduleJobBody | undefined;
|
|
16527
16556
|
}) => Promise<ScheduleJobEnvelope>;
|
|
16528
16557
|
declare const getScheduleJobMutationKey: (voiceAgentId: string) => readonly [`/v1/voice-agents/${string}/jobs`];
|
|
16529
|
-
type ScheduleJobMutationResult = NonNullable<Awaited$
|
|
16558
|
+
type ScheduleJobMutationResult = NonNullable<Awaited$c<ReturnType<typeof scheduleJob>>>;
|
|
16530
16559
|
/**
|
|
16531
16560
|
* @deprecated
|
|
16532
16561
|
* @summary Schedule an outbound job
|
|
16533
16562
|
*/
|
|
16534
16563
|
declare const useScheduleJob: <TError = ErrorType<ErrorResponse>>(voiceAgentId: string, options?: {
|
|
16535
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
16564
|
+
swr?: SWRMutationConfiguration<Awaited$c<ReturnType<typeof scheduleJob>>, TError, Key, ScheduleJobBody | undefined, Awaited$c<ReturnType<typeof scheduleJob>>> & {
|
|
16536
16565
|
swrKey?: string;
|
|
16537
16566
|
};
|
|
16538
|
-
request?: SecondParameter$
|
|
16567
|
+
request?: SecondParameter$c<typeof customFetch>;
|
|
16539
16568
|
}) => {
|
|
16540
16569
|
isMutating: boolean;
|
|
16541
16570
|
trigger: swr_mutation.TriggerWithOptionsArgs<ScheduleJobEnvelope, TError, string | readonly [`/v1/voice-agents/${string}/jobs`], ScheduleJobBody | undefined>;
|
|
@@ -16562,17 +16591,17 @@ declare const getListJobsUrl: (params: ListJobsParams) => string;
|
|
|
16562
16591
|
*/
|
|
16563
16592
|
declare const listJobs: (params: ListJobsParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListJobsEnvelope>;
|
|
16564
16593
|
declare const getListJobsKey: (params: ListJobsParams) => readonly ["/v1/voice-agents/jobs", ...ListJobsParams[]];
|
|
16565
|
-
type ListJobsQueryResult = NonNullable<Awaited$
|
|
16594
|
+
type ListJobsQueryResult = NonNullable<Awaited$c<ReturnType<typeof listJobs>>>;
|
|
16566
16595
|
/**
|
|
16567
16596
|
* @deprecated
|
|
16568
16597
|
* @summary List outbound jobs
|
|
16569
16598
|
*/
|
|
16570
16599
|
declare const useListJobs: <TError = ErrorType<ErrorResponse>>(params: ListJobsParams, options?: {
|
|
16571
|
-
swr?: SWRConfiguration<Awaited$
|
|
16600
|
+
swr?: SWRConfiguration<Awaited$c<ReturnType<typeof listJobs>>, TError> & {
|
|
16572
16601
|
swrKey?: Key;
|
|
16573
16602
|
enabled?: boolean;
|
|
16574
16603
|
};
|
|
16575
|
-
request?: SecondParameter$
|
|
16604
|
+
request?: SecondParameter$c<typeof customFetch>;
|
|
16576
16605
|
}) => {
|
|
16577
16606
|
data: ListJobsEnvelope | undefined;
|
|
16578
16607
|
error: TError | undefined;
|
|
@@ -16593,20 +16622,20 @@ declare const getCancelJobUrl: (jobId: string) => string;
|
|
|
16593
16622
|
* @summary Cancel an outbound job
|
|
16594
16623
|
*/
|
|
16595
16624
|
declare const cancelJob: (jobId: string, options?: Parameters<typeof customFetch>[1]) => Promise<CancelJobEnvelope>;
|
|
16596
|
-
declare const getCancelJobMutationFetcher: (jobId: string, options?: SecondParameter$
|
|
16625
|
+
declare const getCancelJobMutationFetcher: (jobId: string, options?: SecondParameter$c<typeof customFetch>) => (_: Key, __: {
|
|
16597
16626
|
arg: Arguments;
|
|
16598
16627
|
}) => Promise<CancelJobEnvelope>;
|
|
16599
16628
|
declare const getCancelJobMutationKey: (jobId: string) => readonly [`/v1/voice-agents/jobs/${string}/cancel`];
|
|
16600
|
-
type CancelJobMutationResult = NonNullable<Awaited$
|
|
16629
|
+
type CancelJobMutationResult = NonNullable<Awaited$c<ReturnType<typeof cancelJob>>>;
|
|
16601
16630
|
/**
|
|
16602
16631
|
* @deprecated
|
|
16603
16632
|
* @summary Cancel an outbound job
|
|
16604
16633
|
*/
|
|
16605
16634
|
declare const useCancelJob: <TError = ErrorType<ErrorResponse>>(jobId: string, options?: {
|
|
16606
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
16635
|
+
swr?: SWRMutationConfiguration<Awaited$c<ReturnType<typeof cancelJob>>, TError, Key, Arguments, Awaited$c<ReturnType<typeof cancelJob>>> & {
|
|
16607
16636
|
swrKey?: string;
|
|
16608
16637
|
};
|
|
16609
|
-
request?: SecondParameter$
|
|
16638
|
+
request?: SecondParameter$c<typeof customFetch>;
|
|
16610
16639
|
}) => {
|
|
16611
16640
|
isMutating: boolean;
|
|
16612
16641
|
trigger: swr_mutation.TriggerWithOptionsArgs<CancelJobEnvelope, TError, string | readonly [`/v1/voice-agents/jobs/${string}/cancel`], Arguments>;
|
|
@@ -16616,9 +16645,9 @@ declare const useCancelJob: <TError = ErrorType<ErrorResponse>>(jobId: string, o
|
|
|
16616
16645
|
swrKey: string | readonly [`/v1/voice-agents/jobs/${string}/cancel`];
|
|
16617
16646
|
};
|
|
16618
16647
|
|
|
16619
|
-
type AwaitedInput$
|
|
16620
|
-
type Awaited$
|
|
16621
|
-
type SecondParameter$
|
|
16648
|
+
type AwaitedInput$b<T> = PromiseLike<T> | T;
|
|
16649
|
+
type Awaited$b<O> = O extends AwaitedInput$b<infer T> ? T : never;
|
|
16650
|
+
type SecondParameter$b<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
16622
16651
|
declare const getListNotificationsUrl: (params?: ListNotificationsParams) => string;
|
|
16623
16652
|
/**
|
|
16624
16653
|
* List the organization's notifications, newest first.
|
|
@@ -16632,16 +16661,16 @@ declare const getListNotificationsUrl: (params?: ListNotificationsParams) => str
|
|
|
16632
16661
|
*/
|
|
16633
16662
|
declare const listNotifications: (params?: ListNotificationsParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListNotificationsEnvelope>;
|
|
16634
16663
|
declare const getListNotificationsKey: (params?: ListNotificationsParams) => readonly ["/v1/notifications", ...ListNotificationsParams[]];
|
|
16635
|
-
type ListNotificationsQueryResult = NonNullable<Awaited$
|
|
16664
|
+
type ListNotificationsQueryResult = NonNullable<Awaited$b<ReturnType<typeof listNotifications>>>;
|
|
16636
16665
|
/**
|
|
16637
16666
|
* @summary List notifications
|
|
16638
16667
|
*/
|
|
16639
16668
|
declare const useListNotifications: <TError = ErrorType<ErrorResponse>>(params?: ListNotificationsParams, options?: {
|
|
16640
|
-
swr?: SWRConfiguration<Awaited$
|
|
16669
|
+
swr?: SWRConfiguration<Awaited$b<ReturnType<typeof listNotifications>>, TError> & {
|
|
16641
16670
|
swrKey?: Key;
|
|
16642
16671
|
enabled?: boolean;
|
|
16643
16672
|
};
|
|
16644
|
-
request?: SecondParameter$
|
|
16673
|
+
request?: SecondParameter$b<typeof customFetch>;
|
|
16645
16674
|
}) => {
|
|
16646
16675
|
data: ListNotificationsEnvelope | undefined;
|
|
16647
16676
|
error: TError | undefined;
|
|
@@ -16661,16 +16690,16 @@ declare const getGetNotificationUrl: (notificationId: string) => string;
|
|
|
16661
16690
|
*/
|
|
16662
16691
|
declare const getNotification: (notificationId: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetNotificationEnvelope>;
|
|
16663
16692
|
declare const getGetNotificationKey: (notificationId: string) => readonly [`/v1/notifications/${string}`];
|
|
16664
|
-
type GetNotificationQueryResult = NonNullable<Awaited$
|
|
16693
|
+
type GetNotificationQueryResult = NonNullable<Awaited$b<ReturnType<typeof getNotification>>>;
|
|
16665
16694
|
/**
|
|
16666
16695
|
* @summary Get notification
|
|
16667
16696
|
*/
|
|
16668
16697
|
declare const useGetNotification: <TError = ErrorType<ErrorResponse>>(notificationId: string, options?: {
|
|
16669
|
-
swr?: SWRConfiguration<Awaited$
|
|
16698
|
+
swr?: SWRConfiguration<Awaited$b<ReturnType<typeof getNotification>>, TError> & {
|
|
16670
16699
|
swrKey?: Key;
|
|
16671
16700
|
enabled?: boolean;
|
|
16672
16701
|
};
|
|
16673
|
-
request?: SecondParameter$
|
|
16702
|
+
request?: SecondParameter$b<typeof customFetch>;
|
|
16674
16703
|
}) => {
|
|
16675
16704
|
data: GetNotificationEnvelope | undefined;
|
|
16676
16705
|
error: TError | undefined;
|
|
@@ -16680,9 +16709,9 @@ declare const useGetNotification: <TError = ErrorType<ErrorResponse>>(notificati
|
|
|
16680
16709
|
swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => swr.Arguments);
|
|
16681
16710
|
};
|
|
16682
16711
|
|
|
16683
|
-
type AwaitedInput$
|
|
16684
|
-
type Awaited$
|
|
16685
|
-
type SecondParameter$
|
|
16712
|
+
type AwaitedInput$a<T> = PromiseLike<T> | T;
|
|
16713
|
+
type Awaited$a<O> = O extends AwaitedInput$a<infer T> ? T : never;
|
|
16714
|
+
type SecondParameter$a<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
16686
16715
|
declare const getGetProfileUrl: () => string;
|
|
16687
16716
|
/**
|
|
16688
16717
|
* Retrieve the current user's profile information. This endpoint requires a user session and cannot be used with API Keys.
|
|
@@ -16690,16 +16719,16 @@ declare const getGetProfileUrl: () => string;
|
|
|
16690
16719
|
*/
|
|
16691
16720
|
declare const getProfile: (options?: Parameters<typeof customFetch>[1]) => Promise<GetProfileEnvelope>;
|
|
16692
16721
|
declare const getGetProfileKey: () => readonly ["/v1/profile"];
|
|
16693
|
-
type GetProfileQueryResult = NonNullable<Awaited$
|
|
16722
|
+
type GetProfileQueryResult = NonNullable<Awaited$a<ReturnType<typeof getProfile>>>;
|
|
16694
16723
|
/**
|
|
16695
16724
|
* @summary Get profile
|
|
16696
16725
|
*/
|
|
16697
16726
|
declare const useGetProfile: <TError = ErrorType<ErrorResponse>>(options?: {
|
|
16698
|
-
swr?: SWRConfiguration<Awaited$
|
|
16727
|
+
swr?: SWRConfiguration<Awaited$a<ReturnType<typeof getProfile>>, TError> & {
|
|
16699
16728
|
swrKey?: Key;
|
|
16700
16729
|
enabled?: boolean;
|
|
16701
16730
|
};
|
|
16702
|
-
request?: SecondParameter$
|
|
16731
|
+
request?: SecondParameter$a<typeof customFetch>;
|
|
16703
16732
|
}) => {
|
|
16704
16733
|
data: GetProfileEnvelope | undefined;
|
|
16705
16734
|
error: TError | undefined;
|
|
@@ -16709,9 +16738,9 @@ declare const useGetProfile: <TError = ErrorType<ErrorResponse>>(options?: {
|
|
|
16709
16738
|
swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => swr.Arguments);
|
|
16710
16739
|
};
|
|
16711
16740
|
|
|
16712
|
-
type AwaitedInput$
|
|
16713
|
-
type Awaited$
|
|
16714
|
-
type SecondParameter$
|
|
16741
|
+
type AwaitedInput$9<T> = PromiseLike<T> | T;
|
|
16742
|
+
type Awaited$9<O> = O extends AwaitedInput$9<infer T> ? T : never;
|
|
16743
|
+
type SecondParameter$9<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
16715
16744
|
declare const getCreateScheduleUrl: () => string;
|
|
16716
16745
|
/**
|
|
16717
16746
|
* Create a schedule that performs an action, either repeatedly or once.
|
|
@@ -16726,19 +16755,19 @@ declare const getCreateScheduleUrl: () => string;
|
|
|
16726
16755
|
* @summary Create a schedule
|
|
16727
16756
|
*/
|
|
16728
16757
|
declare const createSchedule: (createScheduleBody?: CreateScheduleBody, options?: Parameters<typeof customFetch>[1]) => Promise<CreateScheduleEnvelope>;
|
|
16729
|
-
declare const getCreateScheduleMutationFetcher: (options?: SecondParameter$
|
|
16758
|
+
declare const getCreateScheduleMutationFetcher: (options?: SecondParameter$9<typeof customFetch>) => (_: Key, { arg }: {
|
|
16730
16759
|
arg: CreateScheduleBody | undefined;
|
|
16731
16760
|
}) => Promise<CreateScheduleEnvelope>;
|
|
16732
16761
|
declare const getCreateScheduleMutationKey: () => readonly ["/v1/schedules"];
|
|
16733
|
-
type CreateScheduleMutationResult = NonNullable<Awaited$
|
|
16762
|
+
type CreateScheduleMutationResult = NonNullable<Awaited$9<ReturnType<typeof createSchedule>>>;
|
|
16734
16763
|
/**
|
|
16735
16764
|
* @summary Create a schedule
|
|
16736
16765
|
*/
|
|
16737
16766
|
declare const useCreateSchedule: <TError = ErrorType<ErrorResponse>>(options?: {
|
|
16738
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
16767
|
+
swr?: SWRMutationConfiguration<Awaited$9<ReturnType<typeof createSchedule>>, TError, Key, CreateScheduleBody | undefined, Awaited$9<ReturnType<typeof createSchedule>>> & {
|
|
16739
16768
|
swrKey?: string;
|
|
16740
16769
|
};
|
|
16741
|
-
request?: SecondParameter$
|
|
16770
|
+
request?: SecondParameter$9<typeof customFetch>;
|
|
16742
16771
|
}) => {
|
|
16743
16772
|
isMutating: boolean;
|
|
16744
16773
|
trigger: swr_mutation.TriggerWithOptionsArgs<CreateScheduleEnvelope, TError, string | readonly ["/v1/schedules"], CreateScheduleBody | undefined>;
|
|
@@ -16754,16 +16783,16 @@ declare const getListSchedulesUrl: (params?: ListSchedulesParams) => string;
|
|
|
16754
16783
|
*/
|
|
16755
16784
|
declare const listSchedules: (params?: ListSchedulesParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListSchedulesEnvelope>;
|
|
16756
16785
|
declare const getListSchedulesKey: (params?: ListSchedulesParams) => readonly ["/v1/schedules", ...ListSchedulesParams[]];
|
|
16757
|
-
type ListSchedulesQueryResult = NonNullable<Awaited$
|
|
16786
|
+
type ListSchedulesQueryResult = NonNullable<Awaited$9<ReturnType<typeof listSchedules>>>;
|
|
16758
16787
|
/**
|
|
16759
16788
|
* @summary List schedules
|
|
16760
16789
|
*/
|
|
16761
16790
|
declare const useListSchedules: <TError = ErrorType<ErrorResponse>>(params?: ListSchedulesParams, options?: {
|
|
16762
|
-
swr?: SWRConfiguration<Awaited$
|
|
16791
|
+
swr?: SWRConfiguration<Awaited$9<ReturnType<typeof listSchedules>>, TError> & {
|
|
16763
16792
|
swrKey?: Key;
|
|
16764
16793
|
enabled?: boolean;
|
|
16765
16794
|
};
|
|
16766
|
-
request?: SecondParameter$
|
|
16795
|
+
request?: SecondParameter$9<typeof customFetch>;
|
|
16767
16796
|
}) => {
|
|
16768
16797
|
data: ListSchedulesEnvelope | undefined;
|
|
16769
16798
|
error: TError | undefined;
|
|
@@ -16779,16 +16808,16 @@ declare const getGetScheduleUrl: (scheduleId: string) => string;
|
|
|
16779
16808
|
*/
|
|
16780
16809
|
declare const getSchedule: (scheduleId: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetScheduleEnvelope>;
|
|
16781
16810
|
declare const getGetScheduleKey: (scheduleId: string) => readonly [`/v1/schedules/${string}`];
|
|
16782
|
-
type GetScheduleQueryResult = NonNullable<Awaited$
|
|
16811
|
+
type GetScheduleQueryResult = NonNullable<Awaited$9<ReturnType<typeof getSchedule>>>;
|
|
16783
16812
|
/**
|
|
16784
16813
|
* @summary Get a schedule
|
|
16785
16814
|
*/
|
|
16786
16815
|
declare const useGetSchedule: <TError = ErrorType<ErrorResponse>>(scheduleId: string, options?: {
|
|
16787
|
-
swr?: SWRConfiguration<Awaited$
|
|
16816
|
+
swr?: SWRConfiguration<Awaited$9<ReturnType<typeof getSchedule>>, TError> & {
|
|
16788
16817
|
swrKey?: Key;
|
|
16789
16818
|
enabled?: boolean;
|
|
16790
16819
|
};
|
|
16791
|
-
request?: SecondParameter$
|
|
16820
|
+
request?: SecondParameter$9<typeof customFetch>;
|
|
16792
16821
|
}) => {
|
|
16793
16822
|
data: GetScheduleEnvelope | undefined;
|
|
16794
16823
|
error: TError | undefined;
|
|
@@ -16807,19 +16836,19 @@ declare const getUpdateScheduleUrl: (scheduleId: string) => string;
|
|
|
16807
16836
|
* @summary Update a schedule
|
|
16808
16837
|
*/
|
|
16809
16838
|
declare const updateSchedule: (scheduleId: string, updateScheduleBody?: UpdateScheduleBody, options?: Parameters<typeof customFetch>[1]) => Promise<UpdateScheduleEnvelope>;
|
|
16810
|
-
declare const getUpdateScheduleMutationFetcher: (scheduleId: string, options?: SecondParameter$
|
|
16839
|
+
declare const getUpdateScheduleMutationFetcher: (scheduleId: string, options?: SecondParameter$9<typeof customFetch>) => (_: Key, { arg }: {
|
|
16811
16840
|
arg: UpdateScheduleBody | undefined;
|
|
16812
16841
|
}) => Promise<UpdateScheduleEnvelope>;
|
|
16813
16842
|
declare const getUpdateScheduleMutationKey: (scheduleId: string) => readonly [`/v1/schedules/${string}`];
|
|
16814
|
-
type UpdateScheduleMutationResult = NonNullable<Awaited$
|
|
16843
|
+
type UpdateScheduleMutationResult = NonNullable<Awaited$9<ReturnType<typeof updateSchedule>>>;
|
|
16815
16844
|
/**
|
|
16816
16845
|
* @summary Update a schedule
|
|
16817
16846
|
*/
|
|
16818
16847
|
declare const useUpdateSchedule: <TError = ErrorType<ErrorResponse>>(scheduleId: string, options?: {
|
|
16819
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
16848
|
+
swr?: SWRMutationConfiguration<Awaited$9<ReturnType<typeof updateSchedule>>, TError, Key, UpdateScheduleBody | undefined, Awaited$9<ReturnType<typeof updateSchedule>>> & {
|
|
16820
16849
|
swrKey?: string;
|
|
16821
16850
|
};
|
|
16822
|
-
request?: SecondParameter$
|
|
16851
|
+
request?: SecondParameter$9<typeof customFetch>;
|
|
16823
16852
|
}) => {
|
|
16824
16853
|
isMutating: boolean;
|
|
16825
16854
|
trigger: swr_mutation.TriggerWithOptionsArgs<UpdateScheduleEnvelope, TError, string | readonly [`/v1/schedules/${string}`], UpdateScheduleBody | undefined>;
|
|
@@ -16834,19 +16863,19 @@ declare const getDeleteScheduleUrl: (scheduleId: string) => string;
|
|
|
16834
16863
|
* @summary Delete a schedule
|
|
16835
16864
|
*/
|
|
16836
16865
|
declare const deleteSchedule: (scheduleId: string, options?: Parameters<typeof customFetch>[1]) => Promise<DeleteScheduleEnvelope>;
|
|
16837
|
-
declare const getDeleteScheduleMutationFetcher: (scheduleId: string, options?: SecondParameter$
|
|
16866
|
+
declare const getDeleteScheduleMutationFetcher: (scheduleId: string, options?: SecondParameter$9<typeof customFetch>) => (_: Key, __: {
|
|
16838
16867
|
arg: Arguments;
|
|
16839
16868
|
}) => Promise<DeleteScheduleEnvelope>;
|
|
16840
16869
|
declare const getDeleteScheduleMutationKey: (scheduleId: string) => readonly [`/v1/schedules/${string}`];
|
|
16841
|
-
type DeleteScheduleMutationResult = NonNullable<Awaited$
|
|
16870
|
+
type DeleteScheduleMutationResult = NonNullable<Awaited$9<ReturnType<typeof deleteSchedule>>>;
|
|
16842
16871
|
/**
|
|
16843
16872
|
* @summary Delete a schedule
|
|
16844
16873
|
*/
|
|
16845
16874
|
declare const useDeleteSchedule: <TError = ErrorType<ErrorResponse>>(scheduleId: string, options?: {
|
|
16846
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
16875
|
+
swr?: SWRMutationConfiguration<Awaited$9<ReturnType<typeof deleteSchedule>>, TError, Key, Arguments, Awaited$9<ReturnType<typeof deleteSchedule>>> & {
|
|
16847
16876
|
swrKey?: string;
|
|
16848
16877
|
};
|
|
16849
|
-
request?: SecondParameter$
|
|
16878
|
+
request?: SecondParameter$9<typeof customFetch>;
|
|
16850
16879
|
}) => {
|
|
16851
16880
|
isMutating: boolean;
|
|
16852
16881
|
trigger: swr_mutation.TriggerWithOptionsArgs<DeleteScheduleEnvelope, TError, string | readonly [`/v1/schedules/${string}`], Arguments>;
|
|
@@ -16856,9 +16885,9 @@ declare const useDeleteSchedule: <TError = ErrorType<ErrorResponse>>(scheduleId:
|
|
|
16856
16885
|
swrKey: string | readonly [`/v1/schedules/${string}`];
|
|
16857
16886
|
};
|
|
16858
16887
|
|
|
16859
|
-
type AwaitedInput$
|
|
16860
|
-
type Awaited$
|
|
16861
|
-
type SecondParameter$
|
|
16888
|
+
type AwaitedInput$8<T> = PromiseLike<T> | T;
|
|
16889
|
+
type Awaited$8<O> = O extends AwaitedInput$8<infer T> ? T : never;
|
|
16890
|
+
type SecondParameter$8<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
16862
16891
|
declare const getCreateSecretUrl: () => string;
|
|
16863
16892
|
/**
|
|
16864
16893
|
* Create an organization-level secret. The value is encrypted at rest and **write-only** — no endpoint ever returns it.
|
|
@@ -16867,19 +16896,19 @@ declare const getCreateSecretUrl: () => string;
|
|
|
16867
16896
|
* @summary Create a secret
|
|
16868
16897
|
*/
|
|
16869
16898
|
declare const createSecret: (createSecretBody?: CreateSecretBody, options?: Parameters<typeof customFetch>[1]) => Promise<CreateSecretEnvelope>;
|
|
16870
|
-
declare const getCreateSecretMutationFetcher: (options?: SecondParameter$
|
|
16899
|
+
declare const getCreateSecretMutationFetcher: (options?: SecondParameter$8<typeof customFetch>) => (_: Key, { arg }: {
|
|
16871
16900
|
arg: CreateSecretBody | undefined;
|
|
16872
16901
|
}) => Promise<CreateSecretEnvelope>;
|
|
16873
16902
|
declare const getCreateSecretMutationKey: () => readonly ["/v1/secrets"];
|
|
16874
|
-
type CreateSecretMutationResult = NonNullable<Awaited$
|
|
16903
|
+
type CreateSecretMutationResult = NonNullable<Awaited$8<ReturnType<typeof createSecret>>>;
|
|
16875
16904
|
/**
|
|
16876
16905
|
* @summary Create a secret
|
|
16877
16906
|
*/
|
|
16878
16907
|
declare const useCreateSecret: <TError = ErrorType<ErrorResponse>>(options?: {
|
|
16879
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
16908
|
+
swr?: SWRMutationConfiguration<Awaited$8<ReturnType<typeof createSecret>>, TError, Key, CreateSecretBody | undefined, Awaited$8<ReturnType<typeof createSecret>>> & {
|
|
16880
16909
|
swrKey?: string;
|
|
16881
16910
|
};
|
|
16882
|
-
request?: SecondParameter$
|
|
16911
|
+
request?: SecondParameter$8<typeof customFetch>;
|
|
16883
16912
|
}) => {
|
|
16884
16913
|
isMutating: boolean;
|
|
16885
16914
|
trigger: swr_mutation.TriggerWithOptionsArgs<CreateSecretEnvelope, TError, string | readonly ["/v1/secrets"], CreateSecretBody | undefined>;
|
|
@@ -16895,16 +16924,16 @@ declare const getListSecretsUrl: (params?: ListSecretsParams) => string;
|
|
|
16895
16924
|
*/
|
|
16896
16925
|
declare const listSecrets: (params?: ListSecretsParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListSecretsEnvelope>;
|
|
16897
16926
|
declare const getListSecretsKey: (params?: ListSecretsParams) => readonly ["/v1/secrets", ...ListSecretsParams[]];
|
|
16898
|
-
type ListSecretsQueryResult = NonNullable<Awaited$
|
|
16927
|
+
type ListSecretsQueryResult = NonNullable<Awaited$8<ReturnType<typeof listSecrets>>>;
|
|
16899
16928
|
/**
|
|
16900
16929
|
* @summary List secrets
|
|
16901
16930
|
*/
|
|
16902
16931
|
declare const useListSecrets: <TError = ErrorType<ErrorResponse>>(params?: ListSecretsParams, options?: {
|
|
16903
|
-
swr?: SWRConfiguration<Awaited$
|
|
16932
|
+
swr?: SWRConfiguration<Awaited$8<ReturnType<typeof listSecrets>>, TError> & {
|
|
16904
16933
|
swrKey?: Key;
|
|
16905
16934
|
enabled?: boolean;
|
|
16906
16935
|
};
|
|
16907
|
-
request?: SecondParameter$
|
|
16936
|
+
request?: SecondParameter$8<typeof customFetch>;
|
|
16908
16937
|
}) => {
|
|
16909
16938
|
data: ListSecretsEnvelope | undefined;
|
|
16910
16939
|
error: TError | undefined;
|
|
@@ -16920,16 +16949,16 @@ declare const getGetSecretUrl: (secretId: string) => string;
|
|
|
16920
16949
|
*/
|
|
16921
16950
|
declare const getSecret: (secretId: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetSecretEnvelope>;
|
|
16922
16951
|
declare const getGetSecretKey: (secretId: string) => readonly [`/v1/secrets/${string}`];
|
|
16923
|
-
type GetSecretQueryResult = NonNullable<Awaited$
|
|
16952
|
+
type GetSecretQueryResult = NonNullable<Awaited$8<ReturnType<typeof getSecret>>>;
|
|
16924
16953
|
/**
|
|
16925
16954
|
* @summary Get secret
|
|
16926
16955
|
*/
|
|
16927
16956
|
declare const useGetSecret: <TError = ErrorType<ErrorResponse>>(secretId: string, options?: {
|
|
16928
|
-
swr?: SWRConfiguration<Awaited$
|
|
16957
|
+
swr?: SWRConfiguration<Awaited$8<ReturnType<typeof getSecret>>, TError> & {
|
|
16929
16958
|
swrKey?: Key;
|
|
16930
16959
|
enabled?: boolean;
|
|
16931
16960
|
};
|
|
16932
|
-
request?: SecondParameter$
|
|
16961
|
+
request?: SecondParameter$8<typeof customFetch>;
|
|
16933
16962
|
}) => {
|
|
16934
16963
|
data: GetSecretEnvelope | undefined;
|
|
16935
16964
|
error: TError | undefined;
|
|
@@ -16948,19 +16977,19 @@ declare const getUpdateSecretUrl: (secretId: string) => string;
|
|
|
16948
16977
|
* @summary Update secret
|
|
16949
16978
|
*/
|
|
16950
16979
|
declare const updateSecret: (secretId: string, updateSecretBody?: UpdateSecretBody, options?: Parameters<typeof customFetch>[1]) => Promise<UpdateSecretEnvelope>;
|
|
16951
|
-
declare const getUpdateSecretMutationFetcher: (secretId: string, options?: SecondParameter$
|
|
16980
|
+
declare const getUpdateSecretMutationFetcher: (secretId: string, options?: SecondParameter$8<typeof customFetch>) => (_: Key, { arg }: {
|
|
16952
16981
|
arg: UpdateSecretBody | undefined;
|
|
16953
16982
|
}) => Promise<UpdateSecretEnvelope>;
|
|
16954
16983
|
declare const getUpdateSecretMutationKey: (secretId: string) => readonly [`/v1/secrets/${string}`];
|
|
16955
|
-
type UpdateSecretMutationResult = NonNullable<Awaited$
|
|
16984
|
+
type UpdateSecretMutationResult = NonNullable<Awaited$8<ReturnType<typeof updateSecret>>>;
|
|
16956
16985
|
/**
|
|
16957
16986
|
* @summary Update secret
|
|
16958
16987
|
*/
|
|
16959
16988
|
declare const useUpdateSecret: <TError = ErrorType<ErrorResponse>>(secretId: string, options?: {
|
|
16960
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
16989
|
+
swr?: SWRMutationConfiguration<Awaited$8<ReturnType<typeof updateSecret>>, TError, Key, UpdateSecretBody | undefined, Awaited$8<ReturnType<typeof updateSecret>>> & {
|
|
16961
16990
|
swrKey?: string;
|
|
16962
16991
|
};
|
|
16963
|
-
request?: SecondParameter$
|
|
16992
|
+
request?: SecondParameter$8<typeof customFetch>;
|
|
16964
16993
|
}) => {
|
|
16965
16994
|
isMutating: boolean;
|
|
16966
16995
|
trigger: swr_mutation.TriggerWithOptionsArgs<UpdateSecretEnvelope, TError, string | readonly [`/v1/secrets/${string}`], UpdateSecretBody | undefined>;
|
|
@@ -16975,19 +17004,19 @@ declare const getDeleteSecretUrl: (secretId: string) => string;
|
|
|
16975
17004
|
* @summary Delete secret
|
|
16976
17005
|
*/
|
|
16977
17006
|
declare const deleteSecret: (secretId: string, options?: Parameters<typeof customFetch>[1]) => Promise<DeleteSecretEnvelope>;
|
|
16978
|
-
declare const getDeleteSecretMutationFetcher: (secretId: string, options?: SecondParameter$
|
|
17007
|
+
declare const getDeleteSecretMutationFetcher: (secretId: string, options?: SecondParameter$8<typeof customFetch>) => (_: Key, __: {
|
|
16979
17008
|
arg: Arguments;
|
|
16980
17009
|
}) => Promise<DeleteSecretEnvelope>;
|
|
16981
17010
|
declare const getDeleteSecretMutationKey: (secretId: string) => readonly [`/v1/secrets/${string}`];
|
|
16982
|
-
type DeleteSecretMutationResult = NonNullable<Awaited$
|
|
17011
|
+
type DeleteSecretMutationResult = NonNullable<Awaited$8<ReturnType<typeof deleteSecret>>>;
|
|
16983
17012
|
/**
|
|
16984
17013
|
* @summary Delete secret
|
|
16985
17014
|
*/
|
|
16986
17015
|
declare const useDeleteSecret: <TError = ErrorType<ErrorResponse>>(secretId: string, options?: {
|
|
16987
|
-
swr?: SWRMutationConfiguration<Awaited$
|
|
17016
|
+
swr?: SWRMutationConfiguration<Awaited$8<ReturnType<typeof deleteSecret>>, TError, Key, Arguments, Awaited$8<ReturnType<typeof deleteSecret>>> & {
|
|
16988
17017
|
swrKey?: string;
|
|
16989
17018
|
};
|
|
16990
|
-
request?: SecondParameter$
|
|
17019
|
+
request?: SecondParameter$8<typeof customFetch>;
|
|
16991
17020
|
}) => {
|
|
16992
17021
|
isMutating: boolean;
|
|
16993
17022
|
trigger: swr_mutation.TriggerWithOptionsArgs<DeleteSecretEnvelope, TError, string | readonly [`/v1/secrets/${string}`], Arguments>;
|
|
@@ -16997,39 +17026,6 @@ declare const useDeleteSecret: <TError = ErrorType<ErrorResponse>>(secretId: str
|
|
|
16997
17026
|
swrKey: string | readonly [`/v1/secrets/${string}`];
|
|
16998
17027
|
};
|
|
16999
17028
|
|
|
17000
|
-
type AwaitedInput$8<T> = PromiseLike<T> | T;
|
|
17001
|
-
type Awaited$8<O> = O extends AwaitedInput$8<infer T> ? T : never;
|
|
17002
|
-
type SecondParameter$8<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
17003
|
-
declare const getRefreshSessionUrl: () => string;
|
|
17004
|
-
/**
|
|
17005
|
-
* Rotate the refresh token and return a new access token for `tenant_id`. Call it with a different `tenant_id` to switch tenants.
|
|
17006
|
-
*
|
|
17007
|
-
* Requires a valid user session (not an API key). The refresh token must belong to the same user, and the user must be a member of `tenant_id` (404 otherwise).
|
|
17008
|
-
* @summary Refresh session
|
|
17009
|
-
*/
|
|
17010
|
-
declare const refreshSession: (refreshSessionBody?: RefreshSessionBody, options?: Parameters<typeof customFetch>[1]) => Promise<RefreshSessionEnvelope>;
|
|
17011
|
-
declare const getRefreshSessionMutationFetcher: (options?: SecondParameter$8<typeof customFetch>) => (_: Key, { arg }: {
|
|
17012
|
-
arg: RefreshSessionBody | undefined;
|
|
17013
|
-
}) => Promise<RefreshSessionEnvelope>;
|
|
17014
|
-
declare const getRefreshSessionMutationKey: () => readonly ["/v1/auth/session/refresh"];
|
|
17015
|
-
type RefreshSessionMutationResult = NonNullable<Awaited$8<ReturnType<typeof refreshSession>>>;
|
|
17016
|
-
/**
|
|
17017
|
-
* @summary Refresh session
|
|
17018
|
-
*/
|
|
17019
|
-
declare const useRefreshSession: <TError = ErrorType<ErrorResponse>>(options?: {
|
|
17020
|
-
swr?: SWRMutationConfiguration<Awaited$8<ReturnType<typeof refreshSession>>, TError, Key, RefreshSessionBody | undefined, Awaited$8<ReturnType<typeof refreshSession>>> & {
|
|
17021
|
-
swrKey?: string;
|
|
17022
|
-
};
|
|
17023
|
-
request?: SecondParameter$8<typeof customFetch>;
|
|
17024
|
-
}) => {
|
|
17025
|
-
isMutating: boolean;
|
|
17026
|
-
trigger: swr_mutation.TriggerWithOptionsArgs<RefreshSessionEnvelope, TError, string | readonly ["/v1/auth/session/refresh"], RefreshSessionBody | undefined>;
|
|
17027
|
-
reset: () => void;
|
|
17028
|
-
error: TError | undefined;
|
|
17029
|
-
data: RefreshSessionEnvelope | undefined;
|
|
17030
|
-
swrKey: string | readonly ["/v1/auth/session/refresh"];
|
|
17031
|
-
};
|
|
17032
|
-
|
|
17033
17029
|
type AwaitedInput$7<T> = PromiseLike<T> | T;
|
|
17034
17030
|
type Awaited$7<O> = O extends AwaitedInput$7<infer T> ? T : never;
|
|
17035
17031
|
type SecondParameter$7<T extends (...args: never) => unknown> = Parameters<T>[1];
|