@inferencesh/sdk 0.6.8 → 0.6.12
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/CHANGELOG.md +7 -1
- package/README.md +70 -1
- package/dist/agent/actions.js +3 -3
- package/dist/agent/actions.test.js +89 -0
- package/dist/agent/api.test.js +86 -8
- package/dist/api/agents.d.ts +10 -0
- package/dist/api/agents.js +17 -3
- package/dist/api/agents.test.js +303 -92
- package/dist/api/api-keys.d.ts +24 -0
- package/dist/api/api-keys.js +26 -0
- package/dist/api/api-keys.test.d.ts +1 -0
- package/dist/api/api-keys.test.js +44 -0
- package/dist/api/apps.js +1 -1
- package/dist/api/apps.test.d.ts +1 -0
- package/dist/api/apps.test.js +135 -0
- package/dist/api/chats.d.ts +14 -0
- package/dist/api/chats.js +18 -0
- package/dist/api/chats.test.d.ts +1 -0
- package/dist/api/chats.test.js +85 -0
- package/dist/api/engines.d.ts +12 -0
- package/dist/api/engines.js +18 -0
- package/dist/api/engines.test.d.ts +1 -0
- package/dist/api/engines.test.js +133 -0
- package/dist/api/files.test.js +186 -6
- package/dist/api/flow-runs.test.d.ts +1 -0
- package/dist/api/flow-runs.test.js +97 -0
- package/dist/api/flows.d.ts +4 -0
- package/dist/api/flows.js +6 -0
- package/dist/api/flows.test.d.ts +1 -0
- package/dist/api/flows.test.js +118 -0
- package/dist/api/integrations.d.ts +41 -0
- package/dist/api/integrations.js +56 -0
- package/dist/api/integrations.test.d.ts +1 -0
- package/dist/api/integrations.test.js +109 -0
- package/dist/api/knowledge.d.ts +112 -0
- package/dist/api/knowledge.js +163 -0
- package/dist/api/knowledge.test.d.ts +1 -0
- package/dist/api/knowledge.test.js +94 -0
- package/dist/api/mcp-servers.d.ts +45 -0
- package/dist/api/mcp-servers.js +62 -0
- package/dist/api/mcp-servers.test.d.ts +1 -0
- package/dist/api/mcp-servers.test.js +64 -0
- package/dist/api/projects.d.ts +29 -0
- package/dist/api/projects.js +38 -0
- package/dist/api/projects.test.d.ts +1 -0
- package/dist/api/projects.test.js +52 -0
- package/dist/api/search.d.ts +21 -0
- package/dist/api/search.js +20 -0
- package/dist/api/search.test.d.ts +1 -0
- package/dist/api/search.test.js +39 -0
- package/dist/api/secrets.d.ts +29 -0
- package/dist/api/secrets.js +38 -0
- package/dist/api/secrets.test.d.ts +1 -0
- package/dist/api/secrets.test.js +61 -0
- package/dist/api/sessions.test.js +4 -4
- package/dist/api/tasks.d.ts +13 -1
- package/dist/api/tasks.js +18 -0
- package/dist/api/tasks.test.js +174 -22
- package/dist/api/teams.d.ts +71 -0
- package/dist/api/teams.js +92 -0
- package/dist/api/teams.test.d.ts +1 -0
- package/dist/api/teams.test.js +79 -0
- package/dist/client.test.js +8 -8
- package/dist/http/client.d.ts +5 -0
- package/dist/http/client.js +46 -48
- package/dist/http/client.test.js +296 -13
- package/dist/http/errors.test.js +13 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.js +25 -0
- package/dist/proxy/express.test.d.ts +1 -0
- package/dist/proxy/express.test.js +106 -0
- package/dist/proxy/index.test.js +10 -1
- package/dist/tool-builder.test.js +11 -1
- package/dist/types.d.ts +793 -23
- package/dist/types.js +180 -8
- package/package.json +4 -4
package/dist/types.d.ts
CHANGED
|
@@ -289,6 +289,27 @@ export interface ApiAgentRunRequest {
|
|
|
289
289
|
};
|
|
290
290
|
stream?: boolean;
|
|
291
291
|
}
|
|
292
|
+
/**
|
|
293
|
+
* CreateAgentMessageRequest is the request for creating agent messages.
|
|
294
|
+
*/
|
|
295
|
+
export interface CreateAgentMessageRequest {
|
|
296
|
+
chat_id?: string;
|
|
297
|
+
agent_id?: string;
|
|
298
|
+
agent_version_id?: string;
|
|
299
|
+
agent?: string;
|
|
300
|
+
tool_call_id?: string;
|
|
301
|
+
input: ChatTaskInput;
|
|
302
|
+
integration_context?: IntegrationContext;
|
|
303
|
+
agent_config?: AgentConfigInput;
|
|
304
|
+
agent_name?: string;
|
|
305
|
+
context?: {
|
|
306
|
+
[key: string]: string;
|
|
307
|
+
};
|
|
308
|
+
}
|
|
309
|
+
export interface CreateAgentMessageResponse {
|
|
310
|
+
user_message?: ChatMessageDTO;
|
|
311
|
+
assistant_message?: ChatMessageDTO;
|
|
312
|
+
}
|
|
292
313
|
/**
|
|
293
314
|
* ToolResultRequest represents a tool result submission
|
|
294
315
|
*/
|
|
@@ -305,16 +326,60 @@ export interface PartialFile {
|
|
|
305
326
|
size?: number;
|
|
306
327
|
filename?: string;
|
|
307
328
|
}
|
|
329
|
+
export interface FileCreateRequest {
|
|
330
|
+
category?: string;
|
|
331
|
+
files: PartialFile[];
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
* AppVersionInput is the API input shape for app version config (no gorm tags).
|
|
335
|
+
*/
|
|
336
|
+
export interface AppVersionInput {
|
|
337
|
+
metadata?: {
|
|
338
|
+
[key: string]: any;
|
|
339
|
+
};
|
|
340
|
+
repository?: string;
|
|
341
|
+
setup_schema?: any;
|
|
342
|
+
input_schema?: any;
|
|
343
|
+
output_schema?: any;
|
|
344
|
+
functions?: {
|
|
345
|
+
[key: string]: AppFunction;
|
|
346
|
+
};
|
|
347
|
+
default_function?: string;
|
|
348
|
+
variants?: {
|
|
349
|
+
[key: string]: AppVariant;
|
|
350
|
+
};
|
|
351
|
+
env?: {
|
|
352
|
+
[key: string]: string;
|
|
353
|
+
};
|
|
354
|
+
kernel?: string;
|
|
355
|
+
required_secrets?: SecretRequirement[];
|
|
356
|
+
required_integrations?: IntegrationRequirement[];
|
|
357
|
+
resources?: AppResources;
|
|
358
|
+
}
|
|
359
|
+
/**
|
|
360
|
+
* CreateAppRequest is the request body for POST /apps
|
|
361
|
+
*/
|
|
362
|
+
export interface CreateAppRequest {
|
|
363
|
+
id?: string;
|
|
364
|
+
namespace?: string;
|
|
365
|
+
name: string;
|
|
366
|
+
description?: string;
|
|
367
|
+
agent_description?: string;
|
|
368
|
+
category?: AppCategory;
|
|
369
|
+
images?: AppImages;
|
|
370
|
+
version?: AppVersionInput;
|
|
371
|
+
preserve_current_version?: boolean;
|
|
372
|
+
}
|
|
308
373
|
export interface SkillPublishRequest {
|
|
309
374
|
namespace?: string;
|
|
310
375
|
name: string;
|
|
311
|
-
description
|
|
312
|
-
category
|
|
313
|
-
repo_url
|
|
314
|
-
license
|
|
315
|
-
allowed_tools
|
|
316
|
-
compatibility
|
|
317
|
-
instructions
|
|
376
|
+
description?: string;
|
|
377
|
+
category?: string;
|
|
378
|
+
repo_url?: string;
|
|
379
|
+
license?: string;
|
|
380
|
+
allowed_tools?: string;
|
|
381
|
+
compatibility?: string;
|
|
382
|
+
instructions?: string;
|
|
318
383
|
files: KnowledgeFile[];
|
|
319
384
|
metadata?: {
|
|
320
385
|
[key: string]: string;
|
|
@@ -323,9 +388,14 @@ export interface SkillPublishRequest {
|
|
|
323
388
|
parent_version_id?: string;
|
|
324
389
|
source_url?: string;
|
|
325
390
|
version_notes?: string;
|
|
326
|
-
disable_model_invocation
|
|
391
|
+
disable_model_invocation?: boolean;
|
|
327
392
|
user_invocable?: boolean;
|
|
328
|
-
context
|
|
393
|
+
context?: string;
|
|
394
|
+
}
|
|
395
|
+
export interface CheckoutCreateRequest {
|
|
396
|
+
amount: number;
|
|
397
|
+
success_url: string;
|
|
398
|
+
cancel_url: string;
|
|
329
399
|
}
|
|
330
400
|
export interface AuthResponse {
|
|
331
401
|
user?: UserDTO;
|
|
@@ -334,6 +404,35 @@ export interface AuthResponse {
|
|
|
334
404
|
redirect_to?: string;
|
|
335
405
|
provider?: string;
|
|
336
406
|
}
|
|
407
|
+
/**
|
|
408
|
+
* DeviceAuthInitRequest is the optional body for initiating device auth.
|
|
409
|
+
* TokenKind selects the credential minted on approval; empty means
|
|
410
|
+
* DeviceTokenKindAPIKey (legacy CLIs send no body).
|
|
411
|
+
*/
|
|
412
|
+
export interface DeviceAuthInitRequest {
|
|
413
|
+
token_kind?: DeviceTokenKind;
|
|
414
|
+
}
|
|
415
|
+
export interface DeviceAuthResponse {
|
|
416
|
+
user_code: string;
|
|
417
|
+
device_code: string;
|
|
418
|
+
poll_url: string;
|
|
419
|
+
approve_url: string;
|
|
420
|
+
expires_in: number;
|
|
421
|
+
interval: number;
|
|
422
|
+
}
|
|
423
|
+
export interface DeviceAuthPollResponse {
|
|
424
|
+
status: DeviceAuthStatus;
|
|
425
|
+
/**
|
|
426
|
+
* ApiKey is set for legacy device-auth API key logins.
|
|
427
|
+
* TODO: remove once CLIs older than the session-token release are retired.
|
|
428
|
+
*/
|
|
429
|
+
api_key?: string;
|
|
430
|
+
/**
|
|
431
|
+
* SessionToken is set when the flow was initiated with token_kind=session.
|
|
432
|
+
*/
|
|
433
|
+
session_token?: string;
|
|
434
|
+
team_id?: string;
|
|
435
|
+
}
|
|
337
436
|
export interface TeamCreateRequest {
|
|
338
437
|
name: string;
|
|
339
438
|
username: string;
|
|
@@ -349,6 +448,24 @@ export interface TeamMemberAddRequest {
|
|
|
349
448
|
export interface TeamMemberUpdateRoleRequest {
|
|
350
449
|
role: TeamRole;
|
|
351
450
|
}
|
|
451
|
+
export interface SecretCreateRequest {
|
|
452
|
+
key: string;
|
|
453
|
+
value: string;
|
|
454
|
+
description?: string;
|
|
455
|
+
}
|
|
456
|
+
export interface SecretUpdateRequest {
|
|
457
|
+
value: string;
|
|
458
|
+
description?: string;
|
|
459
|
+
}
|
|
460
|
+
export interface IntegrationConnectRequest {
|
|
461
|
+
provider: string;
|
|
462
|
+
type: string;
|
|
463
|
+
scopes?: string[];
|
|
464
|
+
api_key?: string;
|
|
465
|
+
metadata?: {
|
|
466
|
+
[key: string]: any;
|
|
467
|
+
};
|
|
468
|
+
}
|
|
352
469
|
export interface IntegrationCompleteOAuthRequest {
|
|
353
470
|
provider: string;
|
|
354
471
|
type: string;
|
|
@@ -356,6 +473,39 @@ export interface IntegrationCompleteOAuthRequest {
|
|
|
356
473
|
state: string;
|
|
357
474
|
code_verifier?: string;
|
|
358
475
|
}
|
|
476
|
+
export interface IntegrationConnectResponse {
|
|
477
|
+
integration?: IntegrationDTO;
|
|
478
|
+
auth_url?: string;
|
|
479
|
+
state?: string;
|
|
480
|
+
code_verifier?: string;
|
|
481
|
+
instructions?: string;
|
|
482
|
+
requires_confirmation?: boolean;
|
|
483
|
+
confirmation_type?: string;
|
|
484
|
+
message?: string;
|
|
485
|
+
}
|
|
486
|
+
export interface ProjectCreateRequest {
|
|
487
|
+
name: string;
|
|
488
|
+
type: ProjectType;
|
|
489
|
+
}
|
|
490
|
+
export interface ProjectUpdateRequest {
|
|
491
|
+
name: string;
|
|
492
|
+
}
|
|
493
|
+
export interface MoveAgentToProjectRequest {
|
|
494
|
+
agent_id: string;
|
|
495
|
+
project_id: string;
|
|
496
|
+
}
|
|
497
|
+
/**
|
|
498
|
+
* CancelTaskRequest is the optional request body for task cancellation.
|
|
499
|
+
*/
|
|
500
|
+
export interface CancelTaskRequest {
|
|
501
|
+
force: boolean;
|
|
502
|
+
timeout: number;
|
|
503
|
+
}
|
|
504
|
+
export interface CreateApiKeyRequest {
|
|
505
|
+
name: string;
|
|
506
|
+
expires_at?: string;
|
|
507
|
+
scopes?: string[];
|
|
508
|
+
}
|
|
359
509
|
/**
|
|
360
510
|
* Scope represents an API key permission scope string.
|
|
361
511
|
*/
|
|
@@ -726,12 +876,17 @@ export interface SecretRequirement {
|
|
|
726
876
|
optional?: boolean;
|
|
727
877
|
}
|
|
728
878
|
/**
|
|
729
|
-
* IntegrationRequirement defines an integration
|
|
879
|
+
* IntegrationRequirement defines an integration that an app requires.
|
|
880
|
+
* Key is the provider slug (e.g. "bytedance", "google").
|
|
881
|
+
* Secrets lists the specific env var names to inject from this integration.
|
|
882
|
+
* Scopes lists OAuth scopes needed (for OAuth integrations).
|
|
730
883
|
*/
|
|
731
884
|
export interface IntegrationRequirement {
|
|
732
885
|
key: string;
|
|
733
886
|
description?: string;
|
|
734
887
|
optional?: boolean;
|
|
888
|
+
secrets?: string[];
|
|
889
|
+
scopes?: string[];
|
|
735
890
|
}
|
|
736
891
|
/**
|
|
737
892
|
* AppDTO is the API response for a full app.
|
|
@@ -815,6 +970,7 @@ export interface AppStoreListingDTO {
|
|
|
815
970
|
allows_cloud_workers: boolean;
|
|
816
971
|
max_concurrency: number;
|
|
817
972
|
max_concurrency_per_team: number;
|
|
973
|
+
min_concurrency: number;
|
|
818
974
|
tags?: string[];
|
|
819
975
|
}
|
|
820
976
|
/**
|
|
@@ -834,6 +990,25 @@ export interface PublicAppStoreDTO {
|
|
|
834
990
|
has_approved_version: boolean;
|
|
835
991
|
page_id?: string;
|
|
836
992
|
}
|
|
993
|
+
/**
|
|
994
|
+
* AuthSessionDTO is a safe representation of AuthSession for API responses.
|
|
995
|
+
*/
|
|
996
|
+
export interface AuthSessionDTO {
|
|
997
|
+
id: string;
|
|
998
|
+
created_at: string;
|
|
999
|
+
expires_at: string;
|
|
1000
|
+
ip: string;
|
|
1001
|
+
city: string;
|
|
1002
|
+
country: string;
|
|
1003
|
+
country_code: string;
|
|
1004
|
+
region: string;
|
|
1005
|
+
os: string;
|
|
1006
|
+
browser: string;
|
|
1007
|
+
browser_version: string;
|
|
1008
|
+
auth_method: string;
|
|
1009
|
+
scopes?: Scope[];
|
|
1010
|
+
current: boolean;
|
|
1011
|
+
}
|
|
837
1012
|
/**
|
|
838
1013
|
* BaseModelDTO is the contract-layer base embed — same fields, no gorm tags.
|
|
839
1014
|
* All DTOs should embed this instead of BaseModel.
|
|
@@ -1272,6 +1447,7 @@ export interface InstanceDTO extends BaseModelDTO, PermissionModelDTO {
|
|
|
1272
1447
|
*/
|
|
1273
1448
|
export interface InstanceTypeDTO extends BaseModelDTO, PermissionModelDTO {
|
|
1274
1449
|
cloud: InstanceCloudProvider;
|
|
1450
|
+
cloud_logo_url?: string;
|
|
1275
1451
|
region: string;
|
|
1276
1452
|
shade_instance_type: string;
|
|
1277
1453
|
cloud_instance_type: string;
|
|
@@ -1283,9 +1459,11 @@ export interface InstanceTypeDTO extends BaseModelDTO, PermissionModelDTO {
|
|
|
1283
1459
|
}
|
|
1284
1460
|
export interface InstanceTypeConfiguration {
|
|
1285
1461
|
gpu_type: string;
|
|
1462
|
+
gpu_manufacturer: string;
|
|
1286
1463
|
interconnect: string;
|
|
1287
1464
|
memory_in_gb: number;
|
|
1288
1465
|
num_gpus: number;
|
|
1466
|
+
nvlink: boolean;
|
|
1289
1467
|
os_options: string[];
|
|
1290
1468
|
storage_in_gb: number;
|
|
1291
1469
|
vcpus: number;
|
|
@@ -1304,6 +1482,7 @@ export interface InstanceTypeBootTime {
|
|
|
1304
1482
|
* IntegrationDTO for API responses (never exposes tokens)
|
|
1305
1483
|
*/
|
|
1306
1484
|
export interface IntegrationDTO extends BaseModelDTO, PermissionModelDTO {
|
|
1485
|
+
scope: IntegrationScope;
|
|
1307
1486
|
provider: IntegrationProvider;
|
|
1308
1487
|
type: IntegrationAuthType;
|
|
1309
1488
|
auth: IntegrationAuthType;
|
|
@@ -1325,6 +1504,7 @@ export interface IntegrationDTO extends BaseModelDTO, PermissionModelDTO {
|
|
|
1325
1504
|
* IntegrationConfigDTO is the API response for integration configuration
|
|
1326
1505
|
*/
|
|
1327
1506
|
export interface IntegrationConfigDTO {
|
|
1507
|
+
slug: string;
|
|
1328
1508
|
provider: string;
|
|
1329
1509
|
type: string;
|
|
1330
1510
|
auth: string;
|
|
@@ -1354,10 +1534,10 @@ export interface SecretFieldConfig {
|
|
|
1354
1534
|
* KnowledgeFile represents a file in a knowledge entry
|
|
1355
1535
|
*/
|
|
1356
1536
|
export interface KnowledgeFile {
|
|
1357
|
-
path
|
|
1537
|
+
path?: string;
|
|
1358
1538
|
uri?: string;
|
|
1359
|
-
size
|
|
1360
|
-
hash
|
|
1539
|
+
size?: number;
|
|
1540
|
+
hash?: string;
|
|
1361
1541
|
content?: string;
|
|
1362
1542
|
}
|
|
1363
1543
|
/**
|
|
@@ -1391,6 +1571,52 @@ export interface SkillVersionDTO extends BaseModelDTO {
|
|
|
1391
1571
|
[key: string]: string;
|
|
1392
1572
|
};
|
|
1393
1573
|
}
|
|
1574
|
+
/**
|
|
1575
|
+
* KnowledgeDTO — generic DTO for /knowledge endpoints (all types)
|
|
1576
|
+
*/
|
|
1577
|
+
export interface KnowledgeDTO extends BaseModelDTO, PermissionModelDTO {
|
|
1578
|
+
namespace: string;
|
|
1579
|
+
name: string;
|
|
1580
|
+
description: string;
|
|
1581
|
+
type: KnowledgeType;
|
|
1582
|
+
lifecycle: KnowledgeLifecycle;
|
|
1583
|
+
version_id: string;
|
|
1584
|
+
version?: KnowledgeVersionDTO;
|
|
1585
|
+
}
|
|
1586
|
+
export interface KnowledgeVersionDTO extends BaseModelDTO {
|
|
1587
|
+
knowledge_id: string;
|
|
1588
|
+
content: KnowledgeFile;
|
|
1589
|
+
files: KnowledgeFile[];
|
|
1590
|
+
content_hash: string;
|
|
1591
|
+
description: string;
|
|
1592
|
+
tags: string[];
|
|
1593
|
+
metadata?: {
|
|
1594
|
+
[key: string]: string;
|
|
1595
|
+
};
|
|
1596
|
+
source_url?: string;
|
|
1597
|
+
mutation_type?: string;
|
|
1598
|
+
version_notes?: string;
|
|
1599
|
+
last_confirmed_at?: string;
|
|
1600
|
+
}
|
|
1601
|
+
/**
|
|
1602
|
+
* ResourceRef is a compact reference to any resource (knowledge, app, agent).
|
|
1603
|
+
*/
|
|
1604
|
+
export interface ResourceRef {
|
|
1605
|
+
id: string;
|
|
1606
|
+
namespace: string;
|
|
1607
|
+
name: string;
|
|
1608
|
+
type: ResourceType;
|
|
1609
|
+
resource_kind: string;
|
|
1610
|
+
description: string;
|
|
1611
|
+
}
|
|
1612
|
+
/**
|
|
1613
|
+
* ReferencesResponse is returned by the references endpoint.
|
|
1614
|
+
*/
|
|
1615
|
+
export interface ReferencesResponse {
|
|
1616
|
+
resource: ResourceRef;
|
|
1617
|
+
references: ResourceRef[];
|
|
1618
|
+
referenced_by: ResourceRef[];
|
|
1619
|
+
}
|
|
1394
1620
|
/**
|
|
1395
1621
|
* SkillLineageResponse is returned by the lineage endpoint.
|
|
1396
1622
|
*/
|
|
@@ -1446,6 +1672,42 @@ export interface SkillStoreListingDTO {
|
|
|
1446
1672
|
* StringSlice is a custom type for storing string slices
|
|
1447
1673
|
*/
|
|
1448
1674
|
export type StringSlice = string[];
|
|
1675
|
+
/**
|
|
1676
|
+
* MCPServerDTO is the API response shape for the resource.
|
|
1677
|
+
*/
|
|
1678
|
+
export interface MCPServerDTO {
|
|
1679
|
+
id: string;
|
|
1680
|
+
PermissionModelDTO: PermissionModelDTO;
|
|
1681
|
+
slug: string;
|
|
1682
|
+
name: string;
|
|
1683
|
+
description: string;
|
|
1684
|
+
icon_url: string;
|
|
1685
|
+
server_url: string;
|
|
1686
|
+
auth_type: MCPServerAuthType;
|
|
1687
|
+
oauth_client_id?: string;
|
|
1688
|
+
default_scopes: StringSlice;
|
|
1689
|
+
documentation_url: string;
|
|
1690
|
+
}
|
|
1691
|
+
/**
|
|
1692
|
+
* NotificationDTO is the data transfer object
|
|
1693
|
+
*/
|
|
1694
|
+
export interface NotificationDTO extends BaseModelDTO, PermissionModelDTO {
|
|
1695
|
+
type: NotificationType;
|
|
1696
|
+
channel: NotificationChannel;
|
|
1697
|
+
priority: NotificationPriority;
|
|
1698
|
+
status: NotificationStatus;
|
|
1699
|
+
recipient_email?: string;
|
|
1700
|
+
subject: string;
|
|
1701
|
+
body?: string;
|
|
1702
|
+
scheduled_at?: string;
|
|
1703
|
+
sent_at?: string;
|
|
1704
|
+
delivered_at?: string;
|
|
1705
|
+
failed_at?: string;
|
|
1706
|
+
error_message?: string;
|
|
1707
|
+
retry_count: number;
|
|
1708
|
+
reference_type?: string;
|
|
1709
|
+
reference_id?: string;
|
|
1710
|
+
}
|
|
1449
1711
|
/**
|
|
1450
1712
|
* NotificationPreferencesDTO is the data transfer object
|
|
1451
1713
|
*/
|
|
@@ -1530,6 +1792,40 @@ export interface MenuDTO extends BaseModelDTO, PermissionModelDTO {
|
|
|
1530
1792
|
description: string;
|
|
1531
1793
|
items: MenuItem[];
|
|
1532
1794
|
}
|
|
1795
|
+
/**
|
|
1796
|
+
* PlanLimit defines a single resource limit or feature gate within a plan.
|
|
1797
|
+
*/
|
|
1798
|
+
export interface PlanLimit {
|
|
1799
|
+
type: EntitlementType;
|
|
1800
|
+
label?: string;
|
|
1801
|
+
unit?: string;
|
|
1802
|
+
enabled?: boolean;
|
|
1803
|
+
unlimited?: boolean;
|
|
1804
|
+
limit?: number;
|
|
1805
|
+
enforcement?: EnforcementMode;
|
|
1806
|
+
}
|
|
1807
|
+
/**
|
|
1808
|
+
* PlanLimits maps entitlement resources to their limits
|
|
1809
|
+
*/
|
|
1810
|
+
export type PlanLimits = {
|
|
1811
|
+
[key: EntitlementResource]: PlanLimit;
|
|
1812
|
+
};
|
|
1813
|
+
/**
|
|
1814
|
+
* PlanDTO for API responses
|
|
1815
|
+
*/
|
|
1816
|
+
export interface PlanDTO extends BaseModelDTO {
|
|
1817
|
+
name: string;
|
|
1818
|
+
description: string;
|
|
1819
|
+
display_order: number;
|
|
1820
|
+
active: boolean;
|
|
1821
|
+
self_serve?: boolean;
|
|
1822
|
+
price_monthly?: number;
|
|
1823
|
+
price_yearly?: number;
|
|
1824
|
+
credits_monthly: number;
|
|
1825
|
+
provider_price_id_monthly?: string;
|
|
1826
|
+
provider_price_id_yearly?: string;
|
|
1827
|
+
limits: PlanLimits;
|
|
1828
|
+
}
|
|
1533
1829
|
/**
|
|
1534
1830
|
* ProjectModelDTO provides optional project association for DTOs
|
|
1535
1831
|
*/
|
|
@@ -1550,22 +1846,207 @@ export interface ProjectDTO extends BaseModelDTO, PermissionModelDTO {
|
|
|
1550
1846
|
parent?: ProjectDTO;
|
|
1551
1847
|
children: (ProjectDTO | undefined)[];
|
|
1552
1848
|
}
|
|
1849
|
+
/**
|
|
1850
|
+
* RefRouteDTO for API responses
|
|
1851
|
+
*/
|
|
1852
|
+
export interface RefRouteDTO extends BaseModelDTO {
|
|
1853
|
+
type: RefRouteType;
|
|
1854
|
+
alias_ref: string;
|
|
1855
|
+
target_ref: string;
|
|
1856
|
+
primary: boolean;
|
|
1857
|
+
description: string;
|
|
1858
|
+
enabled: boolean;
|
|
1859
|
+
}
|
|
1860
|
+
/**
|
|
1861
|
+
* KnowledgeCreateRequest is the request body for POST /knowledge.
|
|
1862
|
+
*/
|
|
1863
|
+
export interface KnowledgeCreateRequest {
|
|
1864
|
+
name: string;
|
|
1865
|
+
description?: string;
|
|
1866
|
+
repo_url?: string;
|
|
1867
|
+
type?: KnowledgeType;
|
|
1868
|
+
lifecycle?: KnowledgeLifecycle;
|
|
1869
|
+
/**
|
|
1870
|
+
* Version content (inline — creates first version)
|
|
1871
|
+
*/
|
|
1872
|
+
version?: KnowledgeVersionInput;
|
|
1873
|
+
}
|
|
1874
|
+
/**
|
|
1875
|
+
* KnowledgeVersionInput is the input shape for creating/updating a knowledge version.
|
|
1876
|
+
*/
|
|
1877
|
+
export interface KnowledgeVersionInput {
|
|
1878
|
+
description?: string;
|
|
1879
|
+
content?: KnowledgeFile;
|
|
1880
|
+
files?: KnowledgeFile[];
|
|
1881
|
+
tags?: string[];
|
|
1882
|
+
metadata?: {
|
|
1883
|
+
[key: string]: string;
|
|
1884
|
+
};
|
|
1885
|
+
source_url?: string;
|
|
1886
|
+
mutation_type?: string;
|
|
1887
|
+
version_notes?: string;
|
|
1888
|
+
}
|
|
1889
|
+
/**
|
|
1890
|
+
* KnowledgeUpdateRequest is the request body for PUT /knowledge/{id}.
|
|
1891
|
+
*/
|
|
1892
|
+
export interface KnowledgeUpdateRequest {
|
|
1893
|
+
description?: string;
|
|
1894
|
+
version?: KnowledgeVersionInput;
|
|
1895
|
+
}
|
|
1896
|
+
/**
|
|
1897
|
+
* CreateSubscriptionRequest is the request body for POST /subscriptions.
|
|
1898
|
+
*/
|
|
1899
|
+
export interface CreateSubscriptionRequest {
|
|
1900
|
+
plan_id: string;
|
|
1901
|
+
interval?: string;
|
|
1902
|
+
success_url?: string;
|
|
1903
|
+
cancel_url?: string;
|
|
1904
|
+
}
|
|
1905
|
+
/**
|
|
1906
|
+
* ChangePlanRequest is the request body for POST /subscriptions/change.
|
|
1907
|
+
*/
|
|
1908
|
+
export interface ChangePlanRequest {
|
|
1909
|
+
plan_id: string;
|
|
1910
|
+
}
|
|
1911
|
+
/**
|
|
1912
|
+
* CancelSubscriptionRequest is the request body for POST /subscriptions/cancel.
|
|
1913
|
+
*/
|
|
1914
|
+
export interface CancelSubscriptionRequest {
|
|
1915
|
+
at_period_end?: boolean;
|
|
1916
|
+
}
|
|
1917
|
+
/**
|
|
1918
|
+
* OAuthAuthorizeInfoResponse is returned by GET /oauth/authorize/info.
|
|
1919
|
+
*/
|
|
1920
|
+
export interface OAuthAuthorizeInfoResponse {
|
|
1921
|
+
client_name: string;
|
|
1922
|
+
client_type: string;
|
|
1923
|
+
origin: string;
|
|
1924
|
+
verified: boolean;
|
|
1925
|
+
scopes: Scope[];
|
|
1926
|
+
redirect_host: string;
|
|
1927
|
+
}
|
|
1928
|
+
/**
|
|
1929
|
+
* OAuthApproveRequest is the request body for POST /oauth/authorize/approve.
|
|
1930
|
+
*/
|
|
1931
|
+
export interface OAuthApproveRequest {
|
|
1932
|
+
client_id: string;
|
|
1933
|
+
redirect_uri: string;
|
|
1934
|
+
code_challenge: string;
|
|
1935
|
+
state: string;
|
|
1936
|
+
scope: string;
|
|
1937
|
+
}
|
|
1938
|
+
/**
|
|
1939
|
+
* OAuthRedirectResponse wraps a redirect URI.
|
|
1940
|
+
*/
|
|
1941
|
+
export interface OAuthRedirectResponse {
|
|
1942
|
+
redirect_uri: string;
|
|
1943
|
+
}
|
|
1944
|
+
/**
|
|
1945
|
+
* OAuthConnectedApp represents an authorized OAuth client.
|
|
1946
|
+
*/
|
|
1947
|
+
export interface OAuthConnectedApp {
|
|
1948
|
+
client_id: string;
|
|
1949
|
+
client_name: string;
|
|
1950
|
+
client_type: string;
|
|
1951
|
+
origin: string;
|
|
1952
|
+
verified: boolean;
|
|
1953
|
+
scopes: string;
|
|
1954
|
+
authorized_at: string;
|
|
1955
|
+
}
|
|
1956
|
+
/**
|
|
1957
|
+
* SetVisibilityRequest is used by admin endpoints to set visibility.
|
|
1958
|
+
*/
|
|
1959
|
+
export interface SetVisibilityRequest {
|
|
1960
|
+
visibility: string;
|
|
1961
|
+
}
|
|
1962
|
+
/**
|
|
1963
|
+
* ChargeAmountRequest is the request for charging a saved payment method.
|
|
1964
|
+
*/
|
|
1965
|
+
export interface ChargeAmountRequest {
|
|
1966
|
+
amount: number;
|
|
1967
|
+
}
|
|
1968
|
+
/**
|
|
1969
|
+
* CompletePaymentRequest finishes a checkout or payment session.
|
|
1970
|
+
*/
|
|
1971
|
+
export interface CompletePaymentRequest {
|
|
1972
|
+
session_id?: string;
|
|
1973
|
+
payment_id?: string;
|
|
1974
|
+
}
|
|
1975
|
+
/**
|
|
1976
|
+
* UpdateIntegrationScopesRequest updates integration scopes.
|
|
1977
|
+
*/
|
|
1978
|
+
export interface UpdateIntegrationScopesRequest {
|
|
1979
|
+
scopes: string[];
|
|
1980
|
+
}
|
|
1981
|
+
/**
|
|
1982
|
+
* SuggestRequest is the input for the suggest endpoint.
|
|
1983
|
+
*/
|
|
1984
|
+
export interface SuggestRequest {
|
|
1985
|
+
query: string;
|
|
1986
|
+
limit?: number;
|
|
1987
|
+
category?: string;
|
|
1988
|
+
agent?: boolean;
|
|
1989
|
+
}
|
|
1990
|
+
/**
|
|
1991
|
+
* SuggestResponse is the output of the suggest endpoint.
|
|
1992
|
+
*/
|
|
1993
|
+
export interface SuggestResponse {
|
|
1994
|
+
query: string;
|
|
1995
|
+
results: SuggestResult[];
|
|
1996
|
+
}
|
|
1997
|
+
/**
|
|
1998
|
+
* SuggestResult is a single result item from the suggest endpoint.
|
|
1999
|
+
*/
|
|
2000
|
+
export interface SuggestResult {
|
|
2001
|
+
type: string;
|
|
2002
|
+
name: string;
|
|
2003
|
+
description: string;
|
|
2004
|
+
command: string;
|
|
2005
|
+
score: number;
|
|
2006
|
+
}
|
|
2007
|
+
/**
|
|
2008
|
+
* RequirementType identifies the kind of missing requirement.
|
|
2009
|
+
*/
|
|
2010
|
+
export type RequirementType = string;
|
|
2011
|
+
/**
|
|
2012
|
+
* Requirement error types
|
|
2013
|
+
*/
|
|
2014
|
+
export declare const RequirementTypeSecret: RequirementType;
|
|
2015
|
+
/**
|
|
2016
|
+
* Requirement error types
|
|
2017
|
+
*/
|
|
2018
|
+
export declare const RequirementTypeIntegration: RequirementType;
|
|
2019
|
+
/**
|
|
2020
|
+
* Requirement error types
|
|
2021
|
+
*/
|
|
2022
|
+
export declare const RequirementTypeScope: RequirementType;
|
|
1553
2023
|
/**
|
|
1554
2024
|
* RequirementError represents a single missing requirement with actionable info
|
|
1555
2025
|
*/
|
|
1556
2026
|
export interface RequirementError {
|
|
1557
|
-
type:
|
|
2027
|
+
type: RequirementType;
|
|
1558
2028
|
key: string;
|
|
1559
2029
|
message: string;
|
|
1560
2030
|
action?: SetupAction;
|
|
1561
2031
|
}
|
|
2032
|
+
/**
|
|
2033
|
+
* SetupActionType identifies the kind of action needed to resolve a requirement.
|
|
2034
|
+
*/
|
|
2035
|
+
export type SetupActionType = string;
|
|
2036
|
+
export declare const SetupActionAddSecret: SetupActionType;
|
|
2037
|
+
export declare const SetupActionConnect: SetupActionType;
|
|
2038
|
+
export declare const SetupActionAddScopes: SetupActionType;
|
|
1562
2039
|
/**
|
|
1563
2040
|
* SetupAction provides actionable info for resolving a missing requirement
|
|
1564
2041
|
*/
|
|
1565
2042
|
export interface SetupAction {
|
|
1566
|
-
type:
|
|
2043
|
+
type: SetupActionType;
|
|
1567
2044
|
provider?: string;
|
|
2045
|
+
provider_name?: string;
|
|
1568
2046
|
scopes?: string[];
|
|
2047
|
+
scope_descriptions?: {
|
|
2048
|
+
[key: string]: string;
|
|
2049
|
+
};
|
|
1569
2050
|
}
|
|
1570
2051
|
/**
|
|
1571
2052
|
* CheckRequirementsRequest is the request body for checking requirements
|
|
@@ -1589,6 +2070,31 @@ export interface CheckRequirementsResponse {
|
|
|
1589
2070
|
*/
|
|
1590
2071
|
export interface SDKTypes {
|
|
1591
2072
|
}
|
|
2073
|
+
/**
|
|
2074
|
+
* SecretDTO for API responses - VALUE IS NEVER EXPOSED
|
|
2075
|
+
*/
|
|
2076
|
+
export interface SecretDTO extends BaseModelDTO, PermissionModelDTO {
|
|
2077
|
+
key: string;
|
|
2078
|
+
masked_value: string;
|
|
2079
|
+
description?: string;
|
|
2080
|
+
scope?: SecretScope;
|
|
2081
|
+
}
|
|
2082
|
+
/**
|
|
2083
|
+
* SubscriptionDTO for API responses
|
|
2084
|
+
*/
|
|
2085
|
+
export interface SubscriptionDTO extends BaseModelDTO {
|
|
2086
|
+
team_id: string;
|
|
2087
|
+
stripe_subscription_id?: string;
|
|
2088
|
+
plan_id: string;
|
|
2089
|
+
plan?: PlanDTO;
|
|
2090
|
+
interval: SubscriptionInterval;
|
|
2091
|
+
status: SubscriptionStatus;
|
|
2092
|
+
current_period_start: string;
|
|
2093
|
+
current_period_end: string;
|
|
2094
|
+
trial_end?: string;
|
|
2095
|
+
cancel_at_period_end: boolean;
|
|
2096
|
+
credits_per_period: number;
|
|
2097
|
+
}
|
|
1592
2098
|
/**
|
|
1593
2099
|
* Hardware/System related types
|
|
1594
2100
|
*/
|
|
@@ -1759,6 +2265,61 @@ export interface TaskDTO extends BaseModelDTO, PermissionModelDTO {
|
|
|
1759
2265
|
session_id?: string;
|
|
1760
2266
|
session_timeout?: number;
|
|
1761
2267
|
}
|
|
2268
|
+
/**
|
|
2269
|
+
* TaskResultDTO is a slim response for task run/result endpoints.
|
|
2270
|
+
*/
|
|
2271
|
+
export interface TaskResultDTO {
|
|
2272
|
+
id: string;
|
|
2273
|
+
short_id: string;
|
|
2274
|
+
status: TaskStatus;
|
|
2275
|
+
status_text: string;
|
|
2276
|
+
output: any;
|
|
2277
|
+
error?: string;
|
|
2278
|
+
session_id?: string;
|
|
2279
|
+
created_at: string;
|
|
2280
|
+
updated_at: string;
|
|
2281
|
+
run_at?: string;
|
|
2282
|
+
}
|
|
2283
|
+
/**
|
|
2284
|
+
* TaskLogsDTO is a lightweight response for task logs endpoint.
|
|
2285
|
+
*/
|
|
2286
|
+
export interface TaskLogsDTO {
|
|
2287
|
+
task_id: string;
|
|
2288
|
+
status: TaskStatus;
|
|
2289
|
+
events: TaskEvent[];
|
|
2290
|
+
logs: TaskLog[];
|
|
2291
|
+
}
|
|
2292
|
+
/**
|
|
2293
|
+
* TaskTimingGroup represents a high-level phase of task execution with its duration.
|
|
2294
|
+
*/
|
|
2295
|
+
export interface TaskTimingGroup {
|
|
2296
|
+
label: string;
|
|
2297
|
+
start_at: string;
|
|
2298
|
+
end_at?: string;
|
|
2299
|
+
duration: string;
|
|
2300
|
+
duration_ms: number;
|
|
2301
|
+
}
|
|
2302
|
+
/**
|
|
2303
|
+
* TaskTimingEvent represents a single status transition with the time spent before the next transition.
|
|
2304
|
+
*/
|
|
2305
|
+
export interface TaskTimingEvent {
|
|
2306
|
+
status: string;
|
|
2307
|
+
timestamp: string;
|
|
2308
|
+
duration?: string;
|
|
2309
|
+
duration_ms?: number;
|
|
2310
|
+
next_status?: string;
|
|
2311
|
+
}
|
|
2312
|
+
/**
|
|
2313
|
+
* TaskTimingsDTO is the response for the task timings endpoint.
|
|
2314
|
+
*/
|
|
2315
|
+
export interface TaskTimingsDTO {
|
|
2316
|
+
task_id: string;
|
|
2317
|
+
status: TaskStatus;
|
|
2318
|
+
total_duration: string;
|
|
2319
|
+
total_duration_ms: number;
|
|
2320
|
+
groups: TaskTimingGroup[];
|
|
2321
|
+
events: TaskTimingEvent[];
|
|
2322
|
+
}
|
|
1762
2323
|
/**
|
|
1763
2324
|
* TeamMemberDTO is the API response for a team member.
|
|
1764
2325
|
*/
|
|
@@ -1906,6 +2467,8 @@ export interface UserMetadataDTO {
|
|
|
1906
2467
|
use_case_reason: string;
|
|
1907
2468
|
use_case_privacy: string;
|
|
1908
2469
|
signup_source: string;
|
|
2470
|
+
terms_accepted_at?: string;
|
|
2471
|
+
terms_version: string;
|
|
1909
2472
|
}
|
|
1910
2473
|
/**
|
|
1911
2474
|
* WidgetAction represents an action triggered by a widget button
|
|
@@ -2048,6 +2611,15 @@ export type Visibility = string;
|
|
|
2048
2611
|
export declare const VisibilityPrivate: Visibility;
|
|
2049
2612
|
export declare const VisibilityPublic: Visibility;
|
|
2050
2613
|
export declare const VisibilityUnlisted: Visibility;
|
|
2614
|
+
export type SubscriptionStatus = string;
|
|
2615
|
+
export declare const SubscriptionStatusTrialing: SubscriptionStatus;
|
|
2616
|
+
export declare const SubscriptionStatusActive: SubscriptionStatus;
|
|
2617
|
+
export declare const SubscriptionStatusPastDue: SubscriptionStatus;
|
|
2618
|
+
export declare const SubscriptionStatusCanceled: SubscriptionStatus;
|
|
2619
|
+
export declare const SubscriptionStatusPaused: SubscriptionStatus;
|
|
2620
|
+
export type SubscriptionInterval = string;
|
|
2621
|
+
export declare const SubscriptionIntervalMonthly: SubscriptionInterval;
|
|
2622
|
+
export declare const SubscriptionIntervalYearly: SubscriptionInterval;
|
|
2051
2623
|
export type ChatStatus = string;
|
|
2052
2624
|
export declare const ChatStatusBusy: ChatStatus;
|
|
2053
2625
|
export declare const ChatStatusIdle: ChatStatus;
|
|
@@ -2074,6 +2646,11 @@ export declare const ChatMessageContentTypeReasoning: ChatMessageContentType;
|
|
|
2074
2646
|
export declare const ChatMessageContentTypeImage: ChatMessageContentType;
|
|
2075
2647
|
export declare const ChatMessageContentTypeFile: ChatMessageContentType;
|
|
2076
2648
|
export declare const ChatMessageContentTypeTool: ChatMessageContentType;
|
|
2649
|
+
export type IntegrationType = string;
|
|
2650
|
+
export declare const IntegrationTypeSlack: IntegrationType;
|
|
2651
|
+
export declare const IntegrationTypeDiscord: IntegrationType;
|
|
2652
|
+
export declare const IntegrationTypeTeams: IntegrationType;
|
|
2653
|
+
export declare const IntegrationTypeTelegram: IntegrationType;
|
|
2077
2654
|
/**
|
|
2078
2655
|
* ChatData contains agent-specific data for a chat session
|
|
2079
2656
|
*/
|
|
@@ -2103,6 +2680,13 @@ export interface ChatMessageContent {
|
|
|
2103
2680
|
file?: string;
|
|
2104
2681
|
tool_calls?: ToolCall[];
|
|
2105
2682
|
}
|
|
2683
|
+
/**
|
|
2684
|
+
* IntegrationContext holds integration-specific metadata for a chat
|
|
2685
|
+
*/
|
|
2686
|
+
export interface IntegrationContext {
|
|
2687
|
+
integration_type?: IntegrationType;
|
|
2688
|
+
integration_metadata?: any;
|
|
2689
|
+
}
|
|
2106
2690
|
/**
|
|
2107
2691
|
* ChatTaskInput is the input envelope for a chat LLM task
|
|
2108
2692
|
*/
|
|
@@ -2153,6 +2737,7 @@ export type EngineStatus = string;
|
|
|
2153
2737
|
export declare const EngineStatusRunning: EngineStatus;
|
|
2154
2738
|
export declare const EngineStatusPending: EngineStatus;
|
|
2155
2739
|
export declare const EngineStatusDraining: EngineStatus;
|
|
2740
|
+
export declare const EngineStatusDisconnected: EngineStatus;
|
|
2156
2741
|
export declare const EngineStatusStopping: EngineStatus;
|
|
2157
2742
|
export declare const EngineStatusStopped: EngineStatus;
|
|
2158
2743
|
/**
|
|
@@ -2253,6 +2838,8 @@ export declare const GraphNodeTypeResource: GraphNodeType;
|
|
|
2253
2838
|
export declare const GraphNodeTypeApproval: GraphNodeType;
|
|
2254
2839
|
export declare const GraphNodeTypeConditional: GraphNodeType;
|
|
2255
2840
|
export declare const GraphNodeTypeFlowNode: GraphNodeType;
|
|
2841
|
+
export declare const GraphNodeTypeTrigger: GraphNodeType;
|
|
2842
|
+
export declare const GraphNodeTypeIntegrationRequirement: GraphNodeType;
|
|
2256
2843
|
/**
|
|
2257
2844
|
* GraphNodeStatus represents the status of a node
|
|
2258
2845
|
*/
|
|
@@ -2265,6 +2852,13 @@ export declare const GraphNodeStatusFailed: GraphNodeStatus;
|
|
|
2265
2852
|
export declare const GraphNodeStatusCancelled: GraphNodeStatus;
|
|
2266
2853
|
export declare const GraphNodeStatusSkipped: GraphNodeStatus;
|
|
2267
2854
|
export declare const GraphNodeStatusBlocked: GraphNodeStatus;
|
|
2855
|
+
/**
|
|
2856
|
+
* ResourceType identifies what kind of resource a graph node represents.
|
|
2857
|
+
*/
|
|
2858
|
+
export type ResourceType = string;
|
|
2859
|
+
export declare const ResourceTypeKnowledge: ResourceType;
|
|
2860
|
+
export declare const ResourceTypeApp: ResourceType;
|
|
2861
|
+
export declare const ResourceTypeAgent: ResourceType;
|
|
2268
2862
|
/**
|
|
2269
2863
|
* GraphEdgeType defines the type of edge relationship
|
|
2270
2864
|
*/
|
|
@@ -2276,6 +2870,23 @@ export declare const GraphEdgeTypeExecution: GraphEdgeType;
|
|
|
2276
2870
|
export declare const GraphEdgeTypeParent: GraphEdgeType;
|
|
2277
2871
|
export declare const GraphEdgeTypeAncestor: GraphEdgeType;
|
|
2278
2872
|
export declare const GraphEdgeTypeDuplicate: GraphEdgeType;
|
|
2873
|
+
export declare const GraphEdgeTypeReferences: GraphEdgeType;
|
|
2874
|
+
/**
|
|
2875
|
+
* SecretScope defines the visibility/purpose of a secret
|
|
2876
|
+
*/
|
|
2877
|
+
export type SecretScope = string;
|
|
2878
|
+
/**
|
|
2879
|
+
* SecretScopeTeam is a normal user secret, visible in team secret lists
|
|
2880
|
+
*/
|
|
2881
|
+
export declare const SecretScopeTeam: SecretScope;
|
|
2882
|
+
/**
|
|
2883
|
+
* SecretScopeInternal is an integration-managed secret, hidden from user lists
|
|
2884
|
+
*/
|
|
2885
|
+
export declare const SecretScopeInternal: SecretScope;
|
|
2886
|
+
/**
|
|
2887
|
+
* SecretScopeSystem is a global system setting, owned by system team, admin-only
|
|
2888
|
+
*/
|
|
2889
|
+
export declare const SecretScopeSystem: SecretScope;
|
|
2279
2890
|
export type EntitlementSource = string;
|
|
2280
2891
|
export declare const EntitlementSourceTier: EntitlementSource;
|
|
2281
2892
|
export declare const EntitlementSourceOverride: EntitlementSource;
|
|
@@ -2327,18 +2938,32 @@ export declare const ToolTypeClient: ToolType;
|
|
|
2327
2938
|
export declare const ToolTypeInternal: ToolType;
|
|
2328
2939
|
export type InstanceCloudProvider = string;
|
|
2329
2940
|
export declare const CloudAWS: InstanceCloudProvider;
|
|
2941
|
+
export declare const CloudAmaya: InstanceCloudProvider;
|
|
2330
2942
|
export declare const CloudAzure: InstanceCloudProvider;
|
|
2943
|
+
export declare const CloudBoostrun: InstanceCloudProvider;
|
|
2944
|
+
export declare const CloudCrusoe: InstanceCloudProvider;
|
|
2945
|
+
export declare const CloudDatacrunch: InstanceCloudProvider;
|
|
2946
|
+
export declare const CloudDenvr: InstanceCloudProvider;
|
|
2947
|
+
export declare const CloudDigitalOcean: InstanceCloudProvider;
|
|
2948
|
+
export declare const CloudExcessSupply: InstanceCloudProvider;
|
|
2949
|
+
export declare const CloudHorizon: InstanceCloudProvider;
|
|
2950
|
+
export declare const CloudHyperstack: InstanceCloudProvider;
|
|
2951
|
+
export declare const CloudIMWT: InstanceCloudProvider;
|
|
2952
|
+
export declare const CloudJarvisLabs: InstanceCloudProvider;
|
|
2331
2953
|
export declare const CloudLambdaLabs: InstanceCloudProvider;
|
|
2332
|
-
export declare const CloudTensorDock: InstanceCloudProvider;
|
|
2333
|
-
export declare const CloudRunPod: InstanceCloudProvider;
|
|
2334
2954
|
export declare const CloudLatitude: InstanceCloudProvider;
|
|
2335
|
-
export declare const
|
|
2955
|
+
export declare const CloudMassedCompute: InstanceCloudProvider;
|
|
2956
|
+
export declare const CloudNebius: InstanceCloudProvider;
|
|
2336
2957
|
export declare const CloudOblivus: InstanceCloudProvider;
|
|
2337
2958
|
export declare const CloudPaperspace: InstanceCloudProvider;
|
|
2338
|
-
export declare const
|
|
2339
|
-
export declare const
|
|
2340
|
-
export declare const
|
|
2959
|
+
export declare const CloudPhyntec: InstanceCloudProvider;
|
|
2960
|
+
export declare const CloudRunPod: InstanceCloudProvider;
|
|
2961
|
+
export declare const CloudScaleway: InstanceCloudProvider;
|
|
2341
2962
|
export declare const CloudShade: InstanceCloudProvider;
|
|
2963
|
+
export declare const CloudTensorDock: InstanceCloudProvider;
|
|
2964
|
+
export declare const CloudVerda: InstanceCloudProvider;
|
|
2965
|
+
export declare const CloudVoltagePark: InstanceCloudProvider;
|
|
2966
|
+
export declare const CloudVultr: InstanceCloudProvider;
|
|
2342
2967
|
export type InstanceStatus = string;
|
|
2343
2968
|
export declare const InstanceStatusCreating: InstanceStatus;
|
|
2344
2969
|
export declare const InstanceStatusPendingProvider: InstanceStatus;
|
|
@@ -2384,6 +3009,13 @@ export declare const VideoRes720P: VideoResolution;
|
|
|
2384
3009
|
export declare const VideoRes1080P: VideoResolution;
|
|
2385
3010
|
export declare const VideoRes1440P: VideoResolution;
|
|
2386
3011
|
export declare const VideoRes4K: VideoResolution;
|
|
3012
|
+
/**
|
|
3013
|
+
* MCPServerAuthType describes how a server authenticates clients.
|
|
3014
|
+
*/
|
|
3015
|
+
export type MCPServerAuthType = string;
|
|
3016
|
+
export declare const MCPServerAuthOAuth: MCPServerAuthType;
|
|
3017
|
+
export declare const MCPServerAuthAPIKey: MCPServerAuthType;
|
|
3018
|
+
export declare const MCPServerAuthNone: MCPServerAuthType;
|
|
2387
3019
|
/**
|
|
2388
3020
|
* TeamInviteStatus represents the status of a team invitation
|
|
2389
3021
|
*/
|
|
@@ -2393,6 +3025,22 @@ export declare const TeamInviteStatusAccepted: TeamInviteStatus;
|
|
|
2393
3025
|
export declare const TeamInviteStatusDeclined: TeamInviteStatus;
|
|
2394
3026
|
export declare const TeamInviteStatusExpired: TeamInviteStatus;
|
|
2395
3027
|
export declare const TeamInviteStatusRevoked: TeamInviteStatus;
|
|
3028
|
+
export type RefRouteType = string;
|
|
3029
|
+
export declare const RefRouteTypeApp: RefRouteType;
|
|
3030
|
+
export declare const RefRouteTypeAgent: RefRouteType;
|
|
3031
|
+
export declare const RefRouteTypeSkill: RefRouteType;
|
|
3032
|
+
export type KnowledgeType = string;
|
|
3033
|
+
export declare const KnowledgeTypeConcept: KnowledgeType;
|
|
3034
|
+
export declare const KnowledgeTypeSkill: KnowledgeType;
|
|
3035
|
+
export declare const KnowledgeTypeObservation: KnowledgeType;
|
|
3036
|
+
export declare const KnowledgeTypePreference: KnowledgeType;
|
|
3037
|
+
export declare const KnowledgeTypeReference: KnowledgeType;
|
|
3038
|
+
export declare const KnowledgeTypePerson: KnowledgeType;
|
|
3039
|
+
export declare const KnowledgeTypeProject: KnowledgeType;
|
|
3040
|
+
export declare const KnowledgeTypeAgentConfig: KnowledgeType;
|
|
3041
|
+
export type KnowledgeLifecycle = string;
|
|
3042
|
+
export declare const KnowledgeLifecyclePermanent: KnowledgeLifecycle;
|
|
3043
|
+
export declare const KnowledgeLifecycleDecay: KnowledgeLifecycle;
|
|
2396
3044
|
export type FilterOperator = string;
|
|
2397
3045
|
export declare const OpEqual: FilterOperator;
|
|
2398
3046
|
export declare const OpNotEqual: FilterOperator;
|
|
@@ -2410,19 +3058,55 @@ export declare const OpIsNull: FilterOperator;
|
|
|
2410
3058
|
export declare const OpIsNotNull: FilterOperator;
|
|
2411
3059
|
export declare const OpIsEmpty: FilterOperator;
|
|
2412
3060
|
export declare const OpIsNotEmpty: FilterOperator;
|
|
3061
|
+
export type DeviceAuthStatus = string;
|
|
3062
|
+
export declare const DeviceAuthStatusPending: DeviceAuthStatus;
|
|
3063
|
+
export declare const DeviceAuthStatusApproved: DeviceAuthStatus;
|
|
3064
|
+
export declare const DeviceAuthStatusExpired: DeviceAuthStatus;
|
|
3065
|
+
export declare const DeviceAuthStatusDenied: DeviceAuthStatus;
|
|
3066
|
+
export declare const DeviceAuthStatusValid: DeviceAuthStatus;
|
|
3067
|
+
export declare const DeviceAuthStatusInvalid: DeviceAuthStatus;
|
|
3068
|
+
export declare const DeviceAuthStatusLoading: DeviceAuthStatus;
|
|
3069
|
+
/**
|
|
3070
|
+
* DeviceTokenKind selects the credential minted when a device auth flow is approved.
|
|
3071
|
+
*/
|
|
3072
|
+
export type DeviceTokenKind = string;
|
|
3073
|
+
/**
|
|
3074
|
+
* DeviceTokenKindSession mints a revocable CLI session (acts as the user,
|
|
3075
|
+
* supports team switching via X-Team-ID).
|
|
3076
|
+
*/
|
|
3077
|
+
export declare const DeviceTokenKindSession: DeviceTokenKind;
|
|
3078
|
+
/**
|
|
3079
|
+
* DeviceTokenKindAPIKey mints a device-scoped API key.
|
|
3080
|
+
* TODO: retire once CLIs older than the session-token release are gone.
|
|
3081
|
+
*/
|
|
3082
|
+
export declare const DeviceTokenKindAPIKey: DeviceTokenKind;
|
|
2413
3083
|
export type EntitlementResource = string;
|
|
3084
|
+
/**
|
|
3085
|
+
* Capacity limits — scale with tier
|
|
3086
|
+
*/
|
|
2414
3087
|
export declare const ResourceAPIKeys: EntitlementResource;
|
|
2415
3088
|
export declare const ResourceConnectors: EntitlementResource;
|
|
2416
3089
|
export declare const ResourceKnowledgeBases: EntitlementResource;
|
|
2417
|
-
export declare const ResourcePrivateApps: EntitlementResource;
|
|
2418
3090
|
export declare const ResourceStorageMB: EntitlementResource;
|
|
2419
3091
|
export declare const ResourceConcurrency: EntitlementResource;
|
|
2420
3092
|
export declare const ResourceRatePerMin: EntitlementResource;
|
|
2421
3093
|
export declare const ResourceSeats: EntitlementResource;
|
|
3094
|
+
export declare const ResourceTriggers: EntitlementResource;
|
|
3095
|
+
export declare const ResourceRetentionDays: EntitlementResource;
|
|
3096
|
+
/**
|
|
3097
|
+
* Legacy — kept for DB compatibility, no longer in plan seeds
|
|
3098
|
+
*/
|
|
3099
|
+
export declare const ResourcePrivateApps: EntitlementResource;
|
|
2422
3100
|
export declare const ResourceTaskExecutions: EntitlementResource;
|
|
3101
|
+
/**
|
|
3102
|
+
* Feature gates — only what has real cost/complexity
|
|
3103
|
+
*/
|
|
3104
|
+
export declare const ResourceFeatureBYOK: EntitlementResource;
|
|
3105
|
+
/**
|
|
3106
|
+
* Legacy feature gates — kept for DB compatibility, no longer gated
|
|
3107
|
+
*/
|
|
2423
3108
|
export declare const ResourceFeatureScopes: EntitlementResource;
|
|
2424
3109
|
export declare const ResourceFeatureWebhooks: EntitlementResource;
|
|
2425
|
-
export declare const ResourceFeatureBYOK: EntitlementResource;
|
|
2426
3110
|
export declare const ResourceFeatureTeamBilling: EntitlementResource;
|
|
2427
3111
|
export declare const ResourceFeatureAutoRecharge: EntitlementResource;
|
|
2428
3112
|
export declare const ResourceFeatureInvoices: EntitlementResource;
|
|
@@ -2440,6 +3124,7 @@ export declare const ContentUnrated: ContentRating;
|
|
|
2440
3124
|
*/
|
|
2441
3125
|
export type IntegrationProvider = string;
|
|
2442
3126
|
export declare const IntegrationProviderGoogle: IntegrationProvider;
|
|
3127
|
+
export declare const IntegrationProviderGoogleSA: IntegrationProvider;
|
|
2443
3128
|
export declare const IntegrationProviderSlack: IntegrationProvider;
|
|
2444
3129
|
export declare const IntegrationProviderNotion: IntegrationProvider;
|
|
2445
3130
|
export declare const IntegrationProviderGitHub: IntegrationProvider;
|
|
@@ -2463,10 +3148,23 @@ export declare const IntegrationAuthTypeMCP: IntegrationAuthType;
|
|
|
2463
3148
|
* IntegrationStatus represents the status of an integration connection.
|
|
2464
3149
|
*/
|
|
2465
3150
|
export type IntegrationStatus = string;
|
|
3151
|
+
export declare const IntegrationStatusPending: IntegrationStatus;
|
|
2466
3152
|
export declare const IntegrationStatusConnected: IntegrationStatus;
|
|
2467
3153
|
export declare const IntegrationStatusDisconnected: IntegrationStatus;
|
|
2468
3154
|
export declare const IntegrationStatusExpired: IntegrationStatus;
|
|
2469
3155
|
export declare const IntegrationStatusError: IntegrationStatus;
|
|
3156
|
+
/**
|
|
3157
|
+
* IntegrationScope distinguishes platform-provided vs team-owned integrations.
|
|
3158
|
+
*/
|
|
3159
|
+
export type IntegrationScope = string;
|
|
3160
|
+
/**
|
|
3161
|
+
* IntegrationScopeTeam is owned by a user/team (BYOK credentials, user connections)
|
|
3162
|
+
*/
|
|
3163
|
+
export declare const IntegrationScopeTeam: IntegrationScope;
|
|
3164
|
+
/**
|
|
3165
|
+
* IntegrationScopePlatform is owned by the platform (managed credentials, admin-configured)
|
|
3166
|
+
*/
|
|
3167
|
+
export declare const IntegrationScopePlatform: IntegrationScope;
|
|
2470
3168
|
export type WidgetNodeType = string;
|
|
2471
3169
|
export declare const WidgetNodeTypeText: WidgetNodeType;
|
|
2472
3170
|
export declare const WidgetNodeTypeMarkdown: WidgetNodeType;
|
|
@@ -2494,6 +3192,78 @@ export declare const WidgetNodeTypeTransition: WidgetNodeType;
|
|
|
2494
3192
|
export declare const WidgetNodeTypePlanList: WidgetNodeType;
|
|
2495
3193
|
export declare const WidgetNodeTypeKeyValue: WidgetNodeType;
|
|
2496
3194
|
export declare const WidgetNodeTypeStatusBadge: WidgetNodeType;
|
|
3195
|
+
/**
|
|
3196
|
+
* NotificationChannel represents a delivery channel
|
|
3197
|
+
*/
|
|
3198
|
+
export type NotificationChannel = string;
|
|
3199
|
+
export declare const NotificationChannelEmail: NotificationChannel;
|
|
3200
|
+
export declare const NotificationChannelSMS: NotificationChannel;
|
|
3201
|
+
export declare const NotificationChannelPush: NotificationChannel;
|
|
3202
|
+
export declare const NotificationChannelSlack: NotificationChannel;
|
|
3203
|
+
/**
|
|
3204
|
+
* NotificationPriority represents notification priority
|
|
3205
|
+
*/
|
|
3206
|
+
export type NotificationPriority = string;
|
|
3207
|
+
export declare const NotificationPriorityLow: NotificationPriority;
|
|
3208
|
+
export declare const NotificationPriorityNormal: NotificationPriority;
|
|
3209
|
+
export declare const NotificationPriorityHigh: NotificationPriority;
|
|
3210
|
+
export declare const NotificationPriorityCritical: NotificationPriority;
|
|
3211
|
+
/**
|
|
3212
|
+
* NotificationType represents the type/category of notification
|
|
3213
|
+
*/
|
|
3214
|
+
export type NotificationType = string;
|
|
3215
|
+
/**
|
|
3216
|
+
* Billing notifications
|
|
3217
|
+
*/
|
|
3218
|
+
export declare const NotificationTypeLowBalance: NotificationType;
|
|
3219
|
+
export declare const NotificationTypeAutoRecharge: NotificationType;
|
|
3220
|
+
export declare const NotificationTypePaymentSuccess: NotificationType;
|
|
3221
|
+
export declare const NotificationTypePaymentFailed: NotificationType;
|
|
3222
|
+
export declare const NotificationTypeUsageSummary: NotificationType;
|
|
3223
|
+
export declare const NotificationTypeSpendingLimit: NotificationType;
|
|
3224
|
+
export declare const NotificationTypeInvoice: NotificationType;
|
|
3225
|
+
export declare const NotificationTypeSubscriptionCreated: NotificationType;
|
|
3226
|
+
export declare const NotificationTypeSubscriptionCredit: NotificationType;
|
|
3227
|
+
export declare const NotificationTypeSubscriptionCanceled: NotificationType;
|
|
3228
|
+
export declare const NotificationTypeSubscriptionTrialEnding: NotificationType;
|
|
3229
|
+
/**
|
|
3230
|
+
* Account notifications
|
|
3231
|
+
*/
|
|
3232
|
+
export declare const NotificationTypeWelcome: NotificationType;
|
|
3233
|
+
export declare const NotificationTypeWelcomeAgents: NotificationType;
|
|
3234
|
+
export declare const NotificationTypeWelcomeApps: NotificationType;
|
|
3235
|
+
export declare const NotificationTypeWelcomeFlows: NotificationType;
|
|
3236
|
+
export declare const NotificationTypeWelcomeSDK: NotificationType;
|
|
3237
|
+
export declare const NotificationTypePasswordReset: NotificationType;
|
|
3238
|
+
export declare const NotificationTypeEmailVerify: NotificationType;
|
|
3239
|
+
export declare const NotificationTypeSecurityAlert: NotificationType;
|
|
3240
|
+
/**
|
|
3241
|
+
* Task notifications
|
|
3242
|
+
*/
|
|
3243
|
+
export declare const NotificationTypeTaskComplete: NotificationType;
|
|
3244
|
+
export declare const NotificationTypeTaskFailed: NotificationType;
|
|
3245
|
+
/**
|
|
3246
|
+
* System notifications
|
|
3247
|
+
*/
|
|
3248
|
+
export declare const NotificationTypeSystemAlert: NotificationType;
|
|
3249
|
+
export declare const NotificationTypeMaintenance: NotificationType;
|
|
3250
|
+
export declare const NotificationTypeTosUpdate: NotificationType;
|
|
3251
|
+
export declare const NotificationTypeServiceNotice: NotificationType;
|
|
3252
|
+
/**
|
|
3253
|
+
* Team notifications
|
|
3254
|
+
*/
|
|
3255
|
+
export declare const NotificationTypeTeamInvite: NotificationType;
|
|
3256
|
+
/**
|
|
3257
|
+
* NotificationStatus represents the status of a notification
|
|
3258
|
+
*/
|
|
3259
|
+
export type NotificationStatus = string;
|
|
3260
|
+
export declare const NotificationStatusPending: NotificationStatus;
|
|
3261
|
+
export declare const NotificationStatusProcessing: NotificationStatus;
|
|
3262
|
+
export declare const NotificationStatusSent: NotificationStatus;
|
|
3263
|
+
export declare const NotificationStatusDelivered: NotificationStatus;
|
|
3264
|
+
export declare const NotificationStatusFailed: NotificationStatus;
|
|
3265
|
+
export declare const NotificationStatusBounced: NotificationStatus;
|
|
3266
|
+
export declare const NotificationStatusCancelled: NotificationStatus;
|
|
2497
3267
|
/**
|
|
2498
3268
|
* TaskStatus represents the state of a task in its lifecycle.
|
|
2499
3269
|
*/
|