@robosystems/client 0.1.15 → 0.1.16

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 (66) hide show
  1. package/package.json +48 -6
  2. package/sdk/client/client.gen.d.ts +2 -0
  3. package/sdk/client/client.gen.js +153 -0
  4. package/sdk/client/client.gen.ts +200 -0
  5. package/sdk/client/index.d.ts +7 -0
  6. package/sdk/client/index.js +15 -0
  7. package/sdk/client/index.ts +25 -0
  8. package/sdk/client/types.gen.d.ts +122 -0
  9. package/sdk/client/types.gen.js +4 -0
  10. package/sdk/client/types.gen.ts +233 -0
  11. package/sdk/client/utils.gen.d.ts +45 -0
  12. package/sdk/client/utils.gen.js +296 -0
  13. package/sdk/client/utils.gen.ts +419 -0
  14. package/sdk/client.gen.d.ts +12 -0
  15. package/sdk/client.gen.js +8 -0
  16. package/sdk/client.gen.ts +18 -0
  17. package/sdk/core/auth.gen.d.ts +18 -0
  18. package/sdk/core/auth.gen.js +18 -0
  19. package/sdk/core/auth.gen.ts +42 -0
  20. package/sdk/core/bodySerializer.gen.d.ts +17 -0
  21. package/sdk/core/bodySerializer.gen.js +57 -0
  22. package/sdk/core/bodySerializer.gen.ts +90 -0
  23. package/sdk/core/params.gen.d.ts +33 -0
  24. package/sdk/core/params.gen.js +92 -0
  25. package/sdk/core/params.gen.ts +153 -0
  26. package/sdk/core/pathSerializer.gen.d.ts +33 -0
  27. package/sdk/core/pathSerializer.gen.js +123 -0
  28. package/sdk/core/pathSerializer.gen.ts +181 -0
  29. package/sdk/core/types.gen.d.ts +78 -0
  30. package/sdk/core/types.gen.js +4 -0
  31. package/sdk/core/types.gen.ts +121 -0
  32. package/sdk/index.d.ts +2 -0
  33. package/sdk/index.js +19 -0
  34. package/sdk/index.ts +3 -0
  35. package/sdk/sdk.gen.d.ts +1269 -0
  36. package/sdk/sdk.gen.js +2664 -0
  37. package/sdk/sdk.gen.ts +2677 -0
  38. package/sdk/types.gen.d.ts +6265 -0
  39. package/sdk/types.gen.js +3 -0
  40. package/sdk/types.gen.ts +6784 -0
  41. package/sdk-extensions/OperationClient.d.ts +64 -0
  42. package/sdk-extensions/OperationClient.js +251 -0
  43. package/sdk-extensions/OperationClient.ts +322 -0
  44. package/sdk-extensions/QueryClient.d.ts +50 -0
  45. package/sdk-extensions/QueryClient.js +190 -0
  46. package/sdk-extensions/QueryClient.ts +283 -0
  47. package/sdk-extensions/README.md +672 -0
  48. package/sdk-extensions/SSEClient.d.ts +48 -0
  49. package/sdk-extensions/SSEClient.js +148 -0
  50. package/sdk-extensions/SSEClient.ts +189 -0
  51. package/sdk-extensions/config.d.ts +32 -0
  52. package/sdk-extensions/config.js +74 -0
  53. package/sdk-extensions/config.ts +91 -0
  54. package/sdk-extensions/hooks.d.ts +110 -0
  55. package/sdk-extensions/hooks.js +371 -0
  56. package/sdk-extensions/hooks.ts +438 -0
  57. package/sdk-extensions/index.d.ts +46 -0
  58. package/sdk-extensions/index.js +110 -0
  59. package/sdk-extensions/index.ts +123 -0
  60. package/sdk.gen.d.ts +128 -2
  61. package/sdk.gen.js +216 -2
  62. package/sdk.gen.ts +216 -2
  63. package/types.gen.d.ts +573 -4
  64. package/types.gen.ts +606 -4
  65. package/openapi-ts.config.js +0 -9
  66. package/prepare.js +0 -220
package/types.gen.ts CHANGED
@@ -710,6 +710,44 @@ export type CreateGraphRequest = {
710
710
  tags?: Array<string>;
711
711
  };
712
712
 
713
+ /**
714
+ * CreateSubgraphRequest
715
+ * Request model for creating a subgraph.
716
+ */
717
+ export type CreateSubgraphRequest = {
718
+ /**
719
+ * Name
720
+ * Alphanumeric name for the subgraph (e.g., dev, staging, prod1)
721
+ */
722
+ name: string;
723
+ /**
724
+ * Display Name
725
+ * Human-readable display name for the subgraph
726
+ */
727
+ display_name: string;
728
+ /**
729
+ * Description
730
+ * Optional description of the subgraph's purpose
731
+ */
732
+ description?: string | null;
733
+ /**
734
+ * Schema Extensions
735
+ * Schema extensions to include (inherits from parent by default)
736
+ */
737
+ schema_extensions?: Array<string> | null;
738
+ /**
739
+ * Type of subgraph (currently only 'static' is supported)
740
+ */
741
+ subgraph_type?: SubgraphType;
742
+ /**
743
+ * Metadata
744
+ * Additional metadata for the subgraph
745
+ */
746
+ metadata?: {
747
+ [key: string]: unknown;
748
+ } | null;
749
+ };
750
+
713
751
  /**
714
752
  * CreditCheckRequest
715
753
  * Request to check credit balance.
@@ -792,10 +830,6 @@ export type CreditSummaryResponse = {
792
830
  * Graph Tier
793
831
  */
794
832
  graph_tier: string;
795
- /**
796
- * Credit Multiplier
797
- */
798
- credit_multiplier: number;
799
833
  /**
800
834
  * Current Balance
801
835
  */
@@ -1063,6 +1097,60 @@ export type DatabaseInfoResponse = {
1063
1097
  last_backup_date?: string | null;
1064
1098
  };
1065
1099
 
1100
+ /**
1101
+ * DeleteSubgraphRequest
1102
+ * Request model for deleting a subgraph.
1103
+ */
1104
+ export type DeleteSubgraphRequest = {
1105
+ /**
1106
+ * Force
1107
+ * Force deletion even if subgraph contains data
1108
+ */
1109
+ force?: boolean;
1110
+ /**
1111
+ * Backup First
1112
+ * Create a backup before deletion
1113
+ */
1114
+ backup_first?: boolean;
1115
+ /**
1116
+ * Backup Location
1117
+ * S3 location for backup (uses default if not specified)
1118
+ */
1119
+ backup_location?: string | null;
1120
+ };
1121
+
1122
+ /**
1123
+ * DeleteSubgraphResponse
1124
+ * Response model for subgraph deletion.
1125
+ */
1126
+ export type DeleteSubgraphResponse = {
1127
+ /**
1128
+ * Graph Id
1129
+ * Deleted subgraph identifier
1130
+ */
1131
+ graph_id: string;
1132
+ /**
1133
+ * Status
1134
+ * Deletion status
1135
+ */
1136
+ status: string;
1137
+ /**
1138
+ * Backup Location
1139
+ * Location of backup if created
1140
+ */
1141
+ backup_location?: string | null;
1142
+ /**
1143
+ * Deleted At
1144
+ * When deletion occurred
1145
+ */
1146
+ deleted_at: string;
1147
+ /**
1148
+ * Message
1149
+ * Additional information about the deletion
1150
+ */
1151
+ message?: string | null;
1152
+ };
1153
+
1066
1154
  /**
1067
1155
  * DetailedTransactionsResponse
1068
1156
  * Detailed response for transaction queries.
@@ -1479,6 +1567,48 @@ export type LinkTokenRequest = {
1479
1567
  } | null;
1480
1568
  };
1481
1569
 
1570
+ /**
1571
+ * ListSubgraphsResponse
1572
+ * Response model for listing subgraphs.
1573
+ */
1574
+ export type ListSubgraphsResponse = {
1575
+ /**
1576
+ * Parent Graph Id
1577
+ * Parent graph identifier
1578
+ */
1579
+ parent_graph_id: string;
1580
+ /**
1581
+ * Parent Graph Name
1582
+ * Parent graph name
1583
+ */
1584
+ parent_graph_name: string;
1585
+ /**
1586
+ * Parent Graph Tier
1587
+ * Parent graph tier
1588
+ */
1589
+ parent_graph_tier: string;
1590
+ /**
1591
+ * Subgraph Count
1592
+ * Total number of subgraphs
1593
+ */
1594
+ subgraph_count: number;
1595
+ /**
1596
+ * Max Subgraphs
1597
+ * Maximum allowed subgraphs for this tier (None = unlimited)
1598
+ */
1599
+ max_subgraphs?: number | null;
1600
+ /**
1601
+ * Total Size Mb
1602
+ * Combined size of all subgraphs in megabytes
1603
+ */
1604
+ total_size_mb?: number | null;
1605
+ /**
1606
+ * Subgraphs
1607
+ * List of subgraphs
1608
+ */
1609
+ subgraphs: Array<SubgraphSummary>;
1610
+ };
1611
+
1482
1612
  /**
1483
1613
  * LoginRequest
1484
1614
  * Login request model.
@@ -2052,6 +2182,183 @@ export type StorageLimitResponse = {
2052
2182
  recommendations?: Array<string> | null;
2053
2183
  };
2054
2184
 
2185
+ /**
2186
+ * SubgraphQuotaResponse
2187
+ * Response model for subgraph quota information.
2188
+ */
2189
+ export type SubgraphQuotaResponse = {
2190
+ /**
2191
+ * Parent Graph Id
2192
+ * Parent graph identifier
2193
+ */
2194
+ parent_graph_id: string;
2195
+ /**
2196
+ * Tier
2197
+ * Graph tier
2198
+ */
2199
+ tier: string;
2200
+ /**
2201
+ * Current Count
2202
+ * Current number of subgraphs
2203
+ */
2204
+ current_count: number;
2205
+ /**
2206
+ * Max Allowed
2207
+ * Maximum allowed subgraphs (None = unlimited)
2208
+ */
2209
+ max_allowed?: number | null;
2210
+ /**
2211
+ * Remaining
2212
+ * Remaining subgraphs that can be created
2213
+ */
2214
+ remaining?: number | null;
2215
+ /**
2216
+ * Total Size Mb
2217
+ * Total size of all subgraphs
2218
+ */
2219
+ total_size_mb?: number | null;
2220
+ /**
2221
+ * Max Size Mb
2222
+ * Maximum allowed total size
2223
+ */
2224
+ max_size_mb?: number | null;
2225
+ };
2226
+
2227
+ /**
2228
+ * SubgraphResponse
2229
+ * Response model for a subgraph.
2230
+ */
2231
+ export type SubgraphResponse = {
2232
+ /**
2233
+ * Graph Id
2234
+ * Full subgraph identifier (e.g., kg123_dev)
2235
+ */
2236
+ graph_id: string;
2237
+ /**
2238
+ * Parent Graph Id
2239
+ * Parent graph identifier
2240
+ */
2241
+ parent_graph_id: string;
2242
+ /**
2243
+ * Subgraph Index
2244
+ * Numeric index of the subgraph
2245
+ */
2246
+ subgraph_index: number;
2247
+ /**
2248
+ * Subgraph Name
2249
+ * Alphanumeric name of the subgraph
2250
+ */
2251
+ subgraph_name: string;
2252
+ /**
2253
+ * Display Name
2254
+ * Human-readable display name
2255
+ */
2256
+ display_name: string;
2257
+ /**
2258
+ * Description
2259
+ * Description of the subgraph's purpose
2260
+ */
2261
+ description?: string | null;
2262
+ /**
2263
+ * Type of subgraph
2264
+ */
2265
+ subgraph_type: SubgraphType;
2266
+ /**
2267
+ * Status
2268
+ * Current status of the subgraph
2269
+ */
2270
+ status: string;
2271
+ /**
2272
+ * Created At
2273
+ * When the subgraph was created
2274
+ */
2275
+ created_at: string;
2276
+ /**
2277
+ * Updated At
2278
+ * When the subgraph was last updated
2279
+ */
2280
+ updated_at: string;
2281
+ /**
2282
+ * Size Mb
2283
+ * Size of the subgraph database in megabytes
2284
+ */
2285
+ size_mb?: number | null;
2286
+ /**
2287
+ * Node Count
2288
+ * Number of nodes in the subgraph
2289
+ */
2290
+ node_count?: number | null;
2291
+ /**
2292
+ * Edge Count
2293
+ * Number of edges in the subgraph
2294
+ */
2295
+ edge_count?: number | null;
2296
+ /**
2297
+ * Last Accessed
2298
+ * When the subgraph was last accessed
2299
+ */
2300
+ last_accessed?: string | null;
2301
+ /**
2302
+ * Metadata
2303
+ * Additional metadata for the subgraph
2304
+ */
2305
+ metadata?: {
2306
+ [key: string]: unknown;
2307
+ } | null;
2308
+ };
2309
+
2310
+ /**
2311
+ * SubgraphSummary
2312
+ * Summary model for listing subgraphs.
2313
+ */
2314
+ export type SubgraphSummary = {
2315
+ /**
2316
+ * Graph Id
2317
+ * Full subgraph identifier
2318
+ */
2319
+ graph_id: string;
2320
+ /**
2321
+ * Subgraph Name
2322
+ * Alphanumeric name
2323
+ */
2324
+ subgraph_name: string;
2325
+ /**
2326
+ * Display Name
2327
+ * Human-readable name
2328
+ */
2329
+ display_name: string;
2330
+ /**
2331
+ * Type of subgraph
2332
+ */
2333
+ subgraph_type: SubgraphType;
2334
+ /**
2335
+ * Status
2336
+ * Current status
2337
+ */
2338
+ status: string;
2339
+ /**
2340
+ * Size Mb
2341
+ * Size in megabytes
2342
+ */
2343
+ size_mb?: number | null;
2344
+ /**
2345
+ * Created At
2346
+ * Creation timestamp
2347
+ */
2348
+ created_at: string;
2349
+ /**
2350
+ * Last Accessed
2351
+ * Last access timestamp
2352
+ */
2353
+ last_accessed?: string | null;
2354
+ };
2355
+
2356
+ /**
2357
+ * SubgraphType
2358
+ * Types of subgraphs.
2359
+ */
2360
+ export type SubgraphType = 'static' | 'temporal' | 'versioned' | 'memory';
2361
+
2055
2362
  /**
2056
2363
  * SubscriptionInfo
2057
2364
  * User subscription information.
@@ -5948,6 +6255,301 @@ export type GetDatabaseInfoResponses = {
5948
6255
 
5949
6256
  export type GetDatabaseInfoResponse = GetDatabaseInfoResponses[keyof GetDatabaseInfoResponses];
5950
6257
 
6258
+ export type ListSubgraphsData = {
6259
+ body?: never;
6260
+ headers?: {
6261
+ /**
6262
+ * Authorization
6263
+ */
6264
+ authorization?: string | null;
6265
+ };
6266
+ path: {
6267
+ /**
6268
+ * Graph Id
6269
+ * Parent graph identifier
6270
+ */
6271
+ graph_id: string;
6272
+ };
6273
+ query?: never;
6274
+ url: '/v1/{graph_id}/subgraphs';
6275
+ };
6276
+
6277
+ export type ListSubgraphsErrors = {
6278
+ /**
6279
+ * Not authenticated
6280
+ */
6281
+ 401: unknown;
6282
+ /**
6283
+ * Access denied to parent graph
6284
+ */
6285
+ 403: unknown;
6286
+ /**
6287
+ * Parent graph not found
6288
+ */
6289
+ 404: unknown;
6290
+ /**
6291
+ * Validation Error
6292
+ */
6293
+ 422: HttpValidationError;
6294
+ /**
6295
+ * Internal server error
6296
+ */
6297
+ 500: unknown;
6298
+ };
6299
+
6300
+ export type ListSubgraphsError = ListSubgraphsErrors[keyof ListSubgraphsErrors];
6301
+
6302
+ export type ListSubgraphsResponses = {
6303
+ /**
6304
+ * Subgraphs retrieved successfully
6305
+ */
6306
+ 200: ListSubgraphsResponse;
6307
+ };
6308
+
6309
+ export type ListSubgraphsResponse2 = ListSubgraphsResponses[keyof ListSubgraphsResponses];
6310
+
6311
+ export type CreateSubgraphData = {
6312
+ body: CreateSubgraphRequest;
6313
+ headers?: {
6314
+ /**
6315
+ * Authorization
6316
+ */
6317
+ authorization?: string | null;
6318
+ };
6319
+ path: {
6320
+ /**
6321
+ * Graph Id
6322
+ * Parent graph identifier
6323
+ */
6324
+ graph_id: string;
6325
+ };
6326
+ query?: never;
6327
+ url: '/v1/{graph_id}/subgraphs';
6328
+ };
6329
+
6330
+ export type CreateSubgraphErrors = {
6331
+ /**
6332
+ * Invalid subgraph name or configuration
6333
+ */
6334
+ 400: unknown;
6335
+ /**
6336
+ * Not authenticated
6337
+ */
6338
+ 401: unknown;
6339
+ /**
6340
+ * Insufficient permissions or tier
6341
+ */
6342
+ 403: unknown;
6343
+ /**
6344
+ * Parent graph not found
6345
+ */
6346
+ 404: unknown;
6347
+ /**
6348
+ * Subgraph name already exists
6349
+ */
6350
+ 409: unknown;
6351
+ /**
6352
+ * Validation Error
6353
+ */
6354
+ 422: HttpValidationError;
6355
+ /**
6356
+ * Internal server error
6357
+ */
6358
+ 500: unknown;
6359
+ };
6360
+
6361
+ export type CreateSubgraphError = CreateSubgraphErrors[keyof CreateSubgraphErrors];
6362
+
6363
+ export type CreateSubgraphResponses = {
6364
+ /**
6365
+ * Subgraph created successfully
6366
+ */
6367
+ 200: SubgraphResponse;
6368
+ };
6369
+
6370
+ export type CreateSubgraphResponse = CreateSubgraphResponses[keyof CreateSubgraphResponses];
6371
+
6372
+ export type DeleteSubgraphData = {
6373
+ body?: DeleteSubgraphRequest;
6374
+ headers?: {
6375
+ /**
6376
+ * Authorization
6377
+ */
6378
+ authorization?: string | null;
6379
+ };
6380
+ path: {
6381
+ /**
6382
+ * Graph Id
6383
+ * Parent graph identifier
6384
+ */
6385
+ graph_id: string;
6386
+ /**
6387
+ * Subgraph Name
6388
+ * Subgraph name to delete
6389
+ */
6390
+ subgraph_name: string;
6391
+ };
6392
+ query?: never;
6393
+ url: '/v1/{graph_id}/subgraphs/{subgraph_name}';
6394
+ };
6395
+
6396
+ export type DeleteSubgraphErrors = {
6397
+ /**
6398
+ * Invalid subgraph identifier
6399
+ */
6400
+ 400: unknown;
6401
+ /**
6402
+ * Not authenticated
6403
+ */
6404
+ 401: unknown;
6405
+ /**
6406
+ * Insufficient permissions
6407
+ */
6408
+ 403: unknown;
6409
+ /**
6410
+ * Subgraph not found
6411
+ */
6412
+ 404: unknown;
6413
+ /**
6414
+ * Subgraph contains data (use force=true)
6415
+ */
6416
+ 409: unknown;
6417
+ /**
6418
+ * Validation Error
6419
+ */
6420
+ 422: HttpValidationError;
6421
+ /**
6422
+ * Internal server error
6423
+ */
6424
+ 500: unknown;
6425
+ };
6426
+
6427
+ export type DeleteSubgraphError = DeleteSubgraphErrors[keyof DeleteSubgraphErrors];
6428
+
6429
+ export type DeleteSubgraphResponses = {
6430
+ /**
6431
+ * Subgraph deleted successfully
6432
+ */
6433
+ 200: DeleteSubgraphResponse;
6434
+ };
6435
+
6436
+ export type DeleteSubgraphResponse2 = DeleteSubgraphResponses[keyof DeleteSubgraphResponses];
6437
+
6438
+ export type GetSubgraphQuotaData = {
6439
+ body?: never;
6440
+ headers?: {
6441
+ /**
6442
+ * Authorization
6443
+ */
6444
+ authorization?: string | null;
6445
+ };
6446
+ path: {
6447
+ /**
6448
+ * Graph Id
6449
+ * Parent graph identifier
6450
+ */
6451
+ graph_id: string;
6452
+ };
6453
+ query?: never;
6454
+ url: '/v1/{graph_id}/subgraphs/quota';
6455
+ };
6456
+
6457
+ export type GetSubgraphQuotaErrors = {
6458
+ /**
6459
+ * Not authenticated
6460
+ */
6461
+ 401: unknown;
6462
+ /**
6463
+ * Access denied to parent graph
6464
+ */
6465
+ 403: unknown;
6466
+ /**
6467
+ * Parent graph not found
6468
+ */
6469
+ 404: unknown;
6470
+ /**
6471
+ * Validation Error
6472
+ */
6473
+ 422: HttpValidationError;
6474
+ /**
6475
+ * Internal server error
6476
+ */
6477
+ 500: unknown;
6478
+ };
6479
+
6480
+ export type GetSubgraphQuotaError = GetSubgraphQuotaErrors[keyof GetSubgraphQuotaErrors];
6481
+
6482
+ export type GetSubgraphQuotaResponses = {
6483
+ /**
6484
+ * Quota information retrieved
6485
+ */
6486
+ 200: SubgraphQuotaResponse;
6487
+ };
6488
+
6489
+ export type GetSubgraphQuotaResponse = GetSubgraphQuotaResponses[keyof GetSubgraphQuotaResponses];
6490
+
6491
+ export type GetSubgraphInfoData = {
6492
+ body?: never;
6493
+ headers?: {
6494
+ /**
6495
+ * Authorization
6496
+ */
6497
+ authorization?: string | null;
6498
+ };
6499
+ path: {
6500
+ /**
6501
+ * Graph Id
6502
+ * Parent graph identifier
6503
+ */
6504
+ graph_id: string;
6505
+ /**
6506
+ * Subgraph Name
6507
+ * Subgraph name
6508
+ */
6509
+ subgraph_name: string;
6510
+ };
6511
+ query?: never;
6512
+ url: '/v1/{graph_id}/subgraphs/{subgraph_name}/info';
6513
+ };
6514
+
6515
+ export type GetSubgraphInfoErrors = {
6516
+ /**
6517
+ * Not a valid subgraph
6518
+ */
6519
+ 400: unknown;
6520
+ /**
6521
+ * Not authenticated
6522
+ */
6523
+ 401: unknown;
6524
+ /**
6525
+ * Access denied
6526
+ */
6527
+ 403: unknown;
6528
+ /**
6529
+ * Subgraph not found
6530
+ */
6531
+ 404: unknown;
6532
+ /**
6533
+ * Validation Error
6534
+ */
6535
+ 422: HttpValidationError;
6536
+ /**
6537
+ * Internal server error
6538
+ */
6539
+ 500: unknown;
6540
+ };
6541
+
6542
+ export type GetSubgraphInfoError = GetSubgraphInfoErrors[keyof GetSubgraphInfoErrors];
6543
+
6544
+ export type GetSubgraphInfoResponses = {
6545
+ /**
6546
+ * Subgraph information retrieved
6547
+ */
6548
+ 200: SubgraphResponse;
6549
+ };
6550
+
6551
+ export type GetSubgraphInfoResponse = GetSubgraphInfoResponses[keyof GetSubgraphInfoResponses];
6552
+
5951
6553
  export type CreateGraphData = {
5952
6554
  body: CreateGraphRequest;
5953
6555
  headers?: {
@@ -1,9 +0,0 @@
1
- /** @type {import('@hey-api/openapi-ts').UserConfig} */
2
- module.exports = {
3
- input: process.env.ROBOSYSTEMS_API_URL + '/openapi.json',
4
- output: {
5
- clean: false, // Preserve custom files like query.ts
6
- path: 'sdk',
7
- },
8
- plugins: ['@hey-api/client-fetch'],
9
- }