@squidcloud/jira-client 1.0.496 → 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.
Files changed (64) hide show
  1. package/dist/connectors/jira/common/src/jira-types.d.ts +1 -28
  2. package/dist/internal-common/src/ai/system-openai-compatible.d.ts +35 -0
  3. package/dist/internal-common/src/public-types/ai-agent-integrations.public-types.d.ts +71 -0
  4. package/dist/internal-common/src/public-types/ai-agent.public-types.d.ts +1594 -0
  5. package/dist/internal-common/src/public-types/ai-common.public-types.d.ts +303 -0
  6. package/dist/internal-common/src/public-types/ai-function.public-types.d.ts +114 -0
  7. package/dist/internal-common/src/public-types/ai-knowledge-base.public-types.d.ts +2378 -0
  8. package/dist/internal-common/src/public-types/ai-query.public-types.d.ts +266 -0
  9. package/dist/internal-common/src/public-types/api-client.public-types.d.ts +9 -0
  10. package/dist/internal-common/src/public-types/api.public-types.d.ts +99 -0
  11. package/dist/internal-common/src/public-types/backend.public-types.d.ts +61 -0
  12. package/dist/internal-common/src/public-types/connector.public-types.d.ts +12 -0
  13. package/dist/internal-common/src/public-types/context.public-types.d.ts +83 -0
  14. package/dist/internal-common/src/public-types/document.public-types.d.ts +71 -0
  15. package/dist/internal-common/src/public-types/event.public-types.d.ts +18 -0
  16. package/dist/internal-common/src/public-types/extraction.public-types.d.ts +405 -0
  17. package/dist/internal-common/src/public-types/http-status.public-types.d.ts +415 -0
  18. package/dist/internal-common/src/public-types/integration.public-types.d.ts +65 -0
  19. package/dist/internal-common/src/public-types/job.public-types.d.ts +101 -0
  20. package/dist/internal-common/src/public-types/langgraph.public-types.d.ts +50 -0
  21. package/dist/internal-common/src/public-types/metadata-filter.public-types.d.ts +106 -0
  22. package/dist/internal-common/src/public-types/query.public-types.d.ts +149 -0
  23. package/dist/internal-common/src/public-types/scheduler.public-types.d.ts +43 -0
  24. package/dist/internal-common/src/public-types/schema.public-types.d.ts +88 -0
  25. package/dist/internal-common/src/public-types/secret.public-types.d.ts +82 -0
  26. package/dist/internal-common/src/public-types/socket.public-types.d.ts +4 -0
  27. package/dist/internal-common/src/public-types/source-code.public-types.d.ts +208 -0
  28. package/dist/internal-common/src/public-types/typescript.public-types.d.ts +20 -0
  29. package/dist/internal-common/src/public-types-backend/ai-agent.public-context.d.ts +101 -0
  30. package/dist/internal-common/src/public-types-backend/api-call.public-context.d.ts +30 -0
  31. package/dist/internal-common/src/public-types-backend/application.public-types.d.ts +94 -0
  32. package/dist/internal-common/src/public-types-backend/bundle-api.public-types.d.ts +199 -0
  33. package/dist/internal-common/src/public-types-backend/bundle-data.public-types.d.ts +18 -0
  34. package/dist/internal-common/src/public-types-backend/distributed-lock.public-context.d.ts +4 -0
  35. package/dist/internal-common/src/public-types-backend/graphql.public-context.d.ts +7 -0
  36. package/dist/internal-common/src/public-types-backend/langgraph.public-context.d.ts +16 -0
  37. package/dist/internal-common/src/public-types-backend/mcp.public-types.d.ts +55 -0
  38. package/dist/internal-common/src/public-types-backend/metric.public-context.d.ts +12 -0
  39. package/dist/internal-common/src/public-types-backend/mutation.public-context.d.ts +161 -0
  40. package/dist/internal-common/src/public-types-backend/native-query.public-context.d.ts +75 -0
  41. package/dist/internal-common/src/public-types-backend/query.public-context.d.ts +193 -0
  42. package/dist/internal-common/src/public-types-backend/storage.public-types.d.ts +15 -0
  43. package/dist/internal-common/src/public-types-backend/topic.public-context.d.ts +17 -0
  44. package/dist/internal-common/src/types/application.types.d.ts +98 -0
  45. package/dist/internal-common/src/types/backend-run.types.d.ts +55 -0
  46. package/dist/internal-common/src/types/bundle-data.types.d.ts +18 -0
  47. package/dist/internal-common/src/types/connector.types.d.ts +77 -0
  48. package/dist/internal-common/src/types/integrations/ai.types.d.ts +1 -0
  49. package/dist/internal-common/src/types/integrations/api.types.d.ts +76 -0
  50. package/dist/internal-common/src/types/integrations/auth.types.d.ts +1 -0
  51. package/dist/internal-common/src/types/integrations/database.types.d.ts +44 -0
  52. package/dist/internal-common/src/types/integrations/observability.types.d.ts +1 -0
  53. package/dist/internal-common/src/types/integrations/queue-types.d.ts +1 -0
  54. package/dist/internal-common/src/types/integrations/schemas.d.ts +6 -0
  55. package/dist/internal-common/src/types/integrations/storage-types.d.ts +22 -0
  56. package/dist/internal-common/src/types/langgraph.types.d.ts +1 -0
  57. package/dist/internal-common/src/types/openapi.types.d.ts +1 -0
  58. package/dist/internal-common/src/types/query.types.d.ts +21 -0
  59. package/dist/internal-common/src/types/secret.types.d.ts +7 -0
  60. package/dist/internal-common/src/types/time-units.d.ts +1 -0
  61. package/dist/internal-common/src/utils/object.d.ts +88 -0
  62. package/dist/internal-common/src/utils/serialization.d.ts +30 -0
  63. package/dist/internal-common/src/utils/worker-manager-utils.d.ts +2 -0
  64. package/package.json +2 -2
@@ -210,24 +210,12 @@ export interface JiraIssueDetailsResponse {
210
210
  /** Issue details as formatted string */
211
211
  details: string;
212
212
  }
213
+ export type { ConnectorSyncFailedItemsPage as GetJiraSyncFailedItemsResponse, ConnectorSyncFailedItem as JiraSyncFailedItem, ConnectorSyncStatus as JiraSyncStatus, } from '../../../../internal-common/src/types/connector.types';
213
214
  /** Request to get the sync status of a Jira integration */
214
215
  export interface GetJiraSyncStatusRequest {
215
216
  /** The ID of the Jira integration */
216
217
  integrationId: IntegrationId;
217
218
  }
218
- /** Sync status for a Jira integration */
219
- export interface JiraSyncStatus {
220
- integrationId: string;
221
- syncStatus: 'idle' | 'in_progress' | 'completed' | 'failed';
222
- lastSync?: Date;
223
- syncStartTime?: Date;
224
- /** Number of issues successfully synced in the current or most recent run */
225
- itemsSyncedInCurrentRun: number;
226
- /** Total issues to sync in the current or most recent run (enables progress: synced/total) */
227
- itemsTotalInCurrentRun: number;
228
- /** Number of issues currently in a failed state */
229
- itemsFailedTotal: number;
230
- }
231
219
  /** Request to list issues that failed to sync for a Jira integration, one page at a time. */
232
220
  export interface GetJiraSyncFailedItemsRequest {
233
221
  /** The ID of the Jira integration */
@@ -237,18 +225,3 @@ export interface GetJiraSyncFailedItemsRequest {
237
225
  /** Max items to return in this page. Defaults to 50, capped at 200. */
238
226
  pageSize?: number;
239
227
  }
240
- /** An issue that failed to sync */
241
- export interface JiraSyncFailedItem {
242
- /** The Jira issue key */
243
- id: string;
244
- /** Issue summary, when known */
245
- title?: string;
246
- /** Message describing the most recent failure */
247
- error: string;
248
- }
249
- /** One page of issues that failed to sync for a Jira integration. */
250
- export interface GetJiraSyncFailedItemsResponse {
251
- items: Array<JiraSyncFailedItem>;
252
- /** Pass as `afterId` to fetch the next page. Undefined when this is the last page. */
253
- nextAfterId?: string;
254
- }
@@ -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
+ }