@robosystems/client 0.2.31 → 0.2.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/sdk/types.gen.ts CHANGED
@@ -975,6 +975,164 @@ export type CheckoutStatusResponse = {
975
975
  error?: string | null;
976
976
  };
977
977
 
978
+ /**
979
+ * ConnectionOptionsResponse
980
+ *
981
+ * Response with all available connection options.
982
+ */
983
+ export type ConnectionOptionsResponse = {
984
+ /**
985
+ * Providers
986
+ *
987
+ * Available connection providers
988
+ */
989
+ providers: Array<ConnectionProviderInfo>;
990
+ /**
991
+ * Total Providers
992
+ *
993
+ * Total number of providers
994
+ */
995
+ total_providers: number;
996
+ };
997
+
998
+ /**
999
+ * ConnectionProviderInfo
1000
+ *
1001
+ * Information about a connection provider.
1002
+ */
1003
+ export type ConnectionProviderInfo = {
1004
+ /**
1005
+ * Provider
1006
+ *
1007
+ * Provider identifier
1008
+ */
1009
+ provider: 'sec' | 'quickbooks';
1010
+ /**
1011
+ * Display Name
1012
+ *
1013
+ * Human-readable provider name
1014
+ */
1015
+ display_name: string;
1016
+ /**
1017
+ * Description
1018
+ *
1019
+ * Provider description
1020
+ */
1021
+ description: string;
1022
+ /**
1023
+ * Auth Type
1024
+ *
1025
+ * Authentication type
1026
+ */
1027
+ auth_type: 'none' | 'oauth' | 'link' | 'api_key';
1028
+ /**
1029
+ * Auth Flow
1030
+ *
1031
+ * Description of authentication flow
1032
+ */
1033
+ auth_flow?: string | null;
1034
+ /**
1035
+ * Required Config
1036
+ *
1037
+ * Required configuration fields
1038
+ */
1039
+ required_config: Array<string>;
1040
+ /**
1041
+ * Optional Config
1042
+ *
1043
+ * Optional configuration fields
1044
+ */
1045
+ optional_config?: Array<string>;
1046
+ /**
1047
+ * Features
1048
+ *
1049
+ * Supported features
1050
+ */
1051
+ features: Array<string>;
1052
+ /**
1053
+ * Sync Frequency
1054
+ *
1055
+ * Typical sync frequency
1056
+ */
1057
+ sync_frequency?: string | null;
1058
+ /**
1059
+ * Data Types
1060
+ *
1061
+ * Types of data available
1062
+ */
1063
+ data_types: Array<string>;
1064
+ /**
1065
+ * Setup Instructions
1066
+ *
1067
+ * Setup instructions
1068
+ */
1069
+ setup_instructions?: string | null;
1070
+ /**
1071
+ * Documentation Url
1072
+ *
1073
+ * Link to documentation
1074
+ */
1075
+ documentation_url?: string | null;
1076
+ };
1077
+
1078
+ /**
1079
+ * ConnectionResponse
1080
+ *
1081
+ * Connection response model.
1082
+ */
1083
+ export type ConnectionResponse = {
1084
+ /**
1085
+ * Connection Id
1086
+ *
1087
+ * Unique connection identifier
1088
+ */
1089
+ connection_id: string;
1090
+ /**
1091
+ * Provider
1092
+ *
1093
+ * Connection provider type
1094
+ */
1095
+ provider: string;
1096
+ /**
1097
+ * Entity Id
1098
+ *
1099
+ * Entity identifier
1100
+ */
1101
+ entity_id?: string | null;
1102
+ /**
1103
+ * Status
1104
+ *
1105
+ * Connection status
1106
+ */
1107
+ status: string;
1108
+ /**
1109
+ * Created At
1110
+ *
1111
+ * Creation timestamp
1112
+ */
1113
+ created_at: string;
1114
+ /**
1115
+ * Updated At
1116
+ *
1117
+ * Last update timestamp
1118
+ */
1119
+ updated_at?: string | null;
1120
+ /**
1121
+ * Last Sync
1122
+ *
1123
+ * Last sync timestamp
1124
+ */
1125
+ last_sync?: string | null;
1126
+ /**
1127
+ * Metadata
1128
+ *
1129
+ * Provider-specific metadata
1130
+ */
1131
+ metadata: {
1132
+ [key: string]: unknown;
1133
+ };
1134
+ };
1135
+
978
1136
  /**
979
1137
  * ContentLimits
980
1138
  *
@@ -1147,6 +1305,28 @@ export type CreateCheckoutRequest = {
1147
1305
  };
1148
1306
  };
1149
1307
 
1308
+ /**
1309
+ * CreateConnectionRequest
1310
+ *
1311
+ * Request to create a new connection.
1312
+ */
1313
+ export type CreateConnectionRequest = {
1314
+ /**
1315
+ * Provider
1316
+ *
1317
+ * Connection provider type
1318
+ */
1319
+ provider: 'sec' | 'quickbooks';
1320
+ /**
1321
+ * Entity Id
1322
+ *
1323
+ * Entity identifier. Required for QuickBooks, optional for SEC (SEC creates the entity from filing data).
1324
+ */
1325
+ entity_id?: string | null;
1326
+ sec_config?: SecConnectionConfig | null;
1327
+ quickbooks_config?: QuickBooksConnectionConfig | null;
1328
+ };
1329
+
1150
1330
  /**
1151
1331
  * CreateGraphRequest
1152
1332
  *
@@ -1189,19 +1369,6 @@ export type CreateGraphRequest = {
1189
1369
  tags?: Array<string>;
1190
1370
  };
1191
1371
 
1192
- /**
1193
- * CreateOrgRequest
1194
- *
1195
- * Request to create an organization.
1196
- */
1197
- export type CreateOrgRequest = {
1198
- /**
1199
- * Name
1200
- */
1201
- name: string;
1202
- org_type?: OrgType;
1203
- };
1204
-
1205
1372
  /**
1206
1373
  * CreateRepositorySubscriptionRequest
1207
1374
  *
@@ -1266,6 +1433,76 @@ export type CreateSubgraphRequest = {
1266
1433
  fork_parent?: boolean;
1267
1434
  };
1268
1435
 
1436
+ /**
1437
+ * CreateViewRequest
1438
+ */
1439
+ export type CreateViewRequest = {
1440
+ /**
1441
+ * Elements
1442
+ *
1443
+ * Element qnames (e.g., 'us-gaap:Assets'). Can combine with canonical_concepts.
1444
+ */
1445
+ elements?: Array<string>;
1446
+ /**
1447
+ * Canonical Concepts
1448
+ *
1449
+ * Canonical concept names (e.g., 'revenue', 'net_income'). Matches all mapped qnames.
1450
+ */
1451
+ canonical_concepts?: Array<string>;
1452
+ /**
1453
+ * Periods
1454
+ *
1455
+ * Period end dates (YYYY-MM-DD format)
1456
+ */
1457
+ periods?: Array<string>;
1458
+ /**
1459
+ * Entity
1460
+ *
1461
+ * Filter by entity ticker, CIK, or name
1462
+ */
1463
+ entity?: string | null;
1464
+ /**
1465
+ * Entities
1466
+ *
1467
+ * Filter by multiple entity tickers (e.g., ['NVDA', 'AAPL'])
1468
+ */
1469
+ entities?: Array<string>;
1470
+ /**
1471
+ * Form
1472
+ *
1473
+ * Filter by SEC filing form type (e.g., '10-K', '10-Q')
1474
+ */
1475
+ form?: string | null;
1476
+ /**
1477
+ * Fiscal Year
1478
+ *
1479
+ * Filter by fiscal year (e.g., 2024)
1480
+ */
1481
+ fiscal_year?: number | null;
1482
+ /**
1483
+ * Fiscal Period
1484
+ *
1485
+ * Filter by fiscal period (e.g., 'FY', 'Q1', 'Q2', 'Q3')
1486
+ */
1487
+ fiscal_period?: string | null;
1488
+ /**
1489
+ * Period Type
1490
+ *
1491
+ * Filter by period type: 'annual', 'quarterly', or 'instant'
1492
+ */
1493
+ period_type?: string | null;
1494
+ /**
1495
+ * Include Summary
1496
+ *
1497
+ * Include summary statistics per element
1498
+ */
1499
+ include_summary?: boolean;
1500
+ /**
1501
+ * View/pivot configuration
1502
+ */
1503
+ view_config?: ViewConfig;
1504
+ };
1505
+
1269
1506
  /**
1270
1507
  * CreditLimits
1271
1508
  *
@@ -1783,27 +2020,27 @@ export type DetailedTransactionsResponse = {
1783
2020
  */
1784
2021
  export type DownloadQuota = {
1785
2022
  /**
1786
- * Limit Per Day
2023
+ * Limit Per Month
1787
2024
  *
1788
- * Maximum downloads allowed per day
2025
+ * Maximum downloads allowed per month
1789
2026
  */
1790
- limit_per_day: number;
2027
+ limit_per_month: number;
1791
2028
  /**
1792
- * Used Today
2029
+ * Used This Month
1793
2030
  *
1794
- * Number of downloads used today
2031
+ * Number of downloads used this month
1795
2032
  */
1796
- used_today: number;
2033
+ used_this_month: number;
1797
2034
  /**
1798
2035
  * Remaining
1799
2036
  *
1800
- * Downloads remaining today
2037
+ * Downloads remaining this month
1801
2038
  */
1802
2039
  remaining: number;
1803
2040
  /**
1804
2041
  * Resets At
1805
2042
  *
1806
- * When the daily limit resets (UTC)
2043
+ * When the monthly limit resets (UTC)
1807
2044
  */
1808
2045
  resets_at: string;
1809
2046
  };
@@ -3466,6 +3703,98 @@ export type MaterializeStatusResponse = {
3466
3703
  message: string;
3467
3704
  };
3468
3705
 
3706
+ /**
3707
+ * OAuthCallbackRequest
3708
+ *
3709
+ * OAuth callback parameters.
3710
+ */
3711
+ export type OAuthCallbackRequest = {
3712
+ /**
3713
+ * Code
3714
+ *
3715
+ * Authorization code from OAuth provider
3716
+ */
3717
+ code: string;
3718
+ /**
3719
+ * State
3720
+ *
3721
+ * OAuth state for verification
3722
+ */
3723
+ state: string;
3724
+ /**
3725
+ * Realm Id
3726
+ *
3727
+ * QuickBooks-specific realm ID
3728
+ */
3729
+ realm_id?: string | null;
3730
+ /**
3731
+ * Error
3732
+ *
3733
+ * OAuth error if authorization failed
3734
+ */
3735
+ error?: string | null;
3736
+ /**
3737
+ * Error Description
3738
+ *
3739
+ * OAuth error details
3740
+ */
3741
+ error_description?: string | null;
3742
+ };
3743
+
3744
+ /**
3745
+ * OAuthInitRequest
3746
+ *
3747
+ * Request to initiate OAuth flow.
3748
+ */
3749
+ export type OAuthInitRequest = {
3750
+ /**
3751
+ * Connection Id
3752
+ *
3753
+ * Connection ID to link OAuth to
3754
+ */
3755
+ connection_id: string;
3756
+ /**
3757
+ * Redirect Uri
3758
+ *
3759
+ * Override default redirect URI
3760
+ */
3761
+ redirect_uri?: string | null;
3762
+ /**
3763
+ * Additional Params
3764
+ *
3765
+ * Provider-specific parameters
3766
+ */
3767
+ additional_params?: {
3768
+ [key: string]: string;
3769
+ } | null;
3770
+ };
3771
+
3772
+ /**
3773
+ * OAuthInitResponse
3774
+ *
3775
+ * Response with OAuth authorization URL.
3776
+ */
3777
+ export type OAuthInitResponse = {
3778
+ /**
3779
+ * Auth Url
3780
+ *
3781
+ * URL to redirect user for authorization
3782
+ */
3783
+ auth_url: string;
3784
+ /**
3785
+ * State
3786
+ *
3787
+ * OAuth state for security
3788
+ */
3789
+ state: string;
3790
+ /**
3791
+ * Expires At
3792
+ *
3793
+ * When this OAuth request expires
3794
+ */
3795
+ expires_at: string;
3796
+ };
3797
+
3469
3798
  /**
3470
3799
  * OfferingRepositoryPlan
3471
3800
  *
@@ -4052,6 +4381,26 @@ export type QueryLimits = {
4052
4381
  concurrent_queries: number;
4053
4382
  };
4054
4383
 
4384
+ /**
4385
+ * QuickBooksConnectionConfig
4386
+ *
4387
+ * QuickBooks-specific connection configuration.
4388
+ */
4389
+ export type QuickBooksConnectionConfig = {
4390
+ /**
4391
+ * Realm Id
4392
+ *
4393
+ * QuickBooks Realm ID
4394
+ */
4395
+ realm_id?: string | null;
4396
+ /**
4397
+ * Refresh Token
4398
+ *
4399
+ * OAuth refresh token
4400
+ */
4401
+ refresh_token?: string | null;
4402
+ };
4403
+
4055
4404
  /**
4056
4405
  * RateLimits
4057
4406
  *
@@ -4236,6 +4585,20 @@ export type ResetPasswordValidateResponse = {
4236
4585
  */
4237
4586
  export type ResponseMode = 'auto' | 'sync' | 'async' | 'stream';
4238
4587
 
4588
+ /**
4589
+ * SECConnectionConfig
4590
+ *
4591
+ * SEC-specific connection configuration.
4592
+ */
4593
+ export type SecConnectionConfig = {
4594
+ /**
4595
+ * Cik
4596
+ *
4597
+ * SEC Central Index Key
4598
+ */
4599
+ cik: string;
4600
+ };
4601
+
4239
4602
  /**
4240
4603
  * SSOCompleteRequest
4241
4604
  *
@@ -4920,6 +5283,28 @@ export type SuccessResponse = {
4920
5283
  } | null;
4921
5284
  };
4922
5285
 
5286
+ /**
5287
+ * SyncConnectionRequest
5288
+ *
5289
+ * Request to sync a connection.
5290
+ */
5291
+ export type SyncConnectionRequest = {
5292
+ /**
5293
+ * Full Sync
5294
+ *
5295
+ * Perform full sync vs incremental
5296
+ */
5297
+ full_sync?: boolean;
5298
+ /**
5299
+ * Sync Options
5300
+ *
5301
+ * Provider-specific sync options
5302
+ */
5303
+ sync_options?: {
5304
+ [key: string]: unknown;
5305
+ } | null;
5306
+ };
5307
+
4923
5308
  /**
4924
5309
  * TableInfo
4925
5310
  */
@@ -5332,16 +5717,110 @@ export type ValidationError = {
5332
5717
  };
5333
5718
  };
5334
5719
 
5335
- export type RegisterUserData = {
5336
- body: RegisterRequest;
5337
- path?: never;
5338
- query?: never;
5339
- url: '/v1/auth/register';
5340
- };
5341
-
5342
- export type RegisterUserErrors = {
5720
+ /**
5721
+ * ViewAxisConfig
5722
+ */
5723
+ export type ViewAxisConfig = {
5343
5724
  /**
5344
- * Invalid request data or missing CAPTCHA token (production only)
5725
+ * Type
5726
+ *
5727
+ * Axis type: 'element', 'period', 'dimension', 'entity'
5728
+ */
5729
+ type: string;
5730
+ /**
5731
+ * Dimension Axis
5732
+ *
5733
+ * Dimension axis name for dimension-type axes
5734
+ */
5735
+ dimension_axis?: string | null;
5736
+ /**
5737
+ * Include Null Dimension
5738
+ *
5739
+ * Include facts where this dimension is NULL (default: false)
5740
+ */
5741
+ include_null_dimension?: boolean;
5742
+ /**
5743
+ * Selected Members
5744
+ *
5745
+ * Specific members to include (e.g., ['2024-12-31', '2023-12-31'])
5746
+ */
5747
+ selected_members?: Array<string> | null;
5748
+ /**
5749
+ * Member Order
5750
+ *
5751
+ * Explicit ordering of members (overrides default sort)
5752
+ */
5753
+ member_order?: Array<string> | null;
5754
+ /**
5755
+ * Member Labels
5756
+ *
5757
+ * Custom labels for members (e.g., {'2024-12-31': 'Current Year'})
5758
+ */
5759
+ member_labels?: {
5760
+ [key: string]: string;
5761
+ } | null;
5762
+ /**
5763
+ * Element Order
5764
+ *
5765
+ * Element ordering for hierarchy display (e.g., ['us-gaap:Assets', 'us-gaap:Cash', ...])
5766
+ */
5767
+ element_order?: Array<string> | null;
5768
+ /**
5769
+ * Element Labels
5770
+ *
5771
+ * Custom labels for elements (e.g., {'us-gaap:Cash': 'Cash and Cash Equivalents'})
5772
+ */
5773
+ element_labels?: {
5774
+ [key: string]: string;
5775
+ } | null;
5776
+ };
5777
+
5778
+ /**
5779
+ * ViewConfig
5780
+ */
5781
+ export type ViewConfig = {
5782
+ /**
5783
+ * Rows
5784
+ *
5785
+ * Row axis configuration
5786
+ */
5787
+ rows?: Array<ViewAxisConfig>;
5788
+ /**
5789
+ * Columns
5790
+ *
5791
+ * Column axis configuration
5792
+ */
5793
+ columns?: Array<ViewAxisConfig>;
5794
+ /**
5795
+ * Values
5796
+ *
5797
+ * Field to use for values (default: numeric_value)
5798
+ */
5799
+ values?: string;
5800
+ /**
5801
+ * Aggregation Function
5802
+ *
5803
+ * Aggregation function: sum, average, count
5804
+ */
5805
+ aggregation_function?: string;
5806
+ /**
5807
+ * Fill Value
5808
+ *
5809
+ * Value to use for missing data
5810
+ */
5811
+ fill_value?: number;
5812
+ };
5813
+
5814
+ export type RegisterUserData = {
5815
+ body: RegisterRequest;
5816
+ path?: never;
5817
+ query?: never;
5818
+ url: '/v1/auth/register';
5819
+ };
5820
+
5821
+ export type RegisterUserErrors = {
5822
+ /**
5823
+ * Invalid request data or missing CAPTCHA token (production only)
5345
5824
  */
5346
5825
  400: ErrorResponse;
5347
5826
  /**
@@ -6001,31 +6480,6 @@ export type ListUserOrgsResponses = {
6001
6480
 
6002
6481
  export type ListUserOrgsResponse = ListUserOrgsResponses[keyof ListUserOrgsResponses];
6003
6482
 
6004
- export type CreateOrgData = {
6005
- body: CreateOrgRequest;
6006
- path?: never;
6007
- query?: never;
6008
- url: '/v1/orgs';
6009
- };
6010
-
6011
- export type CreateOrgErrors = {
6012
- /**
6013
- * Validation Error
6014
- */
6015
- 422: HttpValidationError;
6016
- };
6017
-
6018
- export type CreateOrgError = CreateOrgErrors[keyof CreateOrgErrors];
6019
-
6020
- export type CreateOrgResponses = {
6021
- /**
6022
- * Successful Response
6023
- */
6024
- 201: OrgDetailResponse;
6025
- };
6026
-
6027
- export type CreateOrgResponse = CreateOrgResponses[keyof CreateOrgResponses];
6028
-
6029
6483
  export type GetOrgData = {
6030
6484
  body?: never;
6031
6485
  path: {
@@ -6313,6 +6767,371 @@ export type GetOrgUsageResponses = {
6313
6767
 
6314
6768
  export type GetOrgUsageResponse = GetOrgUsageResponses[keyof GetOrgUsageResponses];
6315
6769
 
6770
+ export type ListConnectionsData = {
6771
+ body?: never;
6772
+ path: {
6773
+ /**
6774
+ * Graph Id
6775
+ */
6776
+ graph_id: string;
6777
+ };
6778
+ query?: {
6779
+ /**
6780
+ * Entity Id
6781
+ *
6782
+ * Filter by entity ID
6783
+ */
6784
+ entity_id?: string | null;
6785
+ /**
6786
+ * Provider
6787
+ *
6788
+ * Filter by provider type
6789
+ */
6790
+ provider?: 'sec' | 'quickbooks' | null;
6791
+ };
6792
+ url: '/v1/graphs/{graph_id}/connections';
6793
+ };
6794
+
6795
+ export type ListConnectionsErrors = {
6796
+ /**
6797
+ * Access denied to graph
6798
+ */
6799
+ 403: ErrorResponse;
6800
+ /**
6801
+ * Validation Error
6802
+ */
6803
+ 422: HttpValidationError;
6804
+ /**
6805
+ * Failed to list connections
6806
+ */
6807
+ 500: ErrorResponse;
6808
+ };
6809
+
6810
+ export type ListConnectionsError = ListConnectionsErrors[keyof ListConnectionsErrors];
6811
+
6812
+ export type ListConnectionsResponses = {
6813
+ /**
6814
+ * Response Listconnections
6815
+ *
6816
+ * Connections retrieved successfully
6817
+ */
6818
+ 200: Array<ConnectionResponse>;
6819
+ };
6820
+
6821
+ export type ListConnectionsResponse = ListConnectionsResponses[keyof ListConnectionsResponses];
6822
+
6823
+ export type CreateConnectionData = {
6824
+ body: CreateConnectionRequest;
6825
+ path: {
6826
+ /**
6827
+ * Graph Id
6828
+ */
6829
+ graph_id: string;
6830
+ };
6831
+ query?: never;
6832
+ url: '/v1/graphs/{graph_id}/connections';
6833
+ };
6834
+
6835
+ export type CreateConnectionErrors = {
6836
+ /**
6837
+ * Invalid connection configuration
6838
+ */
6839
+ 400: ErrorResponse;
6840
+ /**
6841
+ * Access denied - admin role required
6842
+ */
6843
+ 403: ErrorResponse;
6844
+ /**
6845
+ * Connection already exists
6846
+ */
6847
+ 409: ErrorResponse;
6848
+ /**
6849
+ * Validation Error
6850
+ */
6851
+ 422: HttpValidationError;
6852
+ /**
6853
+ * Failed to create connection
6854
+ */
6855
+ 500: ErrorResponse;
6856
+ };
6857
+
6858
+ export type CreateConnectionError = CreateConnectionErrors[keyof CreateConnectionErrors];
6859
+
6860
+ export type CreateConnectionResponses = {
6861
+ /**
6862
+ * Connection created successfully
6863
+ */
6864
+ 201: ConnectionResponse;
6865
+ };
6866
+
6867
+ export type CreateConnectionResponse = CreateConnectionResponses[keyof CreateConnectionResponses];
6868
+
6869
+ export type GetConnectionOptionsData = {
6870
+ body?: never;
6871
+ path: {
6872
+ /**
6873
+ * Graph Id
6874
+ */
6875
+ graph_id: string;
6876
+ };
6877
+ query?: never;
6878
+ url: '/v1/graphs/{graph_id}/connections/options';
6879
+ };
6880
+
6881
+ export type GetConnectionOptionsErrors = {
6882
+ /**
6883
+ * Access denied to graph
6884
+ */
6885
+ 403: ErrorResponse;
6886
+ /**
6887
+ * Validation Error
6888
+ */
6889
+ 422: HttpValidationError;
6890
+ /**
6891
+ * Failed to retrieve options
6892
+ */
6893
+ 500: ErrorResponse;
6894
+ };
6895
+
6896
+ export type GetConnectionOptionsError = GetConnectionOptionsErrors[keyof GetConnectionOptionsErrors];
6897
+
6898
+ export type GetConnectionOptionsResponses = {
6899
+ /**
6900
+ * Connection options retrieved successfully
6901
+ */
6902
+ 200: ConnectionOptionsResponse;
6903
+ };
6904
+
6905
+ export type GetConnectionOptionsResponse = GetConnectionOptionsResponses[keyof GetConnectionOptionsResponses];
6906
+
6907
+ export type InitOAuthData = {
6908
+ body: OAuthInitRequest;
6909
+ path: {
6910
+ /**
6911
+ * Graph Id
6912
+ */
6913
+ graph_id: string;
6914
+ };
6915
+ query?: never;
6916
+ url: '/v1/graphs/{graph_id}/connections/oauth/init';
6917
+ };
6918
+
6919
+ export type InitOAuthErrors = {
6920
+ /**
6921
+ * Validation Error
6922
+ */
6923
+ 422: HttpValidationError;
6924
+ };
6925
+
6926
+ export type InitOAuthError = InitOAuthErrors[keyof InitOAuthErrors];
6927
+
6928
+ export type InitOAuthResponses = {
6929
+ /**
6930
+ * Successful Response
6931
+ */
6932
+ 200: OAuthInitResponse;
6933
+ };
6934
+
6935
+ export type InitOAuthResponse = InitOAuthResponses[keyof InitOAuthResponses];
6936
+
6937
+ export type OauthCallbackData = {
6938
+ body: OAuthCallbackRequest;
6939
+ path: {
6940
+ /**
6941
+ * Provider
6942
+ *
6943
+ * OAuth provider name
6944
+ */
6945
+ provider: string;
6946
+ /**
6947
+ * Graph Id
6948
+ */
6949
+ graph_id: string;
6950
+ };
6951
+ query?: never;
6952
+ url: '/v1/graphs/{graph_id}/connections/oauth/callback/{provider}';
6953
+ };
6954
+
6955
+ export type OauthCallbackErrors = {
6956
+ /**
6957
+ * OAuth error or invalid state
6958
+ */
6959
+ 400: ErrorResponse;
6960
+ /**
6961
+ * State does not match user
6962
+ */
6963
+ 403: ErrorResponse;
6964
+ /**
6965
+ * Connection not found
6966
+ */
6967
+ 404: ErrorResponse;
6968
+ /**
6969
+ * Validation Error
6970
+ */
6971
+ 422: HttpValidationError;
6972
+ /**
6973
+ * OAuth callback processing failed
6974
+ */
6975
+ 500: ErrorResponse;
6976
+ };
6977
+
6978
+ export type OauthCallbackError = OauthCallbackErrors[keyof OauthCallbackErrors];
6979
+
6980
+ export type OauthCallbackResponses = {
6981
+ /**
6982
+ * OAuth flow completed successfully
6983
+ */
6984
+ 200: unknown;
6985
+ };
6986
+
6987
+ export type DeleteConnectionData = {
6988
+ body?: never;
6989
+ path: {
6990
+ /**
6991
+ * Graph Id
6992
+ */
6993
+ graph_id: string;
6994
+ /**
6995
+ * Connection Id
6996
+ *
6997
+ * Connection identifier
6998
+ */
6999
+ connection_id: string;
7000
+ };
7001
+ query?: never;
7002
+ url: '/v1/graphs/{graph_id}/connections/{connection_id}';
7003
+ };
7004
+
7005
+ export type DeleteConnectionErrors = {
7006
+ /**
7007
+ * Access denied - admin role required
7008
+ */
7009
+ 403: ErrorResponse;
7010
+ /**
7011
+ * Connection not found
7012
+ */
7013
+ 404: ErrorResponse;
7014
+ /**
7015
+ * Validation Error
7016
+ */
7017
+ 422: HttpValidationError;
7018
+ /**
7019
+ * Failed to delete connection
7020
+ */
7021
+ 500: ErrorResponse;
7022
+ };
7023
+
7024
+ export type DeleteConnectionError = DeleteConnectionErrors[keyof DeleteConnectionErrors];
7025
+
7026
+ export type DeleteConnectionResponses = {
7027
+ /**
7028
+ * Connection deleted successfully
7029
+ */
7030
+ 200: SuccessResponse;
7031
+ };
7032
+
7033
+ export type DeleteConnectionResponse = DeleteConnectionResponses[keyof DeleteConnectionResponses];
7034
+
7035
+ export type GetConnectionData = {
7036
+ body?: never;
7037
+ path: {
7038
+ /**
7039
+ * Graph Id
7040
+ */
7041
+ graph_id: string;
7042
+ /**
7043
+ * Connection Id
7044
+ *
7045
+ * Unique connection identifier
7046
+ */
7047
+ connection_id: string;
7048
+ };
7049
+ query?: never;
7050
+ url: '/v1/graphs/{graph_id}/connections/{connection_id}';
7051
+ };
7052
+
7053
+ export type GetConnectionErrors = {
7054
+ /**
7055
+ * Access denied to connection
7056
+ */
7057
+ 403: ErrorResponse;
7058
+ /**
7059
+ * Connection not found
7060
+ */
7061
+ 404: ErrorResponse;
7062
+ /**
7063
+ * Validation Error
7064
+ */
7065
+ 422: HttpValidationError;
7066
+ /**
7067
+ * Failed to retrieve connection
7068
+ */
7069
+ 500: ErrorResponse;
7070
+ };
7071
+
7072
+ export type GetConnectionError = GetConnectionErrors[keyof GetConnectionErrors];
7073
+
7074
+ export type GetConnectionResponses = {
7075
+ /**
7076
+ * Connection details retrieved successfully
7077
+ */
7078
+ 200: ConnectionResponse;
7079
+ };
7080
+
7081
+ export type GetConnectionResponse = GetConnectionResponses[keyof GetConnectionResponses];
7082
+
7083
+ export type SyncConnectionData = {
7084
+ body: SyncConnectionRequest;
7085
+ path: {
7086
+ /**
7087
+ * Graph Id
7088
+ */
7089
+ graph_id: string;
7090
+ /**
7091
+ * Connection Id
7092
+ *
7093
+ * Connection identifier
7094
+ */
7095
+ connection_id: string;
7096
+ };
7097
+ query?: never;
7098
+ url: '/v1/graphs/{graph_id}/connections/{connection_id}/sync';
7099
+ };
7100
+
7101
+ export type SyncConnectionErrors = {
7102
+ /**
7103
+ * Access denied - admin role required
7104
+ */
7105
+ 403: ErrorResponse;
7106
+ /**
7107
+ * Connection not found
7108
+ */
7109
+ 404: ErrorResponse;
7110
+ /**
7111
+ * Validation Error
7112
+ */
7113
+ 422: HttpValidationError;
7114
+ /**
7115
+ * Failed to start sync
7116
+ */
7117
+ 500: ErrorResponse;
7118
+ };
7119
+
7120
+ export type SyncConnectionError = SyncConnectionErrors[keyof SyncConnectionErrors];
7121
+
7122
+ export type SyncConnectionResponses = {
7123
+ /**
7124
+ * Response Syncconnection
7125
+ *
7126
+ * Sync started successfully
7127
+ */
7128
+ 200: {
7129
+ [key: string]: unknown;
7130
+ };
7131
+ };
7132
+
7133
+ export type SyncConnectionResponse = SyncConnectionResponses[keyof SyncConnectionResponses];
7134
+
6316
7135
  export type ListAgentsData = {
6317
7136
  body?: never;
6318
7137
  path: {
@@ -8109,6 +8928,34 @@ export type QueryTablesResponses = {
8109
8928
 
8110
8929
  export type QueryTablesResponse = QueryTablesResponses[keyof QueryTablesResponses];
8111
8930
 
8931
+ export type CreateViewData = {
8932
+ body: CreateViewRequest;
8933
+ path: {
8934
+ /**
8935
+ * Graph Id
8936
+ */
8937
+ graph_id: string;
8938
+ };
8939
+ query?: never;
8940
+ url: '/v1/graphs/{graph_id}/views';
8941
+ };
8942
+
8943
+ export type CreateViewErrors = {
8944
+ /**
8945
+ * Validation Error
8946
+ */
8947
+ 422: HttpValidationError;
8948
+ };
8949
+
8950
+ export type CreateViewError = CreateViewErrors[keyof CreateViewErrors];
8951
+
8952
+ export type CreateViewResponses = {
8953
+ /**
8954
+ * Successful Response
8955
+ */
8956
+ 200: unknown;
8957
+ };
8958
+
8112
8959
  export type GetMaterializationStatusData = {
8113
8960
  body?: never;
8114
8961
  path: {