levelfour 1.5.0 → 1.7.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/Client.d.mts +3 -0
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +25 -20
- package/dist/Client.mjs +5 -0
- package/dist/api/resources/anthropic/client/Client.d.mts +113 -0
- package/dist/api/resources/anthropic/client/Client.d.ts +113 -0
- package/dist/api/resources/anthropic/client/Client.js +554 -1
- package/dist/api/resources/anthropic/client/Client.mjs +555 -2
- 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 +2 -0
- package/dist/api/resources/anthropic/client/requests/GetTeamPeopleApiV1ProvidersAnthropicTeamPeopleGetRequest.d.ts +2 -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 +4 -0
- package/dist/api/resources/anthropic/client/requests/index.d.ts +4 -0
- package/dist/api/resources/anthropic/types/GetTeamPeopleApiV1ProvidersAnthropicTeamPeopleGetRequestSort.d.mts +1 -0
- package/dist/api/resources/anthropic/types/GetTeamPeopleApiV1ProvidersAnthropicTeamPeopleGetRequestSort.d.ts +1 -0
- package/dist/api/resources/anthropic/types/GetTeamPeopleApiV1ProvidersAnthropicTeamPeopleGetRequestSort.js +1 -0
- package/dist/api/resources/anthropic/types/GetTeamPeopleApiV1ProvidersAnthropicTeamPeopleGetRequestSort.mjs +1 -0
- package/dist/api/resources/boards/client/Client.d.mts +3 -2
- package/dist/api/resources/boards/client/Client.d.ts +3 -2
- package/dist/api/resources/boards/client/Client.js +10 -5
- package/dist/api/resources/boards/client/Client.mjs +10 -5
- package/dist/api/resources/boards/client/requests/ListBoardsRequest.d.mts +8 -0
- package/dist/api/resources/boards/client/requests/ListBoardsRequest.d.ts +8 -0
- package/dist/api/resources/boards/client/requests/ListBoardsRequest.js +17 -0
- package/dist/api/resources/boards/client/requests/ListBoardsRequest.mjs +1 -0
- package/dist/api/resources/boards/client/requests/index.d.mts +1 -0
- package/dist/api/resources/boards/client/requests/index.d.ts +1 -0
- package/dist/api/resources/index.d.mts +3 -0
- package/dist/api/resources/index.d.ts +3 -0
- package/dist/api/resources/index.js +8 -1
- package/dist/api/resources/index.mjs +4 -0
- package/dist/api/resources/kubernetes/client/Client.d.mts +54 -0
- package/dist/api/resources/kubernetes/client/Client.d.ts +54 -0
- package/dist/api/resources/kubernetes/client/Client.js +251 -0
- package/dist/api/resources/kubernetes/client/Client.mjs +217 -0
- package/dist/api/resources/kubernetes/client/index.d.mts +1 -0
- package/dist/api/resources/kubernetes/client/index.d.ts +1 -0
- package/dist/api/resources/kubernetes/client/index.js +23 -0
- package/dist/api/resources/kubernetes/client/index.mjs +2 -0
- package/dist/api/resources/kubernetes/client/requests/GetClusterEksApiV1K8SClustersClusterIdEksGetRequest.d.mts +9 -0
- package/dist/api/resources/kubernetes/client/requests/GetClusterEksApiV1K8SClustersClusterIdEksGetRequest.d.ts +9 -0
- package/dist/api/resources/kubernetes/client/requests/GetClusterEksApiV1K8SClustersClusterIdEksGetRequest.js +17 -0
- package/dist/api/resources/kubernetes/client/requests/GetClusterEksApiV1K8SClustersClusterIdEksGetRequest.mjs +1 -0
- package/dist/api/resources/kubernetes/client/requests/index.d.mts +1 -0
- package/dist/api/resources/kubernetes/client/requests/index.d.ts +1 -0
- package/dist/api/resources/kubernetes/client/requests/index.js +17 -0
- package/dist/api/resources/kubernetes/client/requests/index.mjs +1 -0
- package/dist/api/resources/kubernetes/exports.d.mts +2 -0
- package/dist/api/resources/kubernetes/exports.d.ts +2 -0
- package/dist/api/resources/kubernetes/exports.js +32 -0
- package/dist/api/resources/kubernetes/exports.mjs +6 -0
- package/dist/api/resources/kubernetes/index.d.mts +1 -0
- package/dist/api/resources/kubernetes/index.d.ts +1 -0
- package/dist/api/resources/kubernetes/index.js +23 -0
- package/dist/api/resources/kubernetes/index.mjs +2 -0
- package/dist/api/resources/workspace/client/Client.d.mts +2 -1
- package/dist/api/resources/workspace/client/Client.d.ts +2 -1
- package/dist/api/resources/workspace/client/Client.js +7 -3
- package/dist/api/resources/workspace/client/Client.mjs +7 -3
- package/dist/api/resources/workspace/client/index.d.mts +1 -1
- package/dist/api/resources/workspace/client/index.d.ts +1 -1
- package/dist/api/resources/workspace/client/index.js +6 -0
- package/dist/api/resources/workspace/client/index.mjs +1 -0
- package/dist/api/resources/workspace/client/requests/CreateWorkspaceRequest.d.mts +23 -0
- package/dist/api/resources/workspace/client/requests/CreateWorkspaceRequest.d.ts +23 -0
- package/dist/api/resources/workspace/client/requests/CreateWorkspaceRequest.js +39 -0
- package/dist/api/resources/workspace/client/requests/CreateWorkspaceRequest.mjs +15 -0
- package/dist/api/resources/workspace/client/requests/index.d.mts +1 -0
- package/dist/api/resources/workspace/client/requests/index.d.ts +1 -0
- package/dist/api/resources/workspace/client/requests/index.js +29 -0
- package/dist/api/resources/workspace/client/requests/index.mjs +5 -0
- package/dist/api/types/AccountItem.d.mts +4 -0
- package/dist/api/types/AccountItem.d.ts +4 -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/AutomationAction.d.mts +33 -1
- package/dist/api/types/AutomationAction.d.ts +33 -1
- package/dist/api/types/AutomationAction.js +31 -3
- package/dist/api/types/AutomationAction.mjs +31 -3
- package/dist/api/types/AutomationComponent.d.mts +6 -0
- package/dist/api/types/AutomationComponent.d.ts +6 -0
- package/dist/api/types/AutomationEvent.d.mts +13 -0
- package/dist/api/types/AutomationEvent.d.ts +13 -0
- package/dist/api/types/AutomationEvent.js +21 -0
- package/dist/api/types/AutomationEvent.mjs +13 -0
- package/dist/api/types/AutomationEventList.d.mts +3 -1
- package/dist/api/types/AutomationEventList.d.ts +3 -1
- package/dist/api/types/AutomationSettings.d.mts +9 -0
- package/dist/api/types/AutomationSettings.d.ts +9 -0
- package/dist/api/types/AutoscalerCounts.d.mts +8 -0
- package/dist/api/types/AutoscalerCounts.d.ts +8 -0
- package/dist/api/types/AutoscalerCounts.js +17 -0
- package/dist/api/types/AutoscalerCounts.mjs +1 -0
- package/dist/api/types/Board.d.mts +1 -1
- package/dist/api/types/Board.d.ts +1 -1
- 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/BothBasesTotals.d.mts +5 -0
- package/dist/api/types/BothBasesTotals.d.ts +5 -0
- package/dist/api/types/BothBasesTotals.js +17 -0
- package/dist/api/types/BothBasesTotals.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 +2 -0
- package/dist/api/types/ClaudeTeamDowngradeRule.d.ts +2 -0
- package/dist/api/types/ClaudeTeamRemoveRule.d.mts +2 -0
- package/dist/api/types/ClaudeTeamRemoveRule.d.ts +2 -0
- package/dist/api/types/ClaudeTeamUpgradeRule.d.mts +2 -0
- package/dist/api/types/ClaudeTeamUpgradeRule.d.ts +2 -0
- package/dist/api/types/ClusterAutomation.d.mts +1 -0
- package/dist/api/types/ClusterAutomation.d.ts +1 -0
- package/dist/api/types/ClusterConfig.d.mts +15 -0
- package/dist/api/types/ClusterConfig.d.ts +15 -0
- package/dist/api/types/ClusterConfig.js +17 -0
- package/dist/api/types/ClusterConfig.mjs +1 -0
- package/dist/api/types/ClusterFilterOptions.d.mts +5 -0
- package/dist/api/types/ClusterFilterOptions.d.ts +5 -0
- package/dist/api/types/ClusterItem.d.mts +22 -0
- package/dist/api/types/ClusterItem.d.ts +22 -0
- package/dist/api/types/ClusterSummary.d.mts +16 -0
- package/dist/api/types/ClusterSummary.d.ts +16 -0
- package/dist/api/types/ComputeMonth.d.mts +10 -0
- package/dist/api/types/ComputeMonth.d.ts +10 -0
- package/dist/api/types/ComputeMonth.js +17 -0
- package/dist/api/types/ComputeMonth.mjs +1 -0
- package/dist/api/types/ConfigLock.d.mts +6 -0
- package/dist/api/types/ConfigLock.d.ts +6 -0
- package/dist/api/types/ConfigLock.js +17 -0
- package/dist/api/types/ConfigLock.mjs +1 -0
- package/dist/api/types/ConfigObjectView.d.mts +41 -0
- package/dist/api/types/ConfigObjectView.d.ts +41 -0
- package/dist/api/types/ConfigObjectView.js +48 -0
- package/dist/api/types/ConfigObjectView.mjs +24 -0
- package/dist/api/types/ConfigTarget.d.mts +12 -0
- package/dist/api/types/ConfigTarget.d.ts +12 -0
- package/dist/api/types/ConfigTarget.js +36 -0
- package/dist/api/types/ConfigTarget.mjs +12 -0
- package/dist/api/types/ContainerDetail.d.mts +2 -0
- package/dist/api/types/ContainerDetail.d.ts +2 -0
- package/dist/api/types/CostGroup.d.mts +2 -0
- package/dist/api/types/CostGroup.d.ts +2 -0
- package/dist/api/types/CostPair.d.mts +6 -0
- package/dist/api/types/CostPair.d.ts +6 -0
- package/dist/api/types/CostPair.js +17 -0
- package/dist/api/types/CostPair.mjs +1 -0
- package/dist/api/types/DatadogHygieneData.d.mts +1 -1
- package/dist/api/types/DatadogHygieneData.d.ts +1 -1
- package/dist/api/types/DatadogHygieneRule.d.mts +3 -1
- package/dist/api/types/DatadogHygieneRule.d.ts +3 -1
- package/dist/api/types/EfficiencyPoint.d.mts +6 -0
- package/dist/api/types/EfficiencyPoint.d.ts +6 -0
- package/dist/api/types/EksAddon.d.mts +7 -0
- package/dist/api/types/EksAddon.d.ts +7 -0
- package/dist/api/types/EksAddon.js +17 -0
- package/dist/api/types/EksAddon.mjs +1 -0
- package/dist/api/types/EksCluster.d.mts +34 -0
- package/dist/api/types/EksCluster.d.ts +34 -0
- package/dist/api/types/EksCluster.js +42 -0
- package/dist/api/types/EksCluster.mjs +18 -0
- package/dist/api/types/EksClusterConfig.d.mts +29 -0
- package/dist/api/types/EksClusterConfig.d.ts +29 -0
- package/dist/api/types/EksClusterConfig.js +17 -0
- package/dist/api/types/EksClusterConfig.mjs +1 -0
- package/dist/api/types/EksClusterResponse.d.mts +6 -0
- package/dist/api/types/EksClusterResponse.d.ts +6 -0
- package/dist/api/types/EksClusterResponse.js +17 -0
- package/dist/api/types/EksClusterResponse.mjs +1 -0
- package/dist/api/types/EksFleetData.d.mts +4 -0
- package/dist/api/types/EksFleetData.d.ts +4 -0
- package/dist/api/types/EksFleetData.js +17 -0
- package/dist/api/types/EksFleetData.mjs +1 -0
- package/dist/api/types/EksFleetResponse.d.mts +6 -0
- package/dist/api/types/EksFleetResponse.d.ts +6 -0
- package/dist/api/types/EksFleetResponse.js +17 -0
- package/dist/api/types/EksFleetResponse.mjs +1 -0
- package/dist/api/types/EksHealthIssue.d.mts +4 -0
- package/dist/api/types/EksHealthIssue.d.ts +4 -0
- package/dist/api/types/EksHealthIssue.js +17 -0
- package/dist/api/types/EksHealthIssue.mjs +1 -0
- package/dist/api/types/EksInsight.d.mts +9 -0
- package/dist/api/types/EksInsight.d.ts +9 -0
- package/dist/api/types/EksInsight.js +17 -0
- package/dist/api/types/EksInsight.mjs +1 -0
- package/dist/api/types/EksLogging.d.mts +7 -0
- package/dist/api/types/EksLogging.d.ts +7 -0
- package/dist/api/types/EksLogging.js +17 -0
- package/dist/api/types/EksLogging.mjs +1 -0
- package/dist/api/types/EksNetworking.d.mts +9 -0
- package/dist/api/types/EksNetworking.d.ts +9 -0
- package/dist/api/types/EksNetworking.js +17 -0
- package/dist/api/types/EksNetworking.mjs +1 -0
- package/dist/api/types/EksPodIdentity.d.mts +4 -0
- package/dist/api/types/EksPodIdentity.d.ts +4 -0
- package/dist/api/types/EksPodIdentity.js +17 -0
- package/dist/api/types/EksPodIdentity.mjs +1 -0
- package/dist/api/types/EksSupport.d.mts +8 -0
- package/dist/api/types/EksSupport.d.ts +8 -0
- package/dist/api/types/EksSupport.js +17 -0
- package/dist/api/types/EksSupport.mjs +1 -0
- package/dist/api/types/EksUnreadable.d.mts +5 -0
- package/dist/api/types/EksUnreadable.d.ts +5 -0
- package/dist/api/types/EksUnreadable.js +17 -0
- package/dist/api/types/EksUnreadable.mjs +1 -0
- package/dist/api/types/FleetNamespace.d.mts +78 -0
- package/dist/api/types/FleetNamespace.d.ts +78 -0
- package/dist/api/types/FleetNamespace.js +49 -0
- package/dist/api/types/FleetNamespace.mjs +25 -0
- package/dist/api/types/FleetNamespaceListData.d.mts +7 -0
- package/dist/api/types/FleetNamespaceListData.d.ts +7 -0
- package/dist/api/types/FleetNamespaceListData.js +17 -0
- package/dist/api/types/FleetNamespaceListData.mjs +1 -0
- package/dist/api/types/FleetNamespaceListResponse.d.mts +6 -0
- package/dist/api/types/FleetNamespaceListResponse.d.ts +6 -0
- package/dist/api/types/FleetNamespaceListResponse.js +17 -0
- package/dist/api/types/FleetNamespaceListResponse.mjs +1 -0
- package/dist/api/types/FleetNetworkDestinations.d.mts +5 -0
- package/dist/api/types/FleetNetworkDestinations.d.ts +5 -0
- package/dist/api/types/FleetNetworkDestinations.js +17 -0
- package/dist/api/types/FleetNetworkDestinations.mjs +1 -0
- package/dist/api/types/FleetNetworkDestinationsResponse.d.mts +6 -0
- package/dist/api/types/FleetNetworkDestinationsResponse.d.ts +6 -0
- package/dist/api/types/FleetNetworkDestinationsResponse.js +17 -0
- package/dist/api/types/FleetNetworkDestinationsResponse.mjs +1 -0
- package/dist/api/types/FleetStorage.d.mts +14 -0
- package/dist/api/types/FleetStorage.d.ts +14 -0
- package/dist/api/types/FleetStorage.js +17 -0
- package/dist/api/types/FleetStorage.mjs +1 -0
- package/dist/api/types/FleetSummary.d.mts +10 -0
- package/dist/api/types/FleetSummary.d.ts +10 -0
- package/dist/api/types/FleetTotals.d.mts +4 -0
- package/dist/api/types/FleetTotals.d.ts +4 -0
- package/dist/api/types/FleetWorkload.d.mts +18 -0
- package/dist/api/types/FleetWorkload.d.ts +18 -0
- package/dist/api/types/FleetWorkload.js +20 -0
- package/dist/api/types/FleetWorkload.mjs +12 -0
- package/dist/api/types/FleetWorkloadListData.d.mts +1 -1
- package/dist/api/types/FleetWorkloadListData.d.ts +1 -1
- package/dist/api/types/FleetWorkloadPair.d.mts +10 -0
- package/dist/api/types/FleetWorkloadPair.d.ts +10 -0
- package/dist/api/types/FleetWorkloadPair.js +17 -0
- package/dist/api/types/FleetWorkloadPair.mjs +1 -0
- package/dist/api/types/HardLimits.d.mts +7 -0
- package/dist/api/types/HardLimits.d.ts +7 -0
- package/dist/api/types/HardLimits.js +17 -0
- package/dist/api/types/HardLimits.mjs +1 -0
- package/dist/api/types/KubernetesDataAvailability.d.mts +2 -0
- package/dist/api/types/KubernetesDataAvailability.d.ts +2 -0
- package/dist/api/types/LensTotals.d.mts +12 -0
- package/dist/api/types/LensTotals.d.ts +12 -0
- package/dist/api/types/NamespaceAutomation.d.mts +17 -0
- package/dist/api/types/NamespaceAutomation.d.ts +17 -0
- package/dist/api/types/NamespaceAutomation.js +6 -0
- package/dist/api/types/NamespaceAutomation.mjs +6 -0
- package/dist/api/types/NamespaceItem.d.mts +14 -1
- package/dist/api/types/NamespaceItem.d.ts +14 -1
- package/dist/api/types/NamespaceItem.js +1 -0
- package/dist/api/types/NamespaceItem.mjs +1 -0
- package/dist/api/types/NamespaceScope.d.mts +3 -2
- package/dist/api/types/NamespaceScope.d.ts +3 -2
- package/dist/api/types/NamespaceScope.js +1 -0
- package/dist/api/types/NamespaceScope.mjs +1 -0
- package/dist/api/types/NetworkDayUsage.d.mts +2 -0
- package/dist/api/types/NetworkDayUsage.d.ts +2 -0
- package/dist/api/types/NodeConditionItem.d.mts +7 -0
- package/dist/api/types/NodeConditionItem.d.ts +7 -0
- package/dist/api/types/NodeConditionItem.js +17 -0
- package/dist/api/types/NodeConditionItem.mjs +1 -0
- package/dist/api/types/NodeDetail.d.mts +6 -0
- package/dist/api/types/NodeDetail.d.ts +6 -0
- package/dist/api/types/NodeFacets.d.mts +2 -0
- package/dist/api/types/NodeFacets.d.ts +2 -0
- package/dist/api/types/NodeInfoItem.d.mts +8 -0
- package/dist/api/types/NodeInfoItem.d.ts +8 -0
- package/dist/api/types/NodeInfoItem.js +17 -0
- package/dist/api/types/NodeInfoItem.mjs +1 -0
- package/dist/api/types/PodPhases.d.mts +6 -0
- package/dist/api/types/PodPhases.d.ts +6 -0
- package/dist/api/types/PodPhases.js +17 -0
- package/dist/api/types/PodPhases.mjs +1 -0
- package/dist/api/types/PoolBillEffect.d.mts +25 -0
- package/dist/api/types/PoolBillEffect.d.ts +25 -0
- package/dist/api/types/PoolBillEffect.js +35 -0
- package/dist/api/types/PoolBillEffect.mjs +11 -0
- package/dist/api/types/PotentialSavings.d.mts +5 -0
- package/dist/api/types/PotentialSavings.d.ts +5 -0
- package/dist/api/types/ProviderShare.d.mts +9 -0
- package/dist/api/types/ProviderShare.d.ts +9 -0
- package/dist/api/types/ProviderShare.js +17 -0
- package/dist/api/types/ProviderShare.mjs +1 -0
- package/dist/api/types/PurchaseTypeShare.d.mts +4 -0
- package/dist/api/types/PurchaseTypeShare.d.ts +4 -0
- package/dist/api/types/RealizedBlocker.d.mts +5 -0
- package/dist/api/types/RealizedBlocker.d.ts +5 -0
- package/dist/api/types/RealizedBlocker.js +17 -0
- package/dist/api/types/RealizedBlocker.mjs +1 -0
- package/dist/api/types/RealizedPool.d.mts +6 -0
- package/dist/api/types/RealizedPool.d.ts +6 -0
- package/dist/api/types/RealizedPool.js +17 -0
- package/dist/api/types/RealizedPool.mjs +1 -0
- package/dist/api/types/RealizedRightsizing.d.mts +12 -0
- package/dist/api/types/RealizedRightsizing.d.ts +12 -0
- package/dist/api/types/RealizedRightsizing.js +17 -0
- package/dist/api/types/RealizedRightsizing.mjs +1 -0
- package/dist/api/types/RealizedRightsizingResponse.d.mts +6 -0
- package/dist/api/types/RealizedRightsizingResponse.d.ts +6 -0
- package/dist/api/types/RealizedRightsizingResponse.js +17 -0
- package/dist/api/types/RealizedRightsizingResponse.mjs +1 -0
- package/dist/api/types/RealizedTotal.d.mts +4 -0
- package/dist/api/types/RealizedTotal.d.ts +4 -0
- package/dist/api/types/RealizedTotal.js +17 -0
- package/dist/api/types/RealizedTotal.mjs +1 -0
- package/dist/api/types/ReliabilityEventDay.d.mts +6 -0
- package/dist/api/types/ReliabilityEventDay.d.ts +6 -0
- package/dist/api/types/ReliabilityEventDay.js +17 -0
- package/dist/api/types/ReliabilityEventDay.mjs +1 -0
- package/dist/api/types/ReliabilityGroup.d.mts +9 -0
- package/dist/api/types/ReliabilityGroup.d.ts +9 -0
- package/dist/api/types/ReliabilityGroup.js +17 -0
- package/dist/api/types/ReliabilityGroup.mjs +1 -0
- package/dist/api/types/ReliabilityLens.d.mts +2 -0
- package/dist/api/types/ReliabilityLens.d.ts +2 -0
- package/dist/api/types/ResourceCapacity.d.mts +12 -0
- package/dist/api/types/ResourceCapacity.d.ts +12 -0
- package/dist/api/types/ResourceCapacity.js +17 -0
- package/dist/api/types/ResourceCapacity.mjs +1 -0
- package/dist/api/types/ResourceEfficiency.d.mts +3 -1
- package/dist/api/types/ResourceEfficiency.d.ts +3 -1
- package/dist/api/types/RightsizeGuardrails.d.mts +9 -0
- package/dist/api/types/RightsizeGuardrails.d.ts +9 -0
- package/dist/api/types/RightsizeGuardrails.js +17 -0
- package/dist/api/types/RightsizeGuardrails.mjs +1 -0
- package/dist/api/types/RightsizeGuardrailsChange.d.mts +9 -0
- package/dist/api/types/RightsizeGuardrailsChange.d.ts +9 -0
- package/dist/api/types/RightsizeGuardrailsChange.js +17 -0
- package/dist/api/types/RightsizeGuardrailsChange.mjs +1 -0
- package/dist/api/types/RightsizedContainer.d.mts +132 -0
- package/dist/api/types/RightsizedContainer.d.ts +132 -0
- package/dist/api/types/RightsizedContainer.js +99 -0
- package/dist/api/types/RightsizedContainer.mjs +75 -0
- package/dist/api/types/RightsizedContainerList.d.mts +5 -0
- package/dist/api/types/RightsizedContainerList.d.ts +5 -0
- package/dist/api/types/RightsizedContainerList.js +17 -0
- package/dist/api/types/RightsizedContainerList.mjs +1 -0
- package/dist/api/types/RightsizedContainerListResponse.d.mts +6 -0
- package/dist/api/types/RightsizedContainerListResponse.d.ts +6 -0
- package/dist/api/types/RightsizedContainerListResponse.js +17 -0
- package/dist/api/types/RightsizedContainerListResponse.mjs +1 -0
- 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/SavingsByKind.d.mts +11 -0
- package/dist/api/types/SavingsByKind.d.ts +11 -0
- package/dist/api/types/SavingsByKind.js +17 -0
- package/dist/api/types/SavingsByKind.mjs +1 -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/SetAutomationRequest.d.mts +5 -2
- package/dist/api/types/SetAutomationRequest.d.ts +5 -2
- package/dist/api/types/SetNamespaceAutomationRequest.d.mts +8 -0
- package/dist/api/types/SetNamespaceAutomationRequest.d.ts +8 -0
- package/dist/api/types/SetNamespaceAutomationRequest.js +5 -0
- package/dist/api/types/SetNamespaceAutomationRequest.mjs +5 -0
- package/dist/api/types/SetWorkloadAutomationRequest.d.mts +12 -0
- package/dist/api/types/SetWorkloadAutomationRequest.d.ts +12 -0
- package/dist/api/types/SetWorkloadAutomationRequest.js +35 -0
- package/dist/api/types/SetWorkloadAutomationRequest.mjs +11 -0
- package/dist/api/types/SourcedValue.d.mts +11 -0
- package/dist/api/types/SourcedValue.d.ts +11 -0
- package/dist/api/types/SourcedValue.js +17 -0
- package/dist/api/types/SourcedValue.mjs +1 -0
- package/dist/api/types/SpendDay.d.mts +14 -0
- package/dist/api/types/SpendDay.d.ts +14 -0
- package/dist/api/types/SpendKpis.d.mts +12 -0
- package/dist/api/types/SpendKpis.d.ts +12 -0
- package/dist/api/types/SpendUnitCost.d.mts +6 -0
- package/dist/api/types/SpendUnitCost.d.ts +6 -0
- package/dist/api/types/StopAndRevertRequest.d.mts +3 -0
- package/dist/api/types/StopAndRevertRequest.d.ts +3 -0
- package/dist/api/types/StopAndRevertRequest.js +17 -0
- package/dist/api/types/StopAndRevertRequest.mjs +1 -0
- package/dist/api/types/StorageClassTotals.d.mts +14 -0
- package/dist/api/types/StorageClassTotals.d.ts +14 -0
- package/dist/api/types/StorageClassTotals.js +17 -0
- package/dist/api/types/StorageClassTotals.mjs +1 -0
- package/dist/api/types/StorageClassUsage.d.mts +2 -0
- package/dist/api/types/StorageClassUsage.d.ts +2 -0
- package/dist/api/types/Traffic.d.mts +2 -0
- package/dist/api/types/Traffic.d.ts +2 -0
- package/dist/api/types/Waste.d.mts +6 -0
- package/dist/api/types/Waste.d.ts +6 -0
- package/dist/api/types/WasteDay.d.mts +6 -0
- package/dist/api/types/WasteDay.d.ts +6 -0
- package/dist/api/types/WasteTotal.d.mts +2 -0
- package/dist/api/types/WasteTotal.d.ts +2 -0
- package/dist/api/types/WorkloadAutomation.d.mts +15 -0
- package/dist/api/types/WorkloadAutomation.d.ts +15 -0
- package/dist/api/types/WorkloadAutomation.js +35 -0
- package/dist/api/types/WorkloadAutomation.mjs +11 -0
- package/dist/api/types/WorkloadAutomationResponse.d.mts +6 -0
- package/dist/api/types/WorkloadAutomationResponse.d.ts +6 -0
- package/dist/api/types/WorkloadAutomationResponse.js +17 -0
- package/dist/api/types/WorkloadAutomationResponse.mjs +1 -0
- package/dist/api/types/WorkloadDay.d.mts +8 -0
- package/dist/api/types/WorkloadDay.d.ts +8 -0
- package/dist/api/types/WorkloadItem.d.mts +14 -0
- package/dist/api/types/WorkloadItem.d.ts +14 -0
- package/dist/api/types/WorkloadVolume.d.mts +2 -0
- package/dist/api/types/WorkloadVolume.d.ts +2 -0
- package/dist/api/types/index.d.mts +78 -0
- package/dist/api/types/index.d.ts +78 -0
- package/dist/api/types/index.js +156 -0
- package/dist/api/types/index.mjs +78 -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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
2
|
-
import { mergeHeaders } from "../../../../core/headers.mjs";
|
|
2
|
+
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
|
|
3
3
|
import * as core from "../../../../core/index.mjs";
|
|
4
4
|
import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.mjs";
|
|
5
5
|
import * as errors from "../../../../errors/index.mjs";
|
|
@@ -1220,6 +1220,339 @@ class AnthropicClient {
|
|
|
1220
1220
|
"/api/v1/providers/anthropic/usage/adoption"
|
|
1221
1221
|
);
|
|
1222
1222
|
}
|
|
1223
|
+
/**
|
|
1224
|
+
* 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.
|
|
1225
|
+
*
|
|
1226
|
+
* @param {LevelFour.GetUsagePeopleApiV1ProvidersAnthropicUsagePeopleGetRequest} request
|
|
1227
|
+
* @param {AnthropicClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1228
|
+
*
|
|
1229
|
+
* @throws {@link LevelFour.BadRequestError}
|
|
1230
|
+
* @throws {@link LevelFour.UnauthorizedError}
|
|
1231
|
+
* @throws {@link LevelFour.ForbiddenError}
|
|
1232
|
+
* @throws {@link LevelFour.NotFoundError}
|
|
1233
|
+
* @throws {@link LevelFour.ConflictError}
|
|
1234
|
+
* @throws {@link LevelFour.UnprocessableEntityError}
|
|
1235
|
+
* @throws {@link LevelFour.TooManyRequestsError}
|
|
1236
|
+
* @throws {@link LevelFour.InternalServerError}
|
|
1237
|
+
*
|
|
1238
|
+
* @example
|
|
1239
|
+
* await client.anthropic.getUsagePeople({
|
|
1240
|
+
* asked: {},
|
|
1241
|
+
* start: "start",
|
|
1242
|
+
* end: "end"
|
|
1243
|
+
* })
|
|
1244
|
+
*/
|
|
1245
|
+
getUsagePeople(request, requestOptions) {
|
|
1246
|
+
return core.HttpResponsePromise.fromPromise(this.__getUsagePeople(request, requestOptions));
|
|
1247
|
+
}
|
|
1248
|
+
async __getUsagePeople(request, requestOptions) {
|
|
1249
|
+
const { asked, start, end } = request;
|
|
1250
|
+
const _queryParams = {
|
|
1251
|
+
asked,
|
|
1252
|
+
start,
|
|
1253
|
+
end
|
|
1254
|
+
};
|
|
1255
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
1256
|
+
const _headers = mergeHeaders(
|
|
1257
|
+
_authRequest.headers,
|
|
1258
|
+
this._options?.headers,
|
|
1259
|
+
requestOptions?.headers
|
|
1260
|
+
);
|
|
1261
|
+
const _response = await core.fetcher({
|
|
1262
|
+
url: core.url.join(
|
|
1263
|
+
await core.Supplier.get(this._options.baseUrl) ?? await core.Supplier.get(this._options.environment),
|
|
1264
|
+
"api/v1/providers/anthropic/usage/people"
|
|
1265
|
+
),
|
|
1266
|
+
method: "GET",
|
|
1267
|
+
headers: _headers,
|
|
1268
|
+
queryParameters: { ..._queryParams, ...requestOptions?.queryParams },
|
|
1269
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1e3,
|
|
1270
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
1271
|
+
abortSignal: requestOptions?.abortSignal,
|
|
1272
|
+
fetchFn: this._options?.fetch,
|
|
1273
|
+
logging: this._options.logging
|
|
1274
|
+
});
|
|
1275
|
+
if (_response.ok) {
|
|
1276
|
+
return {
|
|
1277
|
+
data: _response.body,
|
|
1278
|
+
rawResponse: _response.rawResponse
|
|
1279
|
+
};
|
|
1280
|
+
}
|
|
1281
|
+
if (_response.error.reason === "status-code") {
|
|
1282
|
+
switch (_response.error.statusCode) {
|
|
1283
|
+
case 400:
|
|
1284
|
+
throw new LevelFour.BadRequestError(
|
|
1285
|
+
_response.error.body,
|
|
1286
|
+
_response.rawResponse
|
|
1287
|
+
);
|
|
1288
|
+
case 401:
|
|
1289
|
+
throw new LevelFour.UnauthorizedError(
|
|
1290
|
+
_response.error.body,
|
|
1291
|
+
_response.rawResponse
|
|
1292
|
+
);
|
|
1293
|
+
case 403:
|
|
1294
|
+
throw new LevelFour.ForbiddenError(
|
|
1295
|
+
_response.error.body,
|
|
1296
|
+
_response.rawResponse
|
|
1297
|
+
);
|
|
1298
|
+
case 404:
|
|
1299
|
+
throw new LevelFour.NotFoundError(
|
|
1300
|
+
_response.error.body,
|
|
1301
|
+
_response.rawResponse
|
|
1302
|
+
);
|
|
1303
|
+
case 409:
|
|
1304
|
+
throw new LevelFour.ConflictError(
|
|
1305
|
+
_response.error.body,
|
|
1306
|
+
_response.rawResponse
|
|
1307
|
+
);
|
|
1308
|
+
case 422:
|
|
1309
|
+
throw new LevelFour.UnprocessableEntityError(
|
|
1310
|
+
_response.error.body,
|
|
1311
|
+
_response.rawResponse
|
|
1312
|
+
);
|
|
1313
|
+
case 429:
|
|
1314
|
+
throw new LevelFour.TooManyRequestsError(
|
|
1315
|
+
_response.error.body,
|
|
1316
|
+
_response.rawResponse
|
|
1317
|
+
);
|
|
1318
|
+
case 500:
|
|
1319
|
+
throw new LevelFour.InternalServerError(
|
|
1320
|
+
_response.error.body,
|
|
1321
|
+
_response.rawResponse
|
|
1322
|
+
);
|
|
1323
|
+
default:
|
|
1324
|
+
throw new errors.LevelFourError({
|
|
1325
|
+
statusCode: _response.error.statusCode,
|
|
1326
|
+
body: _response.error.body,
|
|
1327
|
+
rawResponse: _response.rawResponse
|
|
1328
|
+
});
|
|
1329
|
+
}
|
|
1330
|
+
}
|
|
1331
|
+
return handleNonStatusCodeError(
|
|
1332
|
+
_response.error,
|
|
1333
|
+
_response.rawResponse,
|
|
1334
|
+
"GET",
|
|
1335
|
+
"/api/v1/providers/anthropic/usage/people"
|
|
1336
|
+
);
|
|
1337
|
+
}
|
|
1338
|
+
/**
|
|
1339
|
+
* 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.
|
|
1340
|
+
*
|
|
1341
|
+
* @param {LevelFour.GetUsagePersonApiV1ProvidersAnthropicUsagePeoplePersonGetRequest} request
|
|
1342
|
+
* @param {AnthropicClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1343
|
+
*
|
|
1344
|
+
* @throws {@link LevelFour.BadRequestError}
|
|
1345
|
+
* @throws {@link LevelFour.UnauthorizedError}
|
|
1346
|
+
* @throws {@link LevelFour.ForbiddenError}
|
|
1347
|
+
* @throws {@link LevelFour.NotFoundError}
|
|
1348
|
+
* @throws {@link LevelFour.ConflictError}
|
|
1349
|
+
* @throws {@link LevelFour.UnprocessableEntityError}
|
|
1350
|
+
* @throws {@link LevelFour.TooManyRequestsError}
|
|
1351
|
+
* @throws {@link LevelFour.InternalServerError}
|
|
1352
|
+
*
|
|
1353
|
+
* @example
|
|
1354
|
+
* await client.anthropic.getUsagePerson({
|
|
1355
|
+
* person: "person"
|
|
1356
|
+
* })
|
|
1357
|
+
*/
|
|
1358
|
+
getUsagePerson(request, requestOptions) {
|
|
1359
|
+
return core.HttpResponsePromise.fromPromise(this.__getUsagePerson(request, requestOptions));
|
|
1360
|
+
}
|
|
1361
|
+
async __getUsagePerson(request, requestOptions) {
|
|
1362
|
+
const { person } = request;
|
|
1363
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
1364
|
+
const _headers = mergeHeaders(
|
|
1365
|
+
_authRequest.headers,
|
|
1366
|
+
this._options?.headers,
|
|
1367
|
+
requestOptions?.headers
|
|
1368
|
+
);
|
|
1369
|
+
const _response = await core.fetcher({
|
|
1370
|
+
url: core.url.join(
|
|
1371
|
+
await core.Supplier.get(this._options.baseUrl) ?? await core.Supplier.get(this._options.environment),
|
|
1372
|
+
`api/v1/providers/anthropic/usage/people/${core.url.encodePathParam(person)}`
|
|
1373
|
+
),
|
|
1374
|
+
method: "GET",
|
|
1375
|
+
headers: _headers,
|
|
1376
|
+
queryParameters: requestOptions?.queryParams,
|
|
1377
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1e3,
|
|
1378
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
1379
|
+
abortSignal: requestOptions?.abortSignal,
|
|
1380
|
+
fetchFn: this._options?.fetch,
|
|
1381
|
+
logging: this._options.logging
|
|
1382
|
+
});
|
|
1383
|
+
if (_response.ok) {
|
|
1384
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
1385
|
+
}
|
|
1386
|
+
if (_response.error.reason === "status-code") {
|
|
1387
|
+
switch (_response.error.statusCode) {
|
|
1388
|
+
case 400:
|
|
1389
|
+
throw new LevelFour.BadRequestError(
|
|
1390
|
+
_response.error.body,
|
|
1391
|
+
_response.rawResponse
|
|
1392
|
+
);
|
|
1393
|
+
case 401:
|
|
1394
|
+
throw new LevelFour.UnauthorizedError(
|
|
1395
|
+
_response.error.body,
|
|
1396
|
+
_response.rawResponse
|
|
1397
|
+
);
|
|
1398
|
+
case 403:
|
|
1399
|
+
throw new LevelFour.ForbiddenError(
|
|
1400
|
+
_response.error.body,
|
|
1401
|
+
_response.rawResponse
|
|
1402
|
+
);
|
|
1403
|
+
case 404:
|
|
1404
|
+
throw new LevelFour.NotFoundError(
|
|
1405
|
+
_response.error.body,
|
|
1406
|
+
_response.rawResponse
|
|
1407
|
+
);
|
|
1408
|
+
case 409:
|
|
1409
|
+
throw new LevelFour.ConflictError(
|
|
1410
|
+
_response.error.body,
|
|
1411
|
+
_response.rawResponse
|
|
1412
|
+
);
|
|
1413
|
+
case 422:
|
|
1414
|
+
throw new LevelFour.UnprocessableEntityError(
|
|
1415
|
+
_response.error.body,
|
|
1416
|
+
_response.rawResponse
|
|
1417
|
+
);
|
|
1418
|
+
case 429:
|
|
1419
|
+
throw new LevelFour.TooManyRequestsError(
|
|
1420
|
+
_response.error.body,
|
|
1421
|
+
_response.rawResponse
|
|
1422
|
+
);
|
|
1423
|
+
case 500:
|
|
1424
|
+
throw new LevelFour.InternalServerError(
|
|
1425
|
+
_response.error.body,
|
|
1426
|
+
_response.rawResponse
|
|
1427
|
+
);
|
|
1428
|
+
default:
|
|
1429
|
+
throw new errors.LevelFourError({
|
|
1430
|
+
statusCode: _response.error.statusCode,
|
|
1431
|
+
body: _response.error.body,
|
|
1432
|
+
rawResponse: _response.rawResponse
|
|
1433
|
+
});
|
|
1434
|
+
}
|
|
1435
|
+
}
|
|
1436
|
+
return handleNonStatusCodeError(
|
|
1437
|
+
_response.error,
|
|
1438
|
+
_response.rawResponse,
|
|
1439
|
+
"GET",
|
|
1440
|
+
"/api/v1/providers/anthropic/usage/people/{person}"
|
|
1441
|
+
);
|
|
1442
|
+
}
|
|
1443
|
+
/**
|
|
1444
|
+
* 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.
|
|
1445
|
+
*
|
|
1446
|
+
* @param {LevelFour.GetUsagePersonSessionsApiV1ProvidersAnthropicUsagePeoplePersonSessionsGetRequest} request
|
|
1447
|
+
* @param {AnthropicClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1448
|
+
*
|
|
1449
|
+
* @throws {@link LevelFour.BadRequestError}
|
|
1450
|
+
* @throws {@link LevelFour.UnauthorizedError}
|
|
1451
|
+
* @throws {@link LevelFour.ForbiddenError}
|
|
1452
|
+
* @throws {@link LevelFour.NotFoundError}
|
|
1453
|
+
* @throws {@link LevelFour.ConflictError}
|
|
1454
|
+
* @throws {@link LevelFour.UnprocessableEntityError}
|
|
1455
|
+
* @throws {@link LevelFour.TooManyRequestsError}
|
|
1456
|
+
* @throws {@link LevelFour.InternalServerError}
|
|
1457
|
+
*
|
|
1458
|
+
* @example
|
|
1459
|
+
* await client.anthropic.getUsagePersonSessions({
|
|
1460
|
+
* person: "person",
|
|
1461
|
+
* asked: {},
|
|
1462
|
+
* start: "start",
|
|
1463
|
+
* end: "end"
|
|
1464
|
+
* })
|
|
1465
|
+
*/
|
|
1466
|
+
getUsagePersonSessions(request, requestOptions) {
|
|
1467
|
+
return core.HttpResponsePromise.fromPromise(this.__getUsagePersonSessions(request, requestOptions));
|
|
1468
|
+
}
|
|
1469
|
+
async __getUsagePersonSessions(request, requestOptions) {
|
|
1470
|
+
const { person, asked, start, end } = request;
|
|
1471
|
+
const _queryParams = {
|
|
1472
|
+
asked,
|
|
1473
|
+
start,
|
|
1474
|
+
end
|
|
1475
|
+
};
|
|
1476
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
1477
|
+
const _headers = mergeHeaders(
|
|
1478
|
+
_authRequest.headers,
|
|
1479
|
+
this._options?.headers,
|
|
1480
|
+
requestOptions?.headers
|
|
1481
|
+
);
|
|
1482
|
+
const _response = await core.fetcher({
|
|
1483
|
+
url: core.url.join(
|
|
1484
|
+
await core.Supplier.get(this._options.baseUrl) ?? await core.Supplier.get(this._options.environment),
|
|
1485
|
+
`api/v1/providers/anthropic/usage/people/${core.url.encodePathParam(person)}/sessions`
|
|
1486
|
+
),
|
|
1487
|
+
method: "GET",
|
|
1488
|
+
headers: _headers,
|
|
1489
|
+
queryParameters: { ..._queryParams, ...requestOptions?.queryParams },
|
|
1490
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1e3,
|
|
1491
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
1492
|
+
abortSignal: requestOptions?.abortSignal,
|
|
1493
|
+
fetchFn: this._options?.fetch,
|
|
1494
|
+
logging: this._options.logging
|
|
1495
|
+
});
|
|
1496
|
+
if (_response.ok) {
|
|
1497
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
1498
|
+
}
|
|
1499
|
+
if (_response.error.reason === "status-code") {
|
|
1500
|
+
switch (_response.error.statusCode) {
|
|
1501
|
+
case 400:
|
|
1502
|
+
throw new LevelFour.BadRequestError(
|
|
1503
|
+
_response.error.body,
|
|
1504
|
+
_response.rawResponse
|
|
1505
|
+
);
|
|
1506
|
+
case 401:
|
|
1507
|
+
throw new LevelFour.UnauthorizedError(
|
|
1508
|
+
_response.error.body,
|
|
1509
|
+
_response.rawResponse
|
|
1510
|
+
);
|
|
1511
|
+
case 403:
|
|
1512
|
+
throw new LevelFour.ForbiddenError(
|
|
1513
|
+
_response.error.body,
|
|
1514
|
+
_response.rawResponse
|
|
1515
|
+
);
|
|
1516
|
+
case 404:
|
|
1517
|
+
throw new LevelFour.NotFoundError(
|
|
1518
|
+
_response.error.body,
|
|
1519
|
+
_response.rawResponse
|
|
1520
|
+
);
|
|
1521
|
+
case 409:
|
|
1522
|
+
throw new LevelFour.ConflictError(
|
|
1523
|
+
_response.error.body,
|
|
1524
|
+
_response.rawResponse
|
|
1525
|
+
);
|
|
1526
|
+
case 422:
|
|
1527
|
+
throw new LevelFour.UnprocessableEntityError(
|
|
1528
|
+
_response.error.body,
|
|
1529
|
+
_response.rawResponse
|
|
1530
|
+
);
|
|
1531
|
+
case 429:
|
|
1532
|
+
throw new LevelFour.TooManyRequestsError(
|
|
1533
|
+
_response.error.body,
|
|
1534
|
+
_response.rawResponse
|
|
1535
|
+
);
|
|
1536
|
+
case 500:
|
|
1537
|
+
throw new LevelFour.InternalServerError(
|
|
1538
|
+
_response.error.body,
|
|
1539
|
+
_response.rawResponse
|
|
1540
|
+
);
|
|
1541
|
+
default:
|
|
1542
|
+
throw new errors.LevelFourError({
|
|
1543
|
+
statusCode: _response.error.statusCode,
|
|
1544
|
+
body: _response.error.body,
|
|
1545
|
+
rawResponse: _response.rawResponse
|
|
1546
|
+
});
|
|
1547
|
+
}
|
|
1548
|
+
}
|
|
1549
|
+
return handleNonStatusCodeError(
|
|
1550
|
+
_response.error,
|
|
1551
|
+
_response.rawResponse,
|
|
1552
|
+
"GET",
|
|
1553
|
+
"/api/v1/providers/anthropic/usage/people/{person}/sessions"
|
|
1554
|
+
);
|
|
1555
|
+
}
|
|
1223
1556
|
/**
|
|
1224
1557
|
* 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.
|
|
1225
1558
|
*
|
|
@@ -1352,11 +1685,12 @@ class AnthropicClient {
|
|
|
1352
1685
|
return core.HttpResponsePromise.fromPromise(this.__getTeamPeople(request, requestOptions));
|
|
1353
1686
|
}
|
|
1354
1687
|
async __getTeamPeople(request = {}, requestOptions) {
|
|
1355
|
-
const { page, page_size: pageSize, search, seat, product, recommendation, sort, order, format } = request;
|
|
1688
|
+
const { page, page_size: pageSize, search, area, seat, product, recommendation, sort, order, format } = request;
|
|
1356
1689
|
const _queryParams = {
|
|
1357
1690
|
page,
|
|
1358
1691
|
page_size: pageSize,
|
|
1359
1692
|
search,
|
|
1693
|
+
area,
|
|
1360
1694
|
seat: seat !== void 0 ? seat : void 0,
|
|
1361
1695
|
product,
|
|
1362
1696
|
recommendation: recommendation !== void 0 ? recommendation : void 0,
|
|
@@ -1545,6 +1879,225 @@ class AnthropicClient {
|
|
|
1545
1879
|
"/api/v1/providers/anthropic/team/settings"
|
|
1546
1880
|
);
|
|
1547
1881
|
}
|
|
1882
|
+
/**
|
|
1883
|
+
* 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.
|
|
1884
|
+
*
|
|
1885
|
+
* @param {AnthropicClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1886
|
+
*
|
|
1887
|
+
* @throws {@link LevelFour.BadRequestError}
|
|
1888
|
+
* @throws {@link LevelFour.UnauthorizedError}
|
|
1889
|
+
* @throws {@link LevelFour.ForbiddenError}
|
|
1890
|
+
* @throws {@link LevelFour.NotFoundError}
|
|
1891
|
+
* @throws {@link LevelFour.ConflictError}
|
|
1892
|
+
* @throws {@link LevelFour.UnprocessableEntityError}
|
|
1893
|
+
* @throws {@link LevelFour.TooManyRequestsError}
|
|
1894
|
+
* @throws {@link LevelFour.InternalServerError}
|
|
1895
|
+
*
|
|
1896
|
+
* @example
|
|
1897
|
+
* await client.anthropic.getTeamAreas()
|
|
1898
|
+
*/
|
|
1899
|
+
getTeamAreas(requestOptions) {
|
|
1900
|
+
return core.HttpResponsePromise.fromPromise(this.__getTeamAreas(requestOptions));
|
|
1901
|
+
}
|
|
1902
|
+
async __getTeamAreas(requestOptions) {
|
|
1903
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
1904
|
+
const _headers = mergeHeaders(
|
|
1905
|
+
_authRequest.headers,
|
|
1906
|
+
this._options?.headers,
|
|
1907
|
+
requestOptions?.headers
|
|
1908
|
+
);
|
|
1909
|
+
const _response = await core.fetcher({
|
|
1910
|
+
url: core.url.join(
|
|
1911
|
+
await core.Supplier.get(this._options.baseUrl) ?? await core.Supplier.get(this._options.environment),
|
|
1912
|
+
"api/v1/providers/anthropic/team/areas"
|
|
1913
|
+
),
|
|
1914
|
+
method: "GET",
|
|
1915
|
+
headers: _headers,
|
|
1916
|
+
queryParameters: requestOptions?.queryParams,
|
|
1917
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1e3,
|
|
1918
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
1919
|
+
abortSignal: requestOptions?.abortSignal,
|
|
1920
|
+
fetchFn: this._options?.fetch,
|
|
1921
|
+
logging: this._options.logging
|
|
1922
|
+
});
|
|
1923
|
+
if (_response.ok) {
|
|
1924
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
1925
|
+
}
|
|
1926
|
+
if (_response.error.reason === "status-code") {
|
|
1927
|
+
switch (_response.error.statusCode) {
|
|
1928
|
+
case 400:
|
|
1929
|
+
throw new LevelFour.BadRequestError(
|
|
1930
|
+
_response.error.body,
|
|
1931
|
+
_response.rawResponse
|
|
1932
|
+
);
|
|
1933
|
+
case 401:
|
|
1934
|
+
throw new LevelFour.UnauthorizedError(
|
|
1935
|
+
_response.error.body,
|
|
1936
|
+
_response.rawResponse
|
|
1937
|
+
);
|
|
1938
|
+
case 403:
|
|
1939
|
+
throw new LevelFour.ForbiddenError(
|
|
1940
|
+
_response.error.body,
|
|
1941
|
+
_response.rawResponse
|
|
1942
|
+
);
|
|
1943
|
+
case 404:
|
|
1944
|
+
throw new LevelFour.NotFoundError(
|
|
1945
|
+
_response.error.body,
|
|
1946
|
+
_response.rawResponse
|
|
1947
|
+
);
|
|
1948
|
+
case 409:
|
|
1949
|
+
throw new LevelFour.ConflictError(
|
|
1950
|
+
_response.error.body,
|
|
1951
|
+
_response.rawResponse
|
|
1952
|
+
);
|
|
1953
|
+
case 422:
|
|
1954
|
+
throw new LevelFour.UnprocessableEntityError(
|
|
1955
|
+
_response.error.body,
|
|
1956
|
+
_response.rawResponse
|
|
1957
|
+
);
|
|
1958
|
+
case 429:
|
|
1959
|
+
throw new LevelFour.TooManyRequestsError(
|
|
1960
|
+
_response.error.body,
|
|
1961
|
+
_response.rawResponse
|
|
1962
|
+
);
|
|
1963
|
+
case 500:
|
|
1964
|
+
throw new LevelFour.InternalServerError(
|
|
1965
|
+
_response.error.body,
|
|
1966
|
+
_response.rawResponse
|
|
1967
|
+
);
|
|
1968
|
+
default:
|
|
1969
|
+
throw new errors.LevelFourError({
|
|
1970
|
+
statusCode: _response.error.statusCode,
|
|
1971
|
+
body: _response.error.body,
|
|
1972
|
+
rawResponse: _response.rawResponse
|
|
1973
|
+
});
|
|
1974
|
+
}
|
|
1975
|
+
}
|
|
1976
|
+
return handleNonStatusCodeError(
|
|
1977
|
+
_response.error,
|
|
1978
|
+
_response.rawResponse,
|
|
1979
|
+
"GET",
|
|
1980
|
+
"/api/v1/providers/anthropic/team/areas"
|
|
1981
|
+
);
|
|
1982
|
+
}
|
|
1983
|
+
/**
|
|
1984
|
+
* 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.
|
|
1985
|
+
*
|
|
1986
|
+
* @param {LevelFour.BodyPreviewTeamAreasApiV1ProvidersAnthropicTeamAreasPreviewPost} request
|
|
1987
|
+
* @param {AnthropicClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1988
|
+
*
|
|
1989
|
+
* @throws {@link LevelFour.BadRequestError}
|
|
1990
|
+
* @throws {@link LevelFour.UnauthorizedError}
|
|
1991
|
+
* @throws {@link LevelFour.ForbiddenError}
|
|
1992
|
+
* @throws {@link LevelFour.NotFoundError}
|
|
1993
|
+
* @throws {@link LevelFour.ConflictError}
|
|
1994
|
+
* @throws {@link LevelFour.UnprocessableEntityError}
|
|
1995
|
+
* @throws {@link LevelFour.TooManyRequestsError}
|
|
1996
|
+
* @throws {@link LevelFour.InternalServerError}
|
|
1997
|
+
*
|
|
1998
|
+
* @example
|
|
1999
|
+
* import { createReadStream } from "fs";
|
|
2000
|
+
* await client.anthropic.previewTeamAreas({
|
|
2001
|
+
* file: fs.createReadStream("/path/to/your/file")
|
|
2002
|
+
* })
|
|
2003
|
+
*/
|
|
2004
|
+
previewTeamAreas(request, requestOptions) {
|
|
2005
|
+
return core.HttpResponsePromise.fromPromise(this.__previewTeamAreas(request, requestOptions));
|
|
2006
|
+
}
|
|
2007
|
+
async __previewTeamAreas(request, requestOptions) {
|
|
2008
|
+
const _body = await core.newFormData();
|
|
2009
|
+
await _body.appendFile("file", request.file);
|
|
2010
|
+
if (request.key != null) {
|
|
2011
|
+
_body.append("key", request.key);
|
|
2012
|
+
}
|
|
2013
|
+
const _maybeEncodedRequest = await _body.getRequest();
|
|
2014
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
2015
|
+
const _headers = mergeHeaders(
|
|
2016
|
+
_authRequest.headers,
|
|
2017
|
+
this._options?.headers,
|
|
2018
|
+
mergeOnlyDefinedHeaders({ ..._maybeEncodedRequest.headers }),
|
|
2019
|
+
requestOptions?.headers
|
|
2020
|
+
);
|
|
2021
|
+
const _response = await core.fetcher({
|
|
2022
|
+
url: core.url.join(
|
|
2023
|
+
await core.Supplier.get(this._options.baseUrl) ?? await core.Supplier.get(this._options.environment),
|
|
2024
|
+
"api/v1/providers/anthropic/team/areas/preview"
|
|
2025
|
+
),
|
|
2026
|
+
method: "POST",
|
|
2027
|
+
headers: _headers,
|
|
2028
|
+
queryParameters: requestOptions?.queryParams,
|
|
2029
|
+
requestType: "file",
|
|
2030
|
+
duplex: _maybeEncodedRequest.duplex,
|
|
2031
|
+
body: _maybeEncodedRequest.body,
|
|
2032
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1e3,
|
|
2033
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
2034
|
+
abortSignal: requestOptions?.abortSignal,
|
|
2035
|
+
fetchFn: this._options?.fetch,
|
|
2036
|
+
logging: this._options.logging
|
|
2037
|
+
});
|
|
2038
|
+
if (_response.ok) {
|
|
2039
|
+
return {
|
|
2040
|
+
data: _response.body,
|
|
2041
|
+
rawResponse: _response.rawResponse
|
|
2042
|
+
};
|
|
2043
|
+
}
|
|
2044
|
+
if (_response.error.reason === "status-code") {
|
|
2045
|
+
switch (_response.error.statusCode) {
|
|
2046
|
+
case 400:
|
|
2047
|
+
throw new LevelFour.BadRequestError(
|
|
2048
|
+
_response.error.body,
|
|
2049
|
+
_response.rawResponse
|
|
2050
|
+
);
|
|
2051
|
+
case 401:
|
|
2052
|
+
throw new LevelFour.UnauthorizedError(
|
|
2053
|
+
_response.error.body,
|
|
2054
|
+
_response.rawResponse
|
|
2055
|
+
);
|
|
2056
|
+
case 403:
|
|
2057
|
+
throw new LevelFour.ForbiddenError(
|
|
2058
|
+
_response.error.body,
|
|
2059
|
+
_response.rawResponse
|
|
2060
|
+
);
|
|
2061
|
+
case 404:
|
|
2062
|
+
throw new LevelFour.NotFoundError(
|
|
2063
|
+
_response.error.body,
|
|
2064
|
+
_response.rawResponse
|
|
2065
|
+
);
|
|
2066
|
+
case 409:
|
|
2067
|
+
throw new LevelFour.ConflictError(
|
|
2068
|
+
_response.error.body,
|
|
2069
|
+
_response.rawResponse
|
|
2070
|
+
);
|
|
2071
|
+
case 422:
|
|
2072
|
+
throw new LevelFour.UnprocessableEntityError(
|
|
2073
|
+
_response.error.body,
|
|
2074
|
+
_response.rawResponse
|
|
2075
|
+
);
|
|
2076
|
+
case 429:
|
|
2077
|
+
throw new LevelFour.TooManyRequestsError(
|
|
2078
|
+
_response.error.body,
|
|
2079
|
+
_response.rawResponse
|
|
2080
|
+
);
|
|
2081
|
+
case 500:
|
|
2082
|
+
throw new LevelFour.InternalServerError(
|
|
2083
|
+
_response.error.body,
|
|
2084
|
+
_response.rawResponse
|
|
2085
|
+
);
|
|
2086
|
+
default:
|
|
2087
|
+
throw new errors.LevelFourError({
|
|
2088
|
+
statusCode: _response.error.statusCode,
|
|
2089
|
+
body: _response.error.body,
|
|
2090
|
+
rawResponse: _response.rawResponse
|
|
2091
|
+
});
|
|
2092
|
+
}
|
|
2093
|
+
}
|
|
2094
|
+
return handleNonStatusCodeError(
|
|
2095
|
+
_response.error,
|
|
2096
|
+
_response.rawResponse,
|
|
2097
|
+
"POST",
|
|
2098
|
+
"/api/v1/providers/anthropic/team/areas/preview"
|
|
2099
|
+
);
|
|
2100
|
+
}
|
|
1548
2101
|
}
|
|
1549
2102
|
export {
|
|
1550
2103
|
AnthropicClient
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as core from "../../../../../core/index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* file: fs.createReadStream("/path/to/your/file")
|
|
6
|
+
* }
|
|
7
|
+
*/
|
|
8
|
+
export interface BodyPreviewTeamAreasApiV1ProvidersAnthropicTeamAreasPreviewPost {
|
|
9
|
+
file: core.file.Uploadable;
|
|
10
|
+
key?: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as core from "../../../../../core/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* file: fs.createReadStream("/path/to/your/file")
|
|
6
|
+
* }
|
|
7
|
+
*/
|
|
8
|
+
export interface BodyPreviewTeamAreasApiV1ProvidersAnthropicTeamAreasPreviewPost {
|
|
9
|
+
file: core.file.Uploadable;
|
|
10
|
+
key?: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
var BodyPreviewTeamAreasApiV1ProvidersAnthropicTeamAreasPreviewPost_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(BodyPreviewTeamAreasApiV1ProvidersAnthropicTeamAreasPreviewPost_exports);
|
|
17
|
+
//# sourceMappingURL=BodyPreviewTeamAreasApiV1ProvidersAnthropicTeamAreasPreviewPost.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=BodyPreviewTeamAreasApiV1ProvidersAnthropicTeamAreasPreviewPost.mjs.map
|
|
@@ -8,6 +8,8 @@ export interface GetTeamPeopleApiV1ProvidersAnthropicTeamPeopleGetRequest {
|
|
|
8
8
|
page_size?: number;
|
|
9
9
|
/** Keep the people whose email or name holds this */
|
|
10
10
|
search?: string;
|
|
11
|
+
/** Keep the people of this area, or none for the people with no area */
|
|
12
|
+
area?: string | null;
|
|
11
13
|
seat?: LevelFour.GetTeamPeopleApiV1ProvidersAnthropicTeamPeopleGetRequestSeat | null;
|
|
12
14
|
/** Keep the people whose main product this is */
|
|
13
15
|
product?: string | null;
|
|
@@ -8,6 +8,8 @@ export interface GetTeamPeopleApiV1ProvidersAnthropicTeamPeopleGetRequest {
|
|
|
8
8
|
page_size?: number;
|
|
9
9
|
/** Keep the people whose email or name holds this */
|
|
10
10
|
search?: string;
|
|
11
|
+
/** Keep the people of this area, or none for the people with no area */
|
|
12
|
+
area?: string | null;
|
|
11
13
|
seat?: LevelFour.GetTeamPeopleApiV1ProvidersAnthropicTeamPeopleGetRequestSeat | null;
|
|
12
14
|
/** Keep the people whose main product this is */
|
|
13
15
|
product?: string | null;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type * as LevelFour from "../../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* asked: {},
|
|
6
|
+
* start: "start",
|
|
7
|
+
* end: "end"
|
|
8
|
+
* }
|
|
9
|
+
*/
|
|
10
|
+
export interface GetUsagePeopleApiV1ProvidersAnthropicUsagePeopleGetRequest {
|
|
11
|
+
asked: LevelFour.RosterAsked;
|
|
12
|
+
/** First day, ISO 8601 (YYYY-MM-DD or a datetime) */
|
|
13
|
+
start: string;
|
|
14
|
+
/** Last day, ISO 8601 (YYYY-MM-DD or a datetime), included */
|
|
15
|
+
end: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type * as LevelFour from "../../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* asked: {},
|
|
6
|
+
* start: "start",
|
|
7
|
+
* end: "end"
|
|
8
|
+
* }
|
|
9
|
+
*/
|
|
10
|
+
export interface GetUsagePeopleApiV1ProvidersAnthropicUsagePeopleGetRequest {
|
|
11
|
+
asked: LevelFour.RosterAsked;
|
|
12
|
+
/** First day, ISO 8601 (YYYY-MM-DD or a datetime) */
|
|
13
|
+
start: string;
|
|
14
|
+
/** Last day, ISO 8601 (YYYY-MM-DD or a datetime), included */
|
|
15
|
+
end: string;
|
|
16
|
+
}
|