@forgerock/davinci-client 0.0.0-beta-20251124184351 → 0.0.0-beta-20251222204813
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/src/index.d.ts +4 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +10 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/lib/client.store.d.ts +352 -0
- package/dist/src/lib/client.store.d.ts.map +1 -0
- package/dist/src/lib/client.store.js +308 -0
- package/dist/src/lib/client.store.js.map +1 -0
- package/dist/src/lib/client.store.utils.d.ts +74 -0
- package/dist/src/lib/client.store.utils.d.ts.map +1 -0
- package/dist/src/lib/client.store.utils.js +48 -0
- package/dist/src/lib/client.store.utils.js.map +1 -0
- package/dist/src/lib/client.types.d.ts +71 -0
- package/dist/src/lib/client.types.d.ts.map +1 -0
- package/dist/src/lib/client.types.js +2 -0
- package/dist/src/lib/client.types.js.map +1 -0
- package/dist/src/lib/collector.types.d.ts +448 -0
- package/dist/src/lib/collector.types.d.ts.map +1 -0
- package/dist/src/lib/collector.types.js +8 -0
- package/dist/src/lib/collector.types.js.map +1 -0
- package/dist/src/lib/collector.utils.d.ts +154 -0
- package/dist/src/lib/collector.utils.d.ts.map +1 -0
- package/dist/src/lib/collector.utils.js +651 -0
- package/dist/src/lib/collector.utils.js.map +1 -0
- package/dist/src/lib/config.slice.d.ts +42 -0
- package/dist/src/lib/config.slice.d.ts.map +1 -0
- package/dist/src/lib/config.slice.js +59 -0
- package/dist/src/lib/config.slice.js.map +1 -0
- package/dist/src/lib/config.types.d.ts +12 -0
- package/dist/src/lib/config.types.d.ts.map +1 -0
- package/dist/src/lib/config.types.js +2 -0
- package/dist/src/lib/config.types.js.map +1 -0
- package/dist/src/lib/davinci.api.d.ts +31 -0
- package/dist/src/lib/davinci.api.d.ts.map +1 -0
- package/dist/src/lib/davinci.api.js +347 -0
- package/dist/src/lib/davinci.api.js.map +1 -0
- package/dist/src/lib/davinci.types.d.ts +328 -0
- package/dist/src/lib/davinci.types.d.ts.map +1 -0
- package/dist/src/lib/davinci.types.js +11 -0
- package/dist/src/lib/davinci.types.js.map +1 -0
- package/dist/src/lib/davinci.utils.d.ts +22 -0
- package/dist/src/lib/davinci.utils.d.ts.map +1 -0
- package/dist/src/lib/davinci.utils.js +170 -0
- package/dist/src/lib/davinci.utils.js.map +1 -0
- package/dist/src/lib/fido/fido.d.ts +27 -0
- package/dist/src/lib/fido/fido.d.ts.map +1 -0
- package/dist/src/lib/fido/fido.js +108 -0
- package/dist/src/lib/fido/fido.js.map +1 -0
- package/dist/src/lib/fido/fido.utils.d.ts +31 -0
- package/dist/src/lib/fido/fido.utils.d.ts.map +1 -0
- package/dist/src/lib/fido/fido.utils.js +115 -0
- package/dist/src/lib/fido/fido.utils.js.map +1 -0
- package/dist/src/lib/index.d.ts +3 -0
- package/dist/src/lib/index.d.ts.map +1 -0
- package/dist/src/lib/index.js +9 -0
- package/dist/src/lib/index.js.map +1 -0
- package/dist/src/lib/node.reducer.d.ts +27 -0
- package/dist/src/lib/node.reducer.d.ts.map +1 -0
- package/dist/src/lib/node.reducer.js +230 -0
- package/dist/src/lib/node.reducer.js.map +1 -0
- package/dist/src/lib/node.slice.d.ts +181 -0
- package/dist/src/lib/node.slice.d.ts.map +1 -0
- package/dist/src/lib/node.slice.js +261 -0
- package/dist/src/lib/node.slice.js.map +1 -0
- package/dist/src/lib/node.types.d.ts +119 -0
- package/dist/src/lib/node.types.d.ts.map +1 -0
- package/dist/src/lib/node.types.js +2 -0
- package/dist/src/lib/node.types.js.map +1 -0
- package/dist/src/lib/node.utils.d.ts +4 -0
- package/dist/src/lib/node.utils.d.ts.map +1 -0
- package/dist/src/lib/node.utils.js +32 -0
- package/dist/src/lib/node.utils.js.map +1 -0
- package/dist/src/lib/wellknown.api.d.ts +5 -0
- package/dist/src/lib/wellknown.api.d.ts.map +1 -0
- package/dist/src/lib/wellknown.api.js +22 -0
- package/dist/src/lib/wellknown.api.js.map +1 -0
- package/dist/src/lib/wellknown.types.d.ts +38 -0
- package/dist/src/lib/wellknown.types.d.ts.map +1 -0
- package/dist/src/lib/wellknown.types.js +2 -0
- package/dist/src/lib/wellknown.types.js.map +1 -0
- package/dist/src/types.d.ts +45 -0
- package/dist/src/types.d.ts.map +1 -0
- package/dist/src/types.js +7 -0
- package/dist/src/types.js.map +1 -0
- package/package.json +6 -6
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAE1C,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2025 Ping Identity Corporation. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* This software may be modified and distributed under the terms
|
|
5
|
+
* of the MIT license. See the LICENSE file for details.
|
|
6
|
+
*/
|
|
7
|
+
import { davinci } from './lib/client.store.js';
|
|
8
|
+
import { fido } from './lib/fido/fido.js';
|
|
9
|
+
export { davinci, fido };
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAE1C,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Import RTK slices and api
|
|
3
|
+
*/
|
|
4
|
+
import { CustomLogger, LogLevel } from '@forgerock/sdk-logger';
|
|
5
|
+
import type { ActionTypes, RequestMiddleware } from '@forgerock/sdk-request-middleware';
|
|
6
|
+
/**
|
|
7
|
+
* Import the DaVinciRequest types
|
|
8
|
+
*/
|
|
9
|
+
import type { DaVinciConfig } from './config.types.js';
|
|
10
|
+
import type { DaVinciAction, DaVinciRequest, OutgoingQueryParams, StartOptions } from './davinci.types.js';
|
|
11
|
+
import type { SingleValueCollectors, MultiSelectCollector, ObjectValueCollectors, AutoCollectors, MultiValueCollectors } from './collector.types.js';
|
|
12
|
+
import type { InitFlow, InternalErrorResponse, NodeStates, Updater, Validator } from './client.types.js';
|
|
13
|
+
import type { ContinueNode, StartNode } from './node.types.js';
|
|
14
|
+
/**
|
|
15
|
+
* Create a client function that returns a set of methods
|
|
16
|
+
* to interact with and normalize the DaVinci API.
|
|
17
|
+
*
|
|
18
|
+
* @function davinciClient - returns an "observable" client for DaVinci flows
|
|
19
|
+
* @param {ConfigurationOptions} options - the configuration options for the client
|
|
20
|
+
* @returns {Observable} - an observable client for DaVinci flows
|
|
21
|
+
*/
|
|
22
|
+
export declare function davinci<ActionType extends ActionTypes = ActionTypes>({ config, requestMiddleware, logger, }: {
|
|
23
|
+
config: DaVinciConfig;
|
|
24
|
+
requestMiddleware?: RequestMiddleware<ActionType>[];
|
|
25
|
+
logger?: {
|
|
26
|
+
level: LogLevel;
|
|
27
|
+
custom?: CustomLogger;
|
|
28
|
+
};
|
|
29
|
+
}): Promise<{
|
|
30
|
+
subscribe: (listener: () => void) => import("@reduxjs/toolkit").Unsubscribe;
|
|
31
|
+
/**
|
|
32
|
+
* Social Login Handler
|
|
33
|
+
* Use this as part of an event when clicking on
|
|
34
|
+
* a social login button. Pass in the collector responsible
|
|
35
|
+
* for the social login being started.
|
|
36
|
+
*
|
|
37
|
+
* This method will save the `continueUrl`
|
|
38
|
+
* and then the app developer can use the url
|
|
39
|
+
* from the collector to redirect their application
|
|
40
|
+
*
|
|
41
|
+
* Can return an error when no continue url is found
|
|
42
|
+
* or no authenticate url is found in the collectors
|
|
43
|
+
*
|
|
44
|
+
* @method: externalIdp
|
|
45
|
+
* @param collector IdpCollector
|
|
46
|
+
* @returns {function}
|
|
47
|
+
*/
|
|
48
|
+
externalIdp: () => (() => Promise<void | InternalErrorResponse>);
|
|
49
|
+
/**
|
|
50
|
+
* @method flow - Method for initiating a new flow, different than current flow
|
|
51
|
+
* @param {DaVinciAction} action - the action to initiate the flow
|
|
52
|
+
* @returns {function} - an async function to call the flow
|
|
53
|
+
*/
|
|
54
|
+
flow: (action: DaVinciAction) => InitFlow;
|
|
55
|
+
/**
|
|
56
|
+
* @method next - Method for initiating the next node in the current flow
|
|
57
|
+
* @param {DaVinciRequest} args - the arguments to pass to the next
|
|
58
|
+
* @returns {Promise} - a promise that resolves to the next node
|
|
59
|
+
*/
|
|
60
|
+
next: (args?: DaVinciRequest) => Promise<NodeStates>;
|
|
61
|
+
/**
|
|
62
|
+
* @method: resume - Resume a social login flow when returned to application
|
|
63
|
+
* @returns unknown
|
|
64
|
+
*/
|
|
65
|
+
resume: ({ continueToken, }: {
|
|
66
|
+
continueToken: string;
|
|
67
|
+
}) => Promise<InternalErrorResponse | NodeStates>;
|
|
68
|
+
/**
|
|
69
|
+
* @method start - Method for initiating a DaVinci flow
|
|
70
|
+
* @returns {Promise} - a promise that initiates a DaVinci flow and returns a node
|
|
71
|
+
*/
|
|
72
|
+
start: <QueryParams extends OutgoingQueryParams = OutgoingQueryParams>(options?: StartOptions<QueryParams> | undefined) => Promise<ContinueNode | import("./node.types.js").ErrorNode | import("./node.types.js").FailureNode | StartNode | import("./node.types.js").SuccessNode>;
|
|
73
|
+
/**
|
|
74
|
+
* @method update - Exclusive method for updating the current node with user provided values
|
|
75
|
+
* @param {SingleValueCollector | MultiSelectCollector | ObjectValueCollectors | AutoCollectors} collector - the collector to update
|
|
76
|
+
* @returns {function} - a function to call for updating collector value
|
|
77
|
+
*/
|
|
78
|
+
update: <T extends SingleValueCollectors | MultiSelectCollector | ObjectValueCollectors | AutoCollectors>(collector: T) => Updater<T>;
|
|
79
|
+
/**
|
|
80
|
+
* @method validate - Method for validating the value against validation rules
|
|
81
|
+
* @param {SingleValueCollectors | ObjectValueCollectors | MultiValueCollectors | AutoCollectors} collector - the collector to validate
|
|
82
|
+
* @returns {function} - a function to call for validating collector value
|
|
83
|
+
* @throws {Error} - if the collector cannot be validated
|
|
84
|
+
*/
|
|
85
|
+
validate: (collector: SingleValueCollectors | ObjectValueCollectors | MultiValueCollectors | AutoCollectors) => Validator;
|
|
86
|
+
/**
|
|
87
|
+
* @method client - Selector to get the node.client from state
|
|
88
|
+
* @returns {Node.client} - the client property from the current node
|
|
89
|
+
*/
|
|
90
|
+
getClient: () => {
|
|
91
|
+
action: string;
|
|
92
|
+
collectors: import("./node.types.js").Collectors[];
|
|
93
|
+
description?: string;
|
|
94
|
+
name?: string;
|
|
95
|
+
status: "continue";
|
|
96
|
+
} | {
|
|
97
|
+
action: string;
|
|
98
|
+
collectors: import("./node.types.js").Collectors[];
|
|
99
|
+
description?: string;
|
|
100
|
+
name?: string;
|
|
101
|
+
status: "error";
|
|
102
|
+
} | {
|
|
103
|
+
status: "failure";
|
|
104
|
+
} | {
|
|
105
|
+
status: "start";
|
|
106
|
+
} | {
|
|
107
|
+
authorization?: {
|
|
108
|
+
code?: string;
|
|
109
|
+
state?: string;
|
|
110
|
+
};
|
|
111
|
+
status: "success";
|
|
112
|
+
} | null;
|
|
113
|
+
/**
|
|
114
|
+
* @method collectors - Selector to get the collectors from state
|
|
115
|
+
* @returns {Collector[]} - The collectors from the current node in state
|
|
116
|
+
*/
|
|
117
|
+
getCollectors: () => import("./node.types.js").Collectors[];
|
|
118
|
+
getError: () => import("./node.types.js").DaVinciError | null;
|
|
119
|
+
getErrorCollectors: () => import("./node.types.js").CollectorErrors[];
|
|
120
|
+
/**
|
|
121
|
+
* @method node - Selector to get the node from state
|
|
122
|
+
* @returns {Node} - the current node from state
|
|
123
|
+
*/
|
|
124
|
+
getNode: () => ContinueNode | import("./node.types.js").ErrorNode | import("./node.types.js").FailureNode | StartNode | import("./node.types.js").SuccessNode;
|
|
125
|
+
/**
|
|
126
|
+
* @method server - Selector to get the node.server from state
|
|
127
|
+
* @returns {Node.server} - the server property from the current node
|
|
128
|
+
*/
|
|
129
|
+
getServer: () => {
|
|
130
|
+
_links?: import("./davinci.types.js").Links;
|
|
131
|
+
id?: string;
|
|
132
|
+
interactionId?: string;
|
|
133
|
+
interactionToken?: string;
|
|
134
|
+
href?: string;
|
|
135
|
+
eventName?: string;
|
|
136
|
+
status: "continue";
|
|
137
|
+
} | {
|
|
138
|
+
_links?: import("./davinci.types.js").Links;
|
|
139
|
+
eventName?: string;
|
|
140
|
+
id?: string;
|
|
141
|
+
interactionId?: string;
|
|
142
|
+
interactionToken?: string;
|
|
143
|
+
status: "error";
|
|
144
|
+
} | {
|
|
145
|
+
_links?: import("./davinci.types.js").Links;
|
|
146
|
+
eventName?: string;
|
|
147
|
+
href?: string;
|
|
148
|
+
id?: string;
|
|
149
|
+
interactionId?: string;
|
|
150
|
+
interactionToken?: string;
|
|
151
|
+
status: "failure";
|
|
152
|
+
} | {
|
|
153
|
+
status: "start";
|
|
154
|
+
} | {
|
|
155
|
+
_links?: import("./davinci.types.js").Links;
|
|
156
|
+
eventName?: string;
|
|
157
|
+
id?: string;
|
|
158
|
+
interactionId?: string;
|
|
159
|
+
interactionToken?: string;
|
|
160
|
+
href?: string;
|
|
161
|
+
session?: string;
|
|
162
|
+
status: "success";
|
|
163
|
+
} | null;
|
|
164
|
+
/**
|
|
165
|
+
* Utilities to help query cached responses from server
|
|
166
|
+
*/
|
|
167
|
+
cache: {
|
|
168
|
+
getLatestResponse: () => ((state: import("@reduxjs/toolkit/query").RootState<{
|
|
169
|
+
flow: import("@reduxjs/toolkit/query").MutationDefinition<any, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, never, unknown, "davinci", any>;
|
|
170
|
+
next: import("@reduxjs/toolkit/query").MutationDefinition<any, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, never, unknown, "davinci", any>;
|
|
171
|
+
start: import("@reduxjs/toolkit/query").MutationDefinition<StartOptions<OutgoingQueryParams> | undefined, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, never, unknown, "davinci", unknown>;
|
|
172
|
+
resume: import("@reduxjs/toolkit/query").QueryDefinition<{
|
|
173
|
+
serverInfo: ContinueNode["server"];
|
|
174
|
+
continueToken: string;
|
|
175
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, never, unknown, "davinci", unknown>;
|
|
176
|
+
}, never, "davinci">) => ({
|
|
177
|
+
requestId?: undefined;
|
|
178
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
|
|
179
|
+
data?: undefined;
|
|
180
|
+
error?: undefined;
|
|
181
|
+
endpointName?: string;
|
|
182
|
+
startedTimeStamp?: undefined;
|
|
183
|
+
fulfilledTimeStamp?: undefined;
|
|
184
|
+
} & {
|
|
185
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
|
|
186
|
+
isUninitialized: true;
|
|
187
|
+
isLoading: false;
|
|
188
|
+
isSuccess: false;
|
|
189
|
+
isError: false;
|
|
190
|
+
}) | ({
|
|
191
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.fulfilled;
|
|
192
|
+
} & Omit<{
|
|
193
|
+
requestId: string;
|
|
194
|
+
data?: unknown;
|
|
195
|
+
error?: import("@reduxjs/toolkit").SerializedError | import("@reduxjs/toolkit/query").FetchBaseQueryError | undefined;
|
|
196
|
+
endpointName: string;
|
|
197
|
+
startedTimeStamp: number;
|
|
198
|
+
fulfilledTimeStamp?: number;
|
|
199
|
+
}, "data" | "fulfilledTimeStamp"> & Required<Pick<{
|
|
200
|
+
requestId: string;
|
|
201
|
+
data?: unknown;
|
|
202
|
+
error?: import("@reduxjs/toolkit").SerializedError | import("@reduxjs/toolkit/query").FetchBaseQueryError | undefined;
|
|
203
|
+
endpointName: string;
|
|
204
|
+
startedTimeStamp: number;
|
|
205
|
+
fulfilledTimeStamp?: number;
|
|
206
|
+
}, "data" | "fulfilledTimeStamp">> & {
|
|
207
|
+
error: undefined;
|
|
208
|
+
} & {
|
|
209
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.fulfilled;
|
|
210
|
+
isUninitialized: false;
|
|
211
|
+
isLoading: false;
|
|
212
|
+
isSuccess: true;
|
|
213
|
+
isError: false;
|
|
214
|
+
}) | ({
|
|
215
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.pending;
|
|
216
|
+
} & {
|
|
217
|
+
requestId: string;
|
|
218
|
+
data?: unknown;
|
|
219
|
+
error?: import("@reduxjs/toolkit").SerializedError | import("@reduxjs/toolkit/query").FetchBaseQueryError | undefined;
|
|
220
|
+
endpointName: string;
|
|
221
|
+
startedTimeStamp: number;
|
|
222
|
+
fulfilledTimeStamp?: number;
|
|
223
|
+
} & {
|
|
224
|
+
data?: undefined;
|
|
225
|
+
} & {
|
|
226
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.pending;
|
|
227
|
+
isUninitialized: false;
|
|
228
|
+
isLoading: true;
|
|
229
|
+
isSuccess: false;
|
|
230
|
+
isError: false;
|
|
231
|
+
}) | ({
|
|
232
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.rejected;
|
|
233
|
+
} & Omit<{
|
|
234
|
+
requestId: string;
|
|
235
|
+
data?: unknown;
|
|
236
|
+
error?: import("@reduxjs/toolkit").SerializedError | import("@reduxjs/toolkit/query").FetchBaseQueryError | undefined;
|
|
237
|
+
endpointName: string;
|
|
238
|
+
startedTimeStamp: number;
|
|
239
|
+
fulfilledTimeStamp?: number;
|
|
240
|
+
}, "error"> & Required<Pick<{
|
|
241
|
+
requestId: string;
|
|
242
|
+
data?: unknown;
|
|
243
|
+
error?: import("@reduxjs/toolkit").SerializedError | import("@reduxjs/toolkit/query").FetchBaseQueryError | undefined;
|
|
244
|
+
endpointName: string;
|
|
245
|
+
startedTimeStamp: number;
|
|
246
|
+
fulfilledTimeStamp?: number;
|
|
247
|
+
}, "error">> & {
|
|
248
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.rejected;
|
|
249
|
+
isUninitialized: false;
|
|
250
|
+
isLoading: false;
|
|
251
|
+
isSuccess: false;
|
|
252
|
+
isError: true;
|
|
253
|
+
})) | {
|
|
254
|
+
error: {
|
|
255
|
+
message: string;
|
|
256
|
+
type: string;
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
getResponseWithId: (requestId: string) => ((state: import("@reduxjs/toolkit/query").RootState<{
|
|
260
|
+
flow: import("@reduxjs/toolkit/query").MutationDefinition<any, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, never, unknown, "davinci", any>;
|
|
261
|
+
next: import("@reduxjs/toolkit/query").MutationDefinition<any, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, never, unknown, "davinci", any>;
|
|
262
|
+
start: import("@reduxjs/toolkit/query").MutationDefinition<StartOptions<OutgoingQueryParams> | undefined, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, never, unknown, "davinci", unknown>;
|
|
263
|
+
resume: import("@reduxjs/toolkit/query").QueryDefinition<{
|
|
264
|
+
serverInfo: ContinueNode["server"];
|
|
265
|
+
continueToken: string;
|
|
266
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, never, unknown, "davinci", unknown>;
|
|
267
|
+
}, never, "davinci">) => ({
|
|
268
|
+
requestId?: undefined;
|
|
269
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
|
|
270
|
+
data?: undefined;
|
|
271
|
+
error?: undefined;
|
|
272
|
+
endpointName?: string;
|
|
273
|
+
startedTimeStamp?: undefined;
|
|
274
|
+
fulfilledTimeStamp?: undefined;
|
|
275
|
+
} & {
|
|
276
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
|
|
277
|
+
isUninitialized: true;
|
|
278
|
+
isLoading: false;
|
|
279
|
+
isSuccess: false;
|
|
280
|
+
isError: false;
|
|
281
|
+
}) | ({
|
|
282
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.fulfilled;
|
|
283
|
+
} & Omit<{
|
|
284
|
+
requestId: string;
|
|
285
|
+
data?: unknown;
|
|
286
|
+
error?: import("@reduxjs/toolkit").SerializedError | import("@reduxjs/toolkit/query").FetchBaseQueryError | undefined;
|
|
287
|
+
endpointName: string;
|
|
288
|
+
startedTimeStamp: number;
|
|
289
|
+
fulfilledTimeStamp?: number;
|
|
290
|
+
}, "data" | "fulfilledTimeStamp"> & Required<Pick<{
|
|
291
|
+
requestId: string;
|
|
292
|
+
data?: unknown;
|
|
293
|
+
error?: import("@reduxjs/toolkit").SerializedError | import("@reduxjs/toolkit/query").FetchBaseQueryError | undefined;
|
|
294
|
+
endpointName: string;
|
|
295
|
+
startedTimeStamp: number;
|
|
296
|
+
fulfilledTimeStamp?: number;
|
|
297
|
+
}, "data" | "fulfilledTimeStamp">> & {
|
|
298
|
+
error: undefined;
|
|
299
|
+
} & {
|
|
300
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.fulfilled;
|
|
301
|
+
isUninitialized: false;
|
|
302
|
+
isLoading: false;
|
|
303
|
+
isSuccess: true;
|
|
304
|
+
isError: false;
|
|
305
|
+
}) | ({
|
|
306
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.pending;
|
|
307
|
+
} & {
|
|
308
|
+
requestId: string;
|
|
309
|
+
data?: unknown;
|
|
310
|
+
error?: import("@reduxjs/toolkit").SerializedError | import("@reduxjs/toolkit/query").FetchBaseQueryError | undefined;
|
|
311
|
+
endpointName: string;
|
|
312
|
+
startedTimeStamp: number;
|
|
313
|
+
fulfilledTimeStamp?: number;
|
|
314
|
+
} & {
|
|
315
|
+
data?: undefined;
|
|
316
|
+
} & {
|
|
317
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.pending;
|
|
318
|
+
isUninitialized: false;
|
|
319
|
+
isLoading: true;
|
|
320
|
+
isSuccess: false;
|
|
321
|
+
isError: false;
|
|
322
|
+
}) | ({
|
|
323
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.rejected;
|
|
324
|
+
} & Omit<{
|
|
325
|
+
requestId: string;
|
|
326
|
+
data?: unknown;
|
|
327
|
+
error?: import("@reduxjs/toolkit").SerializedError | import("@reduxjs/toolkit/query").FetchBaseQueryError | undefined;
|
|
328
|
+
endpointName: string;
|
|
329
|
+
startedTimeStamp: number;
|
|
330
|
+
fulfilledTimeStamp?: number;
|
|
331
|
+
}, "error"> & Required<Pick<{
|
|
332
|
+
requestId: string;
|
|
333
|
+
data?: unknown;
|
|
334
|
+
error?: import("@reduxjs/toolkit").SerializedError | import("@reduxjs/toolkit/query").FetchBaseQueryError | undefined;
|
|
335
|
+
endpointName: string;
|
|
336
|
+
startedTimeStamp: number;
|
|
337
|
+
fulfilledTimeStamp?: number;
|
|
338
|
+
}, "error">> & {
|
|
339
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.rejected;
|
|
340
|
+
isUninitialized: false;
|
|
341
|
+
isLoading: false;
|
|
342
|
+
isSuccess: false;
|
|
343
|
+
isError: true;
|
|
344
|
+
})) | {
|
|
345
|
+
error: {
|
|
346
|
+
message: string;
|
|
347
|
+
type: string;
|
|
348
|
+
};
|
|
349
|
+
};
|
|
350
|
+
};
|
|
351
|
+
}>;
|
|
352
|
+
//# sourceMappingURL=client.store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.store.d.ts","sourceRoot":"","sources":["../../../src/lib/client.store.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,OAAO,EAAE,YAAY,EAAsB,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AASnF,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACxF;;GAEG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EACd,mBAAmB,EACnB,YAAY,EACb,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EACV,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EAErB,cAAc,EACd,oBAAoB,EAGrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EACV,QAAQ,EACR,qBAAqB,EACrB,UAAU,EACV,OAAO,EACP,SAAS,EACV,MAAM,mBAAmB,CAAC;AAE3B,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE/D;;;;;;;GAOG;AACH,wBAAsB,OAAO,CAAC,UAAU,SAAS,WAAW,GAAG,WAAW,EAAE,EAC1E,MAAM,EACN,iBAAiB,EACjB,MAAM,GACP,EAAE;IACD,MAAM,EAAE,aAAa,CAAC;IACtB,iBAAiB,CAAC,EAAE,iBAAiB,CAAC,UAAU,CAAC,EAAE,CAAC;IACpD,MAAM,CAAC,EAAE;QACP,KAAK,EAAE,QAAQ,CAAC;QAChB,MAAM,CAAC,EAAE,YAAY,CAAC;KACvB,CAAC;CACH;;IAqCG;;;;;;;;;;;;;;;;OAgBG;uBACc,CAAC,MAAM,OAAO,CAAC,IAAI,GAAG,qBAAqB,CAAC,CAAC;IAoB9D;;;;OAIG;mBACY,aAAa,KAAG,QAAQ;IAkBvC;;;;OAIG;kBACiB,cAAc,KAAG,OAAO,CAAC,UAAU,CAAC;IAkBxD;;;OAGG;iCAGA;QACD,aAAa,EAAE,MAAM,CAAC;KACvB,KAAG,OAAO,CAAC,qBAAqB,GAAG,UAAU,CAAC;IAwB/C;;;OAGG;YACW,WAAW,SAAS,mBAAmB,kCACzC,YAAY,CAAC,WAAW,CAAC,GAAG,SAAS;IAMjD;;;;OAIG;aAED,CAAC,SACG,qBAAqB,GACrB,oBAAoB,GACpB,qBAAqB,GACrB,cAAc,aAEP,CAAC,KACX,OAAO,CAAC,CAAC,CAAC;IA4Db;;;;;OAKG;0BAGG,qBAAqB,GACrB,qBAAqB,GACrB,oBAAoB,GACpB,cAAc,KACjB,SAAS;IA+CZ;;;OAGG;;;;;;;;;;;;;;;;;;;gBA3QqB,CAAC;iBAAqB,CAAC;;;;IA8Q/C;;;OAGG;;;;IAgCH;;;OAGG;;IAKH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAMH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uCAgB8B,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAc1C"}
|