levelfour 1.5.0 → 1.6.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 (177) hide show
  1. package/dist/api/resources/anthropic/client/Client.d.mts +113 -0
  2. package/dist/api/resources/anthropic/client/Client.d.ts +113 -0
  3. package/dist/api/resources/anthropic/client/Client.js +554 -1
  4. package/dist/api/resources/anthropic/client/Client.mjs +555 -2
  5. package/dist/api/resources/anthropic/client/requests/BodyPreviewTeamAreasApiV1ProvidersAnthropicTeamAreasPreviewPost.d.mts +11 -0
  6. package/dist/api/resources/anthropic/client/requests/BodyPreviewTeamAreasApiV1ProvidersAnthropicTeamAreasPreviewPost.d.ts +11 -0
  7. package/dist/api/resources/anthropic/client/requests/BodyPreviewTeamAreasApiV1ProvidersAnthropicTeamAreasPreviewPost.js +17 -0
  8. package/dist/api/resources/anthropic/client/requests/BodyPreviewTeamAreasApiV1ProvidersAnthropicTeamAreasPreviewPost.mjs +1 -0
  9. package/dist/api/resources/anthropic/client/requests/GetTeamPeopleApiV1ProvidersAnthropicTeamPeopleGetRequest.d.mts +2 -0
  10. package/dist/api/resources/anthropic/client/requests/GetTeamPeopleApiV1ProvidersAnthropicTeamPeopleGetRequest.d.ts +2 -0
  11. package/dist/api/resources/anthropic/client/requests/GetUsagePeopleApiV1ProvidersAnthropicUsagePeopleGetRequest.d.mts +16 -0
  12. package/dist/api/resources/anthropic/client/requests/GetUsagePeopleApiV1ProvidersAnthropicUsagePeopleGetRequest.d.ts +16 -0
  13. package/dist/api/resources/anthropic/client/requests/GetUsagePeopleApiV1ProvidersAnthropicUsagePeopleGetRequest.js +17 -0
  14. package/dist/api/resources/anthropic/client/requests/GetUsagePeopleApiV1ProvidersAnthropicUsagePeopleGetRequest.mjs +1 -0
  15. package/dist/api/resources/anthropic/client/requests/GetUsagePersonApiV1ProvidersAnthropicUsagePeoplePersonGetRequest.d.mts +9 -0
  16. package/dist/api/resources/anthropic/client/requests/GetUsagePersonApiV1ProvidersAnthropicUsagePeoplePersonGetRequest.d.ts +9 -0
  17. package/dist/api/resources/anthropic/client/requests/GetUsagePersonApiV1ProvidersAnthropicUsagePeoplePersonGetRequest.js +17 -0
  18. package/dist/api/resources/anthropic/client/requests/GetUsagePersonApiV1ProvidersAnthropicUsagePeoplePersonGetRequest.mjs +1 -0
  19. package/dist/api/resources/anthropic/client/requests/GetUsagePersonSessionsApiV1ProvidersAnthropicUsagePeoplePersonSessionsGetRequest.d.mts +18 -0
  20. package/dist/api/resources/anthropic/client/requests/GetUsagePersonSessionsApiV1ProvidersAnthropicUsagePeoplePersonSessionsGetRequest.d.ts +18 -0
  21. package/dist/api/resources/anthropic/client/requests/GetUsagePersonSessionsApiV1ProvidersAnthropicUsagePeoplePersonSessionsGetRequest.js +17 -0
  22. package/dist/api/resources/anthropic/client/requests/GetUsagePersonSessionsApiV1ProvidersAnthropicUsagePeoplePersonSessionsGetRequest.mjs +1 -0
  23. package/dist/api/resources/anthropic/client/requests/index.d.mts +4 -0
  24. package/dist/api/resources/anthropic/client/requests/index.d.ts +4 -0
  25. package/dist/api/resources/anthropic/types/GetTeamPeopleApiV1ProvidersAnthropicTeamPeopleGetRequestSort.d.mts +1 -0
  26. package/dist/api/resources/anthropic/types/GetTeamPeopleApiV1ProvidersAnthropicTeamPeopleGetRequestSort.d.ts +1 -0
  27. package/dist/api/resources/anthropic/types/GetTeamPeopleApiV1ProvidersAnthropicTeamPeopleGetRequestSort.js +1 -0
  28. package/dist/api/resources/anthropic/types/GetTeamPeopleApiV1ProvidersAnthropicTeamPeopleGetRequestSort.mjs +1 -0
  29. package/dist/api/types/AiPersonData.d.mts +29 -0
  30. package/dist/api/types/AiPersonData.d.ts +29 -0
  31. package/dist/api/types/AiPersonData.js +35 -0
  32. package/dist/api/types/AiPersonData.mjs +11 -0
  33. package/dist/api/types/AiPersonRecommendation.d.mts +19 -0
  34. package/dist/api/types/AiPersonRecommendation.d.ts +19 -0
  35. package/dist/api/types/AiPersonRecommendation.js +36 -0
  36. package/dist/api/types/AiPersonRecommendation.mjs +12 -0
  37. package/dist/api/types/AiPersonResponse.d.mts +6 -0
  38. package/dist/api/types/AiPersonResponse.d.ts +6 -0
  39. package/dist/api/types/AiPersonResponse.js +17 -0
  40. package/dist/api/types/AiPersonResponse.mjs +1 -0
  41. package/dist/api/types/AiPersonWeek.d.mts +6 -0
  42. package/dist/api/types/AiPersonWeek.d.ts +6 -0
  43. package/dist/api/types/AiPersonWeek.js +17 -0
  44. package/dist/api/types/AiPersonWeek.mjs +1 -0
  45. package/dist/api/types/AiSession.d.mts +15 -0
  46. package/dist/api/types/AiSession.d.ts +15 -0
  47. package/dist/api/types/AiSession.js +17 -0
  48. package/dist/api/types/AiSession.mjs +1 -0
  49. package/dist/api/types/AiSessionsData.d.mts +5 -0
  50. package/dist/api/types/AiSessionsData.d.ts +5 -0
  51. package/dist/api/types/AiSessionsData.js +17 -0
  52. package/dist/api/types/AiSessionsData.mjs +1 -0
  53. package/dist/api/types/AiSessionsResponse.d.mts +6 -0
  54. package/dist/api/types/AiSessionsResponse.d.ts +6 -0
  55. package/dist/api/types/AiSessionsResponse.js +17 -0
  56. package/dist/api/types/AiSessionsResponse.mjs +1 -0
  57. package/dist/api/types/AnthropicDeveloper.d.mts +28 -0
  58. package/dist/api/types/AnthropicDeveloper.d.ts +28 -0
  59. package/dist/api/types/AnthropicDeveloper.js +17 -0
  60. package/dist/api/types/AnthropicDeveloper.mjs +1 -0
  61. package/dist/api/types/AnthropicDeveloperGroup.d.mts +6 -0
  62. package/dist/api/types/AnthropicDeveloperGroup.d.ts +6 -0
  63. package/dist/api/types/AnthropicDeveloperGroup.js +17 -0
  64. package/dist/api/types/AnthropicDeveloperGroup.mjs +1 -0
  65. package/dist/api/types/AnthropicDeveloperSummary.d.mts +9 -0
  66. package/dist/api/types/AnthropicDeveloperSummary.d.ts +9 -0
  67. package/dist/api/types/AnthropicDeveloperSummary.js +17 -0
  68. package/dist/api/types/AnthropicDeveloperSummary.mjs +1 -0
  69. package/dist/api/types/AnthropicDevelopersData.d.mts +8 -0
  70. package/dist/api/types/AnthropicDevelopersData.d.ts +8 -0
  71. package/dist/api/types/AnthropicDevelopersData.js +17 -0
  72. package/dist/api/types/AnthropicDevelopersData.mjs +1 -0
  73. package/dist/api/types/AnthropicDevelopersResponse.d.mts +6 -0
  74. package/dist/api/types/AnthropicDevelopersResponse.d.ts +6 -0
  75. package/dist/api/types/AnthropicDevelopersResponse.js +17 -0
  76. package/dist/api/types/AnthropicDevelopersResponse.mjs +1 -0
  77. package/dist/api/types/BodyPutTeamAreasApiV1ProvidersAnthropicTeamAreasPut.d.mts +4 -0
  78. package/dist/api/types/BodyPutTeamAreasApiV1ProvidersAnthropicTeamAreasPut.d.ts +4 -0
  79. package/dist/api/types/BodyPutTeamAreasApiV1ProvidersAnthropicTeamAreasPut.js +17 -0
  80. package/dist/api/types/BodyPutTeamAreasApiV1ProvidersAnthropicTeamAreasPut.mjs +1 -0
  81. package/dist/api/types/ClaudeTeamArea.d.mts +20 -0
  82. package/dist/api/types/ClaudeTeamArea.d.ts +20 -0
  83. package/dist/api/types/ClaudeTeamArea.js +17 -0
  84. package/dist/api/types/ClaudeTeamArea.mjs +1 -0
  85. package/dist/api/types/ClaudeTeamAreaFigures.d.mts +18 -0
  86. package/dist/api/types/ClaudeTeamAreaFigures.d.ts +18 -0
  87. package/dist/api/types/ClaudeTeamAreaFigures.js +17 -0
  88. package/dist/api/types/ClaudeTeamAreaFigures.mjs +1 -0
  89. package/dist/api/types/ClaudeTeamAreaPreview.d.mts +6 -0
  90. package/dist/api/types/ClaudeTeamAreaPreview.d.ts +6 -0
  91. package/dist/api/types/ClaudeTeamAreaPreview.js +17 -0
  92. package/dist/api/types/ClaudeTeamAreaPreview.mjs +1 -0
  93. package/dist/api/types/ClaudeTeamAreasData.d.mts +7 -0
  94. package/dist/api/types/ClaudeTeamAreasData.d.ts +7 -0
  95. package/dist/api/types/ClaudeTeamAreasData.js +17 -0
  96. package/dist/api/types/ClaudeTeamAreasData.mjs +1 -0
  97. package/dist/api/types/ClaudeTeamAreasPreviewData.d.mts +13 -0
  98. package/dist/api/types/ClaudeTeamAreasPreviewData.d.ts +13 -0
  99. package/dist/api/types/ClaudeTeamAreasPreviewData.js +17 -0
  100. package/dist/api/types/ClaudeTeamAreasPreviewData.mjs +1 -0
  101. package/dist/api/types/ClaudeTeamAreasPreviewResponse.d.mts +6 -0
  102. package/dist/api/types/ClaudeTeamAreasPreviewResponse.d.ts +6 -0
  103. package/dist/api/types/ClaudeTeamAreasPreviewResponse.js +17 -0
  104. package/dist/api/types/ClaudeTeamAreasPreviewResponse.mjs +1 -0
  105. package/dist/api/types/ClaudeTeamAreasResponse.d.mts +6 -0
  106. package/dist/api/types/ClaudeTeamAreasResponse.d.ts +6 -0
  107. package/dist/api/types/ClaudeTeamAreasResponse.js +17 -0
  108. package/dist/api/types/ClaudeTeamAreasResponse.mjs +1 -0
  109. package/dist/api/types/ClaudeTeamAreasSaved.d.mts +7 -0
  110. package/dist/api/types/ClaudeTeamAreasSaved.d.ts +7 -0
  111. package/dist/api/types/ClaudeTeamAreasSaved.js +17 -0
  112. package/dist/api/types/ClaudeTeamAreasSaved.mjs +1 -0
  113. package/dist/api/types/ClaudeTeamAreasSavedResponse.d.mts +6 -0
  114. package/dist/api/types/ClaudeTeamAreasSavedResponse.d.ts +6 -0
  115. package/dist/api/types/ClaudeTeamAreasSavedResponse.js +17 -0
  116. package/dist/api/types/ClaudeTeamAreasSavedResponse.mjs +1 -0
  117. package/dist/api/types/ClaudeTeamDowngradeRule.d.mts +2 -0
  118. package/dist/api/types/ClaudeTeamDowngradeRule.d.ts +2 -0
  119. package/dist/api/types/ClaudeTeamRemoveRule.d.mts +2 -0
  120. package/dist/api/types/ClaudeTeamRemoveRule.d.ts +2 -0
  121. package/dist/api/types/ClaudeTeamUpgradeRule.d.mts +2 -0
  122. package/dist/api/types/ClaudeTeamUpgradeRule.d.ts +2 -0
  123. package/dist/api/types/ResourceEfficiency.d.mts +1 -1
  124. package/dist/api/types/ResourceEfficiency.d.ts +1 -1
  125. package/dist/api/types/RosterAsked.d.mts +21 -0
  126. package/dist/api/types/RosterAsked.d.ts +21 -0
  127. package/dist/api/types/RosterAsked.js +35 -0
  128. package/dist/api/types/RosterAsked.mjs +11 -0
  129. package/dist/api/types/SessionsAsked.d.mts +4 -0
  130. package/dist/api/types/SessionsAsked.d.ts +4 -0
  131. package/dist/api/types/SessionsAsked.js +17 -0
  132. package/dist/api/types/SessionsAsked.mjs +1 -0
  133. package/dist/api/types/index.d.mts +24 -0
  134. package/dist/api/types/index.d.ts +24 -0
  135. package/dist/api/types/index.js +48 -0
  136. package/dist/api/types/index.mjs +24 -0
  137. package/dist/core/exports.d.mts +1 -0
  138. package/dist/core/exports.d.ts +1 -0
  139. package/dist/core/exports.js +2 -0
  140. package/dist/core/exports.mjs +1 -0
  141. package/dist/core/file/exports.d.mts +1 -0
  142. package/dist/core/file/exports.d.ts +1 -0
  143. package/dist/core/file/exports.js +17 -0
  144. package/dist/core/file/exports.mjs +1 -0
  145. package/dist/core/file/file.d.mts +10 -0
  146. package/dist/core/file/file.d.ts +10 -0
  147. package/dist/core/file/file.js +199 -0
  148. package/dist/core/file/file.mjs +164 -0
  149. package/dist/core/file/index.d.mts +2 -0
  150. package/dist/core/file/index.d.ts +2 -0
  151. package/dist/core/file/index.js +25 -0
  152. package/dist/core/file/index.mjs +3 -0
  153. package/dist/core/file/types.d.mts +66 -0
  154. package/dist/core/file/types.d.ts +66 -0
  155. package/dist/core/file/types.js +17 -0
  156. package/dist/core/file/types.mjs +1 -0
  157. package/dist/core/form-data-utils/FormDataWrapper.d.mts +15 -0
  158. package/dist/core/form-data-utils/FormDataWrapper.d.ts +15 -0
  159. package/dist/core/form-data-utils/FormDataWrapper.js +143 -0
  160. package/dist/core/form-data-utils/FormDataWrapper.mjs +108 -0
  161. package/dist/core/form-data-utils/encodeAsFormParameter.d.mts +1 -0
  162. package/dist/core/form-data-utils/encodeAsFormParameter.d.ts +1 -0
  163. package/dist/core/form-data-utils/encodeAsFormParameter.js +37 -0
  164. package/dist/core/form-data-utils/encodeAsFormParameter.mjs +13 -0
  165. package/dist/core/form-data-utils/index.d.mts +2 -0
  166. package/dist/core/form-data-utils/index.d.ts +2 -0
  167. package/dist/core/form-data-utils/index.js +32 -0
  168. package/dist/core/form-data-utils/index.mjs +6 -0
  169. package/dist/core/index.d.mts +2 -0
  170. package/dist/core/index.d.ts +2 -0
  171. package/dist/core/index.js +5 -0
  172. package/dist/core/index.mjs +3 -0
  173. package/dist/version.d.mts +1 -1
  174. package/dist/version.d.ts +1 -1
  175. package/dist/version.js +1 -1
  176. package/dist/version.mjs +1 -1
  177. package/package.json +1 -1
@@ -255,6 +255,77 @@ export declare class AnthropicClient {
255
255
  */
256
256
  getUsageAdoption(request: LevelFour.GetUsageAdoptionApiV1ProvidersAnthropicUsageAdoptionGetRequest, requestOptions?: AnthropicClient.RequestOptions): core.HttpResponsePromise<LevelFour.AnthropicAdoptionResponse>;
257
257
  private __getUsageAdoption;
258
+ /**
259
+ * One row per person usage or activity was reported for in the range, however many products they report through: the largest usage value first, then the most requests, then the name. summary covers the whole range whatever search, group and page narrow the rows to, and its group keys, with anonymous for installs that reported neither an email nor an account, are what group takes. first_seen and last_seen are the first and last day anything was reported for the person, inside the range or not. format=csv answers every row search and group keep, as a spreadsheet. The answer names people, so it is sent with Cache-Control: no-store.
260
+ *
261
+ * @param {LevelFour.GetUsagePeopleApiV1ProvidersAnthropicUsagePeopleGetRequest} request
262
+ * @param {AnthropicClient.RequestOptions} requestOptions - Request-specific configuration.
263
+ *
264
+ * @throws {@link LevelFour.BadRequestError}
265
+ * @throws {@link LevelFour.UnauthorizedError}
266
+ * @throws {@link LevelFour.ForbiddenError}
267
+ * @throws {@link LevelFour.NotFoundError}
268
+ * @throws {@link LevelFour.ConflictError}
269
+ * @throws {@link LevelFour.UnprocessableEntityError}
270
+ * @throws {@link LevelFour.TooManyRequestsError}
271
+ * @throws {@link LevelFour.InternalServerError}
272
+ *
273
+ * @example
274
+ * await client.anthropic.getUsagePeople({
275
+ * asked: {},
276
+ * start: "start",
277
+ * end: "end"
278
+ * })
279
+ */
280
+ getUsagePeople(request: LevelFour.GetUsagePeopleApiV1ProvidersAnthropicUsagePeopleGetRequest, requestOptions?: AnthropicClient.RequestOptions): core.HttpResponsePromise<LevelFour.AnthropicDevelopersResponse>;
281
+ private __getUsagePeople;
282
+ /**
283
+ * Usage is what Claude Code and Cowork reported about themselves, valued at API list price. It is not what the organization is billed, and it includes the current day. The last twelve weeks of tokens by product, and the person's tokens in 7 and 30 days, usage value, last use and idle weeks. A Claude Team plan adds the person's seat and its price, their area, extra usage and the seat change their use calls for, as /team/people reads them. 404 person_not_found for someone the tenant never heard of. The answer names a person, so it is sent with Cache-Control: no-store.
284
+ *
285
+ * @param {LevelFour.GetUsagePersonApiV1ProvidersAnthropicUsagePeoplePersonGetRequest} request
286
+ * @param {AnthropicClient.RequestOptions} requestOptions - Request-specific configuration.
287
+ *
288
+ * @throws {@link LevelFour.BadRequestError}
289
+ * @throws {@link LevelFour.UnauthorizedError}
290
+ * @throws {@link LevelFour.ForbiddenError}
291
+ * @throws {@link LevelFour.NotFoundError}
292
+ * @throws {@link LevelFour.ConflictError}
293
+ * @throws {@link LevelFour.UnprocessableEntityError}
294
+ * @throws {@link LevelFour.TooManyRequestsError}
295
+ * @throws {@link LevelFour.InternalServerError}
296
+ *
297
+ * @example
298
+ * await client.anthropic.getUsagePerson({
299
+ * person: "person"
300
+ * })
301
+ */
302
+ getUsagePerson(request: LevelFour.GetUsagePersonApiV1ProvidersAnthropicUsagePeoplePersonGetRequest, requestOptions?: AnthropicClient.RequestOptions): core.HttpResponsePromise<LevelFour.AiPersonResponse>;
303
+ private __getUsagePerson;
304
+ /**
305
+ * Each session or conversation the person's tool named in the range, the latest first: when it started, its product, model and repository, its requests, tokens and usage value, and how long it ran from the first request to the last. What was said in it is never kept. Empty until the tool reports sessions. The answer names a person, so it is sent with Cache-Control: no-store.
306
+ *
307
+ * @param {LevelFour.GetUsagePersonSessionsApiV1ProvidersAnthropicUsagePeoplePersonSessionsGetRequest} request
308
+ * @param {AnthropicClient.RequestOptions} requestOptions - Request-specific configuration.
309
+ *
310
+ * @throws {@link LevelFour.BadRequestError}
311
+ * @throws {@link LevelFour.UnauthorizedError}
312
+ * @throws {@link LevelFour.ForbiddenError}
313
+ * @throws {@link LevelFour.NotFoundError}
314
+ * @throws {@link LevelFour.ConflictError}
315
+ * @throws {@link LevelFour.UnprocessableEntityError}
316
+ * @throws {@link LevelFour.TooManyRequestsError}
317
+ * @throws {@link LevelFour.InternalServerError}
318
+ *
319
+ * @example
320
+ * await client.anthropic.getUsagePersonSessions({
321
+ * person: "person",
322
+ * asked: {},
323
+ * start: "start",
324
+ * end: "end"
325
+ * })
326
+ */
327
+ getUsagePersonSessions(request: LevelFour.GetUsagePersonSessionsApiV1ProvidersAnthropicUsagePeoplePersonSessionsGetRequest, requestOptions?: AnthropicClient.RequestOptions): core.HttpResponsePromise<LevelFour.AiSessionsResponse>;
328
+ private __getUsagePersonSessions;
258
329
  /**
259
330
  * What a Claude Team plan cost in the range, seats and extra usage apart, from the Members lists and spend reports uploaded for it, and how that moved against the range of the same length before. seats is the latest Members list. savings_found adds up what the seat changes /team/people recommends save a month. monthly is the last six months through the end of the range. Before the first upload, has_members and has_spend are false and every figure is zero.
260
331
  *
@@ -317,4 +388,46 @@ export declare class AnthropicClient {
317
388
  */
318
389
  getTeamSettings(requestOptions?: AnthropicClient.RequestOptions): core.HttpResponsePromise<LevelFour.ClaudeTeamSettingsResponse>;
319
390
  private __getTeamSettings;
391
+ /**
392
+ * One row per area of the spreadsheet uploaded with PUT /team/areas, and one with area null for the people it leaves out: seats, Premium seats, active seats and adoption, what the seats cost a month, extra usage in 30 days, their total, extra usage per active seat, usage value, and Claude Code's pull requests and commits. has_areas is false before the first spreadsheet.
393
+ *
394
+ * @param {AnthropicClient.RequestOptions} requestOptions - Request-specific configuration.
395
+ *
396
+ * @throws {@link LevelFour.BadRequestError}
397
+ * @throws {@link LevelFour.UnauthorizedError}
398
+ * @throws {@link LevelFour.ForbiddenError}
399
+ * @throws {@link LevelFour.NotFoundError}
400
+ * @throws {@link LevelFour.ConflictError}
401
+ * @throws {@link LevelFour.UnprocessableEntityError}
402
+ * @throws {@link LevelFour.TooManyRequestsError}
403
+ * @throws {@link LevelFour.InternalServerError}
404
+ *
405
+ * @example
406
+ * await client.anthropic.getTeamAreas()
407
+ */
408
+ getTeamAreas(requestOptions?: AnthropicClient.RequestOptions): core.HttpResponsePromise<LevelFour.ClaudeTeamAreasResponse>;
409
+ private __getTeamAreas;
410
+ /**
411
+ * Reads a CSV of email and area (at most 1 MB; the area column may be called area, team, department or cost center) and says who it names that the tenant knows, who it names that nobody reported, how many people it leaves without an area and what they cost a month, and each area's people and cost. Nothing is kept. The answer names people, so it is sent with Cache-Control: no-store.
412
+ *
413
+ * @param {LevelFour.BodyPreviewTeamAreasApiV1ProvidersAnthropicTeamAreasPreviewPost} request
414
+ * @param {AnthropicClient.RequestOptions} requestOptions - Request-specific configuration.
415
+ *
416
+ * @throws {@link LevelFour.BadRequestError}
417
+ * @throws {@link LevelFour.UnauthorizedError}
418
+ * @throws {@link LevelFour.ForbiddenError}
419
+ * @throws {@link LevelFour.NotFoundError}
420
+ * @throws {@link LevelFour.ConflictError}
421
+ * @throws {@link LevelFour.UnprocessableEntityError}
422
+ * @throws {@link LevelFour.TooManyRequestsError}
423
+ * @throws {@link LevelFour.InternalServerError}
424
+ *
425
+ * @example
426
+ * import { createReadStream } from "fs";
427
+ * await client.anthropic.previewTeamAreas({
428
+ * file: fs.createReadStream("/path/to/your/file")
429
+ * })
430
+ */
431
+ previewTeamAreas(request: LevelFour.BodyPreviewTeamAreasApiV1ProvidersAnthropicTeamAreasPreviewPost, requestOptions?: AnthropicClient.RequestOptions): core.HttpResponsePromise<LevelFour.ClaudeTeamAreasPreviewResponse>;
432
+ private __previewTeamAreas;
320
433
  }
@@ -255,6 +255,77 @@ export declare class AnthropicClient {
255
255
  */
256
256
  getUsageAdoption(request: LevelFour.GetUsageAdoptionApiV1ProvidersAnthropicUsageAdoptionGetRequest, requestOptions?: AnthropicClient.RequestOptions): core.HttpResponsePromise<LevelFour.AnthropicAdoptionResponse>;
257
257
  private __getUsageAdoption;
258
+ /**
259
+ * One row per person usage or activity was reported for in the range, however many products they report through: the largest usage value first, then the most requests, then the name. summary covers the whole range whatever search, group and page narrow the rows to, and its group keys, with anonymous for installs that reported neither an email nor an account, are what group takes. first_seen and last_seen are the first and last day anything was reported for the person, inside the range or not. format=csv answers every row search and group keep, as a spreadsheet. The answer names people, so it is sent with Cache-Control: no-store.
260
+ *
261
+ * @param {LevelFour.GetUsagePeopleApiV1ProvidersAnthropicUsagePeopleGetRequest} request
262
+ * @param {AnthropicClient.RequestOptions} requestOptions - Request-specific configuration.
263
+ *
264
+ * @throws {@link LevelFour.BadRequestError}
265
+ * @throws {@link LevelFour.UnauthorizedError}
266
+ * @throws {@link LevelFour.ForbiddenError}
267
+ * @throws {@link LevelFour.NotFoundError}
268
+ * @throws {@link LevelFour.ConflictError}
269
+ * @throws {@link LevelFour.UnprocessableEntityError}
270
+ * @throws {@link LevelFour.TooManyRequestsError}
271
+ * @throws {@link LevelFour.InternalServerError}
272
+ *
273
+ * @example
274
+ * await client.anthropic.getUsagePeople({
275
+ * asked: {},
276
+ * start: "start",
277
+ * end: "end"
278
+ * })
279
+ */
280
+ getUsagePeople(request: LevelFour.GetUsagePeopleApiV1ProvidersAnthropicUsagePeopleGetRequest, requestOptions?: AnthropicClient.RequestOptions): core.HttpResponsePromise<LevelFour.AnthropicDevelopersResponse>;
281
+ private __getUsagePeople;
282
+ /**
283
+ * Usage is what Claude Code and Cowork reported about themselves, valued at API list price. It is not what the organization is billed, and it includes the current day. The last twelve weeks of tokens by product, and the person's tokens in 7 and 30 days, usage value, last use and idle weeks. A Claude Team plan adds the person's seat and its price, their area, extra usage and the seat change their use calls for, as /team/people reads them. 404 person_not_found for someone the tenant never heard of. The answer names a person, so it is sent with Cache-Control: no-store.
284
+ *
285
+ * @param {LevelFour.GetUsagePersonApiV1ProvidersAnthropicUsagePeoplePersonGetRequest} request
286
+ * @param {AnthropicClient.RequestOptions} requestOptions - Request-specific configuration.
287
+ *
288
+ * @throws {@link LevelFour.BadRequestError}
289
+ * @throws {@link LevelFour.UnauthorizedError}
290
+ * @throws {@link LevelFour.ForbiddenError}
291
+ * @throws {@link LevelFour.NotFoundError}
292
+ * @throws {@link LevelFour.ConflictError}
293
+ * @throws {@link LevelFour.UnprocessableEntityError}
294
+ * @throws {@link LevelFour.TooManyRequestsError}
295
+ * @throws {@link LevelFour.InternalServerError}
296
+ *
297
+ * @example
298
+ * await client.anthropic.getUsagePerson({
299
+ * person: "person"
300
+ * })
301
+ */
302
+ getUsagePerson(request: LevelFour.GetUsagePersonApiV1ProvidersAnthropicUsagePeoplePersonGetRequest, requestOptions?: AnthropicClient.RequestOptions): core.HttpResponsePromise<LevelFour.AiPersonResponse>;
303
+ private __getUsagePerson;
304
+ /**
305
+ * Each session or conversation the person's tool named in the range, the latest first: when it started, its product, model and repository, its requests, tokens and usage value, and how long it ran from the first request to the last. What was said in it is never kept. Empty until the tool reports sessions. The answer names a person, so it is sent with Cache-Control: no-store.
306
+ *
307
+ * @param {LevelFour.GetUsagePersonSessionsApiV1ProvidersAnthropicUsagePeoplePersonSessionsGetRequest} request
308
+ * @param {AnthropicClient.RequestOptions} requestOptions - Request-specific configuration.
309
+ *
310
+ * @throws {@link LevelFour.BadRequestError}
311
+ * @throws {@link LevelFour.UnauthorizedError}
312
+ * @throws {@link LevelFour.ForbiddenError}
313
+ * @throws {@link LevelFour.NotFoundError}
314
+ * @throws {@link LevelFour.ConflictError}
315
+ * @throws {@link LevelFour.UnprocessableEntityError}
316
+ * @throws {@link LevelFour.TooManyRequestsError}
317
+ * @throws {@link LevelFour.InternalServerError}
318
+ *
319
+ * @example
320
+ * await client.anthropic.getUsagePersonSessions({
321
+ * person: "person",
322
+ * asked: {},
323
+ * start: "start",
324
+ * end: "end"
325
+ * })
326
+ */
327
+ getUsagePersonSessions(request: LevelFour.GetUsagePersonSessionsApiV1ProvidersAnthropicUsagePeoplePersonSessionsGetRequest, requestOptions?: AnthropicClient.RequestOptions): core.HttpResponsePromise<LevelFour.AiSessionsResponse>;
328
+ private __getUsagePersonSessions;
258
329
  /**
259
330
  * What a Claude Team plan cost in the range, seats and extra usage apart, from the Members lists and spend reports uploaded for it, and how that moved against the range of the same length before. seats is the latest Members list. savings_found adds up what the seat changes /team/people recommends save a month. monthly is the last six months through the end of the range. Before the first upload, has_members and has_spend are false and every figure is zero.
260
331
  *
@@ -317,4 +388,46 @@ export declare class AnthropicClient {
317
388
  */
318
389
  getTeamSettings(requestOptions?: AnthropicClient.RequestOptions): core.HttpResponsePromise<LevelFour.ClaudeTeamSettingsResponse>;
319
390
  private __getTeamSettings;
391
+ /**
392
+ * One row per area of the spreadsheet uploaded with PUT /team/areas, and one with area null for the people it leaves out: seats, Premium seats, active seats and adoption, what the seats cost a month, extra usage in 30 days, their total, extra usage per active seat, usage value, and Claude Code's pull requests and commits. has_areas is false before the first spreadsheet.
393
+ *
394
+ * @param {AnthropicClient.RequestOptions} requestOptions - Request-specific configuration.
395
+ *
396
+ * @throws {@link LevelFour.BadRequestError}
397
+ * @throws {@link LevelFour.UnauthorizedError}
398
+ * @throws {@link LevelFour.ForbiddenError}
399
+ * @throws {@link LevelFour.NotFoundError}
400
+ * @throws {@link LevelFour.ConflictError}
401
+ * @throws {@link LevelFour.UnprocessableEntityError}
402
+ * @throws {@link LevelFour.TooManyRequestsError}
403
+ * @throws {@link LevelFour.InternalServerError}
404
+ *
405
+ * @example
406
+ * await client.anthropic.getTeamAreas()
407
+ */
408
+ getTeamAreas(requestOptions?: AnthropicClient.RequestOptions): core.HttpResponsePromise<LevelFour.ClaudeTeamAreasResponse>;
409
+ private __getTeamAreas;
410
+ /**
411
+ * Reads a CSV of email and area (at most 1 MB; the area column may be called area, team, department or cost center) and says who it names that the tenant knows, who it names that nobody reported, how many people it leaves without an area and what they cost a month, and each area's people and cost. Nothing is kept. The answer names people, so it is sent with Cache-Control: no-store.
412
+ *
413
+ * @param {LevelFour.BodyPreviewTeamAreasApiV1ProvidersAnthropicTeamAreasPreviewPost} request
414
+ * @param {AnthropicClient.RequestOptions} requestOptions - Request-specific configuration.
415
+ *
416
+ * @throws {@link LevelFour.BadRequestError}
417
+ * @throws {@link LevelFour.UnauthorizedError}
418
+ * @throws {@link LevelFour.ForbiddenError}
419
+ * @throws {@link LevelFour.NotFoundError}
420
+ * @throws {@link LevelFour.ConflictError}
421
+ * @throws {@link LevelFour.UnprocessableEntityError}
422
+ * @throws {@link LevelFour.TooManyRequestsError}
423
+ * @throws {@link LevelFour.InternalServerError}
424
+ *
425
+ * @example
426
+ * import { createReadStream } from "fs";
427
+ * await client.anthropic.previewTeamAreas({
428
+ * file: fs.createReadStream("/path/to/your/file")
429
+ * })
430
+ */
431
+ previewTeamAreas(request: LevelFour.BodyPreviewTeamAreasApiV1ProvidersAnthropicTeamAreasPreviewPost, requestOptions?: AnthropicClient.RequestOptions): core.HttpResponsePromise<LevelFour.ClaudeTeamAreasPreviewResponse>;
432
+ private __previewTeamAreas;
320
433
  }