@flashbacktech/tsclient 0.4.36 → 0.4.38
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.cjs +22 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +53 -1
- package/dist/index.d.ts +53 -1
- package/dist/index.js +22 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -143,12 +143,27 @@ interface SimpleResponse$2 {
|
|
|
143
143
|
message?: string;
|
|
144
144
|
error_code?: string;
|
|
145
145
|
}
|
|
146
|
+
/**
|
|
147
|
+
* Unauthenticated config the SPA reads at boot (GET /public-config) to decide
|
|
148
|
+
* what to render before any session exists — e.g. whether self-service signup
|
|
149
|
+
* is available. Reflects the backend's OPEN_REGISTRATION at runtime.
|
|
150
|
+
*/
|
|
151
|
+
interface PublicConfig {
|
|
152
|
+
openRegistration: boolean;
|
|
153
|
+
appName?: string;
|
|
154
|
+
}
|
|
146
155
|
|
|
147
156
|
declare class AuthClient {
|
|
148
157
|
private readonly http;
|
|
149
158
|
constructor(http: BaseClient);
|
|
150
159
|
login(body: LoginRequest): Promise<SessionResponse>;
|
|
151
160
|
register(body: RegisterRequest): Promise<SessionResponse>;
|
|
161
|
+
/**
|
|
162
|
+
* Unauthenticated boot config. The SPA reads `openRegistration` to decide
|
|
163
|
+
* whether to render the self-service signup form (false => invite-only /
|
|
164
|
+
* preview mode). Safe to call before any session exists.
|
|
165
|
+
*/
|
|
166
|
+
publicConfig(): Promise<PublicConfig>;
|
|
152
167
|
logout(refreshToken?: string): Promise<SimpleResponse$2>;
|
|
153
168
|
refresh(body: RefreshRequest): Promise<SessionResponse>;
|
|
154
169
|
activate(body: ActivateRequest): Promise<SessionResponse>;
|
|
@@ -320,6 +335,31 @@ interface AcceptInviteRequest {
|
|
|
320
335
|
token: string;
|
|
321
336
|
password: string;
|
|
322
337
|
}
|
|
338
|
+
/**
|
|
339
|
+
* Platform-admin payload for provisioning a brand-new organization and its
|
|
340
|
+
* founding owner in invite-only / preview mode (POST /organization/invite-org).
|
|
341
|
+
* The backend creates the org + owner (role=Owner, no password), provisions a
|
|
342
|
+
* subscription, and emails the owner an invite link. The owner finishes
|
|
343
|
+
* onboarding by accepting the invite (sets a password) or signing in via SSO.
|
|
344
|
+
*/
|
|
345
|
+
interface InviteOrgRequest {
|
|
346
|
+
orgName: string;
|
|
347
|
+
website?: string;
|
|
348
|
+
isBusiness?: boolean;
|
|
349
|
+
owner: {
|
|
350
|
+
email: string;
|
|
351
|
+
firstName: string;
|
|
352
|
+
lastName?: string;
|
|
353
|
+
};
|
|
354
|
+
/** Override the configured free tier with a specific plan name. */
|
|
355
|
+
subscriptionName?: string;
|
|
356
|
+
/** Comped credit grant in USD micros; overrides the plan's default grant. */
|
|
357
|
+
creditsMicros?: number;
|
|
358
|
+
}
|
|
359
|
+
interface InviteOrgResult {
|
|
360
|
+
organization: Organization;
|
|
361
|
+
owner: OrganizationUser;
|
|
362
|
+
}
|
|
323
363
|
interface SimpleOrgResponse {
|
|
324
364
|
success: boolean;
|
|
325
365
|
message?: string;
|
|
@@ -350,6 +390,14 @@ declare class OrganizationClient {
|
|
|
350
390
|
name: string;
|
|
351
391
|
allowDebug: boolean;
|
|
352
392
|
}>>;
|
|
393
|
+
/**
|
|
394
|
+
* Platform-admin only: provision a new organization + founding owner and
|
|
395
|
+
* email the owner an invite link. The invite-only counterpart to public
|
|
396
|
+
* self-service registration (used while the backend has OPEN_REGISTRATION
|
|
397
|
+
* disabled). Returns 403 unless the caller's home org is the configured
|
|
398
|
+
* ADMIN_ORGANIZATION; 409 when the owner email already exists.
|
|
399
|
+
*/
|
|
400
|
+
inviteOrg(body: InviteOrgRequest): Promise<InviteOrgResult>;
|
|
353
401
|
/**
|
|
354
402
|
* Platform-admin only: enable or disable the debug surface for an org.
|
|
355
403
|
* Returns the updated org entry with the new allowDebug value.
|
|
@@ -668,6 +716,10 @@ interface ListChatSessionsResponse {
|
|
|
668
716
|
interface ListChatSessionsQuery {
|
|
669
717
|
cursor?: string;
|
|
670
718
|
limit?: number;
|
|
719
|
+
/** Inclusive lower bound on `created_at`, RFC3339 timestamp. */
|
|
720
|
+
from?: string;
|
|
721
|
+
/** Exclusive upper bound on `created_at`, RFC3339 timestamp. */
|
|
722
|
+
to?: string;
|
|
671
723
|
}
|
|
672
724
|
interface GetChatSessionResponse {
|
|
673
725
|
session: ChatSession;
|
|
@@ -2019,4 +2071,4 @@ declare class NotImplementedError extends Error {
|
|
|
2019
2071
|
constructor(method: string);
|
|
2020
2072
|
}
|
|
2021
2073
|
|
|
2022
|
-
export { type AcceptInviteRequest, AccessType, type AcquireScanLeaseRequest, type AcquireScanLeaseResponse, type ActionCategory, type ActivateRequest, type AddMemberRequest, type AnswerChatQuestionRequest, type AnswerChatQuestionResponse, type AuthUser, BaseClient, type BaseClientOptions, type BudgetScope, BudgetsClient, type BuyCustomCreditRequest, type BuyCustomCreditResponse, type BuySubscriptionRequest, type BuySubscriptionResponse, CAP_AI, CAP_COMPUTE, CAP_GENERAL, CAP_STORAGE, CAP_VCS, type CancelChatTurnResponse, type CancelSubscriptionResponse, type ChatAssistantMessagePayload, type ChatBillingRefuseCode, type ChatBillingRefuseError, type ChatBudget, type ChatCheckpointedPayload, type ChatCompactionFiredPayload, type ChatDonePayload, type ChatEvent, type ChatEventType, type ChatMessage, type ChatMessageKind, type ChatMessageRole, type ChatNarrationPayload, type ChatPhase, type ChatPhasePayload, type ChatPlanDraftPayload, type ChatQuestionPayload, type ChatSchedule, type ChatScheduleEnvelope, type ChatScheduleRunStatus, type ChatScope, type ChatSession, type ChatSessionSource, type ChatSessionTitlePayload, type ChatStepEventPayload, type ChatStepProgressPayload, type ChatStreamHandle, type ChatToolCallConfirmationRequiredPayload, type ChatToolCallFinishedPayload, type ChatToolCallStartedPayload, type ClarificationOption, CloudAgentClient, type CloudAgentClientOptions, type CloudResource, type CloudResourceContainerRef, type CloudResourceEdge, type CloudScanHistory, type CloudScanLease, type ConfirmChatToolCallRequest, type ConfirmChatToolCallResponse, type CreateAgentTemplateRequest, type CreateChatScheduleRequest, type CreateChatSessionRequest, type CreateChatSessionResponse, type CreateCredentialRequest, type CreateGatewayTokenRequest, type CreateGatewayTokenResponse, type CreateOrganizationUserRequest, type CreateProjectRequest, type CreateSandboxRequest, type CreateScheduledTaskRequest, type Credential, type CreditBalance, type CreditTransaction, type CreditTransactionKind, type CreditTransactionType, type CustomCreditPurchaseConfig, type DebugPayload, type DebugReceipt, type EffectiveChatBudget, type ExchangeCodeRequest, type FieldSpec, type FieldType, type FineTuneParams, type GatewayToken, type GetChatSessionResponse, type GetUsageSummaryQuery, type GetUsageSummaryResponse, HttpError, type ImpersonationProvider, type ListAgentTemplatesQuery, type ListAgentTemplatesResponse, type ListChatScheduleRunsResponse, type ListChatSchedulesResponse, type ListChatSessionsQuery, type ListChatSessionsResponse, type ListCredentialsQuery, type ListCreditsTransactionsQuery, type ListCreditsTransactionsResponse, type ListPaymentsResponse, type ListSandboxesQuery, type ListScanHistoryQuery, type ListScanHistoryResponse, type ListScheduledTasksQuery, type ListScheduledTasksResponse, type LoginRequest, type MFASetupResponse, type MFASimpleResponse, type MFAStatus, MFAType, type MFAVerifyLoginRequest, type MFAVerifyLoginResponse, type MFAVerifySetupRequest, type MagicLinkActivateRequest, type MagicLinkSendResponse, type ModeType, type MonthlyCreditStats, NotImplementedError, type OpenChatStreamOptions, type OrgBudget, OrgRoles, type OrgSubscription, type Organization, type OrganizationUser, PROVIDER_CATALOG, type Payment, type PeekScanLeaseResponse, type PostChatMessageRequest, type PostChatMessageResponse, type Project, type ProjectMember, type ProviderID, type ProviderSpec, ProviderType, type Query, type ReconcileScope, type ReconcileTuple, type RefreshRequest, type RegisterRequest, type RequestOptions, type ResetPasswordRequest, type ResourceTreeCategory, type ResourceTreeCredential, type ResourceTreeGrouping, type ResourceTreeResource, type ResourceTreeResponse, ResourcesClient, type Sandbox, type SandboxCredential, type ScanInProgressError, type ScheduledTask, type ScopedBudget, type SessionResponse, type SessionTokens, type SimpleAgentResponse, type SimpleKeysResponse, type SimpleOrgResponse, type SimpleResponse$2 as SimpleResponse, type StorageType, type SubgraphDirection, type SubgraphRequest, type SubgraphResponse, type Subscription, type SubscriptionCapability, type SubscriptionPeriod, type SystemEvent, type SystemEventQuery, type SystemEventQueryResponse, type SystemEventReadResponse, type Template, type TokenProvider, type UnauthorizedHandler, type UpdateChatBudgetRequest, type UpdateChatScheduleRequest, type UpdateCostLimitRequest, type UpdateCredentialRequest, type UpdateMemberRoleRequest, type UpdateOrgBudgetRequest, type UpdateOrgUserRequest, type UpdateOrganizationRequest, type UpdateProjectRequest, type UpdateSandboxRequest, type UpdateScopedBudgetRequest, type UpdateUserRequest, type UpdateUserResponse, type UsageBucket, type UsageByModelQuery, type UsageByModelResponse, type UsageByModelRow, type UsageReportQuery, type UsageReportResponse, type UsageSummary, type UsageSummaryQuery, type UsageSummaryResponse, type UsageTotals, type UsageWindow, type UserProfile, type UserSummary, computeDisplayHint, getProvider, getValueAt, isMetadataPath, isSecretPath, listProviders, metadataKey, setValueAt, usdMicros, validate };
|
|
2074
|
+
export { type AcceptInviteRequest, AccessType, type AcquireScanLeaseRequest, type AcquireScanLeaseResponse, type ActionCategory, type ActivateRequest, type AddMemberRequest, type AnswerChatQuestionRequest, type AnswerChatQuestionResponse, type AuthUser, BaseClient, type BaseClientOptions, type BudgetScope, BudgetsClient, type BuyCustomCreditRequest, type BuyCustomCreditResponse, type BuySubscriptionRequest, type BuySubscriptionResponse, CAP_AI, CAP_COMPUTE, CAP_GENERAL, CAP_STORAGE, CAP_VCS, type CancelChatTurnResponse, type CancelSubscriptionResponse, type ChatAssistantMessagePayload, type ChatBillingRefuseCode, type ChatBillingRefuseError, type ChatBudget, type ChatCheckpointedPayload, type ChatCompactionFiredPayload, type ChatDonePayload, type ChatEvent, type ChatEventType, type ChatMessage, type ChatMessageKind, type ChatMessageRole, type ChatNarrationPayload, type ChatPhase, type ChatPhasePayload, type ChatPlanDraftPayload, type ChatQuestionPayload, type ChatSchedule, type ChatScheduleEnvelope, type ChatScheduleRunStatus, type ChatScope, type ChatSession, type ChatSessionSource, type ChatSessionTitlePayload, type ChatStepEventPayload, type ChatStepProgressPayload, type ChatStreamHandle, type ChatToolCallConfirmationRequiredPayload, type ChatToolCallFinishedPayload, type ChatToolCallStartedPayload, type ClarificationOption, CloudAgentClient, type CloudAgentClientOptions, type CloudResource, type CloudResourceContainerRef, type CloudResourceEdge, type CloudScanHistory, type CloudScanLease, type ConfirmChatToolCallRequest, type ConfirmChatToolCallResponse, type CreateAgentTemplateRequest, type CreateChatScheduleRequest, type CreateChatSessionRequest, type CreateChatSessionResponse, type CreateCredentialRequest, type CreateGatewayTokenRequest, type CreateGatewayTokenResponse, type CreateOrganizationUserRequest, type CreateProjectRequest, type CreateSandboxRequest, type CreateScheduledTaskRequest, type Credential, type CreditBalance, type CreditTransaction, type CreditTransactionKind, type CreditTransactionType, type CustomCreditPurchaseConfig, type DebugPayload, type DebugReceipt, type EffectiveChatBudget, type ExchangeCodeRequest, type FieldSpec, type FieldType, type FineTuneParams, type GatewayToken, type GetChatSessionResponse, type GetUsageSummaryQuery, type GetUsageSummaryResponse, HttpError, type ImpersonationProvider, type InviteOrgRequest, type InviteOrgResult, type ListAgentTemplatesQuery, type ListAgentTemplatesResponse, type ListChatScheduleRunsResponse, type ListChatSchedulesResponse, type ListChatSessionsQuery, type ListChatSessionsResponse, type ListCredentialsQuery, type ListCreditsTransactionsQuery, type ListCreditsTransactionsResponse, type ListPaymentsResponse, type ListSandboxesQuery, type ListScanHistoryQuery, type ListScanHistoryResponse, type ListScheduledTasksQuery, type ListScheduledTasksResponse, type LoginRequest, type MFASetupResponse, type MFASimpleResponse, type MFAStatus, MFAType, type MFAVerifyLoginRequest, type MFAVerifyLoginResponse, type MFAVerifySetupRequest, type MagicLinkActivateRequest, type MagicLinkSendResponse, type ModeType, type MonthlyCreditStats, NotImplementedError, type OpenChatStreamOptions, type OrgBudget, OrgRoles, type OrgSubscription, type Organization, type OrganizationUser, PROVIDER_CATALOG, type Payment, type PeekScanLeaseResponse, type PostChatMessageRequest, type PostChatMessageResponse, type Project, type ProjectMember, type ProviderID, type ProviderSpec, ProviderType, type PublicConfig, type Query, type ReconcileScope, type ReconcileTuple, type RefreshRequest, type RegisterRequest, type RequestOptions, type ResetPasswordRequest, type ResourceTreeCategory, type ResourceTreeCredential, type ResourceTreeGrouping, type ResourceTreeResource, type ResourceTreeResponse, ResourcesClient, type Sandbox, type SandboxCredential, type ScanInProgressError, type ScheduledTask, type ScopedBudget, type SessionResponse, type SessionTokens, type SimpleAgentResponse, type SimpleKeysResponse, type SimpleOrgResponse, type SimpleResponse$2 as SimpleResponse, type StorageType, type SubgraphDirection, type SubgraphRequest, type SubgraphResponse, type Subscription, type SubscriptionCapability, type SubscriptionPeriod, type SystemEvent, type SystemEventQuery, type SystemEventQueryResponse, type SystemEventReadResponse, type Template, type TokenProvider, type UnauthorizedHandler, type UpdateChatBudgetRequest, type UpdateChatScheduleRequest, type UpdateCostLimitRequest, type UpdateCredentialRequest, type UpdateMemberRoleRequest, type UpdateOrgBudgetRequest, type UpdateOrgUserRequest, type UpdateOrganizationRequest, type UpdateProjectRequest, type UpdateSandboxRequest, type UpdateScopedBudgetRequest, type UpdateUserRequest, type UpdateUserResponse, type UsageBucket, type UsageByModelQuery, type UsageByModelResponse, type UsageByModelRow, type UsageReportQuery, type UsageReportResponse, type UsageSummary, type UsageSummaryQuery, type UsageSummaryResponse, type UsageTotals, type UsageWindow, type UserProfile, type UserSummary, computeDisplayHint, getProvider, getValueAt, isMetadataPath, isSecretPath, listProviders, metadataKey, setValueAt, usdMicros, validate };
|
package/dist/index.d.ts
CHANGED
|
@@ -143,12 +143,27 @@ interface SimpleResponse$2 {
|
|
|
143
143
|
message?: string;
|
|
144
144
|
error_code?: string;
|
|
145
145
|
}
|
|
146
|
+
/**
|
|
147
|
+
* Unauthenticated config the SPA reads at boot (GET /public-config) to decide
|
|
148
|
+
* what to render before any session exists — e.g. whether self-service signup
|
|
149
|
+
* is available. Reflects the backend's OPEN_REGISTRATION at runtime.
|
|
150
|
+
*/
|
|
151
|
+
interface PublicConfig {
|
|
152
|
+
openRegistration: boolean;
|
|
153
|
+
appName?: string;
|
|
154
|
+
}
|
|
146
155
|
|
|
147
156
|
declare class AuthClient {
|
|
148
157
|
private readonly http;
|
|
149
158
|
constructor(http: BaseClient);
|
|
150
159
|
login(body: LoginRequest): Promise<SessionResponse>;
|
|
151
160
|
register(body: RegisterRequest): Promise<SessionResponse>;
|
|
161
|
+
/**
|
|
162
|
+
* Unauthenticated boot config. The SPA reads `openRegistration` to decide
|
|
163
|
+
* whether to render the self-service signup form (false => invite-only /
|
|
164
|
+
* preview mode). Safe to call before any session exists.
|
|
165
|
+
*/
|
|
166
|
+
publicConfig(): Promise<PublicConfig>;
|
|
152
167
|
logout(refreshToken?: string): Promise<SimpleResponse$2>;
|
|
153
168
|
refresh(body: RefreshRequest): Promise<SessionResponse>;
|
|
154
169
|
activate(body: ActivateRequest): Promise<SessionResponse>;
|
|
@@ -320,6 +335,31 @@ interface AcceptInviteRequest {
|
|
|
320
335
|
token: string;
|
|
321
336
|
password: string;
|
|
322
337
|
}
|
|
338
|
+
/**
|
|
339
|
+
* Platform-admin payload for provisioning a brand-new organization and its
|
|
340
|
+
* founding owner in invite-only / preview mode (POST /organization/invite-org).
|
|
341
|
+
* The backend creates the org + owner (role=Owner, no password), provisions a
|
|
342
|
+
* subscription, and emails the owner an invite link. The owner finishes
|
|
343
|
+
* onboarding by accepting the invite (sets a password) or signing in via SSO.
|
|
344
|
+
*/
|
|
345
|
+
interface InviteOrgRequest {
|
|
346
|
+
orgName: string;
|
|
347
|
+
website?: string;
|
|
348
|
+
isBusiness?: boolean;
|
|
349
|
+
owner: {
|
|
350
|
+
email: string;
|
|
351
|
+
firstName: string;
|
|
352
|
+
lastName?: string;
|
|
353
|
+
};
|
|
354
|
+
/** Override the configured free tier with a specific plan name. */
|
|
355
|
+
subscriptionName?: string;
|
|
356
|
+
/** Comped credit grant in USD micros; overrides the plan's default grant. */
|
|
357
|
+
creditsMicros?: number;
|
|
358
|
+
}
|
|
359
|
+
interface InviteOrgResult {
|
|
360
|
+
organization: Organization;
|
|
361
|
+
owner: OrganizationUser;
|
|
362
|
+
}
|
|
323
363
|
interface SimpleOrgResponse {
|
|
324
364
|
success: boolean;
|
|
325
365
|
message?: string;
|
|
@@ -350,6 +390,14 @@ declare class OrganizationClient {
|
|
|
350
390
|
name: string;
|
|
351
391
|
allowDebug: boolean;
|
|
352
392
|
}>>;
|
|
393
|
+
/**
|
|
394
|
+
* Platform-admin only: provision a new organization + founding owner and
|
|
395
|
+
* email the owner an invite link. The invite-only counterpart to public
|
|
396
|
+
* self-service registration (used while the backend has OPEN_REGISTRATION
|
|
397
|
+
* disabled). Returns 403 unless the caller's home org is the configured
|
|
398
|
+
* ADMIN_ORGANIZATION; 409 when the owner email already exists.
|
|
399
|
+
*/
|
|
400
|
+
inviteOrg(body: InviteOrgRequest): Promise<InviteOrgResult>;
|
|
353
401
|
/**
|
|
354
402
|
* Platform-admin only: enable or disable the debug surface for an org.
|
|
355
403
|
* Returns the updated org entry with the new allowDebug value.
|
|
@@ -668,6 +716,10 @@ interface ListChatSessionsResponse {
|
|
|
668
716
|
interface ListChatSessionsQuery {
|
|
669
717
|
cursor?: string;
|
|
670
718
|
limit?: number;
|
|
719
|
+
/** Inclusive lower bound on `created_at`, RFC3339 timestamp. */
|
|
720
|
+
from?: string;
|
|
721
|
+
/** Exclusive upper bound on `created_at`, RFC3339 timestamp. */
|
|
722
|
+
to?: string;
|
|
671
723
|
}
|
|
672
724
|
interface GetChatSessionResponse {
|
|
673
725
|
session: ChatSession;
|
|
@@ -2019,4 +2071,4 @@ declare class NotImplementedError extends Error {
|
|
|
2019
2071
|
constructor(method: string);
|
|
2020
2072
|
}
|
|
2021
2073
|
|
|
2022
|
-
export { type AcceptInviteRequest, AccessType, type AcquireScanLeaseRequest, type AcquireScanLeaseResponse, type ActionCategory, type ActivateRequest, type AddMemberRequest, type AnswerChatQuestionRequest, type AnswerChatQuestionResponse, type AuthUser, BaseClient, type BaseClientOptions, type BudgetScope, BudgetsClient, type BuyCustomCreditRequest, type BuyCustomCreditResponse, type BuySubscriptionRequest, type BuySubscriptionResponse, CAP_AI, CAP_COMPUTE, CAP_GENERAL, CAP_STORAGE, CAP_VCS, type CancelChatTurnResponse, type CancelSubscriptionResponse, type ChatAssistantMessagePayload, type ChatBillingRefuseCode, type ChatBillingRefuseError, type ChatBudget, type ChatCheckpointedPayload, type ChatCompactionFiredPayload, type ChatDonePayload, type ChatEvent, type ChatEventType, type ChatMessage, type ChatMessageKind, type ChatMessageRole, type ChatNarrationPayload, type ChatPhase, type ChatPhasePayload, type ChatPlanDraftPayload, type ChatQuestionPayload, type ChatSchedule, type ChatScheduleEnvelope, type ChatScheduleRunStatus, type ChatScope, type ChatSession, type ChatSessionSource, type ChatSessionTitlePayload, type ChatStepEventPayload, type ChatStepProgressPayload, type ChatStreamHandle, type ChatToolCallConfirmationRequiredPayload, type ChatToolCallFinishedPayload, type ChatToolCallStartedPayload, type ClarificationOption, CloudAgentClient, type CloudAgentClientOptions, type CloudResource, type CloudResourceContainerRef, type CloudResourceEdge, type CloudScanHistory, type CloudScanLease, type ConfirmChatToolCallRequest, type ConfirmChatToolCallResponse, type CreateAgentTemplateRequest, type CreateChatScheduleRequest, type CreateChatSessionRequest, type CreateChatSessionResponse, type CreateCredentialRequest, type CreateGatewayTokenRequest, type CreateGatewayTokenResponse, type CreateOrganizationUserRequest, type CreateProjectRequest, type CreateSandboxRequest, type CreateScheduledTaskRequest, type Credential, type CreditBalance, type CreditTransaction, type CreditTransactionKind, type CreditTransactionType, type CustomCreditPurchaseConfig, type DebugPayload, type DebugReceipt, type EffectiveChatBudget, type ExchangeCodeRequest, type FieldSpec, type FieldType, type FineTuneParams, type GatewayToken, type GetChatSessionResponse, type GetUsageSummaryQuery, type GetUsageSummaryResponse, HttpError, type ImpersonationProvider, type ListAgentTemplatesQuery, type ListAgentTemplatesResponse, type ListChatScheduleRunsResponse, type ListChatSchedulesResponse, type ListChatSessionsQuery, type ListChatSessionsResponse, type ListCredentialsQuery, type ListCreditsTransactionsQuery, type ListCreditsTransactionsResponse, type ListPaymentsResponse, type ListSandboxesQuery, type ListScanHistoryQuery, type ListScanHistoryResponse, type ListScheduledTasksQuery, type ListScheduledTasksResponse, type LoginRequest, type MFASetupResponse, type MFASimpleResponse, type MFAStatus, MFAType, type MFAVerifyLoginRequest, type MFAVerifyLoginResponse, type MFAVerifySetupRequest, type MagicLinkActivateRequest, type MagicLinkSendResponse, type ModeType, type MonthlyCreditStats, NotImplementedError, type OpenChatStreamOptions, type OrgBudget, OrgRoles, type OrgSubscription, type Organization, type OrganizationUser, PROVIDER_CATALOG, type Payment, type PeekScanLeaseResponse, type PostChatMessageRequest, type PostChatMessageResponse, type Project, type ProjectMember, type ProviderID, type ProviderSpec, ProviderType, type Query, type ReconcileScope, type ReconcileTuple, type RefreshRequest, type RegisterRequest, type RequestOptions, type ResetPasswordRequest, type ResourceTreeCategory, type ResourceTreeCredential, type ResourceTreeGrouping, type ResourceTreeResource, type ResourceTreeResponse, ResourcesClient, type Sandbox, type SandboxCredential, type ScanInProgressError, type ScheduledTask, type ScopedBudget, type SessionResponse, type SessionTokens, type SimpleAgentResponse, type SimpleKeysResponse, type SimpleOrgResponse, type SimpleResponse$2 as SimpleResponse, type StorageType, type SubgraphDirection, type SubgraphRequest, type SubgraphResponse, type Subscription, type SubscriptionCapability, type SubscriptionPeriod, type SystemEvent, type SystemEventQuery, type SystemEventQueryResponse, type SystemEventReadResponse, type Template, type TokenProvider, type UnauthorizedHandler, type UpdateChatBudgetRequest, type UpdateChatScheduleRequest, type UpdateCostLimitRequest, type UpdateCredentialRequest, type UpdateMemberRoleRequest, type UpdateOrgBudgetRequest, type UpdateOrgUserRequest, type UpdateOrganizationRequest, type UpdateProjectRequest, type UpdateSandboxRequest, type UpdateScopedBudgetRequest, type UpdateUserRequest, type UpdateUserResponse, type UsageBucket, type UsageByModelQuery, type UsageByModelResponse, type UsageByModelRow, type UsageReportQuery, type UsageReportResponse, type UsageSummary, type UsageSummaryQuery, type UsageSummaryResponse, type UsageTotals, type UsageWindow, type UserProfile, type UserSummary, computeDisplayHint, getProvider, getValueAt, isMetadataPath, isSecretPath, listProviders, metadataKey, setValueAt, usdMicros, validate };
|
|
2074
|
+
export { type AcceptInviteRequest, AccessType, type AcquireScanLeaseRequest, type AcquireScanLeaseResponse, type ActionCategory, type ActivateRequest, type AddMemberRequest, type AnswerChatQuestionRequest, type AnswerChatQuestionResponse, type AuthUser, BaseClient, type BaseClientOptions, type BudgetScope, BudgetsClient, type BuyCustomCreditRequest, type BuyCustomCreditResponse, type BuySubscriptionRequest, type BuySubscriptionResponse, CAP_AI, CAP_COMPUTE, CAP_GENERAL, CAP_STORAGE, CAP_VCS, type CancelChatTurnResponse, type CancelSubscriptionResponse, type ChatAssistantMessagePayload, type ChatBillingRefuseCode, type ChatBillingRefuseError, type ChatBudget, type ChatCheckpointedPayload, type ChatCompactionFiredPayload, type ChatDonePayload, type ChatEvent, type ChatEventType, type ChatMessage, type ChatMessageKind, type ChatMessageRole, type ChatNarrationPayload, type ChatPhase, type ChatPhasePayload, type ChatPlanDraftPayload, type ChatQuestionPayload, type ChatSchedule, type ChatScheduleEnvelope, type ChatScheduleRunStatus, type ChatScope, type ChatSession, type ChatSessionSource, type ChatSessionTitlePayload, type ChatStepEventPayload, type ChatStepProgressPayload, type ChatStreamHandle, type ChatToolCallConfirmationRequiredPayload, type ChatToolCallFinishedPayload, type ChatToolCallStartedPayload, type ClarificationOption, CloudAgentClient, type CloudAgentClientOptions, type CloudResource, type CloudResourceContainerRef, type CloudResourceEdge, type CloudScanHistory, type CloudScanLease, type ConfirmChatToolCallRequest, type ConfirmChatToolCallResponse, type CreateAgentTemplateRequest, type CreateChatScheduleRequest, type CreateChatSessionRequest, type CreateChatSessionResponse, type CreateCredentialRequest, type CreateGatewayTokenRequest, type CreateGatewayTokenResponse, type CreateOrganizationUserRequest, type CreateProjectRequest, type CreateSandboxRequest, type CreateScheduledTaskRequest, type Credential, type CreditBalance, type CreditTransaction, type CreditTransactionKind, type CreditTransactionType, type CustomCreditPurchaseConfig, type DebugPayload, type DebugReceipt, type EffectiveChatBudget, type ExchangeCodeRequest, type FieldSpec, type FieldType, type FineTuneParams, type GatewayToken, type GetChatSessionResponse, type GetUsageSummaryQuery, type GetUsageSummaryResponse, HttpError, type ImpersonationProvider, type InviteOrgRequest, type InviteOrgResult, type ListAgentTemplatesQuery, type ListAgentTemplatesResponse, type ListChatScheduleRunsResponse, type ListChatSchedulesResponse, type ListChatSessionsQuery, type ListChatSessionsResponse, type ListCredentialsQuery, type ListCreditsTransactionsQuery, type ListCreditsTransactionsResponse, type ListPaymentsResponse, type ListSandboxesQuery, type ListScanHistoryQuery, type ListScanHistoryResponse, type ListScheduledTasksQuery, type ListScheduledTasksResponse, type LoginRequest, type MFASetupResponse, type MFASimpleResponse, type MFAStatus, MFAType, type MFAVerifyLoginRequest, type MFAVerifyLoginResponse, type MFAVerifySetupRequest, type MagicLinkActivateRequest, type MagicLinkSendResponse, type ModeType, type MonthlyCreditStats, NotImplementedError, type OpenChatStreamOptions, type OrgBudget, OrgRoles, type OrgSubscription, type Organization, type OrganizationUser, PROVIDER_CATALOG, type Payment, type PeekScanLeaseResponse, type PostChatMessageRequest, type PostChatMessageResponse, type Project, type ProjectMember, type ProviderID, type ProviderSpec, ProviderType, type PublicConfig, type Query, type ReconcileScope, type ReconcileTuple, type RefreshRequest, type RegisterRequest, type RequestOptions, type ResetPasswordRequest, type ResourceTreeCategory, type ResourceTreeCredential, type ResourceTreeGrouping, type ResourceTreeResource, type ResourceTreeResponse, ResourcesClient, type Sandbox, type SandboxCredential, type ScanInProgressError, type ScheduledTask, type ScopedBudget, type SessionResponse, type SessionTokens, type SimpleAgentResponse, type SimpleKeysResponse, type SimpleOrgResponse, type SimpleResponse$2 as SimpleResponse, type StorageType, type SubgraphDirection, type SubgraphRequest, type SubgraphResponse, type Subscription, type SubscriptionCapability, type SubscriptionPeriod, type SystemEvent, type SystemEventQuery, type SystemEventQueryResponse, type SystemEventReadResponse, type Template, type TokenProvider, type UnauthorizedHandler, type UpdateChatBudgetRequest, type UpdateChatScheduleRequest, type UpdateCostLimitRequest, type UpdateCredentialRequest, type UpdateMemberRoleRequest, type UpdateOrgBudgetRequest, type UpdateOrgUserRequest, type UpdateOrganizationRequest, type UpdateProjectRequest, type UpdateSandboxRequest, type UpdateScopedBudgetRequest, type UpdateUserRequest, type UpdateUserResponse, type UsageBucket, type UsageByModelQuery, type UsageByModelResponse, type UsageByModelRow, type UsageReportQuery, type UsageReportResponse, type UsageSummary, type UsageSummaryQuery, type UsageSummaryResponse, type UsageTotals, type UsageWindow, type UserProfile, type UserSummary, computeDisplayHint, getProvider, getValueAt, isMetadataPath, isSecretPath, listProviders, metadataKey, setValueAt, usdMicros, validate };
|
package/dist/index.js
CHANGED
|
@@ -136,6 +136,14 @@ var AuthClient = class {
|
|
|
136
136
|
register(body) {
|
|
137
137
|
return this.http.post("/user/register", { body, skipAuth: true });
|
|
138
138
|
}
|
|
139
|
+
/**
|
|
140
|
+
* Unauthenticated boot config. The SPA reads `openRegistration` to decide
|
|
141
|
+
* whether to render the self-service signup form (false => invite-only /
|
|
142
|
+
* preview mode). Safe to call before any session exists.
|
|
143
|
+
*/
|
|
144
|
+
publicConfig() {
|
|
145
|
+
return this.http.get("/public-config", { skipAuth: true });
|
|
146
|
+
}
|
|
139
147
|
logout(refreshToken) {
|
|
140
148
|
return this.http.post("/user/logout", {
|
|
141
149
|
body: { refreshToken }
|
|
@@ -270,6 +278,20 @@ var OrganizationClient = class {
|
|
|
270
278
|
const res = await this.http.get("/orgs/list-all");
|
|
271
279
|
return res.data ?? [];
|
|
272
280
|
}
|
|
281
|
+
/**
|
|
282
|
+
* Platform-admin only: provision a new organization + founding owner and
|
|
283
|
+
* email the owner an invite link. The invite-only counterpart to public
|
|
284
|
+
* self-service registration (used while the backend has OPEN_REGISTRATION
|
|
285
|
+
* disabled). Returns 403 unless the caller's home org is the configured
|
|
286
|
+
* ADMIN_ORGANIZATION; 409 when the owner email already exists.
|
|
287
|
+
*/
|
|
288
|
+
async inviteOrg(body) {
|
|
289
|
+
const res = await this.http.post(
|
|
290
|
+
"/organization/invite-org",
|
|
291
|
+
{ body }
|
|
292
|
+
);
|
|
293
|
+
return unwrapData(res);
|
|
294
|
+
}
|
|
273
295
|
/**
|
|
274
296
|
* Platform-admin only: enable or disable the debug surface for an org.
|
|
275
297
|
* Returns the updated org entry with the new allowDebug value.
|