@marketrix.ai/widget 3.8.136 → 3.8.138
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/README.md +4 -4
- package/dist/src/context/{ConversationContext.d.ts → ChatContext.d.ts} +7 -7
- package/dist/src/context/WidgetProviders.d.ts +2 -2
- package/dist/src/context/sseReducer.d.ts +3 -3
- package/dist/src/hooks/useWidget.d.ts +2 -2
- package/dist/src/index.d.ts +2 -2
- package/dist/src/sdk/contract.d.ts +18 -18
- package/dist/src/sdk/contracts/activityLog.d.ts +32 -32
- package/dist/src/sdk/contracts/application.d.ts +24 -24
- package/dist/src/sdk/contracts/entities.d.ts +40 -64
- package/dist/src/sdk/contracts/widget.d.ts +25 -26
- package/dist/src/sdk/index.d.ts +18 -18
- package/dist/src/services/ApiService.d.ts +2 -2
- package/dist/src/services/{ToolService.d.ts → BrowserToolService.d.ts} +4 -4
- package/dist/src/services/{SessionManager.d.ts → ChatSessionManager.d.ts} +3 -3
- package/dist/src/services/DomService.d.ts +1 -1
- package/dist/src/services/{SessionRecorder.d.ts → RrwebSessionRecorder.d.ts} +3 -3
- package/dist/src/services/ShowModeService.d.ts +1 -1
- package/dist/src/services/StorageService.d.ts +1 -1
- package/dist/src/services/WidgetService.d.ts +1 -1
- package/dist/src/types/browserTools.d.ts +1 -1
- package/dist/src/types/index.d.ts +3 -3
- package/dist/src/utils/chat.d.ts +5 -5
- package/dist/widget.mjs +62 -62
- package/dist/widget.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -175,11 +175,11 @@ Returns the active configuration, or `null` if the widget isn't initialized.
|
|
|
175
175
|
|
|
176
176
|
### Session recording
|
|
177
177
|
|
|
178
|
-
|
|
178
|
+
Automatic session recording (via rrweb) is currently **disabled** — the widget no longer captures or transmits sessions on init. The control helpers remain exported for API compatibility but are inert while recording is disabled:
|
|
179
179
|
|
|
180
|
-
- `startRecording(): Promise<void>` —
|
|
181
|
-
- `stopRecording(): void` —
|
|
182
|
-
- `getRecordingState(): boolean` —
|
|
180
|
+
- `startRecording(): Promise<void>` — currently rejects (no recorder is created while recording is disabled).
|
|
181
|
+
- `stopRecording(): void` — no-op.
|
|
182
|
+
- `getRecordingState(): boolean` — always `false`.
|
|
183
183
|
|
|
184
184
|
### `MarketrixWidget` — React component (preview)
|
|
185
185
|
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import type { ChatMessage, InstructionType } from '../types';
|
|
3
3
|
import type { UIStateActions } from './UIStateContext';
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* ChatContext — the single store for the widget's conversation.
|
|
6
6
|
*
|
|
7
7
|
* Holds `{ messages, task }` as ONE `SseState`, so the SSE effect commits each
|
|
8
8
|
* transition through a single atomic `setState(prev => transition(prev))`. This
|
|
@@ -25,7 +25,7 @@ export interface ChatActions {
|
|
|
25
25
|
removeMessage: (messageId: string) => void;
|
|
26
26
|
setMessages: (messages: ChatMessage[]) => void;
|
|
27
27
|
clearMessages: () => void;
|
|
28
|
-
|
|
28
|
+
messageDispatch: (content: string, mode?: InstructionType, applicationId?: number, question?: string, skipUserMessage?: boolean) => Promise<void>;
|
|
29
29
|
}
|
|
30
30
|
export interface SimulationActions {
|
|
31
31
|
setTaskState: (payload: {
|
|
@@ -34,16 +34,16 @@ export interface SimulationActions {
|
|
|
34
34
|
}) => void;
|
|
35
35
|
stopTask: () => Promise<void>;
|
|
36
36
|
}
|
|
37
|
-
interface
|
|
37
|
+
interface ChatContextType {
|
|
38
38
|
chatState: ChatState;
|
|
39
39
|
chatActions: ChatActions;
|
|
40
40
|
taskState: SimulationState;
|
|
41
41
|
taskActions: SimulationActions;
|
|
42
42
|
}
|
|
43
|
-
interface
|
|
43
|
+
interface ChatProviderProps {
|
|
44
44
|
children: React.ReactNode;
|
|
45
45
|
previewMode?: boolean;
|
|
46
|
-
/** Current mode from UIState — fallback for
|
|
46
|
+
/** Current mode from UIState — fallback for messageDispatch and progress-line logic. */
|
|
47
47
|
currentMode: InstructionType;
|
|
48
48
|
/** Injected UI actions so the conversation store drives loading/availability/error without nesting contexts. */
|
|
49
49
|
uiActions: Pick<UIStateActions, 'setLoading' | 'setAgentAvailable' | 'setError'>;
|
|
@@ -51,6 +51,6 @@ interface ConversationProviderProps {
|
|
|
51
51
|
initialMessages?: ChatMessage[];
|
|
52
52
|
initialTask?: SimulationState;
|
|
53
53
|
}
|
|
54
|
-
export declare const
|
|
55
|
-
export declare const
|
|
54
|
+
export declare const ChatProvider: React.FC<ChatProviderProps>;
|
|
55
|
+
export declare const useChatContext: () => ChatContextType;
|
|
56
56
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* WidgetProviders — composition root that wires UIStateProvider and
|
|
3
|
-
*
|
|
3
|
+
* ChatProvider together.
|
|
4
4
|
*
|
|
5
|
-
* Conversation state ({ messages, task }) lives in ONE store (
|
|
5
|
+
* Conversation state ({ messages, task }) lives in ONE store (ChatProvider);
|
|
6
6
|
* UI state (open/minimized/mode/loading/error) lives in UIStateProvider. Both
|
|
7
7
|
* one-time initialization (SSE connection, ChatService hydration) and persistence
|
|
8
8
|
* live in inner bridge components that can read every context. React context is
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Pure SSE reducer — the single place where a `WidgetEvent` turns into the next
|
|
3
3
|
* widget state. No transport, no tool execution, no localStorage: just
|
|
4
|
-
* `(state, event) => { state, effects }`. The
|
|
4
|
+
* `(state, event) => { state, effects }`. The ChatContext effect wires
|
|
5
5
|
* this up, runs the returned effects (tool exec, wsClient.send, setLoading), and
|
|
6
6
|
* re-enters via the tool-progress helpers once an async tool finishes.
|
|
7
7
|
*
|
|
@@ -21,7 +21,7 @@ export interface SseState {
|
|
|
21
21
|
/** Side effects the wiring layer must run after applying a reduced state. */
|
|
22
22
|
export type SseEffect = {
|
|
23
23
|
type: 'executeTool';
|
|
24
|
-
|
|
24
|
+
toolCallId: string;
|
|
25
25
|
tool: string;
|
|
26
26
|
args: Record<string, unknown>;
|
|
27
27
|
mode: InstructionType;
|
|
@@ -36,7 +36,7 @@ export interface ReduceResult {
|
|
|
36
36
|
}
|
|
37
37
|
type ProgressStatus = 'in_progress' | 'completed' | 'failed';
|
|
38
38
|
/** Public: progress transition used by the wiring layer for tool lifecycle. */
|
|
39
|
-
export declare function reduceToolProgress(state: SseState,
|
|
39
|
+
export declare function reduceToolProgress(state: SseState, browserToolName: string, explanation: string, status: ProgressStatus, currentMode: InstructionType, error?: string): SseState;
|
|
40
40
|
/** Public: terminal `done` tool — strip the in-flight `done` progress line and end the task. */
|
|
41
41
|
export declare function reduceToolDone(state: SseState, currentMode: InstructionType): SseState;
|
|
42
42
|
/** Public: user-initiated stop — flag the active message `stopped` and end the task. */
|
|
@@ -22,10 +22,10 @@ interface UseWidgetActions {
|
|
|
22
22
|
setMessages: (messages: ChatMessage[]) => void;
|
|
23
23
|
stopTask: () => Promise<void>;
|
|
24
24
|
clearChatHistory: () => void;
|
|
25
|
-
|
|
25
|
+
messageDispatch: (content: string, mode?: InstructionType, applicationId?: number, question?: string, skipUserMessage?: boolean) => Promise<void>;
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
|
-
* Composes UIStateContext and
|
|
28
|
+
* Composes UIStateContext and ChatContext into the unified
|
|
29
29
|
* `{ state, actions, config, … }` shape that the widget UI consumes. New code
|
|
30
30
|
* can either keep using this hook or read the focused contexts directly.
|
|
31
31
|
*/
|
package/dist/src/index.d.ts
CHANGED
|
@@ -12,8 +12,8 @@ export declare const initWidget: (config: MarketrixConfig, container?: HTMLEleme
|
|
|
12
12
|
export declare const unmountWidget: () => void;
|
|
13
13
|
/**
|
|
14
14
|
* Stop RRWeb session recording without unmounting the widget.
|
|
15
|
-
* Keeps the
|
|
16
|
-
*
|
|
15
|
+
* Keeps the RrwebSessionRecorder instance so recording can be restarted with startRecording().
|
|
16
|
+
* RrwebSessionRecorder.stop() aborts in-flight start() via stopRequested.
|
|
17
17
|
*/
|
|
18
18
|
export declare const stopRecording: () => void;
|
|
19
19
|
/**
|
|
@@ -45,10 +45,10 @@ export declare const widgetContract: {
|
|
|
45
45
|
widget_question: "widget_question";
|
|
46
46
|
qa_run_started: "qa_run_started";
|
|
47
47
|
start_simulation: "start_simulation";
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
create_workflow: "create_workflow";
|
|
49
|
+
update_workflow: "update_workflow";
|
|
50
|
+
delete_workflow: "delete_workflow";
|
|
51
|
+
toggle_workflow: "toggle_workflow";
|
|
52
52
|
slack_command: "slack_command";
|
|
53
53
|
}>;
|
|
54
54
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
@@ -79,10 +79,10 @@ export declare const widgetContract: {
|
|
|
79
79
|
widget_question: "widget_question";
|
|
80
80
|
qa_run_started: "qa_run_started";
|
|
81
81
|
start_simulation: "start_simulation";
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
82
|
+
create_workflow: "create_workflow";
|
|
83
|
+
update_workflow: "update_workflow";
|
|
84
|
+
delete_workflow: "delete_workflow";
|
|
85
|
+
toggle_workflow: "toggle_workflow";
|
|
86
86
|
slack_command: "slack_command";
|
|
87
87
|
}>;
|
|
88
88
|
metadata: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
@@ -116,10 +116,10 @@ export declare const widgetContract: {
|
|
|
116
116
|
website: "website";
|
|
117
117
|
}>;
|
|
118
118
|
name: import("zod").ZodString;
|
|
119
|
-
url: import("zod").
|
|
119
|
+
url: import("zod").ZodString;
|
|
120
120
|
workspace_id: import("zod").ZodNumber;
|
|
121
121
|
username: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
122
|
-
allowed_domains: import("zod").ZodDefault<import("zod").
|
|
122
|
+
allowed_domains: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
123
123
|
widgets: import("zod").ZodArray<import("zod").ZodObject<{
|
|
124
124
|
id: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
125
125
|
created_at: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>;
|
|
@@ -187,7 +187,7 @@ export declare const widgetContract: {
|
|
|
187
187
|
}, import("zod/v4/core").$strip>>;
|
|
188
188
|
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
189
189
|
chatCreate: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodString, Record<never, never>, Record<never, never>>;
|
|
190
|
-
|
|
190
|
+
widgetDefaultGet: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
191
191
|
type: import("zod").ZodEnum<{
|
|
192
192
|
widget: "widget";
|
|
193
193
|
}>;
|
|
@@ -336,7 +336,7 @@ export declare const widgetContract: {
|
|
|
336
336
|
task_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
337
337
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
338
338
|
type: import("zod").ZodLiteral<"tool/response">;
|
|
339
|
-
|
|
339
|
+
tool_call_id: import("zod").ZodString;
|
|
340
340
|
success: import("zod").ZodBoolean;
|
|
341
341
|
data: import("zod").ZodOptional<import("zod").ZodString>;
|
|
342
342
|
error: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -345,7 +345,7 @@ export declare const widgetContract: {
|
|
|
345
345
|
type: import("zod").ZodLiteral<"ping">;
|
|
346
346
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
347
347
|
type: import("zod").ZodLiteral<"rrweb/metadata">;
|
|
348
|
-
|
|
348
|
+
rrweb_session_id: import("zod").ZodString;
|
|
349
349
|
chat_id: import("zod").ZodString;
|
|
350
350
|
application_id: import("zod").ZodNumber;
|
|
351
351
|
url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -357,7 +357,7 @@ export declare const widgetContract: {
|
|
|
357
357
|
}, import("zod/v4/core").$strip>>;
|
|
358
358
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
359
359
|
type: import("zod").ZodLiteral<"rrweb/events">;
|
|
360
|
-
|
|
360
|
+
rrweb_session_id: import("zod").ZodString;
|
|
361
361
|
events: import("zod").ZodArray<import("zod").ZodUnknown>;
|
|
362
362
|
}, import("zod/v4/core").$strip>], "type">;
|
|
363
363
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
@@ -393,8 +393,8 @@ export declare const widgetContract: {
|
|
|
393
393
|
timestamp?: number | undefined;
|
|
394
394
|
} | {
|
|
395
395
|
type: "tool/call";
|
|
396
|
-
|
|
397
|
-
|
|
396
|
+
tool_call_id: string;
|
|
397
|
+
browser_tool: string;
|
|
398
398
|
args: Record<string, unknown>;
|
|
399
399
|
mode?: "show" | "do" | undefined;
|
|
400
400
|
explanation?: string | undefined;
|
|
@@ -423,8 +423,8 @@ export declare const widgetContract: {
|
|
|
423
423
|
timestamp?: number | undefined;
|
|
424
424
|
} | {
|
|
425
425
|
type: "tool/call";
|
|
426
|
-
|
|
427
|
-
|
|
426
|
+
tool_call_id: string;
|
|
427
|
+
browser_tool: string;
|
|
428
428
|
args: Record<string, unknown>;
|
|
429
429
|
mode?: "show" | "do" | undefined;
|
|
430
430
|
explanation?: string | undefined;
|
|
@@ -45,10 +45,10 @@ export declare const activityLogCreate: import("@orpc/contract").ContractProcedu
|
|
|
45
45
|
widget_question: "widget_question";
|
|
46
46
|
qa_run_started: "qa_run_started";
|
|
47
47
|
start_simulation: "start_simulation";
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
create_workflow: "create_workflow";
|
|
49
|
+
update_workflow: "update_workflow";
|
|
50
|
+
delete_workflow: "delete_workflow";
|
|
51
|
+
toggle_workflow: "toggle_workflow";
|
|
52
52
|
slack_command: "slack_command";
|
|
53
53
|
}>;
|
|
54
54
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -79,10 +79,10 @@ export declare const activityLogCreate: import("@orpc/contract").ContractProcedu
|
|
|
79
79
|
widget_question: "widget_question";
|
|
80
80
|
qa_run_started: "qa_run_started";
|
|
81
81
|
start_simulation: "start_simulation";
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
82
|
+
create_workflow: "create_workflow";
|
|
83
|
+
update_workflow: "update_workflow";
|
|
84
|
+
delete_workflow: "delete_workflow";
|
|
85
|
+
toggle_workflow: "toggle_workflow";
|
|
86
86
|
slack_command: "slack_command";
|
|
87
87
|
}>;
|
|
88
88
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
@@ -128,10 +128,10 @@ export declare const activityLogSearch: import("@orpc/contract").ContractProcedu
|
|
|
128
128
|
widget_question: "widget_question";
|
|
129
129
|
qa_run_started: "qa_run_started";
|
|
130
130
|
start_simulation: "start_simulation";
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
131
|
+
create_workflow: "create_workflow";
|
|
132
|
+
update_workflow: "update_workflow";
|
|
133
|
+
delete_workflow: "delete_workflow";
|
|
134
|
+
toggle_workflow: "toggle_workflow";
|
|
135
135
|
slack_command: "slack_command";
|
|
136
136
|
}>>;
|
|
137
137
|
application_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -166,10 +166,10 @@ export declare const activityLogSearch: import("@orpc/contract").ContractProcedu
|
|
|
166
166
|
widget_question: "widget_question";
|
|
167
167
|
qa_run_started: "qa_run_started";
|
|
168
168
|
start_simulation: "start_simulation";
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
169
|
+
create_workflow: "create_workflow";
|
|
170
|
+
update_workflow: "update_workflow";
|
|
171
|
+
delete_workflow: "delete_workflow";
|
|
172
|
+
toggle_workflow: "toggle_workflow";
|
|
173
173
|
slack_command: "slack_command";
|
|
174
174
|
}>;
|
|
175
175
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
@@ -242,10 +242,10 @@ export declare const activityLogRoutes: {
|
|
|
242
242
|
widget_question: "widget_question";
|
|
243
243
|
qa_run_started: "qa_run_started";
|
|
244
244
|
start_simulation: "start_simulation";
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
245
|
+
create_workflow: "create_workflow";
|
|
246
|
+
update_workflow: "update_workflow";
|
|
247
|
+
delete_workflow: "delete_workflow";
|
|
248
|
+
toggle_workflow: "toggle_workflow";
|
|
249
249
|
slack_command: "slack_command";
|
|
250
250
|
}>;
|
|
251
251
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -276,10 +276,10 @@ export declare const activityLogRoutes: {
|
|
|
276
276
|
widget_question: "widget_question";
|
|
277
277
|
qa_run_started: "qa_run_started";
|
|
278
278
|
start_simulation: "start_simulation";
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
279
|
+
create_workflow: "create_workflow";
|
|
280
|
+
update_workflow: "update_workflow";
|
|
281
|
+
delete_workflow: "delete_workflow";
|
|
282
|
+
toggle_workflow: "toggle_workflow";
|
|
283
283
|
slack_command: "slack_command";
|
|
284
284
|
}>;
|
|
285
285
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
@@ -325,10 +325,10 @@ export declare const activityLogRoutes: {
|
|
|
325
325
|
widget_question: "widget_question";
|
|
326
326
|
qa_run_started: "qa_run_started";
|
|
327
327
|
start_simulation: "start_simulation";
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
328
|
+
create_workflow: "create_workflow";
|
|
329
|
+
update_workflow: "update_workflow";
|
|
330
|
+
delete_workflow: "delete_workflow";
|
|
331
|
+
toggle_workflow: "toggle_workflow";
|
|
332
332
|
slack_command: "slack_command";
|
|
333
333
|
}>>;
|
|
334
334
|
application_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -363,10 +363,10 @@ export declare const activityLogRoutes: {
|
|
|
363
363
|
widget_question: "widget_question";
|
|
364
364
|
qa_run_started: "qa_run_started";
|
|
365
365
|
start_simulation: "start_simulation";
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
366
|
+
create_workflow: "create_workflow";
|
|
367
|
+
update_workflow: "update_workflow";
|
|
368
|
+
delete_workflow: "delete_workflow";
|
|
369
|
+
toggle_workflow: "toggle_workflow";
|
|
370
370
|
slack_command: "slack_command";
|
|
371
371
|
}>;
|
|
372
372
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
@@ -28,10 +28,10 @@ export declare const ApplicationUpdateSchema: z.ZodObject<{
|
|
|
28
28
|
website: "website";
|
|
29
29
|
}>>;
|
|
30
30
|
name: z.ZodOptional<z.ZodString>;
|
|
31
|
-
url: z.ZodOptional<z.
|
|
31
|
+
url: z.ZodOptional<z.ZodString>;
|
|
32
32
|
password: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
33
33
|
username: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
34
|
-
allowed_domains: z.ZodOptional<z.ZodDefault<z.
|
|
34
|
+
allowed_domains: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
35
35
|
}, z.core.$strip>;
|
|
36
36
|
export type ApplicationUpdateData = z.infer<typeof ApplicationUpdateSchema>;
|
|
37
37
|
export declare const applicationCreate: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
@@ -59,10 +59,10 @@ export declare const applicationCreate: import("@orpc/contract").ContractProcedu
|
|
|
59
59
|
website: "website";
|
|
60
60
|
}>;
|
|
61
61
|
name: z.ZodString;
|
|
62
|
-
url: z.
|
|
62
|
+
url: z.ZodString;
|
|
63
63
|
workspace_id: z.ZodNumber;
|
|
64
64
|
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
|
-
allowed_domains: z.ZodDefault<z.
|
|
65
|
+
allowed_domains: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
66
66
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
67
67
|
export declare const applicationSearch: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
68
68
|
type: z.ZodOptional<z.ZodEnum<{
|
|
@@ -85,10 +85,10 @@ export declare const applicationSearch: import("@orpc/contract").ContractProcedu
|
|
|
85
85
|
website: "website";
|
|
86
86
|
}>;
|
|
87
87
|
name: z.ZodString;
|
|
88
|
-
url: z.
|
|
88
|
+
url: z.ZodString;
|
|
89
89
|
workspace_id: z.ZodNumber;
|
|
90
90
|
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
91
|
-
allowed_domains: z.ZodDefault<z.
|
|
91
|
+
allowed_domains: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
92
92
|
widgets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
93
93
|
id: z.ZodOptional<z.ZodNumber>;
|
|
94
94
|
created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
@@ -171,10 +171,10 @@ export declare const applicationGet: import("@orpc/contract").ContractProcedureB
|
|
|
171
171
|
website: "website";
|
|
172
172
|
}>;
|
|
173
173
|
name: z.ZodString;
|
|
174
|
-
url: z.
|
|
174
|
+
url: z.ZodString;
|
|
175
175
|
workspace_id: z.ZodNumber;
|
|
176
176
|
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
177
|
-
allowed_domains: z.ZodDefault<z.
|
|
177
|
+
allowed_domains: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
178
178
|
widgets: z.ZodArray<z.ZodObject<{
|
|
179
179
|
id: z.ZodOptional<z.ZodNumber>;
|
|
180
180
|
created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
@@ -241,7 +241,7 @@ export declare const applicationGet: import("@orpc/contract").ContractProcedureB
|
|
|
241
241
|
snippet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
242
242
|
}, z.core.$strip>>;
|
|
243
243
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
244
|
-
export declare const
|
|
244
|
+
export declare const applicationGraphGet: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
245
245
|
application_id: z.ZodCoercedNumber<unknown>;
|
|
246
246
|
}, z.core.$strip>, z.ZodObject<{
|
|
247
247
|
nodes: z.ZodArray<z.ZodObject<{
|
|
@@ -277,10 +277,10 @@ export declare const applicationUpdate: import("@orpc/contract").ContractProcedu
|
|
|
277
277
|
website: "website";
|
|
278
278
|
}>>;
|
|
279
279
|
name: z.ZodOptional<z.ZodString>;
|
|
280
|
-
url: z.ZodOptional<z.
|
|
280
|
+
url: z.ZodOptional<z.ZodString>;
|
|
281
281
|
password: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
282
282
|
username: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
283
|
-
allowed_domains: z.ZodOptional<z.ZodDefault<z.
|
|
283
|
+
allowed_domains: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
284
284
|
application_id: z.ZodCoercedNumber<unknown>;
|
|
285
285
|
}, z.core.$strip>, z.ZodObject<{
|
|
286
286
|
id: z.ZodOptional<z.ZodNumber>;
|
|
@@ -292,10 +292,10 @@ export declare const applicationUpdate: import("@orpc/contract").ContractProcedu
|
|
|
292
292
|
website: "website";
|
|
293
293
|
}>;
|
|
294
294
|
name: z.ZodString;
|
|
295
|
-
url: z.
|
|
295
|
+
url: z.ZodString;
|
|
296
296
|
workspace_id: z.ZodNumber;
|
|
297
297
|
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
298
|
-
allowed_domains: z.ZodDefault<z.
|
|
298
|
+
allowed_domains: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
299
299
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
300
300
|
export declare const applicationDelete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
301
301
|
application_id: z.ZodCoercedNumber<unknown>;
|
|
@@ -328,10 +328,10 @@ export declare const applicationRoutes: {
|
|
|
328
328
|
website: "website";
|
|
329
329
|
}>;
|
|
330
330
|
name: z.ZodString;
|
|
331
|
-
url: z.
|
|
331
|
+
url: z.ZodString;
|
|
332
332
|
workspace_id: z.ZodNumber;
|
|
333
333
|
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
334
|
-
allowed_domains: z.ZodDefault<z.
|
|
334
|
+
allowed_domains: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
335
335
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
336
336
|
applicationSearch: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
337
337
|
type: z.ZodOptional<z.ZodEnum<{
|
|
@@ -354,10 +354,10 @@ export declare const applicationRoutes: {
|
|
|
354
354
|
website: "website";
|
|
355
355
|
}>;
|
|
356
356
|
name: z.ZodString;
|
|
357
|
-
url: z.
|
|
357
|
+
url: z.ZodString;
|
|
358
358
|
workspace_id: z.ZodNumber;
|
|
359
359
|
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
360
|
-
allowed_domains: z.ZodDefault<z.
|
|
360
|
+
allowed_domains: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
361
361
|
widgets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
362
362
|
id: z.ZodOptional<z.ZodNumber>;
|
|
363
363
|
created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
@@ -440,10 +440,10 @@ export declare const applicationRoutes: {
|
|
|
440
440
|
website: "website";
|
|
441
441
|
}>;
|
|
442
442
|
name: z.ZodString;
|
|
443
|
-
url: z.
|
|
443
|
+
url: z.ZodString;
|
|
444
444
|
workspace_id: z.ZodNumber;
|
|
445
445
|
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
446
|
-
allowed_domains: z.ZodDefault<z.
|
|
446
|
+
allowed_domains: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
447
447
|
widgets: z.ZodArray<z.ZodObject<{
|
|
448
448
|
id: z.ZodOptional<z.ZodNumber>;
|
|
449
449
|
created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
@@ -510,7 +510,7 @@ export declare const applicationRoutes: {
|
|
|
510
510
|
snippet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
511
511
|
}, z.core.$strip>>;
|
|
512
512
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
513
|
-
|
|
513
|
+
applicationGraphGet: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
514
514
|
application_id: z.ZodCoercedNumber<unknown>;
|
|
515
515
|
}, z.core.$strip>, z.ZodObject<{
|
|
516
516
|
nodes: z.ZodArray<z.ZodObject<{
|
|
@@ -546,10 +546,10 @@ export declare const applicationRoutes: {
|
|
|
546
546
|
website: "website";
|
|
547
547
|
}>>;
|
|
548
548
|
name: z.ZodOptional<z.ZodString>;
|
|
549
|
-
url: z.ZodOptional<z.
|
|
549
|
+
url: z.ZodOptional<z.ZodString>;
|
|
550
550
|
password: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
551
551
|
username: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
552
|
-
allowed_domains: z.ZodOptional<z.ZodDefault<z.
|
|
552
|
+
allowed_domains: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
553
553
|
application_id: z.ZodCoercedNumber<unknown>;
|
|
554
554
|
}, z.core.$strip>, z.ZodObject<{
|
|
555
555
|
id: z.ZodOptional<z.ZodNumber>;
|
|
@@ -561,10 +561,10 @@ export declare const applicationRoutes: {
|
|
|
561
561
|
website: "website";
|
|
562
562
|
}>;
|
|
563
563
|
name: z.ZodString;
|
|
564
|
-
url: z.
|
|
564
|
+
url: z.ZodString;
|
|
565
565
|
workspace_id: z.ZodNumber;
|
|
566
566
|
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
567
|
-
allowed_domains: z.ZodDefault<z.
|
|
567
|
+
allowed_domains: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
568
568
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
569
569
|
applicationDelete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
570
570
|
application_id: z.ZodCoercedNumber<unknown>;
|