@palettelab/sdk 0.1.20 → 0.1.21
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 +45 -1
- package/dist/components/index.d.mts +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/hooks/index.d.mts +2 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/{index-D0i35Hem.d.ts → index-CGSwI4TZ.d.ts} +1 -1
- package/dist/{index-DsfTFnZb.d.mts → index-CmY9M7Rg.d.mts} +1 -1
- package/dist/index.d.mts +163 -4
- package/dist/index.d.ts +163 -4
- package/dist/index.js +255 -1
- package/dist/index.mjs +250 -1
- package/dist/{plugin-dpLzOtF6.d.mts → plugin-DXqw6d0s.d.mts} +37 -1
- package/dist/{plugin-dpLzOtF6.d.ts → plugin-DXqw6d0s.d.ts} +37 -1
- package/dist/router/index.d.mts +2 -2
- package/dist/router/index.d.ts +2 -2
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -119,6 +119,7 @@ interface PluginManifest {
|
|
|
119
119
|
connections?: PluginConnectionDefinition[];
|
|
120
120
|
provides?: PluginProvidesDefinition;
|
|
121
121
|
requires?: PluginRequiresDefinition;
|
|
122
|
+
consumes?: PluginConsumesDefinition;
|
|
122
123
|
public_routes?: string[];
|
|
123
124
|
rate_limit?: {
|
|
124
125
|
per_minute?: number;
|
|
@@ -148,10 +149,36 @@ interface PluginServiceDefinition {
|
|
|
148
149
|
description?: string;
|
|
149
150
|
permissions?: string[];
|
|
150
151
|
routes?: PluginServiceRouteDefinition[];
|
|
152
|
+
methods?: PluginServiceMethodDefinition[];
|
|
153
|
+
}
|
|
154
|
+
interface PluginServiceMethodDefinition {
|
|
155
|
+
id?: string;
|
|
156
|
+
name?: string;
|
|
157
|
+
scope?: string;
|
|
158
|
+
version?: string;
|
|
159
|
+
label?: string;
|
|
160
|
+
description?: string;
|
|
161
|
+
input_schema?: Record<string, unknown> | string;
|
|
162
|
+
input?: Record<string, unknown> | string;
|
|
163
|
+
output_schema?: Record<string, unknown> | string;
|
|
164
|
+
output?: Record<string, unknown> | string;
|
|
165
|
+
route_method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
166
|
+
route_path?: string;
|
|
167
|
+
}
|
|
168
|
+
interface PluginEventDefinition {
|
|
169
|
+
id?: string;
|
|
170
|
+
topic?: string;
|
|
171
|
+
name?: string;
|
|
172
|
+
version?: string;
|
|
173
|
+
label?: string;
|
|
174
|
+
description?: string;
|
|
175
|
+
payload_schema?: Record<string, unknown> | string;
|
|
176
|
+
schema?: Record<string, unknown> | string;
|
|
151
177
|
}
|
|
152
178
|
interface PluginProvidesDefinition {
|
|
179
|
+
namespace?: string;
|
|
153
180
|
services?: PluginServiceDefinition[];
|
|
154
|
-
events?: string
|
|
181
|
+
events?: Array<string | PluginEventDefinition>;
|
|
155
182
|
}
|
|
156
183
|
interface PluginAppDependencyDefinition {
|
|
157
184
|
id: string;
|
|
@@ -167,6 +194,15 @@ interface PluginRequiresDefinition {
|
|
|
167
194
|
services?: PluginServiceDependencyDefinition[];
|
|
168
195
|
events?: string[];
|
|
169
196
|
}
|
|
197
|
+
interface PluginConsumedBrokerTargetDefinition {
|
|
198
|
+
target: string;
|
|
199
|
+
required?: boolean;
|
|
200
|
+
reason?: string;
|
|
201
|
+
}
|
|
202
|
+
interface PluginConsumesDefinition {
|
|
203
|
+
services?: Array<string | PluginConsumedBrokerTargetDefinition>;
|
|
204
|
+
events?: Array<string | PluginConsumedBrokerTargetDefinition>;
|
|
205
|
+
}
|
|
170
206
|
interface PluginAgentDefinition {
|
|
171
207
|
name: string;
|
|
172
208
|
field: string;
|
package/dist/router/index.d.mts
CHANGED
|
@@ -59,13 +59,14 @@ declare function Link({ href, replace, onClick, children, ...props }: {
|
|
|
59
59
|
title?: string | undefined | undefined;
|
|
60
60
|
slot?: string | undefined | undefined;
|
|
61
61
|
style?: react.CSSProperties | undefined;
|
|
62
|
+
id?: string | undefined | undefined;
|
|
63
|
+
target?: react.HTMLAttributeAnchorTarget | undefined;
|
|
62
64
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
63
65
|
type?: string | undefined | undefined;
|
|
64
66
|
download?: any;
|
|
65
67
|
hrefLang?: string | undefined | undefined;
|
|
66
68
|
media?: string | undefined | undefined;
|
|
67
69
|
ping?: string | undefined | undefined;
|
|
68
|
-
target?: react.HTMLAttributeAnchorTarget | undefined;
|
|
69
70
|
referrerPolicy?: react.HTMLAttributeReferrerPolicy | undefined;
|
|
70
71
|
defaultChecked?: boolean | undefined | undefined;
|
|
71
72
|
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
@@ -80,7 +81,6 @@ declare function Link({ href, replace, onClick, children, ...props }: {
|
|
|
80
81
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
81
82
|
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
82
83
|
hidden?: boolean | undefined | undefined;
|
|
83
|
-
id?: string | undefined | undefined;
|
|
84
84
|
lang?: string | undefined | undefined;
|
|
85
85
|
nonce?: string | undefined | undefined;
|
|
86
86
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
package/dist/router/index.d.ts
CHANGED
|
@@ -59,13 +59,14 @@ declare function Link({ href, replace, onClick, children, ...props }: {
|
|
|
59
59
|
title?: string | undefined | undefined;
|
|
60
60
|
slot?: string | undefined | undefined;
|
|
61
61
|
style?: react.CSSProperties | undefined;
|
|
62
|
+
id?: string | undefined | undefined;
|
|
63
|
+
target?: react.HTMLAttributeAnchorTarget | undefined;
|
|
62
64
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
63
65
|
type?: string | undefined | undefined;
|
|
64
66
|
download?: any;
|
|
65
67
|
hrefLang?: string | undefined | undefined;
|
|
66
68
|
media?: string | undefined | undefined;
|
|
67
69
|
ping?: string | undefined | undefined;
|
|
68
|
-
target?: react.HTMLAttributeAnchorTarget | undefined;
|
|
69
70
|
referrerPolicy?: react.HTMLAttributeReferrerPolicy | undefined;
|
|
70
71
|
defaultChecked?: boolean | undefined | undefined;
|
|
71
72
|
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
@@ -80,7 +81,6 @@ declare function Link({ href, replace, onClick, children, ...props }: {
|
|
|
80
81
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
81
82
|
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
82
83
|
hidden?: boolean | undefined | undefined;
|
|
83
|
-
id?: string | undefined | undefined;
|
|
84
84
|
lang?: string | undefined | undefined;
|
|
85
85
|
nonce?: string | undefined | undefined;
|
|
86
86
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as Agent, a as AgentConfig, b as AppCategory, c as AuthContextValue, O as OrgSummary, d as PaletteLanguage, P as PlatformContext, e as PluginAgentDefinition, f as PluginComponentProps, g as PluginConnectionDefinition, h as PluginManifest, i as PluginToolDefinition, U as User } from '../plugin-
|
|
1
|
+
export { A as Agent, a as AgentConfig, b as AppCategory, c as AuthContextValue, O as OrgSummary, d as PaletteLanguage, P as PlatformContext, e as PluginAgentDefinition, f as PluginComponentProps, g as PluginConnectionDefinition, h as PluginManifest, i as PluginToolDefinition, U as User } from '../plugin-DXqw6d0s.mjs';
|
|
2
2
|
export { C as ChatAttachment, c as ChatMessage, d as ChatThread, D as DataRoom, b as DataRoomFile, a as DataRoomFolder, e as DataRoomPermission, T as Task, f as TaskAgentSnippet, g as TaskCreatePayload, h as TaskPriority, i as TaskStats, j as TaskStatus, k as TaskType, l as TaskUpdatePayload } from '../data-room-Dtd9LLHf.mjs';
|
|
3
3
|
|
|
4
4
|
interface AgentResource {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as Agent, a as AgentConfig, b as AppCategory, c as AuthContextValue, O as OrgSummary, d as PaletteLanguage, P as PlatformContext, e as PluginAgentDefinition, f as PluginComponentProps, g as PluginConnectionDefinition, h as PluginManifest, i as PluginToolDefinition, U as User } from '../plugin-
|
|
1
|
+
export { A as Agent, a as AgentConfig, b as AppCategory, c as AuthContextValue, O as OrgSummary, d as PaletteLanguage, P as PlatformContext, e as PluginAgentDefinition, f as PluginComponentProps, g as PluginConnectionDefinition, h as PluginManifest, i as PluginToolDefinition, U as User } from '../plugin-DXqw6d0s.js';
|
|
2
2
|
export { C as ChatAttachment, c as ChatMessage, d as ChatThread, D as DataRoom, b as DataRoomFile, a as DataRoomFolder, e as DataRoomPermission, T as Task, f as TaskAgentSnippet, g as TaskCreatePayload, h as TaskPriority, i as TaskStats, j as TaskStatus, k as TaskType, l as TaskUpdatePayload } from '../data-room-Dtd9LLHf.js';
|
|
3
3
|
|
|
4
4
|
interface AgentResource {
|