@aui.io/aui-client 3.1.2 → 3.2.1

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 +226 -143
  2. package/dist/cjs/ApolloClientWrapper.d.ts +54 -26
  3. package/dist/cjs/ApolloClientWrapper.js +88 -64
  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 +54 -26
  84. package/dist/esm/ApolloClientWrapper.mjs +85 -62
  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
  }
@@ -50,10 +50,12 @@ const environments = __importStar(require("../../../../environments.js"));
50
50
  const errors = __importStar(require("../../../../errors/index.js"));
51
51
  const Apollo = __importStar(require("../../../index.js"));
52
52
  class Projects {
53
- constructor(_options = {}) {
53
+ constructor(_options) {
54
54
  this._options = _options;
55
55
  }
56
56
  /**
57
+ * List your organization's projects.
58
+ *
57
59
  * @param {Apollo.ListProjectsRequest} request
58
60
  * @param {Projects.RequestOptions} requestOptions - Request-specific configuration.
59
61
  *
@@ -79,7 +81,7 @@ class Projects {
79
81
  }
80
82
  __listProjects() {
81
83
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
82
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
84
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
83
85
  const { "page[size]": pageSize, "page[after]": pageAfter, "page[before]": pageBefore, sort_by: sortBy, sort_order: sortOrder, } = request;
84
86
  const _queryParams = {};
85
87
  if (pageSize != null) {
@@ -97,16 +99,19 @@ class Projects {
97
99
  if (sortOrder != null) {
98
100
  _queryParams.sort_order = sortOrder;
99
101
  }
100
- const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
102
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
103
+ Authorization: yield this._getAuthorizationHeader(),
104
+ "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,
105
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
101
106
  const _response = yield core.fetcher({
102
- 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"),
107
+ 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"),
103
108
  method: "GET",
104
109
  headers: _headers,
105
110
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
106
- 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,
107
- 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,
111
+ 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,
112
+ 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,
108
113
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
109
- fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
114
+ fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
110
115
  logging: this._options.logging,
111
116
  });
112
117
  if (_response.ok) {
@@ -154,6 +159,8 @@ class Projects {
154
159
  });
155
160
  }
156
161
  /**
162
+ * Create a project in your organization. Projects group agents.
163
+ *
157
164
  * @param {Apollo.ProjectCreateRequest} request
158
165
  * @param {Projects.RequestOptions} requestOptions - Request-specific configuration.
159
166
  *
@@ -175,20 +182,23 @@ class Projects {
175
182
  }
176
183
  __createProject(request, requestOptions) {
177
184
  return __awaiter(this, void 0, void 0, function* () {
178
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
179
- const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
185
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
186
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
187
+ Authorization: yield this._getAuthorizationHeader(),
188
+ "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,
189
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
180
190
  const _response = yield core.fetcher({
181
- 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"),
191
+ 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"),
182
192
  method: "POST",
183
193
  headers: _headers,
184
194
  contentType: "application/json",
185
195
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
186
196
  requestType: "json",
187
197
  body: request,
188
- 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,
189
- 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,
198
+ 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,
199
+ 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,
190
200
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
191
- fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
201
+ fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
192
202
  logging: this._options.logging,
193
203
  });
194
204
  if (_response.ok) {
@@ -236,6 +246,8 @@ class Projects {
236
246
  });
237
247
  }
238
248
  /**
249
+ * Fetch one project.
250
+ *
239
251
  * @param {string} projectId
240
252
  * @param {Projects.RequestOptions} requestOptions - Request-specific configuration.
241
253
  *
@@ -255,17 +267,20 @@ class Projects {
255
267
  }
256
268
  __getProject(projectId, requestOptions) {
257
269
  return __awaiter(this, void 0, void 0, function* () {
258
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
259
- const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
270
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
271
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
272
+ Authorization: yield this._getAuthorizationHeader(),
273
+ "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,
274
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
260
275
  const _response = yield core.fetcher({
261
- 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)}`),
276
+ 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)}`),
262
277
  method: "GET",
263
278
  headers: _headers,
264
279
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
265
- 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,
266
- 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,
280
+ 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,
281
+ 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,
267
282
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
268
- fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
283
+ fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
269
284
  logging: this._options.logging,
270
285
  });
271
286
  if (_response.ok) {
@@ -313,6 +328,8 @@ class Projects {
313
328
  });
314
329
  }
315
330
  /**
331
+ * Delete a project. It disappears from listings immediately.
332
+ *
316
333
  * @param {string} projectId
317
334
  * @param {Projects.RequestOptions} requestOptions - Request-specific configuration.
318
335
  *
@@ -332,17 +349,20 @@ class Projects {
332
349
  }
333
350
  __deleteProject(projectId, requestOptions) {
334
351
  return __awaiter(this, void 0, void 0, function* () {
335
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
336
- const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
352
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
353
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
354
+ Authorization: yield this._getAuthorizationHeader(),
355
+ "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,
356
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
337
357
  const _response = yield core.fetcher({
338
- 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)}`),
358
+ 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)}`),
339
359
  method: "DELETE",
340
360
  headers: _headers,
341
361
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
342
- 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,
343
- 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,
362
+ 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,
363
+ 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,
344
364
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
345
- fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
365
+ fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
346
366
  logging: this._options.logging,
347
367
  });
348
368
  if (_response.ok) {
@@ -390,6 +410,9 @@ class Projects {
390
410
  });
391
411
  }
392
412
  /**
413
+ * Usage metrics aggregated across every agent in the project, optionally
414
+ * bounded by a date range.
415
+ *
393
416
  * @param {string} projectId
394
417
  * @param {Apollo.GetProjectUsageRequest} request
395
418
  * @param {Projects.RequestOptions} requestOptions - Request-specific configuration.
@@ -413,7 +436,7 @@ class Projects {
413
436
  }
414
437
  __getProjectUsage(projectId_1) {
415
438
  return __awaiter(this, arguments, void 0, function* (projectId, request = {}, requestOptions) {
416
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
439
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
417
440
  const { created_from: createdFrom, created_to: createdTo } = request;
418
441
  const _queryParams = {};
419
442
  if (createdFrom != null) {
@@ -422,16 +445,19 @@ class Projects {
422
445
  if (createdTo != null) {
423
446
  _queryParams.created_to = createdTo;
424
447
  }
425
- const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
448
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
449
+ Authorization: yield this._getAuthorizationHeader(),
450
+ "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,
451
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
426
452
  const _response = yield core.fetcher({
427
- 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`),
453
+ 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`),
428
454
  method: "GET",
429
455
  headers: _headers,
430
456
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
431
- 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,
432
- 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,
457
+ 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,
458
+ 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,
433
459
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
434
- fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
460
+ fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
435
461
  logging: this._options.logging,
436
462
  });
437
463
  if (_response.ok) {
@@ -478,5 +504,14 @@ class Projects {
478
504
  }
479
505
  });
480
506
  }
507
+ _getAuthorizationHeader() {
508
+ return __awaiter(this, void 0, void 0, function* () {
509
+ const bearer = yield core.Supplier.get(this._options.token);
510
+ if (bearer != null) {
511
+ return `Bearer ${bearer}`;
512
+ }
513
+ return undefined;
514
+ });
515
+ }
481
516
  }
482
517
  exports.Projects = Projects;
@@ -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
  }
@@ -44,18 +44,19 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
44
44
  };
45
45
  Object.defineProperty(exports, "__esModule", { value: true });
46
46
  exports.Session = void 0;
47
+ const headers_js_1 = require("../../../../core/headers.js");
47
48
  const core = __importStar(require("../../../../core/index.js"));
48
49
  const environments = __importStar(require("../../../../environments.js"));
49
50
  const Socket_js_1 = require("./Socket.js");
50
51
  class Session {
51
- constructor(_options = {}) {
52
+ constructor(_options) {
52
53
  this._options = _options;
53
54
  }
54
55
  connect() {
55
56
  return __awaiter(this, arguments, void 0, function* (args = {}) {
56
57
  var _a, _b;
57
58
  const { headers, debug, reconnectAttempts } = args;
58
- const _headers = Object.assign({}, headers);
59
+ const _headers = (0, headers_js_1.mergeHeaders)((0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), headers);
59
60
  const socket = new core.ReconnectingWebSocket({
60
61
  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)
61
62
  .production, "/messaging/v1/session"),
@@ -67,5 +68,14 @@ class Session {
67
68
  return new Socket_js_1.SessionSocket({ socket });
68
69
  });
69
70
  }
71
+ _getAuthorizationHeader() {
72
+ return __awaiter(this, void 0, void 0, function* () {
73
+ const bearer = yield core.Supplier.get(this._options.token);
74
+ if (bearer != null) {
75
+ return `Bearer ${bearer}`;
76
+ }
77
+ return undefined;
78
+ });
79
+ }
70
80
  }
71
81
  exports.Session = Session;
@@ -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
  }