@forgerock/davinci-client 1.0.0 → 1.2.0
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/LICENSE +21 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +9 -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 +300 -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 +19 -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 +360 -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 +117 -0
- package/dist/src/lib/collector.utils.d.ts.map +1 -0
- package/dist/src/lib/collector.utils.js +463 -0
- package/dist/src/lib/collector.utils.js.map +1 -0
- package/dist/{lib → src/lib}/config.slice.d.ts +12 -5
- 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 +346 -0
- package/dist/src/lib/davinci.api.js.map +1 -0
- package/dist/{lib → src/lib}/davinci.types.d.ts +101 -8
- 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/{lib → src/lib}/davinci.utils.d.ts +10 -6
- package/dist/src/lib/davinci.utils.d.ts.map +1 -0
- package/dist/src/lib/davinci.utils.js +168 -0
- package/dist/src/lib/davinci.utils.js.map +1 -0
- package/dist/src/lib/error.types.d.ts.map +1 -0
- package/dist/src/lib/error.types.js +2 -0
- package/dist/src/lib/error.types.js.map +1 -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 +193 -0
- package/dist/src/lib/node.reducer.js.map +1 -0
- package/dist/{lib → src/lib}/node.slice.d.ts +55 -26
- 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/{lib → src/lib}/node.types.d.ts +17 -8
- 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.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 +40 -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 +39 -20
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -4
- package/dist/lib/authorize.utils.d.ts +0 -22
- package/dist/lib/authorize.utils.d.ts.map +0 -1
- package/dist/lib/authorize.utils.js +0 -23
- package/dist/lib/client.store.d.ts +0 -149
- package/dist/lib/client.store.d.ts.map +0 -1
- package/dist/lib/client.store.js +0 -131
- package/dist/lib/client.store.utils.d.ts +0 -46
- package/dist/lib/client.store.utils.d.ts.map +0 -1
- package/dist/lib/client.store.utils.js +0 -19
- package/dist/lib/client.types.d.ts +0 -9
- package/dist/lib/client.types.d.ts.map +0 -1
- package/dist/lib/collector.types.d.ts +0 -78
- package/dist/lib/collector.types.d.ts.map +0 -1
- package/dist/lib/collector.utils.d.ts +0 -54
- package/dist/lib/collector.utils.d.ts.map +0 -1
- package/dist/lib/collector.utils.js +0 -88
- package/dist/lib/config.slice.d.ts.map +0 -1
- package/dist/lib/config.slice.js +0 -40
- package/dist/lib/config.types.d.ts +0 -9
- package/dist/lib/config.types.d.ts.map +0 -1
- package/dist/lib/davinci.api.d.ts +0 -20
- package/dist/lib/davinci.api.d.ts.map +0 -1
- package/dist/lib/davinci.api.js +0 -172
- package/dist/lib/davinci.types.d.ts.map +0 -1
- package/dist/lib/davinci.utils.d.ts.map +0 -1
- package/dist/lib/davinci.utils.js +0 -102
- package/dist/lib/error.types.d.ts.map +0 -1
- package/dist/lib/index.d.ts.map +0 -1
- package/dist/lib/node.reducer.d.ts +0 -22
- package/dist/lib/node.reducer.d.ts.map +0 -1
- package/dist/lib/node.reducer.js +0 -31
- package/dist/lib/node.slice.d.ts.map +0 -1
- package/dist/lib/node.slice.js +0 -160
- package/dist/lib/node.types.d.ts.map +0 -1
- package/dist/lib/wellknown.api.d.ts +0 -5
- package/dist/lib/wellknown.api.d.ts.map +0 -1
- package/dist/lib/wellknown.api.js +0 -15
- package/dist/lib/wellknown.types.d.ts.map +0 -1
- package/dist/types.d.ts +0 -23
- package/dist/types.d.ts.map +0 -1
- /package/dist/{index.d.ts → src/index.d.ts} +0 -0
- /package/dist/{lib → src/lib}/error.types.d.ts +0 -0
- /package/dist/{lib → src/lib}/index.d.ts +0 -0
- /package/dist/{lib → src/lib}/wellknown.types.d.ts +0 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Ping Identity Corporation
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -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;AAEhD,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
export { davinci };
|
|
9
|
+
//# 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;AAEhD,OAAO,EAAE,OAAO,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 } from './collector.types.js';
|
|
12
|
+
import type { InitFlow, InternalErrorResponse, NodeStates, Updater, Validator } from './client.types.js';
|
|
13
|
+
import { 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} collector - the collector to update
|
|
76
|
+
* @returns {function} - a function to call for updating collector value
|
|
77
|
+
*/
|
|
78
|
+
update: (collector: SingleValueCollectors | MultiSelectCollector | ObjectValueCollectors) => Updater;
|
|
79
|
+
/**
|
|
80
|
+
* @method validate - Method for validating the value against validation rules
|
|
81
|
+
* @param {SingleValueCollector} collector - the collector to validate
|
|
82
|
+
* @returns {function} - a function to call for validating collector value
|
|
83
|
+
* @throws {Error} - if the collector is not a SingleValueCollector
|
|
84
|
+
*/
|
|
85
|
+
validate: (collector: SingleValueCollectors) => 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,EAEtB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EACV,QAAQ,EACR,qBAAqB,EACrB,UAAU,EACV,OAAO,EACP,SAAS,EACV,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE1D;;;;;;;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;wBAEU,qBAAqB,GAAG,oBAAoB,GAAG,qBAAqB,KAC9E,OAAO;IAkDV;;;;;OAKG;0BACmB,qBAAqB,KAAG,SAAS;IA0CvD;;;OAGG;;;;;;;;;;;;;;;;;;;gBArPwE,CAAC;iBACxE,CAAC;;;;IAuPL;;;OAGG;;;;IAgCH;;;OAGG;;IAKH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAMH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uCAgB8B,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAc1C"}
|