@superblocksteam/sdk-api 2.0.105-next.5 → 2.0.106-next.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/README.md +244 -10
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/integrations/declarations.d.ts +0 -10
- package/dist/integrations/declarations.d.ts.map +1 -1
- package/dist/integrations/declarations.js +0 -9
- package/dist/integrations/declarations.js.map +1 -1
- package/dist/integrations/index.d.ts +1 -3
- package/dist/integrations/index.d.ts.map +1 -1
- package/dist/integrations/index.js +1 -2
- package/dist/integrations/index.js.map +1 -1
- package/dist/integrations/registry.d.ts +0 -1
- package/dist/integrations/registry.d.ts.map +1 -1
- package/dist/integrations/registry.js +0 -4
- package/dist/integrations/registry.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +1 -1
- package/src/index.ts +0 -3
- package/src/integrations/declarations.ts +0 -14
- package/src/integrations/groq/README.md +8 -8
- package/src/integrations/index.ts +0 -6
- package/src/integrations/perplexity/README.md +39 -48
- package/src/integrations/registry.ts +0 -5
- package/src/types.ts +1 -1
- package/dist/integrations/redis/client.d.ts +0 -43
- package/dist/integrations/redis/client.d.ts.map +0 -1
- package/dist/integrations/redis/client.js +0 -142
- package/dist/integrations/redis/client.js.map +0 -1
- package/dist/integrations/redis/index.d.ts +0 -8
- package/dist/integrations/redis/index.d.ts.map +0 -1
- package/dist/integrations/redis/index.js +0 -7
- package/dist/integrations/redis/index.js.map +0 -1
- package/dist/integrations/redis/types.d.ts +0 -137
- package/dist/integrations/redis/types.d.ts.map +0 -1
- package/dist/integrations/redis/types.js +0 -5
- package/dist/integrations/redis/types.js.map +0 -1
- package/src/integrations/redis/README.md +0 -200
- package/src/integrations/redis/client.ts +0 -208
- package/src/integrations/redis/index.ts +0 -8
- package/src/integrations/redis/types.ts +0 -167
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/integrations/registry.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAuCH,OAAO,KAAK,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/integrations/registry.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAuCH,OAAO,KAAK,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AA4B3E;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkEpB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAC3B,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC;AAE7D;;;;;;;;;;GAUG;AACH,MAAM,WAAW,aAAa;IAC5B,6EAA6E;IAC7E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yDAAyD;IACzD,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;;;;;GAUG;AACH,MAAM,MAAM,aAAa,GAAG,CAC1B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAClC,QAAQ,CAAC,EAAE,aAAa,KACrB,OAAO,CAAC,OAAO,CAAC,CAAC;AAEtB;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,sDAAsD;IACtD,MAAM,EAAE,iBAAiB,CAAC;IAE1B,qEAAqE;IACrE,YAAY,EAAE,aAAa,CAAC;CAC7B;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,YAAY,CAC1B,OAAO,EAAE,mBAAmB,GAC3B,qBAAqB,CAgMvB;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,MAAM,GACf,QAAQ,IAAI,iBAAiB,CAI/B"}
|
|
@@ -60,7 +60,6 @@ import { GCSClientImpl } from "./gcs/index.js";
|
|
|
60
60
|
import { GoogleSheetsClientImpl } from "./gsheets/index.js";
|
|
61
61
|
import { LakebaseClientImpl } from "./lakebase/index.js";
|
|
62
62
|
import { MongoDBClientImpl } from "./mongodb/index.js";
|
|
63
|
-
import { RedisClientImpl } from "./redis/index.js";
|
|
64
63
|
import { S3ClientImpl } from "./s3/index.js";
|
|
65
64
|
import { SalesforceClientImpl } from "./salesforce/index.js";
|
|
66
65
|
import { SmtpClientImpl } from "./smtp/index.js";
|
|
@@ -129,7 +128,6 @@ export const SUPPORTED_PLUGINS = {
|
|
|
129
128
|
gcs: "gcs",
|
|
130
129
|
gsheets: "gsheets",
|
|
131
130
|
salesforce: "salesforce",
|
|
132
|
-
redis: "redis",
|
|
133
131
|
"superblocks-ocr": "superblocks-ocr",
|
|
134
132
|
// SQL databases (continued)
|
|
135
133
|
lakebase: "lakebase",
|
|
@@ -277,8 +275,6 @@ export function createClient(options) {
|
|
|
277
275
|
return new GoogleSheetsClientImpl(config, executeQuery);
|
|
278
276
|
case SUPPORTED_PLUGINS.salesforce:
|
|
279
277
|
return new SalesforceClientImpl(config, executeQuery);
|
|
280
|
-
case SUPPORTED_PLUGINS.redis:
|
|
281
|
-
return new RedisClientImpl(config, executeQuery);
|
|
282
278
|
case SUPPORTED_PLUGINS["superblocks-ocr"]:
|
|
283
279
|
return new SuperblocksOCRClientImpl(config, executeQuery);
|
|
284
280
|
case SUPPORTED_PLUGINS.lakebase:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../src/integrations/registry.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AA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K,iBAAiB,CAAC,IAAI;YACzB,OAAO,IAAI,cAAc,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;QAElD,KAAK,iBAAiB,CAAC,kBAAkB;YACvC,OAAO,IAAI,kCAAkC,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;QAEtE;YACE,MAAM,IAAI,KAAK,CACb,uBAAuB,MAAM,CAAC,QAAQ,IAAI;gBACxC,sBAAsB,MAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CACtE,CAAC;IACN,CAAC;AACH,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,iBAAiB,CAC/B,QAAgB;IAEhB,OAAO,MAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,QAAQ,CAC9C,QAA6B,CAC9B,CAAC;AACJ,CAAC"}
|
package/dist/types.d.ts
CHANGED
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -137,7 +137,6 @@ export {
|
|
|
137
137
|
gcs,
|
|
138
138
|
googleSheets,
|
|
139
139
|
salesforce,
|
|
140
|
-
redis,
|
|
141
140
|
superblocksOcr,
|
|
142
141
|
restApiIntegration,
|
|
143
142
|
getIntegrationDeclarations,
|
|
@@ -201,7 +200,6 @@ export {
|
|
|
201
200
|
type GCSRef,
|
|
202
201
|
type GoogleSheetsRef,
|
|
203
202
|
type SalesforceRef,
|
|
204
|
-
type RedisRef,
|
|
205
203
|
type SuperblocksOCRRef,
|
|
206
204
|
type RestApiIntegrationRef,
|
|
207
205
|
type LakebaseRef,
|
|
@@ -260,7 +258,6 @@ export type {
|
|
|
260
258
|
SalesforceCrudAction,
|
|
261
259
|
SalesforceBulkAction,
|
|
262
260
|
} from "./integrations/salesforce/index.js";
|
|
263
|
-
export type { RedisClient } from "./integrations/redis/index.js";
|
|
264
261
|
export type { S3Client } from "./integrations/s3/index.js";
|
|
265
262
|
export type { GCSClient } from "./integrations/gcs/index.js";
|
|
266
263
|
export type { GoogleSheetsClient } from "./integrations/gsheets/index.js";
|
|
@@ -74,7 +74,6 @@ import type { OracleDBClient } from "./oracledb/index.js";
|
|
|
74
74
|
import type { PagerDutyClient } from "./pagerduty/index.js";
|
|
75
75
|
import type { PerplexityClient } from "./perplexity/index.js";
|
|
76
76
|
import type { PostgresClient } from "./postgres/index.js";
|
|
77
|
-
import type { RedisClient } from "./redis/index.js";
|
|
78
77
|
import type { RedshiftClient } from "./redshift/index.js";
|
|
79
78
|
import type { RestApiIntegrationPluginClient } from "./restapiintegration/index.js";
|
|
80
79
|
import type { S3Client } from "./s3/index.js";
|
|
@@ -321,9 +320,6 @@ export type GoogleSheetsRef = IntegrationRef<"gsheets", GoogleSheetsClient>;
|
|
|
321
320
|
/** Reference to a Salesforce integration */
|
|
322
321
|
export type SalesforceRef = IntegrationRef<"salesforce", SalesforceClient>;
|
|
323
322
|
|
|
324
|
-
/** Reference to a Redis integration */
|
|
325
|
-
export type RedisRef = IntegrationRef<"redis", RedisClient>;
|
|
326
|
-
|
|
327
323
|
/** Reference to a Superblocks OCR integration */
|
|
328
324
|
export type SuperblocksOCRRef = IntegrationRef<
|
|
329
325
|
"superblocks-ocr",
|
|
@@ -993,16 +989,6 @@ export function salesforce<T extends string>(
|
|
|
993
989
|
return createRef<"salesforce", SalesforceClient, T>("salesforce", id);
|
|
994
990
|
}
|
|
995
991
|
|
|
996
|
-
/**
|
|
997
|
-
* Declare a Redis integration.
|
|
998
|
-
*
|
|
999
|
-
* @param id - The integration ID (UUID)
|
|
1000
|
-
* @returns An integration reference for use in the API config
|
|
1001
|
-
*/
|
|
1002
|
-
export function redis<T extends string>(id: LiteralString<T>): RedisRef {
|
|
1003
|
-
return createRef<"redis", RedisClient, T>("redis", id);
|
|
1004
|
-
}
|
|
1005
|
-
|
|
1006
992
|
/**
|
|
1007
993
|
* Declare a Superblocks OCR integration.
|
|
1008
994
|
*
|
|
@@ -87,7 +87,7 @@ export default api({
|
|
|
87
87
|
method: "POST",
|
|
88
88
|
path: "/v1/chat/completions",
|
|
89
89
|
body: {
|
|
90
|
-
model: "llama-3.
|
|
90
|
+
model: "llama-3.3-70b-versatile",
|
|
91
91
|
messages: [
|
|
92
92
|
{ role: "system", content: "You are a helpful assistant." },
|
|
93
93
|
{ role: "user", content: prompt },
|
|
@@ -105,13 +105,13 @@ export default api({
|
|
|
105
105
|
### Using Different Models
|
|
106
106
|
|
|
107
107
|
```typescript
|
|
108
|
-
// Llama 3.
|
|
108
|
+
// Llama 3.3 70B - Best balance of speed and quality
|
|
109
109
|
const llama70b = await ctx.integrations.groq.apiRequest(
|
|
110
110
|
{
|
|
111
111
|
method: "POST",
|
|
112
112
|
path: "/v1/chat/completions",
|
|
113
113
|
body: {
|
|
114
|
-
model: "llama-3.
|
|
114
|
+
model: "llama-3.3-70b-versatile",
|
|
115
115
|
messages: [{ role: "user", content: "Hello" }],
|
|
116
116
|
},
|
|
117
117
|
},
|
|
@@ -131,13 +131,13 @@ const llama8b = await ctx.integrations.groq.apiRequest(
|
|
|
131
131
|
{ response: ChatCompletionResponseSchema },
|
|
132
132
|
);
|
|
133
133
|
|
|
134
|
-
//
|
|
135
|
-
const
|
|
134
|
+
// GPT-OSS 120B - Good for code and reasoning
|
|
135
|
+
const gptOss = await ctx.integrations.groq.apiRequest(
|
|
136
136
|
{
|
|
137
137
|
method: "POST",
|
|
138
138
|
path: "/v1/chat/completions",
|
|
139
139
|
body: {
|
|
140
|
-
model: "
|
|
140
|
+
model: "openai/gpt-oss-120b",
|
|
141
141
|
messages: [{ role: "user", content: "Hello" }],
|
|
142
142
|
},
|
|
143
143
|
},
|
|
@@ -178,7 +178,7 @@ const result = await ctx.integrations.groq.apiRequest(
|
|
|
178
178
|
method: "POST",
|
|
179
179
|
path: "/v1/chat/completions",
|
|
180
180
|
body: {
|
|
181
|
-
model: "llama-3.
|
|
181
|
+
model: "llama-3.3-70b-versatile",
|
|
182
182
|
messages: [{ role: "user", content: "What's the weather in Tokyo?" }],
|
|
183
183
|
tools: [
|
|
184
184
|
{
|
|
@@ -228,7 +228,7 @@ const result = await ctx.integrations.groq.apiRequest(
|
|
|
228
228
|
method: "POST",
|
|
229
229
|
path: "/v1/chat/completions",
|
|
230
230
|
body: {
|
|
231
|
-
model: "llama-3.
|
|
231
|
+
model: "llama-3.3-70b-versatile",
|
|
232
232
|
messages: [
|
|
233
233
|
{
|
|
234
234
|
role: "user",
|
|
@@ -70,7 +70,6 @@ export {
|
|
|
70
70
|
gcs,
|
|
71
71
|
googleSheets,
|
|
72
72
|
salesforce,
|
|
73
|
-
redis,
|
|
74
73
|
superblocksOcr,
|
|
75
74
|
lakebase,
|
|
76
75
|
snowflakePostgres,
|
|
@@ -141,7 +140,6 @@ export {
|
|
|
141
140
|
type GCSRef,
|
|
142
141
|
type GoogleSheetsRef,
|
|
143
142
|
type SalesforceRef,
|
|
144
|
-
type RedisRef,
|
|
145
143
|
type SuperblocksOCRRef,
|
|
146
144
|
type LakebaseRef,
|
|
147
145
|
type SnowflakePostgresRef,
|
|
@@ -405,10 +403,6 @@ export type {
|
|
|
405
403
|
} from "./salesforce/index.js";
|
|
406
404
|
export { SalesforceClientImpl } from "./salesforce/index.js";
|
|
407
405
|
|
|
408
|
-
// Redis client
|
|
409
|
-
export type { RedisClient } from "./redis/index.js";
|
|
410
|
-
export { RedisClientImpl } from "./redis/index.js";
|
|
411
|
-
|
|
412
406
|
// Superblocks OCR client
|
|
413
407
|
export type { SuperblocksOCRClient } from "./superblocks-ocr/index.js";
|
|
414
408
|
export { SuperblocksOCRClientImpl } from "./superblocks-ocr/index.js";
|
|
@@ -58,7 +58,7 @@ export default api({
|
|
|
58
58
|
method: "POST",
|
|
59
59
|
path: "/chat/completions",
|
|
60
60
|
body: {
|
|
61
|
-
model: "
|
|
61
|
+
model: "sonar-pro",
|
|
62
62
|
messages: [
|
|
63
63
|
{
|
|
64
64
|
role: "system",
|
|
@@ -82,40 +82,40 @@ export default api({
|
|
|
82
82
|
### Using Different Models
|
|
83
83
|
|
|
84
84
|
```typescript
|
|
85
|
-
//
|
|
86
|
-
const
|
|
85
|
+
// Standard search model - Fast, lightweight
|
|
86
|
+
const result = await ctx.integrations.perplexity.apiRequest(
|
|
87
87
|
{
|
|
88
88
|
method: "POST",
|
|
89
89
|
path: "/chat/completions",
|
|
90
90
|
body: {
|
|
91
|
-
model: "
|
|
91
|
+
model: "sonar", // Fast search
|
|
92
92
|
messages: [{ role: "user", content: "What's the latest news about AI?" }],
|
|
93
93
|
},
|
|
94
94
|
},
|
|
95
95
|
{ response: ChatCompletionResponseSchema },
|
|
96
96
|
);
|
|
97
97
|
|
|
98
|
-
//
|
|
99
|
-
const
|
|
98
|
+
// Pro search model - Deeper content understanding
|
|
99
|
+
const proResult = await ctx.integrations.perplexity.apiRequest(
|
|
100
100
|
{
|
|
101
101
|
method: "POST",
|
|
102
102
|
path: "/chat/completions",
|
|
103
103
|
body: {
|
|
104
|
-
model: "
|
|
104
|
+
model: "sonar-pro", // Advanced search
|
|
105
105
|
messages: [{ role: "user", content: "Explain quantum computing" }],
|
|
106
106
|
},
|
|
107
107
|
},
|
|
108
108
|
{ response: ChatCompletionResponseSchema },
|
|
109
109
|
);
|
|
110
110
|
|
|
111
|
-
//
|
|
112
|
-
const
|
|
111
|
+
// Reasoning model - Multi-step Chain-of-Thought
|
|
112
|
+
const reasoningResult = await ctx.integrations.perplexity.apiRequest(
|
|
113
113
|
{
|
|
114
114
|
method: "POST",
|
|
115
115
|
path: "/chat/completions",
|
|
116
116
|
body: {
|
|
117
|
-
model: "
|
|
118
|
-
messages: [{ role: "user", content: "
|
|
117
|
+
model: "sonar-reasoning-pro",
|
|
118
|
+
messages: [{ role: "user", content: "Analyze the pros and cons of..." }],
|
|
119
119
|
},
|
|
120
120
|
},
|
|
121
121
|
{ response: ChatCompletionResponseSchema },
|
|
@@ -130,7 +130,7 @@ const result = await ctx.integrations.perplexity.apiRequest(
|
|
|
130
130
|
method: "POST",
|
|
131
131
|
path: "/chat/completions",
|
|
132
132
|
body: {
|
|
133
|
-
model: "
|
|
133
|
+
model: "sonar-pro",
|
|
134
134
|
messages: [
|
|
135
135
|
{
|
|
136
136
|
role: "user",
|
|
@@ -152,7 +152,7 @@ const result = await ctx.integrations.perplexity.apiRequest(
|
|
|
152
152
|
method: "POST",
|
|
153
153
|
path: "/chat/completions",
|
|
154
154
|
body: {
|
|
155
|
-
model: "
|
|
155
|
+
model: "sonar-pro",
|
|
156
156
|
messages: [
|
|
157
157
|
{ role: "user", content: "Recent developments in electric vehicles" },
|
|
158
158
|
],
|
|
@@ -171,7 +171,7 @@ const result = await ctx.integrations.perplexity.apiRequest(
|
|
|
171
171
|
method: "POST",
|
|
172
172
|
path: "/chat/completions",
|
|
173
173
|
body: {
|
|
174
|
-
model: "
|
|
174
|
+
model: "sonar",
|
|
175
175
|
messages: [
|
|
176
176
|
{ role: "user", content: "What is the capital of France?" },
|
|
177
177
|
{ role: "assistant", content: "The capital of France is Paris." },
|
|
@@ -203,16 +203,22 @@ await ctx.integrations.perplexity.apiRequest(
|
|
|
203
203
|
);
|
|
204
204
|
```
|
|
205
205
|
|
|
206
|
-
###
|
|
206
|
+
### Model Selection
|
|
207
207
|
|
|
208
|
-
|
|
208
|
+
Choose the right model for your use case:
|
|
209
209
|
|
|
210
210
|
```typescript
|
|
211
|
-
// For
|
|
212
|
-
const model = "
|
|
211
|
+
// For quick answers with web search
|
|
212
|
+
const model = "sonar";
|
|
213
|
+
|
|
214
|
+
// For complex queries requiring deeper understanding
|
|
215
|
+
const model = "sonar-pro";
|
|
213
216
|
|
|
214
|
-
// For
|
|
215
|
-
const model = "
|
|
217
|
+
// For multi-step reasoning tasks
|
|
218
|
+
const model = "sonar-reasoning-pro";
|
|
219
|
+
|
|
220
|
+
// For in-depth research
|
|
221
|
+
const model = "sonar-deep-research";
|
|
216
222
|
```
|
|
217
223
|
|
|
218
224
|
### Citations May Be Empty
|
|
@@ -229,47 +235,32 @@ if (sources.length === 0) {
|
|
|
229
235
|
}
|
|
230
236
|
```
|
|
231
237
|
|
|
232
|
-
###
|
|
238
|
+
### Available Models
|
|
233
239
|
|
|
234
|
-
Perplexity
|
|
240
|
+
Perplexity offers the following Sonar models. Check the [Perplexity models page](https://docs.perplexity.ai/docs/sonar/models) for the latest options:
|
|
235
241
|
|
|
236
242
|
```typescript
|
|
237
|
-
// Pattern: llama-3.1-sonar-{size}-{context}-{type}
|
|
238
|
-
// These are examples — verify current model names in the Perplexity docs
|
|
239
243
|
const models = [
|
|
240
|
-
"
|
|
241
|
-
"
|
|
242
|
-
"
|
|
243
|
-
"
|
|
244
|
+
"sonar", // Fast, lightweight search
|
|
245
|
+
"sonar-pro", // Advanced search with deeper understanding
|
|
246
|
+
"sonar-reasoning-pro", // Multi-step Chain-of-Thought reasoning
|
|
247
|
+
"sonar-deep-research", // In-depth research for complex queries
|
|
244
248
|
];
|
|
245
249
|
```
|
|
246
250
|
|
|
247
|
-
### Search Parameters
|
|
251
|
+
### Search Parameters
|
|
248
252
|
|
|
249
|
-
|
|
250
|
-
// WRONG - search_domain_filter with chat model
|
|
251
|
-
await ctx.integrations.perplexity.apiRequest(
|
|
252
|
-
{
|
|
253
|
-
method: "POST",
|
|
254
|
-
path: "/chat/completions",
|
|
255
|
-
body: {
|
|
256
|
-
model: "llama-3.1-sonar-large-128k-chat", // Chat model
|
|
257
|
-
messages: [...],
|
|
258
|
-
search_domain_filter: ["example.com"], // Ignored!
|
|
259
|
-
},
|
|
260
|
-
},
|
|
261
|
-
{ response: schema }
|
|
262
|
-
);
|
|
253
|
+
All Sonar models support search by default. You can use search filters to refine results:
|
|
263
254
|
|
|
264
|
-
|
|
255
|
+
```typescript
|
|
265
256
|
await ctx.integrations.perplexity.apiRequest(
|
|
266
257
|
{
|
|
267
258
|
method: "POST",
|
|
268
259
|
path: "/chat/completions",
|
|
269
260
|
body: {
|
|
270
|
-
model: "
|
|
261
|
+
model: "sonar-pro",
|
|
271
262
|
messages: [...],
|
|
272
|
-
search_domain_filter: ["example.com"], //
|
|
263
|
+
search_domain_filter: ["example.com"], // Limit search to specific domains
|
|
273
264
|
},
|
|
274
265
|
},
|
|
275
266
|
{ response: schema }
|
|
@@ -296,5 +287,5 @@ try {
|
|
|
296
287
|
## API Reference
|
|
297
288
|
|
|
298
289
|
- [Perplexity API Documentation](https://docs.perplexity.ai/)
|
|
299
|
-
- [
|
|
300
|
-
- [Models](https://docs.perplexity.ai/docs/
|
|
290
|
+
- [Sonar API](https://docs.perplexity.ai/api-reference/sonar-post)
|
|
291
|
+
- [Models](https://docs.perplexity.ai/docs/sonar/models)
|
|
@@ -62,7 +62,6 @@ import { GCSClientImpl } from "./gcs/index.js";
|
|
|
62
62
|
import { GoogleSheetsClientImpl } from "./gsheets/index.js";
|
|
63
63
|
import { LakebaseClientImpl } from "./lakebase/index.js";
|
|
64
64
|
import { MongoDBClientImpl } from "./mongodb/index.js";
|
|
65
|
-
import { RedisClientImpl } from "./redis/index.js";
|
|
66
65
|
import { S3ClientImpl } from "./s3/index.js";
|
|
67
66
|
import { SalesforceClientImpl } from "./salesforce/index.js";
|
|
68
67
|
import { SmtpClientImpl } from "./smtp/index.js";
|
|
@@ -132,7 +131,6 @@ export const SUPPORTED_PLUGINS = {
|
|
|
132
131
|
gcs: "gcs",
|
|
133
132
|
gsheets: "gsheets",
|
|
134
133
|
salesforce: "salesforce",
|
|
135
|
-
redis: "redis",
|
|
136
134
|
"superblocks-ocr": "superblocks-ocr",
|
|
137
135
|
// SQL databases (continued)
|
|
138
136
|
lakebase: "lakebase",
|
|
@@ -388,9 +386,6 @@ export function createClient(
|
|
|
388
386
|
case SUPPORTED_PLUGINS.salesforce:
|
|
389
387
|
return new SalesforceClientImpl(config, executeQuery);
|
|
390
388
|
|
|
391
|
-
case SUPPORTED_PLUGINS.redis:
|
|
392
|
-
return new RedisClientImpl(config, executeQuery);
|
|
393
|
-
|
|
394
389
|
case SUPPORTED_PLUGINS["superblocks-ocr"]:
|
|
395
390
|
return new SuperblocksOCRClientImpl(config, executeQuery);
|
|
396
391
|
|
package/src/types.ts
CHANGED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Redis client implementation.
|
|
3
|
-
*
|
|
4
|
-
* Uses the native Redis plugin type from @superblocksteam/types.
|
|
5
|
-
* Supports raw Redis commands and typed structured operations
|
|
6
|
-
* (get, set, del, keys, hget, hset, hgetall, etc.).
|
|
7
|
-
*
|
|
8
|
-
* Request format matches the Redis plugin proto's oneof structure:
|
|
9
|
-
* - Raw: `{ raw: { singleton: { query: "..." } } }`
|
|
10
|
-
* - Structured: `{ structured: { set: { key: "...", value: "..." } } }`
|
|
11
|
-
*/
|
|
12
|
-
import type { z } from "zod";
|
|
13
|
-
import type { QueryExecutor, TraceMetadata } from "../registry.js";
|
|
14
|
-
import type { IntegrationConfig, IntegrationClientImpl } from "../types.js";
|
|
15
|
-
import type { RedisClient } from "./types.js";
|
|
16
|
-
/**
|
|
17
|
-
* Internal implementation of RedisClient.
|
|
18
|
-
*
|
|
19
|
-
* Provides both raw and structured Redis command execution.
|
|
20
|
-
*/
|
|
21
|
-
export declare class RedisClientImpl implements RedisClient, IntegrationClientImpl {
|
|
22
|
-
readonly config: IntegrationConfig;
|
|
23
|
-
private readonly executeQuery;
|
|
24
|
-
constructor(config: IntegrationConfig, executeQuery: QueryExecutor);
|
|
25
|
-
get name(): string;
|
|
26
|
-
get pluginId(): string;
|
|
27
|
-
/**
|
|
28
|
-
* Execute a request and wrap errors.
|
|
29
|
-
*/
|
|
30
|
-
private exec;
|
|
31
|
-
command<T>(command: string, schema: z.ZodSchema<T>, metadata?: TraceMetadata): Promise<T>;
|
|
32
|
-
get(key: string, metadata?: TraceMetadata): Promise<unknown>;
|
|
33
|
-
set(key: string, value: string, expirationMs?: number, metadata?: TraceMetadata): Promise<unknown>;
|
|
34
|
-
del(key: string, metadata?: TraceMetadata): Promise<unknown>;
|
|
35
|
-
keys(pattern: string, metadata?: TraceMetadata): Promise<unknown>;
|
|
36
|
-
hget(key: string, field: string, metadata?: TraceMetadata): Promise<unknown>;
|
|
37
|
-
hset(key: string, field: string, value: string, metadata?: TraceMetadata): Promise<unknown>;
|
|
38
|
-
hgetall(key: string, metadata?: TraceMetadata): Promise<unknown>;
|
|
39
|
-
hdel(key: string, field: string, metadata?: TraceMetadata): Promise<unknown>;
|
|
40
|
-
expire(key: string, seconds: number, metadata?: TraceMetadata): Promise<unknown>;
|
|
41
|
-
ttl(key: string, metadata?: TraceMetadata): Promise<unknown>;
|
|
42
|
-
}
|
|
43
|
-
//# sourceMappingURL=client.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/integrations/redis/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAI7B,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAC5E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAsC9C;;;;GAIG;AACH,qBAAa,eAAgB,YAAW,WAAW,EAAE,qBAAqB;IACxE,QAAQ,CAAC,MAAM,EAAE,iBAAiB,CAAC;IACnC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAgB;gBAEjC,MAAM,EAAE,iBAAiB,EAAE,YAAY,EAAE,aAAa;IAKlE,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED;;OAEG;YACW,IAAI;IAmBZ,OAAO,CAAC,CAAC,EACb,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EACtB,QAAQ,CAAC,EAAE,aAAa,GACvB,OAAO,CAAC,CAAC,CAAC;IA4BP,GAAG,CAAC,GAAG,EAAE,MAAM,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
5
|
-
* Supports raw Redis commands and typed structured operations
|
|
6
|
-
* (get, set, del, keys, hget, hset, hgetall, etc.).
|
|
7
|
-
*
|
|
8
|
-
* Request format matches the Redis plugin proto's oneof structure:
|
|
9
|
-
* - Raw: `{ raw: { singleton: { query: "..." } } }`
|
|
10
|
-
* - Structured: `{ structured: { set: { key: "...", value: "..." } } }`
|
|
11
|
-
*/
|
|
12
|
-
import { RestApiValidationError } from "../../errors.js";
|
|
13
|
-
import { IntegrationError } from "../../runtime/errors.js";
|
|
14
|
-
/**
|
|
15
|
-
* Build a raw Redis command request matching the proto JSON format.
|
|
16
|
-
*
|
|
17
|
-
* Proto structure: `oneof command_type { Raw raw = 3; }`
|
|
18
|
-
* Raw structure: `oneof action { Singleton singleton = 1; }`
|
|
19
|
-
*/
|
|
20
|
-
function buildRawRequest(command) {
|
|
21
|
-
return {
|
|
22
|
-
raw: {
|
|
23
|
-
singleton: {
|
|
24
|
-
query: command,
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Build a structured Redis command request matching the proto JSON format.
|
|
31
|
-
*
|
|
32
|
-
* Proto structure: `oneof command_type { Structured structured = 4; }`
|
|
33
|
-
* Structured structure: `oneof action { Get get = 6; Set set = 7; ... }`
|
|
34
|
-
*
|
|
35
|
-
* @param actionName - The structured action name (e.g., 'get', 'set')
|
|
36
|
-
* @param value - The action-specific parameters
|
|
37
|
-
*/
|
|
38
|
-
function buildStructuredRequest(actionName, value) {
|
|
39
|
-
return {
|
|
40
|
-
structured: {
|
|
41
|
-
[actionName]: value,
|
|
42
|
-
},
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Internal implementation of RedisClient.
|
|
47
|
-
*
|
|
48
|
-
* Provides both raw and structured Redis command execution.
|
|
49
|
-
*/
|
|
50
|
-
export class RedisClientImpl {
|
|
51
|
-
config;
|
|
52
|
-
executeQuery;
|
|
53
|
-
constructor(config, executeQuery) {
|
|
54
|
-
this.config = config;
|
|
55
|
-
this.executeQuery = executeQuery;
|
|
56
|
-
}
|
|
57
|
-
get name() {
|
|
58
|
-
return this.config.name;
|
|
59
|
-
}
|
|
60
|
-
get pluginId() {
|
|
61
|
-
return this.config.pluginId;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Execute a request and wrap errors.
|
|
65
|
-
*/
|
|
66
|
-
async exec(request, operation, metadata) {
|
|
67
|
-
try {
|
|
68
|
-
return await this.executeQuery(request, undefined, metadata);
|
|
69
|
-
}
|
|
70
|
-
catch (error) {
|
|
71
|
-
if (error instanceof RestApiValidationError ||
|
|
72
|
-
error instanceof IntegrationError) {
|
|
73
|
-
throw error;
|
|
74
|
-
}
|
|
75
|
-
throw new IntegrationError(this.config.name, operation, error);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
async command(command, schema, metadata) {
|
|
79
|
-
const request = buildRawRequest(command);
|
|
80
|
-
const rawResult = await this.exec(request, "command", metadata);
|
|
81
|
-
// The Redis plugin wraps raw command results in { response: ... }.
|
|
82
|
-
// Unwrap to the actual value so callers can validate against the expected type.
|
|
83
|
-
const result = rawResult !== null &&
|
|
84
|
-
typeof rawResult === "object" &&
|
|
85
|
-
"response" in rawResult
|
|
86
|
-
? rawResult.response
|
|
87
|
-
: rawResult;
|
|
88
|
-
const parseResult = schema.safeParse(result);
|
|
89
|
-
if (!parseResult.success) {
|
|
90
|
-
throw new RestApiValidationError(`Result validation failed: ${parseResult.error.message}`, {
|
|
91
|
-
zodError: parseResult.error,
|
|
92
|
-
data: result,
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
return parseResult.data;
|
|
96
|
-
}
|
|
97
|
-
async get(key, metadata) {
|
|
98
|
-
const request = buildStructuredRequest("get", { key });
|
|
99
|
-
return this.exec(request, "get", metadata);
|
|
100
|
-
}
|
|
101
|
-
async set(key, value, expirationMs, metadata) {
|
|
102
|
-
const params = { key, value };
|
|
103
|
-
if (expirationMs !== undefined) {
|
|
104
|
-
params.expirationMs = expirationMs;
|
|
105
|
-
}
|
|
106
|
-
const request = buildStructuredRequest("set", params);
|
|
107
|
-
return this.exec(request, "set", metadata);
|
|
108
|
-
}
|
|
109
|
-
async del(key, metadata) {
|
|
110
|
-
const request = buildStructuredRequest("del", { key });
|
|
111
|
-
return this.exec(request, "del", metadata);
|
|
112
|
-
}
|
|
113
|
-
async keys(pattern, metadata) {
|
|
114
|
-
const request = buildStructuredRequest("keys", { pattern });
|
|
115
|
-
return this.exec(request, "keys", metadata);
|
|
116
|
-
}
|
|
117
|
-
async hget(key, field, metadata) {
|
|
118
|
-
const request = buildStructuredRequest("hget", { key, field });
|
|
119
|
-
return this.exec(request, "hget", metadata);
|
|
120
|
-
}
|
|
121
|
-
async hset(key, field, value, metadata) {
|
|
122
|
-
const request = buildStructuredRequest("hset", { key, field, value });
|
|
123
|
-
return this.exec(request, "hset", metadata);
|
|
124
|
-
}
|
|
125
|
-
async hgetall(key, metadata) {
|
|
126
|
-
const request = buildStructuredRequest("hgetall", { key });
|
|
127
|
-
return this.exec(request, "hgetall", metadata);
|
|
128
|
-
}
|
|
129
|
-
async hdel(key, field, metadata) {
|
|
130
|
-
const request = buildStructuredRequest("hdel", { key, field });
|
|
131
|
-
return this.exec(request, "hdel", metadata);
|
|
132
|
-
}
|
|
133
|
-
async expire(key, seconds, metadata) {
|
|
134
|
-
const request = buildStructuredRequest("expire", { key, seconds });
|
|
135
|
-
return this.exec(request, "expire", metadata);
|
|
136
|
-
}
|
|
137
|
-
async ttl(key, metadata) {
|
|
138
|
-
const request = buildStructuredRequest("ttl", { key });
|
|
139
|
-
return this.exec(request, "ttl", metadata);
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
//# sourceMappingURL=client.js.map
|