@inferencesh/sdk 0.6.4 → 0.6.6
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/README.md +1 -1
- package/dist/agent/reducer.test.d.ts +1 -0
- package/dist/agent/reducer.test.js +127 -0
- package/dist/api/agents.test.d.ts +1 -0
- package/dist/api/agents.test.js +141 -0
- package/dist/api/files.test.d.ts +1 -0
- package/dist/api/files.test.js +68 -0
- package/dist/api/tasks.d.ts +1 -5
- package/dist/api/tasks.js +1 -1
- package/dist/api/tasks.test.d.ts +1 -0
- package/dist/api/tasks.test.js +157 -0
- package/dist/http/client.test.d.ts +1 -0
- package/dist/http/client.test.js +152 -0
- package/dist/http/errors.test.d.ts +1 -0
- package/dist/http/errors.test.js +53 -0
- package/dist/http/poll.test.d.ts +1 -0
- package/dist/http/poll.test.js +85 -0
- package/dist/proxy/index.test.d.ts +1 -0
- package/dist/proxy/index.test.js +147 -0
- package/dist/stream.test.js +48 -0
- package/dist/types.d.ts +603 -6
- package/dist/types.js +309 -0
- package/dist/utils.test.d.ts +1 -0
- package/dist/utils.test.js +43 -0
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -327,6 +327,271 @@ export interface SkillPublishRequest {
|
|
|
327
327
|
user_invocable?: boolean;
|
|
328
328
|
context: string;
|
|
329
329
|
}
|
|
330
|
+
export interface AuthResponse {
|
|
331
|
+
user?: UserDTO;
|
|
332
|
+
session_id: string;
|
|
333
|
+
otp_required?: boolean;
|
|
334
|
+
redirect_to?: string;
|
|
335
|
+
provider?: string;
|
|
336
|
+
}
|
|
337
|
+
export interface TeamCreateRequest {
|
|
338
|
+
name: string;
|
|
339
|
+
username: string;
|
|
340
|
+
email: string;
|
|
341
|
+
}
|
|
342
|
+
export interface TeamSetupRequest {
|
|
343
|
+
username: string;
|
|
344
|
+
}
|
|
345
|
+
export interface TeamMemberAddRequest {
|
|
346
|
+
email: string;
|
|
347
|
+
role: TeamRole;
|
|
348
|
+
}
|
|
349
|
+
export interface TeamMemberUpdateRoleRequest {
|
|
350
|
+
role: TeamRole;
|
|
351
|
+
}
|
|
352
|
+
export interface IntegrationCompleteOAuthRequest {
|
|
353
|
+
provider: string;
|
|
354
|
+
type: string;
|
|
355
|
+
code: string;
|
|
356
|
+
state: string;
|
|
357
|
+
code_verifier?: string;
|
|
358
|
+
}
|
|
359
|
+
/**
|
|
360
|
+
* Scope represents an API key permission scope string.
|
|
361
|
+
*/
|
|
362
|
+
export type Scope = string;
|
|
363
|
+
/**
|
|
364
|
+
* API Key Scopes - hierarchical permission system.
|
|
365
|
+
* Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
|
|
366
|
+
* Empty scopes = full access (for backwards compatibility with existing keys).
|
|
367
|
+
*/
|
|
368
|
+
export declare const ScopeAll: Scope;
|
|
369
|
+
/**
|
|
370
|
+
* Resource-level scopes (implies all actions)
|
|
371
|
+
*/
|
|
372
|
+
export declare const ScopeAgents: Scope;
|
|
373
|
+
/**
|
|
374
|
+
* API Key Scopes - hierarchical permission system.
|
|
375
|
+
* Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
|
|
376
|
+
* Empty scopes = full access (for backwards compatibility with existing keys).
|
|
377
|
+
*/
|
|
378
|
+
export declare const ScopeApps: Scope;
|
|
379
|
+
/**
|
|
380
|
+
* API Key Scopes - hierarchical permission system.
|
|
381
|
+
* Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
|
|
382
|
+
* Empty scopes = full access (for backwards compatibility with existing keys).
|
|
383
|
+
*/
|
|
384
|
+
export declare const ScopeConversations: Scope;
|
|
385
|
+
/**
|
|
386
|
+
* API Key Scopes - hierarchical permission system.
|
|
387
|
+
* Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
|
|
388
|
+
* Empty scopes = full access (for backwards compatibility with existing keys).
|
|
389
|
+
*/
|
|
390
|
+
export declare const ScopeFiles: Scope;
|
|
391
|
+
/**
|
|
392
|
+
* API Key Scopes - hierarchical permission system.
|
|
393
|
+
* Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
|
|
394
|
+
* Empty scopes = full access (for backwards compatibility with existing keys).
|
|
395
|
+
*/
|
|
396
|
+
export declare const ScopeDatastores: Scope;
|
|
397
|
+
/**
|
|
398
|
+
* API Key Scopes - hierarchical permission system.
|
|
399
|
+
* Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
|
|
400
|
+
* Empty scopes = full access (for backwards compatibility with existing keys).
|
|
401
|
+
*/
|
|
402
|
+
export declare const ScopeTemplates: Scope;
|
|
403
|
+
/**
|
|
404
|
+
* API Key Scopes - hierarchical permission system.
|
|
405
|
+
* Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
|
|
406
|
+
* Empty scopes = full access (for backwards compatibility with existing keys).
|
|
407
|
+
*/
|
|
408
|
+
export declare const ScopeFlows: Scope;
|
|
409
|
+
/**
|
|
410
|
+
* API Key Scopes - hierarchical permission system.
|
|
411
|
+
* Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
|
|
412
|
+
* Empty scopes = full access (for backwards compatibility with existing keys).
|
|
413
|
+
*/
|
|
414
|
+
export declare const ScopeProjects: Scope;
|
|
415
|
+
/**
|
|
416
|
+
* API Key Scopes - hierarchical permission system.
|
|
417
|
+
* Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
|
|
418
|
+
* Empty scopes = full access (for backwards compatibility with existing keys).
|
|
419
|
+
*/
|
|
420
|
+
export declare const ScopeTeams: Scope;
|
|
421
|
+
/**
|
|
422
|
+
* API Key Scopes - hierarchical permission system.
|
|
423
|
+
* Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
|
|
424
|
+
* Empty scopes = full access (for backwards compatibility with existing keys).
|
|
425
|
+
*/
|
|
426
|
+
export declare const ScopeBilling: Scope;
|
|
427
|
+
/**
|
|
428
|
+
* Action-level scopes for Agents
|
|
429
|
+
*/
|
|
430
|
+
export declare const ScopeAgentsRead: Scope;
|
|
431
|
+
/**
|
|
432
|
+
* API Key Scopes - hierarchical permission system.
|
|
433
|
+
* Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
|
|
434
|
+
* Empty scopes = full access (for backwards compatibility with existing keys).
|
|
435
|
+
*/
|
|
436
|
+
export declare const ScopeAgentsWrite: Scope;
|
|
437
|
+
/**
|
|
438
|
+
* API Key Scopes - hierarchical permission system.
|
|
439
|
+
* Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
|
|
440
|
+
* Empty scopes = full access (for backwards compatibility with existing keys).
|
|
441
|
+
*/
|
|
442
|
+
export declare const ScopeAgentsExecute: Scope;
|
|
443
|
+
/**
|
|
444
|
+
* Action-level scopes for Apps
|
|
445
|
+
*/
|
|
446
|
+
export declare const ScopeAppsRead: Scope;
|
|
447
|
+
/**
|
|
448
|
+
* API Key Scopes - hierarchical permission system.
|
|
449
|
+
* Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
|
|
450
|
+
* Empty scopes = full access (for backwards compatibility with existing keys).
|
|
451
|
+
*/
|
|
452
|
+
export declare const ScopeAppsWrite: Scope;
|
|
453
|
+
/**
|
|
454
|
+
* API Key Scopes - hierarchical permission system.
|
|
455
|
+
* Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
|
|
456
|
+
* Empty scopes = full access (for backwards compatibility with existing keys).
|
|
457
|
+
*/
|
|
458
|
+
export declare const ScopeAppsExecute: Scope;
|
|
459
|
+
/**
|
|
460
|
+
* Action-level scopes for Conversations/Chats
|
|
461
|
+
*/
|
|
462
|
+
export declare const ScopeConversationsRead: Scope;
|
|
463
|
+
/**
|
|
464
|
+
* API Key Scopes - hierarchical permission system.
|
|
465
|
+
* Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
|
|
466
|
+
* Empty scopes = full access (for backwards compatibility with existing keys).
|
|
467
|
+
*/
|
|
468
|
+
export declare const ScopeConversationsWrite: Scope;
|
|
469
|
+
/**
|
|
470
|
+
* Action-level scopes for Files
|
|
471
|
+
*/
|
|
472
|
+
export declare const ScopeFilesRead: Scope;
|
|
473
|
+
/**
|
|
474
|
+
* API Key Scopes - hierarchical permission system.
|
|
475
|
+
* Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
|
|
476
|
+
* Empty scopes = full access (for backwards compatibility with existing keys).
|
|
477
|
+
*/
|
|
478
|
+
export declare const ScopeFilesWrite: Scope;
|
|
479
|
+
/**
|
|
480
|
+
* Action-level scopes for Datastores
|
|
481
|
+
*/
|
|
482
|
+
export declare const ScopeDatastoresRead: Scope;
|
|
483
|
+
/**
|
|
484
|
+
* API Key Scopes - hierarchical permission system.
|
|
485
|
+
* Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
|
|
486
|
+
* Empty scopes = full access (for backwards compatibility with existing keys).
|
|
487
|
+
*/
|
|
488
|
+
export declare const ScopeDatastoresWrite: Scope;
|
|
489
|
+
/**
|
|
490
|
+
* Action-level scopes for Flows
|
|
491
|
+
*/
|
|
492
|
+
export declare const ScopeFlowsRead: Scope;
|
|
493
|
+
/**
|
|
494
|
+
* API Key Scopes - hierarchical permission system.
|
|
495
|
+
* Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
|
|
496
|
+
* Empty scopes = full access (for backwards compatibility with existing keys).
|
|
497
|
+
*/
|
|
498
|
+
export declare const ScopeFlowsWrite: Scope;
|
|
499
|
+
/**
|
|
500
|
+
* API Key Scopes - hierarchical permission system.
|
|
501
|
+
* Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
|
|
502
|
+
* Empty scopes = full access (for backwards compatibility with existing keys).
|
|
503
|
+
*/
|
|
504
|
+
export declare const ScopeFlowsExecute: Scope;
|
|
505
|
+
/**
|
|
506
|
+
* Action-level scopes for Projects
|
|
507
|
+
*/
|
|
508
|
+
export declare const ScopeProjectsRead: Scope;
|
|
509
|
+
/**
|
|
510
|
+
* API Key Scopes - hierarchical permission system.
|
|
511
|
+
* Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
|
|
512
|
+
* Empty scopes = full access (for backwards compatibility with existing keys).
|
|
513
|
+
*/
|
|
514
|
+
export declare const ScopeProjectsWrite: Scope;
|
|
515
|
+
/**
|
|
516
|
+
* Action-level scopes for Teams
|
|
517
|
+
*/
|
|
518
|
+
export declare const ScopeTeamsRead: Scope;
|
|
519
|
+
/**
|
|
520
|
+
* API Key Scopes - hierarchical permission system.
|
|
521
|
+
* Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
|
|
522
|
+
* Empty scopes = full access (for backwards compatibility with existing keys).
|
|
523
|
+
*/
|
|
524
|
+
export declare const ScopeTeamsWrite: Scope;
|
|
525
|
+
/**
|
|
526
|
+
* Action-level scopes for Billing
|
|
527
|
+
*/
|
|
528
|
+
export declare const ScopeBillingRead: Scope;
|
|
529
|
+
/**
|
|
530
|
+
* API Key Scopes - hierarchical permission system.
|
|
531
|
+
* Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
|
|
532
|
+
* Empty scopes = full access (for backwards compatibility with existing keys).
|
|
533
|
+
*/
|
|
534
|
+
export declare const ScopeBillingWrite: Scope;
|
|
535
|
+
/**
|
|
536
|
+
* Action-level scopes for Secrets (sensitive - not in read/run presets)
|
|
537
|
+
*/
|
|
538
|
+
export declare const ScopeSecretsRead: Scope;
|
|
539
|
+
/**
|
|
540
|
+
* API Key Scopes - hierarchical permission system.
|
|
541
|
+
* Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
|
|
542
|
+
* Empty scopes = full access (for backwards compatibility with existing keys).
|
|
543
|
+
*/
|
|
544
|
+
export declare const ScopeSecretsWrite: Scope;
|
|
545
|
+
/**
|
|
546
|
+
* Action-level scopes for Integrations
|
|
547
|
+
*/
|
|
548
|
+
export declare const ScopeIntegrationsRead: Scope;
|
|
549
|
+
/**
|
|
550
|
+
* API Key Scopes - hierarchical permission system.
|
|
551
|
+
* Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
|
|
552
|
+
* Empty scopes = full access (for backwards compatibility with existing keys).
|
|
553
|
+
*/
|
|
554
|
+
export declare const ScopeIntegrationsWrite: Scope;
|
|
555
|
+
/**
|
|
556
|
+
* Action-level scopes for Engines
|
|
557
|
+
*/
|
|
558
|
+
export declare const ScopeEnginesRead: Scope;
|
|
559
|
+
/**
|
|
560
|
+
* API Key Scopes - hierarchical permission system.
|
|
561
|
+
* Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
|
|
562
|
+
* Empty scopes = full access (for backwards compatibility with existing keys).
|
|
563
|
+
*/
|
|
564
|
+
export declare const ScopeEnginesWrite: Scope;
|
|
565
|
+
/**
|
|
566
|
+
* Action-level scopes for API Keys
|
|
567
|
+
*/
|
|
568
|
+
export declare const ScopeApiKeysRead: Scope;
|
|
569
|
+
/**
|
|
570
|
+
* API Key Scopes - hierarchical permission system.
|
|
571
|
+
* Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
|
|
572
|
+
* Empty scopes = full access (for backwards compatibility with existing keys).
|
|
573
|
+
*/
|
|
574
|
+
export declare const ScopeApiKeysWrite: Scope;
|
|
575
|
+
/**
|
|
576
|
+
* Action-level scopes for User profile
|
|
577
|
+
*/
|
|
578
|
+
export declare const ScopeUserRead: Scope;
|
|
579
|
+
/**
|
|
580
|
+
* API Key Scopes - hierarchical permission system.
|
|
581
|
+
* Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
|
|
582
|
+
* Empty scopes = full access (for backwards compatibility with existing keys).
|
|
583
|
+
*/
|
|
584
|
+
export declare const ScopeUserWrite: Scope;
|
|
585
|
+
/**
|
|
586
|
+
* Action-level scopes for Settings/Notifications
|
|
587
|
+
*/
|
|
588
|
+
export declare const ScopeSettingsRead: Scope;
|
|
589
|
+
/**
|
|
590
|
+
* API Key Scopes - hierarchical permission system.
|
|
591
|
+
* Resource-level scopes (e.g., "agents") imply all action-level scopes (e.g., "agents:read").
|
|
592
|
+
* Empty scopes = full access (for backwards compatibility with existing keys).
|
|
593
|
+
*/
|
|
594
|
+
export declare const ScopeSettingsWrite: Scope;
|
|
330
595
|
/**
|
|
331
596
|
* ScopeGroup identifies a category of scopes for UI grouping
|
|
332
597
|
*/
|
|
@@ -350,7 +615,7 @@ export declare const ScopeGroupSettings: ScopeGroup;
|
|
|
350
615
|
* ScopeDefinition describes a single scope for UI rendering
|
|
351
616
|
*/
|
|
352
617
|
export interface ScopeDefinition {
|
|
353
|
-
value:
|
|
618
|
+
value: Scope;
|
|
354
619
|
label: string;
|
|
355
620
|
description: string;
|
|
356
621
|
group: ScopeGroup;
|
|
@@ -363,6 +628,14 @@ export interface ScopeGroupDefinition {
|
|
|
363
628
|
label: string;
|
|
364
629
|
description: string;
|
|
365
630
|
}
|
|
631
|
+
/**
|
|
632
|
+
* ScopesResponse is the API response for GET /scopes
|
|
633
|
+
*/
|
|
634
|
+
export interface ScopesResponse {
|
|
635
|
+
scopes: ScopeDefinition[];
|
|
636
|
+
groups: ScopeGroupDefinition[];
|
|
637
|
+
presets: ScopePreset[];
|
|
638
|
+
}
|
|
366
639
|
/**
|
|
367
640
|
* ScopePreset represents a predefined bundle of scopes for common use cases
|
|
368
641
|
*/
|
|
@@ -370,7 +643,18 @@ export interface ScopePreset {
|
|
|
370
643
|
id: string;
|
|
371
644
|
label: string;
|
|
372
645
|
description: string;
|
|
373
|
-
scopes:
|
|
646
|
+
scopes: Scope[];
|
|
647
|
+
}
|
|
648
|
+
/**
|
|
649
|
+
* ApiKeyDTO for API responses
|
|
650
|
+
*/
|
|
651
|
+
export interface ApiKeyDTO extends BaseModelDTO, PermissionModelDTO {
|
|
652
|
+
name: string;
|
|
653
|
+
key: string;
|
|
654
|
+
last_used_at: string;
|
|
655
|
+
expires_at?: string;
|
|
656
|
+
scopes: Scope[];
|
|
657
|
+
source?: string;
|
|
374
658
|
}
|
|
375
659
|
/**
|
|
376
660
|
* AppPricing configures all pricing using CEL expressions.
|
|
@@ -792,6 +1076,20 @@ export interface WorkerRAM {
|
|
|
792
1076
|
worker_id: string;
|
|
793
1077
|
total: number;
|
|
794
1078
|
}
|
|
1079
|
+
/**
|
|
1080
|
+
* EntitlementDTO for API responses
|
|
1081
|
+
*/
|
|
1082
|
+
export interface EntitlementDTO extends BaseModelDTO {
|
|
1083
|
+
team_id: string;
|
|
1084
|
+
resource: EntitlementResource;
|
|
1085
|
+
type: EntitlementType;
|
|
1086
|
+
enabled: boolean;
|
|
1087
|
+
unlimited: boolean;
|
|
1088
|
+
limit: number;
|
|
1089
|
+
source: EntitlementSource;
|
|
1090
|
+
enforcement: EnforcementMode;
|
|
1091
|
+
expires_at?: string;
|
|
1092
|
+
}
|
|
795
1093
|
/**
|
|
796
1094
|
* FileMetadata holds probed media metadata cached on File records.
|
|
797
1095
|
*/
|
|
@@ -1002,6 +1300,56 @@ export interface InstanceTypeBootTime {
|
|
|
1002
1300
|
updated_at: string;
|
|
1003
1301
|
sample_size: number;
|
|
1004
1302
|
}
|
|
1303
|
+
/**
|
|
1304
|
+
* IntegrationDTO for API responses (never exposes tokens)
|
|
1305
|
+
*/
|
|
1306
|
+
export interface IntegrationDTO extends BaseModelDTO, PermissionModelDTO {
|
|
1307
|
+
provider: string;
|
|
1308
|
+
type: string;
|
|
1309
|
+
auth: string;
|
|
1310
|
+
status: string;
|
|
1311
|
+
display_name: string;
|
|
1312
|
+
icon_url?: string;
|
|
1313
|
+
scopes: StringSlice;
|
|
1314
|
+
expires_at?: string;
|
|
1315
|
+
service_account_email?: string;
|
|
1316
|
+
metadata?: {
|
|
1317
|
+
[key: string]: any;
|
|
1318
|
+
};
|
|
1319
|
+
account_identifier?: string;
|
|
1320
|
+
account_name?: string;
|
|
1321
|
+
is_primary: boolean;
|
|
1322
|
+
error_message?: string;
|
|
1323
|
+
}
|
|
1324
|
+
/**
|
|
1325
|
+
* IntegrationConfigDTO is the API response for integration configuration
|
|
1326
|
+
*/
|
|
1327
|
+
export interface IntegrationConfigDTO {
|
|
1328
|
+
provider: string;
|
|
1329
|
+
type: string;
|
|
1330
|
+
auth: string;
|
|
1331
|
+
name: string;
|
|
1332
|
+
short_name: string;
|
|
1333
|
+
description: string;
|
|
1334
|
+
icon_url?: string;
|
|
1335
|
+
how_it_works?: string[];
|
|
1336
|
+
docs_url?: string;
|
|
1337
|
+
secret_fields?: SecretFieldConfig[];
|
|
1338
|
+
allows_byok: boolean;
|
|
1339
|
+
available: boolean;
|
|
1340
|
+
has_managed: boolean;
|
|
1341
|
+
integration?: IntegrationDTO;
|
|
1342
|
+
}
|
|
1343
|
+
/**
|
|
1344
|
+
* SecretFieldConfig defines a secret field for the UI
|
|
1345
|
+
*/
|
|
1346
|
+
export interface SecretFieldConfig {
|
|
1347
|
+
key: string;
|
|
1348
|
+
label: string;
|
|
1349
|
+
placeholder: string;
|
|
1350
|
+
sensitive: boolean;
|
|
1351
|
+
optional: boolean;
|
|
1352
|
+
}
|
|
1005
1353
|
/**
|
|
1006
1354
|
* KnowledgeFile represents a file in a knowledge entry
|
|
1007
1355
|
*/
|
|
@@ -1094,6 +1442,44 @@ export interface SkillStoreListingDTO {
|
|
|
1094
1442
|
uses: number;
|
|
1095
1443
|
tags?: string[];
|
|
1096
1444
|
}
|
|
1445
|
+
/**
|
|
1446
|
+
* StringSlice is a custom type for storing string slices
|
|
1447
|
+
*/
|
|
1448
|
+
export type StringSlice = string[];
|
|
1449
|
+
/**
|
|
1450
|
+
* NotificationPreferencesDTO is the data transfer object
|
|
1451
|
+
*/
|
|
1452
|
+
export interface NotificationPreferencesDTO extends BaseModelDTO, PermissionModelDTO {
|
|
1453
|
+
email_enabled: boolean;
|
|
1454
|
+
sms_enabled: boolean;
|
|
1455
|
+
push_enabled: boolean;
|
|
1456
|
+
slack_enabled: boolean;
|
|
1457
|
+
billing_notifications: boolean;
|
|
1458
|
+
task_notifications: boolean;
|
|
1459
|
+
system_notifications: boolean;
|
|
1460
|
+
marketing_emails: boolean;
|
|
1461
|
+
quiet_hours_enabled: boolean;
|
|
1462
|
+
quiet_hours_start?: string;
|
|
1463
|
+
quiet_hours_end?: string;
|
|
1464
|
+
timezone: string;
|
|
1465
|
+
}
|
|
1466
|
+
/**
|
|
1467
|
+
* UpdateNotificationPreferencesRequest is the request to update preferences
|
|
1468
|
+
*/
|
|
1469
|
+
export interface UpdateNotificationPreferencesRequest {
|
|
1470
|
+
email_enabled?: boolean;
|
|
1471
|
+
sms_enabled?: boolean;
|
|
1472
|
+
push_enabled?: boolean;
|
|
1473
|
+
slack_enabled?: boolean;
|
|
1474
|
+
billing_notifications?: boolean;
|
|
1475
|
+
task_notifications?: boolean;
|
|
1476
|
+
system_notifications?: boolean;
|
|
1477
|
+
marketing_emails?: boolean;
|
|
1478
|
+
quiet_hours_enabled?: boolean;
|
|
1479
|
+
quiet_hours_start?: string;
|
|
1480
|
+
quiet_hours_end?: string;
|
|
1481
|
+
timezone?: string;
|
|
1482
|
+
}
|
|
1097
1483
|
/**
|
|
1098
1484
|
* PageMetadata holds metadata for a page
|
|
1099
1485
|
*/
|
|
@@ -1181,6 +1567,20 @@ export interface SetupAction {
|
|
|
1181
1567
|
provider?: string;
|
|
1182
1568
|
scopes?: string[];
|
|
1183
1569
|
}
|
|
1570
|
+
/**
|
|
1571
|
+
* CheckRequirementsRequest is the request body for checking requirements
|
|
1572
|
+
*/
|
|
1573
|
+
export interface CheckRequirementsRequest {
|
|
1574
|
+
secrets?: SecretRequirement[];
|
|
1575
|
+
integrations?: IntegrationRequirement[];
|
|
1576
|
+
}
|
|
1577
|
+
/**
|
|
1578
|
+
* CheckRequirementsResponse is the API response for checking requirements
|
|
1579
|
+
*/
|
|
1580
|
+
export interface CheckRequirementsResponse {
|
|
1581
|
+
satisfied: boolean;
|
|
1582
|
+
errors?: RequirementError[];
|
|
1583
|
+
}
|
|
1184
1584
|
/**
|
|
1185
1585
|
* SDKTypes is a phantom type for gotypegen dependency tracing.
|
|
1186
1586
|
* Types listed here (and their transitive dependencies) are included
|
|
@@ -1359,6 +1759,26 @@ export interface TaskDTO extends BaseModelDTO, PermissionModelDTO {
|
|
|
1359
1759
|
session_id?: string;
|
|
1360
1760
|
session_timeout?: number;
|
|
1361
1761
|
}
|
|
1762
|
+
/**
|
|
1763
|
+
* TeamMemberDTO is the API response for a team member.
|
|
1764
|
+
*/
|
|
1765
|
+
export interface TeamMemberDTO {
|
|
1766
|
+
id: string;
|
|
1767
|
+
user_id: string;
|
|
1768
|
+
team_id: string;
|
|
1769
|
+
role: TeamRole;
|
|
1770
|
+
user?: TeamMemberUserDTO;
|
|
1771
|
+
}
|
|
1772
|
+
/**
|
|
1773
|
+
* TeamMemberUserDTO is a lightweight user view within team membership.
|
|
1774
|
+
*/
|
|
1775
|
+
export interface TeamMemberUserDTO {
|
|
1776
|
+
id: string;
|
|
1777
|
+
email: string;
|
|
1778
|
+
name: string;
|
|
1779
|
+
full_name: string;
|
|
1780
|
+
avatar_url: string;
|
|
1781
|
+
}
|
|
1362
1782
|
/**
|
|
1363
1783
|
* TeamRelationDTO is a lightweight team reference embedded in other DTOs.
|
|
1364
1784
|
*/
|
|
@@ -1371,6 +1791,27 @@ export interface TeamRelationDTO {
|
|
|
1371
1791
|
avatar_url: string;
|
|
1372
1792
|
setup_completed: boolean;
|
|
1373
1793
|
}
|
|
1794
|
+
/**
|
|
1795
|
+
* TeamInviteDTO is the public representation of an invite
|
|
1796
|
+
*/
|
|
1797
|
+
export interface TeamInviteDTO {
|
|
1798
|
+
id: string;
|
|
1799
|
+
team_id: string;
|
|
1800
|
+
email: string;
|
|
1801
|
+
role: TeamRole;
|
|
1802
|
+
status: TeamInviteStatus;
|
|
1803
|
+
expires_at: string;
|
|
1804
|
+
created_at: string;
|
|
1805
|
+
invited_by?: TeamMemberUserDTO;
|
|
1806
|
+
team?: TeamRelationDTO;
|
|
1807
|
+
}
|
|
1808
|
+
/**
|
|
1809
|
+
* TeamInviteCreateRequest is used when creating a team invite
|
|
1810
|
+
*/
|
|
1811
|
+
export interface TeamInviteCreateRequest {
|
|
1812
|
+
email: string;
|
|
1813
|
+
role: TeamRole;
|
|
1814
|
+
}
|
|
1374
1815
|
/**
|
|
1375
1816
|
* ToolInvocationFunction contains the function details for a tool invocation
|
|
1376
1817
|
*/
|
|
@@ -1393,6 +1834,33 @@ export interface ToolInvocationDTO extends BaseModelDTO, PermissionModelDTO {
|
|
|
1393
1834
|
data?: any;
|
|
1394
1835
|
widget?: Widget;
|
|
1395
1836
|
}
|
|
1837
|
+
/**
|
|
1838
|
+
* MetaItem represents metadata about an input or output item
|
|
1839
|
+
*/
|
|
1840
|
+
export interface MetaItem {
|
|
1841
|
+
type: MetaItemType;
|
|
1842
|
+
tokens?: number;
|
|
1843
|
+
width?: number;
|
|
1844
|
+
height?: number;
|
|
1845
|
+
resolution_mp?: number;
|
|
1846
|
+
steps?: number;
|
|
1847
|
+
count?: number;
|
|
1848
|
+
resolution?: VideoResolution;
|
|
1849
|
+
seconds?: number;
|
|
1850
|
+
fps?: number;
|
|
1851
|
+
sample_rate?: number;
|
|
1852
|
+
cost?: number;
|
|
1853
|
+
extra?: {
|
|
1854
|
+
[key: string]: any;
|
|
1855
|
+
};
|
|
1856
|
+
}
|
|
1857
|
+
/**
|
|
1858
|
+
* OutputMeta contains structured metadata about task inputs and outputs for pricing calculation
|
|
1859
|
+
*/
|
|
1860
|
+
export interface OutputMeta {
|
|
1861
|
+
inputs: MetaItem[];
|
|
1862
|
+
outputs: MetaItem[];
|
|
1863
|
+
}
|
|
1396
1864
|
/**
|
|
1397
1865
|
* UsageEventDTO is the API representation of a usage event.
|
|
1398
1866
|
*/
|
|
@@ -1406,6 +1874,18 @@ export interface UsageEventDTO extends BaseModelDTO, PermissionModelDTO {
|
|
|
1406
1874
|
quantity: number;
|
|
1407
1875
|
unit: string;
|
|
1408
1876
|
}
|
|
1877
|
+
/**
|
|
1878
|
+
* UserDTO is the API response for a full user.
|
|
1879
|
+
*/
|
|
1880
|
+
export interface UserDTO extends BaseModelDTO {
|
|
1881
|
+
default_team_id: string;
|
|
1882
|
+
role: Role;
|
|
1883
|
+
email: string;
|
|
1884
|
+
name: string;
|
|
1885
|
+
full_name: string;
|
|
1886
|
+
avatar_url: string;
|
|
1887
|
+
metadata?: UserMetadataDTO;
|
|
1888
|
+
}
|
|
1409
1889
|
/**
|
|
1410
1890
|
* UserRelationDTO is a lightweight user reference embedded in other DTOs.
|
|
1411
1891
|
*/
|
|
@@ -1416,6 +1896,17 @@ export interface UserRelationDTO {
|
|
|
1416
1896
|
role: Role;
|
|
1417
1897
|
avatar_url: string;
|
|
1418
1898
|
}
|
|
1899
|
+
/**
|
|
1900
|
+
* UserMetadataDTO is the API representation of user metadata.
|
|
1901
|
+
*/
|
|
1902
|
+
export interface UserMetadataDTO {
|
|
1903
|
+
user_id: string;
|
|
1904
|
+
completed_onboarding: boolean;
|
|
1905
|
+
use_case: string;
|
|
1906
|
+
use_case_reason: string;
|
|
1907
|
+
use_case_privacy: string;
|
|
1908
|
+
signup_source: string;
|
|
1909
|
+
}
|
|
1419
1910
|
/**
|
|
1420
1911
|
* WidgetAction represents an action triggered by a widget button
|
|
1421
1912
|
*/
|
|
@@ -1785,6 +2276,20 @@ export declare const GraphEdgeTypeExecution: GraphEdgeType;
|
|
|
1785
2276
|
export declare const GraphEdgeTypeParent: GraphEdgeType;
|
|
1786
2277
|
export declare const GraphEdgeTypeAncestor: GraphEdgeType;
|
|
1787
2278
|
export declare const GraphEdgeTypeDuplicate: GraphEdgeType;
|
|
2279
|
+
export type EntitlementSource = string;
|
|
2280
|
+
export declare const EntitlementSourceTier: EntitlementSource;
|
|
2281
|
+
export declare const EntitlementSourceOverride: EntitlementSource;
|
|
2282
|
+
export declare const EntitlementSourceWhitelist: EntitlementSource;
|
|
2283
|
+
export declare const EntitlementSourceTrial: EntitlementSource;
|
|
2284
|
+
export type EntitlementType = string;
|
|
2285
|
+
export declare const EntitlementTypeBoolean: EntitlementType;
|
|
2286
|
+
export declare const EntitlementTypeLimit: EntitlementType;
|
|
2287
|
+
/**
|
|
2288
|
+
* EnforcementMode controls how limit violations are handled.
|
|
2289
|
+
*/
|
|
2290
|
+
export type EnforcementMode = string;
|
|
2291
|
+
export declare const EnforcementBlock: EnforcementMode;
|
|
2292
|
+
export declare const EnforcementWarn: EnforcementMode;
|
|
1788
2293
|
export type PageStatus = number;
|
|
1789
2294
|
export declare const PageStatusUnknown: PageStatus;
|
|
1790
2295
|
export declare const PageStatusDraft: PageStatus;
|
|
@@ -1857,6 +2362,33 @@ export declare const ProjectTypeOther: ProjectType;
|
|
|
1857
2362
|
export type UsageEventResourceTier = string;
|
|
1858
2363
|
export declare const UsageEventResourceTierPrivate: UsageEventResourceTier;
|
|
1859
2364
|
export declare const UsageEventResourceTierCloud: UsageEventResourceTier;
|
|
2365
|
+
/**
|
|
2366
|
+
* MetaItemType is the type discriminator for MetaItem
|
|
2367
|
+
*/
|
|
2368
|
+
export type MetaItemType = string;
|
|
2369
|
+
export declare const MetaItemTypeText: MetaItemType;
|
|
2370
|
+
export declare const MetaItemTypeImage: MetaItemType;
|
|
2371
|
+
export declare const MetaItemTypeVideo: MetaItemType;
|
|
2372
|
+
export declare const MetaItemTypeAudio: MetaItemType;
|
|
2373
|
+
export declare const MetaItemTypeRaw: MetaItemType;
|
|
2374
|
+
/**
|
|
2375
|
+
* VideoResolution represents standard video resolution presets
|
|
2376
|
+
*/
|
|
2377
|
+
export type VideoResolution = string;
|
|
2378
|
+
export declare const VideoRes480P: VideoResolution;
|
|
2379
|
+
export declare const VideoRes720P: VideoResolution;
|
|
2380
|
+
export declare const VideoRes1080P: VideoResolution;
|
|
2381
|
+
export declare const VideoRes1440P: VideoResolution;
|
|
2382
|
+
export declare const VideoRes4K: VideoResolution;
|
|
2383
|
+
/**
|
|
2384
|
+
* TeamInviteStatus represents the status of a team invitation
|
|
2385
|
+
*/
|
|
2386
|
+
export type TeamInviteStatus = string;
|
|
2387
|
+
export declare const TeamInviteStatusPending: TeamInviteStatus;
|
|
2388
|
+
export declare const TeamInviteStatusAccepted: TeamInviteStatus;
|
|
2389
|
+
export declare const TeamInviteStatusDeclined: TeamInviteStatus;
|
|
2390
|
+
export declare const TeamInviteStatusExpired: TeamInviteStatus;
|
|
2391
|
+
export declare const TeamInviteStatusRevoked: TeamInviteStatus;
|
|
1860
2392
|
export type FilterOperator = string;
|
|
1861
2393
|
export declare const OpEqual: FilterOperator;
|
|
1862
2394
|
export declare const OpNotEqual: FilterOperator;
|
|
@@ -1874,6 +2406,23 @@ export declare const OpIsNull: FilterOperator;
|
|
|
1874
2406
|
export declare const OpIsNotNull: FilterOperator;
|
|
1875
2407
|
export declare const OpIsEmpty: FilterOperator;
|
|
1876
2408
|
export declare const OpIsNotEmpty: FilterOperator;
|
|
2409
|
+
export type EntitlementResource = string;
|
|
2410
|
+
export declare const ResourceAPIKeys: EntitlementResource;
|
|
2411
|
+
export declare const ResourceConnectors: EntitlementResource;
|
|
2412
|
+
export declare const ResourceKnowledgeBases: EntitlementResource;
|
|
2413
|
+
export declare const ResourcePrivateApps: EntitlementResource;
|
|
2414
|
+
export declare const ResourceStorageMB: EntitlementResource;
|
|
2415
|
+
export declare const ResourceConcurrency: EntitlementResource;
|
|
2416
|
+
export declare const ResourceRatePerMin: EntitlementResource;
|
|
2417
|
+
export declare const ResourceSeats: EntitlementResource;
|
|
2418
|
+
export declare const ResourceTaskExecutions: EntitlementResource;
|
|
2419
|
+
export declare const ResourceFeatureScopes: EntitlementResource;
|
|
2420
|
+
export declare const ResourceFeatureWebhooks: EntitlementResource;
|
|
2421
|
+
export declare const ResourceFeatureBYOK: EntitlementResource;
|
|
2422
|
+
export declare const ResourceFeatureTeamBilling: EntitlementResource;
|
|
2423
|
+
export declare const ResourceFeatureAutoRecharge: EntitlementResource;
|
|
2424
|
+
export declare const ResourceFeatureInvoices: EntitlementResource;
|
|
2425
|
+
export declare const ResourceFeaturePublishApps: EntitlementResource;
|
|
1877
2426
|
export type ContentRating = string;
|
|
1878
2427
|
export declare const ContentSafe: ContentRating;
|
|
1879
2428
|
export declare const ContentSexualSuggestive: ContentRating;
|
|
@@ -1960,13 +2509,61 @@ export type TeamType = string;
|
|
|
1960
2509
|
export declare const TeamTypePersonal: TeamType;
|
|
1961
2510
|
export declare const TeamTypeTeam: TeamType;
|
|
1962
2511
|
export declare const TeamTypeSystem: TeamType;
|
|
2512
|
+
export type TeamStatus = string;
|
|
2513
|
+
export declare const TeamStatusActive: TeamStatus;
|
|
2514
|
+
export declare const TeamStatusSuspended: TeamStatus;
|
|
2515
|
+
export declare const TeamStatusTerminated: TeamStatus;
|
|
2516
|
+
export type TeamRole = string;
|
|
2517
|
+
export declare const TeamRoleOwner: TeamRole;
|
|
2518
|
+
export declare const TeamRoleAdmin: TeamRole;
|
|
2519
|
+
export declare const TeamRoleMember: TeamRole;
|
|
2520
|
+
/**
|
|
2521
|
+
* ToolCallType represents the type field on a tool call (wire format).
|
|
2522
|
+
*/
|
|
2523
|
+
export type ToolCallType = string;
|
|
2524
|
+
/**
|
|
2525
|
+
* ToolParamType represents a JSON Schema parameter type for tool definitions.
|
|
2526
|
+
*/
|
|
2527
|
+
export type ToolParamType = string;
|
|
2528
|
+
/**
|
|
2529
|
+
* Tool types and parameter types
|
|
2530
|
+
*/
|
|
2531
|
+
export declare const ToolTypeFunction: ToolCallType;
|
|
2532
|
+
/**
|
|
2533
|
+
* Tool types and parameter types
|
|
2534
|
+
*/
|
|
2535
|
+
export declare const ToolParamTypeObject: ToolParamType;
|
|
2536
|
+
/**
|
|
2537
|
+
* Tool types and parameter types
|
|
2538
|
+
*/
|
|
2539
|
+
export declare const ToolParamTypeString: ToolParamType;
|
|
2540
|
+
/**
|
|
2541
|
+
* Tool types and parameter types
|
|
2542
|
+
*/
|
|
2543
|
+
export declare const ToolParamTypeInteger: ToolParamType;
|
|
2544
|
+
/**
|
|
2545
|
+
* Tool types and parameter types
|
|
2546
|
+
*/
|
|
2547
|
+
export declare const ToolParamTypeNumber: ToolParamType;
|
|
2548
|
+
/**
|
|
2549
|
+
* Tool types and parameter types
|
|
2550
|
+
*/
|
|
2551
|
+
export declare const ToolParamTypeBoolean: ToolParamType;
|
|
2552
|
+
/**
|
|
2553
|
+
* Tool types and parameter types
|
|
2554
|
+
*/
|
|
2555
|
+
export declare const ToolParamTypeArray: ToolParamType;
|
|
2556
|
+
/**
|
|
2557
|
+
* Tool types and parameter types
|
|
2558
|
+
*/
|
|
2559
|
+
export declare const ToolParamTypeNull: ToolParamType;
|
|
1963
2560
|
/**
|
|
1964
2561
|
* ToolCall represents a tool call from an LLM response (wire format)
|
|
1965
2562
|
* This is a transport object for parsing LLM responses, not a database model
|
|
1966
2563
|
*/
|
|
1967
2564
|
export interface ToolCall {
|
|
1968
2565
|
id: string;
|
|
1969
|
-
type:
|
|
2566
|
+
type: ToolCallType;
|
|
1970
2567
|
function: ToolCallFunction;
|
|
1971
2568
|
}
|
|
1972
2569
|
/**
|
|
@@ -1991,7 +2588,7 @@ export interface FileRef {
|
|
|
1991
2588
|
* Tool represents a tool definition for LLM function calling
|
|
1992
2589
|
*/
|
|
1993
2590
|
export interface Tool {
|
|
1994
|
-
type:
|
|
2591
|
+
type: ToolCallType;
|
|
1995
2592
|
function: ToolFunction;
|
|
1996
2593
|
}
|
|
1997
2594
|
export interface ToolFunction {
|
|
@@ -2001,7 +2598,7 @@ export interface ToolFunction {
|
|
|
2001
2598
|
required?: string[];
|
|
2002
2599
|
}
|
|
2003
2600
|
export interface ToolParameters {
|
|
2004
|
-
type:
|
|
2601
|
+
type: ToolParamType;
|
|
2005
2602
|
title: string;
|
|
2006
2603
|
properties?: ToolParameterProperties;
|
|
2007
2604
|
required?: string[];
|
|
@@ -2010,7 +2607,7 @@ export type ToolParameterProperties = {
|
|
|
2010
2607
|
[key: string]: ToolParameterProperty;
|
|
2011
2608
|
};
|
|
2012
2609
|
export interface ToolParameterProperty {
|
|
2013
|
-
type:
|
|
2610
|
+
type: ToolParamType;
|
|
2014
2611
|
title: string;
|
|
2015
2612
|
description: string;
|
|
2016
2613
|
properties?: ToolParameterProperties;
|