Skip to content

Conversation

@DKelle
Copy link
Collaborator

@DKelle DKelle commented Nov 15, 2025

Summary & Motivation

How I Tested These Changes

Did you add a changeset?

If updating one of our packages, you'll likely need to add a changeset to your PR. To do so, run yarn changeset. This will generate a file where you should write a human friendly summary about the changes. Please respect the versioning system - if any interface has been broken, we need to increase the major version.

Did you update the README files?

If the interfaces of affected packages have changed, please ensure their README files are updated to reflect the new APIs and usage patterns.

@DKelle DKelle marked this pull request as ready for review November 15, 2025 02:02
Copy link
Collaborator Author

DKelle commented Nov 15, 2025

@DKelle DKelle changed the title Introducing new endpoint to query for spending state wipIntroducing new endpoint to query for spending state Nov 15, 2025
* @param organizationId The organization ID to check spending status for
* @returns The current spending state including spent amount, daily limit, and window start timestamp
*/
async getSpendingStatus(organizationId?: string): Promise<SpendingState> {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to think more about this method signature. The caller should be agnostic to the org ID. We need some other way to get it from the auth session or similar

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need expose the option to fetch from other organizations. The SDK is initiated explicitly for one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants