@robosystems/client 0.1.15 → 0.1.17

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.
Files changed (67) hide show
  1. package/extensions/hooks.d.ts +1 -1
  2. package/package.json +48 -6
  3. package/sdk/client/client.gen.d.ts +2 -0
  4. package/sdk/client/client.gen.js +153 -0
  5. package/sdk/client/client.gen.ts +200 -0
  6. package/sdk/client/index.d.ts +7 -0
  7. package/sdk/client/index.js +15 -0
  8. package/sdk/client/index.ts +25 -0
  9. package/sdk/client/types.gen.d.ts +122 -0
  10. package/sdk/client/types.gen.js +4 -0
  11. package/sdk/client/types.gen.ts +233 -0
  12. package/sdk/client/utils.gen.d.ts +45 -0
  13. package/sdk/client/utils.gen.js +296 -0
  14. package/sdk/client/utils.gen.ts +419 -0
  15. package/sdk/client.gen.d.ts +12 -0
  16. package/sdk/client.gen.js +8 -0
  17. package/sdk/client.gen.ts +18 -0
  18. package/sdk/core/auth.gen.d.ts +18 -0
  19. package/sdk/core/auth.gen.js +18 -0
  20. package/sdk/core/auth.gen.ts +42 -0
  21. package/sdk/core/bodySerializer.gen.d.ts +17 -0
  22. package/sdk/core/bodySerializer.gen.js +57 -0
  23. package/sdk/core/bodySerializer.gen.ts +90 -0
  24. package/sdk/core/params.gen.d.ts +33 -0
  25. package/sdk/core/params.gen.js +92 -0
  26. package/sdk/core/params.gen.ts +153 -0
  27. package/sdk/core/pathSerializer.gen.d.ts +33 -0
  28. package/sdk/core/pathSerializer.gen.js +123 -0
  29. package/sdk/core/pathSerializer.gen.ts +181 -0
  30. package/sdk/core/types.gen.d.ts +78 -0
  31. package/sdk/core/types.gen.js +4 -0
  32. package/sdk/core/types.gen.ts +121 -0
  33. package/sdk/index.d.ts +2 -0
  34. package/sdk/index.js +19 -0
  35. package/sdk/index.ts +3 -0
  36. package/sdk/sdk.gen.d.ts +1249 -0
  37. package/sdk/sdk.gen.js +2572 -0
  38. package/sdk/sdk.gen.ts +2585 -0
  39. package/sdk/types.gen.d.ts +6347 -0
  40. package/sdk/types.gen.js +3 -0
  41. package/sdk/types.gen.ts +6852 -0
  42. package/sdk-extensions/OperationClient.d.ts +64 -0
  43. package/sdk-extensions/OperationClient.js +251 -0
  44. package/sdk-extensions/OperationClient.ts +322 -0
  45. package/sdk-extensions/QueryClient.d.ts +50 -0
  46. package/sdk-extensions/QueryClient.js +190 -0
  47. package/sdk-extensions/QueryClient.ts +283 -0
  48. package/sdk-extensions/README.md +672 -0
  49. package/sdk-extensions/SSEClient.d.ts +48 -0
  50. package/sdk-extensions/SSEClient.js +148 -0
  51. package/sdk-extensions/SSEClient.ts +189 -0
  52. package/sdk-extensions/config.d.ts +32 -0
  53. package/sdk-extensions/config.js +74 -0
  54. package/sdk-extensions/config.ts +91 -0
  55. package/sdk-extensions/hooks.d.ts +110 -0
  56. package/sdk-extensions/hooks.js +371 -0
  57. package/sdk-extensions/hooks.ts +438 -0
  58. package/sdk-extensions/index.d.ts +46 -0
  59. package/sdk-extensions/index.js +110 -0
  60. package/sdk-extensions/index.ts +123 -0
  61. package/sdk.gen.d.ts +210 -104
  62. package/sdk.gen.js +409 -287
  63. package/sdk.gen.ts +404 -282
  64. package/types.gen.d.ts +1218 -567
  65. package/types.gen.ts +1236 -566
  66. package/openapi-ts.config.js +0 -9
  67. package/prepare.js +0 -220
package/types.gen.ts CHANGED
@@ -287,23 +287,6 @@ export type BackupCreateRequest = {
287
287
  schedule?: string | null;
288
288
  };
289
289
 
290
- /**
291
- * BackupExportRequest
292
- * Request model for exporting a backup.
293
- */
294
- export type BackupExportRequest = {
295
- /**
296
- * Backup Id
297
- * ID of backup to export
298
- */
299
- backup_id: string;
300
- /**
301
- * Export Format
302
- * Export format - only 'original' is supported (compressed .kuzu file)
303
- */
304
- export_format?: string;
305
- };
306
-
307
290
  /**
308
291
  * BackupListResponse
309
292
  * Response model for backup list.
@@ -628,6 +611,60 @@ export type ConnectionResponse = {
628
611
  };
629
612
  };
630
613
 
614
+ /**
615
+ * CopyResponse
616
+ * Response model for copy operations.
617
+ */
618
+ export type CopyResponse = {
619
+ /**
620
+ * Status
621
+ * Operation status
622
+ */
623
+ status: 'completed' | 'failed' | 'partial';
624
+ /**
625
+ * Source Type
626
+ * Type of source that was copied from
627
+ */
628
+ source_type: string;
629
+ /**
630
+ * Execution Time Ms
631
+ * Total execution time in milliseconds
632
+ */
633
+ execution_time_ms: number;
634
+ /**
635
+ * Message
636
+ * Human-readable status message
637
+ */
638
+ message: string;
639
+ /**
640
+ * Rows Imported
641
+ * Number of rows successfully imported
642
+ */
643
+ rows_imported?: number | null;
644
+ /**
645
+ * Rows Skipped
646
+ * Number of rows skipped due to errors (when ignore_errors=true)
647
+ */
648
+ rows_skipped?: number | null;
649
+ /**
650
+ * Warnings
651
+ * List of warnings encountered during import
652
+ */
653
+ warnings?: Array<string> | null;
654
+ /**
655
+ * Error Details
656
+ * Detailed error information if operation failed
657
+ */
658
+ error_details?: {
659
+ [key: string]: unknown;
660
+ } | null;
661
+ /**
662
+ * Bytes Processed
663
+ * Total bytes processed from source
664
+ */
665
+ bytes_processed?: number | null;
666
+ };
667
+
631
668
  /**
632
669
  * CreateAPIKeyRequest
633
670
  * Request model for creating a new API key.
@@ -711,20 +748,41 @@ export type CreateGraphRequest = {
711
748
  };
712
749
 
713
750
  /**
714
- * CreditCheckRequest
715
- * Request to check credit balance.
751
+ * CreateSubgraphRequest
752
+ * Request model for creating a subgraph.
716
753
  */
717
- export type CreditCheckRequest = {
754
+ export type CreateSubgraphRequest = {
718
755
  /**
719
- * Operation Type
720
- * Type of operation to check
756
+ * Name
757
+ * Alphanumeric name for the subgraph (e.g., dev, staging, prod1)
721
758
  */
722
- operation_type: string;
759
+ name: string;
760
+ /**
761
+ * Display Name
762
+ * Human-readable display name for the subgraph
763
+ */
764
+ display_name: string;
765
+ /**
766
+ * Description
767
+ * Optional description of the subgraph's purpose
768
+ */
769
+ description?: string | null;
770
+ /**
771
+ * Schema Extensions
772
+ * Schema extensions to include (inherits from parent by default)
773
+ */
774
+ schema_extensions?: Array<string> | null;
775
+ /**
776
+ * Type of subgraph (currently only 'static' is supported)
777
+ */
778
+ subgraph_type?: SubgraphType;
723
779
  /**
724
- * Base Cost
725
- * Custom base cost (uses default if not provided)
780
+ * Metadata
781
+ * Additional metadata for the subgraph
726
782
  */
727
- base_cost?: number | null;
783
+ metadata?: {
784
+ [key: string]: unknown;
785
+ } | null;
728
786
  };
729
787
 
730
788
  /**
@@ -792,10 +850,6 @@ export type CreditSummaryResponse = {
792
850
  * Graph Tier
793
851
  */
794
852
  graph_tier: string;
795
- /**
796
- * Credit Multiplier
797
- */
798
- credit_multiplier: number;
799
853
  /**
800
854
  * Current Balance
801
855
  */
@@ -924,6 +978,48 @@ export type CypherQueryRequest = {
924
978
  timeout?: number | null;
925
979
  };
926
980
 
981
+ /**
982
+ * DataFrameCopyRequest
983
+ * Request model for DataFrame copy operations (future).
984
+ */
985
+ export type DataFrameCopyRequest = {
986
+ /**
987
+ * Table Name
988
+ * Target Kuzu table name
989
+ */
990
+ table_name: string;
991
+ /**
992
+ * Ignore Errors
993
+ * Skip duplicate/invalid rows (enables upsert-like behavior)
994
+ */
995
+ ignore_errors?: boolean;
996
+ /**
997
+ * Extended Timeout
998
+ * Use extended timeout for large datasets
999
+ */
1000
+ extended_timeout?: boolean;
1001
+ /**
1002
+ * Validate Schema
1003
+ * Validate source schema against target table
1004
+ */
1005
+ validate_schema?: boolean;
1006
+ /**
1007
+ * Source Type
1008
+ * Source type identifier
1009
+ */
1010
+ source_type?: 'dataframe';
1011
+ /**
1012
+ * Data Reference
1013
+ * Reference to uploaded DataFrame data
1014
+ */
1015
+ data_reference: string;
1016
+ /**
1017
+ * Format
1018
+ * DataFrame format
1019
+ */
1020
+ format?: 'pandas' | 'polars' | 'arrow';
1021
+ };
1022
+
927
1023
  /**
928
1024
  * DatabaseHealthResponse
929
1025
  * Response model for database health check.
@@ -1063,6 +1159,60 @@ export type DatabaseInfoResponse = {
1063
1159
  last_backup_date?: string | null;
1064
1160
  };
1065
1161
 
1162
+ /**
1163
+ * DeleteSubgraphRequest
1164
+ * Request model for deleting a subgraph.
1165
+ */
1166
+ export type DeleteSubgraphRequest = {
1167
+ /**
1168
+ * Force
1169
+ * Force deletion even if subgraph contains data
1170
+ */
1171
+ force?: boolean;
1172
+ /**
1173
+ * Backup First
1174
+ * Create a backup before deletion
1175
+ */
1176
+ backup_first?: boolean;
1177
+ /**
1178
+ * Backup Location
1179
+ * S3 location for backup (uses default if not specified)
1180
+ */
1181
+ backup_location?: string | null;
1182
+ };
1183
+
1184
+ /**
1185
+ * DeleteSubgraphResponse
1186
+ * Response model for subgraph deletion.
1187
+ */
1188
+ export type DeleteSubgraphResponse = {
1189
+ /**
1190
+ * Graph Id
1191
+ * Deleted subgraph identifier
1192
+ */
1193
+ graph_id: string;
1194
+ /**
1195
+ * Status
1196
+ * Deletion status
1197
+ */
1198
+ status: string;
1199
+ /**
1200
+ * Backup Location
1201
+ * Location of backup if created
1202
+ */
1203
+ backup_location?: string | null;
1204
+ /**
1205
+ * Deleted At
1206
+ * When deletion occurred
1207
+ */
1208
+ deleted_at: string;
1209
+ /**
1210
+ * Message
1211
+ * Additional information about the deletion
1212
+ */
1213
+ message?: string | null;
1214
+ };
1215
+
1066
1216
  /**
1067
1217
  * DetailedTransactionsResponse
1068
1218
  * Detailed response for transaction queries.
@@ -1479,6 +1629,48 @@ export type LinkTokenRequest = {
1479
1629
  } | null;
1480
1630
  };
1481
1631
 
1632
+ /**
1633
+ * ListSubgraphsResponse
1634
+ * Response model for listing subgraphs.
1635
+ */
1636
+ export type ListSubgraphsResponse = {
1637
+ /**
1638
+ * Parent Graph Id
1639
+ * Parent graph identifier
1640
+ */
1641
+ parent_graph_id: string;
1642
+ /**
1643
+ * Parent Graph Name
1644
+ * Parent graph name
1645
+ */
1646
+ parent_graph_name: string;
1647
+ /**
1648
+ * Parent Graph Tier
1649
+ * Parent graph tier
1650
+ */
1651
+ parent_graph_tier: string;
1652
+ /**
1653
+ * Subgraph Count
1654
+ * Total number of subgraphs
1655
+ */
1656
+ subgraph_count: number;
1657
+ /**
1658
+ * Max Subgraphs
1659
+ * Maximum allowed subgraphs for this tier (None = unlimited)
1660
+ */
1661
+ max_subgraphs?: number | null;
1662
+ /**
1663
+ * Total Size Mb
1664
+ * Combined size of all subgraphs in megabytes
1665
+ */
1666
+ total_size_mb?: number | null;
1667
+ /**
1668
+ * Subgraphs
1669
+ * List of subgraphs
1670
+ */
1671
+ subgraphs: Array<SubgraphSummary>;
1672
+ };
1673
+
1482
1674
  /**
1483
1675
  * LoginRequest
1484
1676
  * Login request model.
@@ -1801,6 +1993,113 @@ export type RepositoryType = 'sec' | 'industry' | 'economic';
1801
1993
  */
1802
1994
  export type ResponseMode = 'auto' | 'sync' | 'async' | 'stream';
1803
1995
 
1996
+ /**
1997
+ * S3CopyRequest
1998
+ * Request model for S3 copy operations.
1999
+ */
2000
+ export type S3CopyRequest = {
2001
+ /**
2002
+ * Table Name
2003
+ * Target Kuzu table name
2004
+ */
2005
+ table_name: string;
2006
+ /**
2007
+ * Ignore Errors
2008
+ * Skip duplicate/invalid rows (enables upsert-like behavior)
2009
+ */
2010
+ ignore_errors?: boolean;
2011
+ /**
2012
+ * Extended Timeout
2013
+ * Use extended timeout for large datasets
2014
+ */
2015
+ extended_timeout?: boolean;
2016
+ /**
2017
+ * Validate Schema
2018
+ * Validate source schema against target table
2019
+ */
2020
+ validate_schema?: boolean;
2021
+ /**
2022
+ * Source Type
2023
+ * Source type identifier
2024
+ */
2025
+ source_type?: 's3';
2026
+ /**
2027
+ * S3 Path
2028
+ * Full S3 path (s3://bucket/key or s3://bucket/prefix*.parquet)
2029
+ */
2030
+ s3_path: string;
2031
+ /**
2032
+ * S3 Access Key Id
2033
+ * AWS access key ID for S3 access
2034
+ */
2035
+ s3_access_key_id: string;
2036
+ /**
2037
+ * S3 Secret Access Key
2038
+ * AWS secret access key for S3 access
2039
+ */
2040
+ s3_secret_access_key: string;
2041
+ /**
2042
+ * S3 Session Token
2043
+ * AWS session token (for temporary credentials)
2044
+ */
2045
+ s3_session_token?: string | null;
2046
+ /**
2047
+ * S3 Region
2048
+ * S3 region
2049
+ */
2050
+ s3_region?: string | null;
2051
+ /**
2052
+ * S3 Endpoint
2053
+ * Custom S3 endpoint (for S3-compatible storage)
2054
+ */
2055
+ s3_endpoint?: string | null;
2056
+ /**
2057
+ * S3 Url Style
2058
+ * S3 URL style (vhost or path)
2059
+ */
2060
+ s3_url_style?: ('vhost' | 'path') | null;
2061
+ /**
2062
+ * File Format
2063
+ * File format of the S3 data
2064
+ */
2065
+ file_format?: 'parquet' | 'csv' | 'json' | 'delta' | 'iceberg';
2066
+ /**
2067
+ * Csv Delimiter
2068
+ * CSV delimiter
2069
+ */
2070
+ csv_delimiter?: string | null;
2071
+ /**
2072
+ * Csv Header
2073
+ * CSV has header row
2074
+ */
2075
+ csv_header?: boolean | null;
2076
+ /**
2077
+ * Csv Quote
2078
+ * CSV quote character
2079
+ */
2080
+ csv_quote?: string | null;
2081
+ /**
2082
+ * Csv Escape
2083
+ * CSV escape character
2084
+ */
2085
+ csv_escape?: string | null;
2086
+ /**
2087
+ * Csv Skip
2088
+ * Number of rows to skip
2089
+ */
2090
+ csv_skip?: number | null;
2091
+ /**
2092
+ * Allow Moved Paths
2093
+ * Allow moved paths for Iceberg tables
2094
+ */
2095
+ allow_moved_paths?: boolean | null;
2096
+ /**
2097
+ * Max File Size Gb
2098
+ * Maximum total file size limit in GB
2099
+ */
2100
+ max_file_size_gb?: number | null;
2101
+ };
2102
+
1804
2103
  /**
1805
2104
  * SECConnectionConfig
1806
2105
  * SEC-specific connection configuration.
@@ -2053,115 +2352,292 @@ export type StorageLimitResponse = {
2053
2352
  };
2054
2353
 
2055
2354
  /**
2056
- * SubscriptionInfo
2057
- * User subscription information.
2355
+ * SubgraphQuotaResponse
2356
+ * Response model for subgraph quota information.
2058
2357
  */
2059
- export type SubscriptionInfo = {
2060
- /**
2061
- * Id
2062
- * Subscription ID
2063
- */
2064
- id: string;
2065
- /**
2066
- * User Id
2067
- * User ID
2068
- */
2069
- user_id: string;
2070
- /**
2071
- * Addon Type
2072
- * Add-on type
2073
- */
2074
- addon_type: string;
2358
+ export type SubgraphQuotaResponse = {
2075
2359
  /**
2076
- * Addon Tier
2077
- * Subscription tier
2360
+ * Parent Graph Id
2361
+ * Parent graph identifier
2078
2362
  */
2079
- addon_tier: string;
2363
+ parent_graph_id: string;
2080
2364
  /**
2081
- * Is Active
2082
- * Whether subscription is active
2365
+ * Tier
2366
+ * Graph tier
2083
2367
  */
2084
- is_active: boolean;
2368
+ tier: string;
2085
2369
  /**
2086
- * Activated At
2087
- * Activation date (ISO format)
2370
+ * Current Count
2371
+ * Current number of subgraphs
2088
2372
  */
2089
- activated_at: string;
2373
+ current_count: number;
2090
2374
  /**
2091
- * Expires At
2092
- * Expiration date (ISO format)
2375
+ * Max Allowed
2376
+ * Maximum allowed subgraphs (None = unlimited)
2093
2377
  */
2094
- expires_at?: string | null;
2378
+ max_allowed?: number | null;
2095
2379
  /**
2096
- * Monthly Price Cents
2097
- * Monthly price in cents
2380
+ * Remaining
2381
+ * Remaining subgraphs that can be created
2098
2382
  */
2099
- monthly_price_cents: number;
2383
+ remaining?: number | null;
2100
2384
  /**
2101
- * Features
2102
- * List of features
2385
+ * Total Size Mb
2386
+ * Total size of all subgraphs
2103
2387
  */
2104
- features: Array<string>;
2388
+ total_size_mb?: number | null;
2105
2389
  /**
2106
- * Metadata
2107
- * Additional metadata
2390
+ * Max Size Mb
2391
+ * Maximum allowed total size
2108
2392
  */
2109
- metadata: {
2110
- [key: string]: unknown;
2111
- };
2393
+ max_size_mb?: number | null;
2112
2394
  };
2113
2395
 
2114
2396
  /**
2115
- * SubscriptionRequest
2116
- * Request to create a new subscription.
2397
+ * SubgraphResponse
2398
+ * Response model for a subgraph.
2117
2399
  */
2118
- export type SubscriptionRequest = {
2400
+ export type SubgraphResponse = {
2119
2401
  /**
2120
- * Type of repository to subscribe to
2402
+ * Graph Id
2403
+ * Full subgraph identifier (e.g., kg123_dev)
2121
2404
  */
2122
- repository_type: RepositoryType;
2405
+ graph_id: string;
2123
2406
  /**
2124
- * Repository plan
2407
+ * Parent Graph Id
2408
+ * Parent graph identifier
2125
2409
  */
2126
- repository_plan?: RepositoryPlan;
2127
- };
2128
-
2129
- /**
2130
- * SubscriptionResponse
2131
- * Response for subscription creation.
2132
- */
2133
- export type SubscriptionResponse = {
2410
+ parent_graph_id: string;
2134
2411
  /**
2135
- * Message
2136
- * Success message
2412
+ * Subgraph Index
2413
+ * Numeric index of the subgraph
2137
2414
  */
2138
- message: string;
2415
+ subgraph_index: number;
2139
2416
  /**
2140
- * Created subscription details
2417
+ * Subgraph Name
2418
+ * Alphanumeric name of the subgraph
2141
2419
  */
2142
- subscription: SubscriptionInfo;
2143
- };
2144
-
2145
- /**
2146
- * SuccessResponse
2147
- * Standard success response for operations without specific return data.
2148
- */
2149
- export type SuccessResponse = {
2420
+ subgraph_name: string;
2150
2421
  /**
2151
- * Success
2152
- * Indicates the operation completed successfully
2422
+ * Display Name
2423
+ * Human-readable display name
2153
2424
  */
2154
- success?: boolean;
2425
+ display_name: string;
2155
2426
  /**
2156
- * Message
2157
- * Human-readable success message
2427
+ * Description
2428
+ * Description of the subgraph's purpose
2158
2429
  */
2159
- message: string;
2430
+ description?: string | null;
2160
2431
  /**
2161
- * Data
2162
- * Optional additional data related to the operation
2432
+ * Type of subgraph
2163
2433
  */
2164
- data?: {
2434
+ subgraph_type: SubgraphType;
2435
+ /**
2436
+ * Status
2437
+ * Current status of the subgraph
2438
+ */
2439
+ status: string;
2440
+ /**
2441
+ * Created At
2442
+ * When the subgraph was created
2443
+ */
2444
+ created_at: string;
2445
+ /**
2446
+ * Updated At
2447
+ * When the subgraph was last updated
2448
+ */
2449
+ updated_at: string;
2450
+ /**
2451
+ * Size Mb
2452
+ * Size of the subgraph database in megabytes
2453
+ */
2454
+ size_mb?: number | null;
2455
+ /**
2456
+ * Node Count
2457
+ * Number of nodes in the subgraph
2458
+ */
2459
+ node_count?: number | null;
2460
+ /**
2461
+ * Edge Count
2462
+ * Number of edges in the subgraph
2463
+ */
2464
+ edge_count?: number | null;
2465
+ /**
2466
+ * Last Accessed
2467
+ * When the subgraph was last accessed
2468
+ */
2469
+ last_accessed?: string | null;
2470
+ /**
2471
+ * Metadata
2472
+ * Additional metadata for the subgraph
2473
+ */
2474
+ metadata?: {
2475
+ [key: string]: unknown;
2476
+ } | null;
2477
+ };
2478
+
2479
+ /**
2480
+ * SubgraphSummary
2481
+ * Summary model for listing subgraphs.
2482
+ */
2483
+ export type SubgraphSummary = {
2484
+ /**
2485
+ * Graph Id
2486
+ * Full subgraph identifier
2487
+ */
2488
+ graph_id: string;
2489
+ /**
2490
+ * Subgraph Name
2491
+ * Alphanumeric name
2492
+ */
2493
+ subgraph_name: string;
2494
+ /**
2495
+ * Display Name
2496
+ * Human-readable name
2497
+ */
2498
+ display_name: string;
2499
+ /**
2500
+ * Type of subgraph
2501
+ */
2502
+ subgraph_type: SubgraphType;
2503
+ /**
2504
+ * Status
2505
+ * Current status
2506
+ */
2507
+ status: string;
2508
+ /**
2509
+ * Size Mb
2510
+ * Size in megabytes
2511
+ */
2512
+ size_mb?: number | null;
2513
+ /**
2514
+ * Created At
2515
+ * Creation timestamp
2516
+ */
2517
+ created_at: string;
2518
+ /**
2519
+ * Last Accessed
2520
+ * Last access timestamp
2521
+ */
2522
+ last_accessed?: string | null;
2523
+ };
2524
+
2525
+ /**
2526
+ * SubgraphType
2527
+ * Types of subgraphs.
2528
+ */
2529
+ export type SubgraphType = 'static' | 'temporal' | 'versioned' | 'memory';
2530
+
2531
+ /**
2532
+ * SubscriptionInfo
2533
+ * User subscription information.
2534
+ */
2535
+ export type SubscriptionInfo = {
2536
+ /**
2537
+ * Id
2538
+ * Subscription ID
2539
+ */
2540
+ id: string;
2541
+ /**
2542
+ * User Id
2543
+ * User ID
2544
+ */
2545
+ user_id: string;
2546
+ /**
2547
+ * Addon Type
2548
+ * Add-on type
2549
+ */
2550
+ addon_type: string;
2551
+ /**
2552
+ * Addon Tier
2553
+ * Subscription tier
2554
+ */
2555
+ addon_tier: string;
2556
+ /**
2557
+ * Is Active
2558
+ * Whether subscription is active
2559
+ */
2560
+ is_active: boolean;
2561
+ /**
2562
+ * Activated At
2563
+ * Activation date (ISO format)
2564
+ */
2565
+ activated_at: string;
2566
+ /**
2567
+ * Expires At
2568
+ * Expiration date (ISO format)
2569
+ */
2570
+ expires_at?: string | null;
2571
+ /**
2572
+ * Monthly Price Cents
2573
+ * Monthly price in cents
2574
+ */
2575
+ monthly_price_cents: number;
2576
+ /**
2577
+ * Features
2578
+ * List of features
2579
+ */
2580
+ features: Array<string>;
2581
+ /**
2582
+ * Metadata
2583
+ * Additional metadata
2584
+ */
2585
+ metadata: {
2586
+ [key: string]: unknown;
2587
+ };
2588
+ };
2589
+
2590
+ /**
2591
+ * SubscriptionRequest
2592
+ * Request to create a new subscription.
2593
+ */
2594
+ export type SubscriptionRequest = {
2595
+ /**
2596
+ * Type of repository to subscribe to
2597
+ */
2598
+ repository_type: RepositoryType;
2599
+ /**
2600
+ * Repository plan
2601
+ */
2602
+ repository_plan?: RepositoryPlan;
2603
+ };
2604
+
2605
+ /**
2606
+ * SubscriptionResponse
2607
+ * Response for subscription creation.
2608
+ */
2609
+ export type SubscriptionResponse = {
2610
+ /**
2611
+ * Message
2612
+ * Success message
2613
+ */
2614
+ message: string;
2615
+ /**
2616
+ * Created subscription details
2617
+ */
2618
+ subscription: SubscriptionInfo;
2619
+ };
2620
+
2621
+ /**
2622
+ * SuccessResponse
2623
+ * Standard success response for operations without specific return data.
2624
+ */
2625
+ export type SuccessResponse = {
2626
+ /**
2627
+ * Success
2628
+ * Indicates the operation completed successfully
2629
+ */
2630
+ success?: boolean;
2631
+ /**
2632
+ * Message
2633
+ * Human-readable success message
2634
+ */
2635
+ message: string;
2636
+ /**
2637
+ * Data
2638
+ * Optional additional data related to the operation
2639
+ */
2640
+ data?: {
2165
2641
  [key: string]: unknown;
2166
2642
  } | null;
2167
2643
  };
@@ -2227,6 +2703,55 @@ export type TransactionSummaryResponse = {
2227
2703
  last_transaction?: string | null;
2228
2704
  };
2229
2705
 
2706
+ /**
2707
+ * URLCopyRequest
2708
+ * Request model for URL copy operations (future).
2709
+ */
2710
+ export type UrlCopyRequest = {
2711
+ /**
2712
+ * Table Name
2713
+ * Target Kuzu table name
2714
+ */
2715
+ table_name: string;
2716
+ /**
2717
+ * Ignore Errors
2718
+ * Skip duplicate/invalid rows (enables upsert-like behavior)
2719
+ */
2720
+ ignore_errors?: boolean;
2721
+ /**
2722
+ * Extended Timeout
2723
+ * Use extended timeout for large datasets
2724
+ */
2725
+ extended_timeout?: boolean;
2726
+ /**
2727
+ * Validate Schema
2728
+ * Validate source schema against target table
2729
+ */
2730
+ validate_schema?: boolean;
2731
+ /**
2732
+ * Source Type
2733
+ * Source type identifier
2734
+ */
2735
+ source_type?: 'url';
2736
+ /**
2737
+ * Url
2738
+ * HTTP(S) URL to the data file
2739
+ */
2740
+ url: string;
2741
+ /**
2742
+ * File Format
2743
+ * File format of the URL data
2744
+ */
2745
+ file_format: 'parquet' | 'csv' | 'json';
2746
+ /**
2747
+ * Headers
2748
+ * Optional HTTP headers for authentication
2749
+ */
2750
+ headers?: {
2751
+ [key: string]: string;
2752
+ } | null;
2753
+ };
2754
+
2230
2755
  /**
2231
2756
  * UpdateAPIKeyRequest
2232
2757
  * Request model for updating an API key.
@@ -2283,21 +2808,6 @@ export type UpdateUserRequest = {
2283
2808
  email?: string | null;
2284
2809
  };
2285
2810
 
2286
- /**
2287
- * UpgradeSubscriptionRequest
2288
- * Request to upgrade a graph database subscription.
2289
- */
2290
- export type UpgradeSubscriptionRequest = {
2291
- /**
2292
- * Plan Name
2293
- */
2294
- plan_name: string;
2295
- /**
2296
- * Payment Method Id
2297
- */
2298
- payment_method_id?: string | null;
2299
- };
2300
-
2301
2811
  /**
2302
2812
  * UserAnalyticsResponse
2303
2813
  * Response model for comprehensive user analytics.
@@ -2861,20 +3371,6 @@ export type CompleteSsoAuthResponses = {
2861
3371
 
2862
3372
  export type CompleteSsoAuthResponse = CompleteSsoAuthResponses[keyof CompleteSsoAuthResponses];
2863
3373
 
2864
- export type GetCaptchaConfigData = {
2865
- body?: never;
2866
- path?: never;
2867
- query?: never;
2868
- url: '/v1/auth/captcha/config';
2869
- };
2870
-
2871
- export type GetCaptchaConfigResponses = {
2872
- /**
2873
- * CAPTCHA configuration
2874
- */
2875
- 200: unknown;
2876
- };
2877
-
2878
3374
  export type GetPasswordPolicyData = {
2879
3375
  body?: never;
2880
3376
  path?: never;
@@ -2916,6 +3412,20 @@ export type CheckPasswordStrengthResponses = {
2916
3412
 
2917
3413
  export type CheckPasswordStrengthResponse = CheckPasswordStrengthResponses[keyof CheckPasswordStrengthResponses];
2918
3414
 
3415
+ export type GetCaptchaConfigData = {
3416
+ body?: never;
3417
+ path?: never;
3418
+ query?: never;
3419
+ url: '/v1/auth/captcha/config';
3420
+ };
3421
+
3422
+ export type GetCaptchaConfigResponses = {
3423
+ /**
3424
+ * CAPTCHA configuration
3425
+ */
3426
+ 200: unknown;
3427
+ };
3428
+
2919
3429
  export type GetServiceStatusData = {
2920
3430
  body?: never;
2921
3431
  path?: never;
@@ -3083,7 +3593,7 @@ export type GetAllCreditSummariesData = {
3083
3593
  };
3084
3594
  path?: never;
3085
3595
  query?: never;
3086
- url: '/v1/user/credits/summary';
3596
+ url: '/v1/user/credits';
3087
3597
  };
3088
3598
 
3089
3599
  export type GetAllCreditSummariesErrors = {
@@ -3362,7 +3872,7 @@ export type GetUserUsageResponses = {
3362
3872
 
3363
3873
  export type GetUserUsageResponse = GetUserUsageResponses[keyof GetUserUsageResponses];
3364
3874
 
3365
- export type GetSharedRepositoryLimitsData = {
3875
+ export type GetAllSharedRepositoryLimitsData = {
3366
3876
  body?: never;
3367
3877
  headers?: {
3368
3878
  /**
@@ -3370,29 +3880,23 @@ export type GetSharedRepositoryLimitsData = {
3370
3880
  */
3371
3881
  authorization?: string | null;
3372
3882
  };
3373
- path: {
3374
- /**
3375
- * Repository
3376
- * Repository name (e.g., 'sec')
3377
- */
3378
- repository: string;
3379
- };
3883
+ path?: never;
3380
3884
  query?: never;
3381
- url: '/v1/user/limits/shared-repositories/{repository}';
3885
+ url: '/v1/user/limits/shared-repositories/summary';
3382
3886
  };
3383
3887
 
3384
- export type GetSharedRepositoryLimitsErrors = {
3888
+ export type GetAllSharedRepositoryLimitsErrors = {
3385
3889
  /**
3386
3890
  * Validation Error
3387
3891
  */
3388
3892
  422: HttpValidationError;
3389
3893
  };
3390
3894
 
3391
- export type GetSharedRepositoryLimitsError = GetSharedRepositoryLimitsErrors[keyof GetSharedRepositoryLimitsErrors];
3895
+ export type GetAllSharedRepositoryLimitsError = GetAllSharedRepositoryLimitsErrors[keyof GetAllSharedRepositoryLimitsErrors];
3392
3896
 
3393
- export type GetSharedRepositoryLimitsResponses = {
3897
+ export type GetAllSharedRepositoryLimitsResponses = {
3394
3898
  /**
3395
- * Response Getsharedrepositorylimits
3899
+ * Response Getallsharedrepositorylimits
3396
3900
  * Successful Response
3397
3901
  */
3398
3902
  200: {
@@ -3400,9 +3904,9 @@ export type GetSharedRepositoryLimitsResponses = {
3400
3904
  };
3401
3905
  };
3402
3906
 
3403
- export type GetSharedRepositoryLimitsResponse = GetSharedRepositoryLimitsResponses[keyof GetSharedRepositoryLimitsResponses];
3907
+ export type GetAllSharedRepositoryLimitsResponse = GetAllSharedRepositoryLimitsResponses[keyof GetAllSharedRepositoryLimitsResponses];
3404
3908
 
3405
- export type GetAllSharedRepositoryLimitsData = {
3909
+ export type GetSharedRepositoryLimitsData = {
3406
3910
  body?: never;
3407
3911
  headers?: {
3408
3912
  /**
@@ -3410,23 +3914,29 @@ export type GetAllSharedRepositoryLimitsData = {
3410
3914
  */
3411
3915
  authorization?: string | null;
3412
3916
  };
3413
- path?: never;
3917
+ path: {
3918
+ /**
3919
+ * Repository
3920
+ * Repository name (e.g., 'sec')
3921
+ */
3922
+ repository: string;
3923
+ };
3414
3924
  query?: never;
3415
- url: '/v1/user/limits/shared-repositories/summary';
3925
+ url: '/v1/user/limits/shared-repositories/{repository}';
3416
3926
  };
3417
3927
 
3418
- export type GetAllSharedRepositoryLimitsErrors = {
3928
+ export type GetSharedRepositoryLimitsErrors = {
3419
3929
  /**
3420
3930
  * Validation Error
3421
3931
  */
3422
3932
  422: HttpValidationError;
3423
3933
  };
3424
3934
 
3425
- export type GetAllSharedRepositoryLimitsError = GetAllSharedRepositoryLimitsErrors[keyof GetAllSharedRepositoryLimitsErrors];
3935
+ export type GetSharedRepositoryLimitsError = GetSharedRepositoryLimitsErrors[keyof GetSharedRepositoryLimitsErrors];
3426
3936
 
3427
- export type GetAllSharedRepositoryLimitsResponses = {
3937
+ export type GetSharedRepositoryLimitsResponses = {
3428
3938
  /**
3429
- * Response Getallsharedrepositorylimits
3939
+ * Response Getsharedrepositorylimits
3430
3940
  * Successful Response
3431
3941
  */
3432
3942
  200: {
@@ -3434,7 +3944,7 @@ export type GetAllSharedRepositoryLimitsResponses = {
3434
3944
  };
3435
3945
  };
3436
3946
 
3437
- export type GetAllSharedRepositoryLimitsResponse = GetAllSharedRepositoryLimitsResponses[keyof GetAllSharedRepositoryLimitsResponses];
3947
+ export type GetSharedRepositoryLimitsResponse = GetSharedRepositoryLimitsResponses[keyof GetSharedRepositoryLimitsResponses];
3438
3948
 
3439
3949
  export type GetUserUsageOverviewData = {
3440
3950
  body?: never;
@@ -3778,51 +4288,6 @@ export type GetRepositoryCreditsResponses = {
3778
4288
 
3779
4289
  export type GetRepositoryCreditsResponse = GetRepositoryCreditsResponses[keyof GetRepositoryCreditsResponses];
3780
4290
 
3781
- export type GetConnectionOptionsData = {
3782
- body?: never;
3783
- headers?: {
3784
- /**
3785
- * Authorization
3786
- */
3787
- authorization?: string | null;
3788
- };
3789
- path: {
3790
- /**
3791
- * Graph Id
3792
- * Graph database identifier
3793
- */
3794
- graph_id: string;
3795
- };
3796
- query?: never;
3797
- url: '/v1/{graph_id}/connections/options';
3798
- };
3799
-
3800
- export type GetConnectionOptionsErrors = {
3801
- /**
3802
- * Access denied to graph
3803
- */
3804
- 403: ErrorResponse;
3805
- /**
3806
- * Validation Error
3807
- */
3808
- 422: HttpValidationError;
3809
- /**
3810
- * Failed to retrieve options
3811
- */
3812
- 500: ErrorResponse;
3813
- };
3814
-
3815
- export type GetConnectionOptionsError = GetConnectionOptionsErrors[keyof GetConnectionOptionsErrors];
3816
-
3817
- export type GetConnectionOptionsResponses = {
3818
- /**
3819
- * Connection options retrieved successfully
3820
- */
3821
- 200: ConnectionOptionsResponse;
3822
- };
3823
-
3824
- export type GetConnectionOptionsResponse = GetConnectionOptionsResponses[keyof GetConnectionOptionsResponses];
3825
-
3826
4291
  export type ListConnectionsData = {
3827
4292
  body?: never;
3828
4293
  headers?: {
@@ -4041,6 +4506,51 @@ export type GetConnectionResponses = {
4041
4506
 
4042
4507
  export type GetConnectionResponse = GetConnectionResponses[keyof GetConnectionResponses];
4043
4508
 
4509
+ export type GetConnectionOptionsData = {
4510
+ body?: never;
4511
+ headers?: {
4512
+ /**
4513
+ * Authorization
4514
+ */
4515
+ authorization?: string | null;
4516
+ };
4517
+ path: {
4518
+ /**
4519
+ * Graph Id
4520
+ * Graph database identifier
4521
+ */
4522
+ graph_id: string;
4523
+ };
4524
+ query?: never;
4525
+ url: '/v1/{graph_id}/connections/options';
4526
+ };
4527
+
4528
+ export type GetConnectionOptionsErrors = {
4529
+ /**
4530
+ * Access denied to graph
4531
+ */
4532
+ 403: ErrorResponse;
4533
+ /**
4534
+ * Validation Error
4535
+ */
4536
+ 422: HttpValidationError;
4537
+ /**
4538
+ * Failed to retrieve options
4539
+ */
4540
+ 500: ErrorResponse;
4541
+ };
4542
+
4543
+ export type GetConnectionOptionsError = GetConnectionOptionsErrors[keyof GetConnectionOptionsErrors];
4544
+
4545
+ export type GetConnectionOptionsResponses = {
4546
+ /**
4547
+ * Connection options retrieved successfully
4548
+ */
4549
+ 200: ConnectionOptionsResponse;
4550
+ };
4551
+
4552
+ export type GetConnectionOptionsResponse = GetConnectionOptionsResponses[keyof GetConnectionOptionsResponses];
4553
+
4044
4554
  export type SyncConnectionData = {
4045
4555
  body?: SyncConnectionRequest;
4046
4556
  headers?: {
@@ -4460,6 +4970,54 @@ export type CallMcpToolResponses = {
4460
4970
  202: unknown;
4461
4971
  };
4462
4972
 
4973
+ export type ListBackupsData = {
4974
+ body?: never;
4975
+ headers?: {
4976
+ /**
4977
+ * Authorization
4978
+ */
4979
+ authorization?: string | null;
4980
+ };
4981
+ path: {
4982
+ /**
4983
+ * Graph Id
4984
+ * Graph database identifier
4985
+ */
4986
+ graph_id: string;
4987
+ };
4988
+ query?: {
4989
+ /**
4990
+ * Limit
4991
+ * Maximum number of backups to return
4992
+ */
4993
+ limit?: number;
4994
+ /**
4995
+ * Offset
4996
+ * Number of backups to skip
4997
+ */
4998
+ offset?: number;
4999
+ };
5000
+ url: '/v1/{graph_id}/backups';
5001
+ };
5002
+
5003
+ export type ListBackupsErrors = {
5004
+ /**
5005
+ * Validation Error
5006
+ */
5007
+ 422: HttpValidationError;
5008
+ };
5009
+
5010
+ export type ListBackupsError = ListBackupsErrors[keyof ListBackupsErrors];
5011
+
5012
+ export type ListBackupsResponses = {
5013
+ /**
5014
+ * Successful Response
5015
+ */
5016
+ 200: BackupListResponse;
5017
+ };
5018
+
5019
+ export type ListBackupsResponse = ListBackupsResponses[keyof ListBackupsResponses];
5020
+
4463
5021
  export type CreateBackupData = {
4464
5022
  body: BackupCreateRequest;
4465
5023
  headers?: {
@@ -4476,7 +5034,7 @@ export type CreateBackupData = {
4476
5034
  graph_id: string;
4477
5035
  };
4478
5036
  query?: never;
4479
- url: '/v1/{graph_id}/backup/create';
5037
+ url: '/v1/{graph_id}/backups';
4480
5038
  };
4481
5039
 
4482
5040
  export type CreateBackupErrors = {
@@ -4511,50 +5069,56 @@ export type CreateBackupResponses = {
4511
5069
  202: unknown;
4512
5070
  };
4513
5071
 
4514
- export type ListBackupsData = {
5072
+ export type ExportBackupData = {
4515
5073
  body?: never;
4516
- path: {
5074
+ headers?: {
4517
5075
  /**
4518
- * Graph Id
4519
- * Graph database identifier
5076
+ * Authorization
4520
5077
  */
4521
- graph_id: string;
5078
+ authorization?: string | null;
4522
5079
  };
4523
- query?: {
5080
+ path: {
4524
5081
  /**
4525
- * Limit
4526
- * Maximum number of backups to return
5082
+ * Backup Id
5083
+ * Backup identifier
4527
5084
  */
4528
- limit?: number;
5085
+ backup_id: string;
4529
5086
  /**
4530
- * Offset
4531
- * Number of backups to skip
5087
+ * Graph Id
5088
+ * Graph database identifier
4532
5089
  */
4533
- offset?: number;
5090
+ graph_id: string;
4534
5091
  };
4535
- url: '/v1/{graph_id}/backup/list';
5092
+ query?: never;
5093
+ url: '/v1/{graph_id}/backups/{backup_id}/export';
4536
5094
  };
4537
5095
 
4538
- export type ListBackupsErrors = {
5096
+ export type ExportBackupErrors = {
5097
+ /**
5098
+ * Access denied or backup is encrypted
5099
+ */
5100
+ 403: unknown;
5101
+ /**
5102
+ * Backup not found
5103
+ */
5104
+ 404: unknown;
4539
5105
  /**
4540
5106
  * Validation Error
4541
5107
  */
4542
5108
  422: HttpValidationError;
4543
5109
  };
4544
5110
 
4545
- export type ListBackupsError = ListBackupsErrors[keyof ListBackupsErrors];
5111
+ export type ExportBackupError = ExportBackupErrors[keyof ExportBackupErrors];
4546
5112
 
4547
- export type ListBackupsResponses = {
5113
+ export type ExportBackupResponses = {
4548
5114
  /**
4549
- * Successful Response
5115
+ * Backup exported successfully
4550
5116
  */
4551
- 200: BackupListResponse;
5117
+ 200: unknown;
4552
5118
  };
4553
5119
 
4554
- export type ListBackupsResponse = ListBackupsResponses[keyof ListBackupsResponses];
4555
-
4556
- export type ExportBackupData = {
4557
- body: BackupExportRequest;
5120
+ export type GetBackupDownloadUrlData = {
5121
+ body?: never;
4558
5122
  headers?: {
4559
5123
  /**
4560
5124
  * Authorization
@@ -4562,17 +5126,28 @@ export type ExportBackupData = {
4562
5126
  authorization?: string | null;
4563
5127
  };
4564
5128
  path: {
5129
+ /**
5130
+ * Backup Id
5131
+ * Backup identifier
5132
+ */
5133
+ backup_id: string;
4565
5134
  /**
4566
5135
  * Graph Id
4567
5136
  * Graph database identifier
4568
5137
  */
4569
5138
  graph_id: string;
4570
5139
  };
4571
- query?: never;
4572
- url: '/v1/{graph_id}/backup/export';
5140
+ query?: {
5141
+ /**
5142
+ * Expires In
5143
+ * URL expiration time in seconds
5144
+ */
5145
+ expires_in?: number;
5146
+ };
5147
+ url: '/v1/{graph_id}/backups/{backup_id}/download';
4573
5148
  };
4574
5149
 
4575
- export type ExportBackupErrors = {
5150
+ export type GetBackupDownloadUrlErrors = {
4576
5151
  /**
4577
5152
  * Access denied or backup is encrypted
4578
5153
  */
@@ -4585,17 +5160,26 @@ export type ExportBackupErrors = {
4585
5160
  * Validation Error
4586
5161
  */
4587
5162
  422: HttpValidationError;
5163
+ /**
5164
+ * Failed to generate download URL
5165
+ */
5166
+ 500: unknown;
4588
5167
  };
4589
5168
 
4590
- export type ExportBackupError = ExportBackupErrors[keyof ExportBackupErrors];
5169
+ export type GetBackupDownloadUrlError = GetBackupDownloadUrlErrors[keyof GetBackupDownloadUrlErrors];
4591
5170
 
4592
- export type ExportBackupResponses = {
5171
+ export type GetBackupDownloadUrlResponses = {
4593
5172
  /**
4594
- * Backup exported successfully
5173
+ * Response Getbackupdownloadurl
5174
+ * Download URL generated successfully
4595
5175
  */
4596
- 200: unknown;
5176
+ 200: {
5177
+ [key: string]: unknown;
5178
+ };
4597
5179
  };
4598
5180
 
5181
+ export type GetBackupDownloadUrlResponse = GetBackupDownloadUrlResponses[keyof GetBackupDownloadUrlResponses];
5182
+
4599
5183
  export type RestoreBackupData = {
4600
5184
  body: BackupRestoreRequest;
4601
5185
  headers?: {
@@ -4612,7 +5196,7 @@ export type RestoreBackupData = {
4612
5196
  graph_id: string;
4613
5197
  };
4614
5198
  query?: never;
4615
- url: '/v1/{graph_id}/backup/restore';
5199
+ url: '/v1/{graph_id}/backups/restore';
4616
5200
  };
4617
5201
 
4618
5202
  export type RestoreBackupErrors = {
@@ -4649,6 +5233,12 @@ export type RestoreBackupResponses = {
4649
5233
 
4650
5234
  export type GetBackupStatsData = {
4651
5235
  body?: never;
5236
+ headers?: {
5237
+ /**
5238
+ * Authorization
5239
+ */
5240
+ authorization?: string | null;
5241
+ };
4652
5242
  path: {
4653
5243
  /**
4654
5244
  * Graph Id
@@ -4657,7 +5247,7 @@ export type GetBackupStatsData = {
4657
5247
  graph_id: string;
4658
5248
  };
4659
5249
  query?: never;
4660
- url: '/v1/{graph_id}/backup/stats';
5250
+ url: '/v1/{graph_id}/backups/stats';
4661
5251
  };
4662
5252
 
4663
5253
  export type GetBackupStatsErrors = {
@@ -4678,7 +5268,7 @@ export type GetBackupStatsResponses = {
4678
5268
 
4679
5269
  export type GetBackupStatsResponse = GetBackupStatsResponses[keyof GetBackupStatsResponses];
4680
5270
 
4681
- export type KuzuBackupHealthData = {
5271
+ export type GetGraphMetricsData = {
4682
5272
  body?: never;
4683
5273
  headers?: {
4684
5274
  /**
@@ -4689,120 +5279,17 @@ export type KuzuBackupHealthData = {
4689
5279
  path: {
4690
5280
  /**
4691
5281
  * Graph Id
4692
- * Graph database identifier
5282
+ * The graph ID to get metrics for
4693
5283
  */
4694
5284
  graph_id: string;
4695
5285
  };
4696
5286
  query?: never;
4697
- url: '/v1/{graph_id}/backup/health';
5287
+ url: '/v1/{graph_id}/analytics';
4698
5288
  };
4699
5289
 
4700
- export type KuzuBackupHealthErrors = {
5290
+ export type GetGraphMetricsErrors = {
4701
5291
  /**
4702
- * Validation Error
4703
- */
4704
- 422: HttpValidationError;
4705
- };
4706
-
4707
- export type KuzuBackupHealthError = KuzuBackupHealthErrors[keyof KuzuBackupHealthErrors];
4708
-
4709
- export type KuzuBackupHealthResponses = {
4710
- /**
4711
- * Response Kuzubackuphealth
4712
- * Successful Response
4713
- */
4714
- 200: {
4715
- [key: string]: unknown;
4716
- };
4717
- };
4718
-
4719
- export type KuzuBackupHealthResponse = KuzuBackupHealthResponses[keyof KuzuBackupHealthResponses];
4720
-
4721
- export type GetBackupDownloadUrlData = {
4722
- body?: never;
4723
- headers?: {
4724
- /**
4725
- * Authorization
4726
- */
4727
- authorization?: string | null;
4728
- };
4729
- path: {
4730
- /**
4731
- * Backup Id
4732
- * Backup identifier
4733
- */
4734
- backup_id: string;
4735
- /**
4736
- * Graph Id
4737
- * Graph database identifier
4738
- */
4739
- graph_id: string;
4740
- };
4741
- query?: {
4742
- /**
4743
- * Expires In
4744
- * URL expiration time in seconds
4745
- */
4746
- expires_in?: number;
4747
- };
4748
- url: '/v1/{graph_id}/backup/{backup_id}/download';
4749
- };
4750
-
4751
- export type GetBackupDownloadUrlErrors = {
4752
- /**
4753
- * Access denied or backup is encrypted
4754
- */
4755
- 403: unknown;
4756
- /**
4757
- * Backup not found
4758
- */
4759
- 404: unknown;
4760
- /**
4761
- * Validation Error
4762
- */
4763
- 422: HttpValidationError;
4764
- /**
4765
- * Failed to generate download URL
4766
- */
4767
- 500: unknown;
4768
- };
4769
-
4770
- export type GetBackupDownloadUrlError = GetBackupDownloadUrlErrors[keyof GetBackupDownloadUrlErrors];
4771
-
4772
- export type GetBackupDownloadUrlResponses = {
4773
- /**
4774
- * Response Getbackupdownloadurl
4775
- * Download URL generated successfully
4776
- */
4777
- 200: {
4778
- [key: string]: unknown;
4779
- };
4780
- };
4781
-
4782
- export type GetBackupDownloadUrlResponse = GetBackupDownloadUrlResponses[keyof GetBackupDownloadUrlResponses];
4783
-
4784
- export type GetGraphMetricsData = {
4785
- body?: never;
4786
- headers?: {
4787
- /**
4788
- * Authorization
4789
- */
4790
- authorization?: string | null;
4791
- };
4792
- path: {
4793
- /**
4794
- * Graph Id
4795
- * The graph ID to get metrics for
4796
- */
4797
- graph_id: string;
4798
- };
4799
- query?: never;
4800
- url: '/v1/{graph_id}/analytics';
4801
- };
4802
-
4803
- export type GetGraphMetricsErrors = {
4804
- /**
4805
- * Access denied to graph
5292
+ * Access denied to graph
4806
5293
  */
4807
5294
  403: ErrorResponse;
4808
5295
  /**
@@ -5200,7 +5687,7 @@ export type GetCurrentGraphBillResponses = {
5200
5687
 
5201
5688
  export type GetCurrentGraphBillResponse = GetCurrentGraphBillResponses[keyof GetCurrentGraphBillResponses];
5202
5689
 
5203
- export type GetGraphMonthlyBillData = {
5690
+ export type GetGraphUsageDetailsData = {
5204
5691
  body?: never;
5205
5692
  headers?: {
5206
5693
  /**
@@ -5210,26 +5697,27 @@ export type GetGraphMonthlyBillData = {
5210
5697
  };
5211
5698
  path: {
5212
5699
  /**
5213
- * Year
5214
- * Year (2024-2030)
5700
+ * Graph Id
5701
+ * Graph database identifier
5215
5702
  */
5216
- year: number;
5703
+ graph_id: string;
5704
+ };
5705
+ query?: {
5217
5706
  /**
5218
- * Month
5219
- * Month (1-12)
5707
+ * Year
5708
+ * Year (defaults to current)
5220
5709
  */
5221
- month: number;
5710
+ year?: number | null;
5222
5711
  /**
5223
- * Graph Id
5224
- * Graph database identifier
5712
+ * Month
5713
+ * Month (defaults to current)
5225
5714
  */
5226
- graph_id: string;
5715
+ month?: number | null;
5227
5716
  };
5228
- query?: never;
5229
- url: '/v1/{graph_id}/billing/history/{year}/{month}';
5717
+ url: '/v1/{graph_id}/billing/usage';
5230
5718
  };
5231
5719
 
5232
- export type GetGraphMonthlyBillErrors = {
5720
+ export type GetGraphUsageDetailsErrors = {
5233
5721
  /**
5234
5722
  * Invalid year or month
5235
5723
  */
@@ -5239,7 +5727,7 @@ export type GetGraphMonthlyBillErrors = {
5239
5727
  */
5240
5728
  403: ErrorResponse;
5241
5729
  /**
5242
- * Graph not found or no data for period
5730
+ * Graph not found
5243
5731
  */
5244
5732
  404: ErrorResponse;
5245
5733
  /**
@@ -5247,24 +5735,24 @@ export type GetGraphMonthlyBillErrors = {
5247
5735
  */
5248
5736
  422: HttpValidationError;
5249
5737
  /**
5250
- * Failed to calculate bill
5738
+ * Failed to retrieve usage
5251
5739
  */
5252
5740
  500: ErrorResponse;
5253
5741
  };
5254
5742
 
5255
- export type GetGraphMonthlyBillError = GetGraphMonthlyBillErrors[keyof GetGraphMonthlyBillErrors];
5743
+ export type GetGraphUsageDetailsError = GetGraphUsageDetailsErrors[keyof GetGraphUsageDetailsErrors];
5256
5744
 
5257
- export type GetGraphMonthlyBillResponses = {
5745
+ export type GetGraphUsageDetailsResponses = {
5258
5746
  /**
5259
- * Response Getgraphmonthlybill
5260
- * Monthly bill retrieved successfully
5747
+ * Response Getgraphusagedetails
5748
+ * Usage details retrieved successfully
5261
5749
  */
5262
5750
  200: {
5263
5751
  [key: string]: unknown;
5264
5752
  };
5265
5753
  };
5266
5754
 
5267
- export type GetGraphMonthlyBillResponse = GetGraphMonthlyBillResponses[keyof GetGraphMonthlyBillResponses];
5755
+ export type GetGraphUsageDetailsResponse = GetGraphUsageDetailsResponses[keyof GetGraphUsageDetailsResponses];
5268
5756
 
5269
5757
  export type GetGraphBillingHistoryData = {
5270
5758
  body?: never;
@@ -5324,7 +5812,7 @@ export type GetGraphBillingHistoryResponses = {
5324
5812
 
5325
5813
  export type GetGraphBillingHistoryResponse = GetGraphBillingHistoryResponses[keyof GetGraphBillingHistoryResponses];
5326
5814
 
5327
- export type GetGraphUsageDetailsData = {
5815
+ export type GetGraphMonthlyBillData = {
5328
5816
  body?: never;
5329
5817
  headers?: {
5330
5818
  /**
@@ -5333,28 +5821,27 @@ export type GetGraphUsageDetailsData = {
5333
5821
  authorization?: string | null;
5334
5822
  };
5335
5823
  path: {
5336
- /**
5337
- * Graph Id
5338
- * Graph database identifier
5339
- */
5340
- graph_id: string;
5341
- };
5342
- query?: {
5343
5824
  /**
5344
5825
  * Year
5345
- * Year (defaults to current)
5826
+ * Year (2024-2030)
5346
5827
  */
5347
- year?: number | null;
5828
+ year: number;
5348
5829
  /**
5349
5830
  * Month
5350
- * Month (defaults to current)
5831
+ * Month (1-12)
5351
5832
  */
5352
- month?: number | null;
5833
+ month: number;
5834
+ /**
5835
+ * Graph Id
5836
+ * Graph database identifier
5837
+ */
5838
+ graph_id: string;
5353
5839
  };
5354
- url: '/v1/{graph_id}/billing/usage';
5840
+ query?: never;
5841
+ url: '/v1/{graph_id}/billing/history/{year}/{month}';
5355
5842
  };
5356
5843
 
5357
- export type GetGraphUsageDetailsErrors = {
5844
+ export type GetGraphMonthlyBillErrors = {
5358
5845
  /**
5359
5846
  * Invalid year or month
5360
5847
  */
@@ -5364,7 +5851,7 @@ export type GetGraphUsageDetailsErrors = {
5364
5851
  */
5365
5852
  403: ErrorResponse;
5366
5853
  /**
5367
- * Graph not found
5854
+ * Graph not found or no data for period
5368
5855
  */
5369
5856
  404: ErrorResponse;
5370
5857
  /**
@@ -5372,26 +5859,26 @@ export type GetGraphUsageDetailsErrors = {
5372
5859
  */
5373
5860
  422: HttpValidationError;
5374
5861
  /**
5375
- * Failed to retrieve usage
5862
+ * Failed to calculate bill
5376
5863
  */
5377
5864
  500: ErrorResponse;
5378
5865
  };
5379
5866
 
5380
- export type GetGraphUsageDetailsError = GetGraphUsageDetailsErrors[keyof GetGraphUsageDetailsErrors];
5867
+ export type GetGraphMonthlyBillError = GetGraphMonthlyBillErrors[keyof GetGraphMonthlyBillErrors];
5381
5868
 
5382
- export type GetGraphUsageDetailsResponses = {
5869
+ export type GetGraphMonthlyBillResponses = {
5383
5870
  /**
5384
- * Response Getgraphusagedetails
5385
- * Usage details retrieved successfully
5871
+ * Response Getgraphmonthlybill
5872
+ * Monthly bill retrieved successfully
5386
5873
  */
5387
5874
  200: {
5388
5875
  [key: string]: unknown;
5389
5876
  };
5390
5877
  };
5391
5878
 
5392
- export type GetGraphUsageDetailsResponse = GetGraphUsageDetailsResponses[keyof GetGraphUsageDetailsResponses];
5879
+ export type GetGraphMonthlyBillResponse = GetGraphMonthlyBillResponses[keyof GetGraphMonthlyBillResponses];
5393
5880
 
5394
- export type GetGraphPricingInfoV1GraphIdBillingPricingGetData = {
5881
+ export type GetCreditSummaryData = {
5395
5882
  body?: never;
5396
5883
  headers?: {
5397
5884
  /**
@@ -5402,32 +5889,46 @@ export type GetGraphPricingInfoV1GraphIdBillingPricingGetData = {
5402
5889
  path: {
5403
5890
  /**
5404
5891
  * Graph Id
5405
- * Graph database ID
5892
+ * Graph database identifier
5406
5893
  */
5407
5894
  graph_id: string;
5408
5895
  };
5409
5896
  query?: never;
5410
- url: '/v1/{graph_id}/billing/pricing';
5897
+ url: '/v1/{graph_id}/credits/summary';
5411
5898
  };
5412
5899
 
5413
- export type GetGraphPricingInfoV1GraphIdBillingPricingGetErrors = {
5900
+ export type GetCreditSummaryErrors = {
5901
+ /**
5902
+ * Access denied to graph
5903
+ */
5904
+ 403: ErrorResponse;
5905
+ /**
5906
+ * Credit pool not found for graph
5907
+ */
5908
+ 404: ErrorResponse;
5414
5909
  /**
5415
5910
  * Validation Error
5416
5911
  */
5417
5912
  422: HttpValidationError;
5913
+ /**
5914
+ * Failed to retrieve credit summary
5915
+ */
5916
+ 500: ErrorResponse;
5418
5917
  };
5419
5918
 
5420
- export type GetGraphPricingInfoV1GraphIdBillingPricingGetError = GetGraphPricingInfoV1GraphIdBillingPricingGetErrors[keyof GetGraphPricingInfoV1GraphIdBillingPricingGetErrors];
5919
+ export type GetCreditSummaryError = GetCreditSummaryErrors[keyof GetCreditSummaryErrors];
5421
5920
 
5422
- export type GetGraphPricingInfoV1GraphIdBillingPricingGetResponses = {
5921
+ export type GetCreditSummaryResponses = {
5423
5922
  /**
5424
- * Successful Response
5923
+ * Credit summary retrieved successfully
5425
5924
  */
5426
- 200: unknown;
5925
+ 200: CreditSummaryResponse;
5427
5926
  };
5428
5927
 
5429
- export type UpgradeGraphSubscriptionV1GraphIdBillingSubscriptionUpgradePostData = {
5430
- body: UpgradeSubscriptionRequest;
5928
+ export type GetCreditSummaryResponse = GetCreditSummaryResponses[keyof GetCreditSummaryResponses];
5929
+
5930
+ export type ListCreditTransactionsData = {
5931
+ body?: never;
5431
5932
  headers?: {
5432
5933
  /**
5433
5934
  * Authorization
@@ -5437,31 +5938,76 @@ export type UpgradeGraphSubscriptionV1GraphIdBillingSubscriptionUpgradePostData
5437
5938
  path: {
5438
5939
  /**
5439
5940
  * Graph Id
5440
- * Graph database ID
5941
+ * Graph database identifier
5441
5942
  */
5442
5943
  graph_id: string;
5443
5944
  };
5444
- query?: never;
5445
- url: '/v1/{graph_id}/billing/subscription/upgrade';
5945
+ query?: {
5946
+ /**
5947
+ * Transaction Type
5948
+ * Filter by transaction type (allocation, consumption, bonus, refund)
5949
+ */
5950
+ transaction_type?: string | null;
5951
+ /**
5952
+ * Operation Type
5953
+ * Filter by operation type (e.g., entity_lookup, cypher_query)
5954
+ */
5955
+ operation_type?: string | null;
5956
+ /**
5957
+ * Start Date
5958
+ * Start date for filtering (ISO format: YYYY-MM-DD)
5959
+ */
5960
+ start_date?: string | null;
5961
+ /**
5962
+ * End Date
5963
+ * End date for filtering (ISO format: YYYY-MM-DD)
5964
+ */
5965
+ end_date?: string | null;
5966
+ /**
5967
+ * Limit
5968
+ * Maximum number of transactions to return
5969
+ */
5970
+ limit?: number;
5971
+ /**
5972
+ * Offset
5973
+ * Number of transactions to skip
5974
+ */
5975
+ offset?: number;
5976
+ };
5977
+ url: '/v1/{graph_id}/credits/transactions';
5446
5978
  };
5447
5979
 
5448
- export type UpgradeGraphSubscriptionV1GraphIdBillingSubscriptionUpgradePostErrors = {
5980
+ export type ListCreditTransactionsErrors = {
5981
+ /**
5982
+ * Invalid transaction type filter
5983
+ */
5984
+ 400: ErrorResponse;
5985
+ /**
5986
+ * Access denied to graph
5987
+ */
5988
+ 403: ErrorResponse;
5449
5989
  /**
5450
5990
  * Validation Error
5451
5991
  */
5452
5992
  422: HttpValidationError;
5993
+ /**
5994
+ * Failed to retrieve transactions
5995
+ */
5996
+ 500: ErrorResponse;
5453
5997
  };
5454
5998
 
5455
- export type UpgradeGraphSubscriptionV1GraphIdBillingSubscriptionUpgradePostError = UpgradeGraphSubscriptionV1GraphIdBillingSubscriptionUpgradePostErrors[keyof UpgradeGraphSubscriptionV1GraphIdBillingSubscriptionUpgradePostErrors];
5999
+ export type ListCreditTransactionsError = ListCreditTransactionsErrors[keyof ListCreditTransactionsErrors];
5456
6000
 
5457
- export type UpgradeGraphSubscriptionV1GraphIdBillingSubscriptionUpgradePostResponses = {
6001
+ export type ListCreditTransactionsResponses = {
5458
6002
  /**
5459
- * Successful Response
6003
+ * Transaction history retrieved successfully
5460
6004
  */
5461
- 200: unknown;
6005
+ 200: DetailedTransactionsResponse;
5462
6006
  };
5463
6007
 
5464
- export type GetGraphSubscriptionV1GraphIdBillingSubscriptionGetData = {
6008
+ export type ListCreditTransactionsResponse = ListCreditTransactionsResponses[keyof ListCreditTransactionsResponses];
6009
+
6010
+ export type CheckCreditBalanceData = {
5465
6011
  body?: never;
5466
6012
  headers?: {
5467
6013
  /**
@@ -5472,31 +6018,59 @@ export type GetGraphSubscriptionV1GraphIdBillingSubscriptionGetData = {
5472
6018
  path: {
5473
6019
  /**
5474
6020
  * Graph Id
5475
- * Graph database ID
6021
+ * Graph database identifier
5476
6022
  */
5477
6023
  graph_id: string;
5478
6024
  };
5479
- query?: never;
5480
- url: '/v1/{graph_id}/billing/subscription';
6025
+ query: {
6026
+ /**
6027
+ * Operation Type
6028
+ * Type of operation to check
6029
+ */
6030
+ operation_type: string;
6031
+ /**
6032
+ * Base Cost
6033
+ * Custom base cost (uses default if not provided)
6034
+ */
6035
+ base_cost?: number | null;
6036
+ };
6037
+ url: '/v1/{graph_id}/credits/balance/check';
5481
6038
  };
5482
6039
 
5483
- export type GetGraphSubscriptionV1GraphIdBillingSubscriptionGetErrors = {
6040
+ export type CheckCreditBalanceErrors = {
6041
+ /**
6042
+ * Access denied to graph
6043
+ */
6044
+ 403: ErrorResponse;
6045
+ /**
6046
+ * Credit pool not found
6047
+ */
6048
+ 404: ErrorResponse;
5484
6049
  /**
5485
6050
  * Validation Error
5486
6051
  */
5487
6052
  422: HttpValidationError;
6053
+ /**
6054
+ * Credit check failed
6055
+ */
6056
+ 500: ErrorResponse;
5488
6057
  };
5489
6058
 
5490
- export type GetGraphSubscriptionV1GraphIdBillingSubscriptionGetError = GetGraphSubscriptionV1GraphIdBillingSubscriptionGetErrors[keyof GetGraphSubscriptionV1GraphIdBillingSubscriptionGetErrors];
6059
+ export type CheckCreditBalanceError = CheckCreditBalanceErrors[keyof CheckCreditBalanceErrors];
5491
6060
 
5492
- export type GetGraphSubscriptionV1GraphIdBillingSubscriptionGetResponses = {
6061
+ export type CheckCreditBalanceResponses = {
5493
6062
  /**
5494
- * Successful Response
6063
+ * Response Checkcreditbalance
6064
+ * Credit check completed
5495
6065
  */
5496
- 200: unknown;
6066
+ 200: {
6067
+ [key: string]: unknown;
6068
+ };
5497
6069
  };
5498
6070
 
5499
- export type GetAvailableSubscriptionPlansV1GraphIdBillingAvailablePlansGetData = {
6071
+ export type CheckCreditBalanceResponse = CheckCreditBalanceResponses[keyof CheckCreditBalanceResponses];
6072
+
6073
+ export type GetStorageUsageData = {
5500
6074
  body?: never;
5501
6075
  headers?: {
5502
6076
  /**
@@ -5507,31 +6081,50 @@ export type GetAvailableSubscriptionPlansV1GraphIdBillingAvailablePlansGetData =
5507
6081
  path: {
5508
6082
  /**
5509
6083
  * Graph Id
5510
- * Graph database ID
6084
+ * Graph database identifier
5511
6085
  */
5512
6086
  graph_id: string;
5513
6087
  };
5514
- query?: never;
5515
- url: '/v1/{graph_id}/billing/available-plans';
6088
+ query?: {
6089
+ /**
6090
+ * Days
6091
+ * Number of days of history to return
6092
+ */
6093
+ days?: number;
6094
+ };
6095
+ url: '/v1/{graph_id}/credits/storage/usage';
5516
6096
  };
5517
6097
 
5518
- export type GetAvailableSubscriptionPlansV1GraphIdBillingAvailablePlansGetErrors = {
6098
+ export type GetStorageUsageErrors = {
6099
+ /**
6100
+ * Access denied to graph
6101
+ */
6102
+ 403: ErrorResponse;
5519
6103
  /**
5520
6104
  * Validation Error
5521
6105
  */
5522
6106
  422: HttpValidationError;
6107
+ /**
6108
+ * Failed to retrieve storage usage
6109
+ */
6110
+ 500: ErrorResponse;
5523
6111
  };
5524
6112
 
5525
- export type GetAvailableSubscriptionPlansV1GraphIdBillingAvailablePlansGetError = GetAvailableSubscriptionPlansV1GraphIdBillingAvailablePlansGetErrors[keyof GetAvailableSubscriptionPlansV1GraphIdBillingAvailablePlansGetErrors];
6113
+ export type GetStorageUsageError = GetStorageUsageErrors[keyof GetStorageUsageErrors];
5526
6114
 
5527
- export type GetAvailableSubscriptionPlansV1GraphIdBillingAvailablePlansGetResponses = {
6115
+ export type GetStorageUsageResponses = {
5528
6116
  /**
5529
- * Successful Response
6117
+ * Response Getstorageusage
6118
+ * Storage usage retrieved successfully
5530
6119
  */
5531
- 200: unknown;
6120
+ 200: {
6121
+ [key: string]: unknown;
6122
+ };
5532
6123
  };
5533
6124
 
5534
- export type GetCreditBillingInfoV1GraphIdBillingCreditsGetData = {
6125
+ export type GetStorageUsageResponse = GetStorageUsageResponses[keyof GetStorageUsageResponses];
6126
+
6127
+ export type CheckStorageLimitsData = {
5535
6128
  body?: never;
5536
6129
  headers?: {
5537
6130
  /**
@@ -5542,31 +6135,45 @@ export type GetCreditBillingInfoV1GraphIdBillingCreditsGetData = {
5542
6135
  path: {
5543
6136
  /**
5544
6137
  * Graph Id
5545
- * Graph database ID
6138
+ * Graph database identifier
5546
6139
  */
5547
6140
  graph_id: string;
5548
6141
  };
5549
6142
  query?: never;
5550
- url: '/v1/{graph_id}/billing/credits';
6143
+ url: '/v1/{graph_id}/credits/storage/limits';
5551
6144
  };
5552
6145
 
5553
- export type GetCreditBillingInfoV1GraphIdBillingCreditsGetErrors = {
6146
+ export type CheckStorageLimitsErrors = {
6147
+ /**
6148
+ * Access denied to graph
6149
+ */
6150
+ 403: ErrorResponse;
6151
+ /**
6152
+ * No credit pool found for graph
6153
+ */
6154
+ 404: ErrorResponse;
5554
6155
  /**
5555
6156
  * Validation Error
5556
6157
  */
5557
6158
  422: HttpValidationError;
6159
+ /**
6160
+ * Failed to retrieve storage limits
6161
+ */
6162
+ 500: ErrorResponse;
5558
6163
  };
5559
6164
 
5560
- export type GetCreditBillingInfoV1GraphIdBillingCreditsGetError = GetCreditBillingInfoV1GraphIdBillingCreditsGetErrors[keyof GetCreditBillingInfoV1GraphIdBillingCreditsGetErrors];
6165
+ export type CheckStorageLimitsError = CheckStorageLimitsErrors[keyof CheckStorageLimitsErrors];
5561
6166
 
5562
- export type GetCreditBillingInfoV1GraphIdBillingCreditsGetResponses = {
6167
+ export type CheckStorageLimitsResponses = {
5563
6168
  /**
5564
- * Successful Response
6169
+ * Storage limit information retrieved successfully
5565
6170
  */
5566
- 200: unknown;
6171
+ 200: StorageLimitResponse;
5567
6172
  };
5568
6173
 
5569
- export type GetCreditSummaryData = {
6174
+ export type CheckStorageLimitsResponse = CheckStorageLimitsResponses[keyof CheckStorageLimitsResponses];
6175
+
6176
+ export type GetDatabaseHealthData = {
5570
6177
  body?: never;
5571
6178
  headers?: {
5572
6179
  /**
@@ -5582,40 +6189,40 @@ export type GetCreditSummaryData = {
5582
6189
  graph_id: string;
5583
6190
  };
5584
6191
  query?: never;
5585
- url: '/v1/{graph_id}/credits/summary';
6192
+ url: '/v1/{graph_id}/health';
5586
6193
  };
5587
6194
 
5588
- export type GetCreditSummaryErrors = {
6195
+ export type GetDatabaseHealthErrors = {
5589
6196
  /**
5590
6197
  * Access denied to graph
5591
6198
  */
5592
- 403: ErrorResponse;
6199
+ 403: unknown;
5593
6200
  /**
5594
- * Credit pool not found for graph
6201
+ * Graph not found
5595
6202
  */
5596
- 404: ErrorResponse;
6203
+ 404: unknown;
5597
6204
  /**
5598
6205
  * Validation Error
5599
6206
  */
5600
6207
  422: HttpValidationError;
5601
6208
  /**
5602
- * Failed to retrieve credit summary
6209
+ * Failed to retrieve health information
5603
6210
  */
5604
- 500: ErrorResponse;
6211
+ 500: unknown;
5605
6212
  };
5606
6213
 
5607
- export type GetCreditSummaryError = GetCreditSummaryErrors[keyof GetCreditSummaryErrors];
6214
+ export type GetDatabaseHealthError = GetDatabaseHealthErrors[keyof GetDatabaseHealthErrors];
5608
6215
 
5609
- export type GetCreditSummaryResponses = {
6216
+ export type GetDatabaseHealthResponses = {
5610
6217
  /**
5611
- * Credit summary retrieved successfully
6218
+ * Database health retrieved successfully
5612
6219
  */
5613
- 200: CreditSummaryResponse;
6220
+ 200: DatabaseHealthResponse;
5614
6221
  };
5615
6222
 
5616
- export type GetCreditSummaryResponse = GetCreditSummaryResponses[keyof GetCreditSummaryResponses];
6223
+ export type GetDatabaseHealthResponse = GetDatabaseHealthResponses[keyof GetDatabaseHealthResponses];
5617
6224
 
5618
- export type ListCreditTransactionsData = {
6225
+ export type GetDatabaseInfoData = {
5619
6226
  body?: never;
5620
6227
  headers?: {
5621
6228
  /**
@@ -5630,73 +6237,42 @@ export type ListCreditTransactionsData = {
5630
6237
  */
5631
6238
  graph_id: string;
5632
6239
  };
5633
- query?: {
5634
- /**
5635
- * Transaction Type
5636
- * Filter by transaction type (allocation, consumption, bonus, refund)
5637
- */
5638
- transaction_type?: string | null;
5639
- /**
5640
- * Operation Type
5641
- * Filter by operation type (e.g., entity_lookup, cypher_query)
5642
- */
5643
- operation_type?: string | null;
5644
- /**
5645
- * Start Date
5646
- * Start date for filtering (ISO format: YYYY-MM-DD)
5647
- */
5648
- start_date?: string | null;
5649
- /**
5650
- * End Date
5651
- * End date for filtering (ISO format: YYYY-MM-DD)
5652
- */
5653
- end_date?: string | null;
5654
- /**
5655
- * Limit
5656
- * Maximum number of transactions to return
5657
- */
5658
- limit?: number;
5659
- /**
5660
- * Offset
5661
- * Number of transactions to skip
5662
- */
5663
- offset?: number;
5664
- };
5665
- url: '/v1/{graph_id}/credits/transactions';
6240
+ query?: never;
6241
+ url: '/v1/{graph_id}/info';
5666
6242
  };
5667
6243
 
5668
- export type ListCreditTransactionsErrors = {
6244
+ export type GetDatabaseInfoErrors = {
5669
6245
  /**
5670
- * Invalid transaction type filter
6246
+ * Access denied to graph
5671
6247
  */
5672
- 400: ErrorResponse;
6248
+ 403: unknown;
5673
6249
  /**
5674
- * Access denied to graph
6250
+ * Graph not found
5675
6251
  */
5676
- 403: ErrorResponse;
6252
+ 404: unknown;
5677
6253
  /**
5678
6254
  * Validation Error
5679
6255
  */
5680
6256
  422: HttpValidationError;
5681
6257
  /**
5682
- * Failed to retrieve transactions
6258
+ * Failed to retrieve database information
5683
6259
  */
5684
- 500: ErrorResponse;
6260
+ 500: unknown;
5685
6261
  };
5686
6262
 
5687
- export type ListCreditTransactionsError = ListCreditTransactionsErrors[keyof ListCreditTransactionsErrors];
6263
+ export type GetDatabaseInfoError = GetDatabaseInfoErrors[keyof GetDatabaseInfoErrors];
5688
6264
 
5689
- export type ListCreditTransactionsResponses = {
6265
+ export type GetDatabaseInfoResponses = {
5690
6266
  /**
5691
- * Transaction history retrieved successfully
6267
+ * Database information retrieved successfully
5692
6268
  */
5693
- 200: DetailedTransactionsResponse;
6269
+ 200: DatabaseInfoResponse;
5694
6270
  };
5695
6271
 
5696
- export type ListCreditTransactionsResponse = ListCreditTransactionsResponses[keyof ListCreditTransactionsResponses];
6272
+ export type GetDatabaseInfoResponse = GetDatabaseInfoResponses[keyof GetDatabaseInfoResponses];
5697
6273
 
5698
- export type CheckCreditBalanceData = {
5699
- body: CreditCheckRequest;
6274
+ export type GetGraphLimitsData = {
6275
+ body?: never;
5700
6276
  headers?: {
5701
6277
  /**
5702
6278
  * Authorization
@@ -5706,48 +6282,48 @@ export type CheckCreditBalanceData = {
5706
6282
  path: {
5707
6283
  /**
5708
6284
  * Graph Id
5709
- * Graph database identifier
6285
+ * Graph database identifier (user graph or shared repository)
5710
6286
  */
5711
6287
  graph_id: string;
5712
6288
  };
5713
6289
  query?: never;
5714
- url: '/v1/{graph_id}/credits/check';
6290
+ url: '/v1/{graph_id}/limits';
5715
6291
  };
5716
6292
 
5717
- export type CheckCreditBalanceErrors = {
6293
+ export type GetGraphLimitsErrors = {
5718
6294
  /**
5719
6295
  * Access denied to graph
5720
6296
  */
5721
- 403: ErrorResponse;
6297
+ 403: unknown;
5722
6298
  /**
5723
- * Credit pool not found
6299
+ * Graph not found
5724
6300
  */
5725
- 404: ErrorResponse;
6301
+ 404: unknown;
5726
6302
  /**
5727
6303
  * Validation Error
5728
6304
  */
5729
6305
  422: HttpValidationError;
5730
6306
  /**
5731
- * Credit check failed
6307
+ * Failed to retrieve limits
5732
6308
  */
5733
- 500: ErrorResponse;
6309
+ 500: unknown;
5734
6310
  };
5735
6311
 
5736
- export type CheckCreditBalanceError = CheckCreditBalanceErrors[keyof CheckCreditBalanceErrors];
6312
+ export type GetGraphLimitsError = GetGraphLimitsErrors[keyof GetGraphLimitsErrors];
5737
6313
 
5738
- export type CheckCreditBalanceResponses = {
6314
+ export type GetGraphLimitsResponses = {
5739
6315
  /**
5740
- * Response Checkcreditbalance
5741
- * Credit check completed
6316
+ * Response Getgraphlimits
6317
+ * Limits retrieved successfully
5742
6318
  */
5743
6319
  200: {
5744
6320
  [key: string]: unknown;
5745
6321
  };
5746
6322
  };
5747
6323
 
5748
- export type CheckCreditBalanceResponse = CheckCreditBalanceResponses[keyof CheckCreditBalanceResponses];
6324
+ export type GetGraphLimitsResponse = GetGraphLimitsResponses[keyof GetGraphLimitsResponses];
5749
6325
 
5750
- export type GetStorageUsageData = {
6326
+ export type ListSubgraphsData = {
5751
6327
  body?: never;
5752
6328
  headers?: {
5753
6329
  /**
@@ -5758,51 +6334,71 @@ export type GetStorageUsageData = {
5758
6334
  path: {
5759
6335
  /**
5760
6336
  * Graph Id
5761
- * Graph database identifier
6337
+ * Parent graph ID (e.g., 'kg1a2b3c4d5')
5762
6338
  */
5763
6339
  graph_id: string;
5764
6340
  };
5765
- query?: {
6341
+ query?: never;
6342
+ url: '/v1/{graph_id}/subgraphs';
6343
+ };
6344
+
6345
+ export type ListSubgraphsErrors = {
6346
+ /**
6347
+ * Validation Error
6348
+ */
6349
+ 422: HttpValidationError;
6350
+ };
6351
+
6352
+ export type ListSubgraphsError = ListSubgraphsErrors[keyof ListSubgraphsErrors];
6353
+
6354
+ export type ListSubgraphsResponses = {
6355
+ /**
6356
+ * Successful Response
6357
+ */
6358
+ 200: ListSubgraphsResponse;
6359
+ };
6360
+
6361
+ export type ListSubgraphsResponse2 = ListSubgraphsResponses[keyof ListSubgraphsResponses];
6362
+
6363
+ export type CreateSubgraphData = {
6364
+ body: CreateSubgraphRequest;
6365
+ headers?: {
5766
6366
  /**
5767
- * Days
5768
- * Number of days of history to return
6367
+ * Authorization
5769
6368
  */
5770
- days?: number;
6369
+ authorization?: string | null;
5771
6370
  };
5772
- url: '/v1/{graph_id}/credits/storage/usage';
6371
+ path: {
6372
+ /**
6373
+ * Graph Id
6374
+ * Parent graph ID (e.g., 'kg1a2b3c4d5')
6375
+ */
6376
+ graph_id: string;
6377
+ };
6378
+ query?: never;
6379
+ url: '/v1/{graph_id}/subgraphs';
5773
6380
  };
5774
6381
 
5775
- export type GetStorageUsageErrors = {
5776
- /**
5777
- * Access denied to graph
5778
- */
5779
- 403: ErrorResponse;
6382
+ export type CreateSubgraphErrors = {
5780
6383
  /**
5781
6384
  * Validation Error
5782
6385
  */
5783
6386
  422: HttpValidationError;
5784
- /**
5785
- * Failed to retrieve storage usage
5786
- */
5787
- 500: ErrorResponse;
5788
6387
  };
5789
6388
 
5790
- export type GetStorageUsageError = GetStorageUsageErrors[keyof GetStorageUsageErrors];
6389
+ export type CreateSubgraphError = CreateSubgraphErrors[keyof CreateSubgraphErrors];
5791
6390
 
5792
- export type GetStorageUsageResponses = {
6391
+ export type CreateSubgraphResponses = {
5793
6392
  /**
5794
- * Response Getstorageusage
5795
- * Storage usage retrieved successfully
6393
+ * Successful Response
5796
6394
  */
5797
- 200: {
5798
- [key: string]: unknown;
5799
- };
6395
+ 201: SubgraphResponse;
5800
6396
  };
5801
6397
 
5802
- export type GetStorageUsageResponse = GetStorageUsageResponses[keyof GetStorageUsageResponses];
6398
+ export type CreateSubgraphResponse = CreateSubgraphResponses[keyof CreateSubgraphResponses];
5803
6399
 
5804
- export type CheckStorageLimitsData = {
5805
- body?: never;
6400
+ export type DeleteSubgraphData = {
6401
+ body?: DeleteSubgraphRequest;
5806
6402
  headers?: {
5807
6403
  /**
5808
6404
  * Authorization
@@ -5812,45 +6408,62 @@ export type CheckStorageLimitsData = {
5812
6408
  path: {
5813
6409
  /**
5814
6410
  * Graph Id
5815
- * Graph database identifier
6411
+ * Parent graph identifier
5816
6412
  */
5817
6413
  graph_id: string;
6414
+ /**
6415
+ * Subgraph Id
6416
+ * Subgraph identifier to delete
6417
+ */
6418
+ subgraph_id: string;
5818
6419
  };
5819
6420
  query?: never;
5820
- url: '/v1/{graph_id}/credits/storage/limits';
6421
+ url: '/v1/{graph_id}/subgraphs/{subgraph_id}';
5821
6422
  };
5822
6423
 
5823
- export type CheckStorageLimitsErrors = {
6424
+ export type DeleteSubgraphErrors = {
5824
6425
  /**
5825
- * Access denied to graph
6426
+ * Invalid subgraph identifier
5826
6427
  */
5827
- 403: ErrorResponse;
6428
+ 400: unknown;
5828
6429
  /**
5829
- * No credit pool found for graph
6430
+ * Not authenticated
5830
6431
  */
5831
- 404: ErrorResponse;
6432
+ 401: unknown;
6433
+ /**
6434
+ * Insufficient permissions
6435
+ */
6436
+ 403: unknown;
6437
+ /**
6438
+ * Subgraph not found
6439
+ */
6440
+ 404: unknown;
6441
+ /**
6442
+ * Subgraph contains data (use force=true)
6443
+ */
6444
+ 409: unknown;
5832
6445
  /**
5833
6446
  * Validation Error
5834
6447
  */
5835
6448
  422: HttpValidationError;
5836
6449
  /**
5837
- * Failed to retrieve storage limits
6450
+ * Internal server error
5838
6451
  */
5839
- 500: ErrorResponse;
6452
+ 500: unknown;
5840
6453
  };
5841
6454
 
5842
- export type CheckStorageLimitsError = CheckStorageLimitsErrors[keyof CheckStorageLimitsErrors];
6455
+ export type DeleteSubgraphError = DeleteSubgraphErrors[keyof DeleteSubgraphErrors];
5843
6456
 
5844
- export type CheckStorageLimitsResponses = {
6457
+ export type DeleteSubgraphResponses = {
5845
6458
  /**
5846
- * Storage limit information retrieved successfully
6459
+ * Subgraph deleted successfully
5847
6460
  */
5848
- 200: StorageLimitResponse;
6461
+ 200: DeleteSubgraphResponse;
5849
6462
  };
5850
6463
 
5851
- export type CheckStorageLimitsResponse = CheckStorageLimitsResponses[keyof CheckStorageLimitsResponses];
6464
+ export type DeleteSubgraphResponse2 = DeleteSubgraphResponses[keyof DeleteSubgraphResponses];
5852
6465
 
5853
- export type GetDatabaseHealthData = {
6466
+ export type GetSubgraphInfoData = {
5854
6467
  body?: never;
5855
6468
  headers?: {
5856
6469
  /**
@@ -5861,21 +6474,34 @@ export type GetDatabaseHealthData = {
5861
6474
  path: {
5862
6475
  /**
5863
6476
  * Graph Id
5864
- * Graph database identifier
6477
+ * Parent graph identifier
5865
6478
  */
5866
6479
  graph_id: string;
6480
+ /**
6481
+ * Subgraph Id
6482
+ * Subgraph identifier
6483
+ */
6484
+ subgraph_id: string;
5867
6485
  };
5868
6486
  query?: never;
5869
- url: '/v1/{graph_id}/status/health';
6487
+ url: '/v1/{graph_id}/subgraphs/{subgraph_id}/info';
5870
6488
  };
5871
6489
 
5872
- export type GetDatabaseHealthErrors = {
6490
+ export type GetSubgraphInfoErrors = {
5873
6491
  /**
5874
- * Access denied to graph
6492
+ * Not a valid subgraph
6493
+ */
6494
+ 400: unknown;
6495
+ /**
6496
+ * Not authenticated
6497
+ */
6498
+ 401: unknown;
6499
+ /**
6500
+ * Access denied
5875
6501
  */
5876
6502
  403: unknown;
5877
6503
  /**
5878
- * Graph not found
6504
+ * Subgraph not found
5879
6505
  */
5880
6506
  404: unknown;
5881
6507
  /**
@@ -5883,23 +6509,23 @@ export type GetDatabaseHealthErrors = {
5883
6509
  */
5884
6510
  422: HttpValidationError;
5885
6511
  /**
5886
- * Failed to retrieve health information
6512
+ * Internal server error
5887
6513
  */
5888
6514
  500: unknown;
5889
6515
  };
5890
6516
 
5891
- export type GetDatabaseHealthError = GetDatabaseHealthErrors[keyof GetDatabaseHealthErrors];
6517
+ export type GetSubgraphInfoError = GetSubgraphInfoErrors[keyof GetSubgraphInfoErrors];
5892
6518
 
5893
- export type GetDatabaseHealthResponses = {
6519
+ export type GetSubgraphInfoResponses = {
5894
6520
  /**
5895
- * Database health retrieved successfully
6521
+ * Subgraph information retrieved
5896
6522
  */
5897
- 200: DatabaseHealthResponse;
6523
+ 200: SubgraphResponse;
5898
6524
  };
5899
6525
 
5900
- export type GetDatabaseHealthResponse = GetDatabaseHealthResponses[keyof GetDatabaseHealthResponses];
6526
+ export type GetSubgraphInfoResponse = GetSubgraphInfoResponses[keyof GetSubgraphInfoResponses];
5901
6527
 
5902
- export type GetDatabaseInfoData = {
6528
+ export type GetSubgraphQuotaData = {
5903
6529
  body?: never;
5904
6530
  headers?: {
5905
6531
  /**
@@ -5910,21 +6536,25 @@ export type GetDatabaseInfoData = {
5910
6536
  path: {
5911
6537
  /**
5912
6538
  * Graph Id
5913
- * Graph database identifier
6539
+ * Parent graph identifier
5914
6540
  */
5915
6541
  graph_id: string;
5916
6542
  };
5917
6543
  query?: never;
5918
- url: '/v1/{graph_id}/status/info';
6544
+ url: '/v1/{graph_id}/subgraphs/quota';
5919
6545
  };
5920
6546
 
5921
- export type GetDatabaseInfoErrors = {
6547
+ export type GetSubgraphQuotaErrors = {
5922
6548
  /**
5923
- * Access denied to graph
6549
+ * Not authenticated
6550
+ */
6551
+ 401: unknown;
6552
+ /**
6553
+ * Access denied to parent graph
5924
6554
  */
5925
6555
  403: unknown;
5926
6556
  /**
5927
- * Graph not found
6557
+ * Parent graph not found
5928
6558
  */
5929
6559
  404: unknown;
5930
6560
  /**
@@ -5932,21 +6562,61 @@ export type GetDatabaseInfoErrors = {
5932
6562
  */
5933
6563
  422: HttpValidationError;
5934
6564
  /**
5935
- * Failed to retrieve database information
6565
+ * Internal server error
5936
6566
  */
5937
6567
  500: unknown;
5938
6568
  };
5939
6569
 
5940
- export type GetDatabaseInfoError = GetDatabaseInfoErrors[keyof GetDatabaseInfoErrors];
6570
+ export type GetSubgraphQuotaError = GetSubgraphQuotaErrors[keyof GetSubgraphQuotaErrors];
5941
6571
 
5942
- export type GetDatabaseInfoResponses = {
6572
+ export type GetSubgraphQuotaResponses = {
5943
6573
  /**
5944
- * Database information retrieved successfully
6574
+ * Quota information retrieved
5945
6575
  */
5946
- 200: DatabaseInfoResponse;
6576
+ 200: SubgraphQuotaResponse;
5947
6577
  };
5948
6578
 
5949
- export type GetDatabaseInfoResponse = GetDatabaseInfoResponses[keyof GetDatabaseInfoResponses];
6579
+ export type GetSubgraphQuotaResponse = GetSubgraphQuotaResponses[keyof GetSubgraphQuotaResponses];
6580
+
6581
+ export type CopyDataToGraphData = {
6582
+ /**
6583
+ * Request
6584
+ */
6585
+ body: S3CopyRequest | UrlCopyRequest | DataFrameCopyRequest;
6586
+ headers?: {
6587
+ /**
6588
+ * Authorization
6589
+ */
6590
+ authorization?: string | null;
6591
+ };
6592
+ path: {
6593
+ /**
6594
+ * Graph Id
6595
+ * Target graph identifier (user graphs only - shared repositories not allowed)
6596
+ */
6597
+ graph_id: string;
6598
+ };
6599
+ query?: never;
6600
+ url: '/v1/{graph_id}/copy';
6601
+ };
6602
+
6603
+ export type CopyDataToGraphErrors = {
6604
+ /**
6605
+ * Validation Error
6606
+ */
6607
+ 422: HttpValidationError;
6608
+ };
6609
+
6610
+ export type CopyDataToGraphError = CopyDataToGraphErrors[keyof CopyDataToGraphErrors];
6611
+
6612
+ export type CopyDataToGraphResponses = {
6613
+ /**
6614
+ * Successful Response
6615
+ */
6616
+ 200: CopyResponse;
6617
+ };
6618
+
6619
+ export type CopyDataToGraphResponse = CopyDataToGraphResponses[keyof CopyDataToGraphResponses];
5950
6620
 
5951
6621
  export type CreateGraphData = {
5952
6622
  body: CreateGraphRequest;