@aui.io/aui-client 3.1.2 → 3.2.0

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 (197) hide show
  1. package/README.md +196 -69
  2. package/dist/cjs/ApolloClientWrapper.d.ts +52 -24
  3. package/dist/cjs/ApolloClientWrapper.js +86 -58
  4. package/dist/cjs/BaseClient.d.ts +5 -0
  5. package/dist/cjs/Client.d.ts +4 -1
  6. package/dist/cjs/Client.js +24 -9
  7. package/dist/cjs/api/resources/agentVersions/client/Client.d.ts +26 -2
  8. package/dist/cjs/api/resources/agentVersions/client/Client.js +96 -43
  9. package/dist/cjs/api/resources/agentVersions/client/requests/AgentVersionPushRequest.d.ts +1 -1
  10. package/dist/cjs/api/resources/agents/client/Client.d.ts +22 -7
  11. package/dist/cjs/api/resources/agents/client/Client.js +80 -39
  12. package/dist/cjs/api/resources/agents/client/requests/{ExternalAgentCreateRequest.d.ts → AgentCreateRequest.d.ts} +1 -1
  13. package/dist/{esm/api/resources/agents/client/requests/ExternalAgentUpdateRequest.d.mts → cjs/api/resources/agents/client/requests/AgentUpdateRequest.d.ts} +1 -1
  14. package/dist/cjs/api/resources/agents/client/requests/ListAgentsRequest.d.ts +1 -1
  15. package/dist/cjs/api/resources/agents/client/requests/index.d.ts +2 -2
  16. package/dist/cjs/api/resources/auth/client/Client.d.ts +3 -2
  17. package/dist/cjs/api/resources/auth/client/Client.js +20 -8
  18. package/dist/cjs/api/resources/channels/client/Client.d.ts +7 -6
  19. package/dist/cjs/api/resources/channels/client/Client.js +24 -12
  20. package/dist/cjs/api/resources/channels/client/requests/InitiateThreadRequest.d.ts +3 -10
  21. package/dist/cjs/api/resources/messaging/client/Client.d.ts +51 -14
  22. package/dist/cjs/api/resources/messaging/client/Client.js +249 -50
  23. package/dist/cjs/api/resources/messaging/client/requests/GenerateFollowupSuggestionsRequest.d.ts +9 -0
  24. package/dist/cjs/api/resources/messaging/client/requests/RerunMessageRequest.d.ts +2 -2
  25. package/dist/cjs/api/resources/messaging/client/requests/StreamMessageRequest.d.ts +0 -1
  26. package/dist/cjs/api/resources/messaging/client/requests/index.d.ts +1 -0
  27. package/dist/cjs/api/resources/projects/client/Client.d.ts +14 -2
  28. package/dist/cjs/api/resources/projects/client/Client.js +66 -31
  29. package/dist/cjs/api/resources/session/client/Client.d.ts +2 -1
  30. package/dist/cjs/api/resources/session/client/Client.js +12 -2
  31. package/dist/cjs/api/resources/threads/client/Client.d.ts +37 -2
  32. package/dist/cjs/api/resources/threads/client/Client.js +155 -31
  33. package/dist/cjs/api/resources/threads/client/requests/UpdateThreadRequest.d.ts +8 -0
  34. package/dist/cjs/api/resources/threads/client/requests/index.d.ts +1 -0
  35. package/dist/cjs/api/types/{ExternalAgent.d.ts → Agent.d.ts} +1 -1
  36. package/dist/cjs/api/types/{ExternalAgentCreateResponse.d.ts → AgentCreateResponse.d.ts} +1 -1
  37. package/dist/cjs/api/types/{ExternalAgentListFilters.d.ts → AgentListFilters.d.ts} +1 -1
  38. package/dist/{esm/api/types/ExternalAgentUpdateResponse.d.mts → cjs/api/types/AgentUpdateResponse.d.ts} +1 -1
  39. package/dist/cjs/api/types/AgentVariables.d.ts +12 -0
  40. package/dist/cjs/api/types/AgentVersionPullResponse.d.ts +2 -3
  41. package/dist/cjs/api/types/AgentVersionPushResponse.d.ts +1 -1
  42. package/dist/cjs/api/types/AgentVersionWelcomeMessageResponse.d.ts +6 -0
  43. package/dist/cjs/api/types/GenerateFollowupSuggestionsResponse.d.ts +4 -0
  44. package/dist/cjs/api/types/PageAgent.d.ts +6 -0
  45. package/dist/cjs/api/types/PageAgentVersion.d.ts +6 -0
  46. package/dist/cjs/api/types/PageAgentVersion.js +3 -0
  47. package/dist/cjs/api/types/{ExternalPageLinks.d.ts → PageLinks.d.ts} +1 -1
  48. package/dist/cjs/api/types/PageLinks.js +3 -0
  49. package/dist/cjs/api/types/{ExternalPageMeta.d.ts → PageMeta.d.ts} +1 -1
  50. package/dist/cjs/api/types/PageMeta.js +3 -0
  51. package/dist/cjs/api/types/PageProject.d.ts +6 -0
  52. package/dist/cjs/api/types/PageProject.js +3 -0
  53. package/dist/cjs/api/types/PageThreadListItem.d.ts +6 -0
  54. package/dist/cjs/api/types/PageThreadListItem.js +3 -0
  55. package/dist/cjs/api/types/Project.d.ts +1 -1
  56. package/dist/cjs/api/types/SendMessageRequest.d.ts +7 -5
  57. package/dist/cjs/api/types/ThreadListFilters.d.ts +2 -5
  58. package/dist/cjs/api/types/TokenResponse.d.ts +4 -8
  59. package/dist/cjs/api/types/TraceDecision.d.ts +1 -2
  60. package/dist/cjs/api/types/VersionStats.d.ts +1 -2
  61. package/dist/cjs/api/types/index.d.ts +13 -10
  62. package/dist/cjs/api/types/index.js +13 -10
  63. package/dist/cjs/core/auth/AuthProvider.d.ts +4 -0
  64. package/dist/cjs/core/auth/AuthProvider.js +2 -0
  65. package/dist/cjs/core/auth/AuthRequest.d.ts +9 -0
  66. package/dist/cjs/core/auth/AuthRequest.js +2 -0
  67. package/dist/cjs/core/auth/BasicAuth.d.ts +8 -0
  68. package/dist/cjs/core/auth/BasicAuth.js +27 -0
  69. package/dist/cjs/core/auth/BearerToken.d.ts +5 -0
  70. package/dist/cjs/core/auth/BearerToken.js +15 -0
  71. package/dist/cjs/core/auth/index.d.ts +4 -0
  72. package/dist/cjs/core/auth/index.js +7 -0
  73. package/dist/cjs/core/base64.d.ts +2 -0
  74. package/dist/cjs/core/base64.js +26 -0
  75. package/dist/cjs/core/index.d.ts +2 -0
  76. package/dist/cjs/core/index.js +2 -0
  77. package/dist/cjs/environments.d.ts +2 -2
  78. package/dist/cjs/environments.js +2 -2
  79. package/dist/cjs/index.d.ts +1 -1
  80. package/dist/cjs/index.js +3 -2
  81. package/dist/cjs/version.d.ts +1 -1
  82. package/dist/cjs/version.js +1 -1
  83. package/dist/esm/ApolloClientWrapper.d.mts +52 -24
  84. package/dist/esm/ApolloClientWrapper.mjs +83 -56
  85. package/dist/esm/BaseClient.d.mts +5 -0
  86. package/dist/esm/Client.d.mts +4 -1
  87. package/dist/esm/Client.mjs +25 -10
  88. package/dist/esm/api/resources/agentVersions/client/Client.d.mts +26 -2
  89. package/dist/esm/api/resources/agentVersions/client/Client.mjs +97 -44
  90. package/dist/esm/api/resources/agentVersions/client/requests/AgentVersionPushRequest.d.mts +1 -1
  91. package/dist/esm/api/resources/agents/client/Client.d.mts +22 -7
  92. package/dist/esm/api/resources/agents/client/Client.mjs +81 -40
  93. package/dist/esm/api/resources/agents/client/requests/{ExternalAgentCreateRequest.d.mts → AgentCreateRequest.d.mts} +1 -1
  94. package/dist/{cjs/api/resources/agents/client/requests/ExternalAgentUpdateRequest.d.ts → esm/api/resources/agents/client/requests/AgentUpdateRequest.d.mts} +1 -1
  95. package/dist/esm/api/resources/agents/client/requests/ListAgentsRequest.d.mts +1 -1
  96. package/dist/esm/api/resources/agents/client/requests/index.d.mts +2 -2
  97. package/dist/esm/api/resources/auth/client/Client.d.mts +3 -2
  98. package/dist/esm/api/resources/auth/client/Client.mjs +21 -9
  99. package/dist/esm/api/resources/channels/client/Client.d.mts +7 -6
  100. package/dist/esm/api/resources/channels/client/Client.mjs +25 -13
  101. package/dist/esm/api/resources/channels/client/requests/InitiateThreadRequest.d.mts +3 -10
  102. package/dist/esm/api/resources/messaging/client/Client.d.mts +51 -14
  103. package/dist/esm/api/resources/messaging/client/Client.mjs +249 -50
  104. package/dist/esm/api/resources/messaging/client/requests/GenerateFollowupSuggestionsRequest.d.mts +9 -0
  105. package/dist/esm/api/resources/messaging/client/requests/RerunMessageRequest.d.mts +2 -2
  106. package/dist/esm/api/resources/messaging/client/requests/StreamMessageRequest.d.mts +0 -1
  107. package/dist/esm/api/resources/messaging/client/requests/index.d.mts +1 -0
  108. package/dist/esm/api/resources/projects/client/Client.d.mts +14 -2
  109. package/dist/esm/api/resources/projects/client/Client.mjs +67 -32
  110. package/dist/esm/api/resources/session/client/Client.d.mts +2 -1
  111. package/dist/esm/api/resources/session/client/Client.mjs +12 -2
  112. package/dist/esm/api/resources/threads/client/Client.d.mts +37 -2
  113. package/dist/esm/api/resources/threads/client/Client.mjs +156 -32
  114. package/dist/esm/api/resources/threads/client/requests/UpdateThreadRequest.d.mts +8 -0
  115. package/dist/esm/api/resources/threads/client/requests/index.d.mts +1 -0
  116. package/dist/esm/api/types/{ExternalAgent.d.mts → Agent.d.mts} +1 -1
  117. package/dist/esm/api/types/{ExternalAgentCreateResponse.d.mts → AgentCreateResponse.d.mts} +1 -1
  118. package/dist/esm/api/types/{ExternalAgentListFilters.d.mts → AgentListFilters.d.mts} +1 -1
  119. package/dist/{cjs/api/types/ExternalAgentUpdateResponse.d.ts → esm/api/types/AgentUpdateResponse.d.mts} +1 -1
  120. package/dist/esm/api/types/AgentVariables.d.mts +12 -0
  121. package/dist/esm/api/types/AgentVersionPullResponse.d.mts +2 -3
  122. package/dist/esm/api/types/AgentVersionPushResponse.d.mts +1 -1
  123. package/dist/esm/api/types/AgentVersionWelcomeMessageResponse.d.mts +6 -0
  124. package/dist/esm/api/types/GenerateFollowupSuggestionsResponse.d.mts +4 -0
  125. package/dist/esm/api/types/PageAgent.d.mts +6 -0
  126. package/dist/esm/api/types/PageAgentVersion.d.mts +6 -0
  127. package/dist/esm/api/types/PageAgentVersion.mjs +2 -0
  128. package/dist/esm/api/types/{ExternalPageLinks.d.mts → PageLinks.d.mts} +1 -1
  129. package/dist/esm/api/types/PageLinks.mjs +2 -0
  130. package/dist/esm/api/types/{ExternalPageMeta.d.mts → PageMeta.d.mts} +1 -1
  131. package/dist/esm/api/types/PageMeta.mjs +2 -0
  132. package/dist/esm/api/types/PageProject.d.mts +6 -0
  133. package/dist/esm/api/types/PageProject.mjs +2 -0
  134. package/dist/esm/api/types/PageThreadListItem.d.mts +6 -0
  135. package/dist/esm/api/types/PageThreadListItem.mjs +2 -0
  136. package/dist/esm/api/types/Project.d.mts +1 -1
  137. package/dist/esm/api/types/SendMessageRequest.d.mts +7 -5
  138. package/dist/esm/api/types/ThreadListFilters.d.mts +2 -5
  139. package/dist/esm/api/types/TokenResponse.d.mts +4 -8
  140. package/dist/esm/api/types/TraceDecision.d.mts +1 -2
  141. package/dist/esm/api/types/VersionStats.d.mts +1 -2
  142. package/dist/esm/api/types/index.d.mts +13 -10
  143. package/dist/esm/api/types/index.mjs +13 -10
  144. package/dist/esm/core/auth/AuthProvider.d.mts +4 -0
  145. package/dist/esm/core/auth/AuthProvider.mjs +1 -0
  146. package/dist/esm/core/auth/AuthRequest.d.mts +9 -0
  147. package/dist/esm/core/auth/AuthRequest.mjs +1 -0
  148. package/dist/esm/core/auth/BasicAuth.d.mts +8 -0
  149. package/dist/esm/core/auth/BasicAuth.mjs +24 -0
  150. package/dist/esm/core/auth/BearerToken.d.mts +5 -0
  151. package/dist/esm/core/auth/BearerToken.mjs +12 -0
  152. package/dist/esm/core/auth/index.d.mts +4 -0
  153. package/dist/esm/core/auth/index.mjs +2 -0
  154. package/dist/esm/core/base64.d.mts +2 -0
  155. package/dist/esm/core/base64.mjs +22 -0
  156. package/dist/esm/core/index.d.mts +2 -0
  157. package/dist/esm/core/index.mjs +2 -0
  158. package/dist/esm/environments.d.mts +2 -2
  159. package/dist/esm/environments.mjs +2 -2
  160. package/dist/esm/index.d.mts +1 -1
  161. package/dist/esm/index.mjs +1 -1
  162. package/dist/esm/version.d.mts +1 -1
  163. package/dist/esm/version.mjs +1 -1
  164. package/package.json +1 -1
  165. package/reference.md +568 -29
  166. package/dist/cjs/api/types/ExternalPageAgentVersion.d.ts +0 -6
  167. package/dist/cjs/api/types/ExternalPageExternalAgent.d.ts +0 -6
  168. package/dist/cjs/api/types/ExternalPageProject.d.ts +0 -6
  169. package/dist/cjs/api/types/ExternalPageThreadListItem.d.ts +0 -6
  170. package/dist/esm/api/types/ExternalPageAgentVersion.d.mts +0 -6
  171. package/dist/esm/api/types/ExternalPageExternalAgent.d.mts +0 -6
  172. package/dist/esm/api/types/ExternalPageProject.d.mts +0 -6
  173. package/dist/esm/api/types/ExternalPageThreadListItem.d.mts +0 -6
  174. /package/dist/cjs/api/resources/agents/client/requests/{ExternalAgentCreateRequest.js → AgentCreateRequest.js} +0 -0
  175. /package/dist/cjs/api/resources/agents/client/requests/{ExternalAgentUpdateRequest.js → AgentUpdateRequest.js} +0 -0
  176. /package/dist/cjs/api/{types/ExternalAgent.js → resources/messaging/client/requests/GenerateFollowupSuggestionsRequest.js} +0 -0
  177. /package/dist/cjs/api/{types/ExternalAgentCreateResponse.js → resources/threads/client/requests/UpdateThreadRequest.js} +0 -0
  178. /package/dist/cjs/api/types/{ExternalAgentListFilters.js → Agent.js} +0 -0
  179. /package/dist/cjs/api/types/{ExternalAgentUpdateResponse.js → AgentCreateResponse.js} +0 -0
  180. /package/dist/cjs/api/types/{ExternalPageAgentVersion.js → AgentListFilters.js} +0 -0
  181. /package/dist/cjs/api/types/{ExternalPageExternalAgent.js → AgentUpdateResponse.js} +0 -0
  182. /package/dist/cjs/api/types/{ExternalPageLinks.js → AgentVariables.js} +0 -0
  183. /package/dist/cjs/api/types/{ExternalPageMeta.js → AgentVersionWelcomeMessageResponse.js} +0 -0
  184. /package/dist/cjs/api/types/{ExternalPageProject.js → GenerateFollowupSuggestionsResponse.js} +0 -0
  185. /package/dist/cjs/api/types/{ExternalPageThreadListItem.js → PageAgent.js} +0 -0
  186. /package/dist/esm/api/resources/agents/client/requests/{ExternalAgentCreateRequest.mjs → AgentCreateRequest.mjs} +0 -0
  187. /package/dist/esm/api/resources/agents/client/requests/{ExternalAgentUpdateRequest.mjs → AgentUpdateRequest.mjs} +0 -0
  188. /package/dist/esm/api/{types/ExternalAgent.mjs → resources/messaging/client/requests/GenerateFollowupSuggestionsRequest.mjs} +0 -0
  189. /package/dist/esm/api/{types/ExternalAgentCreateResponse.mjs → resources/threads/client/requests/UpdateThreadRequest.mjs} +0 -0
  190. /package/dist/esm/api/types/{ExternalAgentListFilters.mjs → Agent.mjs} +0 -0
  191. /package/dist/esm/api/types/{ExternalAgentUpdateResponse.mjs → AgentCreateResponse.mjs} +0 -0
  192. /package/dist/esm/api/types/{ExternalPageAgentVersion.mjs → AgentListFilters.mjs} +0 -0
  193. /package/dist/esm/api/types/{ExternalPageExternalAgent.mjs → AgentUpdateResponse.mjs} +0 -0
  194. /package/dist/esm/api/types/{ExternalPageLinks.mjs → AgentVariables.mjs} +0 -0
  195. /package/dist/esm/api/types/{ExternalPageMeta.mjs → AgentVersionWelcomeMessageResponse.mjs} +0 -0
  196. /package/dist/esm/api/types/{ExternalPageProject.mjs → GenerateFollowupSuggestionsResponse.mjs} +0 -0
  197. /package/dist/esm/api/types/{ExternalPageThreadListItem.mjs → PageAgent.mjs} +0 -0
@@ -9,8 +9,10 @@ export declare namespace Projects {
9
9
  }
10
10
  export declare class Projects {
11
11
  protected readonly _options: Projects.Options;
12
- constructor(_options?: Projects.Options);
12
+ constructor(_options: Projects.Options);
13
13
  /**
14
+ * List your organization's projects.
15
+ *
14
16
  * @param {Apollo.ListProjectsRequest} request
15
17
  * @param {Projects.RequestOptions} requestOptions - Request-specific configuration.
16
18
  *
@@ -31,9 +33,11 @@ export declare class Projects {
31
33
  * sort_order: "asc"
32
34
  * })
33
35
  */
34
- listProjects(request?: Apollo.ListProjectsRequest, requestOptions?: Projects.RequestOptions): core.HttpResponsePromise<Apollo.ExternalPageProject>;
36
+ listProjects(request?: Apollo.ListProjectsRequest, requestOptions?: Projects.RequestOptions): core.HttpResponsePromise<Apollo.PageProject>;
35
37
  private __listProjects;
36
38
  /**
39
+ * Create a project in your organization. Projects group agents.
40
+ *
37
41
  * @param {Apollo.ProjectCreateRequest} request
38
42
  * @param {Projects.RequestOptions} requestOptions - Request-specific configuration.
39
43
  *
@@ -53,6 +57,8 @@ export declare class Projects {
53
57
  createProject(request: Apollo.ProjectCreateRequest, requestOptions?: Projects.RequestOptions): core.HttpResponsePromise<Apollo.Project>;
54
58
  private __createProject;
55
59
  /**
60
+ * Fetch one project.
61
+ *
56
62
  * @param {string} projectId
57
63
  * @param {Projects.RequestOptions} requestOptions - Request-specific configuration.
58
64
  *
@@ -70,6 +76,8 @@ export declare class Projects {
70
76
  getProject(projectId: string, requestOptions?: Projects.RequestOptions): core.HttpResponsePromise<Apollo.Project>;
71
77
  private __getProject;
72
78
  /**
79
+ * Delete a project. It disappears from listings immediately.
80
+ *
73
81
  * @param {string} projectId
74
82
  * @param {Projects.RequestOptions} requestOptions - Request-specific configuration.
75
83
  *
@@ -87,6 +95,9 @@ export declare class Projects {
87
95
  deleteProject(projectId: string, requestOptions?: Projects.RequestOptions): core.HttpResponsePromise<void>;
88
96
  private __deleteProject;
89
97
  /**
98
+ * Usage metrics aggregated across every agent in the project, optionally
99
+ * bounded by a date range.
100
+ *
90
101
  * @param {string} projectId
91
102
  * @param {Apollo.GetProjectUsageRequest} request
92
103
  * @param {Projects.RequestOptions} requestOptions - Request-specific configuration.
@@ -107,4 +118,5 @@ export declare class Projects {
107
118
  */
108
119
  getProjectUsage(projectId: string, request?: Apollo.GetProjectUsageRequest, requestOptions?: Projects.RequestOptions): core.HttpResponsePromise<Apollo.UsageResponse>;
109
120
  private __getProjectUsage;
121
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
110
122
  }
@@ -8,16 +8,18 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
9
  });
10
10
  };
11
- import { mergeHeaders } from "../../../../core/headers.mjs";
11
+ import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
12
12
  import * as core from "../../../../core/index.mjs";
13
13
  import * as environments from "../../../../environments.mjs";
14
14
  import * as errors from "../../../../errors/index.mjs";
15
15
  import * as Apollo from "../../../index.mjs";
16
16
  export class Projects {
17
- constructor(_options = {}) {
17
+ constructor(_options) {
18
18
  this._options = _options;
19
19
  }
20
20
  /**
21
+ * List your organization's projects.
22
+ *
21
23
  * @param {Apollo.ListProjectsRequest} request
22
24
  * @param {Projects.RequestOptions} requestOptions - Request-specific configuration.
23
25
  *
@@ -43,7 +45,7 @@ export class Projects {
43
45
  }
44
46
  __listProjects() {
45
47
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
46
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
48
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
47
49
  const { "page[size]": pageSize, "page[after]": pageAfter, "page[before]": pageBefore, sort_by: sortBy, sort_order: sortOrder, } = request;
48
50
  const _queryParams = {};
49
51
  if (pageSize != null) {
@@ -61,16 +63,19 @@ export class Projects {
61
63
  if (sortOrder != null) {
62
64
  _queryParams.sort_order = sortOrder;
63
65
  }
64
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
66
+ const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({
67
+ Authorization: yield this._getAuthorizationHeader(),
68
+ "x-organization-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.organizationApiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.organizationApiKey,
69
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
65
70
  const _response = yield core.fetcher({
66
- url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ApolloEnvironment.Gcp).base, "management/v1/projects"),
71
+ url: core.url.join((_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : ((_e = (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ApolloEnvironment.Gcp).base, "management/v1/projects"),
67
72
  method: "GET",
68
73
  headers: _headers,
69
74
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
70
- timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
71
- maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
75
+ timeoutMs: ((_h = (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.timeoutInSeconds) !== null && _h !== void 0 ? _h : 60) * 1000,
76
+ maxRetries: (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.maxRetries,
72
77
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
73
- fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
78
+ fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
74
79
  logging: this._options.logging,
75
80
  });
76
81
  if (_response.ok) {
@@ -118,6 +123,8 @@ export class Projects {
118
123
  });
119
124
  }
120
125
  /**
126
+ * Create a project in your organization. Projects group agents.
127
+ *
121
128
  * @param {Apollo.ProjectCreateRequest} request
122
129
  * @param {Projects.RequestOptions} requestOptions - Request-specific configuration.
123
130
  *
@@ -139,20 +146,23 @@ export class Projects {
139
146
  }
140
147
  __createProject(request, requestOptions) {
141
148
  return __awaiter(this, void 0, void 0, function* () {
142
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
143
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
149
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
150
+ const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({
151
+ Authorization: yield this._getAuthorizationHeader(),
152
+ "x-organization-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.organizationApiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.organizationApiKey,
153
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
144
154
  const _response = yield core.fetcher({
145
- url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ApolloEnvironment.Gcp).base, "management/v1/projects"),
155
+ url: core.url.join((_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : ((_e = (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ApolloEnvironment.Gcp).base, "management/v1/projects"),
146
156
  method: "POST",
147
157
  headers: _headers,
148
158
  contentType: "application/json",
149
159
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
150
160
  requestType: "json",
151
161
  body: request,
152
- timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
153
- maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
162
+ timeoutMs: ((_h = (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.timeoutInSeconds) !== null && _h !== void 0 ? _h : 60) * 1000,
163
+ maxRetries: (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.maxRetries,
154
164
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
155
- fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
165
+ fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
156
166
  logging: this._options.logging,
157
167
  });
158
168
  if (_response.ok) {
@@ -200,6 +210,8 @@ export class Projects {
200
210
  });
201
211
  }
202
212
  /**
213
+ * Fetch one project.
214
+ *
203
215
  * @param {string} projectId
204
216
  * @param {Projects.RequestOptions} requestOptions - Request-specific configuration.
205
217
  *
@@ -219,17 +231,20 @@ export class Projects {
219
231
  }
220
232
  __getProject(projectId, requestOptions) {
221
233
  return __awaiter(this, void 0, void 0, function* () {
222
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
223
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
234
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
235
+ const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({
236
+ Authorization: yield this._getAuthorizationHeader(),
237
+ "x-organization-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.organizationApiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.organizationApiKey,
238
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
224
239
  const _response = yield core.fetcher({
225
- url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ApolloEnvironment.Gcp).base, `management/v1/projects/${core.url.encodePathParam(projectId)}`),
240
+ url: core.url.join((_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : ((_e = (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ApolloEnvironment.Gcp).base, `management/v1/projects/${core.url.encodePathParam(projectId)}`),
226
241
  method: "GET",
227
242
  headers: _headers,
228
243
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
229
- timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
230
- maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
244
+ timeoutMs: ((_h = (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.timeoutInSeconds) !== null && _h !== void 0 ? _h : 60) * 1000,
245
+ maxRetries: (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.maxRetries,
231
246
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
232
- fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
247
+ fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
233
248
  logging: this._options.logging,
234
249
  });
235
250
  if (_response.ok) {
@@ -277,6 +292,8 @@ export class Projects {
277
292
  });
278
293
  }
279
294
  /**
295
+ * Delete a project. It disappears from listings immediately.
296
+ *
280
297
  * @param {string} projectId
281
298
  * @param {Projects.RequestOptions} requestOptions - Request-specific configuration.
282
299
  *
@@ -296,17 +313,20 @@ export class Projects {
296
313
  }
297
314
  __deleteProject(projectId, requestOptions) {
298
315
  return __awaiter(this, void 0, void 0, function* () {
299
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
300
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
316
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
317
+ const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({
318
+ Authorization: yield this._getAuthorizationHeader(),
319
+ "x-organization-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.organizationApiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.organizationApiKey,
320
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
301
321
  const _response = yield core.fetcher({
302
- url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ApolloEnvironment.Gcp).base, `management/v1/projects/${core.url.encodePathParam(projectId)}`),
322
+ url: core.url.join((_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : ((_e = (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ApolloEnvironment.Gcp).base, `management/v1/projects/${core.url.encodePathParam(projectId)}`),
303
323
  method: "DELETE",
304
324
  headers: _headers,
305
325
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
306
- timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
307
- maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
326
+ timeoutMs: ((_h = (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.timeoutInSeconds) !== null && _h !== void 0 ? _h : 60) * 1000,
327
+ maxRetries: (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.maxRetries,
308
328
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
309
- fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
329
+ fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
310
330
  logging: this._options.logging,
311
331
  });
312
332
  if (_response.ok) {
@@ -354,6 +374,9 @@ export class Projects {
354
374
  });
355
375
  }
356
376
  /**
377
+ * Usage metrics aggregated across every agent in the project, optionally
378
+ * bounded by a date range.
379
+ *
357
380
  * @param {string} projectId
358
381
  * @param {Apollo.GetProjectUsageRequest} request
359
382
  * @param {Projects.RequestOptions} requestOptions - Request-specific configuration.
@@ -377,7 +400,7 @@ export class Projects {
377
400
  }
378
401
  __getProjectUsage(projectId_1) {
379
402
  return __awaiter(this, arguments, void 0, function* (projectId, request = {}, requestOptions) {
380
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
403
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
381
404
  const { created_from: createdFrom, created_to: createdTo } = request;
382
405
  const _queryParams = {};
383
406
  if (createdFrom != null) {
@@ -386,16 +409,19 @@ export class Projects {
386
409
  if (createdTo != null) {
387
410
  _queryParams.created_to = createdTo;
388
411
  }
389
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
412
+ const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({
413
+ Authorization: yield this._getAuthorizationHeader(),
414
+ "x-organization-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.organizationApiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.organizationApiKey,
415
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
390
416
  const _response = yield core.fetcher({
391
- url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ApolloEnvironment.Gcp).base, `management/v1/projects/${core.url.encodePathParam(projectId)}/usage`),
417
+ url: core.url.join((_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : ((_e = (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ApolloEnvironment.Gcp).base, `management/v1/projects/${core.url.encodePathParam(projectId)}/usage`),
392
418
  method: "GET",
393
419
  headers: _headers,
394
420
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
395
- timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
396
- maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
421
+ timeoutMs: ((_h = (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.timeoutInSeconds) !== null && _h !== void 0 ? _h : 60) * 1000,
422
+ maxRetries: (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.maxRetries,
397
423
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
398
- fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
424
+ fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
399
425
  logging: this._options.logging,
400
426
  });
401
427
  if (_response.ok) {
@@ -442,4 +468,13 @@ export class Projects {
442
468
  }
443
469
  });
444
470
  }
471
+ _getAuthorizationHeader() {
472
+ return __awaiter(this, void 0, void 0, function* () {
473
+ const bearer = yield core.Supplier.get(this._options.token);
474
+ if (bearer != null) {
475
+ return `Bearer ${bearer}`;
476
+ }
477
+ return undefined;
478
+ });
479
+ }
445
480
  }
@@ -14,6 +14,7 @@ export declare namespace Session {
14
14
  }
15
15
  export declare class Session {
16
16
  protected readonly _options: Session.Options;
17
- constructor(_options?: Session.Options);
17
+ constructor(_options: Session.Options);
18
18
  connect(args?: Session.ConnectArgs): Promise<SessionSocket>;
19
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
19
20
  }
@@ -8,18 +8,19 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
9
  });
10
10
  };
11
+ import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
11
12
  import * as core from "../../../../core/index.mjs";
12
13
  import * as environments from "../../../../environments.mjs";
13
14
  import { SessionSocket } from "./Socket.mjs";
14
15
  export class Session {
15
- constructor(_options = {}) {
16
+ constructor(_options) {
16
17
  this._options = _options;
17
18
  }
18
19
  connect() {
19
20
  return __awaiter(this, arguments, void 0, function* (args = {}) {
20
21
  var _a, _b;
21
22
  const { headers, debug, reconnectAttempts } = args;
22
- const _headers = Object.assign({}, headers);
23
+ const _headers = mergeHeaders(mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), headers);
23
24
  const socket = new core.ReconnectingWebSocket({
24
25
  url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ApolloEnvironment.Gcp)
25
26
  .production, "/messaging/v1/session"),
@@ -31,4 +32,13 @@ export class Session {
31
32
  return new SessionSocket({ socket });
32
33
  });
33
34
  }
35
+ _getAuthorizationHeader() {
36
+ return __awaiter(this, void 0, void 0, function* () {
37
+ const bearer = yield core.Supplier.get(this._options.token);
38
+ if (bearer != null) {
39
+ return `Bearer ${bearer}`;
40
+ }
41
+ return undefined;
42
+ });
43
+ }
34
44
  }
@@ -9,8 +9,12 @@ export declare namespace Threads {
9
9
  }
10
10
  export declare class Threads {
11
11
  protected readonly _options: Threads.Options;
12
- constructor(_options?: Threads.Options);
12
+ constructor(_options: Threads.Options);
13
13
  /**
14
+ * List your organization's conversation threads, newest first. Repeatable
15
+ * filters (``tool``, ``rule``, ``param``, ``created``) OR within a field and
16
+ * AND across fields.
17
+ *
14
18
  * @param {Apollo.ListThreadsRequest} request
15
19
  * @param {Threads.RequestOptions} requestOptions - Request-specific configuration.
16
20
  *
@@ -27,9 +31,11 @@ export declare class Threads {
27
31
  * filters: {}
28
32
  * })
29
33
  */
30
- listThreads(request: Apollo.ListThreadsRequest, requestOptions?: Threads.RequestOptions): core.HttpResponsePromise<Apollo.ExternalPageThreadListItem>;
34
+ listThreads(request: Apollo.ListThreadsRequest, requestOptions?: Threads.RequestOptions): core.HttpResponsePromise<Apollo.PageThreadListItem>;
31
35
  private __listThreads;
32
36
  /**
37
+ * Fetch one thread's details — title, participants, and status.
38
+ *
33
39
  * @param {string} threadId
34
40
  * @param {Threads.RequestOptions} requestOptions - Request-specific configuration.
35
41
  *
@@ -47,6 +53,30 @@ export declare class Threads {
47
53
  getThread(threadId: string, requestOptions?: Threads.RequestOptions): core.HttpResponsePromise<Apollo.Thread>;
48
54
  private __getThread;
49
55
  /**
56
+ * Partial update — only ``title`` is updatable for now. Omitted fields are
57
+ * left unchanged; the full updated thread is returned.
58
+ *
59
+ * @param {string} threadId
60
+ * @param {Apollo.UpdateThreadRequest} request
61
+ * @param {Threads.RequestOptions} requestOptions - Request-specific configuration.
62
+ *
63
+ * @throws {@link Apollo.BadRequestError}
64
+ * @throws {@link Apollo.UnauthorizedError}
65
+ * @throws {@link Apollo.ForbiddenError}
66
+ * @throws {@link Apollo.NotFoundError}
67
+ * @throws {@link Apollo.ConflictError}
68
+ * @throws {@link Apollo.UnprocessableEntityError}
69
+ * @throws {@link Apollo.InternalServerError}
70
+ *
71
+ * @example
72
+ * await client.threads.updateThread("threadId")
73
+ */
74
+ updateThread(threadId: string, request?: Apollo.UpdateThreadRequest, requestOptions?: Threads.RequestOptions): core.HttpResponsePromise<Apollo.Thread>;
75
+ private __updateThread;
76
+ /**
77
+ * The reasoning trace of every interaction in the thread — what the agent
78
+ * understood, which rules fired, and the decisions it took.
79
+ *
50
80
  * @param {string} threadId
51
81
  * @param {Threads.RequestOptions} requestOptions - Request-specific configuration.
52
82
  *
@@ -64,6 +94,8 @@ export declare class Threads {
64
94
  getThreadTrace(threadId: string, requestOptions?: Threads.RequestOptions): core.HttpResponsePromise<Apollo.Trace[]>;
65
95
  private __getThreadTrace;
66
96
  /**
97
+ * The reasoning trace of a single interaction, resolved by its id.
98
+ *
67
99
  * @param {string} interactionId
68
100
  * @param {Threads.RequestOptions} requestOptions - Request-specific configuration.
69
101
  *
@@ -81,6 +113,8 @@ export declare class Threads {
81
113
  getInteractionTrace(interactionId: string, requestOptions?: Threads.RequestOptions): core.HttpResponsePromise<Apollo.Trace>;
82
114
  private __getInteractionTrace;
83
115
  /**
116
+ * The thread's full transcript, in chronological order.
117
+ *
84
118
  * @param {string} threadId
85
119
  * @param {Threads.RequestOptions} requestOptions - Request-specific configuration.
86
120
  *
@@ -97,4 +131,5 @@ export declare class Threads {
97
131
  */
98
132
  getThreadMessages(threadId: string, requestOptions?: Threads.RequestOptions): core.HttpResponsePromise<Apollo.Message[]>;
99
133
  private __getThreadMessages;
134
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
100
135
  }