Skip to content

feat: add trial client service#104

Merged
MattScarthSaunders merged 4 commits into
mainfrom
feat/trial-tokens
Oct 23, 2025
Merged

feat: add trial client service#104
MattScarthSaunders merged 4 commits into
mainfrom
feat/trial-tokens

Conversation

@MattScarthSaunders

@MattScarthSaunders MattScarthSaunders commented Oct 21, 2025

Copy link
Copy Markdown
Contributor

https://github.com/ubio/squad-automation-cloud/issues/1308

Edit: updated and simplified to only include methods for use in other services (redis methods, getting + incrementing data)

Example token:

{
    clientId: string;
    clientName: string;
    serviceRestrictions: [
        { 
            serviceName: string;
            requestLimit: number;
        },
        ...
    ]
    

Example trial object (stored in redis, keyed like cache:framework:trialClient:<client_id>:<serviceName>):

{
    requestCount: number;
}

Comment thread src/main/trial.ts Outdated
Comment thread src/main/trial.ts Outdated
Comment thread src/main/trial.ts Outdated
Comment thread src/main/trial.ts Outdated
Comment thread src/main/trial.ts Outdated
Comment thread src/main/trial.ts Outdated
Comment thread src/main/trial.ts Outdated
Comment thread src/main/trial.ts Outdated
Comment thread src/main/trial.ts

@danielolaviobr danielolaviobr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

a man is holding a key and says i am the key keeper

@MattScarthSaunders MattScarthSaunders merged commit e8fb08a into main Oct 23, 2025
1 check passed
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