@robosystems/client 0.2.3 → 0.2.5

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/sdk/types.gen.ts CHANGED
@@ -379,7 +379,7 @@ export type AgentResponse = {
379
379
  } | null;
380
380
  /**
381
381
  * Confidence Score
382
- * Confidence score of the response
382
+ * Confidence score of the response (0.0-1.0 scale)
383
383
  */
384
384
  confidence_score?: number | null;
385
385
  /**
@@ -433,6 +433,16 @@ export type AuthResponse = {
433
433
  * JWT authentication token (optional for cookie-based auth)
434
434
  */
435
435
  token?: string | null;
436
+ /**
437
+ * Expires In
438
+ * Token expiry time in seconds from now
439
+ */
440
+ expires_in?: number | null;
441
+ /**
442
+ * Refresh Threshold
443
+ * Recommended refresh threshold in seconds before expiry
444
+ */
445
+ refresh_threshold?: number | null;
436
446
  };
437
447
 
438
448
  /**
@@ -500,6 +510,60 @@ export type BackupCreateRequest = {
500
510
  schedule?: string | null;
501
511
  };
502
512
 
513
+ /**
514
+ * BackupDownloadUrlResponse
515
+ * Response model for backup download URL generation.
516
+ */
517
+ export type BackupDownloadUrlResponse = {
518
+ /**
519
+ * Download Url
520
+ * Pre-signed S3 URL for downloading the backup file
521
+ */
522
+ download_url: string;
523
+ /**
524
+ * Expires In
525
+ * URL expiration time in seconds from now
526
+ */
527
+ expires_in: number;
528
+ /**
529
+ * Expires At
530
+ * Unix timestamp when the URL expires
531
+ */
532
+ expires_at: number;
533
+ /**
534
+ * Backup Id
535
+ * Backup identifier
536
+ */
537
+ backup_id: string;
538
+ /**
539
+ * Graph Id
540
+ * Graph database identifier
541
+ */
542
+ graph_id: string;
543
+ };
544
+
545
+ /**
546
+ * BackupLimits
547
+ * Backup operation limits.
548
+ */
549
+ export type BackupLimits = {
550
+ /**
551
+ * Max Backup Size Gb
552
+ * Maximum backup size in GB
553
+ */
554
+ max_backup_size_gb: number;
555
+ /**
556
+ * Backup Retention Days
557
+ * Backup retention period in days
558
+ */
559
+ backup_retention_days: number;
560
+ /**
561
+ * Max Backups Per Day
562
+ * Maximum backups per day
563
+ */
564
+ max_backups_per_day: number;
565
+ };
566
+
503
567
  /**
504
568
  * BackupListResponse
505
569
  * Response model for backup list.
@@ -671,7 +735,7 @@ export type BackupStatsResponse = {
671
735
  export type BatchAgentRequest = {
672
736
  /**
673
737
  * Queries
674
- * List of queries to process
738
+ * List of queries to process (max 10)
675
739
  */
676
740
  queries: Array<AgentRequest>;
677
741
  /**
@@ -688,12 +752,12 @@ export type BatchAgentRequest = {
688
752
  export type BatchAgentResponse = {
689
753
  /**
690
754
  * Results
691
- * List of agent responses
755
+ * List of agent responses (includes successes and failures)
692
756
  */
693
757
  results: Array<AgentResponse>;
694
758
  /**
695
759
  * Total Execution Time
696
- * Total execution time
760
+ * Total execution time in seconds
697
761
  */
698
762
  total_execution_time: number;
699
763
  /**
@@ -925,6 +989,43 @@ export type ConnectionResponse = {
925
989
  };
926
990
  };
927
991
 
992
+ /**
993
+ * CopyOperationLimits
994
+ * Copy/ingestion operation limits.
995
+ */
996
+ export type CopyOperationLimits = {
997
+ /**
998
+ * Max File Size Gb
999
+ * Maximum file size in GB
1000
+ */
1001
+ max_file_size_gb: number;
1002
+ /**
1003
+ * Timeout Seconds
1004
+ * Operation timeout in seconds
1005
+ */
1006
+ timeout_seconds: number;
1007
+ /**
1008
+ * Concurrent Operations
1009
+ * Maximum concurrent operations
1010
+ */
1011
+ concurrent_operations: number;
1012
+ /**
1013
+ * Max Files Per Operation
1014
+ * Maximum files per operation
1015
+ */
1016
+ max_files_per_operation: number;
1017
+ /**
1018
+ * Daily Copy Operations
1019
+ * Daily operation limit
1020
+ */
1021
+ daily_copy_operations: number;
1022
+ /**
1023
+ * Supported Formats
1024
+ * Supported file formats
1025
+ */
1026
+ supported_formats: Array<string>;
1027
+ };
1028
+
928
1029
  /**
929
1030
  * CreateAPIKeyRequest
930
1031
  * Request model for creating a new API key.
@@ -986,6 +1087,10 @@ export type CreateConnectionRequest = {
986
1087
  /**
987
1088
  * CreateGraphRequest
988
1089
  * Request model for creating a new graph.
1090
+ *
1091
+ * Use this to create either:
1092
+ * - **Entity graphs**: Standard graphs with entity schema and optional extensions
1093
+ * - **Custom graphs**: Generic graphs with fully custom schema definitions
989
1094
  */
990
1095
  export type CreateGraphRequest = {
991
1096
  /**
@@ -998,11 +1103,11 @@ export type CreateGraphRequest = {
998
1103
  */
999
1104
  instance_tier?: string;
1000
1105
  /**
1001
- * Custom schema definition to apply
1106
+ * Custom schema definition to apply. If provided, creates a generic custom graph. If omitted, creates an entity graph using schema_extensions.
1002
1107
  */
1003
1108
  custom_schema?: CustomSchemaDefinition | null;
1004
1109
  /**
1005
- * Optional initial entity to create in the graph. If provided, creates a entity-focused graph.
1110
+ * Optional initial entity to create in the graph. If provided with entity graph, populates the first entity node.
1006
1111
  */
1007
1112
  initial_entity?: InitialEntityData | null;
1008
1113
  /**
@@ -1055,6 +1160,33 @@ export type CreateSubgraphRequest = {
1055
1160
  } | null;
1056
1161
  };
1057
1162
 
1163
+ /**
1164
+ * CreditLimits
1165
+ * AI credit limits (optional).
1166
+ */
1167
+ export type CreditLimits = {
1168
+ /**
1169
+ * Monthly Ai Credits
1170
+ * Monthly AI credits allocation
1171
+ */
1172
+ monthly_ai_credits: number;
1173
+ /**
1174
+ * Current Balance
1175
+ * Current credit balance
1176
+ */
1177
+ current_balance: number;
1178
+ /**
1179
+ * Storage Billing Enabled
1180
+ * Whether storage billing is enabled
1181
+ */
1182
+ storage_billing_enabled: boolean;
1183
+ /**
1184
+ * Storage Rate Per Gb Per Day
1185
+ * Storage billing rate per GB per day
1186
+ */
1187
+ storage_rate_per_gb_per_day: number;
1188
+ };
1189
+
1058
1190
  /**
1059
1191
  * CreditSummary
1060
1192
  * Credit balance summary.
@@ -1178,7 +1310,11 @@ export type CreditsSummaryResponse = {
1178
1310
 
1179
1311
  /**
1180
1312
  * CustomSchemaDefinition
1181
- * Custom schema definition for custom graphs.
1313
+ * Custom schema definition for generic graphs.
1314
+ *
1315
+ * This model allows you to define custom node types, relationship types, and properties
1316
+ * for graphs that don't fit the standard entity-based schema. Perfect for domain-specific
1317
+ * applications like inventory systems, org charts, project management, etc.
1182
1318
  */
1183
1319
  export type CustomSchemaDefinition = {
1184
1320
  /**
@@ -1198,7 +1334,7 @@ export type CustomSchemaDefinition = {
1198
1334
  description?: string | null;
1199
1335
  /**
1200
1336
  * Extends
1201
- * Base schema to extend (e.g., 'base')
1337
+ * Base schema to extend (e.g., 'base' for common utilities)
1202
1338
  */
1203
1339
  extends?: string | null;
1204
1340
  /**
@@ -1837,6 +1973,57 @@ export type GraphInfo = {
1837
1973
  createdAt: string;
1838
1974
  };
1839
1975
 
1976
+ /**
1977
+ * GraphLimitsResponse
1978
+ * Response model for comprehensive graph operational limits.
1979
+ */
1980
+ export type GraphLimitsResponse = {
1981
+ /**
1982
+ * Graph Id
1983
+ * Graph database identifier
1984
+ */
1985
+ graph_id: string;
1986
+ /**
1987
+ * Subscription Tier
1988
+ * User's subscription tier
1989
+ */
1990
+ subscription_tier: string;
1991
+ /**
1992
+ * Graph Tier
1993
+ * Graph's database tier
1994
+ */
1995
+ graph_tier: string;
1996
+ /**
1997
+ * Is Shared Repository
1998
+ * Whether this is a shared repository
1999
+ */
2000
+ is_shared_repository: boolean;
2001
+ /**
2002
+ * Storage limits and usage
2003
+ */
2004
+ storage: StorageLimits;
2005
+ /**
2006
+ * Query operation limits
2007
+ */
2008
+ queries: QueryLimits;
2009
+ /**
2010
+ * Copy/ingestion operation limits
2011
+ */
2012
+ copy_operations: CopyOperationLimits;
2013
+ /**
2014
+ * Backup operation limits
2015
+ */
2016
+ backups: BackupLimits;
2017
+ /**
2018
+ * API rate limits
2019
+ */
2020
+ rate_limits: RateLimits;
2021
+ /**
2022
+ * AI credit limits (if applicable)
2023
+ */
2024
+ credits?: CreditLimits | null;
2025
+ };
2026
+
1840
2027
  /**
1841
2028
  * GraphMetadata
1842
2029
  * Metadata for graph creation.
@@ -2003,7 +2190,10 @@ export type HealthStatus = {
2003
2190
 
2004
2191
  /**
2005
2192
  * InitialEntityData
2006
- * Initial entity data for graph creation.
2193
+ * Initial entity data for entity-focused graph creation.
2194
+ *
2195
+ * When creating an entity graph with an initial entity node, this model defines
2196
+ * the entity's identifying information and metadata.
2007
2197
  */
2008
2198
  export type InitialEntityData = {
2009
2199
  /**
@@ -2394,6 +2584,33 @@ export type PlaidConnectionConfig = {
2394
2584
  }> | null;
2395
2585
  };
2396
2586
 
2587
+ /**
2588
+ * QueryLimits
2589
+ * Query operation limits.
2590
+ */
2591
+ export type QueryLimits = {
2592
+ /**
2593
+ * Max Timeout Seconds
2594
+ * Maximum query timeout in seconds
2595
+ */
2596
+ max_timeout_seconds: number;
2597
+ /**
2598
+ * Chunk Size
2599
+ * Maximum chunk size for result streaming
2600
+ */
2601
+ chunk_size: number;
2602
+ /**
2603
+ * Max Rows Per Query
2604
+ * Maximum rows returned per query
2605
+ */
2606
+ max_rows_per_query: number;
2607
+ /**
2608
+ * Concurrent Queries
2609
+ * Maximum concurrent queries allowed
2610
+ */
2611
+ concurrent_queries: number;
2612
+ };
2613
+
2397
2614
  /**
2398
2615
  * QuickBooksConnectionConfig
2399
2616
  * QuickBooks-specific connection configuration.
@@ -2411,6 +2628,28 @@ export type QuickBooksConnectionConfig = {
2411
2628
  refresh_token?: string | null;
2412
2629
  };
2413
2630
 
2631
+ /**
2632
+ * RateLimits
2633
+ * API rate limits.
2634
+ */
2635
+ export type RateLimits = {
2636
+ /**
2637
+ * Requests Per Minute
2638
+ * Requests per minute limit
2639
+ */
2640
+ requests_per_minute: number;
2641
+ /**
2642
+ * Requests Per Hour
2643
+ * Requests per hour limit
2644
+ */
2645
+ requests_per_hour: number;
2646
+ /**
2647
+ * Burst Capacity
2648
+ * Burst capacity for short spikes
2649
+ */
2650
+ burst_capacity: number;
2651
+ };
2652
+
2414
2653
  /**
2415
2654
  * RegisterRequest
2416
2655
  * Registration request model.
@@ -2808,6 +3047,28 @@ export type StorageLimitResponse = {
2808
3047
  recommendations?: Array<string> | null;
2809
3048
  };
2810
3049
 
3050
+ /**
3051
+ * StorageLimits
3052
+ * Storage limits information.
3053
+ */
3054
+ export type StorageLimits = {
3055
+ /**
3056
+ * Current Usage Gb
3057
+ * Current storage usage in GB
3058
+ */
3059
+ current_usage_gb?: number | null;
3060
+ /**
3061
+ * Max Storage Gb
3062
+ * Maximum storage limit in GB
3063
+ */
3064
+ max_storage_gb: number;
3065
+ /**
3066
+ * Approaching Limit
3067
+ * Whether approaching storage limit (>80%)
3068
+ */
3069
+ approaching_limit: boolean;
3070
+ };
3071
+
2811
3072
  /**
2812
3073
  * SubgraphQuotaResponse
2813
3074
  * Response model for subgraph quota information.
@@ -5593,12 +5854,9 @@ export type GetBackupDownloadUrlError = GetBackupDownloadUrlErrors[keyof GetBack
5593
5854
 
5594
5855
  export type GetBackupDownloadUrlResponses = {
5595
5856
  /**
5596
- * Response Getbackupdownloadurl
5597
5857
  * Download URL generated successfully
5598
5858
  */
5599
- 200: {
5600
- [key: string]: unknown;
5601
- };
5859
+ 200: BackupDownloadUrlResponse;
5602
5860
  };
5603
5861
 
5604
5862
  export type GetBackupDownloadUrlResponse = GetBackupDownloadUrlResponses[keyof GetBackupDownloadUrlResponses];
@@ -5833,13 +6091,25 @@ export type ExecuteCypherQueryResponses = {
5833
6091
  /**
5834
6092
  * Query executed successfully
5835
6093
  */
5836
- 200: unknown;
6094
+ 200: {
6095
+ success?: boolean;
6096
+ data?: Array<{
6097
+ [key: string]: unknown;
6098
+ }>;
6099
+ columns?: Array<string>;
6100
+ row_count?: number;
6101
+ execution_time_ms?: number;
6102
+ graph_id?: string;
6103
+ timestamp?: string;
6104
+ };
5837
6105
  /**
5838
6106
  * Query queued for execution
5839
6107
  */
5840
6108
  202: unknown;
5841
6109
  };
5842
6110
 
6111
+ export type ExecuteCypherQueryResponse = ExecuteCypherQueryResponses[keyof ExecuteCypherQueryResponses];
6112
+
5843
6113
  export type GetGraphSchemaData = {
5844
6114
  body?: never;
5845
6115
  path: {
@@ -6578,12 +6848,9 @@ export type GetGraphLimitsError = GetGraphLimitsErrors[keyof GetGraphLimitsError
6578
6848
 
6579
6849
  export type GetGraphLimitsResponses = {
6580
6850
  /**
6581
- * Response Getgraphlimits
6582
6851
  * Limits retrieved successfully
6583
6852
  */
6584
- 200: {
6585
- [key: string]: unknown;
6586
- };
6853
+ 200: GraphLimitsResponse;
6587
6854
  };
6588
6855
 
6589
6856
  export type GetGraphLimitsResponse = GetGraphLimitsResponses[keyof GetGraphLimitsResponses];
@@ -7305,6 +7572,38 @@ export type GetAvailableExtensionsResponses = {
7305
7572
 
7306
7573
  export type GetAvailableExtensionsResponse = GetAvailableExtensionsResponses[keyof GetAvailableExtensionsResponses];
7307
7574
 
7575
+ export type GetAvailableGraphTiersData = {
7576
+ body?: never;
7577
+ path?: never;
7578
+ query?: {
7579
+ /**
7580
+ * Include Disabled
7581
+ */
7582
+ include_disabled?: boolean;
7583
+ };
7584
+ url: '/v1/graphs/tiers';
7585
+ };
7586
+
7587
+ export type GetAvailableGraphTiersErrors = {
7588
+ /**
7589
+ * Validation Error
7590
+ */
7591
+ 422: HttpValidationError;
7592
+ /**
7593
+ * Failed to retrieve tiers
7594
+ */
7595
+ 500: unknown;
7596
+ };
7597
+
7598
+ export type GetAvailableGraphTiersError = GetAvailableGraphTiersErrors[keyof GetAvailableGraphTiersErrors];
7599
+
7600
+ export type GetAvailableGraphTiersResponses = {
7601
+ /**
7602
+ * Tiers retrieved successfully
7603
+ */
7604
+ 200: unknown;
7605
+ };
7606
+
7308
7607
  export type SelectGraphData = {
7309
7608
  body?: never;
7310
7609
  path: {