@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.d.ts CHANGED
@@ -274,22 +274,6 @@ export type BackupCreateRequest = {
274
274
  */
275
275
  schedule?: string | null;
276
276
  };
277
- /**
278
- * BackupExportRequest
279
- * Request model for exporting a backup.
280
- */
281
- export type BackupExportRequest = {
282
- /**
283
- * Backup Id
284
- * ID of backup to export
285
- */
286
- backup_id: string;
287
- /**
288
- * Export Format
289
- * Export format - only 'original' is supported (compressed .kuzu file)
290
- */
291
- export_format?: string;
292
- };
293
277
  /**
294
278
  * BackupListResponse
295
279
  * Response model for backup list.
@@ -606,6 +590,59 @@ export type ConnectionResponse = {
606
590
  [key: string]: unknown;
607
591
  };
608
592
  };
593
+ /**
594
+ * CopyResponse
595
+ * Response model for copy operations.
596
+ */
597
+ export type CopyResponse = {
598
+ /**
599
+ * Status
600
+ * Operation status
601
+ */
602
+ status: 'completed' | 'failed' | 'partial';
603
+ /**
604
+ * Source Type
605
+ * Type of source that was copied from
606
+ */
607
+ source_type: string;
608
+ /**
609
+ * Execution Time Ms
610
+ * Total execution time in milliseconds
611
+ */
612
+ execution_time_ms: number;
613
+ /**
614
+ * Message
615
+ * Human-readable status message
616
+ */
617
+ message: string;
618
+ /**
619
+ * Rows Imported
620
+ * Number of rows successfully imported
621
+ */
622
+ rows_imported?: number | null;
623
+ /**
624
+ * Rows Skipped
625
+ * Number of rows skipped due to errors (when ignore_errors=true)
626
+ */
627
+ rows_skipped?: number | null;
628
+ /**
629
+ * Warnings
630
+ * List of warnings encountered during import
631
+ */
632
+ warnings?: Array<string> | null;
633
+ /**
634
+ * Error Details
635
+ * Detailed error information if operation failed
636
+ */
637
+ error_details?: {
638
+ [key: string]: unknown;
639
+ } | null;
640
+ /**
641
+ * Bytes Processed
642
+ * Total bytes processed from source
643
+ */
644
+ bytes_processed?: number | null;
645
+ };
609
646
  /**
610
647
  * CreateAPIKeyRequest
611
648
  * Request model for creating a new API key.
@@ -685,20 +722,41 @@ export type CreateGraphRequest = {
685
722
  tags?: Array<string>;
686
723
  };
687
724
  /**
688
- * CreditCheckRequest
689
- * Request to check credit balance.
725
+ * CreateSubgraphRequest
726
+ * Request model for creating a subgraph.
690
727
  */
691
- export type CreditCheckRequest = {
728
+ export type CreateSubgraphRequest = {
692
729
  /**
693
- * Operation Type
694
- * Type of operation to check
730
+ * Name
731
+ * Alphanumeric name for the subgraph (e.g., dev, staging, prod1)
695
732
  */
696
- operation_type: string;
733
+ name: string;
734
+ /**
735
+ * Display Name
736
+ * Human-readable display name for the subgraph
737
+ */
738
+ display_name: string;
739
+ /**
740
+ * Description
741
+ * Optional description of the subgraph's purpose
742
+ */
743
+ description?: string | null;
744
+ /**
745
+ * Schema Extensions
746
+ * Schema extensions to include (inherits from parent by default)
747
+ */
748
+ schema_extensions?: Array<string> | null;
697
749
  /**
698
- * Base Cost
699
- * Custom base cost (uses default if not provided)
750
+ * Type of subgraph (currently only 'static' is supported)
700
751
  */
701
- base_cost?: number | null;
752
+ subgraph_type?: SubgraphType;
753
+ /**
754
+ * Metadata
755
+ * Additional metadata for the subgraph
756
+ */
757
+ metadata?: {
758
+ [key: string]: unknown;
759
+ } | null;
702
760
  };
703
761
  /**
704
762
  * CreditSummary
@@ -764,10 +822,6 @@ export type CreditSummaryResponse = {
764
822
  * Graph Tier
765
823
  */
766
824
  graph_tier: string;
767
- /**
768
- * Credit Multiplier
769
- */
770
- credit_multiplier: number;
771
825
  /**
772
826
  * Current Balance
773
827
  */
@@ -892,6 +946,47 @@ export type CypherQueryRequest = {
892
946
  */
893
947
  timeout?: number | null;
894
948
  };
949
+ /**
950
+ * DataFrameCopyRequest
951
+ * Request model for DataFrame copy operations (future).
952
+ */
953
+ export type DataFrameCopyRequest = {
954
+ /**
955
+ * Table Name
956
+ * Target Kuzu table name
957
+ */
958
+ table_name: string;
959
+ /**
960
+ * Ignore Errors
961
+ * Skip duplicate/invalid rows (enables upsert-like behavior)
962
+ */
963
+ ignore_errors?: boolean;
964
+ /**
965
+ * Extended Timeout
966
+ * Use extended timeout for large datasets
967
+ */
968
+ extended_timeout?: boolean;
969
+ /**
970
+ * Validate Schema
971
+ * Validate source schema against target table
972
+ */
973
+ validate_schema?: boolean;
974
+ /**
975
+ * Source Type
976
+ * Source type identifier
977
+ */
978
+ source_type?: 'dataframe';
979
+ /**
980
+ * Data Reference
981
+ * Reference to uploaded DataFrame data
982
+ */
983
+ data_reference: string;
984
+ /**
985
+ * Format
986
+ * DataFrame format
987
+ */
988
+ format?: 'pandas' | 'polars' | 'arrow';
989
+ };
895
990
  /**
896
991
  * DatabaseHealthResponse
897
992
  * Response model for database health check.
@@ -1029,6 +1124,58 @@ export type DatabaseInfoResponse = {
1029
1124
  */
1030
1125
  last_backup_date?: string | null;
1031
1126
  };
1127
+ /**
1128
+ * DeleteSubgraphRequest
1129
+ * Request model for deleting a subgraph.
1130
+ */
1131
+ export type DeleteSubgraphRequest = {
1132
+ /**
1133
+ * Force
1134
+ * Force deletion even if subgraph contains data
1135
+ */
1136
+ force?: boolean;
1137
+ /**
1138
+ * Backup First
1139
+ * Create a backup before deletion
1140
+ */
1141
+ backup_first?: boolean;
1142
+ /**
1143
+ * Backup Location
1144
+ * S3 location for backup (uses default if not specified)
1145
+ */
1146
+ backup_location?: string | null;
1147
+ };
1148
+ /**
1149
+ * DeleteSubgraphResponse
1150
+ * Response model for subgraph deletion.
1151
+ */
1152
+ export type DeleteSubgraphResponse = {
1153
+ /**
1154
+ * Graph Id
1155
+ * Deleted subgraph identifier
1156
+ */
1157
+ graph_id: string;
1158
+ /**
1159
+ * Status
1160
+ * Deletion status
1161
+ */
1162
+ status: string;
1163
+ /**
1164
+ * Backup Location
1165
+ * Location of backup if created
1166
+ */
1167
+ backup_location?: string | null;
1168
+ /**
1169
+ * Deleted At
1170
+ * When deletion occurred
1171
+ */
1172
+ deleted_at: string;
1173
+ /**
1174
+ * Message
1175
+ * Additional information about the deletion
1176
+ */
1177
+ message?: string | null;
1178
+ };
1032
1179
  /**
1033
1180
  * DetailedTransactionsResponse
1034
1181
  * Detailed response for transaction queries.
@@ -1433,6 +1580,47 @@ export type LinkTokenRequest = {
1433
1580
  [key: string]: unknown;
1434
1581
  } | null;
1435
1582
  };
1583
+ /**
1584
+ * ListSubgraphsResponse
1585
+ * Response model for listing subgraphs.
1586
+ */
1587
+ export type ListSubgraphsResponse = {
1588
+ /**
1589
+ * Parent Graph Id
1590
+ * Parent graph identifier
1591
+ */
1592
+ parent_graph_id: string;
1593
+ /**
1594
+ * Parent Graph Name
1595
+ * Parent graph name
1596
+ */
1597
+ parent_graph_name: string;
1598
+ /**
1599
+ * Parent Graph Tier
1600
+ * Parent graph tier
1601
+ */
1602
+ parent_graph_tier: string;
1603
+ /**
1604
+ * Subgraph Count
1605
+ * Total number of subgraphs
1606
+ */
1607
+ subgraph_count: number;
1608
+ /**
1609
+ * Max Subgraphs
1610
+ * Maximum allowed subgraphs for this tier (None = unlimited)
1611
+ */
1612
+ max_subgraphs?: number | null;
1613
+ /**
1614
+ * Total Size Mb
1615
+ * Combined size of all subgraphs in megabytes
1616
+ */
1617
+ total_size_mb?: number | null;
1618
+ /**
1619
+ * Subgraphs
1620
+ * List of subgraphs
1621
+ */
1622
+ subgraphs: Array<SubgraphSummary>;
1623
+ };
1436
1624
  /**
1437
1625
  * LoginRequest
1438
1626
  * Login request model.
@@ -1739,6 +1927,112 @@ export type RepositoryType = 'sec' | 'industry' | 'economic';
1739
1927
  * Response modes for execution.
1740
1928
  */
1741
1929
  export type ResponseMode = 'auto' | 'sync' | 'async' | 'stream';
1930
+ /**
1931
+ * S3CopyRequest
1932
+ * Request model for S3 copy operations.
1933
+ */
1934
+ export type S3CopyRequest = {
1935
+ /**
1936
+ * Table Name
1937
+ * Target Kuzu table name
1938
+ */
1939
+ table_name: string;
1940
+ /**
1941
+ * Ignore Errors
1942
+ * Skip duplicate/invalid rows (enables upsert-like behavior)
1943
+ */
1944
+ ignore_errors?: boolean;
1945
+ /**
1946
+ * Extended Timeout
1947
+ * Use extended timeout for large datasets
1948
+ */
1949
+ extended_timeout?: boolean;
1950
+ /**
1951
+ * Validate Schema
1952
+ * Validate source schema against target table
1953
+ */
1954
+ validate_schema?: boolean;
1955
+ /**
1956
+ * Source Type
1957
+ * Source type identifier
1958
+ */
1959
+ source_type?: 's3';
1960
+ /**
1961
+ * S3 Path
1962
+ * Full S3 path (s3://bucket/key or s3://bucket/prefix*.parquet)
1963
+ */
1964
+ s3_path: string;
1965
+ /**
1966
+ * S3 Access Key Id
1967
+ * AWS access key ID for S3 access
1968
+ */
1969
+ s3_access_key_id: string;
1970
+ /**
1971
+ * S3 Secret Access Key
1972
+ * AWS secret access key for S3 access
1973
+ */
1974
+ s3_secret_access_key: string;
1975
+ /**
1976
+ * S3 Session Token
1977
+ * AWS session token (for temporary credentials)
1978
+ */
1979
+ s3_session_token?: string | null;
1980
+ /**
1981
+ * S3 Region
1982
+ * S3 region
1983
+ */
1984
+ s3_region?: string | null;
1985
+ /**
1986
+ * S3 Endpoint
1987
+ * Custom S3 endpoint (for S3-compatible storage)
1988
+ */
1989
+ s3_endpoint?: string | null;
1990
+ /**
1991
+ * S3 Url Style
1992
+ * S3 URL style (vhost or path)
1993
+ */
1994
+ s3_url_style?: ('vhost' | 'path') | null;
1995
+ /**
1996
+ * File Format
1997
+ * File format of the S3 data
1998
+ */
1999
+ file_format?: 'parquet' | 'csv' | 'json' | 'delta' | 'iceberg';
2000
+ /**
2001
+ * Csv Delimiter
2002
+ * CSV delimiter
2003
+ */
2004
+ csv_delimiter?: string | null;
2005
+ /**
2006
+ * Csv Header
2007
+ * CSV has header row
2008
+ */
2009
+ csv_header?: boolean | null;
2010
+ /**
2011
+ * Csv Quote
2012
+ * CSV quote character
2013
+ */
2014
+ csv_quote?: string | null;
2015
+ /**
2016
+ * Csv Escape
2017
+ * CSV escape character
2018
+ */
2019
+ csv_escape?: string | null;
2020
+ /**
2021
+ * Csv Skip
2022
+ * Number of rows to skip
2023
+ */
2024
+ csv_skip?: number | null;
2025
+ /**
2026
+ * Allow Moved Paths
2027
+ * Allow moved paths for Iceberg tables
2028
+ */
2029
+ allow_moved_paths?: boolean | null;
2030
+ /**
2031
+ * Max File Size Gb
2032
+ * Maximum total file size limit in GB
2033
+ */
2034
+ max_file_size_gb?: number | null;
2035
+ };
1742
2036
  /**
1743
2037
  * SECConnectionConfig
1744
2038
  * SEC-specific connection configuration.
@@ -1981,116 +2275,289 @@ export type StorageLimitResponse = {
1981
2275
  recommendations?: Array<string> | null;
1982
2276
  };
1983
2277
  /**
1984
- * SubscriptionInfo
1985
- * User subscription information.
2278
+ * SubgraphQuotaResponse
2279
+ * Response model for subgraph quota information.
1986
2280
  */
1987
- export type SubscriptionInfo = {
2281
+ export type SubgraphQuotaResponse = {
1988
2282
  /**
1989
- * Id
1990
- * Subscription ID
2283
+ * Parent Graph Id
2284
+ * Parent graph identifier
1991
2285
  */
1992
- id: string;
2286
+ parent_graph_id: string;
1993
2287
  /**
1994
- * User Id
1995
- * User ID
2288
+ * Tier
2289
+ * Graph tier
1996
2290
  */
1997
- user_id: string;
2291
+ tier: string;
1998
2292
  /**
1999
- * Addon Type
2000
- * Add-on type
2293
+ * Current Count
2294
+ * Current number of subgraphs
2001
2295
  */
2002
- addon_type: string;
2296
+ current_count: number;
2003
2297
  /**
2004
- * Addon Tier
2005
- * Subscription tier
2298
+ * Max Allowed
2299
+ * Maximum allowed subgraphs (None = unlimited)
2006
2300
  */
2007
- addon_tier: string;
2301
+ max_allowed?: number | null;
2008
2302
  /**
2009
- * Is Active
2010
- * Whether subscription is active
2303
+ * Remaining
2304
+ * Remaining subgraphs that can be created
2011
2305
  */
2012
- is_active: boolean;
2306
+ remaining?: number | null;
2013
2307
  /**
2014
- * Activated At
2015
- * Activation date (ISO format)
2308
+ * Total Size Mb
2309
+ * Total size of all subgraphs
2016
2310
  */
2017
- activated_at: string;
2311
+ total_size_mb?: number | null;
2018
2312
  /**
2019
- * Expires At
2020
- * Expiration date (ISO format)
2313
+ * Max Size Mb
2314
+ * Maximum allowed total size
2021
2315
  */
2022
- expires_at?: string | null;
2316
+ max_size_mb?: number | null;
2317
+ };
2318
+ /**
2319
+ * SubgraphResponse
2320
+ * Response model for a subgraph.
2321
+ */
2322
+ export type SubgraphResponse = {
2023
2323
  /**
2024
- * Monthly Price Cents
2025
- * Monthly price in cents
2324
+ * Graph Id
2325
+ * Full subgraph identifier (e.g., kg123_dev)
2026
2326
  */
2027
- monthly_price_cents: number;
2327
+ graph_id: string;
2028
2328
  /**
2029
- * Features
2030
- * List of features
2329
+ * Parent Graph Id
2330
+ * Parent graph identifier
2031
2331
  */
2032
- features: Array<string>;
2332
+ parent_graph_id: string;
2033
2333
  /**
2034
- * Metadata
2035
- * Additional metadata
2334
+ * Subgraph Index
2335
+ * Numeric index of the subgraph
2036
2336
  */
2037
- metadata: {
2038
- [key: string]: unknown;
2039
- };
2040
- };
2041
- /**
2042
- * SubscriptionRequest
2043
- * Request to create a new subscription.
2044
- */
2045
- export type SubscriptionRequest = {
2337
+ subgraph_index: number;
2046
2338
  /**
2047
- * Type of repository to subscribe to
2339
+ * Subgraph Name
2340
+ * Alphanumeric name of the subgraph
2048
2341
  */
2049
- repository_type: RepositoryType;
2342
+ subgraph_name: string;
2050
2343
  /**
2051
- * Repository plan
2344
+ * Display Name
2345
+ * Human-readable display name
2052
2346
  */
2053
- repository_plan?: RepositoryPlan;
2054
- };
2055
- /**
2056
- * SubscriptionResponse
2057
- * Response for subscription creation.
2058
- */
2059
- export type SubscriptionResponse = {
2347
+ display_name: string;
2060
2348
  /**
2061
- * Message
2062
- * Success message
2349
+ * Description
2350
+ * Description of the subgraph's purpose
2063
2351
  */
2064
- message: string;
2352
+ description?: string | null;
2065
2353
  /**
2066
- * Created subscription details
2354
+ * Type of subgraph
2067
2355
  */
2068
- subscription: SubscriptionInfo;
2069
- };
2070
- /**
2071
- * SuccessResponse
2072
- * Standard success response for operations without specific return data.
2073
- */
2074
- export type SuccessResponse = {
2356
+ subgraph_type: SubgraphType;
2075
2357
  /**
2076
- * Success
2077
- * Indicates the operation completed successfully
2358
+ * Status
2359
+ * Current status of the subgraph
2078
2360
  */
2079
- success?: boolean;
2361
+ status: string;
2080
2362
  /**
2081
- * Message
2082
- * Human-readable success message
2363
+ * Created At
2364
+ * When the subgraph was created
2083
2365
  */
2084
- message: string;
2366
+ created_at: string;
2085
2367
  /**
2086
- * Data
2087
- * Optional additional data related to the operation
2368
+ * Updated At
2369
+ * When the subgraph was last updated
2088
2370
  */
2089
- data?: {
2090
- [key: string]: unknown;
2091
- } | null;
2092
- };
2093
- /**
2371
+ updated_at: string;
2372
+ /**
2373
+ * Size Mb
2374
+ * Size of the subgraph database in megabytes
2375
+ */
2376
+ size_mb?: number | null;
2377
+ /**
2378
+ * Node Count
2379
+ * Number of nodes in the subgraph
2380
+ */
2381
+ node_count?: number | null;
2382
+ /**
2383
+ * Edge Count
2384
+ * Number of edges in the subgraph
2385
+ */
2386
+ edge_count?: number | null;
2387
+ /**
2388
+ * Last Accessed
2389
+ * When the subgraph was last accessed
2390
+ */
2391
+ last_accessed?: string | null;
2392
+ /**
2393
+ * Metadata
2394
+ * Additional metadata for the subgraph
2395
+ */
2396
+ metadata?: {
2397
+ [key: string]: unknown;
2398
+ } | null;
2399
+ };
2400
+ /**
2401
+ * SubgraphSummary
2402
+ * Summary model for listing subgraphs.
2403
+ */
2404
+ export type SubgraphSummary = {
2405
+ /**
2406
+ * Graph Id
2407
+ * Full subgraph identifier
2408
+ */
2409
+ graph_id: string;
2410
+ /**
2411
+ * Subgraph Name
2412
+ * Alphanumeric name
2413
+ */
2414
+ subgraph_name: string;
2415
+ /**
2416
+ * Display Name
2417
+ * Human-readable name
2418
+ */
2419
+ display_name: string;
2420
+ /**
2421
+ * Type of subgraph
2422
+ */
2423
+ subgraph_type: SubgraphType;
2424
+ /**
2425
+ * Status
2426
+ * Current status
2427
+ */
2428
+ status: string;
2429
+ /**
2430
+ * Size Mb
2431
+ * Size in megabytes
2432
+ */
2433
+ size_mb?: number | null;
2434
+ /**
2435
+ * Created At
2436
+ * Creation timestamp
2437
+ */
2438
+ created_at: string;
2439
+ /**
2440
+ * Last Accessed
2441
+ * Last access timestamp
2442
+ */
2443
+ last_accessed?: string | null;
2444
+ };
2445
+ /**
2446
+ * SubgraphType
2447
+ * Types of subgraphs.
2448
+ */
2449
+ export type SubgraphType = 'static' | 'temporal' | 'versioned' | 'memory';
2450
+ /**
2451
+ * SubscriptionInfo
2452
+ * User subscription information.
2453
+ */
2454
+ export type SubscriptionInfo = {
2455
+ /**
2456
+ * Id
2457
+ * Subscription ID
2458
+ */
2459
+ id: string;
2460
+ /**
2461
+ * User Id
2462
+ * User ID
2463
+ */
2464
+ user_id: string;
2465
+ /**
2466
+ * Addon Type
2467
+ * Add-on type
2468
+ */
2469
+ addon_type: string;
2470
+ /**
2471
+ * Addon Tier
2472
+ * Subscription tier
2473
+ */
2474
+ addon_tier: string;
2475
+ /**
2476
+ * Is Active
2477
+ * Whether subscription is active
2478
+ */
2479
+ is_active: boolean;
2480
+ /**
2481
+ * Activated At
2482
+ * Activation date (ISO format)
2483
+ */
2484
+ activated_at: string;
2485
+ /**
2486
+ * Expires At
2487
+ * Expiration date (ISO format)
2488
+ */
2489
+ expires_at?: string | null;
2490
+ /**
2491
+ * Monthly Price Cents
2492
+ * Monthly price in cents
2493
+ */
2494
+ monthly_price_cents: number;
2495
+ /**
2496
+ * Features
2497
+ * List of features
2498
+ */
2499
+ features: Array<string>;
2500
+ /**
2501
+ * Metadata
2502
+ * Additional metadata
2503
+ */
2504
+ metadata: {
2505
+ [key: string]: unknown;
2506
+ };
2507
+ };
2508
+ /**
2509
+ * SubscriptionRequest
2510
+ * Request to create a new subscription.
2511
+ */
2512
+ export type SubscriptionRequest = {
2513
+ /**
2514
+ * Type of repository to subscribe to
2515
+ */
2516
+ repository_type: RepositoryType;
2517
+ /**
2518
+ * Repository plan
2519
+ */
2520
+ repository_plan?: RepositoryPlan;
2521
+ };
2522
+ /**
2523
+ * SubscriptionResponse
2524
+ * Response for subscription creation.
2525
+ */
2526
+ export type SubscriptionResponse = {
2527
+ /**
2528
+ * Message
2529
+ * Success message
2530
+ */
2531
+ message: string;
2532
+ /**
2533
+ * Created subscription details
2534
+ */
2535
+ subscription: SubscriptionInfo;
2536
+ };
2537
+ /**
2538
+ * SuccessResponse
2539
+ * Standard success response for operations without specific return data.
2540
+ */
2541
+ export type SuccessResponse = {
2542
+ /**
2543
+ * Success
2544
+ * Indicates the operation completed successfully
2545
+ */
2546
+ success?: boolean;
2547
+ /**
2548
+ * Message
2549
+ * Human-readable success message
2550
+ */
2551
+ message: string;
2552
+ /**
2553
+ * Data
2554
+ * Optional additional data related to the operation
2555
+ */
2556
+ data?: {
2557
+ [key: string]: unknown;
2558
+ } | null;
2559
+ };
2560
+ /**
2094
2561
  * SyncConnectionRequest
2095
2562
  * Request to sync a connection.
2096
2563
  */
@@ -2148,6 +2615,54 @@ export type TransactionSummaryResponse = {
2148
2615
  */
2149
2616
  last_transaction?: string | null;
2150
2617
  };
2618
+ /**
2619
+ * URLCopyRequest
2620
+ * Request model for URL copy operations (future).
2621
+ */
2622
+ export type UrlCopyRequest = {
2623
+ /**
2624
+ * Table Name
2625
+ * Target Kuzu table name
2626
+ */
2627
+ table_name: string;
2628
+ /**
2629
+ * Ignore Errors
2630
+ * Skip duplicate/invalid rows (enables upsert-like behavior)
2631
+ */
2632
+ ignore_errors?: boolean;
2633
+ /**
2634
+ * Extended Timeout
2635
+ * Use extended timeout for large datasets
2636
+ */
2637
+ extended_timeout?: boolean;
2638
+ /**
2639
+ * Validate Schema
2640
+ * Validate source schema against target table
2641
+ */
2642
+ validate_schema?: boolean;
2643
+ /**
2644
+ * Source Type
2645
+ * Source type identifier
2646
+ */
2647
+ source_type?: 'url';
2648
+ /**
2649
+ * Url
2650
+ * HTTP(S) URL to the data file
2651
+ */
2652
+ url: string;
2653
+ /**
2654
+ * File Format
2655
+ * File format of the URL data
2656
+ */
2657
+ file_format: 'parquet' | 'csv' | 'json';
2658
+ /**
2659
+ * Headers
2660
+ * Optional HTTP headers for authentication
2661
+ */
2662
+ headers?: {
2663
+ [key: string]: string;
2664
+ } | null;
2665
+ };
2151
2666
  /**
2152
2667
  * UpdateAPIKeyRequest
2153
2668
  * Request model for updating an API key.
@@ -2201,20 +2716,6 @@ export type UpdateUserRequest = {
2201
2716
  */
2202
2717
  email?: string | null;
2203
2718
  };
2204
- /**
2205
- * UpgradeSubscriptionRequest
2206
- * Request to upgrade a graph database subscription.
2207
- */
2208
- export type UpgradeSubscriptionRequest = {
2209
- /**
2210
- * Plan Name
2211
- */
2212
- plan_name: string;
2213
- /**
2214
- * Payment Method Id
2215
- */
2216
- payment_method_id?: string | null;
2217
- };
2218
2719
  /**
2219
2720
  * UserAnalyticsResponse
2220
2721
  * Response model for comprehensive user analytics.
@@ -2724,18 +3225,6 @@ export type CompleteSsoAuthResponses = {
2724
3225
  200: AuthResponse;
2725
3226
  };
2726
3227
  export type CompleteSsoAuthResponse = CompleteSsoAuthResponses[keyof CompleteSsoAuthResponses];
2727
- export type GetCaptchaConfigData = {
2728
- body?: never;
2729
- path?: never;
2730
- query?: never;
2731
- url: '/v1/auth/captcha/config';
2732
- };
2733
- export type GetCaptchaConfigResponses = {
2734
- /**
2735
- * CAPTCHA configuration
2736
- */
2737
- 200: unknown;
2738
- };
2739
3228
  export type GetPasswordPolicyData = {
2740
3229
  body?: never;
2741
3230
  path?: never;
@@ -2769,6 +3258,18 @@ export type CheckPasswordStrengthResponses = {
2769
3258
  200: PasswordCheckResponse;
2770
3259
  };
2771
3260
  export type CheckPasswordStrengthResponse = CheckPasswordStrengthResponses[keyof CheckPasswordStrengthResponses];
3261
+ export type GetCaptchaConfigData = {
3262
+ body?: never;
3263
+ path?: never;
3264
+ query?: never;
3265
+ url: '/v1/auth/captcha/config';
3266
+ };
3267
+ export type GetCaptchaConfigResponses = {
3268
+ /**
3269
+ * CAPTCHA configuration
3270
+ */
3271
+ 200: unknown;
3272
+ };
2772
3273
  export type GetServiceStatusData = {
2773
3274
  body?: never;
2774
3275
  path?: never;
@@ -2913,7 +3414,7 @@ export type GetAllCreditSummariesData = {
2913
3414
  };
2914
3415
  path?: never;
2915
3416
  query?: never;
2916
- url: '/v1/user/credits/summary';
3417
+ url: '/v1/user/credits';
2917
3418
  };
2918
3419
  export type GetAllCreditSummariesErrors = {
2919
3420
  /**
@@ -3152,6 +3653,35 @@ export type GetUserUsageResponses = {
3152
3653
  200: UserUsageResponse;
3153
3654
  };
3154
3655
  export type GetUserUsageResponse = GetUserUsageResponses[keyof GetUserUsageResponses];
3656
+ export type GetAllSharedRepositoryLimitsData = {
3657
+ body?: never;
3658
+ headers?: {
3659
+ /**
3660
+ * Authorization
3661
+ */
3662
+ authorization?: string | null;
3663
+ };
3664
+ path?: never;
3665
+ query?: never;
3666
+ url: '/v1/user/limits/shared-repositories/summary';
3667
+ };
3668
+ export type GetAllSharedRepositoryLimitsErrors = {
3669
+ /**
3670
+ * Validation Error
3671
+ */
3672
+ 422: HttpValidationError;
3673
+ };
3674
+ export type GetAllSharedRepositoryLimitsError = GetAllSharedRepositoryLimitsErrors[keyof GetAllSharedRepositoryLimitsErrors];
3675
+ export type GetAllSharedRepositoryLimitsResponses = {
3676
+ /**
3677
+ * Response Getallsharedrepositorylimits
3678
+ * Successful Response
3679
+ */
3680
+ 200: {
3681
+ [key: string]: unknown;
3682
+ };
3683
+ };
3684
+ export type GetAllSharedRepositoryLimitsResponse = GetAllSharedRepositoryLimitsResponses[keyof GetAllSharedRepositoryLimitsResponses];
3155
3685
  export type GetSharedRepositoryLimitsData = {
3156
3686
  body?: never;
3157
3687
  headers?: {
@@ -3187,7 +3717,7 @@ export type GetSharedRepositoryLimitsResponses = {
3187
3717
  };
3188
3718
  };
3189
3719
  export type GetSharedRepositoryLimitsResponse = GetSharedRepositoryLimitsResponses[keyof GetSharedRepositoryLimitsResponses];
3190
- export type GetAllSharedRepositoryLimitsData = {
3720
+ export type GetUserUsageOverviewData = {
3191
3721
  body?: never;
3192
3722
  headers?: {
3193
3723
  /**
@@ -3197,45 +3727,16 @@ export type GetAllSharedRepositoryLimitsData = {
3197
3727
  };
3198
3728
  path?: never;
3199
3729
  query?: never;
3200
- url: '/v1/user/limits/shared-repositories/summary';
3730
+ url: '/v1/user/analytics/overview';
3201
3731
  };
3202
- export type GetAllSharedRepositoryLimitsErrors = {
3732
+ export type GetUserUsageOverviewErrors = {
3203
3733
  /**
3204
3734
  * Validation Error
3205
3735
  */
3206
3736
  422: HttpValidationError;
3207
3737
  };
3208
- export type GetAllSharedRepositoryLimitsError = GetAllSharedRepositoryLimitsErrors[keyof GetAllSharedRepositoryLimitsErrors];
3209
- export type GetAllSharedRepositoryLimitsResponses = {
3210
- /**
3211
- * Response Getallsharedrepositorylimits
3212
- * Successful Response
3213
- */
3214
- 200: {
3215
- [key: string]: unknown;
3216
- };
3217
- };
3218
- export type GetAllSharedRepositoryLimitsResponse = GetAllSharedRepositoryLimitsResponses[keyof GetAllSharedRepositoryLimitsResponses];
3219
- export type GetUserUsageOverviewData = {
3220
- body?: never;
3221
- headers?: {
3222
- /**
3223
- * Authorization
3224
- */
3225
- authorization?: string | null;
3226
- };
3227
- path?: never;
3228
- query?: never;
3229
- url: '/v1/user/analytics/overview';
3230
- };
3231
- export type GetUserUsageOverviewErrors = {
3232
- /**
3233
- * Validation Error
3234
- */
3235
- 422: HttpValidationError;
3236
- };
3237
- export type GetUserUsageOverviewError = GetUserUsageOverviewErrors[keyof GetUserUsageOverviewErrors];
3238
- export type GetUserUsageOverviewResponses = {
3738
+ export type GetUserUsageOverviewError = GetUserUsageOverviewErrors[keyof GetUserUsageOverviewErrors];
3739
+ export type GetUserUsageOverviewResponses = {
3239
3740
  /**
3240
3741
  * Successful Response
3241
3742
  */
@@ -3519,46 +4020,6 @@ export type GetRepositoryCreditsResponses = {
3519
4020
  200: RepositoryCreditsResponse;
3520
4021
  };
3521
4022
  export type GetRepositoryCreditsResponse = GetRepositoryCreditsResponses[keyof GetRepositoryCreditsResponses];
3522
- export type GetConnectionOptionsData = {
3523
- body?: never;
3524
- headers?: {
3525
- /**
3526
- * Authorization
3527
- */
3528
- authorization?: string | null;
3529
- };
3530
- path: {
3531
- /**
3532
- * Graph Id
3533
- * Graph database identifier
3534
- */
3535
- graph_id: string;
3536
- };
3537
- query?: never;
3538
- url: '/v1/{graph_id}/connections/options';
3539
- };
3540
- export type GetConnectionOptionsErrors = {
3541
- /**
3542
- * Access denied to graph
3543
- */
3544
- 403: ErrorResponse;
3545
- /**
3546
- * Validation Error
3547
- */
3548
- 422: HttpValidationError;
3549
- /**
3550
- * Failed to retrieve options
3551
- */
3552
- 500: ErrorResponse;
3553
- };
3554
- export type GetConnectionOptionsError = GetConnectionOptionsErrors[keyof GetConnectionOptionsErrors];
3555
- export type GetConnectionOptionsResponses = {
3556
- /**
3557
- * Connection options retrieved successfully
3558
- */
3559
- 200: ConnectionOptionsResponse;
3560
- };
3561
- export type GetConnectionOptionsResponse = GetConnectionOptionsResponses[keyof GetConnectionOptionsResponses];
3562
4023
  export type ListConnectionsData = {
3563
4024
  body?: never;
3564
4025
  headers?: {
@@ -3757,6 +4218,46 @@ export type GetConnectionResponses = {
3757
4218
  200: ConnectionResponse;
3758
4219
  };
3759
4220
  export type GetConnectionResponse = GetConnectionResponses[keyof GetConnectionResponses];
4221
+ export type GetConnectionOptionsData = {
4222
+ body?: never;
4223
+ headers?: {
4224
+ /**
4225
+ * Authorization
4226
+ */
4227
+ authorization?: string | null;
4228
+ };
4229
+ path: {
4230
+ /**
4231
+ * Graph Id
4232
+ * Graph database identifier
4233
+ */
4234
+ graph_id: string;
4235
+ };
4236
+ query?: never;
4237
+ url: '/v1/{graph_id}/connections/options';
4238
+ };
4239
+ export type GetConnectionOptionsErrors = {
4240
+ /**
4241
+ * Access denied to graph
4242
+ */
4243
+ 403: ErrorResponse;
4244
+ /**
4245
+ * Validation Error
4246
+ */
4247
+ 422: HttpValidationError;
4248
+ /**
4249
+ * Failed to retrieve options
4250
+ */
4251
+ 500: ErrorResponse;
4252
+ };
4253
+ export type GetConnectionOptionsError = GetConnectionOptionsErrors[keyof GetConnectionOptionsErrors];
4254
+ export type GetConnectionOptionsResponses = {
4255
+ /**
4256
+ * Connection options retrieved successfully
4257
+ */
4258
+ 200: ConnectionOptionsResponse;
4259
+ };
4260
+ export type GetConnectionOptionsResponse = GetConnectionOptionsResponses[keyof GetConnectionOptionsResponses];
3760
4261
  export type SyncConnectionData = {
3761
4262
  body?: SyncConnectionRequest;
3762
4263
  headers?: {
@@ -4140,6 +4641,49 @@ export type CallMcpToolResponses = {
4140
4641
  */
4141
4642
  202: unknown;
4142
4643
  };
4644
+ export type ListBackupsData = {
4645
+ body?: never;
4646
+ headers?: {
4647
+ /**
4648
+ * Authorization
4649
+ */
4650
+ authorization?: string | null;
4651
+ };
4652
+ path: {
4653
+ /**
4654
+ * Graph Id
4655
+ * Graph database identifier
4656
+ */
4657
+ graph_id: string;
4658
+ };
4659
+ query?: {
4660
+ /**
4661
+ * Limit
4662
+ * Maximum number of backups to return
4663
+ */
4664
+ limit?: number;
4665
+ /**
4666
+ * Offset
4667
+ * Number of backups to skip
4668
+ */
4669
+ offset?: number;
4670
+ };
4671
+ url: '/v1/{graph_id}/backups';
4672
+ };
4673
+ export type ListBackupsErrors = {
4674
+ /**
4675
+ * Validation Error
4676
+ */
4677
+ 422: HttpValidationError;
4678
+ };
4679
+ export type ListBackupsError = ListBackupsErrors[keyof ListBackupsErrors];
4680
+ export type ListBackupsResponses = {
4681
+ /**
4682
+ * Successful Response
4683
+ */
4684
+ 200: BackupListResponse;
4685
+ };
4686
+ export type ListBackupsResponse = ListBackupsResponses[keyof ListBackupsResponses];
4143
4687
  export type CreateBackupData = {
4144
4688
  body: BackupCreateRequest;
4145
4689
  headers?: {
@@ -4156,7 +4700,7 @@ export type CreateBackupData = {
4156
4700
  graph_id: string;
4157
4701
  };
4158
4702
  query?: never;
4159
- url: '/v1/{graph_id}/backup/create';
4703
+ url: '/v1/{graph_id}/backups';
4160
4704
  };
4161
4705
  export type CreateBackupErrors = {
4162
4706
  /**
@@ -4187,45 +4731,52 @@ export type CreateBackupResponses = {
4187
4731
  */
4188
4732
  202: unknown;
4189
4733
  };
4190
- export type ListBackupsData = {
4734
+ export type ExportBackupData = {
4191
4735
  body?: never;
4192
- path: {
4736
+ headers?: {
4193
4737
  /**
4194
- * Graph Id
4195
- * Graph database identifier
4738
+ * Authorization
4196
4739
  */
4197
- graph_id: string;
4740
+ authorization?: string | null;
4198
4741
  };
4199
- query?: {
4742
+ path: {
4200
4743
  /**
4201
- * Limit
4202
- * Maximum number of backups to return
4744
+ * Backup Id
4745
+ * Backup identifier
4203
4746
  */
4204
- limit?: number;
4747
+ backup_id: string;
4205
4748
  /**
4206
- * Offset
4207
- * Number of backups to skip
4749
+ * Graph Id
4750
+ * Graph database identifier
4208
4751
  */
4209
- offset?: number;
4752
+ graph_id: string;
4210
4753
  };
4211
- url: '/v1/{graph_id}/backup/list';
4754
+ query?: never;
4755
+ url: '/v1/{graph_id}/backups/{backup_id}/export';
4212
4756
  };
4213
- export type ListBackupsErrors = {
4757
+ export type ExportBackupErrors = {
4758
+ /**
4759
+ * Access denied or backup is encrypted
4760
+ */
4761
+ 403: unknown;
4762
+ /**
4763
+ * Backup not found
4764
+ */
4765
+ 404: unknown;
4214
4766
  /**
4215
4767
  * Validation Error
4216
4768
  */
4217
4769
  422: HttpValidationError;
4218
4770
  };
4219
- export type ListBackupsError = ListBackupsErrors[keyof ListBackupsErrors];
4220
- export type ListBackupsResponses = {
4771
+ export type ExportBackupError = ExportBackupErrors[keyof ExportBackupErrors];
4772
+ export type ExportBackupResponses = {
4221
4773
  /**
4222
- * Successful Response
4774
+ * Backup exported successfully
4223
4775
  */
4224
- 200: BackupListResponse;
4776
+ 200: unknown;
4225
4777
  };
4226
- export type ListBackupsResponse = ListBackupsResponses[keyof ListBackupsResponses];
4227
- export type ExportBackupData = {
4228
- body: BackupExportRequest;
4778
+ export type GetBackupDownloadUrlData = {
4779
+ body?: never;
4229
4780
  headers?: {
4230
4781
  /**
4231
4782
  * Authorization
@@ -4233,16 +4784,27 @@ export type ExportBackupData = {
4233
4784
  authorization?: string | null;
4234
4785
  };
4235
4786
  path: {
4787
+ /**
4788
+ * Backup Id
4789
+ * Backup identifier
4790
+ */
4791
+ backup_id: string;
4236
4792
  /**
4237
4793
  * Graph Id
4238
4794
  * Graph database identifier
4239
4795
  */
4240
4796
  graph_id: string;
4241
4797
  };
4242
- query?: never;
4243
- url: '/v1/{graph_id}/backup/export';
4798
+ query?: {
4799
+ /**
4800
+ * Expires In
4801
+ * URL expiration time in seconds
4802
+ */
4803
+ expires_in?: number;
4804
+ };
4805
+ url: '/v1/{graph_id}/backups/{backup_id}/download';
4244
4806
  };
4245
- export type ExportBackupErrors = {
4807
+ export type GetBackupDownloadUrlErrors = {
4246
4808
  /**
4247
4809
  * Access denied or backup is encrypted
4248
4810
  */
@@ -4255,14 +4817,22 @@ export type ExportBackupErrors = {
4255
4817
  * Validation Error
4256
4818
  */
4257
4819
  422: HttpValidationError;
4820
+ /**
4821
+ * Failed to generate download URL
4822
+ */
4823
+ 500: unknown;
4258
4824
  };
4259
- export type ExportBackupError = ExportBackupErrors[keyof ExportBackupErrors];
4260
- export type ExportBackupResponses = {
4825
+ export type GetBackupDownloadUrlError = GetBackupDownloadUrlErrors[keyof GetBackupDownloadUrlErrors];
4826
+ export type GetBackupDownloadUrlResponses = {
4261
4827
  /**
4262
- * Backup exported successfully
4828
+ * Response Getbackupdownloadurl
4829
+ * Download URL generated successfully
4263
4830
  */
4264
- 200: unknown;
4831
+ 200: {
4832
+ [key: string]: unknown;
4833
+ };
4265
4834
  };
4835
+ export type GetBackupDownloadUrlResponse = GetBackupDownloadUrlResponses[keyof GetBackupDownloadUrlResponses];
4266
4836
  export type RestoreBackupData = {
4267
4837
  body: BackupRestoreRequest;
4268
4838
  headers?: {
@@ -4279,7 +4849,7 @@ export type RestoreBackupData = {
4279
4849
  graph_id: string;
4280
4850
  };
4281
4851
  query?: never;
4282
- url: '/v1/{graph_id}/backup/restore';
4852
+ url: '/v1/{graph_id}/backups/restore';
4283
4853
  };
4284
4854
  export type RestoreBackupErrors = {
4285
4855
  /**
@@ -4312,6 +4882,12 @@ export type RestoreBackupResponses = {
4312
4882
  };
4313
4883
  export type GetBackupStatsData = {
4314
4884
  body?: never;
4885
+ headers?: {
4886
+ /**
4887
+ * Authorization
4888
+ */
4889
+ authorization?: string | null;
4890
+ };
4315
4891
  path: {
4316
4892
  /**
4317
4893
  * Graph Id
@@ -4320,7 +4896,7 @@ export type GetBackupStatsData = {
4320
4896
  graph_id: string;
4321
4897
  };
4322
4898
  query?: never;
4323
- url: '/v1/{graph_id}/backup/stats';
4899
+ url: '/v1/{graph_id}/backups/stats';
4324
4900
  };
4325
4901
  export type GetBackupStatsErrors = {
4326
4902
  /**
@@ -4336,7 +4912,7 @@ export type GetBackupStatsResponses = {
4336
4912
  200: BackupStatsResponse;
4337
4913
  };
4338
4914
  export type GetBackupStatsResponse = GetBackupStatsResponses[keyof GetBackupStatsResponses];
4339
- export type KuzuBackupHealthData = {
4915
+ export type GetGraphMetricsData = {
4340
4916
  body?: never;
4341
4917
  headers?: {
4342
4918
  /**
@@ -4347,123 +4923,30 @@ export type KuzuBackupHealthData = {
4347
4923
  path: {
4348
4924
  /**
4349
4925
  * Graph Id
4350
- * Graph database identifier
4926
+ * The graph ID to get metrics for
4351
4927
  */
4352
4928
  graph_id: string;
4353
4929
  };
4354
4930
  query?: never;
4355
- url: '/v1/{graph_id}/backup/health';
4931
+ url: '/v1/{graph_id}/analytics';
4356
4932
  };
4357
- export type KuzuBackupHealthErrors = {
4933
+ export type GetGraphMetricsErrors = {
4934
+ /**
4935
+ * Access denied to graph
4936
+ */
4937
+ 403: ErrorResponse;
4938
+ /**
4939
+ * Graph not found or metrics unavailable
4940
+ */
4941
+ 404: ErrorResponse;
4358
4942
  /**
4359
4943
  * Validation Error
4360
4944
  */
4361
4945
  422: HttpValidationError;
4362
- };
4363
- export type KuzuBackupHealthError = KuzuBackupHealthErrors[keyof KuzuBackupHealthErrors];
4364
- export type KuzuBackupHealthResponses = {
4365
4946
  /**
4366
- * Response Kuzubackuphealth
4367
- * Successful Response
4947
+ * Failed to retrieve metrics
4368
4948
  */
4369
- 200: {
4370
- [key: string]: unknown;
4371
- };
4372
- };
4373
- export type KuzuBackupHealthResponse = KuzuBackupHealthResponses[keyof KuzuBackupHealthResponses];
4374
- export type GetBackupDownloadUrlData = {
4375
- body?: never;
4376
- headers?: {
4377
- /**
4378
- * Authorization
4379
- */
4380
- authorization?: string | null;
4381
- };
4382
- path: {
4383
- /**
4384
- * Backup Id
4385
- * Backup identifier
4386
- */
4387
- backup_id: string;
4388
- /**
4389
- * Graph Id
4390
- * Graph database identifier
4391
- */
4392
- graph_id: string;
4393
- };
4394
- query?: {
4395
- /**
4396
- * Expires In
4397
- * URL expiration time in seconds
4398
- */
4399
- expires_in?: number;
4400
- };
4401
- url: '/v1/{graph_id}/backup/{backup_id}/download';
4402
- };
4403
- export type GetBackupDownloadUrlErrors = {
4404
- /**
4405
- * Access denied or backup is encrypted
4406
- */
4407
- 403: unknown;
4408
- /**
4409
- * Backup not found
4410
- */
4411
- 404: unknown;
4412
- /**
4413
- * Validation Error
4414
- */
4415
- 422: HttpValidationError;
4416
- /**
4417
- * Failed to generate download URL
4418
- */
4419
- 500: unknown;
4420
- };
4421
- export type GetBackupDownloadUrlError = GetBackupDownloadUrlErrors[keyof GetBackupDownloadUrlErrors];
4422
- export type GetBackupDownloadUrlResponses = {
4423
- /**
4424
- * Response Getbackupdownloadurl
4425
- * Download URL generated successfully
4426
- */
4427
- 200: {
4428
- [key: string]: unknown;
4429
- };
4430
- };
4431
- export type GetBackupDownloadUrlResponse = GetBackupDownloadUrlResponses[keyof GetBackupDownloadUrlResponses];
4432
- export type GetGraphMetricsData = {
4433
- body?: never;
4434
- headers?: {
4435
- /**
4436
- * Authorization
4437
- */
4438
- authorization?: string | null;
4439
- };
4440
- path: {
4441
- /**
4442
- * Graph Id
4443
- * The graph ID to get metrics for
4444
- */
4445
- graph_id: string;
4446
- };
4447
- query?: never;
4448
- url: '/v1/{graph_id}/analytics';
4449
- };
4450
- export type GetGraphMetricsErrors = {
4451
- /**
4452
- * Access denied to graph
4453
- */
4454
- 403: ErrorResponse;
4455
- /**
4456
- * Graph not found or metrics unavailable
4457
- */
4458
- 404: ErrorResponse;
4459
- /**
4460
- * Validation Error
4461
- */
4462
- 422: HttpValidationError;
4463
- /**
4464
- * Failed to retrieve metrics
4465
- */
4466
- 500: ErrorResponse;
4949
+ 500: ErrorResponse;
4467
4950
  };
4468
4951
  export type GetGraphMetricsError = GetGraphMetricsErrors[keyof GetGraphMetricsErrors];
4469
4952
  export type GetGraphMetricsResponses = {
@@ -4809,7 +5292,7 @@ export type GetCurrentGraphBillResponses = {
4809
5292
  };
4810
5293
  };
4811
5294
  export type GetCurrentGraphBillResponse = GetCurrentGraphBillResponses[keyof GetCurrentGraphBillResponses];
4812
- export type GetGraphMonthlyBillData = {
5295
+ export type GetGraphUsageDetailsData = {
4813
5296
  body?: never;
4814
5297
  headers?: {
4815
5298
  /**
@@ -4819,25 +5302,26 @@ export type GetGraphMonthlyBillData = {
4819
5302
  };
4820
5303
  path: {
4821
5304
  /**
4822
- * Year
4823
- * Year (2024-2030)
5305
+ * Graph Id
5306
+ * Graph database identifier
4824
5307
  */
4825
- year: number;
5308
+ graph_id: string;
5309
+ };
5310
+ query?: {
4826
5311
  /**
4827
- * Month
4828
- * Month (1-12)
5312
+ * Year
5313
+ * Year (defaults to current)
4829
5314
  */
4830
- month: number;
5315
+ year?: number | null;
4831
5316
  /**
4832
- * Graph Id
4833
- * Graph database identifier
5317
+ * Month
5318
+ * Month (defaults to current)
4834
5319
  */
4835
- graph_id: string;
5320
+ month?: number | null;
4836
5321
  };
4837
- query?: never;
4838
- url: '/v1/{graph_id}/billing/history/{year}/{month}';
5322
+ url: '/v1/{graph_id}/billing/usage';
4839
5323
  };
4840
- export type GetGraphMonthlyBillErrors = {
5324
+ export type GetGraphUsageDetailsErrors = {
4841
5325
  /**
4842
5326
  * Invalid year or month
4843
5327
  */
@@ -4847,7 +5331,7 @@ export type GetGraphMonthlyBillErrors = {
4847
5331
  */
4848
5332
  403: ErrorResponse;
4849
5333
  /**
4850
- * Graph not found or no data for period
5334
+ * Graph not found
4851
5335
  */
4852
5336
  404: ErrorResponse;
4853
5337
  /**
@@ -4855,21 +5339,21 @@ export type GetGraphMonthlyBillErrors = {
4855
5339
  */
4856
5340
  422: HttpValidationError;
4857
5341
  /**
4858
- * Failed to calculate bill
5342
+ * Failed to retrieve usage
4859
5343
  */
4860
5344
  500: ErrorResponse;
4861
5345
  };
4862
- export type GetGraphMonthlyBillError = GetGraphMonthlyBillErrors[keyof GetGraphMonthlyBillErrors];
4863
- export type GetGraphMonthlyBillResponses = {
5346
+ export type GetGraphUsageDetailsError = GetGraphUsageDetailsErrors[keyof GetGraphUsageDetailsErrors];
5347
+ export type GetGraphUsageDetailsResponses = {
4864
5348
  /**
4865
- * Response Getgraphmonthlybill
4866
- * Monthly bill retrieved successfully
5349
+ * Response Getgraphusagedetails
5350
+ * Usage details retrieved successfully
4867
5351
  */
4868
5352
  200: {
4869
5353
  [key: string]: unknown;
4870
5354
  };
4871
5355
  };
4872
- export type GetGraphMonthlyBillResponse = GetGraphMonthlyBillResponses[keyof GetGraphMonthlyBillResponses];
5356
+ export type GetGraphUsageDetailsResponse = GetGraphUsageDetailsResponses[keyof GetGraphUsageDetailsResponses];
4873
5357
  export type GetGraphBillingHistoryData = {
4874
5358
  body?: never;
4875
5359
  headers?: {
@@ -4923,7 +5407,7 @@ export type GetGraphBillingHistoryResponses = {
4923
5407
  };
4924
5408
  };
4925
5409
  export type GetGraphBillingHistoryResponse = GetGraphBillingHistoryResponses[keyof GetGraphBillingHistoryResponses];
4926
- export type GetGraphUsageDetailsData = {
5410
+ export type GetGraphMonthlyBillData = {
4927
5411
  body?: never;
4928
5412
  headers?: {
4929
5413
  /**
@@ -4932,27 +5416,26 @@ export type GetGraphUsageDetailsData = {
4932
5416
  authorization?: string | null;
4933
5417
  };
4934
5418
  path: {
4935
- /**
4936
- * Graph Id
4937
- * Graph database identifier
4938
- */
4939
- graph_id: string;
4940
- };
4941
- query?: {
4942
5419
  /**
4943
5420
  * Year
4944
- * Year (defaults to current)
5421
+ * Year (2024-2030)
4945
5422
  */
4946
- year?: number | null;
5423
+ year: number;
4947
5424
  /**
4948
5425
  * Month
4949
- * Month (defaults to current)
5426
+ * Month (1-12)
4950
5427
  */
4951
- month?: number | null;
5428
+ month: number;
5429
+ /**
5430
+ * Graph Id
5431
+ * Graph database identifier
5432
+ */
5433
+ graph_id: string;
4952
5434
  };
4953
- url: '/v1/{graph_id}/billing/usage';
5435
+ query?: never;
5436
+ url: '/v1/{graph_id}/billing/history/{year}/{month}';
4954
5437
  };
4955
- export type GetGraphUsageDetailsErrors = {
5438
+ export type GetGraphMonthlyBillErrors = {
4956
5439
  /**
4957
5440
  * Invalid year or month
4958
5441
  */
@@ -4962,7 +5445,7 @@ export type GetGraphUsageDetailsErrors = {
4962
5445
  */
4963
5446
  403: ErrorResponse;
4964
5447
  /**
4965
- * Graph not found
5448
+ * Graph not found or no data for period
4966
5449
  */
4967
5450
  404: ErrorResponse;
4968
5451
  /**
@@ -4970,22 +5453,22 @@ export type GetGraphUsageDetailsErrors = {
4970
5453
  */
4971
5454
  422: HttpValidationError;
4972
5455
  /**
4973
- * Failed to retrieve usage
5456
+ * Failed to calculate bill
4974
5457
  */
4975
5458
  500: ErrorResponse;
4976
5459
  };
4977
- export type GetGraphUsageDetailsError = GetGraphUsageDetailsErrors[keyof GetGraphUsageDetailsErrors];
4978
- export type GetGraphUsageDetailsResponses = {
5460
+ export type GetGraphMonthlyBillError = GetGraphMonthlyBillErrors[keyof GetGraphMonthlyBillErrors];
5461
+ export type GetGraphMonthlyBillResponses = {
4979
5462
  /**
4980
- * Response Getgraphusagedetails
4981
- * Usage details retrieved successfully
5463
+ * Response Getgraphmonthlybill
5464
+ * Monthly bill retrieved successfully
4982
5465
  */
4983
5466
  200: {
4984
5467
  [key: string]: unknown;
4985
5468
  };
4986
5469
  };
4987
- export type GetGraphUsageDetailsResponse = GetGraphUsageDetailsResponses[keyof GetGraphUsageDetailsResponses];
4988
- export type GetGraphPricingInfoV1GraphIdBillingPricingGetData = {
5470
+ export type GetGraphMonthlyBillResponse = GetGraphMonthlyBillResponses[keyof GetGraphMonthlyBillResponses];
5471
+ export type GetCreditSummaryData = {
4989
5472
  body?: never;
4990
5473
  headers?: {
4991
5474
  /**
@@ -4996,28 +5479,41 @@ export type GetGraphPricingInfoV1GraphIdBillingPricingGetData = {
4996
5479
  path: {
4997
5480
  /**
4998
5481
  * Graph Id
4999
- * Graph database ID
5482
+ * Graph database identifier
5000
5483
  */
5001
5484
  graph_id: string;
5002
5485
  };
5003
5486
  query?: never;
5004
- url: '/v1/{graph_id}/billing/pricing';
5487
+ url: '/v1/{graph_id}/credits/summary';
5005
5488
  };
5006
- export type GetGraphPricingInfoV1GraphIdBillingPricingGetErrors = {
5489
+ export type GetCreditSummaryErrors = {
5490
+ /**
5491
+ * Access denied to graph
5492
+ */
5493
+ 403: ErrorResponse;
5494
+ /**
5495
+ * Credit pool not found for graph
5496
+ */
5497
+ 404: ErrorResponse;
5007
5498
  /**
5008
5499
  * Validation Error
5009
5500
  */
5010
5501
  422: HttpValidationError;
5502
+ /**
5503
+ * Failed to retrieve credit summary
5504
+ */
5505
+ 500: ErrorResponse;
5011
5506
  };
5012
- export type GetGraphPricingInfoV1GraphIdBillingPricingGetError = GetGraphPricingInfoV1GraphIdBillingPricingGetErrors[keyof GetGraphPricingInfoV1GraphIdBillingPricingGetErrors];
5013
- export type GetGraphPricingInfoV1GraphIdBillingPricingGetResponses = {
5507
+ export type GetCreditSummaryError = GetCreditSummaryErrors[keyof GetCreditSummaryErrors];
5508
+ export type GetCreditSummaryResponses = {
5014
5509
  /**
5015
- * Successful Response
5510
+ * Credit summary retrieved successfully
5016
5511
  */
5017
- 200: unknown;
5512
+ 200: CreditSummaryResponse;
5018
5513
  };
5019
- export type UpgradeGraphSubscriptionV1GraphIdBillingSubscriptionUpgradePostData = {
5020
- body: UpgradeSubscriptionRequest;
5514
+ export type GetCreditSummaryResponse = GetCreditSummaryResponses[keyof GetCreditSummaryResponses];
5515
+ export type ListCreditTransactionsData = {
5516
+ body?: never;
5021
5517
  headers?: {
5022
5518
  /**
5023
5519
  * Authorization
@@ -5027,27 +5523,71 @@ export type UpgradeGraphSubscriptionV1GraphIdBillingSubscriptionUpgradePostData
5027
5523
  path: {
5028
5524
  /**
5029
5525
  * Graph Id
5030
- * Graph database ID
5526
+ * Graph database identifier
5031
5527
  */
5032
5528
  graph_id: string;
5033
5529
  };
5034
- query?: never;
5035
- url: '/v1/{graph_id}/billing/subscription/upgrade';
5530
+ query?: {
5531
+ /**
5532
+ * Transaction Type
5533
+ * Filter by transaction type (allocation, consumption, bonus, refund)
5534
+ */
5535
+ transaction_type?: string | null;
5536
+ /**
5537
+ * Operation Type
5538
+ * Filter by operation type (e.g., entity_lookup, cypher_query)
5539
+ */
5540
+ operation_type?: string | null;
5541
+ /**
5542
+ * Start Date
5543
+ * Start date for filtering (ISO format: YYYY-MM-DD)
5544
+ */
5545
+ start_date?: string | null;
5546
+ /**
5547
+ * End Date
5548
+ * End date for filtering (ISO format: YYYY-MM-DD)
5549
+ */
5550
+ end_date?: string | null;
5551
+ /**
5552
+ * Limit
5553
+ * Maximum number of transactions to return
5554
+ */
5555
+ limit?: number;
5556
+ /**
5557
+ * Offset
5558
+ * Number of transactions to skip
5559
+ */
5560
+ offset?: number;
5561
+ };
5562
+ url: '/v1/{graph_id}/credits/transactions';
5036
5563
  };
5037
- export type UpgradeGraphSubscriptionV1GraphIdBillingSubscriptionUpgradePostErrors = {
5564
+ export type ListCreditTransactionsErrors = {
5565
+ /**
5566
+ * Invalid transaction type filter
5567
+ */
5568
+ 400: ErrorResponse;
5569
+ /**
5570
+ * Access denied to graph
5571
+ */
5572
+ 403: ErrorResponse;
5038
5573
  /**
5039
5574
  * Validation Error
5040
5575
  */
5041
5576
  422: HttpValidationError;
5577
+ /**
5578
+ * Failed to retrieve transactions
5579
+ */
5580
+ 500: ErrorResponse;
5042
5581
  };
5043
- export type UpgradeGraphSubscriptionV1GraphIdBillingSubscriptionUpgradePostError = UpgradeGraphSubscriptionV1GraphIdBillingSubscriptionUpgradePostErrors[keyof UpgradeGraphSubscriptionV1GraphIdBillingSubscriptionUpgradePostErrors];
5044
- export type UpgradeGraphSubscriptionV1GraphIdBillingSubscriptionUpgradePostResponses = {
5582
+ export type ListCreditTransactionsError = ListCreditTransactionsErrors[keyof ListCreditTransactionsErrors];
5583
+ export type ListCreditTransactionsResponses = {
5045
5584
  /**
5046
- * Successful Response
5585
+ * Transaction history retrieved successfully
5047
5586
  */
5048
- 200: unknown;
5587
+ 200: DetailedTransactionsResponse;
5049
5588
  };
5050
- export type GetGraphSubscriptionV1GraphIdBillingSubscriptionGetData = {
5589
+ export type ListCreditTransactionsResponse = ListCreditTransactionsResponses[keyof ListCreditTransactionsResponses];
5590
+ export type CheckCreditBalanceData = {
5051
5591
  body?: never;
5052
5592
  headers?: {
5053
5593
  /**
@@ -5058,27 +5598,54 @@ export type GetGraphSubscriptionV1GraphIdBillingSubscriptionGetData = {
5058
5598
  path: {
5059
5599
  /**
5060
5600
  * Graph Id
5061
- * Graph database ID
5601
+ * Graph database identifier
5062
5602
  */
5063
5603
  graph_id: string;
5064
5604
  };
5065
- query?: never;
5066
- url: '/v1/{graph_id}/billing/subscription';
5067
- };
5068
- export type GetGraphSubscriptionV1GraphIdBillingSubscriptionGetErrors = {
5605
+ query: {
5606
+ /**
5607
+ * Operation Type
5608
+ * Type of operation to check
5609
+ */
5610
+ operation_type: string;
5611
+ /**
5612
+ * Base Cost
5613
+ * Custom base cost (uses default if not provided)
5614
+ */
5615
+ base_cost?: number | null;
5616
+ };
5617
+ url: '/v1/{graph_id}/credits/balance/check';
5618
+ };
5619
+ export type CheckCreditBalanceErrors = {
5620
+ /**
5621
+ * Access denied to graph
5622
+ */
5623
+ 403: ErrorResponse;
5624
+ /**
5625
+ * Credit pool not found
5626
+ */
5627
+ 404: ErrorResponse;
5069
5628
  /**
5070
5629
  * Validation Error
5071
5630
  */
5072
5631
  422: HttpValidationError;
5632
+ /**
5633
+ * Credit check failed
5634
+ */
5635
+ 500: ErrorResponse;
5073
5636
  };
5074
- export type GetGraphSubscriptionV1GraphIdBillingSubscriptionGetError = GetGraphSubscriptionV1GraphIdBillingSubscriptionGetErrors[keyof GetGraphSubscriptionV1GraphIdBillingSubscriptionGetErrors];
5075
- export type GetGraphSubscriptionV1GraphIdBillingSubscriptionGetResponses = {
5637
+ export type CheckCreditBalanceError = CheckCreditBalanceErrors[keyof CheckCreditBalanceErrors];
5638
+ export type CheckCreditBalanceResponses = {
5076
5639
  /**
5077
- * Successful Response
5640
+ * Response Checkcreditbalance
5641
+ * Credit check completed
5078
5642
  */
5079
- 200: unknown;
5643
+ 200: {
5644
+ [key: string]: unknown;
5645
+ };
5080
5646
  };
5081
- export type GetAvailableSubscriptionPlansV1GraphIdBillingAvailablePlansGetData = {
5647
+ export type CheckCreditBalanceResponse = CheckCreditBalanceResponses[keyof CheckCreditBalanceResponses];
5648
+ export type GetStorageUsageData = {
5082
5649
  body?: never;
5083
5650
  headers?: {
5084
5651
  /**
@@ -5089,27 +5656,45 @@ export type GetAvailableSubscriptionPlansV1GraphIdBillingAvailablePlansGetData =
5089
5656
  path: {
5090
5657
  /**
5091
5658
  * Graph Id
5092
- * Graph database ID
5659
+ * Graph database identifier
5093
5660
  */
5094
5661
  graph_id: string;
5095
5662
  };
5096
- query?: never;
5097
- url: '/v1/{graph_id}/billing/available-plans';
5663
+ query?: {
5664
+ /**
5665
+ * Days
5666
+ * Number of days of history to return
5667
+ */
5668
+ days?: number;
5669
+ };
5670
+ url: '/v1/{graph_id}/credits/storage/usage';
5098
5671
  };
5099
- export type GetAvailableSubscriptionPlansV1GraphIdBillingAvailablePlansGetErrors = {
5672
+ export type GetStorageUsageErrors = {
5673
+ /**
5674
+ * Access denied to graph
5675
+ */
5676
+ 403: ErrorResponse;
5100
5677
  /**
5101
5678
  * Validation Error
5102
5679
  */
5103
5680
  422: HttpValidationError;
5681
+ /**
5682
+ * Failed to retrieve storage usage
5683
+ */
5684
+ 500: ErrorResponse;
5104
5685
  };
5105
- export type GetAvailableSubscriptionPlansV1GraphIdBillingAvailablePlansGetError = GetAvailableSubscriptionPlansV1GraphIdBillingAvailablePlansGetErrors[keyof GetAvailableSubscriptionPlansV1GraphIdBillingAvailablePlansGetErrors];
5106
- export type GetAvailableSubscriptionPlansV1GraphIdBillingAvailablePlansGetResponses = {
5686
+ export type GetStorageUsageError = GetStorageUsageErrors[keyof GetStorageUsageErrors];
5687
+ export type GetStorageUsageResponses = {
5107
5688
  /**
5108
- * Successful Response
5689
+ * Response Getstorageusage
5690
+ * Storage usage retrieved successfully
5109
5691
  */
5110
- 200: unknown;
5692
+ 200: {
5693
+ [key: string]: unknown;
5694
+ };
5111
5695
  };
5112
- export type GetCreditBillingInfoV1GraphIdBillingCreditsGetData = {
5696
+ export type GetStorageUsageResponse = GetStorageUsageResponses[keyof GetStorageUsageResponses];
5697
+ export type CheckStorageLimitsData = {
5113
5698
  body?: never;
5114
5699
  headers?: {
5115
5700
  /**
@@ -5120,27 +5705,40 @@ export type GetCreditBillingInfoV1GraphIdBillingCreditsGetData = {
5120
5705
  path: {
5121
5706
  /**
5122
5707
  * Graph Id
5123
- * Graph database ID
5708
+ * Graph database identifier
5124
5709
  */
5125
5710
  graph_id: string;
5126
5711
  };
5127
5712
  query?: never;
5128
- url: '/v1/{graph_id}/billing/credits';
5713
+ url: '/v1/{graph_id}/credits/storage/limits';
5129
5714
  };
5130
- export type GetCreditBillingInfoV1GraphIdBillingCreditsGetErrors = {
5715
+ export type CheckStorageLimitsErrors = {
5716
+ /**
5717
+ * Access denied to graph
5718
+ */
5719
+ 403: ErrorResponse;
5720
+ /**
5721
+ * No credit pool found for graph
5722
+ */
5723
+ 404: ErrorResponse;
5131
5724
  /**
5132
5725
  * Validation Error
5133
5726
  */
5134
5727
  422: HttpValidationError;
5728
+ /**
5729
+ * Failed to retrieve storage limits
5730
+ */
5731
+ 500: ErrorResponse;
5135
5732
  };
5136
- export type GetCreditBillingInfoV1GraphIdBillingCreditsGetError = GetCreditBillingInfoV1GraphIdBillingCreditsGetErrors[keyof GetCreditBillingInfoV1GraphIdBillingCreditsGetErrors];
5137
- export type GetCreditBillingInfoV1GraphIdBillingCreditsGetResponses = {
5733
+ export type CheckStorageLimitsError = CheckStorageLimitsErrors[keyof CheckStorageLimitsErrors];
5734
+ export type CheckStorageLimitsResponses = {
5138
5735
  /**
5139
- * Successful Response
5736
+ * Storage limit information retrieved successfully
5140
5737
  */
5141
- 200: unknown;
5738
+ 200: StorageLimitResponse;
5142
5739
  };
5143
- export type GetCreditSummaryData = {
5740
+ export type CheckStorageLimitsResponse = CheckStorageLimitsResponses[keyof CheckStorageLimitsResponses];
5741
+ export type GetDatabaseHealthData = {
5144
5742
  body?: never;
5145
5743
  headers?: {
5146
5744
  /**
@@ -5156,35 +5754,35 @@ export type GetCreditSummaryData = {
5156
5754
  graph_id: string;
5157
5755
  };
5158
5756
  query?: never;
5159
- url: '/v1/{graph_id}/credits/summary';
5757
+ url: '/v1/{graph_id}/health';
5160
5758
  };
5161
- export type GetCreditSummaryErrors = {
5759
+ export type GetDatabaseHealthErrors = {
5162
5760
  /**
5163
5761
  * Access denied to graph
5164
5762
  */
5165
- 403: ErrorResponse;
5763
+ 403: unknown;
5166
5764
  /**
5167
- * Credit pool not found for graph
5765
+ * Graph not found
5168
5766
  */
5169
- 404: ErrorResponse;
5767
+ 404: unknown;
5170
5768
  /**
5171
5769
  * Validation Error
5172
5770
  */
5173
5771
  422: HttpValidationError;
5174
5772
  /**
5175
- * Failed to retrieve credit summary
5773
+ * Failed to retrieve health information
5176
5774
  */
5177
- 500: ErrorResponse;
5775
+ 500: unknown;
5178
5776
  };
5179
- export type GetCreditSummaryError = GetCreditSummaryErrors[keyof GetCreditSummaryErrors];
5180
- export type GetCreditSummaryResponses = {
5777
+ export type GetDatabaseHealthError = GetDatabaseHealthErrors[keyof GetDatabaseHealthErrors];
5778
+ export type GetDatabaseHealthResponses = {
5181
5779
  /**
5182
- * Credit summary retrieved successfully
5780
+ * Database health retrieved successfully
5183
5781
  */
5184
- 200: CreditSummaryResponse;
5782
+ 200: DatabaseHealthResponse;
5185
5783
  };
5186
- export type GetCreditSummaryResponse = GetCreditSummaryResponses[keyof GetCreditSummaryResponses];
5187
- export type ListCreditTransactionsData = {
5784
+ export type GetDatabaseHealthResponse = GetDatabaseHealthResponses[keyof GetDatabaseHealthResponses];
5785
+ export type GetDatabaseInfoData = {
5188
5786
  body?: never;
5189
5787
  headers?: {
5190
5788
  /**
@@ -5199,68 +5797,37 @@ export type ListCreditTransactionsData = {
5199
5797
  */
5200
5798
  graph_id: string;
5201
5799
  };
5202
- query?: {
5203
- /**
5204
- * Transaction Type
5205
- * Filter by transaction type (allocation, consumption, bonus, refund)
5206
- */
5207
- transaction_type?: string | null;
5208
- /**
5209
- * Operation Type
5210
- * Filter by operation type (e.g., entity_lookup, cypher_query)
5211
- */
5212
- operation_type?: string | null;
5213
- /**
5214
- * Start Date
5215
- * Start date for filtering (ISO format: YYYY-MM-DD)
5216
- */
5217
- start_date?: string | null;
5218
- /**
5219
- * End Date
5220
- * End date for filtering (ISO format: YYYY-MM-DD)
5221
- */
5222
- end_date?: string | null;
5223
- /**
5224
- * Limit
5225
- * Maximum number of transactions to return
5226
- */
5227
- limit?: number;
5228
- /**
5229
- * Offset
5230
- * Number of transactions to skip
5231
- */
5232
- offset?: number;
5233
- };
5234
- url: '/v1/{graph_id}/credits/transactions';
5800
+ query?: never;
5801
+ url: '/v1/{graph_id}/info';
5235
5802
  };
5236
- export type ListCreditTransactionsErrors = {
5803
+ export type GetDatabaseInfoErrors = {
5237
5804
  /**
5238
- * Invalid transaction type filter
5805
+ * Access denied to graph
5239
5806
  */
5240
- 400: ErrorResponse;
5807
+ 403: unknown;
5241
5808
  /**
5242
- * Access denied to graph
5809
+ * Graph not found
5243
5810
  */
5244
- 403: ErrorResponse;
5811
+ 404: unknown;
5245
5812
  /**
5246
5813
  * Validation Error
5247
5814
  */
5248
5815
  422: HttpValidationError;
5249
5816
  /**
5250
- * Failed to retrieve transactions
5817
+ * Failed to retrieve database information
5251
5818
  */
5252
- 500: ErrorResponse;
5819
+ 500: unknown;
5253
5820
  };
5254
- export type ListCreditTransactionsError = ListCreditTransactionsErrors[keyof ListCreditTransactionsErrors];
5255
- export type ListCreditTransactionsResponses = {
5821
+ export type GetDatabaseInfoError = GetDatabaseInfoErrors[keyof GetDatabaseInfoErrors];
5822
+ export type GetDatabaseInfoResponses = {
5256
5823
  /**
5257
- * Transaction history retrieved successfully
5824
+ * Database information retrieved successfully
5258
5825
  */
5259
- 200: DetailedTransactionsResponse;
5826
+ 200: DatabaseInfoResponse;
5260
5827
  };
5261
- export type ListCreditTransactionsResponse = ListCreditTransactionsResponses[keyof ListCreditTransactionsResponses];
5262
- export type CheckCreditBalanceData = {
5263
- body: CreditCheckRequest;
5828
+ export type GetDatabaseInfoResponse = GetDatabaseInfoResponses[keyof GetDatabaseInfoResponses];
5829
+ export type GetGraphLimitsData = {
5830
+ body?: never;
5264
5831
  headers?: {
5265
5832
  /**
5266
5833
  * Authorization
@@ -5270,43 +5837,43 @@ export type CheckCreditBalanceData = {
5270
5837
  path: {
5271
5838
  /**
5272
5839
  * Graph Id
5273
- * Graph database identifier
5840
+ * Graph database identifier (user graph or shared repository)
5274
5841
  */
5275
5842
  graph_id: string;
5276
5843
  };
5277
5844
  query?: never;
5278
- url: '/v1/{graph_id}/credits/check';
5845
+ url: '/v1/{graph_id}/limits';
5279
5846
  };
5280
- export type CheckCreditBalanceErrors = {
5847
+ export type GetGraphLimitsErrors = {
5281
5848
  /**
5282
5849
  * Access denied to graph
5283
5850
  */
5284
- 403: ErrorResponse;
5851
+ 403: unknown;
5285
5852
  /**
5286
- * Credit pool not found
5853
+ * Graph not found
5287
5854
  */
5288
- 404: ErrorResponse;
5855
+ 404: unknown;
5289
5856
  /**
5290
5857
  * Validation Error
5291
5858
  */
5292
5859
  422: HttpValidationError;
5293
5860
  /**
5294
- * Credit check failed
5861
+ * Failed to retrieve limits
5295
5862
  */
5296
- 500: ErrorResponse;
5863
+ 500: unknown;
5297
5864
  };
5298
- export type CheckCreditBalanceError = CheckCreditBalanceErrors[keyof CheckCreditBalanceErrors];
5299
- export type CheckCreditBalanceResponses = {
5865
+ export type GetGraphLimitsError = GetGraphLimitsErrors[keyof GetGraphLimitsErrors];
5866
+ export type GetGraphLimitsResponses = {
5300
5867
  /**
5301
- * Response Checkcreditbalance
5302
- * Credit check completed
5868
+ * Response Getgraphlimits
5869
+ * Limits retrieved successfully
5303
5870
  */
5304
5871
  200: {
5305
5872
  [key: string]: unknown;
5306
5873
  };
5307
5874
  };
5308
- export type CheckCreditBalanceResponse = CheckCreditBalanceResponses[keyof CheckCreditBalanceResponses];
5309
- export type GetStorageUsageData = {
5875
+ export type GetGraphLimitsResponse = GetGraphLimitsResponses[keyof GetGraphLimitsResponses];
5876
+ export type ListSubgraphsData = {
5310
5877
  body?: never;
5311
5878
  headers?: {
5312
5879
  /**
@@ -5317,46 +5884,61 @@ export type GetStorageUsageData = {
5317
5884
  path: {
5318
5885
  /**
5319
5886
  * Graph Id
5320
- * Graph database identifier
5887
+ * Parent graph ID (e.g., 'kg1a2b3c4d5')
5321
5888
  */
5322
5889
  graph_id: string;
5323
5890
  };
5324
- query?: {
5891
+ query?: never;
5892
+ url: '/v1/{graph_id}/subgraphs';
5893
+ };
5894
+ export type ListSubgraphsErrors = {
5895
+ /**
5896
+ * Validation Error
5897
+ */
5898
+ 422: HttpValidationError;
5899
+ };
5900
+ export type ListSubgraphsError = ListSubgraphsErrors[keyof ListSubgraphsErrors];
5901
+ export type ListSubgraphsResponses = {
5902
+ /**
5903
+ * Successful Response
5904
+ */
5905
+ 200: ListSubgraphsResponse;
5906
+ };
5907
+ export type ListSubgraphsResponse2 = ListSubgraphsResponses[keyof ListSubgraphsResponses];
5908
+ export type CreateSubgraphData = {
5909
+ body: CreateSubgraphRequest;
5910
+ headers?: {
5325
5911
  /**
5326
- * Days
5327
- * Number of days of history to return
5912
+ * Authorization
5328
5913
  */
5329
- days?: number;
5914
+ authorization?: string | null;
5330
5915
  };
5331
- url: '/v1/{graph_id}/credits/storage/usage';
5916
+ path: {
5917
+ /**
5918
+ * Graph Id
5919
+ * Parent graph ID (e.g., 'kg1a2b3c4d5')
5920
+ */
5921
+ graph_id: string;
5922
+ };
5923
+ query?: never;
5924
+ url: '/v1/{graph_id}/subgraphs';
5332
5925
  };
5333
- export type GetStorageUsageErrors = {
5334
- /**
5335
- * Access denied to graph
5336
- */
5337
- 403: ErrorResponse;
5926
+ export type CreateSubgraphErrors = {
5338
5927
  /**
5339
5928
  * Validation Error
5340
5929
  */
5341
5930
  422: HttpValidationError;
5342
- /**
5343
- * Failed to retrieve storage usage
5344
- */
5345
- 500: ErrorResponse;
5346
5931
  };
5347
- export type GetStorageUsageError = GetStorageUsageErrors[keyof GetStorageUsageErrors];
5348
- export type GetStorageUsageResponses = {
5932
+ export type CreateSubgraphError = CreateSubgraphErrors[keyof CreateSubgraphErrors];
5933
+ export type CreateSubgraphResponses = {
5349
5934
  /**
5350
- * Response Getstorageusage
5351
- * Storage usage retrieved successfully
5935
+ * Successful Response
5352
5936
  */
5353
- 200: {
5354
- [key: string]: unknown;
5355
- };
5937
+ 201: SubgraphResponse;
5356
5938
  };
5357
- export type GetStorageUsageResponse = GetStorageUsageResponses[keyof GetStorageUsageResponses];
5358
- export type CheckStorageLimitsData = {
5359
- body?: never;
5939
+ export type CreateSubgraphResponse = CreateSubgraphResponses[keyof CreateSubgraphResponses];
5940
+ export type DeleteSubgraphData = {
5941
+ body?: DeleteSubgraphRequest;
5360
5942
  headers?: {
5361
5943
  /**
5362
5944
  * Authorization
@@ -5366,40 +5948,57 @@ export type CheckStorageLimitsData = {
5366
5948
  path: {
5367
5949
  /**
5368
5950
  * Graph Id
5369
- * Graph database identifier
5951
+ * Parent graph identifier
5370
5952
  */
5371
5953
  graph_id: string;
5954
+ /**
5955
+ * Subgraph Id
5956
+ * Subgraph identifier to delete
5957
+ */
5958
+ subgraph_id: string;
5372
5959
  };
5373
5960
  query?: never;
5374
- url: '/v1/{graph_id}/credits/storage/limits';
5961
+ url: '/v1/{graph_id}/subgraphs/{subgraph_id}';
5375
5962
  };
5376
- export type CheckStorageLimitsErrors = {
5963
+ export type DeleteSubgraphErrors = {
5377
5964
  /**
5378
- * Access denied to graph
5965
+ * Invalid subgraph identifier
5379
5966
  */
5380
- 403: ErrorResponse;
5967
+ 400: unknown;
5381
5968
  /**
5382
- * No credit pool found for graph
5969
+ * Not authenticated
5383
5970
  */
5384
- 404: ErrorResponse;
5971
+ 401: unknown;
5972
+ /**
5973
+ * Insufficient permissions
5974
+ */
5975
+ 403: unknown;
5976
+ /**
5977
+ * Subgraph not found
5978
+ */
5979
+ 404: unknown;
5980
+ /**
5981
+ * Subgraph contains data (use force=true)
5982
+ */
5983
+ 409: unknown;
5385
5984
  /**
5386
5985
  * Validation Error
5387
5986
  */
5388
5987
  422: HttpValidationError;
5389
5988
  /**
5390
- * Failed to retrieve storage limits
5989
+ * Internal server error
5391
5990
  */
5392
- 500: ErrorResponse;
5991
+ 500: unknown;
5393
5992
  };
5394
- export type CheckStorageLimitsError = CheckStorageLimitsErrors[keyof CheckStorageLimitsErrors];
5395
- export type CheckStorageLimitsResponses = {
5993
+ export type DeleteSubgraphError = DeleteSubgraphErrors[keyof DeleteSubgraphErrors];
5994
+ export type DeleteSubgraphResponses = {
5396
5995
  /**
5397
- * Storage limit information retrieved successfully
5996
+ * Subgraph deleted successfully
5398
5997
  */
5399
- 200: StorageLimitResponse;
5998
+ 200: DeleteSubgraphResponse;
5400
5999
  };
5401
- export type CheckStorageLimitsResponse = CheckStorageLimitsResponses[keyof CheckStorageLimitsResponses];
5402
- export type GetDatabaseHealthData = {
6000
+ export type DeleteSubgraphResponse2 = DeleteSubgraphResponses[keyof DeleteSubgraphResponses];
6001
+ export type GetSubgraphInfoData = {
5403
6002
  body?: never;
5404
6003
  headers?: {
5405
6004
  /**
@@ -5410,20 +6009,33 @@ export type GetDatabaseHealthData = {
5410
6009
  path: {
5411
6010
  /**
5412
6011
  * Graph Id
5413
- * Graph database identifier
6012
+ * Parent graph identifier
5414
6013
  */
5415
6014
  graph_id: string;
6015
+ /**
6016
+ * Subgraph Id
6017
+ * Subgraph identifier
6018
+ */
6019
+ subgraph_id: string;
5416
6020
  };
5417
6021
  query?: never;
5418
- url: '/v1/{graph_id}/status/health';
6022
+ url: '/v1/{graph_id}/subgraphs/{subgraph_id}/info';
5419
6023
  };
5420
- export type GetDatabaseHealthErrors = {
6024
+ export type GetSubgraphInfoErrors = {
5421
6025
  /**
5422
- * Access denied to graph
6026
+ * Not a valid subgraph
6027
+ */
6028
+ 400: unknown;
6029
+ /**
6030
+ * Not authenticated
6031
+ */
6032
+ 401: unknown;
6033
+ /**
6034
+ * Access denied
5423
6035
  */
5424
6036
  403: unknown;
5425
6037
  /**
5426
- * Graph not found
6038
+ * Subgraph not found
5427
6039
  */
5428
6040
  404: unknown;
5429
6041
  /**
@@ -5431,19 +6043,19 @@ export type GetDatabaseHealthErrors = {
5431
6043
  */
5432
6044
  422: HttpValidationError;
5433
6045
  /**
5434
- * Failed to retrieve health information
6046
+ * Internal server error
5435
6047
  */
5436
6048
  500: unknown;
5437
6049
  };
5438
- export type GetDatabaseHealthError = GetDatabaseHealthErrors[keyof GetDatabaseHealthErrors];
5439
- export type GetDatabaseHealthResponses = {
6050
+ export type GetSubgraphInfoError = GetSubgraphInfoErrors[keyof GetSubgraphInfoErrors];
6051
+ export type GetSubgraphInfoResponses = {
5440
6052
  /**
5441
- * Database health retrieved successfully
6053
+ * Subgraph information retrieved
5442
6054
  */
5443
- 200: DatabaseHealthResponse;
6055
+ 200: SubgraphResponse;
5444
6056
  };
5445
- export type GetDatabaseHealthResponse = GetDatabaseHealthResponses[keyof GetDatabaseHealthResponses];
5446
- export type GetDatabaseInfoData = {
6057
+ export type GetSubgraphInfoResponse = GetSubgraphInfoResponses[keyof GetSubgraphInfoResponses];
6058
+ export type GetSubgraphQuotaData = {
5447
6059
  body?: never;
5448
6060
  headers?: {
5449
6061
  /**
@@ -5454,20 +6066,24 @@ export type GetDatabaseInfoData = {
5454
6066
  path: {
5455
6067
  /**
5456
6068
  * Graph Id
5457
- * Graph database identifier
6069
+ * Parent graph identifier
5458
6070
  */
5459
6071
  graph_id: string;
5460
6072
  };
5461
6073
  query?: never;
5462
- url: '/v1/{graph_id}/status/info';
6074
+ url: '/v1/{graph_id}/subgraphs/quota';
5463
6075
  };
5464
- export type GetDatabaseInfoErrors = {
6076
+ export type GetSubgraphQuotaErrors = {
5465
6077
  /**
5466
- * Access denied to graph
6078
+ * Not authenticated
6079
+ */
6080
+ 401: unknown;
6081
+ /**
6082
+ * Access denied to parent graph
5467
6083
  */
5468
6084
  403: unknown;
5469
6085
  /**
5470
- * Graph not found
6086
+ * Parent graph not found
5471
6087
  */
5472
6088
  404: unknown;
5473
6089
  /**
@@ -5475,18 +6091,53 @@ export type GetDatabaseInfoErrors = {
5475
6091
  */
5476
6092
  422: HttpValidationError;
5477
6093
  /**
5478
- * Failed to retrieve database information
6094
+ * Internal server error
5479
6095
  */
5480
6096
  500: unknown;
5481
6097
  };
5482
- export type GetDatabaseInfoError = GetDatabaseInfoErrors[keyof GetDatabaseInfoErrors];
5483
- export type GetDatabaseInfoResponses = {
6098
+ export type GetSubgraphQuotaError = GetSubgraphQuotaErrors[keyof GetSubgraphQuotaErrors];
6099
+ export type GetSubgraphQuotaResponses = {
5484
6100
  /**
5485
- * Database information retrieved successfully
6101
+ * Quota information retrieved
5486
6102
  */
5487
- 200: DatabaseInfoResponse;
6103
+ 200: SubgraphQuotaResponse;
5488
6104
  };
5489
- export type GetDatabaseInfoResponse = GetDatabaseInfoResponses[keyof GetDatabaseInfoResponses];
6105
+ export type GetSubgraphQuotaResponse = GetSubgraphQuotaResponses[keyof GetSubgraphQuotaResponses];
6106
+ export type CopyDataToGraphData = {
6107
+ /**
6108
+ * Request
6109
+ */
6110
+ body: S3CopyRequest | UrlCopyRequest | DataFrameCopyRequest;
6111
+ headers?: {
6112
+ /**
6113
+ * Authorization
6114
+ */
6115
+ authorization?: string | null;
6116
+ };
6117
+ path: {
6118
+ /**
6119
+ * Graph Id
6120
+ * Target graph identifier (user graphs only - shared repositories not allowed)
6121
+ */
6122
+ graph_id: string;
6123
+ };
6124
+ query?: never;
6125
+ url: '/v1/{graph_id}/copy';
6126
+ };
6127
+ export type CopyDataToGraphErrors = {
6128
+ /**
6129
+ * Validation Error
6130
+ */
6131
+ 422: HttpValidationError;
6132
+ };
6133
+ export type CopyDataToGraphError = CopyDataToGraphErrors[keyof CopyDataToGraphErrors];
6134
+ export type CopyDataToGraphResponses = {
6135
+ /**
6136
+ * Successful Response
6137
+ */
6138
+ 200: CopyResponse;
6139
+ };
6140
+ export type CopyDataToGraphResponse = CopyDataToGraphResponses[keyof CopyDataToGraphResponses];
5490
6141
  export type CreateGraphData = {
5491
6142
  body: CreateGraphRequest;
5492
6143
  headers?: {