@prismatic-io/components-anthropic 0.0.0-stage → 0.0.1

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.
@@ -0,0 +1,362 @@
1
+ //#region node_modules/axios/index.d.ts
2
+ type UppercaseMethod = 'GET' | 'DELETE' | 'HEAD' | 'OPTIONS' | 'POST' | 'PUT' | 'PATCH' | 'PURGE' | 'LINK' | 'UNLINK' | 'QUERY';
3
+ type Method = (UppercaseMethod | Lowercase<UppercaseMethod>) & {};
4
+ type ResponseType = 'arraybuffer' | 'blob' | 'document' | 'json' | 'text' | 'stream' | 'formdata';
5
+ //#endregion
6
+ //#region src/types/messages.d.ts
7
+ interface CountTokensResponse {
8
+ input_tokens: number;
9
+ }
10
+ //#endregion
11
+ //#region npm-dist/.entry.d.ts
12
+ declare const _default: import("@prismatic-io/spectral").CallableComponent<{
13
+ key: "anthropic";
14
+ public: true;
15
+ documentationUrl: "https://prismatic.io/docs/components/anthropic/";
16
+ display: {
17
+ label: string;
18
+ description: string;
19
+ iconPath: string;
20
+ category: "Application Connectors";
21
+ };
22
+ hooks: {
23
+ error: (error: unknown) => unknown;
24
+ };
25
+ actions: {
26
+ rawRequest: import("@prismatic-io/spectral").ActionDefinition<{
27
+ url: {
28
+ comments: string;
29
+ example: "/models";
30
+ default: "/models";
31
+ label: string;
32
+ placeholder: string;
33
+ type: "string";
34
+ required: true;
35
+ clean: (value: unknown) => string;
36
+ };
37
+ method: {
38
+ label: string;
39
+ type: "string";
40
+ required: true;
41
+ model: {
42
+ label: Method;
43
+ value: Method;
44
+ }[];
45
+ comments: string;
46
+ clean: (value: unknown) => string;
47
+ };
48
+ data: {
49
+ label: string;
50
+ placeholder: string;
51
+ type: "string";
52
+ required: false;
53
+ comments: string;
54
+ example: string;
55
+ };
56
+ formData: {
57
+ label: string;
58
+ placeholder: string;
59
+ type: "string";
60
+ collection: "keyvaluelist";
61
+ required: false;
62
+ comments: string;
63
+ example: string;
64
+ };
65
+ fileData: {
66
+ label: string;
67
+ placeholder: string;
68
+ type: "string";
69
+ collection: "keyvaluelist";
70
+ required: false;
71
+ comments: string;
72
+ example: string;
73
+ };
74
+ fileDataFileNames: {
75
+ label: string;
76
+ placeholder: string;
77
+ type: "string";
78
+ collection: "keyvaluelist";
79
+ required: false;
80
+ comments: string;
81
+ clean: (values: any) => Record<string, string> | undefined;
82
+ };
83
+ queryParams: {
84
+ label: string;
85
+ placeholder: string;
86
+ type: "string";
87
+ collection: "keyvaluelist";
88
+ required: false;
89
+ comments: string;
90
+ };
91
+ headers: {
92
+ label: string;
93
+ placeholder: string;
94
+ type: "string";
95
+ collection: "keyvaluelist";
96
+ required: false;
97
+ comments: string;
98
+ example: string;
99
+ };
100
+ responseType: {
101
+ label: string;
102
+ placeholder: string;
103
+ type: "string";
104
+ default: string;
105
+ required: true;
106
+ comments: string;
107
+ model: {
108
+ label: ResponseType;
109
+ value: ResponseType;
110
+ }[];
111
+ clean: (value: unknown) => ResponseType;
112
+ };
113
+ timeout: {
114
+ label: string;
115
+ type: "string";
116
+ required: false;
117
+ comments: string;
118
+ example: string;
119
+ clean: (value: unknown) => number;
120
+ };
121
+ retryDelayMS: {
122
+ label: string;
123
+ placeholder: string;
124
+ type: "string";
125
+ required: false;
126
+ comments: string;
127
+ default: string;
128
+ clean: (value: unknown) => number;
129
+ };
130
+ retryAllErrors: {
131
+ label: string;
132
+ type: "boolean";
133
+ default: string;
134
+ required: false;
135
+ comments: string;
136
+ clean: (value: unknown) => boolean;
137
+ };
138
+ maxRetries: {
139
+ label: string;
140
+ placeholder: string;
141
+ type: "string";
142
+ required: false;
143
+ comments: string;
144
+ default: string;
145
+ clean: (value: unknown) => number;
146
+ };
147
+ useExponentialBackoff: {
148
+ label: string;
149
+ type: "boolean";
150
+ default: string;
151
+ required: false;
152
+ comments: string;
153
+ clean: (value: unknown) => boolean;
154
+ };
155
+ connection: {
156
+ label: string;
157
+ type: "connection";
158
+ required: true;
159
+ comments: string;
160
+ };
161
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
162
+ data: any;
163
+ }>;
164
+ getModel: import("@prismatic-io/spectral").ActionDefinition<{
165
+ connection: {
166
+ label: string;
167
+ type: "connection";
168
+ required: true;
169
+ comments: string;
170
+ };
171
+ model: {
172
+ label: string;
173
+ type: "string";
174
+ required: true;
175
+ default: "claude-sonnet-4-6";
176
+ comments: string;
177
+ dataSource: string;
178
+ clean: (value: unknown, defaultValue?: string) => string;
179
+ placeholder: string;
180
+ example: string;
181
+ };
182
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
183
+ data: {
184
+ created_at: string;
185
+ display_name: string;
186
+ id: string;
187
+ type: string;
188
+ };
189
+ }>;
190
+ listModels: import("@prismatic-io/spectral").ActionDefinition<{
191
+ connection: {
192
+ label: string;
193
+ type: "connection";
194
+ required: true;
195
+ comments: string;
196
+ };
197
+ fetchAll: {
198
+ label: string;
199
+ type: "boolean";
200
+ required: false;
201
+ default: string;
202
+ comments: string;
203
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
204
+ };
205
+ pagination: {
206
+ key: string;
207
+ label: string;
208
+ comments: string;
209
+ inputs: {
210
+ beforeId: {
211
+ label: string;
212
+ type: "string";
213
+ required: false;
214
+ comments: string;
215
+ clean: (value: unknown) => string | undefined;
216
+ placeholder: string;
217
+ example: string;
218
+ };
219
+ afterId: {
220
+ label: string;
221
+ type: "string";
222
+ required: false;
223
+ comments: string;
224
+ clean: (value: unknown) => string | undefined;
225
+ placeholder: string;
226
+ example: string;
227
+ };
228
+ limit: {
229
+ label: string;
230
+ type: "string";
231
+ required: false;
232
+ default: string;
233
+ comments: string;
234
+ clean: (value: unknown) => number;
235
+ placeholder: string;
236
+ example: string;
237
+ };
238
+ };
239
+ } & {
240
+ type: "structuredObject";
241
+ };
242
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
243
+ data: unknown;
244
+ }>;
245
+ chat: import("@prismatic-io/spectral").ActionDefinition<{
246
+ connection: {
247
+ label: string;
248
+ type: "connection";
249
+ required: true;
250
+ comments: string;
251
+ };
252
+ model: {
253
+ label: string;
254
+ type: "string";
255
+ required: true;
256
+ default: "claude-sonnet-4-6";
257
+ comments: string;
258
+ dataSource: string;
259
+ clean: (value: unknown, defaultValue?: string) => string;
260
+ placeholder: string;
261
+ example: string;
262
+ };
263
+ initialMessage: {
264
+ label: string;
265
+ type: "string";
266
+ required: true;
267
+ comments: string;
268
+ clean: (value: unknown, defaultValue?: string) => string;
269
+ placeholder: string;
270
+ example: string;
271
+ };
272
+ systemPrompt: {
273
+ label: string;
274
+ type: "string";
275
+ required: false;
276
+ comments: string;
277
+ clean: (value: unknown) => string | undefined;
278
+ placeholder: string;
279
+ example: string;
280
+ };
281
+ maxTokens: {
282
+ label: string;
283
+ type: "string";
284
+ required: false;
285
+ default: string;
286
+ comments: string;
287
+ clean: (value: unknown) => number | undefined;
288
+ placeholder: string;
289
+ example: string;
290
+ };
291
+ temperature: {
292
+ label: string;
293
+ type: "string";
294
+ required: false;
295
+ default: string;
296
+ comments: string;
297
+ clean: (value: unknown) => number | undefined;
298
+ placeholder: string;
299
+ example: string;
300
+ };
301
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
302
+ data: unknown;
303
+ }>;
304
+ countTokens: import("@prismatic-io/spectral").ActionDefinition<{
305
+ connection: {
306
+ label: string;
307
+ type: "connection";
308
+ required: true;
309
+ comments: string;
310
+ };
311
+ model: {
312
+ label: string;
313
+ type: "string";
314
+ required: true;
315
+ default: "claude-sonnet-4-6";
316
+ comments: string;
317
+ dataSource: string;
318
+ clean: (value: unknown, defaultValue?: string) => string;
319
+ placeholder: string;
320
+ example: string;
321
+ };
322
+ message: {
323
+ label: string;
324
+ type: "string";
325
+ required: true;
326
+ comments: string;
327
+ clean: (value: unknown, defaultValue?: string) => string;
328
+ placeholder: string;
329
+ example: string;
330
+ };
331
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
332
+ data: CountTokensResponse;
333
+ }>;
334
+ };
335
+ connections: import("@prismatic-io/spectral").KeyedConnection<{
336
+ key: "anthropic";
337
+ display: {
338
+ label: string;
339
+ description: string;
340
+ };
341
+ inputs: {
342
+ apiKey: {
343
+ label: string;
344
+ type: "password";
345
+ required: true;
346
+ comments: string;
347
+ shown: true;
348
+ };
349
+ };
350
+ }, "anthropic">[];
351
+ dataSources: {
352
+ selectModel: import("@prismatic-io/spectral").DataSourceDefinition<{
353
+ connection: {
354
+ label: string;
355
+ type: "connection";
356
+ required: true;
357
+ comments: string;
358
+ };
359
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, "picklist">;
360
+ };
361
+ }>;
362
+ export = _default;
package/package.json CHANGED
@@ -1,6 +1,50 @@
1
1
  {
2
2
  "name": "@prismatic-io/components-anthropic",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.0.1",
4
+ "main": "./npm-dist/index.cjs",
5
+ "types": "./npm-dist/index.d.cts",
6
+ "exports": {
7
+ ".": {
8
+ "types": "./npm-dist/index.d.cts",
9
+ "default": "./npm-dist/index.cjs"
10
+ }
11
+ },
12
+ "description": "Generate chat responses and completions using Anthropic's Claude models.",
13
+ "license": "Apache-2.0",
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/prismatic-io/components.git",
17
+ "directory": "components/anthropic"
18
+ },
19
+ "publishConfig": {
20
+ "access": "public"
21
+ },
22
+ "files": [
23
+ "npm-dist",
24
+ "dist"
25
+ ],
26
+ "prismatic": {
27
+ "component": "./dist/index.js"
28
+ },
29
+ "scripts": {
30
+ "lint": "biome lint --write .",
31
+ "format": "biome format --write .",
32
+ "build": "npm run format && npm run lint && tsdown",
33
+ "typecheck": "tsc --noEmit",
34
+ "test": "echo 'no tests'",
35
+ "prepare": "npm run build",
36
+ "publish:platform": "npm run build && prism components:publish"
37
+ },
38
+ "peerDependencies": {
39
+ "@prismatic-io/spectral": "^10.38.5"
40
+ },
41
+ "dependencies": {},
42
+ "devDependencies": {
43
+ "@biomejs/biome": "2.5.1",
44
+ "@types/node": "^26.2.0",
45
+ "tsdown": "0.22.3",
46
+ "typescript": "6.0.3",
47
+ "vitest": "4.1.9",
48
+ "@prismatic-io/spectral": "^10.38.5"
49
+ }
50
+ }