graphlit-client 1.0.20260302001 → 1.0.20260302002

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/client.d.ts CHANGED
@@ -1010,9 +1010,10 @@ declare class Graphlit {
1010
1010
  * @param persona - The persona to use, optional.
1011
1011
  * @param instructions - Per-turn instructions to inject into guidance, optional.
1012
1012
  * @param scratchpad - Per-turn scratchpad text to inject, optional. Merged with conversation scratchpad.
1013
+ * @param skills - Skill references to inject into the agent's context window, optional.
1013
1014
  * @returns The formatted conversation.
1014
1015
  */
1015
- formatConversation(prompt: string, id?: string, specification?: Types.EntityReferenceInput, tools?: Types.ToolDefinitionInput[], systemPrompt?: string, includeDetails?: boolean, correlationId?: string, persona?: Types.EntityReferenceInput, instructions?: string, scratchpad?: string): Promise<Types.FormatConversationMutation>;
1016
+ formatConversation(prompt: string, id?: string, specification?: Types.EntityReferenceInput, tools?: Types.ToolDefinitionInput[], systemPrompt?: string, includeDetails?: boolean, correlationId?: string, persona?: Types.EntityReferenceInput, instructions?: string, scratchpad?: string, skills?: Types.EntityReferenceInput[]): Promise<Types.FormatConversationMutation>;
1016
1017
  /**
1017
1018
  * Completes a conversation with an external LLM response.
1018
1019
  * @param completion - The completion text from the external LLM.
@@ -1057,9 +1058,10 @@ declare class Graphlit {
1057
1058
  * @param persona - The persona to use, optional.
1058
1059
  * @param instructions - Per-turn instructions to inject into guidance, optional.
1059
1060
  * @param scratchpad - Per-turn scratchpad text to inject, optional. Merged with conversation scratchpad.
1061
+ * @param skills - Skill references to inject into the agent's context window, optional.
1060
1062
  * @returns The conversation response.
1061
1063
  */
1062
- promptConversation(prompt: string, id?: string, specification?: Types.EntityReferenceInput, mimeType?: string, data?: string, tools?: Types.ToolDefinitionInput[], requireTool?: boolean, systemPrompt?: string, includeDetails?: boolean, correlationId?: string, persona?: Types.EntityReferenceInput, instructions?: string, scratchpad?: string): Promise<Types.PromptConversationMutation>;
1064
+ promptConversation(prompt: string, id?: string, specification?: Types.EntityReferenceInput, mimeType?: string, data?: string, tools?: Types.ToolDefinitionInput[], requireTool?: boolean, systemPrompt?: string, includeDetails?: boolean, correlationId?: string, persona?: Types.EntityReferenceInput, instructions?: string, scratchpad?: string, skills?: Types.EntityReferenceInput[]): Promise<Types.PromptConversationMutation>;
1063
1065
  /**
1064
1066
  * Continues a conversation with tool responses.
1065
1067
  * @param id - The conversation ID.
@@ -1373,6 +1375,93 @@ declare class Graphlit {
1373
1375
  * @returns The matching persons.
1374
1376
  */
1375
1377
  lookupPersons(linkedInUrl?: string, email?: string): Promise<Types.LookupPersonsQuery>;
1378
+ /**
1379
+ * Creates a skill.
1380
+ * @param skill - The skill to create.
1381
+ * @param correlationId - The tenant correlation identifier, optional.
1382
+ * @returns The created skill.
1383
+ */
1384
+ createSkill(skill: Types.SkillInput, correlationId?: string): Promise<Types.CreateSkillMutation>;
1385
+ /**
1386
+ * Updates a skill.
1387
+ * @param skill - The skill to update.
1388
+ * @returns The updated skill.
1389
+ */
1390
+ updateSkill(skill: Types.SkillUpdateInput): Promise<Types.UpdateSkillMutation>;
1391
+ /**
1392
+ * Creates or updates a skill.
1393
+ * @param skill - The skill to create or update.
1394
+ * @returns The created or updated skill.
1395
+ */
1396
+ upsertSkill(skill: Types.SkillInput): Promise<Types.UpsertSkillMutation>;
1397
+ /**
1398
+ * Deletes a skill.
1399
+ * @param id - The ID of the skill to delete.
1400
+ * @returns The deleted skill.
1401
+ */
1402
+ deleteSkill(id: string): Promise<Types.DeleteSkillMutation>;
1403
+ /**
1404
+ * Deletes multiple skills.
1405
+ * @param ids - The IDs of the skills to delete.
1406
+ * @param isSynchronous - Whether this mutation is synchronous.
1407
+ * @returns The deleted skills.
1408
+ */
1409
+ deleteSkills(ids: string[], isSynchronous?: boolean): Promise<Types.DeleteSkillsMutation>;
1410
+ /**
1411
+ * Deletes all skills based on the provided filter criteria.
1412
+ * @param filter - The filter criteria to apply when deleting skills.
1413
+ * @param isSynchronous - Whether this mutation is synchronous.
1414
+ * @param correlationId - The tenant correlation identifier, optional.
1415
+ * @returns The result of the deletion.
1416
+ */
1417
+ deleteAllSkills(filter?: Types.SkillFilter, isSynchronous?: boolean, correlationId?: string): Promise<Types.DeleteAllSkillsMutation>;
1418
+ /**
1419
+ * Enables a skill.
1420
+ * @param id - The ID of the skill to enable.
1421
+ * @returns The enabled skill.
1422
+ */
1423
+ enableSkill(id: string): Promise<Types.EnableSkillMutation>;
1424
+ /**
1425
+ * Disables a skill.
1426
+ * @param id - The ID of the skill to disable.
1427
+ * @returns The disabled skill.
1428
+ */
1429
+ disableSkill(id: string): Promise<Types.DisableSkillMutation>;
1430
+ /**
1431
+ * Lookup a skill given its ID.
1432
+ * @param id - ID of the skill.
1433
+ * @param correlationId - The tenant correlation identifier, optional.
1434
+ * @returns The skill.
1435
+ */
1436
+ getSkill(id: string, correlationId?: string): Promise<Types.GetSkillQuery>;
1437
+ /**
1438
+ * Retrieves skills based on the provided filter criteria.
1439
+ * @param filter - The filter criteria to apply when retrieving skills.
1440
+ * @param correlationId - The tenant correlation identifier, optional.
1441
+ * @returns The skills.
1442
+ */
1443
+ querySkills(filter?: Types.SkillFilter, correlationId?: string): Promise<Types.QuerySkillsQuery>;
1444
+ /**
1445
+ * Counts skills based on the provided filter criteria.
1446
+ * @param filter - The filter criteria to apply when counting skills.
1447
+ * @param correlationId - The tenant correlation identifier, optional.
1448
+ * @returns The count of skills.
1449
+ */
1450
+ countSkills(filter?: Types.SkillFilter, correlationId?: string): Promise<Types.CountSkillsQuery>;
1451
+ /**
1452
+ * Adds skills to one or more collections.
1453
+ * @param skills - The skills to add.
1454
+ * @param collections - The collections to add the skills to.
1455
+ * @returns The updated collections.
1456
+ */
1457
+ addSkillsToCollections(skills: Types.EntityReferenceInput[], collections: Types.EntityReferenceInput[]): Promise<Types.AddSkillsToCollectionsMutation>;
1458
+ /**
1459
+ * Removes skills from a collection.
1460
+ * @param skills - The skills to remove.
1461
+ * @param collection - The collection to remove the skills from.
1462
+ * @returns The updated collection.
1463
+ */
1464
+ removeSkillsFromCollection(skills: Types.EntityReferenceInput[], collection: Types.EntityReferenceInput): Promise<Types.RemoveSkillsFromCollectionMutation>;
1376
1465
  /**
1377
1466
  * Prompts multiple specifications and returns the best response.
1378
1467
  * @param prompt - The prompt to send to each specification.
package/dist/client.js CHANGED
@@ -1865,9 +1865,10 @@ class Graphlit {
1865
1865
  * @param persona - The persona to use, optional.
1866
1866
  * @param instructions - Per-turn instructions to inject into guidance, optional.
1867
1867
  * @param scratchpad - Per-turn scratchpad text to inject, optional. Merged with conversation scratchpad.
1868
+ * @param skills - Skill references to inject into the agent's context window, optional.
1868
1869
  * @returns The formatted conversation.
1869
1870
  */
1870
- async formatConversation(prompt, id, specification, tools, systemPrompt, includeDetails, correlationId, persona, instructions, scratchpad) {
1871
+ async formatConversation(prompt, id, specification, tools, systemPrompt, includeDetails, correlationId, persona, instructions, scratchpad, skills) {
1871
1872
  return this.mutateAndCheckError(Documents.FormatConversation, {
1872
1873
  prompt: prompt,
1873
1874
  id: id,
@@ -1879,6 +1880,7 @@ class Graphlit {
1879
1880
  correlationId: correlationId,
1880
1881
  instructions: instructions,
1881
1882
  scratchpad: scratchpad,
1883
+ skills: skills,
1882
1884
  });
1883
1885
  }
1884
1886
  /**
@@ -1948,9 +1950,10 @@ class Graphlit {
1948
1950
  * @param persona - The persona to use, optional.
1949
1951
  * @param instructions - Per-turn instructions to inject into guidance, optional.
1950
1952
  * @param scratchpad - Per-turn scratchpad text to inject, optional. Merged with conversation scratchpad.
1953
+ * @param skills - Skill references to inject into the agent's context window, optional.
1951
1954
  * @returns The conversation response.
1952
1955
  */
1953
- async promptConversation(prompt, id, specification, mimeType, data, tools, requireTool, systemPrompt, includeDetails, correlationId, persona, instructions, scratchpad) {
1956
+ async promptConversation(prompt, id, specification, mimeType, data, tools, requireTool, systemPrompt, includeDetails, correlationId, persona, instructions, scratchpad, skills) {
1954
1957
  return this.mutateAndCheckError(Documents.PromptConversation, {
1955
1958
  prompt: prompt,
1956
1959
  id: id,
@@ -1965,6 +1968,7 @@ class Graphlit {
1965
1968
  correlationId: correlationId,
1966
1969
  instructions: instructions,
1967
1970
  scratchpad: scratchpad,
1971
+ skills: skills,
1968
1972
  });
1969
1973
  }
1970
1974
  /**
@@ -2431,6 +2435,126 @@ class Graphlit {
2431
2435
  email: email,
2432
2436
  });
2433
2437
  }
2438
+ // ──────────────────────────────────────────────────────────────────────────
2439
+ // Skills
2440
+ // NOTE: Types (SkillInput, SkillUpdateInput, SkillFilter, etc.) and
2441
+ // Documents (CreateSkill, UpdateSkill, etc.) will be generated by codegen
2442
+ // once the API schema is published. Until then these methods will show
2443
+ // TypeScript errors — that is expected.
2444
+ // ──────────────────────────────────────────────────────────────────────────
2445
+ /**
2446
+ * Creates a skill.
2447
+ * @param skill - The skill to create.
2448
+ * @param correlationId - The tenant correlation identifier, optional.
2449
+ * @returns The created skill.
2450
+ */
2451
+ async createSkill(skill, correlationId) {
2452
+ return this.mutateAndCheckError(Documents.CreateSkill, { skill: skill, correlationId: correlationId });
2453
+ }
2454
+ /**
2455
+ * Updates a skill.
2456
+ * @param skill - The skill to update.
2457
+ * @returns The updated skill.
2458
+ */
2459
+ async updateSkill(skill) {
2460
+ return this.mutateAndCheckError(Documents.UpdateSkill, { skill: skill });
2461
+ }
2462
+ /**
2463
+ * Creates or updates a skill.
2464
+ * @param skill - The skill to create or update.
2465
+ * @returns The created or updated skill.
2466
+ */
2467
+ async upsertSkill(skill) {
2468
+ return this.mutateAndCheckError(Documents.UpsertSkill, { skill: skill });
2469
+ }
2470
+ /**
2471
+ * Deletes a skill.
2472
+ * @param id - The ID of the skill to delete.
2473
+ * @returns The deleted skill.
2474
+ */
2475
+ async deleteSkill(id) {
2476
+ return this.mutateAndCheckError(Documents.DeleteSkill, { id: id });
2477
+ }
2478
+ /**
2479
+ * Deletes multiple skills.
2480
+ * @param ids - The IDs of the skills to delete.
2481
+ * @param isSynchronous - Whether this mutation is synchronous.
2482
+ * @returns The deleted skills.
2483
+ */
2484
+ async deleteSkills(ids, isSynchronous) {
2485
+ return this.mutateAndCheckError(Documents.DeleteSkills, { ids: ids, isSynchronous: isSynchronous });
2486
+ }
2487
+ /**
2488
+ * Deletes all skills based on the provided filter criteria.
2489
+ * @param filter - The filter criteria to apply when deleting skills.
2490
+ * @param isSynchronous - Whether this mutation is synchronous.
2491
+ * @param correlationId - The tenant correlation identifier, optional.
2492
+ * @returns The result of the deletion.
2493
+ */
2494
+ async deleteAllSkills(filter, isSynchronous, correlationId) {
2495
+ return this.mutateAndCheckError(Documents.DeleteAllSkills, { filter: filter, isSynchronous: isSynchronous, correlationId: correlationId });
2496
+ }
2497
+ /**
2498
+ * Enables a skill.
2499
+ * @param id - The ID of the skill to enable.
2500
+ * @returns The enabled skill.
2501
+ */
2502
+ async enableSkill(id) {
2503
+ return this.mutateAndCheckError(Documents.EnableSkill, { id: id });
2504
+ }
2505
+ /**
2506
+ * Disables a skill.
2507
+ * @param id - The ID of the skill to disable.
2508
+ * @returns The disabled skill.
2509
+ */
2510
+ async disableSkill(id) {
2511
+ return this.mutateAndCheckError(Documents.DisableSkill, { id: id });
2512
+ }
2513
+ /**
2514
+ * Lookup a skill given its ID.
2515
+ * @param id - ID of the skill.
2516
+ * @param correlationId - The tenant correlation identifier, optional.
2517
+ * @returns The skill.
2518
+ */
2519
+ async getSkill(id, correlationId) {
2520
+ return this.queryAndCheckError(Documents.GetSkill, { id: id, correlationId: correlationId });
2521
+ }
2522
+ /**
2523
+ * Retrieves skills based on the provided filter criteria.
2524
+ * @param filter - The filter criteria to apply when retrieving skills.
2525
+ * @param correlationId - The tenant correlation identifier, optional.
2526
+ * @returns The skills.
2527
+ */
2528
+ async querySkills(filter, correlationId) {
2529
+ return this.queryAndCheckError(Documents.QuerySkills, { filter: filter, correlationId: correlationId });
2530
+ }
2531
+ /**
2532
+ * Counts skills based on the provided filter criteria.
2533
+ * @param filter - The filter criteria to apply when counting skills.
2534
+ * @param correlationId - The tenant correlation identifier, optional.
2535
+ * @returns The count of skills.
2536
+ */
2537
+ async countSkills(filter, correlationId) {
2538
+ return this.queryAndCheckError(Documents.CountSkills, { filter: filter, correlationId: correlationId });
2539
+ }
2540
+ /**
2541
+ * Adds skills to one or more collections.
2542
+ * @param skills - The skills to add.
2543
+ * @param collections - The collections to add the skills to.
2544
+ * @returns The updated collections.
2545
+ */
2546
+ async addSkillsToCollections(skills, collections) {
2547
+ return this.mutateAndCheckError(Documents.AddSkillsToCollections, { skills: skills, collections: collections });
2548
+ }
2549
+ /**
2550
+ * Removes skills from a collection.
2551
+ * @param skills - The skills to remove.
2552
+ * @param collection - The collection to remove the skills from.
2553
+ * @returns The updated collection.
2554
+ */
2555
+ async removeSkillsFromCollection(skills, collection) {
2556
+ return this.mutateAndCheckError(Documents.RemoveSkillsFromCollection, { skills: skills, collection: collection });
2557
+ }
2434
2558
  /**
2435
2559
  * Prompts multiple specifications and returns the best response.
2436
2560
  * @param prompt - The prompt to send to each specification.
@@ -5081,7 +5205,7 @@ class Graphlit {
5081
5205
  });
5082
5206
  // Start the streaming conversation
5083
5207
  // fullSpec is guaranteed non-null here — the !fullSpec check above returns early
5084
- await this.executeStreamingAgent(prompt, actualConversationId, fullSpec, tools, toolHandlers, uiAdapter, maxRounds, abortSignal, mimeType, data, correlationId, persona, options?.contextStrategy, options?.instructions, options?.scratchpad);
5208
+ await this.executeStreamingAgent(prompt, actualConversationId, fullSpec, tools, toolHandlers, uiAdapter, maxRounds, abortSignal, mimeType, data, correlationId, persona, options?.contextStrategy, options?.instructions, options?.scratchpad, options?.skills);
5085
5209
  }, abortSignal);
5086
5210
  }
5087
5211
  catch (error) {
@@ -5127,7 +5251,7 @@ class Graphlit {
5127
5251
  /**
5128
5252
  * Execute the streaming agent workflow with tool calling loop
5129
5253
  */
5130
- async executeStreamingAgent(prompt, conversationId, specification, tools, toolHandlers, uiAdapter, maxRounds, abortSignal, mimeType, data, correlationId, persona, contextStrategy, instructions, scratchpad) {
5254
+ async executeStreamingAgent(prompt, conversationId, specification, tools, toolHandlers, uiAdapter, maxRounds, abortSignal, mimeType, data, correlationId, persona, contextStrategy, instructions, scratchpad, skills) {
5131
5255
  // Collects artifact content IDs from tool handlers (e.g. code_execution).
5132
5256
  // Handlers register async ingestion promises; we await all of them before
5133
5257
  // completeConversation so the IDs are available without blocking the LLM.
@@ -5147,7 +5271,7 @@ class Graphlit {
5147
5271
  conversationId,
5148
5272
  });
5149
5273
  // Format conversation once at the beginning
5150
- const formatResponse = await this.formatConversation(prompt, conversationId, { id: specification.id }, tools, undefined, true, correlationId, persona, instructions, scratchpad);
5274
+ const formatResponse = await this.formatConversation(prompt, conversationId, { id: specification.id }, tools, undefined, true, correlationId, persona, instructions, scratchpad, skills);
5151
5275
  const formattedMessage = formatResponse.formatConversation?.message;
5152
5276
  const conversationHistory = formatResponse.formatConversation?.details?.messages;
5153
5277
  if (!formattedMessage?.message) {
@@ -6144,7 +6268,7 @@ class Graphlit {
6144
6268
  }
6145
6269
  else {
6146
6270
  // Formatted path: call formatConversation
6147
- const formatResponse = await this.formatConversation(turn === 0 ? prompt : "Continue.", conversationId, agentSpec, allTools, undefined, true, options?.correlationId, options?.persona, turnInstructions, agentScratchpad);
6271
+ const formatResponse = await this.formatConversation(turn === 0 ? prompt : "Continue.", conversationId, agentSpec, allTools, undefined, true, options?.correlationId, options?.persona, turnInstructions, agentScratchpad, options?.skills);
6148
6272
  const formattedMessage = formatResponse.formatConversation?.message;
6149
6273
  const conversationHistory = formatResponse.formatConversation?.details?.messages;
6150
6274
  const formatDetails = formatResponse.formatConversation?.details;
@@ -31,6 +31,7 @@ export declare const UpdateCategory: import("graphql").DocumentNode;
31
31
  export declare const UpsertCategory: import("graphql").DocumentNode;
32
32
  export declare const AddContentsToCollections: import("graphql").DocumentNode;
33
33
  export declare const AddConversationsToCollections: import("graphql").DocumentNode;
34
+ export declare const AddSkillsToCollections: import("graphql").DocumentNode;
34
35
  export declare const CountCollections: import("graphql").DocumentNode;
35
36
  export declare const CreateCollection: import("graphql").DocumentNode;
36
37
  export declare const DeleteAllCollections: import("graphql").DocumentNode;
@@ -40,6 +41,7 @@ export declare const GetCollection: import("graphql").DocumentNode;
40
41
  export declare const QueryCollections: import("graphql").DocumentNode;
41
42
  export declare const RemoveContentsFromCollection: import("graphql").DocumentNode;
42
43
  export declare const RemoveConversationsFromCollection: import("graphql").DocumentNode;
44
+ export declare const RemoveSkillsFromCollection: import("graphql").DocumentNode;
43
45
  export declare const UpdateCollection: import("graphql").DocumentNode;
44
46
  export declare const CountConnectors: import("graphql").DocumentNode;
45
47
  export declare const CreateConnector: import("graphql").DocumentNode;
@@ -389,6 +391,17 @@ export declare const QueryReposClusters: import("graphql").DocumentNode;
389
391
  export declare const UpdateRepo: import("graphql").DocumentNode;
390
392
  export declare const MapWeb: import("graphql").DocumentNode;
391
393
  export declare const SearchWeb: import("graphql").DocumentNode;
394
+ export declare const CountSkills: import("graphql").DocumentNode;
395
+ export declare const CreateSkill: import("graphql").DocumentNode;
396
+ export declare const DeleteAllSkills: import("graphql").DocumentNode;
397
+ export declare const DeleteSkill: import("graphql").DocumentNode;
398
+ export declare const DeleteSkills: import("graphql").DocumentNode;
399
+ export declare const DisableSkill: import("graphql").DocumentNode;
400
+ export declare const EnableSkill: import("graphql").DocumentNode;
401
+ export declare const GetSkill: import("graphql").DocumentNode;
402
+ export declare const QuerySkills: import("graphql").DocumentNode;
403
+ export declare const UpdateSkill: import("graphql").DocumentNode;
404
+ export declare const UpsertSkill: import("graphql").DocumentNode;
392
405
  export declare const CountSoftwares: import("graphql").DocumentNode;
393
406
  export declare const CreateSoftware: import("graphql").DocumentNode;
394
407
  export declare const DeleteAllSoftwares: import("graphql").DocumentNode;
@@ -934,6 +934,20 @@ export const AddConversationsToCollections = gql `
934
934
  }
935
935
  }
936
936
  `;
937
+ export const AddSkillsToCollections = gql `
938
+ mutation AddSkillsToCollections($skills: [EntityReferenceInput!]!, $collections: [EntityReferenceInput!]!) {
939
+ addSkillsToCollections(skills: $skills, collections: $collections) {
940
+ id
941
+ name
942
+ state
943
+ type
944
+ skills {
945
+ id
946
+ name
947
+ }
948
+ }
949
+ }
950
+ `;
937
951
  export const CountCollections = gql `
938
952
  query CountCollections($filter: CollectionFilter, $correlationId: String) {
939
953
  countCollections(filter: $filter, correlationId: $correlationId) {
@@ -1051,6 +1065,20 @@ export const RemoveConversationsFromCollection = gql `
1051
1065
  }
1052
1066
  }
1053
1067
  `;
1068
+ export const RemoveSkillsFromCollection = gql `
1069
+ mutation RemoveSkillsFromCollection($skills: [EntityReferenceInput!]!, $collection: EntityReferenceInput!) {
1070
+ removeSkillsFromCollection(skills: $skills, collection: $collection) {
1071
+ id
1072
+ name
1073
+ state
1074
+ type
1075
+ skills {
1076
+ id
1077
+ name
1078
+ }
1079
+ }
1080
+ }
1081
+ `;
1054
1082
  export const UpdateCollection = gql `
1055
1083
  mutation UpdateCollection($collection: CollectionUpdateInput!) {
1056
1084
  updateCollection(collection: $collection) {
@@ -5369,7 +5397,7 @@ export const DeleteConversations = gql `
5369
5397
  }
5370
5398
  `;
5371
5399
  export const FormatConversation = gql `
5372
- mutation FormatConversation($prompt: String!, $id: ID, $specification: EntityReferenceInput, $persona: EntityReferenceInput, $tools: [ToolDefinitionInput!], $systemPrompt: String, $includeDetails: Boolean, $correlationId: String, $instructions: String, $scratchpad: String) {
5400
+ mutation FormatConversation($prompt: String!, $id: ID, $specification: EntityReferenceInput, $persona: EntityReferenceInput, $tools: [ToolDefinitionInput!], $systemPrompt: String, $includeDetails: Boolean, $correlationId: String, $instructions: String, $scratchpad: String, $skills: [EntityReferenceInput!]) {
5373
5401
  formatConversation(
5374
5402
  prompt: $prompt
5375
5403
  id: $id
@@ -5381,6 +5409,7 @@ export const FormatConversation = gql `
5381
5409
  correlationId: $correlationId
5382
5410
  instructions: $instructions
5383
5411
  scratchpad: $scratchpad
5412
+ skills: $skills
5384
5413
  ) {
5385
5414
  conversation {
5386
5415
  id
@@ -6296,7 +6325,7 @@ export const Prompt = gql `
6296
6325
  }
6297
6326
  `;
6298
6327
  export const PromptConversation = gql `
6299
- mutation PromptConversation($prompt: String!, $mimeType: String, $data: String, $id: ID, $specification: EntityReferenceInput, $persona: EntityReferenceInput, $systemPrompt: String, $tools: [ToolDefinitionInput!], $requireTool: Boolean, $includeDetails: Boolean, $correlationId: String, $instructions: String, $scratchpad: String) {
6328
+ mutation PromptConversation($prompt: String!, $mimeType: String, $data: String, $id: ID, $specification: EntityReferenceInput, $persona: EntityReferenceInput, $systemPrompt: String, $tools: [ToolDefinitionInput!], $requireTool: Boolean, $includeDetails: Boolean, $correlationId: String, $instructions: String, $scratchpad: String, $skills: [EntityReferenceInput!]) {
6300
6329
  promptConversation(
6301
6330
  prompt: $prompt
6302
6331
  id: $id
@@ -6311,6 +6340,7 @@ export const PromptConversation = gql `
6311
6340
  correlationId: $correlationId
6312
6341
  instructions: $instructions
6313
6342
  scratchpad: $scratchpad
6343
+ skills: $skills
6314
6344
  ) {
6315
6345
  conversation {
6316
6346
  id
@@ -16451,6 +16481,132 @@ export const SearchWeb = gql `
16451
16481
  }
16452
16482
  }
16453
16483
  `;
16484
+ export const CountSkills = gql `
16485
+ query CountSkills($filter: SkillFilter, $correlationId: String) {
16486
+ countSkills(filter: $filter, correlationId: $correlationId) {
16487
+ count
16488
+ }
16489
+ }
16490
+ `;
16491
+ export const CreateSkill = gql `
16492
+ mutation CreateSkill($skill: SkillInput!, $correlationId: String) {
16493
+ createSkill(skill: $skill, correlationId: $correlationId) {
16494
+ id
16495
+ name
16496
+ state
16497
+ skillOwner
16498
+ }
16499
+ }
16500
+ `;
16501
+ export const DeleteAllSkills = gql `
16502
+ mutation DeleteAllSkills($filter: SkillFilter, $isSynchronous: Boolean, $correlationId: String) {
16503
+ deleteAllSkills(
16504
+ filter: $filter
16505
+ isSynchronous: $isSynchronous
16506
+ correlationId: $correlationId
16507
+ ) {
16508
+ id
16509
+ state
16510
+ }
16511
+ }
16512
+ `;
16513
+ export const DeleteSkill = gql `
16514
+ mutation DeleteSkill($id: ID!) {
16515
+ deleteSkill(id: $id) {
16516
+ id
16517
+ state
16518
+ }
16519
+ }
16520
+ `;
16521
+ export const DeleteSkills = gql `
16522
+ mutation DeleteSkills($ids: [ID!]!, $isSynchronous: Boolean) {
16523
+ deleteSkills(ids: $ids, isSynchronous: $isSynchronous) {
16524
+ id
16525
+ state
16526
+ }
16527
+ }
16528
+ `;
16529
+ export const DisableSkill = gql `
16530
+ mutation DisableSkill($id: ID!) {
16531
+ disableSkill(id: $id) {
16532
+ id
16533
+ state
16534
+ }
16535
+ }
16536
+ `;
16537
+ export const EnableSkill = gql `
16538
+ mutation EnableSkill($id: ID!) {
16539
+ enableSkill(id: $id) {
16540
+ id
16541
+ state
16542
+ }
16543
+ }
16544
+ `;
16545
+ export const GetSkill = gql `
16546
+ query GetSkill($id: ID!, $correlationId: String) {
16547
+ skill(id: $id, correlationId: $correlationId) {
16548
+ id
16549
+ name
16550
+ creationDate
16551
+ modifiedDate
16552
+ owner {
16553
+ id
16554
+ }
16555
+ state
16556
+ correlationId
16557
+ text
16558
+ skillOwner
16559
+ collections {
16560
+ id
16561
+ name
16562
+ }
16563
+ }
16564
+ }
16565
+ `;
16566
+ export const QuerySkills = gql `
16567
+ query QuerySkills($filter: SkillFilter, $correlationId: String) {
16568
+ skills(filter: $filter, correlationId: $correlationId) {
16569
+ results {
16570
+ id
16571
+ name
16572
+ creationDate
16573
+ modifiedDate
16574
+ relevance
16575
+ owner {
16576
+ id
16577
+ }
16578
+ state
16579
+ correlationId
16580
+ text
16581
+ skillOwner
16582
+ collections {
16583
+ id
16584
+ name
16585
+ }
16586
+ }
16587
+ }
16588
+ }
16589
+ `;
16590
+ export const UpdateSkill = gql `
16591
+ mutation UpdateSkill($skill: SkillUpdateInput!) {
16592
+ updateSkill(skill: $skill) {
16593
+ id
16594
+ name
16595
+ state
16596
+ skillOwner
16597
+ }
16598
+ }
16599
+ `;
16600
+ export const UpsertSkill = gql `
16601
+ mutation UpsertSkill($skill: SkillInput!) {
16602
+ upsertSkill(skill: $skill) {
16603
+ id
16604
+ name
16605
+ state
16606
+ skillOwner
16607
+ }
16608
+ }
16609
+ `;
16454
16610
  export const CountSoftwares = gql `
16455
16611
  query CountSoftwares($filter: SoftwareFilter, $correlationId: String) {
16456
16612
  countSoftwares(filter: $filter, correlationId: $correlationId) {
@@ -2409,6 +2409,10 @@ export type Collection = {
2409
2409
  owner: Owner;
2410
2410
  /** The relevance score of the collection. */
2411
2411
  relevance?: Maybe<Scalars['Float']['output']>;
2412
+ /** The count of the skills contained by the collection. */
2413
+ skillCount?: Maybe<Scalars['Int']['output']>;
2414
+ /** The skills contained by the collection. */
2415
+ skills?: Maybe<Array<Maybe<Skill>>>;
2412
2416
  /** The state of the collection (i.e. created, finished). */
2413
2417
  state: EntityState;
2414
2418
  /** The collection type. */
@@ -3757,6 +3761,8 @@ export type ConversationDetails = {
3757
3761
  formattedPersona?: Maybe<Scalars['String']['output']>;
3758
3762
  /** The formatted scratchpad. */
3759
3763
  formattedScratchpad?: Maybe<Scalars['String']['output']>;
3764
+ /** The formatted skills content. */
3765
+ formattedSkills?: Maybe<Scalars['String']['output']>;
3760
3766
  /** The formatted sources. */
3761
3767
  formattedSources?: Maybe<Scalars['String']['output']>;
3762
3768
  /** The formatted LLM tools. */
@@ -5712,6 +5718,13 @@ export type EntityFeedPropertiesUpdateInput = {
5712
5718
  /** The limit of items to be read from feed, defaults to 100. */
5713
5719
  readLimit?: InputMaybe<Scalars['Int']['input']>;
5714
5720
  };
5721
+ /** Entity owner */
5722
+ export declare enum EntityOwners {
5723
+ /** Owned by project */
5724
+ Project = "PROJECT",
5725
+ /** Owned by system */
5726
+ System = "SYSTEM"
5727
+ }
5715
5728
  /** Represents an entity reference. */
5716
5729
  export type EntityReference = {
5717
5730
  __typename?: 'EntityReference';
@@ -5922,6 +5935,8 @@ export declare enum EntityTypes {
5922
5935
  Repo = "REPO",
5923
5936
  /** Cloud storage site */
5924
5937
  Site = "SITE",
5938
+ /** Skill */
5939
+ Skill = "SKILL",
5925
5940
  /** Software */
5926
5941
  Software = "SOFTWARE",
5927
5942
  /** Model specification */
@@ -13857,6 +13872,8 @@ export type Mutation = {
13857
13872
  addContentsToCollections?: Maybe<Array<Maybe<Collection>>>;
13858
13873
  /** Adds conversations to one or more collections. */
13859
13874
  addConversationsToCollections?: Maybe<Array<Maybe<Collection>>>;
13875
+ /** Adds skills to one or more collections. */
13876
+ addSkillsToCollections?: Maybe<Array<Maybe<Collection>>>;
13860
13877
  /** Approves content, and resumes workflow from the prepared stage (without re-ingesting or re-running the storage gate). */
13861
13878
  approveContent?: Maybe<Content>;
13862
13879
  /** Ask questions about the Graphlit API or SDKs. Can create code samples for any API call. */
@@ -13935,6 +13952,8 @@ export type Mutation = {
13935
13952
  createProduct?: Maybe<Product>;
13936
13953
  /** Creates a new repo. */
13937
13954
  createRepo?: Maybe<Repo>;
13955
+ /** Creates a new skill. */
13956
+ createSkill?: Maybe<Skill>;
13938
13957
  /** Creates a new software. */
13939
13958
  createSoftware?: Maybe<Software>;
13940
13959
  /** Creates a new LLM specification. */
@@ -14013,6 +14032,8 @@ export type Mutation = {
14013
14032
  deleteAllProducts?: Maybe<Array<Maybe<Product>>>;
14014
14033
  /** Bulk deletes repos based on the provided filter criteria. */
14015
14034
  deleteAllRepos?: Maybe<Array<Maybe<Repo>>>;
14035
+ /** Bulk deletes skills based on the provided filter criteria. */
14036
+ deleteAllSkills?: Maybe<Array<Maybe<Skill>>>;
14016
14037
  /** Bulk deletes software based on the provided filter criteria. */
14017
14038
  deleteAllSoftwares?: Maybe<Array<Maybe<Software>>>;
14018
14039
  /** Bulk deletes specifications based on the provided filter criteria. */
@@ -14137,6 +14158,10 @@ export type Mutation = {
14137
14158
  deleteRepo?: Maybe<Repo>;
14138
14159
  /** Bulk deletes repos. */
14139
14160
  deleteRepos?: Maybe<Array<Maybe<Repo>>>;
14161
+ /** Deletes a skill. */
14162
+ deleteSkill?: Maybe<Skill>;
14163
+ /** Bulk deletes skills. */
14164
+ deleteSkills?: Maybe<Array<Maybe<Skill>>>;
14140
14165
  /** Deletes a software. */
14141
14166
  deleteSoftware?: Maybe<Software>;
14142
14167
  /** Bulk deletes software. */
@@ -14165,6 +14190,8 @@ export type Mutation = {
14165
14190
  disableAlert?: Maybe<Alert>;
14166
14191
  /** Disables a feed. */
14167
14192
  disableFeed?: Maybe<Feed>;
14193
+ /** Disables a skill. */
14194
+ disableSkill?: Maybe<Skill>;
14168
14195
  /** Disables a user. */
14169
14196
  disableUser?: Maybe<User>;
14170
14197
  /** Distribute to an external service. */
@@ -14175,6 +14202,8 @@ export type Mutation = {
14175
14202
  enableAlert?: Maybe<Alert>;
14176
14203
  /** Enables a feed. */
14177
14204
  enableFeed?: Maybe<Feed>;
14205
+ /** Enables a skill. */
14206
+ enableSkill?: Maybe<Skill>;
14178
14207
  /** Enables a user. */
14179
14208
  enableUser?: Maybe<User>;
14180
14209
  /** Enriches organizations matching the filter criteria using the specified enrichment connector. */
@@ -14245,6 +14274,8 @@ export type Mutation = {
14245
14274
  removeContentsFromCollection?: Maybe<Collection>;
14246
14275
  /** Removes conversations from a collection. */
14247
14276
  removeConversationsFromCollection?: Maybe<Collection>;
14277
+ /** Removes skills from a collection. */
14278
+ removeSkillsFromCollection?: Maybe<Collection>;
14248
14279
  /** Research contents via web research based on provided filter criteria. */
14249
14280
  researchContents?: Maybe<StringResult>;
14250
14281
  /** Resolves duplicate entities into a single primary entity using LLM reasoning. Returns clusters of suggested groupings if resolution is not executed. */
@@ -14351,6 +14382,8 @@ export type Mutation = {
14351
14382
  updateProject?: Maybe<Project>;
14352
14383
  /** Updates a repo. */
14353
14384
  updateRepo?: Maybe<Repo>;
14385
+ /** Updates an existing skill. */
14386
+ updateSkill?: Maybe<Skill>;
14354
14387
  /** Updates a software. */
14355
14388
  updateSoftware?: Maybe<Software>;
14356
14389
  /** Updates an existing LLM specification. */
@@ -14371,6 +14404,8 @@ export type Mutation = {
14371
14404
  upsertEmotion?: Maybe<Emotion>;
14372
14405
  /** Upserts a label. */
14373
14406
  upsertLabel?: Maybe<Label>;
14407
+ /** Upserts a skill. */
14408
+ upsertSkill?: Maybe<Skill>;
14374
14409
  /** Upserts an LLM specification. */
14375
14410
  upsertSpecification?: Maybe<Specification>;
14376
14411
  /** Upserts a view. */
@@ -14390,6 +14425,10 @@ export type MutationAddConversationsToCollectionsArgs = {
14390
14425
  collections: Array<EntityReferenceInput>;
14391
14426
  conversations: Array<EntityReferenceInput>;
14392
14427
  };
14428
+ export type MutationAddSkillsToCollectionsArgs = {
14429
+ collections: Array<EntityReferenceInput>;
14430
+ skills: Array<EntityReferenceInput>;
14431
+ };
14393
14432
  export type MutationApproveContentArgs = {
14394
14433
  id: Scalars['ID']['input'];
14395
14434
  };
@@ -14526,6 +14565,10 @@ export type MutationCreateProductArgs = {
14526
14565
  export type MutationCreateRepoArgs = {
14527
14566
  repo: RepoInput;
14528
14567
  };
14568
+ export type MutationCreateSkillArgs = {
14569
+ correlationId?: InputMaybe<Scalars['String']['input']>;
14570
+ skill: SkillInput;
14571
+ };
14529
14572
  export type MutationCreateSoftwareArgs = {
14530
14573
  software: SoftwareInput;
14531
14574
  };
@@ -14705,6 +14748,11 @@ export type MutationDeleteAllReposArgs = {
14705
14748
  filter?: InputMaybe<RepoFilter>;
14706
14749
  isSynchronous?: InputMaybe<Scalars['Boolean']['input']>;
14707
14750
  };
14751
+ export type MutationDeleteAllSkillsArgs = {
14752
+ correlationId?: InputMaybe<Scalars['String']['input']>;
14753
+ filter?: InputMaybe<SkillFilter>;
14754
+ isSynchronous?: InputMaybe<Scalars['Boolean']['input']>;
14755
+ };
14708
14756
  export type MutationDeleteAllSoftwaresArgs = {
14709
14757
  correlationId?: InputMaybe<Scalars['String']['input']>;
14710
14758
  filter?: InputMaybe<SoftwareFilter>;
@@ -14927,6 +14975,13 @@ export type MutationDeleteReposArgs = {
14927
14975
  ids: Array<Scalars['ID']['input']>;
14928
14976
  isSynchronous?: InputMaybe<Scalars['Boolean']['input']>;
14929
14977
  };
14978
+ export type MutationDeleteSkillArgs = {
14979
+ id: Scalars['ID']['input'];
14980
+ };
14981
+ export type MutationDeleteSkillsArgs = {
14982
+ ids: Array<Scalars['ID']['input']>;
14983
+ isSynchronous?: InputMaybe<Scalars['Boolean']['input']>;
14984
+ };
14930
14985
  export type MutationDeleteSoftwareArgs = {
14931
14986
  id: Scalars['ID']['input'];
14932
14987
  };
@@ -14980,6 +15035,9 @@ export type MutationDisableAlertArgs = {
14980
15035
  export type MutationDisableFeedArgs = {
14981
15036
  id: Scalars['ID']['input'];
14982
15037
  };
15038
+ export type MutationDisableSkillArgs = {
15039
+ id: Scalars['ID']['input'];
15040
+ };
14983
15041
  export type MutationDisableUserArgs = {
14984
15042
  id: Scalars['ID']['input'];
14985
15043
  };
@@ -15001,6 +15059,9 @@ export type MutationEnableAlertArgs = {
15001
15059
  export type MutationEnableFeedArgs = {
15002
15060
  id: Scalars['ID']['input'];
15003
15061
  };
15062
+ export type MutationEnableSkillArgs = {
15063
+ id: Scalars['ID']['input'];
15064
+ };
15004
15065
  export type MutationEnableUserArgs = {
15005
15066
  id: Scalars['ID']['input'];
15006
15067
  };
@@ -15054,6 +15115,7 @@ export type MutationFormatConversationArgs = {
15054
15115
  persona?: InputMaybe<EntityReferenceInput>;
15055
15116
  prompt: Scalars['String']['input'];
15056
15117
  scratchpad?: InputMaybe<Scalars['String']['input']>;
15118
+ skills?: InputMaybe<Array<EntityReferenceInput>>;
15057
15119
  specification?: InputMaybe<EntityReferenceInput>;
15058
15120
  systemPrompt?: InputMaybe<Scalars['String']['input']>;
15059
15121
  tools?: InputMaybe<Array<ToolDefinitionInput>>;
@@ -15182,6 +15244,7 @@ export type MutationPromptConversationArgs = {
15182
15244
  prompt: Scalars['String']['input'];
15183
15245
  requireTool?: InputMaybe<Scalars['Boolean']['input']>;
15184
15246
  scratchpad?: InputMaybe<Scalars['String']['input']>;
15247
+ skills?: InputMaybe<Array<EntityReferenceInput>>;
15185
15248
  specification?: InputMaybe<EntityReferenceInput>;
15186
15249
  systemPrompt?: InputMaybe<Scalars['String']['input']>;
15187
15250
  tools?: InputMaybe<Array<ToolDefinitionInput>>;
@@ -15244,6 +15307,10 @@ export type MutationRemoveConversationsFromCollectionArgs = {
15244
15307
  collection: EntityReferenceInput;
15245
15308
  conversations: Array<EntityReferenceInput>;
15246
15309
  };
15310
+ export type MutationRemoveSkillsFromCollectionArgs = {
15311
+ collection: EntityReferenceInput;
15312
+ skills: Array<EntityReferenceInput>;
15313
+ };
15247
15314
  export type MutationResearchContentsArgs = {
15248
15315
  connector: ContentPublishingConnectorInput;
15249
15316
  correlationId?: InputMaybe<Scalars['String']['input']>;
@@ -15465,6 +15532,9 @@ export type MutationUpdateProjectArgs = {
15465
15532
  export type MutationUpdateRepoArgs = {
15466
15533
  repo: RepoUpdateInput;
15467
15534
  };
15535
+ export type MutationUpdateSkillArgs = {
15536
+ skill: SkillUpdateInput;
15537
+ };
15468
15538
  export type MutationUpdateSoftwareArgs = {
15469
15539
  software: SoftwareUpdateInput;
15470
15540
  };
@@ -15498,6 +15568,9 @@ export type MutationUpsertLabelArgs = {
15498
15568
  correlationId?: InputMaybe<Scalars['String']['input']>;
15499
15569
  label: LabelInput;
15500
15570
  };
15571
+ export type MutationUpsertSkillArgs = {
15572
+ skill: SkillInput;
15573
+ };
15501
15574
  export type MutationUpsertSpecificationArgs = {
15502
15575
  specification: SpecificationInput;
15503
15576
  };
@@ -18532,6 +18605,8 @@ export type Query = {
18532
18605
  countProducts?: Maybe<CountResult>;
18533
18606
  /** Counts repos based on the provided filter criteria. */
18534
18607
  countRepos?: Maybe<CountResult>;
18608
+ /** Counts skills based on the provided filter criteria. */
18609
+ countSkills?: Maybe<CountResult>;
18535
18610
  /** Counts software based on the provided filter criteria. */
18536
18611
  countSoftwares?: Maybe<CountResult>;
18537
18612
  /** Counts specifications based on the provided filter criteria. */
@@ -18718,6 +18793,10 @@ export type Query = {
18718
18793
  sharePointFolders?: Maybe<SharePointFolderResults>;
18719
18794
  /** Retrieves available SharePoint document libraries. */
18720
18795
  sharePointLibraries?: Maybe<SharePointLibraryResults>;
18796
+ /** Lookup a skill given its ID. */
18797
+ skill?: Maybe<Skill>;
18798
+ /** Retrieves skills based on the provided filter criteria. */
18799
+ skills?: Maybe<SkillResults>;
18721
18800
  /** Retrieves available Slack channels. */
18722
18801
  slackChannels?: Maybe<StringResults>;
18723
18802
  /** Lookup software given its ID. */
@@ -18966,6 +19045,10 @@ export type QueryCountReposArgs = {
18966
19045
  correlationId?: InputMaybe<Scalars['String']['input']>;
18967
19046
  filter?: InputMaybe<RepoFilter>;
18968
19047
  };
19048
+ export type QueryCountSkillsArgs = {
19049
+ correlationId?: InputMaybe<Scalars['String']['input']>;
19050
+ filter?: InputMaybe<SkillFilter>;
19051
+ };
18969
19052
  export type QueryCountSoftwaresArgs = {
18970
19053
  correlationId?: InputMaybe<Scalars['String']['input']>;
18971
19054
  filter?: InputMaybe<SoftwareFilter>;
@@ -19374,6 +19457,14 @@ export type QuerySharePointFoldersArgs = {
19374
19457
  export type QuerySharePointLibrariesArgs = {
19375
19458
  properties: SharePointLibrariesInput;
19376
19459
  };
19460
+ export type QuerySkillArgs = {
19461
+ correlationId?: InputMaybe<Scalars['String']['input']>;
19462
+ id: Scalars['ID']['input'];
19463
+ };
19464
+ export type QuerySkillsArgs = {
19465
+ correlationId?: InputMaybe<Scalars['String']['input']>;
19466
+ filter?: InputMaybe<SkillFilter>;
19467
+ };
19377
19468
  export type QuerySlackChannelsArgs = {
19378
19469
  properties: SlackChannelsInput;
19379
19470
  };
@@ -20703,6 +20794,99 @@ export declare enum SiteTypes {
20703
20794
  /** Watch cloud storage site */
20704
20795
  Watch = "WATCH"
20705
20796
  }
20797
+ /** Represents a skill. */
20798
+ export type Skill = {
20799
+ __typename?: 'Skill';
20800
+ /** The collections this skill belongs to. */
20801
+ collections?: Maybe<Array<Maybe<Collection>>>;
20802
+ /** The tenant correlation identifier. */
20803
+ correlationId?: Maybe<Scalars['String']['output']>;
20804
+ /** The creation date of the skill. */
20805
+ creationDate: Scalars['DateTime']['output'];
20806
+ /** The description of the skill. */
20807
+ description?: Maybe<Scalars['String']['output']>;
20808
+ /** The ID of the skill. */
20809
+ id: Scalars['ID']['output'];
20810
+ /** The modified date of the skill. */
20811
+ modifiedDate?: Maybe<Scalars['DateTime']['output']>;
20812
+ /** The name of the skill. */
20813
+ name: Scalars['String']['output'];
20814
+ /** The owner of the skill. */
20815
+ owner: Owner;
20816
+ /** The relevance score of the skill. */
20817
+ relevance?: Maybe<Scalars['Float']['output']>;
20818
+ /** The skill owner. */
20819
+ skillOwner?: Maybe<EntityOwners>;
20820
+ /** The state of the skill (i.e. created, finished). */
20821
+ state: EntityState;
20822
+ /** The Markdown text body of the skill. */
20823
+ text: Scalars['String']['output'];
20824
+ };
20825
+ /** Represents a filter for skills. */
20826
+ export type SkillFilter = {
20827
+ /** Filter by collections. */
20828
+ collections?: InputMaybe<Array<EntityReferenceFilter>>;
20829
+ /** Filter by creation date recent timespan. For example, a timespan of one day will return skill(s) created in the last 24 hours. */
20830
+ createdInLast?: InputMaybe<Scalars['TimeSpan']['input']>;
20831
+ /** Filter skill(s) by their creation date range. */
20832
+ creationDateRange?: InputMaybe<DateRangeFilter>;
20833
+ /** The sort direction for query results. */
20834
+ direction?: InputMaybe<OrderDirectionTypes>;
20835
+ /** Filter by whether the skill belongs to any collections. */
20836
+ hasCollections?: InputMaybe<Scalars['Boolean']['input']>;
20837
+ /** Filter skill(s) by their unique ID. */
20838
+ id?: InputMaybe<Scalars['ID']['input']>;
20839
+ /** Limit the number of skill(s) to be returned. Defaults to 100. */
20840
+ limit?: InputMaybe<Scalars['Int']['input']>;
20841
+ /** Filter skill(s) by their modified date range. */
20842
+ modifiedDateRange?: InputMaybe<DateRangeFilter>;
20843
+ /** Filter by modified date recent timespan. For example, a timespan of one day will return skill(s) modified in the last 24 hours. */
20844
+ modifiedInLast?: InputMaybe<Scalars['TimeSpan']['input']>;
20845
+ /** Filter skill(s) by their name. */
20846
+ name?: InputMaybe<Scalars['String']['input']>;
20847
+ /** Skip the specified number of skill(s) from the beginning of the result set. Only supported on keyword search. */
20848
+ offset?: InputMaybe<Scalars['Int']['input']>;
20849
+ /** The sort order for query results. */
20850
+ orderBy?: InputMaybe<OrderByTypes>;
20851
+ /** The relevance score threshold for vector and hybrid search. Results below this threshold will be filtered out. Hybrid search defaults to 0.006. Vector search defaults to 0.54, or 0.78 for OpenAI Ada-002, or 0.61 for Google embedding models. Not applicable to keyword search. */
20852
+ relevanceThreshold?: InputMaybe<Scalars['Float']['input']>;
20853
+ /** Filter skill(s) by searching for similar text. */
20854
+ search?: InputMaybe<Scalars['String']['input']>;
20855
+ /** Filter by skill owners. */
20856
+ skillOwners?: InputMaybe<Array<EntityOwners>>;
20857
+ /** Filter skill(s) by their states. */
20858
+ states?: InputMaybe<Array<EntityState>>;
20859
+ };
20860
+ /** Represents a skill. */
20861
+ export type SkillInput = {
20862
+ /** The collections to add this skill to. */
20863
+ collections?: InputMaybe<Array<EntityReferenceInput>>;
20864
+ /** The description of the skill. */
20865
+ description?: InputMaybe<Scalars['String']['input']>;
20866
+ /** The name of the skill. */
20867
+ name: Scalars['String']['input'];
20868
+ /** The skill owner. */
20869
+ skillOwner?: InputMaybe<EntityOwners>;
20870
+ /** The Markdown text body of the skill. */
20871
+ text: Scalars['String']['input'];
20872
+ };
20873
+ /** Represents skill query results. */
20874
+ export type SkillResults = {
20875
+ __typename?: 'SkillResults';
20876
+ /** The list of skill query results. */
20877
+ results?: Maybe<Array<Skill>>;
20878
+ };
20879
+ /** Represents a skill. */
20880
+ export type SkillUpdateInput = {
20881
+ /** The description of the skill. */
20882
+ description?: InputMaybe<Scalars['String']['input']>;
20883
+ /** The ID of the skill to update. */
20884
+ id: Scalars['ID']['input'];
20885
+ /** The name of the skill. */
20886
+ name?: InputMaybe<Scalars['String']['input']>;
20887
+ /** The Markdown text body of the skill. */
20888
+ text?: InputMaybe<Scalars['String']['input']>;
20889
+ };
20706
20890
  export declare enum SlackAuthenticationTypes {
20707
20891
  Connector = "CONNECTOR",
20708
20892
  Token = "TOKEN"
@@ -23896,6 +24080,25 @@ export type AddConversationsToCollectionsMutation = {
23896
24080
  } | null> | null;
23897
24081
  } | null> | null;
23898
24082
  };
24083
+ export type AddSkillsToCollectionsMutationVariables = Exact<{
24084
+ skills: Array<EntityReferenceInput> | EntityReferenceInput;
24085
+ collections: Array<EntityReferenceInput> | EntityReferenceInput;
24086
+ }>;
24087
+ export type AddSkillsToCollectionsMutation = {
24088
+ __typename?: 'Mutation';
24089
+ addSkillsToCollections?: Array<{
24090
+ __typename?: 'Collection';
24091
+ id: string;
24092
+ name: string;
24093
+ state: EntityState;
24094
+ type?: CollectionTypes | null;
24095
+ skills?: Array<{
24096
+ __typename?: 'Skill';
24097
+ id: string;
24098
+ name: string;
24099
+ } | null> | null;
24100
+ } | null> | null;
24101
+ };
23899
24102
  export type CountCollectionsQueryVariables = Exact<{
23900
24103
  filter?: InputMaybe<CollectionFilter>;
23901
24104
  correlationId?: InputMaybe<Scalars['String']['input']>;
@@ -24048,6 +24251,25 @@ export type RemoveConversationsFromCollectionMutation = {
24048
24251
  } | null> | null;
24049
24252
  } | null;
24050
24253
  };
24254
+ export type RemoveSkillsFromCollectionMutationVariables = Exact<{
24255
+ skills: Array<EntityReferenceInput> | EntityReferenceInput;
24256
+ collection: EntityReferenceInput;
24257
+ }>;
24258
+ export type RemoveSkillsFromCollectionMutation = {
24259
+ __typename?: 'Mutation';
24260
+ removeSkillsFromCollection?: {
24261
+ __typename?: 'Collection';
24262
+ id: string;
24263
+ name: string;
24264
+ state: EntityState;
24265
+ type?: CollectionTypes | null;
24266
+ skills?: Array<{
24267
+ __typename?: 'Skill';
24268
+ id: string;
24269
+ name: string;
24270
+ } | null> | null;
24271
+ } | null;
24272
+ };
24051
24273
  export type UpdateCollectionMutationVariables = Exact<{
24052
24274
  collection: CollectionUpdateInput;
24053
24275
  }>;
@@ -28928,6 +29150,7 @@ export type FormatConversationMutationVariables = Exact<{
28928
29150
  correlationId?: InputMaybe<Scalars['String']['input']>;
28929
29151
  instructions?: InputMaybe<Scalars['String']['input']>;
28930
29152
  scratchpad?: InputMaybe<Scalars['String']['input']>;
29153
+ skills?: InputMaybe<Array<EntityReferenceInput> | EntityReferenceInput>;
28931
29154
  }>;
28932
29155
  export type FormatConversationMutation = {
28933
29156
  __typename?: 'Mutation';
@@ -29975,6 +30198,7 @@ export type PromptConversationMutationVariables = Exact<{
29975
30198
  correlationId?: InputMaybe<Scalars['String']['input']>;
29976
30199
  instructions?: InputMaybe<Scalars['String']['input']>;
29977
30200
  scratchpad?: InputMaybe<Scalars['String']['input']>;
30201
+ skills?: InputMaybe<Array<EntityReferenceInput> | EntityReferenceInput>;
29978
30202
  }>;
29979
30203
  export type PromptConversationMutation = {
29980
30204
  __typename?: 'Mutation';
@@ -42120,6 +42344,173 @@ export type SearchWebQuery = {
42120
42344
  }> | null;
42121
42345
  } | null;
42122
42346
  };
42347
+ export type CountSkillsQueryVariables = Exact<{
42348
+ filter?: InputMaybe<SkillFilter>;
42349
+ correlationId?: InputMaybe<Scalars['String']['input']>;
42350
+ }>;
42351
+ export type CountSkillsQuery = {
42352
+ __typename?: 'Query';
42353
+ countSkills?: {
42354
+ __typename?: 'CountResult';
42355
+ count?: any | null;
42356
+ } | null;
42357
+ };
42358
+ export type CreateSkillMutationVariables = Exact<{
42359
+ skill: SkillInput;
42360
+ correlationId?: InputMaybe<Scalars['String']['input']>;
42361
+ }>;
42362
+ export type CreateSkillMutation = {
42363
+ __typename?: 'Mutation';
42364
+ createSkill?: {
42365
+ __typename?: 'Skill';
42366
+ id: string;
42367
+ name: string;
42368
+ state: EntityState;
42369
+ skillOwner?: EntityOwners | null;
42370
+ } | null;
42371
+ };
42372
+ export type DeleteAllSkillsMutationVariables = Exact<{
42373
+ filter?: InputMaybe<SkillFilter>;
42374
+ isSynchronous?: InputMaybe<Scalars['Boolean']['input']>;
42375
+ correlationId?: InputMaybe<Scalars['String']['input']>;
42376
+ }>;
42377
+ export type DeleteAllSkillsMutation = {
42378
+ __typename?: 'Mutation';
42379
+ deleteAllSkills?: Array<{
42380
+ __typename?: 'Skill';
42381
+ id: string;
42382
+ state: EntityState;
42383
+ } | null> | null;
42384
+ };
42385
+ export type DeleteSkillMutationVariables = Exact<{
42386
+ id: Scalars['ID']['input'];
42387
+ }>;
42388
+ export type DeleteSkillMutation = {
42389
+ __typename?: 'Mutation';
42390
+ deleteSkill?: {
42391
+ __typename?: 'Skill';
42392
+ id: string;
42393
+ state: EntityState;
42394
+ } | null;
42395
+ };
42396
+ export type DeleteSkillsMutationVariables = Exact<{
42397
+ ids: Array<Scalars['ID']['input']> | Scalars['ID']['input'];
42398
+ isSynchronous?: InputMaybe<Scalars['Boolean']['input']>;
42399
+ }>;
42400
+ export type DeleteSkillsMutation = {
42401
+ __typename?: 'Mutation';
42402
+ deleteSkills?: Array<{
42403
+ __typename?: 'Skill';
42404
+ id: string;
42405
+ state: EntityState;
42406
+ } | null> | null;
42407
+ };
42408
+ export type DisableSkillMutationVariables = Exact<{
42409
+ id: Scalars['ID']['input'];
42410
+ }>;
42411
+ export type DisableSkillMutation = {
42412
+ __typename?: 'Mutation';
42413
+ disableSkill?: {
42414
+ __typename?: 'Skill';
42415
+ id: string;
42416
+ state: EntityState;
42417
+ } | null;
42418
+ };
42419
+ export type EnableSkillMutationVariables = Exact<{
42420
+ id: Scalars['ID']['input'];
42421
+ }>;
42422
+ export type EnableSkillMutation = {
42423
+ __typename?: 'Mutation';
42424
+ enableSkill?: {
42425
+ __typename?: 'Skill';
42426
+ id: string;
42427
+ state: EntityState;
42428
+ } | null;
42429
+ };
42430
+ export type GetSkillQueryVariables = Exact<{
42431
+ id: Scalars['ID']['input'];
42432
+ correlationId?: InputMaybe<Scalars['String']['input']>;
42433
+ }>;
42434
+ export type GetSkillQuery = {
42435
+ __typename?: 'Query';
42436
+ skill?: {
42437
+ __typename?: 'Skill';
42438
+ id: string;
42439
+ name: string;
42440
+ creationDate: any;
42441
+ modifiedDate?: any | null;
42442
+ state: EntityState;
42443
+ correlationId?: string | null;
42444
+ text: string;
42445
+ skillOwner?: EntityOwners | null;
42446
+ owner: {
42447
+ __typename?: 'Owner';
42448
+ id: string;
42449
+ };
42450
+ collections?: Array<{
42451
+ __typename?: 'Collection';
42452
+ id: string;
42453
+ name: string;
42454
+ } | null> | null;
42455
+ } | null;
42456
+ };
42457
+ export type QuerySkillsQueryVariables = Exact<{
42458
+ filter?: InputMaybe<SkillFilter>;
42459
+ correlationId?: InputMaybe<Scalars['String']['input']>;
42460
+ }>;
42461
+ export type QuerySkillsQuery = {
42462
+ __typename?: 'Query';
42463
+ skills?: {
42464
+ __typename?: 'SkillResults';
42465
+ results?: Array<{
42466
+ __typename?: 'Skill';
42467
+ id: string;
42468
+ name: string;
42469
+ creationDate: any;
42470
+ modifiedDate?: any | null;
42471
+ relevance?: number | null;
42472
+ state: EntityState;
42473
+ correlationId?: string | null;
42474
+ text: string;
42475
+ skillOwner?: EntityOwners | null;
42476
+ owner: {
42477
+ __typename?: 'Owner';
42478
+ id: string;
42479
+ };
42480
+ collections?: Array<{
42481
+ __typename?: 'Collection';
42482
+ id: string;
42483
+ name: string;
42484
+ } | null> | null;
42485
+ }> | null;
42486
+ } | null;
42487
+ };
42488
+ export type UpdateSkillMutationVariables = Exact<{
42489
+ skill: SkillUpdateInput;
42490
+ }>;
42491
+ export type UpdateSkillMutation = {
42492
+ __typename?: 'Mutation';
42493
+ updateSkill?: {
42494
+ __typename?: 'Skill';
42495
+ id: string;
42496
+ name: string;
42497
+ state: EntityState;
42498
+ skillOwner?: EntityOwners | null;
42499
+ } | null;
42500
+ };
42501
+ export type UpsertSkillMutationVariables = Exact<{
42502
+ skill: SkillInput;
42503
+ }>;
42504
+ export type UpsertSkillMutation = {
42505
+ __typename?: 'Mutation';
42506
+ upsertSkill?: {
42507
+ __typename?: 'Skill';
42508
+ id: string;
42509
+ name: string;
42510
+ state: EntityState;
42511
+ skillOwner?: EntityOwners | null;
42512
+ } | null;
42513
+ };
42123
42514
  export type CountSoftwaresQueryVariables = Exact<{
42124
42515
  filter?: InputMaybe<SoftwareFilter>;
42125
42516
  correlationId?: InputMaybe<Scalars['String']['input']>;
@@ -919,6 +919,14 @@ export var EntityExtractionServiceTypes;
919
919
  */
920
920
  EntityExtractionServiceTypes["OpenAiImage"] = "OPEN_AI_IMAGE";
921
921
  })(EntityExtractionServiceTypes || (EntityExtractionServiceTypes = {}));
922
+ /** Entity owner */
923
+ export var EntityOwners;
924
+ (function (EntityOwners) {
925
+ /** Owned by project */
926
+ EntityOwners["Project"] = "PROJECT";
927
+ /** Owned by system */
928
+ EntityOwners["System"] = "SYSTEM";
929
+ })(EntityOwners || (EntityOwners = {}));
922
930
  /** Entity resolution strategy */
923
931
  export var EntityResolutionStrategyTypes;
924
932
  (function (EntityResolutionStrategyTypes) {
@@ -1064,6 +1072,8 @@ export var EntityTypes;
1064
1072
  EntityTypes["Repo"] = "REPO";
1065
1073
  /** Cloud storage site */
1066
1074
  EntityTypes["Site"] = "SITE";
1075
+ /** Skill */
1076
+ EntityTypes["Skill"] = "SKILL";
1067
1077
  /** Software */
1068
1078
  EntityTypes["Software"] = "SOFTWARE";
1069
1079
  /** Model specification */
@@ -70,6 +70,8 @@ export interface StreamAgentOptions {
70
70
  instructions?: string;
71
71
  /** Harness-injected scratchpad text, merged with conversation scratchpad. Placed right before user-prompt. */
72
72
  scratchpad?: string;
73
+ /** Skill references to inject into the agent's context window. Retrieved via querySkills, passed by reference. */
74
+ skills?: EntityReferenceInput[];
73
75
  }
74
76
  export interface ToolCallResult {
75
77
  id: string;
@@ -146,6 +148,8 @@ export interface RunAgentOptions {
146
148
  smoothingEnabled?: boolean;
147
149
  chunkingStrategy?: "character" | "word" | "sentence";
148
150
  smoothingDelay?: number;
151
+ /** Skill references to inject into the agent's context window. Retrieved via querySkills, passed by reference. */
152
+ skills?: EntityReferenceInput[];
149
153
  }
150
154
  /** Quality assessment scores from LLM-as-judge post-run evaluation. */
151
155
  export interface QualityAssessment {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphlit-client",
3
- "version": "1.0.20260302001",
3
+ "version": "1.0.20260302002",
4
4
  "description": "Graphlit API Client for TypeScript",
5
5
  "type": "module",
6
6
  "main": "./dist/client.js",