@squidcloud/jira-jsm-client 1.0.497 → 1.0.499
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/jira_jsm/common/src/jira-jsm-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 +1609 -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 +2379 -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 +57 -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 +105 -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 +20 -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 +93 -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
|
@@ -230,24 +230,12 @@ export interface JsmCustomerResponse {
|
|
|
230
230
|
displayName: string;
|
|
231
231
|
emailAddress?: string;
|
|
232
232
|
}
|
|
233
|
+
export type { ConnectorSyncFailedItemsPage as GetJsmSyncFailedItemsResponse, ConnectorSyncFailedItem as JsmSyncFailedItem, ConnectorSyncStatus as JsmSyncStatus, } from '../../../../internal-common/src/types/connector.types';
|
|
233
234
|
/** Request to get the sync status of a Jira JSM integration */
|
|
234
235
|
export interface GetJsmSyncStatusRequest {
|
|
235
236
|
/** The ID of the Jira JSM integration */
|
|
236
237
|
integrationId: IntegrationId;
|
|
237
238
|
}
|
|
238
|
-
/** Sync status for a Jira JSM integration */
|
|
239
|
-
export interface JsmSyncStatus {
|
|
240
|
-
integrationId: string;
|
|
241
|
-
syncStatus: 'idle' | 'in_progress' | 'completed' | 'failed';
|
|
242
|
-
lastSync?: Date;
|
|
243
|
-
syncStartTime?: Date;
|
|
244
|
-
/** Number of requests successfully synced in the current or most recent run */
|
|
245
|
-
itemsSyncedInCurrentRun: number;
|
|
246
|
-
/** Total requests to sync in the current or most recent run (enables progress: synced/total) */
|
|
247
|
-
itemsTotalInCurrentRun: number;
|
|
248
|
-
/** Number of requests currently in a failed state */
|
|
249
|
-
itemsFailedTotal: number;
|
|
250
|
-
}
|
|
251
239
|
/** Request to list requests that failed to sync for a Jira JSM integration, one page at a time. */
|
|
252
240
|
export interface GetJsmSyncFailedItemsRequest {
|
|
253
241
|
/** The ID of the Jira JSM integration */
|
|
@@ -257,18 +245,3 @@ export interface GetJsmSyncFailedItemsRequest {
|
|
|
257
245
|
/** Max items to return in this page. Defaults to 50, capped at 200. */
|
|
258
246
|
pageSize?: number;
|
|
259
247
|
}
|
|
260
|
-
/** A request that failed to sync */
|
|
261
|
-
export interface JsmSyncFailedItem {
|
|
262
|
-
/** The JSM issue key */
|
|
263
|
-
id: string;
|
|
264
|
-
/** Request summary, when known */
|
|
265
|
-
title?: string;
|
|
266
|
-
/** Message describing the most recent failure */
|
|
267
|
-
error: string;
|
|
268
|
-
}
|
|
269
|
-
/** One page of requests that failed to sync for a Jira JSM integration. */
|
|
270
|
-
export interface GetJsmSyncFailedItemsResponse {
|
|
271
|
-
items: Array<JsmSyncFailedItem>;
|
|
272
|
-
/** Pass as `afterId` to fetch the next page. Undefined when this is the last page. */
|
|
273
|
-
nextAfterId?: string;
|
|
274
|
-
}
|
|
@@ -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
|
+
}
|