levelfour 1.4.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.
- package/dist/api/resources/anthropic/client/Client.d.mts +175 -0
- package/dist/api/resources/anthropic/client/Client.d.ts +175 -0
- package/dist/api/resources/anthropic/client/Client.js +878 -0
- package/dist/api/resources/anthropic/client/Client.mjs +879 -1
- package/dist/api/resources/anthropic/client/requests/BodyPreviewTeamAreasApiV1ProvidersAnthropicTeamAreasPreviewPost.d.mts +11 -0
- package/dist/api/resources/anthropic/client/requests/BodyPreviewTeamAreasApiV1ProvidersAnthropicTeamAreasPreviewPost.d.ts +11 -0
- package/dist/api/resources/anthropic/client/requests/BodyPreviewTeamAreasApiV1ProvidersAnthropicTeamAreasPreviewPost.js +17 -0
- package/dist/api/resources/anthropic/client/requests/BodyPreviewTeamAreasApiV1ProvidersAnthropicTeamAreasPreviewPost.mjs +1 -0
- package/dist/api/resources/anthropic/client/requests/GetTeamPeopleApiV1ProvidersAnthropicTeamPeopleGetRequest.d.mts +21 -0
- package/dist/api/resources/anthropic/client/requests/GetTeamPeopleApiV1ProvidersAnthropicTeamPeopleGetRequest.d.ts +21 -0
- package/dist/api/resources/anthropic/client/requests/GetTeamPeopleApiV1ProvidersAnthropicTeamPeopleGetRequest.js +17 -0
- package/dist/api/resources/anthropic/client/requests/GetTeamPeopleApiV1ProvidersAnthropicTeamPeopleGetRequest.mjs +1 -0
- package/dist/api/resources/anthropic/client/requests/GetTeamSummaryApiV1ProvidersAnthropicTeamSummaryGetRequest.d.mts +13 -0
- package/dist/api/resources/anthropic/client/requests/GetTeamSummaryApiV1ProvidersAnthropicTeamSummaryGetRequest.d.ts +13 -0
- package/dist/api/resources/anthropic/client/requests/GetTeamSummaryApiV1ProvidersAnthropicTeamSummaryGetRequest.js +17 -0
- package/dist/api/resources/anthropic/client/requests/GetTeamSummaryApiV1ProvidersAnthropicTeamSummaryGetRequest.mjs +1 -0
- package/dist/api/resources/anthropic/client/requests/GetUsagePeopleApiV1ProvidersAnthropicUsagePeopleGetRequest.d.mts +16 -0
- package/dist/api/resources/anthropic/client/requests/GetUsagePeopleApiV1ProvidersAnthropicUsagePeopleGetRequest.d.ts +16 -0
- package/dist/api/resources/anthropic/client/requests/GetUsagePeopleApiV1ProvidersAnthropicUsagePeopleGetRequest.js +17 -0
- package/dist/api/resources/anthropic/client/requests/GetUsagePeopleApiV1ProvidersAnthropicUsagePeopleGetRequest.mjs +1 -0
- package/dist/api/resources/anthropic/client/requests/GetUsagePersonApiV1ProvidersAnthropicUsagePeoplePersonGetRequest.d.mts +9 -0
- package/dist/api/resources/anthropic/client/requests/GetUsagePersonApiV1ProvidersAnthropicUsagePeoplePersonGetRequest.d.ts +9 -0
- package/dist/api/resources/anthropic/client/requests/GetUsagePersonApiV1ProvidersAnthropicUsagePeoplePersonGetRequest.js +17 -0
- package/dist/api/resources/anthropic/client/requests/GetUsagePersonApiV1ProvidersAnthropicUsagePeoplePersonGetRequest.mjs +1 -0
- package/dist/api/resources/anthropic/client/requests/GetUsagePersonSessionsApiV1ProvidersAnthropicUsagePeoplePersonSessionsGetRequest.d.mts +18 -0
- package/dist/api/resources/anthropic/client/requests/GetUsagePersonSessionsApiV1ProvidersAnthropicUsagePeoplePersonSessionsGetRequest.d.ts +18 -0
- package/dist/api/resources/anthropic/client/requests/GetUsagePersonSessionsApiV1ProvidersAnthropicUsagePeoplePersonSessionsGetRequest.js +17 -0
- package/dist/api/resources/anthropic/client/requests/GetUsagePersonSessionsApiV1ProvidersAnthropicUsagePeoplePersonSessionsGetRequest.mjs +1 -0
- package/dist/api/resources/anthropic/client/requests/index.d.mts +6 -0
- package/dist/api/resources/anthropic/client/requests/index.d.ts +6 -0
- package/dist/api/resources/anthropic/types/GetTeamPeopleApiV1ProvidersAnthropicTeamPeopleGetRequestFormat.d.mts +6 -0
- package/dist/api/resources/anthropic/types/GetTeamPeopleApiV1ProvidersAnthropicTeamPeopleGetRequestFormat.d.ts +6 -0
- package/dist/api/resources/anthropic/types/GetTeamPeopleApiV1ProvidersAnthropicTeamPeopleGetRequestFormat.js +32 -0
- package/dist/api/resources/anthropic/types/GetTeamPeopleApiV1ProvidersAnthropicTeamPeopleGetRequestFormat.mjs +8 -0
- package/dist/api/resources/anthropic/types/GetTeamPeopleApiV1ProvidersAnthropicTeamPeopleGetRequestOrder.d.mts +5 -0
- package/dist/api/resources/anthropic/types/GetTeamPeopleApiV1ProvidersAnthropicTeamPeopleGetRequestOrder.d.ts +5 -0
- package/dist/api/resources/anthropic/types/GetTeamPeopleApiV1ProvidersAnthropicTeamPeopleGetRequestOrder.js +32 -0
- package/dist/api/resources/anthropic/types/GetTeamPeopleApiV1ProvidersAnthropicTeamPeopleGetRequestOrder.mjs +8 -0
- package/dist/api/resources/anthropic/types/GetTeamPeopleApiV1ProvidersAnthropicTeamPeopleGetRequestRecommendation.d.mts +6 -0
- package/dist/api/resources/anthropic/types/GetTeamPeopleApiV1ProvidersAnthropicTeamPeopleGetRequestRecommendation.d.ts +6 -0
- package/dist/api/resources/anthropic/types/GetTeamPeopleApiV1ProvidersAnthropicTeamPeopleGetRequestRecommendation.js +33 -0
- package/dist/api/resources/anthropic/types/GetTeamPeopleApiV1ProvidersAnthropicTeamPeopleGetRequestRecommendation.mjs +9 -0
- package/dist/api/resources/anthropic/types/GetTeamPeopleApiV1ProvidersAnthropicTeamPeopleGetRequestSeat.d.mts +5 -0
- package/dist/api/resources/anthropic/types/GetTeamPeopleApiV1ProvidersAnthropicTeamPeopleGetRequestSeat.d.ts +5 -0
- package/dist/api/resources/anthropic/types/GetTeamPeopleApiV1ProvidersAnthropicTeamPeopleGetRequestSeat.js +32 -0
- package/dist/api/resources/anthropic/types/GetTeamPeopleApiV1ProvidersAnthropicTeamPeopleGetRequestSeat.mjs +8 -0
- package/dist/api/resources/anthropic/types/GetTeamPeopleApiV1ProvidersAnthropicTeamPeopleGetRequestSort.d.mts +12 -0
- package/dist/api/resources/anthropic/types/GetTeamPeopleApiV1ProvidersAnthropicTeamPeopleGetRequestSort.d.ts +12 -0
- package/dist/api/resources/anthropic/types/GetTeamPeopleApiV1ProvidersAnthropicTeamPeopleGetRequestSort.js +39 -0
- package/dist/api/resources/anthropic/types/GetTeamPeopleApiV1ProvidersAnthropicTeamPeopleGetRequestSort.mjs +15 -0
- package/dist/api/resources/anthropic/types/index.d.mts +5 -0
- package/dist/api/resources/anthropic/types/index.d.ts +5 -0
- package/dist/api/resources/anthropic/types/index.js +10 -0
- package/dist/api/resources/anthropic/types/index.mjs +5 -0
- package/dist/api/types/AiPersonData.d.mts +29 -0
- package/dist/api/types/AiPersonData.d.ts +29 -0
- package/dist/api/types/AiPersonData.js +35 -0
- package/dist/api/types/AiPersonData.mjs +11 -0
- package/dist/api/types/AiPersonRecommendation.d.mts +19 -0
- package/dist/api/types/AiPersonRecommendation.d.ts +19 -0
- package/dist/api/types/AiPersonRecommendation.js +36 -0
- package/dist/api/types/AiPersonRecommendation.mjs +12 -0
- package/dist/api/types/AiPersonResponse.d.mts +6 -0
- package/dist/api/types/AiPersonResponse.d.ts +6 -0
- package/dist/api/types/AiPersonResponse.js +17 -0
- package/dist/api/types/AiPersonResponse.mjs +1 -0
- package/dist/api/types/AiPersonWeek.d.mts +6 -0
- package/dist/api/types/AiPersonWeek.d.ts +6 -0
- package/dist/api/types/AiPersonWeek.js +17 -0
- package/dist/api/types/AiPersonWeek.mjs +1 -0
- package/dist/api/types/AiSession.d.mts +15 -0
- package/dist/api/types/AiSession.d.ts +15 -0
- package/dist/api/types/AiSession.js +17 -0
- package/dist/api/types/AiSession.mjs +1 -0
- package/dist/api/types/AiSessionsData.d.mts +5 -0
- package/dist/api/types/AiSessionsData.d.ts +5 -0
- package/dist/api/types/AiSessionsData.js +17 -0
- package/dist/api/types/AiSessionsData.mjs +1 -0
- package/dist/api/types/AiSessionsResponse.d.mts +6 -0
- package/dist/api/types/AiSessionsResponse.d.ts +6 -0
- package/dist/api/types/AiSessionsResponse.js +17 -0
- package/dist/api/types/AiSessionsResponse.mjs +1 -0
- package/dist/api/types/AnthropicDeveloper.d.mts +28 -0
- package/dist/api/types/AnthropicDeveloper.d.ts +28 -0
- package/dist/api/types/AnthropicDeveloper.js +17 -0
- package/dist/api/types/AnthropicDeveloper.mjs +1 -0
- package/dist/api/types/AnthropicDeveloperGroup.d.mts +6 -0
- package/dist/api/types/AnthropicDeveloperGroup.d.ts +6 -0
- package/dist/api/types/AnthropicDeveloperGroup.js +17 -0
- package/dist/api/types/AnthropicDeveloperGroup.mjs +1 -0
- package/dist/api/types/AnthropicDeveloperSummary.d.mts +9 -0
- package/dist/api/types/AnthropicDeveloperSummary.d.ts +9 -0
- package/dist/api/types/AnthropicDeveloperSummary.js +17 -0
- package/dist/api/types/AnthropicDeveloperSummary.mjs +1 -0
- package/dist/api/types/AnthropicDevelopersData.d.mts +8 -0
- package/dist/api/types/AnthropicDevelopersData.d.ts +8 -0
- package/dist/api/types/AnthropicDevelopersData.js +17 -0
- package/dist/api/types/AnthropicDevelopersData.mjs +1 -0
- package/dist/api/types/AnthropicDevelopersResponse.d.mts +6 -0
- package/dist/api/types/AnthropicDevelopersResponse.d.ts +6 -0
- package/dist/api/types/AnthropicDevelopersResponse.js +17 -0
- package/dist/api/types/AnthropicDevelopersResponse.mjs +1 -0
- package/dist/api/types/BodyPutTeamAreasApiV1ProvidersAnthropicTeamAreasPut.d.mts +4 -0
- package/dist/api/types/BodyPutTeamAreasApiV1ProvidersAnthropicTeamAreasPut.d.ts +4 -0
- package/dist/api/types/BodyPutTeamAreasApiV1ProvidersAnthropicTeamAreasPut.js +17 -0
- package/dist/api/types/BodyPutTeamAreasApiV1ProvidersAnthropicTeamAreasPut.mjs +1 -0
- package/dist/api/types/ClaudeTeamArea.d.mts +20 -0
- package/dist/api/types/ClaudeTeamArea.d.ts +20 -0
- package/dist/api/types/ClaudeTeamArea.js +17 -0
- package/dist/api/types/ClaudeTeamArea.mjs +1 -0
- package/dist/api/types/ClaudeTeamAreaFigures.d.mts +18 -0
- package/dist/api/types/ClaudeTeamAreaFigures.d.ts +18 -0
- package/dist/api/types/ClaudeTeamAreaFigures.js +17 -0
- package/dist/api/types/ClaudeTeamAreaFigures.mjs +1 -0
- package/dist/api/types/ClaudeTeamAreaPreview.d.mts +6 -0
- package/dist/api/types/ClaudeTeamAreaPreview.d.ts +6 -0
- package/dist/api/types/ClaudeTeamAreaPreview.js +17 -0
- package/dist/api/types/ClaudeTeamAreaPreview.mjs +1 -0
- package/dist/api/types/ClaudeTeamAreasData.d.mts +7 -0
- package/dist/api/types/ClaudeTeamAreasData.d.ts +7 -0
- package/dist/api/types/ClaudeTeamAreasData.js +17 -0
- package/dist/api/types/ClaudeTeamAreasData.mjs +1 -0
- package/dist/api/types/ClaudeTeamAreasPreviewData.d.mts +13 -0
- package/dist/api/types/ClaudeTeamAreasPreviewData.d.ts +13 -0
- package/dist/api/types/ClaudeTeamAreasPreviewData.js +17 -0
- package/dist/api/types/ClaudeTeamAreasPreviewData.mjs +1 -0
- package/dist/api/types/ClaudeTeamAreasPreviewResponse.d.mts +6 -0
- package/dist/api/types/ClaudeTeamAreasPreviewResponse.d.ts +6 -0
- package/dist/api/types/ClaudeTeamAreasPreviewResponse.js +17 -0
- package/dist/api/types/ClaudeTeamAreasPreviewResponse.mjs +1 -0
- package/dist/api/types/ClaudeTeamAreasResponse.d.mts +6 -0
- package/dist/api/types/ClaudeTeamAreasResponse.d.ts +6 -0
- package/dist/api/types/ClaudeTeamAreasResponse.js +17 -0
- package/dist/api/types/ClaudeTeamAreasResponse.mjs +1 -0
- package/dist/api/types/ClaudeTeamAreasSaved.d.mts +7 -0
- package/dist/api/types/ClaudeTeamAreasSaved.d.ts +7 -0
- package/dist/api/types/ClaudeTeamAreasSaved.js +17 -0
- package/dist/api/types/ClaudeTeamAreasSaved.mjs +1 -0
- package/dist/api/types/ClaudeTeamAreasSavedResponse.d.mts +6 -0
- package/dist/api/types/ClaudeTeamAreasSavedResponse.d.ts +6 -0
- package/dist/api/types/ClaudeTeamAreasSavedResponse.js +17 -0
- package/dist/api/types/ClaudeTeamAreasSavedResponse.mjs +1 -0
- package/dist/api/types/ClaudeTeamDowngradeRule.d.mts +9 -0
- package/dist/api/types/ClaudeTeamDowngradeRule.d.ts +9 -0
- package/dist/api/types/ClaudeTeamDowngradeRule.js +17 -0
- package/dist/api/types/ClaudeTeamDowngradeRule.mjs +1 -0
- package/dist/api/types/ClaudeTeamMonth.d.mts +6 -0
- package/dist/api/types/ClaudeTeamMonth.d.ts +6 -0
- package/dist/api/types/ClaudeTeamMonth.js +17 -0
- package/dist/api/types/ClaudeTeamMonth.mjs +1 -0
- package/dist/api/types/ClaudeTeamPeopleData.d.mts +6 -0
- package/dist/api/types/ClaudeTeamPeopleData.d.ts +6 -0
- package/dist/api/types/ClaudeTeamPeopleData.js +17 -0
- package/dist/api/types/ClaudeTeamPeopleData.mjs +1 -0
- package/dist/api/types/ClaudeTeamPeopleResponse.d.mts +6 -0
- package/dist/api/types/ClaudeTeamPeopleResponse.d.ts +6 -0
- package/dist/api/types/ClaudeTeamPeopleResponse.js +17 -0
- package/dist/api/types/ClaudeTeamPeopleResponse.mjs +1 -0
- package/dist/api/types/ClaudeTeamPerson.d.mts +38 -0
- package/dist/api/types/ClaudeTeamPerson.d.ts +38 -0
- package/dist/api/types/ClaudeTeamPerson.js +40 -0
- package/dist/api/types/ClaudeTeamPerson.mjs +16 -0
- package/dist/api/types/ClaudeTeamRemoveRule.d.mts +9 -0
- package/dist/api/types/ClaudeTeamRemoveRule.d.ts +9 -0
- package/dist/api/types/ClaudeTeamRemoveRule.js +17 -0
- package/dist/api/types/ClaudeTeamRemoveRule.mjs +1 -0
- package/dist/api/types/ClaudeTeamRules.d.mts +6 -0
- package/dist/api/types/ClaudeTeamRules.d.ts +6 -0
- package/dist/api/types/ClaudeTeamRules.js +17 -0
- package/dist/api/types/ClaudeTeamRules.mjs +1 -0
- package/dist/api/types/ClaudeTeamSeats.d.mts +5 -0
- package/dist/api/types/ClaudeTeamSeats.d.ts +5 -0
- package/dist/api/types/ClaudeTeamSeats.js +17 -0
- package/dist/api/types/ClaudeTeamSeats.mjs +1 -0
- package/dist/api/types/ClaudeTeamSettingsData.d.mts +18 -0
- package/dist/api/types/ClaudeTeamSettingsData.d.ts +18 -0
- package/dist/api/types/ClaudeTeamSettingsData.js +35 -0
- package/dist/api/types/ClaudeTeamSettingsData.mjs +11 -0
- package/dist/api/types/ClaudeTeamSettingsResponse.d.mts +6 -0
- package/dist/api/types/ClaudeTeamSettingsResponse.d.ts +6 -0
- package/dist/api/types/ClaudeTeamSettingsResponse.js +17 -0
- package/dist/api/types/ClaudeTeamSettingsResponse.mjs +1 -0
- package/dist/api/types/ClaudeTeamSummaryData.d.mts +43 -0
- package/dist/api/types/ClaudeTeamSummaryData.d.ts +43 -0
- package/dist/api/types/ClaudeTeamSummaryData.js +39 -0
- package/dist/api/types/ClaudeTeamSummaryData.mjs +15 -0
- package/dist/api/types/ClaudeTeamSummaryResponse.d.mts +6 -0
- package/dist/api/types/ClaudeTeamSummaryResponse.d.ts +6 -0
- package/dist/api/types/ClaudeTeamSummaryResponse.js +17 -0
- package/dist/api/types/ClaudeTeamSummaryResponse.mjs +1 -0
- package/dist/api/types/ClaudeTeamUpgradeRule.d.mts +9 -0
- package/dist/api/types/ClaudeTeamUpgradeRule.d.ts +9 -0
- package/dist/api/types/ClaudeTeamUpgradeRule.js +17 -0
- package/dist/api/types/ClaudeTeamUpgradeRule.mjs +1 -0
- package/dist/api/types/FlowReconciliation.d.mts +5 -5
- package/dist/api/types/FlowReconciliation.d.ts +5 -5
- package/dist/api/types/NetworkDestinations.d.mts +2 -1
- package/dist/api/types/NetworkDestinations.d.ts +2 -1
- package/dist/api/types/ResourceEfficiency.d.mts +1 -1
- package/dist/api/types/ResourceEfficiency.d.ts +1 -1
- package/dist/api/types/RosterAsked.d.mts +21 -0
- package/dist/api/types/RosterAsked.d.ts +21 -0
- package/dist/api/types/RosterAsked.js +35 -0
- package/dist/api/types/RosterAsked.mjs +11 -0
- package/dist/api/types/SessionsAsked.d.mts +4 -0
- package/dist/api/types/SessionsAsked.d.ts +4 -0
- package/dist/api/types/SessionsAsked.js +17 -0
- package/dist/api/types/SessionsAsked.mjs +1 -0
- package/dist/api/types/StartUploadRequest.d.mts +4 -0
- package/dist/api/types/StartUploadRequest.d.ts +4 -0
- package/dist/api/types/VirtualTagKeyOption.d.mts +2 -0
- package/dist/api/types/VirtualTagKeyOption.d.ts +2 -0
- package/dist/api/types/WorkloadPair.d.mts +5 -8
- package/dist/api/types/WorkloadPair.d.ts +5 -8
- package/dist/api/types/WorkloadPairEnd.d.mts +6 -0
- package/dist/api/types/WorkloadPairEnd.d.ts +6 -0
- package/dist/api/types/WorkloadPairEnd.js +17 -0
- package/dist/api/types/WorkloadPairEnd.mjs +1 -0
- package/dist/api/types/ZonePair.d.mts +1 -1
- package/dist/api/types/ZonePair.d.ts +1 -1
- package/dist/api/types/index.d.mts +38 -0
- package/dist/api/types/index.d.ts +38 -0
- package/dist/api/types/index.js +76 -0
- package/dist/api/types/index.mjs +38 -0
- package/dist/core/exports.d.mts +1 -0
- package/dist/core/exports.d.ts +1 -0
- package/dist/core/exports.js +2 -0
- package/dist/core/exports.mjs +1 -0
- package/dist/core/file/exports.d.mts +1 -0
- package/dist/core/file/exports.d.ts +1 -0
- package/dist/core/file/exports.js +17 -0
- package/dist/core/file/exports.mjs +1 -0
- package/dist/core/file/file.d.mts +10 -0
- package/dist/core/file/file.d.ts +10 -0
- package/dist/core/file/file.js +199 -0
- package/dist/core/file/file.mjs +164 -0
- package/dist/core/file/index.d.mts +2 -0
- package/dist/core/file/index.d.ts +2 -0
- package/dist/core/file/index.js +25 -0
- package/dist/core/file/index.mjs +3 -0
- package/dist/core/file/types.d.mts +66 -0
- package/dist/core/file/types.d.ts +66 -0
- package/dist/core/file/types.js +17 -0
- package/dist/core/file/types.mjs +1 -0
- package/dist/core/form-data-utils/FormDataWrapper.d.mts +15 -0
- package/dist/core/form-data-utils/FormDataWrapper.d.ts +15 -0
- package/dist/core/form-data-utils/FormDataWrapper.js +143 -0
- package/dist/core/form-data-utils/FormDataWrapper.mjs +108 -0
- package/dist/core/form-data-utils/encodeAsFormParameter.d.mts +1 -0
- package/dist/core/form-data-utils/encodeAsFormParameter.d.ts +1 -0
- package/dist/core/form-data-utils/encodeAsFormParameter.js +37 -0
- package/dist/core/form-data-utils/encodeAsFormParameter.mjs +13 -0
- package/dist/core/form-data-utils/index.d.mts +2 -0
- package/dist/core/form-data-utils/index.d.ts +2 -0
- package/dist/core/form-data-utils/index.js +32 -0
- package/dist/core/form-data-utils/index.mjs +6 -0
- package/dist/core/index.d.mts +2 -0
- package/dist/core/index.d.ts +2 -0
- package/dist/core/index.js +5 -0
- package/dist/core/index.mjs +3 -0
- package/dist/version.d.mts +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/version.mjs +1 -1
- package/package.json +1 -1
|
@@ -1253,6 +1253,884 @@ class AnthropicClient {
|
|
|
1253
1253
|
"/api/v1/providers/anthropic/usage/adoption"
|
|
1254
1254
|
);
|
|
1255
1255
|
}
|
|
1256
|
+
/**
|
|
1257
|
+
* 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.
|
|
1258
|
+
*
|
|
1259
|
+
* @param {LevelFour.GetUsagePeopleApiV1ProvidersAnthropicUsagePeopleGetRequest} request
|
|
1260
|
+
* @param {AnthropicClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1261
|
+
*
|
|
1262
|
+
* @throws {@link LevelFour.BadRequestError}
|
|
1263
|
+
* @throws {@link LevelFour.UnauthorizedError}
|
|
1264
|
+
* @throws {@link LevelFour.ForbiddenError}
|
|
1265
|
+
* @throws {@link LevelFour.NotFoundError}
|
|
1266
|
+
* @throws {@link LevelFour.ConflictError}
|
|
1267
|
+
* @throws {@link LevelFour.UnprocessableEntityError}
|
|
1268
|
+
* @throws {@link LevelFour.TooManyRequestsError}
|
|
1269
|
+
* @throws {@link LevelFour.InternalServerError}
|
|
1270
|
+
*
|
|
1271
|
+
* @example
|
|
1272
|
+
* await client.anthropic.getUsagePeople({
|
|
1273
|
+
* asked: {},
|
|
1274
|
+
* start: "start",
|
|
1275
|
+
* end: "end"
|
|
1276
|
+
* })
|
|
1277
|
+
*/
|
|
1278
|
+
getUsagePeople(request, requestOptions) {
|
|
1279
|
+
return core.HttpResponsePromise.fromPromise(this.__getUsagePeople(request, requestOptions));
|
|
1280
|
+
}
|
|
1281
|
+
async __getUsagePeople(request, requestOptions) {
|
|
1282
|
+
const { asked, start, end } = request;
|
|
1283
|
+
const _queryParams = {
|
|
1284
|
+
asked,
|
|
1285
|
+
start,
|
|
1286
|
+
end
|
|
1287
|
+
};
|
|
1288
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
1289
|
+
const _headers = (0, import_headers.mergeHeaders)(
|
|
1290
|
+
_authRequest.headers,
|
|
1291
|
+
this._options?.headers,
|
|
1292
|
+
requestOptions?.headers
|
|
1293
|
+
);
|
|
1294
|
+
const _response = await core.fetcher({
|
|
1295
|
+
url: core.url.join(
|
|
1296
|
+
await core.Supplier.get(this._options.baseUrl) ?? await core.Supplier.get(this._options.environment),
|
|
1297
|
+
"api/v1/providers/anthropic/usage/people"
|
|
1298
|
+
),
|
|
1299
|
+
method: "GET",
|
|
1300
|
+
headers: _headers,
|
|
1301
|
+
queryParameters: { ..._queryParams, ...requestOptions?.queryParams },
|
|
1302
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1e3,
|
|
1303
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
1304
|
+
abortSignal: requestOptions?.abortSignal,
|
|
1305
|
+
fetchFn: this._options?.fetch,
|
|
1306
|
+
logging: this._options.logging
|
|
1307
|
+
});
|
|
1308
|
+
if (_response.ok) {
|
|
1309
|
+
return {
|
|
1310
|
+
data: _response.body,
|
|
1311
|
+
rawResponse: _response.rawResponse
|
|
1312
|
+
};
|
|
1313
|
+
}
|
|
1314
|
+
if (_response.error.reason === "status-code") {
|
|
1315
|
+
switch (_response.error.statusCode) {
|
|
1316
|
+
case 400:
|
|
1317
|
+
throw new LevelFour.BadRequestError(
|
|
1318
|
+
_response.error.body,
|
|
1319
|
+
_response.rawResponse
|
|
1320
|
+
);
|
|
1321
|
+
case 401:
|
|
1322
|
+
throw new LevelFour.UnauthorizedError(
|
|
1323
|
+
_response.error.body,
|
|
1324
|
+
_response.rawResponse
|
|
1325
|
+
);
|
|
1326
|
+
case 403:
|
|
1327
|
+
throw new LevelFour.ForbiddenError(
|
|
1328
|
+
_response.error.body,
|
|
1329
|
+
_response.rawResponse
|
|
1330
|
+
);
|
|
1331
|
+
case 404:
|
|
1332
|
+
throw new LevelFour.NotFoundError(
|
|
1333
|
+
_response.error.body,
|
|
1334
|
+
_response.rawResponse
|
|
1335
|
+
);
|
|
1336
|
+
case 409:
|
|
1337
|
+
throw new LevelFour.ConflictError(
|
|
1338
|
+
_response.error.body,
|
|
1339
|
+
_response.rawResponse
|
|
1340
|
+
);
|
|
1341
|
+
case 422:
|
|
1342
|
+
throw new LevelFour.UnprocessableEntityError(
|
|
1343
|
+
_response.error.body,
|
|
1344
|
+
_response.rawResponse
|
|
1345
|
+
);
|
|
1346
|
+
case 429:
|
|
1347
|
+
throw new LevelFour.TooManyRequestsError(
|
|
1348
|
+
_response.error.body,
|
|
1349
|
+
_response.rawResponse
|
|
1350
|
+
);
|
|
1351
|
+
case 500:
|
|
1352
|
+
throw new LevelFour.InternalServerError(
|
|
1353
|
+
_response.error.body,
|
|
1354
|
+
_response.rawResponse
|
|
1355
|
+
);
|
|
1356
|
+
default:
|
|
1357
|
+
throw new errors.LevelFourError({
|
|
1358
|
+
statusCode: _response.error.statusCode,
|
|
1359
|
+
body: _response.error.body,
|
|
1360
|
+
rawResponse: _response.rawResponse
|
|
1361
|
+
});
|
|
1362
|
+
}
|
|
1363
|
+
}
|
|
1364
|
+
return (0, import_handleNonStatusCodeError.handleNonStatusCodeError)(
|
|
1365
|
+
_response.error,
|
|
1366
|
+
_response.rawResponse,
|
|
1367
|
+
"GET",
|
|
1368
|
+
"/api/v1/providers/anthropic/usage/people"
|
|
1369
|
+
);
|
|
1370
|
+
}
|
|
1371
|
+
/**
|
|
1372
|
+
* 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.
|
|
1373
|
+
*
|
|
1374
|
+
* @param {LevelFour.GetUsagePersonApiV1ProvidersAnthropicUsagePeoplePersonGetRequest} request
|
|
1375
|
+
* @param {AnthropicClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1376
|
+
*
|
|
1377
|
+
* @throws {@link LevelFour.BadRequestError}
|
|
1378
|
+
* @throws {@link LevelFour.UnauthorizedError}
|
|
1379
|
+
* @throws {@link LevelFour.ForbiddenError}
|
|
1380
|
+
* @throws {@link LevelFour.NotFoundError}
|
|
1381
|
+
* @throws {@link LevelFour.ConflictError}
|
|
1382
|
+
* @throws {@link LevelFour.UnprocessableEntityError}
|
|
1383
|
+
* @throws {@link LevelFour.TooManyRequestsError}
|
|
1384
|
+
* @throws {@link LevelFour.InternalServerError}
|
|
1385
|
+
*
|
|
1386
|
+
* @example
|
|
1387
|
+
* await client.anthropic.getUsagePerson({
|
|
1388
|
+
* person: "person"
|
|
1389
|
+
* })
|
|
1390
|
+
*/
|
|
1391
|
+
getUsagePerson(request, requestOptions) {
|
|
1392
|
+
return core.HttpResponsePromise.fromPromise(this.__getUsagePerson(request, requestOptions));
|
|
1393
|
+
}
|
|
1394
|
+
async __getUsagePerson(request, requestOptions) {
|
|
1395
|
+
const { person } = request;
|
|
1396
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
1397
|
+
const _headers = (0, import_headers.mergeHeaders)(
|
|
1398
|
+
_authRequest.headers,
|
|
1399
|
+
this._options?.headers,
|
|
1400
|
+
requestOptions?.headers
|
|
1401
|
+
);
|
|
1402
|
+
const _response = await core.fetcher({
|
|
1403
|
+
url: core.url.join(
|
|
1404
|
+
await core.Supplier.get(this._options.baseUrl) ?? await core.Supplier.get(this._options.environment),
|
|
1405
|
+
`api/v1/providers/anthropic/usage/people/${core.url.encodePathParam(person)}`
|
|
1406
|
+
),
|
|
1407
|
+
method: "GET",
|
|
1408
|
+
headers: _headers,
|
|
1409
|
+
queryParameters: requestOptions?.queryParams,
|
|
1410
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1e3,
|
|
1411
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
1412
|
+
abortSignal: requestOptions?.abortSignal,
|
|
1413
|
+
fetchFn: this._options?.fetch,
|
|
1414
|
+
logging: this._options.logging
|
|
1415
|
+
});
|
|
1416
|
+
if (_response.ok) {
|
|
1417
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
1418
|
+
}
|
|
1419
|
+
if (_response.error.reason === "status-code") {
|
|
1420
|
+
switch (_response.error.statusCode) {
|
|
1421
|
+
case 400:
|
|
1422
|
+
throw new LevelFour.BadRequestError(
|
|
1423
|
+
_response.error.body,
|
|
1424
|
+
_response.rawResponse
|
|
1425
|
+
);
|
|
1426
|
+
case 401:
|
|
1427
|
+
throw new LevelFour.UnauthorizedError(
|
|
1428
|
+
_response.error.body,
|
|
1429
|
+
_response.rawResponse
|
|
1430
|
+
);
|
|
1431
|
+
case 403:
|
|
1432
|
+
throw new LevelFour.ForbiddenError(
|
|
1433
|
+
_response.error.body,
|
|
1434
|
+
_response.rawResponse
|
|
1435
|
+
);
|
|
1436
|
+
case 404:
|
|
1437
|
+
throw new LevelFour.NotFoundError(
|
|
1438
|
+
_response.error.body,
|
|
1439
|
+
_response.rawResponse
|
|
1440
|
+
);
|
|
1441
|
+
case 409:
|
|
1442
|
+
throw new LevelFour.ConflictError(
|
|
1443
|
+
_response.error.body,
|
|
1444
|
+
_response.rawResponse
|
|
1445
|
+
);
|
|
1446
|
+
case 422:
|
|
1447
|
+
throw new LevelFour.UnprocessableEntityError(
|
|
1448
|
+
_response.error.body,
|
|
1449
|
+
_response.rawResponse
|
|
1450
|
+
);
|
|
1451
|
+
case 429:
|
|
1452
|
+
throw new LevelFour.TooManyRequestsError(
|
|
1453
|
+
_response.error.body,
|
|
1454
|
+
_response.rawResponse
|
|
1455
|
+
);
|
|
1456
|
+
case 500:
|
|
1457
|
+
throw new LevelFour.InternalServerError(
|
|
1458
|
+
_response.error.body,
|
|
1459
|
+
_response.rawResponse
|
|
1460
|
+
);
|
|
1461
|
+
default:
|
|
1462
|
+
throw new errors.LevelFourError({
|
|
1463
|
+
statusCode: _response.error.statusCode,
|
|
1464
|
+
body: _response.error.body,
|
|
1465
|
+
rawResponse: _response.rawResponse
|
|
1466
|
+
});
|
|
1467
|
+
}
|
|
1468
|
+
}
|
|
1469
|
+
return (0, import_handleNonStatusCodeError.handleNonStatusCodeError)(
|
|
1470
|
+
_response.error,
|
|
1471
|
+
_response.rawResponse,
|
|
1472
|
+
"GET",
|
|
1473
|
+
"/api/v1/providers/anthropic/usage/people/{person}"
|
|
1474
|
+
);
|
|
1475
|
+
}
|
|
1476
|
+
/**
|
|
1477
|
+
* 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.
|
|
1478
|
+
*
|
|
1479
|
+
* @param {LevelFour.GetUsagePersonSessionsApiV1ProvidersAnthropicUsagePeoplePersonSessionsGetRequest} request
|
|
1480
|
+
* @param {AnthropicClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1481
|
+
*
|
|
1482
|
+
* @throws {@link LevelFour.BadRequestError}
|
|
1483
|
+
* @throws {@link LevelFour.UnauthorizedError}
|
|
1484
|
+
* @throws {@link LevelFour.ForbiddenError}
|
|
1485
|
+
* @throws {@link LevelFour.NotFoundError}
|
|
1486
|
+
* @throws {@link LevelFour.ConflictError}
|
|
1487
|
+
* @throws {@link LevelFour.UnprocessableEntityError}
|
|
1488
|
+
* @throws {@link LevelFour.TooManyRequestsError}
|
|
1489
|
+
* @throws {@link LevelFour.InternalServerError}
|
|
1490
|
+
*
|
|
1491
|
+
* @example
|
|
1492
|
+
* await client.anthropic.getUsagePersonSessions({
|
|
1493
|
+
* person: "person",
|
|
1494
|
+
* asked: {},
|
|
1495
|
+
* start: "start",
|
|
1496
|
+
* end: "end"
|
|
1497
|
+
* })
|
|
1498
|
+
*/
|
|
1499
|
+
getUsagePersonSessions(request, requestOptions) {
|
|
1500
|
+
return core.HttpResponsePromise.fromPromise(this.__getUsagePersonSessions(request, requestOptions));
|
|
1501
|
+
}
|
|
1502
|
+
async __getUsagePersonSessions(request, requestOptions) {
|
|
1503
|
+
const { person, asked, start, end } = request;
|
|
1504
|
+
const _queryParams = {
|
|
1505
|
+
asked,
|
|
1506
|
+
start,
|
|
1507
|
+
end
|
|
1508
|
+
};
|
|
1509
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
1510
|
+
const _headers = (0, import_headers.mergeHeaders)(
|
|
1511
|
+
_authRequest.headers,
|
|
1512
|
+
this._options?.headers,
|
|
1513
|
+
requestOptions?.headers
|
|
1514
|
+
);
|
|
1515
|
+
const _response = await core.fetcher({
|
|
1516
|
+
url: core.url.join(
|
|
1517
|
+
await core.Supplier.get(this._options.baseUrl) ?? await core.Supplier.get(this._options.environment),
|
|
1518
|
+
`api/v1/providers/anthropic/usage/people/${core.url.encodePathParam(person)}/sessions`
|
|
1519
|
+
),
|
|
1520
|
+
method: "GET",
|
|
1521
|
+
headers: _headers,
|
|
1522
|
+
queryParameters: { ..._queryParams, ...requestOptions?.queryParams },
|
|
1523
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1e3,
|
|
1524
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
1525
|
+
abortSignal: requestOptions?.abortSignal,
|
|
1526
|
+
fetchFn: this._options?.fetch,
|
|
1527
|
+
logging: this._options.logging
|
|
1528
|
+
});
|
|
1529
|
+
if (_response.ok) {
|
|
1530
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
1531
|
+
}
|
|
1532
|
+
if (_response.error.reason === "status-code") {
|
|
1533
|
+
switch (_response.error.statusCode) {
|
|
1534
|
+
case 400:
|
|
1535
|
+
throw new LevelFour.BadRequestError(
|
|
1536
|
+
_response.error.body,
|
|
1537
|
+
_response.rawResponse
|
|
1538
|
+
);
|
|
1539
|
+
case 401:
|
|
1540
|
+
throw new LevelFour.UnauthorizedError(
|
|
1541
|
+
_response.error.body,
|
|
1542
|
+
_response.rawResponse
|
|
1543
|
+
);
|
|
1544
|
+
case 403:
|
|
1545
|
+
throw new LevelFour.ForbiddenError(
|
|
1546
|
+
_response.error.body,
|
|
1547
|
+
_response.rawResponse
|
|
1548
|
+
);
|
|
1549
|
+
case 404:
|
|
1550
|
+
throw new LevelFour.NotFoundError(
|
|
1551
|
+
_response.error.body,
|
|
1552
|
+
_response.rawResponse
|
|
1553
|
+
);
|
|
1554
|
+
case 409:
|
|
1555
|
+
throw new LevelFour.ConflictError(
|
|
1556
|
+
_response.error.body,
|
|
1557
|
+
_response.rawResponse
|
|
1558
|
+
);
|
|
1559
|
+
case 422:
|
|
1560
|
+
throw new LevelFour.UnprocessableEntityError(
|
|
1561
|
+
_response.error.body,
|
|
1562
|
+
_response.rawResponse
|
|
1563
|
+
);
|
|
1564
|
+
case 429:
|
|
1565
|
+
throw new LevelFour.TooManyRequestsError(
|
|
1566
|
+
_response.error.body,
|
|
1567
|
+
_response.rawResponse
|
|
1568
|
+
);
|
|
1569
|
+
case 500:
|
|
1570
|
+
throw new LevelFour.InternalServerError(
|
|
1571
|
+
_response.error.body,
|
|
1572
|
+
_response.rawResponse
|
|
1573
|
+
);
|
|
1574
|
+
default:
|
|
1575
|
+
throw new errors.LevelFourError({
|
|
1576
|
+
statusCode: _response.error.statusCode,
|
|
1577
|
+
body: _response.error.body,
|
|
1578
|
+
rawResponse: _response.rawResponse
|
|
1579
|
+
});
|
|
1580
|
+
}
|
|
1581
|
+
}
|
|
1582
|
+
return (0, import_handleNonStatusCodeError.handleNonStatusCodeError)(
|
|
1583
|
+
_response.error,
|
|
1584
|
+
_response.rawResponse,
|
|
1585
|
+
"GET",
|
|
1586
|
+
"/api/v1/providers/anthropic/usage/people/{person}/sessions"
|
|
1587
|
+
);
|
|
1588
|
+
}
|
|
1589
|
+
/**
|
|
1590
|
+
* 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.
|
|
1591
|
+
*
|
|
1592
|
+
* @param {LevelFour.GetTeamSummaryApiV1ProvidersAnthropicTeamSummaryGetRequest} request
|
|
1593
|
+
* @param {AnthropicClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1594
|
+
*
|
|
1595
|
+
* @throws {@link LevelFour.BadRequestError}
|
|
1596
|
+
* @throws {@link LevelFour.UnauthorizedError}
|
|
1597
|
+
* @throws {@link LevelFour.ForbiddenError}
|
|
1598
|
+
* @throws {@link LevelFour.NotFoundError}
|
|
1599
|
+
* @throws {@link LevelFour.ConflictError}
|
|
1600
|
+
* @throws {@link LevelFour.UnprocessableEntityError}
|
|
1601
|
+
* @throws {@link LevelFour.TooManyRequestsError}
|
|
1602
|
+
* @throws {@link LevelFour.InternalServerError}
|
|
1603
|
+
*
|
|
1604
|
+
* @example
|
|
1605
|
+
* await client.anthropic.getTeamSummary({
|
|
1606
|
+
* start: "start",
|
|
1607
|
+
* end: "end"
|
|
1608
|
+
* })
|
|
1609
|
+
*/
|
|
1610
|
+
getTeamSummary(request, requestOptions) {
|
|
1611
|
+
return core.HttpResponsePromise.fromPromise(this.__getTeamSummary(request, requestOptions));
|
|
1612
|
+
}
|
|
1613
|
+
async __getTeamSummary(request, requestOptions) {
|
|
1614
|
+
const { start, end } = request;
|
|
1615
|
+
const _queryParams = {
|
|
1616
|
+
start,
|
|
1617
|
+
end
|
|
1618
|
+
};
|
|
1619
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
1620
|
+
const _headers = (0, import_headers.mergeHeaders)(
|
|
1621
|
+
_authRequest.headers,
|
|
1622
|
+
this._options?.headers,
|
|
1623
|
+
requestOptions?.headers
|
|
1624
|
+
);
|
|
1625
|
+
const _response = await core.fetcher({
|
|
1626
|
+
url: core.url.join(
|
|
1627
|
+
await core.Supplier.get(this._options.baseUrl) ?? await core.Supplier.get(this._options.environment),
|
|
1628
|
+
"api/v1/providers/anthropic/team/summary"
|
|
1629
|
+
),
|
|
1630
|
+
method: "GET",
|
|
1631
|
+
headers: _headers,
|
|
1632
|
+
queryParameters: { ..._queryParams, ...requestOptions?.queryParams },
|
|
1633
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1e3,
|
|
1634
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
1635
|
+
abortSignal: requestOptions?.abortSignal,
|
|
1636
|
+
fetchFn: this._options?.fetch,
|
|
1637
|
+
logging: this._options.logging
|
|
1638
|
+
});
|
|
1639
|
+
if (_response.ok) {
|
|
1640
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
1641
|
+
}
|
|
1642
|
+
if (_response.error.reason === "status-code") {
|
|
1643
|
+
switch (_response.error.statusCode) {
|
|
1644
|
+
case 400:
|
|
1645
|
+
throw new LevelFour.BadRequestError(
|
|
1646
|
+
_response.error.body,
|
|
1647
|
+
_response.rawResponse
|
|
1648
|
+
);
|
|
1649
|
+
case 401:
|
|
1650
|
+
throw new LevelFour.UnauthorizedError(
|
|
1651
|
+
_response.error.body,
|
|
1652
|
+
_response.rawResponse
|
|
1653
|
+
);
|
|
1654
|
+
case 403:
|
|
1655
|
+
throw new LevelFour.ForbiddenError(
|
|
1656
|
+
_response.error.body,
|
|
1657
|
+
_response.rawResponse
|
|
1658
|
+
);
|
|
1659
|
+
case 404:
|
|
1660
|
+
throw new LevelFour.NotFoundError(
|
|
1661
|
+
_response.error.body,
|
|
1662
|
+
_response.rawResponse
|
|
1663
|
+
);
|
|
1664
|
+
case 409:
|
|
1665
|
+
throw new LevelFour.ConflictError(
|
|
1666
|
+
_response.error.body,
|
|
1667
|
+
_response.rawResponse
|
|
1668
|
+
);
|
|
1669
|
+
case 422:
|
|
1670
|
+
throw new LevelFour.UnprocessableEntityError(
|
|
1671
|
+
_response.error.body,
|
|
1672
|
+
_response.rawResponse
|
|
1673
|
+
);
|
|
1674
|
+
case 429:
|
|
1675
|
+
throw new LevelFour.TooManyRequestsError(
|
|
1676
|
+
_response.error.body,
|
|
1677
|
+
_response.rawResponse
|
|
1678
|
+
);
|
|
1679
|
+
case 500:
|
|
1680
|
+
throw new LevelFour.InternalServerError(
|
|
1681
|
+
_response.error.body,
|
|
1682
|
+
_response.rawResponse
|
|
1683
|
+
);
|
|
1684
|
+
default:
|
|
1685
|
+
throw new errors.LevelFourError({
|
|
1686
|
+
statusCode: _response.error.statusCode,
|
|
1687
|
+
body: _response.error.body,
|
|
1688
|
+
rawResponse: _response.rawResponse
|
|
1689
|
+
});
|
|
1690
|
+
}
|
|
1691
|
+
}
|
|
1692
|
+
return (0, import_handleNonStatusCodeError.handleNonStatusCodeError)(
|
|
1693
|
+
_response.error,
|
|
1694
|
+
_response.rawResponse,
|
|
1695
|
+
"GET",
|
|
1696
|
+
"/api/v1/providers/anthropic/team/summary"
|
|
1697
|
+
);
|
|
1698
|
+
}
|
|
1699
|
+
/**
|
|
1700
|
+
* One row per person the latest Members list names, the spend reports count or Claude Code reported, over the 7 and 30 days that end on the last day the spend reports cover. Tokens count every product the spend report names, and a product telemetry also counts is taken at whichever counted more. recommendation is the one rule a seat meets: remove for a seat unused for more than two weeks in a row, upgrade for a Standard seat whose extra usage in 30 days passed what Premium costs above it, downgrade for a Premium seat used less than the weekly token threshold in /team/settings. rules counts each rule over everyone, whatever the filters keep. A spend report that holds overage alone hides Chat inside the allowance: on one, downgrade reads Claude Code and Cowork telemetry for the people who report it, and remove is not available. The largest saving comes first. format=csv answers every row the filters keep. The answer names people, so it is sent with Cache-Control: no-store.
|
|
1701
|
+
*
|
|
1702
|
+
* @param {LevelFour.GetTeamPeopleApiV1ProvidersAnthropicTeamPeopleGetRequest} request
|
|
1703
|
+
* @param {AnthropicClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1704
|
+
*
|
|
1705
|
+
* @throws {@link LevelFour.BadRequestError}
|
|
1706
|
+
* @throws {@link LevelFour.UnauthorizedError}
|
|
1707
|
+
* @throws {@link LevelFour.ForbiddenError}
|
|
1708
|
+
* @throws {@link LevelFour.NotFoundError}
|
|
1709
|
+
* @throws {@link LevelFour.ConflictError}
|
|
1710
|
+
* @throws {@link LevelFour.UnprocessableEntityError}
|
|
1711
|
+
* @throws {@link LevelFour.TooManyRequestsError}
|
|
1712
|
+
* @throws {@link LevelFour.InternalServerError}
|
|
1713
|
+
*
|
|
1714
|
+
* @example
|
|
1715
|
+
* await client.anthropic.getTeamPeople()
|
|
1716
|
+
*/
|
|
1717
|
+
getTeamPeople(request = {}, requestOptions) {
|
|
1718
|
+
return core.HttpResponsePromise.fromPromise(this.__getTeamPeople(request, requestOptions));
|
|
1719
|
+
}
|
|
1720
|
+
async __getTeamPeople(request = {}, requestOptions) {
|
|
1721
|
+
const { page, page_size: pageSize, search, area, seat, product, recommendation, sort, order, format } = request;
|
|
1722
|
+
const _queryParams = {
|
|
1723
|
+
page,
|
|
1724
|
+
page_size: pageSize,
|
|
1725
|
+
search,
|
|
1726
|
+
area,
|
|
1727
|
+
seat: seat !== void 0 ? seat : void 0,
|
|
1728
|
+
product,
|
|
1729
|
+
recommendation: recommendation !== void 0 ? recommendation : void 0,
|
|
1730
|
+
sort: sort != null ? sort : void 0,
|
|
1731
|
+
order: order != null ? order : void 0,
|
|
1732
|
+
format: format != null ? format : void 0
|
|
1733
|
+
};
|
|
1734
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
1735
|
+
const _headers = (0, import_headers.mergeHeaders)(
|
|
1736
|
+
_authRequest.headers,
|
|
1737
|
+
this._options?.headers,
|
|
1738
|
+
requestOptions?.headers
|
|
1739
|
+
);
|
|
1740
|
+
const _response = await core.fetcher({
|
|
1741
|
+
url: core.url.join(
|
|
1742
|
+
await core.Supplier.get(this._options.baseUrl) ?? await core.Supplier.get(this._options.environment),
|
|
1743
|
+
"api/v1/providers/anthropic/team/people"
|
|
1744
|
+
),
|
|
1745
|
+
method: "GET",
|
|
1746
|
+
headers: _headers,
|
|
1747
|
+
queryParameters: { ..._queryParams, ...requestOptions?.queryParams },
|
|
1748
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1e3,
|
|
1749
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
1750
|
+
abortSignal: requestOptions?.abortSignal,
|
|
1751
|
+
fetchFn: this._options?.fetch,
|
|
1752
|
+
logging: this._options.logging
|
|
1753
|
+
});
|
|
1754
|
+
if (_response.ok) {
|
|
1755
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
1756
|
+
}
|
|
1757
|
+
if (_response.error.reason === "status-code") {
|
|
1758
|
+
switch (_response.error.statusCode) {
|
|
1759
|
+
case 400:
|
|
1760
|
+
throw new LevelFour.BadRequestError(
|
|
1761
|
+
_response.error.body,
|
|
1762
|
+
_response.rawResponse
|
|
1763
|
+
);
|
|
1764
|
+
case 401:
|
|
1765
|
+
throw new LevelFour.UnauthorizedError(
|
|
1766
|
+
_response.error.body,
|
|
1767
|
+
_response.rawResponse
|
|
1768
|
+
);
|
|
1769
|
+
case 403:
|
|
1770
|
+
throw new LevelFour.ForbiddenError(
|
|
1771
|
+
_response.error.body,
|
|
1772
|
+
_response.rawResponse
|
|
1773
|
+
);
|
|
1774
|
+
case 404:
|
|
1775
|
+
throw new LevelFour.NotFoundError(
|
|
1776
|
+
_response.error.body,
|
|
1777
|
+
_response.rawResponse
|
|
1778
|
+
);
|
|
1779
|
+
case 409:
|
|
1780
|
+
throw new LevelFour.ConflictError(
|
|
1781
|
+
_response.error.body,
|
|
1782
|
+
_response.rawResponse
|
|
1783
|
+
);
|
|
1784
|
+
case 422:
|
|
1785
|
+
throw new LevelFour.UnprocessableEntityError(
|
|
1786
|
+
_response.error.body,
|
|
1787
|
+
_response.rawResponse
|
|
1788
|
+
);
|
|
1789
|
+
case 429:
|
|
1790
|
+
throw new LevelFour.TooManyRequestsError(
|
|
1791
|
+
_response.error.body,
|
|
1792
|
+
_response.rawResponse
|
|
1793
|
+
);
|
|
1794
|
+
case 500:
|
|
1795
|
+
throw new LevelFour.InternalServerError(
|
|
1796
|
+
_response.error.body,
|
|
1797
|
+
_response.rawResponse
|
|
1798
|
+
);
|
|
1799
|
+
default:
|
|
1800
|
+
throw new errors.LevelFourError({
|
|
1801
|
+
statusCode: _response.error.statusCode,
|
|
1802
|
+
body: _response.error.body,
|
|
1803
|
+
rawResponse: _response.rawResponse
|
|
1804
|
+
});
|
|
1805
|
+
}
|
|
1806
|
+
}
|
|
1807
|
+
return (0, import_handleNonStatusCodeError.handleNonStatusCodeError)(
|
|
1808
|
+
_response.error,
|
|
1809
|
+
_response.rawResponse,
|
|
1810
|
+
"GET",
|
|
1811
|
+
"/api/v1/providers/anthropic/team/people"
|
|
1812
|
+
);
|
|
1813
|
+
}
|
|
1814
|
+
/**
|
|
1815
|
+
* The billing cycle, the price of each seat per month, the day the plan renews and the weekly token threshold below which a Premium seat is worth a look at Standard. Until someone sets them, Anthropic's US list prices on monthly billing and 200,000 tokens a week.
|
|
1816
|
+
*
|
|
1817
|
+
* @param {AnthropicClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1818
|
+
*
|
|
1819
|
+
* @throws {@link LevelFour.BadRequestError}
|
|
1820
|
+
* @throws {@link LevelFour.UnauthorizedError}
|
|
1821
|
+
* @throws {@link LevelFour.ForbiddenError}
|
|
1822
|
+
* @throws {@link LevelFour.NotFoundError}
|
|
1823
|
+
* @throws {@link LevelFour.ConflictError}
|
|
1824
|
+
* @throws {@link LevelFour.UnprocessableEntityError}
|
|
1825
|
+
* @throws {@link LevelFour.TooManyRequestsError}
|
|
1826
|
+
* @throws {@link LevelFour.InternalServerError}
|
|
1827
|
+
*
|
|
1828
|
+
* @example
|
|
1829
|
+
* await client.anthropic.getTeamSettings()
|
|
1830
|
+
*/
|
|
1831
|
+
getTeamSettings(requestOptions) {
|
|
1832
|
+
return core.HttpResponsePromise.fromPromise(this.__getTeamSettings(requestOptions));
|
|
1833
|
+
}
|
|
1834
|
+
async __getTeamSettings(requestOptions) {
|
|
1835
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
1836
|
+
const _headers = (0, import_headers.mergeHeaders)(
|
|
1837
|
+
_authRequest.headers,
|
|
1838
|
+
this._options?.headers,
|
|
1839
|
+
requestOptions?.headers
|
|
1840
|
+
);
|
|
1841
|
+
const _response = await core.fetcher({
|
|
1842
|
+
url: core.url.join(
|
|
1843
|
+
await core.Supplier.get(this._options.baseUrl) ?? await core.Supplier.get(this._options.environment),
|
|
1844
|
+
"api/v1/providers/anthropic/team/settings"
|
|
1845
|
+
),
|
|
1846
|
+
method: "GET",
|
|
1847
|
+
headers: _headers,
|
|
1848
|
+
queryParameters: requestOptions?.queryParams,
|
|
1849
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1e3,
|
|
1850
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
1851
|
+
abortSignal: requestOptions?.abortSignal,
|
|
1852
|
+
fetchFn: this._options?.fetch,
|
|
1853
|
+
logging: this._options.logging
|
|
1854
|
+
});
|
|
1855
|
+
if (_response.ok) {
|
|
1856
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
1857
|
+
}
|
|
1858
|
+
if (_response.error.reason === "status-code") {
|
|
1859
|
+
switch (_response.error.statusCode) {
|
|
1860
|
+
case 400:
|
|
1861
|
+
throw new LevelFour.BadRequestError(
|
|
1862
|
+
_response.error.body,
|
|
1863
|
+
_response.rawResponse
|
|
1864
|
+
);
|
|
1865
|
+
case 401:
|
|
1866
|
+
throw new LevelFour.UnauthorizedError(
|
|
1867
|
+
_response.error.body,
|
|
1868
|
+
_response.rawResponse
|
|
1869
|
+
);
|
|
1870
|
+
case 403:
|
|
1871
|
+
throw new LevelFour.ForbiddenError(
|
|
1872
|
+
_response.error.body,
|
|
1873
|
+
_response.rawResponse
|
|
1874
|
+
);
|
|
1875
|
+
case 404:
|
|
1876
|
+
throw new LevelFour.NotFoundError(
|
|
1877
|
+
_response.error.body,
|
|
1878
|
+
_response.rawResponse
|
|
1879
|
+
);
|
|
1880
|
+
case 409:
|
|
1881
|
+
throw new LevelFour.ConflictError(
|
|
1882
|
+
_response.error.body,
|
|
1883
|
+
_response.rawResponse
|
|
1884
|
+
);
|
|
1885
|
+
case 422:
|
|
1886
|
+
throw new LevelFour.UnprocessableEntityError(
|
|
1887
|
+
_response.error.body,
|
|
1888
|
+
_response.rawResponse
|
|
1889
|
+
);
|
|
1890
|
+
case 429:
|
|
1891
|
+
throw new LevelFour.TooManyRequestsError(
|
|
1892
|
+
_response.error.body,
|
|
1893
|
+
_response.rawResponse
|
|
1894
|
+
);
|
|
1895
|
+
case 500:
|
|
1896
|
+
throw new LevelFour.InternalServerError(
|
|
1897
|
+
_response.error.body,
|
|
1898
|
+
_response.rawResponse
|
|
1899
|
+
);
|
|
1900
|
+
default:
|
|
1901
|
+
throw new errors.LevelFourError({
|
|
1902
|
+
statusCode: _response.error.statusCode,
|
|
1903
|
+
body: _response.error.body,
|
|
1904
|
+
rawResponse: _response.rawResponse
|
|
1905
|
+
});
|
|
1906
|
+
}
|
|
1907
|
+
}
|
|
1908
|
+
return (0, import_handleNonStatusCodeError.handleNonStatusCodeError)(
|
|
1909
|
+
_response.error,
|
|
1910
|
+
_response.rawResponse,
|
|
1911
|
+
"GET",
|
|
1912
|
+
"/api/v1/providers/anthropic/team/settings"
|
|
1913
|
+
);
|
|
1914
|
+
}
|
|
1915
|
+
/**
|
|
1916
|
+
* 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.
|
|
1917
|
+
*
|
|
1918
|
+
* @param {AnthropicClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1919
|
+
*
|
|
1920
|
+
* @throws {@link LevelFour.BadRequestError}
|
|
1921
|
+
* @throws {@link LevelFour.UnauthorizedError}
|
|
1922
|
+
* @throws {@link LevelFour.ForbiddenError}
|
|
1923
|
+
* @throws {@link LevelFour.NotFoundError}
|
|
1924
|
+
* @throws {@link LevelFour.ConflictError}
|
|
1925
|
+
* @throws {@link LevelFour.UnprocessableEntityError}
|
|
1926
|
+
* @throws {@link LevelFour.TooManyRequestsError}
|
|
1927
|
+
* @throws {@link LevelFour.InternalServerError}
|
|
1928
|
+
*
|
|
1929
|
+
* @example
|
|
1930
|
+
* await client.anthropic.getTeamAreas()
|
|
1931
|
+
*/
|
|
1932
|
+
getTeamAreas(requestOptions) {
|
|
1933
|
+
return core.HttpResponsePromise.fromPromise(this.__getTeamAreas(requestOptions));
|
|
1934
|
+
}
|
|
1935
|
+
async __getTeamAreas(requestOptions) {
|
|
1936
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
1937
|
+
const _headers = (0, import_headers.mergeHeaders)(
|
|
1938
|
+
_authRequest.headers,
|
|
1939
|
+
this._options?.headers,
|
|
1940
|
+
requestOptions?.headers
|
|
1941
|
+
);
|
|
1942
|
+
const _response = await core.fetcher({
|
|
1943
|
+
url: core.url.join(
|
|
1944
|
+
await core.Supplier.get(this._options.baseUrl) ?? await core.Supplier.get(this._options.environment),
|
|
1945
|
+
"api/v1/providers/anthropic/team/areas"
|
|
1946
|
+
),
|
|
1947
|
+
method: "GET",
|
|
1948
|
+
headers: _headers,
|
|
1949
|
+
queryParameters: requestOptions?.queryParams,
|
|
1950
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1e3,
|
|
1951
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
1952
|
+
abortSignal: requestOptions?.abortSignal,
|
|
1953
|
+
fetchFn: this._options?.fetch,
|
|
1954
|
+
logging: this._options.logging
|
|
1955
|
+
});
|
|
1956
|
+
if (_response.ok) {
|
|
1957
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
1958
|
+
}
|
|
1959
|
+
if (_response.error.reason === "status-code") {
|
|
1960
|
+
switch (_response.error.statusCode) {
|
|
1961
|
+
case 400:
|
|
1962
|
+
throw new LevelFour.BadRequestError(
|
|
1963
|
+
_response.error.body,
|
|
1964
|
+
_response.rawResponse
|
|
1965
|
+
);
|
|
1966
|
+
case 401:
|
|
1967
|
+
throw new LevelFour.UnauthorizedError(
|
|
1968
|
+
_response.error.body,
|
|
1969
|
+
_response.rawResponse
|
|
1970
|
+
);
|
|
1971
|
+
case 403:
|
|
1972
|
+
throw new LevelFour.ForbiddenError(
|
|
1973
|
+
_response.error.body,
|
|
1974
|
+
_response.rawResponse
|
|
1975
|
+
);
|
|
1976
|
+
case 404:
|
|
1977
|
+
throw new LevelFour.NotFoundError(
|
|
1978
|
+
_response.error.body,
|
|
1979
|
+
_response.rawResponse
|
|
1980
|
+
);
|
|
1981
|
+
case 409:
|
|
1982
|
+
throw new LevelFour.ConflictError(
|
|
1983
|
+
_response.error.body,
|
|
1984
|
+
_response.rawResponse
|
|
1985
|
+
);
|
|
1986
|
+
case 422:
|
|
1987
|
+
throw new LevelFour.UnprocessableEntityError(
|
|
1988
|
+
_response.error.body,
|
|
1989
|
+
_response.rawResponse
|
|
1990
|
+
);
|
|
1991
|
+
case 429:
|
|
1992
|
+
throw new LevelFour.TooManyRequestsError(
|
|
1993
|
+
_response.error.body,
|
|
1994
|
+
_response.rawResponse
|
|
1995
|
+
);
|
|
1996
|
+
case 500:
|
|
1997
|
+
throw new LevelFour.InternalServerError(
|
|
1998
|
+
_response.error.body,
|
|
1999
|
+
_response.rawResponse
|
|
2000
|
+
);
|
|
2001
|
+
default:
|
|
2002
|
+
throw new errors.LevelFourError({
|
|
2003
|
+
statusCode: _response.error.statusCode,
|
|
2004
|
+
body: _response.error.body,
|
|
2005
|
+
rawResponse: _response.rawResponse
|
|
2006
|
+
});
|
|
2007
|
+
}
|
|
2008
|
+
}
|
|
2009
|
+
return (0, import_handleNonStatusCodeError.handleNonStatusCodeError)(
|
|
2010
|
+
_response.error,
|
|
2011
|
+
_response.rawResponse,
|
|
2012
|
+
"GET",
|
|
2013
|
+
"/api/v1/providers/anthropic/team/areas"
|
|
2014
|
+
);
|
|
2015
|
+
}
|
|
2016
|
+
/**
|
|
2017
|
+
* 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.
|
|
2018
|
+
*
|
|
2019
|
+
* @param {LevelFour.BodyPreviewTeamAreasApiV1ProvidersAnthropicTeamAreasPreviewPost} request
|
|
2020
|
+
* @param {AnthropicClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
2021
|
+
*
|
|
2022
|
+
* @throws {@link LevelFour.BadRequestError}
|
|
2023
|
+
* @throws {@link LevelFour.UnauthorizedError}
|
|
2024
|
+
* @throws {@link LevelFour.ForbiddenError}
|
|
2025
|
+
* @throws {@link LevelFour.NotFoundError}
|
|
2026
|
+
* @throws {@link LevelFour.ConflictError}
|
|
2027
|
+
* @throws {@link LevelFour.UnprocessableEntityError}
|
|
2028
|
+
* @throws {@link LevelFour.TooManyRequestsError}
|
|
2029
|
+
* @throws {@link LevelFour.InternalServerError}
|
|
2030
|
+
*
|
|
2031
|
+
* @example
|
|
2032
|
+
* import { createReadStream } from "fs";
|
|
2033
|
+
* await client.anthropic.previewTeamAreas({
|
|
2034
|
+
* file: fs.createReadStream("/path/to/your/file")
|
|
2035
|
+
* })
|
|
2036
|
+
*/
|
|
2037
|
+
previewTeamAreas(request, requestOptions) {
|
|
2038
|
+
return core.HttpResponsePromise.fromPromise(this.__previewTeamAreas(request, requestOptions));
|
|
2039
|
+
}
|
|
2040
|
+
async __previewTeamAreas(request, requestOptions) {
|
|
2041
|
+
const _body = await core.newFormData();
|
|
2042
|
+
await _body.appendFile("file", request.file);
|
|
2043
|
+
if (request.key != null) {
|
|
2044
|
+
_body.append("key", request.key);
|
|
2045
|
+
}
|
|
2046
|
+
const _maybeEncodedRequest = await _body.getRequest();
|
|
2047
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
2048
|
+
const _headers = (0, import_headers.mergeHeaders)(
|
|
2049
|
+
_authRequest.headers,
|
|
2050
|
+
this._options?.headers,
|
|
2051
|
+
(0, import_headers.mergeOnlyDefinedHeaders)({ ..._maybeEncodedRequest.headers }),
|
|
2052
|
+
requestOptions?.headers
|
|
2053
|
+
);
|
|
2054
|
+
const _response = await core.fetcher({
|
|
2055
|
+
url: core.url.join(
|
|
2056
|
+
await core.Supplier.get(this._options.baseUrl) ?? await core.Supplier.get(this._options.environment),
|
|
2057
|
+
"api/v1/providers/anthropic/team/areas/preview"
|
|
2058
|
+
),
|
|
2059
|
+
method: "POST",
|
|
2060
|
+
headers: _headers,
|
|
2061
|
+
queryParameters: requestOptions?.queryParams,
|
|
2062
|
+
requestType: "file",
|
|
2063
|
+
duplex: _maybeEncodedRequest.duplex,
|
|
2064
|
+
body: _maybeEncodedRequest.body,
|
|
2065
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1e3,
|
|
2066
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
2067
|
+
abortSignal: requestOptions?.abortSignal,
|
|
2068
|
+
fetchFn: this._options?.fetch,
|
|
2069
|
+
logging: this._options.logging
|
|
2070
|
+
});
|
|
2071
|
+
if (_response.ok) {
|
|
2072
|
+
return {
|
|
2073
|
+
data: _response.body,
|
|
2074
|
+
rawResponse: _response.rawResponse
|
|
2075
|
+
};
|
|
2076
|
+
}
|
|
2077
|
+
if (_response.error.reason === "status-code") {
|
|
2078
|
+
switch (_response.error.statusCode) {
|
|
2079
|
+
case 400:
|
|
2080
|
+
throw new LevelFour.BadRequestError(
|
|
2081
|
+
_response.error.body,
|
|
2082
|
+
_response.rawResponse
|
|
2083
|
+
);
|
|
2084
|
+
case 401:
|
|
2085
|
+
throw new LevelFour.UnauthorizedError(
|
|
2086
|
+
_response.error.body,
|
|
2087
|
+
_response.rawResponse
|
|
2088
|
+
);
|
|
2089
|
+
case 403:
|
|
2090
|
+
throw new LevelFour.ForbiddenError(
|
|
2091
|
+
_response.error.body,
|
|
2092
|
+
_response.rawResponse
|
|
2093
|
+
);
|
|
2094
|
+
case 404:
|
|
2095
|
+
throw new LevelFour.NotFoundError(
|
|
2096
|
+
_response.error.body,
|
|
2097
|
+
_response.rawResponse
|
|
2098
|
+
);
|
|
2099
|
+
case 409:
|
|
2100
|
+
throw new LevelFour.ConflictError(
|
|
2101
|
+
_response.error.body,
|
|
2102
|
+
_response.rawResponse
|
|
2103
|
+
);
|
|
2104
|
+
case 422:
|
|
2105
|
+
throw new LevelFour.UnprocessableEntityError(
|
|
2106
|
+
_response.error.body,
|
|
2107
|
+
_response.rawResponse
|
|
2108
|
+
);
|
|
2109
|
+
case 429:
|
|
2110
|
+
throw new LevelFour.TooManyRequestsError(
|
|
2111
|
+
_response.error.body,
|
|
2112
|
+
_response.rawResponse
|
|
2113
|
+
);
|
|
2114
|
+
case 500:
|
|
2115
|
+
throw new LevelFour.InternalServerError(
|
|
2116
|
+
_response.error.body,
|
|
2117
|
+
_response.rawResponse
|
|
2118
|
+
);
|
|
2119
|
+
default:
|
|
2120
|
+
throw new errors.LevelFourError({
|
|
2121
|
+
statusCode: _response.error.statusCode,
|
|
2122
|
+
body: _response.error.body,
|
|
2123
|
+
rawResponse: _response.rawResponse
|
|
2124
|
+
});
|
|
2125
|
+
}
|
|
2126
|
+
}
|
|
2127
|
+
return (0, import_handleNonStatusCodeError.handleNonStatusCodeError)(
|
|
2128
|
+
_response.error,
|
|
2129
|
+
_response.rawResponse,
|
|
2130
|
+
"POST",
|
|
2131
|
+
"/api/v1/providers/anthropic/team/areas/preview"
|
|
2132
|
+
);
|
|
2133
|
+
}
|
|
1256
2134
|
}
|
|
1257
2135
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1258
2136
|
0 && (module.exports = {
|