levelfour 1.4.0 → 1.5.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 +62 -0
- package/dist/api/resources/anthropic/client/Client.d.ts +62 -0
- package/dist/api/resources/anthropic/client/Client.js +325 -0
- package/dist/api/resources/anthropic/client/Client.mjs +325 -0
- package/dist/api/resources/anthropic/client/requests/GetTeamPeopleApiV1ProvidersAnthropicTeamPeopleGetRequest.d.mts +19 -0
- package/dist/api/resources/anthropic/client/requests/GetTeamPeopleApiV1ProvidersAnthropicTeamPeopleGetRequest.d.ts +19 -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/index.d.mts +2 -0
- package/dist/api/resources/anthropic/client/requests/index.d.ts +2 -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 +11 -0
- package/dist/api/resources/anthropic/types/GetTeamPeopleApiV1ProvidersAnthropicTeamPeopleGetRequestSort.d.ts +11 -0
- package/dist/api/resources/anthropic/types/GetTeamPeopleApiV1ProvidersAnthropicTeamPeopleGetRequestSort.js +38 -0
- package/dist/api/resources/anthropic/types/GetTeamPeopleApiV1ProvidersAnthropicTeamPeopleGetRequestSort.mjs +14 -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/ClaudeTeamDowngradeRule.d.mts +7 -0
- package/dist/api/types/ClaudeTeamDowngradeRule.d.ts +7 -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 +7 -0
- package/dist/api/types/ClaudeTeamRemoveRule.d.ts +7 -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 +7 -0
- package/dist/api/types/ClaudeTeamUpgradeRule.d.ts +7 -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/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 +14 -0
- package/dist/api/types/index.d.ts +14 -0
- package/dist/api/types/index.js +28 -0
- package/dist/api/types/index.mjs +14 -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
|
@@ -255,4 +255,66 @@ export declare class AnthropicClient {
|
|
|
255
255
|
*/
|
|
256
256
|
getUsageAdoption(request: LevelFour.GetUsageAdoptionApiV1ProvidersAnthropicUsageAdoptionGetRequest, requestOptions?: AnthropicClient.RequestOptions): core.HttpResponsePromise<LevelFour.AnthropicAdoptionResponse>;
|
|
257
257
|
private __getUsageAdoption;
|
|
258
|
+
/**
|
|
259
|
+
* What a Claude Team plan cost in the range, seats and extra usage apart, from the Members lists and spend reports uploaded for it, and how that moved against the range of the same length before. seats is the latest Members list. savings_found adds up what the seat changes /team/people recommends save a month. monthly is the last six months through the end of the range. Before the first upload, has_members and has_spend are false and every figure is zero.
|
|
260
|
+
*
|
|
261
|
+
* @param {LevelFour.GetTeamSummaryApiV1ProvidersAnthropicTeamSummaryGetRequest} request
|
|
262
|
+
* @param {AnthropicClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
263
|
+
*
|
|
264
|
+
* @throws {@link LevelFour.BadRequestError}
|
|
265
|
+
* @throws {@link LevelFour.UnauthorizedError}
|
|
266
|
+
* @throws {@link LevelFour.ForbiddenError}
|
|
267
|
+
* @throws {@link LevelFour.NotFoundError}
|
|
268
|
+
* @throws {@link LevelFour.ConflictError}
|
|
269
|
+
* @throws {@link LevelFour.UnprocessableEntityError}
|
|
270
|
+
* @throws {@link LevelFour.TooManyRequestsError}
|
|
271
|
+
* @throws {@link LevelFour.InternalServerError}
|
|
272
|
+
*
|
|
273
|
+
* @example
|
|
274
|
+
* await client.anthropic.getTeamSummary({
|
|
275
|
+
* start: "start",
|
|
276
|
+
* end: "end"
|
|
277
|
+
* })
|
|
278
|
+
*/
|
|
279
|
+
getTeamSummary(request: LevelFour.GetTeamSummaryApiV1ProvidersAnthropicTeamSummaryGetRequest, requestOptions?: AnthropicClient.RequestOptions): core.HttpResponsePromise<LevelFour.ClaudeTeamSummaryResponse>;
|
|
280
|
+
private __getTeamSummary;
|
|
281
|
+
/**
|
|
282
|
+
* 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.
|
|
283
|
+
*
|
|
284
|
+
* @param {LevelFour.GetTeamPeopleApiV1ProvidersAnthropicTeamPeopleGetRequest} request
|
|
285
|
+
* @param {AnthropicClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
286
|
+
*
|
|
287
|
+
* @throws {@link LevelFour.BadRequestError}
|
|
288
|
+
* @throws {@link LevelFour.UnauthorizedError}
|
|
289
|
+
* @throws {@link LevelFour.ForbiddenError}
|
|
290
|
+
* @throws {@link LevelFour.NotFoundError}
|
|
291
|
+
* @throws {@link LevelFour.ConflictError}
|
|
292
|
+
* @throws {@link LevelFour.UnprocessableEntityError}
|
|
293
|
+
* @throws {@link LevelFour.TooManyRequestsError}
|
|
294
|
+
* @throws {@link LevelFour.InternalServerError}
|
|
295
|
+
*
|
|
296
|
+
* @example
|
|
297
|
+
* await client.anthropic.getTeamPeople()
|
|
298
|
+
*/
|
|
299
|
+
getTeamPeople(request?: LevelFour.GetTeamPeopleApiV1ProvidersAnthropicTeamPeopleGetRequest, requestOptions?: AnthropicClient.RequestOptions): core.HttpResponsePromise<LevelFour.ClaudeTeamPeopleResponse>;
|
|
300
|
+
private __getTeamPeople;
|
|
301
|
+
/**
|
|
302
|
+
* 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.
|
|
303
|
+
*
|
|
304
|
+
* @param {AnthropicClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
305
|
+
*
|
|
306
|
+
* @throws {@link LevelFour.BadRequestError}
|
|
307
|
+
* @throws {@link LevelFour.UnauthorizedError}
|
|
308
|
+
* @throws {@link LevelFour.ForbiddenError}
|
|
309
|
+
* @throws {@link LevelFour.NotFoundError}
|
|
310
|
+
* @throws {@link LevelFour.ConflictError}
|
|
311
|
+
* @throws {@link LevelFour.UnprocessableEntityError}
|
|
312
|
+
* @throws {@link LevelFour.TooManyRequestsError}
|
|
313
|
+
* @throws {@link LevelFour.InternalServerError}
|
|
314
|
+
*
|
|
315
|
+
* @example
|
|
316
|
+
* await client.anthropic.getTeamSettings()
|
|
317
|
+
*/
|
|
318
|
+
getTeamSettings(requestOptions?: AnthropicClient.RequestOptions): core.HttpResponsePromise<LevelFour.ClaudeTeamSettingsResponse>;
|
|
319
|
+
private __getTeamSettings;
|
|
258
320
|
}
|
|
@@ -255,4 +255,66 @@ export declare class AnthropicClient {
|
|
|
255
255
|
*/
|
|
256
256
|
getUsageAdoption(request: LevelFour.GetUsageAdoptionApiV1ProvidersAnthropicUsageAdoptionGetRequest, requestOptions?: AnthropicClient.RequestOptions): core.HttpResponsePromise<LevelFour.AnthropicAdoptionResponse>;
|
|
257
257
|
private __getUsageAdoption;
|
|
258
|
+
/**
|
|
259
|
+
* What a Claude Team plan cost in the range, seats and extra usage apart, from the Members lists and spend reports uploaded for it, and how that moved against the range of the same length before. seats is the latest Members list. savings_found adds up what the seat changes /team/people recommends save a month. monthly is the last six months through the end of the range. Before the first upload, has_members and has_spend are false and every figure is zero.
|
|
260
|
+
*
|
|
261
|
+
* @param {LevelFour.GetTeamSummaryApiV1ProvidersAnthropicTeamSummaryGetRequest} request
|
|
262
|
+
* @param {AnthropicClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
263
|
+
*
|
|
264
|
+
* @throws {@link LevelFour.BadRequestError}
|
|
265
|
+
* @throws {@link LevelFour.UnauthorizedError}
|
|
266
|
+
* @throws {@link LevelFour.ForbiddenError}
|
|
267
|
+
* @throws {@link LevelFour.NotFoundError}
|
|
268
|
+
* @throws {@link LevelFour.ConflictError}
|
|
269
|
+
* @throws {@link LevelFour.UnprocessableEntityError}
|
|
270
|
+
* @throws {@link LevelFour.TooManyRequestsError}
|
|
271
|
+
* @throws {@link LevelFour.InternalServerError}
|
|
272
|
+
*
|
|
273
|
+
* @example
|
|
274
|
+
* await client.anthropic.getTeamSummary({
|
|
275
|
+
* start: "start",
|
|
276
|
+
* end: "end"
|
|
277
|
+
* })
|
|
278
|
+
*/
|
|
279
|
+
getTeamSummary(request: LevelFour.GetTeamSummaryApiV1ProvidersAnthropicTeamSummaryGetRequest, requestOptions?: AnthropicClient.RequestOptions): core.HttpResponsePromise<LevelFour.ClaudeTeamSummaryResponse>;
|
|
280
|
+
private __getTeamSummary;
|
|
281
|
+
/**
|
|
282
|
+
* 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.
|
|
283
|
+
*
|
|
284
|
+
* @param {LevelFour.GetTeamPeopleApiV1ProvidersAnthropicTeamPeopleGetRequest} request
|
|
285
|
+
* @param {AnthropicClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
286
|
+
*
|
|
287
|
+
* @throws {@link LevelFour.BadRequestError}
|
|
288
|
+
* @throws {@link LevelFour.UnauthorizedError}
|
|
289
|
+
* @throws {@link LevelFour.ForbiddenError}
|
|
290
|
+
* @throws {@link LevelFour.NotFoundError}
|
|
291
|
+
* @throws {@link LevelFour.ConflictError}
|
|
292
|
+
* @throws {@link LevelFour.UnprocessableEntityError}
|
|
293
|
+
* @throws {@link LevelFour.TooManyRequestsError}
|
|
294
|
+
* @throws {@link LevelFour.InternalServerError}
|
|
295
|
+
*
|
|
296
|
+
* @example
|
|
297
|
+
* await client.anthropic.getTeamPeople()
|
|
298
|
+
*/
|
|
299
|
+
getTeamPeople(request?: LevelFour.GetTeamPeopleApiV1ProvidersAnthropicTeamPeopleGetRequest, requestOptions?: AnthropicClient.RequestOptions): core.HttpResponsePromise<LevelFour.ClaudeTeamPeopleResponse>;
|
|
300
|
+
private __getTeamPeople;
|
|
301
|
+
/**
|
|
302
|
+
* 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.
|
|
303
|
+
*
|
|
304
|
+
* @param {AnthropicClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
305
|
+
*
|
|
306
|
+
* @throws {@link LevelFour.BadRequestError}
|
|
307
|
+
* @throws {@link LevelFour.UnauthorizedError}
|
|
308
|
+
* @throws {@link LevelFour.ForbiddenError}
|
|
309
|
+
* @throws {@link LevelFour.NotFoundError}
|
|
310
|
+
* @throws {@link LevelFour.ConflictError}
|
|
311
|
+
* @throws {@link LevelFour.UnprocessableEntityError}
|
|
312
|
+
* @throws {@link LevelFour.TooManyRequestsError}
|
|
313
|
+
* @throws {@link LevelFour.InternalServerError}
|
|
314
|
+
*
|
|
315
|
+
* @example
|
|
316
|
+
* await client.anthropic.getTeamSettings()
|
|
317
|
+
*/
|
|
318
|
+
getTeamSettings(requestOptions?: AnthropicClient.RequestOptions): core.HttpResponsePromise<LevelFour.ClaudeTeamSettingsResponse>;
|
|
319
|
+
private __getTeamSettings;
|
|
258
320
|
}
|
|
@@ -1253,6 +1253,331 @@ class AnthropicClient {
|
|
|
1253
1253
|
"/api/v1/providers/anthropic/usage/adoption"
|
|
1254
1254
|
);
|
|
1255
1255
|
}
|
|
1256
|
+
/**
|
|
1257
|
+
* 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.
|
|
1258
|
+
*
|
|
1259
|
+
* @param {LevelFour.GetTeamSummaryApiV1ProvidersAnthropicTeamSummaryGetRequest} 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.getTeamSummary({
|
|
1273
|
+
* start: "start",
|
|
1274
|
+
* end: "end"
|
|
1275
|
+
* })
|
|
1276
|
+
*/
|
|
1277
|
+
getTeamSummary(request, requestOptions) {
|
|
1278
|
+
return core.HttpResponsePromise.fromPromise(this.__getTeamSummary(request, requestOptions));
|
|
1279
|
+
}
|
|
1280
|
+
async __getTeamSummary(request, requestOptions) {
|
|
1281
|
+
const { start, end } = request;
|
|
1282
|
+
const _queryParams = {
|
|
1283
|
+
start,
|
|
1284
|
+
end
|
|
1285
|
+
};
|
|
1286
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
1287
|
+
const _headers = (0, import_headers.mergeHeaders)(
|
|
1288
|
+
_authRequest.headers,
|
|
1289
|
+
this._options?.headers,
|
|
1290
|
+
requestOptions?.headers
|
|
1291
|
+
);
|
|
1292
|
+
const _response = await core.fetcher({
|
|
1293
|
+
url: core.url.join(
|
|
1294
|
+
await core.Supplier.get(this._options.baseUrl) ?? await core.Supplier.get(this._options.environment),
|
|
1295
|
+
"api/v1/providers/anthropic/team/summary"
|
|
1296
|
+
),
|
|
1297
|
+
method: "GET",
|
|
1298
|
+
headers: _headers,
|
|
1299
|
+
queryParameters: { ..._queryParams, ...requestOptions?.queryParams },
|
|
1300
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1e3,
|
|
1301
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
1302
|
+
abortSignal: requestOptions?.abortSignal,
|
|
1303
|
+
fetchFn: this._options?.fetch,
|
|
1304
|
+
logging: this._options.logging
|
|
1305
|
+
});
|
|
1306
|
+
if (_response.ok) {
|
|
1307
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
1308
|
+
}
|
|
1309
|
+
if (_response.error.reason === "status-code") {
|
|
1310
|
+
switch (_response.error.statusCode) {
|
|
1311
|
+
case 400:
|
|
1312
|
+
throw new LevelFour.BadRequestError(
|
|
1313
|
+
_response.error.body,
|
|
1314
|
+
_response.rawResponse
|
|
1315
|
+
);
|
|
1316
|
+
case 401:
|
|
1317
|
+
throw new LevelFour.UnauthorizedError(
|
|
1318
|
+
_response.error.body,
|
|
1319
|
+
_response.rawResponse
|
|
1320
|
+
);
|
|
1321
|
+
case 403:
|
|
1322
|
+
throw new LevelFour.ForbiddenError(
|
|
1323
|
+
_response.error.body,
|
|
1324
|
+
_response.rawResponse
|
|
1325
|
+
);
|
|
1326
|
+
case 404:
|
|
1327
|
+
throw new LevelFour.NotFoundError(
|
|
1328
|
+
_response.error.body,
|
|
1329
|
+
_response.rawResponse
|
|
1330
|
+
);
|
|
1331
|
+
case 409:
|
|
1332
|
+
throw new LevelFour.ConflictError(
|
|
1333
|
+
_response.error.body,
|
|
1334
|
+
_response.rawResponse
|
|
1335
|
+
);
|
|
1336
|
+
case 422:
|
|
1337
|
+
throw new LevelFour.UnprocessableEntityError(
|
|
1338
|
+
_response.error.body,
|
|
1339
|
+
_response.rawResponse
|
|
1340
|
+
);
|
|
1341
|
+
case 429:
|
|
1342
|
+
throw new LevelFour.TooManyRequestsError(
|
|
1343
|
+
_response.error.body,
|
|
1344
|
+
_response.rawResponse
|
|
1345
|
+
);
|
|
1346
|
+
case 500:
|
|
1347
|
+
throw new LevelFour.InternalServerError(
|
|
1348
|
+
_response.error.body,
|
|
1349
|
+
_response.rawResponse
|
|
1350
|
+
);
|
|
1351
|
+
default:
|
|
1352
|
+
throw new errors.LevelFourError({
|
|
1353
|
+
statusCode: _response.error.statusCode,
|
|
1354
|
+
body: _response.error.body,
|
|
1355
|
+
rawResponse: _response.rawResponse
|
|
1356
|
+
});
|
|
1357
|
+
}
|
|
1358
|
+
}
|
|
1359
|
+
return (0, import_handleNonStatusCodeError.handleNonStatusCodeError)(
|
|
1360
|
+
_response.error,
|
|
1361
|
+
_response.rawResponse,
|
|
1362
|
+
"GET",
|
|
1363
|
+
"/api/v1/providers/anthropic/team/summary"
|
|
1364
|
+
);
|
|
1365
|
+
}
|
|
1366
|
+
/**
|
|
1367
|
+
* 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.
|
|
1368
|
+
*
|
|
1369
|
+
* @param {LevelFour.GetTeamPeopleApiV1ProvidersAnthropicTeamPeopleGetRequest} request
|
|
1370
|
+
* @param {AnthropicClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1371
|
+
*
|
|
1372
|
+
* @throws {@link LevelFour.BadRequestError}
|
|
1373
|
+
* @throws {@link LevelFour.UnauthorizedError}
|
|
1374
|
+
* @throws {@link LevelFour.ForbiddenError}
|
|
1375
|
+
* @throws {@link LevelFour.NotFoundError}
|
|
1376
|
+
* @throws {@link LevelFour.ConflictError}
|
|
1377
|
+
* @throws {@link LevelFour.UnprocessableEntityError}
|
|
1378
|
+
* @throws {@link LevelFour.TooManyRequestsError}
|
|
1379
|
+
* @throws {@link LevelFour.InternalServerError}
|
|
1380
|
+
*
|
|
1381
|
+
* @example
|
|
1382
|
+
* await client.anthropic.getTeamPeople()
|
|
1383
|
+
*/
|
|
1384
|
+
getTeamPeople(request = {}, requestOptions) {
|
|
1385
|
+
return core.HttpResponsePromise.fromPromise(this.__getTeamPeople(request, requestOptions));
|
|
1386
|
+
}
|
|
1387
|
+
async __getTeamPeople(request = {}, requestOptions) {
|
|
1388
|
+
const { page, page_size: pageSize, search, seat, product, recommendation, sort, order, format } = request;
|
|
1389
|
+
const _queryParams = {
|
|
1390
|
+
page,
|
|
1391
|
+
page_size: pageSize,
|
|
1392
|
+
search,
|
|
1393
|
+
seat: seat !== void 0 ? seat : void 0,
|
|
1394
|
+
product,
|
|
1395
|
+
recommendation: recommendation !== void 0 ? recommendation : void 0,
|
|
1396
|
+
sort: sort != null ? sort : void 0,
|
|
1397
|
+
order: order != null ? order : void 0,
|
|
1398
|
+
format: format != null ? format : void 0
|
|
1399
|
+
};
|
|
1400
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
1401
|
+
const _headers = (0, import_headers.mergeHeaders)(
|
|
1402
|
+
_authRequest.headers,
|
|
1403
|
+
this._options?.headers,
|
|
1404
|
+
requestOptions?.headers
|
|
1405
|
+
);
|
|
1406
|
+
const _response = await core.fetcher({
|
|
1407
|
+
url: core.url.join(
|
|
1408
|
+
await core.Supplier.get(this._options.baseUrl) ?? await core.Supplier.get(this._options.environment),
|
|
1409
|
+
"api/v1/providers/anthropic/team/people"
|
|
1410
|
+
),
|
|
1411
|
+
method: "GET",
|
|
1412
|
+
headers: _headers,
|
|
1413
|
+
queryParameters: { ..._queryParams, ...requestOptions?.queryParams },
|
|
1414
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1e3,
|
|
1415
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
1416
|
+
abortSignal: requestOptions?.abortSignal,
|
|
1417
|
+
fetchFn: this._options?.fetch,
|
|
1418
|
+
logging: this._options.logging
|
|
1419
|
+
});
|
|
1420
|
+
if (_response.ok) {
|
|
1421
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
1422
|
+
}
|
|
1423
|
+
if (_response.error.reason === "status-code") {
|
|
1424
|
+
switch (_response.error.statusCode) {
|
|
1425
|
+
case 400:
|
|
1426
|
+
throw new LevelFour.BadRequestError(
|
|
1427
|
+
_response.error.body,
|
|
1428
|
+
_response.rawResponse
|
|
1429
|
+
);
|
|
1430
|
+
case 401:
|
|
1431
|
+
throw new LevelFour.UnauthorizedError(
|
|
1432
|
+
_response.error.body,
|
|
1433
|
+
_response.rawResponse
|
|
1434
|
+
);
|
|
1435
|
+
case 403:
|
|
1436
|
+
throw new LevelFour.ForbiddenError(
|
|
1437
|
+
_response.error.body,
|
|
1438
|
+
_response.rawResponse
|
|
1439
|
+
);
|
|
1440
|
+
case 404:
|
|
1441
|
+
throw new LevelFour.NotFoundError(
|
|
1442
|
+
_response.error.body,
|
|
1443
|
+
_response.rawResponse
|
|
1444
|
+
);
|
|
1445
|
+
case 409:
|
|
1446
|
+
throw new LevelFour.ConflictError(
|
|
1447
|
+
_response.error.body,
|
|
1448
|
+
_response.rawResponse
|
|
1449
|
+
);
|
|
1450
|
+
case 422:
|
|
1451
|
+
throw new LevelFour.UnprocessableEntityError(
|
|
1452
|
+
_response.error.body,
|
|
1453
|
+
_response.rawResponse
|
|
1454
|
+
);
|
|
1455
|
+
case 429:
|
|
1456
|
+
throw new LevelFour.TooManyRequestsError(
|
|
1457
|
+
_response.error.body,
|
|
1458
|
+
_response.rawResponse
|
|
1459
|
+
);
|
|
1460
|
+
case 500:
|
|
1461
|
+
throw new LevelFour.InternalServerError(
|
|
1462
|
+
_response.error.body,
|
|
1463
|
+
_response.rawResponse
|
|
1464
|
+
);
|
|
1465
|
+
default:
|
|
1466
|
+
throw new errors.LevelFourError({
|
|
1467
|
+
statusCode: _response.error.statusCode,
|
|
1468
|
+
body: _response.error.body,
|
|
1469
|
+
rawResponse: _response.rawResponse
|
|
1470
|
+
});
|
|
1471
|
+
}
|
|
1472
|
+
}
|
|
1473
|
+
return (0, import_handleNonStatusCodeError.handleNonStatusCodeError)(
|
|
1474
|
+
_response.error,
|
|
1475
|
+
_response.rawResponse,
|
|
1476
|
+
"GET",
|
|
1477
|
+
"/api/v1/providers/anthropic/team/people"
|
|
1478
|
+
);
|
|
1479
|
+
}
|
|
1480
|
+
/**
|
|
1481
|
+
* 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.
|
|
1482
|
+
*
|
|
1483
|
+
* @param {AnthropicClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1484
|
+
*
|
|
1485
|
+
* @throws {@link LevelFour.BadRequestError}
|
|
1486
|
+
* @throws {@link LevelFour.UnauthorizedError}
|
|
1487
|
+
* @throws {@link LevelFour.ForbiddenError}
|
|
1488
|
+
* @throws {@link LevelFour.NotFoundError}
|
|
1489
|
+
* @throws {@link LevelFour.ConflictError}
|
|
1490
|
+
* @throws {@link LevelFour.UnprocessableEntityError}
|
|
1491
|
+
* @throws {@link LevelFour.TooManyRequestsError}
|
|
1492
|
+
* @throws {@link LevelFour.InternalServerError}
|
|
1493
|
+
*
|
|
1494
|
+
* @example
|
|
1495
|
+
* await client.anthropic.getTeamSettings()
|
|
1496
|
+
*/
|
|
1497
|
+
getTeamSettings(requestOptions) {
|
|
1498
|
+
return core.HttpResponsePromise.fromPromise(this.__getTeamSettings(requestOptions));
|
|
1499
|
+
}
|
|
1500
|
+
async __getTeamSettings(requestOptions) {
|
|
1501
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
1502
|
+
const _headers = (0, import_headers.mergeHeaders)(
|
|
1503
|
+
_authRequest.headers,
|
|
1504
|
+
this._options?.headers,
|
|
1505
|
+
requestOptions?.headers
|
|
1506
|
+
);
|
|
1507
|
+
const _response = await core.fetcher({
|
|
1508
|
+
url: core.url.join(
|
|
1509
|
+
await core.Supplier.get(this._options.baseUrl) ?? await core.Supplier.get(this._options.environment),
|
|
1510
|
+
"api/v1/providers/anthropic/team/settings"
|
|
1511
|
+
),
|
|
1512
|
+
method: "GET",
|
|
1513
|
+
headers: _headers,
|
|
1514
|
+
queryParameters: requestOptions?.queryParams,
|
|
1515
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1e3,
|
|
1516
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
1517
|
+
abortSignal: requestOptions?.abortSignal,
|
|
1518
|
+
fetchFn: this._options?.fetch,
|
|
1519
|
+
logging: this._options.logging
|
|
1520
|
+
});
|
|
1521
|
+
if (_response.ok) {
|
|
1522
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
1523
|
+
}
|
|
1524
|
+
if (_response.error.reason === "status-code") {
|
|
1525
|
+
switch (_response.error.statusCode) {
|
|
1526
|
+
case 400:
|
|
1527
|
+
throw new LevelFour.BadRequestError(
|
|
1528
|
+
_response.error.body,
|
|
1529
|
+
_response.rawResponse
|
|
1530
|
+
);
|
|
1531
|
+
case 401:
|
|
1532
|
+
throw new LevelFour.UnauthorizedError(
|
|
1533
|
+
_response.error.body,
|
|
1534
|
+
_response.rawResponse
|
|
1535
|
+
);
|
|
1536
|
+
case 403:
|
|
1537
|
+
throw new LevelFour.ForbiddenError(
|
|
1538
|
+
_response.error.body,
|
|
1539
|
+
_response.rawResponse
|
|
1540
|
+
);
|
|
1541
|
+
case 404:
|
|
1542
|
+
throw new LevelFour.NotFoundError(
|
|
1543
|
+
_response.error.body,
|
|
1544
|
+
_response.rawResponse
|
|
1545
|
+
);
|
|
1546
|
+
case 409:
|
|
1547
|
+
throw new LevelFour.ConflictError(
|
|
1548
|
+
_response.error.body,
|
|
1549
|
+
_response.rawResponse
|
|
1550
|
+
);
|
|
1551
|
+
case 422:
|
|
1552
|
+
throw new LevelFour.UnprocessableEntityError(
|
|
1553
|
+
_response.error.body,
|
|
1554
|
+
_response.rawResponse
|
|
1555
|
+
);
|
|
1556
|
+
case 429:
|
|
1557
|
+
throw new LevelFour.TooManyRequestsError(
|
|
1558
|
+
_response.error.body,
|
|
1559
|
+
_response.rawResponse
|
|
1560
|
+
);
|
|
1561
|
+
case 500:
|
|
1562
|
+
throw new LevelFour.InternalServerError(
|
|
1563
|
+
_response.error.body,
|
|
1564
|
+
_response.rawResponse
|
|
1565
|
+
);
|
|
1566
|
+
default:
|
|
1567
|
+
throw new errors.LevelFourError({
|
|
1568
|
+
statusCode: _response.error.statusCode,
|
|
1569
|
+
body: _response.error.body,
|
|
1570
|
+
rawResponse: _response.rawResponse
|
|
1571
|
+
});
|
|
1572
|
+
}
|
|
1573
|
+
}
|
|
1574
|
+
return (0, import_handleNonStatusCodeError.handleNonStatusCodeError)(
|
|
1575
|
+
_response.error,
|
|
1576
|
+
_response.rawResponse,
|
|
1577
|
+
"GET",
|
|
1578
|
+
"/api/v1/providers/anthropic/team/settings"
|
|
1579
|
+
);
|
|
1580
|
+
}
|
|
1256
1581
|
}
|
|
1257
1582
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1258
1583
|
0 && (module.exports = {
|