@robosystems/client 2.6.0 → 2.7.0
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/artifacts/LedgerClient.d.ts +3 -1
- package/artifacts/LedgerClient.js +3 -1
- package/artifacts/LedgerClient.ts +3 -1
- package/artifacts/graphql/client.js +4 -0
- package/artifacts/graphql/client.ts +4 -0
- package/artifacts/rest.js +8 -0
- package/artifacts/rest.ts +9 -0
- package/index.ts +2 -2
- package/package.json +1 -1
- package/sdk/index.d.ts +2 -2
- package/sdk/index.js +3 -2
- package/sdk/index.ts +2 -2
- package/sdk/sdk.gen.d.ts +28 -18
- package/sdk/sdk.gen.js +64 -45
- package/sdk/sdk.gen.ts +56 -37
- package/sdk/types.gen.d.ts +193 -129
- package/sdk/types.gen.ts +199 -129
- package/sdk.gen.d.ts +28 -18
- package/sdk.gen.js +64 -45
- package/sdk.gen.ts +56 -37
- package/types.gen.d.ts +193 -129
- package/types.gen.ts +199 -129
package/sdk/types.gen.ts
CHANGED
|
@@ -5545,11 +5545,12 @@ export type EventHandlerResponse = {
|
|
|
5545
5545
|
* Request to publish an event to the source-of-truth system.
|
|
5546
5546
|
*
|
|
5547
5547
|
* For events on a connection with `write_policy='qb_authoritative'`
|
|
5548
|
-
* (or `'hybrid'`), this triggers a synchronous write to QuickBooks
|
|
5549
|
-
*
|
|
5550
|
-
*
|
|
5551
|
-
* `
|
|
5552
|
-
* (
|
|
5548
|
+
* (or `'hybrid'`), this triggers a synchronous write to QuickBooks:
|
|
5549
|
+
* each draft entry posts as its own JournalEntry, with the entry id as
|
|
5550
|
+
* the RequestId, and its QuickBooks id is recorded per entry on
|
|
5551
|
+
* `event.metadata.qb_entry_ids`. The event goes `fulfilled` once no
|
|
5552
|
+
* draft remains, or `pending` when QuickBooks rejects an entry (what
|
|
5553
|
+
* landed is kept).
|
|
5553
5554
|
*
|
|
5554
5555
|
* `'native'`-policy events fast-path through with no QB write —
|
|
5555
5556
|
* RoboSystems IS the source of truth, no outbound publish needed.
|
|
@@ -6146,7 +6147,7 @@ export type FiscalCalendarResponse = {
|
|
|
6146
6147
|
/**
|
|
6147
6148
|
* Blockers
|
|
6148
6149
|
*
|
|
6149
|
-
* Structured blocker codes when closeable_now is False: 'sequence_violation', 'period_incomplete', 'sync_stale', 'calendar_not_initialized', 'period_already_closed', 'pending_obligations', 'stranded_obligations'
|
|
6150
|
+
* Structured blocker codes when closeable_now is False: 'sequence_violation', 'period_incomplete', 'sync_stale', 'calendar_not_initialized', 'period_already_closed', 'pending_obligations', 'stranded_obligations', 'reconciling_items', 'unposted_source_events', 'unreconciled_accounts'
|
|
6150
6151
|
*/
|
|
6151
6152
|
blockers?: Array<string>;
|
|
6152
6153
|
/**
|
|
@@ -15812,6 +15813,12 @@ export type ResolveReconcilingItemRequest = {
|
|
|
15812
15813
|
* Event id (evt_ prefixed) to resolve
|
|
15813
15814
|
*/
|
|
15814
15815
|
event_id: string;
|
|
15816
|
+
/**
|
|
15817
|
+
* Expected Drift Detected At
|
|
15818
|
+
*
|
|
15819
|
+
* The `drift_detected_at` of the preview this resolution was decided on. Pass it: the resolution is refused when the item has been flagged again since, with a newer payload nobody has seen, and must be previewed again.
|
|
15820
|
+
*/
|
|
15821
|
+
expected_drift_detected_at?: string | null;
|
|
15815
15822
|
/**
|
|
15816
15823
|
* Disposition
|
|
15817
15824
|
*
|
|
@@ -17158,6 +17165,20 @@ export type SetReconciliationPolicyRequest = {
|
|
|
17158
17165
|
separate_reviewer?: boolean | null;
|
|
17159
17166
|
};
|
|
17160
17167
|
|
|
17168
|
+
/**
|
|
17169
|
+
* SetSelectedGraphRequest
|
|
17170
|
+
*
|
|
17171
|
+
* Request model for setting the user's selected graph.
|
|
17172
|
+
*/
|
|
17173
|
+
export type SetSelectedGraphRequest = {
|
|
17174
|
+
/**
|
|
17175
|
+
* Graph Id
|
|
17176
|
+
*
|
|
17177
|
+
* The graph the apps open on the caller's next load
|
|
17178
|
+
*/
|
|
17179
|
+
graph_id: string;
|
|
17180
|
+
};
|
|
17181
|
+
|
|
17161
17182
|
/**
|
|
17162
17183
|
* SetWritePolicyRequest
|
|
17163
17184
|
*
|
|
@@ -21735,6 +21756,55 @@ export type UpdateUserPasswordResponses = {
|
|
|
21735
21756
|
|
|
21736
21757
|
export type UpdateUserPasswordResponse = UpdateUserPasswordResponses[keyof UpdateUserPasswordResponses];
|
|
21737
21758
|
|
|
21759
|
+
export type SetSelectedGraphData = {
|
|
21760
|
+
body: SetSelectedGraphRequest;
|
|
21761
|
+
path?: never;
|
|
21762
|
+
query?: never;
|
|
21763
|
+
url: '/v1/user/selected-graph';
|
|
21764
|
+
};
|
|
21765
|
+
|
|
21766
|
+
export type SetSelectedGraphErrors = {
|
|
21767
|
+
/**
|
|
21768
|
+
* Invalid request
|
|
21769
|
+
*/
|
|
21770
|
+
400: ErrorResponse;
|
|
21771
|
+
/**
|
|
21772
|
+
* Authentication required
|
|
21773
|
+
*/
|
|
21774
|
+
401: ErrorResponse;
|
|
21775
|
+
/**
|
|
21776
|
+
* Access denied
|
|
21777
|
+
*/
|
|
21778
|
+
403: ErrorResponse;
|
|
21779
|
+
/**
|
|
21780
|
+
* Resource not found
|
|
21781
|
+
*/
|
|
21782
|
+
404: ErrorResponse;
|
|
21783
|
+
/**
|
|
21784
|
+
* Validation Error
|
|
21785
|
+
*/
|
|
21786
|
+
422: HttpValidationError;
|
|
21787
|
+
/**
|
|
21788
|
+
* Rate limit exceeded
|
|
21789
|
+
*/
|
|
21790
|
+
429: ErrorResponse;
|
|
21791
|
+
/**
|
|
21792
|
+
* Internal server error
|
|
21793
|
+
*/
|
|
21794
|
+
500: ErrorResponse;
|
|
21795
|
+
};
|
|
21796
|
+
|
|
21797
|
+
export type SetSelectedGraphError = SetSelectedGraphErrors[keyof SetSelectedGraphErrors];
|
|
21798
|
+
|
|
21799
|
+
export type SetSelectedGraphResponses = {
|
|
21800
|
+
/**
|
|
21801
|
+
* Successful Response
|
|
21802
|
+
*/
|
|
21803
|
+
200: SuccessResponse;
|
|
21804
|
+
};
|
|
21805
|
+
|
|
21806
|
+
export type SetSelectedGraphResponse = SetSelectedGraphResponses[keyof SetSelectedGraphResponses];
|
|
21807
|
+
|
|
21738
21808
|
export type ListUserApiKeysData = {
|
|
21739
21809
|
body?: never;
|
|
21740
21810
|
path?: never;
|
|
@@ -22750,31 +22820,19 @@ export type GetOrgUsageResponses = {
|
|
|
22750
22820
|
|
|
22751
22821
|
export type GetOrgUsageResponse = GetOrgUsageResponses[keyof GetOrgUsageResponses];
|
|
22752
22822
|
|
|
22753
|
-
export type
|
|
22754
|
-
body
|
|
22755
|
-
headers?: {
|
|
22756
|
-
/**
|
|
22757
|
-
* Idempotency-Key
|
|
22758
|
-
*/
|
|
22759
|
-
'Idempotency-Key'?: string | null;
|
|
22760
|
-
};
|
|
22823
|
+
export type GetConnectionOptionsData = {
|
|
22824
|
+
body?: never;
|
|
22761
22825
|
path: {
|
|
22762
22826
|
/**
|
|
22763
22827
|
* Graph Id
|
|
22764
22828
|
*/
|
|
22765
22829
|
graph_id: string;
|
|
22766
|
-
/**
|
|
22767
|
-
* Connection Id
|
|
22768
|
-
*
|
|
22769
|
-
* Connection identifier
|
|
22770
|
-
*/
|
|
22771
|
-
connection_id: string;
|
|
22772
22830
|
};
|
|
22773
22831
|
query?: never;
|
|
22774
|
-
url: '/v1/graphs/{graph_id}/connections/
|
|
22832
|
+
url: '/v1/graphs/{graph_id}/connections/options';
|
|
22775
22833
|
};
|
|
22776
22834
|
|
|
22777
|
-
export type
|
|
22835
|
+
export type GetConnectionOptionsErrors = {
|
|
22778
22836
|
/**
|
|
22779
22837
|
* Invalid request
|
|
22780
22838
|
*/
|
|
@@ -22792,13 +22850,9 @@ export type SyncConnectionErrors = {
|
|
|
22792
22850
|
*/
|
|
22793
22851
|
404: ErrorResponse;
|
|
22794
22852
|
/**
|
|
22795
|
-
*
|
|
22796
|
-
*/
|
|
22797
|
-
409: ErrorResponse;
|
|
22798
|
-
/**
|
|
22799
|
-
* Validation error
|
|
22853
|
+
* Validation Error
|
|
22800
22854
|
*/
|
|
22801
|
-
422:
|
|
22855
|
+
422: HttpValidationError;
|
|
22802
22856
|
/**
|
|
22803
22857
|
* Rate limit exceeded
|
|
22804
22858
|
*/
|
|
@@ -22807,24 +22861,20 @@ export type SyncConnectionErrors = {
|
|
|
22807
22861
|
* Internal server error
|
|
22808
22862
|
*/
|
|
22809
22863
|
500: ErrorResponse;
|
|
22810
|
-
/**
|
|
22811
|
-
* Sync request timed out
|
|
22812
|
-
*/
|
|
22813
|
-
504: unknown;
|
|
22814
22864
|
};
|
|
22815
22865
|
|
|
22816
|
-
export type
|
|
22866
|
+
export type GetConnectionOptionsError = GetConnectionOptionsErrors[keyof GetConnectionOptionsErrors];
|
|
22817
22867
|
|
|
22818
|
-
export type
|
|
22868
|
+
export type GetConnectionOptionsResponses = {
|
|
22819
22869
|
/**
|
|
22820
22870
|
* Successful Response
|
|
22821
22871
|
*/
|
|
22822
|
-
|
|
22872
|
+
200: ConnectionOptionsResponse;
|
|
22823
22873
|
};
|
|
22824
22874
|
|
|
22825
|
-
export type
|
|
22875
|
+
export type GetConnectionOptionsResponse = GetConnectionOptionsResponses[keyof GetConnectionOptionsResponses];
|
|
22826
22876
|
|
|
22827
|
-
export type
|
|
22877
|
+
export type ListConnectionsData = {
|
|
22828
22878
|
body?: never;
|
|
22829
22879
|
path: {
|
|
22830
22880
|
/**
|
|
@@ -22832,11 +22882,24 @@ export type GetConnectionOptionsData = {
|
|
|
22832
22882
|
*/
|
|
22833
22883
|
graph_id: string;
|
|
22834
22884
|
};
|
|
22835
|
-
query?:
|
|
22836
|
-
|
|
22885
|
+
query?: {
|
|
22886
|
+
/**
|
|
22887
|
+
* Entity Id
|
|
22888
|
+
*
|
|
22889
|
+
* Filter by entity ID
|
|
22890
|
+
*/
|
|
22891
|
+
entity_id?: string | null;
|
|
22892
|
+
/**
|
|
22893
|
+
* Provider
|
|
22894
|
+
*
|
|
22895
|
+
* Filter by provider type
|
|
22896
|
+
*/
|
|
22897
|
+
provider?: 'quickbooks' | 'external' | 'mercury' | 'plaid' | null;
|
|
22898
|
+
};
|
|
22899
|
+
url: '/v1/graphs/{graph_id}/connections';
|
|
22837
22900
|
};
|
|
22838
22901
|
|
|
22839
|
-
export type
|
|
22902
|
+
export type ListConnectionsErrors = {
|
|
22840
22903
|
/**
|
|
22841
22904
|
* Invalid request
|
|
22842
22905
|
*/
|
|
@@ -22867,19 +22930,21 @@ export type GetConnectionOptionsErrors = {
|
|
|
22867
22930
|
500: ErrorResponse;
|
|
22868
22931
|
};
|
|
22869
22932
|
|
|
22870
|
-
export type
|
|
22933
|
+
export type ListConnectionsError = ListConnectionsErrors[keyof ListConnectionsErrors];
|
|
22871
22934
|
|
|
22872
|
-
export type
|
|
22935
|
+
export type ListConnectionsResponses = {
|
|
22873
22936
|
/**
|
|
22937
|
+
* Response Listconnections
|
|
22938
|
+
*
|
|
22874
22939
|
* Successful Response
|
|
22875
22940
|
*/
|
|
22876
|
-
200:
|
|
22941
|
+
200: Array<ConnectionResponse>;
|
|
22877
22942
|
};
|
|
22878
22943
|
|
|
22879
|
-
export type
|
|
22944
|
+
export type ListConnectionsResponse = ListConnectionsResponses[keyof ListConnectionsResponses];
|
|
22880
22945
|
|
|
22881
|
-
export type
|
|
22882
|
-
body:
|
|
22946
|
+
export type CreateConnectionData = {
|
|
22947
|
+
body: CreateConnectionRequest;
|
|
22883
22948
|
path: {
|
|
22884
22949
|
/**
|
|
22885
22950
|
* Graph Id
|
|
@@ -22887,10 +22952,10 @@ export type InitOAuthData = {
|
|
|
22887
22952
|
graph_id: string;
|
|
22888
22953
|
};
|
|
22889
22954
|
query?: never;
|
|
22890
|
-
url: '/v1/graphs/{graph_id}/connections
|
|
22955
|
+
url: '/v1/graphs/{graph_id}/connections';
|
|
22891
22956
|
};
|
|
22892
22957
|
|
|
22893
|
-
export type
|
|
22958
|
+
export type CreateConnectionErrors = {
|
|
22894
22959
|
/**
|
|
22895
22960
|
* Invalid request
|
|
22896
22961
|
*/
|
|
@@ -22907,6 +22972,10 @@ export type InitOAuthErrors = {
|
|
|
22907
22972
|
* Resource not found
|
|
22908
22973
|
*/
|
|
22909
22974
|
404: ErrorResponse;
|
|
22975
|
+
/**
|
|
22976
|
+
* Connection already exists for this provider
|
|
22977
|
+
*/
|
|
22978
|
+
409: unknown;
|
|
22910
22979
|
/**
|
|
22911
22980
|
* Validation Error
|
|
22912
22981
|
*/
|
|
@@ -22921,36 +22990,30 @@ export type InitOAuthErrors = {
|
|
|
22921
22990
|
500: ErrorResponse;
|
|
22922
22991
|
};
|
|
22923
22992
|
|
|
22924
|
-
export type
|
|
22993
|
+
export type CreateConnectionError = CreateConnectionErrors[keyof CreateConnectionErrors];
|
|
22925
22994
|
|
|
22926
|
-
export type
|
|
22995
|
+
export type CreateConnectionResponses = {
|
|
22927
22996
|
/**
|
|
22928
22997
|
* Successful Response
|
|
22929
22998
|
*/
|
|
22930
|
-
|
|
22999
|
+
201: ConnectionResponse;
|
|
22931
23000
|
};
|
|
22932
23001
|
|
|
22933
|
-
export type
|
|
23002
|
+
export type CreateConnectionResponse = CreateConnectionResponses[keyof CreateConnectionResponses];
|
|
22934
23003
|
|
|
22935
|
-
export type
|
|
22936
|
-
body:
|
|
23004
|
+
export type InitOAuthData = {
|
|
23005
|
+
body: OAuthInitRequest;
|
|
22937
23006
|
path: {
|
|
22938
|
-
/**
|
|
22939
|
-
* Provider
|
|
22940
|
-
*
|
|
22941
|
-
* OAuth provider name
|
|
22942
|
-
*/
|
|
22943
|
-
provider: string;
|
|
22944
23007
|
/**
|
|
22945
23008
|
* Graph Id
|
|
22946
23009
|
*/
|
|
22947
23010
|
graph_id: string;
|
|
22948
23011
|
};
|
|
22949
23012
|
query?: never;
|
|
22950
|
-
url: '/v1/graphs/{graph_id}/connections/oauth/
|
|
23013
|
+
url: '/v1/graphs/{graph_id}/connections/oauth/init';
|
|
22951
23014
|
};
|
|
22952
23015
|
|
|
22953
|
-
export type
|
|
23016
|
+
export type InitOAuthErrors = {
|
|
22954
23017
|
/**
|
|
22955
23018
|
* Invalid request
|
|
22956
23019
|
*/
|
|
@@ -22981,43 +23044,36 @@ export type OauthCallbackErrors = {
|
|
|
22981
23044
|
500: ErrorResponse;
|
|
22982
23045
|
};
|
|
22983
23046
|
|
|
22984
|
-
export type
|
|
23047
|
+
export type InitOAuthError = InitOAuthErrors[keyof InitOAuthErrors];
|
|
22985
23048
|
|
|
22986
|
-
export type
|
|
23049
|
+
export type InitOAuthResponses = {
|
|
22987
23050
|
/**
|
|
22988
23051
|
* Successful Response
|
|
22989
23052
|
*/
|
|
22990
|
-
200:
|
|
23053
|
+
200: OAuthInitResponse;
|
|
22991
23054
|
};
|
|
22992
23055
|
|
|
22993
|
-
export type
|
|
23056
|
+
export type InitOAuthResponse = InitOAuthResponses[keyof InitOAuthResponses];
|
|
22994
23057
|
|
|
22995
|
-
export type
|
|
22996
|
-
body
|
|
23058
|
+
export type OauthCallbackData = {
|
|
23059
|
+
body: OAuthCallbackRequest;
|
|
22997
23060
|
path: {
|
|
22998
23061
|
/**
|
|
22999
|
-
*
|
|
23000
|
-
*/
|
|
23001
|
-
graph_id: string;
|
|
23002
|
-
};
|
|
23003
|
-
query?: {
|
|
23004
|
-
/**
|
|
23005
|
-
* Entity Id
|
|
23062
|
+
* Provider
|
|
23006
23063
|
*
|
|
23007
|
-
*
|
|
23064
|
+
* OAuth provider name
|
|
23008
23065
|
*/
|
|
23009
|
-
|
|
23066
|
+
provider: string;
|
|
23010
23067
|
/**
|
|
23011
|
-
*
|
|
23012
|
-
*
|
|
23013
|
-
* Filter by provider type
|
|
23068
|
+
* Graph Id
|
|
23014
23069
|
*/
|
|
23015
|
-
|
|
23070
|
+
graph_id: string;
|
|
23016
23071
|
};
|
|
23017
|
-
|
|
23072
|
+
query?: never;
|
|
23073
|
+
url: '/v1/graphs/{graph_id}/connections/oauth/callback/{provider}';
|
|
23018
23074
|
};
|
|
23019
23075
|
|
|
23020
|
-
export type
|
|
23076
|
+
export type OauthCallbackErrors = {
|
|
23021
23077
|
/**
|
|
23022
23078
|
* Invalid request
|
|
23023
23079
|
*/
|
|
@@ -23048,32 +23104,43 @@ export type ListConnectionsErrors = {
|
|
|
23048
23104
|
500: ErrorResponse;
|
|
23049
23105
|
};
|
|
23050
23106
|
|
|
23051
|
-
export type
|
|
23107
|
+
export type OauthCallbackError = OauthCallbackErrors[keyof OauthCallbackErrors];
|
|
23052
23108
|
|
|
23053
|
-
export type
|
|
23109
|
+
export type OauthCallbackResponses = {
|
|
23054
23110
|
/**
|
|
23055
|
-
* Response Listconnections
|
|
23056
|
-
*
|
|
23057
23111
|
* Successful Response
|
|
23058
23112
|
*/
|
|
23059
|
-
200:
|
|
23113
|
+
200: OAuthCallbackResponse;
|
|
23060
23114
|
};
|
|
23061
23115
|
|
|
23062
|
-
export type
|
|
23116
|
+
export type OauthCallbackResponse = OauthCallbackResponses[keyof OauthCallbackResponses];
|
|
23063
23117
|
|
|
23064
|
-
export type
|
|
23065
|
-
body
|
|
23118
|
+
export type DeleteConnectionData = {
|
|
23119
|
+
body?: never;
|
|
23066
23120
|
path: {
|
|
23067
23121
|
/**
|
|
23068
23122
|
* Graph Id
|
|
23069
23123
|
*/
|
|
23070
23124
|
graph_id: string;
|
|
23125
|
+
/**
|
|
23126
|
+
* Connection Id
|
|
23127
|
+
*
|
|
23128
|
+
* Connection identifier
|
|
23129
|
+
*/
|
|
23130
|
+
connection_id: string;
|
|
23071
23131
|
};
|
|
23072
|
-
query?:
|
|
23073
|
-
|
|
23132
|
+
query?: {
|
|
23133
|
+
/**
|
|
23134
|
+
* Disposition
|
|
23135
|
+
*
|
|
23136
|
+
* `disconnect` (default): soft-delete; a later re-OAuth to the same realm revives the connection. `sever`: the native-accounting cutover — QuickBooks only; the chart it created is stamped native-owned, write_policy drops to native, and the connection is never revived.
|
|
23137
|
+
*/
|
|
23138
|
+
disposition?: 'disconnect' | 'sever';
|
|
23139
|
+
};
|
|
23140
|
+
url: '/v1/graphs/{graph_id}/connections/{connection_id}';
|
|
23074
23141
|
};
|
|
23075
23142
|
|
|
23076
|
-
export type
|
|
23143
|
+
export type DeleteConnectionErrors = {
|
|
23077
23144
|
/**
|
|
23078
23145
|
* Invalid request
|
|
23079
23146
|
*/
|
|
@@ -23090,10 +23157,6 @@ export type CreateConnectionErrors = {
|
|
|
23090
23157
|
* Resource not found
|
|
23091
23158
|
*/
|
|
23092
23159
|
404: ErrorResponse;
|
|
23093
|
-
/**
|
|
23094
|
-
* Connection already exists for this provider
|
|
23095
|
-
*/
|
|
23096
|
-
409: unknown;
|
|
23097
23160
|
/**
|
|
23098
23161
|
* Validation Error
|
|
23099
23162
|
*/
|
|
@@ -23108,18 +23171,18 @@ export type CreateConnectionErrors = {
|
|
|
23108
23171
|
500: ErrorResponse;
|
|
23109
23172
|
};
|
|
23110
23173
|
|
|
23111
|
-
export type
|
|
23174
|
+
export type DeleteConnectionError = DeleteConnectionErrors[keyof DeleteConnectionErrors];
|
|
23112
23175
|
|
|
23113
|
-
export type
|
|
23176
|
+
export type DeleteConnectionResponses = {
|
|
23114
23177
|
/**
|
|
23115
23178
|
* Successful Response
|
|
23116
23179
|
*/
|
|
23117
|
-
|
|
23180
|
+
200: SuccessResponse;
|
|
23118
23181
|
};
|
|
23119
23182
|
|
|
23120
|
-
export type
|
|
23183
|
+
export type DeleteConnectionResponse = DeleteConnectionResponses[keyof DeleteConnectionResponses];
|
|
23121
23184
|
|
|
23122
|
-
export type
|
|
23185
|
+
export type GetConnectionData = {
|
|
23123
23186
|
body?: never;
|
|
23124
23187
|
path: {
|
|
23125
23188
|
/**
|
|
@@ -23129,22 +23192,15 @@ export type DeleteConnectionData = {
|
|
|
23129
23192
|
/**
|
|
23130
23193
|
* Connection Id
|
|
23131
23194
|
*
|
|
23132
|
-
*
|
|
23195
|
+
* Unique connection identifier
|
|
23133
23196
|
*/
|
|
23134
23197
|
connection_id: string;
|
|
23135
23198
|
};
|
|
23136
|
-
query?:
|
|
23137
|
-
/**
|
|
23138
|
-
* Disposition
|
|
23139
|
-
*
|
|
23140
|
-
* `disconnect` (default): soft-delete; a later re-OAuth to the same realm revives the connection. `sever`: the native-accounting cutover — QuickBooks only; the chart it created is stamped native-owned, write_policy drops to native, and the connection is never revived.
|
|
23141
|
-
*/
|
|
23142
|
-
disposition?: 'disconnect' | 'sever';
|
|
23143
|
-
};
|
|
23199
|
+
query?: never;
|
|
23144
23200
|
url: '/v1/graphs/{graph_id}/connections/{connection_id}';
|
|
23145
23201
|
};
|
|
23146
23202
|
|
|
23147
|
-
export type
|
|
23203
|
+
export type GetConnectionErrors = {
|
|
23148
23204
|
/**
|
|
23149
23205
|
* Invalid request
|
|
23150
23206
|
*/
|
|
@@ -23175,19 +23231,25 @@ export type DeleteConnectionErrors = {
|
|
|
23175
23231
|
500: ErrorResponse;
|
|
23176
23232
|
};
|
|
23177
23233
|
|
|
23178
|
-
export type
|
|
23234
|
+
export type GetConnectionError = GetConnectionErrors[keyof GetConnectionErrors];
|
|
23179
23235
|
|
|
23180
|
-
export type
|
|
23236
|
+
export type GetConnectionResponses = {
|
|
23181
23237
|
/**
|
|
23182
23238
|
* Successful Response
|
|
23183
23239
|
*/
|
|
23184
|
-
200:
|
|
23240
|
+
200: ConnectionResponse;
|
|
23185
23241
|
};
|
|
23186
23242
|
|
|
23187
|
-
export type
|
|
23243
|
+
export type GetConnectionResponse = GetConnectionResponses[keyof GetConnectionResponses];
|
|
23188
23244
|
|
|
23189
|
-
export type
|
|
23190
|
-
body
|
|
23245
|
+
export type SyncConnectionData = {
|
|
23246
|
+
body: SyncConnectionRequest;
|
|
23247
|
+
headers?: {
|
|
23248
|
+
/**
|
|
23249
|
+
* Idempotency-Key
|
|
23250
|
+
*/
|
|
23251
|
+
'Idempotency-Key'?: string | null;
|
|
23252
|
+
};
|
|
23191
23253
|
path: {
|
|
23192
23254
|
/**
|
|
23193
23255
|
* Graph Id
|
|
@@ -23196,15 +23258,15 @@ export type GetConnectionData = {
|
|
|
23196
23258
|
/**
|
|
23197
23259
|
* Connection Id
|
|
23198
23260
|
*
|
|
23199
|
-
*
|
|
23261
|
+
* Connection identifier
|
|
23200
23262
|
*/
|
|
23201
23263
|
connection_id: string;
|
|
23202
23264
|
};
|
|
23203
23265
|
query?: never;
|
|
23204
|
-
url: '/v1/graphs/{graph_id}/connections/{connection_id}';
|
|
23266
|
+
url: '/v1/graphs/{graph_id}/connections/{connection_id}/sync';
|
|
23205
23267
|
};
|
|
23206
23268
|
|
|
23207
|
-
export type
|
|
23269
|
+
export type SyncConnectionErrors = {
|
|
23208
23270
|
/**
|
|
23209
23271
|
* Invalid request
|
|
23210
23272
|
*/
|
|
@@ -23222,9 +23284,13 @@ export type GetConnectionErrors = {
|
|
|
23222
23284
|
*/
|
|
23223
23285
|
404: ErrorResponse;
|
|
23224
23286
|
/**
|
|
23225
|
-
*
|
|
23287
|
+
* Idempotency-Key conflict — key reused with different body
|
|
23226
23288
|
*/
|
|
23227
|
-
|
|
23289
|
+
409: ErrorResponse;
|
|
23290
|
+
/**
|
|
23291
|
+
* Validation error
|
|
23292
|
+
*/
|
|
23293
|
+
422: ErrorResponse;
|
|
23228
23294
|
/**
|
|
23229
23295
|
* Rate limit exceeded
|
|
23230
23296
|
*/
|
|
@@ -23233,18 +23299,22 @@ export type GetConnectionErrors = {
|
|
|
23233
23299
|
* Internal server error
|
|
23234
23300
|
*/
|
|
23235
23301
|
500: ErrorResponse;
|
|
23302
|
+
/**
|
|
23303
|
+
* Sync request timed out
|
|
23304
|
+
*/
|
|
23305
|
+
504: unknown;
|
|
23236
23306
|
};
|
|
23237
23307
|
|
|
23238
|
-
export type
|
|
23308
|
+
export type SyncConnectionError = SyncConnectionErrors[keyof SyncConnectionErrors];
|
|
23239
23309
|
|
|
23240
|
-
export type
|
|
23310
|
+
export type SyncConnectionResponses = {
|
|
23241
23311
|
/**
|
|
23242
23312
|
* Successful Response
|
|
23243
23313
|
*/
|
|
23244
|
-
|
|
23314
|
+
202: OperationEnvelope;
|
|
23245
23315
|
};
|
|
23246
23316
|
|
|
23247
|
-
export type
|
|
23317
|
+
export type SyncConnectionResponse = SyncConnectionResponses[keyof SyncConnectionResponses];
|
|
23248
23318
|
|
|
23249
23319
|
export type SetConnectionWritePolicyData = {
|
|
23250
23320
|
body: SetWritePolicyRequest;
|
|
@@ -27115,7 +27185,7 @@ export type StreamOperationEventsData = {
|
|
|
27115
27185
|
/**
|
|
27116
27186
|
* From Sequence
|
|
27117
27187
|
*
|
|
27118
|
-
*
|
|
27188
|
+
* Replay stored events from this sequence number, then stream live ones. A running operation replays nothing at 0 (live events only); a settled one replays its history from here (0 = all) and closes.
|
|
27119
27189
|
*/
|
|
27120
27190
|
from_sequence?: number;
|
|
27121
27191
|
/**
|