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