@gleanwork/api-client 0.5.1 → 0.5.3

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 (86) hide show
  1. package/README.md +15 -15
  2. package/dist/commonjs/funcs/clientAgentsList.d.ts +2 -2
  3. package/dist/commonjs/funcs/clientAgentsList.js +2 -2
  4. package/dist/commonjs/funcs/clientAgentsRetrieve.d.ts +2 -2
  5. package/dist/commonjs/funcs/clientAgentsRetrieve.js +2 -2
  6. package/dist/commonjs/funcs/clientAgentsRetrieveSchemas.d.ts +2 -2
  7. package/dist/commonjs/funcs/clientAgentsRetrieveSchemas.js +2 -2
  8. package/dist/commonjs/funcs/clientAgentsRun.d.ts +2 -2
  9. package/dist/commonjs/funcs/clientAgentsRun.js +2 -2
  10. package/dist/commonjs/funcs/clientAgentsRunStream.d.ts +2 -2
  11. package/dist/commonjs/funcs/clientAgentsRunStream.js +2 -2
  12. package/dist/commonjs/lib/config.d.ts +2 -2
  13. package/dist/commonjs/lib/config.js +2 -2
  14. package/dist/commonjs/models/components/agent.d.ts +16 -6
  15. package/dist/commonjs/models/components/agent.d.ts.map +1 -1
  16. package/dist/commonjs/models/components/agent.js.map +1 -1
  17. package/dist/commonjs/models/components/agentschemas.d.ts +4 -4
  18. package/dist/commonjs/models/components/searchagentsrequest.d.ts +1 -1
  19. package/dist/commonjs/models/components/workflow.d.ts +5 -5
  20. package/dist/commonjs/models/components/workflow.d.ts.map +1 -1
  21. package/dist/commonjs/models/components/workflow.js +2 -2
  22. package/dist/commonjs/models/components/workflow.js.map +1 -1
  23. package/dist/commonjs/react-query/clientAgentsList.d.ts +2 -2
  24. package/dist/commonjs/react-query/clientAgentsList.js +2 -2
  25. package/dist/commonjs/react-query/clientAgentsRetrieve.d.ts +4 -4
  26. package/dist/commonjs/react-query/clientAgentsRetrieve.js +4 -4
  27. package/dist/commonjs/react-query/clientAgentsRetrieveSchemas.d.ts +4 -4
  28. package/dist/commonjs/react-query/clientAgentsRetrieveSchemas.js +4 -4
  29. package/dist/commonjs/react-query/clientAgentsRun.d.ts +2 -2
  30. package/dist/commonjs/react-query/clientAgentsRun.js +2 -2
  31. package/dist/commonjs/react-query/clientAgentsRunStream.d.ts +2 -2
  32. package/dist/commonjs/react-query/clientAgentsRunStream.js +2 -2
  33. package/dist/commonjs/sdk/agents.d.ts +10 -10
  34. package/dist/commonjs/sdk/agents.js +10 -10
  35. package/dist/esm/funcs/clientAgentsList.d.ts +2 -2
  36. package/dist/esm/funcs/clientAgentsList.js +2 -2
  37. package/dist/esm/funcs/clientAgentsRetrieve.d.ts +2 -2
  38. package/dist/esm/funcs/clientAgentsRetrieve.js +2 -2
  39. package/dist/esm/funcs/clientAgentsRetrieveSchemas.d.ts +2 -2
  40. package/dist/esm/funcs/clientAgentsRetrieveSchemas.js +2 -2
  41. package/dist/esm/funcs/clientAgentsRun.d.ts +2 -2
  42. package/dist/esm/funcs/clientAgentsRun.js +2 -2
  43. package/dist/esm/funcs/clientAgentsRunStream.d.ts +2 -2
  44. package/dist/esm/funcs/clientAgentsRunStream.js +2 -2
  45. package/dist/esm/lib/config.d.ts +2 -2
  46. package/dist/esm/lib/config.js +2 -2
  47. package/dist/esm/models/components/agent.d.ts +16 -6
  48. package/dist/esm/models/components/agent.d.ts.map +1 -1
  49. package/dist/esm/models/components/agent.js.map +1 -1
  50. package/dist/esm/models/components/agentschemas.d.ts +4 -4
  51. package/dist/esm/models/components/searchagentsrequest.d.ts +1 -1
  52. package/dist/esm/models/components/workflow.d.ts +5 -5
  53. package/dist/esm/models/components/workflow.d.ts.map +1 -1
  54. package/dist/esm/models/components/workflow.js +2 -2
  55. package/dist/esm/models/components/workflow.js.map +1 -1
  56. package/dist/esm/react-query/clientAgentsList.d.ts +2 -2
  57. package/dist/esm/react-query/clientAgentsList.js +2 -2
  58. package/dist/esm/react-query/clientAgentsRetrieve.d.ts +4 -4
  59. package/dist/esm/react-query/clientAgentsRetrieve.js +4 -4
  60. package/dist/esm/react-query/clientAgentsRetrieveSchemas.d.ts +4 -4
  61. package/dist/esm/react-query/clientAgentsRetrieveSchemas.js +4 -4
  62. package/dist/esm/react-query/clientAgentsRun.d.ts +2 -2
  63. package/dist/esm/react-query/clientAgentsRun.js +2 -2
  64. package/dist/esm/react-query/clientAgentsRunStream.d.ts +2 -2
  65. package/dist/esm/react-query/clientAgentsRunStream.js +2 -2
  66. package/dist/esm/sdk/agents.d.ts +10 -10
  67. package/dist/esm/sdk/agents.js +10 -10
  68. package/docs/sdks/agents/README.md +16 -12
  69. package/jsr.json +1 -1
  70. package/package.json +1 -1
  71. package/src/funcs/clientAgentsList.ts +2 -2
  72. package/src/funcs/clientAgentsRetrieve.ts +2 -2
  73. package/src/funcs/clientAgentsRetrieveSchemas.ts +2 -2
  74. package/src/funcs/clientAgentsRun.ts +2 -2
  75. package/src/funcs/clientAgentsRunStream.ts +2 -2
  76. package/src/lib/config.ts +2 -2
  77. package/src/models/components/agent.ts +16 -6
  78. package/src/models/components/agentschemas.ts +4 -4
  79. package/src/models/components/searchagentsrequest.ts +1 -1
  80. package/src/models/components/workflow.ts +7 -7
  81. package/src/react-query/clientAgentsList.ts +2 -2
  82. package/src/react-query/clientAgentsRetrieve.ts +4 -4
  83. package/src/react-query/clientAgentsRetrieveSchemas.ts +4 -4
  84. package/src/react-query/clientAgentsRun.ts +2 -2
  85. package/src/react-query/clientAgentsRunStream.ts +2 -2
  86. package/src/sdk/agents.ts +10 -10
@@ -12,10 +12,10 @@ const primitives_js_1 = require("../lib/primitives.js");
12
12
  const fp_js_1 = require("../types/fp.js");
13
13
  const _context_js_1 = require("./_context.js");
14
14
  /**
15
- * Create Run, Wait for Output
15
+ * Create an [agent](https://developers.glean.com/agents/agents-api) run and wait for the response
16
16
  *
17
17
  * @remarks
18
- * Creates and triggers a run of an agent. Waits for final output and then returns it. This endpoint implements the LangChain Agent Protocol, specifically part of the Runs stage (https://langchain-ai.github.io/agent-protocol/api.html#tag/runs/POST/runs/wait). It adheres to the standard contract defined for agent interoperability and can be used by agent runtimes that support the Agent Protocol. Note that running agents that reference third party platform write actions is unsupported as it requires user confirmation.
18
+ * Executes an agent run and returns the final response.
19
19
  */
20
20
  function useClientAgentsRunMutation(options) {
21
21
  const client = (0, _context_js_1.useGleanContext)();
@@ -9,10 +9,10 @@ export type ClientAgentsRunStreamMutationVariables = {
9
9
  };
10
10
  export type ClientAgentsRunStreamMutationData = string;
11
11
  /**
12
- * Create Run, Stream Output
12
+ * Create an agent run and stream the response
13
13
  *
14
14
  * @remarks
15
- * Creates and triggers a run of an agent. Streams the output in SSE format. This endpoint implements the LangChain Agent Protocol, specifically part of the Runs stage (https://langchain-ai.github.io/agent-protocol/api.html#tag/runs/POST/runs/stream). It adheres to the standard contract defined for agent interoperability and can be used by agent runtimes that support the Agent Protocol. Note that running agents that reference third party platform write actions is unsupported as it requires user confirmation.
15
+ * Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the result as a stream of server-sent events (SSE).
16
16
  */
17
17
  export declare function useClientAgentsRunStreamMutation(options?: MutationHookOptions<ClientAgentsRunStreamMutationData, Error, ClientAgentsRunStreamMutationVariables>): UseMutationResult<ClientAgentsRunStreamMutationData, Error, ClientAgentsRunStreamMutationVariables>;
18
18
  export declare function mutationKeyClientAgentsRunStream(): MutationKey;
@@ -12,10 +12,10 @@ const primitives_js_1 = require("../lib/primitives.js");
12
12
  const fp_js_1 = require("../types/fp.js");
13
13
  const _context_js_1 = require("./_context.js");
14
14
  /**
15
- * Create Run, Stream Output
15
+ * Create an agent run and stream the response
16
16
  *
17
17
  * @remarks
18
- * Creates and triggers a run of an agent. Streams the output in SSE format. This endpoint implements the LangChain Agent Protocol, specifically part of the Runs stage (https://langchain-ai.github.io/agent-protocol/api.html#tag/runs/POST/runs/stream). It adheres to the standard contract defined for agent interoperability and can be used by agent runtimes that support the Agent Protocol. Note that running agents that reference third party platform write actions is unsupported as it requires user confirmation.
18
+ * Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the result as a stream of server-sent events (SSE).
19
19
  */
20
20
  function useClientAgentsRunStreamMutation(options) {
21
21
  const client = (0, _context_js_1.useGleanContext)();
@@ -2,38 +2,38 @@ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
2
2
  import * as components from "../models/components/index.js";
3
3
  export declare class Agents extends ClientSDK {
4
4
  /**
5
- * Get Agent
5
+ * Retrieve an agent
6
6
  *
7
7
  * @remarks
8
- * Get an agent by ID. This endpoint implements the LangChain Agent Protocol, specifically part of the Agents stage (https://langchain-ai.github.io/agent-protocol/api.html#tag/agents/GET/agents/{agent_id}). It adheres to the standard contract defined for agent interoperability and can be used by agent runtimes that support the Agent Protocol.
8
+ * Returns details of an [agent](https://developers.glean.com/agents/agents-api) created in the Agent Builder.
9
9
  */
10
10
  retrieve(agentId: string, timezoneOffset?: number | undefined, options?: RequestOptions): Promise<components.Agent>;
11
11
  /**
12
- * Get Agent Schemas
12
+ * List an agent's schemas
13
13
  *
14
14
  * @remarks
15
- * Get an agent's schemas by ID. This endpoint implements the LangChain Agent Protocol, specifically part of the Agents stage (https://langchain-ai.github.io/agent-protocol/api.html#tag/agents/GET/agents/{agent_id}/schemas). It adheres to the standard contract defined for agent interoperability and can be used by agent runtimes that support the Agent Protocol.
15
+ * Return [agent](https://developers.glean.com/agents/agents-api)'s input and output schemas. You can use these schemas to detect changes to an agent's input or output structure.
16
16
  */
17
17
  retrieveSchemas(agentId: string, timezoneOffset?: number | undefined, options?: RequestOptions): Promise<components.AgentSchemas>;
18
18
  /**
19
- * Search Agents
19
+ * Search agents
20
20
  *
21
21
  * @remarks
22
- * List Agents available in this service. This endpoint implements the LangChain Agent Protocol, specifically part of the Agents stage (https://langchain-ai.github.io/agent-protocol/api.html#tag/agents/POST/agents/search). It adheres to the standard contract defined for agent interoperability and can be used by agent runtimes that support the Agent Protocol.
22
+ * Search for [agents](https://developers.glean.com/agents/agents-api) by agent name.
23
23
  */
24
24
  list(request: components.SearchAgentsRequest, options?: RequestOptions): Promise<components.SearchAgentsResponse>;
25
25
  /**
26
- * Create Run, Stream Output
26
+ * Create an agent run and stream the response
27
27
  *
28
28
  * @remarks
29
- * Creates and triggers a run of an agent. Streams the output in SSE format. This endpoint implements the LangChain Agent Protocol, specifically part of the Runs stage (https://langchain-ai.github.io/agent-protocol/api.html#tag/runs/POST/runs/stream). It adheres to the standard contract defined for agent interoperability and can be used by agent runtimes that support the Agent Protocol. Note that running agents that reference third party platform write actions is unsupported as it requires user confirmation.
29
+ * Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the result as a stream of server-sent events (SSE).
30
30
  */
31
31
  runStream(request: components.AgentRunCreate, options?: RequestOptions): Promise<string>;
32
32
  /**
33
- * Create Run, Wait for Output
33
+ * Create an [agent](https://developers.glean.com/agents/agents-api) run and wait for the response
34
34
  *
35
35
  * @remarks
36
- * Creates and triggers a run of an agent. Waits for final output and then returns it. This endpoint implements the LangChain Agent Protocol, specifically part of the Runs stage (https://langchain-ai.github.io/agent-protocol/api.html#tag/runs/POST/runs/wait). It adheres to the standard contract defined for agent interoperability and can be used by agent runtimes that support the Agent Protocol. Note that running agents that reference third party platform write actions is unsupported as it requires user confirmation.
36
+ * Executes an agent run and returns the final response.
37
37
  */
38
38
  run(request: components.AgentRunCreate, options?: RequestOptions): Promise<components.AgentRunWaitResponse>;
39
39
  }
@@ -13,46 +13,46 @@ const sdks_js_1 = require("../lib/sdks.js");
13
13
  const fp_js_1 = require("../types/fp.js");
14
14
  class Agents extends sdks_js_1.ClientSDK {
15
15
  /**
16
- * Get Agent
16
+ * Retrieve an agent
17
17
  *
18
18
  * @remarks
19
- * Get an agent by ID. This endpoint implements the LangChain Agent Protocol, specifically part of the Agents stage (https://langchain-ai.github.io/agent-protocol/api.html#tag/agents/GET/agents/{agent_id}). It adheres to the standard contract defined for agent interoperability and can be used by agent runtimes that support the Agent Protocol.
19
+ * Returns details of an [agent](https://developers.glean.com/agents/agents-api) created in the Agent Builder.
20
20
  */
21
21
  async retrieve(agentId, timezoneOffset, options) {
22
22
  return (0, fp_js_1.unwrapAsync)((0, clientAgentsRetrieve_js_1.clientAgentsRetrieve)(this, agentId, timezoneOffset, options));
23
23
  }
24
24
  /**
25
- * Get Agent Schemas
25
+ * List an agent's schemas
26
26
  *
27
27
  * @remarks
28
- * Get an agent's schemas by ID. This endpoint implements the LangChain Agent Protocol, specifically part of the Agents stage (https://langchain-ai.github.io/agent-protocol/api.html#tag/agents/GET/agents/{agent_id}/schemas). It adheres to the standard contract defined for agent interoperability and can be used by agent runtimes that support the Agent Protocol.
28
+ * Return [agent](https://developers.glean.com/agents/agents-api)'s input and output schemas. You can use these schemas to detect changes to an agent's input or output structure.
29
29
  */
30
30
  async retrieveSchemas(agentId, timezoneOffset, options) {
31
31
  return (0, fp_js_1.unwrapAsync)((0, clientAgentsRetrieveSchemas_js_1.clientAgentsRetrieveSchemas)(this, agentId, timezoneOffset, options));
32
32
  }
33
33
  /**
34
- * Search Agents
34
+ * Search agents
35
35
  *
36
36
  * @remarks
37
- * List Agents available in this service. This endpoint implements the LangChain Agent Protocol, specifically part of the Agents stage (https://langchain-ai.github.io/agent-protocol/api.html#tag/agents/POST/agents/search). It adheres to the standard contract defined for agent interoperability and can be used by agent runtimes that support the Agent Protocol.
37
+ * Search for [agents](https://developers.glean.com/agents/agents-api) by agent name.
38
38
  */
39
39
  async list(request, options) {
40
40
  return (0, fp_js_1.unwrapAsync)((0, clientAgentsList_js_1.clientAgentsList)(this, request, options));
41
41
  }
42
42
  /**
43
- * Create Run, Stream Output
43
+ * Create an agent run and stream the response
44
44
  *
45
45
  * @remarks
46
- * Creates and triggers a run of an agent. Streams the output in SSE format. This endpoint implements the LangChain Agent Protocol, specifically part of the Runs stage (https://langchain-ai.github.io/agent-protocol/api.html#tag/runs/POST/runs/stream). It adheres to the standard contract defined for agent interoperability and can be used by agent runtimes that support the Agent Protocol. Note that running agents that reference third party platform write actions is unsupported as it requires user confirmation.
46
+ * Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the result as a stream of server-sent events (SSE).
47
47
  */
48
48
  async runStream(request, options) {
49
49
  return (0, fp_js_1.unwrapAsync)((0, clientAgentsRunStream_js_1.clientAgentsRunStream)(this, request, options));
50
50
  }
51
51
  /**
52
- * Create Run, Wait for Output
52
+ * Create an [agent](https://developers.glean.com/agents/agents-api) run and wait for the response
53
53
  *
54
54
  * @remarks
55
- * Creates and triggers a run of an agent. Waits for final output and then returns it. This endpoint implements the LangChain Agent Protocol, specifically part of the Runs stage (https://langchain-ai.github.io/agent-protocol/api.html#tag/runs/POST/runs/wait). It adheres to the standard contract defined for agent interoperability and can be used by agent runtimes that support the Agent Protocol. Note that running agents that reference third party platform write actions is unsupported as it requires user confirmation.
55
+ * Executes an agent run and returns the final response.
56
56
  */
57
57
  async run(request, options) {
58
58
  return (0, fp_js_1.unwrapAsync)((0, clientAgentsRun_js_1.clientAgentsRun)(this, request, options));
@@ -7,10 +7,10 @@ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
7
7
  import { APIPromise } from "../types/async.js";
8
8
  import { Result } from "../types/fp.js";
9
9
  /**
10
- * Search Agents
10
+ * Search agents
11
11
  *
12
12
  * @remarks
13
- * List Agents available in this service. This endpoint implements the LangChain Agent Protocol, specifically part of the Agents stage (https://langchain-ai.github.io/agent-protocol/api.html#tag/agents/POST/agents/search). It adheres to the standard contract defined for agent interoperability and can be used by agent runtimes that support the Agent Protocol.
13
+ * Search for [agents](https://developers.glean.com/agents/agents-api) by agent name.
14
14
  */
15
15
  export declare function clientAgentsList(client: GleanCore, request: components.SearchAgentsRequest, options?: RequestOptions): APIPromise<Result<components.SearchAgentsResponse, GleanError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
16
16
  //# sourceMappingURL=clientAgentsList.d.ts.map
@@ -10,10 +10,10 @@ import { pathToFunc } from "../lib/url.js";
10
10
  import * as components from "../models/components/index.js";
11
11
  import { APIPromise } from "../types/async.js";
12
12
  /**
13
- * Search Agents
13
+ * Search agents
14
14
  *
15
15
  * @remarks
16
- * List Agents available in this service. This endpoint implements the LangChain Agent Protocol, specifically part of the Agents stage (https://langchain-ai.github.io/agent-protocol/api.html#tag/agents/POST/agents/search). It adheres to the standard contract defined for agent interoperability and can be used by agent runtimes that support the Agent Protocol.
16
+ * Search for [agents](https://developers.glean.com/agents/agents-api) by agent name.
17
17
  */
18
18
  export function clientAgentsList(client, request, options) {
19
19
  return new APIPromise($do(client, request, options));
@@ -7,10 +7,10 @@ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
7
7
  import { APIPromise } from "../types/async.js";
8
8
  import { Result } from "../types/fp.js";
9
9
  /**
10
- * Get Agent
10
+ * Retrieve an agent
11
11
  *
12
12
  * @remarks
13
- * Get an agent by ID. This endpoint implements the LangChain Agent Protocol, specifically part of the Agents stage (https://langchain-ai.github.io/agent-protocol/api.html#tag/agents/GET/agents/{agent_id}). It adheres to the standard contract defined for agent interoperability and can be used by agent runtimes that support the Agent Protocol.
13
+ * Returns details of an [agent](https://developers.glean.com/agents/agents-api) created in the Agent Builder.
14
14
  */
15
15
  export declare function clientAgentsRetrieve(client: GleanCore, agentId: string, timezoneOffset?: number | undefined, options?: RequestOptions): APIPromise<Result<components.Agent, GleanError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
16
16
  //# sourceMappingURL=clientAgentsRetrieve.d.ts.map
@@ -11,10 +11,10 @@ import * as components from "../models/components/index.js";
11
11
  import * as operations from "../models/operations/index.js";
12
12
  import { APIPromise } from "../types/async.js";
13
13
  /**
14
- * Get Agent
14
+ * Retrieve an agent
15
15
  *
16
16
  * @remarks
17
- * Get an agent by ID. This endpoint implements the LangChain Agent Protocol, specifically part of the Agents stage (https://langchain-ai.github.io/agent-protocol/api.html#tag/agents/GET/agents/{agent_id}). It adheres to the standard contract defined for agent interoperability and can be used by agent runtimes that support the Agent Protocol.
17
+ * Returns details of an [agent](https://developers.glean.com/agents/agents-api) created in the Agent Builder.
18
18
  */
19
19
  export function clientAgentsRetrieve(client, agentId, timezoneOffset, options) {
20
20
  return new APIPromise($do(client, agentId, timezoneOffset, options));
@@ -7,10 +7,10 @@ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
7
7
  import { APIPromise } from "../types/async.js";
8
8
  import { Result } from "../types/fp.js";
9
9
  /**
10
- * Get Agent Schemas
10
+ * List an agent's schemas
11
11
  *
12
12
  * @remarks
13
- * Get an agent's schemas by ID. This endpoint implements the LangChain Agent Protocol, specifically part of the Agents stage (https://langchain-ai.github.io/agent-protocol/api.html#tag/agents/GET/agents/{agent_id}/schemas). It adheres to the standard contract defined for agent interoperability and can be used by agent runtimes that support the Agent Protocol.
13
+ * Return [agent](https://developers.glean.com/agents/agents-api)'s input and output schemas. You can use these schemas to detect changes to an agent's input or output structure.
14
14
  */
15
15
  export declare function clientAgentsRetrieveSchemas(client: GleanCore, agentId: string, timezoneOffset?: number | undefined, options?: RequestOptions): APIPromise<Result<components.AgentSchemas, GleanError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
16
16
  //# sourceMappingURL=clientAgentsRetrieveSchemas.d.ts.map
@@ -11,10 +11,10 @@ import * as components from "../models/components/index.js";
11
11
  import * as operations from "../models/operations/index.js";
12
12
  import { APIPromise } from "../types/async.js";
13
13
  /**
14
- * Get Agent Schemas
14
+ * List an agent's schemas
15
15
  *
16
16
  * @remarks
17
- * Get an agent's schemas by ID. This endpoint implements the LangChain Agent Protocol, specifically part of the Agents stage (https://langchain-ai.github.io/agent-protocol/api.html#tag/agents/GET/agents/{agent_id}/schemas). It adheres to the standard contract defined for agent interoperability and can be used by agent runtimes that support the Agent Protocol.
17
+ * Return [agent](https://developers.glean.com/agents/agents-api)'s input and output schemas. You can use these schemas to detect changes to an agent's input or output structure.
18
18
  */
19
19
  export function clientAgentsRetrieveSchemas(client, agentId, timezoneOffset, options) {
20
20
  return new APIPromise($do(client, agentId, timezoneOffset, options));
@@ -7,10 +7,10 @@ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
7
7
  import { APIPromise } from "../types/async.js";
8
8
  import { Result } from "../types/fp.js";
9
9
  /**
10
- * Create Run, Wait for Output
10
+ * Create an [agent](https://developers.glean.com/agents/agents-api) run and wait for the response
11
11
  *
12
12
  * @remarks
13
- * Creates and triggers a run of an agent. Waits for final output and then returns it. This endpoint implements the LangChain Agent Protocol, specifically part of the Runs stage (https://langchain-ai.github.io/agent-protocol/api.html#tag/runs/POST/runs/wait). It adheres to the standard contract defined for agent interoperability and can be used by agent runtimes that support the Agent Protocol. Note that running agents that reference third party platform write actions is unsupported as it requires user confirmation.
13
+ * Executes an agent run and returns the final response.
14
14
  */
15
15
  export declare function clientAgentsRun(client: GleanCore, request: components.AgentRunCreate, options?: RequestOptions): APIPromise<Result<components.AgentRunWaitResponse, GleanError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
16
16
  //# sourceMappingURL=clientAgentsRun.d.ts.map
@@ -10,10 +10,10 @@ import { pathToFunc } from "../lib/url.js";
10
10
  import * as components from "../models/components/index.js";
11
11
  import { APIPromise } from "../types/async.js";
12
12
  /**
13
- * Create Run, Wait for Output
13
+ * Create an [agent](https://developers.glean.com/agents/agents-api) run and wait for the response
14
14
  *
15
15
  * @remarks
16
- * Creates and triggers a run of an agent. Waits for final output and then returns it. This endpoint implements the LangChain Agent Protocol, specifically part of the Runs stage (https://langchain-ai.github.io/agent-protocol/api.html#tag/runs/POST/runs/wait). It adheres to the standard contract defined for agent interoperability and can be used by agent runtimes that support the Agent Protocol. Note that running agents that reference third party platform write actions is unsupported as it requires user confirmation.
16
+ * Executes an agent run and returns the final response.
17
17
  */
18
18
  export function clientAgentsRun(client, request, options) {
19
19
  return new APIPromise($do(client, request, options));
@@ -7,10 +7,10 @@ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
7
7
  import { APIPromise } from "../types/async.js";
8
8
  import { Result } from "../types/fp.js";
9
9
  /**
10
- * Create Run, Stream Output
10
+ * Create an agent run and stream the response
11
11
  *
12
12
  * @remarks
13
- * Creates and triggers a run of an agent. Streams the output in SSE format. This endpoint implements the LangChain Agent Protocol, specifically part of the Runs stage (https://langchain-ai.github.io/agent-protocol/api.html#tag/runs/POST/runs/stream). It adheres to the standard contract defined for agent interoperability and can be used by agent runtimes that support the Agent Protocol. Note that running agents that reference third party platform write actions is unsupported as it requires user confirmation.
13
+ * Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the result as a stream of server-sent events (SSE).
14
14
  */
15
15
  export declare function clientAgentsRunStream(client: GleanCore, request: components.AgentRunCreate, options?: RequestOptions): APIPromise<Result<string, GleanError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
16
16
  //# sourceMappingURL=clientAgentsRunStream.d.ts.map
@@ -11,10 +11,10 @@ import { pathToFunc } from "../lib/url.js";
11
11
  import * as components from "../models/components/index.js";
12
12
  import { APIPromise } from "../types/async.js";
13
13
  /**
14
- * Create Run, Stream Output
14
+ * Create an agent run and stream the response
15
15
  *
16
16
  * @remarks
17
- * Creates and triggers a run of an agent. Streams the output in SSE format. This endpoint implements the LangChain Agent Protocol, specifically part of the Runs stage (https://langchain-ai.github.io/agent-protocol/api.html#tag/runs/POST/runs/stream). It adheres to the standard contract defined for agent interoperability and can be used by agent runtimes that support the Agent Protocol. Note that running agents that reference third party platform write actions is unsupported as it requires user confirmation.
17
+ * Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the result as a stream of server-sent events (SSE).
18
18
  */
19
19
  export function clientAgentsRunStream(client, request, options) {
20
20
  return new APIPromise($do(client, request, options));
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
31
31
  export declare const SDK_METADATA: {
32
32
  readonly language: "typescript";
33
33
  readonly openapiDocVersion: "0.9.0";
34
- readonly sdkVersion: "0.5.1";
34
+ readonly sdkVersion: "0.5.3";
35
35
  readonly genVersion: "2.610.0";
36
- readonly userAgent: "speakeasy-sdk/typescript 0.5.1 2.610.0 0.9.0 @gleanwork/api-client";
36
+ readonly userAgent: "speakeasy-sdk/typescript 0.5.3 2.610.0 0.9.0 @gleanwork/api-client";
37
37
  };
38
38
  //# sourceMappingURL=config.d.ts.map
@@ -30,8 +30,8 @@ export function serverURLFromOptions(options) {
30
30
  export const SDK_METADATA = {
31
31
  language: "typescript",
32
32
  openapiDocVersion: "0.9.0",
33
- sdkVersion: "0.5.1",
33
+ sdkVersion: "0.5.3",
34
34
  genVersion: "2.610.0",
35
- userAgent: "speakeasy-sdk/typescript 0.5.1 2.610.0 0.9.0 @gleanwork/api-client",
35
+ userAgent: "speakeasy-sdk/typescript 0.5.3 2.610.0 0.9.0 @gleanwork/api-client",
36
36
  };
37
37
  //# sourceMappingURL=config.js.map
@@ -2,19 +2,24 @@ import * as z from "zod";
2
2
  import { Result as SafeParseResult } from "../../types/fp.js";
3
3
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
4
  /**
5
- * The agent metadata.
5
+ * The agent metadata. Currently not implemented.
6
6
  */
7
7
  export type AgentMetadata = {};
8
8
  /**
9
- * Describes which protocol features the agent supports. In addition to the standard capabilities (prefixed with ap.), implementations can declare custom capabilities, named in reverse domain notation (eg. com.example.some.capability).
9
+ * Describes features that the agent supports. example: {
10
+ *
11
+ * @remarks
12
+ * "ap.io.messages": true,
13
+ * "ap.io.streaming": true
14
+ * }
10
15
  */
11
16
  export type AgentCapabilities = {
12
17
  /**
13
- * Whether the agent supports Messages as input/output/state. If true, the agent uses the `messages` key in threads/runs endpoints.
18
+ * Whether the agent supports messages as an input. If true, you'll pass `messages` as an input when running the agent.
14
19
  */
15
20
  apIoMessages?: boolean | undefined;
16
21
  /**
17
- * Whether the agent supports streaming output.
22
+ * Whether the agent supports streaming output. If true, you you can stream agent ouput. All agents currently support streaming.
18
23
  */
19
24
  apIoStreaming?: boolean | undefined;
20
25
  additionalProperties?: {
@@ -35,11 +40,16 @@ export type Agent = {
35
40
  */
36
41
  description?: string | undefined;
37
42
  /**
38
- * The agent metadata.
43
+ * The agent metadata. Currently not implemented.
39
44
  */
40
45
  metadata?: AgentMetadata | undefined;
41
46
  /**
42
- * Describes which protocol features the agent supports. In addition to the standard capabilities (prefixed with ap.), implementations can declare custom capabilities, named in reverse domain notation (eg. com.example.some.capability).
47
+ * Describes features that the agent supports. example: {
48
+ *
49
+ * @remarks
50
+ * "ap.io.messages": true,
51
+ * "ap.io.streaming": true
52
+ * }
43
53
  */
44
54
  capabilities: AgentCapabilities;
45
55
  };
@@ -1 +1 @@
1
- {"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../../../src/models/components/agent.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAMzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,EAAE,CAAC;AAE/B;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACnC;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACpC,oBAAoB,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CAC7C,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG;IAClB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,QAAQ,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;IACrC;;OAEG;IACH,YAAY,EAAE,iBA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,UAAU;KACpB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,MAAM,CAOtB;AAPD,WAAiB,MAAM;IACrB,qDAAqD;IACxC,oBAAa,GAAG,mBAAmB,CAAC;IACjD,sDAAsD;IACzC,qBAAc,GAAG,oBAAoB,CAAC;AAGrD,CAAC,EAPgB,MAAM,KAAN,MAAM,QAOtB;AAED,MAAM,UAAU,WAAW,CAAC,KAAY;IACtC,OAAO,IAAI,CAAC,SAAS,CAAC,oBAAoB,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;AAC3D,CAAC;AAED,MAAM,UAAU,aAAa,CAC3B,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,mBAAmB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/C,mCAAmC,CACpC,CAAC;AACJ,CAAC"}
@@ -2,11 +2,11 @@ import * as z from "zod";
2
2
  import { Result as SafeParseResult } from "../../types/fp.js";
3
3
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
4
  /**
5
- * The schema for the agent input. In JSON Schema format.
5
+ * The schema for the agent input. In JSON schema format.
6
6
  */
7
7
  export type InputSchema = {};
8
8
  /**
9
- * The schema for the agent output. In JSON Schema format.
9
+ * The schema for the agent output. In JSON schema format.
10
10
  */
11
11
  export type OutputSchema = {};
12
12
  /**
@@ -18,11 +18,11 @@ export type AgentSchemas = {
18
18
  */
19
19
  agentId: string;
20
20
  /**
21
- * The schema for the agent input. In JSON Schema format.
21
+ * The schema for the agent input. In JSON schema format.
22
22
  */
23
23
  inputSchema: InputSchema;
24
24
  /**
25
- * The schema for the agent output. In JSON Schema format.
25
+ * The schema for the agent output. In JSON schema format.
26
26
  */
27
27
  outputSchema: OutputSchema;
28
28
  };
@@ -3,7 +3,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
3
3
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
4
  export type SearchAgentsRequest = {
5
5
  /**
6
- * Filters on the name of the agent. If empty, acts as no filter.
6
+ * Filters on the name of the agent. The keyword search is case-insensitive. If search string is ommited or empty, acts as no filter.
7
7
  */
8
8
  name?: string | undefined;
9
9
  };
@@ -4,6 +4,10 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
4
  import { ObjectPermissions, ObjectPermissions$Outbound } from "./objectpermissions.js";
5
5
  import { Person, Person$Outbound } from "./person.js";
6
6
  export type Workflow = {
7
+ /**
8
+ * The name of the workflow.
9
+ */
10
+ name?: string | undefined;
7
11
  author?: Person | undefined;
8
12
  /**
9
13
  * Server Unix timestamp of the creation time.
@@ -15,10 +19,6 @@ export type Workflow = {
15
19
  lastUpdateTimestamp?: number | undefined;
16
20
  lastUpdatedBy?: Person | undefined;
17
21
  permissions?: ObjectPermissions | undefined;
18
- /**
19
- * The name of the workflow.
20
- */
21
- name?: string | undefined;
22
22
  /**
23
23
  * The ID of the workflow.
24
24
  */
@@ -28,12 +28,12 @@ export type Workflow = {
28
28
  export declare const Workflow$inboundSchema: z.ZodType<Workflow, z.ZodTypeDef, unknown>;
29
29
  /** @internal */
30
30
  export type Workflow$Outbound = {
31
+ name?: string | undefined;
31
32
  author?: Person$Outbound | undefined;
32
33
  createTimestamp?: number | undefined;
33
34
  lastUpdateTimestamp?: number | undefined;
34
35
  lastUpdatedBy?: Person$Outbound | undefined;
35
36
  permissions?: ObjectPermissions$Outbound | undefined;
36
- name?: string | undefined;
37
37
  id?: string | undefined;
38
38
  };
39
39
  /** @internal */
@@ -1 +1 @@
1
- {"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../../../src/models/components/workflow.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,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5C,QAAQ,EACR,CAAC,CAAC,UAAU,EACZ,OAAO,CASP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,MAAM,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;IACrC,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,mBAAmB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,aAAa,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;IAC5C,WAAW,CAAC,EAAE,0BAA0B,GAAG,SAAS,CAAC;IACrD,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACzB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uBAAuB,EAAE,CAAC,CAAC,OAAO,CAC7C,iBAAiB,EACjB,CAAC,CAAC,UAAU,EACZ,QAAQ,CASR,CAAC;AAEH;;;GAGG;AACH,yBAAiB,SAAS,CAAC;IACzB,wDAAwD;IACjD,MAAM,aAAa,4CAAyB,CAAC;IACpD,yDAAyD;IAClD,MAAM,cAAc,sDAA0B,CAAC;IACtD,mDAAmD;IACnD,KAAY,QAAQ,GAAG,iBAAiB,CAAC;CAC1C;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAEzD;AAED,wBAAgB,gBAAgB,CAC9B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,QAAQ,EAAE,kBAAkB,CAAC,CAM/C"}
@@ -7,22 +7,22 @@ import { ObjectPermissions$inboundSchema, ObjectPermissions$outboundSchema, } fr
7
7
  import { Person$inboundSchema, Person$outboundSchema, } from "./person.js";
8
8
  /** @internal */
9
9
  export const Workflow$inboundSchema = z.object({
10
+ name: z.string().optional(),
10
11
  author: Person$inboundSchema.optional(),
11
12
  createTimestamp: z.number().int().optional(),
12
13
  lastUpdateTimestamp: z.number().int().optional(),
13
14
  lastUpdatedBy: Person$inboundSchema.optional(),
14
15
  permissions: ObjectPermissions$inboundSchema.optional(),
15
- name: z.string().optional(),
16
16
  id: z.string().optional(),
17
17
  });
18
18
  /** @internal */
19
19
  export const Workflow$outboundSchema = z.object({
20
+ name: z.string().optional(),
20
21
  author: Person$outboundSchema.optional(),
21
22
  createTimestamp: z.number().int().optional(),
22
23
  lastUpdateTimestamp: z.number().int().optional(),
23
24
  lastUpdatedBy: Person$outboundSchema.optional(),
24
25
  permissions: ObjectPermissions$outboundSchema.optional(),
25
- name: z.string().optional(),
26
26
  id: z.string().optional(),
27
27
  });
28
28
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"workflow.js","sourceRoot":"","sources":["../../../../src/models/components/workflow.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,+BAA+B,EAE/B,gCAAgC,GACjC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,oBAAoB,EAEpB,qBAAqB,GACtB,MAAM,aAAa,CAAC;AAwBrB,gBAAgB;AAChB,MAAM,CAAC,MAAM,sBAAsB,GAI/B,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IACvC,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAC5C,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAChD,aAAa,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IAC9C,WAAW,EAAE,+BAA+B,CAAC,QAAQ,EAAE;IACvD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC1B,CAAC,CAAC;AAaH,gBA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AS,CAOzB;AAPD,WAAiB,SAAS;IACxB,wDAAwD;IAC3C,uBAAa,GAAG,sBAAsB,CAAC;IACpD,yDAAyD;IAC5C,wBAAc,GAAG,uBAAuB,CAAC;AAGxD,CAAC,EAPgB,SAAS,KAAT,SAAS,QAOzB;AAED,MAAM,UAAU,cAAc,CAAC,QAAkB;IAC/C,OAAO,IAAI,CAAC,SAAS,CAAC,uBAAuB,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC;AACjE,CAAC;AAED,MAAM,UAAU,gBAAgB,CAC9B,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,sBAAsB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAClD,sCAAsC,CACvC,CAAC;AACJ,CAAC"}
@@ -9,10 +9,10 @@ export type ClientAgentsListMutationVariables = {
9
9
  };
10
10
  export type ClientAgentsListMutationData = components.SearchAgentsResponse;
11
11
  /**
12
- * Search Agents
12
+ * Search agents
13
13
  *
14
14
  * @remarks
15
- * List Agents available in this service. This endpoint implements the LangChain Agent Protocol, specifically part of the Agents stage (https://langchain-ai.github.io/agent-protocol/api.html#tag/agents/POST/agents/search). It adheres to the standard contract defined for agent interoperability and can be used by agent runtimes that support the Agent Protocol.
15
+ * Search for [agents](https://developers.glean.com/agents/agents-api) by agent name.
16
16
  */
17
17
  export declare function useClientAgentsListMutation(options?: MutationHookOptions<ClientAgentsListMutationData, Error, ClientAgentsListMutationVariables>): UseMutationResult<ClientAgentsListMutationData, Error, ClientAgentsListMutationVariables>;
18
18
  export declare function mutationKeyClientAgentsList(): MutationKey;
@@ -7,10 +7,10 @@ import { combineSignals } from "../lib/primitives.js";
7
7
  import { unwrapAsync } from "../types/fp.js";
8
8
  import { useGleanContext } from "./_context.js";
9
9
  /**
10
- * Search Agents
10
+ * Search agents
11
11
  *
12
12
  * @remarks
13
- * List Agents available in this service. This endpoint implements the LangChain Agent Protocol, specifically part of the Agents stage (https://langchain-ai.github.io/agent-protocol/api.html#tag/agents/POST/agents/search). It adheres to the standard contract defined for agent interoperability and can be used by agent runtimes that support the Agent Protocol.
13
+ * Search for [agents](https://developers.glean.com/agents/agents-api) by agent name.
14
14
  */
15
15
  export function useClientAgentsListMutation(options) {
16
16
  const client = useGleanContext();
@@ -5,17 +5,17 @@ import * as components from "../models/components/index.js";
5
5
  import { QueryHookOptions, SuspenseQueryHookOptions, TupleToPrefixes } from "./_types.js";
6
6
  export type ClientAgentsRetrieveQueryData = components.Agent;
7
7
  /**
8
- * Get Agent
8
+ * Retrieve an agent
9
9
  *
10
10
  * @remarks
11
- * Get an agent by ID. This endpoint implements the LangChain Agent Protocol, specifically part of the Agents stage (https://langchain-ai.github.io/agent-protocol/api.html#tag/agents/GET/agents/{agent_id}). It adheres to the standard contract defined for agent interoperability and can be used by agent runtimes that support the Agent Protocol.
11
+ * Returns details of an [agent](https://developers.glean.com/agents/agents-api) created in the Agent Builder.
12
12
  */
13
13
  export declare function useClientAgentsRetrieve(agentId: string, timezoneOffset?: number | undefined, options?: QueryHookOptions<ClientAgentsRetrieveQueryData>): UseQueryResult<ClientAgentsRetrieveQueryData, Error>;
14
14
  /**
15
- * Get Agent
15
+ * Retrieve an agent
16
16
  *
17
17
  * @remarks
18
- * Get an agent by ID. This endpoint implements the LangChain Agent Protocol, specifically part of the Agents stage (https://langchain-ai.github.io/agent-protocol/api.html#tag/agents/GET/agents/{agent_id}). It adheres to the standard contract defined for agent interoperability and can be used by agent runtimes that support the Agent Protocol.
18
+ * Returns details of an [agent](https://developers.glean.com/agents/agents-api) created in the Agent Builder.
19
19
  */
20
20
  export declare function useClientAgentsRetrieveSuspense(agentId: string, timezoneOffset?: number | undefined, options?: SuspenseQueryHookOptions<ClientAgentsRetrieveQueryData>): UseSuspenseQueryResult<ClientAgentsRetrieveQueryData, Error>;
21
21
  export declare function prefetchClientAgentsRetrieve(queryClient: QueryClient, client$: GleanCore, agentId: string, timezoneOffset?: number | undefined): Promise<void>;