@squidcloud/freshdesk-client 1.0.497 → 1.0.498
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/dist/connectors/freshdesk/common/src/freshdesk-types.d.ts +1 -28
- package/dist/internal-common/src/ai/system-openai-compatible.d.ts +35 -0
- package/dist/internal-common/src/public-types/ai-agent-integrations.public-types.d.ts +71 -0
- package/dist/internal-common/src/public-types/ai-agent.public-types.d.ts +1594 -0
- package/dist/internal-common/src/public-types/ai-common.public-types.d.ts +303 -0
- package/dist/internal-common/src/public-types/ai-function.public-types.d.ts +114 -0
- package/dist/internal-common/src/public-types/ai-knowledge-base.public-types.d.ts +2378 -0
- package/dist/internal-common/src/public-types/ai-query.public-types.d.ts +266 -0
- package/dist/internal-common/src/public-types/api-client.public-types.d.ts +9 -0
- package/dist/internal-common/src/public-types/api.public-types.d.ts +99 -0
- package/dist/internal-common/src/public-types/backend.public-types.d.ts +61 -0
- package/dist/internal-common/src/public-types/connector.public-types.d.ts +12 -0
- package/dist/internal-common/src/public-types/context.public-types.d.ts +83 -0
- package/dist/internal-common/src/public-types/document.public-types.d.ts +71 -0
- package/dist/internal-common/src/public-types/event.public-types.d.ts +18 -0
- package/dist/internal-common/src/public-types/extraction.public-types.d.ts +405 -0
- package/dist/internal-common/src/public-types/http-status.public-types.d.ts +415 -0
- package/dist/internal-common/src/public-types/integration.public-types.d.ts +65 -0
- package/dist/internal-common/src/public-types/job.public-types.d.ts +101 -0
- package/dist/internal-common/src/public-types/langgraph.public-types.d.ts +50 -0
- package/dist/internal-common/src/public-types/metadata-filter.public-types.d.ts +106 -0
- package/dist/internal-common/src/public-types/query.public-types.d.ts +149 -0
- package/dist/internal-common/src/public-types/scheduler.public-types.d.ts +43 -0
- package/dist/internal-common/src/public-types/schema.public-types.d.ts +88 -0
- package/dist/internal-common/src/public-types/secret.public-types.d.ts +82 -0
- package/dist/internal-common/src/public-types/socket.public-types.d.ts +4 -0
- package/dist/internal-common/src/public-types/source-code.public-types.d.ts +208 -0
- package/dist/internal-common/src/public-types/typescript.public-types.d.ts +20 -0
- package/dist/internal-common/src/public-types-backend/ai-agent.public-context.d.ts +101 -0
- package/dist/internal-common/src/public-types-backend/api-call.public-context.d.ts +30 -0
- package/dist/internal-common/src/public-types-backend/application.public-types.d.ts +94 -0
- package/dist/internal-common/src/public-types-backend/bundle-api.public-types.d.ts +199 -0
- package/dist/internal-common/src/public-types-backend/bundle-data.public-types.d.ts +18 -0
- package/dist/internal-common/src/public-types-backend/distributed-lock.public-context.d.ts +4 -0
- package/dist/internal-common/src/public-types-backend/graphql.public-context.d.ts +7 -0
- package/dist/internal-common/src/public-types-backend/langgraph.public-context.d.ts +16 -0
- package/dist/internal-common/src/public-types-backend/mcp.public-types.d.ts +55 -0
- package/dist/internal-common/src/public-types-backend/metric.public-context.d.ts +12 -0
- package/dist/internal-common/src/public-types-backend/mutation.public-context.d.ts +161 -0
- package/dist/internal-common/src/public-types-backend/native-query.public-context.d.ts +75 -0
- package/dist/internal-common/src/public-types-backend/query.public-context.d.ts +193 -0
- package/dist/internal-common/src/public-types-backend/storage.public-types.d.ts +15 -0
- package/dist/internal-common/src/public-types-backend/topic.public-context.d.ts +17 -0
- package/dist/internal-common/src/types/application.types.d.ts +98 -0
- package/dist/internal-common/src/types/backend-run.types.d.ts +55 -0
- package/dist/internal-common/src/types/bundle-data.types.d.ts +18 -0
- package/dist/internal-common/src/types/connector.types.d.ts +77 -0
- package/dist/internal-common/src/types/integrations/ai.types.d.ts +1 -0
- package/dist/internal-common/src/types/integrations/api.types.d.ts +76 -0
- package/dist/internal-common/src/types/integrations/auth.types.d.ts +1 -0
- package/dist/internal-common/src/types/integrations/database.types.d.ts +44 -0
- package/dist/internal-common/src/types/integrations/observability.types.d.ts +1 -0
- package/dist/internal-common/src/types/integrations/queue-types.d.ts +1 -0
- package/dist/internal-common/src/types/integrations/schemas.d.ts +6 -0
- package/dist/internal-common/src/types/integrations/storage-types.d.ts +22 -0
- package/dist/internal-common/src/types/langgraph.types.d.ts +1 -0
- package/dist/internal-common/src/types/openapi.types.d.ts +1 -0
- package/dist/internal-common/src/types/query.types.d.ts +21 -0
- package/dist/internal-common/src/types/secret.types.d.ts +7 -0
- package/dist/internal-common/src/types/time-units.d.ts +1 -0
- package/dist/internal-common/src/utils/object.d.ts +88 -0
- package/dist/internal-common/src/utils/serialization.d.ts +30 -0
- package/dist/internal-common/src/utils/worker-manager-utils.d.ts +2 -0
- package/package.json +2 -2
|
@@ -195,24 +195,12 @@ export interface AddFreshdeskNoteRequest {
|
|
|
195
195
|
/** Whether this is a private note (default: true) */
|
|
196
196
|
private?: boolean;
|
|
197
197
|
}
|
|
198
|
+
export type { ConnectorSyncFailedItem as FreshdeskSyncFailedItem, ConnectorSyncStatus as FreshdeskSyncStatus, ConnectorSyncFailedItemsPage as GetFreshdeskSyncFailedItemsResponse, } from '../../../../internal-common/src/types/connector.types';
|
|
198
199
|
/** Request to get the sync status of a Freshdesk integration */
|
|
199
200
|
export interface GetFreshdeskSyncStatusRequest {
|
|
200
201
|
/** The ID of the Freshdesk integration */
|
|
201
202
|
integrationId: IntegrationId;
|
|
202
203
|
}
|
|
203
|
-
/** Sync status for a Freshdesk integration */
|
|
204
|
-
export interface FreshdeskSyncStatus {
|
|
205
|
-
integrationId: string;
|
|
206
|
-
syncStatus: 'idle' | 'in_progress' | 'completed' | 'failed';
|
|
207
|
-
lastSync?: Date;
|
|
208
|
-
syncStartTime?: Date;
|
|
209
|
-
/** Number of tickets successfully synced in the current or most recent run */
|
|
210
|
-
itemsSyncedInCurrentRun: number;
|
|
211
|
-
/** Total tickets to sync in the current or most recent run (enables progress: synced/total) */
|
|
212
|
-
itemsTotalInCurrentRun: number;
|
|
213
|
-
/** Number of tickets currently in a failed state */
|
|
214
|
-
itemsFailedTotal: number;
|
|
215
|
-
}
|
|
216
204
|
/** Request to list tickets that failed to sync for a Freshdesk integration, one page at a time. */
|
|
217
205
|
export interface GetFreshdeskSyncFailedItemsRequest {
|
|
218
206
|
/** The ID of the Freshdesk integration */
|
|
@@ -222,21 +210,6 @@ export interface GetFreshdeskSyncFailedItemsRequest {
|
|
|
222
210
|
/** Max items to return in this page. Defaults to 50, capped at 200. */
|
|
223
211
|
pageSize?: number;
|
|
224
212
|
}
|
|
225
|
-
/** A ticket that failed to sync */
|
|
226
|
-
export interface FreshdeskSyncFailedItem {
|
|
227
|
-
/** The Freshdesk ticket id */
|
|
228
|
-
id: string;
|
|
229
|
-
/** Ticket subject, when known */
|
|
230
|
-
title?: string;
|
|
231
|
-
/** Message describing the most recent failure */
|
|
232
|
-
error: string;
|
|
233
|
-
}
|
|
234
|
-
/** One page of tickets that failed to sync for a Freshdesk integration. */
|
|
235
|
-
export interface GetFreshdeskSyncFailedItemsResponse {
|
|
236
|
-
items: Array<FreshdeskSyncFailedItem>;
|
|
237
|
-
/** Pass as `afterId` to fetch the next page. Undefined when this is the last page. */
|
|
238
|
-
nextAfterId?: string;
|
|
239
|
-
}
|
|
240
213
|
/** Response from Freshdesk ticket operations */
|
|
241
214
|
export interface FreshdeskTicketResponse {
|
|
242
215
|
/** Ticket ID */
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* System-level OpenAI-compatible backends ("slots") for Squid's own internal AI calls.
|
|
3
|
+
*
|
|
4
|
+
* Generic plumbing for pointing an internal model at ANY OpenAI-compatible HTTP endpoint —
|
|
5
|
+
* primarily Squid's own self-hosted models, but any OpenAI-compatible backend works. The
|
|
6
|
+
* non-secret part of a slot (base URL, optional headers/extra body) is hardcoded here on purpose
|
|
7
|
+
* (changing a backend is a reviewed code change); only the API key lives in Vault under
|
|
8
|
+
* `SystemSecrets['openai-compatible'][slotName].apiKey`.
|
|
9
|
+
*
|
|
10
|
+
* NOT the customer-facing `openai_compatible` Integration (per-app, console-configured). Models
|
|
11
|
+
* served through these slots are declared in `AI_CHAT_MODEL_REGISTRY` with
|
|
12
|
+
* `providerType: 'openai-compatible'` + `openAiCompatibleSlot`, and resolve only with
|
|
13
|
+
* `keyType: 'system'` (see `AiProviderFactory.getChatProviderForModel`) — never customer-reachable.
|
|
14
|
+
*
|
|
15
|
+
* No slots are defined yet (foundation only). To wire one up:
|
|
16
|
+
* 1. add a slot below, e.g. `'my-model': { baseUrl: 'https://llm.internal.squid/v1' }`;
|
|
17
|
+
* 2. seed its key in `SystemSecrets['openai-compatible']['my-model'].apiKey`;
|
|
18
|
+
* 3. add a model entry in ai-model.registry.ts pointing `openAiCompatibleSlot: 'my-model'`.
|
|
19
|
+
*/
|
|
20
|
+
/** Non-secret configuration of one system OpenAI-compatible backend. */
|
|
21
|
+
export interface SystemOpenAiCompatibleSlotConfig {
|
|
22
|
+
/** Base URL of the OpenAI-compatible API, e.g. a self-hosted 'https://llm.internal.squid/v1'. */
|
|
23
|
+
baseUrl: string;
|
|
24
|
+
/** Extra HTTP headers sent with every request. */
|
|
25
|
+
headers?: Record<string, string>;
|
|
26
|
+
/** Extra JSON body fields merged into every request — reserved wire fields are dropped by the provider. */
|
|
27
|
+
extraBody?: Record<string, unknown>;
|
|
28
|
+
}
|
|
29
|
+
/** Name of a system OpenAI-compatible slot (a key of `SYSTEM_OPENAI_COMPATIBLE_SLOTS`). */
|
|
30
|
+
export type SystemOpenAiCompatibleSlotName = string;
|
|
31
|
+
/**
|
|
32
|
+
* Registered system OpenAI-compatible slots, keyed by name. Empty by design — add a self-hosted
|
|
33
|
+
* (or any other) OpenAI-compatible backend here; see the module doc above.
|
|
34
|
+
*/
|
|
35
|
+
export declare const SYSTEM_OPENAI_COMPATIBLE_SLOTS: Record<SystemOpenAiCompatibleSlotName, SystemOpenAiCompatibleSlotConfig>;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { AiAgentMemoryOptions } from './ai-agent.public-types';
|
|
2
|
+
import { AiQueryOptions } from './ai-query.public-types';
|
|
3
|
+
import { AiAgentId } from './communication.public-types';
|
|
4
|
+
/**
|
|
5
|
+
* Configuration options for AI agent database integration.
|
|
6
|
+
*/
|
|
7
|
+
export interface AiAgentDatabaseIntegrationOptions {
|
|
8
|
+
/** If true, provides more detailed status updates during AI query execution. Default: false. */
|
|
9
|
+
verboseStatusUpdates?: boolean;
|
|
10
|
+
/** Full AI query options for advanced configuration of the query execution. */
|
|
11
|
+
aiQueryOptions?: AiQueryOptions;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Configuration options for AI agent API integration.
|
|
15
|
+
*/
|
|
16
|
+
export interface AiAgentApiIntegrationOptions {
|
|
17
|
+
/**
|
|
18
|
+
* A list of API operation IDs (endpoint IDs) that the AI agent can call.
|
|
19
|
+
*
|
|
20
|
+
* When this list is not provided (i.e., it is `undefined`) or is empty,
|
|
21
|
+
* the AI agent has access to all operations.
|
|
22
|
+
*/
|
|
23
|
+
operationsToUse?: string[];
|
|
24
|
+
/** If true, provides more detailed status updates during API call execution. Default: false. */
|
|
25
|
+
verboseStatusUpdates?: boolean;
|
|
26
|
+
/** If provided, this agent will be used to generate API calls. */
|
|
27
|
+
generateApiCallAgentId?: AiAgentId;
|
|
28
|
+
/** Full AI API options for advanced configuration of the API call execution. */
|
|
29
|
+
aiApiOptions?: AiApiOptions;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Options for configuring AI API call execution.
|
|
33
|
+
* @category AI
|
|
34
|
+
*/
|
|
35
|
+
export interface AiApiOptions {
|
|
36
|
+
/**
|
|
37
|
+
* Custom instructions appended to the endpoint-selection, body-construction, and response-analysis prompts.
|
|
38
|
+
*/
|
|
39
|
+
instructions?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Maximum number of distinct API calls the AI is allowed to make for one
|
|
42
|
+
* user prompt. Default 4.
|
|
43
|
+
*/
|
|
44
|
+
maxIterations?: number;
|
|
45
|
+
/**
|
|
46
|
+
* Conversation memory configuration. When provided, prior user prompts and AI answers under the same `memoryId`
|
|
47
|
+
* are provided as additional context to the AI, enabling cross-prompt follow-ups
|
|
48
|
+
* Defaults to no memory.
|
|
49
|
+
*/
|
|
50
|
+
memoryOptions?: AiAgentMemoryOptions;
|
|
51
|
+
/**
|
|
52
|
+
* How long, in milliseconds, a single AI call of the loop may wait for the provider — endpoint
|
|
53
|
+
* selection, request-body creation and response analysis each get this budget on their own, so
|
|
54
|
+
* the whole call may run for a multiple of it. Values below the chat minimum of 20 000 ms are
|
|
55
|
+
* raised to it. Defaults to the standard chat timeout, or to the timeout of the chat this call
|
|
56
|
+
* runs inside when the caller is a nested one.
|
|
57
|
+
*/
|
|
58
|
+
stageTimeoutMs?: number;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Configuration options for AI agent MCP integration.
|
|
62
|
+
*/
|
|
63
|
+
export interface AiAgentMcpIntegrationOptions {
|
|
64
|
+
/**
|
|
65
|
+
* A list of MCP tool names that the AI agent can use.
|
|
66
|
+
*
|
|
67
|
+
* When this list is not provided (i.e., it is `undefined`) or is empty,
|
|
68
|
+
* the AI agent has access to all tools.
|
|
69
|
+
*/
|
|
70
|
+
toolsToUse?: string[];
|
|
71
|
+
}
|