Skip to content

Commit 0046773

Browse files
committed
fix(integrations): validate quiver, thrive, profound, agentphone, sendblue, linq, quartr
- quiver: send retired Arrow 1.x model ids (arrow-preview, arrow-1.x) as arrow-2, offer Arrow 2 and Arrow 2 Telos in the model dropdown, cap max_output_tokens at the documented 65536 - thrive: get activity and get user by id call the documented /activities/{id} and /users/{id} paths - profound: mark raw logs and bot logs as retired by Profound (sunset 2026-06-10) - agentphone: mark the plan usage output as no longer returned by the API - sendblue: typing indicator status matches the documented SENT/ERROR values - agentphone, linq, thrive, profound, quartr: build single id path segments with safeUrlPathSegment
1 parent 878ce7d commit 0046773

96 files changed

Lines changed: 246 additions & 112 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎apps/docs/content/docs/integrations/agentphone.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ Retrieve current usage statistics for the AgentPhone account
338338

339339
| Parameter | Type | Description |
340340
| --------- | ---- | ----------- |
341-
| `plan` | json | Plan name and limits \(name, limits: numbers/messagesPerMonth/voiceMinutesPerMonth/maxCallDurationMinutes/concurrentCalls\) |
341+
| `plan` | json | Plan name and limits \(name, limits: numbers/messagesPerMonth/voiceMinutesPerMonth/maxCallDurationMinutes/concurrentCalls\). The current AgentPhone usage API no longer returns a plan, so these values are empty. |
342342
| `numbers` | json | Phone number usage \(used, limit, remaining\) |
343343
| `stats` | json | Usage stats: totalMessages, messagesLast24h/7d/30d, totalCalls, callsLast24h/7d/30d, totalWebhookDeliveries, successfulWebhookDeliveries, failedWebhookDeliveries |
344344
| `periodStart` | string | Billing period start |

‎apps/docs/content/docs/integrations/profound.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ Query human referral traffic report with hourly granularity for a domain in Prof
508508

509509
### Profound Raw Logs
510510

511-
Get raw traffic logs with filters for a domain in Profound
511+
Get raw traffic logs with filters for a domain in Profound. Profound retired this endpoint on 2026-06-10; use the Referrals Report instead.
512512

513513
<ReferenceDetails>
514514

@@ -536,7 +536,7 @@ Get raw traffic logs with filters for a domain in Profound
536536

537537
### Profound Bot Logs
538538

539-
Get identified bot visit logs with filters for a domain in Profound
539+
Get identified bot visit logs with filters for a domain in Profound. Profound retired this endpoint on 2026-06-10; use the Bots Report instead.
540540

541541
<ReferenceDetails>
542542

‎apps/docs/content/docs/integrations/quiver.mdx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ Generate SVG images from text prompts using QuiverAI
3232
| Parameter | Type | Required | Description |
3333
| --------- | ---- | -------- | ----------- |
3434
| `prompt` | string | Yes | A text description of the desired SVG |
35-
| `model` | string | Yes | The model to use for SVG generation \(e.g., "arrow-preview"\) |
35+
| `model` | string | Yes | The model to use for SVG generation \(e.g., "arrow-2"\) |
3636
| `instructions` | string | No | Style or formatting guidance for the SVG output |
3737
| `references` | file | No | Reference images to guide SVG generation \(up to 4\) |
3838
| `n` | number | No | Number of SVGs to generate \(1-16, default 1\) |
3939
| `temperature` | number | No | Sampling temperature \(0-2, default 1\) |
4040
| `top_p` | number | No | Nucleus sampling probability \(0-1, default 1\) |
41-
| `max_output_tokens` | number | No | Maximum output tokens \(1-131072\) |
41+
| `max_output_tokens` | number | No | Maximum output tokens \(1-65536\) |
4242
| `presence_penalty` | number | No | Token penalty for prior output \(-2 to 2, default 0\) |
4343

4444
#### Output
@@ -64,11 +64,11 @@ Convert raster images into vector SVG format using QuiverAI
6464

6565
| Parameter | Type | Required | Description |
6666
| --------- | ---- | -------- | ----------- |
67-
| `model` | string | Yes | The model to use for vectorization \(e.g., "arrow-preview"\) |
67+
| `model` | string | Yes | The model to use for vectorization \(e.g., "arrow-2"\) |
6868
| `image` | file | Yes | The raster image to vectorize into SVG |
6969
| `temperature` | number | No | Sampling temperature \(0-2, default 1\) |
7070
| `top_p` | number | No | Nucleus sampling probability \(0-1, default 1\) |
71-
| `max_output_tokens` | number | No | Maximum output tokens \(1-131072\) |
71+
| `max_output_tokens` | number | No | Maximum output tokens \(1-65536\) |
7272
| `presence_penalty` | number | No | Token penalty for prior output \(-2 to 2, default 0\) |
7373
| `auto_crop` | boolean | No | Automatically crop the image before vectorizing |
7474
| `target_size` | number | No | Square resize target in pixels \(128-4096\) |

‎apps/docs/content/docs/integrations/sendblue.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ Display a typing indicator to a recipient (not supported in group chats).
167167

168168
| Parameter | Type | Description |
169169
| --------- | ---- | ----------- |
170-
| `status` | string | Delivery status of the typing indicator \(e.g., QUEUED\) |
170+
| `status` | string | Status of the typing indicator: SENT or ERROR |
171171
| `status_code` | number | Numeric status code returned by Sendblue |
172172
| `number` | string | The recipient phone number |
173173
| `error_message` | string | Error details, null on success |

‎apps/sim/blocks/blocks/profound.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ export const ProfoundBlock: BlockConfig = {
178178
{ label: 'Prompt Answers', id: 'prompt_answers' },
179179
{ label: 'Bots Report', id: 'bots_report' },
180180
{ label: 'Referrals Report', id: 'referrals_report' },
181-
{ label: 'Raw Logs', id: 'raw_logs' },
182-
{ label: 'Bot Logs', id: 'bot_logs' },
181+
{ label: 'Raw Logs (Retired)', id: 'raw_logs' },
182+
{ label: 'Bot Logs (Retired)', id: 'bot_logs' },
183183
{ label: 'List Optimizations', id: 'list_optimizations' },
184184
{ label: 'Optimization Analysis', id: 'optimization_analysis' },
185185
{ label: 'Prompt Volume', id: 'prompt_volume' },

‎apps/sim/blocks/blocks/quiver.ts‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,11 @@ export const QuiverBlock = {
5858
id: 'model',
5959
title: 'Model',
6060
type: 'dropdown',
61-
options: [{ label: 'Arrow Preview', id: 'arrow-preview' }],
62-
value: () => 'arrow-preview',
61+
options: [
62+
{ label: 'Arrow 2', id: 'arrow-2' },
63+
{ label: 'Arrow 2 Telos', id: 'arrow-2-telos' },
64+
],
65+
value: () => 'arrow-2',
6366
condition: { field: 'operation', value: ['text_to_svg', 'image_to_svg'] },
6467
},
6568
{
@@ -172,7 +175,7 @@ export const QuiverBlock = {
172175
id: 'maxOutputTokens',
173176
title: 'Max Output Tokens',
174177
type: 'short-input',
175-
placeholder: '131072',
178+
placeholder: '65536',
176179
mode: 'advanced',
177180
required: false,
178181
condition: { field: 'operation', value: ['text_to_svg', 'image_to_svg'] },

‎apps/sim/lib/internal/quiver/operations.test.ts‎

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ describe('Quiver operations', () => {
118118
'generations',
119119
'secret',
120120
{
121-
model: 'arrow-preview',
121+
model: 'arrow-2',
122122
prompt: 'A compass',
123123
instructions: 'Minimal',
124124
references: [{ base64: 'AQID' }, { base64: 'BAU=' }],
@@ -140,6 +140,22 @@ describe('Quiver operations', () => {
140140
expect(presented.output).not.toHaveProperty('svgContent')
141141
})
142142

143+
it('sends retired Arrow 1.x model ids as arrow-2', async () => {
144+
await executeQuiverImageToSvg(
145+
{ apiKey: 'secret', model: 'arrow-preview', image: rawFile },
146+
context
147+
)
148+
await executeQuiverImageToSvg(
149+
{ apiKey: 'secret', model: 'arrow-2-telos', image: rawFile },
150+
context
151+
)
152+
153+
expect(mocks.requestQuiverSvg.mock.calls.map(([, , body]) => body.model)).toEqual([
154+
'arrow-2',
155+
'arrow-2-telos',
156+
])
157+
})
158+
143159
it('fails closed on incomplete private model-input provenance', async () => {
144160
const headers = new Headers({
145161
[PRIVATE_MODEL_INPUT_PROVENANCE_HEADER]: RESOLVED_SECRET_PROVENANCE_METADATA_V1,

‎apps/sim/lib/internal/quiver/operations.ts‎

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,22 @@ type ApiImage = { url: string } | { base64: string }
3232

3333
export type QuiverSvgOutput = QuiverSvgResponse & { success: true }
3434

35+
/**
36+
* Arrow 1.x model IDs Quiver retired on 2026-10-16 (they now return 404 `model_not_found`).
37+
* Saved blocks still carry them, so they are sent as `arrow-2`, the documented replacement.
38+
*/
39+
const RETIRED_QUIVER_MODELS = new Set([
40+
'arrow-preview',
41+
'arrow-1',
42+
'arrow-1.0',
43+
'arrow-1.1',
44+
'arrow-1.1-max',
45+
])
46+
47+
function resolveModel(model: string): string {
48+
return RETIRED_QUIVER_MODELS.has(model) ? 'arrow-2' : model
49+
}
50+
3551
function fail(message: string, status: number, body?: Record<string, unknown>): never {
3652
throw new QuiverOperationError(message, status, body)
3753
}
@@ -222,7 +238,7 @@ export async function executeQuiverTextToSvg(
222238
}
223239
}
224240

225-
const body: Record<string, unknown> = { model: input.model, prompt: input.prompt }
241+
const body: Record<string, unknown> = { model: resolveModel(input.model), prompt: input.prompt }
226242
if (input.instructions) body.instructions = input.instructions
227243
if (references.length > 0) body.references = references.slice(0, 4)
228244
if (input.n != null) body.n = input.n
@@ -257,7 +273,7 @@ export async function executeQuiverImageToSvg(
257273
context.signal?.throwIfAborted()
258274
validateProvenance(input, context)
259275
const image = await resolveImage(input.image, context)
260-
const body: Record<string, unknown> = { model: input.model, image }
276+
const body: Record<string, unknown> = { model: resolveModel(input.model), image }
261277
if (input.temperature != null) body.temperature = input.temperature
262278
if (input.top_p != null) body.top_p = input.top_p
263279
if (input.max_output_tokens != null) body.max_output_tokens = input.max_output_tokens

‎apps/sim/lib/internal/quiver/schema.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const quiverCommonInputSchema = z.object({
88
model: z.string().min(1),
99
temperature: z.number().min(0).max(2).optional().nullable(),
1010
top_p: z.number().min(0).max(1).optional().nullable(),
11-
max_output_tokens: z.number().int().min(1).max(131072).optional().nullable(),
11+
max_output_tokens: z.number().int().min(1).max(65536).optional().nullable(),
1212
presence_penalty: z.number().min(-2).max(2).optional().nullable(),
1313
[RESOLVED_SECRET_PROVENANCE_FIELD]: resolvedSecretTraceProvenanceSchema.optional(),
1414
})

‎apps/sim/tools/agentphone/delete_contact.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import type {
44
} from '@/tools/agentphone/types'
55
import { AGENTPHONE_CREDENTIAL_OAUTH } from '@/tools/shared/saved-credentials'
66
import type { ToolConfig } from '@/tools/types'
7+
import { safeUrlPathSegment } from '@/tools/url-path'
78

89
export const agentphoneDeleteContactTool: ToolConfig<
910
AgentPhoneDeleteContactParams,
@@ -31,7 +32,8 @@ export const agentphoneDeleteContactTool: ToolConfig<
3132
},
3233

3334
request: {
34-
url: (params) => `https://api.agentphone.to/v1/contacts/${params.contactId.trim()}`,
35+
url: (params) =>
36+
`https://api.agentphone.to/v1/contacts/${safeUrlPathSegment(params.contactId, 'contactId')}`,
3537
method: 'DELETE',
3638
headers: (params) => ({
3739
Authorization: `Bearer ${params.apiKey}`,

0 commit comments

Comments
 (0)