The whole hunk
from line 170, old and new numbered
/
lines
from line 170
170170
171171 - `"weekly"`
172172
173 - `scope: User or SeatTier or RBACGroup or 2 more`
173 - `scope: User or SeatTier or RBACGroup or 3 more`
174174
175175 What the limit applies to. A tagged union on `type`; each variant carries the identifier for its scope.
176176
from line 218
218218
219219 default: organization
220220
221 - `Workspace object`
222
223 Scope selecting one workspace of a Claude Console organization.
224
225 - `type: "workspace"`
226
227 Scope type. Always `workspace` for this scope.
228
229 default: workspace
230
231 - `workspace_id: string`
232
233 Tagged ID of the workspace the spend limit applies to.
234
221235 - `updated_at: string`
222236
223237 RFC 3339 datetime at which the spend limit was last modified.
from line 242
228242
229243 Per-member effective-limit report row (`GET /spend_limits/effective`).
230244
231 - `actor: object`
245 - `actor: UserActor or ScopedAPIKeyActor`
232246
233 A user within the organization. `name` and `email_address` are
234 null when the underlying account is unavailable or has been deleted;
235 `deleted` is true only for deleted accounts.
247 - `UserActor object`
236248
237 - `type: "user_actor"`
249 A user within the organization. `name` and `email_address` are
250 null when the underlying account is unavailable or has been deleted;
251 `deleted` is true only for deleted accounts.
238252
239 Actor type. Always `user_actor`.
253 - `type: "user_actor"`
240254
241 default: user_actor
255 Actor type. Always `user_actor`.
242256
243 - `deleted: boolean`
257 default: user_actor
244258
245 True only when the underlying account has been deleted.
259 - `deleted: boolean`
246260
247 default: false
261 True only when the underlying account has been deleted.
248262
249 - `email_address: string or null`
263 default: false
250264
251 The user's email address. Null when the account is unavailable or has been deleted.
265 - `email_address: string or null`
252266
253 - `name: string or null`
267 The user's email address. Null when the account is unavailable or has been deleted.
254268
255 The user's current display name. Null when the account is unavailable, has been deleted, or has no name set.
269 - `name: string or null`
256270
257 - `user_id: string`
271 The user's current display name. Null when the account is unavailable, has been deleted, or has no name set.
258272
259 Tagged ID of the user.
273 - `user_id: string`
260274
275 Tagged ID of the user.
276
277 - `ScopedAPIKeyActor object`
278
279 A scoped Admin API key acting on behalf of the organization.
280
281 - `type: "scoped_api_key_actor"`
282
283 default: scoped_api_key_actor
284
285 - `scoped_api_key_id: string`
286
261287 - `amount: string or null`
262288
263289 Effective limit amount as a non-negative integer decimal string in the minor unit of `currency` (cents for USD). `null` means no limit applies for this row's `period` — each period resolves independently, so another period may still cap this member.
from line 306
280306
281307 The member's spend so far in the current period, as a non-negative decimal string in the minor unit of `currency` (cents for USD). May carry fractional minor units up to three decimal places (e.g. `"12050.5"`) — metered usage is not rounded to whole cents. Reads as `"0"` when the spend reading is temporarily unavailable.
282308
283 - `scope: object`
309 - `scope: User or SeatTier or RBACGroup or 3 more`
284310
285 Scope selecting a single member of the organization.
311 - `User object`
286312
287 - `type: "user"`
313 Scope selecting a single member of the organization.
288314
289 Scope type. Always `user` for this scope.
315 - `type: "user"`
290316
291 default: user
317 Scope type. Always `user` for this scope.
292318
293 - `user_id: string`
319 default: user
294320
295 Tagged ID of the member the spend limit applies to.
321 - `user_id: string`
296322
297 - `source: User or SeatTier or RBACGroup or 2 more`
323 Tagged ID of the member the spend limit applies to.
298324
325 - `SeatTier object`
326
327 - `type: "seat_tier"`
328
329 default: seat_tier
330
331 - `seat_tier: string`
332
333 - `RBACGroup object`
334
335 - `type: "rbac_group"`
336
337 default: rbac_group
338
339 - `rbac_group_id: string`
340
341 - `OrganizationService object`
342
343 - `type: "organization_service"`
344
345 default: organization_service
346
347 - `service: string`
348
349 - `Organization object`
350
351 - `type: "organization"`
352
353 default: organization
354
355 - `Workspace object`
356
357 Scope selecting one workspace of a Claude Console organization.
358
359 - `type: "workspace"`
360
361 Scope type. Always `workspace` for this scope.
362
363 default: workspace
364
365 - `workspace_id: string`
366
367 Tagged ID of the workspace the spend limit applies to.
368
369 - `source: User or SeatTier or RBACGroup or 3 more`
370
299371 - `User object`
300372
301373 Scope selecting a single member of the organization.
from line 411
339411 - `type: "organization"`
340412
341413 default: organization
414
415 - `Workspace object`
416
417 Scope selecting one workspace of a Claude Console organization.
418
419 - `type: "workspace"`
420
421 Scope type. Always `workspace` for this scope.
422
423 default: workspace
424
425 - `workspace_id: string`
426
427 Tagged ID of the workspace the spend limit applies to.
342428
343429 - `spend_limit_id: string`
344430