@gpt-platform/client 0.8.2 → 0.8.4
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/index.d.mts +266 -16
- package/dist/index.d.ts +266 -16
- package/dist/index.js +337 -18
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +337 -18
- package/dist/index.mjs.map +1 -1
- package/llms.txt +8 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -606,7 +606,7 @@ declare class BrowserApiKeyError extends Error {
|
|
|
606
606
|
}
|
|
607
607
|
|
|
608
608
|
/** SDK version — updated automatically by mix update.sdks */
|
|
609
|
-
declare const SDK_VERSION = "0.8.
|
|
609
|
+
declare const SDK_VERSION = "0.8.4";
|
|
610
610
|
/** Default API version sent in every request — updated automatically by mix update.sdks */
|
|
611
611
|
declare const DEFAULT_API_VERSION = "2026-03-11";
|
|
612
612
|
|
|
@@ -772,6 +772,32 @@ declare abstract class BaseClient {
|
|
|
772
772
|
* Clear the authentication token (e.g., on logout).
|
|
773
773
|
*/
|
|
774
774
|
clearToken(): void;
|
|
775
|
+
/**
|
|
776
|
+
* Switch the workspace context for all subsequent requests.
|
|
777
|
+
*
|
|
778
|
+
* Sets the `workspace_id` query parameter appended to every request.
|
|
779
|
+
* Use this after creating a new workspace or switching workspace context
|
|
780
|
+
* without constructing a new client instance.
|
|
781
|
+
*
|
|
782
|
+
* @param workspaceId - The workspace UUID to scope requests to, or
|
|
783
|
+
* `undefined` to clear workspace scoping.
|
|
784
|
+
*
|
|
785
|
+
* @example
|
|
786
|
+
* ```typescript
|
|
787
|
+
* const org = await sdk.platform.tenants.createOrg({ name: 'Acme' });
|
|
788
|
+
* const workspaces = await sdk.platform.workspaces.mine();
|
|
789
|
+
* const ws = workspaces.find(w => w.tenant_id === org.id);
|
|
790
|
+
*
|
|
791
|
+
* sdk.setWorkspaceId(ws.id);
|
|
792
|
+
* // All subsequent calls are scoped to the new workspace
|
|
793
|
+
* await sdk.scheduling.events.create({ ... });
|
|
794
|
+
* ```
|
|
795
|
+
*/
|
|
796
|
+
setWorkspaceId(workspaceId: string | undefined): void;
|
|
797
|
+
/**
|
|
798
|
+
* Get the current workspace ID, if set.
|
|
799
|
+
*/
|
|
800
|
+
getWorkspaceId(): string | undefined;
|
|
775
801
|
}
|
|
776
802
|
|
|
777
803
|
/**
|
|
@@ -4173,6 +4199,10 @@ type Plan = {
|
|
|
4173
4199
|
* Field included by default.
|
|
4174
4200
|
*/
|
|
4175
4201
|
created_at: unknown;
|
|
4202
|
+
/**
|
|
4203
|
+
* Credits allocated per seat at renewal. nil = falls back to monthly_credits. Field included by default.
|
|
4204
|
+
*/
|
|
4205
|
+
credits_per_seat?: number | null | unknown;
|
|
4176
4206
|
/**
|
|
4177
4207
|
* Human-readable feature list derived from capability_tiers, for pricing tables
|
|
4178
4208
|
*/
|
|
@@ -5828,6 +5858,10 @@ type Tenant = {
|
|
|
5828
5858
|
*/
|
|
5829
5859
|
contact_phone?: string | null | unknown;
|
|
5830
5860
|
credit_balance?: number | null | unknown;
|
|
5861
|
+
/**
|
|
5862
|
+
* Field included by default.
|
|
5863
|
+
*/
|
|
5864
|
+
deactivated_at?: unknown;
|
|
5831
5865
|
/**
|
|
5832
5866
|
* Field included by default.
|
|
5833
5867
|
*/
|
|
@@ -7313,7 +7347,7 @@ type ClinicalPracticeResource = {
|
|
|
7313
7347
|
/**
|
|
7314
7348
|
* Field included by default.
|
|
7315
7349
|
*/
|
|
7316
|
-
resource_type: "article" | "video" | "handout" | "worksheet" | "tool_link";
|
|
7350
|
+
resource_type: "article" | "video" | "handout" | "worksheet" | "tool_link" | "infographic" | "audio" | "recipe" | "checklist" | "protocol" | "assessment" | "exercise" | "template" | "presentation" | "ebook";
|
|
7317
7351
|
/**
|
|
7318
7352
|
* Field included by default.
|
|
7319
7353
|
*/
|
|
@@ -14144,24 +14178,42 @@ declare function createPlatformNamespace(rb: RequestBuilder): {
|
|
|
14144
14178
|
*/
|
|
14145
14179
|
credit: (id: string, amount: number, description?: string, options?: RequestOptions) => Promise<Tenant>;
|
|
14146
14180
|
/**
|
|
14147
|
-
*
|
|
14181
|
+
* Deactivate a tenant (hide from user's account).
|
|
14148
14182
|
*
|
|
14149
|
-
*
|
|
14150
|
-
*
|
|
14151
|
-
*
|
|
14152
|
-
* deletion.
|
|
14183
|
+
* Sets `deactivated_at` on the tenant. The tenant and its workspaces
|
|
14184
|
+
* disappear from `workspaces.mine()` and tenant listings. Billing and
|
|
14185
|
+
* data are completely unaffected. Reversible via `reactivate()`.
|
|
14153
14186
|
*
|
|
14154
|
-
*
|
|
14187
|
+
* Only the tenant owner can deactivate.
|
|
14188
|
+
*
|
|
14189
|
+
* @param id - The UUID of the tenant to deactivate.
|
|
14155
14190
|
* @param options - Optional request options.
|
|
14156
|
-
* @returns
|
|
14191
|
+
* @returns The updated tenant record.
|
|
14157
14192
|
*
|
|
14158
14193
|
* @example
|
|
14159
14194
|
* ```typescript
|
|
14160
|
-
*
|
|
14161
|
-
* await client.platform.tenants.delete('tenant_abc123');
|
|
14195
|
+
* await client.platform.tenants.deactivate('tenant_abc123');
|
|
14162
14196
|
* ```
|
|
14163
14197
|
*/
|
|
14164
|
-
|
|
14198
|
+
deactivate: (id: string, options?: RequestOptions) => Promise<Tenant>;
|
|
14199
|
+
/**
|
|
14200
|
+
* Reactivate a previously deactivated tenant.
|
|
14201
|
+
*
|
|
14202
|
+
* Clears `deactivated_at`, restoring the tenant and its workspaces
|
|
14203
|
+
* to the user's account. Only works on deactivated tenants.
|
|
14204
|
+
*
|
|
14205
|
+
* Only the tenant owner can reactivate.
|
|
14206
|
+
*
|
|
14207
|
+
* @param id - The UUID of the tenant to reactivate.
|
|
14208
|
+
* @param options - Optional request options.
|
|
14209
|
+
* @returns The updated tenant record.
|
|
14210
|
+
*
|
|
14211
|
+
* @example
|
|
14212
|
+
* ```typescript
|
|
14213
|
+
* await client.platform.tenants.reactivate('tenant_abc123');
|
|
14214
|
+
* ```
|
|
14215
|
+
*/
|
|
14216
|
+
reactivate: (id: string, options?: RequestOptions) => Promise<Tenant>;
|
|
14165
14217
|
/**
|
|
14166
14218
|
* Create a new tenant (ISV provisioning flow).
|
|
14167
14219
|
*
|
|
@@ -14415,6 +14467,39 @@ declare function createPlatformNamespace(rb: RequestBuilder): {
|
|
|
14415
14467
|
* ```
|
|
14416
14468
|
*/
|
|
14417
14469
|
resend: (id: string, applicationId?: string, options?: RequestOptions) => Promise<Invitation>;
|
|
14470
|
+
/**
|
|
14471
|
+
* List invitations visible to the current actor.
|
|
14472
|
+
*
|
|
14473
|
+
* Returns invitations where the actor is the inviter, the tenant owner,
|
|
14474
|
+
* or the recipient (matched by email). Use this to build admin views
|
|
14475
|
+
* of pending/accepted invitations for a tenant or workspace.
|
|
14476
|
+
*
|
|
14477
|
+
* @param options - Optional page number, page size, and request options.
|
|
14478
|
+
* @returns A page of `Invitation` records.
|
|
14479
|
+
*
|
|
14480
|
+
* @example
|
|
14481
|
+
* ```typescript
|
|
14482
|
+
* const client = new GptClient({ apiKey: 'sk_app_...' });
|
|
14483
|
+
* const invites = await client.platform.invitations.list();
|
|
14484
|
+
* ```
|
|
14485
|
+
*/
|
|
14486
|
+
list: (options?: {
|
|
14487
|
+
page?: number;
|
|
14488
|
+
pageSize?: number;
|
|
14489
|
+
} & RequestOptions) => Promise<Invitation[]>;
|
|
14490
|
+
/**
|
|
14491
|
+
* List all invitations visible to the current actor, auto-paginating.
|
|
14492
|
+
*
|
|
14493
|
+
* @param options - Optional request options.
|
|
14494
|
+
* @returns All visible `Invitation` records as a flat array.
|
|
14495
|
+
*
|
|
14496
|
+
* @example
|
|
14497
|
+
* ```typescript
|
|
14498
|
+
* const client = new GptClient({ apiKey: 'sk_app_...' });
|
|
14499
|
+
* const all = await client.platform.invitations.listAll();
|
|
14500
|
+
* ```
|
|
14501
|
+
*/
|
|
14502
|
+
listAll: (options?: RequestOptions) => Promise<Invitation[]>;
|
|
14418
14503
|
/**
|
|
14419
14504
|
* Look up a pending invitation by its raw token.
|
|
14420
14505
|
*
|
|
@@ -15102,6 +15187,32 @@ declare function createIdentityNamespace(rb: RequestBuilder, baseUrl?: string):
|
|
|
15102
15187
|
* invite-flow or SSO registrations where acceptance is handled separately.
|
|
15103
15188
|
*/
|
|
15104
15189
|
register: (email: string, password: string, passwordConfirmation: string, tenantName: string, attrs?: RegisterExtraAttributes, options?: RequestOptions) => Promise<User>;
|
|
15190
|
+
/**
|
|
15191
|
+
* Register a new user via invitation — skips personal tenant creation.
|
|
15192
|
+
*
|
|
15193
|
+
* Creates the user account, accepts the invitation (creating tenant/workspace
|
|
15194
|
+
* memberships), and returns the authenticated user with a session token.
|
|
15195
|
+
* The email must match the invitation's recipient email.
|
|
15196
|
+
*
|
|
15197
|
+
* @param email - Must match the invitation recipient email
|
|
15198
|
+
* @param password - Minimum 8 characters
|
|
15199
|
+
* @param passwordConfirmation - Must match password
|
|
15200
|
+
* @param invitationToken - Raw token from the invitation email link
|
|
15201
|
+
* @param attrs - Optional extra attributes (first_name, last_name)
|
|
15202
|
+
* @param options - Optional request options
|
|
15203
|
+
* @returns The newly created `User` with session token
|
|
15204
|
+
*
|
|
15205
|
+
* @example
|
|
15206
|
+
* ```typescript
|
|
15207
|
+
* const client = new GptClient({ apiKey: 'sk_app_...' });
|
|
15208
|
+
* const user = await client.identity.registerViaInvitation(
|
|
15209
|
+
* 'invited@example.com', 'securepass', 'securepass', 'raw-token-from-email',
|
|
15210
|
+
* { first_name: 'Jane', last_name: 'Doe' },
|
|
15211
|
+
* );
|
|
15212
|
+
* console.log(user.token); // JWT session token
|
|
15213
|
+
* ```
|
|
15214
|
+
*/
|
|
15215
|
+
registerViaInvitation: (email: string, password: string, passwordConfirmation: string, invitationToken: string, attrs?: RegisterExtraAttributes, options?: RequestOptions) => Promise<User>;
|
|
15105
15216
|
/** Get the currently authenticated user */
|
|
15106
15217
|
me: (options?: RequestOptions) => Promise<User>;
|
|
15107
15218
|
/** Get the current user profile (alias for me()) */
|
|
@@ -19490,7 +19601,52 @@ declare function createBillingNamespace(rb: RequestBuilder): {
|
|
|
19490
19601
|
*/
|
|
19491
19602
|
list: (options?: RequestOptions) => Promise<FeatureSummary[]>;
|
|
19492
19603
|
};
|
|
19604
|
+
/**
|
|
19605
|
+
* Get capacity estimates for a plan's monthly credits.
|
|
19606
|
+
*
|
|
19607
|
+
* Returns how many of each ISV-defined feature the plan supports per month.
|
|
19608
|
+
* No Bearer token required — uses application key only.
|
|
19609
|
+
*
|
|
19610
|
+
* @param planSlug - The plan slug to calculate capacity for.
|
|
19611
|
+
* @param options - Optional request-level overrides.
|
|
19612
|
+
* @returns Plan details and capacity breakdown per composite operation.
|
|
19613
|
+
*
|
|
19614
|
+
* @example
|
|
19615
|
+
* ```typescript
|
|
19616
|
+
* const result = await client.billing.capacityCalculator("pro-plan");
|
|
19617
|
+
* console.log(`Plan: ${result.plan.name}`);
|
|
19618
|
+
* for (const item of result.capacity) {
|
|
19619
|
+
* console.log(`${item.display_name}: ~${item.estimated_monthly_count}/month`);
|
|
19620
|
+
* }
|
|
19621
|
+
* ```
|
|
19622
|
+
*/
|
|
19623
|
+
capacityCalculator: (planSlug: string, options?: RequestOptions) => Promise<CapacityCalculatorResponse>;
|
|
19493
19624
|
};
|
|
19625
|
+
/** Response from the capacity-calculator endpoint. */
|
|
19626
|
+
interface CapacityCalculatorResponse {
|
|
19627
|
+
plan: {
|
|
19628
|
+
slug: string;
|
|
19629
|
+
name: string;
|
|
19630
|
+
monthly_credits: number;
|
|
19631
|
+
};
|
|
19632
|
+
capacity: Array<{
|
|
19633
|
+
key: string;
|
|
19634
|
+
display_name: string;
|
|
19635
|
+
description: string | null;
|
|
19636
|
+
credits_per_use: number;
|
|
19637
|
+
estimated_monthly_count: number;
|
|
19638
|
+
is_estimate: boolean;
|
|
19639
|
+
components: Array<{
|
|
19640
|
+
operation_key: string;
|
|
19641
|
+
quantity: number;
|
|
19642
|
+
unit: string;
|
|
19643
|
+
credits_per_unit: number | null;
|
|
19644
|
+
total_credits: number;
|
|
19645
|
+
is_estimate: boolean;
|
|
19646
|
+
}>;
|
|
19647
|
+
}>;
|
|
19648
|
+
is_estimate: boolean;
|
|
19649
|
+
}
|
|
19494
19650
|
|
|
19495
19651
|
/** Response from a semantic search query. */
|
|
19496
19652
|
interface AiSearchResponse {
|
|
@@ -20212,6 +20368,20 @@ declare function createAgentsNamespace(rb: RequestBuilder): {
|
|
|
20212
20368
|
* console.log(agent.attributes.name);
|
|
20213
20369
|
*/
|
|
20214
20370
|
get: (id: string, options?: RequestOptions) => Promise<Agent>;
|
|
20371
|
+
/**
|
|
20372
|
+
* Look up an agent by its system_slug. Use this for ISV-provisioned agents
|
|
20373
|
+
* where the slug is a stable identifier that survives database resets.
|
|
20374
|
+
*
|
|
20375
|
+
* @param slug - The system_slug of the agent (e.g., "chartless-session-prep-briefing").
|
|
20376
|
+
* @param options - Optional request options.
|
|
20377
|
+
* @returns The Agent record.
|
|
20378
|
+
*
|
|
20379
|
+
* @example
|
|
20380
|
+
* ```ts
|
|
20381
|
+
* const agent = await client.agents.getBySlug("chartless-session-prep-briefing");
|
|
20382
|
+
* ```
|
|
20383
|
+
*/
|
|
20384
|
+
getBySlug: (slug: string, options?: RequestOptions) => Promise<Agent>;
|
|
20215
20385
|
/**
|
|
20216
20386
|
* Creates a new agent with a blank initial version (v1).
|
|
20217
20387
|
*
|
|
@@ -21601,7 +21771,7 @@ interface CreatePracticeResourceAttributes {
|
|
|
21601
21771
|
workspace_id: string;
|
|
21602
21772
|
title: string;
|
|
21603
21773
|
description?: string;
|
|
21604
|
-
resource_type?: "article" | "video" | "handout" | "worksheet" | "tool_link";
|
|
21774
|
+
resource_type?: "article" | "video" | "handout" | "worksheet" | "tool_link" | "infographic" | "audio" | "recipe" | "checklist" | "protocol" | "assessment" | "exercise" | "template" | "presentation" | "ebook";
|
|
21605
21775
|
storage_key?: string;
|
|
21606
21776
|
url?: string;
|
|
21607
21777
|
tags?: string[];
|
|
@@ -21621,7 +21791,7 @@ interface CreatePracticeResourceAttributes {
|
|
|
21621
21791
|
interface UpdatePracticeResourceAttributes {
|
|
21622
21792
|
title?: string;
|
|
21623
21793
|
description?: string;
|
|
21624
|
-
resource_type?: "article" | "video" | "handout" | "worksheet" | "tool_link";
|
|
21794
|
+
resource_type?: "article" | "video" | "handout" | "worksheet" | "tool_link" | "infographic" | "audio" | "recipe" | "checklist" | "protocol" | "assessment" | "exercise" | "template" | "presentation" | "ebook";
|
|
21625
21795
|
storage_key?: string;
|
|
21626
21796
|
url?: string;
|
|
21627
21797
|
tags?: string[];
|
|
@@ -21694,6 +21864,11 @@ interface PracticeToolCategory {
|
|
|
21694
21864
|
category: string;
|
|
21695
21865
|
tool_count: number;
|
|
21696
21866
|
}
|
|
21867
|
+
/** A practice resource category with usage count. */
|
|
21868
|
+
interface PracticeResourceCategory {
|
|
21869
|
+
category: string;
|
|
21870
|
+
resource_count: number;
|
|
21871
|
+
}
|
|
21697
21872
|
interface CreateClientResourceAssignmentAttributes {
|
|
21698
21873
|
workspace_id: string;
|
|
21699
21874
|
patient_id: string;
|
|
@@ -22463,6 +22638,42 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
|
|
|
22463
22638
|
filter?: Record<string, unknown>;
|
|
22464
22639
|
sort?: string;
|
|
22465
22640
|
}, options?: RequestOptions) => Promise<ClinicalPracticeResource[]>;
|
|
22641
|
+
/**
|
|
22642
|
+
* List distinct practice resource categories in a workspace.
|
|
22643
|
+
*
|
|
22644
|
+
* Returns unique `resource_type` values with their active resource counts,
|
|
22645
|
+
* sorted by count descending.
|
|
22646
|
+
*
|
|
22647
|
+
* @param params - Must include `workspace_id`
|
|
22648
|
+
* @param options - Request options
|
|
22649
|
+
* @returns Array of {@link PracticeResourceCategory} records
|
|
22650
|
+
*
|
|
22651
|
+
* @example
|
|
22652
|
+
* ```typescript
|
|
22653
|
+
* const categories = await client.clinical.practiceResources.listCategories({
|
|
22654
|
+
* workspace_id: "..."
|
|
22655
|
+
* });
|
|
22656
|
+
* // [{ category: "article", resource_count: 5 }, { category: "video", resource_count: 3 }]
|
|
22657
|
+
* ```
|
|
22658
|
+
*/
|
|
22659
|
+
listCategories: (params: {
|
|
22660
|
+
workspace_id: string;
|
|
22661
|
+
}, options?: RequestOptions) => Promise<PracticeResourceCategory[]>;
|
|
22662
|
+
/**
|
|
22663
|
+
* List distinct catalog practice resource categories.
|
|
22664
|
+
*
|
|
22665
|
+
* Returns unique `resource_type` values from application-level catalog resources.
|
|
22666
|
+
* Application ID is resolved from the API key context.
|
|
22667
|
+
*
|
|
22668
|
+
* @param options - Request options
|
|
22669
|
+
* @returns Array of {@link PracticeResourceCategory} records
|
|
22670
|
+
*
|
|
22671
|
+
* @example
|
|
22672
|
+
* ```typescript
|
|
22673
|
+
* const cats = await client.clinical.practiceResources.listCatalogCategories();
|
|
22674
|
+
* ```
|
|
22675
|
+
*/
|
|
22676
|
+
listCatalogCategories: (options?: RequestOptions) => Promise<PracticeResourceCategory[]>;
|
|
22466
22677
|
};
|
|
22467
22678
|
/**
|
|
22468
22679
|
* Manage practice-level assessment and therapeutic tools.
|
|
@@ -22541,6 +22752,21 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
|
|
|
22541
22752
|
filter?: Record<string, unknown>;
|
|
22542
22753
|
sort?: string;
|
|
22543
22754
|
}, options?: RequestOptions) => Promise<ClinicalPracticeTool[]>;
|
|
22755
|
+
/**
|
|
22756
|
+
* List distinct catalog practice tool categories.
|
|
22757
|
+
*
|
|
22758
|
+
* Returns unique `tool_type` values from application-level catalog tools.
|
|
22759
|
+
* Application ID is resolved from the API key context.
|
|
22760
|
+
*
|
|
22761
|
+
* @param options - Request options
|
|
22762
|
+
* @returns Array of {@link PracticeToolCategory} records
|
|
22763
|
+
*
|
|
22764
|
+
* @example
|
|
22765
|
+
* ```typescript
|
|
22766
|
+
* const cats = await client.clinical.practiceTools.listCatalogCategories();
|
|
22767
|
+
* ```
|
|
22768
|
+
*/
|
|
22769
|
+
listCatalogCategories: (options?: RequestOptions) => Promise<PracticeToolCategory[]>;
|
|
22544
22770
|
};
|
|
22545
22771
|
/**
|
|
22546
22772
|
* Manage assignments of practice resources to patients.
|
|
@@ -22747,6 +22973,21 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
|
|
|
22747
22973
|
filter?: Record<string, unknown>;
|
|
22748
22974
|
sort?: string;
|
|
22749
22975
|
}, options?: RequestOptions) => Promise<ClinicalGoalTemplate[]>;
|
|
22976
|
+
/**
|
|
22977
|
+
* List distinct catalog goal template categories.
|
|
22978
|
+
*
|
|
22979
|
+
* Returns unique `category` values from application-level catalog templates.
|
|
22980
|
+
* Application ID is resolved from the API key context.
|
|
22981
|
+
*
|
|
22982
|
+
* @param options - Request options
|
|
22983
|
+
* @returns Array of {@link ClinicalGoalTemplateCategory} records
|
|
22984
|
+
*
|
|
22985
|
+
* @example
|
|
22986
|
+
* ```typescript
|
|
22987
|
+
* const cats = await client.clinical.goalTemplates.listCatalogCategories();
|
|
22988
|
+
* ```
|
|
22989
|
+
*/
|
|
22990
|
+
listCatalogCategories: (options?: RequestOptions) => Promise<ClinicalGoalTemplateCategory[]>;
|
|
22750
22991
|
};
|
|
22751
22992
|
/**
|
|
22752
22993
|
* Recipe search via configured Edamam connector.
|
|
@@ -22818,6 +23059,7 @@ declare class GptClient extends BaseClient {
|
|
|
22818
23059
|
listAll: (options?: RequestOptions) => Promise<Agent[]>;
|
|
22819
23060
|
delete: (id: string, options?: RequestOptions) => Promise<true>;
|
|
22820
23061
|
get: (id: string, options?: RequestOptions) => Promise<Agent>;
|
|
23062
|
+
getBySlug: (slug: string, options?: RequestOptions) => Promise<Agent>;
|
|
22821
23063
|
create: (name: string, attributes?: CreateAgentAttributes, options?: RequestOptions) => Promise<Agent>;
|
|
22822
23064
|
update: (id: string, attributes: UpdateAgentAttributes, options?: RequestOptions) => Promise<Agent>;
|
|
22823
23065
|
test: (id: string, options?: RequestOptions) => Promise<Agent>;
|
|
@@ -23031,6 +23273,7 @@ declare class GptClient extends BaseClient {
|
|
|
23031
23273
|
featureSummary: {
|
|
23032
23274
|
list: (options?: RequestOptions) => Promise<FeatureSummary[]>;
|
|
23033
23275
|
};
|
|
23276
|
+
capacityCalculator: (planSlug: string, options?: RequestOptions) => Promise<CapacityCalculatorResponse>;
|
|
23034
23277
|
};
|
|
23035
23278
|
/** Product catalog, inventory, pricing, and taxonomy */
|
|
23036
23279
|
readonly catalog: {
|
|
@@ -23910,6 +24153,7 @@ declare class GptClient extends BaseClient {
|
|
|
23910
24153
|
readonly identity: {
|
|
23911
24154
|
login: (email: string, password: string, options?: RequestOptions) => Promise<User>;
|
|
23912
24155
|
register: (email: string, password: string, passwordConfirmation: string, tenantName: string, attrs?: RegisterExtraAttributes, options?: RequestOptions) => Promise<User>;
|
|
24156
|
+
registerViaInvitation: (email: string, password: string, passwordConfirmation: string, invitationToken: string, attrs?: RegisterExtraAttributes, options?: RequestOptions) => Promise<User>;
|
|
23913
24157
|
me: (options?: RequestOptions) => Promise<User>;
|
|
23914
24158
|
profile: (options?: RequestOptions) => Promise<User>;
|
|
23915
24159
|
list: (options?: {
|
|
@@ -24083,7 +24327,8 @@ declare class GptClient extends BaseClient {
|
|
|
24083
24327
|
} & RequestOptions) => Promise<Tenant[]>;
|
|
24084
24328
|
listAllDocumentStats: (tenantId: string, options?: RequestOptions) => Promise<Tenant[]>;
|
|
24085
24329
|
credit: (id: string, amount: number, description?: string, options?: RequestOptions) => Promise<Tenant>;
|
|
24086
|
-
|
|
24330
|
+
deactivate: (id: string, options?: RequestOptions) => Promise<Tenant>;
|
|
24331
|
+
reactivate: (id: string, options?: RequestOptions) => Promise<Tenant>;
|
|
24087
24332
|
create: (attributes: CreateTenantAttributes, options?: RequestOptions) => Promise<Tenant>;
|
|
24088
24333
|
update: (id: string, attributes: UpdateTenantAttributes, options?: RequestOptions) => Promise<Tenant>;
|
|
24089
24334
|
schedulePurge: (id: string, options?: RequestOptions) => Promise<Tenant>;
|
|
@@ -24112,6 +24357,11 @@ declare class GptClient extends BaseClient {
|
|
|
24112
24357
|
listAllMe: (options?: RequestOptions) => Promise<Invitation[]>;
|
|
24113
24358
|
create: (attributes: CreateInvitationAttributes, options?: RequestOptions) => Promise<Invitation>;
|
|
24114
24359
|
resend: (id: string, applicationId?: string, options?: RequestOptions) => Promise<Invitation>;
|
|
24360
|
+
list: (options?: {
|
|
24361
|
+
page?: number;
|
|
24362
|
+
pageSize?: number;
|
|
24363
|
+
} & RequestOptions) => Promise<Invitation[]>;
|
|
24364
|
+
listAll: (options?: RequestOptions) => Promise<Invitation[]>;
|
|
24115
24365
|
consumeByToken: (token: string, options?: RequestOptions) => Promise<Invitation | null>;
|
|
24116
24366
|
acceptByToken: (token: string, options?: RequestOptions) => Promise<Invitation>;
|
|
24117
24367
|
};
|
|
@@ -25090,4 +25340,4 @@ type SocialAPI = ReturnType<typeof createSocialNamespace>;
|
|
|
25090
25340
|
type ModelsAPI = ReturnType<typeof createModelsNamespace>;
|
|
25091
25341
|
type MemoryAPI = ReturnType<typeof createMemoryNamespace>;
|
|
25092
25342
|
|
|
25093
|
-
export { API_KEY_PREFIXES, type AccessGrant, type Agent, type AgentDeployment, type AgentVersion, type AgentsAPI, type AiAPI, type ApiKey, type AppInfo, type ApprovalRequiredEvent, type AttributeFilter$1 as AttributeFilter, AuthenticationError, AuthorizationError, type BaseClientConfig, type BillingAPI, type BillingAccount, BrowserApiKeyError, type BuyAddonAttributes, type CampaignsAPI, CardDeclinedError, type CommunicationAPI, type ComplianceFrameworkReadiness, type CompliancePosture, type ComposeWithAiAttributes, ConflictError, type CreditPackage, DEFAULT_API_VERSION, DEFAULT_RETRY_CONFIG, type DocumentSection, type DoneEvent, type EmailAPI, type ErrorEvent, type Execution, type ExecutionEvent, type ExtractionAPI, type ExtractionRowQueryParams, type ExtractionRowQueryResult, type FeatureDefinition, type FeatureUsage, GptClient, GptCoreError, type IdentityAPI, InsecureConnectionError, type Invitation, type Invoice, type IterationCompleteEvent, LOG_LEVELS, type ListModelsOptions, type ListPracticeToolsParams, type LogLevel, type Logger, type MemoryAPI, type MjmlCompileResult, type ModelInfo, type ModelTier, type ModelsAPI, NetworkError, NotFoundError, type PaginatedResponse, type PaginationLinks, type PaginationOptions, type PaymentMethod, type PaymentMethodCreateAttributes, type PaymentMethodTokenizeAttributes, type PaymentMethodUpdateAttributes, PaymentRequiredError, type Plan, type PlanFeatureAllocation, type PlatformAPI, type PracticeToolCategory, RateLimitError, RequestBuilder, type RequestOptions, type RetryConfig, RetryTimeoutError, SDK_VERSION, type SchedulingAPI, type SdkErrorEvent, SdkEventEmitter, type SdkEvents, type SdkRequestEvent, type SdkResponseEvent, type SdkRetryEvent, type SearchAPI, type SeatInfo, type SectionDocument, type SecurityConfig, ServerError, type SessionNoteType, type SessionNoteValue, type SocialAPI, type StorageAPI, type StreamMessageChunk, type StreamOptions, SubscriptionConflictError, type TemplateVariableSchema, type TemplateVersion, type Tenant, type ThreadsAPI, TimeoutError, type TokenDeltaEvent, type ToolCallEvent, type ToolResultEvent, type Transaction, type TrendingSnapshot, type TrendingSnapshotItem, type TrendingWatch, type TriggerPipelineAttributes, type UpdateFeatureDefinitionAttributes, type UsageHistoryEntry, type User, type UserProfile, ValidationError, type VoiceAPI, type VoiceFinalizeOptions, type VoiceRecording, type VoiceSession, type VoiceSessionStart, type VoiceStartOptions, type VoiceTranscribeOptions, type VoiceTranscribeResult, type VoiceTranscriptionResult, type Wallet, type WalletPaymentMethod, WebhookSignatureError, type WebhookVerifyOptions, Webhooks, type Workspace, type WorkspaceAgentConfig, buildHeaders, buildUserAgent, collectStreamedMessage, handleApiError, isBrowserEnvironment, isSecureUrl, paginateAll, paginateToArray, retryWithBackoff, streamMessage, streamSSE, validateApiKey, withRetry };
|
|
25343
|
+
export { API_KEY_PREFIXES, type AccessGrant, type Agent, type AgentDeployment, type AgentVersion, type AgentsAPI, type AiAPI, type ApiKey, type AppInfo, type ApprovalRequiredEvent, type AttributeFilter$1 as AttributeFilter, AuthenticationError, AuthorizationError, type BaseClientConfig, type BillingAPI, type BillingAccount, BrowserApiKeyError, type BuyAddonAttributes, type CampaignsAPI, type CapacityCalculatorResponse, CardDeclinedError, type CommunicationAPI, type ComplianceFrameworkReadiness, type CompliancePosture, type ComposeWithAiAttributes, ConflictError, type CreditPackage, DEFAULT_API_VERSION, DEFAULT_RETRY_CONFIG, type DocumentSection, type DoneEvent, type EmailAPI, type ErrorEvent, type Execution, type ExecutionEvent, type ExtractionAPI, type ExtractionRowQueryParams, type ExtractionRowQueryResult, type FeatureDefinition, type FeatureUsage, GptClient, GptCoreError, type IdentityAPI, InsecureConnectionError, type Invitation, type Invoice, type IterationCompleteEvent, LOG_LEVELS, type ListModelsOptions, type ListPracticeToolsParams, type LogLevel, type Logger, type MemoryAPI, type MjmlCompileResult, type ModelInfo, type ModelTier, type ModelsAPI, NetworkError, NotFoundError, type PaginatedResponse, type PaginationLinks, type PaginationOptions, type PaymentMethod, type PaymentMethodCreateAttributes, type PaymentMethodTokenizeAttributes, type PaymentMethodUpdateAttributes, PaymentRequiredError, type Plan, type PlanFeatureAllocation, type PlatformAPI, type PracticeToolCategory, RateLimitError, RequestBuilder, type RequestOptions, type RetryConfig, RetryTimeoutError, SDK_VERSION, type SchedulingAPI, type SdkErrorEvent, SdkEventEmitter, type SdkEvents, type SdkRequestEvent, type SdkResponseEvent, type SdkRetryEvent, type SearchAPI, type SeatInfo, type SectionDocument, type SecurityConfig, ServerError, type SessionNoteType, type SessionNoteValue, type SocialAPI, type StorageAPI, type StreamMessageChunk, type StreamOptions, SubscriptionConflictError, type TemplateVariableSchema, type TemplateVersion, type Tenant, type ThreadsAPI, TimeoutError, type TokenDeltaEvent, type ToolCallEvent, type ToolResultEvent, type Transaction, type TrendingSnapshot, type TrendingSnapshotItem, type TrendingWatch, type TriggerPipelineAttributes, type UpdateFeatureDefinitionAttributes, type UsageHistoryEntry, type User, type UserProfile, ValidationError, type VoiceAPI, type VoiceFinalizeOptions, type VoiceRecording, type VoiceSession, type VoiceSessionStart, type VoiceStartOptions, type VoiceTranscribeOptions, type VoiceTranscribeResult, type VoiceTranscriptionResult, type Wallet, type WalletPaymentMethod, WebhookSignatureError, type WebhookVerifyOptions, Webhooks, type Workspace, type WorkspaceAgentConfig, buildHeaders, buildUserAgent, collectStreamedMessage, handleApiError, isBrowserEnvironment, isSecureUrl, paginateAll, paginateToArray, retryWithBackoff, streamMessage, streamSSE, validateApiKey, withRetry };
|